@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.
Files changed (50) hide show
  1. app-ng-runtime/components/base/bundles/index.umd.js +0 -16
  2. app-ng-runtime/components/base/bundles/index.umd.js.map +1 -1
  3. app-ng-runtime/components/base/esm2015/public_api.js +2 -2
  4. app-ng-runtime/components/base/esm2015/utils/widget-utils.js +1 -16
  5. app-ng-runtime/components/base/fesm2015/index.js +1 -16
  6. app-ng-runtime/components/base/fesm2015/index.js.map +1 -1
  7. app-ng-runtime/components/base/index.metadata.json +1 -1
  8. app-ng-runtime/components/base/public_api.d.ts +1 -1
  9. app-ng-runtime/components/base/utils/widget-utils.d.ts +0 -7
  10. app-ng-runtime/components/data/list/bundles/index.umd.js +1 -1
  11. app-ng-runtime/components/data/list/bundles/index.umd.js.map +1 -1
  12. app-ng-runtime/components/data/list/esm2015/list.component.js +2 -2
  13. app-ng-runtime/components/data/list/fesm2015/index.js +1 -1
  14. app-ng-runtime/components/data/list/fesm2015/index.js.map +1 -1
  15. app-ng-runtime/components/data/pagination/bundles/index.umd.js +1 -1
  16. app-ng-runtime/components/data/pagination/bundles/index.umd.js.map +1 -1
  17. app-ng-runtime/components/data/pagination/esm2015/pagination.component.js +2 -2
  18. app-ng-runtime/components/data/pagination/fesm2015/index.js +1 -1
  19. app-ng-runtime/components/data/pagination/fesm2015/index.js.map +1 -1
  20. app-ng-runtime/components/data/table/bundles/index.umd.js +8 -46
  21. app-ng-runtime/components/data/table/bundles/index.umd.js.map +1 -1
  22. app-ng-runtime/components/data/table/esm2015/table.component.js +9 -45
  23. app-ng-runtime/components/data/table/esm2015/table.props.js +1 -3
  24. app-ng-runtime/components/data/table/fesm2015/index.js +8 -46
  25. app-ng-runtime/components/data/table/fesm2015/index.js.map +1 -1
  26. app-ng-runtime/components/data/table/index.metadata.json +1 -1
  27. app-ng-runtime/components/data/table/table.component.d.ts +0 -9
  28. app-ng-runtime/components/input/epoch/base-date-time.component.d.ts +0 -1
  29. app-ng-runtime/components/input/epoch/bundles/index.umd.js +6 -12
  30. app-ng-runtime/components/input/epoch/bundles/index.umd.js.map +1 -1
  31. app-ng-runtime/components/input/epoch/esm2015/base-date-time.component.js +7 -13
  32. app-ng-runtime/components/input/epoch/fesm2015/index.js +6 -12
  33. app-ng-runtime/components/input/epoch/fesm2015/index.js.map +1 -1
  34. app-ng-runtime/components/input/epoch/index.metadata.json +1 -1
  35. app-ng-runtime/components/navigation/menu/bundles/index.umd.js +19 -25
  36. app-ng-runtime/components/navigation/menu/bundles/index.umd.js.map +1 -1
  37. app-ng-runtime/components/navigation/menu/esm2015/menu-dropdown-item/menu-dropdown-item.component.js +5 -15
  38. app-ng-runtime/components/navigation/menu/esm2015/menu.component.js +19 -14
  39. app-ng-runtime/components/navigation/menu/fesm2015/index.js +20 -25
  40. app-ng-runtime/components/navigation/menu/fesm2015/index.js.map +1 -1
  41. app-ng-runtime/components/navigation/menu/index.metadata.json +1 -1
  42. app-ng-runtime/components/navigation/menu/menu-dropdown-item/menu-dropdown-item.component.d.ts +4 -7
  43. app-ng-runtime/components/navigation/menu/menu.component.d.ts +7 -3
  44. app-ng-runtime/core/bundles/index.umd.js +1 -7
  45. app-ng-runtime/core/bundles/index.umd.js.map +1 -1
  46. app-ng-runtime/core/esm2015/services/pagination.service.js +2 -8
  47. app-ng-runtime/core/fesm2015/index.js +1 -7
  48. app-ng-runtime/core/fesm2015/index.js.map +1 -1
  49. app-ng-runtime/package.json +1 -1
  50. app-ng-runtime/scripts/datatable/datatable.js +13 -63
@@ -359,8 +359,6 @@
359
359
  ['navigationalign', Object.assign({ value: 'left' }, base.PROP_STRING)],
360
360
  ['nodatamessage', Object.assign({ value: 'No data found.' }, base.PROP_STRING)],
361
361
  ['ondemandmessage', Object.assign({ value: 'Load More' }, base.PROP_STRING)],
362
- ['showviewlessbutton', Object.assign({ value: false }, base.PROP_BOOLEAN)],
363
- ['viewlessmessage', Object.assign({ value: 'View Less' }, base.PROP_STRING)],
364
362
  ['pagesize', base.PROP_NUMBER],
365
363
  ['radioselect', base.PROP_BOOLEAN],
366
364
  ['rowclass', base.PROP_STRING],
@@ -439,7 +437,6 @@
439
437
  _this.columns = {};
440
438
  _this.formfields = {};
441
439
  _this.enablesort = true;
442
- _this.showviewlessbutton = false;
443
440
  _this.primaryKey = [];
444
441
  _this.selectedItems = [];
445
442
  _this.selectedItemChange = new rxjs.Subject();
@@ -483,7 +480,6 @@
483
480
  data: [],
484
481
  colDefs: [],
485
482
  startRowIndex: 1,
486
- mode: '',
487
483
  sortInfo: {
488
484
  field: '',
489
485
  direction: ''
@@ -514,10 +510,6 @@
514
510
  isSearchTrigerred: false,
515
511
  isDatasetUpdated: false,
516
512
  isDataUpdatedByUser: false,
517
- showviewlessbutton: false,
518
- ondemandmessage: '',
519
- viewlessmessage: '',
520
- loadingdatamsg: '',
521
513
  isNextPageData: undefined,
522
514
  ACTIONS: {
523
515
  'DELETE': 'delete',
@@ -545,14 +537,6 @@
545
537
  getPageSize: function () {
546
538
  return _this.pagesize;
547
539
  },
548
- getPageCount: function () {
549
- return _this.dataNavigator.pageCount;
550
- },
551
- enableNavigation: function () {
552
- _this.dataNavigator.widget.isDisableNext = false;
553
- _this.dataNavigator.widget.isDisableLast = false;
554
- _this.gridOptions.mode = 'viewless';
555
- },
556
540
  // set the deleted row index
557
541
  setDeletedRowIndex: function (id) {
558
542
  _this.setDataGridOption('deletedRowIndex', id);
@@ -589,9 +573,7 @@
589
573
  }
590
574
  _this.callDataGridMethod('selectRows', _this.items);
591
575
  _this.selectedItems = _this.callDataGridMethod('getSelectedRows');
592
- if (_this.selectedItems.length) {
593
- _this.selectedItemChange.next(_this.selectedItems);
594
- }
576
+ _this.selectedItemChange.next(_this.selectedItems);
595
577
  // On render, apply the filters set for query service variable
596
578
  if (_this._isPageSearch && _this.filterInfo) {
597
579
  _this.searchSortHandler(_this.filterInfo, undefined, 'search');
@@ -601,11 +583,9 @@
601
583
  onRowSelect: function (row, e) {
602
584
  _this.ngZone.run(function () {
603
585
  _this.selectedItems = _this.callDataGridMethod('getSelectedRows');
604
- if (_this.selectedItems.length) {
605
- _this.selectedItemChange.next(_this.selectedItems);
606
- }
586
+ _this.selectedItemChange.next(_this.selectedItems);
607
587
  var rowData = _this.addRowIndex(row);
608
- if (_this.selectedItems.length && rowData.$index && _this.getConfiguredState() !== 'none' && _this.dataNavigator && base.unsupportedStatePersistenceTypes.indexOf(_this.navigation) < 0) {
588
+ if (rowData.$index && _this.getConfiguredState() !== 'none' && _this.dataNavigator && base.unsupportedStatePersistenceTypes.indexOf(_this.navigation) < 0) {
609
589
  var obj = { page: _this.dataNavigator.dn.currentPage, index: rowData.$index - 1 };
610
590
  var widgetState = _this.statePersistence.getWidgetState(_this);
611
591
  if (_.get(widgetState, 'selectedItem') && _this.multiselect) {
@@ -965,17 +945,12 @@
965
945
  // function to add load more button to table
966
946
  addLoadMoreBtn: function () {
967
947
  _this.callDataGridMethod('addLoadMoreBtn', _this.ondemandmessage, _this.loadingdatamsg, function ($event) {
948
+ // set 'isNextPageData' flag to true & 'isDataUpdatedByUser' to false as next page data is being rendered
968
949
  _this.gridOptions.setIsNextPageData(true);
969
950
  _this.gridOptions.setIsDataUpdatedByUser(false);
970
- if (_this.gridOptions.mode === 'viewless') {
971
- _this.dataNavigator.navigatePage('first', $event, true);
972
- _this.gridOptions.mode = '';
973
- }
974
- else {
975
- _this.dataNavigator.navigatePage('next', $event);
976
- _this.isDataLoading = true;
977
- }
978
- }, _this.infScroll);
951
+ _this.dataNavigator.navigatePage('next', $event);
952
+ _this.isDataLoading = true;
953
+ });
979
954
  },
980
955
  // function to bind scroll event
981
956
  bindScrollEvt: function () {
@@ -1281,10 +1256,6 @@
1281
1256
  this.gridOptions.securityUtils.pipeTransform = this.trustAsPipe;
1282
1257
  this.gridOptions.navigation = this.navigation;
1283
1258
  this.gridOptions.isdynamictable = this.isdynamictable;
1284
- this.gridOptions.showviewlessbutton = this.showviewlessbutton;
1285
- this.gridOptions.ondemandmessage = this.ondemandmessage;
1286
- this.gridOptions.viewlessmessage = this.viewlessmessage;
1287
- this.gridOptions.loadingdatamsg = this.loadingdatamsg;
1288
1259
  // When loadondemand property is enabled(deferload="true") and show is true, only the column titles of the datatable are rendered, the data(body of the datatable) is not at all rendered.
1289
1260
  // Because the griddata is setting before the datatable dom is rendered but we are sending empty data to the datatable.
1290
1261
  if (!_.isEmpty(this.gridData)) {
@@ -1308,11 +1279,6 @@
1308
1279
  this.gridOptions.colDefs = this.fieldDefs;
1309
1280
  this.datagridElement.datatable(this.gridOptions);
1310
1281
  this.callDataGridMethod('setStatus', 'loading', this.loadingdatamsg);
1311
- // if(this.gridOptions.data.length || this.variableInflight) {
1312
- // this.callDataGridMethod('setStatus', 'loading', this.loadingdatamsg);
1313
- // } else {
1314
- // this.callDataGridMethod('setStatus', 'nodata', this.nodatamessage);
1315
- // }
1316
1282
  this.applyProps.forEach(function (args) { return _this.callDataGridMethod.apply(_this, __spreadArray([], __read(args))); });
1317
1283
  if (this.editmode === base.EDIT_MODE.QUICK_EDIT) {
1318
1284
  this.documentClickBind = this._documentClickBind.bind(this);
@@ -1640,7 +1606,7 @@
1640
1606
  TableComponent.prototype.setGridData = function (serverData) {
1641
1607
  var data = this.filternullrecords ? this.removeEmptyRecords(serverData) : serverData;
1642
1608
  if (!this.variableInflight) {
1643
- if (data && (data.length) === 0) {
1609
+ if (data && data.length === 0) {
1644
1610
  this.callDataGridMethod('setStatus', 'nodata', this.nodatamessage);
1645
1611
  }
1646
1612
  else {
@@ -2066,10 +2032,6 @@
2066
2032
  if (nv) {
2067
2033
  this.$element.find('.on-demand-datagrid > a').text(nv);
2068
2034
  }
2069
- this.gridOptions.ondemandmessage = nv;
2070
- break;
2071
- case 'viewlessmessage':
2072
- this.gridOptions.viewlessmessage = nv;
2073
2035
  break;
2074
2036
  case 'show':
2075
2037
  if (nv) {