@wavemaker/app-ng-runtime 11.3.6-next.25087 → 11.4.0-next.140411
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/base/bundles/index.umd.js +0 -16
- app-ng-runtime/components/base/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/base/esm2015/public_api.js +2 -2
- app-ng-runtime/components/base/esm2015/utils/widget-utils.js +1 -16
- app-ng-runtime/components/base/fesm2015/index.js +1 -16
- app-ng-runtime/components/base/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/base/index.metadata.json +1 -1
- app-ng-runtime/components/base/public_api.d.ts +1 -1
- app-ng-runtime/components/base/utils/widget-utils.d.ts +0 -7
- app-ng-runtime/components/data/list/bundles/index.umd.js +1 -1
- app-ng-runtime/components/data/list/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/data/list/esm2015/list.component.js +2 -2
- app-ng-runtime/components/data/list/fesm2015/index.js +1 -1
- app-ng-runtime/components/data/list/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/data/pagination/bundles/index.umd.js +1 -1
- app-ng-runtime/components/data/pagination/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/data/pagination/esm2015/pagination.component.js +2 -2
- app-ng-runtime/components/data/pagination/fesm2015/index.js +1 -1
- app-ng-runtime/components/data/pagination/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/data/table/bundles/index.umd.js +8 -46
- app-ng-runtime/components/data/table/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/data/table/esm2015/table.component.js +9 -45
- app-ng-runtime/components/data/table/esm2015/table.props.js +1 -3
- app-ng-runtime/components/data/table/fesm2015/index.js +8 -46
- 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/components/data/table/table.component.d.ts +0 -9
- app-ng-runtime/components/input/epoch/base-date-time.component.d.ts +0 -1
- app-ng-runtime/components/input/epoch/bundles/index.umd.js +6 -12
- app-ng-runtime/components/input/epoch/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/input/epoch/esm2015/base-date-time.component.js +7 -13
- app-ng-runtime/components/input/epoch/fesm2015/index.js +6 -12
- app-ng-runtime/components/input/epoch/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/input/epoch/index.metadata.json +1 -1
- app-ng-runtime/components/navigation/menu/bundles/index.umd.js +19 -25
- app-ng-runtime/components/navigation/menu/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/navigation/menu/esm2015/menu-dropdown-item/menu-dropdown-item.component.js +5 -15
- app-ng-runtime/components/navigation/menu/esm2015/menu.component.js +19 -14
- app-ng-runtime/components/navigation/menu/fesm2015/index.js +20 -25
- app-ng-runtime/components/navigation/menu/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/navigation/menu/index.metadata.json +1 -1
- app-ng-runtime/components/navigation/menu/menu-dropdown-item/menu-dropdown-item.component.d.ts +4 -7
- app-ng-runtime/components/navigation/menu/menu.component.d.ts +7 -3
- app-ng-runtime/core/bundles/index.umd.js +1 -7
- app-ng-runtime/core/bundles/index.umd.js.map +1 -1
- app-ng-runtime/core/esm2015/services/pagination.service.js +2 -8
- app-ng-runtime/core/fesm2015/index.js +1 -7
- app-ng-runtime/core/fesm2015/index.js.map +1 -1
- app-ng-runtime/package.json +1 -1
- app-ng-runtime/scripts/datatable/datatable.js +13 -63
app-ng-runtime/package.json
CHANGED
|
@@ -534,18 +534,11 @@ $.widget('wm.datatable', {
|
|
|
534
534
|
|
|
535
535
|
/* Returns the tbody markup. */
|
|
536
536
|
_getGridTemplate: function () {
|
|
537
|
-
|
|
538
537
|
var self = this, preparedData,$tbody,pageStartIndex = self.getPageStartIndex(),
|
|
539
538
|
startRowIndex = self.options.startRowIndex,
|
|
540
539
|
isScrollorOnDemand = self.options.isNavTypeScrollOrOndemand();
|
|
541
540
|
if(isScrollorOnDemand) {
|
|
542
541
|
$tbody = this.gridElement;
|
|
543
|
-
if(this.renderTableOnViewLess) {
|
|
544
|
-
$tbody = this.gridElement.empty();
|
|
545
|
-
this.hideLoadingIndicator();
|
|
546
|
-
// this.addNavigationControls();
|
|
547
|
-
this.renderTableOnViewLess = false;
|
|
548
|
-
}
|
|
549
542
|
} else {
|
|
550
543
|
$tbody = this.gridElement.empty();
|
|
551
544
|
}
|
|
@@ -1108,52 +1101,25 @@ $.widget('wm.datatable', {
|
|
|
1108
1101
|
},
|
|
1109
1102
|
|
|
1110
1103
|
/* Inserts a load more button at the end of the table when the pagination selected is on demand */
|
|
1111
|
-
addLoadMoreBtn : function (onDemandMsg, loadingdatamsg, cb
|
|
1104
|
+
addLoadMoreBtn : function (onDemandMsg, loadingdatamsg, cb) {
|
|
1112
1105
|
// Show Load more button only if it not the last page
|
|
1113
|
-
|
|
1114
|
-
if (!this.options.isLastPage || infScroll) {
|
|
1106
|
+
if (!this.options.isLastPage) {
|
|
1115
1107
|
var self = this;
|
|
1116
1108
|
var $parenEl = $('<div class="on-demand-datagrid"><a class="app-button btn btn-block on-demand-load-btn"></a></div>');
|
|
1117
|
-
$btnEl = $parenEl.find('a');
|
|
1109
|
+
var $btnEl = $parenEl.find('a');
|
|
1118
1110
|
$btnEl.append(onDemandMsg);
|
|
1119
1111
|
// Adding load more button in case of on demand pagination
|
|
1120
1112
|
this.element.find('.app-grid-header-inner').append($parenEl);
|
|
1121
|
-
if(infScroll) {
|
|
1122
|
-
if(this.element.find('.on-demand-load-btn').length) {
|
|
1123
|
-
this.element.find('.on-demand-load-btn').text(this.options.viewlessmessage);
|
|
1124
|
-
}
|
|
1125
|
-
}
|
|
1126
|
-
|
|
1127
1113
|
// Adding click event to the button
|
|
1128
1114
|
$btnEl.on('click', function (e) {
|
|
1129
|
-
// when the button is clicked, hide the button and show loading indicator
|
|
1130
|
-
var lastPage = (self.options.getCurrentPage() == self.options.getPageCount());
|
|
1131
|
-
if(!lastPage) {
|
|
1132
|
-
self.showLoadingIndicator(loadingdatamsg, false);
|
|
1133
|
-
}
|
|
1134
|
-
if(!self.options.showviewlessbutton){
|
|
1135
|
-
$btnEl.hide();
|
|
1136
|
-
}
|
|
1137
|
-
if(infScroll) {
|
|
1138
|
-
if(lastPage) {
|
|
1139
|
-
self.element.find('.on-demand-datagrid').remove();
|
|
1140
|
-
}
|
|
1141
|
-
}
|
|
1142
|
-
// Fix for [WMS-23839] refresh data when clicked on View less button
|
|
1143
|
-
if (lastPage && self.options.showviewlessbutton) {
|
|
1144
|
-
$btnEl.hide();
|
|
1145
|
-
self.renderTableOnViewLess = true;
|
|
1146
|
-
self.renderPaginationOnViewLess = true;
|
|
1147
|
-
self.options.enableNavigation();
|
|
1148
|
-
self._renderGrid();
|
|
1149
|
-
}
|
|
1150
1115
|
if (cb && typeof cb === 'function') {
|
|
1116
|
+
// when the button is clicked, hide the button and show loading indicator
|
|
1117
|
+
$btnEl.hide();
|
|
1118
|
+
self.showLoadingIndicator(loadingdatamsg, false);
|
|
1151
1119
|
cb(e);
|
|
1152
1120
|
}
|
|
1153
|
-
|
|
1154
1121
|
});
|
|
1155
1122
|
}
|
|
1156
|
-
|
|
1157
1123
|
},
|
|
1158
1124
|
|
|
1159
1125
|
/* Shows loading indicator when clicked on load more button or in case of infinite scroll event is triggered */
|
|
@@ -1186,19 +1152,10 @@ $.widget('wm.datatable', {
|
|
|
1186
1152
|
if (!showLoadBtn && !infScroll) {
|
|
1187
1153
|
// In case of on demand pagination, when the next page is not disabled hide the individual elements
|
|
1188
1154
|
this.element.find('.loading-data-msg').hide();
|
|
1189
|
-
this.element.find('.on-demand-load-btn').text(this.options.ondemandmessage);
|
|
1190
1155
|
this.element.find('.on-demand-load-btn').show();
|
|
1191
|
-
} else if((this.options.getCurrentPage() == this.options.getPageCount()) && this.options.showviewlessbutton) {
|
|
1192
|
-
this.element.find('.on-demand-load-btn').show().text(this.options.viewlessmessage);
|
|
1193
|
-
this.element.find('.loading-data-msg').hide();
|
|
1194
|
-
if(infScroll) {
|
|
1195
|
-
if(!this.element.find('.on-demand-load-btn').length) {
|
|
1196
|
-
this.options.addLoadMoreBtn();
|
|
1197
|
-
}
|
|
1198
|
-
this.element.find('.loading-data-msg').hide();
|
|
1199
|
-
}
|
|
1200
1156
|
} else {
|
|
1201
|
-
|
|
1157
|
+
// In case of infinite scroll or when next page is disable hide the grid element which is the parent. If we don't the parent ele border will be shown
|
|
1158
|
+
this.element.find('.on-demand-datagrid').hide();
|
|
1202
1159
|
}
|
|
1203
1160
|
},
|
|
1204
1161
|
|
|
@@ -3128,7 +3085,6 @@ $.widget('wm.datatable', {
|
|
|
3128
3085
|
// initally append tbody to gridElement
|
|
3129
3086
|
this.gridElement.append($htm);
|
|
3130
3087
|
}
|
|
3131
|
-
|
|
3132
3088
|
} else {
|
|
3133
3089
|
var templates = this._getGridTemplate();
|
|
3134
3090
|
$htm = $(templates);
|
|
@@ -3140,9 +3096,7 @@ $.widget('wm.datatable', {
|
|
|
3140
3096
|
if (this.options.summaryRow) {
|
|
3141
3097
|
var $summaryRowHtm = $(this._getSummaryRowTemplate());
|
|
3142
3098
|
this.tableContainer.find('tfoot').remove();
|
|
3143
|
-
|
|
3144
|
-
this.tableContainer.append($summaryRowHtm);
|
|
3145
|
-
}
|
|
3099
|
+
this.tableContainer.append($summaryRowHtm);
|
|
3146
3100
|
}
|
|
3147
3101
|
// Set proper data status messages after the grid is rendered.
|
|
3148
3102
|
if (!this.options.data.length && this.dataStatus.state === 'nodata') {
|
|
@@ -3153,7 +3107,7 @@ $.widget('wm.datatable', {
|
|
|
3153
3107
|
this.setStatus(this.dataStatus.state, this.dataStatus.message, isCreated);
|
|
3154
3108
|
}
|
|
3155
3109
|
this.gridBody = this.gridElement.find('tbody');
|
|
3156
|
-
this.gridFooter = this.
|
|
3110
|
+
this.gridFooter = this.gridElement.find('tfoot');
|
|
3157
3111
|
this._findAndReplaceCompiledTemplates();
|
|
3158
3112
|
this.options.clearRowActions();
|
|
3159
3113
|
// attach event handlers
|
|
@@ -3241,16 +3195,13 @@ $.widget('wm.datatable', {
|
|
|
3241
3195
|
this._toggleSpacingClasses('condensed');
|
|
3242
3196
|
}
|
|
3243
3197
|
this._renderGrid(isCreated);
|
|
3244
|
-
this.addNavigationControls();
|
|
3245
|
-
},
|
|
3246
|
-
addNavigationControls: function() {
|
|
3247
3198
|
/**
|
|
3248
3199
|
* bind on demand / scroll events to the table in case of dynamictable in render fn
|
|
3249
3200
|
* Render is called everytime when there is a change in dataset and the previously binded events are lost
|
|
3250
3201
|
*/
|
|
3251
3202
|
if (this.options.isdynamictable) {
|
|
3252
|
-
|
|
3253
|
-
if (this.options.navigation === 'On-Demand' &&
|
|
3203
|
+
this.element.find('.on-demand-datagrid').remove();
|
|
3204
|
+
if (this.options.navigation === 'On-Demand' && !this.element.find('.on-demand-datagrid').length) {
|
|
3254
3205
|
this.options.addLoadMoreBtn();
|
|
3255
3206
|
} else if (this.options.navigation === 'Scroll') {
|
|
3256
3207
|
this.options.bindScrollEvt();
|
|
@@ -3270,8 +3221,7 @@ $.widget('wm.datatable', {
|
|
|
3270
3221
|
if (state === 'ready') {
|
|
3271
3222
|
this.dataStatusContainer.hide();
|
|
3272
3223
|
} else {
|
|
3273
|
-
|
|
3274
|
-
if (this.options.isNavTypeScrollOrOndemand() && (state === 'nodata' || ((this.options.getCurrentPage() == this.options.getPageCount()) && !this.options.showviewlessbutton))) {
|
|
3224
|
+
if (this.options.isNavTypeScrollOrOndemand() && (state === 'nodata' || this.options.isLastPage)) {
|
|
3275
3225
|
this.element.find('.on-demand-datagrid a').hide();
|
|
3276
3226
|
}
|
|
3277
3227
|
this.dataStatusContainer.show();
|