survey-core 1.9.129 → 1.9.130
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 +18 -4
- package/defaultV2.css.map +1 -1
- package/defaultV2.fontless.css +18 -4
- 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 +6 -6
- package/i18n/english.js.map +1 -1
- package/i18n/english.min.js +2 -2
- 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 +2 -2
- package/i18n/index.js.map +1 -1
- package/i18n/index.min.js +2 -2
- 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 +2 -2
- package/i18n/spanish.js.map +1 -1
- package/i18n/spanish.min.js +2 -2
- 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 +5 -3
- package/modern.css.map +1 -1
- package/modern.fontless.css +5 -3
- 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 +432 -129
- package/survey.core.js.map +1 -1
- package/survey.core.min.js +3 -3
- package/survey.css +3 -2
- package/survey.css.map +1 -1
- package/survey.i18n.js +2 -2
- 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/defaultCss/defaultV2Css.d.ts +1 -0
- package/ts3.4/typings/dragdrop/dom-adapter.d.ts +2 -1
- package/ts3.4/typings/entries/chunks/model.d.ts +1 -1
- package/ts3.4/typings/jsonobject.d.ts +4 -0
- package/ts3.4/typings/panel.d.ts +7 -1
- package/ts3.4/typings/popup-survey.d.ts +1 -2
- package/ts3.4/typings/question_boolean.d.ts +3 -0
- package/ts3.4/typings/question_file.d.ts +2 -2
- package/ts3.4/typings/question_matrixdropdownbase.d.ts +11 -8
- package/ts3.4/typings/question_matrixdynamic.d.ts +2 -3
- package/ts3.4/typings/question_paneldynamic.d.ts +1 -1
- package/ts3.4/typings/settings.d.ts +26 -10
- package/ts3.4/typings/survey.d.ts +1 -0
- package/typings/defaultCss/defaultV2Css.d.ts +1 -0
- package/typings/dragdrop/dom-adapter.d.ts +2 -1
- package/typings/entries/chunks/model.d.ts +1 -1
- package/typings/jsonobject.d.ts +4 -0
- package/typings/panel.d.ts +7 -1
- package/typings/popup-survey.d.ts +1 -2
- package/typings/question_boolean.d.ts +3 -0
- package/typings/question_file.d.ts +2 -2
- package/typings/question_matrixdropdownbase.d.ts +12 -8
- package/typings/question_matrixdynamic.d.ts +2 -3
- package/typings/question_paneldynamic.d.ts +1 -1
- package/typings/settings.d.ts +26 -10
- package/typings/survey.d.ts +1 -0
|
@@ -190,12 +190,15 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
|
|
|
190
190
|
protected updateColumnsAndRows(): void;
|
|
191
191
|
itemValuePropertyChanged(item: ItemValue, name: string, oldValue: any, newValue: any): void;
|
|
192
192
|
/*
|
|
193
|
-
* Specifies
|
|
193
|
+
* Specifies whether to display [`columns`](#columns) as rows and [`rows`](#rows) as columns.
|
|
194
194
|
*
|
|
195
|
-
* Default value: `
|
|
196
|
-
*
|
|
197
|
-
*
|
|
198
|
-
|
|
195
|
+
* Default value: `false`
|
|
196
|
+
*
|
|
197
|
+
* [View Demo](https://surveyjs.io/form-library/examples/transpose-dynamic-rows-to-columns-in-matrix/ (linkStyle))
|
|
198
|
+
*/
|
|
199
|
+
transposeData: boolean;
|
|
200
|
+
/*
|
|
201
|
+
* This property is obsolete. Use the [`transposeData`](#transposeData) property instead.
|
|
199
202
|
*/
|
|
200
203
|
columnLayout: string;
|
|
201
204
|
columnsLocation: string;
|
|
@@ -223,10 +226,10 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
|
|
|
223
226
|
cellErrorLocation: string;
|
|
224
227
|
getChildErrorLocation(child: Question): string;
|
|
225
228
|
/*
|
|
226
|
-
* Returns `true` if columns are placed in the horizontal direction and rows in the vertical direction.
|
|
229
|
+
* Returns `true` if [`columns`](#columns) are placed in the horizontal direction and [`rows`](#columns) in the vertical direction.
|
|
227
230
|
*
|
|
228
|
-
* To specify the layout, use the `
|
|
229
|
-
* @see
|
|
231
|
+
* To specify the layout, use the [`transposeData`](#transposeData) property. If you set it to `true`, the survey applies it only when the screen has enough space. Otherwise, the survey falls back to the original layout, but the `transposeData` property remains set to `true`. Unlike `transposeData`, the `isColumnLayoutHorizontal` property always indicates the current layout.
|
|
232
|
+
* @see transposeData
|
|
230
233
|
*/
|
|
231
234
|
readonly isColumnLayoutHorizontal: boolean;
|
|
232
235
|
/*
|
|
@@ -79,7 +79,7 @@ export declare class QuestionMatrixDynamicModel extends QuestionMatrixDropdownMo
|
|
|
79
79
|
protected updateProgressInfoByValues(res: IProgressInfo): void;
|
|
80
80
|
private getValueForNewRow;
|
|
81
81
|
/*
|
|
82
|
-
* Specifies whether users can drag and drop matrix rows to reorder them. Applies only if [`
|
|
82
|
+
* Specifies whether users can drag and drop matrix rows to reorder them. Applies only if [`transposeData`](#transposeData) is `false`.
|
|
83
83
|
*
|
|
84
84
|
* Default value: `false`
|
|
85
85
|
*/
|
|
@@ -203,8 +203,7 @@ export declare class QuestionMatrixDynamicModel extends QuestionMatrixDropdownMo
|
|
|
203
203
|
* - `"bottom"` - Displays the Add Row button at the bottom of the matrix.
|
|
204
204
|
* - `"topBottom"` - Displays the Add Row button at the top and bottom of the matrix.
|
|
205
205
|
*
|
|
206
|
-
* Default value: `"top"` if `
|
|
207
|
-
* @see columnLayout
|
|
206
|
+
* Default value: `"top"` if [`transposeData`](#transposeData) is `true`; `"bottom"` if `transposeData` is `false` or the matrix is in compact mode.
|
|
208
207
|
* @see addRowText
|
|
209
208
|
*/
|
|
210
209
|
addRowLocation: string;
|
|
@@ -582,7 +582,7 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
|
582
582
|
getPrevButtonCss(): string;
|
|
583
583
|
getNextButtonCss(): string;
|
|
584
584
|
/*
|
|
585
|
-
* A text displayed when Dynamic Panel contains no entries.
|
|
585
|
+
* A text displayed when Dynamic Panel contains no entries.
|
|
586
586
|
*/
|
|
587
587
|
noEntriesText: string;
|
|
588
588
|
readonly locNoEntriesText: LocalizableString;
|
|
@@ -339,27 +339,43 @@ export declare var settings: {
|
|
|
339
339
|
*/
|
|
340
340
|
tagboxCloseOnSelect: boolean;
|
|
341
341
|
/**
|
|
342
|
-
* A
|
|
342
|
+
* A function that activates a browser confirm dialog.
|
|
343
343
|
*
|
|
344
|
-
*
|
|
344
|
+
* Use the following code to execute this function:
|
|
345
|
+
*
|
|
346
|
+
* ```js
|
|
347
|
+
* import { settings } from "survey-core";
|
|
348
|
+
*
|
|
349
|
+
* // `result` contains `true` if the action was confirmed or `false` otherwise
|
|
350
|
+
* const result = settings.confirmActionFunc("Are you sure?");
|
|
351
|
+
* ```
|
|
352
|
+
*
|
|
353
|
+
* You can redefine the `confirmActionFunc` function if you want to display a custom dialog window. Your function should return `true` if a user confirms an action or `false` otherwise.
|
|
345
354
|
* @param message A message to be displayed in the confirm dialog window.
|
|
346
355
|
*/
|
|
347
356
|
confirmActionFunc: (message: string) => boolean;
|
|
348
357
|
/**
|
|
349
|
-
* A
|
|
358
|
+
* A function that activates a proprietary SurveyJS confirm dialog.
|
|
350
359
|
*
|
|
351
|
-
*
|
|
352
|
-
*
|
|
353
|
-
* To activate the standard browser dialog, set the `confirmActionAsync` property to a function that returns `false`. With this configuration, a survey falls back to the [`confirmActionFunc`](#confirmActionFunc) function, which renders the standard browser dialog by default.
|
|
360
|
+
* Use the following code to execute this function:
|
|
354
361
|
*
|
|
355
362
|
* ```js
|
|
356
363
|
* import { settings } from "survey-core";
|
|
357
364
|
*
|
|
358
|
-
*
|
|
359
|
-
*
|
|
360
|
-
*
|
|
361
|
-
*
|
|
365
|
+
* settings.confirmActionAsync("Are you sure?", (confirmed) => {
|
|
366
|
+
* if (confirmed) {
|
|
367
|
+
* // ...
|
|
368
|
+
* // Proceed with the action
|
|
369
|
+
* // ...
|
|
370
|
+
* } else {
|
|
371
|
+
* // ...
|
|
372
|
+
* // Cancel the action
|
|
373
|
+
* // ...
|
|
374
|
+
* }
|
|
375
|
+
* });
|
|
362
376
|
* ```
|
|
377
|
+
*
|
|
378
|
+
* You can redefine the `confirmActionAsync` function if you want to display a custom dialog window. Your function should return `true` to be enabled; otherwise, a survey executes the [`confirmActionFunc`](#confirmActionFunc) function. Pass the dialog result as the `callback` parameter: `true` if a user confirms an action, `false` otherwise.
|
|
363
379
|
* @param message A message to be displayed in the confirm dialog window.
|
|
364
380
|
* @param callback A callback function that should be called with `true` if a user confirms an action or `false` otherwise.
|
|
365
381
|
*/
|
|
@@ -1177,6 +1177,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
1177
1177
|
readonly isLogoBefore: boolean;
|
|
1178
1178
|
readonly isLogoAfter: boolean;
|
|
1179
1179
|
readonly logoClassNames: string;
|
|
1180
|
+
private titleIsEmpty;
|
|
1180
1181
|
readonly renderedHasTitle: boolean;
|
|
1181
1182
|
readonly renderedHasDescription: boolean;
|
|
1182
1183
|
readonly hasTitle: boolean;
|
|
@@ -7,6 +7,7 @@ export interface IDragDropDOMAdapter {
|
|
|
7
7
|
export declare class DragDropDOMAdapter implements IDragDropDOMAdapter {
|
|
8
8
|
private dd;
|
|
9
9
|
private longTap;
|
|
10
|
+
private fitToContainer;
|
|
10
11
|
static PreventScrolling: boolean;
|
|
11
12
|
private timeoutID;
|
|
12
13
|
private startX;
|
|
@@ -17,7 +18,7 @@ export declare class DragDropDOMAdapter implements IDragDropDOMAdapter {
|
|
|
17
18
|
private savedTargetNodeParent;
|
|
18
19
|
private savedTargetNodeIndex;
|
|
19
20
|
private scrollIntervalId;
|
|
20
|
-
constructor(dd: IDragDropEngine, longTap?: boolean);
|
|
21
|
+
constructor(dd: IDragDropEngine, longTap?: boolean, fitToContainer?: boolean);
|
|
21
22
|
private get rootElement();
|
|
22
23
|
private stopLongTapIfMoveEnough;
|
|
23
24
|
private get isMicroMovement();
|
|
@@ -25,7 +25,7 @@ export { ProcessValue } from "../../conditionProcessValue";
|
|
|
25
25
|
export { JsonError, JsonIncorrectTypeError, JsonMetadata, JsonMetadataClass, JsonMissingTypeError, JsonMissingTypeErrorBase, JsonObject, JsonObjectProperty, JsonRequiredPropertyError, JsonUnknownPropertyError, Serializer, property, propertyArray } from "../../jsonobject";
|
|
26
26
|
export { IMatrixDropdownData, MatrixDropdownCell, MatrixDropdownRowModelBase, QuestionMatrixDropdownModelBase } from "../../question_matrixdropdownbase";
|
|
27
27
|
export { MatrixDropdownColumn, matrixDropdownColumnTypes } from "../../question_matrixdropdowncolumn";
|
|
28
|
-
export { QuestionMatrixDropdownRenderedCell, QuestionMatrixDropdownRenderedRow, QuestionMatrixDropdownRenderedTable } from "../../question_matrixdropdownrendered";
|
|
28
|
+
export { QuestionMatrixDropdownRenderedCell, QuestionMatrixDropdownRenderedRow, QuestionMatrixDropdownRenderedErrorRow, QuestionMatrixDropdownRenderedTable } from "../../question_matrixdropdownrendered";
|
|
29
29
|
export { MatrixDropdownRowModel, QuestionMatrixDropdownModel } from "../../question_matrixdropdown";
|
|
30
30
|
export { MatrixDynamicRowModel, QuestionMatrixDynamicModel } from "../../question_matrixdynamic";
|
|
31
31
|
export { MatrixRowModel, MatrixCells, QuestionMatrixModel, IMatrixData } from "../../question_matrix";
|
package/typings/jsonobject.d.ts
CHANGED
|
@@ -54,6 +54,7 @@ export declare class JsonObjectProperty implements IObject {
|
|
|
54
54
|
isBindable: boolean;
|
|
55
55
|
className: string;
|
|
56
56
|
alternativeName: string;
|
|
57
|
+
oldName: string;
|
|
57
58
|
classNamePart: string;
|
|
58
59
|
baseClassName: string;
|
|
59
60
|
defaultValueValue: any;
|
|
@@ -124,6 +125,7 @@ export declare class JsonObjectProperty implements IObject {
|
|
|
124
125
|
set visible(val: boolean);
|
|
125
126
|
isAvailableInVersion(ver: string): boolean;
|
|
126
127
|
getSerializedName(ver: string): string;
|
|
128
|
+
getSerializedProperty(obj: any, ver: string): JsonObjectProperty;
|
|
127
129
|
private isAvailableInVersionCore;
|
|
128
130
|
get isLocalizable(): boolean;
|
|
129
131
|
set isLocalizable(val: boolean);
|
|
@@ -192,6 +194,7 @@ export declare class JsonMetadata {
|
|
|
192
194
|
setObjPropertyValue(obj: any, name: string, val: any): void;
|
|
193
195
|
private getObjPropertyValueCore;
|
|
194
196
|
private isObjWrapper;
|
|
197
|
+
private isNeedUseObjWrapper;
|
|
195
198
|
addClass(name: string, properties: Array<any>, creator?: (json?: any) => any, parentName?: string): JsonMetadataClass;
|
|
196
199
|
removeClass(name: string): void;
|
|
197
200
|
overrideClassCreatore(name: string, creator: () => any): void;
|
|
@@ -294,6 +297,7 @@ export declare class JsonObject {
|
|
|
294
297
|
private addDynamicProperties;
|
|
295
298
|
private propertiesToJson;
|
|
296
299
|
valueToJson(obj: any, result: any, prop: JsonObjectProperty, options?: ISaveToJSONOptions): void;
|
|
300
|
+
private valueToJsonCore;
|
|
297
301
|
valueToObj(value: any, obj: any, property: JsonObjectProperty, jsonObj?: any, options?: ILoadFromJSONOptions): void;
|
|
298
302
|
private removePosOnValueToJson;
|
|
299
303
|
private removePos;
|
package/typings/panel.d.ts
CHANGED
|
@@ -286,6 +286,11 @@ export declare class PanelModelBase extends SurveyElement<Question> implements I
|
|
|
286
286
|
get rows(): Array<QuestionRowModel>;
|
|
287
287
|
ensureRowsVisibility(): void;
|
|
288
288
|
protected onRowsChanged(): void;
|
|
289
|
+
private locCountRowUpdates;
|
|
290
|
+
private blockRowsUpdates;
|
|
291
|
+
private releaseRowsUpdates;
|
|
292
|
+
private updateRowsBeforeElementRemoved;
|
|
293
|
+
private updateRowsOnElementAdded;
|
|
289
294
|
protected onAddElement(element: IElement, index: number): void;
|
|
290
295
|
protected onRemoveElement(element: IElement): void;
|
|
291
296
|
private onElementVisibilityChanged;
|
|
@@ -352,6 +357,7 @@ export declare class PanelModelBase extends SurveyElement<Question> implements I
|
|
|
352
357
|
* @see addNewPanel
|
|
353
358
|
*/
|
|
354
359
|
addElement(element: IElement, index?: number): boolean;
|
|
360
|
+
insertElement(element: IElement, dest?: IElement, location?: "bottom" | "top" | "left" | "right"): void;
|
|
355
361
|
insertElementAfter(element: IElement, after: IElement): void;
|
|
356
362
|
insertElementBefore(element: IElement, before: IElement): void;
|
|
357
363
|
protected canAddElement(element: IElement): boolean;
|
|
@@ -374,7 +380,7 @@ export declare class PanelModelBase extends SurveyElement<Question> implements I
|
|
|
374
380
|
*
|
|
375
381
|
* This method returns `null` if the panel cannot be created or added to this panel/page; otherwise, the method returns the created panel.
|
|
376
382
|
* @param name A panel name.
|
|
377
|
-
* @see
|
|
383
|
+
* @see elementsup
|
|
378
384
|
* @see addElement
|
|
379
385
|
*/
|
|
380
386
|
addNewPanel(name?: string): PanelModel;
|
|
@@ -97,10 +97,9 @@ export declare class PopupSurveyModel extends Base {
|
|
|
97
97
|
get allowClose(): boolean;
|
|
98
98
|
set allowClose(val: boolean);
|
|
99
99
|
/**
|
|
100
|
-
* Specifies whether to display a button that
|
|
100
|
+
* Specifies whether to display a button that allows respondents to show the pop-up survey in full screen mode.
|
|
101
101
|
*
|
|
102
102
|
* Default value: `false`
|
|
103
|
-
*
|
|
104
103
|
*/
|
|
105
104
|
get allowFullScreen(): boolean;
|
|
106
105
|
set allowFullScreen(val: boolean);
|
|
@@ -46,6 +46,9 @@ export declare class QuestionBooleanModel extends Question {
|
|
|
46
46
|
set labelTrue(val: string);
|
|
47
47
|
get locLabelTrue(): LocalizableString;
|
|
48
48
|
get isDeterminated(): boolean;
|
|
49
|
+
swapOrder: boolean;
|
|
50
|
+
get locLabelLeft(): LocalizableString;
|
|
51
|
+
get locLabelRight(): LocalizableString;
|
|
49
52
|
/**
|
|
50
53
|
* Gets or sets a text label that corresponds to a negative answer.
|
|
51
54
|
*
|
|
@@ -148,7 +148,7 @@ export declare class QuestionFileModel extends QuestionFileModelBase {
|
|
|
148
148
|
*/
|
|
149
149
|
get maxSize(): number;
|
|
150
150
|
set maxSize(val: number);
|
|
151
|
-
chooseFile(): void;
|
|
151
|
+
chooseFile(event: MouseEvent): void;
|
|
152
152
|
/**
|
|
153
153
|
* Specifies whether users should confirm file deletion.
|
|
154
154
|
*
|
|
@@ -240,7 +240,7 @@ export declare class QuestionFileModel extends QuestionFileModelBase {
|
|
|
240
240
|
protected onChangeQuestionValue(newValue: any): void;
|
|
241
241
|
protected calcCssClasses(css: any): any;
|
|
242
242
|
updateElementCss(reNew?: boolean): void;
|
|
243
|
-
|
|
243
|
+
onSurveyLoad(): void;
|
|
244
244
|
protected needResponsiveness(): boolean;
|
|
245
245
|
protected supportResponsiveness(): boolean;
|
|
246
246
|
protected getObservedElementSelector(): string;
|
|
@@ -193,12 +193,16 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
|
|
|
193
193
|
protected updateColumnsAndRows(): void;
|
|
194
194
|
itemValuePropertyChanged(item: ItemValue, name: string, oldValue: any, newValue: any): void;
|
|
195
195
|
/**
|
|
196
|
-
* Specifies
|
|
196
|
+
* Specifies whether to display [`columns`](#columns) as rows and [`rows`](#rows) as columns.
|
|
197
197
|
*
|
|
198
|
-
* Default value: `
|
|
199
|
-
*
|
|
200
|
-
*
|
|
201
|
-
|
|
198
|
+
* Default value: `false`
|
|
199
|
+
*
|
|
200
|
+
* [View Demo](https://surveyjs.io/form-library/examples/transpose-dynamic-rows-to-columns-in-matrix/ (linkStyle))
|
|
201
|
+
*/
|
|
202
|
+
get transposeData(): boolean;
|
|
203
|
+
set transposeData(val: boolean);
|
|
204
|
+
/**
|
|
205
|
+
* This property is obsolete. Use the [`transposeData`](#transposeData) property instead.
|
|
202
206
|
*/
|
|
203
207
|
get columnLayout(): string;
|
|
204
208
|
set columnLayout(val: string);
|
|
@@ -230,10 +234,10 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
|
|
|
230
234
|
set cellErrorLocation(value: string);
|
|
231
235
|
getChildErrorLocation(child: Question): string;
|
|
232
236
|
/**
|
|
233
|
-
* Returns `true` if columns are placed in the horizontal direction and rows in the vertical direction.
|
|
237
|
+
* Returns `true` if [`columns`](#columns) are placed in the horizontal direction and [`rows`](#columns) in the vertical direction.
|
|
234
238
|
*
|
|
235
|
-
* To specify the layout, use the `
|
|
236
|
-
* @see
|
|
239
|
+
* To specify the layout, use the [`transposeData`](#transposeData) property. If you set it to `true`, the survey applies it only when the screen has enough space. Otherwise, the survey falls back to the original layout, but the `transposeData` property remains set to `true`. Unlike `transposeData`, the `isColumnLayoutHorizontal` property always indicates the current layout.
|
|
240
|
+
* @see transposeData
|
|
237
241
|
*/
|
|
238
242
|
get isColumnLayoutHorizontal(): boolean;
|
|
239
243
|
/**
|
|
@@ -84,7 +84,7 @@ export declare class QuestionMatrixDynamicModel extends QuestionMatrixDropdownMo
|
|
|
84
84
|
protected updateProgressInfoByValues(res: IProgressInfo): void;
|
|
85
85
|
private getValueForNewRow;
|
|
86
86
|
/**
|
|
87
|
-
* Specifies whether users can drag and drop matrix rows to reorder them. Applies only if [`
|
|
87
|
+
* Specifies whether users can drag and drop matrix rows to reorder them. Applies only if [`transposeData`](#transposeData) is `false`.
|
|
88
88
|
*
|
|
89
89
|
* Default value: `false`
|
|
90
90
|
*/
|
|
@@ -217,8 +217,7 @@ export declare class QuestionMatrixDynamicModel extends QuestionMatrixDropdownMo
|
|
|
217
217
|
* - `"bottom"` - Displays the Add Row button at the bottom of the matrix.
|
|
218
218
|
* - `"topBottom"` - Displays the Add Row button at the top and bottom of the matrix.
|
|
219
219
|
*
|
|
220
|
-
* Default value: `"top"` if `
|
|
221
|
-
* @see columnLayout
|
|
220
|
+
* Default value: `"top"` if [`transposeData`](#transposeData) is `true`; `"bottom"` if `transposeData` is `false` or the matrix is in compact mode.
|
|
222
221
|
* @see addRowText
|
|
223
222
|
*/
|
|
224
223
|
get addRowLocation(): string;
|
|
@@ -612,7 +612,7 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
|
612
612
|
getPrevButtonCss(): string;
|
|
613
613
|
getNextButtonCss(): string;
|
|
614
614
|
/**
|
|
615
|
-
* A text displayed when Dynamic Panel contains no entries.
|
|
615
|
+
* A text displayed when Dynamic Panel contains no entries.
|
|
616
616
|
*/
|
|
617
617
|
get noEntriesText(): string;
|
|
618
618
|
set noEntriesText(val: string);
|
package/typings/settings.d.ts
CHANGED
|
@@ -339,27 +339,43 @@ export declare var settings: {
|
|
|
339
339
|
*/
|
|
340
340
|
tagboxCloseOnSelect: boolean;
|
|
341
341
|
/**
|
|
342
|
-
* A
|
|
342
|
+
* A function that activates a browser confirm dialog.
|
|
343
343
|
*
|
|
344
|
-
*
|
|
344
|
+
* Use the following code to execute this function:
|
|
345
|
+
*
|
|
346
|
+
* ```js
|
|
347
|
+
* import { settings } from "survey-core";
|
|
348
|
+
*
|
|
349
|
+
* // `result` contains `true` if the action was confirmed or `false` otherwise
|
|
350
|
+
* const result = settings.confirmActionFunc("Are you sure?");
|
|
351
|
+
* ```
|
|
352
|
+
*
|
|
353
|
+
* You can redefine the `confirmActionFunc` function if you want to display a custom dialog window. Your function should return `true` if a user confirms an action or `false` otherwise.
|
|
345
354
|
* @param message A message to be displayed in the confirm dialog window.
|
|
346
355
|
*/
|
|
347
356
|
confirmActionFunc: (message: string) => boolean;
|
|
348
357
|
/**
|
|
349
|
-
* A
|
|
358
|
+
* A function that activates a proprietary SurveyJS confirm dialog.
|
|
350
359
|
*
|
|
351
|
-
*
|
|
352
|
-
*
|
|
353
|
-
* To activate the standard browser dialog, set the `confirmActionAsync` property to a function that returns `false`. With this configuration, a survey falls back to the [`confirmActionFunc`](#confirmActionFunc) function, which renders the standard browser dialog by default.
|
|
360
|
+
* Use the following code to execute this function:
|
|
354
361
|
*
|
|
355
362
|
* ```js
|
|
356
363
|
* import { settings } from "survey-core";
|
|
357
364
|
*
|
|
358
|
-
*
|
|
359
|
-
*
|
|
360
|
-
*
|
|
361
|
-
*
|
|
365
|
+
* settings.confirmActionAsync("Are you sure?", (confirmed) => {
|
|
366
|
+
* if (confirmed) {
|
|
367
|
+
* // ...
|
|
368
|
+
* // Proceed with the action
|
|
369
|
+
* // ...
|
|
370
|
+
* } else {
|
|
371
|
+
* // ...
|
|
372
|
+
* // Cancel the action
|
|
373
|
+
* // ...
|
|
374
|
+
* }
|
|
375
|
+
* });
|
|
362
376
|
* ```
|
|
377
|
+
*
|
|
378
|
+
* You can redefine the `confirmActionAsync` function if you want to display a custom dialog window. Your function should return `true` to be enabled; otherwise, a survey executes the [`confirmActionFunc`](#confirmActionFunc) function. Pass the dialog result as the `callback` parameter: `true` if a user confirms an action, `false` otherwise.
|
|
363
379
|
* @param message A message to be displayed in the confirm dialog window.
|
|
364
380
|
* @param callback A callback function that should be called with `true` if a user confirms an action or `false` otherwise.
|
|
365
381
|
*/
|
package/typings/survey.d.ts
CHANGED
|
@@ -1222,6 +1222,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
1222
1222
|
get isLogoBefore(): boolean;
|
|
1223
1223
|
get isLogoAfter(): boolean;
|
|
1224
1224
|
get logoClassNames(): string;
|
|
1225
|
+
private titleIsEmpty;
|
|
1225
1226
|
get renderedHasTitle(): boolean;
|
|
1226
1227
|
get renderedHasDescription(): boolean;
|
|
1227
1228
|
get hasTitle(): boolean;
|