@mcurros2/microm 1.1.37-0 → 1.1.39-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 +13 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +33 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2277,6 +2277,10 @@ export interface LookupProps {
|
|
|
2277
2277
|
description?: string;
|
|
2278
2278
|
size?: MantineSize;
|
|
2279
2279
|
onLookupPerformed?: (lookupResult: LookupResultState) => void;
|
|
2280
|
+
enableAdd?: boolean;
|
|
2281
|
+
enableEdit?: boolean;
|
|
2282
|
+
enableDelete?: boolean;
|
|
2283
|
+
enableView?: boolean;
|
|
2280
2284
|
}
|
|
2281
2285
|
export const LookupDefaultProps: Partial<LookupProps>;
|
|
2282
2286
|
export function Lookup(props: LookupProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2307,6 +2311,10 @@ export interface UseLookupOptions {
|
|
|
2307
2311
|
lookupDefName: string;
|
|
2308
2312
|
required?: boolean;
|
|
2309
2313
|
HTMLDescriptionRef: React.MutableRefObject<any>;
|
|
2314
|
+
enableAdd?: boolean;
|
|
2315
|
+
enableEdit?: boolean;
|
|
2316
|
+
enableDelete?: boolean;
|
|
2317
|
+
enableView?: boolean;
|
|
2310
2318
|
}
|
|
2311
2319
|
export interface UseLookupReturnType {
|
|
2312
2320
|
status: OperationStatus<ValuesObject>;
|
|
@@ -2314,7 +2322,7 @@ export interface UseLookupReturnType {
|
|
|
2314
2322
|
lookupInputProps: any;
|
|
2315
2323
|
onBlur: (bindingColumn: string, force?: boolean, event?: React.FocusEvent | null) => void;
|
|
2316
2324
|
}
|
|
2317
|
-
export const useLookup: ({ entityForm, entity, lookupDefName, column, parentKeys, required, HTMLDescriptionRef }: UseLookupOptions) => UseLookupReturnType;
|
|
2325
|
+
export const useLookup: ({ entityForm, entity, lookupDefName, column, parentKeys, required, HTMLDescriptionRef, enableAdd, enableEdit, enableDelete, enableView }: UseLookupOptions) => UseLookupReturnType;
|
|
2318
2326
|
export interface UseLookupEntityOptions {
|
|
2319
2327
|
parentKeys?: ValuesObject;
|
|
2320
2328
|
entity: Entity<EntityDefinition>;
|
|
@@ -2340,6 +2348,10 @@ export interface ModalLookupOptions {
|
|
|
2340
2348
|
selectLabel?: string;
|
|
2341
2349
|
parentKeys?: ValuesObject;
|
|
2342
2350
|
showActions?: boolean;
|
|
2351
|
+
enableAdd?: boolean;
|
|
2352
|
+
enableEdit?: boolean;
|
|
2353
|
+
enableDelete?: boolean;
|
|
2354
|
+
enableView?: boolean;
|
|
2343
2355
|
}
|
|
2344
2356
|
export const UseLookupFormDefaultProps: Partial<ModalLookupOptions>;
|
|
2345
2357
|
export function useLookupForm(): (props: ModalLookupOptions) => Promise<void>;
|