@snack-uikit/table 0.37.18-preview-2474c43b.0 → 0.37.18

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/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## <small>0.37.18 (2025-11-26)</small>
7
+
8
+ * fix(HCE-284): export table, set column width to maximum content length ([cc1f55b](https://github.com/cloud-ru-tech/snack-uikit/commit/cc1f55b))
9
+
10
+
11
+
12
+
13
+
6
14
  ## <small>0.37.17 (2025-11-25)</small>
7
15
 
8
16
  * fix(HCE-284): fix array handling in Excel and CSV export table ([db438a0](https://github.com/cloud-ru-tech/snack-uikit/commit/db438a0))
@@ -1,5 +1,5 @@
1
1
  import { ColumnDefinition } from './types';
2
- type ExportTableData<TData> = {
2
+ export type ExportTableData<TData> = {
3
3
  data: TData[];
4
4
  columnDefinitions: ColumnDefinition<TData>[];
5
5
  fileName?: string;
@@ -7,4 +7,3 @@ type ExportTableData<TData> = {
7
7
  };
8
8
  export declare function exportToCSV<TData extends object>({ columnDefinitions, fileName, data, }: ExportTableData<TData>): string;
9
9
  export declare function exportToXLSX<TData extends object>({ columnDefinitions, fileName, autoFitColumns, data, }: ExportTableData<TData>): import("xlsx").WorkSheet;
10
- export {};
@@ -1,5 +1,5 @@
1
1
  import { ColumnDefinition } from './types';
2
- type ExportTableData<TData> = {
2
+ export type ExportTableData<TData> = {
3
3
  data: TData[];
4
4
  columnDefinitions: ColumnDefinition<TData>[];
5
5
  fileName?: string;
@@ -7,4 +7,3 @@ type ExportTableData<TData> = {
7
7
  };
8
8
  export declare function exportToCSV<TData extends object>({ columnDefinitions, fileName, data, }: ExportTableData<TData>): string;
9
9
  export declare function exportToXLSX<TData extends object>({ columnDefinitions, fileName, autoFitColumns, data, }: ExportTableData<TData>): import("xlsx").WorkSheet;
10
- export {};
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "title": "Table",
7
- "version": "0.37.18-preview-2474c43b.0",
7
+ "version": "0.37.18",
8
8
  "sideEffects": [
9
9
  "*.css",
10
10
  "*.woff",
@@ -65,5 +65,5 @@
65
65
  "peerDependencies": {
66
66
  "@snack-uikit/locale": "*"
67
67
  },
68
- "gitHead": "e523bdbe240b8d5ce68ea2c45d772a400a11fe69"
68
+ "gitHead": "8901426ca6a1c3525d9f7ba8c7fb3d0de42041d3"
69
69
  }
@@ -5,7 +5,7 @@ import { isBrowser } from '@snack-uikit/utils';
5
5
  import { EXPORT_MAX_COLUMN_WIDTH } from './constants';
6
6
  import { ColumnDefinition } from './types';
7
7
 
8
- type ExportTableData<TData> = {
8
+ export type ExportTableData<TData> = {
9
9
  data: TData[];
10
10
  columnDefinitions: ColumnDefinition<TData>[];
11
11
  fileName?: string;