@cobre-npm/ds-v3 0.75.1 → 0.75.3

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.
File without changes
File without changes
File without changes
@@ -1,15 +1,8 @@
1
- export interface Action {
2
- id: string;
3
- label?: string;
4
- icon: string;
5
- tooltipText?: string;
6
- onClick?: () => void | undefined;
7
- eventName?: string;
8
- feedback?: boolean;
9
- }
1
+ import { RowAction } from "./interfaces/CobreRowActions.interface";
10
2
  type __VLS_Props = {
11
- actions: Action[];
3
+ actions: RowAction[];
12
4
  visible: boolean;
5
+ rowData?: unknown;
13
6
  };
14
7
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
15
8
  action: (payload: string) => any;
@@ -0,0 +1,9 @@
1
+ export interface RowAction<T = unknown> {
2
+ id: string;
3
+ label?: string;
4
+ icon: string;
5
+ tooltipText?: string;
6
+ onClick?: (rowData: T) => void | undefined;
7
+ eventName?: string;
8
+ feedback?: boolean;
9
+ }
@@ -1,5 +1,5 @@
1
1
  import { Option } from '../CobreKebabMenu/CobreKebabMenu.vue';
2
- import { Action } from '../../atoms/CobreRowActions/CobreRowActions.vue';
2
+ import { RowAction } from "../../atoms/CobreRowActions/interfaces/CobreRowActions.interface";
3
3
  export interface Column {
4
4
  key: string;
5
5
  width: number;
@@ -35,7 +35,7 @@ interface Props {
35
35
  isToolbarOpen?: boolean;
36
36
  kebabMenuOptions?: Option[];
37
37
  tableWrap?: boolean;
38
- rowActions?: Action[];
38
+ rowActions?: RowAction[];
39
39
  }
40
40
  type __VLS_Props = Props;
41
41
  declare const __VLS_defaults: {
package/dist/vite.svg CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cobre-npm/ds-v3",
3
- "version": "0.75.1",
3
+ "version": "0.75.3",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"