survey-creator-core 1.9.70 → 1.9.72
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 +2 -2
- package/survey-creator-core.d.ts +35 -21
- package/survey-creator-core.fontless.css +1 -1
- package/survey-creator-core.fontless.min.css +1 -1
- package/survey-creator-core.i18n.js +293 -293
- package/survey-creator-core.i18n.min.js +2 -2
- package/survey-creator-core.js +155 -76
- package/survey-creator-core.min.css +2 -2
- package/survey-creator-core.min.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-creator-core",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.72",
|
|
4
4
|
"description": "Use SurveyJS Creator to create or edit JSON for SurveyJS Library.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Survey",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"ace-builds": "^1.4.12"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"survey-core": "1.9.
|
|
40
|
+
"survey-core": "1.9.72"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {}
|
|
43
43
|
}
|
package/survey-creator-core.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* SurveyJS Creator v1.9.
|
|
2
|
+
* SurveyJS Creator v1.9.72
|
|
3
3
|
* (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* Github: https://github.com/surveyjs/survey-creator
|
|
5
5
|
* License: https://surveyjs.io/Licenses#SurveyCreator
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9TdXJ2ZXlDcmVhdG9yQ29yZS8uL3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WblhCYk9iajJPVlRTLW11dy53b2ZmMilcbiAgICAgIGZvcm1hdChcIndvZmYyXCIpO1xuICB1bmljb2RlLXJhbmdlOiBVKzAwMDAtMDBGRiwgVSswMTMxLCBVKzAxNTItMDE1MywgVSswMkJCLTAyQkMsIFUrMDJDNiwgVSswMkRBLFxuICAgIFUrMDJEQywgVSsyMDAwLTIwNkYsIFUrMjA3NCwgVSsyMEFDLCBVKzIxMjIsIFUrMjE5MSwgVSsyMTkzLCBVKzIyMTIsIFUrMjIxNSxcbiAgICBVK0ZFRkYsIFUrRkZGRDtcbn1cblxuOnJvb3Qge1xuICAtLWZvbnQtZmFtaWx5OiBcIk9wZW4gU2Fuc1wiLCBcIkhlbHZldGljYSBOZXVlXCIsIEhlbHZldGljYSwgQXJpYWwsIHNhbnMtc2VyaWY7XG59Il0sInNvdXJjZVJvb3QiOiIifQ==*//*!
|
|
38
|
-
* SurveyJS Creator v1.9.
|
|
38
|
+
* SurveyJS Creator v1.9.72
|
|
39
39
|
* (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
40
40
|
* Github: https://github.com/surveyjs/survey-creator
|
|
41
41
|
* License: https://surveyjs.io/Licenses#SurveyCreator
|
package/survey-creator-core.d.ts
CHANGED
|
@@ -141,6 +141,7 @@ declare module "localization/english" {
|
|
|
141
141
|
addNewTypeQuestion: string;
|
|
142
142
|
chooseLogoPlaceholder: string;
|
|
143
143
|
auto: string;
|
|
144
|
+
choices_Item: string;
|
|
144
145
|
lg: {
|
|
145
146
|
addNewItem: string;
|
|
146
147
|
empty_tab: string;
|
|
@@ -1034,6 +1035,9 @@ declare module "creator-settings" {
|
|
|
1034
1035
|
}
|
|
1035
1036
|
}
|
|
1036
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;
|
|
1037
1041
|
export function getNextValue(prefix: string, values: any[]): string | number;
|
|
1038
1042
|
export function findParentNode(className: string, sourceNode: HTMLElement): HTMLElement;
|
|
1039
1043
|
export function focusFirstControl(renderedElements: HTMLElement[]): void;
|
|
@@ -1223,6 +1227,7 @@ declare module "editorLocalization" {
|
|
|
1223
1227
|
addNewTypeQuestion: string;
|
|
1224
1228
|
chooseLogoPlaceholder: string;
|
|
1225
1229
|
auto: string;
|
|
1230
|
+
choices_Item: string;
|
|
1226
1231
|
lg: {
|
|
1227
1232
|
addNewItem: string;
|
|
1228
1233
|
empty_tab: string;
|
|
@@ -2689,6 +2694,7 @@ declare module "property-grid-theme/property-grid" {
|
|
|
2689
2694
|
};
|
|
2690
2695
|
dropdown: {
|
|
2691
2696
|
root: string;
|
|
2697
|
+
popup: string;
|
|
2692
2698
|
small: string;
|
|
2693
2699
|
control: string;
|
|
2694
2700
|
filterStringInput: string;
|
|
@@ -3102,6 +3108,7 @@ declare module "property-grid/index" {
|
|
|
3102
3108
|
private onGetQuestionTitleActions;
|
|
3103
3109
|
private onMatrixCellValueChanged;
|
|
3104
3110
|
private getMatrixAllowRemoveRow;
|
|
3111
|
+
private getMatrixOnRowRemoving;
|
|
3105
3112
|
private getMatrixAllowEditRow;
|
|
3106
3113
|
private calculateMatrixAllowOperations;
|
|
3107
3114
|
private onMatrixAllowRemoveRow;
|
|
@@ -3871,12 +3878,12 @@ declare module "components/tabs/logic-items" {
|
|
|
3871
3878
|
}
|
|
3872
3879
|
}
|
|
3873
3880
|
declare module "components/tabs/logic" {
|
|
3874
|
-
import { SurveyModel, Base,
|
|
3881
|
+
import { SurveyModel, Base, Question, ItemValue, MatrixDropdownColumn, QuestionDropdownModel, EventBase } from "survey-core";
|
|
3875
3882
|
import { ISurveyCreatorOptions } from "creator-settings";
|
|
3876
3883
|
import { ISurveyLogicItemOwner, SurveyLogicItem, SurveyLogicAction } from "components/tabs/logic-items";
|
|
3877
3884
|
import { SurveyLogicType } from "components/tabs/logic-types";
|
|
3878
3885
|
export function initLogicOperator(question: QuestionDropdownModel): void;
|
|
3879
|
-
export class LogicEvent extends
|
|
3886
|
+
export class LogicEvent extends EventBase<SurveyLogic, any> {
|
|
3880
3887
|
}
|
|
3881
3888
|
export class SurveyLogic extends Base implements ISurveyLogicItemOwner {
|
|
3882
3889
|
survey: SurveyModel;
|
|
@@ -4755,6 +4762,7 @@ declare module "components/tabs/logic-theme" {
|
|
|
4755
4762
|
};
|
|
4756
4763
|
dropdown: {
|
|
4757
4764
|
root: string;
|
|
4765
|
+
popup: string;
|
|
4758
4766
|
small: string;
|
|
4759
4767
|
control: string;
|
|
4760
4768
|
selectWrapper: string;
|
|
@@ -5587,8 +5595,10 @@ declare module "components/item-value" {
|
|
|
5587
5595
|
private allowItemOperations;
|
|
5588
5596
|
private canTouchItems;
|
|
5589
5597
|
private focusCameFromDown;
|
|
5598
|
+
private collectionProperty;
|
|
5590
5599
|
private isBanStartDrag;
|
|
5591
5600
|
private updateNewItemValue;
|
|
5601
|
+
private get collectionPropertyName();
|
|
5592
5602
|
onPointerDown(pointerDownEvent: PointerEvent): boolean;
|
|
5593
5603
|
startDragItemValue: (pointerDownEvent: PointerEvent, currentTarget: any) => void;
|
|
5594
5604
|
private get dragDropHelper();
|
|
@@ -5712,7 +5722,7 @@ declare module "components/question-rating" {
|
|
|
5712
5722
|
}
|
|
5713
5723
|
}
|
|
5714
5724
|
declare module "components/string-editor" {
|
|
5715
|
-
import { Base, LocalizableString, JsonObjectProperty,
|
|
5725
|
+
import { Base, LocalizableString, JsonObjectProperty, EventBase } from "survey-core";
|
|
5716
5726
|
import { CreatorBase } from "creator-base";
|
|
5717
5727
|
import { QuestionAdornerViewModel } from "components/question";
|
|
5718
5728
|
export abstract class StringItemsNavigatorBase {
|
|
@@ -5734,10 +5744,10 @@ declare module "components/string-editor" {
|
|
|
5734
5744
|
hasEditCompleteHandler: boolean;
|
|
5735
5745
|
focusOnEditor: boolean;
|
|
5736
5746
|
activateEditor(): void;
|
|
5737
|
-
onDoActivate:
|
|
5738
|
-
onTextChanging:
|
|
5739
|
-
onEditComplete:
|
|
5740
|
-
onBackspaceEmptyString:
|
|
5747
|
+
onDoActivate: EventBase<LocalizableString, any>;
|
|
5748
|
+
onTextChanging: EventBase<StringEditorViewModelBase, any>;
|
|
5749
|
+
onEditComplete: EventBase<StringEditorViewModelBase, any>;
|
|
5750
|
+
onBackspaceEmptyString: EventBase<StringEditorViewModelBase, any>;
|
|
5741
5751
|
constructor(locString: LocalizableString);
|
|
5742
5752
|
}
|
|
5743
5753
|
export class StringEditorViewModelBase extends Base {
|
|
@@ -5780,7 +5790,7 @@ declare module "components/string-editor" {
|
|
|
5780
5790
|
}
|
|
5781
5791
|
declare module "creator-base" {
|
|
5782
5792
|
import * as Survey from "survey-core";
|
|
5783
|
-
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";
|
|
5784
5794
|
import { ISurveyCreatorOptions, ICollectionItemAllowOperations } from "creator-settings";
|
|
5785
5795
|
import { DragDropSurveyElements, DragDropChoices } from "survey-core";
|
|
5786
5796
|
import { QuestionToolbox } from "toolbox";
|
|
@@ -5832,7 +5842,7 @@ declare module "creator-base" {
|
|
|
5832
5842
|
protected getRenderedActions(): Array<Action>;
|
|
5833
5843
|
}
|
|
5834
5844
|
export type toolboxLocationType = "left" | "right" | "sidebar";
|
|
5835
|
-
export class CreatorEvent extends
|
|
5845
|
+
export class CreatorEvent extends EventBase<CreatorBase, any> {
|
|
5836
5846
|
}
|
|
5837
5847
|
/**
|
|
5838
5848
|
* Base class for Survey Creator.
|
|
@@ -6147,7 +6157,7 @@ declare module "creator-base" {
|
|
|
6147
6157
|
onPropertyGridShowModal: CreatorEvent;
|
|
6148
6158
|
/**
|
|
6149
6159
|
* The event is called before rendering a delete button in the Property Grid or in Question Editor.
|
|
6150
|
-
* Obsolete, please use onCollectionItemAllowOperations
|
|
6160
|
+
* @Deprecated Obsolete, please use onCollectionItemAllowOperations
|
|
6151
6161
|
*- sender the survey creator object that fires the event
|
|
6152
6162
|
*- options.obj the survey Question
|
|
6153
6163
|
*- options.item the object property (Survey.JsonObjectProperty object). It has name, className, type, visible, readOnly and other properties
|
|
@@ -6157,7 +6167,7 @@ declare module "creator-base" {
|
|
|
6157
6167
|
onCanDeleteItem: CreatorEvent;
|
|
6158
6168
|
/**
|
|
6159
6169
|
* The event is called on deleting a collection item from the Property Editor. For example: column in columns editor or item in choices and so on.
|
|
6160
|
-
* Obsolete, please use onCollectionItemAllowOperations
|
|
6170
|
+
* @Deprecated Obsolete, please use onCollectionItemAllowOperations
|
|
6161
6171
|
*- sender the survey creator object that fires the event
|
|
6162
6172
|
*- options.obj the survey object: Question, Panel, Page or Survey
|
|
6163
6173
|
*- options.property the collection property (Survey.JsonObjectProperty object). It has name, className, type, visible, readOnly and other properties
|
|
@@ -6169,16 +6179,16 @@ declare module "creator-base" {
|
|
|
6169
6179
|
*/
|
|
6170
6180
|
onCollectionItemDeleting: CreatorEvent;
|
|
6171
6181
|
/**
|
|
6172
|
-
* The event is called before rendering a collection item
|
|
6173
|
-
*
|
|
6182
|
+
* The event is called before rendering a collection item in a property editor. For example: a column in a column editor, or an item in Choices and so on.
|
|
6183
|
+
* Use this event to prevent a collection item from being edited or removed from a collection.
|
|
6174
6184
|
*- sender the survey creator object that fires the event
|
|
6175
6185
|
*- options.obj the survey object: Question, Panel, Page or Survey
|
|
6176
6186
|
*- options.property the collection property (Survey.JsonObjectProperty object). It has name, className, type, visible, readOnly and other properties
|
|
6177
6187
|
*- options.propertyName the collection property name
|
|
6178
|
-
*- options.collection
|
|
6179
|
-
*- options.item
|
|
6180
|
-
*- options.allowDelete a boolean value. It is true by default. Set it false to
|
|
6181
|
-
*- options.allowEdit a boolean value. It is true by default. Set it false to disable editing.
|
|
6188
|
+
*- options.collection a collection where a target item is located. It is can be Columns in Matrices or Choices in Dropdown question and so on.
|
|
6189
|
+
*- options.item a target collection item
|
|
6190
|
+
*- options.allowDelete a boolean value. It is `true` by default. Set it false to prevent an item from being removed from the collection
|
|
6191
|
+
*- options.allowEdit a boolean value. It is `true` by default. Set it `false` to disable editing.
|
|
6182
6192
|
*/
|
|
6183
6193
|
onCollectionItemAllowOperations: CreatorEvent;
|
|
6184
6194
|
/**
|
|
@@ -6818,8 +6828,8 @@ declare module "creator-base" {
|
|
|
6818
6828
|
protected initSurveyWithJSON(json: any, clearState: boolean): void;
|
|
6819
6829
|
private updatePlugin;
|
|
6820
6830
|
protected initDragDrop(): void;
|
|
6821
|
-
onBeforeDrop: Survey.Event<() => any, any>;
|
|
6822
|
-
onAfterDrop: Survey.Event<() => any, any>;
|
|
6831
|
+
onBeforeDrop: Survey.Event<() => any, any, any>;
|
|
6832
|
+
onAfterDrop: Survey.Event<() => any, any, any>;
|
|
6823
6833
|
private initDragDropSurveyElements;
|
|
6824
6834
|
private initDragDropChoices;
|
|
6825
6835
|
updateElementsOnLocaleChanged(obj: Base, propertyName: string): void;
|
|
@@ -6834,6 +6844,7 @@ declare module "creator-base" {
|
|
|
6834
6844
|
protected createSurveyLogicForUpdate(): SurveyLogic;
|
|
6835
6845
|
private updateLogicOnQuestionNameChanged;
|
|
6836
6846
|
private updateLogicOnColumnNameChanged;
|
|
6847
|
+
private updateChoicesFromQuestionOnColumnNameChanged;
|
|
6837
6848
|
isObjQuestion(obj: Base): boolean;
|
|
6838
6849
|
isObjPage(obj: Base): boolean;
|
|
6839
6850
|
private isObjThisType;
|
|
@@ -6937,9 +6948,11 @@ declare module "creator-base" {
|
|
|
6937
6948
|
protected updateConditionsOnRemove(obj: any): void;
|
|
6938
6949
|
isElementSelected(element: Base): boolean;
|
|
6939
6950
|
selectElement(element: any, propertyName?: string, focus?: boolean | string, startEdit?: boolean): void;
|
|
6951
|
+
focusElement(element: any, focus: string | boolean, selEl?: any, propertyName?: string, startEdit?: boolean): void;
|
|
6940
6952
|
private getSelectedSurveyElement;
|
|
6941
6953
|
private onSelectingElement;
|
|
6942
6954
|
protected get designerPropertyGrid(): PropertyGridModel;
|
|
6955
|
+
get propertyGrid(): SurveyModel;
|
|
6943
6956
|
/**
|
|
6944
6957
|
* Collapse certain property editor tab (category) in properties panel/grid
|
|
6945
6958
|
* name - tab category name
|
|
@@ -7076,8 +7089,9 @@ declare module "creator-base" {
|
|
|
7076
7089
|
createIActionBarItemByClass(className: string, title: string, iconName: string, needSeparator: boolean): Action;
|
|
7077
7090
|
onElementMenuItemsChanged(element: any, items: Action[]): void;
|
|
7078
7091
|
getElementAllowOperations(element: SurveyElement): any;
|
|
7079
|
-
|
|
7080
|
-
|
|
7092
|
+
getChoicesItemBaseTitle(): any;
|
|
7093
|
+
getNextItemValue(question: QuestionSelectBase): string | number;
|
|
7094
|
+
createNewItemValue(question: QuestionSelectBase): ItemValue;
|
|
7081
7095
|
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
7082
7096
|
initResponsivityManager(container: HTMLDivElement): void;
|
|
7083
7097
|
resetResponsivityManager(): void;
|