survey-react-ui 1.8.76 → 1.9.0
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 +105 -24
- package/survey-react-ui.js +229 -166
- 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.
|
|
1
|
+
/*Type definitions for Survey JavaScript library v1.9.0
|
|
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
|
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -1168,7 +1186,7 @@ export declare class EventBase<T> extends Event<(sender: T, options: any) => any
|
|
|
1168
1186
|
* It has two main properties: value and text. If text is empty, value is used for displaying.
|
|
1169
1187
|
* The text property is localizable and support markdown.
|
|
1170
1188
|
*/
|
|
1171
|
-
export declare class ItemValue extends Base {
|
|
1189
|
+
export declare class ItemValue extends Base implements IShortcutText {
|
|
1172
1190
|
protected typeName: string;
|
|
1173
1191
|
[index: string]: any;
|
|
1174
1192
|
static get Separator(): string;
|
|
@@ -1200,6 +1218,7 @@ export declare class ItemValue extends Base {
|
|
|
1200
1218
|
get text(): string;
|
|
1201
1219
|
set text(newText: string);
|
|
1202
1220
|
get calculatedText(): string;
|
|
1221
|
+
get shortcutText(): string;
|
|
1203
1222
|
getData(): any;
|
|
1204
1223
|
toJSON(): any;
|
|
1205
1224
|
setData(value: any): void;
|
|
@@ -1231,6 +1250,7 @@ export declare class AdaptiveActionContainer<T extends Action = Action> extends
|
|
|
1231
1250
|
protected dotsItem: Action;
|
|
1232
1251
|
protected dotsItemPopupModel: PopupModel;
|
|
1233
1252
|
minVisibleItemsCount: number;
|
|
1253
|
+
protected invisibleItemsListModel: ListModel;
|
|
1234
1254
|
constructor();
|
|
1235
1255
|
protected onSet(): void;
|
|
1236
1256
|
protected onPush(item: T): void;
|
|
@@ -1387,9 +1407,7 @@ export declare class QuestionSelectBase extends Question {
|
|
|
1387
1407
|
/**
|
|
1388
1408
|
* Use this property to set the place holder text for other or comment field .
|
|
1389
1409
|
*/
|
|
1390
|
-
|
|
1391
|
-
set otherPlaceHolder(val: string);
|
|
1392
|
-
get locOtherPlaceHolder(): LocalizableString;
|
|
1410
|
+
otherPlaceHolder: string;
|
|
1393
1411
|
/**
|
|
1394
1412
|
* The text that shows when the other item is choosed by the other input is empty.
|
|
1395
1413
|
*/
|
|
@@ -1478,6 +1496,13 @@ export declare class QuestionSelectBase extends Question {
|
|
|
1478
1496
|
choicesLoaded(): void;
|
|
1479
1497
|
getItemValueWrapperComponentName(item: ItemValue): string;
|
|
1480
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;
|
|
1481
1506
|
}
|
|
1482
1507
|
/**
|
|
1483
1508
|
* A base class for checkbox and radiogroup questions. It introduced a colCount property.
|
|
@@ -1493,8 +1518,6 @@ export declare class QuestionCheckboxBase extends QuestionSelectBase {
|
|
|
1493
1518
|
protected onParentChanged(): void;
|
|
1494
1519
|
protected onParentQuestionChanged(): void;
|
|
1495
1520
|
protected getSearchableItemValueKeys(keys: Array<string>): void;
|
|
1496
|
-
getItemEnabled(item: ItemValue): any;
|
|
1497
|
-
isOtherItem(item: ItemValue): boolean;
|
|
1498
1521
|
}
|
|
1499
1522
|
|
|
1500
1523
|
export interface ILocalizableOwner {
|
|
@@ -1844,6 +1867,7 @@ export interface ISurvey extends ITextProcessor, ISurveyErrorOwner {
|
|
|
1844
1867
|
requiredText: string;
|
|
1845
1868
|
beforeSettingQuestionErrors(question: IQuestion, errors: Array<SurveyError>): void;
|
|
1846
1869
|
beforeSettingPanelErrors(question: IPanel, errors: Array<SurveyError>): void;
|
|
1870
|
+
getSurveyErrorCustomText(obj: Base, text: string, error: SurveyError): string;
|
|
1847
1871
|
getElementTitleTagName(element: Base, tagName: string): string;
|
|
1848
1872
|
questionTitlePattern: string;
|
|
1849
1873
|
getUpdatedQuestionTitle(question: IQuestion, title: string): string;
|
|
@@ -1903,7 +1927,10 @@ export interface ISurveyImpl {
|
|
|
1903
1927
|
export interface IConditionRunner {
|
|
1904
1928
|
runCondition(values: HashTable<any>, properties: HashTable<any>): any;
|
|
1905
1929
|
}
|
|
1906
|
-
export interface
|
|
1930
|
+
export interface IShortcutText {
|
|
1931
|
+
shortcutText: string;
|
|
1932
|
+
}
|
|
1933
|
+
export interface ISurveyElement extends IShortcutText {
|
|
1907
1934
|
name: string;
|
|
1908
1935
|
isVisible: boolean;
|
|
1909
1936
|
isReadOnly: boolean;
|
|
@@ -2046,6 +2073,28 @@ export declare class SurveyActionBarItem extends SurveyElementBase<IActionBarIte
|
|
|
2046
2073
|
}
|
|
2047
2074
|
export {};
|
|
2048
2075
|
|
|
2076
|
+
export declare class ListModel extends ActionContainer {
|
|
2077
|
+
onItemSelect: (item: Action) => void;
|
|
2078
|
+
allowSelection: boolean;
|
|
2079
|
+
needFilter: boolean;
|
|
2080
|
+
isExpanded: boolean;
|
|
2081
|
+
selectedItem: IAction;
|
|
2082
|
+
filteredText: string;
|
|
2083
|
+
static INDENT: number;
|
|
2084
|
+
static MINELEMENTCOUNT: number;
|
|
2085
|
+
constructor(items: Array<IAction>, onItemSelect: (item: Action) => void, allowSelection: boolean, selectedItem?: IAction, onFilteredTextChange?: (text: string) => void);
|
|
2086
|
+
protected onSet(): void;
|
|
2087
|
+
selectItem: (itemValue: Action) => void;
|
|
2088
|
+
isItemDisabled: (itemValue: Action) => boolean;
|
|
2089
|
+
isItemSelected: (itemValue: Action) => boolean;
|
|
2090
|
+
getItemClass: (itemValue: Action) => string;
|
|
2091
|
+
getItemIndent: (itemValue: any) => string;
|
|
2092
|
+
get filteredTextPlaceholder(): any;
|
|
2093
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
2094
|
+
onPointerDown(event: PointerEvent, item: any): void;
|
|
2095
|
+
refresh(): void;
|
|
2096
|
+
}
|
|
2097
|
+
|
|
2049
2098
|
export declare class PopupModel<T = any> extends Base {
|
|
2050
2099
|
contentComponentName: string;
|
|
2051
2100
|
contentComponentData: T;
|
|
@@ -2059,13 +2108,14 @@ export declare class PopupModel<T = any> extends Base {
|
|
|
2059
2108
|
onShow: () => void;
|
|
2060
2109
|
cssClass: string;
|
|
2061
2110
|
title: string;
|
|
2111
|
+
displayMode: "popup" | "overlay";
|
|
2062
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);
|
|
2063
2113
|
get isVisible(): boolean;
|
|
2064
2114
|
set isVisible(value: boolean);
|
|
2065
2115
|
toggleVisibility(): void;
|
|
2066
2116
|
onVisibilityChanged: (isVisible: boolean) => void;
|
|
2067
2117
|
}
|
|
2068
|
-
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;
|
|
2069
2119
|
export declare class PopupBaseViewModel extends Base {
|
|
2070
2120
|
targetElement?: HTMLElement;
|
|
2071
2121
|
top: string;
|
|
@@ -2083,6 +2133,8 @@ export declare class PopupBaseViewModel extends Base {
|
|
|
2083
2133
|
get contentComponentData(): any;
|
|
2084
2134
|
get showPointer(): boolean;
|
|
2085
2135
|
get isModal(): boolean;
|
|
2136
|
+
get showFooter(): boolean;
|
|
2137
|
+
get isOverlay(): boolean;
|
|
2086
2138
|
get styleClass(): string;
|
|
2087
2139
|
onKeyDown(event: any): void;
|
|
2088
2140
|
updateOnShowing(): void;
|
|
@@ -2182,6 +2234,10 @@ export interface IAction {
|
|
|
2182
2234
|
* Set it to true to make the tabIndex -1 to disable keyboard navigation to this item
|
|
2183
2235
|
*/
|
|
2184
2236
|
disableTabStop?: boolean;
|
|
2237
|
+
/**
|
|
2238
|
+
* Set it to false to force action "large" mode even if has icon and does not fit to action bar space
|
|
2239
|
+
*/
|
|
2240
|
+
disableShrink?: boolean;
|
|
2185
2241
|
/**
|
|
2186
2242
|
* Action button display mode
|
|
2187
2243
|
*/
|
|
@@ -2214,6 +2270,7 @@ export declare class Action extends Base implements IAction {
|
|
|
2214
2270
|
visibleIndex: number;
|
|
2215
2271
|
mode: "large" | "small" | "popup";
|
|
2216
2272
|
disableTabStop: boolean;
|
|
2273
|
+
disableShrink: boolean;
|
|
2217
2274
|
get disabled(): boolean;
|
|
2218
2275
|
get hasTitle(): boolean;
|
|
2219
2276
|
get isVisible(): boolean;
|
|
@@ -2287,6 +2344,8 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
|
2287
2344
|
*/
|
|
2288
2345
|
onReadyChanged: EventBase<Question>;
|
|
2289
2346
|
isReadOnlyRenderDiv(): boolean;
|
|
2347
|
+
get isErrorsModeTooltip(): boolean;
|
|
2348
|
+
get hasParent(): boolean;
|
|
2290
2349
|
constructor(name: string);
|
|
2291
2350
|
protected createLocTitleProperty(): LocalizableString;
|
|
2292
2351
|
getSurvey(live?: boolean): ISurvey;
|
|
@@ -2307,9 +2366,9 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
|
2307
2366
|
/**
|
|
2308
2367
|
* A11Y properties
|
|
2309
2368
|
*/
|
|
2310
|
-
get ariaRequired():
|
|
2369
|
+
get ariaRequired(): "true" | "false";
|
|
2311
2370
|
get ariaLabel(): string;
|
|
2312
|
-
get ariaInvalid():
|
|
2371
|
+
get ariaInvalid(): "true" | "false";
|
|
2313
2372
|
get ariaDescribedBy(): string;
|
|
2314
2373
|
/**
|
|
2315
2374
|
* Get is question ready to use
|
|
@@ -2536,6 +2595,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
|
2536
2595
|
*/
|
|
2537
2596
|
get renderWidth(): string;
|
|
2538
2597
|
set renderWidth(val: string);
|
|
2598
|
+
get renderCssRoot(): string;
|
|
2539
2599
|
/**
|
|
2540
2600
|
* Set it different from 0 to increase the left padding.
|
|
2541
2601
|
*/
|
|
@@ -2602,6 +2662,8 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
|
2602
2662
|
*/
|
|
2603
2663
|
get isReadOnly(): boolean;
|
|
2604
2664
|
get isInputReadOnly(): boolean;
|
|
2665
|
+
get renderedInputReadOnly(): string;
|
|
2666
|
+
get renderedInputDisabled(): string;
|
|
2605
2667
|
protected onReadOnlyChanged(): void;
|
|
2606
2668
|
/**
|
|
2607
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.
|
|
@@ -2648,6 +2710,10 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
|
2648
2710
|
createValueCopy(): any;
|
|
2649
2711
|
protected getUnbindValue(value: any): any;
|
|
2650
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;
|
|
2651
2717
|
clearValueIfInvisible(): void;
|
|
2652
2718
|
get displayValue(): any;
|
|
2653
2719
|
/**
|
|
@@ -2666,6 +2732,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
|
2666
2732
|
set defaultValue(val: any);
|
|
2667
2733
|
get defaultValueExpression(): any;
|
|
2668
2734
|
set defaultValueExpression(val: any);
|
|
2735
|
+
get resizeStyle(): "none" | "both";
|
|
2669
2736
|
/**
|
|
2670
2737
|
* Returns question answer data as a plain object: with question title, name, value and displayValue.
|
|
2671
2738
|
* For complex questions (like matrix, etc.) isNode flag is set to true and data contains array of nested objects (rows)
|
|
@@ -3306,6 +3373,10 @@ export declare class PopupUtils {
|
|
|
3306
3373
|
height: number;
|
|
3307
3374
|
top: number;
|
|
3308
3375
|
};
|
|
3376
|
+
static updateHorizontalDimensions(left: number, width: number, windowWidth: number, horizontalPosition: HorizontalPosition): {
|
|
3377
|
+
width: number;
|
|
3378
|
+
left: number;
|
|
3379
|
+
};
|
|
3309
3380
|
static updateVerticalPosition(targetRect: ClientRect, height: number, verticalPosition: VerticalPosition, showPointer: boolean, windowHeight: number): VerticalPosition;
|
|
3310
3381
|
static calculatePopupDirection(verticalPosition: VerticalPosition, horizontalPosition: HorizontalPosition): string;
|
|
3311
3382
|
static calculatePointerTarget(targetRect: ClientRect, top: number, left: number, verticalPosition: VerticalPosition, horizontalPosition: HorizontalPosition): INumberPosition;
|
|
@@ -3366,6 +3437,7 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
|
|
|
3366
3437
|
stateChangedCallback: () => void;
|
|
3367
3438
|
static getProgressInfoByElements(children: Array<SurveyElement>, isRequired: boolean): IProgressInfo;
|
|
3368
3439
|
dragTypeOverMe: DragTypeOverMeEnum;
|
|
3440
|
+
isDragMe: boolean;
|
|
3369
3441
|
readOnlyChangedCallback: () => void;
|
|
3370
3442
|
static ScrollElementToTop(elementId: string): boolean;
|
|
3371
3443
|
static GetFirstNonTextElement(elements: any, removeSpaces?: boolean): any;
|
|
@@ -3411,6 +3483,7 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
|
|
|
3411
3483
|
*/
|
|
3412
3484
|
toggleState(): boolean;
|
|
3413
3485
|
get hasStateButton(): boolean;
|
|
3486
|
+
get shortcutText(): string;
|
|
3414
3487
|
getTitleToolbar(): AdaptiveActionContainer;
|
|
3415
3488
|
get titleActions(): Array<any>;
|
|
3416
3489
|
getTitleActions(): Array<any>;
|
|
@@ -3593,7 +3666,7 @@ export declare class NumericValidator extends SurveyValidator {
|
|
|
3593
3666
|
* Validate text values.
|
|
3594
3667
|
*/
|
|
3595
3668
|
export declare class TextValidator extends SurveyValidator {
|
|
3596
|
-
constructor(
|
|
3669
|
+
constructor();
|
|
3597
3670
|
getType(): string;
|
|
3598
3671
|
validate(value: any, name?: string, values?: any, properties?: any): ValidatorResult;
|
|
3599
3672
|
protected getDefaultErrorText(name: string): any;
|
|
@@ -3685,7 +3758,6 @@ export declare class TextPreProcessorValue {
|
|
|
3685
3758
|
}
|
|
3686
3759
|
export declare class TextPreProcessor {
|
|
3687
3760
|
onProcess: (textValue: TextPreProcessorValue) => void;
|
|
3688
|
-
constructor();
|
|
3689
3761
|
process(text: string, returnDisplayValue?: boolean, doEncoding?: boolean): string;
|
|
3690
3762
|
processValue(name: string, returnDisplayValue: boolean): TextPreProcessorValue;
|
|
3691
3763
|
get hasAllValuesOnLastRun(): boolean;
|
|
@@ -4022,6 +4094,7 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
|
|
|
4022
4094
|
protected createRow(): QuestionRowModel;
|
|
4023
4095
|
onSurveyLoad(): void;
|
|
4024
4096
|
onFirstRendering(): void;
|
|
4097
|
+
updateRows(): void;
|
|
4025
4098
|
get rows(): Array<QuestionRowModel>;
|
|
4026
4099
|
ensureRowsVisibility(): void;
|
|
4027
4100
|
protected onRowsChanged(): void;
|
|
@@ -4134,8 +4207,6 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
|
|
|
4134
4207
|
* It may contain questions and other panels.
|
|
4135
4208
|
*/
|
|
4136
4209
|
export declare class PanelModel extends PanelModelBase implements IElement {
|
|
4137
|
-
minWidth?: string;
|
|
4138
|
-
maxWidth?: string;
|
|
4139
4210
|
constructor(name?: string);
|
|
4140
4211
|
getType(): string;
|
|
4141
4212
|
get contentId(): string;
|
|
@@ -4207,6 +4278,16 @@ export declare class PanelModel extends PanelModelBase implements IElement {
|
|
|
4207
4278
|
*/
|
|
4208
4279
|
get width(): string;
|
|
4209
4280
|
set width(val: string);
|
|
4281
|
+
/**
|
|
4282
|
+
* Use it to set the specific minWidth constraint to the panel like css style (%, px, em etc).
|
|
4283
|
+
*/
|
|
4284
|
+
get minWidth(): string;
|
|
4285
|
+
set minWidth(val: string);
|
|
4286
|
+
/**
|
|
4287
|
+
* Use it to set the specific maxWidth constraint to the panel like css style (%, px, em etc).
|
|
4288
|
+
*/
|
|
4289
|
+
get maxWidth(): string;
|
|
4290
|
+
set maxWidth(val: string);
|
|
4210
4291
|
/**
|
|
4211
4292
|
* The left indent. Set this property to increase the panel left indent.
|
|
4212
4293
|
*/
|