@g1cloud/page-builder-editor 1.0.0-alpha.10 → 1.0.0-alpha.11
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.scss +10 -0
- package/dist/{HtmlEditorModal-oXFayeg-.js → HtmlEditorModal-B2wOdZTD.js} +13 -15
- package/dist/{PbPropertyEditorColor-B9I99uQK.js → PbPropertyEditorColor-D3brNT4U.js} +1 -1
- package/dist/{PbPropertyEditorHtml-BVT2SwoK.js → PbPropertyEditorHtml-D--QgdEp.js} +2 -2
- package/dist/{PbPropertyEditorImage-DLwg5dJz.js → PbPropertyEditorImage-BB25lcTu.js} +1 -1
- package/dist/{PbPropertyEditorMultilineText-Bv4luXWg.js → PbPropertyEditorMultilineText-BN2Q1P1o.js} +1 -1
- package/dist/{PbPropertyEditorProduct-6STGd-Zs.js → PbPropertyEditorProduct-CBk2DLhW.js} +1 -1
- package/dist/{index-jUNIezk-.js → index-DdC6jCrv.js} +121 -104
- package/dist/model/context.d.ts +4 -4
- package/dist/page-builder-editor.js +1 -1
- package/dist/page-builder-editor.umd.cjs +129 -114
- package/package.json +2 -2
|
@@ -69,8 +69,13 @@
|
|
|
69
69
|
overflow-y: auto;
|
|
70
70
|
padding: 8px 0;
|
|
71
71
|
flex-grow: 1;
|
|
72
|
+
|
|
73
|
+
&:focus {
|
|
74
|
+
outline: none;
|
|
75
|
+
}
|
|
72
76
|
}
|
|
73
77
|
|
|
78
|
+
|
|
74
79
|
.pb-sidebar {
|
|
75
80
|
width: 300px;
|
|
76
81
|
overflow: auto;
|
|
@@ -247,6 +252,11 @@
|
|
|
247
252
|
.bs-code-editor {
|
|
248
253
|
height: 100%;
|
|
249
254
|
}
|
|
255
|
+
|
|
256
|
+
textarea {
|
|
257
|
+
width: 100%;
|
|
258
|
+
height: 100%;
|
|
259
|
+
}
|
|
250
260
|
}
|
|
251
261
|
|
|
252
262
|
.buttons {
|
|
@@ -28,7 +28,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
28
28
|
const style = ref(((_b = props.html) == null ? void 0 : _b.style) || "");
|
|
29
29
|
const html = computed(() => `${tags.value || ""}
|
|
30
30
|
<style>${style.value || ""}</style>`);
|
|
31
|
-
const
|
|
31
|
+
const updateTags = (value) => {
|
|
32
|
+
tags.value = value;
|
|
33
|
+
};
|
|
34
|
+
const updateStyle = (value) => {
|
|
35
|
+
style.value = value;
|
|
32
36
|
};
|
|
33
37
|
const ok = () => {
|
|
34
38
|
emit("updateHtml", {
|
|
@@ -56,28 +60,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
56
60
|
_hoisted_9,
|
|
57
61
|
createElementVNode("div", _hoisted_10, [
|
|
58
62
|
createVNode(unref(BSCodeEditor), {
|
|
59
|
-
|
|
60
|
-
"onUpdate:modelValue": [
|
|
61
|
-
_cache[0] || (_cache[0] = ($event) => tags.value = $event),
|
|
62
|
-
updateHtml
|
|
63
|
-
],
|
|
63
|
+
"model-value": tags.value,
|
|
64
64
|
"editor-height": "100%",
|
|
65
|
-
lang: "html"
|
|
66
|
-
|
|
65
|
+
lang: "html",
|
|
66
|
+
"onUpdate:modelValue": updateTags
|
|
67
|
+
}, null, 8, ["model-value"])
|
|
67
68
|
])
|
|
68
69
|
]),
|
|
69
70
|
createElementVNode("div", _hoisted_11, [
|
|
70
71
|
_hoisted_12,
|
|
71
72
|
createElementVNode("div", _hoisted_13, [
|
|
72
73
|
createVNode(unref(BSCodeEditor), {
|
|
73
|
-
|
|
74
|
-
"onUpdate:modelValue": [
|
|
75
|
-
_cache[1] || (_cache[1] = ($event) => style.value = $event),
|
|
76
|
-
updateHtml
|
|
77
|
-
],
|
|
74
|
+
"model-value": style.value,
|
|
78
75
|
"editor-height": "100%",
|
|
79
|
-
lang: "css"
|
|
80
|
-
|
|
76
|
+
lang: "css",
|
|
77
|
+
"onUpdate:modelValue": updateStyle
|
|
78
|
+
}, null, 8, ["model-value"])
|
|
81
79
|
])
|
|
82
80
|
])
|
|
83
81
|
])
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, createVNode, unref } from "vue";
|
|
2
2
|
import { BSTextInput } from "@g1cloud/bluesea";
|
|
3
|
-
import { P as PbColorPicker } from "./index-
|
|
3
|
+
import { P as PbColorPicker } from "./index-DdC6jCrv.js";
|
|
4
4
|
const _hoisted_1 = { class: "property-editor property-editor-color" };
|
|
5
5
|
const _hoisted_2 = { class: "title" };
|
|
6
6
|
const _hoisted_3 = ["textContent"];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, defineAsyncComponent } from "vue";
|
|
2
2
|
import { useModal } from "@g1cloud/bluesea";
|
|
3
|
-
import { u as usePageBuilderEditor } from "./index-
|
|
3
|
+
import { u as usePageBuilderEditor } from "./index-DdC6jCrv.js";
|
|
4
4
|
const _hoisted_1 = { class: "property-editor property-editor-image flex-align-center" };
|
|
5
5
|
const _hoisted_2 = { class: "title" };
|
|
6
6
|
const _hoisted_3 = ["textContent"];
|
|
@@ -23,7 +23,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
23
23
|
html = props.value[language];
|
|
24
24
|
}
|
|
25
25
|
modal.openModal({
|
|
26
|
-
component: defineAsyncComponent(() => import("./HtmlEditorModal-
|
|
26
|
+
component: defineAsyncComponent(() => import("./HtmlEditorModal-B2wOdZTD.js")),
|
|
27
27
|
style: {
|
|
28
28
|
width: "80%",
|
|
29
29
|
height: "80%",
|
|
@@ -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, a as PageBuilderEditorEvent } from "./index-
|
|
3
|
+
import { u as usePageBuilderEditor, a as PageBuilderEditorEvent } from "./index-DdC6jCrv.js";
|
|
4
4
|
const _hoisted_1 = { class: "property-editor property-editor-image flex-align-center" };
|
|
5
5
|
const _hoisted_2 = { class: "title" };
|
|
6
6
|
const _hoisted_3 = ["textContent"];
|
package/dist/{PbPropertyEditorMultilineText-Bv4luXWg.js → PbPropertyEditorMultilineText-BN2Q1P1o.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createElementBlock, createElementVNode, toDisplayString, createVNode, unref } from "vue";
|
|
2
2
|
import { BSTextArea } from "@g1cloud/bluesea";
|
|
3
|
-
import { u as usePageBuilderEditor } from "./index-
|
|
3
|
+
import { u as usePageBuilderEditor } from "./index-DdC6jCrv.js";
|
|
4
4
|
const _hoisted_1 = { class: "property-editor property-editor-multiline-text" };
|
|
5
5
|
const _hoisted_2 = { class: "title" };
|
|
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, a as PageBuilderEditorEvent } from "./index-
|
|
3
|
+
import { u as usePageBuilderEditor, a as PageBuilderEditorEvent } from "./index-DdC6jCrv.js";
|
|
4
4
|
const _hoisted_1 = { class: "property-editor property-editor-product flex-align-center" };
|
|
5
5
|
const _hoisted_2 = { class: "title" };
|
|
6
6
|
const _hoisted_3 = ["textContent"];
|