survey-react 1.8.79 → 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/modern.css +1 -1
- package/modern.min.css +1 -1
- package/package.json +1 -1
- package/survey.css +1 -1
- package/survey.min.css +1 -1
- package/survey.react.d.ts +33 -11
- package/survey.react.js +271 -241
- package/survey.react.min.js +4 -4
package/modern.css
CHANGED
package/modern.min.css
CHANGED
package/package.json
CHANGED
package/survey.css
CHANGED
package/survey.min.css
CHANGED
package/survey.react.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
|
*/
|
@@ -110,7 +110,6 @@ export declare var defaultStandardCss: {
|
|
110
110
|
itemDisabled: string;
|
111
111
|
switch: string;
|
112
112
|
slider: string;
|
113
|
-
sliderText: string;
|
114
113
|
label: string;
|
115
114
|
disabledLabel: string;
|
116
115
|
materialDecorator: string;
|
@@ -131,7 +130,6 @@ export declare var defaultStandardCss: {
|
|
131
130
|
itemControl: string;
|
132
131
|
itemDecorator: string;
|
133
132
|
controlLabel: string;
|
134
|
-
materialDecorator: string;
|
135
133
|
other: string;
|
136
134
|
column: string;
|
137
135
|
};
|
@@ -427,7 +425,6 @@ export declare var defaultBootstrapCss: {
|
|
427
425
|
itemDisabled: string;
|
428
426
|
switch: string;
|
429
427
|
slider: string;
|
430
|
-
sliderText: string;
|
431
428
|
label: string;
|
432
429
|
disabledLabel: string;
|
433
430
|
materialDecorator: string;
|
@@ -742,7 +739,6 @@ export declare var defaultBootstrapMaterialCss: {
|
|
742
739
|
itemDisabled: string;
|
743
740
|
switch: string;
|
744
741
|
slider: string;
|
745
|
-
sliderText: string;
|
746
742
|
label: string;
|
747
743
|
disabledLabel: string;
|
748
744
|
materialDecorator: string;
|
@@ -1096,6 +1092,7 @@ export declare var defaultV2Css: {
|
|
1096
1092
|
labelChecked: string;
|
1097
1093
|
itemControl: string;
|
1098
1094
|
itemDecorator: string;
|
1095
|
+
itemSvgIconId: string;
|
1099
1096
|
controlLabel: string;
|
1100
1097
|
materialDecorator: string;
|
1101
1098
|
other: string;
|
@@ -1297,6 +1294,22 @@ export declare var defaultV2Css: {
|
|
1297
1294
|
buttonCollapsed: string;
|
1298
1295
|
};
|
1299
1296
|
};
|
1297
|
+
ranking: {
|
1298
|
+
root: string;
|
1299
|
+
rootMobileMod: string;
|
1300
|
+
rootDragMod: string;
|
1301
|
+
item: string;
|
1302
|
+
itemContent: string;
|
1303
|
+
itemIndex: string;
|
1304
|
+
controlLabel: string;
|
1305
|
+
itemGhostNode: string;
|
1306
|
+
itemIconContainer: string;
|
1307
|
+
itemIcon: string;
|
1308
|
+
itemIconHoverMod: string;
|
1309
|
+
itemIconFocusMod: string;
|
1310
|
+
itemGhostMod: string;
|
1311
|
+
itemDragMod: string;
|
1312
|
+
};
|
1300
1313
|
};
|
1301
1314
|
|
1302
1315
|
export declare var modernCss: {
|
@@ -1436,6 +1449,7 @@ export declare var modernCss: {
|
|
1436
1449
|
labelChecked: string;
|
1437
1450
|
itemControl: string;
|
1438
1451
|
itemDecorator: string;
|
1452
|
+
itemSvgIconId: string;
|
1439
1453
|
controlLabel: string;
|
1440
1454
|
materialDecorator: string;
|
1441
1455
|
other: string;
|
@@ -1496,7 +1510,6 @@ export declare var modernCss: {
|
|
1496
1510
|
itemDisabled: string;
|
1497
1511
|
switch: string;
|
1498
1512
|
slider: string;
|
1499
|
-
sliderText: string;
|
1500
1513
|
label: string;
|
1501
1514
|
disabledLabel: string;
|
1502
1515
|
materialDecorator: string;
|
@@ -3201,7 +3214,7 @@ export declare class Base {
|
|
3201
3214
|
* @param val new property value
|
3202
3215
|
*/
|
3203
3216
|
setPropertyValue(name: string, val: any): void;
|
3204
|
-
protected setArrayPropertyDirectly(name: string, val: any): void;
|
3217
|
+
protected setArrayPropertyDirectly(name: string, val: any, sendNotification?: boolean): void;
|
3205
3218
|
protected setPropertyValueDirectly(name: string, val: any): void;
|
3206
3219
|
protected clearPropertyValue(name: string): void;
|
3207
3220
|
onPropertyValueChangedCallback(name: string, oldValue: any, newValue: any, sender: Base, arrayChanges: ArrayChanges): void;
|
@@ -3236,7 +3249,7 @@ export declare class Base {
|
|
3236
3249
|
*/
|
3237
3250
|
unRegisterFunctionOnPropertiesValueChanged(names: Array<string>, key?: string): void;
|
3238
3251
|
createCustomLocalizableObj(name: string): void;
|
3239
|
-
protected createLocalizableString(name: string, owner: ILocalizableOwner, useMarkDown?: boolean,
|
3252
|
+
protected createLocalizableString(name: string, owner: ILocalizableOwner, useMarkDown?: boolean, defaultStr?: boolean | string): LocalizableString;
|
3240
3253
|
getLocalizableString(name: string): LocalizableString;
|
3241
3254
|
getLocalizableStringText(name: string, defaultStr?: string): string;
|
3242
3255
|
setLocalizableStringText(name: string, value: string): void;
|
@@ -3336,6 +3349,7 @@ export interface ISurvey extends ITextProcessor, ISurveyErrorOwner {
|
|
3336
3349
|
requiredText: string;
|
3337
3350
|
beforeSettingQuestionErrors(question: IQuestion, errors: Array<SurveyError>): void;
|
3338
3351
|
beforeSettingPanelErrors(question: IPanel, errors: Array<SurveyError>): void;
|
3352
|
+
getSurveyErrorCustomText(obj: Base, text: string, error: SurveyError): string;
|
3339
3353
|
getElementTitleTagName(element: Base, tagName: string): string;
|
3340
3354
|
questionTitlePattern: string;
|
3341
3355
|
getUpdatedQuestionTitle(question: IQuestion, title: string): string;
|
@@ -6842,9 +6856,7 @@ export declare class QuestionSelectBase extends Question {
|
|
6842
6856
|
/**
|
6843
6857
|
* Use this property to set the place holder text for other or comment field .
|
6844
6858
|
*/
|
6845
|
-
|
6846
|
-
set otherPlaceHolder(val: string);
|
6847
|
-
get locOtherPlaceHolder(): LocalizableString;
|
6859
|
+
otherPlaceHolder: string;
|
6848
6860
|
/**
|
6849
6861
|
* The text that shows when the other item is choosed by the other input is empty.
|
6850
6862
|
*/
|
@@ -7638,6 +7650,7 @@ export declare class QuestionBooleanModel extends Question {
|
|
7638
7650
|
get labelTrue(): any;
|
7639
7651
|
set labelTrue(val: any);
|
7640
7652
|
get locLabelTrue(): LocalizableString;
|
7653
|
+
get isDeterminated(): boolean;
|
7641
7654
|
/**
|
7642
7655
|
* Set this property, if you want to have a different label for state when check is unset.
|
7643
7656
|
*/
|
@@ -7719,11 +7732,13 @@ export declare class QuestionImagePickerModel extends QuestionCheckboxBase {
|
|
7719
7732
|
*/
|
7720
7733
|
get imageHeight(): string;
|
7721
7734
|
set imageHeight(val: string);
|
7735
|
+
get renderedImageHeight(): string;
|
7722
7736
|
/**
|
7723
7737
|
* The image width.
|
7724
7738
|
*/
|
7725
7739
|
get imageWidth(): string;
|
7726
7740
|
set imageWidth(val: string);
|
7741
|
+
get renderedImageWidth(): string;
|
7727
7742
|
/**
|
7728
7743
|
* The image fit mode.
|
7729
7744
|
*/
|
@@ -7736,6 +7751,7 @@ export declare class QuestionImagePickerModel extends QuestionCheckboxBase {
|
|
7736
7751
|
set contentMode(val: string);
|
7737
7752
|
protected convertDefaultValue(val: any): any;
|
7738
7753
|
get hasColumns(): boolean;
|
7754
|
+
get inputType(): "checkbox" | "radio";
|
7739
7755
|
}
|
7740
7756
|
|
7741
7757
|
/**
|
@@ -8513,6 +8529,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
8513
8529
|
* <br/> `sender` - the survey object that fires the event.
|
8514
8530
|
* <br/> `options.text` - an error text.
|
8515
8531
|
* <br/> `options.error` - an instance of the `SurveyError` object.
|
8532
|
+
* <br/> `options.obj` - an instance of Question, Panel or Survey object to where error is located.
|
8516
8533
|
* <br/> `options.name` - the error name. The following error names are available:
|
8517
8534
|
* required, requireoneanswer, requirenumeric, exceedsize, webrequest, webrequestempty, otherempty,
|
8518
8535
|
* uploadingfile, requiredinallrowserror, minrowcounterror, keyduplicationerror, custom
|
@@ -9321,6 +9338,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
9321
9338
|
getProcessedText(text: string): string;
|
9322
9339
|
getLocString(str: string): any;
|
9323
9340
|
getErrorCustomText(text: string, error: SurveyError): string;
|
9341
|
+
getSurveyErrorCustomText(obj: Base, text: string, error: SurveyError): string;
|
9324
9342
|
/**
|
9325
9343
|
* Returns the text that is displayed when there are no any visible pages and questiona.
|
9326
9344
|
*/
|
@@ -11378,6 +11396,10 @@ export declare class PopupUtils {
|
|
11378
11396
|
height: number;
|
11379
11397
|
top: number;
|
11380
11398
|
};
|
11399
|
+
static updateHorizontalDimensions(left: number, width: number, windowWidth: number, horizontalPosition: HorizontalPosition): {
|
11400
|
+
width: number;
|
11401
|
+
left: number;
|
11402
|
+
};
|
11381
11403
|
static updateVerticalPosition(targetRect: ClientRect, height: number, verticalPosition: VerticalPosition, showPointer: boolean, windowHeight: number): VerticalPosition;
|
11382
11404
|
static calculatePopupDirection(verticalPosition: VerticalPosition, horizontalPosition: HorizontalPosition): string;
|
11383
11405
|
static calculatePointerTarget(targetRect: ClientRect, top: number, left: number, verticalPosition: VerticalPosition, horizontalPosition: HorizontalPosition): INumberPosition;
|