survey-creator-core 2.3.13 → 2.3.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/fesm/i18n/arabic.mjs +1 -1
- package/fesm/i18n/bulgarian.mjs +1 -1
- package/fesm/i18n/burmese.mjs +1 -1
- package/fesm/i18n/croatian.mjs +1 -1
- package/fesm/i18n/czech.mjs +1 -1
- package/fesm/i18n/danish.mjs +1 -1
- package/fesm/i18n/dutch.mjs +1 -1
- package/fesm/i18n/english.mjs +2 -1
- package/fesm/i18n/english.mjs.map +1 -1
- package/fesm/i18n/finnish.mjs +1 -1
- package/fesm/i18n/french.mjs +1 -1
- package/fesm/i18n/german.mjs +1 -1
- package/fesm/i18n/greek.mjs +1 -1
- package/fesm/i18n/haitian-creole.mjs +1 -1
- package/fesm/i18n/hebrew.mjs +1 -1
- package/fesm/i18n/hungarian.mjs +1 -1
- package/fesm/i18n/index.mjs +1 -1
- package/fesm/i18n/indonesian.mjs +1 -1
- package/fesm/i18n/italian.mjs +1 -1
- package/fesm/i18n/japanese.mjs +1 -1
- package/fesm/i18n/korean.mjs +1 -1
- package/fesm/i18n/malay.mjs +1 -1
- package/fesm/i18n/mongolian.mjs +1 -1
- package/fesm/i18n/norwegian.mjs +1 -1
- package/fesm/i18n/persian.mjs +1 -1
- package/fesm/i18n/polish.mjs +1 -1
- package/fesm/i18n/portuguese.mjs +1 -1
- package/fesm/i18n/romanian.mjs +1 -1
- package/fesm/i18n/russian.mjs +1 -1
- package/fesm/i18n/simplified-chinese.mjs +1 -1
- package/fesm/i18n/slovak.mjs +1 -1
- package/fesm/i18n/slovenian.mjs +1 -1
- package/fesm/i18n/spanish.mjs +1 -1
- package/fesm/i18n/swedish.mjs +1 -1
- package/fesm/i18n/tajik.mjs +1 -1
- package/fesm/i18n/thai.mjs +1 -1
- package/fesm/i18n/traditional-chinese.mjs +1 -1
- package/fesm/i18n/turkish.mjs +1 -1
- package/fesm/survey-creator-core.i18n.mjs +1 -1
- package/fesm/survey-creator-core.mjs +135 -188
- package/fesm/survey-creator-core.mjs.map +1 -1
- package/fesm/themes/index.mjs +1 -1
- package/fonts.fontless.css +1 -1
- package/fonts.fontless.min.css +1 -1
- package/i18n/arabic.js +1 -1
- package/i18n/arabic.min.js.LICENSE.txt +1 -1
- package/i18n/bulgarian.js +1 -1
- package/i18n/bulgarian.min.js.LICENSE.txt +1 -1
- package/i18n/burmese.js +1 -1
- package/i18n/burmese.min.js.LICENSE.txt +1 -1
- package/i18n/croatian.js +1 -1
- package/i18n/croatian.min.js.LICENSE.txt +1 -1
- package/i18n/czech.js +1 -1
- package/i18n/czech.min.js.LICENSE.txt +1 -1
- package/i18n/danish.js +1 -1
- package/i18n/danish.min.js.LICENSE.txt +1 -1
- package/i18n/dutch.js +1 -1
- package/i18n/dutch.min.js.LICENSE.txt +1 -1
- package/i18n/english.js +2 -1
- package/i18n/english.js.map +1 -1
- package/i18n/english.min.js +1 -1
- package/i18n/english.min.js.LICENSE.txt +1 -1
- package/i18n/finnish.js +1 -1
- package/i18n/finnish.min.js.LICENSE.txt +1 -1
- package/i18n/french.js +1 -1
- package/i18n/french.min.js.LICENSE.txt +1 -1
- package/i18n/german.js +1 -1
- package/i18n/german.min.js.LICENSE.txt +1 -1
- package/i18n/greek.js +1 -1
- package/i18n/greek.min.js.LICENSE.txt +1 -1
- package/i18n/haitian-creole.js +1 -1
- package/i18n/haitian-creole.min.js.LICENSE.txt +1 -1
- package/i18n/hebrew.js +1 -1
- package/i18n/hebrew.min.js.LICENSE.txt +1 -1
- package/i18n/hungarian.js +1 -1
- package/i18n/hungarian.min.js.LICENSE.txt +1 -1
- package/i18n/index.js +1 -1
- package/i18n/index.min.js.LICENSE.txt +1 -1
- package/i18n/indonesian.js +1 -1
- package/i18n/indonesian.min.js.LICENSE.txt +1 -1
- package/i18n/italian.js +1 -1
- package/i18n/italian.min.js.LICENSE.txt +1 -1
- package/i18n/japanese.js +1 -1
- package/i18n/japanese.min.js.LICENSE.txt +1 -1
- package/i18n/korean.js +1 -1
- package/i18n/korean.min.js.LICENSE.txt +1 -1
- package/i18n/malay.js +1 -1
- package/i18n/malay.min.js.LICENSE.txt +1 -1
- package/i18n/mongolian.js +1 -1
- package/i18n/mongolian.min.js.LICENSE.txt +1 -1
- package/i18n/norwegian.js +1 -1
- package/i18n/norwegian.min.js.LICENSE.txt +1 -1
- package/i18n/persian.js +1 -1
- package/i18n/persian.min.js.LICENSE.txt +1 -1
- package/i18n/polish.js +1 -1
- package/i18n/polish.min.js.LICENSE.txt +1 -1
- package/i18n/portuguese.js +1 -1
- package/i18n/portuguese.min.js.LICENSE.txt +1 -1
- package/i18n/romanian.js +1 -1
- package/i18n/romanian.min.js.LICENSE.txt +1 -1
- package/i18n/russian.js +1 -1
- package/i18n/russian.min.js.LICENSE.txt +1 -1
- package/i18n/simplified-chinese.js +1 -1
- package/i18n/simplified-chinese.min.js.LICENSE.txt +1 -1
- package/i18n/slovak.js +1 -1
- package/i18n/slovak.min.js.LICENSE.txt +1 -1
- package/i18n/slovenian.js +1 -1
- package/i18n/slovenian.min.js.LICENSE.txt +1 -1
- package/i18n/spanish.js +1 -1
- package/i18n/spanish.min.js.LICENSE.txt +1 -1
- package/i18n/swedish.js +1 -1
- package/i18n/swedish.min.js.LICENSE.txt +1 -1
- package/i18n/tajik.js +1 -1
- package/i18n/tajik.min.js.LICENSE.txt +1 -1
- package/i18n/thai.js +1 -1
- package/i18n/thai.min.js.LICENSE.txt +1 -1
- package/i18n/traditional-chinese.js +1 -1
- package/i18n/traditional-chinese.min.js.LICENSE.txt +1 -1
- package/i18n/turkish.js +1 -1
- package/i18n/turkish.min.js.LICENSE.txt +1 -1
- package/package.json +2 -2
- package/survey-creator-core.css +2 -2
- package/survey-creator-core.fontless.css +1 -1
- package/survey-creator-core.fontless.min.css +1 -1
- package/survey-creator-core.i18n.js +1 -1
- package/survey-creator-core.i18n.min.js.LICENSE.txt +1 -1
- package/survey-creator-core.js +143 -188
- package/survey-creator-core.js.map +1 -1
- package/survey-creator-core.min.css +2 -2
- package/survey-creator-core.min.js +1 -1
- package/survey-creator-core.min.js.LICENSE.txt +1 -1
- package/themes/default-contrast.js +1 -1
- package/themes/default-contrast.min.js.LICENSE.txt +1 -1
- package/themes/default-dark.js +1 -1
- package/themes/default-dark.min.js.LICENSE.txt +1 -1
- package/themes/index.js +1 -1
- package/themes/index.min.js.LICENSE.txt +1 -1
- package/themes/sc2020.js +1 -1
- package/themes/sc2020.min.js.LICENSE.txt +1 -1
- package/typings/components/question-rating.d.ts +1 -1
- package/typings/creator-base.d.ts +5 -3
- package/typings/creator-events-api.d.ts +1 -1
- package/typings/creator-settings.d.ts +16 -34
- package/typings/editorLocalization.d.ts +1 -0
- package/typings/localization/english.d.ts +1 -0
- package/typings/survey-helper.d.ts +0 -1
- package/typings/toolbox.d.ts +3 -10
package/themes/default-dark.js
CHANGED
package/themes/index.js
CHANGED
package/themes/sc2020.js
CHANGED
|
@@ -10,7 +10,7 @@ export declare class QuestionRatingAdornerViewModel extends Base {
|
|
|
10
10
|
static useRateValues(element: any): boolean;
|
|
11
11
|
addItem(model: QuestionRatingAdornerViewModel): void;
|
|
12
12
|
removeItem(model: QuestionRatingAdornerViewModel): void;
|
|
13
|
-
static allowAddForElement(element: QuestionRatingModel,
|
|
13
|
+
static allowAddForElement(element: QuestionRatingModel, maxRateValues: number): boolean;
|
|
14
14
|
get allowAdd(): boolean;
|
|
15
15
|
get enableAdd(): boolean;
|
|
16
16
|
get addClassNames(): string;
|
|
@@ -829,11 +829,13 @@ export declare class SurveyCreatorModel extends Base implements ISurveyCreatorOp
|
|
|
829
829
|
/**
|
|
830
830
|
* @deprecated Use the [`useElementTitles`](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#useElementTitles) property instead.
|
|
831
831
|
*/
|
|
832
|
-
showObjectTitles: boolean;
|
|
832
|
+
get showObjectTitles(): boolean;
|
|
833
|
+
set showObjectTitles(val: boolean);
|
|
833
834
|
/**
|
|
834
835
|
* @deprecated Use the [`useElementTitles`](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#useElementTitles) property instead.
|
|
835
836
|
*/
|
|
836
|
-
showTitlesInExpressions: boolean;
|
|
837
|
+
get showTitlesInExpressions(): boolean;
|
|
838
|
+
set showTitlesInExpressions(val: boolean);
|
|
837
839
|
/**
|
|
838
840
|
* Specifies whether Survey Creator UI elements display survey, page, and question titles instead of their names.
|
|
839
841
|
*
|
|
@@ -1236,7 +1238,7 @@ export declare class SurveyCreatorModel extends Base implements ISurveyCreatorOp
|
|
|
1236
1238
|
setShowSidebar(value: boolean, isManualMode?: boolean): void;
|
|
1237
1239
|
onShowPropertyGridVisiblityChanged: EventBase<SurveyCreatorModel, any>;
|
|
1238
1240
|
/**
|
|
1239
|
-
* @deprecated
|
|
1241
|
+
* @deprecated Use the [`showSidebar`](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#showSidebar) property instead.
|
|
1240
1242
|
*/
|
|
1241
1243
|
get showPropertyGrid(): boolean;
|
|
1242
1244
|
set showPropertyGrid(val: boolean);
|
|
@@ -49,7 +49,7 @@ export interface PropertyGetReadOnlyEvent extends GetPropertyReadOnlyEvent {
|
|
|
49
49
|
*/
|
|
50
50
|
element: Base;
|
|
51
51
|
/**
|
|
52
|
-
* A survey element that contains `options.parentProperty`. `options.
|
|
52
|
+
* A survey element that contains `options.parentProperty`. `options.parentElement` has a value only for nested properties.
|
|
53
53
|
*/
|
|
54
54
|
parentElement: Base;
|
|
55
55
|
}
|
|
@@ -169,30 +169,21 @@ export interface ISurveyCreatorOptions {
|
|
|
169
169
|
isMobileView: boolean;
|
|
170
170
|
alwaySaveTextInPropertyEditors: boolean;
|
|
171
171
|
readOnly: boolean;
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
* @deprecated
|
|
175
|
-
*/
|
|
176
|
-
showObjectTitles: boolean;
|
|
177
|
-
/**
|
|
178
|
-
* @deprecated
|
|
179
|
-
*/
|
|
180
|
-
showTitlesInExpressions: boolean;
|
|
172
|
+
logicMaxItemsInCondition: number;
|
|
173
|
+
logicAllowTextEditExpressions: boolean;
|
|
181
174
|
useElementTitles: boolean;
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
maximumRateValues: number;
|
|
188
|
-
maxNestedPanels: number;
|
|
175
|
+
maxColumns: number;
|
|
176
|
+
minChoices: number;
|
|
177
|
+
maxChoices: number;
|
|
178
|
+
maxRows: number;
|
|
179
|
+
maxRateValues: number;
|
|
189
180
|
maxPanelNestingLevel: number;
|
|
190
181
|
forbiddenNestedElements: {
|
|
191
182
|
panel: string[];
|
|
192
183
|
paneldynamic: string[];
|
|
193
184
|
};
|
|
194
185
|
enableLinkFileEditor: boolean;
|
|
195
|
-
|
|
186
|
+
inplaceEditChoiceValues: boolean;
|
|
196
187
|
rootElement?: HTMLElement;
|
|
197
188
|
previewShowResults: boolean;
|
|
198
189
|
showOneCategoryInPropertyGrid: boolean;
|
|
@@ -241,6 +232,7 @@ export interface ISurveyCreatorOptions {
|
|
|
241
232
|
canAddPage(pageToAdd?: PageModel): boolean;
|
|
242
233
|
}
|
|
243
234
|
export declare class EmptySurveyCreatorOptions implements ISurveyCreatorOptions, ILocalizableOwner {
|
|
235
|
+
logicMaxItemsInCondition: number;
|
|
244
236
|
previewShowResults: boolean;
|
|
245
237
|
rootElement: HTMLElement;
|
|
246
238
|
enableLinkFileEditor: boolean;
|
|
@@ -248,25 +240,15 @@ export declare class EmptySurveyCreatorOptions implements ISurveyCreatorOptions,
|
|
|
248
240
|
isMobileView: boolean;
|
|
249
241
|
alwaySaveTextInPropertyEditors: boolean;
|
|
250
242
|
readOnly: boolean;
|
|
251
|
-
maxLogicItemsInCondition: number;
|
|
252
|
-
/**
|
|
253
|
-
* @deprecated
|
|
254
|
-
*/
|
|
255
|
-
showObjectTitles: boolean;
|
|
256
|
-
/**
|
|
257
|
-
* @deprecated
|
|
258
|
-
*/
|
|
259
|
-
showTitlesInExpressions: boolean;
|
|
260
243
|
useElementTitles: boolean;
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
244
|
+
logicAllowTextEditExpressions: boolean;
|
|
245
|
+
maxColumns: number;
|
|
246
|
+
minChoices: number;
|
|
247
|
+
maxChoices: number;
|
|
248
|
+
maxRows: number;
|
|
249
|
+
maxRateValues: number;
|
|
267
250
|
machineTranslationValue: boolean;
|
|
268
|
-
|
|
269
|
-
maxNestedPanels: number;
|
|
251
|
+
inplaceEditChoiceValues: boolean;
|
|
270
252
|
maxPanelNestingLevel: number;
|
|
271
253
|
forbiddenNestedElements: {
|
|
272
254
|
panel: string[];
|
|
@@ -54,5 +54,4 @@ export declare class SurveyHelper {
|
|
|
54
54
|
static getElementDeepLength(element: SurveyElement): number;
|
|
55
55
|
static getMaximumNestedPanelDepth(panel: PanelModel, currentDepth: number): number;
|
|
56
56
|
static getElementParentContainers(element: SurveyElement, includingPage?: boolean): SurveyElement[];
|
|
57
|
-
static isPanelDynamic(element: any): boolean;
|
|
58
57
|
}
|
package/typings/toolbox.d.ts
CHANGED
|
@@ -32,9 +32,6 @@ export interface IQuestionToolboxItem extends IAction {
|
|
|
32
32
|
* A user-friendly toolbox item title.
|
|
33
33
|
*/
|
|
34
34
|
title?: string;
|
|
35
|
-
titles?: {
|
|
36
|
-
[locale: string]: string;
|
|
37
|
-
};
|
|
38
35
|
className?: string;
|
|
39
36
|
/**
|
|
40
37
|
* A toolbox item tooltip.
|
|
@@ -62,6 +59,8 @@ export interface IQuestionToolboxItem extends IAction {
|
|
|
62
59
|
clearSubitems?(): void;
|
|
63
60
|
addSubitem?(subitem: IQuestionToolboxItem, index: number): void;
|
|
64
61
|
removeSubitem?(subitem: IQuestionToolboxItem | string): void;
|
|
62
|
+
propName?: string;
|
|
63
|
+
propValue?: any;
|
|
65
64
|
}
|
|
66
65
|
export interface IQuestionToolbox {
|
|
67
66
|
toggleCategoryState(name: string): any;
|
|
@@ -103,15 +102,13 @@ export declare class QuestionToolboxItem extends Action implements IQuestionTool
|
|
|
103
102
|
isDisabledByRestriction: boolean;
|
|
104
103
|
static getItemClassNames(iconName?: string): string;
|
|
105
104
|
constructor(item: IQuestionToolboxItem);
|
|
106
|
-
titles: {
|
|
107
|
-
[locale: string]: string;
|
|
108
|
-
};
|
|
109
105
|
elementId?: string;
|
|
110
106
|
/**
|
|
111
107
|
* A user-friendly toolbox item title.
|
|
112
108
|
*/
|
|
113
109
|
get title(): string;
|
|
114
110
|
set title(val: string);
|
|
111
|
+
protected getId(): string;
|
|
115
112
|
/**
|
|
116
113
|
* Specifies whether users can interact with the toolbox item.
|
|
117
114
|
*
|
|
@@ -361,7 +358,6 @@ export declare class QuestionToolbox extends AdaptiveActionContainer<QuestionToo
|
|
|
361
358
|
* @see items
|
|
362
359
|
*/
|
|
363
360
|
addItem(item: IQuestionToolboxItem, index?: number): void;
|
|
364
|
-
private correctItem;
|
|
365
361
|
private get dragDropHelper();
|
|
366
362
|
/**
|
|
367
363
|
* Adds a new toolbox item and deletes an existing item with the same name (if there is any).
|
|
@@ -428,8 +424,6 @@ export declare class QuestionToolbox extends AdaptiveActionContainer<QuestionToo
|
|
|
428
424
|
get showCategoryTitles(): boolean;
|
|
429
425
|
set showCategoryTitles(val: boolean);
|
|
430
426
|
updateTitles(): void;
|
|
431
|
-
private updateToolboxItemTitle;
|
|
432
|
-
private updateActionTitle;
|
|
433
427
|
private updateCategoriesState;
|
|
434
428
|
/**
|
|
435
429
|
* Changes the category of a toolbox item.
|
|
@@ -529,7 +523,6 @@ export declare class QuestionToolbox extends AdaptiveActionContainer<QuestionToo
|
|
|
529
523
|
private addToolBoxItem;
|
|
530
524
|
private getActionByIdFromArray;
|
|
531
525
|
private createToolboxItemFromJSON;
|
|
532
|
-
private getTitleFromJsonTitle;
|
|
533
526
|
private getQuestionJSON;
|
|
534
527
|
private isHiddenCustomWidget;
|
|
535
528
|
private getQuestionTypes;
|