survey-creator-core 1.9.89 → 1.9.91
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 +224 -93
- package/survey-creator-core.fontless.css +223 -92
- package/survey-creator-core.fontless.css.map +1 -1
- package/survey-creator-core.fontless.min.css +12 -12
- package/survey-creator-core.i18n.js +1 -1
- package/survey-creator-core.i18n.min.js +1 -1
- package/survey-creator-core.js +1837 -514
- package/survey-creator-core.js.map +1 -1
- package/survey-creator-core.min.css +13 -13
- package/survey-creator-core.min.js +3 -3
- package/typings/components/item-value.d.ts +1 -0
- package/typings/components/page.d.ts +5 -2
- package/typings/components/question-rating.d.ts +1 -0
- package/typings/components/question.d.ts +1 -1
- package/typings/components/simulator.d.ts +0 -1
- package/typings/components/string-editor.d.ts +1 -0
- package/typings/components/tabs/theme-custom-questions/boxshadow-settings.d.ts +2 -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-plugin.d.ts +3 -0
- package/typings/components/tabs/theme.d.ts +18 -39
- package/typings/creator-base.d.ts +21 -2
- package/typings/creator-settings.d.ts +4 -0
- package/typings/custom-questions/question-color.d.ts +10 -1
- package/typings/editorLocalization.d.ts +13 -0
- package/typings/entries/index.d.ts +4 -0
- package/typings/localization/english.d.ts +13 -0
- package/typings/property-grid/matrices.d.ts +1 -0
- package/typings/property-grid-theme/property-grid.d.ts +3 -1
- package/typings/survey-elements.d.ts +44 -0
- package/typings/utils/utils.d.ts +23 -0
|
@@ -24,6 +24,7 @@ export declare class ItemValueWrapperViewModel extends Base {
|
|
|
24
24
|
startDragItemValue: (pointerDownEvent: PointerEvent, currentTarget: any) => void;
|
|
25
25
|
private get dragDropHelper();
|
|
26
26
|
dispose(): void;
|
|
27
|
+
private getGhostPosition;
|
|
27
28
|
private handleDragDropGhostPositionChanged;
|
|
28
29
|
get isDraggable(): boolean;
|
|
29
30
|
isDraggableItem(item: ItemValue): boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PageModel } from "survey-core";
|
|
1
|
+
import { ActionContainer, DragTypeOverMeEnum, PageModel } from "survey-core";
|
|
2
2
|
import { CreatorBase } from "../creator-base";
|
|
3
3
|
import { IPortableMouseEvent } from "../utils/events";
|
|
4
4
|
import { SurveyElementAdornerBase } from "./action-container-view-model";
|
|
@@ -8,6 +8,7 @@ export declare class PageAdorner extends SurveyElementAdornerBase<PageModel> {
|
|
|
8
8
|
onPageSelectedCallback: () => void;
|
|
9
9
|
questionTypeSelectorModel: any;
|
|
10
10
|
currentAddQuestionType: string;
|
|
11
|
+
dragTypeOverMe: DragTypeOverMeEnum;
|
|
11
12
|
constructor(creator: CreatorBase, page: PageModel);
|
|
12
13
|
protected attachElement(surveyElement: PageModel): void;
|
|
13
14
|
protected onElementSelectedChanged(isSelected: boolean): void;
|
|
@@ -18,11 +19,13 @@ export declare class PageAdorner extends SurveyElementAdornerBase<PageModel> {
|
|
|
18
19
|
protected getPage(): PageModel;
|
|
19
20
|
get page(): PageModel;
|
|
20
21
|
private addGhostPage;
|
|
21
|
-
addNewQuestion(model: PageAdorner, event: IPortableMouseEvent): void;
|
|
22
|
+
addNewQuestion(model: PageAdorner, event: IPortableMouseEvent, type?: string): void;
|
|
22
23
|
select(model: PageAdorner, event: IPortableMouseEvent): void;
|
|
23
24
|
get css(): string;
|
|
24
25
|
hover(event: MouseEvent, element: HTMLElement | any): void;
|
|
25
26
|
hoverStopper(event: MouseEvent, element: HTMLElement | any): void;
|
|
26
27
|
protected duplicate(): void;
|
|
27
28
|
get addNewQuestionText(): string;
|
|
29
|
+
private _footerActionsBar;
|
|
30
|
+
get footerActionsBar(): ActionContainer;
|
|
28
31
|
}
|
|
@@ -14,6 +14,7 @@ export declare class QuestionRatingAdornerViewModel extends Base {
|
|
|
14
14
|
get enableAdd(): boolean;
|
|
15
15
|
get addClassNames(): string;
|
|
16
16
|
static allowRemoveForElement(element: QuestionRatingModel): boolean;
|
|
17
|
+
private canAddOrRemove;
|
|
17
18
|
get allowRemove(): boolean;
|
|
18
19
|
get enableRemove(): boolean;
|
|
19
20
|
get removeClassNames(): string;
|
|
@@ -15,7 +15,7 @@ export declare class QuestionAdornerViewModel extends SurveyElementAdornerBase {
|
|
|
15
15
|
rootCss(): "" | " svc-question__adorner--start-with-new-line";
|
|
16
16
|
css(): string;
|
|
17
17
|
get isDragMe(): boolean;
|
|
18
|
-
dragTypeOverMe: DragTypeOverMeEnum;
|
|
18
|
+
get dragTypeOverMe(): DragTypeOverMeEnum;
|
|
19
19
|
dispose(): void;
|
|
20
20
|
get isDraggable(): boolean;
|
|
21
21
|
hover(event: MouseEvent, element: HTMLElement | any): void;
|
|
@@ -53,6 +53,7 @@ export declare class StringEditorViewModelBase extends Base {
|
|
|
53
53
|
onCompositionEnd(event: any): void;
|
|
54
54
|
onBlur(event: any): void;
|
|
55
55
|
done(event: Event): void;
|
|
56
|
+
onPaste(event: ClipboardEvent): void;
|
|
56
57
|
onKeyDown(event: KeyboardEvent): boolean;
|
|
57
58
|
onKeyUp(event: KeyboardEvent): boolean;
|
|
58
59
|
private justFocused;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function createColor(value: any): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -10,6 +10,9 @@ export declare class TabThemePlugin implements ICreatorPlugin {
|
|
|
10
10
|
private designerAction;
|
|
11
11
|
private prevPageAction;
|
|
12
12
|
private nextPageAction;
|
|
13
|
+
private importAction;
|
|
14
|
+
private exportAction;
|
|
15
|
+
private inputFileElement;
|
|
13
16
|
private simulatorTheme;
|
|
14
17
|
private sidebarTab;
|
|
15
18
|
model: ThemeSurveyTabViewModel;
|
|
@@ -1,50 +1,21 @@
|
|
|
1
1
|
import { SurveySimulatorModel } from "../simulator";
|
|
2
|
-
import { Base, PageModel, SurveyModel, Action, IAction, ActionContainer } from "survey-core";
|
|
2
|
+
import { Base, PageModel, SurveyModel, Action, IAction, ActionContainer, ITheme } from "survey-core";
|
|
3
3
|
import { CreatorBase } from "../../creator-base";
|
|
4
|
-
export declare const Themes:
|
|
5
|
-
"default-light": {
|
|
6
|
-
"--sjs-primary-backcolor": string;
|
|
7
|
-
"--background": string;
|
|
8
|
-
"--background-dim": string;
|
|
9
|
-
"--background-dim-light": string;
|
|
10
|
-
"--sjs-general-forecolor": string;
|
|
11
|
-
"--sjs-general-forecolor-light": string;
|
|
12
|
-
"--sjs-general-dim-forecolor": string;
|
|
13
|
-
"--sjs-general-dim-forecolor-light": string;
|
|
14
|
-
"--sjs-editor-background": string;
|
|
15
|
-
"--sjs-question-background": string;
|
|
16
|
-
"--sjs-primary-forecolor": string;
|
|
17
|
-
"--foreground": string;
|
|
18
|
-
"--base-unit": string;
|
|
19
|
-
"--sjs-corner-radius": string;
|
|
20
|
-
};
|
|
21
|
-
"default-dark": {
|
|
22
|
-
"--sjs-primary-backcolor": string;
|
|
23
|
-
"--background": string;
|
|
24
|
-
"--background-dim": string;
|
|
25
|
-
"--background-dim-light": string;
|
|
26
|
-
"--sjs-general-forecolor": string;
|
|
27
|
-
"--sjs-general-forecolor-light": string;
|
|
28
|
-
"--sjs-general-dim-forecolor": string;
|
|
29
|
-
"--sjs-general-dim-forecolor-light": string;
|
|
30
|
-
"--sjs-editor-background": string;
|
|
31
|
-
"--sjs-question-background": string;
|
|
32
|
-
"--sjs-primary-forecolor": string;
|
|
33
|
-
"--foreground": string;
|
|
34
|
-
"--base-unit": string;
|
|
35
|
-
"--sjs-corner-radius": string;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
4
|
+
export declare const Themes: any;
|
|
38
5
|
export declare class ThemeSurveyTabViewModel extends Base {
|
|
39
6
|
private surveyProvider;
|
|
40
7
|
private startTheme;
|
|
41
8
|
private json;
|
|
9
|
+
exportToFileUI: any;
|
|
10
|
+
importFromFileUI: any;
|
|
42
11
|
pages: ActionContainer;
|
|
43
12
|
prevPageAction: Action;
|
|
44
13
|
testAgainAction: Action;
|
|
45
14
|
nextPageAction: Action;
|
|
46
15
|
private selectPageAction;
|
|
47
16
|
private themeEditorSurveyValue;
|
|
17
|
+
private themeChanges;
|
|
18
|
+
private colorCalculator;
|
|
48
19
|
onSurveyCreatedCallback: (survey: SurveyModel) => any;
|
|
49
20
|
simulator: SurveySimulatorModel;
|
|
50
21
|
showInvisibleElements: any;
|
|
@@ -52,14 +23,23 @@ export declare class ThemeSurveyTabViewModel extends Base {
|
|
|
52
23
|
isRunning: boolean;
|
|
53
24
|
pageListItems: Array<IAction>;
|
|
54
25
|
activePage: PageModel;
|
|
26
|
+
themeName: any;
|
|
27
|
+
themePalette: any;
|
|
28
|
+
themeMode: any;
|
|
29
|
+
getFullThemeName(_themeName?: string): any;
|
|
30
|
+
get themeVariables(): any;
|
|
55
31
|
get activeLanguage(): string;
|
|
56
32
|
set activeLanguage(val: string);
|
|
57
33
|
get survey(): SurveyModel;
|
|
58
34
|
get pageActions(): Array<Action>;
|
|
59
35
|
get isPageToolbarVisible(): boolean;
|
|
60
36
|
get themeEditorSurvey(): SurveyModel;
|
|
37
|
+
get currentTheme(): ITheme;
|
|
61
38
|
constructor(surveyProvider: CreatorBase, startTheme?: any);
|
|
39
|
+
private loadTheme;
|
|
62
40
|
updateSimulatorSurvey(json: any, theme: any): void;
|
|
41
|
+
exportToFile(fileName: string): void;
|
|
42
|
+
importFromFile(file: File): void;
|
|
63
43
|
setJSON(json: any, currTheme: any): void;
|
|
64
44
|
initialize(json: any, options: any): void;
|
|
65
45
|
private updatePageItem;
|
|
@@ -76,10 +56,9 @@ export declare class ThemeSurveyTabViewModel extends Base {
|
|
|
76
56
|
setTheme(themeName: string, themeMapper: any): void;
|
|
77
57
|
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
78
58
|
private updatePrevNextPageActionState;
|
|
59
|
+
initializeColorCalculator(): void;
|
|
79
60
|
protected createThemeEditorSurvey(): SurveyModel;
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
themeMode: any;
|
|
83
|
-
get themeVariables(): any;
|
|
61
|
+
private loadThemeIntoPropertyGrid;
|
|
62
|
+
private setThemeToSurvey;
|
|
84
63
|
private getThemeEditorSurveyJSON;
|
|
85
64
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Survey from "survey-core";
|
|
2
|
-
import { Base, SurveyModel, Question, PageModel, IElement, JsonObjectProperty, ActionContainer, AdaptiveActionContainer, IAction, Action, IPanel, SurveyElement, ItemValue, QuestionSelectBase, LocalizableString, ILocalizableString, ILocalizableOwner, PopupBaseViewModel, EventBase } from "survey-core";
|
|
2
|
+
import { Base, SurveyModel, Question, PageModel, IElement, JsonObjectProperty, ActionContainer, AdaptiveActionContainer, IAction, Action, IPanel, SurveyElement, ItemValue, QuestionSelectBase, LocalizableString, ILocalizableString, ILocalizableOwner, PopupBaseViewModel, EventBase, ITheme } from "survey-core";
|
|
3
3
|
import { ISurveyCreatorOptions, ICollectionItemAllowOperations } from "./creator-settings";
|
|
4
|
-
import {
|
|
4
|
+
import { DragDropChoices } from "survey-core";
|
|
5
5
|
import { QuestionToolbox } from "./toolbox";
|
|
6
6
|
import { PropertyGridModel } from "./property-grid";
|
|
7
7
|
import { ICreatorSelectionOwner } from "./selection-owner";
|
|
@@ -11,6 +11,8 @@ import { UndoRedoManager } from "./plugins/undo-redo/undo-redo-manager";
|
|
|
11
11
|
import { UndoRedoController } from "./plugins/undo-redo/undo-redo-controller";
|
|
12
12
|
import { SidebarModel } from "./components/side-bar/side-bar-model";
|
|
13
13
|
import { ICreatorOptions } from "./creator-options";
|
|
14
|
+
import { DragDropSurveyElements } from "./survey-elements";
|
|
15
|
+
import { PageAdorner } from "./components/page";
|
|
14
16
|
export interface IKeyboardShortcut {
|
|
15
17
|
name?: string;
|
|
16
18
|
hotKey: {
|
|
@@ -580,6 +582,21 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
580
582
|
*- options.page the new survey Page object.
|
|
581
583
|
*/
|
|
582
584
|
onPageAdded: CreatorEvent;
|
|
585
|
+
/**
|
|
586
|
+
* An event that is raised when Survey Creator renders action buttons under each page on the design surface. Use this event to add, remove, or modify the buttons.
|
|
587
|
+
*
|
|
588
|
+
* Parameters:
|
|
589
|
+
*
|
|
590
|
+
* - `sender`: `CreatorBase`\
|
|
591
|
+
* A Survey Creator instance that raised the event.
|
|
592
|
+
* - `options.actions`: [`IAction[]`](/form-library/documentation/api-reference/iaction)\
|
|
593
|
+
* An array of actions. You can add or remove actions from this array.
|
|
594
|
+
* - `options.page`: [`PageModel`](/form-library/documentation/api-reference/page-model)\
|
|
595
|
+
* A page for which the event is raised.
|
|
596
|
+
* - `options.addNewQuestion(type)`: Method\
|
|
597
|
+
* Adds a new question of a specified [`type`](/form-library/documentation/api-reference/question#getType) to the page.
|
|
598
|
+
*/
|
|
599
|
+
onGetPageActions: CreatorEvent;
|
|
583
600
|
/**
|
|
584
601
|
* The event is fired when the survey creator is initialized and a survey object (Survey.Survey) is created.
|
|
585
602
|
*- sender the survey creator object that fires the event
|
|
@@ -819,6 +836,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
819
836
|
* Default value: `"defaultV2"`
|
|
820
837
|
*/
|
|
821
838
|
themeForPreview: string;
|
|
839
|
+
theme: ITheme;
|
|
822
840
|
private _allowModifyPages;
|
|
823
841
|
/**
|
|
824
842
|
* Specifies whether users can add, edit, and delete survey pages.
|
|
@@ -1339,6 +1357,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
1339
1357
|
getAddNewQuestionText(currentAddQuestionType?: string): any;
|
|
1340
1358
|
get addNewQuestionText(): any;
|
|
1341
1359
|
getQuestionTypeSelectorModel(beforeAdd: (type: string) => void, panel?: IPanel): any;
|
|
1360
|
+
getUpdatedPageAdornerFooterActions(pageAdorner: PageAdorner, actions: Array<IAction>): Survey.IAction[];
|
|
1342
1361
|
addNewQuestionInPage(beforeAdd: (string: any) => void, panel?: IPanel, type?: string): void;
|
|
1343
1362
|
createIActionBarItemByClass(className: string, title: string, iconName: string, needSeparator: boolean): Action;
|
|
1344
1363
|
onElementMenuItemsChanged(element: any, items: Action[]): void;
|
|
@@ -19,6 +19,9 @@ export declare var settings: {
|
|
|
19
19
|
*/
|
|
20
20
|
exportFileName: string;
|
|
21
21
|
};
|
|
22
|
+
theme: {
|
|
23
|
+
exportFileName: string;
|
|
24
|
+
};
|
|
22
25
|
operators: {
|
|
23
26
|
empty: any[];
|
|
24
27
|
notempty: any[];
|
|
@@ -100,6 +103,7 @@ export declare var settings: {
|
|
|
100
103
|
choices: string[];
|
|
101
104
|
};
|
|
102
105
|
imagepicker: {
|
|
106
|
+
imageFit: string;
|
|
103
107
|
choices: {
|
|
104
108
|
value: string;
|
|
105
109
|
imageLink: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { QuestionTextModel } from "survey-core";
|
|
1
|
+
import { Action, ItemValue, QuestionTextModel } from "survey-core";
|
|
2
2
|
export declare class QuestionColorModel extends QuestionTextModel {
|
|
3
3
|
unit: string;
|
|
4
|
+
constructor(name: string);
|
|
4
5
|
private getCorrectedValue;
|
|
5
6
|
protected setNewValue(newValue: string): void;
|
|
6
7
|
onBeforeInput(event: InputEvent): void;
|
|
@@ -15,4 +16,12 @@ export declare class QuestionColorModel extends QuestionTextModel {
|
|
|
15
16
|
};
|
|
16
17
|
get isInputTextUpdate(): boolean;
|
|
17
18
|
onSurveyValueChanged(newValue: any): void;
|
|
19
|
+
private _dropdownAction;
|
|
20
|
+
get dropdownAction(): Action;
|
|
21
|
+
get choices(): Array<ItemValue>;
|
|
22
|
+
set choices(newValue: Array<ItemValue>);
|
|
23
|
+
get showDropdownAction(): boolean;
|
|
24
|
+
createDropdownAction(): Action;
|
|
25
|
+
private updateChoices;
|
|
26
|
+
get itemComponent(): string;
|
|
18
27
|
}
|
|
@@ -160,6 +160,8 @@ export declare var defaultStrings: {
|
|
|
160
160
|
translationImportFromSCVButton: string;
|
|
161
161
|
translationMergeLocaleWithDefault: string;
|
|
162
162
|
translationPlaceHolder: string;
|
|
163
|
+
themeExportButton: string;
|
|
164
|
+
themeImportButton: string;
|
|
163
165
|
bold: string;
|
|
164
166
|
italic: string;
|
|
165
167
|
underline: string;
|
|
@@ -218,6 +220,7 @@ export declare var defaultStrings: {
|
|
|
218
220
|
column_requireText: string;
|
|
219
221
|
trigger_completeText: string;
|
|
220
222
|
trigger_setvalueText: string;
|
|
223
|
+
trigger_setvalueEmptyText: string;
|
|
221
224
|
trigger_copyvalueText: string;
|
|
222
225
|
trigger_skipText: string;
|
|
223
226
|
trigger_runExpressionText1: string;
|
|
@@ -471,6 +474,7 @@ export declare var defaultStrings: {
|
|
|
471
474
|
maxTextLength: string;
|
|
472
475
|
maxOthersLength: string;
|
|
473
476
|
autoGrowComment: string;
|
|
477
|
+
allowResizeComment: string;
|
|
474
478
|
textUpdateMode: string;
|
|
475
479
|
focusOnFirstError: string;
|
|
476
480
|
checkErrorsMode: string;
|
|
@@ -948,6 +952,7 @@ export declare var defaultStrings: {
|
|
|
948
952
|
navigationDescription: string;
|
|
949
953
|
longTap: string;
|
|
950
954
|
autoGrow: string;
|
|
955
|
+
allowResize: string;
|
|
951
956
|
acceptCarriageReturn: string;
|
|
952
957
|
displayMode: string;
|
|
953
958
|
rateType: string;
|
|
@@ -1012,6 +1017,7 @@ export declare var defaultStrings: {
|
|
|
1012
1017
|
color: string;
|
|
1013
1018
|
size: string;
|
|
1014
1019
|
fontWeightRegular: string;
|
|
1020
|
+
fontWeightHeavy: string;
|
|
1015
1021
|
fontWeightSemiBold: string;
|
|
1016
1022
|
fontWeightBold: string;
|
|
1017
1023
|
scale: string;
|
|
@@ -1019,5 +1025,12 @@ export declare var defaultStrings: {
|
|
|
1019
1025
|
surveyTitle: string;
|
|
1020
1026
|
pageTitle: string;
|
|
1021
1027
|
pageDescription: string;
|
|
1028
|
+
boxShadowX: string;
|
|
1029
|
+
boxShadowY: string;
|
|
1030
|
+
opacity: string;
|
|
1031
|
+
boxShadowBlur: string;
|
|
1032
|
+
boxShadowSpread: string;
|
|
1033
|
+
questionShadow: string;
|
|
1034
|
+
editorShadow: string;
|
|
1022
1035
|
};
|
|
1023
1036
|
};
|
|
@@ -12,6 +12,10 @@ export * from "../components/tabs/json-editor-plugin";
|
|
|
12
12
|
export * from "../components/tabs/json-editor-textarea";
|
|
13
13
|
export * from "../components/tabs/test";
|
|
14
14
|
export * from "../components/tabs/test-plugin";
|
|
15
|
+
export * from "../components/tabs/theme-custom-questions/color-settings";
|
|
16
|
+
export * from "../components/tabs/theme-custom-questions/boxshadow-settings";
|
|
17
|
+
export * from "../components/tabs/theme-custom-questions/font-settings";
|
|
18
|
+
export * from "../components/tabs/theme-custom-questions/element-settings";
|
|
15
19
|
export * from "../components/tabs/theme";
|
|
16
20
|
export * from "../components/tabs/theme-plugin";
|
|
17
21
|
export * from "../components/tabs/logic";
|
|
@@ -131,6 +131,8 @@ export declare var enStrings: {
|
|
|
131
131
|
translationImportFromSCVButton: string;
|
|
132
132
|
translationMergeLocaleWithDefault: string;
|
|
133
133
|
translationPlaceHolder: string;
|
|
134
|
+
themeExportButton: string;
|
|
135
|
+
themeImportButton: string;
|
|
134
136
|
bold: string;
|
|
135
137
|
italic: string;
|
|
136
138
|
underline: string;
|
|
@@ -189,6 +191,7 @@ export declare var enStrings: {
|
|
|
189
191
|
column_requireText: string;
|
|
190
192
|
trigger_completeText: string;
|
|
191
193
|
trigger_setvalueText: string;
|
|
194
|
+
trigger_setvalueEmptyText: string;
|
|
192
195
|
trigger_copyvalueText: string;
|
|
193
196
|
trigger_skipText: string;
|
|
194
197
|
trigger_runExpressionText1: string;
|
|
@@ -442,6 +445,7 @@ export declare var enStrings: {
|
|
|
442
445
|
maxTextLength: string;
|
|
443
446
|
maxOthersLength: string;
|
|
444
447
|
autoGrowComment: string;
|
|
448
|
+
allowResizeComment: string;
|
|
445
449
|
textUpdateMode: string;
|
|
446
450
|
focusOnFirstError: string;
|
|
447
451
|
checkErrorsMode: string;
|
|
@@ -919,6 +923,7 @@ export declare var enStrings: {
|
|
|
919
923
|
navigationDescription: string;
|
|
920
924
|
longTap: string;
|
|
921
925
|
autoGrow: string;
|
|
926
|
+
allowResize: string;
|
|
922
927
|
acceptCarriageReturn: string;
|
|
923
928
|
displayMode: string;
|
|
924
929
|
rateType: string;
|
|
@@ -983,6 +988,7 @@ export declare var enStrings: {
|
|
|
983
988
|
color: string;
|
|
984
989
|
size: string;
|
|
985
990
|
fontWeightRegular: string;
|
|
991
|
+
fontWeightHeavy: string;
|
|
986
992
|
fontWeightSemiBold: string;
|
|
987
993
|
fontWeightBold: string;
|
|
988
994
|
scale: string;
|
|
@@ -990,5 +996,12 @@ export declare var enStrings: {
|
|
|
990
996
|
surveyTitle: string;
|
|
991
997
|
pageTitle: string;
|
|
992
998
|
pageDescription: string;
|
|
999
|
+
boxShadowX: string;
|
|
1000
|
+
boxShadowY: string;
|
|
1001
|
+
opacity: string;
|
|
1002
|
+
boxShadowBlur: string;
|
|
1003
|
+
boxShadowSpread: string;
|
|
1004
|
+
questionShadow: string;
|
|
1005
|
+
editorShadow: string;
|
|
993
1006
|
};
|
|
994
1007
|
};
|
|
@@ -7,6 +7,7 @@ export declare abstract class PropertyGridEditorMatrix extends PropertyGridEdito
|
|
|
7
7
|
private initializeAcceptedTypes;
|
|
8
8
|
private initializePlaceholder;
|
|
9
9
|
onMatrixCellCreated(obj: Base, options: any): void;
|
|
10
|
+
onMatrixCellValueChanged(obj: Base, options: any): void;
|
|
10
11
|
private updateMatixActionsClasses;
|
|
11
12
|
onGetMatrixRowAction(obj: Base, options: any, setObjFunc: (obj: Base) => void): void;
|
|
12
13
|
private getShowDetailActionIconName;
|
|
@@ -328,7 +328,9 @@ export declare var propertyGridCss: {
|
|
|
328
328
|
colorInput: string;
|
|
329
329
|
control: string;
|
|
330
330
|
colorDropdown: string;
|
|
331
|
-
|
|
331
|
+
colorDropdownIcon: string;
|
|
332
|
+
colorItem: string;
|
|
333
|
+
swatchIcon: string;
|
|
332
334
|
};
|
|
333
335
|
fileedit: {
|
|
334
336
|
root: string;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { DragDropCore, DragTypeOverMeEnum, IElement, IPanel, IShortcutText, ISurveyElement, JsonObject, PageModel, QuestionRowModel } from "survey-core";
|
|
2
|
+
export declare function calculateIsEdge(dropTargetNode: HTMLElement, clientY: number): boolean;
|
|
3
|
+
export declare function calculateIsSide(dropTargetNode: HTMLElement, clientX: number): boolean;
|
|
4
|
+
export declare function calculateDragOverLocation(clientX: number, clientY: number, dropTargetNode: HTMLElement): DragTypeOverMeEnum;
|
|
5
|
+
export declare class DragDropSurveyElements extends DragDropCore<any> {
|
|
6
|
+
static newGhostPage: PageModel;
|
|
7
|
+
static restrictDragQuestionBetweenPages: boolean;
|
|
8
|
+
static edgeHeight: number;
|
|
9
|
+
static nestedPanelDepth: number;
|
|
10
|
+
static ghostSurveyElementName: string;
|
|
11
|
+
protected isEdge: boolean;
|
|
12
|
+
protected isSide: boolean;
|
|
13
|
+
protected prevIsEdge: any;
|
|
14
|
+
protected dragOverIndicatorElement: any;
|
|
15
|
+
protected dragOverLocation: DragTypeOverMeEnum;
|
|
16
|
+
protected get draggedElementType(): string;
|
|
17
|
+
protected isDraggedElementSelected: boolean;
|
|
18
|
+
startDragToolboxItem(event: PointerEvent, draggedElementJson: JsonObject, toolboxItemTitle: string): void;
|
|
19
|
+
startDragSurveyElement(event: PointerEvent, draggedElement: any, isElementSelected?: boolean): void;
|
|
20
|
+
protected getShortcutText(draggedElement: IShortcutText): string;
|
|
21
|
+
protected createDraggedElementShortcut(text: string, draggedElementNode?: HTMLElement, event?: PointerEvent): HTMLElement;
|
|
22
|
+
protected createDraggedElementIcon(): HTMLElement;
|
|
23
|
+
protected getDraggedElementClass(): string;
|
|
24
|
+
protected createElementFromJson(json: object): HTMLElement;
|
|
25
|
+
private createNewElement;
|
|
26
|
+
protected findDropTargetNodeByDragOverNode(dragOverNode: HTMLElement): HTMLElement;
|
|
27
|
+
protected getDropTargetByDataAttributeValue(dataAttributeValue: string, dropTargetNode: HTMLElement, event: PointerEvent): any;
|
|
28
|
+
protected isDropTargetValid(dropTarget: any, dropTargetNode?: HTMLElement): boolean;
|
|
29
|
+
protected doBanDropHere: () => void;
|
|
30
|
+
private shouldRestricDragQuestionBetweenPages;
|
|
31
|
+
private getPanelDropTarget;
|
|
32
|
+
protected findDeepestDropTargetChild(parent: HTMLElement): HTMLElement;
|
|
33
|
+
dragOverCore(dropTarget: ISurveyElement, dragOverLocation: DragTypeOverMeEnum, isEdge?: boolean, isSide?: boolean): void;
|
|
34
|
+
dragOver(event: PointerEvent): void;
|
|
35
|
+
protected onStartDrag(): void;
|
|
36
|
+
private getElementIndexInPanel;
|
|
37
|
+
moveElementInPanel(panel: IPanel, src: IElement, target: IElement, targetIndex: number): void;
|
|
38
|
+
protected doDrop: () => any;
|
|
39
|
+
private removeDragOverMarker;
|
|
40
|
+
clear(): void;
|
|
41
|
+
private getTargetParent;
|
|
42
|
+
protected getTargetRow(dropTarget: any): QuestionRowModel;
|
|
43
|
+
protected isDragOverInsideEmptyPanel(): boolean;
|
|
44
|
+
}
|
package/typings/utils/utils.d.ts
CHANGED
|
@@ -20,3 +20,26 @@ export declare function notShortCircuitAnd(...args: Array<boolean>): boolean;
|
|
|
20
20
|
export declare const imageMimeTypes = "image/png, image/gif, image/jpeg, image/apng, image/avif, image/svg+xml, image/webp";
|
|
21
21
|
export declare function getAcceptedTypesByContentMode(contentMode: string): "" | "image/png, image/gif, image/jpeg, image/apng, image/avif, image/svg+xml, image/webp" | "video/*";
|
|
22
22
|
export declare function getQuestionFromObj(obj: SurveyElement): Question;
|
|
23
|
+
export declare function ingectAlpha(baseColor: any, alpha: number): any;
|
|
24
|
+
export declare function convertRgbaToString(rgbValues: Array<number>, alpha: number): string;
|
|
25
|
+
export declare function parseRgbaFromString(value: string): Array<number>;
|
|
26
|
+
export declare function parseColor(value: string): {
|
|
27
|
+
color: string;
|
|
28
|
+
opacity: number;
|
|
29
|
+
};
|
|
30
|
+
export declare function HSBToRGB(h: any, s: any, b: any): number[];
|
|
31
|
+
export declare function RGBToHSB(r: any, g: any, b: any): number[];
|
|
32
|
+
export declare function assign(...objects: Array<any>): void;
|
|
33
|
+
export declare class ColorCalculator {
|
|
34
|
+
colorSettings: {
|
|
35
|
+
baseColorAlpha: number;
|
|
36
|
+
darkColorAlpha: number;
|
|
37
|
+
lightColorAlpha: number;
|
|
38
|
+
deltaDarkColor: number;
|
|
39
|
+
deltaLightColor: number;
|
|
40
|
+
newColorLight: string;
|
|
41
|
+
newColorDark: string;
|
|
42
|
+
};
|
|
43
|
+
initialize(baseColor: string, lightColor: string, darkColor: string): void;
|
|
44
|
+
calculateColors(newColor: string): void;
|
|
45
|
+
}
|