survey-core 1.12.11 → 1.12.12
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 +5 -5
- package/defaultV2.css.map +1 -1
- package/defaultV2.fontless.css +5 -5
- package/defaultV2.fontless.css.map +1 -1
- package/defaultV2.fontless.min.css +2 -2
- package/defaultV2.min.css +2 -2
- package/i18n/arabic.js +2 -2
- package/i18n/arabic.js.map +1 -1
- package/i18n/arabic.min.js +2 -2
- package/i18n/basque.js +2 -2
- package/i18n/basque.js.map +1 -1
- package/i18n/basque.min.js +2 -2
- package/i18n/bulgarian.js +2 -2
- package/i18n/bulgarian.js.map +1 -1
- package/i18n/bulgarian.min.js +2 -2
- package/i18n/catalan.js +2 -2
- package/i18n/catalan.js.map +1 -1
- package/i18n/catalan.min.js +2 -2
- package/i18n/croatian.js +2 -2
- package/i18n/croatian.js.map +1 -1
- package/i18n/croatian.min.js +2 -2
- package/i18n/czech.js +2 -2
- package/i18n/czech.js.map +1 -1
- package/i18n/czech.min.js +2 -2
- package/i18n/danish.js +2 -2
- package/i18n/danish.js.map +1 -1
- package/i18n/danish.min.js +2 -2
- package/i18n/dutch.js +2 -2
- package/i18n/dutch.js.map +1 -1
- package/i18n/dutch.min.js +2 -2
- package/i18n/english.js +3 -3
- package/i18n/english.js.map +1 -1
- package/i18n/english.min.js +1 -1
- package/i18n/estonian.js +2 -2
- package/i18n/estonian.js.map +1 -1
- package/i18n/estonian.min.js +2 -2
- package/i18n/finnish.js +2 -2
- package/i18n/finnish.js.map +1 -1
- package/i18n/finnish.min.js +2 -2
- package/i18n/french.js +2 -2
- package/i18n/french.js.map +1 -1
- package/i18n/french.min.js +2 -2
- package/i18n/georgian.js +2 -2
- package/i18n/georgian.js.map +1 -1
- package/i18n/georgian.min.js +2 -2
- package/i18n/german.js +2 -2
- package/i18n/german.js.map +1 -1
- package/i18n/german.min.js +2 -2
- package/i18n/greek.js +2 -2
- package/i18n/greek.js.map +1 -1
- package/i18n/greek.min.js +2 -2
- package/i18n/hebrew.js +2 -2
- package/i18n/hebrew.js.map +1 -1
- package/i18n/hebrew.min.js +2 -2
- package/i18n/hindi.js +2 -2
- package/i18n/hindi.js.map +1 -1
- package/i18n/hindi.min.js +2 -2
- package/i18n/hungarian.js +2 -2
- package/i18n/hungarian.js.map +1 -1
- package/i18n/hungarian.min.js +2 -2
- package/i18n/icelandic.js +2 -2
- package/i18n/icelandic.js.map +1 -1
- package/i18n/icelandic.min.js +2 -2
- package/i18n/index.js +51 -53
- package/i18n/index.js.map +1 -1
- package/i18n/index.min.js +2 -2
- package/i18n/indonesian.js +2 -2
- package/i18n/indonesian.js.map +1 -1
- package/i18n/indonesian.min.js +2 -2
- package/i18n/italian.js +2 -2
- package/i18n/italian.js.map +1 -1
- package/i18n/italian.min.js +2 -2
- package/i18n/japanese.js +2 -2
- package/i18n/japanese.js.map +1 -1
- package/i18n/japanese.min.js +2 -2
- package/i18n/kazakh.js +2 -2
- package/i18n/kazakh.js.map +1 -1
- package/i18n/kazakh.min.js +2 -2
- package/i18n/korean.js +2 -2
- package/i18n/korean.js.map +1 -1
- package/i18n/korean.min.js +2 -2
- package/i18n/latvian.js +2 -2
- package/i18n/latvian.js.map +1 -1
- package/i18n/latvian.min.js +2 -2
- package/i18n/lithuanian.js +2 -2
- package/i18n/lithuanian.js.map +1 -1
- package/i18n/lithuanian.min.js +2 -2
- package/i18n/macedonian.js +2 -2
- package/i18n/macedonian.js.map +1 -1
- package/i18n/macedonian.min.js +2 -2
- package/i18n/malay.js +2 -2
- package/i18n/malay.js.map +1 -1
- package/i18n/malay.min.js +2 -2
- package/i18n/nl-BE.js +3 -3
- package/i18n/nl-BE.js.map +1 -1
- package/i18n/nl-BE.min.js +2 -2
- package/i18n/norwegian.js +2 -2
- package/i18n/norwegian.js.map +1 -1
- package/i18n/norwegian.min.js +2 -2
- package/i18n/persian.js +2 -2
- package/i18n/persian.js.map +1 -1
- package/i18n/persian.min.js +2 -2
- package/i18n/philippines.js +2 -2
- package/i18n/philippines.js.map +1 -1
- package/i18n/philippines.min.js +2 -2
- package/i18n/polish.js +2 -2
- package/i18n/polish.js.map +1 -1
- package/i18n/polish.min.js +2 -2
- package/i18n/portuguese-br.js +2 -2
- package/i18n/portuguese-br.js.map +1 -1
- package/i18n/portuguese-br.min.js +2 -2
- package/i18n/portuguese.js +2 -2
- package/i18n/portuguese.js.map +1 -1
- package/i18n/portuguese.min.js +2 -2
- package/i18n/romanian.js +2 -2
- package/i18n/romanian.js.map +1 -1
- package/i18n/romanian.min.js +2 -2
- package/i18n/russian.js +2 -2
- package/i18n/russian.js.map +1 -1
- package/i18n/russian.min.js +2 -2
- package/i18n/serbian.js +2 -3
- package/i18n/serbian.js.map +1 -1
- package/i18n/serbian.min.js +2 -2
- package/i18n/simplified-chinese.js +2 -2
- package/i18n/simplified-chinese.js.map +1 -1
- package/i18n/simplified-chinese.min.js +2 -2
- package/i18n/slovak.js +2 -2
- package/i18n/slovak.js.map +1 -1
- package/i18n/slovak.min.js +2 -2
- package/i18n/spanish.js +2 -2
- package/i18n/spanish.js.map +1 -1
- package/i18n/spanish.min.js +2 -2
- package/i18n/swahili.js +2 -2
- package/i18n/swahili.js.map +1 -1
- package/i18n/swahili.min.js +2 -2
- package/i18n/swedish.js +2 -2
- package/i18n/swedish.js.map +1 -1
- package/i18n/swedish.min.js +2 -2
- package/i18n/tajik.js +2 -2
- package/i18n/tajik.js.map +1 -1
- package/i18n/tajik.min.js +2 -2
- package/i18n/telugu.js +2 -2
- package/i18n/telugu.js.map +1 -1
- package/i18n/telugu.min.js +2 -2
- package/i18n/thai.js +2 -2
- package/i18n/thai.js.map +1 -1
- package/i18n/thai.min.js +2 -2
- package/i18n/traditional-chinese.js +2 -2
- package/i18n/traditional-chinese.js.map +1 -1
- package/i18n/traditional-chinese.min.js +2 -2
- package/i18n/turkish.js +2 -2
- package/i18n/turkish.js.map +1 -1
- package/i18n/turkish.min.js +2 -2
- package/i18n/ukrainian.js +2 -2
- package/i18n/ukrainian.js.map +1 -1
- package/i18n/ukrainian.min.js +2 -2
- package/i18n/urdu.js +2 -3
- package/i18n/urdu.js.map +1 -1
- package/i18n/urdu.min.js +2 -2
- package/i18n/vietnamese.js +2 -3
- package/i18n/vietnamese.js.map +1 -1
- package/i18n/vietnamese.min.js +2 -2
- package/i18n/welsh.js +2 -2
- package/i18n/welsh.js.map +1 -1
- package/i18n/welsh.min.js +2 -2
- package/icons/iconsV1.d.ts +4 -0
- package/icons/iconsV1.js +927 -0
- package/icons/iconsV1.js.map +1 -0
- package/icons/iconsV1.min.js +6 -0
- package/icons/iconsV2.d.ts +4 -0
- package/icons/iconsV2.js +927 -0
- package/icons/iconsV2.js.map +1 -0
- package/icons/iconsV2.min.js +6 -0
- package/modern.css +9 -1
- package/modern.css.map +1 -1
- package/modern.fontless.css +9 -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/index.js +1 -1
- package/plugins/bootstrap-integration/index.min.js +1 -1
- package/plugins/bootstrap-material-integration/index.js +1 -1
- package/plugins/bootstrap-material-integration/index.min.js +1 -1
- package/survey.core.js +199 -1773
- package/survey.core.js.map +1 -1
- package/survey.core.min.js +3 -3
- package/survey.css +1 -1
- package/survey.i18n.js +51 -53
- 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/icons/iconsV1.d.ts +4 -0
- package/ts3.4/icons/iconsV2.d.ts +4 -0
- package/ts3.4/typings/packages/survey-core/entries/chunks/model.d.ts +1 -1
- package/ts3.4/typings/packages/survey-core/src/helpers.d.ts +1 -0
- package/ts3.4/typings/packages/survey-core/src/localizablestring.d.ts +1 -0
- package/ts3.4/typings/packages/survey-core/src/question_checkbox.d.ts +2 -0
- package/ts3.4/typings/packages/survey-core/src/question_signaturepad.d.ts +1 -1
- package/ts3.4/typings/packages/survey-core/src/question_tagbox.d.ts +1 -1
- package/ts3.4/typings/packages/survey-core/src/question_text.d.ts +1 -0
- package/ts3.4/typings/packages/survey-core/src/settings.d.ts +6 -16
- package/ts3.4/typings/packages/survey-core/src/survey.d.ts +0 -1
- package/ts3.4/typings/packages/survey-core/src/surveyStrings.d.ts +7 -0
- package/ts3.4/typings/packages/survey-core/src/svgbundle.d.ts +9 -6
- package/typings/packages/survey-core/entries/chunks/model.d.ts +1 -1
- package/typings/packages/survey-core/src/helpers.d.ts +1 -0
- package/typings/packages/survey-core/src/localizablestring.d.ts +1 -0
- package/typings/packages/survey-core/src/question_checkbox.d.ts +2 -0
- package/typings/packages/survey-core/src/question_signaturepad.d.ts +1 -1
- package/typings/packages/survey-core/src/question_tagbox.d.ts +1 -1
- package/typings/packages/survey-core/src/question_text.d.ts +1 -0
- package/typings/packages/survey-core/src/settings.d.ts +6 -16
- package/typings/packages/survey-core/src/survey.d.ts +0 -1
- package/typings/packages/survey-core/src/surveyStrings.d.ts +7 -0
- package/typings/packages/survey-core/src/svgbundle.d.ts +9 -6
|
@@ -73,7 +73,7 @@ export { Notifier } from "../../src/notifier";
|
|
|
73
73
|
export { Cover, CoverCell } from "../../src/header";
|
|
74
74
|
export { dxSurveyService } from "../../src/dxSurveyService";
|
|
75
75
|
export { englishStrings } from "../../src/localization/english";
|
|
76
|
-
export { surveyLocalization, surveyStrings, getLocaleString } from "../../src/surveyStrings";
|
|
76
|
+
export { surveyLocalization, surveyStrings, getLocaleString, setupLocale } from "../../src/surveyStrings";
|
|
77
77
|
export { QuestionCustomWidget, CustomWidgetCollection, } from "../../src/questionCustomWidgets";
|
|
78
78
|
export { QuestionCustomModel, QuestionCompositeModel, ComponentQuestionJSON, ComponentCollection, ICustomQuestionTypeConfiguration } from "../../src/question_custom";
|
|
79
79
|
export { ListModel } from "../../src/list";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export interface HashTable<T = any> {
|
|
2
2
|
[key: string]: T;
|
|
3
3
|
}
|
|
4
|
+
export declare function createDate(reason: string, val?: number | string | Date): Date;
|
|
4
5
|
export declare class Helpers {
|
|
5
6
|
/**
|
|
6
7
|
* A static methods that returns true if a value undefined, null, empty string or empty array.
|
|
@@ -35,6 +35,7 @@ export declare class LocalizableString implements ILocalizableString {
|
|
|
35
35
|
readonly allowLineBreaks: boolean;
|
|
36
36
|
onGetTextCallback: (str: string) => string;
|
|
37
37
|
storeDefaultText: boolean;
|
|
38
|
+
serializeCallBackText: boolean;
|
|
38
39
|
onGetLocalizationTextCallback: (str: string) => string;
|
|
39
40
|
onStrChanged: (oldValue: string, newValue: string) => void;
|
|
40
41
|
onSearchChanged: () => void;
|
|
@@ -60,6 +60,7 @@ export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
|
|
|
60
60
|
selectAll(): void;
|
|
61
61
|
clickItemHandler(item: ItemValue, checked?: boolean): void;
|
|
62
62
|
protected isItemSelectedCore(item: ItemValue): boolean;
|
|
63
|
+
protected hasUnknownValueItem(val: any, includeOther?: boolean, isFilteredChoices?: boolean, checkEmptyValue?: boolean): boolean;
|
|
63
64
|
protected convertFuncValuetoQuestionValue(val: any): any;
|
|
64
65
|
private getRealValue;
|
|
65
66
|
readonly isValueArray: boolean;
|
|
@@ -111,6 +112,7 @@ export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
|
|
|
111
112
|
protected setNewValue(newValue: any): void;
|
|
112
113
|
protected getIsMultipleValue(): boolean;
|
|
113
114
|
protected getCommentFromValue(newValue: any): string;
|
|
115
|
+
getStoreOthersAsComment(): boolean;
|
|
114
116
|
protected setOtherValueIntoValue(newValue: any): any;
|
|
115
117
|
private getFirstUnknownIndex;
|
|
116
118
|
protected removeNoneItemsValues(value: Array<any>, newValue: Array<any>): void;
|
|
@@ -11,7 +11,7 @@ export declare class QuestionSignaturePadModel extends QuestionFileModelBase {
|
|
|
11
11
|
private getPenColorFromTheme;
|
|
12
12
|
private updateColors;
|
|
13
13
|
protected getCssRoot(cssClasses: any): string;
|
|
14
|
-
protected getFormat(): "" | "image/
|
|
14
|
+
protected getFormat(): "" | "image/svg+xml" | "image/jpeg";
|
|
15
15
|
protected updateValue(): void;
|
|
16
16
|
constructor(name: string);
|
|
17
17
|
getType(): string;
|
|
@@ -74,7 +74,7 @@ export declare class QuestionTagboxModel extends QuestionCheckboxModel {
|
|
|
74
74
|
getControlClass(): string;
|
|
75
75
|
onOpened: EventBase<QuestionTagboxModel>;
|
|
76
76
|
onOpenedCallBack(): void;
|
|
77
|
-
protected hasUnknownValue(val: any, includeOther
|
|
77
|
+
protected hasUnknownValue(val: any, includeOther?: boolean, isFilteredChoices?: boolean, checkEmptyValue?: boolean): boolean;
|
|
78
78
|
protected needConvertRenderedOtherToDataValue(): boolean;
|
|
79
79
|
protected onVisibleChoicesChanged(): void;
|
|
80
80
|
protected getItemIfChoicesNotContainThisValue(value: any, text?: string): any;
|
|
@@ -137,6 +137,7 @@ export declare class QuestionTextModel extends QuestionTextBase {
|
|
|
137
137
|
protected onChangeQuestionValue(newValue: any): void;
|
|
138
138
|
private updateInputValue;
|
|
139
139
|
private hasToConvertToUTC;
|
|
140
|
+
private createDate;
|
|
140
141
|
protected valueForSurveyCore(val: any): any;
|
|
141
142
|
protected valueFromDataCore(val: any): any;
|
|
142
143
|
private dateValidationMessage;
|
|
@@ -130,33 +130,23 @@ export declare var settings: {
|
|
|
130
130
|
* Nested properties:
|
|
131
131
|
*
|
|
132
132
|
* - `itemValueSerializeAsObject`: `boolean`\
|
|
133
|
-
* Enable this property if you want to serialize [`ItemValue`](https://surveyjs.io/form-library/documentation/api-reference/itemvalue) instances as objects even when they include only the `value` property. Default value: `false`.
|
|
133
|
+
* Enable this property if you want to serialize [`ItemValue`](https://surveyjs.io/form-library/documentation/api-reference/itemvalue) instances (choice options, matrix rows, columns in a [Single-Select Matrix](https://surveyjs.io/form-library/documentation/api-reference/matrix-table-question-model)) as objects even when they include only the `value` property. Default value: `false`.
|
|
134
134
|
*
|
|
135
135
|
* - `itemValueSerializeDisplayText`: `boolean`\
|
|
136
|
-
* Enable this property if you want to serialize the `text` property of [`ItemValue`](https://surveyjs.io/form-library/documentation/api-reference/itemvalue) objects even when it is empty or equal to the `value` property. Default value: `false`.
|
|
136
|
+
* Enable this property if you want to serialize the `text` property of [`ItemValue`](https://surveyjs.io/form-library/documentation/api-reference/itemvalue) objects even when it is empty or equal to the `value` property. Default value: `false`.
|
|
137
137
|
*
|
|
138
138
|
* - `localizableStringSerializeAsObject`: `boolean`\
|
|
139
139
|
* Enable this property if you want to serialize [`LocalizableString`](https://surveyjs.io/form-library/documentation/api-reference/localizablestring) instances as objects even when they include only a translation string for the default locale. For example, `"Custom String"` will be serialized as `{ default: "Custom String" }`. Default value: `false`.
|
|
140
140
|
*
|
|
141
|
-
*
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
* // `itemValueSerializeAsObject` example
|
|
145
|
-
* settings.serialization.itemValueSerializeAsObject = true;
|
|
146
|
-
* const item = new ItemValue(5);
|
|
147
|
-
* const itemString = item.toJSON(); // Produces { value: 5 } instead of 5
|
|
148
|
-
*
|
|
149
|
-
* // `itemValueSerializeDisplayText` example
|
|
150
|
-
* settings.serialization.itemValueSerializeDisplayText = true;
|
|
151
|
-
* const item = new ItemValue("item1");
|
|
152
|
-
* const itemString = item.toJSON(); // Produces { value: "item1", text: "item1" } instead of "item1"
|
|
153
|
-
* ```
|
|
141
|
+
* - `matrixDropdownColumnSerializeTitle`: `boolean`\
|
|
142
|
+
* Enable this property if you want to serialize the `title` property of [`MatrixDropdownColumn`](https://surveyjs.io/form-library/documentation/api-reference/multi-select-matrix-column-values) objects even when it is empty or equal to the `name` property. Default value: `false`.
|
|
154
143
|
* @see [settings.parseNumber](https://surveyjs.io/form-library/documentation/api-reference/settings#parseNumber)
|
|
155
144
|
*/
|
|
156
145
|
serialization: {
|
|
157
146
|
itemValueSerializeAsObject: boolean;
|
|
158
147
|
itemValueSerializeDisplayText: boolean;
|
|
159
148
|
localizableStringSerializeAsObject: boolean;
|
|
149
|
+
matrixDropdownColumnSerializeTitle: boolean;
|
|
160
150
|
};
|
|
161
151
|
itemValueAlwaysSerializeAsObject: boolean;
|
|
162
152
|
itemValueAlwaysSerializeText: boolean;
|
|
@@ -619,6 +609,7 @@ export declare var settings: {
|
|
|
619
609
|
* ```
|
|
620
610
|
*/
|
|
621
611
|
storeUtcDates: boolean;
|
|
612
|
+
onDateCreated: (newDate: Date, reason: string, val?: number | string | Date) => Date;
|
|
622
613
|
/**
|
|
623
614
|
* A function that allows you to define custom parsing rules for numbers represented as string values.
|
|
624
615
|
*
|
|
@@ -643,5 +634,4 @@ export declare var settings: {
|
|
|
643
634
|
* @see [settings.serialization](https://surveyjs.io/form-library/documentation/api-reference/settings#serialization)
|
|
644
635
|
*/
|
|
645
636
|
parseNumber: (stringValue: any, numericValue: number) => number;
|
|
646
|
-
useLegacyIcons: boolean;
|
|
647
637
|
};
|
|
@@ -26,6 +26,13 @@ export declare var surveyLocalization: {
|
|
|
26
26
|
onGetExternalString: (name: string, locale: string) => string;
|
|
27
27
|
};
|
|
28
28
|
export declare function getLocaleString(strName: string, locale?: string): string;
|
|
29
|
+
export declare function setupLocale(localeConfig: {
|
|
30
|
+
localeCode: string;
|
|
31
|
+
strings: any;
|
|
32
|
+
nativeName: string;
|
|
33
|
+
englishName: string;
|
|
34
|
+
rtl?: boolean;
|
|
35
|
+
}): void;
|
|
29
36
|
export declare var surveyStrings: {
|
|
30
37
|
pagePrevText: string;
|
|
31
38
|
pageNextText: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { EventBase } from "./base";
|
|
2
|
+
interface SvgIconData {
|
|
2
3
|
[key: string]: string;
|
|
3
4
|
}
|
|
4
5
|
export declare class SvgIconRegistry {
|
|
@@ -9,12 +10,14 @@ export declare class SvgIconRegistry {
|
|
|
9
10
|
registerIconFromSvgViaElement(iconId: string, iconSvg: string, iconPrefix?: string): void;
|
|
10
11
|
registerIconFromSvg(iconId: string, iconSvg: string, iconPrefix?: string): boolean;
|
|
11
12
|
registerIconsFromFolder(r: any): void;
|
|
13
|
+
registerIcons(icons: SvgIconData): void;
|
|
12
14
|
iconsRenderedHtml(): string;
|
|
15
|
+
updateMarkup(): void;
|
|
16
|
+
onIconsChanged: EventBase<SvgIconRegistry, {}>;
|
|
13
17
|
}
|
|
14
|
-
export declare
|
|
15
|
-
export declare
|
|
16
|
-
|
|
17
|
-
V1?: string;
|
|
18
|
-
V2?: string;
|
|
18
|
+
export declare const SvgRegistry: SvgIconRegistry;
|
|
19
|
+
export declare const SvgThemeSets: {
|
|
20
|
+
[index: string]: SvgIconData;
|
|
19
21
|
};
|
|
22
|
+
export declare function addIconsToThemeSet(name: string, iconsData: SvgIconData): void;
|
|
20
23
|
export {};
|
|
@@ -73,7 +73,7 @@ export { Notifier } from "../../src/notifier";
|
|
|
73
73
|
export { Cover, CoverCell } from "../../src/header";
|
|
74
74
|
export { dxSurveyService } from "../../src/dxSurveyService";
|
|
75
75
|
export { englishStrings } from "../../src/localization/english";
|
|
76
|
-
export { surveyLocalization, surveyStrings, getLocaleString } from "../../src/surveyStrings";
|
|
76
|
+
export { surveyLocalization, surveyStrings, getLocaleString, setupLocale } from "../../src/surveyStrings";
|
|
77
77
|
export { QuestionCustomWidget, CustomWidgetCollection, } from "../../src/questionCustomWidgets";
|
|
78
78
|
export { QuestionCustomModel, QuestionCompositeModel, ComponentQuestionJSON, ComponentCollection, ICustomQuestionTypeConfiguration } from "../../src/question_custom";
|
|
79
79
|
export { ListModel } from "../../src/list";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export interface HashTable<T = any> {
|
|
2
2
|
[key: string]: T;
|
|
3
3
|
}
|
|
4
|
+
export declare function createDate(reason: string, val?: number | string | Date): Date;
|
|
4
5
|
export declare class Helpers {
|
|
5
6
|
/**
|
|
6
7
|
* A static methods that returns true if a value undefined, null, empty string or empty array.
|
|
@@ -37,6 +37,7 @@ export declare class LocalizableString implements ILocalizableString {
|
|
|
37
37
|
get allowLineBreaks(): boolean;
|
|
38
38
|
onGetTextCallback: (str: string) => string;
|
|
39
39
|
storeDefaultText: boolean;
|
|
40
|
+
serializeCallBackText: boolean;
|
|
40
41
|
onGetLocalizationTextCallback: (str: string) => string;
|
|
41
42
|
onStrChanged: (oldValue: string, newValue: string) => void;
|
|
42
43
|
onSearchChanged: () => void;
|
|
@@ -65,6 +65,7 @@ export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
|
|
|
65
65
|
selectAll(): void;
|
|
66
66
|
clickItemHandler(item: ItemValue, checked?: boolean): void;
|
|
67
67
|
protected isItemSelectedCore(item: ItemValue): boolean;
|
|
68
|
+
protected hasUnknownValueItem(val: any, includeOther?: boolean, isFilteredChoices?: boolean, checkEmptyValue?: boolean): boolean;
|
|
68
69
|
protected convertFuncValuetoQuestionValue(val: any): any;
|
|
69
70
|
private getRealValue;
|
|
70
71
|
get isValueArray(): boolean;
|
|
@@ -118,6 +119,7 @@ export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
|
|
|
118
119
|
protected setNewValue(newValue: any): void;
|
|
119
120
|
protected getIsMultipleValue(): boolean;
|
|
120
121
|
protected getCommentFromValue(newValue: any): string;
|
|
122
|
+
getStoreOthersAsComment(): boolean;
|
|
121
123
|
protected setOtherValueIntoValue(newValue: any): any;
|
|
122
124
|
private getFirstUnknownIndex;
|
|
123
125
|
protected removeNoneItemsValues(value: Array<any>, newValue: Array<any>): void;
|
|
@@ -11,7 +11,7 @@ export declare class QuestionSignaturePadModel extends QuestionFileModelBase {
|
|
|
11
11
|
private getPenColorFromTheme;
|
|
12
12
|
private updateColors;
|
|
13
13
|
protected getCssRoot(cssClasses: any): string;
|
|
14
|
-
protected getFormat(): "" | "image/
|
|
14
|
+
protected getFormat(): "" | "image/svg+xml" | "image/jpeg";
|
|
15
15
|
protected updateValue(): void;
|
|
16
16
|
constructor(name: string);
|
|
17
17
|
getType(): string;
|
|
@@ -77,7 +77,7 @@ export declare class QuestionTagboxModel extends QuestionCheckboxModel {
|
|
|
77
77
|
getControlClass(): string;
|
|
78
78
|
onOpened: EventBase<QuestionTagboxModel>;
|
|
79
79
|
onOpenedCallBack(): void;
|
|
80
|
-
protected hasUnknownValue(val: any, includeOther
|
|
80
|
+
protected hasUnknownValue(val: any, includeOther?: boolean, isFilteredChoices?: boolean, checkEmptyValue?: boolean): boolean;
|
|
81
81
|
protected needConvertRenderedOtherToDataValue(): boolean;
|
|
82
82
|
protected onVisibleChoicesChanged(): void;
|
|
83
83
|
protected getItemIfChoicesNotContainThisValue(value: any, text?: string): any;
|
|
@@ -148,6 +148,7 @@ export declare class QuestionTextModel extends QuestionTextBase {
|
|
|
148
148
|
protected onChangeQuestionValue(newValue: any): void;
|
|
149
149
|
private updateInputValue;
|
|
150
150
|
private hasToConvertToUTC;
|
|
151
|
+
private createDate;
|
|
151
152
|
protected valueForSurveyCore(val: any): any;
|
|
152
153
|
protected valueFromDataCore(val: any): any;
|
|
153
154
|
private dateValidationMessage;
|
|
@@ -130,33 +130,23 @@ export declare var settings: {
|
|
|
130
130
|
* Nested properties:
|
|
131
131
|
*
|
|
132
132
|
* - `itemValueSerializeAsObject`: `boolean`\
|
|
133
|
-
* Enable this property if you want to serialize [`ItemValue`](https://surveyjs.io/form-library/documentation/api-reference/itemvalue) instances as objects even when they include only the `value` property. Default value: `false`.
|
|
133
|
+
* Enable this property if you want to serialize [`ItemValue`](https://surveyjs.io/form-library/documentation/api-reference/itemvalue) instances (choice options, matrix rows, columns in a [Single-Select Matrix](https://surveyjs.io/form-library/documentation/api-reference/matrix-table-question-model)) as objects even when they include only the `value` property. Default value: `false`.
|
|
134
134
|
*
|
|
135
135
|
* - `itemValueSerializeDisplayText`: `boolean`\
|
|
136
|
-
* Enable this property if you want to serialize the `text` property of [`ItemValue`](https://surveyjs.io/form-library/documentation/api-reference/itemvalue) objects even when it is empty or equal to the `value` property. Default value: `false`.
|
|
136
|
+
* Enable this property if you want to serialize the `text` property of [`ItemValue`](https://surveyjs.io/form-library/documentation/api-reference/itemvalue) objects even when it is empty or equal to the `value` property. Default value: `false`.
|
|
137
137
|
*
|
|
138
138
|
* - `localizableStringSerializeAsObject`: `boolean`\
|
|
139
139
|
* Enable this property if you want to serialize [`LocalizableString`](https://surveyjs.io/form-library/documentation/api-reference/localizablestring) instances as objects even when they include only a translation string for the default locale. For example, `"Custom String"` will be serialized as `{ default: "Custom String" }`. Default value: `false`.
|
|
140
140
|
*
|
|
141
|
-
*
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
* // `itemValueSerializeAsObject` example
|
|
145
|
-
* settings.serialization.itemValueSerializeAsObject = true;
|
|
146
|
-
* const item = new ItemValue(5);
|
|
147
|
-
* const itemString = item.toJSON(); // Produces { value: 5 } instead of 5
|
|
148
|
-
*
|
|
149
|
-
* // `itemValueSerializeDisplayText` example
|
|
150
|
-
* settings.serialization.itemValueSerializeDisplayText = true;
|
|
151
|
-
* const item = new ItemValue("item1");
|
|
152
|
-
* const itemString = item.toJSON(); // Produces { value: "item1", text: "item1" } instead of "item1"
|
|
153
|
-
* ```
|
|
141
|
+
* - `matrixDropdownColumnSerializeTitle`: `boolean`\
|
|
142
|
+
* Enable this property if you want to serialize the `title` property of [`MatrixDropdownColumn`](https://surveyjs.io/form-library/documentation/api-reference/multi-select-matrix-column-values) objects even when it is empty or equal to the `name` property. Default value: `false`.
|
|
154
143
|
* @see [settings.parseNumber](https://surveyjs.io/form-library/documentation/api-reference/settings#parseNumber)
|
|
155
144
|
*/
|
|
156
145
|
serialization: {
|
|
157
146
|
itemValueSerializeAsObject: boolean;
|
|
158
147
|
itemValueSerializeDisplayText: boolean;
|
|
159
148
|
localizableStringSerializeAsObject: boolean;
|
|
149
|
+
matrixDropdownColumnSerializeTitle: boolean;
|
|
160
150
|
};
|
|
161
151
|
itemValueAlwaysSerializeAsObject: boolean;
|
|
162
152
|
itemValueAlwaysSerializeText: boolean;
|
|
@@ -619,6 +609,7 @@ export declare var settings: {
|
|
|
619
609
|
* ```
|
|
620
610
|
*/
|
|
621
611
|
storeUtcDates: boolean;
|
|
612
|
+
onDateCreated: (newDate: Date, reason: string, val?: number | string | Date) => Date;
|
|
622
613
|
/**
|
|
623
614
|
* A function that allows you to define custom parsing rules for numbers represented as string values.
|
|
624
615
|
*
|
|
@@ -643,5 +634,4 @@ export declare var settings: {
|
|
|
643
634
|
* @see [settings.serialization](https://surveyjs.io/form-library/documentation/api-reference/settings#serialization)
|
|
644
635
|
*/
|
|
645
636
|
parseNumber: (stringValue: any, numericValue: number) => number;
|
|
646
|
-
useLegacyIcons: boolean;
|
|
647
637
|
};
|
|
@@ -26,6 +26,13 @@ export declare var surveyLocalization: {
|
|
|
26
26
|
onGetExternalString: (name: string, locale: string) => string;
|
|
27
27
|
};
|
|
28
28
|
export declare function getLocaleString(strName: string, locale?: string): string;
|
|
29
|
+
export declare function setupLocale(localeConfig: {
|
|
30
|
+
localeCode: string;
|
|
31
|
+
strings: any;
|
|
32
|
+
nativeName: string;
|
|
33
|
+
englishName: string;
|
|
34
|
+
rtl?: boolean;
|
|
35
|
+
}): void;
|
|
29
36
|
export declare var surveyStrings: {
|
|
30
37
|
pagePrevText: string;
|
|
31
38
|
pageNextText: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { EventBase } from "./base";
|
|
2
|
+
interface SvgIconData {
|
|
2
3
|
[key: string]: string;
|
|
3
4
|
}
|
|
4
5
|
export declare class SvgIconRegistry {
|
|
@@ -9,12 +10,14 @@ export declare class SvgIconRegistry {
|
|
|
9
10
|
registerIconFromSvgViaElement(iconId: string, iconSvg: string, iconPrefix?: string): void;
|
|
10
11
|
registerIconFromSvg(iconId: string, iconSvg: string, iconPrefix?: string): boolean;
|
|
11
12
|
registerIconsFromFolder(r: any): void;
|
|
13
|
+
registerIcons(icons: SvgIconData): void;
|
|
12
14
|
iconsRenderedHtml(): string;
|
|
15
|
+
updateMarkup(): void;
|
|
16
|
+
onIconsChanged: EventBase<SvgIconRegistry, {}>;
|
|
13
17
|
}
|
|
14
|
-
export declare
|
|
15
|
-
export declare
|
|
16
|
-
|
|
17
|
-
V1?: string;
|
|
18
|
-
V2?: string;
|
|
18
|
+
export declare const SvgRegistry: SvgIconRegistry;
|
|
19
|
+
export declare const SvgThemeSets: {
|
|
20
|
+
[index: string]: SvgIconData;
|
|
19
21
|
};
|
|
22
|
+
export declare function addIconsToThemeSet(name: string, iconsData: SvgIconData): void;
|
|
20
23
|
export {};
|