@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;
|
|
@@ -64649,7 +64635,7 @@
|
|
|
64649
64635
|
}
|
|
64650
64636
|
ImageCacheDirective.prototype.ngDoCheck = function() {
|
|
64651
64637
|
var _this = this;
|
|
64652
|
-
if (
|
|
64638
|
+
if (this.componentInstance.imgSource && this.componentInstance.imgSource.startsWith("http")) {
|
|
64653
64639
|
if (this._lastUrl !== this.componentInstance.imgSource) {
|
|
64654
64640
|
this._lastUrl = this.componentInstance.imgSource;
|
|
64655
64641
|
this.componentInstance.imgSource = DEFAULT_IMAGE;
|
|
@@ -82927,7 +82913,6 @@
|
|
|
82927
82913
|
timezone: "",
|
|
82928
82914
|
number: ""
|
|
82929
82915
|
};
|
|
82930
|
-
_this.bundleLoaded = {};
|
|
82931
82916
|
_this.appLocale = {};
|
|
82932
82917
|
_this.prefabLocale = new Map;
|
|
82933
82918
|
return _this;
|
|
@@ -82994,8 +82979,6 @@
|
|
|
82994
82979
|
_this.extendMessages(bundle.messages);
|
|
82995
82980
|
_this.extendPrefabMessages(bundle);
|
|
82996
82981
|
_this.appDefaults.setFormats(bundle.formats);
|
|
82997
|
-
_this.bundleLoaded.app = true;
|
|
82998
|
-
_this.notifyLocaleChanged();
|
|
82999
82982
|
}));
|
|
83000
82983
|
};
|
|
83001
82984
|
I18nServiceImpl.prototype.loadMomentLocaleBundle = function(momentLocale) {
|
|
@@ -83012,8 +82995,6 @@
|
|
|
83012
82995
|
_config = _config && _config._config;
|
|
83013
82996
|
chronos.defineLocale(_this.selectedLocale, _config);
|
|
83014
82997
|
_this.bsLocaleService.use(_this.getSelectedLocale() || _this.defaultSupportedLocale);
|
|
83015
|
-
_this.bundleLoaded.moment = true;
|
|
83016
|
-
_this.notifyLocaleChanged();
|
|
83017
82998
|
}));
|
|
83018
82999
|
};
|
|
83019
83000
|
I18nServiceImpl.prototype.loadAngularLocaleBundle = function(angLocale) {
|
|
@@ -83043,7 +83024,6 @@
|
|
|
83043
83024
|
return Promise.resolve();
|
|
83044
83025
|
}
|
|
83045
83026
|
if (!force && (i2.isMobile() || i2.isMobileApp() || this.selectedLocale === this.defaultSupportedLocale)) {
|
|
83046
|
-
this.bundleLoaded.fullCalendar = true;
|
|
83047
83027
|
return;
|
|
83048
83028
|
}
|
|
83049
83029
|
return i2.loadScripts([ path ], true);
|
|
@@ -83073,21 +83053,11 @@
|
|
|
83073
83053
|
}));
|
|
83074
83054
|
};
|
|
83075
83055
|
I18nServiceImpl.prototype.loadLocaleBundles = function(libLocale) {
|
|
83076
|
-
var _this = this;
|
|
83077
|
-
var _a;
|
|
83078
83056
|
if (libLocale.moment) {
|
|
83079
83057
|
this.loadMomentLocaleBundle(libLocale.moment);
|
|
83080
|
-
} else if (this.selectedLocale === this.defaultSupportedLocale) {
|
|
83081
|
-
this.bsLocaleService.use(this.getSelectedLocale() || this.defaultSupportedLocale);
|
|
83082
|
-
this.bundleLoaded.moment = true;
|
|
83083
83058
|
}
|
|
83084
83059
|
if (libLocale.fullCalendar && window["FullCalendar"]) {
|
|
83085
|
-
|
|
83086
|
-
_this.bundleLoaded.fullCalendar = true;
|
|
83087
|
-
_this.notifyLocaleChanged();
|
|
83088
|
-
}));
|
|
83089
|
-
} else {
|
|
83090
|
-
this.bundleLoaded.fullCalendar = true;
|
|
83060
|
+
this.loadCalendarLocaleBundle(libLocale.fullCalendar);
|
|
83091
83061
|
}
|
|
83092
83062
|
if (libLocale.angular) {
|
|
83093
83063
|
this.loadAppLocaleBundle();
|
|
@@ -83127,15 +83097,8 @@
|
|
|
83127
83097
|
i2.setSessionStorageItem("selectedLocale", locale);
|
|
83128
83098
|
this.selectedLocale = locale;
|
|
83129
83099
|
this.init();
|
|
83130
|
-
this.bundleLoaded.moment = false;
|
|
83131
|
-
this.bundleLoaded.fullCalendar = false;
|
|
83132
|
-
this.bundleLoaded.app = false;
|
|
83133
|
-
this.bundleLoaded.angular = false;
|
|
83134
|
-
this.bundleLoaded.libLocale = libLocale;
|
|
83135
83100
|
return this.loadLocaleBundles(libLocale).then((function() {
|
|
83136
|
-
_this.updateLocaleDirection();
|
|
83137
|
-
_this.bundleLoaded.angular = true;
|
|
83138
|
-
_this.notifyLocaleChanged();
|
|
83101
|
+
return _this.updateLocaleDirection();
|
|
83139
83102
|
}));
|
|
83140
83103
|
};
|
|
83141
83104
|
I18nServiceImpl.prototype.deduceAppLocale = function() {
|
|
@@ -83171,7 +83134,6 @@
|
|
|
83171
83134
|
return defaultLanguage;
|
|
83172
83135
|
};
|
|
83173
83136
|
I18nServiceImpl.prototype.loadDefaultLocale = function() {
|
|
83174
|
-
Date.prototype["month"] = Date.prototype.getMonth;
|
|
83175
83137
|
var locale = this.deduceAppLocale();
|
|
83176
83138
|
return this.setSelectedLocale(locale);
|
|
83177
83139
|
};
|
|
@@ -83209,11 +83171,6 @@
|
|
|
83209
83171
|
I18nServiceImpl.prototype.getwidgetLocale = function() {
|
|
83210
83172
|
return this.formatsByLocale;
|
|
83211
83173
|
};
|
|
83212
|
-
I18nServiceImpl.prototype.notifyLocaleChanged = function() {
|
|
83213
|
-
if (this.bundleLoaded.moment && this.bundleLoaded.fullCalendar && this.bundleLoaded.angular && this.bundleLoaded.app) {
|
|
83214
|
-
this.app.notify("locale-changed", this.bundleLoaded.libLocale);
|
|
83215
|
-
}
|
|
83216
|
-
};
|
|
83217
83174
|
return I18nServiceImpl;
|
|
83218
83175
|
}(i2.AbstractI18nService);
|
|
83219
83176
|
I18nServiceImpl.decorators = [ {
|