survey-react 1.10.2 → 1.10.4
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 +57 -19
- package/defaultV2.css.map +1 -1
- package/defaultV2.min.css +2 -2
- package/modern.css +13 -1
- package/modern.css.map +1 -1
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/survey.css +387 -1
- package/survey.css.map +1 -1
- package/survey.min.css +2 -2
- package/survey.react.d.ts +44 -19
- package/survey.react.js +317 -168
- package/survey.react.js.map +1 -1
- package/survey.react.min.js +3 -3
package/survey.react.d.ts
CHANGED
@@ -706,6 +706,7 @@ declare module "utils/animation" {
|
|
706
706
|
private removeCancelCallback;
|
707
707
|
protected onAnimationEnd(element: HTMLElement, callback: (isCancel?: boolean) => void, options: AnimationOptions): void;
|
708
708
|
protected beforeAnimationRun(element: HTMLElement, options: AnimationOptions | AnimationOptions): void;
|
709
|
+
private getCssClasses;
|
709
710
|
protected runAnimation(element: HTMLElement, options: AnimationOptions, callback: (isCancel?: boolean) => void): void;
|
710
711
|
protected clearHtmlElement(element: HTMLElement, options: AnimationOptions): void;
|
711
712
|
protected onNextRender(callback: () => void, runEarly?: () => boolean, isCancel?: boolean): void;
|
@@ -2043,6 +2044,8 @@ declare module "defaultCss/defaultV2Css" {
|
|
2043
2044
|
selectWrapper: string;
|
2044
2045
|
controlValue: string;
|
2045
2046
|
controlDisabled: string;
|
2047
|
+
controlReadOnly: string;
|
2048
|
+
controlPreview: string;
|
2046
2049
|
controlEmpty: string;
|
2047
2050
|
filterStringInput: string;
|
2048
2051
|
chevronButton: string;
|
@@ -3923,7 +3926,6 @@ declare module "question_file" {
|
|
3923
3926
|
private onChange;
|
3924
3927
|
protected onChangeQuestionValue(newValue: any): void;
|
3925
3928
|
protected calcCssClasses(css: any): any;
|
3926
|
-
updateElementCss(reNew?: boolean): void;
|
3927
3929
|
onSurveyLoad(): void;
|
3928
3930
|
protected needResponsiveness(): boolean;
|
3929
3931
|
protected supportResponsiveness(): boolean;
|
@@ -4319,7 +4321,7 @@ declare module "question_baseselect" {
|
|
4319
4321
|
private setConditionalChoicesRunner;
|
4320
4322
|
private setConditionalEnableChoicesRunner;
|
4321
4323
|
private canSurveyChangeItemVisibility;
|
4322
|
-
|
4324
|
+
private changeItemVisibility;
|
4323
4325
|
private runConditionsForItems;
|
4324
4326
|
protected getHasOther(val: any): boolean;
|
4325
4327
|
protected getIsItemValue(val: any, item: ItemValue): boolean;
|
@@ -5346,6 +5348,8 @@ declare module "dragdrop/dom-adapter" {
|
|
5346
5348
|
private moveShortcutElement;
|
5347
5349
|
private getShortcutBottomCoordinate;
|
5348
5350
|
private getShortcutRightCoordinate;
|
5351
|
+
protected requestAnimationFrame(callback: any): number;
|
5352
|
+
protected scrollByDrag(scrollableParentNode: HTMLElement, clientY: number, clientX: number): void;
|
5349
5353
|
private doScroll;
|
5350
5354
|
private dragOver;
|
5351
5355
|
private clear;
|
@@ -5884,6 +5888,7 @@ declare module "question_matrixdynamic" {
|
|
5884
5888
|
private lastDeletedRow;
|
5885
5889
|
private getInsertedDeletedIndex;
|
5886
5890
|
private isEditingObjectValueChanged;
|
5891
|
+
updateValueFromSurvey(newValue: any, clearData?: boolean): void;
|
5887
5892
|
protected onBeforeValueChanged(val: any): void;
|
5888
5893
|
protected createNewValue(): any;
|
5889
5894
|
protected deleteRowValue(newValue: any, row: MatrixDropdownRowModelBase): any;
|
@@ -12518,9 +12523,10 @@ declare module "rendererFactory" {
|
|
12518
12523
|
export class RendererFactory {
|
12519
12524
|
static Instance: RendererFactory;
|
12520
12525
|
private renderersHash;
|
12526
|
+
private defaultHash;
|
12521
12527
|
unregisterRenderer(questionType: string, rendererAs: string): void;
|
12522
|
-
registerRenderer(questionType: string, renderAs: string, renderer: any): void;
|
12523
|
-
getRenderer(questionType: string, renderAs: string):
|
12528
|
+
registerRenderer(questionType: string, renderAs: string, renderer: any, useAsDefault?: boolean): void;
|
12529
|
+
getRenderer(questionType: string, renderAs: string): string;
|
12524
12530
|
getRendererByQuestion(question: Question): any;
|
12525
12531
|
clear(): void;
|
12526
12532
|
}
|
@@ -15086,6 +15092,8 @@ declare module "base" {
|
|
15086
15092
|
* A new value for the property.
|
15087
15093
|
* - `options.oldValue`: `any`\
|
15088
15094
|
* An old value of the property. If the property is an array, `oldValue` contains the same array as `newValue` does.
|
15095
|
+
*
|
15096
|
+
* If you need to add and remove property change event handlers dynamically, use the [`registerPropertyChangedHandlers`](#registerPropertyChangedHandlers) and [`unregisterPropertyChangedHandlers`](#unregisterPropertyChangedHandlers) methods instead.
|
15089
15097
|
*/
|
15090
15098
|
onPropertyChanged: EventBase<Base>;
|
15091
15099
|
/**
|
@@ -15232,9 +15240,11 @@ declare module "base" {
|
|
15232
15240
|
get isAsyncExpressionRunning(): boolean;
|
15233
15241
|
protected createExpressionRunner(expression: string): ExpressionRunner;
|
15234
15242
|
/**
|
15235
|
-
* Registers a
|
15243
|
+
* Registers a single value change handler for one or multiple properties.
|
15244
|
+
*
|
15245
|
+
* The `registerPropertyChangedHandlers` and [`unregisterPropertyChangedHandlers`](#unregisterPropertyChangedHandlers) methods allow you to manage property change event handlers dynamically. If you only need to attach an event handler without removing it afterwards, you can use the [`onPropertyChanged`](#onPropertyChanged) event instead.
|
15236
15246
|
* @param propertyNames An array of one or multiple property names.
|
15237
|
-
* @param handler A function to call when one of the listed properties change.
|
15247
|
+
* @param handler A function to call when one of the listed properties change. Accepts a new property value as an argument.
|
15238
15248
|
* @param key *(Optional)* A key that identifies the current registration. If a function for one of the properties is already registered with the same key, the function will be overwritten. You can also use the key to subsequently unregister handlers.
|
15239
15249
|
* @see unregisterPropertyChangedHandlers
|
15240
15250
|
*/
|
@@ -15344,8 +15354,8 @@ declare module "popup" {
|
|
15344
15354
|
export interface IPopupOptionsBase {
|
15345
15355
|
onHide?: () => void;
|
15346
15356
|
onShow?: () => void;
|
15347
|
-
onApply?: () => boolean;
|
15348
15357
|
onCancel?: () => void;
|
15358
|
+
onDispose?: () => void;
|
15349
15359
|
cssClass?: string;
|
15350
15360
|
title?: string;
|
15351
15361
|
verticalPosition?: VerticalPosition;
|
@@ -15360,15 +15370,15 @@ declare module "popup" {
|
|
15360
15370
|
onApply: () => boolean;
|
15361
15371
|
isFocusedContent?: boolean;
|
15362
15372
|
}
|
15363
|
-
export
|
15364
|
-
contentComponentName: string;
|
15365
|
-
contentComponentData: T;
|
15366
|
-
}
|
15367
|
-
export class PopupModel<T = any> extends Base {
|
15368
|
-
private onDispose;
|
15373
|
+
export class PopupModel<T = any> extends Base implements IPopupOptionsBase {
|
15369
15374
|
setWidthByTarget: boolean;
|
15370
15375
|
focusFirstInputSelector: string;
|
15371
15376
|
locale: string;
|
15377
|
+
onCancel: () => void;
|
15378
|
+
onApply: () => boolean;
|
15379
|
+
onHide: () => void;
|
15380
|
+
onShow: () => void;
|
15381
|
+
onDispose: () => void;
|
15372
15382
|
contentComponentName: string;
|
15373
15383
|
contentComponentData: T;
|
15374
15384
|
verticalPosition: VerticalPosition;
|
@@ -15377,10 +15387,6 @@ declare module "popup" {
|
|
15377
15387
|
isModal: boolean;
|
15378
15388
|
isFocusedContent: boolean;
|
15379
15389
|
isFocusedContainer: boolean;
|
15380
|
-
onCancel: () => void;
|
15381
|
-
onApply: () => boolean;
|
15382
|
-
onHide: () => void;
|
15383
|
-
onShow: () => void;
|
15384
15390
|
cssClass: string;
|
15385
15391
|
title: string;
|
15386
15392
|
overlayDisplayMode: "auto" | "overlay" | "dropdown-overlay";
|
@@ -15390,7 +15396,7 @@ declare module "popup" {
|
|
15390
15396
|
onFooterActionsCreated: EventBase<Base>;
|
15391
15397
|
onRecalculatePosition: EventBase<Base>;
|
15392
15398
|
private refreshInnerModel;
|
15393
|
-
constructor(contentComponentName: string, contentComponentData: T,
|
15399
|
+
constructor(contentComponentName: string, contentComponentData: T, option1?: IPopupOptionsBase | any, option2?: any);
|
15394
15400
|
get isVisible(): boolean;
|
15395
15401
|
set isVisible(value: boolean);
|
15396
15402
|
toggleVisibility(): void;
|
@@ -15728,6 +15734,7 @@ declare module "settings" {
|
|
15728
15734
|
* A separator used in a shorthand notation that specifies a value and display text for an [`ItemValue`](https://surveyjs.io/form-library/documentation/api-reference/itemvalue) object: `"value|text"`.
|
15729
15735
|
*
|
15730
15736
|
* Default value: `"|"`
|
15737
|
+
* @see [settings.choicesSeparator](https://surveyjs.io/form-library/documentation/api-reference/settings#choicesSeparator)
|
15731
15738
|
*/
|
15732
15739
|
itemValueSeparator: string;
|
15733
15740
|
/**
|
@@ -15878,6 +15885,13 @@ declare module "settings" {
|
|
15878
15885
|
dontKnowItem: number[];
|
15879
15886
|
otherItem: number[];
|
15880
15887
|
};
|
15888
|
+
/**
|
15889
|
+
* One or several characters used to separate choice options in a list.
|
15890
|
+
*
|
15891
|
+
* Default value: `", "`
|
15892
|
+
* @see [settings.itemValueSeparator](https://surveyjs.io/form-library/documentation/api-reference/settings#itemValueSeparator)
|
15893
|
+
*/
|
15894
|
+
choicesSeparator: string;
|
15881
15895
|
/**
|
15882
15896
|
* A list of supported validators by question type.
|
15883
15897
|
*/
|
@@ -16761,6 +16775,8 @@ declare module "question_tagbox" {
|
|
16761
16775
|
private updateReadOnlyText;
|
16762
16776
|
protected getDefaultItemComponent(): string;
|
16763
16777
|
onSurveyLoad(): void;
|
16778
|
+
protected onSetData(): void;
|
16779
|
+
private createDropdownListModel;
|
16764
16780
|
/**
|
16765
16781
|
* Specifies a comparison operation used to filter the drop-down list. Applies only if [`searchEnabled`](#searchEnabled) is `true`.
|
16766
16782
|
*
|
@@ -17314,6 +17330,7 @@ declare module "question_radiogroup" {
|
|
17314
17330
|
get canShowClearButton(): boolean;
|
17315
17331
|
get clearButtonCaption(): string;
|
17316
17332
|
supportGoNextPageAutomatic(): boolean;
|
17333
|
+
getConditionJson(operator?: string, path?: string): any;
|
17317
17334
|
protected setNewComment(newValue: string): void;
|
17318
17335
|
get showClearButtonInContent(): boolean;
|
17319
17336
|
clickItemHandler(item: ItemValue): void;
|
@@ -17503,6 +17520,8 @@ declare module "question_rating" {
|
|
17503
17520
|
* @see rateType
|
17504
17521
|
*/
|
17505
17522
|
displayMode: "dropdown" | "buttons" | "auto";
|
17523
|
+
private updateRenderAsBasedOnDisplayMode;
|
17524
|
+
onSurveyLoad(): void;
|
17506
17525
|
/**
|
17507
17526
|
* Specifies the alignment of [`minRateDescription`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#minRateDescription) and [`maxRateDescription`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#maxRateDescription) texts.
|
17508
17527
|
*
|
@@ -17640,6 +17659,11 @@ declare module "question_boolean" {
|
|
17640
17659
|
getDefaultValue(): any;
|
17641
17660
|
get locTitle(): LocalizableString;
|
17642
17661
|
get labelRenderedAriaID(): string;
|
17662
|
+
leftAnswerElement: HTMLElement;
|
17663
|
+
thumbMargin: string;
|
17664
|
+
updateThumbMargin(): void;
|
17665
|
+
afterRender(el: HTMLElement): void;
|
17666
|
+
beforeDestroyQuestionElement(el: HTMLElement): void;
|
17643
17667
|
showTitle: boolean;
|
17644
17668
|
label: string;
|
17645
17669
|
get isLabelRendered(): boolean;
|
@@ -18213,6 +18237,7 @@ declare module "mask/mask_numeric" {
|
|
18213
18237
|
*/
|
18214
18238
|
max: number;
|
18215
18239
|
private calccaretPosition;
|
18240
|
+
private numericalCompositionIsEmpty;
|
18216
18241
|
displayNumber(parsedNumber: INumericalComposition, insertThousandsSeparator?: boolean, matchWholeMask?: boolean): string;
|
18217
18242
|
convertNumber(parsedNumber: INumericalComposition): number;
|
18218
18243
|
validateNumber(number: INumericalComposition, matchWholeMask: boolean): boolean;
|
@@ -18373,7 +18398,7 @@ declare module "entries/chunks/model" {
|
|
18373
18398
|
export { AnswerCountValidator, EmailValidator, NumericValidator, RegexValidator, SurveyValidator, TextValidator, ValidatorResult, ExpressionValidator, ValidatorRunner } from "validator";
|
18374
18399
|
export { ItemValue } from "itemvalue";
|
18375
18400
|
export { Base, Event, EventBase, ArrayChanges, ComputedUpdater } from "base";
|
18376
|
-
export { ISurvey, ISurveyElement, IElement, IQuestion, IPage, IPanel, ISurveyData, ITitleOwner, ISurveyLayoutElement, IPlainDataOptions as IPlainData, IShortcutText, ILoadFromJSONOptions } from "base-interfaces";
|
18401
|
+
export { ISurvey, ISurveyElement, IElement, IQuestion, IPage, IPanel, ISurveyData, ITitleOwner, ISurveyLayoutElement, IPlainDataOptions as IPlainData, IShortcutText, ILoadFromJSONOptions, ISaveToJSONOptions, HorizontalAlignment, VerticalAlignment } from "base-interfaces";
|
18377
18402
|
export { SurveyError } from "survey-error";
|
18378
18403
|
export { SurveyElementCore, SurveyElement, DragTypeOverMeEnum } from "survey-element";
|
18379
18404
|
export { CalculatedValue } from "calculatedValue";
|