cronapp-lib-js 3.0.0-SP.54 → 3.0.0-SP.55

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.
@@ -9000,7 +9000,9 @@
9000
9000
  that.stop(that.source);
9001
9001
  return result;
9002
9002
  },
9003
- set: function (value) {
9003
+ // INICIO FIX CRONAPP-12841 (PARTE 1 de 3)
9004
+ set: function (value, hasMask) {
9005
+ // FIM FIX CRONAPP-12841 (PARTE 1 de 3)
9004
9006
  var source = this.currentSource || this.source;
9005
9007
  var field = kendo.getter(this.path)(source);
9006
9008
  if (typeof field === 'function') {
@@ -9009,10 +9011,10 @@
9009
9011
  } else {
9010
9012
  field.call(source, value);
9011
9013
  }
9012
- // INICIO FIX CRONAPP-12841
9013
- } else if (field !== undefined && field !== '') {
9014
+ // INICIO FIX CRONAPP-12841 (PARTE 2 de 3)
9015
+ } else if (hasMask) {
9014
9016
  source.set(this.path, field);
9015
- // FIM FIX CRONAPP-12841
9017
+ // FIM FIX CRONAPP-12841 (PARTE 2 de 3)
9016
9018
  } else {
9017
9019
  source.set(this.path, value);
9018
9020
  }
@@ -9214,7 +9216,10 @@
9214
9216
  },
9215
9217
  change: function () {
9216
9218
  this._initChange = this.eventName != CHANGE;
9217
- this.bindings[VALUE].set(this.parsedValue());
9219
+ // INICIO FIX CRONAPP-12841 (PARTE 3 de 3)
9220
+ let hasMask = this?.element?.attributes['mask'] != undefined;
9221
+ this.bindings[VALUE].set(this.parsedValue(), hasMask);
9222
+ // FIM FIX CRONAPP-12841 (PARTE 3 de 3)
9218
9223
  this._initChange = false;
9219
9224
  },
9220
9225
  refresh: function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cronapp-lib-js",
3
- "version": "3.0.0-SP.54",
3
+ "version": "3.0.0-SP.55",
4
4
  "description": "Javascript library for CronApp's projects",
5
5
  "main": "index.js",
6
6
  "scripts": {