@g1cloud/page-builder-editor 1.0.0-alpha.101 → 1.0.0-alpha.102

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-SyHEuk0H.js";
3
+ import { P as PbColorPicker } from "./index-BKkW50R0.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, createVNode } from "vue";
2
2
  import { vT, BSTextInput } from "@g1cloud/bluesea";
3
- import { t as toCssLength } from "./index-SyHEuk0H.js";
3
+ import { t as toCssLength } from "./index-BKkW50R0.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-SyHEuk0H.js";
3
+ import { u as usePageBuilderEditor } from "./index-BKkW50R0.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-SyHEuk0H.js";
2
+ import { u as usePageBuilderEditor, C as ChangePropertyCommand } from "./index-BKkW50R0.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-SyHEuk0H.js";
3
+ import { u as usePageBuilderEditor } from "./index-BKkW50R0.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({
@@ -30,9 +30,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
30
30
  createElementVNode("div", null, [
31
31
  createVNode(unref(BSSelect), {
32
32
  items: selectItems.value,
33
+ disabled: !!_ctx.property.disabled,
33
34
  "model-value": _ctx.value,
34
35
  "onUpdate:modelValue": emitUpdatePropertyValue
35
- }, null, 8, ["items", "model-value"])
36
+ }, null, 8, ["items", "disabled", "model-value"])
36
37
  ])
37
38
  ]);
38
39
  };
@@ -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-SyHEuk0H.js";
3
+ import { u as usePageBuilderEditor } from "./index-BKkW50R0.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, createTextVNode, toDisplayString, createVNode, createCommentVNode } from "vue";
2
2
  import { useModal, vT, BSButton } from "@g1cloud/bluesea";
3
- import { s as selectYoutubeVideo } from "./index-SyHEuk0H.js";
3
+ import { s as selectYoutubeVideo } from "./index-BKkW50R0.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 _hoisted_3 = {
@@ -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-SyHEuk0H.js";
3
+ import { w as widgetPartDefinitions } from "./index-BKkW50R0.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"];
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, onMounted, openBlock, createBlock, unref, withCtx, createElementVNode, withDirectives, createVNode, normalizeStyle, createCommentVNode } from "vue";
2
2
  import { useModalHandle, BSModalFrame, vT, BSTextInput } from "@g1cloud/bluesea";
3
3
  import YouTube from "vue3-youtube";
4
- import { _ as _export_sfc } from "./index-SyHEuk0H.js";
4
+ import { _ as _export_sfc } from "./index-BKkW50R0.js";
5
5
  const _hoisted_1 = { class: "bs-layout-vertical flex-grow-1 h-full" };
6
6
  const _hoisted_2 = { class: "pt-8" };
7
7
  const _hoisted_3 = { class: "bs-layout-horizontal justify-content-center" };
@@ -8628,16 +8628,16 @@ class PartManager {
8628
8628
  const defaultPartPropertyEditors = () => {
8629
8629
  return {
8630
8630
  "readonly-text": () => defineAsyncComponent(() => import("./PbPropertyEditorReadonlyText-BJ5qx69O.js")),
8631
- "text": () => defineAsyncComponent(() => import("./PbPropertyEditorText-mWOJ1KrX.js")),
8631
+ "text": () => defineAsyncComponent(() => import("./PbPropertyEditorText-BuNC6dLo.js")),
8632
8632
  "number": () => defineAsyncComponent(() => import("./PbPropertyEditorNumber-B76ArSb5.js")),
8633
8633
  "boolean": () => defineAsyncComponent(() => import("./PbPropertyEditorBoolean-c5CNiTpt.js")),
8634
- "multiline-text": () => defineAsyncComponent(() => import("./PbPropertyEditorMultilineText-Bp2vUVha.js")),
8635
- "select": () => defineAsyncComponent(() => import("./PbPropertyEditorSelect-B5sfulvx.js")),
8636
- "css-length": () => defineAsyncComponent(() => import("./PbPropertyEditorCssLength-s--C0dHZ.js")),
8637
- "color": () => defineAsyncComponent(() => import("./PbPropertyEditorColor-BsPFj_3N.js")),
8638
- "image": () => defineAsyncComponent(() => import("./PbPropertyEditorImage-DbbK_0WV.js")),
8639
- "html": () => defineAsyncComponent(() => import("./PbPropertyEditorHtml-WoyBfORQ.js")),
8640
- "youtube": () => defineAsyncComponent(() => import("./PbPropertyEditorYoutube-BCiZmiWV.js"))
8634
+ "multiline-text": () => defineAsyncComponent(() => import("./PbPropertyEditorMultilineText-BQ5EOr92.js")),
8635
+ "select": () => defineAsyncComponent(() => import("./PbPropertyEditorSelect-DkXgwpK8.js")),
8636
+ "css-length": () => defineAsyncComponent(() => import("./PbPropertyEditorCssLength-D-rlVWI8.js")),
8637
+ "color": () => defineAsyncComponent(() => import("./PbPropertyEditorColor-BLmbxHlj.js")),
8638
+ "image": () => defineAsyncComponent(() => import("./PbPropertyEditorImage-Bh9_XDi6.js")),
8639
+ "html": () => defineAsyncComponent(() => import("./PbPropertyEditorHtml-D65dKk8P.js")),
8640
+ "youtube": () => defineAsyncComponent(() => import("./PbPropertyEditorYoutube-DuPiKQNB.js"))
8641
8641
  };
8642
8642
  };
8643
8643
  const getPropertyValueOfParts = (parts, propertyName) => {
@@ -8657,7 +8657,7 @@ const isCursorInElement = (event, element) => {
8657
8657
  };
8658
8658
  const selectYoutubeVideo = (modal, url, callback) => {
8659
8659
  modal.openModal({
8660
- component: defineAsyncComponent(() => import("./PbYoutubeModal-BaL5gsKK.js")),
8660
+ component: defineAsyncComponent(() => import("./PbYoutubeModal-DDC8kUPw.js")),
8661
8661
  style: {
8662
8662
  minWidth: "500px",
8663
8663
  minHeight: "400px"
@@ -13435,7 +13435,7 @@ __publicField(_OpenAddWidgetModalCommand, "COMMAND_ID", "OpenAddWidgetModal");
13435
13435
  let OpenAddWidgetModalCommand = _OpenAddWidgetModalCommand;
13436
13436
  const openWidgetAddModal = (modal, args, callback) => {
13437
13437
  modal.openModal({
13438
- component: defineAsyncComponent(() => import("./PbWidgetAddModal-0p7a4pVO.js")),
13438
+ component: defineAsyncComponent(() => import("./PbWidgetAddModal-BOcLVwum.js")),
13439
13439
  style: {
13440
13440
  width: "80%",
13441
13441
  height: "80%",
@@ -10,6 +10,7 @@ export type PartProperty = {
10
10
  params?: any;
11
11
  propertyEditor?: PartPropertyEditor;
12
12
  readonly?: boolean;
13
+ disabled?: boolean;
13
14
  multiLang?: boolean;
14
15
  propertyConstraint?: Record<string, unknown>;
15
16
  };
@@ -1,4 +1,4 @@
1
- import { B, c, M, d, e, f, a, b, g, h, i, j, k, l, m, n, o, R, p, S, q, W, r, v, x, y, z, A, D, E, F } from "./index-SyHEuk0H.js";
1
+ import { B, c, M, d, e, f, a, b, g, h, i, j, k, l, m, n, o, R, p, S, q, W, r, v, x, y, z, A, D, E, F } from "./index-BKkW50R0.js";
2
2
  export {
3
3
  B as BLOCK_TYPE,
4
4
  c as Block,
@@ -17849,9 +17849,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
17849
17849
  vue.createElementVNode("div", null, [
17850
17850
  vue.createVNode(vue.unref(bluesea.BSSelect), {
17851
17851
  items: selectItems.value,
17852
+ disabled: !!_ctx.property.disabled,
17852
17853
  "model-value": _ctx.value,
17853
17854
  "onUpdate:modelValue": emitUpdatePropertyValue
17854
- }, null, 8, ["items", "model-value"])
17855
+ }, null, 8, ["items", "disabled", "model-value"])
17855
17856
  ])
17856
17857
  ]);
17857
17858
  };
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.101",
4
+ "version": "1.0.0-alpha.102",
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.101"
34
+ "@g1cloud/page-builder-viewer": "1.0.0-alpha.102"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/node": "^20.12.7",