survey-creator-core 1.9.88 → 1.9.90
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 +285 -74
- package/survey-creator-core.fontless.css +284 -73
- package/survey-creator-core.fontless.css.map +1 -1
- package/survey-creator-core.fontless.min.css +19 -15
- package/survey-creator-core.i18n.js +1 -1
- package/survey-creator-core.i18n.min.js +1 -1
- package/survey-creator-core.js +2693 -261
- package/survey-creator-core.js.map +1 -1
- package/survey-creator-core.min.css +20 -16
- package/survey-creator-core.min.js +3 -3
- package/typings/components/header/logo-image.d.ts +1 -0
- package/typings/components/image-item-value.d.ts +1 -0
- package/typings/components/item-value.d.ts +1 -0
- package/typings/components/matrix-cell.d.ts +1 -1
- package/typings/components/page.d.ts +5 -2
- package/typings/components/question-image.d.ts +1 -0
- package/typings/components/question-rating.d.ts +1 -0
- package/typings/components/question.d.ts +1 -1
- package/typings/components/simulator.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 +5 -0
- package/typings/components/tabs/theme-plugin.d.ts +25 -0
- package/typings/components/tabs/theme.d.ts +92 -0
- package/typings/creator-base.d.ts +26 -1
- package/typings/creator-options.d.ts +1 -0
- package/typings/creator-settings.d.ts +4 -1
- package/typings/editorLocalization.d.ts +73 -0
- package/typings/entries/index.d.ts +4 -0
- package/typings/localization/english.d.ts +73 -0
- package/typings/property-grid/index.d.ts +7 -0
- package/typings/property-grid/matrices.d.ts +2 -0
- package/typings/survey-elements.d.ts +44 -0
- package/typings/utils/utils.d.ts +23 -1
|
@@ -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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ItemValue } from "survey-core";
|
|
1
|
+
import { ItemValue, Question, SurveyElement } from "survey-core";
|
|
2
2
|
export declare function getNextItemValue(prefix: string, choices: ItemValue[]): string | number;
|
|
3
3
|
export declare function getNextItemText(choices: ItemValue[]): string;
|
|
4
4
|
export declare function getNextValue(prefix: string, values: any[]): string | number;
|
|
@@ -17,3 +17,25 @@ export declare function assignDefaultV2Classes(destination: any, questionType: s
|
|
|
17
17
|
export declare function wrapTextByCurlyBraces(text: string): string;
|
|
18
18
|
export declare function capitalize(str: string): string;
|
|
19
19
|
export declare function notShortCircuitAnd(...args: Array<boolean>): boolean;
|
|
20
|
+
export declare const imageMimeTypes = "image/png, image/gif, image/jpeg, image/apng, image/avif, image/svg+xml, image/webp";
|
|
21
|
+
export declare function getAcceptedTypesByContentMode(contentMode: string): "" | "image/png, image/gif, image/jpeg, image/apng, image/avif, image/svg+xml, image/webp" | "video/*";
|
|
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 HSBToRGB(h: any, s: any, b: any): number[];
|
|
27
|
+
export declare function RGBToHSB(r: any, g: any, b: any): number[];
|
|
28
|
+
export declare function assign(...objects: Array<any>): void;
|
|
29
|
+
export declare class ColorCalculator {
|
|
30
|
+
colorSettings: {
|
|
31
|
+
baseColorAlpha: number;
|
|
32
|
+
darkColorAlpha: number;
|
|
33
|
+
lightColorAlpha: number;
|
|
34
|
+
deltaDarkColor: number;
|
|
35
|
+
deltaLightColor: number;
|
|
36
|
+
newColorLight: string;
|
|
37
|
+
newColorDark: string;
|
|
38
|
+
};
|
|
39
|
+
initialize(baseColor: string, lightColor: string, darkColor: string): void;
|
|
40
|
+
calculateColors(newColor: string): void;
|
|
41
|
+
}
|