@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.
- package/css/page-builder-editor.css +385 -0
- package/css/page-builder-viewer.css +195 -0
- package/dist/PageBuilderEditor.vue.d.ts +22 -11
- package/dist/PbHtmlEditorModal-C0MLYY66.js +193 -0
- package/dist/PbPropertyEditorBoolean-c5CNiTpt.js +38 -0
- package/dist/{PbPropertyEditorColor-BonGhf7Z.js → PbPropertyEditorColor-D1Et94Ef.js} +8 -9
- package/dist/{PbPropertyEditorText-BWOKvwD9.js → PbPropertyEditorCssLength-vEqAkXLy.js} +10 -9
- package/dist/PbPropertyEditorHtml-BD1ir-xW.js +62 -0
- package/dist/PbPropertyEditorImage-CrtSHsie.js +106 -0
- package/dist/{PbPropertyEditorMultilineText-bEBZmvFa.js → PbPropertyEditorMultilineText-v01RFbU-.js} +28 -27
- package/dist/PbPropertyEditorNumber-B76ArSb5.js +47 -0
- package/dist/{PbPropertyEditorReadonlyText-Dgp_AVOD.js → PbPropertyEditorReadonlyText-BJ5qx69O.js} +6 -6
- package/dist/{PbPropertyEditorSelect-CWedbXJI.js → PbPropertyEditorSelect-B5sfulvx.js} +5 -6
- package/dist/PbPropertyEditorText-CDohV0Yq.js +50 -0
- package/dist/PbPropertyEditorYoutube-gZIWmCbS.js +40 -0
- package/dist/PbScreenSelectModal-57LXAzjs.js +69 -0
- package/dist/PbWidgetAddModal-CetSlzPe.js +79 -0
- package/dist/PbYoutubeModal-CU8sClMD.js +73 -0
- package/dist/components/canvas/PbCanvas.vue.d.ts +1 -1
- package/dist/components/depart/PbLoginDepart.vue.d.ts +3 -3
- package/dist/components/menu/PbMenu.vue.d.ts +16 -1
- package/dist/components/menu/PbToolbar.vue.d.ts +16 -1
- package/dist/components/menu/PbToolbarButton.vue.d.ts +3 -3
- package/dist/components/menu/PbToolbarButtonGroup.vue.d.ts +3 -3
- package/dist/components/modal/PbHtmlEditorModal.vue.d.ts +28 -0
- package/dist/components/modal/PbPartAddModal.vue.d.ts +4 -4
- package/dist/components/modal/PbScreenSelectModal.vue.d.ts +6 -0
- package/dist/components/modal/PbWidgetAddModal.vue.d.ts +4 -4
- package/dist/components/modal/PbYoutubeModal.vue.d.ts +19 -0
- package/dist/components/navigator/PbNavigator.vue.d.ts +1 -1
- package/dist/components/part/PbAddWidgetButton.vue.d.ts +1 -1
- package/dist/components/part/PbBlock.vue.d.ts +7 -3
- package/dist/components/part/PbPage.vue.d.ts +5 -5
- package/dist/components/part/PbPageFrame.vue.d.ts +19 -0
- package/dist/components/part/PbSection.vue.d.ts +7 -3
- package/dist/components/part/PbWidget.vue.d.ts +5 -3
- package/dist/components/sidebar/PbSidebar.vue.d.ts +1 -1
- package/dist/components/sidebar/PbSidebarProperties.vue.d.ts +1 -1
- package/dist/components/sidebar/PbSidebarPropertyEditor.vue.d.ts +3 -3
- package/dist/components/sidebar/PbSidebarPropertyGroupEditor.vue.d.ts +3 -3
- package/dist/components/sidebar/property/{PbPropertyEditorProduct.vue.d.ts → PbPropertyEditorBoolean.vue.d.ts} +4 -4
- package/dist/components/sidebar/property/PbPropertyEditorColor.vue.d.ts +4 -4
- package/dist/components/sidebar/property/PbPropertyEditorCssLength.vue.d.ts +23 -0
- package/dist/components/sidebar/property/PbPropertyEditorHtml.vue.d.ts +4 -4
- package/dist/components/sidebar/property/PbPropertyEditorImage.vue.d.ts +5 -9
- package/dist/components/sidebar/property/PbPropertyEditorMultilineText.vue.d.ts +7 -6
- package/dist/components/sidebar/property/PbPropertyEditorNumber.vue.d.ts +23 -0
- package/dist/components/sidebar/property/PbPropertyEditorReadonlyText.vue.d.ts +3 -3
- package/dist/components/sidebar/property/PbPropertyEditorSelect.vue.d.ts +4 -4
- package/dist/components/sidebar/property/PbPropertyEditorText.vue.d.ts +9 -8
- package/dist/components/sidebar/property/{PbPropertyLocalMarketingPart.vue.d.ts → PbPropertyEditorYoutube.vue.d.ts} +9 -9
- package/dist/components/sidebar/property/PbPropertyGroupEditorBackground.vue.d.ts +3 -3
- package/dist/components/sidebar/property/PbPropertyGroupEditorBorder.vue.d.ts +3 -3
- package/dist/components/sidebar/property/PbPropertyGroupEditorMargin.vue.d.ts +3 -3
- package/dist/components/sidebar/property/PbPropertyGroupEditorMedia.vue.d.ts +20 -0
- package/dist/components/sidebar/property/PbPropertyGroupEditorPadding.vue.d.ts +3 -3
- package/dist/components/sidebar/property/PbPropertyGroupEditorPosition.vue.d.ts +3 -3
- package/dist/components/sidebar/property/PbPropertyGroupEditorSize.vue.d.ts +3 -3
- package/dist/components/ui/PbColorPicker.vue.d.ts +16 -7
- package/dist/directives/vPartHandler.d.ts +1 -0
- package/dist/{index-CFgXLaTI.js → index-tTR7GhuX.js} +4806 -2151
- package/dist/index.d.ts +6 -0
- package/dist/model/command.d.ts +47 -34
- package/dist/model/context.d.ts +19 -19
- package/dist/model/default-part-property-group.d.ts +4 -0
- package/dist/model/event.d.ts +0 -56
- package/dist/model/model.d.ts +6 -2
- package/dist/model/page-builder-editor.d.ts +39 -10
- package/dist/model/page-builder-util.d.ts +2 -0
- package/dist/model/part-definintion.d.ts +2 -2
- package/dist/model/part-manager.d.ts +2 -1
- package/dist/model/part-property.d.ts +4 -3
- package/dist/model/plugin.d.ts +23 -0
- package/dist/page-builder-editor.js +20 -17
- package/dist/page-builder-editor.umd.cjs +5503 -2460
- package/dist/style.css +377 -1
- package/dist/text/text.d.ts +1 -0
- package/dist/utils/common.d.ts +1 -0
- package/package.json +13 -8
- package/scss/canvas.scss +28 -0
- package/{css/canvas-block.scss → scss/page-block.scss} +15 -3
- package/scss/page-builder-editor.scss +326 -0
- package/scss/page-builder-viewer.scss +1 -0
- package/{css/canvas-page.scss → scss/page-page.scss} +25 -16
- package/{css/canvas-section.scss → scss/page-section.scss} +15 -4
- package/scss/page-widget.scss +66 -0
- package/scss/page.scss +73 -0
- package/{css/property-editor-image.scss → scss/property-editor-html.scss} +5 -4
- package/scss/property-editor-image.scss +17 -0
- package/{css → scss}/property-editor-product.scss +4 -3
- package/scss/property-editor-text.scss +10 -0
- package/{css/property-editor-html.scss → scss/property-editor-youtube.scss} +2 -2
- package/{css → scss}/property-group-editor-background.scss +4 -3
- package/scss/property-group-editor-media.scss +17 -0
- package/css/bluesea.scss +0 -8244
- package/css/canvas-widget.scss +0 -41
- package/css/canvas.scss +0 -147
- package/css/page-builder-editor.scss +0 -265
- package/css/page-builder-viewer.scss +0 -1
- package/css/variable.scss +0 -1
- package/dist/HtmlEditorModal-DDoVYM6n.js +0 -94
- package/dist/PbPartAddModal-DuLpnV4E.js +0 -50
- package/dist/PbPropertyEditorHtml-DfOWZr6S.js +0 -65
- package/dist/PbPropertyEditorImage-Du9R6CBU.js +0 -42
- package/dist/PbPropertyEditorProduct-gzGulWGg.js +0 -49
- package/dist/PbWidgetAddModal-CQvFYzfU.js +0 -55
- package/dist/components/canvas/PbCanvasFrame.vue.d.ts +0 -2
- package/dist/components/modal/HtmlEditorModal.vue.d.ts +0 -23
- /package/{css → scss}/property-editor-color.scss +0 -0
- /package/{css → scss}/property-editor-multiline-text.scss +0 -0
- /package/{css/property-editor-text.scss → scss/property-editor-number.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-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
|
@@ -0,0 +1,385 @@
|
|
|
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
|
+
}
|
|
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;
|
|
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;
|
|
185
|
+
}
|
|
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;
|
|
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
|
+
|
|
326
|
+
.pb-part-add-modal .section-title {
|
|
327
|
+
font-weight: 700;
|
|
328
|
+
}
|
|
329
|
+
.pb-part-add-modal .group .part {
|
|
330
|
+
border: 1px solid var(--border-light);
|
|
331
|
+
border-radius: 4px;
|
|
332
|
+
padding: 8px 16px;
|
|
333
|
+
cursor: pointer;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.pb-html-editor-modal .preview {
|
|
337
|
+
width: 50%;
|
|
338
|
+
}
|
|
339
|
+
.pb-html-editor-modal .preview .content {
|
|
340
|
+
border: solid 1px #ccc;
|
|
341
|
+
}
|
|
342
|
+
.pb-html-editor-modal .preview .content iframe {
|
|
343
|
+
width: 100%;
|
|
344
|
+
height: 100%;
|
|
345
|
+
}
|
|
346
|
+
.pb-html-editor-modal .editor {
|
|
347
|
+
width: 50%;
|
|
348
|
+
}
|
|
349
|
+
.pb-html-editor-modal .editor .bs-tab-sheet > :nth-child(2) {
|
|
350
|
+
height: 0;
|
|
351
|
+
}
|
|
352
|
+
.pb-html-editor-modal .editor .tags {
|
|
353
|
+
height: 60%;
|
|
354
|
+
}
|
|
355
|
+
.pb-html-editor-modal .editor .style {
|
|
356
|
+
height: 40%;
|
|
357
|
+
}
|
|
358
|
+
.pb-html-editor-modal .editor .bs-code-editor {
|
|
359
|
+
height: 100%;
|
|
360
|
+
}
|
|
361
|
+
.pb-html-editor-modal .buttons {
|
|
362
|
+
text-align: center;
|
|
363
|
+
}
|
|
364
|
+
.pb-html-editor-modal .buttons button {
|
|
365
|
+
color: #fff;
|
|
366
|
+
border: none;
|
|
367
|
+
padding: 4px 12px;
|
|
368
|
+
cursor: pointer;
|
|
369
|
+
line-height: 1;
|
|
370
|
+
height: 28px;
|
|
371
|
+
background-color: #1f8fff;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.pb-youtube-modal .flex-grow-1.overflow-auto {
|
|
375
|
+
overflow: hidden !important;
|
|
376
|
+
}
|
|
377
|
+
.pb-youtube-modal button {
|
|
378
|
+
color: #fff;
|
|
379
|
+
border: none;
|
|
380
|
+
padding: 4px 12px;
|
|
381
|
+
cursor: pointer;
|
|
382
|
+
line-height: 1;
|
|
383
|
+
height: 28px;
|
|
384
|
+
background-color: #1f8fff;
|
|
385
|
+
}
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
.pb-page {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
width: 100%;
|
|
5
|
+
background-position: 50% 50%;
|
|
6
|
+
background-repeat: no-repeat;
|
|
7
|
+
background-size: cover;
|
|
8
|
+
overflow-x: hidden;
|
|
9
|
+
}
|
|
10
|
+
.pb-page .pb-section {
|
|
11
|
+
display: flex;
|
|
12
|
+
position: relative;
|
|
13
|
+
width: 100%;
|
|
14
|
+
background-position: 50% 50%;
|
|
15
|
+
background-repeat: no-repeat;
|
|
16
|
+
background-size: cover;
|
|
17
|
+
}
|
|
18
|
+
.pb-page .pb-section .pb-block {
|
|
19
|
+
display: flex;
|
|
20
|
+
min-width: 1px;
|
|
21
|
+
position: relative;
|
|
22
|
+
background-position: 50% 50%;
|
|
23
|
+
background-repeat: no-repeat;
|
|
24
|
+
background-size: cover;
|
|
25
|
+
width: 100%;
|
|
26
|
+
}
|
|
27
|
+
.pb-page .pb-section .pb-block .pb-widget {
|
|
28
|
+
position: relative;
|
|
29
|
+
background-position: 50% 50%;
|
|
30
|
+
background-repeat: no-repeat;
|
|
31
|
+
background-size: cover;
|
|
32
|
+
width: 100%;
|
|
33
|
+
}
|
|
34
|
+
.pb-page .pb-section .pb-block .pb-widget .children {
|
|
35
|
+
position: absolute;
|
|
36
|
+
width: 100%;
|
|
37
|
+
height: 100%;
|
|
38
|
+
}
|
|
39
|
+
.pb-page .pb-section .pb-block .pb-text-widget {
|
|
40
|
+
width: 100%;
|
|
41
|
+
height: fit-content;
|
|
42
|
+
}
|
|
43
|
+
.pb-page .pb-section .pb-block .pb-text-widget .text {
|
|
44
|
+
color: #333;
|
|
45
|
+
}
|
|
46
|
+
.pb-page .pb-section .pb-block .pb-text-widget .placeholder {
|
|
47
|
+
padding: 4px 0;
|
|
48
|
+
font-size: 18px;
|
|
49
|
+
text-align: center;
|
|
50
|
+
color: #999;
|
|
51
|
+
}
|
|
52
|
+
.pb-page .pb-section .pb-block .pb-media-widget {
|
|
53
|
+
width: 100%;
|
|
54
|
+
}
|
|
55
|
+
.pb-page .pb-section .pb-block .pb-media-widget .image {
|
|
56
|
+
width: 100%;
|
|
57
|
+
}
|
|
58
|
+
.pb-page .pb-section .pb-block .pb-media-widget .video {
|
|
59
|
+
width: 100%;
|
|
60
|
+
}
|
|
61
|
+
.pb-page .pb-section .pb-block .pb-media-widget .placeholder {
|
|
62
|
+
height: 100px;
|
|
63
|
+
background-color: #eee;
|
|
64
|
+
text-align: center;
|
|
65
|
+
}
|
|
66
|
+
.pb-page .pb-section .pb-block .pb-media-widget .placeholder span {
|
|
67
|
+
font-size: 40px;
|
|
68
|
+
color: #999;
|
|
69
|
+
line-height: 100px;
|
|
70
|
+
vertical-align: middle;
|
|
71
|
+
}
|
|
72
|
+
.pb-page .pb-section .pb-block .pb-html-widget {
|
|
73
|
+
width: 100%;
|
|
74
|
+
height: fit-content;
|
|
75
|
+
}
|
|
76
|
+
.pb-page .pb-section .pb-block .pb-html-widget .placeholder {
|
|
77
|
+
padding: 4px 0;
|
|
78
|
+
font-size: 18px;
|
|
79
|
+
text-align: center;
|
|
80
|
+
color: #999;
|
|
81
|
+
}
|
|
82
|
+
.pb-page .pb-section .pb-block .pb-iframe-widget {
|
|
83
|
+
width: 100%;
|
|
84
|
+
height: fit-content;
|
|
85
|
+
}
|
|
86
|
+
.pb-page .pb-section .pb-block .pb-iframe-widget .placeholder {
|
|
87
|
+
padding: 4px 0;
|
|
88
|
+
font-size: 18px;
|
|
89
|
+
text-align: center;
|
|
90
|
+
color: #999;
|
|
91
|
+
}
|
|
92
|
+
.pb-page .pb-section .pb-block .pb-youtube-widget {
|
|
93
|
+
width: 100%;
|
|
94
|
+
}
|
|
95
|
+
.pb-page .pb-section .pb-block .pb-youtube-widget .youtube {
|
|
96
|
+
width: 100%;
|
|
97
|
+
height: 100%;
|
|
98
|
+
}
|
|
99
|
+
.pb-page .pb-section .pb-block .pb-youtube-widget .placeholder {
|
|
100
|
+
height: 100px;
|
|
101
|
+
background-color: #eee;
|
|
102
|
+
text-align: center;
|
|
103
|
+
}
|
|
104
|
+
.pb-page .pb-section .pb-block .pb-youtube-widget .placeholder span {
|
|
105
|
+
font-size: 40px;
|
|
106
|
+
color: #999;
|
|
107
|
+
line-height: 100px;
|
|
108
|
+
vertical-align: middle;
|
|
109
|
+
}
|
|
110
|
+
.pb-page .pb-section .pb-block .pb-container-widget {
|
|
111
|
+
width: 100%;
|
|
112
|
+
}
|
|
113
|
+
.pb-page .pb-section .pb-block .pb-container-widget .placeholder {
|
|
114
|
+
height: 100px;
|
|
115
|
+
background-color: #eee;
|
|
116
|
+
text-align: center;
|
|
117
|
+
}
|
|
118
|
+
.pb-page .pb-section .pb-block .pb-container-widget .placeholder span {
|
|
119
|
+
font-size: 40px;
|
|
120
|
+
color: #999;
|
|
121
|
+
line-height: 100px;
|
|
122
|
+
vertical-align: middle;
|
|
123
|
+
}
|
|
124
|
+
.pb-page .pb-section .pb-block .pb-product-list-widget {
|
|
125
|
+
width: 100%;
|
|
126
|
+
display: flex;
|
|
127
|
+
flex-direction: row;
|
|
128
|
+
flex-wrap: wrap;
|
|
129
|
+
justify-content: flex-start;
|
|
130
|
+
align-items: center;
|
|
131
|
+
}
|
|
132
|
+
.pb-page .pb-section .pb-block .pb-product-list-widget .product-wrapper {
|
|
133
|
+
width: 25%;
|
|
134
|
+
}
|
|
135
|
+
.pb-page .pb-section .pb-block .pb-product-list-widget .product-wrapper .product {
|
|
136
|
+
width: 95%;
|
|
137
|
+
margin: 0 auto;
|
|
138
|
+
padding-top: 8px;
|
|
139
|
+
padding-bottom: 8px;
|
|
140
|
+
}
|
|
141
|
+
.pb-page .pb-section .pb-block .pb-product-list-widget .product-wrapper img {
|
|
142
|
+
width: 100%;
|
|
143
|
+
}
|
|
144
|
+
.pb-page .pb-section .pb-block .pb-product-list-widget .product-wrapper .name {
|
|
145
|
+
margin-top: 8px;
|
|
146
|
+
font-size: 14px;
|
|
147
|
+
}
|
|
148
|
+
.pb-page .pb-section .pb-block .pb-product-list-widget .product-wrapper .price {
|
|
149
|
+
margin-top: 8px;
|
|
150
|
+
font-size: 14px;
|
|
151
|
+
font-weight: bold;
|
|
152
|
+
}
|
|
153
|
+
.pb-page .pb-section .pb-block .pb-product-list-widget .product-wrapper .empty {
|
|
154
|
+
height: 200px;
|
|
155
|
+
background-color: #eee;
|
|
156
|
+
text-align: center;
|
|
157
|
+
}
|
|
158
|
+
.pb-page .pb-section .pb-block .pb-product-list-widget .product-wrapper .empty span {
|
|
159
|
+
font-size: 40px;
|
|
160
|
+
color: #999;
|
|
161
|
+
line-height: 200px;
|
|
162
|
+
vertical-align: middle;
|
|
163
|
+
}
|
|
164
|
+
@media (max-width: 768px) {
|
|
165
|
+
.pb-page .pb-section .pb-block .pb-product-list-widget .product-wrapper {
|
|
166
|
+
width: 50%;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
.pb-page .pb-section .pb-block .mobile .pb-product-list-widget .product-wrapper {
|
|
170
|
+
width: 50%;
|
|
171
|
+
}
|
|
172
|
+
.pb-page .pb-section .pb-block .pb-login-widget {
|
|
173
|
+
height: 200px;
|
|
174
|
+
text-align: center;
|
|
175
|
+
}
|
|
176
|
+
.pb-page .pb-section .pb-block .pb-login-widget h3 {
|
|
177
|
+
padding: 0;
|
|
178
|
+
margin: 0;
|
|
179
|
+
font-size: 32px;
|
|
180
|
+
font-weight: bold;
|
|
181
|
+
color: #ccc;
|
|
182
|
+
line-height: 200px;
|
|
183
|
+
vertical-align: middle;
|
|
184
|
+
}
|
|
185
|
+
.pb-page * {
|
|
186
|
+
box-sizing: border-box;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.pb-viewer {
|
|
190
|
+
display: flex;
|
|
191
|
+
flex-direction: column;
|
|
192
|
+
align-items: center;
|
|
193
|
+
width: 100%;
|
|
194
|
+
overflow-y: auto;
|
|
195
|
+
}
|
|
@@ -1,18 +1,29 @@
|
|
|
1
|
-
|
|
1
|
+
import { PageBuilderToolbarPlugin } from './model/plugin.ts';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
2
4
|
instanceId?: string | undefined;
|
|
3
5
|
title?: string | undefined;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
6
|
+
pageContent?: string | undefined;
|
|
7
|
+
locales?: string[] | undefined;
|
|
8
|
+
locale?: string | undefined;
|
|
9
|
+
toolbarPlugin?: PageBuilderToolbarPlugin | undefined;
|
|
10
|
+
plugin?: unknown;
|
|
11
|
+
}>>, {
|
|
12
|
+
getPageContent: () => string;
|
|
13
|
+
pastePageContent: (contentJson: string) => void;
|
|
14
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
|
+
"update-model": (modified: boolean) => void;
|
|
16
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
10
17
|
instanceId?: string | undefined;
|
|
11
18
|
title?: string | undefined;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
19
|
+
pageContent?: string | undefined;
|
|
20
|
+
locales?: string[] | undefined;
|
|
21
|
+
locale?: string | undefined;
|
|
22
|
+
toolbarPlugin?: PageBuilderToolbarPlugin | undefined;
|
|
23
|
+
plugin?: unknown;
|
|
24
|
+
}>>> & Readonly<{
|
|
25
|
+
"onUpdate-model"?: ((modified: boolean) => any) | undefined;
|
|
26
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
16
27
|
export default _default;
|
|
17
28
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
18
29
|
type __VLS_TypePropsToRuntimeProps<T> = {
|