survey-creator-core 1.9.104 → 1.9.106
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/package.json +2 -2
- package/survey-creator-core.css +122 -48
- package/survey-creator-core.fontless.css +121 -47
- package/survey-creator-core.fontless.css.map +1 -1
- package/survey-creator-core.fontless.min.css +8 -8
- package/survey-creator-core.i18n.js +1432 -99
- package/survey-creator-core.i18n.js.map +1 -1
- package/survey-creator-core.i18n.min.js +2 -2
- package/survey-creator-core.js +743 -381
- package/survey-creator-core.js.map +1 -1
- package/survey-creator-core.min.css +9 -9
- package/survey-creator-core.min.js +2 -2
- package/typings/components/page-navigator/page-navigator.d.ts +1 -0
- package/typings/components/question-image.d.ts +1 -0
- package/typings/components/side-bar/side-bar-model.d.ts +1 -0
- package/typings/components/string-editor.d.ts +2 -1
- package/typings/components/tabs/json-editor-plugin.d.ts +1 -0
- package/typings/components/tabs/logic-theme.d.ts +1 -0
- package/typings/components/tabs/test-plugin.d.ts +0 -1
- package/typings/components/tabs/test.d.ts +2 -1
- package/typings/components/tabs/theme-plugin.d.ts +0 -1
- package/typings/components/tabs/theme.d.ts +2 -0
- package/typings/components/tabs/translation.d.ts +15 -6
- package/typings/creator-base.d.ts +19 -7
- package/typings/custom-questions/question-file.d.ts +1 -0
- package/typings/custom-questions/question-text-with-reset.d.ts +28 -0
- package/typings/editorLocalization.d.ts +4 -0
- package/typings/entries/index.d.ts +1 -0
- package/typings/localization/english.d.ts +3 -0
- package/typings/property-grid/index.d.ts +4 -3
- package/typings/property-grid/matrices.d.ts +0 -2
- package/typings/property-grid-theme/property-grid.d.ts +11 -0
- package/typings/survey-elements.d.ts +2 -1
- package/typings/textWorker.d.ts +1 -0
- package/typings/toolbox.d.ts +2 -0
- package/typings/utils/actions.d.ts +1 -0
|
@@ -9,6 +9,7 @@ export declare class PageNavigatorViewModel extends Base {
|
|
|
9
9
|
private pagesChangedFunc;
|
|
10
10
|
private currentPagesChangedFunc;
|
|
11
11
|
private _resizeObserver;
|
|
12
|
+
private pcPropertyChangedHandler;
|
|
12
13
|
constructor(pagesController: PagesController, pageEditMode: string);
|
|
13
14
|
dispose(): void;
|
|
14
15
|
items: Array<IAction>;
|
|
@@ -22,6 +22,7 @@ export declare class SidebarModel extends Base {
|
|
|
22
22
|
getTabById(id: string): SidebarTabModel;
|
|
23
23
|
private createActions;
|
|
24
24
|
private getCurrentHandles;
|
|
25
|
+
private sidebarLocationChangedHandler;
|
|
25
26
|
constructor(creator: CreatorBase);
|
|
26
27
|
getExpandAction(): Action;
|
|
27
28
|
collapseSidebar(): void;
|
|
@@ -41,7 +41,8 @@ export declare class StringEditorViewModelBase extends Base {
|
|
|
41
41
|
compostionInProgress: boolean;
|
|
42
42
|
constructor(locString: LocalizableString, creator: CreatorBase);
|
|
43
43
|
afterRender(): void;
|
|
44
|
-
|
|
44
|
+
dispose(): void;
|
|
45
|
+
activate: () => boolean;
|
|
45
46
|
setLocString(locString: LocalizableString): void;
|
|
46
47
|
checkConstraints(event: any): void;
|
|
47
48
|
blurEditor: () => void;
|
|
@@ -30,5 +30,6 @@ export declare abstract class TabJsonEditorBasePlugin implements ICreatorPlugin
|
|
|
30
30
|
constructor(creator: CreatorBase);
|
|
31
31
|
activate(): void;
|
|
32
32
|
deactivate(): boolean;
|
|
33
|
+
defaultAllowingDeactivate(): boolean;
|
|
33
34
|
protected abstract createModel(creator: CreatorBase): JsonEditorBaseModel;
|
|
34
35
|
}
|
|
@@ -16,7 +16,6 @@ export declare class TabTestPlugin implements ICreatorPlugin {
|
|
|
16
16
|
private nextPageAction;
|
|
17
17
|
private simulatorTheme;
|
|
18
18
|
model: TestSurveyTabViewModel;
|
|
19
|
-
private getSimulatorDevicesTitle;
|
|
20
19
|
private setDevice;
|
|
21
20
|
private setDefaultLanguageOption;
|
|
22
21
|
private getLanguages;
|
|
@@ -4,6 +4,7 @@ import { CreatorBase } from "../../creator-base";
|
|
|
4
4
|
export declare class TestSurveyTabViewModel extends Base {
|
|
5
5
|
private surveyProvider;
|
|
6
6
|
private startTheme;
|
|
7
|
+
static tagRegex: RegExp;
|
|
7
8
|
private json;
|
|
8
9
|
pages: ActionContainer;
|
|
9
10
|
prevPageAction: Action;
|
|
@@ -40,6 +41,6 @@ export declare class TestSurveyTabViewModel extends Base {
|
|
|
40
41
|
setTheme(themeName: string, themeMapper: any): void;
|
|
41
42
|
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
42
43
|
private updatePrevNextPageActionState;
|
|
43
|
-
private onScrollCallback;
|
|
44
44
|
onScroll(): boolean;
|
|
45
|
+
dispose(): void;
|
|
45
46
|
}
|
|
@@ -17,7 +17,6 @@ export declare class TabThemePlugin implements ICreatorPlugin {
|
|
|
17
17
|
private simulatorTheme;
|
|
18
18
|
private sidebarTab;
|
|
19
19
|
model: ThemeSurveyTabViewModel;
|
|
20
|
-
private getSimulatorDevicesTitle;
|
|
21
20
|
private setDevice;
|
|
22
21
|
private updateActions;
|
|
23
22
|
constructor(creator: CreatorBase);
|
|
@@ -93,6 +93,8 @@ export declare class ThemeSurveyTabViewModel extends Base {
|
|
|
93
93
|
protected createThemeEditorSurvey(): SurveyModel;
|
|
94
94
|
private loadThemeIntoPropertyGrid;
|
|
95
95
|
private updatePGEditors;
|
|
96
|
+
private raiseThemeChanged;
|
|
96
97
|
private setThemeToSurvey;
|
|
97
98
|
private getThemeEditorSurveyJSON;
|
|
99
|
+
dispose(): void;
|
|
98
100
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Base, SurveyModel, JsonObjectProperty, PageModel, ILocalizableString,
|
|
1
|
+
import { Base, SurveyModel, JsonObjectProperty, PageModel, ILocalizableString, IAction, QuestionMatrixDynamicModel } from "survey-core";
|
|
2
2
|
import { ISurveyCreatorOptions } from "../../creator-settings";
|
|
3
3
|
export declare class TranslationItemBase extends Base {
|
|
4
4
|
name: string;
|
|
@@ -71,6 +71,7 @@ export declare class TranslationGroup extends TranslationItemBase {
|
|
|
71
71
|
hasIndent: boolean;
|
|
72
72
|
private isRootValue;
|
|
73
73
|
private itemValues;
|
|
74
|
+
private parentValue;
|
|
74
75
|
constructor(name: any, obj: any, translation?: ITranslationLocales, text?: string, hasIndent?: boolean);
|
|
75
76
|
getType(): string;
|
|
76
77
|
showHeader: boolean;
|
|
@@ -78,6 +79,11 @@ export declare class TranslationGroup extends TranslationItemBase {
|
|
|
78
79
|
get locItems(): Array<TranslationItem>;
|
|
79
80
|
get isRoot(): boolean;
|
|
80
81
|
setAsRoot(): void;
|
|
82
|
+
setParent(parent: TranslationGroup): void;
|
|
83
|
+
get parent(): TranslationGroup;
|
|
84
|
+
get fullName(): string;
|
|
85
|
+
protected getNameForChild(): string;
|
|
86
|
+
protected get isFinalNameObj(): boolean;
|
|
81
87
|
getItemByName(name: string): TranslationItemBase;
|
|
82
88
|
get groups(): Array<TranslationGroup>;
|
|
83
89
|
get isGroup(): boolean;
|
|
@@ -103,6 +109,7 @@ export declare class TranslationGroup extends TranslationItemBase {
|
|
|
103
109
|
private getDefaultValue;
|
|
104
110
|
private isItemValueArray;
|
|
105
111
|
private createGroups;
|
|
112
|
+
private addNewGroup;
|
|
106
113
|
private createItemValuesLocale;
|
|
107
114
|
private addCustomPropertiesForItemValue;
|
|
108
115
|
}
|
|
@@ -141,8 +148,9 @@ export declare class Translation extends Base implements ITranslationLocales {
|
|
|
141
148
|
makeObservable(onBaseObjCreating: (obj: Base) => void): void;
|
|
142
149
|
fireOnObjCreating(obj: Base): void;
|
|
143
150
|
get settingsSurvey(): SurveyModel;
|
|
144
|
-
get localesQuestion():
|
|
151
|
+
get localesQuestion(): QuestionMatrixDynamicModel;
|
|
145
152
|
deleteLocaleStrings(locale: string): void;
|
|
153
|
+
private removingLocale;
|
|
146
154
|
protected createSettingsSurvey(): SurveyModel;
|
|
147
155
|
private isChooseLanguageEnabled;
|
|
148
156
|
private calcIsChooseLanguageEnabled;
|
|
@@ -156,21 +164,19 @@ export declare class Translation extends Base implements ITranslationLocales {
|
|
|
156
164
|
private createStringsHeaderSurvey;
|
|
157
165
|
private addTranslationGroupIntoStringsSurvey;
|
|
158
166
|
private addLocaleColumns;
|
|
159
|
-
private getStringsSurveyQuestionName;
|
|
160
167
|
private getStringsSurveyData;
|
|
161
168
|
private getStringsQuestionData;
|
|
162
169
|
private updateHeaderStringsSurveyColumns;
|
|
163
170
|
private updateStringsSurveyColumns;
|
|
164
171
|
private addLocaleIntoChoices;
|
|
165
172
|
private addLocaleIntoValue;
|
|
166
|
-
private addLocaleIntoValueCore;
|
|
167
173
|
private isLocaleVisible;
|
|
168
174
|
private setupToolbarItems;
|
|
169
175
|
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
170
176
|
private getMergeLocaleWithDefaultText;
|
|
171
177
|
get survey(): SurveyModel;
|
|
172
178
|
set survey(val: SurveyModel);
|
|
173
|
-
reset(
|
|
179
|
+
reset(): void;
|
|
174
180
|
private updateReadOnly;
|
|
175
181
|
canShowProperty(obj: Base, prop: JsonObjectProperty, isEmpty: boolean): boolean;
|
|
176
182
|
get defaultLocale(): string;
|
|
@@ -182,6 +188,10 @@ export declare class Translation extends Base implements ITranslationLocales {
|
|
|
182
188
|
resetLocales(): void;
|
|
183
189
|
getSelectedLocales(): Array<string>;
|
|
184
190
|
setSelectedLocales(selectedLocales: Array<string>): void;
|
|
191
|
+
getVisibleLocales(): Array<string>;
|
|
192
|
+
setVisibleLocales(locales: Array<string>): void;
|
|
193
|
+
private getSelectedLocalesCore;
|
|
194
|
+
private setSelectedAndVisibleLocales;
|
|
185
195
|
get noStringsText(): string;
|
|
186
196
|
exportToCSV(): string;
|
|
187
197
|
importFromNestedArray(rows: string[][]): void;
|
|
@@ -194,6 +204,5 @@ export declare class Translation extends Base implements ITranslationLocales {
|
|
|
194
204
|
*/
|
|
195
205
|
private updateItemWithStrings;
|
|
196
206
|
private fillItemsHash;
|
|
197
|
-
private setLocales;
|
|
198
207
|
dispose(): void;
|
|
199
208
|
}
|
|
@@ -30,6 +30,7 @@ export interface ICreatorPlugin {
|
|
|
30
30
|
update?: () => void;
|
|
31
31
|
deactivate?: () => boolean;
|
|
32
32
|
canDeactivateAsync?: (onSuccess: () => void) => void;
|
|
33
|
+
defaultAllowingDeactivate?: () => boolean | undefined;
|
|
33
34
|
dispose?: () => void;
|
|
34
35
|
onDesignerSurveyPropertyChanged?: (obj: Base, propName: string) => void;
|
|
35
36
|
model: Base;
|
|
@@ -957,16 +958,27 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
957
958
|
get isRTL(): boolean;
|
|
958
959
|
set isRTL(value: boolean);
|
|
959
960
|
/**
|
|
960
|
-
*
|
|
961
|
-
|
|
962
|
-
|
|
961
|
+
* An event that is raised before the [active tab](#activeTab) is switched. Use this event to allow or cancel the switch.
|
|
962
|
+
*
|
|
963
|
+
* Parameters:
|
|
964
|
+
*
|
|
965
|
+
* - `sender`: `CreatorBase`\
|
|
966
|
+
* A Survey Creator instance that raised the event.
|
|
967
|
+
* - `options.tabName`: `"designer"` | `"test"` | `"theme"` | `"editor"` | `"embed"` | `"logic"` | `"translation"`\
|
|
968
|
+
* A tab that is going to become active.
|
|
969
|
+
* - `options.allow`: `Boolean`\
|
|
970
|
+
* Specifies whether the active tab can be switched. Set this property to `false` if you want to cancel the switch.
|
|
963
971
|
*/
|
|
964
972
|
onActiveTabChanging: CreatorEvent;
|
|
965
973
|
/**
|
|
966
|
-
*
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
974
|
+
* An event that is raised after the [active tab](#activeTab) is switched.
|
|
975
|
+
*
|
|
976
|
+
* Parameters:
|
|
977
|
+
*
|
|
978
|
+
* - `sender`: `CreatorBase`\
|
|
979
|
+
* A Survey Creator instance that raised the event.
|
|
980
|
+
* - `options.tabName`: `"designer"` | `"test"` | `"theme"` | `"editor"` | `"embed"` | `"logic"` | `"translation"`\
|
|
981
|
+
* A tab that has become active.
|
|
970
982
|
*/
|
|
971
983
|
onActiveTabChanged: CreatorEvent;
|
|
972
984
|
/**
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Base, QuestionCommentModel, QuestionTextModel } from "survey-core";
|
|
2
|
+
export declare class ResetValueAdorner extends Base {
|
|
3
|
+
private question;
|
|
4
|
+
constructor(question: QuestionTextModel | QuestionCommentModel);
|
|
5
|
+
resetValueCallback: () => {};
|
|
6
|
+
caption: string;
|
|
7
|
+
allowResetValue: boolean;
|
|
8
|
+
resetValue(): void;
|
|
9
|
+
get isDisabled(): boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare class QuestionTextWithResetModel extends QuestionTextModel {
|
|
12
|
+
resetValueAdorner: ResetValueAdorner;
|
|
13
|
+
constructor(name: string);
|
|
14
|
+
protected createResetValueAdorner(): ResetValueAdorner;
|
|
15
|
+
getType(): string;
|
|
16
|
+
getRootClass(): string;
|
|
17
|
+
getControlClass(): string;
|
|
18
|
+
get wrappedQuestionTemplate(): string;
|
|
19
|
+
}
|
|
20
|
+
export declare class QuestionCommentWithResetModel extends QuestionCommentModel {
|
|
21
|
+
constructor(name: string);
|
|
22
|
+
protected createResetValueAdorner(): ResetValueAdorner;
|
|
23
|
+
getType(): string;
|
|
24
|
+
protected getCssType(): string;
|
|
25
|
+
getRootClass(): string;
|
|
26
|
+
getControlClass(): string;
|
|
27
|
+
get wrappedQuestionTemplate(): string;
|
|
28
|
+
}
|
|
@@ -7,6 +7,7 @@ export declare class EditorLocalization {
|
|
|
7
7
|
reset(): void;
|
|
8
8
|
getString(strName: string, locale?: string): string;
|
|
9
9
|
hasString(strName: string, locale?: string): boolean;
|
|
10
|
+
private getStringByLocale;
|
|
10
11
|
getLocaleName(loc: string, defaultLocale?: string): string;
|
|
11
12
|
getPropertyName(strName: string, defaultName?: string): string;
|
|
12
13
|
getPropertyTitle(strName: string): string;
|
|
@@ -151,6 +152,7 @@ export declare var defaultStrings: {
|
|
|
151
152
|
translationPropertyGridTitle: string;
|
|
152
153
|
themePropertyGridTitle: string;
|
|
153
154
|
translationLanguages: string;
|
|
155
|
+
translationDeleteLanguage: string;
|
|
154
156
|
translationAddLanguage: string;
|
|
155
157
|
translationShowAllStrings: string;
|
|
156
158
|
translationShowUsedStringsOnly: string;
|
|
@@ -162,6 +164,7 @@ export declare var defaultStrings: {
|
|
|
162
164
|
translationPlaceHolder: string;
|
|
163
165
|
themeExportButton: string;
|
|
164
166
|
themeImportButton: string;
|
|
167
|
+
themeResetButton: string;
|
|
165
168
|
bold: string;
|
|
166
169
|
italic: string;
|
|
167
170
|
underline: string;
|
|
@@ -301,6 +304,7 @@ export declare var defaultStrings: {
|
|
|
301
304
|
cellsEmptyRowsColumns: string;
|
|
302
305
|
showPreviewBeforeComplete: string;
|
|
303
306
|
overridingPropertyPrefix: string;
|
|
307
|
+
resetToDefaultCaption: string;
|
|
304
308
|
propertyIsEmpty: string;
|
|
305
309
|
propertyIsNoUnique: string;
|
|
306
310
|
propertyNameIsNotUnique: string;
|
|
@@ -48,6 +48,7 @@ export * from "../json5";
|
|
|
48
48
|
export * from "../custom-questions/question-spin-editor";
|
|
49
49
|
export * from "../custom-questions/question-color";
|
|
50
50
|
export * from "../custom-questions/question-file";
|
|
51
|
+
export * from "../custom-questions/question-text-with-reset";
|
|
51
52
|
export * from "../property-grid";
|
|
52
53
|
export * from "../property-grid/condition";
|
|
53
54
|
export * from "../property-grid/matrices";
|
|
@@ -122,6 +122,7 @@ export declare var enStrings: {
|
|
|
122
122
|
translationPropertyGridTitle: string;
|
|
123
123
|
themePropertyGridTitle: string;
|
|
124
124
|
translationLanguages: string;
|
|
125
|
+
translationDeleteLanguage: string;
|
|
125
126
|
translationAddLanguage: string;
|
|
126
127
|
translationShowAllStrings: string;
|
|
127
128
|
translationShowUsedStringsOnly: string;
|
|
@@ -133,6 +134,7 @@ export declare var enStrings: {
|
|
|
133
134
|
translationPlaceHolder: string;
|
|
134
135
|
themeExportButton: string;
|
|
135
136
|
themeImportButton: string;
|
|
137
|
+
themeResetButton: string;
|
|
136
138
|
bold: string;
|
|
137
139
|
italic: string;
|
|
138
140
|
underline: string;
|
|
@@ -272,6 +274,7 @@ export declare var enStrings: {
|
|
|
272
274
|
cellsEmptyRowsColumns: string;
|
|
273
275
|
showPreviewBeforeComplete: string;
|
|
274
276
|
overridingPropertyPrefix: string;
|
|
277
|
+
resetToDefaultCaption: string;
|
|
275
278
|
propertyIsEmpty: string;
|
|
276
279
|
propertyIsNoUnique: string;
|
|
277
280
|
propertyNameIsNotUnique: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Base, JsonObjectProperty, PanelModel, PanelModelBase, Question, SurveyModel, MatrixDynamicRowModel
|
|
1
|
+
import { Base, JsonObjectProperty, PanelModel, PanelModelBase, Question, SurveyModel, MatrixDynamicRowModel } from "survey-core";
|
|
2
2
|
import { ISurveyCreatorOptions } from "../creator-settings";
|
|
3
3
|
import { QuestionFileEditorModel } from "../custom-questions/question-file";
|
|
4
4
|
export interface IPropertyEditorSetup {
|
|
@@ -170,7 +170,8 @@ export declare class PropertyGridEditorBoolean extends PropertyGridEditor {
|
|
|
170
170
|
}
|
|
171
171
|
export declare abstract class PropertyGridEditorStringBase extends PropertyGridEditor {
|
|
172
172
|
protected updateMaxLength(prop: JsonObjectProperty, json: any): any;
|
|
173
|
-
|
|
173
|
+
protected updateType(prop: JsonObjectProperty, obj: Base, json: any): any;
|
|
174
|
+
onCreated(obj: Base, question: Question, prop: JsonObjectProperty, options: ISurveyCreatorOptions): void;
|
|
174
175
|
}
|
|
175
176
|
export declare class PropertyGridEditorString extends PropertyGridEditorStringBase {
|
|
176
177
|
fit(prop: JsonObjectProperty): boolean;
|
|
@@ -189,7 +190,7 @@ export declare class PropertyGridEditorNumber extends PropertyGridEditor {
|
|
|
189
190
|
export declare class PropertyGridEditorImageSize extends PropertyGridEditorString {
|
|
190
191
|
fit(prop: JsonObjectProperty): boolean;
|
|
191
192
|
isDefault(): boolean;
|
|
192
|
-
onCreated(obj: Base, question: Question, prop: JsonObjectProperty): void;
|
|
193
|
+
onCreated(obj: Base, question: Question, prop: JsonObjectProperty, options: ISurveyCreatorOptions): void;
|
|
193
194
|
}
|
|
194
195
|
export declare class PropertyGridEditorText extends PropertyGridEditorStringBase {
|
|
195
196
|
fit(prop: JsonObjectProperty): boolean;
|
|
@@ -5,11 +5,9 @@ export declare abstract class PropertyGridEditorMatrix extends PropertyGridEdito
|
|
|
5
5
|
static getNewColumnName(objs: Array<any>, keyPropName: string, baseName: string): string | number;
|
|
6
6
|
onCreated(obj: Base, question: Question, prop: JsonObjectProperty): void;
|
|
7
7
|
onSetup(obj: Base, question: Question, prop: JsonObjectProperty, options: ISurveyCreatorOptions): void;
|
|
8
|
-
private initializeAcceptedTypes;
|
|
9
8
|
private initializePlaceholder;
|
|
10
9
|
onMatrixCellCreated(obj: Base, options: any): void;
|
|
11
10
|
onMatrixCellValueChanged(obj: Base, options: any): void;
|
|
12
|
-
private updateMatixActionsClasses;
|
|
13
11
|
onGetMatrixRowAction(obj: Base, options: any, setObjFunc: (obj: Base) => void): void;
|
|
14
12
|
private getShowDetailActionIconName;
|
|
15
13
|
onGetQuestionTitleActions(obj: Base, options: any): void;
|
|
@@ -337,6 +337,17 @@ export declare var propertyGridCss: {
|
|
|
337
337
|
colorItem: string;
|
|
338
338
|
swatchIcon: string;
|
|
339
339
|
};
|
|
340
|
+
textwithreset: {
|
|
341
|
+
root: string;
|
|
342
|
+
rootMultiline: string;
|
|
343
|
+
control: string;
|
|
344
|
+
controlMultiline: string;
|
|
345
|
+
resetButton: string;
|
|
346
|
+
resetButtonIcon: string;
|
|
347
|
+
content: string;
|
|
348
|
+
remainingCharacterCounter: string;
|
|
349
|
+
onError: string;
|
|
350
|
+
};
|
|
340
351
|
fileedit: {
|
|
341
352
|
root: string;
|
|
342
353
|
control: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DragDropCore, DragTypeOverMeEnum, IElement, IPanel, IShortcutText, ISurveyElement, JsonObject, PageModel, QuestionRowModel } from "survey-core";
|
|
2
|
+
import { IQuestionToolboxItem } from "./toolbox";
|
|
2
3
|
export declare function calculateIsEdge(dropTargetNode: HTMLElement, clientY: number): boolean;
|
|
3
4
|
export declare function calculateIsSide(dropTargetNode: HTMLElement, clientX: number): boolean;
|
|
4
5
|
export declare function calculateDragOverLocation(clientX: number, clientY: number, dropTargetNode: HTMLElement): DragTypeOverMeEnum;
|
|
@@ -15,7 +16,7 @@ export declare class DragDropSurveyElements extends DragDropCore<any> {
|
|
|
15
16
|
protected dragOverLocation: DragTypeOverMeEnum;
|
|
16
17
|
protected get draggedElementType(): string;
|
|
17
18
|
protected isDraggedElementSelected: boolean;
|
|
18
|
-
startDragToolboxItem(event: PointerEvent, draggedElementJson: JsonObject,
|
|
19
|
+
startDragToolboxItem(event: PointerEvent, draggedElementJson: JsonObject, toolboxItemModel: IQuestionToolboxItem): void;
|
|
19
20
|
startDragSurveyElement(event: PointerEvent, draggedElement: any, isElementSelected?: boolean): void;
|
|
20
21
|
protected getShortcutText(draggedElement: IShortcutText): string;
|
|
21
22
|
protected createDraggedElementShortcut(text: string, draggedElementNode?: HTMLElement, event?: PointerEvent): HTMLElement;
|
package/typings/textWorker.d.ts
CHANGED
|
@@ -43,6 +43,7 @@ export declare class SurveyTextWorker {
|
|
|
43
43
|
constructor(text: string);
|
|
44
44
|
get survey(): SurveyModel;
|
|
45
45
|
get isJsonCorrect(): boolean;
|
|
46
|
+
get isJsonHasErrors(): boolean;
|
|
46
47
|
protected process(): void;
|
|
47
48
|
private updateJsonPositions;
|
|
48
49
|
private setErrorsPositionByChartAt;
|
package/typings/toolbox.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export interface IQuestionToolboxItem extends IAction {
|
|
|
20
20
|
* Toolbox item title
|
|
21
21
|
*/
|
|
22
22
|
title: string;
|
|
23
|
+
className: string;
|
|
23
24
|
/**
|
|
24
25
|
* Toolbox item tooltip. It equals to title if it is empty
|
|
25
26
|
*/
|
|
@@ -47,6 +48,7 @@ export declare class QuestionToolboxCategory extends Base {
|
|
|
47
48
|
export declare class QuestionToolboxItem extends Action implements IQuestionToolboxItem {
|
|
48
49
|
private item;
|
|
49
50
|
constructor(item: IQuestionToolboxItem);
|
|
51
|
+
className: string;
|
|
50
52
|
iconName: string;
|
|
51
53
|
name: string;
|
|
52
54
|
json: any;
|
|
@@ -3,3 +3,4 @@ export declare function findAction(actions: Array<IAction>, id: string): IAction
|
|
|
3
3
|
export declare function updateMatrixLogicExpandAction(question: QuestionMatrixDynamicModel, actions: Array<IAction>, row: MatrixDropdownRowModelBase): void;
|
|
4
4
|
export declare function updateMatrixLogicRemoveAction(question: QuestionMatrixDynamicModel, actions: Array<IAction>, row: MatrixDynamicRowModel): void;
|
|
5
5
|
export declare function updateMatrixRemoveAction(question: QuestionMatrixDynamicModel, actions: Array<IAction>, row: MatrixDynamicRowModel): void;
|
|
6
|
+
export declare function updateMatixActionsClasses(actions: Array<IAction>): void;
|