jsuites 4.11.2 → 4.11.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,7 +17,7 @@
17
17
 
18
18
  var jSuites = function(options) {
19
19
  var obj = {}
20
- var version = '4.10.1';
20
+ var version = '4.11.3';
21
21
 
22
22
  var find = function(DOMElement, component) {
23
23
  if (DOMElement[component.type] && DOMElement[component.type] == component) {
@@ -8174,6 +8174,10 @@ jSuites.mask = (function() {
8174
8174
 
8175
8175
  o.value = value;
8176
8176
 
8177
+ if (! o.type && type) {
8178
+ o.type = type;
8179
+ }
8180
+
8177
8181
  if (returnObject) {
8178
8182
  return o;
8179
8183
  } else {
@@ -9829,7 +9833,9 @@ jSuites.toolbar = (function(el, options) {
9829
9833
  // Available parent space
9830
9834
  var available = parseInt(obj.options.maxWidth);
9831
9835
  // Remove arrow
9832
- toolbarArrow.remove();
9836
+ if (toolbarArrow.parentNode) {
9837
+ toolbarArrow.parentNode.removeChild(toolbarArrow);
9838
+ }
9833
9839
  // Move all items to the toolbar
9834
9840
  while (toolbarFloating.firstChild) {
9835
9841
  toolbarContent.appendChild(toolbarFloating.firstChild);
package/dist/jsuites.js CHANGED
@@ -17,7 +17,7 @@
17
17
 
18
18
  var jSuites = function(options) {
19
19
  var obj = {}
20
- var version = '4.11.2';
20
+ var version = '4.11.3';
21
21
 
22
22
  var find = function(DOMElement, component) {
23
23
  if (DOMElement[component.type] && DOMElement[component.type] == component) {
@@ -8599,6 +8599,10 @@ jSuites.mask = (function() {
8599
8599
 
8600
8600
  o.value = value;
8601
8601
 
8602
+ if (! o.type && type) {
8603
+ o.type = type;
8604
+ }
8605
+
8602
8606
  if (returnObject) {
8603
8607
  return o;
8604
8608
  } else {
@@ -11791,7 +11795,9 @@ jSuites.toolbar = (function(el, options) {
11791
11795
  // Available parent space
11792
11796
  var available = parseInt(obj.options.maxWidth);
11793
11797
  // Remove arrow
11794
- toolbarArrow.remove();
11798
+ if (toolbarArrow.parentNode) {
11799
+ toolbarArrow.parentNode.removeChild(toolbarArrow);
11800
+ }
11795
11801
  // Move all items to the toolbar
11796
11802
  while (toolbarFloating.firstChild) {
11797
11803
  toolbarContent.appendChild(toolbarFloating.firstChild);
@@ -11978,12 +11984,11 @@ jSuites.validations = (function() {
11978
11984
  return false;
11979
11985
  }
11980
11986
 
11981
- return numberCriterias[options.criteria](
11982
- data,
11983
- options.value.map(function(num) {
11984
- return parseFloat(num);
11985
- }),
11986
- );
11987
+ var values = options.value.map(function(num) {
11988
+ return parseFloat(num);
11989
+ })
11990
+
11991
+ return numberCriterias[options.criteria](data, values);
11987
11992
  };
11988
11993
 
11989
11994
  component.login = function(data) {
@@ -12017,12 +12022,11 @@ jSuites.validations = (function() {
12017
12022
  return false;
12018
12023
  }
12019
12024
 
12020
- return dateCriterias[options.criteria](
12021
- new Date(data).getTime(),
12022
- options.value.map(function(date) {
12023
- return new Date(date).getTime();
12024
- }),
12025
- );
12025
+ var values = options.value.map(function(date) {
12026
+ return new Date(date).getTime();
12027
+ });
12028
+
12029
+ return dateCriterias[options.criteria](new Date(data).getTime(), values);
12026
12030
  }
12027
12031
 
12028
12032
  component.text = function(data, options) {
@@ -12038,10 +12042,7 @@ jSuites.validations = (function() {
12038
12042
  return false;
12039
12043
  }
12040
12044
 
12041
- return textCriterias[options.criteria](
12042
- data,
12043
- options.value,
12044
- );
12045
+ return textCriterias[options.criteria](data, options.value);
12045
12046
  }
12046
12047
 
12047
12048
  return component;
package/package.json CHANGED
@@ -19,7 +19,7 @@
19
19
  "javascript plugins"
20
20
  ],
21
21
  "main": "dist/jsuites.js",
22
- "version": "4.11.2",
22
+ "version": "4.11.3",
23
23
  "bugs": "https://github.com/jsuites/jsuites/issues",
24
24
  "homepage": "https://github.com/jsuites/jsuites",
25
25
  "docs": "https://jsuites.net",