@wavemaker/app-runtime-wm-build 11.4.0-next.26251 → 11.4.0-next.28151
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.
- app-runtime-wm-build/package.json +1 -1
- app-runtime-wm-build/wmapp/scripts/wm-libs.js +7982 -5947
- app-runtime-wm-build/wmapp/scripts/wm-libs.min.js +18 -5
- app-runtime-wm-build/wmapp/scripts/wm-loader.js +47 -22
- app-runtime-wm-build/wmapp/scripts/wm-loader.min.js +5 -5
- app-runtime-wm-build/wmapp/styles/css/wm-style.css +1 -1
- app-runtime-wm-build/wmmobile/scripts/wm-libs.js +7982 -5947
- app-runtime-wm-build/wmmobile/scripts/wm-libs.min.js +177 -164
- app-runtime-wm-build/wmmobile/scripts/wm-mobileloader.js +52 -25
- app-runtime-wm-build/wmmobile/scripts/wm-mobileloader.min.js +21 -21
- app-runtime-wm-build/wmmobile/styles/css/wm-style.css +1 -1
|
@@ -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"
|
|
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.
|
|
21257
|
-
$.summernote.
|
|
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
|
-
|
|
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
|
|
44325
|
+
var _d;
|
|
44297
44326
|
if (this.infScroll || this.onDemandLoad) {
|
|
44298
|
-
|
|
44299
|
-
this.currentPage =
|
|
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
|
}
|
|
@@ -62817,7 +62846,8 @@
|
|
|
62817
62846
|
}), maxWaitTime * 1e3);
|
|
62818
62847
|
document.addEventListener("backbutton", this.executeBackTapListeners.bind(this));
|
|
62819
62848
|
if (i2.hasCordova()) {
|
|
62820
|
-
var
|
|
62849
|
+
var port = location.port ? ":" + location.port : "";
|
|
62850
|
+
var configUrl = location.protocol + "//" + location.hostname + port + (i2.isIos() ? "" : "/_www") + "/config.json";
|
|
62821
62851
|
i2.fetchContent("json", configUrl, true, (function(response) {
|
|
62822
62852
|
if (!response.error && response.baseUrl) {
|
|
62823
62853
|
_this._config = response;
|
|
@@ -70002,9 +70032,9 @@
|
|
|
70002
70032
|
}));
|
|
70003
70033
|
|
|
70004
70034
|
(function(global, factory) {
|
|
70005
|
-
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("@
|
|
70006
|
-
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.
|
|
70007
|
-
})(this, (function(exports, core, angular2Websocket, jmespath, core$1, router, oAuth, security,
|
|
70035
|
+
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,
|
|
70036
|
+
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));
|
|
70037
|
+
})(this, (function(exports, variables, core, angular2Websocket, jmespath, core$1, router, oAuth, security, common, http, ngxToastr, http$1) {
|
|
70008
70038
|
"use strict";
|
|
70009
70039
|
var CONSTANTS = {
|
|
70010
70040
|
hasCordova: window["cordova"] !== undefined,
|
|
@@ -70306,14 +70336,7 @@
|
|
|
70306
70336
|
}
|
|
70307
70337
|
}
|
|
70308
70338
|
};
|
|
70309
|
-
var $rootScope =
|
|
70310
|
-
project: {
|
|
70311
|
-
deployedUrl: "./",
|
|
70312
|
-
id: "temp_id"
|
|
70313
|
-
},
|
|
70314
|
-
projectName: "test_project_name",
|
|
70315
|
-
isApplicationType: true
|
|
70316
|
-
};
|
|
70339
|
+
var $rootScope = variables.$rootScope;
|
|
70317
70340
|
/*! *****************************************************************************
|
|
70318
70341
|
Copyright (c) Microsoft Corporation.
|
|
70319
70342
|
|
|
@@ -79195,14 +79218,15 @@
|
|
|
79195
79218
|
error: reject
|
|
79196
79219
|
});
|
|
79197
79220
|
})).then((function(fileContent) {
|
|
79198
|
-
var
|
|
79221
|
+
var port = location.port ? ":" + location.port : "";
|
|
79222
|
+
var path = _this_1.localAppUrl || location.protocol + "//" + location.hostname + port + location.pathname;
|
|
79199
79223
|
var cordovaPath = path;
|
|
79200
79224
|
if (cordovaPath.endsWith(".html")) {
|
|
79201
79225
|
var splits = cordovaPath.split("/").slice(0);
|
|
79202
79226
|
cordovaPath = splits.slice(0, splits.length - 1).join("/");
|
|
79203
79227
|
}
|
|
79204
79228
|
cordovaPath += "/cordova.js";
|
|
79205
|
-
var mAppUrl = location.protocol + "//" + location.hostname + core.transformFileURI(localDir + "live-index.html");
|
|
79229
|
+
var mAppUrl = location.protocol + "//" + location.hostname + port + core.transformFileURI(localDir + "live-index.html");
|
|
79206
79230
|
fileContent = fileContent.replace("cordova.js", cordovaPath);
|
|
79207
79231
|
fileContent = fileContent.replace("<head>", '\n <head>\n <base href="' + _this_1.deployedUrl + '">\n <meta name="liveSync.deployedUrl" value="' + _this_1.deployedUrl + '">\n <meta name="liveSync.syncAppUrl" value="' + mAppUrl + '">\n <meta name="liveSync.localAppUrl" value="' + path + '">');
|
|
79208
79232
|
return _this_1.file.writeFile(localDir, "live-index.html", fileContent, {
|
|
@@ -79998,6 +80022,9 @@
|
|
|
79998
80022
|
}
|
|
79999
80023
|
} : _a, scripts = _b.resources.scripts;
|
|
80000
80024
|
var baseUrl = getPrefabBaseUrl(prefabName);
|
|
80025
|
+
scripts = scripts.filter((function(script) {
|
|
80026
|
+
return !script.startsWith("npm://");
|
|
80027
|
+
}));
|
|
80001
80028
|
var _scripts = scripts.map((function(url) {
|
|
80002
80029
|
return getPrefabResourceUrl(url, baseUrl);
|
|
80003
80030
|
}));
|