@aham.ro/ui-designer 0.1.10 → 0.1.12
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/Designer.vue.d.ts +3 -8
- package/dist/index.d.ts +19 -15
- package/dist/stores/theme.d.ts +26 -0
- package/dist/stores/translations.d.ts +2 -0
- package/dist/stores/workspace.d.ts +80 -6
- package/dist/ui-designer.css +1 -1
- package/dist/ui-designer.js +2764 -1350
- package/dist/widgets/ColorPicker.vue.d.ts +13 -0
- package/dist/widgets/{SideInfo.vue.d.ts → DropInfo.vue.d.ts} +1 -2
- package/dist/widgets/DropdownDialog.vue.d.ts +58 -0
- package/dist/widgets/Header.vue.d.ts +6 -0
- package/dist/widgets/Properties.vue.d.ts +8 -0
- package/dist/widgets/ThemeSidebar.vue.d.ts +7 -3
- package/dist/widgets/VariablesDropdown.vue.d.ts +17 -0
- package/dist/widgets/Workspace.vue.d.ts +6 -0
- package/dist/widgets/components/Card.vue.d.ts +1 -1
- package/dist/widgets/components/Container.vue.d.ts +2 -1
- package/dist/widgets/components/Document.vue.d.ts +13 -0
- package/dist/widgets/components/EmailInput.vue.d.ts +1 -0
- package/dist/widgets/components/PasswordInput.vue.d.ts +3 -0
- package/dist/widgets/components/index.d.ts +1 -0
- package/dist/widgets/header/IconButton.vue.d.ts +1 -1
- package/dist/widgets/properties/Color.vue.d.ts +13 -0
- package/dist/widgets/workspace/ComponentHandler.vue.d.ts +12 -1
- package/dist/widgets/workspace/Composer.vue.d.ts +6 -3
- package/dist/widgets/workspace/WorkspaceNode.vue.d.ts +19 -0
- package/dist/widgets/workspace/ZoomController.vue.d.ts +16 -0
- package/dist/widgets/workspace/configuration.d.ts +1 -0
- package/dist/widgets/workspace/editable.d.ts +3 -3
- package/package.json +4 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
value: string;
|
|
3
|
+
size?: number;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
change: (value: string) => any;
|
|
7
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
+
onChange?: ((value: string) => any) | undefined;
|
|
9
|
+
}>, {
|
|
10
|
+
size: number;
|
|
11
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { ChecklistItem } from './header/types';
|
|
2
1
|
type __VLS_Props = {
|
|
3
|
-
|
|
2
|
+
active?: boolean;
|
|
4
3
|
};
|
|
5
4
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
5
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
type DropdownItem = {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
extra?: Record<string, unknown>;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_Props = {
|
|
8
|
+
modelValue?: boolean;
|
|
9
|
+
dropUp?: boolean;
|
|
10
|
+
items?: DropdownItem[];
|
|
11
|
+
searchable?: boolean;
|
|
12
|
+
teleport?: boolean;
|
|
13
|
+
position?: {
|
|
14
|
+
top: number;
|
|
15
|
+
left: number;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
declare var __VLS_13: {
|
|
19
|
+
item: DropdownItem;
|
|
20
|
+
}, __VLS_15: {}, __VLS_23: {
|
|
21
|
+
item: DropdownItem;
|
|
22
|
+
}, __VLS_25: {};
|
|
23
|
+
type __VLS_Slots = {} & {
|
|
24
|
+
item?: (props: typeof __VLS_13) => any;
|
|
25
|
+
} & {
|
|
26
|
+
default?: (props: typeof __VLS_15) => any;
|
|
27
|
+
} & {
|
|
28
|
+
item?: (props: typeof __VLS_23) => any;
|
|
29
|
+
} & {
|
|
30
|
+
default?: (props: typeof __VLS_25) => any;
|
|
31
|
+
};
|
|
32
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
33
|
+
element: import("vue").Ref<HTMLElement | null, HTMLElement | null>;
|
|
34
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
35
|
+
select: (item: DropdownItem) => any;
|
|
36
|
+
"update:modelValue": (value: boolean) => any;
|
|
37
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
38
|
+
onSelect?: ((item: DropdownItem) => any) | undefined;
|
|
39
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
40
|
+
}>, {
|
|
41
|
+
items: DropdownItem[];
|
|
42
|
+
modelValue: boolean;
|
|
43
|
+
dropUp: boolean;
|
|
44
|
+
searchable: boolean;
|
|
45
|
+
teleport: boolean;
|
|
46
|
+
position: {
|
|
47
|
+
top: number;
|
|
48
|
+
left: number;
|
|
49
|
+
};
|
|
50
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
51
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
52
|
+
declare const _default: typeof __VLS_export;
|
|
53
|
+
export default _default;
|
|
54
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
55
|
+
new (): {
|
|
56
|
+
$slots: S;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
@@ -5,19 +5,25 @@ type __VLS_Props = {
|
|
|
5
5
|
darkModeChangeable?: boolean;
|
|
6
6
|
moreItems?: MoreMenuItem[];
|
|
7
7
|
darkMode?: boolean;
|
|
8
|
+
contentDarkMode?: boolean;
|
|
8
9
|
translationsOpen?: boolean;
|
|
9
10
|
themeOpen?: boolean;
|
|
11
|
+
previewOpen?: boolean;
|
|
10
12
|
};
|
|
11
13
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
14
|
moreSelect: (id: string) => any;
|
|
13
15
|
toggleTheme: () => any;
|
|
16
|
+
toggleContentTheme: () => any;
|
|
14
17
|
toggleTranslations: () => any;
|
|
15
18
|
toggleThemePanel: () => any;
|
|
19
|
+
togglePreview: () => any;
|
|
16
20
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
21
|
onMoreSelect?: ((id: string) => any) | undefined;
|
|
18
22
|
onToggleTheme?: (() => any) | undefined;
|
|
23
|
+
onToggleContentTheme?: (() => any) | undefined;
|
|
19
24
|
onToggleTranslations?: (() => any) | undefined;
|
|
20
25
|
onToggleThemePanel?: (() => any) | undefined;
|
|
26
|
+
onTogglePreview?: (() => any) | undefined;
|
|
21
27
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
28
|
declare const _default: typeof __VLS_export;
|
|
23
29
|
export default _default;
|
|
@@ -5,15 +5,23 @@ type __VLS_Props = {
|
|
|
5
5
|
type: string;
|
|
6
6
|
label: string;
|
|
7
7
|
icon: string;
|
|
8
|
+
depth: number;
|
|
8
9
|
}[];
|
|
9
10
|
selectedComponent?: WorkspaceComponent;
|
|
11
|
+
contentDarkMode?: boolean;
|
|
10
12
|
};
|
|
11
13
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
14
|
updateProps: (props: Record<string, unknown>) => any;
|
|
13
15
|
focusTranslation: (id: string) => any;
|
|
16
|
+
selectLayer: (id: string) => any;
|
|
17
|
+
reorderLayer: (sourceId: string, targetId: string) => any;
|
|
18
|
+
moveIntoLayer: (sourceId: string, parentId: string) => any;
|
|
14
19
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
20
|
onUpdateProps?: ((props: Record<string, unknown>) => any) | undefined;
|
|
16
21
|
onFocusTranslation?: ((id: string) => any) | undefined;
|
|
22
|
+
onSelectLayer?: ((id: string) => any) | undefined;
|
|
23
|
+
onReorderLayer?: ((sourceId: string, targetId: string) => any) | undefined;
|
|
24
|
+
onMoveIntoLayer?: ((sourceId: string, parentId: string) => any) | undefined;
|
|
17
25
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
26
|
declare const _default: typeof __VLS_export;
|
|
19
27
|
export default _default;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
open: boolean;
|
|
3
|
-
|
|
3
|
+
colors: Record<string, string>;
|
|
4
|
+
darkMode: boolean;
|
|
5
|
+
backgroundVariable: string;
|
|
4
6
|
};
|
|
5
7
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
8
|
close: () => any;
|
|
7
|
-
update: (color: string) => any;
|
|
9
|
+
update: (key: string, color: string) => any;
|
|
10
|
+
mode: (dark: boolean) => any;
|
|
8
11
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
12
|
onClose?: (() => any) | undefined;
|
|
10
|
-
onUpdate?: ((color: string) => any) | undefined;
|
|
13
|
+
onUpdate?: ((key: string, color: string) => any) | undefined;
|
|
14
|
+
onMode?: ((dark: boolean) => any) | undefined;
|
|
11
15
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
16
|
declare const _default: typeof __VLS_export;
|
|
13
17
|
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type ThemeVariable } from '../stores/theme';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
variables?: ThemeVariable[];
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_1: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_1) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -2,13 +2,19 @@ type __VLS_Props = {
|
|
|
2
2
|
subject: string;
|
|
3
3
|
templateId?: string;
|
|
4
4
|
templateName?: string;
|
|
5
|
+
preview?: boolean;
|
|
6
|
+
contentPrimary?: string;
|
|
7
|
+
debug?: boolean;
|
|
8
|
+
contentDarkMode?: boolean;
|
|
5
9
|
};
|
|
6
10
|
declare function addComponent(type: string): void;
|
|
7
11
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
8
12
|
addComponent: typeof addComponent;
|
|
9
13
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
+
toggleContentTheme: () => any;
|
|
10
15
|
componentDrop: (type: string) => any;
|
|
11
16
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
|
+
onToggleContentTheme?: (() => any) | undefined;
|
|
12
18
|
onComponentDrop?: ((type: string) => any) | undefined;
|
|
13
19
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
20
|
declare const _default: typeof __VLS_export;
|
|
@@ -8,10 +8,10 @@ type __VLS_Slots = {} & {
|
|
|
8
8
|
};
|
|
9
9
|
declare const __VLS_base: import("vue").DefineComponent<CardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardProps> & Readonly<{}>, {
|
|
10
10
|
layout: "flex" | "grid" | "block";
|
|
11
|
+
position: "relative" | "absolute";
|
|
11
12
|
padding: import("./types").ComponentLength;
|
|
12
13
|
gap: import("./types").ComponentLength;
|
|
13
14
|
radius: import("./types").ComponentLength;
|
|
14
|
-
position: "relative" | "absolute";
|
|
15
15
|
direction: "row" | "column";
|
|
16
16
|
columns: string;
|
|
17
17
|
align: string;
|
|
@@ -5,10 +5,11 @@ type __VLS_Slots = {} & {
|
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_base: import("vue").DefineComponent<BoxProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BoxProps> & Readonly<{}>, {
|
|
7
7
|
layout: "flex" | "grid" | "block";
|
|
8
|
+
width: import("./types").ComponentLength;
|
|
9
|
+
position: "relative" | "absolute";
|
|
8
10
|
padding: import("./types").ComponentLength;
|
|
9
11
|
gap: import("./types").ComponentLength;
|
|
10
12
|
radius: import("./types").ComponentLength;
|
|
11
|
-
position: "relative" | "absolute";
|
|
12
13
|
direction: "row" | "column";
|
|
13
14
|
columns: string;
|
|
14
15
|
align: string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -2,6 +2,7 @@ type __VLS_Props = {
|
|
|
2
2
|
label?: string;
|
|
3
3
|
placeholder?: string;
|
|
4
4
|
required?: boolean;
|
|
5
|
+
textColor?: string;
|
|
5
6
|
modelValue?: string;
|
|
6
7
|
};
|
|
7
8
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
@@ -2,7 +2,9 @@ type __VLS_Props = {
|
|
|
2
2
|
label?: string;
|
|
3
3
|
placeholder?: string;
|
|
4
4
|
required?: boolean;
|
|
5
|
+
textColor?: string;
|
|
5
6
|
showForgot?: boolean;
|
|
7
|
+
showForgotLabel?: string;
|
|
6
8
|
modelValue?: string;
|
|
7
9
|
};
|
|
8
10
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
@@ -10,6 +12,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
10
12
|
placeholder: string;
|
|
11
13
|
required: boolean;
|
|
12
14
|
showForgot: boolean;
|
|
15
|
+
showForgotLabel: string;
|
|
13
16
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
17
|
declare const _default: typeof __VLS_export;
|
|
15
18
|
export default _default;
|
|
@@ -19,3 +19,4 @@ export { default as Alert } from './Alert.vue';
|
|
|
19
19
|
export { default as Content } from './Content.vue';
|
|
20
20
|
export { default as ConsentCard } from './ConsentCard.vue';
|
|
21
21
|
export { default as ScopeList } from './ScopeList.vue';
|
|
22
|
+
export { default as Document } from './Document.vue';
|
|
@@ -5,8 +5,8 @@ type __VLS_Props = {
|
|
|
5
5
|
active?: boolean;
|
|
6
6
|
};
|
|
7
7
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
8
|
-
active: boolean;
|
|
9
8
|
title: string;
|
|
9
|
+
active: boolean;
|
|
10
10
|
icon: string;
|
|
11
11
|
disabled: boolean;
|
|
12
12
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ThemeVariable } from '../../stores/theme';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
modelValue: string;
|
|
4
|
+
variables?: ThemeVariable[];
|
|
5
|
+
darkMode?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
"update:modelValue": (value: string) => any;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
@@ -3,13 +3,24 @@ type __VLS_Props = {
|
|
|
3
3
|
id?: string;
|
|
4
4
|
componentProps?: Record<string, unknown>;
|
|
5
5
|
selected?: boolean;
|
|
6
|
+
preview?: boolean;
|
|
6
7
|
};
|
|
7
|
-
declare
|
|
8
|
+
declare var __VLS_7: {};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
default?: (props: typeof __VLS_7) => any;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
13
|
select: () => any;
|
|
9
14
|
moveStart: (id: string, event: DragEvent) => any;
|
|
10
15
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
16
|
onSelect?: (() => any) | undefined;
|
|
12
17
|
onMoveStart?: ((id: string, event: DragEvent) => any) | undefined;
|
|
13
18
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
20
|
declare const _default: typeof __VLS_export;
|
|
15
21
|
export default _default;
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { type WorkspaceComponent } from '../../stores/workspace';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
preview?: boolean;
|
|
4
|
+
};
|
|
2
5
|
declare function addComponent(type: string): void;
|
|
3
|
-
declare const __VLS_export: import("vue").DefineComponent<
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
4
7
|
addComponent: typeof addComponent;
|
|
5
8
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
9
|
componentDrop: (type: string) => any;
|
|
7
10
|
componentSelect: (component: WorkspaceComponent) => any;
|
|
8
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
12
|
onComponentDrop?: ((type: string) => any) | undefined;
|
|
10
13
|
onComponentSelect?: ((component: WorkspaceComponent) => any) | undefined;
|
|
11
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions,
|
|
14
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
15
|
declare const _default: typeof __VLS_export;
|
|
13
16
|
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type WorkspaceComponent, type WorkspaceDevice } from '../../stores/workspace';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
component: WorkspaceComponent;
|
|
4
|
+
selectedId?: string;
|
|
5
|
+
preview?: boolean;
|
|
6
|
+
depth?: number;
|
|
7
|
+
device?: WorkspaceDevice;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
select: (id: string) => any;
|
|
11
|
+
drop: (parentId: string, type: string) => any;
|
|
12
|
+
moveStart: (id: string, event: DragEvent) => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
onSelect?: ((id: string) => any) | undefined;
|
|
15
|
+
onDrop?: ((parentId: string, type: string) => any) | undefined;
|
|
16
|
+
onMoveStart?: ((id: string, event: DragEvent) => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
modelValue: number;
|
|
3
|
+
pan: boolean;
|
|
4
|
+
debug?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
"update:modelValue": (value: number) => any;
|
|
8
|
+
center: () => any;
|
|
9
|
+
"update:pan": (value: boolean) => any;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
12
|
+
onCenter?: (() => any) | undefined;
|
|
13
|
+
"onUpdate:pan"?: ((value: boolean) => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export type EditablePropDefinition = {
|
|
2
2
|
label?: string;
|
|
3
|
-
type: 'string' | 'text' | 'number' | 'boolean' | 'select';
|
|
3
|
+
type: 'string' | 'text' | 'number' | 'boolean' | 'select' | 'color';
|
|
4
4
|
translations?: boolean;
|
|
5
5
|
options?: string[];
|
|
6
6
|
defaultValue?: string | number | boolean;
|
|
7
7
|
};
|
|
8
8
|
export type EditablePropDefinitions = Record<string, EditablePropDefinition>;
|
|
9
|
-
export declare const editablePropDefinitions: Record<string,
|
|
9
|
+
export declare const editablePropDefinitions: Record<string, (EditablePropDefinition & {
|
|
10
10
|
key: string;
|
|
11
|
-
}
|
|
11
|
+
})[]>;
|
|
12
12
|
export declare function withEditable(componentType: string, definitions: EditablePropDefinitions): EditablePropDefinitions;
|
package/package.json
CHANGED