survey-react 1.9.100 → 1.9.101
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 +13 -15
- 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 +34 -7
- package/survey.react.js +271 -63
- 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
@@ -2708,6 +2708,7 @@ declare module "panel" {
|
|
2708
2708
|
* @see elements
|
2709
2709
|
*/
|
2710
2710
|
get questions(): Array<Question>;
|
2711
|
+
getQuestions(includeNested: boolean): Array<Question>;
|
2711
2712
|
protected getValidName(name: string): string;
|
2712
2713
|
/**
|
2713
2714
|
* Returns a question with a specified `name`. This method does not find questions within nested panels.
|
@@ -3036,6 +3037,7 @@ declare module "panel" {
|
|
3036
3037
|
*/
|
3037
3038
|
get no(): string;
|
3038
3039
|
protected setNo(visibleIndex: number): void;
|
3040
|
+
protected createLocTitleProperty(): LocalizableString;
|
3039
3041
|
protected beforeSetVisibleIndex(index: number): number;
|
3040
3042
|
protected getPanelStartIndex(index: number): number;
|
3041
3043
|
protected isContinueNumbering(): boolean;
|
@@ -6859,7 +6861,6 @@ declare module "question_textbase" {
|
|
6859
6861
|
declare module "question_text" {
|
6860
6862
|
import { LocalizableString, LocalizableStrings } from "localizablestring";
|
6861
6863
|
import { HashTable } from "helpers";
|
6862
|
-
import { SurveyValidator } from "validator";
|
6863
6864
|
import { SurveyError } from "survey-error";
|
6864
6865
|
import { QuestionTextBase } from "question_textbase";
|
6865
6866
|
/**
|
@@ -6881,7 +6882,6 @@ declare module "question_text" {
|
|
6881
6882
|
get inputType(): string;
|
6882
6883
|
set inputType(val: string);
|
6883
6884
|
runCondition(values: HashTable<any>, properties: HashTable<any>): void;
|
6884
|
-
getValidators(): Array<SurveyValidator>;
|
6885
6885
|
isLayoutTypeSupported(layoutType: string): boolean;
|
6886
6886
|
/**
|
6887
6887
|
* A value passed on to the [`size`](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/size) attribute of the underlying `<input>` element.
|
@@ -8613,6 +8613,7 @@ declare module "survey" {
|
|
8613
8613
|
set progressBarType(newValue: string);
|
8614
8614
|
get isShowProgressBarOnTop(): boolean;
|
8615
8615
|
get isShowProgressBarOnBottom(): boolean;
|
8616
|
+
getProgressTypeComponent(): string;
|
8616
8617
|
getProgressCssClasses(): string;
|
8617
8618
|
private canShowProresBar;
|
8618
8619
|
get processedTitle(): string;
|
@@ -9793,8 +9794,7 @@ declare module "survey" {
|
|
9793
9794
|
setTriggerValue(name: string, value: any, isVariable: boolean): void;
|
9794
9795
|
copyTriggerValue(name: string, fromName: string, copyDisplayValue: boolean): void;
|
9795
9796
|
triggerExecuted(trigger: Trigger): void;
|
9796
|
-
private
|
9797
|
-
private afterRenderPageTasks;
|
9797
|
+
private focusingQuestionInfo;
|
9798
9798
|
private isMovingQuestion;
|
9799
9799
|
startMovingQuestion(): void;
|
9800
9800
|
stopMovingQuestion(): void;
|
@@ -9808,6 +9808,8 @@ declare module "survey" {
|
|
9808
9808
|
* @see focusFirstQuestionAutomatic
|
9809
9809
|
*/
|
9810
9810
|
focusQuestion(name: string): boolean;
|
9811
|
+
focusQuestionByInstance(question: Question, onError?: boolean): boolean;
|
9812
|
+
private focusQuestionInfo;
|
9811
9813
|
questionEditFinishCallback(question: Question, event: any): void;
|
9812
9814
|
getElementWrapperComponentName(element: any, reason?: string): string;
|
9813
9815
|
getQuestionContentWrapperComponentName(element: any): string;
|
@@ -11697,6 +11699,7 @@ declare module "base-interfaces" {
|
|
11697
11699
|
export interface ISurvey extends ITextProcessor, ISurveyErrorOwner {
|
11698
11700
|
getSkeletonComponentName(element: ISurveyElement): string;
|
11699
11701
|
currentPage: IPage;
|
11702
|
+
activePage: IPage;
|
11700
11703
|
pages: Array<IPage>;
|
11701
11704
|
getCss(): any;
|
11702
11705
|
isPageStarted(page: IPage): boolean;
|
@@ -11715,6 +11718,7 @@ declare module "base-interfaces" {
|
|
11715
11718
|
questionRemoved(question: IQuestion): any;
|
11716
11719
|
panelRemoved(panel: IElement): any;
|
11717
11720
|
questionRenamed(question: IQuestion, oldName: string, oldValueName: string): any;
|
11721
|
+
focusQuestionByInstance(question: IQuestion, onError: boolean): boolean;
|
11718
11722
|
validateQuestion(question: IQuestion): SurveyError;
|
11719
11723
|
validatePanel(panel: IPanel): SurveyError;
|
11720
11724
|
hasVisibleQuestionByValueName(valueName: string): boolean;
|
@@ -12127,6 +12131,7 @@ declare module "base" {
|
|
12127
12131
|
private onPropChangeFunctions;
|
12128
12132
|
protected isLoadingFromJsonValue: boolean;
|
12129
12133
|
loadingOwner: Base;
|
12134
|
+
protected jsonObj: any;
|
12130
12135
|
/**
|
12131
12136
|
* An event that is raised when a property of this SurveyJS object has changed.
|
12132
12137
|
*
|
@@ -13453,6 +13458,7 @@ declare module "question_checkbox" {
|
|
13453
13458
|
import { ItemValue } from "itemvalue";
|
13454
13459
|
import { LocalizableString } from "localizablestring";
|
13455
13460
|
import { IQuestion } from "base-interfaces";
|
13461
|
+
import { SurveyError } from "survey-error";
|
13456
13462
|
/**
|
13457
13463
|
* A class that describes the Checkbox question type.
|
13458
13464
|
*
|
@@ -13515,14 +13521,25 @@ declare module "question_checkbox" {
|
|
13515
13521
|
protected isItemSelectedCore(item: ItemValue): boolean;
|
13516
13522
|
private getRealValue;
|
13517
13523
|
/**
|
13518
|
-
*
|
13524
|
+
* Specifies the maximum number of selected choices.
|
13519
13525
|
*
|
13520
13526
|
* Default value: 0 (unlimited)
|
13521
13527
|
*
|
13522
13528
|
* > This property only limits the number of choice items that can be selected by users. You can select any number of choice items in code, regardless of the `maxSelectedChoices` value.
|
13529
|
+
* @see minSelectedChoices
|
13523
13530
|
*/
|
13524
13531
|
get maxSelectedChoices(): number;
|
13525
13532
|
set maxSelectedChoices(val: number);
|
13533
|
+
/**
|
13534
|
+
* Specifies the minimum number of selected choices.
|
13535
|
+
*
|
13536
|
+
* Default value: 0 (unlimited)
|
13537
|
+
*
|
13538
|
+
* > This property only limits the number of choice items that can be selected by users. You can select any number of choice items in code, regardless of the `minSelectedChoices` value.
|
13539
|
+
* @see maxSelectedChoices
|
13540
|
+
*/
|
13541
|
+
get minSelectedChoices(): number;
|
13542
|
+
set minSelectedChoices(val: number);
|
13526
13543
|
/**
|
13527
13544
|
* An array of selected choice items. Includes the "Other" and "None" choice items if they are selected, but not "Select All". Items are sorted in the order they were selected.
|
13528
13545
|
* @see visibleChoices
|
@@ -13532,9 +13549,11 @@ declare module "question_checkbox" {
|
|
13532
13549
|
get selectedItems(): Array<ItemValue>;
|
13533
13550
|
protected getMultipleSelectedItems(): Array<ItemValue>;
|
13534
13551
|
protected validateItemValues(itemValues: Array<ItemValue>): Array<ItemValue>;
|
13552
|
+
protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean): void;
|
13535
13553
|
protected onEnableItemCallBack(item: ItemValue): boolean;
|
13536
13554
|
protected onAfterRunItemsEnableCondition(): void;
|
13537
13555
|
private shouldCheckMaxSelectedChoices;
|
13556
|
+
private checkMinSelectedChoicesUnreached;
|
13538
13557
|
protected getItemClassCore(item: any, options: any): string;
|
13539
13558
|
updateValueFromSurvey(newValue: any): void;
|
13540
13559
|
protected setDefaultValue(): void;
|
@@ -14135,9 +14154,7 @@ declare module "question_rating" {
|
|
14135
14154
|
*/
|
14136
14155
|
export class QuestionRatingModel extends Question {
|
14137
14156
|
constructor(name: string);
|
14138
|
-
private jsonObj;
|
14139
14157
|
private setIconsToRateValues;
|
14140
|
-
startLoadingFromJson(jsonObj: any): void;
|
14141
14158
|
endLoadingFromJson(): void;
|
14142
14159
|
private _syncPropertiesChanging;
|
14143
14160
|
private registerSychProperties;
|
@@ -14146,6 +14163,9 @@ declare module "question_rating" {
|
|
14146
14163
|
private updateRateMin;
|
14147
14164
|
private updateRateCount;
|
14148
14165
|
initPropertyDependencies(): void;
|
14166
|
+
inputHasValue: boolean;
|
14167
|
+
get showSelectedItemLocText(): boolean;
|
14168
|
+
get selectedItemLocText(): LocalizableString;
|
14149
14169
|
autoGenerate: boolean;
|
14150
14170
|
/**
|
14151
14171
|
* A list of rate values.
|
@@ -14556,6 +14576,7 @@ declare module "question_image" {
|
|
14556
14576
|
}
|
14557
14577
|
declare module "question_signaturepad" {
|
14558
14578
|
import { Question } from "question";
|
14579
|
+
import { ISurveyImpl } from "base-interfaces";
|
14559
14580
|
/**
|
14560
14581
|
* A class that describes the Signature Page question type.
|
14561
14582
|
*
|
@@ -14564,12 +14585,14 @@ declare module "question_signaturepad" {
|
|
14564
14585
|
export class QuestionSignaturePadModel extends Question {
|
14565
14586
|
isDrawingValue: boolean;
|
14566
14587
|
private getPenColorFromTheme;
|
14588
|
+
private updateColors;
|
14567
14589
|
protected getCssRoot(cssClasses: any): string;
|
14568
14590
|
protected updateValue(): void;
|
14569
14591
|
constructor(name: string);
|
14570
14592
|
getType(): string;
|
14571
14593
|
afterRenderQuestionElement(el: HTMLElement): void;
|
14572
14594
|
beforeDestroyQuestionElement(el: HTMLElement): void;
|
14595
|
+
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
14573
14596
|
initSignaturePad(el: HTMLElement): void;
|
14574
14597
|
destroySignaturePad(el: HTMLElement): void;
|
14575
14598
|
/**
|
@@ -15167,6 +15190,7 @@ declare module "popup-view-model" {
|
|
15167
15190
|
dispose(): void;
|
15168
15191
|
initializePopupContainer(): void;
|
15169
15192
|
setComponentElement(componentRoot: HTMLElement, targetElement?: HTMLElement | null): void;
|
15193
|
+
resetComponentElement(): void;
|
15170
15194
|
protected preventScrollOuside(event: any, deltaY: number): void;
|
15171
15195
|
}
|
15172
15196
|
}
|
@@ -15280,7 +15304,10 @@ declare module "question_buttongroup" {
|
|
15280
15304
|
}
|
15281
15305
|
declare module "entries/chunks/model" {
|
15282
15306
|
export var Version: string;
|
15307
|
+
export var ReleaseDate: string;
|
15283
15308
|
export function checkLibraryVersion(ver: string, libraryName: string): void;
|
15309
|
+
export function setLicenseKey(key: string): void;
|
15310
|
+
export function hasLicense(index: number): boolean;
|
15284
15311
|
export { settings, ISurveyEnvironment } from "settings";
|
15285
15312
|
export { Helpers, HashTable } from "helpers";
|
15286
15313
|
export { AnswerCountValidator, EmailValidator, NumericValidator, RegexValidator, SurveyValidator, TextValidator, ValidatorResult, ExpressionValidator, ValidatorRunner } from "validator";
|