survey-core 1.9.114 → 1.9.115
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 +113 -24
- package/defaultV2.css.map +1 -1
- package/defaultV2.fontless.css +113 -24
- 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 +3 -1
- 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 +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 +1 -1
- package/modern.fontless.css +1 -1
- package/modern.fontless.min.css +1 -1
- package/modern.min.css +1 -1
- 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 +321 -109
- package/survey.core.js.map +1 -1
- package/survey.core.min.js +3 -3
- package/survey.css +1 -1
- package/survey.i18n.js +1 -1
- package/survey.i18n.min.js +1 -1
- package/survey.min.css +1 -1
- package/themes/borderless-dark-panelless.js +1 -1
- package/themes/borderless-dark-panelless.min.js +1 -1
- package/themes/borderless-dark.js +1 -1
- package/themes/borderless-dark.min.js +1 -1
- package/themes/borderless-light-panelless..js +1 -1
- package/themes/borderless-light-panelless..min.js +1 -1
- package/themes/borderless-light.js +1 -1
- package/themes/borderless-light.min.js +1 -1
- package/themes/contrast-dark-panelless.js +1 -1
- package/themes/contrast-dark-panelless.min.js +1 -1
- package/themes/contrast-dark.js +1 -1
- package/themes/contrast-dark.min.js +1 -1
- package/themes/contrast-light-panelless.js +1 -1
- package/themes/contrast-light-panelless.min.js +1 -1
- package/themes/contrast-light.js +1 -1
- package/themes/contrast-light.min.js +1 -1
- package/themes/default-dark-panelless.js +1 -1
- package/themes/default-dark-panelless.min.js +1 -1
- package/themes/default-dark.js +1 -1
- package/themes/default-dark.min.js +1 -1
- package/themes/default-light-panelless.js +1 -1
- package/themes/default-light-panelless.min.js +1 -1
- package/themes/default-light.js +1 -1
- package/themes/default-light.min.js +1 -1
- package/themes/doubleborder-dark-panelless.js +1 -1
- package/themes/doubleborder-dark-panelless.min.js +1 -1
- package/themes/doubleborder-dark.js +1 -1
- package/themes/doubleborder-dark.min.js +1 -1
- package/themes/doubleborder-light-panelles.js +1 -1
- package/themes/doubleborder-light-panelles.min.js +1 -1
- package/themes/doubleborder-light.js +1 -1
- package/themes/doubleborder-light.min.js +1 -1
- package/themes/flat-dark-panelless.js +1 -1
- package/themes/flat-dark-panelless.min.js +1 -1
- package/themes/flat-dark.js +1 -1
- package/themes/flat-dark.min.js +1 -1
- package/themes/flat-light-panelless.js +1 -1
- package/themes/flat-light-panelless.min.js +1 -1
- package/themes/flat-light.js +1 -1
- package/themes/flat-light.min.js +1 -1
- package/themes/index.js +1 -1
- package/themes/index.min.js +1 -1
- package/themes/layered-dark-panelless.js +1 -1
- package/themes/layered-dark-panelless.min.js +1 -1
- package/themes/layered-dark.js +1 -1
- package/themes/layered-dark.min.js +1 -1
- package/themes/layered-light-panelless.js +1 -1
- package/themes/layered-light-panelless.min.js +1 -1
- package/themes/layered-light.js +1 -1
- package/themes/layered-light.min.js +1 -1
- package/themes/plain-dark-panelless.js +1 -1
- package/themes/plain-dark-panelless.min.js +1 -1
- package/themes/plain-dark.js +1 -1
- package/themes/plain-dark.min.js +1 -1
- package/themes/plain-light-panelless.js +1 -1
- package/themes/plain-light-panelless.min.js +1 -1
- package/themes/plain-light.js +1 -1
- package/themes/plain-light.min.js +1 -1
- package/themes/sharp-dark-panelless.js +1 -1
- package/themes/sharp-dark-panelless.min.js +1 -1
- package/themes/sharp-dark.js +1 -1
- package/themes/sharp-dark.min.js +1 -1
- package/themes/sharp-light-panelless.js +1 -1
- package/themes/sharp-light-panelless.min.js +1 -1
- package/themes/sharp-light.js +1 -1
- package/themes/sharp-light.min.js +1 -1
- package/themes/solid-dark-panelless.js +1 -1
- package/themes/solid-dark-panelless.min.js +1 -1
- package/themes/solid-dark.js +1 -1
- package/themes/solid-dark.min.js +1 -1
- package/themes/solid-light-panelless.js +1 -1
- package/themes/solid-light-panelless.min.js +1 -1
- package/themes/solid-light.js +1 -1
- package/themes/solid-light.min.js +1 -1
- package/themes/three-dimensional-dark-panelless.js +1 -1
- package/themes/three-dimensional-dark-panelless.min.js +1 -1
- package/themes/three-dimensional-dark.js +1 -1
- package/themes/three-dimensional-dark.min.js +1 -1
- package/themes/three-dimensional-light-panelless.js +1 -1
- package/themes/three-dimensional-light-panelless.min.js +1 -1
- package/themes/three-dimensional-light.js +1 -1
- package/themes/three-dimensional-light.min.js +1 -1
- package/ts3.4/typings/actions/action.d.ts +2 -0
- package/ts3.4/typings/defaultCss/defaultV2Css.d.ts +15 -0
- package/ts3.4/typings/dragdrop/dom-adapter.d.ts +3 -0
- package/ts3.4/typings/expressions/expressions.d.ts +3 -0
- package/ts3.4/typings/jsonobject.d.ts +6 -1
- package/ts3.4/typings/localization/english.d.ts +2 -0
- package/ts3.4/typings/question.d.ts +4 -1
- package/ts3.4/typings/question_comment.d.ts +1 -0
- package/ts3.4/typings/question_custom.d.ts +2 -0
- package/ts3.4/typings/question_file.d.ts +2 -1
- package/ts3.4/typings/question_matrixdropdownrendered.d.ts +2 -0
- package/ts3.4/typings/question_multipletext.d.ts +4 -0
- package/ts3.4/typings/question_ranking.d.ts +2 -0
- package/ts3.4/typings/question_signaturepad.d.ts +1 -0
- package/ts3.4/typings/question_text.d.ts +2 -0
- package/ts3.4/typings/question_textbase.d.ts +2 -0
- package/ts3.4/typings/questionnonvalue.d.ts +2 -0
- package/ts3.4/typings/surveyStrings.d.ts +2 -0
- package/ts3.4/typings/utils/camera.d.ts +9 -2
- package/typings/actions/action.d.ts +2 -0
- package/typings/defaultCss/defaultV2Css.d.ts +15 -0
- package/typings/dragdrop/dom-adapter.d.ts +3 -0
- package/typings/expressions/expressions.d.ts +3 -0
- package/typings/jsonobject.d.ts +6 -1
- package/typings/localization/english.d.ts +2 -0
- package/typings/question.d.ts +4 -1
- package/typings/question_comment.d.ts +1 -0
- package/typings/question_custom.d.ts +2 -0
- package/typings/question_file.d.ts +2 -1
- package/typings/question_matrixdropdownrendered.d.ts +2 -0
- package/typings/question_multipletext.d.ts +5 -0
- package/typings/question_ranking.d.ts +2 -0
- package/typings/question_signaturepad.d.ts +1 -0
- package/typings/question_text.d.ts +2 -0
- package/typings/question_textbase.d.ts +2 -0
- package/typings/questionnonvalue.d.ts +2 -0
- package/typings/surveyStrings.d.ts +2 -0
- package/typings/utils/camera.d.ts +9 -2
package/themes/solid-light.js
CHANGED
|
@@ -44,6 +44,7 @@ export interface IAction {
|
|
|
44
44
|
* @see visible
|
|
45
45
|
*/
|
|
46
46
|
enabled?: boolean;
|
|
47
|
+
enabledIf?: () => boolean;
|
|
47
48
|
/**
|
|
48
49
|
* Specifies the visibility of the action item's title.
|
|
49
50
|
* @see title
|
|
@@ -237,6 +238,7 @@ export declare class Action extends BaseAction implements IAction, ILocalizableO
|
|
|
237
238
|
getRendererContext(locStr: LocalizableString): any;
|
|
238
239
|
setVisible(val: boolean): void;
|
|
239
240
|
getVisible(): boolean;
|
|
241
|
+
enabledIf?: () => boolean;
|
|
240
242
|
setEnabled(val: boolean): void;
|
|
241
243
|
getEnabled(): boolean;
|
|
242
244
|
setComponent(val: string): void;
|
|
@@ -303,6 +303,7 @@ export declare var defaultV2Css: {
|
|
|
303
303
|
root: string;
|
|
304
304
|
small: string;
|
|
305
305
|
controlDisabled: string;
|
|
306
|
+
constrolWithCharacterCounter: string;
|
|
306
307
|
content: string;
|
|
307
308
|
remainingCharacterCounter: string;
|
|
308
309
|
onError: string;
|
|
@@ -314,6 +315,7 @@ export declare var defaultV2Css: {
|
|
|
314
315
|
itemLabelOnError: string;
|
|
315
316
|
itemLabelAllowFocus: string;
|
|
316
317
|
itemLabelAnswered: string;
|
|
318
|
+
itemWithCharacterCounter: string;
|
|
317
319
|
item: string;
|
|
318
320
|
itemTitle: string;
|
|
319
321
|
content: string;
|
|
@@ -411,6 +413,7 @@ export declare var defaultV2Css: {
|
|
|
411
413
|
rootScroll: string;
|
|
412
414
|
root: string;
|
|
413
415
|
noHeader: string;
|
|
416
|
+
hasFooter: string;
|
|
414
417
|
rootVerticalAlignTop: string;
|
|
415
418
|
rootVerticalAlignMiddle: string;
|
|
416
419
|
tableWrapper: string;
|
|
@@ -421,6 +424,9 @@ export declare var defaultV2Css: {
|
|
|
421
424
|
errorsCellBottom: string;
|
|
422
425
|
itemCell: string;
|
|
423
426
|
row: string;
|
|
427
|
+
expandedRow: string;
|
|
428
|
+
rowHasPanel: string;
|
|
429
|
+
rowHasEndActions: string;
|
|
424
430
|
headerCell: string;
|
|
425
431
|
rowTextCell: string;
|
|
426
432
|
columnTitleCell: string;
|
|
@@ -432,6 +438,8 @@ export declare var defaultV2Css: {
|
|
|
432
438
|
detailIconId: string;
|
|
433
439
|
detailIconExpandedId: string;
|
|
434
440
|
detailPanelCell: string;
|
|
441
|
+
detailRowCell: string;
|
|
442
|
+
actionsCellPrefix: string;
|
|
435
443
|
actionsCell: string;
|
|
436
444
|
actionsCellDrag: string;
|
|
437
445
|
emptyCell: string;
|
|
@@ -445,10 +453,14 @@ export declare var defaultV2Css: {
|
|
|
445
453
|
empty: string;
|
|
446
454
|
root: string;
|
|
447
455
|
noHeader: string;
|
|
456
|
+
hasFooter: string;
|
|
448
457
|
tableWrapper: string;
|
|
449
458
|
content: string;
|
|
450
459
|
cell: string;
|
|
451
460
|
row: string;
|
|
461
|
+
rowHasPanel: string;
|
|
462
|
+
rowHasEndActions: string;
|
|
463
|
+
expandedRow: string;
|
|
452
464
|
itemCell: string;
|
|
453
465
|
headerCell: string;
|
|
454
466
|
rowTextCell: string;
|
|
@@ -463,6 +475,8 @@ export declare var defaultV2Css: {
|
|
|
463
475
|
detailIconId: string;
|
|
464
476
|
detailIconExpandedId: string;
|
|
465
477
|
detailPanelCell: string;
|
|
478
|
+
detailRowCell: string;
|
|
479
|
+
actionsCellPrefix: string;
|
|
466
480
|
actionsCell: string;
|
|
467
481
|
actionsCellDrag: string;
|
|
468
482
|
buttonAdd: string;
|
|
@@ -572,6 +586,7 @@ export declare var defaultV2Css: {
|
|
|
572
586
|
removeFileButton: string;
|
|
573
587
|
dragAreaPlaceholder: string;
|
|
574
588
|
imageWrapper: string;
|
|
589
|
+
imageWrapperDefaultImage: string;
|
|
575
590
|
single: string;
|
|
576
591
|
singleImage: string;
|
|
577
592
|
mobile: string;
|
|
@@ -15,6 +15,7 @@ export declare class DragDropDOMAdapter implements IDragDropDOMAdapter {
|
|
|
15
15
|
private currentY;
|
|
16
16
|
private savedTargetNode;
|
|
17
17
|
private savedTargetNodeParent;
|
|
18
|
+
private savedTargetNodeIndex;
|
|
18
19
|
private scrollIntervalId;
|
|
19
20
|
constructor(dd: IDragDropEngine, longTap?: boolean);
|
|
20
21
|
private readonly rootElement: any;
|
|
@@ -37,4 +38,6 @@ export declare class DragDropDOMAdapter implements IDragDropDOMAdapter {
|
|
|
37
38
|
draggedElementShortcut: any;
|
|
38
39
|
rootContainer: HTMLElement;
|
|
39
40
|
startDrag(event: PointerEvent, draggedElement: any, parentElement?: any, draggedElementNode?: HTMLElement, preventSaveTargetNode?: boolean): void;
|
|
41
|
+
private getNodeIndexInParent;
|
|
42
|
+
private insertNodeToParentAtIndex;
|
|
40
43
|
}
|
|
@@ -47,6 +47,9 @@ export declare class UnaryOperand extends Operand {
|
|
|
47
47
|
getType(): string;
|
|
48
48
|
toString(func?: (op: Operand) => string): string;
|
|
49
49
|
protected isContentEqual(op: Operand): boolean;
|
|
50
|
+
hasFunction(): boolean;
|
|
51
|
+
hasAsyncFunction(): boolean;
|
|
52
|
+
addToAsyncList(list: Array<FunctionOperand>): void;
|
|
50
53
|
evaluate(processValue?: ProcessValue): boolean;
|
|
51
54
|
setVariables(variables: Array<string>): void;
|
|
52
55
|
}
|
|
@@ -241,6 +241,11 @@ export declare class JsonRequiredPropertyError extends JsonError {
|
|
|
241
241
|
className: string;
|
|
242
242
|
constructor(propertyName: string, className: string);
|
|
243
243
|
}
|
|
244
|
+
export declare class JsonRequiredArrayPropertyError extends JsonError {
|
|
245
|
+
propertyName: string;
|
|
246
|
+
className: string;
|
|
247
|
+
constructor(propertyName: string, className: string);
|
|
248
|
+
}
|
|
244
249
|
export declare class JsonObject {
|
|
245
250
|
private static typePropertyName;
|
|
246
251
|
private static positionPropertyName;
|
|
@@ -256,7 +261,7 @@ export declare class JsonObject {
|
|
|
256
261
|
private addDynamicProperties;
|
|
257
262
|
private propertiesToJson;
|
|
258
263
|
valueToJson(obj: any, result: any, property: JsonObjectProperty, storeDefaults?: boolean): void;
|
|
259
|
-
valueToObj(value: any, obj: any, property: JsonObjectProperty): void;
|
|
264
|
+
valueToObj(value: any, obj: any, property: JsonObjectProperty, jsonObj?: any): void;
|
|
260
265
|
private removePos;
|
|
261
266
|
private removePosFromObj;
|
|
262
267
|
private isValueArray;
|
|
@@ -57,6 +57,7 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
57
57
|
valueFromDataCallback: (val: any) => any;
|
|
58
58
|
valueToDataCallback: (val: any) => any;
|
|
59
59
|
onUpdateCssClassesCallback: (css: any) => void;
|
|
60
|
+
setValueChangedDirectlyCallback: (val: boolean) => void;
|
|
60
61
|
onGetSurvey: () => ISurvey;
|
|
61
62
|
private locProcessedTitle;
|
|
62
63
|
private isReadyValue;
|
|
@@ -676,6 +677,7 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
676
677
|
protected isDefaultValueEmpty(): boolean;
|
|
677
678
|
protected getDefaultRunner(runner: ExpressionRunner, expression: string): ExpressionRunner;
|
|
678
679
|
protected setDefaultValue(): void;
|
|
680
|
+
private setDefaultValueCore;
|
|
679
681
|
protected isValueExpression(val: any): boolean;
|
|
680
682
|
protected setValueAndRunExpression(runner: ExpressionRunner, defaultValue: any, setFunc: (val: any) => void, values?: HashTable<any>, properties?: HashTable<any>): void;
|
|
681
683
|
protected convertFuncValuetoQuestionValue(val: any): any;
|
|
@@ -772,9 +774,10 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
772
774
|
protected setNewComment(newValue: string): void;
|
|
773
775
|
protected getValidName(name: string): string;
|
|
774
776
|
updateValueFromSurvey(newValue: any): void;
|
|
777
|
+
private updateValueFromSurveyCore;
|
|
775
778
|
updateCommentFromSurvey(newValue: any): any;
|
|
776
779
|
protected onChangeQuestionValue(newValue: any): void;
|
|
777
|
-
protected setValueChangedDirectly(): void;
|
|
780
|
+
protected setValueChangedDirectly(val: boolean): void;
|
|
778
781
|
protected setQuestionValue(newValue: any, updateIsAnswered?: boolean): void;
|
|
779
782
|
onSurveyValueChanged(newValue: any): void;
|
|
780
783
|
setVisibleIndex(val: number): number;
|
|
@@ -33,6 +33,7 @@ export declare class QuestionCommentModel extends QuestionTextBase {
|
|
|
33
33
|
* @see autoGrow
|
|
34
34
|
*/
|
|
35
35
|
allowResize: boolean;
|
|
36
|
+
readonly renderedAllowResize: boolean;
|
|
36
37
|
readonly resizeStyle: "none" | "both";
|
|
37
38
|
getType(): string;
|
|
38
39
|
afterRenderQuestionElement(el: HTMLElement): void;
|
|
@@ -299,6 +299,8 @@ export declare class QuestionCustomModel extends QuestionCustomModelBase {
|
|
|
299
299
|
protected setQuestionValue(newValue: any, updateIsAnswered?: boolean): void;
|
|
300
300
|
onSurveyValueChanged(newValue: any): void;
|
|
301
301
|
protected getValueCore(): any;
|
|
302
|
+
private isSettingValueChanged;
|
|
303
|
+
protected setValueChangedDirectly(val: boolean): void;
|
|
302
304
|
protected initElement(el: SurveyElement): void;
|
|
303
305
|
updateElementCss(reNew?: boolean): void;
|
|
304
306
|
protected updateElementCssCore(cssClasses: any): void;
|
|
@@ -170,7 +170,7 @@ export declare class QuestionFileModel extends Question {
|
|
|
170
170
|
readonly isPlayingVideo: boolean;
|
|
171
171
|
private setIsPlayingVideo;
|
|
172
172
|
private updateCurrentMode;
|
|
173
|
-
private
|
|
173
|
+
private updateActionsVisibility;
|
|
174
174
|
readonly inputTitle: string;
|
|
175
175
|
readonly chooseButtonText: string;
|
|
176
176
|
clear(doneCallback?: () => void): void;
|
|
@@ -207,6 +207,7 @@ export declare class QuestionFileModel extends Question {
|
|
|
207
207
|
private allFilesOk;
|
|
208
208
|
private isFileImage;
|
|
209
209
|
getPlainData(options?: IPlainDataOptions): IQuestionPlainData;
|
|
210
|
+
getImageWrapperCss(data: any): string;
|
|
210
211
|
protected getActionsContainerCss(css: any): string;
|
|
211
212
|
getRemoveButtonCss(): string;
|
|
212
213
|
getChooseFileCss(): string;
|
|
@@ -29,6 +29,7 @@ export declare class QuestionMatrixDropdownRenderedCell {
|
|
|
29
29
|
isActionsCell: boolean;
|
|
30
30
|
isErrorsCell: boolean;
|
|
31
31
|
isDragHandlerCell: boolean;
|
|
32
|
+
isDetailRowCell: boolean;
|
|
32
33
|
private classNameValue;
|
|
33
34
|
constructor();
|
|
34
35
|
readonly hasQuestion: boolean;
|
|
@@ -54,6 +55,7 @@ export declare class QuestionMatrixDropdownRenderedRow extends Base {
|
|
|
54
55
|
isGhostRow: boolean;
|
|
55
56
|
isAdditionalClasses: boolean;
|
|
56
57
|
visible: boolean;
|
|
58
|
+
hasEndActions: boolean;
|
|
57
59
|
row: MatrixDropdownRowModelBase;
|
|
58
60
|
isErrorsRow: boolean;
|
|
59
61
|
private static counter;
|
|
@@ -83,6 +83,10 @@ export declare class MultipleTextItemModel extends Base implements IValidatorOwn
|
|
|
83
83
|
*/
|
|
84
84
|
size: number;
|
|
85
85
|
/*
|
|
86
|
+
* An expression used to calculate the [defaultValue](https://surveyjs.io/form-library/documentation/question#defaultValue).
|
|
87
|
+
*/
|
|
88
|
+
defaultValueExpression: string;
|
|
89
|
+
/*
|
|
86
90
|
* The minimum value specified as an expression. For example, `"minValueExpression": "today(-1)"` sets the minimum value to yesterday.
|
|
87
91
|
*/
|
|
88
92
|
minValueExpression: string;
|
|
@@ -84,6 +84,8 @@ export declare class QuestionRankingModel extends QuestionCheckboxModel {
|
|
|
84
84
|
* @see selectToRankAreasLayout
|
|
85
85
|
*/
|
|
86
86
|
selectToRankAreasLayout: string;
|
|
87
|
+
readonly renderedSelectToRankAreasLayout: string;
|
|
88
|
+
isMobileMode(): boolean;
|
|
87
89
|
selectToRankEmptyRankedAreaText: string;
|
|
88
90
|
selectToRankEmptyUnrankedAreaText: string;
|
|
89
91
|
useFullItemSizeForShortcut: boolean;
|
|
@@ -2,6 +2,7 @@ import { LocalizableString, LocalizableStrings } from "./localizablestring";
|
|
|
2
2
|
import { HashTable } from "./helpers";
|
|
3
3
|
import { SurveyError } from "./survey-error";
|
|
4
4
|
import { QuestionTextBase } from "./question_textbase";
|
|
5
|
+
import { CssClassBuilder } from "./utils/cssClassBuilder";
|
|
5
6
|
/**
|
|
6
7
|
* A class that describes the Single-Line Input question type.
|
|
7
8
|
*
|
|
@@ -104,6 +105,7 @@ export declare class QuestionTextModel extends QuestionTextBase {
|
|
|
104
105
|
protected setNewValue(newValue: any): void;
|
|
105
106
|
protected correctValueType(newValue: any): any;
|
|
106
107
|
protected hasPlaceholder(): boolean;
|
|
108
|
+
protected getControlCssClassBuilder(): CssClassBuilder;
|
|
107
109
|
isReadOnlyRenderDiv(): boolean;
|
|
108
110
|
readonly inputStyle: any;
|
|
109
111
|
private _isWaitingForEnter;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Question } from "./question";
|
|
2
|
+
import { CssClassBuilder } from "./utils/cssClassBuilder";
|
|
2
3
|
import { LocalizableString } from "./localizablestring";
|
|
3
4
|
import { Base } from "./base";
|
|
4
5
|
import { ISurveyImpl } from "./base-interfaces";
|
|
@@ -56,6 +57,7 @@ export declare class QuestionTextBase extends Question {
|
|
|
56
57
|
protected getValueSeparator(): string;
|
|
57
58
|
disableNativeUndoRedo: boolean;
|
|
58
59
|
protected checkForUndo(event: KeyboardEvent): void;
|
|
60
|
+
protected getControlCssClassBuilder(): CssClassBuilder;
|
|
59
61
|
getControlClass(): string;
|
|
60
62
|
readonly isNewA11yStructure: boolean;
|
|
61
63
|
}
|
|
@@ -17,4 +17,6 @@ export declare class QuestionNonValue extends Question {
|
|
|
17
17
|
supportGoNextPageAutomatic(): boolean;
|
|
18
18
|
addConditionObjectsByContext(objects: Array<IConditionObject>, context: any): void;
|
|
19
19
|
getConditionJson(operator?: string, path?: string): any;
|
|
20
|
+
readonly ariaRole: string;
|
|
21
|
+
readonly ariaRequired: any;
|
|
20
22
|
}
|
|
@@ -7,8 +7,15 @@ export declare class Camera {
|
|
|
7
7
|
private static cameraFacingMode;
|
|
8
8
|
private static canSwitchFacingMode;
|
|
9
9
|
hasCamera(callback: (res: boolean) => void): void;
|
|
10
|
-
getMediaConstraints(
|
|
11
|
-
|
|
10
|
+
getMediaConstraints(videoSize?: {
|
|
11
|
+
width?: number;
|
|
12
|
+
height?: number;
|
|
13
|
+
}): MediaStreamConstraints;
|
|
14
|
+
startVideo(videoElementId: string, callback: (stream: MediaStream) => void, imageWidth?: number, imageHeight?: number): void;
|
|
15
|
+
getImageSize(videoEl: HTMLVideoElement): {
|
|
16
|
+
width: number;
|
|
17
|
+
height: number;
|
|
18
|
+
};
|
|
12
19
|
snap(videoElementId: string, callback: BlobCallback): boolean;
|
|
13
20
|
private canFlipValue;
|
|
14
21
|
private updateCanFlipValue;
|
|
@@ -44,6 +44,7 @@ export interface IAction {
|
|
|
44
44
|
* @see visible
|
|
45
45
|
*/
|
|
46
46
|
enabled?: boolean;
|
|
47
|
+
enabledIf?: () => boolean;
|
|
47
48
|
/**
|
|
48
49
|
* Specifies the visibility of the action item's title.
|
|
49
50
|
* @see title
|
|
@@ -244,6 +245,7 @@ export declare class Action extends BaseAction implements IAction, ILocalizableO
|
|
|
244
245
|
getRendererContext(locStr: LocalizableString): any;
|
|
245
246
|
setVisible(val: boolean): void;
|
|
246
247
|
getVisible(): boolean;
|
|
248
|
+
enabledIf?: () => boolean;
|
|
247
249
|
setEnabled(val: boolean): void;
|
|
248
250
|
getEnabled(): boolean;
|
|
249
251
|
setComponent(val: string): void;
|
|
@@ -303,6 +303,7 @@ export declare var defaultV2Css: {
|
|
|
303
303
|
root: string;
|
|
304
304
|
small: string;
|
|
305
305
|
controlDisabled: string;
|
|
306
|
+
constrolWithCharacterCounter: string;
|
|
306
307
|
content: string;
|
|
307
308
|
remainingCharacterCounter: string;
|
|
308
309
|
onError: string;
|
|
@@ -314,6 +315,7 @@ export declare var defaultV2Css: {
|
|
|
314
315
|
itemLabelOnError: string;
|
|
315
316
|
itemLabelAllowFocus: string;
|
|
316
317
|
itemLabelAnswered: string;
|
|
318
|
+
itemWithCharacterCounter: string;
|
|
317
319
|
item: string;
|
|
318
320
|
itemTitle: string;
|
|
319
321
|
content: string;
|
|
@@ -411,6 +413,7 @@ export declare var defaultV2Css: {
|
|
|
411
413
|
rootScroll: string;
|
|
412
414
|
root: string;
|
|
413
415
|
noHeader: string;
|
|
416
|
+
hasFooter: string;
|
|
414
417
|
rootVerticalAlignTop: string;
|
|
415
418
|
rootVerticalAlignMiddle: string;
|
|
416
419
|
tableWrapper: string;
|
|
@@ -421,6 +424,9 @@ export declare var defaultV2Css: {
|
|
|
421
424
|
errorsCellBottom: string;
|
|
422
425
|
itemCell: string;
|
|
423
426
|
row: string;
|
|
427
|
+
expandedRow: string;
|
|
428
|
+
rowHasPanel: string;
|
|
429
|
+
rowHasEndActions: string;
|
|
424
430
|
headerCell: string;
|
|
425
431
|
rowTextCell: string;
|
|
426
432
|
columnTitleCell: string;
|
|
@@ -432,6 +438,8 @@ export declare var defaultV2Css: {
|
|
|
432
438
|
detailIconId: string;
|
|
433
439
|
detailIconExpandedId: string;
|
|
434
440
|
detailPanelCell: string;
|
|
441
|
+
detailRowCell: string;
|
|
442
|
+
actionsCellPrefix: string;
|
|
435
443
|
actionsCell: string;
|
|
436
444
|
actionsCellDrag: string;
|
|
437
445
|
emptyCell: string;
|
|
@@ -445,10 +453,14 @@ export declare var defaultV2Css: {
|
|
|
445
453
|
empty: string;
|
|
446
454
|
root: string;
|
|
447
455
|
noHeader: string;
|
|
456
|
+
hasFooter: string;
|
|
448
457
|
tableWrapper: string;
|
|
449
458
|
content: string;
|
|
450
459
|
cell: string;
|
|
451
460
|
row: string;
|
|
461
|
+
rowHasPanel: string;
|
|
462
|
+
rowHasEndActions: string;
|
|
463
|
+
expandedRow: string;
|
|
452
464
|
itemCell: string;
|
|
453
465
|
headerCell: string;
|
|
454
466
|
rowTextCell: string;
|
|
@@ -463,6 +475,8 @@ export declare var defaultV2Css: {
|
|
|
463
475
|
detailIconId: string;
|
|
464
476
|
detailIconExpandedId: string;
|
|
465
477
|
detailPanelCell: string;
|
|
478
|
+
detailRowCell: string;
|
|
479
|
+
actionsCellPrefix: string;
|
|
466
480
|
actionsCell: string;
|
|
467
481
|
actionsCellDrag: string;
|
|
468
482
|
buttonAdd: string;
|
|
@@ -572,6 +586,7 @@ export declare var defaultV2Css: {
|
|
|
572
586
|
removeFileButton: string;
|
|
573
587
|
dragAreaPlaceholder: string;
|
|
574
588
|
imageWrapper: string;
|
|
589
|
+
imageWrapperDefaultImage: string;
|
|
575
590
|
single: string;
|
|
576
591
|
singleImage: string;
|
|
577
592
|
mobile: string;
|
|
@@ -15,6 +15,7 @@ export declare class DragDropDOMAdapter implements IDragDropDOMAdapter {
|
|
|
15
15
|
private currentY;
|
|
16
16
|
private savedTargetNode;
|
|
17
17
|
private savedTargetNodeParent;
|
|
18
|
+
private savedTargetNodeIndex;
|
|
18
19
|
private scrollIntervalId;
|
|
19
20
|
constructor(dd: IDragDropEngine, longTap?: boolean);
|
|
20
21
|
private get rootElement();
|
|
@@ -37,4 +38,6 @@ export declare class DragDropDOMAdapter implements IDragDropDOMAdapter {
|
|
|
37
38
|
draggedElementShortcut: any;
|
|
38
39
|
rootContainer: HTMLElement;
|
|
39
40
|
startDrag(event: PointerEvent, draggedElement: any, parentElement?: any, draggedElementNode?: HTMLElement, preventSaveTargetNode?: boolean): void;
|
|
41
|
+
private getNodeIndexInParent;
|
|
42
|
+
private insertNodeToParentAtIndex;
|
|
40
43
|
}
|
|
@@ -47,6 +47,9 @@ export declare class UnaryOperand extends Operand {
|
|
|
47
47
|
getType(): string;
|
|
48
48
|
toString(func?: (op: Operand) => string): string;
|
|
49
49
|
protected isContentEqual(op: Operand): boolean;
|
|
50
|
+
hasFunction(): boolean;
|
|
51
|
+
hasAsyncFunction(): boolean;
|
|
52
|
+
addToAsyncList(list: Array<FunctionOperand>): void;
|
|
50
53
|
evaluate(processValue?: ProcessValue): boolean;
|
|
51
54
|
setVariables(variables: Array<string>): void;
|
|
52
55
|
}
|
package/typings/jsonobject.d.ts
CHANGED
|
@@ -250,6 +250,11 @@ export declare class JsonRequiredPropertyError extends JsonError {
|
|
|
250
250
|
className: string;
|
|
251
251
|
constructor(propertyName: string, className: string);
|
|
252
252
|
}
|
|
253
|
+
export declare class JsonRequiredArrayPropertyError extends JsonError {
|
|
254
|
+
propertyName: string;
|
|
255
|
+
className: string;
|
|
256
|
+
constructor(propertyName: string, className: string);
|
|
257
|
+
}
|
|
253
258
|
export declare class JsonObject {
|
|
254
259
|
private static typePropertyName;
|
|
255
260
|
private static positionPropertyName;
|
|
@@ -265,7 +270,7 @@ export declare class JsonObject {
|
|
|
265
270
|
private addDynamicProperties;
|
|
266
271
|
private propertiesToJson;
|
|
267
272
|
valueToJson(obj: any, result: any, property: JsonObjectProperty, storeDefaults?: boolean): void;
|
|
268
|
-
valueToObj(value: any, obj: any, property: JsonObjectProperty): void;
|
|
273
|
+
valueToObj(value: any, obj: any, property: JsonObjectProperty, jsonObj?: any): void;
|
|
269
274
|
private removePos;
|
|
270
275
|
private removePosFromObj;
|
|
271
276
|
private isValueArray;
|
package/typings/question.d.ts
CHANGED
|
@@ -57,6 +57,7 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
57
57
|
valueFromDataCallback: (val: any) => any;
|
|
58
58
|
valueToDataCallback: (val: any) => any;
|
|
59
59
|
onUpdateCssClassesCallback: (css: any) => void;
|
|
60
|
+
setValueChangedDirectlyCallback: (val: boolean) => void;
|
|
60
61
|
onGetSurvey: () => ISurvey;
|
|
61
62
|
private locProcessedTitle;
|
|
62
63
|
private isReadyValue;
|
|
@@ -708,6 +709,7 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
708
709
|
protected isDefaultValueEmpty(): boolean;
|
|
709
710
|
protected getDefaultRunner(runner: ExpressionRunner, expression: string): ExpressionRunner;
|
|
710
711
|
protected setDefaultValue(): void;
|
|
712
|
+
private setDefaultValueCore;
|
|
711
713
|
protected isValueExpression(val: any): boolean;
|
|
712
714
|
protected setValueAndRunExpression(runner: ExpressionRunner, defaultValue: any, setFunc: (val: any) => void, values?: HashTable<any>, properties?: HashTable<any>): void;
|
|
713
715
|
protected convertFuncValuetoQuestionValue(val: any): any;
|
|
@@ -807,9 +809,10 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
807
809
|
protected setNewComment(newValue: string): void;
|
|
808
810
|
protected getValidName(name: string): string;
|
|
809
811
|
updateValueFromSurvey(newValue: any): void;
|
|
812
|
+
private updateValueFromSurveyCore;
|
|
810
813
|
updateCommentFromSurvey(newValue: any): any;
|
|
811
814
|
protected onChangeQuestionValue(newValue: any): void;
|
|
812
|
-
protected setValueChangedDirectly(): void;
|
|
815
|
+
protected setValueChangedDirectly(val: boolean): void;
|
|
813
816
|
protected setQuestionValue(newValue: any, updateIsAnswered?: boolean): void;
|
|
814
817
|
onSurveyValueChanged(newValue: any): void;
|
|
815
818
|
setVisibleIndex(val: number): number;
|
|
@@ -38,6 +38,7 @@ export declare class QuestionCommentModel extends QuestionTextBase {
|
|
|
38
38
|
*/
|
|
39
39
|
get allowResize(): boolean;
|
|
40
40
|
set allowResize(val: boolean);
|
|
41
|
+
get renderedAllowResize(): boolean;
|
|
41
42
|
get resizeStyle(): "none" | "both";
|
|
42
43
|
getType(): string;
|
|
43
44
|
afterRenderQuestionElement(el: HTMLElement): void;
|
|
@@ -299,6 +299,8 @@ export declare class QuestionCustomModel extends QuestionCustomModelBase {
|
|
|
299
299
|
protected setQuestionValue(newValue: any, updateIsAnswered?: boolean): void;
|
|
300
300
|
onSurveyValueChanged(newValue: any): void;
|
|
301
301
|
protected getValueCore(): any;
|
|
302
|
+
private isSettingValueChanged;
|
|
303
|
+
protected setValueChangedDirectly(val: boolean): void;
|
|
302
304
|
protected initElement(el: SurveyElement): void;
|
|
303
305
|
updateElementCss(reNew?: boolean): void;
|
|
304
306
|
protected updateElementCssCore(cssClasses: any): void;
|
|
@@ -180,7 +180,7 @@ export declare class QuestionFileModel extends Question {
|
|
|
180
180
|
get isPlayingVideo(): boolean;
|
|
181
181
|
private setIsPlayingVideo;
|
|
182
182
|
private updateCurrentMode;
|
|
183
|
-
private
|
|
183
|
+
private updateActionsVisibility;
|
|
184
184
|
get inputTitle(): string;
|
|
185
185
|
get chooseButtonText(): string;
|
|
186
186
|
clear(doneCallback?: () => void): void;
|
|
@@ -218,6 +218,7 @@ export declare class QuestionFileModel extends Question {
|
|
|
218
218
|
private allFilesOk;
|
|
219
219
|
private isFileImage;
|
|
220
220
|
getPlainData(options?: IPlainDataOptions): IQuestionPlainData;
|
|
221
|
+
getImageWrapperCss(data: any): string;
|
|
221
222
|
protected getActionsContainerCss(css: any): string;
|
|
222
223
|
getRemoveButtonCss(): string;
|
|
223
224
|
getChooseFileCss(): string;
|