@sd-angular/core 1.2.35 → 1.2.36

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.
Files changed (190) hide show
  1. package/autocomplete/sd-angular-core-autocomplete.metadata.json +1 -1
  2. package/autocomplete/src/lib/autocomplete.component.d.ts +2 -0
  3. package/bundles/sd-angular-core-autocomplete.umd.js +2 -1
  4. package/bundles/sd-angular-core-autocomplete.umd.js.map +1 -1
  5. package/bundles/sd-angular-core-autocomplete.umd.min.js +2 -2
  6. package/bundles/sd-angular-core-autocomplete.umd.min.js.map +1 -1
  7. package/bundles/sd-angular-core-chip.umd.js +3 -2
  8. package/bundles/sd-angular-core-chip.umd.js.map +1 -1
  9. package/bundles/sd-angular-core-chip.umd.min.js +1 -1
  10. package/bundles/sd-angular-core-chip.umd.min.js.map +1 -1
  11. package/bundles/sd-angular-core-common.umd.js +4 -0
  12. package/bundles/sd-angular-core-common.umd.js.map +1 -1
  13. package/bundles/sd-angular-core-common.umd.min.js +1 -1
  14. package/bundles/sd-angular-core-common.umd.min.js.map +1 -1
  15. package/bundles/sd-angular-core-date-month.umd.js +2 -1
  16. package/bundles/sd-angular-core-date-month.umd.js.map +1 -1
  17. package/bundles/sd-angular-core-date-month.umd.min.js +1 -1
  18. package/bundles/sd-angular-core-date-month.umd.min.js.map +1 -1
  19. package/bundles/sd-angular-core-date-range.umd.js +3 -2
  20. package/bundles/sd-angular-core-date-range.umd.js.map +1 -1
  21. package/bundles/sd-angular-core-date-range.umd.min.js +1 -1
  22. package/bundles/sd-angular-core-date-range.umd.min.js.map +1 -1
  23. package/bundles/sd-angular-core-date-time.umd.js +2 -1
  24. package/bundles/sd-angular-core-date-time.umd.js.map +1 -1
  25. package/bundles/sd-angular-core-date-time.umd.min.js +1 -1
  26. package/bundles/sd-angular-core-date-time.umd.min.js.map +1 -1
  27. package/bundles/sd-angular-core-dynamic-report.umd.js +11 -13
  28. package/bundles/sd-angular-core-dynamic-report.umd.js.map +1 -1
  29. package/bundles/sd-angular-core-dynamic-report.umd.min.js +1 -1
  30. package/bundles/sd-angular-core-dynamic-report.umd.min.js.map +1 -1
  31. package/bundles/sd-angular-core-editor.umd.js +7 -6
  32. package/bundles/sd-angular-core-editor.umd.js.map +1 -1
  33. package/bundles/sd-angular-core-editor.umd.min.js +2 -2
  34. package/bundles/sd-angular-core-editor.umd.min.js.map +1 -1
  35. package/bundles/sd-angular-core-export.umd.js +48 -18
  36. package/bundles/sd-angular-core-export.umd.js.map +1 -1
  37. package/bundles/sd-angular-core-export.umd.min.js +1 -1
  38. package/bundles/sd-angular-core-export.umd.min.js.map +1 -1
  39. package/bundles/sd-angular-core-grid-material.umd.js +131 -129
  40. package/bundles/sd-angular-core-grid-material.umd.js.map +1 -1
  41. package/bundles/sd-angular-core-grid-material.umd.min.js +2 -2
  42. package/bundles/sd-angular-core-grid-material.umd.min.js.map +1 -1
  43. package/bundles/sd-angular-core-input-currency.umd.js +2 -1
  44. package/bundles/sd-angular-core-input-currency.umd.js.map +1 -1
  45. package/bundles/sd-angular-core-input-currency.umd.min.js +2 -2
  46. package/bundles/sd-angular-core-input-currency.umd.min.js.map +1 -1
  47. package/bundles/sd-angular-core-input-dropdown.umd.js +2 -9
  48. package/bundles/sd-angular-core-input-dropdown.umd.js.map +1 -1
  49. package/bundles/sd-angular-core-input-dropdown.umd.min.js +1 -1
  50. package/bundles/sd-angular-core-input-dropdown.umd.min.js.map +1 -1
  51. package/bundles/sd-angular-core-input-number.umd.js +5 -4
  52. package/bundles/sd-angular-core-input-number.umd.js.map +1 -1
  53. package/bundles/sd-angular-core-input-number.umd.min.js +1 -1
  54. package/bundles/sd-angular-core-input-number.umd.min.js.map +1 -1
  55. package/bundles/sd-angular-core-json-editor.umd.js +3 -2
  56. package/bundles/sd-angular-core-json-editor.umd.js.map +1 -1
  57. package/bundles/sd-angular-core-json-editor.umd.min.js +2 -2
  58. package/bundles/sd-angular-core-json-editor.umd.min.js.map +1 -1
  59. package/bundles/sd-angular-core-radio.umd.js +2 -1
  60. package/bundles/sd-angular-core-radio.umd.js.map +1 -1
  61. package/bundles/sd-angular-core-radio.umd.min.js +1 -1
  62. package/bundles/sd-angular-core-radio.umd.min.js.map +1 -1
  63. package/bundles/sd-angular-core-select-badge.umd.js +9 -8
  64. package/bundles/sd-angular-core-select-badge.umd.js.map +1 -1
  65. package/bundles/sd-angular-core-select-badge.umd.min.js +2 -2
  66. package/bundles/sd-angular-core-select-badge.umd.min.js.map +1 -1
  67. package/bundles/sd-angular-core-select-editor.umd.js +3 -2
  68. package/bundles/sd-angular-core-select-editor.umd.js.map +1 -1
  69. package/bundles/sd-angular-core-select-editor.umd.min.js +1 -1
  70. package/bundles/sd-angular-core-select-editor.umd.min.js.map +1 -1
  71. package/bundles/sd-angular-core-select.umd.js +2 -1
  72. package/bundles/sd-angular-core-select.umd.js.map +1 -1
  73. package/bundles/sd-angular-core-select.umd.min.js +2 -2
  74. package/bundles/sd-angular-core-select.umd.min.js.map +1 -1
  75. package/bundles/sd-angular-core-textarea.umd.js +3 -2
  76. package/bundles/sd-angular-core-textarea.umd.js.map +1 -1
  77. package/bundles/sd-angular-core-textarea.umd.min.js +1 -1
  78. package/bundles/sd-angular-core-textarea.umd.min.js.map +1 -1
  79. package/bundles/sd-angular-core-time.umd.js +4 -3
  80. package/bundles/sd-angular-core-time.umd.js.map +1 -1
  81. package/bundles/sd-angular-core-time.umd.min.js +2 -2
  82. package/bundles/sd-angular-core-time.umd.min.js.map +1 -1
  83. package/bundles/sd-angular-core-upload-file.umd.js +8 -7
  84. package/bundles/sd-angular-core-upload-file.umd.js.map +1 -1
  85. package/bundles/sd-angular-core-upload-file.umd.min.js +2 -2
  86. package/bundles/sd-angular-core-upload-file.umd.min.js.map +1 -1
  87. package/chip/sd-angular-core-chip.metadata.json +1 -1
  88. package/chip/src/lib/chip.component.d.ts +2 -0
  89. package/common/src/lib/directives/sd-scroll.directive.d.ts +1 -0
  90. package/date-month/sd-angular-core-date-month.metadata.json +1 -1
  91. package/date-month/src/lib/date-month.component.d.ts +2 -0
  92. package/date-range/sd-angular-core-date-range.metadata.json +1 -1
  93. package/date-range/src/lib/date-range.component.d.ts +2 -0
  94. package/date-time/sd-angular-core-date-time.metadata.json +1 -1
  95. package/date-time/src/lib/date-time.component.d.ts +2 -0
  96. package/dynamic-report/sd-angular-core-dynamic-report.metadata.json +1 -1
  97. package/dynamic-report/src/lib/dynamic-report.component.d.ts +4 -3
  98. package/editor/sd-angular-core-editor.metadata.json +1 -1
  99. package/editor/src/lib/editor.component.d.ts +2 -0
  100. package/esm2015/autocomplete/src/lib/autocomplete.component.js +4 -2
  101. package/esm2015/chip/src/lib/chip.component.js +5 -3
  102. package/esm2015/common/src/lib/directives/sd-scroll.directive.js +4 -1
  103. package/esm2015/date-month/src/lib/date-month.component.js +4 -2
  104. package/esm2015/date-range/src/lib/date-range.component.js +6 -4
  105. package/esm2015/date-time/src/lib/date-time.component.js +4 -2
  106. package/esm2015/dynamic-report/src/lib/dynamic-report.component.js +9 -9
  107. package/esm2015/dynamic-report/src/lib/dynamic-report.module.js +3 -3
  108. package/esm2015/editor/src/lib/editor.component.js +5 -3
  109. package/esm2015/export/src/lib/export.service.js +39 -13
  110. package/esm2015/grid-material/src/lib/components/desktop-command/desktop-command.component.js +2 -2
  111. package/esm2015/grid-material/src/lib/grid-material.component.js +21 -17
  112. package/esm2015/input-currency/src/lib/input-currency.component.js +4 -2
  113. package/esm2015/input-dropdown/src/lib/input.component.js +3 -10
  114. package/esm2015/input-number/src/lib/input-number.component.js +7 -5
  115. package/esm2015/json-editor/src/lib/json-editor.component.js +6 -4
  116. package/esm2015/radio/src/lib/radio.component.js +5 -3
  117. package/esm2015/select/src/lib/select.component.js +4 -2
  118. package/esm2015/select-badge/src/lib/select-badge.component.js +5 -3
  119. package/esm2015/select-editor/src/lib/select-editor.component.js +6 -4
  120. package/esm2015/textarea/src/lib/textarea.component.js +5 -3
  121. package/esm2015/time/src/lib/time.component.js +5 -3
  122. package/esm2015/upload-file/src/lib/upload-file.component.js +6 -4
  123. package/export/sd-angular-core-export.metadata.json +1 -1
  124. package/export/src/lib/export.service.d.ts +2 -2
  125. package/fesm2015/sd-angular-core-autocomplete.js +3 -2
  126. package/fesm2015/sd-angular-core-autocomplete.js.map +1 -1
  127. package/fesm2015/sd-angular-core-chip.js +4 -3
  128. package/fesm2015/sd-angular-core-chip.js.map +1 -1
  129. package/fesm2015/sd-angular-core-common.js +3 -0
  130. package/fesm2015/sd-angular-core-common.js.map +1 -1
  131. package/fesm2015/sd-angular-core-date-month.js +3 -2
  132. package/fesm2015/sd-angular-core-date-month.js.map +1 -1
  133. package/fesm2015/sd-angular-core-date-range.js +5 -4
  134. package/fesm2015/sd-angular-core-date-range.js.map +1 -1
  135. package/fesm2015/sd-angular-core-date-time.js +3 -2
  136. package/fesm2015/sd-angular-core-date-time.js.map +1 -1
  137. package/fesm2015/sd-angular-core-dynamic-report.js +9 -10
  138. package/fesm2015/sd-angular-core-dynamic-report.js.map +1 -1
  139. package/fesm2015/sd-angular-core-editor.js +4 -2
  140. package/fesm2015/sd-angular-core-editor.js.map +1 -1
  141. package/fesm2015/sd-angular-core-export.js +38 -12
  142. package/fesm2015/sd-angular-core-export.js.map +1 -1
  143. package/fesm2015/sd-angular-core-grid-material.js +21 -18
  144. package/fesm2015/sd-angular-core-grid-material.js.map +1 -1
  145. package/fesm2015/sd-angular-core-input-currency.js +3 -2
  146. package/fesm2015/sd-angular-core-input-currency.js.map +1 -1
  147. package/fesm2015/sd-angular-core-input-dropdown.js +2 -9
  148. package/fesm2015/sd-angular-core-input-dropdown.js.map +1 -1
  149. package/fesm2015/sd-angular-core-input-number.js +6 -5
  150. package/fesm2015/sd-angular-core-input-number.js.map +1 -1
  151. package/fesm2015/sd-angular-core-json-editor.js +5 -4
  152. package/fesm2015/sd-angular-core-json-editor.js.map +1 -1
  153. package/fesm2015/sd-angular-core-radio.js +4 -3
  154. package/fesm2015/sd-angular-core-radio.js.map +1 -1
  155. package/fesm2015/sd-angular-core-select-badge.js +4 -3
  156. package/fesm2015/sd-angular-core-select-badge.js.map +1 -1
  157. package/fesm2015/sd-angular-core-select-editor.js +5 -4
  158. package/fesm2015/sd-angular-core-select-editor.js.map +1 -1
  159. package/fesm2015/sd-angular-core-select.js +3 -2
  160. package/fesm2015/sd-angular-core-select.js.map +1 -1
  161. package/fesm2015/sd-angular-core-textarea.js +4 -3
  162. package/fesm2015/sd-angular-core-textarea.js.map +1 -1
  163. package/fesm2015/sd-angular-core-time.js +4 -3
  164. package/fesm2015/sd-angular-core-time.js.map +1 -1
  165. package/fesm2015/sd-angular-core-upload-file.js +5 -3
  166. package/fesm2015/sd-angular-core-upload-file.js.map +1 -1
  167. package/grid-material/sd-angular-core-grid-material.metadata.json +1 -1
  168. package/grid-material/src/lib/grid-material.component.d.ts +2 -0
  169. package/input-currency/sd-angular-core-input-currency.metadata.json +1 -1
  170. package/input-currency/src/lib/input-currency.component.d.ts +2 -0
  171. package/input-number/sd-angular-core-input-number.metadata.json +1 -1
  172. package/input-number/src/lib/input-number.component.d.ts +3 -1
  173. package/json-editor/sd-angular-core-json-editor.metadata.json +1 -1
  174. package/json-editor/src/lib/json-editor.component.d.ts +2 -0
  175. package/package.json +3 -3
  176. package/radio/sd-angular-core-radio.metadata.json +1 -1
  177. package/radio/src/lib/radio.component.d.ts +2 -0
  178. package/{sd-angular-core-1.2.35.tgz → sd-angular-core-1.2.36.tgz} +0 -0
  179. package/select/sd-angular-core-select.metadata.json +1 -1
  180. package/select/src/lib/select.component.d.ts +2 -0
  181. package/select-badge/sd-angular-core-select-badge.metadata.json +1 -1
  182. package/select-badge/src/lib/select-badge.component.d.ts +2 -0
  183. package/select-editor/sd-angular-core-select-editor.metadata.json +1 -1
  184. package/select-editor/src/lib/select-editor.component.d.ts +2 -0
  185. package/textarea/sd-angular-core-textarea.metadata.json +1 -1
  186. package/textarea/src/lib/textarea.component.d.ts +2 -0
  187. package/time/sd-angular-core-time.metadata.json +1 -1
  188. package/time/src/lib/time.component.d.ts +2 -0
  189. package/upload-file/sd-angular-core-upload-file.metadata.json +1 -1
  190. package/upload-file/src/lib/upload-file.component.d.ts +2 -0
@@ -2,7 +2,7 @@
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@sd-angular/core/common'), require('@angular/core'), require('@angular/material/paginator'), require('@angular/material/sort'), require('@angular/animations'), require('uuid'), require('rxjs'), require('@sd-angular/core/notify'), require('@angular/cdk/drag-drop'), require('rxjs/operators'), require('object-hash'), require('@sd-angular/core/setting'), require('ngx-device-detector'), require('@sd-angular/core/loading'), require('@sd-angular/core/translate'), require('@sd-angular/core/export'), require('@angular/forms'), require('@sd-angular/core/quick-action'), require('@angular/common'), require('@angular/material/form-field'), require('@angular/material/icon'), require('@angular/material/input'), require('@angular/material/table'), require('@angular/material/progress-spinner'), require('@angular/cdk/table'), require('@angular/cdk/scrolling'), require('@angular/material/menu'), require('@angular/material/slider'), require('@angular/material/button'), require('@sd-angular/core/service'), require('@angular/material/tooltip'), require('@angular/material/chips'), require('@angular/material/radio'), require('@angular/material/slide-toggle'), require('@sd-angular/core/form'), require('@angular/material/checkbox'), require('@angular/material/list'), require('@angular/material/divider'), require('@sd-angular/core/side-drawer'), require('@sd-angular/core/utility')) :
3
3
  typeof define === 'function' && define.amd ? define('@sd-angular/core/grid-material', ['exports', '@sd-angular/core/common', '@angular/core', '@angular/material/paginator', '@angular/material/sort', '@angular/animations', 'uuid', 'rxjs', '@sd-angular/core/notify', '@angular/cdk/drag-drop', 'rxjs/operators', 'object-hash', '@sd-angular/core/setting', 'ngx-device-detector', '@sd-angular/core/loading', '@sd-angular/core/translate', '@sd-angular/core/export', '@angular/forms', '@sd-angular/core/quick-action', '@angular/common', '@angular/material/form-field', '@angular/material/icon', '@angular/material/input', '@angular/material/table', '@angular/material/progress-spinner', '@angular/cdk/table', '@angular/cdk/scrolling', '@angular/material/menu', '@angular/material/slider', '@angular/material/button', '@sd-angular/core/service', '@angular/material/tooltip', '@angular/material/chips', '@angular/material/radio', '@angular/material/slide-toggle', '@sd-angular/core/form', '@angular/material/checkbox', '@angular/material/list', '@angular/material/divider', '@sd-angular/core/side-drawer', '@sd-angular/core/utility'], factory) :
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['sd-angular'] = global['sd-angular'] || {}, global['sd-angular'].core = global['sd-angular'].core || {}, global['sd-angular'].core['grid-material'] = {}), global['sd-angular'].core.common, global.ng.core, global.ng.material.paginator, global.ng.material.sort, global.ng.animations, global.uuid, global.rxjs, global['sd-angular'].core.notify, global.ng.cdk.dragDrop, global.rxjs.operators, global['object-hash'], global['sd-angular'].core.setting, global['ngx-device-detector'], global['sd-angular'].core.loading, global['sd-angular'].core.translate, global['sd-angular'].core.export, global.ng.forms, global['sd-angular'].core['quick-action'], global.ng.common, global.ng.material.formField, global.ng.material.icon, global.ng.material.input, global.ng.material.table, global.ng.material.progressSpinner, global.ng.cdk.table, global.ng.cdk.scrolling, global.ng.material.menu, global.ng.material.slider, global.ng.material.button, global['sd-angular'].core.service, global.ng.material.tooltip, global.ng.material.chips, global.ng.material.radio, global.ng.material.slideToggle, global['sd-angular'].core.form, global.ng.material.checkbox, global.ng.material.list, global.ng.material.divider, global['sd-angular'].core['side-drawer'], global['sd-angular'].core.utility));
5
- }(this, (function (exports, common$1, core, paginator, sort, animations, uuid, rxjs, notify, dragDrop, operators, hash, setting, ngxDeviceDetector, loading, translate, _export, forms, quickAction, common, formField, icon, input, table, progressSpinner, table$1, scrolling, menu, slider, button, service, tooltip, chips, radio, slideToggle, form, checkbox, list, divider, sideDrawer, utility) { 'use strict';
5
+ }(this, (function (exports, common, core, paginator, sort, animations, uuid, rxjs, notify, dragDrop, operators, hash, setting, ngxDeviceDetector, loading, translate, _export, forms, quickAction, common$1, formField, icon, input, table, progressSpinner, table$1, scrolling, menu, slider, button, service, tooltip, chips, radio, slideToggle, form, checkbox, list, divider, sideDrawer, utility) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -1838,11 +1838,11 @@
1838
1838
  this.isSelectAll = false;
1839
1839
  this.exportTitle = 'Export';
1840
1840
  _initCellDef.set(this, function () {
1841
- var e_1, _x;
1841
+ var e_1, _y;
1842
1842
  _this.cellDef = {};
1843
1843
  try {
1844
- for (var _y = __values(_this.sdCellDefs), _z = _y.next(); !_z.done; _z = _y.next()) {
1845
- var cellDef = _z.value;
1844
+ for (var _z = __values(_this.sdCellDefs), _0 = _z.next(); !_0.done; _0 = _z.next()) {
1845
+ var cellDef = _0.value;
1846
1846
  if (cellDef.sdMaterialCellDef) {
1847
1847
  _this.cellDef[cellDef.sdMaterialCellDef] = cellDef;
1848
1848
  }
@@ -1851,35 +1851,35 @@
1851
1851
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
1852
1852
  finally {
1853
1853
  try {
1854
- if (_z && !_z.done && (_x = _y.return)) _x.call(_y);
1854
+ if (_0 && !_0.done && (_y = _z.return)) _y.call(_z);
1855
1855
  }
1856
1856
  finally { if (e_1) throw e_1.error; }
1857
1857
  }
1858
1858
  });
1859
1859
  _initFilterDef.set(this, function () {
1860
- var e_2, _x;
1860
+ var e_2, _y;
1861
1861
  _this.filterDefs = [];
1862
1862
  try {
1863
- for (var _y = __values(_this.sdFilterDefs), _z = _y.next(); !_z.done; _z = _y.next()) {
1864
- var filterDef = _z.value;
1863
+ for (var _z = __values(_this.sdFilterDefs), _0 = _z.next(); !_0.done; _0 = _z.next()) {
1864
+ var filterDef = _0.value;
1865
1865
  _this.filterDefs.push(filterDef);
1866
1866
  }
1867
1867
  }
1868
1868
  catch (e_2_1) { e_2 = { error: e_2_1 }; }
1869
1869
  finally {
1870
1870
  try {
1871
- if (_z && !_z.done && (_x = _y.return)) _x.call(_y);
1871
+ if (_0 && !_0.done && (_y = _z.return)) _y.call(_z);
1872
1872
  }
1873
1873
  finally { if (e_2) throw e_2.error; }
1874
1874
  }
1875
1875
  });
1876
1876
  _initFooterDef.set(this, function () {
1877
- var e_3, _x;
1877
+ var e_3, _y;
1878
1878
  _this.footerDef = {};
1879
1879
  _this.hasFooter = false;
1880
1880
  try {
1881
- for (var _y = __values(_this.sdFooterDefs), _z = _y.next(); !_z.done; _z = _y.next()) {
1882
- var footerDef = _z.value;
1881
+ for (var _z = __values(_this.sdFooterDefs), _0 = _z.next(); !_0.done; _0 = _z.next()) {
1882
+ var footerDef = _0.value;
1883
1883
  if (footerDef.sdMaterialFooterDef) {
1884
1884
  _this.hasFooter = true;
1885
1885
  _this.footerDef[footerDef.sdMaterialFooterDef] = footerDef;
@@ -1889,7 +1889,7 @@
1889
1889
  catch (e_3_1) { e_3 = { error: e_3_1 }; }
1890
1890
  finally {
1891
1891
  try {
1892
- if (_z && !_z.done && (_x = _y.return)) _x.call(_y);
1892
+ if (_0 && !_0.done && (_y = _z.return)) _y.call(_z);
1893
1893
  }
1894
1894
  finally { if (e_3) throw e_3.error; }
1895
1895
  }
@@ -1921,7 +1921,7 @@
1921
1921
  var columns = _this.gridOption.columns;
1922
1922
  var rawColumnFilter = filterInfo.rawColumnFilter, orderBy = filterInfo.orderBy, orderDirection = filterInfo.orderDirection, pageSize = filterInfo.pageSize, pageNumber = filterInfo.pageNumber;
1923
1923
  var items = localItems.filter(function (item) {
1924
- var e_4, _x;
1924
+ var e_4, _y;
1925
1925
  var _a, _b, _c, _d;
1926
1926
  try {
1927
1927
  for (var columns_1 = __values(columns), columns_1_1 = columns_1.next(); !columns_1_1.done; columns_1_1 = columns_1.next()) {
@@ -1995,7 +1995,7 @@
1995
1995
  catch (e_4_1) { e_4 = { error: e_4_1 }; }
1996
1996
  finally {
1997
1997
  try {
1998
- if (columns_1_1 && !columns_1_1.done && (_x = columns_1.return)) _x.call(columns_1);
1998
+ if (columns_1_1 && !columns_1_1.done && (_y = columns_1.return)) _y.call(columns_1);
1999
1999
  }
2000
2000
  finally { if (e_4) throw e_4.error; }
2001
2001
  }
@@ -2053,37 +2053,37 @@
2053
2053
  _load$1.set(this, function (filterReq, force) {
2054
2054
  if (force === void 0) { force = true; }
2055
2055
  return __awaiter(_this, void 0, void 0, function () {
2056
- var result, results, _x, error_1;
2057
- return __generator(this, function (_y) {
2058
- switch (_y.label) {
2056
+ var result, results, _y, error_1;
2057
+ return __generator(this, function (_z) {
2058
+ switch (_z.label) {
2059
2059
  case 0:
2060
2060
  this.isLoading = true;
2061
- _y.label = 1;
2061
+ _z.label = 1;
2062
2062
  case 1:
2063
- _y.trys.push([1, 8, 9, 10]);
2063
+ _z.trys.push([1, 8, 9, 10]);
2064
2064
  if (!(this.gridOption.type === 'server')) return [3 /*break*/, 3];
2065
2065
  result = this.gridOption.items(filterReq);
2066
2066
  if (rxjs.isObservable(result)) {
2067
2067
  result = result.toPromise();
2068
2068
  }
2069
2069
  return [4 /*yield*/, result];
2070
- case 2: return [2 /*return*/, _y.sent()];
2070
+ case 2: return [2 /*return*/, _z.sent()];
2071
2071
  case 3:
2072
2072
  if (!force) return [3 /*break*/, 6];
2073
2073
  results = this.gridOption.items();
2074
2074
  if (!(results instanceof Promise)) return [3 /*break*/, 5];
2075
- _x = this;
2075
+ _y = this;
2076
2076
  return [4 /*yield*/, results];
2077
2077
  case 4:
2078
- _x.localItems = _y.sent();
2078
+ _y.localItems = _z.sent();
2079
2079
  return [3 /*break*/, 6];
2080
2080
  case 5:
2081
2081
  this.localItems = results;
2082
- _y.label = 6;
2082
+ _z.label = 6;
2083
2083
  case 6: return [2 /*return*/, __classPrivateFieldGet(this, _filterLocal).call(this, this.localItems, filterReq)];
2084
2084
  case 7: return [3 /*break*/, 10];
2085
2085
  case 8:
2086
- error_1 = _y.sent();
2086
+ error_1 = _z.sent();
2087
2087
  this.notifyService.handle.error(error_1);
2088
2088
  return [3 /*break*/, 10];
2089
2089
  case 9:
@@ -2097,8 +2097,8 @@
2097
2097
  });
2098
2098
  _render.set(this, function (args) { return __awaiter(_this, void 0, void 0, function () {
2099
2099
  var _a, _b, _c;
2100
- return __generator(this, function (_x) {
2101
- switch (_x.label) {
2100
+ return __generator(this, function (_y) {
2101
+ switch (_y.label) {
2102
2102
  case 0:
2103
2103
  this.items = (args === null || args === void 0 ? void 0 : args.items) || [];
2104
2104
  this.total = (args === null || args === void 0 ? void 0 : args.total) || 0;
@@ -2108,7 +2108,7 @@
2108
2108
  });
2109
2109
  return [4 /*yield*/, ((_c = (_b = (_a = this.gridOption) === null || _a === void 0 ? void 0 : _a.reload) === null || _b === void 0 ? void 0 : _b.onReload) === null || _c === void 0 ? void 0 : _c.call(_b, this.items))];
2110
2110
  case 1:
2111
- _x.sent();
2111
+ _y.sent();
2112
2112
  this.isSelectAll = this.items.every(function (e) { return e.isSelected; });
2113
2113
  __classPrivateFieldGet(this, _updateSelectedItems).call(this);
2114
2114
  return [2 /*return*/];
@@ -2118,12 +2118,13 @@
2118
2118
  this.reload = function (force) {
2119
2119
  if (force === void 0) { force = true; }
2120
2120
  return __awaiter(_this, void 0, void 0, function () {
2121
- var data;
2122
- return __generator(this, function (_x) {
2123
- switch (_x.label) {
2121
+ var _d, data;
2122
+ return __generator(this, function (_y) {
2123
+ switch (_y.label) {
2124
2124
  case 0: return [4 /*yield*/, __classPrivateFieldGet(this, _load$1).call(this, __classPrivateFieldGet(this, _getFilter).call(this), force)];
2125
2125
  case 1:
2126
- data = _x.sent();
2126
+ data = _y.sent();
2127
+ (_d = this.sdScroll) === null || _d === void 0 ? void 0 : _d.scrollTop();
2127
2128
  __classPrivateFieldGet(this, _render).call(this, data);
2128
2129
  return [2 /*return*/];
2129
2130
  }
@@ -2134,12 +2135,12 @@
2134
2135
  if (pageNumber === void 0) { pageNumber = 0; }
2135
2136
  if (pageSize === void 0) { pageSize = 10000; }
2136
2137
  return __awaiter(_this, void 0, void 0, function () {
2137
- var _d, _e, result, filterInfo, result, exportedItems, results;
2138
- return __generator(this, function (_x) {
2139
- switch (_x.label) {
2138
+ var _e, _f, result, filterInfo, result, exportedItems, results;
2139
+ return __generator(this, function (_y) {
2140
+ switch (_y.label) {
2140
2141
  case 0:
2141
- if (!((_d = this.gridOption.export) === null || _d === void 0 ? void 0 : _d.items)) return [3 /*break*/, 2];
2142
- result = (_e = this.gridOption.export) === null || _e === void 0 ? void 0 : _e.items(__classPrivateFieldGet(this, _filterExportInfo).call(this, pageNumber, pageSize));
2142
+ if (!((_e = this.gridOption.export) === null || _e === void 0 ? void 0 : _e.items)) return [3 /*break*/, 2];
2143
+ result = (_f = this.gridOption.export) === null || _f === void 0 ? void 0 : _f.items(__classPrivateFieldGet(this, _filterExportInfo).call(this, pageNumber, pageSize));
2143
2144
  if (Array.isArray(result)) {
2144
2145
  return [2 /*return*/, result];
2145
2146
  }
@@ -2150,7 +2151,7 @@
2150
2151
  result = result.toPromise();
2151
2152
  }
2152
2153
  return [4 /*yield*/, result];
2153
- case 1: return [2 /*return*/, _x.sent()];
2154
+ case 1: return [2 /*return*/, _y.sent()];
2154
2155
  case 2:
2155
2156
  filterInfo = __classPrivateFieldGet(this, _filterExportInfo).call(this, pageNumber, pageSize);
2156
2157
  if (!(this.gridOption.type === 'server')) return [3 /*break*/, 4];
@@ -2159,7 +2160,7 @@
2159
2160
  result = result.toPromise();
2160
2161
  }
2161
2162
  return [4 /*yield*/, result];
2162
- case 3: return [2 /*return*/, _x.sent()];
2163
+ case 3: return [2 /*return*/, _y.sent()];
2163
2164
  case 4:
2164
2165
  exportedItems = [];
2165
2166
  if (!(typeof (this.gridOption.items) === 'function')) return [3 /*break*/, 8];
@@ -2167,15 +2168,15 @@
2167
2168
  if (!(results instanceof Promise)) return [3 /*break*/, 6];
2168
2169
  return [4 /*yield*/, results];
2169
2170
  case 5:
2170
- exportedItems = _x.sent();
2171
+ exportedItems = _y.sent();
2171
2172
  return [3 /*break*/, 7];
2172
2173
  case 6:
2173
2174
  exportedItems = results;
2174
- _x.label = 7;
2175
+ _y.label = 7;
2175
2176
  case 7: return [3 /*break*/, 9];
2176
2177
  case 8:
2177
2178
  exportedItems = this.gridOption.items;
2178
- _x.label = 9;
2179
+ _y.label = 9;
2179
2180
  case 9: return [2 /*return*/, __classPrivateFieldGet(this, _filterLocal).call(this, exportedItems, filterInfo)];
2180
2181
  }
2181
2182
  });
@@ -2215,15 +2216,15 @@
2215
2216
  return ((_b = (_a = _this.gridOption.export) === null || _a === void 0 ? void 0 : _a.columns) === null || _b === void 0 ? void 0 : _b.filter(function (e) { var _a; return !((_a = e.export) === null || _a === void 0 ? void 0 : _a.disabled); })) || [];
2216
2217
  });
2217
2218
  _onExport.set(this, function (args) { return __awaiter(_this, void 0, void 0, function () {
2218
- var _f, _g, _h, _j, _k, _l, _m, _o, _p, file, columns_2, isCSV, pageSize, total, pageNumber, exportItems, items, _loop_1, this_1, sheets, _x, _y, sheet, _z, _0, _1, e_5_1;
2219
- var e_5, _2;
2219
+ var _g, _h, _j, _k, _l, _m, _o, _p, _q, file, columns_2, isCSV, pageSize, total, pageNumber, exportItems, items, _loop_1, this_1, sheets, _y, _z, sheet, _0, _1, _2, e_5_1;
2220
+ var e_5, _3;
2220
2221
  var _this = this;
2221
- return __generator(this, function (_3) {
2222
- switch (_3.label) {
2222
+ return __generator(this, function (_4) {
2223
+ switch (_4.label) {
2223
2224
  case 0:
2224
- _3.trys.push([0, , 18, 19]);
2225
+ _4.trys.push([0, , 18, 19]);
2225
2226
  file = args.file, columns_2 = args.columns, isCSV = args.isCSV;
2226
- pageSize = ((_g = (_f = this.gridOption) === null || _f === void 0 ? void 0 : _f.export) === null || _g === void 0 ? void 0 : _g.maxItemsPerRequest) || 1000;
2227
+ pageSize = ((_h = (_g = this.gridOption) === null || _g === void 0 ? void 0 : _g.export) === null || _h === void 0 ? void 0 : _h.maxItemsPerRequest) || 1000;
2227
2228
  total = this.total;
2228
2229
  pageNumber = 0;
2229
2230
  exportItems = [];
@@ -2231,12 +2232,12 @@
2231
2232
  items = [];
2232
2233
  _loop_1 = function () {
2233
2234
  var res, results, totalPage, percent, allColumns, allExportedColumns, _loop_2, exportItems_1, exportItems_1_1, item, e_6_1;
2234
- var e_6, _x;
2235
- return __generator(this, function (_y) {
2236
- switch (_y.label) {
2235
+ var e_6, _y;
2236
+ return __generator(this, function (_z) {
2237
+ switch (_z.label) {
2237
2238
  case 0: return [4 /*yield*/, __classPrivateFieldGet(this_1, _exportedItems).call(this_1, pageNumber, pageSize)];
2238
2239
  case 1:
2239
- res = _y.sent();
2240
+ res = _z.sent();
2240
2241
  if ('items' in res) {
2241
2242
  exportItems = res.items;
2242
2243
  total = res.total;
@@ -2245,16 +2246,16 @@
2245
2246
  exportItems = res;
2246
2247
  // total = exportItems.length;
2247
2248
  }
2248
- if (!((_h = this_1.gridOption.export) === null || _h === void 0 ? void 0 : _h.mapping)) return [3 /*break*/, 4];
2249
+ if (!((_j = this_1.gridOption.export) === null || _j === void 0 ? void 0 : _j.mapping)) return [3 /*break*/, 4];
2249
2250
  results = this_1.gridOption.export.mapping(exportItems);
2250
2251
  if (!(results instanceof Promise)) return [3 /*break*/, 3];
2251
2252
  return [4 /*yield*/, results];
2252
2253
  case 2:
2253
- exportItems = _y.sent();
2254
+ exportItems = _z.sent();
2254
2255
  return [3 /*break*/, 4];
2255
2256
  case 3:
2256
2257
  exportItems = results;
2257
- _y.label = 4;
2258
+ _z.label = 4;
2258
2259
  case 4:
2259
2260
  totalPage = total / pageSize;
2260
2261
  percent = Math.round(pageNumber * 100.0 / totalPage);
@@ -2263,15 +2264,15 @@
2263
2264
  allExportedColumns = __classPrivateFieldGet(this_1, _allExportedColumns).call(this_1);
2264
2265
  _loop_2 = function (item) {
2265
2266
  var obj, handle, columns_3, columns_3_1, exportColumn, e_7_1;
2266
- var e_7, _x;
2267
- return __generator(this, function (_y) {
2268
- switch (_y.label) {
2267
+ var e_7, _y;
2268
+ return __generator(this, function (_z) {
2269
+ switch (_z.label) {
2269
2270
  case 0:
2270
2271
  obj = {};
2271
2272
  handle = function (exportColumn) { return __awaiter(_this, void 0, void 0, function () {
2272
- var _q, _r, column, exportedColumn, transform, _x, _y, date, transformDate, date, transformDate, date, transformDate, _z, _0;
2273
- return __generator(this, function (_1) {
2274
- switch (_1.label) {
2273
+ var _r, _s, column, exportedColumn, transform, _y, _z, date, transformDate, date, transformDate, date, transformDate, _0, _1;
2274
+ return __generator(this, function (_2) {
2275
+ switch (_2.label) {
2275
2276
  case 0:
2276
2277
  obj[exportColumn.field] = item[exportColumn.field];
2277
2278
  column = allColumns.find(function (e) { return e.field === exportColumn.field; });
@@ -2293,15 +2294,15 @@
2293
2294
  if (!column.transform) return [3 /*break*/, 4];
2294
2295
  transform = column.transform(item[column.field], item);
2295
2296
  if (!(transform instanceof Promise)) return [3 /*break*/, 2];
2296
- _x = obj;
2297
- _y = column.field;
2297
+ _y = obj;
2298
+ _z = column.field;
2298
2299
  return [4 /*yield*/, transform];
2299
2300
  case 1:
2300
- _x[_y] = _1.sent();
2301
+ _y[_z] = _2.sent();
2301
2302
  return [3 /*break*/, 3];
2302
2303
  case 2:
2303
2304
  obj[column.field] = transform;
2304
- _1.label = 3;
2305
+ _2.label = 3;
2305
2306
  case 3: return [3 /*break*/, 13];
2306
2307
  case 4:
2307
2308
  if (!(item[column.field] === undefined || item[column.field] === null || item[column.field] === '')) return [3 /*break*/, 5];
@@ -2316,10 +2317,10 @@
2316
2317
  if (!(column.type === 'bool')) return [3 /*break*/, 7];
2317
2318
  // Nếu là bool thì gán bằng giá trị trueValue và falseValue (nếu có), mặc định là TRUE/FALSE
2318
2319
  if (item[column.field]) {
2319
- obj[column.field] = ((_q = column.option) === null || _q === void 0 ? void 0 : _q.displayOnTrue) || 'True';
2320
+ obj[column.field] = ((_r = column.option) === null || _r === void 0 ? void 0 : _r.displayOnTrue) || 'True';
2320
2321
  }
2321
2322
  else if (obj[column.field] !== undefined && obj[column.field] !== null) {
2322
- obj[column.field] = ((_r = column.option) === null || _r === void 0 ? void 0 : _r.displayOnFalse) || 'False';
2323
+ obj[column.field] = ((_s = column.option) === null || _s === void 0 ? void 0 : _s.displayOnFalse) || 'False';
2323
2324
  }
2324
2325
  return [3 /*break*/, 13];
2325
2326
  case 7:
@@ -2355,43 +2356,43 @@
2355
2356
  case 10:
2356
2357
  if (!(column.type === 'values')) return [3 /*break*/, 12];
2357
2358
  // Nếu là values thì lấy giá trị của value được chọn
2358
- _z = obj;
2359
- _0 = column.field;
2359
+ _0 = obj;
2360
+ _1 = column.field;
2360
2361
  return [4 /*yield*/, this.columnValuesPipe.transform(item[column.field], column)];
2361
2362
  case 11:
2362
2363
  // Nếu là values thì lấy giá trị của value được chọn
2363
- _z[_0] = _1.sent();
2364
+ _0[_1] = _2.sent();
2364
2365
  return [3 /*break*/, 13];
2365
2366
  case 12:
2366
2367
  obj[column.field] = item[column.field];
2367
- _1.label = 13;
2368
+ _2.label = 13;
2368
2369
  case 13: return [2 /*return*/];
2369
2370
  }
2370
2371
  });
2371
2372
  }); };
2372
- _y.label = 1;
2373
+ _z.label = 1;
2373
2374
  case 1:
2374
- _y.trys.push([1, 6, 7, 8]);
2375
+ _z.trys.push([1, 6, 7, 8]);
2375
2376
  columns_3 = (e_7 = void 0, __values(columns_2)), columns_3_1 = columns_3.next();
2376
- _y.label = 2;
2377
+ _z.label = 2;
2377
2378
  case 2:
2378
2379
  if (!!columns_3_1.done) return [3 /*break*/, 5];
2379
2380
  exportColumn = columns_3_1.value;
2380
2381
  return [4 /*yield*/, handle(exportColumn)];
2381
2382
  case 3:
2382
- _y.sent();
2383
- _y.label = 4;
2383
+ _z.sent();
2384
+ _z.label = 4;
2384
2385
  case 4:
2385
2386
  columns_3_1 = columns_3.next();
2386
2387
  return [3 /*break*/, 2];
2387
2388
  case 5: return [3 /*break*/, 8];
2388
2389
  case 6:
2389
- e_7_1 = _y.sent();
2390
+ e_7_1 = _z.sent();
2390
2391
  e_7 = { error: e_7_1 };
2391
2392
  return [3 /*break*/, 8];
2392
2393
  case 7:
2393
2394
  try {
2394
- if (columns_3_1 && !columns_3_1.done && (_x = columns_3.return)) _x.call(columns_3);
2395
+ if (columns_3_1 && !columns_3_1.done && (_y = columns_3.return)) _y.call(columns_3);
2395
2396
  }
2396
2397
  finally { if (e_7) throw e_7.error; }
2397
2398
  return [7 /*endfinally*/];
@@ -2401,29 +2402,29 @@
2401
2402
  }
2402
2403
  });
2403
2404
  };
2404
- _y.label = 5;
2405
+ _z.label = 5;
2405
2406
  case 5:
2406
- _y.trys.push([5, 10, 11, 12]);
2407
+ _z.trys.push([5, 10, 11, 12]);
2407
2408
  exportItems_1 = (e_6 = void 0, __values(exportItems)), exportItems_1_1 = exportItems_1.next();
2408
- _y.label = 6;
2409
+ _z.label = 6;
2409
2410
  case 6:
2410
2411
  if (!!exportItems_1_1.done) return [3 /*break*/, 9];
2411
2412
  item = exportItems_1_1.value;
2412
2413
  return [5 /*yield**/, _loop_2(item)];
2413
2414
  case 7:
2414
- _y.sent();
2415
- _y.label = 8;
2415
+ _z.sent();
2416
+ _z.label = 8;
2416
2417
  case 8:
2417
2418
  exportItems_1_1 = exportItems_1.next();
2418
2419
  return [3 /*break*/, 6];
2419
2420
  case 9: return [3 /*break*/, 12];
2420
2421
  case 10:
2421
- e_6_1 = _y.sent();
2422
+ e_6_1 = _z.sent();
2422
2423
  e_6 = { error: e_6_1 };
2423
2424
  return [3 /*break*/, 12];
2424
2425
  case 11:
2425
2426
  try {
2426
- if (exportItems_1_1 && !exportItems_1_1.done && (_x = exportItems_1.return)) _x.call(exportItems_1);
2427
+ if (exportItems_1_1 && !exportItems_1_1.done && (_y = exportItems_1.return)) _y.call(exportItems_1);
2427
2428
  }
2428
2429
  finally { if (e_6) throw e_6.error; }
2429
2430
  return [7 /*endfinally*/];
@@ -2434,12 +2435,12 @@
2434
2435
  });
2435
2436
  };
2436
2437
  this_1 = this;
2437
- _3.label = 1;
2438
+ _4.label = 1;
2438
2439
  case 1:
2439
2440
  if (!(pageNumber * pageSize < total)) return [3 /*break*/, 3];
2440
2441
  return [5 /*yield**/, _loop_1()];
2441
2442
  case 2:
2442
- _3.sent();
2443
+ _4.sent();
2443
2444
  return [3 /*break*/, 1];
2444
2445
  case 3:
2445
2446
  if (!!(file === null || file === void 0 ? void 0 : file.filePath)) return [3 /*break*/, 16];
@@ -2447,22 +2448,22 @@
2447
2448
  return [4 /*yield*/, this.exportService.exportCSV({
2448
2449
  columns: columns_2,
2449
2450
  items: items,
2450
- fileName: (_k = (_j = this.gridOption) === null || _j === void 0 ? void 0 : _j.export) === null || _k === void 0 ? void 0 : _k.fileName
2451
+ fileName: (_l = (_k = this.gridOption) === null || _k === void 0 ? void 0 : _k.export) === null || _l === void 0 ? void 0 : _l.fileName
2451
2452
  })];
2452
2453
  case 4:
2453
- _3.sent();
2454
+ _4.sent();
2454
2455
  return [2 /*return*/];
2455
2456
  case 5:
2456
2457
  sheets = [];
2457
- if (!Array.isArray((_m = (_l = this.gridOption) === null || _l === void 0 ? void 0 : _l.export) === null || _m === void 0 ? void 0 : _m.sheets)) return [3 /*break*/, 14];
2458
- _3.label = 6;
2458
+ if (!Array.isArray((_o = (_m = this.gridOption) === null || _m === void 0 ? void 0 : _m.export) === null || _o === void 0 ? void 0 : _o.sheets)) return [3 /*break*/, 14];
2459
+ _4.label = 6;
2459
2460
  case 6:
2460
- _3.trys.push([6, 12, 13, 14]);
2461
- _x = __values(this.gridOption.export.sheets), _y = _x.next();
2462
- _3.label = 7;
2461
+ _4.trys.push([6, 12, 13, 14]);
2462
+ _y = __values(this.gridOption.export.sheets), _z = _y.next();
2463
+ _4.label = 7;
2463
2464
  case 7:
2464
- if (!!_y.done) return [3 /*break*/, 11];
2465
- sheet = _y.value;
2465
+ if (!!_z.done) return [3 /*break*/, 11];
2466
+ sheet = _z.value;
2466
2467
  if (!(sheet.name && sheet.items && sheet.fields)) return [3 /*break*/, 10];
2467
2468
  if (!Array.isArray(sheet.items)) return [3 /*break*/, 8];
2468
2469
  sheets.push({
@@ -2472,38 +2473,38 @@
2472
2473
  });
2473
2474
  return [3 /*break*/, 10];
2474
2475
  case 8:
2475
- _0 = (_z = sheets).push;
2476
- _1 = {
2476
+ _1 = (_0 = sheets).push;
2477
+ _2 = {
2477
2478
  name: sheet.name
2478
2479
  };
2479
2480
  return [4 /*yield*/, sheet.items()];
2480
2481
  case 9:
2481
- _0.apply(_z, [(_1.items = _3.sent(),
2482
- _1.fields = sheet.fields,
2483
- _1)]);
2484
- _3.label = 10;
2482
+ _1.apply(_0, [(_2.items = _4.sent(),
2483
+ _2.fields = sheet.fields,
2484
+ _2)]);
2485
+ _4.label = 10;
2485
2486
  case 10:
2486
- _y = _x.next();
2487
+ _z = _y.next();
2487
2488
  return [3 /*break*/, 7];
2488
2489
  case 11: return [3 /*break*/, 14];
2489
2490
  case 12:
2490
- e_5_1 = _3.sent();
2491
+ e_5_1 = _4.sent();
2491
2492
  e_5 = { error: e_5_1 };
2492
2493
  return [3 /*break*/, 14];
2493
2494
  case 13:
2494
2495
  try {
2495
- if (_y && !_y.done && (_2 = _x.return)) _2.call(_x);
2496
+ if (_z && !_z.done && (_3 = _y.return)) _3.call(_y);
2496
2497
  }
2497
2498
  finally { if (e_5) throw e_5.error; }
2498
2499
  return [7 /*endfinally*/];
2499
2500
  case 14: return [4 /*yield*/, this.exportService.export({
2500
2501
  columns: columns_2,
2501
2502
  items: items,
2502
- fileName: (_p = (_o = this.gridOption) === null || _o === void 0 ? void 0 : _o.export) === null || _p === void 0 ? void 0 : _p.fileName,
2503
+ fileName: (_q = (_p = this.gridOption) === null || _p === void 0 ? void 0 : _p.export) === null || _q === void 0 ? void 0 : _q.fileName,
2503
2504
  sheets: sheets
2504
2505
  })];
2505
2506
  case 15:
2506
- _3.sent();
2507
+ _4.sent();
2507
2508
  return [2 /*return*/];
2508
2509
  case 16: return [4 /*yield*/, this.exportService.exportByTemplate({
2509
2510
  filePath: file.filePath,
@@ -2512,7 +2513,7 @@
2512
2513
  items: items
2513
2514
  })];
2514
2515
  case 17:
2515
- _3.sent();
2516
+ _4.sent();
2516
2517
  return [3 /*break*/, 19];
2517
2518
  case 18:
2518
2519
  this.isExporting = false;
@@ -2526,7 +2527,7 @@
2526
2527
  this.onExport = function (args) { return __awaiter(_this, void 0, void 0, function () {
2527
2528
  var translate;
2528
2529
  var _this = this;
2529
- return __generator(this, function (_x) {
2530
+ return __generator(this, function (_y) {
2530
2531
  translate = this.translateService.translate;
2531
2532
  if (!args.isCSV && this.gridOption.export.max && this.total > this.gridOption.export.max) {
2532
2533
  this.notifyService.confirm(translate("Total rows reach limit, do you want to export CSV")).then(function () {
@@ -2544,9 +2545,9 @@
2544
2545
  _this.reload(false);
2545
2546
  };
2546
2547
  this.onExpand = function (rowData) { return __awaiter(_this, void 0, void 0, function () {
2547
- var _s, _t, _u, _v, _w, data;
2548
- return __generator(this, function (_x) {
2549
- if ((_s = this.gridOption.subInformation) === null || _s === void 0 ? void 0 : _s.always) {
2548
+ var _t, _u, _v, _w, _x, data;
2549
+ return __generator(this, function (_y) {
2550
+ if ((_t = this.gridOption.subInformation) === null || _t === void 0 ? void 0 : _t.always) {
2550
2551
  return [2 /*return*/];
2551
2552
  }
2552
2553
  if (rowData.isExpanding) {
@@ -2556,8 +2557,8 @@
2556
2557
  rowData.isExpanded = false;
2557
2558
  return [2 /*return*/];
2558
2559
  }
2559
- data = (_v = (_u = (_t = this.gridOption) === null || _t === void 0 ? void 0 : _t.subInformation) === null || _u === void 0 ? void 0 : _u.onExpand) === null || _v === void 0 ? void 0 : _v.call(_u, rowData);
2560
- if (!((_w = this.gridOption.subInformation) === null || _w === void 0 ? void 0 : _w.multiple)) {
2560
+ data = (_w = (_v = (_u = this.gridOption) === null || _u === void 0 ? void 0 : _u.subInformation) === null || _v === void 0 ? void 0 : _v.onExpand) === null || _w === void 0 ? void 0 : _w.call(_v, rowData);
2561
+ if (!((_x = this.gridOption.subInformation) === null || _x === void 0 ? void 0 : _x.multiple)) {
2561
2562
  this.items.forEach(function (item) { return item.isExpanding = item.isExpanded = false; });
2562
2563
  }
2563
2564
  if (data instanceof Promise) {
@@ -2630,7 +2631,7 @@
2630
2631
  };
2631
2632
  this.onCreate = function () {
2632
2633
  var _a, _b;
2633
- var _x = _this.gridOption, type = _x.type, editor = _x.editor, columns = _x.columns;
2634
+ var _y = _this.gridOption, type = _y.type, editor = _y.editor, columns = _y.columns;
2634
2635
  if (!(editor === null || editor === void 0 ? void 0 : editor.addable)) {
2635
2636
  return;
2636
2637
  }
@@ -2686,23 +2687,23 @@
2686
2687
  };
2687
2688
  this.onSave = function (item) { return __awaiter(_this, void 0, void 0, function () {
2688
2689
  var editor, result, message, result, err_1;
2689
- return __generator(this, function (_x) {
2690
- switch (_x.label) {
2690
+ return __generator(this, function (_y) {
2691
+ switch (_y.label) {
2691
2692
  case 0:
2692
2693
  if (item.editorHandlerRow.saving) {
2693
2694
  return [2 /*return*/];
2694
2695
  }
2695
2696
  editor = this.gridOption.editor;
2696
- _x.label = 1;
2697
+ _y.label = 1;
2697
2698
  case 1:
2698
- _x.trys.push([1, 7, 8, 9]);
2699
+ _y.trys.push([1, 7, 8, 9]);
2699
2700
  item.editorHandlerRow.saving = true;
2700
2701
  if (!editor.validate) return [3 /*break*/, 4];
2701
2702
  result = editor.validate(item, this.items.indexOf(item));
2702
2703
  if (!(result instanceof Promise)) return [3 /*break*/, 3];
2703
2704
  return [4 /*yield*/, result];
2704
2705
  case 2:
2705
- message = _x.sent();
2706
+ message = _y.sent();
2706
2707
  if (message) {
2707
2708
  throw message;
2708
2709
  }
@@ -2711,15 +2712,15 @@
2711
2712
  if (result) {
2712
2713
  throw result;
2713
2714
  }
2714
- _x.label = 4;
2715
+ _y.label = 4;
2715
2716
  case 4:
2716
2717
  if (!editor.onSave) return [3 /*break*/, 6];
2717
2718
  result = editor.onSave(item);
2718
2719
  if (!(result instanceof Promise)) return [3 /*break*/, 6];
2719
2720
  return [4 /*yield*/, result];
2720
2721
  case 5:
2721
- _x.sent();
2722
- _x.label = 6;
2722
+ _y.sent();
2723
+ _y.label = 6;
2723
2724
  case 6:
2724
2725
  if (item.editorStatus === 'create' && editor.type === 'popup') {
2725
2726
  if (this.gridOption.type === 'local') {
@@ -2730,7 +2731,7 @@
2730
2731
  item.editorStatus = undefined;
2731
2732
  return [3 /*break*/, 9];
2732
2733
  case 7:
2733
- err_1 = _x.sent();
2734
+ err_1 = _y.sent();
2734
2735
  this.notifyService.notify.warning(err_1);
2735
2736
  return [3 /*break*/, 9];
2736
2737
  case 8:
@@ -2967,6 +2968,7 @@
2967
2968
  { type: SdEditorHandlerColumnPipe }
2968
2969
  ]; };
2969
2970
  SdGridMaterial.propDecorators = {
2971
+ sdScroll: [{ type: core.ViewChild, args: [common.SdScrollDirective,] }],
2970
2972
  quickAction: [{ type: core.ViewChild, args: [quickAction.SdQuickAction,] }],
2971
2973
  _gridFilter: [{ type: core.ViewChild, args: [SdGridFilter,] }],
2972
2974
  option: [{ type: core.Input }],
@@ -3431,7 +3433,7 @@
3431
3433
  SdDesktopCommand.decorators = [
3432
3434
  { type: core.Component, args: [{
3433
3435
  selector: 'sd-desktop-command',
3434
- template: "<ng-container *ngIf=\"item | commandFilter:commands | async; $implicit as filteredCommands\">\r\n <ng-container *ngFor=\"let command of filteredCommands\">\r\n <ng-container *ngIf=\"command?.click; else elseChildren\">\r\n <button (click)=\"command.click(item)\" [matTooltip]=\"command.title | commandTitle:item\" aria-hidden=\"true\"\r\n [disabled]=\"item | commandDisable:command\" mat-icon-button>\r\n <mat-icon class=\"c-icon\" [fontSet]=\"command.fontSet\">{{command | commandIcon:item}}</mat-icon>\r\n </button>\r\n </ng-container>\r\n <ng-template #elseChildren>\r\n <button [matMenuTriggerFor]=\"menu\" aria-hidden=\"true\" mat-icon-button>\r\n <mat-icon *ngIf=\"command?.icon\" class=\"c-icon\" [fontSet]=\"command.fontSet\">{{command | commandIcon:item}}\r\n </mat-icon>\r\n <mat-icon *ngIf=\"!command?.icon\" class=\"c-icon\">more_vert</mat-icon>\r\n </button>\r\n <mat-menu #menu=\"matMenu\">\r\n <span>\r\n <button *ngFor=\"let childCommand of command.children\" mat-menu-item (click)=\"childCommand.click(item)\"\r\n [disabled]=\"item | commandDisable:childCommand\">\r\n <ng-container *ngIf=\"!childCommand.htmlTemplate\">\r\n <mat-icon [fontSet]=\"command.fontSet\" class=\"c-icon\">{{childCommand | commandIcon:item}}\r\n </mat-icon>\r\n <span> {{childCommand | commandTitle:item}}</span>\r\n </ng-container>\r\n <ng-container *ngIf=\"childCommand.htmlTemplate\">\r\n <div [innerHTML]=\"childCommand.htmlTemplate(item)\"></div>\r\n </ng-container>\r\n </button>\r\n </span>\r\n </mat-menu>\r\n </ng-template>\r\n </ng-container>\r\n</ng-container>\r\n",
3436
+ template: "<ng-container *ngIf=\"item | commandFilter:commands | async; $implicit as filteredCommands\">\r\n <ng-container *ngFor=\"let command of filteredCommands\">\r\n <ng-container *ngIf=\"command?.click; else elseChildren\">\r\n <button (click)=\"command.click(item)\" [matTooltip]=\"command | commandTitle:item\" aria-hidden=\"true\"\r\n [disabled]=\"item | commandDisable:command\" mat-icon-button>\r\n <mat-icon class=\"c-icon\" [fontSet]=\"command.fontSet\">{{command | commandIcon:item}}</mat-icon>\r\n </button>\r\n </ng-container>\r\n <ng-template #elseChildren>\r\n <button [matMenuTriggerFor]=\"menu\" aria-hidden=\"true\" mat-icon-button>\r\n <mat-icon *ngIf=\"command?.icon\" class=\"c-icon\" [fontSet]=\"command.fontSet\">{{command | commandIcon:item}}\r\n </mat-icon>\r\n <mat-icon *ngIf=\"!command?.icon\" class=\"c-icon\">more_vert</mat-icon>\r\n </button>\r\n <mat-menu #menu=\"matMenu\">\r\n <span>\r\n <button *ngFor=\"let childCommand of command.children\" mat-menu-item (click)=\"childCommand.click(item)\"\r\n [disabled]=\"item | commandDisable:childCommand\">\r\n <ng-container *ngIf=\"!childCommand.htmlTemplate\">\r\n <mat-icon [fontSet]=\"command.fontSet\" class=\"c-icon\">{{childCommand | commandIcon:item}}\r\n </mat-icon>\r\n <span> {{childCommand | commandTitle:item}}</span>\r\n </ng-container>\r\n <ng-container *ngIf=\"childCommand.htmlTemplate\">\r\n <div [innerHTML]=\"childCommand.htmlTemplate(item)\"></div>\r\n </ng-container>\r\n </button>\r\n </span>\r\n </mat-menu>\r\n </ng-template>\r\n </ng-container>\r\n</ng-container>\r\n",
3435
3437
  changeDetection: core.ChangeDetectionStrategy.OnPush,
3436
3438
  styles: [":host{align-items:center;display:flex}mat-icon.c-icon{color:rgba(0,0,0,.54)!important}"]
3437
3439
  },] }
@@ -4783,7 +4785,7 @@
4783
4785
  SdGridMaterialModule.decorators = [
4784
4786
  { type: core.NgModule, args: [{
4785
4787
  imports: [
4786
- common.CommonModule,
4788
+ common$1.CommonModule,
4787
4789
  forms.FormsModule,
4788
4790
  forms.ReactiveFormsModule,
4789
4791
  input.MatInputModule,
@@ -4808,7 +4810,7 @@
4808
4810
  service.SdServiceModule,
4809
4811
  slider.MatSliderModule,
4810
4812
  scrolling.ScrollingModule,
4811
- common$1.SdCommonModule
4813
+ common.SdCommonModule
4812
4814
  ],
4813
4815
  declarations: [
4814
4816
  SdGridQuickAction,
@@ -4865,8 +4867,8 @@
4865
4867
  SdMaterialSubInformationDefDirective
4866
4868
  ],
4867
4869
  providers: [
4868
- common.DatePipe,
4869
- common.DecimalPipe,
4870
+ common$1.DatePipe,
4871
+ common$1.DecimalPipe,
4870
4872
  table$1.CdkColumnDef,
4871
4873
  SdGridFilterService,
4872
4874
  SdGridConfigurationService,