@g1cloud/page-builder-editor 1.0.0-alpha.57 → 1.0.0-alpha.58

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.
@@ -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-CunC9ZX-.js";
3
+ import { P as PbColorPicker } from "./index-DVb8Dbz9.js";
4
4
  const _hoisted_1 = { class: "property-editor property-editor-color" };
5
5
  const _hoisted_2 = { class: "title" };
6
6
  const _hoisted_3 = { class: "bs-layout-horizontal flex-align-center color" };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, openBlock, createElementBlock, createElementVNode, withDirectives, unref, createTextVNode, defineAsyncComponent } from "vue";
2
2
  import { useModal, vT } from "@g1cloud/bluesea";
3
- import { u as usePageBuilderEditor } from "./index-CunC9ZX-.js";
3
+ import { u as usePageBuilderEditor } from "./index-DVb8Dbz9.js";
4
4
  const _hoisted_1 = { class: "property-editor property-editor-image flex-align-center" };
5
5
  const _hoisted_2 = { class: "title" };
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, openBlock, createElementBlock, createElementVNode, withDirectives, unref, createTextVNode, toDisplayString, createVNode, createCommentVNode, Fragment } from "vue";
2
- import { u as usePageBuilderEditor, C as ChangePropertyCommand } from "./index-CunC9ZX-.js";
2
+ import { u as usePageBuilderEditor, C as ChangePropertyCommand } from "./index-DVb8Dbz9.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" };
@@ -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-CunC9ZX-.js";
3
+ import { u as usePageBuilderEditor } from "./index-DVb8Dbz9.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-CunC9ZX-.js";
3
+ import { u as usePageBuilderEditor } from "./index-DVb8Dbz9.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-CunC9ZX-.js";
3
+ import { s as selectYoutubeVideo } from "./index-DVb8Dbz9.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-CunC9ZX-.js";
3
+ import { w as widgetPartDefinitions } from "./index-DVb8Dbz9.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"];
@@ -6715,7 +6715,7 @@ class Part {
6715
6715
  }
6716
6716
  }
6717
6717
  getStyles(isMobilePage) {
6718
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S;
6718
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T;
6719
6719
  const style = {};
6720
6720
  if (((_a = this.properties) == null ? void 0 : _a.direction) === "horizontal") {
6721
6721
  style.flexDirection = "row";
@@ -6764,29 +6764,30 @@ class Part {
6764
6764
  if ((_A = this.properties) == null ? void 0 : _A.minHeight) style.minHeight = this.properties.minHeight;
6765
6765
  if ((_B = this.properties) == null ? void 0 : _B.textAlign) style.textAlign = this.properties.textAlign;
6766
6766
  if ((_C = this.properties) == null ? void 0 : _C.backgroundColor) style.backgroundColor = this.properties.backgroundColor;
6767
- if ((_D = this.properties) == null ? void 0 : _D.borderLeftWidth) style.borderLeftWidth = this.properties.borderLeftWidth;
6768
- if ((_E = this.properties) == null ? void 0 : _E.borderRightWidth) style.borderRightWidth = this.properties.borderRightWidth;
6769
- if ((_F = this.properties) == null ? void 0 : _F.borderTopWidth) style.borderTopWidth = this.properties.borderTopWidth;
6770
- if ((_G = this.properties) == null ? void 0 : _G.borderBottomWidth) style.borderBottomWidth = this.properties.borderBottomWidth;
6771
- if ((_H = this.properties) == null ? void 0 : _H.borderTopLeftRadius) style.borderTopLeftRadius = this.properties.borderTopLeftRadius;
6772
- if ((_I = this.properties) == null ? void 0 : _I.borderTopRightRadius) style.borderTopRightRadius = this.properties.borderTopRightRadius;
6773
- if ((_J = this.properties) == null ? void 0 : _J.borderBottomLeftRadius) style.borderBottomLeftRadius = this.properties.borderBottomLeftRadius;
6774
- if ((_K = this.properties) == null ? void 0 : _K.borderBottomRightRadius) style.borderBottomRightRadius = this.properties.borderBottomRightRadius;
6775
- if (((_L = this.properties) == null ? void 0 : _L.borderColor) && style.borderLeftWidth) {
6767
+ if ((_D = this.properties) == null ? void 0 : _D.backgroundImage) style.backgroundImage = `url(${this.properties.backgroundImage})`;
6768
+ if ((_E = this.properties) == null ? void 0 : _E.borderLeftWidth) style.borderLeftWidth = this.properties.borderLeftWidth;
6769
+ if ((_F = this.properties) == null ? void 0 : _F.borderRightWidth) style.borderRightWidth = this.properties.borderRightWidth;
6770
+ if ((_G = this.properties) == null ? void 0 : _G.borderTopWidth) style.borderTopWidth = this.properties.borderTopWidth;
6771
+ if ((_H = this.properties) == null ? void 0 : _H.borderBottomWidth) style.borderBottomWidth = this.properties.borderBottomWidth;
6772
+ if ((_I = this.properties) == null ? void 0 : _I.borderTopLeftRadius) style.borderTopLeftRadius = this.properties.borderTopLeftRadius;
6773
+ if ((_J = this.properties) == null ? void 0 : _J.borderTopRightRadius) style.borderTopRightRadius = this.properties.borderTopRightRadius;
6774
+ if ((_K = this.properties) == null ? void 0 : _K.borderBottomLeftRadius) style.borderBottomLeftRadius = this.properties.borderBottomLeftRadius;
6775
+ if ((_L = this.properties) == null ? void 0 : _L.borderBottomRightRadius) style.borderBottomRightRadius = this.properties.borderBottomRightRadius;
6776
+ if (((_M = this.properties) == null ? void 0 : _M.borderColor) && style.borderLeftWidth) {
6776
6777
  style.borderLeftStyle = "solid";
6777
- style.borderLeftColor = (_M = this.properties) == null ? void 0 : _M.borderColor;
6778
+ style.borderLeftColor = (_N = this.properties) == null ? void 0 : _N.borderColor;
6778
6779
  }
6779
- if (((_N = this.properties) == null ? void 0 : _N.borderColor) && style.borderRightWidth) {
6780
+ if (((_O = this.properties) == null ? void 0 : _O.borderColor) && style.borderRightWidth) {
6780
6781
  style.borderRightStyle = "solid";
6781
- style.borderRightColor = (_O = this.properties) == null ? void 0 : _O.borderColor;
6782
+ style.borderRightColor = (_P = this.properties) == null ? void 0 : _P.borderColor;
6782
6783
  }
6783
- if (((_P = this.properties) == null ? void 0 : _P.borderColor) && style.borderTopWidth) {
6784
+ if (((_Q = this.properties) == null ? void 0 : _Q.borderColor) && style.borderTopWidth) {
6784
6785
  style.borderTopStyle = "solid";
6785
- style.borderTopColor = (_Q = this.properties) == null ? void 0 : _Q.borderColor;
6786
+ style.borderTopColor = (_R = this.properties) == null ? void 0 : _R.borderColor;
6786
6787
  }
6787
- if (((_R = this.properties) == null ? void 0 : _R.borderColor) && style.borderBottomWidth) {
6788
+ if (((_S = this.properties) == null ? void 0 : _S.borderColor) && style.borderBottomWidth) {
6788
6789
  style.borderBottomStyle = "solid";
6789
- style.borderBottomColor = (_S = this.properties) == null ? void 0 : _S.borderColor;
6790
+ style.borderBottomColor = (_T = this.properties) == null ? void 0 : _T.borderColor;
6790
6791
  }
6791
6792
  return style;
6792
6793
  }
@@ -8202,15 +8203,15 @@ class PartManager {
8202
8203
  const defaultPartPropertyEditors = () => {
8203
8204
  return {
8204
8205
  "readonly-text": () => defineAsyncComponent(() => import("./PbPropertyEditorReadonlyText-BJ5qx69O.js")),
8205
- "text": () => defineAsyncComponent(() => import("./PbPropertyEditorText-C6tfNEZr.js")),
8206
+ "text": () => defineAsyncComponent(() => import("./PbPropertyEditorText-DaEdYvui.js")),
8206
8207
  "number": () => defineAsyncComponent(() => import("./PbPropertyEditorNumber-B76ArSb5.js")),
8207
8208
  "boolean": () => defineAsyncComponent(() => import("./PbPropertyEditorBoolean-c5CNiTpt.js")),
8208
- "multiline-text": () => defineAsyncComponent(() => import("./PbPropertyEditorMultilineText-CxYg4FZJ.js")),
8209
+ "multiline-text": () => defineAsyncComponent(() => import("./PbPropertyEditorMultilineText-C73clBfW.js")),
8209
8210
  "select": () => defineAsyncComponent(() => import("./PbPropertyEditorSelect-B5sfulvx.js")),
8210
- "color": () => defineAsyncComponent(() => import("./PbPropertyEditorColor-B_gCpRr9.js")),
8211
- "image": () => defineAsyncComponent(() => import("./PbPropertyEditorImage-BmBoAyAt.js")),
8212
- "html": () => defineAsyncComponent(() => import("./PbPropertyEditorHtml-wlpZGkOb.js")),
8213
- "youtube": () => defineAsyncComponent(() => import("./PbPropertyEditorYoutube-bfhyqL7y.js"))
8211
+ "color": () => defineAsyncComponent(() => import("./PbPropertyEditorColor-D9E4k6n_.js")),
8212
+ "image": () => defineAsyncComponent(() => import("./PbPropertyEditorImage-CRDZD17a.js")),
8213
+ "html": () => defineAsyncComponent(() => import("./PbPropertyEditorHtml-BZke0RcX.js")),
8214
+ "youtube": () => defineAsyncComponent(() => import("./PbPropertyEditorYoutube-B7LIYTe0.js"))
8214
8215
  };
8215
8216
  };
8216
8217
  const getPropertyValueOfParts = (parts, propertyName) => {
@@ -12769,7 +12770,7 @@ __publicField(_OpenAddWidgetModalCommand, "COMMAND_ID", "OpenAddWidgetModal");
12769
12770
  let OpenAddWidgetModalCommand = _OpenAddWidgetModalCommand;
12770
12771
  const openWidgetAddModal = (modal, args, callback) => {
12771
12772
  modal.openModal({
12772
- component: defineAsyncComponent(() => import("./PbWidgetAddModal-BlgFo2l3.js")),
12773
+ component: defineAsyncComponent(() => import("./PbWidgetAddModal-BAxzht8d.js")),
12773
12774
  style: {
12774
12775
  width: "80%",
12775
12776
  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, t, v, x, y, z, A, D } from "./index-CunC9ZX-.js";
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, t, v, x, y, z, A, D } from "./index-DVb8Dbz9.js";
2
2
  export {
3
3
  B as BLOCK_TYPE,
4
4
  b as Block,
@@ -6716,7 +6716,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
6716
6716
  }
6717
6717
  }
6718
6718
  getStyles(isMobilePage) {
6719
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S;
6719
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T;
6720
6720
  const style = {};
6721
6721
  if (((_a = this.properties) == null ? void 0 : _a.direction) === "horizontal") {
6722
6722
  style.flexDirection = "row";
@@ -6765,29 +6765,30 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
6765
6765
  if ((_A = this.properties) == null ? void 0 : _A.minHeight) style.minHeight = this.properties.minHeight;
6766
6766
  if ((_B = this.properties) == null ? void 0 : _B.textAlign) style.textAlign = this.properties.textAlign;
6767
6767
  if ((_C = this.properties) == null ? void 0 : _C.backgroundColor) style.backgroundColor = this.properties.backgroundColor;
6768
- if ((_D = this.properties) == null ? void 0 : _D.borderLeftWidth) style.borderLeftWidth = this.properties.borderLeftWidth;
6769
- if ((_E = this.properties) == null ? void 0 : _E.borderRightWidth) style.borderRightWidth = this.properties.borderRightWidth;
6770
- if ((_F = this.properties) == null ? void 0 : _F.borderTopWidth) style.borderTopWidth = this.properties.borderTopWidth;
6771
- if ((_G = this.properties) == null ? void 0 : _G.borderBottomWidth) style.borderBottomWidth = this.properties.borderBottomWidth;
6772
- if ((_H = this.properties) == null ? void 0 : _H.borderTopLeftRadius) style.borderTopLeftRadius = this.properties.borderTopLeftRadius;
6773
- if ((_I = this.properties) == null ? void 0 : _I.borderTopRightRadius) style.borderTopRightRadius = this.properties.borderTopRightRadius;
6774
- if ((_J = this.properties) == null ? void 0 : _J.borderBottomLeftRadius) style.borderBottomLeftRadius = this.properties.borderBottomLeftRadius;
6775
- if ((_K = this.properties) == null ? void 0 : _K.borderBottomRightRadius) style.borderBottomRightRadius = this.properties.borderBottomRightRadius;
6776
- if (((_L = this.properties) == null ? void 0 : _L.borderColor) && style.borderLeftWidth) {
6768
+ if ((_D = this.properties) == null ? void 0 : _D.backgroundImage) style.backgroundImage = `url(${this.properties.backgroundImage})`;
6769
+ if ((_E = this.properties) == null ? void 0 : _E.borderLeftWidth) style.borderLeftWidth = this.properties.borderLeftWidth;
6770
+ if ((_F = this.properties) == null ? void 0 : _F.borderRightWidth) style.borderRightWidth = this.properties.borderRightWidth;
6771
+ if ((_G = this.properties) == null ? void 0 : _G.borderTopWidth) style.borderTopWidth = this.properties.borderTopWidth;
6772
+ if ((_H = this.properties) == null ? void 0 : _H.borderBottomWidth) style.borderBottomWidth = this.properties.borderBottomWidth;
6773
+ if ((_I = this.properties) == null ? void 0 : _I.borderTopLeftRadius) style.borderTopLeftRadius = this.properties.borderTopLeftRadius;
6774
+ if ((_J = this.properties) == null ? void 0 : _J.borderTopRightRadius) style.borderTopRightRadius = this.properties.borderTopRightRadius;
6775
+ if ((_K = this.properties) == null ? void 0 : _K.borderBottomLeftRadius) style.borderBottomLeftRadius = this.properties.borderBottomLeftRadius;
6776
+ if ((_L = this.properties) == null ? void 0 : _L.borderBottomRightRadius) style.borderBottomRightRadius = this.properties.borderBottomRightRadius;
6777
+ if (((_M = this.properties) == null ? void 0 : _M.borderColor) && style.borderLeftWidth) {
6777
6778
  style.borderLeftStyle = "solid";
6778
- style.borderLeftColor = (_M = this.properties) == null ? void 0 : _M.borderColor;
6779
+ style.borderLeftColor = (_N = this.properties) == null ? void 0 : _N.borderColor;
6779
6780
  }
6780
- if (((_N = this.properties) == null ? void 0 : _N.borderColor) && style.borderRightWidth) {
6781
+ if (((_O = this.properties) == null ? void 0 : _O.borderColor) && style.borderRightWidth) {
6781
6782
  style.borderRightStyle = "solid";
6782
- style.borderRightColor = (_O = this.properties) == null ? void 0 : _O.borderColor;
6783
+ style.borderRightColor = (_P = this.properties) == null ? void 0 : _P.borderColor;
6783
6784
  }
6784
- if (((_P = this.properties) == null ? void 0 : _P.borderColor) && style.borderTopWidth) {
6785
+ if (((_Q = this.properties) == null ? void 0 : _Q.borderColor) && style.borderTopWidth) {
6785
6786
  style.borderTopStyle = "solid";
6786
- style.borderTopColor = (_Q = this.properties) == null ? void 0 : _Q.borderColor;
6787
+ style.borderTopColor = (_R = this.properties) == null ? void 0 : _R.borderColor;
6787
6788
  }
6788
- if (((_R = this.properties) == null ? void 0 : _R.borderColor) && style.borderBottomWidth) {
6789
+ if (((_S = this.properties) == null ? void 0 : _S.borderColor) && style.borderBottomWidth) {
6789
6790
  style.borderBottomStyle = "solid";
6790
- style.borderBottomColor = (_S = this.properties) == null ? void 0 : _S.borderColor;
6791
+ style.borderBottomColor = (_T = this.properties) == null ? void 0 : _T.borderColor;
6791
6792
  }
6792
6793
  return style;
6793
6794
  }
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.57",
4
+ "version": "1.0.0-alpha.58",
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.57"
33
+ "@g1cloud/page-builder-viewer": "1.0.0-alpha.58"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/node": "^20.12.7",