survey-js-ui 3.2.6 → 3.2.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/README.md +21 -0
- package/fesm/survey-js-ui.mjs +85 -133
- package/fesm/survey-js-ui.mjs.map +1 -1
- package/package.json +7 -3
- package/survey-js-ui.js +85 -133
- package/survey-js-ui.js.map +1 -1
- package/survey-js-ui.min.js +2 -2
- package/typings/survey-js-ui/src/preact-replaced-vnodes.d.ts +12 -0
- package/typings/survey-react-ui/src/boolean-checkbox.d.ts +1 -1
- package/typings/survey-react-ui/src/components/survey-header/logo-image.d.ts +0 -4
- package/typings/survey-react-ui/src/components/survey-header/survey-header.d.ts +0 -1
- package/typings/survey-react-ui/src/image.d.ts +0 -2
- package/typings/survey-react-ui/src/imagepicker.d.ts +0 -4
- package/typings/survey-react-ui/src/reactquestion_element.d.ts +2 -2
- package/typings/survey-react-ui/src/reactquestion_html.d.ts +0 -4
- package/typings/survey-react-ui/src/row.d.ts +0 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface IPreactVNode {
|
|
2
|
+
__k?: Array<IPreactVNode> | null;
|
|
3
|
+
__c?: {
|
|
4
|
+
__v?: IPreactVNode;
|
|
5
|
+
} | null;
|
|
6
|
+
}
|
|
7
|
+
interface IPreactOptions {
|
|
8
|
+
vnode?: (vnode: IPreactVNode) => void;
|
|
9
|
+
__c?: (root: IPreactVNode, commitQueue: Array<any>) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function releaseReplacedVNodes(opts?: IPreactOptions): void;
|
|
12
|
+
export {};
|
|
@@ -2,5 +2,5 @@ import * as React from "react";
|
|
|
2
2
|
import { SurveyQuestionBoolean } from "./boolean";
|
|
3
3
|
export declare class SurveyQuestionBooleanCheckbox extends SurveyQuestionBoolean {
|
|
4
4
|
constructor(props: any);
|
|
5
|
-
protected renderElement(): React.JSX.Element;
|
|
5
|
+
protected renderElement(): React.JSX.Element | null;
|
|
6
6
|
}
|
|
@@ -7,10 +7,6 @@ interface ILogoImageProps {
|
|
|
7
7
|
export declare class LogoImage extends SurveyElementBase<ILogoImageProps, any> {
|
|
8
8
|
constructor(props: ILogoImageProps);
|
|
9
9
|
private get survey();
|
|
10
|
-
private reactOnStrChanged;
|
|
11
|
-
componentDidMount(): void;
|
|
12
|
-
componentDidUpdate(prevProps: any, prevState: any): void;
|
|
13
|
-
componentWillUnmount(): void;
|
|
14
10
|
renderElement(): React.JSX.Element;
|
|
15
11
|
}
|
|
16
12
|
export {};
|
|
@@ -10,7 +10,6 @@ export declare class SurveyHeader extends SurveyElementBase<ISurveyHeaderProps,
|
|
|
10
10
|
private get css();
|
|
11
11
|
private rootRef;
|
|
12
12
|
componentDidMount(): void;
|
|
13
|
-
componentWillUnmount(): void;
|
|
14
13
|
private renderTitle;
|
|
15
14
|
private renderLogoImage;
|
|
16
15
|
renderElement(): React.JSX.Element | null;
|
|
@@ -3,8 +3,6 @@ import { SurveyQuestionElementBase } from "./reactquestion_element";
|
|
|
3
3
|
import { QuestionImageModel } from "survey-core";
|
|
4
4
|
export declare class SurveyQuestionImage extends SurveyQuestionElementBase {
|
|
5
5
|
constructor(props: any);
|
|
6
|
-
componentDidMount(): void;
|
|
7
|
-
componentWillUnmount(): void;
|
|
8
6
|
protected get question(): QuestionImageModel;
|
|
9
7
|
protected renderElement(): React.JSX.Element;
|
|
10
8
|
}
|
|
@@ -14,10 +14,6 @@ export declare class SurveyQuestionImagePicker extends SurveyQuestionElementBase
|
|
|
14
14
|
export declare class SurveyQuestionImagePickerItem extends ReactSurveyElement {
|
|
15
15
|
constructor(props: any);
|
|
16
16
|
protected getStateElement(): any;
|
|
17
|
-
componentDidMount(): void;
|
|
18
|
-
componentWillUnmount(): void;
|
|
19
|
-
componentDidUpdate(prevProps: any, prevState: any): void;
|
|
20
|
-
private reactOnStrChanged;
|
|
21
17
|
protected get cssClasses(): any;
|
|
22
18
|
protected get item(): any;
|
|
23
19
|
protected get question(): any;
|
|
@@ -3,7 +3,6 @@ import { Base, PanelModel, LocalizableString, Question } from "survey-core";
|
|
|
3
3
|
import { ISurveyCreator } from "./reactquestion";
|
|
4
4
|
export declare class SurveyElementBase<P, S> extends React.Component<P, S> {
|
|
5
5
|
static renderLocString(locStr: LocalizableString, style?: any, key?: string): React.JSX.Element;
|
|
6
|
-
private allowUpdate;
|
|
7
6
|
private update;
|
|
8
7
|
private propertyAccessTracker;
|
|
9
8
|
static renderQuestionDescription(question: Question | PanelModel): React.JSX.Element;
|
|
@@ -13,10 +12,11 @@ export declare class SurveyElementBase<P, S> extends React.Component<P, S> {
|
|
|
13
12
|
componentDidMount(): void;
|
|
14
13
|
componentWillUnmount(): void;
|
|
15
14
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
|
15
|
+
private rerenderEventStateElements;
|
|
16
|
+
private syncStateElementsRerenderEvent;
|
|
16
17
|
private _allowComponentUpdate;
|
|
17
18
|
protected allowComponentUpdate(): void;
|
|
18
19
|
protected denyComponentUpdate(): void;
|
|
19
|
-
private prevStateElements;
|
|
20
20
|
shouldComponentUpdate(nextProps: any, nextState: any): boolean;
|
|
21
21
|
protected forceHiddenDependencies(): void;
|
|
22
22
|
render(): React.JSX.Element | null;
|
|
@@ -4,10 +4,6 @@ import { QuestionHtmlModel } from "survey-core";
|
|
|
4
4
|
export declare class SurveyQuestionHtml extends SurveyQuestionElementBase {
|
|
5
5
|
constructor(props: any);
|
|
6
6
|
protected get question(): QuestionHtmlModel;
|
|
7
|
-
componentDidMount(): void;
|
|
8
|
-
componentWillUnmount(): void;
|
|
9
|
-
componentDidUpdate(prevProps: any, prevState: any): void;
|
|
10
|
-
private reactOnStrChanged;
|
|
11
7
|
protected canRender(): boolean;
|
|
12
8
|
protected renderElement(): React.JSX.Element;
|
|
13
9
|
}
|
|
@@ -13,7 +13,6 @@ export declare class SurveyRow extends SurveyElementBase<any, any> {
|
|
|
13
13
|
protected canRender(): boolean;
|
|
14
14
|
protected renderElementContent(): React.JSX.Element;
|
|
15
15
|
protected renderElement(): React.JSX.Element;
|
|
16
|
-
private lazyRenderingTimeout;
|
|
17
16
|
componentDidMount(): void;
|
|
18
17
|
shouldComponentUpdate(nextProps: any, nextState: any): boolean;
|
|
19
18
|
componentDidUpdate(prevProps: any, prevState: any): void;
|