survey-react-ui 1.8.75 → 1.8.79
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 +1 -1
- package/survey-react-ui.d.ts +114 -28
- package/survey-react-ui.js +262 -161
- package/survey-react-ui.min.js +2 -2
package/package.json
CHANGED
package/survey-react-ui.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*Type definitions for Survey JavaScript library v1.8.
|
|
1
|
+
/*Type definitions for Survey JavaScript library v1.8.79
|
|
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,10 +514,11 @@ 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(): JSX.Element;
|
|
504
|
-
protected rendrerNextButton(): JSX.Element;
|
|
517
|
+
protected rendrerPrevButton(viewBox?: string, icon?: JSX.Element): JSX.Element;
|
|
518
|
+
protected rendrerNextButton(viewBox?: string, icon?: JSX.Element): JSX.Element;
|
|
505
519
|
protected renderRange(): JSX.Element;
|
|
506
520
|
protected renderAddRowButton(): JSX.Element;
|
|
521
|
+
protected renderNavigatorV2(): JSX.Element;
|
|
507
522
|
}
|
|
508
523
|
export declare class SurveyQuestionPanelDynamicItem extends SurveyPanel {
|
|
509
524
|
constructor(props: any);
|
|
@@ -665,10 +680,12 @@ export declare class PopupContainer extends SurveyElementBase<any, any> {
|
|
|
665
680
|
renderPointer(): JSX.Element;
|
|
666
681
|
renderHeader(): JSX.Element;
|
|
667
682
|
renderContent(): JSX.Element;
|
|
683
|
+
renderCancelButton(): JSX.Element;
|
|
684
|
+
renderApplyButton(): JSX.Element;
|
|
668
685
|
renderFooter(): JSX.Element;
|
|
669
686
|
render(): JSX.Element;
|
|
670
687
|
}
|
|
671
|
-
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;
|
|
672
689
|
export {};
|
|
673
690
|
|
|
674
691
|
interface IListProps {
|
|
@@ -795,6 +812,7 @@ interface IDimensions {
|
|
|
795
812
|
export declare class ResponsivityManager {
|
|
796
813
|
protected container: HTMLDivElement;
|
|
797
814
|
protected minDimensionConst: number;
|
|
815
|
+
protected recalcMinDimensionConst: boolean;
|
|
798
816
|
getComputedStyle: (elt: Element) => CSSStyleDeclaration;
|
|
799
817
|
constructor(container: HTMLDivElement, model: AdaptiveActionContainer, itemsSelector: string, dotsItemSize?: number);
|
|
800
818
|
protected getDimensions(element: HTMLElement): IDimensions;
|
|
@@ -912,6 +930,7 @@ export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
|
|
|
912
930
|
protected onEnableItemCallBack(item: ItemValue): boolean;
|
|
913
931
|
protected onAfterRunItemsEnableCondition(): void;
|
|
914
932
|
protected getItemClassCore(item: any, options: any): string;
|
|
933
|
+
updateValueFromSurvey(newValue: any): void;
|
|
915
934
|
protected setNewValue(newValue: any): void;
|
|
916
935
|
protected getIsMultipleValue(): boolean;
|
|
917
936
|
protected getCommentFromValue(newValue: any): string;
|
|
@@ -935,7 +954,6 @@ export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
|
|
|
935
954
|
protected renderedValueFromDataCore(val: any): any;
|
|
936
955
|
protected rendredValueToDataCore(val: any): any;
|
|
937
956
|
get checkBoxSvgPath(): string;
|
|
938
|
-
getItemId(item: ItemValue): string;
|
|
939
957
|
}
|
|
940
958
|
|
|
941
959
|
export declare class Bindings {
|
|
@@ -1090,6 +1108,7 @@ export declare class Base {
|
|
|
1090
1108
|
* @param val new property value
|
|
1091
1109
|
*/
|
|
1092
1110
|
setPropertyValue(name: string, val: any): void;
|
|
1111
|
+
protected setArrayPropertyDirectly(name: string, val: any): void;
|
|
1093
1112
|
protected setPropertyValueDirectly(name: string, val: any): void;
|
|
1094
1113
|
protected clearPropertyValue(name: string): void;
|
|
1095
1114
|
onPropertyValueChangedCallback(name: string, oldValue: any, newValue: any, sender: Base, arrayChanges: ArrayChanges): void;
|
|
@@ -1167,7 +1186,7 @@ export declare class EventBase<T> extends Event<(sender: T, options: any) => any
|
|
|
1167
1186
|
* It has two main properties: value and text. If text is empty, value is used for displaying.
|
|
1168
1187
|
* The text property is localizable and support markdown.
|
|
1169
1188
|
*/
|
|
1170
|
-
export declare class ItemValue extends Base {
|
|
1189
|
+
export declare class ItemValue extends Base implements IShortcutText {
|
|
1171
1190
|
protected typeName: string;
|
|
1172
1191
|
[index: string]: any;
|
|
1173
1192
|
static get Separator(): string;
|
|
@@ -1199,6 +1218,7 @@ export declare class ItemValue extends Base {
|
|
|
1199
1218
|
get text(): string;
|
|
1200
1219
|
set text(newText: string);
|
|
1201
1220
|
get calculatedText(): string;
|
|
1221
|
+
get shortcutText(): string;
|
|
1202
1222
|
getData(): any;
|
|
1203
1223
|
toJSON(): any;
|
|
1204
1224
|
setData(value: any): void;
|
|
@@ -1230,6 +1250,7 @@ export declare class AdaptiveActionContainer<T extends Action = Action> extends
|
|
|
1230
1250
|
protected dotsItem: Action;
|
|
1231
1251
|
protected dotsItemPopupModel: PopupModel;
|
|
1232
1252
|
minVisibleItemsCount: number;
|
|
1253
|
+
protected invisibleItemsListModel: ListModel;
|
|
1233
1254
|
constructor();
|
|
1234
1255
|
protected onSet(): void;
|
|
1235
1256
|
protected onPush(item: T): void;
|
|
@@ -1442,7 +1463,7 @@ export declare class QuestionSelectBase extends Question {
|
|
|
1442
1463
|
supportNone(): boolean;
|
|
1443
1464
|
protected isSupportProperty(propName: string): boolean;
|
|
1444
1465
|
protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean): void;
|
|
1445
|
-
setSurveyImpl(value: ISurveyImpl): void;
|
|
1466
|
+
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
|
1446
1467
|
protected setSurveyCore(value: ISurvey): void;
|
|
1447
1468
|
protected getStoreOthersAsComment(): boolean;
|
|
1448
1469
|
onSurveyLoad(): void;
|
|
@@ -1477,6 +1498,13 @@ export declare class QuestionSelectBase extends Question {
|
|
|
1477
1498
|
choicesLoaded(): void;
|
|
1478
1499
|
getItemValueWrapperComponentName(item: ItemValue): string;
|
|
1479
1500
|
getItemValueWrapperComponentData(item: ItemValue): any;
|
|
1501
|
+
ariaItemChecked(item: ItemValue): "true" | "false";
|
|
1502
|
+
isOtherItem(item: ItemValue): boolean;
|
|
1503
|
+
get itemSvgIcon(): string;
|
|
1504
|
+
ariaItemLabel(item: ItemValue): string;
|
|
1505
|
+
getItemId(item: ItemValue): string;
|
|
1506
|
+
get questionName(): string;
|
|
1507
|
+
getItemEnabled(item: ItemValue): any;
|
|
1480
1508
|
}
|
|
1481
1509
|
/**
|
|
1482
1510
|
* A base class for checkbox and radiogroup questions. It introduced a colCount property.
|
|
@@ -1492,8 +1520,6 @@ export declare class QuestionCheckboxBase extends QuestionSelectBase {
|
|
|
1492
1520
|
protected onParentChanged(): void;
|
|
1493
1521
|
protected onParentQuestionChanged(): void;
|
|
1494
1522
|
protected getSearchableItemValueKeys(keys: Array<string>): void;
|
|
1495
|
-
getItemEnabled(item: ItemValue): any;
|
|
1496
|
-
isOtherItem(item: ItemValue): boolean;
|
|
1497
1523
|
}
|
|
1498
1524
|
|
|
1499
1525
|
export interface ILocalizableOwner {
|
|
@@ -1902,7 +1928,10 @@ export interface ISurveyImpl {
|
|
|
1902
1928
|
export interface IConditionRunner {
|
|
1903
1929
|
runCondition(values: HashTable<any>, properties: HashTable<any>): any;
|
|
1904
1930
|
}
|
|
1905
|
-
export interface
|
|
1931
|
+
export interface IShortcutText {
|
|
1932
|
+
shortcutText: string;
|
|
1933
|
+
}
|
|
1934
|
+
export interface ISurveyElement extends IShortcutText {
|
|
1906
1935
|
name: string;
|
|
1907
1936
|
isVisible: boolean;
|
|
1908
1937
|
isReadOnly: boolean;
|
|
@@ -1911,7 +1940,7 @@ export interface ISurveyElement {
|
|
|
1911
1940
|
containsErrors: boolean;
|
|
1912
1941
|
parent: IPanel;
|
|
1913
1942
|
skeletonComponentName: string;
|
|
1914
|
-
setSurveyImpl(value: ISurveyImpl): any;
|
|
1943
|
+
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): any;
|
|
1915
1944
|
onSurveyLoad(): any;
|
|
1916
1945
|
onFirstRendering(): any;
|
|
1917
1946
|
getType(): string;
|
|
@@ -2045,6 +2074,28 @@ export declare class SurveyActionBarItem extends SurveyElementBase<IActionBarIte
|
|
|
2045
2074
|
}
|
|
2046
2075
|
export {};
|
|
2047
2076
|
|
|
2077
|
+
export declare class ListModel extends ActionContainer {
|
|
2078
|
+
onItemSelect: (item: Action) => void;
|
|
2079
|
+
allowSelection: boolean;
|
|
2080
|
+
needFilter: boolean;
|
|
2081
|
+
isExpanded: boolean;
|
|
2082
|
+
selectedItem: IAction;
|
|
2083
|
+
filteredText: string;
|
|
2084
|
+
static INDENT: number;
|
|
2085
|
+
static MINELEMENTCOUNT: number;
|
|
2086
|
+
constructor(items: Array<IAction>, onItemSelect: (item: Action) => void, allowSelection: boolean, selectedItem?: IAction, onFilteredTextChange?: (text: string) => void);
|
|
2087
|
+
protected onSet(): void;
|
|
2088
|
+
selectItem: (itemValue: Action) => void;
|
|
2089
|
+
isItemDisabled: (itemValue: Action) => boolean;
|
|
2090
|
+
isItemSelected: (itemValue: Action) => boolean;
|
|
2091
|
+
getItemClass: (itemValue: Action) => string;
|
|
2092
|
+
getItemIndent: (itemValue: any) => string;
|
|
2093
|
+
get filteredTextPlaceholder(): any;
|
|
2094
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
2095
|
+
onPointerDown(event: PointerEvent, item: any): void;
|
|
2096
|
+
refresh(): void;
|
|
2097
|
+
}
|
|
2098
|
+
|
|
2048
2099
|
export declare class PopupModel<T = any> extends Base {
|
|
2049
2100
|
contentComponentName: string;
|
|
2050
2101
|
contentComponentData: T;
|
|
@@ -2058,13 +2109,14 @@ export declare class PopupModel<T = any> extends Base {
|
|
|
2058
2109
|
onShow: () => void;
|
|
2059
2110
|
cssClass: string;
|
|
2060
2111
|
title: string;
|
|
2112
|
+
displayMode: "popup" | "overlay";
|
|
2061
2113
|
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);
|
|
2062
2114
|
get isVisible(): boolean;
|
|
2063
2115
|
set isVisible(value: boolean);
|
|
2064
2116
|
toggleVisibility(): void;
|
|
2065
2117
|
onVisibilityChanged: (isVisible: boolean) => void;
|
|
2066
2118
|
}
|
|
2067
|
-
export declare function createPopupModalViewModel(componentName: string, data: any, onApply: () => boolean, onCancel?: () => void, onHide?: () => void, onShow?: () => void, cssClass?: string, title?: string): PopupBaseViewModel;
|
|
2119
|
+
export declare function createPopupModalViewModel(componentName: string, data: any, onApply: () => boolean, onCancel?: () => void, onHide?: () => void, onShow?: () => void, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): PopupBaseViewModel;
|
|
2068
2120
|
export declare class PopupBaseViewModel extends Base {
|
|
2069
2121
|
targetElement?: HTMLElement;
|
|
2070
2122
|
top: string;
|
|
@@ -2082,6 +2134,8 @@ export declare class PopupBaseViewModel extends Base {
|
|
|
2082
2134
|
get contentComponentData(): any;
|
|
2083
2135
|
get showPointer(): boolean;
|
|
2084
2136
|
get isModal(): boolean;
|
|
2137
|
+
get showFooter(): boolean;
|
|
2138
|
+
get isOverlay(): boolean;
|
|
2085
2139
|
get styleClass(): string;
|
|
2086
2140
|
onKeyDown(event: any): void;
|
|
2087
2141
|
updateOnShowing(): void;
|
|
@@ -2181,6 +2235,10 @@ export interface IAction {
|
|
|
2181
2235
|
* Set it to true to make the tabIndex -1 to disable keyboard navigation to this item
|
|
2182
2236
|
*/
|
|
2183
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;
|
|
2184
2242
|
/**
|
|
2185
2243
|
* Action button display mode
|
|
2186
2244
|
*/
|
|
@@ -2213,6 +2271,7 @@ export declare class Action extends Base implements IAction {
|
|
|
2213
2271
|
visibleIndex: number;
|
|
2214
2272
|
mode: "large" | "small" | "popup";
|
|
2215
2273
|
disableTabStop: boolean;
|
|
2274
|
+
disableShrink: boolean;
|
|
2216
2275
|
get disabled(): boolean;
|
|
2217
2276
|
get hasTitle(): boolean;
|
|
2218
2277
|
get isVisible(): boolean;
|
|
@@ -2286,6 +2345,8 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
|
2286
2345
|
*/
|
|
2287
2346
|
onReadyChanged: EventBase<Question>;
|
|
2288
2347
|
isReadOnlyRenderDiv(): boolean;
|
|
2348
|
+
get isErrorsModeTooltip(): boolean;
|
|
2349
|
+
get hasParent(): boolean;
|
|
2289
2350
|
constructor(name: string);
|
|
2290
2351
|
protected createLocTitleProperty(): LocalizableString;
|
|
2291
2352
|
getSurvey(live?: boolean): ISurvey;
|
|
@@ -2306,9 +2367,9 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
|
2306
2367
|
/**
|
|
2307
2368
|
* A11Y properties
|
|
2308
2369
|
*/
|
|
2309
|
-
get ariaRequired():
|
|
2370
|
+
get ariaRequired(): "true" | "false";
|
|
2310
2371
|
get ariaLabel(): string;
|
|
2311
|
-
get ariaInvalid():
|
|
2372
|
+
get ariaInvalid(): "true" | "false";
|
|
2312
2373
|
get ariaDescribedBy(): string;
|
|
2313
2374
|
/**
|
|
2314
2375
|
* Get is question ready to use
|
|
@@ -2379,7 +2440,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
|
2379
2440
|
*/
|
|
2380
2441
|
moveTo(container: IPanel, insertBefore?: any): boolean;
|
|
2381
2442
|
getProgressInfo(): IProgressInfo;
|
|
2382
|
-
setSurveyImpl(value: ISurveyImpl): void;
|
|
2443
|
+
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
|
2383
2444
|
getDataFilteredValues(): any;
|
|
2384
2445
|
getDataFilteredProperties(): any;
|
|
2385
2446
|
/**
|
|
@@ -2535,6 +2596,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
|
2535
2596
|
*/
|
|
2536
2597
|
get renderWidth(): string;
|
|
2537
2598
|
set renderWidth(val: string);
|
|
2599
|
+
get renderCssRoot(): string;
|
|
2538
2600
|
/**
|
|
2539
2601
|
* Set it different from 0 to increase the left padding.
|
|
2540
2602
|
*/
|
|
@@ -2554,6 +2616,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
|
2554
2616
|
* @param onError set this parameter to true, to focus the input with the first error, other wise the first input will be focused.
|
|
2555
2617
|
*/
|
|
2556
2618
|
focus(onError?: boolean): void;
|
|
2619
|
+
focusIn: () => void;
|
|
2557
2620
|
protected fireCallback(callback: () => void): void;
|
|
2558
2621
|
getOthersMaxLength(): any;
|
|
2559
2622
|
protected onCreating(): void;
|
|
@@ -2600,6 +2663,8 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
|
2600
2663
|
*/
|
|
2601
2664
|
get isReadOnly(): boolean;
|
|
2602
2665
|
get isInputReadOnly(): boolean;
|
|
2666
|
+
get renderedInputReadOnly(): string;
|
|
2667
|
+
get renderedInputDisabled(): string;
|
|
2603
2668
|
protected onReadOnlyChanged(): void;
|
|
2604
2669
|
/**
|
|
2605
2670
|
* 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.
|
|
@@ -2646,6 +2711,10 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
|
2646
2711
|
createValueCopy(): any;
|
|
2647
2712
|
protected getUnbindValue(value: any): any;
|
|
2648
2713
|
protected isValueSurveyElement(val: any): boolean;
|
|
2714
|
+
/**
|
|
2715
|
+
* Return true if there is a parent (page or panel) and it is visible
|
|
2716
|
+
*/
|
|
2717
|
+
get isParentVisible(): boolean;
|
|
2649
2718
|
clearValueIfInvisible(): void;
|
|
2650
2719
|
get displayValue(): any;
|
|
2651
2720
|
/**
|
|
@@ -2664,6 +2733,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
|
2664
2733
|
set defaultValue(val: any);
|
|
2665
2734
|
get defaultValueExpression(): any;
|
|
2666
2735
|
set defaultValueExpression(val: any);
|
|
2736
|
+
get resizeStyle(): "none" | "both";
|
|
2667
2737
|
/**
|
|
2668
2738
|
* Returns question answer data as a plain object: with question title, name, value and displayValue.
|
|
2669
2739
|
* For complex questions (like matrix, etc.) isNode flag is set to true and data contains array of nested objects (rows)
|
|
@@ -3352,13 +3422,19 @@ export declare abstract class SurveyElementCore extends Base implements ILocaliz
|
|
|
3352
3422
|
abstract getRendererContext(locStr: LocalizableString): any;
|
|
3353
3423
|
abstract getProcessedText(text: string): string;
|
|
3354
3424
|
}
|
|
3425
|
+
export declare enum DragTypeOverMeEnum {
|
|
3426
|
+
InsideEmptyPanel = 1,
|
|
3427
|
+
MultilineRight = 2,
|
|
3428
|
+
MultilineLeft = 3
|
|
3429
|
+
}
|
|
3355
3430
|
/**
|
|
3356
3431
|
* Base class of SurveyJS Elements.
|
|
3357
3432
|
*/
|
|
3358
3433
|
export declare class SurveyElement extends SurveyElementCore implements ISurveyElement {
|
|
3359
3434
|
stateChangedCallback: () => void;
|
|
3360
3435
|
static getProgressInfoByElements(children: Array<SurveyElement>, isRequired: boolean): IProgressInfo;
|
|
3361
|
-
|
|
3436
|
+
dragTypeOverMe: DragTypeOverMeEnum;
|
|
3437
|
+
isDragMe: boolean;
|
|
3362
3438
|
readOnlyChangedCallback: () => void;
|
|
3363
3439
|
static ScrollElementToTop(elementId: string): boolean;
|
|
3364
3440
|
static GetFirstNonTextElement(elements: any, removeSpaces?: boolean): any;
|
|
@@ -3404,6 +3480,7 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
|
|
|
3404
3480
|
*/
|
|
3405
3481
|
toggleState(): boolean;
|
|
3406
3482
|
get hasStateButton(): boolean;
|
|
3483
|
+
get shortcutText(): string;
|
|
3407
3484
|
getTitleToolbar(): AdaptiveActionContainer;
|
|
3408
3485
|
get titleActions(): Array<any>;
|
|
3409
3486
|
getTitleActions(): Array<any>;
|
|
@@ -3412,7 +3489,7 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
|
|
|
3412
3489
|
getTitleComponentName(): string;
|
|
3413
3490
|
get titleTabIndex(): number;
|
|
3414
3491
|
get titleAriaExpanded(): boolean;
|
|
3415
|
-
setSurveyImpl(value: ISurveyImpl): void;
|
|
3492
|
+
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
|
3416
3493
|
protected get surveyImpl(): ISurveyImpl;
|
|
3417
3494
|
get data(): ISurveyData;
|
|
3418
3495
|
/**
|
|
@@ -3586,7 +3663,7 @@ export declare class NumericValidator extends SurveyValidator {
|
|
|
3586
3663
|
* Validate text values.
|
|
3587
3664
|
*/
|
|
3588
3665
|
export declare class TextValidator extends SurveyValidator {
|
|
3589
|
-
constructor(
|
|
3666
|
+
constructor();
|
|
3590
3667
|
getType(): string;
|
|
3591
3668
|
validate(value: any, name?: string, values?: any, properties?: any): ValidatorResult;
|
|
3592
3669
|
protected getDefaultErrorText(name: string): any;
|
|
@@ -3678,7 +3755,6 @@ export declare class TextPreProcessorValue {
|
|
|
3678
3755
|
}
|
|
3679
3756
|
export declare class TextPreProcessor {
|
|
3680
3757
|
onProcess: (textValue: TextPreProcessorValue) => void;
|
|
3681
|
-
constructor();
|
|
3682
3758
|
process(text: string, returnDisplayValue?: boolean, doEncoding?: boolean): string;
|
|
3683
3759
|
processValue(name: string, returnDisplayValue: boolean): TextPreProcessorValue;
|
|
3684
3760
|
get hasAllValuesOnLastRun(): boolean;
|
|
@@ -3841,7 +3917,7 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
|
|
|
3841
3917
|
onGetQuestionTitleLocation: () => string;
|
|
3842
3918
|
constructor(name?: string);
|
|
3843
3919
|
getType(): string;
|
|
3844
|
-
setSurveyImpl(value: ISurveyImpl): void;
|
|
3920
|
+
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
|
3845
3921
|
endLoadingFromJson(): void;
|
|
3846
3922
|
get hasTitle(): boolean;
|
|
3847
3923
|
protected canShowTitle(): boolean;
|
|
@@ -4015,6 +4091,7 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
|
|
|
4015
4091
|
protected createRow(): QuestionRowModel;
|
|
4016
4092
|
onSurveyLoad(): void;
|
|
4017
4093
|
onFirstRendering(): void;
|
|
4094
|
+
updateRows(): void;
|
|
4018
4095
|
get rows(): Array<QuestionRowModel>;
|
|
4019
4096
|
ensureRowsVisibility(): void;
|
|
4020
4097
|
protected onRowsChanged(): void;
|
|
@@ -4127,8 +4204,6 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
|
|
|
4127
4204
|
* It may contain questions and other panels.
|
|
4128
4205
|
*/
|
|
4129
4206
|
export declare class PanelModel extends PanelModelBase implements IElement {
|
|
4130
|
-
minWidth?: string;
|
|
4131
|
-
maxWidth?: string;
|
|
4132
4207
|
constructor(name?: string);
|
|
4133
4208
|
getType(): string;
|
|
4134
4209
|
get contentId(): string;
|
|
@@ -4200,6 +4275,16 @@ export declare class PanelModel extends PanelModelBase implements IElement {
|
|
|
4200
4275
|
*/
|
|
4201
4276
|
get width(): string;
|
|
4202
4277
|
set width(val: string);
|
|
4278
|
+
/**
|
|
4279
|
+
* Use it to set the specific minWidth constraint to the panel like css style (%, px, em etc).
|
|
4280
|
+
*/
|
|
4281
|
+
get minWidth(): string;
|
|
4282
|
+
set minWidth(val: string);
|
|
4283
|
+
/**
|
|
4284
|
+
* Use it to set the specific maxWidth constraint to the panel like css style (%, px, em etc).
|
|
4285
|
+
*/
|
|
4286
|
+
get maxWidth(): string;
|
|
4287
|
+
set maxWidth(val: string);
|
|
4203
4288
|
/**
|
|
4204
4289
|
* The left indent. Set this property to increase the panel left indent.
|
|
4205
4290
|
*/
|
|
@@ -4243,6 +4328,7 @@ export declare class PanelModel extends PanelModelBase implements IElement {
|
|
|
4243
4328
|
protected getCssError(cssClasses: any): string;
|
|
4244
4329
|
protected onVisibleChanged(): void;
|
|
4245
4330
|
needResponsiveWidth(): boolean;
|
|
4331
|
+
focusIn: () => void;
|
|
4246
4332
|
}
|
|
4247
4333
|
|
|
4248
4334
|
export interface IMatrixColumnOwner extends ILocalizableOwner {
|