@wavemaker/app-runtime-wm-build 11.4.3-next.30202 → 11.5.0-next.141081
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.
|
@@ -4168,7 +4168,7 @@
|
|
|
4168
4168
|
EXCLUDEDAYS: "excludedays"
|
|
4169
4169
|
};
|
|
4170
4170
|
var transformFileURI = function(url) {
|
|
4171
|
-
if (
|
|
4171
|
+
if (url && hasCordova() && url.startsWith("file://")) {
|
|
4172
4172
|
if (isIos()) {
|
|
4173
4173
|
return url.replace("file://", "/_app_file_");
|
|
4174
4174
|
} else if (isAndroid() && location.href.startsWith("http")) {
|
|
@@ -17071,7 +17071,9 @@
|
|
|
17071
17071
|
};
|
|
17072
17072
|
BaseFormCustomComponent.prototype.invokeOnChange = function(value, $event, valid) {
|
|
17073
17073
|
this._onChange(value);
|
|
17074
|
-
|
|
17074
|
+
if (valid) {
|
|
17075
|
+
_super.prototype.invokeOnChange.call(this, value, $event);
|
|
17076
|
+
}
|
|
17075
17077
|
};
|
|
17076
17078
|
BaseFormCustomComponent.prototype.invokeOnTouched = function($event) {
|
|
17077
17079
|
this._onTouched();
|
|
@@ -17279,9 +17281,6 @@
|
|
|
17279
17281
|
core$1.$appDigest();
|
|
17280
17282
|
}), 150);
|
|
17281
17283
|
_this.handleHeaderClick = core$1.noop;
|
|
17282
|
-
_this.cancelLocaleChangeSubscription = _this.getAppInstance().subscribe("locale-changed", (function() {
|
|
17283
|
-
_this._debouncedInitDatasetItems();
|
|
17284
|
-
}));
|
|
17285
17284
|
return _this;
|
|
17286
17285
|
}
|
|
17287
17286
|
Object.defineProperty(DatasetAwareFormComponent.prototype, "modelByKey", {
|
|
@@ -17494,11 +17493,6 @@
|
|
|
17494
17493
|
this.toggleAllHeaders = base.toggleAllHeaders.bind(undefined, this);
|
|
17495
17494
|
}
|
|
17496
17495
|
};
|
|
17497
|
-
DatasetAwareFormComponent.prototype.ngOnDestroy = function() {
|
|
17498
|
-
if (this.cancelLocaleChangeSubscription) {
|
|
17499
|
-
this.cancelLocaleChangeSubscription();
|
|
17500
|
-
}
|
|
17501
|
-
};
|
|
17502
17496
|
return DatasetAwareFormComponent;
|
|
17503
17497
|
}(BaseFormCustomComponent);
|
|
17504
17498
|
DatasetAwareFormComponent.decorators = [ {
|
|
@@ -24052,11 +24046,6 @@
|
|
|
24052
24046
|
i18nService.initCalendarLocale();
|
|
24053
24047
|
FullCalendar.__wm_locale_initialized = true;
|
|
24054
24048
|
}
|
|
24055
|
-
_this.cancelLocaleChangeSubscription = _this.getAppInstance().subscribe("locale-changed", (function(libLocale) {
|
|
24056
|
-
_this.setLocale();
|
|
24057
|
-
_this.applyCalendarOptions("option", "locale", libLocale.fullCalendar || "en");
|
|
24058
|
-
_this.redraw();
|
|
24059
|
-
}));
|
|
24060
24049
|
return _this;
|
|
24061
24050
|
}
|
|
24062
24051
|
CalendarComponent.prototype.selectDate = function() {
|
|
@@ -24519,11 +24508,6 @@
|
|
|
24519
24508
|
}));
|
|
24520
24509
|
}));
|
|
24521
24510
|
};
|
|
24522
|
-
CalendarComponent.prototype.ngOnDestroy = function() {
|
|
24523
|
-
if (this.cancelLocaleChangeSubscription) {
|
|
24524
|
-
this.cancelLocaleChangeSubscription();
|
|
24525
|
-
}
|
|
24526
|
-
};
|
|
24527
24511
|
return CalendarComponent;
|
|
24528
24512
|
}(base.StylableComponent);
|
|
24529
24513
|
CalendarComponent.initializeProps = registerProps();
|
|
@@ -27111,7 +27095,7 @@
|
|
|
27111
27095
|
type: core.Component,
|
|
27112
27096
|
args: [ {
|
|
27113
27097
|
selector: "wm-datetimepicker",
|
|
27114
|
-
template: '\n <ng-template #datetimepickerTemplate>\n <div class="app-datetime-picker">\n <div class="modal-body">\n <div class="mobile-datetime-picker-options">\n\n </div>\n <bs-datepicker-inline\n [bsConfig]="bsDatepickerConfig"\n [datesDisabled]="excludedDatesToDisable"\n bsDatepicker\n [bsValue]="changedValue"\n (bsValueChange)="onDateUpdate($event)"\n *ngIf="mode === \'DATE_TIME\' || mode === \'DATE\'">\n </bs-datepicker-inline>\n <wm-timepicker\n [value]="changedValue"\n [min]="minTime"\n [max]="maxTime"\n (change)="onTimeUpdate($event)"\n *ngIf="mode === \'DATE_TIME\' || mode === \'TIME\'"></wm-timepicker>\n <span class="text-primary date-picker-value">\n {{getDateLabel()}}\n </span>\n </div>\n <div class="modal-footer">\n <button\n *ngIf="mode === \'DATE_TIME\' || mode === \'DATE\'"\n class="btn btn-secondary today-btn"\n (click)="setToday()">{{appLocale.
|
|
27098
|
+
template: ' \n <ng-template #datetimepickerTemplate>\n <div class="app-datetime-picker">\n <div class="modal-body">\n <div class="mobile-datetime-picker-options">\n \n </div>\n <bs-datepicker-inline\n [bsConfig]="bsDatepickerConfig"\n [datesDisabled]="excludedDatesToDisable"\n bsDatepicker\n [bsValue]="changedValue"\n (bsValueChange)="onDateUpdate($event)"\n *ngIf="mode === \'DATE_TIME\' || mode === \'DATE\'">\n </bs-datepicker-inline>\n <wm-timepicker\n [value]="changedValue"\n [min]="minTime"\n [max]="maxTime"\n (change)="onTimeUpdate($event)"\n *ngIf="mode === \'DATE_TIME\' || mode === \'TIME\'"></wm-timepicker>\n <span class="text-primary date-picker-value">\n {{getDateLabel()}}\n </span>\n </div>\n <div class="modal-footer">\n <button\n *ngIf="mode === \'DATE_TIME\' || mode === \'DATE\'"\n class="btn btn-secondary today-btn"\n (click)="setToday()">{{appLocale.MESSAGE_DATE_PICKER_TODAY || "Today" }}</button>\n <button\n class="btn btn-primary pull-right ok-btn"\n *ngIf="mode === \'DATE_TIME\' || mode === \'TIME\'"\n (click)="onOkClick()">{{appLocale.MESSAGE_DATE_PICKER_OK || "Ok" }}</button>\n <button\n class="btn btn-secondary pull-right clear-btn"\n (click)="clear()">{{appLocale.MESSAGE_DATE_PICKER_CLEAR || "Clear" }}</button>\n </div>\n </div>\n </ng-template>\n '
|
|
27115
27099
|
} ]
|
|
27116
27100
|
} ];
|
|
27117
27101
|
DateTimePickerComponent.ctorParameters = function() {
|
|
@@ -27251,7 +27235,7 @@
|
|
|
27251
27235
|
type: core.Component,
|
|
27252
27236
|
args: [ {
|
|
27253
27237
|
selector: "wm-timepicker",
|
|
27254
|
-
template: '\n <wm-pickergroup>\n <wm-picker\n [options]="options.hour"\n [selectedValue]="hour"\n (change)="set($event, \'HOUR\')"></wm-picker>\n <span class="app-time-separator">:</span>\n <wm-picker\n [options]="options.minute"\n [selectedValue]="minute"\n (change)="set($event, \'MINUTE\')"></wm-picker>\n <span class="app-time-separator">:</span>\n <wm-picker\n [options]="options.minute"\n [selectedValue]="second"\n (change)="set($event, \'SECOND\')"></wm-picker>\n </wm-pickergroup>\n '
|
|
27238
|
+
template: ' \n <wm-pickergroup>\n <wm-picker \n [options]="options.hour"\n [selectedValue]="hour"\n (change)="set($event, \'HOUR\')"></wm-picker>\n <span class="app-time-separator">:</span>\n <wm-picker \n [options]="options.minute"\n [selectedValue]="minute"\n (change)="set($event, \'MINUTE\')"></wm-picker>\n <span class="app-time-separator">:</span>\n <wm-picker \n [options]="options.minute"\n [selectedValue]="second"\n (change)="set($event, \'SECOND\')"></wm-picker>\n </wm-pickergroup>\n '
|
|
27255
27239
|
} ]
|
|
27256
27240
|
} ];
|
|
27257
27241
|
TimePickerComponent.ctorParameters = function() {
|
|
@@ -27306,11 +27290,6 @@
|
|
|
27306
27290
|
_this._dateOptions.clearPosition = "right";
|
|
27307
27291
|
_this.meridians = common.getLocaleDayPeriods(_this.selectedLocale, common.FormStyle.Format, common.TranslationWidth.Abbreviated);
|
|
27308
27292
|
_this.loadNativeDateInput = core$1.isMobile() && !_this.showcustompicker;
|
|
27309
|
-
_this.cancelLocaleChangeSubscription = _this.getAppInstance().subscribe("locale-changed", (function(locale) {
|
|
27310
|
-
_this.datePipe.datePipe.locale = locale.angular;
|
|
27311
|
-
_this._dateOptions.todayButtonLabel = _this.i18nService.getLocalizedMessage("LABEL_TODAY_DATE");
|
|
27312
|
-
_this._dateOptions.clearButtonLabel = _this.i18nService.getLocalizedMessage("LABEL_CLEAR_DATE");
|
|
27313
|
-
}));
|
|
27314
27293
|
return _this;
|
|
27315
27294
|
}
|
|
27316
27295
|
Object.defineProperty(BaseDateTimeComponent.prototype, "timeZone", {
|
|
@@ -27531,8 +27510,6 @@
|
|
|
27531
27510
|
if (event.originalEvent) {
|
|
27532
27511
|
_this.setFocusForDate(-1);
|
|
27533
27512
|
}
|
|
27534
|
-
var prevMon = _this.getMonth(_this.activeDate, -1);
|
|
27535
|
-
$(".bs-datepicker-head .previous").prepend('<p aria-hidden="false" class="sr-only">Changed to Previous Month, ' + prevMon.fullMonth + " and year " + prevMon.date.getFullYear() + "</p>");
|
|
27536
27513
|
setTimeout((function() {
|
|
27537
27514
|
$(".bs-datepicker-head .previous").focus();
|
|
27538
27515
|
}));
|
|
@@ -27544,8 +27521,6 @@
|
|
|
27544
27521
|
if (event.originalEvent) {
|
|
27545
27522
|
_this.setFocusForDate(1);
|
|
27546
27523
|
}
|
|
27547
|
-
var nextMon = _this.getMonth(_this.activeDate, 1);
|
|
27548
|
-
$(".bs-datepicker-head .next").prepend('<p aria-hidden="false" class="sr-only">Changed to Next Month, ' + nextMon.fullMonth + " and year " + nextMon.date.getFullYear() + "</p>");
|
|
27549
27524
|
setTimeout((function() {
|
|
27550
27525
|
$(".bs-datepicker-head .next").focus();
|
|
27551
27526
|
}));
|
|
@@ -27561,10 +27536,21 @@
|
|
|
27561
27536
|
_this.setFocusForMonthOrDay();
|
|
27562
27537
|
}
|
|
27563
27538
|
}));
|
|
27564
|
-
|
|
27565
|
-
|
|
27566
|
-
|
|
27567
|
-
|
|
27539
|
+
datePickerHead.find(".next").attr("aria-label", "Next Month, " + this.next.fullMonth + " " + this.next.date.getFullYear());
|
|
27540
|
+
datePickerHead.find(".previous").attr("aria-label", "Previous Month, " + this.prev.fullMonth + " " + this.prev.date.getFullYear());
|
|
27541
|
+
setTimeout((function() {
|
|
27542
|
+
var currentNodes = datePickerHead.find(".current span");
|
|
27543
|
+
var msg = "Changed to month ";
|
|
27544
|
+
datePickerHead.find(".current").attr("aria-live", "assertive").attr("aria-atomic", "false");
|
|
27545
|
+
if (_this.clicked) {
|
|
27546
|
+
if ($(currentNodes[0]).text()) {
|
|
27547
|
+
datePickerHead.find(".ng-star-inserted").prepend('<div class="sr-only">' + msg + "</div>");
|
|
27548
|
+
}
|
|
27549
|
+
if ($(currentNodes[1]).text()) {
|
|
27550
|
+
datePickerHead.find(".current").last().prepend('<div class="sr-only"> and year </div>');
|
|
27551
|
+
}
|
|
27552
|
+
}
|
|
27553
|
+
}));
|
|
27568
27554
|
};
|
|
27569
27555
|
BaseDateTimeComponent.prototype.setFocusForMonthOrDay = function() {
|
|
27570
27556
|
var activeMonthOrYear = $(".bs-datepicker-head .current").first().text();
|
|
@@ -28084,9 +28070,6 @@
|
|
|
28084
28070
|
if (this.dateOnShowSubscription) {
|
|
28085
28071
|
this.dateOnShowSubscription.unsubscribe();
|
|
28086
28072
|
}
|
|
28087
|
-
if (this.cancelLocaleChangeSubscription) {
|
|
28088
|
-
this.cancelLocaleChangeSubscription();
|
|
28089
|
-
}
|
|
28090
28073
|
_super.prototype.ngOnDestroy.call(this);
|
|
28091
28074
|
};
|
|
28092
28075
|
BaseDateTimeComponent.prototype.ngOnDetach = function() {
|
|
@@ -28320,6 +28303,7 @@
|
|
|
28320
28303
|
this.invokeEventCallback("click", {
|
|
28321
28304
|
$event: $event
|
|
28322
28305
|
});
|
|
28306
|
+
this.focusOnInputEl();
|
|
28323
28307
|
}
|
|
28324
28308
|
if ($event.target && $($event.target).is("input") && !this.isDropDownDisplayEnabledOnInput(this.showdropdownon)) {
|
|
28325
28309
|
$event.stopPropagation();
|
|
@@ -28706,6 +28690,7 @@
|
|
|
28706
28690
|
this.invokeEventCallback("click", {
|
|
28707
28691
|
$event: $event
|
|
28708
28692
|
});
|
|
28693
|
+
this.focusOnInputEl();
|
|
28709
28694
|
}
|
|
28710
28695
|
if ($event.target && $($event.target).is("input") && !this.isDropDownDisplayEnabledOnInput(this.showdropdownon)) {
|
|
28711
28696
|
$event.stopPropagation();
|
|
@@ -29027,6 +29012,7 @@
|
|
|
29027
29012
|
this.invokeEventCallback("click", {
|
|
29028
29013
|
$event: $event
|
|
29029
29014
|
});
|
|
29015
|
+
this.focusOnInputEl();
|
|
29030
29016
|
}
|
|
29031
29017
|
if ($event.target && $($event.target).is("input") && !this.isDropDownDisplayEnabledOnInput(this.showdropdownon)) {
|
|
29032
29018
|
return;
|
|
@@ -68323,7 +68309,6 @@
|
|
|
68323
68309
|
timezone: "",
|
|
68324
68310
|
number: ""
|
|
68325
68311
|
};
|
|
68326
|
-
_this.bundleLoaded = {};
|
|
68327
68312
|
_this.appLocale = {};
|
|
68328
68313
|
_this.prefabLocale = new Map;
|
|
68329
68314
|
return _this;
|
|
@@ -68390,8 +68375,6 @@
|
|
|
68390
68375
|
_this.extendMessages(bundle.messages);
|
|
68391
68376
|
_this.extendPrefabMessages(bundle);
|
|
68392
68377
|
_this.appDefaults.setFormats(bundle.formats);
|
|
68393
|
-
_this.bundleLoaded.app = true;
|
|
68394
|
-
_this.notifyLocaleChanged();
|
|
68395
68378
|
}));
|
|
68396
68379
|
};
|
|
68397
68380
|
I18nServiceImpl.prototype.loadMomentLocaleBundle = function(momentLocale) {
|
|
@@ -68408,8 +68391,6 @@
|
|
|
68408
68391
|
_config = _config && _config._config;
|
|
68409
68392
|
chronos.defineLocale(_this.selectedLocale, _config);
|
|
68410
68393
|
_this.bsLocaleService.use(_this.getSelectedLocale() || _this.defaultSupportedLocale);
|
|
68411
|
-
_this.bundleLoaded.moment = true;
|
|
68412
|
-
_this.notifyLocaleChanged();
|
|
68413
68394
|
}));
|
|
68414
68395
|
};
|
|
68415
68396
|
I18nServiceImpl.prototype.loadAngularLocaleBundle = function(angLocale) {
|
|
@@ -68439,7 +68420,6 @@
|
|
|
68439
68420
|
return Promise.resolve();
|
|
68440
68421
|
}
|
|
68441
68422
|
if (!force && (i2.isMobile() || i2.isMobileApp() || this.selectedLocale === this.defaultSupportedLocale)) {
|
|
68442
|
-
this.bundleLoaded.fullCalendar = true;
|
|
68443
68423
|
return;
|
|
68444
68424
|
}
|
|
68445
68425
|
return i2.loadScripts([ path ], true);
|
|
@@ -68469,21 +68449,11 @@
|
|
|
68469
68449
|
}));
|
|
68470
68450
|
};
|
|
68471
68451
|
I18nServiceImpl.prototype.loadLocaleBundles = function(libLocale) {
|
|
68472
|
-
var _this = this;
|
|
68473
|
-
var _a;
|
|
68474
68452
|
if (libLocale.moment) {
|
|
68475
68453
|
this.loadMomentLocaleBundle(libLocale.moment);
|
|
68476
|
-
} else if (this.selectedLocale === this.defaultSupportedLocale) {
|
|
68477
|
-
this.bsLocaleService.use(this.getSelectedLocale() || this.defaultSupportedLocale);
|
|
68478
|
-
this.bundleLoaded.moment = true;
|
|
68479
68454
|
}
|
|
68480
68455
|
if (libLocale.fullCalendar && window["FullCalendar"]) {
|
|
68481
|
-
|
|
68482
|
-
_this.bundleLoaded.fullCalendar = true;
|
|
68483
|
-
_this.notifyLocaleChanged();
|
|
68484
|
-
}));
|
|
68485
|
-
} else {
|
|
68486
|
-
this.bundleLoaded.fullCalendar = true;
|
|
68456
|
+
this.loadCalendarLocaleBundle(libLocale.fullCalendar);
|
|
68487
68457
|
}
|
|
68488
68458
|
if (libLocale.angular) {
|
|
68489
68459
|
this.loadAppLocaleBundle();
|
|
@@ -68523,15 +68493,8 @@
|
|
|
68523
68493
|
i2.setSessionStorageItem("selectedLocale", locale);
|
|
68524
68494
|
this.selectedLocale = locale;
|
|
68525
68495
|
this.init();
|
|
68526
|
-
this.bundleLoaded.moment = false;
|
|
68527
|
-
this.bundleLoaded.fullCalendar = false;
|
|
68528
|
-
this.bundleLoaded.app = false;
|
|
68529
|
-
this.bundleLoaded.angular = false;
|
|
68530
|
-
this.bundleLoaded.libLocale = libLocale;
|
|
68531
68496
|
return this.loadLocaleBundles(libLocale).then((function() {
|
|
68532
|
-
_this.updateLocaleDirection();
|
|
68533
|
-
_this.bundleLoaded.angular = true;
|
|
68534
|
-
_this.notifyLocaleChanged();
|
|
68497
|
+
return _this.updateLocaleDirection();
|
|
68535
68498
|
}));
|
|
68536
68499
|
};
|
|
68537
68500
|
I18nServiceImpl.prototype.deduceAppLocale = function() {
|
|
@@ -68567,7 +68530,6 @@
|
|
|
68567
68530
|
return defaultLanguage;
|
|
68568
68531
|
};
|
|
68569
68532
|
I18nServiceImpl.prototype.loadDefaultLocale = function() {
|
|
68570
|
-
Date.prototype["month"] = Date.prototype.getMonth;
|
|
68571
68533
|
var locale = this.deduceAppLocale();
|
|
68572
68534
|
return this.setSelectedLocale(locale);
|
|
68573
68535
|
};
|
|
@@ -68605,11 +68567,6 @@
|
|
|
68605
68567
|
I18nServiceImpl.prototype.getwidgetLocale = function() {
|
|
68606
68568
|
return this.formatsByLocale;
|
|
68607
68569
|
};
|
|
68608
|
-
I18nServiceImpl.prototype.notifyLocaleChanged = function() {
|
|
68609
|
-
if (this.bundleLoaded.moment && this.bundleLoaded.fullCalendar && this.bundleLoaded.angular && this.bundleLoaded.app) {
|
|
68610
|
-
this.app.notify("locale-changed", this.bundleLoaded.libLocale);
|
|
68611
|
-
}
|
|
68612
|
-
};
|
|
68613
68570
|
return I18nServiceImpl;
|
|
68614
68571
|
}(i2.AbstractI18nService);
|
|
68615
68572
|
I18nServiceImpl.decorators = [ {
|