react-declarative 2.7.107 → 2.7.108
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 +475 -684
- package/dist/index.esm.js +1 -15
- package/dist/index.js +1 -1
- package/package.json +11 -6
package/dist/index.d.ts
CHANGED
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
// ../@mui/material/Stack
|
|
14
14
|
// ../@mui/material/Paper
|
|
15
15
|
// ../@mui/material/styles
|
|
16
|
-
// ../mapbox-gl
|
|
17
16
|
|
|
18
17
|
declare module "react-declarative" {
|
|
19
18
|
import "./polyfills";
|
|
@@ -934,12 +933,12 @@ declare module "react-declarative" {
|
|
|
934
933
|
import * as datetimeInternal from "react-declarative/utils/datetime";
|
|
935
934
|
export { waitForMove } from "react-declarative/utils/waitForMove";
|
|
936
935
|
export const typo: {
|
|
937
|
-
thinsp: "
|
|
938
|
-
nbsp: "
|
|
939
|
-
emdash: "
|
|
940
|
-
endash: "
|
|
936
|
+
thinsp: "\u2009";
|
|
937
|
+
nbsp: "\u00A0";
|
|
938
|
+
emdash: "\u2014";
|
|
939
|
+
endash: "\u2013";
|
|
941
940
|
terminator: "\0";
|
|
942
|
-
bullet: "
|
|
941
|
+
bullet: "\u2022";
|
|
943
942
|
};
|
|
944
943
|
export const datetime: {
|
|
945
944
|
DATE_PLACEHOLDER: "DD/MM/YYYY";
|
|
@@ -3119,8 +3118,8 @@ declare module "react-declarative/components/List/api/useApiPaginator" {
|
|
|
3119
3118
|
* @returns - The list handler function.
|
|
3120
3119
|
*/
|
|
3121
3120
|
export const useApiPaginator: <
|
|
3122
|
-
FilterData extends {} =
|
|
3123
|
-
RowData extends IRowData =
|
|
3121
|
+
FilterData extends {} = IAnything,
|
|
3122
|
+
RowData extends IRowData = IAnything,
|
|
3124
3123
|
>(
|
|
3125
3124
|
path: string,
|
|
3126
3125
|
{
|
|
@@ -3146,7 +3145,7 @@ declare module "react-declarative/components/List/api/useApiPaginator" {
|
|
|
3146
3145
|
withChips,
|
|
3147
3146
|
withSort,
|
|
3148
3147
|
}?: IApiPaginatorParams<FilterData, RowData>,
|
|
3149
|
-
) => ListHandler<FilterData, RowData
|
|
3148
|
+
) => ListHandler<FilterData, RowData>;
|
|
3150
3149
|
export default useApiPaginator;
|
|
3151
3150
|
}
|
|
3152
3151
|
|
|
@@ -3242,10 +3241,10 @@ declare module "react-declarative/components/List/api/useArrayPaginator" {
|
|
|
3242
3241
|
* @returns - The list handler function.
|
|
3243
3242
|
*/
|
|
3244
3243
|
export const useArrayPaginator: <
|
|
3245
|
-
FilterData extends {} =
|
|
3246
|
-
RowData extends IRowData =
|
|
3244
|
+
FilterData extends {} = IAnything,
|
|
3245
|
+
RowData extends IRowData = IAnything,
|
|
3247
3246
|
>(
|
|
3248
|
-
rowsHandler: ListHandler<FilterData, RowData
|
|
3247
|
+
rowsHandler: ListHandler<FilterData, RowData>,
|
|
3249
3248
|
{
|
|
3250
3249
|
searchEntries,
|
|
3251
3250
|
searchFilterChars,
|
|
@@ -3268,7 +3267,7 @@ declare module "react-declarative/components/List/api/useArrayPaginator" {
|
|
|
3268
3267
|
onLoadEnd,
|
|
3269
3268
|
onData,
|
|
3270
3269
|
}?: IArrayPaginatorParams<FilterData, RowData>,
|
|
3271
|
-
) => ListHandler<FilterData, RowData
|
|
3270
|
+
) => ListHandler<FilterData, RowData>;
|
|
3272
3271
|
export default useArrayPaginator;
|
|
3273
3272
|
}
|
|
3274
3273
|
|
|
@@ -3359,7 +3358,7 @@ declare module "react-declarative/components/One/api/useApiHandler" {
|
|
|
3359
3358
|
* @param options.fallback - An optional function to handle errors and provide fallback behavior
|
|
3360
3359
|
* @returns - The API handler function that can be invoked to make the request and retrieve the data
|
|
3361
3360
|
*/
|
|
3362
|
-
export const useApiHandler: <Data extends
|
|
3361
|
+
export const useApiHandler: <Data extends IAnything = IAnything>(
|
|
3363
3362
|
path: string,
|
|
3364
3363
|
{
|
|
3365
3364
|
fetch,
|
|
@@ -3373,7 +3372,7 @@ declare module "react-declarative/components/One/api/useApiHandler" {
|
|
|
3373
3372
|
fetchParams,
|
|
3374
3373
|
fallback,
|
|
3375
3374
|
}?: IApiHandlerParams<Data>,
|
|
3376
|
-
) => OneHandler<Data
|
|
3375
|
+
) => OneHandler<Data>;
|
|
3377
3376
|
export default useApiHandler;
|
|
3378
3377
|
}
|
|
3379
3378
|
|
|
@@ -4561,10 +4560,7 @@ declare module "react-declarative/helpers/serviceManager" {
|
|
|
4561
4560
|
* @param ctor - The creator function that returns the desired object or a promise resolving to the desired object.
|
|
4562
4561
|
* @returns
|
|
4563
4562
|
*/
|
|
4564
|
-
registerCreator: <
|
|
4565
|
-
key: Key,
|
|
4566
|
-
ctor: () => T_1 | Promise<T_1>,
|
|
4567
|
-
) => void;
|
|
4563
|
+
registerCreator: <T = object>(key: Key, ctor: () => T | Promise<T>) => void;
|
|
4568
4564
|
/**
|
|
4569
4565
|
* Injects a dependency using the given key and returns an instance of the dependency.
|
|
4570
4566
|
*
|
|
@@ -4573,7 +4569,7 @@ declare module "react-declarative/helpers/serviceManager" {
|
|
|
4573
4569
|
* @param [verbose=true] - A flag indicating whether verbose logging should be enabled (default is true).
|
|
4574
4570
|
* @returns - An instance of the dependency.
|
|
4575
4571
|
*/
|
|
4576
|
-
inject: <
|
|
4572
|
+
inject: <T = object>(key: Key, verbose?: boolean) => T;
|
|
4577
4573
|
/**
|
|
4578
4574
|
* Wait for the service to be provided.
|
|
4579
4575
|
*
|
|
@@ -4636,7 +4632,7 @@ declare module "react-declarative/helpers/serviceManager" {
|
|
|
4636
4632
|
export const createServiceManager: (name?: string) => {
|
|
4637
4633
|
serviceManager: ServiceManager;
|
|
4638
4634
|
provide: <T = object>(key: Key, ctor: () => T | Promise<T>) => void;
|
|
4639
|
-
inject: <
|
|
4635
|
+
inject: <T = object>(key: Key) => T;
|
|
4640
4636
|
prefetch: () => Promise<void>;
|
|
4641
4637
|
unload: () => Promise<void>;
|
|
4642
4638
|
dispose: () => Promise<void>;
|
|
@@ -4865,7 +4861,7 @@ declare module "react-declarative/hooks/useOneInput" {
|
|
|
4865
4861
|
readonly: boolean;
|
|
4866
4862
|
value: T;
|
|
4867
4863
|
}
|
|
4868
|
-
export const useOneInput: <T extends
|
|
4864
|
+
export const useOneInput: <T extends IAnything = IAnything>({
|
|
4869
4865
|
readonly,
|
|
4870
4866
|
value: upperValue,
|
|
4871
4867
|
onValueChange,
|
|
@@ -4938,7 +4934,7 @@ declare module "react-declarative/hooks/useContextMenu" {
|
|
|
4938
4934
|
* @property elementProps - The properties to apply to the element that triggers the context menu.
|
|
4939
4935
|
* @property render - The function to render the context menu component.
|
|
4940
4936
|
*/
|
|
4941
|
-
export const useContextMenu: <T extends
|
|
4937
|
+
export const useContextMenu: <T extends any = object>({
|
|
4942
4938
|
keepMounted,
|
|
4943
4939
|
AfterContent,
|
|
4944
4940
|
BeforeContent,
|
|
@@ -5091,7 +5087,7 @@ declare module "react-declarative/hooks/usePointer" {
|
|
|
5091
5087
|
* @returns - The pointer object.
|
|
5092
5088
|
*/
|
|
5093
5089
|
export const usePointer: <T extends object>(
|
|
5094
|
-
ref?: T
|
|
5090
|
+
ref?: T,
|
|
5095
5091
|
) => readonly [{}, (ref: T) => void];
|
|
5096
5092
|
export default usePointer;
|
|
5097
5093
|
}
|
|
@@ -5492,7 +5488,7 @@ declare module "react-declarative/hooks/useActualState" {
|
|
|
5492
5488
|
*.
|
|
5493
5489
|
*/
|
|
5494
5490
|
export const useActualState: <S = undefined>(
|
|
5495
|
-
initialState?: S | (() => S)
|
|
5491
|
+
initialState?: S | (() => S),
|
|
5496
5492
|
) => readonly [
|
|
5497
5493
|
import("react").MutableRefObject<S>,
|
|
5498
5494
|
import("react").Dispatch<import("react").SetStateAction<S>>,
|
|
@@ -5510,7 +5506,7 @@ declare module "react-declarative/hooks/useActualRef" {
|
|
|
5510
5506
|
* @returns - An array containing the state reference and handleState function
|
|
5511
5507
|
*/
|
|
5512
5508
|
export const useActualRef: <S = undefined>(
|
|
5513
|
-
initialState?: S | (() => S)
|
|
5509
|
+
initialState?: S | (() => S),
|
|
5514
5510
|
) => readonly [
|
|
5515
5511
|
import("react").MutableRefObject<S>,
|
|
5516
5512
|
(dispatch: S | ((prevState: S) => S)) => void,
|
|
@@ -5527,7 +5523,7 @@ declare module "react-declarative/hooks/useRenderWaiter" {
|
|
|
5527
5523
|
* @returns - Render waiter function that returns a promise that resolves when the render is complete.
|
|
5528
5524
|
*/
|
|
5529
5525
|
export const useRenderWaiter: (
|
|
5530
|
-
deps?: any[]
|
|
5526
|
+
deps?: any[],
|
|
5531
5527
|
delay?: number,
|
|
5532
5528
|
) => () => Promise<void>;
|
|
5533
5529
|
export default useRenderWaiter;
|
|
@@ -5542,7 +5538,7 @@ declare module "react-declarative/hooks/useOneArray" {
|
|
|
5542
5538
|
* @returns - A tuple containing the managed array and a function to update it
|
|
5543
5539
|
*/
|
|
5544
5540
|
export const useOneArray: <T = any>(
|
|
5545
|
-
initialValue?: T[] | (() => T[])
|
|
5541
|
+
initialValue?: (T[] | null) | (() => T[]),
|
|
5546
5542
|
) => readonly [
|
|
5547
5543
|
T[],
|
|
5548
5544
|
import("react").Dispatch<import("react").SetStateAction<T[] | null>>,
|
|
@@ -5619,7 +5615,10 @@ declare module "react-declarative/hooks/useAsyncProgress" {
|
|
|
5619
5615
|
* @returns An object containing the execute function, loading state, progress, and errors.
|
|
5620
5616
|
*
|
|
5621
5617
|
*/
|
|
5622
|
-
export const useAsyncProgress: <
|
|
5618
|
+
export const useAsyncProgress: <
|
|
5619
|
+
Data extends IAnything = IAnything,
|
|
5620
|
+
Result = void,
|
|
5621
|
+
>(
|
|
5623
5622
|
process: (item: IProcess<Data>) => Result | Promise<Result>,
|
|
5624
5623
|
{
|
|
5625
5624
|
delay,
|
|
@@ -5685,8 +5684,8 @@ declare module "react-declarative/hooks/useAsyncAction" {
|
|
|
5685
5684
|
* @returns - An object containing loading, error, and execute properties.
|
|
5686
5685
|
*/
|
|
5687
5686
|
export const useAsyncAction: <
|
|
5688
|
-
Data extends
|
|
5689
|
-
Payload extends
|
|
5687
|
+
Data extends any = any,
|
|
5688
|
+
Payload extends any = any,
|
|
5690
5689
|
>(
|
|
5691
5690
|
run: (p: Payload) => Data | Promise<Data>,
|
|
5692
5691
|
{ onLoadStart, onLoadEnd, fallback, throwError }?: IParams,
|
|
@@ -5716,7 +5715,7 @@ declare module "react-declarative/hooks/useAsyncValue" {
|
|
|
5716
5715
|
* @returns - An array containing the current async value, action object for executing the async action, and a setter function
|
|
5717
5716
|
* to update the async value.
|
|
5718
5717
|
*/
|
|
5719
|
-
export const useAsyncValue: <Data extends
|
|
5718
|
+
export const useAsyncValue: <Data extends any = any>(
|
|
5720
5719
|
run: () => Data | Promise<Data>,
|
|
5721
5720
|
params?: IParams,
|
|
5722
5721
|
) => [
|
|
@@ -5786,8 +5785,8 @@ declare module "react-declarative/hooks/useSinglerunAction" {
|
|
|
5786
5785
|
* @returns - An object containing the loading state, error state, and an `execute` function to execute the asynchronous action.
|
|
5787
5786
|
*/
|
|
5788
5787
|
export const useSinglerunAction: <
|
|
5789
|
-
Data extends
|
|
5790
|
-
Payload extends
|
|
5788
|
+
Data extends any = any,
|
|
5789
|
+
Payload extends any = any,
|
|
5791
5790
|
>(
|
|
5792
5791
|
run: (p: Payload) => Data | Promise<Data>,
|
|
5793
5792
|
{ onLoadStart, onLoadEnd, fallback, throwError }?: IParams,
|
|
@@ -5847,8 +5846,8 @@ declare module "react-declarative/hooks/useQueuedAction" {
|
|
|
5847
5846
|
* @returns - The result object containing the loading state, error state, and the execute function to trigger the action execution.
|
|
5848
5847
|
*/
|
|
5849
5848
|
export const useQueuedAction: <
|
|
5850
|
-
Data extends
|
|
5851
|
-
Payload extends
|
|
5849
|
+
Data extends any = any,
|
|
5850
|
+
Payload extends any = any,
|
|
5852
5851
|
>(
|
|
5853
5852
|
run: (p: Payload) => Data | Promise<Data>,
|
|
5854
5853
|
{ onLoadStart, onLoadEnd, fallback, throwError }?: IParams,
|
|
@@ -5986,7 +5985,7 @@ declare module "react-declarative/hooks/useSubjectValue" {
|
|
|
5986
5985
|
*/
|
|
5987
5986
|
export const useSubjectValue: <Data = any>(
|
|
5988
5987
|
target: TSubject<Data>,
|
|
5989
|
-
value?: Data | (() => Data)
|
|
5988
|
+
value?: Data | (() => Data),
|
|
5990
5989
|
) => Data;
|
|
5991
5990
|
export default useSubjectValue;
|
|
5992
5991
|
}
|
|
@@ -6102,7 +6101,7 @@ declare module "react-declarative/hooks/useSubject" {
|
|
|
6102
6101
|
* @returns - The created subject.
|
|
6103
6102
|
*/
|
|
6104
6103
|
export const useSubject: <Data = any>(
|
|
6105
|
-
target?: TSubject<Data> | null
|
|
6104
|
+
target?: TSubject<Data> | null,
|
|
6106
6105
|
) => Subject<Data>;
|
|
6107
6106
|
export default useSubject;
|
|
6108
6107
|
}
|
|
@@ -6118,7 +6117,7 @@ declare module "react-declarative/hooks/useChange" {
|
|
|
6118
6117
|
*/
|
|
6119
6118
|
export const useChange: (
|
|
6120
6119
|
effect: React.EffectCallback,
|
|
6121
|
-
deps?:
|
|
6120
|
+
deps?: React.DependencyList,
|
|
6122
6121
|
stopWatchByDefault?: boolean,
|
|
6123
6122
|
) => {
|
|
6124
6123
|
resetWatcher: () => void;
|
|
@@ -6318,14 +6317,14 @@ declare module "react-declarative/hooks/useListEditor" {
|
|
|
6318
6317
|
* - items: an array of the current items in the list.
|
|
6319
6318
|
* - render: a function that renders the list of items.
|
|
6320
6319
|
*/
|
|
6321
|
-
export const useListEditor: <Data extends
|
|
6320
|
+
export const useListEditor: <Data extends any = undefined>(
|
|
6322
6321
|
renderItem: (id: RowId, item: Data) => React.ReactElement,
|
|
6323
6322
|
{
|
|
6324
6323
|
initialValue,
|
|
6325
6324
|
onChange,
|
|
6326
6325
|
}: {
|
|
6327
|
-
initialValue?: Data[]
|
|
6328
|
-
onChange?: (
|
|
6326
|
+
initialValue?: Data[];
|
|
6327
|
+
onChange?: (items: Data[]) => void;
|
|
6329
6328
|
},
|
|
6330
6329
|
) => {
|
|
6331
6330
|
onAddItem: (data: Data) => number;
|
|
@@ -6657,7 +6656,7 @@ declare module "react-declarative/hooks/useCollection" {
|
|
|
6657
6656
|
* @param fn - The mapping function.
|
|
6658
6657
|
* @returns - An array of values obtained by applying the mapping function to each item.
|
|
6659
6658
|
*/
|
|
6660
|
-
map: <V extends
|
|
6659
|
+
map: <V extends any = any>(
|
|
6661
6660
|
fn: (value: CollectionEntityAdapter<T>, idx: number) => V,
|
|
6662
6661
|
) => V[];
|
|
6663
6662
|
/**
|
|
@@ -6862,7 +6861,7 @@ declare module "react-declarative/hooks/useList" {
|
|
|
6862
6861
|
*
|
|
6863
6862
|
* @returns - A function that creates and opens the ListPicker modal.
|
|
6864
6863
|
*/
|
|
6865
|
-
export const useList: <RowData extends IRowData =
|
|
6864
|
+
export const useList: <RowData extends IRowData = IAnything>({
|
|
6866
6865
|
handler,
|
|
6867
6866
|
columns,
|
|
6868
6867
|
rowActions,
|
|
@@ -7111,8 +7110,8 @@ declare module "react-declarative/hooks/useOne" {
|
|
|
7111
7110
|
* @returns - The function to open the picker.
|
|
7112
7111
|
*/
|
|
7113
7112
|
export const useOne: <
|
|
7114
|
-
Data extends
|
|
7115
|
-
Payload =
|
|
7113
|
+
Data extends IAnything = IAnything,
|
|
7114
|
+
Payload = IAnything,
|
|
7116
7115
|
Field = IField<Data, Payload>,
|
|
7117
7116
|
>({
|
|
7118
7117
|
fields,
|
|
@@ -7138,7 +7137,10 @@ declare module "react-declarative/hooks/useOne" {
|
|
|
7138
7137
|
then: (onData: Fn) => void;
|
|
7139
7138
|
toPromise: () => Promise<Data | null>;
|
|
7140
7139
|
};
|
|
7141
|
-
export const useOneTyped: <
|
|
7140
|
+
export const useOneTyped: <
|
|
7141
|
+
Data extends IAnything = IAnything,
|
|
7142
|
+
Payload = IAnything,
|
|
7143
|
+
>(
|
|
7142
7144
|
params: IParams<Data, Payload, TypedField<Data, Payload>>,
|
|
7143
7145
|
) => ({
|
|
7144
7146
|
handler,
|
|
@@ -7566,7 +7568,7 @@ declare module "react-declarative/utils/oop/Pointer" {
|
|
|
7566
7568
|
* @returns - The pointer object with instance and setPointer methods.
|
|
7567
7569
|
*/
|
|
7568
7570
|
export const createPointer: <T extends object>(
|
|
7569
|
-
ref?: T
|
|
7571
|
+
ref?: T,
|
|
7570
7572
|
) => {
|
|
7571
7573
|
pointer: {};
|
|
7572
7574
|
setPointer(ref: T): void;
|
|
@@ -7636,9 +7638,7 @@ declare module "react-declarative/utils/chooseFile" {
|
|
|
7636
7638
|
* @param [accept] - Optional file type filter. Can be a comma-separated list of MIME types or file extensions.
|
|
7637
7639
|
* @returns A promise that resolves with the selected file or null if the selection was canceled.
|
|
7638
7640
|
*/
|
|
7639
|
-
export const chooseFile: (
|
|
7640
|
-
accept?: string | undefined,
|
|
7641
|
-
) => Promise<File | null>;
|
|
7641
|
+
export const chooseFile: (accept?: string) => Promise<File | null>;
|
|
7642
7642
|
export default chooseFile;
|
|
7643
7643
|
}
|
|
7644
7644
|
|
|
@@ -7704,9 +7704,9 @@ declare module "react-declarative/utils/promiseState" {
|
|
|
7704
7704
|
* @returns - The state of the promise, which can be either 'sync' or 'async'.
|
|
7705
7705
|
*/
|
|
7706
7706
|
export const promiseState: <T = any>(
|
|
7707
|
-
promise: T |
|
|
7708
|
-
) => "
|
|
7709
|
-
export const promiseValue: <T = any>(promise: T |
|
|
7707
|
+
promise: Promise<T> | T,
|
|
7708
|
+
) => "sync" | "async";
|
|
7709
|
+
export const promiseValue: <T = any>(promise: Promise<T> | T) => T | null;
|
|
7710
7710
|
export default promiseState;
|
|
7711
7711
|
}
|
|
7712
7712
|
|
|
@@ -7718,9 +7718,7 @@ declare module "react-declarative/utils/chooseMultipleFiles" {
|
|
|
7718
7718
|
* @returns - A promise that resolves to an array of selected files
|
|
7719
7719
|
* or null if the dialog was canceled.
|
|
7720
7720
|
*/
|
|
7721
|
-
export const chooseMultipleFiles: (
|
|
7722
|
-
accept?: string | undefined,
|
|
7723
|
-
) => Promise<File[] | null>;
|
|
7721
|
+
export const chooseMultipleFiles: (accept?: string) => Promise<File[] | null>;
|
|
7724
7722
|
export default chooseMultipleFiles;
|
|
7725
7723
|
}
|
|
7726
7724
|
|
|
@@ -7915,7 +7913,7 @@ declare module "react-declarative/utils/fetchApi" {
|
|
|
7915
7913
|
*/
|
|
7916
7914
|
export const fetchApi: <T = any>(
|
|
7917
7915
|
input: RequestInfo | URL,
|
|
7918
|
-
init?: RequestInit
|
|
7916
|
+
init?: RequestInit,
|
|
7919
7917
|
) => Promise<T>;
|
|
7920
7918
|
export default fetchApi;
|
|
7921
7919
|
}
|
|
@@ -7927,8 +7925,8 @@ declare module "react-declarative/utils/createValueProvider" {
|
|
|
7927
7925
|
* @param defaultValue - The default value for the provider.
|
|
7928
7926
|
* @returns A tuple containing the provider component and a hook to access the value.
|
|
7929
7927
|
*/
|
|
7930
|
-
export const createValueProvider: <P extends
|
|
7931
|
-
defaultValue?: P
|
|
7928
|
+
export const createValueProvider: <P extends any = object>(
|
|
7929
|
+
defaultValue?: P,
|
|
7932
7930
|
) => readonly [
|
|
7933
7931
|
({
|
|
7934
7932
|
children,
|
|
@@ -7956,7 +7954,7 @@ declare module "react-declarative/utils/createStateProvider" {
|
|
|
7956
7954
|
initialState,
|
|
7957
7955
|
onChange,
|
|
7958
7956
|
}: {
|
|
7959
|
-
onChange?: (
|
|
7957
|
+
onChange?: (state: S) => void;
|
|
7960
7958
|
children: React.ReactNode;
|
|
7961
7959
|
initialState: S | (() => S);
|
|
7962
7960
|
}) => JSX.Element,
|
|
@@ -7981,7 +7979,7 @@ declare module "react-declarative/utils/createSsStateProvider" {
|
|
|
7981
7979
|
initialState,
|
|
7982
7980
|
onChange,
|
|
7983
7981
|
}: {
|
|
7984
|
-
onChange?: (
|
|
7982
|
+
onChange?: (state: S) => void;
|
|
7985
7983
|
children: React.ReactNode;
|
|
7986
7984
|
initialState: S | (() => S);
|
|
7987
7985
|
}) => JSX.Element,
|
|
@@ -8008,7 +8006,7 @@ declare module "react-declarative/utils/createLsStateProvider" {
|
|
|
8008
8006
|
initialState,
|
|
8009
8007
|
onChange,
|
|
8010
8008
|
}: {
|
|
8011
|
-
onChange?: (
|
|
8009
|
+
onChange?: (state: S) => void;
|
|
8012
8010
|
children: React.ReactNode;
|
|
8013
8011
|
initialState: S | (() => S);
|
|
8014
8012
|
}) => JSX.Element,
|
|
@@ -8141,17 +8139,17 @@ declare module "react-declarative/utils/scaleToSize" {
|
|
|
8141
8139
|
export const createScaleToSize: (
|
|
8142
8140
|
maxSize?: number,
|
|
8143
8141
|
maxExec?: number,
|
|
8144
|
-
) => import("./hof/execpool").IWrappedFn<Blob, [blob:
|
|
8142
|
+
) => import("./hof/execpool").IWrappedFn<Blob, [blob: File | Blob]>;
|
|
8145
8143
|
export const scaleToSize: import("./hof/execpool").IWrappedFn<
|
|
8146
8144
|
Blob,
|
|
8147
|
-
[blob:
|
|
8145
|
+
[blob: File | Blob]
|
|
8148
8146
|
>;
|
|
8149
8147
|
export default scaleToSize;
|
|
8150
8148
|
}
|
|
8151
8149
|
|
|
8152
8150
|
declare module "react-declarative/utils/hof/timeout" {
|
|
8153
8151
|
export const TIMEOUT_SYMBOL: unique symbol;
|
|
8154
|
-
export const timeout: <T extends
|
|
8152
|
+
export const timeout: <T extends any = any, P extends any[] = any[]>(
|
|
8155
8153
|
run: (...args: P) => Promise<T>,
|
|
8156
8154
|
delay?: number,
|
|
8157
8155
|
) => (...args: P) => Promise<symbol | T>;
|
|
@@ -8165,12 +8163,12 @@ declare module "react-declarative/utils/hof/waitForNext" {
|
|
|
8165
8163
|
subject: TSubject<T>,
|
|
8166
8164
|
condition: (t: T) => boolean,
|
|
8167
8165
|
delay?: number,
|
|
8168
|
-
) => Promise<typeof TIMEOUT_SYMBOL
|
|
8166
|
+
) => Promise<T | typeof TIMEOUT_SYMBOL>;
|
|
8169
8167
|
export default waitForNext;
|
|
8170
8168
|
}
|
|
8171
8169
|
|
|
8172
8170
|
declare module "react-declarative/utils/hof/obsolete" {
|
|
8173
|
-
export const obsolete: <T extends
|
|
8171
|
+
export const obsolete: <T extends any = any, P extends any[] = any[]>(
|
|
8174
8172
|
run: (...args: P) => Promise<T>,
|
|
8175
8173
|
) => (...args: P) => Promise<T>;
|
|
8176
8174
|
export default obsolete;
|
|
@@ -8238,7 +8236,7 @@ declare module "react-declarative/utils/hof/afterinit" {
|
|
|
8238
8236
|
* @param run The function to be wrapped.
|
|
8239
8237
|
* @returns The wrapped function.
|
|
8240
8238
|
*/
|
|
8241
|
-
export const afterinit: <T extends
|
|
8239
|
+
export const afterinit: <T extends any = any, P extends any[] = any[]>(
|
|
8242
8240
|
run: (...args: P) => Promise<T>,
|
|
8243
8241
|
) => IWrappedFn<T, P>;
|
|
8244
8242
|
export default afterinit;
|
|
@@ -8283,7 +8281,7 @@ declare module "react-declarative/utils/hof/execpool" {
|
|
|
8283
8281
|
* @param options - Optional configuration options for the execution pool.
|
|
8284
8282
|
* @returns A wrapped function that executes asynchronously within the execution pool.
|
|
8285
8283
|
*/
|
|
8286
|
-
export const execpool: <T extends
|
|
8284
|
+
export const execpool: <T extends any = any, P extends any[] = any[]>(
|
|
8287
8285
|
run: (...args: P) => Promise<T>,
|
|
8288
8286
|
{ maxExec, delay }?: Partial<IConfig>,
|
|
8289
8287
|
) => IWrappedFn<T, P>;
|
|
@@ -8309,7 +8307,7 @@ declare module "react-declarative/utils/hof/retry" {
|
|
|
8309
8307
|
* @param count - The maximum number of retries (default is 5).
|
|
8310
8308
|
* @returns - The wrapped function that can be canceled.
|
|
8311
8309
|
*/
|
|
8312
|
-
export const retry: <T extends
|
|
8310
|
+
export const retry: <T extends any = any, P extends any[] = any[]>(
|
|
8313
8311
|
run: (...args: P) => Promise<T>,
|
|
8314
8312
|
count?: number,
|
|
8315
8313
|
) => IWrappedFn<T, P>;
|
|
@@ -8390,7 +8388,7 @@ declare module "react-declarative/utils/hof/cancelable" {
|
|
|
8390
8388
|
* @template T - The type of the promise's resolved value.
|
|
8391
8389
|
* @template P - The type of the promise function's arguments.
|
|
8392
8390
|
*/
|
|
8393
|
-
export const cancelable: <T extends
|
|
8391
|
+
export const cancelable: <T extends any = any, P extends any[] = any[]>(
|
|
8394
8392
|
promise: (...args: P) => Promise<T>,
|
|
8395
8393
|
) => IWrappedFn<T, P>;
|
|
8396
8394
|
export default cancelable;
|
|
@@ -8440,7 +8438,7 @@ declare module "react-declarative/utils/hof/queued" {
|
|
|
8440
8438
|
* @param promise - The promise function to be wrapped.
|
|
8441
8439
|
* @returns - The wrapped function.
|
|
8442
8440
|
*/
|
|
8443
|
-
export const queued: <T extends
|
|
8441
|
+
export const queued: <T extends any = any, P extends any[] = any[]>(
|
|
8444
8442
|
promise: (...args: P) => Promise<T>,
|
|
8445
8443
|
) => IWrappedFn<T, P>;
|
|
8446
8444
|
export { CANCELED_SYMBOL };
|
|
@@ -8465,7 +8463,7 @@ declare module "react-declarative/utils/hof/lock" {
|
|
|
8465
8463
|
* @param promise - The promise function to be wrapped.
|
|
8466
8464
|
* @returns The wrapped function with lock functionality.
|
|
8467
8465
|
*/
|
|
8468
|
-
export const lock: <T extends
|
|
8466
|
+
export const lock: <T extends any = any, P extends any[] = any[]>(
|
|
8469
8467
|
promise: (...args: P) => Promise<T>,
|
|
8470
8468
|
) => IWrappedFn<T, P>;
|
|
8471
8469
|
export default lock;
|
|
@@ -8593,7 +8591,7 @@ declare module "react-declarative/utils/hof/trycatch" {
|
|
|
8593
8591
|
export const trycatch: <
|
|
8594
8592
|
T extends (...args: A) => any,
|
|
8595
8593
|
A extends any[],
|
|
8596
|
-
V extends
|
|
8594
|
+
V extends any,
|
|
8597
8595
|
>(
|
|
8598
8596
|
run: T,
|
|
8599
8597
|
{ allowedErrors, fallback, defaultValue }?: Partial<IConfig>,
|
|
@@ -8636,8 +8634,8 @@ declare module "react-declarative/utils/hof/ttl" {
|
|
|
8636
8634
|
key,
|
|
8637
8635
|
timeout,
|
|
8638
8636
|
}?: {
|
|
8639
|
-
key?: (
|
|
8640
|
-
timeout?: number
|
|
8637
|
+
key?: (args: A) => K;
|
|
8638
|
+
timeout?: number;
|
|
8641
8639
|
},
|
|
8642
8640
|
) => T & IClearable<K> & IControl<K, ReturnType<T>>;
|
|
8643
8641
|
export default ttl;
|
|
@@ -8861,7 +8859,7 @@ declare module "react-declarative/utils/rx/Observer" {
|
|
|
8861
8859
|
*/
|
|
8862
8860
|
mapAsync: <T = any>(
|
|
8863
8861
|
callbackfn: (value: Data) => Promise<T>,
|
|
8864
|
-
fallbackfn?: (
|
|
8862
|
+
fallbackfn?: (e: Error) => void,
|
|
8865
8863
|
) => Observer<T>;
|
|
8866
8864
|
/**
|
|
8867
8865
|
* Creates a filtered observer.
|
|
@@ -8883,14 +8881,14 @@ declare module "react-declarative/utils/rx/Observer" {
|
|
|
8883
8881
|
* @param delay - The delay (in milliseconds) between value emissions.
|
|
8884
8882
|
* @returns The debounced observer.
|
|
8885
8883
|
*/
|
|
8886
|
-
debounce: (delay?: number
|
|
8884
|
+
debounce: (delay?: number) => Observer<Data>;
|
|
8887
8885
|
/**
|
|
8888
8886
|
* Creates a delayed observer that emits values at a specified delay.
|
|
8889
8887
|
*
|
|
8890
8888
|
* @param delay - The delay (in milliseconds) between value emissions.
|
|
8891
8889
|
* @returns The debounced observer.
|
|
8892
8890
|
*/
|
|
8893
|
-
delay: (delay?: number
|
|
8891
|
+
delay: (delay?: number) => Observer<Data>;
|
|
8894
8892
|
/**
|
|
8895
8893
|
* Emits the specified data to all observers.
|
|
8896
8894
|
*
|
|
@@ -9070,7 +9068,7 @@ declare module "react-declarative/utils/rx/Subject" {
|
|
|
9070
9068
|
*/
|
|
9071
9069
|
mapAsync: <T = any>(
|
|
9072
9070
|
callbackfn: (value: Data) => Promise<T>,
|
|
9073
|
-
fallbackfn?: (
|
|
9071
|
+
fallbackfn?: (e: Error) => void,
|
|
9074
9072
|
) => TObserver<T>;
|
|
9075
9073
|
/**
|
|
9076
9074
|
* Applies a filtering function to the observer and returns a new observer with filtered values.
|
|
@@ -9108,20 +9106,20 @@ declare module "react-declarative/utils/rx/Subject" {
|
|
|
9108
9106
|
* @param [delay] - The delay in milliseconds before emitting the data.
|
|
9109
9107
|
* @returns - The debounced observer.
|
|
9110
9108
|
*/
|
|
9111
|
-
debounce: (delay?: number
|
|
9109
|
+
debounce: (delay?: number) => TObserver<Data>;
|
|
9112
9110
|
/**
|
|
9113
9111
|
* Creates a delayed observer with an optional delay.
|
|
9114
9112
|
* @param [delay] - The delay in milliseconds before emitting the data.
|
|
9115
9113
|
* @returns - The delayed observer.
|
|
9116
9114
|
*/
|
|
9117
|
-
delay: (delay?: number
|
|
9115
|
+
delay: (delay?: number) => TObserver<Data>;
|
|
9118
9116
|
/**
|
|
9119
9117
|
* Creates an observer that repeats emitting values at a specified interval.
|
|
9120
9118
|
*
|
|
9121
9119
|
* @param [interval] - The time interval at which to repeat emitting values.
|
|
9122
9120
|
* @returns - The created observer.
|
|
9123
9121
|
*/
|
|
9124
|
-
repeat: (interval?: number
|
|
9122
|
+
repeat: (interval?: number) => TObserver<Data>;
|
|
9125
9123
|
/**
|
|
9126
9124
|
* Merges the provided observer with the current observer instance.
|
|
9127
9125
|
* Returns a new observer that emits values from both observers.
|
|
@@ -9232,15 +9230,15 @@ declare module "react-declarative/utils/rx/Source" {
|
|
|
9232
9230
|
>(
|
|
9233
9231
|
observers: [
|
|
9234
9232
|
TObserver<A>,
|
|
9235
|
-
|
|
9236
|
-
|
|
9237
|
-
|
|
9238
|
-
|
|
9239
|
-
|
|
9240
|
-
|
|
9241
|
-
|
|
9242
|
-
|
|
9243
|
-
|
|
9233
|
+
TObserver<B>?,
|
|
9234
|
+
TObserver<C>?,
|
|
9235
|
+
TObserver<D>?,
|
|
9236
|
+
TObserver<E>?,
|
|
9237
|
+
TObserver<F>?,
|
|
9238
|
+
TObserver<G>?,
|
|
9239
|
+
TObserver<H>?,
|
|
9240
|
+
TObserver<I>?,
|
|
9241
|
+
TObserver<J>?,
|
|
9244
9242
|
],
|
|
9245
9243
|
) => TObserver<A | B | C | D | E | F | G | H | I | J>;
|
|
9246
9244
|
/**
|
|
@@ -9278,35 +9276,22 @@ declare module "react-declarative/utils/rx/Source" {
|
|
|
9278
9276
|
>(
|
|
9279
9277
|
observers: [
|
|
9280
9278
|
TObserver<A>,
|
|
9281
|
-
|
|
9282
|
-
|
|
9283
|
-
|
|
9284
|
-
|
|
9285
|
-
|
|
9286
|
-
|
|
9287
|
-
|
|
9288
|
-
|
|
9289
|
-
|
|
9279
|
+
TObserver<B>?,
|
|
9280
|
+
TObserver<C>?,
|
|
9281
|
+
TObserver<D>?,
|
|
9282
|
+
TObserver<E>?,
|
|
9283
|
+
TObserver<F>?,
|
|
9284
|
+
TObserver<G>?,
|
|
9285
|
+
TObserver<H>?,
|
|
9286
|
+
TObserver<I>?,
|
|
9287
|
+
TObserver<J>?,
|
|
9290
9288
|
],
|
|
9291
9289
|
{
|
|
9292
9290
|
race,
|
|
9293
9291
|
buffer,
|
|
9294
9292
|
}?: {
|
|
9295
|
-
buffer?:
|
|
9296
|
-
|
|
9297
|
-
A,
|
|
9298
|
-
(B | undefined)?,
|
|
9299
|
-
(C | undefined)?,
|
|
9300
|
-
(D | undefined)?,
|
|
9301
|
-
(E | undefined)?,
|
|
9302
|
-
(F | undefined)?,
|
|
9303
|
-
(G | undefined)?,
|
|
9304
|
-
(H | undefined)?,
|
|
9305
|
-
(I | undefined)?,
|
|
9306
|
-
(J | undefined)?,
|
|
9307
|
-
]
|
|
9308
|
-
| undefined;
|
|
9309
|
-
race?: boolean | undefined;
|
|
9293
|
+
buffer?: [A, B?, C?, D?, E?, F?, G?, H?, I?, J?];
|
|
9294
|
+
race?: boolean;
|
|
9310
9295
|
},
|
|
9311
9296
|
) => TObserver<[A, B, C, D, E, F, G, H, I, J]>;
|
|
9312
9297
|
/**
|
|
@@ -9382,59 +9367,15 @@ declare module "react-declarative/utils/rx/Source" {
|
|
|
9382
9367
|
static fromInterval: (delay: number) => TObserver<number>;
|
|
9383
9368
|
static fromPromise: <Data = any>(
|
|
9384
9369
|
callbackfn: () => Promise<Data>,
|
|
9385
|
-
fallbackfn?: (
|
|
9370
|
+
fallbackfn?: (e: Error) => void,
|
|
9386
9371
|
) => TObserver<Data>;
|
|
9387
9372
|
static fromDelay: (delay: number) => TObserver<void>;
|
|
9388
9373
|
static fromArray: <Data = any>(
|
|
9389
9374
|
data: Data,
|
|
9390
|
-
) => TObserver<
|
|
9391
|
-
readonly (Data extends readonly (infer InnerArr)[]
|
|
9392
|
-
? InnerArr extends readonly (infer InnerArr)[]
|
|
9393
|
-
? InnerArr extends readonly (infer InnerArr)[]
|
|
9394
|
-
? InnerArr extends readonly (infer InnerArr)[]
|
|
9395
|
-
? InnerArr extends readonly (infer InnerArr)[]
|
|
9396
|
-
? InnerArr extends readonly (infer InnerArr)[]
|
|
9397
|
-
? InnerArr extends readonly (infer InnerArr)[]
|
|
9398
|
-
? InnerArr extends readonly (infer InnerArr)[]
|
|
9399
|
-
? InnerArr extends readonly (infer InnerArr)[]
|
|
9400
|
-
? InnerArr extends readonly (infer InnerArr)[]
|
|
9401
|
-
? InnerArr extends readonly (infer InnerArr)[]
|
|
9402
|
-
? any
|
|
9403
|
-
: InnerArr
|
|
9404
|
-
: InnerArr
|
|
9405
|
-
: InnerArr
|
|
9406
|
-
: InnerArr
|
|
9407
|
-
: InnerArr
|
|
9408
|
-
: InnerArr
|
|
9409
|
-
: InnerArr
|
|
9410
|
-
: InnerArr
|
|
9411
|
-
: InnerArr
|
|
9412
|
-
: InnerArr
|
|
9413
|
-
: Data)[]
|
|
9414
|
-
>;
|
|
9375
|
+
) => TObserver<ReadonlyArray<FlatArray<Data[], 20>>>;
|
|
9415
9376
|
static fromEvent: (
|
|
9416
9377
|
event: keyof DocumentEventMap,
|
|
9417
|
-
) => TObserver<
|
|
9418
|
-
| Event
|
|
9419
|
-
| MouseEvent
|
|
9420
|
-
| UIEvent
|
|
9421
|
-
| FocusEvent
|
|
9422
|
-
| ErrorEvent
|
|
9423
|
-
| ProgressEvent<EventTarget>
|
|
9424
|
-
| SubmitEvent
|
|
9425
|
-
| ClipboardEvent
|
|
9426
|
-
| AnimationEvent
|
|
9427
|
-
| InputEvent
|
|
9428
|
-
| CompositionEvent
|
|
9429
|
-
| DragEvent
|
|
9430
|
-
| FormDataEvent
|
|
9431
|
-
| PointerEvent
|
|
9432
|
-
| KeyboardEvent
|
|
9433
|
-
| SecurityPolicyViolationEvent
|
|
9434
|
-
| TouchEvent
|
|
9435
|
-
| TransitionEvent
|
|
9436
|
-
| WheelEvent
|
|
9437
|
-
>;
|
|
9378
|
+
) => TObserver<DocumentEventMap[typeof event]>;
|
|
9438
9379
|
/**
|
|
9439
9380
|
* Creates a new observer that emits a value from the given data or function.
|
|
9440
9381
|
*
|
|
@@ -9468,7 +9409,7 @@ declare module "react-declarative/utils/rx/Source" {
|
|
|
9468
9409
|
|
|
9469
9410
|
declare module "react-declarative/utils/math/has" {
|
|
9470
9411
|
export const has: <T = unknown>(
|
|
9471
|
-
arr: T | Set<T> | Map<T, unknown> |
|
|
9412
|
+
arr: T | T[] | Set<T> | Map<T, unknown> | null | undefined,
|
|
9472
9413
|
value: T,
|
|
9473
9414
|
) => boolean;
|
|
9474
9415
|
export default has;
|
|
@@ -9539,7 +9480,7 @@ declare module "react-declarative/utils/math/match" {
|
|
|
9539
9480
|
}: {
|
|
9540
9481
|
condition: A | (() => A);
|
|
9541
9482
|
run: T | (() => T);
|
|
9542
|
-
not?: E | (() => E)
|
|
9483
|
+
not?: E | (() => E);
|
|
9543
9484
|
}) => A | T | E;
|
|
9544
9485
|
export default match;
|
|
9545
9486
|
}
|
|
@@ -9620,6 +9561,7 @@ declare module "react-declarative/utils/getAvailableFields" {
|
|
|
9620
9561
|
}
|
|
9621
9562
|
|
|
9622
9563
|
declare module "react-declarative/utils/getInitialData" {
|
|
9564
|
+
import IAnything from "react-declarative/model/IAnything";
|
|
9623
9565
|
import IField from "react-declarative/model/IField";
|
|
9624
9566
|
/**
|
|
9625
9567
|
* Generates initial data based on provided field definitions and payload.
|
|
@@ -9633,8 +9575,8 @@ declare module "react-declarative/utils/getInitialData" {
|
|
|
9633
9575
|
* @returns - The generated initial data object.
|
|
9634
9576
|
*/
|
|
9635
9577
|
export const getInitialData: <
|
|
9636
|
-
Data extends {} =
|
|
9637
|
-
Payload extends
|
|
9578
|
+
Data extends {} = IAnything,
|
|
9579
|
+
Payload extends IAnything = IAnything,
|
|
9638
9580
|
>(
|
|
9639
9581
|
fields: IField<Data, Payload>[],
|
|
9640
9582
|
payload?: Payload,
|
|
@@ -9661,8 +9603,9 @@ declare module "react-declarative/utils/getFilterCount" {
|
|
|
9661
9603
|
|
|
9662
9604
|
declare module "react-declarative/utils/getInvalidFields" {
|
|
9663
9605
|
import IInvalidField from "react-declarative/model/IInvalidField";
|
|
9606
|
+
import IAnything from "react-declarative/model/IAnything";
|
|
9664
9607
|
import IField from "react-declarative/model/IField";
|
|
9665
|
-
export const getInvalidFields: <Data =
|
|
9608
|
+
export const getInvalidFields: <Data = IAnything, Payload = IAnything>(
|
|
9666
9609
|
fields: IField<Data, Payload>[],
|
|
9667
9610
|
data: Data,
|
|
9668
9611
|
payload: Payload,
|
|
@@ -9671,8 +9614,9 @@ declare module "react-declarative/utils/getInvalidFields" {
|
|
|
9671
9614
|
}
|
|
9672
9615
|
|
|
9673
9616
|
declare module "react-declarative/utils/getFieldsError" {
|
|
9617
|
+
import IAnything from "react-declarative/model/IAnything";
|
|
9674
9618
|
import IField from "react-declarative/model/IField";
|
|
9675
|
-
export const getFieldsError: <Data =
|
|
9619
|
+
export const getFieldsError: <Data = IAnything, Payload = IAnything>(
|
|
9676
9620
|
fields: IField<Data, Payload>[],
|
|
9677
9621
|
data: Data,
|
|
9678
9622
|
payload: Payload,
|
|
@@ -9695,8 +9639,8 @@ declare module "react-declarative/utils/getFieldVariant" {
|
|
|
9695
9639
|
keyToTitle,
|
|
9696
9640
|
ignore,
|
|
9697
9641
|
}?: {
|
|
9698
|
-
keyToTitle?: (
|
|
9699
|
-
ignore?: (
|
|
9642
|
+
keyToTitle?: (v: string) => string;
|
|
9643
|
+
ignore?: (key: string) => boolean;
|
|
9700
9644
|
},
|
|
9701
9645
|
) => {
|
|
9702
9646
|
label: string;
|
|
@@ -9706,18 +9650,17 @@ declare module "react-declarative/utils/getFieldVariant" {
|
|
|
9706
9650
|
}
|
|
9707
9651
|
|
|
9708
9652
|
declare module "react-declarative/utils/isInvalidFieldData" {
|
|
9653
|
+
import IAnything from "react-declarative/model/IAnything";
|
|
9709
9654
|
import IField from "react-declarative/model/IField";
|
|
9710
|
-
export const isInvalidFieldData: <Data =
|
|
9655
|
+
export const isInvalidFieldData: <Data = IAnything, Payload = IAnything>(
|
|
9711
9656
|
fields: IField<Data, Payload>[],
|
|
9712
9657
|
data: Data,
|
|
9713
9658
|
payload: Payload,
|
|
9714
|
-
fallback?:
|
|
9715
|
-
|
|
9716
|
-
|
|
9717
|
-
|
|
9718
|
-
|
|
9719
|
-
) => void)
|
|
9720
|
-
| undefined,
|
|
9659
|
+
fallback?: (
|
|
9660
|
+
error: string,
|
|
9661
|
+
title: string | undefined,
|
|
9662
|
+
name: string | undefined,
|
|
9663
|
+
) => void,
|
|
9721
9664
|
) => boolean;
|
|
9722
9665
|
export default isInvalidFieldData;
|
|
9723
9666
|
}
|
|
@@ -11193,7 +11136,7 @@ declare module "react-declarative/api/pickDocuments" {
|
|
|
11193
11136
|
* @returns - A function that takes an array of documents and returns an object with `rows` and `done` properties.
|
|
11194
11137
|
* The `rows` property contains the picked documents, and `done` property indicates if the picking is finished.
|
|
11195
11138
|
*/
|
|
11196
|
-
export const pickDocuments: <T extends
|
|
11139
|
+
export const pickDocuments: <T extends any>(
|
|
11197
11140
|
limit: number,
|
|
11198
11141
|
offset: number,
|
|
11199
11142
|
) => (rows?: T[]) => {
|
|
@@ -11280,8 +11223,8 @@ declare module "react-declarative/api/iterateList" {
|
|
|
11280
11223
|
import IRowData from "react-declarative/model/IRowData";
|
|
11281
11224
|
export function iterateList<T extends IRowData = IRowData>(
|
|
11282
11225
|
rows: T[],
|
|
11283
|
-
map?: (row: T) => Promise<T
|
|
11284
|
-
): AsyncGenerator<T
|
|
11226
|
+
map?: (row: T) => Promise<Awaited<T>>,
|
|
11227
|
+
): AsyncGenerator<Awaited<T>, void, unknown>;
|
|
11285
11228
|
export default iterateList;
|
|
11286
11229
|
}
|
|
11287
11230
|
|
|
@@ -12002,19 +11945,10 @@ declare module "react-declarative/components/One/layouts/FragmentLayout" {
|
|
|
12002
11945
|
children,
|
|
12003
11946
|
isVisible,
|
|
12004
11947
|
ready,
|
|
12005
|
-
}: IFragmentLayoutProps<Data
|
|
12006
|
-
IFragmentLayoutPrivate<Data>): JSX.Element;
|
|
12007
|
-
displayName: string;
|
|
12008
|
-
};
|
|
12009
|
-
const _default: {
|
|
12010
|
-
<Data extends unknown = any>({
|
|
12011
|
-
children,
|
|
12012
|
-
isVisible,
|
|
12013
|
-
ready,
|
|
12014
|
-
}: IFragmentLayoutProps<Data, any> &
|
|
12015
|
-
IFragmentLayoutPrivate<Data>): JSX.Element;
|
|
11948
|
+
}: IFragmentLayoutProps<Data> & IFragmentLayoutPrivate<Data>): JSX.Element;
|
|
12016
11949
|
displayName: string;
|
|
12017
11950
|
};
|
|
11951
|
+
const _default: typeof FragmentLayout;
|
|
12018
11952
|
export default _default;
|
|
12019
11953
|
}
|
|
12020
11954
|
|
|
@@ -12065,18 +11999,10 @@ declare module "react-declarative/components/One/layouts/DivLayout" {
|
|
|
12065
11999
|
className,
|
|
12066
12000
|
style,
|
|
12067
12001
|
testId,
|
|
12068
|
-
}: IDivLayoutProps<Data
|
|
12069
|
-
displayName: string;
|
|
12070
|
-
};
|
|
12071
|
-
const _default: {
|
|
12072
|
-
<Data extends unknown = any>({
|
|
12073
|
-
children,
|
|
12074
|
-
className,
|
|
12075
|
-
style,
|
|
12076
|
-
testId,
|
|
12077
|
-
}: IDivLayoutProps<Data, any> & IDivLayoutPrivate<Data>): JSX.Element;
|
|
12002
|
+
}: IDivLayoutProps<Data> & IDivLayoutPrivate<Data>): JSX.Element;
|
|
12078
12003
|
displayName: string;
|
|
12079
12004
|
};
|
|
12005
|
+
const _default: typeof DivLayout;
|
|
12080
12006
|
export default _default;
|
|
12081
12007
|
}
|
|
12082
12008
|
|
|
@@ -12128,19 +12054,10 @@ declare module "react-declarative/components/One/layouts/BoxLayout" {
|
|
|
12128
12054
|
style,
|
|
12129
12055
|
sx,
|
|
12130
12056
|
testId,
|
|
12131
|
-
}: IBoxLayoutProps<Data
|
|
12132
|
-
displayName: string;
|
|
12133
|
-
};
|
|
12134
|
-
const _default: {
|
|
12135
|
-
<Data extends unknown = any>({
|
|
12136
|
-
children,
|
|
12137
|
-
className,
|
|
12138
|
-
style,
|
|
12139
|
-
sx,
|
|
12140
|
-
testId,
|
|
12141
|
-
}: IBoxLayoutProps<Data, any> & IBoxLayoutPrivate<Data>): JSX.Element;
|
|
12057
|
+
}: IBoxLayoutProps<Data> & IBoxLayoutPrivate<Data>): JSX.Element;
|
|
12142
12058
|
displayName: string;
|
|
12143
12059
|
};
|
|
12060
|
+
const _default: typeof BoxLayout;
|
|
12144
12061
|
export default _default;
|
|
12145
12062
|
}
|
|
12146
12063
|
|
|
@@ -12228,35 +12145,10 @@ declare module "react-declarative/components/One/layouts/TabsLayout" {
|
|
|
12228
12145
|
desktopColumns,
|
|
12229
12146
|
fieldRightMargin,
|
|
12230
12147
|
fieldBottomMargin,
|
|
12231
|
-
}: ITabsLayoutProps<Data
|
|
12232
|
-
displayName: string;
|
|
12233
|
-
};
|
|
12234
|
-
const _default: {
|
|
12235
|
-
<Data extends unknown = any>({
|
|
12236
|
-
children,
|
|
12237
|
-
className,
|
|
12238
|
-
style,
|
|
12239
|
-
tabChange,
|
|
12240
|
-
tabVariant,
|
|
12241
|
-
tabLine,
|
|
12242
|
-
tabColor,
|
|
12243
|
-
tabList,
|
|
12244
|
-
tabKeepFlow,
|
|
12245
|
-
tabBackground,
|
|
12246
|
-
tabIndex: tabIndexDefault,
|
|
12247
|
-
columns,
|
|
12248
|
-
columnsOverride,
|
|
12249
|
-
isBaselineAlign,
|
|
12250
|
-
sx,
|
|
12251
|
-
testId,
|
|
12252
|
-
phoneColumns,
|
|
12253
|
-
tabletColumns,
|
|
12254
|
-
desktopColumns,
|
|
12255
|
-
fieldRightMargin,
|
|
12256
|
-
fieldBottomMargin,
|
|
12257
|
-
}: ITabsLayoutProps<Data, any> & ITabsLayoutPrivate<Data>): JSX.Element;
|
|
12148
|
+
}: ITabsLayoutProps<Data> & ITabsLayoutPrivate<Data>): JSX.Element;
|
|
12258
12149
|
displayName: string;
|
|
12259
12150
|
};
|
|
12151
|
+
const _default: typeof TabsLayout;
|
|
12260
12152
|
export default _default;
|
|
12261
12153
|
}
|
|
12262
12154
|
|
|
@@ -12326,28 +12218,10 @@ declare module "react-declarative/components/One/layouts/CenterLayout" {
|
|
|
12326
12218
|
sx,
|
|
12327
12219
|
fieldRightMargin,
|
|
12328
12220
|
fieldBottomMargin,
|
|
12329
|
-
}: ICenterLayoutProps<Data
|
|
12330
|
-
displayName: string;
|
|
12331
|
-
};
|
|
12332
|
-
const _default: {
|
|
12333
|
-
<Data extends unknown = any>({
|
|
12334
|
-
children,
|
|
12335
|
-
className,
|
|
12336
|
-
style,
|
|
12337
|
-
innerPadding: padding,
|
|
12338
|
-
columns,
|
|
12339
|
-
phoneColumns,
|
|
12340
|
-
tabletColumns,
|
|
12341
|
-
desktopColumns,
|
|
12342
|
-
columnsOverride,
|
|
12343
|
-
isBaselineAlign,
|
|
12344
|
-
testId,
|
|
12345
|
-
sx,
|
|
12346
|
-
fieldRightMargin,
|
|
12347
|
-
fieldBottomMargin,
|
|
12348
|
-
}: ICenterLayoutProps<Data, any> & ICenterLayoutPrivate<Data>): JSX.Element;
|
|
12221
|
+
}: ICenterLayoutProps<Data> & ICenterLayoutPrivate<Data>): JSX.Element;
|
|
12349
12222
|
displayName: string;
|
|
12350
12223
|
};
|
|
12224
|
+
const _default: typeof CenterLayout;
|
|
12351
12225
|
export default _default;
|
|
12352
12226
|
}
|
|
12353
12227
|
|
|
@@ -12399,21 +12273,10 @@ declare module "react-declarative/components/One/layouts/StretchLayout" {
|
|
|
12399
12273
|
style,
|
|
12400
12274
|
testId,
|
|
12401
12275
|
innerPadding: padding,
|
|
12402
|
-
}: IStretchLayoutProps<Data
|
|
12403
|
-
IStretchLayoutPrivate<Data>): JSX.Element;
|
|
12404
|
-
displayName: string;
|
|
12405
|
-
};
|
|
12406
|
-
const _default: {
|
|
12407
|
-
<Data extends unknown = any>({
|
|
12408
|
-
children,
|
|
12409
|
-
className,
|
|
12410
|
-
style,
|
|
12411
|
-
testId,
|
|
12412
|
-
innerPadding: padding,
|
|
12413
|
-
}: IStretchLayoutProps<Data, any> &
|
|
12414
|
-
IStretchLayoutPrivate<Data>): JSX.Element;
|
|
12276
|
+
}: IStretchLayoutProps<Data> & IStretchLayoutPrivate<Data>): JSX.Element;
|
|
12415
12277
|
displayName: string;
|
|
12416
12278
|
};
|
|
12279
|
+
const _default: typeof StretchLayout;
|
|
12417
12280
|
export default _default;
|
|
12418
12281
|
}
|
|
12419
12282
|
|
|
@@ -12472,27 +12335,10 @@ declare module "react-declarative/components/One/layouts/GroupLayout" {
|
|
|
12472
12335
|
testId,
|
|
12473
12336
|
className,
|
|
12474
12337
|
children,
|
|
12475
|
-
}: IGroupLayoutProps<Data
|
|
12476
|
-
displayName: string;
|
|
12477
|
-
};
|
|
12478
|
-
const _default: {
|
|
12479
|
-
<Data extends unknown = any>({
|
|
12480
|
-
columns,
|
|
12481
|
-
columnsOverride,
|
|
12482
|
-
sx,
|
|
12483
|
-
phoneColumns,
|
|
12484
|
-
tabletColumns,
|
|
12485
|
-
desktopColumns,
|
|
12486
|
-
isBaselineAlign,
|
|
12487
|
-
fieldRightMargin,
|
|
12488
|
-
fieldBottomMargin,
|
|
12489
|
-
style,
|
|
12490
|
-
testId,
|
|
12491
|
-
className,
|
|
12492
|
-
children,
|
|
12493
|
-
}: IGroupLayoutProps<Data, any> & IGroupLayoutPrivate): JSX.Element;
|
|
12338
|
+
}: IGroupLayoutProps<Data> & IGroupLayoutPrivate): JSX.Element;
|
|
12494
12339
|
displayName: string;
|
|
12495
12340
|
};
|
|
12341
|
+
const _default: typeof GroupLayout;
|
|
12496
12342
|
export default _default;
|
|
12497
12343
|
}
|
|
12498
12344
|
|
|
@@ -12560,28 +12406,10 @@ declare module "react-declarative/components/One/layouts/OutlineLayout" {
|
|
|
12560
12406
|
fieldRightMargin,
|
|
12561
12407
|
fieldBottomMargin,
|
|
12562
12408
|
innerPadding: padding,
|
|
12563
|
-
}: IOutlineLayoutProps<Data
|
|
12564
|
-
displayName: string;
|
|
12565
|
-
};
|
|
12566
|
-
const _default: {
|
|
12567
|
-
<Data extends unknown = any>({
|
|
12568
|
-
columns,
|
|
12569
|
-
columnsOverride,
|
|
12570
|
-
sx,
|
|
12571
|
-
phoneColumns,
|
|
12572
|
-
tabletColumns,
|
|
12573
|
-
desktopColumns,
|
|
12574
|
-
style,
|
|
12575
|
-
className,
|
|
12576
|
-
children,
|
|
12577
|
-
testId,
|
|
12578
|
-
isBaselineAlign,
|
|
12579
|
-
fieldRightMargin,
|
|
12580
|
-
fieldBottomMargin,
|
|
12581
|
-
innerPadding: padding,
|
|
12582
|
-
}: IOutlineLayoutProps<Data, any> & IOutlineLayoutPrivate): JSX.Element;
|
|
12409
|
+
}: IOutlineLayoutProps<Data> & IOutlineLayoutPrivate): JSX.Element;
|
|
12583
12410
|
displayName: string;
|
|
12584
12411
|
};
|
|
12412
|
+
const _default: typeof OutlineLayout;
|
|
12585
12413
|
export default _default;
|
|
12586
12414
|
}
|
|
12587
12415
|
|
|
@@ -12654,30 +12482,10 @@ declare module "react-declarative/components/One/layouts/PaperLayout" {
|
|
|
12654
12482
|
innerPadding: padding,
|
|
12655
12483
|
outlinePaper,
|
|
12656
12484
|
transparentPaper,
|
|
12657
|
-
}: IPaperLayoutProps<Data
|
|
12658
|
-
displayName: string;
|
|
12659
|
-
};
|
|
12660
|
-
const _default: {
|
|
12661
|
-
<Data extends unknown = any>({
|
|
12662
|
-
columns,
|
|
12663
|
-
columnsOverride,
|
|
12664
|
-
sx,
|
|
12665
|
-
phoneColumns,
|
|
12666
|
-
tabletColumns,
|
|
12667
|
-
desktopColumns,
|
|
12668
|
-
style,
|
|
12669
|
-
className,
|
|
12670
|
-
children,
|
|
12671
|
-
testId,
|
|
12672
|
-
isBaselineAlign,
|
|
12673
|
-
fieldRightMargin,
|
|
12674
|
-
fieldBottomMargin,
|
|
12675
|
-
innerPadding: padding,
|
|
12676
|
-
outlinePaper,
|
|
12677
|
-
transparentPaper,
|
|
12678
|
-
}: IPaperLayoutProps<Data, any> & IPaperLayoutPrivate): JSX.Element;
|
|
12485
|
+
}: IPaperLayoutProps<Data> & IPaperLayoutPrivate): JSX.Element;
|
|
12679
12486
|
displayName: string;
|
|
12680
12487
|
};
|
|
12488
|
+
const _default: typeof PaperLayout;
|
|
12681
12489
|
export default _default;
|
|
12682
12490
|
}
|
|
12683
12491
|
|
|
@@ -12751,32 +12559,10 @@ declare module "react-declarative/components/One/layouts/ExpansionLayout" {
|
|
|
12751
12559
|
expansionOpened,
|
|
12752
12560
|
outlinePaper,
|
|
12753
12561
|
transparentPaper,
|
|
12754
|
-
}: IExpansionLayoutProps<Data
|
|
12755
|
-
displayName: string;
|
|
12756
|
-
};
|
|
12757
|
-
const _default: {
|
|
12758
|
-
<Data extends unknown = any>({
|
|
12759
|
-
columns,
|
|
12760
|
-
columnsOverride,
|
|
12761
|
-
sx,
|
|
12762
|
-
phoneColumns,
|
|
12763
|
-
tabletColumns,
|
|
12764
|
-
desktopColumns,
|
|
12765
|
-
isBaselineAlign,
|
|
12766
|
-
fieldRightMargin,
|
|
12767
|
-
fieldBottomMargin,
|
|
12768
|
-
style,
|
|
12769
|
-
className,
|
|
12770
|
-
children,
|
|
12771
|
-
title,
|
|
12772
|
-
testId,
|
|
12773
|
-
description,
|
|
12774
|
-
expansionOpened,
|
|
12775
|
-
outlinePaper,
|
|
12776
|
-
transparentPaper,
|
|
12777
|
-
}: IExpansionLayoutProps<Data, any> & IExpansionLayoutPrivate): JSX.Element;
|
|
12562
|
+
}: IExpansionLayoutProps<Data> & IExpansionLayoutPrivate): JSX.Element;
|
|
12778
12563
|
displayName: string;
|
|
12779
12564
|
};
|
|
12565
|
+
const _default: typeof ExpansionLayout;
|
|
12780
12566
|
export default _default;
|
|
12781
12567
|
}
|
|
12782
12568
|
|
|
@@ -13026,27 +12812,10 @@ declare module "react-declarative/components/One/layouts/HeroLayout" {
|
|
|
13026
12812
|
tabletColumns,
|
|
13027
12813
|
desktopColumns,
|
|
13028
12814
|
...otherProps
|
|
13029
|
-
}: IHeroLayoutProps<Data
|
|
13030
|
-
displayName: string;
|
|
13031
|
-
};
|
|
13032
|
-
const _default: {
|
|
13033
|
-
<Data extends unknown = any>({
|
|
13034
|
-
children,
|
|
13035
|
-
className,
|
|
13036
|
-
style,
|
|
13037
|
-
object,
|
|
13038
|
-
columns,
|
|
13039
|
-
columnsOverride,
|
|
13040
|
-
isBaselineAlign,
|
|
13041
|
-
testId,
|
|
13042
|
-
sx,
|
|
13043
|
-
phoneColumns,
|
|
13044
|
-
tabletColumns,
|
|
13045
|
-
desktopColumns,
|
|
13046
|
-
...otherProps
|
|
13047
|
-
}: IHeroLayoutProps<Data, any> & IHeroLayoutPrivate): JSX.Element;
|
|
12815
|
+
}: IHeroLayoutProps<Data> & IHeroLayoutPrivate): JSX.Element;
|
|
13048
12816
|
displayName: string;
|
|
13049
12817
|
};
|
|
12818
|
+
const _default: typeof HeroLayout;
|
|
13050
12819
|
export default _default;
|
|
13051
12820
|
}
|
|
13052
12821
|
|
|
@@ -13105,23 +12874,11 @@ declare module "react-declarative/components/One/layouts/ConditionLayout" {
|
|
|
13105
12874
|
conditionElse: ConditionElse,
|
|
13106
12875
|
fallback,
|
|
13107
12876
|
object,
|
|
13108
|
-
}: IConditionLayoutProps<Data
|
|
13109
|
-
IConditionLayoutPrivate<Data>): JSX.Element;
|
|
13110
|
-
displayName: string;
|
|
13111
|
-
};
|
|
13112
|
-
const _default: {
|
|
13113
|
-
<Data extends unknown = any>({
|
|
13114
|
-
children,
|
|
13115
|
-
condition,
|
|
13116
|
-
shouldCondition,
|
|
13117
|
-
conditionLoading: ConditionLoading,
|
|
13118
|
-
conditionElse: ConditionElse,
|
|
13119
|
-
fallback,
|
|
13120
|
-
object,
|
|
13121
|
-
}: IConditionLayoutProps<Data, any> &
|
|
12877
|
+
}: IConditionLayoutProps<Data> &
|
|
13122
12878
|
IConditionLayoutPrivate<Data>): JSX.Element;
|
|
13123
12879
|
displayName: string;
|
|
13124
12880
|
};
|
|
12881
|
+
const _default: typeof ConditionLayout;
|
|
13125
12882
|
export default _default;
|
|
13126
12883
|
}
|
|
13127
12884
|
|
|
@@ -13172,21 +12929,10 @@ declare module "react-declarative/components/One/layouts/CustomLayout" {
|
|
|
13172
12929
|
testId,
|
|
13173
12930
|
customLayout: CustomLayout,
|
|
13174
12931
|
...otherProps
|
|
13175
|
-
}: ICustomLayoutProps<Data
|
|
13176
|
-
displayName: string;
|
|
13177
|
-
};
|
|
13178
|
-
const _default: {
|
|
13179
|
-
<Data extends unknown = any>({
|
|
13180
|
-
children,
|
|
13181
|
-
className,
|
|
13182
|
-
style,
|
|
13183
|
-
sx,
|
|
13184
|
-
testId,
|
|
13185
|
-
customLayout: CustomLayout,
|
|
13186
|
-
...otherProps
|
|
13187
|
-
}: ICustomLayoutProps<Data, any> & ICustomLayoutPrivate<Data>): JSX.Element;
|
|
12932
|
+
}: ICustomLayoutProps<Data> & ICustomLayoutPrivate<Data>): JSX.Element;
|
|
13188
12933
|
displayName: string;
|
|
13189
12934
|
};
|
|
12935
|
+
const _default: typeof CustomLayout;
|
|
13190
12936
|
export default _default;
|
|
13191
12937
|
}
|
|
13192
12938
|
|
|
@@ -13317,7 +13063,7 @@ declare module "react-declarative/components/One/fields/CheckboxField" {
|
|
|
13317
13063
|
transparentPaper,
|
|
13318
13064
|
testId,
|
|
13319
13065
|
...otherProps
|
|
13320
|
-
}: import("../../../model/IEntity").IEntity<Data
|
|
13066
|
+
}: import("../../../model/IEntity").IEntity<Data>): JSX.Element | null;
|
|
13321
13067
|
displayName: string;
|
|
13322
13068
|
};
|
|
13323
13069
|
export default _default;
|
|
@@ -13470,7 +13216,7 @@ declare module "react-declarative/components/One/fields/IconField" {
|
|
|
13470
13216
|
transparentPaper,
|
|
13471
13217
|
testId,
|
|
13472
13218
|
...otherProps
|
|
13473
|
-
}: import("../../../model/IEntity").IEntity<Data
|
|
13219
|
+
}: import("../../../model/IEntity").IEntity<Data>): JSX.Element | null;
|
|
13474
13220
|
displayName: string;
|
|
13475
13221
|
};
|
|
13476
13222
|
export default _default;
|
|
@@ -13649,7 +13395,7 @@ declare module "react-declarative/components/One/fields/ButtonField" {
|
|
|
13649
13395
|
transparentPaper,
|
|
13650
13396
|
testId,
|
|
13651
13397
|
...otherProps
|
|
13652
|
-
}: import("../../../model/IEntity").IEntity<Data
|
|
13398
|
+
}: import("../../../model/IEntity").IEntity<Data>): JSX.Element | null;
|
|
13653
13399
|
displayName: string;
|
|
13654
13400
|
};
|
|
13655
13401
|
export default _default;
|
|
@@ -13897,7 +13643,7 @@ declare module "react-declarative/components/One/fields/FileField" {
|
|
|
13897
13643
|
transparentPaper,
|
|
13898
13644
|
testId,
|
|
13899
13645
|
...otherProps
|
|
13900
|
-
}: import("../../../model/IEntity").IEntity<Data
|
|
13646
|
+
}: import("../../../model/IEntity").IEntity<Data>): JSX.Element | null;
|
|
13901
13647
|
displayName: string;
|
|
13902
13648
|
};
|
|
13903
13649
|
export default _default;
|
|
@@ -14144,7 +13890,7 @@ declare module "react-declarative/components/One/fields/ComboField" {
|
|
|
14144
13890
|
transparentPaper,
|
|
14145
13891
|
testId,
|
|
14146
13892
|
...otherProps
|
|
14147
|
-
}: import("../../../model/IEntity").IEntity<Data
|
|
13893
|
+
}: import("../../../model/IEntity").IEntity<Data>): JSX.Element | null;
|
|
14148
13894
|
displayName: string;
|
|
14149
13895
|
};
|
|
14150
13896
|
export default _default;
|
|
@@ -14323,7 +14069,7 @@ declare module "react-declarative/components/One/fields/ComponentField" {
|
|
|
14323
14069
|
transparentPaper,
|
|
14324
14070
|
testId,
|
|
14325
14071
|
...otherProps
|
|
14326
|
-
}: import("../../../model/IEntity").IEntity<Data
|
|
14072
|
+
}: import("../../../model/IEntity").IEntity<Data>): JSX.Element | null;
|
|
14327
14073
|
displayName: string;
|
|
14328
14074
|
};
|
|
14329
14075
|
export default _default;
|
|
@@ -14590,7 +14336,7 @@ declare module "react-declarative/components/One/fields/ItemsField" {
|
|
|
14590
14336
|
transparentPaper,
|
|
14591
14337
|
testId,
|
|
14592
14338
|
...otherProps
|
|
14593
|
-
}: import("../../../model/IEntity").IEntity<Data
|
|
14339
|
+
}: import("../../../model/IEntity").IEntity<Data>): JSX.Element | null;
|
|
14594
14340
|
displayName: string;
|
|
14595
14341
|
};
|
|
14596
14342
|
export default _default;
|
|
@@ -14697,7 +14443,7 @@ declare module "react-declarative/components/One/fields/LineField" {
|
|
|
14697
14443
|
transparentPaper,
|
|
14698
14444
|
testId,
|
|
14699
14445
|
...otherProps
|
|
14700
|
-
}: import("../../../model/IEntity").IEntity<Data
|
|
14446
|
+
}: import("../../../model/IEntity").IEntity<Data>): JSX.Element | null;
|
|
14701
14447
|
displayName: string;
|
|
14702
14448
|
};
|
|
14703
14449
|
export default _default;
|
|
@@ -14816,7 +14562,7 @@ declare module "react-declarative/components/One/fields/ProgressField" {
|
|
|
14816
14562
|
transparentPaper,
|
|
14817
14563
|
testId,
|
|
14818
14564
|
...otherProps
|
|
14819
|
-
}: import("../../../model/IEntity").IEntity<Data
|
|
14565
|
+
}: import("../../../model/IEntity").IEntity<Data>): JSX.Element | null;
|
|
14820
14566
|
displayName: string;
|
|
14821
14567
|
};
|
|
14822
14568
|
export default _default;
|
|
@@ -14962,7 +14708,7 @@ declare module "react-declarative/components/One/fields/RadioField" {
|
|
|
14962
14708
|
transparentPaper,
|
|
14963
14709
|
testId,
|
|
14964
14710
|
...otherProps
|
|
14965
|
-
}: import("../../../model/IEntity").IEntity<Data
|
|
14711
|
+
}: import("../../../model/IEntity").IEntity<Data>): JSX.Element | null;
|
|
14966
14712
|
displayName: string;
|
|
14967
14713
|
};
|
|
14968
14714
|
export default _default;
|
|
@@ -15082,7 +14828,7 @@ declare module "react-declarative/components/One/fields/RatingField" {
|
|
|
15082
14828
|
transparentPaper,
|
|
15083
14829
|
testId,
|
|
15084
14830
|
...otherProps
|
|
15085
|
-
}: import("../../../model/IEntity").IEntity<Data
|
|
14831
|
+
}: import("../../../model/IEntity").IEntity<Data>): JSX.Element | null;
|
|
15086
14832
|
displayName: string;
|
|
15087
14833
|
};
|
|
15088
14834
|
export default _default;
|
|
@@ -15324,7 +15070,7 @@ declare module "react-declarative/components/One/fields/SliderField" {
|
|
|
15324
15070
|
transparentPaper,
|
|
15325
15071
|
testId,
|
|
15326
15072
|
...otherProps
|
|
15327
|
-
}: import("../../../model/IEntity").IEntity<Data
|
|
15073
|
+
}: import("../../../model/IEntity").IEntity<Data>): JSX.Element | null;
|
|
15328
15074
|
displayName: string;
|
|
15329
15075
|
};
|
|
15330
15076
|
export default _default;
|
|
@@ -15477,7 +15223,7 @@ declare module "react-declarative/components/One/fields/SwitchField" {
|
|
|
15477
15223
|
transparentPaper,
|
|
15478
15224
|
testId,
|
|
15479
15225
|
...otherProps
|
|
15480
|
-
}: import("../../../model/IEntity").IEntity<Data
|
|
15226
|
+
}: import("../../../model/IEntity").IEntity<Data>): JSX.Element | null;
|
|
15481
15227
|
displayName: string;
|
|
15482
15228
|
};
|
|
15483
15229
|
export default _default;
|
|
@@ -15878,7 +15624,7 @@ declare module "react-declarative/components/One/fields/TextField" {
|
|
|
15878
15624
|
transparentPaper,
|
|
15879
15625
|
testId,
|
|
15880
15626
|
...otherProps
|
|
15881
|
-
}: import("../../../model/IEntity").IEntity<Data
|
|
15627
|
+
}: import("../../../model/IEntity").IEntity<Data>): JSX.Element | null;
|
|
15882
15628
|
displayName: string;
|
|
15883
15629
|
};
|
|
15884
15630
|
export default _default;
|
|
@@ -16084,7 +15830,7 @@ declare module "react-declarative/components/One/fields/DateField" {
|
|
|
16084
15830
|
transparentPaper,
|
|
16085
15831
|
testId,
|
|
16086
15832
|
...otherProps
|
|
16087
|
-
}: import("../../../model/IEntity").IEntity<Data
|
|
15833
|
+
}: import("../../../model/IEntity").IEntity<Data>): JSX.Element | null;
|
|
16088
15834
|
displayName: string;
|
|
16089
15835
|
};
|
|
16090
15836
|
export default _default;
|
|
@@ -16290,7 +16036,7 @@ declare module "react-declarative/components/One/fields/TimeField" {
|
|
|
16290
16036
|
transparentPaper,
|
|
16291
16037
|
testId,
|
|
16292
16038
|
...otherProps
|
|
16293
|
-
}: import("../../../model/IEntity").IEntity<Data
|
|
16039
|
+
}: import("../../../model/IEntity").IEntity<Data>): JSX.Element | null;
|
|
16294
16040
|
displayName: string;
|
|
16295
16041
|
};
|
|
16296
16042
|
export default _default;
|
|
@@ -16659,7 +16405,7 @@ declare module "react-declarative/components/One/fields/CompleteField" {
|
|
|
16659
16405
|
transparentPaper,
|
|
16660
16406
|
testId,
|
|
16661
16407
|
...otherProps
|
|
16662
|
-
}: import("../../../model/IEntity").IEntity<Data
|
|
16408
|
+
}: import("../../../model/IEntity").IEntity<Data>): JSX.Element | null;
|
|
16663
16409
|
displayName: string;
|
|
16664
16410
|
};
|
|
16665
16411
|
export default _default;
|
|
@@ -16798,7 +16544,7 @@ declare module "react-declarative/components/One/fields/TypographyField" {
|
|
|
16798
16544
|
transparentPaper,
|
|
16799
16545
|
testId,
|
|
16800
16546
|
...otherProps
|
|
16801
|
-
}: import("../../../model/IEntity").IEntity<Data
|
|
16547
|
+
}: import("../../../model/IEntity").IEntity<Data>): JSX.Element | null;
|
|
16802
16548
|
displayName: string;
|
|
16803
16549
|
};
|
|
16804
16550
|
export default _default;
|
|
@@ -17008,7 +16754,7 @@ declare module "react-declarative/components/One/fields/ChooseField" {
|
|
|
17008
16754
|
transparentPaper,
|
|
17009
16755
|
testId,
|
|
17010
16756
|
...otherProps
|
|
17011
|
-
}: import("../../../model/IEntity").IEntity<Data
|
|
16757
|
+
}: import("../../../model/IEntity").IEntity<Data>): JSX.Element | null;
|
|
17012
16758
|
displayName: string;
|
|
17013
16759
|
};
|
|
17014
16760
|
export default _default;
|
|
@@ -17252,7 +16998,7 @@ declare module "react-declarative/components/One/fields/YesNoField" {
|
|
|
17252
16998
|
transparentPaper,
|
|
17253
16999
|
testId,
|
|
17254
17000
|
...otherProps
|
|
17255
|
-
}: import("../../../model/IEntity").IEntity<Data
|
|
17001
|
+
}: import("../../../model/IEntity").IEntity<Data>): JSX.Element | null;
|
|
17256
17002
|
displayName: string;
|
|
17257
17003
|
};
|
|
17258
17004
|
export default _default;
|
|
@@ -17785,7 +17531,7 @@ declare module "react-declarative/components/One/fields/DictField" {
|
|
|
17785
17531
|
transparentPaper,
|
|
17786
17532
|
testId,
|
|
17787
17533
|
...otherProps
|
|
17788
|
-
}: import("../../../model/IEntity").IEntity<Data
|
|
17534
|
+
}: import("../../../model/IEntity").IEntity<Data>): JSX.Element | null;
|
|
17789
17535
|
displayName: string;
|
|
17790
17536
|
};
|
|
17791
17537
|
export default _default;
|
|
@@ -17993,7 +17739,7 @@ declare module "react-declarative/components/One/fields/TreeField" {
|
|
|
17993
17739
|
transparentPaper,
|
|
17994
17740
|
testId,
|
|
17995
17741
|
...otherProps
|
|
17996
|
-
}: import("../../../model/IEntity").IEntity<Data
|
|
17742
|
+
}: import("../../../model/IEntity").IEntity<Data>): JSX.Element | null;
|
|
17997
17743
|
displayName: string;
|
|
17998
17744
|
};
|
|
17999
17745
|
export default _default;
|
|
@@ -18367,16 +18113,17 @@ declare module "react-declarative/components/List/api/useLastPagination" {
|
|
|
18367
18113
|
* @returns - An object containing the handler function and the state data.
|
|
18368
18114
|
*/
|
|
18369
18115
|
export const useLastPagination: <
|
|
18370
|
-
FilterData extends {} =
|
|
18371
|
-
RowData extends IRowData =
|
|
18116
|
+
FilterData extends {} = IAnything,
|
|
18117
|
+
RowData extends IRowData = IAnything,
|
|
18372
18118
|
>(
|
|
18373
|
-
upperHandler: ListHandler<FilterData, RowData
|
|
18119
|
+
upperHandler: ListHandler<FilterData, RowData>,
|
|
18374
18120
|
) => IResult;
|
|
18375
18121
|
export default useLastPagination;
|
|
18376
18122
|
}
|
|
18377
18123
|
|
|
18378
18124
|
declare module "react-declarative/components/List/List" {
|
|
18379
18125
|
import IRowData from "react-declarative/model/IRowData";
|
|
18126
|
+
import IAnything from "react-declarative/model/IAnything";
|
|
18380
18127
|
import IField from "react-declarative/model/IField";
|
|
18381
18128
|
import IListProps from "react-declarative/model/IListProps";
|
|
18382
18129
|
import TypedField from "react-declarative/model/TypedField";
|
|
@@ -18418,10 +18165,10 @@ declare module "react-declarative/components/List/List" {
|
|
|
18418
18165
|
* @returns - The List component.
|
|
18419
18166
|
*/
|
|
18420
18167
|
export const List: <
|
|
18421
|
-
FilterData extends {} =
|
|
18422
|
-
RowData extends IRowData =
|
|
18423
|
-
Payload extends
|
|
18424
|
-
Field extends IField
|
|
18168
|
+
FilterData extends {} = IAnything,
|
|
18169
|
+
RowData extends IRowData = IAnything,
|
|
18170
|
+
Payload extends IAnything = IAnything,
|
|
18171
|
+
Field extends IField = IField<FilterData, Payload>,
|
|
18425
18172
|
>(
|
|
18426
18173
|
props: IListProps<FilterData, RowData, Payload, Field>,
|
|
18427
18174
|
) => JSX.Element;
|
|
@@ -18436,15 +18183,10 @@ declare module "react-declarative/components/List/List" {
|
|
|
18436
18183
|
* @return - The rendered list component.
|
|
18437
18184
|
*/
|
|
18438
18185
|
export const ListTyped: <
|
|
18439
|
-
FilterData extends {} =
|
|
18440
|
-
RowData extends IRowData =
|
|
18186
|
+
FilterData extends {} = IAnything,
|
|
18187
|
+
RowData extends IRowData = IAnything,
|
|
18441
18188
|
>(
|
|
18442
|
-
props: IListProps<
|
|
18443
|
-
FilterData,
|
|
18444
|
-
RowData,
|
|
18445
|
-
TypedField<FilterData, any>,
|
|
18446
|
-
IField<FilterData, TypedField<FilterData, any>>
|
|
18447
|
-
>,
|
|
18189
|
+
props: IListProps<FilterData, RowData, TypedField<FilterData>>,
|
|
18448
18190
|
) => JSX.Element;
|
|
18449
18191
|
export default List;
|
|
18450
18192
|
}
|
|
@@ -18516,10 +18258,10 @@ declare module "react-declarative/components/List/hooks/useProps" {
|
|
|
18516
18258
|
* @returns - The JSX element wrapped with PropContext.Provider.
|
|
18517
18259
|
*/
|
|
18518
18260
|
export const PropProvider: <
|
|
18519
|
-
FilterData extends {} =
|
|
18520
|
-
RowData extends IRowData =
|
|
18521
|
-
Payload extends
|
|
18522
|
-
Field extends IField
|
|
18261
|
+
FilterData extends {} = IAnything,
|
|
18262
|
+
RowData extends IRowData = IAnything,
|
|
18263
|
+
Payload extends IAnything = IAnything,
|
|
18264
|
+
Field extends IField = IField<FilterData, Payload>,
|
|
18523
18265
|
>(
|
|
18524
18266
|
props: IPropContext<FilterData, RowData, Payload, Field>,
|
|
18525
18267
|
) => JSX.Element;
|
|
@@ -18534,10 +18276,10 @@ declare module "react-declarative/components/List/hooks/useProps" {
|
|
|
18534
18276
|
* @template Field The field type.
|
|
18535
18277
|
*/
|
|
18536
18278
|
export const useProps: <
|
|
18537
|
-
FilterData extends {} =
|
|
18538
|
-
RowData extends IRowData =
|
|
18539
|
-
Payload extends
|
|
18540
|
-
Field extends IField
|
|
18279
|
+
FilterData extends {} = IAnything,
|
|
18280
|
+
RowData extends IRowData = IAnything,
|
|
18281
|
+
Payload extends IAnything = IAnything,
|
|
18282
|
+
Field extends IField = IField<FilterData, Payload>,
|
|
18541
18283
|
>() => IPropContext<FilterData, RowData, Payload, Field>;
|
|
18542
18284
|
export default useProps;
|
|
18543
18285
|
}
|
|
@@ -18554,7 +18296,7 @@ declare module "react-declarative/components/List/hooks/useCachedRows" {
|
|
|
18554
18296
|
* @template RowData The type of the row data. Extends IRowData, defaults to IAnything.
|
|
18555
18297
|
*/
|
|
18556
18298
|
export const useCachedRows: <
|
|
18557
|
-
RowData extends IRowData =
|
|
18299
|
+
RowData extends IRowData = IAnything,
|
|
18558
18300
|
>() => IState<RowData>;
|
|
18559
18301
|
/**
|
|
18560
18302
|
* Represents the props for the `ICachedRowsProvider` component.
|
|
@@ -18580,7 +18322,7 @@ declare module "react-declarative/components/List/hooks/useCachedRows" {
|
|
|
18580
18322
|
* @param props - The component props.
|
|
18581
18323
|
* @return - The rendered component.
|
|
18582
18324
|
*/
|
|
18583
|
-
export const CachedRowsProvider: <RowData extends IRowData =
|
|
18325
|
+
export const CachedRowsProvider: <RowData extends IRowData = IAnything>({
|
|
18584
18326
|
children,
|
|
18585
18327
|
}: ICachedRowsProviderProps) => JSX.Element;
|
|
18586
18328
|
export default useCachedRows;
|
|
@@ -18681,8 +18423,8 @@ declare module "react-declarative/components/List/api/useQueryPagination" {
|
|
|
18681
18423
|
* @returns An object containing the pagination props and methods.
|
|
18682
18424
|
*/
|
|
18683
18425
|
export const useQueryPagination: <
|
|
18684
|
-
FilterData extends {} =
|
|
18685
|
-
RowData extends IRowData =
|
|
18426
|
+
FilterData extends {} = IAnything,
|
|
18427
|
+
RowData extends IRowData = IAnything,
|
|
18686
18428
|
>(
|
|
18687
18429
|
initialValue?: Partial<IQuery<FilterData, RowData>>,
|
|
18688
18430
|
{
|
|
@@ -18708,12 +18450,9 @@ declare module "react-declarative/components/List/api/useQueryPagination" {
|
|
|
18708
18450
|
setLimit: (limit: number) => void;
|
|
18709
18451
|
setPage: (page: number) => void;
|
|
18710
18452
|
setSearch: (search: string) => void;
|
|
18711
|
-
getFilterData: () =>
|
|
18712
|
-
getSortModel: () =>
|
|
18713
|
-
getChipData: () =>
|
|
18714
|
-
Partial<Record<keyof RowData, boolean>>,
|
|
18715
|
-
undefined
|
|
18716
|
-
>;
|
|
18453
|
+
getFilterData: () => FilterDataT<FilterData, RowData>;
|
|
18454
|
+
getSortModel: () => SortModelT<FilterData, RowData>;
|
|
18455
|
+
getChipData: () => ChipDataT<FilterData, RowData>;
|
|
18717
18456
|
getLimit: () => number;
|
|
18718
18457
|
getPage: () => number;
|
|
18719
18458
|
getSearch: () => string;
|
|
@@ -18723,9 +18462,9 @@ declare module "react-declarative/components/List/api/useQueryPagination" {
|
|
|
18723
18462
|
| import("../../../model/IListProps").ListHandlerSortModel<RowData>
|
|
18724
18463
|
| undefined;
|
|
18725
18464
|
chipData: Partial<Record<keyof RowData, boolean>> | undefined;
|
|
18726
|
-
limit:
|
|
18727
|
-
page:
|
|
18728
|
-
search:
|
|
18465
|
+
limit: IListProps<FilterData_1, RowData_1>["limit"];
|
|
18466
|
+
page: IListProps<FilterData_1, RowData_1>["page"];
|
|
18467
|
+
search: IListProps<FilterData_1, RowData_1>["search"];
|
|
18729
18468
|
fallback?: ((e: Error) => void) | undefined;
|
|
18730
18469
|
onFilterChange: (data: FilterData) => void;
|
|
18731
18470
|
onLimitChange: (limit: number) => void;
|
|
@@ -18771,10 +18510,10 @@ declare module "react-declarative/components/List/api/useCachedPaginator" {
|
|
|
18771
18510
|
* @returns - The result containing the paginator handler and clear function.
|
|
18772
18511
|
*/
|
|
18773
18512
|
export const useCachedPaginator: <
|
|
18774
|
-
FilterData extends {} =
|
|
18775
|
-
RowData extends IRowData =
|
|
18513
|
+
FilterData extends {} = IAnything,
|
|
18514
|
+
RowData extends IRowData = IAnything,
|
|
18776
18515
|
>(
|
|
18777
|
-
handler: ListHandler<FilterData, RowData
|
|
18516
|
+
handler: ListHandler<FilterData, RowData>,
|
|
18778
18517
|
params: IArrayPaginatorParams<FilterData, RowData>,
|
|
18779
18518
|
) => IResult<FilterData, RowData>;
|
|
18780
18519
|
export default useCachedPaginator;
|
|
@@ -18899,8 +18638,8 @@ declare module "react-declarative/components/List/api/useHistoryStatePagination"
|
|
|
18899
18638
|
* @property setSearch - Sets the search value in the query.
|
|
18900
18639
|
*/
|
|
18901
18640
|
export const useHistoryStatePagination: <
|
|
18902
|
-
FilterData extends {} =
|
|
18903
|
-
RowData extends IRowData =
|
|
18641
|
+
FilterData extends {} = IAnything,
|
|
18642
|
+
RowData extends IRowData = IAnything,
|
|
18904
18643
|
>(
|
|
18905
18644
|
history: History,
|
|
18906
18645
|
{
|
|
@@ -18924,12 +18663,9 @@ declare module "react-declarative/components/List/api/useHistoryStatePagination"
|
|
|
18924
18663
|
setLimit: (limit: number) => void;
|
|
18925
18664
|
setPage: (page: number) => void;
|
|
18926
18665
|
setSearch: (search: string) => void;
|
|
18927
|
-
getFilterData: () =>
|
|
18928
|
-
getSortModel: () =>
|
|
18929
|
-
getChipData: () =>
|
|
18930
|
-
Partial<Record<keyof RowData, boolean>>,
|
|
18931
|
-
undefined
|
|
18932
|
-
>;
|
|
18666
|
+
getFilterData: () => FilterDataT<FilterData, RowData>;
|
|
18667
|
+
getSortModel: () => SortModelT<FilterData, RowData>;
|
|
18668
|
+
getChipData: () => ChipDataT<FilterData, RowData>;
|
|
18933
18669
|
getLimit: () => number;
|
|
18934
18670
|
getPage: () => number;
|
|
18935
18671
|
getSearch: () => string;
|
|
@@ -18939,9 +18675,9 @@ declare module "react-declarative/components/List/api/useHistoryStatePagination"
|
|
|
18939
18675
|
| import("../../../model/IListProps").ListHandlerSortModel<RowData>
|
|
18940
18676
|
| undefined;
|
|
18941
18677
|
chipData: Partial<Record<keyof RowData, boolean>> | undefined;
|
|
18942
|
-
limit:
|
|
18943
|
-
page:
|
|
18944
|
-
search:
|
|
18678
|
+
limit: IListProps<FilterData_1, RowData_1>["limit"];
|
|
18679
|
+
page: IListProps<FilterData_1, RowData_1>["page"];
|
|
18680
|
+
search: IListProps<FilterData_1, RowData_1>["search"];
|
|
18945
18681
|
fallback?: ((e: Error) => void) | undefined;
|
|
18946
18682
|
onFilterChange: (data: FilterData) => void;
|
|
18947
18683
|
onLimitChange: (limit: number) => void;
|
|
@@ -19117,10 +18853,10 @@ declare module "react-declarative/components/List/hooks/useFilterData" {
|
|
|
19117
18853
|
* @returns The FilterDataProvider component.
|
|
19118
18854
|
*/
|
|
19119
18855
|
export const FilterDataProvider: <
|
|
19120
|
-
FilterData extends {} =
|
|
19121
|
-
RowData extends IRowData =
|
|
19122
|
-
Payload extends
|
|
19123
|
-
Field extends IField
|
|
18856
|
+
FilterData extends {} = IAnything,
|
|
18857
|
+
RowData extends IRowData = IAnything,
|
|
18858
|
+
Payload extends IAnything = IAnything,
|
|
18859
|
+
Field extends IField = IField<FilterData, Payload>,
|
|
19124
18860
|
>({
|
|
19125
18861
|
children,
|
|
19126
18862
|
value,
|
|
@@ -19136,11 +18872,11 @@ declare module "react-declarative/components/List/hooks/useFilterData" {
|
|
|
19136
18872
|
* @returns The filter context as IContext<FilterData, RowData, Payload, Field>.
|
|
19137
18873
|
*/
|
|
19138
18874
|
export const useFilterData: <
|
|
19139
|
-
FilterData extends {} =
|
|
19140
|
-
RowData extends IRowData =
|
|
19141
|
-
Payload extends
|
|
19142
|
-
Field extends IField
|
|
19143
|
-
>() =>
|
|
18875
|
+
FilterData extends {} = IAnything,
|
|
18876
|
+
RowData extends IRowData = IAnything,
|
|
18877
|
+
Payload extends IAnything = IAnything,
|
|
18878
|
+
Field extends IField = IField<FilterData, Payload>,
|
|
18879
|
+
>() => IContext<FilterData, RowData, Payload, Field>;
|
|
19144
18880
|
export default useFilterData;
|
|
19145
18881
|
}
|
|
19146
18882
|
|
|
@@ -19315,9 +19051,7 @@ declare module "react-declarative/components/List/hooks/useReload" {
|
|
|
19315
19051
|
* @returns A callback function for reloading data.
|
|
19316
19052
|
*
|
|
19317
19053
|
*/
|
|
19318
|
-
export const useReload: () => (
|
|
19319
|
-
keepPagination?: boolean | undefined,
|
|
19320
|
-
) => Promise<void>;
|
|
19054
|
+
export const useReload: () => (keepPagination?: boolean) => Promise<void>;
|
|
19321
19055
|
export default useReload;
|
|
19322
19056
|
}
|
|
19323
19057
|
|
|
@@ -19487,7 +19221,7 @@ declare module "react-declarative/components/List/hooks/useStateAction" {
|
|
|
19487
19221
|
children,
|
|
19488
19222
|
payload,
|
|
19489
19223
|
}: {
|
|
19490
|
-
children:
|
|
19224
|
+
children: React.ReactNode;
|
|
19491
19225
|
payload: TSubject<IStateAction>;
|
|
19492
19226
|
}) => JSX.Element,
|
|
19493
19227
|
useStateAction: () => TSubject<IStateAction>;
|
|
@@ -19512,6 +19246,7 @@ declare module "react-declarative/components/List/hooks/useUpsertManager" {
|
|
|
19512
19246
|
}
|
|
19513
19247
|
|
|
19514
19248
|
declare module "react-declarative/components/List/hooks/useToggleHandler" {
|
|
19249
|
+
import IAnything from "react-declarative/model/IAnything";
|
|
19515
19250
|
import IRowData from "react-declarative/model/IRowData";
|
|
19516
19251
|
/**
|
|
19517
19252
|
* Toggles the selection of a given row and updates the selection state.
|
|
@@ -19520,7 +19255,7 @@ declare module "react-declarative/components/List/hooks/useToggleHandler" {
|
|
|
19520
19255
|
* @param row The row data to toggle the selection for.
|
|
19521
19256
|
* @returns A function that takes an event and toggles the selection for the row.
|
|
19522
19257
|
*/
|
|
19523
|
-
export const useToggleHandler: <RowData extends IRowData =
|
|
19258
|
+
export const useToggleHandler: <RowData extends IRowData = IAnything>(
|
|
19524
19259
|
row: RowData,
|
|
19525
19260
|
) => (radio?: boolean) => (e: any) => void;
|
|
19526
19261
|
export default useToggleHandler;
|
|
@@ -20055,7 +19790,7 @@ declare module "react-declarative/components/CardView/CardView" {
|
|
|
20055
19790
|
* @returns - The CardView component.
|
|
20056
19791
|
*/
|
|
20057
19792
|
export const CardView: <ItemData extends IItemData = any>(
|
|
20058
|
-
props: ICardViewProps<ItemData
|
|
19793
|
+
props: ICardViewProps<ItemData>,
|
|
20059
19794
|
) => JSX.Element;
|
|
20060
19795
|
export default CardView;
|
|
20061
19796
|
}
|
|
@@ -20143,11 +19878,6 @@ declare module "react-declarative/components/CalendarView/CalendarView" {
|
|
|
20143
19878
|
<Data extends unknown = any, Payload extends unknown = any>(
|
|
20144
19879
|
props: ICalendarViewProps<Data, Payload>,
|
|
20145
19880
|
): JSX.Element;
|
|
20146
|
-
/**
|
|
20147
|
-
* Initializes the dayjs for CalendarView component.
|
|
20148
|
-
*
|
|
20149
|
-
* @memberof CalendarView
|
|
20150
|
-
*/
|
|
20151
19881
|
init(): void;
|
|
20152
19882
|
};
|
|
20153
19883
|
export default CalendarView;
|
|
@@ -20571,6 +20301,7 @@ declare module "react-declarative/components/RecordView/helpers/excelExport" {
|
|
|
20571
20301
|
|
|
20572
20302
|
declare module "react-declarative/components/Scaffold2/Scaffold2" {
|
|
20573
20303
|
import IScaffold2Props from "react-declarative/components/Scaffold2/model/IScaffold2Props";
|
|
20304
|
+
import Payload from "react-declarative/components/Scaffold2/model/Payload";
|
|
20574
20305
|
/**
|
|
20575
20306
|
* Represents a scaffold component that provides state management and context providers.
|
|
20576
20307
|
* @function Scaffold2
|
|
@@ -20588,7 +20319,7 @@ declare module "react-declarative/components/Scaffold2/Scaffold2" {
|
|
|
20588
20319
|
* @param props.throwError - Specifies if an error should be thrown.
|
|
20589
20320
|
* @returns - The rendered component.
|
|
20590
20321
|
*/
|
|
20591
|
-
export const Scaffold2: <T extends
|
|
20322
|
+
export const Scaffold2: <T extends Payload = Payload>(
|
|
20592
20323
|
props: IScaffold2Props<T>,
|
|
20593
20324
|
) => JSX.Element;
|
|
20594
20325
|
export default Scaffold2;
|
|
@@ -20813,6 +20544,7 @@ declare module "react-declarative/components/Scaffold2/model/IScaffold2Tab" {
|
|
|
20813
20544
|
|
|
20814
20545
|
declare module "react-declarative/components/Scaffold3/Scaffold3" {
|
|
20815
20546
|
import IScaffold3Props from "react-declarative/components/Scaffold3/model/IScaffold3Props";
|
|
20547
|
+
import Payload from "react-declarative/components/Scaffold3/model/Payload";
|
|
20816
20548
|
/**
|
|
20817
20549
|
* Represents a scaffold component that provides state management and context providers.
|
|
20818
20550
|
* @function Scaffold3
|
|
@@ -20830,7 +20562,7 @@ declare module "react-declarative/components/Scaffold3/Scaffold3" {
|
|
|
20830
20562
|
* @param props.throwError - Specifies if an error should be thrown.
|
|
20831
20563
|
* @returns - The rendered component.
|
|
20832
20564
|
*/
|
|
20833
|
-
export const Scaffold3: <T extends
|
|
20565
|
+
export const Scaffold3: <T extends Payload = Payload>(
|
|
20834
20566
|
props: IScaffold3Props<T>,
|
|
20835
20567
|
) => JSX.Element;
|
|
20836
20568
|
export default Scaffold3;
|
|
@@ -21111,7 +20843,7 @@ declare module "react-declarative/components/Breadcrumbs2/Breadcrumbs2" {
|
|
|
21111
20843
|
* @param [props.throwError] - Whether to throw an error on loading failure.
|
|
21112
20844
|
* @returns The breadcrumbs component.
|
|
21113
20845
|
*/
|
|
21114
|
-
export const Breadcrumbs2: <T extends
|
|
20846
|
+
export const Breadcrumbs2: <T extends any = any>({
|
|
21115
20847
|
className,
|
|
21116
20848
|
style,
|
|
21117
20849
|
sx,
|
|
@@ -21342,11 +21074,11 @@ declare module "react-declarative/components/One/One" {
|
|
|
21342
21074
|
*/
|
|
21343
21075
|
typed: {
|
|
21344
21076
|
<
|
|
21345
|
-
|
|
21346
|
-
|
|
21347
|
-
|
|
21077
|
+
Data extends unknown = any,
|
|
21078
|
+
Payload extends unknown = any,
|
|
21079
|
+
Field = TypedField<Data>,
|
|
21348
21080
|
>(
|
|
21349
|
-
props: IOnePublicProps<
|
|
21081
|
+
props: IOnePublicProps<Data, Payload, Field>,
|
|
21350
21082
|
): JSX.Element;
|
|
21351
21083
|
displayName: string;
|
|
21352
21084
|
};
|
|
@@ -21355,7 +21087,7 @@ declare module "react-declarative/components/One/One" {
|
|
|
21355
21087
|
<
|
|
21356
21088
|
Data extends unknown = any,
|
|
21357
21089
|
Payload extends unknown = any,
|
|
21358
|
-
Field = TypedField<Data
|
|
21090
|
+
Field = TypedField<Data>,
|
|
21359
21091
|
>(
|
|
21360
21092
|
props: IOnePublicProps<Data, Payload, Field>,
|
|
21361
21093
|
): JSX.Element;
|
|
@@ -21393,12 +21125,13 @@ declare module "react-declarative/components/One/components/OneConfig" {
|
|
|
21393
21125
|
}
|
|
21394
21126
|
|
|
21395
21127
|
declare module "react-declarative/components/One/config/createField" {
|
|
21128
|
+
import IAnything from "react-declarative/model/IAnything";
|
|
21396
21129
|
import IEntity from "react-declarative/model/IEntity";
|
|
21397
21130
|
/**
|
|
21398
21131
|
* Фабрика для создания полей
|
|
21399
21132
|
*/
|
|
21400
|
-
export const createField: <Data extends
|
|
21401
|
-
entity: IEntity<Data
|
|
21133
|
+
export const createField: <Data extends IAnything = IAnything>(
|
|
21134
|
+
entity: IEntity<Data>,
|
|
21402
21135
|
currentPath?: string,
|
|
21403
21136
|
) => JSX.Element;
|
|
21404
21137
|
export default createField;
|
|
@@ -21411,12 +21144,13 @@ declare module "react-declarative/components/One/components/makeField" {
|
|
|
21411
21144
|
|
|
21412
21145
|
declare module "react-declarative/components/One/config/createLayout" {
|
|
21413
21146
|
import * as React from "react";
|
|
21147
|
+
import IAnything from "react-declarative/model/IAnything";
|
|
21414
21148
|
import IEntity from "react-declarative/model/IEntity";
|
|
21415
21149
|
/**
|
|
21416
21150
|
* Фабрика для создания компоновок
|
|
21417
21151
|
*/
|
|
21418
|
-
export const createLayout: <Data extends
|
|
21419
|
-
entity: IEntity<Data
|
|
21152
|
+
export const createLayout: <Data extends IAnything = IAnything>(
|
|
21153
|
+
entity: IEntity<Data>,
|
|
21420
21154
|
children: React.ReactNode,
|
|
21421
21155
|
currentPath?: string,
|
|
21422
21156
|
) => JSX.Element;
|
|
@@ -21484,17 +21218,15 @@ declare module "react-declarative/components/One/context/PropsProvider" {
|
|
|
21484
21218
|
* @returns - The rendered PropsProvider component.
|
|
21485
21219
|
*/
|
|
21486
21220
|
export const PropsProvider: <
|
|
21487
|
-
Data extends
|
|
21488
|
-
Field extends IField<Data
|
|
21221
|
+
Data extends IAnything = IAnything,
|
|
21222
|
+
Field extends IField<Data> = IField<Data>,
|
|
21489
21223
|
>({
|
|
21490
21224
|
children,
|
|
21491
21225
|
...props
|
|
21492
21226
|
}: IPropsProviderProps<Data, Field>) => JSX.Element;
|
|
21493
|
-
export const useOneProps: <
|
|
21494
|
-
Data,
|
|
21495
|
-
|
|
21496
|
-
IField<Data, any>
|
|
21497
|
-
>;
|
|
21227
|
+
export const useOneProps: <
|
|
21228
|
+
Data extends IAnything = IAnything,
|
|
21229
|
+
>() => IOneProps<Data>;
|
|
21498
21230
|
export default PropsProvider;
|
|
21499
21231
|
}
|
|
21500
21232
|
|
|
@@ -21550,14 +21282,14 @@ declare module "react-declarative/components/One/context/StateProvider" {
|
|
|
21550
21282
|
*
|
|
21551
21283
|
*/
|
|
21552
21284
|
export const StateProvider: <
|
|
21553
|
-
Data extends
|
|
21554
|
-
Payload extends
|
|
21285
|
+
Data extends IAnything,
|
|
21286
|
+
Payload extends IAnything,
|
|
21555
21287
|
Field extends IField<Data, Payload> = IField<Data, Payload>,
|
|
21556
21288
|
>({
|
|
21557
21289
|
children,
|
|
21558
21290
|
...otherProps
|
|
21559
21291
|
}: IStateProviderProps<Data, Payload, Field>) => JSX.Element;
|
|
21560
|
-
export const useOneState: <Data extends
|
|
21292
|
+
export const useOneState: <Data extends IAnything>() => IState<Data>;
|
|
21561
21293
|
export default StateProvider;
|
|
21562
21294
|
}
|
|
21563
21295
|
|
|
@@ -21617,7 +21349,7 @@ declare module "react-declarative/components/One/context/RadioProvider" {
|
|
|
21617
21349
|
onChange,
|
|
21618
21350
|
}: {
|
|
21619
21351
|
onChange?: ((state: Record<string, string | null>) => void) | undefined;
|
|
21620
|
-
children:
|
|
21352
|
+
children: React.ReactNode;
|
|
21621
21353
|
initialState:
|
|
21622
21354
|
| Record<string, string | null>
|
|
21623
21355
|
| (() => Record<string, string | null>);
|
|
@@ -21657,7 +21389,7 @@ declare module "react-declarative/components/One/context/OneContextProvider" {
|
|
|
21657
21389
|
context,
|
|
21658
21390
|
children,
|
|
21659
21391
|
}: IOneContextProviderProps) => JSX.Element;
|
|
21660
|
-
export const useOneContext: () =>
|
|
21392
|
+
export const useOneContext: () => {};
|
|
21661
21393
|
export default OneContextProvider;
|
|
21662
21394
|
}
|
|
21663
21395
|
|
|
@@ -21779,8 +21511,8 @@ declare module "react-declarative/components/One/api/useLocalHandler" {
|
|
|
21779
21511
|
* @returns - An object containing the data and a function to change the data.
|
|
21780
21512
|
*/
|
|
21781
21513
|
export const useLocalHandler: <
|
|
21782
|
-
Data extends
|
|
21783
|
-
Payload extends
|
|
21514
|
+
Data extends IAnything = IAnything,
|
|
21515
|
+
Payload extends IAnything = IAnything,
|
|
21784
21516
|
>(
|
|
21785
21517
|
handler: OneHandler<Data, Payload>,
|
|
21786
21518
|
{
|
|
@@ -21789,7 +21521,7 @@ declare module "react-declarative/components/One/api/useLocalHandler" {
|
|
|
21789
21521
|
onLoadBegin,
|
|
21790
21522
|
onLoadEnd,
|
|
21791
21523
|
fallback,
|
|
21792
|
-
}?: ILocalHandlerParams<Data
|
|
21524
|
+
}?: ILocalHandlerParams<Data>,
|
|
21793
21525
|
) => ILocalHandlerResult<Data>;
|
|
21794
21526
|
export default useLocalHandler;
|
|
21795
21527
|
}
|
|
@@ -21820,7 +21552,10 @@ declare module "react-declarative/components/One/api/useStaticHandler" {
|
|
|
21820
21552
|
* @param options.fallback - The fallback function to be executed if an error occurs in the handler.
|
|
21821
21553
|
* @returns - The static handler function.
|
|
21822
21554
|
*/
|
|
21823
|
-
export const useStaticHandler: <
|
|
21555
|
+
export const useStaticHandler: <
|
|
21556
|
+
Data extends IAnything = IAnything,
|
|
21557
|
+
Payload = IAnything,
|
|
21558
|
+
>(
|
|
21824
21559
|
handler: OneHandler<Data, Payload>,
|
|
21825
21560
|
{
|
|
21826
21561
|
resultMap,
|
|
@@ -21922,7 +21657,7 @@ declare module "react-declarative/components/One/api/usePreventLeave" {
|
|
|
21922
21657
|
* @returns return.hasChanged - Whether the data has changed
|
|
21923
21658
|
* @returns return.hasLoading - Whether the data is being loaded
|
|
21924
21659
|
*/
|
|
21925
|
-
export const usePreventLeave: <Data =
|
|
21660
|
+
export const usePreventLeave: <Data = IAnything, ID = string>({
|
|
21926
21661
|
history,
|
|
21927
21662
|
waitForChangesDelay,
|
|
21928
21663
|
readonly: upperReadonly,
|
|
@@ -21967,6 +21702,7 @@ declare module "react-declarative/components/One/config/isBaselineSimple" {
|
|
|
21967
21702
|
|
|
21968
21703
|
declare module "react-declarative/components/OneIcon/OneIcon" {
|
|
21969
21704
|
import IOneIconProps from "react-declarative/components/OneIcon/model/IOneIconProps";
|
|
21705
|
+
import IAnything from "react-declarative/model/IAnything";
|
|
21970
21706
|
/** *
|
|
21971
21707
|
* @template Data - generic type for data object
|
|
21972
21708
|
* @template Payload - generic type for payload object
|
|
@@ -21987,7 +21723,10 @@ declare module "react-declarative/components/OneIcon/OneIcon" {
|
|
|
21987
21723
|
* @property onBlur - function for handling the blur event
|
|
21988
21724
|
* @property buttonProps - additional props for the IconButton component
|
|
21989
21725
|
*/
|
|
21990
|
-
export const OneIcon: <
|
|
21726
|
+
export const OneIcon: <
|
|
21727
|
+
Data extends {} = IAnything,
|
|
21728
|
+
Payload extends IAnything = IAnything,
|
|
21729
|
+
>({
|
|
21991
21730
|
waitForChangesDelay,
|
|
21992
21731
|
fieldDebounce,
|
|
21993
21732
|
noBadge,
|
|
@@ -22015,6 +21754,7 @@ declare module "react-declarative/components/OneIcon/OneIcon" {
|
|
|
22015
21754
|
|
|
22016
21755
|
declare module "react-declarative/components/OneButton/OneButton" {
|
|
22017
21756
|
import IOneButtonProps from "react-declarative/components/OneButton/model/IOneButtonProps";
|
|
21757
|
+
import IAnything from "react-declarative/model/IAnything";
|
|
22018
21758
|
/**
|
|
22019
21759
|
* Represents a button component with a popover that displays a form.
|
|
22020
21760
|
*
|
|
@@ -22041,8 +21781,8 @@ declare module "react-declarative/components/OneButton/OneButton" {
|
|
|
22041
21781
|
* @returns - Returns null if loading or error, otherwise returns the button component with popover.
|
|
22042
21782
|
*/
|
|
22043
21783
|
export const OneButton: <
|
|
22044
|
-
Data extends {} =
|
|
22045
|
-
Payload extends
|
|
21784
|
+
Data extends {} = IAnything,
|
|
21785
|
+
Payload extends IAnything = IAnything,
|
|
22046
21786
|
>({
|
|
22047
21787
|
waitForChangesDelay,
|
|
22048
21788
|
fieldDebounce,
|
|
@@ -22089,7 +21829,7 @@ declare module "react-declarative/components/Sheet/Sheet" {
|
|
|
22089
21829
|
sx?: SxProps<any>;
|
|
22090
21830
|
ref?: React.Ref<HTMLDivElement | undefined>;
|
|
22091
21831
|
}
|
|
22092
|
-
|
|
21832
|
+
const SheetInternal: (
|
|
22093
21833
|
{
|
|
22094
21834
|
data: upperData,
|
|
22095
21835
|
maxCols,
|
|
@@ -22103,6 +21843,7 @@ declare module "react-declarative/components/Sheet/Sheet" {
|
|
|
22103
21843
|
}: ISheetProps,
|
|
22104
21844
|
ref: React.Ref<HTMLDivElement>,
|
|
22105
21845
|
) => JSX.Element;
|
|
21846
|
+
export const Sheet: typeof SheetInternal;
|
|
22106
21847
|
export default Sheet;
|
|
22107
21848
|
}
|
|
22108
21849
|
|
|
@@ -22297,10 +22038,20 @@ declare module "react-declarative/components/Square/Square" {
|
|
|
22297
22038
|
interface ISquareProps extends BoxProps {
|
|
22298
22039
|
children: React.ReactNode;
|
|
22299
22040
|
}
|
|
22300
|
-
|
|
22041
|
+
/**
|
|
22042
|
+
* Square component.
|
|
22043
|
+
*
|
|
22044
|
+
* @typedef Square
|
|
22045
|
+
* @param className - The class name to apply to the Square component.
|
|
22046
|
+
* @param children - The content to render inside the Square component.
|
|
22047
|
+
* @param otherProps - Additional props to be spread onto the Square component.
|
|
22048
|
+
* @returns - The rendered Square component.
|
|
22049
|
+
*/
|
|
22050
|
+
const SquareInternal: (
|
|
22301
22051
|
{ className, children, ...otherProps }: ISquareProps,
|
|
22302
22052
|
ref: React.Ref<HTMLDivElement>,
|
|
22303
22053
|
) => JSX.Element;
|
|
22054
|
+
export const Square: typeof SquareInternal;
|
|
22304
22055
|
export default Square;
|
|
22305
22056
|
}
|
|
22306
22057
|
|
|
@@ -22322,7 +22073,7 @@ declare module "react-declarative/components/Scaffold/Scaffold" {
|
|
|
22322
22073
|
* @param [props.onInit] - The function to execute on component initialization.
|
|
22323
22074
|
* @returns - The rendered component tree.
|
|
22324
22075
|
*/
|
|
22325
|
-
export const Scaffold: <T extends
|
|
22076
|
+
export const Scaffold: <T extends any = any>({
|
|
22326
22077
|
roles,
|
|
22327
22078
|
payload,
|
|
22328
22079
|
throwError,
|
|
@@ -22480,9 +22231,7 @@ declare module "react-declarative/components/Translate/Translate" {
|
|
|
22480
22231
|
* @returns The installed Translate object.
|
|
22481
22232
|
*/
|
|
22482
22233
|
static install: (
|
|
22483
|
-
|
|
22484
|
-
transform?: ((str: string) => string) | undefined,
|
|
22485
|
-
config?: Partial<ITranslateConfig> | undefined,
|
|
22234
|
+
...params: ConstructorParameters<typeof Translate>
|
|
22486
22235
|
) => Translate;
|
|
22487
22236
|
/**
|
|
22488
22237
|
* Clear the _skip and _transformed variables.
|
|
@@ -22550,7 +22299,7 @@ declare module "react-declarative/components/Breadcrumbs/Breadcrumbs" {
|
|
|
22550
22299
|
* @param [props.AfterMenuContent] - The optional content to display after the action menu.
|
|
22551
22300
|
* @returns The rendered breadcrumb component.
|
|
22552
22301
|
*/
|
|
22553
|
-
export const Breadcrumbs: <T extends
|
|
22302
|
+
export const Breadcrumbs: <T extends any = any>({
|
|
22554
22303
|
onSave,
|
|
22555
22304
|
onBack,
|
|
22556
22305
|
onAction,
|
|
@@ -22802,7 +22551,7 @@ declare module "react-declarative/components/ActionMenu/ActionMenu" {
|
|
|
22802
22551
|
*
|
|
22803
22552
|
* @returns - The rendered ActionMenu component.
|
|
22804
22553
|
*/
|
|
22805
|
-
export const ActionMenu: <T extends
|
|
22554
|
+
export const ActionMenu: <T extends any = object>({
|
|
22806
22555
|
options,
|
|
22807
22556
|
transparent,
|
|
22808
22557
|
disabled,
|
|
@@ -22884,7 +22633,7 @@ declare module "react-declarative/components/ActionGroup/ActionGroup" {
|
|
|
22884
22633
|
*
|
|
22885
22634
|
* @returns - The rendered ActionGroup component.
|
|
22886
22635
|
*/
|
|
22887
|
-
export const ActionGroup: <T extends
|
|
22636
|
+
export const ActionGroup: <T extends any = object>({
|
|
22888
22637
|
variant,
|
|
22889
22638
|
size,
|
|
22890
22639
|
options,
|
|
@@ -23274,7 +23023,7 @@ declare module "react-declarative/components/ActionTrigger/ActionTrigger" {
|
|
|
23274
23023
|
* @param otherProps - Additional props to be spread onto the container Box component.
|
|
23275
23024
|
* @returns - The rendered component.
|
|
23276
23025
|
*/
|
|
23277
|
-
export const ActionTrigger: <T extends
|
|
23026
|
+
export const ActionTrigger: <T extends any = object>({
|
|
23278
23027
|
actions,
|
|
23279
23028
|
variant,
|
|
23280
23029
|
size,
|
|
@@ -23583,9 +23332,9 @@ declare module "react-declarative/components/ActionModal/ActionModal" {
|
|
|
23583
23332
|
* @returns - The rendered modal component.
|
|
23584
23333
|
*/
|
|
23585
23334
|
export const ActionModal: <
|
|
23586
|
-
Data extends
|
|
23587
|
-
Payload =
|
|
23588
|
-
Field = IField<Data
|
|
23335
|
+
Data extends IAnything = IAnything,
|
|
23336
|
+
Payload = IAnything,
|
|
23337
|
+
Field = IField<Data>,
|
|
23589
23338
|
>({
|
|
23590
23339
|
withActionButton,
|
|
23591
23340
|
withStaticAction,
|
|
@@ -23625,7 +23374,7 @@ declare module "react-declarative/components/ActionModal/ActionModal" {
|
|
|
23625
23374
|
writeTransform,
|
|
23626
23375
|
incomingTransform,
|
|
23627
23376
|
outgoingTransform,
|
|
23628
|
-
}: IActionModalProps<Data, Payload, Field
|
|
23377
|
+
}: IActionModalProps<Data, Payload, Field>) => JSX.Element;
|
|
23629
23378
|
export default ActionModal;
|
|
23630
23379
|
}
|
|
23631
23380
|
|
|
@@ -23700,9 +23449,9 @@ declare module "react-declarative/components/ActionModal/useActionModal" {
|
|
|
23700
23449
|
* @property pickData - The function for selecting data.
|
|
23701
23450
|
*/
|
|
23702
23451
|
export const useActionModal: <
|
|
23703
|
-
Data extends
|
|
23704
|
-
Payload extends
|
|
23705
|
-
Field = IField<Data
|
|
23452
|
+
Data extends IAnything = IAnything,
|
|
23453
|
+
Payload extends IAnything = IAnything,
|
|
23454
|
+
Field = IField<Data>,
|
|
23706
23455
|
Param = any,
|
|
23707
23456
|
>({
|
|
23708
23457
|
hidden,
|
|
@@ -23747,10 +23496,10 @@ declare module "react-declarative/components/ActionModal/useActionModal" {
|
|
|
23747
23496
|
open: boolean;
|
|
23748
23497
|
setOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
23749
23498
|
render: () => JSX.Element;
|
|
23750
|
-
pickData: (param?: Param
|
|
23499
|
+
pickData: (param?: Param) => void;
|
|
23751
23500
|
};
|
|
23752
|
-
export const useActionModalTyped: <Data extends
|
|
23753
|
-
params: IParams<Data, TypedField<Data
|
|
23501
|
+
export const useActionModalTyped: <Data extends IAnything = IAnything>(
|
|
23502
|
+
params: IParams<Data, TypedField<Data>>,
|
|
23754
23503
|
) => {
|
|
23755
23504
|
open: boolean;
|
|
23756
23505
|
setOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
@@ -23858,10 +23607,10 @@ declare module "react-declarative/components/SearchModal/SearchModal" {
|
|
|
23858
23607
|
* @returns The Search Modal component.
|
|
23859
23608
|
*/
|
|
23860
23609
|
export const SearchModal: <
|
|
23861
|
-
FilterData extends {} =
|
|
23862
|
-
RowData extends IRowData =
|
|
23863
|
-
Payload extends
|
|
23864
|
-
Field extends IField
|
|
23610
|
+
FilterData extends {} = IAnything,
|
|
23611
|
+
RowData extends IRowData = IAnything,
|
|
23612
|
+
Payload extends IAnything = IAnything,
|
|
23613
|
+
Field extends IField = IField<FilterData, Payload>,
|
|
23865
23614
|
>({
|
|
23866
23615
|
fullScreen,
|
|
23867
23616
|
sizeRequest,
|
|
@@ -23961,10 +23710,10 @@ declare module "react-declarative/components/SearchModal/useSearchModal" {
|
|
|
23961
23710
|
* @property close - A function for closing the search modal and handling submit with null data.
|
|
23962
23711
|
*/
|
|
23963
23712
|
export const useSearchModal: <
|
|
23964
|
-
FilterData extends {} =
|
|
23965
|
-
RowData extends IRowData =
|
|
23966
|
-
Payload extends
|
|
23967
|
-
Field extends IField
|
|
23713
|
+
FilterData extends {} = IAnything,
|
|
23714
|
+
RowData extends IRowData = IAnything,
|
|
23715
|
+
Payload extends IAnything = IAnything,
|
|
23716
|
+
Field extends IField = IField<FilterData, Payload>,
|
|
23968
23717
|
>({
|
|
23969
23718
|
param: upperParam,
|
|
23970
23719
|
selectionMode,
|
|
@@ -24005,10 +23754,10 @@ declare module "react-declarative/components/SearchModal/useSearchModal" {
|
|
|
24005
23754
|
* @returns
|
|
24006
23755
|
*/
|
|
24007
23756
|
export const useSearchModalTyped: <
|
|
24008
|
-
FilterData extends {} =
|
|
24009
|
-
RowData extends IRowData =
|
|
24010
|
-
Payload extends
|
|
24011
|
-
Field extends IField
|
|
23757
|
+
FilterData extends {} = IAnything,
|
|
23758
|
+
RowData extends IRowData = IAnything,
|
|
23759
|
+
Payload extends IAnything = IAnything,
|
|
23760
|
+
Field extends IField = TypedField<FilterData, Payload>,
|
|
24012
23761
|
>(
|
|
24013
23762
|
params: IParams<FilterData, RowData, Payload, Field>,
|
|
24014
23763
|
) => {
|
|
@@ -24021,6 +23770,7 @@ declare module "react-declarative/components/SearchModal/useSearchModal" {
|
|
|
24021
23770
|
}
|
|
24022
23771
|
|
|
24023
23772
|
declare module "react-declarative/components/SearchView/SearchView" {
|
|
23773
|
+
import IAnything from "react-declarative/model/IAnything";
|
|
24024
23774
|
import ISearchViewProps from "react-declarative/components/SearchView/model/ISearchViewProps";
|
|
24025
23775
|
/**
|
|
24026
23776
|
* SearchView component documentation
|
|
@@ -24065,7 +23815,10 @@ declare module "react-declarative/components/SearchView/SearchView" {
|
|
|
24065
23815
|
*
|
|
24066
23816
|
* @returns The SearchView component
|
|
24067
23817
|
*/
|
|
24068
|
-
export const SearchView: <
|
|
23818
|
+
export const SearchView: <
|
|
23819
|
+
Data extends IAnything = IAnything,
|
|
23820
|
+
Payload = IAnything,
|
|
23821
|
+
>({
|
|
24069
23822
|
className,
|
|
24070
23823
|
style,
|
|
24071
23824
|
sx,
|
|
@@ -24140,7 +23893,7 @@ declare module "react-declarative/components/ConstraintView/ConstraintView" {
|
|
|
24140
23893
|
* @param props - Any other props to pass to the component
|
|
24141
23894
|
* @returns - The rendered content based on the current device's screen size
|
|
24142
23895
|
*/
|
|
24143
|
-
export const ConstraintView: <T extends
|
|
23896
|
+
export const ConstraintView: <T extends IAnything = IAnything>({
|
|
24144
23897
|
desktopView: Desktop,
|
|
24145
23898
|
tabletView: Tablet,
|
|
24146
23899
|
phoneView: Phone,
|
|
@@ -24207,6 +23960,7 @@ declare module "react-declarative/components/ScrollTopView/ScrollTopView" {
|
|
|
24207
23960
|
|
|
24208
23961
|
declare module "react-declarative/components/OutletView/OutletView" {
|
|
24209
23962
|
import IOutletViewProps from "react-declarative/components/OutletView/model/IOutletViewProps";
|
|
23963
|
+
import IAnything from "react-declarative/model/IAnything";
|
|
24210
23964
|
import IOtherProps from "react-declarative/components/OutletView/model/IOtherProps";
|
|
24211
23965
|
/**
|
|
24212
23966
|
* OutletView component documentation
|
|
@@ -24233,8 +23987,8 @@ declare module "react-declarative/components/OutletView/OutletView" {
|
|
|
24233
23987
|
*/
|
|
24234
23988
|
export const OutletView: <
|
|
24235
23989
|
Data extends {} = Record<string, any>,
|
|
24236
|
-
Payload =
|
|
24237
|
-
Params =
|
|
23990
|
+
Payload = IAnything,
|
|
23991
|
+
Params = IAnything,
|
|
24238
23992
|
OtherProps = IOtherProps,
|
|
24239
23993
|
>({
|
|
24240
23994
|
className,
|
|
@@ -24561,8 +24315,8 @@ declare module "react-declarative/components/OutletView/hooks/useOutletModal" {
|
|
|
24561
24315
|
*/
|
|
24562
24316
|
export const useOutletModal: <
|
|
24563
24317
|
Data extends {} = Record<string, any>,
|
|
24564
|
-
Payload =
|
|
24565
|
-
Params =
|
|
24318
|
+
Payload = IAnything,
|
|
24319
|
+
Params = IAnything,
|
|
24566
24320
|
>({
|
|
24567
24321
|
fallback,
|
|
24568
24322
|
pathname,
|
|
@@ -25148,7 +24902,7 @@ declare module "react-declarative/components/FilesView/useFilesView" {
|
|
|
25148
24902
|
* @param params.onUpload - A callback function for uploading a file (optional).
|
|
25149
24903
|
* @returns - An object with the render function for the component and the pickFiles function to open the file picker.
|
|
25150
24904
|
*/
|
|
25151
|
-
export const useFilesView: <Payload extends
|
|
24905
|
+
export const useFilesView: <Payload extends IAnything = IAnything>({
|
|
25152
24906
|
data,
|
|
25153
24907
|
withActionButton,
|
|
25154
24908
|
withStaticAction,
|
|
@@ -25453,6 +25207,7 @@ declare module "react-declarative/components/FadeView/FadeView" {
|
|
|
25453
25207
|
|
|
25454
25208
|
declare module "react-declarative/components/TabsView/TabsView" {
|
|
25455
25209
|
import ITabsViewProps from "react-declarative/components/TabsView/model/ITabsViewProps";
|
|
25210
|
+
import IAnything from "react-declarative/model/IAnything";
|
|
25456
25211
|
/**
|
|
25457
25212
|
* Represents a view component for rendering tabs and associated content.
|
|
25458
25213
|
*
|
|
@@ -25478,7 +25233,7 @@ declare module "react-declarative/components/TabsView/TabsView" {
|
|
|
25478
25233
|
* @param [props.otherProps=upperOtherProps] - The other props to pass to sub-components.
|
|
25479
25234
|
* @returns - The rendered TabsView component.
|
|
25480
25235
|
*/
|
|
25481
|
-
export const TabsView: <Data extends {} =
|
|
25236
|
+
export const TabsView: <Data extends {} = IAnything, Payload = IAnything>({
|
|
25482
25237
|
className,
|
|
25483
25238
|
style,
|
|
25484
25239
|
sx,
|
|
@@ -25503,7 +25258,7 @@ declare module "react-declarative/components/TabsView/TabsView" {
|
|
|
25503
25258
|
onNavigate,
|
|
25504
25259
|
otherProps: upperOtherProps,
|
|
25505
25260
|
...outletProps
|
|
25506
|
-
}: ITabsViewProps<Data, Payload
|
|
25261
|
+
}: ITabsViewProps<Data, Payload>) => JSX.Element;
|
|
25507
25262
|
export default TabsView;
|
|
25508
25263
|
}
|
|
25509
25264
|
|
|
@@ -25685,7 +25440,7 @@ declare module "react-declarative/components/TabsView/hooks/useTabsModal" {
|
|
|
25685
25440
|
*/
|
|
25686
25441
|
export const useTabsModal: <
|
|
25687
25442
|
Data extends {} = Record<string, any>,
|
|
25688
|
-
Payload =
|
|
25443
|
+
Payload = IAnything,
|
|
25689
25444
|
>({
|
|
25690
25445
|
fallback,
|
|
25691
25446
|
pathname,
|
|
@@ -25714,7 +25469,7 @@ declare module "react-declarative/components/TabsView/hooks/useTabsModal" {
|
|
|
25714
25469
|
|
|
25715
25470
|
declare module "react-declarative/components/FetchView/FetchView" {
|
|
25716
25471
|
import * as React from "react";
|
|
25717
|
-
import { IAsyncProps } from "react-declarative/components/Async";
|
|
25472
|
+
import Async, { IAsyncProps } from "react-declarative/components/Async";
|
|
25718
25473
|
import { IRevealProps } from "react-declarative/components/FetchView/components/Reveal";
|
|
25719
25474
|
/**
|
|
25720
25475
|
* Represents the possible types of the Result class.
|
|
@@ -25722,7 +25477,12 @@ declare module "react-declarative/components/FetchView/FetchView" {
|
|
|
25722
25477
|
* @typedef ResultType
|
|
25723
25478
|
* @typedef VoidType
|
|
25724
25479
|
*/
|
|
25725
|
-
type Result =
|
|
25480
|
+
type Result =
|
|
25481
|
+
React.ComponentProps<typeof Async> extends {
|
|
25482
|
+
children: (p: any) => infer R;
|
|
25483
|
+
}
|
|
25484
|
+
? R
|
|
25485
|
+
: never;
|
|
25726
25486
|
/**
|
|
25727
25487
|
* Represents the state of an object with optional payload and result.
|
|
25728
25488
|
*
|
|
@@ -25962,7 +25722,7 @@ declare module "react-declarative/components/FetchView/FetchView" {
|
|
|
25962
25722
|
* @returns - The rendered JSX for the FetchView component.
|
|
25963
25723
|
*/
|
|
25964
25724
|
export const FetchView: <
|
|
25965
|
-
P extends
|
|
25725
|
+
P extends any = object,
|
|
25966
25726
|
A = any,
|
|
25967
25727
|
B = any,
|
|
25968
25728
|
C = any,
|
|
@@ -26002,10 +25762,22 @@ declare module "react-declarative/components/FetchView/components/Reveal" {
|
|
|
26002
25762
|
animation?: "slideDown" | "fadeIn" | "scale" | "none";
|
|
26003
25763
|
appear?: boolean;
|
|
26004
25764
|
}
|
|
26005
|
-
|
|
25765
|
+
/**
|
|
25766
|
+
* Reveal component.
|
|
25767
|
+
*
|
|
25768
|
+
* @param children - The content to reveal.
|
|
25769
|
+
* @param className - Custom CSS class name(s) to apply.
|
|
25770
|
+
* @param animation - The animation effect to apply when revealing the content. (default: 'slideDown')
|
|
25771
|
+
* @param appear - Flag indicating whether the content should appear on mount. (default: true)
|
|
25772
|
+
* @param otherProps - Additional props to be spread on the root element.
|
|
25773
|
+
*
|
|
25774
|
+
* @returns - The rendered component.
|
|
25775
|
+
*/
|
|
25776
|
+
const RevealInternal: (
|
|
26006
25777
|
{ children, className, animation, appear, ...otherProps }: IRevealProps,
|
|
26007
25778
|
ref: React.Ref<HTMLDivElement>,
|
|
26008
25779
|
) => JSX.Element;
|
|
25780
|
+
export const Reveal: typeof RevealInternal;
|
|
26009
25781
|
export default Reveal;
|
|
26010
25782
|
}
|
|
26011
25783
|
|
|
@@ -26058,10 +25830,7 @@ declare module "react-declarative/components/WaitView/WaitView" {
|
|
|
26058
25830
|
*
|
|
26059
25831
|
* @returns The rendered component.
|
|
26060
25832
|
*/
|
|
26061
|
-
export const WaitView: <
|
|
26062
|
-
P extends unknown = object,
|
|
26063
|
-
T extends unknown = object,
|
|
26064
|
-
>({
|
|
25833
|
+
export const WaitView: <P extends any = object, T extends any = object>({
|
|
26065
25834
|
onDone,
|
|
26066
25835
|
condition,
|
|
26067
25836
|
Loader,
|
|
@@ -26123,7 +25892,7 @@ declare module "react-declarative/components/PingView/PingView" {
|
|
|
26123
25892
|
*
|
|
26124
25893
|
* @returns - The rendered component or null if initialization is in progress
|
|
26125
25894
|
*/
|
|
26126
|
-
export const PingView: <P extends
|
|
25895
|
+
export const PingView: <P extends any = object>({
|
|
26127
25896
|
ping,
|
|
26128
25897
|
children,
|
|
26129
25898
|
onOnline,
|
|
@@ -26217,7 +25986,7 @@ declare module "react-declarative/components/HtmlView/HtmlView" {
|
|
|
26217
25986
|
throwError,
|
|
26218
25987
|
...otherProps
|
|
26219
25988
|
}: IHtmlViewProps): JSX.Element;
|
|
26220
|
-
sanitize: (html: string, config?: Partial<IConfig>
|
|
25989
|
+
sanitize: (html: string, config?: Partial<IConfig>) => string;
|
|
26221
25990
|
};
|
|
26222
25991
|
export default HtmlView;
|
|
26223
25992
|
}
|
|
@@ -26278,7 +26047,10 @@ declare module "react-declarative/components/MetroView/MetroView" {
|
|
|
26278
26047
|
payload?: Payload | (() => Payload);
|
|
26279
26048
|
onNavigate?: (to: string, payload: Payload) => void;
|
|
26280
26049
|
}
|
|
26281
|
-
export const MetroView: <
|
|
26050
|
+
export const MetroView: <
|
|
26051
|
+
Data = IAnything,
|
|
26052
|
+
Payload extends object = IAnything,
|
|
26053
|
+
>({
|
|
26282
26054
|
routes,
|
|
26283
26055
|
data,
|
|
26284
26056
|
payload: upperPayload,
|
|
@@ -26394,6 +26166,7 @@ declare module "react-declarative/components/SecretView/SecretView" {
|
|
|
26394
26166
|
|
|
26395
26167
|
declare module "react-declarative/components/WizardView/WizardView" {
|
|
26396
26168
|
import IWizardViewProps from "react-declarative/components/WizardView/model/IWizardViewProps";
|
|
26169
|
+
import IAnything from "react-declarative/model/IAnything";
|
|
26397
26170
|
/**
|
|
26398
26171
|
* WizardView component.
|
|
26399
26172
|
*
|
|
@@ -26419,9 +26192,9 @@ declare module "react-declarative/components/WizardView/WizardView" {
|
|
|
26419
26192
|
* @returns The rendered WizardView component.
|
|
26420
26193
|
*/
|
|
26421
26194
|
export const WizardView: <
|
|
26422
|
-
Data extends {} =
|
|
26423
|
-
Payload =
|
|
26424
|
-
Params =
|
|
26195
|
+
Data extends {} = IAnything,
|
|
26196
|
+
Payload = IAnything,
|
|
26197
|
+
Params = IAnything,
|
|
26425
26198
|
>({
|
|
26426
26199
|
className,
|
|
26427
26200
|
style,
|
|
@@ -26725,7 +26498,7 @@ declare module "react-declarative/components/WizardView/hooks/useWizardModal" {
|
|
|
26725
26498
|
*/
|
|
26726
26499
|
export const useWizardModal: <
|
|
26727
26500
|
Data extends {} = Record<string, any>,
|
|
26728
|
-
Payload =
|
|
26501
|
+
Payload = IAnything,
|
|
26729
26502
|
>({
|
|
26730
26503
|
fallback,
|
|
26731
26504
|
pathname,
|
|
@@ -26893,8 +26666,8 @@ declare module "react-declarative/components/AuthView/AuthView" {
|
|
|
26893
26666
|
* @returns The AuthView component.
|
|
26894
26667
|
*/
|
|
26895
26668
|
export const AuthView: <
|
|
26896
|
-
Data extends
|
|
26897
|
-
Payload =
|
|
26669
|
+
Data extends IAnything = IAnything,
|
|
26670
|
+
Payload = IAnything,
|
|
26898
26671
|
Field = IField<Data, Payload>,
|
|
26899
26672
|
>({
|
|
26900
26673
|
className,
|
|
@@ -26921,38 +26694,44 @@ declare module "react-declarative/components/KanbanView/KanbanView" {
|
|
|
26921
26694
|
import * as React from "react";
|
|
26922
26695
|
import IKanbanViewProps from "react-declarative/components/KanbanView/model/IKanbanViewProps";
|
|
26923
26696
|
/**
|
|
26924
|
-
*
|
|
26925
|
-
*
|
|
26926
|
-
* @
|
|
26927
|
-
* @
|
|
26928
|
-
* @
|
|
26929
|
-
*
|
|
26930
|
-
* @
|
|
26931
|
-
* @
|
|
26932
|
-
* @
|
|
26933
|
-
* @
|
|
26934
|
-
* @
|
|
26935
|
-
* @
|
|
26936
|
-
* @
|
|
26937
|
-
* @
|
|
26938
|
-
* @
|
|
26939
|
-
* @
|
|
26940
|
-
* @
|
|
26941
|
-
* @
|
|
26942
|
-
* @
|
|
26943
|
-
* @
|
|
26944
|
-
* @
|
|
26945
|
-
* @
|
|
26946
|
-
* @
|
|
26947
|
-
* @
|
|
26948
|
-
* @
|
|
26949
|
-
* @
|
|
26950
|
-
* @
|
|
26951
|
-
* @
|
|
26952
|
-
* @
|
|
26953
|
-
* @
|
|
26954
|
-
|
|
26955
|
-
|
|
26697
|
+
* KanbanViewInternal is a React component that renders a kanban board view. It displays items in columns and allows dragging and dropping of items between columns.
|
|
26698
|
+
*
|
|
26699
|
+
* @template Data - The type of data associated with each item in the kanban board columns.
|
|
26700
|
+
* @template Payload - The type of payload to be passed to various event handlers.
|
|
26701
|
+
* @template ColumnType - The type of column identifier.
|
|
26702
|
+
*
|
|
26703
|
+
* @param props - The props object.
|
|
26704
|
+
* @param props.reloadSubject - An observable that triggers a reload of the data.
|
|
26705
|
+
* @param [props.withUpdateOrder] - A flag indicating whether to update the order of items based on their updatedAt property.
|
|
26706
|
+
* @param props.columns - An array of column definitions.
|
|
26707
|
+
* @param [props.className] - Additional CSS class to apply to the component.
|
|
26708
|
+
* @param [props.payload={}] - The payload object to be passed to various event handlers.
|
|
26709
|
+
* @param [props.disabled=false] - A flag indicating whether the component is disabled.
|
|
26710
|
+
* @param props.items - The array of items to be displayed in the kanban board.
|
|
26711
|
+
* @param [props.style] - Additional inline styles to apply to the component.
|
|
26712
|
+
* @param [props.sx] - Additional sx styles to apply to the component.
|
|
26713
|
+
* @param [props.deps=[]] - An array of dependencies to watch for changes.
|
|
26714
|
+
* @param [props.withGoBack=false] - A flag indicating whether to allow items to be dragged back to the previous column.
|
|
26715
|
+
* @param [props.withHeaderTooltip=false] - A flag indicating whether to show a tooltip on the column header.
|
|
26716
|
+
* @param [props.filterFn=() => true] - A function to filter the items to be displayed in the kanban board.
|
|
26717
|
+
* @param [props.cardLabel=(id) => id] - A function to generate the label for each card.
|
|
26718
|
+
* @param [props.bufferSize=DEFAULT_BUFFERSIZE] - The buffer size for the virtual view.
|
|
26719
|
+
* @param [props.minRowHeight=DEFAULT_MINROWHEIGHT] - The minimum height of each row in the virtual view.
|
|
26720
|
+
* @param [props.rowTtl=DEFAULT_ROWTTL] - The time-to-live for each row in the virtual view cache.
|
|
26721
|
+
* @param [props.AfterCardContent] - React node to be displayed after the card content.
|
|
26722
|
+
* @param [props.AfterColumnTitle] - A function to render additional content after the column title.
|
|
26723
|
+
* @param [props.BeforeColumnTitle] - A function to render additional content before the column title.
|
|
26724
|
+
* @param [props.onDataRequest] - A callback function to be called when data is requested.
|
|
26725
|
+
* @param [props.onChangeColumn] - A callback function to be called when an item is moved to a different column.
|
|
26726
|
+
* @param [props.onCardLabelClick] - A callback function to be called when a card label is clicked.
|
|
26727
|
+
* @param [props.onLoadStart] - A callback function to be called when the data loading starts.
|
|
26728
|
+
* @param [props.onLoadEnd] - A callback function to be called when the data loading ends.
|
|
26729
|
+
* @param [props.fallback] - React node to be displayed when data loading fails.
|
|
26730
|
+
* @param [props.throwError] - A flag indicating whether to throw an error when data loading fails.
|
|
26731
|
+
* @param ref - A ref object to attach to the root element of the component.
|
|
26732
|
+
* @returns - The rendered KanbanViewInternal component.
|
|
26733
|
+
*/
|
|
26734
|
+
const KanbanViewInternal: {
|
|
26956
26735
|
<
|
|
26957
26736
|
Data extends unknown = any,
|
|
26958
26737
|
Payload extends unknown = any,
|
|
@@ -26989,20 +26768,50 @@ declare module "react-declarative/components/KanbanView/KanbanView" {
|
|
|
26989
26768
|
}: IKanbanViewProps<Data, Payload, ColumnType>,
|
|
26990
26769
|
ref: React.Ref<HTMLDivElement>,
|
|
26991
26770
|
): JSX.Element;
|
|
26992
|
-
/**
|
|
26993
|
-
* @example useEffect(KanbanViewInternal.enableScrollOnDrag(ref), [])
|
|
26994
|
-
*/
|
|
26995
26771
|
enableScrollOnDrag(
|
|
26996
26772
|
ref: React.MutableRefObject<HTMLDivElement | undefined>,
|
|
26997
26773
|
{
|
|
26998
26774
|
threshold,
|
|
26999
26775
|
speed,
|
|
27000
26776
|
}?: {
|
|
27001
|
-
threshold?: number
|
|
27002
|
-
speed?: number
|
|
26777
|
+
threshold?: number;
|
|
26778
|
+
speed?: number;
|
|
27003
26779
|
},
|
|
27004
26780
|
): () => import("../../utils/compose").Function;
|
|
27005
26781
|
};
|
|
26782
|
+
/**
|
|
26783
|
+
* @template Data, Payload, ColumnType
|
|
26784
|
+
* @typedef IKanbanViewProps - Props for KanbanViewInternal component
|
|
26785
|
+
* @property reloadSubject - Subject that triggers data reload
|
|
26786
|
+
* @property withUpdateOrder - Determines whether items should be sorted by update date
|
|
26787
|
+
* @property columns - Array of columns with corresponding rows, label and color
|
|
26788
|
+
* @property className - CSS class name for the component
|
|
26789
|
+
* @property payload - Payload object for custom data
|
|
26790
|
+
* @property disabled - Determines whether the component is disabled
|
|
26791
|
+
* @property items - Array of kanban items
|
|
26792
|
+
* @property style - Inline styles for the component
|
|
26793
|
+
* @property sx - Material-UI system styles
|
|
26794
|
+
* @property deps - Array of dependencies
|
|
26795
|
+
* @property withGoBack - Determines whether to allow going back to previous columns when dragging an item
|
|
26796
|
+
* @property withHeaderTooltip - Determines whether to show tooltip on column headers
|
|
26797
|
+
* @property filterFn - Function to filter kanban items
|
|
26798
|
+
* @property cardLabel - Function to generate card label from item ID
|
|
26799
|
+
* @property bufferSize - The number of card items to render in the virtual view
|
|
26800
|
+
* @property minRowHeight - Minimum height of each row in the virtual view
|
|
26801
|
+
* @property rowTtl - Time-to-live in milliseconds for each row cache
|
|
26802
|
+
* @property AfterCardContent - Custom component to render after card content
|
|
26803
|
+
* @property AfterColumnTitle - Custom component to render after column title
|
|
26804
|
+
* @property BeforeColumnTitle - Custom component to render before column title
|
|
26805
|
+
* @property onDataRequest - Function called when data is requested
|
|
26806
|
+
* @property onChangeColumn - Function called when an item is dragged to a new column
|
|
26807
|
+
* @property onCardLabelClick - Function called when the card label is clicked
|
|
26808
|
+
* @property onLoadStart - Function called when data loading starts
|
|
26809
|
+
* @property onLoadEnd - Function called when data loading ends
|
|
26810
|
+
* @property fallback - Function or React node to render when an error occurs
|
|
26811
|
+
* @property throwError - Function called when an error occurs
|
|
26812
|
+
* @property ref - Ref object for the root element of the component
|
|
26813
|
+
*/
|
|
26814
|
+
export const KanbanView: typeof KanbanViewInternal;
|
|
27006
26815
|
export default KanbanView;
|
|
27007
26816
|
}
|
|
27008
26817
|
|
|
@@ -27302,9 +27111,6 @@ declare module "react-declarative/components/VirtualView/VirtualView" {
|
|
|
27302
27111
|
throwError,
|
|
27303
27112
|
...otherProps
|
|
27304
27113
|
}: IVirtualViewProps): JSX.Element;
|
|
27305
|
-
/**
|
|
27306
|
-
* Virtualize is a method that helps in optimizing rendering performance by rendering only the visible elements in a view, using virtualization technique.
|
|
27307
|
-
*/
|
|
27308
27114
|
virtualize<T extends object = any>(
|
|
27309
27115
|
OriginalComponent: React.ComponentType<T & IVirtualized>,
|
|
27310
27116
|
): React.ForwardRefExoticComponent<
|
|
@@ -27656,7 +27462,10 @@ declare module "react-declarative/components/GridView/GridView" {
|
|
|
27656
27462
|
* @param props - The component props.
|
|
27657
27463
|
* @returns - The GridView component.
|
|
27658
27464
|
*/
|
|
27659
|
-
export const GridView: <
|
|
27465
|
+
export const GridView: <
|
|
27466
|
+
T extends RowData = RowData,
|
|
27467
|
+
P extends IAnything = IAnything,
|
|
27468
|
+
>({
|
|
27660
27469
|
className,
|
|
27661
27470
|
style,
|
|
27662
27471
|
sx,
|
|
@@ -28044,7 +27853,7 @@ declare module "react-declarative/components/RoiView/RoiView" {
|
|
|
28044
27853
|
onLoadStart?: () => void;
|
|
28045
27854
|
onLoadEnd?: (isOk: boolean) => void;
|
|
28046
27855
|
}
|
|
28047
|
-
|
|
27856
|
+
const RoiViewInternal: (
|
|
28048
27857
|
{
|
|
28049
27858
|
withNaturalSize,
|
|
28050
27859
|
imageSize,
|
|
@@ -28062,6 +27871,7 @@ declare module "react-declarative/components/RoiView/RoiView" {
|
|
|
28062
27871
|
}: IRoiViewProps,
|
|
28063
27872
|
ref: React.Ref<HTMLDivElement>,
|
|
28064
27873
|
) => JSX.Element;
|
|
27874
|
+
export const RoiView: typeof RoiViewInternal;
|
|
28065
27875
|
export default RoiView;
|
|
28066
27876
|
}
|
|
28067
27877
|
|
|
@@ -28090,15 +27900,14 @@ declare module "react-declarative/components/RoiView/model/ICord" {
|
|
|
28090
27900
|
|
|
28091
27901
|
declare module "react-declarative/components/Grid/Grid" {
|
|
28092
27902
|
import IGridProps from "react-declarative/components/Grid/model/IGridProps";
|
|
27903
|
+
import RowData from "react-declarative/components/Grid/model/RowData";
|
|
28093
27904
|
/**
|
|
28094
27905
|
* Represents a grid component with customizable features.
|
|
28095
27906
|
* @template T - The type of row data in the grid.
|
|
28096
27907
|
* @param props - The properties for the grid.
|
|
28097
27908
|
* @returns - The grid component.
|
|
28098
27909
|
*/
|
|
28099
|
-
export const Grid: <T extends
|
|
28100
|
-
props: IGridProps<T, any>,
|
|
28101
|
-
) => JSX.Element;
|
|
27910
|
+
export const Grid: <T extends RowData>(props: IGridProps<T>) => JSX.Element;
|
|
28102
27911
|
export default Grid;
|
|
28103
27912
|
}
|
|
28104
27913
|
|
|
@@ -28150,7 +27959,7 @@ declare module "react-declarative/components/Grid/api/useOffsetPaginator" {
|
|
|
28150
27959
|
* @returns reloadSubject - The reload subject used to trigger a data reload.
|
|
28151
27960
|
* @returns clear - A function to clear the paginated data and reset the pagination state.
|
|
28152
27961
|
*/
|
|
28153
|
-
export const useOffsetPaginator: <Data extends
|
|
27962
|
+
export const useOffsetPaginator: <Data extends RowData = RowData>({
|
|
28154
27963
|
reloadSubject: upperReloadSubject,
|
|
28155
27964
|
initialData: upperInitialData,
|
|
28156
27965
|
handler,
|
|
@@ -28207,7 +28016,7 @@ declare module "react-declarative/components/Grid/api/useCursorPaginator" {
|
|
|
28207
28016
|
* @param queryProps - Additional properties to be passed to the query.
|
|
28208
28017
|
* @returns - An object containing the paginator data and functions.
|
|
28209
28018
|
*/
|
|
28210
|
-
export const useCursorPaginator: <Data extends
|
|
28019
|
+
export const useCursorPaginator: <Data extends RowData = RowData>({
|
|
28211
28020
|
reloadSubject: upperReloadSubject,
|
|
28212
28021
|
initialData: upperInitialData,
|
|
28213
28022
|
handler,
|
|
@@ -28273,7 +28082,7 @@ declare module "react-declarative/components/Grid/api/useGridAction" {
|
|
|
28273
28082
|
* - commitAction - A function that commits a grid action. This function receives the action name and calls the onAction callback function with the selected rows.
|
|
28274
28083
|
* - commitRowAction - A function that commits a row action. This function receives the action name and the row and calls the onRowAction callback function.
|
|
28275
28084
|
*/
|
|
28276
|
-
export const useGridAction: <Data extends
|
|
28085
|
+
export const useGridAction: <Data extends IAnything = IAnything>({
|
|
28277
28086
|
onLoadStart,
|
|
28278
28087
|
onLoadEnd,
|
|
28279
28088
|
throwError,
|
|
@@ -28481,6 +28290,7 @@ declare module "react-declarative/components/Grid/hooks/useGridProps" {
|
|
|
28481
28290
|
}
|
|
28482
28291
|
|
|
28483
28292
|
declare module "react-declarative/components/Tile/Tile" {
|
|
28293
|
+
import IAnything from "react-declarative/model/IAnything";
|
|
28484
28294
|
import ITileProps from "react-declarative/components/Tile/model/ITileProps";
|
|
28485
28295
|
/**
|
|
28486
28296
|
* Tile component for displaying a list of items in a virtual view.
|
|
@@ -28511,7 +28321,7 @@ declare module "react-declarative/components/Tile/Tile" {
|
|
|
28511
28321
|
* @param [props.rowMark] - The key to use for identifying each row mark.
|
|
28512
28322
|
* @returns The Tile component.
|
|
28513
28323
|
*/
|
|
28514
|
-
export const Tile: <Data extends
|
|
28324
|
+
export const Tile: <Data extends IAnything = IAnything, Payload = IAnything>({
|
|
28515
28325
|
className,
|
|
28516
28326
|
style,
|
|
28517
28327
|
sx,
|
|
@@ -28677,7 +28487,7 @@ declare module "react-declarative/components/Async/Async" {
|
|
|
28677
28487
|
deps?: any[];
|
|
28678
28488
|
throwError?: boolean;
|
|
28679
28489
|
}
|
|
28680
|
-
type Result = React.ReactNode |
|
|
28490
|
+
type Result = React.ReactNode | null;
|
|
28681
28491
|
/**
|
|
28682
28492
|
* Async
|
|
28683
28493
|
* @template T - The type of the payload data.
|
|
@@ -28695,7 +28505,7 @@ declare module "react-declarative/components/Async/Async" {
|
|
|
28695
28505
|
* @param params.throwError - A boolean indicating whether to throw an error in case of an error or to fallback.
|
|
28696
28506
|
* @returns - The rendered component.
|
|
28697
28507
|
*/
|
|
28698
|
-
export const Async: <T extends
|
|
28508
|
+
export const Async: <T extends any = object>({
|
|
28699
28509
|
reloadSubject: upperReloadSubject,
|
|
28700
28510
|
loading: upperLoading,
|
|
28701
28511
|
disabled: upperDisabled,
|
|
@@ -28807,7 +28617,7 @@ declare module "react-declarative/components/If/If" {
|
|
|
28807
28617
|
* @param [props.throwError=false] - Whether to throw an error or call the fallback function if an error occurs.
|
|
28808
28618
|
* @returns - The rendered content based on the condition and loading state.
|
|
28809
28619
|
*/
|
|
28810
|
-
export const If: <T extends
|
|
28620
|
+
export const If: <T extends any = object>({
|
|
28811
28621
|
Else,
|
|
28812
28622
|
Loading,
|
|
28813
28623
|
children,
|
|
@@ -28823,11 +28633,8 @@ declare module "react-declarative/components/If/If" {
|
|
|
28823
28633
|
}
|
|
28824
28634
|
|
|
28825
28635
|
declare module "react-declarative/components/Map/Map" {
|
|
28826
|
-
import type mapboxglInternal from "mapbox-gl";
|
|
28827
28636
|
import { BoxProps } from "@mui/material/Box";
|
|
28828
|
-
global {
|
|
28829
|
-
var mapboxgl: typeof mapboxglInternal;
|
|
28830
|
-
}
|
|
28637
|
+
global {}
|
|
28831
28638
|
interface IPosition {
|
|
28832
28639
|
lng: number;
|
|
28833
28640
|
lat: number;
|
|
@@ -29021,24 +28828,8 @@ declare module "react-declarative/components/ScrollAdjust/ScrollAdjust" {
|
|
|
29021
28828
|
*/
|
|
29022
28829
|
export const ScrollAdjust: {
|
|
29023
28830
|
(): JSX.Element;
|
|
29024
|
-
/**
|
|
29025
|
-
* Sets the value to adjust the scroll force.
|
|
29026
|
-
*
|
|
29027
|
-
* @param force - The force to adjust the scroll.
|
|
29028
|
-
*/
|
|
29029
28831
|
setAdjustForce(force: boolean): void;
|
|
29030
|
-
/**
|
|
29031
|
-
* Sets the adjustment height for scrollbars.
|
|
29032
|
-
*
|
|
29033
|
-
* @param adjustHeight - The height to adjust the scrollbars.
|
|
29034
|
-
* @returns
|
|
29035
|
-
*/
|
|
29036
28832
|
setAdjustHeight(height: Height): void;
|
|
29037
|
-
/**
|
|
29038
|
-
* Sets the adjustment filler for ScrollAdjust component.
|
|
29039
|
-
*
|
|
29040
|
-
* @param filler - The HTML element to be used as adjustment filler.
|
|
29041
|
-
*/
|
|
29042
28833
|
setAdjustFiller(element: React.ComponentType<any>): void;
|
|
29043
28834
|
};
|
|
29044
28835
|
export default ScrollAdjust;
|
|
@@ -29073,7 +28864,7 @@ declare module "react-declarative/components/MasterDetail/MasterDetail" {
|
|
|
29073
28864
|
* @param props.throwError - Specifies whether to throw an error during async actions.
|
|
29074
28865
|
* @returns - The rendered component.
|
|
29075
28866
|
*/
|
|
29076
|
-
export const MasterDetail: <Payload extends
|
|
28867
|
+
export const MasterDetail: <Payload extends any = any>({
|
|
29077
28868
|
mode,
|
|
29078
28869
|
withTransparentTabs,
|
|
29079
28870
|
withMenuCollapse,
|
|
@@ -29332,25 +29123,25 @@ declare module "react-declarative/components/List/components/SlotFactory/SlotCon
|
|
|
29332
29123
|
BodyRow: <RowData extends import("../../../..").IRowData = any>(
|
|
29333
29124
|
props: import("../..").IBodyRowSlot<RowData>,
|
|
29334
29125
|
) => JSX.Element;
|
|
29335
|
-
CheckboxCell: <
|
|
29126
|
+
CheckboxCell: <RowData extends import("../../../..").IRowData = any>({
|
|
29336
29127
|
row,
|
|
29337
29128
|
disabled,
|
|
29338
|
-
}: import("./components/CheckboxCell").ICheckboxCellProps<
|
|
29339
|
-
CommonCell: <
|
|
29129
|
+
}: import("./components/CheckboxCell").ICheckboxCellProps<RowData>) => JSX.Element;
|
|
29130
|
+
CommonCell: <RowData extends import("../../../..").IRowData = any>({
|
|
29340
29131
|
column,
|
|
29341
29132
|
row,
|
|
29342
29133
|
disabled,
|
|
29343
29134
|
onMenuToggle,
|
|
29344
29135
|
onAction,
|
|
29345
|
-
}: import("../..").ICommonCellSlot<
|
|
29346
|
-
HeadRow: (props: import("../..").IHeadRowSlot
|
|
29136
|
+
}: import("../..").ICommonCellSlot<RowData>) => any;
|
|
29137
|
+
HeadRow: (props: import("../..").IHeadRowSlot) => JSX.Element;
|
|
29347
29138
|
ActionAdd: ({
|
|
29348
29139
|
action,
|
|
29349
29140
|
width,
|
|
29350
29141
|
label,
|
|
29351
29142
|
isVisible,
|
|
29352
29143
|
isDisabled,
|
|
29353
|
-
}: import("../..").IActionAddSlot
|
|
29144
|
+
}: import("../..").IActionAddSlot) => JSX.Element;
|
|
29354
29145
|
ActionMenu: ({
|
|
29355
29146
|
options,
|
|
29356
29147
|
deps,
|
|
@@ -29362,8 +29153,8 @@ declare module "react-declarative/components/List/components/SlotFactory/SlotCon
|
|
|
29362
29153
|
icon: Icon,
|
|
29363
29154
|
isVisible,
|
|
29364
29155
|
isDisabled,
|
|
29365
|
-
}: import("../..").IActionFabSlot
|
|
29366
|
-
ChipListSlot: (props: import("../..").IChipListSlot
|
|
29156
|
+
}: import("../..").IActionFabSlot) => JSX.Element;
|
|
29157
|
+
ChipListSlot: (props: import("../..").IChipListSlot) => JSX.Element;
|
|
29367
29158
|
ActionListSlot: <FilterData extends {}>({
|
|
29368
29159
|
className,
|
|
29369
29160
|
actions,
|
|
@@ -29373,7 +29164,7 @@ declare module "react-declarative/components/List/components/SlotFactory/SlotCon
|
|
|
29373
29164
|
width,
|
|
29374
29165
|
deps,
|
|
29375
29166
|
}: import("../..").IActionListSlot<FilterData>) => JSX.Element;
|
|
29376
|
-
FilterListSlot: <
|
|
29167
|
+
FilterListSlot: <FilterData extends {}>({
|
|
29377
29168
|
className,
|
|
29378
29169
|
style,
|
|
29379
29170
|
height,
|
|
@@ -29388,7 +29179,7 @@ declare module "react-declarative/components/List/components/SlotFactory/SlotCon
|
|
|
29388
29179
|
onSearchChange,
|
|
29389
29180
|
onFilterChange,
|
|
29390
29181
|
onCollapsedChange,
|
|
29391
|
-
}: import("../..").IFilterListSlot<
|
|
29182
|
+
}: import("../..").IFilterListSlot<FilterData>) => JSX.Element;
|
|
29392
29183
|
OperationListSlot: ({
|
|
29393
29184
|
className,
|
|
29394
29185
|
style,
|
|
@@ -29403,20 +29194,20 @@ declare module "react-declarative/components/List/components/SlotFactory/SlotCon
|
|
|
29403
29194
|
search,
|
|
29404
29195
|
onSearchChange,
|
|
29405
29196
|
}: import("../..").ISearchSlot) => JSX.Element;
|
|
29406
|
-
DesktopBodyRow: <
|
|
29197
|
+
DesktopBodyRow: <RowData extends import("../../../..").IRowData = any>({
|
|
29407
29198
|
row,
|
|
29408
29199
|
mode,
|
|
29409
29200
|
columns,
|
|
29410
29201
|
disabled,
|
|
29411
29202
|
fullWidth,
|
|
29412
|
-
}: import("../..").IBodyRowSlot<
|
|
29413
|
-
MobileBodyRow: <
|
|
29203
|
+
}: import("../..").IBodyRowSlot<RowData>) => JSX.Element;
|
|
29204
|
+
MobileBodyRow: <RowData extends import("../../../..").IRowData = any>({
|
|
29414
29205
|
row,
|
|
29415
29206
|
mode,
|
|
29416
29207
|
disabled,
|
|
29417
29208
|
columns,
|
|
29418
29209
|
fullWidth,
|
|
29419
|
-
}: import("../..").IBodyRowSlot<
|
|
29210
|
+
}: import("../..").IBodyRowSlot<RowData>) => JSX.Element;
|
|
29420
29211
|
};
|
|
29421
29212
|
export const SlotContext: import("react").Context<ISlotFactoryContext>;
|
|
29422
29213
|
export default SlotContext;
|
|
@@ -30064,7 +29855,7 @@ declare module "react-declarative/components/common/ListPicker/ListPicker" {
|
|
|
30064
29855
|
*
|
|
30065
29856
|
* @returns The rendered ListPicker component.
|
|
30066
29857
|
*/
|
|
30067
|
-
export const ListPicker: <RowData extends IRowData =
|
|
29858
|
+
export const ListPicker: <RowData extends IRowData = IAnything>({
|
|
30068
29859
|
onChange,
|
|
30069
29860
|
handler,
|
|
30070
29861
|
title,
|
|
@@ -30993,7 +30784,7 @@ declare module "react-declarative/components/One/components/makeField/makeField"
|
|
|
30993
30784
|
transparentPaper,
|
|
30994
30785
|
testId,
|
|
30995
30786
|
...otherProps
|
|
30996
|
-
}: IEntity<Data
|
|
30787
|
+
}: IEntity<Data>): JSX.Element | null;
|
|
30997
30788
|
displayName: string;
|
|
30998
30789
|
};
|
|
30999
30790
|
export default makeField;
|
|
@@ -31021,7 +30812,7 @@ declare module "react-declarative/components/One/components/makeLayout/makeLayou
|
|
|
31021
30812
|
*/
|
|
31022
30813
|
export function makeLayout<T extends ILayout<any>>(
|
|
31023
30814
|
originalComponent: React.FC<T>,
|
|
31024
|
-
):
|
|
30815
|
+
): typeof originalComponent;
|
|
31025
30816
|
export default makeLayout;
|
|
31026
30817
|
}
|
|
31027
30818
|
|
|
@@ -31530,8 +31321,8 @@ declare module "react-declarative/components/OutletView/components/OutletModal"
|
|
|
31530
31321
|
*/
|
|
31531
31322
|
export const OutletModal: <
|
|
31532
31323
|
Data extends {} = Record<string, any>,
|
|
31533
|
-
Payload =
|
|
31534
|
-
Params =
|
|
31324
|
+
Payload = IAnything,
|
|
31325
|
+
Params = IAnything,
|
|
31535
31326
|
>({
|
|
31536
31327
|
withActionButton,
|
|
31537
31328
|
hidden,
|
|
@@ -31785,7 +31576,7 @@ declare module "react-declarative/components/TabsView/components/TabsOutletModal
|
|
|
31785
31576
|
}
|
|
31786
31577
|
export const OutletModal: <
|
|
31787
31578
|
Data extends {} = Record<string, any>,
|
|
31788
|
-
Payload =
|
|
31579
|
+
Payload = IAnything,
|
|
31789
31580
|
>({
|
|
31790
31581
|
withActionButton,
|
|
31791
31582
|
hidden,
|
|
@@ -31975,7 +31766,7 @@ declare module "react-declarative/components/WizardView/components/WizardOutletM
|
|
|
31975
31766
|
*/
|
|
31976
31767
|
export const OutletModal: <
|
|
31977
31768
|
Data extends {} = Record<string, any>,
|
|
31978
|
-
Payload =
|
|
31769
|
+
Payload = IAnything,
|
|
31979
31770
|
>({
|
|
31980
31771
|
withActionButton,
|
|
31981
31772
|
hidden,
|
|
@@ -33893,7 +33684,7 @@ declare module "react-declarative/components/List/components/SlotFactory/compone
|
|
|
33893
33684
|
* @param props - The props for the CheckboxCell component
|
|
33894
33685
|
* @returns - The rendered CheckboxCell component
|
|
33895
33686
|
*/
|
|
33896
|
-
export const CheckboxCell: <RowData extends IRowData =
|
|
33687
|
+
export const CheckboxCell: <RowData extends IRowData = IAnything>({
|
|
33897
33688
|
row,
|
|
33898
33689
|
disabled,
|
|
33899
33690
|
}: ICheckboxCellProps<RowData>) => JSX.Element;
|