survey-react-ui 1.12.6 → 1.12.8
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/package.json +2 -2
- package/survey-react-ui.js +114 -45
- package/survey-react-ui.js.map +1 -1
- package/survey-react-ui.min.js +2 -2
- package/typings/packages/survey-react-ui/entries/react-ui-model.d.ts +1 -0
- package/typings/packages/survey-react-ui/src/components/popup/popup-modal.d.ts +23 -0
- package/typings/packages/survey-react-ui/src/components/popup/popup.d.ts +1 -3
|
@@ -83,3 +83,4 @@ export { SurveyLocStringViewer } from "../src/string-viewer";
|
|
|
83
83
|
export { SurveyLocStringEditor } from "../src/string-editor";
|
|
84
84
|
export { LoadingIndicatorComponent } from "../src/components/loading-indicator";
|
|
85
85
|
export { SvgBundleComponent } from "../src/svgbundle";
|
|
86
|
+
export { PopupModal } from "../src/components/popup/popup-modal";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SurveyElementBase } from "../../reactquestion_element";
|
|
3
|
+
import { IDialogOptions, PopupBaseViewModel } from "survey-core";
|
|
4
|
+
interface IModalDescriptor {
|
|
5
|
+
init: () => void;
|
|
6
|
+
clean: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare class PopupModal extends SurveyElementBase<{}, any> {
|
|
9
|
+
private model;
|
|
10
|
+
private isInitialized;
|
|
11
|
+
private descriptor;
|
|
12
|
+
constructor(props: {});
|
|
13
|
+
static modalDescriptors: Array<IModalDescriptor>;
|
|
14
|
+
static addModalDescriptor(descriptor: IModalDescriptor): void;
|
|
15
|
+
static removeModalDescriptor(descriptor: IModalDescriptor): void;
|
|
16
|
+
protected renderElement(): JSX.Element | null;
|
|
17
|
+
showDialog(dialogOptions: IDialogOptions, rootElement?: HTMLElement): PopupBaseViewModel;
|
|
18
|
+
init: () => void;
|
|
19
|
+
clean: () => void;
|
|
20
|
+
componentDidMount(): void;
|
|
21
|
+
componentWillUnmount(): void;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Base, PopupModel, PopupBaseViewModel
|
|
2
|
+
import { Base, PopupModel, PopupBaseViewModel } from "survey-core";
|
|
3
3
|
import { SurveyElementBase } from "../../reactquestion_element";
|
|
4
4
|
interface IPopupProps {
|
|
5
5
|
model: PopupModel;
|
|
@@ -38,6 +38,4 @@ export declare class PopupContainer extends SurveyElementBase<any, any> {
|
|
|
38
38
|
export declare class PopupDropdownContainer extends PopupContainer {
|
|
39
39
|
protected renderHeaderPopup(popupModel: PopupBaseViewModel): JSX.Element | null;
|
|
40
40
|
}
|
|
41
|
-
export declare function showModal(componentName: string, data: any, onApply: () => boolean, onCancel?: () => void, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): PopupBaseViewModel;
|
|
42
|
-
export declare function showDialog(dialogOptions: IDialogOptions, rootElement?: HTMLElement): PopupBaseViewModel;
|
|
43
41
|
export {};
|