survey-core 1.9.120 → 1.9.121
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 +2 -1
- package/defaultV2.css.map +1 -1
- package/defaultV2.fontless.css +2 -1
- 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/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 +3 -1
- package/modern.css.map +1 -1
- package/modern.fontless.css +3 -1
- package/modern.fontless.css.map +1 -1
- package/modern.fontless.min.css +2 -2
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/plugins/bootstrap-integration.js +1 -1
- package/plugins/bootstrap-integration.min.js +1 -1
- package/plugins/bootstrap-material-integration.js +1 -1
- package/plugins/bootstrap-material-integration.min.js +1 -1
- package/survey.core.js +152 -78
- package/survey.core.js.map +1 -1
- package/survey.core.min.js +3 -3
- package/survey.css +1 -1
- package/survey.i18n.js +1 -1
- package/survey.i18n.min.js +1 -1
- package/survey.min.css +1 -1
- package/themes/borderless-dark-panelless.js +1 -1
- package/themes/borderless-dark-panelless.min.js +1 -1
- package/themes/borderless-dark.js +1 -1
- package/themes/borderless-dark.min.js +1 -1
- package/themes/borderless-light-panelless..js +1 -1
- package/themes/borderless-light-panelless..min.js +1 -1
- package/themes/borderless-light.js +1 -1
- package/themes/borderless-light.min.js +1 -1
- package/themes/contrast-dark-panelless.js +1 -1
- package/themes/contrast-dark-panelless.min.js +1 -1
- package/themes/contrast-dark.js +1 -1
- package/themes/contrast-dark.min.js +1 -1
- package/themes/contrast-light-panelless.js +1 -1
- package/themes/contrast-light-panelless.min.js +1 -1
- package/themes/contrast-light.js +1 -1
- package/themes/contrast-light.min.js +1 -1
- package/themes/default-dark-panelless.js +1 -1
- package/themes/default-dark-panelless.min.js +1 -1
- package/themes/default-dark.js +1 -1
- package/themes/default-dark.min.js +1 -1
- package/themes/default-light-panelless.js +1 -1
- package/themes/default-light-panelless.min.js +1 -1
- package/themes/default-light.js +1 -1
- package/themes/default-light.min.js +1 -1
- package/themes/doubleborder-dark-panelless.js +1 -1
- package/themes/doubleborder-dark-panelless.min.js +1 -1
- package/themes/doubleborder-dark.js +1 -1
- package/themes/doubleborder-dark.min.js +1 -1
- package/themes/doubleborder-light-panelles.js +1 -1
- package/themes/doubleborder-light-panelles.min.js +1 -1
- package/themes/doubleborder-light.js +1 -1
- package/themes/doubleborder-light.min.js +1 -1
- package/themes/flat-dark-panelless.js +1 -1
- package/themes/flat-dark-panelless.min.js +1 -1
- package/themes/flat-dark.js +1 -1
- package/themes/flat-dark.min.js +1 -1
- package/themes/flat-light-panelless.js +1 -1
- package/themes/flat-light-panelless.min.js +1 -1
- package/themes/flat-light.js +1 -1
- package/themes/flat-light.min.js +1 -1
- package/themes/index.js +1 -1
- package/themes/index.min.js +1 -1
- package/themes/layered-dark-panelless.js +1 -1
- package/themes/layered-dark-panelless.min.js +1 -1
- package/themes/layered-dark.js +1 -1
- package/themes/layered-dark.min.js +1 -1
- package/themes/layered-light-panelless.js +1 -1
- package/themes/layered-light-panelless.min.js +1 -1
- package/themes/layered-light.js +1 -1
- package/themes/layered-light.min.js +1 -1
- package/themes/plain-dark-panelless.js +1 -1
- package/themes/plain-dark-panelless.min.js +1 -1
- package/themes/plain-dark.js +1 -1
- package/themes/plain-dark.min.js +1 -1
- package/themes/plain-light-panelless.js +1 -1
- package/themes/plain-light-panelless.min.js +1 -1
- package/themes/plain-light.js +1 -1
- package/themes/plain-light.min.js +1 -1
- package/themes/sharp-dark-panelless.js +1 -1
- package/themes/sharp-dark-panelless.min.js +1 -1
- package/themes/sharp-dark.js +1 -1
- package/themes/sharp-dark.min.js +1 -1
- package/themes/sharp-light-panelless.js +1 -1
- package/themes/sharp-light-panelless.min.js +1 -1
- package/themes/sharp-light.js +1 -1
- package/themes/sharp-light.min.js +1 -1
- package/themes/solid-dark-panelless.js +1 -1
- package/themes/solid-dark-panelless.min.js +1 -1
- package/themes/solid-dark.js +1 -1
- package/themes/solid-dark.min.js +1 -1
- package/themes/solid-light-panelless.js +1 -1
- package/themes/solid-light-panelless.min.js +1 -1
- package/themes/solid-light.js +1 -1
- package/themes/solid-light.min.js +1 -1
- package/themes/three-dimensional-dark-panelless.js +1 -1
- package/themes/three-dimensional-dark-panelless.min.js +1 -1
- package/themes/three-dimensional-dark.js +1 -1
- package/themes/three-dimensional-dark.min.js +1 -1
- package/themes/three-dimensional-light-panelless.js +1 -1
- package/themes/three-dimensional-light-panelless.min.js +1 -1
- package/themes/three-dimensional-light.js +1 -1
- package/themes/three-dimensional-light.min.js +1 -1
- package/ts3.4/typings/actions/adaptive-container.d.ts +1 -1
- package/ts3.4/typings/actions/container.d.ts +1 -1
- package/ts3.4/typings/panel.d.ts +2 -2
- package/ts3.4/typings/question.d.ts +1 -1
- package/ts3.4/typings/question_checkbox.d.ts +4 -0
- package/ts3.4/typings/question_custom.d.ts +1 -0
- package/ts3.4/typings/question_multipletext.d.ts +12 -3
- package/ts3.4/typings/settings.d.ts +3 -0
- package/ts3.4/typings/survey-element.d.ts +1 -1
- package/ts3.4/typings/survey.d.ts +1 -1
- package/ts3.4/typings/svgbundle.d.ts +0 -1
- package/ts3.4/typings/utils/responsivity-manager.d.ts +4 -2
- package/typings/actions/adaptive-container.d.ts +1 -1
- package/typings/actions/container.d.ts +1 -1
- package/typings/panel.d.ts +2 -2
- package/typings/question.d.ts +1 -1
- package/typings/question_checkbox.d.ts +4 -0
- package/typings/question_custom.d.ts +1 -0
- package/typings/question_multipletext.d.ts +13 -3
- package/typings/settings.d.ts +3 -0
- package/typings/survey-element.d.ts +1 -1
- package/typings/survey.d.ts +1 -1
- package/typings/svgbundle.d.ts +0 -1
- package/typings/utils/responsivity-manager.d.ts +4 -2
package/themes/solid-light.js
CHANGED
|
@@ -19,7 +19,7 @@ export declare class AdaptiveActionContainer<T extends Action = Action> extends
|
|
|
19
19
|
protected getRenderedActions(): Array<T>;
|
|
20
20
|
protected raiseUpdate(isResetInitialized: boolean): void;
|
|
21
21
|
fit(dimension: number, dotsItemSize: number): void;
|
|
22
|
-
initResponsivityManager(container: HTMLDivElement): void;
|
|
22
|
+
initResponsivityManager(container: HTMLDivElement, delayedUpdateFunction?: (callback: () => void) => void): void;
|
|
23
23
|
resetResponsivityManager(): void;
|
|
24
24
|
setActionsMode(mode: actionModeType): void;
|
|
25
25
|
dispose(): void;
|
|
@@ -44,7 +44,7 @@ export declare class ActionContainer<T extends BaseAction = Action> extends Base
|
|
|
44
44
|
addAction(val: IAction, sortByVisibleIndex?: boolean): T;
|
|
45
45
|
private sortItems;
|
|
46
46
|
setItems(items: Array<IAction>, sortByVisibleIndex?: boolean): void;
|
|
47
|
-
initResponsivityManager(container: HTMLDivElement): void;
|
|
47
|
+
initResponsivityManager(container: HTMLDivElement, delayedUpdateFunction?: (callback: () => void) => void): void;
|
|
48
48
|
resetResponsivityManager(): void;
|
|
49
49
|
getActionById(id: string): T;
|
|
50
50
|
dispose(): void;
|
package/ts3.4/typings/panel.d.ts
CHANGED
|
@@ -302,7 +302,7 @@ export declare class PanelModelBase extends SurveyElement<Question> implements I
|
|
|
302
302
|
visible: boolean;
|
|
303
303
|
onHidingContent(): void;
|
|
304
304
|
protected onVisibleChanged(): void;
|
|
305
|
-
protected notifyStateChanged(): void;
|
|
305
|
+
protected notifyStateChanged(prevState: string): void;
|
|
306
306
|
/*
|
|
307
307
|
* Returns `true` if the panel/page is visible or the survey is currently in design mode.
|
|
308
308
|
*
|
|
@@ -477,7 +477,7 @@ export declare class PanelModel extends PanelModelBase implements IElement {
|
|
|
477
477
|
*/
|
|
478
478
|
readonly no: string;
|
|
479
479
|
protected setNo(visibleIndex: number): void;
|
|
480
|
-
protected notifyStateChanged(): void;
|
|
480
|
+
protected notifyStateChanged(prevState: string): void;
|
|
481
481
|
protected createLocTitleProperty(): LocalizableString;
|
|
482
482
|
protected beforeSetVisibleIndex(index: number): number;
|
|
483
483
|
protected getPanelStartIndex(index: number): number;
|
|
@@ -131,7 +131,7 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
131
131
|
*/
|
|
132
132
|
visible: boolean;
|
|
133
133
|
protected onVisibleChanged(): void;
|
|
134
|
-
protected notifyStateChanged(): void;
|
|
134
|
+
protected notifyStateChanged(prevState: string): void;
|
|
135
135
|
private updateIsVisibleProp;
|
|
136
136
|
/*
|
|
137
137
|
* Specifies whether to use display names for question values in placeholders.
|
|
@@ -90,8 +90,12 @@ export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
|
|
|
90
90
|
protected validateItemValues(itemValues: Array<ItemValue>): Array<ItemValue>;
|
|
91
91
|
protected getAnswerCorrectIgnoreOrder(): boolean;
|
|
92
92
|
protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean): void;
|
|
93
|
+
protected onVisibleChoicesChanged(): void;
|
|
93
94
|
protected onEnableItemCallBack(item: ItemValue): boolean;
|
|
94
95
|
protected onAfterRunItemsEnableCondition(): void;
|
|
96
|
+
private updateSelectAllItemProps;
|
|
97
|
+
private getSelectAllEnabled;
|
|
98
|
+
private getVisibleEnableItems;
|
|
95
99
|
private shouldCheckMaxSelectedChoices;
|
|
96
100
|
private checkMinSelectedChoicesUnreached;
|
|
97
101
|
protected getItemClassCore(item: any, options: any): string;
|
|
@@ -234,6 +234,7 @@ export declare abstract class QuestionCustomModelBase extends Question implement
|
|
|
234
234
|
constructor(name: string, customQuestion: ComponentQuestionJSON);
|
|
235
235
|
getType(): string;
|
|
236
236
|
locStrsChanged(): void;
|
|
237
|
+
localeChanged(): void;
|
|
237
238
|
protected createWrapper(): void;
|
|
238
239
|
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
239
240
|
itemValuePropertyChanged(item: ItemValue, name: string, oldValue: any, newValue: any): void;
|
|
@@ -155,14 +155,15 @@ export declare class QuestionMultipleTextModel extends Question implements IMult
|
|
|
155
155
|
* }
|
|
156
156
|
* ```
|
|
157
157
|
*
|
|
158
|
-
* To enable Markdown support for the `title` property, implement Markdown-to-HTML conversion in the [onTextMarkdown](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onTextMarkdown) event handler. For an example, refer to the following demo: [Convert Markdown to HTML with Showdown](https://surveyjs.io/form-library/examples/edit-survey-questions-markdown/).
|
|
158
|
+
* To enable Markdown support for the `title` property, implement Markdown-to-HTML conversion in the [`onTextMarkdown`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onTextMarkdown) event handler. For an example, refer to the following demo: [Convert Markdown to HTML with Showdown](https://surveyjs.io/form-library/examples/edit-survey-questions-markdown/).
|
|
159
|
+
* @see itemTitleWidth
|
|
159
160
|
* @see addItem
|
|
160
161
|
*/
|
|
161
162
|
items: Array<MultipleTextItemModel>;
|
|
162
163
|
/**
|
|
163
164
|
* Adds a new input item.
|
|
164
|
-
* @param name An item name
|
|
165
|
-
* @param title (Optional) An item title
|
|
165
|
+
* @param name An item name.
|
|
166
|
+
* @param title (Optional) An item title.
|
|
166
167
|
* @see items
|
|
167
168
|
*/
|
|
168
169
|
addItem(name: string, title?: string): MultipleTextItemModel;
|
|
@@ -198,6 +199,14 @@ export declare class QuestionMultipleTextModel extends Question implements IMult
|
|
|
198
199
|
* A value passed on to the [`size`](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/size) attribute of the underlying `<input>` elements.
|
|
199
200
|
*/
|
|
200
201
|
itemSize: number;
|
|
202
|
+
/*
|
|
203
|
+
* Specifies a uniform width for all text box titles. Accepts CSS values.
|
|
204
|
+
*
|
|
205
|
+
* Default value: `""` (the width of each title depends on the title length)
|
|
206
|
+
* @see items
|
|
207
|
+
* @see itemErrorLocation
|
|
208
|
+
*/
|
|
209
|
+
itemTitleWidth: string;
|
|
201
210
|
rows: Array<MutlipleTextRow>;
|
|
202
211
|
protected onRowCreated(row: MutlipleTextRow): MutlipleTextRow;
|
|
203
212
|
private calcVisibleRows;
|
|
@@ -3,6 +3,9 @@ export declare type ISurveyEnvironment = {
|
|
|
3
3
|
root: Document | ShadowRoot;
|
|
4
4
|
rootElement: HTMLElement | ShadowRoot;
|
|
5
5
|
popupMountContainer: HTMLElement | string;
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated
|
|
8
|
+
*/
|
|
6
9
|
svgMountContainer: HTMLElement | string;
|
|
7
10
|
stylesSheetsMountContainer: HTMLElement;
|
|
8
11
|
};
|
|
@@ -116,7 +116,7 @@ export declare class SurveyElement<E = any> extends SurveyElementCore implements
|
|
|
116
116
|
* @see isExpanded
|
|
117
117
|
*/
|
|
118
118
|
state: string;
|
|
119
|
-
protected notifyStateChanged(): void;
|
|
119
|
+
protected notifyStateChanged(prevState: string): void;
|
|
120
120
|
/*
|
|
121
121
|
* Returns `true` if the survey element is collapsed.
|
|
122
122
|
* @see state
|
|
@@ -2593,7 +2593,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2593
2593
|
startMovingQuestion(): void;
|
|
2594
2594
|
stopMovingQuestion(): void;
|
|
2595
2595
|
readonly isQuestionDragging: boolean;
|
|
2596
|
-
|
|
2596
|
+
needRenderIcons: boolean;
|
|
2597
2597
|
private skippedPages;
|
|
2598
2598
|
/**
|
|
2599
2599
|
* Focuses a question with a specified name. Switches the current page if needed.
|
|
@@ -10,7 +10,6 @@ export declare class SvgIconRegistry {
|
|
|
10
10
|
registerIconFromSvg(iconId: string, iconSvg: string, iconPrefix?: string): boolean;
|
|
11
11
|
registerIconsFromFolder(r: any): void;
|
|
12
12
|
iconsRenderedHtml(): string;
|
|
13
|
-
renderIcons(): void;
|
|
14
13
|
}
|
|
15
14
|
export declare var SvgRegistry: SvgIconRegistry;
|
|
16
15
|
export declare var SvgBundleViewModel: any;
|
|
@@ -9,6 +9,7 @@ export declare class ResponsivityManager {
|
|
|
9
9
|
private model;
|
|
10
10
|
private itemsSelector;
|
|
11
11
|
private dotsItemSize;
|
|
12
|
+
private delayedUpdateFunction?;
|
|
12
13
|
private resizeObserver;
|
|
13
14
|
private isInitialized;
|
|
14
15
|
protected minDimensionConst: number;
|
|
@@ -18,11 +19,12 @@ export declare class ResponsivityManager {
|
|
|
18
19
|
private dotsSizeConst;
|
|
19
20
|
protected recalcMinDimensionConst: boolean;
|
|
20
21
|
getComputedStyle: (elt: Element) => CSSStyleDeclaration;
|
|
21
|
-
constructor(container: HTMLDivElement, model: AdaptiveActionContainer, itemsSelector: string, dotsItemSize?: number);
|
|
22
|
+
constructor(container: HTMLDivElement, model: AdaptiveActionContainer, itemsSelector: string, dotsItemSize?: number, delayedUpdateFunction?: (callback: () => void) => void);
|
|
22
23
|
protected getDimensions(element: HTMLElement): IDimensions;
|
|
23
24
|
protected getAvailableSpace(): number;
|
|
24
25
|
protected calcItemSize(item: HTMLDivElement): number;
|
|
25
26
|
private calcMinDimension;
|
|
27
|
+
private getRenderedVisibleActionsCount;
|
|
26
28
|
private calcItemsSizes;
|
|
27
29
|
protected calcActionDimensions(currentAction: Action, item: HTMLDivElement): void;
|
|
28
30
|
private readonly isContainerVisible: any;
|
|
@@ -30,7 +32,7 @@ export declare class ResponsivityManager {
|
|
|
30
32
|
dispose(): void;
|
|
31
33
|
}
|
|
32
34
|
export declare class VerticalResponsivityManager extends ResponsivityManager {
|
|
33
|
-
constructor(container: HTMLDivElement, model: AdaptiveActionContainer, itemsSelector: string, dotsItemSize?: number, minDimension?: number);
|
|
35
|
+
constructor(container: HTMLDivElement, model: AdaptiveActionContainer, itemsSelector: string, dotsItemSize?: number, minDimension?: number, delayedUpdateFunction?: (callback: () => void) => void);
|
|
34
36
|
protected getDimensions(): IDimensions;
|
|
35
37
|
protected getAvailableSpace(): number;
|
|
36
38
|
protected calcItemSize(item: HTMLDivElement): number;
|
|
@@ -19,7 +19,7 @@ export declare class AdaptiveActionContainer<T extends Action = Action> extends
|
|
|
19
19
|
protected getRenderedActions(): Array<T>;
|
|
20
20
|
protected raiseUpdate(isResetInitialized: boolean): void;
|
|
21
21
|
fit(dimension: number, dotsItemSize: number): void;
|
|
22
|
-
initResponsivityManager(container: HTMLDivElement): void;
|
|
22
|
+
initResponsivityManager(container: HTMLDivElement, delayedUpdateFunction?: (callback: () => void) => void): void;
|
|
23
23
|
resetResponsivityManager(): void;
|
|
24
24
|
setActionsMode(mode: actionModeType): void;
|
|
25
25
|
dispose(): void;
|
|
@@ -45,7 +45,7 @@ export declare class ActionContainer<T extends BaseAction = Action> extends Base
|
|
|
45
45
|
addAction(val: IAction, sortByVisibleIndex?: boolean): T;
|
|
46
46
|
private sortItems;
|
|
47
47
|
setItems(items: Array<IAction>, sortByVisibleIndex?: boolean): void;
|
|
48
|
-
initResponsivityManager(container: HTMLDivElement): void;
|
|
48
|
+
initResponsivityManager(container: HTMLDivElement, delayedUpdateFunction?: (callback: () => void) => void): void;
|
|
49
49
|
resetResponsivityManager(): void;
|
|
50
50
|
getActionById(id: string): T;
|
|
51
51
|
dispose(): void;
|
package/typings/panel.d.ts
CHANGED
|
@@ -313,7 +313,7 @@ export declare class PanelModelBase extends SurveyElement<Question> implements I
|
|
|
313
313
|
set visible(value: boolean);
|
|
314
314
|
onHidingContent(): void;
|
|
315
315
|
protected onVisibleChanged(): void;
|
|
316
|
-
protected notifyStateChanged(): void;
|
|
316
|
+
protected notifyStateChanged(prevState: string): void;
|
|
317
317
|
/**
|
|
318
318
|
* Returns `true` if the panel/page is visible or the survey is currently in design mode.
|
|
319
319
|
*
|
|
@@ -494,7 +494,7 @@ export declare class PanelModel extends PanelModelBase implements IElement {
|
|
|
494
494
|
*/
|
|
495
495
|
get no(): string;
|
|
496
496
|
protected setNo(visibleIndex: number): void;
|
|
497
|
-
protected notifyStateChanged(): void;
|
|
497
|
+
protected notifyStateChanged(prevState: string): void;
|
|
498
498
|
protected createLocTitleProperty(): LocalizableString;
|
|
499
499
|
protected beforeSetVisibleIndex(index: number): number;
|
|
500
500
|
protected getPanelStartIndex(index: number): number;
|
package/typings/question.d.ts
CHANGED
|
@@ -134,7 +134,7 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
134
134
|
get visible(): boolean;
|
|
135
135
|
set visible(val: boolean);
|
|
136
136
|
protected onVisibleChanged(): void;
|
|
137
|
-
protected notifyStateChanged(): void;
|
|
137
|
+
protected notifyStateChanged(prevState: string): void;
|
|
138
138
|
private updateIsVisibleProp;
|
|
139
139
|
/**
|
|
140
140
|
* Specifies whether to use display names for question values in placeholders.
|
|
@@ -97,8 +97,12 @@ export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
|
|
|
97
97
|
protected validateItemValues(itemValues: Array<ItemValue>): Array<ItemValue>;
|
|
98
98
|
protected getAnswerCorrectIgnoreOrder(): boolean;
|
|
99
99
|
protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean): void;
|
|
100
|
+
protected onVisibleChoicesChanged(): void;
|
|
100
101
|
protected onEnableItemCallBack(item: ItemValue): boolean;
|
|
101
102
|
protected onAfterRunItemsEnableCondition(): void;
|
|
103
|
+
private updateSelectAllItemProps;
|
|
104
|
+
private getSelectAllEnabled;
|
|
105
|
+
private getVisibleEnableItems;
|
|
102
106
|
private shouldCheckMaxSelectedChoices;
|
|
103
107
|
private checkMinSelectedChoicesUnreached;
|
|
104
108
|
protected getItemClassCore(item: any, options: any): string;
|
|
@@ -234,6 +234,7 @@ export declare abstract class QuestionCustomModelBase extends Question implement
|
|
|
234
234
|
constructor(name: string, customQuestion: ComponentQuestionJSON);
|
|
235
235
|
getType(): string;
|
|
236
236
|
locStrsChanged(): void;
|
|
237
|
+
localeChanged(): void;
|
|
237
238
|
protected createWrapper(): void;
|
|
238
239
|
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
239
240
|
itemValuePropertyChanged(item: ItemValue, name: string, oldValue: any, newValue: any): void;
|
|
@@ -171,15 +171,16 @@ export declare class QuestionMultipleTextModel extends Question implements IMult
|
|
|
171
171
|
* }
|
|
172
172
|
* ```
|
|
173
173
|
*
|
|
174
|
-
* To enable Markdown support for the `title` property, implement Markdown-to-HTML conversion in the [onTextMarkdown](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onTextMarkdown) event handler. For an example, refer to the following demo: [Convert Markdown to HTML with Showdown](https://surveyjs.io/form-library/examples/edit-survey-questions-markdown/).
|
|
174
|
+
* To enable Markdown support for the `title` property, implement Markdown-to-HTML conversion in the [`onTextMarkdown`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onTextMarkdown) event handler. For an example, refer to the following demo: [Convert Markdown to HTML with Showdown](https://surveyjs.io/form-library/examples/edit-survey-questions-markdown/).
|
|
175
|
+
* @see itemTitleWidth
|
|
175
176
|
* @see addItem
|
|
176
177
|
*/
|
|
177
178
|
get items(): Array<MultipleTextItemModel>;
|
|
178
179
|
set items(val: Array<MultipleTextItemModel>);
|
|
179
180
|
/**
|
|
180
181
|
* Adds a new input item.
|
|
181
|
-
* @param name An item name
|
|
182
|
-
* @param title (Optional) An item title
|
|
182
|
+
* @param name An item name.
|
|
183
|
+
* @param title (Optional) An item title.
|
|
183
184
|
* @see items
|
|
184
185
|
*/
|
|
185
186
|
addItem(name: string, title?: string): MultipleTextItemModel;
|
|
@@ -218,6 +219,15 @@ export declare class QuestionMultipleTextModel extends Question implements IMult
|
|
|
218
219
|
*/
|
|
219
220
|
get itemSize(): number;
|
|
220
221
|
set itemSize(val: number);
|
|
222
|
+
/**
|
|
223
|
+
* Specifies a uniform width for all text box titles. Accepts CSS values.
|
|
224
|
+
*
|
|
225
|
+
* Default value: `""` (the width of each title depends on the title length)
|
|
226
|
+
* @see items
|
|
227
|
+
* @see itemErrorLocation
|
|
228
|
+
*/
|
|
229
|
+
get itemTitleWidth(): string;
|
|
230
|
+
set itemTitleWidth(val: string);
|
|
221
231
|
rows: Array<MutlipleTextRow>;
|
|
222
232
|
protected onRowCreated(row: MutlipleTextRow): MutlipleTextRow;
|
|
223
233
|
private calcVisibleRows;
|
package/typings/settings.d.ts
CHANGED
|
@@ -3,6 +3,9 @@ export declare type ISurveyEnvironment = {
|
|
|
3
3
|
root: Document | ShadowRoot;
|
|
4
4
|
rootElement: HTMLElement | ShadowRoot;
|
|
5
5
|
popupMountContainer: HTMLElement | string;
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated
|
|
8
|
+
*/
|
|
6
9
|
svgMountContainer: HTMLElement | string;
|
|
7
10
|
stylesSheetsMountContainer: HTMLElement;
|
|
8
11
|
};
|
|
@@ -118,7 +118,7 @@ export declare class SurveyElement<E = any> extends SurveyElementCore implements
|
|
|
118
118
|
*/
|
|
119
119
|
get state(): string;
|
|
120
120
|
set state(val: string);
|
|
121
|
-
protected notifyStateChanged(): void;
|
|
121
|
+
protected notifyStateChanged(prevState: string): void;
|
|
122
122
|
/**
|
|
123
123
|
* Returns `true` if the survey element is collapsed.
|
|
124
124
|
* @see state
|
package/typings/survey.d.ts
CHANGED
|
@@ -2684,7 +2684,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2684
2684
|
startMovingQuestion(): void;
|
|
2685
2685
|
stopMovingQuestion(): void;
|
|
2686
2686
|
get isQuestionDragging(): boolean;
|
|
2687
|
-
|
|
2687
|
+
needRenderIcons: boolean;
|
|
2688
2688
|
private skippedPages;
|
|
2689
2689
|
/**
|
|
2690
2690
|
* Focuses a question with a specified name. Switches the current page if needed.
|
package/typings/svgbundle.d.ts
CHANGED
|
@@ -10,7 +10,6 @@ export declare class SvgIconRegistry {
|
|
|
10
10
|
registerIconFromSvg(iconId: string, iconSvg: string, iconPrefix?: string): boolean;
|
|
11
11
|
registerIconsFromFolder(r: any): void;
|
|
12
12
|
iconsRenderedHtml(): string;
|
|
13
|
-
renderIcons(): void;
|
|
14
13
|
}
|
|
15
14
|
export declare var SvgRegistry: SvgIconRegistry;
|
|
16
15
|
export declare var SvgBundleViewModel: any;
|
|
@@ -9,6 +9,7 @@ export declare class ResponsivityManager {
|
|
|
9
9
|
private model;
|
|
10
10
|
private itemsSelector;
|
|
11
11
|
private dotsItemSize;
|
|
12
|
+
private delayedUpdateFunction?;
|
|
12
13
|
private resizeObserver;
|
|
13
14
|
private isInitialized;
|
|
14
15
|
protected minDimensionConst: number;
|
|
@@ -18,11 +19,12 @@ export declare class ResponsivityManager {
|
|
|
18
19
|
private dotsSizeConst;
|
|
19
20
|
protected recalcMinDimensionConst: boolean;
|
|
20
21
|
getComputedStyle: (elt: Element) => CSSStyleDeclaration;
|
|
21
|
-
constructor(container: HTMLDivElement, model: AdaptiveActionContainer, itemsSelector: string, dotsItemSize?: number);
|
|
22
|
+
constructor(container: HTMLDivElement, model: AdaptiveActionContainer, itemsSelector: string, dotsItemSize?: number, delayedUpdateFunction?: (callback: () => void) => void);
|
|
22
23
|
protected getDimensions(element: HTMLElement): IDimensions;
|
|
23
24
|
protected getAvailableSpace(): number;
|
|
24
25
|
protected calcItemSize(item: HTMLDivElement): number;
|
|
25
26
|
private calcMinDimension;
|
|
27
|
+
private getRenderedVisibleActionsCount;
|
|
26
28
|
private calcItemsSizes;
|
|
27
29
|
protected calcActionDimensions(currentAction: Action, item: HTMLDivElement): void;
|
|
28
30
|
private get isContainerVisible();
|
|
@@ -30,7 +32,7 @@ export declare class ResponsivityManager {
|
|
|
30
32
|
dispose(): void;
|
|
31
33
|
}
|
|
32
34
|
export declare class VerticalResponsivityManager extends ResponsivityManager {
|
|
33
|
-
constructor(container: HTMLDivElement, model: AdaptiveActionContainer, itemsSelector: string, dotsItemSize?: number, minDimension?: number);
|
|
35
|
+
constructor(container: HTMLDivElement, model: AdaptiveActionContainer, itemsSelector: string, dotsItemSize?: number, minDimension?: number, delayedUpdateFunction?: (callback: () => void) => void);
|
|
34
36
|
protected getDimensions(): IDimensions;
|
|
35
37
|
protected getAvailableSpace(): number;
|
|
36
38
|
protected calcItemSize(item: HTMLDivElement): number;
|