ados-rcm 1.1.755 → 1.1.757

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.
@@ -105,11 +105,11 @@ export interface IADialogProps {
105
105
  */
106
106
  isCancelDisabled?: boolean | string;
107
107
  /**
108
- * isCancelLoading? : any
108
+ * isCancelLoading? : boolean
109
109
  *
110
110
  * Description : if truthy, cancel button is loading
111
111
  */
112
- isCancelLoading?: any;
112
+ isCancelLoading?: boolean;
113
113
  /**
114
114
  * isChanged? : boolean
115
115
  *
@@ -117,11 +117,11 @@ export interface IADialogProps {
117
117
  */
118
118
  isChanged?: boolean;
119
119
  /**
120
- * isLoading? : any
120
+ * isLoading? : boolean
121
121
  *
122
122
  * Description : if truthy, dialog is loading
123
123
  */
124
- isLoading?: any;
124
+ isLoading?: boolean;
125
125
  /**
126
126
  * isOkDisabled? : boolean | string
127
127
  *
@@ -129,11 +129,11 @@ export interface IADialogProps {
129
129
  */
130
130
  isOkDisabled?: boolean | string;
131
131
  /**
132
- * isOkLoading? : any
132
+ * isOkLoading? : boolean
133
133
  *
134
134
  * Description : if truthy, ok button is loading
135
135
  */
136
- isOkLoading?: any;
136
+ isOkLoading?: boolean;
137
137
  /**
138
138
  * noDim? : boolean = false
139
139
  *
@@ -157,7 +157,7 @@ export interface IADialogProps {
157
157
  *
158
158
  * Description : onCancel of the dialog. it runs close by default
159
159
  */
160
- onCancel?: (e: IAEvent) => TPromisable<any>;
160
+ onCancel?: (e: IAEvent) => TPromisable<void>;
161
161
  /**
162
162
  * onClose : () => void;
163
163
  *
@@ -169,31 +169,31 @@ export interface IADialogProps {
169
169
  *
170
170
  * Description : onEnterPress of the dialog. it runs ok by default
171
171
  */
172
- onEnterPress?: (e: IAEvent) => TPromisable<any>;
172
+ onEnterPress?: (e: IAEvent) => TPromisable<void>;
173
173
  /**
174
174
  * onEscPress : (e: IAEvent) => void;
175
175
  *
176
176
  * Description : onEscPress of the dialog. it runs cancel by default
177
177
  */
178
- onEscPress?: (e: IAEvent) => TPromisable<any>;
178
+ onEscPress?: (e: IAEvent) => TPromisable<void>;
179
179
  /**
180
180
  * onOk : (e: IAEvent) => void;
181
181
  *
182
182
  * Description : onOk of the dialog. it runs close by default
183
183
  */
184
- onOk?: (e: IAEvent) => TPromisable<any>;
184
+ onOk?: (e: IAEvent) => TPromisable<void>;
185
185
  /**
186
186
  * onPaperClick : (e: IAEvent) => void;
187
187
  *
188
188
  * Description : onPaperClick of the dialog. it runs cancel by default
189
189
  */
190
- onPaperClick?: (e: IAEvent) => TPromisable<any>;
190
+ onPaperClick?: (e: IAEvent) => TPromisable<void>;
191
191
  /**
192
192
  * onSpacePress : (e: IAEvent) => void;
193
193
  *
194
194
  * Description : onSpacePress of the dialog. it runs ok by default
195
195
  */
196
- onSpacePress?: (e: IAEvent) => TPromisable<any>;
196
+ onSpacePress?: (e: IAEvent) => TPromisable<void>;
197
197
  /**
198
198
  * progress? : number
199
199
  *
@@ -323,21 +323,8 @@ export type TADialogActions<T extends string> = {
323
323
  export type TADialogStates<T extends string> = {
324
324
  [key in T]: IADialogState;
325
325
  };
326
- /**
327
- * useADialogCores
328
- *
329
- * Description : useADialogCores is a hook that creates dialog cores.
330
- *
331
- * Basic Usage : You should use 'useADialogCores' or 'useADialogCore' to make dialog core,
332
- *
333
- * if (case 1)
334
- * const dlgCores = useADialogCores(['dlgName', 'testName']);
335
- * const dlgCore = dlgCores.dlgName;
336
- * const testDlgCore = dlgCores.testName;
337
- *
338
- */
339
- export declare const useADialogCores: <T extends string>(extDlgNames: T[] | readonly T[]) => TADialogCores<T>;
340
326
  export declare const useADialogCore: () => IADialogCore;
327
+ export declare const useADialogCores: <T extends string>(extDlgNames: T[] | readonly T[]) => TADialogCores<T>;
341
328
  export declare const CreateADC: <P extends {
342
329
  dlgCore: IADialogCore;
343
330
  }>(Builder: (props: P) => React.ReactNode) => (props: P) => import("react/jsx-runtime").JSX.Element;
@@ -4,9 +4,9 @@
4
4
  * Description : useEvent is a hook that adds event listener to element.
5
5
  *
6
6
  *
7
- * @param element element : window, document, or HTMLElement
7
+ * @param element element : window, document, globalThis, or HTMLElement
8
8
  * @param action action : action for element event
9
9
  * @param onAction onAction : event handler for element event
10
10
  * @param options? options : options for addEventListener
11
11
  */
12
- export declare function useEvent<T extends Window | Document | HTMLElement | null, K extends T extends Window ? keyof WindowEventMap : T extends Document ? keyof DocumentEventMap : T extends HTMLElement ? keyof HTMLElementEventMap : string, L extends K extends keyof WindowEventMap ? (this: T, ev: WindowEventMap[K]) => any : K extends keyof DocumentEventMap ? (this: T, ev: DocumentEventMap[K]) => any : K extends keyof HTMLElementEventMap ? (this: T, ev: HTMLElementEventMap[K]) => any : EventListenerOrEventListenerObject>(element: T | undefined, action: K, onAction: L, options?: AddEventListenerOptions): void;
12
+ export declare function useEvent<T extends Window | Document | HTMLElement | typeof globalThis | null, K extends T extends Window | typeof globalThis ? keyof WindowEventMap : T extends Document ? keyof DocumentEventMap : T extends HTMLElement ? keyof HTMLElementEventMap : string, L extends K extends keyof WindowEventMap ? (this: T, ev: WindowEventMap[K]) => any : K extends keyof DocumentEventMap ? (this: T, ev: DocumentEventMap[K]) => any : K extends keyof HTMLElementEventMap ? (this: T, ev: HTMLElementEventMap[K]) => any : EventListenerOrEventListenerObject>(element: T | undefined, action: K, onAction: L, options?: AddEventListenerOptions): void;