@wavemaker/app-runtime-wm-build 11.4.3-next.25761 → 11.4.3-next.25763
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 +1 -1
- app-runtime-wm-build/wmapp/scripts/wm-libs.min.js +1 -1
- app-runtime-wm-build/wmapp/scripts/wm-loader.js +9 -4
- app-runtime-wm-build/wmapp/scripts/wm-loader.min.js +4 -4
- app-runtime-wm-build/wmapp/styles/css/wm-style.css +1 -1
- app-runtime-wm-build/wmmobile/scripts/wm-libs.js +1 -1
- app-runtime-wm-build/wmmobile/scripts/wm-libs.min.js +1 -1
- app-runtime-wm-build/wmmobile/scripts/wm-mobileloader.js +9 -4
- app-runtime-wm-build/wmmobile/scripts/wm-mobileloader.min.js +4 -4
- app-runtime-wm-build/wmmobile/styles/css/wm-style.css +1 -1
|
@@ -199274,7 +199274,7 @@ window.requestAnimationFrame = function() {
|
|
|
199274
199274
|
var _this = this;
|
|
199275
199275
|
return new Promise((function(resolve, reject) {
|
|
199276
199276
|
requestParams["_source"] = "variable";
|
|
199277
|
-
variable.httpService.sendCall(requestParams, variable).then((function(response) {
|
|
199277
|
+
variable.httpService.sendCall(requestParams, variable, params).then((function(response) {
|
|
199278
199278
|
if (response && response.type || response && response.status) {
|
|
199279
199279
|
_this.setRequestTrackId(response, variable);
|
|
199280
199280
|
resolve(response);
|
|
@@ -4267,7 +4267,7 @@ i.version="2.29.4",o(Zn),i.fn=lo,i.min=er,i.max=tr,i.now=nr,i.utc=m,i.unix=co,i.
|
|
|
4267
4267
|
/*!*******************************************************!*\
|
|
4268
4268
|
!*** ./src/manager/variable/base-variable.manager.ts ***!
|
|
4269
4269
|
\*******************************************************/
|
|
4270
|
-
(e,t,n)=>{"use strict";n.r(t),n.d(t,{BaseVariableManager:()=>a});var r=n(/*! ./../../util/variable/variables.utils */"./src/util/variable/variables.utils.ts"),i=n(/*! lodash */"./node_modules/lodash/lodash.js"),o=n.n(i),a=function(){function e(){}return e.prototype.initBinding=function(e,t,n){},e.prototype.notifyInflight=function(e,t,n,i){r.appManager&&r.appManager.notify("toggle-variable-state",{variable:e,active:t,data:n,options:i})},e.prototype.setRequestTrackId=function(e,t){void 0===e&&(e={}),e.headers=e.headers||{};var n=e.headers.get&&e.headers.get("x-wm-request-track-id")||e.headers["x-wm-request-track-id"];n&&(t._requestTrackId=n)},e.prototype.httpCall=function(e,t,n){var r=this;return new Promise((function(
|
|
4270
|
+
(e,t,n)=>{"use strict";n.r(t),n.d(t,{BaseVariableManager:()=>a});var r=n(/*! ./../../util/variable/variables.utils */"./src/util/variable/variables.utils.ts"),i=n(/*! lodash */"./node_modules/lodash/lodash.js"),o=n.n(i),a=function(){function e(){}return e.prototype.initBinding=function(e,t,n){},e.prototype.notifyInflight=function(e,t,n,i){r.appManager&&r.appManager.notify("toggle-variable-state",{variable:e,active:t,data:n,options:i})},e.prototype.setRequestTrackId=function(e,t){void 0===e&&(e={}),e.headers=e.headers||{};var n=e.headers.get&&e.headers.get("x-wm-request-track-id")||e.headers["x-wm-request-track-id"];n&&(t._requestTrackId=n)},e.prototype.httpCall=function(e,t,n){var r=this;return new Promise((function(i,o){e._source="variable",t.httpService.sendCall(e,t,n).then((function(e){(e&&e.type||e&&e.status)&&(r.setRequestTrackId(e,t),i(e))}),(function(e){r.setRequestTrackId(e,t),t.httpService.isPlatformSessionTimeout&&t.httpService.isPlatformSessionTimeout(e)?(r.notifyInflight(t,!1,e),e._401Subscriber.asObservable().subscribe((function(e){return i(e)}),(function(e){return o(e)}))):o(e)}))}))},e.prototype.prepareCallbackOptions=function(e,t){var n={};return n.xhrObj=e,t&&o().extend(n,t),n},e}()},"./src/manager/variable/crud-variable.manager.ts":
|
|
4271
4271
|
/*!*******************************************************!*\
|
|
4272
4272
|
!*** ./src/manager/variable/crud-variable.manager.ts ***!
|
|
4273
4273
|
\*******************************************************/
|
|
@@ -7243,14 +7243,14 @@
|
|
|
7243
7243
|
}
|
|
7244
7244
|
return new http.HttpRequest(options.method, options.url, third, fourth);
|
|
7245
7245
|
};
|
|
7246
|
-
HttpServiceImpl.prototype.sendCallAsObservable = function(options) {
|
|
7246
|
+
HttpServiceImpl.prototype.sendCallAsObservable = function(options, params) {
|
|
7247
7247
|
var req = this.generateRequest(options);
|
|
7248
7248
|
return this.httpClient.request(req);
|
|
7249
7249
|
};
|
|
7250
|
-
HttpServiceImpl.prototype.sendCall = function(requestParams, variable) {
|
|
7250
|
+
HttpServiceImpl.prototype.sendCall = function(requestParams, variable, params) {
|
|
7251
7251
|
var _this = this;
|
|
7252
7252
|
return new Promise((function(resolve, reject) {
|
|
7253
|
-
variable._observable = _this.sendCallAsObservable(requestParams).subscribe((function(response) {
|
|
7253
|
+
variable._observable = _this.sendCallAsObservable(requestParams, params).subscribe((function(response) {
|
|
7254
7254
|
if (response && response.type) {
|
|
7255
7255
|
resolve(response);
|
|
7256
7256
|
}
|
|
@@ -22717,7 +22717,7 @@
|
|
|
22717
22717
|
type: core$1.Component,
|
|
22718
22718
|
args: [ {
|
|
22719
22719
|
selector: "[wmSearch]",
|
|
22720
|
-
template: '<ng-template #customItemTemplate let-model="item" let-index="index" let-query="query" let-match="match">\n \x3c!-- Default item template --\x3e\n <a *ngIf="!content">\n <img *ngIf="model.imgSrc" [src]="model.imgSrc" alt="Search" [style.width]="imagewidth">\n <span [title]="model.label" [innerHtml]="highlight(match, query) || model.label"></span>\n </a>\n \x3c!-- Custom partial template --\x3e\n <a *ngIf="content" [ngClass]="{customTemplate: content}" partialContainer [wmItemTemplate]="content" [userComponentParams]="match.item">\n <div partial-container-target></div>\n </a>\n</ng-template>\n\n<ng-template #customListTemplate let-matches="matches" let-itemTemplate="itemTemplate" let-query="query">\n <ul #ulElement class="app-search dropdown-menu" scrollable>\n <li #liElements *ngFor="let match of matches" [ngClass]="{active: typeaheadContainer && typeaheadContainer.isActive(match), \'list-group-header\': match && match.isHeader()}"\n (mouseenter)="typeaheadContainer.selectActive(match);"\n (click)="match && !match.isHeader() && typeaheadContainer.selectMatch(match, $event); $typeaheadEvent = $event; notifySubscriber();">\n \x3c!-- itemTemplate comes from the <input> --\x3e\n <h4 *ngIf="match.isHeader()" class="group-title">{{match.value}}</h4>\n <ng-container *ngIf="!match.isHeader()" [ngTemplateOutlet]="itemTemplate"\n [ngTemplateOutletContext]="{item: match.item, index: i, match: match, query: query}">\n </ng-container>\n </li>\n <div class="status" [hidden]="_loadingItems || !(datacompletemsg && dataProvider.isLastPage)">\n <span [textContent]="datacompletemsg"></span>\n </div>\n <div class="status" [hidden]="!_loadingItems">\n <i class="fa fa-circle-o-notch fa-spin"></i>\n <span [textContent]="loadingdatamsg"></span>\n </div>\n </ul>\n</ng-template>\n\n\x3c!--This template is for search inside mobile navbar.--\x3e\n<ng-container *ngIf="navsearchbar; else searchTemplate">\n <input [title]="query || \'\'" type="text" class="app-textbox form-control list-of-objs app-search-input" [placeholder]="placeholder || \'\'"\n focus-target\n container="body"\n [disabled]="disabled"\n autocomplete="off"\n [(ngModel)]="query"\n [readonly]="readonly"\n [disabled]="disabled"\n [typeahead]="typeaheadDataSource"\n [typeaheadWaitMs]="debouncetime"\n [typeaheadItemTemplate]="customItemTemplate"\n [optionsListTemplate]="customListTemplate"\n (input)="onInputChange($event)"\n (keydown)="listenQuery = true"\n (keydown.enter)="$typeaheadEvent = $event;handleEnterEvent($event)"\n (keydown.arrowdown)="selectNext($event)"\n (blur)="invokeOnTouched($event)"\n (click)="handleFocus($event);"\n (focus)="_unsubscribeDv = false; listenQuery = true; handleFocus($event); invokeOnFocus($event);"\n (focusout)="onFocusOut()"\n [typeaheadMinLength]="minchars"\n [typeaheadOptionsLimit]="limit"\n (typeaheadLoading)="_loadingItems"\n (typeaheadOnSelect)="typeaheadOnSelect($event)"\n typeaheadOptionField="label"\n [typeaheadGroupField]="groupby ? \'groupby\' : null"\n [typeaheadAsync]="true"\n [typeaheadScrollable]="true"\n [typeaheadOptionsInScrollableView]="optionslimitinscrollableview"\n [dropup]="dropup"\n [tabindex]="tabindex"\n [attr.name]="name"\n [attr.aria-label]="hint || \'Search field\'"/>\n <i class="btn-close wi wi-cancel" [hidden]="!showClosebtn" (click)="clearSearch($event);"></i>\n</ng-container>\n\x3c!--This template is for both web and fullscreen mode in mobile.--\x3e\n<ng-template #searchTemplate>\n <span class="wi wi-arrow-left form-control-feedback back-btn" aria-hidden="true" (click)="closeSearch()"></span>\n <span class="sr-only">Back button</span>\n <input [title]="query || \'\'" type="text" class="app-textbox form-control list-of-objs app-search-input" [placeholder]="placeholder || \'\'"\n focus-target\n [container]="containerTarget || \'body\'"\n [disabled]="disabled"\n autocomplete="off"\n [(ngModel)]="query"\n [readonly]="readonly"\n [typeahead]="typeaheadDataSource"\n [typeaheadWaitMs]="debouncetime"\n [typeaheadItemTemplate]="customItemTemplate"\n [optionsListTemplate]="customListTemplate"\n (input)="onInputChange($event)"\n (keydown)="listenQuery = true"\n (keydown.enter)="$typeaheadEvent = $event;handleEnterEvent($event)"\n (keydown.arrowdown)="selectNext($event)"\n (blur)="invokeOnTouched($event); onFocusOut()"\n (click)="handleFocus($event);"\n (focus)="_unsubscribeDv = false; listenQuery = true; handleFocus($event); invokeOnFocus($event)"\n [typeaheadMinLength]="minchars"\n [typeaheadOptionsLimit]="limit"\n (typeaheadLoading)="_loadingItems"\n (typeaheadOnSelect)="typeaheadOnSelect($event)"\n typeaheadOptionField="label"\n [typeaheadGroupField]="groupby ? \'groupby\' : null"\n [typeaheadAsync]="true"\n [typeaheadScrollable]="true"\n [typeaheadOptionsInScrollableView]="optionslimitinscrollableview"\n [tabindex]="tabindex"\n [dropup]="dropup"\n [attr.name]="name"\n [attr.aria-label]="hint || \'Search field\'">\n <input class="model-holder" ng-model="proxyModel" ng-required="required" tabindex="-1" aria-hidden="true">\n <span *ngIf="_loadingItems" aria-hidden="true" class="fa fa-circle-o-notch fa-spin form-control-feedback"></span>\n <span class="wi wi-close form-control-feedback clear-btn" [ngClass]="{\'show-btn\': isQueryEntered()}" (click)="clearSearch($event, true)"></span>\n <span class="sr-only">Clear button</span>\n <span *ngIf="showsearchicon" class="input-group-addon" aria-label="search icon" [ngClass]="{\'disabled\': disabled}">\n <form>\n <button title="Search" [disabled]="disabled" class="app-search-button wm-sl-l sl-search" type="submit"\n (click)="onSearchSelect($event)"></button>\n </form>\n </span>\n</ng-template>\n',
|
|
22720
|
+
template: '<ng-template #customItemTemplate let-model="item" let-index="index" let-query="query" let-match="match">\n \x3c!-- Default item template --\x3e\n <a *ngIf="!content">\n <img *ngIf="model.imgSrc" [src]="model.imgSrc" alt="Search" [style.width]="imagewidth">\n <span [title]="model.label" [innerHtml]="highlight(match, query) || model.label"></span>\n </a>\n \x3c!-- Custom partial template --\x3e\n <a *ngIf="content" [ngClass]="{customTemplate: content}" partialContainer [wmItemTemplate]="content" [userComponentParams]="match.item">\n <div partial-container-target></div>\n </a>\n</ng-template>\n\n<ng-template #customListTemplate let-matches="matches" let-itemTemplate="itemTemplate" let-query="query">\n <ul #ulElement class="app-search dropdown-menu" scrollable>\n <li #liElements *ngFor="let match of matches" [ngClass]="{active: typeaheadContainer && typeaheadContainer.isActive(match), \'list-group-header\': match && match.isHeader()}"\n (mouseenter)="typeaheadContainer.selectActive(match);"\n (click)="match && !match.isHeader() && typeaheadContainer.selectMatch(match, $event); $typeaheadEvent = $event; notifySubscriber();">\n \x3c!-- itemTemplate comes from the <input> --\x3e\n <h4 *ngIf="match.isHeader()" class="group-title">{{match.value}}</h4>\n <ng-container *ngIf="!match.isHeader()" [ngTemplateOutlet]="itemTemplate"\n [ngTemplateOutletContext]="{item: match.item, index: i, match: match, query: query}">\n </ng-container>\n </li>\n <div class="status" [hidden]="_loadingItems || !(datacompletemsg && dataProvider.isLastPage)">\n <span [textContent]="datacompletemsg"></span>\n </div>\n <div class="status" [hidden]="!_loadingItems">\n <i class="fa fa-circle-o-notch fa-spin"></i>\n <span [textContent]="loadingdatamsg"></span>\n </div>\n </ul>\n</ng-template>\n\n\x3c!--This template is for search inside mobile navbar.--\x3e\n<ng-container *ngIf="navsearchbar; else searchTemplate">\n <input [title]="query || \'\'" type="text" class="app-textbox form-control list-of-objs app-search-input" [placeholder]="placeholder || \'\'"\n focus-target\n container="body"\n [disabled]="disabled"\n autocomplete="off"\n [(ngModel)]="query"\n [readonly]="readonly"\n [disabled]="disabled"\n [typeahead]="typeaheadDataSource"\n [typeaheadWaitMs]="debouncetime"\n [typeaheadItemTemplate]="customItemTemplate"\n [optionsListTemplate]="customListTemplate"\n (input)="onInputChange($event)"\n (keydown)="listenQuery = true"\n (keydown.enter)="$typeaheadEvent = $event;handleEnterEvent($event)"\n (keydown.arrowdown)="selectNext($event)"\n (blur)="invokeOnTouched($event)"\n (click)="handleFocus($event);"\n (focus)="_unsubscribeDv = false; listenQuery = true; handleFocus($event); invokeOnFocus($event);"\n (focusout)="onFocusOut()"\n [typeaheadMinLength]="minchars"\n [typeaheadOptionsLimit]="limit"\n (typeaheadLoading)="_loadingItems"\n (typeaheadOnSelect)="typeaheadOnSelect($event)"\n typeaheadOptionField="label"\n [typeaheadGroupField]="groupby ? \'groupby\' : null"\n [typeaheadAsync]="true"\n [typeaheadScrollable]="true"\n [adaptivePosition]="true"\n [typeaheadOptionsInScrollableView]="optionslimitinscrollableview"\n [dropup]="dropup"\n [tabindex]="tabindex"\n [attr.name]="name"\n [attr.aria-label]="hint || \'Search field\'"/>\n <i class="btn-close wi wi-cancel" [hidden]="!showClosebtn" (click)="clearSearch($event);"></i>\n</ng-container>\n\x3c!--This template is for both web and fullscreen mode in mobile.--\x3e\n<ng-template #searchTemplate>\n <span class="wi wi-arrow-left form-control-feedback back-btn" aria-hidden="true" (click)="closeSearch()"></span>\n <span class="sr-only">Back button</span>\n <input [title]="query || \'\'" type="text" class="app-textbox form-control list-of-objs app-search-input" [placeholder]="placeholder || \'\'"\n focus-target\n [container]="containerTarget || \'body\'"\n [disabled]="disabled"\n autocomplete="off"\n [(ngModel)]="query"\n [readonly]="readonly"\n [typeahead]="typeaheadDataSource"\n [typeaheadWaitMs]="debouncetime"\n [typeaheadItemTemplate]="customItemTemplate"\n [optionsListTemplate]="customListTemplate"\n (input)="onInputChange($event)"\n (keydown)="listenQuery = true"\n (keydown.enter)="$typeaheadEvent = $event;handleEnterEvent($event)"\n (keydown.arrowdown)="selectNext($event)"\n (blur)="invokeOnTouched($event); onFocusOut()"\n (click)="handleFocus($event);"\n (focus)="_unsubscribeDv = false; listenQuery = true; handleFocus($event); invokeOnFocus($event)"\n [typeaheadMinLength]="minchars"\n [typeaheadOptionsLimit]="limit"\n (typeaheadLoading)="_loadingItems"\n (typeaheadOnSelect)="typeaheadOnSelect($event)"\n typeaheadOptionField="label"\n [typeaheadGroupField]="groupby ? \'groupby\' : null"\n [typeaheadAsync]="true"\n [typeaheadScrollable]="true"\n [adaptivePosition]="true"\n [typeaheadOptionsInScrollableView]="optionslimitinscrollableview"\n [tabindex]="tabindex"\n [dropup]="dropup"\n [attr.name]="name"\n [attr.aria-label]="hint || \'Search field\'">\n <input class="model-holder" ng-model="proxyModel" ng-required="required" tabindex="-1" aria-hidden="true">\n <span *ngIf="_loadingItems" aria-hidden="true" class="fa fa-circle-o-notch fa-spin form-control-feedback"></span>\n <span class="wi wi-close form-control-feedback clear-btn" [ngClass]="{\'show-btn\': isQueryEntered()}" (click)="clearSearch($event, true)"></span>\n <span class="sr-only">Clear button</span>\n <span *ngIf="showsearchicon" class="input-group-addon" aria-label="search icon" [ngClass]="{\'disabled\': disabled}">\n <form>\n <button title="Search" [disabled]="disabled" class="app-search-button wm-sl-l sl-search" type="submit"\n (click)="onSearchSelect($event)"></button>\n </form>\n </span>\n</ng-template>\n',
|
|
22721
22721
|
providers: [ base.provideAs(SearchComponent, forms.NG_VALUE_ACCESSOR, true), base.provideAs(SearchComponent, forms.NG_VALIDATORS, true), base.provideAsWidgetRef(SearchComponent) ]
|
|
22722
22722
|
} ]
|
|
22723
22723
|
} ];
|
|
@@ -28249,6 +28249,8 @@
|
|
|
28249
28249
|
if (isNativePicker === void 0) {
|
|
28250
28250
|
isNativePicker = false;
|
|
28251
28251
|
}
|
|
28252
|
+
this.datepattern = this.appDefaults.dateFormat || core$1.getDisplayDateTimeFormat(core$1.FormWidgetType.DATE);
|
|
28253
|
+
this.updateFormat("datepattern");
|
|
28252
28254
|
if (this.isEnterPressedOnDateInput) {
|
|
28253
28255
|
this.isEnterPressedOnDateInput = false;
|
|
28254
28256
|
return;
|
|
@@ -28354,6 +28356,8 @@
|
|
|
28354
28356
|
}), 350);
|
|
28355
28357
|
};
|
|
28356
28358
|
DateComponent.prototype.onDisplayKeydown = function(event) {
|
|
28359
|
+
this.datepattern = this.appDefaults.dateFormat || core$1.getDisplayDateTimeFormat(core$1.FormWidgetType.DATE);
|
|
28360
|
+
this.updateFormat("datepattern");
|
|
28357
28361
|
if (this.isDropDownDisplayEnabledOnInput(this.showdropdownon)) {
|
|
28358
28362
|
event.stopPropagation();
|
|
28359
28363
|
var action = this.keyEventPlugin.constructor.getEventFullKey(event);
|
|
@@ -64982,6 +64986,7 @@
|
|
|
64982
64986
|
variables.wmSetDependency("oAuth", this.oAuthService);
|
|
64983
64987
|
variables.wmSetDependency("security", this.securityService);
|
|
64984
64988
|
variables.wmSetDependency("metadata", this.metadataService);
|
|
64989
|
+
variables.wmSetDependency("http", this.httpService);
|
|
64985
64990
|
}
|
|
64986
64991
|
VariablesService.prototype.bulkCancel = function(collection) {
|
|
64987
64992
|
Object.keys(collection).forEach((function(name) {
|