survey-core 1.12.10 → 1.12.11
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 +1 -1
- package/defaultV2.fontless.css +1 -1
- package/defaultV2.fontless.min.css +1 -1
- package/defaultV2.min.css +1 -1
- package/i18n/arabic.js +1 -1
- package/i18n/arabic.min.js +1 -1
- package/i18n/basque.js +1 -1
- package/i18n/basque.min.js +1 -1
- package/i18n/bulgarian.js +1 -1
- package/i18n/bulgarian.min.js +1 -1
- package/i18n/catalan.js +1 -1
- package/i18n/catalan.min.js +1 -1
- package/i18n/croatian.js +1 -1
- package/i18n/croatian.min.js +1 -1
- package/i18n/czech.js +1 -1
- package/i18n/czech.min.js +1 -1
- package/i18n/danish.js +1 -1
- package/i18n/danish.min.js +1 -1
- package/i18n/dutch.js +1 -1
- package/i18n/dutch.min.js +1 -1
- package/i18n/english.js +1 -1
- package/i18n/english.min.js +1 -1
- package/i18n/estonian.js +1 -1
- package/i18n/estonian.min.js +1 -1
- package/i18n/finnish.js +1 -1
- package/i18n/finnish.min.js +1 -1
- package/i18n/french.js +1 -1
- package/i18n/french.min.js +1 -1
- package/i18n/georgian.js +1 -1
- package/i18n/georgian.min.js +1 -1
- package/i18n/german.js +1 -1
- package/i18n/german.min.js +1 -1
- package/i18n/greek.js +1 -1
- package/i18n/greek.min.js +1 -1
- package/i18n/hebrew.js +1 -1
- package/i18n/hebrew.min.js +1 -1
- package/i18n/hindi.js +1 -1
- package/i18n/hindi.min.js +1 -1
- package/i18n/hungarian.js +1 -1
- package/i18n/hungarian.min.js +1 -1
- package/i18n/icelandic.js +1 -1
- package/i18n/icelandic.min.js +1 -1
- package/i18n/index.js +1 -1
- package/i18n/index.min.js +1 -1
- package/i18n/indonesian.js +1 -1
- package/i18n/indonesian.min.js +1 -1
- package/i18n/italian.js +1 -1
- package/i18n/italian.min.js +1 -1
- package/i18n/japanese.js +1 -1
- package/i18n/japanese.min.js +1 -1
- package/i18n/kazakh.js +1 -1
- package/i18n/kazakh.min.js +1 -1
- package/i18n/korean.js +1 -1
- package/i18n/korean.min.js +1 -1
- package/i18n/latvian.js +1 -1
- package/i18n/latvian.min.js +1 -1
- package/i18n/lithuanian.js +1 -1
- package/i18n/lithuanian.min.js +1 -1
- package/i18n/macedonian.js +1 -1
- package/i18n/macedonian.min.js +1 -1
- package/i18n/malay.js +1 -1
- package/i18n/malay.min.js +1 -1
- package/i18n/nl-BE.js +1 -1
- package/i18n/nl-BE.min.js +1 -1
- package/i18n/norwegian.js +1 -1
- package/i18n/norwegian.min.js +1 -1
- package/i18n/persian.js +1 -1
- package/i18n/persian.min.js +1 -1
- package/i18n/philippines.js +1 -1
- package/i18n/philippines.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/index.js +1 -1
- package/plugins/bootstrap-integration/index.min.js +1 -1
- package/plugins/bootstrap-material-integration/index.js +1 -1
- package/plugins/bootstrap-material-integration/index.min.js +1 -1
- package/survey.core.js +219 -151
- 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/packages/survey-core/entries/chunks/model.d.ts +1 -1
- package/ts3.4/typings/packages/survey-core/src/actions/container.d.ts +4 -1
- package/ts3.4/typings/packages/survey-core/src/list.d.ts +1 -0
- package/ts3.4/typings/packages/survey-core/src/page.d.ts +2 -2
- package/ts3.4/typings/packages/survey-core/src/panel.d.ts +3 -1
- package/ts3.4/typings/packages/survey-core/src/popup-dropdown-view-model.d.ts +2 -4
- package/ts3.4/typings/packages/survey-core/src/popup-utils.d.ts +1 -1
- package/ts3.4/typings/packages/survey-core/src/popup-view-model.d.ts +1 -1
- package/ts3.4/typings/packages/survey-core/src/popup.d.ts +4 -0
- package/ts3.4/typings/packages/survey-core/src/question_matrixdropdowncolumn.d.ts +2 -2
- package/ts3.4/typings/packages/survey-core/src/survey-events-api.d.ts +3 -3
- package/ts3.4/typings/packages/survey-core/src/survey.d.ts +3 -3
- package/ts3.4/typings/packages/survey-core/src/surveyStrings.d.ts +1 -0
- package/ts3.4/typings/packages/survey-core/src/utils/popup.d.ts +4 -1
- package/ts3.4/typings/packages/survey-core/src/utils/text-area.d.ts +1 -0
- package/typings/packages/survey-core/entries/chunks/model.d.ts +1 -1
- package/typings/packages/survey-core/src/actions/container.d.ts +4 -1
- package/typings/packages/survey-core/src/list.d.ts +1 -0
- package/typings/packages/survey-core/src/page.d.ts +2 -2
- package/typings/packages/survey-core/src/panel.d.ts +3 -1
- package/typings/packages/survey-core/src/popup-dropdown-view-model.d.ts +2 -4
- package/typings/packages/survey-core/src/popup-utils.d.ts +1 -1
- package/typings/packages/survey-core/src/popup-view-model.d.ts +1 -1
- package/typings/packages/survey-core/src/popup.d.ts +4 -0
- package/typings/packages/survey-core/src/question_matrixdropdowncolumn.d.ts +2 -2
- package/typings/packages/survey-core/src/survey-events-api.d.ts +3 -3
- package/typings/packages/survey-core/src/survey.d.ts +3 -3
- package/typings/packages/survey-core/src/surveyStrings.d.ts +1 -0
- package/typings/packages/survey-core/src/utils/popup.d.ts +4 -1
- package/typings/packages/survey-core/src/utils/text-area.d.ts +1 -0
package/themes/solid-light.js
CHANGED
|
@@ -73,7 +73,7 @@ export { Notifier } from "../../src/notifier";
|
|
|
73
73
|
export { Cover, CoverCell } from "../../src/header";
|
|
74
74
|
export { dxSurveyService } from "../../src/dxSurveyService";
|
|
75
75
|
export { englishStrings } from "../../src/localization/english";
|
|
76
|
-
export { surveyLocalization, surveyStrings } from "../../src/surveyStrings";
|
|
76
|
+
export { surveyLocalization, surveyStrings, getLocaleString } from "../../src/surveyStrings";
|
|
77
77
|
export { QuestionCustomWidget, CustomWidgetCollection, } from "../../src/questionCustomWidgets";
|
|
78
78
|
export { QuestionCustomModel, QuestionCompositeModel, ComponentQuestionJSON, ComponentCollection, ICustomQuestionTypeConfiguration } from "../../src/question_custom";
|
|
79
79
|
export { ListModel } from "../../src/list";
|
|
@@ -42,8 +42,11 @@ export declare class ActionContainer<T extends BaseAction = Action> extends Base
|
|
|
42
42
|
cssClasses: any;
|
|
43
43
|
private createAction;
|
|
44
44
|
addAction(val: IAction, sortByVisibleIndex?: boolean): T;
|
|
45
|
-
private sortItems;
|
|
46
45
|
setItems(items: Array<IAction>, sortByVisibleIndex?: boolean): void;
|
|
46
|
+
private sortItems;
|
|
47
|
+
private hasSetVisibleIndex;
|
|
48
|
+
private compareByVisibleIndex;
|
|
49
|
+
private isActionVisible;
|
|
47
50
|
subItemsShowDelay: number;
|
|
48
51
|
subItemsHideDelay: number;
|
|
49
52
|
protected popupAfterShowCallback(itemValue: T): void;
|
|
@@ -72,6 +72,7 @@ export declare class ListModel<T extends BaseAction = Action> extends ActionCont
|
|
|
72
72
|
setOnFilterStringChangedCallback(callback: (text: string) => void): void;
|
|
73
73
|
setOnTextSearchCallback(callback: (item: T, textToSearch: string) => boolean): void;
|
|
74
74
|
setItems(items: Array<IAction>, sortByVisibleIndex?: boolean): void;
|
|
75
|
+
setSearchEnabled(newValue: boolean): void;
|
|
75
76
|
protected onSet(): void;
|
|
76
77
|
protected getDefaultCssClasses(): {
|
|
77
78
|
root: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPage, IPanel, IElement, ISurveyElement } from "./base-interfaces";
|
|
1
|
+
import { IPage, IPanel, IElement, ISurveyElement, ISurvey } from "./base-interfaces";
|
|
2
2
|
import { PanelModelBase } from "./panel";
|
|
3
3
|
import { LocalizableString } from "./localizablestring";
|
|
4
4
|
/**
|
|
@@ -18,7 +18,7 @@ export declare class PageModel extends PanelModelBase implements IPage {
|
|
|
18
18
|
getCssTitleExpandableSvg(): string;
|
|
19
19
|
readonly cssRequiredText: string;
|
|
20
20
|
protected canShowPageNumber(): boolean;
|
|
21
|
-
protected canShowTitle(): boolean;
|
|
21
|
+
protected canShowTitle(survey: ISurvey): boolean;
|
|
22
22
|
protected setTitleValue(val: string): void;
|
|
23
23
|
/*
|
|
24
24
|
* A caption displayed on a navigation button in the TOC or progress bar. Applies when [`showTOC`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#showTOC) is `true` or when the [progress bar is visible](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#showProgressBar), [`progressBarType`](https://surveyjs.io/form-library/documentation/surveymodel#progressBarType) is set to `"pages"`, and [`progressBarShowPageTitles`](https://surveyjs.io/form-library/documentation/surveymodel#progressBarShowPageTitles) is `true`.
|
|
@@ -83,7 +83,7 @@ export declare class PanelModelBase extends SurveyElement<Question> implements I
|
|
|
83
83
|
delete(doDispose?: boolean): void;
|
|
84
84
|
private deletePanel;
|
|
85
85
|
protected removeFromParent(): void;
|
|
86
|
-
protected canShowTitle(): boolean;
|
|
86
|
+
protected canShowTitle(survey: ISurvey): boolean;
|
|
87
87
|
showDescription: boolean;
|
|
88
88
|
readonly _showDescription: boolean;
|
|
89
89
|
localeChanged(): void;
|
|
@@ -325,6 +325,7 @@ export declare class PanelModelBase extends SurveyElement<Question> implements I
|
|
|
325
325
|
private releaseRowsUpdates;
|
|
326
326
|
private updateRowsBeforeElementRemoved;
|
|
327
327
|
private updateRowsOnElementAdded;
|
|
328
|
+
private canFireAddRemoveNotifications;
|
|
328
329
|
protected onAddElement(element: IElement, index: number): void;
|
|
329
330
|
protected onRemoveElement(element: IElement): void;
|
|
330
331
|
private onRemoveElementNotifySurvey;
|
|
@@ -564,6 +565,7 @@ export declare class PanelModel extends PanelModelBase implements IElement {
|
|
|
564
565
|
getFooterToolbar(): ActionContainer;
|
|
565
566
|
readonly hasEditButton: boolean;
|
|
566
567
|
cancelPreview(): void;
|
|
568
|
+
protected canShowTitle(survey: ISurvey): boolean;
|
|
567
569
|
readonly cssTitle: string;
|
|
568
570
|
getCssTitleExpandableSvg(): string;
|
|
569
571
|
readonly showErrorsAbovePanel: boolean;
|
|
@@ -4,8 +4,6 @@ import { PopupModel } from "./popup";
|
|
|
4
4
|
import { PopupBaseViewModel } from "./popup-view-model";
|
|
5
5
|
export declare function calculateIsTablet(windowWidth?: number, windowHeight?: number): boolean;
|
|
6
6
|
export declare class PopupDropdownViewModel extends PopupBaseViewModel {
|
|
7
|
-
targetElement?: HTMLElement;
|
|
8
|
-
areaElement?: HTMLElement;
|
|
9
7
|
static readonly tabletSizeBreakpoint = 600;
|
|
10
8
|
private scrollEventCallBack;
|
|
11
9
|
private calculateIsTablet;
|
|
@@ -25,8 +23,8 @@ export declare class PopupDropdownViewModel extends PopupBaseViewModel {
|
|
|
25
23
|
popupDirection: string;
|
|
26
24
|
pointerTarget: IPosition;
|
|
27
25
|
private recalculatePositionHandler;
|
|
28
|
-
constructor(model: PopupModel
|
|
29
|
-
setComponentElement(componentRoot: HTMLElement
|
|
26
|
+
constructor(model: PopupModel);
|
|
27
|
+
setComponentElement(componentRoot: HTMLElement): void;
|
|
30
28
|
resetComponentElement(): void;
|
|
31
29
|
updateOnShowing(): void;
|
|
32
30
|
private readonly shouldCreateResizeCallback: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { IDialogOptions, PopupModel } from "./popup";
|
|
2
2
|
import { PopupBaseViewModel } from "./popup-view-model";
|
|
3
3
|
export declare function createPopupModalViewModel(options: IDialogOptions, rootElement?: HTMLElement): PopupBaseViewModel;
|
|
4
|
-
export declare function createPopupViewModel(model: PopupModel
|
|
4
|
+
export declare function createPopupViewModel(model: PopupModel): PopupBaseViewModel;
|
|
@@ -73,7 +73,7 @@ export declare class PopupBaseViewModel extends Base implements IAnimationConsum
|
|
|
73
73
|
cancel(): void;
|
|
74
74
|
dispose(): void;
|
|
75
75
|
initializePopupContainer(): void;
|
|
76
|
-
setComponentElement(componentRoot: HTMLElement
|
|
76
|
+
setComponentElement(componentRoot: HTMLElement): void;
|
|
77
77
|
resetComponentElement(): void;
|
|
78
78
|
protected preventScrollOuside(event: any, deltaY: number): void;
|
|
79
79
|
}
|
|
@@ -6,6 +6,8 @@ export interface IPopupOptionsBase {
|
|
|
6
6
|
onShow?: () => void;
|
|
7
7
|
onCancel?: () => void;
|
|
8
8
|
onDispose?: () => void;
|
|
9
|
+
getTargetCallback?: (container: HTMLElement) => HTMLElement;
|
|
10
|
+
getAreaCallback?: (container: HTMLElement) => HTMLElement;
|
|
9
11
|
cssClass?: string;
|
|
10
12
|
title?: string;
|
|
11
13
|
verticalPosition?: VerticalPosition;
|
|
@@ -30,6 +32,8 @@ export declare class PopupModel<T = any> extends Base implements IPopupOptionsBa
|
|
|
30
32
|
onHide: () => void;
|
|
31
33
|
onShow: () => void;
|
|
32
34
|
onDispose: () => void;
|
|
35
|
+
getTargetCallback?: (container: HTMLElement) => HTMLElement;
|
|
36
|
+
getAreaCallback?: (container: HTMLElement) => HTMLElement;
|
|
33
37
|
contentComponentName: string;
|
|
34
38
|
contentComponentData: T;
|
|
35
39
|
verticalPosition: VerticalPosition;
|
|
@@ -30,7 +30,7 @@ export declare class MatrixDropdownColumn extends Base implements ILocalizableOw
|
|
|
30
30
|
private indexValue;
|
|
31
31
|
private _hasVisibleCell;
|
|
32
32
|
private _visiblechoices;
|
|
33
|
-
constructor(name: string, title?: string);
|
|
33
|
+
constructor(name: string, title?: string, colOwner?: IMatrixColumnOwner);
|
|
34
34
|
getOriginalObj(): Base;
|
|
35
35
|
getClassNameProperty(): string;
|
|
36
36
|
getSurvey(live?: boolean): ISurvey;
|
|
@@ -296,7 +296,7 @@ export declare class MatrixDropdownColumn extends Base implements ILocalizableOw
|
|
|
296
296
|
defaultCellTypeChanged(): void;
|
|
297
297
|
protected calcCellQuestionType(row: MatrixDropdownRowModelBase): string;
|
|
298
298
|
private getDefaultCellQuestionType;
|
|
299
|
-
protected updateTemplateQuestion(newCellType?: string): void;
|
|
299
|
+
protected updateTemplateQuestion(newCellType?: string, name?: string, title?: string): void;
|
|
300
300
|
protected createNewQuestion(cellType: string): Question;
|
|
301
301
|
private setParentQuestionToTemplate;
|
|
302
302
|
private previousChoicesId;
|
|
@@ -530,16 +530,16 @@ export interface OpenFileChooserEvent {
|
|
|
530
530
|
*/
|
|
531
531
|
input: HTMLInputElement;
|
|
532
532
|
/**
|
|
533
|
-
* A
|
|
533
|
+
* A question for which this event is raised.
|
|
534
534
|
*/
|
|
535
535
|
element: Base;
|
|
536
536
|
/**
|
|
537
537
|
* The type of the element passed as the `options.element` parameter.\
|
|
538
|
-
* Possible values:
|
|
538
|
+
* Possible values: any value returned from the [`getType()`](https://surveyjs.io/form-library/documentation/api-reference/question#getType) method.
|
|
539
539
|
*/
|
|
540
540
|
elementType: String;
|
|
541
541
|
/**
|
|
542
|
-
* The name of the survey element property
|
|
542
|
+
* The name of the survey element property for which files are being selected.
|
|
543
543
|
*/
|
|
544
544
|
propertyName: String;
|
|
545
545
|
/**
|
|
@@ -371,9 +371,8 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
371
371
|
*/
|
|
372
372
|
onGetResult: EventBase<SurveyModel, GetResultEvent>;
|
|
373
373
|
/**
|
|
374
|
-
* An event that is raised when
|
|
375
|
-
* @see
|
|
376
|
-
* @see uploadFiles
|
|
374
|
+
* An event that is raised when a respondent opens a dialog window to select files.
|
|
375
|
+
* @see chooseFiles
|
|
377
376
|
*/
|
|
378
377
|
onOpenFileChooser: EventBase<SurveyModel, OpenFileChooserEvent>;
|
|
379
378
|
/**
|
|
@@ -2135,6 +2134,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2135
2134
|
private isSmoothScrollEnabled;
|
|
2136
2135
|
private resizeObserver;
|
|
2137
2136
|
afterRenderSurvey(htmlElement: any): void;
|
|
2137
|
+
beforeDestroySurveyElement(): void;
|
|
2138
2138
|
/**
|
|
2139
2139
|
* An event that is raised when the survey's width or height is changed.
|
|
2140
2140
|
*/
|
|
@@ -25,6 +25,7 @@ export declare var surveyLocalization: {
|
|
|
25
25
|
getLocales: (removeDefaultLoc?: boolean) => Array<string>;
|
|
26
26
|
onGetExternalString: (name: string, locale: string) => string;
|
|
27
27
|
};
|
|
28
|
+
export declare function getLocaleString(strName: string, locale?: string): string;
|
|
28
29
|
export declare var surveyStrings: {
|
|
29
30
|
pagePrevText: string;
|
|
30
31
|
pageNextText: string;
|
|
@@ -27,7 +27,10 @@ export declare class Rect implements ISize, INumberPosition {
|
|
|
27
27
|
export declare class PopupUtils {
|
|
28
28
|
static bottomIndent: number;
|
|
29
29
|
static calculatePosition(targetRect: Rect, height: number, width: number, verticalPosition: VerticalPosition, horizontalPosition: HorizontalPosition, positionMode?: PositionMode): INumberPosition;
|
|
30
|
-
static getCorrectedVerticalDimensions(top: number, height: number, windowHeight: number, verticalPosition: VerticalPosition, canShrink?: boolean
|
|
30
|
+
static getCorrectedVerticalDimensions(top: number, height: number, windowHeight: number, verticalPosition: VerticalPosition, canShrink?: boolean, margins?: {
|
|
31
|
+
top: number;
|
|
32
|
+
bottom: number;
|
|
33
|
+
}): {
|
|
31
34
|
height: number;
|
|
32
35
|
top: number;
|
|
33
36
|
};
|
|
@@ -31,6 +31,7 @@ export declare class TextAreaModel {
|
|
|
31
31
|
private onPropertyChangedCallback;
|
|
32
32
|
constructor(options: ITextArea);
|
|
33
33
|
setElement(element: HTMLTextAreaElement | null): void;
|
|
34
|
+
resetElement(): void;
|
|
34
35
|
getTextValue(): string;
|
|
35
36
|
onTextAreaChange(event: any): void;
|
|
36
37
|
onTextAreaInput(event: any): void;
|
|
@@ -73,7 +73,7 @@ export { Notifier } from "../../src/notifier";
|
|
|
73
73
|
export { Cover, CoverCell } from "../../src/header";
|
|
74
74
|
export { dxSurveyService } from "../../src/dxSurveyService";
|
|
75
75
|
export { englishStrings } from "../../src/localization/english";
|
|
76
|
-
export { surveyLocalization, surveyStrings } from "../../src/surveyStrings";
|
|
76
|
+
export { surveyLocalization, surveyStrings, getLocaleString } from "../../src/surveyStrings";
|
|
77
77
|
export { QuestionCustomWidget, CustomWidgetCollection, } from "../../src/questionCustomWidgets";
|
|
78
78
|
export { QuestionCustomModel, QuestionCompositeModel, ComponentQuestionJSON, ComponentCollection, ICustomQuestionTypeConfiguration } from "../../src/question_custom";
|
|
79
79
|
export { ListModel } from "../../src/list";
|
|
@@ -43,8 +43,11 @@ export declare class ActionContainer<T extends BaseAction = Action> extends Base
|
|
|
43
43
|
get cssClasses(): any;
|
|
44
44
|
private createAction;
|
|
45
45
|
addAction(val: IAction, sortByVisibleIndex?: boolean): T;
|
|
46
|
-
private sortItems;
|
|
47
46
|
setItems(items: Array<IAction>, sortByVisibleIndex?: boolean): void;
|
|
47
|
+
private sortItems;
|
|
48
|
+
private hasSetVisibleIndex;
|
|
49
|
+
private compareByVisibleIndex;
|
|
50
|
+
private isActionVisible;
|
|
48
51
|
subItemsShowDelay: number;
|
|
49
52
|
subItemsHideDelay: number;
|
|
50
53
|
protected popupAfterShowCallback(itemValue: T): void;
|
|
@@ -72,6 +72,7 @@ export declare class ListModel<T extends BaseAction = Action> extends ActionCont
|
|
|
72
72
|
setOnFilterStringChangedCallback(callback: (text: string) => void): void;
|
|
73
73
|
setOnTextSearchCallback(callback: (item: T, textToSearch: string) => boolean): void;
|
|
74
74
|
setItems(items: Array<IAction>, sortByVisibleIndex?: boolean): void;
|
|
75
|
+
setSearchEnabled(newValue: boolean): void;
|
|
75
76
|
protected onSet(): void;
|
|
76
77
|
protected getDefaultCssClasses(): {
|
|
77
78
|
root: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPage, IPanel, IElement, ISurveyElement } from "./base-interfaces";
|
|
1
|
+
import { IPage, IPanel, IElement, ISurveyElement, ISurvey } from "./base-interfaces";
|
|
2
2
|
import { PanelModelBase } from "./panel";
|
|
3
3
|
import { LocalizableString } from "./localizablestring";
|
|
4
4
|
/**
|
|
@@ -18,7 +18,7 @@ export declare class PageModel extends PanelModelBase implements IPage {
|
|
|
18
18
|
getCssTitleExpandableSvg(): string;
|
|
19
19
|
get cssRequiredText(): string;
|
|
20
20
|
protected canShowPageNumber(): boolean;
|
|
21
|
-
protected canShowTitle(): boolean;
|
|
21
|
+
protected canShowTitle(survey: ISurvey): boolean;
|
|
22
22
|
protected setTitleValue(val: string): void;
|
|
23
23
|
/**
|
|
24
24
|
* A caption displayed on a navigation button in the TOC or progress bar. Applies when [`showTOC`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#showTOC) is `true` or when the [progress bar is visible](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#showProgressBar), [`progressBarType`](https://surveyjs.io/form-library/documentation/surveymodel#progressBarType) is set to `"pages"`, and [`progressBarShowPageTitles`](https://surveyjs.io/form-library/documentation/surveymodel#progressBarShowPageTitles) is `true`.
|
|
@@ -87,7 +87,7 @@ export declare class PanelModelBase extends SurveyElement<Question> implements I
|
|
|
87
87
|
delete(doDispose?: boolean): void;
|
|
88
88
|
private deletePanel;
|
|
89
89
|
protected removeFromParent(): void;
|
|
90
|
-
protected canShowTitle(): boolean;
|
|
90
|
+
protected canShowTitle(survey: ISurvey): boolean;
|
|
91
91
|
showDescription: boolean;
|
|
92
92
|
get _showDescription(): boolean;
|
|
93
93
|
localeChanged(): void;
|
|
@@ -337,6 +337,7 @@ export declare class PanelModelBase extends SurveyElement<Question> implements I
|
|
|
337
337
|
private releaseRowsUpdates;
|
|
338
338
|
private updateRowsBeforeElementRemoved;
|
|
339
339
|
private updateRowsOnElementAdded;
|
|
340
|
+
private canFireAddRemoveNotifications;
|
|
340
341
|
protected onAddElement(element: IElement, index: number): void;
|
|
341
342
|
protected onRemoveElement(element: IElement): void;
|
|
342
343
|
private onRemoveElementNotifySurvey;
|
|
@@ -587,6 +588,7 @@ export declare class PanelModel extends PanelModelBase implements IElement {
|
|
|
587
588
|
getFooterToolbar(): ActionContainer;
|
|
588
589
|
get hasEditButton(): boolean;
|
|
589
590
|
cancelPreview(): void;
|
|
591
|
+
protected canShowTitle(survey: ISurvey): boolean;
|
|
590
592
|
get cssTitle(): string;
|
|
591
593
|
getCssTitleExpandableSvg(): string;
|
|
592
594
|
get showErrorsAbovePanel(): boolean;
|
|
@@ -4,8 +4,6 @@ import { PopupModel } from "./popup";
|
|
|
4
4
|
import { PopupBaseViewModel } from "./popup-view-model";
|
|
5
5
|
export declare function calculateIsTablet(windowWidth?: number, windowHeight?: number): boolean;
|
|
6
6
|
export declare class PopupDropdownViewModel extends PopupBaseViewModel {
|
|
7
|
-
targetElement?: HTMLElement;
|
|
8
|
-
areaElement?: HTMLElement;
|
|
9
7
|
static readonly tabletSizeBreakpoint = 600;
|
|
10
8
|
private scrollEventCallBack;
|
|
11
9
|
private calculateIsTablet;
|
|
@@ -25,8 +23,8 @@ export declare class PopupDropdownViewModel extends PopupBaseViewModel {
|
|
|
25
23
|
popupDirection: string;
|
|
26
24
|
pointerTarget: IPosition;
|
|
27
25
|
private recalculatePositionHandler;
|
|
28
|
-
constructor(model: PopupModel
|
|
29
|
-
setComponentElement(componentRoot: HTMLElement
|
|
26
|
+
constructor(model: PopupModel);
|
|
27
|
+
setComponentElement(componentRoot: HTMLElement): void;
|
|
30
28
|
resetComponentElement(): void;
|
|
31
29
|
updateOnShowing(): void;
|
|
32
30
|
private get shouldCreateResizeCallback();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { IDialogOptions, PopupModel } from "./popup";
|
|
2
2
|
import { PopupBaseViewModel } from "./popup-view-model";
|
|
3
3
|
export declare function createPopupModalViewModel(options: IDialogOptions, rootElement?: HTMLElement): PopupBaseViewModel;
|
|
4
|
-
export declare function createPopupViewModel(model: PopupModel
|
|
4
|
+
export declare function createPopupViewModel(model: PopupModel): PopupBaseViewModel;
|
|
@@ -75,7 +75,7 @@ export declare class PopupBaseViewModel extends Base implements IAnimationConsum
|
|
|
75
75
|
cancel(): void;
|
|
76
76
|
dispose(): void;
|
|
77
77
|
initializePopupContainer(): void;
|
|
78
|
-
setComponentElement(componentRoot: HTMLElement
|
|
78
|
+
setComponentElement(componentRoot: HTMLElement): void;
|
|
79
79
|
resetComponentElement(): void;
|
|
80
80
|
protected preventScrollOuside(event: any, deltaY: number): void;
|
|
81
81
|
}
|
|
@@ -6,6 +6,8 @@ export interface IPopupOptionsBase {
|
|
|
6
6
|
onShow?: () => void;
|
|
7
7
|
onCancel?: () => void;
|
|
8
8
|
onDispose?: () => void;
|
|
9
|
+
getTargetCallback?: (container: HTMLElement) => HTMLElement;
|
|
10
|
+
getAreaCallback?: (container: HTMLElement) => HTMLElement;
|
|
9
11
|
cssClass?: string;
|
|
10
12
|
title?: string;
|
|
11
13
|
verticalPosition?: VerticalPosition;
|
|
@@ -30,6 +32,8 @@ export declare class PopupModel<T = any> extends Base implements IPopupOptionsBa
|
|
|
30
32
|
onHide: () => void;
|
|
31
33
|
onShow: () => void;
|
|
32
34
|
onDispose: () => void;
|
|
35
|
+
getTargetCallback?: (container: HTMLElement) => HTMLElement;
|
|
36
|
+
getAreaCallback?: (container: HTMLElement) => HTMLElement;
|
|
33
37
|
contentComponentName: string;
|
|
34
38
|
contentComponentData: T;
|
|
35
39
|
verticalPosition: VerticalPosition;
|
|
@@ -30,7 +30,7 @@ export declare class MatrixDropdownColumn extends Base implements ILocalizableOw
|
|
|
30
30
|
private indexValue;
|
|
31
31
|
private _hasVisibleCell;
|
|
32
32
|
private _visiblechoices;
|
|
33
|
-
constructor(name: string, title?: string);
|
|
33
|
+
constructor(name: string, title?: string, colOwner?: IMatrixColumnOwner);
|
|
34
34
|
getOriginalObj(): Base;
|
|
35
35
|
getClassNameProperty(): string;
|
|
36
36
|
getSurvey(live?: boolean): ISurvey;
|
|
@@ -330,7 +330,7 @@ export declare class MatrixDropdownColumn extends Base implements ILocalizableOw
|
|
|
330
330
|
defaultCellTypeChanged(): void;
|
|
331
331
|
protected calcCellQuestionType(row: MatrixDropdownRowModelBase): string;
|
|
332
332
|
private getDefaultCellQuestionType;
|
|
333
|
-
protected updateTemplateQuestion(newCellType?: string): void;
|
|
333
|
+
protected updateTemplateQuestion(newCellType?: string, name?: string, title?: string): void;
|
|
334
334
|
protected createNewQuestion(cellType: string): Question;
|
|
335
335
|
private setParentQuestionToTemplate;
|
|
336
336
|
private previousChoicesId;
|
|
@@ -530,16 +530,16 @@ export interface OpenFileChooserEvent {
|
|
|
530
530
|
*/
|
|
531
531
|
input: HTMLInputElement;
|
|
532
532
|
/**
|
|
533
|
-
* A
|
|
533
|
+
* A question for which this event is raised.
|
|
534
534
|
*/
|
|
535
535
|
element: Base;
|
|
536
536
|
/**
|
|
537
537
|
* The type of the element passed as the `options.element` parameter.\
|
|
538
|
-
* Possible values:
|
|
538
|
+
* Possible values: any value returned from the [`getType()`](https://surveyjs.io/form-library/documentation/api-reference/question#getType) method.
|
|
539
539
|
*/
|
|
540
540
|
elementType: String;
|
|
541
541
|
/**
|
|
542
|
-
* The name of the survey element property
|
|
542
|
+
* The name of the survey element property for which files are being selected.
|
|
543
543
|
*/
|
|
544
544
|
propertyName: String;
|
|
545
545
|
/**
|
|
@@ -373,9 +373,8 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
373
373
|
*/
|
|
374
374
|
onGetResult: EventBase<SurveyModel, GetResultEvent>;
|
|
375
375
|
/**
|
|
376
|
-
* An event that is raised when
|
|
377
|
-
* @see
|
|
378
|
-
* @see uploadFiles
|
|
376
|
+
* An event that is raised when a respondent opens a dialog window to select files.
|
|
377
|
+
* @see chooseFiles
|
|
379
378
|
*/
|
|
380
379
|
onOpenFileChooser: EventBase<SurveyModel, OpenFileChooserEvent>;
|
|
381
380
|
/**
|
|
@@ -2221,6 +2220,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2221
2220
|
private isSmoothScrollEnabled;
|
|
2222
2221
|
private resizeObserver;
|
|
2223
2222
|
afterRenderSurvey(htmlElement: any): void;
|
|
2223
|
+
beforeDestroySurveyElement(): void;
|
|
2224
2224
|
/**
|
|
2225
2225
|
* An event that is raised when the survey's width or height is changed.
|
|
2226
2226
|
*/
|
|
@@ -25,6 +25,7 @@ export declare var surveyLocalization: {
|
|
|
25
25
|
getLocales: (removeDefaultLoc?: boolean) => Array<string>;
|
|
26
26
|
onGetExternalString: (name: string, locale: string) => string;
|
|
27
27
|
};
|
|
28
|
+
export declare function getLocaleString(strName: string, locale?: string): string;
|
|
28
29
|
export declare var surveyStrings: {
|
|
29
30
|
pagePrevText: string;
|
|
30
31
|
pageNextText: string;
|
|
@@ -27,7 +27,10 @@ export declare class Rect implements ISize, INumberPosition {
|
|
|
27
27
|
export declare class PopupUtils {
|
|
28
28
|
static bottomIndent: number;
|
|
29
29
|
static calculatePosition(targetRect: Rect, height: number, width: number, verticalPosition: VerticalPosition, horizontalPosition: HorizontalPosition, positionMode?: PositionMode): INumberPosition;
|
|
30
|
-
static getCorrectedVerticalDimensions(top: number, height: number, windowHeight: number, verticalPosition: VerticalPosition, canShrink?: boolean
|
|
30
|
+
static getCorrectedVerticalDimensions(top: number, height: number, windowHeight: number, verticalPosition: VerticalPosition, canShrink?: boolean, margins?: {
|
|
31
|
+
top: number;
|
|
32
|
+
bottom: number;
|
|
33
|
+
}): {
|
|
31
34
|
height: number;
|
|
32
35
|
top: number;
|
|
33
36
|
};
|
|
@@ -31,6 +31,7 @@ export declare class TextAreaModel {
|
|
|
31
31
|
private onPropertyChangedCallback;
|
|
32
32
|
constructor(options: ITextArea);
|
|
33
33
|
setElement(element: HTMLTextAreaElement | null): void;
|
|
34
|
+
resetElement(): void;
|
|
34
35
|
getTextValue(): string;
|
|
35
36
|
onTextAreaChange(event: any): void;
|
|
36
37
|
onTextAreaInput(event: any): void;
|