tnx-shared 5.3.215 → 5.3.217

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.
@@ -13541,6 +13541,9 @@
13541
13541
  RequiredValidator.prototype.validate = function (event) {
13542
13542
  var _a;
13543
13543
  this._label = (_a = event.control.errorLabel) !== null && _a !== void 0 ? _a : event.control.label;
13544
+ if (event.control.isHtmlLabel) {
13545
+ this._label = event.control.fullLabel;
13546
+ }
13544
13547
  return isNotEmpty(event.value, event.control);
13545
13548
  };
13546
13549
  RequiredValidator.prototype.getError = function () {
@@ -19301,10 +19304,10 @@
19301
19304
  this.environment = this._moduleConfig.environment;
19302
19305
  this.serviceUri = this._moduleConfig.environment.apiDomain.templateEndpoint + "/Export";
19303
19306
  }
19304
- ExportService.prototype.objectToExcel = function (data, fileName) {
19307
+ ExportService.prototype.objectToExcel = function (data, fileName, numOfHeaderRow) {
19305
19308
  var _this = this;
19306
19309
  return this._http
19307
- .post(this.serviceUri + "/ObjectToExcel", data, { responseType: 'blob' })
19310
+ .post(this.serviceUri + "/ObjectToExcel?numOfHeaderRow=" + numOfHeaderRow, data, { responseType: 'blob' })
19308
19311
  .pipe(operators.catchError(function (err) { return _this._commonService.handleError(err, _this._injector); }))
19309
19312
  .subscribe(function (res) {
19310
19313
  _this.saveAsExcelFile(res, fileName);
@@ -22927,7 +22930,7 @@
22927
22930
  ListComponentBase.prototype.printByReadingHtml = function (isTree) {
22928
22931
  if (isTree === void 0) { isTree = false; }
22929
22932
  return __awaiter(this, void 0, void 0, function () {
22930
- var rs, header, element, tableEle, headEle, bodyEle, arrHeadEle, arrRowData, strHeadEle, strBodyEle, css, table;
22933
+ var rs, header, element, tableEle, headEle, bodyEle, arrHeadEle, firstHead, arrRowData, strHeadEle, strBodyEle, css, table;
22931
22934
  return __generator(this, function (_g) {
22932
22935
  switch (_g.label) {
22933
22936
  case 0:
@@ -22945,9 +22948,10 @@
22945
22948
  tableEle = element.querySelector('table');
22946
22949
  headEle = tableEle.querySelector('thead');
22947
22950
  bodyEle = tableEle.querySelector('tbody');
22948
- arrHeadEle = this.getArrHeadByHtml(headEle);
22949
- arrRowData = this.getArrRowDataByHtml(bodyEle, arrHeadEle);
22950
- strHeadEle = this.headHtmlToString(arrHeadEle);
22951
+ arrHeadEle = this.getArrHeadByHtmlForPrint(headEle);
22952
+ firstHead = arrHeadEle.allCol;
22953
+ arrRowData = this.getArrRowDataByHtml(bodyEle, firstHead);
22954
+ strHeadEle = this.headHtmlToStringNew(arrHeadEle.header);
22951
22955
  strBodyEle = this.rowDataHtmlToString(arrRowData);
22952
22956
  css = '<style type="text/css">table th, table td {border:1px solid #000;} table th {text-align: center;} table {width: 100%;border-collapse: collapse;} table td:first-child {text-align: center;}</style>';
22953
22957
  table = css + "<table>" + strHeadEle + strBodyEle + "</table>";
@@ -22964,9 +22968,12 @@
22964
22968
  var tableEle = element.querySelector('table');
22965
22969
  var headEle = tableEle.querySelector('thead');
22966
22970
  var bodyEle = tableEle.querySelector('tbody');
22967
- var arrHeadEle = this.getArrHeadByHtml(headEle);
22968
- var arrRowData = this.getArrRowDataHasRowSpanByHtml(bodyEle, arrHeadEle);
22969
- var strHeadEle = this.headHtmlToString(arrHeadEle);
22971
+ // const arrHeadEle = this.getArrHeadByHtml(headEle);
22972
+ var arrHeadEle = this.getArrHeadByHtmlForPrint(headEle);
22973
+ var firstHead = arrHeadEle.allCol;
22974
+ var arrRowData = this.getArrRowDataHasRowSpanByHtml(bodyEle, firstHead);
22975
+ // const strHeadEle = this.headHtmlToString(arrHeadEle);
22976
+ var strHeadEle = this.headHtmlToStringNew(arrHeadEle);
22970
22977
  var strBodyEle = this.rowDataHtmlHasRowSpanToString(arrRowData);
22971
22978
  var css = '<style type="text/css">table th, table td {border:1px solid #000;} table th {text-align: center;} table {width: 100%;border-collapse: collapse;} table td:first-child {text-align: center;}</style>';
22972
22979
  var table = css + "<table>" + strHeadEle + strBodyEle + "</table>";
@@ -22979,6 +22986,7 @@
22979
22986
  ListComponentBase.prototype.exportByReadingHtml = function (exportAll, isTree) {
22980
22987
  if (exportAll === void 0) { exportAll = false; }
22981
22988
  if (isTree === void 0) { isTree = false; }
22989
+ var _a;
22982
22990
  if (this._groupField) {
22983
22991
  this._notifierService.showWarning('Chưa hỗ trợ xuất có nhóm dữ liệu!');
22984
22992
  return;
@@ -22988,16 +22996,21 @@
22988
22996
  var headEle = tableEle.querySelector('thead');
22989
22997
  var bodyEle = tableEle.querySelector('tbody');
22990
22998
  // header.
22991
- var arrHead = this.getArrHeadByHtml(headEle);
22992
- if (!arrHead) {
22999
+ // const arrHead = this.getArrHeadByHtml(headEle);
23000
+ var arrHead = this.getArrHeadByHtmlNew(headEle);
23001
+ if (!(arrHead === null || arrHead === void 0 ? void 0 : arrHead.length)) {
22993
23002
  return;
22994
23003
  }
22995
23004
  // body.
22996
- var arrRowData = this.getArrRowDataByHtml(bodyEle, arrHead, exportAll);
23005
+ var firstHead = arrHead[0];
23006
+ // const arrRowData = this.getArrRowDataByHtml(bodyEle, arrHead, exportAll);
23007
+ var arrRowData = this.getArrRowDataByHtml(bodyEle, firstHead, exportAll);
22997
23008
  // export.
22998
- var dataExport = __spreadArray([arrHead.map(function (i) { return i.value; })], __read(arrRowData));
23009
+ arrHead = arrHead.map(function (x) { return x.map(function (z) { return z.value; }); });
23010
+ // const dataExport = [arrHead.map(i => i.value), ...arrRowData];
23011
+ var dataExport = __spreadArray(__spreadArray([], __read(arrHead)), __read(arrRowData));
22999
23012
  var fileName = "Danh s\u00E1ch " + this.setting.objectName;
23000
- this._exportService.objectToExcel(dataExport, fileName);
23013
+ this._exportService.objectToExcel(dataExport, fileName, (_a = arrHead === null || arrHead === void 0 ? void 0 : arrHead.length) !== null && _a !== void 0 ? _a : 1);
23001
23014
  };
23002
23015
  ListComponentBase.prototype.headHtmlToString = function (arrHeadEle) {
23003
23016
  var result = '';
@@ -23006,12 +23019,50 @@
23006
23019
  });
23007
23020
  return result;
23008
23021
  };
23022
+ ListComponentBase.prototype.headHtmlToStringNew = function (arrHeadEle) {
23023
+ var e_6, _g, e_7, _h;
23024
+ var result = '';
23025
+ try {
23026
+ for (var arrHeadEle_1 = __values(arrHeadEle), arrHeadEle_1_1 = arrHeadEle_1.next(); !arrHeadEle_1_1.done; arrHeadEle_1_1 = arrHeadEle_1.next()) {
23027
+ var itemHeader = arrHeadEle_1_1.value;
23028
+ result += '<tr>';
23029
+ try {
23030
+ for (var itemHeader_1 = (e_7 = void 0, __values(itemHeader)), itemHeader_1_1 = itemHeader_1.next(); !itemHeader_1_1.done; itemHeader_1_1 = itemHeader_1.next()) {
23031
+ var itemTh = itemHeader_1_1.value;
23032
+ result += "<th colSpan=\"" + itemTh.colSpan + "\" rowSpan=\"" + itemTh.rowSpan + "\">" + itemTh.value + "</th>";
23033
+ }
23034
+ }
23035
+ catch (e_7_1) { e_7 = { error: e_7_1 }; }
23036
+ finally {
23037
+ try {
23038
+ if (itemHeader_1_1 && !itemHeader_1_1.done && (_h = itemHeader_1.return)) _h.call(itemHeader_1);
23039
+ }
23040
+ finally { if (e_7) throw e_7.error; }
23041
+ }
23042
+ result += '</tr>';
23043
+ }
23044
+ }
23045
+ catch (e_6_1) { e_6 = { error: e_6_1 }; }
23046
+ finally {
23047
+ try {
23048
+ if (arrHeadEle_1_1 && !arrHeadEle_1_1.done && (_g = arrHeadEle_1.return)) _g.call(arrHeadEle_1);
23049
+ }
23050
+ finally { if (e_6) throw e_6.error; }
23051
+ }
23052
+ return result;
23053
+ };
23009
23054
  ListComponentBase.prototype.rowDataHtmlToString = function (rowDatas) {
23055
+ var _this = this;
23010
23056
  var arrRowData = [];
23011
- rowDatas.forEach(function (arrRowDataChild) {
23057
+ rowDatas.forEach(function (arrRowDataChild, indexChild) {
23012
23058
  var rowData = '<tr>';
23013
- arrRowDataChild.forEach(function (element) {
23014
- rowData += "<td>" + element + "</td>";
23059
+ arrRowDataChild.forEach(function (element, index) {
23060
+ if (index == 0 && !_this.setting.hiddenOrderColumn) {
23061
+ rowData += "<td>" + (indexChild + 1) + "</td>";
23062
+ }
23063
+ else {
23064
+ rowData += "<td>" + element + "</td>";
23065
+ }
23015
23066
  });
23016
23067
  rowData += '</tr>';
23017
23068
  arrRowData.push(rowData);
@@ -23040,6 +23091,147 @@
23040
23091
  }
23041
23092
  return arrHeader;
23042
23093
  };
23094
+ ListComponentBase.prototype.getArrHeadByHtmlNew = function (header) {
23095
+ var e_8, _g;
23096
+ var _a, _b, _c;
23097
+ var filter = Array.prototype.filter;
23098
+ var allRow = header.querySelectorAll('tr');
23099
+ var lstRow = filter.call(allRow, function (node) {
23100
+ return !node.className.includes('filter-row');
23101
+ });
23102
+ var result = [];
23103
+ var allTh = [];
23104
+ try {
23105
+ for (var lstRow_1 = __values(lstRow), lstRow_1_1 = lstRow_1.next(); !lstRow_1_1.done; lstRow_1_1 = lstRow_1.next()) {
23106
+ var item = lstRow_1_1.value;
23107
+ allTh.push(item.querySelectorAll('th'));
23108
+ }
23109
+ }
23110
+ catch (e_8_1) { e_8 = { error: e_8_1 }; }
23111
+ finally {
23112
+ try {
23113
+ if (lstRow_1_1 && !lstRow_1_1.done && (_g = lstRow_1.return)) _g.call(lstRow_1);
23114
+ }
23115
+ finally { if (e_8) throw e_8.error; }
23116
+ }
23117
+ var maxColSize = allTh.reduce(function (a, b) {
23118
+ var newArr = __spreadArray([], __read(b));
23119
+ var result = newArr.reduce(function (x, y) { return y.colSpan + x; }, 0);
23120
+ return result > a ? result : a;
23121
+ }, 0);
23122
+ var startIndex = this.setting.hiddenCheckbox ? 0 : 1;
23123
+ var endIndex = maxColSize - (this.setting.hiddenFunctionColumn ? 1 : 2);
23124
+ for (var ind = 0; ind < lstRow.length; ind++) {
23125
+ var arrTh = __spreadArray([], __read(allTh[ind]));
23126
+ if (startIndex > endIndex) {
23127
+ return null;
23128
+ }
23129
+ result[ind] = (_a = result[ind]) !== null && _a !== void 0 ? _a : [];
23130
+ var colIndex = 0;
23131
+ var numOfColSpan = arrTh.reduce(function (x, y) { return x + y.colSpan - 1; }, 0);
23132
+ for (var i = startIndex; i <= endIndex - numOfColSpan; i++) {
23133
+ if (arrTh[i]) {
23134
+ if (arrTh[i].rowSpan && arrTh[i].rowSpan > 1) {
23135
+ for (var j = 1; j < arrTh[i].rowSpan; j++) {
23136
+ result[ind + j] = (_b = result[ind + j]) !== null && _b !== void 0 ? _b : [];
23137
+ if (result[ind + j][colIndex] == null || result[ind + j][colIndex] == undefined) {
23138
+ result[ind + j][colIndex] = {
23139
+ index: i,
23140
+ value: ''
23141
+ };
23142
+ }
23143
+ }
23144
+ }
23145
+ if (arrTh[i].colSpan && arrTh[i].colSpan > 1) {
23146
+ for (var j = 0; j < arrTh[i].colSpan; j++) {
23147
+ if (result[ind][colIndex] == null || result[ind][colIndex] == undefined) {
23148
+ result[ind][colIndex] = {
23149
+ index: colIndex + startIndex,
23150
+ value: j == 0 ? arrTh[i].innerText : ''
23151
+ };
23152
+ }
23153
+ for (var k = ind + 1; k < lstRow.length; k++) {
23154
+ var otherRow = __spreadArray([], __read(allTh[k]));
23155
+ result[ind + k] = (_c = result[ind + k]) !== null && _c !== void 0 ? _c : [];
23156
+ if (!result[ind + k][colIndex]) {
23157
+ result[ind + k][colIndex] = {
23158
+ index: colIndex + startIndex,
23159
+ value: otherRow[j].innerText
23160
+ };
23161
+ }
23162
+ }
23163
+ colIndex++;
23164
+ }
23165
+ }
23166
+ else {
23167
+ if (result[ind][colIndex] == null || result[ind][colIndex] == undefined) {
23168
+ result[ind][colIndex] = {
23169
+ index: colIndex + startIndex,
23170
+ value: arrTh[i].innerText
23171
+ };
23172
+ }
23173
+ colIndex++;
23174
+ }
23175
+ }
23176
+ else {
23177
+ if (result[ind][colIndex] == null || result[ind][colIndex] == undefined) {
23178
+ result[ind][colIndex] = {
23179
+ index: colIndex + startIndex,
23180
+ value: ''
23181
+ };
23182
+ }
23183
+ colIndex++;
23184
+ }
23185
+ }
23186
+ }
23187
+ return result;
23188
+ };
23189
+ ListComponentBase.prototype.getArrHeadByHtmlForPrint = function (header) {
23190
+ var filter = Array.prototype.filter;
23191
+ var allRow = header.querySelectorAll('tr');
23192
+ var lstRow = __spreadArray([], __read(filter.call(allRow, function (node) {
23193
+ return !node.className.includes('filter-row');
23194
+ })));
23195
+ var result = {
23196
+ allCol: [],
23197
+ header: []
23198
+ };
23199
+ for (var ind = 0; ind < lstRow.length; ind++) {
23200
+ var lstCell = __spreadArray([], __read(lstRow[ind].querySelectorAll('th')));
23201
+ var startIndex = this.setting.hiddenCheckbox || ind != 0 ? 0 : 1;
23202
+ var colIndex = startIndex;
23203
+ var itemHeader = [];
23204
+ var endIndex = lstCell.length - (this.setting.hiddenFunctionColumn || ind != 0 ? 1 : 2);
23205
+ for (var i = startIndex; i <= endIndex; i++) {
23206
+ if (ind == 0) {
23207
+ if (lstCell[i].colSpan && lstCell[i].colSpan > 1) {
23208
+ for (var j = 0; j < lstCell[i].colSpan; j++) {
23209
+ result.allCol.push({
23210
+ index: colIndex,
23211
+ value: ''
23212
+ });
23213
+ colIndex++;
23214
+ }
23215
+ }
23216
+ else {
23217
+ result.allCol.push({
23218
+ index: colIndex,
23219
+ value: ''
23220
+ });
23221
+ colIndex++;
23222
+ }
23223
+ }
23224
+ itemHeader.push({
23225
+ index: i,
23226
+ value: lstCell[i].innerText,
23227
+ colSpan: lstCell[i].colSpan,
23228
+ rowSpan: lstCell[i].rowSpan
23229
+ });
23230
+ }
23231
+ result.header.push(itemHeader);
23232
+ }
23233
+ return result;
23234
+ };
23043
23235
  ListComponentBase.prototype.getArrRowDataHasRowSpanByHtml = function (bodyEle, arrHead, exportAll) {
23044
23236
  if (exportAll === void 0) { exportAll = false; }
23045
23237
  var arrRow = exportAll ? bodyEle.querySelectorAll('tr') : bodyEle.querySelectorAll('tr.ui-state-highlight');
@@ -23074,25 +23266,28 @@
23074
23266
  return [];
23075
23267
  }
23076
23268
  var arrRowData = [];
23077
- var _loop_2 = function (i) {
23078
- var row = arrRow[i];
23269
+ // for (const element of arrRow) {
23270
+ arrRow.forEach(function (rowElement, indexRow) {
23271
+ var row = rowElement;
23079
23272
  var arrTd = row.querySelectorAll('td');
23080
23273
  var currentTd;
23081
23274
  var rowData = [];
23082
- arrHead.forEach(function (head) {
23275
+ arrHead.forEach(function (head, index) {
23083
23276
  currentTd = arrTd[head.index];
23084
23277
  if (currentTd.innerText === '') {
23085
23278
  rowData.push(_this.getValueCheckboxFormat(currentTd));
23086
23279
  }
23087
23280
  else {
23088
- rowData.push(currentTd.innerText);
23281
+ if (index == 0 && !_this.setting.hiddenOrderColumn) {
23282
+ rowData.push(indexRow + 1);
23283
+ }
23284
+ else {
23285
+ rowData.push(currentTd.innerText);
23286
+ }
23089
23287
  }
23090
23288
  });
23091
23289
  arrRowData.push(rowData);
23092
- };
23093
- for (var i = 0; i < arrRow.length; i++) {
23094
- _loop_2(i);
23095
- }
23290
+ });
23096
23291
  return arrRowData;
23097
23292
  };
23098
23293
  ListComponentBase.prototype.getValueCheckboxFormat = function (data) {
@@ -23161,15 +23356,15 @@
23161
23356
  };
23162
23357
  ListComponentBase.prototype.getMenuButtonAuthorized = function (menuButtons) {
23163
23358
  return __awaiter(this, void 0, void 0, function () {
23164
- var authorizedButtons, serviceCodeByBase, promises, _loop_3, this_2, menuButtons_1, menuButtons_1_1, item;
23165
- var e_6, _g;
23359
+ var authorizedButtons, serviceCodeByBase, promises, _loop_2, this_2, menuButtons_1, menuButtons_1_1, item;
23360
+ var e_9, _g;
23166
23361
  return __generator(this, function (_h) {
23167
23362
  switch (_h.label) {
23168
23363
  case 0:
23169
23364
  authorizedButtons = [];
23170
23365
  serviceCodeByBase = this.setting.baseService != null ? this.setting.baseService.serviceCode.toUpperCase() : '';
23171
23366
  promises = [];
23172
- _loop_3 = function (item) {
23367
+ _loop_2 = function (item) {
23173
23368
  var permission = this_2.lstBtnAuthorizeMenu.find(function (p) { return p.rawText == item.label; });
23174
23369
  if (!item.authorizationPermission && !permission) {
23175
23370
  authorizedButtons.push(item);
@@ -23188,15 +23383,15 @@
23188
23383
  try {
23189
23384
  for (menuButtons_1 = __values(menuButtons), menuButtons_1_1 = menuButtons_1.next(); !menuButtons_1_1.done; menuButtons_1_1 = menuButtons_1.next()) {
23190
23385
  item = menuButtons_1_1.value;
23191
- _loop_3(item);
23386
+ _loop_2(item);
23192
23387
  }
23193
23388
  }
23194
- catch (e_6_1) { e_6 = { error: e_6_1 }; }
23389
+ catch (e_9_1) { e_9 = { error: e_9_1 }; }
23195
23390
  finally {
23196
23391
  try {
23197
23392
  if (menuButtons_1_1 && !menuButtons_1_1.done && (_g = menuButtons_1.return)) _g.call(menuButtons_1);
23198
23393
  }
23199
- finally { if (e_6) throw e_6.error; }
23394
+ finally { if (e_9) throw e_9.error; }
23200
23395
  }
23201
23396
  return [4 /*yield*/, Promise.all(promises)];
23202
23397
  case 1:
@@ -23817,7 +24012,7 @@
23817
24012
  clearTimeout(this.timeout);
23818
24013
  };
23819
24014
  ListComponentBase.prototype.disableMultipleDelete = function () {
23820
- var e_7, _g;
24015
+ var e_10, _g;
23821
24016
  try {
23822
24017
  for (var _h = __values(this.model.selectedItems), _j = _h.next(); !_j.done; _j = _h.next()) {
23823
24018
  var item = _j.value;
@@ -23826,12 +24021,12 @@
23826
24021
  }
23827
24022
  }
23828
24023
  }
23829
- catch (e_7_1) { e_7 = { error: e_7_1 }; }
24024
+ catch (e_10_1) { e_10 = { error: e_10_1 }; }
23830
24025
  finally {
23831
24026
  try {
23832
24027
  if (_j && !_j.done && (_g = _h.return)) _g.call(_h);
23833
24028
  }
23834
- finally { if (e_7) throw e_7.error; }
24029
+ finally { if (e_10) throw e_10.error; }
23835
24030
  }
23836
24031
  return false;
23837
24032
  };
@@ -23912,44 +24107,44 @@
23912
24107
  };
23913
24108
  ListComponentBase.prototype.preProcessData = function (dataSource) {
23914
24109
  return __awaiter(this, void 0, void 0, function () {
23915
- var colHasPipe, _loop_4, this_3, colHasPipe_1, colHasPipe_1_1, col;
23916
- var e_8, _g;
24110
+ var colHasPipe, _loop_3, this_3, colHasPipe_1, colHasPipe_1_1, col;
24111
+ var e_11, _g;
23917
24112
  return __generator(this, function (_h) {
23918
24113
  colHasPipe = this.setting.cols.filter(function (x) { return x.pipe; });
23919
- _loop_4 = function (col) {
23920
- var e_9, _j;
23921
- var _loop_5 = function (item) {
24114
+ _loop_3 = function (col) {
24115
+ var e_12, _j;
24116
+ var _loop_4 = function (item) {
23922
24117
  this_3.transform(col.pipe, col.asyncPipe, item[col.field]).then(function (rs) {
23923
24118
  item["pipe__" + col.field + " "] = rs;
23924
24119
  });
23925
24120
  };
23926
24121
  try {
23927
- for (var dataSource_1 = (e_9 = void 0, __values(dataSource)), dataSource_1_1 = dataSource_1.next(); !dataSource_1_1.done; dataSource_1_1 = dataSource_1.next()) {
24122
+ for (var dataSource_1 = (e_12 = void 0, __values(dataSource)), dataSource_1_1 = dataSource_1.next(); !dataSource_1_1.done; dataSource_1_1 = dataSource_1.next()) {
23928
24123
  var item = dataSource_1_1.value;
23929
- _loop_5(item);
24124
+ _loop_4(item);
23930
24125
  }
23931
24126
  }
23932
- catch (e_9_1) { e_9 = { error: e_9_1 }; }
24127
+ catch (e_12_1) { e_12 = { error: e_12_1 }; }
23933
24128
  finally {
23934
24129
  try {
23935
24130
  if (dataSource_1_1 && !dataSource_1_1.done && (_j = dataSource_1.return)) _j.call(dataSource_1);
23936
24131
  }
23937
- finally { if (e_9) throw e_9.error; }
24132
+ finally { if (e_12) throw e_12.error; }
23938
24133
  }
23939
24134
  };
23940
24135
  this_3 = this;
23941
24136
  try {
23942
24137
  for (colHasPipe_1 = __values(colHasPipe), colHasPipe_1_1 = colHasPipe_1.next(); !colHasPipe_1_1.done; colHasPipe_1_1 = colHasPipe_1.next()) {
23943
24138
  col = colHasPipe_1_1.value;
23944
- _loop_4(col);
24139
+ _loop_3(col);
23945
24140
  }
23946
24141
  }
23947
- catch (e_8_1) { e_8 = { error: e_8_1 }; }
24142
+ catch (e_11_1) { e_11 = { error: e_11_1 }; }
23948
24143
  finally {
23949
24144
  try {
23950
24145
  if (colHasPipe_1_1 && !colHasPipe_1_1.done && (_g = colHasPipe_1.return)) _g.call(colHasPipe_1);
23951
24146
  }
23952
- finally { if (e_8) throw e_8.error; }
24147
+ finally { if (e_11) throw e_11.error; }
23953
24148
  }
23954
24149
  return [2 /*return*/];
23955
24150
  });
@@ -24123,7 +24318,7 @@
24123
24318
  }
24124
24319
  };
24125
24320
  ListComponentBase.prototype.getMinimizeData = function (model) {
24126
- var e_10, _g;
24321
+ var e_13, _g;
24127
24322
  if (isLiteralObject(model)) {
24128
24323
  if (model._dropdownvalue != null && model._dropdownvalue !== '') {
24129
24324
  return model[model._dropdownvalue];
@@ -24146,12 +24341,12 @@
24146
24341
  arr.push(this.getMinimizeData(item));
24147
24342
  }
24148
24343
  }
24149
- catch (e_10_1) { e_10 = { error: e_10_1 }; }
24344
+ catch (e_13_1) { e_13 = { error: e_13_1 }; }
24150
24345
  finally {
24151
24346
  try {
24152
24347
  if (model_1_1 && !model_1_1.done && (_g = model_1.return)) _g.call(model_1);
24153
24348
  }
24154
- finally { if (e_10) throw e_10.error; }
24349
+ finally { if (e_13) throw e_13.error; }
24155
24350
  }
24156
24351
  return arr;
24157
24352
  }
@@ -24328,8 +24523,8 @@
24328
24523
  ListComponentBase.prototype.modifyButtonFunctionInRow = function () {
24329
24524
  var _a;
24330
24525
  return __awaiter(this, void 0, void 0, function () {
24331
- var _g, _h, rowData, total, _j, ex_1, e_11_1;
24332
- var e_11, _k;
24526
+ var _g, _h, rowData, total, _j, ex_1, e_14_1;
24527
+ var e_14, _k;
24333
24528
  return __generator(this, function (_l) {
24334
24529
  switch (_l.label) {
24335
24530
  case 0:
@@ -24358,14 +24553,14 @@
24358
24553
  return [3 /*break*/, 1];
24359
24554
  case 7: return [3 /*break*/, 10];
24360
24555
  case 8:
24361
- e_11_1 = _l.sent();
24362
- e_11 = { error: e_11_1 };
24556
+ e_14_1 = _l.sent();
24557
+ e_14 = { error: e_14_1 };
24363
24558
  return [3 /*break*/, 10];
24364
24559
  case 9:
24365
24560
  try {
24366
24561
  if (_h && !_h.done && (_k = _g.return)) _k.call(_g);
24367
24562
  }
24368
- finally { if (e_11) throw e_11.error; }
24563
+ finally { if (e_14) throw e_14.error; }
24369
24564
  return [7 /*endfinally*/];
24370
24565
  case 10:
24371
24566
  this.hiddenBtnFunction = this.model.dataSource.every(function (p) { return p.disableFunctionRow; });
@@ -24393,8 +24588,8 @@
24393
24588
  };
24394
24589
  ListComponentBase.prototype.createSearchSchema = function () {
24395
24590
  return __awaiter(this, void 0, void 0, function () {
24396
- var searchInfo, _g, _h, col, control, e_12_1, _loop_6, this_4, _j, _k, field;
24397
- var e_12, _l, _m, e_13, _o;
24591
+ var searchInfo, _g, _h, col, control, e_15_1, _loop_5, this_4, _j, _k, field;
24592
+ var e_15, _l, _m, e_16, _o;
24398
24593
  return __generator(this, function (_p) {
24399
24594
  switch (_p.label) {
24400
24595
  case 0:
@@ -24488,18 +24683,18 @@
24488
24683
  return [3 /*break*/, 2];
24489
24684
  case 5: return [3 /*break*/, 8];
24490
24685
  case 6:
24491
- e_12_1 = _p.sent();
24492
- e_12 = { error: e_12_1 };
24686
+ e_15_1 = _p.sent();
24687
+ e_15 = { error: e_15_1 };
24493
24688
  return [3 /*break*/, 8];
24494
24689
  case 7:
24495
24690
  try {
24496
24691
  if (_h && !_h.done && (_l = _g.return)) _l.call(_g);
24497
24692
  }
24498
- finally { if (e_12) throw e_12.error; }
24693
+ finally { if (e_15) throw e_15.error; }
24499
24694
  return [7 /*endfinally*/];
24500
24695
  case 8:
24501
24696
  if (searchInfo.fieldSearchText) {
24502
- _loop_6 = function (field) {
24697
+ _loop_5 = function (field) {
24503
24698
  if (searchInfo.fieldSearchText.indexOf(field) == -1) {
24504
24699
  searchInfo.fieldSearchText.push(field);
24505
24700
  if (!searchInfo.tooltipSearchText) {
@@ -24515,15 +24710,15 @@
24515
24710
  try {
24516
24711
  for (_j = __values(searchInfo.fieldSearchText), _k = _j.next(); !_k.done; _k = _j.next()) {
24517
24712
  field = _k.value;
24518
- _loop_6(field);
24713
+ _loop_5(field);
24519
24714
  }
24520
24715
  }
24521
- catch (e_13_1) { e_13 = { error: e_13_1 }; }
24716
+ catch (e_16_1) { e_16 = { error: e_16_1 }; }
24522
24717
  finally {
24523
24718
  try {
24524
24719
  if (_k && !_k.done && (_o = _j.return)) _o.call(_j);
24525
24720
  }
24526
- finally { if (e_13) throw e_13.error; }
24721
+ finally { if (e_16) throw e_16.error; }
24527
24722
  }
24528
24723
  }
24529
24724
  if (searchInfo.tooltipSearchText) {
@@ -25163,7 +25358,7 @@
25163
25358
  });
25164
25359
  };
25165
25360
  ListComponentBase.prototype.disableMultipleCopyLink = function () {
25166
- var e_14, _g;
25361
+ var e_17, _g;
25167
25362
  try {
25168
25363
  for (var _h = __values(this.model.selectedItems), _j = _h.next(); !_j.done; _j = _h.next()) {
25169
25364
  var item = _j.value;
@@ -25172,12 +25367,12 @@
25172
25367
  }
25173
25368
  }
25174
25369
  }
25175
- catch (e_14_1) { e_14 = { error: e_14_1 }; }
25370
+ catch (e_17_1) { e_17 = { error: e_17_1 }; }
25176
25371
  finally {
25177
25372
  try {
25178
25373
  if (_j && !_j.done && (_g = _h.return)) _g.call(_h);
25179
25374
  }
25180
- finally { if (e_14) throw e_14.error; }
25375
+ finally { if (e_17) throw e_17.error; }
25181
25376
  }
25182
25377
  return false;
25183
25378
  };
@@ -25355,8 +25550,8 @@
25355
25550
  ListComponentBase.prototype.handleShowFormSettingButton = function () {
25356
25551
  var _a, _b, _c, _d, _e, _f;
25357
25552
  return __awaiter(this, void 0, void 0, function () {
25358
- var lstBtnCustom, lstBtnAction, _loop_7, this_5, lstBtnCustom_1, lstBtnCustom_1_1, item, lstMenuButtons, buttonSetting;
25359
- var e_15, _g;
25553
+ var lstBtnCustom, lstBtnAction, _loop_6, this_5, lstBtnCustom_1, lstBtnCustom_1_1, item, lstMenuButtons, buttonSetting;
25554
+ var e_18, _g;
25360
25555
  var _this = this;
25361
25556
  return __generator(this, function (_h) {
25362
25557
  switch (_h.label) {
@@ -25366,7 +25561,7 @@
25366
25561
  this.buttonAuthorizeModel.data.dataSource = [];
25367
25562
  lstBtnCustom = this.lstButtonElement[exports.EnumProperties.RESULTS].concat(this.lstButtonTemplate);
25368
25563
  lstBtnAction = [];
25369
- _loop_7 = function (item) {
25564
+ _loop_6 = function (item) {
25370
25565
  var buttonText = (_d = (_c = (_b = (_a = item.nativeElement.getAttribute(exports.EnumProperties.LABEL)) !== null && _a !== void 0 ? _a : item.nativeElement.getAttribute(exports.EnumProperties.TOOLTIP)) !== null && _b !== void 0 ? _b : item.nativeElement.getAttribute(exports.EnumProperties.NG_REFLECT_TEXT)) !== null && _c !== void 0 ? _c : item.nativeElement.getAttribute(exports.EnumProperties.NG_REFLECT_LABEL)) !== null && _d !== void 0 ? _d : item.nativeElement.innerText;
25371
25566
  if (!buttonText || lstBtnAction.some(function (p) { return p.rawText === buttonText; })) {
25372
25567
  return "continue";
@@ -25377,15 +25572,15 @@
25377
25572
  try {
25378
25573
  for (lstBtnCustom_1 = __values(lstBtnCustom), lstBtnCustom_1_1 = lstBtnCustom_1.next(); !lstBtnCustom_1_1.done; lstBtnCustom_1_1 = lstBtnCustom_1.next()) {
25379
25574
  item = lstBtnCustom_1_1.value;
25380
- _loop_7(item);
25575
+ _loop_6(item);
25381
25576
  }
25382
25577
  }
25383
- catch (e_15_1) { e_15 = { error: e_15_1 }; }
25578
+ catch (e_18_1) { e_18 = { error: e_18_1 }; }
25384
25579
  finally {
25385
25580
  try {
25386
25581
  if (lstBtnCustom_1_1 && !lstBtnCustom_1_1.done && (_g = lstBtnCustom_1.return)) _g.call(lstBtnCustom_1);
25387
25582
  }
25388
- finally { if (e_15) throw e_15.error; }
25583
+ finally { if (e_18) throw e_18.error; }
25389
25584
  }
25390
25585
  return [4 /*yield*/, this.menuButtons({})];
25391
25586
  case 1: