@davincihealthcare/elty-design-system-vue 2.0.1 → 2.1.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.
@@ -1,11 +1,11 @@
1
1
  export declare const elDividerDirection: readonly ["vertical", "horizontal"];
2
2
  export type ElDividerDirection = (typeof elDividerDirection)[number];
3
3
  declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
- direction: ElDividerDirection;
4
+ direction?: ElDividerDirection;
5
5
  }>, {
6
6
  direction: string;
7
7
  }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
8
- direction: ElDividerDirection;
8
+ direction?: ElDividerDirection;
9
9
  }>, {
10
10
  direction: string;
11
11
  }>>>, {
@@ -27,7 +27,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
27
27
  iconButton: undefined;
28
28
  multiple: boolean;
29
29
  }>, {
30
- show: () => boolean;
30
+ show: () => void;
31
31
  hide: () => boolean;
32
32
  toggle: () => boolean;
33
33
  }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
@@ -67,7 +67,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
67
67
  anchor?(_: {
68
68
  isOpen: boolean;
69
69
  toggle: () => boolean;
70
- show: () => boolean;
70
+ show: () => void;
71
71
  hide: () => boolean;
72
72
  }): any;
73
73
  }>;
@@ -2,7 +2,7 @@ import { AvatarParameters } from './types';
2
2
  import { ElIconProps } from './ElIcon.vue';
3
3
 
4
4
  declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
5
- text: string;
5
+ text?: string;
6
6
  semiboldText?: string;
7
7
  check?: boolean;
8
8
  leadingIcon?: ElIconProps;
@@ -20,7 +20,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
20
20
  focused: boolean;
21
21
  color: string;
22
22
  }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
23
- text: string;
23
+ text?: string;
24
24
  semiboldText?: string;
25
25
  check?: boolean;
26
26
  leadingIcon?: ElIconProps;
@@ -1,7 +1,7 @@
1
1
  import { ElSortingHeaderDirection } from './ElSortingHeader.vue';
2
2
 
3
3
  declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
- label: string;
4
+ label?: string;
5
5
  sortingDirection?: ElSortingHeaderDirection;
6
6
  alignRight?: boolean;
7
7
  checkbox?: {
@@ -14,7 +14,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
14
14
  alignRight: boolean;
15
15
  checkbox: undefined;
16
16
  }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
17
- label: string;
17
+ label?: string;
18
18
  sortingDirection?: ElSortingHeaderDirection;
19
19
  alignRight?: boolean;
20
20
  checkbox?: {
@@ -1,4 +1,39 @@
1
- declare function __VLS_template(): {
1
+ import { NumberValueType, TextualValueType } from './input';
2
+
3
+ export declare const elInputContainerColor: readonly ["primary", "secondary", "error"];
4
+ export type ElInputContainerColor = (typeof elInputContainerColor)[number];
5
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
6
+ modelValue?: TextualValueType | NumberValueType;
7
+ name: string;
8
+ label?: string;
9
+ errorMessage?: string | boolean;
10
+ hiddenErrorMessage?: boolean;
11
+ setRequiredMark?: boolean;
12
+ color?: ElInputContainerColor;
13
+ }>, {
14
+ modelValue: string;
15
+ color: string;
16
+ label: string;
17
+ errorMessage: boolean;
18
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
19
+ modelValue?: TextualValueType | NumberValueType;
20
+ name: string;
21
+ label?: string;
22
+ errorMessage?: string | boolean;
23
+ hiddenErrorMessage?: boolean;
24
+ setRequiredMark?: boolean;
25
+ color?: ElInputContainerColor;
26
+ }>, {
27
+ modelValue: string;
28
+ color: string;
29
+ label: string;
30
+ errorMessage: boolean;
31
+ }>>>, {
32
+ label: string;
33
+ color: ElInputContainerColor;
34
+ modelValue: string | number | null;
35
+ errorMessage: string | boolean;
36
+ }, {}>, {
2
37
  leading?(_: {
3
38
  error: boolean;
4
39
  }): any;
@@ -9,63 +44,25 @@ declare function __VLS_template(): {
9
44
  error: boolean;
10
45
  }): any;
11
46
  after?(_: {}): any;
12
- };
13
- declare const __VLS_component: import('vue').DefineComponent<{
14
- label: {
15
- type: StringConstructor;
16
- default: string;
17
- };
18
- errorMessage: {
19
- type: (BooleanConstructor | StringConstructor)[];
20
- required: false;
21
- default: boolean;
22
- };
23
- hiddenErrorMessage: {
24
- type: BooleanConstructor;
25
- required: false;
26
- default: boolean;
27
- };
28
- name: {
29
- type: StringConstructor;
30
- required: true;
31
- };
32
- setRequiredMark: {
33
- type: BooleanConstructor;
34
- required: false;
35
- default: boolean;
36
- };
37
- }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
38
- label: {
39
- type: StringConstructor;
40
- default: string;
41
- };
42
- errorMessage: {
43
- type: (BooleanConstructor | StringConstructor)[];
44
- required: false;
45
- default: boolean;
46
- };
47
- hiddenErrorMessage: {
48
- type: BooleanConstructor;
49
- required: false;
50
- default: boolean;
51
- };
52
- name: {
53
- type: StringConstructor;
47
+ }>;
48
+ export default _default;
49
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
50
+ type __VLS_TypePropsToRuntimeProps<T> = {
51
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
52
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
53
+ } : {
54
+ type: import('vue').PropType<T[K]>;
54
55
  required: true;
55
56
  };
56
- setRequiredMark: {
57
- type: BooleanConstructor;
58
- required: false;
59
- default: boolean;
60
- };
61
- }>>, {
62
- label: string;
63
- errorMessage: string | boolean;
64
- hiddenErrorMessage: boolean;
65
- setRequiredMark: boolean;
66
- }, {}>;
67
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
68
- export default _default;
57
+ };
58
+ type __VLS_WithDefaults<P, D> = {
59
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
60
+ default: D[K];
61
+ }> : P[K];
62
+ };
63
+ type __VLS_Prettify<T> = {
64
+ [K in keyof T]: T[K];
65
+ } & {};
69
66
  type __VLS_WithTemplateSlots<T, S> = T & {
70
67
  new (): {
71
68
  $slots: S;
@@ -56,6 +56,11 @@ declare const _default: import('vue').DefineComponent<{
56
56
  required: boolean;
57
57
  default: boolean;
58
58
  };
59
+ color: {
60
+ type: PropType<import('./ElInputContainer.vue').ElInputContainerColor>;
61
+ required: boolean;
62
+ default: string;
63
+ };
59
64
  }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
60
65
  "update:modelValue": (value: NumberValueType) => void;
61
66
  "update:readableString": (value: string) => void;
@@ -112,6 +117,11 @@ declare const _default: import('vue').DefineComponent<{
112
117
  required: boolean;
113
118
  default: boolean;
114
119
  };
120
+ color: {
121
+ type: PropType<import('./ElInputContainer.vue').ElInputContainerColor>;
122
+ required: boolean;
123
+ default: string;
124
+ };
115
125
  }>> & {
116
126
  "onUpdate:modelValue"?: ((value: NumberValueType) => any) | undefined;
117
127
  "onUpdate:readableString"?: ((value: string) => any) | undefined;
@@ -122,6 +132,7 @@ declare const _default: import('vue').DefineComponent<{
122
132
  label: string;
123
133
  id: string;
124
134
  placeholder: string;
135
+ color: "primary" | "secondary" | "error";
125
136
  step: number;
126
137
  errorMessage: string | boolean;
127
138
  hiddenErrorMessage: boolean;
@@ -55,6 +55,11 @@ declare const _default: import('vue').DefineComponent<{
55
55
  required: boolean;
56
56
  default: boolean;
57
57
  };
58
+ color: {
59
+ type: PropType<import('./ElInputContainer.vue').ElInputContainerColor>;
60
+ required: boolean;
61
+ default: string;
62
+ };
58
63
  }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
59
64
  "update:modelValue": (files: File[]) => void;
60
65
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
@@ -110,6 +115,11 @@ declare const _default: import('vue').DefineComponent<{
110
115
  required: boolean;
111
116
  default: boolean;
112
117
  };
118
+ color: {
119
+ type: PropType<import('./ElInputContainer.vue').ElInputContainerColor>;
120
+ required: boolean;
121
+ default: string;
122
+ };
113
123
  }>> & {
114
124
  "onUpdate:modelValue"?: ((files: File[]) => any) | undefined;
115
125
  }, {
@@ -117,6 +127,7 @@ declare const _default: import('vue').DefineComponent<{
117
127
  disabled: boolean;
118
128
  label: string;
119
129
  id: string;
130
+ color: "primary" | "secondary" | "error";
120
131
  content: string;
121
132
  errorMessage: string | boolean;
122
133
  hiddenErrorMessage: boolean;
@@ -69,6 +69,11 @@ declare const _default: import('vue').DefineComponent<{
69
69
  required: boolean;
70
70
  default: boolean;
71
71
  };
72
+ color: {
73
+ type: PropType<import('./ElInputContainer.vue').ElInputContainerColor>;
74
+ required: boolean;
75
+ default: string;
76
+ };
72
77
  }, {
73
78
  changeUnit: (value: string) => string;
74
79
  }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
@@ -135,6 +140,11 @@ declare const _default: import('vue').DefineComponent<{
135
140
  required: boolean;
136
141
  default: boolean;
137
142
  };
143
+ color: {
144
+ type: PropType<import('./ElInputContainer.vue').ElInputContainerColor>;
145
+ required: boolean;
146
+ default: string;
147
+ };
138
148
  }>> & {
139
149
  "onUpdate:modelValue"?: ((value: NumberValueType) => any) | undefined;
140
150
  onChangeUnit?: ((value: string) => any) | undefined;
@@ -144,6 +154,7 @@ declare const _default: import('vue').DefineComponent<{
144
154
  label: string;
145
155
  id: string;
146
156
  placeholder: string;
157
+ color: "primary" | "secondary" | "error";
147
158
  step: number;
148
159
  errorMessage: string | boolean;
149
160
  hiddenErrorMessage: boolean;
@@ -57,6 +57,11 @@ declare const _default: import('vue').DefineComponent<{
57
57
  required: boolean;
58
58
  default: boolean;
59
59
  };
60
+ color: {
61
+ type: import('vue').PropType<import('./ElInputContainer.vue').ElInputContainerColor>;
62
+ required: boolean;
63
+ default: string;
64
+ };
60
65
  }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
61
66
  "update:modelValue": (value: NumberValueType) => void;
62
67
  overlayedBtnClicked: () => void;
@@ -118,6 +123,11 @@ declare const _default: import('vue').DefineComponent<{
118
123
  required: boolean;
119
124
  default: boolean;
120
125
  };
126
+ color: {
127
+ type: import('vue').PropType<import('./ElInputContainer.vue').ElInputContainerColor>;
128
+ required: boolean;
129
+ default: string;
130
+ };
121
131
  }>> & {
122
132
  "onUpdate:modelValue"?: ((value: NumberValueType) => any) | undefined;
123
133
  onOverlayedBtnClicked?: (() => any) | undefined;
@@ -128,6 +138,7 @@ declare const _default: import('vue').DefineComponent<{
128
138
  label: string;
129
139
  id: string;
130
140
  placeholder: string;
141
+ color: "primary" | "secondary" | "error";
131
142
  step: number;
132
143
  errorMessage: string | boolean;
133
144
  hiddenErrorMessage: boolean;
@@ -45,6 +45,11 @@ declare const _default: import('vue').DefineComponent<{
45
45
  required: boolean;
46
46
  default: boolean;
47
47
  };
48
+ color: {
49
+ type: import('vue').PropType<import('./ElInputContainer.vue').ElInputContainerColor>;
50
+ required: boolean;
51
+ default: string;
52
+ };
48
53
  }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
49
54
  "update:modelValue": (value: TextualValueType) => void;
50
55
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
@@ -92,6 +97,11 @@ declare const _default: import('vue').DefineComponent<{
92
97
  required: boolean;
93
98
  default: boolean;
94
99
  };
100
+ color: {
101
+ type: import('vue').PropType<import('./ElInputContainer.vue').ElInputContainerColor>;
102
+ required: boolean;
103
+ default: string;
104
+ };
95
105
  }>> & {
96
106
  "onUpdate:modelValue"?: ((value: TextualValueType) => any) | undefined;
97
107
  }, {
@@ -100,6 +110,7 @@ declare const _default: import('vue').DefineComponent<{
100
110
  label: string;
101
111
  id: string;
102
112
  placeholder: string;
113
+ color: "primary" | "secondary" | "error";
103
114
  modelValue: TextualValueType;
104
115
  errorMessage: string | boolean;
105
116
  hiddenErrorMessage: boolean;
@@ -67,6 +67,11 @@ declare const _default: import('vue').DefineComponent<{
67
67
  required: boolean;
68
68
  default: boolean;
69
69
  };
70
+ color: {
71
+ type: PropType<import('./ElInputContainer.vue').ElInputContainerColor>;
72
+ required: boolean;
73
+ default: string;
74
+ };
70
75
  }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
71
76
  "update:modelValue": (newValue: OptionValueType) => void;
72
77
  "update:modelLabel": (newValue: OptionValueType) => void;
@@ -133,6 +138,11 @@ declare const _default: import('vue').DefineComponent<{
133
138
  required: boolean;
134
139
  default: boolean;
135
140
  };
141
+ color: {
142
+ type: PropType<import('./ElInputContainer.vue').ElInputContainerColor>;
143
+ required: boolean;
144
+ default: string;
145
+ };
136
146
  }>> & {
137
147
  "onUpdate:modelValue"?: ((newValue: OptionValueType) => any) | undefined;
138
148
  "onUpdate:modelLabel"?: ((newValue: OptionValueType) => any) | undefined;
@@ -142,6 +152,7 @@ declare const _default: import('vue').DefineComponent<{
142
152
  label: string;
143
153
  id: string;
144
154
  placeholder: string;
155
+ color: "primary" | "secondary" | "error";
145
156
  modelValue: OptionValueType;
146
157
  errorMessage: string | boolean;
147
158
  hiddenErrorMessage: boolean;
@@ -71,6 +71,11 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
71
71
  required: boolean;
72
72
  default: boolean;
73
73
  };
74
+ color: {
75
+ type: PropType<import('./ElInputContainer.vue').ElInputContainerColor>;
76
+ required: boolean;
77
+ default: string;
78
+ };
74
79
  }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
75
80
  "update:modelValue": (value: TextualValueType) => void;
76
81
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
@@ -140,6 +145,11 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
140
145
  required: boolean;
141
146
  default: boolean;
142
147
  };
148
+ color: {
149
+ type: PropType<import('./ElInputContainer.vue').ElInputContainerColor>;
150
+ required: boolean;
151
+ default: string;
152
+ };
143
153
  }>> & {
144
154
  "onUpdate:modelValue"?: ((value: TextualValueType) => any) | undefined;
145
155
  }, {
@@ -149,6 +159,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
149
159
  label: string;
150
160
  id: string;
151
161
  placeholder: string;
162
+ color: "primary" | "secondary" | "error";
152
163
  modelValue: TextualValueType;
153
164
  errorMessage: string | boolean;
154
165
  hiddenErrorMessage: boolean;
@@ -57,6 +57,11 @@ declare const _default: import('vue').DefineComponent<{
57
57
  required: boolean;
58
58
  default: boolean;
59
59
  };
60
+ color: {
61
+ type: import('vue').PropType<import('./ElInputContainer.vue').ElInputContainerColor>;
62
+ required: boolean;
63
+ default: string;
64
+ };
60
65
  }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
61
66
  "update:modelValue": (value: TextualValueType) => void;
62
67
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
@@ -116,6 +121,11 @@ declare const _default: import('vue').DefineComponent<{
116
121
  required: boolean;
117
122
  default: boolean;
118
123
  };
124
+ color: {
125
+ type: import('vue').PropType<import('./ElInputContainer.vue').ElInputContainerColor>;
126
+ required: boolean;
127
+ default: string;
128
+ };
119
129
  }>> & {
120
130
  "onUpdate:modelValue"?: ((value: TextualValueType) => any) | undefined;
121
131
  }, {
@@ -124,6 +134,7 @@ declare const _default: import('vue').DefineComponent<{
124
134
  label: string;
125
135
  id: string;
126
136
  placeholder: string;
137
+ color: "primary" | "secondary" | "error";
127
138
  modelValue: TextualValueType;
128
139
  errorMessage: string | boolean;
129
140
  hiddenErrorMessage: boolean;
@@ -1,3 +1,4 @@
1
+ import { ElInputContainerColor } from './ElInputContainer.vue';
1
2
  import { ComputedRef, PropType, Ref } from 'vue';
2
3
  import { InputValidation } from './validation-rules';
3
4
 
@@ -40,6 +41,11 @@ export declare const withCommonInputProps: () => {
40
41
  required: boolean;
41
42
  default: undefined;
42
43
  };
44
+ color: {
45
+ type: PropType<ElInputContainerColor>;
46
+ required: boolean;
47
+ default: string;
48
+ };
43
49
  };
44
50
  export declare const withTextualInputProps: () => {
45
51
  modelValue: {
@@ -84,6 +90,11 @@ export declare const withTextualInputProps: () => {
84
90
  required: boolean;
85
91
  default: undefined;
86
92
  };
93
+ color: {
94
+ type: PropType<ElInputContainerColor>;
95
+ required: boolean;
96
+ default: string;
97
+ };
87
98
  };
88
99
  export declare const withCommonElInputProps: () => {
89
100
  name: {
@@ -121,6 +132,11 @@ export declare const withCommonElInputProps: () => {
121
132
  required: boolean;
122
133
  default: boolean;
123
134
  };
135
+ color: {
136
+ type: PropType<ElInputContainerColor>;
137
+ required: boolean;
138
+ default: string;
139
+ };
124
140
  };
125
141
  export declare const withTextualElInputProps: () => {
126
142
  modelValue: {
@@ -167,6 +183,11 @@ export declare const withTextualElInputProps: () => {
167
183
  required: boolean;
168
184
  default: boolean;
169
185
  };
186
+ color: {
187
+ type: PropType<ElInputContainerColor>;
188
+ required: boolean;
189
+ default: string;
190
+ };
170
191
  };
171
192
  export declare const withNumberInputProps: () => {
172
193
  modelValue: {
@@ -215,6 +236,11 @@ export declare const withNumberInputProps: () => {
215
236
  required: boolean;
216
237
  default: undefined;
217
238
  };
239
+ color: {
240
+ type: PropType<ElInputContainerColor>;
241
+ required: boolean;
242
+ default: string;
243
+ };
218
244
  };
219
245
  export declare const withNumberElInputProps: () => {
220
246
  modelValue: {
@@ -265,6 +291,11 @@ export declare const withNumberElInputProps: () => {
265
291
  required: boolean;
266
292
  default: boolean;
267
293
  };
294
+ color: {
295
+ type: PropType<ElInputContainerColor>;
296
+ required: boolean;
297
+ default: string;
298
+ };
268
299
  };
269
300
  export declare function useInput<T = string>(initialValue: Ref<T>, validations: Ref<string[]> | ComputedRef<string[]>, inputName?: string, onChange?: (value: T) => void): {
270
301
  fieldContext: import('vee-validate').FieldContext<T>;