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.
@@ -991,7 +991,9 @@ var CommonGridComponent = /** @class */ (function () {
991
991
  * @param {?} rows
992
992
  * @return {?}
993
993
  */
994
- function (rows) { return _this.onDateTreeRowsApplied(rows); }));
994
+ function (rows) {
995
+ return _this.onDateTreeRowsApplied(rows);
996
+ }));
995
997
  }
996
998
  /**
997
999
  * @return {?}
@@ -1063,9 +1065,7 @@ var CommonGridComponent = /** @class */ (function () {
1063
1065
  ? changes.dataSource.currentValue
1064
1066
  : null;
1065
1067
  if (bindRows) {
1066
- if (this.allowPaging &&
1067
- bindRows.length &&
1068
- !this.pageSettings) {
1068
+ if (this.allowPaging && bindRows.length && !this.pageSettings) {
1069
1069
  this.pageSettings =
1070
1070
  bindRows.length > 9
1071
1071
  ? {
@@ -1081,10 +1081,12 @@ var CommonGridComponent = /** @class */ (function () {
1081
1081
  !this.dateTreeApplyingFilter) {
1082
1082
  this.captureDateTreeRawFromDataSource(changes.dataSource.currentValue);
1083
1083
  }
1084
- if (changes.enableDateTreeFilter && changes.enableDateTreeFilter.currentValue) {
1084
+ if (changes.enableDateTreeFilter &&
1085
+ changes.enableDateTreeFilter.currentValue) {
1085
1086
  this.captureDateTreeRawFromDataSource(this.dataSource);
1086
1087
  }
1087
- if (changes.enableDateTreeFilter && !changes.enableDateTreeFilter.currentValue) {
1088
+ if (changes.enableDateTreeFilter &&
1089
+ !changes.enableDateTreeFilter.currentValue) {
1088
1090
  this.dateTreeHelper && this.dateTreeHelper.close();
1089
1091
  this.dateTreeDisplayRows = [];
1090
1092
  this.dateTreeRawRows = [];
@@ -1818,10 +1820,28 @@ var CommonGridComponent = /** @class */ (function () {
1818
1820
  this.ref && this.ref.markForCheck();
1819
1821
  this.ref && this.ref.detectChanges();
1820
1822
  };
1823
+ /**
1824
+ * @param {?} args
1825
+ * @return {?}
1826
+ */
1827
+ CommonGridComponent.prototype.beforeDataBound = /**
1828
+ * @param {?} args
1829
+ * @return {?}
1830
+ */
1831
+ function (args) {
1832
+ if (args.actionArgs &&
1833
+ (args.actionArgs.action === "clearFilter" ||
1834
+ args.actionArgs.requestType === "searching")) {
1835
+ if (((/** @type {?} */ (this.grid))).pagerModule.pagerObj.isAllPage &&
1836
+ args.count !== ((/** @type {?} */ (this.grid))).pageSettings.pageSize) {
1837
+ ((/** @type {?} */ (this.grid))).pagerModule.pagerObj.isAllPage = false;
1838
+ }
1839
+ }
1840
+ };
1821
1841
  CommonGridComponent.decorators = [
1822
1842
  { type: Component, args: [{
1823
1843
  selector: "rs-common-grid",
1824
- 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",
1844
+ 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",
1825
1845
  styles: [""]
1826
1846
  }] }
1827
1847
  ];
@@ -25491,7 +25511,7 @@ var DrawerFormComponent = /** @class */ (function () {
25491
25511
  */
25492
25512
  function (index) {
25493
25513
  /** @type {?} */
25494
- var sectionItems = this.sectionEls.toArray();
25514
+ var sectionItems = this.sectionEls && this.sectionEls.toArray();
25495
25515
  sectionItems[index].nativeElement.scrollIntoView(true);
25496
25516
  this.scrollIndex = index;
25497
25517
  this.isClickAnchor = true;
@@ -25526,15 +25546,16 @@ var DrawerFormComponent = /** @class */ (function () {
25526
25546
  /** @type {?} */
25527
25547
  var scrollHeight = scrollViewEl.scrollHeight - scrollViewEl.offsetHeight;
25528
25548
  /** @type {?} */
25529
- var sectionViewRatio = this.sectionEls.toArray().map((/**
25530
- * @param {?} section
25531
- * @return {?}
25532
- */
25533
- function (section) {
25534
- /** @type {?} */
25535
- var ratio = section.nativeElement.offsetHeight / scrollViewEl.scrollHeight;
25536
- return scrollHeight * ratio;
25537
- }));
25549
+ var sectionViewRatio = this.sectionEls &&
25550
+ this.sectionEls.toArray().map((/**
25551
+ * @param {?} section
25552
+ * @return {?}
25553
+ */
25554
+ function (section) {
25555
+ /** @type {?} */
25556
+ var ratio = section.nativeElement.offsetHeight / scrollViewEl.scrollHeight;
25557
+ return scrollHeight * ratio;
25558
+ }));
25538
25559
  /** @type {?} */
25539
25560
  var onScroll = (/**
25540
25561
  * @return {?}