survey-react 1.9.129 → 1.9.131
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 +30 -5
- package/defaultV2.css.map +1 -1
- package/defaultV2.min.css +2 -2
- package/modern.css +19 -3
- package/modern.css.map +1 -1
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/survey.css +3 -2
- package/survey.css.map +1 -1
- package/survey.min.css +2 -2
- package/survey.react.d.ts +259 -161
- package/survey.react.js +517 -173
- package/survey.react.js.map +1 -1
- package/survey.react.min.js +3 -3
package/survey.react.d.ts
CHANGED
@@ -269,130 +269,6 @@ declare module "surveyStrings" {
|
|
269
269
|
cancel: string;
|
270
270
|
};
|
271
271
|
}
|
272
|
-
declare module "localizablestring" {
|
273
|
-
import { EventBase } from "base";
|
274
|
-
export interface ILocalizableOwner {
|
275
|
-
getLocale(): string;
|
276
|
-
getMarkdownHtml(text: string, name: string): string;
|
277
|
-
getProcessedText(text: string): string;
|
278
|
-
getRenderer(name: string): string;
|
279
|
-
getRendererContext(locStr: LocalizableString): any;
|
280
|
-
}
|
281
|
-
export interface ILocalizableString {
|
282
|
-
getLocaleText(loc: string): string;
|
283
|
-
setLocaleText(loc: string, newValue: string): any;
|
284
|
-
getJson(): any;
|
285
|
-
getLocales(): Array<string>;
|
286
|
-
getIsMultiple(): boolean;
|
287
|
-
}
|
288
|
-
/**
|
289
|
-
* The class represents the string that supports multi-languages and markdown.
|
290
|
-
* It uses in all objects where support for multi-languages and markdown is required.
|
291
|
-
*/
|
292
|
-
export class LocalizableString implements ILocalizableString {
|
293
|
-
owner: ILocalizableOwner;
|
294
|
-
useMarkdown: boolean;
|
295
|
-
name?: string;
|
296
|
-
static SerializeAsObject: boolean;
|
297
|
-
static get defaultLocale(): string;
|
298
|
-
static set defaultLocale(val: string);
|
299
|
-
static defaultRenderer: string;
|
300
|
-
static editableRenderer: string;
|
301
|
-
private values;
|
302
|
-
private htmlValues;
|
303
|
-
private renderedText;
|
304
|
-
private calculatedTextValue;
|
305
|
-
private _localizationName;
|
306
|
-
get localizationName(): string;
|
307
|
-
set localizationName(val: string);
|
308
|
-
onGetTextCallback: (str: string) => string;
|
309
|
-
storeDefaultText: boolean;
|
310
|
-
onGetLocalizationTextCallback: (str: string) => string;
|
311
|
-
onStrChanged: (oldValue: string, newValue: string) => void;
|
312
|
-
onSearchChanged: () => void;
|
313
|
-
sharedData: LocalizableString;
|
314
|
-
searchText: string;
|
315
|
-
searchIndex: number;
|
316
|
-
disableLocalization: boolean;
|
317
|
-
defaultValue: string;
|
318
|
-
constructor(owner: ILocalizableOwner, useMarkdown?: boolean, name?: string);
|
319
|
-
getIsMultiple(): boolean;
|
320
|
-
get locale(): string;
|
321
|
-
strChanged(): void;
|
322
|
-
get text(): string;
|
323
|
-
set text(value: string);
|
324
|
-
get calculatedText(): string;
|
325
|
-
private calcText;
|
326
|
-
get pureText(): string;
|
327
|
-
private getRootDialect;
|
328
|
-
private getLocalizationName;
|
329
|
-
private getLocalizationStr;
|
330
|
-
get hasHtml(): boolean;
|
331
|
-
get html(): string;
|
332
|
-
get isEmpty(): boolean;
|
333
|
-
get textOrHtml(): string;
|
334
|
-
get renderedHtml(): string;
|
335
|
-
getLocaleText(loc: string): string;
|
336
|
-
private getLocaleTextCore;
|
337
|
-
private isLocaleTextEqualsWithDefault;
|
338
|
-
clear(): void;
|
339
|
-
clearLocale(loc?: string): void;
|
340
|
-
setLocaleText(loc: string, value: string): void;
|
341
|
-
private isValueEmpty;
|
342
|
-
private get curLocale();
|
343
|
-
private canRemoveLocValue;
|
344
|
-
private fireStrChanged;
|
345
|
-
hasNonDefaultText(): boolean;
|
346
|
-
getLocales(): Array<string>;
|
347
|
-
getJson(): any;
|
348
|
-
setJson(value: any): void;
|
349
|
-
get renderAs(): string;
|
350
|
-
get renderAsData(): any;
|
351
|
-
equals(obj: any): boolean;
|
352
|
-
private searchableText;
|
353
|
-
setFindText(text: string): boolean;
|
354
|
-
onChanged(): void;
|
355
|
-
onStringChanged: EventBase<LocalizableString>;
|
356
|
-
protected onCreating(): void;
|
357
|
-
private hasHtmlValue;
|
358
|
-
private setHtmlValue;
|
359
|
-
getHtmlValue(): string;
|
360
|
-
private deleteValuesEqualsToDefault;
|
361
|
-
private getValue;
|
362
|
-
private setValue;
|
363
|
-
private deleteValue;
|
364
|
-
private getValueLoc;
|
365
|
-
private getValuesKeys;
|
366
|
-
private get defaultLoc();
|
367
|
-
}
|
368
|
-
/**
|
369
|
-
* The class represents the list of strings that supports multi-languages.
|
370
|
-
*/
|
371
|
-
export class LocalizableStrings implements ILocalizableString {
|
372
|
-
owner: ILocalizableOwner;
|
373
|
-
private values;
|
374
|
-
onValueChanged: (oldValue: any, newValue: any) => void;
|
375
|
-
constructor(owner: ILocalizableOwner);
|
376
|
-
getIsMultiple(): boolean;
|
377
|
-
get locale(): string;
|
378
|
-
get value(): Array<string>;
|
379
|
-
set value(val: Array<string>);
|
380
|
-
get text(): string;
|
381
|
-
set text(val: string);
|
382
|
-
getLocaleText(loc: string): string;
|
383
|
-
setLocaleText(loc: string, newValue: string): any;
|
384
|
-
getValue(loc: string): Array<string>;
|
385
|
-
private getValueCore;
|
386
|
-
setValue(loc: string, val: Array<string>): void;
|
387
|
-
hasValue(loc?: string): boolean;
|
388
|
-
get isEmpty(): boolean;
|
389
|
-
private getLocale;
|
390
|
-
getLocales(): Array<string>;
|
391
|
-
getJson(): any;
|
392
|
-
setJson(value: any): void;
|
393
|
-
private getValuesKeys;
|
394
|
-
}
|
395
|
-
}
|
396
272
|
declare module "conditionProcessValue" {
|
397
273
|
import { HashTable } from "helpers";
|
398
274
|
export class ProcessValue {
|
@@ -849,7 +725,7 @@ declare module "utils/utils" {
|
|
849
725
|
function isContainerVisible(el: HTMLElement): boolean;
|
850
726
|
function getFirstVisibleChild(el: HTMLElement): any;
|
851
727
|
function findParentByClassNames(element: HTMLElement, classNames: Array<string>): Element;
|
852
|
-
export function sanitizeEditableContent(element: any): void;
|
728
|
+
export function sanitizeEditableContent(element: any, cleanLineBreaks?: boolean): void;
|
853
729
|
function mergeValues(src: any, dest: any): void;
|
854
730
|
export class Logger {
|
855
731
|
private _result;
|
@@ -1678,6 +1554,7 @@ declare module "defaultCss/defaultV2Css" {
|
|
1678
1554
|
itemOnError: string;
|
1679
1555
|
control: string;
|
1680
1556
|
itemChecked: string;
|
1557
|
+
itemExchanged: string;
|
1681
1558
|
itemIndeterminate: string;
|
1682
1559
|
itemDisabled: string;
|
1683
1560
|
itemHover: string;
|
@@ -3251,6 +3128,11 @@ declare module "panel" {
|
|
3251
3128
|
get rows(): Array<QuestionRowModel>;
|
3252
3129
|
ensureRowsVisibility(): void;
|
3253
3130
|
protected onRowsChanged(): void;
|
3131
|
+
private locCountRowUpdates;
|
3132
|
+
private blockRowsUpdates;
|
3133
|
+
private releaseRowsUpdates;
|
3134
|
+
private updateRowsBeforeElementRemoved;
|
3135
|
+
private updateRowsOnElementAdded;
|
3254
3136
|
protected onAddElement(element: IElement, index: number): void;
|
3255
3137
|
protected onRemoveElement(element: IElement): void;
|
3256
3138
|
private onElementVisibilityChanged;
|
@@ -3317,6 +3199,7 @@ declare module "panel" {
|
|
3317
3199
|
* @see addNewPanel
|
3318
3200
|
*/
|
3319
3201
|
addElement(element: IElement, index?: number): boolean;
|
3202
|
+
insertElement(element: IElement, dest?: IElement, location?: "bottom" | "top" | "left" | "right"): void;
|
3320
3203
|
insertElementAfter(element: IElement, after: IElement): void;
|
3321
3204
|
insertElementBefore(element: IElement, before: IElement): void;
|
3322
3205
|
protected canAddElement(element: IElement): boolean;
|
@@ -3339,7 +3222,7 @@ declare module "panel" {
|
|
3339
3222
|
*
|
3340
3223
|
* This method returns `null` if the panel cannot be created or added to this panel/page; otherwise, the method returns the created panel.
|
3341
3224
|
* @param name A panel name.
|
3342
|
-
* @see
|
3225
|
+
* @see elementsup
|
3343
3226
|
* @see addElement
|
3344
3227
|
*/
|
3345
3228
|
addNewPanel(name?: string): PanelModel;
|
@@ -3686,7 +3569,7 @@ declare module "question_file" {
|
|
3686
3569
|
*/
|
3687
3570
|
get maxSize(): number;
|
3688
3571
|
set maxSize(val: number);
|
3689
|
-
chooseFile(): void;
|
3572
|
+
chooseFile(event: MouseEvent): void;
|
3690
3573
|
/**
|
3691
3574
|
* Specifies whether users should confirm file deletion.
|
3692
3575
|
*
|
@@ -3778,7 +3661,7 @@ declare module "question_file" {
|
|
3778
3661
|
protected onChangeQuestionValue(newValue: any): void;
|
3779
3662
|
protected calcCssClasses(css: any): any;
|
3780
3663
|
updateElementCss(reNew?: boolean): void;
|
3781
|
-
|
3664
|
+
onSurveyLoad(): void;
|
3782
3665
|
protected needResponsiveness(): boolean;
|
3783
3666
|
protected supportResponsiveness(): boolean;
|
3784
3667
|
protected getObservedElementSelector(): string;
|
@@ -5175,6 +5058,7 @@ declare module "dragdrop/dom-adapter" {
|
|
5175
5058
|
export class DragDropDOMAdapter implements IDragDropDOMAdapter {
|
5176
5059
|
private dd;
|
5177
5060
|
private longTap;
|
5061
|
+
private fitToContainer;
|
5178
5062
|
static PreventScrolling: boolean;
|
5179
5063
|
private timeoutID;
|
5180
5064
|
private startX;
|
@@ -5185,7 +5069,7 @@ declare module "dragdrop/dom-adapter" {
|
|
5185
5069
|
private savedTargetNodeParent;
|
5186
5070
|
private savedTargetNodeIndex;
|
5187
5071
|
private scrollIntervalId;
|
5188
|
-
constructor(dd: IDragDropEngine, longTap?: boolean);
|
5072
|
+
constructor(dd: IDragDropEngine, longTap?: boolean, fitToContainer?: boolean);
|
5189
5073
|
private get rootElement();
|
5190
5074
|
private stopLongTapIfMoveEnough;
|
5191
5075
|
private get isMicroMovement();
|
@@ -5546,7 +5430,7 @@ declare module "question_matrixdynamic" {
|
|
5546
5430
|
protected updateProgressInfoByValues(res: IProgressInfo): void;
|
5547
5431
|
private getValueForNewRow;
|
5548
5432
|
/**
|
5549
|
-
* Specifies whether users can drag and drop matrix rows to reorder them. Applies only if [`
|
5433
|
+
* Specifies whether users can drag and drop matrix rows to reorder them. Applies only if [`transposeData`](#transposeData) is `false`.
|
5550
5434
|
*
|
5551
5435
|
* Default value: `false`
|
5552
5436
|
*/
|
@@ -5679,8 +5563,7 @@ declare module "question_matrixdynamic" {
|
|
5679
5563
|
* - `"bottom"` - Displays the Add Row button at the bottom of the matrix.
|
5680
5564
|
* - `"topBottom"` - Displays the Add Row button at the top and bottom of the matrix.
|
5681
5565
|
*
|
5682
|
-
* Default value: `"top"` if `
|
5683
|
-
* @see columnLayout
|
5566
|
+
* Default value: `"top"` if [`transposeData`](#transposeData) is `true`; `"bottom"` if `transposeData` is `false` or the matrix is in compact mode.
|
5684
5567
|
* @see addRowText
|
5685
5568
|
*/
|
5686
5569
|
get addRowLocation(): string;
|
@@ -6564,7 +6447,7 @@ declare module "question_paneldynamic" {
|
|
6564
6447
|
getPrevButtonCss(): string;
|
6565
6448
|
getNextButtonCss(): string;
|
6566
6449
|
/**
|
6567
|
-
* A text displayed when Dynamic Panel contains no entries.
|
6450
|
+
* A text displayed when Dynamic Panel contains no entries.
|
6568
6451
|
*/
|
6569
6452
|
get noEntriesText(): string;
|
6570
6453
|
set noEntriesText(val: string);
|
@@ -9991,6 +9874,7 @@ declare module "survey" {
|
|
9991
9874
|
get isLogoBefore(): boolean;
|
9992
9875
|
get isLogoAfter(): boolean;
|
9993
9876
|
get logoClassNames(): string;
|
9877
|
+
private titleIsEmpty;
|
9994
9878
|
get renderedHasTitle(): boolean;
|
9995
9879
|
get renderedHasDescription(): boolean;
|
9996
9880
|
get hasTitle(): boolean;
|
@@ -11997,6 +11881,7 @@ declare module "questionCustomWidgets" {
|
|
11997
11881
|
afterRender(question: IQuestion, el: any): void;
|
11998
11882
|
willUnmount(question: IQuestion, el: any): void;
|
11999
11883
|
getDisplayValue(question: IQuestion, value?: any): string;
|
11884
|
+
validate(question: IQuestion): string;
|
12000
11885
|
isFit(question: IQuestion): boolean;
|
12001
11886
|
get canShowInToolbox(): boolean;
|
12002
11887
|
get showInToolbox(): boolean;
|
@@ -12819,6 +12704,7 @@ declare module "question" {
|
|
12819
12704
|
*/
|
12820
12705
|
get requiredText(): string;
|
12821
12706
|
addError(error: SurveyError | string): void;
|
12707
|
+
private addCustomError;
|
12822
12708
|
removeError(error: SurveyError): void;
|
12823
12709
|
private checkForErrors;
|
12824
12710
|
protected canCollectErrors(): boolean;
|
@@ -13346,12 +13232,16 @@ declare module "question_matrixdropdownbase" {
|
|
13346
13232
|
protected updateColumnsAndRows(): void;
|
13347
13233
|
itemValuePropertyChanged(item: ItemValue, name: string, oldValue: any, newValue: any): void;
|
13348
13234
|
/**
|
13349
|
-
* Specifies
|
13235
|
+
* Specifies whether to display [`columns`](#columns) as rows and [`rows`](#rows) as columns.
|
13350
13236
|
*
|
13351
|
-
* Default value: `
|
13352
|
-
*
|
13353
|
-
*
|
13354
|
-
|
13237
|
+
* Default value: `false`
|
13238
|
+
*
|
13239
|
+
* [View Demo](https://surveyjs.io/form-library/examples/transpose-dynamic-rows-to-columns-in-matrix/ (linkStyle))
|
13240
|
+
*/
|
13241
|
+
get transposeData(): boolean;
|
13242
|
+
set transposeData(val: boolean);
|
13243
|
+
/**
|
13244
|
+
* This property is obsolete. Use the [`transposeData`](#transposeData) property instead.
|
13355
13245
|
*/
|
13356
13246
|
get columnLayout(): string;
|
13357
13247
|
set columnLayout(val: string);
|
@@ -13383,10 +13273,10 @@ declare module "question_matrixdropdownbase" {
|
|
13383
13273
|
set cellErrorLocation(value: string);
|
13384
13274
|
getChildErrorLocation(child: Question): string;
|
13385
13275
|
/**
|
13386
|
-
* Returns `true` if columns are placed in the horizontal direction and rows in the vertical direction.
|
13276
|
+
* Returns `true` if [`columns`](#columns) are placed in the horizontal direction and [`rows`](#columns) in the vertical direction.
|
13387
13277
|
*
|
13388
|
-
* To specify the layout, use the `
|
13389
|
-
* @see
|
13278
|
+
* To specify the layout, use the [`transposeData`](#transposeData) property. If you set it to `true`, the survey applies it only when the screen has enough space. Otherwise, the survey falls back to the original layout, but the `transposeData` property remains set to `true`. Unlike `transposeData`, the `isColumnLayoutHorizontal` property always indicates the current layout.
|
13279
|
+
* @see transposeData
|
13390
13280
|
*/
|
13391
13281
|
get isColumnLayoutHorizontal(): boolean;
|
13392
13282
|
/**
|
@@ -14013,6 +13903,52 @@ declare module "jsonobject" {
|
|
14013
13903
|
export interface IObject {
|
14014
13904
|
[key: string]: any;
|
14015
13905
|
}
|
13906
|
+
export interface IJsonPropertyInfo {
|
13907
|
+
name: string;
|
13908
|
+
type?: string;
|
13909
|
+
className?: string;
|
13910
|
+
classNamePart?: string;
|
13911
|
+
baseClassName?: string;
|
13912
|
+
isRequired?: boolean;
|
13913
|
+
isUnique?: boolean;
|
13914
|
+
uniqueProperty?: string;
|
13915
|
+
choices?: any;
|
13916
|
+
visible?: boolean;
|
13917
|
+
alternativeName?: string;
|
13918
|
+
oldName?: string;
|
13919
|
+
version?: string;
|
13920
|
+
dataList?: Array<string>;
|
13921
|
+
isLocalizable?: boolean;
|
13922
|
+
isSerializable?: boolean;
|
13923
|
+
isLightSerializable?: boolean;
|
13924
|
+
readOnly?: boolean;
|
13925
|
+
serializationProperty?: string;
|
13926
|
+
dependsOn?: Array<string> | string;
|
13927
|
+
isBindable?: boolean;
|
13928
|
+
isArray?: boolean;
|
13929
|
+
layout?: string;
|
13930
|
+
default?: any;
|
13931
|
+
defaultFunc?: (obj: Base) => any;
|
13932
|
+
baseValue?: any;
|
13933
|
+
onSerializeValue?: (obj: any) => any;
|
13934
|
+
onGetValue?: (obj: any) => any;
|
13935
|
+
onSettingValue?: (obj: any, value: any) => any;
|
13936
|
+
onSetValue?: (obj: any, value: any, jsonConv: JsonObject) => any;
|
13937
|
+
visibleIf?: (obj: any) => boolean;
|
13938
|
+
enableIf?: (obj: any) => boolean;
|
13939
|
+
onExecuteExpression?: (obj: any, res: any) => any;
|
13940
|
+
onPropertyEditorUpdate?: (obj: any, propEditor: any) => any;
|
13941
|
+
displayName?: string;
|
13942
|
+
category?: string;
|
13943
|
+
categoryIndex?: number;
|
13944
|
+
visibleIndex?: number;
|
13945
|
+
nextToProperty?: string;
|
13946
|
+
overridingProperty?: string;
|
13947
|
+
showMode?: string;
|
13948
|
+
maxLength?: number;
|
13949
|
+
maxValue?: any;
|
13950
|
+
minValue?: any;
|
13951
|
+
}
|
14016
13952
|
/**
|
14017
13953
|
* Contains information about a property of a survey element (page, panel, questions, and etc).
|
14018
13954
|
* @see addProperty
|
@@ -14020,7 +13956,7 @@ declare module "jsonobject" {
|
|
14020
13956
|
* @see [Add Properties](https://surveyjs.io/Documentation/Survey-Creator#addproperties)
|
14021
13957
|
* @see [Remove Properties](https://surveyjs.io/Documentation/Survey-Creator#removeproperties)
|
14022
13958
|
*/
|
14023
|
-
export class JsonObjectProperty implements IObject {
|
13959
|
+
export class JsonObjectProperty implements IObject, IJsonPropertyInfo {
|
14024
13960
|
name: string;
|
14025
13961
|
static getItemValuesDefaultValue: (val: any, type: string) => any;
|
14026
13962
|
[key: string]: any;
|
@@ -14030,7 +13966,7 @@ declare module "jsonobject" {
|
|
14030
13966
|
private classInfoValue;
|
14031
13967
|
private typeValue;
|
14032
13968
|
private choicesValue;
|
14033
|
-
|
13969
|
+
baseValue: any;
|
14034
13970
|
private isRequiredValue;
|
14035
13971
|
private isUniqueValue;
|
14036
13972
|
private uniquePropertyValue;
|
@@ -14046,6 +13982,7 @@ declare module "jsonobject" {
|
|
14046
13982
|
isBindable: boolean;
|
14047
13983
|
className: string;
|
14048
13984
|
alternativeName: string;
|
13985
|
+
oldName: string;
|
14049
13986
|
classNamePart: string;
|
14050
13987
|
baseClassName: string;
|
14051
13988
|
defaultValueValue: any;
|
@@ -14073,6 +14010,10 @@ declare module "jsonobject" {
|
|
14073
14010
|
onExecuteExpression: (obj: any, res: any) => any;
|
14074
14011
|
onPropertyEditorUpdate: (obj: any, propEditor: any) => any;
|
14075
14012
|
constructor(classInfo: JsonMetadataClass, name: string, isRequired?: boolean);
|
14013
|
+
uniqueProperty?: string;
|
14014
|
+
dependsOn?: string | string[];
|
14015
|
+
default?: any;
|
14016
|
+
defaultFunc?: (obj: Base) => any;
|
14076
14017
|
get id(): number;
|
14077
14018
|
get classInfo(): JsonMetadataClass;
|
14078
14019
|
get type(): string;
|
@@ -14116,6 +14057,7 @@ declare module "jsonobject" {
|
|
14116
14057
|
set visible(val: boolean);
|
14117
14058
|
isAvailableInVersion(ver: string): boolean;
|
14118
14059
|
getSerializedName(ver: string): string;
|
14060
|
+
getSerializedProperty(obj: any, ver: string): JsonObjectProperty;
|
14119
14061
|
private isAvailableInVersionCore;
|
14120
14062
|
get isLocalizable(): boolean;
|
14121
14063
|
set isLocalizable(val: boolean);
|
@@ -14184,7 +14126,8 @@ declare module "jsonobject" {
|
|
14184
14126
|
setObjPropertyValue(obj: any, name: string, val: any): void;
|
14185
14127
|
private getObjPropertyValueCore;
|
14186
14128
|
private isObjWrapper;
|
14187
|
-
|
14129
|
+
private isNeedUseObjWrapper;
|
14130
|
+
addClass(name: string, properties: Array<IJsonPropertyInfo | string>, creator?: (json?: any) => any, parentName?: string): JsonMetadataClass;
|
14188
14131
|
removeClass(name: string): void;
|
14189
14132
|
overrideClassCreatore(name: string, creator: () => any): void;
|
14190
14133
|
overrideClassCreator(name: string, creator: () => any): void;
|
@@ -14205,8 +14148,8 @@ declare module "jsonobject" {
|
|
14205
14148
|
private createCustomType;
|
14206
14149
|
getChildrenClasses(name: string, canBeCreated?: boolean): Array<JsonMetadataClass>;
|
14207
14150
|
getRequiredProperties(name: string): Array<string>;
|
14208
|
-
addProperties(className: string, propertiesInfos: Array<
|
14209
|
-
addProperty(className: string, propertyInfo:
|
14151
|
+
addProperties(className: string, propertiesInfos: Array<IJsonPropertyInfo | string>): void;
|
14152
|
+
addProperty(className: string, propertyInfo: IJsonPropertyInfo | string): JsonObjectProperty;
|
14210
14153
|
private addCustomPropertyCore;
|
14211
14154
|
removeProperty(className: string, propertyName: string): boolean;
|
14212
14155
|
private clearDynamicPropsCache;
|
@@ -14286,6 +14229,7 @@ declare module "jsonobject" {
|
|
14286
14229
|
private addDynamicProperties;
|
14287
14230
|
private propertiesToJson;
|
14288
14231
|
valueToJson(obj: any, result: any, prop: JsonObjectProperty, options?: ISaveToJSONOptions): void;
|
14232
|
+
private valueToJsonCore;
|
14289
14233
|
valueToObj(value: any, obj: any, property: JsonObjectProperty, jsonObj?: any, options?: ILoadFromJSONOptions): void;
|
14290
14234
|
private removePosOnValueToJson;
|
14291
14235
|
private removePos;
|
@@ -14306,6 +14250,132 @@ declare module "jsonobject" {
|
|
14306
14250
|
*/
|
14307
14251
|
export var Serializer: JsonMetadata;
|
14308
14252
|
}
|
14253
|
+
declare module "localizablestring" {
|
14254
|
+
import { EventBase } from "base";
|
14255
|
+
export interface ILocalizableOwner {
|
14256
|
+
getLocale(): string;
|
14257
|
+
getMarkdownHtml(text: string, name: string): string;
|
14258
|
+
getProcessedText(text: string): string;
|
14259
|
+
getRenderer(name: string): string;
|
14260
|
+
getRendererContext(locStr: LocalizableString): any;
|
14261
|
+
}
|
14262
|
+
export interface ILocalizableString {
|
14263
|
+
getLocaleText(loc: string): string;
|
14264
|
+
setLocaleText(loc: string, newValue: string): any;
|
14265
|
+
getJson(): any;
|
14266
|
+
getLocales(): Array<string>;
|
14267
|
+
getIsMultiple(): boolean;
|
14268
|
+
}
|
14269
|
+
/**
|
14270
|
+
* The class represents the string that supports multi-languages and markdown.
|
14271
|
+
* It uses in all objects where support for multi-languages and markdown is required.
|
14272
|
+
*/
|
14273
|
+
export class LocalizableString implements ILocalizableString {
|
14274
|
+
owner: ILocalizableOwner;
|
14275
|
+
useMarkdown: boolean;
|
14276
|
+
name?: string;
|
14277
|
+
static SerializeAsObject: boolean;
|
14278
|
+
static get defaultLocale(): string;
|
14279
|
+
static set defaultLocale(val: string);
|
14280
|
+
static defaultRenderer: string;
|
14281
|
+
static editableRenderer: string;
|
14282
|
+
private values;
|
14283
|
+
private htmlValues;
|
14284
|
+
private renderedText;
|
14285
|
+
private calculatedTextValue;
|
14286
|
+
private _localizationName;
|
14287
|
+
get localizationName(): string;
|
14288
|
+
set localizationName(val: string);
|
14289
|
+
private _allowLineBreaks;
|
14290
|
+
get allowLineBreaks(): boolean;
|
14291
|
+
onGetTextCallback: (str: string) => string;
|
14292
|
+
storeDefaultText: boolean;
|
14293
|
+
onGetLocalizationTextCallback: (str: string) => string;
|
14294
|
+
onStrChanged: (oldValue: string, newValue: string) => void;
|
14295
|
+
onSearchChanged: () => void;
|
14296
|
+
sharedData: LocalizableString;
|
14297
|
+
searchText: string;
|
14298
|
+
searchIndex: number;
|
14299
|
+
disableLocalization: boolean;
|
14300
|
+
defaultValue: string;
|
14301
|
+
constructor(owner: ILocalizableOwner, useMarkdown?: boolean, name?: string);
|
14302
|
+
getIsMultiple(): boolean;
|
14303
|
+
get locale(): string;
|
14304
|
+
strChanged(): void;
|
14305
|
+
get text(): string;
|
14306
|
+
set text(value: string);
|
14307
|
+
get calculatedText(): string;
|
14308
|
+
private calcText;
|
14309
|
+
get pureText(): string;
|
14310
|
+
private getRootDialect;
|
14311
|
+
private getLocalizationName;
|
14312
|
+
private getLocalizationStr;
|
14313
|
+
get hasHtml(): boolean;
|
14314
|
+
get html(): string;
|
14315
|
+
get isEmpty(): boolean;
|
14316
|
+
get textOrHtml(): string;
|
14317
|
+
get renderedHtml(): string;
|
14318
|
+
getLocaleText(loc: string): string;
|
14319
|
+
private getLocaleTextCore;
|
14320
|
+
private isLocaleTextEqualsWithDefault;
|
14321
|
+
clear(): void;
|
14322
|
+
clearLocale(loc?: string): void;
|
14323
|
+
setLocaleText(loc: string, value: string): void;
|
14324
|
+
private isValueEmpty;
|
14325
|
+
private get curLocale();
|
14326
|
+
private canRemoveLocValue;
|
14327
|
+
private fireStrChanged;
|
14328
|
+
hasNonDefaultText(): boolean;
|
14329
|
+
getLocales(): Array<string>;
|
14330
|
+
getJson(): any;
|
14331
|
+
setJson(value: any): void;
|
14332
|
+
get renderAs(): string;
|
14333
|
+
get renderAsData(): any;
|
14334
|
+
equals(obj: any): boolean;
|
14335
|
+
private searchableText;
|
14336
|
+
setFindText(text: string): boolean;
|
14337
|
+
onChanged(): void;
|
14338
|
+
onStringChanged: EventBase<LocalizableString>;
|
14339
|
+
protected onCreating(): void;
|
14340
|
+
private hasHtmlValue;
|
14341
|
+
private setHtmlValue;
|
14342
|
+
getHtmlValue(): string;
|
14343
|
+
private deleteValuesEqualsToDefault;
|
14344
|
+
private getValue;
|
14345
|
+
private setValue;
|
14346
|
+
private deleteValue;
|
14347
|
+
private getValueLoc;
|
14348
|
+
private getValuesKeys;
|
14349
|
+
private get defaultLoc();
|
14350
|
+
}
|
14351
|
+
/**
|
14352
|
+
* The class represents the list of strings that supports multi-languages.
|
14353
|
+
*/
|
14354
|
+
export class LocalizableStrings implements ILocalizableString {
|
14355
|
+
owner: ILocalizableOwner;
|
14356
|
+
private values;
|
14357
|
+
onValueChanged: (oldValue: any, newValue: any) => void;
|
14358
|
+
constructor(owner: ILocalizableOwner);
|
14359
|
+
getIsMultiple(): boolean;
|
14360
|
+
get locale(): string;
|
14361
|
+
get value(): Array<string>;
|
14362
|
+
set value(val: Array<string>);
|
14363
|
+
get text(): string;
|
14364
|
+
set text(val: string);
|
14365
|
+
getLocaleText(loc: string): string;
|
14366
|
+
setLocaleText(loc: string, newValue: string): any;
|
14367
|
+
getValue(loc: string): Array<string>;
|
14368
|
+
private getValueCore;
|
14369
|
+
setValue(loc: string, val: Array<string>): void;
|
14370
|
+
hasValue(loc?: string): boolean;
|
14371
|
+
get isEmpty(): boolean;
|
14372
|
+
private getLocale;
|
14373
|
+
getLocales(): Array<string>;
|
14374
|
+
getJson(): any;
|
14375
|
+
setJson(value: any): void;
|
14376
|
+
private getValuesKeys;
|
14377
|
+
}
|
14378
|
+
}
|
14309
14379
|
declare module "base" {
|
14310
14380
|
import { ILocalizableOwner, LocalizableString } from "localizablestring";
|
14311
14381
|
import { HashTable } from "helpers";
|
@@ -15062,27 +15132,43 @@ declare module "settings" {
|
|
15062
15132
|
*/
|
15063
15133
|
tagboxCloseOnSelect: boolean;
|
15064
15134
|
/**
|
15065
|
-
* A
|
15135
|
+
* A function that activates a browser confirm dialog.
|
15066
15136
|
*
|
15067
|
-
*
|
15137
|
+
* Use the following code to execute this function:
|
15138
|
+
*
|
15139
|
+
* ```js
|
15140
|
+
* import { settings } from "survey-core";
|
15141
|
+
*
|
15142
|
+
* // `result` contains `true` if the action was confirmed or `false` otherwise
|
15143
|
+
* const result = settings.confirmActionFunc("Are you sure?");
|
15144
|
+
* ```
|
15145
|
+
*
|
15146
|
+
* You can redefine the `confirmActionFunc` function if you want to display a custom dialog window. Your function should return `true` if a user confirms an action or `false` otherwise.
|
15068
15147
|
* @param message A message to be displayed in the confirm dialog window.
|
15069
15148
|
*/
|
15070
15149
|
confirmActionFunc: (message: string) => boolean;
|
15071
15150
|
/**
|
15072
|
-
* A
|
15073
|
-
*
|
15074
|
-
* To display a custom confirm dialog, set this property to a function that renders it. This function should return `true` to be enabled; otherwise, a survey executes the [`confirmActionFunc`](#confirmActionFunc) function. Pass the dialog result as the `callback` parameter: `true` if a user confirms an action, `false` otherwise.
|
15151
|
+
* A function that activates a proprietary SurveyJS confirm dialog.
|
15075
15152
|
*
|
15076
|
-
*
|
15153
|
+
* Use the following code to execute this function:
|
15077
15154
|
*
|
15078
15155
|
* ```js
|
15079
15156
|
* import { settings } from "survey-core";
|
15080
15157
|
*
|
15081
|
-
*
|
15082
|
-
*
|
15083
|
-
*
|
15084
|
-
*
|
15158
|
+
* settings.confirmActionAsync("Are you sure?", (confirmed) => {
|
15159
|
+
* if (confirmed) {
|
15160
|
+
* // ...
|
15161
|
+
* // Proceed with the action
|
15162
|
+
* // ...
|
15163
|
+
* } else {
|
15164
|
+
* // ...
|
15165
|
+
* // Cancel the action
|
15166
|
+
* // ...
|
15167
|
+
* }
|
15168
|
+
* });
|
15085
15169
|
* ```
|
15170
|
+
*
|
15171
|
+
* You can redefine the `confirmActionAsync` function if you want to display a custom dialog window. Your function should return `true` to be enabled; otherwise, a survey executes the [`confirmActionFunc`](#confirmActionFunc) function. Pass the dialog result as the `callback` parameter: `true` if a user confirms an action, `false` otherwise.
|
15086
15172
|
* @param message A message to be displayed in the confirm dialog window.
|
15087
15173
|
* @param callback A callback function that should be called with `true` if a user confirms an action or `false` otherwise.
|
15088
15174
|
*/
|
@@ -15344,6 +15430,7 @@ declare module "dropdownListModel" {
|
|
15344
15430
|
protected popupRecalculatePosition(isResetHeight: boolean): void;
|
15345
15431
|
protected onHidePopup(): void;
|
15346
15432
|
protected getAvailableItems(): Array<ItemValue>;
|
15433
|
+
protected setOnTextSearchCallbackForListModel(listModel: ListModel<ItemValue>): void;
|
15347
15434
|
protected createListModel(): ListModel<ItemValue>;
|
15348
15435
|
protected updateAfterListModelCreated(model: ListModel<ItemValue>): void;
|
15349
15436
|
updateCssClasses(popupCssClass: string, listCssClasses: any): void;
|
@@ -16028,6 +16115,16 @@ declare module "question_tagbox" {
|
|
16028
16115
|
private updateReadOnlyText;
|
16029
16116
|
protected getDefaultItemComponent(): string;
|
16030
16117
|
onSurveyLoad(): void;
|
16118
|
+
/**
|
16119
|
+
* Specifies a comparison operation used to filter the drop-down list. Applies only if [`searchEnabled`](#searchEnabled) is `true`.
|
16120
|
+
*
|
16121
|
+
* Possible values:
|
16122
|
+
*
|
16123
|
+
* - `"contains"` (default)
|
16124
|
+
* - `"startsWith"`
|
16125
|
+
* @see [SurveyModel.onChoicesSearch](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onChoicesSearch)
|
16126
|
+
*/
|
16127
|
+
searchMode: "contains" | "startsWith";
|
16031
16128
|
/**
|
16032
16129
|
* Specifies whether to display a button that clears the selected value.
|
16033
16130
|
*/
|
@@ -16858,6 +16955,9 @@ declare module "question_boolean" {
|
|
16858
16955
|
set labelTrue(val: string);
|
16859
16956
|
get locLabelTrue(): LocalizableString;
|
16860
16957
|
get isDeterminated(): boolean;
|
16958
|
+
swapOrder: boolean;
|
16959
|
+
get locLabelLeft(): LocalizableString;
|
16960
|
+
get locLabelRight(): LocalizableString;
|
16861
16961
|
/**
|
16862
16962
|
* Gets or sets a text label that corresponds to a negative answer.
|
16863
16963
|
*
|
@@ -17103,10 +17203,9 @@ declare module "popup-survey" {
|
|
17103
17203
|
get allowClose(): boolean;
|
17104
17204
|
set allowClose(val: boolean);
|
17105
17205
|
/**
|
17106
|
-
* Specifies whether to display a button that
|
17206
|
+
* Specifies whether to display a button that allows respondents to show the pop-up survey in full screen mode.
|
17107
17207
|
*
|
17108
17208
|
* Default value: `false`
|
17109
|
-
*
|
17110
17209
|
*/
|
17111
17210
|
get allowFullScreen(): boolean;
|
17112
17211
|
set allowFullScreen(val: boolean);
|
@@ -17275,10 +17374,10 @@ declare module "entries/chunks/model" {
|
|
17275
17374
|
export { Operand, Const, BinaryOperand, Variable, FunctionOperand, ArrayOperand, UnaryOperand } from "expressions/expressions";
|
17276
17375
|
export { ConditionsParser } from "conditionsParser";
|
17277
17376
|
export { ProcessValue } from "conditionProcessValue";
|
17278
|
-
export { JsonError, JsonIncorrectTypeError, JsonMetadata, JsonMetadataClass, JsonMissingTypeError, JsonMissingTypeErrorBase, JsonObject, JsonObjectProperty, JsonRequiredPropertyError, JsonUnknownPropertyError, Serializer, property, propertyArray } from "jsonobject";
|
17377
|
+
export { JsonError, JsonIncorrectTypeError, JsonMetadata, JsonMetadataClass, JsonMissingTypeError, JsonMissingTypeErrorBase, JsonObject, IJsonPropertyInfo, JsonObjectProperty, JsonRequiredPropertyError, JsonUnknownPropertyError, Serializer, property, propertyArray } from "jsonobject";
|
17279
17378
|
export { IMatrixDropdownData, MatrixDropdownCell, MatrixDropdownRowModelBase, QuestionMatrixDropdownModelBase } from "question_matrixdropdownbase";
|
17280
17379
|
export { MatrixDropdownColumn, matrixDropdownColumnTypes } from "question_matrixdropdowncolumn";
|
17281
|
-
export { QuestionMatrixDropdownRenderedCell, QuestionMatrixDropdownRenderedRow, QuestionMatrixDropdownRenderedTable } from "question_matrixdropdownrendered";
|
17380
|
+
export { QuestionMatrixDropdownRenderedCell, QuestionMatrixDropdownRenderedRow, QuestionMatrixDropdownRenderedErrorRow, QuestionMatrixDropdownRenderedTable } from "question_matrixdropdownrendered";
|
17282
17381
|
export { MatrixDropdownRowModel, QuestionMatrixDropdownModel } from "question_matrixdropdown";
|
17283
17382
|
export { MatrixDynamicRowModel, QuestionMatrixDynamicModel } from "question_matrixdynamic";
|
17284
17383
|
export { MatrixRowModel, MatrixCells, QuestionMatrixModel, IMatrixData } from "question_matrix";
|
@@ -25229,7 +25328,6 @@ declare module "react/panel-base" {
|
|
25229
25328
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
25230
25329
|
private doAfterRender;
|
25231
25330
|
protected canRender(): boolean;
|
25232
|
-
private renderedRowsCache;
|
25233
25331
|
protected renderRows(css: any): Array<JSX.Element>;
|
25234
25332
|
protected createRow(row: QuestionRowModel, css: any): JSX.Element;
|
25235
25333
|
}
|