survey-core 1.11.13 → 1.11.14
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 +205 -206
- package/defaultV2.css.map +1 -1
- package/defaultV2.fontless.css +205 -206
- package/defaultV2.fontless.css.map +1 -1
- package/defaultV2.fontless.min.css +2 -2
- package/defaultV2.min.css +2 -2
- package/i18n/arabic.js +1 -1
- package/i18n/arabic.min.js +1 -1
- package/i18n/basque.js +1 -1
- package/i18n/basque.min.js +1 -1
- package/i18n/bulgarian.js +1 -1
- package/i18n/bulgarian.min.js +1 -1
- package/i18n/catalan.js +1 -1
- package/i18n/catalan.min.js +1 -1
- package/i18n/croatian.js +1 -1
- package/i18n/croatian.min.js +1 -1
- package/i18n/czech.js +1 -1
- package/i18n/czech.min.js +1 -1
- package/i18n/danish.js +1 -1
- package/i18n/danish.min.js +1 -1
- package/i18n/dutch.js +1 -1
- package/i18n/dutch.min.js +1 -1
- package/i18n/english.js +2 -1
- package/i18n/english.js.map +1 -1
- package/i18n/english.min.js +2 -2
- package/i18n/estonian.js +1 -1
- package/i18n/estonian.min.js +1 -1
- package/i18n/finnish.js +1 -1
- package/i18n/finnish.min.js +1 -1
- package/i18n/french.js +1 -1
- package/i18n/french.min.js +1 -1
- package/i18n/georgian.js +1 -1
- package/i18n/georgian.min.js +1 -1
- package/i18n/german.js +1 -1
- package/i18n/german.min.js +1 -1
- package/i18n/greek.js +1 -1
- package/i18n/greek.min.js +1 -1
- package/i18n/hebrew.js +1 -1
- package/i18n/hebrew.min.js +1 -1
- package/i18n/hindi.js +1 -1
- package/i18n/hindi.min.js +1 -1
- package/i18n/hungarian.js +1 -1
- package/i18n/hungarian.min.js +1 -1
- package/i18n/icelandic.js +1 -1
- package/i18n/icelandic.min.js +1 -1
- package/i18n/index.js +1 -1
- package/i18n/index.min.js +1 -1
- package/i18n/indonesian.js +1 -1
- package/i18n/indonesian.min.js +1 -1
- package/i18n/italian.js +1 -1
- package/i18n/italian.min.js +1 -1
- package/i18n/japanese.js +1 -1
- package/i18n/japanese.min.js +1 -1
- package/i18n/kazakh.js +1 -1
- package/i18n/kazakh.min.js +1 -1
- package/i18n/korean.js +1 -1
- package/i18n/korean.min.js +1 -1
- package/i18n/latvian.js +1 -1
- package/i18n/latvian.min.js +1 -1
- package/i18n/lithuanian.js +1 -1
- package/i18n/lithuanian.min.js +1 -1
- package/i18n/macedonian.js +1 -1
- package/i18n/macedonian.min.js +1 -1
- package/i18n/malay.js +1 -1
- package/i18n/malay.min.js +1 -1
- package/i18n/nl-BE.js +1 -1
- package/i18n/nl-BE.min.js +1 -1
- package/i18n/norwegian.js +1 -1
- package/i18n/norwegian.min.js +1 -1
- package/i18n/persian.js +1 -1
- package/i18n/persian.min.js +1 -1
- package/i18n/philippines.js +1 -1
- package/i18n/philippines.min.js +1 -1
- package/i18n/polish.js +1 -1
- package/i18n/polish.min.js +1 -1
- package/i18n/portuguese-br.js +1 -1
- package/i18n/portuguese-br.min.js +1 -1
- package/i18n/portuguese.js +1 -1
- package/i18n/portuguese.min.js +1 -1
- package/i18n/romanian.js +1 -1
- package/i18n/romanian.min.js +1 -1
- package/i18n/russian.js +1 -1
- package/i18n/russian.min.js +1 -1
- package/i18n/serbian.js +1 -1
- package/i18n/serbian.min.js +1 -1
- package/i18n/simplified-chinese.js +1 -1
- package/i18n/simplified-chinese.min.js +1 -1
- package/i18n/slovak.js +1 -1
- package/i18n/slovak.min.js +1 -1
- package/i18n/spanish.js +1 -1
- package/i18n/spanish.min.js +1 -1
- package/i18n/swahili.js +1 -1
- package/i18n/swahili.min.js +1 -1
- package/i18n/swedish.js +1 -1
- package/i18n/swedish.min.js +1 -1
- package/i18n/tajik.js +1 -1
- package/i18n/tajik.min.js +1 -1
- package/i18n/telugu.js +1 -1
- package/i18n/telugu.min.js +1 -1
- package/i18n/thai.js +1 -1
- package/i18n/thai.min.js +1 -1
- package/i18n/traditional-chinese.js +1 -1
- package/i18n/traditional-chinese.min.js +1 -1
- package/i18n/turkish.js +1 -1
- package/i18n/turkish.min.js +1 -1
- package/i18n/ukrainian.js +1 -1
- package/i18n/ukrainian.min.js +1 -1
- package/i18n/urdu.js +1 -1
- package/i18n/urdu.min.js +1 -1
- package/i18n/vietnamese.js +1 -1
- package/i18n/vietnamese.min.js +1 -1
- package/i18n/welsh.js +1 -1
- package/i18n/welsh.min.js +1 -1
- package/modern.css +1 -1
- package/modern.fontless.css +1 -1
- package/modern.fontless.min.css +1 -1
- package/modern.min.css +1 -1
- package/package.json +1 -1
- package/plugins/bootstrap-integration/index.js +1 -1
- package/plugins/bootstrap-integration/index.min.js +1 -1
- package/plugins/bootstrap-material-integration/index.js +1 -1
- package/plugins/bootstrap-material-integration/index.min.js +1 -1
- package/survey.core.js +207 -104
- package/survey.core.js.map +1 -1
- package/survey.core.min.js +3 -3
- package/survey.css +1 -1
- package/survey.i18n.js +1 -1
- package/survey.i18n.min.js +1 -1
- package/survey.min.css +1 -1
- package/themes/borderless-dark-panelless.js +1 -1
- package/themes/borderless-dark-panelless.min.js +1 -1
- package/themes/borderless-dark.js +1 -1
- package/themes/borderless-dark.min.js +1 -1
- package/themes/borderless-light-panelless..js +1 -1
- package/themes/borderless-light-panelless..min.js +1 -1
- package/themes/borderless-light.js +1 -1
- package/themes/borderless-light.min.js +1 -1
- package/themes/contrast-dark-panelless.js +1 -1
- package/themes/contrast-dark-panelless.min.js +1 -1
- package/themes/contrast-dark.js +1 -1
- package/themes/contrast-dark.min.js +1 -1
- package/themes/contrast-light-panelless.js +1 -1
- package/themes/contrast-light-panelless.min.js +1 -1
- package/themes/contrast-light.js +1 -1
- package/themes/contrast-light.min.js +1 -1
- package/themes/default-dark-panelless.js +1 -1
- package/themes/default-dark-panelless.min.js +1 -1
- package/themes/default-dark.js +1 -1
- package/themes/default-dark.min.js +1 -1
- package/themes/default-light-panelless.js +1 -1
- package/themes/default-light-panelless.min.js +1 -1
- package/themes/default-light.js +1 -1
- package/themes/default-light.min.js +1 -1
- package/themes/doubleborder-dark-panelless.js +1 -1
- package/themes/doubleborder-dark-panelless.min.js +1 -1
- package/themes/doubleborder-dark.js +1 -1
- package/themes/doubleborder-dark.min.js +1 -1
- package/themes/doubleborder-light-panelles.js +1 -1
- package/themes/doubleborder-light-panelles.min.js +1 -1
- package/themes/doubleborder-light.js +1 -1
- package/themes/doubleborder-light.min.js +1 -1
- package/themes/flat-dark-panelless.js +1 -1
- package/themes/flat-dark-panelless.min.js +1 -1
- package/themes/flat-dark.js +1 -1
- package/themes/flat-dark.min.js +1 -1
- package/themes/flat-light-panelless.js +1 -1
- package/themes/flat-light-panelless.min.js +1 -1
- package/themes/flat-light.js +1 -1
- package/themes/flat-light.min.js +1 -1
- package/themes/index.js +1 -1
- package/themes/index.min.js +1 -1
- package/themes/layered-dark-panelless.js +1 -1
- package/themes/layered-dark-panelless.min.js +1 -1
- package/themes/layered-dark.js +1 -1
- package/themes/layered-dark.min.js +1 -1
- package/themes/layered-light-panelless.js +1 -1
- package/themes/layered-light-panelless.min.js +1 -1
- package/themes/layered-light.js +1 -1
- package/themes/layered-light.min.js +1 -1
- package/themes/plain-dark-panelless.js +1 -1
- package/themes/plain-dark-panelless.min.js +1 -1
- package/themes/plain-dark.js +1 -1
- package/themes/plain-dark.min.js +1 -1
- package/themes/plain-light-panelless.js +1 -1
- package/themes/plain-light-panelless.min.js +1 -1
- package/themes/plain-light.js +1 -1
- package/themes/plain-light.min.js +1 -1
- package/themes/sharp-dark-panelless.js +1 -1
- package/themes/sharp-dark-panelless.min.js +1 -1
- package/themes/sharp-dark.js +1 -1
- package/themes/sharp-dark.min.js +1 -1
- package/themes/sharp-light-panelless.js +1 -1
- package/themes/sharp-light-panelless.min.js +1 -1
- package/themes/sharp-light.js +1 -1
- package/themes/sharp-light.min.js +1 -1
- package/themes/solid-dark-panelless.js +1 -1
- package/themes/solid-dark-panelless.min.js +1 -1
- package/themes/solid-dark.js +1 -1
- package/themes/solid-dark.min.js +1 -1
- package/themes/solid-light-panelless.js +1 -1
- package/themes/solid-light-panelless.min.js +1 -1
- package/themes/solid-light.js +1 -1
- package/themes/solid-light.min.js +1 -1
- package/themes/three-dimensional-dark-panelless.js +1 -1
- package/themes/three-dimensional-dark-panelless.min.js +1 -1
- package/themes/three-dimensional-dark.js +1 -1
- package/themes/three-dimensional-dark.min.js +1 -1
- package/themes/three-dimensional-light-panelless.js +1 -1
- package/themes/three-dimensional-light-panelless.min.js +1 -1
- package/themes/three-dimensional-light.js +1 -1
- package/themes/three-dimensional-light.min.js +1 -1
- package/ts3.4/typings/packages/survey-core/src/actions/action.d.ts +1 -1
- package/ts3.4/typings/packages/survey-core/src/defaultCss/defaultV2Css.d.ts +1 -0
- package/ts3.4/typings/packages/survey-core/src/jsonobject.d.ts +1 -0
- package/ts3.4/typings/packages/survey-core/src/list.d.ts +1 -0
- package/ts3.4/typings/packages/survey-core/src/localization/english.d.ts +1 -0
- package/ts3.4/typings/packages/survey-core/src/martixBase.d.ts +11 -0
- package/ts3.4/typings/packages/survey-core/src/question.d.ts +6 -3
- package/ts3.4/typings/packages/survey-core/src/question_checkbox.d.ts +2 -0
- package/ts3.4/typings/packages/survey-core/src/question_matrixdropdownbase.d.ts +1 -0
- package/ts3.4/typings/packages/survey-core/src/question_paneldynamic.d.ts +12 -15
- package/ts3.4/typings/packages/survey-core/src/question_tagbox.d.ts +3 -0
- package/ts3.4/typings/packages/survey-core/src/settings.d.ts +1 -1
- package/ts3.4/typings/packages/survey-core/src/survey-events-api.d.ts +22 -12
- package/ts3.4/typings/packages/survey-core/src/survey.d.ts +11 -36
- package/ts3.4/typings/packages/survey-core/src/surveyStrings.d.ts +1 -0
- package/typings/packages/survey-core/src/actions/action.d.ts +1 -1
- package/typings/packages/survey-core/src/defaultCss/defaultV2Css.d.ts +1 -0
- package/typings/packages/survey-core/src/jsonobject.d.ts +1 -0
- package/typings/packages/survey-core/src/list.d.ts +1 -0
- package/typings/packages/survey-core/src/localization/english.d.ts +1 -0
- package/typings/packages/survey-core/src/martixBase.d.ts +12 -0
- package/typings/packages/survey-core/src/question.d.ts +7 -3
- package/typings/packages/survey-core/src/question_checkbox.d.ts +2 -0
- package/typings/packages/survey-core/src/question_matrixdropdownbase.d.ts +1 -0
- package/typings/packages/survey-core/src/question_paneldynamic.d.ts +12 -15
- package/typings/packages/survey-core/src/question_tagbox.d.ts +3 -0
- package/typings/packages/survey-core/src/settings.d.ts +1 -1
- package/typings/packages/survey-core/src/survey-events-api.d.ts +22 -12
- package/typings/packages/survey-core/src/survey.d.ts +11 -36
- package/typings/packages/survey-core/src/surveyStrings.d.ts +1 -0
package/themes/solid-light.js
CHANGED
|
@@ -257,7 +257,7 @@ export declare class Action extends BaseAction implements IAction, ILocalizableO
|
|
|
257
257
|
locStrsChanged(): void;
|
|
258
258
|
doAction(args: any): boolean;
|
|
259
259
|
private isMouseDown;
|
|
260
|
-
doMouseDown(): void;
|
|
260
|
+
doMouseDown(args: any): void;
|
|
261
261
|
doFocus(args: any): void;
|
|
262
262
|
private locStrChangedInPopupModel;
|
|
263
263
|
private locTitleChanged;
|
|
@@ -246,6 +246,7 @@ export declare class JsonMetadata {
|
|
|
246
246
|
private addDynamicPropertyIntoObj;
|
|
247
247
|
getDynamicPropertiesByObj(obj: any, dynamicType?: string): Array<JsonObjectProperty>;
|
|
248
248
|
getDynamicPropertiesByTypes(objType: string, dynamicType: string, invalidNames?: Array<string>): Array<JsonObjectProperty>;
|
|
249
|
+
private canAddDybamicProp;
|
|
249
250
|
hasOriginalProperty(obj: Base, propName: string): boolean;
|
|
250
251
|
getOriginalProperty(obj: Base, propName: string): JsonObjectProperty;
|
|
251
252
|
getProperty(className: string, propertyName: string): JsonObjectProperty;
|
|
@@ -56,6 +56,7 @@ export declare class ListModel<T extends BaseAction = Action> extends ActionCont
|
|
|
56
56
|
showSearchClearButton: boolean;
|
|
57
57
|
renderElements: boolean;
|
|
58
58
|
textWrapEnabled: boolean;
|
|
59
|
+
itemComponent: string;
|
|
59
60
|
static INDENT: number;
|
|
60
61
|
static MINELEMENTCOUNT: number;
|
|
61
62
|
scrollHandler: (e?: any) => void;
|
|
@@ -108,6 +108,17 @@ export declare class QuestionMatrixBaseModel<TRow, TColumn> extends Question {
|
|
|
108
108
|
* A width for the column that displays row titles (first column). Accepts CSS values.
|
|
109
109
|
*/
|
|
110
110
|
rowTitleWidth: string;
|
|
111
|
+
/*
|
|
112
|
+
* Specifies how to arrange matrix questions.
|
|
113
|
+
*
|
|
114
|
+
* Possible values:
|
|
115
|
+
*
|
|
116
|
+
* - `"table"` - Displays matrix questions in a table.
|
|
117
|
+
* - `"list"` - Displays matrix questions one under another as a list.
|
|
118
|
+
* - `"auto"` (default) - Uses the `"table"` mode if the survey has sufficient width to fit the table or the `"list"` mode otherwise.
|
|
119
|
+
*/
|
|
120
|
+
displayMode: "auto" | "table" | "list";
|
|
111
121
|
getCellAriaLabel(rowTitle: string, columnTitle: string): string;
|
|
112
122
|
readonly isNewA11yStructure: boolean;
|
|
123
|
+
protected getIsMobile(): boolean;
|
|
113
124
|
}
|
|
@@ -80,8 +80,10 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
80
80
|
protected allowMobileInDesignMode(): boolean;
|
|
81
81
|
updateIsMobileFromSurvey(): void;
|
|
82
82
|
setIsMobile(val: boolean): void;
|
|
83
|
-
|
|
83
|
+
protected getIsMobile(): boolean;
|
|
84
84
|
isMobile: boolean;
|
|
85
|
+
themeChanged(theme: ITheme): void;
|
|
86
|
+
private _isMobile;
|
|
85
87
|
forceIsInputReadOnly: boolean;
|
|
86
88
|
ariaExpanded: "true" | "false";
|
|
87
89
|
constructor(name: string);
|
|
@@ -730,7 +732,8 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
730
732
|
protected getIsAnswered(): boolean;
|
|
731
733
|
/*
|
|
732
734
|
* Question validators.
|
|
733
|
-
*
|
|
735
|
+
*
|
|
736
|
+
* [Data Validation](https://surveyjs.io/form-library/documentation/data-validation (linkStyle))
|
|
734
737
|
*/
|
|
735
738
|
validators: Array<SurveyValidator>;
|
|
736
739
|
getValidators(): Array<SurveyValidator>;
|
|
@@ -854,7 +857,7 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
854
857
|
protected checkForResponsiveness(el: HTMLElement): void;
|
|
855
858
|
private resizeObserver;
|
|
856
859
|
protected getObservedElementSelector(): string;
|
|
857
|
-
|
|
860
|
+
protected onMobileChanged(): void;
|
|
858
861
|
private onMobileChangedCallback;
|
|
859
862
|
triggerResponsiveness(hard?: boolean): void;
|
|
860
863
|
private triggerResponsivenessCallback;
|
|
@@ -10,6 +10,7 @@ import { SurveyError } from "./survey-error";
|
|
|
10
10
|
*/
|
|
11
11
|
export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
|
|
12
12
|
private selectAllItemValue;
|
|
13
|
+
protected selectAllItemText: LocalizableString;
|
|
13
14
|
private invisibleOldValues;
|
|
14
15
|
protected defaultSelectedItemValues: Array<ItemValue>;
|
|
15
16
|
constructor(name: string);
|
|
@@ -49,6 +50,7 @@ export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
|
|
|
49
50
|
*/
|
|
50
51
|
isAllSelected: boolean;
|
|
51
52
|
toggleSelectAll(): void;
|
|
53
|
+
protected allElementsSelected(): boolean;
|
|
52
54
|
/**
|
|
53
55
|
* Selects all choice items, except "Other" and "None".
|
|
54
56
|
*
|
|
@@ -513,5 +513,6 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
|
|
|
513
513
|
getRowHeaderWrapperComponentName(cell: MatrixDropdownCell): string;
|
|
514
514
|
getRowHeaderWrapperComponentData(cell: MatrixDropdownCell): any;
|
|
515
515
|
readonly showHorizontalScroll: boolean;
|
|
516
|
+
protected onMobileChanged(): void;
|
|
516
517
|
getRootCss(): string;
|
|
517
518
|
}
|
|
@@ -494,12 +494,11 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
|
494
494
|
getProgressInfo(): IProgressInfo;
|
|
495
495
|
private isRowEmpty;
|
|
496
496
|
/**
|
|
497
|
-
*
|
|
498
|
-
*
|
|
499
|
-
*
|
|
497
|
+
* Adds a new panel based on the [template](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#template).
|
|
498
|
+
*
|
|
499
|
+
* 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.
|
|
500
500
|
* @see panelCount
|
|
501
501
|
* @see panels
|
|
502
|
-
* @see canAddPanel
|
|
503
502
|
*/
|
|
504
503
|
addPanelUI(): PanelModel;
|
|
505
504
|
private focusNewPanelCallback;
|
|
@@ -517,13 +516,11 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
|
517
516
|
private canLeaveCurrentPanel;
|
|
518
517
|
private copyValue;
|
|
519
518
|
/**
|
|
520
|
-
*
|
|
521
|
-
* @param value a panel or panel index
|
|
522
|
-
* @see removePanel
|
|
523
|
-
* @see confirmDelete
|
|
524
|
-
* @see confirmDeleteText
|
|
525
|
-
* @see canRemovePanel
|
|
519
|
+
* Deletes a panel from the [`panels`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#panels) array.
|
|
526
520
|
*
|
|
521
|
+
* 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).
|
|
522
|
+
* @param value A `PanelModel` instance or zero-based panel index.
|
|
523
|
+
* @see addPanelUI
|
|
527
524
|
*/
|
|
528
525
|
removePanelUI(value: any): void;
|
|
529
526
|
isRequireConfirmOnDelete(val: any): boolean;
|
|
@@ -536,13 +533,12 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
|
536
533
|
* Switches Dynamic Panel to the previous panel.
|
|
537
534
|
*/
|
|
538
535
|
goToPrevPanel(): void;
|
|
536
|
+
private removedPanelIndex;
|
|
539
537
|
/**
|
|
540
|
-
*
|
|
541
|
-
* @param value
|
|
542
|
-
* @see
|
|
543
|
-
* @see template
|
|
538
|
+
* Deletes a panel from the [`panels`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#panels) array.
|
|
539
|
+
* @param value A `PanelModel` instance or zero-based panel index.
|
|
540
|
+
* @see addPanel
|
|
544
541
|
*/
|
|
545
|
-
private removedPanelIndex;
|
|
546
542
|
removePanel(value: any): void;
|
|
547
543
|
private getVisualPanelIndex;
|
|
548
544
|
private getPanelVisibleIndexById;
|
|
@@ -645,4 +641,5 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
|
645
641
|
readonly showNavigation: boolean;
|
|
646
642
|
showSeparator(index: number): boolean;
|
|
647
643
|
protected calcCssClasses(css: any): any;
|
|
644
|
+
protected onMobileChanged(): void;
|
|
648
645
|
}
|
|
@@ -12,6 +12,7 @@ import { ItemValue } from "./itemvalue";
|
|
|
12
12
|
export declare class QuestionTagboxModel extends QuestionCheckboxModel {
|
|
13
13
|
dropdownListModel: DropdownMultiSelectListModel;
|
|
14
14
|
private itemDisplayNameMap;
|
|
15
|
+
private deselectAllItemText;
|
|
15
16
|
constructor(name: string);
|
|
16
17
|
locStrsChanged(): void;
|
|
17
18
|
private updateReadOnlyText;
|
|
@@ -84,6 +85,8 @@ export declare class QuestionTagboxModel extends QuestionCheckboxModel {
|
|
|
84
85
|
protected supportEmptyValidation(): boolean;
|
|
85
86
|
protected onBlurCore(event: any): void;
|
|
86
87
|
protected onFocusCore(event: any): void;
|
|
88
|
+
protected allElementsSelected(): boolean;
|
|
89
|
+
updateSelectAllItemText(isAllSelected: boolean): void;
|
|
87
90
|
dispose(): void;
|
|
88
91
|
clearValue(keepComment?: boolean): void;
|
|
89
92
|
readonly showClearButton: boolean;
|
|
@@ -419,7 +419,7 @@ export declare var settings: {
|
|
|
419
419
|
* Nested properties:
|
|
420
420
|
*
|
|
421
421
|
* - `lifetime`: `number`\
|
|
422
|
-
* Specifies a time period during which a notification is displayed; measured in milliseconds.
|
|
422
|
+
* Specifies a time period during which a notification is displayed; measured in milliseconds. Default value: 2000.
|
|
423
423
|
*/
|
|
424
424
|
notifications: {
|
|
425
425
|
lifetime: number;
|
|
@@ -472,23 +472,23 @@ export interface GetResultEvent {
|
|
|
472
472
|
/**
|
|
473
473
|
* An object with the following structure:
|
|
474
474
|
*
|
|
475
|
-
*
|
|
476
|
-
*
|
|
477
|
-
*
|
|
478
|
-
*
|
|
479
|
-
*
|
|
480
|
-
*
|
|
475
|
+
* ```js
|
|
476
|
+
* {
|
|
477
|
+
* AnswersCount: Number, // A total number of posted answers to the question
|
|
478
|
+
* QuestionResult: Object // All unique answers to the question and their number
|
|
479
|
+
* }
|
|
480
|
+
* ```
|
|
481
481
|
*/
|
|
482
482
|
data: any;
|
|
483
483
|
/**
|
|
484
484
|
* An array of objects with the following structure:
|
|
485
485
|
*
|
|
486
|
-
*
|
|
487
|
-
*
|
|
488
|
-
*
|
|
489
|
-
*
|
|
490
|
-
*
|
|
491
|
-
*
|
|
486
|
+
* ```js
|
|
487
|
+
* {
|
|
488
|
+
* name: String, // A unique answer to the question
|
|
489
|
+
* value: Number // The number of user responses with this answer
|
|
490
|
+
* }
|
|
491
|
+
* ```
|
|
492
492
|
*/
|
|
493
493
|
dataList: Array<any>;
|
|
494
494
|
}
|
|
@@ -1074,3 +1074,13 @@ export interface ElementWrapperComponentNameEvent extends ElementWrapperComponen
|
|
|
1074
1074
|
export interface ElementWrapperComponentDataEvent extends ElementWrapperComponentEventMixin {
|
|
1075
1075
|
data: any;
|
|
1076
1076
|
}
|
|
1077
|
+
export interface ResizeEvent {
|
|
1078
|
+
/**
|
|
1079
|
+
* The current survey width in pixels.
|
|
1080
|
+
*/
|
|
1081
|
+
width: number;
|
|
1082
|
+
/**
|
|
1083
|
+
* The current survey height in pixels.
|
|
1084
|
+
*/
|
|
1085
|
+
height: number;
|
|
1086
|
+
}
|
|
@@ -18,7 +18,7 @@ import { IAction, Action } from "./actions/action";
|
|
|
18
18
|
import { ActionContainer } from "./actions/container";
|
|
19
19
|
import { QuestionPanelDynamicModel } from "./question_paneldynamic";
|
|
20
20
|
import { Notifier } from "./notifier";
|
|
21
|
-
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,
|
|
21
|
+
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 "./survey-events-api";
|
|
22
22
|
import { QuestionMatrixDropdownModelBase } from "./question_matrixdropdownbase";
|
|
23
23
|
import { QuestionMatrixDynamicModel } from "./question_matrixdynamic";
|
|
24
24
|
import { QuestionFileModel } from "./question_file";
|
|
@@ -346,7 +346,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
346
346
|
* [View Demo](https://surveyjs.io/form-library/examples/edit-survey-questions-markdown/ (linkStyle))
|
|
347
347
|
*/
|
|
348
348
|
onTextMarkdown: EventBase<SurveyModel, TextMarkdownEvent>;
|
|
349
|
-
onTextRenderAs: EventBase<SurveyModel,
|
|
349
|
+
onTextRenderAs: EventBase<SurveyModel, any>;
|
|
350
350
|
/**
|
|
351
351
|
* 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.
|
|
352
352
|
*/
|
|
@@ -454,7 +454,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
454
454
|
* [View Demo](https://surveyjs.io/form-library/examples/survey-animation/ (linkStyle))
|
|
455
455
|
*/
|
|
456
456
|
onAfterRenderSurvey: EventBase<SurveyModel, AfterRenderSurveyEvent>;
|
|
457
|
-
onAfterRenderHeader: EventBase<SurveyModel,
|
|
457
|
+
onAfterRenderHeader: EventBase<SurveyModel, any>;
|
|
458
458
|
/**
|
|
459
459
|
* An event that is raised after a page is rendered to the DOM. Use it to modify page markup.
|
|
460
460
|
*
|
|
@@ -631,7 +631,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
631
631
|
* @see startTimer
|
|
632
632
|
*/
|
|
633
633
|
onTimer: EventBase<SurveyModel, {}>;
|
|
634
|
-
onTimerPanelInfoText: EventBase<SurveyModel,
|
|
634
|
+
onTimerPanelInfoText: EventBase<SurveyModel, any>;
|
|
635
635
|
/**
|
|
636
636
|
* 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.
|
|
637
637
|
*/
|
|
@@ -719,8 +719,8 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
719
719
|
* 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.
|
|
720
720
|
*/
|
|
721
721
|
onOpenDropdownMenu: EventBase<SurveyModel, OpenDropdownMenuEvent>;
|
|
722
|
-
onElementWrapperComponentName: EventBase<SurveyModel,
|
|
723
|
-
onElementWrapperComponentData: EventBase<SurveyModel,
|
|
722
|
+
onElementWrapperComponentName: EventBase<SurveyModel, any>;
|
|
723
|
+
onElementWrapperComponentData: EventBase<SurveyModel, any>;
|
|
724
724
|
constructor(jsonObj?: any, renderedElement?: any);
|
|
725
725
|
processClosedPopup(question: IQuestion, popupModel: PopupModel<any>): void;
|
|
726
726
|
protected createTryAgainAction(): IAction;
|
|
@@ -2090,6 +2090,10 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2090
2090
|
getRootCss(): string;
|
|
2091
2091
|
private resizeObserver;
|
|
2092
2092
|
afterRenderSurvey(htmlElement: any): void;
|
|
2093
|
+
/**
|
|
2094
|
+
* An event that is raised when the survey's width or height is changed.
|
|
2095
|
+
*/
|
|
2096
|
+
onResize: EventBase<SurveyModel, ResizeEvent>;
|
|
2093
2097
|
private processResponsiveness;
|
|
2094
2098
|
triggerResponsiveness(hard: boolean): void;
|
|
2095
2099
|
destroyResizeObserver(): void;
|
|
@@ -2192,36 +2196,6 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2192
2196
|
* @see downloadFile
|
|
2193
2197
|
*/
|
|
2194
2198
|
uploadFiles(question: QuestionFileModel | QuestionSignaturePadModel, name: string, files: File[], callback: (data: any | Array<any>, errors?: any | Array<any>) => any): void;
|
|
2195
|
-
/**
|
|
2196
|
-
* Downloads a file from a server.
|
|
2197
|
-
*
|
|
2198
|
-
* The following code shows how to call this method:
|
|
2199
|
-
*
|
|
2200
|
-
* ```js
|
|
2201
|
-
* const question = survey.getQuestionByName("myFileQuestion");
|
|
2202
|
-
* survey.downloadFile(
|
|
2203
|
-
* question,
|
|
2204
|
-
* question.name,
|
|
2205
|
-
* // Download the first uploaded file
|
|
2206
|
-
* question.value[0],
|
|
2207
|
-
* (status, data) => {
|
|
2208
|
-
* if (status === "success") {
|
|
2209
|
-
* // Use `data` to retrieve the file
|
|
2210
|
-
* }
|
|
2211
|
-
* if (status === "error") {
|
|
2212
|
-
* // Handle error
|
|
2213
|
-
* }
|
|
2214
|
-
* }
|
|
2215
|
-
* );
|
|
2216
|
-
* ```
|
|
2217
|
-
*
|
|
2218
|
-
* @param question A [File Upload question instance](https://surveyjs.io/form-library/documentation/api-reference/file-model).
|
|
2219
|
-
* @param questionName The File Upload question's [`name`](https://surveyjs.io/form-library/documentation/api-reference/file-model#name).
|
|
2220
|
-
* @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.
|
|
2221
|
-
* @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.
|
|
2222
|
-
* @see onDownloadFile
|
|
2223
|
-
* @see uploadFiles
|
|
2224
|
-
*/
|
|
2225
2199
|
downloadFile(question: QuestionFileModel, questionName: string, fileValue: any, callback: (status: string, data: any) => any): void;
|
|
2226
2200
|
clearFiles(question: QuestionFileModel | QuestionSignaturePadModel, name: string, value: any, fileName: string, callback: (status: string, data: any) => any): void;
|
|
2227
2201
|
updateChoicesFromServer(question: QuestionSelectBase, choices: Array<ItemValue>, serverResult: any): Array<ItemValue>;
|
|
@@ -2646,6 +2620,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2646
2620
|
* A survey width in CSS values.
|
|
2647
2621
|
*
|
|
2648
2622
|
* Default value: `undefined` (the survey inherits the width from its container)
|
|
2623
|
+
* @see onResize
|
|
2649
2624
|
*/
|
|
2650
2625
|
width: string;
|
|
2651
2626
|
readonly renderedWidth: string;
|
|
@@ -265,7 +265,7 @@ export declare class Action extends BaseAction implements IAction, ILocalizableO
|
|
|
265
265
|
locStrsChanged(): void;
|
|
266
266
|
doAction(args: any): boolean;
|
|
267
267
|
private isMouseDown;
|
|
268
|
-
doMouseDown(): void;
|
|
268
|
+
doMouseDown(args: any): void;
|
|
269
269
|
doFocus(args: any): void;
|
|
270
270
|
private locStrChangedInPopupModel;
|
|
271
271
|
private locTitleChanged;
|
|
@@ -255,6 +255,7 @@ export declare class JsonMetadata {
|
|
|
255
255
|
private addDynamicPropertyIntoObj;
|
|
256
256
|
getDynamicPropertiesByObj(obj: any, dynamicType?: string): Array<JsonObjectProperty>;
|
|
257
257
|
getDynamicPropertiesByTypes(objType: string, dynamicType: string, invalidNames?: Array<string>): Array<JsonObjectProperty>;
|
|
258
|
+
private canAddDybamicProp;
|
|
258
259
|
hasOriginalProperty(obj: Base, propName: string): boolean;
|
|
259
260
|
getOriginalProperty(obj: Base, propName: string): JsonObjectProperty;
|
|
260
261
|
getProperty(className: string, propertyName: string): JsonObjectProperty;
|
|
@@ -56,6 +56,7 @@ export declare class ListModel<T extends BaseAction = Action> extends ActionCont
|
|
|
56
56
|
showSearchClearButton: boolean;
|
|
57
57
|
renderElements: boolean;
|
|
58
58
|
textWrapEnabled: boolean;
|
|
59
|
+
itemComponent: string;
|
|
59
60
|
static INDENT: number;
|
|
60
61
|
static MINELEMENTCOUNT: number;
|
|
61
62
|
scrollHandler: (e?: any) => void;
|
|
@@ -115,6 +115,18 @@ export declare class QuestionMatrixBaseModel<TRow, TColumn> extends Question {
|
|
|
115
115
|
*/
|
|
116
116
|
get rowTitleWidth(): string;
|
|
117
117
|
set rowTitleWidth(val: string);
|
|
118
|
+
/**
|
|
119
|
+
* Specifies how to arrange matrix questions.
|
|
120
|
+
*
|
|
121
|
+
* Possible values:
|
|
122
|
+
*
|
|
123
|
+
* - `"table"` - Displays matrix questions in a table.
|
|
124
|
+
* - `"list"` - Displays matrix questions one under another as a list.
|
|
125
|
+
* - `"auto"` (default) - Uses the `"table"` mode if the survey has sufficient width to fit the table or the `"list"` mode otherwise.
|
|
126
|
+
*/
|
|
127
|
+
set displayMode(val: "auto" | "table" | "list");
|
|
128
|
+
get displayMode(): "auto" | "table" | "list";
|
|
118
129
|
getCellAriaLabel(rowTitle: string, columnTitle: string): string;
|
|
119
130
|
get isNewA11yStructure(): boolean;
|
|
131
|
+
protected getIsMobile(): boolean;
|
|
120
132
|
}
|
|
@@ -80,8 +80,11 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
80
80
|
protected allowMobileInDesignMode(): boolean;
|
|
81
81
|
updateIsMobileFromSurvey(): void;
|
|
82
82
|
setIsMobile(val: boolean): void;
|
|
83
|
+
protected getIsMobile(): boolean;
|
|
84
|
+
get isMobile(): boolean;
|
|
85
|
+
set isMobile(val: boolean);
|
|
83
86
|
themeChanged(theme: ITheme): void;
|
|
84
|
-
|
|
87
|
+
private _isMobile;
|
|
85
88
|
forceIsInputReadOnly: boolean;
|
|
86
89
|
ariaExpanded: "true" | "false";
|
|
87
90
|
constructor(name: string);
|
|
@@ -764,7 +767,8 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
764
767
|
protected getIsAnswered(): boolean;
|
|
765
768
|
/**
|
|
766
769
|
* Question validators.
|
|
767
|
-
*
|
|
770
|
+
*
|
|
771
|
+
* [Data Validation](https://surveyjs.io/form-library/documentation/data-validation (linkStyle))
|
|
768
772
|
*/
|
|
769
773
|
get validators(): Array<SurveyValidator>;
|
|
770
774
|
set validators(val: Array<SurveyValidator>);
|
|
@@ -890,7 +894,7 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
890
894
|
protected checkForResponsiveness(el: HTMLElement): void;
|
|
891
895
|
private resizeObserver;
|
|
892
896
|
protected getObservedElementSelector(): string;
|
|
893
|
-
|
|
897
|
+
protected onMobileChanged(): void;
|
|
894
898
|
private onMobileChangedCallback;
|
|
895
899
|
triggerResponsiveness(hard?: boolean): void;
|
|
896
900
|
private triggerResponsivenessCallback;
|
|
@@ -10,6 +10,7 @@ import { SurveyError } from "./survey-error";
|
|
|
10
10
|
*/
|
|
11
11
|
export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
|
|
12
12
|
private selectAllItemValue;
|
|
13
|
+
protected selectAllItemText: LocalizableString;
|
|
13
14
|
private invisibleOldValues;
|
|
14
15
|
protected defaultSelectedItemValues: Array<ItemValue>;
|
|
15
16
|
constructor(name: string);
|
|
@@ -54,6 +55,7 @@ export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
|
|
|
54
55
|
get isAllSelected(): boolean;
|
|
55
56
|
set isAllSelected(val: boolean);
|
|
56
57
|
toggleSelectAll(): void;
|
|
58
|
+
protected allElementsSelected(): boolean;
|
|
57
59
|
/**
|
|
58
60
|
* Selects all choice items, except "Other" and "None".
|
|
59
61
|
*
|
|
@@ -532,5 +532,6 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
|
|
|
532
532
|
getRowHeaderWrapperComponentName(cell: MatrixDropdownCell): string;
|
|
533
533
|
getRowHeaderWrapperComponentData(cell: MatrixDropdownCell): any;
|
|
534
534
|
get showHorizontalScroll(): boolean;
|
|
535
|
+
protected onMobileChanged(): void;
|
|
535
536
|
getRootCss(): string;
|
|
536
537
|
}
|