survey-creator-core 1.9.20 → 1.9.21

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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Type definition for Survey Creatorlibrary. Platform independent (core) v1.9.20
2
+ * Type definition for Survey Creatorlibrary. Platform independent (core) v1.9.21
3
3
  * Copyright (c) 2015-2022 Devsoft Baltic OÜ - https://surveyjs.io/
4
4
  * License: https://surveyjs.io/Licenses#SurveyCreator
5
5
  */
@@ -139,6 +139,18 @@ export interface ISurveyQuestionEditorDefinition {
139
139
  properties?: any;
140
140
  tabs?: any;
141
141
  }
142
+ export interface IPropertyEditorInfo {
143
+ name: string;
144
+ title?: string;
145
+ tab?: string;
146
+ placeholder?: string;
147
+ }
148
+ export interface IPropertyTabInfo {
149
+ name: string;
150
+ index?: number;
151
+ title?: string;
152
+ visible?: boolean;
153
+ }
142
154
  export interface IPropertyEditorSetup {
143
155
  editSurvey: SurveyModel;
144
156
  apply(): boolean;
@@ -311,7 +323,6 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
311
323
  */
312
324
  isAutoSave: boolean;
313
325
  showOptions: boolean;
314
- showState: boolean;
315
326
  showSearch: boolean;
316
327
  generateValidJSON: boolean;
317
328
  currentAddQuestionType: string;
@@ -2572,16 +2583,24 @@ export declare class DefaultValueEditor extends PropertyEditorSetupValue {
2572
2583
  protected getSurveyCreationReason(): string;
2573
2584
  apply(): boolean;
2574
2585
  }
2575
- export declare class FastEntryEditor extends PropertyEditorSetupValue {
2586
+ export declare class FastEntryEditorBase extends PropertyEditorSetupValue {
2576
2587
  constructor(choices: any, options?: ISurveyCreatorOptions, className?: string, names?: any);
2577
2588
  choices: any;
2578
- static applyItemValueArray(dest: any, src: any, names?: any): void;
2579
- commentValue: QuestionCommentModel;
2589
+ protected commentValue: QuestionCommentModel;
2590
+ protected static calcBeforeApplyItemsArray(dest: any, src: any, names: any): void;
2591
+ static applyItemsArray(dest: any, src: any, names?: any): void;
2580
2592
  protected getSurveyJSON(): any;
2581
2593
  protected getSurveyCreationReason(): string;
2582
- get comment(): QuestionCommentModel;
2583
2594
  apply(): boolean;
2595
+ protected convertTextToItemValues(text: string): Array<ItemValue>;
2596
+ get comment(): QuestionCommentModel;
2597
+ protected getChoicesCount(): number;
2598
+ protected getPlaceHolder(): string;
2599
+ protected get isValueUnique(): boolean;
2600
+ protected getFirstUniqueValue(): boolean;
2584
2601
  setComment(): void;
2602
+ protected collectNames(item: any, type: string, separatorCounter: number): string;
2603
+ protected convertItemValuesToText(): string;
2585
2604
  }
2586
2605
  export declare class LogicItemEditor extends PropertyEditorSetupValue {
2587
2606
  constructor(editableItem: SurveyLogicItem, options?: ISurveyCreatorOptions);
@@ -2734,6 +2753,13 @@ export declare class DefaultArrayValueEditor extends DefaultValueEditor {
2734
2753
  protected getQuestionValue(): any;
2735
2754
  protected getEditValue(): any;
2736
2755
  }
2756
+ export declare class FastEntryEditor extends FastEntryEditorBase {
2757
+ constructor(choices: any, options?: ISurveyCreatorOptions, className?: string, names?: any);
2758
+ choices: any;
2759
+ static applyItemValueArray(dest: any, src: any, names?: any): void;
2760
+ apply(): boolean;
2761
+ protected convertItemValuesToText(): string;
2762
+ }
2737
2763
  export declare class PropertyGridCellsEditor extends PropertyGridValueEditorBase {
2738
2764
  constructor();
2739
2765
  fit(prop: JsonObjectProperty): boolean;
@@ -2752,6 +2778,11 @@ export declare class PropertyGridEditorHtml extends PropertyGridEditorStringBase
2752
2778
  fit(prop: JsonObjectProperty): boolean;
2753
2779
  getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
2754
2780
  }
2781
+ export declare class PropertyGridEditorImageSize extends PropertyGridEditorNumber {
2782
+ constructor();
2783
+ fit(prop: JsonObjectProperty): boolean;
2784
+ onCreated(obj: Base, question: Question, prop: JsonObjectProperty): void;
2785
+ }
2755
2786
  export declare class PropertyGridEditorMatrixCalculatedValues extends PropertyGridEditorMatrix {
2756
2787
  constructor();
2757
2788
  fit(prop: JsonObjectProperty): boolean;
@@ -2807,6 +2838,9 @@ export declare class PropertyGridEditorMatrixMutlipleTextItems extends PropertyG
2807
2838
  protected getDefaulColumnNames(): Array<any>;
2808
2839
  protected getKeyValue(): string;
2809
2840
  protected getBaseValue(prop: JsonObjectProperty): string;
2841
+ protected getAllowRowDragDrop(): boolean;
2842
+ createPropertyEditorSetup(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): IPropertyEditorSetup;
2843
+ onMatrixCellCreated(obj: Base, options: any): void;
2810
2844
  }
2811
2845
  export declare class PropertyGridEditorMatrixPages extends PropertyGridEditorMatrix {
2812
2846
  constructor();
@@ -2996,6 +3030,8 @@ export declare var settings: {
2996
3030
  logic: {
2997
3031
  visibleActions: any,
2998
3032
  logicItemTitleMaxChars: number,
3033
+ openBracket: string,
3034
+ closeBracket: string,
2999
3035
  },
3000
3036
  /*
3001
3037
  * Determines which types of questions the conversion will be available for.