File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -18,12 +18,15 @@ jQuery["fn"].extend({
18
18
PopupSurvey : doPopupSurvey ,
19
19
SurveyWindow : doPopupSurvey
20
20
} ) ;
21
+
21
22
function doPopupSurvey ( props : any ) : void {
22
23
return this . each ( function ( ) {
23
24
var model : Survey = props . model ;
24
25
const survey = React . createElement ( PopupSurvey , { ...props } ) ;
25
26
ReactDOM . render ( survey , this ) ;
27
+
26
28
// var popupSurvey = props.popupModel || new PopupSurvey(model);
29
+
27
30
// if (props.expanded !== undefined) {
28
31
// popupSurvey.isExpanded = props.expanded;
29
32
// }
@@ -42,8 +45,11 @@ function doPopupSurvey(props: any): void {
42
45
// popupSurvey.show();
43
46
} ) ;
44
47
}
48
+
45
49
SurveyModel . platform = "jquery" ;
50
+
46
51
export const preact : any = React ;
52
+
47
53
export * from "./jquery-ui-model" ;
48
54
export * from "./core-export" ;
49
55
Original file line number Diff line number Diff line change @@ -5,4 +5,6 @@ export { SurveyModel as Model } from "survey-core";
5
5
export * from "../utils/responsivity-manager" ;
6
6
export { unwrap } from "../utils/utils" ;
7
7
8
- import { checkLibraryVersion } from "survey-core" ;
8
+ import { checkLibraryVersion } from "survey-core" ;
9
+
10
+ checkLibraryVersion ( `${ process . env . VERSION } ` , "survey-react-ui" ) ;
Original file line number Diff line number Diff line change @@ -7,8 +7,7 @@ import { ReactQuestionFactory } from "./reactquestion_factory";
7
7
import { attachKey2click } from "./reactSurvey" ;
8
8
import { LoadingIndicatorComponent } from "./components/loading-indicator" ;
9
9
import { SurveyAction } from "./components/action-bar/action-bar-item" ;
10
- import { ReactElementFactory } from "./element-factory" ;
11
- import { SurveyFileChooseButton } from "./components/file/file-choose-button" ;
10
+ import { ReactElementFactory , SurveyFileChooseButton } from "../entries/react-ui-model" ;
12
11
13
12
export class SurveyQuestionFile extends SurveyQuestionElementBase {
14
13
constructor ( props : any ) {
You can’t perform that action at this time.
0 commit comments