survey-core 1.12.13 → 1.12.14
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 +5 -3
- package/defaultV2.css.map +1 -1
- package/defaultV2.fontless.css +5 -3
- 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 +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/icons/iconsV1.js +1 -1
- package/icons/iconsV1.min.js +1 -1
- package/icons/iconsV2.js +1 -1
- package/icons/iconsV2.min.js +1 -1
- package/modern.css +5 -3
- package/modern.css.map +1 -1
- package/modern.fontless.css +5 -3
- package/modern.fontless.css.map +1 -1
- package/modern.fontless.min.css +2 -2
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/plugins/bootstrap-integration/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 +345 -232
- 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/src/actions/action.d.ts +0 -2
- package/ts3.4/typings/packages/survey-core/src/base.d.ts +1 -1
- package/ts3.4/typings/packages/survey-core/src/dropdownListModel.d.ts +1 -1
- package/ts3.4/typings/packages/survey-core/src/dropdownMultiSelectListModel.d.ts +1 -1
- package/ts3.4/typings/packages/survey-core/src/list.d.ts +5 -0
- package/ts3.4/typings/packages/survey-core/src/page.d.ts +0 -1
- package/ts3.4/typings/packages/survey-core/src/panel.d.ts +6 -6
- package/ts3.4/typings/packages/survey-core/src/question.d.ts +6 -4
- package/ts3.4/typings/packages/survey-core/src/question_baseselect.d.ts +3 -4
- package/ts3.4/typings/packages/survey-core/src/question_comment.d.ts +3 -2
- package/ts3.4/typings/packages/survey-core/src/question_custom.d.ts +1 -1
- package/ts3.4/typings/packages/survey-core/src/question_dropdown.d.ts +3 -0
- package/ts3.4/typings/packages/survey-core/src/question_file.d.ts +1 -0
- package/ts3.4/typings/packages/survey-core/src/question_paneldynamic.d.ts +1 -1
- package/ts3.4/typings/packages/survey-core/src/question_tagbox.d.ts +4 -4
- package/ts3.4/typings/packages/survey-core/src/question_textbase.d.ts +1 -5
- package/ts3.4/typings/packages/survey-core/src/survey-element.d.ts +8 -2
- package/ts3.4/typings/packages/survey-core/src/survey.d.ts +4 -0
- package/ts3.4/typings/packages/survey-core/src/utils/utils.d.ts +2 -1
- package/typings/packages/survey-core/src/actions/action.d.ts +0 -2
- package/typings/packages/survey-core/src/base.d.ts +1 -1
- package/typings/packages/survey-core/src/dropdownListModel.d.ts +1 -1
- package/typings/packages/survey-core/src/dropdownMultiSelectListModel.d.ts +1 -1
- package/typings/packages/survey-core/src/list.d.ts +5 -0
- package/typings/packages/survey-core/src/page.d.ts +0 -1
- package/typings/packages/survey-core/src/panel.d.ts +6 -6
- package/typings/packages/survey-core/src/question.d.ts +6 -4
- package/typings/packages/survey-core/src/question_baseselect.d.ts +3 -4
- package/typings/packages/survey-core/src/question_comment.d.ts +3 -2
- package/typings/packages/survey-core/src/question_custom.d.ts +1 -1
- package/typings/packages/survey-core/src/question_dropdown.d.ts +3 -0
- package/typings/packages/survey-core/src/question_file.d.ts +1 -0
- package/typings/packages/survey-core/src/question_paneldynamic.d.ts +1 -1
- package/typings/packages/survey-core/src/question_tagbox.d.ts +5 -4
- package/typings/packages/survey-core/src/question_textbase.d.ts +1 -5
- package/typings/packages/survey-core/src/survey-element.d.ts +6 -2
- package/typings/packages/survey-core/src/survey.d.ts +4 -0
- package/typings/packages/survey-core/src/utils/utils.d.ts +2 -1
package/themes/solid-light.js
CHANGED
|
@@ -149,7 +149,6 @@ export interface IAction {
|
|
|
149
149
|
elementId?: string;
|
|
150
150
|
items?: Array<IAction>;
|
|
151
151
|
markerIconName?: string;
|
|
152
|
-
markerIconSize?: number;
|
|
153
152
|
showPopup?: () => void;
|
|
154
153
|
hidePopup?: () => void;
|
|
155
154
|
}
|
|
@@ -189,7 +188,6 @@ export declare abstract class BaseAction extends Base implements IAction {
|
|
|
189
188
|
iconName: string;
|
|
190
189
|
iconSize: number | string;
|
|
191
190
|
markerIconName: string;
|
|
192
|
-
markerIconSize: number;
|
|
193
191
|
css?: string;
|
|
194
192
|
minDimension: number;
|
|
195
193
|
maxDimension: number;
|
|
@@ -209,7 +209,7 @@ export declare class Base {
|
|
|
209
209
|
* @param name A property name.
|
|
210
210
|
* @param defaultValue *(Optional)* A value to return if the property is not found or does not have a value.
|
|
211
211
|
*/
|
|
212
|
-
getPropertyValue(name: string, defaultValue?: any): any;
|
|
212
|
+
getPropertyValue(name: string, defaultValue?: any, calcFunc?: () => any): any;
|
|
213
213
|
getDefaultPropertyValue(name: string): any;
|
|
214
214
|
hasDefaultPropertyValue(name: string): boolean;
|
|
215
215
|
resetPropertyValue(name: string): void;
|
|
@@ -21,7 +21,6 @@ export declare class DropdownListModel extends Base {
|
|
|
21
21
|
protected getFocusFirstInputSelector(): string;
|
|
22
22
|
private itemsSettings;
|
|
23
23
|
protected listModel: ListModel<ItemValue>;
|
|
24
|
-
protected popupCssClasses: string;
|
|
25
24
|
protected listModelFilterStringChanged: (newValue: string) => void;
|
|
26
25
|
private resetItemsSettings;
|
|
27
26
|
private setItems;
|
|
@@ -39,6 +38,7 @@ export declare class DropdownListModel extends Base {
|
|
|
39
38
|
protected setOnTextSearchCallbackForListModel(listModel: ListModel<ItemValue>): void;
|
|
40
39
|
protected createListModel(): ListModel<ItemValue>;
|
|
41
40
|
protected updateAfterListModelCreated(model: ListModel<ItemValue>): void;
|
|
41
|
+
protected getPopupCssClasses(): string;
|
|
42
42
|
updateCssClasses(popupCssClass: string, listCssClasses: any): void;
|
|
43
43
|
protected resetFilterString(): void;
|
|
44
44
|
clear(): void;
|
|
@@ -4,7 +4,6 @@ import { ItemValue } from "./itemvalue";
|
|
|
4
4
|
import { MultiSelectListModel } from "./multiSelectListModel";
|
|
5
5
|
import { Question } from "./question";
|
|
6
6
|
export declare class DropdownMultiSelectListModel extends DropdownListModel {
|
|
7
|
-
protected popupCssClasses: string;
|
|
8
7
|
filterStringPlaceholder: string;
|
|
9
8
|
closeOnSelect: boolean;
|
|
10
9
|
locStrsChanged(): void;
|
|
@@ -12,6 +11,7 @@ export declare class DropdownMultiSelectListModel extends DropdownListModel {
|
|
|
12
11
|
private syncFilterStringPlaceholder;
|
|
13
12
|
private getSelectedActions;
|
|
14
13
|
protected getFocusFirstInputSelector(): string;
|
|
14
|
+
protected getPopupCssClasses(): string;
|
|
15
15
|
protected createListModel(): MultiSelectListModel<ItemValue>;
|
|
16
16
|
protected resetFilterString(): void;
|
|
17
17
|
previousValue: any;
|
|
@@ -8,6 +8,7 @@ export declare let defaultListCss: {
|
|
|
8
8
|
loadingIndicator: string;
|
|
9
9
|
itemSelected: string;
|
|
10
10
|
itemGroup: string;
|
|
11
|
+
itemGroupSelected: string;
|
|
11
12
|
itemWithIcon: string;
|
|
12
13
|
itemDisabled: string;
|
|
13
14
|
itemFocused: string;
|
|
@@ -33,6 +34,7 @@ export interface IListModel {
|
|
|
33
34
|
selectedItem?: IAction;
|
|
34
35
|
elementId?: string;
|
|
35
36
|
locOwner?: ILocalizableOwner;
|
|
37
|
+
cssClasses?: any;
|
|
36
38
|
onFilterStringChangedCallback?: (text: string) => void;
|
|
37
39
|
onTextSearchCallback?: (item: IAction, textToSearch: string) => boolean;
|
|
38
40
|
}
|
|
@@ -67,11 +69,13 @@ export declare class ListModel<T extends BaseAction = Action> extends ActionCont
|
|
|
67
69
|
readonly visibleItems: Array<T>;
|
|
68
70
|
private readonly shouldProcessFilter: any;
|
|
69
71
|
private onFilterStringChanged;
|
|
72
|
+
private updateIsEmpty;
|
|
70
73
|
private scrollToItem;
|
|
71
74
|
constructor(items: Array<IAction> | IListModel, onSelectionChanged?: (item: T, ...params: any[]) => void, allowSelection?: boolean, selectedItem?: IAction, elementId?: string);
|
|
72
75
|
setOnFilterStringChangedCallback(callback: (text: string) => void): void;
|
|
73
76
|
setOnTextSearchCallback(callback: (item: T, textToSearch: string) => boolean): void;
|
|
74
77
|
setItems(items: Array<IAction>, sortByVisibleIndex?: boolean): void;
|
|
78
|
+
private updateActionsIds;
|
|
75
79
|
setSearchEnabled(newValue: boolean): void;
|
|
76
80
|
protected onSet(): void;
|
|
77
81
|
protected getDefaultCssClasses(): {
|
|
@@ -81,6 +85,7 @@ export declare class ListModel<T extends BaseAction = Action> extends ActionCont
|
|
|
81
85
|
loadingIndicator: string;
|
|
82
86
|
itemSelected: string;
|
|
83
87
|
itemGroup: string;
|
|
88
|
+
itemGroupSelected: string;
|
|
84
89
|
itemWithIcon: string;
|
|
85
90
|
itemDisabled: string;
|
|
86
91
|
itemFocused: string;
|
|
@@ -35,7 +35,6 @@ export declare class PageModel extends PanelModelBase implements IPage {
|
|
|
35
35
|
getMarkdownHtml(text: string, name: string): string;
|
|
36
36
|
passed: boolean;
|
|
37
37
|
protected removeFromParent(): void;
|
|
38
|
-
onFirstRendering(): void;
|
|
39
38
|
/*
|
|
40
39
|
* The visible index of the page. It has values from 0 to visible page count - 1.
|
|
41
40
|
* @see SurveyModel.visiblePages
|
|
@@ -77,8 +77,8 @@ export declare class PanelModelBase extends SurveyElement<Question> implements I
|
|
|
77
77
|
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
|
78
78
|
endLoadingFromJson(): void;
|
|
79
79
|
showTitle: boolean;
|
|
80
|
-
hasTextInTitle: boolean;
|
|
81
|
-
|
|
80
|
+
readonly hasTextInTitle: boolean;
|
|
81
|
+
private resetHasTextInTitle;
|
|
82
82
|
readonly hasTitle: boolean;
|
|
83
83
|
delete(doDispose?: boolean): void;
|
|
84
84
|
private deletePanel;
|
|
@@ -315,7 +315,7 @@ export declare class PanelModelBase extends SurveyElement<Question> implements I
|
|
|
315
315
|
createRowAndSetLazy(index: number): QuestionRowModel;
|
|
316
316
|
createRow(): QuestionRowModel;
|
|
317
317
|
onSurveyLoad(): void;
|
|
318
|
-
|
|
318
|
+
protected onFirstRenderingCore(): void;
|
|
319
319
|
updateRows(): void;
|
|
320
320
|
readonly rows: Array<QuestionRowModel>;
|
|
321
321
|
ensureRowsVisibility(): void;
|
|
@@ -476,8 +476,6 @@ export declare class PanelModel extends PanelModelBase implements IElement {
|
|
|
476
476
|
getType(): string;
|
|
477
477
|
readonly contentId: string;
|
|
478
478
|
getSurvey(live?: boolean): ISurvey;
|
|
479
|
-
onSurveyLoad(): void;
|
|
480
|
-
protected onSetData(): void;
|
|
481
479
|
readonly isPanel: boolean;
|
|
482
480
|
/*
|
|
483
481
|
* Returns a page to which the panel belongs and allows you to move this panel to a different page.
|
|
@@ -555,7 +553,9 @@ export declare class PanelModel extends PanelModelBase implements IElement {
|
|
|
555
553
|
startWithNewLine: boolean;
|
|
556
554
|
allowAdaptiveActions: boolean;
|
|
557
555
|
innerPaddingLeft: string;
|
|
558
|
-
|
|
556
|
+
protected calcPaddingLeft(): string;
|
|
557
|
+
protected calcPaddingRight(): string;
|
|
558
|
+
protected resetIndents(): void;
|
|
559
559
|
private getIndentSize;
|
|
560
560
|
clearOnDeletingContainer(): void;
|
|
561
561
|
readonly footerActions: Array<IAction>;
|
|
@@ -64,8 +64,7 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
64
64
|
private isReadyValue;
|
|
65
65
|
private commentElements;
|
|
66
66
|
private dependedQuestions;
|
|
67
|
-
|
|
68
|
-
private getCommentTextAreaOptions;
|
|
67
|
+
private commentTextAreaModelValue;
|
|
69
68
|
/**
|
|
70
69
|
* An event that is raised when the question's ready state has changed (expressions are evaluated, choices are loaded from a web resource specified by the `choicesByUrl` property, etc.).
|
|
71
70
|
*
|
|
@@ -92,6 +91,8 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
92
91
|
constructor(name: string);
|
|
93
92
|
protected getDefaultTitle(): string;
|
|
94
93
|
protected createLocTitleProperty(): LocalizableString;
|
|
94
|
+
readonly commentTextAreaModel: TextAreaModel;
|
|
95
|
+
private getCommentTextAreaOptions;
|
|
95
96
|
getSurvey(live?: boolean): ISurvey;
|
|
96
97
|
getValueName(): string;
|
|
97
98
|
/*
|
|
@@ -350,7 +351,7 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
350
351
|
commentPlaceholder: string;
|
|
351
352
|
commentPlaceHolder: string;
|
|
352
353
|
readonly renderedCommentPlaceholder: string;
|
|
353
|
-
private
|
|
354
|
+
private resetRenderedCommentPlaceholder;
|
|
354
355
|
getAllErrors(): Array<SurveyError>;
|
|
355
356
|
getErrorByType(errorType: string): SurveyError;
|
|
356
357
|
readonly customWidget: QuestionCustomWidget;
|
|
@@ -414,7 +415,8 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
414
415
|
protected updateCssClasses(res: any, css: any): void;
|
|
415
416
|
protected getCssType(): string;
|
|
416
417
|
readonly renderCssRoot: string;
|
|
417
|
-
|
|
418
|
+
protected calcPaddingLeft(): string;
|
|
419
|
+
protected calcPaddingRight(): string;
|
|
418
420
|
private getIndentSize;
|
|
419
421
|
/**
|
|
420
422
|
* Moves focus to the input field of this question.
|
|
@@ -12,8 +12,8 @@ import { TextAreaModel } from "./utils/text-area";
|
|
|
12
12
|
export declare class QuestionSelectBase extends Question {
|
|
13
13
|
visibleChoicesChangedCallback: () => void;
|
|
14
14
|
loadedChoicesFromServerCallback: () => void;
|
|
15
|
-
otherTextAreaModel: TextAreaModel;
|
|
16
15
|
renderedChoicesChangedCallback: () => void;
|
|
16
|
+
private otherTextAreaModelValue;
|
|
17
17
|
private filteredChoicesValue;
|
|
18
18
|
private conditionChoicesVisibleIfRunner;
|
|
19
19
|
private conditionChoicesEnableIfRunner;
|
|
@@ -31,10 +31,11 @@ export declare class QuestionSelectBase extends Question {
|
|
|
31
31
|
private waitingGetChoiceDisplayValueResponse;
|
|
32
32
|
private readonly waitingChoicesByURL: any;
|
|
33
33
|
protected selectedItemValues: any;
|
|
34
|
-
private getOtherTextAreaOptions;
|
|
35
34
|
constructor(name: string);
|
|
36
35
|
getType(): string;
|
|
37
36
|
dispose(): void;
|
|
37
|
+
readonly otherTextAreaModel: TextAreaModel;
|
|
38
|
+
private getOtherTextAreaOptions;
|
|
38
39
|
protected resetDependedQuestion(): void;
|
|
39
40
|
readonly otherId: string;
|
|
40
41
|
protected getCommentElementsId(): Array<string>;
|
|
@@ -495,8 +496,6 @@ export declare class QuestionSelectBase extends Question {
|
|
|
495
496
|
* [View Ranking Demo](https://surveyjs.io/form-library/examples/ranking-with-custom-items/ (linkStyle))
|
|
496
497
|
*/
|
|
497
498
|
itemComponent: string;
|
|
498
|
-
protected updateCssClasses(res: any, css: any): void;
|
|
499
|
-
protected calcCssClasses(css: any): any;
|
|
500
499
|
}
|
|
501
500
|
/**
|
|
502
501
|
* A base class for multiple-selection question types that can display choice items in multiple columns ([Checkbox](https://surveyjs.io/form-library/documentation/questioncheckboxmodel), [Radiogroup](https://surveyjs.io/form-library/documentation/questionradiogroupmodel), [Image Picker](https://surveyjs.io/form-library/documentation/questionimagepickermodel)).
|
|
@@ -7,9 +7,10 @@ import { TextAreaModel } from "./utils/text-area";
|
|
|
7
7
|
*/
|
|
8
8
|
export declare class QuestionCommentModel extends QuestionTextBase {
|
|
9
9
|
private element;
|
|
10
|
-
|
|
11
|
-
private getTextAreaOptions;
|
|
10
|
+
private textAreaModelValue;
|
|
12
11
|
constructor(name: string);
|
|
12
|
+
readonly textAreaModel: TextAreaModel;
|
|
13
|
+
private getTextAreaOptions;
|
|
13
14
|
/*
|
|
14
15
|
* Specifies the visible height of the comment area, measured in lines.
|
|
15
16
|
*
|
|
@@ -310,7 +310,7 @@ export declare abstract class QuestionCustomModelBase extends Question implement
|
|
|
310
310
|
protected createWrapper(): void;
|
|
311
311
|
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
312
312
|
itemValuePropertyChanged(item: ItemValue, name: string, oldValue: any, newValue: any): void;
|
|
313
|
-
|
|
313
|
+
protected onFirstRenderingCore(): void;
|
|
314
314
|
onHidingContent(): void;
|
|
315
315
|
getProgressInfo(): IProgressInfo;
|
|
316
316
|
protected abstract getElement(): SurveyElement;
|
|
@@ -116,12 +116,15 @@ export declare class QuestionDropdownModel extends QuestionSelectBase {
|
|
|
116
116
|
*/
|
|
117
117
|
choicesLazyLoadPageSize: number;
|
|
118
118
|
getControlClass(): string;
|
|
119
|
+
protected updateCssClasses(res: any, css: any): void;
|
|
120
|
+
protected calcCssClasses(css: any): any;
|
|
119
121
|
suggestedItem: ItemValue;
|
|
120
122
|
readonly selectedItemLocText: LocalizableString;
|
|
121
123
|
readonly inputFieldComponentName: string;
|
|
122
124
|
readonly showSelectedItemLocText: boolean;
|
|
123
125
|
readonly showInputFieldComponent: boolean;
|
|
124
126
|
private readonly selectedItemText: any;
|
|
127
|
+
private readonly useDropdownList: any;
|
|
125
128
|
dropdownListModel: DropdownListModel;
|
|
126
129
|
readonly popupModel: PopupModel;
|
|
127
130
|
onOpened: EventBase<QuestionDropdownModel>;
|
|
@@ -232,6 +232,7 @@ export declare class QuestionFileModel extends QuestionFileModelBase {
|
|
|
232
232
|
private cameraValue;
|
|
233
233
|
protected readonly camera: Camera;
|
|
234
234
|
canPreviewImage(fileItem: any): boolean;
|
|
235
|
+
private prevLoadedPreviewValue;
|
|
235
236
|
protected loadPreview(newValue: any): void;
|
|
236
237
|
private allFilesOk;
|
|
237
238
|
private isFileImage;
|
|
@@ -566,7 +566,7 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
|
566
566
|
private readonly showAddPanelButton: any;
|
|
567
567
|
private readonly wasNotRenderedInSurvey: any;
|
|
568
568
|
private readonly canBuildPanels: any;
|
|
569
|
-
|
|
569
|
+
protected onFirstRenderingCore(): void;
|
|
570
570
|
localeChanged(): void;
|
|
571
571
|
runCondition(values: HashTable<any>, properties: HashTable<any>): void;
|
|
572
572
|
runTriggers(name: string, value: any, keys?: any): void;
|
|
@@ -10,16 +10,14 @@ import { ItemValue } from "./itemvalue";
|
|
|
10
10
|
* [View Demo](https://surveyjs.io/form-library/examples/how-to-create-multiselect-tag-box/ (linkStyle))
|
|
11
11
|
*/
|
|
12
12
|
export declare class QuestionTagboxModel extends QuestionCheckboxModel {
|
|
13
|
-
|
|
13
|
+
private dropdownListModelValue;
|
|
14
14
|
private itemDisplayNameMap;
|
|
15
15
|
private deselectAllItemText;
|
|
16
16
|
constructor(name: string);
|
|
17
17
|
locStrsChanged(): void;
|
|
18
18
|
private updateReadOnlyText;
|
|
19
19
|
protected getDefaultItemComponent(): string;
|
|
20
|
-
|
|
21
|
-
protected onSetData(): void;
|
|
22
|
-
private createDropdownListModel;
|
|
20
|
+
dropdownListModel: DropdownMultiSelectListModel;
|
|
23
21
|
/**
|
|
24
22
|
* Specifies a comparison operation used to filter the drop-down list. Applies only if [`searchEnabled`](#searchEnabled) is `true`.
|
|
25
23
|
*
|
|
@@ -72,6 +70,8 @@ export declare class QuestionTagboxModel extends QuestionCheckboxModel {
|
|
|
72
70
|
readonly ariaRole: string;
|
|
73
71
|
readonly popupModel: PopupModel;
|
|
74
72
|
getControlClass(): string;
|
|
73
|
+
protected updateCssClasses(res: any, css: any): void;
|
|
74
|
+
protected calcCssClasses(css: any): any;
|
|
75
75
|
onOpened: EventBase<QuestionTagboxModel>;
|
|
76
76
|
onOpenedCallBack(): void;
|
|
77
77
|
protected hasUnknownValue(val: any, includeOther?: boolean, isFilteredChoices?: boolean, checkEmptyValue?: boolean): boolean;
|
|
@@ -2,7 +2,6 @@ import { Question } from "./question";
|
|
|
2
2
|
import { CssClassBuilder } from "./utils/cssClassBuilder";
|
|
3
3
|
import { LocalizableString } from "./localizablestring";
|
|
4
4
|
import { Base } from "./base";
|
|
5
|
-
import { ISurveyImpl } from "./base-interfaces";
|
|
6
5
|
export declare class CharacterCounter extends Base {
|
|
7
6
|
remainingCharacterCounter: string;
|
|
8
7
|
updateRemainingCharacterCounter(newValue: string, maxLength: number): void;
|
|
@@ -44,13 +43,10 @@ export declare class QuestionTextBase extends Question {
|
|
|
44
43
|
textUpdateMode: string;
|
|
45
44
|
protected getIsInputTextUpdate(): boolean;
|
|
46
45
|
readonly renderedPlaceholder: string;
|
|
47
|
-
protected setRenderedPlaceholder(val: string): void;
|
|
48
46
|
protected onReadOnlyChanged(): void;
|
|
49
|
-
onSurveyLoad(): void;
|
|
50
47
|
localeChanged(): void;
|
|
51
|
-
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
|
52
48
|
protected supportEmptyValidation(): boolean;
|
|
53
|
-
protected
|
|
49
|
+
protected resetRenderedPlaceholder(): void;
|
|
54
50
|
protected hasPlaceholder(): boolean;
|
|
55
51
|
protected setNewValue(newValue: any): void;
|
|
56
52
|
protected setQuestionValue(newValue: any, updateIsAnswered?: boolean): void;
|
|
@@ -246,8 +246,10 @@ export declare class SurveyElement<E = any> extends SurveyElementCore implements
|
|
|
246
246
|
readOnly: boolean;
|
|
247
247
|
protected onReadOnlyChanged(): void;
|
|
248
248
|
private readonly css: any;
|
|
249
|
-
|
|
249
|
+
private isCssValueCalculating;
|
|
250
|
+
readonly cssClassesValue: any;
|
|
250
251
|
private ensureCssClassesValue;
|
|
252
|
+
private createCssClassesValue;
|
|
251
253
|
/*
|
|
252
254
|
* Returns an object in which keys are UI elements and values are CSS classes applied to them.
|
|
253
255
|
*
|
|
@@ -299,6 +301,7 @@ export declare class SurveyElement<E = any> extends SurveyElementCore implements
|
|
|
299
301
|
private wasRenderedValue;
|
|
300
302
|
readonly wasRendered: boolean;
|
|
301
303
|
onFirstRendering(): void;
|
|
304
|
+
protected onFirstRenderingCore(): void;
|
|
302
305
|
endLoadingFromJson(): void;
|
|
303
306
|
setVisibleIndex(index: number): number;
|
|
304
307
|
delete(doDispose: boolean): void;
|
|
@@ -385,8 +388,11 @@ export declare class SurveyElement<E = any> extends SurveyElementCore implements
|
|
|
385
388
|
*/
|
|
386
389
|
rightIndent: number;
|
|
387
390
|
getRootStyle(): object;
|
|
388
|
-
paddingLeft: string;
|
|
391
|
+
readonly paddingLeft: string;
|
|
392
|
+
protected calcPaddingLeft(): string;
|
|
389
393
|
paddingRight: string;
|
|
394
|
+
protected calcPaddingRight(): string;
|
|
395
|
+
protected resetIndents(): void;
|
|
390
396
|
allowRootStyle: boolean;
|
|
391
397
|
rootStyle: any;
|
|
392
398
|
updateRootStyle(): void;
|
|
@@ -2693,6 +2693,10 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2693
2693
|
*/
|
|
2694
2694
|
width: string;
|
|
2695
2695
|
readonly renderedWidth: string;
|
|
2696
|
+
widthScale: number;
|
|
2697
|
+
responsiveStartWidth: number;
|
|
2698
|
+
setResponsiveStartWidth(width: number): void;
|
|
2699
|
+
readonly isScaled: boolean;
|
|
2696
2700
|
readonly timerInfo: {
|
|
2697
2701
|
spent: number;
|
|
2698
2702
|
limit?: number;
|
|
@@ -41,6 +41,7 @@ declare function getFirstVisibleChild(el: HTMLElement): Element;
|
|
|
41
41
|
declare function findParentByClassNames(element: HTMLElement, classNames: Array<string>): Element;
|
|
42
42
|
export declare function sanitizeEditableContent(element: any, cleanLineBreaks?: boolean): void;
|
|
43
43
|
declare function mergeValues(src: any, dest: any): void;
|
|
44
|
+
declare function updateListCssValues(res: any, css: any): void;
|
|
44
45
|
export declare class Logger {
|
|
45
46
|
private _result;
|
|
46
47
|
log(action: string): void;
|
|
@@ -73,4 +74,4 @@ export declare function setPropertiesOnElementForAnimation(el: HTMLElement, styl
|
|
|
73
74
|
export declare function prepareElementForVerticalAnimation(el: HTMLElement): void;
|
|
74
75
|
export declare function cleanHtmlElementAfterAnimation(el: HTMLElement): void;
|
|
75
76
|
export declare function roundTo2Decimals(number: number): number;
|
|
76
|
-
export { mergeValues, getElementWidth, isContainerVisible, classesToSelector, compareVersions, confirmAction, confirmActionAsync, detectIEOrEdge, detectIEBrowser, loadFileFromBase64, isMobile, isShadowDOM, getElement, isElementVisible, findScrollableParent, activateLazyRenderingChecks, navigateToUrl, wrapUrlForBackgroundImage, createSvg, getIconNameFromProxy, increaseHeightByContent, getOriginalEvent, preventDefaults, findParentByClassNames, getFirstVisibleChild, chooseFiles, isBase64URL, renamedIcons };
|
|
77
|
+
export { mergeValues, updateListCssValues, getElementWidth, isContainerVisible, classesToSelector, compareVersions, confirmAction, confirmActionAsync, detectIEOrEdge, detectIEBrowser, loadFileFromBase64, isMobile, isShadowDOM, getElement, isElementVisible, findScrollableParent, activateLazyRenderingChecks, navigateToUrl, wrapUrlForBackgroundImage, createSvg, getIconNameFromProxy, increaseHeightByContent, getOriginalEvent, preventDefaults, findParentByClassNames, getFirstVisibleChild, chooseFiles, isBase64URL, renamedIcons };
|
|
@@ -149,7 +149,6 @@ export interface IAction {
|
|
|
149
149
|
elementId?: string;
|
|
150
150
|
items?: Array<IAction>;
|
|
151
151
|
markerIconName?: string;
|
|
152
|
-
markerIconSize?: number;
|
|
153
152
|
showPopup?: () => void;
|
|
154
153
|
hidePopup?: () => void;
|
|
155
154
|
}
|
|
@@ -189,7 +188,6 @@ export declare abstract class BaseAction extends Base implements IAction {
|
|
|
189
188
|
iconName: string;
|
|
190
189
|
iconSize: number | string;
|
|
191
190
|
markerIconName: string;
|
|
192
|
-
markerIconSize: number;
|
|
193
191
|
css?: string;
|
|
194
192
|
minDimension: number;
|
|
195
193
|
maxDimension: number;
|
|
@@ -211,7 +211,7 @@ export declare class Base {
|
|
|
211
211
|
* @param name A property name.
|
|
212
212
|
* @param defaultValue *(Optional)* A value to return if the property is not found or does not have a value.
|
|
213
213
|
*/
|
|
214
|
-
getPropertyValue(name: string, defaultValue?: any): any;
|
|
214
|
+
getPropertyValue(name: string, defaultValue?: any, calcFunc?: () => any): any;
|
|
215
215
|
getDefaultPropertyValue(name: string): any;
|
|
216
216
|
hasDefaultPropertyValue(name: string): boolean;
|
|
217
217
|
resetPropertyValue(name: string): void;
|
|
@@ -21,7 +21,6 @@ export declare class DropdownListModel extends Base {
|
|
|
21
21
|
protected getFocusFirstInputSelector(): string;
|
|
22
22
|
private itemsSettings;
|
|
23
23
|
protected listModel: ListModel<ItemValue>;
|
|
24
|
-
protected popupCssClasses: string;
|
|
25
24
|
protected listModelFilterStringChanged: (newValue: string) => void;
|
|
26
25
|
private resetItemsSettings;
|
|
27
26
|
private setItems;
|
|
@@ -39,6 +38,7 @@ export declare class DropdownListModel extends Base {
|
|
|
39
38
|
protected setOnTextSearchCallbackForListModel(listModel: ListModel<ItemValue>): void;
|
|
40
39
|
protected createListModel(): ListModel<ItemValue>;
|
|
41
40
|
protected updateAfterListModelCreated(model: ListModel<ItemValue>): void;
|
|
41
|
+
protected getPopupCssClasses(): string;
|
|
42
42
|
updateCssClasses(popupCssClass: string, listCssClasses: any): void;
|
|
43
43
|
protected resetFilterString(): void;
|
|
44
44
|
clear(): void;
|
|
@@ -4,7 +4,6 @@ import { ItemValue } from "./itemvalue";
|
|
|
4
4
|
import { MultiSelectListModel } from "./multiSelectListModel";
|
|
5
5
|
import { Question } from "./question";
|
|
6
6
|
export declare class DropdownMultiSelectListModel extends DropdownListModel {
|
|
7
|
-
protected popupCssClasses: string;
|
|
8
7
|
filterStringPlaceholder: string;
|
|
9
8
|
closeOnSelect: boolean;
|
|
10
9
|
locStrsChanged(): void;
|
|
@@ -12,6 +11,7 @@ export declare class DropdownMultiSelectListModel extends DropdownListModel {
|
|
|
12
11
|
private syncFilterStringPlaceholder;
|
|
13
12
|
private getSelectedActions;
|
|
14
13
|
protected getFocusFirstInputSelector(): string;
|
|
14
|
+
protected getPopupCssClasses(): string;
|
|
15
15
|
protected createListModel(): MultiSelectListModel<ItemValue>;
|
|
16
16
|
protected resetFilterString(): void;
|
|
17
17
|
previousValue: any;
|
|
@@ -8,6 +8,7 @@ export declare let defaultListCss: {
|
|
|
8
8
|
loadingIndicator: string;
|
|
9
9
|
itemSelected: string;
|
|
10
10
|
itemGroup: string;
|
|
11
|
+
itemGroupSelected: string;
|
|
11
12
|
itemWithIcon: string;
|
|
12
13
|
itemDisabled: string;
|
|
13
14
|
itemFocused: string;
|
|
@@ -33,6 +34,7 @@ export interface IListModel {
|
|
|
33
34
|
selectedItem?: IAction;
|
|
34
35
|
elementId?: string;
|
|
35
36
|
locOwner?: ILocalizableOwner;
|
|
37
|
+
cssClasses?: any;
|
|
36
38
|
onFilterStringChangedCallback?: (text: string) => void;
|
|
37
39
|
onTextSearchCallback?: (item: IAction, textToSearch: string) => boolean;
|
|
38
40
|
}
|
|
@@ -67,11 +69,13 @@ export declare class ListModel<T extends BaseAction = Action> extends ActionCont
|
|
|
67
69
|
get visibleItems(): Array<T>;
|
|
68
70
|
private get shouldProcessFilter();
|
|
69
71
|
private onFilterStringChanged;
|
|
72
|
+
private updateIsEmpty;
|
|
70
73
|
private scrollToItem;
|
|
71
74
|
constructor(items: Array<IAction> | IListModel, onSelectionChanged?: (item: T, ...params: any[]) => void, allowSelection?: boolean, selectedItem?: IAction, elementId?: string);
|
|
72
75
|
setOnFilterStringChangedCallback(callback: (text: string) => void): void;
|
|
73
76
|
setOnTextSearchCallback(callback: (item: T, textToSearch: string) => boolean): void;
|
|
74
77
|
setItems(items: Array<IAction>, sortByVisibleIndex?: boolean): void;
|
|
78
|
+
private updateActionsIds;
|
|
75
79
|
setSearchEnabled(newValue: boolean): void;
|
|
76
80
|
protected onSet(): void;
|
|
77
81
|
protected getDefaultCssClasses(): {
|
|
@@ -81,6 +85,7 @@ export declare class ListModel<T extends BaseAction = Action> extends ActionCont
|
|
|
81
85
|
loadingIndicator: string;
|
|
82
86
|
itemSelected: string;
|
|
83
87
|
itemGroup: string;
|
|
88
|
+
itemGroupSelected: string;
|
|
84
89
|
itemWithIcon: string;
|
|
85
90
|
itemDisabled: string;
|
|
86
91
|
itemFocused: string;
|
|
@@ -38,7 +38,6 @@ export declare class PageModel extends PanelModelBase implements IPage {
|
|
|
38
38
|
get passed(): boolean;
|
|
39
39
|
set passed(val: boolean);
|
|
40
40
|
protected removeFromParent(): void;
|
|
41
|
-
onFirstRendering(): void;
|
|
42
41
|
/**
|
|
43
42
|
* The visible index of the page. It has values from 0 to visible page count - 1.
|
|
44
43
|
* @see SurveyModel.visiblePages
|
|
@@ -81,8 +81,8 @@ export declare class PanelModelBase extends SurveyElement<Question> implements I
|
|
|
81
81
|
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
|
82
82
|
endLoadingFromJson(): void;
|
|
83
83
|
showTitle: boolean;
|
|
84
|
-
hasTextInTitle: boolean;
|
|
85
|
-
|
|
84
|
+
get hasTextInTitle(): boolean;
|
|
85
|
+
private resetHasTextInTitle;
|
|
86
86
|
get hasTitle(): boolean;
|
|
87
87
|
delete(doDispose?: boolean): void;
|
|
88
88
|
private deletePanel;
|
|
@@ -327,7 +327,7 @@ export declare class PanelModelBase extends SurveyElement<Question> implements I
|
|
|
327
327
|
createRowAndSetLazy(index: number): QuestionRowModel;
|
|
328
328
|
createRow(): QuestionRowModel;
|
|
329
329
|
onSurveyLoad(): void;
|
|
330
|
-
|
|
330
|
+
protected onFirstRenderingCore(): void;
|
|
331
331
|
updateRows(): void;
|
|
332
332
|
get rows(): Array<QuestionRowModel>;
|
|
333
333
|
ensureRowsVisibility(): void;
|
|
@@ -491,8 +491,6 @@ export declare class PanelModel extends PanelModelBase implements IElement {
|
|
|
491
491
|
getType(): string;
|
|
492
492
|
get contentId(): string;
|
|
493
493
|
getSurvey(live?: boolean): ISurvey;
|
|
494
|
-
onSurveyLoad(): void;
|
|
495
|
-
protected onSetData(): void;
|
|
496
494
|
get isPanel(): boolean;
|
|
497
495
|
/**
|
|
498
496
|
* Returns a page to which the panel belongs and allows you to move this panel to a different page.
|
|
@@ -578,7 +576,9 @@ export declare class PanelModel extends PanelModelBase implements IElement {
|
|
|
578
576
|
set allowAdaptiveActions(val: boolean);
|
|
579
577
|
get innerPaddingLeft(): string;
|
|
580
578
|
set innerPaddingLeft(val: string);
|
|
581
|
-
|
|
579
|
+
protected calcPaddingLeft(): string;
|
|
580
|
+
protected calcPaddingRight(): string;
|
|
581
|
+
protected resetIndents(): void;
|
|
582
582
|
private getIndentSize;
|
|
583
583
|
clearOnDeletingContainer(): void;
|
|
584
584
|
get footerActions(): Array<IAction>;
|