survey-creator-core 1.9.76 → 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;
@@ -2808,6 +2823,9 @@ declare module "property-grid-theme/property-grid" {
2808
2823
  controls: string;
2809
2824
  clearButton: string;
2810
2825
  };
2826
+ propertygrid_bindings: {
2827
+ content: string;
2828
+ };
2811
2829
  propertygrid_restfull: {
2812
2830
  content: string;
2813
2831
  };
@@ -3048,9 +3066,10 @@ declare module "property-grid/index" {
3048
3066
  private options;
3049
3067
  private parentObj;
3050
3068
  private parentProperty;
3069
+ private properties;
3051
3070
  static isPropertyReadOnly(prop: JsonObjectProperty, options: ISurveyCreatorOptions, obj: Base, parentObj: Base, parentProperty: JsonObjectProperty): boolean;
3052
3071
  static getClassNameProperty(obj: Base): string;
3053
- constructor(obj: Base, options?: ISurveyCreatorOptions, parentObj?: Base, parentProperty?: JsonObjectProperty);
3072
+ constructor(obj: Base, options?: ISurveyCreatorOptions, parentObj?: Base, parentProperty?: JsonObjectProperty, properties?: Array<JsonObjectProperty>);
3054
3073
  toJSON(isNested?: boolean, context?: string): any;
3055
3074
  createColumnsJSON(className: string, names: Array<string>): any;
3056
3075
  setupObjPanel(panel: PanelModelBase, isNestedObj?: boolean, context?: string): void;
@@ -3146,8 +3165,9 @@ declare module "property-grid/index" {
3146
3165
  fit(prop: JsonObjectProperty): boolean;
3147
3166
  getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
3148
3167
  }
3149
- export class PropertyGridEditorImageSize extends PropertyGridEditorNumber {
3168
+ export class PropertyGridEditorImageSize extends PropertyGridEditorString {
3150
3169
  fit(prop: JsonObjectProperty): boolean;
3170
+ isDefault(): boolean;
3151
3171
  onCreated(obj: Base, question: Question, prop: JsonObjectProperty): void;
3152
3172
  }
3153
3173
  export class PropertyGridEditorText extends PropertyGridEditorStringBase {
@@ -3207,6 +3227,7 @@ declare module "property-grid/index" {
3207
3227
  export class PropertyGridEditorQuestionValue extends PropertyGridEditorQuestion {
3208
3228
  fit(prop: JsonObjectProperty): boolean;
3209
3229
  protected getItemValue(question: Question): any;
3230
+ protected getQuestions(survey: SurveyModel, obj: Base): Array<Question>;
3210
3231
  }
3211
3232
  }
3212
3233
  declare module "selection-owner" {
@@ -5607,6 +5628,7 @@ declare module "components/item-value" {
5607
5628
  private canTouchItems;
5608
5629
  private focusCameFromDown;
5609
5630
  private collectionProperty;
5631
+ get canBeDragged(): boolean;
5610
5632
  private isBanStartDrag;
5611
5633
  private updateNewItemValue;
5612
5634
  private get collectionPropertyName();
@@ -5733,7 +5755,7 @@ declare module "components/question-rating" {
5733
5755
  }
5734
5756
  }
5735
5757
  declare module "components/string-editor" {
5736
- import { Base, LocalizableString, JsonObjectProperty, EventBase } from "survey-core";
5758
+ import { Base, LocalizableString, JsonObjectProperty, EventBase, CharacterCounter } from "survey-core";
5737
5759
  import { CreatorBase } from "creator-base";
5738
5760
  import { QuestionAdornerViewModel } from "components/question";
5739
5761
  export abstract class StringItemsNavigatorBase {
@@ -5769,6 +5791,7 @@ declare module "components/string-editor" {
5769
5791
  private valueBeforeEdit;
5770
5792
  private connector;
5771
5793
  getEditorElement: () => HTMLElement;
5794
+ characterCounter: CharacterCounter;
5772
5795
  errorText: string;
5773
5796
  focused: boolean;
5774
5797
  editAsText: boolean;
@@ -5796,6 +5819,8 @@ declare module "components/string-editor" {
5796
5819
  placeholderValue: string;
5797
5820
  get placeholder(): string;
5798
5821
  get contentEditable(): boolean;
5822
+ get showCharacterCounter(): boolean;
5823
+ get getCharacterCounterClass(): string;
5799
5824
  className(text: any): string;
5800
5825
  }
5801
5826
  }
@@ -6251,16 +6276,15 @@ declare module "creator-base" {
6251
6276
  */
6252
6277
  onPropertyValidationCustomError: CreatorEvent;
6253
6278
  /**
6254
- * An event that is raised each time a user edits a survey object property.
6255
- * 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.
6256
6280
  *
6257
6281
  * The event handler accepts the following arguments:
6258
6282
  *
6259
6283
  * - `sender`- A Survey Creator instance that raised the event.
6260
6284
  * - `options.obj` - A survey object instance (question or panel) whose property is being edited.
6261
6285
  * - `options.propertyName` - The name of the property.
6262
- * - `options.value` - A property value entered by a user.
6263
- * - `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.
6264
6288
  * @see onPropertyValidationCustomError
6265
6289
  * @see onSurveyPropertyValueChanged
6266
6290
  */
@@ -7547,13 +7571,17 @@ declare module "property-grid/matrices" {
7547
7571
  protected getAllowRowDragDrop(prop: JsonObjectProperty): boolean;
7548
7572
  protected getChoices(obj: Base): Array<any>;
7549
7573
  }
7574
+ }
7575
+ declare module "property-grid/bindings" {
7576
+ import { ISurveyCreatorOptions } from "creator-settings";
7577
+ import { JsonObjectProperty, Base, QuestionCompositeModel } from "survey-core";
7578
+ import { PropertyGridEditor } from "property-grid/index";
7550
7579
  export class PropertyGridEditorBindings extends PropertyGridEditor {
7551
7580
  fit(prop: JsonObjectProperty): boolean;
7552
- getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
7553
- onMatrixCellCreated(obj: Base, options: any): void;
7554
- onCreated(obj: Base, question: Question, prop: JsonObjectProperty): void;
7555
- private getRows;
7556
- private getColumns;
7581
+ getJSON(): any;
7582
+ onCreated(obj: Base, question: QuestionCompositeModel, prop: JsonObjectProperty, options: ISurveyCreatorOptions): void;
7583
+ private getQuestions;
7584
+ private getBindingJSON;
7557
7585
  }
7558
7586
  }
7559
7587
  declare module "property-grid/restfull" {
@@ -7714,6 +7742,7 @@ declare module "entries/index" {
7714
7742
  export * from "property-grid/index";
7715
7743
  export * from "property-grid/condition";
7716
7744
  export * from "property-grid/matrices";
7745
+ export * from "property-grid/bindings";
7717
7746
  export * from "property-grid/property-grid-view-model";
7718
7747
  export * from "property-grid/object-selector";
7719
7748
  export * from "property-grid/restfull";