survey-react-ui 1.8.78 → 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 +36 -13
- package/survey-react-ui.js +126 -104
- 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
|
*/
|
|
@@ -223,24 +223,31 @@ export declare class SurveyElementErrors extends ReactSurveyElement {
|
|
|
223
223
|
componentWillUnmount(): void;
|
|
224
224
|
protected renderElement(): JSX.Element;
|
|
225
225
|
}
|
|
226
|
-
export declare class
|
|
226
|
+
export declare abstract class SurveyQuestionAndErrorsWrapped extends ReactSurveyElement {
|
|
227
227
|
[index: string]: any;
|
|
228
|
-
protected cellRef: React.RefObject<HTMLTableCellElement>;
|
|
229
228
|
constructor(props: any);
|
|
230
229
|
protected getStateElement(): Base;
|
|
231
|
-
protected get itemCss(): string;
|
|
232
230
|
protected get question(): Question;
|
|
233
231
|
protected get creator(): ISurveyCreator;
|
|
234
232
|
protected getQuestion(): Question;
|
|
233
|
+
protected get itemCss(): string;
|
|
235
234
|
componentDidMount(): void;
|
|
236
|
-
componentWillUnmount(): void;
|
|
237
235
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
|
238
236
|
protected doAfterRender(): void;
|
|
239
237
|
protected canRender(): boolean;
|
|
240
|
-
protected
|
|
238
|
+
protected renderErrors(errorsLocation: string): JSX.Element;
|
|
239
|
+
protected renderContent(): JSX.Element;
|
|
240
|
+
protected abstract renderElement(): JSX.Element;
|
|
241
241
|
protected getShowErrors(): boolean;
|
|
242
|
-
protected getCellStyle(): any;
|
|
243
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;
|
|
244
251
|
protected getHeaderText(): string;
|
|
245
252
|
protected wrapCell(cell: QuestionMatrixDropdownRenderedCell, element: JSX.Element): JSX.Element;
|
|
246
253
|
}
|
|
@@ -398,8 +405,12 @@ export declare class SurveyQuestionMultipleText extends SurveyQuestionElementBas
|
|
|
398
405
|
constructor(props: any);
|
|
399
406
|
protected get question(): QuestionMultipleTextModel;
|
|
400
407
|
protected renderElement(): JSX.Element;
|
|
408
|
+
protected renderItemTooltipError(item: MultipleTextItemModel, cssClasses: any): JSX.Element;
|
|
401
409
|
protected renderRow(rowIndex: number, items: Array<MultipleTextItemModel>, cssClasses: any): JSX.Element;
|
|
402
410
|
}
|
|
411
|
+
export declare class SurveyMultipleTextItemEditor extends SurveyQuestionAndErrorsWrapped {
|
|
412
|
+
protected renderElement(): JSX.Element;
|
|
413
|
+
}
|
|
403
414
|
|
|
404
415
|
export declare class SurveyQuestionRadiogroup extends SurveyQuestionElementBase {
|
|
405
416
|
constructor(props: any);
|
|
@@ -426,6 +437,7 @@ export declare class SurveyQuestionRadioItem extends ReactSurveyElement {
|
|
|
426
437
|
|
|
427
438
|
export declare class SurveyQuestionText extends SurveyQuestionUncontrolledElement<QuestionTextModel> {
|
|
428
439
|
constructor(props: any);
|
|
440
|
+
protected renderInput(): JSX.Element;
|
|
429
441
|
protected renderElement(): JSX.Element;
|
|
430
442
|
}
|
|
431
443
|
|
|
@@ -800,6 +812,7 @@ interface IDimensions {
|
|
|
800
812
|
export declare class ResponsivityManager {
|
|
801
813
|
protected container: HTMLDivElement;
|
|
802
814
|
protected minDimensionConst: number;
|
|
815
|
+
protected recalcMinDimensionConst: boolean;
|
|
803
816
|
getComputedStyle: (elt: Element) => CSSStyleDeclaration;
|
|
804
817
|
constructor(container: HTMLDivElement, model: AdaptiveActionContainer, itemsSelector: string, dotsItemSize?: number);
|
|
805
818
|
protected getDimensions(element: HTMLElement): IDimensions;
|
|
@@ -917,6 +930,7 @@ export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
|
|
|
917
930
|
protected onEnableItemCallBack(item: ItemValue): boolean;
|
|
918
931
|
protected onAfterRunItemsEnableCondition(): void;
|
|
919
932
|
protected getItemClassCore(item: any, options: any): string;
|
|
933
|
+
updateValueFromSurvey(newValue: any): void;
|
|
920
934
|
protected setNewValue(newValue: any): void;
|
|
921
935
|
protected getIsMultipleValue(): boolean;
|
|
922
936
|
protected getCommentFromValue(newValue: any): string;
|
|
@@ -940,7 +954,6 @@ export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
|
|
|
940
954
|
protected renderedValueFromDataCore(val: any): any;
|
|
941
955
|
protected rendredValueToDataCore(val: any): any;
|
|
942
956
|
get checkBoxSvgPath(): string;
|
|
943
|
-
getItemId(item: ItemValue): string;
|
|
944
957
|
}
|
|
945
958
|
|
|
946
959
|
export declare class Bindings {
|
|
@@ -1095,6 +1108,7 @@ export declare class Base {
|
|
|
1095
1108
|
* @param val new property value
|
|
1096
1109
|
*/
|
|
1097
1110
|
setPropertyValue(name: string, val: any): void;
|
|
1111
|
+
protected setArrayPropertyDirectly(name: string, val: any): void;
|
|
1098
1112
|
protected setPropertyValueDirectly(name: string, val: any): void;
|
|
1099
1113
|
protected clearPropertyValue(name: string): void;
|
|
1100
1114
|
onPropertyValueChangedCallback(name: string, oldValue: any, newValue: any, sender: Base, arrayChanges: ArrayChanges): void;
|
|
@@ -1484,6 +1498,13 @@ export declare class QuestionSelectBase extends Question {
|
|
|
1484
1498
|
choicesLoaded(): void;
|
|
1485
1499
|
getItemValueWrapperComponentName(item: ItemValue): string;
|
|
1486
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;
|
|
1487
1508
|
}
|
|
1488
1509
|
/**
|
|
1489
1510
|
* A base class for checkbox and radiogroup questions. It introduced a colCount property.
|
|
@@ -1499,8 +1520,6 @@ export declare class QuestionCheckboxBase extends QuestionSelectBase {
|
|
|
1499
1520
|
protected onParentChanged(): void;
|
|
1500
1521
|
protected onParentQuestionChanged(): void;
|
|
1501
1522
|
protected getSearchableItemValueKeys(keys: Array<string>): void;
|
|
1502
|
-
getItemEnabled(item: ItemValue): any;
|
|
1503
|
-
isOtherItem(item: ItemValue): boolean;
|
|
1504
1523
|
}
|
|
1505
1524
|
|
|
1506
1525
|
export interface ILocalizableOwner {
|
|
@@ -2348,9 +2367,9 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
|
2348
2367
|
/**
|
|
2349
2368
|
* A11Y properties
|
|
2350
2369
|
*/
|
|
2351
|
-
get ariaRequired():
|
|
2370
|
+
get ariaRequired(): "true" | "false";
|
|
2352
2371
|
get ariaLabel(): string;
|
|
2353
|
-
get ariaInvalid():
|
|
2372
|
+
get ariaInvalid(): "true" | "false";
|
|
2354
2373
|
get ariaDescribedBy(): string;
|
|
2355
2374
|
/**
|
|
2356
2375
|
* Get is question ready to use
|
|
@@ -2577,6 +2596,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
|
2577
2596
|
*/
|
|
2578
2597
|
get renderWidth(): string;
|
|
2579
2598
|
set renderWidth(val: string);
|
|
2599
|
+
get renderCssRoot(): string;
|
|
2580
2600
|
/**
|
|
2581
2601
|
* Set it different from 0 to increase the left padding.
|
|
2582
2602
|
*/
|
|
@@ -2643,6 +2663,8 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
|
2643
2663
|
*/
|
|
2644
2664
|
get isReadOnly(): boolean;
|
|
2645
2665
|
get isInputReadOnly(): boolean;
|
|
2666
|
+
get renderedInputReadOnly(): string;
|
|
2667
|
+
get renderedInputDisabled(): string;
|
|
2646
2668
|
protected onReadOnlyChanged(): void;
|
|
2647
2669
|
/**
|
|
2648
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.
|
|
@@ -2711,6 +2733,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
|
2711
2733
|
set defaultValue(val: any);
|
|
2712
2734
|
get defaultValueExpression(): any;
|
|
2713
2735
|
set defaultValueExpression(val: any);
|
|
2736
|
+
get resizeStyle(): "none" | "both";
|
|
2714
2737
|
/**
|
|
2715
2738
|
* Returns question answer data as a plain object: with question title, name, value and displayValue.
|
|
2716
2739
|
* For complex questions (like matrix, etc.) isNode flag is set to true and data contains array of nested objects (rows)
|
|
@@ -3732,7 +3755,6 @@ export declare class TextPreProcessorValue {
|
|
|
3732
3755
|
}
|
|
3733
3756
|
export declare class TextPreProcessor {
|
|
3734
3757
|
onProcess: (textValue: TextPreProcessorValue) => void;
|
|
3735
|
-
constructor();
|
|
3736
3758
|
process(text: string, returnDisplayValue?: boolean, doEncoding?: boolean): string;
|
|
3737
3759
|
processValue(name: string, returnDisplayValue: boolean): TextPreProcessorValue;
|
|
3738
3760
|
get hasAllValuesOnLastRun(): boolean;
|
|
@@ -4069,6 +4091,7 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
|
|
|
4069
4091
|
protected createRow(): QuestionRowModel;
|
|
4070
4092
|
onSurveyLoad(): void;
|
|
4071
4093
|
onFirstRendering(): void;
|
|
4094
|
+
updateRows(): void;
|
|
4072
4095
|
get rows(): Array<QuestionRowModel>;
|
|
4073
4096
|
ensureRowsVisibility(): void;
|
|
4074
4097
|
protected onRowsChanged(): void;
|