@g1cloud/page-builder-editor 1.0.0-alpha.73 → 1.0.0-alpha.74
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-Bburxcfo.js → PbPropertyEditorColor-Gyf7NmiL.js} +1 -1
- package/dist/{PbPropertyEditorCssLength-Cku7TH0H.js → PbPropertyEditorCssLength-lQ3q_Hcj.js} +1 -1
- package/dist/{PbPropertyEditorHtml-BlzCBvjh.js → PbPropertyEditorHtml-CZt1GGd3.js} +1 -1
- package/dist/{PbPropertyEditorImage-D-ZvZqEl.js → PbPropertyEditorImage-XRvUWl4r.js} +1 -1
- package/dist/{PbPropertyEditorMultilineText-Lm27UPXU.js → PbPropertyEditorMultilineText-BihLD7YL.js} +1 -1
- package/dist/{PbPropertyEditorText-BFZszY0B.js → PbPropertyEditorText-B71kpUsZ.js} +1 -1
- package/dist/{PbPropertyEditorYoutube-veiAlowu.js → PbPropertyEditorYoutube-CTziBWaJ.js} +1 -1
- package/dist/{PbWidgetAddModal-8BvUYv62.js → PbWidgetAddModal-BM6etjo4.js} +1 -1
- package/dist/{index-CEBGHWjv.js → index-CBy4UB6h.js} +39 -14
- package/dist/page-builder-editor.js +1 -1
- package/dist/page-builder-editor.umd.cjs +31 -6
- 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-CBy4UB6h.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-Cku7TH0H.js → PbPropertyEditorCssLength-lQ3q_Hcj.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-CBy4UB6h.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-CBy4UB6h.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-CBy4UB6h.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-Lm27UPXU.js → PbPropertyEditorMultilineText-BihLD7YL.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-CBy4UB6h.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-CBy4UB6h.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-CBy4UB6h.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-CBy4UB6h.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"];
|
|
@@ -7620,9 +7620,13 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
7620
7620
|
const props = __props;
|
|
7621
7621
|
const pageBuilder = usePageBuilder();
|
|
7622
7622
|
const comp = computed(() => pageBuilder.getCustomWidgetComponent(props.part));
|
|
7623
|
-
const bind = computed(() =>
|
|
7624
|
-
|
|
7625
|
-
|
|
7623
|
+
const bind = computed(() => {
|
|
7624
|
+
var _a;
|
|
7625
|
+
return {
|
|
7626
|
+
"class": ((_a = props.part.properties) == null ? void 0 : _a.widgetClassNames) || void 0,
|
|
7627
|
+
...props.part.properties || {}
|
|
7628
|
+
};
|
|
7629
|
+
});
|
|
7626
7630
|
return (_ctx, _cache) => {
|
|
7627
7631
|
return comp.value ? (openBlock(), createBlock$1(resolveDynamicComponent(comp.value), normalizeProps(mergeProps({ key: 0 }, bind.value)), null, 16)) : createCommentVNode("", true);
|
|
7628
7632
|
};
|
|
@@ -8210,16 +8214,16 @@ class PartManager {
|
|
|
8210
8214
|
const defaultPartPropertyEditors = () => {
|
|
8211
8215
|
return {
|
|
8212
8216
|
"readonly-text": () => defineAsyncComponent(() => import("./PbPropertyEditorReadonlyText-BJ5qx69O.js")),
|
|
8213
|
-
"text": () => defineAsyncComponent(() => import("./PbPropertyEditorText-
|
|
8217
|
+
"text": () => defineAsyncComponent(() => import("./PbPropertyEditorText-B71kpUsZ.js")),
|
|
8214
8218
|
"number": () => defineAsyncComponent(() => import("./PbPropertyEditorNumber-B76ArSb5.js")),
|
|
8215
8219
|
"boolean": () => defineAsyncComponent(() => import("./PbPropertyEditorBoolean-c5CNiTpt.js")),
|
|
8216
|
-
"multiline-text": () => defineAsyncComponent(() => import("./PbPropertyEditorMultilineText-
|
|
8220
|
+
"multiline-text": () => defineAsyncComponent(() => import("./PbPropertyEditorMultilineText-BihLD7YL.js")),
|
|
8217
8221
|
"select": () => defineAsyncComponent(() => import("./PbPropertyEditorSelect-B5sfulvx.js")),
|
|
8218
|
-
"css-length": () => defineAsyncComponent(() => import("./PbPropertyEditorCssLength-
|
|
8219
|
-
"color": () => defineAsyncComponent(() => import("./PbPropertyEditorColor-
|
|
8220
|
-
"image": () => defineAsyncComponent(() => import("./PbPropertyEditorImage-
|
|
8221
|
-
"html": () => defineAsyncComponent(() => import("./PbPropertyEditorHtml-
|
|
8222
|
-
"youtube": () => defineAsyncComponent(() => import("./PbPropertyEditorYoutube-
|
|
8222
|
+
"css-length": () => defineAsyncComponent(() => import("./PbPropertyEditorCssLength-lQ3q_Hcj.js")),
|
|
8223
|
+
"color": () => defineAsyncComponent(() => import("./PbPropertyEditorColor-Gyf7NmiL.js")),
|
|
8224
|
+
"image": () => defineAsyncComponent(() => import("./PbPropertyEditorImage-XRvUWl4r.js")),
|
|
8225
|
+
"html": () => defineAsyncComponent(() => import("./PbPropertyEditorHtml-CZt1GGd3.js")),
|
|
8226
|
+
"youtube": () => defineAsyncComponent(() => import("./PbPropertyEditorYoutube-CTziBWaJ.js"))
|
|
8223
8227
|
};
|
|
8224
8228
|
};
|
|
8225
8229
|
const getPropertyValueOfParts = (parts, propertyName) => {
|
|
@@ -12068,6 +12072,11 @@ const commonGroup = () => {
|
|
|
12068
12072
|
caption: "pb.prop.style",
|
|
12069
12073
|
propertyType: "multiline-text"
|
|
12070
12074
|
},
|
|
12075
|
+
{
|
|
12076
|
+
propertyName: "widgetClassNames",
|
|
12077
|
+
caption: "pb.prop.widgetClassNames",
|
|
12078
|
+
propertyType: "text"
|
|
12079
|
+
},
|
|
12071
12080
|
{
|
|
12072
12081
|
propertyName: "partId",
|
|
12073
12082
|
caption: "pb.prop.partId",
|
|
@@ -12770,7 +12779,7 @@ __publicField(_OpenAddWidgetModalCommand, "COMMAND_ID", "OpenAddWidgetModal");
|
|
|
12770
12779
|
let OpenAddWidgetModalCommand = _OpenAddWidgetModalCommand;
|
|
12771
12780
|
const openWidgetAddModal = (modal, args, callback) => {
|
|
12772
12781
|
modal.openModal({
|
|
12773
|
-
component: defineAsyncComponent(() => import("./PbWidgetAddModal-
|
|
12782
|
+
component: defineAsyncComponent(() => import("./PbWidgetAddModal-BM6etjo4.js")),
|
|
12774
12783
|
style: {
|
|
12775
12784
|
width: "80%",
|
|
12776
12785
|
height: "80%",
|
|
@@ -15179,7 +15188,7 @@ const enTexts = [
|
|
|
15179
15188
|
},
|
|
15180
15189
|
{
|
|
15181
15190
|
key: "pb.prop.classNames",
|
|
15182
|
-
text: "Class Names"
|
|
15191
|
+
text: "CSS Class Names"
|
|
15183
15192
|
},
|
|
15184
15193
|
{
|
|
15185
15194
|
key: "pb.prop.inlineStyle",
|
|
@@ -15189,6 +15198,10 @@ const enTexts = [
|
|
|
15189
15198
|
key: "pb.prop.style",
|
|
15190
15199
|
text: "CSS Style"
|
|
15191
15200
|
},
|
|
15201
|
+
{
|
|
15202
|
+
key: "pb.prop.widgetClassNames",
|
|
15203
|
+
text: "Widget Class Names"
|
|
15204
|
+
},
|
|
15192
15205
|
{
|
|
15193
15206
|
key: "pb.prop.partId",
|
|
15194
15207
|
text: "ID"
|
|
@@ -15509,7 +15522,7 @@ const jaTexts = [
|
|
|
15509
15522
|
},
|
|
15510
15523
|
{
|
|
15511
15524
|
key: "pb.prop.classNames",
|
|
15512
|
-
text: "
|
|
15525
|
+
text: "CSS クラス"
|
|
15513
15526
|
},
|
|
15514
15527
|
{
|
|
15515
15528
|
key: "pb.prop.inlineStyle",
|
|
@@ -15519,6 +15532,10 @@ const jaTexts = [
|
|
|
15519
15532
|
key: "pb.prop.style",
|
|
15520
15533
|
text: "CSS スタイル"
|
|
15521
15534
|
},
|
|
15535
|
+
{
|
|
15536
|
+
key: "pb.prop.widgetClassNames",
|
|
15537
|
+
text: "ウィジェットの CSS クラス"
|
|
15538
|
+
},
|
|
15522
15539
|
{
|
|
15523
15540
|
key: "pb.prop.partId",
|
|
15524
15541
|
text: "ID"
|
|
@@ -15849,6 +15866,10 @@ const koTexts = [
|
|
|
15849
15866
|
key: "pb.prop.style",
|
|
15850
15867
|
text: "CSS 스타일"
|
|
15851
15868
|
},
|
|
15869
|
+
{
|
|
15870
|
+
key: "pb.prop.widgetClassNames",
|
|
15871
|
+
text: "위젯 CSS 클래스"
|
|
15872
|
+
},
|
|
15852
15873
|
{
|
|
15853
15874
|
key: "pb.prop.partId",
|
|
15854
15875
|
text: "ID"
|
|
@@ -16169,7 +16190,7 @@ const zhTexts = [
|
|
|
16169
16190
|
},
|
|
16170
16191
|
{
|
|
16171
16192
|
key: "pb.prop.classNames",
|
|
16172
|
-
text: "类名"
|
|
16193
|
+
text: "CSS 类名"
|
|
16173
16194
|
},
|
|
16174
16195
|
{
|
|
16175
16196
|
key: "pb.prop.inlineStyle",
|
|
@@ -16179,6 +16200,10 @@ const zhTexts = [
|
|
|
16179
16200
|
key: "pb.prop.style",
|
|
16180
16201
|
text: "CSS 样式"
|
|
16181
16202
|
},
|
|
16203
|
+
{
|
|
16204
|
+
key: "pb.prop.widgetClassNames",
|
|
16205
|
+
text: "小部件的 CSS 类名"
|
|
16206
|
+
},
|
|
16182
16207
|
{
|
|
16183
16208
|
key: "pb.prop.partId",
|
|
16184
16209
|
text: "ID"
|
|
@@ -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-CBy4UB6h.js";
|
|
2
2
|
export {
|
|
3
3
|
B as BLOCK_TYPE,
|
|
4
4
|
b as Block,
|
|
@@ -7621,9 +7621,13 @@ ${_html.style}
|
|
|
7621
7621
|
const props = __props;
|
|
7622
7622
|
const pageBuilder = usePageBuilder();
|
|
7623
7623
|
const comp = vue.computed(() => pageBuilder.getCustomWidgetComponent(props.part));
|
|
7624
|
-
const bind = vue.computed(() =>
|
|
7625
|
-
|
|
7626
|
-
|
|
7624
|
+
const bind = vue.computed(() => {
|
|
7625
|
+
var _a;
|
|
7626
|
+
return {
|
|
7627
|
+
"class": ((_a = props.part.properties) == null ? void 0 : _a.widgetClassNames) || void 0,
|
|
7628
|
+
...props.part.properties || {}
|
|
7629
|
+
};
|
|
7630
|
+
});
|
|
7627
7631
|
return (_ctx, _cache) => {
|
|
7628
7632
|
return comp.value ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(comp.value), vue.normalizeProps(vue.mergeProps({ key: 0 }, bind.value)), null, 16)) : vue.createCommentVNode("", true);
|
|
7629
7633
|
};
|
|
@@ -12069,6 +12073,11 @@ ${_html.style}
|
|
|
12069
12073
|
caption: "pb.prop.style",
|
|
12070
12074
|
propertyType: "multiline-text"
|
|
12071
12075
|
},
|
|
12076
|
+
{
|
|
12077
|
+
propertyName: "widgetClassNames",
|
|
12078
|
+
caption: "pb.prop.widgetClassNames",
|
|
12079
|
+
propertyType: "text"
|
|
12080
|
+
},
|
|
12072
12081
|
{
|
|
12073
12082
|
propertyName: "partId",
|
|
12074
12083
|
caption: "pb.prop.partId",
|
|
@@ -15180,7 +15189,7 @@ ${_html.style}
|
|
|
15180
15189
|
},
|
|
15181
15190
|
{
|
|
15182
15191
|
key: "pb.prop.classNames",
|
|
15183
|
-
text: "Class Names"
|
|
15192
|
+
text: "CSS Class Names"
|
|
15184
15193
|
},
|
|
15185
15194
|
{
|
|
15186
15195
|
key: "pb.prop.inlineStyle",
|
|
@@ -15190,6 +15199,10 @@ ${_html.style}
|
|
|
15190
15199
|
key: "pb.prop.style",
|
|
15191
15200
|
text: "CSS Style"
|
|
15192
15201
|
},
|
|
15202
|
+
{
|
|
15203
|
+
key: "pb.prop.widgetClassNames",
|
|
15204
|
+
text: "Widget Class Names"
|
|
15205
|
+
},
|
|
15193
15206
|
{
|
|
15194
15207
|
key: "pb.prop.partId",
|
|
15195
15208
|
text: "ID"
|
|
@@ -15510,7 +15523,7 @@ ${_html.style}
|
|
|
15510
15523
|
},
|
|
15511
15524
|
{
|
|
15512
15525
|
key: "pb.prop.classNames",
|
|
15513
|
-
text: "
|
|
15526
|
+
text: "CSS クラス"
|
|
15514
15527
|
},
|
|
15515
15528
|
{
|
|
15516
15529
|
key: "pb.prop.inlineStyle",
|
|
@@ -15520,6 +15533,10 @@ ${_html.style}
|
|
|
15520
15533
|
key: "pb.prop.style",
|
|
15521
15534
|
text: "CSS スタイル"
|
|
15522
15535
|
},
|
|
15536
|
+
{
|
|
15537
|
+
key: "pb.prop.widgetClassNames",
|
|
15538
|
+
text: "ウィジェットの CSS クラス"
|
|
15539
|
+
},
|
|
15523
15540
|
{
|
|
15524
15541
|
key: "pb.prop.partId",
|
|
15525
15542
|
text: "ID"
|
|
@@ -15850,6 +15867,10 @@ ${_html.style}
|
|
|
15850
15867
|
key: "pb.prop.style",
|
|
15851
15868
|
text: "CSS 스타일"
|
|
15852
15869
|
},
|
|
15870
|
+
{
|
|
15871
|
+
key: "pb.prop.widgetClassNames",
|
|
15872
|
+
text: "위젯 CSS 클래스"
|
|
15873
|
+
},
|
|
15853
15874
|
{
|
|
15854
15875
|
key: "pb.prop.partId",
|
|
15855
15876
|
text: "ID"
|
|
@@ -16170,7 +16191,7 @@ ${_html.style}
|
|
|
16170
16191
|
},
|
|
16171
16192
|
{
|
|
16172
16193
|
key: "pb.prop.classNames",
|
|
16173
|
-
text: "类名"
|
|
16194
|
+
text: "CSS 类名"
|
|
16174
16195
|
},
|
|
16175
16196
|
{
|
|
16176
16197
|
key: "pb.prop.inlineStyle",
|
|
@@ -16180,6 +16201,10 @@ ${_html.style}
|
|
|
16180
16201
|
key: "pb.prop.style",
|
|
16181
16202
|
text: "CSS 样式"
|
|
16182
16203
|
},
|
|
16204
|
+
{
|
|
16205
|
+
key: "pb.prop.widgetClassNames",
|
|
16206
|
+
text: "小部件的 CSS 类名"
|
|
16207
|
+
},
|
|
16183
16208
|
{
|
|
16184
16209
|
key: "pb.prop.partId",
|
|
16185
16210
|
text: "ID"
|
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.74",
|
|
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.74"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/node": "^20.12.7",
|