survey-core 1.9.125 → 1.9.127
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 +144 -58
- package/defaultV2.css.map +1 -1
- package/defaultV2.fontless.css +144 -58
- 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 +70 -48
- package/modern.css.map +1 -1
- package/modern.fontless.css +70 -48
- package/modern.fontless.css.map +1 -1
- package/modern.fontless.min.css +2 -2
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/plugins/bootstrap-integration.js +1 -1
- package/plugins/bootstrap-integration.min.js +1 -1
- package/plugins/bootstrap-material-integration.js +1 -1
- package/plugins/bootstrap-material-integration.min.js +1 -1
- package/survey.core.js +614 -253
- package/survey.core.js.map +1 -1
- package/survey.core.min.js +3 -3
- package/survey.css +70 -48
- package/survey.css.map +1 -1
- package/survey.i18n.js +1 -1
- package/survey.i18n.min.js +1 -1
- 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/base-interfaces.d.ts +4 -0
- package/ts3.4/typings/base.d.ts +4 -2
- package/ts3.4/typings/defaultCss/cssmodern.d.ts +6 -1
- package/ts3.4/typings/defaultCss/cssstandard.d.ts +6 -1
- package/ts3.4/typings/defaultCss/defaultV2Css.d.ts +9 -1
- package/ts3.4/typings/helpers.d.ts +1 -0
- package/ts3.4/typings/jsonobject.d.ts +12 -4
- package/ts3.4/typings/popup-survey.d.ts +8 -2
- package/ts3.4/typings/question.d.ts +1 -0
- package/ts3.4/typings/question_baseselect.d.ts +2 -0
- package/ts3.4/typings/question_boolean.d.ts +2 -0
- package/ts3.4/typings/question_custom.d.ts +8 -0
- package/ts3.4/typings/question_matrix.d.ts +13 -1
- package/ts3.4/typings/question_matrixdropdowncolumn.d.ts +0 -1
- package/ts3.4/typings/question_paneldynamic.d.ts +7 -0
- package/ts3.4/typings/question_ranking.d.ts +3 -0
- package/ts3.4/typings/settings.d.ts +1 -1
- package/ts3.4/typings/survey-element.d.ts +2 -0
- package/ts3.4/typings/survey-error.d.ts +1 -1
- package/ts3.4/typings/survey.d.ts +3 -1
- package/ts3.4/typings/themes.d.ts +14 -0
- package/ts3.4/typings/trigger.d.ts +2 -0
- package/ts3.4/typings/utils/popup.d.ts +1 -4
- package/ts3.4/typings/utils/utils.d.ts +2 -2
- package/typings/base-interfaces.d.ts +4 -0
- package/typings/base.d.ts +4 -2
- package/typings/defaultCss/cssmodern.d.ts +6 -1
- package/typings/defaultCss/cssstandard.d.ts +6 -1
- package/typings/defaultCss/defaultV2Css.d.ts +9 -1
- package/typings/helpers.d.ts +1 -0
- package/typings/jsonobject.d.ts +12 -4
- package/typings/popup-survey.d.ts +8 -2
- package/typings/question.d.ts +1 -0
- package/typings/question_baseselect.d.ts +2 -0
- package/typings/question_boolean.d.ts +2 -0
- package/typings/question_custom.d.ts +8 -0
- package/typings/question_matrix.d.ts +13 -1
- package/typings/question_matrixdropdowncolumn.d.ts +0 -1
- package/typings/question_paneldynamic.d.ts +7 -0
- package/typings/question_ranking.d.ts +3 -0
- package/typings/settings.d.ts +1 -1
- package/typings/survey-element.d.ts +2 -0
- package/typings/survey-error.d.ts +1 -1
- package/typings/survey.d.ts +3 -1
- package/typings/themes.d.ts +14 -0
- package/typings/trigger.d.ts +2 -0
- package/typings/utils/popup.d.ts +1 -4
- package/typings/utils/utils.d.ts +2 -2
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Question, IConditionObject } from "./question";
|
|
2
|
+
import { JsonObjectProperty } from "./jsonobject";
|
|
2
3
|
import { ISurveyImpl, ISurveyData, ITextProcessor, IPanel, IElement, IQuestion, IProgressInfo } from "./base-interfaces";
|
|
3
4
|
import { SurveyElement } from "./survey-element";
|
|
4
5
|
import { PanelModel } from "./panel";
|
|
@@ -68,6 +69,7 @@ export interface ICustomQuestionTypeConfiguration {
|
|
|
68
69
|
* ```
|
|
69
70
|
*/
|
|
70
71
|
defaultQuestionTitle?: any;
|
|
72
|
+
inheritBaseProps?: false | true | Array<string>;
|
|
71
73
|
/**
|
|
72
74
|
* A function that is called when the custom question is created. Use it to access questions nested within a [composite question type](https://surveyjs.io/form-library/documentation/customize-question-types/create-composite-question-types).
|
|
73
75
|
*
|
|
@@ -220,6 +222,7 @@ export interface ICustomQuestionTypeConfiguration {
|
|
|
220
222
|
export declare class ComponentQuestionJSON {
|
|
221
223
|
name: string;
|
|
222
224
|
json: ICustomQuestionTypeConfiguration;
|
|
225
|
+
private dynamicProperties;
|
|
223
226
|
constructor(name: string, json: ICustomQuestionTypeConfiguration);
|
|
224
227
|
onInit(): void;
|
|
225
228
|
onCreated(question: Question): void;
|
|
@@ -236,6 +239,8 @@ export declare class ComponentQuestionJSON {
|
|
|
236
239
|
setValueToQuestion(val: any): any;
|
|
237
240
|
getValueFromQuestion(val: any): any;
|
|
238
241
|
get isComposite(): boolean;
|
|
242
|
+
getDynamicProperties(): Array<JsonObjectProperty>;
|
|
243
|
+
private calcDynamicProperties;
|
|
239
244
|
}
|
|
240
245
|
export declare class ComponentCollection {
|
|
241
246
|
static Instance: ComponentCollection;
|
|
@@ -313,6 +318,8 @@ export declare class QuestionCustomModel extends QuestionCustomModelBase {
|
|
|
313
318
|
private questionWrapper;
|
|
314
319
|
private hasJSONTitle;
|
|
315
320
|
getTemplate(): string;
|
|
321
|
+
getDynamicProperties(): Array<JsonObjectProperty>;
|
|
322
|
+
getDynamicType(): string;
|
|
316
323
|
protected createWrapper(): void;
|
|
317
324
|
protected getElement(): SurveyElement;
|
|
318
325
|
onAnyValueChanged(name: string, questionName: string): void;
|
|
@@ -337,6 +344,7 @@ export declare class QuestionCustomModel extends QuestionCustomModelBase {
|
|
|
337
344
|
protected getValueCore(): any;
|
|
338
345
|
private isSettingValueChanged;
|
|
339
346
|
protected setValueChangedDirectly(val: boolean): void;
|
|
347
|
+
private createDynamicProperties;
|
|
340
348
|
protected initElement(el: SurveyElement): void;
|
|
341
349
|
updateElementCss(reNew?: boolean): void;
|
|
342
350
|
protected updateElementCssCore(cssClasses: any): void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { HashTable } from "./helpers";
|
|
1
2
|
import { ItemValue } from "./itemvalue";
|
|
2
3
|
import { QuestionMatrixBaseModel } from "./martixBase";
|
|
3
4
|
import { Base } from "./base";
|
|
@@ -8,12 +9,14 @@ import { IPlainDataOptions } from "./base-interfaces";
|
|
|
8
9
|
export interface IMatrixData {
|
|
9
10
|
onMatrixRowChanged(row: MatrixRowModel): void;
|
|
10
11
|
getCorrectedRowValue(value: any): any;
|
|
12
|
+
cssClasses: any;
|
|
13
|
+
isInputReadOnly: boolean;
|
|
11
14
|
hasErrorInRow(row: MatrixRowModel): boolean;
|
|
12
15
|
}
|
|
13
16
|
export declare class MatrixRowModel extends Base {
|
|
17
|
+
item: ItemValue;
|
|
14
18
|
fullName: string;
|
|
15
19
|
private data;
|
|
16
|
-
private item;
|
|
17
20
|
cellClick: any;
|
|
18
21
|
constructor(item: ItemValue, fullName: string, data: IMatrixData, value: any);
|
|
19
22
|
get name(): string;
|
|
@@ -21,6 +24,9 @@ export declare class MatrixRowModel extends Base {
|
|
|
21
24
|
get locText(): LocalizableString;
|
|
22
25
|
get value(): any;
|
|
23
26
|
set value(val: any);
|
|
27
|
+
setValueDirectly(val: any): void;
|
|
28
|
+
get isReadOnly(): boolean;
|
|
29
|
+
get rowTextClasses(): string;
|
|
24
30
|
get rowClasses(): string;
|
|
25
31
|
}
|
|
26
32
|
export interface IMatrixCellsOwner extends ILocalizableOwner {
|
|
@@ -107,12 +113,18 @@ export declare class QuestionMatrixModel extends QuestionMatrixBaseModel<MatrixR
|
|
|
107
113
|
locStrsChanged(): void;
|
|
108
114
|
protected getQuizQuestionCount(): number;
|
|
109
115
|
protected getCorrectAnswerCount(): number;
|
|
116
|
+
protected runItemsCondition(values: HashTable<any>, properties: HashTable<any>): boolean;
|
|
110
117
|
protected getVisibleRows(): Array<MatrixRowModel>;
|
|
111
118
|
protected sortVisibleRows(array: Array<MatrixRowModel>): Array<MatrixRowModel>;
|
|
112
119
|
endLoadingFromJson(): void;
|
|
113
120
|
protected isNewValueCorrect(val: any): boolean;
|
|
114
121
|
protected processRowsOnSet(newRows: Array<any>): MatrixRowModel[];
|
|
115
122
|
get visibleRows(): Array<MatrixRowModel>;
|
|
123
|
+
/**
|
|
124
|
+
* An array of matrix cells. Use this array to get or set cell values.
|
|
125
|
+
*
|
|
126
|
+
* [View Demo](https://surveyjs.io/form-library/examples/questiontype-matrix-rubric/ (linkStyle))
|
|
127
|
+
*/
|
|
116
128
|
get cells(): MatrixCells;
|
|
117
129
|
set cells(value: MatrixCells);
|
|
118
130
|
get hasCellText(): boolean;
|
|
@@ -164,6 +164,8 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
|
164
164
|
* @see templateVisibleIf
|
|
165
165
|
*/
|
|
166
166
|
get visiblePanels(): Array<PanelModel>;
|
|
167
|
+
protected get panelsCore(): Array<PanelModel>;
|
|
168
|
+
protected get visiblePanelsCore(): Array<PanelModel>;
|
|
167
169
|
private onPanelAdded;
|
|
168
170
|
private onPanelRemoved;
|
|
169
171
|
private onPanelRemovedCore;
|
|
@@ -549,6 +551,11 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
|
549
551
|
protected onReadOnlyChanged(): void;
|
|
550
552
|
private updateNoEntriesTextDefaultLoc;
|
|
551
553
|
onSurveyLoad(): void;
|
|
554
|
+
private hasPanelBuildFirstTime;
|
|
555
|
+
private isBuildingPanelsFirstTime;
|
|
556
|
+
private buildPanelsFirstTime;
|
|
557
|
+
private get wasNotRenderedInSurvey();
|
|
558
|
+
private get canBuildPanels();
|
|
552
559
|
onFirstRendering(): void;
|
|
553
560
|
localeChanged(): void;
|
|
554
561
|
runCondition(values: HashTable<any>, properties: HashTable<any>): void;
|
|
@@ -13,6 +13,7 @@ export declare class QuestionRankingModel extends QuestionCheckboxModel {
|
|
|
13
13
|
protected getDefaultItemComponent(): string;
|
|
14
14
|
getType(): string;
|
|
15
15
|
getItemTabIndex(item: ItemValue): number;
|
|
16
|
+
protected supportContainerQueries(): boolean;
|
|
16
17
|
get rootClass(): string;
|
|
17
18
|
protected getItemClassCore(item: ItemValue, options: any): string;
|
|
18
19
|
getContainerClasses(containerType?: string): string;
|
|
@@ -54,6 +55,7 @@ export declare class QuestionRankingModel extends QuestionCheckboxModel {
|
|
|
54
55
|
handleKeydownSelectToRank(event: KeyboardEvent, movedElement: ItemValue): void;
|
|
55
56
|
private setValueAfterKeydown;
|
|
56
57
|
private focusItem;
|
|
58
|
+
isValueSetByUser: boolean;
|
|
57
59
|
setValue: () => void;
|
|
58
60
|
getIconHoverCss(): string;
|
|
59
61
|
getIconFocusCss(): string;
|
|
@@ -76,6 +78,7 @@ export declare class QuestionRankingModel extends QuestionCheckboxModel {
|
|
|
76
78
|
*/
|
|
77
79
|
get selectToRankEnabled(): boolean;
|
|
78
80
|
set selectToRankEnabled(val: boolean);
|
|
81
|
+
carryForwardStartUnranked: boolean;
|
|
79
82
|
/**
|
|
80
83
|
* Specifies the layout of the ranked and unranked areas. Applies when [`selectToRankEnabled`](https://surveyjs.io/form-library/documentation/api-reference/ranking-question-model#selectToRankEnabled) is `true`.
|
|
81
84
|
*
|
package/typings/settings.d.ts
CHANGED
|
@@ -363,7 +363,7 @@ export declare var settings: {
|
|
|
363
363
|
* @param message A message to be displayed in the confirm dialog window.
|
|
364
364
|
* @param callback A callback function that should be called with `true` if a user confirms an action or `false` otherwise.
|
|
365
365
|
*/
|
|
366
|
-
confirmActionAsync: (message: string, callback: (res: boolean) => void, applyTitle?: string) => boolean;
|
|
366
|
+
confirmActionAsync: (message: string, callback: (res: boolean) => void, applyTitle?: string, locale?: string) => boolean;
|
|
367
367
|
/**
|
|
368
368
|
* A minimum width value for all survey elements.
|
|
369
369
|
*
|
|
@@ -271,6 +271,8 @@ export declare class SurveyElement<E = any> extends SurveyElementCore implements
|
|
|
271
271
|
set selectedElementInDesign(val: SurveyElement);
|
|
272
272
|
updateCustomWidgets(): void;
|
|
273
273
|
onSurveyLoad(): void;
|
|
274
|
+
private wasRenderedValue;
|
|
275
|
+
get wasRendered(): boolean;
|
|
274
276
|
onFirstRendering(): void;
|
|
275
277
|
endLoadingFromJson(): void;
|
|
276
278
|
setVisibleIndex(index: number): number;
|
|
@@ -6,7 +6,7 @@ export declare class SurveyError {
|
|
|
6
6
|
private locTextValue;
|
|
7
7
|
visible: boolean;
|
|
8
8
|
constructor(text?: string, errorOwner?: ISurveyErrorOwner);
|
|
9
|
-
|
|
9
|
+
equals(error: SurveyError): boolean;
|
|
10
10
|
get locText(): LocalizableString;
|
|
11
11
|
getText(): string;
|
|
12
12
|
getErrorType(): string;
|
package/typings/survey.d.ts
CHANGED
|
@@ -2136,7 +2136,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2136
2136
|
getUpdatedMatrixRowActions(question: QuestionMatrixDropdownModelBase, row: any, actions: Array<IAction>): IAction[];
|
|
2137
2137
|
scrollElementToTop(element: ISurveyElement, question: Question, page: PageModel, id: string, scrollIfVisible?: boolean): any;
|
|
2138
2138
|
/**
|
|
2139
|
-
* Uploads
|
|
2139
|
+
* Uploads files to a server.
|
|
2140
2140
|
*
|
|
2141
2141
|
* The following code shows how to call this method:
|
|
2142
2142
|
*
|
|
@@ -2402,6 +2402,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2402
2402
|
private getProcessedValuesWithoutQuestion;
|
|
2403
2403
|
private getFirstName;
|
|
2404
2404
|
private reduceFirstName;
|
|
2405
|
+
private isClearingUnsedValues;
|
|
2405
2406
|
private clearUnusedValues;
|
|
2406
2407
|
hasVisibleQuestionByValueName(valueName: string): boolean;
|
|
2407
2408
|
questionsByValueName(valueName: string): Array<IQuestion>;
|
|
@@ -2746,6 +2747,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2746
2747
|
* @returns The configuration of the previous layout element with the same `id`.
|
|
2747
2748
|
*/
|
|
2748
2749
|
addLayoutElement(layoutElement: ISurveyLayoutElement): ISurveyLayoutElement;
|
|
2750
|
+
findLayoutElement(layoutElementId: string): ISurveyLayoutElement;
|
|
2749
2751
|
removeLayoutElement(layoutElementId: string): ISurveyLayoutElement;
|
|
2750
2752
|
getContainerContent(container: LayoutElementContainer): any[];
|
|
2751
2753
|
processPopupVisiblityChanged(question: Question, popup: PopupModel<any>, visible: boolean): void;
|
package/typings/themes.d.ts
CHANGED
|
@@ -59,6 +59,20 @@ export interface ITheme {
|
|
|
59
59
|
* An object with [advanced survey header settings](https://surveyjs.io/form-library/documentation/api-reference/iheader). Applies when `SurveyModel`'s [`headerView`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#headerView) property is set to `"advanced"`.
|
|
60
60
|
*/
|
|
61
61
|
header?: IHeader;
|
|
62
|
+
/**
|
|
63
|
+
* Specifies whether the survey header uses only basic appearance settings or applies advanced settings from the survey theme.
|
|
64
|
+
*
|
|
65
|
+
* Possible values:
|
|
66
|
+
*
|
|
67
|
+
* - `"basic"` (default)\
|
|
68
|
+
* A basic header view applies only the [`title`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#title), [`description`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#description), and logo-related properties ([`logo`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#logo), [`logoPosition`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#logoPosition), etc.).
|
|
69
|
+
*
|
|
70
|
+
* - `"advanced"`\
|
|
71
|
+
* An advanced header view applies the same properties as the basic view, plus [header settings](https://surveyjs.io/form-library/documentation/api-reference/iheader) from the [survey theme](https://surveyjs.io/form-library/documentation/api-reference/itheme#header). The advanced view features a more flexible header layout, a capability to specify a background image, and other settings that give a more professional look to the survey header.
|
|
72
|
+
*
|
|
73
|
+
* [View Demo](https://surveyjs.io/form-library/examples/brand-your-survey-header/ (linkStyle))
|
|
74
|
+
*/
|
|
75
|
+
headerView?: "advanced" | "basic";
|
|
62
76
|
/**
|
|
63
77
|
* An object with CSS variables.
|
|
64
78
|
*/
|
package/typings/trigger.d.ts
CHANGED
package/typings/utils/popup.d.ts
CHANGED
|
@@ -16,10 +16,7 @@ export interface ISize {
|
|
|
16
16
|
export declare class PopupUtils {
|
|
17
17
|
static bottomIndent: number;
|
|
18
18
|
static calculatePosition(targetRect: ClientRect, height: number, width: number, verticalPosition: VerticalPosition, horizontalPosition: HorizontalPosition, showPointer: boolean, positionMode?: PositionMode): INumberPosition;
|
|
19
|
-
static getCorrectedVerticalDimensions(top: number, height: number, windowHeight: number):
|
|
20
|
-
height: number;
|
|
21
|
-
top: number;
|
|
22
|
-
};
|
|
19
|
+
static getCorrectedVerticalDimensions(top: number, height: number, windowHeight: number, verticalPosition: VerticalPosition): any;
|
|
23
20
|
static updateHorizontalDimensions(left: number, width: number, windowWidth: number, horizontalPosition: HorizontalPosition, positionMode?: PositionMode, margins?: {
|
|
24
21
|
left: number;
|
|
25
22
|
right: number;
|
package/typings/utils/utils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare function compareVersions(a: any, b: any): number;
|
|
2
2
|
declare function confirmAction(message: string): boolean;
|
|
3
|
-
declare function confirmActionAsync(message: string, funcOnYes: () => void, funcOnNo?: () => void): void;
|
|
3
|
+
declare function confirmActionAsync(message: string, funcOnYes: () => void, funcOnNo?: () => void, locale?: string): void;
|
|
4
4
|
declare function detectIEBrowser(): boolean;
|
|
5
5
|
declare function detectIEOrEdge(): boolean;
|
|
6
6
|
declare function loadFileFromBase64(b64Data: string, fileName: string): void;
|
|
@@ -40,5 +40,5 @@ export declare class Logger {
|
|
|
40
40
|
log(action: string): void;
|
|
41
41
|
get result(): string;
|
|
42
42
|
}
|
|
43
|
-
export declare function showConfirmDialog(message: string, callback: (res: boolean) => void, applyTitle?: string): boolean;
|
|
43
|
+
export declare function showConfirmDialog(message: string, callback: (res: boolean) => void, applyTitle?: string, locale?: string): boolean;
|
|
44
44
|
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, };
|