survey-react 1.9.114 → 1.9.115
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 +113 -24
- 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 +67 -5
- package/survey.react.js +331 -120
- 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
@@ -96,6 +96,8 @@ declare module "localization/english" {
|
|
96
96
|
emptyRowsText: string;
|
97
97
|
addPanel: string;
|
98
98
|
removePanel: string;
|
99
|
+
showDetails: string;
|
100
|
+
hideDetails: string;
|
99
101
|
choices_Item: string;
|
100
102
|
matrix_column: string;
|
101
103
|
matrix_row: string;
|
@@ -213,6 +215,8 @@ declare module "surveyStrings" {
|
|
213
215
|
emptyRowsText: string;
|
214
216
|
addPanel: string;
|
215
217
|
removePanel: string;
|
218
|
+
showDetails: string;
|
219
|
+
hideDetails: string;
|
216
220
|
choices_Item: string;
|
217
221
|
matrix_column: string;
|
218
222
|
matrix_row: string;
|
@@ -632,6 +636,11 @@ declare module "jsonobject" {
|
|
632
636
|
className: string;
|
633
637
|
constructor(propertyName: string, className: string);
|
634
638
|
}
|
639
|
+
export class JsonRequiredArrayPropertyError extends JsonError {
|
640
|
+
propertyName: string;
|
641
|
+
className: string;
|
642
|
+
constructor(propertyName: string, className: string);
|
643
|
+
}
|
635
644
|
export class JsonObject {
|
636
645
|
private static typePropertyName;
|
637
646
|
private static positionPropertyName;
|
@@ -647,7 +656,7 @@ declare module "jsonobject" {
|
|
647
656
|
private addDynamicProperties;
|
648
657
|
private propertiesToJson;
|
649
658
|
valueToJson(obj: any, result: any, property: JsonObjectProperty, storeDefaults?: boolean): void;
|
650
|
-
valueToObj(value: any, obj: any, property: JsonObjectProperty): void;
|
659
|
+
valueToObj(value: any, obj: any, property: JsonObjectProperty, jsonObj?: any): void;
|
651
660
|
private removePos;
|
652
661
|
private removePosFromObj;
|
653
662
|
private isValueArray;
|
@@ -763,6 +772,9 @@ declare module "expressions/expressions" {
|
|
763
772
|
getType(): string;
|
764
773
|
toString(func?: (op: Operand) => string): string;
|
765
774
|
protected isContentEqual(op: Operand): boolean;
|
775
|
+
hasFunction(): boolean;
|
776
|
+
hasAsyncFunction(): boolean;
|
777
|
+
addToAsyncList(list: Array<FunctionOperand>): void;
|
766
778
|
evaluate(processValue?: ProcessValue): boolean;
|
767
779
|
setVariables(variables: Array<string>): void;
|
768
780
|
}
|
@@ -1367,6 +1379,7 @@ declare module "actions/action" {
|
|
1367
1379
|
* @see visible
|
1368
1380
|
*/
|
1369
1381
|
enabled?: boolean;
|
1382
|
+
enabledIf?: () => boolean;
|
1370
1383
|
/**
|
1371
1384
|
* Specifies the visibility of the action item's title.
|
1372
1385
|
* @see title
|
@@ -1567,6 +1580,7 @@ declare module "actions/action" {
|
|
1567
1580
|
getRendererContext(locStr: LocalizableString): any;
|
1568
1581
|
setVisible(val: boolean): void;
|
1569
1582
|
getVisible(): boolean;
|
1583
|
+
enabledIf?: () => boolean;
|
1570
1584
|
setEnabled(val: boolean): void;
|
1571
1585
|
getEnabled(): boolean;
|
1572
1586
|
setComponent(val: string): void;
|
@@ -1977,6 +1991,7 @@ declare module "defaultCss/defaultV2Css" {
|
|
1977
1991
|
root: string;
|
1978
1992
|
small: string;
|
1979
1993
|
controlDisabled: string;
|
1994
|
+
constrolWithCharacterCounter: string;
|
1980
1995
|
content: string;
|
1981
1996
|
remainingCharacterCounter: string;
|
1982
1997
|
onError: string;
|
@@ -1988,6 +2003,7 @@ declare module "defaultCss/defaultV2Css" {
|
|
1988
2003
|
itemLabelOnError: string;
|
1989
2004
|
itemLabelAllowFocus: string;
|
1990
2005
|
itemLabelAnswered: string;
|
2006
|
+
itemWithCharacterCounter: string;
|
1991
2007
|
item: string;
|
1992
2008
|
itemTitle: string;
|
1993
2009
|
content: string;
|
@@ -2085,6 +2101,7 @@ declare module "defaultCss/defaultV2Css" {
|
|
2085
2101
|
rootScroll: string;
|
2086
2102
|
root: string;
|
2087
2103
|
noHeader: string;
|
2104
|
+
hasFooter: string;
|
2088
2105
|
rootVerticalAlignTop: string;
|
2089
2106
|
rootVerticalAlignMiddle: string;
|
2090
2107
|
tableWrapper: string;
|
@@ -2095,6 +2112,9 @@ declare module "defaultCss/defaultV2Css" {
|
|
2095
2112
|
errorsCellBottom: string;
|
2096
2113
|
itemCell: string;
|
2097
2114
|
row: string;
|
2115
|
+
expandedRow: string;
|
2116
|
+
rowHasPanel: string;
|
2117
|
+
rowHasEndActions: string;
|
2098
2118
|
headerCell: string;
|
2099
2119
|
rowTextCell: string;
|
2100
2120
|
columnTitleCell: string;
|
@@ -2106,6 +2126,8 @@ declare module "defaultCss/defaultV2Css" {
|
|
2106
2126
|
detailIconId: string;
|
2107
2127
|
detailIconExpandedId: string;
|
2108
2128
|
detailPanelCell: string;
|
2129
|
+
detailRowCell: string;
|
2130
|
+
actionsCellPrefix: string;
|
2109
2131
|
actionsCell: string;
|
2110
2132
|
actionsCellDrag: string;
|
2111
2133
|
emptyCell: string;
|
@@ -2119,10 +2141,14 @@ declare module "defaultCss/defaultV2Css" {
|
|
2119
2141
|
empty: string;
|
2120
2142
|
root: string;
|
2121
2143
|
noHeader: string;
|
2144
|
+
hasFooter: string;
|
2122
2145
|
tableWrapper: string;
|
2123
2146
|
content: string;
|
2124
2147
|
cell: string;
|
2125
2148
|
row: string;
|
2149
|
+
rowHasPanel: string;
|
2150
|
+
rowHasEndActions: string;
|
2151
|
+
expandedRow: string;
|
2126
2152
|
itemCell: string;
|
2127
2153
|
headerCell: string;
|
2128
2154
|
rowTextCell: string;
|
@@ -2137,6 +2163,8 @@ declare module "defaultCss/defaultV2Css" {
|
|
2137
2163
|
detailIconId: string;
|
2138
2164
|
detailIconExpandedId: string;
|
2139
2165
|
detailPanelCell: string;
|
2166
|
+
detailRowCell: string;
|
2167
|
+
actionsCellPrefix: string;
|
2140
2168
|
actionsCell: string;
|
2141
2169
|
actionsCellDrag: string;
|
2142
2170
|
buttonAdd: string;
|
@@ -2246,6 +2274,7 @@ declare module "defaultCss/defaultV2Css" {
|
|
2246
2274
|
removeFileButton: string;
|
2247
2275
|
dragAreaPlaceholder: string;
|
2248
2276
|
imageWrapper: string;
|
2277
|
+
imageWrapperDefaultImage: string;
|
2249
2278
|
single: string;
|
2250
2279
|
singleImage: string;
|
2251
2280
|
mobile: string;
|
@@ -3282,8 +3311,15 @@ declare module "utils/camera" {
|
|
3282
3311
|
private static cameraFacingMode;
|
3283
3312
|
private static canSwitchFacingMode;
|
3284
3313
|
hasCamera(callback: (res: boolean) => void): void;
|
3285
|
-
getMediaConstraints(
|
3286
|
-
|
3314
|
+
getMediaConstraints(videoSize?: {
|
3315
|
+
width?: number;
|
3316
|
+
height?: number;
|
3317
|
+
}): MediaStreamConstraints;
|
3318
|
+
startVideo(videoElementId: string, callback: (stream: MediaStream) => void, imageWidth?: number, imageHeight?: number): void;
|
3319
|
+
getImageSize(videoEl: HTMLVideoElement): {
|
3320
|
+
width: number;
|
3321
|
+
height: number;
|
3322
|
+
};
|
3287
3323
|
snap(videoElementId: string, callback: BlobCallback): boolean;
|
3288
3324
|
private canFlipValue;
|
3289
3325
|
private updateCanFlipValue;
|
@@ -3477,7 +3513,7 @@ declare module "question_file" {
|
|
3477
3513
|
get isPlayingVideo(): boolean;
|
3478
3514
|
private setIsPlayingVideo;
|
3479
3515
|
private updateCurrentMode;
|
3480
|
-
private
|
3516
|
+
private updateActionsVisibility;
|
3481
3517
|
get inputTitle(): string;
|
3482
3518
|
get chooseButtonText(): string;
|
3483
3519
|
clear(doneCallback?: () => void): void;
|
@@ -3515,6 +3551,7 @@ declare module "question_file" {
|
|
3515
3551
|
private allFilesOk;
|
3516
3552
|
private isFileImage;
|
3517
3553
|
getPlainData(options?: IPlainDataOptions): IQuestionPlainData;
|
3554
|
+
getImageWrapperCss(data: any): string;
|
3518
3555
|
protected getActionsContainerCss(css: any): string;
|
3519
3556
|
getRemoveButtonCss(): string;
|
3520
3557
|
getChooseFileCss(): string;
|
@@ -4639,6 +4676,7 @@ declare module "dragdrop/dom-adapter" {
|
|
4639
4676
|
private currentY;
|
4640
4677
|
private savedTargetNode;
|
4641
4678
|
private savedTargetNodeParent;
|
4679
|
+
private savedTargetNodeIndex;
|
4642
4680
|
private scrollIntervalId;
|
4643
4681
|
constructor(dd: IDragDropEngine, longTap?: boolean);
|
4644
4682
|
private get rootElement();
|
@@ -4661,6 +4699,8 @@ declare module "dragdrop/dom-adapter" {
|
|
4661
4699
|
draggedElementShortcut: any;
|
4662
4700
|
rootContainer: HTMLElement;
|
4663
4701
|
startDrag(event: PointerEvent, draggedElement: any, parentElement?: any, draggedElementNode?: HTMLElement, preventSaveTargetNode?: boolean): void;
|
4702
|
+
private getNodeIndexInParent;
|
4703
|
+
private insertNodeToParentAtIndex;
|
4664
4704
|
}
|
4665
4705
|
}
|
4666
4706
|
declare module "dragdrop/core" {
|
@@ -4769,6 +4809,7 @@ declare module "question_matrixdropdownrendered" {
|
|
4769
4809
|
isActionsCell: boolean;
|
4770
4810
|
isErrorsCell: boolean;
|
4771
4811
|
isDragHandlerCell: boolean;
|
4812
|
+
isDetailRowCell: boolean;
|
4772
4813
|
private classNameValue;
|
4773
4814
|
constructor();
|
4774
4815
|
get hasQuestion(): boolean;
|
@@ -4796,6 +4837,7 @@ declare module "question_matrixdropdownrendered" {
|
|
4796
4837
|
isGhostRow: boolean;
|
4797
4838
|
isAdditionalClasses: boolean;
|
4798
4839
|
visible: boolean;
|
4840
|
+
hasEndActions: boolean;
|
4799
4841
|
row: MatrixDropdownRowModelBase;
|
4800
4842
|
isErrorsRow: boolean;
|
4801
4843
|
private static counter;
|
@@ -7375,6 +7417,7 @@ declare module "notifier" {
|
|
7375
7417
|
}
|
7376
7418
|
declare module "question_textbase" {
|
7377
7419
|
import { Question } from "question";
|
7420
|
+
import { CssClassBuilder } from "utils/cssClassBuilder";
|
7378
7421
|
import { LocalizableString } from "localizablestring";
|
7379
7422
|
import { Base } from "base";
|
7380
7423
|
import { ISurveyImpl } from "base-interfaces";
|
@@ -7435,6 +7478,7 @@ declare module "question_textbase" {
|
|
7435
7478
|
protected getValueSeparator(): string;
|
7436
7479
|
disableNativeUndoRedo: boolean;
|
7437
7480
|
protected checkForUndo(event: KeyboardEvent): void;
|
7481
|
+
protected getControlCssClassBuilder(): CssClassBuilder;
|
7438
7482
|
getControlClass(): string;
|
7439
7483
|
get isNewA11yStructure(): boolean;
|
7440
7484
|
}
|
@@ -7444,6 +7488,7 @@ declare module "question_text" {
|
|
7444
7488
|
import { HashTable } from "helpers";
|
7445
7489
|
import { SurveyError } from "survey-error";
|
7446
7490
|
import { QuestionTextBase } from "question_textbase";
|
7491
|
+
import { CssClassBuilder } from "utils/cssClassBuilder";
|
7447
7492
|
/**
|
7448
7493
|
* A class that describes the Single-Line Input question type.
|
7449
7494
|
*
|
@@ -7557,6 +7602,7 @@ declare module "question_text" {
|
|
7557
7602
|
protected setNewValue(newValue: any): void;
|
7558
7603
|
protected correctValueType(newValue: any): any;
|
7559
7604
|
protected hasPlaceholder(): boolean;
|
7605
|
+
protected getControlCssClassBuilder(): CssClassBuilder;
|
7560
7606
|
isReadOnlyRenderDiv(): boolean;
|
7561
7607
|
get inputStyle(): any;
|
7562
7608
|
private _isWaitingForEnter;
|
@@ -7664,6 +7710,11 @@ declare module "question_multipletext" {
|
|
7664
7710
|
*/
|
7665
7711
|
get size(): number;
|
7666
7712
|
set size(val: number);
|
7713
|
+
/**
|
7714
|
+
* An expression used to calculate the [defaultValue](https://surveyjs.io/form-library/documentation/question#defaultValue).
|
7715
|
+
*/
|
7716
|
+
get defaultValueExpression(): string;
|
7717
|
+
set defaultValueExpression(val: string);
|
7667
7718
|
/**
|
7668
7719
|
* The minimum value specified as an expression. For example, `"minValueExpression": "today(-1)"` sets the minimum value to yesterday.
|
7669
7720
|
*/
|
@@ -11150,6 +11201,7 @@ declare module "question" {
|
|
11150
11201
|
valueFromDataCallback: (val: any) => any;
|
11151
11202
|
valueToDataCallback: (val: any) => any;
|
11152
11203
|
onUpdateCssClassesCallback: (css: any) => void;
|
11204
|
+
setValueChangedDirectlyCallback: (val: boolean) => void;
|
11153
11205
|
onGetSurvey: () => ISurvey;
|
11154
11206
|
private locProcessedTitle;
|
11155
11207
|
private isReadyValue;
|
@@ -11801,6 +11853,7 @@ declare module "question" {
|
|
11801
11853
|
protected isDefaultValueEmpty(): boolean;
|
11802
11854
|
protected getDefaultRunner(runner: ExpressionRunner, expression: string): ExpressionRunner;
|
11803
11855
|
protected setDefaultValue(): void;
|
11856
|
+
private setDefaultValueCore;
|
11804
11857
|
protected isValueExpression(val: any): boolean;
|
11805
11858
|
protected setValueAndRunExpression(runner: ExpressionRunner, defaultValue: any, setFunc: (val: any) => void, values?: HashTable<any>, properties?: HashTable<any>): void;
|
11806
11859
|
protected convertFuncValuetoQuestionValue(val: any): any;
|
@@ -11900,9 +11953,10 @@ declare module "question" {
|
|
11900
11953
|
protected setNewComment(newValue: string): void;
|
11901
11954
|
protected getValidName(name: string): string;
|
11902
11955
|
updateValueFromSurvey(newValue: any): void;
|
11956
|
+
private updateValueFromSurveyCore;
|
11903
11957
|
updateCommentFromSurvey(newValue: any): any;
|
11904
11958
|
protected onChangeQuestionValue(newValue: any): void;
|
11905
|
-
protected setValueChangedDirectly(): void;
|
11959
|
+
protected setValueChangedDirectly(val: boolean): void;
|
11906
11960
|
protected setQuestionValue(newValue: any, updateIsAnswered?: boolean): void;
|
11907
11961
|
onSurveyValueChanged(newValue: any): void;
|
11908
11962
|
setVisibleIndex(val: number): number;
|
@@ -14447,6 +14501,8 @@ declare module "questionnonvalue" {
|
|
14447
14501
|
supportGoNextPageAutomatic(): boolean;
|
14448
14502
|
addConditionObjectsByContext(objects: Array<IConditionObject>, context: any): void;
|
14449
14503
|
getConditionJson(operator?: string, path?: string): any;
|
14504
|
+
get ariaRole(): string;
|
14505
|
+
get ariaRequired(): any;
|
14450
14506
|
}
|
14451
14507
|
}
|
14452
14508
|
declare module "question_empty" {
|
@@ -15029,6 +15085,8 @@ declare module "question_ranking" {
|
|
15029
15085
|
*/
|
15030
15086
|
get selectToRankAreasLayout(): string;
|
15031
15087
|
set selectToRankAreasLayout(val: string);
|
15088
|
+
get renderedSelectToRankAreasLayout(): string;
|
15089
|
+
isMobileMode(): boolean;
|
15032
15090
|
selectToRankEmptyRankedAreaText: string;
|
15033
15091
|
selectToRankEmptyUnrankedAreaText: string;
|
15034
15092
|
get useFullItemSizeForShortcut(): boolean;
|
@@ -15080,6 +15138,7 @@ declare module "question_comment" {
|
|
15080
15138
|
*/
|
15081
15139
|
get allowResize(): boolean;
|
15082
15140
|
set allowResize(val: boolean);
|
15141
|
+
get renderedAllowResize(): boolean;
|
15083
15142
|
get resizeStyle(): "none" | "both";
|
15084
15143
|
getType(): string;
|
15085
15144
|
afterRenderQuestionElement(el: HTMLElement): void;
|
@@ -15614,6 +15673,7 @@ declare module "question_image" {
|
|
15614
15673
|
declare module "question_signaturepad" {
|
15615
15674
|
import { Question } from "question";
|
15616
15675
|
import { ITheme } from "themes";
|
15676
|
+
export function getCanvasRatio(canvas: HTMLCanvasElement): number;
|
15617
15677
|
/**
|
15618
15678
|
* A class that describes the Signature question type.
|
15619
15679
|
*
|
@@ -16166,6 +16226,8 @@ declare module "question_custom" {
|
|
16166
16226
|
protected setQuestionValue(newValue: any, updateIsAnswered?: boolean): void;
|
16167
16227
|
onSurveyValueChanged(newValue: any): void;
|
16168
16228
|
protected getValueCore(): any;
|
16229
|
+
private isSettingValueChanged;
|
16230
|
+
protected setValueChangedDirectly(val: boolean): void;
|
16169
16231
|
protected initElement(el: SurveyElement): void;
|
16170
16232
|
updateElementCss(reNew?: boolean): void;
|
16171
16233
|
protected updateElementCssCore(cssClasses: any): void;
|