@g1cloud/page-builder-editor 1.0.0-alpha.78 → 1.0.0-alpha.79
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/css/page-builder-editor.css +373 -0
- package/css/page-builder-viewer.css +195 -0
- package/dist/{PbPropertyEditorColor-CIbIVOH6.js → PbPropertyEditorColor-5SJkOBUx.js} +1 -1
- package/dist/{PbPropertyEditorCssLength-B-4sVDmD.js → PbPropertyEditorCssLength-CNHbyz8V.js} +1 -1
- package/dist/{PbPropertyEditorHtml-D-P-rK2d.js → PbPropertyEditorHtml-DdQPQqJb.js} +1 -1
- package/dist/{PbPropertyEditorImage-Djqz82Tj.js → PbPropertyEditorImage-D0kxh68g.js} +1 -1
- package/dist/{PbPropertyEditorMultilineText-DFfXK9Mh.js → PbPropertyEditorMultilineText-BRLH4Ayi.js} +1 -1
- package/dist/{PbPropertyEditorText-Bl87u7Hn.js → PbPropertyEditorText-DDtYWGlr.js} +1 -1
- package/dist/{PbPropertyEditorYoutube-vn68-hix.js → PbPropertyEditorYoutube-BxrZ1nyk.js} +1 -1
- package/dist/{PbWidgetAddModal-jAxxY2xD.js → PbWidgetAddModal-uVBBeNVl.js} +1 -1
- package/dist/{index-BhMJnNHk.js → index-BVTz0PeS.js} +14 -12
- package/dist/page-builder-editor.js +1 -1
- package/dist/page-builder-editor.umd.cjs +5 -3
- package/dist/style.css +369 -2
- package/package.json +8 -7
- package/scss/page-builder-editor.scss +320 -0
- package/scss/page-builder-viewer.scss +1 -0
- package/{css → scss}/page-widget.scss +1 -1
- package/{css → scss}/page.scss +0 -1
- package/{css → scss}/property-editor-image.scss +4 -3
- package/{css → scss}/property-group-editor-background.scss +3 -2
- package/{css → scss}/property-group-editor-media.scss +4 -3
- package/css/page-builder-editor.scss +0 -315
- package/css/page-builder-viewer.scss +0 -1
- package/css/variable.scss +0 -5
- package/dist/css/page-builder-editor.css +0 -388
- package/dist/css/page-builder-viewer.css +0 -1
- /package/{css → scss}/canvas.scss +0 -0
- /package/{css → scss}/page-block.scss +0 -0
- /package/{css → scss}/page-page.scss +0 -0
- /package/{css → scss}/page-section.scss +0 -0
- /package/{css → scss}/property-editor-color.scss +0 -0
- /package/{css → scss}/property-editor-html.scss +0 -0
- /package/{css → scss}/property-editor-multiline-text.scss +0 -0
- /package/{css → scss}/property-editor-number.scss +0 -0
- /package/{css → scss}/property-editor-product.scss +0 -0
- /package/{css → scss}/property-editor-readonly-text.scss +0 -0
- /package/{css → scss}/property-editor-select.scss +0 -0
- /package/{css → scss}/property-editor-text.scss +0 -0
- /package/{css → scss}/property-editor-youtube.scss +0 -0
- /package/{css → scss}/property-group-editor-border.scss +0 -0
- /package/{css → scss}/property-group-editor-margin.scss +0 -0
- /package/{css → scss}/property-group-editor-padding.scss +0 -0
- /package/{css → scss}/property-group-editor-position.scss +0 -0
- /package/{css → scss}/property-group-editor-size.scss +0 -0
- /package/{css → scss}/property-localpart.scss +0 -0
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@g1cloud/page-builder-editor",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.0-alpha.
|
|
4
|
+
"version": "1.0.0-alpha.79",
|
|
5
5
|
"engins": {
|
|
6
6
|
"node": ">= 20.0.0"
|
|
7
7
|
},
|
|
8
8
|
"files": [
|
|
9
9
|
"dist",
|
|
10
|
-
"css"
|
|
10
|
+
"css",
|
|
11
|
+
"scss"
|
|
11
12
|
],
|
|
12
13
|
"type": "module",
|
|
13
14
|
"module": "dist/page-builder-editor.js",
|
|
@@ -16,7 +17,7 @@
|
|
|
16
17
|
"author": "zag@g1project.net",
|
|
17
18
|
"license": "LicenseRef-LICENSE",
|
|
18
19
|
"peerDependencies": {
|
|
19
|
-
"@g1cloud/bluesea": "5.0.0-alpha.
|
|
20
|
+
"@g1cloud/bluesea": "5.0.0-alpha.105",
|
|
20
21
|
"vue3-youtube": "^0.1.9"
|
|
21
22
|
},
|
|
22
23
|
"dependencies": {
|
|
@@ -30,7 +31,7 @@
|
|
|
30
31
|
"vue-router": "^4.4.3",
|
|
31
32
|
"vue3-click-away": "^1.2.4",
|
|
32
33
|
"yjs": "^13.6.14",
|
|
33
|
-
"@g1cloud/page-builder-viewer": "1.0.0-alpha.
|
|
34
|
+
"@g1cloud/page-builder-viewer": "1.0.0-alpha.79"
|
|
34
35
|
},
|
|
35
36
|
"devDependencies": {
|
|
36
37
|
"@types/node": "^20.12.7",
|
|
@@ -46,9 +47,9 @@
|
|
|
46
47
|
},
|
|
47
48
|
"scripts": {
|
|
48
49
|
"dev": "vite",
|
|
49
|
-
"build": "
|
|
50
|
-
"build:
|
|
51
|
-
"build:scss
|
|
50
|
+
"build": "pnpm build:vue && pnpm build:scss",
|
|
51
|
+
"build:vue": "vue-tsc && vite build",
|
|
52
|
+
"build:scss": "sass scss/page-builder-editor.scss:css/page-builder-editor.css --no-source-map && sass scss/page-builder-viewer.scss:css/page-builder-viewer.css --no-source-map",
|
|
52
53
|
"preview": "vite preview"
|
|
53
54
|
}
|
|
54
55
|
}
|
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
.pb-editor {
|
|
2
|
+
--color-canvas-frame-bg: #aaa;
|
|
3
|
+
|
|
4
|
+
height: 100%;
|
|
5
|
+
|
|
6
|
+
.pb-menu {
|
|
7
|
+
width: 100%;
|
|
8
|
+
|
|
9
|
+
.pb-toolbar {
|
|
10
|
+
margin: 0 -8px;
|
|
11
|
+
|
|
12
|
+
.pb-tool-button-group {
|
|
13
|
+
&::after {
|
|
14
|
+
content: '';
|
|
15
|
+
margin: 0 8px;
|
|
16
|
+
height: 80%;
|
|
17
|
+
border-right: 1px solid var(--border-light);
|
|
18
|
+
align-self: center;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.pb-tool-button {
|
|
22
|
+
padding: 2px;
|
|
23
|
+
margin: 0 2px;
|
|
24
|
+
|
|
25
|
+
.tool-button {
|
|
26
|
+
width: 28px;
|
|
27
|
+
height: 28px;
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
justify-content: center;
|
|
31
|
+
|
|
32
|
+
.bs-clickable {
|
|
33
|
+
user-select: none;
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
|
|
36
|
+
&:hover {
|
|
37
|
+
filter: opacity(75%);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&:active {
|
|
41
|
+
filter: opacity(50%);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&.disabled {
|
|
45
|
+
filter: opacity(40%)
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.pb-editor-body {
|
|
55
|
+
padding: 8px 0 0;
|
|
56
|
+
height: 1px;
|
|
57
|
+
|
|
58
|
+
@import './canvas';
|
|
59
|
+
|
|
60
|
+
.bs-tab-sheet {
|
|
61
|
+
.tab-bar {
|
|
62
|
+
.tabs {
|
|
63
|
+
padding-top: 0;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.pb-navigator {
|
|
69
|
+
position: relative;
|
|
70
|
+
width: 200px;
|
|
71
|
+
height: 1px;
|
|
72
|
+
overflow-y: auto;
|
|
73
|
+
padding: 8px 0;
|
|
74
|
+
flex-grow: 1;
|
|
75
|
+
border: 1px solid var(--border-light);
|
|
76
|
+
border-right-color: var(--color-canvas-frame-bg);
|
|
77
|
+
|
|
78
|
+
&:focus {
|
|
79
|
+
outline: none;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.pb-sidebar {
|
|
84
|
+
width: 300px;
|
|
85
|
+
overflow: auto;
|
|
86
|
+
border: 1px solid var(--border-light);
|
|
87
|
+
border-left-color: var(--color-canvas-frame-bg);
|
|
88
|
+
|
|
89
|
+
.pb-sidebar-properties {
|
|
90
|
+
padding: 0;
|
|
91
|
+
|
|
92
|
+
.pb-sidebar-title {
|
|
93
|
+
padding: 8px;
|
|
94
|
+
background-color: var(--blue-bg);
|
|
95
|
+
color: var(--blue);
|
|
96
|
+
font-weight: 600;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.pb-sidebar-property-group {
|
|
100
|
+
&:not(:empty) {
|
|
101
|
+
padding: 8px;
|
|
102
|
+
border-bottom: 1px solid var(--border-light);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.group-title {
|
|
106
|
+
> label {
|
|
107
|
+
padding: 4px 0;
|
|
108
|
+
font-size: 90%;
|
|
109
|
+
font-weight: 600;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.group-editor {
|
|
114
|
+
padding: 4px 0;
|
|
115
|
+
font-size: 0.9em;
|
|
116
|
+
|
|
117
|
+
.title {
|
|
118
|
+
padding: 0 0 8px 0;
|
|
119
|
+
|
|
120
|
+
label {
|
|
121
|
+
min-width: 6em;
|
|
122
|
+
max-width: 6em;
|
|
123
|
+
padding-right: 0.5em;
|
|
124
|
+
font-weight: bold;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.sub-title {
|
|
129
|
+
label {
|
|
130
|
+
min-width: 6em;
|
|
131
|
+
max-width: 6em;
|
|
132
|
+
padding-right: 0.5em;
|
|
133
|
+
font-weight: 400;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.property-editor {
|
|
139
|
+
padding: 4px 0;
|
|
140
|
+
font-size: 0.9em;
|
|
141
|
+
|
|
142
|
+
> .title {
|
|
143
|
+
padding: 0 0 8px 0;
|
|
144
|
+
|
|
145
|
+
> label {
|
|
146
|
+
min-width: 6em;
|
|
147
|
+
max-width: 6em;
|
|
148
|
+
padding-right: 0.5em;
|
|
149
|
+
font-weight: 600;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.property-editor:nth-child(n+2) {
|
|
155
|
+
margin-top: 4px
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
@import "./property-editor-color";
|
|
159
|
+
@import "./property-editor-image";
|
|
160
|
+
@import "./property-editor-multiline-text";
|
|
161
|
+
@import "./property-editor-product";
|
|
162
|
+
@import "./property-editor-readonly-text";
|
|
163
|
+
@import "./property-editor-select";
|
|
164
|
+
@import "./property-editor-text";
|
|
165
|
+
@import "./property-editor-number";
|
|
166
|
+
@import "./property-editor-html";
|
|
167
|
+
|
|
168
|
+
@import "./property-group-editor-background";
|
|
169
|
+
@import "./property-group-editor-border";
|
|
170
|
+
@import "./property-group-editor-position";
|
|
171
|
+
@import "./property-group-editor-size";
|
|
172
|
+
@import "./property-group-editor-media";
|
|
173
|
+
|
|
174
|
+
@import "./property-localpart";
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.pb-color-picker {
|
|
180
|
+
display: inline-flex;
|
|
181
|
+
position: relative;
|
|
182
|
+
|
|
183
|
+
.buttons {
|
|
184
|
+
display: flex;
|
|
185
|
+
padding: 0;
|
|
186
|
+
|
|
187
|
+
button {
|
|
188
|
+
width: 24px;
|
|
189
|
+
height: 24px;
|
|
190
|
+
display: flex;
|
|
191
|
+
justify-content: center;
|
|
192
|
+
align-items: center;
|
|
193
|
+
|
|
194
|
+
&.none {
|
|
195
|
+
position: relative;
|
|
196
|
+
overflow: hidden;
|
|
197
|
+
|
|
198
|
+
&::after {
|
|
199
|
+
content: "\00A0";
|
|
200
|
+
display: inline-block;
|
|
201
|
+
width: 100px;
|
|
202
|
+
height: 1px;
|
|
203
|
+
background: red;
|
|
204
|
+
position: absolute;
|
|
205
|
+
top: 50%;
|
|
206
|
+
left: 50%;
|
|
207
|
+
transform: translate(-50%, -50%) rotate(45deg);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
&.picker-button {
|
|
212
|
+
border: 1px solid #cccccc;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
i {
|
|
216
|
+
font-size: 1.4rem;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.sketch-wrap {
|
|
222
|
+
width: 220px;
|
|
223
|
+
position: absolute;
|
|
224
|
+
z-index: 10;
|
|
225
|
+
left: -12px;
|
|
226
|
+
top: 24px;
|
|
227
|
+
white-space: break-spaces;
|
|
228
|
+
text-align: left;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.pb-part-add-modal {
|
|
233
|
+
.section-title {
|
|
234
|
+
font-weight: 700;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.group {
|
|
238
|
+
|
|
239
|
+
.part {
|
|
240
|
+
@extend .bs-clickable;
|
|
241
|
+
border: 1px solid var(--border-light);
|
|
242
|
+
border-radius: 4px;
|
|
243
|
+
padding: 8px 16px;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.pb-html-editor-modal {
|
|
249
|
+
.preview {
|
|
250
|
+
width: 50%;
|
|
251
|
+
|
|
252
|
+
.content {
|
|
253
|
+
border: solid 1px #ccc;
|
|
254
|
+
|
|
255
|
+
iframe {
|
|
256
|
+
width: 100%;
|
|
257
|
+
height: 100%;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.editor {
|
|
263
|
+
width: 50%;
|
|
264
|
+
|
|
265
|
+
.bs-tab-sheet > :nth-child(2) {
|
|
266
|
+
height: 0;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.tags {
|
|
270
|
+
height: 60%;
|
|
271
|
+
|
|
272
|
+
.content {
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.style {
|
|
277
|
+
height: 40%;
|
|
278
|
+
|
|
279
|
+
.content {
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.bs-code-editor {
|
|
284
|
+
height: 100%;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.buttons {
|
|
289
|
+
text-align: center;
|
|
290
|
+
|
|
291
|
+
button {
|
|
292
|
+
color: #fff;
|
|
293
|
+
border: none;
|
|
294
|
+
padding: 4px 12px;
|
|
295
|
+
cursor: pointer;
|
|
296
|
+
line-height: 1;
|
|
297
|
+
height: 28px;
|
|
298
|
+
background-color: #1f8fff;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.pb-youtube-modal {
|
|
304
|
+
.flex-grow-1.overflow-auto {
|
|
305
|
+
overflow: hidden !important;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
button {
|
|
309
|
+
color: #fff;
|
|
310
|
+
border: none;
|
|
311
|
+
padding: 4px 12px;
|
|
312
|
+
cursor: pointer;
|
|
313
|
+
line-height: 1;
|
|
314
|
+
height: 28px;
|
|
315
|
+
background-color: #1f8fff;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
}
|
|
320
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@use "../../viewer/scss/page-builder-viewer.scss";
|
package/{css → scss}/page.scss
RENAMED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
.property-editor-image {
|
|
2
2
|
button.select-button {
|
|
3
|
-
color:
|
|
3
|
+
color: var(--white);
|
|
4
4
|
border: none;
|
|
5
5
|
padding: 4px 12px;
|
|
6
6
|
cursor: pointer;
|
|
7
7
|
line-height: 1;
|
|
8
8
|
width: 120px;
|
|
9
|
-
height:
|
|
10
|
-
background-color:
|
|
9
|
+
height: 26px;
|
|
10
|
+
background-color: var(--primary);
|
|
11
|
+
border-radius: 2px;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
.input-area {
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
.group-editor-media {
|
|
2
2
|
button.select-button {
|
|
3
|
-
color:
|
|
3
|
+
color: var(--white);
|
|
4
4
|
border: none;
|
|
5
5
|
padding: 4px 12px;
|
|
6
6
|
cursor: pointer;
|
|
7
7
|
line-height: 1;
|
|
8
8
|
width: 120px;
|
|
9
|
-
height:
|
|
10
|
-
background-color:
|
|
9
|
+
height: 26px;
|
|
10
|
+
background-color: var(--primary);
|
|
11
|
+
border-radius: 2px;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
.input-area {
|