@wavemaker/app-runtime-wm-build 11.5.0-next.30507 → 11.5.0-next.40001

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavemaker/app-runtime-wm-build",
3
- "version": "11.5.0-next.30507",
3
+ "version": "11.5.0-next.40001",
4
4
  "description": "All modules required for a wavemaker application.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -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, params).then((function(response) {
199277
+ variable.httpService.sendCall(requestParams, variable).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(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":
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(n,i){e._source="variable",t.httpService.sendCall(e,t).then((function(e){(e&&e.type||e&&e.status)&&(r.setRequestTrackId(e,t),n(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 n(e)}),(function(e){return i(e)}))):i(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, params) {
7246
+ HttpServiceImpl.prototype.sendCallAsObservable = function(options) {
7247
7247
  var req = this.generateRequest(options);
7248
7248
  return this.httpClient.request(req);
7249
7249
  };
7250
- HttpServiceImpl.prototype.sendCall = function(requestParams, variable, params) {
7250
+ HttpServiceImpl.prototype.sendCall = function(requestParams, variable) {
7251
7251
  var _this = this;
7252
7252
  return new Promise((function(resolve, reject) {
7253
- variable._observable = _this.sendCallAsObservable(requestParams, params).subscribe((function(response) {
7253
+ variable._observable = _this.sendCallAsObservable(requestParams).subscribe((function(response) {
7254
7254
  if (response && response.type) {
7255
7255
  resolve(response);
7256
7256
  }
@@ -12533,11 +12533,7 @@
12533
12533
  };
12534
12534
  this.widgetControl.setAsyncValidators([ this._asyncValidatorFn() ]);
12535
12535
  if (this.widgetContext.ngform.touched) {
12536
- var opt = {};
12537
- if (this.formwidget && this.instance.value === this.formwidget.prevDatavalue) {
12538
- opt["emitEvent"] = false;
12539
- }
12540
- this.widgetControl.updateValueAndValidity(opt);
12536
+ this.widgetControl.updateValueAndValidity();
12541
12537
  }
12542
12538
  };
12543
12539
  BaseFieldValidations.prototype.isDefaultValidator = function(type) {
@@ -12594,12 +12590,8 @@
12594
12590
  BaseFieldValidations.prototype.validate = function() {
12595
12591
  this.applyDefaultValidators();
12596
12592
  if (this._asyncValidatorFn) {
12597
- var opt = {};
12598
- if (this.formwidget && this.instance.value === this.formwidget.prevDatavalue) {
12599
- opt["emitEvent"] = false;
12600
- }
12601
12593
  this.widgetControl.setAsyncValidators([ this._asyncValidatorFn() ]);
12602
- this.widgetControl.updateValueAndValidity(opt);
12594
+ this.widgetControl.updateValueAndValidity();
12603
12595
  }
12604
12596
  if (this.widgetContext.ngform.touched) {
12605
12597
  this.widgetControl.markAsTouched();
@@ -12618,12 +12610,8 @@
12618
12610
  };
12619
12611
  BaseFieldValidations.prototype.applyDefaultValidators = function() {
12620
12612
  var validators = this.getDefaultValidators();
12621
- var opt = {};
12622
- if (this.formwidget && this.instance.value === this.formwidget.prevDatavalue) {
12623
- opt["emitEvent"] = false;
12624
- }
12625
12613
  this.widgetControl.setValidators(_.concat(this._syncValidators || [], validators));
12626
- this.widgetControl.updateValueAndValidity(opt);
12614
+ this.widgetControl.updateValueAndValidity();
12627
12615
  this.setCustomValidationMessage();
12628
12616
  };
12629
12617
  BaseFieldValidations.prototype.setCustomValidationMessage = function() {
@@ -22717,7 +22705,7 @@
22717
22705
  type: core$1.Component,
22718
22706
  args: [ {
22719
22707
  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 [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',
22708
+ 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',
22721
22709
  providers: [ base.provideAs(SearchComponent, forms.NG_VALUE_ACCESSOR, true), base.provideAs(SearchComponent, forms.NG_VALIDATORS, true), base.provideAsWidgetRef(SearchComponent) ]
22722
22710
  } ]
22723
22711
  } ];
@@ -28160,7 +28148,7 @@
28160
28148
  }, base.PROP_BOOLEAN) ], [ "clearbutton", Object.assign({
28161
28149
  value: true
28162
28150
  }, base.PROP_BOOLEAN) ], [ "adaptiveposition", Object.assign({
28163
- value: true
28151
+ value: false
28164
28152
  }, base.PROP_BOOLEAN) ], [ "todaybuttonlabel", Object.assign({
28165
28153
  value: "LABEL_TODAY_DATE"
28166
28154
  }, base.PROP_STRING) ], [ "clearbuttonlabel", Object.assign({
@@ -28249,8 +28237,6 @@
28249
28237
  if (isNativePicker === void 0) {
28250
28238
  isNativePicker = false;
28251
28239
  }
28252
- this.datepattern = this.appDefaults.dateFormat || core$1.getDisplayDateTimeFormat(core$1.FormWidgetType.DATE);
28253
- this.updateFormat("datepattern");
28254
28240
  if (this.isEnterPressedOnDateInput) {
28255
28241
  this.isEnterPressedOnDateInput = false;
28256
28242
  return;
@@ -28356,8 +28342,6 @@
28356
28342
  }), 350);
28357
28343
  };
28358
28344
  DateComponent.prototype.onDisplayKeydown = function(event) {
28359
- this.datepattern = this.appDefaults.dateFormat || core$1.getDisplayDateTimeFormat(core$1.FormWidgetType.DATE);
28360
- this.updateFormat("datepattern");
28361
28345
  if (this.isDropDownDisplayEnabledOnInput(this.showdropdownon)) {
28362
28346
  event.stopPropagation();
28363
28347
  var action = this.keyEventPlugin.constructor.getEventFullKey(event);
@@ -28390,8 +28374,6 @@
28390
28374
  }
28391
28375
  };
28392
28376
  DateComponent.prototype.onDateChange = function(newVal) {
28393
- this.datepattern = this.appDefaults.dateFormat || core$1.getDisplayDateTimeFormat(core$1.FormWidgetType.DATE);
28394
- this.updateFormat("datepattern");
28395
28377
  if (this._bsDefaultLoadCheck) {
28396
28378
  this._bsDefaultLoadCheck = false;
28397
28379
  return;
@@ -28460,7 +28442,7 @@
28460
28442
  }, base.PROP_BOOLEAN) ], [ "clearbutton", Object.assign({
28461
28443
  value: true
28462
28444
  }, base.PROP_BOOLEAN) ], [ "adaptiveposition", Object.assign({
28463
- value: true
28445
+ value: false
28464
28446
  }, base.PROP_BOOLEAN) ], [ "todaybuttonlabel", Object.assign({
28465
28447
  value: "LABEL_TODAY_DATE"
28466
28448
  }, base.PROP_STRING) ], [ "clearbuttonlabel", Object.assign({
@@ -64988,7 +64970,6 @@
64988
64970
  variables.wmSetDependency("oAuth", this.oAuthService);
64989
64971
  variables.wmSetDependency("security", this.securityService);
64990
64972
  variables.wmSetDependency("metadata", this.metadataService);
64991
- variables.wmSetDependency("http", this.httpService);
64992
64973
  }
64993
64974
  VariablesService.prototype.bulkCancel = function(collection) {
64994
64975
  Object.keys(collection).forEach((function(name) {