survey-react 1.12.10 → 1.12.12
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 +5 -5
- package/defaultV2.css.map +1 -1
- package/defaultV2.min.css +2 -2
- package/modern.css +9 -1
- package/modern.css.map +1 -1
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/survey.css +1 -1
- package/survey.min.css +1 -1
- package/survey.react.d.ts +107 -78
- package/survey.react.js +499 -379
- package/survey.react.js.map +1 -1
- package/survey.react.min.js +3 -3
package/package.json
CHANGED
package/survey.css
CHANGED
package/survey.min.css
CHANGED
package/survey.react.d.ts
CHANGED
@@ -35,6 +35,7 @@ declare module "packages/survey-core/src/helpers" {
|
|
35
35
|
export interface HashTable<T = any> {
|
36
36
|
[key: string]: T;
|
37
37
|
}
|
38
|
+
export function createDate(reason: string, val?: number | string | Date): Date;
|
38
39
|
export class Helpers {
|
39
40
|
/**
|
40
41
|
* A static methods that returns true if a value undefined, null, empty string or empty array.
|
@@ -214,6 +215,14 @@ declare module "packages/survey-core/src/surveyStrings" {
|
|
214
215
|
getLocales: (removeDefaultLoc?: boolean) => Array<string>;
|
215
216
|
onGetExternalString: (name: string, locale: string) => string;
|
216
217
|
};
|
218
|
+
export function getLocaleString(strName: string, locale?: string): string;
|
219
|
+
export function setupLocale(localeConfig: {
|
220
|
+
localeCode: string;
|
221
|
+
strings: any;
|
222
|
+
nativeName: string;
|
223
|
+
englishName: string;
|
224
|
+
rtl?: boolean;
|
225
|
+
}): void;
|
217
226
|
export var surveyStrings: {
|
218
227
|
pagePrevText: string;
|
219
228
|
pageNextText: string;
|
@@ -892,7 +901,7 @@ declare module "packages/survey-core/src/popup-view-model" {
|
|
892
901
|
cancel(): void;
|
893
902
|
dispose(): void;
|
894
903
|
initializePopupContainer(): void;
|
895
|
-
setComponentElement(componentRoot: HTMLElement
|
904
|
+
setComponentElement(componentRoot: HTMLElement): void;
|
896
905
|
resetComponentElement(): void;
|
897
906
|
protected preventScrollOuside(event: any, deltaY: number): void;
|
898
907
|
}
|
@@ -1021,8 +1030,11 @@ declare module "packages/survey-core/src/actions/container" {
|
|
1021
1030
|
get cssClasses(): any;
|
1022
1031
|
private createAction;
|
1023
1032
|
addAction(val: IAction, sortByVisibleIndex?: boolean): T;
|
1024
|
-
private sortItems;
|
1025
1033
|
setItems(items: Array<IAction>, sortByVisibleIndex?: boolean): void;
|
1034
|
+
private sortItems;
|
1035
|
+
private hasSetVisibleIndex;
|
1036
|
+
private compareByVisibleIndex;
|
1037
|
+
private isActionVisible;
|
1026
1038
|
subItemsShowDelay: number;
|
1027
1039
|
subItemsHideDelay: number;
|
1028
1040
|
protected popupAfterShowCallback(itemValue: T): void;
|
@@ -1118,6 +1130,7 @@ declare module "packages/survey-core/src/list" {
|
|
1118
1130
|
setOnFilterStringChangedCallback(callback: (text: string) => void): void;
|
1119
1131
|
setOnTextSearchCallback(callback: (item: T, textToSearch: string) => boolean): void;
|
1120
1132
|
setItems(items: Array<IAction>, sortByVisibleIndex?: boolean): void;
|
1133
|
+
setSearchEnabled(newValue: boolean): void;
|
1121
1134
|
protected onSet(): void;
|
1122
1135
|
protected getDefaultCssClasses(): {
|
1123
1136
|
root: string;
|
@@ -3390,7 +3403,7 @@ declare module "packages/survey-core/src/panel" {
|
|
3390
3403
|
delete(doDispose?: boolean): void;
|
3391
3404
|
private deletePanel;
|
3392
3405
|
protected removeFromParent(): void;
|
3393
|
-
protected canShowTitle(): boolean;
|
3406
|
+
protected canShowTitle(survey: ISurvey): boolean;
|
3394
3407
|
showDescription: boolean;
|
3395
3408
|
get _showDescription(): boolean;
|
3396
3409
|
localeChanged(): void;
|
@@ -3640,6 +3653,7 @@ declare module "packages/survey-core/src/panel" {
|
|
3640
3653
|
private releaseRowsUpdates;
|
3641
3654
|
private updateRowsBeforeElementRemoved;
|
3642
3655
|
private updateRowsOnElementAdded;
|
3656
|
+
private canFireAddRemoveNotifications;
|
3643
3657
|
protected onAddElement(element: IElement, index: number): void;
|
3644
3658
|
protected onRemoveElement(element: IElement): void;
|
3645
3659
|
private onRemoveElementNotifySurvey;
|
@@ -3890,6 +3904,7 @@ declare module "packages/survey-core/src/panel" {
|
|
3890
3904
|
getFooterToolbar(): ActionContainer;
|
3891
3905
|
get hasEditButton(): boolean;
|
3892
3906
|
cancelPreview(): void;
|
3907
|
+
protected canShowTitle(survey: ISurvey): boolean;
|
3893
3908
|
get cssTitle(): string;
|
3894
3909
|
getCssTitleExpandableSvg(): string;
|
3895
3910
|
get showErrorsAbovePanel(): boolean;
|
@@ -4456,6 +4471,7 @@ declare module "packages/survey-core/src/utils/text-area" {
|
|
4456
4471
|
private onPropertyChangedCallback;
|
4457
4472
|
constructor(options: ITextArea);
|
4458
4473
|
setElement(element: HTMLTextAreaElement | null): void;
|
4474
|
+
resetElement(): void;
|
4459
4475
|
getTextValue(): string;
|
4460
4476
|
onTextAreaChange(event: any): void;
|
4461
4477
|
onTextAreaInput(event: any): void;
|
@@ -5381,7 +5397,7 @@ declare module "packages/survey-core/src/question_matrixdropdowncolumn" {
|
|
5381
5397
|
private indexValue;
|
5382
5398
|
private _hasVisibleCell;
|
5383
5399
|
private _visiblechoices;
|
5384
|
-
constructor(name: string, title?: string);
|
5400
|
+
constructor(name: string, title?: string, colOwner?: IMatrixColumnOwner);
|
5385
5401
|
getOriginalObj(): Base;
|
5386
5402
|
getClassNameProperty(): string;
|
5387
5403
|
getSurvey(live?: boolean): ISurvey;
|
@@ -5681,7 +5697,7 @@ declare module "packages/survey-core/src/question_matrixdropdowncolumn" {
|
|
5681
5697
|
defaultCellTypeChanged(): void;
|
5682
5698
|
protected calcCellQuestionType(row: MatrixDropdownRowModelBase): string;
|
5683
5699
|
private getDefaultCellQuestionType;
|
5684
|
-
protected updateTemplateQuestion(newCellType?: string): void;
|
5700
|
+
protected updateTemplateQuestion(newCellType?: string, name?: string, title?: string): void;
|
5685
5701
|
protected createNewQuestion(cellType: string): Question;
|
5686
5702
|
private setParentQuestionToTemplate;
|
5687
5703
|
private previousChoicesId;
|
@@ -7910,16 +7926,16 @@ declare module "packages/survey-core/src/survey-events-api" {
|
|
7910
7926
|
*/
|
7911
7927
|
input: HTMLInputElement;
|
7912
7928
|
/**
|
7913
|
-
* A
|
7929
|
+
* A question for which this event is raised.
|
7914
7930
|
*/
|
7915
7931
|
element: Base;
|
7916
7932
|
/**
|
7917
7933
|
* The type of the element passed as the `options.element` parameter.\
|
7918
|
-
* Possible values:
|
7934
|
+
* Possible values: any value returned from the [`getType()`](https://surveyjs.io/form-library/documentation/api-reference/question#getType) method.
|
7919
7935
|
*/
|
7920
7936
|
elementType: String;
|
7921
7937
|
/**
|
7922
|
-
* The name of the survey element property
|
7938
|
+
* The name of the survey element property for which files are being selected.
|
7923
7939
|
*/
|
7924
7940
|
propertyName: String;
|
7925
7941
|
/**
|
@@ -8503,7 +8519,7 @@ declare module "packages/survey-core/src/drag-drop-page-helper-v1" {
|
|
8503
8519
|
}
|
8504
8520
|
}
|
8505
8521
|
declare module "packages/survey-core/src/page" {
|
8506
|
-
import { IPage, IPanel, IElement, ISurveyElement } from "packages/survey-core/src/base-interfaces";
|
8522
|
+
import { IPage, IPanel, IElement, ISurveyElement, ISurvey } from "packages/survey-core/src/base-interfaces";
|
8507
8523
|
import { PanelModelBase } from "packages/survey-core/src/panel";
|
8508
8524
|
import { LocalizableString } from "packages/survey-core/src/localizablestring";
|
8509
8525
|
/**
|
@@ -8523,7 +8539,7 @@ declare module "packages/survey-core/src/page" {
|
|
8523
8539
|
getCssTitleExpandableSvg(): string;
|
8524
8540
|
get cssRequiredText(): string;
|
8525
8541
|
protected canShowPageNumber(): boolean;
|
8526
|
-
protected canShowTitle(): boolean;
|
8542
|
+
protected canShowTitle(survey: ISurvey): boolean;
|
8527
8543
|
protected setTitleValue(val: string): void;
|
8528
8544
|
/**
|
8529
8545
|
* A caption displayed on a navigation button in the TOC or progress bar. Applies when [`showTOC`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#showTOC) is `true` or when the [progress bar is visible](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#showProgressBar), [`progressBarType`](https://surveyjs.io/form-library/documentation/surveymodel#progressBarType) is set to `"pages"`, and [`progressBarShowPageTitles`](https://surveyjs.io/form-library/documentation/surveymodel#progressBarShowPageTitles) is `true`.
|
@@ -9102,6 +9118,7 @@ declare module "packages/survey-core/src/question_text" {
|
|
9102
9118
|
protected onChangeQuestionValue(newValue: any): void;
|
9103
9119
|
private updateInputValue;
|
9104
9120
|
private hasToConvertToUTC;
|
9121
|
+
private createDate;
|
9105
9122
|
protected valueForSurveyCore(val: any): any;
|
9106
9123
|
protected valueFromDataCore(val: any): any;
|
9107
9124
|
private dateValidationMessage;
|
@@ -9682,27 +9699,6 @@ declare module "packages/survey-core/src/surveyToc" {
|
|
9682
9699
|
dispose(): void;
|
9683
9700
|
}
|
9684
9701
|
}
|
9685
|
-
declare module "packages/survey-core/src/svgbundle" {
|
9686
|
-
class SvgIconData {
|
9687
|
-
[key: string]: string;
|
9688
|
-
}
|
9689
|
-
export class SvgIconRegistry {
|
9690
|
-
icons: SvgIconData;
|
9691
|
-
private iconPrefix;
|
9692
|
-
private processId;
|
9693
|
-
registerIconFromSymbol(iconId: string, iconSymbolSvg: string): void;
|
9694
|
-
registerIconFromSvgViaElement(iconId: string, iconSvg: string, iconPrefix?: string): void;
|
9695
|
-
registerIconFromSvg(iconId: string, iconSvg: string, iconPrefix?: string): boolean;
|
9696
|
-
registerIconsFromFolder(r: any): void;
|
9697
|
-
iconsRenderedHtml(): string;
|
9698
|
-
}
|
9699
|
-
export var SvgRegistry: SvgIconRegistry;
|
9700
|
-
export var SvgBundleViewModel: any;
|
9701
|
-
export var svgBundle: {
|
9702
|
-
V1?: string;
|
9703
|
-
V2?: string;
|
9704
|
-
};
|
9705
|
-
}
|
9706
9702
|
declare module "packages/survey-core/src/survey" {
|
9707
9703
|
import { JsonError } from "packages/survey-core/src/jsonobject";
|
9708
9704
|
import { Base, EventBase } from "packages/survey-core/src/base";
|
@@ -10079,9 +10075,8 @@ declare module "packages/survey-core/src/survey" {
|
|
10079
10075
|
*/
|
10080
10076
|
onGetResult: EventBase<SurveyModel, GetResultEvent>;
|
10081
10077
|
/**
|
10082
|
-
* An event that is raised when
|
10083
|
-
* @see
|
10084
|
-
* @see uploadFiles
|
10078
|
+
* An event that is raised when a respondent opens a dialog window to select files.
|
10079
|
+
* @see chooseFiles
|
10085
10080
|
*/
|
10086
10081
|
onOpenFileChooser: EventBase<SurveyModel, OpenFileChooserEvent>;
|
10087
10082
|
/**
|
@@ -11927,6 +11922,7 @@ declare module "packages/survey-core/src/survey" {
|
|
11927
11922
|
private isSmoothScrollEnabled;
|
11928
11923
|
private resizeObserver;
|
11929
11924
|
afterRenderSurvey(htmlElement: any): void;
|
11925
|
+
beforeDestroySurveyElement(): void;
|
11930
11926
|
/**
|
11931
11927
|
* An event that is raised when the survey's width or height is changed.
|
11932
11928
|
*/
|
@@ -12672,7 +12668,6 @@ declare module "packages/survey-core/src/survey" {
|
|
12672
12668
|
addScrollEventListener(): void;
|
12673
12669
|
removeScrollEventListener(): void;
|
12674
12670
|
questionErrorComponent: string;
|
12675
|
-
protected registerIcons(): void;
|
12676
12671
|
}
|
12677
12672
|
}
|
12678
12673
|
declare module "packages/survey-core/src/survey-element" {
|
@@ -15699,6 +15694,7 @@ declare module "packages/survey-core/src/localizablestring" {
|
|
15699
15694
|
get allowLineBreaks(): boolean;
|
15700
15695
|
onGetTextCallback: (str: string) => string;
|
15701
15696
|
storeDefaultText: boolean;
|
15697
|
+
serializeCallBackText: boolean;
|
15702
15698
|
onGetLocalizationTextCallback: (str: string) => string;
|
15703
15699
|
onStrChanged: (oldValue: string, newValue: string) => void;
|
15704
15700
|
onSearchChanged: () => void;
|
@@ -16151,7 +16147,10 @@ declare module "packages/survey-core/src/utils/popup" {
|
|
16151
16147
|
export class PopupUtils {
|
16152
16148
|
static bottomIndent: number;
|
16153
16149
|
static calculatePosition(targetRect: Rect, height: number, width: number, verticalPosition: VerticalPosition, horizontalPosition: HorizontalPosition, positionMode?: PositionMode): INumberPosition;
|
16154
|
-
static getCorrectedVerticalDimensions(top: number, height: number, windowHeight: number, verticalPosition: VerticalPosition, canShrink?: boolean
|
16150
|
+
static getCorrectedVerticalDimensions(top: number, height: number, windowHeight: number, verticalPosition: VerticalPosition, canShrink?: boolean, margins?: {
|
16151
|
+
top: number;
|
16152
|
+
bottom: number;
|
16153
|
+
}): any;
|
16155
16154
|
static updateHorizontalDimensions(left: number, width: number, windowWidth: number, horizontalPosition: HorizontalPosition, positionMode?: PositionMode, margins?: {
|
16156
16155
|
left: number;
|
16157
16156
|
right: number;
|
@@ -16174,6 +16173,8 @@ declare module "packages/survey-core/src/popup" {
|
|
16174
16173
|
onShow?: () => void;
|
16175
16174
|
onCancel?: () => void;
|
16176
16175
|
onDispose?: () => void;
|
16176
|
+
getTargetCallback?: (container: HTMLElement) => HTMLElement;
|
16177
|
+
getAreaCallback?: (container: HTMLElement) => HTMLElement;
|
16177
16178
|
cssClass?: string;
|
16178
16179
|
title?: string;
|
16179
16180
|
verticalPosition?: VerticalPosition;
|
@@ -16198,6 +16199,8 @@ declare module "packages/survey-core/src/popup" {
|
|
16198
16199
|
onHide: () => void;
|
16199
16200
|
onShow: () => void;
|
16200
16201
|
onDispose: () => void;
|
16202
|
+
getTargetCallback?: (container: HTMLElement) => HTMLElement;
|
16203
|
+
getAreaCallback?: (container: HTMLElement) => HTMLElement;
|
16201
16204
|
contentComponentName: string;
|
16202
16205
|
contentComponentData: T;
|
16203
16206
|
verticalPosition: VerticalPosition;
|
@@ -16363,33 +16366,23 @@ declare module "packages/survey-core/src/settings" {
|
|
16363
16366
|
* Nested properties:
|
16364
16367
|
*
|
16365
16368
|
* - `itemValueSerializeAsObject`: `boolean`\
|
16366
|
-
* Enable this property if you want to serialize [`ItemValue`](https://surveyjs.io/form-library/documentation/api-reference/itemvalue) instances as objects even when they include only the `value` property. Default value: `false`.
|
16369
|
+
* Enable this property if you want to serialize [`ItemValue`](https://surveyjs.io/form-library/documentation/api-reference/itemvalue) instances (choice options, matrix rows, columns in a [Single-Select Matrix](https://surveyjs.io/form-library/documentation/api-reference/matrix-table-question-model)) as objects even when they include only the `value` property. Default value: `false`.
|
16367
16370
|
*
|
16368
16371
|
* - `itemValueSerializeDisplayText`: `boolean`\
|
16369
|
-
* Enable this property if you want to serialize the `text` property of [`ItemValue`](https://surveyjs.io/form-library/documentation/api-reference/itemvalue) objects even when it is empty or equal to the `value` property. Default value: `false`.
|
16372
|
+
* Enable this property if you want to serialize the `text` property of [`ItemValue`](https://surveyjs.io/form-library/documentation/api-reference/itemvalue) objects even when it is empty or equal to the `value` property. Default value: `false`.
|
16370
16373
|
*
|
16371
16374
|
* - `localizableStringSerializeAsObject`: `boolean`\
|
16372
16375
|
* Enable this property if you want to serialize [`LocalizableString`](https://surveyjs.io/form-library/documentation/api-reference/localizablestring) instances as objects even when they include only a translation string for the default locale. For example, `"Custom String"` will be serialized as `{ default: "Custom String" }`. Default value: `false`.
|
16373
16376
|
*
|
16374
|
-
*
|
16375
|
-
*
|
16376
|
-
*
|
16377
|
-
* // `itemValueSerializeAsObject` example
|
16378
|
-
* settings.serialization.itemValueSerializeAsObject = true;
|
16379
|
-
* const item = new ItemValue(5);
|
16380
|
-
* const itemString = item.toJSON(); // Produces { value: 5 } instead of 5
|
16381
|
-
*
|
16382
|
-
* // `itemValueSerializeDisplayText` example
|
16383
|
-
* settings.serialization.itemValueSerializeDisplayText = true;
|
16384
|
-
* const item = new ItemValue("item1");
|
16385
|
-
* const itemString = item.toJSON(); // Produces { value: "item1", text: "item1" } instead of "item1"
|
16386
|
-
* ```
|
16377
|
+
* - `matrixDropdownColumnSerializeTitle`: `boolean`\
|
16378
|
+
* Enable this property if you want to serialize the `title` property of [`MatrixDropdownColumn`](https://surveyjs.io/form-library/documentation/api-reference/multi-select-matrix-column-values) objects even when it is empty or equal to the `name` property. Default value: `false`.
|
16387
16379
|
* @see [settings.parseNumber](https://surveyjs.io/form-library/documentation/api-reference/settings#parseNumber)
|
16388
16380
|
*/
|
16389
16381
|
serialization: {
|
16390
16382
|
itemValueSerializeAsObject: boolean;
|
16391
16383
|
itemValueSerializeDisplayText: boolean;
|
16392
16384
|
localizableStringSerializeAsObject: boolean;
|
16385
|
+
matrixDropdownColumnSerializeTitle: boolean;
|
16393
16386
|
};
|
16394
16387
|
itemValueAlwaysSerializeAsObject: boolean;
|
16395
16388
|
itemValueAlwaysSerializeText: boolean;
|
@@ -16852,6 +16845,7 @@ declare module "packages/survey-core/src/settings" {
|
|
16852
16845
|
* ```
|
16853
16846
|
*/
|
16854
16847
|
storeUtcDates: boolean;
|
16848
|
+
onDateCreated: (newDate: Date, reason: string, val?: number | string | Date) => Date;
|
16855
16849
|
/**
|
16856
16850
|
* A function that allows you to define custom parsing rules for numbers represented as string values.
|
16857
16851
|
*
|
@@ -16876,7 +16870,6 @@ declare module "packages/survey-core/src/settings" {
|
|
16876
16870
|
* @see [settings.serialization](https://surveyjs.io/form-library/documentation/api-reference/settings#serialization)
|
16877
16871
|
*/
|
16878
16872
|
parseNumber: (stringValue: any, numericValue: number) => number;
|
16879
|
-
useLegacyIcons: boolean;
|
16880
16873
|
};
|
16881
16874
|
}
|
16882
16875
|
declare module "packages/survey-core/src/question_matrixdropdown" {
|
@@ -16944,8 +16937,6 @@ declare module "packages/survey-core/src/popup-dropdown-view-model" {
|
|
16944
16937
|
import { PopupBaseViewModel } from "packages/survey-core/src/popup-view-model";
|
16945
16938
|
export function calculateIsTablet(windowWidth?: number, windowHeight?: number): boolean;
|
16946
16939
|
export class PopupDropdownViewModel extends PopupBaseViewModel {
|
16947
|
-
targetElement?: HTMLElement;
|
16948
|
-
areaElement?: HTMLElement;
|
16949
16940
|
static readonly tabletSizeBreakpoint = 600;
|
16950
16941
|
private scrollEventCallBack;
|
16951
16942
|
private calculateIsTablet;
|
@@ -16965,8 +16956,8 @@ declare module "packages/survey-core/src/popup-dropdown-view-model" {
|
|
16965
16956
|
popupDirection: string;
|
16966
16957
|
pointerTarget: IPosition;
|
16967
16958
|
private recalculatePositionHandler;
|
16968
|
-
constructor(model: PopupModel
|
16969
|
-
setComponentElement(componentRoot: HTMLElement
|
16959
|
+
constructor(model: PopupModel);
|
16960
|
+
setComponentElement(componentRoot: HTMLElement): void;
|
16970
16961
|
resetComponentElement(): void;
|
16971
16962
|
updateOnShowing(): void;
|
16972
16963
|
private get shouldCreateResizeCallback();
|
@@ -17574,6 +17565,7 @@ declare module "packages/survey-core/src/question_checkbox" {
|
|
17574
17565
|
selectAll(): void;
|
17575
17566
|
clickItemHandler(item: ItemValue, checked?: boolean): void;
|
17576
17567
|
protected isItemSelectedCore(item: ItemValue): boolean;
|
17568
|
+
protected hasUnknownValueItem(val: any, includeOther?: boolean, isFilteredChoices?: boolean, checkEmptyValue?: boolean): boolean;
|
17577
17569
|
protected convertFuncValuetoQuestionValue(val: any): any;
|
17578
17570
|
private getRealValue;
|
17579
17571
|
get isValueArray(): boolean;
|
@@ -17627,6 +17619,7 @@ declare module "packages/survey-core/src/question_checkbox" {
|
|
17627
17619
|
protected setNewValue(newValue: any): void;
|
17628
17620
|
protected getIsMultipleValue(): boolean;
|
17629
17621
|
protected getCommentFromValue(newValue: any): string;
|
17622
|
+
getStoreOthersAsComment(): boolean;
|
17630
17623
|
protected setOtherValueIntoValue(newValue: any): any;
|
17631
17624
|
private getFirstUnknownIndex;
|
17632
17625
|
protected removeNoneItemsValues(value: Array<any>, newValue: Array<any>): void;
|
@@ -17802,7 +17795,7 @@ declare module "packages/survey-core/src/question_tagbox" {
|
|
17802
17795
|
getControlClass(): string;
|
17803
17796
|
onOpened: EventBase<QuestionTagboxModel>;
|
17804
17797
|
onOpenedCallBack(): void;
|
17805
|
-
protected hasUnknownValue(val: any, includeOther
|
17798
|
+
protected hasUnknownValue(val: any, includeOther?: boolean, isFilteredChoices?: boolean, checkEmptyValue?: boolean): boolean;
|
17806
17799
|
protected needConvertRenderedOtherToDataValue(): boolean;
|
17807
17800
|
protected onVisibleChoicesChanged(): void;
|
17808
17801
|
protected getItemIfChoicesNotContainThisValue(value: any, text?: string): any;
|
@@ -18978,7 +18971,7 @@ declare module "packages/survey-core/src/popup-utils" {
|
|
18978
18971
|
import { IDialogOptions, PopupModel } from "packages/survey-core/src/popup";
|
18979
18972
|
import { PopupBaseViewModel } from "packages/survey-core/src/popup-view-model";
|
18980
18973
|
export function createPopupModalViewModel(options: IDialogOptions, rootElement?: HTMLElement): PopupBaseViewModel;
|
18981
|
-
export function createPopupViewModel(model: PopupModel
|
18974
|
+
export function createPopupViewModel(model: PopupModel): PopupBaseViewModel;
|
18982
18975
|
}
|
18983
18976
|
declare module "packages/survey-core/src/question_buttongroup" {
|
18984
18977
|
import { ItemValue } from "packages/survey-core/src/itemvalue";
|
@@ -19415,7 +19408,7 @@ declare module "packages/survey-core/entries/chunks/model" {
|
|
19415
19408
|
export { Cover, CoverCell } from "packages/survey-core/src/header";
|
19416
19409
|
export { dxSurveyService } from "packages/survey-core/src/dxSurveyService";
|
19417
19410
|
export { englishStrings } from "packages/survey-core/src/localization/english";
|
19418
|
-
export { surveyLocalization, surveyStrings } from "packages/survey-core/src/surveyStrings";
|
19411
|
+
export { surveyLocalization, surveyStrings, getLocaleString, setupLocale } from "packages/survey-core/src/surveyStrings";
|
19419
19412
|
export { QuestionCustomWidget, CustomWidgetCollection, } from "packages/survey-core/src/questionCustomWidgets";
|
19420
19413
|
export { QuestionCustomModel, QuestionCompositeModel, ComponentQuestionJSON, ComponentCollection, ICustomQuestionTypeConfiguration } from "packages/survey-core/src/question_custom";
|
19421
19414
|
export { ListModel } from "packages/survey-core/src/list";
|
@@ -20381,6 +20374,30 @@ declare module "src/defaultCss/cssmodern" {
|
|
20381
20374
|
};
|
20382
20375
|
};
|
20383
20376
|
}
|
20377
|
+
declare module "packages/survey-core/src/svgbundle" {
|
20378
|
+
import { EventBase } from "packages/survey-core/src/base";
|
20379
|
+
interface SvgIconData {
|
20380
|
+
[key: string]: string;
|
20381
|
+
}
|
20382
|
+
export class SvgIconRegistry {
|
20383
|
+
icons: SvgIconData;
|
20384
|
+
private iconPrefix;
|
20385
|
+
private processId;
|
20386
|
+
registerIconFromSymbol(iconId: string, iconSymbolSvg: string): void;
|
20387
|
+
registerIconFromSvgViaElement(iconId: string, iconSvg: string, iconPrefix?: string): void;
|
20388
|
+
registerIconFromSvg(iconId: string, iconSvg: string, iconPrefix?: string): boolean;
|
20389
|
+
registerIconsFromFolder(r: any): void;
|
20390
|
+
registerIcons(icons: SvgIconData): void;
|
20391
|
+
iconsRenderedHtml(): string;
|
20392
|
+
updateMarkup(): void;
|
20393
|
+
onIconsChanged: EventBase<SvgIconRegistry, {}>;
|
20394
|
+
}
|
20395
|
+
export const SvgRegistry: SvgIconRegistry;
|
20396
|
+
export const SvgThemeSets: {
|
20397
|
+
[index: string]: SvgIconData;
|
20398
|
+
};
|
20399
|
+
export function addIconsToThemeSet(name: string, iconsData: SvgIconData): void;
|
20400
|
+
}
|
20384
20401
|
declare module "packages/survey-core/entries/chunks/core-wo-model" {
|
20385
20402
|
export * from "packages/survey-core/entries/chunks/model";
|
20386
20403
|
export * from "packages/survey-core/src/svgbundle";
|
@@ -27442,8 +27459,6 @@ declare module "packages/survey-react-ui/src/components/popup/popup" {
|
|
27442
27459
|
import { SurveyElementBase } from "packages/survey-react-ui/src/reactquestion_element";
|
27443
27460
|
interface IPopupProps {
|
27444
27461
|
model: PopupModel;
|
27445
|
-
getTarget?: (container: HTMLElement) => HTMLElement;
|
27446
|
-
getArea?: (container: HTMLElement) => HTMLElement;
|
27447
27462
|
}
|
27448
27463
|
export class Popup extends SurveyElementBase<IPopupProps, any> {
|
27449
27464
|
private popup;
|
@@ -27781,23 +27796,6 @@ declare module "packages/survey-react-ui/src/page" {
|
|
27781
27796
|
protected renderDescription(): JSX.Element | null;
|
27782
27797
|
}
|
27783
27798
|
}
|
27784
|
-
declare module "packages/survey-react-ui/src/string-viewer" {
|
27785
|
-
import React from "react";
|
27786
|
-
export class SurveyLocStringViewer extends React.Component<any, any> {
|
27787
|
-
constructor(props: any);
|
27788
|
-
private rootRef;
|
27789
|
-
private get locStr();
|
27790
|
-
private get style();
|
27791
|
-
componentDidMount(): void;
|
27792
|
-
componentWillUnmount(): void;
|
27793
|
-
componentDidUpdate(prevProps: any, prevState: any): void;
|
27794
|
-
private isRendering;
|
27795
|
-
private onChangedHandler;
|
27796
|
-
private reactOnStrChanged;
|
27797
|
-
render(): JSX.Element | null;
|
27798
|
-
protected renderString(): JSX.Element;
|
27799
|
-
}
|
27800
|
-
}
|
27801
27799
|
declare module "packages/survey-react-ui/src/components/survey-header/survey-header" {
|
27802
27800
|
import React from "react";
|
27803
27801
|
import { SurveyModel } from "src/entries/core";
|
@@ -27845,7 +27843,9 @@ declare module "packages/survey-react-ui/src/svgbundle" {
|
|
27845
27843
|
export class SvgBundleComponent extends React.Component {
|
27846
27844
|
private containerRef;
|
27847
27845
|
constructor(props: any);
|
27846
|
+
private onIconsChanged;
|
27848
27847
|
componentDidMount(): void;
|
27848
|
+
componentWillUnmount(): void;
|
27849
27849
|
render(): JSX.Element;
|
27850
27850
|
}
|
27851
27851
|
}
|
@@ -27872,6 +27872,18 @@ declare module "packages/survey-react-ui/src/components/popup/popup-modal" {
|
|
27872
27872
|
componentWillUnmount(): void;
|
27873
27873
|
}
|
27874
27874
|
}
|
27875
|
+
declare module "packages/survey-core/src/iconsV1" {
|
27876
|
+
const icons: {
|
27877
|
+
[index: string]: string;
|
27878
|
+
};
|
27879
|
+
export { icons };
|
27880
|
+
}
|
27881
|
+
declare module "packages/survey-core/src/iconsV2" {
|
27882
|
+
const icons: {
|
27883
|
+
[index: string]: string;
|
27884
|
+
};
|
27885
|
+
export { icons };
|
27886
|
+
}
|
27875
27887
|
declare module "packages/survey-react-ui/src/reactSurvey" {
|
27876
27888
|
import { Base, Question, PageModel, SurveyError, SurveyModel, IAttachKey2clickOptions } from "src/entries/core";
|
27877
27889
|
import { ISurveyCreator } from "packages/survey-react-ui/src/reactquestion";
|
@@ -28871,6 +28883,23 @@ declare module "packages/survey-react-ui/src/components/survey-actions/survey-na
|
|
28871
28883
|
protected renderElement(): JSX.Element;
|
28872
28884
|
}
|
28873
28885
|
}
|
28886
|
+
declare module "packages/survey-react-ui/src/string-viewer" {
|
28887
|
+
import React from "react";
|
28888
|
+
export class SurveyLocStringViewer extends React.Component<any, any> {
|
28889
|
+
constructor(props: any);
|
28890
|
+
private rootRef;
|
28891
|
+
private get locStr();
|
28892
|
+
private get style();
|
28893
|
+
componentDidMount(): void;
|
28894
|
+
componentWillUnmount(): void;
|
28895
|
+
componentDidUpdate(prevProps: any, prevState: any): void;
|
28896
|
+
private isRendering;
|
28897
|
+
private onChangedHandler;
|
28898
|
+
private reactOnStrChanged;
|
28899
|
+
render(): JSX.Element | null;
|
28900
|
+
protected renderString(): JSX.Element;
|
28901
|
+
}
|
28902
|
+
}
|
28874
28903
|
declare module "packages/survey-react-ui/src/components/question-error" {
|
28875
28904
|
import React from "react";
|
28876
28905
|
import { SurveyError } from "src/entries/core";
|