@davincihealthcare/elty-design-system-vue 1.50.1 → 1.51.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/index.js +4126 -4140
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +17 -17
- package/dist/index.umd.cjs.map +1 -1
- package/dist/table/ElMobileTable.vue.d.ts +16 -7
- package/dist/table/ElResponsiveTable.vue.d.ts +12 -4
- package/dist/table/ElServerSideResponsiveTable.vue.d.ts +1 -14
- package/package.json +1 -1
|
@@ -8,60 +8,69 @@ export type MobileTableFiltersStatus = {
|
|
|
8
8
|
freeSearch?: string;
|
|
9
9
|
fromDate?: number;
|
|
10
10
|
multiSelect: {
|
|
11
|
-
mainText?: string
|
|
12
|
-
secondaryRow?: string
|
|
13
|
-
tertiaryRow?: string
|
|
14
|
-
tags?: string
|
|
15
|
-
time?: string
|
|
16
|
-
amount?: string
|
|
17
|
-
avatar?: string
|
|
11
|
+
mainText?: string;
|
|
12
|
+
secondaryRow?: string;
|
|
13
|
+
tertiaryRow?: string;
|
|
14
|
+
tags?: string;
|
|
15
|
+
time?: string;
|
|
16
|
+
amount?: string;
|
|
17
|
+
avatar?: string;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
export type MobileTableFilter = {
|
|
21
21
|
freeSearch?: {
|
|
22
22
|
placeholder?: string;
|
|
23
23
|
filterOn: ('mainText' | 'secondaryRow' | 'tertiaryRow' | 'amount' | 'tags' | 'time' | 'avatar')[];
|
|
24
|
+
initialValue?: string;
|
|
24
25
|
};
|
|
25
26
|
multiValue?: {
|
|
26
27
|
mainText?: {
|
|
27
28
|
enabled: boolean;
|
|
28
29
|
label: string;
|
|
29
30
|
selectOptions?: SelectOptions;
|
|
31
|
+
initialValue?: string;
|
|
30
32
|
};
|
|
31
33
|
secondaryRow?: {
|
|
32
34
|
enabled: boolean;
|
|
33
35
|
label: string;
|
|
34
36
|
selectOptions?: SelectOptions;
|
|
37
|
+
initialValue?: string;
|
|
35
38
|
};
|
|
36
39
|
tertiaryRow?: {
|
|
37
40
|
enabled: boolean;
|
|
38
41
|
label: string;
|
|
39
42
|
selectOptions?: SelectOptions;
|
|
43
|
+
initialValue?: string;
|
|
40
44
|
};
|
|
41
45
|
amount?: {
|
|
42
46
|
enabled: boolean;
|
|
43
47
|
label: string;
|
|
44
48
|
selectOptions?: SelectOptions;
|
|
49
|
+
initialValue?: string;
|
|
45
50
|
};
|
|
46
51
|
tags?: {
|
|
47
52
|
enabled: boolean;
|
|
48
53
|
label: string;
|
|
49
54
|
selectOptions?: SelectOptions;
|
|
55
|
+
initialValue?: string;
|
|
50
56
|
};
|
|
51
57
|
time?: {
|
|
52
58
|
enabled: boolean;
|
|
53
59
|
label: string;
|
|
54
60
|
selectOptions?: SelectOptions;
|
|
61
|
+
initialValue?: string;
|
|
55
62
|
};
|
|
56
63
|
avatar?: {
|
|
57
64
|
enabled: boolean;
|
|
58
65
|
label: string;
|
|
59
66
|
selectOptions?: SelectOptions;
|
|
67
|
+
initialValue?: string;
|
|
60
68
|
};
|
|
61
69
|
};
|
|
62
70
|
dateRange?: {
|
|
63
71
|
enabled: boolean;
|
|
64
72
|
label: string;
|
|
73
|
+
initialValue?: number;
|
|
65
74
|
};
|
|
66
75
|
resetButton?: boolean;
|
|
67
76
|
managed?: boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ElInputSelect } from '..';
|
|
1
2
|
import { DefaultCell } from './ElTableCell.vue';
|
|
2
3
|
import { default as ElDropdown } from '../ElDropdown.vue';
|
|
3
4
|
import { default as ElIconButton } from '../ElIconButton.vue';
|
|
@@ -42,8 +43,8 @@ export type ResponsiveActionDataCell = {
|
|
|
42
43
|
iconButtons?: InstanceType<typeof ElIconButton>['$props'][];
|
|
43
44
|
dropdown?: InstanceType<typeof ElDropdown>['$props'];
|
|
44
45
|
mobileBehaviour?: {
|
|
45
|
-
primary:
|
|
46
|
-
secondary?:
|
|
46
|
+
primary: InstanceType<typeof ElButton>['$props'];
|
|
47
|
+
secondary?: InstanceType<typeof ElButton>['$props'];
|
|
47
48
|
};
|
|
48
49
|
};
|
|
49
50
|
export type ResponsiveDataRow<T = any> = {
|
|
@@ -58,8 +59,15 @@ export type ResponsiveDataRow<T = any> = {
|
|
|
58
59
|
export type ResponsiveTableColumn = {
|
|
59
60
|
title: string;
|
|
60
61
|
filter?: {
|
|
61
|
-
type: FilterType
|
|
62
|
-
|
|
62
|
+
type: Extract<FilterType, 'FREE_SEARCH'>;
|
|
63
|
+
initialValue?: string;
|
|
64
|
+
} | {
|
|
65
|
+
type: Extract<FilterType, 'DATE_RANGE'>;
|
|
66
|
+
initialValue?: number;
|
|
67
|
+
} | {
|
|
68
|
+
type: Extract<FilterType, 'MULTI_VALUE'>;
|
|
69
|
+
selectOptions: InstanceType<typeof ElInputSelect>['$props']['options'];
|
|
70
|
+
initialValue?: string;
|
|
63
71
|
mobileBehaviour?: {
|
|
64
72
|
/**
|
|
65
73
|
* Used only if filter type === 'MULTI_VALUE' and column.mobileBehaviour.position is an array
|
|
@@ -1,23 +1,10 @@
|
|
|
1
1
|
import { MobileTableFiltersStatus } from './ElMobileTable.vue';
|
|
2
|
-
import { FilterType } from './commonTypes';
|
|
3
|
-
import { default as ElInputSelect } from '../forms/ElInputSelect.vue';
|
|
4
2
|
import { DataControls, TableColumn } from './ElServerSideTable.vue';
|
|
5
3
|
import { ElResponsiveTableProps, ResponsiveTableColumn, ResponsiveDataRow } from './ElResponsiveTable.vue';
|
|
6
4
|
|
|
7
5
|
export type ResponsiveServerSideTableColumn = Pick<TableColumn, 'title'> & {
|
|
8
6
|
desktopBehaviour?: Pick<TableColumn, 'alignRight' | 'noSort'>;
|
|
9
|
-
filter?:
|
|
10
|
-
type: Exclude<FilterType, 'MULTI_VALUE'>;
|
|
11
|
-
placeholder?: string;
|
|
12
|
-
} | {
|
|
13
|
-
type: Extract<FilterType, 'MULTI_VALUE'>;
|
|
14
|
-
selectOptions: InstanceType<typeof ElInputSelect>['$props']['options'];
|
|
15
|
-
mobileBehaviour?: {
|
|
16
|
-
position?: 'mainText' | 'secondaryRow' | 'tertiaryRow' | 'amount' | 'time' | 'tags' | 'avatar';
|
|
17
|
-
};
|
|
18
|
-
} | {
|
|
19
|
-
type: 'RESET_FILTERS_BUTTON';
|
|
20
|
-
};
|
|
7
|
+
filter?: ResponsiveTableColumn['filter'];
|
|
21
8
|
} & Pick<ResponsiveTableColumn, 'mobileBehaviour'>;
|
|
22
9
|
export type ResponsiveDataControls = Pick<DataControls, 'paginationStatus' | 'filterStatus' | 'triggeredEvent'> & ({
|
|
23
10
|
tableType: 'desktop';
|