@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
|
@@ -7196,7 +7196,7 @@ ${_html.style}
|
|
|
7196
7196
|
}
|
|
7197
7197
|
};
|
|
7198
7198
|
const _hoisted_1$1$1 = { class: "pb-product-list-widget" };
|
|
7199
|
-
const _hoisted_2$
|
|
7199
|
+
const _hoisted_2$v = { class: "product" };
|
|
7200
7200
|
const _hoisted_3$s = { class: "image" };
|
|
7201
7201
|
const _hoisted_4$i = ["src"];
|
|
7202
7202
|
const _hoisted_5$8 = { class: "name" };
|
|
@@ -7243,7 +7243,7 @@ ${_html.style}
|
|
|
7243
7243
|
key: index,
|
|
7244
7244
|
class: "product-wrapper"
|
|
7245
7245
|
}, [
|
|
7246
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
7246
|
+
vue.createElementVNode("div", _hoisted_2$v, [
|
|
7247
7247
|
products.value[index - 1] ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
7248
7248
|
vue.createElementVNode("div", _hoisted_3$s, [
|
|
7249
7249
|
vue.createElementVNode("img", {
|
|
@@ -7431,7 +7431,7 @@ ${_html.style}
|
|
|
7431
7431
|
};
|
|
7432
7432
|
}
|
|
7433
7433
|
});
|
|
7434
|
-
const _hoisted_1$
|
|
7434
|
+
const _hoisted_1$E = { class: "pb-viewer" };
|
|
7435
7435
|
const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
7436
7436
|
__name: "PageBuilderViewer",
|
|
7437
7437
|
props: {
|
|
@@ -7462,7 +7462,7 @@ ${_html.style}
|
|
|
7462
7462
|
}
|
|
7463
7463
|
);
|
|
7464
7464
|
return (_ctx, _cache) => {
|
|
7465
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
7465
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$E, [
|
|
7466
7466
|
page.value ? (vue.openBlock(), vue.createBlock(_sfc_main$1$1, {
|
|
7467
7467
|
key: 0,
|
|
7468
7468
|
"is-mobile-page": _ctx.isMobilePage,
|
|
@@ -8301,15 +8301,15 @@ ${_html.style}
|
|
|
8301
8301
|
return target;
|
|
8302
8302
|
};
|
|
8303
8303
|
const _sfc_main$A = {};
|
|
8304
|
-
const _hoisted_1$
|
|
8305
|
-
const _hoisted_2$
|
|
8304
|
+
const _hoisted_1$D = { class: "pb-add-widget-button" };
|
|
8305
|
+
const _hoisted_2$u = /* @__PURE__ */ vue.createElementVNode("span", { class: "icon material-icons-outlined" }, "add_box", -1);
|
|
8306
8306
|
const _hoisted_3$r = /* @__PURE__ */ vue.createElementVNode("span", { class: "text" }, "Add Widget", -1);
|
|
8307
8307
|
const _hoisted_4$h = [
|
|
8308
|
-
_hoisted_2$
|
|
8308
|
+
_hoisted_2$u,
|
|
8309
8309
|
_hoisted_3$r
|
|
8310
8310
|
];
|
|
8311
8311
|
function _sfc_render$1(_ctx, _cache) {
|
|
8312
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
8312
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$D, [
|
|
8313
8313
|
vue.createElementVNode("button", {
|
|
8314
8314
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("add-widget", $event))
|
|
8315
8315
|
}, _hoisted_4$h)
|
|
@@ -8346,8 +8346,8 @@ ${_html.style}
|
|
|
8346
8346
|
throw Error(MOUSE_TRACKER_NOT_FOUND);
|
|
8347
8347
|
return mouseTracker;
|
|
8348
8348
|
};
|
|
8349
|
-
const _hoisted_1$
|
|
8350
|
-
const _hoisted_2$
|
|
8349
|
+
const _hoisted_1$C = ["data-model-id", "draggable"];
|
|
8350
|
+
const _hoisted_2$t = {
|
|
8351
8351
|
key: 1,
|
|
8352
8352
|
class: "children"
|
|
8353
8353
|
};
|
|
@@ -8797,7 +8797,7 @@ ${_html.style}
|
|
|
8797
8797
|
key: 0,
|
|
8798
8798
|
part: _ctx.part
|
|
8799
8799
|
}, null, 8, ["part"])) : vue.createCommentVNode("", true),
|
|
8800
|
-
childComponents.value && childComponents.value.length > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
8800
|
+
childComponents.value && childComponents.value.length > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$t, [
|
|
8801
8801
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(childComponents.value, (child) => {
|
|
8802
8802
|
return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(child.component), {
|
|
8803
8803
|
key: child.part.partId,
|
|
@@ -8815,13 +8815,13 @@ ${_html.style}
|
|
|
8815
8815
|
class: "resize-handle",
|
|
8816
8816
|
onMousedown: _resize_mousedown
|
|
8817
8817
|
}, null, 32)) : vue.createCommentVNode("", true)
|
|
8818
|
-
], 16, _hoisted_1$
|
|
8818
|
+
], 16, _hoisted_1$C)), [
|
|
8819
8819
|
[vue.unref(vPartHandler), { pageBuilder: vue.unref(pageBuilder), part: _ctx.part, droppable: true, locatePositionMark, calculateDropIndex, acceptChildPart }]
|
|
8820
8820
|
]);
|
|
8821
8821
|
};
|
|
8822
8822
|
}
|
|
8823
8823
|
});
|
|
8824
|
-
const _hoisted_1$
|
|
8824
|
+
const _hoisted_1$B = ["data-model-id"];
|
|
8825
8825
|
const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
8826
8826
|
__name: "PbBlock",
|
|
8827
8827
|
props: {
|
|
@@ -9017,14 +9017,14 @@ ${_html.style}
|
|
|
9017
9017
|
part: child
|
|
9018
9018
|
}, null, 8, ["part"]);
|
|
9019
9019
|
}), 128))
|
|
9020
|
-
], 16, _hoisted_1$
|
|
9020
|
+
], 16, _hoisted_1$B)), [
|
|
9021
9021
|
[vue.unref(vPartHandler), { pageBuilder: vue.unref(pageBuilder), part: _ctx.part, droppable: true, locatePositionMark, calculateDropIndex, acceptChildPart }]
|
|
9022
9022
|
]);
|
|
9023
9023
|
};
|
|
9024
9024
|
}
|
|
9025
9025
|
});
|
|
9026
|
-
const _hoisted_1$
|
|
9027
|
-
const _hoisted_2$
|
|
9026
|
+
const _hoisted_1$A = { class: "pb-block" };
|
|
9027
|
+
const _hoisted_2$s = /* @__PURE__ */ vue.createElementVNode("div", {
|
|
9028
9028
|
class: "pb-widget",
|
|
9029
9029
|
style: { "margin": "0 auto" }
|
|
9030
9030
|
}, [
|
|
@@ -9033,7 +9033,7 @@ ${_html.style}
|
|
|
9033
9033
|
])
|
|
9034
9034
|
], -1);
|
|
9035
9035
|
const _hoisted_3$q = [
|
|
9036
|
-
_hoisted_2$
|
|
9036
|
+
_hoisted_2$s
|
|
9037
9037
|
];
|
|
9038
9038
|
const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
9039
9039
|
__name: "PbLoginDepart",
|
|
@@ -9042,11 +9042,11 @@ ${_html.style}
|
|
|
9042
9042
|
},
|
|
9043
9043
|
setup(__props) {
|
|
9044
9044
|
return (_ctx, _cache) => {
|
|
9045
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
9045
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$A, _hoisted_3$q);
|
|
9046
9046
|
};
|
|
9047
9047
|
}
|
|
9048
9048
|
});
|
|
9049
|
-
const _hoisted_1$
|
|
9049
|
+
const _hoisted_1$z = ["data-model-id"];
|
|
9050
9050
|
const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
9051
9051
|
__name: "PbSection",
|
|
9052
9052
|
props: {
|
|
@@ -9173,14 +9173,14 @@ ${_html.style}
|
|
|
9173
9173
|
onAddWidget: addWidget
|
|
9174
9174
|
}))
|
|
9175
9175
|
], 64))
|
|
9176
|
-
], 16, _hoisted_1$
|
|
9176
|
+
], 16, _hoisted_1$z)), [
|
|
9177
9177
|
[vue.unref(vPartHandler), { pageBuilder: vue.unref(pageBuilder), part: _ctx.part, droppable: true, locatePositionMark, calculateDropIndex, acceptChildPart }]
|
|
9178
9178
|
]);
|
|
9179
9179
|
};
|
|
9180
9180
|
}
|
|
9181
9181
|
});
|
|
9182
|
-
const _hoisted_1$
|
|
9183
|
-
const _hoisted_2$
|
|
9182
|
+
const _hoisted_1$y = { class: "group-editor group-editor-position" };
|
|
9183
|
+
const _hoisted_2$r = { class: "flex-align-center" };
|
|
9184
9184
|
const _hoisted_3$p = /* @__PURE__ */ vue.createElementVNode("div", { class: "title" }, [
|
|
9185
9185
|
/* @__PURE__ */ vue.createElementVNode("label", { textContent: "Position" })
|
|
9186
9186
|
], -1);
|
|
@@ -9219,8 +9219,8 @@ ${_html.style}
|
|
|
9219
9219
|
const updateTop = (value) => updatePropertyValue({ top: value });
|
|
9220
9220
|
const updateBottom = (value) => updatePropertyValue({ bottom: value });
|
|
9221
9221
|
return (_ctx, _cache) => {
|
|
9222
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
9223
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
9222
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$y, [
|
|
9223
|
+
vue.createElementVNode("div", _hoisted_2$r, [
|
|
9224
9224
|
_hoisted_3$p,
|
|
9225
9225
|
vue.createElementVNode("div", _hoisted_4$g, [
|
|
9226
9226
|
vue.createElementVNode("div", _hoisted_5$7, [
|
|
@@ -9266,8 +9266,8 @@ ${_html.style}
|
|
|
9266
9266
|
};
|
|
9267
9267
|
}
|
|
9268
9268
|
});
|
|
9269
|
-
const _hoisted_1$
|
|
9270
|
-
const _hoisted_2$
|
|
9269
|
+
const _hoisted_1$x = { class: "group-editor group-editor-size" };
|
|
9270
|
+
const _hoisted_2$q = { class: "flex-align-center" };
|
|
9271
9271
|
const _hoisted_3$o = /* @__PURE__ */ vue.createElementVNode("div", { class: "title" }, [
|
|
9272
9272
|
/* @__PURE__ */ vue.createElementVNode("label", { textContent: "Size" })
|
|
9273
9273
|
], -1);
|
|
@@ -9292,8 +9292,8 @@ ${_html.style}
|
|
|
9292
9292
|
const updateWidth = (value) => updatePropertyValue({ width: value });
|
|
9293
9293
|
const updateHeight = (value) => updatePropertyValue({ height: value });
|
|
9294
9294
|
return (_ctx, _cache) => {
|
|
9295
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
9296
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
9295
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$x, [
|
|
9296
|
+
vue.createElementVNode("div", _hoisted_2$q, [
|
|
9297
9297
|
_hoisted_3$o,
|
|
9298
9298
|
vue.createElementVNode("div", _hoisted_4$f, [
|
|
9299
9299
|
vue.createVNode(vue.unref(bluesea.BSTextInput), {
|
|
@@ -9471,8 +9471,8 @@ ${_html.style}
|
|
|
9471
9471
|
}
|
|
9472
9472
|
}
|
|
9473
9473
|
};
|
|
9474
|
-
const _hoisted_1$
|
|
9475
|
-
const _hoisted_2$
|
|
9474
|
+
const _hoisted_1$w = { class: "vc-alpha" };
|
|
9475
|
+
const _hoisted_2$p = { class: "vc-alpha-checkboard-wrap" };
|
|
9476
9476
|
const _hoisted_3$n = /* @__PURE__ */ vue.createElementVNode(
|
|
9477
9477
|
"div",
|
|
9478
9478
|
{ class: "vc-alpha-picker" },
|
|
@@ -9485,8 +9485,8 @@ ${_html.style}
|
|
|
9485
9485
|
];
|
|
9486
9486
|
function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9487
9487
|
const _component_Checkboard = vue.resolveComponent("Checkboard");
|
|
9488
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
9489
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
9488
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$w, [
|
|
9489
|
+
vue.createElementVNode("div", _hoisted_2$p, [
|
|
9490
9490
|
vue.createVNode(_component_Checkboard)
|
|
9491
9491
|
]),
|
|
9492
9492
|
vue.createElementVNode(
|
|
@@ -10589,12 +10589,12 @@ ${_html.style}
|
|
|
10589
10589
|
// }
|
|
10590
10590
|
}
|
|
10591
10591
|
};
|
|
10592
|
-
const _hoisted_1$
|
|
10593
|
-
const _hoisted_2$
|
|
10592
|
+
const _hoisted_1$v = { class: "vc-editable-input" };
|
|
10593
|
+
const _hoisted_2$o = ["aria-labelledby"];
|
|
10594
10594
|
const _hoisted_3$m = ["id", "for"];
|
|
10595
10595
|
const _hoisted_4$d = { class: "vc-input__desc" };
|
|
10596
10596
|
function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10597
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
10597
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$v, [
|
|
10598
10598
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
10599
10599
|
ref: "input",
|
|
10600
10600
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $options.val = $event),
|
|
@@ -10602,7 +10602,7 @@ ${_html.style}
|
|
|
10602
10602
|
class: "vc-input__input",
|
|
10603
10603
|
onKeydown: _cache[1] || (_cache[1] = (...args) => $options.handleKeyDown && $options.handleKeyDown(...args)),
|
|
10604
10604
|
onInput: _cache[2] || (_cache[2] = (...args) => $options.update && $options.update(...args))
|
|
10605
|
-
}, null, 40, _hoisted_2$
|
|
10605
|
+
}, null, 40, _hoisted_2$o), [
|
|
10606
10606
|
[vue.vModelText, $options.val]
|
|
10607
10607
|
]),
|
|
10608
10608
|
vue.createElementVNode("span", {
|
|
@@ -10689,14 +10689,14 @@ ${_html.style}
|
|
|
10689
10689
|
}
|
|
10690
10690
|
}
|
|
10691
10691
|
};
|
|
10692
|
-
const _hoisted_1$
|
|
10692
|
+
const _hoisted_1$u = /* @__PURE__ */ vue.createElementVNode(
|
|
10693
10693
|
"div",
|
|
10694
10694
|
{ class: "vc-saturation--white" },
|
|
10695
10695
|
null,
|
|
10696
10696
|
-1
|
|
10697
10697
|
/* HOISTED */
|
|
10698
10698
|
);
|
|
10699
|
-
const _hoisted_2$
|
|
10699
|
+
const _hoisted_2$n = /* @__PURE__ */ vue.createElementVNode(
|
|
10700
10700
|
"div",
|
|
10701
10701
|
{ class: "vc-saturation--black" },
|
|
10702
10702
|
null,
|
|
@@ -10725,8 +10725,8 @@ ${_html.style}
|
|
|
10725
10725
|
onTouchstart: _cache[2] || (_cache[2] = (...args) => $options.handleChange && $options.handleChange(...args))
|
|
10726
10726
|
},
|
|
10727
10727
|
[
|
|
10728
|
-
_hoisted_1$
|
|
10729
|
-
_hoisted_2$
|
|
10728
|
+
_hoisted_1$u,
|
|
10729
|
+
_hoisted_2$n,
|
|
10730
10730
|
vue.createElementVNode(
|
|
10731
10731
|
"div",
|
|
10732
10732
|
{
|
|
@@ -10874,8 +10874,8 @@ ${_html.style}
|
|
|
10874
10874
|
}
|
|
10875
10875
|
}
|
|
10876
10876
|
};
|
|
10877
|
-
const _hoisted_1$
|
|
10878
|
-
const _hoisted_2$
|
|
10877
|
+
const _hoisted_1$t = ["aria-valuenow"];
|
|
10878
|
+
const _hoisted_2$m = /* @__PURE__ */ vue.createElementVNode(
|
|
10879
10879
|
"div",
|
|
10880
10880
|
{ class: "vc-hue-picker" },
|
|
10881
10881
|
null,
|
|
@@ -10883,7 +10883,7 @@ ${_html.style}
|
|
|
10883
10883
|
/* HOISTED */
|
|
10884
10884
|
);
|
|
10885
10885
|
const _hoisted_3$k = [
|
|
10886
|
-
_hoisted_2$
|
|
10886
|
+
_hoisted_2$m
|
|
10887
10887
|
];
|
|
10888
10888
|
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10889
10889
|
return vue.openBlock(), vue.createElementBlock(
|
|
@@ -10914,7 +10914,7 @@ ${_html.style}
|
|
|
10914
10914
|
4
|
|
10915
10915
|
/* STYLE */
|
|
10916
10916
|
)
|
|
10917
|
-
], 40, _hoisted_1$
|
|
10917
|
+
], 40, _hoisted_1$t)
|
|
10918
10918
|
],
|
|
10919
10919
|
2
|
|
10920
10920
|
/* CLASS */
|
|
@@ -11010,8 +11010,8 @@ ${_html.style}
|
|
|
11010
11010
|
}
|
|
11011
11011
|
}
|
|
11012
11012
|
};
|
|
11013
|
-
const _hoisted_1$
|
|
11014
|
-
const _hoisted_2$
|
|
11013
|
+
const _hoisted_1$s = { class: "vc-sketch-saturation-wrap" };
|
|
11014
|
+
const _hoisted_2$l = { class: "vc-sketch-controls" };
|
|
11015
11015
|
const _hoisted_3$j = { class: "vc-sketch-sliders" };
|
|
11016
11016
|
const _hoisted_4$b = { class: "vc-sketch-hue-wrap" };
|
|
11017
11017
|
const _hoisted_5$6 = {
|
|
@@ -11053,13 +11053,13 @@ ${_html.style}
|
|
|
11053
11053
|
class: vue.normalizeClass(["vc-sketch", [$props.disableAlpha ? "vc-sketch__disable-alpha" : ""]])
|
|
11054
11054
|
},
|
|
11055
11055
|
[
|
|
11056
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
11056
|
+
vue.createElementVNode("div", _hoisted_1$s, [
|
|
11057
11057
|
vue.createVNode(_component_Saturation, {
|
|
11058
11058
|
value: _ctx.colors,
|
|
11059
11059
|
onChange: $options.childChange
|
|
11060
11060
|
}, null, 8, ["value", "onChange"])
|
|
11061
11061
|
]),
|
|
11062
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
11062
|
+
vue.createElementVNode("div", _hoisted_2$l, [
|
|
11063
11063
|
vue.createElementVNode("div", _hoisted_3$j, [
|
|
11064
11064
|
vue.createElementVNode("div", _hoisted_4$b, [
|
|
11065
11065
|
vue.createVNode(_component_Hue, {
|
|
@@ -11206,7 +11206,7 @@ ${_html.style}
|
|
|
11206
11206
|
() => setTimeout(() => {
|
|
11207
11207
|
if (appliedColor.value)
|
|
11208
11208
|
emit("change-color", appliedColor.value);
|
|
11209
|
-
}),
|
|
11209
|
+
}, 100),
|
|
11210
11210
|
{ deep: true }
|
|
11211
11211
|
);
|
|
11212
11212
|
vue.watch(
|
|
@@ -11229,10 +11229,10 @@ ${_html.style}
|
|
|
11229
11229
|
};
|
|
11230
11230
|
}
|
|
11231
11231
|
});
|
|
11232
|
-
const _hoisted_1$
|
|
11233
|
-
const _hoisted_2$
|
|
11232
|
+
const _hoisted_1$r = { class: "buttons" };
|
|
11233
|
+
const _hoisted_2$k = /* @__PURE__ */ vue.createElementVNode("i", { class: "material-icons-outlined" }, "delete", -1);
|
|
11234
11234
|
const _hoisted_3$i = [
|
|
11235
|
-
_hoisted_2$
|
|
11235
|
+
_hoisted_2$k
|
|
11236
11236
|
];
|
|
11237
11237
|
const _hoisted_4$a = { class: "sketch-wrap" };
|
|
11238
11238
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -11243,7 +11243,7 @@ ${_html.style}
|
|
|
11243
11243
|
onKeydown: _cache[3] || (_cache[3] = vue.withModifiers(() => {
|
|
11244
11244
|
}, ["stop"]))
|
|
11245
11245
|
}, [
|
|
11246
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
11246
|
+
vue.createElementVNode("div", _hoisted_1$r, [
|
|
11247
11247
|
vue.renderSlot(_ctx.$slots, "button", vue.normalizeProps(vue.guardReactiveProps({ toggle: _ctx.toggle, color: _ctx.color })), () => [
|
|
11248
11248
|
vue.createElementVNode("button", {
|
|
11249
11249
|
class: vue.normalizeClass([{ none: !_ctx.color }, "pb-button picker-button"]),
|
|
@@ -11270,8 +11270,8 @@ ${_html.style}
|
|
|
11270
11270
|
]);
|
|
11271
11271
|
}
|
|
11272
11272
|
const PbColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render]]);
|
|
11273
|
-
const _hoisted_1$
|
|
11274
|
-
const _hoisted_2$
|
|
11273
|
+
const _hoisted_1$q = { class: "group-editor group-editor-background" };
|
|
11274
|
+
const _hoisted_2$j = { class: "flex-align-center" };
|
|
11275
11275
|
const _hoisted_3$h = /* @__PURE__ */ vue.createElementVNode("div", { class: "title" }, [
|
|
11276
11276
|
/* @__PURE__ */ vue.createElementVNode("label", { textContent: "Background" })
|
|
11277
11277
|
], -1);
|
|
@@ -11307,8 +11307,8 @@ ${_html.style}
|
|
|
11307
11307
|
});
|
|
11308
11308
|
};
|
|
11309
11309
|
return (_ctx, _cache) => {
|
|
11310
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
11311
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
11310
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$q, [
|
|
11311
|
+
vue.createElementVNode("div", _hoisted_2$j, [
|
|
11312
11312
|
_hoisted_3$h,
|
|
11313
11313
|
vue.createElementVNode("div", _hoisted_4$9, [
|
|
11314
11314
|
vue.createElementVNode("div", _hoisted_5$5, [
|
|
@@ -11340,8 +11340,8 @@ ${_html.style}
|
|
|
11340
11340
|
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";
|
|
11341
11341
|
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";
|
|
11342
11342
|
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";
|
|
11343
|
-
const _hoisted_1$
|
|
11344
|
-
const _hoisted_2$
|
|
11343
|
+
const _hoisted_1$p = { class: "group-editor group-editor-border" };
|
|
11344
|
+
const _hoisted_2$i = { class: "flex-align-center" };
|
|
11345
11345
|
const _hoisted_3$g = /* @__PURE__ */ vue.createElementVNode("div", { class: "title" }, [
|
|
11346
11346
|
/* @__PURE__ */ vue.createElementVNode("label", { textContent: "Border" })
|
|
11347
11347
|
], -1);
|
|
@@ -11411,8 +11411,8 @@ ${_html.style}
|
|
|
11411
11411
|
const updateBorderBottomLeftRadius = (value) => updatePropertyValue({ borderBottomLeftRadius: value });
|
|
11412
11412
|
const updateBorderBottomRightRadius = (value) => updatePropertyValue({ borderBottomRightRadius: value });
|
|
11413
11413
|
return (_ctx, _cache) => {
|
|
11414
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
11415
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
11414
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$p, [
|
|
11415
|
+
vue.createElementVNode("div", _hoisted_2$i, [
|
|
11416
11416
|
_hoisted_3$g,
|
|
11417
11417
|
vue.createElementVNode("div", _hoisted_4$8, [
|
|
11418
11418
|
_hoisted_5$4,
|
|
@@ -11520,8 +11520,8 @@ ${_html.style}
|
|
|
11520
11520
|
};
|
|
11521
11521
|
}
|
|
11522
11522
|
});
|
|
11523
|
-
const _hoisted_1$
|
|
11524
|
-
const _hoisted_2$
|
|
11523
|
+
const _hoisted_1$o = { class: "group-editor group-editor-margin" };
|
|
11524
|
+
const _hoisted_2$h = { class: "flex-align-center" };
|
|
11525
11525
|
const _hoisted_3$f = /* @__PURE__ */ vue.createElementVNode("div", { class: "title" }, [
|
|
11526
11526
|
/* @__PURE__ */ vue.createElementVNode("label", { textContent: "Margin" })
|
|
11527
11527
|
], -1);
|
|
@@ -11560,8 +11560,8 @@ ${_html.style}
|
|
|
11560
11560
|
const updateTop = (value) => updatePropertyValue({ marginTop: value });
|
|
11561
11561
|
const updateBottom = (value) => updatePropertyValue({ marginBottom: value });
|
|
11562
11562
|
return (_ctx, _cache) => {
|
|
11563
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
11564
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
11563
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$o, [
|
|
11564
|
+
vue.createElementVNode("div", _hoisted_2$h, [
|
|
11565
11565
|
_hoisted_3$f,
|
|
11566
11566
|
vue.createElementVNode("div", _hoisted_4$7, [
|
|
11567
11567
|
vue.createElementVNode("div", _hoisted_5$3, [
|
|
@@ -11607,8 +11607,8 @@ ${_html.style}
|
|
|
11607
11607
|
};
|
|
11608
11608
|
}
|
|
11609
11609
|
});
|
|
11610
|
-
const _hoisted_1$
|
|
11611
|
-
const _hoisted_2$
|
|
11610
|
+
const _hoisted_1$n = { class: "group-editor group-editor-padding" };
|
|
11611
|
+
const _hoisted_2$g = { class: "flex-align-center" };
|
|
11612
11612
|
const _hoisted_3$e = /* @__PURE__ */ vue.createElementVNode("div", { class: "title" }, [
|
|
11613
11613
|
/* @__PURE__ */ vue.createElementVNode("label", { textContent: "Padding" })
|
|
11614
11614
|
], -1);
|
|
@@ -11647,8 +11647,8 @@ ${_html.style}
|
|
|
11647
11647
|
const updateTop = (value) => updatePropertyValue({ paddingTop: value });
|
|
11648
11648
|
const updateBottom = (value) => updatePropertyValue({ paddingBottom: value });
|
|
11649
11649
|
return (_ctx, _cache) => {
|
|
11650
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
11651
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
11650
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$n, [
|
|
11651
|
+
vue.createElementVNode("div", _hoisted_2$g, [
|
|
11652
11652
|
_hoisted_3$e,
|
|
11653
11653
|
vue.createElementVNode("div", _hoisted_4$6, [
|
|
11654
11654
|
vue.createElementVNode("div", _hoisted_5$2, [
|
|
@@ -13333,11 +13333,11 @@ ${_html.style}
|
|
|
13333
13333
|
}
|
|
13334
13334
|
}
|
|
13335
13335
|
}
|
|
13336
|
-
addDocumentKeyEventListener(
|
|
13337
|
-
|
|
13336
|
+
addDocumentKeyEventListener(element) {
|
|
13337
|
+
element.addEventListener("keydown", this.handleKeyDownEvent.bind(this));
|
|
13338
13338
|
}
|
|
13339
|
-
removeDocumentKeyEventListener(
|
|
13340
|
-
|
|
13339
|
+
removeDocumentKeyEventListener(element) {
|
|
13340
|
+
element.removeEventListener("keydown", this.handleKeyDownEvent.bind(this));
|
|
13341
13341
|
}
|
|
13342
13342
|
}
|
|
13343
13343
|
const PAGE_BUILDER_EDITOR_KEY = "PageBuilderEditor";
|
|
@@ -13452,9 +13452,9 @@ ${_html.style}
|
|
|
13452
13452
|
});
|
|
13453
13453
|
}
|
|
13454
13454
|
}
|
|
13455
|
-
const _hoisted_1$
|
|
13456
|
-
const _hoisted_2$
|
|
13457
|
-
_hoisted_1$
|
|
13455
|
+
const _hoisted_1$m = /* @__PURE__ */ vue.createElementVNode("i", { class: "material-icons-outlined" }, "add_circle_outline", -1);
|
|
13456
|
+
const _hoisted_2$f = [
|
|
13457
|
+
_hoisted_1$m
|
|
13458
13458
|
];
|
|
13459
13459
|
const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
|
|
13460
13460
|
__name: "PbPage",
|
|
@@ -13501,12 +13501,12 @@ ${_html.style}
|
|
|
13501
13501
|
var _a2, _b;
|
|
13502
13502
|
return insertSection(((_b = (_a2 = _ctx.page) == null ? void 0 : _a2.children) == null ? void 0 : _b.length) || 0);
|
|
13503
13503
|
})
|
|
13504
|
-
}, _hoisted_2$
|
|
13504
|
+
}, _hoisted_2$f)
|
|
13505
13505
|
], 4);
|
|
13506
13506
|
};
|
|
13507
13507
|
}
|
|
13508
13508
|
});
|
|
13509
|
-
const _hoisted_1$
|
|
13509
|
+
const _hoisted_1$l = /* @__PURE__ */ vue.createElementVNode("div", { style: { "width": "20px" } }, null, -1);
|
|
13510
13510
|
const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
|
|
13511
13511
|
__name: "PbCanvas",
|
|
13512
13512
|
setup(__props) {
|
|
@@ -13559,7 +13559,7 @@ ${_html.style}
|
|
|
13559
13559
|
page: pageS.value,
|
|
13560
13560
|
width: 420
|
|
13561
13561
|
}, null, 8, ["page"]),
|
|
13562
|
-
_hoisted_1$
|
|
13562
|
+
_hoisted_1$l,
|
|
13563
13563
|
vue.createVNode(_sfc_main$o, {
|
|
13564
13564
|
"is-mobile-page": false,
|
|
13565
13565
|
page: pageL.value,
|
|
@@ -13571,7 +13571,7 @@ ${_html.style}
|
|
|
13571
13571
|
}
|
|
13572
13572
|
});
|
|
13573
13573
|
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}';
|
|
13574
|
-
const _hoisted_1$
|
|
13574
|
+
const _hoisted_1$k = { class: "pb-canvas-frame" };
|
|
13575
13575
|
const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
|
|
13576
13576
|
__name: "PbCanvasFrame",
|
|
13577
13577
|
setup(__props) {
|
|
@@ -13607,14 +13607,14 @@ ${_html.style}
|
|
|
13607
13607
|
<link href="https://fonts.googleapis.com/css2?family=Material+Icons+Outlined" rel="stylesheet" />
|
|
13608
13608
|
<style>${canvasStyle}</style>
|
|
13609
13609
|
`;
|
|
13610
|
-
pageBuilderEditor.keyHandlers.addDocumentKeyEventListener(iframeRef.value.contentWindow.document);
|
|
13610
|
+
pageBuilderEditor.keyHandlers.addDocumentKeyEventListener(iframeRef.value.contentWindow.document.body);
|
|
13611
13611
|
stopIframeWatch();
|
|
13612
13612
|
}
|
|
13613
13613
|
}
|
|
13614
13614
|
);
|
|
13615
13615
|
return (_ctx, _cache) => {
|
|
13616
13616
|
var _a, _b, _c, _d;
|
|
13617
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
13617
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$k, [
|
|
13618
13618
|
vue.createElementVNode("iframe", {
|
|
13619
13619
|
ref_key: "iframeRef",
|
|
13620
13620
|
ref: iframeRef,
|
|
@@ -13630,7 +13630,7 @@ ${_html.style}
|
|
|
13630
13630
|
};
|
|
13631
13631
|
}
|
|
13632
13632
|
});
|
|
13633
|
-
const _hoisted_1$
|
|
13633
|
+
const _hoisted_1$j = { class: "pb-tool-button bs-layout-horizontal flex-align-center" };
|
|
13634
13634
|
const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
|
|
13635
13635
|
__name: "PbToolbarButton",
|
|
13636
13636
|
props: {
|
|
@@ -13644,7 +13644,7 @@ ${_html.style}
|
|
|
13644
13644
|
(_b = (_a = props.button).handler) == null ? void 0 : _b.call(_a, pageBuilder);
|
|
13645
13645
|
};
|
|
13646
13646
|
return (_ctx, _cache) => {
|
|
13647
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
13647
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$j, [
|
|
13648
13648
|
vue.createElementVNode("div", {
|
|
13649
13649
|
class: "tool-button bs-clickable",
|
|
13650
13650
|
onClick: handleClick
|
|
@@ -13659,7 +13659,7 @@ ${_html.style}
|
|
|
13659
13659
|
};
|
|
13660
13660
|
}
|
|
13661
13661
|
});
|
|
13662
|
-
const _hoisted_1$
|
|
13662
|
+
const _hoisted_1$i = { class: "pb-tool-button-group bs-layout-horizontal flex-align-center" };
|
|
13663
13663
|
const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
13664
13664
|
__name: "PbToolbarButtonGroup",
|
|
13665
13665
|
props: {
|
|
@@ -13667,7 +13667,7 @@ ${_html.style}
|
|
|
13667
13667
|
},
|
|
13668
13668
|
setup(__props) {
|
|
13669
13669
|
return (_ctx, _cache) => {
|
|
13670
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
13670
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$i, [
|
|
13671
13671
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.group.buttons, (button) => {
|
|
13672
13672
|
return vue.openBlock(), vue.createBlock(_sfc_main$l, {
|
|
13673
13673
|
key: button.buttonId,
|
|
@@ -13678,8 +13678,8 @@ ${_html.style}
|
|
|
13678
13678
|
};
|
|
13679
13679
|
}
|
|
13680
13680
|
});
|
|
13681
|
-
const _hoisted_1$
|
|
13682
|
-
const _hoisted_2$
|
|
13681
|
+
const _hoisted_1$h = { class: "pb-toolbar bs-layout-horizontal align-items-center" };
|
|
13682
|
+
const _hoisted_2$e = { class: "bs-layout-horizontal" };
|
|
13683
13683
|
const _hoisted_3$d = /* @__PURE__ */ vue.createElementVNode("div", { class: "flex-grow-1" }, null, -1);
|
|
13684
13684
|
const _hoisted_4$5 = { class: "ml-8 w-64" };
|
|
13685
13685
|
const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -13695,8 +13695,8 @@ ${_html.style}
|
|
|
13695
13695
|
pageBuilder.zoom(scale2);
|
|
13696
13696
|
};
|
|
13697
13697
|
return (_ctx, _cache) => {
|
|
13698
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
13699
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
13698
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$h, [
|
|
13699
|
+
vue.createElementVNode("div", _hoisted_2$e, [
|
|
13700
13700
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(buttonGroups), (group) => {
|
|
13701
13701
|
return vue.openBlock(), vue.createBlock(_sfc_main$k, {
|
|
13702
13702
|
key: group.groupId,
|
|
@@ -13721,23 +13721,31 @@ ${_html.style}
|
|
|
13721
13721
|
};
|
|
13722
13722
|
}
|
|
13723
13723
|
});
|
|
13724
|
-
const _hoisted_1$
|
|
13724
|
+
const _hoisted_1$g = { class: "pb-menu bs-layout-vertical" };
|
|
13725
13725
|
const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
|
|
13726
13726
|
__name: "PbMenu",
|
|
13727
13727
|
setup(__props) {
|
|
13728
13728
|
return (_ctx, _cache) => {
|
|
13729
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
13729
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$g, [
|
|
13730
13730
|
vue.createVNode(_sfc_main$j)
|
|
13731
13731
|
]);
|
|
13732
13732
|
};
|
|
13733
13733
|
}
|
|
13734
13734
|
});
|
|
13735
|
-
const _hoisted_1$g = { class: "pb-navigator" };
|
|
13736
|
-
const _hoisted_2$e = { class: "pb-navigator" };
|
|
13737
13735
|
const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
13738
13736
|
__name: "PbNavigator",
|
|
13739
13737
|
setup(__props) {
|
|
13740
13738
|
const pageBuilder = usePageBuilderEditor();
|
|
13739
|
+
const treeS = vue.ref();
|
|
13740
|
+
const treeL = vue.ref();
|
|
13741
|
+
vue.watch(
|
|
13742
|
+
() => treeS.value,
|
|
13743
|
+
() => treeS.value && pageBuilder.keyHandlers.addDocumentKeyEventListener(treeS.value)
|
|
13744
|
+
);
|
|
13745
|
+
vue.watch(
|
|
13746
|
+
() => treeL.value,
|
|
13747
|
+
() => treeL.value && pageBuilder.keyHandlers.addDocumentKeyEventListener(treeL.value)
|
|
13748
|
+
);
|
|
13741
13749
|
const tabs = [
|
|
13742
13750
|
{ tabId: "pageS", caption: "Mobile", icon: "phone_iphone" },
|
|
13743
13751
|
{ tabId: "pageL", caption: "PC", icon: "desktop_windows" }
|
|
@@ -13879,7 +13887,12 @@ ${_html.style}
|
|
|
13879
13887
|
tabs
|
|
13880
13888
|
}, {
|
|
13881
13889
|
pageS: vue.withCtx(() => [
|
|
13882
|
-
vue.createElementVNode("div",
|
|
13890
|
+
vue.createElementVNode("div", {
|
|
13891
|
+
ref_key: "treeS",
|
|
13892
|
+
ref: treeS,
|
|
13893
|
+
class: "pb-navigator",
|
|
13894
|
+
tabindex: "0"
|
|
13895
|
+
}, [
|
|
13883
13896
|
vue.createVNode(vue.unref(bluesea.BSTree), {
|
|
13884
13897
|
expandedRows: expandedRows.value,
|
|
13885
13898
|
"onUpdate:expandedRows": [
|
|
@@ -13901,10 +13914,15 @@ ${_html.style}
|
|
|
13901
13914
|
"show-move-button": "",
|
|
13902
13915
|
onRowMoved: rowMoved
|
|
13903
13916
|
}, null, 8, ["expandedRows", "selectedRows", "data", "key-provider"])
|
|
13904
|
-
])
|
|
13917
|
+
], 512)
|
|
13905
13918
|
]),
|
|
13906
13919
|
pageL: vue.withCtx(() => [
|
|
13907
|
-
vue.createElementVNode("div",
|
|
13920
|
+
vue.createElementVNode("div", {
|
|
13921
|
+
ref_key: "treeL",
|
|
13922
|
+
ref: treeL,
|
|
13923
|
+
class: "pb-navigator",
|
|
13924
|
+
tabindex: "0"
|
|
13925
|
+
}, [
|
|
13908
13926
|
vue.createVNode(vue.unref(bluesea.BSTree), {
|
|
13909
13927
|
expandedRows: expandedRows.value,
|
|
13910
13928
|
"onUpdate:expandedRows": [
|
|
@@ -13926,7 +13944,7 @@ ${_html.style}
|
|
|
13926
13944
|
"show-move-button": "",
|
|
13927
13945
|
onRowMoved: rowMoved
|
|
13928
13946
|
}, null, 8, ["expandedRows", "selectedRows", "data", "key-provider"])
|
|
13929
|
-
])
|
|
13947
|
+
], 512)
|
|
13930
13948
|
]),
|
|
13931
13949
|
_: 1
|
|
13932
13950
|
}, 8, ["tab-id"]);
|
|
@@ -14231,7 +14249,6 @@ ${_html.style}
|
|
|
14231
14249
|
// TODO
|
|
14232
14250
|
commands: createDefaultCommands(modal)
|
|
14233
14251
|
});
|
|
14234
|
-
pageBuilderEditor.keyHandlers.addDocumentKeyEventListener(window.document);
|
|
14235
14252
|
providePageBuilderEditor(pageBuilderEditor);
|
|
14236
14253
|
providePageBuilder(pageBuilderEditor);
|
|
14237
14254
|
vue.onMounted(() => pageBuilderEditor.initData(props.pageContent));
|
|
@@ -14817,7 +14834,11 @@ ${_html.style}
|
|
|
14817
14834
|
const style = vue.ref(((_b = props.html) == null ? void 0 : _b.style) || "");
|
|
14818
14835
|
const html = vue.computed(() => `${tags.value || ""}
|
|
14819
14836
|
<style>${style.value || ""}</style>`);
|
|
14820
|
-
const
|
|
14837
|
+
const updateTags = (value) => {
|
|
14838
|
+
tags.value = value;
|
|
14839
|
+
};
|
|
14840
|
+
const updateStyle = (value) => {
|
|
14841
|
+
style.value = value;
|
|
14821
14842
|
};
|
|
14822
14843
|
const ok = () => {
|
|
14823
14844
|
emit("updateHtml", {
|
|
@@ -14845,28 +14866,22 @@ ${_html.style}
|
|
|
14845
14866
|
_hoisted_9,
|
|
14846
14867
|
vue.createElementVNode("div", _hoisted_10, [
|
|
14847
14868
|
vue.createVNode(vue.unref(bluesea.BSCodeEditor), {
|
|
14848
|
-
|
|
14849
|
-
"onUpdate:modelValue": [
|
|
14850
|
-
_cache[0] || (_cache[0] = ($event) => tags.value = $event),
|
|
14851
|
-
updateHtml
|
|
14852
|
-
],
|
|
14869
|
+
"model-value": tags.value,
|
|
14853
14870
|
"editor-height": "100%",
|
|
14854
|
-
lang: "html"
|
|
14855
|
-
|
|
14871
|
+
lang: "html",
|
|
14872
|
+
"onUpdate:modelValue": updateTags
|
|
14873
|
+
}, null, 8, ["model-value"])
|
|
14856
14874
|
])
|
|
14857
14875
|
]),
|
|
14858
14876
|
vue.createElementVNode("div", _hoisted_11, [
|
|
14859
14877
|
_hoisted_12,
|
|
14860
14878
|
vue.createElementVNode("div", _hoisted_13, [
|
|
14861
14879
|
vue.createVNode(vue.unref(bluesea.BSCodeEditor), {
|
|
14862
|
-
|
|
14863
|
-
"onUpdate:modelValue": [
|
|
14864
|
-
_cache[1] || (_cache[1] = ($event) => style.value = $event),
|
|
14865
|
-
updateHtml
|
|
14866
|
-
],
|
|
14880
|
+
"model-value": style.value,
|
|
14867
14881
|
"editor-height": "100%",
|
|
14868
|
-
lang: "css"
|
|
14869
|
-
|
|
14882
|
+
lang: "css",
|
|
14883
|
+
"onUpdate:modelValue": updateStyle
|
|
14884
|
+
}, null, 8, ["model-value"])
|
|
14870
14885
|
])
|
|
14871
14886
|
])
|
|
14872
14887
|
])
|