@g1cloud/page-builder-editor 1.0.0-alpha.48 → 1.0.0-alpha.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/page-builder-editor.scss +12 -0
- package/dist/{PbHtmlEditorModal-dDR38rNy.js → PbHtmlEditorModal-C0MLYY66.js} +22 -16
- package/dist/{PbPropertyEditorBoolean-C7-iSAtn.js → PbPropertyEditorBoolean-c5CNiTpt.js} +1 -1
- package/dist/{PbPropertyEditorColor-DBbxEdkH.js → PbPropertyEditorColor-BUL8pwCO.js} +8 -9
- package/dist/{PbPropertyEditorHtml-BjSqb8Am.js → PbPropertyEditorHtml-DbKD33DT.js} +12 -9
- package/dist/{PbPropertyEditorImage-jJdSp8xy.js → PbPropertyEditorImage-S-uagL32.js} +9 -8
- package/dist/{PbPropertyEditorMultilineText-CNo8G0a2.js → PbPropertyEditorMultilineText-DgNTsKkr.js} +6 -7
- package/dist/{PbPropertyEditorNumber-TTgo0zbQ.js → PbPropertyEditorNumber-B76ArSb5.js} +5 -6
- package/dist/{PbPropertyEditorReadonlyText-Dgp_AVOD.js → PbPropertyEditorReadonlyText-BJ5qx69O.js} +6 -6
- package/dist/{PbPropertyEditorSelect-CWedbXJI.js → PbPropertyEditorSelect-B5sfulvx.js} +5 -6
- package/dist/{PbPropertyEditorText-BjR3sF3V.js → PbPropertyEditorText-Wd0rvpIX.js} +6 -7
- package/dist/{PbPropertyEditorYoutube-Dc9nSh5q.js → PbPropertyEditorYoutube-BkXWRMx_.js} +9 -8
- package/dist/{PbScreenSelectModal-CnI1IsvW.js → PbScreenSelectModal-57LXAzjs.js} +13 -10
- package/dist/{PbWidgetAddModal-CjMB43KS.js → PbWidgetAddModal-Br2XZusB.js} +2 -2
- package/dist/{PbYoutubeModal-8vQ_IPA0.js → PbYoutubeModal-CU8sClMD.js} +19 -14
- package/dist/components/sidebar/property/PbPropertyGroupEditorMedia.vue.d.ts +6 -6
- package/dist/{index-DzzU6Uxn.js → index-Cuvfu0JI.js} +1602 -250
- package/dist/model/command.d.ts +24 -25
- package/dist/page-builder-editor.js +1 -1
- package/dist/page-builder-editor.umd.cjs +1865 -500
- package/dist/text/text.d.ts +1 -0
- package/package.json +3 -3
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, onMounted, onBeforeUnmount, openBlock, createBlock, unref, withCtx, createElementVNode, createVNode, createSlots, renderList, normalizeStyle } from "vue";
|
|
2
|
-
import { useModalHandle, waitDuring, BSModalFrame, BSTabSheet, BSSelect, BSCodeEditor } from "@g1cloud/bluesea";
|
|
1
|
+
import { defineComponent, ref, computed, onMounted, onBeforeUnmount, openBlock, createBlock, unref, withCtx, createElementVNode, createVNode, createSlots, renderList, withDirectives, normalizeStyle } from "vue";
|
|
2
|
+
import { useModalHandle, waitDuring, BSModalFrame, BSTabSheet, vT, BSSelect, BSCodeEditor } from "@g1cloud/bluesea";
|
|
3
3
|
const _hoisted_1 = { class: "bs-layout-vertical flex-grow-1 h-full" };
|
|
4
4
|
const _hoisted_2 = { class: "bs-layout-horizontal h-full pt-8" };
|
|
5
5
|
const _hoisted_3 = { class: "preview" };
|
|
6
6
|
const _hoisted_4 = { class: "bs-layout-vertical w-full h-full" };
|
|
7
7
|
const _hoisted_5 = { class: "bs-layout-horizontal pb-4 align-items-center justify-content-between" };
|
|
8
|
-
const _hoisted_6 = { class: "
|
|
9
|
-
const _hoisted_7 =
|
|
10
|
-
const _hoisted_8 =
|
|
8
|
+
const _hoisted_6 = { class: "title pb-4" };
|
|
9
|
+
const _hoisted_7 = { class: "content flex-grow-1 overflow-y-hidden" };
|
|
10
|
+
const _hoisted_8 = ["srcdoc"];
|
|
11
|
+
const _hoisted_9 = { class: "editor bs-layout-vertical pl-8 h-full" };
|
|
12
|
+
const _hoisted_10 = { class: "bs-layout-horizontal justify-content-center" };
|
|
11
13
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
14
|
__name: "PbHtmlEditorModal",
|
|
13
15
|
props: {
|
|
@@ -43,8 +45,8 @@ ${_html.tags}` : "";
|
|
|
43
45
|
return data;
|
|
44
46
|
});
|
|
45
47
|
const editorTabs = [
|
|
46
|
-
{ tabId: "tags", caption: "
|
|
47
|
-
{ tabId: "style", caption: "
|
|
48
|
+
{ tabId: "tags", caption: { key: "pb.modal.htmlEditor.tags" } },
|
|
49
|
+
{ tabId: "style", caption: { key: "pb.modal.htmlEditor.style" } }
|
|
48
50
|
];
|
|
49
51
|
const editorTabId = ref("tags");
|
|
50
52
|
const updateTags = (locale, value) => {
|
|
@@ -92,8 +94,8 @@ ${_html.tags}` : "";
|
|
|
92
94
|
});
|
|
93
95
|
return (_ctx, _cache) => {
|
|
94
96
|
return openBlock(), createBlock(unref(BSModalFrame), {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
+
title: { key: "pb.modal.htmlEditor.title" },
|
|
98
|
+
class: "pb-html-editor-modal"
|
|
97
99
|
}, {
|
|
98
100
|
default: withCtx(() => [
|
|
99
101
|
createElementVNode("div", _hoisted_1, [
|
|
@@ -114,7 +116,9 @@ ${_html.tags}` : "";
|
|
|
114
116
|
createElementVNode("div", _hoisted_3, [
|
|
115
117
|
createElementVNode("div", _hoisted_4, [
|
|
116
118
|
createElementVNode("div", _hoisted_5, [
|
|
117
|
-
|
|
119
|
+
withDirectives(createElementVNode("div", _hoisted_6, null, 512), [
|
|
120
|
+
[unref(vT), { key: "pb.modal.htmlEditor.preview" }]
|
|
121
|
+
]),
|
|
118
122
|
createVNode(unref(BSSelect), {
|
|
119
123
|
modelValue: previewWidth.value,
|
|
120
124
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => previewWidth.value = $event),
|
|
@@ -123,15 +127,15 @@ ${_html.tags}` : "";
|
|
|
123
127
|
"view-model": false
|
|
124
128
|
}, null, 8, ["modelValue", "label-provider"])
|
|
125
129
|
]),
|
|
126
|
-
createElementVNode("div",
|
|
130
|
+
createElementVNode("div", _hoisted_7, [
|
|
127
131
|
createElementVNode("iframe", {
|
|
128
132
|
srcdoc: preview.value[locale],
|
|
129
133
|
style: normalizeStyle(previewStyle.value)
|
|
130
|
-
}, null, 12,
|
|
134
|
+
}, null, 12, _hoisted_8)
|
|
131
135
|
])
|
|
132
136
|
])
|
|
133
137
|
]),
|
|
134
|
-
createElementVNode("div",
|
|
138
|
+
createElementVNode("div", _hoisted_9, [
|
|
135
139
|
createVNode(unref(BSTabSheet), {
|
|
136
140
|
"tab-id": editorTabId.value,
|
|
137
141
|
"onUpdate:tabId": [
|
|
@@ -170,11 +174,13 @@ ${_html.tags}` : "";
|
|
|
170
174
|
])
|
|
171
175
|
]),
|
|
172
176
|
buttons: withCtx(() => [
|
|
173
|
-
createElementVNode("div",
|
|
174
|
-
createElementVNode("button", {
|
|
177
|
+
createElementVNode("div", _hoisted_10, [
|
|
178
|
+
withDirectives(createElementVNode("button", {
|
|
175
179
|
class: "mr-4",
|
|
176
180
|
onClick: ok
|
|
177
|
-
},
|
|
181
|
+
}, null, 512), [
|
|
182
|
+
[unref(vT), { key: "pb.button.ok" }]
|
|
183
|
+
])
|
|
178
184
|
])
|
|
179
185
|
]),
|
|
180
186
|
_: 1
|
|
@@ -26,7 +26,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
26
26
|
_cache[0] || (_cache[0] = ($event) => booleanValue.value = $event),
|
|
27
27
|
emitUpdatePropertyValue
|
|
28
28
|
],
|
|
29
|
-
label: _ctx.property.caption
|
|
29
|
+
label: { key: _ctx.property.caption }
|
|
30
30
|
}, null, 8, ["modelValue", "label"])
|
|
31
31
|
])
|
|
32
32
|
]);
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createElementBlock, createElementVNode,
|
|
2
|
-
import { BSTextInput } from "@g1cloud/bluesea";
|
|
3
|
-
import { P as PbColorPicker } from "./index-
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, createElementVNode, withDirectives, unref, createVNode } from "vue";
|
|
2
|
+
import { vT, BSTextInput } from "@g1cloud/bluesea";
|
|
3
|
+
import { P as PbColorPicker } from "./index-Cuvfu0JI.js";
|
|
4
4
|
const _hoisted_1 = { class: "property-editor property-editor-color" };
|
|
5
5
|
const _hoisted_2 = { class: "title" };
|
|
6
|
-
const _hoisted_3 =
|
|
7
|
-
const _hoisted_4 = { class: "bs-layout-horizontal flex-align-center color" };
|
|
6
|
+
const _hoisted_3 = { class: "bs-layout-horizontal flex-align-center color" };
|
|
8
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
8
|
__name: "PbPropertyEditorColor",
|
|
10
9
|
props: {
|
|
@@ -27,11 +26,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
27
26
|
return (_ctx, _cache) => {
|
|
28
27
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
29
28
|
createElementVNode("div", _hoisted_2, [
|
|
30
|
-
createElementVNode("label",
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
withDirectives(createElementVNode("label", null, null, 512), [
|
|
30
|
+
[unref(vT), { key: _ctx.property.caption }]
|
|
31
|
+
])
|
|
33
32
|
]),
|
|
34
|
-
createElementVNode("div",
|
|
33
|
+
createElementVNode("div", _hoisted_3, [
|
|
35
34
|
createVNode(PbColorPicker, {
|
|
36
35
|
value: _ctx.value,
|
|
37
36
|
"hide-delete": "",
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createElementBlock, createElementVNode,
|
|
2
|
-
import { useModal } from "@g1cloud/bluesea";
|
|
3
|
-
import { u as usePageBuilderEditor } from "./index-
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, createElementVNode, withDirectives, unref, createTextVNode, defineAsyncComponent } from "vue";
|
|
2
|
+
import { useModal, vT } from "@g1cloud/bluesea";
|
|
3
|
+
import { u as usePageBuilderEditor } from "./index-Cuvfu0JI.js";
|
|
4
4
|
const _hoisted_1 = { class: "property-editor property-editor-image flex-align-center" };
|
|
5
5
|
const _hoisted_2 = { class: "title" };
|
|
6
|
-
const _hoisted_3 = ["textContent"];
|
|
7
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
7
|
__name: "PbPropertyEditorHtml",
|
|
9
8
|
props: {
|
|
@@ -20,7 +19,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
20
19
|
const locales = pageBuilder.getLocales();
|
|
21
20
|
const localeTabs = locales.map((v) => ({ tabId: `tab-${v}`, caption: v }));
|
|
22
21
|
modal.openModal({
|
|
23
|
-
component: defineAsyncComponent(() => import("./PbHtmlEditorModal-
|
|
22
|
+
component: defineAsyncComponent(() => import("./PbHtmlEditorModal-C0MLYY66.js")),
|
|
24
23
|
style: {
|
|
25
24
|
width: "80%",
|
|
26
25
|
height: "80%",
|
|
@@ -43,12 +42,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
43
42
|
return (_ctx, _cache) => {
|
|
44
43
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
45
44
|
createElementVNode("div", _hoisted_2, [
|
|
46
|
-
createElementVNode("label",
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
withDirectives(createElementVNode("label", null, null, 512), [
|
|
46
|
+
[unref(vT), { key: _ctx.property.caption }]
|
|
47
|
+
])
|
|
49
48
|
]),
|
|
50
49
|
createElementVNode("div", null, [
|
|
51
|
-
|
|
50
|
+
withDirectives((openBlock(), createElementBlock("button", { onClick: editHtml }, _cache[0] || (_cache[0] = [
|
|
51
|
+
createTextVNode("Edit HTML")
|
|
52
|
+
]))), [
|
|
53
|
+
[unref(vT), { key: "pb.prop.editHtml" }]
|
|
54
|
+
])
|
|
52
55
|
])
|
|
53
56
|
]);
|
|
54
57
|
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createElementBlock, createElementVNode,
|
|
2
|
-
import { u as usePageBuilderEditor } from "./index-
|
|
3
|
-
import { useModal } from "@g1cloud/bluesea";
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, createElementVNode, withDirectives, unref } from "vue";
|
|
2
|
+
import { u as usePageBuilderEditor } from "./index-Cuvfu0JI.js";
|
|
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" };
|
|
6
|
-
const _hoisted_3 = ["textContent"];
|
|
7
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
7
|
__name: "PbPropertyEditorImage",
|
|
9
8
|
props: {
|
|
@@ -26,12 +25,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
26
25
|
return (_ctx, _cache) => {
|
|
27
26
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
28
27
|
createElementVNode("div", _hoisted_2, [
|
|
29
|
-
createElementVNode("label",
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
withDirectives(createElementVNode("label", null, null, 512), [
|
|
29
|
+
[unref(vT), { key: _ctx.property.caption }]
|
|
30
|
+
])
|
|
32
31
|
]),
|
|
33
32
|
createElementVNode("div", null, [
|
|
34
|
-
createElementVNode("button", { onClick: selectImage },
|
|
33
|
+
withDirectives(createElementVNode("button", { onClick: selectImage }, null, 512), [
|
|
34
|
+
[unref(vT), { key: "pb.prop.selectImage" }]
|
|
35
|
+
])
|
|
35
36
|
])
|
|
36
37
|
]);
|
|
37
38
|
};
|
package/dist/{PbPropertyEditorMultilineText-CNo8G0a2.js → PbPropertyEditorMultilineText-DgNTsKkr.js}
RENAMED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { defineComponent, computed, openBlock, createElementBlock, createElementVNode,
|
|
2
|
-
import { BSMultiLangTextArea, BSTextArea } from "@g1cloud/bluesea";
|
|
3
|
-
import { u as usePageBuilderEditor } from "./index-
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, createElementVNode, withDirectives, unref, createBlock } from "vue";
|
|
2
|
+
import { vT, BSMultiLangTextArea, BSTextArea } from "@g1cloud/bluesea";
|
|
3
|
+
import { u as usePageBuilderEditor } from "./index-Cuvfu0JI.js";
|
|
4
4
|
const _hoisted_1 = { class: "property-editor property-editor-multiline-text" };
|
|
5
5
|
const _hoisted_2 = { class: "title" };
|
|
6
|
-
const _hoisted_3 = ["textContent"];
|
|
7
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
7
|
__name: "PbPropertyEditorMultilineText",
|
|
9
8
|
props: {
|
|
@@ -32,9 +31,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
32
31
|
return (_ctx, _cache) => {
|
|
33
32
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
34
33
|
createElementVNode("div", _hoisted_2, [
|
|
35
|
-
createElementVNode("label",
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
withDirectives(createElementVNode("label", null, null, 512), [
|
|
35
|
+
[unref(vT), { key: _ctx.property.caption }]
|
|
36
|
+
])
|
|
38
37
|
]),
|
|
39
38
|
createElementVNode("div", null, [
|
|
40
39
|
_ctx.property.multiLang ? (openBlock(), createBlock(unref(BSMultiLangTextArea), {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { defineComponent, computed, openBlock, createElementBlock, createElementVNode,
|
|
2
|
-
import { BSNumberInput } from "@g1cloud/bluesea";
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, createElementVNode, withDirectives, unref, createVNode } from "vue";
|
|
2
|
+
import { vT, BSNumberInput } from "@g1cloud/bluesea";
|
|
3
3
|
const _hoisted_1 = { class: "property-editor property-editor-number flex-align-center" };
|
|
4
4
|
const _hoisted_2 = { class: "title" };
|
|
5
|
-
const _hoisted_3 = ["textContent"];
|
|
6
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
6
|
__name: "PbPropertyEditorNumber",
|
|
8
7
|
props: {
|
|
@@ -28,9 +27,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
28
27
|
return (_ctx, _cache) => {
|
|
29
28
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
30
29
|
createElementVNode("div", _hoisted_2, [
|
|
31
|
-
createElementVNode("label",
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
withDirectives(createElementVNode("label", null, null, 512), [
|
|
31
|
+
[unref(vT), { key: _ctx.property.caption }]
|
|
32
|
+
])
|
|
34
33
|
]),
|
|
35
34
|
createElementVNode("div", null, [
|
|
36
35
|
createVNode(unref(BSNumberInput), {
|
package/dist/{PbPropertyEditorReadonlyText-Dgp_AVOD.js → PbPropertyEditorReadonlyText-BJ5qx69O.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createElementBlock, createElementVNode, toDisplayString } from "vue";
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, createElementVNode, withDirectives, unref, toDisplayString } from "vue";
|
|
2
|
+
import { vT } from "@g1cloud/bluesea";
|
|
2
3
|
const _hoisted_1 = { class: "property-editor property-editor-readonly-text" };
|
|
3
4
|
const _hoisted_2 = { class: "title" };
|
|
4
5
|
const _hoisted_3 = ["textContent"];
|
|
5
|
-
const _hoisted_4 = ["textContent"];
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
7
|
__name: "PbPropertyEditorReadonlyText",
|
|
8
8
|
props: {
|
|
@@ -13,14 +13,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13
13
|
return (_ctx, _cache) => {
|
|
14
14
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
15
15
|
createElementVNode("div", _hoisted_2, [
|
|
16
|
-
createElementVNode("label",
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
withDirectives(createElementVNode("label", null, null, 512), [
|
|
17
|
+
[unref(vT), { key: _ctx.property.caption }]
|
|
18
|
+
])
|
|
19
19
|
]),
|
|
20
20
|
createElementVNode("div", null, [
|
|
21
21
|
createElementVNode("div", {
|
|
22
22
|
textContent: toDisplayString(_ctx.value)
|
|
23
|
-
}, null, 8,
|
|
23
|
+
}, null, 8, _hoisted_3)
|
|
24
24
|
])
|
|
25
25
|
]);
|
|
26
26
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { defineComponent, computed, openBlock, createElementBlock, createElementVNode,
|
|
2
|
-
import { BSSelect } from "@g1cloud/bluesea";
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, createElementVNode, withDirectives, unref, createVNode } from "vue";
|
|
2
|
+
import { vT, BSSelect } from "@g1cloud/bluesea";
|
|
3
3
|
const _hoisted_1 = { class: "property-editor property-editor-select flex-align-center" };
|
|
4
4
|
const _hoisted_2 = { class: "title" };
|
|
5
|
-
const _hoisted_3 = ["textContent"];
|
|
6
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
6
|
__name: "PbPropertyEditorSelect",
|
|
8
7
|
props: {
|
|
@@ -24,9 +23,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
23
|
return (_ctx, _cache) => {
|
|
25
24
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
26
25
|
createElementVNode("div", _hoisted_2, [
|
|
27
|
-
createElementVNode("label",
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
withDirectives(createElementVNode("label", null, null, 512), [
|
|
27
|
+
[unref(vT), { key: _ctx.property.caption }]
|
|
28
|
+
])
|
|
30
29
|
]),
|
|
31
30
|
createElementVNode("div", null, [
|
|
32
31
|
createVNode(unref(BSSelect), {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { defineComponent, computed, openBlock, createElementBlock, createElementVNode,
|
|
2
|
-
import { BSMultiLangTextInput, BSTextInput } from "@g1cloud/bluesea";
|
|
3
|
-
import { u as usePageBuilderEditor } from "./index-
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, createElementVNode, withDirectives, unref, createBlock } from "vue";
|
|
2
|
+
import { vT, BSMultiLangTextInput, BSTextInput } from "@g1cloud/bluesea";
|
|
3
|
+
import { u as usePageBuilderEditor } from "./index-Cuvfu0JI.js";
|
|
4
4
|
const _hoisted_1 = { class: "property-editor property-editor-text flex-align-center" };
|
|
5
5
|
const _hoisted_2 = { class: "title" };
|
|
6
|
-
const _hoisted_3 = ["textContent"];
|
|
7
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
7
|
__name: "PbPropertyEditorText",
|
|
9
8
|
props: {
|
|
@@ -24,9 +23,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
23
|
return (_ctx, _cache) => {
|
|
25
24
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
26
25
|
createElementVNode("div", _hoisted_2, [
|
|
27
|
-
createElementVNode("label",
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
withDirectives(createElementVNode("label", null, null, 512), [
|
|
27
|
+
[unref(vT), { key: _ctx.property.caption }]
|
|
28
|
+
])
|
|
30
29
|
]),
|
|
31
30
|
createElementVNode("div", null, [
|
|
32
31
|
_ctx.property.multiLang ? (openBlock(), createBlock(unref(BSMultiLangTextInput), {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createElementBlock, createElementVNode,
|
|
2
|
-
import { useModal } from "@g1cloud/bluesea";
|
|
3
|
-
import { s as selectYoutubeVideo } from "./index-
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, createElementVNode, withDirectives, unref } from "vue";
|
|
2
|
+
import { useModal, vT } from "@g1cloud/bluesea";
|
|
3
|
+
import { s as selectYoutubeVideo } from "./index-Cuvfu0JI.js";
|
|
4
4
|
const _hoisted_1 = { class: "property-editor property-editor-image flex-align-center" };
|
|
5
5
|
const _hoisted_2 = { class: "title" };
|
|
6
|
-
const _hoisted_3 = ["textContent"];
|
|
7
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
7
|
__name: "PbPropertyEditorYoutube",
|
|
9
8
|
props: {
|
|
@@ -23,12 +22,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
23
22
|
return (_ctx, _cache) => {
|
|
24
23
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
25
24
|
createElementVNode("div", _hoisted_2, [
|
|
26
|
-
createElementVNode("label",
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
withDirectives(createElementVNode("label", null, null, 512), [
|
|
26
|
+
[unref(vT), { key: _ctx.property.caption }]
|
|
27
|
+
])
|
|
29
28
|
]),
|
|
30
29
|
createElementVNode("div", null, [
|
|
31
|
-
createElementVNode("button", { onClick: selectVideo },
|
|
30
|
+
withDirectives(createElementVNode("button", { onClick: selectVideo }, null, 512), [
|
|
31
|
+
[unref(vT), { key: "pb.prop.selectVideo" }]
|
|
32
|
+
])
|
|
32
33
|
])
|
|
33
34
|
]);
|
|
34
35
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { defineComponent, ref, openBlock, createBlock, unref, withCtx, createElementVNode, createVNode } from "vue";
|
|
2
|
-
import { useModalHandle, BSModalFrame, BSRadioButton, BSButton } from "@g1cloud/bluesea";
|
|
1
|
+
import { defineComponent, ref, openBlock, createBlock, unref, withCtx, createElementVNode, withDirectives, createVNode } from "vue";
|
|
2
|
+
import { useModalHandle, BSModalFrame, vT, BSRadioButton, BSButton } from "@g1cloud/bluesea";
|
|
3
3
|
const _hoisted_1 = { class: "mb-16" };
|
|
4
|
-
const _hoisted_2 = { class: "
|
|
4
|
+
const _hoisted_2 = { class: "mr-8" };
|
|
5
|
+
const _hoisted_3 = { class: "text-right" };
|
|
5
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
7
|
__name: "PbScreenSelectModal",
|
|
7
8
|
emits: ["select"],
|
|
@@ -17,25 +18,27 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
17
18
|
modalHandle.close();
|
|
18
19
|
};
|
|
19
20
|
return (_ctx, _cache) => {
|
|
20
|
-
return openBlock(), createBlock(unref(BSModalFrame), { title:
|
|
21
|
+
return openBlock(), createBlock(unref(BSModalFrame), { title: { key: "pb.modal.screenSelect.title" } }, {
|
|
21
22
|
default: withCtx(() => [
|
|
22
23
|
createElementVNode("div", null, [
|
|
23
24
|
createElementVNode("div", _hoisted_1, [
|
|
24
|
-
|
|
25
|
+
withDirectives(createElementVNode("label", _hoisted_2, null, 512), [
|
|
26
|
+
[unref(vT), { key: "pb.modal.screenSelect.message" }]
|
|
27
|
+
]),
|
|
25
28
|
createElementVNode("div", null, [
|
|
26
29
|
createVNode(unref(BSRadioButton), {
|
|
27
30
|
modelValue: selection.value,
|
|
28
31
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selection.value = $event),
|
|
29
32
|
"item-value": "0",
|
|
30
|
-
label: "
|
|
33
|
+
label: { key: "pb.modal.screenSelect.mobile" },
|
|
31
34
|
name: "mobile"
|
|
32
35
|
}, null, 8, ["modelValue"]),
|
|
33
36
|
createVNode(unref(BSRadioButton), {
|
|
34
37
|
modelValue: selection.value,
|
|
35
38
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => selection.value = $event),
|
|
36
39
|
"item-value": "1",
|
|
40
|
+
label: { key: "pb.modal.screenSelect.pc" },
|
|
37
41
|
class: "ml-8",
|
|
38
|
-
label: "PC",
|
|
39
42
|
name: "pc"
|
|
40
43
|
}, null, 8, ["modelValue"])
|
|
41
44
|
])
|
|
@@ -43,14 +46,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
43
46
|
])
|
|
44
47
|
]),
|
|
45
48
|
buttons: withCtx(() => [
|
|
46
|
-
createElementVNode("div",
|
|
49
|
+
createElementVNode("div", _hoisted_3, [
|
|
47
50
|
createVNode(unref(BSButton), {
|
|
51
|
+
caption: { key: "pb.button.ok" },
|
|
48
52
|
"button-color": "blue",
|
|
49
|
-
caption: "OK",
|
|
50
53
|
onClick: ok
|
|
51
54
|
}),
|
|
52
55
|
createVNode(unref(BSButton), {
|
|
53
|
-
caption: "
|
|
56
|
+
caption: { key: "pb.button.cancel" },
|
|
54
57
|
class: "ml-8",
|
|
55
58
|
onClick: close
|
|
56
59
|
})
|
|
@@ -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-Cuvfu0JI.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"];
|
|
@@ -26,7 +26,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
26
26
|
modalHandle.close();
|
|
27
27
|
};
|
|
28
28
|
return (_ctx, _cache) => {
|
|
29
|
-
return openBlock(), createBlock(unref(BSModalFrame), { title:
|
|
29
|
+
return openBlock(), createBlock(unref(BSModalFrame), { title: { key: "pb.modal.addWidget.title" } }, {
|
|
30
30
|
default: withCtx(() => [
|
|
31
31
|
createElementVNode("div", _hoisted_1, [
|
|
32
32
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(widgetPartDefinitions), (group) => {
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { defineComponent, ref, openBlock, createBlock, unref, withCtx, createElementVNode, createVNode, createCommentVNode } from "vue";
|
|
2
|
-
import { useModalHandle, BSModalFrame, BSTextInput } from "@g1cloud/bluesea";
|
|
1
|
+
import { defineComponent, ref, openBlock, createBlock, unref, withCtx, createElementVNode, withDirectives, createVNode, createCommentVNode } from "vue";
|
|
2
|
+
import { useModalHandle, BSModalFrame, vT, BSTextInput } from "@g1cloud/bluesea";
|
|
3
3
|
import YouTube from "vue3-youtube";
|
|
4
4
|
const _hoisted_1 = { class: "bs-layout-vertical flex-grow-1 h-full" };
|
|
5
|
-
const _hoisted_2 = { class: "
|
|
5
|
+
const _hoisted_2 = { class: "pt-8" };
|
|
6
|
+
const _hoisted_3 = { class: "w-480 h-360 border-w-1 border border-gray" };
|
|
7
|
+
const _hoisted_4 = { class: "bs-layout-horizontal justify-content-center" };
|
|
6
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
9
|
__name: "PbYoutubeModal",
|
|
8
10
|
props: {
|
|
@@ -23,22 +25,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
23
25
|
};
|
|
24
26
|
return (_ctx, _cache) => {
|
|
25
27
|
return openBlock(), createBlock(unref(BSModalFrame), {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
+
title: { key: "pb.modal.youtube.title" },
|
|
29
|
+
class: "pb-youtube-modal"
|
|
28
30
|
}, {
|
|
29
31
|
default: withCtx(() => [
|
|
30
32
|
createElementVNode("div", _hoisted_1, [
|
|
31
|
-
|
|
33
|
+
withDirectives(createElementVNode("div", null, null, 512), [
|
|
34
|
+
[unref(vT), { key: "pb.modal.youtube.url" }]
|
|
35
|
+
]),
|
|
32
36
|
createVNode(unref(BSTextInput), {
|
|
33
37
|
"model-value": url.value,
|
|
34
38
|
width: "100%",
|
|
35
39
|
"onUpdate:modelValue": updateUrl
|
|
36
40
|
}, null, 8, ["model-value"]),
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
createElementVNode("div", _hoisted_2, [
|
|
41
|
+
withDirectives(createElementVNode("div", _hoisted_2, null, 512), [
|
|
42
|
+
[unref(vT), { key: "pb.modal.youtube.preview" }]
|
|
43
|
+
]),
|
|
44
|
+
createElementVNode("div", _hoisted_3, [
|
|
42
45
|
url.value ? (openBlock(), createBlock(unref(YouTube), {
|
|
43
46
|
key: 0,
|
|
44
47
|
ref: "youtube",
|
|
@@ -51,11 +54,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
51
54
|
])
|
|
52
55
|
]),
|
|
53
56
|
buttons: withCtx(() => [
|
|
54
|
-
createElementVNode("div",
|
|
55
|
-
createElementVNode("button", {
|
|
57
|
+
createElementVNode("div", _hoisted_4, [
|
|
58
|
+
withDirectives(createElementVNode("button", {
|
|
56
59
|
class: "mr-4",
|
|
57
60
|
onClick: ok
|
|
58
|
-
},
|
|
61
|
+
}, null, 512), [
|
|
62
|
+
[unref(vT), { key: "pb.button.ok" }]
|
|
63
|
+
])
|
|
59
64
|
])
|
|
60
65
|
]),
|
|
61
66
|
_: 1
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { IPart } from '@g1cloud/page-builder-viewer';
|
|
2
|
+
import { PartPropertyGroup } from '../../../model/part-property.ts';
|
|
3
3
|
|
|
4
4
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
group: PartPropertyGroup;
|
|
6
|
+
selectedParts: IPart[];
|
|
7
7
|
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
group: PartPropertyGroup;
|
|
9
|
+
selectedParts: IPart[];
|
|
10
10
|
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
11
11
|
export default _default;
|
|
12
12
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|