zerocodejs 1.0.1-beta.0
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/LICENSE +21 -0
- package/README.md +161 -0
- package/dist/__tests__/fixtures/sample-data.d.ts +23 -0
- package/dist/__tests__/fixtures/sample-data.d.ts.map +1 -0
- package/dist/__tests__/fixtures/sample-templates.d.ts +25 -0
- package/dist/__tests__/fixtures/sample-templates.d.ts.map +1 -0
- package/dist/components/ZeroCodeCMS.vue.d.ts +142 -0
- package/dist/components/ZeroCodeCMS.vue.d.ts.map +1 -0
- package/dist/components/ZeroCodeEditor.vue.d.ts +341 -0
- package/dist/components/ZeroCodeEditor.vue.d.ts.map +1 -0
- package/dist/components/ZeroCodePreview.vue.d.ts +36 -0
- package/dist/components/ZeroCodePreview.vue.d.ts.map +1 -0
- package/dist/core/composables/useZeroCodeData.d.ts +91 -0
- package/dist/core/composables/useZeroCodeData.d.ts.map +1 -0
- package/dist/core/composables/useZeroCodeRenderer.d.ts +7 -0
- package/dist/core/composables/useZeroCodeRenderer.d.ts.map +1 -0
- package/dist/core/renderer/renderer.d.ts +20 -0
- package/dist/core/renderer/renderer.d.ts.map +1 -0
- package/dist/core/utils/component-initializer.d.ts +6 -0
- package/dist/core/utils/component-initializer.d.ts.map +1 -0
- package/dist/core/utils/component-initializer.test.d.ts +2 -0
- package/dist/core/utils/component-initializer.test.d.ts.map +1 -0
- package/dist/core/utils/css-manager.d.ts +41 -0
- package/dist/core/utils/css-manager.d.ts.map +1 -0
- package/dist/core/utils/dom-utils.d.ts +29 -0
- package/dist/core/utils/dom-utils.d.ts.map +1 -0
- package/dist/core/utils/field-extractor.d.ts +8 -0
- package/dist/core/utils/field-extractor.d.ts.map +1 -0
- package/dist/core/utils/field-extractor.test.d.ts +2 -0
- package/dist/core/utils/field-extractor.test.d.ts.map +1 -0
- package/dist/core/utils/i18n-setup.d.ts +26 -0
- package/dist/core/utils/i18n-setup.d.ts.map +1 -0
- package/dist/core/utils/image-utils.d.ts +7 -0
- package/dist/core/utils/image-utils.d.ts.map +1 -0
- package/dist/core/utils/image-utils.test.d.ts +2 -0
- package/dist/core/utils/image-utils.test.d.ts.map +1 -0
- package/dist/core/utils/path-utils.d.ts +18 -0
- package/dist/core/utils/path-utils.d.ts.map +1 -0
- package/dist/core/utils/path-utils.test.d.ts +2 -0
- package/dist/core/utils/path-utils.test.d.ts.map +1 -0
- package/dist/core/utils/sanitize.d.ts +10 -0
- package/dist/core/utils/sanitize.d.ts.map +1 -0
- package/dist/core/utils/storage.d.ts +16 -0
- package/dist/core/utils/storage.d.ts.map +1 -0
- package/dist/core/utils/storage.test.d.ts +2 -0
- package/dist/core/utils/storage.test.d.ts.map +1 -0
- package/dist/core/utils/template-processor.d.ts +12 -0
- package/dist/core/utils/template-processor.d.ts.map +1 -0
- package/dist/core/utils/template-processor.test.d.ts +2 -0
- package/dist/core/utils/template-processor.test.d.ts.map +1 -0
- package/dist/core/utils/template-regex.d.ts +29 -0
- package/dist/core/utils/template-regex.d.ts.map +1 -0
- package/dist/core/utils/template-utils.d.ts +14 -0
- package/dist/core/utils/template-utils.d.ts.map +1 -0
- package/dist/core/utils/template-utils.test.d.ts +2 -0
- package/dist/core/utils/template-utils.test.d.ts.map +1 -0
- package/dist/core/utils/validation.d.ts +2 -0
- package/dist/core/utils/validation.d.ts.map +1 -0
- package/dist/core/utils/validation.test.d.ts +2 -0
- package/dist/core/utils/validation.test.d.ts.map +1 -0
- package/dist/css/common.css +677 -0
- package/dist/css/docs.css +396 -0
- package/dist/css/index.css +1039 -0
- package/dist/css/page.css +290 -0
- package/dist/css/sample.css +26 -0
- package/dist/css/site-common.css +218 -0
- package/dist/features/add/components/AddPanel.vue.d.ts +41 -0
- package/dist/features/add/components/AddPanel.vue.d.ts.map +1 -0
- package/dist/features/add/composables/useAddMode.d.ts +84 -0
- package/dist/features/add/composables/useAddMode.d.ts.map +1 -0
- package/dist/features/data-viewer/components/DataViewer.vue.d.ts +11 -0
- package/dist/features/data-viewer/components/DataViewer.vue.d.ts.map +1 -0
- package/dist/features/delete/components/DeletePanel.vue.d.ts +17 -0
- package/dist/features/delete/components/DeletePanel.vue.d.ts.map +1 -0
- package/dist/features/delete/composables/useDeleteMode.d.ts +20 -0
- package/dist/features/delete/composables/useDeleteMode.d.ts.map +1 -0
- package/dist/features/editor/components/ContextMenu.vue.d.ts +18 -0
- package/dist/features/editor/components/ContextMenu.vue.d.ts.map +1 -0
- package/dist/features/editor/components/EditPanel.vue.d.ts +39 -0
- package/dist/features/editor/components/EditPanel.vue.d.ts.map +1 -0
- package/dist/features/editor/components/ImageSelectModal.vue.d.ts +23 -0
- package/dist/features/editor/components/ImageSelectModal.vue.d.ts.map +1 -0
- package/dist/features/editor/components/RichTextEditor.vue.d.ts +11 -0
- package/dist/features/editor/components/RichTextEditor.vue.d.ts.map +1 -0
- package/dist/features/editor/components/SettingsPanel.vue.d.ts +25 -0
- package/dist/features/editor/components/SettingsPanel.vue.d.ts.map +1 -0
- package/dist/features/editor/components/Toolbar.vue.d.ts +21 -0
- package/dist/features/editor/components/Toolbar.vue.d.ts.map +1 -0
- package/dist/features/editor/composables/useClickHandlers.d.ts +8 -0
- package/dist/features/editor/composables/useClickHandlers.d.ts.map +1 -0
- package/dist/features/editor/composables/useContextMenu.d.ts +20 -0
- package/dist/features/editor/composables/useContextMenu.d.ts.map +1 -0
- package/dist/features/editor/composables/useEditMode.d.ts +66 -0
- package/dist/features/editor/composables/useEditMode.d.ts.map +1 -0
- package/dist/features/editor/composables/useEditorMode.d.ts +7 -0
- package/dist/features/editor/composables/useEditorMode.d.ts.map +1 -0
- package/dist/features/editor/composables/useModeSwitcher.d.ts +7 -0
- package/dist/features/editor/composables/useModeSwitcher.d.ts.map +1 -0
- package/dist/features/editor/composables/useOutlineManager.d.ts +5 -0
- package/dist/features/editor/composables/useOutlineManager.d.ts.map +1 -0
- package/dist/features/images-manager/components/ImagesManagerPanel.vue.d.ts +12 -0
- package/dist/features/images-manager/components/ImagesManagerPanel.vue.d.ts.map +1 -0
- package/dist/features/images-manager/composables/useImagesManager.d.ts +47 -0
- package/dist/features/images-manager/composables/useImagesManager.d.ts.map +1 -0
- package/dist/features/parent-selector/composables/useParentSelector.d.ts +9 -0
- package/dist/features/parent-selector/composables/useParentSelector.d.ts.map +1 -0
- package/dist/features/parts-manager/components/MonacoEditor.vue.d.ts +20 -0
- package/dist/features/parts-manager/components/MonacoEditor.vue.d.ts.map +1 -0
- package/dist/features/parts-manager/components/PartsManagerPanel.vue.d.ts +10 -0
- package/dist/features/parts-manager/components/PartsManagerPanel.vue.d.ts.map +1 -0
- package/dist/features/parts-manager/composables/usePartsManager.d.ts +190 -0
- package/dist/features/parts-manager/composables/usePartsManager.d.ts.map +1 -0
- package/dist/features/preview/PreviewArea.vue.d.ts +15 -0
- package/dist/features/preview/PreviewArea.vue.d.ts.map +1 -0
- package/dist/features/reorder/components/ReorderPanel.vue.d.ts +14 -0
- package/dist/features/reorder/components/ReorderPanel.vue.d.ts.map +1 -0
- package/dist/features/reorder/composables/useReorderMode.d.ts +9 -0
- package/dist/features/reorder/composables/useReorderMode.d.ts.map +1 -0
- package/dist/footer.html +10 -0
- package/dist/header.html +10 -0
- package/dist/i18n/index.d.ts +454 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/locales/en.d.ts +231 -0
- package/dist/i18n/locales/en.d.ts.map +1 -0
- package/dist/i18n/locales/ja.d.ts +223 -0
- package/dist/i18n/locales/ja.d.ts.map +1 -0
- 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/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/js/accordion.js +24 -0
- package/dist/js/common.js +1093 -0
- package/dist/types/index.d.ts +96 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/web-component.d.ts +14 -0
- package/dist/web-component.d.ts.map +1 -0
- package/dist/web-components/zcode-cms.d.ts +29 -0
- package/dist/web-components/zcode-cms.d.ts.map +1 -0
- package/dist/web-components/zcode-editor.d.ts +29 -0
- package/dist/web-components/zcode-editor.d.ts.map +1 -0
- package/dist/zerocode.es.js +28710 -0
- package/dist/zerocode.es.js.map +1 -0
- package/dist/zerocode.umd.js +490 -0
- package/dist/zerocode.umd.js.map +1 -0
- package/dist/zerocodejs.css +1 -0
- package/package.json +94 -0
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
common: {
|
|
3
|
+
close: string;
|
|
4
|
+
save: string;
|
|
5
|
+
cancel: string;
|
|
6
|
+
delete: string;
|
|
7
|
+
edit: string;
|
|
8
|
+
add: string;
|
|
9
|
+
reorder: string;
|
|
10
|
+
preview: string;
|
|
11
|
+
settings: string;
|
|
12
|
+
manage: string;
|
|
13
|
+
view: string;
|
|
14
|
+
confirm: string;
|
|
15
|
+
clear: string;
|
|
16
|
+
select: string;
|
|
17
|
+
replace: string;
|
|
18
|
+
copy: string;
|
|
19
|
+
copied: string;
|
|
20
|
+
};
|
|
21
|
+
toolbar: {
|
|
22
|
+
editMode: string;
|
|
23
|
+
addMode: string;
|
|
24
|
+
reorderMode: string;
|
|
25
|
+
deleteMode: string;
|
|
26
|
+
viewMode: string;
|
|
27
|
+
settings: string;
|
|
28
|
+
};
|
|
29
|
+
settings: {
|
|
30
|
+
title: string;
|
|
31
|
+
language: {
|
|
32
|
+
label: string;
|
|
33
|
+
ja: string;
|
|
34
|
+
en: string;
|
|
35
|
+
};
|
|
36
|
+
enableDynamicContent: string;
|
|
37
|
+
enableDynamicContentDescription: string;
|
|
38
|
+
devRightPadding: string;
|
|
39
|
+
devRightPaddingDescription: string;
|
|
40
|
+
enableContextMenu: string;
|
|
41
|
+
enableContextMenuDescription: string;
|
|
42
|
+
showSaveConfirm: string;
|
|
43
|
+
showSaveConfirmDescription: string;
|
|
44
|
+
previewModeInfo: string;
|
|
45
|
+
noSettings: string;
|
|
46
|
+
};
|
|
47
|
+
addPanel: {
|
|
48
|
+
title: string;
|
|
49
|
+
selectParent: string;
|
|
50
|
+
category: {
|
|
51
|
+
common: string;
|
|
52
|
+
individual: string;
|
|
53
|
+
selected: string;
|
|
54
|
+
};
|
|
55
|
+
typeAll: string;
|
|
56
|
+
activeParts: string;
|
|
57
|
+
activePartsDescription: string;
|
|
58
|
+
clickPartInPreview: string;
|
|
59
|
+
noPartsAvailable: string;
|
|
60
|
+
addBefore: string;
|
|
61
|
+
addAfter: string;
|
|
62
|
+
continueAdding: string;
|
|
63
|
+
};
|
|
64
|
+
editPanel: {
|
|
65
|
+
title: string;
|
|
66
|
+
editing: string;
|
|
67
|
+
id: string;
|
|
68
|
+
selectImage: string;
|
|
69
|
+
replaceImage: string;
|
|
70
|
+
clearImage: string;
|
|
71
|
+
clearImageTitle: string;
|
|
72
|
+
noFields: string;
|
|
73
|
+
};
|
|
74
|
+
deletePanel: {
|
|
75
|
+
title: string;
|
|
76
|
+
confirmMessage: string;
|
|
77
|
+
selectParent: string;
|
|
78
|
+
};
|
|
79
|
+
reorderPanel: {
|
|
80
|
+
title: string;
|
|
81
|
+
instruction: string;
|
|
82
|
+
source: string;
|
|
83
|
+
selectParent: string;
|
|
84
|
+
};
|
|
85
|
+
saveConfirm: {
|
|
86
|
+
title: string;
|
|
87
|
+
message: string;
|
|
88
|
+
simpleMessage: string;
|
|
89
|
+
targets: {
|
|
90
|
+
page: string;
|
|
91
|
+
'parts-common': string;
|
|
92
|
+
'parts-individual': string;
|
|
93
|
+
'parts-special': string;
|
|
94
|
+
'parts-common-css': string;
|
|
95
|
+
'parts-individual-css': string;
|
|
96
|
+
'parts-special-css': string;
|
|
97
|
+
'images-common': string;
|
|
98
|
+
'images-individual': string;
|
|
99
|
+
'images-special': string;
|
|
100
|
+
};
|
|
101
|
+
saveButton: string;
|
|
102
|
+
};
|
|
103
|
+
partsManager: {
|
|
104
|
+
createType: string;
|
|
105
|
+
editType: string;
|
|
106
|
+
typeName: string;
|
|
107
|
+
typeDescription: string;
|
|
108
|
+
typeNamePlaceholder: string;
|
|
109
|
+
typeDescriptionPlaceholder: string;
|
|
110
|
+
editPart: string;
|
|
111
|
+
partTitle: string;
|
|
112
|
+
partDescription: string;
|
|
113
|
+
partDescriptionPlaceholder: string;
|
|
114
|
+
deletePartConfirm: string;
|
|
115
|
+
deleteTypeConfirm: string;
|
|
116
|
+
deleteTypeWithUsagesConfirm: string;
|
|
117
|
+
deleteSlotConfirm: string;
|
|
118
|
+
selectImage: string;
|
|
119
|
+
addPart: string;
|
|
120
|
+
editTypeButton: string;
|
|
121
|
+
reorderType: string;
|
|
122
|
+
deleteTypeButton: string;
|
|
123
|
+
editPartButton: string;
|
|
124
|
+
reorderPart: string;
|
|
125
|
+
deletePartButton: string;
|
|
126
|
+
source: string;
|
|
127
|
+
noDescription: string;
|
|
128
|
+
partNumber: string;
|
|
129
|
+
allowedParts: string;
|
|
130
|
+
searchParts: string;
|
|
131
|
+
addSlot: string;
|
|
132
|
+
selectSlot: string;
|
|
133
|
+
defaultSlot: string;
|
|
134
|
+
codeEdit: string;
|
|
135
|
+
cssEditInfo: string;
|
|
136
|
+
templateSuggestions: string;
|
|
137
|
+
preview: string;
|
|
138
|
+
cssEditWarning: string;
|
|
139
|
+
cssEditWarningMessageCommon: string;
|
|
140
|
+
cssEditWarningMessageIndividual: string;
|
|
141
|
+
cssEditWarningMessageSpecial: string;
|
|
142
|
+
understood: string;
|
|
143
|
+
dontShowAgain: string;
|
|
144
|
+
templateHelp: {
|
|
145
|
+
textField: string;
|
|
146
|
+
richText: string;
|
|
147
|
+
textarea: string;
|
|
148
|
+
image: string;
|
|
149
|
+
radio: string;
|
|
150
|
+
checkbox: string;
|
|
151
|
+
selectSingle: string;
|
|
152
|
+
selectMultiple: string;
|
|
153
|
+
conditional: string;
|
|
154
|
+
slot: string;
|
|
155
|
+
note: string;
|
|
156
|
+
suggestionNote: string;
|
|
157
|
+
fieldNameNote: string;
|
|
158
|
+
defaultValueNote: string;
|
|
159
|
+
};
|
|
160
|
+
validationError: string;
|
|
161
|
+
dangerousTagWarning: string;
|
|
162
|
+
dangerousAttrWarning: string;
|
|
163
|
+
slotSettings: string;
|
|
164
|
+
slot: string;
|
|
165
|
+
templateHelpButton: string;
|
|
166
|
+
clickToEnlarge: string;
|
|
167
|
+
};
|
|
168
|
+
imagesManager: {
|
|
169
|
+
addImage: string;
|
|
170
|
+
editImage: string;
|
|
171
|
+
imageId: string;
|
|
172
|
+
imageName: string;
|
|
173
|
+
altText: string;
|
|
174
|
+
deleteImageConfirm: string;
|
|
175
|
+
deleteImageWithUsagesConfirm: string;
|
|
176
|
+
deleteImageFromModalConfirm: string;
|
|
177
|
+
addImageFailed: string;
|
|
178
|
+
selectImage: string;
|
|
179
|
+
currentlySelected: string;
|
|
180
|
+
select: string;
|
|
181
|
+
};
|
|
182
|
+
dataViewer: {
|
|
183
|
+
page: string;
|
|
184
|
+
parts: string;
|
|
185
|
+
images: string;
|
|
186
|
+
common: string;
|
|
187
|
+
individual: string;
|
|
188
|
+
special: string;
|
|
189
|
+
json: string;
|
|
190
|
+
html: string;
|
|
191
|
+
categoryInfo: {
|
|
192
|
+
title: string;
|
|
193
|
+
common: {
|
|
194
|
+
title: string;
|
|
195
|
+
description: string;
|
|
196
|
+
};
|
|
197
|
+
individual: {
|
|
198
|
+
title: string;
|
|
199
|
+
description: string;
|
|
200
|
+
};
|
|
201
|
+
special: {
|
|
202
|
+
title: string;
|
|
203
|
+
description: string;
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
contextMenu: {
|
|
208
|
+
edit: string;
|
|
209
|
+
add: string;
|
|
210
|
+
reorder: string;
|
|
211
|
+
delete: string;
|
|
212
|
+
close: string;
|
|
213
|
+
};
|
|
214
|
+
editor: {
|
|
215
|
+
pageManagement: string;
|
|
216
|
+
partsManagement: string;
|
|
217
|
+
imagesManagement: string;
|
|
218
|
+
dataViewer: string;
|
|
219
|
+
loading: string;
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
export default _default;
|
|
223
|
+
//# sourceMappingURL=ja.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ja.d.ts","sourceRoot":"","sources":["../../../src/i18n/locales/ja.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBA4NE"}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './types';
|
|
2
|
+
export { renderToHtml, RenderError } from './core/renderer/renderer';
|
|
3
|
+
export { default as ZeroCodePreview } from './components/ZeroCodePreview.vue';
|
|
4
|
+
export { default as ZeroCodeCMS } from './components/ZeroCodeCMS.vue';
|
|
5
|
+
export { default as ZeroCodeEditor } from './components/ZeroCodeEditor.vue';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,4BAA4B,CAAC;AACpC,OAAO,+BAA+B,CAAC;AAGvC,OAAO,wBAAwB,CAAC;AAGhC,cAAc,SAAS,CAAC;AAGxB,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAGrE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
$(function () {
|
|
2
|
+
// jQueryのイベント委譲を設定
|
|
3
|
+
$(document).on('click', '.js_toggleBtn', function () {
|
|
4
|
+
const toggleBtn = $(this)
|
|
5
|
+
const $tglArea = $(this).closest('.js_toggleArea')
|
|
6
|
+
|
|
7
|
+
// アニメーション中は処理をスキップ
|
|
8
|
+
if ($tglArea.find(':animated').length > 0) {
|
|
9
|
+
return
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// 開閉処理
|
|
13
|
+
if ($tglArea.hasClass('s_close')) {
|
|
14
|
+
$tglArea.find('.js_toggleContents').slideDown(500)
|
|
15
|
+
toggleBtn.not('dt').attr('aria-expanded', true)
|
|
16
|
+
$tglArea.removeClass('s_close')
|
|
17
|
+
} else {
|
|
18
|
+
$tglArea.find('.js_toggleContents').slideUp(500, function () {
|
|
19
|
+
$tglArea.addClass('s_close')
|
|
20
|
+
toggleBtn.not('dt').attr('aria-expanded', false)
|
|
21
|
+
})
|
|
22
|
+
}
|
|
23
|
+
})
|
|
24
|
+
})
|