@wavemaker/app-ng-runtime 11.6.0-next.141926 → 11.6.0-next.141929

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 (34) 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 +15 -3
  28. app-ng-runtime/runtime/base/esm2020/components/base-page.component.mjs +5 -3
  29. app-ng-runtime/runtime/base/esm2020/runtime-base.module.mjs +12 -3
  30. app-ng-runtime/runtime/base/fesm2015/index.mjs +16 -4
  31. app-ng-runtime/runtime/base/fesm2015/index.mjs.map +1 -1
  32. app-ng-runtime/runtime/base/fesm2020/index.mjs +15 -4
  33. app-ng-runtime/runtime/base/fesm2020/index.mjs.map +1 -1
  34. app-ng-runtime/scripts/datatable/datatable.js +2 -2
@@ -385,6 +385,7 @@
385
385
  this.items = [];
386
386
  this.rowActions = [];
387
387
  this.shownavigation = false;
388
+ this.showFirstRow = false;
388
389
  this.documentClickBind = noop;
389
390
  this.prevFilterExpression = [];
390
391
  this.fieldDefs = [];
@@ -551,7 +552,7 @@
551
552
  });
552
553
  },
553
554
  // assigns the items on capture phase of the click handler.
554
- assignSelectedItems: (row, e, isRowSelected) => {
555
+ assignSelectedItems: (row, e, rowInfo) => {
555
556
  this.ngZone.run(() => {
556
557
  /*
557
558
  * in case of single select, update the items with out changing the reference.
@@ -559,8 +560,11 @@
559
560
  */
560
561
  if (this.multiselect) {
561
562
  //Fix for [WMS-25110]: Add row to items list only if the row is selected
562
- if (_.findIndex(this.items, row) === -1 && (isRowSelected === undefined || isRowSelected == true)) {
563
+ 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))) {
563
564
  this.items.push(row);
565
+ if ((rowInfo === null || rowInfo === void 0 ? void 0 : rowInfo.rowId) == 0) {
566
+ this.showFirstRow = true;
567
+ }
564
568
  }
565
569
  }
566
570
  else {
@@ -1814,7 +1818,8 @@
1814
1818
  }
1815
1819
  }
1816
1820
  // for Static Variables with Retain State enabled, prevent Table from rendering more than once
1817
- if (!(_.get(this.datasource, 'category') === 'wm.Variable' && this._pageLoad && this.getConfiguredState() !== 'none')) {
1821
+ // Fix for [WMS-25284]: Render table that is inside list widget and bound to static Variable
1822
+ if (!(_.get(this.datasource, 'category') === 'wm.Variable' && this._pageLoad && this.getConfiguredState() !== 'none') || (this.parentList && _.startsWith(this.binddataset, 'item'))) {
1818
1823
  this.watchVariableDataSet(nv);
1819
1824
  }
1820
1825
  break;