@mcurros2/microm 1.1.259-0 → 1.1.260-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 +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +21 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2383,7 +2383,7 @@ export function useViewState(search?: string[], limit?: DataViewLimit): {
|
|
|
2383
2383
|
filtersDescription: ValuesObject | undefined;
|
|
2384
2384
|
setFiltersDescription: Dispatch<SetStateAction<ValuesObject | undefined>>;
|
|
2385
2385
|
};
|
|
2386
|
-
export interface LookupProps {
|
|
2386
|
+
export interface LookupProps extends Omit<useTextTransformProps, 'entityForm' | 'column'> {
|
|
2387
2387
|
parentKeys?: ValuesObject;
|
|
2388
2388
|
column: EntityColumn<Value>;
|
|
2389
2389
|
autoFocus?: 'autoFocusOnAdd' | 'autoFocusOnEdit' | boolean;
|
|
@@ -2440,6 +2440,7 @@ export interface UseLookupOptions {
|
|
|
2440
2440
|
enableEdit?: boolean;
|
|
2441
2441
|
enableDelete?: boolean;
|
|
2442
2442
|
enableView?: boolean;
|
|
2443
|
+
transform?: (value: string) => void;
|
|
2443
2444
|
}
|
|
2444
2445
|
export interface UseLookupReturnType {
|
|
2445
2446
|
status: OperationStatus<ValuesObject>;
|
|
@@ -2447,7 +2448,7 @@ export interface UseLookupReturnType {
|
|
|
2447
2448
|
lookupInputProps: ReturnType<UseFormReturnType<ValuesObject>['getInputProps']>;
|
|
2448
2449
|
onBlur: (bindingColumn: string, force?: boolean, event?: React.FocusEvent | null) => void;
|
|
2449
2450
|
}
|
|
2450
|
-
export const useLookup: ({ entityForm, entity, lookupDefName, column, parentKeys, required, HTMLDescriptionRef, enableAdd, enableEdit, enableDelete, enableView }: UseLookupOptions) => UseLookupReturnType;
|
|
2451
|
+
export const useLookup: ({ entityForm, entity, lookupDefName, column, parentKeys, required, HTMLDescriptionRef, enableAdd, enableEdit, enableDelete, enableView, transform }: UseLookupOptions) => UseLookupReturnType;
|
|
2451
2452
|
export interface UseLookupEntityOptions {
|
|
2452
2453
|
parentKeys?: ValuesObject;
|
|
2453
2454
|
entity: Entity<EntityDefinition>;
|