@mcurros2/microm 1.1.325-0 → 1.1.327-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 +9 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -16
- 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, DataViewSearchCallback as _DataViewSearchCallback1, GridRecord as _GridRecord1, 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,8 @@ 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;
|
|
2332
|
+
onSearchTextChange?: DataViewSearchCallback;
|
|
2330
2333
|
allwaysRefreshOnEntityClose?: boolean;
|
|
2331
2334
|
toolbarIconVariant?: ActionIconVariant;
|
|
2332
2335
|
actionsButtonVariant?: ButtonVariant;
|
|
@@ -2385,6 +2388,8 @@ export interface DataGridProps extends UseEntityUIProps {
|
|
|
2385
2388
|
preserveSelection?: boolean;
|
|
2386
2389
|
autoFocus?: boolean;
|
|
2387
2390
|
onDataRefresh?: (result: OperationStatus<DataResult[]>) => void;
|
|
2391
|
+
onSearch?: DataViewSearchCallback;
|
|
2392
|
+
onSearchTextChange?: DataViewSearchCallback;
|
|
2388
2393
|
allwaysRefreshOnEntityClose?: boolean;
|
|
2389
2394
|
toolbarIconVariant?: ActionIconVariant;
|
|
2390
2395
|
actionsButtonVariant?: ButtonVariant;
|
|
@@ -2467,6 +2472,7 @@ export function useViewState(search?: string[], limit?: DataViewLimit): {
|
|
|
2467
2472
|
filtersDescription: ValuesObject | undefined;
|
|
2468
2473
|
setFiltersDescription: Dispatch<SetStateAction<ValuesObject | undefined>>;
|
|
2469
2474
|
};
|
|
2475
|
+
export function getInitialSearchData(search?: string[]): SelectItem[] | undefined;
|
|
2470
2476
|
export interface LookupResultState {
|
|
2471
2477
|
columnName: string;
|
|
2472
2478
|
key: Value;
|
|
@@ -3685,6 +3691,7 @@ export function useMultiDataMapGrid({ dataMapView, viewState, selectionMode, map
|
|
|
3685
3691
|
onSelectionChanged: _DataGridSelectionChangedCallback1;
|
|
3686
3692
|
columnBorders: boolean;
|
|
3687
3693
|
rowBorders: boolean;
|
|
3694
|
+
onSearchTextChange: _DataViewSearchCallback1;
|
|
3688
3695
|
visibleFilters: string[];
|
|
3689
3696
|
maxSearchTerms: number;
|
|
3690
3697
|
enableImport: boolean;
|
|
@@ -3695,6 +3702,7 @@ export function useMultiDataMapGrid({ dataMapView, viewState, selectionMode, map
|
|
|
3695
3702
|
onDataRefresh: (result: _OperationStatus1<_DataResult1[]>) => void;
|
|
3696
3703
|
doubleClickAction: (("view" | "none" | "edit" | ((record: _GridRecord1) => void)) & NonNullable<"view" | "none" | "edit" | ((record: _GridRecord1) => void) | undefined>) | undefined;
|
|
3697
3704
|
initialHiddenColumns: number[];
|
|
3705
|
+
onSearch: _DataViewSearchCallback1;
|
|
3698
3706
|
setInitialFiltersFromColumns: boolean;
|
|
3699
3707
|
showToolbar: boolean;
|
|
3700
3708
|
showActionsToolbar: boolean;
|