@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 CHANGED
@@ -1,8 +1,21 @@
1
1
  # Page Builder
2
2
 
3
- ## Editor
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
- ### Setup
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
- ### Run
27
+ Build
15
28
 
16
- Start server
29
+ ```bash
30
+ $ pnpm build --watch
31
+ ```
32
+
33
+ ## Demo
34
+
35
+ Install packages
17
36
 
18
37
  ```bash
19
- $ cd packages/editor
20
- $ pnpm run dev
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
@@ -18,6 +18,7 @@ html, body {
18
18
  body {
19
19
  background-color: white;
20
20
  height: 100%;
21
+ margin: 0;
21
22
  }
22
23
 
23
24
  .pb-canvas-wrapper {
@@ -14,9 +14,7 @@
14
14
  width: 100%;
15
15
 
16
16
  .pb-toolbar {
17
- padding: 0 8px;
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: 100%;
47
- overflow: auto;
48
- border-right: 1px solid $color-border-light;
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-left: 1px solid $color-border-light;
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
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
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-BtILenNo.js";
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-BtILenNo.js";
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"];