survey-react-ui 1.8.77 → 1.9.1
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 +3 -3
- package/survey-react-ui.d.ts +86 -24
- package/survey-react-ui.js +266 -200
- package/survey-react-ui.min.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-react-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.1",
|
|
4
4
|
"description": "survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Survey",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"typings": "survey-react-ui.d.ts",
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"survey-core": "*",
|
|
29
|
-
"react": "^17.0.1",
|
|
30
|
-
"react-dom": "^17.0.1"
|
|
29
|
+
"react": "^16.5.0 || ^17.0.1",
|
|
30
|
+
"react-dom": "^16.5.0 || ^17.0.1"
|
|
31
31
|
}
|
|
32
32
|
}
|
package/survey-react-ui.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*Type definitions for Survey JavaScript library v1.
|
|
1
|
+
/*Type definitions for Survey JavaScript library v1.9.1
|
|
2
2
|
Copyright (c) 2015-2021 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
3
3
|
Definitions by: Devsoft Baltic OÜ <https://github.com/surveyjs/>
|
|
4
4
|
*/
|
|
@@ -219,26 +219,35 @@ export declare class SurveyElementErrors extends ReactSurveyElement {
|
|
|
219
219
|
protected get element(): SurveyElement;
|
|
220
220
|
protected get location(): string;
|
|
221
221
|
protected canRender(): boolean;
|
|
222
|
+
componentDidUpdate(prevProps: any, prevState: any): void;
|
|
223
|
+
componentWillUnmount(): void;
|
|
222
224
|
protected renderElement(): JSX.Element;
|
|
223
225
|
}
|
|
224
|
-
export declare class
|
|
226
|
+
export declare abstract class SurveyQuestionAndErrorsWrapped extends ReactSurveyElement {
|
|
225
227
|
[index: string]: any;
|
|
226
|
-
protected cellRef: React.RefObject<HTMLTableCellElement>;
|
|
227
228
|
constructor(props: any);
|
|
228
229
|
protected getStateElement(): Base;
|
|
229
|
-
protected get itemCss(): string;
|
|
230
230
|
protected get question(): Question;
|
|
231
231
|
protected get creator(): ISurveyCreator;
|
|
232
232
|
protected getQuestion(): Question;
|
|
233
|
+
protected get itemCss(): string;
|
|
233
234
|
componentDidMount(): void;
|
|
234
|
-
componentWillUnmount(): void;
|
|
235
235
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
|
236
236
|
protected doAfterRender(): void;
|
|
237
237
|
protected canRender(): boolean;
|
|
238
|
-
protected
|
|
238
|
+
protected renderErrors(errorsLocation: string): JSX.Element;
|
|
239
|
+
protected renderContent(): JSX.Element;
|
|
240
|
+
protected abstract renderElement(): JSX.Element;
|
|
239
241
|
protected getShowErrors(): boolean;
|
|
240
|
-
protected getCellStyle(): any;
|
|
241
242
|
protected renderQuestion(): JSX.Element;
|
|
243
|
+
}
|
|
244
|
+
export declare class SurveyQuestionAndErrorsCell extends SurveyQuestionAndErrorsWrapped {
|
|
245
|
+
[index: string]: any;
|
|
246
|
+
protected cellRef: React.RefObject<HTMLTableCellElement>;
|
|
247
|
+
constructor(props: any);
|
|
248
|
+
componentWillUnmount(): void;
|
|
249
|
+
protected renderElement(): JSX.Element;
|
|
250
|
+
protected getCellStyle(): any;
|
|
242
251
|
protected getHeaderText(): string;
|
|
243
252
|
protected wrapCell(cell: QuestionMatrixDropdownRenderedCell, element: JSX.Element): JSX.Element;
|
|
244
253
|
}
|
|
@@ -396,8 +405,12 @@ export declare class SurveyQuestionMultipleText extends SurveyQuestionElementBas
|
|
|
396
405
|
constructor(props: any);
|
|
397
406
|
protected get question(): QuestionMultipleTextModel;
|
|
398
407
|
protected renderElement(): JSX.Element;
|
|
408
|
+
protected renderItemTooltipError(item: MultipleTextItemModel, cssClasses: any): JSX.Element;
|
|
399
409
|
protected renderRow(rowIndex: number, items: Array<MultipleTextItemModel>, cssClasses: any): JSX.Element;
|
|
400
410
|
}
|
|
411
|
+
export declare class SurveyMultipleTextItemEditor extends SurveyQuestionAndErrorsWrapped {
|
|
412
|
+
protected renderElement(): JSX.Element;
|
|
413
|
+
}
|
|
401
414
|
|
|
402
415
|
export declare class SurveyQuestionRadiogroup extends SurveyQuestionElementBase {
|
|
403
416
|
constructor(props: any);
|
|
@@ -424,6 +437,7 @@ export declare class SurveyQuestionRadioItem extends ReactSurveyElement {
|
|
|
424
437
|
|
|
425
438
|
export declare class SurveyQuestionText extends SurveyQuestionUncontrolledElement<QuestionTextModel> {
|
|
426
439
|
constructor(props: any);
|
|
440
|
+
protected renderInput(): JSX.Element;
|
|
427
441
|
protected renderElement(): JSX.Element;
|
|
428
442
|
}
|
|
429
443
|
|
|
@@ -500,8 +514,8 @@ export declare class SurveyQuestionPanelDynamic extends SurveyQuestionElementBas
|
|
|
500
514
|
handleOnRangeChange(event: any): void;
|
|
501
515
|
protected renderElement(): JSX.Element;
|
|
502
516
|
protected renderNavigator(): JSX.Element;
|
|
503
|
-
protected rendrerPrevButton(
|
|
504
|
-
protected rendrerNextButton(
|
|
517
|
+
protected rendrerPrevButton(): JSX.Element;
|
|
518
|
+
protected rendrerNextButton(): JSX.Element;
|
|
505
519
|
protected renderRange(): JSX.Element;
|
|
506
520
|
protected renderAddRowButton(): JSX.Element;
|
|
507
521
|
protected renderNavigatorV2(): JSX.Element;
|
|
@@ -666,10 +680,12 @@ export declare class PopupContainer extends SurveyElementBase<any, any> {
|
|
|
666
680
|
renderPointer(): JSX.Element;
|
|
667
681
|
renderHeader(): JSX.Element;
|
|
668
682
|
renderContent(): JSX.Element;
|
|
683
|
+
renderCancelButton(): JSX.Element;
|
|
684
|
+
renderApplyButton(): JSX.Element;
|
|
669
685
|
renderFooter(): JSX.Element;
|
|
670
686
|
render(): JSX.Element;
|
|
671
687
|
}
|
|
672
|
-
export declare function showModal(componentName: string, data: any, onApply: () => boolean, onCancel?: () => void, cssClass?: string, title?: string): void;
|
|
688
|
+
export declare function showModal(componentName: string, data: any, onApply: () => boolean, onCancel?: () => void, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): void;
|
|
673
689
|
export {};
|
|
674
690
|
|
|
675
691
|
interface IListProps {
|
|
@@ -796,6 +812,7 @@ interface IDimensions {
|
|
|
796
812
|
export declare class ResponsivityManager {
|
|
797
813
|
protected container: HTMLDivElement;
|
|
798
814
|
protected minDimensionConst: number;
|
|
815
|
+
protected recalcMinDimensionConst: boolean;
|
|
799
816
|
getComputedStyle: (elt: Element) => CSSStyleDeclaration;
|
|
800
817
|
constructor(container: HTMLDivElement, model: AdaptiveActionContainer, itemsSelector: string, dotsItemSize?: number);
|
|
801
818
|
protected getDimensions(element: HTMLElement): IDimensions;
|
|
@@ -821,7 +838,7 @@ declare function isElementVisible(element: HTMLElement, threshold?: number): boo
|
|
|
821
838
|
declare function findScrollableParent(element: HTMLElement): HTMLElement;
|
|
822
839
|
declare function scrollElementByChildId(id: string): void;
|
|
823
840
|
declare function getIconNameFromProxy(iconName: string): string;
|
|
824
|
-
declare function createSvg(size: number, width: number, height: number, iconName: string, svgElem: any): void;
|
|
841
|
+
declare function createSvg(size: number | string, width: number, height: number, iconName: string, svgElem: any): void;
|
|
825
842
|
export declare function unwrap<T>(value: T | (() => T)): T;
|
|
826
843
|
export declare function getSize(value: any): any;
|
|
827
844
|
declare function doKey2ClickUp(evt: KeyboardEvent, options?: {
|
|
@@ -913,6 +930,7 @@ export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
|
|
|
913
930
|
protected onEnableItemCallBack(item: ItemValue): boolean;
|
|
914
931
|
protected onAfterRunItemsEnableCondition(): void;
|
|
915
932
|
protected getItemClassCore(item: any, options: any): string;
|
|
933
|
+
updateValueFromSurvey(newValue: any): void;
|
|
916
934
|
protected setNewValue(newValue: any): void;
|
|
917
935
|
protected getIsMultipleValue(): boolean;
|
|
918
936
|
protected getCommentFromValue(newValue: any): string;
|
|
@@ -936,7 +954,6 @@ export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
|
|
|
936
954
|
protected renderedValueFromDataCore(val: any): any;
|
|
937
955
|
protected rendredValueToDataCore(val: any): any;
|
|
938
956
|
get checkBoxSvgPath(): string;
|
|
939
|
-
getItemId(item: ItemValue): string;
|
|
940
957
|
}
|
|
941
958
|
|
|
942
959
|
export declare class Bindings {
|
|
@@ -1091,6 +1108,7 @@ export declare class Base {
|
|
|
1091
1108
|
* @param val new property value
|
|
1092
1109
|
*/
|
|
1093
1110
|
setPropertyValue(name: string, val: any): void;
|
|
1111
|
+
protected setArrayPropertyDirectly(name: string, val: any, sendNotification?: boolean): void;
|
|
1094
1112
|
protected setPropertyValueDirectly(name: string, val: any): void;
|
|
1095
1113
|
protected clearPropertyValue(name: string): void;
|
|
1096
1114
|
onPropertyValueChangedCallback(name: string, oldValue: any, newValue: any, sender: Base, arrayChanges: ArrayChanges): void;
|
|
@@ -1125,7 +1143,7 @@ export declare class Base {
|
|
|
1125
1143
|
*/
|
|
1126
1144
|
unRegisterFunctionOnPropertiesValueChanged(names: Array<string>, key?: string): void;
|
|
1127
1145
|
createCustomLocalizableObj(name: string): void;
|
|
1128
|
-
protected createLocalizableString(name: string, owner: ILocalizableOwner, useMarkDown?: boolean,
|
|
1146
|
+
protected createLocalizableString(name: string, owner: ILocalizableOwner, useMarkDown?: boolean, defaultStr?: boolean | string): LocalizableString;
|
|
1129
1147
|
getLocalizableString(name: string): LocalizableString;
|
|
1130
1148
|
getLocalizableStringText(name: string, defaultStr?: string): string;
|
|
1131
1149
|
setLocalizableStringText(name: string, value: string): void;
|
|
@@ -1389,9 +1407,7 @@ export declare class QuestionSelectBase extends Question {
|
|
|
1389
1407
|
/**
|
|
1390
1408
|
* Use this property to set the place holder text for other or comment field .
|
|
1391
1409
|
*/
|
|
1392
|
-
|
|
1393
|
-
set otherPlaceHolder(val: string);
|
|
1394
|
-
get locOtherPlaceHolder(): LocalizableString;
|
|
1410
|
+
otherPlaceHolder: string;
|
|
1395
1411
|
/**
|
|
1396
1412
|
* The text that shows when the other item is choosed by the other input is empty.
|
|
1397
1413
|
*/
|
|
@@ -1480,6 +1496,13 @@ export declare class QuestionSelectBase extends Question {
|
|
|
1480
1496
|
choicesLoaded(): void;
|
|
1481
1497
|
getItemValueWrapperComponentName(item: ItemValue): string;
|
|
1482
1498
|
getItemValueWrapperComponentData(item: ItemValue): any;
|
|
1499
|
+
ariaItemChecked(item: ItemValue): "true" | "false";
|
|
1500
|
+
isOtherItem(item: ItemValue): boolean;
|
|
1501
|
+
get itemSvgIcon(): string;
|
|
1502
|
+
ariaItemLabel(item: ItemValue): string;
|
|
1503
|
+
getItemId(item: ItemValue): string;
|
|
1504
|
+
get questionName(): string;
|
|
1505
|
+
getItemEnabled(item: ItemValue): any;
|
|
1483
1506
|
}
|
|
1484
1507
|
/**
|
|
1485
1508
|
* A base class for checkbox and radiogroup questions. It introduced a colCount property.
|
|
@@ -1495,8 +1518,6 @@ export declare class QuestionCheckboxBase extends QuestionSelectBase {
|
|
|
1495
1518
|
protected onParentChanged(): void;
|
|
1496
1519
|
protected onParentQuestionChanged(): void;
|
|
1497
1520
|
protected getSearchableItemValueKeys(keys: Array<string>): void;
|
|
1498
|
-
getItemEnabled(item: ItemValue): any;
|
|
1499
|
-
isOtherItem(item: ItemValue): boolean;
|
|
1500
1521
|
}
|
|
1501
1522
|
|
|
1502
1523
|
export interface ILocalizableOwner {
|
|
@@ -1846,6 +1867,7 @@ export interface ISurvey extends ITextProcessor, ISurveyErrorOwner {
|
|
|
1846
1867
|
requiredText: string;
|
|
1847
1868
|
beforeSettingQuestionErrors(question: IQuestion, errors: Array<SurveyError>): void;
|
|
1848
1869
|
beforeSettingPanelErrors(question: IPanel, errors: Array<SurveyError>): void;
|
|
1870
|
+
getSurveyErrorCustomText(obj: Base, text: string, error: SurveyError): string;
|
|
1849
1871
|
getElementTitleTagName(element: Base, tagName: string): string;
|
|
1850
1872
|
questionTitlePattern: string;
|
|
1851
1873
|
getUpdatedQuestionTitle(question: IQuestion, title: string): string;
|
|
@@ -2086,13 +2108,14 @@ export declare class PopupModel<T = any> extends Base {
|
|
|
2086
2108
|
onShow: () => void;
|
|
2087
2109
|
cssClass: string;
|
|
2088
2110
|
title: string;
|
|
2111
|
+
displayMode: "popup" | "overlay";
|
|
2089
2112
|
constructor(contentComponentName: string, contentComponentData: T, verticalPosition?: VerticalPosition, horizontalPosition?: HorizontalPosition, showPointer?: boolean, isModal?: boolean, onCancel?: () => void, onApply?: () => boolean, onHide?: () => void, onShow?: () => void, cssClass?: string, title?: string);
|
|
2090
2113
|
get isVisible(): boolean;
|
|
2091
2114
|
set isVisible(value: boolean);
|
|
2092
2115
|
toggleVisibility(): void;
|
|
2093
2116
|
onVisibilityChanged: (isVisible: boolean) => void;
|
|
2094
2117
|
}
|
|
2095
|
-
export declare function createPopupModalViewModel(componentName: string, data: any, onApply: () => boolean, onCancel?: () => void, onHide?: () => void, onShow?: () => void, cssClass?: string, title?: string): PopupBaseViewModel;
|
|
2118
|
+
export declare function createPopupModalViewModel(componentName: string, data: any, onApply: () => boolean, onCancel?: () => void, onHide?: () => void, onShow?: () => void, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): PopupBaseViewModel;
|
|
2096
2119
|
export declare class PopupBaseViewModel extends Base {
|
|
2097
2120
|
targetElement?: HTMLElement;
|
|
2098
2121
|
top: string;
|
|
@@ -2110,6 +2133,8 @@ export declare class PopupBaseViewModel extends Base {
|
|
|
2110
2133
|
get contentComponentData(): any;
|
|
2111
2134
|
get showPointer(): boolean;
|
|
2112
2135
|
get isModal(): boolean;
|
|
2136
|
+
get showFooter(): boolean;
|
|
2137
|
+
get isOverlay(): boolean;
|
|
2113
2138
|
get styleClass(): string;
|
|
2114
2139
|
onKeyDown(event: any): void;
|
|
2115
2140
|
updateOnShowing(): void;
|
|
@@ -2176,6 +2201,7 @@ export interface IAction {
|
|
|
2176
2201
|
* Set this property to true to activate the toolbar item (page)
|
|
2177
2202
|
*/
|
|
2178
2203
|
active?: boolean;
|
|
2204
|
+
pressed?: boolean;
|
|
2179
2205
|
/**
|
|
2180
2206
|
* Toolbar item template name
|
|
2181
2207
|
*/
|
|
@@ -2209,6 +2235,10 @@ export interface IAction {
|
|
|
2209
2235
|
* Set it to true to make the tabIndex -1 to disable keyboard navigation to this item
|
|
2210
2236
|
*/
|
|
2211
2237
|
disableTabStop?: boolean;
|
|
2238
|
+
/**
|
|
2239
|
+
* Set it to false to force action "large" mode even if has icon and does not fit to action bar space
|
|
2240
|
+
*/
|
|
2241
|
+
disableShrink?: boolean;
|
|
2212
2242
|
/**
|
|
2213
2243
|
* Action button display mode
|
|
2214
2244
|
*/
|
|
@@ -2235,12 +2265,14 @@ export declare class Action extends Base implements IAction {
|
|
|
2235
2265
|
popupModel: any;
|
|
2236
2266
|
needSeparator: boolean;
|
|
2237
2267
|
active: boolean;
|
|
2268
|
+
pressed: boolean;
|
|
2238
2269
|
template: string;
|
|
2239
2270
|
component: string;
|
|
2240
2271
|
items: any;
|
|
2241
2272
|
visibleIndex: number;
|
|
2242
2273
|
mode: "large" | "small" | "popup";
|
|
2243
2274
|
disableTabStop: boolean;
|
|
2275
|
+
disableShrink: boolean;
|
|
2244
2276
|
get disabled(): boolean;
|
|
2245
2277
|
get hasTitle(): boolean;
|
|
2246
2278
|
get isVisible(): boolean;
|
|
@@ -2334,9 +2366,9 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
|
2334
2366
|
/**
|
|
2335
2367
|
* A11Y properties
|
|
2336
2368
|
*/
|
|
2337
|
-
get ariaRequired():
|
|
2369
|
+
get ariaRequired(): "true" | "false";
|
|
2338
2370
|
get ariaLabel(): string;
|
|
2339
|
-
get ariaInvalid():
|
|
2371
|
+
get ariaInvalid(): "true" | "false";
|
|
2340
2372
|
get ariaDescribedBy(): string;
|
|
2341
2373
|
/**
|
|
2342
2374
|
* Get is question ready to use
|
|
@@ -2563,6 +2595,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
|
2563
2595
|
*/
|
|
2564
2596
|
get renderWidth(): string;
|
|
2565
2597
|
set renderWidth(val: string);
|
|
2598
|
+
get renderCssRoot(): string;
|
|
2566
2599
|
/**
|
|
2567
2600
|
* Set it different from 0 to increase the left padding.
|
|
2568
2601
|
*/
|
|
@@ -2629,6 +2662,8 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
|
2629
2662
|
*/
|
|
2630
2663
|
get isReadOnly(): boolean;
|
|
2631
2664
|
get isInputReadOnly(): boolean;
|
|
2665
|
+
get renderedInputReadOnly(): string;
|
|
2666
|
+
get renderedInputDisabled(): string;
|
|
2632
2667
|
protected onReadOnlyChanged(): void;
|
|
2633
2668
|
/**
|
|
2634
2669
|
* An expression that returns true or false. If it returns false the Question becomes read only and an end-user will not able to answer on the qustion. The library runs the expression on survey start and on changing a question value. If the property is empty then readOnly property is used.
|
|
@@ -2675,6 +2710,10 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
|
2675
2710
|
createValueCopy(): any;
|
|
2676
2711
|
protected getUnbindValue(value: any): any;
|
|
2677
2712
|
protected isValueSurveyElement(val: any): boolean;
|
|
2713
|
+
/**
|
|
2714
|
+
* Return true if there is a parent (page or panel) and it is visible
|
|
2715
|
+
*/
|
|
2716
|
+
get isParentVisible(): boolean;
|
|
2678
2717
|
clearValueIfInvisible(): void;
|
|
2679
2718
|
get displayValue(): any;
|
|
2680
2719
|
/**
|
|
@@ -2693,6 +2732,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
|
2693
2732
|
set defaultValue(val: any);
|
|
2694
2733
|
get defaultValueExpression(): any;
|
|
2695
2734
|
set defaultValueExpression(val: any);
|
|
2735
|
+
get resizeStyle(): "none" | "both";
|
|
2696
2736
|
/**
|
|
2697
2737
|
* Returns question answer data as a plain object: with question title, name, value and displayValue.
|
|
2698
2738
|
* For complex questions (like matrix, etc.) isNode flag is set to true and data contains array of nested objects (rows)
|
|
@@ -2987,6 +3027,7 @@ export interface IMatrixDropdownData {
|
|
|
2987
3027
|
getRenderer(name: string): string;
|
|
2988
3028
|
getRendererContext(locStr: LocalizableString): any;
|
|
2989
3029
|
getProcessedText(text: string): string;
|
|
3030
|
+
getParentTextProcessor(): ITextProcessor;
|
|
2990
3031
|
getSharedQuestionByName(columnName: string, row: MatrixDropdownRowModelBase): Question;
|
|
2991
3032
|
onTotalValueChanged(): any;
|
|
2992
3033
|
getSurvey(): ISurvey;
|
|
@@ -3303,6 +3344,7 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
|
|
|
3303
3344
|
createRowDetailPanel(row: MatrixDropdownRowModelBase): PanelModel;
|
|
3304
3345
|
getSharedQuestionByName(columnName: string, row: MatrixDropdownRowModelBase): Question;
|
|
3305
3346
|
onTotalValueChanged(): any;
|
|
3347
|
+
getParentTextProcessor(): ITextProcessor;
|
|
3306
3348
|
getQuestionFromArray(name: string, index: number): IQuestion;
|
|
3307
3349
|
getCellTemplateData(cell: QuestionMatrixDropdownRenderedCell): any;
|
|
3308
3350
|
getCellWrapperComponentName(cell: MatrixDropdownCell): string;
|
|
@@ -3333,6 +3375,10 @@ export declare class PopupUtils {
|
|
|
3333
3375
|
height: number;
|
|
3334
3376
|
top: number;
|
|
3335
3377
|
};
|
|
3378
|
+
static updateHorizontalDimensions(left: number, width: number, windowWidth: number, horizontalPosition: HorizontalPosition): {
|
|
3379
|
+
width: number;
|
|
3380
|
+
left: number;
|
|
3381
|
+
};
|
|
3336
3382
|
static updateVerticalPosition(targetRect: ClientRect, height: number, verticalPosition: VerticalPosition, showPointer: boolean, windowHeight: number): VerticalPosition;
|
|
3337
3383
|
static calculatePopupDirection(verticalPosition: VerticalPosition, horizontalPosition: HorizontalPosition): string;
|
|
3338
3384
|
static calculatePointerTarget(targetRect: ClientRect, top: number, left: number, verticalPosition: VerticalPosition, horizontalPosition: HorizontalPosition): INumberPosition;
|
|
@@ -3393,6 +3439,7 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
|
|
|
3393
3439
|
stateChangedCallback: () => void;
|
|
3394
3440
|
static getProgressInfoByElements(children: Array<SurveyElement>, isRequired: boolean): IProgressInfo;
|
|
3395
3441
|
dragTypeOverMe: DragTypeOverMeEnum;
|
|
3442
|
+
isDragMe: boolean;
|
|
3396
3443
|
readOnlyChangedCallback: () => void;
|
|
3397
3444
|
static ScrollElementToTop(elementId: string): boolean;
|
|
3398
3445
|
static GetFirstNonTextElement(elements: any, removeSpaces?: boolean): any;
|
|
@@ -3555,6 +3602,10 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
|
|
|
3555
3602
|
protected moveToBase(parent: IPanel, container: IPanel, insertBefore?: any): boolean;
|
|
3556
3603
|
protected setPage(parent: IPanel, newPage: IPage): void;
|
|
3557
3604
|
protected getSearchableLocKeys(keys: Array<string>): void;
|
|
3605
|
+
protected get isDefaultV2Theme(): boolean;
|
|
3606
|
+
get isErrorsModeTooltip(): boolean;
|
|
3607
|
+
get hasParent(): boolean;
|
|
3608
|
+
protected get hasFrameV2(): boolean;
|
|
3558
3609
|
}
|
|
3559
3610
|
|
|
3560
3611
|
export declare class ValidatorResult {
|
|
@@ -3713,7 +3764,6 @@ export declare class TextPreProcessorValue {
|
|
|
3713
3764
|
}
|
|
3714
3765
|
export declare class TextPreProcessor {
|
|
3715
3766
|
onProcess: (textValue: TextPreProcessorValue) => void;
|
|
3716
|
-
constructor();
|
|
3717
3767
|
process(text: string, returnDisplayValue?: boolean, doEncoding?: boolean): string;
|
|
3718
3768
|
processValue(name: string, returnDisplayValue: boolean): TextPreProcessorValue;
|
|
3719
3769
|
get hasAllValuesOnLastRun(): boolean;
|
|
@@ -3726,6 +3776,7 @@ export declare class QuestionTextProcessor implements ITextProcessor {
|
|
|
3726
3776
|
protected get panel(): PanelModel;
|
|
3727
3777
|
protected getValues(): any;
|
|
3728
3778
|
protected getQuestionByName(name: string): Question;
|
|
3779
|
+
protected getParentTextProcessor(): ITextProcessor;
|
|
3729
3780
|
protected onCustomProcessText(textValue: TextPreProcessorValue): boolean;
|
|
3730
3781
|
processText(text: string, returnDisplayValue: boolean): string;
|
|
3731
3782
|
processTextEx(text: string, returnDisplayValue: boolean): any;
|
|
@@ -3879,6 +3930,7 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
|
|
|
3879
3930
|
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
|
3880
3931
|
endLoadingFromJson(): void;
|
|
3881
3932
|
get hasTitle(): boolean;
|
|
3933
|
+
get hasDescription(): boolean;
|
|
3882
3934
|
protected canShowTitle(): boolean;
|
|
3883
3935
|
get _showDescription(): boolean;
|
|
3884
3936
|
localeChanged(): void;
|
|
@@ -4050,6 +4102,7 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
|
|
|
4050
4102
|
protected createRow(): QuestionRowModel;
|
|
4051
4103
|
onSurveyLoad(): void;
|
|
4052
4104
|
onFirstRendering(): void;
|
|
4105
|
+
updateRows(): void;
|
|
4053
4106
|
get rows(): Array<QuestionRowModel>;
|
|
4054
4107
|
ensureRowsVisibility(): void;
|
|
4055
4108
|
protected onRowsChanged(): void;
|
|
@@ -4162,8 +4215,6 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
|
|
|
4162
4215
|
* It may contain questions and other panels.
|
|
4163
4216
|
*/
|
|
4164
4217
|
export declare class PanelModel extends PanelModelBase implements IElement {
|
|
4165
|
-
minWidth?: string;
|
|
4166
|
-
maxWidth?: string;
|
|
4167
4218
|
constructor(name?: string);
|
|
4168
4219
|
getType(): string;
|
|
4169
4220
|
get contentId(): string;
|
|
@@ -4235,6 +4286,16 @@ export declare class PanelModel extends PanelModelBase implements IElement {
|
|
|
4235
4286
|
*/
|
|
4236
4287
|
get width(): string;
|
|
4237
4288
|
set width(val: string);
|
|
4289
|
+
/**
|
|
4290
|
+
* Use it to set the specific minWidth constraint to the panel like css style (%, px, em etc).
|
|
4291
|
+
*/
|
|
4292
|
+
get minWidth(): string;
|
|
4293
|
+
set minWidth(val: string);
|
|
4294
|
+
/**
|
|
4295
|
+
* Use it to set the specific maxWidth constraint to the panel like css style (%, px, em etc).
|
|
4296
|
+
*/
|
|
4297
|
+
get maxWidth(): string;
|
|
4298
|
+
set maxWidth(val: string);
|
|
4238
4299
|
/**
|
|
4239
4300
|
* The left indent. Set this property to increase the panel left indent.
|
|
4240
4301
|
*/
|
|
@@ -4279,6 +4340,7 @@ export declare class PanelModel extends PanelModelBase implements IElement {
|
|
|
4279
4340
|
protected onVisibleChanged(): void;
|
|
4280
4341
|
needResponsiveWidth(): boolean;
|
|
4281
4342
|
focusIn: () => void;
|
|
4343
|
+
getContainerCss(): string;
|
|
4282
4344
|
}
|
|
4283
4345
|
|
|
4284
4346
|
export interface IMatrixColumnOwner extends ILocalizableOwner {
|