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.
Files changed (154) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +161 -0
  3. package/dist/__tests__/fixtures/sample-data.d.ts +23 -0
  4. package/dist/__tests__/fixtures/sample-data.d.ts.map +1 -0
  5. package/dist/__tests__/fixtures/sample-templates.d.ts +25 -0
  6. package/dist/__tests__/fixtures/sample-templates.d.ts.map +1 -0
  7. package/dist/components/ZeroCodeCMS.vue.d.ts +142 -0
  8. package/dist/components/ZeroCodeCMS.vue.d.ts.map +1 -0
  9. package/dist/components/ZeroCodeEditor.vue.d.ts +341 -0
  10. package/dist/components/ZeroCodeEditor.vue.d.ts.map +1 -0
  11. package/dist/components/ZeroCodePreview.vue.d.ts +36 -0
  12. package/dist/components/ZeroCodePreview.vue.d.ts.map +1 -0
  13. package/dist/core/composables/useZeroCodeData.d.ts +91 -0
  14. package/dist/core/composables/useZeroCodeData.d.ts.map +1 -0
  15. package/dist/core/composables/useZeroCodeRenderer.d.ts +7 -0
  16. package/dist/core/composables/useZeroCodeRenderer.d.ts.map +1 -0
  17. package/dist/core/renderer/renderer.d.ts +20 -0
  18. package/dist/core/renderer/renderer.d.ts.map +1 -0
  19. package/dist/core/utils/component-initializer.d.ts +6 -0
  20. package/dist/core/utils/component-initializer.d.ts.map +1 -0
  21. package/dist/core/utils/component-initializer.test.d.ts +2 -0
  22. package/dist/core/utils/component-initializer.test.d.ts.map +1 -0
  23. package/dist/core/utils/css-manager.d.ts +41 -0
  24. package/dist/core/utils/css-manager.d.ts.map +1 -0
  25. package/dist/core/utils/dom-utils.d.ts +29 -0
  26. package/dist/core/utils/dom-utils.d.ts.map +1 -0
  27. package/dist/core/utils/field-extractor.d.ts +8 -0
  28. package/dist/core/utils/field-extractor.d.ts.map +1 -0
  29. package/dist/core/utils/field-extractor.test.d.ts +2 -0
  30. package/dist/core/utils/field-extractor.test.d.ts.map +1 -0
  31. package/dist/core/utils/i18n-setup.d.ts +26 -0
  32. package/dist/core/utils/i18n-setup.d.ts.map +1 -0
  33. package/dist/core/utils/image-utils.d.ts +7 -0
  34. package/dist/core/utils/image-utils.d.ts.map +1 -0
  35. package/dist/core/utils/image-utils.test.d.ts +2 -0
  36. package/dist/core/utils/image-utils.test.d.ts.map +1 -0
  37. package/dist/core/utils/path-utils.d.ts +18 -0
  38. package/dist/core/utils/path-utils.d.ts.map +1 -0
  39. package/dist/core/utils/path-utils.test.d.ts +2 -0
  40. package/dist/core/utils/path-utils.test.d.ts.map +1 -0
  41. package/dist/core/utils/sanitize.d.ts +10 -0
  42. package/dist/core/utils/sanitize.d.ts.map +1 -0
  43. package/dist/core/utils/storage.d.ts +16 -0
  44. package/dist/core/utils/storage.d.ts.map +1 -0
  45. package/dist/core/utils/storage.test.d.ts +2 -0
  46. package/dist/core/utils/storage.test.d.ts.map +1 -0
  47. package/dist/core/utils/template-processor.d.ts +12 -0
  48. package/dist/core/utils/template-processor.d.ts.map +1 -0
  49. package/dist/core/utils/template-processor.test.d.ts +2 -0
  50. package/dist/core/utils/template-processor.test.d.ts.map +1 -0
  51. package/dist/core/utils/template-regex.d.ts +29 -0
  52. package/dist/core/utils/template-regex.d.ts.map +1 -0
  53. package/dist/core/utils/template-utils.d.ts +14 -0
  54. package/dist/core/utils/template-utils.d.ts.map +1 -0
  55. package/dist/core/utils/template-utils.test.d.ts +2 -0
  56. package/dist/core/utils/template-utils.test.d.ts.map +1 -0
  57. package/dist/core/utils/validation.d.ts +2 -0
  58. package/dist/core/utils/validation.d.ts.map +1 -0
  59. package/dist/core/utils/validation.test.d.ts +2 -0
  60. package/dist/core/utils/validation.test.d.ts.map +1 -0
  61. package/dist/css/common.css +677 -0
  62. package/dist/css/docs.css +396 -0
  63. package/dist/css/index.css +1039 -0
  64. package/dist/css/page.css +290 -0
  65. package/dist/css/sample.css +26 -0
  66. package/dist/css/site-common.css +218 -0
  67. package/dist/features/add/components/AddPanel.vue.d.ts +41 -0
  68. package/dist/features/add/components/AddPanel.vue.d.ts.map +1 -0
  69. package/dist/features/add/composables/useAddMode.d.ts +84 -0
  70. package/dist/features/add/composables/useAddMode.d.ts.map +1 -0
  71. package/dist/features/data-viewer/components/DataViewer.vue.d.ts +11 -0
  72. package/dist/features/data-viewer/components/DataViewer.vue.d.ts.map +1 -0
  73. package/dist/features/delete/components/DeletePanel.vue.d.ts +17 -0
  74. package/dist/features/delete/components/DeletePanel.vue.d.ts.map +1 -0
  75. package/dist/features/delete/composables/useDeleteMode.d.ts +20 -0
  76. package/dist/features/delete/composables/useDeleteMode.d.ts.map +1 -0
  77. package/dist/features/editor/components/ContextMenu.vue.d.ts +18 -0
  78. package/dist/features/editor/components/ContextMenu.vue.d.ts.map +1 -0
  79. package/dist/features/editor/components/EditPanel.vue.d.ts +39 -0
  80. package/dist/features/editor/components/EditPanel.vue.d.ts.map +1 -0
  81. package/dist/features/editor/components/ImageSelectModal.vue.d.ts +23 -0
  82. package/dist/features/editor/components/ImageSelectModal.vue.d.ts.map +1 -0
  83. package/dist/features/editor/components/RichTextEditor.vue.d.ts +11 -0
  84. package/dist/features/editor/components/RichTextEditor.vue.d.ts.map +1 -0
  85. package/dist/features/editor/components/SettingsPanel.vue.d.ts +25 -0
  86. package/dist/features/editor/components/SettingsPanel.vue.d.ts.map +1 -0
  87. package/dist/features/editor/components/Toolbar.vue.d.ts +21 -0
  88. package/dist/features/editor/components/Toolbar.vue.d.ts.map +1 -0
  89. package/dist/features/editor/composables/useClickHandlers.d.ts +8 -0
  90. package/dist/features/editor/composables/useClickHandlers.d.ts.map +1 -0
  91. package/dist/features/editor/composables/useContextMenu.d.ts +20 -0
  92. package/dist/features/editor/composables/useContextMenu.d.ts.map +1 -0
  93. package/dist/features/editor/composables/useEditMode.d.ts +66 -0
  94. package/dist/features/editor/composables/useEditMode.d.ts.map +1 -0
  95. package/dist/features/editor/composables/useEditorMode.d.ts +7 -0
  96. package/dist/features/editor/composables/useEditorMode.d.ts.map +1 -0
  97. package/dist/features/editor/composables/useModeSwitcher.d.ts +7 -0
  98. package/dist/features/editor/composables/useModeSwitcher.d.ts.map +1 -0
  99. package/dist/features/editor/composables/useOutlineManager.d.ts +5 -0
  100. package/dist/features/editor/composables/useOutlineManager.d.ts.map +1 -0
  101. package/dist/features/images-manager/components/ImagesManagerPanel.vue.d.ts +12 -0
  102. package/dist/features/images-manager/components/ImagesManagerPanel.vue.d.ts.map +1 -0
  103. package/dist/features/images-manager/composables/useImagesManager.d.ts +47 -0
  104. package/dist/features/images-manager/composables/useImagesManager.d.ts.map +1 -0
  105. package/dist/features/parent-selector/composables/useParentSelector.d.ts +9 -0
  106. package/dist/features/parent-selector/composables/useParentSelector.d.ts.map +1 -0
  107. package/dist/features/parts-manager/components/MonacoEditor.vue.d.ts +20 -0
  108. package/dist/features/parts-manager/components/MonacoEditor.vue.d.ts.map +1 -0
  109. package/dist/features/parts-manager/components/PartsManagerPanel.vue.d.ts +10 -0
  110. package/dist/features/parts-manager/components/PartsManagerPanel.vue.d.ts.map +1 -0
  111. package/dist/features/parts-manager/composables/usePartsManager.d.ts +190 -0
  112. package/dist/features/parts-manager/composables/usePartsManager.d.ts.map +1 -0
  113. package/dist/features/preview/PreviewArea.vue.d.ts +15 -0
  114. package/dist/features/preview/PreviewArea.vue.d.ts.map +1 -0
  115. package/dist/features/reorder/components/ReorderPanel.vue.d.ts +14 -0
  116. package/dist/features/reorder/components/ReorderPanel.vue.d.ts.map +1 -0
  117. package/dist/features/reorder/composables/useReorderMode.d.ts +9 -0
  118. package/dist/features/reorder/composables/useReorderMode.d.ts.map +1 -0
  119. package/dist/footer.html +10 -0
  120. package/dist/header.html +10 -0
  121. package/dist/i18n/index.d.ts +454 -0
  122. package/dist/i18n/index.d.ts.map +1 -0
  123. package/dist/i18n/locales/en.d.ts +231 -0
  124. package/dist/i18n/locales/en.d.ts.map +1 -0
  125. package/dist/i18n/locales/ja.d.ts +223 -0
  126. package/dist/i18n/locales/ja.d.ts.map +1 -0
  127. package/dist/images/customer-avatar.jpg +0 -0
  128. package/dist/images/default-avatar.jpg +0 -0
  129. package/dist/images/default.jpg +0 -0
  130. package/dist/images/hero-bg.jpg +0 -0
  131. package/dist/images/kv_image.jpg +0 -0
  132. package/dist/images/page-specific-hero.jpg +0 -0
  133. package/dist/images/sample-1.jpg +0 -0
  134. package/dist/images/sample-2.jpg +0 -0
  135. package/dist/images/sample-3.jpg +0 -0
  136. package/dist/images/zcode_top_01.png +0 -0
  137. package/dist/index.d.ts +6 -0
  138. package/dist/index.d.ts.map +1 -0
  139. package/dist/js/accordion.js +24 -0
  140. package/dist/js/common.js +1093 -0
  141. package/dist/types/index.d.ts +96 -0
  142. package/dist/types/index.d.ts.map +1 -0
  143. package/dist/web-component.d.ts +14 -0
  144. package/dist/web-component.d.ts.map +1 -0
  145. package/dist/web-components/zcode-cms.d.ts +29 -0
  146. package/dist/web-components/zcode-cms.d.ts.map +1 -0
  147. package/dist/web-components/zcode-editor.d.ts +29 -0
  148. package/dist/web-components/zcode-editor.d.ts.map +1 -0
  149. package/dist/zerocode.es.js +28710 -0
  150. package/dist/zerocode.es.js.map +1 -0
  151. package/dist/zerocode.umd.js +490 -0
  152. package/dist/zerocode.umd.js.map +1 -0
  153. package/dist/zerocodejs.css +1 -0
  154. package/package.json +94 -0
@@ -0,0 +1,396 @@
1
+ /* ZeroCode.js - docs.html 専用CSS */
2
+
3
+ /* ドキュメントページ専用のスタイル */
4
+ .header-content {
5
+ max-width: 1400px;
6
+ }
7
+
8
+ /* ドキュメントコンテナ */
9
+ .docs-container {
10
+ display: flex;
11
+ max-width: 1400px;
12
+ margin: 0 auto;
13
+ min-height: calc(100vh - 60px);
14
+ }
15
+
16
+ /* サイドバー */
17
+ .docs-sidebar {
18
+ width: 280px;
19
+ padding: 24px 0;
20
+ border-right: 1px solid #e0e0e0;
21
+ position: sticky;
22
+ top: 60px;
23
+ height: calc(100vh - 60px);
24
+ overflow-y: auto;
25
+ background: #fafafa;
26
+ }
27
+
28
+ /* 検索ボックス */
29
+ .docs-search-section {
30
+ padding: 0 20px 20px;
31
+ border-bottom: 1px solid #e0e0e0;
32
+ margin-bottom: 20px;
33
+ }
34
+
35
+ .docs-search-input {
36
+ width: 100%;
37
+ padding: 10px 12px;
38
+ border: 1px solid #ddd;
39
+ border-radius: 6px;
40
+ font-size: 14px;
41
+ background: white;
42
+ transition: all 0.2s;
43
+ }
44
+
45
+ .docs-search-input:focus {
46
+ outline: none;
47
+ border-color: #3498db;
48
+ box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
49
+ }
50
+
51
+ .docs-search-results {
52
+ margin-top: 8px;
53
+ max-height: 300px;
54
+ overflow-y: auto;
55
+ display: none;
56
+ }
57
+
58
+ .docs-search-results.has-results {
59
+ display: block;
60
+ }
61
+
62
+ .docs-search-result-item {
63
+ padding: 8px 12px;
64
+ margin: 4px 0;
65
+ background: white;
66
+ border: 1px solid #e0e0e0;
67
+ border-radius: 4px;
68
+ cursor: pointer;
69
+ transition: all 0.2s;
70
+ font-size: 13px;
71
+ }
72
+
73
+ .docs-search-result-item:hover {
74
+ background: #f0f0f0;
75
+ border-color: #3498db;
76
+ }
77
+
78
+ .docs-search-result-item .result-title {
79
+ font-weight: 500;
80
+ color: #2c3e50;
81
+ margin-bottom: 2px;
82
+ }
83
+
84
+ .docs-search-result-item .result-path {
85
+ font-size: 11px;
86
+ color: #7f8c8d;
87
+ }
88
+
89
+ .docs-search-result-item .result-highlight {
90
+ background: #fff3cd;
91
+ padding: 0 2px;
92
+ border-radius: 2px;
93
+ }
94
+
95
+ .docs-nav-section {
96
+ margin-bottom: 32px;
97
+ padding: 0 20px;
98
+ }
99
+
100
+ .docs-nav-title {
101
+ font-size: 12px;
102
+ font-weight: 600;
103
+ color: #7f8c8d;
104
+ margin-bottom: 12px;
105
+ text-transform: uppercase;
106
+ letter-spacing: 0.5px;
107
+ }
108
+
109
+ .docs-nav-links {
110
+ display: flex;
111
+ flex-direction: column;
112
+ gap: 4px;
113
+ }
114
+
115
+ .docs-nav-link {
116
+ display: block;
117
+ padding: 6px 12px;
118
+ color: #2c3e50;
119
+ text-decoration: none;
120
+ font-size: 14px;
121
+ border-radius: 4px;
122
+ transition: all 0.2s;
123
+ }
124
+
125
+ .docs-nav-link:hover {
126
+ background: #f0f0f0;
127
+ color: #3498db;
128
+ }
129
+
130
+ .docs-nav-link.active {
131
+ background: #e3f2fd;
132
+ color: #3498db;
133
+ font-weight: 500;
134
+ }
135
+
136
+ /* 階層目次 */
137
+ .docs-nav-sub {
138
+ margin-left: 12px;
139
+ margin-top: 4px;
140
+ margin-bottom: 4px;
141
+ }
142
+
143
+ .docs-nav-link-sub {
144
+ display: block;
145
+ padding: 4px 12px;
146
+ color: #555;
147
+ text-decoration: none;
148
+ font-size: 13px;
149
+ border-radius: 4px;
150
+ transition: all 0.2s;
151
+ }
152
+
153
+ .docs-nav-link-sub:hover {
154
+ background: #f0f0f0;
155
+ color: #3498db;
156
+ }
157
+
158
+ .docs-nav-link-sub.active {
159
+ background: #e3f2fd;
160
+ color: #3498db;
161
+ font-weight: 500;
162
+ }
163
+
164
+ .docs-nav-sub-sub {
165
+ margin-left: 12px;
166
+ margin-top: 2px;
167
+ margin-bottom: 2px;
168
+ }
169
+
170
+ .docs-nav-link-sub-sub {
171
+ display: block;
172
+ padding: 3px 12px;
173
+ color: #777;
174
+ text-decoration: none;
175
+ font-size: 12px;
176
+ border-radius: 4px;
177
+ transition: all 0.2s;
178
+ }
179
+
180
+ .docs-nav-link-sub-sub:hover {
181
+ background: #f0f0f0;
182
+ color: #3498db;
183
+ }
184
+
185
+ .docs-nav-link-sub-sub.active {
186
+ background: #e3f2fd;
187
+ color: #3498db;
188
+ font-weight: 500;
189
+ }
190
+
191
+ /* パンくずリスト */
192
+ .docs-breadcrumb {
193
+ margin-bottom: 24px;
194
+ padding: 12px 0;
195
+ border-bottom: 1px solid #e0e0e0;
196
+ font-size: 14px;
197
+ }
198
+
199
+ .docs-breadcrumb a {
200
+ color: #3498db;
201
+ text-decoration: none;
202
+ }
203
+
204
+ .docs-breadcrumb a:hover {
205
+ text-decoration: underline;
206
+ }
207
+
208
+ .docs-breadcrumb-separator {
209
+ margin: 0 8px;
210
+ color: #7f8c8d;
211
+ }
212
+
213
+ .docs-breadcrumb-current {
214
+ color: #2c3e50;
215
+ font-weight: 500;
216
+ }
217
+
218
+ /* メインコンテンツ */
219
+ .docs-content {
220
+ flex: 1;
221
+ padding: 40px 60px;
222
+ max-width: 900px;
223
+ }
224
+
225
+ .docs-content h1 {
226
+ font-size: 36px;
227
+ font-weight: 600;
228
+ margin-bottom: 16px;
229
+ color: #2c3e50;
230
+ padding-bottom: 16px;
231
+ border-bottom: 1px solid #e0e0e0;
232
+ }
233
+
234
+ .docs-content h2 {
235
+ font-size: 28px;
236
+ font-weight: 600;
237
+ margin-top: 48px;
238
+ margin-bottom: 16px;
239
+ color: #2c3e50;
240
+ padding-bottom: 12px;
241
+ border-bottom: 1px solid #e0e0e0;
242
+ }
243
+
244
+ .docs-content h3 {
245
+ font-size: 22px;
246
+ font-weight: 600;
247
+ margin-top: 32px;
248
+ margin-bottom: 12px;
249
+ color: #2c3e50;
250
+ }
251
+
252
+ .docs-content h4 {
253
+ font-size: 18px;
254
+ font-weight: 600;
255
+ margin-top: 24px;
256
+ margin-bottom: 8px;
257
+ color: #2c3e50;
258
+ }
259
+
260
+ .docs-content p {
261
+ font-size: 16px;
262
+ line-height: 1.8;
263
+ margin-bottom: 16px;
264
+ color: #2c3e50;
265
+ }
266
+
267
+ .docs-content ul,
268
+ .docs-content ol {
269
+ margin: 16px 0;
270
+ padding-left: 24px;
271
+ }
272
+
273
+ .docs-content li {
274
+ font-size: 16px;
275
+ line-height: 1.8;
276
+ margin-bottom: 8px;
277
+ color: #2c3e50;
278
+ }
279
+
280
+ .docs-content code {
281
+ font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
282
+ font-size: 14px;
283
+ background: #f5f5f5;
284
+ padding: 2px 6px;
285
+ border-radius: 3px;
286
+ color: #e83e8c;
287
+ }
288
+
289
+ .docs-content pre {
290
+ background: #1e1e1e;
291
+ border-radius: 6px;
292
+ padding: 20px;
293
+ margin: 20px 0;
294
+ overflow-x: auto;
295
+ }
296
+
297
+ .docs-content pre code {
298
+ background: transparent;
299
+ padding: 0;
300
+ color: #d4d4d4;
301
+ font-size: 14px;
302
+ line-height: 1.6;
303
+ }
304
+
305
+ .docs-content blockquote {
306
+ border-left: 4px solid #3498db;
307
+ padding-left: 16px;
308
+ margin: 20px 0;
309
+ color: #7f8c8d;
310
+ font-style: italic;
311
+ }
312
+
313
+ .docs-warning {
314
+ background: #fff3cd;
315
+ border: 1px solid #ffc107;
316
+ border-radius: 6px;
317
+ padding: 16px;
318
+ margin: 20px 0;
319
+ }
320
+
321
+ .docs-warning strong {
322
+ color: #856404;
323
+ }
324
+
325
+ .docs-warning p {
326
+ margin: 0;
327
+ color: #856404;
328
+ }
329
+
330
+ .docs-info {
331
+ background: #d1ecf1;
332
+ border: 1px solid #bee5eb;
333
+ border-radius: 6px;
334
+ padding: 16px;
335
+ margin: 20px 0;
336
+ }
337
+
338
+ .docs-info strong {
339
+ color: #0c5460;
340
+ }
341
+
342
+ .docs-info p {
343
+ margin: 0;
344
+ color: #0c5460;
345
+ }
346
+
347
+ .docs-table {
348
+ width: 100%;
349
+ border-collapse: collapse;
350
+ margin: 20px 0;
351
+ }
352
+
353
+ .docs-table th,
354
+ .docs-table td {
355
+ padding: 12px;
356
+ text-align: left;
357
+ border-bottom: 1px solid #e0e0e0;
358
+ }
359
+
360
+ .docs-table th {
361
+ background: #f8f9fa;
362
+ font-weight: 600;
363
+ color: #2c3e50;
364
+ }
365
+
366
+ .docs-table td {
367
+ color: #2c3e50;
368
+ }
369
+
370
+ /* レスポンシブ */
371
+ @media (max-width: 768px) {
372
+ .docs-container {
373
+ flex-direction: column;
374
+ }
375
+
376
+ .docs-sidebar {
377
+ width: 100%;
378
+ position: static;
379
+ height: auto;
380
+ border-right: none;
381
+ border-bottom: 1px solid #e0e0e0;
382
+ }
383
+
384
+ .docs-content {
385
+ padding: 24px 20px;
386
+ }
387
+
388
+ .docs-content h1 {
389
+ font-size: 28px;
390
+ }
391
+
392
+ .docs-content h2 {
393
+ font-size: 24px;
394
+ }
395
+ }
396
+