@g1cloud/page-builder-editor 1.0.0-alpha.81 → 1.0.0-alpha.82
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 +10 -9
- package/dist/{PbPropertyEditorColor-D1Et94Ef.js → PbPropertyEditorColor-DePuGm1f.js} +1 -1
- package/dist/{PbPropertyEditorCssLength-vEqAkXLy.js → PbPropertyEditorCssLength-BuiZknhP.js} +1 -1
- package/dist/{PbPropertyEditorHtml-BD1ir-xW.js → PbPropertyEditorHtml-BidGVlHZ.js} +1 -1
- package/dist/{PbPropertyEditorImage-CrtSHsie.js → PbPropertyEditorImage-D1EGzUpm.js} +1 -1
- package/dist/{PbPropertyEditorMultilineText-v01RFbU-.js → PbPropertyEditorMultilineText-CpnjVtrK.js} +1 -1
- package/dist/{PbPropertyEditorText-CDohV0Yq.js → PbPropertyEditorText-CxgIRMsk.js} +1 -1
- package/dist/{PbPropertyEditorYoutube-gZIWmCbS.js → PbPropertyEditorYoutube-CmAv_b-p.js} +1 -1
- package/dist/{PbWidgetAddModal-CetSlzPe.js → PbWidgetAddModal-Dj6lOg6c.js} +1 -1
- package/dist/{index-tTR7GhuX.js → index-CV7ELqHT.js} +24 -25
- package/dist/page-builder-editor.js +1 -1
- package/dist/page-builder-editor.umd.cjs +16 -17
- package/dist/style.css +10 -9
- package/package.json +2 -2
- package/scss/canvas.scss +1 -0
- package/scss/page-builder-editor.scss +7 -7
- package/scss/property-editor-youtube.scss +2 -2
- package/scss/property-localpart.scss +2 -2
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
.pb-editor .pb-editor-body .pb-canvas-wrapper {
|
|
48
48
|
background-color: var(--color-canvas-frame-bg);
|
|
49
49
|
border-top: 1px solid var(--color-canvas-frame-bg);
|
|
50
|
+
border-bottom: 1px solid var(--color-canvas-frame-bg);
|
|
50
51
|
flex-grow: 1;
|
|
51
52
|
min-width: 0;
|
|
52
53
|
width: 0;
|
|
@@ -266,13 +267,13 @@
|
|
|
266
267
|
font-weight: 600;
|
|
267
268
|
}
|
|
268
269
|
.pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .property-editor-local-part button {
|
|
269
|
-
color:
|
|
270
|
+
color: var(--white);
|
|
270
271
|
border: none;
|
|
271
272
|
padding: 0 4px;
|
|
272
273
|
cursor: pointer;
|
|
273
274
|
line-height: 1;
|
|
274
275
|
height: 24px;
|
|
275
|
-
background-color:
|
|
276
|
+
background-color: var(--primary);
|
|
276
277
|
}
|
|
277
278
|
.pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .property-editor-local-part .input-area {
|
|
278
279
|
height: 24px;
|
|
@@ -301,14 +302,14 @@
|
|
|
301
302
|
display: inline-block;
|
|
302
303
|
width: 100px;
|
|
303
304
|
height: 1px;
|
|
304
|
-
background: red;
|
|
305
|
+
background: var(--red);
|
|
305
306
|
position: absolute;
|
|
306
307
|
top: 50%;
|
|
307
308
|
left: 50%;
|
|
308
309
|
transform: translate(-50%, -50%) rotate(45deg);
|
|
309
310
|
}
|
|
310
311
|
.pb-editor .pb-editor-body .pb-color-picker .buttons button.picker-button {
|
|
311
|
-
border: 1px solid
|
|
312
|
+
border: 1px solid var(--border);
|
|
312
313
|
}
|
|
313
314
|
.pb-editor .pb-editor-body .pb-color-picker .buttons button i {
|
|
314
315
|
font-size: 1.4rem;
|
|
@@ -337,7 +338,7 @@
|
|
|
337
338
|
width: 50%;
|
|
338
339
|
}
|
|
339
340
|
.pb-html-editor-modal .preview .content {
|
|
340
|
-
border: solid 1px
|
|
341
|
+
border: solid 1px var(--border);
|
|
341
342
|
}
|
|
342
343
|
.pb-html-editor-modal .preview .content iframe {
|
|
343
344
|
width: 100%;
|
|
@@ -362,24 +363,24 @@
|
|
|
362
363
|
text-align: center;
|
|
363
364
|
}
|
|
364
365
|
.pb-html-editor-modal .buttons button {
|
|
365
|
-
color:
|
|
366
|
+
color: var(--white);
|
|
366
367
|
border: none;
|
|
367
368
|
padding: 4px 12px;
|
|
368
369
|
cursor: pointer;
|
|
369
370
|
line-height: 1;
|
|
370
371
|
height: 28px;
|
|
371
|
-
background-color:
|
|
372
|
+
background-color: var(--primary);
|
|
372
373
|
}
|
|
373
374
|
|
|
374
375
|
.pb-youtube-modal .flex-grow-1.overflow-auto {
|
|
375
376
|
overflow: hidden !important;
|
|
376
377
|
}
|
|
377
378
|
.pb-youtube-modal button {
|
|
378
|
-
color:
|
|
379
|
+
color: var(--white);
|
|
379
380
|
border: none;
|
|
380
381
|
padding: 4px 12px;
|
|
381
382
|
cursor: pointer;
|
|
382
383
|
line-height: 1;
|
|
383
384
|
height: 28px;
|
|
384
|
-
background-color:
|
|
385
|
+
background-color: var(--primary);
|
|
385
386
|
}
|
|
@@ -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-CV7ELqHT.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-vEqAkXLy.js → PbPropertyEditorCssLength-BuiZknhP.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-CV7ELqHT.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-CV7ELqHT.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-CV7ELqHT.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-v01RFbU-.js → PbPropertyEditorMultilineText-CpnjVtrK.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-CV7ELqHT.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-CV7ELqHT.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-CV7ELqHT.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-CV7ELqHT.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"];
|
|
@@ -7046,9 +7046,11 @@ const _sfc_main$8$1 = /* @__PURE__ */ defineComponent({
|
|
|
7046
7046
|
return (_a = props.part.properties) == null ? void 0 : _a.media;
|
|
7047
7047
|
});
|
|
7048
7048
|
const altText = computed(() => {
|
|
7049
|
-
|
|
7049
|
+
var _a, _b;
|
|
7050
|
+
const _altText = (_b = (_a = props.part.properties) == null ? void 0 : _a.media) == null ? void 0 : _b.altText;
|
|
7051
|
+
if (media.value && _altText) {
|
|
7050
7052
|
const locale = pageBuilder.getLocale();
|
|
7051
|
-
return
|
|
7053
|
+
return _altText[locale] || "";
|
|
7052
7054
|
}
|
|
7053
7055
|
return "";
|
|
7054
7056
|
});
|
|
@@ -8318,16 +8320,16 @@ class PartManager {
|
|
|
8318
8320
|
const defaultPartPropertyEditors = () => {
|
|
8319
8321
|
return {
|
|
8320
8322
|
"readonly-text": () => defineAsyncComponent(() => import("./PbPropertyEditorReadonlyText-BJ5qx69O.js")),
|
|
8321
|
-
"text": () => defineAsyncComponent(() => import("./PbPropertyEditorText-
|
|
8323
|
+
"text": () => defineAsyncComponent(() => import("./PbPropertyEditorText-CxgIRMsk.js")),
|
|
8322
8324
|
"number": () => defineAsyncComponent(() => import("./PbPropertyEditorNumber-B76ArSb5.js")),
|
|
8323
8325
|
"boolean": () => defineAsyncComponent(() => import("./PbPropertyEditorBoolean-c5CNiTpt.js")),
|
|
8324
|
-
"multiline-text": () => defineAsyncComponent(() => import("./PbPropertyEditorMultilineText-
|
|
8326
|
+
"multiline-text": () => defineAsyncComponent(() => import("./PbPropertyEditorMultilineText-CpnjVtrK.js")),
|
|
8325
8327
|
"select": () => defineAsyncComponent(() => import("./PbPropertyEditorSelect-B5sfulvx.js")),
|
|
8326
|
-
"css-length": () => defineAsyncComponent(() => import("./PbPropertyEditorCssLength-
|
|
8327
|
-
"color": () => defineAsyncComponent(() => import("./PbPropertyEditorColor-
|
|
8328
|
-
"image": () => defineAsyncComponent(() => import("./PbPropertyEditorImage-
|
|
8329
|
-
"html": () => defineAsyncComponent(() => import("./PbPropertyEditorHtml-
|
|
8330
|
-
"youtube": () => defineAsyncComponent(() => import("./PbPropertyEditorYoutube-
|
|
8328
|
+
"css-length": () => defineAsyncComponent(() => import("./PbPropertyEditorCssLength-BuiZknhP.js")),
|
|
8329
|
+
"color": () => defineAsyncComponent(() => import("./PbPropertyEditorColor-DePuGm1f.js")),
|
|
8330
|
+
"image": () => defineAsyncComponent(() => import("./PbPropertyEditorImage-D1EGzUpm.js")),
|
|
8331
|
+
"html": () => defineAsyncComponent(() => import("./PbPropertyEditorHtml-BidGVlHZ.js")),
|
|
8332
|
+
"youtube": () => defineAsyncComponent(() => import("./PbPropertyEditorYoutube-CmAv_b-p.js"))
|
|
8331
8333
|
};
|
|
8332
8334
|
};
|
|
8333
8335
|
const getPropertyValueOfParts = (parts, propertyName) => {
|
|
@@ -12386,13 +12388,16 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
12386
12388
|
if (imageProvider) {
|
|
12387
12389
|
imageProvider({ modal }, (media2) => {
|
|
12388
12390
|
if (media2.mediaType === "Image") {
|
|
12389
|
-
updateProperty({ media: media2,
|
|
12391
|
+
updateProperty({ media: media2, thumbnail: "" });
|
|
12390
12392
|
} else if (media2.mediaType === "Video") {
|
|
12391
|
-
updateProperty({ media: media2,
|
|
12393
|
+
updateProperty({ media: media2, link: "", linkTarget: "" });
|
|
12392
12394
|
}
|
|
12393
12395
|
});
|
|
12394
12396
|
}
|
|
12395
12397
|
};
|
|
12398
|
+
const updateAltText = (value) => {
|
|
12399
|
+
updateProperty({ media: { ...media.value, altText: value } });
|
|
12400
|
+
};
|
|
12396
12401
|
const updateProperty = (properties) => {
|
|
12397
12402
|
pageBuilder.commandRegistry.executeCommand(ChangePropertyCommand.COMMAND_ID, { properties, targetParts: part });
|
|
12398
12403
|
};
|
|
@@ -12402,8 +12407,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
12402
12407
|
return (_b = (_a = part == null ? void 0 : part[0]) == null ? void 0 : _a.properties) == null ? void 0 : _b.media;
|
|
12403
12408
|
});
|
|
12404
12409
|
const altText = computed(() => {
|
|
12405
|
-
var _a, _b;
|
|
12406
|
-
return (_b = (_a = part == null ? void 0 : part[0]) == null ? void 0 : _a.properties) == null ? void 0 : _b.altText;
|
|
12410
|
+
var _a, _b, _c;
|
|
12411
|
+
return (_c = (_b = (_a = part == null ? void 0 : part[0]) == null ? void 0 : _a.properties) == null ? void 0 : _b.media) == null ? void 0 : _c.altText;
|
|
12407
12412
|
});
|
|
12408
12413
|
const link = computed(() => {
|
|
12409
12414
|
var _a, _b;
|
|
@@ -12439,7 +12444,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
12439
12444
|
])
|
|
12440
12445
|
]),
|
|
12441
12446
|
((_a = media.value) == null ? void 0 : _a.fileUrl) ? (openBlock(), createElementBlock("div", _hoisted_3$1, [
|
|
12442
|
-
_cache[
|
|
12447
|
+
_cache[3] || (_cache[3] = createElementVNode("label", null, "URL", -1)),
|
|
12443
12448
|
createElementVNode("div", _hoisted_4, [
|
|
12444
12449
|
createTextVNode(toDisplayString((_b = media.value) == null ? void 0 : _b.fileUrl) + " ", 1),
|
|
12445
12450
|
withDirectives(createVNode(unref(BSButton), {
|
|
@@ -12467,7 +12472,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
12467
12472
|
locales: locales.value,
|
|
12468
12473
|
"model-value": altText.value,
|
|
12469
12474
|
width: "100%",
|
|
12470
|
-
"onUpdate:modelValue":
|
|
12475
|
+
"onUpdate:modelValue": updateAltText
|
|
12471
12476
|
}, null, 8, ["locales", "model-value"])
|
|
12472
12477
|
]),
|
|
12473
12478
|
createElementVNode("div", _hoisted_6, [
|
|
@@ -12479,7 +12484,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
12479
12484
|
createVNode(unref(BSTextInput), {
|
|
12480
12485
|
"model-value": link.value,
|
|
12481
12486
|
width: "100%",
|
|
12482
|
-
"onUpdate:modelValue": _cache[
|
|
12487
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = (value) => updateProperty({ link: value }))
|
|
12483
12488
|
}, null, 8, ["model-value"])
|
|
12484
12489
|
]),
|
|
12485
12490
|
createElementVNode("div", _hoisted_7, [
|
|
@@ -12491,7 +12496,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
12491
12496
|
createVNode(unref(BSTextInput), {
|
|
12492
12497
|
"model-value": linkTarget.value,
|
|
12493
12498
|
width: "100%",
|
|
12494
|
-
"onUpdate:modelValue": _cache[
|
|
12499
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = (value) => updateProperty({ linkTarget: value }))
|
|
12495
12500
|
}, null, 8, ["model-value"])
|
|
12496
12501
|
])
|
|
12497
12502
|
], 64)) : createCommentVNode("", true),
|
|
@@ -12505,7 +12510,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
12505
12510
|
createVNode(unref(BSTextInput), {
|
|
12506
12511
|
"model-value": thumbnail.value,
|
|
12507
12512
|
width: "100%",
|
|
12508
|
-
"onUpdate:modelValue": _cache[
|
|
12513
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = (value) => updateProperty({ thumbnail: value }))
|
|
12509
12514
|
}, null, 8, ["model-value"])
|
|
12510
12515
|
])
|
|
12511
12516
|
], 64)) : createCommentVNode("", true)
|
|
@@ -12658,12 +12663,6 @@ const widgets = [
|
|
|
12658
12663
|
caption: "Media",
|
|
12659
12664
|
propertyType: "media"
|
|
12660
12665
|
},
|
|
12661
|
-
{
|
|
12662
|
-
propertyName: "altText",
|
|
12663
|
-
caption: "Alt Text",
|
|
12664
|
-
propertyType: "text",
|
|
12665
|
-
multiLang: true
|
|
12666
|
-
},
|
|
12667
12666
|
{
|
|
12668
12667
|
propertyName: "link",
|
|
12669
12668
|
caption: "Link",
|
|
@@ -12883,7 +12882,7 @@ __publicField(_OpenAddWidgetModalCommand, "COMMAND_ID", "OpenAddWidgetModal");
|
|
|
12883
12882
|
let OpenAddWidgetModalCommand = _OpenAddWidgetModalCommand;
|
|
12884
12883
|
const openWidgetAddModal = (modal, args, callback) => {
|
|
12885
12884
|
modal.openModal({
|
|
12886
|
-
component: defineAsyncComponent(() => import("./PbWidgetAddModal-
|
|
12885
|
+
component: defineAsyncComponent(() => import("./PbWidgetAddModal-Dj6lOg6c.js")),
|
|
12887
12886
|
style: {
|
|
12888
12887
|
width: "80%",
|
|
12889
12888
|
height: "80%",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B, b, M, c, d, e, _, a, f, g, h, i, j, k, l, m, n, R, o, S, p, W, q, r, v, x, y, z, A, D, E } from "./index-
|
|
1
|
+
import { B, b, M, c, d, e, _, a, f, g, h, i, j, k, l, m, n, R, o, S, p, W, q, r, v, x, y, z, A, D, E } from "./index-CV7ELqHT.js";
|
|
2
2
|
export {
|
|
3
3
|
B as BLOCK_TYPE,
|
|
4
4
|
b as Block,
|
|
@@ -7047,9 +7047,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
7047
7047
|
return (_a = props.part.properties) == null ? void 0 : _a.media;
|
|
7048
7048
|
});
|
|
7049
7049
|
const altText = vue.computed(() => {
|
|
7050
|
-
|
|
7050
|
+
var _a, _b;
|
|
7051
|
+
const _altText = (_b = (_a = props.part.properties) == null ? void 0 : _a.media) == null ? void 0 : _b.altText;
|
|
7052
|
+
if (media.value && _altText) {
|
|
7051
7053
|
const locale = pageBuilder.getLocale();
|
|
7052
|
-
return
|
|
7054
|
+
return _altText[locale] || "";
|
|
7053
7055
|
}
|
|
7054
7056
|
return "";
|
|
7055
7057
|
});
|
|
@@ -12387,13 +12389,16 @@ ${_html.style}
|
|
|
12387
12389
|
if (imageProvider) {
|
|
12388
12390
|
imageProvider({ modal }, (media2) => {
|
|
12389
12391
|
if (media2.mediaType === "Image") {
|
|
12390
|
-
updateProperty({ media: media2,
|
|
12392
|
+
updateProperty({ media: media2, thumbnail: "" });
|
|
12391
12393
|
} else if (media2.mediaType === "Video") {
|
|
12392
|
-
updateProperty({ media: media2,
|
|
12394
|
+
updateProperty({ media: media2, link: "", linkTarget: "" });
|
|
12393
12395
|
}
|
|
12394
12396
|
});
|
|
12395
12397
|
}
|
|
12396
12398
|
};
|
|
12399
|
+
const updateAltText = (value) => {
|
|
12400
|
+
updateProperty({ media: { ...media.value, altText: value } });
|
|
12401
|
+
};
|
|
12397
12402
|
const updateProperty = (properties) => {
|
|
12398
12403
|
pageBuilder.commandRegistry.executeCommand(ChangePropertyCommand.COMMAND_ID, { properties, targetParts: part });
|
|
12399
12404
|
};
|
|
@@ -12403,8 +12408,8 @@ ${_html.style}
|
|
|
12403
12408
|
return (_b = (_a = part == null ? void 0 : part[0]) == null ? void 0 : _a.properties) == null ? void 0 : _b.media;
|
|
12404
12409
|
});
|
|
12405
12410
|
const altText = vue.computed(() => {
|
|
12406
|
-
var _a, _b;
|
|
12407
|
-
return (_b = (_a = part == null ? void 0 : part[0]) == null ? void 0 : _a.properties) == null ? void 0 : _b.altText;
|
|
12411
|
+
var _a, _b, _c;
|
|
12412
|
+
return (_c = (_b = (_a = part == null ? void 0 : part[0]) == null ? void 0 : _a.properties) == null ? void 0 : _b.media) == null ? void 0 : _c.altText;
|
|
12408
12413
|
});
|
|
12409
12414
|
const link = vue.computed(() => {
|
|
12410
12415
|
var _a, _b;
|
|
@@ -12440,7 +12445,7 @@ ${_html.style}
|
|
|
12440
12445
|
])
|
|
12441
12446
|
]),
|
|
12442
12447
|
((_a = media.value) == null ? void 0 : _a.fileUrl) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$8, [
|
|
12443
|
-
_cache[
|
|
12448
|
+
_cache[3] || (_cache[3] = vue.createElementVNode("label", null, "URL", -1)),
|
|
12444
12449
|
vue.createElementVNode("div", _hoisted_4$4, [
|
|
12445
12450
|
vue.createTextVNode(vue.toDisplayString((_b = media.value) == null ? void 0 : _b.fileUrl) + " ", 1),
|
|
12446
12451
|
vue.withDirectives(vue.createVNode(vue.unref(bluesea.BSButton), {
|
|
@@ -12468,7 +12473,7 @@ ${_html.style}
|
|
|
12468
12473
|
locales: locales.value,
|
|
12469
12474
|
"model-value": altText.value,
|
|
12470
12475
|
width: "100%",
|
|
12471
|
-
"onUpdate:modelValue":
|
|
12476
|
+
"onUpdate:modelValue": updateAltText
|
|
12472
12477
|
}, null, 8, ["locales", "model-value"])
|
|
12473
12478
|
]),
|
|
12474
12479
|
vue.createElementVNode("div", _hoisted_6$2, [
|
|
@@ -12480,7 +12485,7 @@ ${_html.style}
|
|
|
12480
12485
|
vue.createVNode(vue.unref(bluesea.BSTextInput), {
|
|
12481
12486
|
"model-value": link.value,
|
|
12482
12487
|
width: "100%",
|
|
12483
|
-
"onUpdate:modelValue": _cache[
|
|
12488
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = (value) => updateProperty({ link: value }))
|
|
12484
12489
|
}, null, 8, ["model-value"])
|
|
12485
12490
|
]),
|
|
12486
12491
|
vue.createElementVNode("div", _hoisted_7$2, [
|
|
@@ -12492,7 +12497,7 @@ ${_html.style}
|
|
|
12492
12497
|
vue.createVNode(vue.unref(bluesea.BSTextInput), {
|
|
12493
12498
|
"model-value": linkTarget.value,
|
|
12494
12499
|
width: "100%",
|
|
12495
|
-
"onUpdate:modelValue": _cache[
|
|
12500
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = (value) => updateProperty({ linkTarget: value }))
|
|
12496
12501
|
}, null, 8, ["model-value"])
|
|
12497
12502
|
])
|
|
12498
12503
|
], 64)) : vue.createCommentVNode("", true),
|
|
@@ -12506,7 +12511,7 @@ ${_html.style}
|
|
|
12506
12511
|
vue.createVNode(vue.unref(bluesea.BSTextInput), {
|
|
12507
12512
|
"model-value": thumbnail.value,
|
|
12508
12513
|
width: "100%",
|
|
12509
|
-
"onUpdate:modelValue": _cache[
|
|
12514
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = (value) => updateProperty({ thumbnail: value }))
|
|
12510
12515
|
}, null, 8, ["model-value"])
|
|
12511
12516
|
])
|
|
12512
12517
|
], 64)) : vue.createCommentVNode("", true)
|
|
@@ -12659,12 +12664,6 @@ ${_html.style}
|
|
|
12659
12664
|
caption: "Media",
|
|
12660
12665
|
propertyType: "media"
|
|
12661
12666
|
},
|
|
12662
|
-
{
|
|
12663
|
-
propertyName: "altText",
|
|
12664
|
-
caption: "Alt Text",
|
|
12665
|
-
propertyType: "text",
|
|
12666
|
-
multiLang: true
|
|
12667
|
-
},
|
|
12668
12667
|
{
|
|
12669
12668
|
propertyName: "link",
|
|
12670
12669
|
caption: "Link",
|
package/dist/style.css
CHANGED
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
.pb-editor .pb-editor-body .pb-canvas-wrapper {
|
|
48
48
|
background-color: var(--color-canvas-frame-bg);
|
|
49
49
|
border-top: 1px solid var(--color-canvas-frame-bg);
|
|
50
|
+
border-bottom: 1px solid var(--color-canvas-frame-bg);
|
|
50
51
|
flex-grow: 1;
|
|
51
52
|
min-width: 0;
|
|
52
53
|
width: 0;
|
|
@@ -266,13 +267,13 @@
|
|
|
266
267
|
font-weight: 600;
|
|
267
268
|
}
|
|
268
269
|
.pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .property-editor-local-part button {
|
|
269
|
-
color:
|
|
270
|
+
color: var(--white);
|
|
270
271
|
border: none;
|
|
271
272
|
padding: 0 4px;
|
|
272
273
|
cursor: pointer;
|
|
273
274
|
line-height: 1;
|
|
274
275
|
height: 24px;
|
|
275
|
-
background-color:
|
|
276
|
+
background-color: var(--primary);
|
|
276
277
|
}
|
|
277
278
|
.pb-editor .pb-editor-body .pb-sidebar .pb-sidebar-properties .pb-sidebar-property-group .property-editor-local-part .input-area {
|
|
278
279
|
height: 24px;
|
|
@@ -301,14 +302,14 @@
|
|
|
301
302
|
display: inline-block;
|
|
302
303
|
width: 100px;
|
|
303
304
|
height: 1px;
|
|
304
|
-
background: red;
|
|
305
|
+
background: var(--red);
|
|
305
306
|
position: absolute;
|
|
306
307
|
top: 50%;
|
|
307
308
|
left: 50%;
|
|
308
309
|
transform: translate(-50%, -50%) rotate(45deg);
|
|
309
310
|
}
|
|
310
311
|
.pb-editor .pb-editor-body .pb-color-picker .buttons button.picker-button {
|
|
311
|
-
border: 1px solid
|
|
312
|
+
border: 1px solid var(--border);
|
|
312
313
|
}
|
|
313
314
|
.pb-editor .pb-editor-body .pb-color-picker .buttons button i {
|
|
314
315
|
font-size: 1.4rem;
|
|
@@ -335,7 +336,7 @@
|
|
|
335
336
|
width: 50%;
|
|
336
337
|
}
|
|
337
338
|
.pb-html-editor-modal .preview .content {
|
|
338
|
-
border: solid 1px
|
|
339
|
+
border: solid 1px var(--border);
|
|
339
340
|
}
|
|
340
341
|
.pb-html-editor-modal .preview .content iframe {
|
|
341
342
|
width: 100%;
|
|
@@ -360,23 +361,23 @@
|
|
|
360
361
|
text-align: center;
|
|
361
362
|
}
|
|
362
363
|
.pb-html-editor-modal .buttons button {
|
|
363
|
-
color:
|
|
364
|
+
color: var(--white);
|
|
364
365
|
border: none;
|
|
365
366
|
padding: 4px 12px;
|
|
366
367
|
cursor: pointer;
|
|
367
368
|
line-height: 1;
|
|
368
369
|
height: 28px;
|
|
369
|
-
background-color:
|
|
370
|
+
background-color: var(--primary);
|
|
370
371
|
}
|
|
371
372
|
.pb-youtube-modal .flex-grow-1.overflow-auto {
|
|
372
373
|
overflow: hidden !important;
|
|
373
374
|
}
|
|
374
375
|
.pb-youtube-modal button {
|
|
375
|
-
color:
|
|
376
|
+
color: var(--white);
|
|
376
377
|
border: none;
|
|
377
378
|
padding: 4px 12px;
|
|
378
379
|
cursor: pointer;
|
|
379
380
|
line-height: 1;
|
|
380
381
|
height: 28px;
|
|
381
|
-
background-color:
|
|
382
|
+
background-color: var(--primary);
|
|
382
383
|
}
|
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.82",
|
|
5
5
|
"engins": {
|
|
6
6
|
"node": ">= 20.0.0"
|
|
7
7
|
},
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"vue-router": "^4.4.3",
|
|
32
32
|
"vue3-click-away": "^1.2.4",
|
|
33
33
|
"yjs": "^13.6.14",
|
|
34
|
-
"@g1cloud/page-builder-viewer": "1.0.0-alpha.
|
|
34
|
+
"@g1cloud/page-builder-viewer": "1.0.0-alpha.82"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/node": "^20.12.7",
|
package/scss/canvas.scss
CHANGED
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
display: inline-block;
|
|
207
207
|
width: 100px;
|
|
208
208
|
height: 1px;
|
|
209
|
-
background: red;
|
|
209
|
+
background: var(--red);
|
|
210
210
|
position: absolute;
|
|
211
211
|
top: 50%;
|
|
212
212
|
left: 50%;
|
|
@@ -215,7 +215,7 @@
|
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
&.picker-button {
|
|
218
|
-
border: 1px solid
|
|
218
|
+
border: 1px solid var(--border);
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
i {
|
|
@@ -259,7 +259,7 @@
|
|
|
259
259
|
width: 50%;
|
|
260
260
|
|
|
261
261
|
.content {
|
|
262
|
-
border: solid 1px
|
|
262
|
+
border: solid 1px var(--border);
|
|
263
263
|
|
|
264
264
|
iframe {
|
|
265
265
|
width: 100%;
|
|
@@ -298,13 +298,13 @@
|
|
|
298
298
|
text-align: center;
|
|
299
299
|
|
|
300
300
|
button {
|
|
301
|
-
color:
|
|
301
|
+
color: var(--white);
|
|
302
302
|
border: none;
|
|
303
303
|
padding: 4px 12px;
|
|
304
304
|
cursor: pointer;
|
|
305
305
|
line-height: 1;
|
|
306
306
|
height: 28px;
|
|
307
|
-
background-color:
|
|
307
|
+
background-color: var(--primary);
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
310
|
}
|
|
@@ -315,12 +315,12 @@
|
|
|
315
315
|
}
|
|
316
316
|
|
|
317
317
|
button {
|
|
318
|
-
color:
|
|
318
|
+
color: var(--white);
|
|
319
319
|
border: none;
|
|
320
320
|
padding: 4px 12px;
|
|
321
321
|
cursor: pointer;
|
|
322
322
|
line-height: 1;
|
|
323
323
|
height: 28px;
|
|
324
|
-
background-color:
|
|
324
|
+
background-color: var(--primary);
|
|
325
325
|
}
|
|
326
326
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
.property-editor-youtube {
|
|
2
2
|
button {
|
|
3
|
-
color:
|
|
3
|
+
color: var(--white);
|
|
4
4
|
border: none;
|
|
5
5
|
padding: 4px 12px;
|
|
6
6
|
cursor: pointer;
|
|
7
7
|
line-height: 1;
|
|
8
8
|
width: 120px;
|
|
9
9
|
height: 28px;
|
|
10
|
-
background-color:
|
|
10
|
+
background-color: var(--primary);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.input-area {
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
button {
|
|
8
|
-
color:
|
|
8
|
+
color: var(--white);
|
|
9
9
|
border: none;
|
|
10
10
|
padding: 0 4px;
|
|
11
11
|
cursor: pointer;
|
|
12
12
|
line-height: 1;
|
|
13
13
|
//width: 100px;
|
|
14
14
|
height: 24px;
|
|
15
|
-
background-color:
|
|
15
|
+
background-color: var(--primary);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.input-area {
|