@davincihealthcare/elty-design-system-vue 1.34.4 → 1.35.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/ElDropdown.vue.d.ts +87 -58
- package/dist/ElTextCell.vue.d.ts +33 -0
- package/dist/forms/ElInputSelect.vue.d.ts +8 -8
- package/dist/index.js +4305 -4245
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +12 -12
- package/dist/index.umd.cjs.map +1 -1
- package/dist/table/ElServerSideTable.vue.d.ts +1 -1
- package/dist/table/ElTableCell.vue.d.ts +17 -2
- package/package.json +1 -1
|
@@ -1,18 +1,27 @@
|
|
|
1
|
+
import { default as ElDropdown } from '../ElDropdown.vue';
|
|
2
|
+
import { TextualValueType } from '../forms/input';
|
|
3
|
+
import { ElIconProps } from '../ElIcon.vue';
|
|
4
|
+
import { default as ElAvatar } from '../ElAvatar.vue';
|
|
5
|
+
import { ElTextCellStyle } from '../ElTextCell.vue';
|
|
1
6
|
import { default as ElIconButton } from '../ElIconButton.vue';
|
|
2
7
|
import { default as ElButton } from '../ElButton.vue';
|
|
3
8
|
import { default as ElTag } from '../ElTag.vue';
|
|
4
9
|
|
|
5
|
-
export declare const dataCellTypes: readonly ["default", "tag", "action"];
|
|
10
|
+
export declare const dataCellTypes: readonly ["default", "tag", "action", "input"];
|
|
6
11
|
export type DataCellType = (typeof dataCellTypes)[number];
|
|
7
|
-
export type DataCell = TagCell | DefaultCell | ActionCell;
|
|
12
|
+
export type DataCell = TagCell | DefaultCell | ActionCell | InputCell;
|
|
8
13
|
interface BasicDataCell {
|
|
9
14
|
sortableAndFilterableValue: string;
|
|
10
15
|
type: DataCellType;
|
|
11
16
|
}
|
|
12
17
|
export interface DefaultCell extends BasicDataCell {
|
|
13
18
|
type: 'default';
|
|
19
|
+
mainIcon?: ElIconProps;
|
|
14
20
|
mainText: string;
|
|
21
|
+
mainTextStyle?: ElTextCellStyle;
|
|
22
|
+
subIcon?: ElIconProps;
|
|
15
23
|
subText?: string;
|
|
24
|
+
avatar?: Pick<InstanceType<typeof ElAvatar>['$props'], 'picture' | 'label'>;
|
|
16
25
|
clickAction?: (payload?: PointerEvent) => void;
|
|
17
26
|
longText?: boolean;
|
|
18
27
|
truncateSubText?: boolean;
|
|
@@ -27,6 +36,12 @@ export interface ActionCell extends BasicDataCell {
|
|
|
27
36
|
type: 'action';
|
|
28
37
|
buttons?: InstanceType<typeof ElButton>['$props'][];
|
|
29
38
|
iconButtons?: InstanceType<typeof ElIconButton>['$props'][];
|
|
39
|
+
dropdown?: InstanceType<typeof ElDropdown>['$props'];
|
|
40
|
+
}
|
|
41
|
+
export interface InputCell extends BasicDataCell {
|
|
42
|
+
type: 'input';
|
|
43
|
+
value?: string;
|
|
44
|
+
onUpdate?: (value: TextualValueType) => void;
|
|
30
45
|
}
|
|
31
46
|
export declare const getCellText: (cell: DataCell) => string | null;
|
|
32
47
|
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|