@wavemaker/app-ng-runtime 11.5.2-next.141017 → 11.5.2-next.141021

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 (33) hide show
  1. app-ng-runtime/components/data/table/bundles/index.umd.js +8 -3
  2. app-ng-runtime/components/data/table/esm2020/table.component.mjs +9 -4
  3. app-ng-runtime/components/data/table/fesm2015/index.mjs +8 -3
  4. app-ng-runtime/components/data/table/fesm2015/index.mjs.map +1 -1
  5. app-ng-runtime/components/data/table/fesm2020/index.mjs +8 -3
  6. app-ng-runtime/components/data/table/fesm2020/index.mjs.map +1 -1
  7. app-ng-runtime/components/data/table/table.component.d.ts +2 -1
  8. app-ng-runtime/components/input/calendar/bundles/index.umd.js +6 -0
  9. app-ng-runtime/components/input/calendar/esm2020/calendar.component.mjs +7 -1
  10. app-ng-runtime/components/input/calendar/fesm2015/index.mjs +6 -0
  11. app-ng-runtime/components/input/calendar/fesm2015/index.mjs.map +1 -1
  12. app-ng-runtime/components/input/calendar/fesm2020/index.mjs +6 -0
  13. app-ng-runtime/components/input/calendar/fesm2020/index.mjs.map +1 -1
  14. app-ng-runtime/components/navigation/menu/bundles/index.umd.js +1 -1
  15. app-ng-runtime/components/navigation/menu/esm2020/nav/nav.component.mjs +2 -2
  16. app-ng-runtime/components/navigation/menu/fesm2015/index.mjs +1 -1
  17. app-ng-runtime/components/navigation/menu/fesm2015/index.mjs.map +1 -1
  18. app-ng-runtime/components/navigation/menu/fesm2020/index.mjs +1 -1
  19. app-ng-runtime/components/navigation/menu/fesm2020/index.mjs.map +1 -1
  20. app-ng-runtime/components/navigation/popover/bundles/index.umd.js +2 -2
  21. app-ng-runtime/components/navigation/popover/esm2020/popover.component.mjs +3 -3
  22. app-ng-runtime/components/navigation/popover/fesm2015/index.mjs +2 -2
  23. app-ng-runtime/components/navigation/popover/fesm2015/index.mjs.map +1 -1
  24. app-ng-runtime/components/navigation/popover/fesm2020/index.mjs +2 -2
  25. app-ng-runtime/components/navigation/popover/fesm2020/index.mjs.map +1 -1
  26. app-ng-runtime/package.json +1 -1
  27. app-ng-runtime/runtime/base/bundles/index.umd.js +4 -1
  28. app-ng-runtime/runtime/base/esm2020/components/base-page.component.mjs +5 -3
  29. app-ng-runtime/runtime/base/fesm2015/index.mjs +5 -2
  30. app-ng-runtime/runtime/base/fesm2015/index.mjs.map +1 -1
  31. app-ng-runtime/runtime/base/fesm2020/index.mjs +4 -2
  32. app-ng-runtime/runtime/base/fesm2020/index.mjs.map +1 -1
  33. app-ng-runtime/scripts/datatable/datatable.js +2 -2
@@ -377,6 +377,7 @@ class TableComponent extends StylableComponent {
377
377
  this.items = [];
378
378
  this.rowActions = [];
379
379
  this.shownavigation = false;
380
+ this.showFirstRow = false;
380
381
  this.documentClickBind = noop;
381
382
  this.prevFilterExpression = [];
382
383
  this.fieldDefs = [];
@@ -543,7 +544,7 @@ class TableComponent extends StylableComponent {
543
544
  });
544
545
  },
545
546
  // assigns the items on capture phase of the click handler.
546
- assignSelectedItems: (row, e, isRowSelected) => {
547
+ assignSelectedItems: (row, e, rowInfo) => {
547
548
  this.ngZone.run(() => {
548
549
  /*
549
550
  * in case of single select, update the items with out changing the reference.
@@ -551,8 +552,11 @@ class TableComponent extends StylableComponent {
551
552
  */
552
553
  if (this.multiselect) {
553
554
  //Fix for [WMS-25110]: Add row to items list only if the row is selected
554
- if (_.findIndex(this.items, row) === -1 && (isRowSelected === undefined || isRowSelected == true)) {
555
+ if (_.findIndex(this.items, row) === -1 && ((rowInfo === null || rowInfo === void 0 ? void 0 : rowInfo._selected) === undefined || (rowInfo === null || rowInfo === void 0 ? void 0 : rowInfo._selected) == true || (this.gridfirstrowselect && (rowInfo === null || rowInfo === void 0 ? void 0 : rowInfo.rowId) == 0 && !this.showFirstRow))) {
555
556
  this.items.push(row);
557
+ if ((rowInfo === null || rowInfo === void 0 ? void 0 : rowInfo.rowId) == 0) {
558
+ this.showFirstRow = true;
559
+ }
556
560
  }
557
561
  }
558
562
  else {
@@ -1806,7 +1810,8 @@ class TableComponent extends StylableComponent {
1806
1810
  }
1807
1811
  }
1808
1812
  // for Static Variables with Retain State enabled, prevent Table from rendering more than once
1809
- if (!(_.get(this.datasource, 'category') === 'wm.Variable' && this._pageLoad && this.getConfiguredState() !== 'none')) {
1813
+ // Fix for [WMS-25284]: Render table that is inside list widget and bound to static Variable
1814
+ if (!(_.get(this.datasource, 'category') === 'wm.Variable' && this._pageLoad && this.getConfiguredState() !== 'none') || (this.parentList && _.startsWith(this.binddataset, 'item'))) {
1810
1815
  this.watchVariableDataSet(nv);
1811
1816
  }
1812
1817
  break;