Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nette-forms

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nette-forms - npm Package Compare versions

Comparing version 3.3.4 to 3.3.5

2

package.json
{
"name": "nette-forms",
"version": "3.3.4",
"version": "3.3.5",
"description": "Client side script for Nette Forms Component",

@@ -5,0 +5,0 @@ "keywords": [

@@ -551,3 +551,3 @@ /**!

image: function (elem, arg, val) {
return Nette.validators.mimeType(elem, ['image/gif', 'image/png', 'image/jpeg', 'image/webp'], val);
return Nette.validators.mimeType(elem, arg || ['image/gif', 'image/png', 'image/jpeg', 'image/webp'], val);
},

@@ -554,0 +554,0 @@

@@ -15,3 +15,3 @@ (function(p,d){if(p.JSON)if("function"===typeof define&&define.amd)define(function(){return d(p)});else if("object"===typeof module&&"object"===typeof module.exports)module.exports=d(p);else{var u=!p.Nette||!p.Nette.noInit;p.Nette=d(p);u&&p.Nette.initOnLoad()}})("undefined"!==typeof window?window:this,function(p){var d={},u={},r={},x=new p.WeakMap;d.formErrors=[];d.version="3.3.0";d.invalidNumberMessage="Please enter a valid value.";d.onDocumentReady=function(a){"loading"!==document.readyState?a.call(this):

b,c){return/^-?[0-9]+$/.test(c)},"float":function(a,b,c,e){c=c.replace(/ +/g,"").replace(/,/g,".");return/^-?[0-9]*\.?[0-9]+$/.test(c)?(e.value=c,!0):!1},min:function(a,b,c){Number.isFinite(b)&&(c=parseFloat(c));return c>=b},max:function(a,b,c){Number.isFinite(b)&&(c=parseFloat(c));return c<=b},range:function(a,b,c){return Array.isArray(b)?"time"===a.type&&b[0]>b[1]?c>=b[0]||c<=b[1]:(null===b[0]||d.validators.min(a,b[0],c))&&(null===b[1]||d.validators.max(a,b[1],c)):null},submitted:function(a){return a.form["nette-submittedBy"]===
a},fileSize:function(a,b,c){for(a=0;a<c.length;a++)if(c[a].size>b)return!1;return!0},mimeType:function(a,b,c){b=Array.isArray(b)?b:[b];for(var e=0,f=b.length,g=[];e<f;e++)g.push("^"+b[e].replace(/([^\w])/g,"\\$1").replace("\\*",".*")+"$");g=new RegExp(g.join("|"));if(c instanceof FileList)for(e=0;e<c.length;e++){if(c[e].type&&!g.test(c[e].type))return!1;if(a.validity.badInput)return null}return!0},image:function(a,b,c){return d.validators.mimeType(a,["image/gif","image/png","image/jpeg","image/webp"],
a},fileSize:function(a,b,c){for(a=0;a<c.length;a++)if(c[a].size>b)return!1;return!0},mimeType:function(a,b,c){b=Array.isArray(b)?b:[b];for(var e=0,f=b.length,g=[];e<f;e++)g.push("^"+b[e].replace(/([^\w])/g,"\\$1").replace("\\*",".*")+"$");g=new RegExp(g.join("|"));if(c instanceof FileList)for(e=0;e<c.length;e++){if(c[e].type&&!g.test(c[e].type))return!1;if(a.validity.badInput)return null}return!0},image:function(a,b,c){return d.validators.mimeType(a,b||["image/gif","image/png","image/jpeg","image/webp"],
c)},"static":function(a,b){return b}};d.toggleForm=function(a,b){var c;r={};for(c=0;c<a.elements.length;c++)a.elements[c].tagName.toLowerCase()in{input:1,select:1,textarea:1,button:1}&&d.toggleControl(a.elements[c],null,null,!b);for(c in r)d.toggle(c,r[c].state,r[c].elem,b)};d.toggleControl=function(a,b,c,e,f,g){b=b||JSON.parse(a.getAttribute("data-nette-rules")||"[]");f=void 0===f?{value:d.getEffectiveValue(a)}:f;g=void 0===g?!d.validateRule(a,":filled",null,f):g;for(var q=!1,h=function(y){d.toggleForm(a.form,

@@ -18,0 +18,0 @@ y)},k,n=0,w=b.length;n<w;n++){var l=b[n];k=l.op.match(/(~)?([^?]+)/);var m=l.control?a.form.elements.namedItem(l.control):a;l.neg=k[1];l.op=k[2];l.condition=!!l.rules;if(m&&(!g||l.condition||":filled"===l.op)){k=c;if(!1!==c){k=d.validateRule(m,l.op,l.arg,a===m?f:void 0);if(null===k)continue;else l.neg&&(k=!k);l.condition||(c=k)}if(l.condition&&d.toggleControl(a,l.rules,k,e,f,":blank"===l.op?!1:g)||l.toggle){q=!0;if(e){var z=m.tagName?m.name:m[0].name;m=m.tagName?m.form.elements:m;for(var t=0;t<m.length;t++)m[t].name!==

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc