Skip to content
On this page

@obewds/vue-validators Component


⚠️ Project Depreciated ⚠️

This project has been depreciated. Use VueVentus (via github or via npm), which is the result of this project, and has this functionality along with much more.


ES Module Version

ESM version

js
const e = [
  "up",
  "down",
  "left",
  "right",
  ""
], t = [
  "address",
  "article",
  "aside",
  "blockquote",
  "details",
  "dialog",
  "dd",
  "div",
  "dl",
  "dt",
  "fieldset",
  "figcaption",
  "figure",
  "footer",
  "form",
  "h1",
  "h2",
  "h3",
  "h4",
  "h5",
  "h6",
  "header",
  "hgroup",
  /*'hr',*/
  "li",
  "main",
  "nav",
  "ol",
  "p",
  "pre",
  "section",
  "table",
  "ul"
], a = [
  "bottom",
  "top"
], o = [
  "button",
  "submit",
  "reset"
], s = [
  // HTML Main root element
  /*'html',*/
  // HTML Document metadata elements
  /*'base',*/
  /*'head',*/
  /*'link',*/
  /*'meta',*/
  "style",
  "title",
  // HTML Sectioning root element
  /*'body',*/
  // HTML Content sectioning elements
  "address",
  "article",
  "aside",
  "footer",
  "header",
  "h1",
  "h2",
  "h3",
  "h4",
  "h5",
  "h6",
  "main",
  "nav",
  "section",
  // HTML Text content elements
  "blockquote",
  "dd",
  "div",
  "dl",
  "dt",
  "figcaption",
  "figure",
  /*'hr',*/
  "li",
  "menu",
  "ol",
  "p",
  "pre",
  "ul",
  // HTML Inline text semantic elements
  "a",
  "abbr",
  "b",
  "bdi",
  "bdo",
  /*'br',*/
  "cite",
  "code",
  "data",
  "dfn",
  "em",
  "i",
  "kbd",
  "mark",
  "q",
  "rp",
  "rt",
  "ruby",
  "s",
  "samp",
  "small",
  "span",
  "strong",
  "sub",
  "sup",
  "time",
  "u",
  "var",
  /*'wbr',*/
  // HTML Image and multimedia elements
  /*'area',*/
  "audio",
  /*'img',*/
  "map",
  /*'track',*/
  "video",
  // HTML Embedded content elements
  /*'embed',*/
  "iframe",
  "object",
  /*'param',*/
  "picture",
  "portal",
  /*'source',*/
  // HTML SVG and MathML elements
  "svg",
  "math",
  // HTML Scripting  elements
  "canvas",
  /*'noscript',*/
  /*'script',*/
  // HTML Demarcating edits elements
  "del",
  "ins",
  // HTML Table content elements
  "caption",
  /*'col',*/
  "colgroup",
  "table",
  "tbody",
  "td",
  "tfoot",
  "th",
  "thead",
  "tr",
  // HTML Forms elements
  "button",
  "datalist",
  "fieldset",
  "form",
  /*'input',*/
  "label",
  "legend",
  "meter",
  "optgroup",
  "option",
  "output",
  "progress",
  "select",
  "textarea",
  // HTML Interactive elements
  "details",
  "dialog",
  "summary"
  // HTML Web Components elements
  /*'slot',*/
  /*'template',*/
], i = [
  "area",
  "base",
  "br",
  "col",
  "embed",
  "hr",
  "img",
  "input",
  "keygen",
  "link",
  "meta",
  "param",
  "source",
  "track",
  "wbr"
], d = [
  "fab",
  "fad",
  "fal",
  "far",
  "fas",
  "fat"
], r = [
  "xs",
  "sm",
  "1x",
  // '1x' is effectively size 'md' - aka icon size inherits font size
  "lg",
  "2x",
  "3x",
  "4x",
  "5x",
  "6x",
  "7x",
  "8x",
  "9x",
  "10x"
], l = [
  1,
  2,
  3,
  4,
  5,
  6
], n = [
  "a",
  "abbr",
  "acronym",
  "audio",
  // if it has visible controls
  "b",
  "bdi",
  "bdo",
  "big",
  /*'br',*/
  "button",
  "canvas",
  "cite",
  "code",
  "data",
  "datalist",
  "del",
  "dfn",
  "em",
  /*'embed',*/
  "i",
  "iframe",
  /*'img',*/
  /*'input',*/
  "ins",
  "kbd",
  "label",
  "map",
  "mark",
  "meter",
  /*'noscript',*/
  "object",
  "output",
  "picture",
  "progress",
  "q",
  "ruby",
  "s",
  "samp",
  /*'script',*/
  "select",
  /*'slot',*/
  "small",
  "span",
  "strong",
  "sub",
  "sup",
  "svg",
  /*'template',*/
  "textarea",
  "time",
  "u",
  "tt",
  "var",
  "video"
  /*'wbr',*/
], m = [
  // 'button',
  // 'checkbox',
  "color",
  "date",
  "datetime-local",
  "email",
  // 'file',
  // 'hidden',
  // 'image',
  "month",
  "number",
  "password",
  // 'radio',
  // 'range',
  // 'reset',
  "search",
  // 'submit',
  "tel",
  "text",
  "time",
  "url"
  // 'week',
], c = [
  "audio/flac",
  "audio/mp4",
  "audio/mpeg",
  "audio/ogg",
  "audio/x-flac",
  "audio/webm"
], p = [
  "image/gif",
  "image/jpeg",
  "image/png",
  "image/svg+xml",
  "image/webp"
], u = [
  "video/mp4",
  "video/ogg",
  "video/webm"
], b = [
  "body",
  "head",
  "html",
  "noscript",
  "script",
  "slot",
  "template"
];
export {
  e as animationDirections,
  t as blockLevelElementTags,
  a as blockOrders,
  o as buttonTypes,
  s as elementTags,
  i as emptyElementTags,
  d as fontAwesomeFamilies,
  r as fontAwesomeSizes,
  l as headingLevels,
  n as inlineLevelElementTags,
  m as inputTypes,
  c as sourceAudioTypes,
  p as sourceImageTypes,
  u as sourceVideoTypes,
  b as unsupportedElementTags
};

UMD Version

Version used by Node.js (Universal version for Common.js/AMD)

js
(function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.vueValidators={}))})(this,function(e){"use strict";const t=["up","down","left","right",""],a=["address","article","aside","blockquote","details","dialog","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","li","main","nav","ol","p","pre","section","table","ul"],o=["bottom","top"],i=["button","submit","reset"],s=["style","title","address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","li","menu","ol","p","pre","ul","a","abbr","b","bdi","bdo","cite","code","data","dfn","em","i","kbd","mark","q","rp","rt","ruby","s","samp","small","span","strong","sub","sup","time","u","var","audio","map","video","iframe","object","picture","portal","svg","math","canvas","del","ins","caption","colgroup","table","tbody","td","tfoot","th","thead","tr","button","datalist","fieldset","form","label","legend","meter","optgroup","option","output","progress","select","textarea","details","dialog","summary"],n=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],d=["fab","fad","fal","far","fas","fat"],l=["xs","sm","1x","lg","2x","3x","4x","5x","6x","7x","8x","9x","10x"],m=[1,2,3,4,5,6],u=["a","abbr","acronym","audio","b","bdi","bdo","big","button","canvas","cite","code","data","datalist","del","dfn","em","i","iframe","ins","kbd","label","map","mark","meter","object","output","picture","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","textarea","time","u","tt","var","video"],r=["color","date","datetime-local","email","month","number","password","search","tel","text","time","url"],c=["audio/flac","audio/mp4","audio/mpeg","audio/ogg","audio/x-flac","audio/webm"],p=["image/gif","image/jpeg","image/png","image/svg+xml","image/webp"],g=["video/mp4","video/ogg","video/webm"],b=["body","head","html","noscript","script","slot","template"];e.animationDirections=t,e.blockLevelElementTags=a,e.blockOrders=o,e.buttonTypes=i,e.elementTags=s,e.emptyElementTags=n,e.fontAwesomeFamilies=d,e.fontAwesomeSizes=l,e.headingLevels=m,e.inlineLevelElementTags=u,e.inputTypes=r,e.sourceAudioTypes=c,e.sourceImageTypes=p,e.sourceVideoTypes=g,e.unsupportedElementTags=b,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});

CJS Version

CommonJS version

js
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=["up","down","left","right",""],t=["address","article","aside","blockquote","details","dialog","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","li","main","nav","ol","p","pre","section","table","ul"],o=["bottom","top"],a=["button","submit","reset"],s=["style","title","address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","li","menu","ol","p","pre","ul","a","abbr","b","bdi","bdo","cite","code","data","dfn","em","i","kbd","mark","q","rp","rt","ruby","s","samp","small","span","strong","sub","sup","time","u","var","audio","map","video","iframe","object","picture","portal","svg","math","canvas","del","ins","caption","colgroup","table","tbody","td","tfoot","th","thead","tr","button","datalist","fieldset","form","label","legend","meter","optgroup","option","output","progress","select","textarea","details","dialog","summary"],i=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],l=["fab","fad","fal","far","fas","fat"],n=["xs","sm","1x","lg","2x","3x","4x","5x","6x","7x","8x","9x","10x"],r=[1,2,3,4,5,6],d=["a","abbr","acronym","audio","b","bdi","bdo","big","button","canvas","cite","code","data","datalist","del","dfn","em","i","iframe","ins","kbd","label","map","mark","meter","object","output","picture","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","textarea","time","u","tt","var","video"],m=["color","date","datetime-local","email","month","number","password","search","tel","text","time","url"],c=["audio/flac","audio/mp4","audio/mpeg","audio/ogg","audio/x-flac","audio/webm"],p=["image/gif","image/jpeg","image/png","image/svg+xml","image/webp"],u=["video/mp4","video/ogg","video/webm"],g=["body","head","html","noscript","script","slot","template"];exports.animationDirections=e;exports.blockLevelElementTags=t;exports.blockOrders=o;exports.buttonTypes=a;exports.elementTags=s;exports.emptyElementTags=i;exports.fontAwesomeFamilies=l;exports.fontAwesomeSizes=n;exports.headingLevels=r;exports.inlineLevelElementTags=d;exports.inputTypes=m;exports.sourceAudioTypes=c;exports.sourceImageTypes=p;exports.sourceVideoTypes=u;exports.unsupportedElementTags=g;

IIFE (Browser) Code

Version used for browser instances

js
var vueValidators=function(e){"use strict";const t=["up","down","left","right",""],a=["address","article","aside","blockquote","details","dialog","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","li","main","nav","ol","p","pre","section","table","ul"],o=["bottom","top"],i=["button","submit","reset"],s=["style","title","address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","li","menu","ol","p","pre","ul","a","abbr","b","bdi","bdo","cite","code","data","dfn","em","i","kbd","mark","q","rp","rt","ruby","s","samp","small","span","strong","sub","sup","time","u","var","audio","map","video","iframe","object","picture","portal","svg","math","canvas","del","ins","caption","colgroup","table","tbody","td","tfoot","th","thead","tr","button","datalist","fieldset","form","label","legend","meter","optgroup","option","output","progress","select","textarea","details","dialog","summary"],n=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],l=["fab","fad","fal","far","fas","fat"],d=["xs","sm","1x","lg","2x","3x","4x","5x","6x","7x","8x","9x","10x"],m=[1,2,3,4,5,6],r=["a","abbr","acronym","audio","b","bdi","bdo","big","button","canvas","cite","code","data","datalist","del","dfn","em","i","iframe","ins","kbd","label","map","mark","meter","object","output","picture","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","textarea","time","u","tt","var","video"],u=["color","date","datetime-local","email","month","number","password","search","tel","text","time","url"],c=["audio/flac","audio/mp4","audio/mpeg","audio/ogg","audio/x-flac","audio/webm"],g=["image/gif","image/jpeg","image/png","image/svg+xml","image/webp"],b=["video/mp4","video/ogg","video/webm"],p=["body","head","html","noscript","script","slot","template"];return e.animationDirections=t,e.blockLevelElementTags=a,e.blockOrders=o,e.buttonTypes=i,e.elementTags=s,e.emptyElementTags=n,e.fontAwesomeFamilies=l,e.fontAwesomeSizes=d,e.headingLevels=m,e.inlineLevelElementTags=r,e.inputTypes=u,e.sourceAudioTypes=c,e.sourceImageTypes=g,e.sourceVideoTypes=b,e.unsupportedElementTags=p,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e}({});