cronapp-lib-js 3.0.0-SP.9 → 3.1.0

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,6 +9011,10 @@
9009
9011
  } else {
9010
9012
  field.call(source, value);
9011
9013
  }
9014
+ // INICIO FIX CRONAPP-12841 (PARTE 2 de 3)
9015
+ } else if (hasMask) {
9016
+ source.set(this.path, field);
9017
+ // FIM FIX CRONAPP-12841 (PARTE 2 de 3)
9012
9018
  } else {
9013
9019
  source.set(this.path, value);
9014
9020
  }
@@ -9210,7 +9216,10 @@
9210
9216
  },
9211
9217
  change: function () {
9212
9218
  this._initChange = this.eventName != CHANGE;
9213
- this.bindings[VALUE].set(this.parsedValue());
9219
+ // INICIO FIX CRONAPP-12841 (PARTE 3 de 3)
9220
+ let hasMask = (this && this.element && this.element.attributes && this.element.attributes['mask']);
9221
+ this.bindings[VALUE].set(this.parsedValue(), hasMask);
9222
+ // FIM FIX CRONAPP-12841 (PARTE 3 de 3)
9214
9223
  this._initChange = false;
9215
9224
  },
9216
9225
  refresh: function () {
@@ -22942,7 +22951,7 @@
22942
22951
  that._trigger(ACTIVATE);
22943
22952
  //BEGIN FIX_032
22944
22953
  //NEW FIX_032
22945
- if (that.options && that.options.anchor && that.options.anchor.hasClass('cronDynamicSelect')) {
22954
+ if (that.options && that.options.anchor && that.options.anchor.hasClass && that.options.anchor.hasClass('cronDynamicSelect')) {
22946
22955
  let $mainView = $('[ui-view]');
22947
22956
  if ($mainView.length) {
22948
22957
  that._mainView = $mainView[$mainView.length - 1];
@@ -494,7 +494,11 @@ StimulsoftHelper.prototype.overrideMethods = function() {
494
494
  d = "2015-12-31";
495
495
  }
496
496
  if (d.length < 5 || (!d.match(TIME_PATTERN) && d.indexOf('-')) == -1) {
497
- return d;
497
+ try {
498
+ return new Stimulsoft.System.DateTime(new Date(d));
499
+ } catch (e) {
500
+ return d;
501
+ }
498
502
  }
499
503
 
500
504
  if (typeof logError === 'undefined') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cronapp-lib-js",
3
- "version": "3.0.0-SP.9",
3
+ "version": "3.1.0",
4
4
  "description": "Javascript library for CronApp's projects",
5
5
  "main": "index.js",
6
6
  "scripts": {