zerocodejs 1.0.1-beta.1 → 1.0.1-beta.10

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 (68) hide show
  1. package/README.ja.md +164 -0
  2. package/README.md +97 -96
  3. package/dist/components/ZeroCodeEditor.vue.d.ts.map +1 -1
  4. package/dist/core/composables/useZeroCodeRenderer.d.ts.map +1 -1
  5. package/dist/core/utils/edit-panel-fields.d.ts +17 -0
  6. package/dist/core/utils/edit-panel-fields.d.ts.map +1 -0
  7. package/dist/core/utils/template-processor.d.ts +6 -1
  8. package/dist/core/utils/template-processor.d.ts.map +1 -1
  9. package/dist/features/editor/components/EditPanel.vue.d.ts +1 -0
  10. package/dist/features/editor/components/EditPanel.vue.d.ts.map +1 -1
  11. package/dist/features/editor/composables/useEditMode.d.ts +4 -16
  12. package/dist/features/editor/composables/useEditMode.d.ts.map +1 -1
  13. package/dist/features/parts-manager/components/PartsManagerPanel.vue.d.ts.map +1 -1
  14. package/dist/features/parts-manager/composables/usePartsManager.d.ts +1 -0
  15. package/dist/features/parts-manager/composables/usePartsManager.d.ts.map +1 -1
  16. package/dist/features/preview/PreviewArea.vue.d.ts.map +1 -1
  17. package/dist/i18n/index.d.ts +18 -0
  18. package/dist/i18n/index.d.ts.map +1 -1
  19. package/dist/i18n/locales/en.d.ts +9 -0
  20. package/dist/i18n/locales/en.d.ts.map +1 -1
  21. package/dist/i18n/locales/ja.d.ts +9 -0
  22. package/dist/i18n/locales/ja.d.ts.map +1 -1
  23. package/dist/zerocode.es.js +13733 -14317
  24. package/dist/zerocode.umd.js +57 -62
  25. package/dist/zerocodejs.css +1 -1
  26. package/package.json +6 -5
  27. package/dist/__tests__/fixtures/sample-data.d.ts +0 -23
  28. package/dist/__tests__/fixtures/sample-data.d.ts.map +0 -1
  29. package/dist/__tests__/fixtures/sample-templates.d.ts +0 -25
  30. package/dist/__tests__/fixtures/sample-templates.d.ts.map +0 -1
  31. package/dist/core/utils/component-initializer.test.d.ts +0 -2
  32. package/dist/core/utils/component-initializer.test.d.ts.map +0 -1
  33. package/dist/core/utils/field-extractor.test.d.ts +0 -2
  34. package/dist/core/utils/field-extractor.test.d.ts.map +0 -1
  35. package/dist/core/utils/image-utils.test.d.ts +0 -2
  36. package/dist/core/utils/image-utils.test.d.ts.map +0 -1
  37. package/dist/core/utils/path-utils.test.d.ts +0 -2
  38. package/dist/core/utils/path-utils.test.d.ts.map +0 -1
  39. package/dist/core/utils/storage.test.d.ts +0 -2
  40. package/dist/core/utils/storage.test.d.ts.map +0 -1
  41. package/dist/core/utils/template-processor.test.d.ts +0 -2
  42. package/dist/core/utils/template-processor.test.d.ts.map +0 -1
  43. package/dist/core/utils/template-utils.test.d.ts +0 -2
  44. package/dist/core/utils/template-utils.test.d.ts.map +0 -1
  45. package/dist/core/utils/validation.test.d.ts +0 -2
  46. package/dist/core/utils/validation.test.d.ts.map +0 -1
  47. package/dist/css/common.css +0 -677
  48. package/dist/css/docs.css +0 -396
  49. package/dist/css/index.css +0 -1039
  50. package/dist/css/page.css +0 -290
  51. package/dist/css/sample.css +0 -26
  52. package/dist/css/site-common.css +0 -218
  53. package/dist/footer.html +0 -10
  54. package/dist/header.html +0 -10
  55. package/dist/images/customer-avatar.jpg +0 -0
  56. package/dist/images/default-avatar.jpg +0 -0
  57. package/dist/images/default.jpg +0 -0
  58. package/dist/images/hero-bg.jpg +0 -0
  59. package/dist/images/kv_image.jpg +0 -0
  60. package/dist/images/page-specific-hero.jpg +0 -0
  61. package/dist/images/sample-1.jpg +0 -0
  62. package/dist/images/sample-2.jpg +0 -0
  63. package/dist/images/sample-3.jpg +0 -0
  64. package/dist/images/zcode_top_01.png +0 -0
  65. package/dist/js/accordion.js +0 -24
  66. package/dist/js/common.js +0 -1093
  67. package/dist/zerocode.es.js.map +0 -1
  68. package/dist/zerocode.umd.js.map +0 -1
package/dist/css/page.css DELETED
@@ -1,290 +0,0 @@
1
- .kv {
2
- margin: 0 auto;
3
- }
4
-
5
- .kv__image {
6
- border: 1px solid var(--c-color-gray-2);
7
- border-radius: var(--c-radius);
8
- overflow: hidden;
9
- background: var(--c-color-white);
10
- box-shadow: var(--c-shadow);
11
- }
12
-
13
- .kv__img {
14
- width: 100%;
15
- height: auto;
16
- display: block;
17
- }
18
-
19
- .message__text {
20
- color: var(--c-color-gray);
21
- font-size: 16px;
22
- line-height: 1.9;
23
- text-align: center;
24
- }
25
-
26
- .message__text p + p {
27
- margin-top: 0.9em;
28
- }
29
-
30
- .section {
31
- padding: 48px 0;
32
- }
33
-
34
- .section__head {
35
- display: flex;
36
- flex-direction: column;
37
- align-items: center;
38
- justify-content: center;
39
- margin-bottom: 14px;
40
- text-align: center;
41
- }
42
-
43
- .section__title {
44
- color: var(--c-color-black);
45
- font-weight: 800;
46
- font-size: 30px;
47
- line-height: 1.3;
48
- letter-spacing: -0.01em;
49
- }
50
-
51
- .section__subtitle {
52
- margin-top: 6px;
53
- color: var(--c-color-gray);
54
- font-size: 14px;
55
- font-weight: 600;
56
- letter-spacing: 0.05em;
57
- text-transform: uppercase;
58
- }
59
-
60
- .section__contents {
61
- width: 100%;
62
- }
63
-
64
- .section__items {
65
- display: flex;
66
- flex-direction: column;
67
- gap: 12px;
68
- }
69
-
70
- .section__items--rows {
71
- border: 1px solid var(--c-color-gray-2);
72
- overflow: hidden;
73
- background: var(--c-color-white);
74
- box-shadow: var(--c-shadow);
75
- }
76
-
77
- .numbered {
78
- width: 100%;
79
- }
80
-
81
- .numbered__items {
82
- display: flex;
83
- flex-direction: column;
84
- gap: 12px;
85
- counter-reset: numbered-item;
86
- }
87
-
88
- .numbered-item {
89
- background-color: var(--c-color-white);
90
- position: relative;
91
- padding: 16px;
92
- padding-left: 40px;
93
- counter-increment: numbered-item;
94
- }
95
-
96
- .numbered-item__number {
97
- position: absolute;
98
- top: 20px;
99
- left: 0;
100
- color: rgb(245, 199, 124);
101
- font-size: 30px;
102
- line-height: 1;
103
- }
104
-
105
- .numbered-item__number::before {
106
- content: counter(numbered-item);
107
- }
108
-
109
- .numbered-item__title {
110
- color: var(--c-color-black);
111
- font-weight: 800;
112
- font-size: 16px;
113
- line-height: 1.4;
114
- margin-bottom: 8px;
115
- }
116
-
117
- .numbered-item__text {
118
- color: var(--c-color-gray);
119
- font-size: 14px;
120
- line-height: 1.75;
121
- }
122
-
123
- .event {
124
- width: 100%;
125
- }
126
-
127
- .event__items {
128
- display: flex;
129
- flex-direction: column;
130
- gap: 10px;
131
- }
132
-
133
- .event-item {
134
- border: 1px solid var(--c-color-gray-2);
135
- border-radius: var(--c-radius);
136
- background: var(--c-color-white);
137
- box-shadow: var(--c-shadow);
138
- padding: 14px 16px;
139
- }
140
-
141
- .event-item__meta {
142
- display: flex;
143
- align-items: center;
144
- justify-content: space-between;
145
- gap: 10px;
146
- margin-bottom: 6px;
147
- }
148
-
149
- .event-item__date {
150
- color: rgba(100, 116, 139, 0.95);
151
- font-size: 12px;
152
- font-weight: 700;
153
- letter-spacing: 0.02em;
154
- }
155
-
156
- .event-item__tags {
157
- display: flex;
158
- gap: 6px;
159
- flex-wrap: wrap;
160
- }
161
-
162
- .event-item__title {
163
- margin-top: 6px;
164
- color: var(--c-color-black);
165
- font-weight: 800;
166
- font-size: 16px;
167
- line-height: 1.4;
168
- }
169
-
170
- .event-item__text {
171
- margin-top: 8px;
172
- color: var(--c-color-gray);
173
- font-size: 14px;
174
- line-height: 1.75;
175
- }
176
-
177
- .event-item__actions {
178
- margin-top: 10px;
179
- }
180
-
181
- .info {
182
- width: 100%;
183
- }
184
-
185
- .info__items {
186
- border: 1px solid var(--c-color-gray-2);
187
- overflow: hidden;
188
- background: var(--c-color-white);
189
- box-shadow: var(--c-shadow);
190
- }
191
-
192
- .info-item {
193
- display: grid;
194
- grid-template-columns: 120px 1fr;
195
- gap: 12px;
196
- padding: 12px 14px;
197
- border-top: 1px solid var(--c-color-gray-2);
198
- background: var(--c-color-white);
199
- }
200
-
201
- .info__items .info-item:first-child {
202
- border-top: none;
203
- }
204
-
205
- .info-item__label {
206
- color: rgba(100, 116, 139, 0.95);
207
- font-size: 12px;
208
- font-weight: 800;
209
- letter-spacing: 0.02em;
210
- }
211
-
212
- .info-item__value {
213
- color: var(--c-color-black);
214
- font-size: 14px;
215
- line-height: 1.7;
216
- }
217
-
218
- .tag {
219
- display: inline-flex;
220
- align-items: center;
221
- padding: 6px 10px;
222
- border-radius: 999px;
223
- border: 1px solid rgba(37, 99, 235, 0.25);
224
- background: rgba(37, 99, 235, 0.06);
225
- color: var(--c-color-red);
226
- font-size: 12px;
227
- font-weight: 800;
228
- }
229
-
230
- .faq {
231
- display: flex;
232
- flex-direction: column;
233
- gap: 12px;
234
- }
235
-
236
- .faq__items {
237
- display: flex;
238
- flex-direction: column;
239
- gap: 12px;
240
- }
241
-
242
- .faq-item {
243
- border: 1px solid rgba(15, 23, 42, 0.14);
244
- border-radius: 8px;
245
- overflow: hidden;
246
- background: white;
247
- }
248
-
249
- .faq-item__q {
250
- width: 100%;
251
- padding: 16px 20px;
252
- text-align: left;
253
- font-size: 16px;
254
- font-weight: 600;
255
- color: #0b1220;
256
- background: white;
257
- border: none;
258
- cursor: pointer;
259
- display: flex;
260
- align-items: center;
261
- justify-content: space-between;
262
- transition: background 0.2s;
263
- }
264
-
265
- .faq-item__q:hover {
266
- background: #f9fafb;
267
- }
268
-
269
- .faq-item__q::after {
270
- content: '+';
271
- font-size: 20px;
272
- font-weight: 300;
273
- color: #64748b;
274
- transition: transform 0.2s;
275
- }
276
-
277
- .faq-item.s_open .faq-item__q::after {
278
- transform: rotate(45deg);
279
- }
280
-
281
- .faq-item__a {
282
- padding: 0 20px 16px;
283
- font-size: 14px;
284
- line-height: 1.8;
285
- color: #64748b;
286
- }
287
-
288
- .faq-item__a p + p {
289
- margin-top: 1em;
290
- }
@@ -1,26 +0,0 @@
1
- .test-header {
2
- background: #3498db;
3
- }
4
-
5
- .zcode-callsite-controls {
6
- position: fixed;
7
- left: 16px;
8
- bottom: 76px;
9
- z-index: 999999;
10
- display: grid;
11
- gap: 8px;
12
- }
13
-
14
- .zcode-callsite-btn {
15
- padding: 10px 12px;
16
- border-radius: 10px;
17
- border: 1px solid rgba(15, 23, 42, 0.2);
18
- background: #fff;
19
- color: #0b1220;
20
- font-weight: 700;
21
- cursor: pointer;
22
- }
23
-
24
- .zcode-callsite-btn:hover {
25
- background: rgba(15, 23, 42, 0.03);
26
- }
@@ -1,218 +0,0 @@
1
- /* ZeroCode.js - サイト共通CSS */
2
-
3
- /* 基本リセット */
4
- * {
5
- margin: 0;
6
- padding: 0;
7
- box-sizing: border-box;
8
- }
9
-
10
- body {
11
- font-family:
12
- 'Inter',
13
- 'Noto Sans JP',
14
- -apple-system,
15
- BlinkMacSystemFont,
16
- 'Segoe UI',
17
- 'Roboto',
18
- 'Oxygen',
19
- 'Ubuntu',
20
- 'Cantarell',
21
- 'Fira Sans',
22
- 'Droid Sans',
23
- 'Helvetica Neue',
24
- sans-serif;
25
- line-height: 1.6;
26
- color: #2c3e50;
27
- background: #ffffff;
28
- min-height: 100vh;
29
- position: relative;
30
- }
31
-
32
- /* 背景アニメーション(画面全体) */
33
- .bg-particles {
34
- position: fixed;
35
- top: 0;
36
- left: 0;
37
- width: 100%;
38
- height: 100%;
39
- pointer-events: none;
40
- z-index: 0;
41
- overflow: hidden;
42
- }
43
-
44
- .bg-particle {
45
- position: absolute;
46
- border-radius: 50%;
47
- animation: bgFloat 25s infinite ease-in-out;
48
- filter: blur(3px);
49
- }
50
-
51
- .bg-particle:nth-child(1) {
52
- width: 500px;
53
- height: 500px;
54
- top: -200px;
55
- left: -150px;
56
- background: rgba(52, 152, 219, 0.08);
57
- }
58
- .bg-particle:nth-child(2) {
59
- width: 400px;
60
- height: 400px;
61
- top: 25%;
62
- right: -150px;
63
- background: rgba(155, 89, 182, 0.06);
64
- animation-delay: -5s;
65
- }
66
- .bg-particle:nth-child(3) {
67
- width: 350px;
68
- height: 350px;
69
- bottom: 5%;
70
- left: 15%;
71
- background: rgba(46, 204, 113, 0.06);
72
- animation-delay: -10s;
73
- }
74
- .bg-particle:nth-child(4) {
75
- width: 280px;
76
- height: 280px;
77
- top: 45%;
78
- left: 5%;
79
- background: rgba(241, 196, 15, 0.05);
80
- animation-delay: -15s;
81
- }
82
- .bg-particle:nth-child(5) {
83
- width: 450px;
84
- height: 450px;
85
- bottom: -150px;
86
- right: 5%;
87
- background: rgba(231, 76, 60, 0.05);
88
- animation-delay: -8s;
89
- }
90
- .bg-particle:nth-child(6) {
91
- width: 300px;
92
- height: 300px;
93
- top: 10%;
94
- left: 35%;
95
- background: rgba(52, 73, 94, 0.04);
96
- animation-delay: -12s;
97
- }
98
-
99
- @keyframes bgFloat {
100
- 0%,
101
- 100% {
102
- transform: translate(0, 0) scale(1);
103
- }
104
- 25% {
105
- transform: translate(50px, -50px) scale(1.1);
106
- }
107
- 50% {
108
- transform: translate(-40px, 40px) scale(0.9);
109
- }
110
- 75% {
111
- transform: translate(30px, 20px) scale(1.05);
112
- }
113
- }
114
-
115
- /* コンテンツを前面に */
116
- .header,
117
- .hero,
118
- .section,
119
- .footer {
120
- position: relative;
121
- z-index: 1;
122
- }
123
-
124
- /* ヘッダー */
125
- .header {
126
- background: rgba(255, 255, 255, 0.9);
127
- border-bottom: 1px solid #e0e0e0;
128
- padding: 12px 0;
129
- position: sticky;
130
- top: 0;
131
- z-index: 100;
132
- backdrop-filter: blur(10px);
133
- }
134
-
135
- .header-content {
136
- max-width: 1200px;
137
- margin: 0 auto;
138
- padding: 0 20px;
139
- display: flex;
140
- justify-content: space-between;
141
- align-items: center;
142
- }
143
-
144
- .header-logo {
145
- font-size: 22px;
146
- font-weight: 700;
147
- color: #2c3e50;
148
- text-decoration: none;
149
- text-shadow:
150
- 1px 1px 0 rgba(255, 255, 255, 0.8),
151
- 2px 2px 4px rgba(0, 0, 0, 0.15);
152
- letter-spacing: -0.5px;
153
- }
154
-
155
- .header-nav {
156
- display: flex;
157
- gap: 24px;
158
- align-items: center;
159
- }
160
-
161
- .header-link {
162
- font-size: 15px;
163
- color: #2c3e50;
164
- text-decoration: none;
165
- font-weight: 500;
166
- transition: color 0.2s;
167
- }
168
-
169
- .header-link:hover {
170
- color: #3498db;
171
- }
172
-
173
- /* フッター */
174
- .footer {
175
- background: #2c3e50;
176
- color: #ecf0f1;
177
- padding: 40px 20px;
178
- text-align: center;
179
- }
180
-
181
- .footer-content {
182
- max-width: 1200px;
183
- margin: 0 auto;
184
- }
185
-
186
- .footer-links {
187
- display: flex;
188
- gap: 24px;
189
- justify-content: center;
190
- margin-bottom: 20px;
191
- flex-wrap: wrap;
192
- }
193
-
194
- .footer-link {
195
- color: #ecf0f1;
196
- text-decoration: none;
197
- transition: color 0.2s;
198
- }
199
-
200
- .footer-link:hover {
201
- color: #3498db;
202
- }
203
-
204
- .footer-copyright {
205
- font-size: 14px;
206
- color: #95a5a6;
207
- }
208
-
209
- /* レスポンシブ */
210
- @media (max-width: 768px) {
211
- .header-nav {
212
- gap: 16px;
213
- }
214
-
215
- .header-link {
216
- font-size: 14px;
217
- }
218
- }
package/dist/footer.html DELETED
@@ -1,10 +0,0 @@
1
- <footer class="footer">
2
- <div class="footer-content">
3
- <div class="footer-links">
4
- <a href="https://github.com/atsumi-code/zerocode" class="footer-link" target="_blank" rel="noopener noreferrer">GitHub</a>
5
- <a href="https://github.com/atsumi-code/zerocode/blob/main/LICENSE" class="footer-link" target="_blank" rel="noopener noreferrer">ライセンス</a>
6
- </div>
7
- <div class="footer-copyright">© 2025 ZeroCode.js</div>
8
- </div>
9
- </footer>
10
-
package/dist/header.html DELETED
@@ -1,10 +0,0 @@
1
- <header class="header">
2
- <div class="header-content">
3
- <a href="./" class="header-logo">ZeroCode.js</a>
4
- <nav class="header-nav">
5
- <a href="./#demo" class="header-link">デモ</a>
6
- <a href="./docs.html" class="header-link">ドキュメント</a>
7
- </nav>
8
- </div>
9
- </header>
10
-
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,24 +0,0 @@
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
- })