@wavemaker/app-ng-runtime 11.3.4-rc.5285 → 11.3.4-rc.5292
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/components/data/table/bundles/index.umd.js +11 -4
- app-ng-runtime/components/data/table/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/data/table/esm2015/table.component.js +12 -5
- app-ng-runtime/components/data/table/fesm2015/index.js +11 -4
- app-ng-runtime/components/data/table/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/data/table/index.metadata.json +1 -1
- app-ng-runtime/package.json +1 -1
|
@@ -457,6 +457,7 @@
|
|
|
457
457
|
_this.rowDef = {};
|
|
458
458
|
_this.rowInstance = {};
|
|
459
459
|
_this.fullFieldDefs = [];
|
|
460
|
+
_this.variableInflight = true;
|
|
460
461
|
_this.applyProps = new Map();
|
|
461
462
|
_this.redraw = _.debounce(_this._redraw, 150);
|
|
462
463
|
_this.debouncedHandleLoading = _.debounce(_this.handleLoading, 350);
|
|
@@ -1135,6 +1136,10 @@
|
|
|
1135
1136
|
set: function (newValue) {
|
|
1136
1137
|
var _a;
|
|
1137
1138
|
this.isDataLoading = false;
|
|
1139
|
+
// Fix for [WMS-24012]: hide no datafound msg when variableInflight is true and dataset is empty
|
|
1140
|
+
if (this.variableInflight && _.isEmpty(newValue)) {
|
|
1141
|
+
return;
|
|
1142
|
+
}
|
|
1138
1143
|
this.variableInflight = false;
|
|
1139
1144
|
if (this.gridOptions.isNavTypeScrollOrOndemand()) {
|
|
1140
1145
|
// update the _gridData field with the next set of items and modify the current page
|
|
@@ -1605,6 +1610,10 @@
|
|
|
1605
1610
|
};
|
|
1606
1611
|
TableComponent.prototype.setGridData = function (serverData) {
|
|
1607
1612
|
var data = this.filternullrecords ? this.removeEmptyRecords(serverData) : serverData;
|
|
1613
|
+
// fix for [WMS-24012] set variableinflight flag to false for static variables
|
|
1614
|
+
if (_.get(this.datasource, 'category') === 'wm.Variable') {
|
|
1615
|
+
this.variableInflight = false;
|
|
1616
|
+
}
|
|
1608
1617
|
if (!this.variableInflight) {
|
|
1609
1618
|
if (data && data.length === 0) {
|
|
1610
1619
|
this.callDataGridMethod('setStatus', 'nodata', this.nodatamessage);
|
|
@@ -1927,10 +1936,8 @@
|
|
|
1927
1936
|
this.variableInflight = false;
|
|
1928
1937
|
this.callDataGridMethod('setStatus', 'nodata', this.nodatamessage);
|
|
1929
1938
|
}
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
this.onDataSourceChange();
|
|
1933
|
-
}
|
|
1939
|
+
this.watchVariableDataSet(this.dataset);
|
|
1940
|
+
this.onDataSourceChange();
|
|
1934
1941
|
break;
|
|
1935
1942
|
case 'dataset':
|
|
1936
1943
|
if (this.gridOptions.isNavTypeScrollOrOndemand() && this.gridOptions.getCurrentPage() === 1) {
|