@g1cloud/page-builder-editor 1.0.0-alpha.8 → 1.0.0-alpha.81

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 (119) hide show
  1. package/css/page-builder-editor.css +385 -0
  2. package/css/page-builder-viewer.css +195 -0
  3. package/dist/PageBuilderEditor.vue.d.ts +22 -11
  4. package/dist/PbHtmlEditorModal-C0MLYY66.js +193 -0
  5. package/dist/PbPropertyEditorBoolean-c5CNiTpt.js +38 -0
  6. package/dist/{PbPropertyEditorColor-BonGhf7Z.js → PbPropertyEditorColor-D1Et94Ef.js} +8 -9
  7. package/dist/{PbPropertyEditorText-BWOKvwD9.js → PbPropertyEditorCssLength-vEqAkXLy.js} +10 -9
  8. package/dist/PbPropertyEditorHtml-BD1ir-xW.js +62 -0
  9. package/dist/PbPropertyEditorImage-CrtSHsie.js +106 -0
  10. package/dist/{PbPropertyEditorMultilineText-bEBZmvFa.js → PbPropertyEditorMultilineText-v01RFbU-.js} +28 -27
  11. package/dist/PbPropertyEditorNumber-B76ArSb5.js +47 -0
  12. package/dist/{PbPropertyEditorReadonlyText-Dgp_AVOD.js → PbPropertyEditorReadonlyText-BJ5qx69O.js} +6 -6
  13. package/dist/{PbPropertyEditorSelect-CWedbXJI.js → PbPropertyEditorSelect-B5sfulvx.js} +5 -6
  14. package/dist/PbPropertyEditorText-CDohV0Yq.js +50 -0
  15. package/dist/PbPropertyEditorYoutube-gZIWmCbS.js +40 -0
  16. package/dist/PbScreenSelectModal-57LXAzjs.js +69 -0
  17. package/dist/PbWidgetAddModal-CetSlzPe.js +79 -0
  18. package/dist/PbYoutubeModal-CU8sClMD.js +73 -0
  19. package/dist/components/canvas/PbCanvas.vue.d.ts +1 -1
  20. package/dist/components/depart/PbLoginDepart.vue.d.ts +3 -3
  21. package/dist/components/menu/PbMenu.vue.d.ts +16 -1
  22. package/dist/components/menu/PbToolbar.vue.d.ts +16 -1
  23. package/dist/components/menu/PbToolbarButton.vue.d.ts +3 -3
  24. package/dist/components/menu/PbToolbarButtonGroup.vue.d.ts +3 -3
  25. package/dist/components/modal/PbHtmlEditorModal.vue.d.ts +28 -0
  26. package/dist/components/modal/PbPartAddModal.vue.d.ts +4 -4
  27. package/dist/components/modal/PbScreenSelectModal.vue.d.ts +6 -0
  28. package/dist/components/modal/PbWidgetAddModal.vue.d.ts +4 -4
  29. package/dist/components/modal/PbYoutubeModal.vue.d.ts +19 -0
  30. package/dist/components/navigator/PbNavigator.vue.d.ts +1 -1
  31. package/dist/components/part/PbAddWidgetButton.vue.d.ts +1 -1
  32. package/dist/components/part/PbBlock.vue.d.ts +7 -3
  33. package/dist/components/part/PbPage.vue.d.ts +5 -5
  34. package/dist/components/part/PbPageFrame.vue.d.ts +19 -0
  35. package/dist/components/part/PbSection.vue.d.ts +7 -3
  36. package/dist/components/part/PbWidget.vue.d.ts +5 -3
  37. package/dist/components/sidebar/PbSidebar.vue.d.ts +1 -1
  38. package/dist/components/sidebar/PbSidebarProperties.vue.d.ts +1 -1
  39. package/dist/components/sidebar/PbSidebarPropertyEditor.vue.d.ts +3 -3
  40. package/dist/components/sidebar/PbSidebarPropertyGroupEditor.vue.d.ts +3 -3
  41. package/dist/components/sidebar/property/{PbPropertyEditorProduct.vue.d.ts → PbPropertyEditorBoolean.vue.d.ts} +4 -4
  42. package/dist/components/sidebar/property/PbPropertyEditorColor.vue.d.ts +4 -4
  43. package/dist/components/sidebar/property/PbPropertyEditorCssLength.vue.d.ts +23 -0
  44. package/dist/components/sidebar/property/PbPropertyEditorHtml.vue.d.ts +4 -4
  45. package/dist/components/sidebar/property/PbPropertyEditorImage.vue.d.ts +5 -9
  46. package/dist/components/sidebar/property/PbPropertyEditorMultilineText.vue.d.ts +7 -6
  47. package/dist/components/sidebar/property/PbPropertyEditorNumber.vue.d.ts +23 -0
  48. package/dist/components/sidebar/property/PbPropertyEditorReadonlyText.vue.d.ts +3 -3
  49. package/dist/components/sidebar/property/PbPropertyEditorSelect.vue.d.ts +4 -4
  50. package/dist/components/sidebar/property/PbPropertyEditorText.vue.d.ts +9 -8
  51. package/dist/components/sidebar/property/{PbPropertyLocalMarketingPart.vue.d.ts → PbPropertyEditorYoutube.vue.d.ts} +9 -9
  52. package/dist/components/sidebar/property/PbPropertyGroupEditorBackground.vue.d.ts +3 -3
  53. package/dist/components/sidebar/property/PbPropertyGroupEditorBorder.vue.d.ts +3 -3
  54. package/dist/components/sidebar/property/PbPropertyGroupEditorMargin.vue.d.ts +3 -3
  55. package/dist/components/sidebar/property/PbPropertyGroupEditorMedia.vue.d.ts +20 -0
  56. package/dist/components/sidebar/property/PbPropertyGroupEditorPadding.vue.d.ts +3 -3
  57. package/dist/components/sidebar/property/PbPropertyGroupEditorPosition.vue.d.ts +3 -3
  58. package/dist/components/sidebar/property/PbPropertyGroupEditorSize.vue.d.ts +3 -3
  59. package/dist/components/ui/PbColorPicker.vue.d.ts +16 -7
  60. package/dist/directives/vPartHandler.d.ts +1 -0
  61. package/dist/{index-CFgXLaTI.js → index-tTR7GhuX.js} +4806 -2151
  62. package/dist/index.d.ts +6 -0
  63. package/dist/model/command.d.ts +47 -34
  64. package/dist/model/context.d.ts +19 -19
  65. package/dist/model/default-part-property-group.d.ts +4 -0
  66. package/dist/model/event.d.ts +0 -56
  67. package/dist/model/model.d.ts +6 -2
  68. package/dist/model/page-builder-editor.d.ts +39 -10
  69. package/dist/model/page-builder-util.d.ts +2 -0
  70. package/dist/model/part-definintion.d.ts +2 -2
  71. package/dist/model/part-manager.d.ts +2 -1
  72. package/dist/model/part-property.d.ts +4 -3
  73. package/dist/model/plugin.d.ts +23 -0
  74. package/dist/page-builder-editor.js +20 -17
  75. package/dist/page-builder-editor.umd.cjs +5503 -2460
  76. package/dist/style.css +377 -1
  77. package/dist/text/text.d.ts +1 -0
  78. package/dist/utils/common.d.ts +1 -0
  79. package/package.json +13 -8
  80. package/scss/canvas.scss +28 -0
  81. package/{css/canvas-block.scss → scss/page-block.scss} +15 -3
  82. package/scss/page-builder-editor.scss +326 -0
  83. package/scss/page-builder-viewer.scss +1 -0
  84. package/{css/canvas-page.scss → scss/page-page.scss} +25 -16
  85. package/{css/canvas-section.scss → scss/page-section.scss} +15 -4
  86. package/scss/page-widget.scss +66 -0
  87. package/scss/page.scss +73 -0
  88. package/{css/property-editor-image.scss → scss/property-editor-html.scss} +5 -4
  89. package/scss/property-editor-image.scss +17 -0
  90. package/{css → scss}/property-editor-product.scss +4 -3
  91. package/scss/property-editor-text.scss +10 -0
  92. package/{css/property-editor-html.scss → scss/property-editor-youtube.scss} +2 -2
  93. package/{css → scss}/property-group-editor-background.scss +4 -3
  94. package/scss/property-group-editor-media.scss +17 -0
  95. package/css/bluesea.scss +0 -8244
  96. package/css/canvas-widget.scss +0 -41
  97. package/css/canvas.scss +0 -147
  98. package/css/page-builder-editor.scss +0 -265
  99. package/css/page-builder-viewer.scss +0 -1
  100. package/css/variable.scss +0 -1
  101. package/dist/HtmlEditorModal-DDoVYM6n.js +0 -94
  102. package/dist/PbPartAddModal-DuLpnV4E.js +0 -50
  103. package/dist/PbPropertyEditorHtml-DfOWZr6S.js +0 -65
  104. package/dist/PbPropertyEditorImage-Du9R6CBU.js +0 -42
  105. package/dist/PbPropertyEditorProduct-gzGulWGg.js +0 -49
  106. package/dist/PbWidgetAddModal-CQvFYzfU.js +0 -55
  107. package/dist/components/canvas/PbCanvasFrame.vue.d.ts +0 -2
  108. package/dist/components/modal/HtmlEditorModal.vue.d.ts +0 -23
  109. /package/{css → scss}/property-editor-color.scss +0 -0
  110. /package/{css → scss}/property-editor-multiline-text.scss +0 -0
  111. /package/{css/property-editor-text.scss → scss/property-editor-number.scss} +0 -0
  112. /package/{css → scss}/property-editor-readonly-text.scss +0 -0
  113. /package/{css → scss}/property-editor-select.scss +0 -0
  114. /package/{css → scss}/property-group-editor-border.scss +0 -0
  115. /package/{css → scss}/property-group-editor-margin.scss +0 -0
  116. /package/{css → scss}/property-group-editor-padding.scss +0 -0
  117. /package/{css → scss}/property-group-editor-position.scss +0 -0
  118. /package/{css → scss}/property-group-editor-size.scss +0 -0
  119. /package/{css → scss}/property-localpart.scss +0 -0
package/dist/style.css CHANGED
@@ -1,6 +1,382 @@
1
+ @charset "UTF-8";
2
+ .pb-editor {
3
+ --color-canvas-frame-bg: #aaa;
4
+ height: 100%;
5
+ }
6
+ .pb-editor .pb-menu {
7
+ width: 100%;
8
+ }
9
+ .pb-editor .pb-menu .pb-toolbar {
10
+ margin: 0 -8px;
11
+ }
12
+ .pb-editor .pb-menu .pb-toolbar .pb-tool-button-group::after {
13
+ content: "";
14
+ margin: 0 8px;
15
+ height: 80%;
16
+ border-right: 1px solid var(--border-light);
17
+ align-self: center;
18
+ }
19
+ .pb-editor .pb-menu .pb-toolbar .pb-tool-button-group .pb-tool-button {
20
+ padding: 2px;
21
+ margin: 0 2px;
22
+ }
23
+ .pb-editor .pb-menu .pb-toolbar .pb-tool-button-group .pb-tool-button .tool-button {
24
+ width: 28px;
25
+ height: 28px;
26
+ display: flex;
27
+ align-items: center;
28
+ justify-content: center;
29
+ }
30
+ .pb-editor .pb-menu .pb-toolbar .pb-tool-button-group .pb-tool-button .tool-button .bs-clickable, .pb-editor .pb-menu .pb-toolbar .pb-tool-button-group .pb-tool-button .tool-button .pb-part-add-modal .group .part, .pb-part-add-modal .group .pb-editor .pb-menu .pb-toolbar .pb-tool-button-group .pb-tool-button .tool-button .part {
31
+ user-select: none;
32
+ cursor: pointer;
33
+ }
34
+ .pb-editor .pb-menu .pb-toolbar .pb-tool-button-group .pb-tool-button .tool-button .bs-clickable:hover, .pb-editor .pb-menu .pb-toolbar .pb-tool-button-group .pb-tool-button .tool-button .pb-part-add-modal .group .part:hover, .pb-part-add-modal .group .pb-editor .pb-menu .pb-toolbar .pb-tool-button-group .pb-tool-button .tool-button .part:hover {
35
+ filter: opacity(75%);
36
+ }
37
+ .pb-editor .pb-menu .pb-toolbar .pb-tool-button-group .pb-tool-button .tool-button .bs-clickable:active, .pb-editor .pb-menu .pb-toolbar .pb-tool-button-group .pb-tool-button .tool-button .pb-part-add-modal .group .part:active, .pb-part-add-modal .group .pb-editor .pb-menu .pb-toolbar .pb-tool-button-group .pb-tool-button .tool-button .part:active {
38
+ filter: opacity(50%);
39
+ }
40
+ .pb-editor .pb-menu .pb-toolbar .pb-tool-button-group .pb-tool-button .tool-button .bs-clickable.disabled, .pb-editor .pb-menu .pb-toolbar .pb-tool-button-group .pb-tool-button .tool-button .pb-part-add-modal .group .disabled.part, .pb-part-add-modal .group .pb-editor .pb-menu .pb-toolbar .pb-tool-button-group .pb-tool-button .tool-button .disabled.part {
41
+ filter: opacity(40%);
42
+ }
1
43
  .pb-editor .pb-editor-body {
44
+ padding: 8px 0 0;
45
+ height: 1px;
46
+ }
47
+ .pb-editor .pb-editor-body .pb-canvas-wrapper {
48
+ background-color: var(--color-canvas-frame-bg);
49
+ border-top: 1px solid var(--color-canvas-frame-bg);
50
+ flex-grow: 1;
51
+ min-width: 0;
52
+ width: 0;
53
+ height: 100%;
54
+ padding: 20px;
55
+ outline: none;
56
+ overflow: auto;
57
+ }
58
+ .pb-editor .pb-editor-body .pb-canvas {
59
+ display: flex;
60
+ flex-direction: row;
61
+ transform-origin: top left;
62
+ width: fit-content;
2
63
  height: 100%;
64
+ margin: 0;
65
+ }
66
+ .pb-editor .pb-editor-body .pb-page-frame iframe.page-frame {
67
+ border: 0;
68
+ }
69
+ .pb-editor .pb-editor-body .bs-tab-sheet .tab-bar .tabs {
70
+ padding-top: 0;
71
+ }
72
+ .pb-editor .pb-editor-body .bs-horizontal-layout-resizer {
73
+ transform: scaleX(6);
74
+ }
75
+ .pb-editor .pb-editor-body .bs-horizontal-layout-resizer .resize-line {
76
+ background-color: var(--color-canvas-frame-bg);
77
+ }
78
+ .pb-editor .pb-editor-body .pb-navigator {
79
+ position: relative;
80
+ height: 1px;
81
+ overflow-y: auto;
82
+ padding: 8px 0;
83
+ flex-grow: 1;
84
+ border: 1px solid var(--border-light);
85
+ border-right: 0 none;
86
+ }
87
+ .pb-editor .pb-editor-body .pb-navigator:focus {
88
+ outline: none;
89
+ }
90
+ .pb-editor .pb-editor-body .pb-sidebar {
91
+ width: 300px;
92
+ overflow: auto;
93
+ border: 1px solid var(--border-light);
94
+ border-left: 0 none;
95
+ }
96
+ .pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties {
97
+ padding: 0;
98
+ }
99
+ .pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-title {
100
+ padding: 8px;
101
+ background-color: var(--blue-bg);
102
+ color: var(--blue);
103
+ font-weight: 600;
104
+ }
105
+ .pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group:not(:empty) {
106
+ padding: 8px;
107
+ border-bottom: 1px solid var(--border-light);
108
+ }
109
+ .pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .group-title > label {
110
+ padding: 4px 0;
111
+ font-size: 90%;
112
+ font-weight: 600;
113
+ }
114
+ .pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .group-editor {
115
+ padding: 4px 0;
116
+ font-size: 0.9em;
117
+ }
118
+ .pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .group-editor .title {
119
+ padding: 0 0 8px 0;
120
+ }
121
+ .pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .group-editor .title label {
122
+ min-width: 6em;
123
+ max-width: 6em;
124
+ padding-right: 0.5em;
125
+ font-weight: bold;
126
+ }
127
+ .pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .group-editor .sub-title label {
128
+ min-width: 6em;
129
+ max-width: 6em;
130
+ padding-right: 0.5em;
131
+ font-weight: 400;
132
+ }
133
+ .pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .property-editor {
134
+ padding: 4px 0;
135
+ font-size: 0.9em;
136
+ }
137
+ .pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .property-editor > .title {
138
+ padding: 0 0 8px 0;
139
+ }
140
+ .pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .property-editor > .title > label {
141
+ min-width: 6em;
142
+ max-width: 6em;
143
+ padding-right: 0.5em;
144
+ font-weight: 600;
145
+ }
146
+ .pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .property-editor:nth-child(n+2) {
147
+ margin-top: 4px;
148
+ }
149
+ .pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .property-editor-color .color {
150
+ width: 50%;
151
+ }
152
+ .pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .property-editor-image button.select-button {
153
+ color: var(--white);
154
+ border: none;
155
+ padding: 4px 12px;
156
+ cursor: pointer;
157
+ line-height: 1;
158
+ width: 120px;
159
+ height: 26px;
160
+ background-color: var(--primary);
161
+ border-radius: 2px;
162
+ }
163
+ .pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .property-editor-image .input-area {
164
+ height: 24px;
165
+ }
166
+ .pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .property-editor-product button {
167
+ color: var(--white);
168
+ border: none;
169
+ padding: 4px 12px;
170
+ cursor: pointer;
171
+ line-height: 1;
172
+ width: 200px;
173
+ height: 26px;
174
+ background-color: var(--primary);
175
+ border-radius: 2px;
176
+ }
177
+ .pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .property-editor-product .input-area {
178
+ height: 24px;
179
+ }
180
+ .pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .property-editor-select .bs-select {
181
+ display: block;
182
+ }
183
+ .pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .property-editor-select .input-area {
184
+ height: 24px;
3
185
  }
4
- .pb-editor .pb-editor-body .tab-bar {
186
+ .pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .property-editor-text .bs-text-input {
187
+ display: block;
188
+ }
189
+ .pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .property-editor-text .input-area {
190
+ height: 24px;
191
+ }
192
+ .pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .property-editor-text .bs-text-input {
193
+ display: block;
194
+ }
195
+ .pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .property-editor-text .input-area {
196
+ height: 24px;
197
+ }
198
+ .pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .property-editor-html button {
199
+ color: var(--white);
200
+ border: none;
201
+ padding: 4px 12px;
202
+ cursor: pointer;
203
+ line-height: 1;
204
+ width: 100px;
205
+ height: 26px;
206
+ background-color: var(--primary);
207
+ border-radius: 2px;
208
+ }
209
+ .pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .property-editor-html .input-area {
210
+ height: 24px;
211
+ }
212
+ .pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .group-editor-background .color {
213
+ flex: 1;
214
+ display: flex;
215
+ flex-direction: row;
216
+ align-items: center;
217
+ }
218
+ .pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .group-editor-background .color .bs-text-input {
219
+ flex-grow: 1;
220
+ }
221
+ .pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .group-editor-background .image {
222
+ flex: 1;
223
+ padding-left: 8px;
224
+ }
225
+ .pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .group-editor-background .image button {
226
+ color: #fff;
227
+ border: none;
228
+ padding: 4px 12px;
229
+ cursor: pointer;
230
+ line-height: 1;
231
+ width: 120px;
232
+ height: 26px;
233
+ background-color: var(--primary);
234
+ border-radius: 2px;
235
+ }
236
+ .pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .group-editor-border .color {
237
+ width: 50%;
238
+ flex: 1;
239
+ display: flex;
240
+ flex-direction: row;
241
+ align-items: center;
242
+ }
243
+ .pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .group-editor-border .color .bs-text-input {
244
+ flex-grow: 1;
245
+ }
246
+ .pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .group-editor-border .corner-icon {
247
+ width: 1.1em;
248
+ height: 1.1em;
249
+ fill: #000;
250
+ }
251
+ .pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .group-editor-media button.select-button {
252
+ color: var(--white);
253
+ border: none;
254
+ padding: 4px 12px;
255
+ cursor: pointer;
256
+ line-height: 1;
257
+ width: 120px;
258
+ height: 26px;
259
+ background-color: var(--primary);
260
+ border-radius: 2px;
261
+ }
262
+ .pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .group-editor-media .input-area {
263
+ height: 24px;
264
+ }
265
+ .pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .property-editor-local-part .title {
266
+ font-weight: 600;
267
+ }
268
+ .pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .property-editor-local-part button {
269
+ color: #fff;
270
+ border: none;
271
+ padding: 0 4px;
272
+ cursor: pointer;
273
+ line-height: 1;
274
+ height: 24px;
275
+ background-color: #1f8fff;
276
+ }
277
+ .pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .property-editor-local-part .input-area {
278
+ height: 24px;
279
+ }
280
+ .pb-editor .pb-editor-body .pb-color-picker {
281
+ display: inline-flex;
282
+ position: relative;
283
+ }
284
+ .pb-editor .pb-editor-body .pb-color-picker .buttons {
285
+ display: flex;
5
286
  padding: 0;
287
+ }
288
+ .pb-editor .pb-editor-body .pb-color-picker .buttons button {
289
+ width: 24px;
290
+ height: 24px;
291
+ display: flex;
292
+ justify-content: center;
293
+ align-items: center;
294
+ }
295
+ .pb-editor .pb-editor-body .pb-color-picker .buttons button.none {
296
+ position: relative;
297
+ overflow: hidden;
298
+ }
299
+ .pb-editor .pb-editor-body .pb-color-picker .buttons button.none::after {
300
+ content: " ";
301
+ display: inline-block;
302
+ width: 100px;
303
+ height: 1px;
304
+ background: red;
305
+ position: absolute;
306
+ top: 50%;
307
+ left: 50%;
308
+ transform: translate(-50%, -50%) rotate(45deg);
309
+ }
310
+ .pb-editor .pb-editor-body .pb-color-picker .buttons button.picker-button {
311
+ border: 1px solid #cccccc;
312
+ }
313
+ .pb-editor .pb-editor-body .pb-color-picker .buttons button i {
314
+ font-size: 1.4rem;
315
+ }
316
+ .pb-editor .pb-editor-body .pb-color-picker .sketch-wrap {
317
+ width: 220px;
318
+ position: absolute;
319
+ z-index: 10;
320
+ left: -12px;
321
+ top: 24px;
322
+ white-space: break-spaces;
323
+ text-align: left;
324
+ }
325
+ .pb-part-add-modal .section-title {
326
+ font-weight: 700;
327
+ }
328
+ .pb-part-add-modal .group .part {
329
+ border: 1px solid var(--border-light);
330
+ border-radius: 4px;
331
+ padding: 8px 16px;
332
+ cursor: pointer;
333
+ }
334
+ .pb-html-editor-modal .preview {
335
+ width: 50%;
336
+ }
337
+ .pb-html-editor-modal .preview .content {
338
+ border: solid 1px #ccc;
339
+ }
340
+ .pb-html-editor-modal .preview .content iframe {
341
+ width: 100%;
342
+ height: 100%;
343
+ }
344
+ .pb-html-editor-modal .editor {
345
+ width: 50%;
346
+ }
347
+ .pb-html-editor-modal .editor .bs-tab-sheet > :nth-child(2) {
348
+ height: 0;
349
+ }
350
+ .pb-html-editor-modal .editor .tags {
351
+ height: 60%;
352
+ }
353
+ .pb-html-editor-modal .editor .style {
354
+ height: 40%;
355
+ }
356
+ .pb-html-editor-modal .editor .bs-code-editor {
357
+ height: 100%;
358
+ }
359
+ .pb-html-editor-modal .buttons {
360
+ text-align: center;
361
+ }
362
+ .pb-html-editor-modal .buttons button {
363
+ color: #fff;
364
+ border: none;
365
+ padding: 4px 12px;
366
+ cursor: pointer;
367
+ line-height: 1;
368
+ height: 28px;
369
+ background-color: #1f8fff;
370
+ }
371
+ .pb-youtube-modal .flex-grow-1.overflow-auto {
372
+ overflow: hidden !important;
373
+ }
374
+ .pb-youtube-modal button {
375
+ color: #fff;
376
+ border: none;
377
+ padding: 4px 12px;
378
+ cursor: pointer;
379
+ line-height: 1;
380
+ height: 28px;
381
+ background-color: #1f8fff;
6
382
  }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export declare function toCssLength(value: string): string;
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.8",
4
+ "version": "1.0.0-alpha.81",
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,19 +17,21 @@
16
17
  "author": "zag@g1project.net",
17
18
  "license": "LicenseRef-LICENSE",
18
19
  "peerDependencies": {
19
- "@g1cloud/bluesea": "5.0.0-alpha.60"
20
+ "@g1cloud/bluesea": "5.0.0-alpha.107",
21
+ "vue3-youtube": "^0.1.9"
20
22
  },
21
23
  "dependencies": {
22
24
  "@ckpack/vue-color": "^1.5.0",
25
+ "@ctrl/tinycolor": "^3.6.1",
23
26
  "dayjs": "^1.11.11",
24
27
  "mitt": "^3.0.1",
25
28
  "short-unique-id": "^5.0.3",
26
29
  "vite-svg-loader": "^5.1.0",
27
- "vue": "^3.4.26",
28
- "vue-router": "^4.3.2",
30
+ "vue": "^3.5.3",
31
+ "vue-router": "^4.4.3",
29
32
  "vue3-click-away": "^1.2.4",
30
33
  "yjs": "^13.6.14",
31
- "@g1cloud/page-builder-viewer": "1.0.0-alpha.8"
34
+ "@g1cloud/page-builder-viewer": "1.0.0-alpha.81"
32
35
  },
33
36
  "devDependencies": {
34
37
  "@types/node": "^20.12.7",
@@ -36,7 +39,7 @@
36
39
  "jsdom": "^24.0.0",
37
40
  "sass": "^1.75.0",
38
41
  "typescript": "^5.4.5",
39
- "vite": "^5.2.11",
42
+ "vite": "^5.4.3",
40
43
  "vite-plugin-dts": "^3.9.0",
41
44
  "vitest": "^1.5.0",
42
45
  "vitest-canvas-mock": "^0.3.3",
@@ -44,7 +47,9 @@
44
47
  },
45
48
  "scripts": {
46
49
  "dev": "vite",
47
- "build": "vue-tsc && vite build",
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",
48
53
  "preview": "vite preview"
49
54
  }
50
55
  }
@@ -0,0 +1,28 @@
1
+
2
+ .pb-canvas-wrapper {
3
+ background-color: var(--color-canvas-frame-bg);
4
+ border-top: 1px solid var(--color-canvas-frame-bg);
5
+ flex-grow: 1;
6
+ min-width: 0;
7
+ width: 0;
8
+ height: 100%;
9
+ padding: 20px;
10
+ outline: none;
11
+ overflow: auto;
12
+ }
13
+
14
+ .pb-canvas {
15
+ display: flex;
16
+ flex-direction: row;
17
+ transform-origin: top left;
18
+ width: fit-content;
19
+ height: 100%;
20
+ margin: 0;
21
+ }
22
+
23
+ .pb-page-frame {
24
+
25
+ iframe.page-frame {
26
+ border: 0;
27
+ }
28
+ }
@@ -12,9 +12,21 @@
12
12
  background-color: #f0f0f0;
13
13
  }
14
14
 
15
- &.selected {
16
- outline: 1px solid #8e44ad;
17
- outline-offset: 1px;
15
+ //&.selected {
16
+ // outline: 2px solid #4998f8;
17
+ // outline-offset: -2px;
18
+ // z-index: 999;
19
+ //}
20
+
21
+ &.selected::before {
22
+ content: "";
23
+ position: absolute;
24
+ top: 0;
25
+ left: 0;
26
+ right: 0;
27
+ bottom: 0;
28
+ border: 2px solid #4998f8;
18
29
  z-index: 999;
30
+ pointer-events: none;
19
31
  }
20
32
  }