survey-react 1.11.3 → 1.11.5
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 +175 -48
- package/defaultV2.css.map +1 -1
- package/defaultV2.min.css +2 -2
- package/modern.css +26 -1
- package/modern.css.map +1 -1
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/survey.css +33 -1
- package/survey.css.map +1 -1
- package/survey.min.css +2 -2
- package/survey.react.d.ts +109 -24
- package/survey.react.js +315 -152
- package/survey.react.js.map +1 -1
- package/survey.react.min.js +3 -3
package/survey.react.d.ts
CHANGED
@@ -13,6 +13,9 @@ declare module "global_variables_utils" {
|
|
13
13
|
static requestAnimationFrame(callback: FrameRequestCallback): number;
|
14
14
|
static addEventListener(type: string, listener: (e?: any) => void): void;
|
15
15
|
static removeEventListener(type: string, listener: (e?: any) => void): void;
|
16
|
+
static matchMedia(mediaQueryString: string): {
|
17
|
+
matches: boolean;
|
18
|
+
} | null;
|
16
19
|
}
|
17
20
|
export class DomDocumentHelper {
|
18
21
|
static isAvailable(): boolean;
|
@@ -188,6 +191,9 @@ declare module "surveyStrings" {
|
|
188
191
|
localeNames: {
|
189
192
|
[index: string]: any;
|
190
193
|
};
|
194
|
+
localeDirections: {
|
195
|
+
[index: string]: any;
|
196
|
+
};
|
191
197
|
supportedLocales: any[];
|
192
198
|
currentLocale: string;
|
193
199
|
defaultLocale: string;
|
@@ -986,6 +992,7 @@ declare module "list" {
|
|
986
992
|
searchClearButtonIcon: string;
|
987
993
|
loadingIndicator: string;
|
988
994
|
itemSelected: string;
|
995
|
+
itemGroup: string;
|
989
996
|
itemWithIcon: string;
|
990
997
|
itemDisabled: string;
|
991
998
|
itemFocused: string;
|
@@ -1056,6 +1063,7 @@ declare module "list" {
|
|
1056
1063
|
searchClearButtonIcon: string;
|
1057
1064
|
loadingIndicator: string;
|
1058
1065
|
itemSelected: string;
|
1066
|
+
itemGroup: string;
|
1059
1067
|
itemWithIcon: string;
|
1060
1068
|
itemDisabled: string;
|
1061
1069
|
itemFocused: string;
|
@@ -1325,6 +1333,7 @@ declare module "actions/action" {
|
|
1325
1333
|
get disabled(): boolean;
|
1326
1334
|
get canShrink(): boolean;
|
1327
1335
|
get hasTitle(): boolean;
|
1336
|
+
get hasSubItems(): boolean;
|
1328
1337
|
getActionBarItemTitleCss(): string;
|
1329
1338
|
getActionBarItemCss(): string;
|
1330
1339
|
getActionRootCss(): string;
|
@@ -1357,7 +1366,7 @@ declare module "actions/action" {
|
|
1357
1366
|
private raiseUpdate;
|
1358
1367
|
constructor(innerItem: IAction);
|
1359
1368
|
private createLocTitle;
|
1360
|
-
|
1369
|
+
setSubItems(options: IListModel): void;
|
1361
1370
|
location?: string;
|
1362
1371
|
id: string;
|
1363
1372
|
private _visible;
|
@@ -1494,6 +1503,7 @@ declare module "defaultCss/defaultV2Css" {
|
|
1494
1503
|
export var surveyCss: any;
|
1495
1504
|
export var defaultV2Css: {
|
1496
1505
|
root: string;
|
1506
|
+
rootProgress: string;
|
1497
1507
|
rootMobile: string;
|
1498
1508
|
rootAnimationDisabled: string;
|
1499
1509
|
rootReadOnly: string;
|
@@ -2833,7 +2843,7 @@ declare module "question_custom" {
|
|
2833
2843
|
*/
|
2834
2844
|
onPropertyChanged?(question: Question, propertyName: string, newValue: any): void;
|
2835
2845
|
/**
|
2836
|
-
* A function that is called after the question value is changed.
|
2846
|
+
* A function that is called after the question value is changed in the UI.
|
2837
2847
|
*
|
2838
2848
|
* Parameters:
|
2839
2849
|
*
|
@@ -2843,10 +2853,12 @@ declare module "question_custom" {
|
|
2843
2853
|
* The question's [name](https://surveyjs.io/Documentation/Library?id=Question#name).
|
2844
2854
|
* - `newValue`: `any`\
|
2845
2855
|
* A new value for the question.
|
2856
|
+
*
|
2857
|
+
* If you want to perform some actions when the value is changed in code as well as in the UI, implement the [`onValueSet`](https://surveyjs.io/form-library/documentation/api-reference/icustomquestiontypeconfiguration#onValueSet) function.
|
2846
2858
|
*/
|
2847
2859
|
onValueChanged?(question: Question, name: string, newValue: any): void;
|
2848
2860
|
/**
|
2849
|
-
* A function that is called before a question value is changed.
|
2861
|
+
* A function that is called before a question value is changed in the UI.
|
2850
2862
|
*
|
2851
2863
|
* This function should return the value you want to save: `newValue`, a custom value, or `undefined` if you want to clear the question value.
|
2852
2864
|
*
|
@@ -2914,6 +2926,21 @@ declare module "question_custom" {
|
|
2914
2926
|
* @returns An error text.
|
2915
2927
|
*/
|
2916
2928
|
getErrorText?: (question: Question) => string;
|
2929
|
+
/**
|
2930
|
+
* A function that is called after the question value is set.
|
2931
|
+
*
|
2932
|
+
* Parameters:
|
2933
|
+
*
|
2934
|
+
* - `question`: [Question](https://surveyjs.io/Documentation/Library?id=Question)\
|
2935
|
+
* A custom question.
|
2936
|
+
* - `newValue`: `any`\
|
2937
|
+
* A new value for the question.
|
2938
|
+
*
|
2939
|
+
* Unlike the [`onValueChanged`](https://surveyjs.io/form-library/documentation/api-reference/icustomquestiontypeconfiguration#onValueChanged) function, which is called only when the question value is changed in the UI, `onValueSet` is called when the value is changed in code as well.
|
2940
|
+
*
|
2941
|
+
* [View Demo](https://surveyjs.io/survey-creator/examples/smart-search-input/ (linkStyle))
|
2942
|
+
*/
|
2943
|
+
onValueSet?: (question: Question, newValue: any) => void;
|
2917
2944
|
onSetQuestionValue?: (question: Question, newValue: any) => void;
|
2918
2945
|
valueToQuestion?: (val: any) => any;
|
2919
2946
|
valueFromQuestion?: (val: any) => any;
|
@@ -3243,6 +3270,7 @@ declare module "panel" {
|
|
3243
3270
|
showTitle: boolean;
|
3244
3271
|
get hasTitle(): boolean;
|
3245
3272
|
delete(doDispose?: boolean): void;
|
3273
|
+
private deletePanel;
|
3246
3274
|
protected removeFromParent(): void;
|
3247
3275
|
protected canShowTitle(): boolean;
|
3248
3276
|
showDescription: boolean;
|
@@ -3454,6 +3482,8 @@ declare module "panel" {
|
|
3454
3482
|
get questionTitleLocation(): string;
|
3455
3483
|
set questionTitleLocation(value: string);
|
3456
3484
|
getQuestionTitleLocation(): string;
|
3485
|
+
availableQuestionTitleWidth(): boolean;
|
3486
|
+
hasElementWithTitleLocationLeft(): boolean;
|
3457
3487
|
/**
|
3458
3488
|
* Sets consistent width for question titles in CSS values. Applies only when [`questionTitleLocation`](#questionTitleLocation) evaluates to `"left"`.
|
3459
3489
|
*
|
@@ -3482,6 +3512,7 @@ declare module "panel" {
|
|
3482
3512
|
private updateRowsOnElementAdded;
|
3483
3513
|
protected onAddElement(element: IElement, index: number): void;
|
3484
3514
|
protected onRemoveElement(element: IElement): void;
|
3515
|
+
private onRemoveElementNotifySurvey;
|
3485
3516
|
private onElementVisibilityChanged;
|
3486
3517
|
private onElementStartWithNewLineChanged;
|
3487
3518
|
private updateRowsVisibility;
|
@@ -4714,6 +4745,11 @@ declare module "question_baseselect" {
|
|
4714
4745
|
get hasHeadItems(): boolean;
|
4715
4746
|
get hasFootItems(): boolean;
|
4716
4747
|
get columns(): any[];
|
4748
|
+
protected getObservedElementSelector(): string;
|
4749
|
+
protected supportResponsiveness(): boolean;
|
4750
|
+
allowMultiColumns: boolean;
|
4751
|
+
protected onBeforeSetCompactRenderer(): void;
|
4752
|
+
protected onBeforeSetDesktopRenderer(): void;
|
4717
4753
|
get hasColumns(): boolean;
|
4718
4754
|
get rowLayout(): boolean;
|
4719
4755
|
get blockedRow(): boolean;
|
@@ -4738,6 +4774,10 @@ declare module "question_baseselect" {
|
|
4738
4774
|
protected getDefaultItemComponent(): string;
|
4739
4775
|
/**
|
4740
4776
|
* The name of a component used to render items.
|
4777
|
+
*
|
4778
|
+
* [View Dropdown Demo](https://surveyjs.io/form-library/examples/dropdown-box-with-custom-items/ (linkStyle))
|
4779
|
+
*
|
4780
|
+
* [View Ranking Demo](https://surveyjs.io/form-library/examples/dropdown-box-with-custom-items/ (linkStyle))
|
4741
4781
|
*/
|
4742
4782
|
get itemComponent(): string;
|
4743
4783
|
set itemComponent(value: string);
|
@@ -4957,7 +4997,7 @@ declare module "question_expression" {
|
|
4957
4997
|
unlocCalculation(): void;
|
4958
4998
|
runCondition(values: HashTable<any>, properties: HashTable<any>): void;
|
4959
4999
|
protected canCollectErrors(): boolean;
|
4960
|
-
|
5000
|
+
hasRequiredError(): boolean;
|
4961
5001
|
private createRunner;
|
4962
5002
|
/**
|
4963
5003
|
* The maximum number of fraction digits. Applies only if the `displayStyle` property is not `"none"`. Accepts values in the range from -1 to 20, where -1 disables the property.
|
@@ -5399,6 +5439,10 @@ declare module "utils/devices" {
|
|
5399
5439
|
};
|
5400
5440
|
export let IsTouch: boolean;
|
5401
5441
|
export function _setIsTouch(val: boolean): void;
|
5442
|
+
export type MatchMediaMethod = ((query: string) => {
|
5443
|
+
matches: boolean;
|
5444
|
+
} | null) | null;
|
5445
|
+
export function detectMouseSupport(matchMedia: MatchMediaMethod): boolean;
|
5402
5446
|
}
|
5403
5447
|
declare module "dragdrop/dom-adapter" {
|
5404
5448
|
import { IDragDropEngine } from "dragdrop/engine";
|
@@ -7968,6 +8012,7 @@ declare module "survey-events-api" {
|
|
7968
8012
|
* A Boolean property that you can set to `false` if you want to cancel the drag and drop operation.
|
7969
8013
|
*/
|
7970
8014
|
allow: boolean;
|
8015
|
+
allowMultipleElementsInRow?: boolean;
|
7971
8016
|
/**
|
7972
8017
|
* Obsolete. Use `options.draggedElement` instead.
|
7973
8018
|
*/
|
@@ -8528,6 +8573,7 @@ declare module "mask/mask_utils" {
|
|
8528
8573
|
}
|
8529
8574
|
declare module "mask/mask_base" {
|
8530
8575
|
import { Base } from "base";
|
8576
|
+
import { ISurvey } from "base-interfaces";
|
8531
8577
|
import { IInputMask, IMaskedInputResult, ITextInputParams } from "mask/mask_utils";
|
8532
8578
|
/**
|
8533
8579
|
* A base class for classes that implement input masks:
|
@@ -8544,6 +8590,8 @@ declare module "mask/mask_base" {
|
|
8544
8590
|
* Default value: `false`
|
8545
8591
|
*/
|
8546
8592
|
saveMaskedValue: boolean;
|
8593
|
+
owner: ISurvey;
|
8594
|
+
getSurvey(live?: boolean): ISurvey;
|
8547
8595
|
getType(): string;
|
8548
8596
|
setData(json: any): void;
|
8549
8597
|
getData(): any;
|
@@ -9718,7 +9766,7 @@ declare module "survey" {
|
|
9718
9766
|
*/
|
9719
9767
|
onUpdatePageCssClasses: EventBase<SurveyModel, UpdatePageCssClassesEvent>;
|
9720
9768
|
/**
|
9721
|
-
* An event that is raised before rendering a choice item in Radio Button Group
|
9769
|
+
* An event that is raised before rendering a choice item in Radio Button Group and Checkboxes questions. Use it to override default CSS classes applied to choice items.
|
9722
9770
|
*
|
9723
9771
|
* For information on event handler parameters, refer to descriptions within the interface.
|
9724
9772
|
*
|
@@ -10325,6 +10373,8 @@ declare module "survey" {
|
|
10325
10373
|
* - `"onValueChanged"` - Triggers validation each time a question value is changed.
|
10326
10374
|
* - `"onComplete"` - Triggers validation when a user clicks the Complete button. If previous pages contain errors, the survey switches to the page with the first error.
|
10327
10375
|
*
|
10376
|
+
* > The `"onValueChanged"` doesn't work with date input fields because of the way browsers process date values. In most browsers, the value is considered changed as soon as a user starts entering the date in a text input field. This means that a user may only enter the day without having the chance to enter the month and year before validation is triggered. For this reason, date input fields are validated before the survey is switched to the next page or completed.
|
10377
|
+
*
|
10328
10378
|
* Refer to the following help topic for more information: [Data Validation](https://surveyjs.io/form-library/documentation/data-validation).
|
10329
10379
|
* @see validationEnabled
|
10330
10380
|
* @see validationAllowSwitchPages
|
@@ -10340,6 +10390,7 @@ declare module "survey" {
|
|
10340
10390
|
*
|
10341
10391
|
* You can override this property for individual Long Text questions: [`autoGrow`](https://surveyjs.io/form-library/documentation/api-reference/comment-field-model#autoGrow).
|
10342
10392
|
* @see allowResizeComment
|
10393
|
+
* @see commentAreaRows
|
10343
10394
|
*/
|
10344
10395
|
get autoGrowComment(): boolean;
|
10345
10396
|
set autoGrowComment(val: boolean);
|
@@ -10350,9 +10401,21 @@ declare module "survey" {
|
|
10350
10401
|
*
|
10351
10402
|
* You can override this property for individual Long Text questions: [`allowResize`](https://surveyjs.io/form-library/documentation/api-reference/comment-field-model#allowResize).
|
10352
10403
|
* @see autoGrowComment
|
10404
|
+
* @see commentAreaRows
|
10353
10405
|
*/
|
10354
10406
|
get allowResizeComment(): boolean;
|
10355
10407
|
set allowResizeComment(val: boolean);
|
10408
|
+
/**
|
10409
|
+
* Specifies the visible height of comment areas, measured in lines. Applies to the questions with the [`showCommentArea`](https://surveyjs.io/form-library/documentation/api-reference/question#showCommentArea) or [`showOtherItem`](https://surveyjs.io/form-library/documentation/api-reference/question#showOtherItem) property enabled.
|
10410
|
+
*
|
10411
|
+
* Default value: 2
|
10412
|
+
*
|
10413
|
+
* The value of this property is passed on to the `rows` attribute of the underlying `<textarea>` element.
|
10414
|
+
* @see autoGrowComment
|
10415
|
+
* @see allowResizeComment
|
10416
|
+
*/
|
10417
|
+
get commentAreaRows(): number;
|
10418
|
+
set commentAreaRows(val: number);
|
10356
10419
|
/**
|
10357
10420
|
* Specifies when to update the question value in questions with a text input field.
|
10358
10421
|
*
|
@@ -10413,6 +10476,7 @@ declare module "survey" {
|
|
10413
10476
|
get locale(): string;
|
10414
10477
|
set locale(value: string);
|
10415
10478
|
private onSurveyLocaleChanged;
|
10479
|
+
get localeDir(): string;
|
10416
10480
|
/**
|
10417
10481
|
* Returns an array of locales whose translations are used in the survey.
|
10418
10482
|
*
|
@@ -13145,6 +13209,7 @@ declare module "question" {
|
|
13145
13209
|
set hasOther(val: boolean);
|
13146
13210
|
protected hasOtherChanged(): void;
|
13147
13211
|
get requireUpdateCommentValue(): boolean;
|
13212
|
+
readOnlyCallback: () => boolean;
|
13148
13213
|
get isReadOnly(): boolean;
|
13149
13214
|
get isInputReadOnly(): boolean;
|
13150
13215
|
get renderedInputReadOnly(): string;
|
@@ -13182,6 +13247,7 @@ declare module "question" {
|
|
13182
13247
|
protected initDataFromSurvey(): void;
|
13183
13248
|
protected initCommentFromSurvey(): void;
|
13184
13249
|
protected runExpression(expression: string): any;
|
13250
|
+
get commentAreaRows(): number;
|
13185
13251
|
private get autoGrowComment();
|
13186
13252
|
private get allowResizeComment();
|
13187
13253
|
private get questionValue();
|
@@ -13382,6 +13448,7 @@ declare module "question" {
|
|
13382
13448
|
protected isValueExpression(val: any): boolean;
|
13383
13449
|
protected setValueAndRunExpression(runner: ExpressionRunner, defaultValue: any, setFunc: (val: any) => void, values?: HashTable<any>, properties?: HashTable<any>): void;
|
13384
13450
|
protected convertFuncValuetoQuestionValue(val: any): any;
|
13451
|
+
private runExpressionSetValueCore;
|
13385
13452
|
private runExpressionSetValue;
|
13386
13453
|
private runDefaultValueExpression;
|
13387
13454
|
/**
|
@@ -13443,7 +13510,7 @@ declare module "question" {
|
|
13443
13510
|
protected canRunValidators(isOnValueChanged: boolean): boolean;
|
13444
13511
|
private fireSurveyValidation;
|
13445
13512
|
protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean): void;
|
13446
|
-
|
13513
|
+
hasRequiredError(): boolean;
|
13447
13514
|
private validatorRunner;
|
13448
13515
|
private isRunningValidatorsValue;
|
13449
13516
|
onCompletedAsyncValidators: (hasErrors: boolean) => void;
|
@@ -13736,6 +13803,7 @@ declare module "martixBase" {
|
|
13736
13803
|
protected onColumnsChanged(): void;
|
13737
13804
|
protected onRowsChanged(): void;
|
13738
13805
|
protected updateVisibilityBasedOnRows(): void;
|
13806
|
+
protected isVisibleCore(): boolean;
|
13739
13807
|
protected shouldRunColumnExpression(): boolean;
|
13740
13808
|
protected hasRowsAsItems(): boolean;
|
13741
13809
|
protected runItemsCondition(values: HashTable<any>, properties: HashTable<any>): boolean;
|
@@ -13809,6 +13877,7 @@ declare module "question_matrixdropdownbase" {
|
|
13809
13877
|
onTotalValueChanged(): any;
|
13810
13878
|
getSurvey(): ISurvey;
|
13811
13879
|
getDataFilteredValues(): any;
|
13880
|
+
isMatrixReadOnly(): boolean;
|
13812
13881
|
}
|
13813
13882
|
export class MatrixDropdownCell {
|
13814
13883
|
column: MatrixDropdownColumn;
|
@@ -13856,6 +13925,8 @@ declare module "question_matrixdropdownbase" {
|
|
13856
13925
|
get rowName(): any;
|
13857
13926
|
get dataName(): string;
|
13858
13927
|
get text(): any;
|
13928
|
+
isRowEnabled(): boolean;
|
13929
|
+
protected isRowHasEnabledCondition(): boolean;
|
13859
13930
|
get value(): any;
|
13860
13931
|
set value(value: any);
|
13861
13932
|
get locText(): LocalizableString;
|
@@ -13908,7 +13979,7 @@ declare module "question_matrixdropdownbase" {
|
|
13908
13979
|
locStrsChanged(): void;
|
13909
13980
|
updateCellQuestionOnColumnChanged(column: MatrixDropdownColumn, name: string, newValue: any): void;
|
13910
13981
|
updateCellQuestionOnColumnItemValueChanged(column: MatrixDropdownColumn, propertyName: string, obj: ItemValue, name: string, newValue: any, oldValue: any): void;
|
13911
|
-
onQuestionReadOnlyChanged(
|
13982
|
+
onQuestionReadOnlyChanged(): void;
|
13912
13983
|
private validationValues;
|
13913
13984
|
hasErrors(fireCallback: boolean, rec: any, raiseOnCompletedAsyncValidators: () => void): boolean;
|
13914
13985
|
protected updateCellOnColumnChanged(cell: MatrixDropdownCell, name: string, newValue: any): void;
|
@@ -14287,6 +14358,7 @@ declare module "question_matrixdropdownbase" {
|
|
14287
14358
|
onTotalValueChanged(): any;
|
14288
14359
|
getDataFilteredValues(): any;
|
14289
14360
|
getParentTextProcessor(): ITextProcessor;
|
14361
|
+
isMatrixReadOnly(): boolean;
|
14290
14362
|
getQuestionFromArray(name: string, index: number): IQuestion;
|
14291
14363
|
private isMatrixValueEmpty;
|
14292
14364
|
private get SurveyModel();
|
@@ -14376,6 +14448,7 @@ declare module "base-interfaces" {
|
|
14376
14448
|
isUpdateValueTextOnTyping: boolean;
|
14377
14449
|
autoGrowComment: boolean;
|
14378
14450
|
allowResizeComment: boolean;
|
14451
|
+
commentAreaRows: number;
|
14379
14452
|
state: string;
|
14380
14453
|
isLazyRendering: boolean;
|
14381
14454
|
lazyRenderingFirstBatchSize: number;
|
@@ -15904,11 +15977,19 @@ declare module "settings" {
|
|
15904
15977
|
*/
|
15905
15978
|
ratingMaximumRateValueCount: number;
|
15906
15979
|
/**
|
15907
|
-
* Specifies whether to close the drop-down menu of a [
|
15980
|
+
* Specifies whether to close the drop-down menu of a [Multi-Select Dropdown (Tag Box)](https://surveyjs.io/form-library/examples/how-to-create-multiselect-tag-box/) question after a user selects a value.
|
15908
15981
|
*
|
15909
|
-
* This setting applies to all
|
15982
|
+
* This setting applies to all Multi-Select Dropdown questions on a web page. You can use the [`closeOnSelect`](https://surveyjs.io/form-library/documentation/api-reference/dropdown-tag-box-model#closeOnSelect) property to specify the same setting for an individual Multi-Select Dropdown question.
|
15910
15983
|
*/
|
15911
15984
|
tagboxCloseOnSelect: boolean;
|
15985
|
+
/**
|
15986
|
+
* A time interval in milliseconds between the last entered character and the beginning of search in [Single-](https://surveyjs.io/form-library/examples/create-dropdown-menu-in-javascript/) and [Multi-Select Dropdown](https://surveyjs.io/form-library/examples/how-to-create-multiselect-tag-box/) questions. Applies only to questions with the [`choicesLazyLoadEnabled`](https://surveyjs.io/form-library/documentation/api-reference/dropdown-menu-model#choicesLazyLoadEnabled) property set to `true`.
|
15987
|
+
*
|
15988
|
+
* Default value: 500
|
15989
|
+
*
|
15990
|
+
* [View Demo](https://surveyjs.io/form-library/examples/lazy-loading-dropdown/ (linkStyle))
|
15991
|
+
*/
|
15992
|
+
dropdownSearchDelay: number;
|
15912
15993
|
/**
|
15913
15994
|
* A function that activates a browser confirm dialog.
|
15914
15995
|
*
|
@@ -16163,6 +16244,8 @@ declare module "question_matrixdropdown" {
|
|
16163
16244
|
get rowName(): string;
|
16164
16245
|
get text(): string;
|
16165
16246
|
get locText(): LocalizableString;
|
16247
|
+
isRowEnabled(): boolean;
|
16248
|
+
protected isRowHasEnabledCondition(): boolean;
|
16166
16249
|
}
|
16167
16250
|
/**
|
16168
16251
|
* A class that describes the Multi-Select Matrix question type. Multi-Select Matrix allows you to use the [Dropdown](https://surveyjs.io/form-library/documentation/questiondropdownmodel), [Checkbox](https://surveyjs.io/form-library/documentation/questioncheckboxmodel), [Radiogroup](https://surveyjs.io/form-library/documentation/questionradiogroupmodel), [Text](https://surveyjs.io/form-library/documentation/questiontextmodel), and [Comment](https://surveyjs.io/form-library/documentation/questioncommentmodel) question types as cell editors.
|
@@ -16216,6 +16299,7 @@ declare module "dropdownListModel" {
|
|
16216
16299
|
protected onSelectionChanged?: (item: IAction, ...params: any[]) => void;
|
16217
16300
|
readonly minPageSize = 25;
|
16218
16301
|
readonly loadingItemHeight = 40;
|
16302
|
+
timer: any;
|
16219
16303
|
private htmlCleanerElement;
|
16220
16304
|
private _markdownMode;
|
16221
16305
|
private _popupModel;
|
@@ -16232,6 +16316,7 @@ declare module "dropdownListModel" {
|
|
16232
16316
|
protected listModelFilterStringChanged: (newValue: string) => void;
|
16233
16317
|
private resetItemsSettings;
|
16234
16318
|
private setItems;
|
16319
|
+
private loadQuestionChoices;
|
16235
16320
|
private updateQuestionChoices;
|
16236
16321
|
private updatePopupFocusFirstInputSelector;
|
16237
16322
|
protected createPopup(): void;
|
@@ -16865,6 +16950,7 @@ declare module "question_checkbox" {
|
|
16865
16950
|
get checkBoxSvgPath(): string;
|
16866
16951
|
get isNewA11yStructure(): boolean;
|
16867
16952
|
get a11y_input_ariaRole(): string;
|
16953
|
+
get a11y_input_ariaRequired(): "true" | "false";
|
16868
16954
|
}
|
16869
16955
|
}
|
16870
16956
|
declare module "multiSelectListModel" {
|
@@ -17195,6 +17281,7 @@ declare module "dragdrop/choices" {
|
|
17195
17281
|
private imagepickerControlsNode;
|
17196
17282
|
protected get draggedElementType(): string;
|
17197
17283
|
protected createDraggedElementShortcut(text: string, draggedElementNode: HTMLElement, event: PointerEvent): HTMLElement;
|
17284
|
+
onShortcutCreated: (node: HTMLElement) => void;
|
17198
17285
|
private createImagePickerShortcut;
|
17199
17286
|
protected getDropTargetByDataAttributeValue(dataAttributeValue: string): ItemValue;
|
17200
17287
|
private getVisibleChoices;
|
@@ -17223,7 +17310,7 @@ declare module "dragdrop/ranking-choices" {
|
|
17223
17310
|
protected isDropTargetValid(dropTarget: ItemValue, dropTargetNode?: HTMLElement): boolean;
|
17224
17311
|
protected calculateIsBottom(clientY: number, dropTargetNode?: HTMLElement): boolean;
|
17225
17312
|
protected doDragOver: () => any;
|
17226
|
-
|
17313
|
+
getIndices(model: any, fromChoicesArray: Array<ItemValue>, toChoicesArray: Array<ItemValue>): {
|
17227
17314
|
fromIndex: number;
|
17228
17315
|
toIndex: number;
|
17229
17316
|
};
|
@@ -17270,7 +17357,6 @@ declare module "question_ranking" {
|
|
17270
17357
|
private domNode;
|
17271
17358
|
private dragOrClickHelper;
|
17272
17359
|
constructor(name: string);
|
17273
|
-
protected getDefaultItemComponent(): string;
|
17274
17360
|
getType(): string;
|
17275
17361
|
getItemTabIndex(item: ItemValue): number;
|
17276
17362
|
protected supportContainerQueries(): boolean;
|
@@ -17315,7 +17401,7 @@ declare module "question_ranking" {
|
|
17315
17401
|
endLoadingFromJson(): void;
|
17316
17402
|
private setDragDropRankingChoices;
|
17317
17403
|
protected createDragDropRankingChoices(): DragDropRankingChoices;
|
17318
|
-
private
|
17404
|
+
private draggedChoiceValue;
|
17319
17405
|
private draggedTargetNode;
|
17320
17406
|
handlePointerDown: (event: PointerEvent, choice: ItemValue, node: HTMLElement) => void;
|
17321
17407
|
startDrag: (event: PointerEvent) => void;
|
@@ -17349,11 +17435,7 @@ declare module "question_ranking" {
|
|
17349
17435
|
*/
|
17350
17436
|
get longTap(): boolean;
|
17351
17437
|
set longTap(val: boolean);
|
17352
|
-
|
17353
|
-
* The name of a component used to render items.
|
17354
|
-
*/
|
17355
|
-
get itemContentComponent(): string;
|
17356
|
-
set itemContentComponent(value: string);
|
17438
|
+
protected getDefaultItemComponent(): string;
|
17357
17439
|
/**
|
17358
17440
|
* Specifies whether users can select choices they want to rank.
|
17359
17441
|
*
|
@@ -17770,9 +17852,14 @@ declare module "question_rating" {
|
|
17770
17852
|
getItemClassByText(item: ItemValue, text: string): string;
|
17771
17853
|
private getRenderedItemColor;
|
17772
17854
|
getItemStyle(item: ItemValue, highlight?: "none" | "highlighted" | "unhighlighted"): {
|
17773
|
-
|
17774
|
-
|
17775
|
-
|
17855
|
+
"--sd-rating-item-color"?: undefined;
|
17856
|
+
"--sd-rating-item-color-light"?: undefined;
|
17857
|
+
} | {
|
17858
|
+
"--sd-rating-item-color": string;
|
17859
|
+
"--sd-rating-item-color-light": string;
|
17860
|
+
} | {
|
17861
|
+
"--sd-rating-item-color": string;
|
17862
|
+
"--sd-rating-item-color-light"?: undefined;
|
17776
17863
|
};
|
17777
17864
|
getItemClass(item: ItemValue, highlight?: "none" | "highlighted" | "unhighlighted"): string;
|
17778
17865
|
getControlClass(): string;
|
@@ -17836,10 +17923,6 @@ declare module "question_boolean" {
|
|
17836
17923
|
getDefaultValue(): any;
|
17837
17924
|
get locTitle(): LocalizableString;
|
17838
17925
|
get labelRenderedAriaID(): string;
|
17839
|
-
leftAnswerElement: HTMLElement;
|
17840
|
-
thumbMargin: string;
|
17841
|
-
updateThumbMargin(): void;
|
17842
|
-
afterRender(el: HTMLElement): void;
|
17843
17926
|
beforeDestroyQuestionElement(el: HTMLElement): void;
|
17844
17927
|
showTitle: boolean;
|
17845
17928
|
label: string;
|
@@ -18674,6 +18757,7 @@ declare module "entries/chunks/model" {
|
|
18674
18757
|
declare module "defaultCss/cssstandard" {
|
18675
18758
|
export var defaultStandardCss: {
|
18676
18759
|
root: string;
|
18760
|
+
rootProgress: string;
|
18677
18761
|
container: string;
|
18678
18762
|
header: string;
|
18679
18763
|
bodyContainer: string;
|
@@ -19083,6 +19167,7 @@ declare module "defaultCss/cssstandard" {
|
|
19083
19167
|
declare module "defaultCss/cssmodern" {
|
19084
19168
|
export var modernCss: {
|
19085
19169
|
root: string;
|
19170
|
+
rootProgress: string;
|
19086
19171
|
timerRoot: string;
|
19087
19172
|
container: string;
|
19088
19173
|
header: string;
|