sf-crud 13.2.42 → 13.2.43
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/fesm2022/sf-crud.mjs
CHANGED
|
@@ -1892,6 +1892,7 @@ class Shema {
|
|
|
1892
1892
|
eraseOnDisable;
|
|
1893
1893
|
dependency;
|
|
1894
1894
|
step;
|
|
1895
|
+
sendFormatDate;
|
|
1895
1896
|
}
|
|
1896
1897
|
class ShemaConfig {
|
|
1897
1898
|
calendar;
|
|
@@ -2369,7 +2370,7 @@ class ControlComponent {
|
|
|
2369
2370
|
sendValue() {
|
|
2370
2371
|
if (this.control.type == "string" && this.value == "" && this.control.config?.allowEmpty == false)
|
|
2371
2372
|
this.value = null;
|
|
2372
|
-
if (this.control.type == "date" && this.control.formatMoment) {
|
|
2373
|
+
if (this.control.type == "date" && this.control.formatMoment && this.control.sendFormatDate) {
|
|
2373
2374
|
const valueToFormat = this.value ? moment(this.value).format(this.control.formatMoment) : null;
|
|
2374
2375
|
this.setValue.emit(valueToFormat);
|
|
2375
2376
|
return;
|