survey-creator-core 1.9.69 → 1.9.71
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 +35 -35
- package/survey-creator-core.d.ts +22 -24
- package/survey-creator-core.fontless.css +34 -34
- package/survey-creator-core.fontless.min.css +2 -4
- package/survey-creator-core.i18n.js +225 -225
- package/survey-creator-core.i18n.min.js +2 -2
- package/survey-creator-core.js +133 -157
- package/survey-creator-core.min.css +3 -5
- package/survey-creator-core.min.js +3 -3
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;
|
|
@@ -1223,6 +1224,7 @@ declare module "editorLocalization" {
|
|
|
1223
1224
|
addNewTypeQuestion: string;
|
|
1224
1225
|
chooseLogoPlaceholder: string;
|
|
1225
1226
|
auto: string;
|
|
1227
|
+
choices_Item: string;
|
|
1226
1228
|
lg: {
|
|
1227
1229
|
addNewItem: string;
|
|
1228
1230
|
empty_tab: string;
|
|
@@ -2689,6 +2691,7 @@ declare module "property-grid-theme/property-grid" {
|
|
|
2689
2691
|
};
|
|
2690
2692
|
dropdown: {
|
|
2691
2693
|
root: string;
|
|
2694
|
+
popup: string;
|
|
2692
2695
|
small: string;
|
|
2693
2696
|
control: string;
|
|
2694
2697
|
filterStringInput: string;
|
|
@@ -3102,6 +3105,7 @@ declare module "property-grid/index" {
|
|
|
3102
3105
|
private onGetQuestionTitleActions;
|
|
3103
3106
|
private onMatrixCellValueChanged;
|
|
3104
3107
|
private getMatrixAllowRemoveRow;
|
|
3108
|
+
private getMatrixOnRowRemoving;
|
|
3105
3109
|
private getMatrixAllowEditRow;
|
|
3106
3110
|
private calculateMatrixAllowOperations;
|
|
3107
3111
|
private onMatrixAllowRemoveRow;
|
|
@@ -4755,6 +4759,7 @@ declare module "components/tabs/logic-theme" {
|
|
|
4755
4759
|
};
|
|
4756
4760
|
dropdown: {
|
|
4757
4761
|
root: string;
|
|
4762
|
+
popup: string;
|
|
4758
4763
|
small: string;
|
|
4759
4764
|
control: string;
|
|
4760
4765
|
selectWrapper: string;
|
|
@@ -5258,17 +5263,6 @@ declare module "components/tabs/logic-plugin" {
|
|
|
5258
5263
|
private get showAllActionTypesText();
|
|
5259
5264
|
}
|
|
5260
5265
|
}
|
|
5261
|
-
declare module "components/notifier" {
|
|
5262
|
-
import { Base } from "survey-core";
|
|
5263
|
-
export class Notifier extends Base {
|
|
5264
|
-
active: any;
|
|
5265
|
-
message: string;
|
|
5266
|
-
css: string;
|
|
5267
|
-
timeout: number;
|
|
5268
|
-
timer: any;
|
|
5269
|
-
notify(message: string, type?: "info" | "error"): void;
|
|
5270
|
-
}
|
|
5271
|
-
}
|
|
5272
5266
|
declare module "plugins/undo-redo/undo-redo-manager" {
|
|
5273
5267
|
import { ArrayChanges, Base } from "survey-core";
|
|
5274
5268
|
export interface IUndoRedoChange {
|
|
@@ -5598,9 +5592,11 @@ declare module "components/item-value" {
|
|
|
5598
5592
|
private allowItemOperations;
|
|
5599
5593
|
private canTouchItems;
|
|
5600
5594
|
private focusCameFromDown;
|
|
5595
|
+
private collectionProperty;
|
|
5601
5596
|
private isBanStartDrag;
|
|
5602
5597
|
private updateNewItemValue;
|
|
5603
|
-
|
|
5598
|
+
private get collectionPropertyName();
|
|
5599
|
+
onPointerDown(pointerDownEvent: PointerEvent): boolean;
|
|
5604
5600
|
startDragItemValue: (pointerDownEvent: PointerEvent, currentTarget: any) => void;
|
|
5605
5601
|
private get dragDropHelper();
|
|
5606
5602
|
dispose(): void;
|
|
@@ -5736,7 +5732,7 @@ declare module "components/string-editor" {
|
|
|
5736
5732
|
private static createItemsNavigator;
|
|
5737
5733
|
protected addNewItems(items: any, startIndex: number, itemsToAdd: string[]): void;
|
|
5738
5734
|
private setEventsForItem;
|
|
5739
|
-
static setQuestion(questionAdorner: QuestionAdornerViewModel):
|
|
5735
|
+
static setQuestion(questionAdorner: QuestionAdornerViewModel): boolean;
|
|
5740
5736
|
}
|
|
5741
5737
|
export class StringEditorConnector extends Base {
|
|
5742
5738
|
private locString;
|
|
@@ -5799,7 +5795,6 @@ declare module "creator-base" {
|
|
|
5799
5795
|
import { ICreatorSelectionOwner } from "selection-owner";
|
|
5800
5796
|
import { SelectionHistory } from "selection-history";
|
|
5801
5797
|
import { SurveyLogic } from "components/tabs/logic";
|
|
5802
|
-
import { Notifier } from "components/notifier";
|
|
5803
5798
|
import { UndoRedoManager } from "plugins/undo-redo/undo-redo-manager";
|
|
5804
5799
|
import { UndoRedoController } from "plugins/undo-redo/undo-redo-controller";
|
|
5805
5800
|
import { SidebarModel } from "components/side-bar/side-bar-model";
|
|
@@ -6159,7 +6154,7 @@ declare module "creator-base" {
|
|
|
6159
6154
|
onPropertyGridShowModal: CreatorEvent;
|
|
6160
6155
|
/**
|
|
6161
6156
|
* The event is called before rendering a delete button in the Property Grid or in Question Editor.
|
|
6162
|
-
* Obsolete, please use onCollectionItemAllowOperations
|
|
6157
|
+
* @Deprecated Obsolete, please use onCollectionItemAllowOperations
|
|
6163
6158
|
*- sender the survey creator object that fires the event
|
|
6164
6159
|
*- options.obj the survey Question
|
|
6165
6160
|
*- options.item the object property (Survey.JsonObjectProperty object). It has name, className, type, visible, readOnly and other properties
|
|
@@ -6169,7 +6164,7 @@ declare module "creator-base" {
|
|
|
6169
6164
|
onCanDeleteItem: CreatorEvent;
|
|
6170
6165
|
/**
|
|
6171
6166
|
* 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.
|
|
6172
|
-
* Obsolete, please use onCollectionItemAllowOperations
|
|
6167
|
+
* @Deprecated Obsolete, please use onCollectionItemAllowOperations
|
|
6173
6168
|
*- sender the survey creator object that fires the event
|
|
6174
6169
|
*- options.obj the survey object: Question, Panel, Page or Survey
|
|
6175
6170
|
*- options.property the collection property (Survey.JsonObjectProperty object). It has name, className, type, visible, readOnly and other properties
|
|
@@ -6181,16 +6176,16 @@ declare module "creator-base" {
|
|
|
6181
6176
|
*/
|
|
6182
6177
|
onCollectionItemDeleting: CreatorEvent;
|
|
6183
6178
|
/**
|
|
6184
|
-
* The event is called before rendering a collection item
|
|
6185
|
-
*
|
|
6179
|
+
* 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.
|
|
6180
|
+
* Use this event to prevent a collection item from being edited or removed from a collection.
|
|
6186
6181
|
*- sender the survey creator object that fires the event
|
|
6187
6182
|
*- options.obj the survey object: Question, Panel, Page or Survey
|
|
6188
6183
|
*- options.property the collection property (Survey.JsonObjectProperty object). It has name, className, type, visible, readOnly and other properties
|
|
6189
6184
|
*- options.propertyName the collection property name
|
|
6190
|
-
*- options.collection
|
|
6191
|
-
*- options.item
|
|
6192
|
-
*- options.allowDelete a boolean value. It is true by default. Set it false to
|
|
6193
|
-
*- options.allowEdit a boolean value. It is true by default. Set it false to disable editing.
|
|
6185
|
+
*- 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.
|
|
6186
|
+
*- options.item a target collection item
|
|
6187
|
+
*- options.allowDelete a boolean value. It is `true` by default. Set it false to prevent an item from being removed from the collection
|
|
6188
|
+
*- options.allowEdit a boolean value. It is `true` by default. Set it `false` to disable editing.
|
|
6194
6189
|
*/
|
|
6195
6190
|
onCollectionItemAllowOperations: CreatorEvent;
|
|
6196
6191
|
/**
|
|
@@ -6881,7 +6876,7 @@ declare module "creator-base" {
|
|
|
6881
6876
|
get state(): string;
|
|
6882
6877
|
protected setState(value: string): void;
|
|
6883
6878
|
onStateChanged: CreatorEvent;
|
|
6884
|
-
notifier: Notifier;
|
|
6879
|
+
notifier: Survey.Notifier;
|
|
6885
6880
|
setModified(options?: any): void;
|
|
6886
6881
|
notifySurveyPropertyChanged(options: any): void;
|
|
6887
6882
|
/**
|
|
@@ -6949,9 +6944,11 @@ declare module "creator-base" {
|
|
|
6949
6944
|
protected updateConditionsOnRemove(obj: any): void;
|
|
6950
6945
|
isElementSelected(element: Base): boolean;
|
|
6951
6946
|
selectElement(element: any, propertyName?: string, focus?: boolean | string, startEdit?: boolean): void;
|
|
6947
|
+
focusElement(element: any, focus: string | boolean, selEl?: any, propertyName?: string, startEdit?: boolean): void;
|
|
6952
6948
|
private getSelectedSurveyElement;
|
|
6953
6949
|
private onSelectingElement;
|
|
6954
6950
|
protected get designerPropertyGrid(): PropertyGridModel;
|
|
6951
|
+
get propertyGrid(): SurveyModel;
|
|
6955
6952
|
/**
|
|
6956
6953
|
* Collapse certain property editor tab (category) in properties panel/grid
|
|
6957
6954
|
* name - tab category name
|
|
@@ -7088,6 +7085,7 @@ declare module "creator-base" {
|
|
|
7088
7085
|
createIActionBarItemByClass(className: string, title: string, iconName: string, needSeparator: boolean): Action;
|
|
7089
7086
|
onElementMenuItemsChanged(element: any, items: Action[]): void;
|
|
7090
7087
|
getElementAllowOperations(element: SurveyElement): any;
|
|
7088
|
+
getChoicesItemBaseTitle(): any;
|
|
7091
7089
|
getNextItemValue(question: Survey.QuestionSelectBase): string | number;
|
|
7092
7090
|
createNewItemValue(question: Survey.QuestionSelectBase): Survey.ItemValue;
|
|
7093
7091
|
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
@@ -7260,6 +7258,7 @@ declare module "components/image-item-value" {
|
|
|
7260
7258
|
item: ImageItemValue;
|
|
7261
7259
|
templateData: any;
|
|
7262
7260
|
itemsRoot: HTMLElement;
|
|
7261
|
+
private isChoosingNewFile;
|
|
7263
7262
|
isFileDragging: boolean;
|
|
7264
7263
|
constructor(creator: CreatorBase, question: QuestionSelectBase, item: ImageItemValue, templateData: any, itemsRoot: HTMLElement);
|
|
7265
7264
|
getRootCss(): string;
|
|
@@ -7710,7 +7709,6 @@ declare module "entries/index" {
|
|
|
7710
7709
|
export * from "utils/utils";
|
|
7711
7710
|
export * from "question-editor/definition";
|
|
7712
7711
|
export * from "survey-helper";
|
|
7713
|
-
export * from "components/notifier";
|
|
7714
7712
|
export * from "utils/resizer";
|
|
7715
7713
|
export * from "plugins/undo-redo/index";
|
|
7716
7714
|
export * from "plugins/undo-redo/undo-redo-manager";
|