@wavemaker/app-runtime-wm-build 11.4.0-next.25501 → 11.4.0-next.27501

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.
@@ -14209,7 +14209,7 @@
14209
14209
  } else {
14210
14210
  setDefaultPlaceholder(attrs, widgetType, 2);
14211
14211
  }
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>";
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"\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
14213
  },
14214
14214
  post: function() {
14215
14215
  return "</" + tagName$X + ">";
@@ -21253,8 +21253,8 @@
21253
21253
  var \u02750 = getChangeEvt;
21254
21254
  var overrideSummerNote = function() {
21255
21255
  if (!$.summernote.__overidden) {
21256
- var origFn_1 = $.summernote.ui.button.bind($.summernote);
21257
- $.summernote.ui.button = function() {
21256
+ var origFn_1 = $.summernote.ui_template().button.bind($.summernote);
21257
+ $.summernote.ui_template.button = function() {
21258
21258
  var args = [];
21259
21259
  for (var _i = 0; _i < arguments.length; _i++) {
21260
21260
  args[_i] = arguments[_i];
@@ -27204,6 +27204,7 @@
27204
27204
  function BaseDateTimeComponent(inj, WIDGET_CONFIG) {
27205
27205
  var _this = _super.call(this, inj, WIDGET_CONFIG) || this;
27206
27206
  _this.isReadOnly = false;
27207
+ _this.clicked = false;
27207
27208
  _this.formatsByLocale = {
27208
27209
  timezone: ""
27209
27210
  };
@@ -27407,15 +27408,35 @@
27407
27408
  this.loadYears();
27408
27409
  }
27409
27410
  };
27411
+ BaseDateTimeComponent.prototype.getMonth = function(date, inc) {
27412
+ var currentMonth = new Date(date);
27413
+ var month = currentMonth.getMonth();
27414
+ var year = currentMonth.getFullYear();
27415
+ month += inc;
27416
+ var newDate = new Date(year, month);
27417
+ var fullMonth = newDate.toLocaleString("en-US", {
27418
+ month: "long"
27419
+ });
27420
+ return {
27421
+ date: newDate,
27422
+ fullMonth: fullMonth
27423
+ };
27424
+ };
27410
27425
  BaseDateTimeComponent.prototype.addDatepickerMouseEvents = function() {
27411
27426
  var _this = this;
27412
27427
  var datePickerHead = $(".bs-datepicker-head");
27413
27428
  datePickerHead.find(".previous").click((function(event) {
27429
+ _this.next = _this.getMonth(_this.activeDate, 0);
27430
+ _this.prev = _this.getMonth(_this.activeDate, -2);
27431
+ _this.clicked = true;
27414
27432
  if (event.originalEvent) {
27415
27433
  _this.setFocusForDate(-1);
27416
27434
  }
27417
27435
  }));
27418
27436
  datePickerHead.find(".next").click((function(event) {
27437
+ _this.next = _this.getMonth(_this.activeDate, 2);
27438
+ _this.prev = _this.getMonth(_this.activeDate, 0);
27439
+ _this.clicked = true;
27419
27440
  if (event.originalEvent) {
27420
27441
  _this.setFocusForDate(1);
27421
27442
  }
@@ -27431,8 +27452,8 @@
27431
27452
  _this.setFocusForMonthOrDay();
27432
27453
  }
27433
27454
  }));
27434
- datePickerHead.find(".next").attr("aria-label", "Next");
27435
- datePickerHead.find(".previous").attr("aria-label", "Previous");
27455
+ datePickerHead.find(".next").attr("aria-label", "Next Month " + this.next.fullMonth + " " + this.next.date.getFullYear());
27456
+ datePickerHead.find(".previous").attr("aria-label", "Previous Month " + this.prev.fullMonth + " " + this.prev.date.getFullYear());
27436
27457
  };
27437
27458
  BaseDateTimeComponent.prototype.setFocusForMonthOrDay = function() {
27438
27459
  var activeMonthOrYear = $(".bs-datepicker-head .current").first().text();
@@ -27502,6 +27523,10 @@
27502
27523
  var _this = this;
27503
27524
  setTimeout((function() {
27504
27525
  $("[bsdatepickerdaydecorator]").not(".is-other-month").attr("tabindex", "0");
27526
+ if (_this.clicked === false) {
27527
+ _this.next = _this.getMonth(_this.activeDate, 1);
27528
+ _this.prev = _this.getMonth(_this.activeDate, -1);
27529
+ }
27505
27530
  _this.addKeyBoardEventsForDays();
27506
27531
  _this.addDatepickerMouseEvents();
27507
27532
  }));
@@ -28179,7 +28204,6 @@
28179
28204
  if (!skipFocus) {
28180
28205
  this.onDateTimeInputFocus();
28181
28206
  }
28182
- return;
28183
28207
  }
28184
28208
  if ($event.type === "click") {
28185
28209
  this.invokeEventCallback("click", {
@@ -44220,10 +44244,15 @@
44220
44244
  var dataSource = this.datasource;
44221
44245
  if (dataSource && dataSource.execute(core.DataSource.Operation.IS_API_AWARE) && core.isDataSourceEqual(data.variable, dataSource)) {
44222
44246
  this.ngZone.run((function() {
44223
- var _a;
44247
+ var _a, _b, _c;
44224
44248
  _this.handleStateParams(data);
44225
44249
  _this.variableInflight = data.active;
44226
- _this.noDataFound = !((_a = data.data) === null || _a === void 0 ? void 0 : _a.pagination.totalElements);
44250
+ var totalEle = (_b = (_a = data.data) === null || _a === void 0 ? void 0 : _a.pagination) === null || _b === void 0 ? void 0 : _b.totalElements;
44251
+ if (!_.isUndefined(totalEle)) {
44252
+ _this.noDataFound = totalEle === 0 ? true : false;
44253
+ } else {
44254
+ _this.noDataFound = _.isEmpty((_c = data.data) === null || _c === void 0 ? void 0 : _c.data);
44255
+ }
44227
44256
  }));
44228
44257
  }
44229
44258
  };
@@ -44293,10 +44322,10 @@
44293
44322
  }
44294
44323
  };
44295
44324
  ListComponent.prototype.updateFieldDefs = function(newVal) {
44296
- var _b;
44325
+ var _d;
44297
44326
  if (this.infScroll || this.onDemandLoad) {
44298
- _b = __read(this.paginationService.updateFieldsOnPagination(this, newVal), 2), this.fieldDefs = _b[0],
44299
- this.currentPage = _b[1];
44327
+ _d = __read(this.paginationService.updateFieldsOnPagination(this, newVal), 2), this.fieldDefs = _d[0],
44328
+ this.currentPage = _d[1];
44300
44329
  } else {
44301
44330
  this.fieldDefs = newVal;
44302
44331
  }
@@ -61798,9 +61827,9 @@
61798
61827
  }));
61799
61828
 
61800
61829
  (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) {
61830
+ 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,
61831
+ 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));
61832
+ })(this, (function(exports, variables, core, angular2Websocket, jmespath, core$1, router, oAuth, security, common, http, ngxToastr, http$1) {
61804
61833
  "use strict";
61805
61834
  var CONSTANTS = {
61806
61835
  hasCordova: window["cordova"] !== undefined,
@@ -62102,14 +62131,7 @@
62102
62131
  }
62103
62132
  }
62104
62133
  };
62105
- var $rootScope = {
62106
- project: {
62107
- deployedUrl: "./",
62108
- id: "temp_id"
62109
- },
62110
- projectName: "test_project_name",
62111
- isApplicationType: true
62112
- };
62134
+ var $rootScope = variables.$rootScope;
62113
62135
  /*! *****************************************************************************
62114
62136
  Copyright (c) Microsoft Corporation.
62115
62137
 
@@ -65413,6 +65435,9 @@
65413
65435
  }
65414
65436
  } : _a, scripts = _b.resources.scripts;
65415
65437
  var baseUrl = getPrefabBaseUrl(prefabName);
65438
+ scripts = scripts.filter((function(script) {
65439
+ return !script.startsWith("npm://");
65440
+ }));
65416
65441
  var _scripts = scripts.map((function(url) {
65417
65442
  return getPrefabResourceUrl(url, baseUrl);
65418
65443
  }));