survey-react 1.12.29 → 1.12.31
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 +1 -1
- package/defaultV2.min.css +1 -1
- 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 +20 -8
- package/survey.react.js +116 -73
- package/survey.react.js.map +1 -1
- package/survey.react.min.js +3 -3
package/defaultV2.css
CHANGED
package/defaultV2.min.css
CHANGED
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
@@ -7,6 +7,7 @@ declare module "packages/survey-core/src/global_variables_utils" {
|
|
7
7
|
static getVisualViewport(): VisualViewport | null;
|
8
8
|
static getInnerWidth(): number;
|
9
9
|
static getInnerHeight(): number;
|
10
|
+
static getDevicePixelRatio(): number;
|
10
11
|
static getWindow(): Window;
|
11
12
|
static hasOwn(propertyName: string): boolean;
|
12
13
|
static getSelection(): Selection | null;
|
@@ -35,6 +36,12 @@ declare module "packages/survey-core/src/helpers" {
|
|
35
36
|
export interface HashTable<T = any> {
|
36
37
|
[key: string]: T;
|
37
38
|
}
|
39
|
+
export interface IEqualValuesParameters {
|
40
|
+
ignoreOrder?: boolean;
|
41
|
+
caseSensitive?: boolean;
|
42
|
+
trimStrings?: boolean;
|
43
|
+
doNotConvertNumbers?: boolean;
|
44
|
+
}
|
38
45
|
export function createDate(reason: string, val?: number | string | Date): Date;
|
39
46
|
export class Helpers {
|
40
47
|
/**
|
@@ -44,8 +51,10 @@ declare module "packages/survey-core/src/helpers" {
|
|
44
51
|
static isValueEmpty(value: any): boolean;
|
45
52
|
static isValueUndefined(value: any): boolean;
|
46
53
|
static isArrayContainsEqual(x: any, y: any): boolean;
|
54
|
+
static checkIfArraysEqual(x: any, y: any, params: IEqualValuesParameters): boolean;
|
47
55
|
static isArraysEqual(x: any, y: any, ignoreOrder?: boolean, caseSensitive?: boolean, trimStrings?: boolean): boolean;
|
48
56
|
static compareStrings(x: string, y: string): number;
|
57
|
+
static checkIfValuesEqual(x: any, y: any, params: IEqualValuesParameters): boolean;
|
49
58
|
static isTwoValueEquals(x: any, y: any, ignoreOrder?: boolean, caseSensitive?: boolean, trimStrings?: boolean): boolean;
|
50
59
|
static randomizeArray<T>(array: Array<T>): Array<T>;
|
51
60
|
static getUnbindValue(value: any): any;
|
@@ -4493,7 +4502,7 @@ declare module "packages/survey-core/src/utils/text-area" {
|
|
4493
4502
|
export interface ITextArea {
|
4494
4503
|
question: any;
|
4495
4504
|
id: () => string;
|
4496
|
-
|
4505
|
+
propertyNames: Array<string>;
|
4497
4506
|
className: () => string;
|
4498
4507
|
isDisabledAttr: () => boolean;
|
4499
4508
|
isReadOnlyAttr?: () => boolean;
|
@@ -7194,6 +7203,7 @@ declare module "packages/survey-core/src/question_paneldynamic" {
|
|
7194
7203
|
* @see addPanel
|
7195
7204
|
*/
|
7196
7205
|
removePanel(value: any): void;
|
7206
|
+
private notifyOnPanelAddedRemoved;
|
7197
7207
|
private getVisualPanelIndex;
|
7198
7208
|
private getPanelVisibleIndexById;
|
7199
7209
|
locStrsChanged(): void;
|
@@ -11973,11 +11983,12 @@ declare module "packages/survey-core/src/survey" {
|
|
11973
11983
|
private disposeContainerPage;
|
11974
11984
|
private updatePagesContainer;
|
11975
11985
|
private currentSingleElementValue;
|
11976
|
-
private
|
11986
|
+
private getSingleElements;
|
11977
11987
|
get currentSingleElement(): IElement;
|
11978
11988
|
set currentSingleElement(val: IElement);
|
11979
11989
|
get currentSingleQuestion(): Question;
|
11980
11990
|
set currentSingleQuestion(val: Question);
|
11991
|
+
private changeCurrentSingleElementOnVisibilityChanged;
|
11981
11992
|
private changeCurrentPageFromPreview;
|
11982
11993
|
protected onQuestionsOnPageModeChanged(oldValue: string): void;
|
11983
11994
|
private getPageStartIndex;
|
@@ -12142,9 +12153,8 @@ declare module "packages/survey-core/src/survey" {
|
|
12142
12153
|
private get isValidateOnValueChange();
|
12143
12154
|
private get isValidateOnComplete();
|
12144
12155
|
matrixCellValidate(question: QuestionMatrixDropdownModelBase, options: MatrixCellValidateEvent): SurveyError;
|
12145
|
-
dynamicPanelAdded(question: QuestionPanelDynamicModel, panelIndex
|
12146
|
-
dynamicPanelRemoved(question: QuestionPanelDynamicModel, panelIndex: number, panel: PanelModel): void;
|
12147
|
-
private hasQuestionVisibleIndeces;
|
12156
|
+
dynamicPanelAdded(question: QuestionPanelDynamicModel, panelIndex: number, panel: PanelModel, updateIndexes: boolean): void;
|
12157
|
+
dynamicPanelRemoved(question: QuestionPanelDynamicModel, panelIndex: number, panel: PanelModel, updateIndexes: boolean): void;
|
12148
12158
|
dynamicPanelRemoving(question: QuestionPanelDynamicModel, panelIndex: number, panel: PanelModel): boolean;
|
12149
12159
|
dynamicPanelItemValueChanged(question: IQuestion, options: any): void;
|
12150
12160
|
dynamicPanelItemValueChanging(question: IQuestion, options: any): void;
|
@@ -13483,6 +13493,7 @@ declare module "packages/survey-core/src/question" {
|
|
13483
13493
|
private setIsReady;
|
13484
13494
|
protected getIsReadyDependsOn(): Array<Question>;
|
13485
13495
|
private getIsReadyDependends;
|
13496
|
+
protected getDependedQuestionsByValueName(isDependOn: boolean): Array<IQuestion>;
|
13486
13497
|
private getIsReadyDependendCore;
|
13487
13498
|
choicesLoaded(): void;
|
13488
13499
|
/**
|
@@ -15281,8 +15292,8 @@ declare module "packages/survey-core/src/base-interfaces" {
|
|
15281
15292
|
getValidateVisitedEmptyFields(): boolean;
|
15282
15293
|
multipleTextItemAdded(question: IQuestion, item: any): void;
|
15283
15294
|
matrixCellValidate(question: IQuestion, options: any): SurveyError;
|
15284
|
-
dynamicPanelAdded(question: IQuestion, panelIndex
|
15285
|
-
dynamicPanelRemoved(question: IQuestion, panelIndex: number, panel: IPanel): void;
|
15295
|
+
dynamicPanelAdded(question: IQuestion, panelIndex: number, panel: IPanel, updateIndexes: boolean): void;
|
15296
|
+
dynamicPanelRemoved(question: IQuestion, panelIndex: number, panel: IPanel, updateIndexes: boolean): void;
|
15286
15297
|
dynamicPanelRemoving(question: IQuestion, panelIndex: number, panel: IPanel): boolean;
|
15287
15298
|
dynamicPanelItemValueChanged(question: IQuestion, options: any): void;
|
15288
15299
|
dynamicPanelItemValueChanging(question: IQuestion, options: any): void;
|
@@ -17223,7 +17234,7 @@ declare module "packages/survey-core/src/dropdownListModel" {
|
|
17223
17234
|
private applyInputString;
|
17224
17235
|
private cleanHtml;
|
17225
17236
|
protected fixInputCase(): void;
|
17226
|
-
protected applyHintString(
|
17237
|
+
protected applyHintString(): void;
|
17227
17238
|
get inputStringRendered(): string;
|
17228
17239
|
set inputStringRendered(val: string);
|
17229
17240
|
get placeholderRendered(): any;
|
@@ -17730,6 +17741,7 @@ declare module "packages/survey-core/src/question_checkbox" {
|
|
17730
17741
|
get valuePropertyName(): string;
|
17731
17742
|
set valuePropertyName(val: string);
|
17732
17743
|
getQuestionFromArray(name: string, index: number): IQuestion;
|
17744
|
+
protected getDependedQuestionsByValueName(isDependOn: boolean): Array<IQuestion>;
|
17733
17745
|
/**
|
17734
17746
|
* Returns the "Select All" choice item. Use this property to change the item's `value` or `text`.
|
17735
17747
|
* @see showSelectAllItem
|