@sd-angular/core 1.2.75 → 1.2.78

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 (555) hide show
  1. package/assets/img/file-types/eps/001-file.eps +143 -143
  2. package/assets/img/file-types/eps/002-file-1.eps +136 -136
  3. package/assets/img/file-types/eps/003-file-2.eps +130 -130
  4. package/assets/img/file-types/eps/004-file-3.eps +127 -127
  5. package/assets/img/file-types/eps/005-file-4.eps +120 -120
  6. package/assets/img/file-types/eps/006-file-5.eps +133 -133
  7. package/assets/img/file-types/eps/007-file-6.eps +133 -133
  8. package/assets/img/file-types/eps/008-file-7.eps +144 -144
  9. package/assets/img/file-types/eps/009-file-8.eps +150 -150
  10. package/assets/img/file-types/eps/010-file-9.eps +155 -155
  11. package/assets/img/file-types/eps/011-file-10.eps +124 -124
  12. package/assets/img/file-types/eps/012-file-11.eps +147 -147
  13. package/assets/img/file-types/eps/013-file-12.eps +125 -125
  14. package/assets/img/file-types/eps/014-file-13.eps +129 -129
  15. package/assets/img/file-types/eps/015-file-14.eps +143 -143
  16. package/assets/img/file-types/eps/016-file-15.eps +130 -130
  17. package/assets/img/file-types/eps/017-file-16.eps +197 -197
  18. package/assets/img/file-types/eps/018-file-17.eps +146 -146
  19. package/assets/img/file-types/eps/019-file-18.eps +131 -131
  20. package/assets/img/file-types/eps/020-file-19.eps +137 -137
  21. package/assets/img/file-types/eps/021-file-20.eps +134 -134
  22. package/assets/img/file-types/eps/022-file-21.eps +130 -130
  23. package/assets/img/file-types/eps/023-file-22.eps +161 -161
  24. package/assets/img/file-types/eps/024-file-23.eps +144 -144
  25. package/assets/img/file-types/eps/025-file-24.eps +164 -164
  26. package/assets/img/file-types/eps/026-file-25.eps +135 -135
  27. package/assets/img/file-types/eps/027-file-26.eps +124 -124
  28. package/assets/img/file-types/eps/028-file-27.eps +120 -120
  29. package/assets/img/file-types/eps/029-file-28.eps +141 -141
  30. package/assets/img/file-types/eps/030-file-29.eps +130 -130
  31. package/assets/img/file-types/eps/031-file-30.eps +157 -157
  32. package/assets/img/file-types/eps/032-file-31.eps +139 -139
  33. package/assets/img/file-types/eps/033-file-32.eps +139 -139
  34. package/assets/img/file-types/eps/034-file-33.eps +189 -189
  35. package/assets/img/file-types/eps/035-file-34.eps +162 -162
  36. package/assets/img/file-types/eps/036-file-35.eps +142 -142
  37. package/assets/img/file-types/eps/037-file-36.eps +123 -123
  38. package/assets/img/file-types/eps/038-file-37.eps +127 -127
  39. package/assets/img/file-types/eps/039-file-38.eps +146 -146
  40. package/assets/img/file-types/eps/040-file-39.eps +126 -126
  41. package/assets/img/file-types/eps/041-file-40.eps +117 -117
  42. package/assets/img/file-types/eps/042-file-41.eps +156 -156
  43. package/assets/img/file-types/eps/043-file-42.eps +118 -118
  44. package/assets/img/file-types/eps/044-file-43.eps +172 -172
  45. package/assets/img/file-types/eps/045-file-44.eps +201 -201
  46. package/assets/img/file-types/eps/046-file-45.eps +94 -94
  47. package/assets/img/file-types/eps/047-file-46.eps +176 -176
  48. package/assets/img/file-types/eps/048-file-47.eps +238 -238
  49. package/assets/img/file-types/eps/049-file-48.eps +187 -187
  50. package/assets/img/file-types/eps/050-file-49.eps +137 -137
  51. package/bundles/sd-angular-core-api.umd.js +1 -1
  52. package/bundles/sd-angular-core-api.umd.js.map +1 -1
  53. package/bundles/sd-angular-core-api.umd.min.js +1 -1
  54. package/bundles/sd-angular-core-api.umd.min.js.map +1 -1
  55. package/bundles/sd-angular-core-date-time.umd.js +1 -1
  56. package/bundles/sd-angular-core-date-time.umd.js.map +1 -1
  57. package/bundles/sd-angular-core-date-time.umd.min.js +1 -1
  58. package/bundles/sd-angular-core-date-time.umd.min.js.map +1 -1
  59. package/bundles/sd-angular-core-export.umd.js +14 -9
  60. package/bundles/sd-angular-core-export.umd.js.map +1 -1
  61. package/bundles/sd-angular-core-export.umd.min.js +1 -1
  62. package/bundles/sd-angular-core-export.umd.min.js.map +1 -1
  63. package/bundles/sd-angular-core-grid-material.umd.js +89 -101
  64. package/bundles/sd-angular-core-grid-material.umd.js.map +1 -1
  65. package/bundles/sd-angular-core-grid-material.umd.min.js +2 -2
  66. package/bundles/sd-angular-core-grid-material.umd.min.js.map +1 -1
  67. package/bundles/sd-angular-core-upload-excel.umd.js +7 -8
  68. package/bundles/sd-angular-core-upload-excel.umd.js.map +1 -1
  69. package/bundles/sd-angular-core-upload-excel.umd.min.js +1 -1
  70. package/bundles/sd-angular-core-upload-excel.umd.min.js.map +1 -1
  71. package/date-time/src/lib/date-time.component.d.ts +1 -1
  72. package/esm2015/api/index.js +1 -1
  73. package/esm2015/api/sd-angular-core-api.js +1 -1
  74. package/esm2015/api/src/lib/api.model.js +1 -1
  75. package/esm2015/api/src/lib/api.module.js +1 -1
  76. package/esm2015/api/src/lib/api.service.js +2 -2
  77. package/esm2015/api/src/lib/http.interceptor.js +1 -1
  78. package/esm2015/api/src/lib/http.service.js +1 -1
  79. package/esm2015/api/src/lib/token.service.js +1 -1
  80. package/esm2015/api/src/public-api.js +1 -1
  81. package/esm2015/autocomplete/index.js +1 -1
  82. package/esm2015/autocomplete/sd-angular-core-autocomplete.js +1 -1
  83. package/esm2015/autocomplete/src/lib/autocomplete-display-def.directive.js +1 -1
  84. package/esm2015/autocomplete/src/lib/autocomplete.component.js +1 -1
  85. package/esm2015/autocomplete/src/lib/autocomplete.module.js +1 -1
  86. package/esm2015/autocomplete/src/public-api.js +1 -1
  87. package/esm2015/badge/index.js +1 -1
  88. package/esm2015/badge/sd-angular-core-badge.js +1 -1
  89. package/esm2015/badge/src/lib/badge.component.js +1 -1
  90. package/esm2015/badge/src/lib/badge.module.js +1 -1
  91. package/esm2015/badge/src/public-api.js +1 -1
  92. package/esm2015/button/index.js +1 -1
  93. package/esm2015/button/sd-angular-core-button.js +1 -1
  94. package/esm2015/button/src/lib/button.component.js +1 -1
  95. package/esm2015/button/src/lib/button.module.js +1 -1
  96. package/esm2015/button/src/public-api.js +1 -1
  97. package/esm2015/cache/index.js +1 -1
  98. package/esm2015/cache/sd-angular-core-cache.js +1 -1
  99. package/esm2015/cache/src/lib/cache.model.js +1 -1
  100. package/esm2015/cache/src/lib/cache.service.js +1 -1
  101. package/esm2015/cache/src/public-api.js +1 -1
  102. package/esm2015/chart/index.js +1 -1
  103. package/esm2015/chart/sd-angular-core-chart.js +1 -1
  104. package/esm2015/chart/src/lib/chart.component.js +1 -1
  105. package/esm2015/chart/src/lib/chart.model.js +1 -1
  106. package/esm2015/chart/src/lib/chart.module.js +1 -1
  107. package/esm2015/chart/src/public-api.js +1 -1
  108. package/esm2015/checkbox/index.js +1 -1
  109. package/esm2015/checkbox/sd-angular-core-checkbox.js +1 -1
  110. package/esm2015/checkbox/src/lib/checkbox.component.js +1 -1
  111. package/esm2015/checkbox/src/lib/checkbox.module.js +1 -1
  112. package/esm2015/checkbox/src/public-api.js +1 -1
  113. package/esm2015/chip/index.js +1 -1
  114. package/esm2015/chip/sd-angular-core-chip.js +1 -1
  115. package/esm2015/chip/src/lib/chip.component.js +1 -1
  116. package/esm2015/chip/src/lib/chip.model.js +1 -1
  117. package/esm2015/chip/src/lib/chip.module.js +1 -1
  118. package/esm2015/chip/src/lib/directives/sd-chip-display-def.directive.js +1 -1
  119. package/esm2015/chip/src/lib/pipes/removable-chip.pipe.js +1 -1
  120. package/esm2015/chip/src/public-api.js +1 -1
  121. package/esm2015/comment/index.js +1 -1
  122. package/esm2015/comment/sd-angular-core-comment.js +1 -1
  123. package/esm2015/comment/src/lib/comment.component.js +1 -1
  124. package/esm2015/comment/src/lib/comment.model.js +1 -1
  125. package/esm2015/comment/src/lib/comment.module.js +1 -1
  126. package/esm2015/comment/src/public-api.js +1 -1
  127. package/esm2015/common/index.js +1 -1
  128. package/esm2015/common/sd-angular-core-common.js +1 -1
  129. package/esm2015/common/src/lib/common.module.js +1 -1
  130. package/esm2015/common/src/lib/configurations/firebase.configuration.js +1 -1
  131. package/esm2015/common/src/lib/configurations/form.configuration.js +1 -1
  132. package/esm2015/common/src/lib/directives/sd-lable.directive.js +1 -1
  133. package/esm2015/common/src/lib/directives/sd-let.directive.js +1 -1
  134. package/esm2015/common/src/lib/directives/sd-scroll.directive.js +1 -1
  135. package/esm2015/common/src/lib/directives/sd-suffix.directive.js +1 -1
  136. package/esm2015/common/src/lib/directives/view-def.directive.js +1 -1
  137. package/esm2015/common/src/lib/models/sd-form-control.js +1 -1
  138. package/esm2015/common/src/lib/services/browser.service.js +1 -1
  139. package/esm2015/common/src/lib/typings/array.extension.js +1 -1
  140. package/esm2015/common/src/lib/typings/date.extension.js +1 -1
  141. package/esm2015/common/src/lib/typings/number.extension.js +1 -1
  142. package/esm2015/common/src/lib/typings/string.extension.js +1 -1
  143. package/esm2015/common/src/public-api.js +1 -1
  144. package/esm2015/confirm/index.js +1 -1
  145. package/esm2015/confirm/sd-angular-core-confirm.js +1 -1
  146. package/esm2015/confirm/src/lib/components/dialog-confirm/dialog-confirm.component.js +1 -1
  147. package/esm2015/confirm/src/lib/confirm.module.js +1 -1
  148. package/esm2015/confirm/src/lib/confirm.service.js +1 -1
  149. package/esm2015/confirm/src/public-api.js +1 -1
  150. package/esm2015/date-month/index.js +1 -1
  151. package/esm2015/date-month/sd-angular-core-date-month.js +1 -1
  152. package/esm2015/date-month/src/lib/date-month.component.js +1 -1
  153. package/esm2015/date-month/src/lib/date-month.module.js +1 -1
  154. package/esm2015/date-month/src/public-api.js +1 -1
  155. package/esm2015/date-range/index.js +1 -1
  156. package/esm2015/date-range/sd-angular-core-date-range.js +1 -1
  157. package/esm2015/date-range/src/lib/date-range.component.js +1 -1
  158. package/esm2015/date-range/src/lib/date-range.module.js +1 -1
  159. package/esm2015/date-range/src/public-api.js +1 -1
  160. package/esm2015/date-time/index.js +1 -1
  161. package/esm2015/date-time/sd-angular-core-date-time.js +1 -1
  162. package/esm2015/date-time/src/lib/date-time.component.js +2 -2
  163. package/esm2015/date-time/src/lib/date-time.module.js +1 -1
  164. package/esm2015/date-time/src/public-api.js +1 -1
  165. package/esm2015/db/index.js +1 -1
  166. package/esm2015/db/sd-angular-core-db.js +1 -1
  167. package/esm2015/db/src/lib/db.model.js +1 -1
  168. package/esm2015/db/src/lib/db.service.js +1 -1
  169. package/esm2015/db/src/public-api.js +1 -1
  170. package/esm2015/dynamic-report/index.js +1 -1
  171. package/esm2015/dynamic-report/sd-angular-core-dynamic-report.js +1 -1
  172. package/esm2015/dynamic-report/src/lib/dynamic-report.component.js +1 -1
  173. package/esm2015/dynamic-report/src/lib/dynamic-report.module.js +1 -1
  174. package/esm2015/dynamic-report/src/public-api.js +1 -1
  175. package/esm2015/editor/index.js +1 -1
  176. package/esm2015/editor/sd-angular-core-editor.js +1 -1
  177. package/esm2015/editor/src/lib/constant.js +1 -1
  178. package/esm2015/editor/src/lib/editor.component.js +1 -1
  179. package/esm2015/editor/src/lib/editor.module.js +1 -1
  180. package/esm2015/editor/src/public-api.js +1 -1
  181. package/esm2015/excel/index.js +1 -1
  182. package/esm2015/excel/sd-angular-core-excel.js +1 -1
  183. package/esm2015/excel/src/lib/excel.model.js +1 -1
  184. package/esm2015/excel/src/lib/excel.service.js +1 -1
  185. package/esm2015/excel/src/public-api.js +1 -1
  186. package/esm2015/export/index.js +1 -1
  187. package/esm2015/export/sd-angular-core-export.js +1 -1
  188. package/esm2015/export/src/lib/export.model.js +3 -2
  189. package/esm2015/export/src/lib/export.service.js +10 -5
  190. package/esm2015/export/src/public-api.js +1 -1
  191. package/esm2015/filter/index.js +1 -1
  192. package/esm2015/filter/sd-angular-core-filter.js +1 -1
  193. package/esm2015/filter/src/lib/directives/sd-filter-def.directive.js +1 -1
  194. package/esm2015/filter/src/lib/filter.component.js +1 -1
  195. package/esm2015/filter/src/lib/filter.model.js +1 -1
  196. package/esm2015/filter/src/lib/filter.module.js +1 -1
  197. package/esm2015/filter/src/lib/filter.service.js +1 -1
  198. package/esm2015/filter/src/lib/pipes/values-local.pipe.js +1 -1
  199. package/esm2015/filter/src/lib/pipes/values-server.pipe.js +1 -1
  200. package/esm2015/filter/src/public-api.js +1 -1
  201. package/esm2015/form/index.js +1 -1
  202. package/esm2015/form/sd-angular-core-form.js +1 -1
  203. package/esm2015/form/src/lib/form.module.js +1 -1
  204. package/esm2015/form/src/public-api.js +1 -1
  205. package/esm2015/grid/index.js +1 -1
  206. package/esm2015/grid/sd-angular-core-grid.js +1 -1
  207. package/esm2015/grid/src/lib/components/grid-config/grid-config.component.js +1 -1
  208. package/esm2015/grid/src/lib/components/grid-config/grid-config.model.js +1 -1
  209. package/esm2015/grid/src/lib/components/grid-desktop-column-children-view/grid-desktop-column-children-view.component.js +1 -1
  210. package/esm2015/grid/src/lib/components/grid-desktop-column-edit/grid-desktop-column-edit.component.js +1 -1
  211. package/esm2015/grid/src/lib/components/grid-desktop-column-view/grid-desktop-column-view.component.js +1 -1
  212. package/esm2015/grid/src/lib/components/grid-desktop-inline-filter/grid-desktop-inline-filter.component.js +1 -1
  213. package/esm2015/grid/src/lib/components/grid-import-excel/grid-import-excel.component.js +1 -1
  214. package/esm2015/grid/src/lib/components/grid-mobile-item-view/grid-mobile-item-view.component.js +1 -1
  215. package/esm2015/grid/src/lib/components/grid-popup-editor/grid-popup-editor.component.js +1 -1
  216. package/esm2015/grid/src/lib/components/grid-popup-export-excel/grid-popup-export-excel.component.js +1 -1
  217. package/esm2015/grid/src/lib/components/grid-popup-export-excel/grid-popup-export-excel.model.js +1 -1
  218. package/esm2015/grid/src/lib/components/grid-popup-filter/grid-popup-filter.component.js +1 -1
  219. package/esm2015/grid/src/lib/components/grid-popup-filter/grid-popup-filter.model.js +1 -1
  220. package/esm2015/grid/src/lib/components/grid-popup-quick-filter-detail/grid-popup-quick-filter-detail.component.js +1 -1
  221. package/esm2015/grid/src/lib/components/grid-sub-information/grid-sub-information.component.js +1 -1
  222. package/esm2015/grid/src/lib/directives/cell-def.directive.js +1 -1
  223. package/esm2015/grid/src/lib/directives/cell-editor-def.directive.js +1 -1
  224. package/esm2015/grid/src/lib/directives/cell-footer-def.directive.js +1 -1
  225. package/esm2015/grid/src/lib/directives/sub-information-header-def.directive.js +1 -1
  226. package/esm2015/grid/src/lib/grid.component.js +1 -1
  227. package/esm2015/grid/src/lib/grid.model.js +1 -1
  228. package/esm2015/grid/src/lib/grid.module.js +1 -1
  229. package/esm2015/grid/src/lib/models/filter-info.model.js +1 -1
  230. package/esm2015/grid/src/lib/models/grid-configuration.model.js +1 -1
  231. package/esm2015/grid/src/lib/models/handler-dotnet.js +1 -1
  232. package/esm2015/grid/src/lib/models/handler-local.js +1 -1
  233. package/esm2015/grid/src/lib/models/handler.js +1 -1
  234. package/esm2015/grid/src/lib/pipes/cell-desktop-class-name.pipe.js +1 -1
  235. package/esm2015/grid/src/lib/pipes/cell-mobile-class-name.pipe.js +1 -1
  236. package/esm2015/grid/src/lib/pipes/column-command-filter.pipe.js +1 -1
  237. package/esm2015/grid/src/lib/pipes/column-html-template.pipe.js +1 -1
  238. package/esm2015/grid/src/lib/pipes/column-title.pipe.js +1 -1
  239. package/esm2015/grid/src/lib/pipes/column-values.pipe.js +1 -1
  240. package/esm2015/grid/src/lib/pipes/command-disabled.pipe.js +1 -1
  241. package/esm2015/grid/src/lib/pipes/command-filter.pipe.js +1 -1
  242. package/esm2015/grid/src/lib/pipes/command-hidden.pipe.js +1 -1
  243. package/esm2015/grid/src/lib/pipes/command-icon.pipe.js +1 -1
  244. package/esm2015/grid/src/lib/pipes/command-title.pipe.js +1 -1
  245. package/esm2015/grid/src/lib/pipes/dynamic-items.pipe.js +1 -1
  246. package/esm2015/grid/src/lib/pipes/editor-dynamic-item.pipe.js +1 -1
  247. package/esm2015/grid/src/lib/pipes/editor-handler.pipe.js +1 -1
  248. package/esm2015/grid/src/lib/pipes/editor-popup-visible.pipe.js +1 -1
  249. package/esm2015/grid/src/lib/pipes/editor-sub-information-handler.pipe.js +1 -1
  250. package/esm2015/grid/src/lib/pipes/editor-validate.pipe.js +1 -1
  251. package/esm2015/grid/src/lib/pipes/filter-mobile.pipe.js +1 -1
  252. package/esm2015/grid/src/lib/pipes/mobile-command-filter.js +1 -1
  253. package/esm2015/grid/src/lib/pipes/mobile-view-html-template.pipe.js +1 -1
  254. package/esm2015/grid/src/lib/pipes/value-transform.pipe.js +1 -1
  255. package/esm2015/grid/src/public-api.js +1 -1
  256. package/esm2015/grid-material/index.js +1 -1
  257. package/esm2015/grid-material/sd-angular-core-grid-material.js +1 -1
  258. package/esm2015/grid-material/src/lib/components/column-inline-filter/column-inline-filter.component.js +1 -1
  259. package/esm2015/grid-material/src/lib/components/desktop-cell/desktop-cell.component.js +1 -1
  260. package/esm2015/grid-material/src/lib/components/desktop-cell-children-view/desktop-cell-children-view.component.js +1 -1
  261. package/esm2015/grid-material/src/lib/components/desktop-cell-editor/desktop-cell-editor.component.js +1 -1
  262. package/esm2015/grid-material/src/lib/components/desktop-cell-view/desktop-cell-view.component.js +1 -1
  263. package/esm2015/grid-material/src/lib/components/desktop-command/desktop-command.component.js +1 -1
  264. package/esm2015/grid-material/src/lib/components/desktop-editor-validation/desktop-editor-validation.component.js +1 -1
  265. package/esm2015/grid-material/src/lib/components/dynamic-column/dynamic-column.component.js +1 -1
  266. package/esm2015/grid-material/src/lib/components/grid-filter/grid-filter.component.js +1 -1
  267. package/esm2015/grid-material/src/lib/components/popup-export/popup-export.component.js +32 -24
  268. package/esm2015/grid-material/src/lib/components/popup-filter/popup-filter.component.js +1 -1
  269. package/esm2015/grid-material/src/lib/components/popup-grid-configuration/popup-grid-configuration.component.js +1 -1
  270. package/esm2015/grid-material/src/lib/components/quick-action/quick-action.component.js +1 -1
  271. package/esm2015/grid-material/src/lib/directives/sd-material-cell-def.directive.js +1 -1
  272. package/esm2015/grid-material/src/lib/directives/sd-material-empty-data-def.directive.js +1 -1
  273. package/esm2015/grid-material/src/lib/directives/sd-material-filter-def.directive.js +1 -1
  274. package/esm2015/grid-material/src/lib/directives/sd-material-footer-def.directive.js +1 -1
  275. package/esm2015/grid-material/src/lib/directives/sd-material-sub-information-def.directive.js +1 -1
  276. package/esm2015/grid-material/src/lib/functions/calculate-sd-id.js +1 -1
  277. package/esm2015/grid-material/src/lib/grid-material.component.js +4 -3
  278. package/esm2015/grid-material/src/lib/grid-material.module.js +1 -1
  279. package/esm2015/grid-material/src/lib/models/grid-action.model.js +1 -1
  280. package/esm2015/grid-material/src/lib/models/grid-cell.model.js +1 -1
  281. package/esm2015/grid-material/src/lib/models/grid-column.model.js +1 -1
  282. package/esm2015/grid-material/src/lib/models/grid-command.model.js +1 -1
  283. package/esm2015/grid-material/src/lib/models/grid-config.model.js +1 -1
  284. package/esm2015/grid-material/src/lib/models/grid-configuration.model.js +1 -1
  285. package/esm2015/grid-material/src/lib/models/grid-editor.model.js +1 -1
  286. package/esm2015/grid-material/src/lib/models/grid-export.model.js +1 -1
  287. package/esm2015/grid-material/src/lib/models/grid-filter.model.js +1 -1
  288. package/esm2015/grid-material/src/lib/models/grid-group.model.js +1 -1
  289. package/esm2015/grid-material/src/lib/models/grid-option.model.js +1 -1
  290. package/esm2015/grid-material/src/lib/models/grid-reload.model.js +1 -1
  291. package/esm2015/grid-material/src/lib/models/grid-selection.model.js +1 -1
  292. package/esm2015/grid-material/src/lib/models/grid-style.model.js +1 -1
  293. package/esm2015/grid-material/src/lib/models/grid-sub-information.model.js +1 -1
  294. package/esm2015/grid-material/src/lib/models/grid.model.js +1 -1
  295. package/esm2015/grid-material/src/lib/pipes/cell-view.pipe.js +1 -1
  296. package/esm2015/grid-material/src/lib/pipes/column-badge.pipe.js +1 -1
  297. package/esm2015/grid-material/src/lib/pipes/column-children-filter.pipe.js +1 -1
  298. package/esm2015/grid-material/src/lib/pipes/column-html-template.pipe.js +1 -1
  299. package/esm2015/grid-material/src/lib/pipes/column-title.pipe.js +1 -1
  300. package/esm2015/grid-material/src/lib/pipes/column-tooltip.pipe.js +1 -1
  301. package/esm2015/grid-material/src/lib/pipes/column-transform.pipe.js +1 -1
  302. package/esm2015/grid-material/src/lib/pipes/column-values.pipe.js +1 -1
  303. package/esm2015/grid-material/src/lib/pipes/command-disable.pipe.js +1 -1
  304. package/esm2015/grid-material/src/lib/pipes/command-filter.pipe.js +1 -1
  305. package/esm2015/grid-material/src/lib/pipes/command-icon.pipe.js +1 -1
  306. package/esm2015/grid-material/src/lib/pipes/command-title.pipe.js +1 -1
  307. package/esm2015/grid-material/src/lib/pipes/editor-handler-column.pipe.js +1 -1
  308. package/esm2015/grid-material/src/lib/pipes/editor-handler-row.pipe.js +1 -1
  309. package/esm2015/grid-material/src/lib/pipes/editor-validate.pipe.js +1 -1
  310. package/esm2015/grid-material/src/lib/pipes/filter-column.pipe.js +1 -1
  311. package/esm2015/grid-material/src/lib/pipes/filter-external.pipe.js +1 -1
  312. package/esm2015/grid-material/src/lib/pipes/grid-configuration-result.pipe.js +1 -1
  313. package/esm2015/grid-material/src/lib/pipes/sd-group.pipe.js +1 -1
  314. package/esm2015/grid-material/src/lib/pipes/selection-action-filter.pipe.js +1 -1
  315. package/esm2015/grid-material/src/lib/pipes/selection-disable.pipe.js +1 -1
  316. package/esm2015/grid-material/src/lib/pipes/selection-visible-select-all.pipe.js +1 -1
  317. package/esm2015/grid-material/src/lib/pipes/selection-visible.pipe.js +1 -1
  318. package/esm2015/grid-material/src/lib/pipes/style-row-css.pipe.js +1 -1
  319. package/esm2015/grid-material/src/lib/services/generated-column/generated-column.model.js +1 -1
  320. package/esm2015/grid-material/src/lib/services/generated-column/generated-column.service.js +1 -1
  321. package/esm2015/grid-material/src/lib/services/grid-configuration.service.js +1 -1
  322. package/esm2015/grid-material/src/lib/services/grid-filter.service.js +1 -1
  323. package/esm2015/grid-material/src/public-api.js +1 -1
  324. package/esm2015/group/index.js +1 -1
  325. package/esm2015/group/sd-angular-core-group.js +1 -1
  326. package/esm2015/group/src/lib/group.component.js +1 -1
  327. package/esm2015/group/src/lib/group.module.js +1 -1
  328. package/esm2015/group/src/public-api.js +1 -1
  329. package/esm2015/header-title/index.js +1 -1
  330. package/esm2015/header-title/sd-angular-core-header-title.js +1 -1
  331. package/esm2015/header-title/src/lib/header-title.component.js +1 -1
  332. package/esm2015/header-title/src/lib/header-title.module.js +1 -1
  333. package/esm2015/header-title/src/public-api.js +1 -1
  334. package/esm2015/image-preview/index.js +1 -1
  335. package/esm2015/image-preview/sd-angular-core-image-preview.js +1 -1
  336. package/esm2015/image-preview/src/lib/directives/image-preview.directive.js +1 -1
  337. package/esm2015/image-preview/src/lib/image-preview/image-preview.component.js +1 -1
  338. package/esm2015/image-preview/src/lib/image-preview/image-preview.module.js +1 -1
  339. package/esm2015/image-preview/src/lib/models/image-preview.model.js +1 -1
  340. package/esm2015/image-preview/src/public-api.js +1 -1
  341. package/esm2015/input/index.js +1 -1
  342. package/esm2015/input/sd-angular-core-input.js +1 -1
  343. package/esm2015/input/src/lib/directives/input-suffix.directive.js +1 -1
  344. package/esm2015/input/src/lib/directives/touch.directive.js +1 -1
  345. package/esm2015/input/src/lib/input-tooltip.pipe.js +1 -1
  346. package/esm2015/input/src/lib/input.component.js +1 -1
  347. package/esm2015/input/src/lib/input.module.js +1 -1
  348. package/esm2015/input/src/public-api.js +1 -1
  349. package/esm2015/input-currency/index.js +1 -1
  350. package/esm2015/input-currency/sd-angular-core-input-currency.js +1 -1
  351. package/esm2015/input-currency/src/lib/input-currency-tooltip.pipe.js +1 -1
  352. package/esm2015/input-currency/src/lib/input-currency.component.js +1 -1
  353. package/esm2015/input-currency/src/lib/input-currency.module.js +1 -1
  354. package/esm2015/input-currency/src/public-api.js +1 -1
  355. package/esm2015/input-dropdown/index.js +1 -1
  356. package/esm2015/input-dropdown/sd-angular-core-input-dropdown.js +1 -1
  357. package/esm2015/input-dropdown/src/lib/input-tooltip.pipe.js +1 -1
  358. package/esm2015/input-dropdown/src/lib/input.component.js +1 -1
  359. package/esm2015/input-dropdown/src/lib/input.module.js +1 -1
  360. package/esm2015/input-dropdown/src/public-api.js +1 -1
  361. package/esm2015/input-number/index.js +1 -1
  362. package/esm2015/input-number/sd-angular-core-input-number.js +1 -1
  363. package/esm2015/input-number/src/lib/input-number.component.js +1 -1
  364. package/esm2015/input-number/src/lib/input-number.module.js +1 -1
  365. package/esm2015/input-number/src/public-api.js +1 -1
  366. package/esm2015/input-upload-file/index.js +1 -1
  367. package/esm2015/input-upload-file/sd-angular-core-input-upload-file.js +1 -1
  368. package/esm2015/input-upload-file/src/lib/input-upload-file.component.js +1 -1
  369. package/esm2015/input-upload-file/src/lib/input-upload-file.module.js +1 -1
  370. package/esm2015/input-upload-file/src/public-api.js +1 -1
  371. package/esm2015/json-editor/index.js +1 -1
  372. package/esm2015/json-editor/sd-angular-core-json-editor.js +1 -1
  373. package/esm2015/json-editor/src/lib/json-editor.component.js +1 -1
  374. package/esm2015/json-editor/src/lib/json-editor.module.js +1 -1
  375. package/esm2015/json-editor/src/public-api.js +1 -1
  376. package/esm2015/konva/index.js +1 -1
  377. package/esm2015/konva/sd-angular-core-konva.js +1 -1
  378. package/esm2015/konva/src/lib/konva.module.js +1 -1
  379. package/esm2015/konva/src/lib/merge-images/merge-images.component.js +1 -1
  380. package/esm2015/konva/src/public-api.js +1 -1
  381. package/esm2015/label/index.js +1 -1
  382. package/esm2015/label/sd-angular-core-label.js +1 -1
  383. package/esm2015/label/src/lib/label.component.js +1 -1
  384. package/esm2015/label/src/lib/label.module.js +1 -1
  385. package/esm2015/label/src/public-api.js +1 -1
  386. package/esm2015/lib/core.module.js +1 -1
  387. package/esm2015/lib/material.module.js +1 -1
  388. package/esm2015/loading/index.js +1 -1
  389. package/esm2015/loading/sd-angular-core-loading.js +1 -1
  390. package/esm2015/loading/src/lib/loading.service.js +1 -1
  391. package/esm2015/loading/src/public-api.js +1 -1
  392. package/esm2015/modal/index.js +1 -1
  393. package/esm2015/modal/sd-angular-core-modal.js +1 -1
  394. package/esm2015/modal/src/lib/bottom-sheet/bottom-sheet-body/bottom-sheet-body.component.js +1 -1
  395. package/esm2015/modal/src/lib/bottom-sheet/bottom-sheet-footer/bottom-sheet-footer.component.js +1 -1
  396. package/esm2015/modal/src/lib/bottom-sheet/bottom-sheet-header/bottom-sheet-header.component.js +1 -1
  397. package/esm2015/modal/src/lib/bottom-sheet/bottom-sheet.component.js +1 -1
  398. package/esm2015/modal/src/lib/modal/modal-body/modal-body.component.js +1 -1
  399. package/esm2015/modal/src/lib/modal/modal-footer/modal-footer.component.js +1 -1
  400. package/esm2015/modal/src/lib/modal/modal-header/modal-header.component.js +1 -1
  401. package/esm2015/modal/src/lib/modal/modal.component.js +1 -1
  402. package/esm2015/modal/src/lib/modal.module.js +1 -1
  403. package/esm2015/modal/src/public-api.js +1 -1
  404. package/esm2015/modal-resizable/index.js +1 -1
  405. package/esm2015/modal-resizable/sd-angular-core-modal-resizable.js +1 -1
  406. package/esm2015/modal-resizable/src/lib/modal-resizable/modal-resizable.component.js +1 -1
  407. package/esm2015/modal-resizable/src/lib/modal-resizable.module.js +1 -1
  408. package/esm2015/modal-resizable/src/public-api.js +1 -1
  409. package/esm2015/notify/index.js +1 -1
  410. package/esm2015/notify/sd-angular-core-notify.js +1 -1
  411. package/esm2015/notify/src/lib/components/dialog-confirm/dialog-confirm.component.js +1 -1
  412. package/esm2015/notify/src/lib/configurations/notify.configuration.js +1 -1
  413. package/esm2015/notify/src/lib/notify.module.js +1 -1
  414. package/esm2015/notify/src/lib/notify.service.js +1 -1
  415. package/esm2015/notify/src/public-api.js +1 -1
  416. package/esm2015/popover/index.js +1 -1
  417. package/esm2015/popover/sd-angular-core-popover.js +1 -1
  418. package/esm2015/popover/src/lib/directives/popover-content.directive.js +1 -1
  419. package/esm2015/popover/src/lib/directives/popover-trigger.directive.js +1 -1
  420. package/esm2015/popover/src/lib/popover/popover.component.js +1 -1
  421. package/esm2015/popover/src/lib/popover.model.js +1 -1
  422. package/esm2015/popover/src/lib/popover.module.js +1 -1
  423. package/esm2015/popover/src/public-api.js +1 -1
  424. package/esm2015/public-api.js +1 -1
  425. package/esm2015/quick-action/index.js +1 -1
  426. package/esm2015/quick-action/sd-angular-core-quick-action.js +1 -1
  427. package/esm2015/quick-action/src/lib/quick-action.component.js +1 -1
  428. package/esm2015/quick-action/src/lib/quick-action.module.js +1 -1
  429. package/esm2015/quick-action/src/public-api.js +1 -1
  430. package/esm2015/radio/index.js +1 -1
  431. package/esm2015/radio/sd-angular-core-radio.js +1 -1
  432. package/esm2015/radio/src/lib/radio.component.js +1 -1
  433. package/esm2015/radio/src/lib/radio.module.js +1 -1
  434. package/esm2015/radio/src/public-api.js +1 -1
  435. package/esm2015/sd-angular-core.js +1 -1
  436. package/esm2015/select/index.js +1 -1
  437. package/esm2015/select/sd-angular-core-select.js +1 -1
  438. package/esm2015/select/src/lib/select-display-def.directive.js +1 -1
  439. package/esm2015/select/src/lib/select.component.js +1 -1
  440. package/esm2015/select/src/lib/select.module.js +1 -1
  441. package/esm2015/select/src/public-api.js +1 -1
  442. package/esm2015/select-badge/index.js +1 -1
  443. package/esm2015/select-badge/sd-angular-core-select-badge.js +1 -1
  444. package/esm2015/select-badge/src/lib/select-badge-display-def.directive.js +1 -1
  445. package/esm2015/select-badge/src/lib/select-badge.component.js +1 -1
  446. package/esm2015/select-badge/src/lib/select-badge.module.js +1 -1
  447. package/esm2015/select-badge/src/public-api.js +1 -1
  448. package/esm2015/select-editor/index.js +1 -1
  449. package/esm2015/select-editor/sd-angular-core-select-editor.js +1 -1
  450. package/esm2015/select-editor/src/lib/select-editor.component.js +1 -1
  451. package/esm2015/select-editor/src/lib/select-editor.module.js +1 -1
  452. package/esm2015/select-editor/src/public-api.js +1 -1
  453. package/esm2015/service/index.js +1 -1
  454. package/esm2015/service/sd-angular-core-service.js +1 -1
  455. package/esm2015/service/src/lib/service.module.js +1 -1
  456. package/esm2015/service/src/public-api.js +1 -1
  457. package/esm2015/setting/index.js +1 -1
  458. package/esm2015/setting/sd-angular-core-setting.js +1 -1
  459. package/esm2015/setting/src/lib/setting.model.js +1 -1
  460. package/esm2015/setting/src/lib/setting.service.js +1 -1
  461. package/esm2015/setting/src/public-api.js +1 -1
  462. package/esm2015/side-drawer/index.js +1 -1
  463. package/esm2015/side-drawer/sd-angular-core-side-drawer.js +1 -1
  464. package/esm2015/side-drawer/src/lib/side-drawer/side-drawer.component.js +1 -1
  465. package/esm2015/side-drawer/src/lib/side-drawer.module.js +1 -1
  466. package/esm2015/side-drawer/src/public-api.js +1 -1
  467. package/esm2015/switch/index.js +1 -1
  468. package/esm2015/switch/sd-angular-core-switch.js +1 -1
  469. package/esm2015/switch/src/lib/switch.component.js +1 -1
  470. package/esm2015/switch/src/lib/switch.module.js +1 -1
  471. package/esm2015/switch/src/public-api.js +1 -1
  472. package/esm2015/tab-router/index.js +1 -1
  473. package/esm2015/tab-router/sd-angular-core-tab-router.js +1 -1
  474. package/esm2015/tab-router/src/lib/actions/tab-router.action.js +1 -1
  475. package/esm2015/tab-router/src/lib/components/tab-router-item/tab-router-item.component.js +1 -1
  476. package/esm2015/tab-router/src/lib/components/tab-router-nav/tab-router-nav.component.js +1 -1
  477. package/esm2015/tab-router/src/lib/components/tab-router-outlet/tab-router-outlet.component.js +1 -1
  478. package/esm2015/tab-router/src/lib/decorators/tab.decorator.js +1 -1
  479. package/esm2015/tab-router/src/lib/directives/router-link-mouse-down.directive.js +1 -1
  480. package/esm2015/tab-router/src/lib/events/tab-router.event.js +1 -1
  481. package/esm2015/tab-router/src/lib/models/tab-router.model.js +1 -1
  482. package/esm2015/tab-router/src/lib/pipes/tab-info.pipe.js +1 -1
  483. package/esm2015/tab-router/src/lib/services/tab-decorator.service.js +1 -1
  484. package/esm2015/tab-router/src/lib/services/tab-router.service.js +1 -1
  485. package/esm2015/tab-router/src/lib/tab-router.module.js +1 -1
  486. package/esm2015/tab-router/src/public-api.js +1 -1
  487. package/esm2015/textarea/index.js +1 -1
  488. package/esm2015/textarea/sd-angular-core-textarea.js +1 -1
  489. package/esm2015/textarea/src/lib/textarea.component.js +1 -1
  490. package/esm2015/textarea/src/lib/textarea.module.js +1 -1
  491. package/esm2015/textarea/src/public-api.js +1 -1
  492. package/esm2015/time/index.js +1 -1
  493. package/esm2015/time/sd-angular-core-time.js +1 -1
  494. package/esm2015/time/src/lib/time.component.js +1 -1
  495. package/esm2015/time/src/lib/time.module.js +1 -1
  496. package/esm2015/time/src/public-api.js +1 -1
  497. package/esm2015/timeline/index.js +1 -1
  498. package/esm2015/timeline/sd-angular-core-timeline.js +1 -1
  499. package/esm2015/timeline/src/lib/components/timeline.component.js +1 -1
  500. package/esm2015/timeline/src/lib/directives/timeline-def.directive.js +1 -1
  501. package/esm2015/timeline/src/lib/timeline.module.js +1 -1
  502. package/esm2015/timeline/src/public-api.js +1 -1
  503. package/esm2015/translate/index.js +1 -1
  504. package/esm2015/translate/sd-angular-core-translate.js +1 -1
  505. package/esm2015/translate/src/lib/translate.model.js +1 -1
  506. package/esm2015/translate/src/lib/translate.module.js +1 -1
  507. package/esm2015/translate/src/lib/translate.pipe.js +1 -1
  508. package/esm2015/translate/src/lib/translate.service.js +1 -1
  509. package/esm2015/upload-excel/index.js +1 -1
  510. package/esm2015/upload-excel/sd-angular-core-upload-excel.js +1 -1
  511. package/esm2015/upload-excel/src/lib/pipes/columm-hidden.pipe.js +1 -1
  512. package/esm2015/upload-excel/src/lib/pipes/column-transform.pipe.js +1 -1
  513. package/esm2015/upload-excel/src/lib/upload-excel.component.js +7 -8
  514. package/esm2015/upload-excel/src/lib/upload-excel.model.js +1 -1
  515. package/esm2015/upload-excel/src/lib/upload-excel.module.js +1 -1
  516. package/esm2015/upload-excel/src/public-api.js +1 -1
  517. package/esm2015/upload-file/index.js +1 -1
  518. package/esm2015/upload-file/sd-angular-core-upload-file.js +1 -1
  519. package/esm2015/upload-file/src/lib/upload-file.component.js +1 -1
  520. package/esm2015/upload-file/src/lib/upload-file.module.js +1 -1
  521. package/esm2015/upload-file/src/public-api.js +1 -1
  522. package/esm2015/utility/index.js +1 -1
  523. package/esm2015/utility/sd-angular-core-utility.js +1 -1
  524. package/esm2015/utility/src/lib/directives/desktop.directive.js +1 -1
  525. package/esm2015/utility/src/lib/directives/mobile-tablet.directive.js +1 -1
  526. package/esm2015/utility/src/lib/directives/mobile.directive.js +1 -1
  527. package/esm2015/utility/src/lib/directives/tablet.directive.js +1 -1
  528. package/esm2015/utility/src/lib/pipes/currency.pipe.js +1 -1
  529. package/esm2015/utility/src/lib/pipes/safe-html.pipe.js +1 -1
  530. package/esm2015/utility/src/lib/pipes/time-different.pipe.js +1 -1
  531. package/esm2015/utility/src/lib/utility.module.js +1 -1
  532. package/esm2015/utility/src/lib/utility.service.js +1 -1
  533. package/esm2015/utility/src/public-api.js +1 -1
  534. package/esm2015/view/index.js +1 -1
  535. package/esm2015/view/sd-angular-core-view.js +1 -1
  536. package/esm2015/view/src/lib/view.module.js +1 -1
  537. package/esm2015/view/src/public-api.js +1 -1
  538. package/export/sd-angular-core-export.metadata.json +1 -1
  539. package/export/src/lib/export.model.d.ts +3 -0
  540. package/export/src/lib/export.service.d.ts +1 -4
  541. package/fesm2015/sd-angular-core-api.js +1 -1
  542. package/fesm2015/sd-angular-core-api.js.map +1 -1
  543. package/fesm2015/sd-angular-core-date-time.js +1 -1
  544. package/fesm2015/sd-angular-core-date-time.js.map +1 -1
  545. package/fesm2015/sd-angular-core-export.js +11 -5
  546. package/fesm2015/sd-angular-core-export.js.map +1 -1
  547. package/fesm2015/sd-angular-core-grid-material.js +34 -25
  548. package/fesm2015/sd-angular-core-grid-material.js.map +1 -1
  549. package/fesm2015/sd-angular-core-upload-excel.js +6 -7
  550. package/fesm2015/sd-angular-core-upload-excel.js.map +1 -1
  551. package/grid-material/sd-angular-core-grid-material.metadata.json +1 -1
  552. package/grid-material/src/lib/components/popup-export/popup-export.component.d.ts +2 -0
  553. package/package.json +1 -1
  554. package/{sd-angular-core-1.2.75.tgz → sd-angular-core-1.2.78.tgz} +0 -0
  555. package/upload-excel/src/lib/upload-excel.model.d.ts +2 -0
@@ -6,28 +6,6 @@
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
9
- function _interopNamespace(e) {
10
- if (e && e.__esModule) { return e; } else {
11
- var n = Object.create(null);
12
- if (e) {
13
- Object.keys(e).forEach(function (k) {
14
- if (k !== 'default') {
15
- var d = Object.getOwnPropertyDescriptor(e, k);
16
- Object.defineProperty(n, k, d.get ? d : {
17
- enumerable: true,
18
- get: function () {
19
- return e[k];
20
- }
21
- });
22
- }
23
- });
24
- }
25
- n['default'] = e;
26
- return Object.freeze(n);
27
- }
28
- }
29
-
30
- var uuid__namespace = /*#__PURE__*/_interopNamespace(uuid);
31
9
  var hash__default = /*#__PURE__*/_interopDefaultLegacy(hash);
32
10
 
33
11
  var SdMaterialCellDefDirective = /** @class */ (function () {
@@ -910,7 +888,7 @@
910
888
  });
911
889
  this.open = function () { return __awaiter(_this, void 0, void 0, function () {
912
890
  var _a, _b;
913
- return __generator(this, function (_z) {
891
+ return __generator(this, function (_x) {
914
892
  if (!this.key) {
915
893
  this.exportDefault();
916
894
  return [2 /*return*/];
@@ -929,27 +907,39 @@
929
907
  }); };
930
908
  this.exportDefault = function (isCSV) {
931
909
  if (isCSV === void 0) { isCSV = false; }
932
- _this.export.emit({
933
- file: null,
934
- columns: _this.columns,
935
- isCSV: isCSV
936
- });
910
+ if (_this.configuration) {
911
+ var _x = _this.configuration, firstColumns = _x.firstColumns, secondColumns = _x.secondColumns;
912
+ var columns = __spread(firstColumns, secondColumns).map(function (e) { return (Object.assign(Object.assign({}, e), { data: _this.columns.find(function (e1) { return e1.field === e.field; }) })); }).filter(function (e) { return !!e.data; })
913
+ .map(function (e) { return e.data; });
914
+ _this.export.emit({
915
+ file: null,
916
+ columns: columns,
917
+ isCSV: isCSV
918
+ });
919
+ }
920
+ else {
921
+ _this.export.emit({
922
+ file: null,
923
+ columns: _this.columns,
924
+ isCSV: isCSV
925
+ });
926
+ }
937
927
  };
938
928
  this.loadFiles = function (group) {
939
929
  if (group === void 0) { group = null; }
940
930
  return __awaiter(_this, void 0, void 0, function () {
941
- var _z;
942
- return __generator(this, function (_0) {
943
- switch (_0.label) {
931
+ var _x;
932
+ return __generator(this, function (_y) {
933
+ switch (_y.label) {
944
934
  case 0:
945
935
  this.selectedGroup = this.groups.find(function (e) { return e.code === group; });
946
- _z = this;
936
+ _x = this;
947
937
  return [4 /*yield*/, this.exportService.filesInFolder({
948
938
  key: this.key,
949
939
  group: group
950
940
  })];
951
941
  case 1:
952
- _z.files = _0.sent();
942
+ _x.files = _y.sent();
953
943
  this.ref.markForCheck();
954
944
  return [2 /*return*/];
955
945
  }
@@ -957,21 +947,21 @@
957
947
  });
958
948
  };
959
949
  _initTemplate.set(this, function (fileName) { return __awaiter(_this, void 0, void 0, function () {
960
- var _c, _d, _e, _f, sheets, _z, _0, sheet, _1, _2, _3, e_1_1;
961
- var e_1, _4;
962
- return __generator(this, function (_5) {
963
- switch (_5.label) {
950
+ var _c, _d, _e, _f, sheets, _x, _y, sheet, _z, _0, _1, e_1_1;
951
+ var e_1, _2;
952
+ return __generator(this, function (_3) {
953
+ switch (_3.label) {
964
954
  case 0:
965
955
  sheets = [];
966
956
  if (!Array.isArray((_d = (_c = this.gridOption) === null || _c === void 0 ? void 0 : _c.export) === null || _d === void 0 ? void 0 : _d.sheets)) return [3 /*break*/, 9];
967
- _5.label = 1;
957
+ _3.label = 1;
968
958
  case 1:
969
- _5.trys.push([1, 7, 8, 9]);
970
- _z = __values(this.gridOption.export.sheets), _0 = _z.next();
971
- _5.label = 2;
959
+ _3.trys.push([1, 7, 8, 9]);
960
+ _x = __values(this.gridOption.export.sheets), _y = _x.next();
961
+ _3.label = 2;
972
962
  case 2:
973
- if (!!_0.done) return [3 /*break*/, 6];
974
- sheet = _0.value;
963
+ if (!!_y.done) return [3 /*break*/, 6];
964
+ sheet = _y.value;
975
965
  if (!(sheet.name && sheet.items && sheet.fields)) return [3 /*break*/, 5];
976
966
  if (!Array.isArray(sheet.items)) return [3 /*break*/, 3];
977
967
  sheets.push({
@@ -981,27 +971,27 @@
981
971
  });
982
972
  return [3 /*break*/, 5];
983
973
  case 3:
984
- _2 = (_1 = sheets).push;
985
- _3 = {
974
+ _0 = (_z = sheets).push;
975
+ _1 = {
986
976
  name: sheet.name
987
977
  };
988
978
  return [4 /*yield*/, sheet.items()];
989
979
  case 4:
990
- _2.apply(_1, [(_3.items = _5.sent(),
991
- _3.fields = sheet.fields,
992
- _3)]);
993
- _5.label = 5;
980
+ _0.apply(_z, [(_1.items = _3.sent(),
981
+ _1.fields = sheet.fields,
982
+ _1)]);
983
+ _3.label = 5;
994
984
  case 5:
995
- _0 = _z.next();
985
+ _y = _x.next();
996
986
  return [3 /*break*/, 2];
997
987
  case 6: return [3 /*break*/, 9];
998
988
  case 7:
999
- e_1_1 = _5.sent();
989
+ e_1_1 = _3.sent();
1000
990
  e_1 = { error: e_1_1 };
1001
991
  return [3 /*break*/, 9];
1002
992
  case 8:
1003
993
  try {
1004
- if (_0 && !_0.done && (_4 = _z.return)) _4.call(_z);
994
+ if (_y && !_y.done && (_2 = _x.return)) _2.call(_x);
1005
995
  }
1006
996
  finally { if (e_1) throw e_1.error; }
1007
997
  return [7 /*endfinally*/];
@@ -1010,43 +1000,39 @@
1010
1000
  columns: this.columns,
1011
1001
  sheets: sheets
1012
1002
  })];
1013
- case 10: return [2 /*return*/, _5.sent()];
1003
+ case 10: return [2 /*return*/, _3.sent()];
1014
1004
  }
1015
1005
  });
1016
1006
  }); });
1017
1007
  this.generateTemplate = function () { return __awaiter(_this, void 0, void 0, function () {
1018
- var _g, _h, result;
1019
- return __generator(this, function (_z) {
1020
- switch (_z.label) {
1008
+ return __generator(this, function (_x) {
1009
+ switch (_x.label) {
1021
1010
  case 0:
1022
1011
  this.loadingService.start();
1023
1012
  return [4 /*yield*/, __classPrivateFieldGet(this, _initTemplate).call(this).finally(this.loadingService.stop)];
1024
1013
  case 1:
1025
- result = _z.sent();
1026
- if (result === null || result === void 0 ? void 0 : result.filePath) {
1027
- this.exportService.download(result.filePath, (((_h = (_g = this.gridOption) === null || _g === void 0 ? void 0 : _g.export) === null || _h === void 0 ? void 0 : _h.fileName) || uuid__namespace) + ".xlsx");
1028
- }
1014
+ _x.sent();
1029
1015
  return [2 /*return*/];
1030
1016
  }
1031
1017
  });
1032
1018
  }); };
1033
1019
  this.generateAndUploadTemplate = function (fileName) { return __awaiter(_this, void 0, void 0, function () {
1034
- var _j, _k, _l, _m, _o, _p, _q, sheets, _z, _0, sheet, _1, _2, _3, e_2_1;
1035
- var e_2, _4;
1020
+ var _g, _h, _j, _k, _l, _m, _o, sheets, _x, _y, sheet, _z, _0, _1, e_2_1;
1021
+ var e_2, _2;
1036
1022
  var _this = this;
1037
- return __generator(this, function (_5) {
1038
- switch (_5.label) {
1023
+ return __generator(this, function (_3) {
1024
+ switch (_3.label) {
1039
1025
  case 0:
1040
1026
  sheets = [];
1041
- if (!Array.isArray((_k = (_j = this.gridOption) === null || _j === void 0 ? void 0 : _j.export) === null || _k === void 0 ? void 0 : _k.sheets)) return [3 /*break*/, 9];
1042
- _5.label = 1;
1027
+ if (!Array.isArray((_h = (_g = this.gridOption) === null || _g === void 0 ? void 0 : _g.export) === null || _h === void 0 ? void 0 : _h.sheets)) return [3 /*break*/, 9];
1028
+ _3.label = 1;
1043
1029
  case 1:
1044
- _5.trys.push([1, 7, 8, 9]);
1045
- _z = __values((_m = (_l = this.gridOption) === null || _l === void 0 ? void 0 : _l.export) === null || _m === void 0 ? void 0 : _m.sheets), _0 = _z.next();
1046
- _5.label = 2;
1030
+ _3.trys.push([1, 7, 8, 9]);
1031
+ _x = __values((_k = (_j = this.gridOption) === null || _j === void 0 ? void 0 : _j.export) === null || _k === void 0 ? void 0 : _k.sheets), _y = _x.next();
1032
+ _3.label = 2;
1047
1033
  case 2:
1048
- if (!!_0.done) return [3 /*break*/, 6];
1049
- sheet = _0.value;
1034
+ if (!!_y.done) return [3 /*break*/, 6];
1035
+ sheet = _y.value;
1050
1036
  if (!(sheet.name && sheet.items && sheet.fields)) return [3 /*break*/, 5];
1051
1037
  if (!Array.isArray(sheet.items)) return [3 /*break*/, 3];
1052
1038
  sheets.push({
@@ -1056,40 +1042,40 @@
1056
1042
  });
1057
1043
  return [3 /*break*/, 5];
1058
1044
  case 3:
1059
- _2 = (_1 = sheets).push;
1060
- _3 = {
1045
+ _0 = (_z = sheets).push;
1046
+ _1 = {
1061
1047
  name: sheet.name
1062
1048
  };
1063
1049
  return [4 /*yield*/, sheet.items()];
1064
1050
  case 4:
1065
- _2.apply(_1, [(_3.items = _5.sent(),
1066
- _3.fields = sheet.fields,
1067
- _3)]);
1068
- _5.label = 5;
1051
+ _0.apply(_z, [(_1.items = _3.sent(),
1052
+ _1.fields = sheet.fields,
1053
+ _1)]);
1054
+ _3.label = 5;
1069
1055
  case 5:
1070
- _0 = _z.next();
1056
+ _y = _x.next();
1071
1057
  return [3 /*break*/, 2];
1072
1058
  case 6: return [3 /*break*/, 9];
1073
1059
  case 7:
1074
- e_2_1 = _5.sent();
1060
+ e_2_1 = _3.sent();
1075
1061
  e_2 = { error: e_2_1 };
1076
1062
  return [3 /*break*/, 9];
1077
1063
  case 8:
1078
1064
  try {
1079
- if (_0 && !_0.done && (_4 = _z.return)) _4.call(_z);
1065
+ if (_y && !_y.done && (_2 = _x.return)) _2.call(_x);
1080
1066
  }
1081
1067
  finally { if (e_2) throw e_2.error; }
1082
1068
  return [7 /*endfinally*/];
1083
1069
  case 9: return [4 /*yield*/, this.exportService.generateUploadTemplate({
1084
1070
  key: this.key,
1085
1071
  template: {
1086
- fileName: fileName || ((_p = (_o = this.gridOption) === null || _o === void 0 ? void 0 : _o.export) === null || _p === void 0 ? void 0 : _p.fileName),
1072
+ fileName: fileName || ((_m = (_l = this.gridOption) === null || _l === void 0 ? void 0 : _l.export) === null || _m === void 0 ? void 0 : _m.fileName),
1087
1073
  columns: this.columns.filter(function (e) { return _this.selected[e.field]; }),
1088
1074
  sheets: sheets
1089
1075
  },
1090
- group: (_q = this.selectedGroup) === null || _q === void 0 ? void 0 : _q.code
1076
+ group: (_o = this.selectedGroup) === null || _o === void 0 ? void 0 : _o.code
1091
1077
  })];
1092
- case 10: return [2 /*return*/, _5.sent()];
1078
+ case 10: return [2 /*return*/, _3.sent()];
1093
1079
  }
1094
1080
  });
1095
1081
  }); };
@@ -1101,16 +1087,16 @@
1101
1087
  _this.ref.detectChanges();
1102
1088
  };
1103
1089
  this.uploadTemplate = function () { return __awaiter(_this, void 0, void 0, function () {
1104
- var _r, _s, _t, file;
1105
- return __generator(this, function (_z) {
1106
- switch (_z.label) {
1090
+ var _p, _q, _r, file;
1091
+ return __generator(this, function (_x) {
1092
+ switch (_x.label) {
1107
1093
  case 0: return [4 /*yield*/, this.exportService.uploadTemplate({
1108
1094
  key: this.key,
1109
- group: (_r = this.selectedGroup) === null || _r === void 0 ? void 0 : _r.code,
1110
- validator: (_t = (_s = this.gridOption) === null || _s === void 0 ? void 0 : _s.export) === null || _t === void 0 ? void 0 : _t.validators
1095
+ group: (_p = this.selectedGroup) === null || _p === void 0 ? void 0 : _p.code,
1096
+ validator: (_r = (_q = this.gridOption) === null || _q === void 0 ? void 0 : _q.export) === null || _r === void 0 ? void 0 : _r.validators
1111
1097
  })];
1112
1098
  case 1:
1113
- file = _z.sent();
1099
+ file = _x.sent();
1114
1100
  if (file) {
1115
1101
  this.files = __spread(this.files, [file]);
1116
1102
  this.ref.detectChanges();
@@ -1134,10 +1120,10 @@
1134
1120
  });
1135
1121
  };
1136
1122
  this.createTemplate = function () { return __awaiter(_this, void 0, void 0, function () {
1137
- var _u, _v, _w, _x, _y, translate, fileName, result, file;
1123
+ var _s, _t, _u, _v, _w, translate, fileName, result, file;
1138
1124
  var _this = this;
1139
- return __generator(this, function (_z) {
1140
- switch (_z.label) {
1125
+ return __generator(this, function (_x) {
1126
+ switch (_x.label) {
1141
1127
  case 0:
1142
1128
  translate = this.translateService.translate;
1143
1129
  if (this.form.invalid) {
@@ -1150,16 +1136,16 @@
1150
1136
  }
1151
1137
  this.loadingService.start();
1152
1138
  fileName = this.templateName + '.xlsx';
1153
- _z.label = 1;
1139
+ _x.label = 1;
1154
1140
  case 1:
1155
- _z.trys.push([1, , 3, 4]);
1156
- if ((_w = (_v = (_u = this.gridOption) === null || _u === void 0 ? void 0 : _u.export) === null || _v === void 0 ? void 0 : _v.validators) === null || _w === void 0 ? void 0 : _w.call(_v, fileName)) {
1157
- this.notifyService.notify.warning((_y = (_x = this.gridOption) === null || _x === void 0 ? void 0 : _x.export) === null || _y === void 0 ? void 0 : _y.validators(fileName));
1141
+ _x.trys.push([1, , 3, 4]);
1142
+ if ((_u = (_t = (_s = this.gridOption) === null || _s === void 0 ? void 0 : _s.export) === null || _t === void 0 ? void 0 : _t.validators) === null || _u === void 0 ? void 0 : _u.call(_t, fileName)) {
1143
+ this.notifyService.notify.warning((_w = (_v = this.gridOption) === null || _v === void 0 ? void 0 : _v.export) === null || _w === void 0 ? void 0 : _w.validators(fileName));
1158
1144
  return [2 /*return*/];
1159
1145
  }
1160
1146
  return [4 /*yield*/, this.generateAndUploadTemplate(fileName)];
1161
1147
  case 2:
1162
- result = _z.sent();
1148
+ result = _x.sent();
1163
1149
  if (result === null || result === void 0 ? void 0 : result.filePath) {
1164
1150
  file = {
1165
1151
  filePath: result.filePath,
@@ -1248,7 +1234,8 @@
1248
1234
  modal: [{ type: core.ViewChild, args: ['modal',] }],
1249
1235
  listGroups: [{ type: core.ViewChild, args: ['listGroups',] }],
1250
1236
  export: [{ type: core.Output }],
1251
- _gridOption: [{ type: core.Input, args: ['gridOption',] }]
1237
+ _gridOption: [{ type: core.Input, args: ['gridOption',] }],
1238
+ configuration: [{ type: core.Input }]
1252
1239
  };
1253
1240
 
1254
1241
  var _COLUMNS, _cache, _getKey, _default, _load, _get, _set, _remove;
@@ -2227,14 +2214,15 @@
2227
2214
  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); })) || [];
2228
2215
  });
2229
2216
  _onExport.set(this, function (args) { return __awaiter(_this, void 0, void 0, function () {
2230
- 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;
2217
+ var _g, _h, _j, _k, _l, _m, _o, _p, _q, file, isCSV, columns_2, pageSize, total, pageNumber, exportItems, items, _loop_1, this_1, sheets, _y, _z, sheet, _0, _1, _2, e_5_1;
2231
2218
  var e_5, _3;
2232
2219
  var _this = this;
2233
2220
  return __generator(this, function (_4) {
2234
2221
  switch (_4.label) {
2235
2222
  case 0:
2236
2223
  _4.trys.push([0, , 18, 19]);
2237
- file = args.file, columns_2 = args.columns, isCSV = args.isCSV;
2224
+ file = args.file, isCSV = args.isCSV;
2225
+ columns_2 = args.columns;
2238
2226
  pageSize = ((_h = (_g = this.gridOption) === null || _g === void 0 ? void 0 : _g.export) === null || _h === void 0 ? void 0 : _h.maxItemsPerRequest) || 1000;
2239
2227
  total = this.total;
2240
2228
  pageNumber = 0;
@@ -2957,7 +2945,7 @@
2957
2945
  SdGridMaterial.decorators = [
2958
2946
  { type: core.Component, args: [{
2959
2947
  selector: 'sd-grid-material',
2960
- template: "<ng-container *ngIf=\"gridConfigurationObserver | async as gridConfiguration\">\r\n <ng-container *ngIf=\"\r\n gridConfiguration\r\n | sdGridConfigurationResult\r\n : gridOption\r\n : sdSubInformation as configuration\r\n \">\r\n <ng-container *ngIf=\"!gridOption.filter?.disabled\">\r\n <sd-grid-filter [filter]=\"gridOption?.filter\" [columns]=\"configuration.firstColumns\" [filterDefs]=\"filterDefs\">\r\n </sd-grid-filter>\r\n </ng-container>\r\n <ng-container *ngIf=\"items | sdGroup:gridOption; $implicit as groupedItems\">\r\n <div class=\"c-container {{ gridOption?.style?.grid }}\" [ngClass]=\"{ 'mat-elevation-z2': gridOption?.shadow }\">\r\n <div class=\"c-loading\" *ngIf=\"isLoading\">\r\n <mat-spinner *ngIf=\"isLoading\"></mat-spinner>\r\n </div>\r\n <ng-container>\r\n <div class=\"c-table\" sdScroll [ngStyle]=\"{\r\n 'max-height': gridOption?.maxHeight,\r\n 'min-height': gridOption?.minHeight\r\n }\">\r\n <table *ngIf=\"items?.length; else elseEmpty\" mat-table [dataSource]=\"groupedItems\" matSort\r\n [matSortDisabled]=\"!gridOption.sortable\" cdkDropList cdkDropListOrientation=\"horizontal\"\r\n [cdkDropListDisabled]=\"!gridOption.dropDragColumnEnable\"\r\n (cdkDropListDropped)=\"drop($event, configuration.displayedColumns)\" multiTemplateDataRows>\r\n\r\n <ng-container matColumnDef=\"sdSubInformation\" sticky>\r\n <td class=\"p-0\" mat-cell *matCellDef=\"let item\" [attr.colspan]=\"configuration.displayedColumns.length\">\r\n <ng-container *ngIf=\"sdSubInformation?.templateRef\">\r\n <ng-container *ngIf=\"gridOption?.subInformation?.always;else useExpandCollapse\">\r\n <ng-container *ngTemplateOutlet=\"\r\n sdSubInformation.templateRef;\r\n context: { item: item }\r\n \">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #useExpandCollapse>\r\n <div [@detailExpand]=\"item.isExpanded ? 'expanded' : 'collapsed'\">\r\n <ng-container *ngIf=\"item.isExpanded\">\r\n <ng-container *ngTemplateOutlet=\"\r\n sdSubInformation.templateRef;\r\n context: { item: item }\r\n \">\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n </td>\r\n <td mat-footer-cell *matFooterCellDef></td>\r\n </ng-container>\r\n <ng-container matColumnDef=\"sdSubInformationAction\" stickyEnd>\r\n <th class=\"p-0\" mat-header-cell *matHeaderCellDef style=\"width: 1px\"\r\n [attr.rowspan]=\"configuration.multipleHeader ? 2 : 1\"></th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <button *ngIf=\"!element.isExpanding && !gridOption?.subInformation?.always\" mat-icon-button\r\n aria-label=\"Expand & Collapse\" (click)=\"onExpand(element)\">\r\n <mat-icon *ngIf=\"!element.isExpanded\">expand_more</mat-icon>\r\n <mat-icon *ngIf=\"element.isExpanded\">expand_less</mat-icon>\r\n </button>\r\n <div *ngIf=\"element.isExpanding\" class=\"lds-ring\">\r\n <div></div>\r\n <div></div>\r\n <div></div>\r\n <div></div>\r\n </div>\r\n </td>\r\n </ng-container>\r\n <ng-container matColumnDef=\"sdSelection\" sticky>\r\n <th class=\"text-center px-15\" mat-header-cell *matHeaderCellDef style=\"min-width: 50px; max-width: 50px\"\r\n [attr.rowspan]=\"configuration.multipleHeader ? 2 : 1\">\r\n <ng-container *ngIf=\"items | selectionVisibleSelectAll: gridOption?.selection | async\">\r\n <mat-checkbox *ngIf=\"!gridOption.selection?.single\" class=\"c-selection\" color=\"primary\"\r\n [(ngModel)]=\"isSelectAll\" (change)=\"onSelectAll()\">\r\n </mat-checkbox>\r\n </ng-container>\r\n\r\n </th>\r\n <td class=\"text-center px-15\" mat-cell *matCellDef=\"let item\" style=\"min-width: 50px; max-width: 50px\">\r\n <ng-container *ngIf=\"item | selectionVisible:gridOption?.selection\">\r\n <mat-checkbox class=\"c-selection\" color=\"primary\" [(ngModel)]=\"item.isSelected\"\r\n (change)=\"onSelect(item)\" [disabled]=\"\r\n selectedItems | selectionDisable: item:gridOption?.selection\r\n \">\r\n </mat-checkbox>\r\n </ng-container>\r\n\r\n </td>\r\n <td mat-footer-cell *matFooterCellDef></td>\r\n </ng-container>\r\n <ng-container matColumnDef=\"sdEditorValidation\">\r\n <th class=\"p-0\" mat-header-cell *matHeaderCellDef style=\"width: 2px\"\r\n [attr.rowspan]=\"configuration.multipleHeader ? 2 : 1\">\r\n </th>\r\n <td class=\"p-0 position-relative\" mat-cell *matCellDef=\"let item; index as idx\">\r\n <sd-desktop-editor-validation [sdId]=\"item.sdId\" [item]=\"item\" [items]=\"items\"\r\n [gridOption]=\"gridOption\">\r\n </sd-desktop-editor-validation>\r\n </td>\r\n <td mat-footer-cell *matFooterCellDef></td>\r\n </ng-container>\r\n <ng-container matColumnDef=\"sdEditor\">\r\n <th class=\"px-8 py-8\" mat-header-cell *matHeaderCellDef style=\"width: 50px\"\r\n [attr.rowspan]=\"configuration.multipleHeader ? 2 : 1\">\r\n <button class=\"c-btn-add\"\r\n *ngIf=\"gridOption.editor?.addable && (!gridOption.editor.limit || gridOption.editor.limit > items.length)\"\r\n (click)=\"onCreate()\" aria-hidden=\"true\" mat-icon-button>\r\n <mat-icon class=\"c-icon-add\">add</mat-icon>\r\n </button>\r\n </th>\r\n <td class=\"px-8\" mat-cell *matCellDef=\"let item; index as idx\">\r\n <ng-container *sdLet=\"item.editorStatus | sdEditorHandlerRow:item:gridOption as editorHandler\">\r\n <div *ngIf=\"editorHandler\" class=\"d-flex align-items-center justify-content-center\">\r\n <button *ngIf=\"editorHandler.editable\" class=\"mx-2\" (click)=\"onUpdate(item)\" aria-hidden=\"true\"\r\n mat-icon-button>\r\n <mat-icon class=\"c-icon\">edit</mat-icon>\r\n </button>\r\n <button *ngIf=\"editorHandler.removable\" class=\"mx-2\" (click)=\"onRemove(item)\" aria-hidden=\"true\"\r\n mat-icon-button>\r\n <mat-icon class=\"c-icon\">delete</mat-icon>\r\n </button>\r\n <button *ngIf=\"editorHandler.savable\" class=\"mx-2\" (click)=\"onSave(item)\" aria-hidden=\"true\"\r\n mat-icon-button>\r\n <mat-icon class=\"c-icon\">save</mat-icon>\r\n </button>\r\n <button *ngIf=\"editorHandler.cancelable\" class=\"mx-2\" (click)=\"onCancel(item)\" aria-hidden=\"true\"\r\n mat-icon-button>\r\n <mat-icon class=\"c-icon\">close</mat-icon>\r\n </button>\r\n </div>\r\n </ng-container>\r\n </td>\r\n <td mat-footer-cell *matFooterCellDef></td>\r\n </ng-container>\r\n <ng-container matColumnDef=\"sdCommand\">\r\n <th class=\"px-8 py-8\" mat-header-cell *matHeaderCellDef style=\"width: 50px\"\r\n [attr.rowspan]=\"configuration.multipleHeader ? 2 : 1\"></th>\r\n <td class=\"px-8\" mat-cell *matCellDef=\"let item\">\r\n <sd-desktop-command [commands]=\"gridOption.commands\" [item]=\"item\"></sd-desktop-command>\r\n </td>\r\n <td mat-footer-cell *matFooterCellDef></td>\r\n </ng-container>\r\n <ng-container matColumnDef=\"sdGroup\">\r\n <th mat-header-cell *matHeaderCellDef class=\"px-8 py-8\"\r\n [attr.rowspan]=\"configuration.multipleHeader ? 2 : 1\">\r\n </th>\r\n <td class=\"p-0\" mat-cell *matCellDef=\"let item\"\r\n [attr.colspan]=\"!item?.sdGroup ? 1 : configuration.displayedColumns.length\">\r\n <div [innerHtml]=\"item?.sdGroup?.htmlTemplate | safeHtml\">\r\n </div>\r\n </td>\r\n <td mat-footer-cell *matFooterCellDef></td>\r\n </ng-container>\r\n <ng-container *ngFor=\"let column of configuration.firstColumns; let i = index\"\r\n [matColumnDef]=\"column.field\" [sticky]=\"configuration.fixedColumn[column.field]\">\r\n <th mat-header-cell *matHeaderCellDef cdkDrag class=\"px-8 py-8 c-th\"\r\n [ngStyle]=\"{ 'min-width': configuration.firstColumns[i].width }\" [attr.rowspan]=\"\r\n configuration.multipleHeader && column.type !== 'children-col'\r\n ? 2\r\n : 1\r\n \" [attr.colspan]=\"\r\n column.type === 'children-col' ? column.children?.length : 1\r\n \">\r\n <div>\r\n <div aria-hidden=\"false\" role=\"presentation\" mat-sort-header [disabled]=\"\r\n !column.sortable || column.type === 'children-col'\r\n \" [class.text-right]=\"column.align === 'right' || (!column.align && column.type === 'number')\"\r\n [class.text-center]=\"column.align === 'center'\"\r\n [innerHTML]=\"configuration.firstColumns[i].titleHtml || configuration.firstColumns[i].title\">\r\n </div>\r\n <sd-column-inline-filter *ngIf=\"gridOption.filter?.inlineColumn\"\r\n [value]=\"columnFilter[column.field]\" [columnFilter]=\"columnFilter\" [column]=\"column\"\r\n (filterChange)=\"onFilterChange()\">\r\n </sd-column-inline-filter>\r\n </div>\r\n </th>\r\n <td class=\"c-td px-0\" mat-cell *matCellDef=\"let item\">\r\n <sd-desktop-cell class=\"d-block px-8\" *ngIf=\"!item?.sdGroup\" [sdId]=\"item.sdId\" [key]=\"key\"\r\n [value]=\"item[column.field]\" [column]=\"column\" [item]=\"item\" [idx]=\"i\" [cellDef]=\"cellDef\"\r\n [gridOption]=\"gridOption\">\r\n </sd-desktop-cell>\r\n </td>\r\n <td mat-footer-cell *matFooterCellDef>\r\n <ng-container *ngIf=\"footerDef[column.field]\">\r\n <ng-container *ngTemplateOutlet=\"\r\n footerDef[column.field].templateRef;\r\n context: { items: items, column: column }\r\n \">\r\n </ng-container>\r\n </ng-container>\r\n </td>\r\n </ng-container>\r\n <ng-container *ngFor=\"let column of configuration.secondColumns; let i = index\"\r\n [matColumnDef]=\"column.field\">\r\n <th mat-header-cell *matHeaderCellDef mat-sort-header class=\"c-th px-8\"\r\n [ngStyle]=\"{ 'min-width': column.width }\">\r\n <div>\r\n <div [class.text-right]=\"column.align === 'right' || (!column.align && column.type === 'number')\"\r\n [class.text-center]=\"column.align === 'center'\" [innerHTML]=\"column.titleHtml || column.title\">\r\n </div>\r\n <sd-column-inline-filter *ngIf=\"gridOption.filter?.inlineColumn\"\r\n [value]=\"columnFilter[column.field]\" [columnFilter]=\"columnFilter\" [column]=\"column\"\r\n (filterChange)=\"onFilterChange()\">\r\n </sd-column-inline-filter>\r\n </div>\r\n </th>\r\n <td class=\"c-td px-0\" mat-cell *matCellDef=\"let item\">\r\n <sd-desktop-cell class=\"d-block px-8\" [sdId]=\"item.sdId\" [key]=\"key\" [value]=\"item[column.field]\"\r\n [column]=\"column\" [item]=\"item\" [idx]=\"i\" [cellDef]=\"cellDef\" [gridOption]=\"gridOption\">\r\n </sd-desktop-cell>\r\n </td>\r\n <td mat-footer-cell *matFooterCellDef>\r\n <ng-container *ngIf=\"footerDef[column.field]\">\r\n <ng-container *ngTemplateOutlet=\"\r\n footerDef[column.field].templateRef;\r\n context: { items: items, column: column }\r\n \">\r\n </ng-container>\r\n </ng-container>\r\n </td>\r\n </ng-container>\r\n <tr class=\"c-first-header\" mat-header-row *matHeaderRowDef=\"configuration.firstHeaders; sticky: true\">\r\n </tr>\r\n <ng-container *ngIf=\"configuration.secondHeaders?.length\">\r\n <tr class=\"c-second-header\" mat-header-row *matHeaderRowDef=\"configuration.secondHeaders; sticky: true\">\r\n </tr>\r\n </ng-container>\r\n <tr mat-row *matRowDef=\"let row; columns: configuration.displayedColumns\" matRipple class=\"c-row\"\r\n [class.selected]=\"row.isSelected\" [style]=\"row | sdStyleRowCss:gridOption\"></tr>\r\n\r\n <tr mat-row *matRowDef=\"let row; columns: ['sdSubInformation']\" class=\"c-detail-row\"></tr>\r\n <ng-container *ngIf=\"hasFooter && configuration.displayedFooters?.length\">\r\n <tr mat-footer-row *matFooterRowDef=\"configuration.displayedFooters; sticky: true\"></tr>\r\n </ng-container>\r\n </table>\r\n <ng-template #elseEmpty>\r\n <table mat-table [dataSource]=\"[{}]\">\r\n <ng-container matColumnDef=\"sdSelection\" sticky>\r\n <th class=\"px-15\" mat-header-cell *matHeaderCellDef style=\"min-width: 50px; max-width: 50px\"\r\n [attr.rowspan]=\"configuration.multipleHeader ? 2 : 1\"></th>\r\n </ng-container>\r\n <ng-container matColumnDef=\"sdEditorValidation\">\r\n <th class=\"p-0\" mat-header-cell *matHeaderCellDef style=\"width: 4px\"\r\n [attr.rowspan]=\"configuration.multipleHeader ? 2 : 1\">\r\n </th>\r\n <td class=\"p-0\" mat-cell *matCellDef=\"let item\">\r\n </td>\r\n <td mat-footer-cell *matFooterCellDef></td>\r\n </ng-container>\r\n <ng-container matColumnDef=\"sdEditor\">\r\n <th class=\"px-8 py-8\" mat-header-cell *matHeaderCellDef style=\"min-width: 50px; max-width: 50px\"\r\n [attr.rowspan]=\"configuration.multipleHeader ? 2 : 1\">\r\n <button class=\"c-btn-add\"\r\n *ngIf=\"gridOption.editor?.addable && (!gridOption.editor.limit || gridOption.editor.limit > items.length)\"\r\n (click)=\"onCreate()\" aria-hidden=\"true\" mat-icon-button>\r\n <mat-icon class=\"c-icon-add\">add</mat-icon>\r\n </button>\r\n </th>\r\n </ng-container>\r\n <ng-container matColumnDef=\"sdCommand\">\r\n <th class=\"px-8\" mat-header-cell *matHeaderCellDef style=\"min-width: 50px; max-width: 50px\"\r\n [attr.rowspan]=\"configuration.multipleHeader ? 2 : 1\"></th>\r\n </ng-container>\r\n <ng-container matColumnDef=\"sdSubInformationAction\">\r\n <th class=\"p-0\" mat-header-cell *matHeaderCellDef style=\"width: 1px\"\r\n [attr.rowspan]=\"configuration.multipleHeader ? 2 : 1\"></th>\r\n </ng-container>\r\n <ng-container matColumnDef=\"sdEmpty\">\r\n <td class=\"c-empty\" mat-cell *matCellDef=\"let item\"\r\n [attr.colspan]=\"configuration.displayedColumns.length\">\r\n <ng-container *ngIf=\"sdEmptyData?.templateRef; else sdEmptyDataNoRef\">\r\n <ng-container *ngTemplateOutlet=\"\r\n sdEmptyData.templateRef;\r\n context: { item: item }\r\n \">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #sdEmptyDataNoRef>\r\n <mat-icon fontSet=\"material-icons-outlined\">leaderboard</mat-icon>\r\n </ng-template>\r\n </td>\r\n </ng-container>\r\n <ng-container matColumnDef=\"sdGroup\">\r\n <th mat-header-cell *matHeaderCellDef class=\"px-8 py-8\"\r\n [attr.rowspan]=\"configuration.multipleHeader ? 2 : 1\">\r\n </th>\r\n <td class=\"p-0\" mat-cell *matCellDef=\"let item\">\r\n </td>\r\n <td mat-footer-cell *matFooterCellDef></td>\r\n </ng-container>\r\n <ng-container *ngFor=\"let column of configuration.columns\" [matColumnDef]=\"column.field\"\r\n [sticky]=\"configuration.fixedColumn[column.field]\">\r\n <th mat-header-cell *matHeaderCellDef class=\"c-th px-8 py-8\"\r\n [ngStyle]=\"{ 'min-width': column.width }\">\r\n <div [class.text-right]=\"column.align === 'right' || (!column.align && column.type === 'number')\"\r\n [class.text-center]=\"column.align === 'center'\" [innerHTML]=\"column.titleHtml || column.title\">\r\n </div>\r\n </th>\r\n </ng-container>\r\n <ng-container *ngFor=\"let column of configuration.firstColumns; let i = index\"\r\n [matColumnDef]=\"column.field\" [sticky]=\"configuration.fixedColumn[column.field]\">\r\n <th mat-header-cell *matHeaderCellDef class=\"c-th px-8 py-8\"\r\n [ngStyle]=\"{ 'min-width': configuration.firstColumns[i].width }\" [attr.rowspan]=\"\r\n configuration.multipleHeader &&\r\n column.type !== 'children-col'\r\n ? 2\r\n : 1\r\n \" [attr.colspan]=\"\r\n column.type === 'children-col' ? column.children?.length : 1\r\n \">\r\n <div>\r\n <div [class.text-right]=\"column.align === 'right' || (!column.align && column.type === 'number')\"\r\n [class.text-center]=\"column.align === 'center'\"\r\n [innerHTML]=\"configuration.firstColumns[i].titleHtml || configuration.firstColumns[i].title\">\r\n </div>\r\n <sd-column-inline-filter *ngIf=\"gridOption.filter?.inlineColumn\"\r\n [value]=\"columnFilter[column.field]\" [columnFilter]=\"columnFilter\" [column]=\"column\"\r\n (filterChange)=\"onFilterChange()\"></sd-column-inline-filter>\r\n </div>\r\n </th>\r\n </ng-container>\r\n <ng-container *ngFor=\"let column of configuration.secondColumns\" [matColumnDef]=\"column.field\">\r\n <th mat-header-cell *matHeaderCellDef class=\"c-th px-8 py-8\"\r\n [ngStyle]=\"{ 'min-width': column.width }\">\r\n <div>\r\n <div [class.text-right]=\"column.align === 'right' || (!column.align && column.type === 'number')\"\r\n [class.text-center]=\"column.align === 'center'\" [innerHTML]=\"column.titleHtml || column.title\">\r\n </div>\r\n <sd-column-inline-filter *ngIf=\"gridOption.filter?.inlineColumn\"\r\n [value]=\"columnFilter[column.field]\" [columnFilter]=\"columnFilter\" [column]=\"column\"\r\n (filterChange)=\"onFilterChange()\"></sd-column-inline-filter>\r\n </div>\r\n </th>\r\n </ng-container>\r\n <tr class=\"c-first-header\" mat-header-row *matHeaderRowDef=\"configuration.firstHeaders; sticky: true\">\r\n </tr>\r\n <tr class=\"c-second-header\" mat-header-row *matHeaderRowDef=\"configuration.secondHeaders; sticky: true\">\r\n </tr>\r\n <tr mat-row *matRowDef=\"let row; columns: ['sdEmpty']\"></tr>\r\n </table>\r\n </ng-template>\r\n </div>\r\n </ng-container>\r\n <div class=\"c-paginator\">\r\n <div class=\"c-action\">\r\n <sd-button *ngIf=\"\r\n !gridOption.filter?.disabled && !gridOption.filter?.inlineColumn\r\n \" class=\"mr-10\" [title]=\"'Filter' | sdTranslate\" icon=\"filter_alt\" size=\"sm\" (action)=\"gridFilter.open()\"\r\n type=\"link\">\r\n </sd-button>\r\n <sd-button *ngIf=\"gridOption.reload?.visible\" class=\"mr-10\" [title]=\"'Reload' | sdTranslate\" icon=\"refresh\"\r\n size=\"sm\" (action)=\"reload()\" [disabled]=\"!items?.length\" type=\"link\">\r\n </sd-button>\r\n <ng-container *ngIf=\"gridOption.export?.visible && items?.length\">\r\n <ng-container *ngIf=\"isExporting; else unExporting\">\r\n <sd-button class=\"mr-10\" [loading]=\"isExporting\" [title]=\"exportTitle | sdTranslate\" icon=\"get_app\"\r\n size=\"sm\" type=\"link\">\r\n </sd-button>\r\n </ng-container>\r\n <ng-template #unExporting>\r\n <sd-button class=\"mr-10\" [title]=\"exportTitle | sdTranslate\" icon=\"get_app\" size=\"sm\"\r\n [matMenuTriggerFor]=\"menu\" type=\"link\">\r\n </sd-button>\r\n </ng-template>\r\n\r\n <mat-menu #menu=\"matMenu\">\r\n <button *ngIf=\"gridOption.export?.visibleExcel !== false\" mat-menu-item\r\n (click)=\"sdPopupExport.exportDefault()\" type=\"button\">\r\n <mat-icon fontSet=\"material-icons-outlined\">file_download</mat-icon>\r\n <span> {{ \"Export excel\" | sdTranslate }}</span>\r\n </button>\r\n <button *ngIf=\"gridOption.export?.visibleCSV !== false\" mat-menu-item\r\n (click)=\"sdPopupExport.exportDefault(true)\" type=\"button\">\r\n <mat-icon fontSet=\"material-icons-outlined\">file_download</mat-icon>\r\n <span> {{ \"Export CSV\" | sdTranslate }}</span>\r\n </button>\r\n <button *ngIf=\"gridOption.export?.key\" mat-menu-item (click)=\"sdPopupExport.open()\" type=\"button\">\r\n <mat-icon fontSet=\"material-icons-outlined\">settings</mat-icon>\r\n <span> {{ \"Configure\" | sdTranslate }}</span>\r\n </button>\r\n </mat-menu>\r\n </ng-container>\r\n <sd-button *ngIf=\"gridOption.config?.visible\" class=\"mr-10\" [title]=\"'Configure' | sdTranslate\"\r\n icon=\"settings\" size=\"sm\" (action)=\"popupGridConfiguration.open()\" type=\"link\">\r\n </sd-button>\r\n </div>\r\n <mat-paginator [class.d-none]=\"gridOption.paginate?.hidden\" [length]=\"total\"\r\n [pageSize]=\"gridOption.paginate?.pageSize\" [pageSizeOptions]=\"gridOption.paginate?.pages\"\r\n [showFirstLastButtons]=\"gridOption.paginate?.showFirstLastButtons\"></mat-paginator>\r\n </div>\r\n </div>\r\n <sd-grid-quick-action [gridOption]=\"gridOption\" [selectedItems]=\"selectedItems\"\r\n (clear)=\"onClearSelection(groupedItems)\">\r\n </sd-grid-quick-action>\r\n <sd-popup-export *ngIf=\"gridOption.export?.visible\" [gridOption]=\"gridOption\" (export)=\"onExport($event)\"\r\n #sdPopupExport>\r\n </sd-popup-export>\r\n <sd-popup-grid-configuration [gridOption]=\"gridOption\" [key]=\"key\" #popupGridConfiguration>\r\n </sd-popup-grid-configuration>\r\n </ng-container>\r\n </ng-container>\r\n</ng-container>",
2948
+ template: "<ng-container *ngIf=\"gridConfigurationObserver | async as gridConfiguration\">\r\n <ng-container *ngIf=\"\r\n gridConfiguration\r\n | sdGridConfigurationResult\r\n : gridOption\r\n : sdSubInformation as configuration\r\n \">\r\n <ng-container *ngIf=\"!gridOption.filter?.disabled\">\r\n <sd-grid-filter [filter]=\"gridOption?.filter\" [columns]=\"configuration.firstColumns\" [filterDefs]=\"filterDefs\">\r\n </sd-grid-filter>\r\n </ng-container>\r\n <ng-container *ngIf=\"items | sdGroup:gridOption; $implicit as groupedItems\">\r\n <div class=\"c-container {{ gridOption?.style?.grid }}\" [ngClass]=\"{ 'mat-elevation-z2': gridOption?.shadow }\">\r\n <div class=\"c-loading\" *ngIf=\"isLoading\">\r\n <mat-spinner *ngIf=\"isLoading\"></mat-spinner>\r\n </div>\r\n <ng-container>\r\n <div class=\"c-table\" sdScroll [ngStyle]=\"{\r\n 'max-height': gridOption?.maxHeight,\r\n 'min-height': gridOption?.minHeight\r\n }\">\r\n <table *ngIf=\"items?.length; else elseEmpty\" mat-table [dataSource]=\"groupedItems\" matSort\r\n [matSortDisabled]=\"!gridOption.sortable\" cdkDropList cdkDropListOrientation=\"horizontal\"\r\n [cdkDropListDisabled]=\"!gridOption.dropDragColumnEnable\"\r\n (cdkDropListDropped)=\"drop($event, configuration.displayedColumns)\" multiTemplateDataRows>\r\n\r\n <ng-container matColumnDef=\"sdSubInformation\" sticky>\r\n <td class=\"p-0\" mat-cell *matCellDef=\"let item\" [attr.colspan]=\"configuration.displayedColumns.length\">\r\n <ng-container *ngIf=\"sdSubInformation?.templateRef\">\r\n <ng-container *ngIf=\"gridOption?.subInformation?.always;else useExpandCollapse\">\r\n <ng-container *ngTemplateOutlet=\"\r\n sdSubInformation.templateRef;\r\n context: { item: item }\r\n \">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #useExpandCollapse>\r\n <div [@detailExpand]=\"item.isExpanded ? 'expanded' : 'collapsed'\">\r\n <ng-container *ngIf=\"item.isExpanded\">\r\n <ng-container *ngTemplateOutlet=\"\r\n sdSubInformation.templateRef;\r\n context: { item: item }\r\n \">\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n </td>\r\n <td mat-footer-cell *matFooterCellDef></td>\r\n </ng-container>\r\n <ng-container matColumnDef=\"sdSubInformationAction\" stickyEnd>\r\n <th class=\"p-0\" mat-header-cell *matHeaderCellDef style=\"width: 1px\"\r\n [attr.rowspan]=\"configuration.multipleHeader ? 2 : 1\"></th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <button *ngIf=\"!element.isExpanding && !gridOption?.subInformation?.always\" mat-icon-button\r\n aria-label=\"Expand & Collapse\" (click)=\"onExpand(element)\">\r\n <mat-icon *ngIf=\"!element.isExpanded\">expand_more</mat-icon>\r\n <mat-icon *ngIf=\"element.isExpanded\">expand_less</mat-icon>\r\n </button>\r\n <div *ngIf=\"element.isExpanding\" class=\"lds-ring\">\r\n <div></div>\r\n <div></div>\r\n <div></div>\r\n <div></div>\r\n </div>\r\n </td>\r\n </ng-container>\r\n <ng-container matColumnDef=\"sdSelection\" sticky>\r\n <th class=\"text-center px-15\" mat-header-cell *matHeaderCellDef style=\"min-width: 50px; max-width: 50px\"\r\n [attr.rowspan]=\"configuration.multipleHeader ? 2 : 1\">\r\n <ng-container *ngIf=\"items | selectionVisibleSelectAll: gridOption?.selection | async\">\r\n <mat-checkbox *ngIf=\"!gridOption.selection?.single\" class=\"c-selection\" color=\"primary\"\r\n [(ngModel)]=\"isSelectAll\" (change)=\"onSelectAll()\">\r\n </mat-checkbox>\r\n </ng-container>\r\n\r\n </th>\r\n <td class=\"text-center px-15\" mat-cell *matCellDef=\"let item\" style=\"min-width: 50px; max-width: 50px\">\r\n <ng-container *ngIf=\"item | selectionVisible:gridOption?.selection\">\r\n <mat-checkbox class=\"c-selection\" color=\"primary\" [(ngModel)]=\"item.isSelected\"\r\n (change)=\"onSelect(item)\" [disabled]=\"\r\n selectedItems | selectionDisable: item:gridOption?.selection\r\n \">\r\n </mat-checkbox>\r\n </ng-container>\r\n\r\n </td>\r\n <td mat-footer-cell *matFooterCellDef></td>\r\n </ng-container>\r\n <ng-container matColumnDef=\"sdEditorValidation\">\r\n <th class=\"p-0\" mat-header-cell *matHeaderCellDef style=\"width: 2px\"\r\n [attr.rowspan]=\"configuration.multipleHeader ? 2 : 1\">\r\n </th>\r\n <td class=\"p-0 position-relative\" mat-cell *matCellDef=\"let item; index as idx\">\r\n <sd-desktop-editor-validation [sdId]=\"item.sdId\" [item]=\"item\" [items]=\"items\"\r\n [gridOption]=\"gridOption\">\r\n </sd-desktop-editor-validation>\r\n </td>\r\n <td mat-footer-cell *matFooterCellDef></td>\r\n </ng-container>\r\n <ng-container matColumnDef=\"sdEditor\">\r\n <th class=\"px-8 py-8\" mat-header-cell *matHeaderCellDef style=\"width: 50px\"\r\n [attr.rowspan]=\"configuration.multipleHeader ? 2 : 1\">\r\n <button class=\"c-btn-add\"\r\n *ngIf=\"gridOption.editor?.addable && (!gridOption.editor.limit || gridOption.editor.limit > items.length)\"\r\n (click)=\"onCreate()\" aria-hidden=\"true\" mat-icon-button>\r\n <mat-icon class=\"c-icon-add\">add</mat-icon>\r\n </button>\r\n </th>\r\n <td class=\"px-8\" mat-cell *matCellDef=\"let item; index as idx\">\r\n <ng-container *sdLet=\"item.editorStatus | sdEditorHandlerRow:item:gridOption as editorHandler\">\r\n <div *ngIf=\"editorHandler\" class=\"d-flex align-items-center justify-content-center\">\r\n <button *ngIf=\"editorHandler.editable\" class=\"mx-2\" (click)=\"onUpdate(item)\" aria-hidden=\"true\"\r\n mat-icon-button>\r\n <mat-icon class=\"c-icon\">edit</mat-icon>\r\n </button>\r\n <button *ngIf=\"editorHandler.removable\" class=\"mx-2\" (click)=\"onRemove(item)\" aria-hidden=\"true\"\r\n mat-icon-button>\r\n <mat-icon class=\"c-icon\">delete</mat-icon>\r\n </button>\r\n <button *ngIf=\"editorHandler.savable\" class=\"mx-2\" (click)=\"onSave(item)\" aria-hidden=\"true\"\r\n mat-icon-button>\r\n <mat-icon class=\"c-icon\">save</mat-icon>\r\n </button>\r\n <button *ngIf=\"editorHandler.cancelable\" class=\"mx-2\" (click)=\"onCancel(item)\" aria-hidden=\"true\"\r\n mat-icon-button>\r\n <mat-icon class=\"c-icon\">close</mat-icon>\r\n </button>\r\n </div>\r\n </ng-container>\r\n </td>\r\n <td mat-footer-cell *matFooterCellDef></td>\r\n </ng-container>\r\n <ng-container matColumnDef=\"sdCommand\">\r\n <th class=\"px-8 py-8\" mat-header-cell *matHeaderCellDef style=\"width: 50px\"\r\n [attr.rowspan]=\"configuration.multipleHeader ? 2 : 1\"></th>\r\n <td class=\"px-8\" mat-cell *matCellDef=\"let item\">\r\n <sd-desktop-command [commands]=\"gridOption.commands\" [item]=\"item\"></sd-desktop-command>\r\n </td>\r\n <td mat-footer-cell *matFooterCellDef></td>\r\n </ng-container>\r\n <ng-container matColumnDef=\"sdGroup\">\r\n <th mat-header-cell *matHeaderCellDef class=\"px-8 py-8\"\r\n [attr.rowspan]=\"configuration.multipleHeader ? 2 : 1\">\r\n </th>\r\n <td class=\"p-0\" mat-cell *matCellDef=\"let item\"\r\n [attr.colspan]=\"!item?.sdGroup ? 1 : configuration.displayedColumns.length\">\r\n <div [innerHtml]=\"item?.sdGroup?.htmlTemplate | safeHtml\">\r\n </div>\r\n </td>\r\n <td mat-footer-cell *matFooterCellDef></td>\r\n </ng-container>\r\n <ng-container *ngFor=\"let column of configuration.firstColumns; let i = index\"\r\n [matColumnDef]=\"column.field\" [sticky]=\"configuration.fixedColumn[column.field]\">\r\n <th mat-header-cell *matHeaderCellDef cdkDrag class=\"px-8 py-8 c-th\"\r\n [ngStyle]=\"{ 'min-width': configuration.firstColumns[i].width }\" [attr.rowspan]=\"\r\n configuration.multipleHeader && column.type !== 'children-col'\r\n ? 2\r\n : 1\r\n \" [attr.colspan]=\"\r\n column.type === 'children-col' ? column.children?.length : 1\r\n \">\r\n <div>\r\n <div aria-hidden=\"false\" role=\"presentation\" mat-sort-header [disabled]=\"\r\n !column.sortable || column.type === 'children-col'\r\n \" [class.text-right]=\"column.align === 'right' || (!column.align && column.type === 'number')\"\r\n [class.text-center]=\"column.align === 'center'\"\r\n [innerHTML]=\"configuration.firstColumns[i].titleHtml || configuration.firstColumns[i].title\">\r\n </div>\r\n <sd-column-inline-filter *ngIf=\"gridOption.filter?.inlineColumn\"\r\n [value]=\"columnFilter[column.field]\" [columnFilter]=\"columnFilter\" [column]=\"column\"\r\n (filterChange)=\"onFilterChange()\">\r\n </sd-column-inline-filter>\r\n </div>\r\n </th>\r\n <td class=\"c-td px-0\" mat-cell *matCellDef=\"let item\">\r\n <sd-desktop-cell class=\"d-block px-8\" *ngIf=\"!item?.sdGroup\" [sdId]=\"item.sdId\" [key]=\"key\"\r\n [value]=\"item[column.field]\" [column]=\"column\" [item]=\"item\" [idx]=\"i\" [cellDef]=\"cellDef\"\r\n [gridOption]=\"gridOption\">\r\n </sd-desktop-cell>\r\n </td>\r\n <td mat-footer-cell *matFooterCellDef>\r\n <ng-container *ngIf=\"footerDef[column.field]\">\r\n <ng-container *ngTemplateOutlet=\"\r\n footerDef[column.field].templateRef;\r\n context: { items: items, column: column }\r\n \">\r\n </ng-container>\r\n </ng-container>\r\n </td>\r\n </ng-container>\r\n <ng-container *ngFor=\"let column of configuration.secondColumns; let i = index\"\r\n [matColumnDef]=\"column.field\">\r\n <th mat-header-cell *matHeaderCellDef mat-sort-header class=\"c-th px-8\"\r\n [ngStyle]=\"{ 'min-width': column.width }\">\r\n <div>\r\n <div [class.text-right]=\"column.align === 'right' || (!column.align && column.type === 'number')\"\r\n [class.text-center]=\"column.align === 'center'\" [innerHTML]=\"column.titleHtml || column.title\">\r\n </div>\r\n <sd-column-inline-filter *ngIf=\"gridOption.filter?.inlineColumn\"\r\n [value]=\"columnFilter[column.field]\" [columnFilter]=\"columnFilter\" [column]=\"column\"\r\n (filterChange)=\"onFilterChange()\">\r\n </sd-column-inline-filter>\r\n </div>\r\n </th>\r\n <td class=\"c-td px-0\" mat-cell *matCellDef=\"let item\">\r\n <sd-desktop-cell class=\"d-block px-8\" [sdId]=\"item.sdId\" [key]=\"key\" [value]=\"item[column.field]\"\r\n [column]=\"column\" [item]=\"item\" [idx]=\"i\" [cellDef]=\"cellDef\" [gridOption]=\"gridOption\">\r\n </sd-desktop-cell>\r\n </td>\r\n <td mat-footer-cell *matFooterCellDef>\r\n <ng-container *ngIf=\"footerDef[column.field]\">\r\n <ng-container *ngTemplateOutlet=\"\r\n footerDef[column.field].templateRef;\r\n context: { items: items, column: column }\r\n \">\r\n </ng-container>\r\n </ng-container>\r\n </td>\r\n </ng-container>\r\n <tr class=\"c-first-header\" mat-header-row *matHeaderRowDef=\"configuration.firstHeaders; sticky: true\">\r\n </tr>\r\n <ng-container *ngIf=\"configuration.secondHeaders?.length\">\r\n <tr class=\"c-second-header\" mat-header-row *matHeaderRowDef=\"configuration.secondHeaders; sticky: true\">\r\n </tr>\r\n </ng-container>\r\n <tr mat-row *matRowDef=\"let row; columns: configuration.displayedColumns\" matRipple class=\"c-row\"\r\n [class.selected]=\"row.isSelected\" [style]=\"row | sdStyleRowCss:gridOption\"></tr>\r\n\r\n <tr mat-row *matRowDef=\"let row; columns: ['sdSubInformation']\" class=\"c-detail-row\"></tr>\r\n <ng-container *ngIf=\"hasFooter && configuration.displayedFooters?.length\">\r\n <tr mat-footer-row *matFooterRowDef=\"configuration.displayedFooters; sticky: true\"></tr>\r\n </ng-container>\r\n </table>\r\n <ng-template #elseEmpty>\r\n <table mat-table [dataSource]=\"[{}]\">\r\n <ng-container matColumnDef=\"sdSelection\" sticky>\r\n <th class=\"px-15\" mat-header-cell *matHeaderCellDef style=\"min-width: 50px; max-width: 50px\"\r\n [attr.rowspan]=\"configuration.multipleHeader ? 2 : 1\"></th>\r\n </ng-container>\r\n <ng-container matColumnDef=\"sdEditorValidation\">\r\n <th class=\"p-0\" mat-header-cell *matHeaderCellDef style=\"width: 4px\"\r\n [attr.rowspan]=\"configuration.multipleHeader ? 2 : 1\">\r\n </th>\r\n <td class=\"p-0\" mat-cell *matCellDef=\"let item\">\r\n </td>\r\n <td mat-footer-cell *matFooterCellDef></td>\r\n </ng-container>\r\n <ng-container matColumnDef=\"sdEditor\">\r\n <th class=\"px-8 py-8\" mat-header-cell *matHeaderCellDef style=\"min-width: 50px; max-width: 50px\"\r\n [attr.rowspan]=\"configuration.multipleHeader ? 2 : 1\">\r\n <button class=\"c-btn-add\"\r\n *ngIf=\"gridOption.editor?.addable && (!gridOption.editor.limit || gridOption.editor.limit > items.length)\"\r\n (click)=\"onCreate()\" aria-hidden=\"true\" mat-icon-button>\r\n <mat-icon class=\"c-icon-add\">add</mat-icon>\r\n </button>\r\n </th>\r\n </ng-container>\r\n <ng-container matColumnDef=\"sdCommand\">\r\n <th class=\"px-8\" mat-header-cell *matHeaderCellDef style=\"min-width: 50px; max-width: 50px\"\r\n [attr.rowspan]=\"configuration.multipleHeader ? 2 : 1\"></th>\r\n </ng-container>\r\n <ng-container matColumnDef=\"sdSubInformationAction\">\r\n <th class=\"p-0\" mat-header-cell *matHeaderCellDef style=\"width: 1px\"\r\n [attr.rowspan]=\"configuration.multipleHeader ? 2 : 1\"></th>\r\n </ng-container>\r\n <ng-container matColumnDef=\"sdEmpty\">\r\n <td class=\"c-empty\" mat-cell *matCellDef=\"let item\"\r\n [attr.colspan]=\"configuration.displayedColumns.length\">\r\n <ng-container *ngIf=\"sdEmptyData?.templateRef; else sdEmptyDataNoRef\">\r\n <ng-container *ngTemplateOutlet=\"\r\n sdEmptyData.templateRef;\r\n context: { item: item }\r\n \">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #sdEmptyDataNoRef>\r\n <mat-icon fontSet=\"material-icons-outlined\">leaderboard</mat-icon>\r\n </ng-template>\r\n </td>\r\n </ng-container>\r\n <ng-container matColumnDef=\"sdGroup\">\r\n <th mat-header-cell *matHeaderCellDef class=\"px-8 py-8\"\r\n [attr.rowspan]=\"configuration.multipleHeader ? 2 : 1\">\r\n </th>\r\n <td class=\"p-0\" mat-cell *matCellDef=\"let item\">\r\n </td>\r\n <td mat-footer-cell *matFooterCellDef></td>\r\n </ng-container>\r\n <ng-container *ngFor=\"let column of configuration.columns\" [matColumnDef]=\"column.field\"\r\n [sticky]=\"configuration.fixedColumn[column.field]\">\r\n <th mat-header-cell *matHeaderCellDef class=\"c-th px-8 py-8\"\r\n [ngStyle]=\"{ 'min-width': column.width }\">\r\n <div [class.text-right]=\"column.align === 'right' || (!column.align && column.type === 'number')\"\r\n [class.text-center]=\"column.align === 'center'\" [innerHTML]=\"column.titleHtml || column.title\">\r\n </div>\r\n </th>\r\n </ng-container>\r\n <ng-container *ngFor=\"let column of configuration.firstColumns; let i = index\"\r\n [matColumnDef]=\"column.field\" [sticky]=\"configuration.fixedColumn[column.field]\">\r\n <th mat-header-cell *matHeaderCellDef class=\"c-th px-8 py-8\"\r\n [ngStyle]=\"{ 'min-width': configuration.firstColumns[i].width }\" [attr.rowspan]=\"\r\n configuration.multipleHeader &&\r\n column.type !== 'children-col'\r\n ? 2\r\n : 1\r\n \" [attr.colspan]=\"\r\n column.type === 'children-col' ? column.children?.length : 1\r\n \">\r\n <div>\r\n <div [class.text-right]=\"column.align === 'right' || (!column.align && column.type === 'number')\"\r\n [class.text-center]=\"column.align === 'center'\"\r\n [innerHTML]=\"configuration.firstColumns[i].titleHtml || configuration.firstColumns[i].title\">\r\n </div>\r\n <sd-column-inline-filter *ngIf=\"gridOption.filter?.inlineColumn\"\r\n [value]=\"columnFilter[column.field]\" [columnFilter]=\"columnFilter\" [column]=\"column\"\r\n (filterChange)=\"onFilterChange()\"></sd-column-inline-filter>\r\n </div>\r\n </th>\r\n </ng-container>\r\n <ng-container *ngFor=\"let column of configuration.secondColumns\" [matColumnDef]=\"column.field\">\r\n <th mat-header-cell *matHeaderCellDef class=\"c-th px-8 py-8\"\r\n [ngStyle]=\"{ 'min-width': column.width }\">\r\n <div>\r\n <div [class.text-right]=\"column.align === 'right' || (!column.align && column.type === 'number')\"\r\n [class.text-center]=\"column.align === 'center'\" [innerHTML]=\"column.titleHtml || column.title\">\r\n </div>\r\n <sd-column-inline-filter *ngIf=\"gridOption.filter?.inlineColumn\"\r\n [value]=\"columnFilter[column.field]\" [columnFilter]=\"columnFilter\" [column]=\"column\"\r\n (filterChange)=\"onFilterChange()\"></sd-column-inline-filter>\r\n </div>\r\n </th>\r\n </ng-container>\r\n <tr class=\"c-first-header\" mat-header-row *matHeaderRowDef=\"configuration.firstHeaders; sticky: true\">\r\n </tr>\r\n <tr class=\"c-second-header\" mat-header-row *matHeaderRowDef=\"configuration.secondHeaders; sticky: true\">\r\n </tr>\r\n <tr mat-row *matRowDef=\"let row; columns: ['sdEmpty']\"></tr>\r\n </table>\r\n </ng-template>\r\n </div>\r\n </ng-container>\r\n <div class=\"c-paginator\">\r\n <div class=\"c-action\">\r\n <sd-button *ngIf=\"\r\n !gridOption.filter?.disabled && !gridOption.filter?.inlineColumn\r\n \" class=\"mr-10\" [title]=\"'Filter' | sdTranslate\" icon=\"filter_alt\" size=\"sm\" (action)=\"gridFilter.open()\"\r\n type=\"link\">\r\n </sd-button>\r\n <sd-button *ngIf=\"gridOption.reload?.visible\" class=\"mr-10\" [title]=\"'Reload' | sdTranslate\" icon=\"refresh\"\r\n size=\"sm\" (action)=\"reload()\" [disabled]=\"!items?.length\" type=\"link\">\r\n </sd-button>\r\n <ng-container *ngIf=\"gridOption.export?.visible && items?.length\">\r\n <ng-container *ngIf=\"isExporting; else unExporting\">\r\n <sd-button class=\"mr-10\" [loading]=\"isExporting\" [title]=\"exportTitle | sdTranslate\" icon=\"get_app\"\r\n size=\"sm\" type=\"link\">\r\n </sd-button>\r\n </ng-container>\r\n <ng-template #unExporting>\r\n <sd-button class=\"mr-10\" [title]=\"exportTitle | sdTranslate\" icon=\"get_app\" size=\"sm\"\r\n [matMenuTriggerFor]=\"menu\" type=\"link\">\r\n </sd-button>\r\n </ng-template>\r\n\r\n <mat-menu #menu=\"matMenu\">\r\n <button *ngIf=\"gridOption.export?.visibleExcel !== false\" mat-menu-item\r\n (click)=\"sdPopupExport.exportDefault()\" type=\"button\">\r\n <mat-icon fontSet=\"material-icons-outlined\">file_download</mat-icon>\r\n <span> {{ \"Export excel\" | sdTranslate }}</span>\r\n </button>\r\n <button *ngIf=\"gridOption.export?.visibleCSV !== false\" mat-menu-item\r\n (click)=\"sdPopupExport.exportDefault(true)\" type=\"button\">\r\n <mat-icon fontSet=\"material-icons-outlined\">file_download</mat-icon>\r\n <span> {{ \"Export CSV\" | sdTranslate }}</span>\r\n </button>\r\n <button *ngIf=\"gridOption.export?.key\" mat-menu-item (click)=\"sdPopupExport.open()\" type=\"button\">\r\n <mat-icon fontSet=\"material-icons-outlined\">settings</mat-icon>\r\n <span> {{ \"Configure\" | sdTranslate }}</span>\r\n </button>\r\n </mat-menu>\r\n </ng-container>\r\n <sd-button *ngIf=\"gridOption.config?.visible\" class=\"mr-10\" [title]=\"'Configure' | sdTranslate\"\r\n icon=\"settings\" size=\"sm\" (action)=\"popupGridConfiguration.open()\" type=\"link\">\r\n </sd-button>\r\n </div>\r\n <mat-paginator [class.d-none]=\"gridOption.paginate?.hidden\" [length]=\"total\"\r\n [pageSize]=\"gridOption.paginate?.pageSize\" [pageSizeOptions]=\"gridOption.paginate?.pages\"\r\n [showFirstLastButtons]=\"gridOption.paginate?.showFirstLastButtons\"></mat-paginator>\r\n </div>\r\n </div>\r\n <sd-grid-quick-action [gridOption]=\"gridOption\" [selectedItems]=\"selectedItems\"\r\n (clear)=\"onClearSelection(groupedItems)\">\r\n </sd-grid-quick-action>\r\n <sd-popup-export *ngIf=\"gridOption.export?.visible\" [configuration]=\"configuration\" [gridOption]=\"gridOption\" (export)=\"onExport($event)\"\r\n #sdPopupExport>\r\n </sd-popup-export>\r\n <sd-popup-grid-configuration [gridOption]=\"gridOption\" [key]=\"key\" #popupGridConfiguration>\r\n </sd-popup-grid-configuration>\r\n </ng-container>\r\n </ng-container>\r\n</ng-container>",
2961
2949
  animations: [
2962
2950
  animations.trigger('detailExpand', [
2963
2951
  animations.state('collapsed', animations.style({ height: '0', minHeight: '0', visibility: 'hidden' })),