@g1cloud/page-builder-editor 1.0.0-alpha.2 → 1.0.0-alpha.21
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/canvas-block.scss +1 -1
- package/css/canvas-section.scss +1 -1
- package/css/canvas-widget.scss +1 -1
- package/css/canvas.scss +1 -2
- package/css/page-builder-editor.scss +84 -12
- package/css/property-editor-color.scss +5 -0
- package/css/property-editor-html.scss +16 -0
- package/css/property-editor-image.scss +1 -1
- package/css/property-group-editor-background.scss +1 -13
- package/css/property-group-editor-border.scss +6 -12
- package/css/property-group-editor-margin.scss +0 -11
- package/css/property-group-editor-padding.scss +0 -11
- package/css/property-group-editor-position.scss +0 -11
- package/css/property-group-editor-size.scss +0 -11
- package/css/property-localpart.scss +2 -2
- package/dist/PageBuilderEditor.vue.d.ts +13 -5
- package/dist/PbHtmlEditorModal-aaecwH7V.js +131 -0
- package/dist/PbPropertyEditorColor-BFMkFOYX.js +57 -0
- package/dist/PbPropertyEditorHtml-DZw8qbJH.js +58 -0
- package/dist/{PbPropertyEditorImage-DA92v7AE.js → PbPropertyEditorImage-BQhiQyNM.js} +8 -8
- package/dist/PbPropertyEditorMultilineText-CT3vTbYY.js +67 -0
- package/dist/{PbPropertyEditorReadonlyText-Bk0WJxA0.js → PbPropertyEditorReadonlyText-Dgp_AVOD.js} +1 -1
- package/dist/{PbPropertyEditorSelect-BJovN1su.js → PbPropertyEditorSelect-CWedbXJI.js} +1 -1
- package/dist/{PbPropertyEditorText-DNdXl-Tr.js → PbPropertyEditorText-DmM_LMjC.js} +15 -5
- package/dist/PbScreenSelectModal-DDATc9n1.js +67 -0
- package/dist/{PbWidgetAddModal-CQvFYzfU.js → PbWidgetAddModal-BoYfb0dm.js} +32 -8
- package/dist/components/menu/PbMenu.vue.d.ts +16 -1
- package/dist/components/menu/PbToolbar.vue.d.ts +16 -1
- package/dist/components/modal/PbHtmlEditorModal.vue.d.ts +25 -0
- package/dist/components/modal/PbScreenSelectModal.vue.d.ts +6 -0
- package/dist/components/sidebar/property/{PbPropertyLocalMarketingPart.vue.d.ts → PbPropertyEditorHtml.vue.d.ts} +7 -7
- package/dist/components/sidebar/property/PbPropertyEditorMultilineText.vue.d.ts +6 -4
- package/dist/components/sidebar/property/PbPropertyEditorText.vue.d.ts +5 -4
- package/dist/components/ui/PbColorPicker.vue.d.ts +2 -2
- package/dist/{index-Dwk2ffWe.js → index-Cr-_-n9T.js} +1502 -1167
- package/dist/index.d.ts +1 -0
- package/dist/model/command.d.ts +26 -13
- package/dist/model/context.d.ts +10 -13
- package/dist/model/event.d.ts +0 -56
- package/dist/model/model.d.ts +11 -4
- package/dist/model/page-builder-editor.d.ts +39 -7
- package/dist/model/page-builder-util.d.ts +2 -2
- package/dist/model/part-definintion.d.ts +4 -1
- package/dist/model/part-manager.d.ts +0 -1
- package/dist/model/part-property.d.ts +1 -0
- package/dist/model/plugin.d.ts +10 -0
- package/dist/page-builder-editor.js +23 -19
- package/dist/page-builder-editor.umd.cjs +1910 -1310
- package/package.json +4 -3
- package/dist/PbPartAddModal-DuLpnV4E.js +0 -50
- package/dist/PbPropertyEditorMultilineText-BMeNUGm8.js +0 -42
- package/dist/PbPropertyEditorProduct-CkydxTwD.js +0 -49
- /package/dist/components/sidebar/property/{PbPropertyEditorProduct.vue.d.ts → PbPropertyEditorColor.vue.d.ts} +0 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, createElementVNode, toDisplayString, createBlock, unref } from "vue";
|
|
2
|
+
import { BSMultiLangTextArea, BSTextArea } from "@g1cloud/bluesea";
|
|
3
|
+
import { u as usePageBuilderEditor } from "./index-Cr-_-n9T.js";
|
|
4
|
+
const _hoisted_1 = { class: "property-editor property-editor-multiline-text" };
|
|
5
|
+
const _hoisted_2 = { class: "title" };
|
|
6
|
+
const _hoisted_3 = ["textContent"];
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "PbPropertyEditorMultilineText",
|
|
9
|
+
props: {
|
|
10
|
+
property: {},
|
|
11
|
+
value: {}
|
|
12
|
+
},
|
|
13
|
+
emits: ["update-property-value"],
|
|
14
|
+
setup(__props, { emit: __emit }) {
|
|
15
|
+
const props = __props;
|
|
16
|
+
const emit = __emit;
|
|
17
|
+
const pageBuilder = usePageBuilderEditor();
|
|
18
|
+
const locales = computed(() => pageBuilder.getLocales());
|
|
19
|
+
const text = computed({
|
|
20
|
+
get() {
|
|
21
|
+
return props.value;
|
|
22
|
+
},
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
set(value) {
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
const emitUpdatePropertyValue = (value) => {
|
|
28
|
+
const properties = {};
|
|
29
|
+
properties[props.property.propertyName] = value;
|
|
30
|
+
emit("update-property-value", properties);
|
|
31
|
+
};
|
|
32
|
+
return (_ctx, _cache) => {
|
|
33
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
34
|
+
createElementVNode("div", _hoisted_2, [
|
|
35
|
+
createElementVNode("label", {
|
|
36
|
+
textContent: toDisplayString(_ctx.property.caption)
|
|
37
|
+
}, null, 8, _hoisted_3)
|
|
38
|
+
]),
|
|
39
|
+
createElementVNode("div", null, [
|
|
40
|
+
_ctx.property.multiLang ? (openBlock(), createBlock(unref(BSMultiLangTextArea), {
|
|
41
|
+
key: 0,
|
|
42
|
+
modelValue: text.value,
|
|
43
|
+
"onUpdate:modelValue": [
|
|
44
|
+
_cache[0] || (_cache[0] = ($event) => text.value = $event),
|
|
45
|
+
emitUpdatePropertyValue
|
|
46
|
+
],
|
|
47
|
+
locales: locales.value,
|
|
48
|
+
height: "60px",
|
|
49
|
+
width: "100%"
|
|
50
|
+
}, null, 8, ["modelValue", "locales"])) : (openBlock(), createBlock(unref(BSTextArea), {
|
|
51
|
+
key: 1,
|
|
52
|
+
modelValue: text.value,
|
|
53
|
+
"onUpdate:modelValue": [
|
|
54
|
+
_cache[1] || (_cache[1] = ($event) => text.value = $event),
|
|
55
|
+
emitUpdatePropertyValue
|
|
56
|
+
],
|
|
57
|
+
height: "60px",
|
|
58
|
+
width: "100%"
|
|
59
|
+
}, null, 8, ["modelValue"]))
|
|
60
|
+
])
|
|
61
|
+
]);
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
export {
|
|
66
|
+
_sfc_main as default
|
|
67
|
+
};
|
package/dist/{PbPropertyEditorReadonlyText-Bk0WJxA0.js → PbPropertyEditorReadonlyText-Dgp_AVOD.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, createElementVNode, toDisplayString } from "vue";
|
|
2
2
|
const _hoisted_1 = { class: "property-editor property-editor-readonly-text" };
|
|
3
|
-
const _hoisted_2 = { class: "
|
|
3
|
+
const _hoisted_2 = { class: "title" };
|
|
4
4
|
const _hoisted_3 = ["textContent"];
|
|
5
5
|
const _hoisted_4 = ["textContent"];
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createElementBlock, createElementVNode, toDisplayString, createVNode, unref } from "vue";
|
|
2
2
|
import { BSSelect } from "@g1cloud/bluesea";
|
|
3
3
|
const _hoisted_1 = { class: "property-editor property-editor-select flex-align-center" };
|
|
4
|
-
const _hoisted_2 = { class: "
|
|
4
|
+
const _hoisted_2 = { class: "title" };
|
|
5
5
|
const _hoisted_3 = ["textContent"];
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
7
|
__name: "PbPropertyEditorSelect",
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createElementBlock, createElementVNode, toDisplayString,
|
|
2
|
-
import { BSTextInput } from "@g1cloud/bluesea";
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, createElementVNode, toDisplayString, createBlock, unref } from "vue";
|
|
2
|
+
import { BSMultiLangTextInput, BSTextInput } from "@g1cloud/bluesea";
|
|
3
|
+
import { u as usePageBuilderEditor } from "./index-Cr-_-n9T.js";
|
|
3
4
|
const _hoisted_1 = { class: "property-editor property-editor-text flex-align-center" };
|
|
4
|
-
const _hoisted_2 = { class: "
|
|
5
|
+
const _hoisted_2 = { class: "title" };
|
|
5
6
|
const _hoisted_3 = ["textContent"];
|
|
6
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
8
|
__name: "PbPropertyEditorText",
|
|
@@ -13,6 +14,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13
14
|
setup(__props, { emit: __emit }) {
|
|
14
15
|
const props = __props;
|
|
15
16
|
const emit = __emit;
|
|
17
|
+
const pageBuilder = usePageBuilderEditor();
|
|
18
|
+
const locales = computed(() => pageBuilder.getLocales());
|
|
16
19
|
const emitUpdatePropertyValue = (value) => {
|
|
17
20
|
const properties = {};
|
|
18
21
|
properties[props.property.propertyName] = value;
|
|
@@ -26,11 +29,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
26
29
|
}, null, 8, _hoisted_3)
|
|
27
30
|
]),
|
|
28
31
|
createElementVNode("div", null, [
|
|
29
|
-
|
|
32
|
+
_ctx.property.multiLang ? (openBlock(), createBlock(unref(BSMultiLangTextInput), {
|
|
33
|
+
key: 0,
|
|
34
|
+
locales: locales.value,
|
|
30
35
|
"model-value": _ctx.value,
|
|
31
36
|
width: "100%",
|
|
32
37
|
"onUpdate:modelValue": emitUpdatePropertyValue
|
|
33
|
-
}, null, 8, ["model-value"])
|
|
38
|
+
}, null, 8, ["locales", "model-value"])) : (openBlock(), createBlock(unref(BSTextInput), {
|
|
39
|
+
key: 1,
|
|
40
|
+
"model-value": _ctx.value,
|
|
41
|
+
width: "100%",
|
|
42
|
+
"onUpdate:modelValue": emitUpdatePropertyValue
|
|
43
|
+
}, null, 8, ["model-value"]))
|
|
34
44
|
])
|
|
35
45
|
]);
|
|
36
46
|
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { defineComponent, ref, openBlock, createBlock, unref, withCtx, createElementVNode, createVNode } from "vue";
|
|
2
|
+
import { useModalHandle, BSModalFrame, BSRadioButton, BSButton } from "@g1cloud/bluesea";
|
|
3
|
+
const _hoisted_1 = { class: "mb-16" };
|
|
4
|
+
const _hoisted_2 = /* @__PURE__ */ createElementVNode("label", { class: "mr-8" }, "Which screen do you want to keep?", -1);
|
|
5
|
+
const _hoisted_3 = { class: "text-right" };
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "PbScreenSelectModal",
|
|
8
|
+
emits: ["select"],
|
|
9
|
+
setup(__props, { emit: __emit }) {
|
|
10
|
+
const emit = __emit;
|
|
11
|
+
const selection = ref("0");
|
|
12
|
+
const modalHandle = useModalHandle();
|
|
13
|
+
const close = () => {
|
|
14
|
+
modalHandle.close();
|
|
15
|
+
};
|
|
16
|
+
const ok = () => {
|
|
17
|
+
emit("select", parseInt(selection.value));
|
|
18
|
+
modalHandle.close();
|
|
19
|
+
};
|
|
20
|
+
return (_ctx, _cache) => {
|
|
21
|
+
return openBlock(), createBlock(unref(BSModalFrame), { title: "Screen Selection" }, {
|
|
22
|
+
default: withCtx(() => [
|
|
23
|
+
createElementVNode("div", null, [
|
|
24
|
+
createElementVNode("div", _hoisted_1, [
|
|
25
|
+
_hoisted_2,
|
|
26
|
+
createElementVNode("div", null, [
|
|
27
|
+
createVNode(unref(BSRadioButton), {
|
|
28
|
+
modelValue: selection.value,
|
|
29
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selection.value = $event),
|
|
30
|
+
"item-value": "0",
|
|
31
|
+
label: "Mobile",
|
|
32
|
+
name: "mobile"
|
|
33
|
+
}, null, 8, ["modelValue"]),
|
|
34
|
+
createVNode(unref(BSRadioButton), {
|
|
35
|
+
modelValue: selection.value,
|
|
36
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => selection.value = $event),
|
|
37
|
+
"item-value": "1",
|
|
38
|
+
class: "ml-8",
|
|
39
|
+
label: "PC",
|
|
40
|
+
name: "pc"
|
|
41
|
+
}, null, 8, ["modelValue"])
|
|
42
|
+
])
|
|
43
|
+
])
|
|
44
|
+
])
|
|
45
|
+
]),
|
|
46
|
+
buttons: withCtx(() => [
|
|
47
|
+
createElementVNode("div", _hoisted_3, [
|
|
48
|
+
createVNode(unref(BSButton), {
|
|
49
|
+
"button-color": "blue",
|
|
50
|
+
caption: "OK",
|
|
51
|
+
onClick: ok
|
|
52
|
+
}),
|
|
53
|
+
createVNode(unref(BSButton), {
|
|
54
|
+
caption: "Cancel",
|
|
55
|
+
class: "ml-8",
|
|
56
|
+
onClick: close
|
|
57
|
+
})
|
|
58
|
+
])
|
|
59
|
+
]),
|
|
60
|
+
_: 1
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
export {
|
|
66
|
+
_sfc_main as default
|
|
67
|
+
};
|
|
@@ -1,9 +1,20 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createBlock, unref, withCtx, createElementVNode, createElementBlock, Fragment, renderList, toDisplayString } from "vue";
|
|
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-Cr-_-n9T.js";
|
|
3
4
|
const _hoisted_1 = { class: "bs-layout-vertical pb-part-add-modal" };
|
|
4
|
-
const _hoisted_2 =
|
|
5
|
+
const _hoisted_2 = /* @__PURE__ */ createElementVNode("div", {
|
|
6
|
+
class: "mb-8",
|
|
7
|
+
textContent: "Basic Widgets"
|
|
8
|
+
}, null, -1);
|
|
5
9
|
const _hoisted_3 = { class: "bs-layout-horizontal-wrap ml-16 mb-8 gap-8" };
|
|
6
10
|
const _hoisted_4 = ["onClick", "textContent"];
|
|
11
|
+
const _hoisted_5 = { class: "group mb-16" };
|
|
12
|
+
const _hoisted_6 = /* @__PURE__ */ createElementVNode("div", {
|
|
13
|
+
class: "mb-8",
|
|
14
|
+
textContent: "Custom Widgets"
|
|
15
|
+
}, null, -1);
|
|
16
|
+
const _hoisted_7 = { class: "bs-layout-horizontal-wrap ml-16 mb-8 gap-8" };
|
|
17
|
+
const _hoisted_8 = ["onClick", "textContent"];
|
|
7
18
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
19
|
__name: "PbWidgetAddModal",
|
|
9
20
|
props: {
|
|
@@ -12,9 +23,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
12
23
|
},
|
|
13
24
|
emits: ["selectHandler"],
|
|
14
25
|
setup(__props, { emit: __emit }) {
|
|
26
|
+
const props = __props;
|
|
15
27
|
const emit = __emit;
|
|
16
28
|
const modalHandle = useModalHandle();
|
|
29
|
+
const customWidgets = computed(() => props.pageBuilder.getCustomWidgets());
|
|
17
30
|
const select = (partDefinition) => {
|
|
31
|
+
console.log(partDefinition);
|
|
18
32
|
emit("selectHandler", partDefinition);
|
|
19
33
|
modalHandle.close();
|
|
20
34
|
};
|
|
@@ -22,15 +36,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
22
36
|
return openBlock(), createBlock(unref(BSModalFrame), { title: "Add Block/Widget" }, {
|
|
23
37
|
default: withCtx(() => [
|
|
24
38
|
createElementVNode("div", _hoisted_1, [
|
|
25
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
39
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(widgetPartDefinitions), (group) => {
|
|
26
40
|
return openBlock(), createElementBlock("div", {
|
|
27
41
|
key: group.groupName,
|
|
28
42
|
class: "group mb-16"
|
|
29
43
|
}, [
|
|
30
|
-
|
|
31
|
-
class: "mb-8",
|
|
32
|
-
textContent: toDisplayString(group.caption)
|
|
33
|
-
}, null, 8, _hoisted_2),
|
|
44
|
+
_hoisted_2,
|
|
34
45
|
createElementVNode("div", _hoisted_3, [
|
|
35
46
|
(openBlock(true), createElementBlock(Fragment, null, renderList(group.partDefinitions, (part) => {
|
|
36
47
|
return openBlock(), createElementBlock("div", {
|
|
@@ -42,7 +53,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
42
53
|
}), 128))
|
|
43
54
|
])
|
|
44
55
|
]);
|
|
45
|
-
}), 128))
|
|
56
|
+
}), 128)),
|
|
57
|
+
createElementVNode("div", _hoisted_5, [
|
|
58
|
+
_hoisted_6,
|
|
59
|
+
createElementVNode("div", _hoisted_7, [
|
|
60
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(customWidgets.value, (part) => {
|
|
61
|
+
return openBlock(), createElementBlock("div", {
|
|
62
|
+
key: part.partName,
|
|
63
|
+
class: "part",
|
|
64
|
+
onClick: ($event) => select(part),
|
|
65
|
+
textContent: toDisplayString(part.caption)
|
|
66
|
+
}, null, 8, _hoisted_8);
|
|
67
|
+
}), 128))
|
|
68
|
+
])
|
|
69
|
+
])
|
|
46
70
|
])
|
|
47
71
|
]),
|
|
48
72
|
_: 1
|
|
@@ -1,2 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
import { PageBuilderToolbarPlugin } from '../../model/plugin.ts';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
toolbarPlugin?: PageBuilderToolbarPlugin | undefined;
|
|
5
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
6
|
+
toolbarPlugin?: PageBuilderToolbarPlugin | undefined;
|
|
7
|
+
}>>>, {}, {}>;
|
|
2
8
|
export default _default;
|
|
9
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
10
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
11
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
12
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
13
|
+
} : {
|
|
14
|
+
type: import('vue').PropType<T[K]>;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -1,2 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
import { PageBuilderToolbarPlugin } from '../../model/plugin.ts';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
plugin?: PageBuilderToolbarPlugin | undefined;
|
|
5
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
6
|
+
plugin?: PageBuilderToolbarPlugin | undefined;
|
|
7
|
+
}>>>, {}, {}>;
|
|
2
8
|
export default _default;
|
|
9
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
10
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
11
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
12
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
13
|
+
} : {
|
|
14
|
+
type: import('vue').PropType<T[K]>;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { TabEntry } from '@g1cloud/bluesea';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
html?: Record<string, unknown> | undefined;
|
|
5
|
+
locales?: string[] | undefined;
|
|
6
|
+
localeTabs?: TabEntry[] | undefined;
|
|
7
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
updateHtml: (html: Record<string, unknown>) => void;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
10
|
+
html?: Record<string, unknown> | undefined;
|
|
11
|
+
locales?: string[] | undefined;
|
|
12
|
+
localeTabs?: TabEntry[] | undefined;
|
|
13
|
+
}>>> & {
|
|
14
|
+
onUpdateHtml?: ((html: Record<string, unknown>) => any) | undefined;
|
|
15
|
+
}, {}, {}>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
18
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
19
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
20
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
21
|
+
} : {
|
|
22
|
+
type: import('vue').PropType<T[K]>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
2
|
+
select: (selection: number) => void;
|
|
3
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>> & {
|
|
4
|
+
onSelect?: ((selection: number) => any) | undefined;
|
|
5
|
+
}, {}, {}>;
|
|
6
|
+
export default _default;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PartProperty } from '../../../model/part-property.ts';
|
|
2
2
|
|
|
3
3
|
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
-
|
|
4
|
+
property: PartProperty;
|
|
5
|
+
value?: unknown;
|
|
5
6
|
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
-
"
|
|
7
|
-
"update-property-value": (properties: Record<string, string>) => void;
|
|
7
|
+
"update-property-value": (properties: Record<string, unknown>) => void;
|
|
8
8
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
-
|
|
9
|
+
property: PartProperty;
|
|
10
|
+
value?: unknown;
|
|
10
11
|
}>>> & {
|
|
11
|
-
"onUpdate-property-value"?: ((properties: Record<string,
|
|
12
|
-
"onSelect-schedule"?: (() => any) | undefined;
|
|
12
|
+
"onUpdate-property-value"?: ((properties: Record<string, unknown>) => any) | undefined;
|
|
13
13
|
}, {}, {}>;
|
|
14
14
|
export default _default;
|
|
15
15
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
+
import { MultiLangText } from '@g1cloud/page-builder-viewer';
|
|
1
2
|
import { PartProperty } from '../../../model/part-property.ts';
|
|
3
|
+
import { MultiLangString } from '@g1cloud/bluesea';
|
|
2
4
|
|
|
3
5
|
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
4
6
|
property: PartProperty;
|
|
5
|
-
value?:
|
|
7
|
+
value?: MultiLangString | undefined;
|
|
6
8
|
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
-
"update-property-value": (properties: Record<string,
|
|
9
|
+
"update-property-value": (properties: Record<string, MultiLangText>) => void;
|
|
8
10
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
9
11
|
property: PartProperty;
|
|
10
|
-
value?:
|
|
12
|
+
value?: MultiLangString | undefined;
|
|
11
13
|
}>>> & {
|
|
12
|
-
"onUpdate-property-value"?: ((properties: Record<string,
|
|
14
|
+
"onUpdate-property-value"?: ((properties: Record<string, MultiLangText>) => any) | undefined;
|
|
13
15
|
}, {}, {}>;
|
|
14
16
|
export default _default;
|
|
15
17
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { PartProperty } from '../../../model/part-property.ts';
|
|
2
|
+
import { MultiLangString } from '@g1cloud/bluesea';
|
|
2
3
|
|
|
3
4
|
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
4
5
|
property: PartProperty;
|
|
5
|
-
value?: string | undefined;
|
|
6
|
+
value?: string | MultiLangString | undefined;
|
|
6
7
|
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
-
"update-property-value": (properties: Record<string,
|
|
8
|
+
"update-property-value": (properties: Record<string, unknown>) => void;
|
|
8
9
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
9
10
|
property: PartProperty;
|
|
10
|
-
value?: string | undefined;
|
|
11
|
+
value?: string | MultiLangString | undefined;
|
|
11
12
|
}>>> & {
|
|
12
|
-
"onUpdate-property-value"?: ((properties: Record<string,
|
|
13
|
+
"onUpdate-property-value"?: ((properties: Record<string, unknown>) => any) | undefined;
|
|
13
14
|
}, {}, {}>;
|
|
14
15
|
export default _default;
|
|
15
16
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -5,10 +5,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
5
5
|
default: string;
|
|
6
6
|
};
|
|
7
7
|
}, {
|
|
8
|
-
appliedColor: import('vue').ComputedRef<
|
|
8
|
+
appliedColor: import('vue').ComputedRef<any>;
|
|
9
9
|
isShowColorPicker: import('vue').Ref<boolean>;
|
|
10
10
|
toggle: (value?: boolean) => void;
|
|
11
|
-
color: import('vue').Ref<
|
|
11
|
+
color: import('vue').Ref<any>;
|
|
12
12
|
emptyColor: () => void;
|
|
13
13
|
colorHistory: string[] | undefined;
|
|
14
14
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|