survey-creator-core 1.9.77 → 1.9.79

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.
@@ -381,6 +381,10 @@ declare module "localization/english" {
381
381
  questionsOrder: string;
382
382
  maxTimeToFinish: string;
383
383
  maxTimeToFinishPage: string;
384
+ image: {
385
+ imageHeight: string;
386
+ imageWidth: string;
387
+ };
384
388
  page: {
385
389
  maxTimeToFinish: string;
386
390
  };
@@ -869,6 +873,7 @@ declare module "creator-settings" {
869
873
  showAddQuestionButton: boolean;
870
874
  };
871
875
  logic: {
876
+ defaultOperator: string;
872
877
  visibleActions: any[];
873
878
  logicItemTitleMaxChars: number;
874
879
  openBracket: string;
@@ -1470,6 +1475,10 @@ declare module "editorLocalization" {
1470
1475
  questionsOrder: string;
1471
1476
  maxTimeToFinish: string;
1472
1477
  maxTimeToFinishPage: string;
1478
+ image: {
1479
+ imageHeight: string;
1480
+ imageWidth: string;
1481
+ };
1473
1482
  page: {
1474
1483
  maxTimeToFinish: string;
1475
1484
  };
@@ -2463,7 +2472,12 @@ declare module "toolbox" {
2463
2472
  private indexOf;
2464
2473
  private updateItemSeparators;
2465
2474
  private reorderItems;
2466
- private createDefaultItems;
2475
+ /**
2476
+ * Adds default items to the Toolbox. If the Toolbox contains any items before you call this method, they will be removed.
2477
+ * @param supportedQuestions Specifies which question and panel types to include in the Toolbox.
2478
+ * @param useDefaultCategories Pass `true` if you want to create default categories.
2479
+ */
2480
+ createDefaultItems(supportedQuestions: Array<string>, useDefaultCategories: boolean): void;
2467
2481
  private registerCustomWidgets;
2468
2482
  private registerComponentQuestions;
2469
2483
  private getComponentItems;
@@ -2687,6 +2701,7 @@ declare module "property-grid-theme/property-grid" {
2687
2701
  root: string;
2688
2702
  small: string;
2689
2703
  content: string;
2704
+ remainingCharacterCounter: string;
2690
2705
  onError: string;
2691
2706
  };
2692
2707
  multipletext: {
@@ -2781,6 +2796,7 @@ declare module "property-grid-theme/property-grid" {
2781
2796
  comment: {
2782
2797
  root: string;
2783
2798
  content: string;
2799
+ remainingCharacterCounter: string;
2784
2800
  small: string;
2785
2801
  };
2786
2802
  expression: string;
@@ -3150,8 +3166,9 @@ declare module "property-grid/index" {
3150
3166
  fit(prop: JsonObjectProperty): boolean;
3151
3167
  getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
3152
3168
  }
3153
- export class PropertyGridEditorImageSize extends PropertyGridEditorNumber {
3169
+ export class PropertyGridEditorImageSize extends PropertyGridEditorString {
3154
3170
  fit(prop: JsonObjectProperty): boolean;
3171
+ isDefault(): boolean;
3155
3172
  onCreated(obj: Base, question: Question, prop: JsonObjectProperty): void;
3156
3173
  }
3157
3174
  export class PropertyGridEditorText extends PropertyGridEditorStringBase {
@@ -3211,6 +3228,7 @@ declare module "property-grid/index" {
3211
3228
  export class PropertyGridEditorQuestionValue extends PropertyGridEditorQuestion {
3212
3229
  fit(prop: JsonObjectProperty): boolean;
3213
3230
  protected getItemValue(question: Question): any;
3231
+ protected getQuestions(survey: SurveyModel, obj: Base): Array<Question>;
3214
3232
  }
3215
3233
  }
3216
3234
  declare module "selection-owner" {
@@ -5039,6 +5057,7 @@ declare module "property-grid/condition-survey" {
5039
5057
  private getQuestionConditionJson;
5040
5058
  private updateOperatorEnables;
5041
5059
  private updateQuestionsWidth;
5060
+ private get defaultOperator();
5042
5061
  private getFirstEnabledOperator;
5043
5062
  private onPanelAdded;
5044
5063
  private onPanelValueChanged;
@@ -5738,7 +5757,7 @@ declare module "components/question-rating" {
5738
5757
  }
5739
5758
  }
5740
5759
  declare module "components/string-editor" {
5741
- import { Base, LocalizableString, JsonObjectProperty, EventBase } from "survey-core";
5760
+ import { Base, LocalizableString, JsonObjectProperty, EventBase, CharacterCounter } from "survey-core";
5742
5761
  import { CreatorBase } from "creator-base";
5743
5762
  import { QuestionAdornerViewModel } from "components/question";
5744
5763
  export abstract class StringItemsNavigatorBase {
@@ -5774,6 +5793,7 @@ declare module "components/string-editor" {
5774
5793
  private valueBeforeEdit;
5775
5794
  private connector;
5776
5795
  getEditorElement: () => HTMLElement;
5796
+ characterCounter: CharacterCounter;
5777
5797
  errorText: string;
5778
5798
  focused: boolean;
5779
5799
  editAsText: boolean;
@@ -5801,6 +5821,8 @@ declare module "components/string-editor" {
5801
5821
  placeholderValue: string;
5802
5822
  get placeholder(): string;
5803
5823
  get contentEditable(): boolean;
5824
+ get showCharacterCounter(): boolean;
5825
+ get getCharacterCounterClass(): string;
5804
5826
  className(text: any): string;
5805
5827
  }
5806
5828
  }
@@ -6256,16 +6278,15 @@ declare module "creator-base" {
6256
6278
  */
6257
6279
  onPropertyValidationCustomError: CreatorEvent;
6258
6280
  /**
6259
- * An event that is raised each time a user edits a survey object property.
6260
- * Use this event to correct or validate the property value while the user enters it.
6281
+ * An event that is raised each time a user modifies a survey object property. Use this event to validate or correct a property value while the user enters it.
6261
6282
  *
6262
6283
  * The event handler accepts the following arguments:
6263
6284
  *
6264
6285
  * - `sender`- A Survey Creator instance that raised the event.
6265
6286
  * - `options.obj` - A survey object instance (question or panel) whose property is being edited.
6266
6287
  * - `options.propertyName` - The name of the property.
6267
- * - `options.value` - A property value entered by a user.
6268
- * - `options.newValue` - A corrected property value. Specify this field if you want to override the `options.value`.
6288
+ * - `options.value` - An old property value.
6289
+ * - `options.newValue` - A new property value. Specify this field if you want to override the entered value.
6269
6290
  * @see onPropertyValidationCustomError
6270
6291
  * @see onSurveyPropertyValueChanged
6271
6292
  */
@@ -7546,6 +7567,7 @@ declare module "property-grid/matrices" {
7546
7567
  private getSupportedValidators;
7547
7568
  }
7548
7569
  export class PropertyGridEditorMatrixTriggers extends PropertyGridEditorMatrixMultipleTypes {
7570
+ private getAvailableTriggers;
7549
7571
  fit(prop: JsonObjectProperty): boolean;
7550
7572
  protected getObjTypeName(): string;
7551
7573
  protected getDefaultClassName(prop: JsonObjectProperty): string;