survey-react 1.11.13 → 1.12.1
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 +361 -339
- package/defaultV2.css.map +1 -1
- package/defaultV2.min.css +2 -2
- package/modern.css +27 -41
- package/modern.css.map +1 -1
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/survey.css +1 -1
- package/survey.min.css +1 -1
- package/survey.react.d.ts +169 -101
- package/survey.react.js +699 -331
- package/survey.react.js.map +1 -1
- package/survey.react.min.js +3 -3
package/survey.react.d.ts
CHANGED
@@ -72,6 +72,7 @@ declare module "packages/survey-core/src/helpers" {
|
|
72
72
|
static convertDateTimeToString(date: Date): string;
|
73
73
|
static convertValToQuestionVal(val: any, inputType?: string): any;
|
74
74
|
static compareVerions(ver1: string, ver2: string): number;
|
75
|
+
static isUrlYoutubeVideo(url: string): boolean;
|
75
76
|
}
|
76
77
|
}
|
77
78
|
declare module "packages/survey-core/src/localization/english" {
|
@@ -87,6 +88,7 @@ declare module "packages/survey-core/src/localization/english" {
|
|
87
88
|
refuseItemText: string;
|
88
89
|
dontKnowItemText: string;
|
89
90
|
selectAllItemText: string;
|
91
|
+
deselectAllItemText: string;
|
90
92
|
progressText: string;
|
91
93
|
indexText: string;
|
92
94
|
panelDynamicProgressText: string;
|
@@ -223,6 +225,7 @@ declare module "packages/survey-core/src/surveyStrings" {
|
|
223
225
|
refuseItemText: string;
|
224
226
|
dontKnowItemText: string;
|
225
227
|
selectAllItemText: string;
|
228
|
+
deselectAllItemText: string;
|
226
229
|
progressText: string;
|
227
230
|
indexText: string;
|
228
231
|
panelDynamicProgressText: string;
|
@@ -773,6 +776,7 @@ declare module "packages/survey-core/src/utils/animation" {
|
|
773
776
|
sync(newValue: T): void;
|
774
777
|
private cancelCallback;
|
775
778
|
cancel(): void;
|
779
|
+
cancelAnimations(): void;
|
776
780
|
}
|
777
781
|
export class AnimationBoolean extends AnimationProperty<boolean> {
|
778
782
|
protected animation: AnimationPropertyUtils;
|
@@ -929,6 +933,20 @@ declare module "packages/survey-core/src/utils/utils" {
|
|
929
933
|
}>;
|
930
934
|
mergedItems: Array<T>;
|
931
935
|
};
|
936
|
+
interface IVerticalDimensions {
|
937
|
+
paddingTop: string;
|
938
|
+
paddingBottom: string;
|
939
|
+
marginTop: string;
|
940
|
+
marginBottom: string;
|
941
|
+
heightTo: string;
|
942
|
+
borderTopWidth: string;
|
943
|
+
borderBottomWidth: string;
|
944
|
+
heightFrom: string;
|
945
|
+
}
|
946
|
+
export function getVerticalDimensions(el: HTMLElement): IVerticalDimensions;
|
947
|
+
export function setPropertiesOnElementForAnimation(el: HTMLElement, styles: any, prefix?: string): void;
|
948
|
+
export function prepareElementForVerticalAnimation(el: HTMLElement): void;
|
949
|
+
export function cleanHtmlElementAfterAnimation(el: HTMLElement): void;
|
932
950
|
export function roundTo2Decimals(number: number): number;
|
933
951
|
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, chooseFiles };
|
934
952
|
}
|
@@ -1059,6 +1077,7 @@ declare module "packages/survey-core/src/list" {
|
|
1059
1077
|
showSearchClearButton: boolean;
|
1060
1078
|
renderElements: boolean;
|
1061
1079
|
textWrapEnabled: boolean;
|
1080
|
+
itemComponent: string;
|
1062
1081
|
static INDENT: number;
|
1063
1082
|
static MINELEMENTCOUNT: number;
|
1064
1083
|
scrollHandler: (e?: any) => void;
|
@@ -1405,7 +1424,7 @@ declare module "packages/survey-core/src/actions/action" {
|
|
1405
1424
|
locStrsChanged(): void;
|
1406
1425
|
doAction(args: any): boolean;
|
1407
1426
|
private isMouseDown;
|
1408
|
-
doMouseDown(): void;
|
1427
|
+
doMouseDown(args: any): void;
|
1409
1428
|
doFocus(args: any): void;
|
1410
1429
|
private locStrChangedInPopupModel;
|
1411
1430
|
private locTitleChanged;
|
@@ -1446,7 +1465,7 @@ declare module "packages/survey-core/src/utils/responsivity-manager" {
|
|
1446
1465
|
private model;
|
1447
1466
|
private itemsSelector;
|
1448
1467
|
private dotsItemSize;
|
1449
|
-
private delayedUpdateFunction
|
1468
|
+
private delayedUpdateFunction;
|
1450
1469
|
private resizeObserver;
|
1451
1470
|
private isInitialized;
|
1452
1471
|
protected minDimensionConst: number;
|
@@ -1461,7 +1480,6 @@ declare module "packages/survey-core/src/utils/responsivity-manager" {
|
|
1461
1480
|
protected getAvailableSpace(): number;
|
1462
1481
|
protected calcItemSize(item: HTMLDivElement): number;
|
1463
1482
|
private calcMinDimension;
|
1464
|
-
private getRenderedVisibleActionsCount;
|
1465
1483
|
private calcItemsSizes;
|
1466
1484
|
protected calcActionDimensions(currentAction: Action, item: HTMLDivElement): void;
|
1467
1485
|
private get isContainerVisible();
|
@@ -1573,10 +1591,10 @@ declare module "packages/survey-core/src/defaultCss/defaultV2Css" {
|
|
1573
1591
|
edit: string;
|
1574
1592
|
};
|
1575
1593
|
panel: {
|
1576
|
-
|
1577
|
-
|
1578
|
-
|
1579
|
-
|
1594
|
+
contentEnter: string;
|
1595
|
+
contentLeave: string;
|
1596
|
+
enter: string;
|
1597
|
+
leave: string;
|
1580
1598
|
asPage: string;
|
1581
1599
|
number: string;
|
1582
1600
|
title: string;
|
@@ -1637,8 +1655,8 @@ declare module "packages/survey-core/src/defaultCss/defaultV2Css" {
|
|
1637
1655
|
footerButtonsContainer: string;
|
1638
1656
|
panelsContainer: string;
|
1639
1657
|
panelWrapperInRow: string;
|
1640
|
-
|
1641
|
-
|
1658
|
+
panelWrapperEnter: string;
|
1659
|
+
panelWrapperLeave: string;
|
1642
1660
|
panelWrapperList: string;
|
1643
1661
|
progressBtnIcon: string;
|
1644
1662
|
noEntriesPlaceholder: string;
|
@@ -1694,15 +1712,17 @@ declare module "packages/survey-core/src/defaultCss/defaultV2Css" {
|
|
1694
1712
|
row: string;
|
1695
1713
|
rowMultiple: string;
|
1696
1714
|
rowCompact: string;
|
1697
|
-
|
1698
|
-
|
1699
|
-
|
1715
|
+
rowEnter: string;
|
1716
|
+
rowDelayedEnter: string;
|
1717
|
+
rowLeave: string;
|
1718
|
+
rowReplace: string;
|
1700
1719
|
pageRow: string;
|
1701
1720
|
question: {
|
1702
|
-
|
1703
|
-
|
1704
|
-
|
1705
|
-
|
1721
|
+
contentEnter: string;
|
1722
|
+
contentLeave: string;
|
1723
|
+
enter: string;
|
1724
|
+
leave: string;
|
1725
|
+
mobile: string;
|
1706
1726
|
mainRoot: string;
|
1707
1727
|
flowRoot: string;
|
1708
1728
|
withFrame: string;
|
@@ -1788,6 +1808,8 @@ declare module "packages/survey-core/src/defaultCss/defaultV2Css" {
|
|
1788
1808
|
rootRow: string;
|
1789
1809
|
rootMultiColumn: string;
|
1790
1810
|
item: string;
|
1811
|
+
itemEnter: string;
|
1812
|
+
itemLeave: string;
|
1791
1813
|
itemOnError: string;
|
1792
1814
|
itemSelectAll: string;
|
1793
1815
|
itemNone: string;
|
@@ -1818,6 +1840,8 @@ declare module "packages/survey-core/src/defaultCss/defaultV2Css" {
|
|
1818
1840
|
itemInline: string;
|
1819
1841
|
label: string;
|
1820
1842
|
labelChecked: string;
|
1843
|
+
itemEnter: string;
|
1844
|
+
itemLeave: string;
|
1821
1845
|
itemDisabled: string;
|
1822
1846
|
itemReadOnly: string;
|
1823
1847
|
itemPreview: string;
|
@@ -1923,6 +1947,8 @@ declare module "packages/survey-core/src/defaultCss/defaultV2Css" {
|
|
1923
1947
|
other: string;
|
1924
1948
|
onError: string;
|
1925
1949
|
label: string;
|
1950
|
+
itemEnter: string;
|
1951
|
+
itemLeave: string;
|
1926
1952
|
item: string;
|
1927
1953
|
itemDisabled: string;
|
1928
1954
|
itemChecked: string;
|
@@ -2026,8 +2052,9 @@ declare module "packages/survey-core/src/defaultCss/defaultV2Css" {
|
|
2026
2052
|
errorsCellBottom: string;
|
2027
2053
|
itemCell: string;
|
2028
2054
|
row: string;
|
2029
|
-
|
2030
|
-
|
2055
|
+
rowDelayedEnter: string;
|
2056
|
+
rowEnter: string;
|
2057
|
+
rowLeave: string;
|
2031
2058
|
expandedRow: string;
|
2032
2059
|
rowHasPanel: string;
|
2033
2060
|
rowHasEndActions: string;
|
@@ -2067,8 +2094,9 @@ declare module "packages/survey-core/src/defaultCss/defaultV2Css" {
|
|
2067
2094
|
cell: string;
|
2068
2095
|
cellResponsiveTitle: string;
|
2069
2096
|
row: string;
|
2070
|
-
|
2071
|
-
|
2097
|
+
rowDelayedEnter: string;
|
2098
|
+
rowEnter: string;
|
2099
|
+
rowLeave: string;
|
2072
2100
|
rowHasPanel: string;
|
2073
2101
|
rowHasEndActions: string;
|
2074
2102
|
expandedRow: string;
|
@@ -2351,6 +2379,8 @@ declare module "packages/survey-core/src/defaultCss/defaultV2Css" {
|
|
2351
2379
|
itemHover: string;
|
2352
2380
|
itemControl: string;
|
2353
2381
|
itemDecorator: string;
|
2382
|
+
itemEnter: string;
|
2383
|
+
itemLeave: string;
|
2354
2384
|
cleanButton: string;
|
2355
2385
|
cleanButtonSvg: string;
|
2356
2386
|
cleanButtonIconId: string;
|
@@ -3053,7 +3083,7 @@ declare module "packages/survey-core/src/question_custom" {
|
|
3053
3083
|
protected onUpdateQuestionCssClasses(element: Question, css: any): void;
|
3054
3084
|
protected setQuestionValue(newValue: any, updateIsAnswered?: boolean): void;
|
3055
3085
|
protected setNewValue(newValue: any): void;
|
3056
|
-
protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean): void;
|
3086
|
+
protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean, fireCallback: boolean): void;
|
3057
3087
|
getSurveyData(): ISurveyData;
|
3058
3088
|
getTextProcessor(): ITextProcessor;
|
3059
3089
|
getValue(name: string): any;
|
@@ -3586,6 +3616,7 @@ declare module "packages/survey-core/src/panel" {
|
|
3586
3616
|
getDragDropInfo(): any;
|
3587
3617
|
private updateRowsOnElementRemoved;
|
3588
3618
|
updateRowsRemoveElementFromRow(element: IElement, row: QuestionRowModel): void;
|
3619
|
+
disableLazyRenderingBeforeElement(el?: IElement): void;
|
3589
3620
|
findRowByElement(el: IElement): QuestionRowModel;
|
3590
3621
|
elementWidthChanged(el: IElement): void;
|
3591
3622
|
get processedTitle(): string;
|
@@ -3828,6 +3859,8 @@ declare module "packages/survey-core/src/panel" {
|
|
3828
3859
|
protected getHasFrameV2(): boolean;
|
3829
3860
|
protected getIsNested(): boolean;
|
3830
3861
|
get showPanelAsPage(): boolean;
|
3862
|
+
private forcusFirstQuestionOnExpand;
|
3863
|
+
expand(focusFirstQuestion?: boolean): void;
|
3831
3864
|
protected onElementExpanded(elementIsRendered: boolean): void;
|
3832
3865
|
protected getCssRoot(cssClasses: {
|
3833
3866
|
[index: string]: string;
|
@@ -3910,7 +3943,7 @@ declare module "packages/survey-core/src/question_file" {
|
|
3910
3943
|
set waitForUpload(val: boolean);
|
3911
3944
|
clearValue(keepComment?: boolean): void;
|
3912
3945
|
clearOnDeletingContainer(): void;
|
3913
|
-
protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean): void;
|
3946
|
+
protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean, fireCallback: boolean): void;
|
3914
3947
|
protected uploadFiles(files: File[]): void;
|
3915
3948
|
protected loadPreview(newValue: any): void;
|
3916
3949
|
protected onChangeQuestionValue(newValue: any): void;
|
@@ -4219,6 +4252,7 @@ declare module "packages/survey-core/src/choicesRestful" {
|
|
4219
4252
|
getCustomPropertiesNames(): Array<string>;
|
4220
4253
|
private getCustomPropertyName;
|
4221
4254
|
private getCustomProperties;
|
4255
|
+
private getAllPropertiesNames;
|
4222
4256
|
setData(json: any): void;
|
4223
4257
|
getData(): any;
|
4224
4258
|
/**
|
@@ -4340,6 +4374,7 @@ declare module "packages/survey-core/src/question_baseselect" {
|
|
4340
4374
|
export class QuestionSelectBase extends Question {
|
4341
4375
|
visibleChoicesChangedCallback: () => void;
|
4342
4376
|
loadedChoicesFromServerCallback: () => void;
|
4377
|
+
renderedChoicesChangedCallback: () => void;
|
4343
4378
|
private filteredChoicesValue;
|
4344
4379
|
private conditionChoicesVisibleIfRunner;
|
4345
4380
|
private conditionChoicesEnableIfRunner;
|
@@ -4544,6 +4579,7 @@ declare module "packages/survey-core/src/question_baseselect" {
|
|
4544
4579
|
protected hasUnknownValue(val: any, includeOther?: boolean, isFilteredChoices?: boolean, checkEmptyValue?: boolean): boolean;
|
4545
4580
|
protected hasUnknownValueItem(val: any, includeOther?: boolean, isFilteredChoices?: boolean, checkEmptyValue?: boolean): boolean;
|
4546
4581
|
protected isValueDisabled(val: any): boolean;
|
4582
|
+
endLoadingFromJson(): void;
|
4547
4583
|
clearIncorrectValuesCallback: () => void;
|
4548
4584
|
/**
|
4549
4585
|
* Configures access to a RESTful service that returns choice items. Refer to the [`ChoicesRestful`](https://surveyjs.io/form-library/documentation/choicesrestful) class description for more information. You can also specify additional application-wide settings using the [`settings.web`](https://surveyjs.io/form-library/documentation/api-reference/settings#web) object.
|
@@ -4746,7 +4782,7 @@ declare module "packages/survey-core/src/question_baseselect" {
|
|
4746
4782
|
supportRefuse(): boolean;
|
4747
4783
|
supportDontKnow(): boolean;
|
4748
4784
|
protected isSupportProperty(propName: string): boolean;
|
4749
|
-
protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean): void;
|
4785
|
+
protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean, fireCallback: boolean): void;
|
4750
4786
|
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
4751
4787
|
protected setSurveyCore(value: ISurvey): void;
|
4752
4788
|
getStoreOthersAsComment(): boolean;
|
@@ -4803,6 +4839,13 @@ declare module "packages/survey-core/src/question_baseselect" {
|
|
4803
4839
|
protected getItemClassCore(item: any, options: any): string;
|
4804
4840
|
getLabelClass(item: ItemValue): string;
|
4805
4841
|
getControlLabelClass(item: ItemValue): string;
|
4842
|
+
_renderedChoices: Array<ItemValue>;
|
4843
|
+
onGetRenderedChoicesCallback?: (visibleChoices: Array<ItemValue>) => Array<ItemValue>;
|
4844
|
+
private updateRenderedChoices;
|
4845
|
+
private getRenderedChoicesAnimationOptions;
|
4846
|
+
private renderedChoicesAnimation;
|
4847
|
+
get renderedChoices(): Array<ItemValue>;
|
4848
|
+
set renderedChoices(val: Array<ItemValue>);
|
4806
4849
|
private headItemsCount;
|
4807
4850
|
private footItemsCount;
|
4808
4851
|
get headItems(): ItemValue[];
|
@@ -5141,7 +5184,7 @@ declare module "packages/survey-core/src/question_expression" {
|
|
5141
5184
|
}
|
5142
5185
|
declare module "packages/survey-core/src/question_matrixdropdowncolumn" {
|
5143
5186
|
import { Question } from "packages/survey-core/src/question";
|
5144
|
-
import { Base } from "packages/survey-core/src/base";
|
5187
|
+
import { Base, ArrayChanges } from "packages/survey-core/src/base";
|
5145
5188
|
import { ISurvey, IWrapperObject } from "packages/survey-core/src/base-interfaces";
|
5146
5189
|
import { ItemValue } from "packages/survey-core/src/itemvalue";
|
5147
5190
|
import { ILocalizableOwner, LocalizableString } from "packages/survey-core/src/localizablestring";
|
@@ -5476,7 +5519,7 @@ declare module "packages/survey-core/src/question_matrixdropdowncolumn" {
|
|
5476
5519
|
private setParentQuestionToTemplate;
|
5477
5520
|
private previousChoicesId;
|
5478
5521
|
protected setQuestionProperties(question: Question, onUpdateJson?: (json: any) => any): void;
|
5479
|
-
protected propertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
5522
|
+
protected propertyValueChanged(name: string, oldValue: any, newValue: any, arrayChanges?: ArrayChanges, target?: Base): void;
|
5480
5523
|
private doItemValuePropertyChanged;
|
5481
5524
|
private doShowInMultipleColumnsChanged;
|
5482
5525
|
private doColumnVisibilityChanged;
|
@@ -6077,7 +6120,7 @@ declare module "packages/survey-core/src/question_matrixdynamic" {
|
|
6077
6120
|
protected getConditionObjectsRowIndeces(): Array<number>;
|
6078
6121
|
supportGoNextPageAutomatic(): boolean;
|
6079
6122
|
get hasRowText(): boolean;
|
6080
|
-
protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean): void;
|
6123
|
+
protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean, fireCallback: boolean): void;
|
6081
6124
|
private hasErrorInMinRows;
|
6082
6125
|
protected getUniqueColumnsNames(): Array<string>;
|
6083
6126
|
protected generateRows(): Array<MatrixDynamicRowModel>;
|
@@ -6388,6 +6431,7 @@ declare module "packages/survey-core/src/question_paneldynamic" {
|
|
6388
6431
|
get hasSingleInput(): boolean;
|
6389
6432
|
get isContainer(): boolean;
|
6390
6433
|
getFirstQuestionToFocus(withError: boolean): Question;
|
6434
|
+
protected getFirstInputElementId(): string;
|
6391
6435
|
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
6392
6436
|
private assignOnPropertyChangedToTemplate;
|
6393
6437
|
private addOnPropertyChangedCallback;
|
@@ -6679,6 +6723,7 @@ declare module "packages/survey-core/src/question_paneldynamic" {
|
|
6679
6723
|
*/
|
6680
6724
|
get allowAddPanel(): boolean;
|
6681
6725
|
set allowAddPanel(val: boolean);
|
6726
|
+
get addButtonId(): string;
|
6682
6727
|
/**
|
6683
6728
|
* Specifies the position of newly added panels.
|
6684
6729
|
*
|
@@ -6843,12 +6888,11 @@ declare module "packages/survey-core/src/question_paneldynamic" {
|
|
6843
6888
|
getProgressInfo(): IProgressInfo;
|
6844
6889
|
private isRowEmpty;
|
6845
6890
|
/**
|
6846
|
-
*
|
6847
|
-
*
|
6848
|
-
*
|
6891
|
+
* Adds a new panel based on the [template](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#template).
|
6892
|
+
*
|
6893
|
+
* Unlike the [`addPanel()`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#addPanel) method, `addPanelUI()` performs additional actions: checks whether a new panel [can be added](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#canAddPanel), expands and focuses the new panel, and runs animated effects.
|
6849
6894
|
* @see panelCount
|
6850
6895
|
* @see panels
|
6851
|
-
* @see canAddPanel
|
6852
6896
|
*/
|
6853
6897
|
addPanelUI(): PanelModel;
|
6854
6898
|
private focusNewPanelCallback;
|
@@ -6866,13 +6910,11 @@ declare module "packages/survey-core/src/question_paneldynamic" {
|
|
6866
6910
|
private canLeaveCurrentPanel;
|
6867
6911
|
private copyValue;
|
6868
6912
|
/**
|
6869
|
-
*
|
6870
|
-
* @param value a panel or panel index
|
6871
|
-
* @see removePanel
|
6872
|
-
* @see confirmDelete
|
6873
|
-
* @see confirmDeleteText
|
6874
|
-
* @see canRemovePanel
|
6913
|
+
* Deletes a panel from the [`panels`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#panels) array.
|
6875
6914
|
*
|
6915
|
+
* Unlike the [`removePanel()`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#removePanel) method, `removePanelUI()` performs additional actions: checks whether the panel [can be removed](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#canRemovePanel) and displays a confirmation dialog (if the [`confirmDelete`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#confirmDelete) property is enabled).
|
6916
|
+
* @param value A `PanelModel` instance or zero-based panel index.
|
6917
|
+
* @see addPanelUI
|
6876
6918
|
*/
|
6877
6919
|
removePanelUI(value: any): void;
|
6878
6920
|
isRequireConfirmOnDelete(val: any): boolean;
|
@@ -6885,13 +6927,12 @@ declare module "packages/survey-core/src/question_paneldynamic" {
|
|
6885
6927
|
* Switches Dynamic Panel to the previous panel.
|
6886
6928
|
*/
|
6887
6929
|
goToPrevPanel(): void;
|
6930
|
+
private removedPanelIndex;
|
6888
6931
|
/**
|
6889
|
-
*
|
6890
|
-
* @param value
|
6891
|
-
* @see
|
6892
|
-
* @see template
|
6932
|
+
* Deletes a panel from the [`panels`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#panels) array.
|
6933
|
+
* @param value A `PanelModel` instance or zero-based panel index.
|
6934
|
+
* @see addPanel
|
6893
6935
|
*/
|
6894
|
-
private removedPanelIndex;
|
6895
6936
|
removePanel(value: any): void;
|
6896
6937
|
private getVisualPanelIndex;
|
6897
6938
|
private getPanelVisibleIndexById;
|
@@ -6911,6 +6952,7 @@ declare module "packages/survey-core/src/question_paneldynamic" {
|
|
6911
6952
|
private hasPanelBuildFirstTime;
|
6912
6953
|
private isBuildingPanelsFirstTime;
|
6913
6954
|
private buildPanelsFirstTime;
|
6955
|
+
private get showAddPanelButton();
|
6914
6956
|
private get wasNotRenderedInSurvey();
|
6915
6957
|
private get canBuildPanels();
|
6916
6958
|
onFirstRendering(): void;
|
@@ -6995,6 +7037,7 @@ declare module "packages/survey-core/src/question_paneldynamic" {
|
|
6995
7037
|
get showNavigation(): boolean;
|
6996
7038
|
showSeparator(index: number): boolean;
|
6997
7039
|
protected calcCssClasses(css: any): any;
|
7040
|
+
protected onMobileChanged(): void;
|
6998
7041
|
}
|
6999
7042
|
}
|
7000
7043
|
declare module "packages/survey-core/src/question_signaturepad" {
|
@@ -7621,23 +7664,23 @@ declare module "packages/survey-core/src/survey-events-api" {
|
|
7621
7664
|
/**
|
7622
7665
|
* An object with the following structure:
|
7623
7666
|
*
|
7624
|
-
*
|
7625
|
-
*
|
7626
|
-
*
|
7627
|
-
*
|
7628
|
-
*
|
7629
|
-
*
|
7667
|
+
* ```js
|
7668
|
+
* {
|
7669
|
+
* AnswersCount: Number, // A total number of posted answers to the question
|
7670
|
+
* QuestionResult: Object // All unique answers to the question and their number
|
7671
|
+
* }
|
7672
|
+
* ```
|
7630
7673
|
*/
|
7631
7674
|
data: any;
|
7632
7675
|
/**
|
7633
7676
|
* An array of objects with the following structure:
|
7634
7677
|
*
|
7635
|
-
*
|
7636
|
-
*
|
7637
|
-
*
|
7638
|
-
*
|
7639
|
-
*
|
7640
|
-
*
|
7678
|
+
* ```js
|
7679
|
+
* {
|
7680
|
+
* name: String, // A unique answer to the question
|
7681
|
+
* value: Number // The number of user responses with this answer
|
7682
|
+
* }
|
7683
|
+
* ```
|
7641
7684
|
*/
|
7642
7685
|
dataList: Array<any>;
|
7643
7686
|
}
|
@@ -8223,6 +8266,16 @@ declare module "packages/survey-core/src/survey-events-api" {
|
|
8223
8266
|
export interface ElementWrapperComponentDataEvent extends ElementWrapperComponentEventMixin {
|
8224
8267
|
data: any;
|
8225
8268
|
}
|
8269
|
+
export interface ResizeEvent {
|
8270
|
+
/**
|
8271
|
+
* The current survey width in pixels.
|
8272
|
+
*/
|
8273
|
+
width: number;
|
8274
|
+
/**
|
8275
|
+
* The current survey height in pixels.
|
8276
|
+
*/
|
8277
|
+
height: number;
|
8278
|
+
}
|
8226
8279
|
}
|
8227
8280
|
declare module "packages/survey-core/src/drag-drop-page-helper-v1" {
|
8228
8281
|
import { IElement, ISurveyElement } from "packages/survey-core/src/base-interfaces";
|
@@ -8654,6 +8707,7 @@ declare module "packages/survey-core/src/mask/mask_base" {
|
|
8654
8707
|
getUnmaskedValue(src: string): any;
|
8655
8708
|
getMaskedValue(src: any): string;
|
8656
8709
|
getTextAlignment(): "left" | "right" | "auto";
|
8710
|
+
getTypeForExpressions(): string;
|
8657
8711
|
}
|
8658
8712
|
}
|
8659
8713
|
declare module "packages/survey-core/src/mask/input_element_adapter" {
|
@@ -8828,7 +8882,7 @@ declare module "packages/survey-core/src/question_text" {
|
|
8828
8882
|
protected valueForSurveyCore(val: any): any;
|
8829
8883
|
protected valueFromDataCore(val: any): any;
|
8830
8884
|
private dateValidationMessage;
|
8831
|
-
protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean): void;
|
8885
|
+
protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean, fireCallback: boolean): void;
|
8832
8886
|
protected canSetValueToSurvey(): boolean;
|
8833
8887
|
protected convertFuncValuetoQuestionValue(val: any): any;
|
8834
8888
|
private getMinMaxErrorText;
|
@@ -9232,7 +9286,7 @@ declare module "packages/survey-core/src/question_multipletext" {
|
|
9232
9286
|
}
|
9233
9287
|
}
|
9234
9288
|
declare module "packages/survey-core/src/header" {
|
9235
|
-
import { Base } from "packages/survey-core/src/base";
|
9289
|
+
import { Base, ArrayChanges } from "packages/survey-core/src/base";
|
9236
9290
|
import { HorizontalAlignment, VerticalAlignment } from "packages/survey-core/src/base-interfaces";
|
9237
9291
|
import { SurveyModel } from "packages/survey-core/src/survey";
|
9238
9292
|
import { ITheme } from "packages/survey-core/src/themes";
|
@@ -9311,7 +9365,7 @@ declare module "packages/survey-core/src/header" {
|
|
9311
9365
|
backgroundImage: string;
|
9312
9366
|
backgroundSize: string;
|
9313
9367
|
};
|
9314
|
-
protected propertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
9368
|
+
protected propertyValueChanged(name: string, oldValue: any, newValue: any, arrayChanges?: ArrayChanges, target?: Base): void;
|
9315
9369
|
calculateActualHeight(logoHeight: number, titleHeight: number, descriptionHeight: number): number;
|
9316
9370
|
processResponsiveness(width: number): void;
|
9317
9371
|
get hasBackground(): boolean;
|
@@ -9426,7 +9480,7 @@ declare module "packages/survey-core/src/survey" {
|
|
9426
9480
|
import { ActionContainer } from "packages/survey-core/src/actions/container";
|
9427
9481
|
import { QuestionPanelDynamicModel } from "packages/survey-core/src/question_paneldynamic";
|
9428
9482
|
import { Notifier } from "packages/survey-core/src/notifier";
|
9429
|
-
import { TriggerExecutedEvent, CompletingEvent, CompleteEvent, ShowingPreviewEvent, NavigateToUrlEvent, CurrentPageChangingEvent, CurrentPageChangedEvent, ValueChangingEvent, ValueChangedEvent, VariableChangedEvent, QuestionVisibleChangedEvent, PageVisibleChangedEvent, PanelVisibleChangedEvent, QuestionCreatedEvent, QuestionAddedEvent, QuestionRemovedEvent, PanelAddedEvent, PanelRemovedEvent, PageAddedEvent, ValidateQuestionEvent, SettingQuestionErrorsEvent, ValidatePanelEvent, ErrorCustomTextEvent, ValidatedErrorsOnCurrentPageEvent, ProcessHtmlEvent, GetQuestionTitleEvent, GetTitleTagNameEvent, GetQuestionNoEvent, ProgressTextEvent, TextMarkdownEvent,
|
9483
|
+
import { TriggerExecutedEvent, CompletingEvent, CompleteEvent, ShowingPreviewEvent, NavigateToUrlEvent, CurrentPageChangingEvent, CurrentPageChangedEvent, ValueChangingEvent, ValueChangedEvent, VariableChangedEvent, QuestionVisibleChangedEvent, PageVisibleChangedEvent, PanelVisibleChangedEvent, QuestionCreatedEvent, QuestionAddedEvent, QuestionRemovedEvent, PanelAddedEvent, PanelRemovedEvent, PageAddedEvent, ValidateQuestionEvent, SettingQuestionErrorsEvent, ValidatePanelEvent, ErrorCustomTextEvent, ValidatedErrorsOnCurrentPageEvent, ProcessHtmlEvent, GetQuestionTitleEvent, GetTitleTagNameEvent, GetQuestionNoEvent, ProgressTextEvent, TextMarkdownEvent, SendResultEvent, GetResultEvent, UploadFilesEvent, DownloadFileEvent, ClearFilesEvent, LoadChoicesFromServerEvent, ProcessTextValueEvent, UpdateQuestionCssClassesEvent, UpdatePanelCssClassesEvent, UpdatePageCssClassesEvent, UpdateChoiceItemCssEvent, AfterRenderSurveyEvent, AfterRenderPageEvent, AfterRenderQuestionEvent, AfterRenderQuestionInputEvent, AfterRenderPanelEvent, FocusInQuestionEvent, FocusInPanelEvent, ShowingChoiceItemEvent, ChoicesLazyLoadEvent, GetChoiceDisplayValueEvent, MatrixRowAddedEvent, MatrixBeforeRowAddedEvent, MatrixRowRemovingEvent, MatrixRowRemovedEvent, MatrixAllowRemoveRowEvent, MatrixDetailPanelVisibleChangedEvent, MatrixCellCreatingEvent, MatrixCellCreatedEvent, MatrixAfterCellRenderEvent, MatrixCellValueChangedEvent, MatrixCellValueChangingEvent, MatrixCellValidateEvent, DynamicPanelModifiedEvent, DynamicPanelRemovingEvent, DynamicPanelItemValueChangedEvent, DynamicPanelGetTabTitleEvent, DynamicPanelCurrentIndexChangedEvent, IsAnswerCorrectEvent, DragDropAllowEvent, ScrollingElementToTopEvent, GetQuestionTitleActionsEvent, GetPanelTitleActionsEvent, GetPageTitleActionsEvent, GetPanelFooterActionsEvent, GetMatrixRowActionsEvent, ElementContentVisibilityChangedEvent, GetExpressionDisplayValueEvent, ServerValidateQuestionsEvent, MultipleTextItemAddedEvent, MatrixColumnAddedEvent, GetQuestionDisplayValueEvent, PopupVisibleChangedEvent, ChoicesSearchEvent, OpenFileChooserEvent, OpenDropdownMenuEvent, ResizeEvent } from "packages/survey-core/src/survey-events-api";
|
9430
9484
|
import { QuestionMatrixDropdownModelBase } from "packages/survey-core/src/question_matrixdropdownbase";
|
9431
9485
|
import { QuestionMatrixDynamicModel } from "packages/survey-core/src/question_matrixdynamic";
|
9432
9486
|
import { QuestionFileModel } from "packages/survey-core/src/question_file";
|
@@ -9756,7 +9810,7 @@ declare module "packages/survey-core/src/survey" {
|
|
9756
9810
|
* [View Demo](https://surveyjs.io/form-library/examples/edit-survey-questions-markdown/ (linkStyle))
|
9757
9811
|
*/
|
9758
9812
|
onTextMarkdown: EventBase<SurveyModel, TextMarkdownEvent>;
|
9759
|
-
onTextRenderAs: EventBase<SurveyModel,
|
9813
|
+
onTextRenderAs: EventBase<SurveyModel, any>;
|
9760
9814
|
/**
|
9761
9815
|
* An event that is raised after a request to save survey results on [SurveyJS Service](https://api.surveyjs.io/) has been completed. Use this event to find out if the results have been saved successfully.
|
9762
9816
|
*/
|
@@ -9864,7 +9918,7 @@ declare module "packages/survey-core/src/survey" {
|
|
9864
9918
|
* [View Demo](https://surveyjs.io/form-library/examples/survey-animation/ (linkStyle))
|
9865
9919
|
*/
|
9866
9920
|
onAfterRenderSurvey: EventBase<SurveyModel, AfterRenderSurveyEvent>;
|
9867
|
-
onAfterRenderHeader: EventBase<SurveyModel,
|
9921
|
+
onAfterRenderHeader: EventBase<SurveyModel, any>;
|
9868
9922
|
/**
|
9869
9923
|
* An event that is raised after a page is rendered to the DOM. Use it to modify page markup.
|
9870
9924
|
*
|
@@ -10041,7 +10095,7 @@ declare module "packages/survey-core/src/survey" {
|
|
10041
10095
|
* @see startTimer
|
10042
10096
|
*/
|
10043
10097
|
onTimer: EventBase<SurveyModel, {}>;
|
10044
|
-
onTimerPanelInfoText: EventBase<SurveyModel,
|
10098
|
+
onTimerPanelInfoText: EventBase<SurveyModel, any>;
|
10045
10099
|
/**
|
10046
10100
|
* An event that is raised after an item value is changed in a panel within a [Dynamic Panel](https://surveyjs.io/form-library/examples/questiontype-paneldynamic/) question.
|
10047
10101
|
*/
|
@@ -10129,8 +10183,8 @@ declare module "packages/survey-core/src/survey" {
|
|
10129
10183
|
* This event can be raised for [Single-](https://surveyjs.io/form-library/documentation/api-reference/dropdown-menu-model) and [Multi-Select Dropdown](https://surveyjs.io/form-library/documentation/api-reference/dropdown-tag-box-model) questions, [Rating Scale](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model) questions [rendered as drop-down menus](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#displayMode), and [Multi-Select Matrix](https://surveyjs.io/form-library/documentation/api-reference/matrix-table-with-dropdown-list) questions that contain columns of the `"dropdown"` or `"tagbox"` [`cellType`](https://surveyjs.io/form-library/documentation/api-reference/matrix-table-with-dropdown-list#cellType). Handle this event to change the drop-down menu type for specific questions or device types.
|
10130
10184
|
*/
|
10131
10185
|
onOpenDropdownMenu: EventBase<SurveyModel, OpenDropdownMenuEvent>;
|
10132
|
-
onElementWrapperComponentName: EventBase<SurveyModel,
|
10133
|
-
onElementWrapperComponentData: EventBase<SurveyModel,
|
10186
|
+
onElementWrapperComponentName: EventBase<SurveyModel, any>;
|
10187
|
+
onElementWrapperComponentData: EventBase<SurveyModel, any>;
|
10134
10188
|
constructor(jsonObj?: any, renderedElement?: any);
|
10135
10189
|
processClosedPopup(question: IQuestion, popupModel: PopupModel<any>): void;
|
10136
10190
|
protected createTryAgainAction(): IAction;
|
@@ -10204,6 +10258,7 @@ declare module "packages/survey-core/src/survey" {
|
|
10204
10258
|
lazyRenderingFirstBatchSizeValue: number;
|
10205
10259
|
get lazyRenderingFirstBatchSize(): number;
|
10206
10260
|
set lazyRenderingFirstBatchSize(val: number);
|
10261
|
+
disableLazyRenderingBeforeElement(el: IElement): void;
|
10207
10262
|
private updateLazyRenderingRowsOnRemovingElements;
|
10208
10263
|
/**
|
10209
10264
|
* A list of triggers in the survey.
|
@@ -11584,6 +11639,10 @@ declare module "packages/survey-core/src/survey" {
|
|
11584
11639
|
getRootCss(): string;
|
11585
11640
|
private resizeObserver;
|
11586
11641
|
afterRenderSurvey(htmlElement: any): void;
|
11642
|
+
/**
|
11643
|
+
* An event that is raised when the survey's width or height is changed.
|
11644
|
+
*/
|
11645
|
+
onResize: EventBase<SurveyModel, ResizeEvent>;
|
11587
11646
|
private processResponsiveness;
|
11588
11647
|
triggerResponsiveness(hard: boolean): void;
|
11589
11648
|
destroyResizeObserver(): void;
|
@@ -11686,36 +11745,6 @@ declare module "packages/survey-core/src/survey" {
|
|
11686
11745
|
* @see downloadFile
|
11687
11746
|
*/
|
11688
11747
|
uploadFiles(question: QuestionFileModel | QuestionSignaturePadModel, name: string, files: File[], callback: (data: any | Array<any>, errors?: any | Array<any>) => any): void;
|
11689
|
-
/**
|
11690
|
-
* Downloads a file from a server.
|
11691
|
-
*
|
11692
|
-
* The following code shows how to call this method:
|
11693
|
-
*
|
11694
|
-
* ```js
|
11695
|
-
* const question = survey.getQuestionByName("myFileQuestion");
|
11696
|
-
* survey.downloadFile(
|
11697
|
-
* question,
|
11698
|
-
* question.name,
|
11699
|
-
* // Download the first uploaded file
|
11700
|
-
* question.value[0],
|
11701
|
-
* (status, data) => {
|
11702
|
-
* if (status === "success") {
|
11703
|
-
* // Use `data` to retrieve the file
|
11704
|
-
* }
|
11705
|
-
* if (status === "error") {
|
11706
|
-
* // Handle error
|
11707
|
-
* }
|
11708
|
-
* }
|
11709
|
-
* );
|
11710
|
-
* ```
|
11711
|
-
*
|
11712
|
-
* @param question A [File Upload question instance](https://surveyjs.io/form-library/documentation/api-reference/file-model).
|
11713
|
-
* @param questionName The File Upload question's [`name`](https://surveyjs.io/form-library/documentation/api-reference/file-model#name).
|
11714
|
-
* @param fileValue An object from File Upload's [`value`](https://surveyjs.io/form-library/documentation/api-reference/file-model#value) array. This object contains metadata about the file you want to download.
|
11715
|
-
* @param callback A callback function that allows you to get the download status (`"success"` or `"error"`) and the file identifier (URL, file name, etc.) that you can use to retrieve the file.
|
11716
|
-
* @see onDownloadFile
|
11717
|
-
* @see uploadFiles
|
11718
|
-
*/
|
11719
11748
|
downloadFile(question: QuestionFileModel, questionName: string, fileValue: any, callback: (status: string, data: any) => any): void;
|
11720
11749
|
clearFiles(question: QuestionFileModel | QuestionSignaturePadModel, name: string, value: any, fileName: string, callback: (status: string, data: any) => any): void;
|
11721
11750
|
updateChoicesFromServer(question: QuestionSelectBase, choices: Array<ItemValue>, serverResult: any): Array<ItemValue>;
|
@@ -12144,6 +12173,7 @@ declare module "packages/survey-core/src/survey" {
|
|
12144
12173
|
* A survey width in CSS values.
|
12145
12174
|
*
|
12146
12175
|
* Default value: `undefined` (the survey inherits the width from its container)
|
12176
|
+
* @see onResize
|
12147
12177
|
*/
|
12148
12178
|
get width(): string;
|
12149
12179
|
set width(val: string);
|
@@ -12889,8 +12919,11 @@ declare module "packages/survey-core/src/question" {
|
|
12889
12919
|
protected allowMobileInDesignMode(): boolean;
|
12890
12920
|
updateIsMobileFromSurvey(): void;
|
12891
12921
|
setIsMobile(val: boolean): void;
|
12922
|
+
protected getIsMobile(): boolean;
|
12923
|
+
get isMobile(): boolean;
|
12924
|
+
set isMobile(val: boolean);
|
12892
12925
|
themeChanged(theme: ITheme): void;
|
12893
|
-
|
12926
|
+
private _isMobile;
|
12894
12927
|
forceIsInputReadOnly: boolean;
|
12895
12928
|
ariaExpanded: "true" | "false";
|
12896
12929
|
constructor(name: string);
|
@@ -13573,7 +13606,8 @@ declare module "packages/survey-core/src/question" {
|
|
13573
13606
|
protected getIsAnswered(): boolean;
|
13574
13607
|
/**
|
13575
13608
|
* Question validators.
|
13576
|
-
*
|
13609
|
+
*
|
13610
|
+
* [Data Validation](https://surveyjs.io/form-library/documentation/data-validation (linkStyle))
|
13577
13611
|
*/
|
13578
13612
|
get validators(): Array<SurveyValidator>;
|
13579
13613
|
set validators(val: Array<SurveyValidator>);
|
@@ -13611,7 +13645,7 @@ declare module "packages/survey-core/src/question" {
|
|
13611
13645
|
private collectErrors;
|
13612
13646
|
protected canRunValidators(isOnValueChanged: boolean): boolean;
|
13613
13647
|
private fireSurveyValidation;
|
13614
|
-
protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean): void;
|
13648
|
+
protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean, fireCallback: boolean): void;
|
13615
13649
|
hasRequiredError(): boolean;
|
13616
13650
|
private validatorRunner;
|
13617
13651
|
private isRunningValidatorsValue;
|
@@ -13699,7 +13733,7 @@ declare module "packages/survey-core/src/question" {
|
|
13699
13733
|
protected checkForResponsiveness(el: HTMLElement): void;
|
13700
13734
|
private resizeObserver;
|
13701
13735
|
protected getObservedElementSelector(): string;
|
13702
|
-
|
13736
|
+
protected onMobileChanged(): void;
|
13703
13737
|
private onMobileChangedCallback;
|
13704
13738
|
triggerResponsiveness(hard?: boolean): void;
|
13705
13739
|
private triggerResponsivenessCallback;
|
@@ -13809,6 +13843,9 @@ declare module "packages/survey-core/src/itemvalue" {
|
|
13809
13843
|
private componentValue;
|
13810
13844
|
getComponent(): string;
|
13811
13845
|
setComponent(val: string): void;
|
13846
|
+
private _htmlElement;
|
13847
|
+
setRootElement(val: HTMLElement): void;
|
13848
|
+
getRootElement(): HTMLElement;
|
13812
13849
|
protected getEnabled(): boolean;
|
13813
13850
|
protected setEnabled(val: boolean): void;
|
13814
13851
|
protected getVisible(): boolean;
|
@@ -13938,8 +13975,20 @@ declare module "packages/survey-core/src/martixBase" {
|
|
13938
13975
|
*/
|
13939
13976
|
get rowTitleWidth(): string;
|
13940
13977
|
set rowTitleWidth(val: string);
|
13978
|
+
/**
|
13979
|
+
* Specifies how to arrange matrix questions.
|
13980
|
+
*
|
13981
|
+
* Possible values:
|
13982
|
+
*
|
13983
|
+
* - `"table"` - Displays matrix questions in a table.
|
13984
|
+
* - `"list"` - Displays matrix questions one under another as a list.
|
13985
|
+
* - `"auto"` (default) - Uses the `"table"` mode if the survey has sufficient width to fit the table or the `"list"` mode otherwise.
|
13986
|
+
*/
|
13987
|
+
set displayMode(val: "auto" | "table" | "list");
|
13988
|
+
get displayMode(): "auto" | "table" | "list";
|
13941
13989
|
getCellAriaLabel(rowTitle: string, columnTitle: string): string;
|
13942
13990
|
get isNewA11yStructure(): boolean;
|
13991
|
+
protected getIsMobile(): boolean;
|
13943
13992
|
}
|
13944
13993
|
}
|
13945
13994
|
declare module "packages/survey-core/src/question_matrixdropdownbase" {
|
@@ -14477,6 +14526,7 @@ declare module "packages/survey-core/src/question_matrixdropdownbase" {
|
|
14477
14526
|
getRowHeaderWrapperComponentName(cell: MatrixDropdownCell): string;
|
14478
14527
|
getRowHeaderWrapperComponentData(cell: MatrixDropdownCell): any;
|
14479
14528
|
get showHorizontalScroll(): boolean;
|
14529
|
+
protected onMobileChanged(): void;
|
14480
14530
|
getRootCss(): string;
|
14481
14531
|
}
|
14482
14532
|
}
|
@@ -15081,6 +15131,7 @@ declare module "packages/survey-core/src/jsonobject" {
|
|
15081
15131
|
private addDynamicPropertyIntoObj;
|
15082
15132
|
getDynamicPropertiesByObj(obj: any, dynamicType?: string): Array<JsonObjectProperty>;
|
15083
15133
|
getDynamicPropertiesByTypes(objType: string, dynamicType: string, invalidNames?: Array<string>): Array<JsonObjectProperty>;
|
15134
|
+
private canAddDybamicProp;
|
15084
15135
|
hasOriginalProperty(obj: Base, propName: string): boolean;
|
15085
15136
|
getOriginalProperty(obj: Base, propName: string): JsonObjectProperty;
|
15086
15137
|
getProperty(className: string, propertyName: string): JsonObjectProperty;
|
@@ -16188,7 +16239,7 @@ declare module "packages/survey-core/src/settings" {
|
|
16188
16239
|
* Nested properties:
|
16189
16240
|
*
|
16190
16241
|
* - `lifetime`: `number`\
|
16191
|
-
* Specifies a time period during which a notification is displayed; measured in milliseconds.
|
16242
|
+
* Specifies a time period during which a notification is displayed; measured in milliseconds. Default value: 2000.
|
16192
16243
|
*/
|
16193
16244
|
notifications: {
|
16194
16245
|
lifetime: number;
|
@@ -16909,7 +16960,7 @@ declare module "packages/survey-core/src/question_matrix" {
|
|
16909
16960
|
getCellDisplayLocText(row: any, column: any): LocalizableString;
|
16910
16961
|
supportGoNextPageAutomatic(): boolean;
|
16911
16962
|
private errorsInRow;
|
16912
|
-
protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean): void;
|
16963
|
+
protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean, fireCallback: boolean): void;
|
16913
16964
|
private hasValuesInAllRows;
|
16914
16965
|
private checkErrorsAllRows;
|
16915
16966
|
private addErrorIntoRow;
|
@@ -17035,6 +17086,7 @@ declare module "packages/survey-core/src/question_checkbox" {
|
|
17035
17086
|
*/
|
17036
17087
|
export class QuestionCheckboxModel extends QuestionCheckboxBase {
|
17037
17088
|
private selectAllItemValue;
|
17089
|
+
protected selectAllItemText: LocalizableString;
|
17038
17090
|
private invisibleOldValues;
|
17039
17091
|
protected defaultSelectedItemValues: Array<ItemValue>;
|
17040
17092
|
constructor(name: string);
|
@@ -17079,6 +17131,7 @@ declare module "packages/survey-core/src/question_checkbox" {
|
|
17079
17131
|
get isAllSelected(): boolean;
|
17080
17132
|
set isAllSelected(val: boolean);
|
17081
17133
|
toggleSelectAll(): void;
|
17134
|
+
protected allElementsSelected(): boolean;
|
17082
17135
|
/**
|
17083
17136
|
* Selects all choice items, except "Other" and "None".
|
17084
17137
|
*
|
@@ -17123,7 +17176,7 @@ declare module "packages/survey-core/src/question_checkbox" {
|
|
17123
17176
|
protected getMultipleSelectedItems(): Array<ItemValue>;
|
17124
17177
|
protected validateItemValues(itemValues: Array<ItemValue>): Array<ItemValue>;
|
17125
17178
|
protected getAnswerCorrectIgnoreOrder(): boolean;
|
17126
|
-
protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean): void;
|
17179
|
+
protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean, fireCallback: boolean): void;
|
17127
17180
|
protected onVisibleChoicesChanged(): void;
|
17128
17181
|
protected onEnableItemCallBack(item: ItemValue): boolean;
|
17129
17182
|
protected onAfterRunItemsEnableCondition(): void;
|
@@ -17250,6 +17303,7 @@ declare module "packages/survey-core/src/question_tagbox" {
|
|
17250
17303
|
export class QuestionTagboxModel extends QuestionCheckboxModel {
|
17251
17304
|
dropdownListModel: DropdownMultiSelectListModel;
|
17252
17305
|
private itemDisplayNameMap;
|
17306
|
+
private deselectAllItemText;
|
17253
17307
|
constructor(name: string);
|
17254
17308
|
locStrsChanged(): void;
|
17255
17309
|
private updateReadOnlyText;
|
@@ -17325,6 +17379,8 @@ declare module "packages/survey-core/src/question_tagbox" {
|
|
17325
17379
|
protected supportEmptyValidation(): boolean;
|
17326
17380
|
protected onBlurCore(event: any): void;
|
17327
17381
|
protected onFocusCore(event: any): void;
|
17382
|
+
protected allElementsSelected(): boolean;
|
17383
|
+
updateSelectAllItemText(isAllSelected: boolean): void;
|
17328
17384
|
dispose(): void;
|
17329
17385
|
clearValue(keepComment?: boolean): void;
|
17330
17386
|
get showClearButton(): boolean;
|
@@ -18770,6 +18826,7 @@ declare module "packages/survey-core/src/mask/mask_datetime" {
|
|
18770
18826
|
get hasTimePart(): boolean;
|
18771
18827
|
private get is12Hours();
|
18772
18828
|
getType(): string;
|
18829
|
+
getTypeForExpressions(): string;
|
18773
18830
|
protected updateLiterals(): void;
|
18774
18831
|
private leaveOnlyNumbers;
|
18775
18832
|
private getMaskedStrFromISO;
|
@@ -27044,6 +27101,7 @@ declare module "packages/survey-react-ui/src/reactquestion_element" {
|
|
27044
27101
|
private _allowComponentUpdate;
|
27045
27102
|
protected allowComponentUpdate(): void;
|
27046
27103
|
protected denyComponentUpdate(): void;
|
27104
|
+
private prevStateElements;
|
27047
27105
|
shouldComponentUpdate(nextProps: any, nextState: any): boolean;
|
27048
27106
|
render(): JSX.Element | null;
|
27049
27107
|
protected wrapElement(element: JSX.Element): JSX.Element;
|
@@ -27055,6 +27113,7 @@ declare module "packages/survey-react-ui/src/reactquestion_element" {
|
|
27055
27113
|
protected get changedStatePropName(): string | undefined;
|
27056
27114
|
private makeBaseElementsReact;
|
27057
27115
|
private unMakeBaseElementsReact;
|
27116
|
+
protected disableStateElementsRerenderEvent(els: Array<Base>): void;
|
27058
27117
|
protected getStateElements(): Array<Base>;
|
27059
27118
|
protected getStateElement(): Base | null;
|
27060
27119
|
protected get isDisplayMode(): boolean;
|
@@ -27366,9 +27425,10 @@ declare module "packages/survey-react-ui/src/reactquestion_checkbox" {
|
|
27366
27425
|
protected getItems(cssClasses: any, choices: Array<ItemValue>): Array<any>;
|
27367
27426
|
protected get textStyle(): any;
|
27368
27427
|
protected renderOther(): JSX.Element;
|
27369
|
-
protected renderItem(
|
27428
|
+
protected renderItem(item: any, isFirst: boolean, cssClasses: any, index?: string): JSX.Element;
|
27370
27429
|
}
|
27371
27430
|
export class SurveyQuestionCheckboxItem extends ReactSurveyElement {
|
27431
|
+
private rootRef;
|
27372
27432
|
constructor(props: any);
|
27373
27433
|
protected getStateElement(): Base;
|
27374
27434
|
protected get question(): QuestionCheckboxModel;
|
@@ -27377,12 +27437,15 @@ declare module "packages/survey-react-ui/src/reactquestion_checkbox" {
|
|
27377
27437
|
protected get isFirst(): any;
|
27378
27438
|
protected get index(): number;
|
27379
27439
|
private get hideCaption();
|
27440
|
+
componentDidUpdate(prevProps: any, prevState: any): void;
|
27380
27441
|
shouldComponentUpdate(nextProps: any, nextState: any): boolean;
|
27381
27442
|
handleOnChange: (event: any) => void;
|
27382
27443
|
protected canRender(): boolean;
|
27383
27444
|
protected renderElement(): JSX.Element;
|
27384
27445
|
protected get inputStyle(): any;
|
27385
27446
|
protected renderCheckbox(isChecked: boolean, otherItem: JSX.Element | null): JSX.Element;
|
27447
|
+
componentDidMount(): void;
|
27448
|
+
componentWillUnmount(): void;
|
27386
27449
|
}
|
27387
27450
|
}
|
27388
27451
|
declare module "packages/survey-react-ui/src/reactquestion_ranking" {
|
@@ -27694,6 +27757,7 @@ declare module "packages/survey-react-ui/src/reactquestion_radiogroup" {
|
|
27694
27757
|
private getStateValue;
|
27695
27758
|
}
|
27696
27759
|
export class SurveyQuestionRadioItem extends ReactSurveyElement {
|
27760
|
+
private rootRef;
|
27697
27761
|
constructor(props: any);
|
27698
27762
|
protected getStateElement(): Base;
|
27699
27763
|
protected get question(): QuestionRadiogroupModel;
|
@@ -27706,7 +27770,10 @@ declare module "packages/survey-react-ui/src/reactquestion_radiogroup" {
|
|
27706
27770
|
handleOnChange(event: any): void;
|
27707
27771
|
handleOnMouseDown(event: any): void;
|
27708
27772
|
protected canRender(): boolean;
|
27773
|
+
componentDidUpdate(prevProps: any, prevState: any): void;
|
27709
27774
|
protected renderElement(): JSX.Element;
|
27775
|
+
componentDidMount(): void;
|
27776
|
+
componentWillUnmount(): void;
|
27710
27777
|
}
|
27711
27778
|
}
|
27712
27779
|
declare module "packages/survey-react-ui/src/reactquestion_text" {
|
@@ -27789,7 +27856,8 @@ declare module "packages/survey-react-ui/src/components/matrix-actions/drag-drop
|
|
27789
27856
|
import { ReactSurveyElement } from "packages/survey-react-ui/src/reactquestion_element";
|
27790
27857
|
export class SurveyQuestionMatrixDynamicDragDropIcon extends ReactSurveyElement {
|
27791
27858
|
private get question();
|
27792
|
-
protected renderElement(): JSX.Element;
|
27859
|
+
protected renderElement(): JSX.Element | null;
|
27860
|
+
protected renderIcon(): JSX.Element;
|
27793
27861
|
}
|
27794
27862
|
}
|
27795
27863
|
declare module "packages/survey-react-ui/src/reactquestion_matrixdropdownbase" {
|