survey-creator-core 1.9.70 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "survey-creator-core",
3
- "version": "1.9.70",
3
+ "version": "1.9.71",
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.70"
40
+ "survey-core": "1.9.71"
41
41
  },
42
42
  "devDependencies": {}
43
43
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v1.9.70
2
+ * SurveyJS Creator v1.9.71
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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9TdXJ2ZXlDcmVhdG9yQ29yZS8uL3NyYy9lbnRyaWVzL2ZvbnRzLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUE7QUFDQTtFQUNFLHdCQUF3QjtFQUN4QixrQkFBa0I7RUFDbEIsZ0JBQWdCO0VBQ2hCLHdKQUVtQjtFQUNuQix5S0FFZ0I7O0FBRWxCO0FBQ0E7RUFDRSx3QkFBd0I7RUFDeEIsa0JBQWtCO0VBQ2xCLGdCQUFnQjtFQUNoQixrQkFBa0I7RUFDbEIsNEtBRW1CO0VBQ25CLHlLQUVnQjs7QUFFbEI7QUFDQTtFQUNFLHdCQUF3QjtFQUN4QixrQkFBa0I7RUFDbEIsZ0JBQWdCO0VBQ2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bHZldGljYSBOZXVlXCIsIEhlbHZldGljYSwgQXJpYWwsIHNhbnMtc2VyaWY7XG59Il0sInNvdXJjZVJvb3QiOiIifQ==*//*!
38
- * SurveyJS Creator v1.9.70
38
+ * SurveyJS Creator v1.9.71
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
@@ -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;
@@ -5587,8 +5592,10 @@ declare module "components/item-value" {
5587
5592
  private allowItemOperations;
5588
5593
  private canTouchItems;
5589
5594
  private focusCameFromDown;
5595
+ private collectionProperty;
5590
5596
  private isBanStartDrag;
5591
5597
  private updateNewItemValue;
5598
+ private get collectionPropertyName();
5592
5599
  onPointerDown(pointerDownEvent: PointerEvent): boolean;
5593
5600
  startDragItemValue: (pointerDownEvent: PointerEvent, currentTarget: any) => void;
5594
5601
  private get dragDropHelper();
@@ -6147,7 +6154,7 @@ declare module "creator-base" {
6147
6154
  onPropertyGridShowModal: CreatorEvent;
6148
6155
  /**
6149
6156
  * The event is called before rendering a delete button in the Property Grid or in Question Editor.
6150
- * Obsolete, please use onCollectionItemAllowOperations
6157
+ * @Deprecated Obsolete, please use onCollectionItemAllowOperations
6151
6158
  *- sender the survey creator object that fires the event
6152
6159
  *- options.obj the survey Question
6153
6160
  *- options.item the object property (Survey.JsonObjectProperty object). It has name, className, type, visible, readOnly and other properties
@@ -6157,7 +6164,7 @@ declare module "creator-base" {
6157
6164
  onCanDeleteItem: CreatorEvent;
6158
6165
  /**
6159
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.
6160
- * Obsolete, please use onCollectionItemAllowOperations
6167
+ * @Deprecated Obsolete, please use onCollectionItemAllowOperations
6161
6168
  *- sender the survey creator object that fires the event
6162
6169
  *- options.obj the survey object: Question, Panel, Page or Survey
6163
6170
  *- options.property the collection property (Survey.JsonObjectProperty object). It has name, className, type, visible, readOnly and other properties
@@ -6169,16 +6176,16 @@ declare module "creator-base" {
6169
6176
  */
6170
6177
  onCollectionItemDeleting: CreatorEvent;
6171
6178
  /**
6172
- * The event is called before rendering a collection item from the Property Editor. For example: column in columns editor or item in choices and so on.
6173
- * You can make detail/edit and remove buttons invsible and/or disable editing.
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.
6174
6181
  *- sender the survey creator object that fires the event
6175
6182
  *- options.obj the survey object: Question, Panel, Page or Survey
6176
6183
  *- options.property the collection property (Survey.JsonObjectProperty object). It has name, className, type, visible, readOnly and other properties
6177
6184
  *- options.propertyName the collection property name
6178
- *- options.collection the editing collection where deleting item is located. It is can be columns in the matrices or choices in dropdown question and so on.
6179
- *- options.item the collection item that we are going to delete
6180
- *- options.allowDelete a boolean value. It is true by default. Set it false to abondome the element removing from the collection
6181
- *- 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.
6182
6189
  */
6183
6190
  onCollectionItemAllowOperations: CreatorEvent;
6184
6191
  /**
@@ -6937,9 +6944,11 @@ declare module "creator-base" {
6937
6944
  protected updateConditionsOnRemove(obj: any): void;
6938
6945
  isElementSelected(element: Base): boolean;
6939
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;
6940
6948
  private getSelectedSurveyElement;
6941
6949
  private onSelectingElement;
6942
6950
  protected get designerPropertyGrid(): PropertyGridModel;
6951
+ get propertyGrid(): SurveyModel;
6943
6952
  /**
6944
6953
  * Collapse certain property editor tab (category) in properties panel/grid
6945
6954
  * name - tab category name
@@ -7076,6 +7085,7 @@ declare module "creator-base" {
7076
7085
  createIActionBarItemByClass(className: string, title: string, iconName: string, needSeparator: boolean): Action;
7077
7086
  onElementMenuItemsChanged(element: any, items: Action[]): void;
7078
7087
  getElementAllowOperations(element: SurveyElement): any;
7088
+ getChoicesItemBaseTitle(): any;
7079
7089
  getNextItemValue(question: Survey.QuestionSelectBase): string | number;
7080
7090
  createNewItemValue(question: Survey.QuestionSelectBase): Survey.ItemValue;
7081
7091
  protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v1.9.70
2
+ * SurveyJS Creator v1.9.71
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v1.9.70
2
+ * SurveyJS Creator v1.9.71
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