survey-react 1.9.120 → 1.9.121
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/defaultV2.css +2 -1
- package/defaultV2.css.map +1 -1
- package/defaultV2.min.css +2 -2
- package/modern.css +3 -1
- package/modern.css.map +1 -1
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/survey.css +1 -1
- package/survey.min.css +1 -1
- package/survey.react.d.ts +66 -37
- package/survey.react.js +228 -88
- package/survey.react.js.map +1 -1
- package/survey.react.min.js +3 -3
package/survey.react.d.ts
CHANGED
@@ -1022,18 +1022,6 @@ declare module "conditions" {
|
|
1022
1022
|
protected doOnComplete(res: any): void;
|
1023
1023
|
}
|
1024
1024
|
}
|
1025
|
-
declare module "rendererFactory" {
|
1026
|
-
import { Question } from "question";
|
1027
|
-
export class RendererFactory {
|
1028
|
-
static Instance: RendererFactory;
|
1029
|
-
private renderersHash;
|
1030
|
-
unregisterRenderer(questionType: string, rendererAs: string): void;
|
1031
|
-
registerRenderer(questionType: string, renderAs: string, renderer: any): void;
|
1032
|
-
getRenderer(questionType: string, renderAs: string): any;
|
1033
|
-
getRendererByQuestion(question: Question): any;
|
1034
|
-
clear(): void;
|
1035
|
-
}
|
1036
|
-
}
|
1037
1025
|
declare module "utils/cssClassBuilder" {
|
1038
1026
|
export class CssClassBuilder {
|
1039
1027
|
private classes;
|
@@ -1204,7 +1192,7 @@ declare module "actions/container" {
|
|
1204
1192
|
addAction(val: IAction, sortByVisibleIndex?: boolean): T;
|
1205
1193
|
private sortItems;
|
1206
1194
|
setItems(items: Array<IAction>, sortByVisibleIndex?: boolean): void;
|
1207
|
-
initResponsivityManager(container: HTMLDivElement): void;
|
1195
|
+
initResponsivityManager(container: HTMLDivElement, delayedUpdateFunction?: (callback: () => void) => void): void;
|
1208
1196
|
resetResponsivityManager(): void;
|
1209
1197
|
getActionById(id: string): T;
|
1210
1198
|
dispose(): void;
|
@@ -1614,6 +1602,7 @@ declare module "utils/responsivity-manager" {
|
|
1614
1602
|
private model;
|
1615
1603
|
private itemsSelector;
|
1616
1604
|
private dotsItemSize;
|
1605
|
+
private delayedUpdateFunction?;
|
1617
1606
|
private resizeObserver;
|
1618
1607
|
private isInitialized;
|
1619
1608
|
protected minDimensionConst: number;
|
@@ -1623,11 +1612,12 @@ declare module "utils/responsivity-manager" {
|
|
1623
1612
|
private dotsSizeConst;
|
1624
1613
|
protected recalcMinDimensionConst: boolean;
|
1625
1614
|
getComputedStyle: (elt: Element) => CSSStyleDeclaration;
|
1626
|
-
constructor(container: HTMLDivElement, model: AdaptiveActionContainer, itemsSelector: string, dotsItemSize?: number);
|
1615
|
+
constructor(container: HTMLDivElement, model: AdaptiveActionContainer, itemsSelector: string, dotsItemSize?: number, delayedUpdateFunction?: (callback: () => void) => void);
|
1627
1616
|
protected getDimensions(element: HTMLElement): IDimensions;
|
1628
1617
|
protected getAvailableSpace(): number;
|
1629
1618
|
protected calcItemSize(item: HTMLDivElement): number;
|
1630
1619
|
private calcMinDimension;
|
1620
|
+
private getRenderedVisibleActionsCount;
|
1631
1621
|
private calcItemsSizes;
|
1632
1622
|
protected calcActionDimensions(currentAction: Action, item: HTMLDivElement): void;
|
1633
1623
|
private get isContainerVisible();
|
@@ -1635,7 +1625,7 @@ declare module "utils/responsivity-manager" {
|
|
1635
1625
|
dispose(): void;
|
1636
1626
|
}
|
1637
1627
|
export class VerticalResponsivityManager extends ResponsivityManager {
|
1638
|
-
constructor(container: HTMLDivElement, model: AdaptiveActionContainer, itemsSelector: string, dotsItemSize?: number, minDimension?: number);
|
1628
|
+
constructor(container: HTMLDivElement, model: AdaptiveActionContainer, itemsSelector: string, dotsItemSize?: number, minDimension?: number, delayedUpdateFunction?: (callback: () => void) => void);
|
1639
1629
|
protected getDimensions(): IDimensions;
|
1640
1630
|
protected getAvailableSpace(): number;
|
1641
1631
|
protected calcItemSize(item: HTMLDivElement): number;
|
@@ -1664,7 +1654,7 @@ declare module "actions/adaptive-container" {
|
|
1664
1654
|
protected getRenderedActions(): Array<T>;
|
1665
1655
|
protected raiseUpdate(isResetInitialized: boolean): void;
|
1666
1656
|
fit(dimension: number, dotsItemSize: number): void;
|
1667
|
-
initResponsivityManager(container: HTMLDivElement): void;
|
1657
|
+
initResponsivityManager(container: HTMLDivElement, delayedUpdateFunction?: (callback: () => void) => void): void;
|
1668
1658
|
resetResponsivityManager(): void;
|
1669
1659
|
setActionsMode(mode: actionModeType): void;
|
1670
1660
|
dispose(): void;
|
@@ -2920,6 +2910,7 @@ declare module "question_custom" {
|
|
2920
2910
|
constructor(name: string, customQuestion: ComponentQuestionJSON);
|
2921
2911
|
getType(): string;
|
2922
2912
|
locStrsChanged(): void;
|
2913
|
+
localeChanged(): void;
|
2923
2914
|
protected createWrapper(): void;
|
2924
2915
|
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
2925
2916
|
itemValuePropertyChanged(item: ItemValue, name: string, oldValue: any, newValue: any): void;
|
@@ -3490,7 +3481,7 @@ declare module "panel" {
|
|
3490
3481
|
set visible(value: boolean);
|
3491
3482
|
onHidingContent(): void;
|
3492
3483
|
protected onVisibleChanged(): void;
|
3493
|
-
protected notifyStateChanged(): void;
|
3484
|
+
protected notifyStateChanged(prevState: string): void;
|
3494
3485
|
/**
|
3495
3486
|
* Returns `true` if the panel/page is visible or the survey is currently in design mode.
|
3496
3487
|
*
|
@@ -3671,7 +3662,7 @@ declare module "panel" {
|
|
3671
3662
|
*/
|
3672
3663
|
get no(): string;
|
3673
3664
|
protected setNo(visibleIndex: number): void;
|
3674
|
-
protected notifyStateChanged(): void;
|
3665
|
+
protected notifyStateChanged(prevState: string): void;
|
3675
3666
|
protected createLocTitleProperty(): LocalizableString;
|
3676
3667
|
protected beforeSetVisibleIndex(index: number): number;
|
3677
3668
|
protected getPanelStartIndex(index: number): number;
|
@@ -8342,15 +8333,16 @@ declare module "question_multipletext" {
|
|
8342
8333
|
* }
|
8343
8334
|
* ```
|
8344
8335
|
*
|
8345
|
-
* To enable Markdown support for the `title` property, implement Markdown-to-HTML conversion in the [onTextMarkdown](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onTextMarkdown) event handler. For an example, refer to the following demo: [Convert Markdown to HTML with Showdown](https://surveyjs.io/form-library/examples/edit-survey-questions-markdown/).
|
8336
|
+
* To enable Markdown support for the `title` property, implement Markdown-to-HTML conversion in the [`onTextMarkdown`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onTextMarkdown) event handler. For an example, refer to the following demo: [Convert Markdown to HTML with Showdown](https://surveyjs.io/form-library/examples/edit-survey-questions-markdown/).
|
8337
|
+
* @see itemTitleWidth
|
8346
8338
|
* @see addItem
|
8347
8339
|
*/
|
8348
8340
|
get items(): Array<MultipleTextItemModel>;
|
8349
8341
|
set items(val: Array<MultipleTextItemModel>);
|
8350
8342
|
/**
|
8351
8343
|
* Adds a new input item.
|
8352
|
-
* @param name An item name
|
8353
|
-
* @param title (Optional) An item title
|
8344
|
+
* @param name An item name.
|
8345
|
+
* @param title (Optional) An item title.
|
8354
8346
|
* @see items
|
8355
8347
|
*/
|
8356
8348
|
addItem(name: string, title?: string): MultipleTextItemModel;
|
@@ -8389,6 +8381,15 @@ declare module "question_multipletext" {
|
|
8389
8381
|
*/
|
8390
8382
|
get itemSize(): number;
|
8391
8383
|
set itemSize(val: number);
|
8384
|
+
/**
|
8385
|
+
* Specifies a uniform width for all text box titles. Accepts CSS values.
|
8386
|
+
*
|
8387
|
+
* Default value: `""` (the width of each title depends on the title length)
|
8388
|
+
* @see items
|
8389
|
+
* @see itemErrorLocation
|
8390
|
+
*/
|
8391
|
+
get itemTitleWidth(): string;
|
8392
|
+
set itemTitleWidth(val: string);
|
8392
8393
|
rows: Array<MutlipleTextRow>;
|
8393
8394
|
protected onRowCreated(row: MutlipleTextRow): MutlipleTextRow;
|
8394
8395
|
private calcVisibleRows;
|
@@ -11233,7 +11234,7 @@ declare module "survey" {
|
|
11233
11234
|
startMovingQuestion(): void;
|
11234
11235
|
stopMovingQuestion(): void;
|
11235
11236
|
get isQuestionDragging(): boolean;
|
11236
|
-
|
11237
|
+
needRenderIcons: boolean;
|
11237
11238
|
private skippedPages;
|
11238
11239
|
/**
|
11239
11240
|
* Focuses a question with a specified name. Switches the current page if needed.
|
@@ -11426,7 +11427,7 @@ declare module "survey-element" {
|
|
11426
11427
|
*/
|
11427
11428
|
get state(): string;
|
11428
11429
|
set state(val: string);
|
11429
|
-
protected notifyStateChanged(): void;
|
11430
|
+
protected notifyStateChanged(prevState: string): void;
|
11430
11431
|
/**
|
11431
11432
|
* Returns `true` if the survey element is collapsed.
|
11432
11433
|
* @see state
|
@@ -11752,6 +11753,18 @@ declare module "questionCustomWidgets" {
|
|
11752
11753
|
getCustomWidget(question: IQuestion): QuestionCustomWidget;
|
11753
11754
|
}
|
11754
11755
|
}
|
11756
|
+
declare module "rendererFactory" {
|
11757
|
+
import { Question } from "question";
|
11758
|
+
export class RendererFactory {
|
11759
|
+
static Instance: RendererFactory;
|
11760
|
+
private renderersHash;
|
11761
|
+
unregisterRenderer(questionType: string, rendererAs: string): void;
|
11762
|
+
registerRenderer(questionType: string, renderAs: string, renderer: any): void;
|
11763
|
+
getRenderer(questionType: string, renderAs: string): any;
|
11764
|
+
getRendererByQuestion(question: Question): any;
|
11765
|
+
clear(): void;
|
11766
|
+
}
|
11767
|
+
}
|
11755
11768
|
declare module "question" {
|
11756
11769
|
import { HashTable } from "helpers";
|
11757
11770
|
import { EventBase } from "base";
|
@@ -11889,7 +11902,7 @@ declare module "question" {
|
|
11889
11902
|
get visible(): boolean;
|
11890
11903
|
set visible(val: boolean);
|
11891
11904
|
protected onVisibleChanged(): void;
|
11892
|
-
protected notifyStateChanged(): void;
|
11905
|
+
protected notifyStateChanged(prevState: string): void;
|
11893
11906
|
private updateIsVisibleProp;
|
11894
11907
|
/**
|
11895
11908
|
* Specifies whether to use display names for question values in placeholders.
|
@@ -14092,6 +14105,9 @@ declare module "settings" {
|
|
14092
14105
|
root: Document | ShadowRoot;
|
14093
14106
|
rootElement: HTMLElement | ShadowRoot;
|
14094
14107
|
popupMountContainer: HTMLElement | string;
|
14108
|
+
/**
|
14109
|
+
* @deprecated
|
14110
|
+
*/
|
14095
14111
|
svgMountContainer: HTMLElement | string;
|
14096
14112
|
stylesSheetsMountContainer: HTMLElement;
|
14097
14113
|
};
|
@@ -15264,8 +15280,12 @@ declare module "question_checkbox" {
|
|
15264
15280
|
protected validateItemValues(itemValues: Array<ItemValue>): Array<ItemValue>;
|
15265
15281
|
protected getAnswerCorrectIgnoreOrder(): boolean;
|
15266
15282
|
protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean): void;
|
15283
|
+
protected onVisibleChoicesChanged(): void;
|
15267
15284
|
protected onEnableItemCallBack(item: ItemValue): boolean;
|
15268
15285
|
protected onAfterRunItemsEnableCondition(): void;
|
15286
|
+
private updateSelectAllItemProps;
|
15287
|
+
private getSelectAllEnabled;
|
15288
|
+
private getVisibleEnableItems;
|
15269
15289
|
private shouldCheckMaxSelectedChoices;
|
15270
15290
|
private checkMinSelectedChoicesUnreached;
|
15271
15291
|
protected getItemClassCore(item: any, options: any): string;
|
@@ -17553,7 +17573,6 @@ declare module "svgbundle" {
|
|
17553
17573
|
registerIconFromSvg(iconId: string, iconSvg: string, iconPrefix?: string): boolean;
|
17554
17574
|
registerIconsFromFolder(r: any): void;
|
17555
17575
|
iconsRenderedHtml(): string;
|
17556
|
-
renderIcons(): void;
|
17557
17576
|
}
|
17558
17577
|
export var SvgRegistry: SvgIconRegistry;
|
17559
17578
|
export var SvgBundleViewModel: any;
|
@@ -24246,18 +24265,6 @@ declare module "react/components/survey-header/survey-header" {
|
|
24246
24265
|
render(): JSX.Element | null;
|
24247
24266
|
}
|
24248
24267
|
}
|
24249
|
-
declare module "react/reacttimerpanel" {
|
24250
|
-
import { Base, SurveyTimerModel } from "entries/core";
|
24251
|
-
import { ReactSurveyElement } from "react/reactquestion_element";
|
24252
|
-
export class SurveyTimerPanel extends ReactSurveyElement {
|
24253
|
-
constructor(props: any);
|
24254
|
-
protected getStateElement(): Base;
|
24255
|
-
protected get timerModel(): SurveyTimerModel;
|
24256
|
-
private readonly circleLength;
|
24257
|
-
private get progress();
|
24258
|
-
render(): JSX.Element | null;
|
24259
|
-
}
|
24260
|
-
}
|
24261
24268
|
declare module "react/components/brand-info" {
|
24262
24269
|
import React from "react";
|
24263
24270
|
export class BrandInfo extends React.Component<any, any> {
|
@@ -24282,6 +24289,15 @@ declare module "react/components/components-container" {
|
|
24282
24289
|
render(): JSX.Element | null;
|
24283
24290
|
}
|
24284
24291
|
}
|
24292
|
+
declare module "react/svgbundle" {
|
24293
|
+
import React from "react";
|
24294
|
+
export class SvgBundleComponent extends React.Component {
|
24295
|
+
private containerRef;
|
24296
|
+
constructor(props: any);
|
24297
|
+
componentDidMount(): void;
|
24298
|
+
render(): JSX.Element;
|
24299
|
+
}
|
24300
|
+
}
|
24285
24301
|
declare module "react/reactSurvey" {
|
24286
24302
|
import { Base, Question, PageModel, SurveyError, SurveyModel, IAttachKey2clickOptions } from "entries/core";
|
24287
24303
|
import { ISurveyCreator } from "react/reactquestion";
|
@@ -24336,6 +24352,18 @@ declare module "react/reactSurveyNavigationBase" {
|
|
24336
24352
|
componentWillUnmount(): void;
|
24337
24353
|
}
|
24338
24354
|
}
|
24355
|
+
declare module "react/reacttimerpanel" {
|
24356
|
+
import { Base, SurveyTimerModel } from "entries/core";
|
24357
|
+
import { ReactSurveyElement } from "react/reactquestion_element";
|
24358
|
+
export class SurveyTimerPanel extends ReactSurveyElement {
|
24359
|
+
constructor(props: any);
|
24360
|
+
protected getStateElement(): Base;
|
24361
|
+
protected get timerModel(): SurveyTimerModel;
|
24362
|
+
private readonly circleLength;
|
24363
|
+
private get progress();
|
24364
|
+
render(): JSX.Element | null;
|
24365
|
+
}
|
24366
|
+
}
|
24339
24367
|
declare module "react/panel" {
|
24340
24368
|
import { SurveyPanelBase } from "react/panel-base";
|
24341
24369
|
import { PanelModel } from "entries/core";
|
@@ -25301,6 +25329,7 @@ declare module "entries/react-ui-model" {
|
|
25301
25329
|
export { SurveyLocStringViewer } from "react/string-viewer";
|
25302
25330
|
export { SurveyLocStringEditor } from "react/string-editor";
|
25303
25331
|
export { LoadingIndicatorComponent } from "react/components/loading-indicator";
|
25332
|
+
export { SvgBundleComponent } from "react/svgbundle";
|
25304
25333
|
}
|
25305
25334
|
declare module "entries/react" {
|
25306
25335
|
export * from "entries/core";
|