@wavemaker/app-ng-runtime 11.14.1-8.6337 → 11.14.1-9.6343
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.
- package/components/base/bundles/index.umd.js +8 -77
- package/components/base/esm2022/pipes/custom-pipes.mjs +1 -1
- package/components/base/esm2022/widgets/common/base/base.component.mjs +7 -67
- package/components/base/esm2022/widgets/common/lazy-load/lazy-load.directive.mjs +3 -7
- package/components/base/esm2022/widgets/framework/property-change-handler.mjs +2 -7
- package/components/base/fesm2022/index.mjs +9 -78
- package/components/base/fesm2022/index.mjs.map +1 -1
- package/components/basic/label/bundles/index.umd.js +1 -9
- package/components/basic/label/esm2022/label.directive.mjs +2 -10
- package/components/basic/label/fesm2022/index.mjs +1 -9
- package/components/basic/label/fesm2022/index.mjs.map +1 -1
- package/components/data/pagination/bundles/index.umd.js +0 -4
- package/components/data/pagination/esm2022/pagination.component.mjs +1 -5
- package/components/data/pagination/fesm2022/index.mjs +0 -4
- package/components/data/pagination/fesm2022/index.mjs.map +1 -1
- package/components/data/table/bundles/index.umd.js +12 -219
- package/components/data/table/esm2022/table-cud.directive.mjs +2 -2
- package/components/data/table/esm2022/table.component.mjs +12 -219
- package/components/data/table/fesm2022/index.mjs +12 -219
- package/components/data/table/fesm2022/index.mjs.map +1 -1
- package/components/data/table/table.component.d.ts +2 -6
- package/components/navigation/menu/bundles/index.umd.js +0 -5
- package/components/navigation/menu/esm2022/menu.component.mjs +1 -6
- package/components/navigation/menu/fesm2022/index.mjs +0 -5
- package/components/navigation/menu/fesm2022/index.mjs.map +1 -1
- package/components/navigation/popover/bundles/index.umd.js +6 -6
- package/components/navigation/popover/esm2022/popover.component.mjs +4 -4
- package/components/navigation/popover/fesm2022/index.mjs +3 -3
- package/components/navigation/popover/fesm2022/index.mjs.map +1 -1
- package/components/navigation/popover/popover.component.d.ts +0 -6
- package/core/bundles/index.umd.js +82 -395
- package/core/esm2022/public_api.mjs +2 -2
- package/core/esm2022/utils/watcher.mjs +81 -392
- package/core/fesm2022/index.mjs +84 -395
- package/core/fesm2022/index.mjs.map +1 -1
- package/core/public_api.d.ts +1 -1
- package/core/utils/watcher.d.ts +5 -28
- package/npm-shrinkwrap.json +2 -2
- package/package-lock.json +2 -2
- package/package.json +1 -1
- package/runtime/base/bundles/index.umd.js +0 -20
- package/runtime/base/esm2022/components/app-component/app.component.mjs +2 -4
- package/runtime/base/esm2022/components/base-page.component.mjs +2 -6
- package/runtime/base/esm2022/components/base-partial.component.mjs +2 -7
- package/runtime/base/esm2022/components/base-prefab.component.mjs +2 -7
- package/runtime/base/esm2022/components/base-spa-page.component.mjs +2 -6
- package/runtime/base/fesm2022/index.mjs +1 -21
- package/runtime/base/fesm2022/index.mjs.map +1 -1
- package/scripts/datatable/datatable.js +2 -34
|
@@ -507,22 +507,7 @@ $.widget('wm.datatable', {
|
|
|
507
507
|
|
|
508
508
|
/* function to get start index of the current active page */
|
|
509
509
|
getPageStartIndex: function() {
|
|
510
|
-
|
|
511
|
-
var getCurrentPageFn = this.options.getCurrentPage;
|
|
512
|
-
var getPageSizeFn = this.options.getPageSize;
|
|
513
|
-
var currentPage, pagesize;
|
|
514
|
-
if (!getCurrentPageFn || typeof getCurrentPageFn !== 'function') {
|
|
515
|
-
// Default to page 1 if getCurrentPage is not available
|
|
516
|
-
currentPage = 1;
|
|
517
|
-
} else {
|
|
518
|
-
currentPage = getCurrentPageFn();
|
|
519
|
-
}
|
|
520
|
-
if (!getPageSizeFn || typeof getPageSizeFn !== 'function') {
|
|
521
|
-
// Default to 10 if getPageSize is not available
|
|
522
|
-
pagesize = 10;
|
|
523
|
-
} else {
|
|
524
|
-
pagesize = getPageSizeFn();
|
|
525
|
-
}
|
|
510
|
+
var currentPage = this.options.getCurrentPage(), pagesize = this.options.getPageSize();
|
|
526
511
|
var isPrevPageUpdated = this.options.actionRowPage < currentPage;
|
|
527
512
|
var pageIndex = isPrevPageUpdated ? this.options.actionRowPage : currentPage;
|
|
528
513
|
return ((pageIndex - 1) * pagesize);
|
|
@@ -583,8 +568,6 @@ $.widget('wm.datatable', {
|
|
|
583
568
|
var self = this, preparedData,$tbody,pageStartIndex = self.getPageStartIndex(),
|
|
584
569
|
startRowIndex = self.options.startRowIndex,
|
|
585
570
|
isScrollorOnDemand = self.options.isNavTypeScrollOrOndemand();
|
|
586
|
-
var $activeRow = self.gridElement.find('tr.row-editing:not(.always-new-row)').first();
|
|
587
|
-
var index = $activeRow.index();
|
|
588
571
|
if(isScrollorOnDemand) {
|
|
589
572
|
$tbody = this.gridElement;
|
|
590
573
|
if(this.renderTableOnViewLess) {
|
|
@@ -640,16 +623,6 @@ $.widget('wm.datatable', {
|
|
|
640
623
|
this.options.setIsDataUpdatedByUser(false);
|
|
641
624
|
this.options.clearActionRowIndex();
|
|
642
625
|
}
|
|
643
|
-
if(this.options.editmode===this.CONSTANTS.QUICK_EDIT){
|
|
644
|
-
if (index>=0) {
|
|
645
|
-
const $newActiveRow = self.gridElement.find('tr').eq(index);
|
|
646
|
-
if ($newActiveRow && $newActiveRow.length) {
|
|
647
|
-
$newActiveRow.addClass('active');
|
|
648
|
-
$newActiveRow.trigger('click', [undefined, {action: 'edit', skipFocus:false}]);
|
|
649
|
-
self.setActiveRow($newActiveRow);
|
|
650
|
-
self.focusActiveRow();
|
|
651
|
-
}
|
|
652
|
-
}}
|
|
653
626
|
return $tbody;
|
|
654
627
|
},
|
|
655
628
|
|
|
@@ -1291,9 +1264,7 @@ $.widget('wm.datatable', {
|
|
|
1291
1264
|
this.element.find('.loading-data-msg').hide();
|
|
1292
1265
|
this.element.find('.on-demand-load-btn').text(this.options.ondemandmessage);
|
|
1293
1266
|
this.element.find('.on-demand-load-btn').show();
|
|
1294
|
-
} else if(this.options.getCurrentPage
|
|
1295
|
-
this.options.getPageCount && typeof this.options.getPageCount === 'function' &&
|
|
1296
|
-
(this.options.getCurrentPage() == this.options.getPageCount()) && this.options.showviewlessbutton) {
|
|
1267
|
+
} else if((this.options.getCurrentPage() == this.options.getPageCount()) && this.options.showviewlessbutton) {
|
|
1297
1268
|
this.element.find('.on-demand-load-btn').show().text(this.options.viewlessmessage);
|
|
1298
1269
|
this.element.find('.loading-data-msg').hide();
|
|
1299
1270
|
if(infScroll) {
|
|
@@ -2935,9 +2906,6 @@ $.widget('wm.datatable', {
|
|
|
2935
2906
|
$htm.on('focus', 'tr.app-datagrid-row', function (e) {
|
|
2936
2907
|
var $row = $(e.currentTarget);
|
|
2937
2908
|
if (!$row.hasClass('row-editing')) {
|
|
2938
|
-
if(e.target===e.currentTarget && (e.which===0||!e.which)) {
|
|
2939
|
-
return;
|
|
2940
|
-
}
|
|
2941
2909
|
self.toggleEditRow(e, { $row: $row, action: 'edit'});
|
|
2942
2910
|
}
|
|
2943
2911
|
});
|