sf-crud 12.0.2 → 12.0.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.
- package/bundles/sf-crud.umd.js +7 -3
- package/bundles/sf-crud.umd.js.map +1 -1
- package/esm2015/lib/components/control/control.component.js +2 -2
- package/esm2015/lib/components/registro/registro.component.js +4 -2
- package/esm2015/lib/components/registro-child/registro-child.component.js +4 -2
- package/fesm2015/sf-crud.js +7 -3
- package/fesm2015/sf-crud.js.map +1 -1
- package/package.json +1 -1
package/bundles/sf-crud.umd.js
CHANGED
|
@@ -851,7 +851,7 @@
|
|
|
851
851
|
};
|
|
852
852
|
ControlComponent.prototype.setDate = function () {
|
|
853
853
|
var format = this.control.formatMoment;
|
|
854
|
-
if (format && this.value) {
|
|
854
|
+
if (format && this.value && !(this.value instanceof Date)) {
|
|
855
855
|
this.value = moment__namespace(this.value, format).toDate();
|
|
856
856
|
this.sendValue();
|
|
857
857
|
}
|
|
@@ -1158,8 +1158,10 @@
|
|
|
1158
1158
|
case 'object':
|
|
1159
1159
|
if (Array.isArray(value))
|
|
1160
1160
|
value.forEach(function (val) { return jsonpath__namespace.value(_this.data, val.scope.replace('.properties', ''), val.value); });
|
|
1161
|
-
else
|
|
1161
|
+
else {
|
|
1162
|
+
this.values[i][j] = value;
|
|
1162
1163
|
jsonpath__namespace.value(this.data, scope.replace('.properties', ''), value);
|
|
1164
|
+
}
|
|
1163
1165
|
break;
|
|
1164
1166
|
default:
|
|
1165
1167
|
this.values[i][j] = value;
|
|
@@ -1574,8 +1576,10 @@
|
|
|
1574
1576
|
case 'object':
|
|
1575
1577
|
if (Array.isArray(value))
|
|
1576
1578
|
value.forEach(function (val) { return jsonpath__namespace.value(_this.data, val.scope.replace('.properties', ''), val.value); });
|
|
1577
|
-
else
|
|
1579
|
+
else {
|
|
1578
1580
|
jsonpath__namespace.value(this.data, scope.replace('.properties', ''), value);
|
|
1581
|
+
this.values[i][j] = value;
|
|
1582
|
+
}
|
|
1579
1583
|
break;
|
|
1580
1584
|
default:
|
|
1581
1585
|
this.values[i][j] = value;
|