@vc-shell/framework 1.0.164 → 1.0.165
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/CHANGELOG.md +14 -0
- package/core/composables/index.ts +1 -0
- package/core/composables/useAsync/index.ts +4 -3
- package/core/composables/useBreadcrumbs/index.ts +75 -0
- package/dist/core/composables/index.d.ts +1 -0
- package/dist/core/composables/index.d.ts.map +1 -1
- package/dist/core/composables/useAsync/index.d.ts +1 -1
- package/dist/core/composables/useAsync/index.d.ts.map +1 -1
- package/dist/core/composables/useBreadcrumbs/index.d.ts +18 -0
- package/dist/core/composables/useBreadcrumbs/index.d.ts.map +1 -0
- package/dist/framework.js +2605 -2560
- package/dist/index.css +1 -1
- package/dist/shared/components/notifications/components/notification-container/index.d.ts +5 -5
- package/dist/shared/components/notifications/components/notification-container/index.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/GalleryField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/ImageField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/VideoField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/factories/base/useListFactory.d.ts +3 -3
- package/dist/shared/modules/dynamic/factories/base/useListFactory.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/factories/types/index.d.ts +9 -3
- package/dist/shared/modules/dynamic/factories/types/index.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts +9 -9
- package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts +10 -4
- package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/types/index.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue.d.ts +20 -52
- package/dist/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/index.d.ts +3 -21
- package/dist/ui/components/molecules/vc-breadcrumbs/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts +3 -14
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-field/vc-field.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts +3 -6
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
- package/dist/ui/types/index.d.ts +6 -0
- package/dist/ui/types/index.d.ts.map +1 -1
- package/package.json +5 -5
- package/shared/modules/dynamic/components/fields/GalleryField.ts +2 -2
- package/shared/modules/dynamic/components/fields/ImageField.ts +2 -2
- package/shared/modules/dynamic/components/fields/VideoField.ts +2 -2
- package/shared/modules/dynamic/factories/base/useListFactory.ts +6 -6
- package/shared/modules/dynamic/factories/types/index.ts +12 -4
- package/shared/modules/dynamic/pages/dynamic-blade-form.vue +8 -6
- package/shared/modules/dynamic/pages/dynamic-blade-list.vue +39 -12
- package/shared/modules/dynamic/types/index.ts +0 -2
- package/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue +11 -27
- package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.stories.ts +3 -3
- package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue +4 -9
- package/ui/components/molecules/vc-field/vc-field.vue +0 -1
- package/ui/components/molecules/vc-rating/vc-rating.vue +1 -1
- package/ui/components/organisms/vc-table/vc-table.vue +0 -2
- package/ui/types/index.ts +6 -1
|
@@ -1,55 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
type: BooleanConstructor;
|
|
4
|
-
default: boolean;
|
|
5
|
-
};
|
|
6
|
-
icon: {
|
|
7
|
-
type: StringConstructor;
|
|
8
|
-
default: undefined;
|
|
9
|
-
};
|
|
10
|
-
title: {
|
|
11
|
-
type: StringConstructor;
|
|
12
|
-
default: undefined;
|
|
13
|
-
};
|
|
14
|
-
clickHandler: {
|
|
15
|
-
type: FunctionConstructor;
|
|
16
|
-
default: undefined;
|
|
17
|
-
};
|
|
18
|
-
id: {
|
|
19
|
-
type: StringConstructor;
|
|
20
|
-
default: undefined;
|
|
21
|
-
};
|
|
22
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
|
-
click: (...args: any[]) => void;
|
|
24
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
|
-
current: {
|
|
26
|
-
type: BooleanConstructor;
|
|
27
|
-
default: boolean;
|
|
28
|
-
};
|
|
29
|
-
icon: {
|
|
30
|
-
type: StringConstructor;
|
|
31
|
-
default: undefined;
|
|
32
|
-
};
|
|
33
|
-
title: {
|
|
34
|
-
type: StringConstructor;
|
|
35
|
-
default: undefined;
|
|
36
|
-
};
|
|
37
|
-
clickHandler: {
|
|
38
|
-
type: FunctionConstructor;
|
|
39
|
-
default: undefined;
|
|
40
|
-
};
|
|
41
|
-
id: {
|
|
42
|
-
type: StringConstructor;
|
|
43
|
-
default: undefined;
|
|
44
|
-
};
|
|
45
|
-
}>> & {
|
|
46
|
-
onClick?: ((...args: any[]) => any) | undefined;
|
|
47
|
-
}, {
|
|
48
|
-
title: string;
|
|
49
|
-
icon: string;
|
|
1
|
+
import { Breadcrumbs } from "../../../../../types";
|
|
2
|
+
export interface Props extends Breadcrumbs {
|
|
50
3
|
current: boolean;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
4
|
+
}
|
|
5
|
+
export interface Emits {
|
|
6
|
+
(event: "click"): void;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
click: () => void;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
|
|
11
|
+
onClick?: (() => any) | undefined;
|
|
12
|
+
}, {}, {}>;
|
|
54
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
|
+
};
|
|
55
23
|
//# sourceMappingURL=vc-breadcrumbs-item.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vc-breadcrumbs-item.vue.d.ts","sourceRoot":"","sources":["../../../../../../../ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vc-breadcrumbs-item.vue.d.ts","sourceRoot":"","sources":["../../../../../../../ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGnD,MAAM,WAAW,KAAM,SAAQ,WAAW;IACxC,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,KAAK;IACpB,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;CACxB;;;;;;AAgGD,wBAOG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC"}
|
|
@@ -1,32 +1,14 @@
|
|
|
1
1
|
export declare const VcBreadcrumbs: import("vue").DefineComponent<{
|
|
2
2
|
items: {
|
|
3
|
-
type: import("vue").PropType<
|
|
4
|
-
current: boolean;
|
|
5
|
-
icon?: string | undefined;
|
|
6
|
-
title: string;
|
|
7
|
-
clickHandler?: (() => void) | undefined;
|
|
8
|
-
id: string;
|
|
9
|
-
}[]>;
|
|
3
|
+
type: import("vue").PropType<import("../../../types").Breadcrumbs[]>;
|
|
10
4
|
default: () => never[];
|
|
11
5
|
};
|
|
12
6
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
13
7
|
items: {
|
|
14
|
-
type: import("vue").PropType<
|
|
15
|
-
current: boolean;
|
|
16
|
-
icon?: string | undefined;
|
|
17
|
-
title: string;
|
|
18
|
-
clickHandler?: (() => void) | undefined;
|
|
19
|
-
id: string;
|
|
20
|
-
}[]>;
|
|
8
|
+
type: import("vue").PropType<import("../../../types").Breadcrumbs[]>;
|
|
21
9
|
default: () => never[];
|
|
22
10
|
};
|
|
23
11
|
}>>, {
|
|
24
|
-
items:
|
|
25
|
-
current: boolean;
|
|
26
|
-
icon?: string | undefined;
|
|
27
|
-
title: string;
|
|
28
|
-
clickHandler?: (() => void) | undefined;
|
|
29
|
-
id: string;
|
|
30
|
-
}[];
|
|
12
|
+
items: import("../../../types").Breadcrumbs[];
|
|
31
13
|
}, {}>;
|
|
32
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../ui/components/molecules/vc-breadcrumbs/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../ui/components/molecules/vc-breadcrumbs/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa;;;;;;;;;;;;MAAsC,CAAC"}
|
|
@@ -1,24 +1,13 @@
|
|
|
1
|
+
import { Breadcrumbs } from "../../../types";
|
|
1
2
|
export interface Props {
|
|
2
|
-
items?:
|
|
3
|
-
current: boolean;
|
|
4
|
-
icon?: string;
|
|
5
|
-
title: string;
|
|
6
|
-
clickHandler?: () => void;
|
|
7
|
-
id: string;
|
|
8
|
-
}[];
|
|
3
|
+
items?: Breadcrumbs[];
|
|
9
4
|
}
|
|
10
5
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
11
6
|
items: () => never[];
|
|
12
7
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
13
8
|
items: () => never[];
|
|
14
9
|
}>>>, {
|
|
15
|
-
items:
|
|
16
|
-
current: boolean;
|
|
17
|
-
icon?: string | undefined;
|
|
18
|
-
title: string;
|
|
19
|
-
clickHandler?: (() => void) | undefined;
|
|
20
|
-
id: string;
|
|
21
|
-
}[];
|
|
10
|
+
items: Breadcrumbs[];
|
|
22
11
|
}, {}>;
|
|
23
12
|
export default _default;
|
|
24
13
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vc-breadcrumbs.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vc-breadcrumbs.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,MAAM,WAAW,KAAK;IACpB,KAAK,CAAC,EAAE,WAAW,EAAE,CAAC;CACvB;;;;;;;;AAwED,wBAMG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vc-field.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/molecules/vc-field/vc-field.vue.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,KAAK;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,GAAG,OAAO,CAAC;IACvD;;OAEG;IAEH,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"vc-field.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/molecules/vc-field/vc-field.vue.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,KAAK;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,GAAG,OAAO,CAAC;IACvD;;OAEG;IAEH,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,C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CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AACxD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts
CHANGED
|
@@ -20,8 +20,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
20
20
|
};
|
|
21
21
|
disableDrag: boolean;
|
|
22
22
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
|
-
edit: (...args: any[]) => void;
|
|
24
23
|
remove: (...args: any[]) => void;
|
|
24
|
+
edit: (...args: any[]) => void;
|
|
25
25
|
preview: (...args: any[]) => void;
|
|
26
26
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
27
27
|
image: () => ICommonAsset;
|
|
@@ -25,7 +25,6 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
|
|
|
25
25
|
onItemClick?: ((item: T) => any) | undefined;
|
|
26
26
|
columns: ITableColumns[];
|
|
27
27
|
onSelectionChanged?: ((values: T[]) => any) | undefined;
|
|
28
|
-
onValue?: ((args_0: Record<string, unknown>) => any) | undefined;
|
|
29
28
|
onPaginationClick?: ((page: number) => any) | undefined;
|
|
30
29
|
"onSearch:change"?: ((value: string | number | Date | null | undefined) => any) | undefined;
|
|
31
30
|
"onRow:reorder"?: ((args: {
|
|
@@ -84,7 +83,7 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
|
|
|
84
83
|
empty: (props: any) => any;
|
|
85
84
|
footer: (props: any) => any;
|
|
86
85
|
};
|
|
87
|
-
emit: ((evt: "scroll:ptr") => void) & ((evt: "
|
|
86
|
+
emit: ((evt: "scroll:ptr") => void) & ((evt: "itemClick", item: T) => void) & ((evt: "paginationClick", page: number) => void) & ((evt: "selectionChanged", values: T[]) => void) & ((evt: "search:change", value: string | number | Date | null | undefined) => void) & ((evt: "headerClick", item: ITableColumns) => void) & ((evt: "row:reorder", args: {
|
|
88
87
|
dragIndex: number;
|
|
89
88
|
dropIndex: number;
|
|
90
89
|
value: T[];
|
|
@@ -105,7 +104,6 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
|
|
|
105
104
|
onItemClick?: ((item: T) => any) | undefined;
|
|
106
105
|
columns: ITableColumns[];
|
|
107
106
|
onSelectionChanged?: ((values: T[]) => any) | undefined;
|
|
108
|
-
onValue?: ((args_0: Record<string, unknown>) => any) | undefined;
|
|
109
107
|
onPaginationClick?: ((page: number) => any) | undefined;
|
|
110
108
|
"onSearch:change"?: ((value: string | number | Date | null | undefined) => any) | undefined;
|
|
111
109
|
"onRow:reorder"?: ((args: {
|
|
@@ -165,7 +163,7 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
|
|
|
165
163
|
empty: (props: any) => any;
|
|
166
164
|
footer: (props: any) => any;
|
|
167
165
|
};
|
|
168
|
-
emit: ((evt: "scroll:ptr") => void) & ((evt: "
|
|
166
|
+
emit: ((evt: "scroll:ptr") => void) & ((evt: "itemClick", item: T) => void) & ((evt: "paginationClick", page: number) => void) & ((evt: "selectionChanged", values: T[]) => void) & ((evt: "search:change", value: string | number | Date | null | undefined) => void) & ((evt: "headerClick", item: ITableColumns) => void) & ((evt: "row:reorder", args: {
|
|
169
167
|
dragIndex: number;
|
|
170
168
|
dropIndex: number;
|
|
171
169
|
value: T[];
|
|
@@ -189,7 +187,6 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
|
|
|
189
187
|
onItemClick?: ((item: T) => any) | undefined;
|
|
190
188
|
columns: ITableColumns[];
|
|
191
189
|
onSelectionChanged?: ((values: T[]) => any) | undefined;
|
|
192
|
-
onValue?: ((args_0: Record<string, unknown>) => any) | undefined;
|
|
193
190
|
onPaginationClick?: ((page: number) => any) | undefined;
|
|
194
191
|
"onSearch:change"?: ((value: string | number | Date | null | undefined) => any) | undefined;
|
|
195
192
|
"onRow:reorder"?: ((args: {
|
|
@@ -249,7 +246,7 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
|
|
|
249
246
|
empty: (props: any) => any;
|
|
250
247
|
footer: (props: any) => any;
|
|
251
248
|
};
|
|
252
|
-
emit: ((evt: "scroll:ptr") => void) & ((evt: "
|
|
249
|
+
emit: ((evt: "scroll:ptr") => void) & ((evt: "itemClick", item: T) => void) & ((evt: "paginationClick", page: number) => void) & ((evt: "selectionChanged", values: T[]) => void) & ((evt: "search:change", value: string | number | Date | null | undefined) => void) & ((evt: "headerClick", item: ITableColumns) => void) & ((evt: "row:reorder", args: {
|
|
253
250
|
dragIndex: number;
|
|
254
251
|
dropIndex: number;
|
|
255
252
|
value: T[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vc-table.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-table/vc-table.vue.ts"],"names":[],"mappings":"AAEA,OAAO,EAOL,GAAG,EAIH,QAAQ,EAET,MAAM,KAAK,CAAC;AAOb,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAK/E,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,E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AM,IAAI,CAAA;aAAE,KAAK,GAAG;;;kBACZ,GAAG;8BAGvB,GAAG,KAAK,GAAG;2BACd,GAAG,KAAK,GAAG;4BACV,GAAG,KAAK,GAAG;;+CAJQ,GAAG,KAAK,GAAG;;;sBACG,aAAa;kBAAO,GAAG;4BAJxD,GAAG,KAAK,GAAG;4BACX;gBAAE,UAAU,EAAE,MAAM,IAAI,CAAA;aAAE,KAAK,GAAG;;;kBACZ,GAAG;8BAGvB,GAAG,KAAK,GAAG;2BACd,GAAG,KAAK,GAAG;4BACV,GAAG,KAAK,GAAG;;;uBAyDQ,MAAM;uBAAa,MAAM;;;;;AAvE9D,wBAg+D2E;AAQ3E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
package/dist/ui/types/index.d.ts
CHANGED
|
@@ -6,5 +6,11 @@ declare module "vue" {
|
|
|
6
6
|
interface GlobalComponents extends TGlobalComponents<typeof components> {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
+
export interface Breadcrumbs {
|
|
10
|
+
icon?: string;
|
|
11
|
+
title: string;
|
|
12
|
+
clickHandler?: (id: string) => void | Promise<void>;
|
|
13
|
+
id: string;
|
|
14
|
+
}
|
|
9
15
|
export {};
|
|
10
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../ui/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAC;AAI9C,KAAK,iBAAiB,CAAC,CAAC,IAAI;KACzB,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACrB,CAAC;AACF,OAAO,QAAQ,KAAK,CAAC;IAEnB,UAAiB,gBAAiB,SAAQ,iBAAiB,CAAC,OAAO,UAAU,CAAC;KAAG;CAClF;AAED,OAAO,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../ui/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAC;AAI9C,KAAK,iBAAiB,CAAC,CAAC,IAAI;KACzB,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACrB,CAAC;AACF,OAAO,QAAQ,KAAK,CAAC;IAEnB,UAAiB,gBAAiB,SAAQ,iBAAiB,CAAC,OAAO,UAAU,CAAC;KAAG;CAClF;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,EAAE,EAAE,MAAM,CAAC;CACZ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vc-shell/framework",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.165",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/framework.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"quill-image-uploader": "^1.3.0",
|
|
46
46
|
"swiper": "^6.8.4",
|
|
47
47
|
"vee-validate": "^4.12.4",
|
|
48
|
-
"vue": "^3.4.
|
|
48
|
+
"vue": "^3.4.19",
|
|
49
49
|
"vue-currency-input": "^3.0.5",
|
|
50
50
|
"vue-i18n": "^9.8.0",
|
|
51
51
|
"vue-router": "^4.2.5",
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
"whatwg-fetch": "^3.6.19"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@vc-shell/api-client-generator": "^1.0.
|
|
57
|
-
"@vc-shell/config-generator": "^1.0.
|
|
58
|
-
"@vc-shell/ts-config": "^1.0.
|
|
56
|
+
"@vc-shell/api-client-generator": "^1.0.165",
|
|
57
|
+
"@vc-shell/config-generator": "^1.0.165",
|
|
58
|
+
"@vc-shell/ts-config": "^1.0.165",
|
|
59
59
|
"@vitejs/plugin-vue": "^5.0.3",
|
|
60
60
|
"sass": "^1.69.6",
|
|
61
61
|
"typescript": "^5.3.3",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, ExtractPropTypes, computed, h, markRaw, ref, toRefs, watch } from "vue";
|
|
1
|
+
import { Component, ExtractPropTypes, computed, h, markRaw, ref, toRefs, toValue, unref, watch } from "vue";
|
|
2
2
|
import { Gallery } from "../factories";
|
|
3
3
|
import componentProps from "./props";
|
|
4
4
|
import { ICommonAsset } from "../../../../../core/types";
|
|
@@ -123,7 +123,7 @@ export default {
|
|
|
123
123
|
{},
|
|
124
124
|
{
|
|
125
125
|
loading: imageHandlers.loading,
|
|
126
|
-
images: props.baseProps.modelValue,
|
|
126
|
+
images: toValue(props.baseProps.modelValue),
|
|
127
127
|
multiple: props.element.multiple,
|
|
128
128
|
variant: props.element.variant,
|
|
129
129
|
itemActions: props.element.actions,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExtractPropTypes, h, Component } from "vue";
|
|
1
|
+
import { ExtractPropTypes, h, Component, toValue } from "vue";
|
|
2
2
|
import { ImageField } from "../factories";
|
|
3
3
|
import componentProps from "./props";
|
|
4
4
|
import { ImageSchema } from "../../types";
|
|
@@ -13,7 +13,7 @@ export default {
|
|
|
13
13
|
props: Object.assign(
|
|
14
14
|
{},
|
|
15
15
|
{
|
|
16
|
-
src: props.baseProps.modelValue,
|
|
16
|
+
src: toValue(props.baseProps.modelValue),
|
|
17
17
|
aspect: props.element.aspect,
|
|
18
18
|
rounded: props.element.rounded,
|
|
19
19
|
bordered: props.element.bordered,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, ExtractPropTypes, h } from "vue";
|
|
1
|
+
import { Component, ExtractPropTypes, h, toValue } from "vue";
|
|
2
2
|
import { VideoField } from "../factories";
|
|
3
3
|
import componentProps from "./props";
|
|
4
4
|
import { VideoSchema } from "../../types";
|
|
@@ -13,7 +13,7 @@ export default {
|
|
|
13
13
|
props: Object.assign(
|
|
14
14
|
{},
|
|
15
15
|
{
|
|
16
|
-
source: props.baseProps.modelValue,
|
|
16
|
+
source: toValue(props.baseProps.modelValue),
|
|
17
17
|
size: props.element.size,
|
|
18
18
|
},
|
|
19
19
|
unrefNested(props.baseProps),
|
|
@@ -9,8 +9,8 @@ interface ISearchResult<T> {
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
export interface UseListFactoryParams<Items extends Record<string, any>[], Query extends IQuery> {
|
|
12
|
-
load?: (query: Query) => Promise<ISearchResult<Items>>;
|
|
13
|
-
remove?: (query: Query, customQuery: CustomQuery) => Promise<void>;
|
|
12
|
+
load?: (query: Query, ...args: any[]) => Promise<ISearchResult<Items>>;
|
|
13
|
+
remove?: (query: Query, customQuery: CustomQuery, ...args: any[]) => Promise<void>;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export interface IQuery {
|
|
@@ -36,13 +36,13 @@ export const useListFactory = <Items extends Record<string, any>[], Query extend
|
|
|
36
36
|
sort: options?.sort,
|
|
37
37
|
}) as Ref<Query>;
|
|
38
38
|
|
|
39
|
-
const { loading: itemsLoading, action: load } = useAsync<Query>(async (query) => {
|
|
39
|
+
const { loading: itemsLoading, action: load } = useAsync<Query>(async (query, ...rest) => {
|
|
40
40
|
searchQuery.value = { ...searchQuery.value, ...query };
|
|
41
|
-
searchResult.value = await factoryParams.load?.(query as Query);
|
|
41
|
+
searchResult.value = await factoryParams.load?.(query as Query, ...rest);
|
|
42
42
|
});
|
|
43
43
|
|
|
44
|
-
const { loading: itemsDelete, action: remove } = useAsync<CustomQuery>(async (customQuery) => {
|
|
45
|
-
await factoryParams.remove?.(searchQuery.value, customQuery as CustomQuery);
|
|
44
|
+
const { loading: itemsDelete, action: remove } = useAsync<CustomQuery>(async (customQuery, ...rest) => {
|
|
45
|
+
await factoryParams.remove?.(searchQuery.value, customQuery as CustomQuery, ...rest);
|
|
46
46
|
});
|
|
47
47
|
|
|
48
48
|
const loading = useLoading(itemsLoading, itemsDelete);
|
|
@@ -5,6 +5,7 @@ import { SettingsSchema } from "../../types";
|
|
|
5
5
|
import { AssetsHandler, IBladeToolbar, ICommonAsset } from "../../../../../core/types";
|
|
6
6
|
import { useBladeNavigation } from "../../../../components";
|
|
7
7
|
import { FormContext } from "vee-validate";
|
|
8
|
+
import { Breadcrumbs } from "../../../../../ui/types";
|
|
8
9
|
|
|
9
10
|
export type ItemId = { id: string };
|
|
10
11
|
|
|
@@ -46,7 +47,11 @@ export interface UseDetails<Item, Scope extends DetailsBaseBladeScope = DetailsB
|
|
|
46
47
|
bladeTitle?: ComputedRef<string>;
|
|
47
48
|
}
|
|
48
49
|
|
|
49
|
-
export interface UseList<
|
|
50
|
+
export interface UseList<
|
|
51
|
+
Items extends Record<string, any>[],
|
|
52
|
+
Query,
|
|
53
|
+
Scope extends ListBaseBladeScope<Items[number]> = ListBaseBladeScope<Items[number]>,
|
|
54
|
+
> {
|
|
50
55
|
items: ComputedRef<Items>;
|
|
51
56
|
query: Ref<Query>;
|
|
52
57
|
loading: ComputedRef<boolean>;
|
|
@@ -66,10 +71,13 @@ export interface BaseBladeScope {
|
|
|
66
71
|
toolbarOverrides?: MaybeRef<{ [x: string]: IBladeToolbar }> | ((...args: any[]) => any) | MaybeRef<IBladeToolbar[]>;
|
|
67
72
|
}
|
|
68
73
|
|
|
69
|
-
export interface ListBaseBladeScope extends BaseBladeScope {
|
|
70
|
-
openDetailsBlade
|
|
74
|
+
export interface ListBaseBladeScope<Item = Record<string, any>, Query = Record<string, any>> extends BaseBladeScope {
|
|
75
|
+
openDetailsBlade?: (
|
|
71
76
|
args?: Omit<Parameters<ReturnType<typeof useBladeNavigation>["openBlade"]>["0"], "blade">,
|
|
72
|
-
) => Promise<void
|
|
77
|
+
) => Promise<void> | void;
|
|
78
|
+
onListItemClick?: (args: { item?: Item }) => void;
|
|
79
|
+
onPaginationClick?: (query: Query) => void;
|
|
80
|
+
breadcrumbs?: ComputedRef<Breadcrumbs[]>;
|
|
73
81
|
}
|
|
74
82
|
|
|
75
83
|
export interface DetailsBaseBladeScope extends BaseBladeScope {
|
|
@@ -78,6 +78,7 @@ import {
|
|
|
78
78
|
ComputedRef,
|
|
79
79
|
type Component,
|
|
80
80
|
ConcreteComponent,
|
|
81
|
+
toRefs,
|
|
81
82
|
} from "vue";
|
|
82
83
|
import { DynamicDetailsSchema, FormContentSchema, SettingsSchema } from "../types";
|
|
83
84
|
import { reactiveComputed, useMounted, useTemplateRefsList } from "@vueuse/core";
|
|
@@ -295,11 +296,12 @@ const toolbarComputed =
|
|
|
295
296
|
async function setActiveWidget(widget: string | ConcreteComponent) {
|
|
296
297
|
const component = typeof widget === "string" ? resolveComponent(widget) : widget;
|
|
297
298
|
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
(
|
|
301
|
-
|
|
302
|
-
|
|
299
|
+
await nextTick(
|
|
300
|
+
() =>
|
|
301
|
+
(activeWidgetExposed.value = widgetsRefs.value.find((x) =>
|
|
302
|
+
_.isEqual(x.component, typeof component !== "string" ? component : resolveComponent(component)),
|
|
303
|
+
)?.el),
|
|
304
|
+
);
|
|
303
305
|
}
|
|
304
306
|
|
|
305
307
|
async function updateActiveWidgetCount() {
|
|
@@ -338,7 +340,7 @@ onBeforeClose(async () => {
|
|
|
338
340
|
defineExpose({
|
|
339
341
|
title: bladeTitle ?? "",
|
|
340
342
|
updateActiveWidgetCount,
|
|
341
|
-
...scope?.value,
|
|
343
|
+
...toRefs(scope?.value ?? {}),
|
|
342
344
|
});
|
|
343
345
|
</script>
|
|
344
346
|
|
|
@@ -24,6 +24,17 @@
|
|
|
24
24
|
>
|
|
25
25
|
</template>
|
|
26
26
|
<template v-else>
|
|
27
|
+
<div
|
|
28
|
+
v-if="!isWidgetView && scope?.breadcrumbs"
|
|
29
|
+
:class="[
|
|
30
|
+
{
|
|
31
|
+
'-tw-mb-4': tableData?.header,
|
|
32
|
+
},
|
|
33
|
+
'tw-p-4',
|
|
34
|
+
]"
|
|
35
|
+
>
|
|
36
|
+
<VcBreadcrumbs :items="scope?.breadcrumbs" />
|
|
37
|
+
</div>
|
|
27
38
|
<VcTable
|
|
28
39
|
class="tw-grow tw-basis-0"
|
|
29
40
|
:loading="loading"
|
|
@@ -43,7 +54,7 @@
|
|
|
43
54
|
:total-count="pagination?.totalCount"
|
|
44
55
|
:active-filter-count="activeFilterCount"
|
|
45
56
|
:reorderable-rows="isWidgetView ? false : tableData?.reorderableRows"
|
|
46
|
-
:pull-to-reload="
|
|
57
|
+
:pull-to-reload="!isWidgetView"
|
|
47
58
|
@item-click="onItemClick"
|
|
48
59
|
@pagination-click="onPaginationClick"
|
|
49
60
|
@selection-changed="onSelectionChanged"
|
|
@@ -144,6 +155,7 @@ import {
|
|
|
144
155
|
UnwrapRef,
|
|
145
156
|
ComputedRef,
|
|
146
157
|
onBeforeMount,
|
|
158
|
+
toRefs,
|
|
147
159
|
} from "vue";
|
|
148
160
|
import { useI18n } from "vue-i18n";
|
|
149
161
|
import { DynamicGridSchema, ListContentSchema, SettingsSchema } from "../types";
|
|
@@ -156,6 +168,7 @@ import { ListBaseBladeScope, ListBladeContext, UseList } from "../factories/type
|
|
|
156
168
|
import { IParentCallArgs } from "../../../index";
|
|
157
169
|
import * as _ from "lodash-es";
|
|
158
170
|
import { useMounted } from "@vueuse/core";
|
|
171
|
+
import { safeIn } from "../helpers/safeIn";
|
|
159
172
|
|
|
160
173
|
export interface Props {
|
|
161
174
|
expanded?: boolean;
|
|
@@ -330,7 +343,7 @@ const toolbarComputed =
|
|
|
330
343
|
toValue(scope).openDetailsBlade &&
|
|
331
344
|
typeof toValue(scope).openDetailsBlade === "function"
|
|
332
345
|
) {
|
|
333
|
-
toValue(scope).openDetailsBlade();
|
|
346
|
+
toValue(scope).openDetailsBlade?.();
|
|
334
347
|
} else throw new Error("openDetailsBlade method is not defined in scope");
|
|
335
348
|
},
|
|
336
349
|
},
|
|
@@ -367,7 +380,7 @@ watch(
|
|
|
367
380
|
toValue(scope).openDetailsBlade &&
|
|
368
381
|
typeof toValue(scope).openDetailsBlade === "function"
|
|
369
382
|
) {
|
|
370
|
-
await toValue(scope).openDetailsBlade({
|
|
383
|
+
await toValue(scope).openDetailsBlade?.({
|
|
371
384
|
param: newVal,
|
|
372
385
|
onOpen() {
|
|
373
386
|
selectedItemId.value = newVal;
|
|
@@ -406,7 +419,7 @@ const openDetailsBlade = async () => {
|
|
|
406
419
|
toValue(scope).openDetailsBlade &&
|
|
407
420
|
typeof toValue(scope).openDetailsBlade === "function"
|
|
408
421
|
) {
|
|
409
|
-
await toValue(scope).openDetailsBlade();
|
|
422
|
+
await toValue(scope).openDetailsBlade?.();
|
|
410
423
|
}
|
|
411
424
|
} else {
|
|
412
425
|
emit("add");
|
|
@@ -415,13 +428,8 @@ const openDetailsBlade = async () => {
|
|
|
415
428
|
|
|
416
429
|
const onItemClick = (item: { [x: string]: any; id?: string }) => {
|
|
417
430
|
if (!props.isWidgetView) {
|
|
418
|
-
if (
|
|
419
|
-
scope
|
|
420
|
-
"openDetailsBlade" in toValue(scope) &&
|
|
421
|
-
toValue(scope).openDetailsBlade &&
|
|
422
|
-
typeof toValue(scope).openDetailsBlade === "function"
|
|
423
|
-
) {
|
|
424
|
-
toValue(scope).openDetailsBlade({
|
|
431
|
+
if (scope && safeIn("openDetailsBlade", toValue(scope)) && typeof toValue(scope).openDetailsBlade === "function") {
|
|
432
|
+
toValue(scope).openDetailsBlade?.({
|
|
425
433
|
param: item.id,
|
|
426
434
|
onOpen() {
|
|
427
435
|
selectedItemId.value = item.id;
|
|
@@ -431,6 +439,12 @@ const onItemClick = (item: { [x: string]: any; id?: string }) => {
|
|
|
431
439
|
},
|
|
432
440
|
});
|
|
433
441
|
}
|
|
442
|
+
|
|
443
|
+
if (scope && safeIn("onListItemClick", toValue(scope)) && typeof toValue(scope).onListItemClick === "function") {
|
|
444
|
+
toValue(scope).onListItemClick?.({
|
|
445
|
+
item,
|
|
446
|
+
});
|
|
447
|
+
}
|
|
434
448
|
} else {
|
|
435
449
|
emit("item-click", { param: item.id });
|
|
436
450
|
}
|
|
@@ -490,6 +504,18 @@ const reload = async () => {
|
|
|
490
504
|
|
|
491
505
|
const onPaginationClick = async (page: number) => {
|
|
492
506
|
if (query.value.take) {
|
|
507
|
+
if (
|
|
508
|
+
scope &&
|
|
509
|
+
safeIn("onPaginationClick", toValue(scope)) &&
|
|
510
|
+
typeof toValue(scope).onPaginationClick === "function"
|
|
511
|
+
) {
|
|
512
|
+
toValue(scope).onPaginationClick?.({
|
|
513
|
+
...query.value,
|
|
514
|
+
skip: (page - 1) * query.value.take,
|
|
515
|
+
});
|
|
516
|
+
|
|
517
|
+
return;
|
|
518
|
+
}
|
|
493
519
|
await load({
|
|
494
520
|
...query.value,
|
|
495
521
|
skip: (page - 1) * query.value.take,
|
|
@@ -564,6 +590,7 @@ defineExpose({
|
|
|
564
590
|
reload,
|
|
565
591
|
title,
|
|
566
592
|
updateActiveWidgetCount,
|
|
567
|
-
|
|
593
|
+
selectedIds,
|
|
594
|
+
...toRefs(scope?.value ?? {}),
|
|
568
595
|
});
|
|
569
596
|
</script>
|
|
@@ -786,7 +786,6 @@ export interface SwitchSchema extends Omit<SchemaBase, "placeholder" | "multilan
|
|
|
786
786
|
falseValue?: boolean;
|
|
787
787
|
}
|
|
788
788
|
|
|
789
|
-
// TODO add to documentation
|
|
790
789
|
export type TableSchema = Omit<ListContentSchema, "filter"> & Pick<SchemaBase, "id" | "property" | "visibility">;
|
|
791
790
|
|
|
792
791
|
/**
|
|
@@ -836,7 +835,6 @@ export interface ButtonSchema extends Pick<SchemaBase, "id" | "disabled" | "visi
|
|
|
836
835
|
* Custom component schema interface.
|
|
837
836
|
* @interface
|
|
838
837
|
*/
|
|
839
|
-
// TODO add to documentation
|
|
840
838
|
export interface CustomComponentSchema extends Pick<SchemaBase, "id" | "visibility"> {
|
|
841
839
|
/**
|
|
842
840
|
* Component type for custom component.
|