@wavemaker/app-runtime-wm-build 11.4.0-next.25732 → 11.4.0-next.25735

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.4.0-next.25732",
3
+ "version": "11.4.0-next.25735",
4
4
  "description": "All modules required for a wavemaker application.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -199261,8 +199261,11 @@ window.requestAnimationFrame = function() {
199261
199261
  });
199262
199262
  };
199263
199263
  BaseVariableManager.prototype.setRequestTrackId = function(response, variable) {
199264
- var _a, _b;
199265
- var requestTrackId = ((_a = response === null || response === void 0 ? void 0 : response.headers) === null || _a === void 0 ? void 0 : _a.get) && ((_b = response === null || response === void 0 ? void 0 : response.headers) === null || _b === void 0 ? void 0 : _b.get("x-wm-request-track-id")) || (response === null || response === void 0 ? void 0 : response.headers["x-wm-request-track-id"]);
199264
+ if (response === void 0) {
199265
+ response = {};
199266
+ }
199267
+ response.headers = response.headers || {};
199268
+ var requestTrackId = response.headers.get && response.headers.get("x-wm-request-track-id") || response.headers["x-wm-request-track-id"];
199266
199269
  if (requestTrackId) {
199267
199270
  variable._requestTrackId = requestTrackId;
199268
199271
  }
@@ -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){var n,r,i=(null===(n=null==e?void 0:e.headers)||void 0===n?void 0:n.get)&&(null===(r=null==e?void 0:e.headers)||void 0===r?void 0:r.get("x-wm-request-track-id"))||(null==e?void 0:e.headers["x-wm-request-track-id"]);i&&(t._requestTrackId=i)},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":
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
  \*******************************************************/
@@ -42468,9 +42468,6 @@
42468
42468
  var childNode = item.querySelector("span");
42469
42469
  if ((childNode === null || childNode === void 0 ? void 0 : childNode.dataset.isacitvepage) === "true") {
42470
42470
  item.setAttribute("aria-current", "true");
42471
- setTimeout((function() {
42472
- return item.focus();
42473
- }));
42474
42471
  }
42475
42472
  if ((childNode === null || childNode === void 0 ? void 0 : childNode.dataset.isdisabled) === "true") {
42476
42473
  item.setAttribute("aria-disabled", "true");
@@ -475,7 +475,7 @@ var c=function(e,t){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Arr
475
475
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
476
476
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
477
477
  PERFORMANCE OF THIS SOFTWARE.
478
- ***************************************************************************** */var s=function(e,t){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};Object.create;function l(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,a=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(i=a.next()).done;)r.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return r}function c(e,t,n){if(n||2===arguments.length)for(var i,o=0,a=t.length;o<a;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}Object.create;var p=function(){a.register("wm-pagination",new Map([["boundarylinks",Object.assign({value:!1},a.PROP_BOOLEAN)],["class",a.PROP_STRING],["dataset",a.PROP_ANY],["directionlinks",Object.assign({value:!0},a.PROP_BOOLEAN)],["forceellipses",Object.assign({value:!0},a.PROP_BOOLEAN)],["maxResults",a.PROP_NUMBER],["maxsize",Object.assign({value:5},a.PROP_NUMBER)],["name",a.PROP_STRING],["navigation",Object.assign({value:"Basic"},a.PROP_STRING)],["navigationalign",Object.assign({value:"left"},a.PROP_STRING)],["navigationsize",a.PROP_STRING],["show",Object.assign({value:!0},a.PROP_BOOLEAN)],["showrecordcount",a.PROP_BOOLEAN],["tabindex",Object.assign({value:0},a.PROP_NUMBER)]]))},d={widgetType:"wm-pagination",hostClass:"app-datanavigator clearfix"},u={Pager:{small:"pager-sm",large:"pager-lg"},Basic:{small:"pagination-sm",large:"pagination-lg"},Classic:{small:"pagination-sm",large:"pagination-lg"}},h=function(e){function n(n,i){var o=e.call(this,n,d)||this;return o.parent=i,o.resultEmitter=new t.EventEmitter,o.maxResultsEmitter=new t.EventEmitter,o.dn={currentPage:1},o.pageCount=0,o.isDisableNext=!0,o.isDisablePrevious=!0,o.isDisableFirst=!0,o.isDisableLast=!0,o._debouncedApplyDataset=r.debounce((function(){return o.widget.dataset=o.dataset}),a.DEBOUNCE_TIMES.PAGINATION_DEBOUNCE_TIME),o._debouncedPageChanged=r.debounce((function(e){var t=e&&e.page;if(t!==o.dn.currentPage){var n=o.parent||o;o.dn.currentPage=t,n.invokeEventCallback("paginationchange",{$event:void 0,$index:o.dn.currentPage}),o.goToPage(),"Basic"===o.navigation&&o._setAriaForBasicNavigation()}}),a.DEBOUNCE_TIMES.PAGINATION_DEBOUNCE_TIME),a.styler(o.nativeElement,o),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(n,e),n.prototype._setAriaForBasicNavigation=function(){_.forEach(this.nativeElement.getElementsByTagName("a"),(function(e){e.setAttribute("href","javascript:void(0);");var t=e.querySelector("span");"true"===(null==t?void 0:t.dataset.isacitvepage)&&(e.setAttribute("aria-current","true"),setTimeout((function(){return e.focus()}))),"true"===(null==t?void 0:t.dataset.isdisabled)?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled")}))},n.prototype.setResult=function(e){this.result=e,this.resultEmitter.emit(this.result)},n.prototype.updateNavSize=function(){var e=u[this.navcontrols];e&&this.navigationsize?this.navigationClass=e[this.navigationsize]:this.navigationClass=""},n.prototype.resetPageNavigation=function(){this.pageCount=0,this.dn.currentPage=1,this.dataSize=0},n.prototype.calculatePagingValues=function(){this.pageCount=this.dataSize>this.maxResults?Math.ceil(this.dataSize/this.maxResults):this.dataSize<0?0:1,this.dn.currentPage=this.dn.currentPage||1},n.prototype.setDefaultPagingValues=function(e,t,n){e||t?(this.maxResults=t||this.maxResults,this.dataSize=r.isDefined(e)?e:this.dataSize,this.dn.currentPage=n||this.dn.currentPage,this.calculatePagingValues()):(this.pageCount=1,this.dn.currentPage=1,this.maxResults=e,this.dataSize=e),this.maxResultsEmitter.emit(this.maxResults)},n.prototype.checkDataSize=function(e,t,n){-1===e||e===r.AppConstants.INT_MAX_VALUE?(this.prevshowrecordcount=this.showrecordcount,this.isDisableLast=!0,this.isDisableCount=!0,this.showrecordcount=!1,t<n&&(this.isDisableNext=!0)):(this.isDisableCount=!1,this.showrecordcount=this.prevshowrecordcount||this.showrecordcount)},n.prototype.disableNavigation=function(){var e,t=1===this.dn.currentPage,n=this.dn.currentPage===this.pageCount;(null===(e=this.pagination)||void 0===e?void 0:e.next)?(this.isDisableFirst=this.isDisablePrevious=!this.pagination.prev,this.isDisableNext=this.isDisableLast=!this.pagination.next):(this.isDisableFirst=this.isDisablePrevious=t,this.isDisableNext=this.isDisableLast=n),this.isDisableCurrent=t&&n,this.dataset&&this.dataset.length&&this.isDisableNext&&this.parent.onDemandLoad&&"wm-table"===this.parent.widgetType&&this.parent.callDataGridMethod("hideLoadingIndicator",this.isDisableNext,this.parent.infScroll)},n.prototype.isDataSourceHasPaging=function(){return this.datasource&&this.datasource.execute(r.DataSource.Operation.IS_PAGEABLE)},n.prototype.setNonPageableData=function(e){var t,n,i,o;t=_.isArray(e)?e.length:_.isEmpty(e)?0:1,n=this.options&&this.options.maxResults||t,i=this.datasource&&(this.datasource.execute(r.DataSource.Operation.IS_API_AWARE)||"wm-table"===this.parent.widgetType&&this.parent.gridOptions.isNavTypeScrollOrOndemand()&&(_.get(this.parent,"gridOptions.lastActionPerformed")===this.parent.gridOptions.ACTIONS.DATASET_UPDATE||!_.get(this.parent,"gridOptions.isNextPageData")))?1:this.dn.currentPage||1,this.setDefaultPagingValues(t,n,i),this.disableNavigation(),o=(this.dn.currentPage-1)*this.maxResults,this.setResult(_.isArray(e)?e.slice(o,o+this.maxResults):e)},n.prototype.setPagingValues=function(e){var t,n,i,o={};this.__fullData=e,this.binddataset?(o=(this.datasource||{})._options||{},e?this.isDataSourceHasPaging()?(this.pagination=this.datasource.execute(r.DataSource.Operation.GET_PAGING_OPTIONS)||{},this.filterFields=o.filterFields||{},this.logicalOp=o.logicalOp||"",this.sortOptions=o.orderBy||(_.isArray(this.pagination.sort)?a.getOrderByExpr(this.pagination.sort):""),t=this.pagination.totalElements,n=this.pagination.size,this.pagination.numberOfElements>0?(r.isDefined(this.pagination.number)&&(this.dn.currentPage=this.pagination.number+1),i=this.dn.currentPage||1):i=1,this.setDefaultPagingValues(t,n,i),this.disableNavigation(),this.checkDataSize(t,this.pagination.numberOfElements,this.pagination.size),this.setResult(e)):_.isString(e)||this.setNonPageableData(e):(this.setResult(e),this.resetPageNavigation()),"Basic"===this.navigation&&this._setAriaForBasicNavigation()):e&&!_.isString(e)&&this.setNonPageableData(e)},n.prototype.isFirstPage=function(){return 1===this.dn.currentPage||!this.dn.currentPage},n.prototype.isLastPage=function(){return this.dn.currentPage===this.pageCount},n.prototype.goToLastPage=function(e,t,n){this.isLastPage()?e&&this.goToPage(t,n):(this.dn.currentPage=this.pageCount,this.goToPage(t,n))},n.prototype.goToFirstPage=function(e,t,n){this.isFirstPage()?e&&this.goToPage(t,n):(this.dn.currentPage=1,this.goToPage(t,n))},n.prototype.goToPage=function(e,t){this.firstRow=(this.dn.currentPage-1)*this.maxResults;var n=this.parent.statePersistence.computeMode(this.statehandler);!n||"none"===n.toLowerCase()||"wm-table"!==this.parent.widgetType&&"wm-list"!==this.parent.widgetType||(this.parent._selectedItemsExist=!0,this.isFirstPage()?this.parent.statePersistence.removeWidgetState(this.parent,"pagination"):a.unsupportedStatePersistenceTypes.indexOf(this.parent.navigation)<0?this.parent.statePersistence.setWidgetState(this.parent,{pagination:this.dn.currentPage}):"wm-list"!==this.parent.widgetType&&"wm-table"!==this.parent.widgetType||console.warn("Retain State handling on Widget "+this.parent.name+" is not supported for current pagination type.")),this.getPageData(e,t)},n.prototype.onPageDataReady=function(e,t,n){this.disableNavigation(),this.invokeSetRecord(e,t),r.triggerFn(n)},n.prototype.getPageData=function(e,t){var n,i,o=this;if(this.isDataSourceHasPaging()){var a=this.dn.currentPage;this.isEditNotInCurrentPage()&&"delete"!==this.parent.gridOptions.lastActionPerformed&&(a=this.parent.actionRowPage),this.datasource.execute(r.DataSource.Operation.LIST_RECORDS,{page:a,filterFields:this.filterFields,orderBy:this.sortOptions,logicalOp:this.logicalOp,matchMode:"anywhereignorecase"}).then((function(n){o.onPageDataReady(e,n&&n.data,t),r.$appDigest()}),(function(e){}))}else i=this.isEditNotInCurrentPage()?(this.parent.actionRowPage-1)*this.maxResults:(this.dn.currentPage-1)*this.maxResults,n=_.isArray(this.__fullData)?this.__fullData.slice(i,i+this.maxResults):this.__fullData,this.setResult(n),this.onPageDataReady(e,n,t)},n.prototype.isEditNotInCurrentPage=function(){var e=this.dn.currentPage;return"wm-table"===this.parent.widgetType&&e===this.parent.currentPage&&this.parent.actionRowPage&&this.parent.actionRowPage<e},n.prototype.invokeSetRecord=function(e,t){var n={currentPage:this.dn.currentPage,size:this.maxResults,totalElements:this.dataSize,totalPages:this.pageCount};this.parent?this.parent.invokeEventCallback("setrecord",{$event:e,$data:t,$index:this.dn.currentPage,pageInfo:n,data:t}):this.invokeEventCallback("setrecord",{$event:e,$data:t,$index:this.dn.currentPage,pageInfo:n,data:t})},n.prototype.validateCurrentPage=function(e,t){return!e||!(isNaN(this.dn.currentPage)||this.dn.currentPage<=0||this.pageCount&&(this.dn.currentPage>this.pageCount||_.isNull(this.dn.currentPage)))||(this.dn.currentPage<=0?this.dn.currentPage=1:this.dn.currentPage>this.pageCount&&(this.dn.currentPage=this.pageCount),!1)},n.prototype.onModelChange=function(e){this.validateCurrentPage(e)&&this.goToPage(e)},n.prototype.onKeyDown=function(e){var t=$(e.target).closest("a");return"KeyE"===e.code?(t.addClass("ng-invalid"),!1):(t.removeClass("ng-invalid"),!0)},n.prototype.pageChanged=function(e){this._debouncedPageChanged(e)},n.prototype.navigatePage=function(e,t,n,i){var o,a,s,l;switch(r.isDefined(this.parent.isDataLoading)&&!this.isDisableNext&&(this.parent.isDataLoading=!0,this.parent.infScroll&&(this.parent.variableInflight=!0,this.parent.callDataGridMethod("showLoadingIndicator",this.parent.loadingdatamsg,!0))),"wm-table"===this.parent.widgetType&&this.parent.gridOptions.isNavTypeScrollOrOndemand()&&(this.parent.gridOptions.setLastActionPerformed(this.parent.gridOptions.ACTIONS.DEFAULT),this.parent.gridOptions.setIsDatasetUpdated(!1)),this.invokeEventCallback("paginationchange",{$event:void 0,$index:this.dn.currentPage}),this.dn.currentPage=+this.dn.currentPage,e){case"first":return void this.goToFirstPage(n,t,i);case"prev":if(!((null===(o=this.pagination)||void 0===o?void 0:o.next)||!this.isFirstPage()&&this.validateCurrentPage(t,i)))return;(null===(a=this.pagination)||void 0===a?void 0:a.next)&&(this.datasource.pagination.isNext=!1,this.datasource.pagination.isPrev=!0),this.dn.currentPage-=1;break;case"next":if(!((null===(s=this.pagination)||void 0===s?void 0:s.next)||!this.isLastPage()&&this.validateCurrentPage(t,i)))return;(null===(l=this.pagination)||void 0===l?void 0:l.next)&&(this.datasource.pagination.isNext=!0,this.datasource.pagination.isPrev=!1),this.dn.currentPage+=1;break;case"last":return void this.goToLastPage(n,t,i)}this.goToPage(t,i)},n.prototype.setBindDataSet=function(e,t,n,i,o,a,s){var l,c=this,p=e.split(".");if(this.statehandler=s,"Variables"!==p[0]&&"Widgets"!==p[0]||(l=p[0]+"."+p[1]+".pagination"),!o&&i&&!a)return this.dataset=i,void this._debouncedApplyDataset();this.binddataset=e,setTimeout((function(){c.registerDestroyListener(r.$watch(e,t,a?n:{},(function(e){e?(c.dataset=e,c._debouncedApplyDataset()):c.widget.dataset=e}))),l&&c.registerDestroyListener(r.$watch(l,t,{},(function(){return c._debouncedApplyDataset()})))})),a||(this.datasource=n)},n.prototype.setDataSource=function(e){this.datasource=e},n.prototype.onPropertyChange=function(t,n,i){if("dataset"===t){var o=void 0;o=this.parent&&this.parent.onDataNavigatorDataSetChange?this.parent.onDataNavigatorDataSetChange(n):n,"wm-table"===this.parent.widgetType&&(this.parent._triggeredByUser=!1),this.isEditNotInCurrentPage()?this.setResult(o):this.setPagingValues(o)}else"navigation"===t?("Advanced"===n&&(this.navigation="Classic"),this.updateNavSize(),this.navcontrols=n):"navigationsize"===t?this.updateNavSize():"navigationalign"===t?r.switchClass(this.nativeElement,"text-"+n,"text-"+i):"maxResults"===t?this.setPagingValues(this.dataset):e.prototype.onPropertyChange.call(this,t,n,i)},n.prototype.ngAfterViewInit=function(){this.nativeElement.onclick=function(e){e.stopPropagation()}},n}(a.StylableComponent);h.initializeProps=p(),h.decorators=[{type:t.Component,args:[{selector:"[wmPagination]",template:'\n<ul class="pagination advanced {{navigationClass}}" *ngIf="navcontrols === \'Classic\'">\n <li [ngClass]="{\'disabled\':isDisableFirst}">\n <a [title]="appLocale.LABEL_FIRST" name="first" href="javascript:void(0);"\n [attr.aria-disabled]="isDisableFirst"\n (click)="navigatePage(\'first\', $event)">\n <span aria-hidden="true"><i class="wi wi-first-page"></i></span>\n <span class="sr-only">Go to first page {{ isDisableFirst ? \' , Disabled\' : \'\'}}</span>\n </a>\n </li>\n <li [ngClass]="{\'disabled\':isDisablePrevious}">\n <a [title]="appLocale.LABEL_PREVIOUS" name="prev" href="javascript:void(0);"\n [attr.aria-disabled]="isDisablePrevious"\n (click)="navigatePage(\'prev\', $event)">\n <span aria-hidden="true"><i class="wi wi-chevron-left"></i></span>\n <span class="sr-only">Go to previous page {{ isDisablePrevious ? \', Disabled\' : \'\'}}</span>\n </a>\n </li>\n <li class="pagecount disabled">\n <a href="javascript:void(0);">\n <input type="number" [disabled]="isDisableCurrent" [(ngModel)]="dn.currentPage" [attr.aria-label]="\'Showing Page \' + dn.currentPage + \' of \' + pageCount"\n (keydown)="onKeyDown($event)" (change)="onModelChange($event)" class="form-control"/>\n </a>\n </li>\n <li class="disabled">\n <a [hidden]="isDisableCount"> / {{pageCount}}</a>\n </li>\n <li [ngClass]="{\'disabled\':isDisableNext}">\n <a [title]="appLocale.LABEL_NEXT" name="next" href="javascript:void(0);"\n [attr.aria-disabled]="isDisableNext"\n (click)="navigatePage(\'next\', $event)">\n <span aria-hidden="true"><i class="wi wi-chevron-right"></i></span>\n <span class="sr-only">Go to next page {{ isDisableNext ? \' , Disabled\' : \'\'}}</span>\n </a>\n </li>\n <li [ngClass]="{\'disabled\':isDisableLast}">\n <a [title]="appLocale.LABEL_LAST" name="last" href="javascript:void(0);"\n [attr.aria-disabled]="isDisableLast"\n (click)="navigatePage(\'last\', $event)">\n <span aria-hidden="true"><i class="wi wi-last-page"></i></span>\n <span class="sr-only">Go to last page {{ isDisableLast ? \' , Disabled\' : \'\'}}</span>\n </a>\n </li>\n <li *ngIf="showrecordcount" class="totalcount disabled">\n <a href="javascript:void(0);" tabindex="-1" aria-disabled="true">{{appLocale.LABEL_TOTAL_RECORDS}}: {{dataSize}}</a>\n </li>\n</ul>\n<ul class="pager {{navigationClass}}" *ngIf="navcontrols === \'Pager\'">\n <li class="previous" [ngClass]="{\'disabled\':isDisablePrevious}">\n <a href="javascript:void(0);" (click)="navigatePage(\'prev\', $event)"\n [attr.aria-disabled]="isDisablePrevious">\n <span aria-hidden="true"><i class="wi wi-chevron-left"></i></span>\n {{appLocale.LABEL_PREVIOUS}}\n <span class="sr-only">{{ isDisablePrevious ? \' , Disabled\' : \'\'}}</span>\n </a>\n </li>\n <li class="next" [ngClass]="{\'disabled\':isDisableNext}">\n <a href="javascript:void(0);" (click)="navigatePage(\'next\', $event)"\n [attr.aria-disabled]="isDisableNext">\n <span aria-hidden="true"><i class="wi wi-chevron-right"></i></span>\n {{appLocale.LABEL_NEXT}}\n <span class="sr-only">{{ isDisableNext ? \' , Disabled\' : \'\'}}</span>\n </a>\n </li>\n</ul>\n\n<pagination class="pagination basic" [ngClass]="navigationClass" *ngIf="navcontrols === \'Basic\'" role="navigation"\n [itemsPerPage]="maxResults" [totalItems]="dataSize"\n [ngModel]="dn.currentPage" (pageChanged)="pageChanged($event)"\n [attr.aria-label]="\'Showing Page \' + dn.currentPage + \' of \' + pageCount + \' pages\'"\n [boundaryLinks]="boundarylinks" [maxSize]="maxsize"\n [directionLinks]="directionlinks"\n firstText="Firtst" lastText="Last"\n [customPreviousTemplate]="prevTemplate"\n [customNextTemplate]="nextTemplate"\n [customPageTemplate]="pageTemplate"></pagination>\n\n<ul *ngIf="navcontrols === \'Basic\' && showrecordcount" class="pagination">\n <li class="totalcount disabled basiccount">\n <a href="javascript:void(0);" tabindex="-1" aria-disabled="true">{{appLocale.LABEL_TOTAL_RECORDS}}: {{dataSize}}</a>\n </li>\n</ul>\n\n<ng-template #pageTemplate let-page>\n <span class="sr-only" [attr.data-isacitvepage]="page.active">{{\'Page \'}}</span>\n {{page.number}}\n <span class="sr-only" *ngIf="page.active"> {{\', Showing page \' + page.number + \' of \' + pageCount}}</span>\n</ng-template>\n<ng-template #prevTemplate let-disabled="disabled">\n <span class="sr-only" [attr.data-isdisabled]="disabled">Go to Previous page {{disabled ? \', Disabled\' : \'\'}}</span>\n</ng-template>\n<ng-template #nextTemplate let-disabled="disabled">\n <span class="sr-only" [attr.data-isdisabled]="disabled">Go to Next page {{disabled ? \', Disabled\' : \'\'}}</span>\n</ng-template>\n',providers:[a.provideAsWidgetRef(h)]}]}],h.ctorParameters=function(){return[{type:t.Injector},{type:void 0,decorators:[{type:t.SkipSelf},{type:t.Inject,args:[a.WidgetRef]}]}]},h.propDecorators={resultEmitter:[{type:t.Output}],maxResultsEmitter:[{type:t.Output}]};var m=[h],f=function(){};f.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,i.FormsModule,o.PaginationModule,a.WmComponentsModule],declarations:c([],l(m)),exports:c([],l(m)),entryComponents:[]}]}],e.PaginationComponent=h,e.PaginationModule=f,e["\u0275a"]=p,Object.defineProperty(e,"__esModule",{value:!0})})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("ngx-bootstrap/dropdown"),require("@wm/components/base"),require("@wm/components/basic"),require("@wm/components/navigation/menu"),require("@wm/core")):"function"==typeof define&&define.amd?define("@wm/components/data/card",["exports","@angular/core","@angular/common","ngx-bootstrap/dropdown","@wm/components/base","@wm/components/basic","@wm/components/navigation/menu","@wm/core"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).wm=e.wm||{},e.wm.components=e.wm.components||{},e.wm.components.data=e.wm.components.data||{},e.wm.components.data.card={}),e.ng.core,e.ng.common,e["ngx-bootstrap"].dropdown,e.wm.components.base,e.wm.components.basic,e.wm.components.navigation.menu,e.wm.core)}(this,(function(e,t,n,i,o,a,r,s){"use strict";
478
+ ***************************************************************************** */var s=function(e,t){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};Object.create;function l(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,a=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(i=a.next()).done;)r.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return r}function c(e,t,n){if(n||2===arguments.length)for(var i,o=0,a=t.length;o<a;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}Object.create;var p=function(){a.register("wm-pagination",new Map([["boundarylinks",Object.assign({value:!1},a.PROP_BOOLEAN)],["class",a.PROP_STRING],["dataset",a.PROP_ANY],["directionlinks",Object.assign({value:!0},a.PROP_BOOLEAN)],["forceellipses",Object.assign({value:!0},a.PROP_BOOLEAN)],["maxResults",a.PROP_NUMBER],["maxsize",Object.assign({value:5},a.PROP_NUMBER)],["name",a.PROP_STRING],["navigation",Object.assign({value:"Basic"},a.PROP_STRING)],["navigationalign",Object.assign({value:"left"},a.PROP_STRING)],["navigationsize",a.PROP_STRING],["show",Object.assign({value:!0},a.PROP_BOOLEAN)],["showrecordcount",a.PROP_BOOLEAN],["tabindex",Object.assign({value:0},a.PROP_NUMBER)]]))},d={widgetType:"wm-pagination",hostClass:"app-datanavigator clearfix"},u={Pager:{small:"pager-sm",large:"pager-lg"},Basic:{small:"pagination-sm",large:"pagination-lg"},Classic:{small:"pagination-sm",large:"pagination-lg"}},h=function(e){function n(n,i){var o=e.call(this,n,d)||this;return o.parent=i,o.resultEmitter=new t.EventEmitter,o.maxResultsEmitter=new t.EventEmitter,o.dn={currentPage:1},o.pageCount=0,o.isDisableNext=!0,o.isDisablePrevious=!0,o.isDisableFirst=!0,o.isDisableLast=!0,o._debouncedApplyDataset=r.debounce((function(){return o.widget.dataset=o.dataset}),a.DEBOUNCE_TIMES.PAGINATION_DEBOUNCE_TIME),o._debouncedPageChanged=r.debounce((function(e){var t=e&&e.page;if(t!==o.dn.currentPage){var n=o.parent||o;o.dn.currentPage=t,n.invokeEventCallback("paginationchange",{$event:void 0,$index:o.dn.currentPage}),o.goToPage(),"Basic"===o.navigation&&o._setAriaForBasicNavigation()}}),a.DEBOUNCE_TIMES.PAGINATION_DEBOUNCE_TIME),a.styler(o.nativeElement,o),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(n,e),n.prototype._setAriaForBasicNavigation=function(){_.forEach(this.nativeElement.getElementsByTagName("a"),(function(e){e.setAttribute("href","javascript:void(0);");var t=e.querySelector("span");"true"===(null==t?void 0:t.dataset.isacitvepage)&&e.setAttribute("aria-current","true"),"true"===(null==t?void 0:t.dataset.isdisabled)?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled")}))},n.prototype.setResult=function(e){this.result=e,this.resultEmitter.emit(this.result)},n.prototype.updateNavSize=function(){var e=u[this.navcontrols];e&&this.navigationsize?this.navigationClass=e[this.navigationsize]:this.navigationClass=""},n.prototype.resetPageNavigation=function(){this.pageCount=0,this.dn.currentPage=1,this.dataSize=0},n.prototype.calculatePagingValues=function(){this.pageCount=this.dataSize>this.maxResults?Math.ceil(this.dataSize/this.maxResults):this.dataSize<0?0:1,this.dn.currentPage=this.dn.currentPage||1},n.prototype.setDefaultPagingValues=function(e,t,n){e||t?(this.maxResults=t||this.maxResults,this.dataSize=r.isDefined(e)?e:this.dataSize,this.dn.currentPage=n||this.dn.currentPage,this.calculatePagingValues()):(this.pageCount=1,this.dn.currentPage=1,this.maxResults=e,this.dataSize=e),this.maxResultsEmitter.emit(this.maxResults)},n.prototype.checkDataSize=function(e,t,n){-1===e||e===r.AppConstants.INT_MAX_VALUE?(this.prevshowrecordcount=this.showrecordcount,this.isDisableLast=!0,this.isDisableCount=!0,this.showrecordcount=!1,t<n&&(this.isDisableNext=!0)):(this.isDisableCount=!1,this.showrecordcount=this.prevshowrecordcount||this.showrecordcount)},n.prototype.disableNavigation=function(){var e,t=1===this.dn.currentPage,n=this.dn.currentPage===this.pageCount;(null===(e=this.pagination)||void 0===e?void 0:e.next)?(this.isDisableFirst=this.isDisablePrevious=!this.pagination.prev,this.isDisableNext=this.isDisableLast=!this.pagination.next):(this.isDisableFirst=this.isDisablePrevious=t,this.isDisableNext=this.isDisableLast=n),this.isDisableCurrent=t&&n,this.dataset&&this.dataset.length&&this.isDisableNext&&this.parent.onDemandLoad&&"wm-table"===this.parent.widgetType&&this.parent.callDataGridMethod("hideLoadingIndicator",this.isDisableNext,this.parent.infScroll)},n.prototype.isDataSourceHasPaging=function(){return this.datasource&&this.datasource.execute(r.DataSource.Operation.IS_PAGEABLE)},n.prototype.setNonPageableData=function(e){var t,n,i,o;t=_.isArray(e)?e.length:_.isEmpty(e)?0:1,n=this.options&&this.options.maxResults||t,i=this.datasource&&(this.datasource.execute(r.DataSource.Operation.IS_API_AWARE)||"wm-table"===this.parent.widgetType&&this.parent.gridOptions.isNavTypeScrollOrOndemand()&&(_.get(this.parent,"gridOptions.lastActionPerformed")===this.parent.gridOptions.ACTIONS.DATASET_UPDATE||!_.get(this.parent,"gridOptions.isNextPageData")))?1:this.dn.currentPage||1,this.setDefaultPagingValues(t,n,i),this.disableNavigation(),o=(this.dn.currentPage-1)*this.maxResults,this.setResult(_.isArray(e)?e.slice(o,o+this.maxResults):e)},n.prototype.setPagingValues=function(e){var t,n,i,o={};this.__fullData=e,this.binddataset?(o=(this.datasource||{})._options||{},e?this.isDataSourceHasPaging()?(this.pagination=this.datasource.execute(r.DataSource.Operation.GET_PAGING_OPTIONS)||{},this.filterFields=o.filterFields||{},this.logicalOp=o.logicalOp||"",this.sortOptions=o.orderBy||(_.isArray(this.pagination.sort)?a.getOrderByExpr(this.pagination.sort):""),t=this.pagination.totalElements,n=this.pagination.size,this.pagination.numberOfElements>0?(r.isDefined(this.pagination.number)&&(this.dn.currentPage=this.pagination.number+1),i=this.dn.currentPage||1):i=1,this.setDefaultPagingValues(t,n,i),this.disableNavigation(),this.checkDataSize(t,this.pagination.numberOfElements,this.pagination.size),this.setResult(e)):_.isString(e)||this.setNonPageableData(e):(this.setResult(e),this.resetPageNavigation()),"Basic"===this.navigation&&this._setAriaForBasicNavigation()):e&&!_.isString(e)&&this.setNonPageableData(e)},n.prototype.isFirstPage=function(){return 1===this.dn.currentPage||!this.dn.currentPage},n.prototype.isLastPage=function(){return this.dn.currentPage===this.pageCount},n.prototype.goToLastPage=function(e,t,n){this.isLastPage()?e&&this.goToPage(t,n):(this.dn.currentPage=this.pageCount,this.goToPage(t,n))},n.prototype.goToFirstPage=function(e,t,n){this.isFirstPage()?e&&this.goToPage(t,n):(this.dn.currentPage=1,this.goToPage(t,n))},n.prototype.goToPage=function(e,t){this.firstRow=(this.dn.currentPage-1)*this.maxResults;var n=this.parent.statePersistence.computeMode(this.statehandler);!n||"none"===n.toLowerCase()||"wm-table"!==this.parent.widgetType&&"wm-list"!==this.parent.widgetType||(this.parent._selectedItemsExist=!0,this.isFirstPage()?this.parent.statePersistence.removeWidgetState(this.parent,"pagination"):a.unsupportedStatePersistenceTypes.indexOf(this.parent.navigation)<0?this.parent.statePersistence.setWidgetState(this.parent,{pagination:this.dn.currentPage}):"wm-list"!==this.parent.widgetType&&"wm-table"!==this.parent.widgetType||console.warn("Retain State handling on Widget "+this.parent.name+" is not supported for current pagination type.")),this.getPageData(e,t)},n.prototype.onPageDataReady=function(e,t,n){this.disableNavigation(),this.invokeSetRecord(e,t),r.triggerFn(n)},n.prototype.getPageData=function(e,t){var n,i,o=this;if(this.isDataSourceHasPaging()){var a=this.dn.currentPage;this.isEditNotInCurrentPage()&&"delete"!==this.parent.gridOptions.lastActionPerformed&&(a=this.parent.actionRowPage),this.datasource.execute(r.DataSource.Operation.LIST_RECORDS,{page:a,filterFields:this.filterFields,orderBy:this.sortOptions,logicalOp:this.logicalOp,matchMode:"anywhereignorecase"}).then((function(n){o.onPageDataReady(e,n&&n.data,t),r.$appDigest()}),(function(e){}))}else i=this.isEditNotInCurrentPage()?(this.parent.actionRowPage-1)*this.maxResults:(this.dn.currentPage-1)*this.maxResults,n=_.isArray(this.__fullData)?this.__fullData.slice(i,i+this.maxResults):this.__fullData,this.setResult(n),this.onPageDataReady(e,n,t)},n.prototype.isEditNotInCurrentPage=function(){var e=this.dn.currentPage;return"wm-table"===this.parent.widgetType&&e===this.parent.currentPage&&this.parent.actionRowPage&&this.parent.actionRowPage<e},n.prototype.invokeSetRecord=function(e,t){var n={currentPage:this.dn.currentPage,size:this.maxResults,totalElements:this.dataSize,totalPages:this.pageCount};this.parent?this.parent.invokeEventCallback("setrecord",{$event:e,$data:t,$index:this.dn.currentPage,pageInfo:n,data:t}):this.invokeEventCallback("setrecord",{$event:e,$data:t,$index:this.dn.currentPage,pageInfo:n,data:t})},n.prototype.validateCurrentPage=function(e,t){return!e||!(isNaN(this.dn.currentPage)||this.dn.currentPage<=0||this.pageCount&&(this.dn.currentPage>this.pageCount||_.isNull(this.dn.currentPage)))||(this.dn.currentPage<=0?this.dn.currentPage=1:this.dn.currentPage>this.pageCount&&(this.dn.currentPage=this.pageCount),!1)},n.prototype.onModelChange=function(e){this.validateCurrentPage(e)&&this.goToPage(e)},n.prototype.onKeyDown=function(e){var t=$(e.target).closest("a");return"KeyE"===e.code?(t.addClass("ng-invalid"),!1):(t.removeClass("ng-invalid"),!0)},n.prototype.pageChanged=function(e){this._debouncedPageChanged(e)},n.prototype.navigatePage=function(e,t,n,i){var o,a,s,l;switch(r.isDefined(this.parent.isDataLoading)&&!this.isDisableNext&&(this.parent.isDataLoading=!0,this.parent.infScroll&&(this.parent.variableInflight=!0,this.parent.callDataGridMethod("showLoadingIndicator",this.parent.loadingdatamsg,!0))),"wm-table"===this.parent.widgetType&&this.parent.gridOptions.isNavTypeScrollOrOndemand()&&(this.parent.gridOptions.setLastActionPerformed(this.parent.gridOptions.ACTIONS.DEFAULT),this.parent.gridOptions.setIsDatasetUpdated(!1)),this.invokeEventCallback("paginationchange",{$event:void 0,$index:this.dn.currentPage}),this.dn.currentPage=+this.dn.currentPage,e){case"first":return void this.goToFirstPage(n,t,i);case"prev":if(!((null===(o=this.pagination)||void 0===o?void 0:o.next)||!this.isFirstPage()&&this.validateCurrentPage(t,i)))return;(null===(a=this.pagination)||void 0===a?void 0:a.next)&&(this.datasource.pagination.isNext=!1,this.datasource.pagination.isPrev=!0),this.dn.currentPage-=1;break;case"next":if(!((null===(s=this.pagination)||void 0===s?void 0:s.next)||!this.isLastPage()&&this.validateCurrentPage(t,i)))return;(null===(l=this.pagination)||void 0===l?void 0:l.next)&&(this.datasource.pagination.isNext=!0,this.datasource.pagination.isPrev=!1),this.dn.currentPage+=1;break;case"last":return void this.goToLastPage(n,t,i)}this.goToPage(t,i)},n.prototype.setBindDataSet=function(e,t,n,i,o,a,s){var l,c=this,p=e.split(".");if(this.statehandler=s,"Variables"!==p[0]&&"Widgets"!==p[0]||(l=p[0]+"."+p[1]+".pagination"),!o&&i&&!a)return this.dataset=i,void this._debouncedApplyDataset();this.binddataset=e,setTimeout((function(){c.registerDestroyListener(r.$watch(e,t,a?n:{},(function(e){e?(c.dataset=e,c._debouncedApplyDataset()):c.widget.dataset=e}))),l&&c.registerDestroyListener(r.$watch(l,t,{},(function(){return c._debouncedApplyDataset()})))})),a||(this.datasource=n)},n.prototype.setDataSource=function(e){this.datasource=e},n.prototype.onPropertyChange=function(t,n,i){if("dataset"===t){var o=void 0;o=this.parent&&this.parent.onDataNavigatorDataSetChange?this.parent.onDataNavigatorDataSetChange(n):n,"wm-table"===this.parent.widgetType&&(this.parent._triggeredByUser=!1),this.isEditNotInCurrentPage()?this.setResult(o):this.setPagingValues(o)}else"navigation"===t?("Advanced"===n&&(this.navigation="Classic"),this.updateNavSize(),this.navcontrols=n):"navigationsize"===t?this.updateNavSize():"navigationalign"===t?r.switchClass(this.nativeElement,"text-"+n,"text-"+i):"maxResults"===t?this.setPagingValues(this.dataset):e.prototype.onPropertyChange.call(this,t,n,i)},n.prototype.ngAfterViewInit=function(){this.nativeElement.onclick=function(e){e.stopPropagation()}},n}(a.StylableComponent);h.initializeProps=p(),h.decorators=[{type:t.Component,args:[{selector:"[wmPagination]",template:'\n<ul class="pagination advanced {{navigationClass}}" *ngIf="navcontrols === \'Classic\'">\n <li [ngClass]="{\'disabled\':isDisableFirst}">\n <a [title]="appLocale.LABEL_FIRST" name="first" href="javascript:void(0);"\n [attr.aria-disabled]="isDisableFirst"\n (click)="navigatePage(\'first\', $event)">\n <span aria-hidden="true"><i class="wi wi-first-page"></i></span>\n <span class="sr-only">Go to first page {{ isDisableFirst ? \' , Disabled\' : \'\'}}</span>\n </a>\n </li>\n <li [ngClass]="{\'disabled\':isDisablePrevious}">\n <a [title]="appLocale.LABEL_PREVIOUS" name="prev" href="javascript:void(0);"\n [attr.aria-disabled]="isDisablePrevious"\n (click)="navigatePage(\'prev\', $event)">\n <span aria-hidden="true"><i class="wi wi-chevron-left"></i></span>\n <span class="sr-only">Go to previous page {{ isDisablePrevious ? \', Disabled\' : \'\'}}</span>\n </a>\n </li>\n <li class="pagecount disabled">\n <a href="javascript:void(0);">\n <input type="number" [disabled]="isDisableCurrent" [(ngModel)]="dn.currentPage" [attr.aria-label]="\'Showing Page \' + dn.currentPage + \' of \' + pageCount"\n (keydown)="onKeyDown($event)" (change)="onModelChange($event)" class="form-control"/>\n </a>\n </li>\n <li class="disabled">\n <a [hidden]="isDisableCount"> / {{pageCount}}</a>\n </li>\n <li [ngClass]="{\'disabled\':isDisableNext}">\n <a [title]="appLocale.LABEL_NEXT" name="next" href="javascript:void(0);"\n [attr.aria-disabled]="isDisableNext"\n (click)="navigatePage(\'next\', $event)">\n <span aria-hidden="true"><i class="wi wi-chevron-right"></i></span>\n <span class="sr-only">Go to next page {{ isDisableNext ? \' , Disabled\' : \'\'}}</span>\n </a>\n </li>\n <li [ngClass]="{\'disabled\':isDisableLast}">\n <a [title]="appLocale.LABEL_LAST" name="last" href="javascript:void(0);"\n [attr.aria-disabled]="isDisableLast"\n (click)="navigatePage(\'last\', $event)">\n <span aria-hidden="true"><i class="wi wi-last-page"></i></span>\n <span class="sr-only">Go to last page {{ isDisableLast ? \' , Disabled\' : \'\'}}</span>\n </a>\n </li>\n <li *ngIf="showrecordcount" class="totalcount disabled">\n <a href="javascript:void(0);" tabindex="-1" aria-disabled="true">{{appLocale.LABEL_TOTAL_RECORDS}}: {{dataSize}}</a>\n </li>\n</ul>\n<ul class="pager {{navigationClass}}" *ngIf="navcontrols === \'Pager\'">\n <li class="previous" [ngClass]="{\'disabled\':isDisablePrevious}">\n <a href="javascript:void(0);" (click)="navigatePage(\'prev\', $event)"\n [attr.aria-disabled]="isDisablePrevious">\n <span aria-hidden="true"><i class="wi wi-chevron-left"></i></span>\n {{appLocale.LABEL_PREVIOUS}}\n <span class="sr-only">{{ isDisablePrevious ? \' , Disabled\' : \'\'}}</span>\n </a>\n </li>\n <li class="next" [ngClass]="{\'disabled\':isDisableNext}">\n <a href="javascript:void(0);" (click)="navigatePage(\'next\', $event)"\n [attr.aria-disabled]="isDisableNext">\n <span aria-hidden="true"><i class="wi wi-chevron-right"></i></span>\n {{appLocale.LABEL_NEXT}}\n <span class="sr-only">{{ isDisableNext ? \' , Disabled\' : \'\'}}</span>\n </a>\n </li>\n</ul>\n\n<pagination class="pagination basic" [ngClass]="navigationClass" *ngIf="navcontrols === \'Basic\'" role="navigation"\n [itemsPerPage]="maxResults" [totalItems]="dataSize"\n [ngModel]="dn.currentPage" (pageChanged)="pageChanged($event)"\n [attr.aria-label]="\'Showing Page \' + dn.currentPage + \' of \' + pageCount + \' pages\'"\n [boundaryLinks]="boundarylinks" [maxSize]="maxsize"\n [directionLinks]="directionlinks"\n firstText="Firtst" lastText="Last"\n [customPreviousTemplate]="prevTemplate"\n [customNextTemplate]="nextTemplate"\n [customPageTemplate]="pageTemplate"></pagination>\n\n<ul *ngIf="navcontrols === \'Basic\' && showrecordcount" class="pagination">\n <li class="totalcount disabled basiccount">\n <a href="javascript:void(0);" tabindex="-1" aria-disabled="true">{{appLocale.LABEL_TOTAL_RECORDS}}: {{dataSize}}</a>\n </li>\n</ul>\n\n<ng-template #pageTemplate let-page>\n <span class="sr-only" [attr.data-isacitvepage]="page.active">{{\'Page \'}}</span>\n {{page.number}}\n <span class="sr-only" *ngIf="page.active"> {{\', Showing page \' + page.number + \' of \' + pageCount}}</span>\n</ng-template>\n<ng-template #prevTemplate let-disabled="disabled">\n <span class="sr-only" [attr.data-isdisabled]="disabled">Go to Previous page {{disabled ? \', Disabled\' : \'\'}}</span>\n</ng-template>\n<ng-template #nextTemplate let-disabled="disabled">\n <span class="sr-only" [attr.data-isdisabled]="disabled">Go to Next page {{disabled ? \', Disabled\' : \'\'}}</span>\n</ng-template>\n',providers:[a.provideAsWidgetRef(h)]}]}],h.ctorParameters=function(){return[{type:t.Injector},{type:void 0,decorators:[{type:t.SkipSelf},{type:t.Inject,args:[a.WidgetRef]}]}]},h.propDecorators={resultEmitter:[{type:t.Output}],maxResultsEmitter:[{type:t.Output}]};var m=[h],f=function(){};f.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,i.FormsModule,o.PaginationModule,a.WmComponentsModule],declarations:c([],l(m)),exports:c([],l(m)),entryComponents:[]}]}],e.PaginationComponent=h,e.PaginationModule=f,e["\u0275a"]=p,Object.defineProperty(e,"__esModule",{value:!0})})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("ngx-bootstrap/dropdown"),require("@wm/components/base"),require("@wm/components/basic"),require("@wm/components/navigation/menu"),require("@wm/core")):"function"==typeof define&&define.amd?define("@wm/components/data/card",["exports","@angular/core","@angular/common","ngx-bootstrap/dropdown","@wm/components/base","@wm/components/basic","@wm/components/navigation/menu","@wm/core"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).wm=e.wm||{},e.wm.components=e.wm.components||{},e.wm.components.data=e.wm.components.data||{},e.wm.components.data.card={}),e.ng.core,e.ng.common,e["ngx-bootstrap"].dropdown,e.wm.components.base,e.wm.components.basic,e.wm.components.navigation.menu,e.wm.core)}(this,(function(e,t,n,i,o,a,r,s){"use strict";
479
479
  /*! *****************************************************************************
480
480
  Copyright (c) Microsoft Corporation.
481
481
 
@@ -227302,8 +227302,11 @@ window.requestAnimationFrame = function() {
227302
227302
  });
227303
227303
  };
227304
227304
  BaseVariableManager.prototype.setRequestTrackId = function(response, variable) {
227305
- var _a, _b;
227306
- var requestTrackId = ((_a = response === null || response === void 0 ? void 0 : response.headers) === null || _a === void 0 ? void 0 : _a.get) && ((_b = response === null || response === void 0 ? void 0 : response.headers) === null || _b === void 0 ? void 0 : _b.get("x-wm-request-track-id")) || (response === null || response === void 0 ? void 0 : response.headers["x-wm-request-track-id"]);
227305
+ if (response === void 0) {
227306
+ response = {};
227307
+ }
227308
+ response.headers = response.headers || {};
227309
+ var requestTrackId = response.headers.get && response.headers.get("x-wm-request-track-id") || response.headers["x-wm-request-track-id"];
227307
227310
  if (requestTrackId) {
227308
227311
  variable._requestTrackId = requestTrackId;
227309
227312
  }
@@ -4483,7 +4483,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.
4483
4483
  /*!*******************************************************!*\
4484
4484
  !*** ./src/manager/variable/base-variable.manager.ts ***!
4485
4485
  \*******************************************************/
4486
- (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){var n,r,i=(null===(n=null==e?void 0:e.headers)||void 0===n?void 0:n.get)&&(null===(r=null==e?void 0:e.headers)||void 0===r?void 0:r.get("x-wm-request-track-id"))||(null==e?void 0:e.headers["x-wm-request-track-id"]);i&&(t._requestTrackId=i)},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":
4486
+ (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":
4487
4487
  /*!*******************************************************!*\
4488
4488
  !*** ./src/manager/variable/crud-variable.manager.ts ***!
4489
4489
  \*******************************************************/
@@ -42468,9 +42468,6 @@
42468
42468
  var childNode = item.querySelector("span");
42469
42469
  if ((childNode === null || childNode === void 0 ? void 0 : childNode.dataset.isacitvepage) === "true") {
42470
42470
  item.setAttribute("aria-current", "true");
42471
- setTimeout((function() {
42472
- return item.focus();
42473
- }));
42474
42471
  }
42475
42472
  if ((childNode === null || childNode === void 0 ? void 0 : childNode.dataset.isdisabled) === "true") {
42476
42473
  item.setAttribute("aria-disabled", "true");
@@ -475,7 +475,7 @@ var c=function(e,t){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Arr
475
475
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
476
476
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
477
477
  PERFORMANCE OF THIS SOFTWARE.
478
- ***************************************************************************** */var s=function(e,t){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};Object.create;function l(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function c(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}Object.create;var p=function(){r.register("wm-pagination",new Map([["boundarylinks",Object.assign({value:!1},r.PROP_BOOLEAN)],["class",r.PROP_STRING],["dataset",r.PROP_ANY],["directionlinks",Object.assign({value:!0},r.PROP_BOOLEAN)],["forceellipses",Object.assign({value:!0},r.PROP_BOOLEAN)],["maxResults",r.PROP_NUMBER],["maxsize",Object.assign({value:5},r.PROP_NUMBER)],["name",r.PROP_STRING],["navigation",Object.assign({value:"Basic"},r.PROP_STRING)],["navigationalign",Object.assign({value:"left"},r.PROP_STRING)],["navigationsize",r.PROP_STRING],["show",Object.assign({value:!0},r.PROP_BOOLEAN)],["showrecordcount",r.PROP_BOOLEAN],["tabindex",Object.assign({value:0},r.PROP_NUMBER)]]))},u={widgetType:"wm-pagination",hostClass:"app-datanavigator clearfix"},d={Pager:{small:"pager-sm",large:"pager-lg"},Basic:{small:"pagination-sm",large:"pagination-lg"},Classic:{small:"pagination-sm",large:"pagination-lg"}},h=function(e){function n(n,i){var o=e.call(this,n,u)||this;return o.parent=i,o.resultEmitter=new t.EventEmitter,o.maxResultsEmitter=new t.EventEmitter,o.dn={currentPage:1},o.pageCount=0,o.isDisableNext=!0,o.isDisablePrevious=!0,o.isDisableFirst=!0,o.isDisableLast=!0,o._debouncedApplyDataset=a.debounce((function(){return o.widget.dataset=o.dataset}),r.DEBOUNCE_TIMES.PAGINATION_DEBOUNCE_TIME),o._debouncedPageChanged=a.debounce((function(e){var t=e&&e.page;if(t!==o.dn.currentPage){var n=o.parent||o;o.dn.currentPage=t,n.invokeEventCallback("paginationchange",{$event:void 0,$index:o.dn.currentPage}),o.goToPage(),"Basic"===o.navigation&&o._setAriaForBasicNavigation()}}),r.DEBOUNCE_TIMES.PAGINATION_DEBOUNCE_TIME),r.styler(o.nativeElement,o),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(n,e),n.prototype._setAriaForBasicNavigation=function(){_.forEach(this.nativeElement.getElementsByTagName("a"),(function(e){e.setAttribute("href","javascript:void(0);");var t=e.querySelector("span");"true"===(null==t?void 0:t.dataset.isacitvepage)&&(e.setAttribute("aria-current","true"),setTimeout((function(){return e.focus()}))),"true"===(null==t?void 0:t.dataset.isdisabled)?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled")}))},n.prototype.setResult=function(e){this.result=e,this.resultEmitter.emit(this.result)},n.prototype.updateNavSize=function(){var e=d[this.navcontrols];e&&this.navigationsize?this.navigationClass=e[this.navigationsize]:this.navigationClass=""},n.prototype.resetPageNavigation=function(){this.pageCount=0,this.dn.currentPage=1,this.dataSize=0},n.prototype.calculatePagingValues=function(){this.pageCount=this.dataSize>this.maxResults?Math.ceil(this.dataSize/this.maxResults):this.dataSize<0?0:1,this.dn.currentPage=this.dn.currentPage||1},n.prototype.setDefaultPagingValues=function(e,t,n){e||t?(this.maxResults=t||this.maxResults,this.dataSize=a.isDefined(e)?e:this.dataSize,this.dn.currentPage=n||this.dn.currentPage,this.calculatePagingValues()):(this.pageCount=1,this.dn.currentPage=1,this.maxResults=e,this.dataSize=e),this.maxResultsEmitter.emit(this.maxResults)},n.prototype.checkDataSize=function(e,t,n){-1===e||e===a.AppConstants.INT_MAX_VALUE?(this.prevshowrecordcount=this.showrecordcount,this.isDisableLast=!0,this.isDisableCount=!0,this.showrecordcount=!1,t<n&&(this.isDisableNext=!0)):(this.isDisableCount=!1,this.showrecordcount=this.prevshowrecordcount||this.showrecordcount)},n.prototype.disableNavigation=function(){var e,t=1===this.dn.currentPage,n=this.dn.currentPage===this.pageCount;(null===(e=this.pagination)||void 0===e?void 0:e.next)?(this.isDisableFirst=this.isDisablePrevious=!this.pagination.prev,this.isDisableNext=this.isDisableLast=!this.pagination.next):(this.isDisableFirst=this.isDisablePrevious=t,this.isDisableNext=this.isDisableLast=n),this.isDisableCurrent=t&&n,this.dataset&&this.dataset.length&&this.isDisableNext&&this.parent.onDemandLoad&&"wm-table"===this.parent.widgetType&&this.parent.callDataGridMethod("hideLoadingIndicator",this.isDisableNext,this.parent.infScroll)},n.prototype.isDataSourceHasPaging=function(){return this.datasource&&this.datasource.execute(a.DataSource.Operation.IS_PAGEABLE)},n.prototype.setNonPageableData=function(e){var t,n,i,o;t=_.isArray(e)?e.length:_.isEmpty(e)?0:1,n=this.options&&this.options.maxResults||t,i=this.datasource&&(this.datasource.execute(a.DataSource.Operation.IS_API_AWARE)||"wm-table"===this.parent.widgetType&&this.parent.gridOptions.isNavTypeScrollOrOndemand()&&(_.get(this.parent,"gridOptions.lastActionPerformed")===this.parent.gridOptions.ACTIONS.DATASET_UPDATE||!_.get(this.parent,"gridOptions.isNextPageData")))?1:this.dn.currentPage||1,this.setDefaultPagingValues(t,n,i),this.disableNavigation(),o=(this.dn.currentPage-1)*this.maxResults,this.setResult(_.isArray(e)?e.slice(o,o+this.maxResults):e)},n.prototype.setPagingValues=function(e){var t,n,i,o={};this.__fullData=e,this.binddataset?(o=(this.datasource||{})._options||{},e?this.isDataSourceHasPaging()?(this.pagination=this.datasource.execute(a.DataSource.Operation.GET_PAGING_OPTIONS)||{},this.filterFields=o.filterFields||{},this.logicalOp=o.logicalOp||"",this.sortOptions=o.orderBy||(_.isArray(this.pagination.sort)?r.getOrderByExpr(this.pagination.sort):""),t=this.pagination.totalElements,n=this.pagination.size,this.pagination.numberOfElements>0?(a.isDefined(this.pagination.number)&&(this.dn.currentPage=this.pagination.number+1),i=this.dn.currentPage||1):i=1,this.setDefaultPagingValues(t,n,i),this.disableNavigation(),this.checkDataSize(t,this.pagination.numberOfElements,this.pagination.size),this.setResult(e)):_.isString(e)||this.setNonPageableData(e):(this.setResult(e),this.resetPageNavigation()),"Basic"===this.navigation&&this._setAriaForBasicNavigation()):e&&!_.isString(e)&&this.setNonPageableData(e)},n.prototype.isFirstPage=function(){return 1===this.dn.currentPage||!this.dn.currentPage},n.prototype.isLastPage=function(){return this.dn.currentPage===this.pageCount},n.prototype.goToLastPage=function(e,t,n){this.isLastPage()?e&&this.goToPage(t,n):(this.dn.currentPage=this.pageCount,this.goToPage(t,n))},n.prototype.goToFirstPage=function(e,t,n){this.isFirstPage()?e&&this.goToPage(t,n):(this.dn.currentPage=1,this.goToPage(t,n))},n.prototype.goToPage=function(e,t){this.firstRow=(this.dn.currentPage-1)*this.maxResults;var n=this.parent.statePersistence.computeMode(this.statehandler);!n||"none"===n.toLowerCase()||"wm-table"!==this.parent.widgetType&&"wm-list"!==this.parent.widgetType||(this.parent._selectedItemsExist=!0,this.isFirstPage()?this.parent.statePersistence.removeWidgetState(this.parent,"pagination"):r.unsupportedStatePersistenceTypes.indexOf(this.parent.navigation)<0?this.parent.statePersistence.setWidgetState(this.parent,{pagination:this.dn.currentPage}):"wm-list"!==this.parent.widgetType&&"wm-table"!==this.parent.widgetType||console.warn("Retain State handling on Widget "+this.parent.name+" is not supported for current pagination type.")),this.getPageData(e,t)},n.prototype.onPageDataReady=function(e,t,n){this.disableNavigation(),this.invokeSetRecord(e,t),a.triggerFn(n)},n.prototype.getPageData=function(e,t){var n,i,o=this;if(this.isDataSourceHasPaging()){var r=this.dn.currentPage;this.isEditNotInCurrentPage()&&"delete"!==this.parent.gridOptions.lastActionPerformed&&(r=this.parent.actionRowPage),this.datasource.execute(a.DataSource.Operation.LIST_RECORDS,{page:r,filterFields:this.filterFields,orderBy:this.sortOptions,logicalOp:this.logicalOp,matchMode:"anywhereignorecase"}).then((function(n){o.onPageDataReady(e,n&&n.data,t),a.$appDigest()}),(function(e){}))}else i=this.isEditNotInCurrentPage()?(this.parent.actionRowPage-1)*this.maxResults:(this.dn.currentPage-1)*this.maxResults,n=_.isArray(this.__fullData)?this.__fullData.slice(i,i+this.maxResults):this.__fullData,this.setResult(n),this.onPageDataReady(e,n,t)},n.prototype.isEditNotInCurrentPage=function(){var e=this.dn.currentPage;return"wm-table"===this.parent.widgetType&&e===this.parent.currentPage&&this.parent.actionRowPage&&this.parent.actionRowPage<e},n.prototype.invokeSetRecord=function(e,t){var n={currentPage:this.dn.currentPage,size:this.maxResults,totalElements:this.dataSize,totalPages:this.pageCount};this.parent?this.parent.invokeEventCallback("setrecord",{$event:e,$data:t,$index:this.dn.currentPage,pageInfo:n,data:t}):this.invokeEventCallback("setrecord",{$event:e,$data:t,$index:this.dn.currentPage,pageInfo:n,data:t})},n.prototype.validateCurrentPage=function(e,t){return!e||!(isNaN(this.dn.currentPage)||this.dn.currentPage<=0||this.pageCount&&(this.dn.currentPage>this.pageCount||_.isNull(this.dn.currentPage)))||(this.dn.currentPage<=0?this.dn.currentPage=1:this.dn.currentPage>this.pageCount&&(this.dn.currentPage=this.pageCount),!1)},n.prototype.onModelChange=function(e){this.validateCurrentPage(e)&&this.goToPage(e)},n.prototype.onKeyDown=function(e){var t=$(e.target).closest("a");return"KeyE"===e.code?(t.addClass("ng-invalid"),!1):(t.removeClass("ng-invalid"),!0)},n.prototype.pageChanged=function(e){this._debouncedPageChanged(e)},n.prototype.navigatePage=function(e,t,n,i){var o,r,s,l;switch(a.isDefined(this.parent.isDataLoading)&&!this.isDisableNext&&(this.parent.isDataLoading=!0,this.parent.infScroll&&(this.parent.variableInflight=!0,this.parent.callDataGridMethod("showLoadingIndicator",this.parent.loadingdatamsg,!0))),"wm-table"===this.parent.widgetType&&this.parent.gridOptions.isNavTypeScrollOrOndemand()&&(this.parent.gridOptions.setLastActionPerformed(this.parent.gridOptions.ACTIONS.DEFAULT),this.parent.gridOptions.setIsDatasetUpdated(!1)),this.invokeEventCallback("paginationchange",{$event:void 0,$index:this.dn.currentPage}),this.dn.currentPage=+this.dn.currentPage,e){case"first":return void this.goToFirstPage(n,t,i);case"prev":if(!((null===(o=this.pagination)||void 0===o?void 0:o.next)||!this.isFirstPage()&&this.validateCurrentPage(t,i)))return;(null===(r=this.pagination)||void 0===r?void 0:r.next)&&(this.datasource.pagination.isNext=!1,this.datasource.pagination.isPrev=!0),this.dn.currentPage-=1;break;case"next":if(!((null===(s=this.pagination)||void 0===s?void 0:s.next)||!this.isLastPage()&&this.validateCurrentPage(t,i)))return;(null===(l=this.pagination)||void 0===l?void 0:l.next)&&(this.datasource.pagination.isNext=!0,this.datasource.pagination.isPrev=!1),this.dn.currentPage+=1;break;case"last":return void this.goToLastPage(n,t,i)}this.goToPage(t,i)},n.prototype.setBindDataSet=function(e,t,n,i,o,r,s){var l,c=this,p=e.split(".");if(this.statehandler=s,"Variables"!==p[0]&&"Widgets"!==p[0]||(l=p[0]+"."+p[1]+".pagination"),!o&&i&&!r)return this.dataset=i,void this._debouncedApplyDataset();this.binddataset=e,setTimeout((function(){c.registerDestroyListener(a.$watch(e,t,r?n:{},(function(e){e?(c.dataset=e,c._debouncedApplyDataset()):c.widget.dataset=e}))),l&&c.registerDestroyListener(a.$watch(l,t,{},(function(){return c._debouncedApplyDataset()})))})),r||(this.datasource=n)},n.prototype.setDataSource=function(e){this.datasource=e},n.prototype.onPropertyChange=function(t,n,i){if("dataset"===t){var o=void 0;o=this.parent&&this.parent.onDataNavigatorDataSetChange?this.parent.onDataNavigatorDataSetChange(n):n,"wm-table"===this.parent.widgetType&&(this.parent._triggeredByUser=!1),this.isEditNotInCurrentPage()?this.setResult(o):this.setPagingValues(o)}else"navigation"===t?("Advanced"===n&&(this.navigation="Classic"),this.updateNavSize(),this.navcontrols=n):"navigationsize"===t?this.updateNavSize():"navigationalign"===t?a.switchClass(this.nativeElement,"text-"+n,"text-"+i):"maxResults"===t?this.setPagingValues(this.dataset):e.prototype.onPropertyChange.call(this,t,n,i)},n.prototype.ngAfterViewInit=function(){this.nativeElement.onclick=function(e){e.stopPropagation()}},n}(r.StylableComponent);h.initializeProps=p(),h.decorators=[{type:t.Component,args:[{selector:"[wmPagination]",template:'\n<ul class="pagination advanced {{navigationClass}}" *ngIf="navcontrols === \'Classic\'">\n <li [ngClass]="{\'disabled\':isDisableFirst}">\n <a [title]="appLocale.LABEL_FIRST" name="first" href="javascript:void(0);"\n [attr.aria-disabled]="isDisableFirst"\n (click)="navigatePage(\'first\', $event)">\n <span aria-hidden="true"><i class="wi wi-first-page"></i></span>\n <span class="sr-only">Go to first page {{ isDisableFirst ? \' , Disabled\' : \'\'}}</span>\n </a>\n </li>\n <li [ngClass]="{\'disabled\':isDisablePrevious}">\n <a [title]="appLocale.LABEL_PREVIOUS" name="prev" href="javascript:void(0);"\n [attr.aria-disabled]="isDisablePrevious"\n (click)="navigatePage(\'prev\', $event)">\n <span aria-hidden="true"><i class="wi wi-chevron-left"></i></span>\n <span class="sr-only">Go to previous page {{ isDisablePrevious ? \', Disabled\' : \'\'}}</span>\n </a>\n </li>\n <li class="pagecount disabled">\n <a href="javascript:void(0);">\n <input type="number" [disabled]="isDisableCurrent" [(ngModel)]="dn.currentPage" [attr.aria-label]="\'Showing Page \' + dn.currentPage + \' of \' + pageCount"\n (keydown)="onKeyDown($event)" (change)="onModelChange($event)" class="form-control"/>\n </a>\n </li>\n <li class="disabled">\n <a [hidden]="isDisableCount"> / {{pageCount}}</a>\n </li>\n <li [ngClass]="{\'disabled\':isDisableNext}">\n <a [title]="appLocale.LABEL_NEXT" name="next" href="javascript:void(0);"\n [attr.aria-disabled]="isDisableNext"\n (click)="navigatePage(\'next\', $event)">\n <span aria-hidden="true"><i class="wi wi-chevron-right"></i></span>\n <span class="sr-only">Go to next page {{ isDisableNext ? \' , Disabled\' : \'\'}}</span>\n </a>\n </li>\n <li [ngClass]="{\'disabled\':isDisableLast}">\n <a [title]="appLocale.LABEL_LAST" name="last" href="javascript:void(0);"\n [attr.aria-disabled]="isDisableLast"\n (click)="navigatePage(\'last\', $event)">\n <span aria-hidden="true"><i class="wi wi-last-page"></i></span>\n <span class="sr-only">Go to last page {{ isDisableLast ? \' , Disabled\' : \'\'}}</span>\n </a>\n </li>\n <li *ngIf="showrecordcount" class="totalcount disabled">\n <a href="javascript:void(0);" tabindex="-1" aria-disabled="true">{{appLocale.LABEL_TOTAL_RECORDS}}: {{dataSize}}</a>\n </li>\n</ul>\n<ul class="pager {{navigationClass}}" *ngIf="navcontrols === \'Pager\'">\n <li class="previous" [ngClass]="{\'disabled\':isDisablePrevious}">\n <a href="javascript:void(0);" (click)="navigatePage(\'prev\', $event)"\n [attr.aria-disabled]="isDisablePrevious">\n <span aria-hidden="true"><i class="wi wi-chevron-left"></i></span>\n {{appLocale.LABEL_PREVIOUS}}\n <span class="sr-only">{{ isDisablePrevious ? \' , Disabled\' : \'\'}}</span>\n </a>\n </li>\n <li class="next" [ngClass]="{\'disabled\':isDisableNext}">\n <a href="javascript:void(0);" (click)="navigatePage(\'next\', $event)"\n [attr.aria-disabled]="isDisableNext">\n <span aria-hidden="true"><i class="wi wi-chevron-right"></i></span>\n {{appLocale.LABEL_NEXT}}\n <span class="sr-only">{{ isDisableNext ? \' , Disabled\' : \'\'}}</span>\n </a>\n </li>\n</ul>\n\n<pagination class="pagination basic" [ngClass]="navigationClass" *ngIf="navcontrols === \'Basic\'" role="navigation"\n [itemsPerPage]="maxResults" [totalItems]="dataSize"\n [ngModel]="dn.currentPage" (pageChanged)="pageChanged($event)"\n [attr.aria-label]="\'Showing Page \' + dn.currentPage + \' of \' + pageCount + \' pages\'"\n [boundaryLinks]="boundarylinks" [maxSize]="maxsize"\n [directionLinks]="directionlinks"\n firstText="Firtst" lastText="Last"\n [customPreviousTemplate]="prevTemplate"\n [customNextTemplate]="nextTemplate"\n [customPageTemplate]="pageTemplate"></pagination>\n\n<ul *ngIf="navcontrols === \'Basic\' && showrecordcount" class="pagination">\n <li class="totalcount disabled basiccount">\n <a href="javascript:void(0);" tabindex="-1" aria-disabled="true">{{appLocale.LABEL_TOTAL_RECORDS}}: {{dataSize}}</a>\n </li>\n</ul>\n\n<ng-template #pageTemplate let-page>\n <span class="sr-only" [attr.data-isacitvepage]="page.active">{{\'Page \'}}</span>\n {{page.number}}\n <span class="sr-only" *ngIf="page.active"> {{\', Showing page \' + page.number + \' of \' + pageCount}}</span>\n</ng-template>\n<ng-template #prevTemplate let-disabled="disabled">\n <span class="sr-only" [attr.data-isdisabled]="disabled">Go to Previous page {{disabled ? \', Disabled\' : \'\'}}</span>\n</ng-template>\n<ng-template #nextTemplate let-disabled="disabled">\n <span class="sr-only" [attr.data-isdisabled]="disabled">Go to Next page {{disabled ? \', Disabled\' : \'\'}}</span>\n</ng-template>\n',providers:[r.provideAsWidgetRef(h)]}]}],h.ctorParameters=function(){return[{type:t.Injector},{type:void 0,decorators:[{type:t.SkipSelf},{type:t.Inject,args:[r.WidgetRef]}]}]},h.propDecorators={resultEmitter:[{type:t.Output}],maxResultsEmitter:[{type:t.Output}]};var m=[h],f=function(){};f.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,i.FormsModule,o.PaginationModule,r.WmComponentsModule],declarations:c([],l(m)),exports:c([],l(m)),entryComponents:[]}]}],e.PaginationComponent=h,e.PaginationModule=f,e["\u0275a"]=p,Object.defineProperty(e,"__esModule",{value:!0})})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("ngx-bootstrap/dropdown"),require("@wm/components/base"),require("@wm/components/basic"),require("@wm/components/navigation/menu"),require("@wm/core")):"function"==typeof define&&define.amd?define("@wm/components/data/card",["exports","@angular/core","@angular/common","ngx-bootstrap/dropdown","@wm/components/base","@wm/components/basic","@wm/components/navigation/menu","@wm/core"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).wm=e.wm||{},e.wm.components=e.wm.components||{},e.wm.components.data=e.wm.components.data||{},e.wm.components.data.card={}),e.ng.core,e.ng.common,e["ngx-bootstrap"].dropdown,e.wm.components.base,e.wm.components.basic,e.wm.components.navigation.menu,e.wm.core)}(this,(function(e,t,n,i,o,r,a,s){"use strict";
478
+ ***************************************************************************** */var s=function(e,t){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};Object.create;function l(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function c(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}Object.create;var p=function(){r.register("wm-pagination",new Map([["boundarylinks",Object.assign({value:!1},r.PROP_BOOLEAN)],["class",r.PROP_STRING],["dataset",r.PROP_ANY],["directionlinks",Object.assign({value:!0},r.PROP_BOOLEAN)],["forceellipses",Object.assign({value:!0},r.PROP_BOOLEAN)],["maxResults",r.PROP_NUMBER],["maxsize",Object.assign({value:5},r.PROP_NUMBER)],["name",r.PROP_STRING],["navigation",Object.assign({value:"Basic"},r.PROP_STRING)],["navigationalign",Object.assign({value:"left"},r.PROP_STRING)],["navigationsize",r.PROP_STRING],["show",Object.assign({value:!0},r.PROP_BOOLEAN)],["showrecordcount",r.PROP_BOOLEAN],["tabindex",Object.assign({value:0},r.PROP_NUMBER)]]))},u={widgetType:"wm-pagination",hostClass:"app-datanavigator clearfix"},d={Pager:{small:"pager-sm",large:"pager-lg"},Basic:{small:"pagination-sm",large:"pagination-lg"},Classic:{small:"pagination-sm",large:"pagination-lg"}},h=function(e){function n(n,i){var o=e.call(this,n,u)||this;return o.parent=i,o.resultEmitter=new t.EventEmitter,o.maxResultsEmitter=new t.EventEmitter,o.dn={currentPage:1},o.pageCount=0,o.isDisableNext=!0,o.isDisablePrevious=!0,o.isDisableFirst=!0,o.isDisableLast=!0,o._debouncedApplyDataset=a.debounce((function(){return o.widget.dataset=o.dataset}),r.DEBOUNCE_TIMES.PAGINATION_DEBOUNCE_TIME),o._debouncedPageChanged=a.debounce((function(e){var t=e&&e.page;if(t!==o.dn.currentPage){var n=o.parent||o;o.dn.currentPage=t,n.invokeEventCallback("paginationchange",{$event:void 0,$index:o.dn.currentPage}),o.goToPage(),"Basic"===o.navigation&&o._setAriaForBasicNavigation()}}),r.DEBOUNCE_TIMES.PAGINATION_DEBOUNCE_TIME),r.styler(o.nativeElement,o),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(n,e),n.prototype._setAriaForBasicNavigation=function(){_.forEach(this.nativeElement.getElementsByTagName("a"),(function(e){e.setAttribute("href","javascript:void(0);");var t=e.querySelector("span");"true"===(null==t?void 0:t.dataset.isacitvepage)&&e.setAttribute("aria-current","true"),"true"===(null==t?void 0:t.dataset.isdisabled)?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled")}))},n.prototype.setResult=function(e){this.result=e,this.resultEmitter.emit(this.result)},n.prototype.updateNavSize=function(){var e=d[this.navcontrols];e&&this.navigationsize?this.navigationClass=e[this.navigationsize]:this.navigationClass=""},n.prototype.resetPageNavigation=function(){this.pageCount=0,this.dn.currentPage=1,this.dataSize=0},n.prototype.calculatePagingValues=function(){this.pageCount=this.dataSize>this.maxResults?Math.ceil(this.dataSize/this.maxResults):this.dataSize<0?0:1,this.dn.currentPage=this.dn.currentPage||1},n.prototype.setDefaultPagingValues=function(e,t,n){e||t?(this.maxResults=t||this.maxResults,this.dataSize=a.isDefined(e)?e:this.dataSize,this.dn.currentPage=n||this.dn.currentPage,this.calculatePagingValues()):(this.pageCount=1,this.dn.currentPage=1,this.maxResults=e,this.dataSize=e),this.maxResultsEmitter.emit(this.maxResults)},n.prototype.checkDataSize=function(e,t,n){-1===e||e===a.AppConstants.INT_MAX_VALUE?(this.prevshowrecordcount=this.showrecordcount,this.isDisableLast=!0,this.isDisableCount=!0,this.showrecordcount=!1,t<n&&(this.isDisableNext=!0)):(this.isDisableCount=!1,this.showrecordcount=this.prevshowrecordcount||this.showrecordcount)},n.prototype.disableNavigation=function(){var e,t=1===this.dn.currentPage,n=this.dn.currentPage===this.pageCount;(null===(e=this.pagination)||void 0===e?void 0:e.next)?(this.isDisableFirst=this.isDisablePrevious=!this.pagination.prev,this.isDisableNext=this.isDisableLast=!this.pagination.next):(this.isDisableFirst=this.isDisablePrevious=t,this.isDisableNext=this.isDisableLast=n),this.isDisableCurrent=t&&n,this.dataset&&this.dataset.length&&this.isDisableNext&&this.parent.onDemandLoad&&"wm-table"===this.parent.widgetType&&this.parent.callDataGridMethod("hideLoadingIndicator",this.isDisableNext,this.parent.infScroll)},n.prototype.isDataSourceHasPaging=function(){return this.datasource&&this.datasource.execute(a.DataSource.Operation.IS_PAGEABLE)},n.prototype.setNonPageableData=function(e){var t,n,i,o;t=_.isArray(e)?e.length:_.isEmpty(e)?0:1,n=this.options&&this.options.maxResults||t,i=this.datasource&&(this.datasource.execute(a.DataSource.Operation.IS_API_AWARE)||"wm-table"===this.parent.widgetType&&this.parent.gridOptions.isNavTypeScrollOrOndemand()&&(_.get(this.parent,"gridOptions.lastActionPerformed")===this.parent.gridOptions.ACTIONS.DATASET_UPDATE||!_.get(this.parent,"gridOptions.isNextPageData")))?1:this.dn.currentPage||1,this.setDefaultPagingValues(t,n,i),this.disableNavigation(),o=(this.dn.currentPage-1)*this.maxResults,this.setResult(_.isArray(e)?e.slice(o,o+this.maxResults):e)},n.prototype.setPagingValues=function(e){var t,n,i,o={};this.__fullData=e,this.binddataset?(o=(this.datasource||{})._options||{},e?this.isDataSourceHasPaging()?(this.pagination=this.datasource.execute(a.DataSource.Operation.GET_PAGING_OPTIONS)||{},this.filterFields=o.filterFields||{},this.logicalOp=o.logicalOp||"",this.sortOptions=o.orderBy||(_.isArray(this.pagination.sort)?r.getOrderByExpr(this.pagination.sort):""),t=this.pagination.totalElements,n=this.pagination.size,this.pagination.numberOfElements>0?(a.isDefined(this.pagination.number)&&(this.dn.currentPage=this.pagination.number+1),i=this.dn.currentPage||1):i=1,this.setDefaultPagingValues(t,n,i),this.disableNavigation(),this.checkDataSize(t,this.pagination.numberOfElements,this.pagination.size),this.setResult(e)):_.isString(e)||this.setNonPageableData(e):(this.setResult(e),this.resetPageNavigation()),"Basic"===this.navigation&&this._setAriaForBasicNavigation()):e&&!_.isString(e)&&this.setNonPageableData(e)},n.prototype.isFirstPage=function(){return 1===this.dn.currentPage||!this.dn.currentPage},n.prototype.isLastPage=function(){return this.dn.currentPage===this.pageCount},n.prototype.goToLastPage=function(e,t,n){this.isLastPage()?e&&this.goToPage(t,n):(this.dn.currentPage=this.pageCount,this.goToPage(t,n))},n.prototype.goToFirstPage=function(e,t,n){this.isFirstPage()?e&&this.goToPage(t,n):(this.dn.currentPage=1,this.goToPage(t,n))},n.prototype.goToPage=function(e,t){this.firstRow=(this.dn.currentPage-1)*this.maxResults;var n=this.parent.statePersistence.computeMode(this.statehandler);!n||"none"===n.toLowerCase()||"wm-table"!==this.parent.widgetType&&"wm-list"!==this.parent.widgetType||(this.parent._selectedItemsExist=!0,this.isFirstPage()?this.parent.statePersistence.removeWidgetState(this.parent,"pagination"):r.unsupportedStatePersistenceTypes.indexOf(this.parent.navigation)<0?this.parent.statePersistence.setWidgetState(this.parent,{pagination:this.dn.currentPage}):"wm-list"!==this.parent.widgetType&&"wm-table"!==this.parent.widgetType||console.warn("Retain State handling on Widget "+this.parent.name+" is not supported for current pagination type.")),this.getPageData(e,t)},n.prototype.onPageDataReady=function(e,t,n){this.disableNavigation(),this.invokeSetRecord(e,t),a.triggerFn(n)},n.prototype.getPageData=function(e,t){var n,i,o=this;if(this.isDataSourceHasPaging()){var r=this.dn.currentPage;this.isEditNotInCurrentPage()&&"delete"!==this.parent.gridOptions.lastActionPerformed&&(r=this.parent.actionRowPage),this.datasource.execute(a.DataSource.Operation.LIST_RECORDS,{page:r,filterFields:this.filterFields,orderBy:this.sortOptions,logicalOp:this.logicalOp,matchMode:"anywhereignorecase"}).then((function(n){o.onPageDataReady(e,n&&n.data,t),a.$appDigest()}),(function(e){}))}else i=this.isEditNotInCurrentPage()?(this.parent.actionRowPage-1)*this.maxResults:(this.dn.currentPage-1)*this.maxResults,n=_.isArray(this.__fullData)?this.__fullData.slice(i,i+this.maxResults):this.__fullData,this.setResult(n),this.onPageDataReady(e,n,t)},n.prototype.isEditNotInCurrentPage=function(){var e=this.dn.currentPage;return"wm-table"===this.parent.widgetType&&e===this.parent.currentPage&&this.parent.actionRowPage&&this.parent.actionRowPage<e},n.prototype.invokeSetRecord=function(e,t){var n={currentPage:this.dn.currentPage,size:this.maxResults,totalElements:this.dataSize,totalPages:this.pageCount};this.parent?this.parent.invokeEventCallback("setrecord",{$event:e,$data:t,$index:this.dn.currentPage,pageInfo:n,data:t}):this.invokeEventCallback("setrecord",{$event:e,$data:t,$index:this.dn.currentPage,pageInfo:n,data:t})},n.prototype.validateCurrentPage=function(e,t){return!e||!(isNaN(this.dn.currentPage)||this.dn.currentPage<=0||this.pageCount&&(this.dn.currentPage>this.pageCount||_.isNull(this.dn.currentPage)))||(this.dn.currentPage<=0?this.dn.currentPage=1:this.dn.currentPage>this.pageCount&&(this.dn.currentPage=this.pageCount),!1)},n.prototype.onModelChange=function(e){this.validateCurrentPage(e)&&this.goToPage(e)},n.prototype.onKeyDown=function(e){var t=$(e.target).closest("a");return"KeyE"===e.code?(t.addClass("ng-invalid"),!1):(t.removeClass("ng-invalid"),!0)},n.prototype.pageChanged=function(e){this._debouncedPageChanged(e)},n.prototype.navigatePage=function(e,t,n,i){var o,r,s,l;switch(a.isDefined(this.parent.isDataLoading)&&!this.isDisableNext&&(this.parent.isDataLoading=!0,this.parent.infScroll&&(this.parent.variableInflight=!0,this.parent.callDataGridMethod("showLoadingIndicator",this.parent.loadingdatamsg,!0))),"wm-table"===this.parent.widgetType&&this.parent.gridOptions.isNavTypeScrollOrOndemand()&&(this.parent.gridOptions.setLastActionPerformed(this.parent.gridOptions.ACTIONS.DEFAULT),this.parent.gridOptions.setIsDatasetUpdated(!1)),this.invokeEventCallback("paginationchange",{$event:void 0,$index:this.dn.currentPage}),this.dn.currentPage=+this.dn.currentPage,e){case"first":return void this.goToFirstPage(n,t,i);case"prev":if(!((null===(o=this.pagination)||void 0===o?void 0:o.next)||!this.isFirstPage()&&this.validateCurrentPage(t,i)))return;(null===(r=this.pagination)||void 0===r?void 0:r.next)&&(this.datasource.pagination.isNext=!1,this.datasource.pagination.isPrev=!0),this.dn.currentPage-=1;break;case"next":if(!((null===(s=this.pagination)||void 0===s?void 0:s.next)||!this.isLastPage()&&this.validateCurrentPage(t,i)))return;(null===(l=this.pagination)||void 0===l?void 0:l.next)&&(this.datasource.pagination.isNext=!0,this.datasource.pagination.isPrev=!1),this.dn.currentPage+=1;break;case"last":return void this.goToLastPage(n,t,i)}this.goToPage(t,i)},n.prototype.setBindDataSet=function(e,t,n,i,o,r,s){var l,c=this,p=e.split(".");if(this.statehandler=s,"Variables"!==p[0]&&"Widgets"!==p[0]||(l=p[0]+"."+p[1]+".pagination"),!o&&i&&!r)return this.dataset=i,void this._debouncedApplyDataset();this.binddataset=e,setTimeout((function(){c.registerDestroyListener(a.$watch(e,t,r?n:{},(function(e){e?(c.dataset=e,c._debouncedApplyDataset()):c.widget.dataset=e}))),l&&c.registerDestroyListener(a.$watch(l,t,{},(function(){return c._debouncedApplyDataset()})))})),r||(this.datasource=n)},n.prototype.setDataSource=function(e){this.datasource=e},n.prototype.onPropertyChange=function(t,n,i){if("dataset"===t){var o=void 0;o=this.parent&&this.parent.onDataNavigatorDataSetChange?this.parent.onDataNavigatorDataSetChange(n):n,"wm-table"===this.parent.widgetType&&(this.parent._triggeredByUser=!1),this.isEditNotInCurrentPage()?this.setResult(o):this.setPagingValues(o)}else"navigation"===t?("Advanced"===n&&(this.navigation="Classic"),this.updateNavSize(),this.navcontrols=n):"navigationsize"===t?this.updateNavSize():"navigationalign"===t?a.switchClass(this.nativeElement,"text-"+n,"text-"+i):"maxResults"===t?this.setPagingValues(this.dataset):e.prototype.onPropertyChange.call(this,t,n,i)},n.prototype.ngAfterViewInit=function(){this.nativeElement.onclick=function(e){e.stopPropagation()}},n}(r.StylableComponent);h.initializeProps=p(),h.decorators=[{type:t.Component,args:[{selector:"[wmPagination]",template:'\n<ul class="pagination advanced {{navigationClass}}" *ngIf="navcontrols === \'Classic\'">\n <li [ngClass]="{\'disabled\':isDisableFirst}">\n <a [title]="appLocale.LABEL_FIRST" name="first" href="javascript:void(0);"\n [attr.aria-disabled]="isDisableFirst"\n (click)="navigatePage(\'first\', $event)">\n <span aria-hidden="true"><i class="wi wi-first-page"></i></span>\n <span class="sr-only">Go to first page {{ isDisableFirst ? \' , Disabled\' : \'\'}}</span>\n </a>\n </li>\n <li [ngClass]="{\'disabled\':isDisablePrevious}">\n <a [title]="appLocale.LABEL_PREVIOUS" name="prev" href="javascript:void(0);"\n [attr.aria-disabled]="isDisablePrevious"\n (click)="navigatePage(\'prev\', $event)">\n <span aria-hidden="true"><i class="wi wi-chevron-left"></i></span>\n <span class="sr-only">Go to previous page {{ isDisablePrevious ? \', Disabled\' : \'\'}}</span>\n </a>\n </li>\n <li class="pagecount disabled">\n <a href="javascript:void(0);">\n <input type="number" [disabled]="isDisableCurrent" [(ngModel)]="dn.currentPage" [attr.aria-label]="\'Showing Page \' + dn.currentPage + \' of \' + pageCount"\n (keydown)="onKeyDown($event)" (change)="onModelChange($event)" class="form-control"/>\n </a>\n </li>\n <li class="disabled">\n <a [hidden]="isDisableCount"> / {{pageCount}}</a>\n </li>\n <li [ngClass]="{\'disabled\':isDisableNext}">\n <a [title]="appLocale.LABEL_NEXT" name="next" href="javascript:void(0);"\n [attr.aria-disabled]="isDisableNext"\n (click)="navigatePage(\'next\', $event)">\n <span aria-hidden="true"><i class="wi wi-chevron-right"></i></span>\n <span class="sr-only">Go to next page {{ isDisableNext ? \' , Disabled\' : \'\'}}</span>\n </a>\n </li>\n <li [ngClass]="{\'disabled\':isDisableLast}">\n <a [title]="appLocale.LABEL_LAST" name="last" href="javascript:void(0);"\n [attr.aria-disabled]="isDisableLast"\n (click)="navigatePage(\'last\', $event)">\n <span aria-hidden="true"><i class="wi wi-last-page"></i></span>\n <span class="sr-only">Go to last page {{ isDisableLast ? \' , Disabled\' : \'\'}}</span>\n </a>\n </li>\n <li *ngIf="showrecordcount" class="totalcount disabled">\n <a href="javascript:void(0);" tabindex="-1" aria-disabled="true">{{appLocale.LABEL_TOTAL_RECORDS}}: {{dataSize}}</a>\n </li>\n</ul>\n<ul class="pager {{navigationClass}}" *ngIf="navcontrols === \'Pager\'">\n <li class="previous" [ngClass]="{\'disabled\':isDisablePrevious}">\n <a href="javascript:void(0);" (click)="navigatePage(\'prev\', $event)"\n [attr.aria-disabled]="isDisablePrevious">\n <span aria-hidden="true"><i class="wi wi-chevron-left"></i></span>\n {{appLocale.LABEL_PREVIOUS}}\n <span class="sr-only">{{ isDisablePrevious ? \' , Disabled\' : \'\'}}</span>\n </a>\n </li>\n <li class="next" [ngClass]="{\'disabled\':isDisableNext}">\n <a href="javascript:void(0);" (click)="navigatePage(\'next\', $event)"\n [attr.aria-disabled]="isDisableNext">\n <span aria-hidden="true"><i class="wi wi-chevron-right"></i></span>\n {{appLocale.LABEL_NEXT}}\n <span class="sr-only">{{ isDisableNext ? \' , Disabled\' : \'\'}}</span>\n </a>\n </li>\n</ul>\n\n<pagination class="pagination basic" [ngClass]="navigationClass" *ngIf="navcontrols === \'Basic\'" role="navigation"\n [itemsPerPage]="maxResults" [totalItems]="dataSize"\n [ngModel]="dn.currentPage" (pageChanged)="pageChanged($event)"\n [attr.aria-label]="\'Showing Page \' + dn.currentPage + \' of \' + pageCount + \' pages\'"\n [boundaryLinks]="boundarylinks" [maxSize]="maxsize"\n [directionLinks]="directionlinks"\n firstText="Firtst" lastText="Last"\n [customPreviousTemplate]="prevTemplate"\n [customNextTemplate]="nextTemplate"\n [customPageTemplate]="pageTemplate"></pagination>\n\n<ul *ngIf="navcontrols === \'Basic\' && showrecordcount" class="pagination">\n <li class="totalcount disabled basiccount">\n <a href="javascript:void(0);" tabindex="-1" aria-disabled="true">{{appLocale.LABEL_TOTAL_RECORDS}}: {{dataSize}}</a>\n </li>\n</ul>\n\n<ng-template #pageTemplate let-page>\n <span class="sr-only" [attr.data-isacitvepage]="page.active">{{\'Page \'}}</span>\n {{page.number}}\n <span class="sr-only" *ngIf="page.active"> {{\', Showing page \' + page.number + \' of \' + pageCount}}</span>\n</ng-template>\n<ng-template #prevTemplate let-disabled="disabled">\n <span class="sr-only" [attr.data-isdisabled]="disabled">Go to Previous page {{disabled ? \', Disabled\' : \'\'}}</span>\n</ng-template>\n<ng-template #nextTemplate let-disabled="disabled">\n <span class="sr-only" [attr.data-isdisabled]="disabled">Go to Next page {{disabled ? \', Disabled\' : \'\'}}</span>\n</ng-template>\n',providers:[r.provideAsWidgetRef(h)]}]}],h.ctorParameters=function(){return[{type:t.Injector},{type:void 0,decorators:[{type:t.SkipSelf},{type:t.Inject,args:[r.WidgetRef]}]}]},h.propDecorators={resultEmitter:[{type:t.Output}],maxResultsEmitter:[{type:t.Output}]};var m=[h],f=function(){};f.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,i.FormsModule,o.PaginationModule,r.WmComponentsModule],declarations:c([],l(m)),exports:c([],l(m)),entryComponents:[]}]}],e.PaginationComponent=h,e.PaginationModule=f,e["\u0275a"]=p,Object.defineProperty(e,"__esModule",{value:!0})})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("ngx-bootstrap/dropdown"),require("@wm/components/base"),require("@wm/components/basic"),require("@wm/components/navigation/menu"),require("@wm/core")):"function"==typeof define&&define.amd?define("@wm/components/data/card",["exports","@angular/core","@angular/common","ngx-bootstrap/dropdown","@wm/components/base","@wm/components/basic","@wm/components/navigation/menu","@wm/core"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).wm=e.wm||{},e.wm.components=e.wm.components||{},e.wm.components.data=e.wm.components.data||{},e.wm.components.data.card={}),e.ng.core,e.ng.common,e["ngx-bootstrap"].dropdown,e.wm.components.base,e.wm.components.basic,e.wm.components.navigation.menu,e.wm.core)}(this,(function(e,t,n,i,o,r,a,s){"use strict";
479
479
  /*! *****************************************************************************
480
480
  Copyright (c) Microsoft Corporation.
481
481