@aham.ro/ui-designer 0.1.9 → 0.1.11

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 (41) hide show
  1. package/dist/Designer.vue.d.ts +4 -2
  2. package/dist/index.d.ts +20 -6
  3. package/dist/stores/templates.d.ts +26 -0
  4. package/dist/stores/theme.d.ts +26 -0
  5. package/dist/stores/translations.d.ts +1 -0
  6. package/dist/stores/workspace.d.ts +142 -0
  7. package/dist/ui-designer.css +1 -1
  8. package/dist/ui-designer.js +3987 -1568
  9. package/dist/widgets/ColorPicker.vue.d.ts +13 -0
  10. package/dist/widgets/DropInfo.vue.d.ts +6 -0
  11. package/dist/widgets/DropdownDialog.vue.d.ts +58 -0
  12. package/dist/widgets/Header.vue.d.ts +3 -0
  13. package/dist/widgets/Properties.vue.d.ts +25 -1
  14. package/dist/widgets/TemplateList.vue.d.ts +2 -2
  15. package/dist/widgets/ThemeSidebar.vue.d.ts +7 -3
  16. package/dist/widgets/TranslationSidebar.vue.d.ts +1 -0
  17. package/dist/widgets/VariablesDropdown.vue.d.ts +17 -0
  18. package/dist/widgets/Workspace.vue.d.ts +21 -0
  19. package/dist/widgets/components/Card.vue.d.ts +1 -1
  20. package/dist/widgets/components/Container.vue.d.ts +2 -1
  21. package/dist/widgets/components/Document.vue.d.ts +13 -0
  22. package/dist/widgets/components/EmailInput.vue.d.ts +1 -0
  23. package/dist/widgets/components/Heading.vue.d.ts +1 -1
  24. package/dist/widgets/components/PasswordInput.vue.d.ts +3 -0
  25. package/dist/widgets/components/index.d.ts +1 -0
  26. package/dist/widgets/header/IconButton.vue.d.ts +1 -1
  27. package/dist/widgets/properties/Color.vue.d.ts +13 -0
  28. package/dist/widgets/workspace/Breadcrumb.vue.d.ts +3 -0
  29. package/dist/widgets/workspace/ComponentHandler.vue.d.ts +26 -0
  30. package/dist/widgets/workspace/Composer.vue.d.ts +16 -0
  31. package/dist/widgets/workspace/Renderer.vue.d.ts +31 -0
  32. package/dist/widgets/workspace/WorkspaceNode.vue.d.ts +19 -0
  33. package/dist/widgets/workspace/ZoomController.vue.d.ts +16 -0
  34. package/dist/widgets/workspace/configuration.d.ts +12 -0
  35. package/dist/widgets/workspace/editable.d.ts +12 -0
  36. package/dist/widgets/workspace/screens/Desktop.vue.d.ts +13 -0
  37. package/dist/widgets/workspace/screens/Device.vue.d.ts +16 -0
  38. package/dist/widgets/workspace/screens/Mobile.vue.d.ts +13 -0
  39. package/dist/widgets/workspace/screens/Tablet.vue.d.ts +13 -0
  40. package/package.json +1 -1
  41. package/dist/stores/screens.d.ts +0 -26
@@ -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;
@@ -0,0 +1,6 @@
1
+ type __VLS_Props = {
2
+ active?: boolean;
3
+ };
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>;
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
@@ -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
+ };
@@ -7,17 +7,20 @@ type __VLS_Props = {
7
7
  darkMode?: boolean;
8
8
  translationsOpen?: boolean;
9
9
  themeOpen?: boolean;
10
+ previewOpen?: boolean;
10
11
  };
11
12
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
13
  moreSelect: (id: string) => any;
13
14
  toggleTheme: () => any;
14
15
  toggleTranslations: () => any;
15
16
  toggleThemePanel: () => any;
17
+ togglePreview: () => any;
16
18
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
17
19
  onMoreSelect?: ((id: string) => any) | undefined;
18
20
  onToggleTheme?: (() => any) | undefined;
19
21
  onToggleTranslations?: (() => any) | undefined;
20
22
  onToggleThemePanel?: (() => any) | undefined;
23
+ onTogglePreview?: (() => any) | undefined;
21
24
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
25
  declare const _default: typeof __VLS_export;
23
26
  export default _default;
@@ -1,3 +1,27 @@
1
- declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ import type { WorkspaceComponent } from '../stores/workspace';
2
+ type __VLS_Props = {
3
+ layers?: {
4
+ id: string;
5
+ type: string;
6
+ label: string;
7
+ icon: string;
8
+ depth: number;
9
+ }[];
10
+ selectedComponent?: WorkspaceComponent;
11
+ contentDarkMode?: boolean;
12
+ };
13
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
+ updateProps: (props: Record<string, unknown>) => any;
15
+ focusTranslation: (id: string) => any;
16
+ selectLayer: (id: string) => any;
17
+ reorderLayer: (sourceId: string, targetId: string) => any;
18
+ moveIntoLayer: (sourceId: string, parentId: string) => any;
19
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
20
+ onUpdateProps?: ((props: Record<string, unknown>) => any) | undefined;
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;
25
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
2
26
  declare const _default: typeof __VLS_export;
3
27
  export default _default;
@@ -4,12 +4,12 @@ type __VLS_Props = {
4
4
  focusedTemplateId?: string;
5
5
  };
6
6
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
- select: (id: string) => any;
8
7
  add: () => any;
8
+ select: (id: string) => any;
9
9
  rename: (id: string, name: string) => any;
10
10
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
11
- onSelect?: ((id: string) => any) | undefined;
12
11
  onAdd?: (() => any) | undefined;
12
+ onSelect?: ((id: string) => any) | undefined;
13
13
  onRename?: ((id: string, name: string) => any) | undefined;
14
14
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
15
  declare const _default: typeof __VLS_export;
@@ -1,13 +1,17 @@
1
1
  type __VLS_Props = {
2
2
  open: boolean;
3
- color?: string;
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;
@@ -9,6 +9,7 @@ export interface TranslationField {
9
9
  type __VLS_Props = {
10
10
  open: boolean;
11
11
  fields?: TranslationField[];
12
+ focusedFieldId?: string;
12
13
  };
13
14
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
15
  close: () => any;
@@ -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
+ };
@@ -0,0 +1,21 @@
1
+ type __VLS_Props = {
2
+ subject: string;
3
+ templateId?: string;
4
+ templateName?: string;
5
+ preview?: boolean;
6
+ contentPrimary?: string;
7
+ debug?: boolean;
8
+ contentDarkMode?: boolean;
9
+ };
10
+ declare function addComponent(type: string): void;
11
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
12
+ addComponent: typeof addComponent;
13
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
+ componentDrop: (type: string) => any;
15
+ toggleContentTheme: () => any;
16
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
17
+ onComponentDrop?: ((type: string) => any) | undefined;
18
+ onToggleContentTheme?: (() => any) | undefined;
19
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;
@@ -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<{}>, {
@@ -3,8 +3,8 @@ type __VLS_Props = {
3
3
  size?: 'sm' | 'md' | 'lg' | 'xl';
4
4
  };
5
5
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
6
- text: string;
7
6
  size: "sm" | "md" | "lg" | "xl";
7
+ text: string;
8
8
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
9
  declare const _default: typeof __VLS_export;
10
10
  export default _default;
@@ -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;
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,26 @@
1
+ type __VLS_Props = {
2
+ type: string;
3
+ id?: string;
4
+ componentProps?: Record<string, unknown>;
5
+ selected?: boolean;
6
+ preview?: boolean;
7
+ };
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, {
13
+ select: () => any;
14
+ moveStart: (id: string, event: DragEvent) => any;
15
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
16
+ onSelect?: (() => any) | undefined;
17
+ onMoveStart?: ((id: string, event: DragEvent) => any) | undefined;
18
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;
22
+ type __VLS_WithSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -0,0 +1,16 @@
1
+ import { type WorkspaceComponent } from '../../stores/workspace';
2
+ type __VLS_Props = {
3
+ preview?: boolean;
4
+ };
5
+ declare function addComponent(type: string): void;
6
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
7
+ addComponent: typeof addComponent;
8
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
+ componentDrop: (type: string) => any;
10
+ componentSelect: (component: WorkspaceComponent) => any;
11
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ onComponentDrop?: ((type: string) => any) | undefined;
13
+ onComponentSelect?: ((component: WorkspaceComponent) => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
@@ -0,0 +1,31 @@
1
+ interface RenderedComponent {
2
+ type: string;
3
+ props?: Record<string, unknown>;
4
+ }
5
+ type __VLS_Props = {
6
+ components: RenderedComponent[];
7
+ selectedIndex?: number;
8
+ };
9
+ declare var __VLS_1: {
10
+ type: string;
11
+ props: Record<string, unknown> | undefined;
12
+ index: number;
13
+ selected: boolean;
14
+ select: () => void;
15
+ };
16
+ type __VLS_Slots = {} & {
17
+ default?: (props: typeof __VLS_1) => any;
18
+ };
19
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
20
+ select: (index: number) => any;
21
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
22
+ onSelect?: ((index: number) => any) | undefined;
23
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
25
+ declare const _default: typeof __VLS_export;
26
+ export default _default;
27
+ type __VLS_WithSlots<T, S> = T & {
28
+ new (): {
29
+ $slots: S;
30
+ };
31
+ };
@@ -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;
@@ -0,0 +1,12 @@
1
+ import type { Component } from 'vue';
2
+ import { withEditable, type EditablePropDefinition } from './editable';
3
+ export { withEditable };
4
+ export type { EditablePropDefinition };
5
+ export declare const componentDisplayNames: Record<string, string>;
6
+ export declare const componentIcons: Record<string, string>;
7
+ export declare function getComponentDisplayName(type: string): string;
8
+ export declare const componentMap: Record<string, Component>;
9
+ export declare const componentPropDefinitions: Record<string, (EditablePropDefinition & {
10
+ key: string;
11
+ })[]>;
12
+ export declare const slotComponentTypes: Set<string>;
@@ -0,0 +1,12 @@
1
+ export type EditablePropDefinition = {
2
+ label?: string;
3
+ type: 'string' | 'text' | 'number' | 'boolean' | 'select' | 'color';
4
+ translations?: boolean;
5
+ options?: string[];
6
+ defaultValue?: string | number | boolean;
7
+ };
8
+ export type EditablePropDefinitions = Record<string, EditablePropDefinition>;
9
+ export declare const editablePropDefinitions: Record<string, (EditablePropDefinition & {
10
+ key: string;
11
+ })[]>;
12
+ export declare function withEditable(componentType: string, definitions: EditablePropDefinitions): EditablePropDefinitions;
@@ -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
+ };
@@ -0,0 +1,16 @@
1
+ type __VLS_Props = {
2
+ mode: 'phone' | 'tablet';
3
+ };
4
+ declare var __VLS_1: {};
5
+ type __VLS_Slots = {} & {
6
+ default?: (props: typeof __VLS_1) => any;
7
+ };
8
+ 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>;
9
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
12
+ type __VLS_WithSlots<T, S> = T & {
13
+ new (): {
14
+ $slots: S;
15
+ };
16
+ };
@@ -0,0 +1,13 @@
1
+ declare var __VLS_8: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_8) => 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
+ };
@@ -0,0 +1,13 @@
1
+ declare var __VLS_8: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_8) => 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
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aham.ro/ui-designer",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "description": "Vue components for the UI designer for IAM and email templates.",
5
5
  "type": "module",
6
6
  "files": [
@@ -1,26 +0,0 @@
1
- export interface ScreenBase {
2
- id: string;
3
- name: string;
4
- icon: string;
5
- channel: string;
6
- version: string;
7
- changed: boolean;
8
- }
9
- export interface PredefinedScreen extends ScreenBase {
10
- type: 'predefined';
11
- }
12
- export interface DynamicScreen extends ScreenBase {
13
- type: 'dynamic';
14
- content?: Record<string, unknown>;
15
- }
16
- export type Screen = PredefinedScreen | DynamicScreen;
17
- export declare const useScreensStore: import("pinia").StoreDefinition<"screens", {
18
- screens: Screen[];
19
- screen: Screen | null;
20
- }, {}, {
21
- setScreens(screens: Screen[]): void;
22
- setActive(id: string): void;
23
- addDynamicLayout(template?: DynamicScreen): void;
24
- rename(id: string, name: string): void;
25
- clear(): void;
26
- }>;