survey-core 1.12.7 → 1.12.9
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 +62 -33
- package/defaultV2.css.map +1 -1
- package/defaultV2.fontless.css +62 -33
- package/defaultV2.fontless.css.map +1 -1
- package/defaultV2.fontless.min.css +2 -2
- package/defaultV2.min.css +2 -2
- package/i18n/arabic.js +5 -2
- package/i18n/arabic.js.map +1 -1
- package/i18n/arabic.min.js +2 -2
- package/i18n/basque.js +5 -2
- package/i18n/basque.js.map +1 -1
- package/i18n/basque.min.js +2 -2
- package/i18n/bulgarian.js +5 -2
- package/i18n/bulgarian.js.map +1 -1
- package/i18n/bulgarian.min.js +2 -2
- package/i18n/catalan.js +5 -2
- package/i18n/catalan.js.map +1 -1
- package/i18n/catalan.min.js +2 -2
- package/i18n/croatian.js +5 -2
- package/i18n/croatian.js.map +1 -1
- package/i18n/croatian.min.js +2 -2
- package/i18n/czech.js +5 -2
- package/i18n/czech.js.map +1 -1
- package/i18n/czech.min.js +2 -2
- package/i18n/danish.js +5 -2
- package/i18n/danish.js.map +1 -1
- package/i18n/danish.min.js +2 -2
- package/i18n/dutch.js +5 -2
- 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 +5 -2
- package/i18n/estonian.js.map +1 -1
- package/i18n/estonian.min.js +2 -2
- package/i18n/finnish.js +5 -2
- package/i18n/finnish.js.map +1 -1
- package/i18n/finnish.min.js +2 -2
- package/i18n/french.js +5 -2
- package/i18n/french.js.map +1 -1
- package/i18n/french.min.js +2 -2
- package/i18n/georgian.js +5 -2
- package/i18n/georgian.js.map +1 -1
- package/i18n/georgian.min.js +2 -2
- package/i18n/german.js +5 -2
- package/i18n/german.js.map +1 -1
- package/i18n/german.min.js +2 -2
- package/i18n/greek.js +5 -2
- package/i18n/greek.js.map +1 -1
- package/i18n/greek.min.js +2 -2
- package/i18n/hebrew.js +5 -2
- package/i18n/hebrew.js.map +1 -1
- package/i18n/hebrew.min.js +2 -2
- package/i18n/hindi.js +5 -2
- package/i18n/hindi.js.map +1 -1
- package/i18n/hindi.min.js +2 -2
- package/i18n/hungarian.js +5 -2
- package/i18n/hungarian.js.map +1 -1
- package/i18n/hungarian.min.js +2 -2
- package/i18n/icelandic.js +5 -2
- package/i18n/icelandic.js.map +1 -1
- package/i18n/icelandic.min.js +2 -2
- package/i18n/index.js +193 -48
- package/i18n/index.js.map +1 -1
- package/i18n/index.min.js +2 -2
- package/i18n/indonesian.js +5 -2
- package/i18n/indonesian.js.map +1 -1
- package/i18n/indonesian.min.js +2 -2
- package/i18n/italian.js +5 -2
- package/i18n/italian.js.map +1 -1
- package/i18n/italian.min.js +2 -2
- package/i18n/japanese.js +5 -1
- package/i18n/japanese.js.map +1 -1
- package/i18n/japanese.min.js +2 -2
- package/i18n/kazakh.js +5 -2
- package/i18n/kazakh.js.map +1 -1
- package/i18n/kazakh.min.js +2 -2
- package/i18n/korean.js +5 -2
- package/i18n/korean.js.map +1 -1
- package/i18n/korean.min.js +2 -2
- package/i18n/latvian.js +5 -2
- package/i18n/latvian.js.map +1 -1
- package/i18n/latvian.min.js +2 -2
- package/i18n/lithuanian.js +5 -2
- package/i18n/lithuanian.js.map +1 -1
- package/i18n/lithuanian.min.js +2 -2
- package/i18n/macedonian.js +5 -2
- package/i18n/macedonian.js.map +1 -1
- package/i18n/macedonian.min.js +2 -2
- package/i18n/malay.js +5 -2
- package/i18n/malay.js.map +1 -1
- package/i18n/malay.min.js +2 -2
- package/i18n/nl-BE.js +5 -2
- package/i18n/nl-BE.js.map +1 -1
- package/i18n/nl-BE.min.js +2 -2
- package/i18n/norwegian.js +5 -2
- package/i18n/norwegian.js.map +1 -1
- package/i18n/norwegian.min.js +2 -2
- package/i18n/persian.js +5 -2
- package/i18n/persian.js.map +1 -1
- package/i18n/persian.min.js +2 -2
- package/i18n/philippines.js +5 -2
- package/i18n/philippines.js.map +1 -1
- package/i18n/philippines.min.js +2 -2
- package/i18n/polish.js +5 -2
- package/i18n/polish.js.map +1 -1
- package/i18n/polish.min.js +2 -2
- package/i18n/portuguese-br.js +5 -2
- package/i18n/portuguese-br.js.map +1 -1
- package/i18n/portuguese-br.min.js +2 -2
- package/i18n/portuguese.js +5 -2
- package/i18n/portuguese.js.map +1 -1
- package/i18n/portuguese.min.js +2 -2
- package/i18n/romanian.js +5 -2
- package/i18n/romanian.js.map +1 -1
- package/i18n/romanian.min.js +2 -2
- package/i18n/russian.js +5 -2
- package/i18n/russian.js.map +1 -1
- package/i18n/russian.min.js +2 -2
- package/i18n/serbian.js +5 -2
- package/i18n/serbian.js.map +1 -1
- package/i18n/serbian.min.js +2 -2
- package/i18n/simplified-chinese.js +5 -2
- package/i18n/simplified-chinese.js.map +1 -1
- package/i18n/simplified-chinese.min.js +2 -2
- package/i18n/slovak.js +5 -2
- package/i18n/slovak.js.map +1 -1
- package/i18n/slovak.min.js +2 -2
- package/i18n/spanish.js +5 -2
- package/i18n/spanish.js.map +1 -1
- package/i18n/spanish.min.js +2 -2
- package/i18n/swahili.js +5 -2
- package/i18n/swahili.js.map +1 -1
- package/i18n/swahili.min.js +2 -2
- package/i18n/swedish.js +5 -2
- 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 +5 -2
- package/i18n/telugu.js.map +1 -1
- package/i18n/telugu.min.js +2 -2
- package/i18n/thai.js +5 -2
- package/i18n/thai.js.map +1 -1
- package/i18n/thai.min.js +2 -2
- package/i18n/traditional-chinese.js +5 -2
- package/i18n/traditional-chinese.js.map +1 -1
- package/i18n/traditional-chinese.min.js +2 -2
- package/i18n/turkish.js +5 -2
- package/i18n/turkish.js.map +1 -1
- package/i18n/turkish.min.js +2 -2
- package/i18n/ukrainian.js +5 -2
- package/i18n/ukrainian.js.map +1 -1
- package/i18n/ukrainian.min.js +2 -2
- package/i18n/urdu.js +5 -2
- package/i18n/urdu.js.map +1 -1
- package/i18n/urdu.min.js +2 -2
- package/i18n/vietnamese.js +5 -2
- package/i18n/vietnamese.js.map +1 -1
- package/i18n/vietnamese.min.js +2 -2
- package/i18n/welsh.js +5 -2
- package/i18n/welsh.js.map +1 -1
- package/i18n/welsh.min.js +2 -2
- package/modern.css +39 -8
- package/modern.css.map +1 -1
- package/modern.fontless.css +39 -8
- 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/cssbootstrap.d.ts +3 -0
- package/plugins/bootstrap-integration/index.js +5 -2
- package/plugins/bootstrap-integration/index.js.map +1 -1
- package/plugins/bootstrap-integration/index.min.js +2 -2
- package/plugins/bootstrap-material-integration/cssbootstrapmaterial.d.ts +3 -0
- package/plugins/bootstrap-material-integration/index.js +5 -2
- package/plugins/bootstrap-material-integration/index.js.map +1 -1
- package/plugins/bootstrap-material-integration/index.min.js +2 -2
- package/survey.core.js +1946 -877
- package/survey.core.js.map +1 -1
- package/survey.core.min.js +3 -3
- package/survey.css +40 -9
- package/survey.css.map +1 -1
- package/survey.i18n.js +193 -48
- package/survey.i18n.js.map +1 -1
- package/survey.i18n.min.js +2 -2
- package/survey.min.css +2 -2
- package/themes/borderless-dark-panelless.js +1 -1
- package/themes/borderless-dark-panelless.min.js +1 -1
- package/themes/borderless-dark.js +1 -1
- package/themes/borderless-dark.min.js +1 -1
- package/themes/borderless-light-panelless..js +1 -1
- package/themes/borderless-light-panelless..min.js +1 -1
- package/themes/borderless-light.js +1 -1
- package/themes/borderless-light.min.js +1 -1
- package/themes/contrast-dark-panelless.js +1 -1
- package/themes/contrast-dark-panelless.min.js +1 -1
- package/themes/contrast-dark.js +1 -1
- package/themes/contrast-dark.min.js +1 -1
- package/themes/contrast-light-panelless.js +1 -1
- package/themes/contrast-light-panelless.min.js +1 -1
- package/themes/contrast-light.js +1 -1
- package/themes/contrast-light.min.js +1 -1
- package/themes/default-dark-panelless.js +1 -1
- package/themes/default-dark-panelless.min.js +1 -1
- package/themes/default-dark.js +1 -1
- package/themes/default-dark.min.js +1 -1
- package/themes/default-light-panelless.js +1 -1
- package/themes/default-light-panelless.min.js +1 -1
- package/themes/default-light.js +1 -1
- package/themes/default-light.min.js +1 -1
- package/themes/doubleborder-dark-panelless.js +1 -1
- package/themes/doubleborder-dark-panelless.min.js +1 -1
- package/themes/doubleborder-dark.js +1 -1
- package/themes/doubleborder-dark.min.js +1 -1
- package/themes/doubleborder-light-panelles.js +1 -1
- package/themes/doubleborder-light-panelles.min.js +1 -1
- package/themes/doubleborder-light.js +1 -1
- package/themes/doubleborder-light.min.js +1 -1
- package/themes/flat-dark-panelless.js +1 -1
- package/themes/flat-dark-panelless.min.js +1 -1
- package/themes/flat-dark.js +1 -1
- package/themes/flat-dark.min.js +1 -1
- package/themes/flat-light-panelless.js +1 -1
- package/themes/flat-light-panelless.min.js +1 -1
- package/themes/flat-light.js +1 -1
- package/themes/flat-light.min.js +1 -1
- package/themes/index.js +1 -1
- package/themes/index.min.js +1 -1
- package/themes/layered-dark-panelless.js +1 -1
- package/themes/layered-dark-panelless.min.js +1 -1
- package/themes/layered-dark.js +1 -1
- package/themes/layered-dark.min.js +1 -1
- package/themes/layered-light-panelless.js +1 -1
- package/themes/layered-light-panelless.min.js +1 -1
- package/themes/layered-light.js +1 -1
- package/themes/layered-light.min.js +1 -1
- package/themes/plain-dark-panelless.js +1 -1
- package/themes/plain-dark-panelless.min.js +1 -1
- package/themes/plain-dark.js +1 -1
- package/themes/plain-dark.min.js +1 -1
- package/themes/plain-light-panelless.js +1 -1
- package/themes/plain-light-panelless.min.js +1 -1
- package/themes/plain-light.js +1 -1
- package/themes/plain-light.min.js +1 -1
- package/themes/sharp-dark-panelless.js +1 -1
- package/themes/sharp-dark-panelless.min.js +1 -1
- package/themes/sharp-dark.js +1 -1
- package/themes/sharp-dark.min.js +1 -1
- package/themes/sharp-light-panelless.js +1 -1
- package/themes/sharp-light-panelless.min.js +1 -1
- package/themes/sharp-light.js +1 -1
- package/themes/sharp-light.min.js +1 -1
- package/themes/solid-dark-panelless.js +1 -1
- package/themes/solid-dark-panelless.min.js +1 -1
- package/themes/solid-dark.js +1 -1
- package/themes/solid-dark.min.js +1 -1
- package/themes/solid-light-panelless.js +1 -1
- package/themes/solid-light-panelless.min.js +1 -1
- package/themes/solid-light.js +1 -1
- package/themes/solid-light.min.js +1 -1
- package/themes/three-dimensional-dark-panelless.js +1 -1
- package/themes/three-dimensional-dark-panelless.min.js +1 -1
- package/themes/three-dimensional-dark.js +1 -1
- package/themes/three-dimensional-dark.min.js +1 -1
- package/themes/three-dimensional-light-panelless.js +1 -1
- package/themes/three-dimensional-light-panelless.min.js +1 -1
- package/themes/three-dimensional-light.js +1 -1
- package/themes/three-dimensional-light.min.js +1 -1
- package/ts3.4/typings/packages/survey-core/entries/chunks/model.d.ts +1 -1
- package/ts3.4/typings/packages/survey-core/src/base-interfaces.d.ts +2 -0
- package/ts3.4/typings/packages/survey-core/src/base.d.ts +1 -1
- package/ts3.4/typings/packages/survey-core/src/conditionProcessValue.d.ts +2 -0
- package/ts3.4/typings/packages/survey-core/src/conditions.d.ts +25 -18
- package/ts3.4/typings/packages/survey-core/src/defaultCss/defaultV2Css.d.ts +3 -0
- package/ts3.4/typings/packages/survey-core/src/dragdrop/matrix-rows.d.ts +1 -0
- package/ts3.4/typings/packages/survey-core/src/expressions/expressions.d.ts +5 -5
- package/ts3.4/typings/packages/survey-core/src/itemvalue.d.ts +2 -1
- package/ts3.4/typings/packages/survey-core/src/jsonobject.d.ts +1 -1
- package/ts3.4/typings/packages/survey-core/src/localizablestring.d.ts +2 -2
- package/ts3.4/typings/packages/survey-core/src/localization/english.d.ts +1 -0
- package/ts3.4/typings/packages/survey-core/src/page.d.ts +1 -0
- package/ts3.4/typings/packages/survey-core/src/panel.d.ts +1 -0
- package/ts3.4/typings/packages/survey-core/src/question.d.ts +1 -0
- package/ts3.4/typings/packages/survey-core/src/question_checkbox.d.ts +1 -0
- package/ts3.4/typings/packages/survey-core/src/question_file.d.ts +4 -3
- package/ts3.4/typings/packages/survey-core/src/question_matrix.d.ts +1 -1
- package/ts3.4/typings/packages/survey-core/src/question_matrixdropdownbase.d.ts +7 -0
- package/ts3.4/typings/packages/survey-core/src/question_matrixdropdownrendered.d.ts +3 -1
- package/ts3.4/typings/packages/survey-core/src/question_matrixdynamic.d.ts +3 -1
- package/ts3.4/typings/packages/survey-core/src/question_signaturepad.d.ts +6 -4
- package/ts3.4/typings/packages/survey-core/src/settings.d.ts +1 -0
- package/ts3.4/typings/packages/survey-core/src/survey-element.d.ts +2 -0
- package/ts3.4/typings/packages/survey-core/src/survey-events-api.d.ts +13 -1
- package/ts3.4/typings/packages/survey-core/src/survey.d.ts +23 -4
- package/ts3.4/typings/packages/survey-core/src/surveyStrings.d.ts +1 -0
- package/ts3.4/typings/packages/survey-core/src/svgbundle.d.ts +4 -0
- package/ts3.4/typings/packages/survey-core/src/utils/utils.d.ts +4 -1
- package/ts3.4/typings/src/defaultCss/cssmodern.d.ts +3 -0
- package/ts3.4/typings/src/defaultCss/cssstandard.d.ts +3 -0
- package/typings/packages/survey-core/entries/chunks/model.d.ts +1 -1
- package/typings/packages/survey-core/src/base-interfaces.d.ts +2 -0
- package/typings/packages/survey-core/src/base.d.ts +1 -1
- package/typings/packages/survey-core/src/conditionProcessValue.d.ts +2 -0
- package/typings/packages/survey-core/src/conditions.d.ts +25 -18
- package/typings/packages/survey-core/src/defaultCss/defaultV2Css.d.ts +3 -0
- package/typings/packages/survey-core/src/dragdrop/matrix-rows.d.ts +1 -0
- package/typings/packages/survey-core/src/expressions/expressions.d.ts +5 -5
- package/typings/packages/survey-core/src/itemvalue.d.ts +2 -1
- package/typings/packages/survey-core/src/jsonobject.d.ts +1 -1
- package/typings/packages/survey-core/src/localizablestring.d.ts +2 -2
- package/typings/packages/survey-core/src/localization/english.d.ts +1 -0
- package/typings/packages/survey-core/src/page.d.ts +1 -0
- package/typings/packages/survey-core/src/panel.d.ts +1 -0
- package/typings/packages/survey-core/src/question.d.ts +1 -0
- package/typings/packages/survey-core/src/question_checkbox.d.ts +1 -0
- package/typings/packages/survey-core/src/question_file.d.ts +5 -4
- package/typings/packages/survey-core/src/question_matrix.d.ts +1 -1
- package/typings/packages/survey-core/src/question_matrixdropdownbase.d.ts +7 -0
- package/typings/packages/survey-core/src/question_matrixdropdownrendered.d.ts +3 -1
- package/typings/packages/survey-core/src/question_matrixdynamic.d.ts +3 -1
- package/typings/packages/survey-core/src/question_signaturepad.d.ts +6 -4
- package/typings/packages/survey-core/src/settings.d.ts +1 -0
- package/typings/packages/survey-core/src/survey-element.d.ts +2 -0
- package/typings/packages/survey-core/src/survey-events-api.d.ts +13 -1
- package/typings/packages/survey-core/src/survey.d.ts +23 -4
- package/typings/packages/survey-core/src/surveyStrings.d.ts +1 -0
- package/typings/packages/survey-core/src/svgbundle.d.ts +4 -0
- package/typings/packages/survey-core/src/utils/utils.d.ts +4 -1
- package/typings/src/defaultCss/cssmodern.d.ts +3 -0
- package/typings/src/defaultCss/cssstandard.d.ts +3 -0
|
@@ -102,6 +102,7 @@ export interface ISurvey extends ITextProcessor, ISurveyErrorOwner {
|
|
|
102
102
|
questionTitlePattern: string;
|
|
103
103
|
getUpdatedQuestionTitle(question: IQuestion, title: string): string;
|
|
104
104
|
getUpdatedQuestionNo(question: IQuestion, no: string): string;
|
|
105
|
+
getUpdatedPageNo(question: IPage, no: string): string;
|
|
105
106
|
getUpdatedElementTitleActions(element: ISurveyElement, titleActions: Array<IAction>): Array<IAction>;
|
|
106
107
|
getUpdatedMatrixRowActions(question: QuestionMatrixDropdownModelBase, row: MatrixDropdownRowModelBase, actions: Array<IAction>): Array<IAction>;
|
|
107
108
|
getUpdatedPanelFooterActions(panel: PanelModel, actions: Array<IAction>, question?: QuestionPanelDynamicModel): Array<IAction>;
|
|
@@ -242,6 +243,7 @@ export interface IElement extends IConditionRunner, ISurveyElement {
|
|
|
242
243
|
dispose(): void;
|
|
243
244
|
needResponsiveWidth(): boolean;
|
|
244
245
|
updateRootStyle(): void;
|
|
246
|
+
updateElementVisibility(): void;
|
|
245
247
|
}
|
|
246
248
|
export interface IQuestion extends IElement, ISurveyErrorOwner {
|
|
247
249
|
hasTitle: boolean;
|
|
@@ -18,7 +18,7 @@ export declare class Bindings {
|
|
|
18
18
|
getValueNameByPropertyName(propertyName: string): string;
|
|
19
19
|
getPropertiesByValueName(valueName: string): Array<string>;
|
|
20
20
|
getJson(): any;
|
|
21
|
-
setJson(value: any): void;
|
|
21
|
+
setJson(value: any, isLoading?: boolean): void;
|
|
22
22
|
private fillProperties;
|
|
23
23
|
private onChangedJSON;
|
|
24
24
|
}
|
|
@@ -2,6 +2,8 @@ import { HashTable } from "./helpers";
|
|
|
2
2
|
export declare class ProcessValue {
|
|
3
3
|
values: HashTable<any>;
|
|
4
4
|
properties: HashTable<any>;
|
|
5
|
+
asyncValues: HashTable<any>;
|
|
6
|
+
onCompleteAsyncFunc: (op: any) => void;
|
|
5
7
|
constructor();
|
|
6
8
|
getFirstName(text: string, obj?: any): string;
|
|
7
9
|
hasValue(text: string, values?: HashTable<any>): boolean;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HashTable } from "./helpers";
|
|
2
|
+
import { Operand } from "./expressions/expressions";
|
|
2
3
|
/**
|
|
3
4
|
* Base interface for expression execution
|
|
4
5
|
*/
|
|
@@ -6,7 +7,7 @@ export interface IExpresionExecutor {
|
|
|
6
7
|
/**
|
|
7
8
|
* This call back runs on executing expression if there is at least one async function
|
|
8
9
|
*/
|
|
9
|
-
onComplete: (res: any) => void;
|
|
10
|
+
onComplete: (res: any, id: number) => void;
|
|
10
11
|
/**
|
|
11
12
|
* The expression as string, property with get
|
|
12
13
|
*/
|
|
@@ -21,7 +22,7 @@ export interface IExpresionExecutor {
|
|
|
21
22
|
* @param values has with values names and their results. Normally it is question names and their values
|
|
22
23
|
* @param properties the list of properties that are available in functions. Commonly it is survey and question, if expression execuited in a question context
|
|
23
24
|
*/
|
|
24
|
-
run(values: HashTable<any>, properties: HashTable<any
|
|
25
|
+
run(values: HashTable<any>, properties: HashTable<any>, id: number): any;
|
|
25
26
|
/**
|
|
26
27
|
* Returns the list of variables that used in the expression. They defined as: {variableName} in default parser.
|
|
27
28
|
*/
|
|
@@ -35,16 +36,30 @@ export interface IExpresionExecutor {
|
|
|
35
36
|
*/
|
|
36
37
|
isAsync: boolean;
|
|
37
38
|
}
|
|
39
|
+
export declare class ExpressionExecutorRunner {
|
|
40
|
+
private operand;
|
|
41
|
+
private id;
|
|
42
|
+
private onComplete;
|
|
43
|
+
private processValue;
|
|
44
|
+
private asyncFuncList;
|
|
45
|
+
constructor(operand: Operand, id: number, onComplete: (res: any, id: number) => void, values: HashTable<any>, properties: HashTable<any>);
|
|
46
|
+
run(isAsync: boolean): any;
|
|
47
|
+
private getAsyncItemByOperand;
|
|
48
|
+
private runAsyncItem;
|
|
49
|
+
private runAsyncItemCore;
|
|
50
|
+
private doAsyncFunctionReady;
|
|
51
|
+
private isAsyncFuncReady;
|
|
52
|
+
private isAsyncChildrenReady;
|
|
53
|
+
private runValues;
|
|
54
|
+
}
|
|
38
55
|
export declare class ExpressionExecutor implements IExpresionExecutor {
|
|
39
56
|
static createExpressionExecutor: (expression: string) => IExpresionExecutor;
|
|
40
|
-
onComplete: (res: any) => void;
|
|
57
|
+
onComplete: (res: any, id: number) => void;
|
|
41
58
|
private expressionValue;
|
|
42
59
|
private operand;
|
|
43
|
-
private processValue;
|
|
44
60
|
private parser;
|
|
45
61
|
private isAsyncValue;
|
|
46
62
|
private hasFunctionValue;
|
|
47
|
-
private asyncFuncList;
|
|
48
63
|
constructor(expression: string);
|
|
49
64
|
get expression(): string;
|
|
50
65
|
private setExpression;
|
|
@@ -52,24 +67,16 @@ export declare class ExpressionExecutor implements IExpresionExecutor {
|
|
|
52
67
|
hasFunction(): boolean;
|
|
53
68
|
get isAsync(): boolean;
|
|
54
69
|
canRun(): boolean;
|
|
55
|
-
run(values: HashTable<any>, properties
|
|
56
|
-
private runAsyncItem;
|
|
57
|
-
private runAsyncItemCore;
|
|
58
|
-
private doAsyncFunctionReady;
|
|
59
|
-
private isAsyncFuncReady;
|
|
60
|
-
private isAsyncChildrenReady;
|
|
61
|
-
private runValues;
|
|
70
|
+
run(values: HashTable<any>, properties: HashTable<any>, id: number): any;
|
|
62
71
|
}
|
|
63
72
|
export declare class ExpressionRunnerBase {
|
|
64
73
|
private expressionExecutor;
|
|
65
74
|
private variables;
|
|
66
75
|
private containsFunc;
|
|
67
|
-
private static
|
|
68
|
-
private _id;
|
|
76
|
+
private static IdRunnerCounter;
|
|
69
77
|
onBeforeAsyncRun: (id: number) => void;
|
|
70
78
|
onAfterAsyncRun: (id: number) => void;
|
|
71
79
|
constructor(expression: string);
|
|
72
|
-
get id(): number;
|
|
73
80
|
get expression(): string;
|
|
74
81
|
set expression(value: string);
|
|
75
82
|
getVariables(): Array<string>;
|
|
@@ -77,15 +84,15 @@ export declare class ExpressionRunnerBase {
|
|
|
77
84
|
get isAsync(): boolean;
|
|
78
85
|
canRun(): boolean;
|
|
79
86
|
protected runCore(values: HashTable<any>, properties?: HashTable<any>): any;
|
|
80
|
-
protected doOnComplete(res: any): void;
|
|
87
|
+
protected doOnComplete(res: any, id: number): void;
|
|
81
88
|
}
|
|
82
89
|
export declare class ConditionRunner extends ExpressionRunnerBase {
|
|
83
90
|
onRunComplete: (result: boolean) => void;
|
|
84
91
|
run(values: HashTable<any>, properties?: HashTable<any>): boolean;
|
|
85
|
-
protected doOnComplete(res: any): void;
|
|
92
|
+
protected doOnComplete(res: any, id: number): void;
|
|
86
93
|
}
|
|
87
94
|
export declare class ExpressionRunner extends ExpressionRunnerBase {
|
|
88
95
|
onRunComplete: (result: any) => void;
|
|
89
96
|
run(values: HashTable<any>, properties?: HashTable<any>): any;
|
|
90
|
-
protected doOnComplete(res: any): void;
|
|
97
|
+
protected doOnComplete(res: any, id: number): void;
|
|
91
98
|
}
|
|
@@ -55,6 +55,7 @@ export declare var defaultV2Css: {
|
|
|
55
55
|
number: string;
|
|
56
56
|
title: string;
|
|
57
57
|
titleExpandable: string;
|
|
58
|
+
titleExpandableSvg: string;
|
|
58
59
|
titleNumInline: string;
|
|
59
60
|
titleExpanded: string;
|
|
60
61
|
titleCollapsed: string;
|
|
@@ -200,6 +201,7 @@ export declare var defaultV2Css: {
|
|
|
200
201
|
titleOnError: string;
|
|
201
202
|
title: string;
|
|
202
203
|
titleExpandable: string;
|
|
204
|
+
titleExpandableSvg: string;
|
|
203
205
|
titleExpanded: string;
|
|
204
206
|
titleCollapsed: string;
|
|
205
207
|
titleDisabled: string;
|
|
@@ -585,6 +587,7 @@ export declare var defaultV2Css: {
|
|
|
585
587
|
emptyRowsSection: string;
|
|
586
588
|
iconDrag: string;
|
|
587
589
|
ghostRow: string;
|
|
590
|
+
draggedRow: string;
|
|
588
591
|
emptyCell: string;
|
|
589
592
|
verticalCell: string;
|
|
590
593
|
cellQuestionWrapper: string;
|
|
@@ -5,6 +5,7 @@ export declare class DragDropMatrixRows extends DragDropCore<QuestionMatrixDynam
|
|
|
5
5
|
protected get draggedElementType(): string;
|
|
6
6
|
protected restoreUserSelectValue: string;
|
|
7
7
|
protected onStartDrag(): void;
|
|
8
|
+
private get shortcutClass();
|
|
8
9
|
protected createDraggedElementShortcut(text: string, draggedElementNode: HTMLElement, event: PointerEvent): HTMLElement;
|
|
9
10
|
private fromIndex;
|
|
10
11
|
private toIndex;
|
|
@@ -6,6 +6,9 @@ export interface AsyncFunctionItem {
|
|
|
6
6
|
children?: Array<AsyncFunctionItem>;
|
|
7
7
|
}
|
|
8
8
|
export declare abstract class Operand {
|
|
9
|
+
private static counter;
|
|
10
|
+
private _id;
|
|
11
|
+
get id(): number;
|
|
9
12
|
toString(func?: (op: Operand) => string): string;
|
|
10
13
|
abstract getType(): string;
|
|
11
14
|
abstract evaluate(processValue?: ProcessValue): any;
|
|
@@ -102,17 +105,14 @@ export declare class Variable extends Const {
|
|
|
102
105
|
export declare class FunctionOperand extends Operand {
|
|
103
106
|
private originalValue;
|
|
104
107
|
private parameters;
|
|
105
|
-
private isReadyValue;
|
|
106
|
-
private asynResult;
|
|
107
|
-
onAsyncReady: () => void;
|
|
108
108
|
constructor(originalValue: string, parameters: ArrayOperand);
|
|
109
109
|
getType(): string;
|
|
110
|
-
evaluateAsync(processValue: ProcessValue): void;
|
|
111
110
|
evaluate(processValue?: ProcessValue): any;
|
|
112
111
|
private evaluateCore;
|
|
113
112
|
toString(func?: (op: Operand) => string): string;
|
|
114
113
|
setVariables(variables: Array<string>): void;
|
|
115
|
-
|
|
114
|
+
isReady(proccessValue: ProcessValue): boolean;
|
|
115
|
+
private getAsynValue;
|
|
116
116
|
hasFunction(): boolean;
|
|
117
117
|
hasAsyncFunction(): boolean;
|
|
118
118
|
private isAsyncFunction;
|
|
@@ -46,6 +46,7 @@ export declare class ItemValue extends BaseAction implements ILocalizableOwner,
|
|
|
46
46
|
set locOwner(value: ILocalizableOwner);
|
|
47
47
|
get value(): any;
|
|
48
48
|
set value(newValue: any);
|
|
49
|
+
private setValue;
|
|
49
50
|
get hasText(): boolean;
|
|
50
51
|
get pureText(): string;
|
|
51
52
|
set pureText(val: string);
|
|
@@ -56,7 +57,7 @@ export declare class ItemValue extends BaseAction implements ILocalizableOwner,
|
|
|
56
57
|
private canSerializeValue;
|
|
57
58
|
getData(): any;
|
|
58
59
|
toJSON(): any;
|
|
59
|
-
setData(value: any): void;
|
|
60
|
+
setData(value: any, isNewItem?: boolean): void;
|
|
60
61
|
get visibleIf(): string;
|
|
61
62
|
set visibleIf(val: string);
|
|
62
63
|
get enableIf(): string;
|
|
@@ -151,7 +151,7 @@ export declare class JsonObjectProperty implements IObject, IJsonPropertyInfo {
|
|
|
151
151
|
set defaultValue(newValue: any);
|
|
152
152
|
isDefaultValue(value: any): boolean;
|
|
153
153
|
isDefaultValueByObj(obj: Base, value: any): boolean;
|
|
154
|
-
getSerializableValue(obj: any): any;
|
|
154
|
+
getSerializableValue(obj: any, storeDefaults?: boolean): any;
|
|
155
155
|
getValue(obj: any): any;
|
|
156
156
|
getPropertyValue(obj: any): any;
|
|
157
157
|
get hasToUseSetValue(): string | ((obj: any, value: any, jsonConv: JsonObject) => any);
|
|
@@ -45,7 +45,7 @@ export declare class LocalizableString implements ILocalizableString {
|
|
|
45
45
|
searchIndex: number;
|
|
46
46
|
disableLocalization: boolean;
|
|
47
47
|
defaultValue: string;
|
|
48
|
-
constructor(owner: ILocalizableOwner, useMarkdown?: boolean, name?: string);
|
|
48
|
+
constructor(owner: ILocalizableOwner, useMarkdown?: boolean, name?: string, locName?: string);
|
|
49
49
|
getIsMultiple(): boolean;
|
|
50
50
|
get locale(): string;
|
|
51
51
|
strChanged(): void;
|
|
@@ -75,7 +75,7 @@ export declare class LocalizableString implements ILocalizableString {
|
|
|
75
75
|
hasNonDefaultText(): boolean;
|
|
76
76
|
getLocales(): Array<string>;
|
|
77
77
|
getJson(): any;
|
|
78
|
-
setJson(value: any): void;
|
|
78
|
+
setJson(value: any, isLoading?: boolean): void;
|
|
79
79
|
get renderAs(): string;
|
|
80
80
|
get renderAsData(): any;
|
|
81
81
|
equals(obj: any): boolean;
|
|
@@ -15,6 +15,7 @@ export declare class PageModel extends PanelModelBase implements IPage {
|
|
|
15
15
|
get isPage(): boolean;
|
|
16
16
|
get no(): string;
|
|
17
17
|
get cssTitleNumber(): string;
|
|
18
|
+
getCssTitleExpandableSvg(): string;
|
|
18
19
|
get cssRequiredText(): string;
|
|
19
20
|
protected canShowPageNumber(): boolean;
|
|
20
21
|
protected canShowTitle(): boolean;
|
|
@@ -588,6 +588,7 @@ export declare class PanelModel extends PanelModelBase implements IElement {
|
|
|
588
588
|
get hasEditButton(): boolean;
|
|
589
589
|
cancelPreview(): void;
|
|
590
590
|
get cssTitle(): string;
|
|
591
|
+
getCssTitleExpandableSvg(): string;
|
|
591
592
|
get showErrorsAbovePanel(): boolean;
|
|
592
593
|
protected getCssError(cssClasses: any): string;
|
|
593
594
|
protected onVisibleChanged(): void;
|
|
@@ -142,6 +142,7 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
142
142
|
set visible(val: boolean);
|
|
143
143
|
protected onVisibleChanged(): void;
|
|
144
144
|
protected notifyStateChanged(prevState: string): void;
|
|
145
|
+
updateElementVisibility(): void;
|
|
145
146
|
private updateIsVisibleProp;
|
|
146
147
|
/**
|
|
147
148
|
* Specifies whether to use display names for question values in placeholders.
|
|
@@ -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 convertFuncValuetoQuestionValue(val: any): any;
|
|
68
69
|
private getRealValue;
|
|
69
70
|
get isValueArray(): boolean;
|
|
70
71
|
/**
|
|
@@ -47,6 +47,10 @@ export declare class QuestionFileModelBase extends Question {
|
|
|
47
47
|
protected uploadFiles(files: File[]): void;
|
|
48
48
|
protected loadPreview(newValue: any): void;
|
|
49
49
|
protected onChangeQuestionValue(newValue: any): void;
|
|
50
|
+
protected getIsQuestionReady(): boolean;
|
|
51
|
+
private isFileLoadingValue;
|
|
52
|
+
protected get isFileLoading(): boolean;
|
|
53
|
+
protected set isFileLoading(val: boolean);
|
|
50
54
|
}
|
|
51
55
|
export declare class QuestionFilePage extends Base {
|
|
52
56
|
private question;
|
|
@@ -97,9 +101,6 @@ export declare class QuestionFileModel extends QuestionFileModelBase {
|
|
|
97
101
|
cleanAction: Action;
|
|
98
102
|
actionsContainer: ActionContainer;
|
|
99
103
|
get supportFileNavigator(): boolean;
|
|
100
|
-
private isFileLoadingValue;
|
|
101
|
-
protected get isFileLoading(): boolean;
|
|
102
|
-
protected set isFileLoading(val: boolean);
|
|
103
104
|
get fileNavigatorVisible(): boolean;
|
|
104
105
|
private get pagesCount();
|
|
105
106
|
get actionsContainerVisible(): boolean;
|
|
@@ -126,6 +127,7 @@ export declare class QuestionFileModel extends QuestionFileModelBase {
|
|
|
126
127
|
private prevPreviewLength;
|
|
127
128
|
private previewValueChanged;
|
|
128
129
|
getType(): string;
|
|
130
|
+
protected onChangeQuestionValue(newValue: any): void;
|
|
129
131
|
/**
|
|
130
132
|
* Disable this property only to implement a custom preview.
|
|
131
133
|
*
|
|
@@ -244,7 +246,6 @@ export declare class QuestionFileModel extends QuestionFileModelBase {
|
|
|
244
246
|
protected get camera(): Camera;
|
|
245
247
|
canPreviewImage(fileItem: any): boolean;
|
|
246
248
|
protected loadPreview(newValue: any): void;
|
|
247
|
-
protected getIsQuestionReady(): boolean;
|
|
248
249
|
private allFilesOk;
|
|
249
250
|
private isFileImage;
|
|
250
251
|
getPlainData(options?: IPlainDataOptions): IQuestionPlainData;
|
|
@@ -67,7 +67,7 @@ export declare class MatrixCells extends Base {
|
|
|
67
67
|
get columns(): Array<any>;
|
|
68
68
|
private getCellRowColumnValue;
|
|
69
69
|
getJson(): any;
|
|
70
|
-
setJson(value: any): void;
|
|
70
|
+
setJson(value: any, isLoading?: boolean): void;
|
|
71
71
|
locStrsChanged(): void;
|
|
72
72
|
private runFuncOnLocs;
|
|
73
73
|
protected createString(): LocalizableString;
|
|
@@ -112,6 +112,7 @@ export declare class MatrixDropdownRowModelBase implements ISurveyData, ISurveyI
|
|
|
112
112
|
getFilteredProperties(): any;
|
|
113
113
|
private applyRowVariablesToValues;
|
|
114
114
|
runCondition(values: HashTable<any>, properties: HashTable<any>, rowsVisibleIf?: string): void;
|
|
115
|
+
updateElementVisibility(): void;
|
|
115
116
|
protected setRowsVisibleIfValues(values: any): void;
|
|
116
117
|
getNamesWithDefaultValues(): Array<string>;
|
|
117
118
|
clearValue(keepComment?: boolean): void;
|
|
@@ -380,6 +381,7 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
|
|
|
380
381
|
private runFuncForCellQuestions;
|
|
381
382
|
runCondition(values: HashTable<any>, properties: HashTable<any>): void;
|
|
382
383
|
runTriggers(name: string, value: any): void;
|
|
384
|
+
updateElementVisibility(): void;
|
|
383
385
|
protected shouldRunColumnExpression(): boolean;
|
|
384
386
|
protected runCellsCondition(values: HashTable<any>, properties: HashTable<any>): void;
|
|
385
387
|
protected runConditionsForColumns(values: HashTable<any>, properties: HashTable<any>): boolean;
|
|
@@ -558,4 +560,9 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
|
|
|
558
560
|
get showHorizontalScroll(): boolean;
|
|
559
561
|
protected onMobileChanged(): void;
|
|
560
562
|
getRootCss(): string;
|
|
563
|
+
afterRenderQuestionElement(el: HTMLElement): void;
|
|
564
|
+
beforeDestroyQuestionElement(el: HTMLElement): void;
|
|
565
|
+
private rootElement;
|
|
566
|
+
setRootElement(val: HTMLElement): void;
|
|
567
|
+
getRootElement(): HTMLElement;
|
|
561
568
|
}
|
|
@@ -80,6 +80,7 @@ export declare class QuestionMatrixDropdownRenderedRow extends Base {
|
|
|
80
80
|
private rootElement;
|
|
81
81
|
setRootElement(val: HTMLTableRowElement): void;
|
|
82
82
|
getRootElement(): HTMLTableRowElement;
|
|
83
|
+
focusCell(cellIndex: number): void;
|
|
83
84
|
}
|
|
84
85
|
export declare class QuestionMatrixDropdownRenderedErrorRow extends QuestionMatrixDropdownRenderedRow {
|
|
85
86
|
isErrorsRow: boolean;
|
|
@@ -125,6 +126,7 @@ export declare class QuestionMatrixDropdownRenderedTable extends Base {
|
|
|
125
126
|
private getRenderedDataRowCount;
|
|
126
127
|
onRemovedRow(row: MatrixDropdownRowModelBase): void;
|
|
127
128
|
onDetailPanelChangeVisibility(row: MatrixDropdownRowModelBase, isShowing: boolean): void;
|
|
129
|
+
focusActionCell(row: MatrixDropdownRowModelBase, actionCellIndex: number): void;
|
|
128
130
|
private getRenderedRowIndex;
|
|
129
131
|
protected buildRowsActions(): void;
|
|
130
132
|
protected createRenderedRow(cssClasses: any, isDetailRow?: boolean): QuestionMatrixDropdownRenderedRow;
|
|
@@ -163,7 +165,7 @@ export declare class QuestionMatrixDropdownRenderedTable extends Base {
|
|
|
163
165
|
private setHeaderCellCssClasses;
|
|
164
166
|
private createHeaderCell;
|
|
165
167
|
private setHeaderCell;
|
|
166
|
-
private
|
|
168
|
+
private setCellWidth;
|
|
167
169
|
private createTextCell;
|
|
168
170
|
private createEmptyCell;
|
|
169
171
|
}
|
|
@@ -187,6 +187,8 @@ export declare class QuestionMatrixDynamicModel extends QuestionMatrixDropdownMo
|
|
|
187
187
|
protected isValueSurveyElement(val: any): boolean;
|
|
188
188
|
private addRowCore;
|
|
189
189
|
private getDefaultRowValue;
|
|
190
|
+
focusAddBUtton(): void;
|
|
191
|
+
getActionCellIndex(row: MatrixDropdownRowModelBase): number;
|
|
190
192
|
removeRowUI(value: any): void;
|
|
191
193
|
isRequireConfirmOnRowDelete(index: number): boolean;
|
|
192
194
|
/**
|
|
@@ -194,7 +196,7 @@ export declare class QuestionMatrixDynamicModel extends QuestionMatrixDropdownMo
|
|
|
194
196
|
* @param index A zero-based row index.
|
|
195
197
|
* @param confirmDelete *(Optional)* A Boolean value that specifies whether to display a confirmation dialog. If you do not specify this parameter, the [`confirmDelete`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-matrix-table-question-model#confirmDelete) property value is used.
|
|
196
198
|
*/
|
|
197
|
-
removeRow(index: number, confirmDelete?: boolean): void;
|
|
199
|
+
removeRow(index: number, confirmDelete?: boolean, onRowRemoved?: () => void): void;
|
|
198
200
|
private removeRowAsync;
|
|
199
201
|
private removeRowCore;
|
|
200
202
|
/**
|
|
@@ -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/jpeg" | "image/svg+xml";
|
|
15
15
|
protected updateValue(): void;
|
|
16
16
|
constructor(name: string);
|
|
17
17
|
getType(): string;
|
|
@@ -25,12 +25,14 @@ export declare class QuestionSignaturePadModel extends QuestionFileModelBase {
|
|
|
25
25
|
valueWasChangedFromLastUpload: boolean;
|
|
26
26
|
private resizeCanvas;
|
|
27
27
|
private scaleCanvas;
|
|
28
|
-
private fromDataUrl;
|
|
29
28
|
private fromUrl;
|
|
30
|
-
private
|
|
31
|
-
private
|
|
29
|
+
private fromDataUrl;
|
|
30
|
+
private _loadedData;
|
|
31
|
+
get loadedData(): string;
|
|
32
32
|
protected loadPreview(newValue: any): void;
|
|
33
|
+
protected onChangeQuestionValue(newValue: any): void;
|
|
33
34
|
onSurveyLoad(): void;
|
|
35
|
+
private updateValueHandler;
|
|
34
36
|
initSignaturePad(el: HTMLElement): void;
|
|
35
37
|
destroySignaturePad(el: HTMLElement): void;
|
|
36
38
|
/**
|
|
@@ -643,4 +643,5 @@ export declare var settings: {
|
|
|
643
643
|
* @see [settings.serialization](https://surveyjs.io/form-library/documentation/api-reference/settings#serialization)
|
|
644
644
|
*/
|
|
645
645
|
parseNumber: (stringValue: any, numericValue: number) => number;
|
|
646
|
+
useLegacyIcons: boolean;
|
|
646
647
|
};
|
|
@@ -128,6 +128,7 @@ export declare class SurveyElement<E = any> extends SurveyElementCore implements
|
|
|
128
128
|
get parentQuestion(): E;
|
|
129
129
|
setParentQuestion(val: E): void;
|
|
130
130
|
protected onParentQuestionChanged(): void;
|
|
131
|
+
updateElementVisibility(): void;
|
|
131
132
|
get skeletonComponentName(): string;
|
|
132
133
|
/**
|
|
133
134
|
* Gets and sets the survey element's expand state.
|
|
@@ -264,6 +265,7 @@ export declare class SurveyElement<E = any> extends SurveyElementCore implements
|
|
|
264
265
|
get cssClasses(): any;
|
|
265
266
|
get cssTitleNumber(): any;
|
|
266
267
|
get cssRequiredText(): any;
|
|
268
|
+
getCssTitleExpandableSvg(): string;
|
|
267
269
|
protected calcCssClasses(css: any): any;
|
|
268
270
|
protected updateElementCssCore(cssClasses: any): void;
|
|
269
271
|
get cssError(): string;
|
|
@@ -397,10 +397,22 @@ export interface GetTitleTagNameEvent {
|
|
|
397
397
|
}
|
|
398
398
|
export interface GetQuestionNoEvent extends QuestionEventMixin {
|
|
399
399
|
/**
|
|
400
|
-
*
|
|
400
|
+
* Obsolete. Use `options.number` instead.
|
|
401
401
|
*/
|
|
402
402
|
no: string;
|
|
403
403
|
}
|
|
404
|
+
export interface GetQuestionNumberEvent extends GetQuestionNoEvent {
|
|
405
|
+
/**
|
|
406
|
+
* A question number that is calculated based upon the question's [`visibleIndex`](https://surveyjs.io/form-library/documentation/api-reference/question#visibleIndex) and survey's [`questionStartIndex`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#questionStartIndex) properties. You can change this parameter's value.
|
|
407
|
+
*/
|
|
408
|
+
number: string;
|
|
409
|
+
}
|
|
410
|
+
export interface GetPageNumberEvent extends PageEventMixin {
|
|
411
|
+
/**
|
|
412
|
+
* A page number. Note that this is a string value that contains not only the number itself but also the characters that separate the number from the page title: `"1. "`, `"2. "`, etc. You can change this parameter's value.
|
|
413
|
+
*/
|
|
414
|
+
number: string;
|
|
415
|
+
}
|
|
404
416
|
export interface ProgressTextEvent {
|
|
405
417
|
/**
|
|
406
418
|
* The number of questions with input fields. [Image](https://surveyjs.io/form-library/examples/add-image-and-video-to-survey/), [HTML](https://surveyjs.io/form-library/examples/questiontype-html/), and [Expression](https://surveyjs.io/form-library/examples/questiontype-expression/) questions are not counted.
|
|
@@ -18,7 +18,7 @@ import { IAction, Action } from "./actions/action";
|
|
|
18
18
|
import { ActionContainer } from "./actions/container";
|
|
19
19
|
import { QuestionPanelDynamicModel } from "./question_paneldynamic";
|
|
20
20
|
import { Notifier } from "./notifier";
|
|
21
|
-
import { TriggerExecutedEvent, CompletingEvent, CompleteEvent, ShowingPreviewEvent, NavigateToUrlEvent, CurrentPageChangingEvent, CurrentPageChangedEvent, ValueChangingEvent, ValueChangedEvent, VariableChangedEvent, QuestionVisibleChangedEvent, PageVisibleChangedEvent, PanelVisibleChangedEvent, QuestionCreatedEvent, QuestionAddedEvent, QuestionRemovedEvent, PanelAddedEvent, PanelRemovedEvent, PageAddedEvent, ValidateQuestionEvent, SettingQuestionErrorsEvent, ValidatePanelEvent, ErrorCustomTextEvent, ValidatedErrorsOnCurrentPageEvent, ProcessHtmlEvent, GetQuestionTitleEvent, GetTitleTagNameEvent,
|
|
21
|
+
import { TriggerExecutedEvent, CompletingEvent, CompleteEvent, ShowingPreviewEvent, NavigateToUrlEvent, CurrentPageChangingEvent, CurrentPageChangedEvent, ValueChangingEvent, ValueChangedEvent, VariableChangedEvent, QuestionVisibleChangedEvent, PageVisibleChangedEvent, PanelVisibleChangedEvent, QuestionCreatedEvent, QuestionAddedEvent, QuestionRemovedEvent, PanelAddedEvent, PanelRemovedEvent, PageAddedEvent, ValidateQuestionEvent, SettingQuestionErrorsEvent, ValidatePanelEvent, ErrorCustomTextEvent, ValidatedErrorsOnCurrentPageEvent, ProcessHtmlEvent, GetQuestionTitleEvent, GetTitleTagNameEvent, GetQuestionNumberEvent, GetPageNumberEvent, ProgressTextEvent, TextMarkdownEvent, SendResultEvent, GetResultEvent, UploadFilesEvent, DownloadFileEvent, ClearFilesEvent, LoadChoicesFromServerEvent, ProcessTextValueEvent, UpdateQuestionCssClassesEvent, UpdatePanelCssClassesEvent, UpdatePageCssClassesEvent, UpdateChoiceItemCssEvent, AfterRenderSurveyEvent, AfterRenderPageEvent, AfterRenderQuestionEvent, AfterRenderQuestionInputEvent, AfterRenderPanelEvent, FocusInQuestionEvent, FocusInPanelEvent, ShowingChoiceItemEvent, ChoicesLazyLoadEvent, GetChoiceDisplayValueEvent, MatrixRowAddedEvent, MatrixBeforeRowAddedEvent, MatrixRowRemovingEvent, MatrixRowRemovedEvent, MatrixAllowRemoveRowEvent, MatrixDetailPanelVisibleChangedEvent, MatrixCellCreatingEvent, MatrixCellCreatedEvent, MatrixAfterCellRenderEvent, MatrixCellValueChangedEvent, MatrixCellValueChangingEvent, MatrixCellValidateEvent, DynamicPanelModifiedEvent, DynamicPanelRemovingEvent, DynamicPanelItemValueChangedEvent, DynamicPanelGetTabTitleEvent, DynamicPanelCurrentIndexChangedEvent, IsAnswerCorrectEvent, DragDropAllowEvent, ScrollingElementToTopEvent, GetQuestionTitleActionsEvent, GetPanelTitleActionsEvent, GetPageTitleActionsEvent, GetPanelFooterActionsEvent, GetMatrixRowActionsEvent, ElementContentVisibilityChangedEvent, GetExpressionDisplayValueEvent, ServerValidateQuestionsEvent, MultipleTextItemAddedEvent, MatrixColumnAddedEvent, GetQuestionDisplayValueEvent, PopupVisibleChangedEvent, ChoicesSearchEvent, OpenFileChooserEvent, OpenDropdownMenuEvent, ResizeEvent } from "./survey-events-api";
|
|
22
22
|
import { QuestionMatrixDropdownModelBase } from "./question_matrixdropdownbase";
|
|
23
23
|
import { QuestionMatrixDynamicModel } from "./question_matrixdynamic";
|
|
24
24
|
import { QuestionFileModel } from "./question_file";
|
|
@@ -308,7 +308,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
308
308
|
*
|
|
309
309
|
* For information on event handler parameters, refer to descriptions within the interface.
|
|
310
310
|
*
|
|
311
|
-
* If you want to modify question numbers, handle the [`
|
|
311
|
+
* If you want to modify question numbers, handle the [`onGetQuestionNumber`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onGetQuestionNumber) event.
|
|
312
312
|
* @see requiredText
|
|
313
313
|
*/
|
|
314
314
|
onGetQuestionTitle: EventBase<SurveyModel, GetQuestionTitleEvent>;
|
|
@@ -321,7 +321,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
321
321
|
*
|
|
322
322
|
* [View Demo](https://surveyjs.io/form-library/examples/survey-titletagnames/ (linkStyle))
|
|
323
323
|
* @see onGetQuestionTitle
|
|
324
|
-
* @see
|
|
324
|
+
* @see onGetQuestionNumber
|
|
325
325
|
*/
|
|
326
326
|
onGetTitleTagName: EventBase<SurveyModel, GetTitleTagNameEvent>;
|
|
327
327
|
/**
|
|
@@ -333,7 +333,21 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
333
333
|
* @see onGetQuestionTitle
|
|
334
334
|
* @see questionStartIndex
|
|
335
335
|
*/
|
|
336
|
-
|
|
336
|
+
onGetQuestionNumber: EventBase<SurveyModel, GetQuestionNumberEvent>;
|
|
337
|
+
/**
|
|
338
|
+
* This event is obsolete. Use the [`onGetQuestionNumber`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onGetQuestionNumber) event instead.
|
|
339
|
+
*/
|
|
340
|
+
onGetQuestionNo: EventBase<SurveyModel, GetQuestionNumberEvent>;
|
|
341
|
+
/**
|
|
342
|
+
* An event that is raised before the survey calculates a page number. Handle this event to modify page numbers.
|
|
343
|
+
*
|
|
344
|
+
* This event is raised only if the [`showPageNumbers`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#showPageNumbers) property is enabled.
|
|
345
|
+
*
|
|
346
|
+
* For information on event handler parameters, refer to descriptions within the interface.
|
|
347
|
+
* @see onGetQuestionTitle
|
|
348
|
+
* @see questionStartIndex
|
|
349
|
+
*/
|
|
350
|
+
onGetPageNumber: EventBase<SurveyModel, GetPageNumberEvent>;
|
|
337
351
|
/**
|
|
338
352
|
* An event that is raised before the survey displays progress text. Handle this event to change the progress text in code.
|
|
339
353
|
* @see showProgressBar
|
|
@@ -1468,10 +1482,12 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
1468
1482
|
get locQuestionTitleTemplate(): LocalizableString;
|
|
1469
1483
|
getUpdatedQuestionTitle(question: Question, title: string): string;
|
|
1470
1484
|
getUpdatedQuestionNo(question: Question, no: string): string;
|
|
1485
|
+
getUpdatedPageNo(page: PageModel, no: string): string;
|
|
1471
1486
|
/**
|
|
1472
1487
|
* Specifies whether page titles contain page numbers.
|
|
1473
1488
|
*
|
|
1474
1489
|
* [View Demo](https://surveyjs.io/form-library/examples/how-to-number-pages-and-questions/ (linkStyle))
|
|
1490
|
+
* @see onGetPageNumber
|
|
1475
1491
|
*/
|
|
1476
1492
|
get showPageNumbers(): boolean;
|
|
1477
1493
|
set showPageNumbers(value: boolean);
|
|
@@ -1487,6 +1503,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
1487
1503
|
* [View Demo](https://surveyjs.io/form-library/examples/how-to-number-pages-and-questions/ (linkStyle))
|
|
1488
1504
|
*
|
|
1489
1505
|
* If you want to hide the number of an individual question, enable its [`hideNumber`](https://surveyjs.io/form-library/documentation/api-reference/question#hideNumber) property.
|
|
1506
|
+
* @see onGetQuestionNumber
|
|
1490
1507
|
*/
|
|
1491
1508
|
get showQuestionNumbers(): string | boolean;
|
|
1492
1509
|
set showQuestionNumbers(value: string | boolean);
|
|
@@ -2913,6 +2930,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2913
2930
|
getContainerContent(container: LayoutElementContainer): ISurveyLayoutElement[];
|
|
2914
2931
|
processPopupVisiblityChanged(question: Question, popup: PopupModel<any>, visible: boolean): void;
|
|
2915
2932
|
processOpenDropdownMenu(question: Question, options: IDropdownMenuOptions): void;
|
|
2933
|
+
getCssTitleExpandableSvg(): string;
|
|
2916
2934
|
/**
|
|
2917
2935
|
* Applies a specified theme to the survey.
|
|
2918
2936
|
*
|
|
@@ -2935,4 +2953,5 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2935
2953
|
addScrollEventListener(): void;
|
|
2936
2954
|
removeScrollEventListener(): void;
|
|
2937
2955
|
questionErrorComponent: string;
|
|
2956
|
+
protected registerIcons(): void;
|
|
2938
2957
|
}
|
|
@@ -13,7 +13,10 @@ declare function findScrollableParent(element: HTMLElement): HTMLElement;
|
|
|
13
13
|
declare function activateLazyRenderingChecks(id: string): void;
|
|
14
14
|
declare function navigateToUrl(url: string): void;
|
|
15
15
|
declare function wrapUrlForBackgroundImage(url: string): string;
|
|
16
|
+
declare const renamedIcons: any;
|
|
16
17
|
declare function getIconNameFromProxy(iconName: string): string;
|
|
18
|
+
export declare function getNewIconName(iconName: string): string;
|
|
19
|
+
export declare function getCustomNewIconNameIfExists(iconName: string): string;
|
|
17
20
|
declare function createSvg(size: number | string, width: number, height: number, iconName: string, svgElem: any, title: string): void;
|
|
18
21
|
export declare function getSafeUrl(url: string): string;
|
|
19
22
|
export declare function unwrap<T>(value: T | (() => T)): T;
|
|
@@ -69,4 +72,4 @@ export declare function setPropertiesOnElementForAnimation(el: HTMLElement, styl
|
|
|
69
72
|
export declare function prepareElementForVerticalAnimation(el: HTMLElement): void;
|
|
70
73
|
export declare function cleanHtmlElementAfterAnimation(el: HTMLElement): void;
|
|
71
74
|
export declare function roundTo2Decimals(number: number): number;
|
|
72
|
-
export { mergeValues, getElementWidth, isContainerVisible, classesToSelector, compareVersions, confirmAction, confirmActionAsync, detectIEOrEdge, detectIEBrowser, loadFileFromBase64, isMobile, isShadowDOM, getElement, isElementVisible, findScrollableParent, activateLazyRenderingChecks, navigateToUrl, wrapUrlForBackgroundImage, createSvg, getIconNameFromProxy, increaseHeightByContent, getOriginalEvent, preventDefaults, findParentByClassNames, getFirstVisibleChild, chooseFiles };
|
|
75
|
+
export { mergeValues, getElementWidth, isContainerVisible, classesToSelector, compareVersions, confirmAction, confirmActionAsync, detectIEOrEdge, detectIEBrowser, loadFileFromBase64, isMobile, isShadowDOM, getElement, isElementVisible, findScrollableParent, activateLazyRenderingChecks, navigateToUrl, wrapUrlForBackgroundImage, createSvg, getIconNameFromProxy, increaseHeightByContent, getOriginalEvent, preventDefaults, findParentByClassNames, getFirstVisibleChild, chooseFiles, renamedIcons };
|
|
@@ -27,6 +27,7 @@ export declare var modernCss: {
|
|
|
27
27
|
panel: {
|
|
28
28
|
title: string;
|
|
29
29
|
titleExpandable: string;
|
|
30
|
+
titleExpandableSvg: string;
|
|
30
31
|
titleExpanded: string;
|
|
31
32
|
titleCollapsed: string;
|
|
32
33
|
titleOnError: string;
|
|
@@ -104,6 +105,7 @@ export declare var modernCss: {
|
|
|
104
105
|
titleOnError: string;
|
|
105
106
|
title: string;
|
|
106
107
|
titleExpandable: string;
|
|
108
|
+
titleExpandableSvg: string;
|
|
107
109
|
titleExpanded: string;
|
|
108
110
|
titleCollapsed: string;
|
|
109
111
|
icon: string;
|
|
@@ -364,6 +366,7 @@ export declare var modernCss: {
|
|
|
364
366
|
emptyRowsText: string;
|
|
365
367
|
emptyRowsButton: string;
|
|
366
368
|
ghostRow: string;
|
|
369
|
+
draggedRow: string;
|
|
367
370
|
};
|
|
368
371
|
rating: {
|
|
369
372
|
root: string;
|