@g1cloud/page-builder-editor 1.0.0-alpha.51 → 1.0.0-alpha.52
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-BgdKzOQf.js → PbPropertyEditorColor-Db3UUuLc.js} +1 -1
- package/dist/{PbPropertyEditorHtml-BYJROwnL.js → PbPropertyEditorHtml-CoxUtACW.js} +1 -1
- package/dist/{PbPropertyEditorImage-DD4Da4xq.js → PbPropertyEditorImage-B73oOweb.js} +1 -1
- package/dist/{PbPropertyEditorMultilineText-DvG2dPEk.js → PbPropertyEditorMultilineText-C43eDCgk.js} +1 -1
- package/dist/{PbPropertyEditorText-C7ghs_Ju.js → PbPropertyEditorText-DmTjpx6J.js} +1 -1
- package/dist/{PbPropertyEditorYoutube-CM1sXU-v.js → PbPropertyEditorYoutube-DPX-k3c5.js} +1 -1
- package/dist/{PbWidgetAddModal-DBa9-1_f.js → PbWidgetAddModal-CoT-pyXr.js} +1 -1
- package/dist/{index-UCsCqthV.js → index-DkU6TZPE.js} +53 -22
- package/dist/model/default-part-property-group.d.ts +1 -0
- package/dist/page-builder-editor.js +1 -1
- package/dist/page-builder-editor.umd.cjs +46 -15
- 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-DkU6TZPE.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" };
|
|
@@ -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-DkU6TZPE.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,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, createElementVNode, withDirectives, unref } from "vue";
|
|
2
|
-
import { u as usePageBuilderEditor } from "./index-
|
|
2
|
+
import { u as usePageBuilderEditor } from "./index-DkU6TZPE.js";
|
|
3
3
|
import { useModal, vT } from "@g1cloud/bluesea";
|
|
4
4
|
const _hoisted_1 = { class: "property-editor property-editor-image flex-align-center" };
|
|
5
5
|
const _hoisted_2 = { class: "title" };
|
package/dist/{PbPropertyEditorMultilineText-DvG2dPEk.js → PbPropertyEditorMultilineText-C43eDCgk.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-DkU6TZPE.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-DkU6TZPE.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-DkU6TZPE.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-DkU6TZPE.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"];
|
|
@@ -6891,8 +6891,9 @@ const _sfc_main$c$1 = /* @__PURE__ */ defineComponent({
|
|
|
6891
6891
|
const emit = __emit;
|
|
6892
6892
|
const visible = ref(true);
|
|
6893
6893
|
const updateVisible = (value) => {
|
|
6894
|
+
var _a;
|
|
6894
6895
|
visible.value = value;
|
|
6895
|
-
emit("update:visible", value);
|
|
6896
|
+
emit("update:visible", value, !!((_a = props.part.properties) == null ? void 0 : _a.hideParentWhenInvisible));
|
|
6896
6897
|
};
|
|
6897
6898
|
const classNames = computed(() => [getPartClassName(props.part), props.part.getClassNames()]);
|
|
6898
6899
|
const styleTag = computed(() => props.part.getStyleTag());
|
|
@@ -6936,11 +6937,11 @@ const _sfc_main$b$1 = /* @__PURE__ */ defineComponent({
|
|
|
6936
6937
|
const props = __props;
|
|
6937
6938
|
const emit = __emit;
|
|
6938
6939
|
const visible = ref(true);
|
|
6939
|
-
const
|
|
6940
|
-
|
|
6941
|
-
|
|
6942
|
-
|
|
6943
|
-
emit("update:visible", visible.value);
|
|
6940
|
+
const updateVisible = (value, hideParentWhenInvisible) => {
|
|
6941
|
+
if (hideParentWhenInvisible && !value) {
|
|
6942
|
+
visible.value = false;
|
|
6943
|
+
}
|
|
6944
|
+
emit("update:visible", visible.value, hideParentWhenInvisible);
|
|
6944
6945
|
};
|
|
6945
6946
|
const classNames = computed(() => [getPartClassName(props.part), props.part.getClassNames()]);
|
|
6946
6947
|
const styleTag = computed(() => props.part.getStyleTag());
|
|
@@ -6963,8 +6964,8 @@ const _sfc_main$b$1 = /* @__PURE__ */ defineComponent({
|
|
|
6963
6964
|
return openBlock(), createBlock$1(_sfc_main$c$1, {
|
|
6964
6965
|
key: child.partId,
|
|
6965
6966
|
part: child,
|
|
6966
|
-
"onUpdate:visible": (value) => updateVisible(
|
|
6967
|
-
}, null, 8, ["part"
|
|
6967
|
+
"onUpdate:visible": _cache[0] || (_cache[0] = (value, hideParentWhenInvisible) => updateVisible(value, hideParentWhenInvisible))
|
|
6968
|
+
}, null, 8, ["part"]);
|
|
6968
6969
|
}), 128)) : createCommentVNode("", true)
|
|
6969
6970
|
], 14, _hoisted_1$a$1), [
|
|
6970
6971
|
[vShow, visible.value]
|
|
@@ -6983,10 +6984,10 @@ const _sfc_main$a$1 = /* @__PURE__ */ defineComponent({
|
|
|
6983
6984
|
setup(__props) {
|
|
6984
6985
|
const props = __props;
|
|
6985
6986
|
const visible = ref(true);
|
|
6986
|
-
const
|
|
6987
|
-
|
|
6988
|
-
|
|
6989
|
-
|
|
6987
|
+
const updateVisible = (value, hideParentWhenInvisible) => {
|
|
6988
|
+
if (hideParentWhenInvisible && !value) {
|
|
6989
|
+
visible.value = false;
|
|
6990
|
+
}
|
|
6990
6991
|
};
|
|
6991
6992
|
const classNames = computed(() => [getPartClassName(props.part), props.part.getClassNames()]);
|
|
6992
6993
|
const styleTag = computed(() => props.part.getStyleTag());
|
|
@@ -7010,8 +7011,8 @@ const _sfc_main$a$1 = /* @__PURE__ */ defineComponent({
|
|
|
7010
7011
|
key: child.partId,
|
|
7011
7012
|
"is-mobile-page": _ctx.isMobilePage,
|
|
7012
7013
|
part: child,
|
|
7013
|
-
"onUpdate:visible": (value) => updateVisible(
|
|
7014
|
-
}, null, 8, ["is-mobile-page", "part"
|
|
7014
|
+
"onUpdate:visible": _cache[0] || (_cache[0] = (value, hideParentWhenInvisible) => updateVisible(value, hideParentWhenInvisible))
|
|
7015
|
+
}, null, 8, ["is-mobile-page", "part"]);
|
|
7015
7016
|
}), 128)) : createCommentVNode("", true)
|
|
7016
7017
|
], 14, _hoisted_1$9$1), [
|
|
7017
7018
|
[vShow, visible.value]
|
|
@@ -7474,6 +7475,7 @@ class PageBuilderViewerImpl {
|
|
|
7474
7475
|
parsePartContent(partContent) {
|
|
7475
7476
|
const part = this.createPart(partContent.partType);
|
|
7476
7477
|
if (!part) return;
|
|
7478
|
+
part.partId = partContent.partId;
|
|
7477
7479
|
part.partType = partContent.partType;
|
|
7478
7480
|
part.partName = partContent.partName;
|
|
7479
7481
|
part.properties = partContent.properties ? JSON.parse(JSON.stringify(partContent.properties)) : null;
|
|
@@ -8268,15 +8270,15 @@ class PartManager {
|
|
|
8268
8270
|
const defaultPartPropertyEditors = () => {
|
|
8269
8271
|
return {
|
|
8270
8272
|
"readonly-text": () => defineAsyncComponent(() => import("./PbPropertyEditorReadonlyText-BJ5qx69O.js")),
|
|
8271
|
-
"text": () => defineAsyncComponent(() => import("./PbPropertyEditorText-
|
|
8273
|
+
"text": () => defineAsyncComponent(() => import("./PbPropertyEditorText-DmTjpx6J.js")),
|
|
8272
8274
|
"number": () => defineAsyncComponent(() => import("./PbPropertyEditorNumber-B76ArSb5.js")),
|
|
8273
8275
|
"boolean": () => defineAsyncComponent(() => import("./PbPropertyEditorBoolean-c5CNiTpt.js")),
|
|
8274
|
-
"multiline-text": () => defineAsyncComponent(() => import("./PbPropertyEditorMultilineText-
|
|
8276
|
+
"multiline-text": () => defineAsyncComponent(() => import("./PbPropertyEditorMultilineText-C43eDCgk.js")),
|
|
8275
8277
|
"select": () => defineAsyncComponent(() => import("./PbPropertyEditorSelect-B5sfulvx.js")),
|
|
8276
|
-
"color": () => defineAsyncComponent(() => import("./PbPropertyEditorColor-
|
|
8277
|
-
"image": () => defineAsyncComponent(() => import("./PbPropertyEditorImage-
|
|
8278
|
-
"html": () => defineAsyncComponent(() => import("./PbPropertyEditorHtml-
|
|
8279
|
-
"youtube": () => defineAsyncComponent(() => import("./PbPropertyEditorYoutube-
|
|
8278
|
+
"color": () => defineAsyncComponent(() => import("./PbPropertyEditorColor-Db3UUuLc.js")),
|
|
8279
|
+
"image": () => defineAsyncComponent(() => import("./PbPropertyEditorImage-B73oOweb.js")),
|
|
8280
|
+
"html": () => defineAsyncComponent(() => import("./PbPropertyEditorHtml-CoxUtACW.js")),
|
|
8281
|
+
"youtube": () => defineAsyncComponent(() => import("./PbPropertyEditorYoutube-DPX-k3c5.js"))
|
|
8280
8282
|
};
|
|
8281
8283
|
};
|
|
8282
8284
|
const getPropertyValueOfParts = (parts, propertyName) => {
|
|
@@ -12268,11 +12270,24 @@ const borderGroup = () => {
|
|
|
12268
12270
|
propertyGroupEditor: () => _sfc_main$h
|
|
12269
12271
|
};
|
|
12270
12272
|
};
|
|
12273
|
+
const hideParentGroup = () => {
|
|
12274
|
+
return {
|
|
12275
|
+
groupName: "hideParentGroup",
|
|
12276
|
+
caption: "pb.prop.hideParent",
|
|
12277
|
+
properties: [
|
|
12278
|
+
{
|
|
12279
|
+
propertyName: "hideParentWhenInvisible",
|
|
12280
|
+
caption: "pb.prop.hideParentWhenInvisible",
|
|
12281
|
+
propertyType: "boolean"
|
|
12282
|
+
}
|
|
12283
|
+
]
|
|
12284
|
+
};
|
|
12285
|
+
};
|
|
12271
12286
|
const defaultPropertyGroups = () => {
|
|
12272
12287
|
return [layoutGroup(), alignGroup(), sizeGroup(), marginGroup(), paddingGroup(), backgroundGroup(), commonGroup()];
|
|
12273
12288
|
};
|
|
12274
12289
|
const defaultWidgetPropertyGroups = () => {
|
|
12275
|
-
return [alignSelfGroup(), positionGroup(), sizeGroup(), marginGroup(), paddingGroup(), borderGroup(), backgroundGroup(), commonGroup()];
|
|
12290
|
+
return [alignSelfGroup(), positionGroup(), sizeGroup(), marginGroup(), paddingGroup(), borderGroup(), backgroundGroup(), commonGroup(), hideParentGroup()];
|
|
12276
12291
|
};
|
|
12277
12292
|
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
12278
12293
|
__name: "PbContainerWidget",
|
|
@@ -12835,7 +12850,7 @@ __publicField(_OpenAddWidgetModalCommand, "COMMAND_ID", "OpenAddWidgetModal");
|
|
|
12835
12850
|
let OpenAddWidgetModalCommand = _OpenAddWidgetModalCommand;
|
|
12836
12851
|
const openWidgetAddModal = (modal, args, callback) => {
|
|
12837
12852
|
modal.openModal({
|
|
12838
|
-
component: defineAsyncComponent(() => import("./PbWidgetAddModal-
|
|
12853
|
+
component: defineAsyncComponent(() => import("./PbWidgetAddModal-CoT-pyXr.js")),
|
|
12839
12854
|
style: {
|
|
12840
12855
|
width: "80%",
|
|
12841
12856
|
height: "80%",
|
|
@@ -15442,6 +15457,10 @@ const enTexts = [
|
|
|
15442
15457
|
{
|
|
15443
15458
|
key: "pb.modal.htmlEditor.style",
|
|
15444
15459
|
text: "Style"
|
|
15460
|
+
},
|
|
15461
|
+
{
|
|
15462
|
+
key: "pb.prop.hideParentWhenInvisible",
|
|
15463
|
+
text: "Hide block and section when invisible"
|
|
15445
15464
|
}
|
|
15446
15465
|
];
|
|
15447
15466
|
const jaTexts = [
|
|
@@ -15764,6 +15783,10 @@ const jaTexts = [
|
|
|
15764
15783
|
{
|
|
15765
15784
|
key: "pb.modal.htmlEditor.style",
|
|
15766
15785
|
text: "スタイル"
|
|
15786
|
+
},
|
|
15787
|
+
{
|
|
15788
|
+
key: "pb.prop.hideParentWhenInvisible",
|
|
15789
|
+
text: "非表示の場合はブロックとセクションも隠す"
|
|
15767
15790
|
}
|
|
15768
15791
|
];
|
|
15769
15792
|
const koTexts = [
|
|
@@ -16086,6 +16109,10 @@ const koTexts = [
|
|
|
16086
16109
|
{
|
|
16087
16110
|
key: "pb.modal.htmlEditor.style",
|
|
16088
16111
|
text: "스타일"
|
|
16112
|
+
},
|
|
16113
|
+
{
|
|
16114
|
+
key: "pb.prop.hideParentWhenInvisible",
|
|
16115
|
+
text: "블록과 섹션도 함께 숨김처리하기"
|
|
16089
16116
|
}
|
|
16090
16117
|
];
|
|
16091
16118
|
const zhTexts = [
|
|
@@ -16408,6 +16435,10 @@ const zhTexts = [
|
|
|
16408
16435
|
{
|
|
16409
16436
|
key: "pb.modal.htmlEditor.style",
|
|
16410
16437
|
text: "样式"
|
|
16438
|
+
},
|
|
16439
|
+
{
|
|
16440
|
+
key: "pb.prop.hideParentWhenInvisible",
|
|
16441
|
+
text: "不可见时隐藏区块和区域"
|
|
16411
16442
|
}
|
|
16412
16443
|
];
|
|
16413
16444
|
i18n.addTexts("en", enTexts);
|
|
@@ -11,5 +11,6 @@ export declare const alignItemsGroup: () => PartPropertyGroup;
|
|
|
11
11
|
export declare const alignSelfGroup: () => PartPropertyGroup;
|
|
12
12
|
export declare const backgroundGroup: () => PartPropertyGroup;
|
|
13
13
|
export declare const borderGroup: () => PartPropertyGroup;
|
|
14
|
+
export declare const hideParentGroup: () => PartPropertyGroup;
|
|
14
15
|
export declare const defaultPropertyGroups: () => PartPropertyGroup[];
|
|
15
16
|
export declare const defaultWidgetPropertyGroups: () => PartPropertyGroup[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B, b, M, c, d, e, _, a, f, g, h, i, j, k, l, m, n, o, R, p, S, q, W, r, t, v, x, y, z, A, C, D } from "./index-
|
|
1
|
+
import { B, b, M, c, d, e, _, a, f, g, h, i, j, k, l, m, n, o, R, p, S, q, W, r, t, v, x, y, z, A, C, D } from "./index-DkU6TZPE.js";
|
|
2
2
|
export {
|
|
3
3
|
B as BLOCK_TYPE,
|
|
4
4
|
b as Block,
|
|
@@ -6892,8 +6892,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
6892
6892
|
const emit = __emit;
|
|
6893
6893
|
const visible = vue.ref(true);
|
|
6894
6894
|
const updateVisible = (value) => {
|
|
6895
|
+
var _a;
|
|
6895
6896
|
visible.value = value;
|
|
6896
|
-
emit("update:visible", value);
|
|
6897
|
+
emit("update:visible", value, !!((_a = props.part.properties) == null ? void 0 : _a.hideParentWhenInvisible));
|
|
6897
6898
|
};
|
|
6898
6899
|
const classNames = vue.computed(() => [getPartClassName(props.part), props.part.getClassNames()]);
|
|
6899
6900
|
const styleTag = vue.computed(() => props.part.getStyleTag());
|
|
@@ -6937,11 +6938,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
6937
6938
|
const props = __props;
|
|
6938
6939
|
const emit = __emit;
|
|
6939
6940
|
const visible = vue.ref(true);
|
|
6940
|
-
const
|
|
6941
|
-
|
|
6942
|
-
|
|
6943
|
-
|
|
6944
|
-
emit("update:visible", visible.value);
|
|
6941
|
+
const updateVisible = (value, hideParentWhenInvisible) => {
|
|
6942
|
+
if (hideParentWhenInvisible && !value) {
|
|
6943
|
+
visible.value = false;
|
|
6944
|
+
}
|
|
6945
|
+
emit("update:visible", visible.value, hideParentWhenInvisible);
|
|
6945
6946
|
};
|
|
6946
6947
|
const classNames = vue.computed(() => [getPartClassName(props.part), props.part.getClassNames()]);
|
|
6947
6948
|
const styleTag = vue.computed(() => props.part.getStyleTag());
|
|
@@ -6964,8 +6965,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
6964
6965
|
return vue.openBlock(), vue.createBlock(_sfc_main$c$1, {
|
|
6965
6966
|
key: child.partId,
|
|
6966
6967
|
part: child,
|
|
6967
|
-
"onUpdate:visible": (value) => updateVisible(
|
|
6968
|
-
}, null, 8, ["part"
|
|
6968
|
+
"onUpdate:visible": _cache[0] || (_cache[0] = (value, hideParentWhenInvisible) => updateVisible(value, hideParentWhenInvisible))
|
|
6969
|
+
}, null, 8, ["part"]);
|
|
6969
6970
|
}), 128)) : vue.createCommentVNode("", true)
|
|
6970
6971
|
], 14, _hoisted_1$a$1), [
|
|
6971
6972
|
[vue.vShow, visible.value]
|
|
@@ -6984,10 +6985,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
6984
6985
|
setup(__props) {
|
|
6985
6986
|
const props = __props;
|
|
6986
6987
|
const visible = vue.ref(true);
|
|
6987
|
-
const
|
|
6988
|
-
|
|
6989
|
-
|
|
6990
|
-
|
|
6988
|
+
const updateVisible = (value, hideParentWhenInvisible) => {
|
|
6989
|
+
if (hideParentWhenInvisible && !value) {
|
|
6990
|
+
visible.value = false;
|
|
6991
|
+
}
|
|
6991
6992
|
};
|
|
6992
6993
|
const classNames = vue.computed(() => [getPartClassName(props.part), props.part.getClassNames()]);
|
|
6993
6994
|
const styleTag = vue.computed(() => props.part.getStyleTag());
|
|
@@ -7011,8 +7012,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
7011
7012
|
key: child.partId,
|
|
7012
7013
|
"is-mobile-page": _ctx.isMobilePage,
|
|
7013
7014
|
part: child,
|
|
7014
|
-
"onUpdate:visible": (value) => updateVisible(
|
|
7015
|
-
}, null, 8, ["is-mobile-page", "part"
|
|
7015
|
+
"onUpdate:visible": _cache[0] || (_cache[0] = (value, hideParentWhenInvisible) => updateVisible(value, hideParentWhenInvisible))
|
|
7016
|
+
}, null, 8, ["is-mobile-page", "part"]);
|
|
7016
7017
|
}), 128)) : vue.createCommentVNode("", true)
|
|
7017
7018
|
], 14, _hoisted_1$9$1), [
|
|
7018
7019
|
[vue.vShow, visible.value]
|
|
@@ -7475,6 +7476,7 @@ ${_html.style}
|
|
|
7475
7476
|
parsePartContent(partContent) {
|
|
7476
7477
|
const part = this.createPart(partContent.partType);
|
|
7477
7478
|
if (!part) return;
|
|
7479
|
+
part.partId = partContent.partId;
|
|
7478
7480
|
part.partType = partContent.partType;
|
|
7479
7481
|
part.partName = partContent.partName;
|
|
7480
7482
|
part.properties = partContent.properties ? JSON.parse(JSON.stringify(partContent.properties)) : null;
|
|
@@ -12269,11 +12271,24 @@ ${_html.style}
|
|
|
12269
12271
|
propertyGroupEditor: () => _sfc_main$v
|
|
12270
12272
|
};
|
|
12271
12273
|
};
|
|
12274
|
+
const hideParentGroup = () => {
|
|
12275
|
+
return {
|
|
12276
|
+
groupName: "hideParentGroup",
|
|
12277
|
+
caption: "pb.prop.hideParent",
|
|
12278
|
+
properties: [
|
|
12279
|
+
{
|
|
12280
|
+
propertyName: "hideParentWhenInvisible",
|
|
12281
|
+
caption: "pb.prop.hideParentWhenInvisible",
|
|
12282
|
+
propertyType: "boolean"
|
|
12283
|
+
}
|
|
12284
|
+
]
|
|
12285
|
+
};
|
|
12286
|
+
};
|
|
12272
12287
|
const defaultPropertyGroups = () => {
|
|
12273
12288
|
return [layoutGroup(), alignGroup(), sizeGroup(), marginGroup(), paddingGroup(), backgroundGroup(), commonGroup()];
|
|
12274
12289
|
};
|
|
12275
12290
|
const defaultWidgetPropertyGroups = () => {
|
|
12276
|
-
return [alignSelfGroup(), positionGroup(), sizeGroup(), marginGroup(), paddingGroup(), borderGroup(), backgroundGroup(), commonGroup()];
|
|
12291
|
+
return [alignSelfGroup(), positionGroup(), sizeGroup(), marginGroup(), paddingGroup(), borderGroup(), backgroundGroup(), commonGroup(), hideParentGroup()];
|
|
12277
12292
|
};
|
|
12278
12293
|
const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
12279
12294
|
__name: "PbContainerWidget",
|
|
@@ -15443,6 +15458,10 @@ ${_html.style}
|
|
|
15443
15458
|
{
|
|
15444
15459
|
key: "pb.modal.htmlEditor.style",
|
|
15445
15460
|
text: "Style"
|
|
15461
|
+
},
|
|
15462
|
+
{
|
|
15463
|
+
key: "pb.prop.hideParentWhenInvisible",
|
|
15464
|
+
text: "Hide block and section when invisible"
|
|
15446
15465
|
}
|
|
15447
15466
|
];
|
|
15448
15467
|
const jaTexts = [
|
|
@@ -15765,6 +15784,10 @@ ${_html.style}
|
|
|
15765
15784
|
{
|
|
15766
15785
|
key: "pb.modal.htmlEditor.style",
|
|
15767
15786
|
text: "スタイル"
|
|
15787
|
+
},
|
|
15788
|
+
{
|
|
15789
|
+
key: "pb.prop.hideParentWhenInvisible",
|
|
15790
|
+
text: "非表示の場合はブロックとセクションも隠す"
|
|
15768
15791
|
}
|
|
15769
15792
|
];
|
|
15770
15793
|
const koTexts = [
|
|
@@ -16087,6 +16110,10 @@ ${_html.style}
|
|
|
16087
16110
|
{
|
|
16088
16111
|
key: "pb.modal.htmlEditor.style",
|
|
16089
16112
|
text: "스타일"
|
|
16113
|
+
},
|
|
16114
|
+
{
|
|
16115
|
+
key: "pb.prop.hideParentWhenInvisible",
|
|
16116
|
+
text: "블록과 섹션도 함께 숨김처리하기"
|
|
16090
16117
|
}
|
|
16091
16118
|
];
|
|
16092
16119
|
const zhTexts = [
|
|
@@ -16409,6 +16436,10 @@ ${_html.style}
|
|
|
16409
16436
|
{
|
|
16410
16437
|
key: "pb.modal.htmlEditor.style",
|
|
16411
16438
|
text: "样式"
|
|
16439
|
+
},
|
|
16440
|
+
{
|
|
16441
|
+
key: "pb.prop.hideParentWhenInvisible",
|
|
16442
|
+
text: "不可见时隐藏区块和区域"
|
|
16412
16443
|
}
|
|
16413
16444
|
];
|
|
16414
16445
|
bluesea.i18n.addTexts("en", enTexts);
|
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.52",
|
|
5
5
|
"engins": {
|
|
6
6
|
"node": ">= 20.0.0"
|
|
7
7
|
},
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"vue-router": "^4.4.3",
|
|
31
31
|
"vue3-click-away": "^1.2.4",
|
|
32
32
|
"yjs": "^13.6.14",
|
|
33
|
-
"@g1cloud/page-builder-viewer": "1.0.0-alpha.
|
|
33
|
+
"@g1cloud/page-builder-viewer": "1.0.0-alpha.52"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/node": "^20.12.7",
|