@wavemaker/app-ng-runtime 11.5.2-rc.5436 → 11.5.3-next.141099
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.
- app-ng-runtime/build-task/bundles/index.umd.js +1 -8
- app-ng-runtime/build-task/esm2020/data/form/form.build.mjs +2 -9
- app-ng-runtime/build-task/fesm2015/index.mjs +1 -8
- app-ng-runtime/build-task/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/build-task/fesm2020/index.mjs +1 -8
- app-ng-runtime/build-task/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/base/bundles/index.umd.js +58 -23
- app-ng-runtime/components/base/esm2020/widgets/common/base/base-field-validations.mjs +9 -12
- app-ng-runtime/components/base/esm2020/widgets/common/base/base.component.mjs +39 -13
- app-ng-runtime/components/base/esm2020/widgets/common/lazy-load/lazy-load.directive.mjs +16 -3
- app-ng-runtime/components/base/fesm2015/index.mjs +60 -24
- app-ng-runtime/components/base/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/base/fesm2020/index.mjs +60 -24
- app-ng-runtime/components/base/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/base/widgets/common/base/base-field-validations.d.ts +0 -1
- app-ng-runtime/components/base/widgets/common/base/base.component.d.ts +1 -0
- app-ng-runtime/components/data/form/bundles/index.umd.js +1 -1
- app-ng-runtime/components/data/form/esm2020/form.component.mjs +2 -2
- app-ng-runtime/components/data/form/fesm2015/index.mjs +1 -1
- app-ng-runtime/components/data/form/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/data/form/fesm2020/index.mjs +1 -1
- app-ng-runtime/components/data/form/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/design-dialog/bundles/index.umd.js +0 -1
- app-ng-runtime/components/dialogs/design-dialog/dialog.component.d.ts +0 -1
- app-ng-runtime/components/dialogs/design-dialog/esm2020/dialog.component.mjs +1 -2
- app-ng-runtime/components/dialogs/design-dialog/fesm2015/index.mjs +0 -1
- app-ng-runtime/components/dialogs/design-dialog/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/design-dialog/fesm2020/index.mjs +0 -1
- app-ng-runtime/components/dialogs/design-dialog/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/bundles/index.umd.js +10 -18
- app-ng-runtime/components/input/default/esm2020/base-form-custom.component.mjs +2 -6
- app-ng-runtime/components/input/default/esm2020/select/select.component.mjs +1 -12
- app-ng-runtime/components/input/default/esm2020/text/locale/number-locale.mjs +10 -3
- app-ng-runtime/components/input/default/fesm2015/index.mjs +10 -18
- app-ng-runtime/components/input/default/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/fesm2020/index.mjs +10 -18
- app-ng-runtime/components/input/default/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/input/epoch/bundles/index.umd.js +11 -8
- app-ng-runtime/components/input/epoch/esm2020/base-date-time.component.mjs +5 -8
- app-ng-runtime/components/input/epoch/esm2020/date/date.component.mjs +8 -2
- app-ng-runtime/components/input/epoch/fesm2015/index.mjs +11 -8
- app-ng-runtime/components/input/epoch/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/epoch/fesm2020/index.mjs +11 -8
- app-ng-runtime/components/input/epoch/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/menu/bundles/index.umd.js +9 -12
- app-ng-runtime/components/navigation/menu/esm2020/menu-dropdown-item/menu-dropdown-item.component.mjs +5 -6
- app-ng-runtime/components/navigation/menu/esm2020/menu.component.mjs +5 -6
- app-ng-runtime/components/navigation/menu/esm2020/nav/nav.component.mjs +5 -6
- app-ng-runtime/components/navigation/menu/fesm2015/index.mjs +9 -12
- app-ng-runtime/components/navigation/menu/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/menu/fesm2020/index.mjs +9 -12
- app-ng-runtime/components/navigation/menu/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/menu/menu-dropdown-item/menu-dropdown-item.component.d.ts +3 -4
- app-ng-runtime/components/navigation/menu/menu.component.d.ts +3 -4
- app-ng-runtime/components/navigation/menu/nav/nav.component.d.ts +3 -4
- app-ng-runtime/core/bundles/index.umd.js +1 -43
- app-ng-runtime/core/esm2020/public_api.mjs +2 -2
- app-ng-runtime/core/esm2020/utils/dom.mjs +1 -6
- app-ng-runtime/core/esm2020/utils/utils.mjs +1 -35
- app-ng-runtime/core/esm2020/utils/watcher.mjs +2 -2
- app-ng-runtime/core/fesm2015/index.mjs +2 -43
- app-ng-runtime/core/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/core/fesm2020/index.mjs +2 -43
- app-ng-runtime/core/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/core/public_api.d.ts +1 -1
- app-ng-runtime/core/utils/utils.d.ts +0 -2
- app-ng-runtime/package.json +1 -1
- app-ng-runtime/runtime/base/bundles/index.umd.js +0 -4
- app-ng-runtime/runtime/base/esm2020/services/dynamic-component-ref-provider.service.mjs +1 -4
- app-ng-runtime/runtime/base/esm2020/util/fragment-monitor.mjs +1 -2
- app-ng-runtime/runtime/base/fesm2015/index.mjs +0 -4
- app-ng-runtime/runtime/base/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/runtime/base/fesm2020/index.mjs +0 -4
- app-ng-runtime/runtime/base/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/runtime/base/util/fragment-monitor.d.ts +0 -1
- app-ng-runtime/runtime/dynamic/bundles/index.umd.js +0 -1
- app-ng-runtime/runtime/dynamic/esm2020/app/services/component-ref-provider.service.mjs +1 -2
- app-ng-runtime/runtime/dynamic/fesm2015/index.mjs +0 -1
- app-ng-runtime/runtime/dynamic/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/runtime/dynamic/fesm2020/index.mjs +0 -1
- app-ng-runtime/runtime/dynamic/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/variables/bundles/index.umd.js +1 -2
- app-ng-runtime/variables/esm2020/service/variables.service.mjs +2 -3
- app-ng-runtime/variables/fesm2015/index.mjs +1 -2
- app-ng-runtime/variables/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/variables/fesm2020/index.mjs +1 -2
- app-ng-runtime/variables/fesm2020/index.mjs.map +1 -1
|
@@ -315,13 +315,9 @@ class BaseFormCustomComponent extends BaseFormComponent {
|
|
|
315
315
|
invokeOnChange(value, $event, valid) {
|
|
316
316
|
// let the angular know about the change
|
|
317
317
|
this._onChange(value);
|
|
318
|
-
if (
|
|
318
|
+
if (valid) {
|
|
319
319
|
super.invokeOnChange(value, $event);
|
|
320
320
|
}
|
|
321
|
-
else if (valid) {
|
|
322
|
-
// Fix for [WMS-24869]: updating PrevDatavalue when there is a default value for the widget.
|
|
323
|
-
this.updatePrevDatavalue(value);
|
|
324
|
-
}
|
|
325
321
|
}
|
|
326
322
|
invokeOnTouched($event) {
|
|
327
323
|
this._onTouched();
|
|
@@ -1422,9 +1418,16 @@ class NumberLocale extends BaseInput {
|
|
|
1422
1418
|
* @returns {number}
|
|
1423
1419
|
*/
|
|
1424
1420
|
parseNumber(val) {
|
|
1425
|
-
// WMS-22179: split number based on the decimal
|
|
1421
|
+
// WMS-22179: split number based on the decimal seperator in the val
|
|
1422
|
+
let seperator;
|
|
1423
|
+
if (val.indexOf(this.DECIMAL) > -1) {
|
|
1424
|
+
seperator = this.DECIMAL;
|
|
1425
|
+
}
|
|
1426
|
+
else {
|
|
1427
|
+
seperator = '.';
|
|
1428
|
+
}
|
|
1426
1429
|
// splits string into two parts. decimal and number.
|
|
1427
|
-
const parts = val.split(
|
|
1430
|
+
const parts = val.split(seperator);
|
|
1428
1431
|
if (!parts.length) {
|
|
1429
1432
|
return null;
|
|
1430
1433
|
}
|
|
@@ -2145,17 +2148,6 @@ class SelectComponent extends DatasetAwareFormComponent {
|
|
|
2145
2148
|
return;
|
|
2146
2149
|
}
|
|
2147
2150
|
if (key === 'class' || key === 'tabindex') {
|
|
2148
|
-
if (key === 'class') {
|
|
2149
|
-
// After NG15 upgrade ng-invalid class is added even the field is valid, so we are removing the ng-invalid manually
|
|
2150
|
-
const isNgUntouchedValid = this.selectEl.nativeElement.classList.contains('ng-untouched') && this.selectEl.nativeElement.classList.contains('ng-valid');
|
|
2151
|
-
if (isNgUntouchedValid && nv.includes('ng-untouched') && nv.includes('ng-invalid')) {
|
|
2152
|
-
setTimeout(() => {
|
|
2153
|
-
if (this.selectEl.nativeElement.classList.contains('ng-untouched') && this.selectEl.nativeElement.classList.contains('ng-valid') && this.selectEl.nativeElement.classList.contains('ng-invalid')) {
|
|
2154
|
-
this.selectEl.nativeElement.classList.remove('ng-invalid');
|
|
2155
|
-
}
|
|
2156
|
-
});
|
|
2157
|
-
}
|
|
2158
|
-
}
|
|
2159
2151
|
return;
|
|
2160
2152
|
}
|
|
2161
2153
|
else if (key === 'readonly') {
|