index.d.mts 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563
  1. import * as vue from 'vue';
  2. import { ComponentPropsOptions, ExtractPropTypes, PropType } from 'vue';
  3. interface FilterPropsOptions<PropsOptions extends Readonly<ComponentPropsOptions>, Props = ExtractPropTypes<PropsOptions>> {
  4. filterProps<T extends Partial<Props>, U extends Exclude<keyof Props, Exclude<keyof Props, keyof T>>>(props: T): [yes: Partial<Pick<T, U>>, no: Omit<T, U>];
  5. }
  6. type EventProp<T extends any[] = any[], F = (...args: T) => any> = F | F[];
  7. declare const EventProp: <T extends any[] = any[]>() => PropType<EventProp<T, (...args: T) => any>>;
  8. type ValidationResult = string | boolean;
  9. type ValidationRule = ValidationResult | PromiseLike<ValidationResult> | ((value: any) => ValidationResult) | ((value: any) => PromiseLike<ValidationResult>);
  10. declare const VValidation: {
  11. new (...args: any[]): {
  12. $: vue.ComponentInternalInstance;
  13. $data: {};
  14. $props: {
  15. error?: boolean | undefined;
  16. disabled?: boolean | null | undefined;
  17. readonly?: boolean | null | undefined;
  18. focused?: boolean | undefined;
  19. errorMessages?: string | readonly string[] | undefined;
  20. maxErrors?: string | number | undefined;
  21. rules?: readonly ValidationRule[] | undefined;
  22. key?: string | number | symbol | undefined;
  23. name?: string | undefined;
  24. label?: string | undefined;
  25. style?: unknown;
  26. class?: unknown;
  27. $children?: vue.VNodeChild | {
  28. default?: ((arg: {
  29. errorMessages: vue.ComputedRef<string[]>;
  30. isDirty: vue.ComputedRef<boolean>;
  31. isDisabled: vue.ComputedRef<boolean>;
  32. isReadonly: vue.ComputedRef<boolean>;
  33. isPristine: vue.ShallowRef<boolean>;
  34. isValid: vue.ComputedRef<boolean | null>;
  35. isValidating: vue.ShallowRef<boolean>;
  36. reset: () => void;
  37. resetValidation: () => void;
  38. validate: (silent?: boolean) => Promise<string[]>;
  39. validationClasses: vue.ComputedRef<{
  40. [x: string]: boolean;
  41. }>;
  42. }) => vue.VNodeChild) | undefined;
  43. } | ((arg: {
  44. errorMessages: vue.ComputedRef<string[]>;
  45. isDirty: vue.ComputedRef<boolean>;
  46. isDisabled: vue.ComputedRef<boolean>;
  47. isReadonly: vue.ComputedRef<boolean>;
  48. isPristine: vue.ShallowRef<boolean>;
  49. isValid: vue.ComputedRef<boolean | null>;
  50. isValidating: vue.ShallowRef<boolean>;
  51. reset: () => void;
  52. resetValidation: () => void;
  53. validate: (silent?: boolean) => Promise<string[]>;
  54. validationClasses: vue.ComputedRef<{
  55. [x: string]: boolean;
  56. }>;
  57. }) => vue.VNodeChild);
  58. ref?: vue.VNodeRef | undefined;
  59. ref_for?: boolean | undefined;
  60. ref_key?: string | undefined;
  61. "v-slot:default"?: false | ((arg: {
  62. errorMessages: vue.ComputedRef<string[]>;
  63. isDirty: vue.ComputedRef<boolean>;
  64. isDisabled: vue.ComputedRef<boolean>;
  65. isReadonly: vue.ComputedRef<boolean>;
  66. isPristine: vue.ShallowRef<boolean>;
  67. isValid: vue.ComputedRef<boolean | null>;
  68. isValidating: vue.ShallowRef<boolean>;
  69. reset: () => void;
  70. resetValidation: () => void;
  71. validate: (silent?: boolean) => Promise<string[]>;
  72. validationClasses: vue.ComputedRef<{
  73. [x: string]: boolean;
  74. }>;
  75. }) => vue.VNodeChild) | undefined;
  76. 'v-slots'?: {
  77. default?: false | ((arg: {
  78. errorMessages: vue.ComputedRef<string[]>;
  79. isDirty: vue.ComputedRef<boolean>;
  80. isDisabled: vue.ComputedRef<boolean>;
  81. isReadonly: vue.ComputedRef<boolean>;
  82. isPristine: vue.ShallowRef<boolean>;
  83. isValid: vue.ComputedRef<boolean | null>;
  84. isValidating: vue.ShallowRef<boolean>;
  85. reset: () => void;
  86. resetValidation: () => void;
  87. validate: (silent?: boolean) => Promise<string[]>;
  88. validationClasses: vue.ComputedRef<{
  89. [x: string]: boolean;
  90. }>;
  91. }) => vue.VNodeChild) | undefined;
  92. } | undefined;
  93. onVnodeBeforeMount?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  94. [key: string]: any;
  95. }>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  96. [key: string]: any;
  97. }>) => void)[] | undefined;
  98. onVnodeMounted?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  99. [key: string]: any;
  100. }>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  101. [key: string]: any;
  102. }>) => void)[] | undefined;
  103. onVnodeBeforeUpdate?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  104. [key: string]: any;
  105. }>, oldVNode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  106. [key: string]: any;
  107. }>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  108. [key: string]: any;
  109. }>, oldVNode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  110. [key: string]: any;
  111. }>) => void)[] | undefined;
  112. onVnodeUpdated?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  113. [key: string]: any;
  114. }>, oldVNode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  115. [key: string]: any;
  116. }>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  117. [key: string]: any;
  118. }>, oldVNode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  119. [key: string]: any;
  120. }>) => void)[] | undefined;
  121. onVnodeBeforeUnmount?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  122. [key: string]: any;
  123. }>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  124. [key: string]: any;
  125. }>) => void)[] | undefined;
  126. onVnodeUnmounted?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  127. [key: string]: any;
  128. }>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  129. [key: string]: any;
  130. }>) => void)[] | undefined;
  131. modelValue?: any;
  132. "onUpdate:modelValue"?: ((val: any) => any) | undefined;
  133. 'onUpdate:focused'?: EventProp<[boolean], (args_0: boolean) => any> | undefined;
  134. validateOn?: "lazy" | ("input" | "blur" | "submit") | "input lazy" | "blur lazy" | "submit lazy" | "lazy input" | "lazy blur" | "lazy submit" | undefined;
  135. validationValue?: any;
  136. };
  137. $attrs: {
  138. [x: string]: unknown;
  139. };
  140. $refs: {
  141. [x: string]: unknown;
  142. };
  143. $slots: Readonly<{
  144. default?: ((arg: {
  145. errorMessages: vue.ComputedRef<string[]>;
  146. isDirty: vue.ComputedRef<boolean>;
  147. isDisabled: vue.ComputedRef<boolean>;
  148. isReadonly: vue.ComputedRef<boolean>;
  149. isPristine: vue.ShallowRef<boolean>;
  150. isValid: vue.ComputedRef<boolean | null>;
  151. isValidating: vue.ShallowRef<boolean>;
  152. reset: () => void;
  153. resetValidation: () => void;
  154. validate: (silent?: boolean) => Promise<string[]>;
  155. validationClasses: vue.ComputedRef<{
  156. [x: string]: boolean;
  157. }>;
  158. }) => vue.VNode<vue.RendererNode, vue.RendererElement, {
  159. [key: string]: any;
  160. }>[]) | undefined;
  161. }>;
  162. $root: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
  163. $parent: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
  164. $emit: (event: "update:modelValue", val: any) => void;
  165. $el: any;
  166. $options: vue.ComponentOptionsBase<{
  167. error: boolean;
  168. disabled: boolean | null;
  169. readonly: boolean | null;
  170. focused: boolean;
  171. errorMessages: string | readonly string[];
  172. maxErrors: string | number;
  173. rules: readonly ValidationRule[];
  174. } & {
  175. name?: string | undefined;
  176. label?: string | undefined;
  177. modelValue?: any;
  178. 'onUpdate:focused'?: EventProp<[boolean], (args_0: boolean) => any> | undefined;
  179. validateOn?: "lazy" | ("input" | "blur" | "submit") | "input lazy" | "blur lazy" | "submit lazy" | "lazy input" | "lazy blur" | "lazy submit" | undefined;
  180. validationValue?: any;
  181. } & {
  182. $children?: vue.VNodeChild | {
  183. default?: ((arg: {
  184. errorMessages: vue.ComputedRef<string[]>;
  185. isDirty: vue.ComputedRef<boolean>;
  186. isDisabled: vue.ComputedRef<boolean>;
  187. isReadonly: vue.ComputedRef<boolean>;
  188. isPristine: vue.ShallowRef<boolean>;
  189. isValid: vue.ComputedRef<boolean | null>;
  190. isValidating: vue.ShallowRef<boolean>;
  191. reset: () => void;
  192. resetValidation: () => void;
  193. validate: (silent?: boolean) => Promise<string[]>;
  194. validationClasses: vue.ComputedRef<{
  195. [x: string]: boolean;
  196. }>;
  197. }) => vue.VNodeChild) | undefined;
  198. } | ((arg: {
  199. errorMessages: vue.ComputedRef<string[]>;
  200. isDirty: vue.ComputedRef<boolean>;
  201. isDisabled: vue.ComputedRef<boolean>;
  202. isReadonly: vue.ComputedRef<boolean>;
  203. isPristine: vue.ShallowRef<boolean>;
  204. isValid: vue.ComputedRef<boolean | null>;
  205. isValidating: vue.ShallowRef<boolean>;
  206. reset: () => void;
  207. resetValidation: () => void;
  208. validate: (silent?: boolean) => Promise<string[]>;
  209. validationClasses: vue.ComputedRef<{
  210. [x: string]: boolean;
  211. }>;
  212. }) => vue.VNodeChild);
  213. 'v-slots'?: {
  214. default?: false | ((arg: {
  215. errorMessages: vue.ComputedRef<string[]>;
  216. isDirty: vue.ComputedRef<boolean>;
  217. isDisabled: vue.ComputedRef<boolean>;
  218. isReadonly: vue.ComputedRef<boolean>;
  219. isPristine: vue.ShallowRef<boolean>;
  220. isValid: vue.ComputedRef<boolean | null>;
  221. isValidating: vue.ShallowRef<boolean>;
  222. reset: () => void;
  223. resetValidation: () => void;
  224. validate: (silent?: boolean) => Promise<string[]>;
  225. validationClasses: vue.ComputedRef<{
  226. [x: string]: boolean;
  227. }>;
  228. }) => vue.VNodeChild) | undefined;
  229. } | undefined;
  230. } & {
  231. "v-slot:default"?: false | ((arg: {
  232. errorMessages: vue.ComputedRef<string[]>;
  233. isDirty: vue.ComputedRef<boolean>;
  234. isDisabled: vue.ComputedRef<boolean>;
  235. isReadonly: vue.ComputedRef<boolean>;
  236. isPristine: vue.ShallowRef<boolean>;
  237. isValid: vue.ComputedRef<boolean | null>;
  238. isValidating: vue.ShallowRef<boolean>;
  239. reset: () => void;
  240. resetValidation: () => void;
  241. validate: (silent?: boolean) => Promise<string[]>;
  242. validationClasses: vue.ComputedRef<{
  243. [x: string]: boolean;
  244. }>;
  245. }) => vue.VNodeChild) | undefined;
  246. } & {
  247. "onUpdate:modelValue"?: ((val: any) => any) | undefined;
  248. }, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
  249. [key: string]: any;
  250. }>[] | undefined, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
  251. 'update:modelValue': (val: any) => boolean;
  252. }, string, {
  253. error: boolean;
  254. disabled: boolean | null;
  255. readonly: boolean | null;
  256. focused: boolean;
  257. errorMessages: string | readonly string[];
  258. maxErrors: string | number;
  259. rules: readonly ValidationRule[];
  260. }, {}, string, vue.SlotsType<Partial<{
  261. default: (arg: {
  262. errorMessages: vue.ComputedRef<string[]>;
  263. isDirty: vue.ComputedRef<boolean>;
  264. isDisabled: vue.ComputedRef<boolean>;
  265. isReadonly: vue.ComputedRef<boolean>;
  266. isPristine: vue.ShallowRef<boolean>;
  267. isValid: vue.ComputedRef<boolean | null>;
  268. isValidating: vue.ShallowRef<boolean>;
  269. reset: () => void;
  270. resetValidation: () => void;
  271. validate: (silent?: boolean) => Promise<string[]>;
  272. validationClasses: vue.ComputedRef<{
  273. [x: string]: boolean;
  274. }>;
  275. }) => vue.VNode<vue.RendererNode, vue.RendererElement, {
  276. [key: string]: any;
  277. }>[];
  278. }>>> & {
  279. beforeCreate?: ((() => void) | (() => void)[]) | undefined;
  280. created?: ((() => void) | (() => void)[]) | undefined;
  281. beforeMount?: ((() => void) | (() => void)[]) | undefined;
  282. mounted?: ((() => void) | (() => void)[]) | undefined;
  283. beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
  284. updated?: ((() => void) | (() => void)[]) | undefined;
  285. activated?: ((() => void) | (() => void)[]) | undefined;
  286. deactivated?: ((() => void) | (() => void)[]) | undefined;
  287. beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
  288. beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
  289. destroyed?: ((() => void) | (() => void)[]) | undefined;
  290. unmounted?: ((() => void) | (() => void)[]) | undefined;
  291. renderTracked?: (((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[]) | undefined;
  292. renderTriggered?: (((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[]) | undefined;
  293. errorCaptured?: (((err: unknown, instance: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined;
  294. };
  295. $forceUpdate: () => void;
  296. $nextTick: typeof vue.nextTick;
  297. $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: vue.WatchOptions<boolean> | undefined): vue.WatchStopHandle;
  298. } & {
  299. error: boolean;
  300. disabled: boolean | null;
  301. readonly: boolean | null;
  302. focused: boolean;
  303. errorMessages: string | readonly string[];
  304. maxErrors: string | number;
  305. rules: readonly ValidationRule[];
  306. } & {
  307. name?: string | undefined;
  308. label?: string | undefined;
  309. modelValue?: any;
  310. 'onUpdate:focused'?: EventProp<[boolean], (args_0: boolean) => any> | undefined;
  311. validateOn?: "lazy" | ("input" | "blur" | "submit") | "input lazy" | "blur lazy" | "submit lazy" | "lazy input" | "lazy blur" | "lazy submit" | undefined;
  312. validationValue?: any;
  313. } & {
  314. $children?: vue.VNodeChild | {
  315. default?: ((arg: {
  316. errorMessages: vue.ComputedRef<string[]>;
  317. isDirty: vue.ComputedRef<boolean>;
  318. isDisabled: vue.ComputedRef<boolean>;
  319. isReadonly: vue.ComputedRef<boolean>;
  320. isPristine: vue.ShallowRef<boolean>;
  321. isValid: vue.ComputedRef<boolean | null>;
  322. isValidating: vue.ShallowRef<boolean>;
  323. reset: () => void;
  324. resetValidation: () => void;
  325. validate: (silent?: boolean) => Promise<string[]>;
  326. validationClasses: vue.ComputedRef<{
  327. [x: string]: boolean;
  328. }>;
  329. }) => vue.VNodeChild) | undefined;
  330. } | ((arg: {
  331. errorMessages: vue.ComputedRef<string[]>;
  332. isDirty: vue.ComputedRef<boolean>;
  333. isDisabled: vue.ComputedRef<boolean>;
  334. isReadonly: vue.ComputedRef<boolean>;
  335. isPristine: vue.ShallowRef<boolean>;
  336. isValid: vue.ComputedRef<boolean | null>;
  337. isValidating: vue.ShallowRef<boolean>;
  338. reset: () => void;
  339. resetValidation: () => void;
  340. validate: (silent?: boolean) => Promise<string[]>;
  341. validationClasses: vue.ComputedRef<{
  342. [x: string]: boolean;
  343. }>;
  344. }) => vue.VNodeChild);
  345. 'v-slots'?: {
  346. default?: false | ((arg: {
  347. errorMessages: vue.ComputedRef<string[]>;
  348. isDirty: vue.ComputedRef<boolean>;
  349. isDisabled: vue.ComputedRef<boolean>;
  350. isReadonly: vue.ComputedRef<boolean>;
  351. isPristine: vue.ShallowRef<boolean>;
  352. isValid: vue.ComputedRef<boolean | null>;
  353. isValidating: vue.ShallowRef<boolean>;
  354. reset: () => void;
  355. resetValidation: () => void;
  356. validate: (silent?: boolean) => Promise<string[]>;
  357. validationClasses: vue.ComputedRef<{
  358. [x: string]: boolean;
  359. }>;
  360. }) => vue.VNodeChild) | undefined;
  361. } | undefined;
  362. } & {
  363. "v-slot:default"?: false | ((arg: {
  364. errorMessages: vue.ComputedRef<string[]>;
  365. isDirty: vue.ComputedRef<boolean>;
  366. isDisabled: vue.ComputedRef<boolean>;
  367. isReadonly: vue.ComputedRef<boolean>;
  368. isPristine: vue.ShallowRef<boolean>;
  369. isValid: vue.ComputedRef<boolean | null>;
  370. isValidating: vue.ShallowRef<boolean>;
  371. reset: () => void;
  372. resetValidation: () => void;
  373. validate: (silent?: boolean) => Promise<string[]>;
  374. validationClasses: vue.ComputedRef<{
  375. [x: string]: boolean;
  376. }>;
  377. }) => vue.VNodeChild) | undefined;
  378. } & {
  379. "onUpdate:modelValue"?: ((val: any) => any) | undefined;
  380. } & vue.ShallowUnwrapRef<() => vue.VNode<vue.RendererNode, vue.RendererElement, {
  381. [key: string]: any;
  382. }>[] | undefined> & {} & vue.ComponentCustomProperties & {};
  383. __isFragment?: undefined;
  384. __isTeleport?: undefined;
  385. __isSuspense?: undefined;
  386. } & vue.ComponentOptionsBase<{
  387. error: boolean;
  388. disabled: boolean | null;
  389. readonly: boolean | null;
  390. focused: boolean;
  391. errorMessages: string | readonly string[];
  392. maxErrors: string | number;
  393. rules: readonly ValidationRule[];
  394. } & {
  395. name?: string | undefined;
  396. label?: string | undefined;
  397. modelValue?: any;
  398. 'onUpdate:focused'?: EventProp<[boolean], (args_0: boolean) => any> | undefined;
  399. validateOn?: "lazy" | ("input" | "blur" | "submit") | "input lazy" | "blur lazy" | "submit lazy" | "lazy input" | "lazy blur" | "lazy submit" | undefined;
  400. validationValue?: any;
  401. } & {
  402. $children?: vue.VNodeChild | {
  403. default?: ((arg: {
  404. errorMessages: vue.ComputedRef<string[]>;
  405. isDirty: vue.ComputedRef<boolean>;
  406. isDisabled: vue.ComputedRef<boolean>;
  407. isReadonly: vue.ComputedRef<boolean>;
  408. isPristine: vue.ShallowRef<boolean>;
  409. isValid: vue.ComputedRef<boolean | null>;
  410. isValidating: vue.ShallowRef<boolean>;
  411. reset: () => void;
  412. resetValidation: () => void;
  413. validate: (silent?: boolean) => Promise<string[]>;
  414. validationClasses: vue.ComputedRef<{
  415. [x: string]: boolean;
  416. }>;
  417. }) => vue.VNodeChild) | undefined;
  418. } | ((arg: {
  419. errorMessages: vue.ComputedRef<string[]>;
  420. isDirty: vue.ComputedRef<boolean>;
  421. isDisabled: vue.ComputedRef<boolean>;
  422. isReadonly: vue.ComputedRef<boolean>;
  423. isPristine: vue.ShallowRef<boolean>;
  424. isValid: vue.ComputedRef<boolean | null>;
  425. isValidating: vue.ShallowRef<boolean>;
  426. reset: () => void;
  427. resetValidation: () => void;
  428. validate: (silent?: boolean) => Promise<string[]>;
  429. validationClasses: vue.ComputedRef<{
  430. [x: string]: boolean;
  431. }>;
  432. }) => vue.VNodeChild);
  433. 'v-slots'?: {
  434. default?: false | ((arg: {
  435. errorMessages: vue.ComputedRef<string[]>;
  436. isDirty: vue.ComputedRef<boolean>;
  437. isDisabled: vue.ComputedRef<boolean>;
  438. isReadonly: vue.ComputedRef<boolean>;
  439. isPristine: vue.ShallowRef<boolean>;
  440. isValid: vue.ComputedRef<boolean | null>;
  441. isValidating: vue.ShallowRef<boolean>;
  442. reset: () => void;
  443. resetValidation: () => void;
  444. validate: (silent?: boolean) => Promise<string[]>;
  445. validationClasses: vue.ComputedRef<{
  446. [x: string]: boolean;
  447. }>;
  448. }) => vue.VNodeChild) | undefined;
  449. } | undefined;
  450. } & {
  451. "v-slot:default"?: false | ((arg: {
  452. errorMessages: vue.ComputedRef<string[]>;
  453. isDirty: vue.ComputedRef<boolean>;
  454. isDisabled: vue.ComputedRef<boolean>;
  455. isReadonly: vue.ComputedRef<boolean>;
  456. isPristine: vue.ShallowRef<boolean>;
  457. isValid: vue.ComputedRef<boolean | null>;
  458. isValidating: vue.ShallowRef<boolean>;
  459. reset: () => void;
  460. resetValidation: () => void;
  461. validate: (silent?: boolean) => Promise<string[]>;
  462. validationClasses: vue.ComputedRef<{
  463. [x: string]: boolean;
  464. }>;
  465. }) => vue.VNodeChild) | undefined;
  466. } & {
  467. "onUpdate:modelValue"?: ((val: any) => any) | undefined;
  468. }, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
  469. [key: string]: any;
  470. }>[] | undefined, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
  471. 'update:modelValue': (val: any) => boolean;
  472. }, string, {
  473. error: boolean;
  474. disabled: boolean | null;
  475. readonly: boolean | null;
  476. focused: boolean;
  477. errorMessages: string | readonly string[];
  478. maxErrors: string | number;
  479. rules: readonly ValidationRule[];
  480. }, {}, string, vue.SlotsType<Partial<{
  481. default: (arg: {
  482. errorMessages: vue.ComputedRef<string[]>;
  483. isDirty: vue.ComputedRef<boolean>;
  484. isDisabled: vue.ComputedRef<boolean>;
  485. isReadonly: vue.ComputedRef<boolean>;
  486. isPristine: vue.ShallowRef<boolean>;
  487. isValid: vue.ComputedRef<boolean | null>;
  488. isValidating: vue.ShallowRef<boolean>;
  489. reset: () => void;
  490. resetValidation: () => void;
  491. validate: (silent?: boolean) => Promise<string[]>;
  492. validationClasses: vue.ComputedRef<{
  493. [x: string]: boolean;
  494. }>;
  495. }) => vue.VNode<vue.RendererNode, vue.RendererElement, {
  496. [key: string]: any;
  497. }>[];
  498. }>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
  499. focused: BooleanConstructor;
  500. 'onUpdate:focused': vue.PropType<EventProp<[boolean], (args_0: boolean) => any>>;
  501. disabled: {
  502. type: vue.PropType<boolean | null>;
  503. default: null;
  504. };
  505. error: BooleanConstructor;
  506. errorMessages: {
  507. type: vue.PropType<string | readonly string[]>;
  508. default: () => never[];
  509. };
  510. maxErrors: {
  511. type: (StringConstructor | NumberConstructor)[];
  512. default: number;
  513. };
  514. name: StringConstructor;
  515. label: StringConstructor;
  516. readonly: {
  517. type: vue.PropType<boolean | null>;
  518. default: null;
  519. };
  520. rules: {
  521. type: vue.PropType<readonly ValidationRule[]>;
  522. default: () => never[];
  523. };
  524. modelValue: null;
  525. validateOn: vue.PropType<"lazy" | ("input" | "blur" | "submit") | "input lazy" | "blur lazy" | "submit lazy" | "lazy input" | "lazy blur" | "lazy submit" | undefined>;
  526. validationValue: null;
  527. }, vue.ExtractPropTypes<{
  528. focused: BooleanConstructor;
  529. 'onUpdate:focused': vue.PropType<EventProp<[boolean], (args_0: boolean) => any>>;
  530. disabled: {
  531. type: vue.PropType<boolean | null>;
  532. default: null;
  533. };
  534. error: BooleanConstructor;
  535. errorMessages: {
  536. type: vue.PropType<string | readonly string[]>;
  537. default: () => never[];
  538. };
  539. maxErrors: {
  540. type: (StringConstructor | NumberConstructor)[];
  541. default: number;
  542. };
  543. name: StringConstructor;
  544. label: StringConstructor;
  545. readonly: {
  546. type: vue.PropType<boolean | null>;
  547. default: null;
  548. };
  549. rules: {
  550. type: vue.PropType<readonly ValidationRule[]>;
  551. default: () => never[];
  552. };
  553. modelValue: null;
  554. validateOn: vue.PropType<"lazy" | ("input" | "blur" | "submit") | "input lazy" | "blur lazy" | "submit lazy" | "lazy input" | "lazy blur" | "lazy submit" | undefined>;
  555. validationValue: null;
  556. }>>;
  557. type VValidation = InstanceType<typeof VValidation>;
  558. export { VValidation };