sprof 0.5.3 → 0.6.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/core/components/atoms/PDateInput/PDateInput.stories.d.ts +72 -0
- package/dist/core/components/atoms/PDateInput/PDateInput.vue.d.ts +13 -0
- package/dist/core/components/atoms/PInput/PInput.stories.d.ts +66 -0
- package/dist/core/components/atoms/PInput/PInput.vue.d.ts +20 -0
- package/dist/core/components/organisms/PAuthForm/PAuthForm.stories.d.ts +56 -4
- package/dist/core/components/organisms/PAuthForm/PAuthForm.vue.d.ts +28 -2
- package/dist/core/helpers/Dates.d.ts +8 -0
- package/dist/core/helpers/Validate.d.ts +6 -0
- package/dist/modules/schedule/components/DateField.vue.d.ts +13 -0
- package/dist/modules/schedule/components/TimeField.vue.d.ts +13 -0
- package/dist/sprof.js +4411 -4191
- package/dist/sprof.umd.cjs +12 -12
- package/dist/style.css +1 -1
- package/package.json +3 -3
|
@@ -48,6 +48,7 @@ declare const _default: {
|
|
|
48
48
|
$: import('vue').ComponentInternalInstance;
|
|
49
49
|
$data: {};
|
|
50
50
|
$props: Partial<{
|
|
51
|
+
error: boolean;
|
|
51
52
|
color: string;
|
|
52
53
|
label: string;
|
|
53
54
|
padding: string;
|
|
@@ -57,7 +58,9 @@ declare const _default: {
|
|
|
57
58
|
disabled: boolean;
|
|
58
59
|
borderColor: string;
|
|
59
60
|
rules: import('quasar').ValidationRule[];
|
|
61
|
+
errorMessage: string;
|
|
60
62
|
}> & Omit<{
|
|
63
|
+
readonly error: boolean;
|
|
61
64
|
readonly color: string;
|
|
62
65
|
readonly label: string;
|
|
63
66
|
readonly padding: string;
|
|
@@ -65,6 +68,7 @@ declare const _default: {
|
|
|
65
68
|
readonly width: string;
|
|
66
69
|
readonly disabled: boolean;
|
|
67
70
|
readonly borderColor: string;
|
|
71
|
+
readonly errorMessage: string;
|
|
68
72
|
readonly mask?: string | undefined;
|
|
69
73
|
readonly modelValue?: string | number | null | undefined;
|
|
70
74
|
readonly rules?: import('quasar').ValidationRule[] | undefined;
|
|
@@ -73,7 +77,7 @@ declare const _default: {
|
|
|
73
77
|
readonly onBlur?: ((...args: any[]) => any) | undefined;
|
|
74
78
|
readonly onFocus?: ((...args: any[]) => any) | undefined;
|
|
75
79
|
readonly "onUpdate:modelValue"?: ((value: string | number | null | undefined) => any) | undefined;
|
|
76
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "color" | "label" | "padding" | "mask" | "margin" | "width" | "disabled" | "borderColor" | "rules">;
|
|
80
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "error" | "color" | "label" | "padding" | "mask" | "margin" | "width" | "disabled" | "borderColor" | "rules" | "errorMessage">;
|
|
77
81
|
$attrs: import('vue').Attrs;
|
|
78
82
|
$refs: {
|
|
79
83
|
[x: string]: unknown;
|
|
@@ -134,6 +138,15 @@ declare const _default: {
|
|
|
134
138
|
required: false;
|
|
135
139
|
default: undefined;
|
|
136
140
|
};
|
|
141
|
+
error: {
|
|
142
|
+
type: BooleanConstructor;
|
|
143
|
+
default: boolean;
|
|
144
|
+
};
|
|
145
|
+
errorMessage: {
|
|
146
|
+
type: StringConstructor;
|
|
147
|
+
default: string;
|
|
148
|
+
required: false;
|
|
149
|
+
};
|
|
137
150
|
modelValue: {
|
|
138
151
|
type: globalThis.PropType<string | number | null>;
|
|
139
152
|
};
|
|
@@ -157,6 +170,7 @@ declare const _default: {
|
|
|
157
170
|
focus: (...args: any[]) => void;
|
|
158
171
|
"update:modelValue": (value: string | number | null | undefined) => void;
|
|
159
172
|
}, string, {
|
|
173
|
+
error: boolean;
|
|
160
174
|
color: string;
|
|
161
175
|
label: string;
|
|
162
176
|
padding: string;
|
|
@@ -166,6 +180,7 @@ declare const _default: {
|
|
|
166
180
|
disabled: boolean;
|
|
167
181
|
borderColor: string;
|
|
168
182
|
rules: import('quasar').ValidationRule[];
|
|
183
|
+
errorMessage: string;
|
|
169
184
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
170
185
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
171
186
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -187,6 +202,7 @@ declare const _default: {
|
|
|
187
202
|
$nextTick: typeof import('vue').nextTick;
|
|
188
203
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R, args_2: import('@vue/reactivity').OnCleanup) => any : (args_0: any, args_1: any, args_2: import('@vue/reactivity').OnCleanup) => any, options?: import('vue').WatchOptions<boolean> | undefined): import('vue').WatchStopHandle;
|
|
189
204
|
} & Readonly<{
|
|
205
|
+
error: boolean;
|
|
190
206
|
color: string;
|
|
191
207
|
label: string;
|
|
192
208
|
padding: string;
|
|
@@ -196,6 +212,7 @@ declare const _default: {
|
|
|
196
212
|
disabled: boolean;
|
|
197
213
|
borderColor: string;
|
|
198
214
|
rules: import('quasar').ValidationRule[];
|
|
215
|
+
errorMessage: string;
|
|
199
216
|
}> & Omit<Readonly<globalThis.ExtractPropTypes<{
|
|
200
217
|
label: {
|
|
201
218
|
type: StringConstructor;
|
|
@@ -242,6 +259,15 @@ declare const _default: {
|
|
|
242
259
|
required: false;
|
|
243
260
|
default: undefined;
|
|
244
261
|
};
|
|
262
|
+
error: {
|
|
263
|
+
type: BooleanConstructor;
|
|
264
|
+
default: boolean;
|
|
265
|
+
};
|
|
266
|
+
errorMessage: {
|
|
267
|
+
type: StringConstructor;
|
|
268
|
+
default: string;
|
|
269
|
+
required: false;
|
|
270
|
+
};
|
|
245
271
|
modelValue: {
|
|
246
272
|
type: globalThis.PropType<string | number | null>;
|
|
247
273
|
};
|
|
@@ -251,7 +277,7 @@ declare const _default: {
|
|
|
251
277
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
252
278
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
253
279
|
"onUpdate:modelValue"?: ((value: string | number | null | undefined) => any) | undefined;
|
|
254
|
-
}>, "validate" | "select" | "blur" | "focus" | "getNativeElement" | "resetValidation" | ("color" | "label" | "padding" | "mask" | "margin" | "width" | "disabled" | "borderColor" | "rules")> & {
|
|
280
|
+
}>, "validate" | "select" | "blur" | "focus" | "getNativeElement" | "resetValidation" | ("error" | "color" | "label" | "padding" | "mask" | "margin" | "width" | "disabled" | "borderColor" | "rules" | "errorMessage")> & {
|
|
255
281
|
focus: () => void;
|
|
256
282
|
blur: () => void;
|
|
257
283
|
select: () => void;
|
|
@@ -334,6 +360,7 @@ export declare const Default: () => {
|
|
|
334
360
|
$: import('vue').ComponentInternalInstance;
|
|
335
361
|
$data: {};
|
|
336
362
|
$props: Partial<{
|
|
363
|
+
error: boolean;
|
|
337
364
|
color: string;
|
|
338
365
|
label: string;
|
|
339
366
|
padding: string;
|
|
@@ -343,7 +370,9 @@ export declare const Default: () => {
|
|
|
343
370
|
disabled: boolean;
|
|
344
371
|
borderColor: string;
|
|
345
372
|
rules: import('quasar').ValidationRule[];
|
|
373
|
+
errorMessage: string;
|
|
346
374
|
}> & Omit<{
|
|
375
|
+
readonly error: boolean;
|
|
347
376
|
readonly color: string;
|
|
348
377
|
readonly label: string;
|
|
349
378
|
readonly padding: string;
|
|
@@ -351,6 +380,7 @@ export declare const Default: () => {
|
|
|
351
380
|
readonly width: string;
|
|
352
381
|
readonly disabled: boolean;
|
|
353
382
|
readonly borderColor: string;
|
|
383
|
+
readonly errorMessage: string;
|
|
354
384
|
readonly mask?: string | undefined;
|
|
355
385
|
readonly modelValue?: string | number | null | undefined;
|
|
356
386
|
readonly rules?: import('quasar').ValidationRule[] | undefined;
|
|
@@ -359,7 +389,7 @@ export declare const Default: () => {
|
|
|
359
389
|
readonly onBlur?: ((...args: any[]) => any) | undefined;
|
|
360
390
|
readonly onFocus?: ((...args: any[]) => any) | undefined;
|
|
361
391
|
readonly "onUpdate:modelValue"?: ((value: string | number | null | undefined) => any) | undefined;
|
|
362
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "color" | "label" | "padding" | "mask" | "margin" | "width" | "disabled" | "borderColor" | "rules">;
|
|
392
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "error" | "color" | "label" | "padding" | "mask" | "margin" | "width" | "disabled" | "borderColor" | "rules" | "errorMessage">;
|
|
363
393
|
$attrs: import('vue').Attrs;
|
|
364
394
|
$refs: {
|
|
365
395
|
[x: string]: unknown;
|
|
@@ -420,6 +450,15 @@ export declare const Default: () => {
|
|
|
420
450
|
required: false;
|
|
421
451
|
default: undefined;
|
|
422
452
|
};
|
|
453
|
+
error: {
|
|
454
|
+
type: BooleanConstructor;
|
|
455
|
+
default: boolean;
|
|
456
|
+
};
|
|
457
|
+
errorMessage: {
|
|
458
|
+
type: StringConstructor;
|
|
459
|
+
default: string;
|
|
460
|
+
required: false;
|
|
461
|
+
};
|
|
423
462
|
modelValue: {
|
|
424
463
|
type: globalThis.PropType<string | number | null>;
|
|
425
464
|
};
|
|
@@ -443,6 +482,7 @@ export declare const Default: () => {
|
|
|
443
482
|
focus: (...args: any[]) => void;
|
|
444
483
|
"update:modelValue": (value: string | number | null | undefined) => void;
|
|
445
484
|
}, string, {
|
|
485
|
+
error: boolean;
|
|
446
486
|
color: string;
|
|
447
487
|
label: string;
|
|
448
488
|
padding: string;
|
|
@@ -452,6 +492,7 @@ export declare const Default: () => {
|
|
|
452
492
|
disabled: boolean;
|
|
453
493
|
borderColor: string;
|
|
454
494
|
rules: import('quasar').ValidationRule[];
|
|
495
|
+
errorMessage: string;
|
|
455
496
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
456
497
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
457
498
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -473,6 +514,7 @@ export declare const Default: () => {
|
|
|
473
514
|
$nextTick: typeof import('vue').nextTick;
|
|
474
515
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R, args_2: import('@vue/reactivity').OnCleanup) => any : (args_0: any, args_1: any, args_2: import('@vue/reactivity').OnCleanup) => any, options?: import('vue').WatchOptions<boolean> | undefined): import('vue').WatchStopHandle;
|
|
475
516
|
} & Readonly<{
|
|
517
|
+
error: boolean;
|
|
476
518
|
color: string;
|
|
477
519
|
label: string;
|
|
478
520
|
padding: string;
|
|
@@ -482,6 +524,7 @@ export declare const Default: () => {
|
|
|
482
524
|
disabled: boolean;
|
|
483
525
|
borderColor: string;
|
|
484
526
|
rules: import('quasar').ValidationRule[];
|
|
527
|
+
errorMessage: string;
|
|
485
528
|
}> & Omit<Readonly<globalThis.ExtractPropTypes<{
|
|
486
529
|
label: {
|
|
487
530
|
type: StringConstructor;
|
|
@@ -528,6 +571,15 @@ export declare const Default: () => {
|
|
|
528
571
|
required: false;
|
|
529
572
|
default: undefined;
|
|
530
573
|
};
|
|
574
|
+
error: {
|
|
575
|
+
type: BooleanConstructor;
|
|
576
|
+
default: boolean;
|
|
577
|
+
};
|
|
578
|
+
errorMessage: {
|
|
579
|
+
type: StringConstructor;
|
|
580
|
+
default: string;
|
|
581
|
+
required: false;
|
|
582
|
+
};
|
|
531
583
|
modelValue: {
|
|
532
584
|
type: globalThis.PropType<string | number | null>;
|
|
533
585
|
};
|
|
@@ -537,7 +589,7 @@ export declare const Default: () => {
|
|
|
537
589
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
538
590
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
539
591
|
"onUpdate:modelValue"?: ((value: string | number | null | undefined) => any) | undefined;
|
|
540
|
-
}>, "validate" | "select" | "blur" | "focus" | "getNativeElement" | "resetValidation" | ("color" | "label" | "padding" | "mask" | "margin" | "width" | "disabled" | "borderColor" | "rules")> & {
|
|
592
|
+
}>, "validate" | "select" | "blur" | "focus" | "getNativeElement" | "resetValidation" | ("error" | "color" | "label" | "padding" | "mask" | "margin" | "width" | "disabled" | "borderColor" | "rules" | "errorMessage")> & {
|
|
541
593
|
focus: () => void;
|
|
542
594
|
blur: () => void;
|
|
543
595
|
select: () => void;
|
|
@@ -46,6 +46,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
46
46
|
$: import('vue').ComponentInternalInstance;
|
|
47
47
|
$data: {};
|
|
48
48
|
$props: Partial<{
|
|
49
|
+
error: boolean;
|
|
49
50
|
color: string;
|
|
50
51
|
label: string;
|
|
51
52
|
padding: string;
|
|
@@ -55,7 +56,9 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
55
56
|
disabled: boolean;
|
|
56
57
|
borderColor: string;
|
|
57
58
|
rules: import('quasar').ValidationRule[];
|
|
59
|
+
errorMessage: string;
|
|
58
60
|
}> & Omit<{
|
|
61
|
+
readonly error: boolean;
|
|
59
62
|
readonly color: string;
|
|
60
63
|
readonly label: string;
|
|
61
64
|
readonly padding: string;
|
|
@@ -63,6 +66,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
63
66
|
readonly width: string;
|
|
64
67
|
readonly disabled: boolean;
|
|
65
68
|
readonly borderColor: string;
|
|
69
|
+
readonly errorMessage: string;
|
|
66
70
|
readonly mask?: string | undefined;
|
|
67
71
|
readonly modelValue?: string | number | null | undefined;
|
|
68
72
|
readonly rules?: import('quasar').ValidationRule[] | undefined;
|
|
@@ -71,7 +75,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
71
75
|
readonly onBlur?: ((...args: any[]) => any) | undefined;
|
|
72
76
|
readonly onFocus?: ((...args: any[]) => any) | undefined;
|
|
73
77
|
readonly "onUpdate:modelValue"?: ((value: string | number | null | undefined) => any) | undefined;
|
|
74
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "color" | "label" | "padding" | "mask" | "margin" | "width" | "disabled" | "borderColor" | "rules">;
|
|
78
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "error" | "color" | "label" | "padding" | "mask" | "margin" | "width" | "disabled" | "borderColor" | "rules" | "errorMessage">;
|
|
75
79
|
$attrs: import('vue').Attrs;
|
|
76
80
|
$refs: {
|
|
77
81
|
[x: string]: unknown;
|
|
@@ -132,6 +136,15 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
132
136
|
required: false;
|
|
133
137
|
default: undefined;
|
|
134
138
|
};
|
|
139
|
+
error: {
|
|
140
|
+
type: BooleanConstructor;
|
|
141
|
+
default: boolean;
|
|
142
|
+
};
|
|
143
|
+
errorMessage: {
|
|
144
|
+
type: StringConstructor;
|
|
145
|
+
default: string;
|
|
146
|
+
required: false;
|
|
147
|
+
};
|
|
135
148
|
modelValue: {
|
|
136
149
|
type: globalThis.PropType<string | number | null>;
|
|
137
150
|
};
|
|
@@ -155,6 +168,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
155
168
|
focus: (...args: any[]) => void;
|
|
156
169
|
"update:modelValue": (value: string | number | null | undefined) => void;
|
|
157
170
|
}, string, {
|
|
171
|
+
error: boolean;
|
|
158
172
|
color: string;
|
|
159
173
|
label: string;
|
|
160
174
|
padding: string;
|
|
@@ -164,6 +178,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
164
178
|
disabled: boolean;
|
|
165
179
|
borderColor: string;
|
|
166
180
|
rules: import('quasar').ValidationRule[];
|
|
181
|
+
errorMessage: string;
|
|
167
182
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
168
183
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
169
184
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -185,6 +200,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
185
200
|
$nextTick: typeof import('vue').nextTick;
|
|
186
201
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R, args_2: import('@vue/reactivity').OnCleanup) => any : (args_0: any, args_1: any, args_2: import('@vue/reactivity').OnCleanup) => any, options?: import('vue').WatchOptions<boolean> | undefined): import('vue').WatchStopHandle;
|
|
187
202
|
} & Readonly<{
|
|
203
|
+
error: boolean;
|
|
188
204
|
color: string;
|
|
189
205
|
label: string;
|
|
190
206
|
padding: string;
|
|
@@ -194,6 +210,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
194
210
|
disabled: boolean;
|
|
195
211
|
borderColor: string;
|
|
196
212
|
rules: import('quasar').ValidationRule[];
|
|
213
|
+
errorMessage: string;
|
|
197
214
|
}> & Omit<Readonly<globalThis.ExtractPropTypes<{
|
|
198
215
|
label: {
|
|
199
216
|
type: StringConstructor;
|
|
@@ -240,6 +257,15 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
240
257
|
required: false;
|
|
241
258
|
default: undefined;
|
|
242
259
|
};
|
|
260
|
+
error: {
|
|
261
|
+
type: BooleanConstructor;
|
|
262
|
+
default: boolean;
|
|
263
|
+
};
|
|
264
|
+
errorMessage: {
|
|
265
|
+
type: StringConstructor;
|
|
266
|
+
default: string;
|
|
267
|
+
required: false;
|
|
268
|
+
};
|
|
243
269
|
modelValue: {
|
|
244
270
|
type: globalThis.PropType<string | number | null>;
|
|
245
271
|
};
|
|
@@ -249,7 +275,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
249
275
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
250
276
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
251
277
|
"onUpdate:modelValue"?: ((value: string | number | null | undefined) => any) | undefined;
|
|
252
|
-
}>, "validate" | "select" | "blur" | "focus" | "getNativeElement" | "resetValidation" | ("color" | "label" | "padding" | "mask" | "margin" | "width" | "disabled" | "borderColor" | "rules")> & {
|
|
278
|
+
}>, "validate" | "select" | "blur" | "focus" | "getNativeElement" | "resetValidation" | ("error" | "color" | "label" | "padding" | "mask" | "margin" | "width" | "disabled" | "borderColor" | "rules" | "errorMessage")> & {
|
|
253
279
|
focus: () => void;
|
|
254
280
|
blur: () => void;
|
|
255
281
|
select: () => void;
|
|
@@ -35,5 +35,13 @@ export default abstract class Dates {
|
|
|
35
35
|
static GetDatesFromPeriod(start: Date, end: Date): Date[];
|
|
36
36
|
static AddDays(date: Date, days: number): Date;
|
|
37
37
|
static Eq(d1: Date, d2: Date): boolean;
|
|
38
|
+
/** Строка ДД.ММ.ГГГГ → локальная Date без UTC-сдвига; null — невалидная дата */
|
|
39
|
+
static ParseRu(value: string | null | undefined): Date | null;
|
|
40
|
+
/** Date (локальная) → строка ДД.ММ.ГГГГ; '' — нет даты/Invalid Date */
|
|
41
|
+
static ToRu(date: Date | null | undefined): string;
|
|
42
|
+
/** Строка ДД.ММ.ГГГГ → YYYY-MM-DD; '' — невалидная дата */
|
|
43
|
+
static RuToIso(value: string | null | undefined): string;
|
|
44
|
+
/** YYYY-MM-DD / ISO → строка ДД.ММ.ГГГГ; '' — нет даты */
|
|
45
|
+
static IsoToRu(value: string | null | undefined): string;
|
|
38
46
|
}
|
|
39
47
|
export {};
|
|
@@ -10,6 +10,12 @@ export declare const MinLen: (min: number, msg?: string) => ValidationRule;
|
|
|
10
10
|
export declare const MaxLen: (max: number, msg?: string) => ValidationRule;
|
|
11
11
|
/** Совпадение с регулярным выражением */
|
|
12
12
|
export declare const Regex: (re: RegExp, msg?: string) => ValidationRule;
|
|
13
|
+
/**
|
|
14
|
+
* Дата в русском формате ДД.ММ.ГГГГ (с реальной проверкой календаря).
|
|
15
|
+
* Пустое значение валидно, если не задан `required`.
|
|
16
|
+
* Принимает строку ДД.ММ.ГГГГ (отображение PDateInput).
|
|
17
|
+
*/
|
|
18
|
+
export declare const DateRu: (msg?: string, required?: boolean) => ValidationRule;
|
|
13
19
|
/**
|
|
14
20
|
* Композиция правил: выполняются по очереди, возвращается первая ошибка.
|
|
15
21
|
* Пустое значение: если НЕТ правила Required — считается валидным (пропускаем
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
modelValue?: string;
|
|
3
|
+
label?: string;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
"update:modelValue": (value: string) => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
9
|
+
}>, {
|
|
10
|
+
label: string;
|
|
11
|
+
modelValue: string;
|
|
12
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
modelValue?: string;
|
|
3
|
+
label?: string;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
"update:modelValue": (value: string) => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
9
|
+
}>, {
|
|
10
|
+
label: string;
|
|
11
|
+
modelValue: string;
|
|
12
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
13
|
+
export default _default;
|