@g1cloud/page-builder-editor 1.0.0-alpha.95 → 1.0.0-alpha.97
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/dist/{PbPropertyEditorColor-BiBguem_.js → PbPropertyEditorColor-CaSd-97a.js} +1 -1
- package/dist/{PbPropertyEditorCssLength-BKKA6dk_.js → PbPropertyEditorCssLength-nk7YdWvQ.js} +1 -1
- package/dist/{PbPropertyEditorHtml-CUPmDi2l.js → PbPropertyEditorHtml-CclJiLCC.js} +1 -1
- package/dist/{PbPropertyEditorImage-C1IQgc0P.js → PbPropertyEditorImage-YVF4DEZ7.js} +1 -1
- package/dist/{PbPropertyEditorMultilineText-C2rwaj4r.js → PbPropertyEditorMultilineText-DAsGTyGC.js} +1 -1
- package/dist/{PbPropertyEditorText-D8hq-KlF.js → PbPropertyEditorText-B3BdY0s1.js} +1 -1
- package/dist/{PbPropertyEditorYoutube-DkkynkuY.js → PbPropertyEditorYoutube-Qn817R8S.js} +1 -1
- package/dist/{PbWidgetAddModal-C125UBym.js → PbWidgetAddModal-D4uBFMPN.js} +1 -1
- package/dist/{index-B1eN8cQ9.js → index-CzHVyJKJ.js} +55 -24
- package/dist/page-builder-editor.js +1 -1
- package/dist/page-builder-editor.umd.cjs +47 -16
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, createElementVNode, withDirectives, unref, createVNode } from "vue";
|
|
2
2
|
import { vT, BSTextInput } from "@g1cloud/bluesea";
|
|
3
|
-
import { P as PbColorPicker } from "./index-
|
|
3
|
+
import { P as PbColorPicker } from "./index-CzHVyJKJ.js";
|
|
4
4
|
const _hoisted_1 = { class: "property-editor property-editor-color" };
|
|
5
5
|
const _hoisted_2 = { class: "title" };
|
|
6
6
|
const _hoisted_3 = { class: "bs-layout-horizontal flex-align-center color" };
|
package/dist/{PbPropertyEditorCssLength-BKKA6dk_.js → PbPropertyEditorCssLength-nk7YdWvQ.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, createElementVNode, withDirectives, unref, createVNode } from "vue";
|
|
2
2
|
import { vT, BSTextInput } from "@g1cloud/bluesea";
|
|
3
|
-
import { t as toCssLength } from "./index-
|
|
3
|
+
import { t as toCssLength } from "./index-CzHVyJKJ.js";
|
|
4
4
|
const _hoisted_1 = { class: "property-editor property-editor-number flex-align-center" };
|
|
5
5
|
const _hoisted_2 = { class: "title" };
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, createElementVNode, withDirectives, unref, createTextVNode, defineAsyncComponent } from "vue";
|
|
2
2
|
import { useModal, vT } from "@g1cloud/bluesea";
|
|
3
|
-
import { u as usePageBuilderEditor } from "./index-
|
|
3
|
+
import { u as usePageBuilderEditor } from "./index-CzHVyJKJ.js";
|
|
4
4
|
const _hoisted_1 = { class: "property-editor property-editor-html flex-align-center" };
|
|
5
5
|
const _hoisted_2 = { class: "title" };
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createElementBlock, createElementVNode, withDirectives, unref, createTextVNode, toDisplayString, createVNode, createCommentVNode, Fragment } from "vue";
|
|
2
|
-
import { u as usePageBuilderEditor, C as ChangePropertyCommand } from "./index-
|
|
2
|
+
import { u as usePageBuilderEditor, C as ChangePropertyCommand } from "./index-CzHVyJKJ.js";
|
|
3
3
|
import { useModal, vT, BSButton, BSMultiLangTextInput, showNotification } from "@g1cloud/bluesea";
|
|
4
4
|
const _hoisted_1 = { class: "property-editor property-editor-image" };
|
|
5
5
|
const _hoisted_2 = { class: "title" };
|
package/dist/{PbPropertyEditorMultilineText-C2rwaj4r.js → PbPropertyEditorMultilineText-DAsGTyGC.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createElementBlock, createElementVNode, withDirectives, unref, createBlock } from "vue";
|
|
2
2
|
import { vT, BSMultiLangTextArea, BSTextArea } from "@g1cloud/bluesea";
|
|
3
|
-
import { u as usePageBuilderEditor } from "./index-
|
|
3
|
+
import { u as usePageBuilderEditor } from "./index-CzHVyJKJ.js";
|
|
4
4
|
const _hoisted_1 = { class: "property-editor property-editor-multiline-text" };
|
|
5
5
|
const _hoisted_2 = { class: "title" };
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createElementBlock, createElementVNode, withDirectives, unref, createBlock } from "vue";
|
|
2
2
|
import { vT, BSMultiLangTextInput, BSTextInput } from "@g1cloud/bluesea";
|
|
3
|
-
import { u as usePageBuilderEditor } from "./index-
|
|
3
|
+
import { u as usePageBuilderEditor } from "./index-CzHVyJKJ.js";
|
|
4
4
|
const _hoisted_1 = { class: "property-editor property-editor-text flex-align-center" };
|
|
5
5
|
const _hoisted_2 = { class: "title" };
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, createElementVNode, withDirectives, unref } from "vue";
|
|
2
2
|
import { useModal, vT } from "@g1cloud/bluesea";
|
|
3
|
-
import { s as selectYoutubeVideo } from "./index-
|
|
3
|
+
import { s as selectYoutubeVideo } from "./index-CzHVyJKJ.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 _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createBlock, unref, withCtx, createElementVNode, createElementBlock, Fragment, renderList, toDisplayString } from "vue";
|
|
2
2
|
import { useModalHandle, BSModalFrame } from "@g1cloud/bluesea";
|
|
3
|
-
import { w as widgetPartDefinitions } from "./index-
|
|
3
|
+
import { w as widgetPartDefinitions } from "./index-CzHVyJKJ.js";
|
|
4
4
|
const _hoisted_1 = { class: "bs-layout-vertical pb-part-add-modal" };
|
|
5
5
|
const _hoisted_2 = { class: "bs-layout-horizontal-wrap ml-16 mb-8 gap-8" };
|
|
6
6
|
const _hoisted_3 = ["onClick", "textContent"];
|
|
@@ -6886,16 +6886,26 @@ const _sfc_main$b$1 = /* @__PURE__ */ defineComponent({
|
|
|
6886
6886
|
props: {
|
|
6887
6887
|
part: {}
|
|
6888
6888
|
},
|
|
6889
|
-
emits: ["
|
|
6889
|
+
emits: ["hideParent", "showParent"],
|
|
6890
6890
|
setup(__props, { emit: __emit }) {
|
|
6891
6891
|
const props = __props;
|
|
6892
6892
|
const emit = __emit;
|
|
6893
6893
|
const visible = ref(true);
|
|
6894
|
-
const
|
|
6894
|
+
const hideParent = () => {
|
|
6895
6895
|
var _a, _b;
|
|
6896
|
-
visible.value =
|
|
6896
|
+
visible.value = false;
|
|
6897
6897
|
const hideParentWhenInvisible = ((_a = props.part.properties) == null ? void 0 : _a.hideParentWhenInvisible) === true || ((_b = props.part.properties) == null ? void 0 : _b.hideParentWhenInvisible) === "true";
|
|
6898
|
-
|
|
6898
|
+
if (hideParentWhenInvisible) {
|
|
6899
|
+
emit("hideParent", props.part.partId);
|
|
6900
|
+
}
|
|
6901
|
+
};
|
|
6902
|
+
const showParent = () => {
|
|
6903
|
+
var _a, _b;
|
|
6904
|
+
visible.value = true;
|
|
6905
|
+
const hideParentWhenInvisible = ((_a = props.part.properties) == null ? void 0 : _a.hideParentWhenInvisible) === true || ((_b = props.part.properties) == null ? void 0 : _b.hideParentWhenInvisible) === "true";
|
|
6906
|
+
if (hideParentWhenInvisible) {
|
|
6907
|
+
emit("showParent", props.part.partId);
|
|
6908
|
+
}
|
|
6899
6909
|
};
|
|
6900
6910
|
const classNames = computed(() => [getPartClassName(props.part), props.part.getClassNames()]);
|
|
6901
6911
|
const style = computed(() => ({
|
|
@@ -6939,7 +6949,8 @@ const _sfc_main$b$1 = /* @__PURE__ */ defineComponent({
|
|
|
6939
6949
|
thisComponent.value ? (openBlock(), createBlock$1(resolveDynamicComponent(thisComponent.value), {
|
|
6940
6950
|
key: 0,
|
|
6941
6951
|
part: _ctx.part,
|
|
6942
|
-
|
|
6952
|
+
onHideParent: hideParent,
|
|
6953
|
+
onShowParent: showParent
|
|
6943
6954
|
}, null, 40, ["part"])) : createCommentVNode("", true)
|
|
6944
6955
|
], 14, _hoisted_1$8$1)), [
|
|
6945
6956
|
[vShow, visible.value]
|
|
@@ -6953,16 +6964,23 @@ const _sfc_main$a$1 = /* @__PURE__ */ defineComponent({
|
|
|
6953
6964
|
part: {},
|
|
6954
6965
|
isMobilePage: { type: Boolean }
|
|
6955
6966
|
},
|
|
6956
|
-
emits: ["
|
|
6967
|
+
emits: ["hideParent", "showParent"],
|
|
6957
6968
|
setup(__props, { emit: __emit }) {
|
|
6958
6969
|
const props = __props;
|
|
6959
6970
|
const emit = __emit;
|
|
6971
|
+
const hiddenChildren = ref({});
|
|
6960
6972
|
const visible = ref(true);
|
|
6961
|
-
const
|
|
6962
|
-
|
|
6963
|
-
|
|
6973
|
+
const hideParent = (partId) => {
|
|
6974
|
+
visible.value = false;
|
|
6975
|
+
hiddenChildren.value[partId] = true;
|
|
6976
|
+
emit("hideParent", props.part.partId);
|
|
6977
|
+
};
|
|
6978
|
+
const showParent = (partId) => {
|
|
6979
|
+
delete hiddenChildren.value[partId];
|
|
6980
|
+
if (Object.keys(hiddenChildren.value).length === 0) {
|
|
6981
|
+
visible.value = true;
|
|
6982
|
+
emit("showParent", props.part.partId);
|
|
6964
6983
|
}
|
|
6965
|
-
emit("update:visible", visible.value, hideParentWhenInvisible);
|
|
6966
6984
|
};
|
|
6967
6985
|
const validTags = ["div", "section", "li"];
|
|
6968
6986
|
const tag = computed(() => {
|
|
@@ -7013,7 +7031,8 @@ const _sfc_main$a$1 = /* @__PURE__ */ defineComponent({
|
|
|
7013
7031
|
return openBlock(), createBlock$1(_sfc_main$b$1, {
|
|
7014
7032
|
key: child.partId,
|
|
7015
7033
|
part: child,
|
|
7016
|
-
|
|
7034
|
+
onHideParent: hideParent,
|
|
7035
|
+
onShowParent: showParent
|
|
7017
7036
|
}, null, 8, ["part"]);
|
|
7018
7037
|
}), 128)) : createCommentVNode("", true)
|
|
7019
7038
|
]),
|
|
@@ -7030,12 +7049,22 @@ const _sfc_main$9$1 = /* @__PURE__ */ defineComponent({
|
|
|
7030
7049
|
part: {},
|
|
7031
7050
|
isMobilePage: { type: Boolean }
|
|
7032
7051
|
},
|
|
7033
|
-
|
|
7052
|
+
emits: ["hideParent", "showParent"],
|
|
7053
|
+
setup(__props, { emit: __emit }) {
|
|
7034
7054
|
const props = __props;
|
|
7055
|
+
const emit = __emit;
|
|
7056
|
+
const hiddenChildren = ref({});
|
|
7035
7057
|
const visible = ref(true);
|
|
7036
|
-
const
|
|
7037
|
-
|
|
7038
|
-
|
|
7058
|
+
const hideParent = (partId) => {
|
|
7059
|
+
visible.value = false;
|
|
7060
|
+
hiddenChildren.value[partId] = true;
|
|
7061
|
+
emit("hideParent", props.part.partId);
|
|
7062
|
+
};
|
|
7063
|
+
const showParent = (partId) => {
|
|
7064
|
+
delete hiddenChildren.value[partId];
|
|
7065
|
+
if (Object.keys(hiddenChildren.value).length === 0) {
|
|
7066
|
+
visible.value = true;
|
|
7067
|
+
emit("showParent", props.part.partId);
|
|
7039
7068
|
}
|
|
7040
7069
|
};
|
|
7041
7070
|
const validTags = ["div", "section", "ul"];
|
|
@@ -7088,7 +7117,8 @@ const _sfc_main$9$1 = /* @__PURE__ */ defineComponent({
|
|
|
7088
7117
|
key: child.partId,
|
|
7089
7118
|
"is-mobile-page": _ctx.isMobilePage,
|
|
7090
7119
|
part: child,
|
|
7091
|
-
|
|
7120
|
+
onHideParent: hideParent,
|
|
7121
|
+
onShowParent: showParent
|
|
7092
7122
|
}, null, 8, ["is-mobile-page", "part"]);
|
|
7093
7123
|
}), 128)) : createCommentVNode("", true)
|
|
7094
7124
|
]),
|
|
@@ -7561,6 +7591,7 @@ const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
|
|
|
7561
7591
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
7562
7592
|
(openBlock(), createBlock$1(resolveDynamicComponent("script"), {
|
|
7563
7593
|
id: "youtube-iframe-js-api-script",
|
|
7594
|
+
class: "optanon-category-C0004",
|
|
7564
7595
|
src: "https://www.youtube.com/iframe_api"
|
|
7565
7596
|
})),
|
|
7566
7597
|
((_a = _ctx.part.properties) == null ? void 0 : _a.url) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
@@ -8561,16 +8592,16 @@ class PartManager {
|
|
|
8561
8592
|
const defaultPartPropertyEditors = () => {
|
|
8562
8593
|
return {
|
|
8563
8594
|
"readonly-text": () => defineAsyncComponent(() => import("./PbPropertyEditorReadonlyText-BJ5qx69O.js")),
|
|
8564
|
-
"text": () => defineAsyncComponent(() => import("./PbPropertyEditorText-
|
|
8595
|
+
"text": () => defineAsyncComponent(() => import("./PbPropertyEditorText-B3BdY0s1.js")),
|
|
8565
8596
|
"number": () => defineAsyncComponent(() => import("./PbPropertyEditorNumber-B76ArSb5.js")),
|
|
8566
8597
|
"boolean": () => defineAsyncComponent(() => import("./PbPropertyEditorBoolean-c5CNiTpt.js")),
|
|
8567
|
-
"multiline-text": () => defineAsyncComponent(() => import("./PbPropertyEditorMultilineText-
|
|
8598
|
+
"multiline-text": () => defineAsyncComponent(() => import("./PbPropertyEditorMultilineText-DAsGTyGC.js")),
|
|
8568
8599
|
"select": () => defineAsyncComponent(() => import("./PbPropertyEditorSelect-B5sfulvx.js")),
|
|
8569
|
-
"css-length": () => defineAsyncComponent(() => import("./PbPropertyEditorCssLength-
|
|
8570
|
-
"color": () => defineAsyncComponent(() => import("./PbPropertyEditorColor-
|
|
8571
|
-
"image": () => defineAsyncComponent(() => import("./PbPropertyEditorImage-
|
|
8572
|
-
"html": () => defineAsyncComponent(() => import("./PbPropertyEditorHtml-
|
|
8573
|
-
"youtube": () => defineAsyncComponent(() => import("./PbPropertyEditorYoutube-
|
|
8600
|
+
"css-length": () => defineAsyncComponent(() => import("./PbPropertyEditorCssLength-nk7YdWvQ.js")),
|
|
8601
|
+
"color": () => defineAsyncComponent(() => import("./PbPropertyEditorColor-CaSd-97a.js")),
|
|
8602
|
+
"image": () => defineAsyncComponent(() => import("./PbPropertyEditorImage-YVF4DEZ7.js")),
|
|
8603
|
+
"html": () => defineAsyncComponent(() => import("./PbPropertyEditorHtml-CclJiLCC.js")),
|
|
8604
|
+
"youtube": () => defineAsyncComponent(() => import("./PbPropertyEditorYoutube-Qn817R8S.js"))
|
|
8574
8605
|
};
|
|
8575
8606
|
};
|
|
8576
8607
|
const getPropertyValueOfParts = (parts, propertyName) => {
|
|
@@ -13311,7 +13342,7 @@ __publicField(_OpenAddWidgetModalCommand, "COMMAND_ID", "OpenAddWidgetModal");
|
|
|
13311
13342
|
let OpenAddWidgetModalCommand = _OpenAddWidgetModalCommand;
|
|
13312
13343
|
const openWidgetAddModal = (modal, args, callback) => {
|
|
13313
13344
|
modal.openModal({
|
|
13314
|
-
component: defineAsyncComponent(() => import("./PbWidgetAddModal-
|
|
13345
|
+
component: defineAsyncComponent(() => import("./PbWidgetAddModal-D4uBFMPN.js")),
|
|
13315
13346
|
style: {
|
|
13316
13347
|
width: "80%",
|
|
13317
13348
|
height: "80%",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B, b, M, c, d, e, _, a, f, g, h, i, j, k, l, m, n, R, o, S, p, W, q, r, v, x, y, z, A, D, E } from "./index-
|
|
1
|
+
import { B, b, M, c, d, e, _, a, f, g, h, i, j, k, l, m, n, R, o, S, p, W, q, r, v, x, y, z, A, D, E } from "./index-CzHVyJKJ.js";
|
|
2
2
|
export {
|
|
3
3
|
B as BLOCK_TYPE,
|
|
4
4
|
b as Block,
|
|
@@ -6887,16 +6887,26 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
6887
6887
|
props: {
|
|
6888
6888
|
part: {}
|
|
6889
6889
|
},
|
|
6890
|
-
emits: ["
|
|
6890
|
+
emits: ["hideParent", "showParent"],
|
|
6891
6891
|
setup(__props, { emit: __emit }) {
|
|
6892
6892
|
const props = __props;
|
|
6893
6893
|
const emit = __emit;
|
|
6894
6894
|
const visible = vue.ref(true);
|
|
6895
|
-
const
|
|
6895
|
+
const hideParent = () => {
|
|
6896
6896
|
var _a, _b;
|
|
6897
|
-
visible.value =
|
|
6897
|
+
visible.value = false;
|
|
6898
6898
|
const hideParentWhenInvisible = ((_a = props.part.properties) == null ? void 0 : _a.hideParentWhenInvisible) === true || ((_b = props.part.properties) == null ? void 0 : _b.hideParentWhenInvisible) === "true";
|
|
6899
|
-
|
|
6899
|
+
if (hideParentWhenInvisible) {
|
|
6900
|
+
emit("hideParent", props.part.partId);
|
|
6901
|
+
}
|
|
6902
|
+
};
|
|
6903
|
+
const showParent = () => {
|
|
6904
|
+
var _a, _b;
|
|
6905
|
+
visible.value = true;
|
|
6906
|
+
const hideParentWhenInvisible = ((_a = props.part.properties) == null ? void 0 : _a.hideParentWhenInvisible) === true || ((_b = props.part.properties) == null ? void 0 : _b.hideParentWhenInvisible) === "true";
|
|
6907
|
+
if (hideParentWhenInvisible) {
|
|
6908
|
+
emit("showParent", props.part.partId);
|
|
6909
|
+
}
|
|
6900
6910
|
};
|
|
6901
6911
|
const classNames = vue.computed(() => [getPartClassName(props.part), props.part.getClassNames()]);
|
|
6902
6912
|
const style = vue.computed(() => ({
|
|
@@ -6940,7 +6950,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
6940
6950
|
thisComponent.value ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(thisComponent.value), {
|
|
6941
6951
|
key: 0,
|
|
6942
6952
|
part: _ctx.part,
|
|
6943
|
-
|
|
6953
|
+
onHideParent: hideParent,
|
|
6954
|
+
onShowParent: showParent
|
|
6944
6955
|
}, null, 40, ["part"])) : vue.createCommentVNode("", true)
|
|
6945
6956
|
], 14, _hoisted_1$8$1)), [
|
|
6946
6957
|
[vue.vShow, visible.value]
|
|
@@ -6954,16 +6965,23 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
6954
6965
|
part: {},
|
|
6955
6966
|
isMobilePage: { type: Boolean }
|
|
6956
6967
|
},
|
|
6957
|
-
emits: ["
|
|
6968
|
+
emits: ["hideParent", "showParent"],
|
|
6958
6969
|
setup(__props, { emit: __emit }) {
|
|
6959
6970
|
const props = __props;
|
|
6960
6971
|
const emit = __emit;
|
|
6972
|
+
const hiddenChildren = vue.ref({});
|
|
6961
6973
|
const visible = vue.ref(true);
|
|
6962
|
-
const
|
|
6963
|
-
|
|
6964
|
-
|
|
6974
|
+
const hideParent = (partId) => {
|
|
6975
|
+
visible.value = false;
|
|
6976
|
+
hiddenChildren.value[partId] = true;
|
|
6977
|
+
emit("hideParent", props.part.partId);
|
|
6978
|
+
};
|
|
6979
|
+
const showParent = (partId) => {
|
|
6980
|
+
delete hiddenChildren.value[partId];
|
|
6981
|
+
if (Object.keys(hiddenChildren.value).length === 0) {
|
|
6982
|
+
visible.value = true;
|
|
6983
|
+
emit("showParent", props.part.partId);
|
|
6965
6984
|
}
|
|
6966
|
-
emit("update:visible", visible.value, hideParentWhenInvisible);
|
|
6967
6985
|
};
|
|
6968
6986
|
const validTags = ["div", "section", "li"];
|
|
6969
6987
|
const tag = vue.computed(() => {
|
|
@@ -7014,7 +7032,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
7014
7032
|
return vue.openBlock(), vue.createBlock(_sfc_main$b$1, {
|
|
7015
7033
|
key: child.partId,
|
|
7016
7034
|
part: child,
|
|
7017
|
-
|
|
7035
|
+
onHideParent: hideParent,
|
|
7036
|
+
onShowParent: showParent
|
|
7018
7037
|
}, null, 8, ["part"]);
|
|
7019
7038
|
}), 128)) : vue.createCommentVNode("", true)
|
|
7020
7039
|
]),
|
|
@@ -7031,12 +7050,22 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
7031
7050
|
part: {},
|
|
7032
7051
|
isMobilePage: { type: Boolean }
|
|
7033
7052
|
},
|
|
7034
|
-
|
|
7053
|
+
emits: ["hideParent", "showParent"],
|
|
7054
|
+
setup(__props, { emit: __emit }) {
|
|
7035
7055
|
const props = __props;
|
|
7056
|
+
const emit = __emit;
|
|
7057
|
+
const hiddenChildren = vue.ref({});
|
|
7036
7058
|
const visible = vue.ref(true);
|
|
7037
|
-
const
|
|
7038
|
-
|
|
7039
|
-
|
|
7059
|
+
const hideParent = (partId) => {
|
|
7060
|
+
visible.value = false;
|
|
7061
|
+
hiddenChildren.value[partId] = true;
|
|
7062
|
+
emit("hideParent", props.part.partId);
|
|
7063
|
+
};
|
|
7064
|
+
const showParent = (partId) => {
|
|
7065
|
+
delete hiddenChildren.value[partId];
|
|
7066
|
+
if (Object.keys(hiddenChildren.value).length === 0) {
|
|
7067
|
+
visible.value = true;
|
|
7068
|
+
emit("showParent", props.part.partId);
|
|
7040
7069
|
}
|
|
7041
7070
|
};
|
|
7042
7071
|
const validTags = ["div", "section", "ul"];
|
|
@@ -7089,7 +7118,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
7089
7118
|
key: child.partId,
|
|
7090
7119
|
"is-mobile-page": _ctx.isMobilePage,
|
|
7091
7120
|
part: child,
|
|
7092
|
-
|
|
7121
|
+
onHideParent: hideParent,
|
|
7122
|
+
onShowParent: showParent
|
|
7093
7123
|
}, null, 8, ["is-mobile-page", "part"]);
|
|
7094
7124
|
}), 128)) : vue.createCommentVNode("", true)
|
|
7095
7125
|
]),
|
|
@@ -7562,6 +7592,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
7562
7592
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
7563
7593
|
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent("script"), {
|
|
7564
7594
|
id: "youtube-iframe-js-api-script",
|
|
7595
|
+
class: "optanon-category-C0004",
|
|
7565
7596
|
src: "https://www.youtube.com/iframe_api"
|
|
7566
7597
|
})),
|
|
7567
7598
|
((_a = _ctx.part.properties) == null ? void 0 : _a.url) ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@g1cloud/page-builder-editor",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.0-alpha.
|
|
4
|
+
"version": "1.0.0-alpha.97",
|
|
5
5
|
"engins": {
|
|
6
6
|
"node": ">= 20.0.0"
|
|
7
7
|
},
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"vue-router": "^4.4.3",
|
|
32
32
|
"vue3-click-away": "^1.2.4",
|
|
33
33
|
"yjs": "^13.6.14",
|
|
34
|
-
"@g1cloud/page-builder-viewer": "1.0.0-alpha.
|
|
34
|
+
"@g1cloud/page-builder-viewer": "1.0.0-alpha.97"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/node": "^20.12.7",
|