survey-core 1.9.124 → 1.9.125
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 +4 -3
- package/defaultV2.css.map +1 -1
- package/defaultV2.fontless.css +4 -3
- 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 +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.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 +419 -108
- package/survey.core.js.map +1 -1
- package/survey.core.min.js +3 -3
- package/survey.css +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 +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/actions/action.d.ts +3 -3
- package/ts3.4/typings/base-interfaces.d.ts +1 -0
- package/ts3.4/typings/base.d.ts +1 -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/question.d.ts +3 -3
- package/ts3.4/typings/question_baseselect.d.ts +2 -2
- package/ts3.4/typings/question_custom.d.ts +28 -1
- package/ts3.4/typings/question_matrix.d.ts +15 -1
- package/ts3.4/typings/question_matrixdropdownbase.d.ts +9 -8
- package/ts3.4/typings/question_matrixdropdowncolumn.d.ts +179 -0
- package/ts3.4/typings/settings.d.ts +2 -2
- package/ts3.4/typings/survey-events-api.d.ts +3 -3
- package/ts3.4/typings/survey.d.ts +3 -0
- package/ts3.4/typings/surveyStrings.d.ts +1 -0
- package/ts3.4/typings/surveyToc.d.ts +0 -2
- package/typings/actions/action.d.ts +3 -3
- package/typings/base-interfaces.d.ts +1 -0
- package/typings/base.d.ts +1 -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/question.d.ts +3 -3
- package/typings/question_baseselect.d.ts +2 -2
- package/typings/question_custom.d.ts +28 -1
- package/typings/question_matrix.d.ts +17 -2
- package/typings/question_matrixdropdownbase.d.ts +9 -8
- package/typings/question_matrixdropdowncolumn.d.ts +179 -0
- package/typings/settings.d.ts +2 -2
- package/typings/survey-events-api.d.ts +3 -3
- package/typings/survey.d.ts +4 -0
- package/typings/surveyStrings.d.ts +1 -0
- package/typings/surveyToc.d.ts +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ILocalizableOwner, LocalizableString } from "../localizablestring";
|
|
2
|
-
import { Base } from "../base";
|
|
2
|
+
import { Base, ComputedUpdater } from "../base";
|
|
3
3
|
import { IListModel } from "../list";
|
|
4
4
|
import { IPopupOptionsBase } from "../popup";
|
|
5
5
|
export declare type actionModeType = "large" | "small" | "popup" | "removed";
|
|
@@ -22,7 +22,7 @@ export interface IAction {
|
|
|
22
22
|
* @see enabled
|
|
23
23
|
* @see active
|
|
24
24
|
*/
|
|
25
|
-
visible?: boolean
|
|
25
|
+
visible?: boolean | ComputedUpdater<boolean>;
|
|
26
26
|
/**
|
|
27
27
|
* The action item's title.
|
|
28
28
|
*
|
|
@@ -43,7 +43,7 @@ export interface IAction {
|
|
|
43
43
|
* @see active
|
|
44
44
|
* @see visible
|
|
45
45
|
*/
|
|
46
|
-
enabled?: boolean
|
|
46
|
+
enabled?: boolean | ComputedUpdater<boolean>;
|
|
47
47
|
enabledIf?: () => boolean;
|
|
48
48
|
/**
|
|
49
49
|
* Specifies the visibility of the action item's title.
|
|
@@ -74,6 +74,7 @@ export interface ISurvey extends ITextProcessor, ISurveyErrorOwner {
|
|
|
74
74
|
allowResizeComment: boolean;
|
|
75
75
|
state: string;
|
|
76
76
|
isLazyRendering: boolean;
|
|
77
|
+
lazyRenderingFirstBatchSize: number;
|
|
77
78
|
cancelPreviewByPage(panel: IPanel): any;
|
|
78
79
|
locEditText: LocalizableString;
|
|
79
80
|
cssNavigationEdit: string;
|
package/ts3.4/typings/base.d.ts
CHANGED
|
@@ -263,7 +263,7 @@ export declare class Base {
|
|
|
263
263
|
registerFunctionOnPropertiesValueChanged(names: Array<string>, func: any, key?: string): void;
|
|
264
264
|
unRegisterFunctionOnPropertyValueChanged(name: string, key?: string): void;
|
|
265
265
|
unRegisterFunctionOnPropertiesValueChanged(names: Array<string>, key?: string): void;
|
|
266
|
-
createCustomLocalizableObj(name: string):
|
|
266
|
+
createCustomLocalizableObj(name: string): LocalizableString;
|
|
267
267
|
getLocale(): string;
|
|
268
268
|
getLocalizationString(strName: string): string;
|
|
269
269
|
getLocalizationFormatString(strName: string, ...args: any[]): string;
|
package/ts3.4/typings/error.d.ts
CHANGED
|
@@ -56,6 +56,12 @@ export declare class RequiredInAllRowsError extends SurveyError {
|
|
|
56
56
|
getErrorType(): string;
|
|
57
57
|
protected getDefaultText(): string;
|
|
58
58
|
}
|
|
59
|
+
export declare class EachRowUniqueError extends SurveyError {
|
|
60
|
+
text: string;
|
|
61
|
+
constructor(text: string, errorOwner?: ISurveyErrorOwner);
|
|
62
|
+
getErrorType(): string;
|
|
63
|
+
protected getDefaultText(): string;
|
|
64
|
+
}
|
|
59
65
|
export declare class MinRowCountError extends SurveyError {
|
|
60
66
|
minRowCount: number;
|
|
61
67
|
constructor(minRowCount: number, errorOwner?: ISurveyErrorOwner);
|
|
@@ -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
|
*/
|
|
@@ -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
|
*/
|
|
@@ -433,7 +433,7 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
433
433
|
*
|
|
434
434
|
* A survey parses and runs all expressions on startup. If any values used in the expression change, the survey re-evaluates it.
|
|
435
435
|
*
|
|
436
|
-
* Refer to the following help topic for more information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility)
|
|
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
437
|
* @see isRequired
|
|
438
438
|
*/
|
|
439
439
|
requiredIf: string;
|
|
@@ -474,7 +474,7 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
474
474
|
*
|
|
475
475
|
* A survey parses and runs all expressions on startup. If any values used in the expression change, the survey re-evaluates it.
|
|
476
476
|
*
|
|
477
|
-
* Refer to the following help topic for more information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility)
|
|
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
478
|
* @see readOnly
|
|
479
479
|
* @see isReadOnly
|
|
480
480
|
*/
|
|
@@ -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;
|
|
@@ -437,7 +437,7 @@ export declare class QuestionCheckboxBase extends QuestionSelectBase {
|
|
|
437
437
|
colCountChangedCallback: () => void;
|
|
438
438
|
constructor(name: string);
|
|
439
439
|
/*
|
|
440
|
-
*
|
|
440
|
+
* Gets or sets the number of columns used to arrange choice items.
|
|
441
441
|
*
|
|
442
442
|
* Set this property to 0 if you want to display all items in one line. The default value depends on the available width.
|
|
443
443
|
* @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;
|
|
@@ -8,6 +8,7 @@ import { IPlainDataOptions } from "./base-interfaces";
|
|
|
8
8
|
export interface IMatrixData {
|
|
9
9
|
onMatrixRowChanged(row: MatrixRowModel): void;
|
|
10
10
|
getCorrectedRowValue(value: any): any;
|
|
11
|
+
hasErrorInRow(row: MatrixRowModel): boolean;
|
|
11
12
|
}
|
|
12
13
|
export declare class MatrixRowModel extends Base {
|
|
13
14
|
fullName: string;
|
|
@@ -67,8 +68,16 @@ export declare class QuestionMatrixModel extends QuestionMatrixBaseModel<MatrixR
|
|
|
67
68
|
/*
|
|
68
69
|
* Specifies whether each row requires an answer. If a respondent skips a row, the question displays a validation error.
|
|
69
70
|
* @see isRequired
|
|
71
|
+
* @see eachRowUnique
|
|
72
|
+
* @see validators
|
|
70
73
|
*/
|
|
71
74
|
isAllRowRequired: boolean;
|
|
75
|
+
/*
|
|
76
|
+
* Specifies whether answers in all rows should be unique. If any answers duplicate, the question displays a validation error.
|
|
77
|
+
* @see isAllRowRequired
|
|
78
|
+
* @see validators
|
|
79
|
+
*/
|
|
80
|
+
eachRowUnique: boolean;
|
|
72
81
|
readonly hasRows: boolean;
|
|
73
82
|
/*
|
|
74
83
|
* Specifies a sort order for matrix rows.
|
|
@@ -110,9 +119,13 @@ export declare class QuestionMatrixModel extends QuestionMatrixBaseModel<MatrixR
|
|
|
110
119
|
private emptyLocalizableString;
|
|
111
120
|
getCellDisplayLocText(row: any, column: any): LocalizableString;
|
|
112
121
|
supportGoNextPageAutomatic(): boolean;
|
|
122
|
+
private errorsInRow;
|
|
113
123
|
protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean): void;
|
|
114
|
-
private
|
|
124
|
+
private hasErrorAllRowsRequired;
|
|
125
|
+
private hasErrorEachRowUnique;
|
|
115
126
|
private hasValuesInAllRows;
|
|
127
|
+
private hasNonUniqueValueInRow;
|
|
128
|
+
private addErrorIntoRow;
|
|
116
129
|
protected getIsAnswered(): boolean;
|
|
117
130
|
private createMatrixRow;
|
|
118
131
|
protected onMatrixRowCreated(row: MatrixRowModel): void;
|
|
@@ -125,6 +138,7 @@ export declare class QuestionMatrixModel extends QuestionMatrixBaseModel<MatrixR
|
|
|
125
138
|
protected getFirstInputElementId(): string;
|
|
126
139
|
onMatrixRowChanged(row: MatrixRowModel): void;
|
|
127
140
|
getCorrectedRowValue(value: any): any;
|
|
141
|
+
hasErrorInRow(row: MatrixRowModel): boolean;
|
|
128
142
|
protected getSearchableItemValueKeys(keys: Array<string>): void;
|
|
129
143
|
private readonly SurveyModel: any;
|
|
130
144
|
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;
|