survey-core 1.9.124 → 1.9.126
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 +138 -56
- package/defaultV2.css.map +1 -1
- package/defaultV2.fontless.css +138 -56
- package/defaultV2.fontless.css.map +1 -1
- package/defaultV2.fontless.min.css +2 -2
- package/defaultV2.min.css +2 -2
- package/i18n/arabic.js +14 -3
- package/i18n/arabic.js.map +1 -1
- package/i18n/arabic.min.js +2 -2
- package/i18n/basque.js +14 -3
- package/i18n/basque.js.map +1 -1
- package/i18n/basque.min.js +2 -2
- package/i18n/bulgarian.js +14 -3
- package/i18n/bulgarian.js.map +1 -1
- package/i18n/bulgarian.min.js +2 -2
- package/i18n/catalan.js +14 -3
- package/i18n/catalan.js.map +1 -1
- package/i18n/catalan.min.js +2 -2
- package/i18n/croatian.js +14 -3
- package/i18n/croatian.js.map +1 -1
- package/i18n/croatian.min.js +2 -2
- package/i18n/czech.js +14 -3
- package/i18n/czech.js.map +1 -1
- package/i18n/czech.min.js +2 -2
- package/i18n/danish.js +14 -3
- package/i18n/danish.js.map +1 -1
- package/i18n/danish.min.js +2 -2
- package/i18n/dutch.js +14 -3
- package/i18n/dutch.js.map +1 -1
- package/i18n/dutch.min.js +2 -2
- package/i18n/english.js +2 -1
- package/i18n/english.js.map +1 -1
- package/i18n/english.min.js +2 -2
- package/i18n/estonian.js +14 -3
- package/i18n/estonian.js.map +1 -1
- package/i18n/estonian.min.js +2 -2
- package/i18n/finnish.js +14 -3
- package/i18n/finnish.js.map +1 -1
- package/i18n/finnish.min.js +2 -2
- package/i18n/french.js +14 -3
- package/i18n/french.js.map +1 -1
- package/i18n/french.min.js +2 -2
- package/i18n/georgian.js +14 -3
- package/i18n/georgian.js.map +1 -1
- package/i18n/georgian.min.js +2 -2
- package/i18n/german.js +14 -3
- package/i18n/german.js.map +1 -1
- package/i18n/german.min.js +2 -2
- package/i18n/greek.js +14 -3
- package/i18n/greek.js.map +1 -1
- package/i18n/greek.min.js +2 -2
- package/i18n/hebrew.js +14 -3
- package/i18n/hebrew.js.map +1 -1
- package/i18n/hebrew.min.js +2 -2
- package/i18n/hindi.js +14 -3
- package/i18n/hindi.js.map +1 -1
- package/i18n/hindi.min.js +2 -2
- package/i18n/hungarian.js +14 -3
- package/i18n/hungarian.js.map +1 -1
- package/i18n/hungarian.min.js +2 -2
- package/i18n/icelandic.js +14 -3
- package/i18n/icelandic.js.map +1 -1
- package/i18n/icelandic.min.js +2 -2
- package/i18n/index.js +612 -95
- package/i18n/index.js.map +1 -1
- package/i18n/index.min.js +2 -2
- package/i18n/indonesian.js +14 -3
- package/i18n/indonesian.js.map +1 -1
- package/i18n/indonesian.min.js +2 -2
- package/i18n/italian.js +14 -3
- package/i18n/italian.js.map +1 -1
- package/i18n/italian.min.js +2 -2
- package/i18n/japanese.js +14 -3
- package/i18n/japanese.js.map +1 -1
- package/i18n/japanese.min.js +2 -2
- package/i18n/kazakh.js +14 -3
- package/i18n/kazakh.js.map +1 -1
- package/i18n/kazakh.min.js +2 -2
- package/i18n/korean.js +14 -3
- package/i18n/korean.js.map +1 -1
- package/i18n/korean.min.js +2 -2
- package/i18n/latvian.js +14 -3
- package/i18n/latvian.js.map +1 -1
- package/i18n/latvian.min.js +2 -2
- package/i18n/lithuanian.js +14 -3
- package/i18n/lithuanian.js.map +1 -1
- package/i18n/lithuanian.min.js +2 -2
- package/i18n/macedonian.js +14 -3
- package/i18n/macedonian.js.map +1 -1
- package/i18n/macedonian.min.js +2 -2
- package/i18n/malay.js +14 -3
- package/i18n/malay.js.map +1 -1
- package/i18n/malay.min.js +2 -2
- package/i18n/nl-BE.js +14 -3
- package/i18n/nl-BE.js.map +1 -1
- package/i18n/nl-BE.min.js +2 -2
- package/i18n/norwegian.js +14 -3
- package/i18n/norwegian.js.map +1 -1
- package/i18n/norwegian.min.js +2 -2
- package/i18n/persian.js +14 -3
- package/i18n/persian.js.map +1 -1
- package/i18n/persian.min.js +2 -2
- package/i18n/polish.js +14 -3
- package/i18n/polish.js.map +1 -1
- package/i18n/polish.min.js +2 -2
- package/i18n/portuguese-br.js +14 -3
- package/i18n/portuguese-br.js.map +1 -1
- package/i18n/portuguese-br.min.js +2 -2
- package/i18n/portuguese.js +14 -3
- package/i18n/portuguese.js.map +1 -1
- package/i18n/portuguese.min.js +2 -2
- package/i18n/romanian.js +14 -3
- package/i18n/romanian.js.map +1 -1
- package/i18n/romanian.min.js +2 -2
- package/i18n/russian.js +14 -3
- package/i18n/russian.js.map +1 -1
- package/i18n/russian.min.js +2 -2
- package/i18n/serbian.js +14 -3
- package/i18n/serbian.js.map +1 -1
- package/i18n/serbian.min.js +2 -2
- package/i18n/simplified-chinese.js +14 -3
- package/i18n/simplified-chinese.js.map +1 -1
- package/i18n/simplified-chinese.min.js +2 -2
- package/i18n/slovak.js +14 -3
- package/i18n/slovak.js.map +1 -1
- package/i18n/slovak.min.js +2 -2
- package/i18n/spanish.js +14 -3
- package/i18n/spanish.js.map +1 -1
- package/i18n/spanish.min.js +2 -2
- package/i18n/swahili.js +14 -3
- package/i18n/swahili.js.map +1 -1
- package/i18n/swahili.min.js +2 -2
- package/i18n/swedish.js +14 -3
- package/i18n/swedish.js.map +1 -1
- package/i18n/swedish.min.js +2 -2
- package/i18n/tajik.js +1 -1
- package/i18n/tajik.min.js +1 -1
- package/i18n/telugu.js +14 -3
- package/i18n/telugu.js.map +1 -1
- package/i18n/telugu.min.js +2 -2
- package/i18n/thai.js +14 -3
- package/i18n/thai.js.map +1 -1
- package/i18n/thai.min.js +2 -2
- package/i18n/traditional-chinese.js +14 -3
- package/i18n/traditional-chinese.js.map +1 -1
- package/i18n/traditional-chinese.min.js +2 -2
- package/i18n/turkish.js +14 -3
- package/i18n/turkish.js.map +1 -1
- package/i18n/turkish.min.js +2 -2
- package/i18n/ukrainian.js +14 -3
- package/i18n/ukrainian.js.map +1 -1
- package/i18n/ukrainian.min.js +2 -2
- package/i18n/urdu.js +14 -3
- package/i18n/urdu.js.map +1 -1
- package/i18n/urdu.min.js +2 -2
- package/i18n/vietnamese.js +14 -3
- package/i18n/vietnamese.js.map +1 -1
- package/i18n/vietnamese.min.js +2 -2
- package/i18n/welsh.js +14 -3
- package/i18n/welsh.js.map +1 -1
- package/i18n/welsh.min.js +2 -2
- package/modern.css +70 -48
- package/modern.css.map +1 -1
- package/modern.fontless.css +70 -48
- 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.js +1 -1
- package/plugins/bootstrap-integration.min.js +1 -1
- package/plugins/bootstrap-material-integration.js +1 -1
- package/plugins/bootstrap-material-integration.min.js +1 -1
- package/survey.core.js +777 -243
- package/survey.core.js.map +1 -1
- package/survey.core.min.js +3 -3
- package/survey.css +70 -48
- package/survey.css.map +1 -1
- package/survey.i18n.js +612 -95
- package/survey.i18n.js.map +1 -1
- package/survey.i18n.min.js +2 -2
- package/survey.min.css +2 -2
- 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/actions/action.d.ts +3 -3
- package/ts3.4/typings/base-interfaces.d.ts +1 -0
- package/ts3.4/typings/base.d.ts +3 -1
- package/ts3.4/typings/defaultCss/cssmodern.d.ts +6 -1
- package/ts3.4/typings/defaultCss/cssstandard.d.ts +6 -1
- package/ts3.4/typings/defaultCss/defaultV2Css.d.ts +8 -1
- package/ts3.4/typings/error.d.ts +6 -0
- package/ts3.4/typings/jsonobject.d.ts +4 -0
- package/ts3.4/typings/localizablestring.d.ts +1 -0
- package/ts3.4/typings/localization/english.d.ts +1 -0
- package/ts3.4/typings/martixBase.d.ts +6 -2
- package/ts3.4/typings/panel.d.ts +3 -3
- package/ts3.4/typings/popup-survey.d.ts +8 -2
- package/ts3.4/typings/question.d.ts +4 -3
- package/ts3.4/typings/question_baseselect.d.ts +4 -2
- package/ts3.4/typings/question_custom.d.ts +28 -1
- package/ts3.4/typings/question_matrix.d.ts +23 -2
- package/ts3.4/typings/question_matrixdropdownbase.d.ts +9 -8
- package/ts3.4/typings/question_matrixdropdowncolumn.d.ts +179 -0
- package/ts3.4/typings/question_paneldynamic.d.ts +7 -0
- package/ts3.4/typings/question_ranking.d.ts +1 -0
- package/ts3.4/typings/settings.d.ts +2 -2
- package/ts3.4/typings/survey-element.d.ts +2 -0
- package/ts3.4/typings/survey-error.d.ts +1 -1
- package/ts3.4/typings/survey-events-api.d.ts +3 -3
- package/ts3.4/typings/survey.d.ts +5 -0
- package/ts3.4/typings/surveyStrings.d.ts +1 -0
- package/ts3.4/typings/surveyToc.d.ts +0 -2
- package/ts3.4/typings/themes.d.ts +14 -0
- package/typings/actions/action.d.ts +3 -3
- package/typings/base-interfaces.d.ts +1 -0
- package/typings/base.d.ts +3 -1
- package/typings/defaultCss/cssmodern.d.ts +6 -1
- package/typings/defaultCss/cssstandard.d.ts +6 -1
- package/typings/defaultCss/defaultV2Css.d.ts +8 -1
- package/typings/error.d.ts +6 -0
- package/typings/jsonobject.d.ts +4 -0
- package/typings/localizablestring.d.ts +1 -0
- package/typings/localization/english.d.ts +1 -0
- package/typings/martixBase.d.ts +6 -2
- package/typings/panel.d.ts +3 -3
- package/typings/popup-survey.d.ts +8 -2
- package/typings/question.d.ts +4 -3
- package/typings/question_baseselect.d.ts +4 -2
- package/typings/question_custom.d.ts +28 -1
- package/typings/question_matrix.d.ts +25 -3
- package/typings/question_matrixdropdownbase.d.ts +9 -8
- package/typings/question_matrixdropdowncolumn.d.ts +179 -0
- package/typings/question_paneldynamic.d.ts +7 -0
- package/typings/question_ranking.d.ts +1 -0
- package/typings/settings.d.ts +2 -2
- package/typings/survey-element.d.ts +2 -0
- package/typings/survey-error.d.ts +1 -1
- package/typings/survey-events-api.d.ts +3 -3
- package/typings/survey.d.ts +6 -0
- package/typings/surveyStrings.d.ts +1 -0
- package/typings/surveyToc.d.ts +0 -2
- package/typings/themes.d.ts +14 -0
|
@@ -143,11 +143,13 @@ export declare class JsonMetadataClass {
|
|
|
143
143
|
properties: Array<JsonObjectProperty>;
|
|
144
144
|
private isCustomValue;
|
|
145
145
|
private allProperties;
|
|
146
|
+
private requiredProperties;
|
|
146
147
|
private hashProperties;
|
|
147
148
|
constructor(name: string, properties: Array<any>, creator?: (json?: any) => any, parentName?: string);
|
|
148
149
|
find(name: string): JsonObjectProperty;
|
|
149
150
|
findProperty(name: string): JsonObjectProperty;
|
|
150
151
|
getAllProperties(): Array<JsonObjectProperty>;
|
|
152
|
+
getRequiredProperties(): Array<JsonObjectProperty>;
|
|
151
153
|
resetAllProperties(): void;
|
|
152
154
|
readonly isCustom: boolean;
|
|
153
155
|
private fillAllProperties;
|
|
@@ -168,6 +170,7 @@ export declare class JsonMetadata {
|
|
|
168
170
|
private classes;
|
|
169
171
|
private alternativeNames;
|
|
170
172
|
private childrenClasses;
|
|
173
|
+
private dynamicPropsCache;
|
|
171
174
|
onSerializingProperty: ((obj: Base, prop: JsonObjectProperty, value: any, json: any) => boolean) | undefined;
|
|
172
175
|
getObjPropertyValue(obj: any, name: string): any;
|
|
173
176
|
setObjPropertyValue(obj: any, name: string, val: any): void;
|
|
@@ -195,6 +198,7 @@ export declare class JsonMetadata {
|
|
|
195
198
|
addProperty(className: string, propertyInfo: any): JsonObjectProperty;
|
|
196
199
|
private addCustomPropertyCore;
|
|
197
200
|
removeProperty(className: string, propertyName: string): boolean;
|
|
201
|
+
private clearDynamicPropsCache;
|
|
198
202
|
private removePropertyFromClass;
|
|
199
203
|
private fillChildrenClasses;
|
|
200
204
|
findClass(name: string): JsonMetadataClass;
|
|
@@ -40,6 +40,7 @@ export declare class LocalizableString implements ILocalizableString {
|
|
|
40
40
|
searchText: string;
|
|
41
41
|
searchIndex: number;
|
|
42
42
|
disableLocalization: boolean;
|
|
43
|
+
defaultValue: string;
|
|
43
44
|
constructor(owner: ILocalizableOwner, useMarkdown?: boolean, name?: string);
|
|
44
45
|
getIsMultiple(): boolean;
|
|
45
46
|
readonly locale: string;
|
|
@@ -24,9 +24,13 @@ export declare class QuestionMatrixBaseModel<TRow, TColumn> extends Question {
|
|
|
24
24
|
/*
|
|
25
25
|
* An array of matrix columns.
|
|
26
26
|
*
|
|
27
|
-
*
|
|
27
|
+
* For a Single-Select Matrix, the `columns` array can contain configuration objects with the `text` (display value) and `value` (value to be saved in survey results) properties. Alternatively, the array can contain primitive values that will be used as both the display values and values to be saved in survey results.
|
|
28
28
|
*
|
|
29
|
-
* [View Demo](https://surveyjs.io/form-library/examples/single-selection-matrix-table-question/ (linkStyle))
|
|
29
|
+
* [View "Single-Select Matrix" Demo](https://surveyjs.io/form-library/examples/single-selection-matrix-table-question/ (linkStyle))
|
|
30
|
+
*
|
|
31
|
+
* For a Multi-Select Matrix or Dynamic Matrix, the `columns` array should contain configuration objects with properties described in the [`MatrixDropdownColumn`](https://surveyjs.io/form-library/documentation/api-reference/multi-select-matrix-column-values) API Reference section.
|
|
32
|
+
*
|
|
33
|
+
* [View "Multi-Select Matrix" Demo](https://surveyjs.io/form-library/examples/questiontype-matrixdropdown/ (linkStyle))
|
|
30
34
|
*/
|
|
31
35
|
columns: Array<any>;
|
|
32
36
|
readonly visibleColumns: Array<any>;
|
package/ts3.4/typings/panel.d.ts
CHANGED
|
@@ -117,7 +117,7 @@ export declare class PanelModelBase extends SurveyElement<Question> implements I
|
|
|
117
117
|
*
|
|
118
118
|
* A survey parses and runs all expressions on startup. If any values used in the expression change, the survey re-evaluates it.
|
|
119
119
|
*
|
|
120
|
-
* Refer to the following help topic for more information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility)
|
|
120
|
+
* Refer to the following help topic for more information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility).
|
|
121
121
|
* @see visible
|
|
122
122
|
* @see isVisible
|
|
123
123
|
*/
|
|
@@ -207,7 +207,7 @@ export declare class PanelModelBase extends SurveyElement<Question> implements I
|
|
|
207
207
|
*
|
|
208
208
|
* A survey parses and runs all expressions on startup. If any values used in the expression change, the survey re-evaluates it.
|
|
209
209
|
*
|
|
210
|
-
* Refer to the following help topic for more information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility)
|
|
210
|
+
* Refer to the following help topic for more information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility).
|
|
211
211
|
* @see isRequired
|
|
212
212
|
*/
|
|
213
213
|
requiredIf: string;
|
|
@@ -327,7 +327,7 @@ export declare class PanelModelBase extends SurveyElement<Question> implements I
|
|
|
327
327
|
*
|
|
328
328
|
* A survey parses and runs all expressions on startup. If any values used in the expression change, the survey re-evaluates it.
|
|
329
329
|
*
|
|
330
|
-
* Refer to the following help topic for more information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility)
|
|
330
|
+
* Refer to the following help topic for more information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility).
|
|
331
331
|
* @see readOnly
|
|
332
332
|
* @see isReadOnly
|
|
333
333
|
*/
|
|
@@ -55,12 +55,14 @@ export declare class PopupSurveyModel extends Base {
|
|
|
55
55
|
* You can set this property to `true` or `false` to control the expand state of the pop-up survey. Alternatively, you can use the [`expand()`](#expand) and [`collapse()`](#collapse) methods.
|
|
56
56
|
*/
|
|
57
57
|
isExpanded: boolean;
|
|
58
|
+
readonly isCollapsed: boolean;
|
|
58
59
|
protected onExpandedChanged(): void;
|
|
59
60
|
/*
|
|
60
61
|
* A title for the pop-up window. If this property is undefined, the title is taken from [`SurveyModel`](#survey)'s [`title`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#title) property.
|
|
61
62
|
*/
|
|
62
63
|
title: string;
|
|
63
64
|
readonly locTitle: LocalizableString;
|
|
65
|
+
readonly locDescription: LocalizableString;
|
|
64
66
|
/**
|
|
65
67
|
* Expands the pop-up window.
|
|
66
68
|
*
|
|
@@ -90,10 +92,14 @@ export declare class PopupSurveyModel extends Base {
|
|
|
90
92
|
readonly css: any;
|
|
91
93
|
readonly cssButton: string;
|
|
92
94
|
readonly cssRoot: string;
|
|
95
|
+
readonly cssRootCollapsedMod: string;
|
|
96
|
+
readonly cssRootContent: string;
|
|
93
97
|
readonly cssBody: string;
|
|
94
98
|
readonly cssHeaderRoot: string;
|
|
95
|
-
readonly
|
|
96
|
-
readonly
|
|
99
|
+
readonly cssHeaderTitleCollapsed: string;
|
|
100
|
+
readonly cssHeaderButtonsContainer: string;
|
|
101
|
+
readonly cssHeaderCollapseButton: string;
|
|
102
|
+
readonly cssHeaderCloseButton: string;
|
|
97
103
|
readonly renderedWidth: string;
|
|
98
104
|
width: string;
|
|
99
105
|
private updateCss;
|
|
@@ -154,7 +154,7 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
154
154
|
*
|
|
155
155
|
* A survey parses and runs all expressions on startup. If any values used in the expression change, the survey re-evaluates it.
|
|
156
156
|
*
|
|
157
|
-
* Refer to the following help topic for more information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility)
|
|
157
|
+
* Refer to the following help topic for more information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility).
|
|
158
158
|
* @see visible
|
|
159
159
|
* @see isVisible
|
|
160
160
|
*/
|
|
@@ -375,6 +375,7 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
375
375
|
readonly cssHeader: string;
|
|
376
376
|
protected setCssHeader(val: string): void;
|
|
377
377
|
protected getCssHeader(cssClasses: any): string;
|
|
378
|
+
protected supportContainerQueries(): boolean;
|
|
378
379
|
readonly cssContent: string;
|
|
379
380
|
protected setCssContent(val: string): void;
|
|
380
381
|
protected getCssContent(cssClasses: any): string;
|
|
@@ -433,7 +434,7 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
433
434
|
*
|
|
434
435
|
* A survey parses and runs all expressions on startup. If any values used in the expression change, the survey re-evaluates it.
|
|
435
436
|
*
|
|
436
|
-
* Refer to the following help topic for more information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility)
|
|
437
|
+
* Refer to the following help topic for more information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility).
|
|
437
438
|
* @see isRequired
|
|
438
439
|
*/
|
|
439
440
|
requiredIf: string;
|
|
@@ -474,7 +475,7 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
474
475
|
*
|
|
475
476
|
* A survey parses and runs all expressions on startup. If any values used in the expression change, the survey re-evaluates it.
|
|
476
477
|
*
|
|
477
|
-
* Refer to the following help topic for more information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility)
|
|
478
|
+
* Refer to the following help topic for more information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility).
|
|
478
479
|
* @see readOnly
|
|
479
480
|
* @see isReadOnly
|
|
480
481
|
*/
|
|
@@ -272,7 +272,7 @@ export declare class QuestionSelectBase extends Question {
|
|
|
272
272
|
otherPlaceholder: string;
|
|
273
273
|
otherPlaceHolder: string;
|
|
274
274
|
/*
|
|
275
|
-
*
|
|
275
|
+
* Gets or sets an error message displayed when users select the "Other" choice item but leave the comment area empty.
|
|
276
276
|
* @see showOtherItem
|
|
277
277
|
*/
|
|
278
278
|
otherErrorText: string;
|
|
@@ -354,6 +354,8 @@ export declare class QuestionSelectBase extends Question {
|
|
|
354
354
|
private isFirstLoadChoicesFromUrl;
|
|
355
355
|
protected onBeforeSendRequest(): void;
|
|
356
356
|
protected onLoadChoicesFromUrl(array: Array<ItemValue>): void;
|
|
357
|
+
private canAvoidSettChoicesFromUrl;
|
|
358
|
+
private setChoicesFromUrl;
|
|
357
359
|
private createCachedValueForUrlRequests;
|
|
358
360
|
private updateCachedValueForUrlRequests;
|
|
359
361
|
private isUpdatingChoicesDependedQuestions;
|
|
@@ -437,7 +439,7 @@ export declare class QuestionCheckboxBase extends QuestionSelectBase {
|
|
|
437
439
|
colCountChangedCallback: () => void;
|
|
438
440
|
constructor(name: string);
|
|
439
441
|
/*
|
|
440
|
-
*
|
|
442
|
+
* Gets or sets the number of columns used to arrange choice items.
|
|
441
443
|
*
|
|
442
444
|
* Set this property to 0 if you want to display all items in one line. The default value depends on the available width.
|
|
443
445
|
* @see separateSpecialChoices
|
|
@@ -37,13 +37,37 @@ export interface ICustomQuestionTypeConfiguration {
|
|
|
37
37
|
*/
|
|
38
38
|
onInit?(): void;
|
|
39
39
|
/**
|
|
40
|
-
* Specifies whether the custom question type is available in the Toolbox and the Add Question menu.
|
|
40
|
+
* Specifies whether the custom question type is available in the Toolbox and the Add Question menu in Survey Creator.
|
|
41
41
|
*
|
|
42
42
|
* Default value: `true`
|
|
43
43
|
*
|
|
44
44
|
* Set this property to `false` if your custom question type is used only to customize Property Grid content and is not meant for a survey.
|
|
45
45
|
*/
|
|
46
46
|
showInToolbox?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* A default title for questions created with this question type. Survey authors can change the default title in the JSON object or in Survey Creator's Property Grid.
|
|
49
|
+
*
|
|
50
|
+
* You can specify the question title with a string value or with an object that defines different titles for different locales:
|
|
51
|
+
*
|
|
52
|
+
* ```js
|
|
53
|
+
* import { ComponentCollection } from "survey-core";
|
|
54
|
+
*
|
|
55
|
+
* ComponentCollection.Instance.add({
|
|
56
|
+
* // ...
|
|
57
|
+
* defaultQuestionTitle: "Default title"
|
|
58
|
+
* });
|
|
59
|
+
* // ===== OR =====
|
|
60
|
+
* ComponentCollection.Instance.add({
|
|
61
|
+
* // ...
|
|
62
|
+
* defaultQuestionTitle: {
|
|
63
|
+
* en: "Default title",
|
|
64
|
+
* de: "Standardtitel",
|
|
65
|
+
* fr: "Titre par défaut"
|
|
66
|
+
* }
|
|
67
|
+
* });
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
defaultQuestionTitle?: any;
|
|
47
71
|
/**
|
|
48
72
|
* A function that is called when the custom question is created. Use it to access questions nested within a [composite question type](https://surveyjs.io/form-library/documentation/customize-question-types/create-composite-question-types).
|
|
49
73
|
*
|
|
@@ -208,6 +232,7 @@ export declare class ComponentQuestionJSON {
|
|
|
208
232
|
onValueChanging(question: Question, name: string, newValue: any): any;
|
|
209
233
|
onItemValuePropertyChanged(question: Question, item: ItemValue, propertyName: string, name: string, newValue: any): void;
|
|
210
234
|
getDisplayValue(keyAsText: boolean, value: any, question: Question): any;
|
|
235
|
+
readonly defaultQuestionTitle: any;
|
|
211
236
|
setValueToQuestion(val: any): any;
|
|
212
237
|
getValueFromQuestion(val: any): any;
|
|
213
238
|
readonly isComposite: boolean;
|
|
@@ -231,10 +256,12 @@ export declare class ComponentCollection {
|
|
|
231
256
|
}
|
|
232
257
|
export declare abstract class QuestionCustomModelBase extends Question implements ISurveyImpl, ISurveyData, IPanel {
|
|
233
258
|
customQuestion: ComponentQuestionJSON;
|
|
259
|
+
private locQuestionTitle;
|
|
234
260
|
constructor(name: string, customQuestion: ComponentQuestionJSON);
|
|
235
261
|
getType(): string;
|
|
236
262
|
locStrsChanged(): void;
|
|
237
263
|
localeChanged(): void;
|
|
264
|
+
protected getDefaultTitle(): string;
|
|
238
265
|
addUsedLocales(locales: Array<string>): void;
|
|
239
266
|
needResponsiveWidth(): boolean;
|
|
240
267
|
protected createWrapper(): void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { HashTable } from "./helpers";
|
|
1
2
|
import { ItemValue } from "./itemvalue";
|
|
2
3
|
import { QuestionMatrixBaseModel } from "./martixBase";
|
|
3
4
|
import { Base } from "./base";
|
|
@@ -8,17 +9,23 @@ import { IPlainDataOptions } from "./base-interfaces";
|
|
|
8
9
|
export interface IMatrixData {
|
|
9
10
|
onMatrixRowChanged(row: MatrixRowModel): void;
|
|
10
11
|
getCorrectedRowValue(value: any): any;
|
|
12
|
+
cssClasses: any;
|
|
13
|
+
isInputReadOnly: boolean;
|
|
14
|
+
hasErrorInRow(row: MatrixRowModel): boolean;
|
|
11
15
|
}
|
|
12
16
|
export declare class MatrixRowModel extends Base {
|
|
17
|
+
item: ItemValue;
|
|
13
18
|
fullName: string;
|
|
14
19
|
private data;
|
|
15
|
-
private item;
|
|
16
20
|
cellClick: any;
|
|
17
21
|
constructor(item: ItemValue, fullName: string, data: IMatrixData, value: any);
|
|
18
22
|
readonly name: string;
|
|
19
23
|
readonly text: string;
|
|
20
24
|
readonly locText: LocalizableString;
|
|
21
25
|
value: any;
|
|
26
|
+
setValueDirectly(val: any): void;
|
|
27
|
+
readonly isReadOnly: boolean;
|
|
28
|
+
readonly rowTextClasses: string;
|
|
22
29
|
readonly rowClasses: string;
|
|
23
30
|
}
|
|
24
31
|
export interface IMatrixCellsOwner extends ILocalizableOwner {
|
|
@@ -67,8 +74,16 @@ export declare class QuestionMatrixModel extends QuestionMatrixBaseModel<MatrixR
|
|
|
67
74
|
/*
|
|
68
75
|
* Specifies whether each row requires an answer. If a respondent skips a row, the question displays a validation error.
|
|
69
76
|
* @see isRequired
|
|
77
|
+
* @see eachRowUnique
|
|
78
|
+
* @see validators
|
|
70
79
|
*/
|
|
71
80
|
isAllRowRequired: boolean;
|
|
81
|
+
/*
|
|
82
|
+
* Specifies whether answers in all rows should be unique. If any answers duplicate, the question displays a validation error.
|
|
83
|
+
* @see isAllRowRequired
|
|
84
|
+
* @see validators
|
|
85
|
+
*/
|
|
86
|
+
eachRowUnique: boolean;
|
|
72
87
|
readonly hasRows: boolean;
|
|
73
88
|
/*
|
|
74
89
|
* Specifies a sort order for matrix rows.
|
|
@@ -93,6 +108,7 @@ export declare class QuestionMatrixModel extends QuestionMatrixBaseModel<MatrixR
|
|
|
93
108
|
locStrsChanged(): void;
|
|
94
109
|
protected getQuizQuestionCount(): number;
|
|
95
110
|
protected getCorrectAnswerCount(): number;
|
|
111
|
+
protected runItemsCondition(values: HashTable<any>, properties: HashTable<any>): boolean;
|
|
96
112
|
protected getVisibleRows(): Array<MatrixRowModel>;
|
|
97
113
|
protected sortVisibleRows(array: Array<MatrixRowModel>): Array<MatrixRowModel>;
|
|
98
114
|
endLoadingFromJson(): void;
|
|
@@ -110,9 +126,13 @@ export declare class QuestionMatrixModel extends QuestionMatrixBaseModel<MatrixR
|
|
|
110
126
|
private emptyLocalizableString;
|
|
111
127
|
getCellDisplayLocText(row: any, column: any): LocalizableString;
|
|
112
128
|
supportGoNextPageAutomatic(): boolean;
|
|
129
|
+
private errorsInRow;
|
|
113
130
|
protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean): void;
|
|
114
|
-
private
|
|
131
|
+
private hasErrorAllRowsRequired;
|
|
132
|
+
private hasErrorEachRowUnique;
|
|
115
133
|
private hasValuesInAllRows;
|
|
134
|
+
private hasNonUniqueValueInRow;
|
|
135
|
+
private addErrorIntoRow;
|
|
116
136
|
protected getIsAnswered(): boolean;
|
|
117
137
|
private createMatrixRow;
|
|
118
138
|
protected onMatrixRowCreated(row: MatrixRowModel): void;
|
|
@@ -125,6 +145,7 @@ export declare class QuestionMatrixModel extends QuestionMatrixBaseModel<MatrixR
|
|
|
125
145
|
protected getFirstInputElementId(): string;
|
|
126
146
|
onMatrixRowChanged(row: MatrixRowModel): void;
|
|
127
147
|
getCorrectedRowValue(value: any): any;
|
|
148
|
+
hasErrorInRow(row: MatrixRowModel): boolean;
|
|
128
149
|
protected getSearchableItemValueKeys(keys: Array<string>): void;
|
|
129
150
|
private readonly SurveyModel: any;
|
|
130
151
|
getColumnHeaderWrapperComponentName(cell: ItemValue): string;
|
|
@@ -292,14 +292,15 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
|
|
|
292
292
|
*
|
|
293
293
|
* Possible values:
|
|
294
294
|
*
|
|
295
|
-
* - `"dropdown"`
|
|
296
|
-
* - `"checkbox"`
|
|
297
|
-
* - `"radiogroup"`
|
|
298
|
-
* - `"
|
|
299
|
-
* - `"
|
|
300
|
-
* - `"
|
|
301
|
-
* - `"
|
|
302
|
-
* - `"
|
|
295
|
+
* - [`"dropdown"`](https://surveyjs.io/form-library/documentation/api-reference/dropdown-menu-model)
|
|
296
|
+
* - [`"checkbox"`](https://surveyjs.io/form-library/documentation/api-reference/checkbox-question-model)
|
|
297
|
+
* - [`"radiogroup"`](https://surveyjs.io/form-library/documentation/api-reference/radio-button-question-model)
|
|
298
|
+
* - [`"tagbox"`](https://surveyjs.io/form-library/documentation/api-reference/dropdown-tag-box-model)
|
|
299
|
+
* - [`"text"`](https://surveyjs.io/form-library/documentation/api-reference/text-entry-question-model)
|
|
300
|
+
* - [`"comment"`](https://surveyjs.io/form-library/documentation/api-reference/comment-field-model)
|
|
301
|
+
* - [`"boolean"`](https://surveyjs.io/form-library/documentation/api-reference/boolean-question-model)
|
|
302
|
+
* - [`"expression"`](https://surveyjs.io/form-library/documentation/api-reference/expression-model)
|
|
303
|
+
* - [`"rating"`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model)
|
|
303
304
|
*
|
|
304
305
|
* Default value: `"dropdown"` (inherited from [`settings.matrix.defaultCellType`](https://surveyjs.io/form-library/documentation/settings#matrixDefaultCellType))
|
|
305
306
|
*/
|
|
@@ -18,6 +18,11 @@ export interface IMatrixColumnOwner extends ILocalizableOwner {
|
|
|
18
18
|
getCellAriaLabel(rowTitle: string, columnTitle: string): string;
|
|
19
19
|
}
|
|
20
20
|
export declare var matrixDropdownColumnTypes: any;
|
|
21
|
+
/**
|
|
22
|
+
* An auxiliary class that describes a column in a [Multi-Select Matrix](https://surveyjs.io/form-library/documentation/api-reference/matrix-table-with-dropdown-list) or [Dynamic Matrix](https://surveyjs.io/form-library/documentation/api-reference/dynamic-matrix-table-question-model).
|
|
23
|
+
*
|
|
24
|
+
* You can get an object of this class from the [`columns`](https://surveyjs.io/form-library/documentation/api-reference/matrix-table-with-dropdown-list#columns) array or by calling the [`getColumnByName()`](https://surveyjs.io/form-library/documentation/api-reference/matrix-table-with-dropdown-list#getColumnByName) method on a matrix instance.
|
|
25
|
+
*/
|
|
21
26
|
export declare class MatrixDropdownColumn extends Base implements ILocalizableOwner, IWrapperObject {
|
|
22
27
|
static getColumnTypes(): Array<string>;
|
|
23
28
|
private templateQuestionValue;
|
|
@@ -38,44 +43,186 @@ export declare class MatrixDropdownColumn extends Base implements ILocalizableOw
|
|
|
38
43
|
readonly index: number;
|
|
39
44
|
setIndex(val: number): void;
|
|
40
45
|
getType(): string;
|
|
46
|
+
/*
|
|
47
|
+
* Specifies the type of column cells.
|
|
48
|
+
*
|
|
49
|
+
* Possible values:
|
|
50
|
+
*
|
|
51
|
+
* - [`"dropdown"`](https://surveyjs.io/form-library/documentation/api-reference/dropdown-menu-model)
|
|
52
|
+
* - [`"checkbox"`](https://surveyjs.io/form-library/documentation/api-reference/checkbox-question-model)
|
|
53
|
+
* - [`"radiogroup"`](https://surveyjs.io/form-library/documentation/api-reference/radio-button-question-model)
|
|
54
|
+
* - [`"tagbox"`](https://surveyjs.io/form-library/documentation/api-reference/dropdown-tag-box-model)
|
|
55
|
+
* - [`"text"`](https://surveyjs.io/form-library/documentation/api-reference/text-entry-question-model)
|
|
56
|
+
* - [`"comment"`](https://surveyjs.io/form-library/documentation/api-reference/comment-field-model)
|
|
57
|
+
* - [`"boolean"`](https://surveyjs.io/form-library/documentation/api-reference/boolean-question-model)
|
|
58
|
+
* - [`"expression"`](https://surveyjs.io/form-library/documentation/api-reference/expression-model)
|
|
59
|
+
* - [`"rating"`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model)
|
|
60
|
+
* - `"default"` (default) - Inherits the input type from the [`cellType`](https://surveyjs.io/form-library/documentation/api-reference/matrix-table-with-dropdown-list#cellType) property specified for the parent matrix.
|
|
61
|
+
*
|
|
62
|
+
* The input types are based upon standalone question types. Depending on the selected input type, the matrix column can have additional configuration properties inherited from the corresponding question type. For instance, Dropdown, Checkboxes, Radio Button Group, and Tag Box columns can specify the [`choices`](https://surveyjs.io/form-library/documentation/api-reference/radio-button-question-model#choices) array, similar to the question types upon which they are based. Refer to the API Reference of these question types for a full list of available properties.
|
|
63
|
+
*
|
|
64
|
+
* [View Demo](https://surveyjs.io/form-library/examples/aggregate-data-within-form/ (linkStyle))
|
|
65
|
+
*/
|
|
41
66
|
cellType: string;
|
|
42
67
|
readonly templateQuestion: Question;
|
|
43
68
|
readonly value: string;
|
|
44
69
|
readonly isVisible: boolean;
|
|
45
70
|
readonly isColumnVisible: boolean;
|
|
71
|
+
/*
|
|
72
|
+
* Gets or sets column visibility.
|
|
73
|
+
*
|
|
74
|
+
* If you want to display or hide a column based on a condition, specify the [`visibleIf`](#visibleIf) property.
|
|
75
|
+
* @see isRequired
|
|
76
|
+
* @see readOnly
|
|
77
|
+
*/
|
|
46
78
|
visible: boolean;
|
|
47
79
|
hasVisibleCell: boolean;
|
|
48
80
|
getVisibleMultipleChoices(): Array<ItemValue>;
|
|
49
81
|
readonly getVisibleChoicesInCell: Array<any>;
|
|
50
82
|
setVisibleChoicesInCell(val: Array<any>): void;
|
|
51
83
|
readonly isFilteredMultipleColumns: boolean;
|
|
84
|
+
/*
|
|
85
|
+
* A column ID that is not visible to respondents.
|
|
86
|
+
*
|
|
87
|
+
* > Column IDs must be unique.
|
|
88
|
+
* @see title
|
|
89
|
+
*/
|
|
52
90
|
name: string;
|
|
91
|
+
/*
|
|
92
|
+
* A user-friendly column caption to display. If `title` is undefined, [`name`](#name) is displayed instead.
|
|
93
|
+
*/
|
|
53
94
|
title: string;
|
|
54
95
|
readonly locTitle: LocalizableString;
|
|
55
96
|
readonly fullTitle: string;
|
|
97
|
+
/*
|
|
98
|
+
* Marks the column as required. If a respondent skips any cell in a required column, the matrix displays a validation error.
|
|
99
|
+
*
|
|
100
|
+
* If you want to mark the column as required based on a condition, specify the [`requiredIf`](#requiredIf) property.
|
|
101
|
+
* @see requiredErrorText
|
|
102
|
+
* @see visible
|
|
103
|
+
* @see readOnly
|
|
104
|
+
*/
|
|
56
105
|
isRequired: boolean;
|
|
57
106
|
isRenderedRequired: boolean;
|
|
58
107
|
updateIsRenderedRequired(val: boolean): void;
|
|
59
108
|
readonly requiredText: string;
|
|
109
|
+
/*
|
|
110
|
+
* Specifies a custom error message for a required column.
|
|
111
|
+
* @see isRequired
|
|
112
|
+
*/
|
|
60
113
|
requiredErrorText: string;
|
|
61
114
|
readonly locRequiredErrorText: LocalizableString;
|
|
115
|
+
/*
|
|
116
|
+
* Makes the column read-only.
|
|
117
|
+
*
|
|
118
|
+
* If you want to switch the column to the read-only state based on a condition, specify the [`enableIf`](#enableIf) property.
|
|
119
|
+
* @see visible
|
|
120
|
+
* @see isRequired
|
|
121
|
+
*/
|
|
62
122
|
readOnly: boolean;
|
|
63
123
|
hasOther: boolean;
|
|
124
|
+
/*
|
|
125
|
+
* A Boolean expression. If it evaluates to `false`, this column becomes hidden.
|
|
126
|
+
*
|
|
127
|
+
* Refer to the following help topic for more information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility).
|
|
128
|
+
* @see visible
|
|
129
|
+
*/
|
|
64
130
|
visibleIf: string;
|
|
131
|
+
/*
|
|
132
|
+
* A Boolean expression. If it evaluates to `false`, this column becomes read-only.
|
|
133
|
+
*
|
|
134
|
+
* Refer to the following help topic for more information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility).
|
|
135
|
+
* @see readOnly
|
|
136
|
+
*/
|
|
65
137
|
enableIf: string;
|
|
138
|
+
/*
|
|
139
|
+
* A Boolean expression. If it evaluates to `true`, this column becomes required.
|
|
140
|
+
*
|
|
141
|
+
* Refer to the following help topic for more information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility).
|
|
142
|
+
* @see isRequired
|
|
143
|
+
*/
|
|
66
144
|
requiredIf: string;
|
|
145
|
+
/*
|
|
146
|
+
* A Boolean expression. If it evaluates to `true`, all cells in this column are set to a value calculated using the [`defaultValueExpression`](#defaultValueExpression).
|
|
147
|
+
*
|
|
148
|
+
* [Expressions](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#expressions (linkStyle))
|
|
149
|
+
* @see setValueIf
|
|
150
|
+
*/
|
|
67
151
|
resetValueIf: string;
|
|
152
|
+
/*
|
|
153
|
+
* An expression used to calculate the column's default value. This expression applies to all cells of this column until the cell value is specified by an end user or programmatically.
|
|
154
|
+
*
|
|
155
|
+
* [Expressions](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#expressions (linkStyle))
|
|
156
|
+
* @see setValueExpression
|
|
157
|
+
*/
|
|
68
158
|
defaultValueExpression: string;
|
|
159
|
+
/*
|
|
160
|
+
* A Boolean expression. If it evaluates to `true`, all cells in this column are set to a value calculated using the [`setValueExpression`](#setValueExpression).
|
|
161
|
+
*
|
|
162
|
+
* [Expressions](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#expressions (linkStyle))
|
|
163
|
+
* @see resetValueIf
|
|
164
|
+
*/
|
|
69
165
|
setValueIf: string;
|
|
166
|
+
/*
|
|
167
|
+
* An expression used to calculate a value for all column cells.
|
|
168
|
+
*
|
|
169
|
+
* You can use `setValueExpression` as a standalone property or in conjunction with the [`setValueIf`](#setValueIf) expression, in which case the calculated cell value applies only when `setValueIf` evaluates to `true`.
|
|
170
|
+
*
|
|
171
|
+
* [Expressions](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#expressions (linkStyle))
|
|
172
|
+
* @see defaultValueExpression
|
|
173
|
+
* @see resetValueIf
|
|
174
|
+
*/
|
|
70
175
|
setValueExpession: string;
|
|
176
|
+
/*
|
|
177
|
+
* Specifies whether a respondent is required to provide a unique response for each question within this column.
|
|
178
|
+
*
|
|
179
|
+
* Default value: `false`
|
|
180
|
+
*/
|
|
71
181
|
isUnique: boolean;
|
|
182
|
+
/*
|
|
183
|
+
* Specifies whether to create an individual column for each choice option. Applies only to columns of `"checkbox"` or `"radiogroup"` [`cellType`](#cellType).
|
|
184
|
+
*/
|
|
72
185
|
showInMultipleColumns: boolean;
|
|
73
186
|
readonly isSupportMultipleColumns: boolean;
|
|
74
187
|
readonly isShowInMultipleColumns: boolean;
|
|
188
|
+
/*
|
|
189
|
+
* Column validators.
|
|
190
|
+
*
|
|
191
|
+
* [Data Validation](https://surveyjs.io/form-library/documentation/data-validation (linkStyle))
|
|
192
|
+
* @see isRequired
|
|
193
|
+
*/
|
|
75
194
|
validators: Array<SurveyValidator>;
|
|
195
|
+
/*
|
|
196
|
+
* An aggregation method used to calculate the column total.
|
|
197
|
+
*
|
|
198
|
+
* Possible values:
|
|
199
|
+
*
|
|
200
|
+
* - `"none"` (default) - Disables total calculations.
|
|
201
|
+
* - `"sum"`
|
|
202
|
+
* - `"count"`
|
|
203
|
+
* - `"min"`
|
|
204
|
+
* - `"max"`
|
|
205
|
+
* - `"avg"`
|
|
206
|
+
*
|
|
207
|
+
* [View Demo](https://surveyjs.io/form-library/examples/aggregate-data-within-form/ (linkStyle))
|
|
208
|
+
* @see totalFormat
|
|
209
|
+
* @see totalDisplayStyle
|
|
210
|
+
*/
|
|
76
211
|
totalType: string;
|
|
212
|
+
/*
|
|
213
|
+
* An expression used to calculate total values. Overrides the [`totalType`](#totalType) property.
|
|
214
|
+
*
|
|
215
|
+
* [Expressions](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#expressions (linkStyle))
|
|
216
|
+
*/
|
|
77
217
|
totalExpression: string;
|
|
78
218
|
readonly hasTotal: boolean;
|
|
219
|
+
/*
|
|
220
|
+
* A string pattern used to display column totals. To reference a total value within this pattern, use the `{0}` placeholder.
|
|
221
|
+
*
|
|
222
|
+
* [View Demo](https://surveyjs.io/form-library/examples/aggregate-data-within-form/ (linkStyle))
|
|
223
|
+
* @see totalType
|
|
224
|
+
* @see totalDisplayStyle
|
|
225
|
+
*/
|
|
79
226
|
totalFormat: string;
|
|
80
227
|
readonly locTotalFormat: LocalizableString;
|
|
81
228
|
cellHint: string;
|
|
@@ -83,10 +230,42 @@ export declare class MatrixDropdownColumn extends Base implements ILocalizableOw
|
|
|
83
230
|
renderAs: string;
|
|
84
231
|
totalMaximumFractionDigits: number;
|
|
85
232
|
totalMinimumFractionDigits: number;
|
|
233
|
+
/*
|
|
234
|
+
* A format for calculated total values.
|
|
235
|
+
*
|
|
236
|
+
* Possible values:
|
|
237
|
+
*
|
|
238
|
+
* - `"none"` (default)
|
|
239
|
+
* - `"decimal"`
|
|
240
|
+
* - `"currency"`
|
|
241
|
+
* - `"percent"`
|
|
242
|
+
*
|
|
243
|
+
* [View Demo](https://surveyjs.io/form-library/examples/aggregate-data-within-form/ (linkStyle))
|
|
244
|
+
* @see totalType
|
|
245
|
+
* @see totalFormat
|
|
246
|
+
* @see totalCurrency
|
|
247
|
+
*/
|
|
86
248
|
totalDisplayStyle: string;
|
|
249
|
+
/*
|
|
250
|
+
* Specifies a currency used to display calculated total values. Applies only if [`totalDisplayStyle`](#totalDisplayStyle) is set to `"currency"`.
|
|
251
|
+
* @see totalType
|
|
252
|
+
*/
|
|
87
253
|
totalCurrency: string;
|
|
254
|
+
/*
|
|
255
|
+
* Gets or sets minimum column width in CSS values. By default, the matrix calculates column widths to optimally fit the content of all columns.
|
|
256
|
+
* @see width
|
|
257
|
+
*/
|
|
88
258
|
minWidth: string;
|
|
259
|
+
/*
|
|
260
|
+
* Gets or sets column width in CSS values. By default, the matrix calculates column widths to optimally fit the content of all columns.
|
|
261
|
+
* @see minWidth
|
|
262
|
+
*/
|
|
89
263
|
width: string;
|
|
264
|
+
/*
|
|
265
|
+
* Gets or sets the number of columns used to arrange choice options. Applies only to columns of `"checkbox"` or `"radiogroup"` [`cellType`](#cellType).
|
|
266
|
+
*
|
|
267
|
+
* Default value: -1 (inherits the actual value from the parent matrix's [`columnColCount`](https://surveyjs.io/form-library/documentation/api-reference/matrix-table-with-dropdown-list#columnColCount) property)
|
|
268
|
+
*/
|
|
90
269
|
colCount: number;
|
|
91
270
|
getLocale(): string;
|
|
92
271
|
getMarkdownHtml(text: string, name: string): string;
|
|
@@ -160,6 +160,8 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
|
160
160
|
* @see templateVisibleIf
|
|
161
161
|
*/
|
|
162
162
|
readonly visiblePanels: Array<PanelModel>;
|
|
163
|
+
protected readonly panelsCore: Array<PanelModel>;
|
|
164
|
+
protected readonly visiblePanelsCore: Array<PanelModel>;
|
|
163
165
|
private onPanelAdded;
|
|
164
166
|
private onPanelRemoved;
|
|
165
167
|
private onPanelRemovedCore;
|
|
@@ -519,6 +521,11 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
|
519
521
|
protected onReadOnlyChanged(): void;
|
|
520
522
|
private updateNoEntriesTextDefaultLoc;
|
|
521
523
|
onSurveyLoad(): void;
|
|
524
|
+
private hasPanelBuildFirstTime;
|
|
525
|
+
private isBuildingPanelsFirstTime;
|
|
526
|
+
private buildPanelsFirstTime;
|
|
527
|
+
private readonly wasNotRenderedInSurvey: any;
|
|
528
|
+
private readonly canBuildPanels: any;
|
|
522
529
|
onFirstRendering(): void;
|
|
523
530
|
localeChanged(): void;
|
|
524
531
|
runCondition(values: HashTable<any>, properties: HashTable<any>): void;
|
|
@@ -13,6 +13,7 @@ export declare class QuestionRankingModel extends QuestionCheckboxModel {
|
|
|
13
13
|
protected getDefaultItemComponent(): string;
|
|
14
14
|
getType(): string;
|
|
15
15
|
getItemTabIndex(item: ItemValue): number;
|
|
16
|
+
protected supportContainerQueries(): boolean;
|
|
16
17
|
readonly rootClass: string;
|
|
17
18
|
protected getItemClassCore(item: ItemValue, options: any): string;
|
|
18
19
|
getContainerClasses(containerType?: string): string;
|
|
@@ -142,12 +142,12 @@ export declare var settings: {
|
|
|
142
142
|
* import { ItemValue, settings } from "survey-core";
|
|
143
143
|
*
|
|
144
144
|
* // `itemValueSerializeAsObject` example
|
|
145
|
-
* settings.
|
|
145
|
+
* settings.serialization.itemValueSerializeAsObject = true;
|
|
146
146
|
* const item = new ItemValue(5);
|
|
147
147
|
* const itemString = item.toJSON(); // Produces { value: 5 } instead of 5
|
|
148
148
|
*
|
|
149
149
|
* // `itemValueSerializeDisplayText` example
|
|
150
|
-
* settings.
|
|
150
|
+
* settings.serialization.itemValueSerializeDisplayText = true;
|
|
151
151
|
* const item = new ItemValue("item1");
|
|
152
152
|
* const itemString = item.toJSON(); // Produces { value: "item1", text: "item1" } instead of "item1"
|
|
153
153
|
* ```
|
|
@@ -264,6 +264,8 @@ export declare class SurveyElement<E = any> extends SurveyElementCore implements
|
|
|
264
264
|
selectedElementInDesign: SurveyElement;
|
|
265
265
|
updateCustomWidgets(): void;
|
|
266
266
|
onSurveyLoad(): void;
|
|
267
|
+
private wasRenderedValue;
|
|
268
|
+
readonly wasRendered: boolean;
|
|
267
269
|
onFirstRendering(): void;
|
|
268
270
|
endLoadingFromJson(): void;
|
|
269
271
|
setVisibleIndex(index: number): number;
|
|
@@ -6,7 +6,7 @@ export declare class SurveyError {
|
|
|
6
6
|
private locTextValue;
|
|
7
7
|
visible: boolean;
|
|
8
8
|
constructor(text?: string, errorOwner?: ISurveyErrorOwner);
|
|
9
|
-
|
|
9
|
+
equals(error: SurveyError): boolean;
|
|
10
10
|
readonly locText: LocalizableString;
|
|
11
11
|
getText(): string;
|
|
12
12
|
getErrorType(): string;
|