@g1cloud/page-builder-editor 1.0.0-alpha.72 → 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.
@@ -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-DzZG-nX6.js";
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" };
@@ -0,0 +1,42 @@
1
+ import { defineComponent, openBlock, createElementBlock, createElementVNode, withDirectives, unref, createVNode } from "vue";
2
+ import { vT, BSTextInput } from "@g1cloud/bluesea";
3
+ import { t as toCssLength } from "./index-CBy4UB6h.js";
4
+ const _hoisted_1 = { class: "property-editor property-editor-number flex-align-center" };
5
+ const _hoisted_2 = { class: "title" };
6
+ const _sfc_main = /* @__PURE__ */ defineComponent({
7
+ __name: "PbPropertyEditorCssLength",
8
+ props: {
9
+ property: {},
10
+ value: {}
11
+ },
12
+ emits: ["update-property-value"],
13
+ setup(__props, { emit: __emit }) {
14
+ const props = __props;
15
+ const emit = __emit;
16
+ const emitUpdatePropertyValue = (value) => {
17
+ const cssLength = toCssLength(value || "");
18
+ const properties = {};
19
+ properties[props.property.propertyName] = `${cssLength}`;
20
+ emit("update-property-value", properties);
21
+ };
22
+ return (_ctx, _cache) => {
23
+ return openBlock(), createElementBlock("div", _hoisted_1, [
24
+ createElementVNode("div", _hoisted_2, [
25
+ withDirectives(createElementVNode("label", null, null, 512), [
26
+ [unref(vT), { key: _ctx.property.caption }]
27
+ ])
28
+ ]),
29
+ createElementVNode("div", null, [
30
+ createVNode(unref(BSTextInput), {
31
+ "model-value": _ctx.value,
32
+ width: "100%",
33
+ "onUpdate:modelValue": emitUpdatePropertyValue
34
+ }, null, 8, ["model-value"])
35
+ ])
36
+ ]);
37
+ };
38
+ }
39
+ });
40
+ export {
41
+ _sfc_main as default
42
+ };
@@ -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-DzZG-nX6.js";
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-DzZG-nX6.js";
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" };
@@ -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-DzZG-nX6.js";
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-DzZG-nX6.js";
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-DzZG-nX6.js";
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-DzZG-nX6.js";
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"];
@@ -0,0 +1,23 @@
1
+ import { PartProperty } from '../../../model/part-property.ts';
2
+
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
4
+ property: PartProperty;
5
+ value?: string | undefined;
6
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ "update-property-value": (properties: Record<string, unknown>) => void;
8
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
9
+ property: PartProperty;
10
+ value?: string | undefined;
11
+ }>>> & Readonly<{
12
+ "onUpdate-property-value"?: ((properties: Record<string, unknown>) => any) | undefined;
13
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
14
+ export default _default;
15
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
16
+ type __VLS_TypePropsToRuntimeProps<T> = {
17
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
18
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
19
+ } : {
20
+ type: import('vue').PropType<T[K]>;
21
+ required: true;
22
+ };
23
+ };
@@ -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
- ...props.part.properties || {}
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,15 +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-16gz06lQ.js")),
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-Cmn1qGxH.js")),
8220
+ "multiline-text": () => defineAsyncComponent(() => import("./PbPropertyEditorMultilineText-BihLD7YL.js")),
8217
8221
  "select": () => defineAsyncComponent(() => import("./PbPropertyEditorSelect-B5sfulvx.js")),
8218
- "color": () => defineAsyncComponent(() => import("./PbPropertyEditorColor-KzGXbFkR.js")),
8219
- "image": () => defineAsyncComponent(() => import("./PbPropertyEditorImage-DFz4UHO9.js")),
8220
- "html": () => defineAsyncComponent(() => import("./PbPropertyEditorHtml-BBQDmW24.js")),
8221
- "youtube": () => defineAsyncComponent(() => import("./PbPropertyEditorYoutube-BdQ3Y7P6.js"))
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"))
8222
8227
  };
8223
8228
  };
8224
8229
  const getPropertyValueOfParts = (parts, propertyName) => {
@@ -9316,6 +9321,18 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
9316
9321
  };
9317
9322
  }
9318
9323
  });
9324
+ function toCssLength(value) {
9325
+ const cssLengthPattern = /^-?\d+(\.\d+)?(px|em|rem|%|vh|vw|vmin|vmax|ch|ex|cm|mm|in|pt|pc)$/;
9326
+ value = value.trim().replace(/\s+(?=[a-zA-Z%]+)/g, "");
9327
+ if (cssLengthPattern.test(value)) {
9328
+ return value;
9329
+ }
9330
+ const numberMatch = value.match(/-?\d+(\.\d+)?/);
9331
+ if (!numberMatch) {
9332
+ return "";
9333
+ }
9334
+ return `${numberMatch[0]}px`;
9335
+ }
9319
9336
  const _hoisted_1$o = { class: "group-editor group-editor-position" };
9320
9337
  const _hoisted_2$f = { class: "flex-align-center" };
9321
9338
  const _hoisted_3$c = { class: "title" };
@@ -9343,10 +9360,10 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
9343
9360
  { properties, targetParts: props.selectedParts }
9344
9361
  );
9345
9362
  };
9346
- const updateLeft = (value) => updatePropertyValue({ left: value });
9347
- const updateRight = (value) => updatePropertyValue({ right: value });
9348
- const updateTop = (value) => updatePropertyValue({ top: value });
9349
- const updateBottom = (value) => updatePropertyValue({ bottom: value });
9363
+ const updateLeft = (value) => updatePropertyValue({ left: toCssLength(value) });
9364
+ const updateRight = (value) => updatePropertyValue({ right: toCssLength(value) });
9365
+ const updateTop = (value) => updatePropertyValue({ top: toCssLength(value) });
9366
+ const updateBottom = (value) => updatePropertyValue({ bottom: toCssLength(value) });
9350
9367
  return (_ctx, _cache) => {
9351
9368
  return openBlock(), createElementBlock("div", _hoisted_1$o, [
9352
9369
  createElementVNode("div", _hoisted_2$f, [
@@ -9435,12 +9452,12 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
9435
9452
  { properties, targetParts: props.selectedParts }
9436
9453
  );
9437
9454
  };
9438
- const updateWidth = (value) => updatePropertyValue({ width: value });
9439
- const updateHeight = (value) => updatePropertyValue({ height: value });
9440
- const updateMaxWidth = (value) => updatePropertyValue({ maxWidth: value });
9441
- const updateMaxHeight = (value) => updatePropertyValue({ maxHeight: value });
9442
- const updateMinWidth = (value) => updatePropertyValue({ minWidth: value });
9443
- const updateMinHeight = (value) => updatePropertyValue({ minHeight: value });
9455
+ const updateWidth = (value) => updatePropertyValue({ width: toCssLength(value) });
9456
+ const updateHeight = (value) => updatePropertyValue({ height: toCssLength(value) });
9457
+ const updateMaxWidth = (value) => updatePropertyValue({ maxWidth: toCssLength(value) });
9458
+ const updateMaxHeight = (value) => updatePropertyValue({ maxHeight: toCssLength(value) });
9459
+ const updateMinWidth = (value) => updatePropertyValue({ minWidth: toCssLength(value) });
9460
+ const updateMinHeight = (value) => updatePropertyValue({ minHeight: toCssLength(value) });
9444
9461
  return (_ctx, _cache) => {
9445
9462
  return openBlock(), createElementBlock("div", _hoisted_1$n, [
9446
9463
  createElementVNode("div", _hoisted_2$e, [
@@ -11584,14 +11601,14 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
11584
11601
  const saveOriginalColor = () => {
11585
11602
  };
11586
11603
  const updateColor = (value) => updatePropertyValue({ borderColor: value });
11587
- const updateBorderLeftWidth = (value) => updatePropertyValue({ borderLeftWidth: value });
11588
- const updateBorderRightWidth = (value) => updatePropertyValue({ borderRightWidth: value });
11589
- const updateBorderTopWidth = (value) => updatePropertyValue({ borderTopWidth: value });
11590
- const updateBorderBottomWidth = (value) => updatePropertyValue({ borderBottomWidth: value });
11591
- const updateBorderTopLeftRadius = (value) => updatePropertyValue({ borderTopLeftRadius: value });
11592
- const updateBorderTopRightRadius = (value) => updatePropertyValue({ borderTopRightRadius: value });
11593
- const updateBorderBottomLeftRadius = (value) => updatePropertyValue({ borderBottomLeftRadius: value });
11594
- const updateBorderBottomRightRadius = (value) => updatePropertyValue({ borderBottomRightRadius: value });
11604
+ const updateBorderLeftWidth = (value) => updatePropertyValue({ borderLeftWidth: toCssLength(value) });
11605
+ const updateBorderRightWidth = (value) => updatePropertyValue({ borderRightWidth: toCssLength(value) });
11606
+ const updateBorderTopWidth = (value) => updatePropertyValue({ borderTopWidth: toCssLength(value) });
11607
+ const updateBorderBottomWidth = (value) => updatePropertyValue({ borderBottomWidth: toCssLength(value) });
11608
+ const updateBorderTopLeftRadius = (value) => updatePropertyValue({ borderTopLeftRadius: toCssLength(value) });
11609
+ const updateBorderTopRightRadius = (value) => updatePropertyValue({ borderTopRightRadius: toCssLength(value) });
11610
+ const updateBorderBottomLeftRadius = (value) => updatePropertyValue({ borderBottomLeftRadius: toCssLength(value) });
11611
+ const updateBorderBottomRightRadius = (value) => updatePropertyValue({ borderBottomRightRadius: toCssLength(value) });
11595
11612
  return (_ctx, _cache) => {
11596
11613
  return openBlock(), createElementBlock("div", _hoisted_1$f, [
11597
11614
  createElementVNode("div", _hoisted_2$6, [
@@ -11750,10 +11767,10 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
11750
11767
  { properties, targetParts: props.selectedParts }
11751
11768
  );
11752
11769
  };
11753
- const updateLeft = (value) => updatePropertyValue({ marginLeft: value });
11754
- const updateRight = (value) => updatePropertyValue({ marginRight: value });
11755
- const updateTop = (value) => updatePropertyValue({ marginTop: value });
11756
- const updateBottom = (value) => updatePropertyValue({ marginBottom: value });
11770
+ const updateLeft = (value) => updatePropertyValue({ marginLeft: toCssLength(value) });
11771
+ const updateRight = (value) => updatePropertyValue({ marginRight: toCssLength(value) });
11772
+ const updateTop = (value) => updatePropertyValue({ marginTop: toCssLength(value) });
11773
+ const updateBottom = (value) => updatePropertyValue({ marginBottom: toCssLength(value) });
11757
11774
  return (_ctx, _cache) => {
11758
11775
  return openBlock(), createElementBlock("div", _hoisted_1$e, [
11759
11776
  createElementVNode("div", _hoisted_2$5, [
@@ -11838,10 +11855,10 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
11838
11855
  { properties, targetParts: props.selectedParts }
11839
11856
  );
11840
11857
  };
11841
- const updateLeft = (value) => updatePropertyValue({ paddingLeft: value });
11842
- const updateRight = (value) => updatePropertyValue({ paddingRight: value });
11843
- const updateTop = (value) => updatePropertyValue({ paddingTop: value });
11844
- const updateBottom = (value) => updatePropertyValue({ paddingBottom: value });
11858
+ const updateLeft = (value) => updatePropertyValue({ paddingLeft: toCssLength(value) });
11859
+ const updateRight = (value) => updatePropertyValue({ paddingRight: toCssLength(value) });
11860
+ const updateTop = (value) => updatePropertyValue({ paddingTop: toCssLength(value) });
11861
+ const updateBottom = (value) => updatePropertyValue({ paddingBottom: toCssLength(value) });
11845
11862
  return (_ctx, _cache) => {
11846
11863
  return openBlock(), createElementBlock("div", _hoisted_1$d, [
11847
11864
  createElementVNode("div", _hoisted_2$4, [
@@ -11907,22 +11924,22 @@ const positionGroup = () => {
11907
11924
  {
11908
11925
  propertyName: "left",
11909
11926
  caption: "Left",
11910
- propertyType: "text"
11927
+ propertyType: "css-length"
11911
11928
  },
11912
11929
  {
11913
11930
  propertyName: "right",
11914
11931
  caption: "Right",
11915
- propertyType: "text"
11932
+ propertyType: "css-length"
11916
11933
  },
11917
11934
  {
11918
11935
  propertyName: "top",
11919
11936
  caption: "Top",
11920
- propertyType: "text"
11937
+ propertyType: "css-length"
11921
11938
  },
11922
11939
  {
11923
11940
  propertyName: "bottom",
11924
11941
  caption: "Bottom",
11925
- propertyType: "text"
11942
+ propertyType: "css-length"
11926
11943
  }
11927
11944
  ],
11928
11945
  propertyGroupEditor: () => _sfc_main$k
@@ -11936,32 +11953,32 @@ const sizeGroup = () => {
11936
11953
  {
11937
11954
  propertyName: "width",
11938
11955
  caption: "Width",
11939
- propertyType: "text"
11956
+ propertyType: "css-length"
11940
11957
  },
11941
11958
  {
11942
11959
  propertyName: "height",
11943
11960
  caption: "Height",
11944
- propertyType: "text"
11961
+ propertyType: "css-length"
11945
11962
  },
11946
11963
  {
11947
11964
  propertyName: "minWidth",
11948
11965
  caption: "Min Width",
11949
- propertyType: "text"
11966
+ propertyType: "css-length"
11950
11967
  },
11951
11968
  {
11952
11969
  propertyName: "minHeight",
11953
11970
  caption: "Min Height",
11954
- propertyType: "text"
11971
+ propertyType: "css-length"
11955
11972
  },
11956
11973
  {
11957
11974
  propertyName: "maxWidth",
11958
11975
  caption: "Max Width",
11959
- propertyType: "text"
11976
+ propertyType: "css-length"
11960
11977
  },
11961
11978
  {
11962
11979
  propertyName: "maxHeight",
11963
11980
  caption: "Max Height",
11964
- propertyType: "text"
11981
+ propertyType: "css-length"
11965
11982
  }
11966
11983
  ],
11967
11984
  propertyGroupEditor: () => _sfc_main$j
@@ -11975,22 +11992,22 @@ const marginGroup = () => {
11975
11992
  {
11976
11993
  propertyName: "marginLeft",
11977
11994
  caption: "Left",
11978
- propertyType: "text"
11995
+ propertyType: "css-length"
11979
11996
  },
11980
11997
  {
11981
11998
  propertyName: "marginRight",
11982
11999
  caption: "Right",
11983
- propertyType: "text"
12000
+ propertyType: "css-length"
11984
12001
  },
11985
12002
  {
11986
12003
  propertyName: "marginTop",
11987
12004
  caption: "Top",
11988
- propertyType: "text"
12005
+ propertyType: "css-length"
11989
12006
  },
11990
12007
  {
11991
12008
  propertyName: "marginBottom",
11992
12009
  caption: "Bottom",
11993
- propertyType: "text"
12010
+ propertyType: "css-length"
11994
12011
  }
11995
12012
  ],
11996
12013
  propertyGroupEditor: () => _sfc_main$f
@@ -12004,22 +12021,22 @@ const paddingGroup = () => {
12004
12021
  {
12005
12022
  propertyName: "paddingLeft",
12006
12023
  caption: "Left",
12007
- propertyType: "text"
12024
+ propertyType: "css-length"
12008
12025
  },
12009
12026
  {
12010
12027
  propertyName: "paddingRight",
12011
12028
  caption: "Right",
12012
- propertyType: "text"
12029
+ propertyType: "css-length"
12013
12030
  },
12014
12031
  {
12015
12032
  propertyName: "paddingTop",
12016
12033
  caption: "Top",
12017
- propertyType: "text"
12034
+ propertyType: "css-length"
12018
12035
  },
12019
12036
  {
12020
12037
  propertyName: "paddingBottom",
12021
12038
  caption: "Bottom",
12022
- propertyType: "text"
12039
+ propertyType: "css-length"
12023
12040
  }
12024
12041
  ],
12025
12042
  propertyGroupEditor: () => _sfc_main$e
@@ -12055,6 +12072,11 @@ const commonGroup = () => {
12055
12072
  caption: "pb.prop.style",
12056
12073
  propertyType: "multiline-text"
12057
12074
  },
12075
+ {
12076
+ propertyName: "widgetClassNames",
12077
+ caption: "pb.prop.widgetClassNames",
12078
+ propertyType: "text"
12079
+ },
12058
12080
  {
12059
12081
  propertyName: "partId",
12060
12082
  caption: "pb.prop.partId",
@@ -12174,42 +12196,42 @@ const borderGroup = () => {
12174
12196
  {
12175
12197
  propertyName: "borderLeftWidth",
12176
12198
  caption: "Border Left Width",
12177
- propertyType: "text"
12199
+ propertyType: "css-length"
12178
12200
  },
12179
12201
  {
12180
12202
  propertyName: "borderRightWidth",
12181
12203
  caption: "Border Right Width",
12182
- propertyType: "text"
12204
+ propertyType: "css-length"
12183
12205
  },
12184
12206
  {
12185
12207
  propertyName: "borderTopWidth",
12186
12208
  caption: "Border Top Width",
12187
- propertyType: "text"
12209
+ propertyType: "css-length"
12188
12210
  },
12189
12211
  {
12190
12212
  propertyName: "borderBottomWidth",
12191
12213
  caption: "Border Bottom Width",
12192
- propertyType: "text"
12214
+ propertyType: "css-length"
12193
12215
  },
12194
12216
  {
12195
12217
  propertyName: "borderTopLeftRadius",
12196
12218
  caption: "Border Top Left Radius",
12197
- propertyType: "text"
12219
+ propertyType: "css-length"
12198
12220
  },
12199
12221
  {
12200
12222
  propertyName: "borderTopRightRadius",
12201
12223
  caption: "Border Top Right Radius",
12202
- propertyType: "text"
12224
+ propertyType: "css-length"
12203
12225
  },
12204
12226
  {
12205
12227
  propertyName: "borderBottomLeftRadius",
12206
12228
  caption: "Border Bottom Left Radius",
12207
- propertyType: "text"
12229
+ propertyType: "css-length"
12208
12230
  },
12209
12231
  {
12210
12232
  propertyName: "borderBottomRightRadius",
12211
12233
  caption: "Border Bottom Right Radius",
12212
- propertyType: "text"
12234
+ propertyType: "css-length"
12213
12235
  }
12214
12236
  ],
12215
12237
  propertyGroupEditor: () => _sfc_main$g
@@ -12757,7 +12779,7 @@ __publicField(_OpenAddWidgetModalCommand, "COMMAND_ID", "OpenAddWidgetModal");
12757
12779
  let OpenAddWidgetModalCommand = _OpenAddWidgetModalCommand;
12758
12780
  const openWidgetAddModal = (modal, args, callback) => {
12759
12781
  modal.openModal({
12760
- component: defineAsyncComponent(() => import("./PbWidgetAddModal-Cqlbs46k.js")),
12782
+ component: defineAsyncComponent(() => import("./PbWidgetAddModal-BM6etjo4.js")),
12761
12783
  style: {
12762
12784
  width: "80%",
12763
12785
  height: "80%",
@@ -15166,7 +15188,7 @@ const enTexts = [
15166
15188
  },
15167
15189
  {
15168
15190
  key: "pb.prop.classNames",
15169
- text: "Class Names"
15191
+ text: "CSS Class Names"
15170
15192
  },
15171
15193
  {
15172
15194
  key: "pb.prop.inlineStyle",
@@ -15176,6 +15198,10 @@ const enTexts = [
15176
15198
  key: "pb.prop.style",
15177
15199
  text: "CSS Style"
15178
15200
  },
15201
+ {
15202
+ key: "pb.prop.widgetClassNames",
15203
+ text: "Widget Class Names"
15204
+ },
15179
15205
  {
15180
15206
  key: "pb.prop.partId",
15181
15207
  text: "ID"
@@ -15496,7 +15522,7 @@ const jaTexts = [
15496
15522
  },
15497
15523
  {
15498
15524
  key: "pb.prop.classNames",
15499
- text: "クラス名"
15525
+ text: "CSS クラス"
15500
15526
  },
15501
15527
  {
15502
15528
  key: "pb.prop.inlineStyle",
@@ -15506,6 +15532,10 @@ const jaTexts = [
15506
15532
  key: "pb.prop.style",
15507
15533
  text: "CSS スタイル"
15508
15534
  },
15535
+ {
15536
+ key: "pb.prop.widgetClassNames",
15537
+ text: "ウィジェットの CSS クラス"
15538
+ },
15509
15539
  {
15510
15540
  key: "pb.prop.partId",
15511
15541
  text: "ID"
@@ -15836,6 +15866,10 @@ const koTexts = [
15836
15866
  key: "pb.prop.style",
15837
15867
  text: "CSS 스타일"
15838
15868
  },
15869
+ {
15870
+ key: "pb.prop.widgetClassNames",
15871
+ text: "위젯 CSS 클래스"
15872
+ },
15839
15873
  {
15840
15874
  key: "pb.prop.partId",
15841
15875
  text: "ID"
@@ -16156,7 +16190,7 @@ const zhTexts = [
16156
16190
  },
16157
16191
  {
16158
16192
  key: "pb.prop.classNames",
16159
- text: "类名"
16193
+ text: "CSS 类名"
16160
16194
  },
16161
16195
  {
16162
16196
  key: "pb.prop.inlineStyle",
@@ -16166,6 +16200,10 @@ const zhTexts = [
16166
16200
  key: "pb.prop.style",
16167
16201
  text: "CSS 样式"
16168
16202
  },
16203
+ {
16204
+ key: "pb.prop.widgetClassNames",
16205
+ text: "小部件的 CSS 类名"
16206
+ },
16169
16207
  {
16170
16208
  key: "pb.prop.partId",
16171
16209
  text: "ID"
@@ -16461,10 +16499,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
16461
16499
  }
16462
16500
  });
16463
16501
  export {
16464
- usePageBuilder as A,
16502
+ providePageBuilderViewer as A,
16465
16503
  BLOCK_TYPE$1 as B,
16466
16504
  ChangePropertyCommand as C,
16467
- usePageBuilderViewer as D,
16505
+ usePageBuilder as D,
16506
+ usePageBuilderViewer as E,
16468
16507
  Model$1 as M,
16469
16508
  PbColorPicker as P,
16470
16509
  ROOT_TYPE$1 as R,
@@ -16490,11 +16529,11 @@ export {
16490
16529
  Widget as q,
16491
16530
  createPageBuilderViewer as r,
16492
16531
  selectYoutubeVideo as s,
16493
- createPartComponent as t,
16532
+ toCssLength as t,
16494
16533
  usePageBuilderEditor as u,
16495
- createPartComponents as v,
16534
+ createPartComponent as v,
16496
16535
  widgetPartDefinitions as w,
16497
- getPartClassName as x,
16498
- providePageBuilder as y,
16499
- providePageBuilderViewer as z
16536
+ createPartComponents as x,
16537
+ getPartClassName as y,
16538
+ providePageBuilder as z
16500
16539
  };
@@ -1,7 +1,7 @@
1
1
  import { IPart } from '@g1cloud/page-builder-viewer';
2
2
  import { Component } from 'vue';
3
3
 
4
- export type PartPropertyType = 'readonly-text' | 'text' | 'number' | 'boolean' | 'multiline-text' | 'select' | string;
4
+ export type PartPropertyType = 'readonly-text' | 'text' | 'number' | 'boolean' | 'multiline-text' | 'select' | 'css-length' | string;
5
5
  export type PartPropertyEditor = (property: PartProperty, parts: IPart[]) => Component | undefined;
6
6
  export type PartProperty = {
7
7
  propertyName: string;
@@ -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-DzZG-nX6.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, 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,
@@ -24,11 +24,11 @@ export {
24
24
  W as WIDGET_TYPE,
25
25
  q as Widget,
26
26
  r as createPageBuilderViewer,
27
- t as createPartComponent,
28
- v as createPartComponents,
29
- x as getPartClassName,
30
- y as providePageBuilder,
31
- z as providePageBuilderViewer,
32
- A as usePageBuilder,
33
- D as usePageBuilderViewer
27
+ v as createPartComponent,
28
+ x as createPartComponents,
29
+ y as getPartClassName,
30
+ z as providePageBuilder,
31
+ A as providePageBuilderViewer,
32
+ D as usePageBuilder,
33
+ E as usePageBuilderViewer
34
34
  };