flameresttable 1.0.69 → 1.0.70

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flameresttable",
3
- "version": "1.0.69",
3
+ "version": "1.0.70",
4
4
  "main": "./src/plugin.ts",
5
5
  "repository": {
6
6
  "type": "git",
@@ -224,7 +224,7 @@ export default class FlameTable<T> {
224
224
  // Файл: скачиваем
225
225
  if (typeof this.opts.customDownloadHandler === 'function') {
226
226
  // Кастомный загрузчик
227
- this.opts.customDownloadHandler((rows as any).data)
227
+ this.opts.customDownloadHandler((rows as any).data, exportFilename)
228
228
  }
229
229
  else {
230
230
  // Нативный загрузчик через браузер
@@ -46,7 +46,7 @@ export default class TableOpts {
46
46
  /**
47
47
  * Кастомный загрузчик файлов
48
48
  */
49
- public customDownloadHandler: null | ((data: string) => void) = null;
49
+ public customDownloadHandler: null | ((data: string, filename: string) => void) = null;
50
50
 
51
51
  /**
52
52
  * Добавить виртуальный столбец (не будет учтён в запросах, но будет передан на бек для кастомизации фильтров)