@wavemaker/app-runtime-wm-build 11.4.0-next.1417031 → 11.4.0-next.1417033
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 +20 -4
- app-runtime-wm-build/wmapp/scripts/wm-libs.min.js +1 -1
- app-runtime-wm-build/wmapp/scripts/wm-loader.js +30 -3
- app-runtime-wm-build/wmapp/scripts/wm-loader.min.js +2 -2
- app-runtime-wm-build/wmapp/styles/css/wm-style.css +1 -1
- app-runtime-wm-build/wmmobile/scripts/wm-libs.js +20 -4
- app-runtime-wm-build/wmmobile/scripts/wm-libs.min.js +1 -1
- app-runtime-wm-build/wmmobile/scripts/wm-mobileloader.js +30 -3
- app-runtime-wm-build/wmmobile/scripts/wm-mobileloader.min.js +15 -15
- app-runtime-wm-build/wmmobile/styles/css/wm-style.css +1 -1
|
@@ -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", {
|
|
@@ -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
|
}));
|