@g1cloud/page-builder-editor 1.0.0-alpha.1 → 1.0.0-alpha.3
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 +28 -7
- package/dist/PageBuilderEditor.vue.d.ts +3 -1
- package/dist/{PbPropertyEditorImage-BFIqG-bL.js → PbPropertyEditorImage-B4sYTAHu.js} +1 -1
- package/dist/{PbPropertyEditorProduct--cf9LI2Z.js → PbPropertyEditorProduct-qHnu5dvM.js} +1 -1
- package/dist/{index-BtILenNo.js → index-DSV66_zQ.js} +146 -63
- package/dist/model/event.d.ts +9 -4
- package/dist/model/model.d.ts +2 -2
- package/dist/model/page-builder-editor.d.ts +1 -1
- package/dist/model/part-manager.d.ts +1 -0
- package/dist/page-builder-editor.js +1 -1
- package/dist/page-builder-editor.umd.cjs +144 -61
- package/dist/style.css +0 -167
- package/package.json +2 -2
- /package/dist/components/sidebar/property/{PbPropertyLocalPart.vue.d.ts → PbPropertyLocalMarketingPart.vue.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
# Page Builder
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## Viewer
|
|
4
|
+
|
|
5
|
+
Install packages
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
$ cd packages/viewer
|
|
9
|
+
$ pnpm install
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Build
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
$ pnpm build --watch
|
|
16
|
+
```
|
|
4
17
|
|
|
5
|
-
|
|
18
|
+
## Editor
|
|
6
19
|
|
|
7
20
|
Install packages
|
|
8
21
|
|
|
@@ -11,13 +24,25 @@ $ cd packages/editor
|
|
|
11
24
|
$ pnpm install
|
|
12
25
|
```
|
|
13
26
|
|
|
14
|
-
|
|
27
|
+
Build
|
|
15
28
|
|
|
16
|
-
|
|
29
|
+
```bash
|
|
30
|
+
$ pnpm build --watch
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Demo
|
|
34
|
+
|
|
35
|
+
Install packages
|
|
17
36
|
|
|
18
37
|
```bash
|
|
19
|
-
$ cd packages/
|
|
20
|
-
$ pnpm
|
|
38
|
+
$ cd packages/demo
|
|
39
|
+
$ pnpm install
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Run
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
$ pnpm dev
|
|
21
46
|
```
|
|
22
47
|
|
|
23
48
|
Open browser : http://localhost:5173/
|
package/css/canvas.scss
CHANGED
|
@@ -14,9 +14,7 @@
|
|
|
14
14
|
width: 100%;
|
|
15
15
|
|
|
16
16
|
.pb-toolbar {
|
|
17
|
-
|
|
18
|
-
margin: 6px 0;
|
|
19
|
-
|
|
17
|
+
margin: 0 -8px;
|
|
20
18
|
|
|
21
19
|
.pb-tool-button-group {
|
|
22
20
|
&::after {
|
|
@@ -41,17 +39,40 @@
|
|
|
41
39
|
}
|
|
42
40
|
}
|
|
43
41
|
|
|
42
|
+
.editor-wrapper {
|
|
43
|
+
height: 100%;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.pb-editor {
|
|
47
|
+
height: 100%;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.pb-editor-body {
|
|
51
|
+
padding: 8px 0 0;
|
|
52
|
+
gap: 8px;
|
|
53
|
+
height: 1px;
|
|
54
|
+
|
|
55
|
+
.bs-tab-sheet {
|
|
56
|
+
.tab-bar {
|
|
57
|
+
.tabs {
|
|
58
|
+
padding-top: 0;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
44
64
|
.pb-navigator {
|
|
45
65
|
width: 200px;
|
|
46
|
-
height:
|
|
47
|
-
overflow: auto;
|
|
48
|
-
|
|
66
|
+
height: 1px;
|
|
67
|
+
overflow-y: auto;
|
|
68
|
+
padding: 8px 0;
|
|
69
|
+
flex-grow: 1;
|
|
49
70
|
}
|
|
50
71
|
|
|
51
72
|
.pb-sidebar {
|
|
52
73
|
width: 300px;
|
|
53
74
|
overflow: auto;
|
|
54
|
-
border
|
|
75
|
+
border: 1px solid $color-border-light;
|
|
55
76
|
|
|
56
77
|
.pb-sidebar-properties {
|
|
57
78
|
padding: 4px 0;
|
|
@@ -3,7 +3,9 @@ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
3
3
|
title?: string | undefined;
|
|
4
4
|
editMode?: string | undefined;
|
|
5
5
|
pageContent?: any;
|
|
6
|
-
}>, {
|
|
6
|
+
}>, {
|
|
7
|
+
getLocalDesignPartContent: () => any[] | undefined;
|
|
8
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
7
9
|
instanceId?: string | undefined;
|
|
8
10
|
title?: string | undefined;
|
|
9
11
|
editMode?: string | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, createElementVNode, toDisplayString } from "vue";
|
|
2
2
|
import { useModal } from "@g1cloud/bluesea";
|
|
3
|
-
import { u as usePageBuilderEditor, P as PageBuilderEditorEvent } from "./index-
|
|
3
|
+
import { u as usePageBuilderEditor, P as PageBuilderEditorEvent } from "./index-DSV66_zQ.js";
|
|
4
4
|
const _hoisted_1 = { class: "property-editor property-editor-image flex-align-center" };
|
|
5
5
|
const _hoisted_2 = { class: "label" };
|
|
6
6
|
const _hoisted_3 = ["textContent"];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, createElementVNode, toDisplayString } from "vue";
|
|
2
2
|
import { useModal } from "@g1cloud/bluesea";
|
|
3
|
-
import { u as usePageBuilderEditor, P as PageBuilderEditorEvent } from "./index-
|
|
3
|
+
import { u as usePageBuilderEditor, P as PageBuilderEditorEvent } from "./index-DSV66_zQ.js";
|
|
4
4
|
const _hoisted_1 = { class: "property-editor property-editor-product flex-align-center" };
|
|
5
5
|
const _hoisted_2 = { class: "label" };
|
|
6
6
|
const _hoisted_3 = ["textContent"];
|