raise-common-lib 0.0.261 → 0.0.262

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.
@@ -1357,7 +1357,9 @@
1357
1357
  * @param {?} rows
1358
1358
  * @return {?}
1359
1359
  */
1360
- function (rows) { return _this.onDateTreeRowsApplied(rows); }));
1360
+ function (rows) {
1361
+ return _this.onDateTreeRowsApplied(rows);
1362
+ }));
1361
1363
  }
1362
1364
  /**
1363
1365
  * @return {?}
@@ -1429,9 +1431,7 @@
1429
1431
  ? changes.dataSource.currentValue
1430
1432
  : null;
1431
1433
  if (bindRows) {
1432
- if (this.allowPaging &&
1433
- bindRows.length &&
1434
- !this.pageSettings) {
1434
+ if (this.allowPaging && bindRows.length && !this.pageSettings) {
1435
1435
  this.pageSettings =
1436
1436
  bindRows.length > 9
1437
1437
  ? {
@@ -1447,10 +1447,12 @@
1447
1447
  !this.dateTreeApplyingFilter) {
1448
1448
  this.captureDateTreeRawFromDataSource(changes.dataSource.currentValue);
1449
1449
  }
1450
- if (changes.enableDateTreeFilter && changes.enableDateTreeFilter.currentValue) {
1450
+ if (changes.enableDateTreeFilter &&
1451
+ changes.enableDateTreeFilter.currentValue) {
1451
1452
  this.captureDateTreeRawFromDataSource(this.dataSource);
1452
1453
  }
1453
- if (changes.enableDateTreeFilter && !changes.enableDateTreeFilter.currentValue) {
1454
+ if (changes.enableDateTreeFilter &&
1455
+ !changes.enableDateTreeFilter.currentValue) {
1454
1456
  this.dateTreeHelper && this.dateTreeHelper.close();
1455
1457
  this.dateTreeDisplayRows = [];
1456
1458
  this.dateTreeRawRows = [];
@@ -2184,10 +2186,28 @@
2184
2186
  this.ref && this.ref.markForCheck();
2185
2187
  this.ref && this.ref.detectChanges();
2186
2188
  };
2189
+ /**
2190
+ * @param {?} args
2191
+ * @return {?}
2192
+ */
2193
+ CommonGridComponent.prototype.beforeDataBound = /**
2194
+ * @param {?} args
2195
+ * @return {?}
2196
+ */
2197
+ function (args) {
2198
+ if (args.actionArgs &&
2199
+ (args.actionArgs.action === "clearFilter" ||
2200
+ args.actionArgs.requestType === "searching")) {
2201
+ if (((/** @type {?} */ (this.grid))).pagerModule.pagerObj.isAllPage &&
2202
+ args.count !== ((/** @type {?} */ (this.grid))).pageSettings.pageSize) {
2203
+ ((/** @type {?} */ (this.grid))).pagerModule.pagerObj.isAllPage = false;
2204
+ }
2205
+ }
2206
+ };
2187
2207
  CommonGridComponent.decorators = [
2188
2208
  { type: core.Component, args: [{
2189
2209
  selector: "rs-common-grid",
2190
- template: "<rs-date-tree-filter-popover\r\n *ngIf=\"enableDateTreeFilter && dateTreeHelper && dateTreeHelper.popoverVisible\"\r\n #dateTreePopoverRef\r\n [ngStyle]=\"dateTreeHelper.popoverStyle\"\r\n [field]=\"dateTreeHelper.popoverField\"\r\n [translation]=\"translation\"\r\n [sourceRows]=\"dateTreePopoverSourceRows\"\r\n [dateFields]=\"dateTreeHelper.dateFields\"\r\n [selectedByField]=\"dateTreeHelper.selectedByField\"\r\n [fieldLabelMap]=\"dateTreeHelper.fieldLabelMap\"\r\n (apply)=\"dateTreeHelper.updateSelection($event)\"\r\n (close)=\"dateTreeHelper.close()\"\r\n></rs-date-tree-filter-popover>\r\n<ejs-grid\r\n #grid\r\n [id]=\"gridId\"\r\n [ngClass]=\"{\r\n 'hide-Check-box': !alwaysShowCheckbox,\r\n 'grid-loading': className === 'grid-loading'\r\n }\"\r\n [dataSource]=\"gridBindDataSource\"\r\n [allowPaging]=\"allowPaging && pageSettings\"\r\n [allowResizing]=\"true\"\r\n [pageSettings]=\"pageSettings\"\r\n [showColumnMenu]=\"true\"\r\n [allowSorting]=\"true\"\r\n [allowFiltering]=\"true\"\r\n [allowExcelExport]=\"true\"\r\n [allowRowDragAndDrop]=\"allowRowDragAndDrop\"\r\n [filterSettings]=\"filterSettings\"\r\n [resizeSettings]=\"resizeSettings\"\r\n [allowSelection]=\"true\"\r\n [editSettings]=\"editSettings\"\r\n [childGrid]=\"childGrid\"\r\n [contextMenuItems]=\"gridBindDataSource && gridBindDataSource.length ? contextMenuItems : null\"\r\n [selectionSettings]=\"selectionSettings\"\r\n (recordClick)=\"_recordClick($event)\"\r\n (recordDoubleClick)=\"_recordDoubleClick($event)\"\r\n (actionBegin)=\"_actionBegin($event)\"\r\n (actionComplete)=\"_actionHandler($event)\"\r\n (rowSelected)=\"_rowSelected($event)\"\r\n (rowDeselecting)=\"_rowDeselecting($event)\"\r\n (rowDeselected)=\"_rowDeselected($event)\"\r\n style=\"border: none\"\r\n (contextMenuClick)=\"_onContextMenu($event)\"\r\n (contextMenuOpen)=\"contextMenuOpen($event)\"\r\n (queryCellInfo)=\"customiseCell($event)\"\r\n (dataBound)=\"_dataBound($event)\"\r\n (rowDataBound)=\"_rowDataBound($event)\"\r\n (rowSelecting)=\"_rowSelecting($event)\"\r\n (excelQueryCellInfo)=\"_exportQueryCellInfo($event)\"\r\n (rowDrop)=\"onRowDrop($event)\"\r\n (rowDragStart)=\"_rowDragStart($event)\"\r\n (rowDrag)=\"_rowDrag($event)\"\r\n (load)=\"_load()\"\r\n [frozenColumns]=\"frozenColumns\"\r\n [columnChooserSettings]=\"columnChooserSettings\"\r\n>\r\n <e-columns>\r\n <e-column\r\n *ngIf=\"showCheckBox\"\r\n type=\"checkbox\"\r\n [width]=\"checkBoxWidth\"\r\n [minWidth]=\"checkBoxWidth\"\r\n [showColumnMenu]=\"false\"\r\n [allowResizing]=\"false\"\r\n ></e-column>\r\n <e-column\r\n *ngFor=\"let item of fields; trackBy: trackByFn; let last = last\"\r\n [field]=\"item.columnName\"\r\n [filter]=\"item.filter ? item.filter : { type: 'CheckBox' }\"\r\n [customAttributes]=\"\r\n item.colName === 'entityUserList' || item.colName === 'kycProgress'\r\n ? { class: 'hideColumnFilterClass' }\r\n : {}\r\n \"\r\n [headerText]=\"item.columnDisplayName\"\r\n [textAlign]=\"item.textAlign\"\r\n [showColumnMenu]=\"item.showColumnMenu === undefined ? true : false\"\r\n [allowFiltering]=\"item.allowFiltering === undefined ? true : false\"\r\n [allowSorting]=\"item.allowSorting === undefined ? true : false\"\r\n [showInColumnChooser]=\"\r\n item.showInColumnChooser === undefined ? true : item.showInColumnChooser\r\n \"\r\n [editType]=\"item.editType\"\r\n [validationRules]=\"item.validationRules\"\r\n [type]=\"item.dataType || 'string'\"\r\n [width]=\"item.width\"\r\n [minWidth]=\"item.minWidth\"\r\n [format]=\"item.format\"\r\n [visible]=\"item.visible\"\r\n [template]=\"item.showTemplate ? columnTemplate : undefined\"\r\n [clipMode]=\"\r\n item.clipMode ? item.clipMode : clipMode || 'EllipsisWithTooltip'\r\n \"\r\n [sortComparer]=\"item.dateComparer || null\"\r\n [allowResizing]=\"!last\"\r\n [headerTemplate]=\"item.showHeaderTemplate ? headerTemplate : undefined\"\r\n [isPrimaryKey]=\"item?.isPrimaryKey ? true : false\"\r\n >\r\n </e-column>\r\n </e-columns>\r\n</ejs-grid>\r\n",
2210
+ template: "<rs-date-tree-filter-popover\r\n *ngIf=\"\r\n enableDateTreeFilter && dateTreeHelper && dateTreeHelper.popoverVisible\r\n \"\r\n #dateTreePopoverRef\r\n [ngStyle]=\"dateTreeHelper.popoverStyle\"\r\n [field]=\"dateTreeHelper.popoverField\"\r\n [translation]=\"translation\"\r\n [sourceRows]=\"dateTreePopoverSourceRows\"\r\n [dateFields]=\"dateTreeHelper.dateFields\"\r\n [selectedByField]=\"dateTreeHelper.selectedByField\"\r\n [fieldLabelMap]=\"dateTreeHelper.fieldLabelMap\"\r\n (apply)=\"dateTreeHelper.updateSelection($event)\"\r\n (close)=\"dateTreeHelper.close()\"\r\n></rs-date-tree-filter-popover>\r\n<ejs-grid\r\n #grid\r\n [id]=\"gridId\"\r\n [ngClass]=\"{\r\n 'hide-Check-box': !alwaysShowCheckbox,\r\n 'grid-loading': className === 'grid-loading'\r\n }\"\r\n [dataSource]=\"gridBindDataSource\"\r\n [allowPaging]=\"allowPaging && pageSettings\"\r\n [allowResizing]=\"true\"\r\n [pageSettings]=\"pageSettings\"\r\n [showColumnMenu]=\"true\"\r\n [allowSorting]=\"true\"\r\n [allowFiltering]=\"true\"\r\n [allowExcelExport]=\"true\"\r\n [allowRowDragAndDrop]=\"allowRowDragAndDrop\"\r\n [filterSettings]=\"filterSettings\"\r\n [resizeSettings]=\"resizeSettings\"\r\n [allowSelection]=\"true\"\r\n [editSettings]=\"editSettings\"\r\n [childGrid]=\"childGrid\"\r\n [contextMenuItems]=\"\r\n gridBindDataSource && gridBindDataSource.length ? contextMenuItems : null\r\n \"\r\n [selectionSettings]=\"selectionSettings\"\r\n (recordClick)=\"_recordClick($event)\"\r\n (recordDoubleClick)=\"_recordDoubleClick($event)\"\r\n (actionBegin)=\"_actionBegin($event)\"\r\n (actionComplete)=\"_actionHandler($event)\"\r\n (rowSelected)=\"_rowSelected($event)\"\r\n (rowDeselecting)=\"_rowDeselecting($event)\"\r\n (rowDeselected)=\"_rowDeselected($event)\"\r\n style=\"border: none\"\r\n (contextMenuClick)=\"_onContextMenu($event)\"\r\n (contextMenuOpen)=\"contextMenuOpen($event)\"\r\n (queryCellInfo)=\"customiseCell($event)\"\r\n (dataBound)=\"_dataBound($event)\"\r\n (rowDataBound)=\"_rowDataBound($event)\"\r\n (rowSelecting)=\"_rowSelecting($event)\"\r\n (excelQueryCellInfo)=\"_exportQueryCellInfo($event)\"\r\n (rowDrop)=\"onRowDrop($event)\"\r\n (rowDragStart)=\"_rowDragStart($event)\"\r\n (rowDrag)=\"_rowDrag($event)\"\r\n (load)=\"_load()\"\r\n [frozenColumns]=\"frozenColumns\"\r\n [columnChooserSettings]=\"columnChooserSettings\"\r\n (beforeDataBound)=\"beforeDataBound($event)\"\r\n>\r\n <e-columns>\r\n <e-column\r\n *ngIf=\"showCheckBox\"\r\n type=\"checkbox\"\r\n [width]=\"checkBoxWidth\"\r\n [minWidth]=\"checkBoxWidth\"\r\n [showColumnMenu]=\"false\"\r\n [allowResizing]=\"false\"\r\n ></e-column>\r\n <e-column\r\n *ngFor=\"let item of fields; trackBy: trackByFn; let last = last\"\r\n [field]=\"item.columnName\"\r\n [filter]=\"item.filter ? item.filter : { type: 'CheckBox' }\"\r\n [customAttributes]=\"\r\n item.colName === 'entityUserList' || item.colName === 'kycProgress'\r\n ? { class: 'hideColumnFilterClass' }\r\n : {}\r\n \"\r\n [headerText]=\"item.columnDisplayName\"\r\n [textAlign]=\"item.textAlign\"\r\n [showColumnMenu]=\"item.showColumnMenu === undefined ? true : false\"\r\n [allowFiltering]=\"item.allowFiltering === undefined ? true : false\"\r\n [allowSorting]=\"item.allowSorting === undefined ? true : false\"\r\n [showInColumnChooser]=\"\r\n item.showInColumnChooser === undefined ? true : item.showInColumnChooser\r\n \"\r\n [editType]=\"item.editType\"\r\n [validationRules]=\"item.validationRules\"\r\n [type]=\"item.dataType || 'string'\"\r\n [width]=\"item.width\"\r\n [minWidth]=\"item.minWidth\"\r\n [format]=\"item.format\"\r\n [visible]=\"item.visible\"\r\n [template]=\"item.showTemplate ? columnTemplate : undefined\"\r\n [clipMode]=\"\r\n item.clipMode ? item.clipMode : clipMode || 'EllipsisWithTooltip'\r\n \"\r\n [sortComparer]=\"item.dateComparer || null\"\r\n [allowResizing]=\"!last\"\r\n [headerTemplate]=\"item.showHeaderTemplate ? headerTemplate : undefined\"\r\n [isPrimaryKey]=\"item?.isPrimaryKey ? true : false\"\r\n >\r\n </e-column>\r\n </e-columns>\r\n</ejs-grid>\r\n",
2191
2211
  styles: [""]
2192
2212
  }] }
2193
2213
  ];
@@ -25857,7 +25877,7 @@
25857
25877
  */
25858
25878
  function (index) {
25859
25879
  /** @type {?} */
25860
- var sectionItems = this.sectionEls.toArray();
25880
+ var sectionItems = this.sectionEls && this.sectionEls.toArray();
25861
25881
  sectionItems[index].nativeElement.scrollIntoView(true);
25862
25882
  this.scrollIndex = index;
25863
25883
  this.isClickAnchor = true;
@@ -25892,15 +25912,16 @@
25892
25912
  /** @type {?} */
25893
25913
  var scrollHeight = scrollViewEl.scrollHeight - scrollViewEl.offsetHeight;
25894
25914
  /** @type {?} */
25895
- var sectionViewRatio = this.sectionEls.toArray().map((/**
25896
- * @param {?} section
25897
- * @return {?}
25898
- */
25899
- function (section) {
25900
- /** @type {?} */
25901
- var ratio = section.nativeElement.offsetHeight / scrollViewEl.scrollHeight;
25902
- return scrollHeight * ratio;
25903
- }));
25915
+ var sectionViewRatio = this.sectionEls &&
25916
+ this.sectionEls.toArray().map((/**
25917
+ * @param {?} section
25918
+ * @return {?}
25919
+ */
25920
+ function (section) {
25921
+ /** @type {?} */
25922
+ var ratio = section.nativeElement.offsetHeight / scrollViewEl.scrollHeight;
25923
+ return scrollHeight * ratio;
25924
+ }));
25904
25925
  /** @type {?} */
25905
25926
  var onScroll = (/**
25906
25927
  * @return {?}