@wavemaker/app-runtime-wm-build 11.4.0-next.141707 → 11.4.0-next.1417070

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.
@@ -5052,7 +5052,12 @@
5052
5052
  fieldDefs = [];
5053
5053
  parent.gridOptions.setCurrentPage(1);
5054
5054
  }
5055
- var currentPage = parent.currentPage;
5055
+ var currentPage;
5056
+ if (parent.widgetType === "wm-table") {
5057
+ currentPage = parent.gridOptions.showviewlessbutton && parent.gridOptions.mode === "viewless" ? parent.gridOptions.getCurrentPage() : parent.currentPage;
5058
+ } else {
5059
+ currentPage = parent.currentPage;
5060
+ }
5056
5061
  var dataNavigator = parent.dataNavigator;
5057
5062
  var pagesize = parent.pagesize;
5058
5063
  if (!isDefined(fieldDefs) || dataNavigator.isFirstPage()) {
@@ -8652,6 +8657,16 @@
8652
8657
  var routeRegex = new RegExp("^(#/|#)" + routeName + "$");
8653
8658
  return routeRegex.test(link);
8654
8659
  };
8660
+ var hasLinkToCurrentPage = function(nodes, routeUrl) {
8661
+ return nodes.some((function(node) {
8662
+ if (isActiveNavItem(node.link, routeUrl)) {
8663
+ return true;
8664
+ }
8665
+ if (node.children) {
8666
+ return hasLinkToCurrentPage(node.children, routeUrl);
8667
+ }
8668
+ }));
8669
+ };
8655
8670
  var getOrderByExpr = function(pageableObj) {
8656
8671
  pageableObj = pageableObj || [];
8657
8672
  var expressions = [], KEY_VAL_SEPARATOR = " ", FIELD_SEPARATOR = ",";
@@ -13022,6 +13037,7 @@
13022
13037
  exports.getWidgetPropsByType = getWidgetPropsByType;
13023
13038
  exports.groupData = groupData;
13024
13039
  exports.handleHeaderClick = handleHeaderClick;
13040
+ exports.hasLinkToCurrentPage = hasLinkToCurrentPage;
13025
13041
  exports.interpolateBindExpressions = interpolateBindExpressions;
13026
13042
  exports.isActiveNavItem = isActiveNavItem;
13027
13043
  exports.isBooleanAttr = isBooleanAttr;
@@ -14209,7 +14225,7 @@
14209
14225
  } else {
14210
14226
  setDefaultPlaceholder(attrs, widgetType, 2);
14211
14227
  }
14212
- return "<" + tagName$X + ' data-role="' + dataRole + '" [formGroup]="' + pCounter + '.ngform" wmFormField captionPosition #' + counter + '="wmFormField" widgettype="' + widgetType + '" ' + transpiler.getFormMarkupAttr(attrs) + '>\n <div class="live-field form-group app-composite-widget clearfix caption-{{' + pCounter + '.captionposition}}" widget="' + widgetType + '">\n <label [hidden]="!' + counter + '.displayname" class="app-label control-label formfield-label {{' + pCounter + '._captionClass}}"\n [ngStyle]="{width: ' + pCounter + ".captionsize}\" [ngClass]=\"{'text-danger': " + counter + "._control?.invalid && " + counter + "._control?.touched && " + pCounter + ".isUpdateMode,\n required: " + pCounter + ".isUpdateMode && " + counter + '.required}" [textContent]="' + counter + '.displayname"> </label>\n <div [ngClass]="' + counter + ".displayname ? " + pCounter + "._widgetClass : '" + controlLayout + '\'">\n <label class="form-control-static app-label" *ngIf="!(' + pCounter + ".isUpdateMode || " + counter + ".viewmodewidget === 'default' || " + counter + ".widgettype === 'upload')\"\n [hidden]=\"" + pCounter + ".isUpdateMode || " + counter + ".viewmodewidget === 'default' || " + counter + ".widgettype === 'upload'\" [innerHTML]=\"" + getCaptionByWidget(attrs, widgetType, counter) + '"></label>\n ' + getTemplate(attrs, widgetType, eventsTmpl, counter, pCounter, isInList) + '\n <span aria-hidden="true" *ngIf="' + counter + '.showPendingSpinner" class="form-field-spinner fa fa-circle-o-notch fa-spin form-control-feedback"></span>\n <p *ngIf="!(' + counter + "._control?.invalid && " + counter + "._control?.touched) && " + pCounter + '.isUpdateMode"\n class="help-block" aria-hidden="true" role="alert" aria-live="polite" [textContent]="' + counter + '.hint"></p>\n ' + validationMsg + "\n </div>\n </div>";
14228
+ return "<" + tagName$X + ' data-role="' + dataRole + '" [formGroup]="' + pCounter + '.ngform" wmFormField captionPosition #' + counter + '="wmFormField" widgettype="' + widgetType + '" ' + transpiler.getFormMarkupAttr(attrs) + '>\n <div class="live-field form-group app-composite-widget clearfix caption-{{' + pCounter + '.captionposition}}" widget="' + widgetType + '">\n <label [hidden]="!' + counter + '.displayname" class="app-label control-label formfield-label {{' + pCounter + '._captionClass}}"\n [ngStyle]="{width: ' + pCounter + ".captionsize}\" [ngClass]=\"{'text-danger': " + counter + "._control?.invalid && " + counter + "._control?.touched && " + pCounter + ".isUpdateMode,\n required: " + pCounter + ".isUpdateMode && " + counter + '.required}" [textContent]="' + counter + '.displayname"> </label>\n <div [ngClass]="' + counter + ".displayname ? " + pCounter + "._widgetClass : '" + controlLayout + '\'">\n <label class="form-control-static app-label"\n [hidden]="' + pCounter + ".isUpdateMode || " + counter + ".viewmodewidget === 'default' || " + counter + ".widgettype === 'upload'\" [innerHTML]=\"" + getCaptionByWidget(attrs, widgetType, counter) + '"></label>\n ' + getTemplate(attrs, widgetType, eventsTmpl, counter, pCounter, isInList) + '\n <span aria-hidden="true" *ngIf="' + counter + '.showPendingSpinner" class="form-field-spinner fa fa-circle-o-notch fa-spin form-control-feedback"></span>\n <p *ngIf="!(' + counter + "._control?.invalid && " + counter + "._control?.touched) && " + pCounter + '.isUpdateMode"\n class="help-block" aria-hidden="true" role="alert" aria-live="polite" [textContent]="' + counter + '.hint"></p>\n ' + validationMsg + "\n </div>\n </div>";
14213
14229
  },
14214
14230
  post: function() {
14215
14231
  return "</" + tagName$X + ">";
@@ -21253,8 +21269,8 @@
21253
21269
  var \u02750 = getChangeEvt;
21254
21270
  var overrideSummerNote = function() {
21255
21271
  if (!$.summernote.__overidden) {
21256
- var origFn_1 = $.summernote.ui.button.bind($.summernote);
21257
- $.summernote.ui.button = function() {
21272
+ var origFn_1 = $.summernote.ui_template().button.bind($.summernote);
21273
+ $.summernote.ui_template.button = function() {
21258
21274
  var args = [];
21259
21275
  for (var _i = 0; _i < arguments.length; _i++) {
21260
21276
  args[_i] = arguments[_i];
@@ -27204,6 +27220,7 @@
27204
27220
  function BaseDateTimeComponent(inj, WIDGET_CONFIG) {
27205
27221
  var _this = _super.call(this, inj, WIDGET_CONFIG) || this;
27206
27222
  _this.isReadOnly = false;
27223
+ _this.clicked = false;
27207
27224
  _this.formatsByLocale = {
27208
27225
  timezone: ""
27209
27226
  };
@@ -27370,6 +27387,7 @@
27370
27387
  };
27371
27388
  BaseDateTimeComponent.prototype.setActiveDateFocus = function(newDate, isMouseEvent) {
27372
27389
  var _this = this;
27390
+ this.setNextData(newDate);
27373
27391
  var activeMonth = this.activeDate.getMonth();
27374
27392
  if (!isMouseEvent) {
27375
27393
  if (newDate.getMonth() < activeMonth) {
@@ -27407,15 +27425,35 @@
27407
27425
  this.loadYears();
27408
27426
  }
27409
27427
  };
27428
+ BaseDateTimeComponent.prototype.getMonth = function(date, inc) {
27429
+ var currentMonth = new Date(date);
27430
+ var month = currentMonth.getMonth();
27431
+ var year = currentMonth.getFullYear();
27432
+ month += inc;
27433
+ var newDate = new Date(year, month);
27434
+ var fullMonth = newDate.toLocaleString("en-US", {
27435
+ month: "long"
27436
+ });
27437
+ return {
27438
+ date: newDate,
27439
+ fullMonth: fullMonth
27440
+ };
27441
+ };
27410
27442
  BaseDateTimeComponent.prototype.addDatepickerMouseEvents = function() {
27411
27443
  var _this = this;
27412
27444
  var datePickerHead = $(".bs-datepicker-head");
27413
27445
  datePickerHead.find(".previous").click((function(event) {
27446
+ _this.next = _this.getMonth(_this.activeDate, 0);
27447
+ _this.prev = _this.getMonth(_this.activeDate, -2);
27448
+ _this.clicked = true;
27414
27449
  if (event.originalEvent) {
27415
27450
  _this.setFocusForDate(-1);
27416
27451
  }
27417
27452
  }));
27418
27453
  datePickerHead.find(".next").click((function(event) {
27454
+ _this.next = _this.getMonth(_this.activeDate, 2);
27455
+ _this.prev = _this.getMonth(_this.activeDate, 0);
27456
+ _this.clicked = true;
27419
27457
  if (event.originalEvent) {
27420
27458
  _this.setFocusForDate(1);
27421
27459
  }
@@ -27431,8 +27469,8 @@
27431
27469
  _this.setFocusForMonthOrDay();
27432
27470
  }
27433
27471
  }));
27434
- datePickerHead.find(".next").attr("aria-label", "Next");
27435
- datePickerHead.find(".previous").attr("aria-label", "Previous");
27472
+ datePickerHead.find(".next").attr("aria-label", "Next Month, " + this.next.fullMonth + " " + this.next.date.getFullYear());
27473
+ datePickerHead.find(".previous").attr("aria-label", "Previous Month, " + this.prev.fullMonth + " " + this.prev.date.getFullYear());
27436
27474
  };
27437
27475
  BaseDateTimeComponent.prototype.setFocusForMonthOrDay = function() {
27438
27476
  var activeMonthOrYear = $(".bs-datepicker-head .current").first().text();
@@ -27498,6 +27536,10 @@
27498
27536
  this.loadDays();
27499
27537
  this.setActiveDateFocus(this.activeDate);
27500
27538
  };
27539
+ BaseDateTimeComponent.prototype.setNextData = function(nextDate) {
27540
+ this.next = this.getMonth(nextDate, 1);
27541
+ this.prev = this.getMonth(nextDate, -1);
27542
+ };
27501
27543
  BaseDateTimeComponent.prototype.loadDays = function() {
27502
27544
  var _this = this;
27503
27545
  setTimeout((function() {
@@ -27616,6 +27658,7 @@
27616
27658
  };
27617
27659
  BaseDateTimeComponent.prototype.setActiveMonthFocus = function(newDate, isMoouseEvent) {
27618
27660
  var _this = this;
27661
+ this.setNextData(newDate);
27619
27662
  var newMonth = months[newDate.getMonth()];
27620
27663
  if (!isMoouseEvent) {
27621
27664
  if (newDate.getFullYear() < this.activeDate.getFullYear()) {
@@ -28179,7 +28222,6 @@
28179
28222
  if (!skipFocus) {
28180
28223
  this.onDateTimeInputFocus();
28181
28224
  }
28182
- return;
28183
28225
  }
28184
28226
  if ($event.type === "click") {
28185
28227
  this.invokeEventCallback("click", {
@@ -33572,9 +33614,10 @@
33572
33614
  };
33573
33615
  var MenuComponent = function(_super) {
33574
33616
  __extends(MenuComponent, _super);
33575
- function MenuComponent(inj, route, userDefinedExecutionContext, bsDropdown, parentNav, selectEventCB) {
33617
+ function MenuComponent(inj, route, app, userDefinedExecutionContext, bsDropdown, parentNav, selectEventCB) {
33576
33618
  var _this = _super.call(this, inj, WIDGET_CONFIG$1) || this;
33577
33619
  _this.route = route;
33620
+ _this.app = app;
33578
33621
  _this.userDefinedExecutionContext = userDefinedExecutionContext;
33579
33622
  _this.bsDropdown = bsDropdown;
33580
33623
  _this.parentNav = parentNav;
@@ -33588,6 +33631,9 @@
33588
33631
  }
33589
33632
  var datasetSubscription = _this.nodes$.subscribe((function() {
33590
33633
  if (!_.isEmpty(_this.nodes)) {
33634
+ if (base.hasLinkToCurrentPage(_this.nodes, _this.route.url)) {
33635
+ core.addClass(_this.nativeElement.querySelector(".dropdown-toggle"), "active");
33636
+ }
33591
33637
  if (_this.parentNav) {
33592
33638
  return;
33593
33639
  }
@@ -33662,26 +33708,22 @@
33662
33708
  }
33663
33709
  $event.preventDefault();
33664
33710
  };
33665
- MenuComponent.prototype.hasLinkToCurrentPage = function(nodes) {
33666
- var _this = this;
33667
- return nodes.some((function(node) {
33668
- if (base.isActiveNavItem(node.link, _this.route.url)) {
33669
- return true;
33670
- }
33671
- if (node.children) {
33672
- return _this.hasLinkToCurrentPage(node.children);
33673
- }
33674
- }));
33675
- };
33676
33711
  MenuComponent.prototype.resetNodes = function() {
33677
33712
  _super.prototype.resetNodes.call(this);
33678
- if (this.autoopen === AUTO_OPEN.ACTIVE_PAGE && this.hasLinkToCurrentPage(this.nodes) || this.autoopen === AUTO_OPEN.ALWAYS) {
33713
+ if (this.autoopen === AUTO_OPEN.ACTIVE_PAGE && base.hasLinkToCurrentPage(this.nodes, this.route.url) || this.autoopen === AUTO_OPEN.ALWAYS) {
33679
33714
  this.bsDropdown.show();
33680
33715
  }
33681
33716
  };
33682
33717
  MenuComponent.prototype.ngOnInit = function() {
33718
+ var _this = this;
33683
33719
  _super.prototype.ngOnInit.call(this);
33684
33720
  this.setMenuPosition();
33721
+ var cancelSubscription = this.app.subscribe("highlightActiveLink", (function(data) {
33722
+ core.toggleClass(_this.nativeElement.querySelector(".dropdown-toggle"), "active", base.hasLinkToCurrentPage(_this.nodes, _this.route.url));
33723
+ }));
33724
+ this.registerDestroyListener((function() {
33725
+ return cancelSubscription();
33726
+ }));
33685
33727
  };
33686
33728
  MenuComponent.prototype.onPropertyChange = function(key, nv, ov) {
33687
33729
  if (key === "tabindex") {
@@ -33752,6 +33794,8 @@
33752
33794
  type: core$1.Injector
33753
33795
  }, {
33754
33796
  type: router.Router
33797
+ }, {
33798
+ type: core.App
33755
33799
  }, {
33756
33800
  type: core.UserDefinedExecutionContext
33757
33801
  }, {
@@ -33869,8 +33913,9 @@
33869
33913
  VERTICAL: "vertical"
33870
33914
  };
33871
33915
  var MenuDropdownItemComponent = function() {
33872
- function MenuDropdownItemComponent(menuRef, userDefinedExecutionContext, parentNav, elRef) {
33916
+ function MenuDropdownItemComponent(app, menuRef, userDefinedExecutionContext, parentNav, elRef) {
33873
33917
  var _this = this;
33918
+ this.app = app;
33874
33919
  this.menuRef = menuRef;
33875
33920
  this.userDefinedExecutionContext = userDefinedExecutionContext;
33876
33921
  this.parentNav = parentNav;
@@ -33896,10 +33941,14 @@
33896
33941
  this.menualign = menuAlignClass[this.menuRef.menualign] || menuAlignClass["pull-left"];
33897
33942
  }
33898
33943
  MenuDropdownItemComponent.prototype.ngOnInit = function() {
33944
+ var _this = this;
33899
33945
  if (this.parentNav) {
33900
- if (base.isActiveNavItem(this.item.link, this.menuRef.route.url)) {
33946
+ if (base.hasLinkToCurrentPage([ this.item ], this.menuRef.route.url)) {
33901
33947
  core.addClass(this.nativeElement, "active");
33902
33948
  }
33949
+ this.highlightActiveLinkSubscription = this.app.subscribe("highlightActiveLink", (function(data) {
33950
+ core.toggleClass(_this.nativeElement, "active", base.hasLinkToCurrentPage([ _this.item ], _this.menuRef.route.url));
33951
+ }));
33903
33952
  }
33904
33953
  };
33905
33954
  MenuDropdownItemComponent.prototype.getInitialKeyMovements = function() {
@@ -33968,6 +34017,11 @@
33968
34017
  $event.stopPropagation();
33969
34018
  }
33970
34019
  };
34020
+ MenuDropdownItemComponent.prototype.ngOnDestroy = function() {
34021
+ if (this.highlightActiveLinkSubscription) {
34022
+ this.highlightActiveLinkSubscription();
34023
+ }
34024
+ };
33971
34025
  return MenuDropdownItemComponent;
33972
34026
  }();
33973
34027
  MenuDropdownItemComponent.decorators = [ {
@@ -33979,6 +34033,8 @@
33979
34033
  } ];
33980
34034
  MenuDropdownItemComponent.ctorParameters = function() {
33981
34035
  return [ {
34036
+ type: core.App
34037
+ }, {
33982
34038
  type: MenuComponent
33983
34039
  }, {
33984
34040
  type: core.UserDefinedExecutionContext
@@ -42314,7 +42370,7 @@
42314
42370
  }
42315
42371
  this.isDisableCurrent = isCurrentPageFirst && isCurrentPageLast;
42316
42372
  if (this.dataset && this.dataset.length && this.isDisableNext && this.parent.onDemandLoad && this.parent.widgetType === "wm-table") {
42317
- this.parent.callDataGridMethod("hideLoadingIndicator", this.isDisableNext, false);
42373
+ this.parent.callDataGridMethod("hideLoadingIndicator", this.isDisableNext, this.parent.infScroll);
42318
42374
  }
42319
42375
  };
42320
42376
  PaginationComponent.prototype.isDataSourceHasPaging = function() {
@@ -44220,10 +44276,15 @@
44220
44276
  var dataSource = this.datasource;
44221
44277
  if (dataSource && dataSource.execute(core.DataSource.Operation.IS_API_AWARE) && core.isDataSourceEqual(data.variable, dataSource)) {
44222
44278
  this.ngZone.run((function() {
44223
- var _a;
44279
+ var _a, _b, _c;
44224
44280
  _this.handleStateParams(data);
44225
44281
  _this.variableInflight = data.active;
44226
- _this.noDataFound = !((_a = data.data) === null || _a === void 0 ? void 0 : _a.pagination.totalElements);
44282
+ var totalEle = (_b = (_a = data.data) === null || _a === void 0 ? void 0 : _a.pagination) === null || _b === void 0 ? void 0 : _b.totalElements;
44283
+ if (!_.isUndefined(totalEle)) {
44284
+ _this.noDataFound = totalEle === 0 ? true : false;
44285
+ } else {
44286
+ _this.noDataFound = _.isEmpty((_c = data.data) === null || _c === void 0 ? void 0 : _c.data);
44287
+ }
44227
44288
  }));
44228
44289
  }
44229
44290
  };
@@ -44293,10 +44354,10 @@
44293
44354
  }
44294
44355
  };
44295
44356
  ListComponent.prototype.updateFieldDefs = function(newVal) {
44296
- var _b;
44357
+ var _d;
44297
44358
  if (this.infScroll || this.onDemandLoad) {
44298
- _b = __read(this.paginationService.updateFieldsOnPagination(this, newVal), 2), this.fieldDefs = _b[0],
44299
- this.currentPage = _b[1];
44359
+ _d = __read(this.paginationService.updateFieldsOnPagination(this, newVal), 2), this.fieldDefs = _d[0],
44360
+ this.currentPage = _d[1];
44300
44361
  } else {
44301
44362
  this.fieldDefs = newVal;
44302
44363
  }
@@ -44678,7 +44739,7 @@
44678
44739
  ListComponent.prototype.handleKeyDown = function($event, action) {
44679
44740
  var _this = this;
44680
44741
  $event.stopPropagation();
44681
- if ($event.keyCode !== 13 && $event.keyCode !== 9 && !($event.target.classList.contains("form-control") && $event.keyCode === 32)) {
44742
+ if ($event.keyCode !== 13 && $event.keyCode !== 9 && !(($event.target.classList.contains("form-control") || $event.target.classList.contains("note-editable")) && $event.keyCode === 32)) {
44682
44743
  $event.preventDefault();
44683
44744
  }
44684
44745
  var listItems = this.listItems;
@@ -45547,6 +45608,10 @@
45547
45608
  value: "No data found."
45548
45609
  }, base.PROP_STRING) ], [ "ondemandmessage", Object.assign({
45549
45610
  value: "Load More"
45611
+ }, base.PROP_STRING) ], [ "showviewlessbutton", Object.assign({
45612
+ value: false
45613
+ }, base.PROP_BOOLEAN) ], [ "viewlessmessage", Object.assign({
45614
+ value: "View Less"
45550
45615
  }, base.PROP_STRING) ], [ "pagesize", base.PROP_NUMBER ], [ "radioselect", base.PROP_BOOLEAN ], [ "rowclass", base.PROP_STRING ], [ "rowngclass", base.PROP_STRING ], [ "searchlabel", Object.assign({
45551
45616
  value: "Search"
45552
45617
  }, base.PROP_STRING) ], [ "show", Object.assign({
@@ -45627,6 +45692,7 @@
45627
45692
  _this.columns = {};
45628
45693
  _this.formfields = {};
45629
45694
  _this.enablesort = true;
45695
+ _this.showviewlessbutton = false;
45630
45696
  _this.primaryKey = [];
45631
45697
  _this.selectedItems = [];
45632
45698
  _this.selectedItemChange = new rxjs.Subject;
@@ -45669,6 +45735,7 @@
45669
45735
  data: [],
45670
45736
  colDefs: [],
45671
45737
  startRowIndex: 1,
45738
+ mode: "",
45672
45739
  sortInfo: {
45673
45740
  field: "",
45674
45741
  direction: ""
@@ -45699,6 +45766,10 @@
45699
45766
  isSearchTrigerred: false,
45700
45767
  isDatasetUpdated: false,
45701
45768
  isDataUpdatedByUser: false,
45769
+ showviewlessbutton: false,
45770
+ ondemandmessage: "",
45771
+ viewlessmessage: "",
45772
+ loadingdatamsg: "",
45702
45773
  isNextPageData: undefined,
45703
45774
  ACTIONS: {
45704
45775
  DELETE: "delete",
@@ -45723,6 +45794,14 @@
45723
45794
  getPageSize: function() {
45724
45795
  return _this.pagesize;
45725
45796
  },
45797
+ getPageCount: function() {
45798
+ return _this.dataNavigator.pageCount;
45799
+ },
45800
+ enableNavigation: function() {
45801
+ _this.dataNavigator.widget.isDisableNext = false;
45802
+ _this.dataNavigator.widget.isDisableLast = false;
45803
+ _this.gridOptions.mode = "viewless";
45804
+ },
45726
45805
  setDeletedRowIndex: function(id) {
45727
45806
  _this.setDataGridOption("deletedRowIndex", id);
45728
45807
  },
@@ -45757,7 +45836,9 @@
45757
45836
  }
45758
45837
  _this.callDataGridMethod("selectRows", _this.items);
45759
45838
  _this.selectedItems = _this.callDataGridMethod("getSelectedRows");
45760
- _this.selectedItemChange.next(_this.selectedItems);
45839
+ if (_this.selectedItems.length) {
45840
+ _this.selectedItemChange.next(_this.selectedItems);
45841
+ }
45761
45842
  if (_this._isPageSearch && _this.filterInfo) {
45762
45843
  _this.searchSortHandler(_this.filterInfo, undefined, "search");
45763
45844
  }
@@ -45766,9 +45847,11 @@
45766
45847
  onRowSelect: function(row, e) {
45767
45848
  _this.ngZone.run((function() {
45768
45849
  _this.selectedItems = _this.callDataGridMethod("getSelectedRows");
45769
- _this.selectedItemChange.next(_this.selectedItems);
45850
+ if (_this.selectedItems.length) {
45851
+ _this.selectedItemChange.next(_this.selectedItems);
45852
+ }
45770
45853
  var rowData = _this.addRowIndex(row);
45771
- if (rowData.$index && _this.getConfiguredState() !== "none" && _this.dataNavigator && base.unsupportedStatePersistenceTypes.indexOf(_this.navigation) < 0) {
45854
+ if (_this.selectedItems.length && rowData.$index && _this.getConfiguredState() !== "none" && _this.dataNavigator && base.unsupportedStatePersistenceTypes.indexOf(_this.navigation) < 0) {
45772
45855
  var obj = {
45773
45856
  page: _this.dataNavigator.dn.currentPage,
45774
45857
  index: rowData.$index - 1
@@ -46208,9 +46291,14 @@
46208
46291
  _this.callDataGridMethod("addLoadMoreBtn", _this.ondemandmessage, _this.loadingdatamsg, (function($event) {
46209
46292
  _this.gridOptions.setIsNextPageData(true);
46210
46293
  _this.gridOptions.setIsDataUpdatedByUser(false);
46211
- _this.dataNavigator.navigatePage("next", $event);
46212
- _this.isDataLoading = true;
46213
- }));
46294
+ if (_this.gridOptions.mode === "viewless") {
46295
+ _this.dataNavigator.navigatePage("first", $event, true);
46296
+ _this.gridOptions.mode = "";
46297
+ } else {
46298
+ _this.dataNavigator.navigatePage("next", $event);
46299
+ _this.isDataLoading = true;
46300
+ }
46301
+ }), _this.infScroll);
46214
46302
  },
46215
46303
  bindScrollEvt: function() {
46216
46304
  if (_this._gridData && _this._gridData.length && _this.infScroll) {
@@ -46488,6 +46576,10 @@
46488
46576
  this.gridOptions.securityUtils.pipeTransform = this.trustAsPipe;
46489
46577
  this.gridOptions.navigation = this.navigation;
46490
46578
  this.gridOptions.isdynamictable = this.isdynamictable;
46579
+ this.gridOptions.showviewlessbutton = this.showviewlessbutton;
46580
+ this.gridOptions.ondemandmessage = this.ondemandmessage;
46581
+ this.gridOptions.viewlessmessage = this.viewlessmessage;
46582
+ this.gridOptions.loadingdatamsg = this.loadingdatamsg;
46491
46583
  if (!_.isEmpty(this.gridData)) {
46492
46584
  this.gridOptions.data = core.getClonedObject(this.gridData);
46493
46585
  }
@@ -47225,6 +47317,11 @@
47225
47317
  if (nv) {
47226
47318
  this.$element.find(".on-demand-datagrid > a").text(nv);
47227
47319
  }
47320
+ this.gridOptions.ondemandmessage = nv;
47321
+ break;
47322
+
47323
+ case "viewlessmessage":
47324
+ this.gridOptions.viewlessmessage = nv;
47228
47325
  break;
47229
47326
 
47230
47327
  case "show":
@@ -61798,9 +61895,9 @@
61798
61895
  }));
61799
61896
 
61800
61897
  (function(global, factory) {
61801
- typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("@wm/core"), require("angular2-websocket/angular2-websocket"), require("@metrichor/jmespath"), require("@angular/core"), require("@angular/router"), require("@wm/oAuth"), require("@wm/security"), require("@wavemaker/variables"), require("@angular/common"), require("@angular/common/http"), require("ngx-toastr"), require("@wm/http")) : typeof define === "function" && define.amd ? define("@wm/variables", [ "exports", "@wm/core", "angular2-websocket/angular2-websocket", "@metrichor/jmespath", "@angular/core", "@angular/router", "@wm/oAuth", "@wm/security", "@wavemaker/variables", "@angular/common", "@angular/common/http", "ngx-toastr", "@wm/http" ], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self,
61802
- factory((global.wm = global.wm || {}, global.wm.variables = {}), global.wm.core, global.angularWebSocket, global.jmespath, global.ng.core, global.ng.router, global.wm.oAuth, global.wm.security, global.wm_common_variables, global.ng.common, global.ng.common.http, global.ngxToastr, global.wm.http));
61803
- })(this, (function(exports, core, angular2Websocket, jmespath, core$1, router, oAuth, security, variables, common, http, ngxToastr, http$1) {
61898
+ typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("@wavemaker/variables"), require("@wm/core"), require("angular2-websocket/angular2-websocket"), require("@metrichor/jmespath"), require("@angular/core"), require("@angular/router"), require("@wm/oAuth"), require("@wm/security"), require("@angular/common"), require("@angular/common/http"), require("ngx-toastr"), require("@wm/http")) : typeof define === "function" && define.amd ? define("@wm/variables", [ "exports", "@wavemaker/variables", "@wm/core", "angular2-websocket/angular2-websocket", "@metrichor/jmespath", "@angular/core", "@angular/router", "@wm/oAuth", "@wm/security", "@angular/common", "@angular/common/http", "ngx-toastr", "@wm/http" ], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self,
61899
+ factory((global.wm = global.wm || {}, global.wm.variables = {}), global.wm_common_variables, global.wm.core, global.angularWebSocket, global.jmespath, global.ng.core, global.ng.router, global.wm.oAuth, global.wm.security, global.ng.common, global.ng.common.http, global.ngxToastr, global.wm.http));
61900
+ })(this, (function(exports, variables, core, angular2Websocket, jmespath, core$1, router, oAuth, security, common, http, ngxToastr, http$1) {
61804
61901
  "use strict";
61805
61902
  var CONSTANTS = {
61806
61903
  hasCordova: window["cordova"] !== undefined,
@@ -62102,14 +62199,7 @@
62102
62199
  }
62103
62200
  }
62104
62201
  };
62105
- var $rootScope = {
62106
- project: {
62107
- deployedUrl: "./",
62108
- id: "temp_id"
62109
- },
62110
- projectName: "test_project_name",
62111
- isApplicationType: true
62112
- };
62202
+ var $rootScope = variables.$rootScope;
62113
62203
  /*! *****************************************************************************
62114
62204
  Copyright (c) Microsoft Corporation.
62115
62205
 
@@ -65413,6 +65503,9 @@
65413
65503
  }
65414
65504
  } : _a, scripts = _b.resources.scripts;
65415
65505
  var baseUrl = getPrefabBaseUrl(prefabName);
65506
+ scripts = scripts.filter((function(script) {
65507
+ return !script.startsWith("npm://");
65508
+ }));
65416
65509
  var _scripts = scripts.map((function(url) {
65417
65510
  return getPrefabResourceUrl(url, baseUrl);
65418
65511
  }));