@g1cloud/page-builder-editor 1.0.0-alpha.1 → 1.0.0-alpha.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.
- package/README.md +31 -6
- package/css/canvas.scss +1 -0
- package/css/page-builder-editor.scss +99 -19
- package/css/property-editor-color.scss +5 -0
- package/css/property-editor-html.scss +16 -0
- package/css/property-group-editor-background.scss +0 -12
- package/css/property-group-editor-border.scss +6 -12
- package/css/property-group-editor-margin.scss +0 -11
- package/css/property-group-editor-padding.scss +0 -11
- package/css/property-group-editor-position.scss +0 -11
- package/css/property-group-editor-size.scss +0 -11
- package/css/property-localpart.scss +2 -2
- package/dist/HtmlEditorModal-oXFayeg-.js +100 -0
- package/dist/PageBuilderEditor.vue.d.ts +5 -1
- package/dist/PbPropertyEditorColor-B9I99uQK.js +57 -0
- package/dist/PbPropertyEditorHtml-BVT2SwoK.js +64 -0
- package/dist/{PbPropertyEditorImage-BFIqG-bL.js → PbPropertyEditorImage-DLwg5dJz.js} +2 -2
- package/dist/PbPropertyEditorMultilineText-Bv4luXWg.js +65 -0
- package/dist/{PbPropertyEditorProduct--cf9LI2Z.js → PbPropertyEditorProduct-6STGd-Zs.js} +2 -2
- package/dist/{PbPropertyEditorReadonlyText-Bk0WJxA0.js → PbPropertyEditorReadonlyText-Dgp_AVOD.js} +1 -1
- package/dist/{PbPropertyEditorSelect-BJovN1su.js → PbPropertyEditorSelect-CWedbXJI.js} +1 -1
- package/dist/{PbPropertyEditorText-DNdXl-Tr.js → PbPropertyEditorText-BWOKvwD9.js} +1 -1
- package/dist/components/modal/HtmlEditorModal.vue.d.ts +23 -0
- package/dist/components/sidebar/property/PbPropertyEditorColor.vue.d.ts +23 -0
- package/dist/components/sidebar/property/PbPropertyEditorHtml.vue.d.ts +23 -0
- package/dist/components/sidebar/property/PbPropertyEditorMultilineText.vue.d.ts +5 -4
- package/dist/components/ui/PbColorPicker.vue.d.ts +2 -2
- package/dist/{index-BtILenNo.js → index-jUNIezk-.js} +874 -439
- package/dist/model/context.d.ts +15 -6
- package/dist/model/event.d.ts +9 -4
- package/dist/model/model.d.ts +6 -4
- package/dist/model/page-builder-editor.d.ts +8 -2
- package/dist/model/page-builder-util.d.ts +2 -2
- package/dist/model/part-definintion.d.ts +1 -0
- package/dist/model/part-manager.d.ts +1 -0
- package/dist/page-builder-editor.js +23 -19
- package/dist/page-builder-editor.umd.cjs +1346 -674
- package/dist/style.css +0 -167
- package/package.json +4 -3
- package/dist/PbPropertyEditorMultilineText-BMeNUGm8.js +0 -42
- /package/dist/components/sidebar/property/{PbPropertyLocalPart.vue.d.ts → PbPropertyLocalMarketingPart.vue.d.ts} +0 -0
package/dist/style.css
CHANGED
|
@@ -1,170 +1,3 @@
|
|
|
1
|
-
.pb-page {
|
|
2
|
-
margin: 0 auto;
|
|
3
|
-
margin-top: 20px;
|
|
4
|
-
background-position: 50% 50%;
|
|
5
|
-
background-repeat: no-repeat;
|
|
6
|
-
background-size: cover;
|
|
7
|
-
}
|
|
8
|
-
.pb-page .pb-section {
|
|
9
|
-
position: relative;
|
|
10
|
-
background-position: 50% 50%;
|
|
11
|
-
background-repeat: no-repeat;
|
|
12
|
-
background-size: cover;
|
|
13
|
-
background-color: #fff;
|
|
14
|
-
}
|
|
15
|
-
.pb-page .pb-section .pb-block {
|
|
16
|
-
display: flex;
|
|
17
|
-
min-width: 1px;
|
|
18
|
-
position: relative;
|
|
19
|
-
background-position: 50% 50%;
|
|
20
|
-
background-repeat: no-repeat;
|
|
21
|
-
background-size: cover;
|
|
22
|
-
width: 100%;
|
|
23
|
-
}
|
|
24
|
-
.pb-page .pb-section .pb-block .pb-widget {
|
|
25
|
-
position: relative;
|
|
26
|
-
background-position: 50% 50%;
|
|
27
|
-
background-repeat: no-repeat;
|
|
28
|
-
background-size: cover;
|
|
29
|
-
width: 100%;
|
|
30
|
-
}
|
|
31
|
-
.pb-page .pb-section .pb-block .pb-widget .children {
|
|
32
|
-
position: absolute;
|
|
33
|
-
width: 100%;
|
|
34
|
-
height: 100%;
|
|
35
|
-
}
|
|
36
|
-
.pb-page .pb-section .pb-block .pb-text-widget {
|
|
37
|
-
width: 100%;
|
|
38
|
-
height: fit-content;
|
|
39
|
-
}
|
|
40
|
-
.pb-page .pb-section .pb-block .pb-text-widget .text {
|
|
41
|
-
color: #333;
|
|
42
|
-
}
|
|
43
|
-
.pb-page .pb-section .pb-block .pb-text-widget.empty .text {
|
|
44
|
-
color: #999;
|
|
45
|
-
}
|
|
46
|
-
.pb-page .pb-section .pb-block .pb-image-widget {
|
|
47
|
-
width: 100%;
|
|
48
|
-
}
|
|
49
|
-
.pb-page .pb-section .pb-block .pb-image-widget .image {
|
|
50
|
-
width: 100%;
|
|
51
|
-
}
|
|
52
|
-
.pb-page .pb-section .pb-block .pb-image-widget .empty {
|
|
53
|
-
height: 100px;
|
|
54
|
-
background-color: #eee;
|
|
55
|
-
text-align: center;
|
|
56
|
-
}
|
|
57
|
-
.pb-page .pb-section .pb-block .pb-image-widget .empty span {
|
|
58
|
-
font-size: 40px;
|
|
59
|
-
color: #999;
|
|
60
|
-
line-height: 100px;
|
|
61
|
-
vertical-align: middle;
|
|
62
|
-
}
|
|
63
|
-
.pb-page .pb-section .pb-block .pb-product-list-widget {
|
|
64
|
-
width: 100%;
|
|
65
|
-
display: flex;
|
|
66
|
-
flex-direction: row;
|
|
67
|
-
flex-wrap: wrap;
|
|
68
|
-
justify-content: flex-start;
|
|
69
|
-
align-items: center;
|
|
70
|
-
}
|
|
71
|
-
.pb-page .pb-section .pb-block .pb-product-list-widget .product {
|
|
72
|
-
width: 95%;
|
|
73
|
-
margin: 0 auto;
|
|
74
|
-
padding-top: 8px;
|
|
75
|
-
padding-bottom: 8px;
|
|
76
|
-
}
|
|
77
|
-
.pb-page .pb-section .pb-block .pb-product-list-widget img {
|
|
78
|
-
width: 100%;
|
|
79
|
-
}
|
|
80
|
-
.pb-page .pb-section .pb-block .pb-product-list-widget .name {
|
|
81
|
-
margin-top: 8px;
|
|
82
|
-
font-size: 14px;
|
|
83
|
-
}
|
|
84
|
-
.pb-page .pb-section .pb-block .pb-product-list-widget .price {
|
|
85
|
-
margin-top: 8px;
|
|
86
|
-
font-size: 14px;
|
|
87
|
-
font-weight: bold;
|
|
88
|
-
}
|
|
89
|
-
.pb-page .pb-section .pb-block .pb-product-list-widget .empty {
|
|
90
|
-
height: 200px;
|
|
91
|
-
background-color: #eee;
|
|
92
|
-
text-align: center;
|
|
93
|
-
}
|
|
94
|
-
.pb-page .pb-section .pb-block .pb-product-list-widget .empty span {
|
|
95
|
-
font-size: 40px;
|
|
96
|
-
color: #999;
|
|
97
|
-
line-height: 200px;
|
|
98
|
-
vertical-align: middle;
|
|
99
|
-
}
|
|
100
|
-
.pb-page .pb-section .pb-block .pb-page .mobile .pb-product-list-widget .product-wrapper {
|
|
101
|
-
width: 50%;
|
|
102
|
-
}
|
|
103
|
-
.pb-page .pb-section .pb-block .pb-page .pc .pb-product-list-widget .product-wrapper {
|
|
104
|
-
width: 25%;
|
|
105
|
-
}
|
|
106
|
-
.pb-page .pb-section .pb-block .pb-login-widget {
|
|
107
|
-
height: 200px;
|
|
108
|
-
text-align: center;
|
|
109
|
-
}
|
|
110
|
-
.pb-page .pb-section .pb-block .pb-login-widget h3 {
|
|
111
|
-
font-size: 32px;
|
|
112
|
-
font-weight: bold;
|
|
113
|
-
color: #ccc;
|
|
114
|
-
line-height: 200px;
|
|
115
|
-
vertical-align: middle;
|
|
116
|
-
}
|
|
117
|
-
.pb-page .pb-section .pb-block .pb-editor {
|
|
118
|
-
outline: 1px dashed #ccc;
|
|
119
|
-
}
|
|
120
|
-
.pb-page .pb-section .pb-block:hover:not(:has(.pb-widget:hover)) {
|
|
121
|
-
background-color: #f0f0f0;
|
|
122
|
-
}
|
|
123
|
-
.pb-page .pb-section .pb-block.selected {
|
|
124
|
-
outline: 1px solid #8e44ad;
|
|
125
|
-
outline-offset: 1px;
|
|
126
|
-
z-index: 999;
|
|
127
|
-
}
|
|
128
|
-
.pb-page .pb-section .pb-editor {
|
|
129
|
-
outline: 1px dashed #ccc;
|
|
130
|
-
}
|
|
131
|
-
.pb-page .pb-section:hover:not(:has(.pb-block:hover)) {
|
|
132
|
-
background-color: #f0f0f0;
|
|
133
|
-
}
|
|
134
|
-
.pb-page .pb-section.selected {
|
|
135
|
-
outline: 1px solid #e67e22;
|
|
136
|
-
outline-offset: 1px;
|
|
137
|
-
z-index: 999;
|
|
138
|
-
}
|
|
139
|
-
.pb-page .pb-section.pb-section-static {
|
|
140
|
-
width: 100%;
|
|
141
|
-
display: flex;
|
|
142
|
-
justify-content: center;
|
|
143
|
-
align-items: center;
|
|
144
|
-
pointer-events: none;
|
|
145
|
-
}
|
|
146
|
-
.pb-page .pb-section.pb-section-static:after {
|
|
147
|
-
content: "";
|
|
148
|
-
position: absolute;
|
|
149
|
-
left: 0;
|
|
150
|
-
right: 0;
|
|
151
|
-
top: 0;
|
|
152
|
-
bottom: 0;
|
|
153
|
-
background-color: rgba(0, 0, 0, 0.2);
|
|
154
|
-
}
|
|
155
|
-
.pb-page .pb-section-static .pb-widget {
|
|
156
|
-
outline: none;
|
|
157
|
-
}
|
|
158
|
-
.pb-page .pb-page-content.selected {
|
|
159
|
-
outline: 2px solid #4998f8;
|
|
160
|
-
outline-offset: 5px;
|
|
161
|
-
}
|
|
162
|
-
.pb-page * {
|
|
163
|
-
box-sizing: border-box;
|
|
164
|
-
}
|
|
165
|
-
.pb-viewer {
|
|
166
|
-
width: 100%;
|
|
167
|
-
}
|
|
168
1
|
.pb-editor .pb-editor-body {
|
|
169
2
|
height: 100%;
|
|
170
3
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.10",
|
|
5
5
|
"engins": {
|
|
6
6
|
"node": ">= 20.0.0"
|
|
7
7
|
},
|
|
@@ -16,18 +16,19 @@
|
|
|
16
16
|
"author": "zag@g1project.net",
|
|
17
17
|
"license": "LicenseRef-LICENSE",
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"@g1cloud/bluesea": "5.0.0-alpha.
|
|
19
|
+
"@g1cloud/bluesea": "5.0.0-alpha.60"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@ckpack/vue-color": "^1.5.0",
|
|
23
23
|
"dayjs": "^1.11.11",
|
|
24
24
|
"mitt": "^3.0.1",
|
|
25
25
|
"short-unique-id": "^5.0.3",
|
|
26
|
+
"vite-svg-loader": "^5.1.0",
|
|
26
27
|
"vue": "^3.4.26",
|
|
27
28
|
"vue-router": "^4.3.2",
|
|
28
29
|
"vue3-click-away": "^1.2.4",
|
|
29
30
|
"yjs": "^13.6.14",
|
|
30
|
-
"@g1cloud/page-builder-viewer": "1.0.0-alpha.
|
|
31
|
+
"@g1cloud/page-builder-viewer": "1.0.0-alpha.10"
|
|
31
32
|
},
|
|
32
33
|
"devDependencies": {
|
|
33
34
|
"@types/node": "^20.12.7",
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, createVNode, unref } from "vue";
|
|
2
|
-
import { BSTextArea } from "@g1cloud/bluesea";
|
|
3
|
-
const _hoisted_1 = { class: "property-editor property-editor-multiline-text" };
|
|
4
|
-
const _hoisted_2 = { class: "label" };
|
|
5
|
-
const _hoisted_3 = ["textContent"];
|
|
6
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
-
__name: "PbPropertyEditorMultilineText",
|
|
8
|
-
props: {
|
|
9
|
-
property: {},
|
|
10
|
-
value: {}
|
|
11
|
-
},
|
|
12
|
-
emits: ["update-property-value"],
|
|
13
|
-
setup(__props, { emit: __emit }) {
|
|
14
|
-
const props = __props;
|
|
15
|
-
const emit = __emit;
|
|
16
|
-
const emitUpdatePropertyValue = (value) => {
|
|
17
|
-
const properties = {};
|
|
18
|
-
properties[props.property.propertyName] = value;
|
|
19
|
-
emit("update-property-value", properties);
|
|
20
|
-
};
|
|
21
|
-
return (_ctx, _cache) => {
|
|
22
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
23
|
-
createElementVNode("div", _hoisted_2, [
|
|
24
|
-
createElementVNode("label", {
|
|
25
|
-
textContent: toDisplayString(_ctx.property.caption)
|
|
26
|
-
}, null, 8, _hoisted_3)
|
|
27
|
-
]),
|
|
28
|
-
createElementVNode("div", null, [
|
|
29
|
-
createVNode(unref(BSTextArea), {
|
|
30
|
-
"model-value": _ctx.value,
|
|
31
|
-
height: "60px",
|
|
32
|
-
width: "100%",
|
|
33
|
-
"onUpdate:modelValue": emitUpdatePropertyValue
|
|
34
|
-
}, null, 8, ["model-value"])
|
|
35
|
-
])
|
|
36
|
-
]);
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
export {
|
|
41
|
-
_sfc_main as default
|
|
42
|
-
};
|
|
File without changes
|