survey-core 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.fontless.css +361 -339
- 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 +27 -41
- package/modern.css.map +1 -1
- package/modern.fontless.css +27 -41
- package/modern.fontless.css.map +1 -1
- package/modern.fontless.min.css +2 -2
- package/modern.min.css +2 -2
- 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 +617 -309
- 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/choicesRestful.d.ts +1 -0
- package/ts3.4/typings/packages/survey-core/src/defaultCss/defaultV2Css.d.ts +29 -17
- package/ts3.4/typings/packages/survey-core/src/header.d.ts +2 -2
- package/ts3.4/typings/packages/survey-core/src/helpers.d.ts +1 -0
- package/ts3.4/typings/packages/survey-core/src/itemvalue.d.ts +3 -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/mask/mask_base.d.ts +1 -0
- package/ts3.4/typings/packages/survey-core/src/mask/mask_datetime.d.ts +1 -0
- package/ts3.4/typings/packages/survey-core/src/panel.d.ts +3 -0
- package/ts3.4/typings/packages/survey-core/src/question.d.ts +7 -4
- package/ts3.4/typings/packages/survey-core/src/question_baseselect.d.ts +9 -1
- package/ts3.4/typings/packages/survey-core/src/question_checkbox.d.ts +3 -1
- package/ts3.4/typings/packages/survey-core/src/question_custom.d.ts +1 -1
- package/ts3.4/typings/packages/survey-core/src/question_file.d.ts +1 -1
- package/ts3.4/typings/packages/survey-core/src/question_matrix.d.ts +1 -1
- package/ts3.4/typings/packages/survey-core/src/question_matrixdropdownbase.d.ts +1 -0
- package/ts3.4/typings/packages/survey-core/src/question_matrixdropdowncolumn.d.ts +2 -2
- package/ts3.4/typings/packages/survey-core/src/question_matrixdynamic.d.ts +1 -1
- package/ts3.4/typings/packages/survey-core/src/question_paneldynamic.d.ts +15 -15
- package/ts3.4/typings/packages/survey-core/src/question_tagbox.d.ts +3 -0
- package/ts3.4/typings/packages/survey-core/src/question_text.d.ts +1 -1
- 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 +12 -36
- package/ts3.4/typings/packages/survey-core/src/surveyStrings.d.ts +1 -0
- package/ts3.4/typings/packages/survey-core/src/utils/animation.d.ts +1 -0
- package/ts3.4/typings/packages/survey-core/src/utils/responsivity-manager.d.ts +1 -2
- package/ts3.4/typings/packages/survey-core/src/utils/utils.d.ts +14 -0
- package/typings/packages/survey-core/src/actions/action.d.ts +1 -1
- package/typings/packages/survey-core/src/choicesRestful.d.ts +1 -0
- package/typings/packages/survey-core/src/defaultCss/defaultV2Css.d.ts +29 -17
- package/typings/packages/survey-core/src/header.d.ts +2 -2
- package/typings/packages/survey-core/src/helpers.d.ts +1 -0
- package/typings/packages/survey-core/src/itemvalue.d.ts +3 -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/mask/mask_base.d.ts +1 -0
- package/typings/packages/survey-core/src/mask/mask_datetime.d.ts +1 -0
- package/typings/packages/survey-core/src/panel.d.ts +3 -0
- package/typings/packages/survey-core/src/question.d.ts +8 -4
- package/typings/packages/survey-core/src/question_baseselect.d.ts +10 -1
- package/typings/packages/survey-core/src/question_checkbox.d.ts +3 -1
- package/typings/packages/survey-core/src/question_custom.d.ts +1 -1
- package/typings/packages/survey-core/src/question_file.d.ts +1 -1
- package/typings/packages/survey-core/src/question_matrix.d.ts +1 -1
- package/typings/packages/survey-core/src/question_matrixdropdownbase.d.ts +1 -0
- package/typings/packages/survey-core/src/question_matrixdropdowncolumn.d.ts +2 -2
- package/typings/packages/survey-core/src/question_matrixdynamic.d.ts +1 -1
- package/typings/packages/survey-core/src/question_paneldynamic.d.ts +15 -15
- package/typings/packages/survey-core/src/question_tagbox.d.ts +3 -0
- package/typings/packages/survey-core/src/question_text.d.ts +1 -1
- 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 +12 -36
- package/typings/packages/survey-core/src/surveyStrings.d.ts +1 -0
- package/typings/packages/survey-core/src/utils/animation.d.ts +1 -0
- package/typings/packages/survey-core/src/utils/responsivity-manager.d.ts +1 -2
- package/typings/packages/survey-core/src/utils/utils.d.ts +14 -0
|
@@ -71,6 +71,7 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
|
71
71
|
get hasSingleInput(): boolean;
|
|
72
72
|
get isContainer(): boolean;
|
|
73
73
|
getFirstQuestionToFocus(withError: boolean): Question;
|
|
74
|
+
protected getFirstInputElementId(): string;
|
|
74
75
|
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
|
75
76
|
private assignOnPropertyChangedToTemplate;
|
|
76
77
|
private addOnPropertyChangedCallback;
|
|
@@ -362,6 +363,7 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
|
362
363
|
*/
|
|
363
364
|
get allowAddPanel(): boolean;
|
|
364
365
|
set allowAddPanel(val: boolean);
|
|
366
|
+
get addButtonId(): string;
|
|
365
367
|
/**
|
|
366
368
|
* Specifies the position of newly added panels.
|
|
367
369
|
*
|
|
@@ -526,12 +528,11 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
|
526
528
|
getProgressInfo(): IProgressInfo;
|
|
527
529
|
private isRowEmpty;
|
|
528
530
|
/**
|
|
529
|
-
*
|
|
530
|
-
*
|
|
531
|
-
*
|
|
531
|
+
* Adds a new panel based on the [template](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#template).
|
|
532
|
+
*
|
|
533
|
+
* 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.
|
|
532
534
|
* @see panelCount
|
|
533
535
|
* @see panels
|
|
534
|
-
* @see canAddPanel
|
|
535
536
|
*/
|
|
536
537
|
addPanelUI(): PanelModel;
|
|
537
538
|
private focusNewPanelCallback;
|
|
@@ -549,13 +550,11 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
|
549
550
|
private canLeaveCurrentPanel;
|
|
550
551
|
private copyValue;
|
|
551
552
|
/**
|
|
552
|
-
*
|
|
553
|
-
* @param value a panel or panel index
|
|
554
|
-
* @see removePanel
|
|
555
|
-
* @see confirmDelete
|
|
556
|
-
* @see confirmDeleteText
|
|
557
|
-
* @see canRemovePanel
|
|
553
|
+
* Deletes a panel from the [`panels`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#panels) array.
|
|
558
554
|
*
|
|
555
|
+
* 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).
|
|
556
|
+
* @param value A `PanelModel` instance or zero-based panel index.
|
|
557
|
+
* @see addPanelUI
|
|
559
558
|
*/
|
|
560
559
|
removePanelUI(value: any): void;
|
|
561
560
|
isRequireConfirmOnDelete(val: any): boolean;
|
|
@@ -568,13 +567,12 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
|
568
567
|
* Switches Dynamic Panel to the previous panel.
|
|
569
568
|
*/
|
|
570
569
|
goToPrevPanel(): void;
|
|
570
|
+
private removedPanelIndex;
|
|
571
571
|
/**
|
|
572
|
-
*
|
|
573
|
-
* @param value
|
|
574
|
-
* @see
|
|
575
|
-
* @see template
|
|
572
|
+
* Deletes a panel from the [`panels`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#panels) array.
|
|
573
|
+
* @param value A `PanelModel` instance or zero-based panel index.
|
|
574
|
+
* @see addPanel
|
|
576
575
|
*/
|
|
577
|
-
private removedPanelIndex;
|
|
578
576
|
removePanel(value: any): void;
|
|
579
577
|
private getVisualPanelIndex;
|
|
580
578
|
private getPanelVisibleIndexById;
|
|
@@ -594,6 +592,7 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
|
594
592
|
private hasPanelBuildFirstTime;
|
|
595
593
|
private isBuildingPanelsFirstTime;
|
|
596
594
|
private buildPanelsFirstTime;
|
|
595
|
+
private get showAddPanelButton();
|
|
597
596
|
private get wasNotRenderedInSurvey();
|
|
598
597
|
private get canBuildPanels();
|
|
599
598
|
onFirstRendering(): void;
|
|
@@ -678,4 +677,5 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
|
678
677
|
get showNavigation(): boolean;
|
|
679
678
|
showSeparator(index: number): boolean;
|
|
680
679
|
protected calcCssClasses(css: any): any;
|
|
680
|
+
protected onMobileChanged(): void;
|
|
681
681
|
}
|
|
@@ -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;
|
|
@@ -87,6 +88,8 @@ export declare class QuestionTagboxModel extends QuestionCheckboxModel {
|
|
|
87
88
|
protected supportEmptyValidation(): boolean;
|
|
88
89
|
protected onBlurCore(event: any): void;
|
|
89
90
|
protected onFocusCore(event: any): void;
|
|
91
|
+
protected allElementsSelected(): boolean;
|
|
92
|
+
updateSelectAllItemText(isAllSelected: boolean): void;
|
|
90
93
|
dispose(): void;
|
|
91
94
|
clearValue(keepComment?: boolean): void;
|
|
92
95
|
get showClearButton(): boolean;
|
|
@@ -151,7 +151,7 @@ export declare class QuestionTextModel extends QuestionTextBase {
|
|
|
151
151
|
protected valueForSurveyCore(val: any): any;
|
|
152
152
|
protected valueFromDataCore(val: any): any;
|
|
153
153
|
private dateValidationMessage;
|
|
154
|
-
protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean): void;
|
|
154
|
+
protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean, fireCallback: boolean): void;
|
|
155
155
|
protected canSetValueToSurvey(): boolean;
|
|
156
156
|
protected convertFuncValuetoQuestionValue(val: any): any;
|
|
157
157
|
private getMinMaxErrorText;
|
|
@@ -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";
|
|
@@ -348,7 +348,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
348
348
|
* [View Demo](https://surveyjs.io/form-library/examples/edit-survey-questions-markdown/ (linkStyle))
|
|
349
349
|
*/
|
|
350
350
|
onTextMarkdown: EventBase<SurveyModel, TextMarkdownEvent>;
|
|
351
|
-
onTextRenderAs: EventBase<SurveyModel,
|
|
351
|
+
onTextRenderAs: EventBase<SurveyModel, any>;
|
|
352
352
|
/**
|
|
353
353
|
* 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.
|
|
354
354
|
*/
|
|
@@ -456,7 +456,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
456
456
|
* [View Demo](https://surveyjs.io/form-library/examples/survey-animation/ (linkStyle))
|
|
457
457
|
*/
|
|
458
458
|
onAfterRenderSurvey: EventBase<SurveyModel, AfterRenderSurveyEvent>;
|
|
459
|
-
onAfterRenderHeader: EventBase<SurveyModel,
|
|
459
|
+
onAfterRenderHeader: EventBase<SurveyModel, any>;
|
|
460
460
|
/**
|
|
461
461
|
* An event that is raised after a page is rendered to the DOM. Use it to modify page markup.
|
|
462
462
|
*
|
|
@@ -633,7 +633,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
633
633
|
* @see startTimer
|
|
634
634
|
*/
|
|
635
635
|
onTimer: EventBase<SurveyModel, {}>;
|
|
636
|
-
onTimerPanelInfoText: EventBase<SurveyModel,
|
|
636
|
+
onTimerPanelInfoText: EventBase<SurveyModel, any>;
|
|
637
637
|
/**
|
|
638
638
|
* 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.
|
|
639
639
|
*/
|
|
@@ -721,8 +721,8 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
721
721
|
* 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.
|
|
722
722
|
*/
|
|
723
723
|
onOpenDropdownMenu: EventBase<SurveyModel, OpenDropdownMenuEvent>;
|
|
724
|
-
onElementWrapperComponentName: EventBase<SurveyModel,
|
|
725
|
-
onElementWrapperComponentData: EventBase<SurveyModel,
|
|
724
|
+
onElementWrapperComponentName: EventBase<SurveyModel, any>;
|
|
725
|
+
onElementWrapperComponentData: EventBase<SurveyModel, any>;
|
|
726
726
|
constructor(jsonObj?: any, renderedElement?: any);
|
|
727
727
|
processClosedPopup(question: IQuestion, popupModel: PopupModel<any>): void;
|
|
728
728
|
protected createTryAgainAction(): IAction;
|
|
@@ -796,6 +796,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
796
796
|
lazyRenderingFirstBatchSizeValue: number;
|
|
797
797
|
get lazyRenderingFirstBatchSize(): number;
|
|
798
798
|
set lazyRenderingFirstBatchSize(val: number);
|
|
799
|
+
disableLazyRenderingBeforeElement(el: IElement): void;
|
|
799
800
|
private updateLazyRenderingRowsOnRemovingElements;
|
|
800
801
|
/**
|
|
801
802
|
* A list of triggers in the survey.
|
|
@@ -2176,6 +2177,10 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2176
2177
|
getRootCss(): string;
|
|
2177
2178
|
private resizeObserver;
|
|
2178
2179
|
afterRenderSurvey(htmlElement: any): void;
|
|
2180
|
+
/**
|
|
2181
|
+
* An event that is raised when the survey's width or height is changed.
|
|
2182
|
+
*/
|
|
2183
|
+
onResize: EventBase<SurveyModel, ResizeEvent>;
|
|
2179
2184
|
private processResponsiveness;
|
|
2180
2185
|
triggerResponsiveness(hard: boolean): void;
|
|
2181
2186
|
destroyResizeObserver(): void;
|
|
@@ -2278,36 +2283,6 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2278
2283
|
* @see downloadFile
|
|
2279
2284
|
*/
|
|
2280
2285
|
uploadFiles(question: QuestionFileModel | QuestionSignaturePadModel, name: string, files: File[], callback: (data: any | Array<any>, errors?: any | Array<any>) => any): void;
|
|
2281
|
-
/**
|
|
2282
|
-
* Downloads a file from a server.
|
|
2283
|
-
*
|
|
2284
|
-
* The following code shows how to call this method:
|
|
2285
|
-
*
|
|
2286
|
-
* ```js
|
|
2287
|
-
* const question = survey.getQuestionByName("myFileQuestion");
|
|
2288
|
-
* survey.downloadFile(
|
|
2289
|
-
* question,
|
|
2290
|
-
* question.name,
|
|
2291
|
-
* // Download the first uploaded file
|
|
2292
|
-
* question.value[0],
|
|
2293
|
-
* (status, data) => {
|
|
2294
|
-
* if (status === "success") {
|
|
2295
|
-
* // Use `data` to retrieve the file
|
|
2296
|
-
* }
|
|
2297
|
-
* if (status === "error") {
|
|
2298
|
-
* // Handle error
|
|
2299
|
-
* }
|
|
2300
|
-
* }
|
|
2301
|
-
* );
|
|
2302
|
-
* ```
|
|
2303
|
-
*
|
|
2304
|
-
* @param question A [File Upload question instance](https://surveyjs.io/form-library/documentation/api-reference/file-model).
|
|
2305
|
-
* @param questionName The File Upload question's [`name`](https://surveyjs.io/form-library/documentation/api-reference/file-model#name).
|
|
2306
|
-
* @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.
|
|
2307
|
-
* @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.
|
|
2308
|
-
* @see onDownloadFile
|
|
2309
|
-
* @see uploadFiles
|
|
2310
|
-
*/
|
|
2311
2286
|
downloadFile(question: QuestionFileModel, questionName: string, fileValue: any, callback: (status: string, data: any) => any): void;
|
|
2312
2287
|
clearFiles(question: QuestionFileModel | QuestionSignaturePadModel, name: string, value: any, fileName: string, callback: (status: string, data: any) => any): void;
|
|
2313
2288
|
updateChoicesFromServer(question: QuestionSelectBase, choices: Array<ItemValue>, serverResult: any): Array<ItemValue>;
|
|
@@ -2736,6 +2711,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2736
2711
|
* A survey width in CSS values.
|
|
2737
2712
|
*
|
|
2738
2713
|
* Default value: `undefined` (the survey inherits the width from its container)
|
|
2714
|
+
* @see onResize
|
|
2739
2715
|
*/
|
|
2740
2716
|
get width(): string;
|
|
2741
2717
|
set width(val: string);
|
|
@@ -62,6 +62,7 @@ export declare abstract class AnimationProperty<T, S extends IAnimationConsumer<
|
|
|
62
62
|
sync(newValue: T): void;
|
|
63
63
|
private cancelCallback;
|
|
64
64
|
cancel(): void;
|
|
65
|
+
cancelAnimations(): void;
|
|
65
66
|
}
|
|
66
67
|
export declare class AnimationBoolean extends AnimationProperty<boolean> {
|
|
67
68
|
protected animation: AnimationPropertyUtils;
|
|
@@ -9,7 +9,7 @@ export declare class ResponsivityManager {
|
|
|
9
9
|
private model;
|
|
10
10
|
private itemsSelector;
|
|
11
11
|
private dotsItemSize;
|
|
12
|
-
private delayedUpdateFunction
|
|
12
|
+
private delayedUpdateFunction;
|
|
13
13
|
private resizeObserver;
|
|
14
14
|
private isInitialized;
|
|
15
15
|
protected minDimensionConst: number;
|
|
@@ -24,7 +24,6 @@ export declare class ResponsivityManager {
|
|
|
24
24
|
protected getAvailableSpace(): number;
|
|
25
25
|
protected calcItemSize(item: HTMLDivElement): number;
|
|
26
26
|
private calcMinDimension;
|
|
27
|
-
private getRenderedVisibleActionsCount;
|
|
28
27
|
private calcItemsSizes;
|
|
29
28
|
protected calcActionDimensions(currentAction: Action, item: HTMLDivElement): void;
|
|
30
29
|
private get isContainerVisible();
|
|
@@ -54,5 +54,19 @@ export declare function compareArrays<T>(oldValue: Array<T>, newValue: Array<T>,
|
|
|
54
54
|
}>;
|
|
55
55
|
mergedItems: Array<T>;
|
|
56
56
|
};
|
|
57
|
+
interface IVerticalDimensions {
|
|
58
|
+
paddingTop: string;
|
|
59
|
+
paddingBottom: string;
|
|
60
|
+
marginTop: string;
|
|
61
|
+
marginBottom: string;
|
|
62
|
+
heightTo: string;
|
|
63
|
+
borderTopWidth: string;
|
|
64
|
+
borderBottomWidth: string;
|
|
65
|
+
heightFrom: string;
|
|
66
|
+
}
|
|
67
|
+
export declare function getVerticalDimensions(el: HTMLElement): IVerticalDimensions;
|
|
68
|
+
export declare function setPropertiesOnElementForAnimation(el: HTMLElement, styles: any, prefix?: string): void;
|
|
69
|
+
export declare function prepareElementForVerticalAnimation(el: HTMLElement): void;
|
|
70
|
+
export declare function cleanHtmlElementAfterAnimation(el: HTMLElement): void;
|
|
57
71
|
export declare function roundTo2Decimals(number: number): number;
|
|
58
72
|
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 };
|