@g1cloud/page-builder-editor 1.0.0-alpha.12 → 1.0.0-alpha.14
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/dist/PageBuilderEditor.vue.d.ts +4 -0
- package/dist/{HtmlEditorModal-CRzp6l55.js → PbHtmlEditorModal-aaecwH7V.js} +1 -1
- package/dist/{PbPropertyEditorColor-DXkzD-V2.js → PbPropertyEditorColor-CZHXz7K6.js} +1 -1
- package/dist/{PbPropertyEditorHtml-CbEOlq-s.js → PbPropertyEditorHtml-Bid2WYyb.js} +2 -2
- package/dist/{PbPropertyEditorImage-5RZoQbLF.js → PbPropertyEditorImage-N4VYkBhB.js} +1 -1
- package/dist/{PbPropertyEditorMultilineText-BMF9jHpy.js → PbPropertyEditorMultilineText-BFGht6hc.js} +1 -1
- package/dist/{PbPropertyEditorProduct-Dt5vraZc.js → PbPropertyEditorProduct-myd2_r0t.js} +1 -1
- package/dist/PbScreenSelectModal-DDATc9n1.js +67 -0
- package/dist/components/menu/PbMenu.vue.d.ts +16 -1
- package/dist/components/menu/PbToolbar.vue.d.ts +16 -1
- package/dist/components/modal/PbScreenSelectModal.vue.d.ts +6 -0
- package/dist/{index-BFtI1jYj.js → index-CuI4K01B.js} +210 -91
- package/dist/index.d.ts +1 -0
- package/dist/model/page-builder-editor.d.ts +4 -0
- package/dist/model/plugin.d.ts +10 -0
- package/dist/page-builder-editor.js +1 -1
- package/dist/page-builder-editor.umd.cjs +494 -309
- package/package.json +2 -2
- /package/dist/components/modal/{HtmlEditorModal.vue.d.ts → PbHtmlEditorModal.vue.d.ts} +0 -0
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { PageBuilderToolbarPlugin } from './model/plugin.ts';
|
|
2
|
+
|
|
1
3
|
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
2
4
|
instanceId?: string | undefined;
|
|
3
5
|
title?: string | undefined;
|
|
@@ -5,6 +7,7 @@ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
5
7
|
pageContent?: any;
|
|
6
8
|
locales?: string[] | undefined;
|
|
7
9
|
locale?: string | undefined;
|
|
10
|
+
toolbarPlugin?: PageBuilderToolbarPlugin | undefined;
|
|
8
11
|
}>, {
|
|
9
12
|
getLocalDesignPartContent: () => any[] | undefined;
|
|
10
13
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
@@ -14,6 +17,7 @@ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
14
17
|
pageContent?: any;
|
|
15
18
|
locales?: string[] | undefined;
|
|
16
19
|
locale?: string | undefined;
|
|
20
|
+
toolbarPlugin?: PageBuilderToolbarPlugin | undefined;
|
|
17
21
|
}>>>, {}, {}>;
|
|
18
22
|
export default _default;
|
|
19
23
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -14,7 +14,7 @@ const _hoisted_11 = { class: "style bs-layout-vertical w-full pt-8" };
|
|
|
14
14
|
const _hoisted_12 = /* @__PURE__ */ createElementVNode("div", { class: "title pb-4" }, "Style", -1);
|
|
15
15
|
const _hoisted_13 = { class: "content flex-grow-1" };
|
|
16
16
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
17
|
-
__name: "
|
|
17
|
+
__name: "PbHtmlEditorModal",
|
|
18
18
|
props: {
|
|
19
19
|
html: {},
|
|
20
20
|
locales: {},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, createVNode, unref } from "vue";
|
|
2
2
|
import { BSTextInput } from "@g1cloud/bluesea";
|
|
3
|
-
import { P as PbColorPicker } from "./index-
|
|
3
|
+
import { P as PbColorPicker } from "./index-CuI4K01B.js";
|
|
4
4
|
const _hoisted_1 = { class: "property-editor property-editor-color" };
|
|
5
5
|
const _hoisted_2 = { class: "title" };
|
|
6
6
|
const _hoisted_3 = ["textContent"];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, defineAsyncComponent } from "vue";
|
|
2
2
|
import { useModal } from "@g1cloud/bluesea";
|
|
3
|
-
import { u as usePageBuilderEditor } from "./index-
|
|
3
|
+
import { u as usePageBuilderEditor } from "./index-CuI4K01B.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 = ["textContent"];
|
|
@@ -20,7 +20,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
20
20
|
const locales = pageBuilder.getLocales();
|
|
21
21
|
const localeTabs = locales.map((v) => ({ tabId: `tab-${v}`, caption: v }));
|
|
22
22
|
modal.openModal({
|
|
23
|
-
component: defineAsyncComponent(() => import("./
|
|
23
|
+
component: defineAsyncComponent(() => import("./PbHtmlEditorModal-aaecwH7V.js")),
|
|
24
24
|
style: {
|
|
25
25
|
width: "80%",
|
|
26
26
|
height: "80%",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, createElementVNode, toDisplayString } from "vue";
|
|
2
2
|
import { useModal } from "@g1cloud/bluesea";
|
|
3
|
-
import { u as usePageBuilderEditor, a as PageBuilderEditorEvent } from "./index-
|
|
3
|
+
import { u as usePageBuilderEditor, a as PageBuilderEditorEvent } from "./index-CuI4K01B.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 = ["textContent"];
|
package/dist/{PbPropertyEditorMultilineText-BMF9jHpy.js → PbPropertyEditorMultilineText-BFGht6hc.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createElementBlock, createElementVNode, toDisplayString, createBlock, unref } from "vue";
|
|
2
2
|
import { BSMultiLangTextArea, BSTextArea } from "@g1cloud/bluesea";
|
|
3
|
-
import { u as usePageBuilderEditor } from "./index-
|
|
3
|
+
import { u as usePageBuilderEditor } from "./index-CuI4K01B.js";
|
|
4
4
|
const _hoisted_1 = { class: "property-editor property-editor-multiline-text" };
|
|
5
5
|
const _hoisted_2 = { class: "title" };
|
|
6
6
|
const _hoisted_3 = ["textContent"];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, createElementVNode, toDisplayString } from "vue";
|
|
2
2
|
import { useModal } from "@g1cloud/bluesea";
|
|
3
|
-
import { u as usePageBuilderEditor, a as PageBuilderEditorEvent } from "./index-
|
|
3
|
+
import { u as usePageBuilderEditor, a as PageBuilderEditorEvent } from "./index-CuI4K01B.js";
|
|
4
4
|
const _hoisted_1 = { class: "property-editor property-editor-product flex-align-center" };
|
|
5
5
|
const _hoisted_2 = { class: "title" };
|
|
6
6
|
const _hoisted_3 = ["textContent"];
|
|
@@ -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,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,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;
|