survey-react 1.9.7 → 1.9.11
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 +56 -2
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/survey.css +82 -2
- package/survey.min.css +2 -2
- package/survey.react.d.ts +104 -74
- package/survey.react.js +850 -4272
- package/survey.react.min.js +3 -10
package/survey.react.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Type definition for Survey JavaScript library for React v1.9.
|
2
|
+
* Type definition for Survey JavaScript library for React v1.9.11
|
3
3
|
* Copyright (c) 2015-2022 Devsoft Baltic OÜ - https://surveyjs.io/
|
4
4
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
5
5
|
*/
|
@@ -332,6 +332,8 @@ export interface ISurvey extends ITextProcessor, ISurveyErrorOwner {
|
|
332
332
|
afterRenderPanel(panel: IElement, htmlElement: any): any;
|
333
333
|
afterRenderPage(htmlElement: any): any;
|
334
334
|
getQuestionByValueNameFromArray(valueName: string, name: string, index: number): IQuestion;
|
335
|
+
canChangeChoiceItemsVisibility(): boolean;
|
336
|
+
getChoiceItemVisibility(question: IQuestion, item: any, val: boolean): boolean;
|
335
337
|
matrixRowAdded(question: IQuestion, row: any): any;
|
336
338
|
matrixBeforeRowAdded(options: any): any;
|
337
339
|
matrixRowRemoved(question: IQuestion, rowIndex: number, row: any): any;
|
@@ -528,6 +530,7 @@ export interface ISurveyHeaderProps {
|
|
528
530
|
}
|
529
531
|
export interface IMAtrixRowProps {
|
530
532
|
model: any;
|
533
|
+
parentMatrix: any;
|
531
534
|
}
|
532
535
|
export interface IListItemProps {
|
533
536
|
model: any;
|
@@ -738,7 +741,6 @@ export declare class ButtonGroupItemModel {
|
|
738
741
|
onChange(): void;
|
739
742
|
}
|
740
743
|
export declare class ComponentCollection {
|
741
|
-
constructor();
|
742
744
|
static Instance: ComponentCollection;
|
743
745
|
customQuestionValues: any;
|
744
746
|
onCreateComposite: any;
|
@@ -778,7 +780,6 @@ export declare class ComputedUpdater<T = any> {
|
|
778
780
|
dispose(): any;
|
779
781
|
}
|
780
782
|
export declare class ConditionsParser {
|
781
|
-
constructor();
|
782
783
|
conditionError: ConditionsParserError;
|
783
784
|
static parserCache: any;
|
784
785
|
createCondition(text: string): Operand;
|
@@ -791,14 +792,12 @@ export declare class ConditionsParserError {
|
|
791
792
|
code: string;
|
792
793
|
}
|
793
794
|
export declare class CssClassBuilder {
|
794
|
-
constructor();
|
795
795
|
classes: any;
|
796
796
|
isEmpty(): boolean;
|
797
797
|
append(value: string, condition?: boolean): CssClassBuilder;
|
798
798
|
toString(): string;
|
799
799
|
}
|
800
800
|
export declare class CustomPropertiesCollection {
|
801
|
-
constructor();
|
802
801
|
static properties: IObject;
|
803
802
|
static parentClasses: any;
|
804
803
|
static addProperty(className: string, property: any): void;
|
@@ -808,7 +807,6 @@ export declare class CustomPropertiesCollection {
|
|
808
807
|
static createProperties(obj: any): void;
|
809
808
|
}
|
810
809
|
export declare class CustomWidgetCollection {
|
811
|
-
constructor();
|
812
810
|
static Instance: CustomWidgetCollection;
|
813
811
|
widgetsValues: any;
|
814
812
|
widgetsActivatedBy: any;
|
@@ -838,7 +836,6 @@ export declare class DefaultTitle extends React.Component<any, any> {
|
|
838
836
|
componentDidMount(): void;
|
839
837
|
}
|
840
838
|
export declare class DefaultTitleModel {
|
841
|
-
constructor();
|
842
839
|
static getIconCss(cssClasses: any, isCollapsed: boolean): string;
|
843
840
|
}
|
844
841
|
export declare class Dependencies {
|
@@ -861,8 +858,20 @@ export declare class DragDropInfo {
|
|
861
858
|
isBottom: boolean;
|
862
859
|
isEdge: boolean;
|
863
860
|
}
|
861
|
+
export declare class DragOrClickHelper {
|
862
|
+
constructor(dragHandler: any);
|
863
|
+
pointerDownEvent: any;
|
864
|
+
currentTarget: any;
|
865
|
+
startX: any;
|
866
|
+
startY: any;
|
867
|
+
currentX: any;
|
868
|
+
currentY: any;
|
869
|
+
itemModel: any;
|
870
|
+
onPointerDown(pointerDownEvent: any, itemModel?: any): void;
|
871
|
+
onPointerUp: any;
|
872
|
+
tryToStartDrag: any;
|
873
|
+
}
|
864
874
|
export declare class ElementFactory {
|
865
|
-
constructor();
|
866
875
|
static Instance: ElementFactory;
|
867
876
|
creatorHash: any;
|
868
877
|
registerElement(elementType: string, elementCreator: any): void;
|
@@ -872,7 +881,6 @@ export declare class ElementFactory {
|
|
872
881
|
createElement(elementType: string, name: string): IElement;
|
873
882
|
}
|
874
883
|
export declare class Event<T, Options> {
|
875
|
-
constructor();
|
876
884
|
onCallbacksChanged: any;
|
877
885
|
protected callbacks: any;
|
878
886
|
get isEmpty(): boolean;
|
@@ -901,7 +909,6 @@ export declare class ExpressionRunnerBase {
|
|
901
909
|
protected doOnComplete(res: any): void;
|
902
910
|
}
|
903
911
|
export declare class FunctionFactory {
|
904
|
-
constructor();
|
905
912
|
static Instance: FunctionFactory;
|
906
913
|
functionHash: any;
|
907
914
|
isAsyncHash: any;
|
@@ -914,7 +921,6 @@ export declare class FunctionFactory {
|
|
914
921
|
run(name: string, params: any, properties?: any): any;
|
915
922
|
}
|
916
923
|
export declare class Helpers {
|
917
|
-
constructor();
|
918
924
|
/*
|
919
925
|
* A static methods that returns true if a value undefined, null, empty string or empty array.
|
920
926
|
*/
|
@@ -946,7 +952,6 @@ export declare class JsonError {
|
|
946
952
|
* The metadata object. It contains object properties' runtime information and allows you to modify it.
|
947
953
|
*/
|
948
954
|
export declare class JsonMetadata {
|
949
|
-
constructor();
|
950
955
|
classes: any;
|
951
956
|
alternativeNames: any;
|
952
957
|
childrenClasses: any;
|
@@ -991,7 +996,6 @@ export declare class JsonMetadataClass {
|
|
991
996
|
createProperty(propInfo: any): JsonObjectProperty;
|
992
997
|
}
|
993
998
|
export declare class JsonObject {
|
994
|
-
constructor();
|
995
999
|
static typePropertyName: string;
|
996
1000
|
static positionPropertyName: string;
|
997
1001
|
static metaDataValue: JsonMetadata;
|
@@ -1042,7 +1046,6 @@ export declare class MatrixDropdownCell {
|
|
1042
1046
|
runCondition(values: any, properties: any): void;
|
1043
1047
|
}
|
1044
1048
|
export declare class Operand {
|
1045
|
-
constructor();
|
1046
1049
|
toString(func?: any): string;
|
1047
1050
|
getType(): string;
|
1048
1051
|
evaluate(processValue?: ProcessValue): any;
|
@@ -1055,19 +1058,17 @@ export declare class Operand {
|
|
1055
1058
|
protected areOperatorsEquals(op1: Operand, op2: Operand): boolean;
|
1056
1059
|
}
|
1057
1060
|
export declare class OperandMaker {
|
1058
|
-
constructor();
|
1059
1061
|
static unaryFunctions: any;
|
1060
1062
|
static binaryFunctions: any;
|
1061
1063
|
static signs: any;
|
1062
1064
|
}
|
1063
1065
|
export declare class PopupUtils {
|
1064
|
-
constructor();
|
1065
1066
|
static calculatePosition(targetRect: any, height: number, width: number, verticalPosition: any, horizontalPosition: any, showPointer: boolean): INumberPosition;
|
1066
1067
|
static updateVerticalDimensions(top: number, height: number, windowHeight: number): any;
|
1067
1068
|
static updateHorizontalDimensions(left: number, width: number, windowWidth: number, horizontalPosition: any): any;
|
1068
1069
|
static updateVerticalPosition(targetRect: any, height: number, verticalPosition: any, showPointer: boolean, windowHeight: number): any;
|
1069
1070
|
static calculatePopupDirection(verticalPosition: any, horizontalPosition: any): string;
|
1070
|
-
static calculatePointerTarget(targetRect: any, top: number, left: number, verticalPosition: any, horizontalPosition: any): INumberPosition;
|
1071
|
+
static calculatePointerTarget(targetRect: any, top: number, left: number, verticalPosition: any, horizontalPosition: any, width?: number, margins?: number): INumberPosition;
|
1071
1072
|
}
|
1072
1073
|
export declare class ProcessValue {
|
1073
1074
|
constructor();
|
@@ -1099,7 +1100,6 @@ export declare class QuestionCustomWidget {
|
|
1099
1100
|
get pdfRender(): any;
|
1100
1101
|
}
|
1101
1102
|
export declare class QuestionFactory {
|
1102
|
-
constructor();
|
1103
1103
|
static Instance: QuestionFactory;
|
1104
1104
|
static get DefaultChoices(): any;
|
1105
1105
|
static get DefaultColums(): any;
|
@@ -1153,7 +1153,6 @@ export declare class QuestionMatrixDropdownRenderedCell {
|
|
1153
1153
|
calculateFinalClassName(matrixCssClasses: any): string;
|
1154
1154
|
}
|
1155
1155
|
export declare class ReactElementFactory {
|
1156
|
-
constructor();
|
1157
1156
|
static Instance: ReactElementFactory;
|
1158
1157
|
creatorHash: any;
|
1159
1158
|
registerElement(elementType: string, elementCreator: any): void;
|
@@ -1162,7 +1161,6 @@ export declare class ReactElementFactory {
|
|
1162
1161
|
createElement(elementType: string, params: any): any;
|
1163
1162
|
}
|
1164
1163
|
export declare class ReactQuestionFactory {
|
1165
|
-
constructor();
|
1166
1164
|
static Instance: ReactQuestionFactory;
|
1167
1165
|
creatorHash: any;
|
1168
1166
|
registerQuestion(questionType: string, questionCreator: any): void;
|
@@ -1170,7 +1168,6 @@ export declare class ReactQuestionFactory {
|
|
1170
1168
|
createQuestion(questionType: string, params: any): any;
|
1171
1169
|
}
|
1172
1170
|
export declare class RendererFactory {
|
1173
|
-
constructor();
|
1174
1171
|
static Instance: RendererFactory;
|
1175
1172
|
renderersHash: any;
|
1176
1173
|
unregisterRenderer(questionType: string, rendererAs: string): void;
|
@@ -1285,12 +1282,10 @@ export declare class SurveyProgressButtonsModel {
|
|
1285
1282
|
clickListElement(index: number): void;
|
1286
1283
|
}
|
1287
1284
|
export declare class SurveyProgressModel {
|
1288
|
-
constructor();
|
1289
1285
|
static getProgressTextInBarCss(css: any): string;
|
1290
1286
|
static getProgressTextUnderBarCss(css: any): string;
|
1291
1287
|
}
|
1292
1288
|
export declare class SurveyTimer {
|
1293
|
-
constructor();
|
1294
1289
|
static instanceValue: SurveyTimer;
|
1295
1290
|
static get instance(): SurveyTimer;
|
1296
1291
|
listenerCounter: number;
|
@@ -1316,6 +1311,17 @@ export declare class SvgIcon extends React.Component<any, any> {
|
|
1316
1311
|
render(): any;
|
1317
1312
|
componentDidMount(): void;
|
1318
1313
|
}
|
1314
|
+
export declare class SvgIconData {
|
1315
|
+
}
|
1316
|
+
export declare class SvgIconRegistry {
|
1317
|
+
icons: SvgIconData;
|
1318
|
+
iconPrefix: string;
|
1319
|
+
registerIconFromSymbol(iconId: string, iconSymbolSvg: string): void;
|
1320
|
+
registerIconFromSvgViaElement(iconId: string, iconSvg: string, iconPrefix?: string): void;
|
1321
|
+
registerIconFromSvg(iconId: string, iconSvg: string, iconPrefix?: string): boolean;
|
1322
|
+
iconsRenderedHtml(): any;
|
1323
|
+
renderIcons(): void;
|
1324
|
+
}
|
1319
1325
|
export declare class SyntaxError {
|
1320
1326
|
constructor(message: string, expected: any, found: string, location: IFileRange);
|
1321
1327
|
static buildMessage(expected: any, found: string): string;
|
@@ -1326,7 +1332,6 @@ export declare class SyntaxError {
|
|
1326
1332
|
name: string;
|
1327
1333
|
}
|
1328
1334
|
export declare class TextPreProcessor {
|
1329
|
-
constructor();
|
1330
1335
|
_unObservableValues: any;
|
1331
1336
|
onProcess: any;
|
1332
1337
|
process(text: string, returnDisplayValue?: boolean, doEncoding?: boolean): string;
|
@@ -1334,7 +1339,6 @@ export declare class TextPreProcessor {
|
|
1334
1339
|
get hasAllValuesOnLastRun(): boolean;
|
1335
1340
|
}
|
1336
1341
|
export declare class TextPreProcessorItem {
|
1337
|
-
constructor();
|
1338
1342
|
start: number;
|
1339
1343
|
end: number;
|
1340
1344
|
}
|
@@ -1375,13 +1379,11 @@ export declare class ValidatorResult {
|
|
1375
1379
|
error: SurveyError;
|
1376
1380
|
}
|
1377
1381
|
export declare class ValidatorRunner {
|
1378
|
-
constructor();
|
1379
1382
|
asyncValidators: any;
|
1380
1383
|
onAsyncCompleted: any;
|
1381
1384
|
run(owner: IValidatorOwner): Array<SurveyError>;
|
1382
1385
|
}
|
1383
1386
|
export declare class XmlParser {
|
1384
|
-
constructor();
|
1385
1387
|
parser: any;
|
1386
1388
|
assignValue(target: any, name: string, value: any): void;
|
1387
1389
|
xml2Json(xmlNode: any, result: any): void;
|
@@ -1656,7 +1658,7 @@ export declare class DragDropCore<T> extends Base {
|
|
1656
1658
|
protected draggedElementShortcut: any;
|
1657
1659
|
scrollIntervalId: number;
|
1658
1660
|
protected allowDropHere: boolean;
|
1659
|
-
startDrag(event: any, draggedElement: any, parentElement?: any, draggedElementNode?: any): void;
|
1661
|
+
startDrag(event: any, draggedElement: any, parentElement?: any, draggedElementNode?: any, preventSaveTargetNode?: boolean): void;
|
1660
1662
|
timeoutID: any;
|
1661
1663
|
startX: number;
|
1662
1664
|
startY: number;
|
@@ -1692,7 +1694,6 @@ export declare class DragDropCore<T> extends Base {
|
|
1692
1694
|
protected doClear(): void;
|
1693
1695
|
}
|
1694
1696
|
export declare class EventBase<T> extends Event<any, any> {
|
1695
|
-
constructor();
|
1696
1697
|
}
|
1697
1698
|
export declare class ExceedSizeError extends SurveyError {
|
1698
1699
|
constructor(maxSize: number, errorOwner?: ISurveyErrorOwner);
|
@@ -1762,7 +1763,7 @@ export declare class ItemValue extends Base implements ILocalizableOwner, IShort
|
|
1762
1763
|
static getItemByValue(items: any, val: any): ItemValue;
|
1763
1764
|
static getTextOrHtmlByValue(items: any, val: any): string;
|
1764
1765
|
static locStrsChanged(items: any): void;
|
1765
|
-
static runConditionsForItems(items: any, filteredItems: any, runner: ConditionRunner, values: any, properties: any, useItemExpression?: boolean): boolean;
|
1766
|
+
static runConditionsForItems(items: any, filteredItems: any, runner: ConditionRunner, values: any, properties: any, useItemExpression?: boolean, onItemCallBack?: any): boolean;
|
1766
1767
|
static runEnabledConditionsForItems(items: any, runner: ConditionRunner, values: any, properties: any, onItemCallBack?: any): boolean;
|
1767
1768
|
ownerPropertyName: string;
|
1768
1769
|
locTextValue: LocalizableString;
|
@@ -2193,7 +2194,9 @@ export declare class MatrixDropdownTotalCell extends MatrixDropdownCell {
|
|
2193
2194
|
export declare class MatrixRow extends SurveyElementBase<IMAtrixRowProps, any> {
|
2194
2195
|
constructor(props: IMAtrixRowProps);
|
2195
2196
|
get model(): any;
|
2197
|
+
get parentMatrix(): any;
|
2196
2198
|
protected getStateElement(): any;
|
2199
|
+
protected onPointerDownHandler: any;
|
2197
2200
|
render(): any;
|
2198
2201
|
}
|
2199
2202
|
export declare class MatrixRowModel extends Base {
|
@@ -2410,7 +2413,7 @@ export declare class QuestionMatrixDropdownRenderedRow extends Base {
|
|
2410
2413
|
constructor(cssClasses: any, isDetailRow?: boolean);
|
2411
2414
|
cssClasses: any;
|
2412
2415
|
isDetailRow: boolean;
|
2413
|
-
|
2416
|
+
isGhostRow: boolean;
|
2414
2417
|
isAdditionalClasses: boolean;
|
2415
2418
|
row: MatrixDropdownRowModelBase;
|
2416
2419
|
static counter: number;
|
@@ -2429,6 +2432,8 @@ export declare class QuestionMatrixDropdownRenderedTable extends Base {
|
|
2429
2432
|
hasRemoveRowsValue: boolean;
|
2430
2433
|
rowsActions: any;
|
2431
2434
|
cssClasses: any;
|
2435
|
+
renderedRowsChangedCallback: any;
|
2436
|
+
rows: any;
|
2432
2437
|
get showTable(): boolean;
|
2433
2438
|
get showHeader(): boolean;
|
2434
2439
|
get showAddRowOnTop(): boolean;
|
@@ -2439,7 +2444,6 @@ export declare class QuestionMatrixDropdownRenderedTable extends Base {
|
|
2439
2444
|
isRequireReset(): boolean;
|
2440
2445
|
get headerRow(): QuestionMatrixDropdownRenderedRow;
|
2441
2446
|
get footerRow(): QuestionMatrixDropdownRenderedRow;
|
2442
|
-
get rows(): any;
|
2443
2447
|
protected build(): void;
|
2444
2448
|
updateShowTableAndAddRow(): void;
|
2445
2449
|
onAddedRow(): void;
|
@@ -2551,6 +2555,8 @@ export declare class Survey extends SurveyElementBase<any, any> implements ISurv
|
|
2551
2555
|
static get cssType(): string;
|
2552
2556
|
static set cssType(val: string);
|
2553
2557
|
protected survey: ReactSurveyModel;
|
2558
|
+
rootNodeId: string;
|
2559
|
+
rootNodeClassName: string;
|
2554
2560
|
protected getStateElement(): Base;
|
2555
2561
|
shouldComponentUpdate(nextProps: any, nextState: any): boolean;
|
2556
2562
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
@@ -2977,12 +2983,16 @@ export declare class DragDropChoices extends DragDropCore<QuestionSelectBase> {
|
|
2977
2983
|
export declare class DragDropMatrixRows extends DragDropCore<QuestionMatrixDynamicModel> {
|
2978
2984
|
constructor(surveyValue?: ISurvey, creator?: any);
|
2979
2985
|
protected get draggedElementType(): string;
|
2980
|
-
protected
|
2986
|
+
protected createDraggedElementShortcut(text: string, draggedElementNode: any, event: any): any;
|
2987
|
+
fromIndex: number;
|
2988
|
+
toIndex: number;
|
2981
2989
|
protected getDropTargetByDataAttributeValue(dataAttributeValue: any): MatrixDropdownRowModelBase;
|
2982
2990
|
protected isDropTargetValid(dropTarget: any): boolean;
|
2983
2991
|
protected findDropTargetNodeByDragOverNode(dragOverNode: any): any;
|
2984
2992
|
protected calculateIsBottom(clientY: number): boolean;
|
2993
|
+
protected afterDragOver(dropTargetNode: any): void;
|
2985
2994
|
protected doDrop: any;
|
2995
|
+
protected doClear(): void;
|
2986
2996
|
}
|
2987
2997
|
export declare class DragDropSurveyElements extends DragDropCore<any> {
|
2988
2998
|
constructor(surveyValue?: ISurvey, creator?: any);
|
@@ -3132,6 +3142,7 @@ export declare class MatrixDropdownTotalRowModel extends MatrixDropdownRowModelB
|
|
3132
3142
|
export declare class MatrixDynamicRowModel extends MatrixDropdownRowModelBase implements IShortcutText {
|
3133
3143
|
constructor(index: number, data: IMatrixDropdownData, value: any);
|
3134
3144
|
index: number;
|
3145
|
+
dragOrClickHelper: DragOrClickHelper;
|
3135
3146
|
get rowName(): string;
|
3136
3147
|
get shortcutText(): string;
|
3137
3148
|
}
|
@@ -3266,6 +3277,7 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
|
|
3266
3277
|
get titleAriaExpanded(): boolean;
|
3267
3278
|
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
3268
3279
|
protected get surveyImpl(): ISurveyImpl;
|
3280
|
+
__setData(data: ISurveyData): void;
|
3269
3281
|
get data(): ISurveyData;
|
3270
3282
|
/*
|
3271
3283
|
* Returns the survey object.
|
@@ -3852,6 +3864,13 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
3852
3864
|
*/
|
3853
3865
|
onFocusInPanel: EventBase<SurveyModel>;
|
3854
3866
|
/*
|
3867
|
+
* You can use this event to decide whether show or hide choice item in checkbox, dropdown and radiogroup like questions
|
3868
|
+
* <br/> `sender` - the survey object that fires the event
|
3869
|
+
* <br/> `options.question` - a question that contains choices.
|
3870
|
+
* <br/> `options.item` - an item of the question.
|
3871
|
+
*/
|
3872
|
+
onShowingChoiceItem: EventBase<SurveyModel>;
|
3873
|
+
/*
|
3855
3874
|
* The event is fired on adding a new row in Matrix Dynamic question.
|
3856
3875
|
* <br/> `sender` - the survey object that fires the event
|
3857
3876
|
* <br/> `options.question` - a matrix question.
|
@@ -4087,6 +4106,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
4087
4106
|
get cssNavigationPrev(): string;
|
4088
4107
|
get cssNavigationStart(): string;
|
4089
4108
|
get cssNavigationNext(): string;
|
4109
|
+
get bodyCss(): string;
|
4090
4110
|
get completedCss(): string;
|
4091
4111
|
lazyRenderingValue: boolean;
|
4092
4112
|
/*
|
@@ -4884,6 +4904,8 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
4884
4904
|
afterRenderPanel(panel: IElement, htmlElement: any): void;
|
4885
4905
|
whenQuestionFocusIn(question: IQuestion): void;
|
4886
4906
|
whenPanelFocusIn(panel: IPanel): void;
|
4907
|
+
canChangeChoiceItemsVisibility(): boolean;
|
4908
|
+
getChoiceItemVisibility(question: IQuestion, item: any, val: boolean): boolean;
|
4887
4909
|
matrixBeforeRowAdded(options: any): void;
|
4888
4910
|
matrixRowAdded(question: IQuestion, row: any): void;
|
4889
4911
|
getQuestionByValueNameFromArray(valueName: string, name: string, index: number): IQuestion;
|
@@ -4991,6 +5013,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
4991
5013
|
protected questionOnValueChanging(valueName: string, newValue: any): any;
|
4992
5014
|
protected updateQuestionValue(valueName: string, newValue: any): void;
|
4993
5015
|
protected notifyQuestionOnValueChanged(valueName: string, newValue: any): void;
|
5016
|
+
isRunningElementsBindings: boolean;
|
4994
5017
|
isTriggerIsRunning: boolean;
|
4995
5018
|
triggerValues: any;
|
4996
5019
|
triggerKeys: any;
|
@@ -5358,7 +5381,6 @@ export declare class SurveyQuestionMatrixDropdownBase extends SurveyQuestionElem
|
|
5358
5381
|
}
|
5359
5382
|
export declare class SurveyQuestionMatrixDynamicDragDropIcon extends ReactSurveyElement {
|
5360
5383
|
constructor(props: any);
|
5361
|
-
onPointerDownHandler(event: any): void;
|
5362
5384
|
protected renderElement(): any;
|
5363
5385
|
}
|
5364
5386
|
export declare class SurveyQuestionMatrixDynamicRemoveButton extends ReactSurveyElement {
|
@@ -6129,6 +6151,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6129
6151
|
*/
|
6130
6152
|
get enableIf(): string;
|
6131
6153
|
set enableIf(val: string);
|
6154
|
+
surveyChoiceItemVisibilityChange(): void;
|
6132
6155
|
/*
|
6133
6156
|
* Run visibleIf and enableIf expressions. If visibleIf or/and enabledIf are not empty, then the results of performing the expression (true or false) set to the visible/readOnly properties.
|
6134
6157
|
*/
|
@@ -6163,6 +6186,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6163
6186
|
*/
|
6164
6187
|
get isParentVisible(): boolean;
|
6165
6188
|
clearValueIfInvisible(reason?: string): void;
|
6189
|
+
protected clearValueIfInvisibleCore(): void;
|
6166
6190
|
/*
|
6167
6191
|
* Gets or sets a value that specifies how invisible question clears the value. By default the behavior is define by Survey "clearInvisibleValues" property.
|
6168
6192
|
*
|
@@ -7419,7 +7443,7 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
7419
7443
|
hasErrors(fireCallback?: boolean, rec?: any): boolean;
|
7420
7444
|
protected getContainsErrors(): boolean;
|
7421
7445
|
protected getIsAnswered(): boolean;
|
7422
|
-
|
7446
|
+
protected clearValueIfInvisibleCore(): void;
|
7423
7447
|
protected getIsRunningValidators(): boolean;
|
7424
7448
|
getAllErrors(): Array<SurveyError>;
|
7425
7449
|
protected getDisplayValueCore(keysAsText: boolean, value: any): any;
|
@@ -7581,6 +7605,7 @@ export declare class QuestionSelectBase extends Question {
|
|
7581
7605
|
*/
|
7582
7606
|
get choicesEnableIf(): string;
|
7583
7607
|
set choicesEnableIf(val: string);
|
7608
|
+
surveyChoiceItemVisibilityChange(): void;
|
7584
7609
|
runCondition(values: any, properties: any): void;
|
7585
7610
|
protected isTextValue(): boolean;
|
7586
7611
|
isSettingDefaultValue: boolean;
|
@@ -7592,6 +7617,7 @@ export declare class QuestionSelectBase extends Question {
|
|
7592
7617
|
protected runItemsEnableCondition(values: any, properties: any): any;
|
7593
7618
|
protected onAfterRunItemsEnableCondition(): void;
|
7594
7619
|
protected onEnableItemCallBack(item: ItemValue): boolean;
|
7620
|
+
changeItemVisisbility(): any;
|
7595
7621
|
protected getHasOther(val: any): boolean;
|
7596
7622
|
get validatedValue(): any;
|
7597
7623
|
protected createRestful(): ChoicesRestful;
|
@@ -7688,7 +7714,7 @@ export declare class QuestionSelectBase extends Question {
|
|
7688
7714
|
protected canUseFilteredChoices(): boolean;
|
7689
7715
|
setCanShowOptionItemCallback(func: any): void;
|
7690
7716
|
protected addToVisibleChoices(items: any, isAddAll: boolean): void;
|
7691
|
-
protected canShowOptionItem(item: ItemValue): boolean;
|
7717
|
+
protected canShowOptionItem(item: ItemValue, isAddAll: boolean, hasItem: boolean): boolean;
|
7692
7718
|
/*
|
7693
7719
|
* For internal use in SurveyJS Creator V2.
|
7694
7720
|
*/
|
@@ -7729,7 +7755,7 @@ export declare class QuestionSelectBase extends Question {
|
|
7729
7755
|
protected onVisibleChoicesChanged(): void;
|
7730
7756
|
clearIncorrectValues(): void;
|
7731
7757
|
protected hasValueToClearIncorrectValues(): boolean;
|
7732
|
-
|
7758
|
+
protected clearValueIfInvisibleCore(): void;
|
7733
7759
|
/*
|
7734
7760
|
* Returns true if item is selected
|
7735
7761
|
*/
|
@@ -7952,7 +7978,7 @@ export declare class QuestionCompositeModel extends QuestionCustomModelBase {
|
|
7952
7978
|
hasErrors(fireCallback?: boolean, rec?: any): boolean;
|
7953
7979
|
updateElementCss(reNew?: boolean): void;
|
7954
7980
|
getTextProcessor(): ITextProcessor;
|
7955
|
-
|
7981
|
+
protected clearValueIfInvisibleCore(): void;
|
7956
7982
|
onAnyValueChanged(name: string): void;
|
7957
7983
|
protected createPanel(): PanelModel;
|
7958
7984
|
protected onReadOnlyChanged(): void;
|
@@ -7987,6 +8013,7 @@ export declare class QuestionCustomModel extends QuestionCustomModelBase {
|
|
7987
8013
|
onSurveyValueChanged(newValue: any): void;
|
7988
8014
|
protected getValueCore(): any;
|
7989
8015
|
protected initElement(el: SurveyElement): void;
|
8016
|
+
updateElementCss(reNew?: boolean): void;
|
7990
8017
|
protected updateElementCssCore(cssClasses: any): void;
|
7991
8018
|
protected getDisplayValueCore(keyAsText: boolean, value: any): any;
|
7992
8019
|
}
|
@@ -8059,6 +8086,7 @@ export declare class QuestionImageModel extends QuestionNonValue {
|
|
8059
8086
|
constructor(name: string);
|
8060
8087
|
getType(): string;
|
8061
8088
|
get isCompositeQuestion(): boolean;
|
8089
|
+
onSurveyLoad(): void;
|
8062
8090
|
/*
|
8063
8091
|
* The image URL.
|
8064
8092
|
*/
|
@@ -8076,11 +8104,13 @@ export declare class QuestionImageModel extends QuestionNonValue {
|
|
8076
8104
|
*/
|
8077
8105
|
get imageHeight(): string;
|
8078
8106
|
set imageHeight(val: string);
|
8107
|
+
get renderedHeight(): string;
|
8079
8108
|
/*
|
8080
8109
|
* The image width.
|
8081
8110
|
*/
|
8082
8111
|
get imageWidth(): string;
|
8083
8112
|
set imageWidth(val: string);
|
8113
|
+
get renderedWidth(): string;
|
8084
8114
|
/*
|
8085
8115
|
* The image fit mode.
|
8086
8116
|
*/
|
@@ -8091,6 +8121,11 @@ export declare class QuestionImageModel extends QuestionNonValue {
|
|
8091
8121
|
*/
|
8092
8122
|
get contentMode(): string;
|
8093
8123
|
set contentMode(val: string);
|
8124
|
+
/*
|
8125
|
+
* The rendered mode.
|
8126
|
+
*/
|
8127
|
+
get renderedMode(): string;
|
8128
|
+
protected calculateRenderedMode(): void;
|
8094
8129
|
}
|
8095
8130
|
/*
|
8096
8131
|
* A base class for matrix dropdown and matrix dynamic questions.
|
@@ -8155,6 +8190,7 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
|
|
8155
8190
|
get canAddRow(): boolean;
|
8156
8191
|
get canRemoveRows(): boolean;
|
8157
8192
|
canRemoveRow(row: MatrixDropdownRowModelBase): boolean;
|
8193
|
+
onPointerDown(pointerDownEvent: any, row: MatrixDropdownRowModelBase): void;
|
8158
8194
|
protected onRowsChanged(): void;
|
8159
8195
|
lockResetRenderedTable: boolean;
|
8160
8196
|
protected onStartRowAddingRemoving(): void;
|
@@ -8373,7 +8409,7 @@ export declare class QuestionMatrixModel extends QuestionMatrixBaseModel<MatrixR
|
|
8373
8409
|
getPlainData(options?: any): any;
|
8374
8410
|
addConditionObjectsByContext(objects: any, context: any): void;
|
8375
8411
|
getConditionJson(operator?: string, path?: string): any;
|
8376
|
-
|
8412
|
+
protected clearValueIfInvisibleCore(): void;
|
8377
8413
|
protected getFirstInputElementId(): string;
|
8378
8414
|
protected onRowsChanged(): void;
|
8379
8415
|
onMatrixRowChanged(row: MatrixRowModel): void;
|
@@ -8652,7 +8688,7 @@ export declare class QuestionMatrixDropdownModel extends QuestionMatrixDropdownM
|
|
8652
8688
|
protected getConditionObjectRowText(index: number): string;
|
8653
8689
|
protected getConditionObjectsRowIndeces(): Array<any>;
|
8654
8690
|
clearIncorrectValues(): void;
|
8655
|
-
|
8691
|
+
protected clearValueIfInvisibleCore(): void;
|
8656
8692
|
protected generateRows(): Array<MatrixDropdownRowModel>;
|
8657
8693
|
protected createMatrixRow(item: ItemValue, value: any): MatrixDropdownRowModel;
|
8658
8694
|
protected getSearchableItemValueKeys(keys: any): void;
|
@@ -8669,7 +8705,9 @@ export declare class QuestionMatrixDynamicModel extends QuestionMatrixDropdownMo
|
|
8669
8705
|
setRowCountValueFromData: boolean;
|
8670
8706
|
dragDropMatrixRows: DragDropMatrixRows;
|
8671
8707
|
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
8672
|
-
|
8708
|
+
draggedRow: MatrixDropdownRowModelBase;
|
8709
|
+
onPointerDown(pointerDownEvent: any, row: MatrixDropdownRowModelBase): void;
|
8710
|
+
startDragMatrixRow: any;
|
8673
8711
|
getType(): string;
|
8674
8712
|
get isRowsDynamic(): boolean;
|
8675
8713
|
/*
|
@@ -8844,7 +8882,6 @@ export declare class QuestionRadiogroupModel extends QuestionCheckboxBase {
|
|
8844
8882
|
export declare class QuestionRankingModel extends QuestionCheckboxModel {
|
8845
8883
|
constructor(name: string);
|
8846
8884
|
domNode: any;
|
8847
|
-
sortableInst: any;
|
8848
8885
|
getType(): string;
|
8849
8886
|
get rootClass(): string;
|
8850
8887
|
protected getItemClassCore(item: ItemValue, options: any): string;
|
@@ -8868,8 +8905,6 @@ export declare class QuestionRankingModel extends QuestionCheckboxModel {
|
|
8868
8905
|
protected supportSelectAll(): boolean;
|
8869
8906
|
supportOther(): boolean;
|
8870
8907
|
supportNone(): boolean;
|
8871
|
-
get fallbackToSortableJS(): boolean;
|
8872
|
-
set fallbackToSortableJS(val: boolean);
|
8873
8908
|
handleArrowUp: any;
|
8874
8909
|
handleArrowDown: any;
|
8875
8910
|
focusItem: any;
|
@@ -9317,8 +9352,7 @@ export declare var defaultStandardCss: {
|
|
9317
9352
|
emptyRowsSection: string,
|
9318
9353
|
emptyRowsText: string,
|
9319
9354
|
emptyRowsButton: string,
|
9320
|
-
|
9321
|
-
dragDropGhostPositionBottom: string,
|
9355
|
+
ghostRow: string,
|
9322
9356
|
},
|
9323
9357
|
paneldynamic: {
|
9324
9358
|
root: string,
|
@@ -9437,36 +9471,21 @@ export declare var surveyTimerFunctions: {
|
|
9437
9471
|
};
|
9438
9472
|
export declare var matrixDropdownColumnTypes: {
|
9439
9473
|
dropdown: {
|
9440
|
-
properties: any,
|
9441
9474
|
onCellQuestionUpdate: any,
|
9442
9475
|
},
|
9443
9476
|
checkbox: {
|
9444
|
-
properties: any,
|
9445
9477
|
onCellQuestionUpdate: any,
|
9446
9478
|
},
|
9447
9479
|
radiogroup: {
|
9448
|
-
properties: any,
|
9449
|
-
onCellQuestionUpdate: any,
|
9450
|
-
},
|
9451
|
-
text: {
|
9452
|
-
properties: any,
|
9453
|
-
onCellQuestionUpdate: any,
|
9454
|
-
},
|
9455
|
-
comment: {
|
9456
|
-
properties: any,
|
9457
9480
|
onCellQuestionUpdate: any,
|
9458
9481
|
},
|
9482
|
+
text: any,
|
9483
|
+
comment: any,
|
9459
9484
|
boolean: {
|
9460
|
-
properties: any,
|
9461
9485
|
onCellQuestionUpdate: any,
|
9462
9486
|
},
|
9463
|
-
expression:
|
9464
|
-
|
9465
|
-
onCellQuestionUpdate: any,
|
9466
|
-
},
|
9467
|
-
rating: {
|
9468
|
-
properties: any,
|
9469
|
-
},
|
9487
|
+
expression: any,
|
9488
|
+
rating: any,
|
9470
9489
|
};
|
9471
9490
|
export declare var _isMobile: boolean;
|
9472
9491
|
export declare var vendor: any;
|
@@ -9475,7 +9494,8 @@ export declare var IsMobile: boolean;
|
|
9475
9494
|
export declare var _isTouch: boolean;
|
9476
9495
|
export declare var IsTouch: boolean;
|
9477
9496
|
export declare var minMaxTypes: any;
|
9478
|
-
export declare var
|
9497
|
+
export declare var youtubeTags: any;
|
9498
|
+
export declare var videoSuffics: any;
|
9479
9499
|
export declare var defaultWidth: number;
|
9480
9500
|
export declare var defaultHeight: number;
|
9481
9501
|
export declare var Version: string;
|
@@ -9677,8 +9697,7 @@ export declare var defaultBootstrapCss: {
|
|
9677
9697
|
emptyRowsSection: string,
|
9678
9698
|
emptyRowsText: string,
|
9679
9699
|
emptyRowsButton: string,
|
9680
|
-
|
9681
|
-
dragDropGhostPositionBottom: string,
|
9700
|
+
ghostRow: string,
|
9682
9701
|
},
|
9683
9702
|
paneldynamic: {
|
9684
9703
|
root: string,
|
@@ -9999,8 +10018,7 @@ export declare var defaultBootstrapMaterialCss: {
|
|
9999
10018
|
emptyRowsSection: string,
|
10000
10019
|
emptyRowsText: string,
|
10001
10020
|
emptyRowsButton: string,
|
10002
|
-
|
10003
|
-
dragDropGhostPositionBottom: string,
|
10021
|
+
ghostRow: string,
|
10004
10022
|
},
|
10005
10023
|
paneldynamic: {
|
10006
10024
|
root: string,
|
@@ -10187,6 +10205,18 @@ export declare var defaultV2Css: {
|
|
10187
10205
|
progress: string,
|
10188
10206
|
progressBar: string,
|
10189
10207
|
progressText: string,
|
10208
|
+
progressButtonsContainerCenter: string,
|
10209
|
+
progressButtonsContainer: string,
|
10210
|
+
progressButtonsImageButtonLeft: string,
|
10211
|
+
progressButtonsImageButtonRight: string,
|
10212
|
+
progressButtonsImageButtonHidden: string,
|
10213
|
+
progressButtonsListContainer: string,
|
10214
|
+
progressButtonsList: string,
|
10215
|
+
progressButtonsListElementPassed: string,
|
10216
|
+
progressButtonsListElementCurrent: string,
|
10217
|
+
progressButtonsListElementNonClickable: string,
|
10218
|
+
progressButtonsPageTitle: string,
|
10219
|
+
progressButtonsPageDescription: string,
|
10190
10220
|
progressTextInBar: string,
|
10191
10221
|
page: {
|
10192
10222
|
root: string,
|
@@ -10341,6 +10371,7 @@ export declare var defaultV2Css: {
|
|
10341
10371
|
itemDecorator: string,
|
10342
10372
|
controlDisabled: string,
|
10343
10373
|
controlLabel: string,
|
10374
|
+
controlEmpty: string,
|
10344
10375
|
materialDecorator: string,
|
10345
10376
|
},
|
10346
10377
|
imagepicker: {
|
@@ -10421,8 +10452,7 @@ export declare var defaultV2Css: {
|
|
10421
10452
|
footer: string,
|
10422
10453
|
emptyRowsSection: string,
|
10423
10454
|
iconDrag: string,
|
10424
|
-
|
10425
|
-
dragDropGhostPositionBottom: string,
|
10455
|
+
ghostRow: string,
|
10426
10456
|
emptyCell: string,
|
10427
10457
|
verticalCell: string,
|
10428
10458
|
cellQuestionWrapper: string,
|
@@ -10833,8 +10863,7 @@ export declare var modernCss: {
|
|
10833
10863
|
emptyRowsSection: string,
|
10834
10864
|
emptyRowsText: string,
|
10835
10865
|
emptyRowsButton: string,
|
10836
|
-
|
10837
|
-
dragDropGhostPositionBottom: string,
|
10866
|
+
ghostRow: string,
|
10838
10867
|
},
|
10839
10868
|
rating: {
|
10840
10869
|
root: string,
|
@@ -10896,4 +10925,5 @@ export declare var modernCss: {
|
|
10896
10925
|
},
|
10897
10926
|
},
|
10898
10927
|
};
|
10928
|
+
export declare var SvgRegistry: SvgIconRegistry;
|
10899
10929
|
export declare var SvgBundleViewModel: any;
|