survey-creator-core 1.9.114 → 1.9.116
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/fonts.fontless.css +1 -1
- package/fonts.fontless.min.css +1 -1
- package/i18n/arabic.js +1 -1
- package/i18n/arabic.min.js +1 -1
- package/i18n/bulgarian.js +1 -1
- package/i18n/bulgarian.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 +9 -2
- package/i18n/english.js.map +1 -1
- package/i18n/english.min.js +2 -2
- 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/german.js +1 -1
- package/i18n/german.min.js +1 -1
- package/i18n/hungarian.js +1 -1
- package/i18n/hungarian.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/korean.js +1 -1
- package/i18n/korean.min.js +1 -1
- package/i18n/malay.js +1 -1
- package/i18n/malay.min.js +1 -1
- package/i18n/mongolian.js +1 -1
- package/i18n/mongolian.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.js +1 -1
- package/i18n/portuguese.min.js +1 -1
- package/i18n/russian.js +1 -1
- package/i18n/russian.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/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/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/package.json +2 -2
- package/survey-creator-core.css +40 -21
- package/survey-creator-core.fontless.css +39 -20
- package/survey-creator-core.fontless.css.map +1 -1
- package/survey-creator-core.fontless.min.css +3 -3
- package/survey-creator-core.i18n.js +1 -1
- package/survey-creator-core.i18n.min.js +1 -1
- package/survey-creator-core.js +345 -114
- package/survey-creator-core.js.map +1 -1
- package/survey-creator-core.min.css +4 -4
- package/survey-creator-core.min.js +5 -5
- package/typings/components/action-container-view-model.d.ts +1 -1
- package/typings/components/string-editor.d.ts +1 -1
- package/typings/components/tabs/logic-item-editor.d.ts +2 -0
- package/typings/components/tabs/theme-builder.d.ts +1 -1
- package/typings/components/tabs/theme-custom-questions/boxshadow-settings.d.ts +1 -0
- package/typings/components/tabs/theme-custom-questions/color-settings.d.ts +1 -0
- package/typings/components/tabs/theme-custom-questions/element-settings.d.ts +1 -0
- package/typings/components/tabs/theme-custom-questions/font-settings.d.ts +1 -0
- package/typings/components/tabs/theme-custom-questions/index.d.ts +1 -0
- package/typings/components/tabs/theme-plugin.d.ts +1 -0
- package/typings/creator-base.d.ts +13 -6
- package/typings/creator-options.d.ts +1 -2
- package/typings/creator-settings.d.ts +6 -0
- package/typings/editorLocalization.d.ts +7 -0
- package/typings/localization/english.d.ts +7 -0
- package/typings/property-grid-theme/property-grid.d.ts +1 -0
|
@@ -17,7 +17,7 @@ export declare class SurveyElementAdornerBase<T extends SurveyElement = SurveyEl
|
|
|
17
17
|
constructor(creator: CreatorBase, surveyElement: T);
|
|
18
18
|
protected detachElement(surveyElement: T): void;
|
|
19
19
|
protected attachElement(surveyElement: T): void;
|
|
20
|
-
protected setSurveyElement(surveyElement: T): void;
|
|
20
|
+
protected setSurveyElement(surveyElement: T, updateActions?: boolean): void;
|
|
21
21
|
protected checkActionProperties(): void;
|
|
22
22
|
dispose(): void;
|
|
23
23
|
protected onElementSelectedChanged(isSelected: boolean): void;
|
|
@@ -9,7 +9,7 @@ export declare abstract class StringItemsNavigatorBase {
|
|
|
9
9
|
protected abstract addNewItem(creator: CreatorBase, items: any, text?: string): void;
|
|
10
10
|
protected abstract getItemsPropertyName(items: any): string;
|
|
11
11
|
private static createItemsNavigator;
|
|
12
|
-
protected addNewItems(items: any, startIndex: number, itemsToAdd: string[]): void;
|
|
12
|
+
protected addNewItems(creator: CreatorBase, items: any, startIndex: number, itemsToAdd: string[]): void;
|
|
13
13
|
private setEventsForItem;
|
|
14
14
|
static setQuestion(questionAdorner: QuestionAdornerViewModel): boolean;
|
|
15
15
|
}
|
|
@@ -31,6 +31,8 @@ export declare class LogicItemEditor extends PropertyEditorSetupValue {
|
|
|
31
31
|
apply(): boolean;
|
|
32
32
|
getEditingActions(): Array<SurveyLogicAction>;
|
|
33
33
|
private onUpdateQuestionCssClasses;
|
|
34
|
+
private isSetValueInternalQuestion;
|
|
35
|
+
private isSetValueInternalQuestionCore;
|
|
34
36
|
private onUpdatePanelCssClasses;
|
|
35
37
|
private onValueChanged;
|
|
36
38
|
private onQuestionAdded;
|
|
@@ -108,7 +108,7 @@ export declare class ThemeBuilder extends Base {
|
|
|
108
108
|
/**
|
|
109
109
|
* A function that is called [auto-save](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#isAutoSave) is triggered to save a theme JSON object.
|
|
110
110
|
*
|
|
111
|
-
* For more information, refer to the [Save and Load Custom Themes](/survey-creator/documentation/theme-editor#save-and-load-custom-themes) help topic.
|
|
111
|
+
* For more information, refer to the [Save and Load Custom Themes](https://surveyjs.io/survey-creator/documentation/theme-editor#save-and-load-custom-themes) help topic.
|
|
112
112
|
*/
|
|
113
113
|
get saveThemeFunc(): any;
|
|
114
114
|
set saveThemeFunc(value: any);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Question } from "survey-core";
|
|
2
2
|
export declare const DefaultFonts: string[];
|
|
3
|
+
export declare function updateFontSettingsJSON(): void;
|
|
3
4
|
export declare function fontsettingsToCssVariable(question: Question, themeCssVariables: {
|
|
4
5
|
[index: string]: string;
|
|
5
6
|
}): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function updateCustomQuestionJSONs(): void;
|
|
@@ -450,7 +450,6 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
450
450
|
*- sender the survey creator object that fires the event
|
|
451
451
|
*- options.element a new created survey element. It can be question, panel or page
|
|
452
452
|
*- options.name a new suggested name, that is unique for the current survey. You can suggest your own name. If it is unique, creator will assign it to the element.
|
|
453
|
-
*- options.isUnique a boolean property, set this property to false, if you want to ask Creator to generate another name
|
|
454
453
|
*/
|
|
455
454
|
onGenerateNewName: CreatorEvent;
|
|
456
455
|
/**
|
|
@@ -667,12 +666,12 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
667
666
|
*
|
|
668
667
|
* - `sender`: `CreatorBase`\
|
|
669
668
|
* A Survey Creator instance that raised the event.
|
|
670
|
-
* - `options.actions`: [`IAction[]`](/form-library/documentation/api-reference/iaction)\
|
|
669
|
+
* - `options.actions`: [`IAction[]`](https://surveyjs.io/form-library/documentation/api-reference/iaction)\
|
|
671
670
|
* An array of actions. You can add, modify, or remove actions from this array.
|
|
672
|
-
* - `options.page`: [`PageModel`](/form-library/documentation/api-reference/page-model)\
|
|
671
|
+
* - `options.page`: [`PageModel`](https://surveyjs.io/form-library/documentation/api-reference/page-model)\
|
|
673
672
|
* A page for which the event is raised.
|
|
674
673
|
* - `options.addNewQuestion(type)`: Method\
|
|
675
|
-
* Adds a new question of a specified [`type`](/form-library/documentation/api-reference/question#getType) to the page.
|
|
674
|
+
* Adds a new question of a specified [`type`](https://surveyjs.io/form-library/documentation/api-reference/question#getType) to the page.
|
|
676
675
|
* @see onDefineElementMenuItems
|
|
677
676
|
*/
|
|
678
677
|
onGetPageActions: CreatorEvent;
|
|
@@ -1007,7 +1006,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
1007
1006
|
*/
|
|
1008
1007
|
maximumRateValues: number;
|
|
1009
1008
|
/**
|
|
1010
|
-
* Limits the number of nested panels within a [Panel](/form-library/documentation/api-reference/panel-model) element.
|
|
1009
|
+
* Limits the number of nested panels within a [Panel](https://surveyjs.io/form-library/documentation/api-reference/panel-model) element.
|
|
1011
1010
|
*
|
|
1012
1011
|
* Default value: -1 (unlimited)
|
|
1013
1012
|
*/
|
|
@@ -1040,7 +1039,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
1040
1039
|
/**
|
|
1041
1040
|
* A function that is called each time users click the [Save button](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#showSaveButton) or [auto-save](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#isAutoSave) is triggered to save a theme JSON object.
|
|
1042
1041
|
*
|
|
1043
|
-
* For more information, refer to the [Save and Load Custom Themes](/survey-creator/documentation/theme-editor#save-and-load-custom-themes) help topic.
|
|
1042
|
+
* For more information, refer to the [Save and Load Custom Themes](https://surveyjs.io/survey-creator/documentation/theme-editor#save-and-load-custom-themes) help topic.
|
|
1044
1043
|
* @see showThemeTab
|
|
1045
1044
|
* @see saveSurveyFunc
|
|
1046
1045
|
*/
|
|
@@ -1442,6 +1441,12 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
1442
1441
|
*/
|
|
1443
1442
|
get selectedElement(): Base;
|
|
1444
1443
|
set selectedElement(val: Base);
|
|
1444
|
+
/**
|
|
1445
|
+
* Refreshes the Designer tab.
|
|
1446
|
+
*
|
|
1447
|
+
* `refreshDesigner()` is useful if the Designer tab UI depends on an external variable. Call this method each time this variable changes to update the UI.
|
|
1448
|
+
*/
|
|
1449
|
+
refreshDesigner(): void;
|
|
1445
1450
|
deleteCurrentObject(): void;
|
|
1446
1451
|
deleteCurrentElement(): void;
|
|
1447
1452
|
/**
|
|
@@ -1540,6 +1545,8 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
1540
1545
|
protected canDeleteItem(object: any, item: Base, allowDelete: boolean): boolean;
|
|
1541
1546
|
private getErrorOnPropertyChanging;
|
|
1542
1547
|
protected generateUniqueName(el: Base, newName: string): string;
|
|
1548
|
+
protected generateUniqueNameCore(options: any): void;
|
|
1549
|
+
private checkForUniqueName;
|
|
1543
1550
|
protected isNameUnique(el: Base, newName: string, includeNewItems?: boolean): boolean;
|
|
1544
1551
|
private isNameUniqueInArray;
|
|
1545
1552
|
protected doPropertyGridChanged(): void;
|
|
@@ -37,7 +37,6 @@ export interface ICreatorOptions {
|
|
|
37
37
|
* Default value: `false`
|
|
38
38
|
*/
|
|
39
39
|
showTranslationTab?: boolean;
|
|
40
|
-
haveCommercialLicense?: boolean;
|
|
41
40
|
/**
|
|
42
41
|
* Specifies whether to call the [`saveSurveyFunc`](https://surveyjs.io/Documentation/Survey-Creator?id=surveycreator#saveSurveyFunc) and [`saveThemeFunc`](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#saveThemeFunc) functions each time survey or theme settings are changed.
|
|
43
42
|
*
|
|
@@ -201,7 +200,7 @@ export interface ICreatorOptions {
|
|
|
201
200
|
*/
|
|
202
201
|
maxLogicItemsInCondition?: number;
|
|
203
202
|
/**
|
|
204
|
-
* Limits the number of nested panels within a [Panel](/form-library/documentation/api-reference/panel-model) element.
|
|
203
|
+
* Limits the number of nested panels within a [Panel](https://surveyjs.io/form-library/documentation/api-reference/panel-model) element.
|
|
205
204
|
*
|
|
206
205
|
* Default value: -1 (unlimited)
|
|
207
206
|
*/
|
|
@@ -68,6 +68,12 @@ export declare var settings: {
|
|
|
68
68
|
columnName: boolean;
|
|
69
69
|
choiceValue: boolean;
|
|
70
70
|
};
|
|
71
|
+
/**
|
|
72
|
+
* Set these properties to false if you don't want to update expressions on deleting question
|
|
73
|
+
*/
|
|
74
|
+
updateExpressionsOnDeleting: {
|
|
75
|
+
question: boolean;
|
|
76
|
+
};
|
|
71
77
|
};
|
|
72
78
|
/**
|
|
73
79
|
* Determines which types of questions the conversion will be available for.
|
|
@@ -111,6 +111,8 @@ export declare var defaultStrings: {
|
|
|
111
111
|
translation: string;
|
|
112
112
|
saveSurvey: string;
|
|
113
113
|
saveSurveyTooltip: string;
|
|
114
|
+
saveTheme: string;
|
|
115
|
+
saveThemeTooltip: string;
|
|
114
116
|
designer: string;
|
|
115
117
|
jsonEditor: string;
|
|
116
118
|
jsonHideErrors: string;
|
|
@@ -691,6 +693,11 @@ export declare var defaultStrings: {
|
|
|
691
693
|
signaturepad: {
|
|
692
694
|
showPlaceholder: string;
|
|
693
695
|
placeholder: string;
|
|
696
|
+
signatureWidth: string;
|
|
697
|
+
signatureHeight: string;
|
|
698
|
+
signatureAutoScaleEnabled: string;
|
|
699
|
+
penMinWidth: string;
|
|
700
|
+
penMaxWidth: string;
|
|
694
701
|
};
|
|
695
702
|
filePlaceholder: string;
|
|
696
703
|
photoPlaceholder: string;
|
|
@@ -80,6 +80,8 @@ export declare var enStrings: {
|
|
|
80
80
|
translation: string;
|
|
81
81
|
saveSurvey: string;
|
|
82
82
|
saveSurveyTooltip: string;
|
|
83
|
+
saveTheme: string;
|
|
84
|
+
saveThemeTooltip: string;
|
|
83
85
|
designer: string;
|
|
84
86
|
jsonEditor: string;
|
|
85
87
|
jsonHideErrors: string;
|
|
@@ -660,6 +662,11 @@ export declare var enStrings: {
|
|
|
660
662
|
signaturepad: {
|
|
661
663
|
showPlaceholder: string;
|
|
662
664
|
placeholder: string;
|
|
665
|
+
signatureWidth: string;
|
|
666
|
+
signatureHeight: string;
|
|
667
|
+
signatureAutoScaleEnabled: string;
|
|
668
|
+
penMinWidth: string;
|
|
669
|
+
penMaxWidth: string;
|
|
663
670
|
};
|
|
664
671
|
filePlaceholder: string;
|
|
665
672
|
photoPlaceholder: string;
|