survey-react 1.9.110 → 1.9.111
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 +768 -670
- package/defaultV2.css.map +1 -1
- package/defaultV2.min.css +2 -2
- package/modern.css +300 -240
- package/modern.css.map +1 -1
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/survey.css +66 -53
- package/survey.css.map +1 -1
- package/survey.min.css +2 -2
- package/survey.react.d.ts +218 -168
- package/survey.react.js +522 -288
- package/survey.react.js.map +1 -1
- package/survey.react.min.js +3 -3
package/survey.react.d.ts
CHANGED
@@ -135,6 +135,8 @@ declare module "localization/english" {
|
|
135
135
|
tagboxDoneButtonCaption: string;
|
136
136
|
selectToRankEmptyRankedAreaText: string;
|
137
137
|
selectToRankEmptyUnrankedAreaText: string;
|
138
|
+
ok: string;
|
139
|
+
cancel: string;
|
138
140
|
};
|
139
141
|
}
|
140
142
|
declare module "surveyStrings" {
|
@@ -250,6 +252,8 @@ declare module "surveyStrings" {
|
|
250
252
|
tagboxDoneButtonCaption: string;
|
251
253
|
selectToRankEmptyRankedAreaText: string;
|
252
254
|
selectToRankEmptyUnrankedAreaText: string;
|
255
|
+
ok: string;
|
256
|
+
cancel: string;
|
253
257
|
};
|
254
258
|
}
|
255
259
|
declare module "localizablestring" {
|
@@ -683,6 +687,13 @@ declare module "conditionProcessValue" {
|
|
683
687
|
private getIntValue;
|
684
688
|
}
|
685
689
|
}
|
690
|
+
declare module "console-warnings" {
|
691
|
+
export class ConsoleWarnings {
|
692
|
+
static disposedObjectChangedProperty(propName: string, objType: string): void;
|
693
|
+
static inCorrectQuestionValue(questionName: string, val: any): void;
|
694
|
+
static warn(text: string): void;
|
695
|
+
}
|
696
|
+
}
|
686
697
|
declare module "functionsfactory" {
|
687
698
|
import { HashTable } from "helpers";
|
688
699
|
export class FunctionFactory {
|
@@ -1011,6 +1022,74 @@ declare module "utils/cssClassBuilder" {
|
|
1011
1022
|
toString(): string;
|
1012
1023
|
}
|
1013
1024
|
}
|
1025
|
+
declare module "popup-view-model" {
|
1026
|
+
import { Base } from "base";
|
1027
|
+
import { PopupModel } from "popup";
|
1028
|
+
import { CssClassBuilder } from "utils/cssClassBuilder";
|
1029
|
+
import { ActionContainer } from "actions/container";
|
1030
|
+
export const FOCUS_INPUT_SELECTOR = "input:not(:disabled):not([readonly]):not([type=hidden]),select:not(:disabled):not([readonly]),textarea:not(:disabled):not([readonly]), button:not(:disabled):not([readonly]), [tabindex]:not([tabindex^=\"-\"])";
|
1031
|
+
export class PopupBaseViewModel extends Base {
|
1032
|
+
private static SubscriptionId;
|
1033
|
+
private subscriptionId;
|
1034
|
+
protected popupSelector: string;
|
1035
|
+
protected fixedPopupContainer: string;
|
1036
|
+
protected containerSelector: string;
|
1037
|
+
protected scrollingContentSelector: string;
|
1038
|
+
protected prevActiveElement: HTMLElement;
|
1039
|
+
protected footerToolbarValue: ActionContainer;
|
1040
|
+
top: string;
|
1041
|
+
left: string;
|
1042
|
+
height: string;
|
1043
|
+
width: string;
|
1044
|
+
minWidth: string;
|
1045
|
+
isVisible: boolean;
|
1046
|
+
locale: string;
|
1047
|
+
get container(): HTMLElement;
|
1048
|
+
private containerElement;
|
1049
|
+
private createdContainer;
|
1050
|
+
getLocale(): string;
|
1051
|
+
protected hidePopup(): void;
|
1052
|
+
protected getStyleClass(): CssClassBuilder;
|
1053
|
+
protected getShowFooter(): boolean;
|
1054
|
+
protected getShowHeader(): boolean;
|
1055
|
+
protected getPopupHeaderTemplate(): string;
|
1056
|
+
protected createFooterActionBar(): void;
|
1057
|
+
protected resetDimensionsAndPositionStyleProperties(): void;
|
1058
|
+
protected onModelChanging(newModel: PopupModel): void;
|
1059
|
+
private setupModel;
|
1060
|
+
private _model;
|
1061
|
+
get model(): PopupModel;
|
1062
|
+
set model(model: PopupModel);
|
1063
|
+
constructor(model: PopupModel);
|
1064
|
+
get title(): string;
|
1065
|
+
get contentComponentName(): string;
|
1066
|
+
get contentComponentData(): any;
|
1067
|
+
get isModal(): boolean;
|
1068
|
+
get isFocusedContent(): boolean;
|
1069
|
+
get isFocusedContainer(): boolean;
|
1070
|
+
get showFooter(): boolean;
|
1071
|
+
get showHeader(): boolean;
|
1072
|
+
get popupHeaderTemplate(): string;
|
1073
|
+
get isOverlay(): boolean;
|
1074
|
+
get styleClass(): string;
|
1075
|
+
get cancelButtonText(): string;
|
1076
|
+
get footerToolbar(): ActionContainer;
|
1077
|
+
onKeyDown(event: any): void;
|
1078
|
+
private trapFocus;
|
1079
|
+
switchFocus(): void;
|
1080
|
+
updateOnShowing(): void;
|
1081
|
+
updateOnHiding(): void;
|
1082
|
+
private focusContainer;
|
1083
|
+
private focusFirstInput;
|
1084
|
+
clickOutside(event?: Event): void;
|
1085
|
+
cancel(): void;
|
1086
|
+
dispose(): void;
|
1087
|
+
initializePopupContainer(): void;
|
1088
|
+
setComponentElement(componentRoot: HTMLElement, targetElement?: HTMLElement | null): void;
|
1089
|
+
resetComponentElement(): void;
|
1090
|
+
protected preventScrollOuside(event: any, deltaY: number): void;
|
1091
|
+
}
|
1092
|
+
}
|
1014
1093
|
declare module "utils/utils" {
|
1015
1094
|
function compareVersions(a: any, b: any): number;
|
1016
1095
|
function confirmAction(message: string): boolean;
|
@@ -1054,6 +1133,7 @@ declare module "utils/utils" {
|
|
1054
1133
|
log(action: string): void;
|
1055
1134
|
get result(): string;
|
1056
1135
|
}
|
1136
|
+
export function showConfirmDialog(message: string, callback: (res: boolean) => void): boolean;
|
1057
1137
|
export { mergeValues, getElementWidth, isContainerVisible, classesToSelector, compareVersions, confirmAction, confirmActionAsync, detectIEOrEdge, detectIEBrowser, loadFileFromBase64, isMobile, isShadowDOM, getElement, isElementVisible, findScrollableParent, scrollElementByChildId, navigateToUrl, wrapUrlForBackgroundImage, createSvg, getIconNameFromProxy, increaseHeightByContent, getOriginalEvent, preventDefaults, findParentByClassNames, getFirstVisibleChild, };
|
1058
1138
|
}
|
1059
1139
|
declare module "actions/container" {
|
@@ -1596,6 +1676,8 @@ declare module "defaultCss/defaultV2Css" {
|
|
1596
1676
|
rootReadOnly: string;
|
1597
1677
|
rootCompact: string;
|
1598
1678
|
rootFitToContainer: string;
|
1679
|
+
rootWrapper: string;
|
1680
|
+
rootWrapperFixed: string;
|
1599
1681
|
rootBackgroundImage: string;
|
1600
1682
|
container: string;
|
1601
1683
|
header: string;
|
@@ -2333,6 +2415,7 @@ declare module "trigger" {
|
|
2333
2415
|
protected canBeExecutedOnComplete(): boolean;
|
2334
2416
|
protected isExecutingOnNextPage: boolean;
|
2335
2417
|
checkExpression(isOnNextPage: boolean, isOnComplete: boolean, keys: any, values: HashTable<any>, properties?: HashTable<any>): void;
|
2418
|
+
protected canSuccessOnEmptyExpression(): boolean;
|
2336
2419
|
check(value: any): void;
|
2337
2420
|
get requireValidQuestion(): boolean;
|
2338
2421
|
private perform;
|
@@ -2345,6 +2428,7 @@ declare module "trigger" {
|
|
2345
2428
|
private onExpressionChanged;
|
2346
2429
|
buildExpression(): string;
|
2347
2430
|
private isCheckRequired;
|
2431
|
+
protected getUsedVariables(): string[];
|
2348
2432
|
private createConditionRunner;
|
2349
2433
|
private get isRequireValue();
|
2350
2434
|
}
|
@@ -2450,6 +2534,8 @@ declare module "trigger" {
|
|
2450
2534
|
set copyDisplayValue(val: boolean);
|
2451
2535
|
getType(): string;
|
2452
2536
|
protected onSuccess(values: HashTable<any>, properties: HashTable<any>): void;
|
2537
|
+
protected canSuccessOnEmptyExpression(): boolean;
|
2538
|
+
protected getUsedVariables(): string[];
|
2453
2539
|
}
|
2454
2540
|
}
|
2455
2541
|
declare module "calculatedValue" {
|
@@ -2864,8 +2950,8 @@ declare module "panel" {
|
|
2864
2950
|
hasErrors(fireCallback?: boolean, focusOnFirstError?: boolean, rec?: any): boolean;
|
2865
2951
|
/**
|
2866
2952
|
* Validates questions within this panel or page and returns `false` if the validation fails.
|
2867
|
-
* @param fireCallback *Optional
|
2868
|
-
* @param focusOnFirstError *Optional
|
2953
|
+
* @param fireCallback *(Optional)* Pass `false` if you do not want to show validation errors in the UI.
|
2954
|
+
* @param focusOnFirstError *(Optional)* Pass `true` if you want to focus the first question with a validation error.
|
2869
2955
|
* @see [Data Validation](https://surveyjs.io/form-library/documentation/data-validation)
|
2870
2956
|
*/
|
2871
2957
|
validate(fireCallback?: boolean, focusOnFirstError?: boolean, rec?: any): boolean;
|
@@ -3223,7 +3309,7 @@ declare module "question_file" {
|
|
3223
3309
|
*
|
3224
3310
|
* - `sender`: `SurveyModel`\
|
3225
3311
|
* A survey instance that raised the event.
|
3226
|
-
* - `options.state`: `
|
3312
|
+
* - `options.state`: `string`\
|
3227
3313
|
* The current upload state: `"empty"`, `"loading"`, `"loaded"`, or `"error"`.
|
3228
3314
|
*/
|
3229
3315
|
onUploadStateChanged: EventBase<QuestionFileModel>;
|
@@ -3374,6 +3460,7 @@ declare module "question_file" {
|
|
3374
3460
|
get showFileDecorator(): boolean;
|
3375
3461
|
get showLoadingIndicator(): boolean;
|
3376
3462
|
get allowShowPreview(): boolean;
|
3463
|
+
get showPreviewContainer(): boolean;
|
3377
3464
|
get showRemoveButtonCore(): boolean;
|
3378
3465
|
get showRemoveButton(): boolean;
|
3379
3466
|
get showRemoveButtonBottom(): boolean;
|
@@ -4962,7 +5049,7 @@ declare module "question_matrixdynamic" {
|
|
4962
5049
|
private getQuestionToFocusOnAddingRow;
|
4963
5050
|
/**
|
4964
5051
|
* Creates and adds a new row to the matrix.
|
4965
|
-
* @param setFocus *Optional
|
5052
|
+
* @param setFocus *(Optional)* Pass `true` to focus the cell in the first column.
|
4966
5053
|
*/
|
4967
5054
|
addRow(setFocus?: boolean): void;
|
4968
5055
|
/**
|
@@ -4981,7 +5068,7 @@ declare module "question_matrixdynamic" {
|
|
4981
5068
|
/**
|
4982
5069
|
* Removes a matrix row with a specified index.
|
4983
5070
|
* @param index A zero-based row index.
|
4984
|
-
* @param confirmDelete *Optional
|
5071
|
+
* @param confirmDelete *(Optional)* A Boolean value that specifies whether to display a confirmation dialog. If you do not specify this parameter, the [`confirmDelete`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-matrix-table-question-model#confirmDelete) property value is used.
|
4985
5072
|
*/
|
4986
5073
|
removeRow(index: number, confirmDelete?: boolean): void;
|
4987
5074
|
private removeRowAsync;
|
@@ -5208,8 +5295,8 @@ declare module "question_paneldynamic" {
|
|
5208
5295
|
*
|
5209
5296
|
* The template can contain the following placeholders:
|
5210
5297
|
*
|
5211
|
-
* - `{panelIndex}` - A
|
5212
|
-
* - `{visiblePanelIndex}` - A
|
5298
|
+
* - `{panelIndex}` - A panel index within the collection of all panels. Starts with 1.
|
5299
|
+
* - `{visiblePanelIndex}` - A panel index within the collection of visible panels. Starts with 1.
|
5213
5300
|
* @see template
|
5214
5301
|
* @see templateDescription
|
5215
5302
|
* @see templateElements
|
@@ -5224,8 +5311,12 @@ declare module "question_paneldynamic" {
|
|
5224
5311
|
*
|
5225
5312
|
* The template can contain the following placeholders:
|
5226
5313
|
*
|
5227
|
-
* - `{panelIndex}` - A
|
5228
|
-
* - `{visiblePanelIndex}` - A
|
5314
|
+
* - `{panelIndex}` - A panel index within the collection of all panels. Starts with 1.
|
5315
|
+
* - `{visiblePanelIndex}` - A panel index within the collection of visible panels. Starts with 1.
|
5316
|
+
*
|
5317
|
+
* If you want to customize individual tab titles, handle `SurveyModel`'s [`onGetDynamicPanelTabTitle`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onGetDynamicPanelTabTitle) event.
|
5318
|
+
*
|
5319
|
+
* [View Demo](/form-library/examples/tabbed-interface-for-duplicate-group-option/ (linkStyle))
|
5229
5320
|
* @see templateTitle
|
5230
5321
|
* @see renderMode
|
5231
5322
|
*/
|
@@ -5509,11 +5600,11 @@ declare module "question_paneldynamic" {
|
|
5509
5600
|
*
|
5510
5601
|
* Possible values:
|
5511
5602
|
*
|
5512
|
-
* - `"list"` - Renders panels one under the other. [View Demo](https://surveyjs.io/form-library/examples/how-to-use-expressions-in-dynamic-panel/)
|
5603
|
+
* - `"list"` (default) - Renders panels one under the other. [View Demo](https://surveyjs.io/form-library/examples/how-to-use-expressions-in-dynamic-panel/)
|
5513
5604
|
* - `"progressTop"` - Renders each panel as a card and displays a progress bar at the top. [View Demo](https://surveyjs.io/form-library/examples/questiontype-paneldynamic/)
|
5514
5605
|
* - `"progressBottom"` - Renders each panel panel as a card and displays a progress bar at the bottom.
|
5515
5606
|
* - `"progressTopBottom"` - Renders each panel as a card and displays a progress bar at the top and bottom.
|
5516
|
-
* - `"tab"` - Renders each panel within a tab. Use the [`templateTabTitle`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#templateTabTitle) to specify a template for tab titles.
|
5607
|
+
* - `"tab"` - Renders each panel within a tab. Use the [`templateTabTitle`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#templateTabTitle) to specify a template for tab titles. [View Demo](/form-library/examples/tabbed-interface-for-duplicate-group-option/)
|
5517
5608
|
*/
|
5518
5609
|
get renderMode(): string;
|
5519
5610
|
set renderMode(val: string);
|
@@ -7522,6 +7613,7 @@ declare module "cover" {
|
|
7522
7613
|
import { Base } from "base";
|
7523
7614
|
import { HorizontalAlignment, VerticalAlignment } from "base-interfaces";
|
7524
7615
|
import { SurveyModel } from "survey";
|
7616
|
+
import { ITheme } from "themes";
|
7525
7617
|
export class CoverCell {
|
7526
7618
|
private cover;
|
7527
7619
|
private positionX;
|
@@ -7544,6 +7636,7 @@ declare module "cover" {
|
|
7544
7636
|
}
|
7545
7637
|
export class Cover extends Base {
|
7546
7638
|
private calcBackgroundSize;
|
7639
|
+
fromTheme(theme: ITheme): void;
|
7547
7640
|
constructor();
|
7548
7641
|
getType(): string;
|
7549
7642
|
survey: SurveyModel;
|
@@ -8217,6 +8310,10 @@ declare module "survey" {
|
|
8217
8310
|
onDynamicPanelItemValueChanged: EventBase<SurveyModel, DynamicPanelItemValueChangedEvent>;
|
8218
8311
|
/**
|
8219
8312
|
* An event that is raised before a [Dynamic Panel](https://surveyjs.io/form-library/examples/questiontype-paneldynamic/) renders [tab titles](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#templateTabTitle). Use this event to change individual tab titles.
|
8313
|
+
*
|
8314
|
+
* For information on event handler parameters, refer to descriptions within the interface.
|
8315
|
+
*
|
8316
|
+
* [View Demo](/form-library/examples/tabbed-interface-for-duplicate-group-option/ (linkStyle))
|
8220
8317
|
*/
|
8221
8318
|
onGetDynamicPanelTabTitle: EventBase<SurveyModel, DynamicPanelGetTabTitleEvent>;
|
8222
8319
|
/**
|
@@ -8813,12 +8910,10 @@ declare module "survey" {
|
|
8813
8910
|
*/
|
8814
8911
|
get backgroundOpacity(): number;
|
8815
8912
|
set backgroundOpacity(val: number);
|
8816
|
-
|
8817
|
-
|
8818
|
-
|
8819
|
-
|
8820
|
-
backgroundAttachment: ImageAttachment;
|
8821
|
-
};
|
8913
|
+
backgroundImageStyle: any;
|
8914
|
+
updateBackgroundImageStyle(): void;
|
8915
|
+
wrapperFormCss: string;
|
8916
|
+
updateWrapperFormCss(): void;
|
8822
8917
|
/**
|
8823
8918
|
* HTML content displayed on the [complete page](https://surveyjs.io/form-library/documentation/design-survey/create-a-multi-page-survey#complete-page).
|
8824
8919
|
*
|
@@ -9257,8 +9352,8 @@ declare module "survey" {
|
|
9257
9352
|
notify(message: string, type: string): void;
|
9258
9353
|
/**
|
9259
9354
|
* Resets the survey [`state`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#state) and, optionally, [`data`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#data). If `state` is `"completed"`, it becomes `"running"`.
|
9260
|
-
* @param clearData *Optional
|
9261
|
-
* @param goToFirstPage *Optional
|
9355
|
+
* @param clearData *(Optional)* Specifies whether to clear survey data. Default value: `true`.
|
9356
|
+
* @param goToFirstPage *(Optional)* Specifies whether to switch the survey to the first page. Default value: `true`.
|
9262
9357
|
*/
|
9263
9358
|
clear(clearData?: boolean, goToFirstPage?: boolean): void;
|
9264
9359
|
mergeValues(src: any, dest: any): void;
|
@@ -9354,7 +9449,7 @@ declare module "survey" {
|
|
9354
9449
|
* Validates all questions on the current page and returns `false` if the validation fails.
|
9355
9450
|
*
|
9356
9451
|
* If you use validation expressions and at least one of them calls an async function, the `validateCurrentPage` method returns `undefined`. In this case, you should pass a callback function as the `onAsyncValidation` parameter. The function's `hasErrors` Boolean parameter will contain the validation result.
|
9357
|
-
* @param onAsyncValidation *Optional
|
9452
|
+
* @param onAsyncValidation *(Optional)* Pass a callback function. It accepts a Boolean `hasErrors` parameter that equals `true` if the validation fails or `false` otherwise.
|
9358
9453
|
* @see currentPage
|
9359
9454
|
* @see validate
|
9360
9455
|
* @see validateCurrentPage
|
@@ -9366,7 +9461,7 @@ declare module "survey" {
|
|
9366
9461
|
*
|
9367
9462
|
* If you use validation expressions and at least one of them calls an async function, the `validatePage` method returns `undefined`. In this case, you should pass a callback function as the `onAsyncValidation` parameter. The function's `hasErrors` Boolean parameter will contain the validation result.
|
9368
9463
|
* @param page Pass the `PageModel` that you want to validate. You can pass `undefined` to validate the [`activePage`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#activePage).
|
9369
|
-
* @param onAsyncValidation *Optional
|
9464
|
+
* @param onAsyncValidation *(Optional)* Pass a callback function. It accepts a Boolean `hasErrors` parameter that equals `true` if the validation fails or `false` otherwise.
|
9370
9465
|
* @see validate
|
9371
9466
|
* @see validateCurrentPage
|
9372
9467
|
*/
|
@@ -9376,9 +9471,9 @@ declare module "survey" {
|
|
9376
9471
|
* Validates all questions and returns `false` if the validation fails.
|
9377
9472
|
*
|
9378
9473
|
* If you use validation expressions and at least one of them calls an async function, the `validate` method returns `undefined`. In this case, you should pass a callback function as the `onAsyncValidation` parameter. The function's `hasErrors` Boolean parameter will contain the validation result.
|
9379
|
-
* @param fireCallback *Optional
|
9380
|
-
* @param focusOnFirstError *Optional
|
9381
|
-
* @param onAsyncValidation *Optional
|
9474
|
+
* @param fireCallback *(Optional)* Pass `false` if you do not want to show validation errors in the UI.
|
9475
|
+
* @param focusOnFirstError *(Optional)* Pass `true` if you want to focus the first question with a validation error. The survey will be switched to the page that contains this question if required.
|
9476
|
+
* @param onAsyncValidation *(Optional)* Pass a callback function. It accepts a Boolean `hasErrors` parameter that equals `true` if the validation fails or `false` otherwise.
|
9382
9477
|
* @see validateCurrentPage
|
9383
9478
|
* @see validatePage
|
9384
9479
|
*/
|
@@ -10248,13 +10343,13 @@ declare module "survey" {
|
|
10248
10343
|
*
|
10249
10344
|
* This method accepts an object with the following layout element properties:
|
10250
10345
|
*
|
10251
|
-
* - `id`: `
|
10346
|
+
* - `id`: `string` | `"timerpanel"` | `"progress-buttons"` | `"progress-questions"` | `"progress-pages"` | `"progress-correctquestions"` | `"progress-requiredquestions"` | `"toc-navigation"` | `"navigationbuttons"`\
|
10252
10347
|
* A layout element identifier. You can use possible values to access and relocate or customize predefined layout elements.
|
10253
10348
|
*
|
10254
10349
|
* - `container`: `"header"` | `"footer"` | `"left"` | `"right"` | `"contentTop"` | `"contentBottom"`\
|
10255
10350
|
* A layout container that holds the element. If you want to display the element within multiple containers, set this property to an array of possible values.
|
10256
10351
|
*
|
10257
|
-
* - `component`: `
|
10352
|
+
* - `component`: `string`\
|
10258
10353
|
* The name of the component that renders the layout element.
|
10259
10354
|
*
|
10260
10355
|
* - `data`: `any`\
|
@@ -10730,13 +10825,6 @@ declare module "questionCustomWidgets" {
|
|
10730
10825
|
getCustomWidget(question: IQuestion): QuestionCustomWidget;
|
10731
10826
|
}
|
10732
10827
|
}
|
10733
|
-
declare module "console-warnings" {
|
10734
|
-
export class ConsoleWarnings {
|
10735
|
-
static disposedObjectChangedProperty(propName: string, objType: string): void;
|
10736
|
-
static inCorrectQuestionValue(questionName: string, val: any): void;
|
10737
|
-
static warn(text: string): void;
|
10738
|
-
}
|
10739
|
-
}
|
10740
10828
|
declare module "question" {
|
10741
10829
|
import { HashTable } from "helpers";
|
10742
10830
|
import { EventBase } from "base";
|
@@ -10807,9 +10895,9 @@ declare module "question" {
|
|
10807
10895
|
*
|
10808
10896
|
* - `sender`: `SurveyModel`\
|
10809
10897
|
* A survey instance that contains the question whose ready state has changed.
|
10810
|
-
* - `options.isReady`: `
|
10898
|
+
* - `options.isReady`: `boolean`\
|
10811
10899
|
* Indicates whether the question is ready.
|
10812
|
-
* - `options.oldIsReady`: `
|
10900
|
+
* - `options.oldIsReady`: `boolean`\
|
10813
10901
|
* Indicates the previous ready state.
|
10814
10902
|
*/
|
10815
10903
|
onReadyChanged: EventBase<Question>;
|
@@ -11096,6 +11184,7 @@ declare module "question" {
|
|
11096
11184
|
onCommentChange(event: any): void;
|
11097
11185
|
afterRenderQuestionElement(el: HTMLElement): void;
|
11098
11186
|
afterRender(el: HTMLElement): void;
|
11187
|
+
afterRenderCore(el: HTMLElement): void;
|
11099
11188
|
protected getCommentElementsId(): Array<string>;
|
11100
11189
|
beforeDestroyQuestionElement(el: HTMLElement): void;
|
11101
11190
|
get processedTitle(): string;
|
@@ -11261,27 +11350,27 @@ declare module "question" {
|
|
11261
11350
|
*
|
11262
11351
|
* | Question type | Value type(s) |
|
11263
11352
|
* | ------------- | ------------- |
|
11264
|
-
* | Checkboxes | `Array<
|
11265
|
-
* | Dropdown | `
|
11266
|
-
* | Dynamic Matrix | `Array<
|
11267
|
-
* | Dynamic Panel | `Array<
|
11268
|
-
* | Expression | `
|
11353
|
+
* | Checkboxes | `Array<string \| number>` |
|
11354
|
+
* | Dropdown | `string` \| `number` |
|
11355
|
+
* | Dynamic Matrix | `Array<object>` |
|
11356
|
+
* | Dynamic Panel | `Array<object>` |
|
11357
|
+
* | Expression | `string` \| `number` \| `boolean` |
|
11269
11358
|
* | File Upload | `File` \| `Array<File>` |
|
11270
11359
|
* | HTML | (no value) |
|
11271
11360
|
* | Image | (no value) |
|
11272
|
-
* | Image Picker | `Array<
|
11273
|
-
* | Long Text | `
|
11274
|
-
* | Multi-Select Dropdown | `
|
11275
|
-
* | Multi-Select Matrix | `
|
11276
|
-
* | Multiple Textboxes | `Array<
|
11361
|
+
* | Image Picker | `Array<string \| number>` |
|
11362
|
+
* | Long Text | `string` |
|
11363
|
+
* | Multi-Select Dropdown | `object` |
|
11364
|
+
* | Multi-Select Matrix | `object` |
|
11365
|
+
* | Multiple Textboxes | `Array<string>` |
|
11277
11366
|
* | Panel | (no value) |
|
11278
|
-
* | Radio Button Group | `
|
11279
|
-
* | Ranking | `Array<
|
11280
|
-
* | Rating Scale | `
|
11281
|
-
* | Signature | `
|
11282
|
-
* | Single-Line Input | `
|
11283
|
-
* | Single-Select Matrix | `
|
11284
|
-
* | Yes/No (Boolean) | `
|
11367
|
+
* | Radio Button Group | `string` \| `number` |
|
11368
|
+
* | Ranking | `Array<string \| number>` |
|
11369
|
+
* | Rating Scale | `number` \| `string` |
|
11370
|
+
* | Signature | `string` (base64-encoded image) |
|
11371
|
+
* | Single-Line Input | `string` \| `number` \| `Date` |
|
11372
|
+
* | Single-Select Matrix | `object` |
|
11373
|
+
* | Yes/No (Boolean) | `boolean` \| `string` |
|
11285
11374
|
*/
|
11286
11375
|
get value(): any;
|
11287
11376
|
set value(newValue: any);
|
@@ -11459,7 +11548,7 @@ declare module "question" {
|
|
11459
11548
|
hasErrors(fireCallback?: boolean, rec?: any): boolean;
|
11460
11549
|
/**
|
11461
11550
|
* Validates this question and returns `false` if the validation fails.
|
11462
|
-
* @param fireCallback *Optional
|
11551
|
+
* @param fireCallback *(Optional)* Pass `false` if you do not want to show validation errors in the UI.
|
11463
11552
|
* @see [Data Validation](https://surveyjs.io/form-library/documentation/data-validation)
|
11464
11553
|
*/
|
11465
11554
|
validate(fireCallback?: boolean, rec?: any): boolean;
|
@@ -11490,6 +11579,7 @@ declare module "question" {
|
|
11490
11579
|
allowSpaceAsAnswer: boolean;
|
11491
11580
|
private isValueChangedInSurvey;
|
11492
11581
|
private isOldAnswered;
|
11582
|
+
private isSettingQuestionValue;
|
11493
11583
|
protected allowNotifyValueChanged: boolean;
|
11494
11584
|
protected setNewValue(newValue: any): void;
|
11495
11585
|
private checkIsValueCorrect;
|
@@ -12708,7 +12798,7 @@ declare module "base" {
|
|
12708
12798
|
*
|
12709
12799
|
* - `sender`: `this`\
|
12710
12800
|
* A SurveyJS object whose property has changed.
|
12711
|
-
* - `options.name`: `
|
12801
|
+
* - `options.name`: `string`\
|
12712
12802
|
* The name of the changed property.
|
12713
12803
|
* - `options.newValue`: `any`\
|
12714
12804
|
* A new value for the property.
|
@@ -12725,7 +12815,7 @@ declare module "base" {
|
|
12725
12815
|
* A SurveyJS object whose property contains an array of `ItemValue` objects.
|
12726
12816
|
* - `options.obj`: [`ItemValue`](https://surveyjs.io/form-library/documentation/itemvalue)\
|
12727
12817
|
* An `ItemValue` object.
|
12728
|
-
* - `options.propertyName`: `
|
12818
|
+
* - `options.propertyName`: `string`\
|
12729
12819
|
* The name of the property to which an array of `ItemValue` objects is assigned (for example, `"choices"` or `"rows"`).
|
12730
12820
|
* - `options.name`: `"text"` | `"value"`\
|
12731
12821
|
* The name of the changed property.
|
@@ -12981,6 +13071,7 @@ declare module "popup" {
|
|
12981
13071
|
componentName: string;
|
12982
13072
|
data: any;
|
12983
13073
|
onApply: () => boolean;
|
13074
|
+
isFocusedContent?: boolean;
|
12984
13075
|
}
|
12985
13076
|
export interface IPopupModel<T = any> extends IDialogOptions {
|
12986
13077
|
contentComponentName: string;
|
@@ -13044,10 +13135,10 @@ declare module "settings" {
|
|
13044
13135
|
*
|
13045
13136
|
* Nested properties:
|
13046
13137
|
*
|
13047
|
-
* - `showEmptyDescriptions`: `
|
13138
|
+
* - `showEmptyDescriptions`: `boolean`\
|
13048
13139
|
* Specifies whether to display an empty description for pages and panels. Default value: `true`.
|
13049
13140
|
*
|
13050
|
-
* - `showEmptyTitles`: `
|
13141
|
+
* - `showEmptyTitles`: `boolean`\
|
13051
13142
|
* Specifies whether to display an empty title for pages and panels. Default value: `true`.
|
13052
13143
|
*/
|
13053
13144
|
designMode: {
|
@@ -13067,13 +13158,13 @@ declare module "settings" {
|
|
13067
13158
|
*
|
13068
13159
|
* Nested properties:
|
13069
13160
|
*
|
13070
|
-
* - `useLocalTimeZone`: `
|
13161
|
+
* - `useLocalTimeZone`: `boolean`\
|
13071
13162
|
* Disable this property if you want internal SurveyJS functions to use methods that work with UTC date and time (`setUTCDate()` `setUTCHours()`, etc.) instead of methods that work with local date and time (`setYear`, `setHours()`, etc.). Default value: `true`.
|
13072
13163
|
*
|
13073
|
-
* - `defaultLocaleName`: `
|
13164
|
+
* - `defaultLocaleName`: `string`\
|
13074
13165
|
* A property key that stores a translation for the default locale. Default value: `"default"`.
|
13075
13166
|
*
|
13076
|
-
* - `storeDuplicatedTranslations`: `
|
13167
|
+
* - `storeDuplicatedTranslations`: `boolean`\
|
13077
13168
|
* Specifies whether surveys should store translation strings that equal the translation strings in the default locale. Default value: `false`.
|
13078
13169
|
*/
|
13079
13170
|
localization: {
|
@@ -13098,16 +13189,16 @@ declare module "settings" {
|
|
13098
13189
|
*
|
13099
13190
|
* Nested properties:
|
13100
13191
|
*
|
13101
|
-
* - `encodeUrlParams`: `
|
13192
|
+
* - `encodeUrlParams`: `boolean`\
|
13102
13193
|
* Specifies whether to encode URL parameters when you access a web service. Default value: `true`.
|
13103
13194
|
*
|
13104
|
-
* - `cacheLoadedChoices`: `
|
13195
|
+
* - `cacheLoadedChoices`: `boolean`\
|
13105
13196
|
* Specifies whether to cache [choices](https://surveyjs.io/form-library/documentation/api-reference/checkbox-question-model#choicesByUrl) loaded from a web service. Default value: `true`.
|
13106
13197
|
*
|
13107
|
-
* - `disableQuestionWhileLoadingChoices`: `
|
13198
|
+
* - `disableQuestionWhileLoadingChoices`: `boolean`\
|
13108
13199
|
* Disables a question while its choices are being loaded from a web service. Default value: `false`.
|
13109
13200
|
*
|
13110
|
-
* - `surveyServiceUrl`: `
|
13201
|
+
* - `surveyServiceUrl`: `string`\
|
13111
13202
|
* The URL of the SurveyJS Service API endpoint.
|
13112
13203
|
*/
|
13113
13204
|
web: {
|
@@ -13138,14 +13229,14 @@ declare module "settings" {
|
|
13138
13229
|
*
|
13139
13230
|
* Nested properties:
|
13140
13231
|
*
|
13141
|
-
* - `changeNavigationButtonsOnComplete`: `
|
13232
|
+
* - `changeNavigationButtonsOnComplete`: `boolean`\
|
13142
13233
|
* Specifies whether to re-evaluate an expression associated with the [Complete trigger](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#complete) immediately when a question value changes. If the expression evaluates to `true`, the trigger is executed. Default value: `false`.\
|
13143
13234
|
* Keep this property set to `false` if you want to re-evaluate the Complete trigger's expression only when the respondents navigate to another page.
|
13144
13235
|
*
|
13145
|
-
* - `executeCompleteOnValueChanged`: `
|
13236
|
+
* - `executeCompleteOnValueChanged`: `boolean`\
|
13146
13237
|
* Specifies whether to replace the Next button with the Complete button when the [Complete trigger](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#complete) is going to be executed. Default value: `true`.
|
13147
13238
|
*
|
13148
|
-
* - `executeSkipOnValueChanged`: `
|
13239
|
+
* - `executeSkipOnValueChanged`: `boolean`\
|
13149
13240
|
* Specifies whether to re-evaluate an expression associated with the [Skip trigger](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#skip) immediately when a question value changes. If the expression evaluates to `true`, the trigger is executed. Default value: `true`.\
|
13150
13241
|
* Disable this property if you want to re-evaluate the Skip trigger's expression only when respondents navigate to another page.
|
13151
13242
|
*/
|
@@ -13171,13 +13262,13 @@ declare module "settings" {
|
|
13171
13262
|
*
|
13172
13263
|
* Nested properties:
|
13173
13264
|
*
|
13174
|
-
* - `itemValueSerializeAsObject`: `
|
13265
|
+
* - `itemValueSerializeAsObject`: `boolean`\
|
13175
13266
|
* Enable this property if you want to serialize [`ItemValue`](https://surveyjs.io/form-library/documentation/api-reference/itemvalue) instances as objects even when they include only the `value` property. Default value: `false`. View an example below.
|
13176
13267
|
*
|
13177
|
-
* - `itemValueSerializeDisplayText`: `
|
13268
|
+
* - `itemValueSerializeDisplayText`: `boolean`\
|
13178
13269
|
* Enable this property if you want to serialize the `text` property of [`ItemValue`](https://surveyjs.io/form-library/documentation/api-reference/itemvalue) objects even when it is empty or equal to the `value` property. Default value: `false`. View an example below.
|
13179
13270
|
*
|
13180
|
-
* - `localizableStringSerializeAsObject`: `
|
13271
|
+
* - `localizableStringSerializeAsObject`: `boolean`\
|
13181
13272
|
* Enable this property if you want to serialize [`LocalizableString`](https://surveyjs.io/form-library/documentation/api-reference/localizablestring) instances as objects even when they include only a translation string for the default locale. For example, `"Custom String"` will be serialized as `{ default: "Custom String" }`. Default value: `false`.
|
13182
13273
|
*
|
13183
13274
|
* ```js
|
@@ -13216,7 +13307,7 @@ declare module "settings" {
|
|
13216
13307
|
*
|
13217
13308
|
* Nested properties:
|
13218
13309
|
*
|
13219
|
-
* - `enabled`: `
|
13310
|
+
* - `enabled`: `boolean`\
|
13220
13311
|
* Specifies whether to add questions to the DOM only when they get into the viewport. Default value: `false`.
|
13221
13312
|
*
|
13222
13313
|
* > Lazy rendering is an experimental feature that may not work as expected in all use cases.
|
@@ -13235,28 +13326,28 @@ declare module "settings" {
|
|
13235
13326
|
*
|
13236
13327
|
* Nested properties:
|
13237
13328
|
*
|
13238
|
-
* - `defaultRowName`: `
|
13329
|
+
* - `defaultRowName`: `string`\
|
13239
13330
|
* A property key that stores an object with default cell values. Default value: "default".
|
13240
13331
|
*
|
13241
|
-
* - `defaultCellType`: `
|
13332
|
+
* - `defaultCellType`: `string`\
|
13242
13333
|
* The default type of matrix cells. Default value: `"dropdown"`.\
|
13243
13334
|
* You can specify this setting for individual questions or matrix columns: [`cellType`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-matrix-table-question-model#cellType). Refer to the `cellType` property description for information on possible values.
|
13244
13335
|
*
|
13245
|
-
* - `totalsSuffix`: `
|
13336
|
+
* - `totalsSuffix`: `string`\
|
13246
13337
|
* A suffix added to the name of the property that stores total values. The resulting property name consists of the matrix name and the suffix. Default value: `"-total"`.
|
13247
13338
|
*
|
13248
|
-
* - `maxRowCount`: `
|
13339
|
+
* - `maxRowCount`: `number`\
|
13249
13340
|
* A maximum number of rows in a Dynamic Matrix. Default value: 1000.\
|
13250
13341
|
* You can specify this setting for an individual Dynamic Matrix: [`maxRowCount`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-matrix-table-question-model#maxRowCount).
|
13251
13342
|
*
|
13252
|
-
* - `maxRowCountInCondition`: `
|
13343
|
+
* - `maxRowCountInCondition`: `number`\
|
13253
13344
|
* A maximum number of matrix rows included in the Condition drop-down menu in Survey Creator. This menu is used to configure conditional survey logic. Default value: 1.\
|
13254
13345
|
* If you set this property to 0, the Condition menu does not include any matrix rows. Users still can specify conditions that use matrix rows but only with Manual Entry.
|
13255
13346
|
*
|
13256
|
-
* - `renderRemoveAsIcon`: `
|
13347
|
+
* - `renderRemoveAsIcon`: `boolean`\
|
13257
13348
|
* Disable this property if you want to render the Remove action in Dynamic Matrix as a button. Otherwise, the action is rendered as an icon. Default value: `true`.
|
13258
13349
|
*
|
13259
|
-
* - `columnWidthsByType`: `
|
13350
|
+
* - `columnWidthsByType`: `object`\
|
13260
13351
|
* An object that specifies fixed and minimum column width based on the column type.\
|
13261
13352
|
* Example: `settings.matrix.columnWidthsByType = { "tagbox": { minWidth: "240px", width: "300px" } }`
|
13262
13353
|
*
|
@@ -13307,11 +13398,11 @@ declare module "settings" {
|
|
13307
13398
|
*
|
13308
13399
|
* Nested properties:
|
13309
13400
|
*
|
13310
|
-
* - `maxPanelCount`: `
|
13401
|
+
* - `maxPanelCount`: `number`\
|
13311
13402
|
* A maximum number of panels in Dynamic Panel. Default value: 100.\
|
13312
13403
|
* You can specify this setting for an individual Dynamic Panel: [`maxPanelCount`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#maxPanelCount).
|
13313
13404
|
*
|
13314
|
-
* - `maxPanelCountInCondition`: `
|
13405
|
+
* - `maxPanelCountInCondition`: `number`\
|
13315
13406
|
* A maximum number of Dynamic Panel panels included in the Condition drop-down menu in Survey Creator. This menu is used to configure conditional survey logic. Default value: 1.\
|
13316
13407
|
* If you set this property to 0, the Condition menu does not include any panel questions. Users still can specify conditions that use panel questions but only with Manual Entry.
|
13317
13408
|
*/
|
@@ -13356,10 +13447,10 @@ declare module "settings" {
|
|
13356
13447
|
*
|
13357
13448
|
* Nested properties:
|
13358
13449
|
*
|
13359
|
-
* - `includeQuestionsWithHiddenNumber`: `
|
13450
|
+
* - `includeQuestionsWithHiddenNumber`: `boolean`\
|
13360
13451
|
* Specifies whether to number questions whose [`hideNumber`](https://surveyjs.io/form-library/documentation/api-reference/question#hideNumber) property is enabled. Default value: `false`.
|
13361
13452
|
*
|
13362
|
-
* - `includeQuestionsWithHiddenTitle`: `
|
13453
|
+
* - `includeQuestionsWithHiddenTitle`: `boolean`\
|
13363
13454
|
* Specifies whether to number questions whose [`titleLocation`](https://surveyjs.io/form-library/documentation/api-reference/question#titleLocation) property is set to `"hidden"`. Default value: `false`.
|
13364
13455
|
*/
|
13365
13456
|
numbering: {
|
@@ -13389,10 +13480,10 @@ declare module "settings" {
|
|
13389
13480
|
*
|
13390
13481
|
* Nested properties:
|
13391
13482
|
*
|
13392
|
-
* - `trimStrings`: `
|
13483
|
+
* - `trimStrings`: `boolean`\
|
13393
13484
|
* Specifies whether to remove whitespace from both ends of a string before the comparison. Default value: `true`.
|
13394
13485
|
*
|
13395
|
-
* - `caseSensitive`: `
|
13486
|
+
* - `caseSensitive`: `boolean`\
|
13396
13487
|
* Specifies whether to differentiate between capital and lower-case letters. Default value: `false`.
|
13397
13488
|
*/
|
13398
13489
|
comparator: {
|
@@ -13429,16 +13520,27 @@ declare module "settings" {
|
|
13429
13520
|
*/
|
13430
13521
|
tagboxCloseOnSelect: boolean;
|
13431
13522
|
/**
|
13432
|
-
* A property that allows you to display a custom confirm dialog
|
13523
|
+
* A property that allows you to display a custom confirm dialog.
|
13433
13524
|
*
|
13434
13525
|
* Set this property to a function that renders your custom dialog window. This function should return `true` if a user confirms an action or `false` otherwise.
|
13435
13526
|
* @param message A message to be displayed in the confirm dialog window.
|
13436
13527
|
*/
|
13437
13528
|
confirmActionFunc: (message: string) => boolean;
|
13438
13529
|
/**
|
13439
|
-
* A property that allows you to display a custom confirm dialog
|
13530
|
+
* A property that allows you to display a custom confirm dialog in async mode or activate the standard browser dialog.
|
13440
13531
|
*
|
13441
|
-
*
|
13532
|
+
* 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.
|
13533
|
+
*
|
13534
|
+
* To activate the standard browser dialog, set the `confirmActionAsync` property to a function that returns `false`. With this configuration, a survey falls back to the [`confirmActionFunc`](#confirmActionFunc) function, which renders the standard browser dialog by default.
|
13535
|
+
*
|
13536
|
+
* ```js
|
13537
|
+
* import { settings } from "survey-core";
|
13538
|
+
*
|
13539
|
+
* // Display the standard browser dialog
|
13540
|
+
* settings.confirmActionAsync = () => {
|
13541
|
+
* return false;
|
13542
|
+
* }
|
13543
|
+
* ```
|
13442
13544
|
* @param message A message to be displayed in the confirm dialog window.
|
13443
13545
|
* @param callback A callback function that should be called with `true` if a user confirms an action or `false` otherwise.
|
13444
13546
|
*/
|
@@ -13470,7 +13572,7 @@ declare module "settings" {
|
|
13470
13572
|
*
|
13471
13573
|
* Nested properties:
|
13472
13574
|
*
|
13473
|
-
* - `lifetime`: `
|
13575
|
+
* - `lifetime`: `number`\
|
13474
13576
|
* Specifies a time period during which a notification is displayed; measured in milliseconds.
|
13475
13577
|
*/
|
13476
13578
|
notifications: {
|
@@ -13683,6 +13785,7 @@ declare module "dropdownListModel" {
|
|
13683
13785
|
setSearchEnabled(newValue: boolean): void;
|
13684
13786
|
updateItems(): void;
|
13685
13787
|
onClick(event: any): void;
|
13788
|
+
chevronPointerDown(event: any): void;
|
13686
13789
|
protected onPropertyChangedHandler(sender: any, options: any): void;
|
13687
13790
|
protected focusItemOnClickAndPopup(): void;
|
13688
13791
|
onClear(event: any): void;
|
@@ -14702,6 +14805,7 @@ declare module "question_html" {
|
|
14702
14805
|
get locHtml(): LocalizableString;
|
14703
14806
|
get processedHtml(): string;
|
14704
14807
|
private processHtml;
|
14808
|
+
get isNewA11yStructure(): boolean;
|
14705
14809
|
}
|
14706
14810
|
}
|
14707
14811
|
declare module "question_radiogroup" {
|
@@ -15290,12 +15394,13 @@ declare module "surveyToc" {
|
|
15290
15394
|
export class TOCModel {
|
15291
15395
|
survey: SurveyModel;
|
15292
15396
|
constructor(survey: SurveyModel);
|
15293
|
-
isMobile: boolean;
|
15397
|
+
get isMobile(): boolean;
|
15294
15398
|
get containerCss(): string;
|
15295
15399
|
listModel: ListModel<Action>;
|
15296
15400
|
popupModel: PopupModel;
|
15297
15401
|
icon: string;
|
15298
15402
|
togglePopup: () => void;
|
15403
|
+
dispose(): void;
|
15299
15404
|
}
|
15300
15405
|
}
|
15301
15406
|
declare module "surveyProgress" {
|
@@ -15539,7 +15644,7 @@ declare module "question_custom" {
|
|
15539
15644
|
*
|
15540
15645
|
* - `question`: [Question](https://surveyjs.io/Documentation/Library?id=Question)\
|
15541
15646
|
* A custom question.
|
15542
|
-
* - `propertyName`: `
|
15647
|
+
* - `propertyName`: `string`\
|
15543
15648
|
* The name of the changed property.
|
15544
15649
|
* - `newValue`: `any`\
|
15545
15650
|
* A new value for the property.
|
@@ -15552,7 +15657,7 @@ declare module "question_custom" {
|
|
15552
15657
|
*
|
15553
15658
|
* - `question`: [Question](https://surveyjs.io/Documentation/Library?id=Question)\
|
15554
15659
|
* A custom question.
|
15555
|
-
* - `name`: `
|
15660
|
+
* - `name`: `string`\
|
15556
15661
|
* The question's [name](https://surveyjs.io/Documentation/Library?id=Question#name).
|
15557
15662
|
* - `newValue`: `any`\
|
15558
15663
|
* A new value for the question.
|
@@ -15567,7 +15672,7 @@ declare module "question_custom" {
|
|
15567
15672
|
*
|
15568
15673
|
* - `question`: [Question](https://surveyjs.io/Documentation/Library?id=Question)\
|
15569
15674
|
* A custom question.
|
15570
|
-
* - `name`: `
|
15675
|
+
* - `name`: `string`\
|
15571
15676
|
* The question's [name](https://surveyjs.io/Documentation/Library?id=Question#name).
|
15572
15677
|
* - `newValue`: `any`\
|
15573
15678
|
* A new value for the question.
|
@@ -15582,9 +15687,9 @@ declare module "question_custom" {
|
|
15582
15687
|
* A custom question.
|
15583
15688
|
* - `options.obj`: [ItemValue](https://surveyjs.io/Documentation/Library?id=itemvalue)\
|
15584
15689
|
* An `ItemValue` object.
|
15585
|
-
* - `options.propertyName`: `
|
15690
|
+
* - `options.propertyName`: `string`\
|
15586
15691
|
* The name of the property to which an array of `ItemValue` objects is assigned (for example, `"choices"` or `"rows"`).
|
15587
|
-
* - `options.name`: `
|
15692
|
+
* - `options.name`: `string`\
|
15588
15693
|
* The name of the changed property: `"text"` or `"value"`.
|
15589
15694
|
* - `options.newValue`: `any`\
|
15590
15695
|
* A new value for the property.
|
@@ -15676,7 +15781,7 @@ declare module "question_custom" {
|
|
15676
15781
|
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
15677
15782
|
onSurveyLoad(): void;
|
15678
15783
|
afterRenderQuestionElement(el: HTMLElement): void;
|
15679
|
-
|
15784
|
+
afterRenderCore(el: any): void;
|
15680
15785
|
protected onUpdateQuestionCssClasses(element: Question, css: any): void;
|
15681
15786
|
protected setQuestionValue(newValue: any, updateIsAnswered?: boolean): void;
|
15682
15787
|
protected setNewValue(newValue: any): void;
|
@@ -15720,7 +15825,7 @@ declare module "question_custom" {
|
|
15720
15825
|
protected onSetData(): void;
|
15721
15826
|
hasErrors(fireCallback?: boolean, rec?: any): boolean;
|
15722
15827
|
focus(onError?: boolean): void;
|
15723
|
-
|
15828
|
+
afterRenderCore(el: any): void;
|
15724
15829
|
get contentQuestion(): Question;
|
15725
15830
|
protected createQuestion(): Question;
|
15726
15831
|
onSurveyLoad(): void;
|
@@ -15780,74 +15885,6 @@ declare module "question_custom" {
|
|
15780
15885
|
private setAfterRenderCallbacks;
|
15781
15886
|
}
|
15782
15887
|
}
|
15783
|
-
declare module "popup-view-model" {
|
15784
|
-
import { Base } from "base";
|
15785
|
-
import { PopupModel } from "popup";
|
15786
|
-
import { CssClassBuilder } from "utils/cssClassBuilder";
|
15787
|
-
import { ActionContainer } from "actions/container";
|
15788
|
-
export const FOCUS_INPUT_SELECTOR = "input:not(:disabled):not([readonly]):not([type=hidden]),select:not(:disabled):not([readonly]),textarea:not(:disabled):not([readonly]), button:not(:disabled):not([readonly]), [tabindex]:not([tabindex^=\"-\"])";
|
15789
|
-
export class PopupBaseViewModel extends Base {
|
15790
|
-
private static SubscriptionId;
|
15791
|
-
private subscriptionId;
|
15792
|
-
protected popupSelector: string;
|
15793
|
-
protected fixedPopupContainer: string;
|
15794
|
-
protected containerSelector: string;
|
15795
|
-
protected scrollingContentSelector: string;
|
15796
|
-
protected prevActiveElement: HTMLElement;
|
15797
|
-
protected footerToolbarValue: ActionContainer;
|
15798
|
-
top: string;
|
15799
|
-
left: string;
|
15800
|
-
height: string;
|
15801
|
-
width: string;
|
15802
|
-
minWidth: string;
|
15803
|
-
isVisible: boolean;
|
15804
|
-
locale: string;
|
15805
|
-
get container(): HTMLElement;
|
15806
|
-
private containerElement;
|
15807
|
-
private createdContainer;
|
15808
|
-
getLocale(): string;
|
15809
|
-
protected hidePopup(): void;
|
15810
|
-
protected getStyleClass(): CssClassBuilder;
|
15811
|
-
protected getShowFooter(): boolean;
|
15812
|
-
protected getShowHeader(): boolean;
|
15813
|
-
protected getPopupHeaderTemplate(): string;
|
15814
|
-
protected createFooterActionBar(): void;
|
15815
|
-
protected resetDimensionsAndPositionStyleProperties(): void;
|
15816
|
-
protected onModelChanging(newModel: PopupModel): void;
|
15817
|
-
private setupModel;
|
15818
|
-
private _model;
|
15819
|
-
get model(): PopupModel;
|
15820
|
-
set model(model: PopupModel);
|
15821
|
-
constructor(model: PopupModel);
|
15822
|
-
get title(): string;
|
15823
|
-
get contentComponentName(): string;
|
15824
|
-
get contentComponentData(): any;
|
15825
|
-
get isModal(): boolean;
|
15826
|
-
get isFocusedContent(): boolean;
|
15827
|
-
get isFocusedContainer(): boolean;
|
15828
|
-
get showFooter(): boolean;
|
15829
|
-
get showHeader(): boolean;
|
15830
|
-
get popupHeaderTemplate(): string;
|
15831
|
-
get isOverlay(): boolean;
|
15832
|
-
get styleClass(): string;
|
15833
|
-
get cancelButtonText(): string;
|
15834
|
-
get footerToolbar(): ActionContainer;
|
15835
|
-
onKeyDown(event: any): void;
|
15836
|
-
private trapFocus;
|
15837
|
-
switchFocus(): void;
|
15838
|
-
updateOnShowing(): void;
|
15839
|
-
updateOnHiding(): void;
|
15840
|
-
private focusContainer;
|
15841
|
-
private focusFirstInput;
|
15842
|
-
clickOutside(event?: Event): void;
|
15843
|
-
cancel(): void;
|
15844
|
-
dispose(): void;
|
15845
|
-
initializePopupContainer(): void;
|
15846
|
-
setComponentElement(componentRoot: HTMLElement, targetElement?: HTMLElement | null): void;
|
15847
|
-
resetComponentElement(): void;
|
15848
|
-
protected preventScrollOuside(event: any, deltaY: number): void;
|
15849
|
-
}
|
15850
|
-
}
|
15851
15888
|
declare module "popup-dropdown-view-model" {
|
15852
15889
|
import { IPosition } from "utils/popup";
|
15853
15890
|
import { CssClassBuilder } from "utils/cssClassBuilder";
|
@@ -23865,6 +23902,7 @@ declare module "react/dropdown-base" {
|
|
23865
23902
|
export class SurveyQuestionDropdownBase<T extends Question> extends SurveyQuestionUncontrolledElement<T> {
|
23866
23903
|
inputElement: HTMLInputElement | null;
|
23867
23904
|
click: (event: any) => void;
|
23905
|
+
chevronPointerDown: (event: any) => void;
|
23868
23906
|
clear: (event: any) => void;
|
23869
23907
|
keyhandler: (event: any) => void;
|
23870
23908
|
blur: (event: any) => void;
|
@@ -23972,13 +24010,12 @@ declare module "react/reactquestion_file" {
|
|
23972
24010
|
protected renderFileDecorator(): JSX.Element;
|
23973
24011
|
protected renderChooseButton(): JSX.Element;
|
23974
24012
|
protected renderClearButton(className: string): JSX.Element | null;
|
23975
|
-
protected
|
24013
|
+
protected renderPreview(): JSX.Element;
|
23976
24014
|
protected renderLoadingIndicator(): JSX.Element;
|
23977
24015
|
protected renderVideo(): JSX.Element;
|
23978
|
-
protected renderPreview(): JSX.Element;
|
23979
24016
|
}
|
23980
24017
|
}
|
23981
|
-
declare module "react/components/file
|
24018
|
+
declare module "react/components/file/file-choose-button" {
|
23982
24019
|
import { ReactSurveyElement } from "react/reactquestion_element";
|
23983
24020
|
import { QuestionFileModel } from "entries/core";
|
23984
24021
|
export class SurveyFileChooseButton extends ReactSurveyElement {
|
@@ -23987,6 +24024,18 @@ declare module "react/components/file-actions/file-choose-button" {
|
|
23987
24024
|
render(): JSX.Element;
|
23988
24025
|
}
|
23989
24026
|
}
|
24027
|
+
declare module "react/components/file/file-preview" {
|
24028
|
+
import { SurveyElementBase } from "react/reactquestion_element";
|
24029
|
+
import { QuestionFileModel } from "entries/core";
|
24030
|
+
export class SurveyFilePreview extends SurveyElementBase<{
|
24031
|
+
question: QuestionFileModel;
|
24032
|
+
}, {}> {
|
24033
|
+
protected get question(): QuestionFileModel;
|
24034
|
+
protected renderFileSign(className: string, val: any): JSX.Element | null;
|
24035
|
+
protected renderElement(): JSX.Element | null;
|
24036
|
+
protected canRender(): boolean;
|
24037
|
+
}
|
24038
|
+
}
|
23990
24039
|
declare module "react/reactquestion_multipletext" {
|
23991
24040
|
import { SurveyQuestionElementBase } from "react/reactquestion_element";
|
23992
24041
|
import { SurveyQuestionAndErrorsWrapped } from "react/reactquestion";
|
@@ -24568,7 +24617,8 @@ declare module "entries/react-ui-model" {
|
|
24568
24617
|
export { SurveyQuestionMatrix, SurveyQuestionMatrixRow, } from "react/reactquestion_matrix";
|
24569
24618
|
export { SurveyQuestionHtml } from "react/reactquestion_html";
|
24570
24619
|
export { SurveyQuestionFile } from "react/reactquestion_file";
|
24571
|
-
export { SurveyFileChooseButton } from "react/components/file
|
24620
|
+
export { SurveyFileChooseButton } from "react/components/file/file-choose-button";
|
24621
|
+
export { SurveyFilePreview } from "react/components/file/file-preview";
|
24572
24622
|
export { SurveyQuestionMultipleText } from "react/reactquestion_multipletext";
|
24573
24623
|
export { SurveyQuestionRadiogroup, SurveyQuestionRadioItem } from "react/reactquestion_radiogroup";
|
24574
24624
|
export { SurveyQuestionText } from "react/reactquestion_text";
|