@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
package/dist/ElDropdown.vue.d.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
import { default as ElIconButton } from './ElIconButton.vue';
|
|
2
|
+
import { default as ElButton } from './ElButton.vue';
|
|
1
3
|
import { default as ElItem } from './ElItem.vue';
|
|
2
4
|
|
|
3
5
|
export type DropdownItem = {
|
|
4
6
|
onClick?: () => void;
|
|
5
7
|
} & InstanceType<typeof ElItem>['$props'];
|
|
8
|
+
export declare const elDropdownMaxHeight: readonly [0, 260];
|
|
9
|
+
export type ElDropdownMaxHeight = (typeof elDropdownMaxHeight)[number];
|
|
6
10
|
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
7
11
|
items: DropdownItem[];
|
|
8
12
|
title?: string | undefined;
|
|
@@ -85,13 +89,62 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
85
89
|
right?: boolean | undefined;
|
|
86
90
|
minWidth?: number | undefined;
|
|
87
91
|
isOpen?: boolean | undefined;
|
|
88
|
-
maxHeight?:
|
|
92
|
+
maxHeight?: 0 | 260 | undefined;
|
|
93
|
+
iconButton?: (Partial<{
|
|
94
|
+
disabled: boolean;
|
|
95
|
+
size: "base" | "xs" | "sm" | "xl" | "l";
|
|
96
|
+
loading: boolean;
|
|
97
|
+
error: boolean;
|
|
98
|
+
tooltip: string;
|
|
99
|
+
badge: string | boolean;
|
|
100
|
+
}> & Omit<{
|
|
101
|
+
readonly disabled: boolean;
|
|
102
|
+
readonly size: "base" | "xs" | "sm" | "xl" | "l";
|
|
103
|
+
readonly loading: boolean;
|
|
104
|
+
readonly icon: import('./ElIcon.vue').ElIconProps;
|
|
105
|
+
readonly error: boolean;
|
|
106
|
+
readonly badge: string | boolean;
|
|
107
|
+
readonly tooltip?: string | undefined;
|
|
108
|
+
onClick?: (() => any) | undefined;
|
|
109
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{
|
|
110
|
+
disabled: {
|
|
111
|
+
type: import('vue').PropType<boolean>;
|
|
112
|
+
default: boolean;
|
|
113
|
+
};
|
|
114
|
+
size: {
|
|
115
|
+
type: import('vue').PropType<"base" | "xs" | "sm" | "xl" | "l">;
|
|
116
|
+
default: string;
|
|
117
|
+
};
|
|
118
|
+
loading: {
|
|
119
|
+
type: import('vue').PropType<boolean>;
|
|
120
|
+
default: boolean;
|
|
121
|
+
};
|
|
122
|
+
icon: {
|
|
123
|
+
type: import('vue').PropType<import('./ElIcon.vue').ElIconProps>;
|
|
124
|
+
required: true;
|
|
125
|
+
};
|
|
126
|
+
error: {
|
|
127
|
+
type: import('vue').PropType<boolean>;
|
|
128
|
+
default: boolean;
|
|
129
|
+
};
|
|
130
|
+
tooltip: {
|
|
131
|
+
type: import('vue').PropType<string>;
|
|
132
|
+
default: undefined;
|
|
133
|
+
};
|
|
134
|
+
badge: {
|
|
135
|
+
type: import('vue').PropType<string | boolean>;
|
|
136
|
+
default: boolean;
|
|
137
|
+
};
|
|
138
|
+
}>> & {
|
|
139
|
+
onClick?: (() => any) | undefined;
|
|
140
|
+
}, "disabled" | "size" | "loading" | "error" | "tooltip" | "badge">) | undefined;
|
|
89
141
|
}>, {
|
|
90
142
|
title: undefined;
|
|
91
143
|
action: undefined;
|
|
92
144
|
isOpen: undefined;
|
|
93
145
|
minWidth: undefined;
|
|
94
146
|
maxHeight: number;
|
|
147
|
+
iconButton: undefined;
|
|
95
148
|
}>, {
|
|
96
149
|
show: () => boolean;
|
|
97
150
|
hide: () => boolean;
|
|
@@ -181,96 +234,72 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
181
234
|
right?: boolean | undefined;
|
|
182
235
|
minWidth?: number | undefined;
|
|
183
236
|
isOpen?: boolean | undefined;
|
|
184
|
-
maxHeight?:
|
|
185
|
-
|
|
186
|
-
title: undefined;
|
|
187
|
-
action: undefined;
|
|
188
|
-
isOpen: undefined;
|
|
189
|
-
minWidth: undefined;
|
|
190
|
-
maxHeight: number;
|
|
191
|
-
}>>> & {
|
|
192
|
-
"onClick:action"?: (() => any) | undefined;
|
|
193
|
-
"onUpdate:is-open"?: ((isOpen: boolean) => any) | undefined;
|
|
194
|
-
}, {
|
|
195
|
-
title: string;
|
|
196
|
-
minWidth: number;
|
|
197
|
-
maxHeight: number;
|
|
198
|
-
action: Omit<Partial<{
|
|
237
|
+
maxHeight?: 0 | 260 | undefined;
|
|
238
|
+
iconButton?: (Partial<{
|
|
199
239
|
disabled: boolean;
|
|
200
|
-
type: "button" | "submit" | "reset";
|
|
201
|
-
onClick: (() => unknown) | (() => Promise<unknown>);
|
|
202
|
-
label: string;
|
|
203
240
|
size: "base" | "xs" | "sm" | "xl" | "l";
|
|
204
|
-
dark: boolean;
|
|
205
241
|
loading: boolean;
|
|
206
|
-
icon: import('./ElIcon.vue').ElIconProps;
|
|
207
242
|
error: boolean;
|
|
208
|
-
|
|
209
|
-
|
|
243
|
+
tooltip: string;
|
|
244
|
+
badge: string | boolean;
|
|
210
245
|
}> & Omit<{
|
|
211
246
|
readonly disabled: boolean;
|
|
212
|
-
readonly type: "button" | "submit" | "reset";
|
|
213
|
-
readonly label: string;
|
|
214
247
|
readonly size: "base" | "xs" | "sm" | "xl" | "l";
|
|
215
|
-
readonly dark: boolean;
|
|
216
248
|
readonly loading: boolean;
|
|
249
|
+
readonly icon: import('./ElIcon.vue').ElIconProps;
|
|
217
250
|
readonly error: boolean;
|
|
218
|
-
readonly
|
|
219
|
-
readonly
|
|
220
|
-
|
|
221
|
-
readonly icon?: import('./ElIcon.vue').ElIconProps | undefined;
|
|
222
|
-
readonly iconRight?: boolean | undefined;
|
|
251
|
+
readonly badge: string | boolean;
|
|
252
|
+
readonly tooltip?: string | undefined;
|
|
253
|
+
onClick?: (() => any) | undefined;
|
|
223
254
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{
|
|
224
255
|
disabled: {
|
|
225
256
|
type: import('vue').PropType<boolean>;
|
|
226
257
|
default: boolean;
|
|
227
258
|
};
|
|
228
|
-
type: {
|
|
229
|
-
type: import('vue').PropType<"button" | "submit" | "reset">;
|
|
230
|
-
default: string;
|
|
231
|
-
};
|
|
232
|
-
onClick: {
|
|
233
|
-
type: import('vue').PropType<(() => unknown) | (() => Promise<unknown>)>;
|
|
234
|
-
default: undefined;
|
|
235
|
-
};
|
|
236
|
-
label: {
|
|
237
|
-
type: import('vue').PropType<string>;
|
|
238
|
-
required: true;
|
|
239
|
-
default: string;
|
|
240
|
-
};
|
|
241
259
|
size: {
|
|
242
260
|
type: import('vue').PropType<"base" | "xs" | "sm" | "xl" | "l">;
|
|
243
261
|
default: string;
|
|
244
262
|
};
|
|
245
|
-
dark: {
|
|
246
|
-
type: import('vue').PropType<boolean>;
|
|
247
|
-
default: boolean;
|
|
248
|
-
};
|
|
249
263
|
loading: {
|
|
250
264
|
type: import('vue').PropType<boolean>;
|
|
251
265
|
default: boolean;
|
|
252
266
|
};
|
|
253
267
|
icon: {
|
|
254
268
|
type: import('vue').PropType<import('./ElIcon.vue').ElIconProps>;
|
|
255
|
-
|
|
256
|
-
};
|
|
257
|
-
iconRight: {
|
|
258
|
-
type: import('vue').PropType<boolean>;
|
|
269
|
+
required: true;
|
|
259
270
|
};
|
|
260
271
|
error: {
|
|
261
272
|
type: import('vue').PropType<boolean>;
|
|
262
273
|
default: boolean;
|
|
263
274
|
};
|
|
264
|
-
|
|
265
|
-
type: import('vue').PropType<
|
|
266
|
-
default:
|
|
275
|
+
tooltip: {
|
|
276
|
+
type: import('vue').PropType<string>;
|
|
277
|
+
default: undefined;
|
|
267
278
|
};
|
|
268
|
-
|
|
269
|
-
type: import('vue').PropType<boolean>;
|
|
279
|
+
badge: {
|
|
280
|
+
type: import('vue').PropType<string | boolean>;
|
|
270
281
|
default: boolean;
|
|
271
282
|
};
|
|
272
|
-
}
|
|
283
|
+
}>> & {
|
|
284
|
+
onClick?: (() => any) | undefined;
|
|
285
|
+
}, "disabled" | "size" | "loading" | "error" | "tooltip" | "badge">) | undefined;
|
|
286
|
+
}>, {
|
|
287
|
+
title: undefined;
|
|
288
|
+
action: undefined;
|
|
289
|
+
isOpen: undefined;
|
|
290
|
+
minWidth: undefined;
|
|
291
|
+
maxHeight: number;
|
|
292
|
+
iconButton: undefined;
|
|
293
|
+
}>>> & {
|
|
294
|
+
"onClick:action"?: (() => any) | undefined;
|
|
295
|
+
"onUpdate:is-open"?: ((isOpen: boolean) => any) | undefined;
|
|
296
|
+
}, {
|
|
297
|
+
title: string;
|
|
298
|
+
minWidth: number;
|
|
299
|
+
maxHeight: ElDropdownMaxHeight;
|
|
300
|
+
action: Omit<InstanceType<typeof ElButton>['$props'], 'variant' | 'size'>;
|
|
273
301
|
isOpen: boolean;
|
|
302
|
+
iconButton: InstanceType<typeof ElIconButton>['$props'];
|
|
274
303
|
}, {}>, {
|
|
275
304
|
anchor?(_: {
|
|
276
305
|
isOpen: boolean;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare const elTextCellStyles: readonly ["normal", "medium", "underline"];
|
|
2
|
+
export type ElTextCellStyle = (typeof elTextCellStyles)[number];
|
|
3
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
label: string;
|
|
5
|
+
style?: "normal" | "medium" | "underline" | undefined;
|
|
6
|
+
}>, {
|
|
7
|
+
style: string;
|
|
8
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
+
label: string;
|
|
10
|
+
style?: "normal" | "medium" | "underline" | undefined;
|
|
11
|
+
}>, {
|
|
12
|
+
style: string;
|
|
13
|
+
}>>>, {
|
|
14
|
+
style: ElTextCellStyle;
|
|
15
|
+
}, {}>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
18
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
19
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
20
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
21
|
+
} : {
|
|
22
|
+
type: import('vue').PropType<T[K]>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
type __VLS_WithDefaults<P, D> = {
|
|
27
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
28
|
+
default: D[K];
|
|
29
|
+
}> : P[K];
|
|
30
|
+
};
|
|
31
|
+
type __VLS_Prettify<T> = {
|
|
32
|
+
[K in keyof T]: T[K];
|
|
33
|
+
} & {};
|
|
@@ -2,10 +2,10 @@ import { AutocompleteOptionType } from './utils';
|
|
|
2
2
|
import { OptionType } from '../types';
|
|
3
3
|
import { PropType } from 'vue';
|
|
4
4
|
|
|
5
|
-
type
|
|
5
|
+
export type OptionValueType = string | string[] | null | undefined;
|
|
6
6
|
declare const _default: import('vue').DefineComponent<{
|
|
7
7
|
modelValue: {
|
|
8
|
-
type: PropType<
|
|
8
|
+
type: PropType<OptionValueType>;
|
|
9
9
|
required: false;
|
|
10
10
|
default: undefined;
|
|
11
11
|
};
|
|
@@ -62,11 +62,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
62
62
|
default: boolean;
|
|
63
63
|
};
|
|
64
64
|
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
65
|
-
"update:modelValue": (newValue:
|
|
66
|
-
"update:modelLabel": (newValue:
|
|
65
|
+
"update:modelValue": (newValue: OptionValueType) => void;
|
|
66
|
+
"update:modelLabel": (newValue: OptionValueType) => void;
|
|
67
67
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
68
68
|
modelValue: {
|
|
69
|
-
type: PropType<
|
|
69
|
+
type: PropType<OptionValueType>;
|
|
70
70
|
required: false;
|
|
71
71
|
default: undefined;
|
|
72
72
|
};
|
|
@@ -123,14 +123,14 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
123
123
|
default: boolean;
|
|
124
124
|
};
|
|
125
125
|
}>> & {
|
|
126
|
-
"onUpdate:modelValue"?: ((newValue:
|
|
127
|
-
"onUpdate:modelLabel"?: ((newValue:
|
|
126
|
+
"onUpdate:modelValue"?: ((newValue: OptionValueType) => any) | undefined;
|
|
127
|
+
"onUpdate:modelLabel"?: ((newValue: OptionValueType) => any) | undefined;
|
|
128
128
|
}, {
|
|
129
129
|
disabled: boolean;
|
|
130
130
|
label: string;
|
|
131
131
|
id: string;
|
|
132
132
|
placeholder: string;
|
|
133
|
-
modelValue:
|
|
133
|
+
modelValue: OptionValueType;
|
|
134
134
|
errorMessage: string | boolean;
|
|
135
135
|
hiddenErrorMessage: boolean;
|
|
136
136
|
validation: string;
|