survey-react 1.10.3 → 1.10.5
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/defaultV2.css +6 -1
- package/defaultV2.css.map +1 -1
- package/defaultV2.min.css +2 -2
- 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 -14
- package/survey.react.js +291 -166
- package/survey.react.js.map +1 -1
- package/survey.react.min.js +3 -3
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
@@ -1433,6 +1433,7 @@ declare module "defaultCss/defaultV2Css" {
|
|
1433
1433
|
rootFitToContainer: string;
|
1434
1434
|
rootWrapper: string;
|
1435
1435
|
rootWrapperFixed: string;
|
1436
|
+
rootWrapperHasImage: string;
|
1436
1437
|
rootBackgroundImage: string;
|
1437
1438
|
container: string;
|
1438
1439
|
header: string;
|
@@ -3726,7 +3727,7 @@ declare module "question_file" {
|
|
3726
3727
|
*/
|
3727
3728
|
get waitForUpload(): boolean;
|
3728
3729
|
set waitForUpload(val: boolean);
|
3729
|
-
clearValue(): void;
|
3730
|
+
clearValue(keepComment?: boolean): void;
|
3730
3731
|
clearOnDeletingContainer(): void;
|
3731
3732
|
protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean): void;
|
3732
3733
|
protected uploadFiles(files: File[]): void;
|
@@ -3926,7 +3927,6 @@ declare module "question_file" {
|
|
3926
3927
|
private onChange;
|
3927
3928
|
protected onChangeQuestionValue(newValue: any): void;
|
3928
3929
|
protected calcCssClasses(css: any): any;
|
3929
|
-
updateElementCss(reNew?: boolean): void;
|
3930
3930
|
onSurveyLoad(): void;
|
3931
3931
|
protected needResponsiveness(): boolean;
|
3932
3932
|
protected supportResponsiveness(): boolean;
|
@@ -4337,7 +4337,7 @@ declare module "question_baseselect" {
|
|
4337
4337
|
protected setQuestionComment(newValue: string): void;
|
4338
4338
|
private onUpdateCommentOnAutoOtherMode;
|
4339
4339
|
private setOtherValueInternally;
|
4340
|
-
clearValue(): void;
|
4340
|
+
clearValue(keepComment?: boolean): void;
|
4341
4341
|
updateCommentFromSurvey(newValue: any): any;
|
4342
4342
|
get renderedValue(): any;
|
4343
4343
|
set renderedValue(val: any);
|
@@ -5633,7 +5633,6 @@ declare module "question_matrixdynamic" {
|
|
5633
5633
|
import { DragDropMatrixRows } from "dragdrop/matrix-rows";
|
5634
5634
|
import { IShortcutText, ISurveyImpl, IProgressInfo } from "base-interfaces";
|
5635
5635
|
import { QuestionMatrixDropdownRenderedTable } from "question_matrixdropdownrendered";
|
5636
|
-
import { MatrixDropdownColumn } from "question_matrixdropdowncolumn";
|
5637
5636
|
export class MatrixDynamicRowModel extends MatrixDropdownRowModelBase implements IShortcutText {
|
5638
5637
|
index: number;
|
5639
5638
|
private dragOrClickHelper;
|
@@ -5883,12 +5882,13 @@ declare module "question_matrixdynamic" {
|
|
5883
5882
|
get hasRowText(): boolean;
|
5884
5883
|
protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean): void;
|
5885
5884
|
private hasErrorInMinRows;
|
5886
|
-
protected
|
5885
|
+
protected getUniqueColumnsNames(): Array<string>;
|
5887
5886
|
protected generateRows(): Array<MatrixDynamicRowModel>;
|
5888
5887
|
protected createMatrixRow(value: any): MatrixDynamicRowModel;
|
5889
5888
|
private lastDeletedRow;
|
5890
5889
|
private getInsertedDeletedIndex;
|
5891
5890
|
private isEditingObjectValueChanged;
|
5891
|
+
updateValueFromSurvey(newValue: any, clearData?: boolean): void;
|
5892
5892
|
protected onBeforeValueChanged(val: any): void;
|
5893
5893
|
protected createNewValue(): any;
|
5894
5894
|
protected deleteRowValue(newValue: any, row: MatrixDropdownRowModelBase): any;
|
@@ -6919,7 +6919,7 @@ declare module "question_signaturepad" {
|
|
6919
6919
|
onBlur: (event: any) => void;
|
6920
6920
|
protected uploadResultItemToValue(r: any): any;
|
6921
6921
|
protected setValueFromResult(arg: any): void;
|
6922
|
-
clearValue(): void;
|
6922
|
+
clearValue(keepComment?: boolean): void;
|
6923
6923
|
endLoadingFromJson(): void;
|
6924
6924
|
}
|
6925
6925
|
}
|
@@ -11548,7 +11548,7 @@ declare module "survey" {
|
|
11548
11548
|
* @see addNewPage
|
11549
11549
|
*/
|
11550
11550
|
createNewPage(name: string): PageModel;
|
11551
|
-
protected questionOnValueChanging(valueName: string, newValue: any): any;
|
11551
|
+
protected questionOnValueChanging(valueName: string, newValue: any, questionValueName?: string): any;
|
11552
11552
|
protected updateQuestionValue(valueName: string, newValue: any): void;
|
11553
11553
|
private checkQuestionErrorOnValueChanged;
|
11554
11554
|
private checkQuestionErrorOnValueChangedCore;
|
@@ -13104,7 +13104,8 @@ declare module "question" {
|
|
13104
13104
|
* @see value
|
13105
13105
|
* @see comment
|
13106
13106
|
*/
|
13107
|
-
clearValue(): void;
|
13107
|
+
clearValue(keepComment?: boolean): void;
|
13108
|
+
clearValueOnly(): void;
|
13108
13109
|
unbindValue(): void;
|
13109
13110
|
createValueCopy(): any;
|
13110
13111
|
initDataUI(): void;
|
@@ -13409,6 +13410,8 @@ declare module "question" {
|
|
13409
13410
|
private initResponsiveness;
|
13410
13411
|
protected getCompactRenderAs(): string;
|
13411
13412
|
protected getDesktopRenderAs(): string;
|
13413
|
+
protected onBeforeSetCompactRenderer(): void;
|
13414
|
+
protected onBeforeSetDesktopRenderer(): void;
|
13412
13415
|
protected processResponsiveness(requiredWidth: number, availableWidth: number): any;
|
13413
13416
|
destroyResizeObserver(): void;
|
13414
13417
|
dispose(): void;
|
@@ -13745,7 +13748,7 @@ declare module "question_matrixdropdownbase" {
|
|
13745
13748
|
getFilteredValues(): any;
|
13746
13749
|
getFilteredProperties(): any;
|
13747
13750
|
runCondition(values: HashTable<any>, properties: HashTable<any>): void;
|
13748
|
-
clearValue(): void;
|
13751
|
+
clearValue(keepComment?: boolean): void;
|
13749
13752
|
onAnyValueChanged(name: string, questionName: string): void;
|
13750
13753
|
getDataValueCore(valuesHash: any, key: string): any;
|
13751
13754
|
getValue(name: string): any;
|
@@ -14116,10 +14119,14 @@ declare module "question_matrixdropdownbase" {
|
|
14116
14119
|
getAllErrors(): Array<SurveyError>;
|
14117
14120
|
private hasErrorInRows;
|
14118
14121
|
private isValueDuplicated;
|
14122
|
+
protected getUniqueColumnsNames(): Array<string>;
|
14119
14123
|
private isValueInColumnDuplicated;
|
14120
|
-
|
14121
|
-
private
|
14124
|
+
private getDuplicatedRows;
|
14125
|
+
private showDuplicatedErrorsInRows;
|
14126
|
+
private removeDuplicatedErrorsInRows;
|
14127
|
+
private getDuplicationError;
|
14122
14128
|
private addDuplicationError;
|
14129
|
+
private removeDuplicationError;
|
14123
14130
|
getFirstQuestionToFocus(withError: boolean): Question;
|
14124
14131
|
protected getFirstInputElementId(): string;
|
14125
14132
|
protected getFirstErrorInputElementId(): string;
|
@@ -15734,6 +15741,7 @@ declare module "settings" {
|
|
15734
15741
|
* A separator used in a shorthand notation that specifies a value and display text for an [`ItemValue`](https://surveyjs.io/form-library/documentation/api-reference/itemvalue) object: `"value|text"`.
|
15735
15742
|
*
|
15736
15743
|
* Default value: `"|"`
|
15744
|
+
* @see [settings.choicesSeparator](https://surveyjs.io/form-library/documentation/api-reference/settings#choicesSeparator)
|
15737
15745
|
*/
|
15738
15746
|
itemValueSeparator: string;
|
15739
15747
|
/**
|
@@ -15884,6 +15892,13 @@ declare module "settings" {
|
|
15884
15892
|
dontKnowItem: number[];
|
15885
15893
|
otherItem: number[];
|
15886
15894
|
};
|
15895
|
+
/**
|
15896
|
+
* One or several characters used to separate choice options in a list.
|
15897
|
+
*
|
15898
|
+
* Default value: `", "`
|
15899
|
+
* @see [settings.itemValueSeparator](https://surveyjs.io/form-library/documentation/api-reference/settings#itemValueSeparator)
|
15900
|
+
*/
|
15901
|
+
choicesSeparator: string;
|
15887
15902
|
/**
|
15888
15903
|
* A list of supported validators by question type.
|
15889
15904
|
*/
|
@@ -16275,7 +16290,7 @@ declare module "question_dropdown" {
|
|
16275
16290
|
protected onVisibleChoicesChanged(): void;
|
16276
16291
|
protected getFirstInputElementId(): string;
|
16277
16292
|
getInputId(): string;
|
16278
|
-
clearValue(): void;
|
16293
|
+
clearValue(keepComment?: boolean): void;
|
16279
16294
|
onClick(e: any): void;
|
16280
16295
|
onKeyUp(event: any): void;
|
16281
16296
|
dispose(): void;
|
@@ -16836,7 +16851,7 @@ declare module "question_tagbox" {
|
|
16836
16851
|
protected getFirstInputElementId(): string;
|
16837
16852
|
getInputId(): string;
|
16838
16853
|
dispose(): void;
|
16839
|
-
clearValue(): void;
|
16854
|
+
clearValue(keepComment?: boolean): void;
|
16840
16855
|
get showClearButton(): boolean;
|
16841
16856
|
get isNewA11yStructure(): boolean;
|
16842
16857
|
}
|
@@ -17512,6 +17527,8 @@ declare module "question_rating" {
|
|
17512
17527
|
* @see rateType
|
17513
17528
|
*/
|
17514
17529
|
displayMode: "dropdown" | "buttons" | "auto";
|
17530
|
+
private updateRenderAsBasedOnDisplayMode;
|
17531
|
+
onSurveyLoad(): void;
|
17515
17532
|
/**
|
17516
17533
|
* Specifies the alignment of [`minRateDescription`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#minRateDescription) and [`maxRateDescription`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#maxRateDescription) texts.
|
17517
17534
|
*
|
@@ -17602,6 +17619,7 @@ declare module "question_rating" {
|
|
17602
17619
|
get readOnlyText(): any;
|
17603
17620
|
needResponsiveWidth(): boolean;
|
17604
17621
|
protected supportResponsiveness(): boolean;
|
17622
|
+
protected onBeforeSetCompactRenderer(): void;
|
17605
17623
|
protected getCompactRenderAs(): string;
|
17606
17624
|
protected getDesktopRenderAs(): string;
|
17607
17625
|
get ariaExpanded(): string;
|
@@ -18227,6 +18245,7 @@ declare module "mask/mask_numeric" {
|
|
18227
18245
|
*/
|
18228
18246
|
max: number;
|
18229
18247
|
private calccaretPosition;
|
18248
|
+
private numericalCompositionIsEmpty;
|
18230
18249
|
displayNumber(parsedNumber: INumericalComposition, insertThousandsSeparator?: boolean, matchWholeMask?: boolean): string;
|
18231
18250
|
convertNumber(parsedNumber: INumericalComposition): number;
|
18232
18251
|
validateNumber(number: INumericalComposition, matchWholeMask: boolean): boolean;
|
@@ -18387,7 +18406,7 @@ declare module "entries/chunks/model" {
|
|
18387
18406
|
export { AnswerCountValidator, EmailValidator, NumericValidator, RegexValidator, SurveyValidator, TextValidator, ValidatorResult, ExpressionValidator, ValidatorRunner } from "validator";
|
18388
18407
|
export { ItemValue } from "itemvalue";
|
18389
18408
|
export { Base, Event, EventBase, ArrayChanges, ComputedUpdater } from "base";
|
18390
|
-
export { ISurvey, ISurveyElement, IElement, IQuestion, IPage, IPanel, ISurveyData, ITitleOwner, ISurveyLayoutElement, IPlainDataOptions as IPlainData, IShortcutText, ILoadFromJSONOptions } from "base-interfaces";
|
18409
|
+
export { ISurvey, ISurveyElement, IElement, IQuestion, IPage, IPanel, ISurveyData, ITitleOwner, ISurveyLayoutElement, IPlainDataOptions as IPlainData, IShortcutText, ILoadFromJSONOptions, ISaveToJSONOptions, HorizontalAlignment, VerticalAlignment } from "base-interfaces";
|
18391
18410
|
export { SurveyError } from "survey-error";
|
18392
18411
|
export { SurveyElementCore, SurveyElement, DragTypeOverMeEnum } from "survey-element";
|
18393
18412
|
export { CalculatedValue } from "calculatedValue";
|