@wavemaker/app-runtime-wm-build 11.4.3-next.25780 → 11.4.3-next.26202
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.
|
@@ -2719,7 +2719,7 @@
|
|
|
2719
2719
|
config = {};
|
|
2720
2720
|
}
|
|
2721
2721
|
if (expr.indexOf("[$i]") !== -1) {
|
|
2722
|
-
var watchInfo = getUpdatedWatcInfo(expr, config && config.arrayType, listener);
|
|
2722
|
+
var watchInfo = getUpdatedWatcInfo(expr, config && (config.arrayType || config.isList), listener);
|
|
2723
2723
|
expr = watchInfo.expr;
|
|
2724
2724
|
listener = watchInfo.listener;
|
|
2725
2725
|
}
|
|
@@ -12481,7 +12481,7 @@
|
|
|
12481
12481
|
if (this.widgetContext.ngform) {
|
|
12482
12482
|
this.widgetControl.setValidators(this.instance._validators);
|
|
12483
12483
|
var opt = {};
|
|
12484
|
-
if (this.formwidget && this.instance.value === this.formwidget.prevDatavalue) {
|
|
12484
|
+
if (this.formwidget && (this.instance.value === this.formwidget.prevDatavalue || this.isNullOrEmptyOrFalsy(this.instance.value))) {
|
|
12485
12485
|
opt["emitEvent"] = false;
|
|
12486
12486
|
}
|
|
12487
12487
|
this.widgetControl.updateValueAndValidity(opt);
|
|
@@ -12534,7 +12534,7 @@
|
|
|
12534
12534
|
this.widgetControl.setAsyncValidators([ this._asyncValidatorFn() ]);
|
|
12535
12535
|
if (this.widgetContext.ngform.touched) {
|
|
12536
12536
|
var opt = {};
|
|
12537
|
-
if (this.formwidget && this.instance.value === this.formwidget.prevDatavalue) {
|
|
12537
|
+
if (this.formwidget && (this.instance.value === this.formwidget.prevDatavalue || this.isNullOrEmptyOrFalsy(this.instance.value))) {
|
|
12538
12538
|
opt["emitEvent"] = false;
|
|
12539
12539
|
}
|
|
12540
12540
|
this.widgetControl.updateValueAndValidity(opt);
|
|
@@ -12595,7 +12595,7 @@
|
|
|
12595
12595
|
this.applyDefaultValidators();
|
|
12596
12596
|
if (this._asyncValidatorFn) {
|
|
12597
12597
|
var opt = {};
|
|
12598
|
-
if (this.formwidget && this.instance.value === this.formwidget.prevDatavalue) {
|
|
12598
|
+
if (this.formwidget && (this.instance.value === this.formwidget.prevDatavalue || this.isNullOrEmptyOrFalsy(this.instance.value))) {
|
|
12599
12599
|
opt["emitEvent"] = false;
|
|
12600
12600
|
}
|
|
12601
12601
|
this.widgetControl.setAsyncValidators([ this._asyncValidatorFn() ]);
|
|
@@ -12616,10 +12616,13 @@
|
|
|
12616
12616
|
_this.applyDefaultValidators();
|
|
12617
12617
|
}), watchName));
|
|
12618
12618
|
};
|
|
12619
|
+
BaseFieldValidations.prototype.isNullOrEmptyOrFalsy = function(value) {
|
|
12620
|
+
return _.isEmpty(value);
|
|
12621
|
+
};
|
|
12619
12622
|
BaseFieldValidations.prototype.applyDefaultValidators = function() {
|
|
12620
12623
|
var validators = this.getDefaultValidators();
|
|
12621
12624
|
var opt = {};
|
|
12622
|
-
if (this.formwidget && this.instance.value === this.formwidget.prevDatavalue) {
|
|
12625
|
+
if (this.formwidget && (this.instance.value === this.formwidget.prevDatavalue || this.isNullOrEmptyOrFalsy(this.instance.value))) {
|
|
12623
12626
|
opt["emitEvent"] = false;
|
|
12624
12627
|
}
|
|
12625
12628
|
this.widgetControl.setValidators(_.concat(this._syncValidators || [], validators));
|
|
@@ -17083,7 +17086,7 @@
|
|
|
17083
17086
|
};
|
|
17084
17087
|
BaseFormCustomComponent.prototype.invokeOnChange = function(value, $event, valid) {
|
|
17085
17088
|
this._onChange(value);
|
|
17086
|
-
if (
|
|
17089
|
+
if ($event) {
|
|
17087
17090
|
_super.prototype.invokeOnChange.call(this, value, $event);
|
|
17088
17091
|
}
|
|
17089
17092
|
};
|
|
@@ -28251,8 +28254,6 @@
|
|
|
28251
28254
|
if (isNativePicker === void 0) {
|
|
28252
28255
|
isNativePicker = false;
|
|
28253
28256
|
}
|
|
28254
|
-
this.datepattern = this.appDefaults.dateFormat || core$1.getDisplayDateTimeFormat(core$1.FormWidgetType.DATE);
|
|
28255
|
-
this.updateFormat("datepattern");
|
|
28256
28257
|
if (this.isEnterPressedOnDateInput) {
|
|
28257
28258
|
this.isEnterPressedOnDateInput = false;
|
|
28258
28259
|
return;
|
|
@@ -28358,8 +28359,6 @@
|
|
|
28358
28359
|
}), 350);
|
|
28359
28360
|
};
|
|
28360
28361
|
DateComponent.prototype.onDisplayKeydown = function(event) {
|
|
28361
|
-
this.datepattern = this.appDefaults.dateFormat || core$1.getDisplayDateTimeFormat(core$1.FormWidgetType.DATE);
|
|
28362
|
-
this.updateFormat("datepattern");
|
|
28363
28362
|
if (this.isDropDownDisplayEnabledOnInput(this.showdropdownon)) {
|
|
28364
28363
|
event.stopPropagation();
|
|
28365
28364
|
var action = this.keyEventPlugin.constructor.getEventFullKey(event);
|
|
@@ -28392,8 +28391,6 @@
|
|
|
28392
28391
|
}
|
|
28393
28392
|
};
|
|
28394
28393
|
DateComponent.prototype.onDateChange = function(newVal) {
|
|
28395
|
-
this.datepattern = this.appDefaults.dateFormat || core$1.getDisplayDateTimeFormat(core$1.FormWidgetType.DATE);
|
|
28396
|
-
this.updateFormat("datepattern");
|
|
28397
28394
|
if (this._bsDefaultLoadCheck) {
|
|
28398
28395
|
this._bsDefaultLoadCheck = false;
|
|
28399
28396
|
return;
|
|
@@ -73241,9 +73238,10 @@
|
|
|
73241
73238
|
var v = _.isArray(d.value) ? d.value[0] : d.value;
|
|
73242
73239
|
if (v) {
|
|
73243
73240
|
if (v.startsWith && v.startsWith("bind:")) {
|
|
73244
|
-
|
|
73241
|
+
var watchExpression = core.$watch(v.replace("bind:", ""), scope, {}, variable.invokeOnParamChange.bind(variable, d), undefined, undefined, d, (function() {
|
|
73245
73242
|
return variable.isMuted;
|
|
73246
73243
|
}));
|
|
73244
|
+
v = scope.registerDestroyListener ? scope.registerDestroyListener(watchExpression) : watchExpression;
|
|
73247
73245
|
} else if (!_.isUndefined(d.value)) {
|
|
73248
73246
|
variables.setValueToNode(d.target, d, root, variable, d.value, true);
|
|
73249
73247
|
if (runMode && root !== targetNodeKey) {
|