@davincihealthcare/elty-design-system-vue 1.20.3 → 1.21.0
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/ElSpinner.vue.d.ts +41 -0
- package/dist/ElTable.vue.d.ts +80 -0
- package/dist/ElTableCell.vue.d.ts +46 -0
- package/dist/ElTablePagination.vue.d.ts +61 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +8740 -8154
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +21 -21
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +3 -1
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export declare const elSpinnerSize: readonly ["normal", "larger"];
|
|
2
|
+
export type ElSpinnerSize = (typeof elSpinnerSize)[number];
|
|
3
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
label?: string | undefined;
|
|
5
|
+
size?: "normal" | "larger" | undefined;
|
|
6
|
+
extraLoadingMsgAfterSeconds?: number | undefined;
|
|
7
|
+
}>, {
|
|
8
|
+
label: string;
|
|
9
|
+
size: string;
|
|
10
|
+
extraLoadingMsgAfterSeconds: number;
|
|
11
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
12
|
+
label?: string | undefined;
|
|
13
|
+
size?: "normal" | "larger" | undefined;
|
|
14
|
+
extraLoadingMsgAfterSeconds?: number | undefined;
|
|
15
|
+
}>, {
|
|
16
|
+
label: string;
|
|
17
|
+
size: string;
|
|
18
|
+
extraLoadingMsgAfterSeconds: number;
|
|
19
|
+
}>>>, {
|
|
20
|
+
label: string;
|
|
21
|
+
size: ElSpinnerSize;
|
|
22
|
+
extraLoadingMsgAfterSeconds: number;
|
|
23
|
+
}, {}>;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
26
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
27
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
28
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
29
|
+
} : {
|
|
30
|
+
type: import('vue').PropType<T[K]>;
|
|
31
|
+
required: true;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
type __VLS_WithDefaults<P, D> = {
|
|
35
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
36
|
+
default: D[K];
|
|
37
|
+
}> : P[K];
|
|
38
|
+
};
|
|
39
|
+
type __VLS_Prettify<T> = {
|
|
40
|
+
[K in keyof T]: T[K];
|
|
41
|
+
} & {};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { DataCell } from './ElTableCell.vue';
|
|
2
|
+
|
|
3
|
+
export type FilterType = 'FREE_SEARCH' | 'DATE_RANGE' | 'MULTI_VALUE';
|
|
4
|
+
interface TableColumn {
|
|
5
|
+
title: string;
|
|
6
|
+
filter?: {
|
|
7
|
+
type: FilterType;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
} | {
|
|
10
|
+
type: 'RESET_FILTERS_BUTTON';
|
|
11
|
+
};
|
|
12
|
+
alignRight?: boolean;
|
|
13
|
+
noSort?: boolean;
|
|
14
|
+
}
|
|
15
|
+
interface DataRow<RelatedObjectType = any> {
|
|
16
|
+
id: string;
|
|
17
|
+
rowNotSelectable?: boolean;
|
|
18
|
+
cells: DataCell[];
|
|
19
|
+
relatedObject?: RelatedObjectType;
|
|
20
|
+
}
|
|
21
|
+
export interface TableProps {
|
|
22
|
+
columns: TableColumn[];
|
|
23
|
+
data: DataRow[];
|
|
24
|
+
tableId?: number | string;
|
|
25
|
+
sortByCol?: number;
|
|
26
|
+
sortByColAsc?: boolean;
|
|
27
|
+
noFilters?: boolean;
|
|
28
|
+
noFooter?: boolean;
|
|
29
|
+
rowsSelectionMode?: 'single' | 'multiple';
|
|
30
|
+
rowsSelectionDisabled?: boolean;
|
|
31
|
+
initialRows?: number;
|
|
32
|
+
loading?: boolean;
|
|
33
|
+
}
|
|
34
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TableProps>, {
|
|
35
|
+
tableId: number;
|
|
36
|
+
sortByCol: number;
|
|
37
|
+
initialRows: number;
|
|
38
|
+
sortByColAsc: boolean;
|
|
39
|
+
rowsSelectionMode: undefined;
|
|
40
|
+
}>, {
|
|
41
|
+
filteredData: import('vue').ComputedRef<DataRow<any>[]>;
|
|
42
|
+
selectRows: (rowsIds: string[]) => Promise<void>;
|
|
43
|
+
unselectAllRows: () => void;
|
|
44
|
+
getDataRows: () => DataRow[];
|
|
45
|
+
getSelectedRows: () => DataRow[];
|
|
46
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
47
|
+
"rows-selected": (rows: DataRow<any>[]) => void;
|
|
48
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TableProps>, {
|
|
49
|
+
tableId: number;
|
|
50
|
+
sortByCol: number;
|
|
51
|
+
initialRows: number;
|
|
52
|
+
sortByColAsc: boolean;
|
|
53
|
+
rowsSelectionMode: undefined;
|
|
54
|
+
}>>> & {
|
|
55
|
+
"onRows-selected"?: ((rows: DataRow<any>[]) => any) | undefined;
|
|
56
|
+
}, {
|
|
57
|
+
tableId: string | number;
|
|
58
|
+
sortByCol: number;
|
|
59
|
+
sortByColAsc: boolean;
|
|
60
|
+
rowsSelectionMode: "multiple" | "single";
|
|
61
|
+
initialRows: number;
|
|
62
|
+
}, {}>;
|
|
63
|
+
export default _default;
|
|
64
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
65
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
66
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
67
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
68
|
+
} : {
|
|
69
|
+
type: import('vue').PropType<T[K]>;
|
|
70
|
+
required: true;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
type __VLS_WithDefaults<P, D> = {
|
|
74
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
75
|
+
default: D[K];
|
|
76
|
+
}> : P[K];
|
|
77
|
+
};
|
|
78
|
+
type __VLS_Prettify<T> = {
|
|
79
|
+
[K in keyof T]: T[K];
|
|
80
|
+
} & {};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { default as ElTag } from './ElTag.vue';
|
|
2
|
+
import { default as ElButton } from './ElButton.vue';
|
|
3
|
+
import { default as ElIconButton } from './ElIconButton.vue';
|
|
4
|
+
|
|
5
|
+
export declare const dataCellTypes: readonly ["default", "tag", "action"];
|
|
6
|
+
export type DataCellType = (typeof dataCellTypes)[number];
|
|
7
|
+
export type DataCell = TagCell | DefaultCell | ActionCell;
|
|
8
|
+
interface BasicDataCell {
|
|
9
|
+
sortableAndFilterableValue: string;
|
|
10
|
+
type: DataCellType;
|
|
11
|
+
}
|
|
12
|
+
export interface DefaultCell extends BasicDataCell {
|
|
13
|
+
type: 'default';
|
|
14
|
+
mainText: string;
|
|
15
|
+
subText?: string;
|
|
16
|
+
clickAction?: (payload?: PointerEvent) => void;
|
|
17
|
+
longText?: boolean;
|
|
18
|
+
truncateSubText?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface TagCell extends BasicDataCell {
|
|
21
|
+
type: 'tag';
|
|
22
|
+
tag: InstanceType<typeof ElTag>['$props'];
|
|
23
|
+
subText?: string;
|
|
24
|
+
truncateSubText?: boolean;
|
|
25
|
+
}
|
|
26
|
+
export interface ActionCell extends BasicDataCell {
|
|
27
|
+
type: 'action';
|
|
28
|
+
buttons?: InstanceType<typeof ElButton>['$props'][];
|
|
29
|
+
iconButtons?: InstanceType<typeof ElIconButton>['$props'][];
|
|
30
|
+
}
|
|
31
|
+
export declare const getCellText: (cell: DataCell) => string | null;
|
|
32
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
33
|
+
cell: DataCell;
|
|
34
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
35
|
+
cell: DataCell;
|
|
36
|
+
}>>>, {}, {}>;
|
|
37
|
+
export default _default;
|
|
38
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
39
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
40
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
41
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
42
|
+
} : {
|
|
43
|
+
type: import('vue').PropType<T[K]>;
|
|
44
|
+
required: true;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
declare const _default: <T>(__VLS_props: {
|
|
2
|
+
onChange?: ((page: number) => any) | undefined;
|
|
3
|
+
"onUpdate:currentTabRows"?: ((rows: T[]) => any) | undefined;
|
|
4
|
+
"onUpdate:currentPage"?: ((page: number) => any) | undefined;
|
|
5
|
+
rows: T[];
|
|
6
|
+
rowsPerPage?: number | undefined;
|
|
7
|
+
pagesBeforeDots?: number | undefined;
|
|
8
|
+
hideFooter?: boolean | undefined;
|
|
9
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, __VLS_ctx?: {
|
|
10
|
+
attrs: any;
|
|
11
|
+
slots: {};
|
|
12
|
+
emit: {
|
|
13
|
+
(event: 'update:currentTabRows', rows: T[]): void;
|
|
14
|
+
(event: 'update:currentPage', page: number): void;
|
|
15
|
+
(event: 'change', page: number): void;
|
|
16
|
+
};
|
|
17
|
+
} | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
|
|
18
|
+
props: {
|
|
19
|
+
onChange?: ((page: number) => any) | undefined;
|
|
20
|
+
"onUpdate:currentTabRows"?: ((rows: T[]) => any) | undefined;
|
|
21
|
+
"onUpdate:currentPage"?: ((page: number) => any) | undefined;
|
|
22
|
+
rows: T[];
|
|
23
|
+
rowsPerPage?: number | undefined;
|
|
24
|
+
pagesBeforeDots?: number | undefined;
|
|
25
|
+
hideFooter?: boolean | undefined;
|
|
26
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
27
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
28
|
+
attrs: any;
|
|
29
|
+
slots: {};
|
|
30
|
+
emit: {
|
|
31
|
+
(event: 'update:currentTabRows', rows: T[]): void;
|
|
32
|
+
(event: 'update:currentPage', page: number): void;
|
|
33
|
+
(event: 'change', page: number): void;
|
|
34
|
+
};
|
|
35
|
+
}>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
36
|
+
[key: string]: any;
|
|
37
|
+
}> & {
|
|
38
|
+
__ctx?: {
|
|
39
|
+
props: {
|
|
40
|
+
onChange?: ((page: number) => any) | undefined;
|
|
41
|
+
"onUpdate:currentTabRows"?: ((rows: T[]) => any) | undefined;
|
|
42
|
+
"onUpdate:currentPage"?: ((page: number) => any) | undefined;
|
|
43
|
+
rows: T[];
|
|
44
|
+
rowsPerPage?: number | undefined;
|
|
45
|
+
pagesBeforeDots?: number | undefined;
|
|
46
|
+
hideFooter?: boolean | undefined;
|
|
47
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
48
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
49
|
+
attrs: any;
|
|
50
|
+
slots: {};
|
|
51
|
+
emit: {
|
|
52
|
+
(event: 'update:currentTabRows', rows: T[]): void;
|
|
53
|
+
(event: 'update:currentPage', page: number): void;
|
|
54
|
+
(event: 'change', page: number): void;
|
|
55
|
+
};
|
|
56
|
+
} | undefined;
|
|
57
|
+
};
|
|
58
|
+
export default _default;
|
|
59
|
+
type __VLS_Prettify<T> = {
|
|
60
|
+
[K in keyof T]: T[K];
|
|
61
|
+
} & {};
|
package/dist/index.d.ts
CHANGED
|
@@ -72,5 +72,9 @@ export * from './ElInlineBanner.vue';
|
|
|
72
72
|
export { default as ElInlineBanner } from './ElInlineBanner.vue';
|
|
73
73
|
export * from './ElClipToAnchor.vue';
|
|
74
74
|
export { default as ElClipToAnchor } from './ElClipToAnchor.vue';
|
|
75
|
+
export * from './ElTable.vue';
|
|
76
|
+
export { default as ElTable } from './ElTable.vue';
|
|
77
|
+
export * from './ElSpinner.vue';
|
|
78
|
+
export { default as ElSpinner } from './ElSpinner.vue';
|
|
75
79
|
export * from './ElDivider.vue';
|
|
76
80
|
export { default as ElDivider } from './ElDivider.vue';
|