react-declarative 2.7.107 → 2.7.109

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