@g1cloud/page-builder-editor 1.0.0-alpha.1

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.
Files changed (87) hide show
  1. package/LICENSE +6 -0
  2. package/README.md +23 -0
  3. package/css/bluesea.scss +8244 -0
  4. package/css/canvas-block.scss +20 -0
  5. package/css/canvas-page.scss +62 -0
  6. package/css/canvas-section.scss +51 -0
  7. package/css/canvas-widget.scss +41 -0
  8. package/css/canvas.scss +146 -0
  9. package/css/page-builder-editor.scss +185 -0
  10. package/css/page-builder-viewer.scss +1 -0
  11. package/css/property-editor-image.scss +16 -0
  12. package/css/property-editor-multiline-text.scss +0 -0
  13. package/css/property-editor-product.scss +17 -0
  14. package/css/property-editor-readonly-text.scss +0 -0
  15. package/css/property-editor-select.scss +10 -0
  16. package/css/property-editor-text.scss +10 -0
  17. package/css/property-group-editor-background.scss +40 -0
  18. package/css/property-group-editor-border.scss +25 -0
  19. package/css/property-group-editor-margin.scss +13 -0
  20. package/css/property-group-editor-padding.scss +13 -0
  21. package/css/property-group-editor-position.scss +13 -0
  22. package/css/property-group-editor-size.scss +13 -0
  23. package/css/property-localpart.scss +21 -0
  24. package/css/variable.scss +1 -0
  25. package/dist/PageBuilderEditor.vue.d.ts +21 -0
  26. package/dist/PbPartAddModal-DuLpnV4E.js +50 -0
  27. package/dist/PbPropertyEditorImage-BFIqG-bL.js +42 -0
  28. package/dist/PbPropertyEditorMultilineText-BMeNUGm8.js +42 -0
  29. package/dist/PbPropertyEditorProduct--cf9LI2Z.js +49 -0
  30. package/dist/PbPropertyEditorReadonlyText-Bk0WJxA0.js +31 -0
  31. package/dist/PbPropertyEditorSelect-BJovN1su.js +44 -0
  32. package/dist/PbPropertyEditorText-DNdXl-Tr.js +41 -0
  33. package/dist/PbWidgetAddModal-CQvFYzfU.js +55 -0
  34. package/dist/components/canvas/PbCanvas.vue.d.ts +2 -0
  35. package/dist/components/canvas/PbCanvasFrame.vue.d.ts +2 -0
  36. package/dist/components/depart/PbLoginDepart.vue.d.ts +17 -0
  37. package/dist/components/menu/PbMenu.vue.d.ts +2 -0
  38. package/dist/components/menu/PbToolbar.vue.d.ts +2 -0
  39. package/dist/components/menu/PbToolbarButton.vue.d.ts +17 -0
  40. package/dist/components/menu/PbToolbarButtonGroup.vue.d.ts +17 -0
  41. package/dist/components/modal/PbPartAddModal.vue.d.ts +24 -0
  42. package/dist/components/modal/PbWidgetAddModal.vue.d.ts +24 -0
  43. package/dist/components/navigator/PbNavigator.vue.d.ts +2 -0
  44. package/dist/components/part/PbAddWidgetButton.vue.d.ts +2 -0
  45. package/dist/components/part/PbBlock.vue.d.ts +17 -0
  46. package/dist/components/part/PbPage.vue.d.ts +21 -0
  47. package/dist/components/part/PbSection.vue.d.ts +17 -0
  48. package/dist/components/part/PbWidget.vue.d.ts +17 -0
  49. package/dist/components/sidebar/PbSidebar.vue.d.ts +2 -0
  50. package/dist/components/sidebar/PbSidebarProperties.vue.d.ts +2 -0
  51. package/dist/components/sidebar/PbSidebarPropertyEditor.vue.d.ts +20 -0
  52. package/dist/components/sidebar/PbSidebarPropertyGroupEditor.vue.d.ts +22 -0
  53. package/dist/components/sidebar/property/PbPropertyEditorImage.vue.d.ts +23 -0
  54. package/dist/components/sidebar/property/PbPropertyEditorMultilineText.vue.d.ts +23 -0
  55. package/dist/components/sidebar/property/PbPropertyEditorProduct.vue.d.ts +23 -0
  56. package/dist/components/sidebar/property/PbPropertyEditorReadonlyText.vue.d.ts +19 -0
  57. package/dist/components/sidebar/property/PbPropertyEditorSelect.vue.d.ts +23 -0
  58. package/dist/components/sidebar/property/PbPropertyEditorText.vue.d.ts +23 -0
  59. package/dist/components/sidebar/property/PbPropertyGroupEditorBackground.vue.d.ts +20 -0
  60. package/dist/components/sidebar/property/PbPropertyGroupEditorBorder.vue.d.ts +20 -0
  61. package/dist/components/sidebar/property/PbPropertyGroupEditorMargin.vue.d.ts +20 -0
  62. package/dist/components/sidebar/property/PbPropertyGroupEditorPadding.vue.d.ts +20 -0
  63. package/dist/components/sidebar/property/PbPropertyGroupEditorPosition.vue.d.ts +20 -0
  64. package/dist/components/sidebar/property/PbPropertyGroupEditorSize.vue.d.ts +20 -0
  65. package/dist/components/sidebar/property/PbPropertyLocalPart.vue.d.ts +23 -0
  66. package/dist/components/ui/PbColorPicker.vue.d.ts +24 -0
  67. package/dist/directives/vPartHandler.d.ts +26 -0
  68. package/dist/index-BtILenNo.js +13902 -0
  69. package/dist/index.d.ts +3 -0
  70. package/dist/model/command.d.ts +188 -0
  71. package/dist/model/context.d.ts +136 -0
  72. package/dist/model/default-part-property-editor.d.ts +3 -0
  73. package/dist/model/default-part-property-group.d.ts +12 -0
  74. package/dist/model/event.d.ts +71 -0
  75. package/dist/model/model.d.ts +66 -0
  76. package/dist/model/page-builder-editor.d.ts +51 -0
  77. package/dist/model/page-builder-util.d.ts +5 -0
  78. package/dist/model/part-definintion.d.ts +26 -0
  79. package/dist/model/part-manager.d.ts +29 -0
  80. package/dist/model/part-property.d.ts +22 -0
  81. package/dist/model/plugin.d.ts +15 -0
  82. package/dist/model/toolbar.d.ts +27 -0
  83. package/dist/page-builder-editor.js +27 -0
  84. package/dist/page-builder-editor.umd.cjs +14248 -0
  85. package/dist/style.css +173 -0
  86. package/dist/utils/mouse-tracker.d.ts +11 -0
  87. package/package.json +49 -0
@@ -0,0 +1,22 @@
1
+ import { PartPropertyGroup } from '../../model/part-property.ts';
2
+ import { IPart } from '@g1cloud/page-builder-viewer';
3
+
4
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
5
+ group: PartPropertyGroup;
6
+ partsKey: string;
7
+ selectedParts: IPart[];
8
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
9
+ group: PartPropertyGroup;
10
+ partsKey: string;
11
+ selectedParts: IPart[];
12
+ }>>>, {}, {}>;
13
+ export default _default;
14
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
15
+ type __VLS_TypePropsToRuntimeProps<T> = {
16
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
17
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
18
+ } : {
19
+ type: import('vue').PropType<T[K]>;
20
+ required: true;
21
+ };
22
+ };
@@ -0,0 +1,23 @@
1
+ import { PartProperty } from '../../../model/part-property.ts';
2
+
3
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
4
+ property: PartProperty;
5
+ value?: string | undefined;
6
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ "update-property-value": (properties: Record<string, string>) => void;
8
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
9
+ property: PartProperty;
10
+ value?: string | undefined;
11
+ }>>> & {
12
+ "onUpdate-property-value"?: ((properties: Record<string, string>) => any) | undefined;
13
+ }, {}, {}>;
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
+ };
@@ -0,0 +1,23 @@
1
+ import { PartProperty } from '../../../model/part-property.ts';
2
+
3
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
4
+ property: PartProperty;
5
+ value?: string | undefined;
6
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ "update-property-value": (properties: Record<string, string>) => void;
8
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
9
+ property: PartProperty;
10
+ value?: string | undefined;
11
+ }>>> & {
12
+ "onUpdate-property-value"?: ((properties: Record<string, string>) => any) | undefined;
13
+ }, {}, {}>;
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
+ };
@@ -0,0 +1,23 @@
1
+ import { PartProperty } from '../../../model/part-property.ts';
2
+
3
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
4
+ property: PartProperty;
5
+ value?: string | undefined;
6
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ "update-property-value": (properties: Record<string, string>) => void;
8
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
9
+ property: PartProperty;
10
+ value?: string | undefined;
11
+ }>>> & {
12
+ "onUpdate-property-value"?: ((properties: Record<string, string>) => any) | undefined;
13
+ }, {}, {}>;
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
+ };
@@ -0,0 +1,19 @@
1
+ import { PartProperty } from '../../../model/part-property.ts';
2
+
3
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
4
+ property: PartProperty;
5
+ value?: string | undefined;
6
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
7
+ property: PartProperty;
8
+ value?: string | undefined;
9
+ }>>>, {}, {}>;
10
+ export default _default;
11
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
12
+ type __VLS_TypePropsToRuntimeProps<T> = {
13
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
14
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
15
+ } : {
16
+ type: import('vue').PropType<T[K]>;
17
+ required: true;
18
+ };
19
+ };
@@ -0,0 +1,23 @@
1
+ import { PartProperty } from '../../../model/part-property.ts';
2
+
3
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
4
+ property: PartProperty;
5
+ value?: string | undefined;
6
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ "update-property-value": (properties: Record<string, string>) => void;
8
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
9
+ property: PartProperty;
10
+ value?: string | undefined;
11
+ }>>> & {
12
+ "onUpdate-property-value"?: ((properties: Record<string, string>) => any) | undefined;
13
+ }, {}, {}>;
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
+ };
@@ -0,0 +1,23 @@
1
+ import { PartProperty } from '../../../model/part-property.ts';
2
+
3
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
4
+ property: PartProperty;
5
+ value?: string | undefined;
6
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ "update-property-value": (properties: Record<string, string>) => void;
8
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
9
+ property: PartProperty;
10
+ value?: string | undefined;
11
+ }>>> & {
12
+ "onUpdate-property-value"?: ((properties: Record<string, string>) => any) | undefined;
13
+ }, {}, {}>;
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
+ };
@@ -0,0 +1,20 @@
1
+ import { PartPropertyGroup } from '../../../model/part-property.ts';
2
+ import { IPart } from '@g1cloud/page-builder-viewer';
3
+
4
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
5
+ group: PartPropertyGroup;
6
+ selectedParts: IPart[];
7
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
8
+ group: PartPropertyGroup;
9
+ selectedParts: IPart[];
10
+ }>>>, {}, {}>;
11
+ export default _default;
12
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
+ type __VLS_TypePropsToRuntimeProps<T> = {
14
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
15
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
16
+ } : {
17
+ type: import('vue').PropType<T[K]>;
18
+ required: true;
19
+ };
20
+ };
@@ -0,0 +1,20 @@
1
+ import { PartPropertyGroup } from '../../../model/part-property.ts';
2
+ import { IPart } from '@g1cloud/page-builder-viewer';
3
+
4
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
5
+ group: PartPropertyGroup;
6
+ selectedParts: IPart[];
7
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
8
+ group: PartPropertyGroup;
9
+ selectedParts: IPart[];
10
+ }>>>, {}, {}>;
11
+ export default _default;
12
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
+ type __VLS_TypePropsToRuntimeProps<T> = {
14
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
15
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
16
+ } : {
17
+ type: import('vue').PropType<T[K]>;
18
+ required: true;
19
+ };
20
+ };
@@ -0,0 +1,20 @@
1
+ import { PartPropertyGroup } from '../../../model/part-property.ts';
2
+ import { IPart } from '@g1cloud/page-builder-viewer';
3
+
4
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
5
+ group: PartPropertyGroup;
6
+ selectedParts: IPart[];
7
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
8
+ group: PartPropertyGroup;
9
+ selectedParts: IPart[];
10
+ }>>>, {}, {}>;
11
+ export default _default;
12
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
+ type __VLS_TypePropsToRuntimeProps<T> = {
14
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
15
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
16
+ } : {
17
+ type: import('vue').PropType<T[K]>;
18
+ required: true;
19
+ };
20
+ };
@@ -0,0 +1,20 @@
1
+ import { PartPropertyGroup } from '../../../model/part-property.ts';
2
+ import { IPart } from '@g1cloud/page-builder-viewer';
3
+
4
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
5
+ group: PartPropertyGroup;
6
+ selectedParts: IPart[];
7
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
8
+ group: PartPropertyGroup;
9
+ selectedParts: IPart[];
10
+ }>>>, {}, {}>;
11
+ export default _default;
12
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
+ type __VLS_TypePropsToRuntimeProps<T> = {
14
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
15
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
16
+ } : {
17
+ type: import('vue').PropType<T[K]>;
18
+ required: true;
19
+ };
20
+ };
@@ -0,0 +1,20 @@
1
+ import { PartPropertyGroup } from '../../../model/part-property.ts';
2
+ import { IPart } from '@g1cloud/page-builder-viewer';
3
+
4
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
5
+ group: PartPropertyGroup;
6
+ selectedParts: IPart[];
7
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
8
+ group: PartPropertyGroup;
9
+ selectedParts: IPart[];
10
+ }>>>, {}, {}>;
11
+ export default _default;
12
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
+ type __VLS_TypePropsToRuntimeProps<T> = {
14
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
15
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
16
+ } : {
17
+ type: import('vue').PropType<T[K]>;
18
+ required: true;
19
+ };
20
+ };
@@ -0,0 +1,20 @@
1
+ import { PartPropertyGroup } from '../../../model/part-property.ts';
2
+ import { IPart } from '@g1cloud/page-builder-viewer';
3
+
4
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
5
+ group: PartPropertyGroup;
6
+ selectedParts: IPart[];
7
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
8
+ group: PartPropertyGroup;
9
+ selectedParts: IPart[];
10
+ }>>>, {}, {}>;
11
+ export default _default;
12
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
+ type __VLS_TypePropsToRuntimeProps<T> = {
14
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
15
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
16
+ } : {
17
+ type: import('vue').PropType<T[K]>;
18
+ required: true;
19
+ };
20
+ };
@@ -0,0 +1,23 @@
1
+ import { IPart } from '@g1cloud/page-builder-viewer';
2
+
3
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
4
+ selectedPart: IPart;
5
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
+ "select-schedule": () => void;
7
+ "update-property-value": (properties: Record<string, string>) => void;
8
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
9
+ selectedPart: IPart;
10
+ }>>> & {
11
+ "onUpdate-property-value"?: ((properties: Record<string, string>) => any) | undefined;
12
+ "onSelect-schedule"?: (() => any) | undefined;
13
+ }, {}, {}>;
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
+ };
@@ -0,0 +1,24 @@
1
+ declare const _default: import('vue').DefineComponent<{
2
+ hideDelete: BooleanConstructor;
3
+ value: {
4
+ type: StringConstructor;
5
+ default: string;
6
+ };
7
+ }, {
8
+ appliedColor: import('vue').ComputedRef<string>;
9
+ isShowColorPicker: import('vue').Ref<boolean>;
10
+ toggle: (value?: boolean) => void;
11
+ color: import('vue').Ref<string>;
12
+ emptyColor: () => void;
13
+ colorHistory: string[] | undefined;
14
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
15
+ hideDelete: BooleanConstructor;
16
+ value: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ };
20
+ }>>, {
21
+ hideDelete: boolean;
22
+ value: string;
23
+ }, {}>;
24
+ export default _default;
@@ -0,0 +1,26 @@
1
+ import { IPart } from '@g1cloud/page-builder-viewer';
2
+ import { PageBuilderEditor } from '../model/page-builder-editor.ts';
3
+ import { DirectiveBinding } from 'vue';
4
+
5
+ /**
6
+ * binding.value
7
+ * * pageBuilder: PageBuilder
8
+ * * part: IPart
9
+ * * draggable?: boolean default=true
10
+ * * droppable?: boolean default=false
11
+ */
12
+ declare const vPartHandler: {
13
+ mounted: (el: HTMLElement, binding: DirectiveBinding) => void;
14
+ };
15
+ export type CalculateDropIndexFunction = (part: IPart, target: HTMLElement, mouseOffsetX: number, mouseOffsetY: number, event: DragEvent) => number;
16
+ export type LocatePositionMarkFunction = (mark: HTMLElement, target: HTMLElement, mouseOffsetX: number, mouseOffsetY: number, draggingPart: IPart, event: DragEvent) => void;
17
+ export type AcceptChildPartFunction = (pageBuilder: PageBuilderEditor, part: IPart, target: HTMLElement, index: number, partId: string, event: DragEvent) => void;
18
+ export declare const isPositionMark: (element: Element) => boolean;
19
+ export declare const locateNone: (style: CSSStyleDeclaration) => void;
20
+ export declare const locateFull: (style: CSSStyleDeclaration) => void;
21
+ export declare const locateCenter: (style: CSSStyleDeclaration) => void;
22
+ export declare const locateTop: (style: CSSStyleDeclaration, left?: string, width?: string) => void;
23
+ export declare const locateBottom: (style: CSSStyleDeclaration, left?: string, width?: string) => void;
24
+ export declare const locateLeft: (style: CSSStyleDeclaration, top?: string, height?: string) => void;
25
+ export declare const locateRight: (style: CSSStyleDeclaration, top?: string, height?: string) => void;
26
+ export default vPartHandler;