build revisions and layout updates for toast
This commit is contained in:
parent
b341a3675e
commit
39235193e6
1116 changed files with 130517 additions and 12 deletions
25
node_modules/@hookform/resolvers/fluentvalidation-ts/dist/fluentvalidation-ts.d.ts
generated
vendored
Normal file
25
node_modules/@hookform/resolvers/fluentvalidation-ts/dist/fluentvalidation-ts.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
import { AsyncValidator, Validator } from 'fluentvalidation-ts';
|
||||
import { FieldValues, Resolver } from 'react-hook-form';
|
||||
/**
|
||||
* Creates a resolver for react-hook-form using FluentValidation schema validation
|
||||
* @param {Validator<TFieldValues>} validator - The FluentValidation validator to use
|
||||
* @returns {Resolver<TFieldValues>} A resolver function compatible with react-hook-form
|
||||
* @example
|
||||
* import { Validator } from 'fluentvalidation-ts';
|
||||
*
|
||||
* class SchemaValidator extends Validator<Schema> {
|
||||
* constructor() {
|
||||
* super();
|
||||
* this.ruleFor('username').notEmpty();
|
||||
* this.ruleFor('password').notEmpty();
|
||||
* }
|
||||
* }
|
||||
*
|
||||
* const validator = new SchemaValidator();
|
||||
*
|
||||
* useForm({
|
||||
* resolver: fluentValidationResolver(validator)
|
||||
* });
|
||||
*/
|
||||
export declare function fluentValidationResolver<TFieldValues extends FieldValues>(validator: Validator<TFieldValues>): Resolver<TFieldValues>;
|
||||
export declare function fluentAsyncValidationResolver<TFieldValues extends FieldValues, TValidator extends AsyncValidator<TFieldValues>>(validator: TValidator): Resolver<TFieldValues>;
|
||||
2
node_modules/@hookform/resolvers/fluentvalidation-ts/dist/fluentvalidation-ts.js
generated
vendored
Normal file
2
node_modules/@hookform/resolvers/fluentvalidation-ts/dist/fluentvalidation-ts.js
generated
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
var e=require("@hookform/resolvers");function r(e,t,o){void 0===o&&(o=[]);var n=function(){var n=[].concat(o,[a]),i=e[a];Array.isArray(i)?i.forEach(function(e,o){r(e,t,[].concat(n,[o]))}):"object"==typeof i&&null!==i?r(i,t,n):"string"==typeof i&&(t[n.join(".")]={type:"validation",message:i})};for(var a in e)n()}function t(e,t){var o={};return r(e,o),o}exports.fluentAsyncValidationResolver=function(r){return function(o,n,a){try{return Promise.resolve(r.validateAsync(o)).then(function(r){var n=0===Object.keys(r).length;return a.shouldUseNativeValidation&&e.validateFieldsNatively({},a),n?{values:o,errors:{}}:{values:{},errors:e.toNestErrors(t(r),a)}})}catch(e){return Promise.reject(e)}}},exports.fluentValidationResolver=function(r){return function(o,n,a){try{var i=r.validate(o),s=0===Object.keys(i).length;return a.shouldUseNativeValidation&&e.validateFieldsNatively({},a),Promise.resolve(s?{values:o,errors:{}}:{values:{},errors:e.toNestErrors(t(i),a)})}catch(e){return Promise.reject(e)}}};
|
||||
//# sourceMappingURL=fluentvalidation-ts.js.map
|
||||
1
node_modules/@hookform/resolvers/fluentvalidation-ts/dist/fluentvalidation-ts.js.map
generated
vendored
Normal file
1
node_modules/@hookform/resolvers/fluentvalidation-ts/dist/fluentvalidation-ts.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2
node_modules/@hookform/resolvers/fluentvalidation-ts/dist/fluentvalidation-ts.mjs
generated
vendored
Normal file
2
node_modules/@hookform/resolvers/fluentvalidation-ts/dist/fluentvalidation-ts.mjs
generated
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
import{validateFieldsNatively as r,toNestErrors as e}from"@hookform/resolvers";function t(r,e,o){void 0===o&&(o=[]);var n=function(){var n=[].concat(o,[a]),i=r[a];Array.isArray(i)?i.forEach(function(r,o){t(r,e,[].concat(n,[o]))}):"object"==typeof i&&null!==i?t(i,e,n):"string"==typeof i&&(e[n.join(".")]={type:"validation",message:i})};for(var a in r)n()}function o(r,e){var o={};return t(r,o),o}function n(t){return function(n,a,i){try{var s=t.validate(n),c=0===Object.keys(s).length;return i.shouldUseNativeValidation&&r({},i),Promise.resolve(c?{values:n,errors:{}}:{values:{},errors:e(o(s),i)})}catch(r){return Promise.reject(r)}}}function a(t){return function(n,a,i){try{return Promise.resolve(t.validateAsync(n)).then(function(t){var a=0===Object.keys(t).length;return i.shouldUseNativeValidation&&r({},i),a?{values:n,errors:{}}:{values:{},errors:e(o(t),i)}})}catch(r){return Promise.reject(r)}}}export{a as fluentAsyncValidationResolver,n as fluentValidationResolver};
|
||||
//# sourceMappingURL=fluentvalidation-ts.module.js.map
|
||||
2
node_modules/@hookform/resolvers/fluentvalidation-ts/dist/fluentvalidation-ts.modern.mjs
generated
vendored
Normal file
2
node_modules/@hookform/resolvers/fluentvalidation-ts/dist/fluentvalidation-ts.modern.mjs
generated
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
import{validateFieldsNatively as r,toNestErrors as e}from"@hookform/resolvers";function t(r,e,o=[]){for(const n in r){const s=[...o,n],a=r[n];Array.isArray(a)?a.forEach((r,o)=>{t(r,e,[...s,o])}):"object"==typeof a&&null!==a?t(a,e,s):"string"==typeof a&&(e[s.join(".")]={type:"validation",message:a})}}function o(r,e){const o={};return t(r,o),o}function n(t){return async(n,s,a)=>{const i=t.validate(n),c=0===Object.keys(i).length;return a.shouldUseNativeValidation&&r({},a),c?{values:n,errors:{}}:{values:{},errors:e(o(i),a)}}}function s(t){return async(n,s,a)=>{const i=await t.validateAsync(n),c=0===Object.keys(i).length;return a.shouldUseNativeValidation&&r({},a),c?{values:n,errors:{}}:{values:{},errors:e(o(i),a)}}}export{s as fluentAsyncValidationResolver,n as fluentValidationResolver};
|
||||
//# sourceMappingURL=fluentvalidation-ts.modern.mjs.map
|
||||
1
node_modules/@hookform/resolvers/fluentvalidation-ts/dist/fluentvalidation-ts.modern.mjs.map
generated
vendored
Normal file
1
node_modules/@hookform/resolvers/fluentvalidation-ts/dist/fluentvalidation-ts.modern.mjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2
node_modules/@hookform/resolvers/fluentvalidation-ts/dist/fluentvalidation-ts.module.js
generated
vendored
Normal file
2
node_modules/@hookform/resolvers/fluentvalidation-ts/dist/fluentvalidation-ts.module.js
generated
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
import{validateFieldsNatively as r,toNestErrors as e}from"@hookform/resolvers";function t(r,e,o){void 0===o&&(o=[]);var n=function(){var n=[].concat(o,[a]),i=r[a];Array.isArray(i)?i.forEach(function(r,o){t(r,e,[].concat(n,[o]))}):"object"==typeof i&&null!==i?t(i,e,n):"string"==typeof i&&(e[n.join(".")]={type:"validation",message:i})};for(var a in r)n()}function o(r,e){var o={};return t(r,o),o}function n(t){return function(n,a,i){try{var s=t.validate(n),c=0===Object.keys(s).length;return i.shouldUseNativeValidation&&r({},i),Promise.resolve(c?{values:n,errors:{}}:{values:{},errors:e(o(s),i)})}catch(r){return Promise.reject(r)}}}function a(t){return function(n,a,i){try{return Promise.resolve(t.validateAsync(n)).then(function(t){var a=0===Object.keys(t).length;return i.shouldUseNativeValidation&&r({},i),a?{values:n,errors:{}}:{values:{},errors:e(o(t),i)}})}catch(r){return Promise.reject(r)}}}export{a as fluentAsyncValidationResolver,n as fluentValidationResolver};
|
||||
//# sourceMappingURL=fluentvalidation-ts.module.js.map
|
||||
1
node_modules/@hookform/resolvers/fluentvalidation-ts/dist/fluentvalidation-ts.module.js.map
generated
vendored
Normal file
1
node_modules/@hookform/resolvers/fluentvalidation-ts/dist/fluentvalidation-ts.module.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2
node_modules/@hookform/resolvers/fluentvalidation-ts/dist/fluentvalidation-ts.umd.js
generated
vendored
Normal file
2
node_modules/@hookform/resolvers/fluentvalidation-ts/dist/fluentvalidation-ts.umd.js
generated
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("@hookform/resolvers")):"function"==typeof define&&define.amd?define(["exports","@hookform/resolvers"],r):r((e||self)["hookformResolversfluentvalidation-ts"]={},e.hookformResolvers)}(this,function(e,r){function o(e,r,t){void 0===t&&(t=[]);var n=function(){var n=[].concat(t,[i]),s=e[i];Array.isArray(s)?s.forEach(function(e,t){o(e,r,[].concat(n,[t]))}):"object"==typeof s&&null!==s?o(s,r,n):"string"==typeof s&&(r[n.join(".")]={type:"validation",message:s})};for(var i in e)n()}function t(e,r){var t={};return o(e,t),t}e.fluentAsyncValidationResolver=function(e){return function(o,n,i){try{return Promise.resolve(e.validateAsync(o)).then(function(e){var n=0===Object.keys(e).length;return i.shouldUseNativeValidation&&r.validateFieldsNatively({},i),n?{values:o,errors:{}}:{values:{},errors:r.toNestErrors(t(e),i)}})}catch(e){return Promise.reject(e)}}},e.fluentValidationResolver=function(e){return function(o,n,i){try{var s=e.validate(o),a=0===Object.keys(s).length;return i.shouldUseNativeValidation&&r.validateFieldsNatively({},i),Promise.resolve(a?{values:o,errors:{}}:{values:{},errors:r.toNestErrors(t(s),i)})}catch(e){return Promise.reject(e)}}}});
|
||||
//# sourceMappingURL=fluentvalidation-ts.umd.js.map
|
||||
1
node_modules/@hookform/resolvers/fluentvalidation-ts/dist/fluentvalidation-ts.umd.js.map
generated
vendored
Normal file
1
node_modules/@hookform/resolvers/fluentvalidation-ts/dist/fluentvalidation-ts.umd.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
node_modules/@hookform/resolvers/fluentvalidation-ts/dist/index.d.ts
generated
vendored
Normal file
1
node_modules/@hookform/resolvers/fluentvalidation-ts/dist/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
export * from './fluentvalidation-ts';
|
||||
Loading…
Add table
Add a link
Reference in a new issue