Socket
Socket
Sign inDemoInstall

@syncfusion/ej2-inputs

Package Overview
Dependencies
Maintainers
2
Versions
249
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@syncfusion/ej2-inputs - npm Package Compare versions

Comparing version 15.4.20 to 15.4.21

39

dist/es6/form-validator/form-validator.js

@@ -169,18 +169,4 @@ var __extends = (this && this.__extends) || (function () {

FormValidator.prototype.reset = function () {
this.errorRules = [];
this.validated = [];
this.element.reset();
var elements = selectAll(this.selectQuery, this.element);
for (var _i = 0, elements_1 = elements; _i < elements_1.length; _i++) {
var element = elements_1[_i];
var input = element;
input.removeAttribute('aria-invalid');
input.classList.remove(this.errorClass);
if (input.name.length > 0) {
this.getInputElement(input.name);
this.getErrorElement(input.name);
this.hideMessage(input.name);
}
input.classList.remove(this.validClass);
}
this.clearForm();
};

@@ -205,4 +191,4 @@ /**

var elements = selectAll('.' + this.errorClass + ', .' + this.validClass, this.element);
for (var _i = 0, elements_2 = elements; _i < elements_2.length; _i++) {
var element = elements_2[_i];
for (var _i = 0, elements_1 = elements; _i < elements_1.length; _i++) {
var element = elements_1[_i];
element.remove();

@@ -225,2 +211,19 @@ }

};
FormValidator.prototype.clearForm = function () {
this.errorRules = [];
this.validated = [];
var elements = selectAll(this.selectQuery, this.element);
for (var _i = 0, elements_2 = elements; _i < elements_2.length; _i++) {
var element = elements_2[_i];
var input = element;
input.removeAttribute('aria-invalid');
input.classList.remove(this.errorClass);
if (input.name.length > 0) {
this.getInputElement(input.name);
this.getErrorElement(input.name);
this.hideMessage(input.name);
}
input.classList.remove(this.validClass);
}
};
FormValidator.prototype.createHTML5Rules = function () {

@@ -415,3 +418,3 @@ var defRules = ['required', 'regex', 'rangeLength', 'maxLength', 'minLength', 'dateIso', 'digits', 'pattern',

FormValidator.prototype.resetHandler = function () {
this.reset();
this.clearForm();
};

@@ -418,0 +421,0 @@ // Validate each rule based on input element name

{
"name": "@syncfusion/ej2-inputs",
"version": "15.4.20",
"version": "15.4.21",
"description": "Essential JS 2 Input Components",

@@ -9,3 +9,3 @@ "author": "Syncfusion Inc.",

"dependencies": {
"@syncfusion/ej2-base": "^15.4.20"
"@syncfusion/ej2-base": "^15.4.21"
},

@@ -12,0 +12,0 @@ "devDependencies": {

@@ -169,2 +169,3 @@ import { Base, EmitType } from '@syncfusion/ej2-base';

constructor(element: string | HTMLFormElement, options?: FormValidatorModel);
private clearForm();
private createHTML5Rules();

@@ -171,0 +172,0 @@ private annotationRule(input, ruleCon, ruleName, value);

@@ -117,18 +117,4 @@ var __extends = (this && this.__extends) || (function () {

FormValidator.prototype.reset = function () {
this.errorRules = [];
this.validated = [];
this.element.reset();
var elements = ej2_base_1.selectAll(this.selectQuery, this.element);
for (var _i = 0, elements_1 = elements; _i < elements_1.length; _i++) {
var element = elements_1[_i];
var input = element;
input.removeAttribute('aria-invalid');
input.classList.remove(this.errorClass);
if (input.name.length > 0) {
this.getInputElement(input.name);
this.getErrorElement(input.name);
this.hideMessage(input.name);
}
input.classList.remove(this.validClass);
}
this.clearForm();
};

@@ -144,4 +130,4 @@ FormValidator.prototype.getInputElement = function (name) {

var elements = ej2_base_1.selectAll('.' + this.errorClass + ', .' + this.validClass, this.element);
for (var _i = 0, elements_2 = elements; _i < elements_2.length; _i++) {
var element = elements_2[_i];
for (var _i = 0, elements_1 = elements; _i < elements_1.length; _i++) {
var element = elements_1[_i];
element.remove();

@@ -157,2 +143,19 @@ }

};
FormValidator.prototype.clearForm = function () {
this.errorRules = [];
this.validated = [];
var elements = ej2_base_1.selectAll(this.selectQuery, this.element);
for (var _i = 0, elements_2 = elements; _i < elements_2.length; _i++) {
var element = elements_2[_i];
var input = element;
input.removeAttribute('aria-invalid');
input.classList.remove(this.errorClass);
if (input.name.length > 0) {
this.getInputElement(input.name);
this.getErrorElement(input.name);
this.hideMessage(input.name);
}
input.classList.remove(this.validClass);
}
};
FormValidator.prototype.createHTML5Rules = function () {

@@ -331,3 +334,3 @@ var defRules = ['required', 'regex', 'rangeLength', 'maxLength', 'minLength', 'dateIso', 'digits', 'pattern',

FormValidator.prototype.resetHandler = function () {
this.reset();
this.clearForm();
};

@@ -334,0 +337,0 @@ FormValidator.prototype.validateRules = function (name) {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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