@davincihealthcare/elty-design-system-vue 2.1.1 → 2.2.1

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.
@@ -0,0 +1,42 @@
1
+ import { ElIconProps } from './ElIcon.vue';
2
+ import { default as ElAvatar } from './ElAvatar.vue';
3
+
4
+ export interface ElInputChip {
5
+ status?: ElInputChipStatus;
6
+ text: string;
7
+ avatar?: Omit<InstanceType<typeof ElAvatar>['$props'], 'size'>;
8
+ leadingIcon?: ElIconProps;
9
+ }
10
+ export declare const elInputChipStatus: string[];
11
+ export type ElInputChipStatus = (typeof elInputChipStatus)[number];
12
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ElInputChip>, {
13
+ status: string;
14
+ avatar: undefined;
15
+ leadingIcon: undefined;
16
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ElInputChip>, {
17
+ status: string;
18
+ avatar: undefined;
19
+ leadingIcon: undefined;
20
+ }>>>, {
21
+ avatar: Omit<InstanceType<typeof ElAvatar>["$props"], "size">;
22
+ status: ElInputChipStatus;
23
+ leadingIcon: ElIconProps;
24
+ }, {}>;
25
+ export default _default;
26
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
27
+ type __VLS_TypePropsToRuntimeProps<T> = {
28
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
29
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
30
+ } : {
31
+ type: import('vue').PropType<T[K]>;
32
+ required: true;
33
+ };
34
+ };
35
+ type __VLS_WithDefaults<P, D> = {
36
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
37
+ default: D[K];
38
+ }> : P[K];
39
+ };
40
+ type __VLS_Prettify<T> = {
41
+ [K in keyof T]: T[K];
42
+ } & {};
@@ -0,0 +1,198 @@
1
+ import { default as ElDropdown, DropdownItem } from '../ElDropdown.vue';
2
+ import { TextualValueType } from './input';
3
+ import { PropType } from 'vue';
4
+
5
+ export type InputAutocompleteItemsDataControl = string;
6
+ export type ElInputAutocompleteItems = Array<DropdownItem & {
7
+ label?: string;
8
+ value?: string;
9
+ }>;
10
+ declare const _default: import('vue').DefineComponent<{
11
+ modelValue: {
12
+ type: PropType<TextualValueType>;
13
+ required: false;
14
+ default: undefined;
15
+ };
16
+ placeholder: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ required: false;
20
+ };
21
+ items: {
22
+ type: PropType<ElInputAutocompleteItems>;
23
+ required: false;
24
+ default: () => never[];
25
+ };
26
+ selectedItems: {
27
+ type: PropType<ElInputAutocompleteItems>;
28
+ default: () => never[];
29
+ };
30
+ focusOnMount: {
31
+ type: BooleanConstructor;
32
+ default: boolean;
33
+ };
34
+ multiple: {
35
+ type: PropType<InstanceType<typeof ElDropdown>["multiple"]>;
36
+ default: boolean;
37
+ };
38
+ debounceTime: {
39
+ type: NumberConstructor;
40
+ default: number;
41
+ requied: boolean;
42
+ };
43
+ dataController: {
44
+ type: PropType<(args: TextualValueType) => Promise<{
45
+ data: ElInputAutocompleteItems;
46
+ }>>;
47
+ required: false;
48
+ default: undefined;
49
+ };
50
+ name: {
51
+ type: StringConstructor;
52
+ required: boolean;
53
+ default: string;
54
+ };
55
+ id: {
56
+ type: StringConstructor;
57
+ required: boolean;
58
+ default: string;
59
+ };
60
+ label: {
61
+ type: StringConstructor;
62
+ required: boolean;
63
+ default: string;
64
+ };
65
+ validation: {
66
+ type: PropType<import('./validation-rules').InputValidation>;
67
+ default: string;
68
+ required: boolean;
69
+ };
70
+ disabled: {
71
+ type: BooleanConstructor;
72
+ required: boolean;
73
+ default: boolean;
74
+ };
75
+ errorMessage: {
76
+ type: (BooleanConstructor | StringConstructor)[];
77
+ required: boolean;
78
+ default: undefined;
79
+ };
80
+ hiddenErrorMessage: {
81
+ type: BooleanConstructor;
82
+ required: boolean;
83
+ default: boolean;
84
+ };
85
+ color: {
86
+ type: PropType<import('./ElInputContainer.vue').ElInputContainerColor>;
87
+ required: boolean;
88
+ default: string;
89
+ };
90
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
91
+ "update:modelValue": (value: TextualValueType) => void;
92
+ "item:click": (itemIndex: number) => void;
93
+ "update:selectedItems": (value: ElInputAutocompleteItems) => void;
94
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
95
+ modelValue: {
96
+ type: PropType<TextualValueType>;
97
+ required: false;
98
+ default: undefined;
99
+ };
100
+ placeholder: {
101
+ type: StringConstructor;
102
+ default: string;
103
+ required: false;
104
+ };
105
+ items: {
106
+ type: PropType<ElInputAutocompleteItems>;
107
+ required: false;
108
+ default: () => never[];
109
+ };
110
+ selectedItems: {
111
+ type: PropType<ElInputAutocompleteItems>;
112
+ default: () => never[];
113
+ };
114
+ focusOnMount: {
115
+ type: BooleanConstructor;
116
+ default: boolean;
117
+ };
118
+ multiple: {
119
+ type: PropType<InstanceType<typeof ElDropdown>["multiple"]>;
120
+ default: boolean;
121
+ };
122
+ debounceTime: {
123
+ type: NumberConstructor;
124
+ default: number;
125
+ requied: boolean;
126
+ };
127
+ dataController: {
128
+ type: PropType<(args: TextualValueType) => Promise<{
129
+ data: ElInputAutocompleteItems;
130
+ }>>;
131
+ required: false;
132
+ default: undefined;
133
+ };
134
+ name: {
135
+ type: StringConstructor;
136
+ required: boolean;
137
+ default: string;
138
+ };
139
+ id: {
140
+ type: StringConstructor;
141
+ required: boolean;
142
+ default: string;
143
+ };
144
+ label: {
145
+ type: StringConstructor;
146
+ required: boolean;
147
+ default: string;
148
+ };
149
+ validation: {
150
+ type: PropType<import('./validation-rules').InputValidation>;
151
+ default: string;
152
+ required: boolean;
153
+ };
154
+ disabled: {
155
+ type: BooleanConstructor;
156
+ required: boolean;
157
+ default: boolean;
158
+ };
159
+ errorMessage: {
160
+ type: (BooleanConstructor | StringConstructor)[];
161
+ required: boolean;
162
+ default: undefined;
163
+ };
164
+ hiddenErrorMessage: {
165
+ type: BooleanConstructor;
166
+ required: boolean;
167
+ default: boolean;
168
+ };
169
+ color: {
170
+ type: PropType<import('./ElInputContainer.vue').ElInputContainerColor>;
171
+ required: boolean;
172
+ default: string;
173
+ };
174
+ }>> & {
175
+ "onUpdate:modelValue"?: ((value: TextualValueType) => any) | undefined;
176
+ "onItem:click"?: ((itemIndex: number) => any) | undefined;
177
+ "onUpdate:selectedItems"?: ((value: ElInputAutocompleteItems) => any) | undefined;
178
+ }, {
179
+ name: string;
180
+ disabled: boolean;
181
+ label: string;
182
+ id: string;
183
+ placeholder: string;
184
+ color: "primary" | "secondary" | "error";
185
+ modelValue: TextualValueType;
186
+ errorMessage: string | boolean;
187
+ hiddenErrorMessage: boolean;
188
+ focusOnMount: boolean;
189
+ validation: import('./validation-rules').InputValidation;
190
+ items: ElInputAutocompleteItems;
191
+ multiple: boolean;
192
+ dataController: (args: TextualValueType) => Promise<{
193
+ data: ElInputAutocompleteItems;
194
+ }>;
195
+ selectedItems: ElInputAutocompleteItems;
196
+ debounceTime: number;
197
+ }, {}>;
198
+ export default _default;
@@ -10,11 +10,13 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
10
10
  hiddenErrorMessage?: boolean;
11
11
  setRequiredMark?: boolean;
12
12
  color?: ElInputContainerColor;
13
+ noBorder?: boolean;
13
14
  }>, {
14
15
  modelValue: string;
15
16
  color: string;
16
17
  label: string;
17
18
  errorMessage: boolean;
19
+ noBorder: boolean;
18
20
  }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
19
21
  modelValue?: TextualValueType | NumberValueType;
20
22
  name: string;
@@ -23,16 +25,19 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
23
25
  hiddenErrorMessage?: boolean;
24
26
  setRequiredMark?: boolean;
25
27
  color?: ElInputContainerColor;
28
+ noBorder?: boolean;
26
29
  }>, {
27
30
  modelValue: string;
28
31
  color: string;
29
32
  label: string;
30
33
  errorMessage: boolean;
34
+ noBorder: boolean;
31
35
  }>>>, {
32
36
  label: string;
33
37
  color: ElInputContainerColor;
34
38
  modelValue: string | number | null;
35
39
  errorMessage: string | boolean;
40
+ noBorder: boolean;
36
41
  }, {}>, {
37
42
  leading?(_: {
38
43
  error: boolean;
package/dist/index.d.ts CHANGED
@@ -108,3 +108,7 @@ export * from './ElTooltip.vue';
108
108
  export { default as ElTooltip } from './ElTooltip.vue';
109
109
  export type { DataRow } from './table/commonTypes';
110
110
  export type { DataCell } from './table/ElTableCell.vue';
111
+ export { default as ElInputChip } from './ElInputChip.vue';
112
+ export * from './ElInputChip.vue';
113
+ export { default as ElInputAutocomplete } from './forms/ElInputAutocomplete.vue';
114
+ export * from './forms/ElInputAutocomplete.vue';