@mcurros2/microm 1.1.324-0 → 1.1.326-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.d.ts +6 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -18
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { IconProps, Icon } from "@tabler/icons-react";
|
|
|
7
7
|
import { ModalSettings } from "@mantine/modals/lib/context";
|
|
8
8
|
import { PrismProps } from "@mantine/prism";
|
|
9
9
|
import { DateInputProps, TimeInputProps, CalendarProps } from "@mantine/dates";
|
|
10
|
-
import { EntityClientAction as _EntityClientAction1, UseEntityFormReturnType as _UseEntityFormReturnType1, DataResult as _DataResult1, OperationStatus as _OperationStatus1, DataMapInfoWindowRenderer as _DataMapInfoWindowRenderer1, DataMapSelectRecordsRenderer as _DataMapSelectRecordsRenderer1, DataMapMarkerRenderer as _DataMapMarkerRenderer1, DataMapGroupMarkerRenderer as _DataMapGroupMarkerRenderer1, EntityDefinition as _EntityDefinition1, Entity as _Entity1, ValuesObject as _ValuesObject1, DBStatusResult as _DBStatusResult1, DataGridLabels as _DataGridLabels1, GridColumnsOverrides as _GridColumnsOverrides1, DataGridSelectionChangedCallback as _DataGridSelectionChangedCallback1, GridRecord as _GridRecord1, GridSelectionChangedCallback as _GridSelectionChangedCallback1, GridDoubleClickCallback as _GridDoubleClickCallback1, GridColumn as _GridColumn1 } from "src";
|
|
10
|
+
import { EntityClientAction as _EntityClientAction1, UseEntityFormReturnType as _UseEntityFormReturnType1, DataResult as _DataResult1, OperationStatus as _OperationStatus1, DataMapInfoWindowRenderer as _DataMapInfoWindowRenderer1, DataMapSelectRecordsRenderer as _DataMapSelectRecordsRenderer1, DataMapMarkerRenderer as _DataMapMarkerRenderer1, DataMapGroupMarkerRenderer as _DataMapGroupMarkerRenderer1, EntityDefinition as _EntityDefinition1, Entity as _Entity1, ValuesObject as _ValuesObject1, DBStatusResult as _DBStatusResult1, DataGridLabels as _DataGridLabels1, GridColumnsOverrides as _GridColumnsOverrides1, DataGridSelectionChangedCallback as _DataGridSelectionChangedCallback1, GridRecord as _GridRecord1, DataViewSearchCallback as _DataViewSearchCallback1, GridSelectionChangedCallback as _GridSelectionChangedCallback1, GridDoubleClickCallback as _GridDoubleClickCallback1, GridColumn as _GridColumn1 } from "src";
|
|
11
11
|
import { DropzoneProps } from "@mantine/dropzone";
|
|
12
12
|
import { AccordionVariant } from "@mantine/core/lib/Accordion/Accordion.types";
|
|
13
13
|
import { SpotlightAction } from "@mantine/spotlight";
|
|
@@ -2306,6 +2306,7 @@ export interface DataViewRecord<T extends ValuesObject> {
|
|
|
2306
2306
|
}
|
|
2307
2307
|
export type DataViewSelectionChangedCallback = (selection: DataViewSelection, keys: ValuesObject[]) => void;
|
|
2308
2308
|
export type DataViewSelectionChangedHandler = (selection: DataViewSelection) => void;
|
|
2309
|
+
export type DataViewSearchCallback = (search: string[] | undefined) => void;
|
|
2309
2310
|
export type DataViewSelectionMode = 'single' | 'multi';
|
|
2310
2311
|
export interface DataViewLabels extends EntityUILabels {
|
|
2311
2312
|
rowsReturnedLabel: string;
|
|
@@ -2327,6 +2328,7 @@ export interface DataViewProps extends Omit<UseEntityUIProps, 'labels'> {
|
|
|
2327
2328
|
preserveSelection?: boolean;
|
|
2328
2329
|
autoFocus?: boolean;
|
|
2329
2330
|
onDataRefresh?: (result: OperationStatus<DataResult[]>) => void;
|
|
2331
|
+
onSearch?: DataViewSearchCallback;
|
|
2330
2332
|
allwaysRefreshOnEntityClose?: boolean;
|
|
2331
2333
|
toolbarIconVariant?: ActionIconVariant;
|
|
2332
2334
|
actionsButtonVariant?: ButtonVariant;
|
|
@@ -2385,6 +2387,7 @@ export interface DataGridProps extends UseEntityUIProps {
|
|
|
2385
2387
|
preserveSelection?: boolean;
|
|
2386
2388
|
autoFocus?: boolean;
|
|
2387
2389
|
onDataRefresh?: (result: OperationStatus<DataResult[]>) => void;
|
|
2390
|
+
onSearch?: DataViewSearchCallback;
|
|
2388
2391
|
allwaysRefreshOnEntityClose?: boolean;
|
|
2389
2392
|
toolbarIconVariant?: ActionIconVariant;
|
|
2390
2393
|
actionsButtonVariant?: ButtonVariant;
|
|
@@ -2467,6 +2470,7 @@ export function useViewState(search?: string[], limit?: DataViewLimit): {
|
|
|
2467
2470
|
filtersDescription: ValuesObject | undefined;
|
|
2468
2471
|
setFiltersDescription: Dispatch<SetStateAction<ValuesObject | undefined>>;
|
|
2469
2472
|
};
|
|
2473
|
+
export function getInitialSearchData(search?: string[]): SelectItem[] | undefined;
|
|
2470
2474
|
export interface LookupResultState {
|
|
2471
2475
|
columnName: string;
|
|
2472
2476
|
key: Value;
|
|
@@ -3695,6 +3699,7 @@ export function useMultiDataMapGrid({ dataMapView, viewState, selectionMode, map
|
|
|
3695
3699
|
onDataRefresh: (result: _OperationStatus1<_DataResult1[]>) => void;
|
|
3696
3700
|
doubleClickAction: (("view" | "none" | "edit" | ((record: _GridRecord1) => void)) & NonNullable<"view" | "none" | "edit" | ((record: _GridRecord1) => void) | undefined>) | undefined;
|
|
3697
3701
|
initialHiddenColumns: number[];
|
|
3702
|
+
onSearch: _DataViewSearchCallback1;
|
|
3698
3703
|
setInitialFiltersFromColumns: boolean;
|
|
3699
3704
|
showToolbar: boolean;
|
|
3700
3705
|
showActionsToolbar: boolean;
|