survey-core 1.12.13 → 1.12.15
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 +27 -4
- package/defaultV2.css.map +1 -1
- package/defaultV2.fontless.css +27 -4
- package/defaultV2.fontless.css.map +1 -1
- package/defaultV2.fontless.min.css +2 -2
- package/defaultV2.min.css +2 -2
- package/i18n/arabic.js +1 -1
- package/i18n/arabic.min.js +1 -1
- package/i18n/basque.js +1 -1
- package/i18n/basque.min.js +1 -1
- package/i18n/bulgarian.js +1 -1
- package/i18n/bulgarian.min.js +1 -1
- package/i18n/catalan.js +1 -1
- package/i18n/catalan.min.js +1 -1
- package/i18n/croatian.js +1 -1
- package/i18n/croatian.min.js +1 -1
- package/i18n/czech.js +1 -1
- package/i18n/czech.min.js +1 -1
- package/i18n/danish.js +1 -1
- package/i18n/danish.min.js +1 -1
- package/i18n/dutch.js +1 -1
- package/i18n/dutch.min.js +1 -1
- package/i18n/english.js +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 +8 -4
- package/modern.css.map +1 -1
- package/modern.fontless.css +8 -4
- 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 +377 -249
- 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/core-wo-model.d.ts +1 -1
- package/ts3.4/typings/packages/survey-core/src/actions/action.d.ts +2 -4
- 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 +8 -1
- 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 +6 -0
- package/ts3.4/typings/packages/survey-core/src/surveyStrings.d.ts +7 -1
- package/ts3.4/typings/packages/survey-core/src/utils/utils.d.ts +2 -1
- package/typings/packages/survey-core/entries/chunks/core-wo-model.d.ts +1 -1
- package/typings/packages/survey-core/src/actions/action.d.ts +2 -4
- 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 +8 -1
- 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 +6 -0
- package/typings/packages/survey-core/src/surveyStrings.d.ts +7 -1
- package/typings/packages/survey-core/src/utils/utils.d.ts +2 -1
|
@@ -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;
|
|
@@ -108,7 +113,9 @@ export declare class ListModel<T extends BaseAction = Action> extends ActionCont
|
|
|
108
113
|
protected areSameItems(item1: IAction, item2: IAction): boolean;
|
|
109
114
|
getListClass: () => string;
|
|
110
115
|
getItemClass: (itemValue: T) => string;
|
|
111
|
-
|
|
116
|
+
getItemStyle: (itemValue: any) => {
|
|
117
|
+
"--sjs-list-item-level": number;
|
|
118
|
+
};
|
|
112
119
|
get filterStringPlaceholder(): string;
|
|
113
120
|
get emptyMessage(): string;
|
|
114
121
|
get scrollableContainer(): HTMLElement;
|
|
@@ -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>;
|
|
@@ -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
|
*
|
|
@@ -93,6 +92,8 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
93
92
|
constructor(name: string);
|
|
94
93
|
protected getDefaultTitle(): string;
|
|
95
94
|
protected createLocTitleProperty(): LocalizableString;
|
|
95
|
+
get commentTextAreaModel(): TextAreaModel;
|
|
96
|
+
private getCommentTextAreaOptions;
|
|
96
97
|
getSurvey(live?: boolean): ISurvey;
|
|
97
98
|
getValueName(): string;
|
|
98
99
|
/**
|
|
@@ -364,7 +365,7 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
364
365
|
get commentPlaceHolder(): string;
|
|
365
366
|
set commentPlaceHolder(newValue: string);
|
|
366
367
|
get renderedCommentPlaceholder(): string;
|
|
367
|
-
private
|
|
368
|
+
private resetRenderedCommentPlaceholder;
|
|
368
369
|
getAllErrors(): Array<SurveyError>;
|
|
369
370
|
getErrorByType(errorType: string): SurveyError;
|
|
370
371
|
get customWidget(): QuestionCustomWidget;
|
|
@@ -429,7 +430,8 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
429
430
|
protected updateCssClasses(res: any, css: any): void;
|
|
430
431
|
protected getCssType(): string;
|
|
431
432
|
get renderCssRoot(): string;
|
|
432
|
-
|
|
433
|
+
protected calcPaddingLeft(): string;
|
|
434
|
+
protected calcPaddingRight(): string;
|
|
433
435
|
private getIndentSize;
|
|
434
436
|
/**
|
|
435
437
|
* 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 get waitingChoicesByURL();
|
|
33
33
|
protected selectedItemValues: any;
|
|
34
|
-
private getOtherTextAreaOptions;
|
|
35
34
|
constructor(name: string);
|
|
36
35
|
getType(): string;
|
|
37
36
|
dispose(): void;
|
|
37
|
+
get otherTextAreaModel(): TextAreaModel;
|
|
38
|
+
private getOtherTextAreaOptions;
|
|
38
39
|
protected resetDependedQuestion(): void;
|
|
39
40
|
get otherId(): string;
|
|
40
41
|
protected getCommentElementsId(): Array<string>;
|
|
@@ -524,8 +525,6 @@ export declare class QuestionSelectBase extends Question {
|
|
|
524
525
|
*/
|
|
525
526
|
get itemComponent(): string;
|
|
526
527
|
set itemComponent(value: string);
|
|
527
|
-
protected updateCssClasses(res: any, css: any): void;
|
|
528
|
-
protected calcCssClasses(css: any): any;
|
|
529
528
|
}
|
|
530
529
|
/**
|
|
531
530
|
* 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
|
+
get 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;
|
|
@@ -124,12 +124,15 @@ export declare class QuestionDropdownModel extends QuestionSelectBase {
|
|
|
124
124
|
*/
|
|
125
125
|
choicesLazyLoadPageSize: number;
|
|
126
126
|
getControlClass(): string;
|
|
127
|
+
protected updateCssClasses(res: any, css: any): void;
|
|
128
|
+
protected calcCssClasses(css: any): any;
|
|
127
129
|
suggestedItem: ItemValue;
|
|
128
130
|
get selectedItemLocText(): LocalizableString;
|
|
129
131
|
get inputFieldComponentName(): string;
|
|
130
132
|
get showSelectedItemLocText(): boolean;
|
|
131
133
|
get showInputFieldComponent(): boolean;
|
|
132
134
|
private get selectedItemText();
|
|
135
|
+
private get useDropdownList();
|
|
133
136
|
get dropdownListModel(): DropdownListModel;
|
|
134
137
|
set dropdownListModel(val: DropdownListModel);
|
|
135
138
|
get popupModel(): PopupModel;
|
|
@@ -245,6 +245,7 @@ export declare class QuestionFileModel extends QuestionFileModelBase {
|
|
|
245
245
|
private cameraValue;
|
|
246
246
|
protected get camera(): Camera;
|
|
247
247
|
canPreviewImage(fileItem: any): boolean;
|
|
248
|
+
private prevLoadedPreviewValue;
|
|
248
249
|
protected loadPreview(newValue: any): void;
|
|
249
250
|
private allFilesOk;
|
|
250
251
|
private isFileImage;
|
|
@@ -598,7 +598,7 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
|
598
598
|
private get showAddPanelButton();
|
|
599
599
|
private get wasNotRenderedInSurvey();
|
|
600
600
|
private get canBuildPanels();
|
|
601
|
-
|
|
601
|
+
protected onFirstRenderingCore(): void;
|
|
602
602
|
localeChanged(): void;
|
|
603
603
|
runCondition(values: HashTable<any>, properties: HashTable<any>): void;
|
|
604
604
|
runTriggers(name: string, value: any, keys?: any): void;
|
|
@@ -10,16 +10,15 @@ 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
|
-
|
|
22
|
-
private createDropdownListModel;
|
|
20
|
+
get dropdownListModel(): DropdownMultiSelectListModel;
|
|
21
|
+
set dropdownListModel(val: DropdownMultiSelectListModel);
|
|
23
22
|
/**
|
|
24
23
|
* Specifies a comparison operation used to filter the drop-down list. Applies only if [`searchEnabled`](#searchEnabled) is `true`.
|
|
25
24
|
*
|
|
@@ -75,6 +74,8 @@ export declare class QuestionTagboxModel extends QuestionCheckboxModel {
|
|
|
75
74
|
get ariaRole(): string;
|
|
76
75
|
get popupModel(): PopupModel;
|
|
77
76
|
getControlClass(): string;
|
|
77
|
+
protected updateCssClasses(res: any, css: any): void;
|
|
78
|
+
protected calcCssClasses(css: any): any;
|
|
78
79
|
onOpened: EventBase<QuestionTagboxModel>;
|
|
79
80
|
onOpenedCallBack(): void;
|
|
80
81
|
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;
|
|
@@ -47,13 +46,10 @@ export declare class QuestionTextBase extends Question {
|
|
|
47
46
|
set textUpdateMode(val: string);
|
|
48
47
|
protected getIsInputTextUpdate(): boolean;
|
|
49
48
|
get renderedPlaceholder(): string;
|
|
50
|
-
protected setRenderedPlaceholder(val: string): void;
|
|
51
49
|
protected onReadOnlyChanged(): void;
|
|
52
|
-
onSurveyLoad(): void;
|
|
53
50
|
localeChanged(): void;
|
|
54
|
-
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
|
55
51
|
protected supportEmptyValidation(): boolean;
|
|
56
|
-
protected
|
|
52
|
+
protected resetRenderedPlaceholder(): void;
|
|
57
53
|
protected hasPlaceholder(): boolean;
|
|
58
54
|
protected setNewValue(newValue: any): void;
|
|
59
55
|
protected setQuestionValue(newValue: any, updateIsAnswered?: boolean): void;
|
|
@@ -250,9 +250,10 @@ export declare class SurveyElement<E = any> extends SurveyElementCore implements
|
|
|
250
250
|
set readOnly(val: boolean);
|
|
251
251
|
protected onReadOnlyChanged(): void;
|
|
252
252
|
private get css();
|
|
253
|
+
private isCssValueCalculating;
|
|
253
254
|
get cssClassesValue(): any;
|
|
254
|
-
set cssClassesValue(val: any);
|
|
255
255
|
private ensureCssClassesValue;
|
|
256
|
+
private createCssClassesValue;
|
|
256
257
|
/**
|
|
257
258
|
* Returns an object in which keys are UI elements and values are CSS classes applied to them.
|
|
258
259
|
*
|
|
@@ -307,6 +308,7 @@ export declare class SurveyElement<E = any> extends SurveyElementCore implements
|
|
|
307
308
|
private wasRenderedValue;
|
|
308
309
|
get wasRendered(): boolean;
|
|
309
310
|
onFirstRendering(): void;
|
|
311
|
+
protected onFirstRenderingCore(): void;
|
|
310
312
|
endLoadingFromJson(): void;
|
|
311
313
|
setVisibleIndex(index: number): number;
|
|
312
314
|
delete(doDispose: boolean): void;
|
|
@@ -401,9 +403,11 @@ export declare class SurveyElement<E = any> extends SurveyElementCore implements
|
|
|
401
403
|
set rightIndent(val: number);
|
|
402
404
|
getRootStyle(): object;
|
|
403
405
|
get paddingLeft(): string;
|
|
404
|
-
|
|
406
|
+
protected calcPaddingLeft(): string;
|
|
405
407
|
get paddingRight(): string;
|
|
406
408
|
set paddingRight(val: string);
|
|
409
|
+
protected calcPaddingRight(): string;
|
|
410
|
+
protected resetIndents(): void;
|
|
407
411
|
allowRootStyle: boolean;
|
|
408
412
|
rootStyle: any;
|
|
409
413
|
updateRootStyle(): void;
|
|
@@ -2787,6 +2787,12 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2787
2787
|
get width(): string;
|
|
2788
2788
|
set width(val: string);
|
|
2789
2789
|
get renderedWidth(): string;
|
|
2790
|
+
widthScale: number;
|
|
2791
|
+
staticStartWidth: number;
|
|
2792
|
+
setStaticStartWidth(width: number): void;
|
|
2793
|
+
responsiveStartWidth: number;
|
|
2794
|
+
setResponsiveStartWidth(width: number): void;
|
|
2795
|
+
get isScaled(): boolean;
|
|
2790
2796
|
get timerInfo(): {
|
|
2791
2797
|
spent: number;
|
|
2792
2798
|
limit?: number;
|
|
@@ -16,7 +16,13 @@ export declare var surveyLocalization: {
|
|
|
16
16
|
supportedLocales: any[];
|
|
17
17
|
useEnglishNames: boolean;
|
|
18
18
|
showNamesInEnglish: boolean;
|
|
19
|
-
setupLocale(
|
|
19
|
+
setupLocale(localeConfig: {
|
|
20
|
+
localeCode: string;
|
|
21
|
+
strings: any;
|
|
22
|
+
nativeName: string;
|
|
23
|
+
englishName: string;
|
|
24
|
+
rtl?: boolean;
|
|
25
|
+
}): void;
|
|
20
26
|
currentLocale: string;
|
|
21
27
|
defaultLocale: string;
|
|
22
28
|
getLocaleStrings(loc: string): any;
|
|
@@ -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 };
|