tnx-shared 5.3.216 → 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.
@@ -19304,10 +19304,10 @@
19304
19304
  this.environment = this._moduleConfig.environment;
19305
19305
  this.serviceUri = this._moduleConfig.environment.apiDomain.templateEndpoint + "/Export";
19306
19306
  }
19307
- ExportService.prototype.objectToExcel = function (data, fileName) {
19307
+ ExportService.prototype.objectToExcel = function (data, fileName, numOfHeaderRow) {
19308
19308
  var _this = this;
19309
19309
  return this._http
19310
- .post(this.serviceUri + "/ObjectToExcel", data, { responseType: 'blob' })
19310
+ .post(this.serviceUri + "/ObjectToExcel?numOfHeaderRow=" + numOfHeaderRow, data, { responseType: 'blob' })
19311
19311
  .pipe(operators.catchError(function (err) { return _this._commonService.handleError(err, _this._injector); }))
19312
19312
  .subscribe(function (res) {
19313
19313
  _this.saveAsExcelFile(res, fileName);
@@ -22930,7 +22930,7 @@
22930
22930
  ListComponentBase.prototype.printByReadingHtml = function (isTree) {
22931
22931
  if (isTree === void 0) { isTree = false; }
22932
22932
  return __awaiter(this, void 0, void 0, function () {
22933
- 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;
22934
22934
  return __generator(this, function (_g) {
22935
22935
  switch (_g.label) {
22936
22936
  case 0:
@@ -22948,9 +22948,10 @@
22948
22948
  tableEle = element.querySelector('table');
22949
22949
  headEle = tableEle.querySelector('thead');
22950
22950
  bodyEle = tableEle.querySelector('tbody');
22951
- arrHeadEle = this.getArrHeadByHtml(headEle);
22952
- arrRowData = this.getArrRowDataByHtml(bodyEle, arrHeadEle);
22953
- 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);
22954
22955
  strBodyEle = this.rowDataHtmlToString(arrRowData);
22955
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>';
22956
22957
  table = css + "<table>" + strHeadEle + strBodyEle + "</table>";
@@ -22967,9 +22968,12 @@
22967
22968
  var tableEle = element.querySelector('table');
22968
22969
  var headEle = tableEle.querySelector('thead');
22969
22970
  var bodyEle = tableEle.querySelector('tbody');
22970
- var arrHeadEle = this.getArrHeadByHtml(headEle);
22971
- var arrRowData = this.getArrRowDataHasRowSpanByHtml(bodyEle, arrHeadEle);
22972
- 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);
22973
22977
  var strBodyEle = this.rowDataHtmlHasRowSpanToString(arrRowData);
22974
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>';
22975
22979
  var table = css + "<table>" + strHeadEle + strBodyEle + "</table>";
@@ -22982,6 +22986,7 @@
22982
22986
  ListComponentBase.prototype.exportByReadingHtml = function (exportAll, isTree) {
22983
22987
  if (exportAll === void 0) { exportAll = false; }
22984
22988
  if (isTree === void 0) { isTree = false; }
22989
+ var _a;
22985
22990
  if (this._groupField) {
22986
22991
  this._notifierService.showWarning('Chưa hỗ trợ xuất có nhóm dữ liệu!');
22987
22992
  return;
@@ -22991,16 +22996,21 @@
22991
22996
  var headEle = tableEle.querySelector('thead');
22992
22997
  var bodyEle = tableEle.querySelector('tbody');
22993
22998
  // header.
22994
- var arrHead = this.getArrHeadByHtml(headEle);
22995
- 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)) {
22996
23002
  return;
22997
23003
  }
22998
23004
  // body.
22999
- 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);
23000
23008
  // export.
23001
- 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));
23002
23012
  var fileName = "Danh s\u00E1ch " + this.setting.objectName;
23003
- 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);
23004
23014
  };
23005
23015
  ListComponentBase.prototype.headHtmlToString = function (arrHeadEle) {
23006
23016
  var result = '';
@@ -23009,12 +23019,50 @@
23009
23019
  });
23010
23020
  return result;
23011
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
+ };
23012
23054
  ListComponentBase.prototype.rowDataHtmlToString = function (rowDatas) {
23055
+ var _this = this;
23013
23056
  var arrRowData = [];
23014
- rowDatas.forEach(function (arrRowDataChild) {
23057
+ rowDatas.forEach(function (arrRowDataChild, indexChild) {
23015
23058
  var rowData = '<tr>';
23016
- arrRowDataChild.forEach(function (element) {
23017
- 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
+ }
23018
23066
  });
23019
23067
  rowData += '</tr>';
23020
23068
  arrRowData.push(rowData);
@@ -23043,6 +23091,147 @@
23043
23091
  }
23044
23092
  return arrHeader;
23045
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
+ };
23046
23235
  ListComponentBase.prototype.getArrRowDataHasRowSpanByHtml = function (bodyEle, arrHead, exportAll) {
23047
23236
  if (exportAll === void 0) { exportAll = false; }
23048
23237
  var arrRow = exportAll ? bodyEle.querySelectorAll('tr') : bodyEle.querySelectorAll('tr.ui-state-highlight');
@@ -23077,25 +23266,28 @@
23077
23266
  return [];
23078
23267
  }
23079
23268
  var arrRowData = [];
23080
- var _loop_2 = function (i) {
23081
- var row = arrRow[i];
23269
+ // for (const element of arrRow) {
23270
+ arrRow.forEach(function (rowElement, indexRow) {
23271
+ var row = rowElement;
23082
23272
  var arrTd = row.querySelectorAll('td');
23083
23273
  var currentTd;
23084
23274
  var rowData = [];
23085
- arrHead.forEach(function (head) {
23275
+ arrHead.forEach(function (head, index) {
23086
23276
  currentTd = arrTd[head.index];
23087
23277
  if (currentTd.innerText === '') {
23088
23278
  rowData.push(_this.getValueCheckboxFormat(currentTd));
23089
23279
  }
23090
23280
  else {
23091
- 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
+ }
23092
23287
  }
23093
23288
  });
23094
23289
  arrRowData.push(rowData);
23095
- };
23096
- for (var i = 0; i < arrRow.length; i++) {
23097
- _loop_2(i);
23098
- }
23290
+ });
23099
23291
  return arrRowData;
23100
23292
  };
23101
23293
  ListComponentBase.prototype.getValueCheckboxFormat = function (data) {
@@ -23164,15 +23356,15 @@
23164
23356
  };
23165
23357
  ListComponentBase.prototype.getMenuButtonAuthorized = function (menuButtons) {
23166
23358
  return __awaiter(this, void 0, void 0, function () {
23167
- var authorizedButtons, serviceCodeByBase, promises, _loop_3, this_2, menuButtons_1, menuButtons_1_1, item;
23168
- var e_6, _g;
23359
+ var authorizedButtons, serviceCodeByBase, promises, _loop_2, this_2, menuButtons_1, menuButtons_1_1, item;
23360
+ var e_9, _g;
23169
23361
  return __generator(this, function (_h) {
23170
23362
  switch (_h.label) {
23171
23363
  case 0:
23172
23364
  authorizedButtons = [];
23173
23365
  serviceCodeByBase = this.setting.baseService != null ? this.setting.baseService.serviceCode.toUpperCase() : '';
23174
23366
  promises = [];
23175
- _loop_3 = function (item) {
23367
+ _loop_2 = function (item) {
23176
23368
  var permission = this_2.lstBtnAuthorizeMenu.find(function (p) { return p.rawText == item.label; });
23177
23369
  if (!item.authorizationPermission && !permission) {
23178
23370
  authorizedButtons.push(item);
@@ -23191,15 +23383,15 @@
23191
23383
  try {
23192
23384
  for (menuButtons_1 = __values(menuButtons), menuButtons_1_1 = menuButtons_1.next(); !menuButtons_1_1.done; menuButtons_1_1 = menuButtons_1.next()) {
23193
23385
  item = menuButtons_1_1.value;
23194
- _loop_3(item);
23386
+ _loop_2(item);
23195
23387
  }
23196
23388
  }
23197
- catch (e_6_1) { e_6 = { error: e_6_1 }; }
23389
+ catch (e_9_1) { e_9 = { error: e_9_1 }; }
23198
23390
  finally {
23199
23391
  try {
23200
23392
  if (menuButtons_1_1 && !menuButtons_1_1.done && (_g = menuButtons_1.return)) _g.call(menuButtons_1);
23201
23393
  }
23202
- finally { if (e_6) throw e_6.error; }
23394
+ finally { if (e_9) throw e_9.error; }
23203
23395
  }
23204
23396
  return [4 /*yield*/, Promise.all(promises)];
23205
23397
  case 1:
@@ -23820,7 +24012,7 @@
23820
24012
  clearTimeout(this.timeout);
23821
24013
  };
23822
24014
  ListComponentBase.prototype.disableMultipleDelete = function () {
23823
- var e_7, _g;
24015
+ var e_10, _g;
23824
24016
  try {
23825
24017
  for (var _h = __values(this.model.selectedItems), _j = _h.next(); !_j.done; _j = _h.next()) {
23826
24018
  var item = _j.value;
@@ -23829,12 +24021,12 @@
23829
24021
  }
23830
24022
  }
23831
24023
  }
23832
- catch (e_7_1) { e_7 = { error: e_7_1 }; }
24024
+ catch (e_10_1) { e_10 = { error: e_10_1 }; }
23833
24025
  finally {
23834
24026
  try {
23835
24027
  if (_j && !_j.done && (_g = _h.return)) _g.call(_h);
23836
24028
  }
23837
- finally { if (e_7) throw e_7.error; }
24029
+ finally { if (e_10) throw e_10.error; }
23838
24030
  }
23839
24031
  return false;
23840
24032
  };
@@ -23915,44 +24107,44 @@
23915
24107
  };
23916
24108
  ListComponentBase.prototype.preProcessData = function (dataSource) {
23917
24109
  return __awaiter(this, void 0, void 0, function () {
23918
- var colHasPipe, _loop_4, this_3, colHasPipe_1, colHasPipe_1_1, col;
23919
- var e_8, _g;
24110
+ var colHasPipe, _loop_3, this_3, colHasPipe_1, colHasPipe_1_1, col;
24111
+ var e_11, _g;
23920
24112
  return __generator(this, function (_h) {
23921
24113
  colHasPipe = this.setting.cols.filter(function (x) { return x.pipe; });
23922
- _loop_4 = function (col) {
23923
- var e_9, _j;
23924
- var _loop_5 = function (item) {
24114
+ _loop_3 = function (col) {
24115
+ var e_12, _j;
24116
+ var _loop_4 = function (item) {
23925
24117
  this_3.transform(col.pipe, col.asyncPipe, item[col.field]).then(function (rs) {
23926
24118
  item["pipe__" + col.field + " "] = rs;
23927
24119
  });
23928
24120
  };
23929
24121
  try {
23930
- 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()) {
23931
24123
  var item = dataSource_1_1.value;
23932
- _loop_5(item);
24124
+ _loop_4(item);
23933
24125
  }
23934
24126
  }
23935
- catch (e_9_1) { e_9 = { error: e_9_1 }; }
24127
+ catch (e_12_1) { e_12 = { error: e_12_1 }; }
23936
24128
  finally {
23937
24129
  try {
23938
24130
  if (dataSource_1_1 && !dataSource_1_1.done && (_j = dataSource_1.return)) _j.call(dataSource_1);
23939
24131
  }
23940
- finally { if (e_9) throw e_9.error; }
24132
+ finally { if (e_12) throw e_12.error; }
23941
24133
  }
23942
24134
  };
23943
24135
  this_3 = this;
23944
24136
  try {
23945
24137
  for (colHasPipe_1 = __values(colHasPipe), colHasPipe_1_1 = colHasPipe_1.next(); !colHasPipe_1_1.done; colHasPipe_1_1 = colHasPipe_1.next()) {
23946
24138
  col = colHasPipe_1_1.value;
23947
- _loop_4(col);
24139
+ _loop_3(col);
23948
24140
  }
23949
24141
  }
23950
- catch (e_8_1) { e_8 = { error: e_8_1 }; }
24142
+ catch (e_11_1) { e_11 = { error: e_11_1 }; }
23951
24143
  finally {
23952
24144
  try {
23953
24145
  if (colHasPipe_1_1 && !colHasPipe_1_1.done && (_g = colHasPipe_1.return)) _g.call(colHasPipe_1);
23954
24146
  }
23955
- finally { if (e_8) throw e_8.error; }
24147
+ finally { if (e_11) throw e_11.error; }
23956
24148
  }
23957
24149
  return [2 /*return*/];
23958
24150
  });
@@ -24126,7 +24318,7 @@
24126
24318
  }
24127
24319
  };
24128
24320
  ListComponentBase.prototype.getMinimizeData = function (model) {
24129
- var e_10, _g;
24321
+ var e_13, _g;
24130
24322
  if (isLiteralObject(model)) {
24131
24323
  if (model._dropdownvalue != null && model._dropdownvalue !== '') {
24132
24324
  return model[model._dropdownvalue];
@@ -24149,12 +24341,12 @@
24149
24341
  arr.push(this.getMinimizeData(item));
24150
24342
  }
24151
24343
  }
24152
- catch (e_10_1) { e_10 = { error: e_10_1 }; }
24344
+ catch (e_13_1) { e_13 = { error: e_13_1 }; }
24153
24345
  finally {
24154
24346
  try {
24155
24347
  if (model_1_1 && !model_1_1.done && (_g = model_1.return)) _g.call(model_1);
24156
24348
  }
24157
- finally { if (e_10) throw e_10.error; }
24349
+ finally { if (e_13) throw e_13.error; }
24158
24350
  }
24159
24351
  return arr;
24160
24352
  }
@@ -24331,8 +24523,8 @@
24331
24523
  ListComponentBase.prototype.modifyButtonFunctionInRow = function () {
24332
24524
  var _a;
24333
24525
  return __awaiter(this, void 0, void 0, function () {
24334
- var _g, _h, rowData, total, _j, ex_1, e_11_1;
24335
- var e_11, _k;
24526
+ var _g, _h, rowData, total, _j, ex_1, e_14_1;
24527
+ var e_14, _k;
24336
24528
  return __generator(this, function (_l) {
24337
24529
  switch (_l.label) {
24338
24530
  case 0:
@@ -24361,14 +24553,14 @@
24361
24553
  return [3 /*break*/, 1];
24362
24554
  case 7: return [3 /*break*/, 10];
24363
24555
  case 8:
24364
- e_11_1 = _l.sent();
24365
- e_11 = { error: e_11_1 };
24556
+ e_14_1 = _l.sent();
24557
+ e_14 = { error: e_14_1 };
24366
24558
  return [3 /*break*/, 10];
24367
24559
  case 9:
24368
24560
  try {
24369
24561
  if (_h && !_h.done && (_k = _g.return)) _k.call(_g);
24370
24562
  }
24371
- finally { if (e_11) throw e_11.error; }
24563
+ finally { if (e_14) throw e_14.error; }
24372
24564
  return [7 /*endfinally*/];
24373
24565
  case 10:
24374
24566
  this.hiddenBtnFunction = this.model.dataSource.every(function (p) { return p.disableFunctionRow; });
@@ -24396,8 +24588,8 @@
24396
24588
  };
24397
24589
  ListComponentBase.prototype.createSearchSchema = function () {
24398
24590
  return __awaiter(this, void 0, void 0, function () {
24399
- var searchInfo, _g, _h, col, control, e_12_1, _loop_6, this_4, _j, _k, field;
24400
- 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;
24401
24593
  return __generator(this, function (_p) {
24402
24594
  switch (_p.label) {
24403
24595
  case 0:
@@ -24491,18 +24683,18 @@
24491
24683
  return [3 /*break*/, 2];
24492
24684
  case 5: return [3 /*break*/, 8];
24493
24685
  case 6:
24494
- e_12_1 = _p.sent();
24495
- e_12 = { error: e_12_1 };
24686
+ e_15_1 = _p.sent();
24687
+ e_15 = { error: e_15_1 };
24496
24688
  return [3 /*break*/, 8];
24497
24689
  case 7:
24498
24690
  try {
24499
24691
  if (_h && !_h.done && (_l = _g.return)) _l.call(_g);
24500
24692
  }
24501
- finally { if (e_12) throw e_12.error; }
24693
+ finally { if (e_15) throw e_15.error; }
24502
24694
  return [7 /*endfinally*/];
24503
24695
  case 8:
24504
24696
  if (searchInfo.fieldSearchText) {
24505
- _loop_6 = function (field) {
24697
+ _loop_5 = function (field) {
24506
24698
  if (searchInfo.fieldSearchText.indexOf(field) == -1) {
24507
24699
  searchInfo.fieldSearchText.push(field);
24508
24700
  if (!searchInfo.tooltipSearchText) {
@@ -24518,15 +24710,15 @@
24518
24710
  try {
24519
24711
  for (_j = __values(searchInfo.fieldSearchText), _k = _j.next(); !_k.done; _k = _j.next()) {
24520
24712
  field = _k.value;
24521
- _loop_6(field);
24713
+ _loop_5(field);
24522
24714
  }
24523
24715
  }
24524
- catch (e_13_1) { e_13 = { error: e_13_1 }; }
24716
+ catch (e_16_1) { e_16 = { error: e_16_1 }; }
24525
24717
  finally {
24526
24718
  try {
24527
24719
  if (_k && !_k.done && (_o = _j.return)) _o.call(_j);
24528
24720
  }
24529
- finally { if (e_13) throw e_13.error; }
24721
+ finally { if (e_16) throw e_16.error; }
24530
24722
  }
24531
24723
  }
24532
24724
  if (searchInfo.tooltipSearchText) {
@@ -25166,7 +25358,7 @@
25166
25358
  });
25167
25359
  };
25168
25360
  ListComponentBase.prototype.disableMultipleCopyLink = function () {
25169
- var e_14, _g;
25361
+ var e_17, _g;
25170
25362
  try {
25171
25363
  for (var _h = __values(this.model.selectedItems), _j = _h.next(); !_j.done; _j = _h.next()) {
25172
25364
  var item = _j.value;
@@ -25175,12 +25367,12 @@
25175
25367
  }
25176
25368
  }
25177
25369
  }
25178
- catch (e_14_1) { e_14 = { error: e_14_1 }; }
25370
+ catch (e_17_1) { e_17 = { error: e_17_1 }; }
25179
25371
  finally {
25180
25372
  try {
25181
25373
  if (_j && !_j.done && (_g = _h.return)) _g.call(_h);
25182
25374
  }
25183
- finally { if (e_14) throw e_14.error; }
25375
+ finally { if (e_17) throw e_17.error; }
25184
25376
  }
25185
25377
  return false;
25186
25378
  };
@@ -25358,8 +25550,8 @@
25358
25550
  ListComponentBase.prototype.handleShowFormSettingButton = function () {
25359
25551
  var _a, _b, _c, _d, _e, _f;
25360
25552
  return __awaiter(this, void 0, void 0, function () {
25361
- var lstBtnCustom, lstBtnAction, _loop_7, this_5, lstBtnCustom_1, lstBtnCustom_1_1, item, lstMenuButtons, buttonSetting;
25362
- 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;
25363
25555
  var _this = this;
25364
25556
  return __generator(this, function (_h) {
25365
25557
  switch (_h.label) {
@@ -25369,7 +25561,7 @@
25369
25561
  this.buttonAuthorizeModel.data.dataSource = [];
25370
25562
  lstBtnCustom = this.lstButtonElement[exports.EnumProperties.RESULTS].concat(this.lstButtonTemplate);
25371
25563
  lstBtnAction = [];
25372
- _loop_7 = function (item) {
25564
+ _loop_6 = function (item) {
25373
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;
25374
25566
  if (!buttonText || lstBtnAction.some(function (p) { return p.rawText === buttonText; })) {
25375
25567
  return "continue";
@@ -25380,15 +25572,15 @@
25380
25572
  try {
25381
25573
  for (lstBtnCustom_1 = __values(lstBtnCustom), lstBtnCustom_1_1 = lstBtnCustom_1.next(); !lstBtnCustom_1_1.done; lstBtnCustom_1_1 = lstBtnCustom_1.next()) {
25382
25574
  item = lstBtnCustom_1_1.value;
25383
- _loop_7(item);
25575
+ _loop_6(item);
25384
25576
  }
25385
25577
  }
25386
- catch (e_15_1) { e_15 = { error: e_15_1 }; }
25578
+ catch (e_18_1) { e_18 = { error: e_18_1 }; }
25387
25579
  finally {
25388
25580
  try {
25389
25581
  if (lstBtnCustom_1_1 && !lstBtnCustom_1_1.done && (_g = lstBtnCustom_1.return)) _g.call(lstBtnCustom_1);
25390
25582
  }
25391
- finally { if (e_15) throw e_15.error; }
25583
+ finally { if (e_18) throw e_18.error; }
25392
25584
  }
25393
25585
  return [4 /*yield*/, this.menuButtons({})];
25394
25586
  case 1: