react-declarative 2.7.106 → 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 +480 -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;
|
|
@@ -20305,6 +20035,7 @@ declare module "react-declarative/components/FeatureView/hooks/useFeatureView" {
|
|
|
20305
20035
|
withStaticAction,
|
|
20306
20036
|
}: IParams) => {
|
|
20307
20037
|
open: boolean;
|
|
20038
|
+
setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
20308
20039
|
render: () => JSX.Element;
|
|
20309
20040
|
pickData: (param?: any) => void;
|
|
20310
20041
|
};
|
|
@@ -20482,6 +20213,7 @@ declare module "react-declarative/components/VisibilityView/hooks/useVisibilityV
|
|
|
20482
20213
|
submitLabel,
|
|
20483
20214
|
}: IParams) => {
|
|
20484
20215
|
open: boolean;
|
|
20216
|
+
setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
20485
20217
|
render: () => JSX.Element;
|
|
20486
20218
|
pickData: (param?: any) => void;
|
|
20487
20219
|
};
|
|
@@ -20569,6 +20301,7 @@ declare module "react-declarative/components/RecordView/helpers/excelExport" {
|
|
|
20569
20301
|
|
|
20570
20302
|
declare module "react-declarative/components/Scaffold2/Scaffold2" {
|
|
20571
20303
|
import IScaffold2Props from "react-declarative/components/Scaffold2/model/IScaffold2Props";
|
|
20304
|
+
import Payload from "react-declarative/components/Scaffold2/model/Payload";
|
|
20572
20305
|
/**
|
|
20573
20306
|
* Represents a scaffold component that provides state management and context providers.
|
|
20574
20307
|
* @function Scaffold2
|
|
@@ -20586,7 +20319,7 @@ declare module "react-declarative/components/Scaffold2/Scaffold2" {
|
|
|
20586
20319
|
* @param props.throwError - Specifies if an error should be thrown.
|
|
20587
20320
|
* @returns - The rendered component.
|
|
20588
20321
|
*/
|
|
20589
|
-
export const Scaffold2: <T extends
|
|
20322
|
+
export const Scaffold2: <T extends Payload = Payload>(
|
|
20590
20323
|
props: IScaffold2Props<T>,
|
|
20591
20324
|
) => JSX.Element;
|
|
20592
20325
|
export default Scaffold2;
|
|
@@ -20811,6 +20544,7 @@ declare module "react-declarative/components/Scaffold2/model/IScaffold2Tab" {
|
|
|
20811
20544
|
|
|
20812
20545
|
declare module "react-declarative/components/Scaffold3/Scaffold3" {
|
|
20813
20546
|
import IScaffold3Props from "react-declarative/components/Scaffold3/model/IScaffold3Props";
|
|
20547
|
+
import Payload from "react-declarative/components/Scaffold3/model/Payload";
|
|
20814
20548
|
/**
|
|
20815
20549
|
* Represents a scaffold component that provides state management and context providers.
|
|
20816
20550
|
* @function Scaffold3
|
|
@@ -20828,7 +20562,7 @@ declare module "react-declarative/components/Scaffold3/Scaffold3" {
|
|
|
20828
20562
|
* @param props.throwError - Specifies if an error should be thrown.
|
|
20829
20563
|
* @returns - The rendered component.
|
|
20830
20564
|
*/
|
|
20831
|
-
export const Scaffold3: <T extends
|
|
20565
|
+
export const Scaffold3: <T extends Payload = Payload>(
|
|
20832
20566
|
props: IScaffold3Props<T>,
|
|
20833
20567
|
) => JSX.Element;
|
|
20834
20568
|
export default Scaffold3;
|
|
@@ -21109,7 +20843,7 @@ declare module "react-declarative/components/Breadcrumbs2/Breadcrumbs2" {
|
|
|
21109
20843
|
* @param [props.throwError] - Whether to throw an error on loading failure.
|
|
21110
20844
|
* @returns The breadcrumbs component.
|
|
21111
20845
|
*/
|
|
21112
|
-
export const Breadcrumbs2: <T extends
|
|
20846
|
+
export const Breadcrumbs2: <T extends any = any>({
|
|
21113
20847
|
className,
|
|
21114
20848
|
style,
|
|
21115
20849
|
sx,
|
|
@@ -21340,11 +21074,11 @@ declare module "react-declarative/components/One/One" {
|
|
|
21340
21074
|
*/
|
|
21341
21075
|
typed: {
|
|
21342
21076
|
<
|
|
21343
|
-
|
|
21344
|
-
|
|
21345
|
-
|
|
21077
|
+
Data extends unknown = any,
|
|
21078
|
+
Payload extends unknown = any,
|
|
21079
|
+
Field = TypedField<Data>,
|
|
21346
21080
|
>(
|
|
21347
|
-
props: IOnePublicProps<
|
|
21081
|
+
props: IOnePublicProps<Data, Payload, Field>,
|
|
21348
21082
|
): JSX.Element;
|
|
21349
21083
|
displayName: string;
|
|
21350
21084
|
};
|
|
@@ -21353,7 +21087,7 @@ declare module "react-declarative/components/One/One" {
|
|
|
21353
21087
|
<
|
|
21354
21088
|
Data extends unknown = any,
|
|
21355
21089
|
Payload extends unknown = any,
|
|
21356
|
-
Field = TypedField<Data
|
|
21090
|
+
Field = TypedField<Data>,
|
|
21357
21091
|
>(
|
|
21358
21092
|
props: IOnePublicProps<Data, Payload, Field>,
|
|
21359
21093
|
): JSX.Element;
|
|
@@ -21391,12 +21125,13 @@ declare module "react-declarative/components/One/components/OneConfig" {
|
|
|
21391
21125
|
}
|
|
21392
21126
|
|
|
21393
21127
|
declare module "react-declarative/components/One/config/createField" {
|
|
21128
|
+
import IAnything from "react-declarative/model/IAnything";
|
|
21394
21129
|
import IEntity from "react-declarative/model/IEntity";
|
|
21395
21130
|
/**
|
|
21396
21131
|
* Фабрика для создания полей
|
|
21397
21132
|
*/
|
|
21398
|
-
export const createField: <Data extends
|
|
21399
|
-
entity: IEntity<Data
|
|
21133
|
+
export const createField: <Data extends IAnything = IAnything>(
|
|
21134
|
+
entity: IEntity<Data>,
|
|
21400
21135
|
currentPath?: string,
|
|
21401
21136
|
) => JSX.Element;
|
|
21402
21137
|
export default createField;
|
|
@@ -21409,12 +21144,13 @@ declare module "react-declarative/components/One/components/makeField" {
|
|
|
21409
21144
|
|
|
21410
21145
|
declare module "react-declarative/components/One/config/createLayout" {
|
|
21411
21146
|
import * as React from "react";
|
|
21147
|
+
import IAnything from "react-declarative/model/IAnything";
|
|
21412
21148
|
import IEntity from "react-declarative/model/IEntity";
|
|
21413
21149
|
/**
|
|
21414
21150
|
* Фабрика для создания компоновок
|
|
21415
21151
|
*/
|
|
21416
|
-
export const createLayout: <Data extends
|
|
21417
|
-
entity: IEntity<Data
|
|
21152
|
+
export const createLayout: <Data extends IAnything = IAnything>(
|
|
21153
|
+
entity: IEntity<Data>,
|
|
21418
21154
|
children: React.ReactNode,
|
|
21419
21155
|
currentPath?: string,
|
|
21420
21156
|
) => JSX.Element;
|
|
@@ -21482,17 +21218,15 @@ declare module "react-declarative/components/One/context/PropsProvider" {
|
|
|
21482
21218
|
* @returns - The rendered PropsProvider component.
|
|
21483
21219
|
*/
|
|
21484
21220
|
export const PropsProvider: <
|
|
21485
|
-
Data extends
|
|
21486
|
-
Field extends IField<Data
|
|
21221
|
+
Data extends IAnything = IAnything,
|
|
21222
|
+
Field extends IField<Data> = IField<Data>,
|
|
21487
21223
|
>({
|
|
21488
21224
|
children,
|
|
21489
21225
|
...props
|
|
21490
21226
|
}: IPropsProviderProps<Data, Field>) => JSX.Element;
|
|
21491
|
-
export const useOneProps: <
|
|
21492
|
-
Data,
|
|
21493
|
-
|
|
21494
|
-
IField<Data, any>
|
|
21495
|
-
>;
|
|
21227
|
+
export const useOneProps: <
|
|
21228
|
+
Data extends IAnything = IAnything,
|
|
21229
|
+
>() => IOneProps<Data>;
|
|
21496
21230
|
export default PropsProvider;
|
|
21497
21231
|
}
|
|
21498
21232
|
|
|
@@ -21548,14 +21282,14 @@ declare module "react-declarative/components/One/context/StateProvider" {
|
|
|
21548
21282
|
*
|
|
21549
21283
|
*/
|
|
21550
21284
|
export const StateProvider: <
|
|
21551
|
-
Data extends
|
|
21552
|
-
Payload extends
|
|
21285
|
+
Data extends IAnything,
|
|
21286
|
+
Payload extends IAnything,
|
|
21553
21287
|
Field extends IField<Data, Payload> = IField<Data, Payload>,
|
|
21554
21288
|
>({
|
|
21555
21289
|
children,
|
|
21556
21290
|
...otherProps
|
|
21557
21291
|
}: IStateProviderProps<Data, Payload, Field>) => JSX.Element;
|
|
21558
|
-
export const useOneState: <Data extends
|
|
21292
|
+
export const useOneState: <Data extends IAnything>() => IState<Data>;
|
|
21559
21293
|
export default StateProvider;
|
|
21560
21294
|
}
|
|
21561
21295
|
|
|
@@ -21615,7 +21349,7 @@ declare module "react-declarative/components/One/context/RadioProvider" {
|
|
|
21615
21349
|
onChange,
|
|
21616
21350
|
}: {
|
|
21617
21351
|
onChange?: ((state: Record<string, string | null>) => void) | undefined;
|
|
21618
|
-
children:
|
|
21352
|
+
children: React.ReactNode;
|
|
21619
21353
|
initialState:
|
|
21620
21354
|
| Record<string, string | null>
|
|
21621
21355
|
| (() => Record<string, string | null>);
|
|
@@ -21655,7 +21389,7 @@ declare module "react-declarative/components/One/context/OneContextProvider" {
|
|
|
21655
21389
|
context,
|
|
21656
21390
|
children,
|
|
21657
21391
|
}: IOneContextProviderProps) => JSX.Element;
|
|
21658
|
-
export const useOneContext: () =>
|
|
21392
|
+
export const useOneContext: () => {};
|
|
21659
21393
|
export default OneContextProvider;
|
|
21660
21394
|
}
|
|
21661
21395
|
|
|
@@ -21777,8 +21511,8 @@ declare module "react-declarative/components/One/api/useLocalHandler" {
|
|
|
21777
21511
|
* @returns - An object containing the data and a function to change the data.
|
|
21778
21512
|
*/
|
|
21779
21513
|
export const useLocalHandler: <
|
|
21780
|
-
Data extends
|
|
21781
|
-
Payload extends
|
|
21514
|
+
Data extends IAnything = IAnything,
|
|
21515
|
+
Payload extends IAnything = IAnything,
|
|
21782
21516
|
>(
|
|
21783
21517
|
handler: OneHandler<Data, Payload>,
|
|
21784
21518
|
{
|
|
@@ -21787,7 +21521,7 @@ declare module "react-declarative/components/One/api/useLocalHandler" {
|
|
|
21787
21521
|
onLoadBegin,
|
|
21788
21522
|
onLoadEnd,
|
|
21789
21523
|
fallback,
|
|
21790
|
-
}?: ILocalHandlerParams<Data
|
|
21524
|
+
}?: ILocalHandlerParams<Data>,
|
|
21791
21525
|
) => ILocalHandlerResult<Data>;
|
|
21792
21526
|
export default useLocalHandler;
|
|
21793
21527
|
}
|
|
@@ -21818,7 +21552,10 @@ declare module "react-declarative/components/One/api/useStaticHandler" {
|
|
|
21818
21552
|
* @param options.fallback - The fallback function to be executed if an error occurs in the handler.
|
|
21819
21553
|
* @returns - The static handler function.
|
|
21820
21554
|
*/
|
|
21821
|
-
export const useStaticHandler: <
|
|
21555
|
+
export const useStaticHandler: <
|
|
21556
|
+
Data extends IAnything = IAnything,
|
|
21557
|
+
Payload = IAnything,
|
|
21558
|
+
>(
|
|
21822
21559
|
handler: OneHandler<Data, Payload>,
|
|
21823
21560
|
{
|
|
21824
21561
|
resultMap,
|
|
@@ -21920,7 +21657,7 @@ declare module "react-declarative/components/One/api/usePreventLeave" {
|
|
|
21920
21657
|
* @returns return.hasChanged - Whether the data has changed
|
|
21921
21658
|
* @returns return.hasLoading - Whether the data is being loaded
|
|
21922
21659
|
*/
|
|
21923
|
-
export const usePreventLeave: <Data =
|
|
21660
|
+
export const usePreventLeave: <Data = IAnything, ID = string>({
|
|
21924
21661
|
history,
|
|
21925
21662
|
waitForChangesDelay,
|
|
21926
21663
|
readonly: upperReadonly,
|
|
@@ -21965,6 +21702,7 @@ declare module "react-declarative/components/One/config/isBaselineSimple" {
|
|
|
21965
21702
|
|
|
21966
21703
|
declare module "react-declarative/components/OneIcon/OneIcon" {
|
|
21967
21704
|
import IOneIconProps from "react-declarative/components/OneIcon/model/IOneIconProps";
|
|
21705
|
+
import IAnything from "react-declarative/model/IAnything";
|
|
21968
21706
|
/** *
|
|
21969
21707
|
* @template Data - generic type for data object
|
|
21970
21708
|
* @template Payload - generic type for payload object
|
|
@@ -21985,7 +21723,10 @@ declare module "react-declarative/components/OneIcon/OneIcon" {
|
|
|
21985
21723
|
* @property onBlur - function for handling the blur event
|
|
21986
21724
|
* @property buttonProps - additional props for the IconButton component
|
|
21987
21725
|
*/
|
|
21988
|
-
export const OneIcon: <
|
|
21726
|
+
export const OneIcon: <
|
|
21727
|
+
Data extends {} = IAnything,
|
|
21728
|
+
Payload extends IAnything = IAnything,
|
|
21729
|
+
>({
|
|
21989
21730
|
waitForChangesDelay,
|
|
21990
21731
|
fieldDebounce,
|
|
21991
21732
|
noBadge,
|
|
@@ -22013,6 +21754,7 @@ declare module "react-declarative/components/OneIcon/OneIcon" {
|
|
|
22013
21754
|
|
|
22014
21755
|
declare module "react-declarative/components/OneButton/OneButton" {
|
|
22015
21756
|
import IOneButtonProps from "react-declarative/components/OneButton/model/IOneButtonProps";
|
|
21757
|
+
import IAnything from "react-declarative/model/IAnything";
|
|
22016
21758
|
/**
|
|
22017
21759
|
* Represents a button component with a popover that displays a form.
|
|
22018
21760
|
*
|
|
@@ -22039,8 +21781,8 @@ declare module "react-declarative/components/OneButton/OneButton" {
|
|
|
22039
21781
|
* @returns - Returns null if loading or error, otherwise returns the button component with popover.
|
|
22040
21782
|
*/
|
|
22041
21783
|
export const OneButton: <
|
|
22042
|
-
Data extends {} =
|
|
22043
|
-
Payload extends
|
|
21784
|
+
Data extends {} = IAnything,
|
|
21785
|
+
Payload extends IAnything = IAnything,
|
|
22044
21786
|
>({
|
|
22045
21787
|
waitForChangesDelay,
|
|
22046
21788
|
fieldDebounce,
|
|
@@ -22087,7 +21829,7 @@ declare module "react-declarative/components/Sheet/Sheet" {
|
|
|
22087
21829
|
sx?: SxProps<any>;
|
|
22088
21830
|
ref?: React.Ref<HTMLDivElement | undefined>;
|
|
22089
21831
|
}
|
|
22090
|
-
|
|
21832
|
+
const SheetInternal: (
|
|
22091
21833
|
{
|
|
22092
21834
|
data: upperData,
|
|
22093
21835
|
maxCols,
|
|
@@ -22101,6 +21843,7 @@ declare module "react-declarative/components/Sheet/Sheet" {
|
|
|
22101
21843
|
}: ISheetProps,
|
|
22102
21844
|
ref: React.Ref<HTMLDivElement>,
|
|
22103
21845
|
) => JSX.Element;
|
|
21846
|
+
export const Sheet: typeof SheetInternal;
|
|
22104
21847
|
export default Sheet;
|
|
22105
21848
|
}
|
|
22106
21849
|
|
|
@@ -22295,10 +22038,20 @@ declare module "react-declarative/components/Square/Square" {
|
|
|
22295
22038
|
interface ISquareProps extends BoxProps {
|
|
22296
22039
|
children: React.ReactNode;
|
|
22297
22040
|
}
|
|
22298
|
-
|
|
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: (
|
|
22299
22051
|
{ className, children, ...otherProps }: ISquareProps,
|
|
22300
22052
|
ref: React.Ref<HTMLDivElement>,
|
|
22301
22053
|
) => JSX.Element;
|
|
22054
|
+
export const Square: typeof SquareInternal;
|
|
22302
22055
|
export default Square;
|
|
22303
22056
|
}
|
|
22304
22057
|
|
|
@@ -22320,7 +22073,7 @@ declare module "react-declarative/components/Scaffold/Scaffold" {
|
|
|
22320
22073
|
* @param [props.onInit] - The function to execute on component initialization.
|
|
22321
22074
|
* @returns - The rendered component tree.
|
|
22322
22075
|
*/
|
|
22323
|
-
export const Scaffold: <T extends
|
|
22076
|
+
export const Scaffold: <T extends any = any>({
|
|
22324
22077
|
roles,
|
|
22325
22078
|
payload,
|
|
22326
22079
|
throwError,
|
|
@@ -22478,9 +22231,7 @@ declare module "react-declarative/components/Translate/Translate" {
|
|
|
22478
22231
|
* @returns The installed Translate object.
|
|
22479
22232
|
*/
|
|
22480
22233
|
static install: (
|
|
22481
|
-
|
|
22482
|
-
transform?: ((str: string) => string) | undefined,
|
|
22483
|
-
config?: Partial<ITranslateConfig> | undefined,
|
|
22234
|
+
...params: ConstructorParameters<typeof Translate>
|
|
22484
22235
|
) => Translate;
|
|
22485
22236
|
/**
|
|
22486
22237
|
* Clear the _skip and _transformed variables.
|
|
@@ -22548,7 +22299,7 @@ declare module "react-declarative/components/Breadcrumbs/Breadcrumbs" {
|
|
|
22548
22299
|
* @param [props.AfterMenuContent] - The optional content to display after the action menu.
|
|
22549
22300
|
* @returns The rendered breadcrumb component.
|
|
22550
22301
|
*/
|
|
22551
|
-
export const Breadcrumbs: <T extends
|
|
22302
|
+
export const Breadcrumbs: <T extends any = any>({
|
|
22552
22303
|
onSave,
|
|
22553
22304
|
onBack,
|
|
22554
22305
|
onAction,
|
|
@@ -22800,7 +22551,7 @@ declare module "react-declarative/components/ActionMenu/ActionMenu" {
|
|
|
22800
22551
|
*
|
|
22801
22552
|
* @returns - The rendered ActionMenu component.
|
|
22802
22553
|
*/
|
|
22803
|
-
export const ActionMenu: <T extends
|
|
22554
|
+
export const ActionMenu: <T extends any = object>({
|
|
22804
22555
|
options,
|
|
22805
22556
|
transparent,
|
|
22806
22557
|
disabled,
|
|
@@ -22882,7 +22633,7 @@ declare module "react-declarative/components/ActionGroup/ActionGroup" {
|
|
|
22882
22633
|
*
|
|
22883
22634
|
* @returns - The rendered ActionGroup component.
|
|
22884
22635
|
*/
|
|
22885
|
-
export const ActionGroup: <T extends
|
|
22636
|
+
export const ActionGroup: <T extends any = object>({
|
|
22886
22637
|
variant,
|
|
22887
22638
|
size,
|
|
22888
22639
|
options,
|
|
@@ -23272,7 +23023,7 @@ declare module "react-declarative/components/ActionTrigger/ActionTrigger" {
|
|
|
23272
23023
|
* @param otherProps - Additional props to be spread onto the container Box component.
|
|
23273
23024
|
* @returns - The rendered component.
|
|
23274
23025
|
*/
|
|
23275
|
-
export const ActionTrigger: <T extends
|
|
23026
|
+
export const ActionTrigger: <T extends any = object>({
|
|
23276
23027
|
actions,
|
|
23277
23028
|
variant,
|
|
23278
23029
|
size,
|
|
@@ -23581,9 +23332,9 @@ declare module "react-declarative/components/ActionModal/ActionModal" {
|
|
|
23581
23332
|
* @returns - The rendered modal component.
|
|
23582
23333
|
*/
|
|
23583
23334
|
export const ActionModal: <
|
|
23584
|
-
Data extends
|
|
23585
|
-
Payload =
|
|
23586
|
-
Field = IField<Data
|
|
23335
|
+
Data extends IAnything = IAnything,
|
|
23336
|
+
Payload = IAnything,
|
|
23337
|
+
Field = IField<Data>,
|
|
23587
23338
|
>({
|
|
23588
23339
|
withActionButton,
|
|
23589
23340
|
withStaticAction,
|
|
@@ -23623,11 +23374,12 @@ declare module "react-declarative/components/ActionModal/ActionModal" {
|
|
|
23623
23374
|
writeTransform,
|
|
23624
23375
|
incomingTransform,
|
|
23625
23376
|
outgoingTransform,
|
|
23626
|
-
}: IActionModalProps<Data, Payload, Field
|
|
23377
|
+
}: IActionModalProps<Data, Payload, Field>) => JSX.Element;
|
|
23627
23378
|
export default ActionModal;
|
|
23628
23379
|
}
|
|
23629
23380
|
|
|
23630
23381
|
declare module "react-declarative/components/ActionModal/useActionModal" {
|
|
23382
|
+
import * as React from "react";
|
|
23631
23383
|
import { IActionModalProps } from "react-declarative/components/ActionModal/ActionModal";
|
|
23632
23384
|
import TypedField from "react-declarative/model/TypedField";
|
|
23633
23385
|
import IAnything from "react-declarative/model/IAnything";
|
|
@@ -23697,9 +23449,9 @@ declare module "react-declarative/components/ActionModal/useActionModal" {
|
|
|
23697
23449
|
* @property pickData - The function for selecting data.
|
|
23698
23450
|
*/
|
|
23699
23451
|
export const useActionModal: <
|
|
23700
|
-
Data extends
|
|
23701
|
-
Payload extends
|
|
23702
|
-
Field = IField<Data
|
|
23452
|
+
Data extends IAnything = IAnything,
|
|
23453
|
+
Payload extends IAnything = IAnything,
|
|
23454
|
+
Field = IField<Data>,
|
|
23703
23455
|
Param = any,
|
|
23704
23456
|
>({
|
|
23705
23457
|
hidden,
|
|
@@ -23742,13 +23494,15 @@ declare module "react-declarative/components/ActionModal/useActionModal" {
|
|
|
23742
23494
|
title,
|
|
23743
23495
|
}: IParams<Data, Payload, Field, Param>) => {
|
|
23744
23496
|
open: boolean;
|
|
23497
|
+
setOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
23745
23498
|
render: () => JSX.Element;
|
|
23746
|
-
pickData: (param?: Param
|
|
23499
|
+
pickData: (param?: Param) => void;
|
|
23747
23500
|
};
|
|
23748
|
-
export const useActionModalTyped: <Data extends
|
|
23749
|
-
params: IParams<Data, TypedField<Data
|
|
23501
|
+
export const useActionModalTyped: <Data extends IAnything = IAnything>(
|
|
23502
|
+
params: IParams<Data, TypedField<Data>>,
|
|
23750
23503
|
) => {
|
|
23751
23504
|
open: boolean;
|
|
23505
|
+
setOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
23752
23506
|
render: () => JSX.Element;
|
|
23753
23507
|
pickData: (param?: any) => void;
|
|
23754
23508
|
};
|
|
@@ -23853,10 +23607,10 @@ declare module "react-declarative/components/SearchModal/SearchModal" {
|
|
|
23853
23607
|
* @returns The Search Modal component.
|
|
23854
23608
|
*/
|
|
23855
23609
|
export const SearchModal: <
|
|
23856
|
-
FilterData extends {} =
|
|
23857
|
-
RowData extends IRowData =
|
|
23858
|
-
Payload extends
|
|
23859
|
-
Field extends IField
|
|
23610
|
+
FilterData extends {} = IAnything,
|
|
23611
|
+
RowData extends IRowData = IAnything,
|
|
23612
|
+
Payload extends IAnything = IAnything,
|
|
23613
|
+
Field extends IField = IField<FilterData, Payload>,
|
|
23860
23614
|
>({
|
|
23861
23615
|
fullScreen,
|
|
23862
23616
|
sizeRequest,
|
|
@@ -23956,10 +23710,10 @@ declare module "react-declarative/components/SearchModal/useSearchModal" {
|
|
|
23956
23710
|
* @property close - A function for closing the search modal and handling submit with null data.
|
|
23957
23711
|
*/
|
|
23958
23712
|
export const useSearchModal: <
|
|
23959
|
-
FilterData extends {} =
|
|
23960
|
-
RowData extends IRowData =
|
|
23961
|
-
Payload extends
|
|
23962
|
-
Field extends IField
|
|
23713
|
+
FilterData extends {} = IAnything,
|
|
23714
|
+
RowData extends IRowData = IAnything,
|
|
23715
|
+
Payload extends IAnything = IAnything,
|
|
23716
|
+
Field extends IField = IField<FilterData, Payload>,
|
|
23963
23717
|
>({
|
|
23964
23718
|
param: upperParam,
|
|
23965
23719
|
selectionMode,
|
|
@@ -24000,10 +23754,10 @@ declare module "react-declarative/components/SearchModal/useSearchModal" {
|
|
|
24000
23754
|
* @returns
|
|
24001
23755
|
*/
|
|
24002
23756
|
export const useSearchModalTyped: <
|
|
24003
|
-
FilterData extends {} =
|
|
24004
|
-
RowData extends IRowData =
|
|
24005
|
-
Payload extends
|
|
24006
|
-
Field extends IField
|
|
23757
|
+
FilterData extends {} = IAnything,
|
|
23758
|
+
RowData extends IRowData = IAnything,
|
|
23759
|
+
Payload extends IAnything = IAnything,
|
|
23760
|
+
Field extends IField = TypedField<FilterData, Payload>,
|
|
24007
23761
|
>(
|
|
24008
23762
|
params: IParams<FilterData, RowData, Payload, Field>,
|
|
24009
23763
|
) => {
|
|
@@ -24016,6 +23770,7 @@ declare module "react-declarative/components/SearchModal/useSearchModal" {
|
|
|
24016
23770
|
}
|
|
24017
23771
|
|
|
24018
23772
|
declare module "react-declarative/components/SearchView/SearchView" {
|
|
23773
|
+
import IAnything from "react-declarative/model/IAnything";
|
|
24019
23774
|
import ISearchViewProps from "react-declarative/components/SearchView/model/ISearchViewProps";
|
|
24020
23775
|
/**
|
|
24021
23776
|
* SearchView component documentation
|
|
@@ -24060,7 +23815,10 @@ declare module "react-declarative/components/SearchView/SearchView" {
|
|
|
24060
23815
|
*
|
|
24061
23816
|
* @returns The SearchView component
|
|
24062
23817
|
*/
|
|
24063
|
-
export const SearchView: <
|
|
23818
|
+
export const SearchView: <
|
|
23819
|
+
Data extends IAnything = IAnything,
|
|
23820
|
+
Payload = IAnything,
|
|
23821
|
+
>({
|
|
24064
23822
|
className,
|
|
24065
23823
|
style,
|
|
24066
23824
|
sx,
|
|
@@ -24135,7 +23893,7 @@ declare module "react-declarative/components/ConstraintView/ConstraintView" {
|
|
|
24135
23893
|
* @param props - Any other props to pass to the component
|
|
24136
23894
|
* @returns - The rendered content based on the current device's screen size
|
|
24137
23895
|
*/
|
|
24138
|
-
export const ConstraintView: <T extends
|
|
23896
|
+
export const ConstraintView: <T extends IAnything = IAnything>({
|
|
24139
23897
|
desktopView: Desktop,
|
|
24140
23898
|
tabletView: Tablet,
|
|
24141
23899
|
phoneView: Phone,
|
|
@@ -24202,6 +23960,7 @@ declare module "react-declarative/components/ScrollTopView/ScrollTopView" {
|
|
|
24202
23960
|
|
|
24203
23961
|
declare module "react-declarative/components/OutletView/OutletView" {
|
|
24204
23962
|
import IOutletViewProps from "react-declarative/components/OutletView/model/IOutletViewProps";
|
|
23963
|
+
import IAnything from "react-declarative/model/IAnything";
|
|
24205
23964
|
import IOtherProps from "react-declarative/components/OutletView/model/IOtherProps";
|
|
24206
23965
|
/**
|
|
24207
23966
|
* OutletView component documentation
|
|
@@ -24228,8 +23987,8 @@ declare module "react-declarative/components/OutletView/OutletView" {
|
|
|
24228
23987
|
*/
|
|
24229
23988
|
export const OutletView: <
|
|
24230
23989
|
Data extends {} = Record<string, any>,
|
|
24231
|
-
Payload =
|
|
24232
|
-
Params =
|
|
23990
|
+
Payload = IAnything,
|
|
23991
|
+
Params = IAnything,
|
|
24233
23992
|
OtherProps = IOtherProps,
|
|
24234
23993
|
>({
|
|
24235
23994
|
className,
|
|
@@ -24556,8 +24315,8 @@ declare module "react-declarative/components/OutletView/hooks/useOutletModal" {
|
|
|
24556
24315
|
*/
|
|
24557
24316
|
export const useOutletModal: <
|
|
24558
24317
|
Data extends {} = Record<string, any>,
|
|
24559
|
-
Payload =
|
|
24560
|
-
Params =
|
|
24318
|
+
Payload = IAnything,
|
|
24319
|
+
Params = IAnything,
|
|
24561
24320
|
>({
|
|
24562
24321
|
fallback,
|
|
24563
24322
|
pathname,
|
|
@@ -25143,7 +24902,7 @@ declare module "react-declarative/components/FilesView/useFilesView" {
|
|
|
25143
24902
|
* @param params.onUpload - A callback function for uploading a file (optional).
|
|
25144
24903
|
* @returns - An object with the render function for the component and the pickFiles function to open the file picker.
|
|
25145
24904
|
*/
|
|
25146
|
-
export const useFilesView: <Payload extends
|
|
24905
|
+
export const useFilesView: <Payload extends IAnything = IAnything>({
|
|
25147
24906
|
data,
|
|
25148
24907
|
withActionButton,
|
|
25149
24908
|
withStaticAction,
|
|
@@ -25448,6 +25207,7 @@ declare module "react-declarative/components/FadeView/FadeView" {
|
|
|
25448
25207
|
|
|
25449
25208
|
declare module "react-declarative/components/TabsView/TabsView" {
|
|
25450
25209
|
import ITabsViewProps from "react-declarative/components/TabsView/model/ITabsViewProps";
|
|
25210
|
+
import IAnything from "react-declarative/model/IAnything";
|
|
25451
25211
|
/**
|
|
25452
25212
|
* Represents a view component for rendering tabs and associated content.
|
|
25453
25213
|
*
|
|
@@ -25473,7 +25233,7 @@ declare module "react-declarative/components/TabsView/TabsView" {
|
|
|
25473
25233
|
* @param [props.otherProps=upperOtherProps] - The other props to pass to sub-components.
|
|
25474
25234
|
* @returns - The rendered TabsView component.
|
|
25475
25235
|
*/
|
|
25476
|
-
export const TabsView: <Data extends {} =
|
|
25236
|
+
export const TabsView: <Data extends {} = IAnything, Payload = IAnything>({
|
|
25477
25237
|
className,
|
|
25478
25238
|
style,
|
|
25479
25239
|
sx,
|
|
@@ -25498,7 +25258,7 @@ declare module "react-declarative/components/TabsView/TabsView" {
|
|
|
25498
25258
|
onNavigate,
|
|
25499
25259
|
otherProps: upperOtherProps,
|
|
25500
25260
|
...outletProps
|
|
25501
|
-
}: ITabsViewProps<Data, Payload
|
|
25261
|
+
}: ITabsViewProps<Data, Payload>) => JSX.Element;
|
|
25502
25262
|
export default TabsView;
|
|
25503
25263
|
}
|
|
25504
25264
|
|
|
@@ -25680,7 +25440,7 @@ declare module "react-declarative/components/TabsView/hooks/useTabsModal" {
|
|
|
25680
25440
|
*/
|
|
25681
25441
|
export const useTabsModal: <
|
|
25682
25442
|
Data extends {} = Record<string, any>,
|
|
25683
|
-
Payload =
|
|
25443
|
+
Payload = IAnything,
|
|
25684
25444
|
>({
|
|
25685
25445
|
fallback,
|
|
25686
25446
|
pathname,
|
|
@@ -25709,7 +25469,7 @@ declare module "react-declarative/components/TabsView/hooks/useTabsModal" {
|
|
|
25709
25469
|
|
|
25710
25470
|
declare module "react-declarative/components/FetchView/FetchView" {
|
|
25711
25471
|
import * as React from "react";
|
|
25712
|
-
import { IAsyncProps } from "react-declarative/components/Async";
|
|
25472
|
+
import Async, { IAsyncProps } from "react-declarative/components/Async";
|
|
25713
25473
|
import { IRevealProps } from "react-declarative/components/FetchView/components/Reveal";
|
|
25714
25474
|
/**
|
|
25715
25475
|
* Represents the possible types of the Result class.
|
|
@@ -25717,7 +25477,12 @@ declare module "react-declarative/components/FetchView/FetchView" {
|
|
|
25717
25477
|
* @typedef ResultType
|
|
25718
25478
|
* @typedef VoidType
|
|
25719
25479
|
*/
|
|
25720
|
-
type Result =
|
|
25480
|
+
type Result =
|
|
25481
|
+
React.ComponentProps<typeof Async> extends {
|
|
25482
|
+
children: (p: any) => infer R;
|
|
25483
|
+
}
|
|
25484
|
+
? R
|
|
25485
|
+
: never;
|
|
25721
25486
|
/**
|
|
25722
25487
|
* Represents the state of an object with optional payload and result.
|
|
25723
25488
|
*
|
|
@@ -25957,7 +25722,7 @@ declare module "react-declarative/components/FetchView/FetchView" {
|
|
|
25957
25722
|
* @returns - The rendered JSX for the FetchView component.
|
|
25958
25723
|
*/
|
|
25959
25724
|
export const FetchView: <
|
|
25960
|
-
P extends
|
|
25725
|
+
P extends any = object,
|
|
25961
25726
|
A = any,
|
|
25962
25727
|
B = any,
|
|
25963
25728
|
C = any,
|
|
@@ -25997,10 +25762,22 @@ declare module "react-declarative/components/FetchView/components/Reveal" {
|
|
|
25997
25762
|
animation?: "slideDown" | "fadeIn" | "scale" | "none";
|
|
25998
25763
|
appear?: boolean;
|
|
25999
25764
|
}
|
|
26000
|
-
|
|
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: (
|
|
26001
25777
|
{ children, className, animation, appear, ...otherProps }: IRevealProps,
|
|
26002
25778
|
ref: React.Ref<HTMLDivElement>,
|
|
26003
25779
|
) => JSX.Element;
|
|
25780
|
+
export const Reveal: typeof RevealInternal;
|
|
26004
25781
|
export default Reveal;
|
|
26005
25782
|
}
|
|
26006
25783
|
|
|
@@ -26053,10 +25830,7 @@ declare module "react-declarative/components/WaitView/WaitView" {
|
|
|
26053
25830
|
*
|
|
26054
25831
|
* @returns The rendered component.
|
|
26055
25832
|
*/
|
|
26056
|
-
export const WaitView: <
|
|
26057
|
-
P extends unknown = object,
|
|
26058
|
-
T extends unknown = object,
|
|
26059
|
-
>({
|
|
25833
|
+
export const WaitView: <P extends any = object, T extends any = object>({
|
|
26060
25834
|
onDone,
|
|
26061
25835
|
condition,
|
|
26062
25836
|
Loader,
|
|
@@ -26118,7 +25892,7 @@ declare module "react-declarative/components/PingView/PingView" {
|
|
|
26118
25892
|
*
|
|
26119
25893
|
* @returns - The rendered component or null if initialization is in progress
|
|
26120
25894
|
*/
|
|
26121
|
-
export const PingView: <P extends
|
|
25895
|
+
export const PingView: <P extends any = object>({
|
|
26122
25896
|
ping,
|
|
26123
25897
|
children,
|
|
26124
25898
|
onOnline,
|
|
@@ -26212,7 +25986,7 @@ declare module "react-declarative/components/HtmlView/HtmlView" {
|
|
|
26212
25986
|
throwError,
|
|
26213
25987
|
...otherProps
|
|
26214
25988
|
}: IHtmlViewProps): JSX.Element;
|
|
26215
|
-
sanitize: (html: string, config?: Partial<IConfig>
|
|
25989
|
+
sanitize: (html: string, config?: Partial<IConfig>) => string;
|
|
26216
25990
|
};
|
|
26217
25991
|
export default HtmlView;
|
|
26218
25992
|
}
|
|
@@ -26273,7 +26047,10 @@ declare module "react-declarative/components/MetroView/MetroView" {
|
|
|
26273
26047
|
payload?: Payload | (() => Payload);
|
|
26274
26048
|
onNavigate?: (to: string, payload: Payload) => void;
|
|
26275
26049
|
}
|
|
26276
|
-
export const MetroView: <
|
|
26050
|
+
export const MetroView: <
|
|
26051
|
+
Data = IAnything,
|
|
26052
|
+
Payload extends object = IAnything,
|
|
26053
|
+
>({
|
|
26277
26054
|
routes,
|
|
26278
26055
|
data,
|
|
26279
26056
|
payload: upperPayload,
|
|
@@ -26389,6 +26166,7 @@ declare module "react-declarative/components/SecretView/SecretView" {
|
|
|
26389
26166
|
|
|
26390
26167
|
declare module "react-declarative/components/WizardView/WizardView" {
|
|
26391
26168
|
import IWizardViewProps from "react-declarative/components/WizardView/model/IWizardViewProps";
|
|
26169
|
+
import IAnything from "react-declarative/model/IAnything";
|
|
26392
26170
|
/**
|
|
26393
26171
|
* WizardView component.
|
|
26394
26172
|
*
|
|
@@ -26414,9 +26192,9 @@ declare module "react-declarative/components/WizardView/WizardView" {
|
|
|
26414
26192
|
* @returns The rendered WizardView component.
|
|
26415
26193
|
*/
|
|
26416
26194
|
export const WizardView: <
|
|
26417
|
-
Data extends {} =
|
|
26418
|
-
Payload =
|
|
26419
|
-
Params =
|
|
26195
|
+
Data extends {} = IAnything,
|
|
26196
|
+
Payload = IAnything,
|
|
26197
|
+
Params = IAnything,
|
|
26420
26198
|
>({
|
|
26421
26199
|
className,
|
|
26422
26200
|
style,
|
|
@@ -26720,7 +26498,7 @@ declare module "react-declarative/components/WizardView/hooks/useWizardModal" {
|
|
|
26720
26498
|
*/
|
|
26721
26499
|
export const useWizardModal: <
|
|
26722
26500
|
Data extends {} = Record<string, any>,
|
|
26723
|
-
Payload =
|
|
26501
|
+
Payload = IAnything,
|
|
26724
26502
|
>({
|
|
26725
26503
|
fallback,
|
|
26726
26504
|
pathname,
|
|
@@ -26888,8 +26666,8 @@ declare module "react-declarative/components/AuthView/AuthView" {
|
|
|
26888
26666
|
* @returns The AuthView component.
|
|
26889
26667
|
*/
|
|
26890
26668
|
export const AuthView: <
|
|
26891
|
-
Data extends
|
|
26892
|
-
Payload =
|
|
26669
|
+
Data extends IAnything = IAnything,
|
|
26670
|
+
Payload = IAnything,
|
|
26893
26671
|
Field = IField<Data, Payload>,
|
|
26894
26672
|
>({
|
|
26895
26673
|
className,
|
|
@@ -26916,38 +26694,44 @@ declare module "react-declarative/components/KanbanView/KanbanView" {
|
|
|
26916
26694
|
import * as React from "react";
|
|
26917
26695
|
import IKanbanViewProps from "react-declarative/components/KanbanView/model/IKanbanViewProps";
|
|
26918
26696
|
/**
|
|
26919
|
-
*
|
|
26920
|
-
*
|
|
26921
|
-
* @
|
|
26922
|
-
* @
|
|
26923
|
-
* @
|
|
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
|
-
|
|
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: {
|
|
26951
26735
|
<
|
|
26952
26736
|
Data extends unknown = any,
|
|
26953
26737
|
Payload extends unknown = any,
|
|
@@ -26984,20 +26768,50 @@ declare module "react-declarative/components/KanbanView/KanbanView" {
|
|
|
26984
26768
|
}: IKanbanViewProps<Data, Payload, ColumnType>,
|
|
26985
26769
|
ref: React.Ref<HTMLDivElement>,
|
|
26986
26770
|
): JSX.Element;
|
|
26987
|
-
/**
|
|
26988
|
-
* @example useEffect(KanbanViewInternal.enableScrollOnDrag(ref), [])
|
|
26989
|
-
*/
|
|
26990
26771
|
enableScrollOnDrag(
|
|
26991
26772
|
ref: React.MutableRefObject<HTMLDivElement | undefined>,
|
|
26992
26773
|
{
|
|
26993
26774
|
threshold,
|
|
26994
26775
|
speed,
|
|
26995
26776
|
}?: {
|
|
26996
|
-
threshold?: number
|
|
26997
|
-
speed?: number
|
|
26777
|
+
threshold?: number;
|
|
26778
|
+
speed?: number;
|
|
26998
26779
|
},
|
|
26999
26780
|
): () => import("../../utils/compose").Function;
|
|
27000
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;
|
|
27001
26815
|
export default KanbanView;
|
|
27002
26816
|
}
|
|
27003
26817
|
|
|
@@ -27297,9 +27111,6 @@ declare module "react-declarative/components/VirtualView/VirtualView" {
|
|
|
27297
27111
|
throwError,
|
|
27298
27112
|
...otherProps
|
|
27299
27113
|
}: IVirtualViewProps): JSX.Element;
|
|
27300
|
-
/**
|
|
27301
|
-
* Virtualize is a method that helps in optimizing rendering performance by rendering only the visible elements in a view, using virtualization technique.
|
|
27302
|
-
*/
|
|
27303
27114
|
virtualize<T extends object = any>(
|
|
27304
27115
|
OriginalComponent: React.ComponentType<T & IVirtualized>,
|
|
27305
27116
|
): React.ForwardRefExoticComponent<
|
|
@@ -27651,7 +27462,10 @@ declare module "react-declarative/components/GridView/GridView" {
|
|
|
27651
27462
|
* @param props - The component props.
|
|
27652
27463
|
* @returns - The GridView component.
|
|
27653
27464
|
*/
|
|
27654
|
-
export const GridView: <
|
|
27465
|
+
export const GridView: <
|
|
27466
|
+
T extends RowData = RowData,
|
|
27467
|
+
P extends IAnything = IAnything,
|
|
27468
|
+
>({
|
|
27655
27469
|
className,
|
|
27656
27470
|
style,
|
|
27657
27471
|
sx,
|
|
@@ -28039,7 +27853,7 @@ declare module "react-declarative/components/RoiView/RoiView" {
|
|
|
28039
27853
|
onLoadStart?: () => void;
|
|
28040
27854
|
onLoadEnd?: (isOk: boolean) => void;
|
|
28041
27855
|
}
|
|
28042
|
-
|
|
27856
|
+
const RoiViewInternal: (
|
|
28043
27857
|
{
|
|
28044
27858
|
withNaturalSize,
|
|
28045
27859
|
imageSize,
|
|
@@ -28057,6 +27871,7 @@ declare module "react-declarative/components/RoiView/RoiView" {
|
|
|
28057
27871
|
}: IRoiViewProps,
|
|
28058
27872
|
ref: React.Ref<HTMLDivElement>,
|
|
28059
27873
|
) => JSX.Element;
|
|
27874
|
+
export const RoiView: typeof RoiViewInternal;
|
|
28060
27875
|
export default RoiView;
|
|
28061
27876
|
}
|
|
28062
27877
|
|
|
@@ -28085,15 +27900,14 @@ declare module "react-declarative/components/RoiView/model/ICord" {
|
|
|
28085
27900
|
|
|
28086
27901
|
declare module "react-declarative/components/Grid/Grid" {
|
|
28087
27902
|
import IGridProps from "react-declarative/components/Grid/model/IGridProps";
|
|
27903
|
+
import RowData from "react-declarative/components/Grid/model/RowData";
|
|
28088
27904
|
/**
|
|
28089
27905
|
* Represents a grid component with customizable features.
|
|
28090
27906
|
* @template T - The type of row data in the grid.
|
|
28091
27907
|
* @param props - The properties for the grid.
|
|
28092
27908
|
* @returns - The grid component.
|
|
28093
27909
|
*/
|
|
28094
|
-
export const Grid: <T extends
|
|
28095
|
-
props: IGridProps<T, any>,
|
|
28096
|
-
) => JSX.Element;
|
|
27910
|
+
export const Grid: <T extends RowData>(props: IGridProps<T>) => JSX.Element;
|
|
28097
27911
|
export default Grid;
|
|
28098
27912
|
}
|
|
28099
27913
|
|
|
@@ -28145,7 +27959,7 @@ declare module "react-declarative/components/Grid/api/useOffsetPaginator" {
|
|
|
28145
27959
|
* @returns reloadSubject - The reload subject used to trigger a data reload.
|
|
28146
27960
|
* @returns clear - A function to clear the paginated data and reset the pagination state.
|
|
28147
27961
|
*/
|
|
28148
|
-
export const useOffsetPaginator: <Data extends
|
|
27962
|
+
export const useOffsetPaginator: <Data extends RowData = RowData>({
|
|
28149
27963
|
reloadSubject: upperReloadSubject,
|
|
28150
27964
|
initialData: upperInitialData,
|
|
28151
27965
|
handler,
|
|
@@ -28202,7 +28016,7 @@ declare module "react-declarative/components/Grid/api/useCursorPaginator" {
|
|
|
28202
28016
|
* @param queryProps - Additional properties to be passed to the query.
|
|
28203
28017
|
* @returns - An object containing the paginator data and functions.
|
|
28204
28018
|
*/
|
|
28205
|
-
export const useCursorPaginator: <Data extends
|
|
28019
|
+
export const useCursorPaginator: <Data extends RowData = RowData>({
|
|
28206
28020
|
reloadSubject: upperReloadSubject,
|
|
28207
28021
|
initialData: upperInitialData,
|
|
28208
28022
|
handler,
|
|
@@ -28268,7 +28082,7 @@ declare module "react-declarative/components/Grid/api/useGridAction" {
|
|
|
28268
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.
|
|
28269
28083
|
* - commitRowAction - A function that commits a row action. This function receives the action name and the row and calls the onRowAction callback function.
|
|
28270
28084
|
*/
|
|
28271
|
-
export const useGridAction: <Data extends
|
|
28085
|
+
export const useGridAction: <Data extends IAnything = IAnything>({
|
|
28272
28086
|
onLoadStart,
|
|
28273
28087
|
onLoadEnd,
|
|
28274
28088
|
throwError,
|
|
@@ -28476,6 +28290,7 @@ declare module "react-declarative/components/Grid/hooks/useGridProps" {
|
|
|
28476
28290
|
}
|
|
28477
28291
|
|
|
28478
28292
|
declare module "react-declarative/components/Tile/Tile" {
|
|
28293
|
+
import IAnything from "react-declarative/model/IAnything";
|
|
28479
28294
|
import ITileProps from "react-declarative/components/Tile/model/ITileProps";
|
|
28480
28295
|
/**
|
|
28481
28296
|
* Tile component for displaying a list of items in a virtual view.
|
|
@@ -28506,7 +28321,7 @@ declare module "react-declarative/components/Tile/Tile" {
|
|
|
28506
28321
|
* @param [props.rowMark] - The key to use for identifying each row mark.
|
|
28507
28322
|
* @returns The Tile component.
|
|
28508
28323
|
*/
|
|
28509
|
-
export const Tile: <Data extends
|
|
28324
|
+
export const Tile: <Data extends IAnything = IAnything, Payload = IAnything>({
|
|
28510
28325
|
className,
|
|
28511
28326
|
style,
|
|
28512
28327
|
sx,
|
|
@@ -28672,7 +28487,7 @@ declare module "react-declarative/components/Async/Async" {
|
|
|
28672
28487
|
deps?: any[];
|
|
28673
28488
|
throwError?: boolean;
|
|
28674
28489
|
}
|
|
28675
|
-
type Result = React.ReactNode |
|
|
28490
|
+
type Result = React.ReactNode | null;
|
|
28676
28491
|
/**
|
|
28677
28492
|
* Async
|
|
28678
28493
|
* @template T - The type of the payload data.
|
|
@@ -28690,7 +28505,7 @@ declare module "react-declarative/components/Async/Async" {
|
|
|
28690
28505
|
* @param params.throwError - A boolean indicating whether to throw an error in case of an error or to fallback.
|
|
28691
28506
|
* @returns - The rendered component.
|
|
28692
28507
|
*/
|
|
28693
|
-
export const Async: <T extends
|
|
28508
|
+
export const Async: <T extends any = object>({
|
|
28694
28509
|
reloadSubject: upperReloadSubject,
|
|
28695
28510
|
loading: upperLoading,
|
|
28696
28511
|
disabled: upperDisabled,
|
|
@@ -28802,7 +28617,7 @@ declare module "react-declarative/components/If/If" {
|
|
|
28802
28617
|
* @param [props.throwError=false] - Whether to throw an error or call the fallback function if an error occurs.
|
|
28803
28618
|
* @returns - The rendered content based on the condition and loading state.
|
|
28804
28619
|
*/
|
|
28805
|
-
export const If: <T extends
|
|
28620
|
+
export const If: <T extends any = object>({
|
|
28806
28621
|
Else,
|
|
28807
28622
|
Loading,
|
|
28808
28623
|
children,
|
|
@@ -28818,11 +28633,8 @@ declare module "react-declarative/components/If/If" {
|
|
|
28818
28633
|
}
|
|
28819
28634
|
|
|
28820
28635
|
declare module "react-declarative/components/Map/Map" {
|
|
28821
|
-
import type mapboxglInternal from "mapbox-gl";
|
|
28822
28636
|
import { BoxProps } from "@mui/material/Box";
|
|
28823
|
-
global {
|
|
28824
|
-
var mapboxgl: typeof mapboxglInternal;
|
|
28825
|
-
}
|
|
28637
|
+
global {}
|
|
28826
28638
|
interface IPosition {
|
|
28827
28639
|
lng: number;
|
|
28828
28640
|
lat: number;
|
|
@@ -29016,24 +28828,8 @@ declare module "react-declarative/components/ScrollAdjust/ScrollAdjust" {
|
|
|
29016
28828
|
*/
|
|
29017
28829
|
export const ScrollAdjust: {
|
|
29018
28830
|
(): JSX.Element;
|
|
29019
|
-
/**
|
|
29020
|
-
* Sets the value to adjust the scroll force.
|
|
29021
|
-
*
|
|
29022
|
-
* @param force - The force to adjust the scroll.
|
|
29023
|
-
*/
|
|
29024
28831
|
setAdjustForce(force: boolean): void;
|
|
29025
|
-
/**
|
|
29026
|
-
* Sets the adjustment height for scrollbars.
|
|
29027
|
-
*
|
|
29028
|
-
* @param adjustHeight - The height to adjust the scrollbars.
|
|
29029
|
-
* @returns
|
|
29030
|
-
*/
|
|
29031
28832
|
setAdjustHeight(height: Height): void;
|
|
29032
|
-
/**
|
|
29033
|
-
* Sets the adjustment filler for ScrollAdjust component.
|
|
29034
|
-
*
|
|
29035
|
-
* @param filler - The HTML element to be used as adjustment filler.
|
|
29036
|
-
*/
|
|
29037
28833
|
setAdjustFiller(element: React.ComponentType<any>): void;
|
|
29038
28834
|
};
|
|
29039
28835
|
export default ScrollAdjust;
|
|
@@ -29068,7 +28864,7 @@ declare module "react-declarative/components/MasterDetail/MasterDetail" {
|
|
|
29068
28864
|
* @param props.throwError - Specifies whether to throw an error during async actions.
|
|
29069
28865
|
* @returns - The rendered component.
|
|
29070
28866
|
*/
|
|
29071
|
-
export const MasterDetail: <Payload extends
|
|
28867
|
+
export const MasterDetail: <Payload extends any = any>({
|
|
29072
28868
|
mode,
|
|
29073
28869
|
withTransparentTabs,
|
|
29074
28870
|
withMenuCollapse,
|
|
@@ -29327,25 +29123,25 @@ declare module "react-declarative/components/List/components/SlotFactory/SlotCon
|
|
|
29327
29123
|
BodyRow: <RowData extends import("../../../..").IRowData = any>(
|
|
29328
29124
|
props: import("../..").IBodyRowSlot<RowData>,
|
|
29329
29125
|
) => JSX.Element;
|
|
29330
|
-
CheckboxCell: <
|
|
29126
|
+
CheckboxCell: <RowData extends import("../../../..").IRowData = any>({
|
|
29331
29127
|
row,
|
|
29332
29128
|
disabled,
|
|
29333
|
-
}: import("./components/CheckboxCell").ICheckboxCellProps<
|
|
29334
|
-
CommonCell: <
|
|
29129
|
+
}: import("./components/CheckboxCell").ICheckboxCellProps<RowData>) => JSX.Element;
|
|
29130
|
+
CommonCell: <RowData extends import("../../../..").IRowData = any>({
|
|
29335
29131
|
column,
|
|
29336
29132
|
row,
|
|
29337
29133
|
disabled,
|
|
29338
29134
|
onMenuToggle,
|
|
29339
29135
|
onAction,
|
|
29340
|
-
}: import("../..").ICommonCellSlot<
|
|
29341
|
-
HeadRow: (props: import("../..").IHeadRowSlot
|
|
29136
|
+
}: import("../..").ICommonCellSlot<RowData>) => any;
|
|
29137
|
+
HeadRow: (props: import("../..").IHeadRowSlot) => JSX.Element;
|
|
29342
29138
|
ActionAdd: ({
|
|
29343
29139
|
action,
|
|
29344
29140
|
width,
|
|
29345
29141
|
label,
|
|
29346
29142
|
isVisible,
|
|
29347
29143
|
isDisabled,
|
|
29348
|
-
}: import("../..").IActionAddSlot
|
|
29144
|
+
}: import("../..").IActionAddSlot) => JSX.Element;
|
|
29349
29145
|
ActionMenu: ({
|
|
29350
29146
|
options,
|
|
29351
29147
|
deps,
|
|
@@ -29357,8 +29153,8 @@ declare module "react-declarative/components/List/components/SlotFactory/SlotCon
|
|
|
29357
29153
|
icon: Icon,
|
|
29358
29154
|
isVisible,
|
|
29359
29155
|
isDisabled,
|
|
29360
|
-
}: import("../..").IActionFabSlot
|
|
29361
|
-
ChipListSlot: (props: import("../..").IChipListSlot
|
|
29156
|
+
}: import("../..").IActionFabSlot) => JSX.Element;
|
|
29157
|
+
ChipListSlot: (props: import("../..").IChipListSlot) => JSX.Element;
|
|
29362
29158
|
ActionListSlot: <FilterData extends {}>({
|
|
29363
29159
|
className,
|
|
29364
29160
|
actions,
|
|
@@ -29368,7 +29164,7 @@ declare module "react-declarative/components/List/components/SlotFactory/SlotCon
|
|
|
29368
29164
|
width,
|
|
29369
29165
|
deps,
|
|
29370
29166
|
}: import("../..").IActionListSlot<FilterData>) => JSX.Element;
|
|
29371
|
-
FilterListSlot: <
|
|
29167
|
+
FilterListSlot: <FilterData extends {}>({
|
|
29372
29168
|
className,
|
|
29373
29169
|
style,
|
|
29374
29170
|
height,
|
|
@@ -29383,7 +29179,7 @@ declare module "react-declarative/components/List/components/SlotFactory/SlotCon
|
|
|
29383
29179
|
onSearchChange,
|
|
29384
29180
|
onFilterChange,
|
|
29385
29181
|
onCollapsedChange,
|
|
29386
|
-
}: import("../..").IFilterListSlot<
|
|
29182
|
+
}: import("../..").IFilterListSlot<FilterData>) => JSX.Element;
|
|
29387
29183
|
OperationListSlot: ({
|
|
29388
29184
|
className,
|
|
29389
29185
|
style,
|
|
@@ -29398,20 +29194,20 @@ declare module "react-declarative/components/List/components/SlotFactory/SlotCon
|
|
|
29398
29194
|
search,
|
|
29399
29195
|
onSearchChange,
|
|
29400
29196
|
}: import("../..").ISearchSlot) => JSX.Element;
|
|
29401
|
-
DesktopBodyRow: <
|
|
29197
|
+
DesktopBodyRow: <RowData extends import("../../../..").IRowData = any>({
|
|
29402
29198
|
row,
|
|
29403
29199
|
mode,
|
|
29404
29200
|
columns,
|
|
29405
29201
|
disabled,
|
|
29406
29202
|
fullWidth,
|
|
29407
|
-
}: import("../..").IBodyRowSlot<
|
|
29408
|
-
MobileBodyRow: <
|
|
29203
|
+
}: import("../..").IBodyRowSlot<RowData>) => JSX.Element;
|
|
29204
|
+
MobileBodyRow: <RowData extends import("../../../..").IRowData = any>({
|
|
29409
29205
|
row,
|
|
29410
29206
|
mode,
|
|
29411
29207
|
disabled,
|
|
29412
29208
|
columns,
|
|
29413
29209
|
fullWidth,
|
|
29414
|
-
}: import("../..").IBodyRowSlot<
|
|
29210
|
+
}: import("../..").IBodyRowSlot<RowData>) => JSX.Element;
|
|
29415
29211
|
};
|
|
29416
29212
|
export const SlotContext: import("react").Context<ISlotFactoryContext>;
|
|
29417
29213
|
export default SlotContext;
|
|
@@ -30059,7 +29855,7 @@ declare module "react-declarative/components/common/ListPicker/ListPicker" {
|
|
|
30059
29855
|
*
|
|
30060
29856
|
* @returns The rendered ListPicker component.
|
|
30061
29857
|
*/
|
|
30062
|
-
export const ListPicker: <RowData extends IRowData =
|
|
29858
|
+
export const ListPicker: <RowData extends IRowData = IAnything>({
|
|
30063
29859
|
onChange,
|
|
30064
29860
|
handler,
|
|
30065
29861
|
title,
|
|
@@ -30988,7 +30784,7 @@ declare module "react-declarative/components/One/components/makeField/makeField"
|
|
|
30988
30784
|
transparentPaper,
|
|
30989
30785
|
testId,
|
|
30990
30786
|
...otherProps
|
|
30991
|
-
}: IEntity<Data
|
|
30787
|
+
}: IEntity<Data>): JSX.Element | null;
|
|
30992
30788
|
displayName: string;
|
|
30993
30789
|
};
|
|
30994
30790
|
export default makeField;
|
|
@@ -31016,7 +30812,7 @@ declare module "react-declarative/components/One/components/makeLayout/makeLayou
|
|
|
31016
30812
|
*/
|
|
31017
30813
|
export function makeLayout<T extends ILayout<any>>(
|
|
31018
30814
|
originalComponent: React.FC<T>,
|
|
31019
|
-
):
|
|
30815
|
+
): typeof originalComponent;
|
|
31020
30816
|
export default makeLayout;
|
|
31021
30817
|
}
|
|
31022
30818
|
|
|
@@ -31525,8 +31321,8 @@ declare module "react-declarative/components/OutletView/components/OutletModal"
|
|
|
31525
31321
|
*/
|
|
31526
31322
|
export const OutletModal: <
|
|
31527
31323
|
Data extends {} = Record<string, any>,
|
|
31528
|
-
Payload =
|
|
31529
|
-
Params =
|
|
31324
|
+
Payload = IAnything,
|
|
31325
|
+
Params = IAnything,
|
|
31530
31326
|
>({
|
|
31531
31327
|
withActionButton,
|
|
31532
31328
|
hidden,
|
|
@@ -31780,7 +31576,7 @@ declare module "react-declarative/components/TabsView/components/TabsOutletModal
|
|
|
31780
31576
|
}
|
|
31781
31577
|
export const OutletModal: <
|
|
31782
31578
|
Data extends {} = Record<string, any>,
|
|
31783
|
-
Payload =
|
|
31579
|
+
Payload = IAnything,
|
|
31784
31580
|
>({
|
|
31785
31581
|
withActionButton,
|
|
31786
31582
|
hidden,
|
|
@@ -31970,7 +31766,7 @@ declare module "react-declarative/components/WizardView/components/WizardOutletM
|
|
|
31970
31766
|
*/
|
|
31971
31767
|
export const OutletModal: <
|
|
31972
31768
|
Data extends {} = Record<string, any>,
|
|
31973
|
-
Payload =
|
|
31769
|
+
Payload = IAnything,
|
|
31974
31770
|
>({
|
|
31975
31771
|
withActionButton,
|
|
31976
31772
|
hidden,
|
|
@@ -33888,7 +33684,7 @@ declare module "react-declarative/components/List/components/SlotFactory/compone
|
|
|
33888
33684
|
* @param props - The props for the CheckboxCell component
|
|
33889
33685
|
* @returns - The rendered CheckboxCell component
|
|
33890
33686
|
*/
|
|
33891
|
-
export const CheckboxCell: <RowData extends IRowData =
|
|
33687
|
+
export const CheckboxCell: <RowData extends IRowData = IAnything>({
|
|
33892
33688
|
row,
|
|
33893
33689
|
disabled,
|
|
33894
33690
|
}: ICheckboxCellProps<RowData>) => JSX.Element;
|