survey-core 1.9.130 → 1.9.132
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 +22 -2
- package/defaultV2.css.map +1 -1
- package/defaultV2.fontless.css +22 -2
- package/defaultV2.fontless.css.map +1 -1
- package/defaultV2.fontless.min.css +2 -2
- package/defaultV2.min.css +2 -2
- package/i18n/arabic.js +1 -1
- package/i18n/arabic.min.js +1 -1
- package/i18n/basque.js +1 -1
- package/i18n/basque.min.js +1 -1
- package/i18n/bulgarian.js +1 -1
- package/i18n/bulgarian.min.js +1 -1
- package/i18n/catalan.js +1 -1
- package/i18n/catalan.min.js +1 -1
- package/i18n/croatian.js +1 -1
- package/i18n/croatian.min.js +1 -1
- package/i18n/czech.js +1 -1
- package/i18n/czech.min.js +1 -1
- package/i18n/danish.js +1 -1
- package/i18n/danish.min.js +1 -1
- package/i18n/dutch.js +1 -1
- package/i18n/dutch.min.js +1 -1
- package/i18n/english.js +1 -1
- package/i18n/english.min.js +1 -1
- package/i18n/estonian.js +1 -1
- package/i18n/estonian.min.js +1 -1
- package/i18n/finnish.js +1 -1
- package/i18n/finnish.min.js +1 -1
- package/i18n/french.js +1 -1
- package/i18n/french.min.js +1 -1
- package/i18n/georgian.js +1 -1
- package/i18n/georgian.min.js +1 -1
- package/i18n/german.js +1 -1
- package/i18n/german.min.js +1 -1
- package/i18n/greek.js +1 -1
- package/i18n/greek.min.js +1 -1
- package/i18n/hebrew.js +1 -1
- package/i18n/hebrew.min.js +1 -1
- package/i18n/hindi.js +1 -1
- package/i18n/hindi.min.js +1 -1
- package/i18n/hungarian.js +1 -1
- package/i18n/hungarian.min.js +1 -1
- package/i18n/icelandic.js +1 -1
- package/i18n/icelandic.min.js +1 -1
- package/i18n/index.js +1 -1
- package/i18n/index.min.js +1 -1
- package/i18n/indonesian.js +1 -1
- package/i18n/indonesian.min.js +1 -1
- package/i18n/italian.js +1 -1
- package/i18n/italian.min.js +1 -1
- package/i18n/japanese.js +1 -1
- package/i18n/japanese.min.js +1 -1
- package/i18n/kazakh.js +1 -1
- package/i18n/kazakh.min.js +1 -1
- package/i18n/korean.js +1 -1
- package/i18n/korean.min.js +1 -1
- package/i18n/latvian.js +1 -1
- package/i18n/latvian.min.js +1 -1
- package/i18n/lithuanian.js +1 -1
- package/i18n/lithuanian.min.js +1 -1
- package/i18n/macedonian.js +1 -1
- package/i18n/macedonian.min.js +1 -1
- package/i18n/malay.js +1 -1
- package/i18n/malay.min.js +1 -1
- package/i18n/nl-BE.js +1 -1
- package/i18n/nl-BE.min.js +1 -1
- package/i18n/norwegian.js +1 -1
- package/i18n/norwegian.min.js +1 -1
- package/i18n/persian.js +1 -1
- package/i18n/persian.min.js +1 -1
- package/i18n/polish.js +1 -1
- package/i18n/polish.min.js +1 -1
- package/i18n/portuguese-br.js +1 -1
- package/i18n/portuguese-br.min.js +1 -1
- package/i18n/portuguese.js +1 -1
- package/i18n/portuguese.min.js +1 -1
- package/i18n/romanian.js +1 -1
- package/i18n/romanian.min.js +1 -1
- package/i18n/russian.js +1 -1
- package/i18n/russian.min.js +1 -1
- package/i18n/serbian.js +1 -1
- package/i18n/serbian.min.js +1 -1
- package/i18n/simplified-chinese.js +1 -1
- package/i18n/simplified-chinese.min.js +1 -1
- package/i18n/slovak.js +1 -1
- package/i18n/slovak.min.js +1 -1
- package/i18n/spanish.js +1 -1
- package/i18n/spanish.min.js +1 -1
- package/i18n/swahili.js +1 -1
- package/i18n/swahili.min.js +1 -1
- package/i18n/swedish.js +1 -1
- package/i18n/swedish.min.js +1 -1
- package/i18n/tajik.js +1 -1
- package/i18n/tajik.min.js +1 -1
- package/i18n/telugu.js +1 -1
- package/i18n/telugu.min.js +1 -1
- package/i18n/thai.js +1 -1
- package/i18n/thai.min.js +1 -1
- package/i18n/traditional-chinese.js +1 -1
- package/i18n/traditional-chinese.min.js +1 -1
- package/i18n/turkish.js +1 -1
- package/i18n/turkish.min.js +1 -1
- package/i18n/ukrainian.js +1 -1
- package/i18n/ukrainian.min.js +1 -1
- package/i18n/urdu.js +1 -1
- package/i18n/urdu.min.js +1 -1
- package/i18n/vietnamese.js +1 -1
- package/i18n/vietnamese.min.js +1 -1
- package/i18n/welsh.js +1 -1
- package/i18n/welsh.min.js +1 -1
- package/modern.css +15 -1
- package/modern.css.map +1 -1
- package/modern.fontless.css +15 -1
- 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 +151 -33
- package/survey.core.js.map +1 -1
- package/survey.core.min.js +3 -3
- package/survey.css +1 -1
- package/survey.i18n.js +1 -1
- package/survey.i18n.min.js +1 -1
- package/survey.min.css +1 -1
- package/themes/borderless-dark-panelless.js +1 -1
- package/themes/borderless-dark-panelless.min.js +1 -1
- package/themes/borderless-dark.js +1 -1
- package/themes/borderless-dark.min.js +1 -1
- package/themes/borderless-light-panelless..js +1 -1
- package/themes/borderless-light-panelless..min.js +1 -1
- package/themes/borderless-light.js +1 -1
- package/themes/borderless-light.min.js +1 -1
- package/themes/contrast-dark-panelless.js +1 -1
- package/themes/contrast-dark-panelless.min.js +1 -1
- package/themes/contrast-dark.js +1 -1
- package/themes/contrast-dark.min.js +1 -1
- package/themes/contrast-light-panelless.js +1 -1
- package/themes/contrast-light-panelless.min.js +1 -1
- package/themes/contrast-light.js +1 -1
- package/themes/contrast-light.min.js +1 -1
- package/themes/default-dark-panelless.js +1 -1
- package/themes/default-dark-panelless.min.js +1 -1
- package/themes/default-dark.js +1 -1
- package/themes/default-dark.min.js +1 -1
- package/themes/default-light-panelless.js +1 -1
- package/themes/default-light-panelless.min.js +1 -1
- package/themes/default-light.js +1 -1
- package/themes/default-light.min.js +1 -1
- package/themes/doubleborder-dark-panelless.js +1 -1
- package/themes/doubleborder-dark-panelless.min.js +1 -1
- package/themes/doubleborder-dark.js +1 -1
- package/themes/doubleborder-dark.min.js +1 -1
- package/themes/doubleborder-light-panelles.js +1 -1
- package/themes/doubleborder-light-panelles.min.js +1 -1
- package/themes/doubleborder-light.js +1 -1
- package/themes/doubleborder-light.min.js +1 -1
- package/themes/flat-dark-panelless.js +1 -1
- package/themes/flat-dark-panelless.min.js +1 -1
- package/themes/flat-dark.js +1 -1
- package/themes/flat-dark.min.js +1 -1
- package/themes/flat-light-panelless.js +1 -1
- package/themes/flat-light-panelless.min.js +1 -1
- package/themes/flat-light.js +1 -1
- package/themes/flat-light.min.js +1 -1
- package/themes/index.js +1 -1
- package/themes/index.min.js +1 -1
- package/themes/layered-dark-panelless.js +1 -1
- package/themes/layered-dark-panelless.min.js +1 -1
- package/themes/layered-dark.js +1 -1
- package/themes/layered-dark.min.js +1 -1
- package/themes/layered-light-panelless.js +1 -1
- package/themes/layered-light-panelless.min.js +1 -1
- package/themes/layered-light.js +1 -1
- package/themes/layered-light.min.js +1 -1
- package/themes/plain-dark-panelless.js +1 -1
- package/themes/plain-dark-panelless.min.js +1 -1
- package/themes/plain-dark.js +1 -1
- package/themes/plain-dark.min.js +1 -1
- package/themes/plain-light-panelless.js +1 -1
- package/themes/plain-light-panelless.min.js +1 -1
- package/themes/plain-light.js +1 -1
- package/themes/plain-light.min.js +1 -1
- package/themes/sharp-dark-panelless.js +1 -1
- package/themes/sharp-dark-panelless.min.js +1 -1
- package/themes/sharp-dark.js +1 -1
- package/themes/sharp-dark.min.js +1 -1
- package/themes/sharp-light-panelless.js +1 -1
- package/themes/sharp-light-panelless.min.js +1 -1
- package/themes/sharp-light.js +1 -1
- package/themes/sharp-light.min.js +1 -1
- package/themes/solid-dark-panelless.js +1 -1
- package/themes/solid-dark-panelless.min.js +1 -1
- package/themes/solid-dark.js +1 -1
- package/themes/solid-dark.min.js +1 -1
- package/themes/solid-light-panelless.js +1 -1
- package/themes/solid-light-panelless.min.js +1 -1
- package/themes/solid-light.js +1 -1
- package/themes/solid-light.min.js +1 -1
- package/themes/three-dimensional-dark-panelless.js +1 -1
- package/themes/three-dimensional-dark-panelless.min.js +1 -1
- package/themes/three-dimensional-dark.js +1 -1
- package/themes/three-dimensional-dark.min.js +1 -1
- package/themes/three-dimensional-light-panelless.js +1 -1
- package/themes/three-dimensional-light-panelless.min.js +1 -1
- package/themes/three-dimensional-light.js +1 -1
- package/themes/three-dimensional-light.min.js +1 -1
- package/ts3.4/typings/base.d.ts +1 -1
- package/ts3.4/typings/dropdownListModel.d.ts +1 -0
- package/ts3.4/typings/entries/chunks/model.d.ts +1 -1
- package/ts3.4/typings/jsonobject.d.ts +55 -5
- package/ts3.4/typings/localizablestring.d.ts +2 -0
- package/ts3.4/typings/question.d.ts +5 -1
- package/ts3.4/typings/questionCustomWidgets.d.ts +1 -0
- package/ts3.4/typings/question_custom.d.ts +2 -0
- package/ts3.4/typings/question_multipletext.d.ts +1 -0
- package/ts3.4/typings/question_tagbox.d.ts +10 -0
- package/ts3.4/typings/settings.d.ts +1 -1
- package/ts3.4/typings/survey-element.d.ts +1 -0
- package/ts3.4/typings/utils/utils.d.ts +3 -1
- package/typings/base.d.ts +1 -1
- package/typings/dropdownListModel.d.ts +1 -0
- package/typings/entries/chunks/model.d.ts +1 -1
- package/typings/jsonobject.d.ts +55 -5
- package/typings/localizablestring.d.ts +2 -0
- package/typings/question.d.ts +5 -1
- package/typings/questionCustomWidgets.d.ts +1 -0
- package/typings/question_custom.d.ts +2 -0
- package/typings/question_multipletext.d.ts +1 -0
- package/typings/question_tagbox.d.ts +10 -0
- package/typings/settings.d.ts +1 -1
- package/typings/survey-element.d.ts +1 -0
- package/typings/utils/utils.d.ts +3 -1
package/themes/solid-light.js
CHANGED
package/ts3.4/typings/base.d.ts
CHANGED
|
@@ -216,7 +216,7 @@ export declare class Base {
|
|
|
216
216
|
geValueFromHash(): any;
|
|
217
217
|
protected setPropertyValueCore(propertiesHash: any, name: string, val: any): void;
|
|
218
218
|
readonly isEditingSurveyElement: boolean;
|
|
219
|
-
iteratePropertiesHash(func: (hash: any, key:
|
|
219
|
+
iteratePropertiesHash(func: (hash: any, key: string) => void): void;
|
|
220
220
|
/**
|
|
221
221
|
* Assigns a new value to a specified property.
|
|
222
222
|
* @param name A property name.
|
|
@@ -32,6 +32,7 @@ export declare class DropdownListModel extends Base {
|
|
|
32
32
|
protected popupRecalculatePosition(isResetHeight: boolean): void;
|
|
33
33
|
protected onHidePopup(): void;
|
|
34
34
|
protected getAvailableItems(): Array<ItemValue>;
|
|
35
|
+
protected setOnTextSearchCallbackForListModel(listModel: ListModel<ItemValue>): void;
|
|
35
36
|
protected createListModel(): ListModel<ItemValue>;
|
|
36
37
|
protected updateAfterListModelCreated(model: ListModel<ItemValue>): void;
|
|
37
38
|
updateCssClasses(popupCssClass: string, listCssClasses: any): void;
|
|
@@ -22,7 +22,7 @@ export { ConditionRunner, ExpressionRunner, IExpresionExecutor, ExpressionExecut
|
|
|
22
22
|
export { Operand, Const, BinaryOperand, Variable, FunctionOperand, ArrayOperand, UnaryOperand } from "../../expressions/expressions";
|
|
23
23
|
export { ConditionsParser } from "../../conditionsParser";
|
|
24
24
|
export { ProcessValue } from "../../conditionProcessValue";
|
|
25
|
-
export { JsonError, JsonIncorrectTypeError, JsonMetadata, JsonMetadataClass, JsonMissingTypeError, JsonMissingTypeErrorBase, JsonObject, JsonObjectProperty, JsonRequiredPropertyError, JsonUnknownPropertyError, Serializer, property, propertyArray } from "../../jsonobject";
|
|
25
|
+
export { JsonError, JsonIncorrectTypeError, JsonMetadata, JsonMetadataClass, JsonMissingTypeError, JsonMissingTypeErrorBase, JsonObject, IJsonPropertyInfo, JsonObjectProperty, JsonRequiredPropertyError, JsonUnknownPropertyError, Serializer, property, propertyArray } from "../../jsonobject";
|
|
26
26
|
export { IMatrixDropdownData, MatrixDropdownCell, MatrixDropdownRowModelBase, QuestionMatrixDropdownModelBase } from "../../question_matrixdropdownbase";
|
|
27
27
|
export { MatrixDropdownColumn, matrixDropdownColumnTypes } from "../../question_matrixdropdowncolumn";
|
|
28
28
|
export { QuestionMatrixDropdownRenderedCell, QuestionMatrixDropdownRenderedRow, QuestionMatrixDropdownRenderedErrorRow, QuestionMatrixDropdownRenderedTable } from "../../question_matrixdropdownrendered";
|
|
@@ -21,6 +21,52 @@ export declare function propertyArray(options?: IArrayPropertyDecoratorOptions):
|
|
|
21
21
|
export interface IObject {
|
|
22
22
|
[key: string]: any;
|
|
23
23
|
}
|
|
24
|
+
export interface IJsonPropertyInfo {
|
|
25
|
+
name: string;
|
|
26
|
+
type?: string;
|
|
27
|
+
className?: string;
|
|
28
|
+
classNamePart?: string;
|
|
29
|
+
baseClassName?: string;
|
|
30
|
+
isRequired?: boolean;
|
|
31
|
+
isUnique?: boolean;
|
|
32
|
+
uniqueProperty?: string;
|
|
33
|
+
choices?: any;
|
|
34
|
+
visible?: boolean;
|
|
35
|
+
alternativeName?: string;
|
|
36
|
+
oldName?: string;
|
|
37
|
+
version?: string;
|
|
38
|
+
dataList?: Array<string>;
|
|
39
|
+
isLocalizable?: boolean;
|
|
40
|
+
isSerializable?: boolean;
|
|
41
|
+
isLightSerializable?: boolean;
|
|
42
|
+
readOnly?: boolean;
|
|
43
|
+
serializationProperty?: string;
|
|
44
|
+
dependsOn?: Array<string> | string;
|
|
45
|
+
isBindable?: boolean;
|
|
46
|
+
isArray?: boolean;
|
|
47
|
+
layout?: string;
|
|
48
|
+
default?: any;
|
|
49
|
+
defaultFunc?: (obj: Base) => any;
|
|
50
|
+
baseValue?: any;
|
|
51
|
+
onSerializeValue?: (obj: any) => any;
|
|
52
|
+
onGetValue?: (obj: any) => any;
|
|
53
|
+
onSettingValue?: (obj: any, value: any) => any;
|
|
54
|
+
onSetValue?: (obj: any, value: any, jsonConv: JsonObject) => any;
|
|
55
|
+
visibleIf?: (obj: any) => boolean;
|
|
56
|
+
enableIf?: (obj: any) => boolean;
|
|
57
|
+
onExecuteExpression?: (obj: any, res: any) => any;
|
|
58
|
+
onPropertyEditorUpdate?: (obj: any, propEditor: any) => any;
|
|
59
|
+
displayName?: string;
|
|
60
|
+
category?: string;
|
|
61
|
+
categoryIndex?: number;
|
|
62
|
+
visibleIndex?: number;
|
|
63
|
+
nextToProperty?: string;
|
|
64
|
+
overridingProperty?: string;
|
|
65
|
+
showMode?: string;
|
|
66
|
+
maxLength?: number;
|
|
67
|
+
maxValue?: any;
|
|
68
|
+
minValue?: any;
|
|
69
|
+
}
|
|
24
70
|
/**
|
|
25
71
|
* Contains information about a property of a survey element (page, panel, questions, and etc).
|
|
26
72
|
* @see addProperty
|
|
@@ -28,7 +74,7 @@ export interface IObject {
|
|
|
28
74
|
* @see [Add Properties](https://surveyjs.io/Documentation/Survey-Creator#addproperties)
|
|
29
75
|
* @see [Remove Properties](https://surveyjs.io/Documentation/Survey-Creator#removeproperties)
|
|
30
76
|
*/
|
|
31
|
-
export declare class JsonObjectProperty implements IObject {
|
|
77
|
+
export declare class JsonObjectProperty implements IObject, IJsonPropertyInfo {
|
|
32
78
|
name: string;
|
|
33
79
|
static getItemValuesDefaultValue: (val: any, type: string) => any;
|
|
34
80
|
[key: string]: any;
|
|
@@ -38,7 +84,7 @@ export declare class JsonObjectProperty implements IObject {
|
|
|
38
84
|
private classInfoValue;
|
|
39
85
|
private typeValue;
|
|
40
86
|
private choicesValue;
|
|
41
|
-
|
|
87
|
+
baseValue: any;
|
|
42
88
|
private isRequiredValue;
|
|
43
89
|
private isUniqueValue;
|
|
44
90
|
private uniquePropertyValue;
|
|
@@ -82,6 +128,10 @@ export declare class JsonObjectProperty implements IObject {
|
|
|
82
128
|
onExecuteExpression: (obj: any, res: any) => any;
|
|
83
129
|
onPropertyEditorUpdate: (obj: any, propEditor: any) => any;
|
|
84
130
|
constructor(classInfo: JsonMetadataClass, name: string, isRequired?: boolean);
|
|
131
|
+
uniqueProperty?: string;
|
|
132
|
+
dependsOn?: string | string[];
|
|
133
|
+
default?: any;
|
|
134
|
+
defaultFunc?: (obj: Base) => any;
|
|
85
135
|
readonly id: number;
|
|
86
136
|
readonly classInfo: JsonMetadataClass;
|
|
87
137
|
type: string;
|
|
@@ -186,7 +236,7 @@ export declare class JsonMetadata {
|
|
|
186
236
|
private getObjPropertyValueCore;
|
|
187
237
|
private isObjWrapper;
|
|
188
238
|
private isNeedUseObjWrapper;
|
|
189
|
-
addClass(name: string, properties: Array<
|
|
239
|
+
addClass(name: string, properties: Array<IJsonPropertyInfo | string>, creator?: (json?: any) => any, parentName?: string): JsonMetadataClass;
|
|
190
240
|
removeClass(name: string): void;
|
|
191
241
|
overrideClassCreatore(name: string, creator: () => any): void;
|
|
192
242
|
overrideClassCreator(name: string, creator: () => any): void;
|
|
@@ -207,8 +257,8 @@ export declare class JsonMetadata {
|
|
|
207
257
|
private createCustomType;
|
|
208
258
|
getChildrenClasses(name: string, canBeCreated?: boolean): Array<JsonMetadataClass>;
|
|
209
259
|
getRequiredProperties(name: string): Array<string>;
|
|
210
|
-
addProperties(className: string, propertiesInfos: Array<
|
|
211
|
-
addProperty(className: string, propertyInfo:
|
|
260
|
+
addProperties(className: string, propertiesInfos: Array<IJsonPropertyInfo | string>): void;
|
|
261
|
+
addProperty(className: string, propertyInfo: IJsonPropertyInfo | string): JsonObjectProperty;
|
|
212
262
|
private addCustomPropertyCore;
|
|
213
263
|
removeProperty(className: string, propertyName: string): boolean;
|
|
214
264
|
private clearDynamicPropsCache;
|
|
@@ -31,6 +31,8 @@ export declare class LocalizableString implements ILocalizableString {
|
|
|
31
31
|
private calculatedTextValue;
|
|
32
32
|
private _localizationName;
|
|
33
33
|
localizationName: string;
|
|
34
|
+
private _allowLineBreaks;
|
|
35
|
+
readonly allowLineBreaks: boolean;
|
|
34
36
|
onGetTextCallback: (str: string) => string;
|
|
35
37
|
storeDefaultText: boolean;
|
|
36
38
|
onGetLocalizationTextCallback: (str: string) => string;
|
|
@@ -451,6 +451,7 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
451
451
|
*/
|
|
452
452
|
id: string;
|
|
453
453
|
readonly ariaTitleId: string;
|
|
454
|
+
readonly ariaDescriptionId: string;
|
|
454
455
|
readonly commentId: string;
|
|
455
456
|
/*
|
|
456
457
|
* Specifies whether to display the "Other" choice item. Incompatible with the `showCommentArea` property.
|
|
@@ -736,6 +737,7 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
736
737
|
*/
|
|
737
738
|
readonly requiredText: string;
|
|
738
739
|
addError(error: SurveyError | string): void;
|
|
740
|
+
private addCustomError;
|
|
739
741
|
removeError(error: SurveyError): void;
|
|
740
742
|
private checkForErrors;
|
|
741
743
|
protected canCollectErrors(): boolean;
|
|
@@ -845,12 +847,14 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
845
847
|
readonly ariaRequired: "true" | "false";
|
|
846
848
|
readonly ariaInvalid: "true" | "false";
|
|
847
849
|
readonly ariaLabelledBy: string;
|
|
848
|
-
readonly ariaExpanded: string;
|
|
849
850
|
readonly ariaDescribedBy: string;
|
|
851
|
+
readonly ariaExpanded: string;
|
|
852
|
+
readonly ariaErrormessage: string;
|
|
850
853
|
readonly a11y_input_ariaRole: string;
|
|
851
854
|
readonly a11y_input_ariaRequired: "true" | "false";
|
|
852
855
|
readonly a11y_input_ariaInvalid: "true" | "false";
|
|
853
856
|
readonly a11y_input_ariaLabel: string;
|
|
854
857
|
readonly a11y_input_ariaLabelledBy: string;
|
|
855
858
|
readonly a11y_input_ariaDescribedBy: string;
|
|
859
|
+
readonly a11y_input_ariaErrormessage: string;
|
|
856
860
|
}
|
|
@@ -8,6 +8,7 @@ export declare class QuestionCustomWidget {
|
|
|
8
8
|
afterRender(question: IQuestion, el: any): void;
|
|
9
9
|
willUnmount(question: IQuestion, el: any): void;
|
|
10
10
|
getDisplayValue(question: IQuestion, value?: any): string;
|
|
11
|
+
validate(question: IQuestion): string;
|
|
11
12
|
isFit(question: IQuestion): boolean;
|
|
12
13
|
readonly canShowInToolbox: boolean;
|
|
13
14
|
showInToolbox: boolean;
|
|
@@ -387,10 +387,12 @@ export declare class QuestionCompositeModel extends QuestionCustomModelBase {
|
|
|
387
387
|
private setIsContentElement;
|
|
388
388
|
setVisibleIndex(val: number): number;
|
|
389
389
|
runCondition(values: HashTable<any>, properties: HashTable<any>): void;
|
|
390
|
+
onSurveyValueChanged(newValue: any): void;
|
|
390
391
|
getValue(name: string): any;
|
|
391
392
|
protected getQuestionByName(name: string): IQuestion;
|
|
392
393
|
private settingNewValue;
|
|
393
394
|
setValue(name: string, newValue: any, locNotification: any, allowNotifyValueChanged?: boolean): any;
|
|
395
|
+
private runPanelTriggers;
|
|
394
396
|
getFilteredValues(): any;
|
|
395
397
|
private updateValueCoreWithPanelValue;
|
|
396
398
|
private getContentPanelValue;
|
|
@@ -18,6 +18,7 @@ export interface IMultipleTextData extends ILocalizableOwner, IPanel {
|
|
|
18
18
|
export declare class MultipleTextEditorModel extends QuestionTextModel {
|
|
19
19
|
readonly a11y_input_ariaLabel: string;
|
|
20
20
|
readonly a11y_input_ariaLabelledBy: string;
|
|
21
|
+
readonly a11y_input_ariaDescribedBy: string;
|
|
21
22
|
}
|
|
22
23
|
/**
|
|
23
24
|
* A class that describes an item in a [Multiple Textboxes](https://surveyjs.io/form-library/documentation/api-reference/multiple-text-entry-question-model) question.
|
|
@@ -17,6 +17,16 @@ export declare class QuestionTagboxModel extends QuestionCheckboxModel {
|
|
|
17
17
|
private updateReadOnlyText;
|
|
18
18
|
protected getDefaultItemComponent(): string;
|
|
19
19
|
onSurveyLoad(): void;
|
|
20
|
+
/**
|
|
21
|
+
* Specifies a comparison operation used to filter the drop-down list. Applies only if [`searchEnabled`](#searchEnabled) is `true`.
|
|
22
|
+
*
|
|
23
|
+
* Possible values:
|
|
24
|
+
*
|
|
25
|
+
* - `"contains"` (default)
|
|
26
|
+
* - `"startsWith"`
|
|
27
|
+
* @see [SurveyModel.onChoicesSearch](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onChoicesSearch)
|
|
28
|
+
*/
|
|
29
|
+
searchMode: "contains" | "startsWith";
|
|
20
30
|
/**
|
|
21
31
|
* Specifies whether to display a button that clears the selected value.
|
|
22
32
|
*/
|
|
@@ -46,6 +46,7 @@ export declare abstract class SurveyElementCore extends Base implements ILocaliz
|
|
|
46
46
|
readonly cssClasses: any;
|
|
47
47
|
readonly cssTitle: string;
|
|
48
48
|
readonly ariaTitleId: string;
|
|
49
|
+
readonly ariaDescriptionId: string;
|
|
49
50
|
readonly titleTabIndex: number;
|
|
50
51
|
readonly titleAriaExpanded: any;
|
|
51
52
|
readonly titleAriaRole: any;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PopupBaseViewModel } from "../popup-view-model";
|
|
1
2
|
declare function compareVersions(a: any, b: any): number;
|
|
2
3
|
declare function confirmAction(message: string): boolean;
|
|
3
4
|
declare function confirmActionAsync(message: string, funcOnYes: () => void, funcOnNo?: () => void, locale?: string, rootElement?: HTMLElement): void;
|
|
@@ -33,7 +34,7 @@ declare function getElementWidth(el: HTMLElement): number;
|
|
|
33
34
|
declare function isContainerVisible(el: HTMLElement): boolean;
|
|
34
35
|
declare function getFirstVisibleChild(el: HTMLElement): any;
|
|
35
36
|
declare function findParentByClassNames(element: HTMLElement, classNames: Array<string>): Element;
|
|
36
|
-
export declare function sanitizeEditableContent(element: any): void;
|
|
37
|
+
export declare function sanitizeEditableContent(element: any, cleanLineBreaks?: boolean): void;
|
|
37
38
|
declare function mergeValues(src: any, dest: any): void;
|
|
38
39
|
export declare class Logger {
|
|
39
40
|
private _result;
|
|
@@ -41,5 +42,6 @@ export declare class Logger {
|
|
|
41
42
|
readonly result: string;
|
|
42
43
|
}
|
|
43
44
|
export declare function showConfirmDialog(message: string, callback: (res: boolean) => void, applyTitle?: string, locale?: string, rootElement?: HTMLElement): boolean;
|
|
45
|
+
export declare function configConfirmDialog(popupViewModel: PopupBaseViewModel): void;
|
|
44
46
|
declare function chooseFiles(input: HTMLInputElement, callback: (files: File[]) => void): void;
|
|
45
47
|
export { mergeValues, getElementWidth, isContainerVisible, classesToSelector, compareVersions, confirmAction, confirmActionAsync, detectIEOrEdge, detectIEBrowser, loadFileFromBase64, isMobile, isShadowDOM, getElement, isElementVisible, findScrollableParent, scrollElementByChildId, navigateToUrl, wrapUrlForBackgroundImage, createSvg, getIconNameFromProxy, increaseHeightByContent, getOriginalEvent, preventDefaults, findParentByClassNames, getFirstVisibleChild, chooseFiles };
|
package/typings/base.d.ts
CHANGED
|
@@ -218,7 +218,7 @@ export declare class Base {
|
|
|
218
218
|
geValueFromHash(): any;
|
|
219
219
|
protected setPropertyValueCore(propertiesHash: any, name: string, val: any): void;
|
|
220
220
|
get isEditingSurveyElement(): boolean;
|
|
221
|
-
iteratePropertiesHash(func: (hash: any, key:
|
|
221
|
+
iteratePropertiesHash(func: (hash: any, key: string) => void): void;
|
|
222
222
|
/**
|
|
223
223
|
* Assigns a new value to a specified property.
|
|
224
224
|
* @param name A property name.
|
|
@@ -32,6 +32,7 @@ export declare class DropdownListModel extends Base {
|
|
|
32
32
|
protected popupRecalculatePosition(isResetHeight: boolean): void;
|
|
33
33
|
protected onHidePopup(): void;
|
|
34
34
|
protected getAvailableItems(): Array<ItemValue>;
|
|
35
|
+
protected setOnTextSearchCallbackForListModel(listModel: ListModel<ItemValue>): void;
|
|
35
36
|
protected createListModel(): ListModel<ItemValue>;
|
|
36
37
|
protected updateAfterListModelCreated(model: ListModel<ItemValue>): void;
|
|
37
38
|
updateCssClasses(popupCssClass: string, listCssClasses: any): void;
|
|
@@ -22,7 +22,7 @@ export { ConditionRunner, ExpressionRunner, IExpresionExecutor, ExpressionExecut
|
|
|
22
22
|
export { Operand, Const, BinaryOperand, Variable, FunctionOperand, ArrayOperand, UnaryOperand } from "../../expressions/expressions";
|
|
23
23
|
export { ConditionsParser } from "../../conditionsParser";
|
|
24
24
|
export { ProcessValue } from "../../conditionProcessValue";
|
|
25
|
-
export { JsonError, JsonIncorrectTypeError, JsonMetadata, JsonMetadataClass, JsonMissingTypeError, JsonMissingTypeErrorBase, JsonObject, JsonObjectProperty, JsonRequiredPropertyError, JsonUnknownPropertyError, Serializer, property, propertyArray } from "../../jsonobject";
|
|
25
|
+
export { JsonError, JsonIncorrectTypeError, JsonMetadata, JsonMetadataClass, JsonMissingTypeError, JsonMissingTypeErrorBase, JsonObject, IJsonPropertyInfo, JsonObjectProperty, JsonRequiredPropertyError, JsonUnknownPropertyError, Serializer, property, propertyArray } from "../../jsonobject";
|
|
26
26
|
export { IMatrixDropdownData, MatrixDropdownCell, MatrixDropdownRowModelBase, QuestionMatrixDropdownModelBase } from "../../question_matrixdropdownbase";
|
|
27
27
|
export { MatrixDropdownColumn, matrixDropdownColumnTypes } from "../../question_matrixdropdowncolumn";
|
|
28
28
|
export { QuestionMatrixDropdownRenderedCell, QuestionMatrixDropdownRenderedRow, QuestionMatrixDropdownRenderedErrorRow, QuestionMatrixDropdownRenderedTable } from "../../question_matrixdropdownrendered";
|
package/typings/jsonobject.d.ts
CHANGED
|
@@ -21,6 +21,52 @@ export declare function propertyArray(options?: IArrayPropertyDecoratorOptions):
|
|
|
21
21
|
export interface IObject {
|
|
22
22
|
[key: string]: any;
|
|
23
23
|
}
|
|
24
|
+
export interface IJsonPropertyInfo {
|
|
25
|
+
name: string;
|
|
26
|
+
type?: string;
|
|
27
|
+
className?: string;
|
|
28
|
+
classNamePart?: string;
|
|
29
|
+
baseClassName?: string;
|
|
30
|
+
isRequired?: boolean;
|
|
31
|
+
isUnique?: boolean;
|
|
32
|
+
uniqueProperty?: string;
|
|
33
|
+
choices?: any;
|
|
34
|
+
visible?: boolean;
|
|
35
|
+
alternativeName?: string;
|
|
36
|
+
oldName?: string;
|
|
37
|
+
version?: string;
|
|
38
|
+
dataList?: Array<string>;
|
|
39
|
+
isLocalizable?: boolean;
|
|
40
|
+
isSerializable?: boolean;
|
|
41
|
+
isLightSerializable?: boolean;
|
|
42
|
+
readOnly?: boolean;
|
|
43
|
+
serializationProperty?: string;
|
|
44
|
+
dependsOn?: Array<string> | string;
|
|
45
|
+
isBindable?: boolean;
|
|
46
|
+
isArray?: boolean;
|
|
47
|
+
layout?: string;
|
|
48
|
+
default?: any;
|
|
49
|
+
defaultFunc?: (obj: Base) => any;
|
|
50
|
+
baseValue?: any;
|
|
51
|
+
onSerializeValue?: (obj: any) => any;
|
|
52
|
+
onGetValue?: (obj: any) => any;
|
|
53
|
+
onSettingValue?: (obj: any, value: any) => any;
|
|
54
|
+
onSetValue?: (obj: any, value: any, jsonConv: JsonObject) => any;
|
|
55
|
+
visibleIf?: (obj: any) => boolean;
|
|
56
|
+
enableIf?: (obj: any) => boolean;
|
|
57
|
+
onExecuteExpression?: (obj: any, res: any) => any;
|
|
58
|
+
onPropertyEditorUpdate?: (obj: any, propEditor: any) => any;
|
|
59
|
+
displayName?: string;
|
|
60
|
+
category?: string;
|
|
61
|
+
categoryIndex?: number;
|
|
62
|
+
visibleIndex?: number;
|
|
63
|
+
nextToProperty?: string;
|
|
64
|
+
overridingProperty?: string;
|
|
65
|
+
showMode?: string;
|
|
66
|
+
maxLength?: number;
|
|
67
|
+
maxValue?: any;
|
|
68
|
+
minValue?: any;
|
|
69
|
+
}
|
|
24
70
|
/**
|
|
25
71
|
* Contains information about a property of a survey element (page, panel, questions, and etc).
|
|
26
72
|
* @see addProperty
|
|
@@ -28,7 +74,7 @@ export interface IObject {
|
|
|
28
74
|
* @see [Add Properties](https://surveyjs.io/Documentation/Survey-Creator#addproperties)
|
|
29
75
|
* @see [Remove Properties](https://surveyjs.io/Documentation/Survey-Creator#removeproperties)
|
|
30
76
|
*/
|
|
31
|
-
export declare class JsonObjectProperty implements IObject {
|
|
77
|
+
export declare class JsonObjectProperty implements IObject, IJsonPropertyInfo {
|
|
32
78
|
name: string;
|
|
33
79
|
static getItemValuesDefaultValue: (val: any, type: string) => any;
|
|
34
80
|
[key: string]: any;
|
|
@@ -38,7 +84,7 @@ export declare class JsonObjectProperty implements IObject {
|
|
|
38
84
|
private classInfoValue;
|
|
39
85
|
private typeValue;
|
|
40
86
|
private choicesValue;
|
|
41
|
-
|
|
87
|
+
baseValue: any;
|
|
42
88
|
private isRequiredValue;
|
|
43
89
|
private isUniqueValue;
|
|
44
90
|
private uniquePropertyValue;
|
|
@@ -82,6 +128,10 @@ export declare class JsonObjectProperty implements IObject {
|
|
|
82
128
|
onExecuteExpression: (obj: any, res: any) => any;
|
|
83
129
|
onPropertyEditorUpdate: (obj: any, propEditor: any) => any;
|
|
84
130
|
constructor(classInfo: JsonMetadataClass, name: string, isRequired?: boolean);
|
|
131
|
+
uniqueProperty?: string;
|
|
132
|
+
dependsOn?: string | string[];
|
|
133
|
+
default?: any;
|
|
134
|
+
defaultFunc?: (obj: Base) => any;
|
|
85
135
|
get id(): number;
|
|
86
136
|
get classInfo(): JsonMetadataClass;
|
|
87
137
|
get type(): string;
|
|
@@ -195,7 +245,7 @@ export declare class JsonMetadata {
|
|
|
195
245
|
private getObjPropertyValueCore;
|
|
196
246
|
private isObjWrapper;
|
|
197
247
|
private isNeedUseObjWrapper;
|
|
198
|
-
addClass(name: string, properties: Array<
|
|
248
|
+
addClass(name: string, properties: Array<IJsonPropertyInfo | string>, creator?: (json?: any) => any, parentName?: string): JsonMetadataClass;
|
|
199
249
|
removeClass(name: string): void;
|
|
200
250
|
overrideClassCreatore(name: string, creator: () => any): void;
|
|
201
251
|
overrideClassCreator(name: string, creator: () => any): void;
|
|
@@ -216,8 +266,8 @@ export declare class JsonMetadata {
|
|
|
216
266
|
private createCustomType;
|
|
217
267
|
getChildrenClasses(name: string, canBeCreated?: boolean): Array<JsonMetadataClass>;
|
|
218
268
|
getRequiredProperties(name: string): Array<string>;
|
|
219
|
-
addProperties(className: string, propertiesInfos: Array<
|
|
220
|
-
addProperty(className: string, propertyInfo:
|
|
269
|
+
addProperties(className: string, propertiesInfos: Array<IJsonPropertyInfo | string>): void;
|
|
270
|
+
addProperty(className: string, propertyInfo: IJsonPropertyInfo | string): JsonObjectProperty;
|
|
221
271
|
private addCustomPropertyCore;
|
|
222
272
|
removeProperty(className: string, propertyName: string): boolean;
|
|
223
273
|
private clearDynamicPropsCache;
|
|
@@ -33,6 +33,8 @@ export declare class LocalizableString implements ILocalizableString {
|
|
|
33
33
|
private _localizationName;
|
|
34
34
|
get localizationName(): string;
|
|
35
35
|
set localizationName(val: string);
|
|
36
|
+
private _allowLineBreaks;
|
|
37
|
+
get allowLineBreaks(): boolean;
|
|
36
38
|
onGetTextCallback: (str: string) => string;
|
|
37
39
|
storeDefaultText: boolean;
|
|
38
40
|
onGetLocalizationTextCallback: (str: string) => string;
|
package/typings/question.d.ts
CHANGED
|
@@ -470,6 +470,7 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
470
470
|
get id(): string;
|
|
471
471
|
set id(val: string);
|
|
472
472
|
get ariaTitleId(): string;
|
|
473
|
+
get ariaDescriptionId(): string;
|
|
473
474
|
get commentId(): string;
|
|
474
475
|
/**
|
|
475
476
|
* Specifies whether to display the "Other" choice item. Incompatible with the `showCommentArea` property.
|
|
@@ -771,6 +772,7 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
771
772
|
*/
|
|
772
773
|
get requiredText(): string;
|
|
773
774
|
addError(error: SurveyError | string): void;
|
|
775
|
+
private addCustomError;
|
|
774
776
|
removeError(error: SurveyError): void;
|
|
775
777
|
private checkForErrors;
|
|
776
778
|
protected canCollectErrors(): boolean;
|
|
@@ -881,12 +883,14 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
881
883
|
get ariaRequired(): "true" | "false";
|
|
882
884
|
get ariaInvalid(): "true" | "false";
|
|
883
885
|
get ariaLabelledBy(): string;
|
|
884
|
-
get ariaExpanded(): string;
|
|
885
886
|
get ariaDescribedBy(): string;
|
|
887
|
+
get ariaExpanded(): string;
|
|
888
|
+
get ariaErrormessage(): string;
|
|
886
889
|
get a11y_input_ariaRole(): string;
|
|
887
890
|
get a11y_input_ariaRequired(): "true" | "false";
|
|
888
891
|
get a11y_input_ariaInvalid(): "true" | "false";
|
|
889
892
|
get a11y_input_ariaLabel(): string;
|
|
890
893
|
get a11y_input_ariaLabelledBy(): string;
|
|
891
894
|
get a11y_input_ariaDescribedBy(): string;
|
|
895
|
+
get a11y_input_ariaErrormessage(): string;
|
|
892
896
|
}
|
|
@@ -8,6 +8,7 @@ export declare class QuestionCustomWidget {
|
|
|
8
8
|
afterRender(question: IQuestion, el: any): void;
|
|
9
9
|
willUnmount(question: IQuestion, el: any): void;
|
|
10
10
|
getDisplayValue(question: IQuestion, value?: any): string;
|
|
11
|
+
validate(question: IQuestion): string;
|
|
11
12
|
isFit(question: IQuestion): boolean;
|
|
12
13
|
get canShowInToolbox(): boolean;
|
|
13
14
|
get showInToolbox(): boolean;
|
|
@@ -387,10 +387,12 @@ export declare class QuestionCompositeModel extends QuestionCustomModelBase {
|
|
|
387
387
|
private setIsContentElement;
|
|
388
388
|
setVisibleIndex(val: number): number;
|
|
389
389
|
runCondition(values: HashTable<any>, properties: HashTable<any>): void;
|
|
390
|
+
onSurveyValueChanged(newValue: any): void;
|
|
390
391
|
getValue(name: string): any;
|
|
391
392
|
protected getQuestionByName(name: string): IQuestion;
|
|
392
393
|
private settingNewValue;
|
|
393
394
|
setValue(name: string, newValue: any, locNotification: any, allowNotifyValueChanged?: boolean): any;
|
|
395
|
+
private runPanelTriggers;
|
|
394
396
|
getFilteredValues(): any;
|
|
395
397
|
private updateValueCoreWithPanelValue;
|
|
396
398
|
private getContentPanelValue;
|
|
@@ -18,6 +18,7 @@ export interface IMultipleTextData extends ILocalizableOwner, IPanel {
|
|
|
18
18
|
export declare class MultipleTextEditorModel extends QuestionTextModel {
|
|
19
19
|
get a11y_input_ariaLabel(): string;
|
|
20
20
|
get a11y_input_ariaLabelledBy(): string;
|
|
21
|
+
get a11y_input_ariaDescribedBy(): string;
|
|
21
22
|
}
|
|
22
23
|
/**
|
|
23
24
|
* A class that describes an item in a [Multiple Textboxes](https://surveyjs.io/form-library/documentation/api-reference/multiple-text-entry-question-model) question.
|
|
@@ -17,6 +17,16 @@ export declare class QuestionTagboxModel extends QuestionCheckboxModel {
|
|
|
17
17
|
private updateReadOnlyText;
|
|
18
18
|
protected getDefaultItemComponent(): string;
|
|
19
19
|
onSurveyLoad(): void;
|
|
20
|
+
/**
|
|
21
|
+
* Specifies a comparison operation used to filter the drop-down list. Applies only if [`searchEnabled`](#searchEnabled) is `true`.
|
|
22
|
+
*
|
|
23
|
+
* Possible values:
|
|
24
|
+
*
|
|
25
|
+
* - `"contains"` (default)
|
|
26
|
+
* - `"startsWith"`
|
|
27
|
+
* @see [SurveyModel.onChoicesSearch](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onChoicesSearch)
|
|
28
|
+
*/
|
|
29
|
+
searchMode: "contains" | "startsWith";
|
|
20
30
|
/**
|
|
21
31
|
* Specifies whether to display a button that clears the selected value.
|
|
22
32
|
*/
|
package/typings/settings.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ export declare abstract class SurveyElementCore extends Base implements ILocaliz
|
|
|
47
47
|
get cssClasses(): any;
|
|
48
48
|
get cssTitle(): string;
|
|
49
49
|
get ariaTitleId(): string;
|
|
50
|
+
get ariaDescriptionId(): string;
|
|
50
51
|
get titleTabIndex(): number;
|
|
51
52
|
get titleAriaExpanded(): any;
|
|
52
53
|
get titleAriaRole(): any;
|
package/typings/utils/utils.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PopupBaseViewModel } from "../popup-view-model";
|
|
1
2
|
declare function compareVersions(a: any, b: any): number;
|
|
2
3
|
declare function confirmAction(message: string): boolean;
|
|
3
4
|
declare function confirmActionAsync(message: string, funcOnYes: () => void, funcOnNo?: () => void, locale?: string, rootElement?: HTMLElement): void;
|
|
@@ -33,7 +34,7 @@ declare function getElementWidth(el: HTMLElement): number;
|
|
|
33
34
|
declare function isContainerVisible(el: HTMLElement): boolean;
|
|
34
35
|
declare function getFirstVisibleChild(el: HTMLElement): any;
|
|
35
36
|
declare function findParentByClassNames(element: HTMLElement, classNames: Array<string>): Element;
|
|
36
|
-
export declare function sanitizeEditableContent(element: any): void;
|
|
37
|
+
export declare function sanitizeEditableContent(element: any, cleanLineBreaks?: boolean): void;
|
|
37
38
|
declare function mergeValues(src: any, dest: any): void;
|
|
38
39
|
export declare class Logger {
|
|
39
40
|
private _result;
|
|
@@ -41,5 +42,6 @@ export declare class Logger {
|
|
|
41
42
|
get result(): string;
|
|
42
43
|
}
|
|
43
44
|
export declare function showConfirmDialog(message: string, callback: (res: boolean) => void, applyTitle?: string, locale?: string, rootElement?: HTMLElement): boolean;
|
|
45
|
+
export declare function configConfirmDialog(popupViewModel: PopupBaseViewModel): void;
|
|
44
46
|
declare function chooseFiles(input: HTMLInputElement, callback: (files: File[]) => void): void;
|
|
45
47
|
export { mergeValues, getElementWidth, isContainerVisible, classesToSelector, compareVersions, confirmAction, confirmActionAsync, detectIEOrEdge, detectIEBrowser, loadFileFromBase64, isMobile, isShadowDOM, getElement, isElementVisible, findScrollableParent, scrollElementByChildId, navigateToUrl, wrapUrlForBackgroundImage, createSvg, getIconNameFromProxy, increaseHeightByContent, getOriginalEvent, preventDefaults, findParentByClassNames, getFirstVisibleChild, chooseFiles };
|