chayns-api 2.6.0 → 2.6.2
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.
|
@@ -83,6 +83,10 @@ export interface BaseDialog {
|
|
|
83
83
|
config?: any;
|
|
84
84
|
};
|
|
85
85
|
hideDragHandle?: boolean;
|
|
86
|
+
onLinkClick?: (attributes: {
|
|
87
|
+
[key: string]: string;
|
|
88
|
+
}) => void;
|
|
89
|
+
footer?: string;
|
|
86
90
|
}
|
|
87
91
|
export type Dialog<T = object> = BaseDialog & (DialogAlert | DialogConfirm | DialogInput | DialogModule<T> | DialogIFrame<T> | DialogSelect | DialogDate | DialogToast | DialogSignature | DialogFileSelect);
|
|
88
92
|
export interface DialogSignature {
|
|
@@ -412,6 +416,9 @@ export interface ChaynsReactFunctions {
|
|
|
412
416
|
storageSetItem: <T extends object | number | string>(key: string, value: T, accessMode?: AccessMode, tappIds?: number[]) => Promise<void>;
|
|
413
417
|
vibrate: (value: Vibrate) => Promise<void>;
|
|
414
418
|
scrollByY: (position: number, duration?: number) => Promise<void>;
|
|
419
|
+
/**
|
|
420
|
+
* @deprecated This call will be removed soon. Use dialogs instead.
|
|
421
|
+
*/
|
|
415
422
|
setOverlay: (value: ShowOverlay, callback: () => void) => Promise<void>;
|
|
416
423
|
createDialog(config: BaseDialog & (DialogAlert | DialogConfirm | DialogToast)): DialogHandler<void>;
|
|
417
424
|
createDialog(config: BaseDialog & (DialogInput | DialogSignature)): DialogHandler<string>;
|
|
@@ -424,7 +431,7 @@ export interface ChaynsReactFunctions {
|
|
|
424
431
|
createDialog(config: BaseDialog & DialogDate): DialogHandler<Date>;
|
|
425
432
|
createDialog(config: BaseDialog & DialogFileSelect): DialogHandler<DialogResultFile[]>;
|
|
426
433
|
createDialog<Input = any, Result = unknown>(config: BaseDialog & (DialogModule<Input> | DialogIFrame<Input>)): DialogHandler<Result>;
|
|
427
|
-
createDialog<Input = any, Result = unknown>(config: BaseDialog & (DialogAlert | DialogConfirm | DialogToast | DialogInput | DialogSignature | DialogSelect | DialogDate | DialogFileSelect | DialogIFrame<Input> | DialogModule<Input>)): any
|
|
434
|
+
createDialog<Input = any, Result = unknown>(config: BaseDialog & (DialogAlert | DialogConfirm | DialogToast | DialogInput | DialogSignature | DialogSelect | DialogDate | DialogFileSelect | DialogIFrame<Input> | DialogModule<Input>)): DialogHandler<any>;
|
|
428
435
|
openDialog: (value: any, callback: (data: any) => any) => Promise<any>;
|
|
429
436
|
closeDialog: (dialogId: number) => Promise<void>;
|
|
430
437
|
setDialogResult: (buttonType: DialogButtonType, result: any) => Promise<void>;
|