@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
|
@@ -7194,7 +7194,7 @@ const PageBuilderViewerEvent = {
|
|
|
7194
7194
|
}
|
|
7195
7195
|
};
|
|
7196
7196
|
const _hoisted_1$1$1 = { class: "pb-product-list-widget" };
|
|
7197
|
-
const _hoisted_2$
|
|
7197
|
+
const _hoisted_2$k = { class: "product" };
|
|
7198
7198
|
const _hoisted_3$h = { class: "image" };
|
|
7199
7199
|
const _hoisted_4$e = ["src"];
|
|
7200
7200
|
const _hoisted_5$7 = { class: "name" };
|
|
@@ -7241,7 +7241,7 @@ const _sfc_main$2$1 = /* @__PURE__ */ defineComponent({
|
|
|
7241
7241
|
key: index,
|
|
7242
7242
|
class: "product-wrapper"
|
|
7243
7243
|
}, [
|
|
7244
|
-
createElementVNode("div", _hoisted_2$
|
|
7244
|
+
createElementVNode("div", _hoisted_2$k, [
|
|
7245
7245
|
products.value[index - 1] ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
7246
7246
|
createElementVNode("div", _hoisted_3$h, [
|
|
7247
7247
|
createElementVNode("img", {
|
|
@@ -7429,7 +7429,7 @@ const _sfc_main$1$1 = /* @__PURE__ */ defineComponent({
|
|
|
7429
7429
|
};
|
|
7430
7430
|
}
|
|
7431
7431
|
});
|
|
7432
|
-
const _hoisted_1$
|
|
7432
|
+
const _hoisted_1$t = { class: "pb-viewer" };
|
|
7433
7433
|
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
7434
7434
|
__name: "PageBuilderViewer",
|
|
7435
7435
|
props: {
|
|
@@ -7460,7 +7460,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
7460
7460
|
}
|
|
7461
7461
|
);
|
|
7462
7462
|
return (_ctx, _cache) => {
|
|
7463
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7463
|
+
return openBlock(), createElementBlock("div", _hoisted_1$t, [
|
|
7464
7464
|
page.value ? (openBlock(), createBlock$1(_sfc_main$1$1, {
|
|
7465
7465
|
key: 0,
|
|
7466
7466
|
"is-mobile-page": _ctx.isMobilePage,
|
|
@@ -8063,12 +8063,12 @@ const defaultPartPropertyEditors = () => {
|
|
|
8063
8063
|
return {
|
|
8064
8064
|
"readonly-text": () => defineAsyncComponent(() => import("./PbPropertyEditorReadonlyText-Dgp_AVOD.js")),
|
|
8065
8065
|
"text": () => defineAsyncComponent(() => import("./PbPropertyEditorText-BWOKvwD9.js")),
|
|
8066
|
-
"multiline-text": () => defineAsyncComponent(() => import("./PbPropertyEditorMultilineText-
|
|
8066
|
+
"multiline-text": () => defineAsyncComponent(() => import("./PbPropertyEditorMultilineText-BN2Q1P1o.js")),
|
|
8067
8067
|
"select": () => defineAsyncComponent(() => import("./PbPropertyEditorSelect-CWedbXJI.js")),
|
|
8068
|
-
"color": () => defineAsyncComponent(() => import("./PbPropertyEditorColor-
|
|
8069
|
-
"image": () => defineAsyncComponent(() => import("./PbPropertyEditorImage-
|
|
8070
|
-
"html": () => defineAsyncComponent(() => import("./PbPropertyEditorHtml-
|
|
8071
|
-
"product": () => defineAsyncComponent(() => import("./PbPropertyEditorProduct-
|
|
8068
|
+
"color": () => defineAsyncComponent(() => import("./PbPropertyEditorColor-D3brNT4U.js")),
|
|
8069
|
+
"image": () => defineAsyncComponent(() => import("./PbPropertyEditorImage-BB25lcTu.js")),
|
|
8070
|
+
"html": () => defineAsyncComponent(() => import("./PbPropertyEditorHtml-D--QgdEp.js")),
|
|
8071
|
+
"product": () => defineAsyncComponent(() => import("./PbPropertyEditorProduct-CBk2DLhW.js"))
|
|
8072
8072
|
};
|
|
8073
8073
|
};
|
|
8074
8074
|
const getPropertyValueOfParts = (parts, propertyName) => {
|
|
@@ -8299,15 +8299,15 @@ const _export_sfc = (sfc, props) => {
|
|
|
8299
8299
|
return target;
|
|
8300
8300
|
};
|
|
8301
8301
|
const _sfc_main$p = {};
|
|
8302
|
-
const _hoisted_1$
|
|
8303
|
-
const _hoisted_2$
|
|
8302
|
+
const _hoisted_1$s = { class: "pb-add-widget-button" };
|
|
8303
|
+
const _hoisted_2$j = /* @__PURE__ */ createElementVNode("span", { class: "icon material-icons-outlined" }, "add_box", -1);
|
|
8304
8304
|
const _hoisted_3$g = /* @__PURE__ */ createElementVNode("span", { class: "text" }, "Add Widget", -1);
|
|
8305
8305
|
const _hoisted_4$d = [
|
|
8306
|
-
_hoisted_2$
|
|
8306
|
+
_hoisted_2$j,
|
|
8307
8307
|
_hoisted_3$g
|
|
8308
8308
|
];
|
|
8309
8309
|
function _sfc_render$1(_ctx, _cache) {
|
|
8310
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8310
|
+
return openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
8311
8311
|
createElementVNode("button", {
|
|
8312
8312
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("add-widget", $event))
|
|
8313
8313
|
}, _hoisted_4$d)
|
|
@@ -8344,8 +8344,8 @@ const useMouseTracker = () => {
|
|
|
8344
8344
|
throw Error(MOUSE_TRACKER_NOT_FOUND);
|
|
8345
8345
|
return mouseTracker;
|
|
8346
8346
|
};
|
|
8347
|
-
const _hoisted_1$
|
|
8348
|
-
const _hoisted_2$
|
|
8347
|
+
const _hoisted_1$r = ["data-model-id", "draggable"];
|
|
8348
|
+
const _hoisted_2$i = {
|
|
8349
8349
|
key: 1,
|
|
8350
8350
|
class: "children"
|
|
8351
8351
|
};
|
|
@@ -8795,7 +8795,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
8795
8795
|
key: 0,
|
|
8796
8796
|
part: _ctx.part
|
|
8797
8797
|
}, null, 8, ["part"])) : createCommentVNode("", true),
|
|
8798
|
-
childComponents.value && childComponents.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
8798
|
+
childComponents.value && childComponents.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_2$i, [
|
|
8799
8799
|
(openBlock(true), createElementBlock(Fragment, null, renderList(childComponents.value, (child) => {
|
|
8800
8800
|
return openBlock(), createBlock$1(resolveDynamicComponent(child.component), {
|
|
8801
8801
|
key: child.part.partId,
|
|
@@ -8813,13 +8813,13 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
8813
8813
|
class: "resize-handle",
|
|
8814
8814
|
onMousedown: _resize_mousedown
|
|
8815
8815
|
}, null, 32)) : createCommentVNode("", true)
|
|
8816
|
-
], 16, _hoisted_1$
|
|
8816
|
+
], 16, _hoisted_1$r)), [
|
|
8817
8817
|
[unref(vPartHandler), { pageBuilder: unref(pageBuilder), part: _ctx.part, droppable: true, locatePositionMark, calculateDropIndex, acceptChildPart }]
|
|
8818
8818
|
]);
|
|
8819
8819
|
};
|
|
8820
8820
|
}
|
|
8821
8821
|
});
|
|
8822
|
-
const _hoisted_1$
|
|
8822
|
+
const _hoisted_1$q = ["data-model-id"];
|
|
8823
8823
|
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
8824
8824
|
__name: "PbBlock",
|
|
8825
8825
|
props: {
|
|
@@ -9015,14 +9015,14 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
9015
9015
|
part: child
|
|
9016
9016
|
}, null, 8, ["part"]);
|
|
9017
9017
|
}), 128))
|
|
9018
|
-
], 16, _hoisted_1$
|
|
9018
|
+
], 16, _hoisted_1$q)), [
|
|
9019
9019
|
[unref(vPartHandler), { pageBuilder: unref(pageBuilder), part: _ctx.part, droppable: true, locatePositionMark, calculateDropIndex, acceptChildPart }]
|
|
9020
9020
|
]);
|
|
9021
9021
|
};
|
|
9022
9022
|
}
|
|
9023
9023
|
});
|
|
9024
|
-
const _hoisted_1$
|
|
9025
|
-
const _hoisted_2$
|
|
9024
|
+
const _hoisted_1$p = { class: "pb-block" };
|
|
9025
|
+
const _hoisted_2$h = /* @__PURE__ */ createElementVNode("div", {
|
|
9026
9026
|
class: "pb-widget",
|
|
9027
9027
|
style: { "margin": "0 auto" }
|
|
9028
9028
|
}, [
|
|
@@ -9031,7 +9031,7 @@ const _hoisted_2$i = /* @__PURE__ */ createElementVNode("div", {
|
|
|
9031
9031
|
])
|
|
9032
9032
|
], -1);
|
|
9033
9033
|
const _hoisted_3$f = [
|
|
9034
|
-
_hoisted_2$
|
|
9034
|
+
_hoisted_2$h
|
|
9035
9035
|
];
|
|
9036
9036
|
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
9037
9037
|
__name: "PbLoginDepart",
|
|
@@ -9040,11 +9040,11 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
9040
9040
|
},
|
|
9041
9041
|
setup(__props) {
|
|
9042
9042
|
return (_ctx, _cache) => {
|
|
9043
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9043
|
+
return openBlock(), createElementBlock("div", _hoisted_1$p, _hoisted_3$f);
|
|
9044
9044
|
};
|
|
9045
9045
|
}
|
|
9046
9046
|
});
|
|
9047
|
-
const _hoisted_1$
|
|
9047
|
+
const _hoisted_1$o = ["data-model-id"];
|
|
9048
9048
|
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
9049
9049
|
__name: "PbSection",
|
|
9050
9050
|
props: {
|
|
@@ -9171,14 +9171,14 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
9171
9171
|
onAddWidget: addWidget
|
|
9172
9172
|
}))
|
|
9173
9173
|
], 64))
|
|
9174
|
-
], 16, _hoisted_1$
|
|
9174
|
+
], 16, _hoisted_1$o)), [
|
|
9175
9175
|
[unref(vPartHandler), { pageBuilder: unref(pageBuilder), part: _ctx.part, droppable: true, locatePositionMark, calculateDropIndex, acceptChildPart }]
|
|
9176
9176
|
]);
|
|
9177
9177
|
};
|
|
9178
9178
|
}
|
|
9179
9179
|
});
|
|
9180
|
-
const _hoisted_1$
|
|
9181
|
-
const _hoisted_2$
|
|
9180
|
+
const _hoisted_1$n = { class: "group-editor group-editor-position" };
|
|
9181
|
+
const _hoisted_2$g = { class: "flex-align-center" };
|
|
9182
9182
|
const _hoisted_3$e = /* @__PURE__ */ createElementVNode("div", { class: "title" }, [
|
|
9183
9183
|
/* @__PURE__ */ createElementVNode("label", { textContent: "Position" })
|
|
9184
9184
|
], -1);
|
|
@@ -9217,8 +9217,8 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
9217
9217
|
const updateTop = (value) => updatePropertyValue({ top: value });
|
|
9218
9218
|
const updateBottom = (value) => updatePropertyValue({ bottom: value });
|
|
9219
9219
|
return (_ctx, _cache) => {
|
|
9220
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9221
|
-
createElementVNode("div", _hoisted_2$
|
|
9220
|
+
return openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
9221
|
+
createElementVNode("div", _hoisted_2$g, [
|
|
9222
9222
|
_hoisted_3$e,
|
|
9223
9223
|
createElementVNode("div", _hoisted_4$c, [
|
|
9224
9224
|
createElementVNode("div", _hoisted_5$6, [
|
|
@@ -9264,8 +9264,8 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
9264
9264
|
};
|
|
9265
9265
|
}
|
|
9266
9266
|
});
|
|
9267
|
-
const _hoisted_1$
|
|
9268
|
-
const _hoisted_2$
|
|
9267
|
+
const _hoisted_1$m = { class: "group-editor group-editor-size" };
|
|
9268
|
+
const _hoisted_2$f = { class: "flex-align-center" };
|
|
9269
9269
|
const _hoisted_3$d = /* @__PURE__ */ createElementVNode("div", { class: "title" }, [
|
|
9270
9270
|
/* @__PURE__ */ createElementVNode("label", { textContent: "Size" })
|
|
9271
9271
|
], -1);
|
|
@@ -9290,8 +9290,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
9290
9290
|
const updateWidth = (value) => updatePropertyValue({ width: value });
|
|
9291
9291
|
const updateHeight = (value) => updatePropertyValue({ height: value });
|
|
9292
9292
|
return (_ctx, _cache) => {
|
|
9293
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9294
|
-
createElementVNode("div", _hoisted_2$
|
|
9293
|
+
return openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
9294
|
+
createElementVNode("div", _hoisted_2$f, [
|
|
9295
9295
|
_hoisted_3$d,
|
|
9296
9296
|
createElementVNode("div", _hoisted_4$b, [
|
|
9297
9297
|
createVNode(unref(BSTextInput), {
|
|
@@ -9469,8 +9469,8 @@ var script$4 = {
|
|
|
9469
9469
|
}
|
|
9470
9470
|
}
|
|
9471
9471
|
};
|
|
9472
|
-
const _hoisted_1$
|
|
9473
|
-
const _hoisted_2$
|
|
9472
|
+
const _hoisted_1$l = { class: "vc-alpha" };
|
|
9473
|
+
const _hoisted_2$e = { class: "vc-alpha-checkboard-wrap" };
|
|
9474
9474
|
const _hoisted_3$c = /* @__PURE__ */ createElementVNode(
|
|
9475
9475
|
"div",
|
|
9476
9476
|
{ class: "vc-alpha-picker" },
|
|
@@ -9483,8 +9483,8 @@ const _hoisted_4$a = [
|
|
|
9483
9483
|
];
|
|
9484
9484
|
function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9485
9485
|
const _component_Checkboard = resolveComponent("Checkboard");
|
|
9486
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9487
|
-
createElementVNode("div", _hoisted_2$
|
|
9486
|
+
return openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
9487
|
+
createElementVNode("div", _hoisted_2$e, [
|
|
9488
9488
|
createVNode(_component_Checkboard)
|
|
9489
9489
|
]),
|
|
9490
9490
|
createElementVNode(
|
|
@@ -10587,12 +10587,12 @@ var script$3 = {
|
|
|
10587
10587
|
// }
|
|
10588
10588
|
}
|
|
10589
10589
|
};
|
|
10590
|
-
const _hoisted_1$
|
|
10591
|
-
const _hoisted_2$
|
|
10590
|
+
const _hoisted_1$k = { class: "vc-editable-input" };
|
|
10591
|
+
const _hoisted_2$d = ["aria-labelledby"];
|
|
10592
10592
|
const _hoisted_3$b = ["id", "for"];
|
|
10593
10593
|
const _hoisted_4$9 = { class: "vc-input__desc" };
|
|
10594
10594
|
function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10595
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
10595
|
+
return openBlock(), createElementBlock("div", _hoisted_1$k, [
|
|
10596
10596
|
withDirectives(createElementVNode("input", {
|
|
10597
10597
|
ref: "input",
|
|
10598
10598
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $options.val = $event),
|
|
@@ -10600,7 +10600,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10600
10600
|
class: "vc-input__input",
|
|
10601
10601
|
onKeydown: _cache[1] || (_cache[1] = (...args) => $options.handleKeyDown && $options.handleKeyDown(...args)),
|
|
10602
10602
|
onInput: _cache[2] || (_cache[2] = (...args) => $options.update && $options.update(...args))
|
|
10603
|
-
}, null, 40, _hoisted_2$
|
|
10603
|
+
}, null, 40, _hoisted_2$d), [
|
|
10604
10604
|
[vModelText, $options.val]
|
|
10605
10605
|
]),
|
|
10606
10606
|
createElementVNode("span", {
|
|
@@ -10687,14 +10687,14 @@ var script$2 = {
|
|
|
10687
10687
|
}
|
|
10688
10688
|
}
|
|
10689
10689
|
};
|
|
10690
|
-
const _hoisted_1$
|
|
10690
|
+
const _hoisted_1$j = /* @__PURE__ */ createElementVNode(
|
|
10691
10691
|
"div",
|
|
10692
10692
|
{ class: "vc-saturation--white" },
|
|
10693
10693
|
null,
|
|
10694
10694
|
-1
|
|
10695
10695
|
/* HOISTED */
|
|
10696
10696
|
);
|
|
10697
|
-
const _hoisted_2$
|
|
10697
|
+
const _hoisted_2$c = /* @__PURE__ */ createElementVNode(
|
|
10698
10698
|
"div",
|
|
10699
10699
|
{ class: "vc-saturation--black" },
|
|
10700
10700
|
null,
|
|
@@ -10723,8 +10723,8 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10723
10723
|
onTouchstart: _cache[2] || (_cache[2] = (...args) => $options.handleChange && $options.handleChange(...args))
|
|
10724
10724
|
},
|
|
10725
10725
|
[
|
|
10726
|
-
_hoisted_1$
|
|
10727
|
-
_hoisted_2$
|
|
10726
|
+
_hoisted_1$j,
|
|
10727
|
+
_hoisted_2$c,
|
|
10728
10728
|
createElementVNode(
|
|
10729
10729
|
"div",
|
|
10730
10730
|
{
|
|
@@ -10872,8 +10872,8 @@ var script$1 = {
|
|
|
10872
10872
|
}
|
|
10873
10873
|
}
|
|
10874
10874
|
};
|
|
10875
|
-
const _hoisted_1$
|
|
10876
|
-
const _hoisted_2$
|
|
10875
|
+
const _hoisted_1$i = ["aria-valuenow"];
|
|
10876
|
+
const _hoisted_2$b = /* @__PURE__ */ createElementVNode(
|
|
10877
10877
|
"div",
|
|
10878
10878
|
{ class: "vc-hue-picker" },
|
|
10879
10879
|
null,
|
|
@@ -10881,7 +10881,7 @@ const _hoisted_2$c = /* @__PURE__ */ createElementVNode(
|
|
|
10881
10881
|
/* HOISTED */
|
|
10882
10882
|
);
|
|
10883
10883
|
const _hoisted_3$9 = [
|
|
10884
|
-
_hoisted_2$
|
|
10884
|
+
_hoisted_2$b
|
|
10885
10885
|
];
|
|
10886
10886
|
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10887
10887
|
return openBlock(), createElementBlock(
|
|
@@ -10912,7 +10912,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10912
10912
|
4
|
|
10913
10913
|
/* STYLE */
|
|
10914
10914
|
)
|
|
10915
|
-
], 40, _hoisted_1$
|
|
10915
|
+
], 40, _hoisted_1$i)
|
|
10916
10916
|
],
|
|
10917
10917
|
2
|
|
10918
10918
|
/* CLASS */
|
|
@@ -11008,8 +11008,8 @@ var script = {
|
|
|
11008
11008
|
}
|
|
11009
11009
|
}
|
|
11010
11010
|
};
|
|
11011
|
-
const _hoisted_1$
|
|
11012
|
-
const _hoisted_2$
|
|
11011
|
+
const _hoisted_1$h = { class: "vc-sketch-saturation-wrap" };
|
|
11012
|
+
const _hoisted_2$a = { class: "vc-sketch-controls" };
|
|
11013
11013
|
const _hoisted_3$8 = { class: "vc-sketch-sliders" };
|
|
11014
11014
|
const _hoisted_4$7 = { class: "vc-sketch-hue-wrap" };
|
|
11015
11015
|
const _hoisted_5$5 = {
|
|
@@ -11051,13 +11051,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11051
11051
|
class: normalizeClass(["vc-sketch", [$props.disableAlpha ? "vc-sketch__disable-alpha" : ""]])
|
|
11052
11052
|
},
|
|
11053
11053
|
[
|
|
11054
|
-
createElementVNode("div", _hoisted_1$
|
|
11054
|
+
createElementVNode("div", _hoisted_1$h, [
|
|
11055
11055
|
createVNode(_component_Saturation, {
|
|
11056
11056
|
value: _ctx.colors,
|
|
11057
11057
|
onChange: $options.childChange
|
|
11058
11058
|
}, null, 8, ["value", "onChange"])
|
|
11059
11059
|
]),
|
|
11060
|
-
createElementVNode("div", _hoisted_2$
|
|
11060
|
+
createElementVNode("div", _hoisted_2$a, [
|
|
11061
11061
|
createElementVNode("div", _hoisted_3$8, [
|
|
11062
11062
|
createElementVNode("div", _hoisted_4$7, [
|
|
11063
11063
|
createVNode(_component_Hue, {
|
|
@@ -11204,7 +11204,7 @@ const _sfc_main$i = defineComponent({
|
|
|
11204
11204
|
() => setTimeout(() => {
|
|
11205
11205
|
if (appliedColor.value)
|
|
11206
11206
|
emit("change-color", appliedColor.value);
|
|
11207
|
-
}),
|
|
11207
|
+
}, 100),
|
|
11208
11208
|
{ deep: true }
|
|
11209
11209
|
);
|
|
11210
11210
|
watch(
|
|
@@ -11227,10 +11227,10 @@ const _sfc_main$i = defineComponent({
|
|
|
11227
11227
|
};
|
|
11228
11228
|
}
|
|
11229
11229
|
});
|
|
11230
|
-
const _hoisted_1$
|
|
11231
|
-
const _hoisted_2$
|
|
11230
|
+
const _hoisted_1$g = { class: "buttons" };
|
|
11231
|
+
const _hoisted_2$9 = /* @__PURE__ */ createElementVNode("i", { class: "material-icons-outlined" }, "delete", -1);
|
|
11232
11232
|
const _hoisted_3$7 = [
|
|
11233
|
-
_hoisted_2$
|
|
11233
|
+
_hoisted_2$9
|
|
11234
11234
|
];
|
|
11235
11235
|
const _hoisted_4$6 = { class: "sketch-wrap" };
|
|
11236
11236
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -11241,7 +11241,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11241
11241
|
onKeydown: _cache[3] || (_cache[3] = withModifiers(() => {
|
|
11242
11242
|
}, ["stop"]))
|
|
11243
11243
|
}, [
|
|
11244
|
-
createElementVNode("div", _hoisted_1$
|
|
11244
|
+
createElementVNode("div", _hoisted_1$g, [
|
|
11245
11245
|
renderSlot(_ctx.$slots, "button", normalizeProps(guardReactiveProps({ toggle: _ctx.toggle, color: _ctx.color })), () => [
|
|
11246
11246
|
createElementVNode("button", {
|
|
11247
11247
|
class: normalizeClass([{ none: !_ctx.color }, "pb-button picker-button"]),
|
|
@@ -11268,8 +11268,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11268
11268
|
]);
|
|
11269
11269
|
}
|
|
11270
11270
|
const PbColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render]]);
|
|
11271
|
-
const _hoisted_1$
|
|
11272
|
-
const _hoisted_2$
|
|
11271
|
+
const _hoisted_1$f = { class: "group-editor group-editor-background" };
|
|
11272
|
+
const _hoisted_2$8 = { class: "flex-align-center" };
|
|
11273
11273
|
const _hoisted_3$6 = /* @__PURE__ */ createElementVNode("div", { class: "title" }, [
|
|
11274
11274
|
/* @__PURE__ */ createElementVNode("label", { textContent: "Background" })
|
|
11275
11275
|
], -1);
|
|
@@ -11305,8 +11305,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
11305
11305
|
});
|
|
11306
11306
|
};
|
|
11307
11307
|
return (_ctx, _cache) => {
|
|
11308
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11309
|
-
createElementVNode("div", _hoisted_2$
|
|
11308
|
+
return openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
11309
|
+
createElementVNode("div", _hoisted_2$8, [
|
|
11310
11310
|
_hoisted_3$6,
|
|
11311
11311
|
createElementVNode("div", _hoisted_4$5, [
|
|
11312
11312
|
createElementVNode("div", _hoisted_5$4, [
|
|
@@ -11338,8 +11338,8 @@ const TopLeftCornerIcon = "data:image/svg+xml,%3c!DOCTYPE%20svg%20PUBLIC%20'-//W
|
|
|
11338
11338
|
const TopRightCornerIcon = "data:image/svg+xml,%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Transformed%20by:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%20fill='%23000000'%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'/%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3cg%3e%3cpath%20fill='none'%20d='M0%200H24V24H0z'/%3e%3cpath%20d='M21%2019v2h-2v-2h2zm-4%200v2h-2v-2h2zm-4%200v2h-2v-2h2zm-4%200v2H7v-2h2zm-4%200v2H3v-2h2zm16-4v2h-2v-2h2zM5%2015v2H3v-2h2zm0-4v2H3v-2h2zm11-8c2.687%200%204.882%202.124%204.995%204.783L21%208v5h-2V8c0-1.591-1.255-2.903-2.824-2.995L16%205h-5V3h5zM5%207v2H3V7h2zm0-4v2H3V3h2zm4%200v2H7V3h2z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
|
|
11339
11339
|
const BottomLeftCornerIcon = "data:image/svg+xml,%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Transformed%20by:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%20fill='%23000000'%20transform='rotate(180)'%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'/%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3cg%3e%3cpath%20fill='none'%20d='M0%200H24V24H0z'/%3e%3cpath%20d='M21%2019v2h-2v-2h2zm-4%200v2h-2v-2h2zm-4%200v2h-2v-2h2zm-4%200v2H7v-2h2zm-4%200v2H3v-2h2zm16-4v2h-2v-2h2zM5%2015v2H3v-2h2zm0-4v2H3v-2h2zm11-8c2.687%200%204.882%202.124%204.995%204.783L21%208v5h-2V8c0-1.591-1.255-2.903-2.824-2.995L16%205h-5V3h5zM5%207v2H3V7h2zm0-4v2H3V3h2zm4%200v2H7V3h2z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
|
|
11340
11340
|
const BottomRightCornerIcon = "data:image/svg+xml,%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Transformed%20by:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%20fill='%23000000'%20transform='rotate(90)'%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'/%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3cg%3e%3cpath%20fill='none'%20d='M0%200H24V24H0z'/%3e%3cpath%20d='M21%2019v2h-2v-2h2zm-4%200v2h-2v-2h2zm-4%200v2h-2v-2h2zm-4%200v2H7v-2h2zm-4%200v2H3v-2h2zm16-4v2h-2v-2h2zM5%2015v2H3v-2h2zm0-4v2H3v-2h2zm11-8c2.687%200%204.882%202.124%204.995%204.783L21%208v5h-2V8c0-1.591-1.255-2.903-2.824-2.995L16%205h-5V3h5zM5%207v2H3V7h2zm0-4v2H3V3h2zm4%200v2H7V3h2z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
|
|
11341
|
-
const _hoisted_1$
|
|
11342
|
-
const _hoisted_2$
|
|
11341
|
+
const _hoisted_1$e = { class: "group-editor group-editor-border" };
|
|
11342
|
+
const _hoisted_2$7 = { class: "flex-align-center" };
|
|
11343
11343
|
const _hoisted_3$5 = /* @__PURE__ */ createElementVNode("div", { class: "title" }, [
|
|
11344
11344
|
/* @__PURE__ */ createElementVNode("label", { textContent: "Border" })
|
|
11345
11345
|
], -1);
|
|
@@ -11409,8 +11409,8 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
11409
11409
|
const updateBorderBottomLeftRadius = (value) => updatePropertyValue({ borderBottomLeftRadius: value });
|
|
11410
11410
|
const updateBorderBottomRightRadius = (value) => updatePropertyValue({ borderBottomRightRadius: value });
|
|
11411
11411
|
return (_ctx, _cache) => {
|
|
11412
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11413
|
-
createElementVNode("div", _hoisted_2$
|
|
11412
|
+
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
11413
|
+
createElementVNode("div", _hoisted_2$7, [
|
|
11414
11414
|
_hoisted_3$5,
|
|
11415
11415
|
createElementVNode("div", _hoisted_4$4, [
|
|
11416
11416
|
_hoisted_5$3,
|
|
@@ -11518,8 +11518,8 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
11518
11518
|
};
|
|
11519
11519
|
}
|
|
11520
11520
|
});
|
|
11521
|
-
const _hoisted_1$
|
|
11522
|
-
const _hoisted_2$
|
|
11521
|
+
const _hoisted_1$d = { class: "group-editor group-editor-margin" };
|
|
11522
|
+
const _hoisted_2$6 = { class: "flex-align-center" };
|
|
11523
11523
|
const _hoisted_3$4 = /* @__PURE__ */ createElementVNode("div", { class: "title" }, [
|
|
11524
11524
|
/* @__PURE__ */ createElementVNode("label", { textContent: "Margin" })
|
|
11525
11525
|
], -1);
|
|
@@ -11558,8 +11558,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
11558
11558
|
const updateTop = (value) => updatePropertyValue({ marginTop: value });
|
|
11559
11559
|
const updateBottom = (value) => updatePropertyValue({ marginBottom: value });
|
|
11560
11560
|
return (_ctx, _cache) => {
|
|
11561
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11562
|
-
createElementVNode("div", _hoisted_2$
|
|
11561
|
+
return openBlock(), createElementBlock("div", _hoisted_1$d, [
|
|
11562
|
+
createElementVNode("div", _hoisted_2$6, [
|
|
11563
11563
|
_hoisted_3$4,
|
|
11564
11564
|
createElementVNode("div", _hoisted_4$3, [
|
|
11565
11565
|
createElementVNode("div", _hoisted_5$2, [
|
|
@@ -11605,8 +11605,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
11605
11605
|
};
|
|
11606
11606
|
}
|
|
11607
11607
|
});
|
|
11608
|
-
const _hoisted_1$
|
|
11609
|
-
const _hoisted_2$
|
|
11608
|
+
const _hoisted_1$c = { class: "group-editor group-editor-padding" };
|
|
11609
|
+
const _hoisted_2$5 = { class: "flex-align-center" };
|
|
11610
11610
|
const _hoisted_3$3 = /* @__PURE__ */ createElementVNode("div", { class: "title" }, [
|
|
11611
11611
|
/* @__PURE__ */ createElementVNode("label", { textContent: "Padding" })
|
|
11612
11612
|
], -1);
|
|
@@ -11645,8 +11645,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
11645
11645
|
const updateTop = (value) => updatePropertyValue({ paddingTop: value });
|
|
11646
11646
|
const updateBottom = (value) => updatePropertyValue({ paddingBottom: value });
|
|
11647
11647
|
return (_ctx, _cache) => {
|
|
11648
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11649
|
-
createElementVNode("div", _hoisted_2$
|
|
11648
|
+
return openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
11649
|
+
createElementVNode("div", _hoisted_2$5, [
|
|
11650
11650
|
_hoisted_3$3,
|
|
11651
11651
|
createElementVNode("div", _hoisted_4$2, [
|
|
11652
11652
|
createElementVNode("div", _hoisted_5$1, [
|
|
@@ -13331,11 +13331,11 @@ class KeyHandlersImpl {
|
|
|
13331
13331
|
}
|
|
13332
13332
|
}
|
|
13333
13333
|
}
|
|
13334
|
-
addDocumentKeyEventListener(
|
|
13335
|
-
|
|
13334
|
+
addDocumentKeyEventListener(element) {
|
|
13335
|
+
element.addEventListener("keydown", this.handleKeyDownEvent.bind(this));
|
|
13336
13336
|
}
|
|
13337
|
-
removeDocumentKeyEventListener(
|
|
13338
|
-
|
|
13337
|
+
removeDocumentKeyEventListener(element) {
|
|
13338
|
+
element.removeEventListener("keydown", this.handleKeyDownEvent.bind(this));
|
|
13339
13339
|
}
|
|
13340
13340
|
}
|
|
13341
13341
|
const PAGE_BUILDER_EDITOR_KEY = "PageBuilderEditor";
|
|
@@ -13450,9 +13450,9 @@ class PageBuilderEditorImpl {
|
|
|
13450
13450
|
});
|
|
13451
13451
|
}
|
|
13452
13452
|
}
|
|
13453
|
-
const _hoisted_1$
|
|
13454
|
-
const _hoisted_2$
|
|
13455
|
-
_hoisted_1$
|
|
13453
|
+
const _hoisted_1$b = /* @__PURE__ */ createElementVNode("i", { class: "material-icons-outlined" }, "add_circle_outline", -1);
|
|
13454
|
+
const _hoisted_2$4 = [
|
|
13455
|
+
_hoisted_1$b
|
|
13456
13456
|
];
|
|
13457
13457
|
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
13458
13458
|
__name: "PbPage",
|
|
@@ -13499,12 +13499,12 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
13499
13499
|
var _a2, _b;
|
|
13500
13500
|
return insertSection(((_b = (_a2 = _ctx.page) == null ? void 0 : _a2.children) == null ? void 0 : _b.length) || 0);
|
|
13501
13501
|
})
|
|
13502
|
-
}, _hoisted_2$
|
|
13502
|
+
}, _hoisted_2$4)
|
|
13503
13503
|
], 4);
|
|
13504
13504
|
};
|
|
13505
13505
|
}
|
|
13506
13506
|
});
|
|
13507
|
-
const _hoisted_1$
|
|
13507
|
+
const _hoisted_1$a = /* @__PURE__ */ createElementVNode("div", { style: { "width": "20px" } }, null, -1);
|
|
13508
13508
|
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
13509
13509
|
__name: "PbCanvas",
|
|
13510
13510
|
setup(__props) {
|
|
@@ -13557,7 +13557,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
13557
13557
|
page: pageS.value,
|
|
13558
13558
|
width: 420
|
|
13559
13559
|
}, null, 8, ["page"]),
|
|
13560
|
-
_hoisted_1$
|
|
13560
|
+
_hoisted_1$a,
|
|
13561
13561
|
createVNode(_sfc_main$d, {
|
|
13562
13562
|
"is-mobile-page": false,
|
|
13563
13563
|
page: pageL.value,
|
|
@@ -13569,7 +13569,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
13569
13569
|
}
|
|
13570
13570
|
});
|
|
13571
13571
|
const canvasStyle = '.pb-page {\n margin: 0 auto;\n margin-top: 20px;\n background-position: 50% 50%;\n background-repeat: no-repeat;\n background-size: cover;\n}\n.pb-page .pb-page-content.selected {\n outline: 2px solid #4998f8;\n outline-offset: 5px;\n}\n.pb-page * {\n box-sizing: border-box;\n}\n.pb-add-widget-button {\n width: 100%;\n height: 100%;\n min-height: 200px;\n position: relative;\n}\n.pb-add-widget-button button {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n padding: 8px;\n background: none;\n border: none;\n cursor: pointer;\n}\n.pb-add-widget-button button:hover {\n background-color: #eeeeee;\n}\n.pb-add-widget-button .icon {\n font-size: 1rem;\n vertical-align: middle;\n}\n.pb-add-widget-button .text {\n font-size: 1rem;\n vertical-align: middle;\n margin-left: 0.4rem;\n}\n.pb-section {\n position: relative;\n background-position: 50% 50%;\n background-repeat: no-repeat;\n background-size: cover;\n outline: 1px dashed #ccc;\n background-color: #fff;\n}\n.pb-section:hover:not(:has(.pb-block:hover)) {\n background-color: #f0f0f0;\n}\n.pb-section.selected {\n outline: 1px solid #e67e22;\n outline-offset: 1px;\n z-index: 999;\n}\n.pb-section.pb-section-static {\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n pointer-events: none;\n}\n.pb-section.pb-section-static:after {\n content: "";\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.2);\n}\n.pb-section-static .pb-widget {\n outline: none;\n}\n.pb-block {\n display: flex;\n min-width: 1px;\n position: relative;\n background-position: 50% 50%;\n background-repeat: no-repeat;\n background-size: cover;\n width: 100%;\n outline: 1px dashed #ccc;\n}\n.pb-block:hover:not(:has(.pb-widget:hover)) {\n background-color: #f0f0f0;\n}\n.pb-block.selected {\n outline: 1px solid #8e44ad;\n outline-offset: 1px;\n z-index: 999;\n}\n.pb-widget {\n position: relative;\n outline: 1px dashed #ccc;\n background-position: 50% 50%;\n background-repeat: no-repeat;\n background-size: cover;\n}\n.pb-widget.selected {\n outline: 2px solid #27ae60;\n outline-offset: 1px;\n z-index: 999;\n}\n.pb-widget .children {\n position: absolute;\n width: 100%;\n height: 100%;\n}\n.pb-widget .pan-handle {\n position: absolute;\n left: -6px;\n top: -6px;\n width: 12px;\n height: 12px;\n background-color: #27ae60;\n cursor: move;\n}\n.pb-widget .resize-handle {\n position: absolute;\n right: -6px;\n bottom: -6px;\n width: 12px;\n height: 12px;\n background-color: #27ae60;\n cursor: nwse-resize;\n}\n.pb-widget {\n position: relative;\n background-position: 50% 50%;\n background-repeat: no-repeat;\n background-size: cover;\n width: 100%;\n}\n.pb-widget .children {\n position: absolute;\n width: 100%;\n height: 100%;\n}\n.pb-text-widget {\n width: 100%;\n height: fit-content;\n}\n.pb-text-widget .text {\n color: #333;\n}\n.pb-text-widget.empty .text {\n color: #999;\n}\n.pb-image-widget {\n width: 100%;\n}\n.pb-image-widget .image {\n width: 100%;\n}\n.pb-image-widget .empty {\n height: 100px;\n background-color: #eee;\n text-align: center;\n}\n.pb-image-widget .empty span {\n font-size: 40px;\n color: #999;\n line-height: 100px;\n vertical-align: middle;\n}\n.pb-html-widget {\n width: 100%;\n height: fit-content;\n}\n.pb-html-widget.empty {\n padding: 4px 0;\n font-size: 18px;\n color: #999;\n}\n.pb-product-list-widget {\n width: 100%;\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n justify-content: flex-start;\n align-items: center;\n}\n.pb-product-list-widget .product-wrapper {\n width: 25%;\n}\n.pb-product-list-widget .product-wrapper .product {\n width: 95%;\n margin: 0 auto;\n padding-top: 8px;\n padding-bottom: 8px;\n}\n.pb-product-list-widget .product-wrapper img {\n width: 100%;\n}\n.pb-product-list-widget .product-wrapper .name {\n margin-top: 8px;\n font-size: 14px;\n}\n.pb-product-list-widget .product-wrapper .price {\n margin-top: 8px;\n font-size: 14px;\n font-weight: bold;\n}\n.pb-product-list-widget .product-wrapper .empty {\n height: 200px;\n background-color: #eee;\n text-align: center;\n}\n.pb-product-list-widget .product-wrapper .empty span {\n font-size: 40px;\n color: #999;\n line-height: 200px;\n vertical-align: middle;\n}\n@media (max-width: 768px) {\n .pb-product-list-widget .product-wrapper {\n width: 50%;\n }\n}\n.mobile .pb-product-list-widget .product-wrapper {\n width: 50%;\n}\n.pb-login-widget {\n height: 200px;\n text-align: center;\n}\n.pb-login-widget h3 {\n font-size: 32px;\n font-weight: bold;\n color: #ccc;\n line-height: 200px;\n vertical-align: middle;\n}\n.font-icon {\n font-family: Material Symbols Outlined, monospace;\n font-size: 1rem;\n max-width: 1em;\n}\nhtml, body {\n font-family: Noto Sans, Noto Sans KR, Noto Sans JP, Arial, sans-serif;\n font-size: 12px;\n}\nbody {\n background-color: white;\n height: 100%;\n margin: 0;\n}\n.pb-canvas-wrapper {\n padding: 32px 40px 56px 40px;\n height: 100%;\n background-color: #aaa;\n overflow: auto;\n}\n.pb-canvas-wrapper .pb-canvas {\n display: flex;\n flex-direction: row;\n transform-origin: top left;\n width: fit-content;\n min-width: 40px;\n min-height: 40px;\n margin: 0 auto;\n}\n.pb-position-mark {\n background-color: #ff3333;\n opacity: 0.5;\n border-radius: 2px;\n}\n.pb-add-section-handle {\n position: relative;\n text-align: center;\n cursor: pointer;\n z-index: 5;\n height: 0;\n}\n.pb-add-section-handle.top::before, .pb-add-section-handle.bottom::before, .pb-add-section-handle.middle::before {\n content: "";\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n opacity: 0;\n pointer-events: none;\n}\n.pb-add-section-handle.bottom {\n left: 50%;\n bottom: -32px;\n}\n.pb-add-section-handle:hover.top::before, .pb-add-section-handle:hover.bottom::before, .pb-add-section-handle:hover.middle::before,\n.pb-add-section-handle:hover > i {\n opacity: 1;\n}\n.pb-add-section-handle > i {\n vertical-align: middle;\n position: absolute;\n top: 50%;\n left: -20px;\n font-size: 2rem;\n transform: translate(-50%, -50%);\n opacity: 0.2;\n}\n.pb-button {\n background: none;\n border: none;\n cursor: pointer;\n vertical-align: middle;\n}\n.pb-guideline {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n}\n.pb-guideline.selected {\n z-index: 3;\n}\n.pb-guideline.preselect {\n z-index: 4;\n}';
|
|
13572
|
-
const _hoisted_1$
|
|
13572
|
+
const _hoisted_1$9 = { class: "pb-canvas-frame" };
|
|
13573
13573
|
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
13574
13574
|
__name: "PbCanvasFrame",
|
|
13575
13575
|
setup(__props) {
|
|
@@ -13605,14 +13605,14 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
13605
13605
|
<link href="https://fonts.googleapis.com/css2?family=Material+Icons+Outlined" rel="stylesheet" />
|
|
13606
13606
|
<style>${canvasStyle}</style>
|
|
13607
13607
|
`;
|
|
13608
|
-
pageBuilderEditor.keyHandlers.addDocumentKeyEventListener(iframeRef.value.contentWindow.document);
|
|
13608
|
+
pageBuilderEditor.keyHandlers.addDocumentKeyEventListener(iframeRef.value.contentWindow.document.body);
|
|
13609
13609
|
stopIframeWatch();
|
|
13610
13610
|
}
|
|
13611
13611
|
}
|
|
13612
13612
|
);
|
|
13613
13613
|
return (_ctx, _cache) => {
|
|
13614
13614
|
var _a, _b, _c, _d;
|
|
13615
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13615
|
+
return openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
13616
13616
|
createElementVNode("iframe", {
|
|
13617
13617
|
ref_key: "iframeRef",
|
|
13618
13618
|
ref: iframeRef,
|
|
@@ -13628,7 +13628,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
13628
13628
|
};
|
|
13629
13629
|
}
|
|
13630
13630
|
});
|
|
13631
|
-
const _hoisted_1$
|
|
13631
|
+
const _hoisted_1$8 = { class: "pb-tool-button bs-layout-horizontal flex-align-center" };
|
|
13632
13632
|
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
13633
13633
|
__name: "PbToolbarButton",
|
|
13634
13634
|
props: {
|
|
@@ -13642,7 +13642,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
13642
13642
|
(_b = (_a = props.button).handler) == null ? void 0 : _b.call(_a, pageBuilder);
|
|
13643
13643
|
};
|
|
13644
13644
|
return (_ctx, _cache) => {
|
|
13645
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13645
|
+
return openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
13646
13646
|
createElementVNode("div", {
|
|
13647
13647
|
class: "tool-button bs-clickable",
|
|
13648
13648
|
onClick: handleClick
|
|
@@ -13657,7 +13657,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
13657
13657
|
};
|
|
13658
13658
|
}
|
|
13659
13659
|
});
|
|
13660
|
-
const _hoisted_1$
|
|
13660
|
+
const _hoisted_1$7 = { class: "pb-tool-button-group bs-layout-horizontal flex-align-center" };
|
|
13661
13661
|
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
13662
13662
|
__name: "PbToolbarButtonGroup",
|
|
13663
13663
|
props: {
|
|
@@ -13665,7 +13665,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
13665
13665
|
},
|
|
13666
13666
|
setup(__props) {
|
|
13667
13667
|
return (_ctx, _cache) => {
|
|
13668
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13668
|
+
return openBlock(), createElementBlock("div", _hoisted_1$7, [
|
|
13669
13669
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.group.buttons, (button) => {
|
|
13670
13670
|
return openBlock(), createBlock$1(_sfc_main$a, {
|
|
13671
13671
|
key: button.buttonId,
|
|
@@ -13676,8 +13676,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
13676
13676
|
};
|
|
13677
13677
|
}
|
|
13678
13678
|
});
|
|
13679
|
-
const _hoisted_1$
|
|
13680
|
-
const _hoisted_2$
|
|
13679
|
+
const _hoisted_1$6 = { class: "pb-toolbar bs-layout-horizontal align-items-center" };
|
|
13680
|
+
const _hoisted_2$3 = { class: "bs-layout-horizontal" };
|
|
13681
13681
|
const _hoisted_3$2 = /* @__PURE__ */ createElementVNode("div", { class: "flex-grow-1" }, null, -1);
|
|
13682
13682
|
const _hoisted_4$1 = { class: "ml-8 w-64" };
|
|
13683
13683
|
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
@@ -13693,8 +13693,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
13693
13693
|
pageBuilder.zoom(scale2);
|
|
13694
13694
|
};
|
|
13695
13695
|
return (_ctx, _cache) => {
|
|
13696
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13697
|
-
createElementVNode("div", _hoisted_2$
|
|
13696
|
+
return openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
13697
|
+
createElementVNode("div", _hoisted_2$3, [
|
|
13698
13698
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(buttonGroups), (group) => {
|
|
13699
13699
|
return openBlock(), createBlock$1(_sfc_main$9, {
|
|
13700
13700
|
key: group.groupId,
|
|
@@ -13719,23 +13719,31 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
13719
13719
|
};
|
|
13720
13720
|
}
|
|
13721
13721
|
});
|
|
13722
|
-
const _hoisted_1$
|
|
13722
|
+
const _hoisted_1$5 = { class: "pb-menu bs-layout-vertical" };
|
|
13723
13723
|
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
13724
13724
|
__name: "PbMenu",
|
|
13725
13725
|
setup(__props) {
|
|
13726
13726
|
return (_ctx, _cache) => {
|
|
13727
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13727
|
+
return openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
13728
13728
|
createVNode(_sfc_main$8)
|
|
13729
13729
|
]);
|
|
13730
13730
|
};
|
|
13731
13731
|
}
|
|
13732
13732
|
});
|
|
13733
|
-
const _hoisted_1$5 = { class: "pb-navigator" };
|
|
13734
|
-
const _hoisted_2$3 = { class: "pb-navigator" };
|
|
13735
13733
|
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
13736
13734
|
__name: "PbNavigator",
|
|
13737
13735
|
setup(__props) {
|
|
13738
13736
|
const pageBuilder = usePageBuilderEditor();
|
|
13737
|
+
const treeS = ref();
|
|
13738
|
+
const treeL = ref();
|
|
13739
|
+
watch(
|
|
13740
|
+
() => treeS.value,
|
|
13741
|
+
() => treeS.value && pageBuilder.keyHandlers.addDocumentKeyEventListener(treeS.value)
|
|
13742
|
+
);
|
|
13743
|
+
watch(
|
|
13744
|
+
() => treeL.value,
|
|
13745
|
+
() => treeL.value && pageBuilder.keyHandlers.addDocumentKeyEventListener(treeL.value)
|
|
13746
|
+
);
|
|
13739
13747
|
const tabs = [
|
|
13740
13748
|
{ tabId: "pageS", caption: "Mobile", icon: "phone_iphone" },
|
|
13741
13749
|
{ tabId: "pageL", caption: "PC", icon: "desktop_windows" }
|
|
@@ -13877,7 +13885,12 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
13877
13885
|
tabs
|
|
13878
13886
|
}, {
|
|
13879
13887
|
pageS: withCtx(() => [
|
|
13880
|
-
createElementVNode("div",
|
|
13888
|
+
createElementVNode("div", {
|
|
13889
|
+
ref_key: "treeS",
|
|
13890
|
+
ref: treeS,
|
|
13891
|
+
class: "pb-navigator",
|
|
13892
|
+
tabindex: "0"
|
|
13893
|
+
}, [
|
|
13881
13894
|
createVNode(unref(BSTree), {
|
|
13882
13895
|
expandedRows: expandedRows.value,
|
|
13883
13896
|
"onUpdate:expandedRows": [
|
|
@@ -13899,10 +13912,15 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
13899
13912
|
"show-move-button": "",
|
|
13900
13913
|
onRowMoved: rowMoved
|
|
13901
13914
|
}, null, 8, ["expandedRows", "selectedRows", "data", "key-provider"])
|
|
13902
|
-
])
|
|
13915
|
+
], 512)
|
|
13903
13916
|
]),
|
|
13904
13917
|
pageL: withCtx(() => [
|
|
13905
|
-
createElementVNode("div",
|
|
13918
|
+
createElementVNode("div", {
|
|
13919
|
+
ref_key: "treeL",
|
|
13920
|
+
ref: treeL,
|
|
13921
|
+
class: "pb-navigator",
|
|
13922
|
+
tabindex: "0"
|
|
13923
|
+
}, [
|
|
13906
13924
|
createVNode(unref(BSTree), {
|
|
13907
13925
|
expandedRows: expandedRows.value,
|
|
13908
13926
|
"onUpdate:expandedRows": [
|
|
@@ -13924,7 +13942,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
13924
13942
|
"show-move-button": "",
|
|
13925
13943
|
onRowMoved: rowMoved
|
|
13926
13944
|
}, null, 8, ["expandedRows", "selectedRows", "data", "key-provider"])
|
|
13927
|
-
])
|
|
13945
|
+
], 512)
|
|
13928
13946
|
]),
|
|
13929
13947
|
_: 1
|
|
13930
13948
|
}, 8, ["tab-id"]);
|
|
@@ -14229,7 +14247,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
14229
14247
|
// TODO
|
|
14230
14248
|
commands: createDefaultCommands(modal)
|
|
14231
14249
|
});
|
|
14232
|
-
pageBuilderEditor.keyHandlers.addDocumentKeyEventListener(window.document);
|
|
14233
14250
|
providePageBuilderEditor(pageBuilderEditor);
|
|
14234
14251
|
providePageBuilder(pageBuilderEditor);
|
|
14235
14252
|
onMounted(() => pageBuilderEditor.initData(props.pageContent));
|