@g1cloud/page-builder-editor 1.0.0-alpha.96 → 1.0.0-alpha.98
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.css +15 -14
- package/dist/{PbPropertyEditorColor-CbJ-nhwi.js → PbPropertyEditorColor-CpCyIjwS.js} +1 -1
- package/dist/{PbPropertyEditorCssLength-Di_-TNSV.js → PbPropertyEditorCssLength-DxcSclK9.js} +1 -1
- package/dist/{PbPropertyEditorHtml-7ckF6FtJ.js → PbPropertyEditorHtml-Chtjtv6-.js} +1 -1
- package/dist/{PbPropertyEditorImage-DL6jG71W.js → PbPropertyEditorImage-DvjpV1hv.js} +1 -1
- package/dist/{PbPropertyEditorMultilineText-D_QXOpQ-.js → PbPropertyEditorMultilineText-B0JUZw_Q.js} +1 -1
- package/dist/{PbPropertyEditorText-CRii5ReX.js → PbPropertyEditorText-BpLqKfaJ.js} +1 -1
- package/dist/{PbPropertyEditorYoutube-BJ7tl-K6.js → PbPropertyEditorYoutube-D9rwvL_i.js} +1 -1
- package/dist/{PbWidgetAddModal-Y_2_QQY2.js → PbWidgetAddModal-BnF61r3d.js} +1 -1
- package/dist/{index-BGT2UpHO.js → index-bTsjAv2l.js} +154 -42
- package/dist/page-builder-editor.js +1 -1
- package/dist/page-builder-editor.umd.cjs +146 -34
- package/dist/style.css +15 -14
- package/package.json +3 -3
- package/scss/property-group-editor-background.scss +23 -13
|
@@ -216,23 +216,24 @@
|
|
|
216
216
|
flex-direction: row;
|
|
217
217
|
align-items: center;
|
|
218
218
|
}
|
|
219
|
+
.pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .group-editor-background .color label {
|
|
220
|
+
display: inline-block;
|
|
221
|
+
width: 80px;
|
|
222
|
+
}
|
|
219
223
|
.pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .group-editor-background .color .bs-text-input {
|
|
220
|
-
flex-grow:
|
|
224
|
+
flex-grow: 0;
|
|
225
|
+
width: 104px;
|
|
221
226
|
}
|
|
222
|
-
.pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .group-editor-background .image {
|
|
223
|
-
|
|
224
|
-
|
|
227
|
+
.pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .group-editor-background .image label {
|
|
228
|
+
display: inline-block;
|
|
229
|
+
width: 80px;
|
|
225
230
|
}
|
|
226
|
-
.pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .group-editor-background .image button {
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
width: 120px;
|
|
233
|
-
height: 26px;
|
|
234
|
-
background-color: var(--primary);
|
|
235
|
-
border-radius: 2px;
|
|
231
|
+
.pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .group-editor-background .image .bs-button.select-button {
|
|
232
|
+
width: 132px;
|
|
233
|
+
}
|
|
234
|
+
.pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .group-editor-background .image .url {
|
|
235
|
+
word-break: break-word !important;
|
|
236
|
+
word-wrap: break-word !important;
|
|
236
237
|
}
|
|
237
238
|
.pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .group-editor-border .color {
|
|
238
239
|
width: 50%;
|
|
@@ -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-bTsjAv2l.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-Di_-TNSV.js → PbPropertyEditorCssLength-DxcSclK9.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-bTsjAv2l.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-bTsjAv2l.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-bTsjAv2l.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-D_QXOpQ-.js → PbPropertyEditorMultilineText-B0JUZw_Q.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-bTsjAv2l.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-bTsjAv2l.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-bTsjAv2l.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-bTsjAv2l.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
|
]),
|
|
@@ -8562,16 +8592,16 @@ class PartManager {
|
|
|
8562
8592
|
const defaultPartPropertyEditors = () => {
|
|
8563
8593
|
return {
|
|
8564
8594
|
"readonly-text": () => defineAsyncComponent(() => import("./PbPropertyEditorReadonlyText-BJ5qx69O.js")),
|
|
8565
|
-
"text": () => defineAsyncComponent(() => import("./PbPropertyEditorText-
|
|
8595
|
+
"text": () => defineAsyncComponent(() => import("./PbPropertyEditorText-BpLqKfaJ.js")),
|
|
8566
8596
|
"number": () => defineAsyncComponent(() => import("./PbPropertyEditorNumber-B76ArSb5.js")),
|
|
8567
8597
|
"boolean": () => defineAsyncComponent(() => import("./PbPropertyEditorBoolean-c5CNiTpt.js")),
|
|
8568
|
-
"multiline-text": () => defineAsyncComponent(() => import("./PbPropertyEditorMultilineText-
|
|
8598
|
+
"multiline-text": () => defineAsyncComponent(() => import("./PbPropertyEditorMultilineText-B0JUZw_Q.js")),
|
|
8569
8599
|
"select": () => defineAsyncComponent(() => import("./PbPropertyEditorSelect-B5sfulvx.js")),
|
|
8570
|
-
"css-length": () => defineAsyncComponent(() => import("./PbPropertyEditorCssLength-
|
|
8571
|
-
"color": () => defineAsyncComponent(() => import("./PbPropertyEditorColor-
|
|
8572
|
-
"image": () => defineAsyncComponent(() => import("./PbPropertyEditorImage-
|
|
8573
|
-
"html": () => defineAsyncComponent(() => import("./PbPropertyEditorHtml-
|
|
8574
|
-
"youtube": () => defineAsyncComponent(() => import("./PbPropertyEditorYoutube-
|
|
8600
|
+
"css-length": () => defineAsyncComponent(() => import("./PbPropertyEditorCssLength-DxcSclK9.js")),
|
|
8601
|
+
"color": () => defineAsyncComponent(() => import("./PbPropertyEditorColor-CpCyIjwS.js")),
|
|
8602
|
+
"image": () => defineAsyncComponent(() => import("./PbPropertyEditorImage-DvjpV1hv.js")),
|
|
8603
|
+
"html": () => defineAsyncComponent(() => import("./PbPropertyEditorHtml-Chtjtv6-.js")),
|
|
8604
|
+
"youtube": () => defineAsyncComponent(() => import("./PbPropertyEditorYoutube-D9rwvL_i.js"))
|
|
8575
8605
|
};
|
|
8576
8606
|
};
|
|
8577
8607
|
const getPropertyValueOfParts = (parts, propertyName) => {
|
|
@@ -11868,10 +11898,10 @@ const _sfc_main$i = defineComponent({
|
|
|
11868
11898
|
}
|
|
11869
11899
|
);
|
|
11870
11900
|
watch(
|
|
11871
|
-
() =>
|
|
11872
|
-
() =>
|
|
11901
|
+
() => appliedColor.value,
|
|
11902
|
+
() => {
|
|
11873
11903
|
if (appliedColor.value) emit("change-color", appliedColor.value);
|
|
11874
|
-
},
|
|
11904
|
+
},
|
|
11875
11905
|
{ deep: true }
|
|
11876
11906
|
);
|
|
11877
11907
|
watch(
|
|
@@ -11935,9 +11965,12 @@ const PbColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_
|
|
|
11935
11965
|
const _hoisted_1$g = { class: "group-editor group-editor-background" };
|
|
11936
11966
|
const _hoisted_2$8 = { class: "flex-align-center" };
|
|
11937
11967
|
const _hoisted_3$5 = { class: "title" };
|
|
11938
|
-
const _hoisted_4$4 = { class: "
|
|
11939
|
-
const _hoisted_5$4 = { class: "
|
|
11940
|
-
const _hoisted_6$4 = {
|
|
11968
|
+
const _hoisted_4$4 = { class: "color" };
|
|
11969
|
+
const _hoisted_5$4 = { class: "image mt-4" };
|
|
11970
|
+
const _hoisted_6$4 = {
|
|
11971
|
+
key: 0,
|
|
11972
|
+
class: "url mt-8"
|
|
11973
|
+
};
|
|
11941
11974
|
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
11942
11975
|
__name: "PbPropertyGroupEditorBackground",
|
|
11943
11976
|
props: {
|
|
@@ -11948,18 +11981,20 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
11948
11981
|
const props = __props;
|
|
11949
11982
|
const pageBuilder = usePageBuilderEditor();
|
|
11950
11983
|
const modal = useModal();
|
|
11951
|
-
const color = computed(() => getPropertyValueOfParts(props.selectedParts, "backgroundColor"));
|
|
11952
|
-
const emptyColor = () => {
|
|
11953
|
-
};
|
|
11954
11984
|
const updatePropertyValue = (properties) => {
|
|
11955
11985
|
pageBuilder.commandRegistry.executeCommand(
|
|
11956
11986
|
ChangePropertyCommand.COMMAND_ID,
|
|
11957
11987
|
{ properties, targetParts: props.selectedParts }
|
|
11958
11988
|
);
|
|
11959
11989
|
};
|
|
11990
|
+
const color = computed(() => getPropertyValueOfParts(props.selectedParts, "backgroundColor"));
|
|
11991
|
+
const emptyColor = () => {
|
|
11992
|
+
};
|
|
11960
11993
|
const saveOriginalColor = () => {
|
|
11961
11994
|
};
|
|
11962
11995
|
const updateColor = (value) => updatePropertyValue({ backgroundColor: value });
|
|
11996
|
+
const deleteColor = (value) => updatePropertyValue({ backgroundColor: "" });
|
|
11997
|
+
const image = computed(() => getPropertyValueOfParts(props.selectedParts, "backgroundImage"));
|
|
11963
11998
|
const selectImage = () => {
|
|
11964
11999
|
const imageProvider = pageBuilder.getProvider("imageProvider");
|
|
11965
12000
|
if (imageProvider) {
|
|
@@ -11970,6 +12005,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
11970
12005
|
});
|
|
11971
12006
|
}
|
|
11972
12007
|
};
|
|
12008
|
+
const deleteImage = (value) => updatePropertyValue({ backgroundImage: "" });
|
|
11973
12009
|
return (_ctx, _cache) => {
|
|
11974
12010
|
return openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
11975
12011
|
createElementVNode("div", _hoisted_2$8, [
|
|
@@ -11978,27 +12014,63 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
11978
12014
|
[unref(vT), { key: "pb.prop.background" }]
|
|
11979
12015
|
])
|
|
11980
12016
|
]),
|
|
11981
|
-
createElementVNode("div",
|
|
11982
|
-
createElementVNode("div",
|
|
12017
|
+
createElementVNode("div", null, [
|
|
12018
|
+
createElementVNode("div", _hoisted_4$4, [
|
|
12019
|
+
withDirectives(createElementVNode("label", null, null, 512), [
|
|
12020
|
+
[unref(vT), { key: "pb.prop.color" }]
|
|
12021
|
+
]),
|
|
11983
12022
|
createVNode(PbColorPicker, {
|
|
11984
12023
|
value: color.value,
|
|
11985
12024
|
"hide-delete": "",
|
|
11986
12025
|
onEmpty: _cache[0] || (_cache[0] = ($event) => emptyColor()),
|
|
11987
|
-
onHide: _cache[1] || (_cache[1] = ($event) => updateColor($event)),
|
|
11988
12026
|
onShow: saveOriginalColor,
|
|
11989
|
-
onChangeColor: _cache[
|
|
12027
|
+
onChangeColor: _cache[1] || (_cache[1] = ($event) => updateColor($event))
|
|
11990
12028
|
}, null, 8, ["value"]),
|
|
11991
12029
|
createVNode(unref(BSTextInput), {
|
|
11992
12030
|
"model-value": color.value,
|
|
11993
12031
|
class: "ml-4",
|
|
11994
12032
|
width: "",
|
|
11995
12033
|
"onUpdate:modelValue": updateColor
|
|
11996
|
-
}, null, 8, ["model-value"])
|
|
12034
|
+
}, null, 8, ["model-value"]),
|
|
12035
|
+
color.value ? withDirectives((openBlock(), createBlock$1(unref(BSButton), {
|
|
12036
|
+
key: 0,
|
|
12037
|
+
class: "ml-4 px-4",
|
|
12038
|
+
"left-icon": "close",
|
|
12039
|
+
onClick: deleteColor
|
|
12040
|
+
}, null, 512)), [
|
|
12041
|
+
[
|
|
12042
|
+
unref(vT),
|
|
12043
|
+
{ key: "pb.menu.delete" },
|
|
12044
|
+
void 0,
|
|
12045
|
+
{ title: true }
|
|
12046
|
+
]
|
|
12047
|
+
]) : createCommentVNode("", true)
|
|
11997
12048
|
]),
|
|
11998
|
-
createElementVNode("div",
|
|
11999
|
-
withDirectives(createElementVNode("
|
|
12000
|
-
[unref(vT), { key: "pb.prop.
|
|
12001
|
-
])
|
|
12049
|
+
createElementVNode("div", _hoisted_5$4, [
|
|
12050
|
+
withDirectives(createElementVNode("label", null, null, 512), [
|
|
12051
|
+
[unref(vT), { key: "pb.prop.image" }]
|
|
12052
|
+
]),
|
|
12053
|
+
createVNode(unref(BSButton), {
|
|
12054
|
+
caption: { key: "pb.prop.selectImage" },
|
|
12055
|
+
"button-color": "blue",
|
|
12056
|
+
class: "select-button",
|
|
12057
|
+
onClick: selectImage
|
|
12058
|
+
}),
|
|
12059
|
+
image.value ? (openBlock(), createElementBlock("div", _hoisted_6$4, [
|
|
12060
|
+
createTextVNode(toDisplayString(image.value) + " ", 1),
|
|
12061
|
+
withDirectives(createVNode(unref(BSButton), {
|
|
12062
|
+
class: "ml-4 px-4",
|
|
12063
|
+
"left-icon": "close",
|
|
12064
|
+
onClick: deleteImage
|
|
12065
|
+
}, null, 512), [
|
|
12066
|
+
[
|
|
12067
|
+
unref(vT),
|
|
12068
|
+
{ key: "pb.menu.delete" },
|
|
12069
|
+
void 0,
|
|
12070
|
+
{ title: true }
|
|
12071
|
+
]
|
|
12072
|
+
])
|
|
12073
|
+
])) : createCommentVNode("", true)
|
|
12002
12074
|
])
|
|
12003
12075
|
])
|
|
12004
12076
|
])
|
|
@@ -13312,7 +13384,7 @@ __publicField(_OpenAddWidgetModalCommand, "COMMAND_ID", "OpenAddWidgetModal");
|
|
|
13312
13384
|
let OpenAddWidgetModalCommand = _OpenAddWidgetModalCommand;
|
|
13313
13385
|
const openWidgetAddModal = (modal, args, callback) => {
|
|
13314
13386
|
modal.openModal({
|
|
13315
|
-
component: defineAsyncComponent(() => import("./PbWidgetAddModal-
|
|
13387
|
+
component: defineAsyncComponent(() => import("./PbWidgetAddModal-BnF61r3d.js")),
|
|
13316
13388
|
style: {
|
|
13317
13389
|
width: "80%",
|
|
13318
13390
|
height: "80%",
|
|
@@ -15749,6 +15821,10 @@ const enTexts = [
|
|
|
15749
15821
|
key: "pb.menu.addWidgetInside",
|
|
15750
15822
|
text: "Add Widget Inside"
|
|
15751
15823
|
},
|
|
15824
|
+
{
|
|
15825
|
+
key: "pb.menu.delete",
|
|
15826
|
+
text: "Delete"
|
|
15827
|
+
},
|
|
15752
15828
|
{
|
|
15753
15829
|
key: "pb.menu.deletePart",
|
|
15754
15830
|
text: "Delete"
|
|
@@ -15805,6 +15881,10 @@ const enTexts = [
|
|
|
15805
15881
|
key: "pb.prop.background",
|
|
15806
15882
|
text: "Background"
|
|
15807
15883
|
},
|
|
15884
|
+
{
|
|
15885
|
+
key: "pb.prop.color",
|
|
15886
|
+
text: "Color"
|
|
15887
|
+
},
|
|
15808
15888
|
{
|
|
15809
15889
|
key: "pb.prop.selectImage",
|
|
15810
15890
|
text: "Select Image"
|
|
@@ -16087,6 +16167,10 @@ const jaTexts = [
|
|
|
16087
16167
|
key: "pb.menu.addWidgetInside",
|
|
16088
16168
|
text: "内側にウィジェットを追加"
|
|
16089
16169
|
},
|
|
16170
|
+
{
|
|
16171
|
+
key: "pb.menu.delete",
|
|
16172
|
+
text: "削除"
|
|
16173
|
+
},
|
|
16090
16174
|
{
|
|
16091
16175
|
key: "pb.menu.deletePart",
|
|
16092
16176
|
text: "削除"
|
|
@@ -16143,6 +16227,10 @@ const jaTexts = [
|
|
|
16143
16227
|
key: "pb.prop.background",
|
|
16144
16228
|
text: "背景"
|
|
16145
16229
|
},
|
|
16230
|
+
{
|
|
16231
|
+
key: "pb.prop.color",
|
|
16232
|
+
text: "色"
|
|
16233
|
+
},
|
|
16146
16234
|
{
|
|
16147
16235
|
key: "pb.prop.selectImage",
|
|
16148
16236
|
text: "画像を選択"
|
|
@@ -16425,6 +16513,10 @@ const koTexts = [
|
|
|
16425
16513
|
key: "pb.menu.addWidgetInside",
|
|
16426
16514
|
text: "안쪽에 위젯 추가"
|
|
16427
16515
|
},
|
|
16516
|
+
{
|
|
16517
|
+
key: "pb.menu.delete",
|
|
16518
|
+
text: "삭제"
|
|
16519
|
+
},
|
|
16428
16520
|
{
|
|
16429
16521
|
key: "pb.menu.deletePart",
|
|
16430
16522
|
text: "삭제"
|
|
@@ -16481,6 +16573,10 @@ const koTexts = [
|
|
|
16481
16573
|
key: "pb.prop.background",
|
|
16482
16574
|
text: "배경"
|
|
16483
16575
|
},
|
|
16576
|
+
{
|
|
16577
|
+
key: "pb.prop.color",
|
|
16578
|
+
text: "색상"
|
|
16579
|
+
},
|
|
16484
16580
|
{
|
|
16485
16581
|
key: "pb.prop.selectImage",
|
|
16486
16582
|
text: "이미지 선택"
|
|
@@ -16763,6 +16859,10 @@ const zhTexts = [
|
|
|
16763
16859
|
key: "pb.menu.addWidgetInside",
|
|
16764
16860
|
text: "在内部添加小部件"
|
|
16765
16861
|
},
|
|
16862
|
+
{
|
|
16863
|
+
key: "pb.menu.delete",
|
|
16864
|
+
text: "删除"
|
|
16865
|
+
},
|
|
16766
16866
|
{
|
|
16767
16867
|
key: "pb.menu.deletePart",
|
|
16768
16868
|
text: "删除"
|
|
@@ -16819,6 +16919,10 @@ const zhTexts = [
|
|
|
16819
16919
|
key: "pb.prop.background",
|
|
16820
16920
|
text: "背景"
|
|
16821
16921
|
},
|
|
16922
|
+
{
|
|
16923
|
+
key: "pb.prop.color",
|
|
16924
|
+
text: "色"
|
|
16925
|
+
},
|
|
16822
16926
|
{
|
|
16823
16927
|
key: "pb.prop.selectImage",
|
|
16824
16928
|
text: "选择图片"
|
|
@@ -17101,6 +17205,10 @@ const frTexts = [
|
|
|
17101
17205
|
key: "pb.menu.addWidgetInside",
|
|
17102
17206
|
text: "Ajouter un widget à l'intérieur"
|
|
17103
17207
|
},
|
|
17208
|
+
{
|
|
17209
|
+
key: "pb.menu.delete",
|
|
17210
|
+
text: "Supprimer"
|
|
17211
|
+
},
|
|
17104
17212
|
{
|
|
17105
17213
|
key: "pb.menu.deletePart",
|
|
17106
17214
|
text: "Supprimer"
|
|
@@ -17157,6 +17265,10 @@ const frTexts = [
|
|
|
17157
17265
|
key: "pb.prop.background",
|
|
17158
17266
|
text: "Arrière-plan"
|
|
17159
17267
|
},
|
|
17268
|
+
{
|
|
17269
|
+
key: "pb.prop.color",
|
|
17270
|
+
text: "Couleur"
|
|
17271
|
+
},
|
|
17160
17272
|
{
|
|
17161
17273
|
key: "pb.prop.selectImage",
|
|
17162
17274
|
text: "Sélectionner une image"
|
|
@@ -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-bTsjAv2l.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
|
]),
|
|
@@ -11869,10 +11899,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
11869
11899
|
}
|
|
11870
11900
|
);
|
|
11871
11901
|
vue.watch(
|
|
11872
|
-
() =>
|
|
11873
|
-
() =>
|
|
11902
|
+
() => appliedColor.value,
|
|
11903
|
+
() => {
|
|
11874
11904
|
if (appliedColor.value) emit("change-color", appliedColor.value);
|
|
11875
|
-
},
|
|
11905
|
+
},
|
|
11876
11906
|
{ deep: true }
|
|
11877
11907
|
);
|
|
11878
11908
|
vue.watch(
|
|
@@ -11936,9 +11966,12 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
11936
11966
|
const _hoisted_1$v = { class: "group-editor group-editor-background" };
|
|
11937
11967
|
const _hoisted_2$m = { class: "flex-align-center" };
|
|
11938
11968
|
const _hoisted_3$c = { class: "title" };
|
|
11939
|
-
const _hoisted_4$8 = { class: "
|
|
11940
|
-
const _hoisted_5$7 = { class: "
|
|
11941
|
-
const _hoisted_6$6 = {
|
|
11969
|
+
const _hoisted_4$8 = { class: "color" };
|
|
11970
|
+
const _hoisted_5$7 = { class: "image mt-4" };
|
|
11971
|
+
const _hoisted_6$6 = {
|
|
11972
|
+
key: 0,
|
|
11973
|
+
class: "url mt-8"
|
|
11974
|
+
};
|
|
11942
11975
|
const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
11943
11976
|
__name: "PbPropertyGroupEditorBackground",
|
|
11944
11977
|
props: {
|
|
@@ -11949,18 +11982,20 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
11949
11982
|
const props = __props;
|
|
11950
11983
|
const pageBuilder = usePageBuilderEditor();
|
|
11951
11984
|
const modal = bluesea.useModal();
|
|
11952
|
-
const color = vue.computed(() => getPropertyValueOfParts(props.selectedParts, "backgroundColor"));
|
|
11953
|
-
const emptyColor = () => {
|
|
11954
|
-
};
|
|
11955
11985
|
const updatePropertyValue = (properties) => {
|
|
11956
11986
|
pageBuilder.commandRegistry.executeCommand(
|
|
11957
11987
|
ChangePropertyCommand.COMMAND_ID,
|
|
11958
11988
|
{ properties, targetParts: props.selectedParts }
|
|
11959
11989
|
);
|
|
11960
11990
|
};
|
|
11991
|
+
const color = vue.computed(() => getPropertyValueOfParts(props.selectedParts, "backgroundColor"));
|
|
11992
|
+
const emptyColor = () => {
|
|
11993
|
+
};
|
|
11961
11994
|
const saveOriginalColor = () => {
|
|
11962
11995
|
};
|
|
11963
11996
|
const updateColor = (value) => updatePropertyValue({ backgroundColor: value });
|
|
11997
|
+
const deleteColor = (value) => updatePropertyValue({ backgroundColor: "" });
|
|
11998
|
+
const image = vue.computed(() => getPropertyValueOfParts(props.selectedParts, "backgroundImage"));
|
|
11964
11999
|
const selectImage = () => {
|
|
11965
12000
|
const imageProvider = pageBuilder.getProvider("imageProvider");
|
|
11966
12001
|
if (imageProvider) {
|
|
@@ -11971,6 +12006,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
11971
12006
|
});
|
|
11972
12007
|
}
|
|
11973
12008
|
};
|
|
12009
|
+
const deleteImage = (value) => updatePropertyValue({ backgroundImage: "" });
|
|
11974
12010
|
return (_ctx, _cache) => {
|
|
11975
12011
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$v, [
|
|
11976
12012
|
vue.createElementVNode("div", _hoisted_2$m, [
|
|
@@ -11979,27 +12015,63 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
11979
12015
|
[vue.unref(bluesea.vT), { key: "pb.prop.background" }]
|
|
11980
12016
|
])
|
|
11981
12017
|
]),
|
|
11982
|
-
vue.createElementVNode("div",
|
|
11983
|
-
vue.createElementVNode("div",
|
|
12018
|
+
vue.createElementVNode("div", null, [
|
|
12019
|
+
vue.createElementVNode("div", _hoisted_4$8, [
|
|
12020
|
+
vue.withDirectives(vue.createElementVNode("label", null, null, 512), [
|
|
12021
|
+
[vue.unref(bluesea.vT), { key: "pb.prop.color" }]
|
|
12022
|
+
]),
|
|
11984
12023
|
vue.createVNode(PbColorPicker, {
|
|
11985
12024
|
value: color.value,
|
|
11986
12025
|
"hide-delete": "",
|
|
11987
12026
|
onEmpty: _cache[0] || (_cache[0] = ($event) => emptyColor()),
|
|
11988
|
-
onHide: _cache[1] || (_cache[1] = ($event) => updateColor($event)),
|
|
11989
12027
|
onShow: saveOriginalColor,
|
|
11990
|
-
onChangeColor: _cache[
|
|
12028
|
+
onChangeColor: _cache[1] || (_cache[1] = ($event) => updateColor($event))
|
|
11991
12029
|
}, null, 8, ["value"]),
|
|
11992
12030
|
vue.createVNode(vue.unref(bluesea.BSTextInput), {
|
|
11993
12031
|
"model-value": color.value,
|
|
11994
12032
|
class: "ml-4",
|
|
11995
12033
|
width: "",
|
|
11996
12034
|
"onUpdate:modelValue": updateColor
|
|
11997
|
-
}, null, 8, ["model-value"])
|
|
12035
|
+
}, null, 8, ["model-value"]),
|
|
12036
|
+
color.value ? vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(bluesea.BSButton), {
|
|
12037
|
+
key: 0,
|
|
12038
|
+
class: "ml-4 px-4",
|
|
12039
|
+
"left-icon": "close",
|
|
12040
|
+
onClick: deleteColor
|
|
12041
|
+
}, null, 512)), [
|
|
12042
|
+
[
|
|
12043
|
+
vue.unref(bluesea.vT),
|
|
12044
|
+
{ key: "pb.menu.delete" },
|
|
12045
|
+
void 0,
|
|
12046
|
+
{ title: true }
|
|
12047
|
+
]
|
|
12048
|
+
]) : vue.createCommentVNode("", true)
|
|
11998
12049
|
]),
|
|
11999
|
-
vue.createElementVNode("div",
|
|
12000
|
-
vue.withDirectives(vue.createElementVNode("
|
|
12001
|
-
[vue.unref(bluesea.vT), { key: "pb.prop.
|
|
12002
|
-
])
|
|
12050
|
+
vue.createElementVNode("div", _hoisted_5$7, [
|
|
12051
|
+
vue.withDirectives(vue.createElementVNode("label", null, null, 512), [
|
|
12052
|
+
[vue.unref(bluesea.vT), { key: "pb.prop.image" }]
|
|
12053
|
+
]),
|
|
12054
|
+
vue.createVNode(vue.unref(bluesea.BSButton), {
|
|
12055
|
+
caption: { key: "pb.prop.selectImage" },
|
|
12056
|
+
"button-color": "blue",
|
|
12057
|
+
class: "select-button",
|
|
12058
|
+
onClick: selectImage
|
|
12059
|
+
}),
|
|
12060
|
+
image.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$6, [
|
|
12061
|
+
vue.createTextVNode(vue.toDisplayString(image.value) + " ", 1),
|
|
12062
|
+
vue.withDirectives(vue.createVNode(vue.unref(bluesea.BSButton), {
|
|
12063
|
+
class: "ml-4 px-4",
|
|
12064
|
+
"left-icon": "close",
|
|
12065
|
+
onClick: deleteImage
|
|
12066
|
+
}, null, 512), [
|
|
12067
|
+
[
|
|
12068
|
+
vue.unref(bluesea.vT),
|
|
12069
|
+
{ key: "pb.menu.delete" },
|
|
12070
|
+
void 0,
|
|
12071
|
+
{ title: true }
|
|
12072
|
+
]
|
|
12073
|
+
])
|
|
12074
|
+
])) : vue.createCommentVNode("", true)
|
|
12003
12075
|
])
|
|
12004
12076
|
])
|
|
12005
12077
|
])
|
|
@@ -15750,6 +15822,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
15750
15822
|
key: "pb.menu.addWidgetInside",
|
|
15751
15823
|
text: "Add Widget Inside"
|
|
15752
15824
|
},
|
|
15825
|
+
{
|
|
15826
|
+
key: "pb.menu.delete",
|
|
15827
|
+
text: "Delete"
|
|
15828
|
+
},
|
|
15753
15829
|
{
|
|
15754
15830
|
key: "pb.menu.deletePart",
|
|
15755
15831
|
text: "Delete"
|
|
@@ -15806,6 +15882,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
15806
15882
|
key: "pb.prop.background",
|
|
15807
15883
|
text: "Background"
|
|
15808
15884
|
},
|
|
15885
|
+
{
|
|
15886
|
+
key: "pb.prop.color",
|
|
15887
|
+
text: "Color"
|
|
15888
|
+
},
|
|
15809
15889
|
{
|
|
15810
15890
|
key: "pb.prop.selectImage",
|
|
15811
15891
|
text: "Select Image"
|
|
@@ -16088,6 +16168,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
16088
16168
|
key: "pb.menu.addWidgetInside",
|
|
16089
16169
|
text: "内側にウィジェットを追加"
|
|
16090
16170
|
},
|
|
16171
|
+
{
|
|
16172
|
+
key: "pb.menu.delete",
|
|
16173
|
+
text: "削除"
|
|
16174
|
+
},
|
|
16091
16175
|
{
|
|
16092
16176
|
key: "pb.menu.deletePart",
|
|
16093
16177
|
text: "削除"
|
|
@@ -16144,6 +16228,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
16144
16228
|
key: "pb.prop.background",
|
|
16145
16229
|
text: "背景"
|
|
16146
16230
|
},
|
|
16231
|
+
{
|
|
16232
|
+
key: "pb.prop.color",
|
|
16233
|
+
text: "色"
|
|
16234
|
+
},
|
|
16147
16235
|
{
|
|
16148
16236
|
key: "pb.prop.selectImage",
|
|
16149
16237
|
text: "画像を選択"
|
|
@@ -16426,6 +16514,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
16426
16514
|
key: "pb.menu.addWidgetInside",
|
|
16427
16515
|
text: "안쪽에 위젯 추가"
|
|
16428
16516
|
},
|
|
16517
|
+
{
|
|
16518
|
+
key: "pb.menu.delete",
|
|
16519
|
+
text: "삭제"
|
|
16520
|
+
},
|
|
16429
16521
|
{
|
|
16430
16522
|
key: "pb.menu.deletePart",
|
|
16431
16523
|
text: "삭제"
|
|
@@ -16482,6 +16574,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
16482
16574
|
key: "pb.prop.background",
|
|
16483
16575
|
text: "배경"
|
|
16484
16576
|
},
|
|
16577
|
+
{
|
|
16578
|
+
key: "pb.prop.color",
|
|
16579
|
+
text: "색상"
|
|
16580
|
+
},
|
|
16485
16581
|
{
|
|
16486
16582
|
key: "pb.prop.selectImage",
|
|
16487
16583
|
text: "이미지 선택"
|
|
@@ -16764,6 +16860,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
16764
16860
|
key: "pb.menu.addWidgetInside",
|
|
16765
16861
|
text: "在内部添加小部件"
|
|
16766
16862
|
},
|
|
16863
|
+
{
|
|
16864
|
+
key: "pb.menu.delete",
|
|
16865
|
+
text: "删除"
|
|
16866
|
+
},
|
|
16767
16867
|
{
|
|
16768
16868
|
key: "pb.menu.deletePart",
|
|
16769
16869
|
text: "删除"
|
|
@@ -16820,6 +16920,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
16820
16920
|
key: "pb.prop.background",
|
|
16821
16921
|
text: "背景"
|
|
16822
16922
|
},
|
|
16923
|
+
{
|
|
16924
|
+
key: "pb.prop.color",
|
|
16925
|
+
text: "色"
|
|
16926
|
+
},
|
|
16823
16927
|
{
|
|
16824
16928
|
key: "pb.prop.selectImage",
|
|
16825
16929
|
text: "选择图片"
|
|
@@ -17102,6 +17206,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
17102
17206
|
key: "pb.menu.addWidgetInside",
|
|
17103
17207
|
text: "Ajouter un widget à l'intérieur"
|
|
17104
17208
|
},
|
|
17209
|
+
{
|
|
17210
|
+
key: "pb.menu.delete",
|
|
17211
|
+
text: "Supprimer"
|
|
17212
|
+
},
|
|
17105
17213
|
{
|
|
17106
17214
|
key: "pb.menu.deletePart",
|
|
17107
17215
|
text: "Supprimer"
|
|
@@ -17158,6 +17266,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
17158
17266
|
key: "pb.prop.background",
|
|
17159
17267
|
text: "Arrière-plan"
|
|
17160
17268
|
},
|
|
17269
|
+
{
|
|
17270
|
+
key: "pb.prop.color",
|
|
17271
|
+
text: "Couleur"
|
|
17272
|
+
},
|
|
17161
17273
|
{
|
|
17162
17274
|
key: "pb.prop.selectImage",
|
|
17163
17275
|
text: "Sélectionner une image"
|
package/dist/style.css
CHANGED
|
@@ -216,23 +216,24 @@
|
|
|
216
216
|
flex-direction: row;
|
|
217
217
|
align-items: center;
|
|
218
218
|
}
|
|
219
|
+
.pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .group-editor-background .color label {
|
|
220
|
+
display: inline-block;
|
|
221
|
+
width: 80px;
|
|
222
|
+
}
|
|
219
223
|
.pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .group-editor-background .color .bs-text-input {
|
|
220
|
-
flex-grow:
|
|
224
|
+
flex-grow: 0;
|
|
225
|
+
width: 104px;
|
|
221
226
|
}
|
|
222
|
-
.pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .group-editor-background .image {
|
|
223
|
-
|
|
224
|
-
|
|
227
|
+
.pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .group-editor-background .image label {
|
|
228
|
+
display: inline-block;
|
|
229
|
+
width: 80px;
|
|
225
230
|
}
|
|
226
|
-
.pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .group-editor-background .image button {
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
width: 120px;
|
|
233
|
-
height: 26px;
|
|
234
|
-
background-color: var(--primary);
|
|
235
|
-
border-radius: 2px;
|
|
231
|
+
.pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .group-editor-background .image .bs-button.select-button {
|
|
232
|
+
width: 132px;
|
|
233
|
+
}
|
|
234
|
+
.pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .group-editor-background .image .url {
|
|
235
|
+
word-break: break-word !important;
|
|
236
|
+
word-wrap: break-word !important;
|
|
236
237
|
}
|
|
237
238
|
.pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .group-editor-border .color {
|
|
238
239
|
width: 50%;
|
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.98",
|
|
5
5
|
"engins": {
|
|
6
6
|
"node": ">= 20.0.0"
|
|
7
7
|
},
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"author": "zag@g1project.net",
|
|
18
18
|
"license": "LicenseRef-LICENSE",
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"@g1cloud/bluesea": "5.0.0-beta.
|
|
20
|
+
"@g1cloud/bluesea": "5.0.0-beta.21",
|
|
21
21
|
"vue3-youtube": "^0.1.9"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
@@ -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.98"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/node": "^20.12.7",
|
|
@@ -5,25 +5,35 @@
|
|
|
5
5
|
flex-direction: row;
|
|
6
6
|
align-items: center;
|
|
7
7
|
|
|
8
|
+
label {
|
|
9
|
+
display: inline-block;
|
|
10
|
+
width: 80px;
|
|
11
|
+
}
|
|
12
|
+
|
|
8
13
|
.bs-text-input {
|
|
9
|
-
flex-grow:
|
|
14
|
+
flex-grow: 0;
|
|
15
|
+
width: 104px;
|
|
10
16
|
}
|
|
11
17
|
}
|
|
12
18
|
|
|
13
19
|
.image {
|
|
14
|
-
flex: 1;
|
|
15
|
-
|
|
20
|
+
// flex: 1;
|
|
21
|
+
// display: flex;
|
|
22
|
+
// flex-direction: row;
|
|
23
|
+
// align-items: center;
|
|
24
|
+
|
|
25
|
+
label {
|
|
26
|
+
display: inline-block;
|
|
27
|
+
width: 80px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.bs-button.select-button {
|
|
31
|
+
width: 132px;
|
|
32
|
+
}
|
|
16
33
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
padding: 4px 12px;
|
|
21
|
-
cursor: pointer;
|
|
22
|
-
line-height: 1;
|
|
23
|
-
width: 120px;
|
|
24
|
-
height: 26px;
|
|
25
|
-
background-color: var(--primary);
|
|
26
|
-
border-radius: 2px;
|
|
34
|
+
.url {
|
|
35
|
+
word-break: break-word !important;
|
|
36
|
+
word-wrap: break-word !important;
|
|
27
37
|
}
|
|
28
38
|
}
|
|
29
39
|
}
|