survey-react 1.10.5 → 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 +22 -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 +137 -13
- package/survey.react.js +338 -82
- 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;
|
@@ -1990,6 +1997,7 @@ declare module "defaultCss/defaultV2Css" {
|
|
1990
1997
|
dragElementDecorator: string;
|
1991
1998
|
iconDragElement: string;
|
1992
1999
|
footer: string;
|
2000
|
+
footerTotalCell: string;
|
1993
2001
|
emptyRowsSection: string;
|
1994
2002
|
iconDrag: string;
|
1995
2003
|
ghostRow: string;
|
@@ -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;
|
@@ -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;
|
@@ -15407,8 +15416,11 @@ declare module "popup" {
|
|
15407
15416
|
get isVisible(): boolean;
|
15408
15417
|
set isVisible(value: boolean);
|
15409
15418
|
toggleVisibility(): void;
|
15419
|
+
show(): void;
|
15420
|
+
hide(): void;
|
15410
15421
|
recalculatePosition(isResetHeight: boolean): void;
|
15411
15422
|
updateFooterActions(footerActions: Array<IAction>): Array<IAction>;
|
15423
|
+
onHiding(): void;
|
15412
15424
|
dispose(): void;
|
15413
15425
|
}
|
15414
15426
|
export function createDialogOptions(componentName: string, data: any, onApply: () => boolean, onCancel?: () => void, onHide?: () => void, onShow?: () => void, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): IDialogOptions;
|
@@ -16709,12 +16721,15 @@ declare module "question_checkbox" {
|
|
16709
16721
|
}
|
16710
16722
|
declare module "multiSelectListModel" {
|
16711
16723
|
import { Action, BaseAction, IAction } from "actions/action";
|
16712
|
-
import { ListModel } from "list";
|
16724
|
+
import { IListModel, ListModel } from "list";
|
16725
|
+
export interface IMultiSelectListModel extends IListModel {
|
16726
|
+
selectedItems?: Array<IAction>;
|
16727
|
+
}
|
16713
16728
|
export class MultiSelectListModel<T extends BaseAction = Action> extends ListModel<T> {
|
16714
16729
|
selectedItems: Array<IAction>;
|
16715
16730
|
hideSelectedItems: boolean;
|
16716
16731
|
private updateItemState;
|
16717
|
-
constructor(
|
16732
|
+
constructor(options: IMultiSelectListModel);
|
16718
16733
|
onItemClick: (item: T) => void;
|
16719
16734
|
isItemDisabled: (itemValue: T) => boolean;
|
16720
16735
|
isItemSelected: (itemValue: T) => boolean;
|
@@ -25981,6 +25996,114 @@ declare module "localization/telugu" {
|
|
25981
25996
|
cancel: string;
|
25982
25997
|
};
|
25983
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
|
+
}
|
25984
26107
|
declare module "entries/chunks/localization" {
|
25985
26108
|
import "localization/arabic";
|
25986
26109
|
import "localization/basque";
|
@@ -26031,6 +26154,7 @@ declare module "entries/chunks/localization" {
|
|
26031
26154
|
import "localization/vietnamese";
|
26032
26155
|
import "localization/welsh";
|
26033
26156
|
import "localization/telugu";
|
26157
|
+
import "localization/philippines";
|
26034
26158
|
}
|
26035
26159
|
declare module "react/element-factory" {
|
26036
26160
|
export class ReactElementFactory {
|