@aham.ro/ui-designer 0.1.13 → 0.1.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/Designer.vue.d.ts +3 -2
- package/dist/preview.d.ts +6 -1
- package/dist/stores/workspace.d.ts +7 -2
- package/dist/ui-designer.css +1 -1
- package/dist/ui-designer.js +1261 -1125
- package/dist/widgets/components/Checkbox.vue.d.ts +1 -0
- package/dist/widgets/components/LayoutRef.vue.d.ts +2 -2
- package/dist/widgets/components/base/CheckboxBase.vue.d.ts +2 -0
- package/dist/widgets/components/base/index.d.ts +3 -2
- package/dist/widgets/components/linkResolver.d.ts +4 -0
- package/dist/widgets/workspace/WorkspaceNode.vue.d.ts +4 -2
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@ type __VLS_Props = {
|
|
|
2
2
|
label?: string;
|
|
3
3
|
checked?: boolean;
|
|
4
4
|
modelValue?: boolean;
|
|
5
|
+
name?: string;
|
|
5
6
|
};
|
|
6
7
|
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>;
|
|
7
8
|
declare const _default: typeof __VLS_export;
|
|
@@ -12,9 +12,9 @@ type __VLS_Slots = {} & {
|
|
|
12
12
|
default?: (props: typeof __VLS_16) => any;
|
|
13
13
|
};
|
|
14
14
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
-
select: (id: string) => any;
|
|
15
|
+
select: (id: string, templateId?: string | undefined) => any;
|
|
16
16
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
|
-
onSelect?: ((id: string) => any) | undefined;
|
|
17
|
+
onSelect?: ((id: string, templateId?: string | undefined) => any) | undefined;
|
|
18
18
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
19
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
20
|
declare const _default: typeof __VLS_export;
|
|
@@ -2,8 +2,10 @@ type __VLS_Props = {
|
|
|
2
2
|
label?: string;
|
|
3
3
|
checked?: boolean;
|
|
4
4
|
modelValue?: boolean;
|
|
5
|
+
name?: string;
|
|
5
6
|
};
|
|
6
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
|
+
name: string;
|
|
7
9
|
label: string;
|
|
8
10
|
checked: boolean;
|
|
9
11
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -21,7 +21,8 @@ export { default as TextInputBase } from './TextInputBase.vue';
|
|
|
21
21
|
export { default as TextLinkBase } from './TextLinkBase.vue';
|
|
22
22
|
import { type Component, type VNode } from 'vue';
|
|
23
23
|
export interface BaseComponentData {
|
|
24
|
-
name
|
|
24
|
+
name?: string;
|
|
25
|
+
type?: string;
|
|
25
26
|
props?: Record<string, unknown>;
|
|
26
27
|
}
|
|
27
28
|
export type RenderDevice = 'base' | 'phone' | 'tablet' | 'desktop';
|
|
@@ -40,7 +41,7 @@ export type RenderWalker = (node: ComponentNode, context: {
|
|
|
40
41
|
}) => Record<string, unknown> | undefined;
|
|
41
42
|
declare const components: Record<string, Component>;
|
|
42
43
|
export declare function renderBaseComponent(data: BaseComponentData): {
|
|
43
|
-
name: string;
|
|
44
|
+
name: string | undefined;
|
|
44
45
|
component: Component;
|
|
45
46
|
props: Record<string, unknown>;
|
|
46
47
|
} | undefined;
|
|
@@ -2,6 +2,8 @@ import { type WorkspaceComponent, type WorkspaceDevice } from '../../stores/work
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
component: WorkspaceComponent;
|
|
4
4
|
selectedId?: string;
|
|
5
|
+
selectedTemplateId?: string;
|
|
6
|
+
templateId?: string;
|
|
5
7
|
preview?: boolean;
|
|
6
8
|
depth?: number;
|
|
7
9
|
device?: WorkspaceDevice;
|
|
@@ -10,12 +12,12 @@ type __VLS_Props = {
|
|
|
10
12
|
layoutSlotTargetId?: string;
|
|
11
13
|
};
|
|
12
14
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
-
select: (id: string) => any;
|
|
15
|
+
select: (id: string, templateId?: string | undefined) => any;
|
|
14
16
|
drop: (parentId: string, type: string, index?: number | undefined) => any;
|
|
15
17
|
moveStart: (id: string, event: DragEvent) => any;
|
|
16
18
|
contextMenu: (id: string, event: MouseEvent) => any;
|
|
17
19
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
-
onSelect?: ((id: string) => any) | undefined;
|
|
20
|
+
onSelect?: ((id: string, templateId?: string | undefined) => any) | undefined;
|
|
19
21
|
onDrop?: ((parentId: string, type: string, index?: number | undefined) => any) | undefined;
|
|
20
22
|
onMoveStart?: ((id: string, event: DragEvent) => any) | undefined;
|
|
21
23
|
onContextMenu?: ((id: string, event: MouseEvent) => any) | undefined;
|