survey-react 1.10.4 → 1.10.6
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 +25 -2
- 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 +157 -25
- package/survey.react.js +499 -175
- 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
@@ -767,14 +767,16 @@ declare module "popup-view-model" {
|
|
767
767
|
_isVisible: boolean;
|
768
768
|
locale: string;
|
769
769
|
private updateIsVisible;
|
770
|
+
private updateBeforeShowing;
|
771
|
+
private updateAfterHiding;
|
770
772
|
private visibilityAnimation;
|
771
773
|
getLeaveOptions(): AnimationOptions;
|
772
774
|
getEnterOptions(): AnimationOptions;
|
773
775
|
getAnimatedElement(): HTMLElement;
|
774
776
|
isAnimationEnabled(): boolean;
|
775
777
|
private getAnimationContainer;
|
776
|
-
set isVisible(val: boolean);
|
777
778
|
get isVisible(): boolean;
|
779
|
+
set isVisible(val: boolean);
|
778
780
|
onVisibilityChanged: EventBase<PopupBaseViewModel, any>;
|
779
781
|
get container(): HTMLElement;
|
780
782
|
private containerElement;
|
@@ -941,6 +943,7 @@ declare module "element-helper" {
|
|
941
943
|
declare module "list" {
|
942
944
|
import { ActionContainer } from "actions/container";
|
943
945
|
import { Action, BaseAction, IAction } from "actions/action";
|
946
|
+
import { ILocalizableOwner } from "localizablestring";
|
944
947
|
export let defaultListCss: {
|
945
948
|
root: string;
|
946
949
|
item: string;
|
@@ -964,19 +967,23 @@ declare module "list" {
|
|
964
967
|
};
|
965
968
|
export interface IListModel {
|
966
969
|
items: Array<IAction>;
|
967
|
-
onSelectionChanged: (item:
|
970
|
+
onSelectionChanged: (item: IAction, ...params: any[]) => void;
|
968
971
|
allowSelection?: boolean;
|
972
|
+
searchEnabled?: boolean;
|
969
973
|
selectedItem?: IAction;
|
974
|
+
elementId?: string;
|
975
|
+
locOwner?: ILocalizableOwner;
|
970
976
|
onFilterStringChangedCallback?: (text: string) => void;
|
971
|
-
onTextSearchCallback?: (
|
977
|
+
onTextSearchCallback?: (item: IAction, textToSearch: string) => boolean;
|
972
978
|
}
|
973
979
|
export class ListModel<T extends BaseAction = Action> extends ActionContainer<T> {
|
974
|
-
onSelectionChanged
|
975
|
-
allowSelection
|
980
|
+
onSelectionChanged?: (item: T, ...params: any[]) => void;
|
981
|
+
allowSelection?: boolean;
|
976
982
|
elementId?: string;
|
977
983
|
private listContainerHtmlElement;
|
978
984
|
private loadingIndicatorValue;
|
979
|
-
private onFilterStringChangedCallback
|
985
|
+
private onFilterStringChangedCallback;
|
986
|
+
private onTextSearchCallback;
|
980
987
|
searchEnabled: boolean;
|
981
988
|
showFilter: boolean;
|
982
989
|
forceShowFilter: boolean;
|
@@ -999,8 +1006,7 @@ declare module "list" {
|
|
999
1006
|
private get shouldProcessFilter();
|
1000
1007
|
private onFilterStringChanged;
|
1001
1008
|
private scrollToItem;
|
1002
|
-
constructor(items: Array<IAction
|
1003
|
-
private onTextSearchCallback;
|
1009
|
+
constructor(items: Array<IAction> | IListModel, onSelectionChanged?: (item: T, ...params: any[]) => void, allowSelection?: boolean, selectedItem?: IAction, elementId?: string);
|
1004
1010
|
setOnFilterStringChangedCallback(callback: (text: string) => void): void;
|
1005
1011
|
setOnTextSearchCallback(callback: (item: T, textToSearch: string) => boolean): void;
|
1006
1012
|
setItems(items: Array<IAction>, sortByVisibleIndex?: boolean): void;
|
@@ -1065,7 +1071,7 @@ declare module "actions/action" {
|
|
1065
1071
|
import { ILocalizableOwner, LocalizableString } from "localizablestring";
|
1066
1072
|
import { Base, ComputedUpdater } from "base";
|
1067
1073
|
import { IListModel } from "list";
|
1068
|
-
import { IPopupOptionsBase } from "popup";
|
1074
|
+
import { IPopupOptionsBase, PopupModel } from "popup";
|
1069
1075
|
export type actionModeType = "large" | "small" | "popup" | "removed";
|
1070
1076
|
/**
|
1071
1077
|
* An action item.
|
@@ -1214,7 +1220,8 @@ declare module "actions/action" {
|
|
1214
1220
|
export interface IActionDropdownPopupOptions extends IListModel, IPopupOptionsBase {
|
1215
1221
|
}
|
1216
1222
|
export function createDropdownActionModel(actionOptions: IAction, dropdownOptions: IActionDropdownPopupOptions, locOwner?: ILocalizableOwner): Action;
|
1217
|
-
export function createDropdownActionModelAdvanced(actionOptions: IAction, listOptions: IListModel, popupOptions?: IPopupOptionsBase
|
1223
|
+
export function createDropdownActionModelAdvanced(actionOptions: IAction, listOptions: IListModel, popupOptions?: IPopupOptionsBase): Action;
|
1224
|
+
export function createPopupModelWithListModel(listOptions: IListModel, popupOptions: IPopupOptionsBase): PopupModel;
|
1218
1225
|
export function getActionDropdownButtonTarget(container: HTMLElement): HTMLElement;
|
1219
1226
|
export abstract class BaseAction extends Base implements IAction {
|
1220
1227
|
private static renderedId;
|
@@ -1433,6 +1440,7 @@ declare module "defaultCss/defaultV2Css" {
|
|
1433
1440
|
rootFitToContainer: string;
|
1434
1441
|
rootWrapper: string;
|
1435
1442
|
rootWrapperFixed: string;
|
1443
|
+
rootWrapperHasImage: string;
|
1436
1444
|
rootBackgroundImage: string;
|
1437
1445
|
container: string;
|
1438
1446
|
header: string;
|
@@ -1989,6 +1997,7 @@ declare module "defaultCss/defaultV2Css" {
|
|
1989
1997
|
dragElementDecorator: string;
|
1990
1998
|
iconDragElement: string;
|
1991
1999
|
footer: string;
|
2000
|
+
footerTotalCell: string;
|
1992
2001
|
emptyRowsSection: string;
|
1993
2002
|
iconDrag: string;
|
1994
2003
|
ghostRow: string;
|
@@ -3726,7 +3735,7 @@ declare module "question_file" {
|
|
3726
3735
|
*/
|
3727
3736
|
get waitForUpload(): boolean;
|
3728
3737
|
set waitForUpload(val: boolean);
|
3729
|
-
clearValue(): void;
|
3738
|
+
clearValue(keepComment?: boolean): void;
|
3730
3739
|
clearOnDeletingContainer(): void;
|
3731
3740
|
protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean): void;
|
3732
3741
|
protected uploadFiles(files: File[]): void;
|
@@ -4336,7 +4345,7 @@ declare module "question_baseselect" {
|
|
4336
4345
|
protected setQuestionComment(newValue: string): void;
|
4337
4346
|
private onUpdateCommentOnAutoOtherMode;
|
4338
4347
|
private setOtherValueInternally;
|
4339
|
-
clearValue(): void;
|
4348
|
+
clearValue(keepComment?: boolean): void;
|
4340
4349
|
updateCommentFromSurvey(newValue: any): any;
|
4341
4350
|
get renderedValue(): any;
|
4342
4351
|
set renderedValue(val: any);
|
@@ -5632,7 +5641,6 @@ declare module "question_matrixdynamic" {
|
|
5632
5641
|
import { DragDropMatrixRows } from "dragdrop/matrix-rows";
|
5633
5642
|
import { IShortcutText, ISurveyImpl, IProgressInfo } from "base-interfaces";
|
5634
5643
|
import { QuestionMatrixDropdownRenderedTable } from "question_matrixdropdownrendered";
|
5635
|
-
import { MatrixDropdownColumn } from "question_matrixdropdowncolumn";
|
5636
5644
|
export class MatrixDynamicRowModel extends MatrixDropdownRowModelBase implements IShortcutText {
|
5637
5645
|
index: number;
|
5638
5646
|
private dragOrClickHelper;
|
@@ -5882,7 +5890,7 @@ declare module "question_matrixdynamic" {
|
|
5882
5890
|
get hasRowText(): boolean;
|
5883
5891
|
protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean): void;
|
5884
5892
|
private hasErrorInMinRows;
|
5885
|
-
protected
|
5893
|
+
protected getUniqueColumnsNames(): Array<string>;
|
5886
5894
|
protected generateRows(): Array<MatrixDynamicRowModel>;
|
5887
5895
|
protected createMatrixRow(value: any): MatrixDynamicRowModel;
|
5888
5896
|
private lastDeletedRow;
|
@@ -6919,7 +6927,7 @@ declare module "question_signaturepad" {
|
|
6919
6927
|
onBlur: (event: any) => void;
|
6920
6928
|
protected uploadResultItemToValue(r: any): any;
|
6921
6929
|
protected setValueFromResult(arg: any): void;
|
6922
|
-
clearValue(): void;
|
6930
|
+
clearValue(keepComment?: boolean): void;
|
6923
6931
|
endLoadingFromJson(): void;
|
6924
6932
|
}
|
6925
6933
|
}
|
@@ -11069,7 +11077,7 @@ declare module "survey" {
|
|
11069
11077
|
* @see validateCurrentPage
|
11070
11078
|
* @see validatePage
|
11071
11079
|
*/
|
11072
|
-
validate(fireCallback?: boolean, focusOnFirstError?: boolean, onAsyncValidation?: (hasErrors: boolean) => void): boolean;
|
11080
|
+
validate(fireCallback?: boolean, focusOnFirstError?: boolean, onAsyncValidation?: (hasErrors: boolean) => void, changeCurrentPage?: boolean): boolean;
|
11073
11081
|
ensureUniqueNames(element?: ISurveyElement): void;
|
11074
11082
|
private ensureUniqueName;
|
11075
11083
|
private ensureUniquePageName;
|
@@ -11548,7 +11556,7 @@ declare module "survey" {
|
|
11548
11556
|
* @see addNewPage
|
11549
11557
|
*/
|
11550
11558
|
createNewPage(name: string): PageModel;
|
11551
|
-
protected questionOnValueChanging(valueName: string, newValue: any): any;
|
11559
|
+
protected questionOnValueChanging(valueName: string, newValue: any, questionValueName?: string): any;
|
11552
11560
|
protected updateQuestionValue(valueName: string, newValue: any): void;
|
11553
11561
|
private checkQuestionErrorOnValueChanged;
|
11554
11562
|
private checkQuestionErrorOnValueChangedCore;
|
@@ -11566,6 +11574,7 @@ declare module "survey" {
|
|
11566
11574
|
private triggerValues;
|
11567
11575
|
private triggerKeys;
|
11568
11576
|
private checkTriggers;
|
11577
|
+
private checkTriggersAndRunConditions;
|
11569
11578
|
private get hasRequiredValidQuestionTrigger();
|
11570
11579
|
private doElementsOnLoad;
|
11571
11580
|
private conditionValues;
|
@@ -13104,7 +13113,8 @@ declare module "question" {
|
|
13104
13113
|
* @see value
|
13105
13114
|
* @see comment
|
13106
13115
|
*/
|
13107
|
-
clearValue(): void;
|
13116
|
+
clearValue(keepComment?: boolean): void;
|
13117
|
+
clearValueOnly(): void;
|
13108
13118
|
unbindValue(): void;
|
13109
13119
|
createValueCopy(): any;
|
13110
13120
|
initDataUI(): void;
|
@@ -13409,6 +13419,8 @@ declare module "question" {
|
|
13409
13419
|
private initResponsiveness;
|
13410
13420
|
protected getCompactRenderAs(): string;
|
13411
13421
|
protected getDesktopRenderAs(): string;
|
13422
|
+
protected onBeforeSetCompactRenderer(): void;
|
13423
|
+
protected onBeforeSetDesktopRenderer(): void;
|
13412
13424
|
protected processResponsiveness(requiredWidth: number, availableWidth: number): any;
|
13413
13425
|
destroyResizeObserver(): void;
|
13414
13426
|
dispose(): void;
|
@@ -13745,7 +13757,7 @@ declare module "question_matrixdropdownbase" {
|
|
13745
13757
|
getFilteredValues(): any;
|
13746
13758
|
getFilteredProperties(): any;
|
13747
13759
|
runCondition(values: HashTable<any>, properties: HashTable<any>): void;
|
13748
|
-
clearValue(): void;
|
13760
|
+
clearValue(keepComment?: boolean): void;
|
13749
13761
|
onAnyValueChanged(name: string, questionName: string): void;
|
13750
13762
|
getDataValueCore(valuesHash: any, key: string): any;
|
13751
13763
|
getValue(name: string): any;
|
@@ -14116,10 +14128,14 @@ declare module "question_matrixdropdownbase" {
|
|
14116
14128
|
getAllErrors(): Array<SurveyError>;
|
14117
14129
|
private hasErrorInRows;
|
14118
14130
|
private isValueDuplicated;
|
14131
|
+
protected getUniqueColumnsNames(): Array<string>;
|
14119
14132
|
private isValueInColumnDuplicated;
|
14120
|
-
|
14121
|
-
private
|
14133
|
+
private getDuplicatedRows;
|
14134
|
+
private showDuplicatedErrorsInRows;
|
14135
|
+
private removeDuplicatedErrorsInRows;
|
14136
|
+
private getDuplicationError;
|
14122
14137
|
private addDuplicationError;
|
14138
|
+
private removeDuplicationError;
|
14123
14139
|
getFirstQuestionToFocus(withError: boolean): Question;
|
14124
14140
|
protected getFirstInputElementId(): string;
|
14125
14141
|
protected getFirstErrorInputElementId(): string;
|
@@ -15400,8 +15416,11 @@ declare module "popup" {
|
|
15400
15416
|
get isVisible(): boolean;
|
15401
15417
|
set isVisible(value: boolean);
|
15402
15418
|
toggleVisibility(): void;
|
15419
|
+
show(): void;
|
15420
|
+
hide(): void;
|
15403
15421
|
recalculatePosition(isResetHeight: boolean): void;
|
15404
15422
|
updateFooterActions(footerActions: Array<IAction>): Array<IAction>;
|
15423
|
+
onHiding(): void;
|
15405
15424
|
dispose(): void;
|
15406
15425
|
}
|
15407
15426
|
export function createDialogOptions(componentName: string, data: any, onApply: () => boolean, onCancel?: () => void, onHide?: () => void, onShow?: () => void, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): IDialogOptions;
|
@@ -16283,7 +16302,7 @@ declare module "question_dropdown" {
|
|
16283
16302
|
protected onVisibleChoicesChanged(): void;
|
16284
16303
|
protected getFirstInputElementId(): string;
|
16285
16304
|
getInputId(): string;
|
16286
|
-
clearValue(): void;
|
16305
|
+
clearValue(keepComment?: boolean): void;
|
16287
16306
|
onClick(e: any): void;
|
16288
16307
|
onKeyUp(event: any): void;
|
16289
16308
|
dispose(): void;
|
@@ -16702,12 +16721,15 @@ declare module "question_checkbox" {
|
|
16702
16721
|
}
|
16703
16722
|
declare module "multiSelectListModel" {
|
16704
16723
|
import { Action, BaseAction, IAction } from "actions/action";
|
16705
|
-
import { ListModel } from "list";
|
16724
|
+
import { IListModel, ListModel } from "list";
|
16725
|
+
export interface IMultiSelectListModel extends IListModel {
|
16726
|
+
selectedItems?: Array<IAction>;
|
16727
|
+
}
|
16706
16728
|
export class MultiSelectListModel<T extends BaseAction = Action> extends ListModel<T> {
|
16707
16729
|
selectedItems: Array<IAction>;
|
16708
16730
|
hideSelectedItems: boolean;
|
16709
16731
|
private updateItemState;
|
16710
|
-
constructor(
|
16732
|
+
constructor(options: IMultiSelectListModel);
|
16711
16733
|
onItemClick: (item: T) => void;
|
16712
16734
|
isItemDisabled: (itemValue: T) => boolean;
|
16713
16735
|
isItemSelected: (itemValue: T) => boolean;
|
@@ -16844,7 +16866,7 @@ declare module "question_tagbox" {
|
|
16844
16866
|
protected getFirstInputElementId(): string;
|
16845
16867
|
getInputId(): string;
|
16846
16868
|
dispose(): void;
|
16847
|
-
clearValue(): void;
|
16869
|
+
clearValue(keepComment?: boolean): void;
|
16848
16870
|
get showClearButton(): boolean;
|
16849
16871
|
get isNewA11yStructure(): boolean;
|
16850
16872
|
}
|
@@ -17612,6 +17634,7 @@ declare module "question_rating" {
|
|
17612
17634
|
get readOnlyText(): any;
|
17613
17635
|
needResponsiveWidth(): boolean;
|
17614
17636
|
protected supportResponsiveness(): boolean;
|
17637
|
+
protected onBeforeSetCompactRenderer(): void;
|
17615
17638
|
protected getCompactRenderAs(): string;
|
17616
17639
|
protected getDesktopRenderAs(): string;
|
17617
17640
|
get ariaExpanded(): string;
|
@@ -25973,6 +25996,114 @@ declare module "localization/telugu" {
|
|
25973
25996
|
cancel: string;
|
25974
25997
|
};
|
25975
25998
|
}
|
25999
|
+
declare module "localization/philippines" {
|
26000
|
+
export var philippinesStrings: {
|
26001
|
+
pagePrevText: string;
|
26002
|
+
pageNextText: string;
|
26003
|
+
completeText: string;
|
26004
|
+
previewText: string;
|
26005
|
+
editText: string;
|
26006
|
+
startSurveyText: string;
|
26007
|
+
otherItemText: string;
|
26008
|
+
noneItemText: string;
|
26009
|
+
refuseItemText: string;
|
26010
|
+
dontKnowItemText: string;
|
26011
|
+
selectAllItemText: string;
|
26012
|
+
progressText: string;
|
26013
|
+
indexText: string;
|
26014
|
+
panelDynamicProgressText: string;
|
26015
|
+
panelDynamicTabTextFormat: string;
|
26016
|
+
questionsProgressText: string;
|
26017
|
+
emptySurvey: string;
|
26018
|
+
completingSurvey: string;
|
26019
|
+
completingSurveyBefore: string;
|
26020
|
+
loadingSurvey: string;
|
26021
|
+
placeholder: string;
|
26022
|
+
ratingOptionsCaption: string;
|
26023
|
+
value: string;
|
26024
|
+
requiredError: string;
|
26025
|
+
requiredErrorInPanel: string;
|
26026
|
+
requiredInAllRowsError: string;
|
26027
|
+
eachRowUniqueError: string;
|
26028
|
+
numericError: string;
|
26029
|
+
minError: string;
|
26030
|
+
maxError: string;
|
26031
|
+
textMinLength: string;
|
26032
|
+
textMaxLength: string;
|
26033
|
+
textMinMaxLength: string;
|
26034
|
+
minRowCountError: string;
|
26035
|
+
minSelectError: string;
|
26036
|
+
maxSelectError: string;
|
26037
|
+
numericMinMax: string;
|
26038
|
+
numericMin: string;
|
26039
|
+
numericMax: string;
|
26040
|
+
invalidEmail: string;
|
26041
|
+
invalidExpression: string;
|
26042
|
+
urlRequestError: string;
|
26043
|
+
urlGetChoicesError: string;
|
26044
|
+
exceedMaxSize: string;
|
26045
|
+
noUploadFilesHandler: string;
|
26046
|
+
otherRequiredError: string;
|
26047
|
+
uploadingFile: string;
|
26048
|
+
loadingFile: string;
|
26049
|
+
chooseFile: string;
|
26050
|
+
noFileChosen: string;
|
26051
|
+
filePlaceholder: string;
|
26052
|
+
confirmDelete: string;
|
26053
|
+
keyDuplicationError: string;
|
26054
|
+
addColumn: string;
|
26055
|
+
addRow: string;
|
26056
|
+
removeRow: string;
|
26057
|
+
emptyRowsText: string;
|
26058
|
+
addPanel: string;
|
26059
|
+
removePanel: string;
|
26060
|
+
showDetails: string;
|
26061
|
+
hideDetails: string;
|
26062
|
+
choices_Item: string;
|
26063
|
+
matrix_column: string;
|
26064
|
+
matrix_row: string;
|
26065
|
+
multipletext_itemname: string;
|
26066
|
+
savingData: string;
|
26067
|
+
savingDataError: string;
|
26068
|
+
savingDataSuccess: string;
|
26069
|
+
savingExceedSize: string;
|
26070
|
+
saveAgainButton: string;
|
26071
|
+
timerMin: string;
|
26072
|
+
timerSec: string;
|
26073
|
+
timerSpentAll: string;
|
26074
|
+
timerSpentPage: string;
|
26075
|
+
timerSpentSurvey: string;
|
26076
|
+
timerLimitAll: string;
|
26077
|
+
timerLimitPage: string;
|
26078
|
+
timerLimitSurvey: string;
|
26079
|
+
clearCaption: string;
|
26080
|
+
signaturePlaceHolder: string;
|
26081
|
+
signaturePlaceHolderReadOnly: string;
|
26082
|
+
chooseFileCaption: string;
|
26083
|
+
takePhotoCaption: string;
|
26084
|
+
photoPlaceholder: string;
|
26085
|
+
fileOrPhotoPlaceholder: string;
|
26086
|
+
replaceFileCaption: string;
|
26087
|
+
removeFileCaption: string;
|
26088
|
+
booleanCheckedLabel: string;
|
26089
|
+
booleanUncheckedLabel: string;
|
26090
|
+
confirmRemoveFile: string;
|
26091
|
+
confirmRemoveAllFiles: string;
|
26092
|
+
questionTitlePatternText: string;
|
26093
|
+
modalCancelButtonText: string;
|
26094
|
+
modalApplyButtonText: string;
|
26095
|
+
filterStringPlaceholder: string;
|
26096
|
+
emptyMessage: string;
|
26097
|
+
noEntriesText: string;
|
26098
|
+
noEntriesReadonlyText: string;
|
26099
|
+
more: string;
|
26100
|
+
tagboxDoneButtonCaption: string;
|
26101
|
+
selectToRankEmptyRankedAreaText: string;
|
26102
|
+
selectToRankEmptyUnrankedAreaText: string;
|
26103
|
+
ok: string;
|
26104
|
+
cancel: string;
|
26105
|
+
};
|
26106
|
+
}
|
25976
26107
|
declare module "entries/chunks/localization" {
|
25977
26108
|
import "localization/arabic";
|
25978
26109
|
import "localization/basque";
|
@@ -26023,6 +26154,7 @@ declare module "entries/chunks/localization" {
|
|
26023
26154
|
import "localization/vietnamese";
|
26024
26155
|
import "localization/welsh";
|
26025
26156
|
import "localization/telugu";
|
26157
|
+
import "localization/philippines";
|
26026
26158
|
}
|
26027
26159
|
declare module "react/element-factory" {
|
26028
26160
|
export class ReactElementFactory {
|