@mdspl/mds-shared-ui 1.4.8 → 1.5.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/dist/index.cjs +4 -4
- package/dist/index.d.ts +10 -1
- package/dist/index.js +1941 -1844
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -64,6 +64,15 @@ declare interface DataColumn<T> extends BaseColumn {
|
|
|
64
64
|
render?: (row: T) => default_2.ReactNode;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
+
declare interface DataItem {
|
|
68
|
+
id: string;
|
|
69
|
+
name?: string;
|
|
70
|
+
cp_code?: string;
|
|
71
|
+
label?: string;
|
|
72
|
+
identifier?: string;
|
|
73
|
+
group_type: 'mo' | 'district' | 'partner';
|
|
74
|
+
}
|
|
75
|
+
|
|
67
76
|
export declare function DataTable<T extends {
|
|
68
77
|
id: string | number;
|
|
69
78
|
}>({ tableId, data: rowData, headers, loading, loadingChildren, skeletonLoading, emptyMessage, page, pageSize, onPageChange, onPageSizeChange, density, totalCount, pageSizeOptions, onRowSelect, onRowSelectEvent, enableColumnVisibility, dataType, manualPagination, }: ExtendedDataTableProps<T>): JSX_2.Element;
|
|
@@ -128,7 +137,7 @@ export declare const getPresets: (pageKey: string) => PresetItem[];
|
|
|
128
137
|
|
|
129
138
|
export declare interface GroupedComboboxProps {
|
|
130
139
|
baseURL: string;
|
|
131
|
-
filterKey?:
|
|
140
|
+
filterKey?: DataItem['group_type'];
|
|
132
141
|
placeholder?: string;
|
|
133
142
|
label?: string;
|
|
134
143
|
}
|