@wavemaker/app-ng-runtime 11.4.0-next.26251 → 11.4.0-next.27501
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 -1
- app-ng-runtime/build-task/bundles/index.umd.js.map +1 -1
- app-ng-runtime/build-task/esm2015/data/form/form-field/form-field.build.js +2 -2
- app-ng-runtime/build-task/fesm2015/index.js +1 -1
- app-ng-runtime/build-task/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/basic/rich-text-editor/bundles/index.umd.js +2 -2
- app-ng-runtime/components/basic/rich-text-editor/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/basic/rich-text-editor/esm2015/rich-text-editor.component.js +3 -3
- app-ng-runtime/components/basic/rich-text-editor/fesm2015/index.js +2 -2
- app-ng-runtime/components/basic/rich-text-editor/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/data/list/bundles/index.umd.js +11 -5
- app-ng-runtime/components/data/list/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/data/list/esm2015/list.component.js +10 -4
- app-ng-runtime/components/data/list/fesm2015/index.js +9 -3
- app-ng-runtime/components/data/list/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/data/table/bundles/index.umd.js +2 -1
- app-ng-runtime/components/data/table/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/data/table/esm2015/table-filter.directive.js +3 -2
- app-ng-runtime/components/data/table/fesm2015/index.js +2 -1
- app-ng-runtime/components/data/table/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/input/epoch/base-date-time.component.d.ts +4 -0
- app-ng-runtime/components/input/epoch/bundles/index.umd.js +25 -3
- 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 +26 -3
- app-ng-runtime/components/input/epoch/esm2015/date/date.component.js +1 -2
- app-ng-runtime/components/input/epoch/fesm2015/index.js +25 -3
- 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/mobile/core/bundles/index.umd.js +2 -1
- app-ng-runtime/mobile/core/bundles/index.umd.js.map +1 -1
- app-ng-runtime/mobile/core/esm2015/services/device.service.js +3 -2
- app-ng-runtime/mobile/core/fesm2015/index.js +2 -1
- app-ng-runtime/mobile/core/fesm2015/index.js.map +1 -1
- app-ng-runtime/mobile/runtime-dynamic/bundles/index.umd.js +3 -2
- app-ng-runtime/mobile/runtime-dynamic/bundles/index.umd.js.map +1 -1
- app-ng-runtime/mobile/runtime-dynamic/esm2015/services/live-sync.service.js +4 -3
- app-ng-runtime/mobile/runtime-dynamic/fesm2015/index.js +3 -2
- app-ng-runtime/mobile/runtime-dynamic/fesm2015/index.js.map +1 -1
- app-ng-runtime/package.json +1 -1
- app-ng-runtime/runtime/base/bundles/index.umd.js +1 -0
- app-ng-runtime/runtime/base/bundles/index.umd.js.map +1 -1
- app-ng-runtime/runtime/base/esm2015/services/prefab-manager.service.js +2 -1
- app-ng-runtime/runtime/base/fesm2015/index.js +1 -0
- app-ng-runtime/runtime/base/fesm2015/index.js.map +1 -1
- app-ng-runtime/scripts/datatable/datatable.js +31 -12
- app-ng-runtime/scripts/summernote/dist/summernote-lite.min.js +3 -3
- app-ng-runtime/variables/bundles/index.umd.js +5 -12
- app-ng-runtime/variables/bundles/index.umd.js.map +1 -1
- app-ng-runtime/variables/esm2015/constants/variables.constants.js +3 -9
- app-ng-runtime/variables/fesm2015/index.js +2 -9
- app-ng-runtime/variables/fesm2015/index.js.map +1 -1
- app-ng-runtime/variables/index.metadata.json +1 -1
|
@@ -534,14 +534,13 @@ $.widget('wm.datatable', {
|
|
|
534
534
|
|
|
535
535
|
/* Returns the tbody markup. */
|
|
536
536
|
_getGridTemplate: function () {
|
|
537
|
-
var self = this, preparedData,$tbody,
|
|
537
|
+
var self = this, preparedData,$tbody,pageStartIndex = self.getPageStartIndex(),
|
|
538
538
|
startRowIndex = self.options.startRowIndex,
|
|
539
539
|
isScrollorOnDemand = self.options.isNavTypeScrollOrOndemand();
|
|
540
540
|
if(isScrollorOnDemand) {
|
|
541
541
|
$tbody = this.gridElement;
|
|
542
542
|
} else {
|
|
543
|
-
|
|
544
|
-
$tbody = tbodyExists > 0 ? this.gridElement.find('tbody:first') : this.gridElement.empty();
|
|
543
|
+
$tbody = this.gridElement.empty();
|
|
545
544
|
}
|
|
546
545
|
|
|
547
546
|
if(isScrollorOnDemand) {
|
|
@@ -1234,6 +1233,7 @@ $.widget('wm.datatable', {
|
|
|
1234
1233
|
colDef = self.preparedHeaderData[id],
|
|
1235
1234
|
$headerCell = self.gridContainer.find('th[data-col-id="' + id + '"]'),
|
|
1236
1235
|
$tdCell = self.gridElement.find('td.app-datagrid-cell[data-col-id="' + id + '"]'),
|
|
1236
|
+
$footCell=self.tableContainer.find('tfoot tr.app-datagrid-row td.app-datagrid-cell[data-col-id="' + id + '"]'),
|
|
1237
1237
|
$headerCol = $(headerCols[id]),
|
|
1238
1238
|
$bodyCol = $(bodyCols[id]),
|
|
1239
1239
|
definedWidth,
|
|
@@ -1248,11 +1248,13 @@ $.widget('wm.datatable', {
|
|
|
1248
1248
|
$tdCell.hide();
|
|
1249
1249
|
$headerCol.hide();
|
|
1250
1250
|
$bodyCol.hide();
|
|
1251
|
+
$footCell.hide();
|
|
1251
1252
|
} else {
|
|
1252
1253
|
$headerCell.show();
|
|
1253
1254
|
$tdCell.show();
|
|
1254
1255
|
$headerCol.show();
|
|
1255
1256
|
$bodyCol.show();
|
|
1257
|
+
$footCell.show();
|
|
1256
1258
|
}
|
|
1257
1259
|
//If default width is set, reset the width so that correct width is set on reload
|
|
1258
1260
|
if ($headerCol.length && $headerCol[0].style.width === '90px') {
|
|
@@ -1419,6 +1421,9 @@ $.widget('wm.datatable', {
|
|
|
1419
1421
|
this.selectFirstRow(value);
|
|
1420
1422
|
break;
|
|
1421
1423
|
case 'data':
|
|
1424
|
+
if(!this.isResetSortIconsDone) {
|
|
1425
|
+
this.setSortIconDefault();
|
|
1426
|
+
}
|
|
1422
1427
|
this.refreshGridData();
|
|
1423
1428
|
break;
|
|
1424
1429
|
case 'dataStates':
|
|
@@ -2372,6 +2377,7 @@ $.widget('wm.datatable', {
|
|
|
2372
2377
|
},
|
|
2373
2378
|
//Method to remove sort icons from the column header cells
|
|
2374
2379
|
resetSortIcons: function ($el) {
|
|
2380
|
+
this.isResetSortIconsDone = true;
|
|
2375
2381
|
var $sortContainer;
|
|
2376
2382
|
//If sort icon is not passed, find out the sort icon from the active class
|
|
2377
2383
|
if (!$el && this.gridHeaderElement) {
|
|
@@ -2381,9 +2387,25 @@ $.widget('wm.datatable', {
|
|
|
2381
2387
|
}
|
|
2382
2388
|
$el.removeClass('desc asc').removeClass(this.options.cssClassNames.descIcon).removeClass(this.options.cssClassNames.ascIcon);
|
|
2383
2389
|
},
|
|
2390
|
+
setSortIconDefault: function() {
|
|
2391
|
+
const sortInfo = this.options.sortInfo,
|
|
2392
|
+
$e = this.tableContainer,
|
|
2393
|
+
$th = $e.find("[data-col-field='" + sortInfo.field + "']"),
|
|
2394
|
+
$sortContainer = $th.find('.sort-buttons-container'),
|
|
2395
|
+
$sortIcon = $sortContainer.find('i.sort-icon'),
|
|
2396
|
+
direction = sortInfo.direction;
|
|
2397
|
+
if (direction === 'asc') {
|
|
2398
|
+
$sortIcon.addClass(direction + ' ' + this.options.cssClassNames.ascIcon);
|
|
2399
|
+
$sortContainer.addClass('active');
|
|
2400
|
+
} else if (direction === 'desc'){
|
|
2401
|
+
$sortIcon.addClass(direction + ' ' + this.options.cssClassNames.descIcon);
|
|
2402
|
+
$sortContainer.addClass('active');
|
|
2403
|
+
}
|
|
2404
|
+
|
|
2405
|
+
},
|
|
2384
2406
|
/* Handles table sorting. */
|
|
2385
2407
|
sortHandler: function (e) {
|
|
2386
|
-
|
|
2408
|
+
e.stopImmediatePropagation();
|
|
2387
2409
|
// If header span is clicked and column selection is enabled, call header click
|
|
2388
2410
|
if ($(e.target).hasClass('header-data') && this.options.enableColumnSelection) {
|
|
2389
2411
|
this.headerClickHandler(e);
|
|
@@ -2393,7 +2415,7 @@ $.widget('wm.datatable', {
|
|
|
2393
2415
|
id = $th.attr('data-col-id'),
|
|
2394
2416
|
$sortContainer = $th.find('.sort-buttons-container'),
|
|
2395
2417
|
$sortIcon = $sortContainer.find('i.sort-icon'),
|
|
2396
|
-
direction = $sortIcon.hasClass('asc') ? 'desc' :
|
|
2418
|
+
direction = $sortIcon.hasClass('asc') ? 'desc' : 'asc',
|
|
2397
2419
|
sortInfo = this.options.sortInfo,
|
|
2398
2420
|
$previousSortMarker = this.gridHeaderElement.find('.sort-buttons-container.active'),
|
|
2399
2421
|
field = $th.attr('data-col-field'),
|
|
@@ -2996,6 +3018,9 @@ $.widget('wm.datatable', {
|
|
|
2996
3018
|
}
|
|
2997
3019
|
});
|
|
2998
3020
|
}
|
|
3021
|
+
if(!this.isResetSortIconsDone) {
|
|
3022
|
+
this.setSortIconDefault();
|
|
3023
|
+
}
|
|
2999
3024
|
},
|
|
3000
3025
|
addOrRemoveScroll: function () {
|
|
3001
3026
|
var gridContent = this.gridContainer.find('tbody'),
|
|
@@ -3126,7 +3151,7 @@ $.widget('wm.datatable', {
|
|
|
3126
3151
|
'<div class="app-grid-header">' +
|
|
3127
3152
|
'<div class="app-grid-header-inner">' +
|
|
3128
3153
|
'<table tabindex="0" class="' + this.options.cssClassNames.gridDefault + ' ' + this.options.cssClassNames.grid + '">' +
|
|
3129
|
-
'<thead tabindex="0" class="table-header" id="table_header_' + this.tableId + '">' +
|
|
3154
|
+
'<thead tabindex="0" class="table-header thead-sticky" id="table_header_' + this.tableId + '">' +
|
|
3130
3155
|
'</thead><tbody class="app-grid-content app-datagrid-body" id="table_' + this.tableId + '">' +
|
|
3131
3156
|
'</tbody></table>' +
|
|
3132
3157
|
'</div></div></div>',
|
|
@@ -3283,12 +3308,6 @@ $.widget('wm.datatable', {
|
|
|
3283
3308
|
}
|
|
3284
3309
|
this.options[key] = value;
|
|
3285
3310
|
if (key === 'height') {
|
|
3286
|
-
if(this.options.showHeader) {
|
|
3287
|
-
// this._setStyles(this.gridHeaderElement, 'z-index: 1; position: sticky; top:0px;');
|
|
3288
|
-
$thead = this.gridHeaderElement;
|
|
3289
|
-
$thead.addClass("thead-sticky");
|
|
3290
|
-
}
|
|
3291
|
-
|
|
3292
3311
|
// if(this.dataStatus.state != 'loading') {
|
|
3293
3312
|
var elements = this.gridHeaderElement.find('th');
|
|
3294
3313
|
// this._setStyles(this.tableContainer, 'border-collapse: separate;');
|