@snack-uikit/table 0.12.2-preview-0cc330d4.0 → 0.13.0

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,22 @@
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
+ # 0.13.0 (2024-02-07)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **FF-4187:** change local no data to InfoBlock ([542cf0d](https://github.com/cloud-ru-tech/snack-uikit/commit/542cf0de8fed7f4ab5e2bca3afff1318b30a6043))
12
+
13
+
14
+ ### Features
15
+
16
+ * **FF-4241:** add ServerTable; add CopyCell ([2cf16c1](https://github.com/cloud-ru-tech/snack-uikit/commit/2cf16c15e72a93f20d40c1bc54d7708c1a273079))
17
+
18
+
19
+
20
+
21
+
6
22
  ## 0.12.1 (2024-02-07)
7
23
 
8
24
  ### Only dependencies have been changed
@@ -12,7 +12,7 @@ export type RowActionProps<TData> = Pick<BaseItemProps, 'content' | 'disabled'>
12
12
  tagLabel?: string;
13
13
  id?: string;
14
14
  hidden?: boolean;
15
- onClick(row: RowActionInfo<TData>, e: MouseEvent<HTMLButtonElement>): void;
15
+ onClick(row: RowActionInfo<TData>, e: MouseEvent<HTMLElement>): void;
16
16
  };
17
17
  export type ActionsGenerator<TData> = (cell: CellContext<TData, unknown>) => RowActionProps<TData>[];
18
18
  export type RowActionsColumnDefProps<TData> = {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "title": "Table",
7
- "version": "0.12.2-preview-0cc330d4.0",
7
+ "version": "0.13.0",
8
8
  "sideEffects": [
9
9
  "*.css",
10
10
  "*.woff",
@@ -37,14 +37,14 @@
37
37
  "@snack-uikit/icon-predefined": "0.4.1",
38
38
  "@snack-uikit/icons": "0.20.1",
39
39
  "@snack-uikit/info-block": "0.1.1",
40
- "@snack-uikit/list": "0.2.2-preview-0cc330d4.0",
40
+ "@snack-uikit/list": "0.3.0",
41
41
  "@snack-uikit/locale": "0.1.1",
42
42
  "@snack-uikit/pagination": "0.6.3",
43
43
  "@snack-uikit/scroll": "0.5.0",
44
44
  "@snack-uikit/skeleton": "0.3.2",
45
45
  "@snack-uikit/tag": "0.7.2",
46
46
  "@snack-uikit/toggles": "0.9.5",
47
- "@snack-uikit/toolbar": "0.7.7-preview-0cc330d4.0",
47
+ "@snack-uikit/toolbar": "0.7.7",
48
48
  "@snack-uikit/truncate-string": "0.4.7",
49
49
  "@snack-uikit/typography": "0.6.1",
50
50
  "@snack-uikit/utils": "3.2.0",
@@ -56,5 +56,5 @@
56
56
  "uncontrollable": "8.0.0",
57
57
  "xlsx": "https://cdn.sheetjs.com/xlsx-0.20.1/xlsx-0.20.1.tgz"
58
58
  },
59
- "gitHead": "1793fab65c6cfb47e3a67e457f5a1d7156ccd452"
59
+ "gitHead": "88a44a8f4c6490f3004f7feac3d50d17ff03f31c"
60
60
  }
@@ -22,7 +22,7 @@ export type RowActionProps<TData> = Pick<BaseItemProps, 'content' | 'disabled'>
22
22
  tagLabel?: string;
23
23
  id?: string;
24
24
  hidden?: boolean;
25
- onClick(row: RowActionInfo<TData>, e: MouseEvent<HTMLButtonElement>): void;
25
+ onClick(row: RowActionInfo<TData>, e: MouseEvent<HTMLElement>): void;
26
26
  };
27
27
 
28
28
  type RowActionsCellProps<TData> = {
@@ -34,7 +34,7 @@ function RowActionsCell<TData>({ row, actions }: RowActionsCellProps<TData>) {
34
34
  const { droplistOpened, setDroplistOpen } = useRowContext();
35
35
  const triggerRef = useRef(null);
36
36
 
37
- const handleItemClick = (item: RowActionProps<TData>) => (e: MouseEvent<HTMLButtonElement>) => {
37
+ const handleItemClick = (item: RowActionProps<TData>) => (e: MouseEvent<HTMLElement>) => {
38
38
  item.onClick({ rowId: row.id, itemId: item.id, data: row.original }, e);
39
39
  };
40
40