survey-react 1.9.71 → 1.9.74
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 +69 -16
- package/defaultV2.min.css +2 -2
- package/modern.css +53 -6
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/survey.css +15 -6
- package/survey.min.css +2 -2
- package/survey.react.d.ts +125 -27
- package/survey.react.js +328 -159
- package/survey.react.min.js +3 -3
package/survey.react.d.ts
CHANGED
@@ -215,7 +215,7 @@ declare module "settings" {
|
|
215
215
|
*/
|
216
216
|
customIcons: {};
|
217
217
|
/**
|
218
|
-
* Specifies which part of a choice item
|
218
|
+
* Specifies which part of a choice item responds to a drag gesture in Ranking questions.
|
219
219
|
*
|
220
220
|
* Possible values:
|
221
221
|
*
|
@@ -253,6 +253,8 @@ declare module "helpers" {
|
|
253
253
|
static createCopy(obj: any): any;
|
254
254
|
static isConvertibleToNumber(value: any): boolean;
|
255
255
|
static isNumber(value: any): boolean;
|
256
|
+
static getNumber(value: any): number;
|
257
|
+
private static prepareStringToNumber;
|
256
258
|
static getMaxLength(maxLength: number, surveyLength: number): any;
|
257
259
|
static getNumberByIndex(index: number, startIndexStr: string): string;
|
258
260
|
static isCharNotLetterAndDigit(ch: string): boolean;
|
@@ -1111,7 +1113,7 @@ declare module "conditions" {
|
|
1111
1113
|
/**
|
1112
1114
|
* The expression as string, property with get
|
1113
1115
|
*/
|
1114
|
-
|
1116
|
+
expression: string;
|
1115
1117
|
/**
|
1116
1118
|
* Returns true if the expression is valid and can be executed
|
1117
1119
|
*/
|
@@ -2700,6 +2702,7 @@ declare module "defaultCss/defaultV2Css" {
|
|
2700
2702
|
controlDisabled: string;
|
2701
2703
|
controlEmpty: string;
|
2702
2704
|
filterStringInput: string;
|
2705
|
+
popup: string;
|
2703
2706
|
onError: string;
|
2704
2707
|
};
|
2705
2708
|
comment: {
|
@@ -3143,7 +3146,7 @@ declare module "surveytimer" {
|
|
3143
3146
|
static get instance(): SurveyTimer;
|
3144
3147
|
private listenerCounter;
|
3145
3148
|
private timerId;
|
3146
|
-
onTimer: Event<() => any, any>;
|
3149
|
+
onTimer: Event<() => any, SurveyTimer, any>;
|
3147
3150
|
start(func?: () => any): void;
|
3148
3151
|
stop(func?: () => any): void;
|
3149
3152
|
doTimer(): void;
|
@@ -3790,6 +3793,7 @@ declare module "question_baseselect" {
|
|
3790
3793
|
*/
|
3791
3794
|
get colCount(): number;
|
3792
3795
|
set colCount(value: number);
|
3796
|
+
clickItemHandler(item: ItemValue, checked: boolean): void;
|
3793
3797
|
protected onParentChanged(): void;
|
3794
3798
|
protected onParentQuestionChanged(): void;
|
3795
3799
|
protected getSearchableItemValueKeys(keys: Array<string>): void;
|
@@ -3914,7 +3918,6 @@ declare module "question_paneldynamic" {
|
|
3914
3918
|
private loadingPanelCount;
|
3915
3919
|
private isValueChangingInternally;
|
3916
3920
|
private changingValueQuestion;
|
3917
|
-
private currentIndexValue;
|
3918
3921
|
renderModeChangedCallback: () => void;
|
3919
3922
|
panelCountChangedCallback: () => void;
|
3920
3923
|
currentIndexChangedCallback: () => void;
|
@@ -3989,6 +3992,8 @@ declare module "question_paneldynamic" {
|
|
3989
3992
|
*/
|
3990
3993
|
get currentIndex(): number;
|
3991
3994
|
set currentIndex(val: number);
|
3995
|
+
private get currentIndexValue();
|
3996
|
+
private set currentIndexValue(value);
|
3992
3997
|
/**
|
3993
3998
|
* A `PanelModel` object that is the currently displayed panel.
|
3994
3999
|
*
|
@@ -4930,6 +4935,19 @@ declare module "survey" {
|
|
4930
4935
|
* @see QuestionHtmlModel.html
|
4931
4936
|
*/
|
4932
4937
|
onProcessHtml: EventBase<SurveyModel>;
|
4938
|
+
/**
|
4939
|
+
* Use this event to change a question's display text.
|
4940
|
+
*
|
4941
|
+
* Parameters:
|
4942
|
+
*
|
4943
|
+
* - `sender`: `SurveyModel`\
|
4944
|
+
* A survey instance that raised the event.
|
4945
|
+
* - `options.question`: [`Question`](https://surveyjs.io/form-library/documentation/api-reference/question)\
|
4946
|
+
* A Question instance for which the event is raised.
|
4947
|
+
* - `options.displayValue`: `String`\
|
4948
|
+
* A question's display text. You can assign a custom value to this parameter.
|
4949
|
+
*/
|
4950
|
+
onGetQuestionDisplayValue: EventBase<SurveyModel>;
|
4933
4951
|
/**
|
4934
4952
|
* Use this event to change the question title in code. If you want to remove question numbering then set showQuestionNumbers to "off".
|
4935
4953
|
* - `sender`: `SurveyModel` - A survey instance that raised the event.
|
@@ -5369,6 +5387,20 @@ declare module "survey" {
|
|
5369
5387
|
* @see QuestionMatrixDropdownModel
|
5370
5388
|
*/
|
5371
5389
|
onMatrixCellValidate: EventBase<SurveyModel>;
|
5390
|
+
/**
|
5391
|
+
* An event that is raised on adding a new column in Matrix Dynamic or Matrix Dropdown question.
|
5392
|
+
* - `sender`: `SurveyModel` - A survey instance that raised the event.
|
5393
|
+
* - `options.question` - a matrix question.
|
5394
|
+
* - `options.column` - a new added column.
|
5395
|
+
*/
|
5396
|
+
onMatrixColumnAdded: EventBase<SurveyModel>;
|
5397
|
+
/**
|
5398
|
+
* An event that is raised on adding a new item in Multiple Text question.
|
5399
|
+
* - `sender`: `SurveyModel` - A survey instance that raised the event.
|
5400
|
+
* - `options.question` - a multiple text question.
|
5401
|
+
* - `options.item` - a new added item.
|
5402
|
+
*/
|
5403
|
+
onMultipleTextItemAdded: EventBase<SurveyModel>;
|
5372
5404
|
/**
|
5373
5405
|
* An event that is raised after a new panel is added to a [Dynamic Panel](https://surveyjs.io/form-library/examples/questiontype-paneldynamic/) question.
|
5374
5406
|
*
|
@@ -5887,6 +5919,7 @@ declare module "survey" {
|
|
5887
5919
|
getLocString(str: string): string;
|
5888
5920
|
getErrorCustomText(text: string, error: SurveyError): string;
|
5889
5921
|
getSurveyErrorCustomText(obj: Base, text: string, error: SurveyError): string;
|
5922
|
+
getQuestionDisplayValue(question: IElement, displayValue: any): any;
|
5890
5923
|
/**
|
5891
5924
|
* Returns the text displayed when a survey has no visible pages and questions.
|
5892
5925
|
*/
|
@@ -6088,7 +6121,7 @@ declare module "survey" {
|
|
6088
6121
|
*
|
6089
6122
|
* [View Demo](https://surveyjs.io/form-library/examples/survey-options/ (linkStyle))
|
6090
6123
|
*/
|
6091
|
-
get showQuestionNumbers(): string;
|
6124
|
+
get showQuestionNumbers(): string | boolean;
|
6092
6125
|
set showQuestionNumbers(value: string | boolean);
|
6093
6126
|
/**
|
6094
6127
|
* Gets or sets the survey progress bar position.
|
@@ -6735,6 +6768,8 @@ declare module "survey" {
|
|
6735
6768
|
}): void;
|
6736
6769
|
matrixBeforeRowAdded(options: any): void;
|
6737
6770
|
matrixRowAdded(question: IQuestion, row: any): void;
|
6771
|
+
matrixColumnAdded(question: IQuestion, column: any): void;
|
6772
|
+
multipleTextItemAdded(question: IQuestion, item: any): void;
|
6738
6773
|
getQuestionByValueNameFromArray(valueName: string, name: string, index: number): IQuestion;
|
6739
6774
|
matrixRowRemoved(question: IQuestion, rowIndex: number, row: any): void;
|
6740
6775
|
matrixRowRemoving(question: IQuestion, rowIndex: number, row: any): boolean;
|
@@ -7938,7 +7973,7 @@ declare module "questionCustomWidgets" {
|
|
7938
7973
|
static Instance: CustomWidgetCollection;
|
7939
7974
|
private widgetsValues;
|
7940
7975
|
private widgetsActivatedBy;
|
7941
|
-
onCustomWidgetAdded: Event<(customWidget: QuestionCustomWidget) => any, any>;
|
7976
|
+
onCustomWidgetAdded: Event<(customWidget: QuestionCustomWidget) => any, QuestionCustomWidget, any>;
|
7942
7977
|
get widgets(): Array<QuestionCustomWidget>;
|
7943
7978
|
add(widgetJson: any, activatedBy?: string): void;
|
7944
7979
|
addCustomWidget(widgetJson: any, activatedBy?: string): QuestionCustomWidget;
|
@@ -8015,6 +8050,7 @@ declare module "question" {
|
|
8015
8050
|
afterRenderQuestionCallback: (question: Question, element: any) => any;
|
8016
8051
|
valueFromDataCallback: (val: any) => any;
|
8017
8052
|
valueToDataCallback: (val: any) => any;
|
8053
|
+
onUpdateCssClassesCallback: (css: any) => void;
|
8018
8054
|
onGetSurvey: () => ISurvey;
|
8019
8055
|
private locProcessedTitle;
|
8020
8056
|
protected isReadyValue: boolean;
|
@@ -9074,7 +9110,7 @@ declare module "dragdrop/core" {
|
|
9074
9110
|
private creator?;
|
9075
9111
|
private longTap?;
|
9076
9112
|
isBottom: boolean;
|
9077
|
-
onGhostPositionChanged: EventBase<
|
9113
|
+
onGhostPositionChanged: EventBase<{}>;
|
9078
9114
|
protected ghostPositionChanged(): void;
|
9079
9115
|
static PreventScrolling: boolean;
|
9080
9116
|
onBeforeDrop: EventBase<DragDropCore<T>>;
|
@@ -10125,6 +10161,7 @@ declare module "base-interfaces" {
|
|
10125
10161
|
requiredText: string;
|
10126
10162
|
beforeSettingQuestionErrors(question: IQuestion, errors: Array<SurveyError>): void;
|
10127
10163
|
beforeSettingPanelErrors(question: IPanel, errors: Array<SurveyError>): void;
|
10164
|
+
getQuestionDisplayValue(question: IElement, displayValue: any): any;
|
10128
10165
|
getSurveyErrorCustomText(obj: Base, text: string, error: SurveyError): string;
|
10129
10166
|
getElementTitleTagName(element: Base, tagName: string): string;
|
10130
10167
|
questionTitlePattern: string;
|
@@ -10170,6 +10207,7 @@ declare module "base-interfaces" {
|
|
10170
10207
|
setItems: (displayValues: Array<string>) => void;
|
10171
10208
|
}): void;
|
10172
10209
|
matrixRowAdded(question: IQuestion, row: any): any;
|
10210
|
+
matrixColumnAdded(question: IQuestion, column: any): void;
|
10173
10211
|
matrixBeforeRowAdded(options: {
|
10174
10212
|
question: IQuestion;
|
10175
10213
|
canAddRow: boolean;
|
@@ -10184,6 +10222,7 @@ declare module "base-interfaces" {
|
|
10184
10222
|
matrixCellValueChanging(question: IQuestion, options: any): any;
|
10185
10223
|
isValidateOnValueChanging: boolean;
|
10186
10224
|
isValidateOnValueChanged: boolean;
|
10225
|
+
multipleTextItemAdded(question: IQuestion, item: any): void;
|
10187
10226
|
matrixCellValidate(question: IQuestion, options: any): SurveyError;
|
10188
10227
|
dynamicPanelAdded(question: IQuestion, panelIndex?: number, panel?: IPanel): void;
|
10189
10228
|
dynamicPanelRemoved(question: IQuestion, panelIndex: number, panel: IPanel): void;
|
@@ -10224,8 +10263,8 @@ declare module "base-interfaces" {
|
|
10224
10263
|
toggleState(): void;
|
10225
10264
|
stateChangedCallback(): void;
|
10226
10265
|
getTitleToolbar(): AdaptiveActionContainer;
|
10227
|
-
|
10228
|
-
|
10266
|
+
isCollapsed: boolean;
|
10267
|
+
isExpanded: boolean;
|
10229
10268
|
expand(): void;
|
10230
10269
|
collapse(): void;
|
10231
10270
|
}
|
@@ -10500,10 +10539,10 @@ declare module "base" {
|
|
10500
10539
|
* The name of the property to which an array of `ItemValue` objects is assigned (for example, `"choices"` or `"rows"`).
|
10501
10540
|
* - `options.name`: `"text"` | `"value"`\
|
10502
10541
|
* The name of the changed property.
|
10503
|
-
* - `options.newValue
|
10542
|
+
* - `options.newValue`: `any`\
|
10504
10543
|
* A new value for the property.
|
10505
10544
|
*/
|
10506
|
-
onItemValuePropertyChanged: Event<(sender: Base, options: any) => any, any>;
|
10545
|
+
onItemValuePropertyChanged: Event<(sender: Base, options: any) => any, Base, any>;
|
10507
10546
|
getPropertyValueCoreHandler: (propertiesHash: any, name: string) => any;
|
10508
10547
|
setPropertyValueCoreHandler: (propertiesHash: any, name: string, val: any) => void;
|
10509
10548
|
createArrayCoreHandler: (propertiesHash: any, name: string) => Array<any>;
|
@@ -10512,7 +10551,7 @@ declare module "base" {
|
|
10512
10551
|
constructor();
|
10513
10552
|
dispose(): void;
|
10514
10553
|
get isDisposed(): boolean;
|
10515
|
-
protected addEvent<T>(): EventBase<T>;
|
10554
|
+
protected addEvent<T, Options = any>(): EventBase<T, Options>;
|
10516
10555
|
protected onBaseCreating(): void;
|
10517
10556
|
/**
|
10518
10557
|
* Returns the object type as it is used in the JSON schema.
|
@@ -10671,20 +10710,20 @@ declare module "base" {
|
|
10671
10710
|
deletedItems: any[];
|
10672
10711
|
constructor(index: number, deleteCount: number, itemsToAdd: any[], deletedItems: any[]);
|
10673
10712
|
}
|
10674
|
-
export class Event<
|
10713
|
+
export class Event<CallbackFunction extends Function, Sender, Options> {
|
10675
10714
|
onCallbacksChanged: () => void;
|
10676
|
-
protected callbacks: Array<
|
10715
|
+
protected callbacks: Array<CallbackFunction>;
|
10677
10716
|
get isEmpty(): boolean;
|
10678
10717
|
get length(): number;
|
10679
10718
|
fireByCreatingOptions(sender: any, createOptions: () => Options): void;
|
10680
|
-
fire(sender:
|
10719
|
+
fire(sender: Sender, options: Options): void;
|
10681
10720
|
clear(): void;
|
10682
|
-
add(func:
|
10683
|
-
remove(func:
|
10684
|
-
hasFunc(func:
|
10721
|
+
add(func: CallbackFunction): void;
|
10722
|
+
remove(func: CallbackFunction): void;
|
10723
|
+
hasFunc(func: CallbackFunction): boolean;
|
10685
10724
|
private fireCallbackChanged;
|
10686
10725
|
}
|
10687
|
-
export class EventBase<
|
10726
|
+
export class EventBase<Sender, Options = any> extends Event<(sender: Sender, options: Options) => any, Sender, Options> {
|
10688
10727
|
}
|
10689
10728
|
}
|
10690
10729
|
declare module "validator" {
|
@@ -10905,7 +10944,10 @@ declare module "dropdownListModel" {
|
|
10905
10944
|
readonly minPageSize = 25;
|
10906
10945
|
readonly loadingItemHeight = 40;
|
10907
10946
|
private _popupModel;
|
10908
|
-
private focusFirstInputSelector;
|
10947
|
+
private get focusFirstInputSelector();
|
10948
|
+
protected readonly selectedItemSelector = ".sv-list__item--selected";
|
10949
|
+
protected readonly itemSelector = ".sv-list__item";
|
10950
|
+
protected getFocusFirstInputSelector(): string;
|
10909
10951
|
private itemsSettings;
|
10910
10952
|
private isRunningLoadQuestionChoices;
|
10911
10953
|
protected listModel: ListModel;
|
@@ -10933,6 +10975,7 @@ declare module "dropdownListModel" {
|
|
10933
10975
|
get popupModel(): PopupModel;
|
10934
10976
|
get inputReadOnly(): boolean;
|
10935
10977
|
get filterStringEnabled(): boolean;
|
10978
|
+
get inputMode(): "none" | "text";
|
10936
10979
|
setSearchEnabled(newValue: boolean): void;
|
10937
10980
|
updateItems(): void;
|
10938
10981
|
onClick(event: any): void;
|
@@ -11400,6 +11443,11 @@ declare module "question_multipletext" {
|
|
11400
11443
|
getItemDefaultValue(name: string): any;
|
11401
11444
|
getIsRequiredText(): string;
|
11402
11445
|
}
|
11446
|
+
/**
|
11447
|
+
* A class that describes an item in a [Multiple Text](https://surveyjs.io/form-library/documentation/api-reference/multiple-text-entry-question-model) question.
|
11448
|
+
*
|
11449
|
+
* [View Demo](/form-library/examples/multiple-text-box-question/)
|
11450
|
+
*/
|
11403
11451
|
export class MultipleTextItemModel extends Base implements IValidatorOwner, ISurveyData, ISurveyImpl {
|
11404
11452
|
private editorValue;
|
11405
11453
|
private data;
|
@@ -11520,7 +11568,18 @@ declare module "question_multipletext" {
|
|
11520
11568
|
private editorsOnSurveyLoad;
|
11521
11569
|
private performForEveryEditor;
|
11522
11570
|
/**
|
11523
|
-
*
|
11571
|
+
* Gets or sets an array of `MultipleTextItemModel` objects that represent input items.
|
11572
|
+
*
|
11573
|
+
* This property accepts an array of objects with the following structure:
|
11574
|
+
*
|
11575
|
+
* ```js
|
11576
|
+
* {
|
11577
|
+
* "name": any, // A unique value used to identify an input item and save an item value to survey results.
|
11578
|
+
* "title": String // An item caption. When `title` is undefined, `name` is used. This property supports Markdown.
|
11579
|
+
* }
|
11580
|
+
* ```
|
11581
|
+
*
|
11582
|
+
* To enable Markdown support for the `title` property, implement Markdown-to-HTML conversion in the [onTextMarkdown](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onTextMarkdown) event handler. For an example, refer to the following demo: [Convert Markdown to HTML with Showdown](https://surveyjs.io/form-library/examples/edit-survey-questions-markdown/).
|
11524
11583
|
* @see addItem
|
11525
11584
|
*/
|
11526
11585
|
get items(): Array<MultipleTextItemModel>;
|
@@ -11818,6 +11877,7 @@ declare module "dropdownMultiSelectListModel" {
|
|
11818
11877
|
private updateListState;
|
11819
11878
|
private syncFilterStringPlaceholder;
|
11820
11879
|
private getSelectedActions;
|
11880
|
+
protected getFocusFirstInputSelector(): string;
|
11821
11881
|
protected createListModel(): MultiSelectListModel;
|
11822
11882
|
previousValue: any;
|
11823
11883
|
doneButtonCaption: string;
|
@@ -12071,7 +12131,6 @@ declare module "question_ranking" {
|
|
12071
12131
|
import { DragDropRankingChoices } from "dragdrop/ranking-choices";
|
12072
12132
|
import { ItemValue } from "itemvalue";
|
12073
12133
|
import { QuestionCheckboxModel } from "question_checkbox";
|
12074
|
-
import { QuestionSelectBase } from "question_baseselect";
|
12075
12134
|
/**
|
12076
12135
|
* A class that describes the Ranking question type.
|
12077
12136
|
*
|
@@ -12114,10 +12173,6 @@ declare module "question_ranking" {
|
|
12114
12173
|
private handleArrowDown;
|
12115
12174
|
private focusItem;
|
12116
12175
|
setValue: () => void;
|
12117
|
-
protected getChoicesFromQuestion(question: QuestionSelectBase): Array<ItemValue>;
|
12118
|
-
private setValueFromUI;
|
12119
|
-
private syncNumbers;
|
12120
|
-
private setGhostText;
|
12121
12176
|
getIconHoverCss(): string;
|
12122
12177
|
getIconFocusCss(): string;
|
12123
12178
|
/**
|
@@ -12329,6 +12384,7 @@ declare module "question_file" {
|
|
12329
12384
|
getFileDecoratorCss(): string;
|
12330
12385
|
private onChange;
|
12331
12386
|
protected onChangeQuestionValue(newValue: any): void;
|
12387
|
+
endLoadingFromJson(): void;
|
12332
12388
|
private rootElement;
|
12333
12389
|
afterRender(el: HTMLElement): void;
|
12334
12390
|
private dragCounter;
|
@@ -12406,6 +12462,7 @@ declare module "question_radiogroup" {
|
|
12406
12462
|
get clearButtonCaption(): string;
|
12407
12463
|
supportGoNextPageAutomatic(): boolean;
|
12408
12464
|
get showClearButtonInContent(): boolean;
|
12465
|
+
clickItemHandler(item: ItemValue): void;
|
12409
12466
|
protected getDefaultTitleActions(): Array<Action>;
|
12410
12467
|
}
|
12411
12468
|
}
|
@@ -12414,6 +12471,7 @@ declare module "question_rating" {
|
|
12414
12471
|
import { Question } from "question";
|
12415
12472
|
import { LocalizableString } from "localizablestring";
|
12416
12473
|
import { Base } from "base";
|
12474
|
+
import { DropdownListModel } from "dropdownListModel";
|
12417
12475
|
export class RenderedRatingItem extends Base {
|
12418
12476
|
itemValue: ItemValue;
|
12419
12477
|
private locString;
|
@@ -12553,7 +12611,7 @@ declare module "question_rating" {
|
|
12553
12611
|
get locPlaceholder(): LocalizableString;
|
12554
12612
|
get allowClear(): boolean;
|
12555
12613
|
get searchEnabled(): boolean;
|
12556
|
-
get renderedValue():
|
12614
|
+
get renderedValue(): any;
|
12557
12615
|
set renderedValue(val: any);
|
12558
12616
|
isItemSelected(item: ItemValue): boolean;
|
12559
12617
|
get visibleChoices(): ItemValue[];
|
@@ -12562,11 +12620,17 @@ declare module "question_rating" {
|
|
12562
12620
|
protected supportResponsiveness(): boolean;
|
12563
12621
|
protected getCompactRenderAs(): string;
|
12564
12622
|
protected getDesktopRenderAs(): string;
|
12623
|
+
private dropdownListModelValue;
|
12624
|
+
set dropdownListModel(val: DropdownListModel);
|
12625
|
+
get dropdownListModel(): DropdownListModel;
|
12626
|
+
protected updateCssClasses(res: any, css: any): void;
|
12627
|
+
protected calcCssClasses(css: any): any;
|
12565
12628
|
}
|
12566
12629
|
}
|
12567
12630
|
declare module "question_boolean" {
|
12568
12631
|
import { Question } from "question";
|
12569
12632
|
import { LocalizableString } from "localizablestring";
|
12633
|
+
import { ActionContainer } from "actions/container";
|
12570
12634
|
/**
|
12571
12635
|
* A class that describes the Boolean question type.
|
12572
12636
|
*
|
@@ -12658,6 +12722,7 @@ declare module "question_boolean" {
|
|
12658
12722
|
getRadioItemClass(css: any, value: any): string;
|
12659
12723
|
protected supportResponsiveness(): boolean;
|
12660
12724
|
protected getCompactRenderAs(): string;
|
12725
|
+
protected createActionContainer(allowAdaptiveActions?: boolean): ActionContainer;
|
12661
12726
|
}
|
12662
12727
|
}
|
12663
12728
|
declare module "question_image" {
|
@@ -13000,6 +13065,19 @@ declare module "question_custom" {
|
|
13000
13065
|
* An HTML element that represents a nested question.
|
13001
13066
|
*/
|
13002
13067
|
onAfterRenderContentElement?(question: Question, element: Question, htmlElement: any): void;
|
13068
|
+
/**
|
13069
|
+
* A function that is called each time a question nested within a [composite question](https://surveyjs.io/Documentation/Survey-Creator?id=create-composite-question-types) requires an update of its CSS classes.
|
13070
|
+
*
|
13071
|
+
* Parameters:
|
13072
|
+
*
|
13073
|
+
* - `question`: [Question](https://surveyjs.io/Documentation/Library?id=Question)\
|
13074
|
+
* A composite question.
|
13075
|
+
* - `element`: [Question](https://surveyjs.io/Documentation/Library?id=Question)\
|
13076
|
+
* A nested question.
|
13077
|
+
* - `cssClasses`: `any`\
|
13078
|
+
* An object with CSS classes applied to a nested question, for example, `{ root: "class1", button: "class2" }`. You can modify this object to apply custom CSS classes.
|
13079
|
+
*/
|
13080
|
+
onUpdateQuestionCssClasses?(question: Question, element: Question, cssClasses: any): void;
|
13003
13081
|
/**
|
13004
13082
|
* A function that is called when a custom question type property is changed. Use it to handle property changes.
|
13005
13083
|
*
|
@@ -13084,6 +13162,7 @@ declare module "question_custom" {
|
|
13084
13162
|
onLoaded(question: Question): void;
|
13085
13163
|
onAfterRender(question: Question, htmlElement: any): void;
|
13086
13164
|
onAfterRenderContentElement(question: Question, element: Question, htmlElement: any): void;
|
13165
|
+
onUpdateQuestionCssClasses(question: Question, element: Question, css: any): void;
|
13087
13166
|
onPropertyChanged(question: Question, propertyName: string, newValue: any): void;
|
13088
13167
|
onValueChanged(question: Question, name: string, newValue: any): void;
|
13089
13168
|
onItemValuePropertyChanged(question: Question, item: ItemValue, propertyName: string, name: string, newValue: any): void;
|
@@ -13120,6 +13199,7 @@ declare module "question_custom" {
|
|
13120
13199
|
onSurveyLoad(): void;
|
13121
13200
|
afterRenderQuestionElement(el: HTMLElement): void;
|
13122
13201
|
afterRender(el: any): void;
|
13202
|
+
protected onUpdateQuestionCssClasses(element: Question, css: any): void;
|
13123
13203
|
protected setQuestionValue(newValue: any, updateIsAnswered?: boolean): void;
|
13124
13204
|
protected setNewValue(newValue: any): void;
|
13125
13205
|
getSurveyData(): ISurveyData;
|
@@ -13267,6 +13347,9 @@ declare module "popup-dropdown-view-model" {
|
|
13267
13347
|
targetElement?: HTMLElement;
|
13268
13348
|
private scrollEventCallBack;
|
13269
13349
|
private resizeEventCallback;
|
13350
|
+
private clientY;
|
13351
|
+
private touchStartEventCallback;
|
13352
|
+
private touchMoveEventCallback;
|
13270
13353
|
private _updatePosition;
|
13271
13354
|
protected getActualHorizontalPosition(): "left" | "center" | "right";
|
13272
13355
|
protected getStyleClass(): CssClassBuilder;
|
@@ -18095,6 +18178,7 @@ declare module "localization/portuguese" {
|
|
18095
18178
|
noneItemText: string;
|
18096
18179
|
selectAllItemText: string;
|
18097
18180
|
progressText: string;
|
18181
|
+
indexText: string;
|
18098
18182
|
panelDynamicProgressText: string;
|
18099
18183
|
questionsProgressText: string;
|
18100
18184
|
emptySurvey: string;
|
@@ -18102,11 +18186,14 @@ declare module "localization/portuguese" {
|
|
18102
18186
|
completingSurveyBefore: string;
|
18103
18187
|
loadingSurvey: string;
|
18104
18188
|
placeholder: string;
|
18189
|
+
ratingOptionsCaption: string;
|
18105
18190
|
value: string;
|
18106
18191
|
requiredError: string;
|
18107
18192
|
requiredErrorInPanel: string;
|
18108
18193
|
requiredInAllRowsError: string;
|
18109
18194
|
numericError: string;
|
18195
|
+
minError: string;
|
18196
|
+
maxError: string;
|
18110
18197
|
textMinLength: string;
|
18111
18198
|
textMaxLength: string;
|
18112
18199
|
textMinMaxLength: string;
|
@@ -18126,16 +18213,19 @@ declare module "localization/portuguese" {
|
|
18126
18213
|
loadingFile: string;
|
18127
18214
|
chooseFile: string;
|
18128
18215
|
noFileChosen: string;
|
18216
|
+
fileDragAreaPlaceholder: string;
|
18129
18217
|
confirmDelete: string;
|
18130
18218
|
keyDuplicationError: string;
|
18131
18219
|
addColumn: string;
|
18132
18220
|
addRow: string;
|
18133
18221
|
removeRow: string;
|
18222
|
+
emptyRowsText: string;
|
18134
18223
|
addPanel: string;
|
18135
18224
|
removePanel: string;
|
18136
18225
|
choices_Item: string;
|
18137
18226
|
matrix_column: string;
|
18138
18227
|
matrix_row: string;
|
18228
|
+
multipletext_itemname: string;
|
18139
18229
|
savingData: string;
|
18140
18230
|
savingDataError: string;
|
18141
18231
|
savingDataSuccess: string;
|
@@ -18149,6 +18239,7 @@ declare module "localization/portuguese" {
|
|
18149
18239
|
timerLimitPage: string;
|
18150
18240
|
timerLimitSurvey: string;
|
18151
18241
|
clearCaption: string;
|
18242
|
+
signaturePlaceHolder: string;
|
18152
18243
|
chooseFileCaption: string;
|
18153
18244
|
removeFileCaption: string;
|
18154
18245
|
booleanCheckedLabel: string;
|
@@ -18156,6 +18247,13 @@ declare module "localization/portuguese" {
|
|
18156
18247
|
confirmRemoveFile: string;
|
18157
18248
|
confirmRemoveAllFiles: string;
|
18158
18249
|
questionTitlePatternText: string;
|
18250
|
+
modalCancelButtonText: string;
|
18251
|
+
modalApplyButtonText: string;
|
18252
|
+
filterStringPlaceholder: string;
|
18253
|
+
emptyMessage: string;
|
18254
|
+
noEntriesText: string;
|
18255
|
+
more: string;
|
18256
|
+
tagboxDoneButtonCaption: string;
|
18159
18257
|
};
|
18160
18258
|
}
|
18161
18259
|
declare module "localization/portuguese-br" {
|