ikon-react-components-lib 1.0.4 → 1.0.5
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/dist/index.d.ts
CHANGED
|
@@ -314,6 +314,8 @@ export declare type ColumnsProps<TData, TValue = unknown> = ColumnDef<TData, TVa
|
|
|
314
314
|
accessorKey?: keyof TData;
|
|
315
315
|
cell?: (row: TData) => React.ReactNode;
|
|
316
316
|
footer?: (row: TData) => React.ReactNode;
|
|
317
|
+
filterFns?: string | "multiSelect";
|
|
318
|
+
draggable?: boolean | undefined;
|
|
317
319
|
};
|
|
318
320
|
|
|
319
321
|
export declare function ComboboxInput({ placeholder, items, disabled, onSelect, defaultValue }: ComboBoxInputProps): JSX.Element;
|
|
@@ -442,22 +444,12 @@ export declare interface DataTableFilterProps<TData> {
|
|
|
442
444
|
table: Table_2<TData>;
|
|
443
445
|
}
|
|
444
446
|
|
|
445
|
-
export declare function DataTableLayout<T>({ data, columns,
|
|
447
|
+
export declare function DataTableLayout<T>({ data, columns, extraTools }: DataTableLayoutProps<T>): JSX.Element;
|
|
446
448
|
|
|
447
449
|
export declare interface DataTableLayoutProps<T> {
|
|
448
450
|
data: T[];
|
|
449
451
|
columns: ColumnsProps<T, unknown>[];
|
|
450
|
-
|
|
451
|
-
toggleViewMode?: boolean;
|
|
452
|
-
hiddenColumns?: string[];
|
|
453
|
-
filterComponent?: React.ReactNode;
|
|
454
|
-
actionNode?: React.ReactNode;
|
|
455
|
-
onRowClick?: (row: T) => void;
|
|
456
|
-
gridComponent?: (data: T[]) => React.ReactNode;
|
|
457
|
-
isLoading?: boolean;
|
|
458
|
-
onReload?: () => void;
|
|
459
|
-
showFooter?: boolean;
|
|
460
|
-
footerLabel?: string;
|
|
452
|
+
extraTools?: ExtraPrams<T>;
|
|
461
453
|
}
|
|
462
454
|
|
|
463
455
|
export declare function DataTablePagination<TData>({ table, extraParams, }: DataTablePaginationProps<TData>): JSX.Element;
|
|
@@ -642,6 +634,19 @@ export declare interface ExtraParamsEvent {
|
|
|
642
634
|
margin?: string;
|
|
643
635
|
}
|
|
644
636
|
|
|
637
|
+
export declare type ExtraPrams<T> = {
|
|
638
|
+
totalPages: number;
|
|
639
|
+
toggleViewMode?: boolean;
|
|
640
|
+
hiddenColumns?: string[];
|
|
641
|
+
actionNode?: React.ReactNode;
|
|
642
|
+
gridComponent?: (data: T[]) => React.ReactNode;
|
|
643
|
+
isLoading?: boolean;
|
|
644
|
+
onReload?: () => void;
|
|
645
|
+
showFooter?: boolean;
|
|
646
|
+
footerLabel?: string;
|
|
647
|
+
fileName?: string;
|
|
648
|
+
};
|
|
649
|
+
|
|
645
650
|
declare interface FileinfoProps {
|
|
646
651
|
resourceId: string;
|
|
647
652
|
resourceName?: string;
|
|
@@ -1096,8 +1101,8 @@ declare interface RefreshContextType {
|
|
|
1096
1101
|
|
|
1097
1102
|
export declare function Reload({ isLoading, onReload, errorMessage, }: ReloadProps): JSX.Element | null;
|
|
1098
1103
|
|
|
1099
|
-
declare interface ReloadProps {
|
|
1100
|
-
isLoading: boolean;
|
|
1104
|
+
export declare interface ReloadProps {
|
|
1105
|
+
isLoading: boolean | undefined;
|
|
1101
1106
|
onReload?: () => void;
|
|
1102
1107
|
errorMessage?: string;
|
|
1103
1108
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ikon-react-components-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.5",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/ikon-react-components-lib.cjs.js",
|
|
7
7
|
"module": "./dist/ikon-react-components-lib.es.js",
|
|
@@ -82,6 +82,7 @@
|
|
|
82
82
|
"use-debounce": "^10.1.1",
|
|
83
83
|
"uuid": "^13.0.0",
|
|
84
84
|
"vaul": "^1.1.2",
|
|
85
|
+
"xlsx": "^0.18.5",
|
|
85
86
|
"zod": "^4.3.6",
|
|
86
87
|
"zxcvbn": "^4.4.2"
|
|
87
88
|
},
|