@mcurros2/microm 1.1.364-0 → 1.1.365-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 +2 -2
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1523,7 +1523,7 @@ export function useEntityUI(props: UseEntityUIProps): {
|
|
|
1523
1523
|
handleImportDataClick: () => Promise<void>;
|
|
1524
1524
|
};
|
|
1525
1525
|
export function useExecuteProc(entity: Entity<EntityDefinition>, proc: EntityProc): {
|
|
1526
|
-
execute: (values?: ValuesObject) => Promise<OperationStatus<DataResult[]> | undefined>;
|
|
1526
|
+
execute: (values?: ValuesObject, force_refresh?: boolean) => Promise<OperationStatus<DataResult[]> | undefined>;
|
|
1527
1527
|
status: OperationStatus<DataResult[]>;
|
|
1528
1528
|
abort: () => void;
|
|
1529
1529
|
};
|
|
@@ -2276,7 +2276,7 @@ export interface PinFieldProps extends Omit<PinInputProps, 'validate' | 'autoFoc
|
|
|
2276
2276
|
export const PinFieldDefaultProps: Partial<PinFieldProps>;
|
|
2277
2277
|
export function PinField(props: PinFieldProps): JSX.Element;
|
|
2278
2278
|
export function useExecuteProcess(entity: Entity<EntityDefinition>, proc: EntityProc): {
|
|
2279
|
-
execute: (values?: ValuesObject) => Promise<OperationStatus<DBStatusResult> | undefined>;
|
|
2279
|
+
execute: (values?: ValuesObject, force_refresh?: boolean) => Promise<OperationStatus<DBStatusResult> | undefined>;
|
|
2280
2280
|
status: OperationStatus<DBStatusResult>;
|
|
2281
2281
|
abort: () => void;
|
|
2282
2282
|
};
|
package/dist/index.js
CHANGED
|
@@ -10981,7 +10981,7 @@ function $2fcad708d17652da$export$8dcbab0699f0db0c(entity, proc) {
|
|
|
10981
10981
|
}
|
|
10982
10982
|
};
|
|
10983
10983
|
}, []);
|
|
10984
|
-
const execute = (0, $b4te3$react.useCallback)(async (values)=>{
|
|
10984
|
+
const execute = (0, $b4te3$react.useCallback)(async (values, force_refresh = false)=>{
|
|
10985
10985
|
const request = {
|
|
10986
10986
|
entity: entity,
|
|
10987
10987
|
proc: proc,
|
|
@@ -10992,7 +10992,7 @@ function $2fcad708d17652da$export$8dcbab0699f0db0c(entity, proc) {
|
|
|
10992
10992
|
console.warn("useExecuteProc ignored execute(): a request is already in progress. Call abort() before executing again.");
|
|
10993
10993
|
return statusRef.current;
|
|
10994
10994
|
}
|
|
10995
|
-
if ((0, $4G7uh.areExecuteProcRequestsEqual)(lastSuccessfulRequest.current, request)) return;
|
|
10995
|
+
if (!force_refresh && (0, $4G7uh.areExecuteProcRequestsEqual)(lastSuccessfulRequest.current, request)) return;
|
|
10996
10996
|
const controller = new AbortController();
|
|
10997
10997
|
const token = Symbol("useExecuteProc request");
|
|
10998
10998
|
inFlight.current = {
|
|
@@ -38998,7 +38998,7 @@ function $d2fd61b2edecbadb$export$7aab186fc1fe6b0(entity, proc) {
|
|
|
38998
38998
|
}
|
|
38999
38999
|
};
|
|
39000
39000
|
}, []);
|
|
39001
|
-
const execute = (0, $b4te3$react.useCallback)(async (values)=>{
|
|
39001
|
+
const execute = (0, $b4te3$react.useCallback)(async (values, force_refresh = false)=>{
|
|
39002
39002
|
const request = {
|
|
39003
39003
|
entity: entity,
|
|
39004
39004
|
proc: proc,
|
|
@@ -39009,7 +39009,7 @@ function $d2fd61b2edecbadb$export$7aab186fc1fe6b0(entity, proc) {
|
|
|
39009
39009
|
console.warn("useExecuteProcess ignored execute(): a request is already in progress. Call abort() before executing again.");
|
|
39010
39010
|
return statusRef.current;
|
|
39011
39011
|
}
|
|
39012
|
-
if ((0, $4G7uh.areExecuteProcRequestsEqual)(lastSuccessfulRequest.current, request)) return;
|
|
39012
|
+
if (!force_refresh && (0, $4G7uh.areExecuteProcRequestsEqual)(lastSuccessfulRequest.current, request)) return;
|
|
39013
39013
|
const controller = new AbortController();
|
|
39014
39014
|
const token = Symbol("useExecuteProcess request");
|
|
39015
39015
|
inFlight.current = {
|