survey-creator-core 1.9.77 → 1.9.78

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
  };
@@ -1470,6 +1474,10 @@ declare module "editorLocalization" {
1470
1474
  questionsOrder: string;
1471
1475
  maxTimeToFinish: string;
1472
1476
  maxTimeToFinishPage: string;
1477
+ image: {
1478
+ imageHeight: string;
1479
+ imageWidth: string;
1480
+ };
1473
1481
  page: {
1474
1482
  maxTimeToFinish: string;
1475
1483
  };
@@ -2463,7 +2471,12 @@ declare module "toolbox" {
2463
2471
  private indexOf;
2464
2472
  private updateItemSeparators;
2465
2473
  private reorderItems;
2466
- private createDefaultItems;
2474
+ /**
2475
+ * Adds default items to the Toolbox. If the Toolbox contains any items before you call this method, they will be removed.
2476
+ * @param supportedQuestions Specifies which question and panel types to include in the Toolbox.
2477
+ * @param useDefaultCategories Pass `true` if you want to create default categories.
2478
+ */
2479
+ createDefaultItems(supportedQuestions: Array<string>, useDefaultCategories: boolean): void;
2467
2480
  private registerCustomWidgets;
2468
2481
  private registerComponentQuestions;
2469
2482
  private getComponentItems;
@@ -2687,6 +2700,7 @@ declare module "property-grid-theme/property-grid" {
2687
2700
  root: string;
2688
2701
  small: string;
2689
2702
  content: string;
2703
+ remainingCharacterCounter: string;
2690
2704
  onError: string;
2691
2705
  };
2692
2706
  multipletext: {
@@ -2781,6 +2795,7 @@ declare module "property-grid-theme/property-grid" {
2781
2795
  comment: {
2782
2796
  root: string;
2783
2797
  content: string;
2798
+ remainingCharacterCounter: string;
2784
2799
  small: string;
2785
2800
  };
2786
2801
  expression: string;
@@ -3150,8 +3165,9 @@ declare module "property-grid/index" {
3150
3165
  fit(prop: JsonObjectProperty): boolean;
3151
3166
  getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
3152
3167
  }
3153
- export class PropertyGridEditorImageSize extends PropertyGridEditorNumber {
3168
+ export class PropertyGridEditorImageSize extends PropertyGridEditorString {
3154
3169
  fit(prop: JsonObjectProperty): boolean;
3170
+ isDefault(): boolean;
3155
3171
  onCreated(obj: Base, question: Question, prop: JsonObjectProperty): void;
3156
3172
  }
3157
3173
  export class PropertyGridEditorText extends PropertyGridEditorStringBase {
@@ -3211,6 +3227,7 @@ declare module "property-grid/index" {
3211
3227
  export class PropertyGridEditorQuestionValue extends PropertyGridEditorQuestion {
3212
3228
  fit(prop: JsonObjectProperty): boolean;
3213
3229
  protected getItemValue(question: Question): any;
3230
+ protected getQuestions(survey: SurveyModel, obj: Base): Array<Question>;
3214
3231
  }
3215
3232
  }
3216
3233
  declare module "selection-owner" {
@@ -5738,7 +5755,7 @@ declare module "components/question-rating" {
5738
5755
  }
5739
5756
  }
5740
5757
  declare module "components/string-editor" {
5741
- import { Base, LocalizableString, JsonObjectProperty, EventBase } from "survey-core";
5758
+ import { Base, LocalizableString, JsonObjectProperty, EventBase, CharacterCounter } from "survey-core";
5742
5759
  import { CreatorBase } from "creator-base";
5743
5760
  import { QuestionAdornerViewModel } from "components/question";
5744
5761
  export abstract class StringItemsNavigatorBase {
@@ -5774,6 +5791,7 @@ declare module "components/string-editor" {
5774
5791
  private valueBeforeEdit;
5775
5792
  private connector;
5776
5793
  getEditorElement: () => HTMLElement;
5794
+ characterCounter: CharacterCounter;
5777
5795
  errorText: string;
5778
5796
  focused: boolean;
5779
5797
  editAsText: boolean;
@@ -5801,6 +5819,8 @@ declare module "components/string-editor" {
5801
5819
  placeholderValue: string;
5802
5820
  get placeholder(): string;
5803
5821
  get contentEditable(): boolean;
5822
+ get showCharacterCounter(): boolean;
5823
+ get getCharacterCounterClass(): string;
5804
5824
  className(text: any): string;
5805
5825
  }
5806
5826
  }
@@ -6256,16 +6276,15 @@ declare module "creator-base" {
6256
6276
  */
6257
6277
  onPropertyValidationCustomError: CreatorEvent;
6258
6278
  /**
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.
6279
+ * 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
6280
  *
6262
6281
  * The event handler accepts the following arguments:
6263
6282
  *
6264
6283
  * - `sender`- A Survey Creator instance that raised the event.
6265
6284
  * - `options.obj` - A survey object instance (question or panel) whose property is being edited.
6266
6285
  * - `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`.
6286
+ * - `options.value` - An old property value.
6287
+ * - `options.newValue` - A new property value. Specify this field if you want to override the entered value.
6269
6288
  * @see onPropertyValidationCustomError
6270
6289
  * @see onSurveyPropertyValueChanged
6271
6290
  */