@davincihealthcare/elty-design-system-vue 1.71.2 → 2.1.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.
@@ -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>;
@@ -22,5 +22,3 @@ export declare const getReadableDateTime: (d: number | string | Date, dateTimeFo
22
22
  export declare const getReadableTime: (d: number | string | Date, shortify?: boolean) => string;
23
23
  export declare const isValidPhoneNumber: (phoneNumber: string) => boolean;
24
24
  export declare const isValidTaxCode: (taxCode: string) => boolean;
25
- export declare const isValidPaiCode: (paiCode: string) => boolean;
26
- export declare const isValidDecimal: (value: string) => boolean;
@@ -18,9 +18,7 @@ type MaxDateValidationRule = `maxDate:${number}`;
18
18
  type ExtValidationRule = `ext:${string}`;
19
19
  type PhoneNumberValidationRule = 'phoneNumber';
20
20
  type UnicodeValidationRule = `unicode:${string}`;
21
- type PaiCodeValidationRule = 'paiCode';
22
- type DecimalValidationRule = 'decimal';
23
- type ValidationRule = '' | DecimalValidationRule | RequiredValidationRule | MinValidationRule | MaxValidationRule | LengthValidationRule | BetweenValidationRule | RegexValidationRule | EmailValidationRule | MinValueValidationRule | MaxValueValidationRule | NumberValidationRule | TaxCodeValidationRule | MinTimeValidationRule | MaxTimeValidationRule | MinDateTimeValidationRule | MaxDateTimeValidationRule | MinDateValidationRule | MaxDateValidationRule | ExtValidationRule | PhoneNumberValidationRule | UnicodeValidationRule | PaiCodeValidationRule;
21
+ type ValidationRule = '' | RequiredValidationRule | MinValidationRule | MaxValidationRule | LengthValidationRule | BetweenValidationRule | RegexValidationRule | EmailValidationRule | MinValueValidationRule | MaxValueValidationRule | NumberValidationRule | TaxCodeValidationRule | MinTimeValidationRule | MaxTimeValidationRule | MinDateTimeValidationRule | MaxDateTimeValidationRule | MinDateValidationRule | MaxDateValidationRule | ExtValidationRule | PhoneNumberValidationRule | UnicodeValidationRule;
24
22
  export type InputValidation = ValidationRule | `${ValidationRule}|${ValidationRule}` | `${ValidationRule}|${ValidationRule}|${string}`;
25
23
  export declare const defineValidationRules: () => void;
26
24
  export {};
package/dist/index.d.ts CHANGED
@@ -108,4 +108,3 @@ 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 * from './forms/validation-rules';