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
package/themes/flat-dark.js
CHANGED
package/themes/flat-dark.min.js
CHANGED
package/themes/flat-light.js
CHANGED
package/themes/flat-light.min.js
CHANGED
package/themes/index.js
CHANGED
package/themes/index.min.js
CHANGED
package/themes/layered-dark.js
CHANGED
package/themes/layered-light.js
CHANGED
package/themes/plain-dark.js
CHANGED
package/themes/plain-dark.min.js
CHANGED
package/themes/plain-light.js
CHANGED
package/themes/sharp-dark.js
CHANGED
package/themes/sharp-dark.min.js
CHANGED
package/themes/sharp-light.js
CHANGED
package/themes/solid-dark.js
CHANGED
package/themes/solid-dark.min.js
CHANGED
package/themes/solid-light.js
CHANGED
|
@@ -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 readonly rootElement: any;
|
|
22
23
|
private stopLongTapIfMoveEnough;
|
|
23
24
|
private readonly isMicroMovement: any;
|
|
@@ -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";
|
|
@@ -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;
|
|
@@ -117,6 +118,7 @@ export declare class JsonObjectProperty implements IObject {
|
|
|
117
118
|
visible: boolean;
|
|
118
119
|
isAvailableInVersion(ver: string): boolean;
|
|
119
120
|
getSerializedName(ver: string): string;
|
|
121
|
+
getSerializedProperty(obj: any, ver: string): JsonObjectProperty;
|
|
120
122
|
private isAvailableInVersionCore;
|
|
121
123
|
isLocalizable: boolean;
|
|
122
124
|
dataList: Array<string>;
|
|
@@ -183,6 +185,7 @@ export declare class JsonMetadata {
|
|
|
183
185
|
setObjPropertyValue(obj: any, name: string, val: any): void;
|
|
184
186
|
private getObjPropertyValueCore;
|
|
185
187
|
private isObjWrapper;
|
|
188
|
+
private isNeedUseObjWrapper;
|
|
186
189
|
addClass(name: string, properties: Array<any>, creator?: (json?: any) => any, parentName?: string): JsonMetadataClass;
|
|
187
190
|
removeClass(name: string): void;
|
|
188
191
|
overrideClassCreatore(name: string, creator: () => any): void;
|
|
@@ -285,6 +288,7 @@ export declare class JsonObject {
|
|
|
285
288
|
private addDynamicProperties;
|
|
286
289
|
private propertiesToJson;
|
|
287
290
|
valueToJson(obj: any, result: any, prop: JsonObjectProperty, options?: ISaveToJSONOptions): void;
|
|
291
|
+
private valueToJsonCore;
|
|
288
292
|
valueToObj(value: any, obj: any, property: JsonObjectProperty, jsonObj?: any, options?: ILoadFromJSONOptions): void;
|
|
289
293
|
private removePosOnValueToJson;
|
|
290
294
|
private removePos;
|
package/ts3.4/typings/panel.d.ts
CHANGED
|
@@ -276,6 +276,11 @@ export declare class PanelModelBase extends SurveyElement<Question> implements I
|
|
|
276
276
|
readonly rows: Array<QuestionRowModel>;
|
|
277
277
|
ensureRowsVisibility(): void;
|
|
278
278
|
protected onRowsChanged(): void;
|
|
279
|
+
private locCountRowUpdates;
|
|
280
|
+
private blockRowsUpdates;
|
|
281
|
+
private releaseRowsUpdates;
|
|
282
|
+
private updateRowsBeforeElementRemoved;
|
|
283
|
+
private updateRowsOnElementAdded;
|
|
279
284
|
protected onAddElement(element: IElement, index: number): void;
|
|
280
285
|
protected onRemoveElement(element: IElement): void;
|
|
281
286
|
private onElementVisibilityChanged;
|
|
@@ -340,6 +345,7 @@ export declare class PanelModelBase extends SurveyElement<Question> implements I
|
|
|
340
345
|
* @see addNewPanel
|
|
341
346
|
*/
|
|
342
347
|
addElement(element: IElement, index?: number): boolean;
|
|
348
|
+
insertElement(element: IElement, dest?: IElement, location?: "bottom" | "top" | "left" | "right"): void;
|
|
343
349
|
insertElementAfter(element: IElement, after: IElement): void;
|
|
344
350
|
insertElementBefore(element: IElement, before: IElement): void;
|
|
345
351
|
protected canAddElement(element: IElement): boolean;
|
|
@@ -362,7 +368,7 @@ export declare class PanelModelBase extends SurveyElement<Question> implements I
|
|
|
362
368
|
*
|
|
363
369
|
* This method returns `null` if the panel cannot be created or added to this panel/page; otherwise, the method returns the created panel.
|
|
364
370
|
* @param name A panel name.
|
|
365
|
-
* @see
|
|
371
|
+
* @see elementsup
|
|
366
372
|
* @see addElement
|
|
367
373
|
*/
|
|
368
374
|
addNewPanel(name?: string): PanelModel;
|
|
@@ -92,10 +92,9 @@ export declare class PopupSurveyModel extends Base {
|
|
|
92
92
|
*/
|
|
93
93
|
allowClose: boolean;
|
|
94
94
|
/*
|
|
95
|
-
* Specifies whether to display a button that
|
|
95
|
+
* Specifies whether to display a button that allows respondents to show the pop-up survey in full screen mode.
|
|
96
96
|
*
|
|
97
97
|
* Default value: `false`
|
|
98
|
-
*
|
|
99
98
|
*/
|
|
100
99
|
allowFullScreen: boolean;
|
|
101
100
|
readonly css: any;
|
|
@@ -42,6 +42,9 @@ export declare class QuestionBooleanModel extends Question {
|
|
|
42
42
|
labelTrue: string;
|
|
43
43
|
readonly locLabelTrue: LocalizableString;
|
|
44
44
|
readonly isDeterminated: boolean;
|
|
45
|
+
swapOrder: boolean;
|
|
46
|
+
readonly locLabelLeft: LocalizableString;
|
|
47
|
+
readonly locLabelRight: LocalizableString;
|
|
45
48
|
/*
|
|
46
49
|
* Gets or sets a text label that corresponds to a negative answer.
|
|
47
50
|
*
|
|
@@ -139,7 +139,7 @@ export declare class QuestionFileModel extends QuestionFileModelBase {
|
|
|
139
139
|
* Default value: 0 (unlimited)
|
|
140
140
|
*/
|
|
141
141
|
maxSize: number;
|
|
142
|
-
chooseFile(): void;
|
|
142
|
+
chooseFile(event: MouseEvent): void;
|
|
143
143
|
/*
|
|
144
144
|
* Specifies whether users should confirm file deletion.
|
|
145
145
|
*
|
|
@@ -228,7 +228,7 @@ export declare class QuestionFileModel extends QuestionFileModelBase {
|
|
|
228
228
|
protected onChangeQuestionValue(newValue: any): void;
|
|
229
229
|
protected calcCssClasses(css: any): any;
|
|
230
230
|
updateElementCss(reNew?: boolean): void;
|
|
231
|
-
|
|
231
|
+
onSurveyLoad(): void;
|
|
232
232
|
protected needResponsiveness(): boolean;
|
|
233
233
|
protected supportResponsiveness(): boolean;
|
|
234
234
|
protected getObservedElementSelector(): string;
|