survey-creator-core 1.9.71 → 1.9.73
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/package.json +2 -2
- package/survey-creator-core.css +23 -8
- package/survey-creator-core.d.ts +19 -15
- package/survey-creator-core.fontless.css +22 -7
- package/survey-creator-core.fontless.min.css +5 -5
- package/survey-creator-core.i18n.js +585 -584
- package/survey-creator-core.i18n.min.js +2 -2
- package/survey-creator-core.js +120 -78
- package/survey-creator-core.min.css +6 -6
- package/survey-creator-core.min.js +2 -2
package/survey-creator-core.d.ts
CHANGED
|
@@ -1035,6 +1035,9 @@ declare module "creator-settings" {
|
|
|
1035
1035
|
}
|
|
1036
1036
|
}
|
|
1037
1037
|
declare module "utils/utils" {
|
|
1038
|
+
import { ItemValue } from "survey-core";
|
|
1039
|
+
export function getNextItemValue(prefix: string, choices: ItemValue[]): string | number;
|
|
1040
|
+
export function getNextItemText(choices: ItemValue[]): string;
|
|
1038
1041
|
export function getNextValue(prefix: string, values: any[]): string | number;
|
|
1039
1042
|
export function findParentNode(className: string, sourceNode: HTMLElement): HTMLElement;
|
|
1040
1043
|
export function focusFirstControl(renderedElements: HTMLElement[]): void;
|
|
@@ -2275,7 +2278,6 @@ declare module "toolbox" {
|
|
|
2275
2278
|
toolboxMiscCategory: string[];
|
|
2276
2279
|
};
|
|
2277
2280
|
private _orderedQuestions;
|
|
2278
|
-
showTitleOnCategoryChange: boolean;
|
|
2279
2281
|
static getQuestionDefaultSettings(questionType: string): any;
|
|
2280
2282
|
/**
|
|
2281
2283
|
* Modify this array to change the toolbox items order.
|
|
@@ -2320,7 +2322,8 @@ declare module "toolbox" {
|
|
|
2320
2322
|
*/
|
|
2321
2323
|
forceCompact: boolean;
|
|
2322
2324
|
constructor(supportedQuestions?: Array<string>, creator?: CreatorBase, useDefaultCategories?: boolean);
|
|
2323
|
-
private
|
|
2325
|
+
private initDotsItem;
|
|
2326
|
+
private getDefaultQuestionCategories;
|
|
2324
2327
|
private onActiveCategoryChanged;
|
|
2325
2328
|
setLocation(toolboxLocation: toolboxLocationType): void;
|
|
2326
2329
|
/**
|
|
@@ -3875,12 +3878,12 @@ declare module "components/tabs/logic-items" {
|
|
|
3875
3878
|
}
|
|
3876
3879
|
}
|
|
3877
3880
|
declare module "components/tabs/logic" {
|
|
3878
|
-
import { SurveyModel, Base,
|
|
3881
|
+
import { SurveyModel, Base, Question, ItemValue, MatrixDropdownColumn, QuestionDropdownModel, EventBase } from "survey-core";
|
|
3879
3882
|
import { ISurveyCreatorOptions } from "creator-settings";
|
|
3880
3883
|
import { ISurveyLogicItemOwner, SurveyLogicItem, SurveyLogicAction } from "components/tabs/logic-items";
|
|
3881
3884
|
import { SurveyLogicType } from "components/tabs/logic-types";
|
|
3882
3885
|
export function initLogicOperator(question: QuestionDropdownModel): void;
|
|
3883
|
-
export class LogicEvent extends
|
|
3886
|
+
export class LogicEvent extends EventBase<SurveyLogic, any> {
|
|
3884
3887
|
}
|
|
3885
3888
|
export class SurveyLogic extends Base implements ISurveyLogicItemOwner {
|
|
3886
3889
|
survey: SurveyModel;
|
|
@@ -5719,7 +5722,7 @@ declare module "components/question-rating" {
|
|
|
5719
5722
|
}
|
|
5720
5723
|
}
|
|
5721
5724
|
declare module "components/string-editor" {
|
|
5722
|
-
import { Base, LocalizableString, JsonObjectProperty,
|
|
5725
|
+
import { Base, LocalizableString, JsonObjectProperty, EventBase } from "survey-core";
|
|
5723
5726
|
import { CreatorBase } from "creator-base";
|
|
5724
5727
|
import { QuestionAdornerViewModel } from "components/question";
|
|
5725
5728
|
export abstract class StringItemsNavigatorBase {
|
|
@@ -5741,10 +5744,10 @@ declare module "components/string-editor" {
|
|
|
5741
5744
|
hasEditCompleteHandler: boolean;
|
|
5742
5745
|
focusOnEditor: boolean;
|
|
5743
5746
|
activateEditor(): void;
|
|
5744
|
-
onDoActivate:
|
|
5745
|
-
onTextChanging:
|
|
5746
|
-
onEditComplete:
|
|
5747
|
-
onBackspaceEmptyString:
|
|
5747
|
+
onDoActivate: EventBase<LocalizableString, any>;
|
|
5748
|
+
onTextChanging: EventBase<StringEditorViewModelBase, any>;
|
|
5749
|
+
onEditComplete: EventBase<StringEditorViewModelBase, any>;
|
|
5750
|
+
onBackspaceEmptyString: EventBase<StringEditorViewModelBase, any>;
|
|
5748
5751
|
constructor(locString: LocalizableString);
|
|
5749
5752
|
}
|
|
5750
5753
|
export class StringEditorViewModelBase extends Base {
|
|
@@ -5787,7 +5790,7 @@ declare module "components/string-editor" {
|
|
|
5787
5790
|
}
|
|
5788
5791
|
declare module "creator-base" {
|
|
5789
5792
|
import * as Survey from "survey-core";
|
|
5790
|
-
import { Base, SurveyModel, Question, PageModel, IElement, JsonObjectProperty, ActionContainer, AdaptiveActionContainer, IAction, Action, IPanel, SurveyElement, ItemValue, QuestionSelectBase, LocalizableString, ILocalizableString, ILocalizableOwner, PopupBaseViewModel } from "survey-core";
|
|
5793
|
+
import { Base, SurveyModel, Question, PageModel, IElement, JsonObjectProperty, ActionContainer, AdaptiveActionContainer, IAction, Action, IPanel, SurveyElement, ItemValue, QuestionSelectBase, LocalizableString, ILocalizableString, ILocalizableOwner, PopupBaseViewModel, EventBase } from "survey-core";
|
|
5791
5794
|
import { ISurveyCreatorOptions, ICollectionItemAllowOperations } from "creator-settings";
|
|
5792
5795
|
import { DragDropSurveyElements, DragDropChoices } from "survey-core";
|
|
5793
5796
|
import { QuestionToolbox } from "toolbox";
|
|
@@ -5839,7 +5842,7 @@ declare module "creator-base" {
|
|
|
5839
5842
|
protected getRenderedActions(): Array<Action>;
|
|
5840
5843
|
}
|
|
5841
5844
|
export type toolboxLocationType = "left" | "right" | "sidebar";
|
|
5842
|
-
export class CreatorEvent extends
|
|
5845
|
+
export class CreatorEvent extends EventBase<CreatorBase, any> {
|
|
5843
5846
|
}
|
|
5844
5847
|
/**
|
|
5845
5848
|
* Base class for Survey Creator.
|
|
@@ -6825,8 +6828,8 @@ declare module "creator-base" {
|
|
|
6825
6828
|
protected initSurveyWithJSON(json: any, clearState: boolean): void;
|
|
6826
6829
|
private updatePlugin;
|
|
6827
6830
|
protected initDragDrop(): void;
|
|
6828
|
-
onBeforeDrop: Survey.Event<() => any, any>;
|
|
6829
|
-
onAfterDrop: Survey.Event<() => any, any>;
|
|
6831
|
+
onBeforeDrop: Survey.Event<() => any, any, any>;
|
|
6832
|
+
onAfterDrop: Survey.Event<() => any, any, any>;
|
|
6830
6833
|
private initDragDropSurveyElements;
|
|
6831
6834
|
private initDragDropChoices;
|
|
6832
6835
|
updateElementsOnLocaleChanged(obj: Base, propertyName: string): void;
|
|
@@ -6841,6 +6844,7 @@ declare module "creator-base" {
|
|
|
6841
6844
|
protected createSurveyLogicForUpdate(): SurveyLogic;
|
|
6842
6845
|
private updateLogicOnQuestionNameChanged;
|
|
6843
6846
|
private updateLogicOnColumnNameChanged;
|
|
6847
|
+
private updateChoicesFromQuestionOnColumnNameChanged;
|
|
6844
6848
|
isObjQuestion(obj: Base): boolean;
|
|
6845
6849
|
isObjPage(obj: Base): boolean;
|
|
6846
6850
|
private isObjThisType;
|
|
@@ -7086,8 +7090,8 @@ declare module "creator-base" {
|
|
|
7086
7090
|
onElementMenuItemsChanged(element: any, items: Action[]): void;
|
|
7087
7091
|
getElementAllowOperations(element: SurveyElement): any;
|
|
7088
7092
|
getChoicesItemBaseTitle(): any;
|
|
7089
|
-
getNextItemValue(question:
|
|
7090
|
-
createNewItemValue(question:
|
|
7093
|
+
getNextItemValue(question: QuestionSelectBase): string | number;
|
|
7094
|
+
createNewItemValue(question: QuestionSelectBase): ItemValue;
|
|
7091
7095
|
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
7092
7096
|
initResponsivityManager(container: HTMLDivElement): void;
|
|
7093
7097
|
resetResponsivityManager(): void;
|