survey-creator-core 1.9.71 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "survey-creator-core",
3
- "version": "1.9.71",
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.71"
40
+ "survey-core": "1.9.72"
41
41
  },
42
42
  "devDependencies": {}
43
43
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v1.9.71
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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9TdXJ2ZXlDcmVhdG9yQ29yZS8uL3NyYy9lbnRyaWVzL2ZvbnRzLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUE7QUFDQTtFQUNFLHdCQUF3QjtFQUN4QixrQkFBa0I7RUFDbEIsZ0JBQWdCO0VBQ2hCLHdKQUVtQjtFQUNuQix5S0FFZ0I7O0FBRWxCO0FBQ0E7RUFDRSx3QkFBd0I7RUFDeEIsa0JBQWtCO0VBQ2xCLGdCQUFnQjtFQUNoQixrQkFBa0I7RUFDbEIsNEtBRW1CO0VBQ25CLHlLQUVnQjs7QUFFbEI7QUFDQTtFQUNFLHdCQUF3QjtFQUN4QixrQkFBa0I7RUFDbEIsZ0JBQWdCO0VBQ2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bHZldGljYSBOZXVlXCIsIEhlbHZldGljYSwgQXJpYWwsIHNhbnMtc2VyaWY7XG59Il0sInNvdXJjZVJvb3QiOiIifQ==*//*!
38
- * SurveyJS Creator v1.9.71
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
@@ -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;
@@ -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, Event, Question, ItemValue, MatrixDropdownColumn, QuestionDropdownModel } from "survey-core";
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 Event<(sender: SurveyLogic, options: any) => any, any> {
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, Event as SurveyEvent } from "survey-core";
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: SurveyEvent<(sender: StringEditorViewModelBase, options: any) => any, any>;
5745
- onTextChanging: SurveyEvent<(sender: StringEditorViewModelBase, options: any) => any, any>;
5746
- onEditComplete: SurveyEvent<(sender: StringEditorViewModelBase, options: any) => any, any>;
5747
- onBackspaceEmptyString: SurveyEvent<(sender: StringEditorViewModelBase, options: any) => any, any>;
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 Survey.Event<(sender: CreatorBase, options: any) => any, any> {
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: Survey.QuestionSelectBase): string | number;
7090
- createNewItemValue(question: Survey.QuestionSelectBase): Survey.ItemValue;
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;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v1.9.71
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v1.9.71
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