@wavemaker/app-runtime-wm-build 11.4.1-next.140982 → 11.4.1-next.140983
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-loader.js +32 -15
- 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-mobileloader.js +32 -15
- app-runtime-wm-build/wmmobile/scripts/wm-mobileloader.min.js +5 -5
- app-runtime-wm-build/wmmobile/styles/css/wm-style.css +1 -1
|
@@ -4387,7 +4387,7 @@
|
|
|
4387
4387
|
}();
|
|
4388
4388
|
var MINIMUM_MOBILE_WIDTH = 480;
|
|
4389
4389
|
var MINIMUM_TAB_WIDTH = 768;
|
|
4390
|
-
var MINIMUM_LARGE_SCREEN_WIDTH =
|
|
4390
|
+
var MINIMUM_LARGE_SCREEN_WIDTH = 1200;
|
|
4391
4391
|
var IViewportService = function() {
|
|
4392
4392
|
function IViewportService() {}
|
|
4393
4393
|
return IViewportService;
|
|
@@ -4472,11 +4472,13 @@
|
|
|
4472
4472
|
} else {
|
|
4473
4473
|
MINIMUM_MOBILE_WIDTH = parseInt(getComputedStyle(document.documentElement).getPropertyValue("--screen-xs")) || 480;
|
|
4474
4474
|
MINIMUM_TAB_WIDTH = parseInt(getComputedStyle(document.documentElement).getPropertyValue("--screen-sm")) || 768;
|
|
4475
|
-
|
|
4475
|
+
MINIMUM_LARGE_SCREEN_WIDTH = parseInt(getComputedStyle(document.documentElement).getPropertyValue("--screen-lg")) || 1200;
|
|
4476
|
+
if (this.screenWidth >= MINIMUM_LARGE_SCREEN_WIDTH) {
|
|
4477
|
+
this.isTabletType = isAndroid() || isIos() || isAndroidTablet();
|
|
4478
|
+
this.isMobileType = false;
|
|
4479
|
+
} else if (this.screenWidth >= MINIMUM_TAB_WIDTH) {
|
|
4476
4480
|
this.type = 1;
|
|
4477
|
-
|
|
4478
|
-
this.isTabletType = true;
|
|
4479
|
-
}
|
|
4481
|
+
this.isTabletType = true;
|
|
4480
4482
|
} else {
|
|
4481
4483
|
this.type = 0;
|
|
4482
4484
|
this.isMobileType = true;
|
|
@@ -17217,7 +17219,7 @@
|
|
|
17217
17219
|
type: core.Component,
|
|
17218
17220
|
args: [ {
|
|
17219
17221
|
selector: "[wmCheckbox]",
|
|
17220
|
-
template: '<label [ngClass]="{\'unchecked\': !proxyModel, \'disabled\': (disabled || readonly), \'required\': (required && _caption)}" (mouseenter)="onMouseOver()">\n <input type="checkbox"\n role="checkbox"\n #checkbox\n [attr.name]="name"\n [attr.aria-label]="hint"\n [attr.aria-checked]="!!proxyModel"\n focus-target\n [(ngModel)]="proxyModel"\n [readonly]="readonly"\n [required]="required"\n [disabled]="disabled || readonly"\n [attr.accesskey]="shortcutkey"\n [tabindex]="tabindex"\n (blur)="invokeOnTouched($event)"\n (ngModelChange)="handleChange($event)">\n <span class="toggle_slider">\n <i class="app-icon {{checkedicon}} toggle-checked" aria-hidden="true" [ngStyle]="{width:iconwidth, height:iconheight, margin:iconmargin, color:getColor(), fontSize:iconwidth}" *ngIf="proxyModel && togglewithicon"></i>\n <i class="app-icon {{uncheckedicon}} toggle-unchecked" aria-hidden="true" [ngStyle]="{width:iconwidth, height:iconheight, margin:iconmargin, fontSize:iconwidth}" *ngIf="!proxyModel && togglewithicon"></i>\n </span>\n <span class="caption" [innerHtml]="_caption"></span>\n <img alt="Checkbox Image" aria-hidden="true" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" class="switch"/>\n</label>\n<input type="hidden" class="ng-hide model-holder" aria-hidden="true" tabindex="-1" [disabled]="disabled" [value]="proxyModel">\n',
|
|
17222
|
+
template: '<label [ngClass]="{\'unchecked\': !proxyModel, \'disabled\': (disabled || readonly), \'required\': (required && _caption)}" (mouseenter)="onMouseOver()">\n <input type="checkbox"\n role="checkbox"\n #checkbox\n [attr.name]="name"\n [attr.aria-label]="hint"\n [attr.aria-checked]="!!proxyModel"\n focus-target\n [(ngModel)]="proxyModel"\n [readonly]="readonly"\n [required]="required"\n [disabled]="disabled || readonly"\n [attr.accesskey]="shortcutkey"\n [tabindex]="tabindex"\n (blur)="invokeOnTouched($event)"\n (ngModelChange)="handleChange($event)">\n <span class="toggle_slider" ng-if="!isNativeMobileApplicationType">\n <i class="app-icon {{checkedicon}} toggle-checked" aria-hidden="true" [ngStyle]="{width:iconwidth, height:iconheight, margin:iconmargin, color:getColor(), fontSize:iconwidth}" *ngIf="proxyModel && togglewithicon"></i>\n <i class="app-icon {{uncheckedicon}} toggle-unchecked" aria-hidden="true" [ngStyle]="{width:iconwidth, height:iconheight, margin:iconmargin, fontSize:iconwidth}" *ngIf="!proxyModel && togglewithicon"></i>\n </span>\n <span class="caption" [innerHtml]="_caption"></span>\n <img alt="Checkbox Image" aria-hidden="true" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" class="switch"/>\n</label>\n<input type="hidden" class="ng-hide model-holder" aria-hidden="true" tabindex="-1" [disabled]="disabled" [value]="proxyModel">\n',
|
|
17221
17223
|
providers: [ base.provideAs(CheckboxComponent, forms.NG_VALUE_ACCESSOR, true), base.provideAs(CheckboxComponent, forms.NG_VALIDATORS, true), base.provideAsWidgetRef(CheckboxComponent) ]
|
|
17222
17224
|
} ]
|
|
17223
17225
|
} ];
|
|
@@ -22315,17 +22317,11 @@
|
|
|
22315
22317
|
});
|
|
22316
22318
|
};
|
|
22317
22319
|
SearchComponent.prototype.onFocusOut = function() {
|
|
22318
|
-
var _this = this;
|
|
22319
22320
|
this._unsubscribeDv = false;
|
|
22320
22321
|
this._loadingItems = false;
|
|
22321
22322
|
this.page = 1;
|
|
22322
22323
|
if (!this._domUpdated && this._isOpen) {
|
|
22323
22324
|
this.listenQuery = false;
|
|
22324
|
-
setTimeout((function() {
|
|
22325
|
-
if (_this.typeahead._typeahead.isShown) {
|
|
22326
|
-
_this.typeahead.hide();
|
|
22327
|
-
}
|
|
22328
|
-
}), 200);
|
|
22329
22325
|
}
|
|
22330
22326
|
this._isOpen = false;
|
|
22331
22327
|
if (this._domUpdated && this.typeahead && this.typeahead._container) {
|
|
@@ -28216,8 +28212,11 @@
|
|
|
28216
28212
|
return core$1.getFormattedDate(this.datePipe, this.bsDataValue, this.outputformat, this.timeZone, null, this.isCurrentDate, this) || "";
|
|
28217
28213
|
},
|
|
28218
28214
|
set: function(newVal) {
|
|
28215
|
+
var _this = this;
|
|
28219
28216
|
if (newVal === CURRENT_DATE$1) {
|
|
28220
|
-
|
|
28217
|
+
setTimeout((function() {
|
|
28218
|
+
_this.bsDataValue = _this.timeZone ? core$1.getMomentLocaleObject(_this.timeZone) : new Date;
|
|
28219
|
+
}), 50);
|
|
28221
28220
|
this.isCurrentDate = true;
|
|
28222
28221
|
} else {
|
|
28223
28222
|
this.bsDataValue = newVal ? core$1.getDateObj(newVal, {
|
|
@@ -58628,7 +58627,9 @@
|
|
|
58628
58627
|
value: true
|
|
58629
58628
|
}, base.PROP_BOOLEAN) ], [ "statehandler", Object.assign({
|
|
58630
58629
|
value: "none"
|
|
58631
|
-
}, base.PROP_STRING) ], [ "transition", base.PROP_STRING ], [ "type", base.PROP_STRING ] ]
|
|
58630
|
+
}, base.PROP_STRING) ], [ "transition", base.PROP_STRING ], [ "type", base.PROP_STRING ], [ "tabwithicon", base.PROP_BOOLEAN ], [ "iconposition", Object.assign({
|
|
58631
|
+
value: "left"
|
|
58632
|
+
}, base.PROP_STRING) ] ]);
|
|
58632
58633
|
if (core.isMobileApp()) {
|
|
58633
58634
|
props.set("transition", Object.assign({
|
|
58634
58635
|
value: "slide"
|
|
@@ -58639,7 +58640,9 @@
|
|
|
58639
58640
|
var registerProps = function() {
|
|
58640
58641
|
base.register("wm-tabpane", new Map([ [ "active", base.PROP_BOOLEAN ], [ "badgevalue", base.PROP_STRING ], [ "badgetype", Object.assign({
|
|
58641
58642
|
value: "default"
|
|
58642
|
-
}, base.PROP_STRING) ], [ "class", base.PROP_STRING ], [ "content", base.PROP_STRING ], [ "disabled", base.PROP_BOOLEAN ], [ "dynamicPaneIndex", base.PROP_NUMBER ], [ "heading", base.PROP_STRING ], [ "isdefaulttab", base.PROP_STRING ], [ "isdynamic", base.PROP_BOOLEAN ], [ "name", base.PROP_STRING ], [ "paneicon",
|
|
58643
|
+
}, base.PROP_STRING) ], [ "class", base.PROP_STRING ], [ "content", base.PROP_STRING ], [ "disabled", base.PROP_BOOLEAN ], [ "dynamicPaneIndex", base.PROP_NUMBER ], [ "heading", base.PROP_STRING ], [ "isdefaulttab", base.PROP_STRING ], [ "isdynamic", base.PROP_BOOLEAN ], [ "name", base.PROP_STRING ], [ "paneicon", Object.assign({
|
|
58644
|
+
value: "wi wi-home"
|
|
58645
|
+
}, base.PROP_STRING) ], [ "show", Object.assign({
|
|
58643
58646
|
value: true
|
|
58644
58647
|
}, base.PROP_BOOLEAN) ], [ "smoothscroll", Object.assign({
|
|
58645
58648
|
value: false
|
|
@@ -59053,6 +59056,18 @@
|
|
|
59053
59056
|
core.addClass(this.nativeElement, "inverted");
|
|
59054
59057
|
}
|
|
59055
59058
|
};
|
|
59059
|
+
TabsComponent.prototype.setIconPosition = function() {
|
|
59060
|
+
var _tabdiv = this.nativeElement.children[0], _tabheader = $(_tabdiv).find("li a.tab-heading");
|
|
59061
|
+
if (this.iconposition === "right") {
|
|
59062
|
+
_tabheader.addClass("icon_right");
|
|
59063
|
+
} else if (this.iconposition === "top") {
|
|
59064
|
+
_tabheader.addClass("icon_top");
|
|
59065
|
+
_tabheader.removeClass("icon_right");
|
|
59066
|
+
} else {
|
|
59067
|
+
_tabheader.removeClass("icon_top");
|
|
59068
|
+
_tabheader.removeClass("icon_right");
|
|
59069
|
+
}
|
|
59070
|
+
};
|
|
59056
59071
|
TabsComponent.prototype.onDataChange = function(newVal) {
|
|
59057
59072
|
var _this = this;
|
|
59058
59073
|
this.fieldDefs = base.createArrayFrom(newVal);
|
|
@@ -59089,6 +59104,8 @@
|
|
|
59089
59104
|
return _this.selectDefaultPaneByIndex(_this.defaultpaneindex || 0);
|
|
59090
59105
|
}), 20);
|
|
59091
59106
|
}
|
|
59107
|
+
} else if (key === "iconposition") {
|
|
59108
|
+
this.setIconPosition();
|
|
59092
59109
|
} else {
|
|
59093
59110
|
_super.prototype.onPropertyChange.call(this, key, nv, ov);
|
|
59094
59111
|
}
|