survey-core 1.9.105 → 1.9.107
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 +363 -94
- package/defaultV2.css.map +1 -1
- package/defaultV2.fontless.css +363 -94
- package/defaultV2.fontless.css.map +1 -1
- package/defaultV2.fontless.min.css +2 -2
- package/defaultV2.min.css +2 -2
- package/modern.css +8 -1
- package/modern.css.map +1 -1
- package/modern.fontless.css +8 -1
- 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 +762 -325
- package/survey.core.js.map +1 -1
- package/survey.core.min.js +3 -3
- package/survey.css +1 -1
- package/survey.css.map +1 -1
- package/survey.i18n.js +3 -3
- package/survey.i18n.js.map +1 -1
- package/survey.i18n.min.js +2 -2
- 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 +1 -0
- package/ts3.4/typings/actions/adaptive-container.d.ts +1 -0
- package/ts3.4/typings/actions/container.d.ts +1 -0
- package/ts3.4/typings/base-interfaces.d.ts +6 -1
- package/ts3.4/typings/base.d.ts +3 -0
- package/ts3.4/typings/defaultCss/defaultV2Css.d.ts +6 -0
- package/ts3.4/typings/dragdrop/dom-adapter.d.ts +1 -0
- package/ts3.4/typings/dropdownListModel.d.ts +1 -0
- package/ts3.4/typings/dropdownMultiSelectListModel.d.ts +1 -0
- package/ts3.4/typings/entries/chunks/model.d.ts +1 -1
- package/ts3.4/typings/entries/core-wo-model.d.ts +0 -1
- package/ts3.4/typings/localizablestring.d.ts +6 -1
- package/ts3.4/typings/popup-dropdown-view-model.d.ts +4 -0
- package/ts3.4/typings/popup-survey.d.ts +0 -1
- package/ts3.4/typings/popup-view-model.d.ts +3 -0
- package/ts3.4/typings/popup.d.ts +3 -1
- package/ts3.4/typings/question.d.ts +4 -2
- package/ts3.4/typings/question_baseselect.d.ts +1 -2
- package/ts3.4/typings/question_checkbox.d.ts +3 -0
- package/ts3.4/typings/question_file.d.ts +7 -3
- package/ts3.4/typings/question_matrixdropdownbase.d.ts +4 -3
- package/ts3.4/typings/question_matrixdropdowncolumn.d.ts +4 -2
- package/ts3.4/typings/question_multipletext.d.ts +25 -3
- package/ts3.4/typings/question_ranking.d.ts +1 -0
- package/ts3.4/typings/question_tagbox.d.ts +3 -1
- package/ts3.4/typings/survey-element.d.ts +1 -4
- package/ts3.4/typings/survey-events-api.d.ts +16 -2
- package/ts3.4/typings/survey.d.ts +110 -55
- package/ts3.4/typings/utils/popup.d.ts +4 -1
- package/typings/actions/action.d.ts +1 -0
- package/typings/actions/adaptive-container.d.ts +1 -0
- package/typings/actions/container.d.ts +1 -0
- package/typings/base-interfaces.d.ts +6 -1
- package/typings/base.d.ts +3 -0
- package/typings/defaultCss/defaultV2Css.d.ts +6 -0
- package/typings/dragdrop/dom-adapter.d.ts +1 -0
- package/typings/dropdownListModel.d.ts +1 -0
- package/typings/dropdownMultiSelectListModel.d.ts +1 -0
- package/typings/entries/chunks/model.d.ts +1 -1
- package/typings/entries/core-wo-model.d.ts +0 -1
- package/typings/localizablestring.d.ts +8 -2
- package/typings/popup-dropdown-view-model.d.ts +4 -0
- package/typings/popup-survey.d.ts +0 -1
- package/typings/popup-view-model.d.ts +3 -0
- package/typings/popup.d.ts +3 -1
- package/typings/question.d.ts +4 -2
- package/typings/question_baseselect.d.ts +1 -2
- package/typings/question_checkbox.d.ts +3 -0
- package/typings/question_file.d.ts +7 -3
- package/typings/question_matrixdropdownbase.d.ts +4 -3
- package/typings/question_matrixdropdowncolumn.d.ts +5 -2
- package/typings/question_multipletext.d.ts +25 -3
- package/typings/question_ranking.d.ts +1 -0
- package/typings/question_tagbox.d.ts +3 -1
- package/typings/survey-element.d.ts +1 -4
- package/typings/survey-events-api.d.ts +16 -2
- package/typings/survey.d.ts +110 -55
- package/typings/utils/popup.d.ts +4 -1
- package/typings/utils/tooltip.d.ts +7 -7
|
@@ -241,6 +241,7 @@ export declare class Action extends BaseAction implements IAction, ILocalizableO
|
|
|
241
241
|
getEnabled(): boolean;
|
|
242
242
|
setComponent(val: string): void;
|
|
243
243
|
getComponent(): string;
|
|
244
|
+
dispose(): void;
|
|
244
245
|
}
|
|
245
246
|
export declare class ActionDropdownViewModel {
|
|
246
247
|
private item;
|
|
@@ -7,6 +7,7 @@ export declare class AdaptiveActionContainer<T extends Action = Action> extends
|
|
|
7
7
|
minVisibleItemsCount: number;
|
|
8
8
|
isResponsivenessDisabled: boolean;
|
|
9
9
|
private hideItemsGreaterN;
|
|
10
|
+
private getActionsToHide;
|
|
10
11
|
private getVisibleItemsCount;
|
|
11
12
|
private updateItemMode;
|
|
12
13
|
private static ContainerID;
|
|
@@ -28,6 +28,10 @@ export interface ITextProcessor {
|
|
|
28
28
|
export interface ISurveyErrorOwner extends ILocalizableOwner {
|
|
29
29
|
getErrorCustomText(text: string, error: SurveyError): string;
|
|
30
30
|
}
|
|
31
|
+
export interface IValueItemCustomPropValues {
|
|
32
|
+
propertyName: string;
|
|
33
|
+
values: Array<any>;
|
|
34
|
+
}
|
|
31
35
|
export interface ISurvey extends ITextProcessor, ISurveyErrorOwner {
|
|
32
36
|
getSkeletonComponentName(element: ISurveyElement): string;
|
|
33
37
|
currentPage: IPage;
|
|
@@ -120,7 +124,7 @@ export interface ISurvey extends ITextProcessor, ISurveyErrorOwner {
|
|
|
120
124
|
getChoiceDisplayValue(options: {
|
|
121
125
|
question: IQuestion;
|
|
122
126
|
values: Array<any>;
|
|
123
|
-
setItems: (displayValues: Array<string>) => void;
|
|
127
|
+
setItems: (displayValues: Array<string>, ...customValues: Array<IValueItemCustomPropValues>) => void;
|
|
124
128
|
}): void;
|
|
125
129
|
matrixRowAdded(question: IQuestion, row: any): any;
|
|
126
130
|
matrixColumnAdded(question: IQuestion, column: any): void;
|
|
@@ -144,6 +148,7 @@ export interface ISurvey extends ITextProcessor, ISurveyErrorOwner {
|
|
|
144
148
|
dynamicPanelRemoved(question: IQuestion, panelIndex: number, panel: IPanel): void;
|
|
145
149
|
dynamicPanelRemoving(question: IQuestion, panelIndex: number, panel: IPanel): boolean;
|
|
146
150
|
dynamicPanelItemValueChanged(question: IQuestion, options: any): any;
|
|
151
|
+
dynamicPanelGetTabTitle(question: IQuestion, options: any): any;
|
|
147
152
|
dragAndDropAllow(options: DragDropAllowEvent): boolean;
|
|
148
153
|
scrollElementToTop(element: ISurveyElement, question: IQuestion, page: IPage, id: string, scrollIfVisible?: boolean): any;
|
|
149
154
|
runExpression(expression: string): any;
|
package/ts3.4/typings/base.d.ts
CHANGED
|
@@ -56,6 +56,9 @@ export declare class Base {
|
|
|
56
56
|
static finishCollectDependencies(): Dependencies;
|
|
57
57
|
static startCollectDependencies(updater: () => void, target: Base, property: string): void;
|
|
58
58
|
private static collectDependency;
|
|
59
|
+
dependencies: {
|
|
60
|
+
[key: string]: ComputedUpdater;
|
|
61
|
+
};
|
|
59
62
|
static commentSuffix: string;
|
|
60
63
|
static commentPrefix: string;
|
|
61
64
|
static createItemValue: (item: any, type?: string) => any;
|
|
@@ -4,6 +4,7 @@ export declare var defaultV2Css: {
|
|
|
4
4
|
rootMobile: string;
|
|
5
5
|
rootReadOnly: string;
|
|
6
6
|
rootCompact: string;
|
|
7
|
+
rootFitToContainer: string;
|
|
7
8
|
rootBackgroundImage: string;
|
|
8
9
|
container: string;
|
|
9
10
|
header: string;
|
|
@@ -19,6 +20,7 @@ export declare var defaultV2Css: {
|
|
|
19
20
|
clockTimerMinorText: string;
|
|
20
21
|
clockTimerMajorText: string;
|
|
21
22
|
bodyEmpty: string;
|
|
23
|
+
bodyLoading: string;
|
|
22
24
|
footer: string;
|
|
23
25
|
title: string;
|
|
24
26
|
description: string;
|
|
@@ -29,6 +31,7 @@ export declare var defaultV2Css: {
|
|
|
29
31
|
navigationButton: string;
|
|
30
32
|
bodyNavigationButton: string;
|
|
31
33
|
completedPage: string;
|
|
34
|
+
completedBeforePage: string;
|
|
32
35
|
timerRoot: string;
|
|
33
36
|
navigation: {
|
|
34
37
|
complete: string;
|
|
@@ -302,6 +305,9 @@ export declare var defaultV2Css: {
|
|
|
302
305
|
content: string;
|
|
303
306
|
row: string;
|
|
304
307
|
cell: string;
|
|
308
|
+
cellError: string;
|
|
309
|
+
cellErrorTop: string;
|
|
310
|
+
cellErrorBottom: string;
|
|
305
311
|
};
|
|
306
312
|
dropdown: {
|
|
307
313
|
root: string;
|
|
@@ -14,6 +14,7 @@ export declare class DragDropDOMAdapter implements IDragDropDOMAdapter {
|
|
|
14
14
|
private currentX;
|
|
15
15
|
private currentY;
|
|
16
16
|
private savedTargetNode;
|
|
17
|
+
private savedTargetNodeParent;
|
|
17
18
|
private scrollIntervalId;
|
|
18
19
|
constructor(dd: IDragDropEngine, longTap?: boolean);
|
|
19
20
|
private readonly rootElement: any;
|
|
@@ -58,6 +58,7 @@ export declare class DropdownListModel extends Base {
|
|
|
58
58
|
readonly showHintString: boolean;
|
|
59
59
|
readonly hintStringSuffix: string;
|
|
60
60
|
readonly hintStringMiddle: string;
|
|
61
|
+
private qustionPropertyChangedHandler;
|
|
61
62
|
constructor(question: Question, onSelectionChanged?: (item: IAction, ...params: any[]) => void);
|
|
62
63
|
readonly popupModel: PopupModel;
|
|
63
64
|
readonly inputReadOnly: boolean;
|
|
@@ -7,6 +7,7 @@ export declare class DropdownMultiSelectListModel extends DropdownListModel {
|
|
|
7
7
|
protected popupCssClasses: string;
|
|
8
8
|
filterStringPlaceholder: string;
|
|
9
9
|
closeOnSelect: boolean;
|
|
10
|
+
locStrsChanged(): void;
|
|
10
11
|
private updateListState;
|
|
11
12
|
private syncFilterStringPlaceholder;
|
|
12
13
|
private getSelectedActions;
|
|
@@ -29,7 +29,7 @@ export { MatrixDropdownRowModel, QuestionMatrixDropdownModel } from "../../quest
|
|
|
29
29
|
export { MatrixDynamicRowModel, QuestionMatrixDynamicModel } from "../../question_matrixdynamic";
|
|
30
30
|
export { MatrixRowModel, MatrixCells, QuestionMatrixModel, IMatrixData } from "../../question_matrix";
|
|
31
31
|
export { QuestionMatrixBaseModel } from "../../martixBase";
|
|
32
|
-
export { MultipleTextItemModel, QuestionMultipleTextModel, MultipleTextEditorModel } from "../../question_multipletext";
|
|
32
|
+
export { MultipleTextItemModel, MultipleTextCell, MultipleTextErrorCell, MutlipleTextErrorRow, MutlipleTextRow, QuestionMultipleTextModel, MultipleTextEditorModel } from "../../question_multipletext";
|
|
33
33
|
export { PanelModel, PanelModelBase, QuestionRowModel } from "../../panel";
|
|
34
34
|
export { FlowPanelModel } from "../../flowpanel";
|
|
35
35
|
export { PageModel } from "../../page";
|
|
@@ -8,5 +8,4 @@ export { unwrap, getOriginalEvent, getElement } from "../utils/utils";
|
|
|
8
8
|
export * from "../actions/action";
|
|
9
9
|
export * from "../actions/adaptive-container";
|
|
10
10
|
export * from "../actions/container";
|
|
11
|
-
export * from "../utils/tooltip";
|
|
12
11
|
export * from "../utils/dragOrClickHelper";
|
|
@@ -29,6 +29,7 @@ export declare class LocalizableString implements ILocalizableString {
|
|
|
29
29
|
private htmlValues;
|
|
30
30
|
private renderedText;
|
|
31
31
|
private calculatedTextValue;
|
|
32
|
+
private _localizationName;
|
|
32
33
|
localizationName: string;
|
|
33
34
|
onGetTextCallback: (str: string) => string;
|
|
34
35
|
onGetDefaultTextCallback: () => string;
|
|
@@ -57,8 +58,12 @@ export declare class LocalizableString implements ILocalizableString {
|
|
|
57
58
|
readonly textOrHtml: string;
|
|
58
59
|
readonly renderedHtml: string;
|
|
59
60
|
getLocaleText(loc: string): string;
|
|
60
|
-
private
|
|
61
|
+
private getLocaleTextCore;
|
|
62
|
+
private isLocaleTextEqualsWithDefault;
|
|
63
|
+
clear(): void;
|
|
64
|
+
clearLocale(loc?: string): void;
|
|
61
65
|
setLocaleText(loc: string, value: string): void;
|
|
66
|
+
private isValueEmpty;
|
|
62
67
|
private readonly curLocale: any;
|
|
63
68
|
private canRemoveLocValue;
|
|
64
69
|
private fireStrChanged;
|
|
@@ -20,10 +20,14 @@ export declare class PopupDropdownViewModel extends PopupBaseViewModel {
|
|
|
20
20
|
protected getPopupHeaderTemplate(): string;
|
|
21
21
|
popupDirection: string;
|
|
22
22
|
pointerTarget: IPosition;
|
|
23
|
+
private recalculatePositionHandler;
|
|
23
24
|
constructor(model: PopupModel, targetElement?: HTMLElement);
|
|
24
25
|
setComponentElement(componentRoot: HTMLElement, targetElement?: HTMLElement | null): void;
|
|
26
|
+
resetComponentElement(): void;
|
|
25
27
|
updateOnShowing(): void;
|
|
26
28
|
private readonly shouldCreateResizeCallback: any;
|
|
27
29
|
updatePosition(isResetHeight: boolean, isDelayUpdating?: boolean): void;
|
|
28
30
|
updateOnHiding(): void;
|
|
31
|
+
protected onModelChanging(newModel: PopupModel): void;
|
|
32
|
+
dispose(): void;
|
|
29
33
|
}
|
|
@@ -4,6 +4,8 @@ import { CssClassBuilder } from "./utils/cssClassBuilder";
|
|
|
4
4
|
import { ActionContainer } from "./actions/container";
|
|
5
5
|
export declare const FOCUS_INPUT_SELECTOR = "input:not(:disabled):not([readonly]):not([type=hidden]),select:not(:disabled):not([readonly]),textarea:not(:disabled):not([readonly]), button:not(:disabled):not([readonly]), [tabindex]:not([tabindex^=\"-\"])";
|
|
6
6
|
export declare class PopupBaseViewModel extends Base {
|
|
7
|
+
private static SubscriptionId;
|
|
8
|
+
private subscriptionId;
|
|
7
9
|
protected popupSelector: string;
|
|
8
10
|
protected fixedPopupContainer: string;
|
|
9
11
|
protected containerSelector: string;
|
|
@@ -28,6 +30,7 @@ export declare class PopupBaseViewModel extends Base {
|
|
|
28
30
|
protected getPopupHeaderTemplate(): string;
|
|
29
31
|
protected createFooterActionBar(): void;
|
|
30
32
|
protected resetDimensionsAndPositionStyleProperties(): void;
|
|
33
|
+
protected onModelChanging(newModel: PopupModel): void;
|
|
31
34
|
private setupModel;
|
|
32
35
|
private _model;
|
|
33
36
|
model: PopupModel;
|
package/ts3.4/typings/popup.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ export interface IPopupModel<T = any> extends IDialogOptions {
|
|
|
24
24
|
contentComponentData: T;
|
|
25
25
|
}
|
|
26
26
|
export declare class PopupModel<T = any> extends Base {
|
|
27
|
+
private onDispose;
|
|
27
28
|
setWidthByTarget: boolean;
|
|
28
29
|
focusFirstInputSelector: string;
|
|
29
30
|
contentComponentName: string;
|
|
@@ -46,10 +47,11 @@ export declare class PopupModel<T = any> extends Base {
|
|
|
46
47
|
onFooterActionsCreated: EventBase<Base>;
|
|
47
48
|
onRecalculatePosition: EventBase<Base>;
|
|
48
49
|
private refreshInnerModel;
|
|
49
|
-
constructor(contentComponentName: string, contentComponentData: T, verticalPosition?: VerticalPosition, horizontalPosition?: HorizontalPosition, showPointer?: boolean, isModal?: boolean, onCancel?: () => void, onApply?: () => boolean, onHide?: () => void, onShow?: () => void, cssClass?: string, title?: string);
|
|
50
|
+
constructor(contentComponentName: string, contentComponentData: T, verticalPosition?: VerticalPosition, horizontalPosition?: HorizontalPosition, showPointer?: boolean, isModal?: boolean, onCancel?: () => void, onApply?: () => boolean, onHide?: () => void, onShow?: () => void, cssClass?: string, title?: string, onDispose?: () => void);
|
|
50
51
|
isVisible: boolean;
|
|
51
52
|
toggleVisibility(): void;
|
|
52
53
|
recalculatePosition(isResetHeight: boolean): void;
|
|
53
54
|
updateFooterActions(footerActions: Array<IAction>): Array<IAction>;
|
|
55
|
+
dispose(): void;
|
|
54
56
|
}
|
|
55
57
|
export declare function createDialogOptions(componentName: string, data: any, onApply: () => boolean, onCancel?: () => void, onHide?: () => void, onShow?: () => void, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): IDialogOptions;
|
|
@@ -120,6 +120,7 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
120
120
|
*/
|
|
121
121
|
visible: boolean;
|
|
122
122
|
protected onVisibleChanged(): void;
|
|
123
|
+
private updateIsVisibleProp;
|
|
123
124
|
/*
|
|
124
125
|
* Specifies whether to use display names for question values in placeholders.
|
|
125
126
|
*
|
|
@@ -360,11 +361,9 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
360
361
|
readonly cssDescription: string;
|
|
361
362
|
protected setCssDescription(val: string): void;
|
|
362
363
|
protected getCssDescription(cssClasses: any): string;
|
|
363
|
-
protected getIsErrorsModeTooltip(): boolean;
|
|
364
364
|
showErrorOnCore(location: string): boolean;
|
|
365
365
|
readonly showErrorOnTop: boolean;
|
|
366
366
|
readonly showErrorOnBottom: boolean;
|
|
367
|
-
protected getIsTooltipErrorSupportedByParent(): boolean;
|
|
368
367
|
private readonly showErrorsOutsideQuestion: any;
|
|
369
368
|
readonly showErrorsAboveQuestion: boolean;
|
|
370
369
|
readonly showErrorsBelowQuestion: boolean;
|
|
@@ -509,6 +508,8 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
509
508
|
* | Yes/No (Boolean) | `Boolean` \| `String` |
|
|
510
509
|
*/
|
|
511
510
|
value: any;
|
|
511
|
+
readonly hasFilteredValue: boolean;
|
|
512
|
+
getFilteredValue(): any;
|
|
512
513
|
readonly valueForSurvey: any;
|
|
513
514
|
/**
|
|
514
515
|
* Sets the question's `value` and `comment` properties to `undefined`.
|
|
@@ -608,6 +609,7 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
608
609
|
protected getQuizQuestionCount(): number;
|
|
609
610
|
protected getCorrectAnswerCount(): number;
|
|
610
611
|
protected checkIfAnswerCorrect(): boolean;
|
|
612
|
+
protected getAnswerCorrectIgnoreOrder(): boolean;
|
|
611
613
|
/**
|
|
612
614
|
* Returns `true` if a question answer matches the `correctAnswer` property value.
|
|
613
615
|
*
|
|
@@ -145,8 +145,7 @@ export declare class QuestionSelectBase extends Question {
|
|
|
145
145
|
protected rendredValueToDataCore(val: any): any;
|
|
146
146
|
protected needConvertRenderedOtherToDataValue(): boolean;
|
|
147
147
|
protected updateSelectedItemValues(): void;
|
|
148
|
-
|
|
149
|
-
protected updateMultipleSelectedItemValues(): void;
|
|
148
|
+
private setCustomValuesIntoItems;
|
|
150
149
|
protected hasUnknownValue(val: any, includeOther?: boolean, isFilteredChoices?: boolean, checkEmptyValue?: boolean): boolean;
|
|
151
150
|
protected isValueDisabled(val: any): boolean;
|
|
152
151
|
/**
|
|
@@ -85,8 +85,11 @@ export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
|
|
|
85
85
|
*/
|
|
86
86
|
readonly selectedChoices: Array<ItemValue>;
|
|
87
87
|
readonly selectedItems: Array<ItemValue>;
|
|
88
|
+
readonly hasFilteredValue: boolean;
|
|
89
|
+
getFilteredValue(): any;
|
|
88
90
|
protected getMultipleSelectedItems(): Array<ItemValue>;
|
|
89
91
|
protected validateItemValues(itemValues: Array<ItemValue>): Array<ItemValue>;
|
|
92
|
+
protected getAnswerCorrectIgnoreOrder(): boolean;
|
|
90
93
|
protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean): void;
|
|
91
94
|
protected onEnableItemCallBack(item: ItemValue): boolean;
|
|
92
95
|
protected onAfterRunItemsEnableCondition(): void;
|
|
@@ -10,7 +10,7 @@ import { Action } from "./actions/action";
|
|
|
10
10
|
* [View Demo](https://surveyjs.io/form-library/examples/file-upload/ (linkStyle))
|
|
11
11
|
*/
|
|
12
12
|
export declare class QuestionFileModel extends Question {
|
|
13
|
-
|
|
13
|
+
isUploading: boolean;
|
|
14
14
|
isDragging: boolean;
|
|
15
15
|
/**
|
|
16
16
|
* An event that is raised after the upload state has changed.
|
|
@@ -118,8 +118,12 @@ export declare class QuestionFileModel extends Question {
|
|
|
118
118
|
clear(doneCallback?: () => void): void;
|
|
119
119
|
readonly renderCapture: string;
|
|
120
120
|
readonly multipleRendered: string;
|
|
121
|
-
readonly
|
|
122
|
-
readonly
|
|
121
|
+
readonly showChooseButton: boolean;
|
|
122
|
+
readonly showLoadingIndicator: boolean;
|
|
123
|
+
readonly allowShowPreview: boolean;
|
|
124
|
+
readonly showRemoveButtonCore: boolean;
|
|
125
|
+
readonly showRemoveButton: boolean;
|
|
126
|
+
readonly showRemoveButtonBottom: boolean;
|
|
123
127
|
defaultImage(data: any): boolean;
|
|
124
128
|
/**
|
|
125
129
|
* Removes a file with a specified name.
|
|
@@ -7,7 +7,7 @@ import { ItemValue } from "./itemvalue";
|
|
|
7
7
|
import { ILocalizableOwner, LocalizableString } from "./localizablestring";
|
|
8
8
|
import { PanelModel } from "./panel";
|
|
9
9
|
import { SurveyError } from "./survey-error";
|
|
10
|
-
import { MatrixDropdownColumn } from "./question_matrixdropdowncolumn";
|
|
10
|
+
import { IMatrixColumnOwner, MatrixDropdownColumn } from "./question_matrixdropdowncolumn";
|
|
11
11
|
import { QuestionMatrixDropdownRenderedCell, QuestionMatrixDropdownRenderedRow, QuestionMatrixDropdownRenderedTable } from "./question_matrixdropdownrendered";
|
|
12
12
|
export interface IMatrixDropdownData {
|
|
13
13
|
value: any;
|
|
@@ -152,7 +152,7 @@ export declare class MatrixDropdownTotalRowModel extends MatrixDropdownRowModelB
|
|
|
152
152
|
/**
|
|
153
153
|
* A base class for the [QuestionMatrixDropdownModel](https://surveyjs.io/form-library/documentation/questionmatrixdropdownmodel) and [QuestionMatrixDynamicModel](https://surveyjs.io/form-library/documentation/questionmatrixdynamicmodel) classes.
|
|
154
154
|
*/
|
|
155
|
-
export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseModel<MatrixDropdownRowModelBase, MatrixDropdownColumn> implements IMatrixDropdownData {
|
|
155
|
+
export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseModel<MatrixDropdownRowModelBase, MatrixDropdownColumn> implements IMatrixDropdownData, IMatrixColumnOwner {
|
|
156
156
|
static defaultCellType: string;
|
|
157
157
|
static addDefaultColumns(matrix: QuestionMatrixDropdownModelBase): void;
|
|
158
158
|
private detailPanelValue;
|
|
@@ -315,7 +315,9 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
|
|
|
315
315
|
onColumnPropertyChanged(column: MatrixDropdownColumn, name: string, newValue: any): void;
|
|
316
316
|
onColumnItemValuePropertyChanged(column: MatrixDropdownColumn, propertyName: string, obj: ItemValue, name: string, newValue: any, oldValue: any): void;
|
|
317
317
|
onShowInMultipleColumnsChanged(column: MatrixDropdownColumn): void;
|
|
318
|
+
onColumnVisibilityChanged(column: MatrixDropdownColumn): void;
|
|
318
319
|
onColumnCellTypeChanged(column: MatrixDropdownColumn): void;
|
|
320
|
+
private resetTableAndRows;
|
|
319
321
|
getRowTitleWidth(): string;
|
|
320
322
|
readonly hasFooter: boolean;
|
|
321
323
|
getAddRowLocation(): string;
|
|
@@ -481,5 +483,4 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
|
|
|
481
483
|
getRowHeaderWrapperComponentData(cell: MatrixDropdownCell): any;
|
|
482
484
|
readonly showHorizontalScroll: boolean;
|
|
483
485
|
getRootCss(): string;
|
|
484
|
-
protected getIsTooltipErrorInsideSupported(): boolean;
|
|
485
486
|
}
|
|
@@ -11,6 +11,7 @@ export interface IMatrixColumnOwner extends ILocalizableOwner {
|
|
|
11
11
|
onColumnPropertyChanged(column: MatrixDropdownColumn, name: string, newValue: any): void;
|
|
12
12
|
onColumnItemValuePropertyChanged(column: MatrixDropdownColumn, propertyName: string, obj: ItemValue, name: string, newValue: any, oldValue: any): void;
|
|
13
13
|
onShowInMultipleColumnsChanged(column: MatrixDropdownColumn): void;
|
|
14
|
+
onColumnVisibilityChanged(column: MatrixDropdownColumn): void;
|
|
14
15
|
getCellType(): string;
|
|
15
16
|
getCustomCellType(column: MatrixDropdownColumn, row: MatrixDropdownRowModelBase, cellType: string): string;
|
|
16
17
|
onColumnCellTypeChanged(column: MatrixDropdownColumn): void;
|
|
@@ -21,7 +22,6 @@ export declare class MatrixDropdownColumn extends Base implements ILocalizableOw
|
|
|
21
22
|
private templateQuestionValue;
|
|
22
23
|
private colOwnerValue;
|
|
23
24
|
private indexValue;
|
|
24
|
-
private _isVisible;
|
|
25
25
|
private _hasVisibleCell;
|
|
26
26
|
private _visiblechoices;
|
|
27
27
|
constructor(name: string, title?: string);
|
|
@@ -41,7 +41,8 @@ export declare class MatrixDropdownColumn extends Base implements ILocalizableOw
|
|
|
41
41
|
readonly templateQuestion: Question;
|
|
42
42
|
readonly value: string;
|
|
43
43
|
readonly isVisible: boolean;
|
|
44
|
-
|
|
44
|
+
readonly isColumnVisible: boolean;
|
|
45
|
+
visible: boolean;
|
|
45
46
|
hasVisibleCell: boolean;
|
|
46
47
|
getVisibleMultipleChoices(): Array<ItemValue>;
|
|
47
48
|
readonly getVisibleChoicesInCell: Array<any>;
|
|
@@ -102,6 +103,7 @@ export declare class MatrixDropdownColumn extends Base implements ILocalizableOw
|
|
|
102
103
|
protected propertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
103
104
|
private doItemValuePropertyChanged;
|
|
104
105
|
private doShowInMultipleColumnsChanged;
|
|
106
|
+
private doColumnVisibilityChanged;
|
|
105
107
|
private getProperties;
|
|
106
108
|
private removeProperties;
|
|
107
109
|
private addProperties;
|
|
@@ -42,7 +42,7 @@ export declare class MultipleTextItemModel extends Base implements IValidatorOwn
|
|
|
42
42
|
localeChanged(): void;
|
|
43
43
|
locStrsChanged(): void;
|
|
44
44
|
setData(data: IMultipleTextData): void;
|
|
45
|
-
focusIn()
|
|
45
|
+
focusIn: () => void;
|
|
46
46
|
/*
|
|
47
47
|
* Set this property to true, to make the item a required. If a user doesn't fill the item then a validation error will be generated.
|
|
48
48
|
*/
|
|
@@ -117,7 +117,6 @@ export declare class MultipleTextItemModel extends Base implements IValidatorOwn
|
|
|
117
117
|
*/
|
|
118
118
|
export declare class QuestionMultipleTextModel extends Question implements IMultipleTextData, IPanel {
|
|
119
119
|
static addDefaultItems(question: QuestionMultipleTextModel): void;
|
|
120
|
-
colCountChangedCallback: () => void;
|
|
121
120
|
constructor(name: string);
|
|
122
121
|
getType(): string;
|
|
123
122
|
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
|
@@ -171,6 +170,8 @@ export declare class QuestionMultipleTextModel extends Question implements IMult
|
|
|
171
170
|
*/
|
|
172
171
|
itemErrorLocation: string;
|
|
173
172
|
getQuestionErrorLocation(): string;
|
|
173
|
+
readonly showItemErrorOnTop: boolean;
|
|
174
|
+
readonly showItemErrorOnBottom: boolean;
|
|
174
175
|
getChildErrorLocation(child: Question): string;
|
|
175
176
|
protected isNewValueCorrect(val: any): boolean;
|
|
176
177
|
supportGoNextPageAutomatic(): boolean;
|
|
@@ -184,6 +185,9 @@ export declare class QuestionMultipleTextModel extends Question implements IMult
|
|
|
184
185
|
* A value passed on to the [`size`](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/size) attribute of the underlying `<input>` elements.
|
|
185
186
|
*/
|
|
186
187
|
itemSize: number;
|
|
188
|
+
rows: Array<MutlipleTextRow>;
|
|
189
|
+
protected onRowCreated(row: MutlipleTextRow): MutlipleTextRow;
|
|
190
|
+
private calcVisibleRows;
|
|
187
191
|
getRows(): Array<any>;
|
|
188
192
|
private isMultipleItemValueChanging;
|
|
189
193
|
protected onValueChanged(): void;
|
|
@@ -216,5 +220,23 @@ export declare class QuestionMultipleTextModel extends Question implements IMult
|
|
|
216
220
|
getItemLabelCss(item: MultipleTextItemModel): string;
|
|
217
221
|
getItemCss(): string;
|
|
218
222
|
getItemTitleCss(): string;
|
|
219
|
-
|
|
223
|
+
}
|
|
224
|
+
export declare class MutlipleTextRow extends Base {
|
|
225
|
+
isVisible: boolean;
|
|
226
|
+
cells: Array<MultipleTextCell>;
|
|
227
|
+
}
|
|
228
|
+
export declare class MutlipleTextErrorRow extends MutlipleTextRow {
|
|
229
|
+
onAfterCreated(): void;
|
|
230
|
+
}
|
|
231
|
+
export declare class MultipleTextCell {
|
|
232
|
+
item: MultipleTextItemModel;
|
|
233
|
+
protected question: QuestionMultipleTextModel;
|
|
234
|
+
constructor(item: MultipleTextItemModel, question: QuestionMultipleTextModel);
|
|
235
|
+
isErrorsCell: boolean;
|
|
236
|
+
protected getClassName(): string;
|
|
237
|
+
readonly className: string;
|
|
238
|
+
}
|
|
239
|
+
export declare class MultipleTextErrorCell extends MultipleTextCell {
|
|
240
|
+
isErrorsCell: boolean;
|
|
241
|
+
protected getClassName(): string;
|
|
220
242
|
}
|
|
@@ -42,6 +42,7 @@ export declare class QuestionRankingModel extends QuestionCheckboxModel {
|
|
|
42
42
|
private isDragStartNodeValid;
|
|
43
43
|
private readonly allowStartDrag: any;
|
|
44
44
|
private canStartDragDueMaxSelectedChoices;
|
|
45
|
+
private canStartDragDueItemEnabled;
|
|
45
46
|
checkMaxSelectedChoicesUnreached(): boolean;
|
|
46
47
|
afterRenderQuestionElement(el: HTMLElement): void;
|
|
47
48
|
beforeDestroyQuestionElement(el: HTMLElement): void;
|
|
@@ -13,8 +13,10 @@ export declare class QuestionTagboxModel extends QuestionCheckboxModel {
|
|
|
13
13
|
dropdownListModel: DropdownMultiSelectListModel;
|
|
14
14
|
private itemDisplayNameMap;
|
|
15
15
|
constructor(name: string);
|
|
16
|
+
locStrsChanged(): void;
|
|
17
|
+
readOnlyText: string;
|
|
18
|
+
private updateReadOnlyText;
|
|
16
19
|
protected getDefaultItemComponent(): string;
|
|
17
|
-
readonly readOnlyText: any;
|
|
18
20
|
onSurveyLoad(): void;
|
|
19
21
|
/**
|
|
20
22
|
* Specifies whether to display a button that clears the selected value.
|
|
@@ -312,10 +312,6 @@ export declare class SurveyElement<E = any> extends SurveyElementCore implements
|
|
|
312
312
|
protected setPage(parent: IPanel, newPage: IPage): void;
|
|
313
313
|
protected getSearchableLocKeys(keys: Array<string>): void;
|
|
314
314
|
readonly isDefaultV2Theme: boolean;
|
|
315
|
-
readonly isErrorsModeTooltip: boolean;
|
|
316
|
-
protected getIsErrorsModeTooltip(): boolean;
|
|
317
|
-
protected getIsTooltipErrorSupportedByParent(): boolean;
|
|
318
|
-
protected getIsTooltipErrorInsideSupported(): boolean;
|
|
319
315
|
readonly hasParent: any;
|
|
320
316
|
isSingleInRow: boolean;
|
|
321
317
|
private shouldAddRunnerStyles;
|
|
@@ -382,4 +378,5 @@ export declare class SurveyElement<E = any> extends SurveyElementCore implements
|
|
|
382
378
|
protected getAdditionalTitleToolbar(): ActionContainer | null;
|
|
383
379
|
protected getCssTitle(cssClasses: any): string;
|
|
384
380
|
localeChanged(): void;
|
|
381
|
+
dispose(): void;
|
|
385
382
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IAction } from "./actions/action";
|
|
2
2
|
import { Base } from "./base";
|
|
3
|
-
import { IElement, ISurveyElement } from "./base-interfaces";
|
|
3
|
+
import { IElement, ISurveyElement, IValueItemCustomPropValues } from "./base-interfaces";
|
|
4
4
|
import { ItemValue } from "./itemvalue";
|
|
5
5
|
import { PageModel } from "./page";
|
|
6
6
|
import { PanelModel, PanelModelBase } from "./panel";
|
|
@@ -636,7 +636,7 @@ export interface GetChoiceDisplayValueEvent extends QuestionEventMixin {
|
|
|
636
636
|
/**
|
|
637
637
|
* A method that you should call to assign display texts to the question.
|
|
638
638
|
*/
|
|
639
|
-
setItems: (displayValues: Array<string>) => void;
|
|
639
|
+
setItems: (displayValues: Array<string>, ...customValues: Array<IValueItemCustomPropValues>) => void;
|
|
640
640
|
/**
|
|
641
641
|
* An array of one (in Dropdown) or more (in Tag Box) default values.
|
|
642
642
|
*/
|
|
@@ -831,6 +831,20 @@ export interface DynamicPanelItemValueChangedEvent extends PanelDynamicQuestionE
|
|
|
831
831
|
*/
|
|
832
832
|
panel: PanelModel;
|
|
833
833
|
}
|
|
834
|
+
export interface DynamicPanelGetTabTitleEvent extends PanelDynamicQuestionEventMixin {
|
|
835
|
+
/**
|
|
836
|
+
* A panel whose tab title is being rendered.
|
|
837
|
+
*/
|
|
838
|
+
panel: PanelModel;
|
|
839
|
+
/**
|
|
840
|
+
* The panel's index in the [`visiblePanels`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#visiblePanels) array of the Dynamic Panel.
|
|
841
|
+
*/
|
|
842
|
+
visiblePanelIndex: number;
|
|
843
|
+
/**
|
|
844
|
+
* A tab title. You can change this parameter's value.
|
|
845
|
+
*/
|
|
846
|
+
title: string;
|
|
847
|
+
}
|
|
834
848
|
export interface IsAnswerCorrectEvent extends QuestionEventMixin {
|
|
835
849
|
/**
|
|
836
850
|
* you may change the default number of correct or incorrect answers in the question, for example for matrix, where each row is a quiz question
|