@mdspl/mds-shared-ui 1.4.7 → 1.4.9
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 +18 -0
- package/dist/index.js +2692 -2539
- 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;
|
|
@@ -126,6 +135,15 @@ export declare function getOption<T = any>(client: OptionsClient, key: string):
|
|
|
126
135
|
|
|
127
136
|
export declare const getPresets: (pageKey: string) => PresetItem[];
|
|
128
137
|
|
|
138
|
+
export declare interface GroupedComboboxProps {
|
|
139
|
+
baseURL: string;
|
|
140
|
+
filterKey?: DataItem['group_type'];
|
|
141
|
+
placeholder?: string;
|
|
142
|
+
label?: string;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export declare const GroupedDataCombobox: ({ baseURL, filterKey, placeholder, label, }: GroupedComboboxProps) => JSX_2.Element;
|
|
146
|
+
|
|
129
147
|
export declare class HttpOptionsApi implements OptionsApi {
|
|
130
148
|
private baseUrl;
|
|
131
149
|
constructor(baseUrl: string);
|