survey-creator-core 1.9.29 → 1.9.30

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,10 +1,10 @@
1
1
  /*
2
- * Type definition for Survey Creatorlibrary. Platform independent (core) v1.9.29
2
+ * Type definition for Survey Creatorlibrary. Platform independent (core) v1.9.30
3
3
  * Copyright (c) 2015-2022 Devsoft Baltic OÜ - https://surveyjs.io/
4
4
  * License: https://surveyjs.io/Licenses#SurveyCreator
5
5
  */
6
- import { Base, JsonObjectProperty, Question, ItemValue, MatrixDropdownColumn } from "survey-core";
7
- import { IAction, SurveyModel, Action, ActionContainer, DragDropSurveyElements } from "survey-core";
6
+ import { Base, JsonObjectProperty, Question, SurveyModel, ItemValue } from "survey-core";
7
+ import { MatrixDropdownColumn, IAction, Action, ActionContainer, DragDropSurveyElements } from "survey-core";
8
8
  import { DragDropChoices, Event, AdaptiveActionContainer, PageModel, IElement } from "survey-core";
9
9
  import { IPanel, ISurveyElement, SurveyElement, QuestionSelectBase, QuestionRowModel } from "survey-core";
10
10
  import { LocalizableString, DragOrClickHelper, PanelModel, QuestionDropdownModel, ListModel } from "survey-core";
@@ -45,6 +45,7 @@ export interface ISurveyCreatorOptions {
45
45
  getObjectDisplayName(obj: Base, reason: string, displayName: string): string;
46
46
  onCanShowPropertyCallback(object: any, property: JsonObjectProperty, showMode: string, parentObj: any, parentProperty: JsonObjectProperty): boolean;
47
47
  onPropertyEditorCreatedCallback(object: any, property: JsonObjectProperty, editor: Question): any;
48
+ onPropertyGridSurveyCreatedCallback(object: any, survey: SurveyModel): any;
48
49
  onPropertyEditorUpdateTitleActionsCallback(object: any, property: JsonObjectProperty, editor: Question, titleActions: any): any;
49
50
  onIsPropertyReadOnlyCallback(obj: Base, property: JsonObjectProperty, readOnly: boolean, parentObj: Base, parentProperty: JsonObjectProperty): boolean;
50
51
  onCanDeleteItemCallback(object: any, item: Base, allowDelete: boolean): boolean;
@@ -458,6 +459,13 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
458
459
  onShowingProperty: Event<(sender: CreatorBase, options: any) => any, any>;
459
460
  onCanShowProperty: Event<(sender: CreatorBase, options: any) => any, any>;
460
461
  /*
462
+ * The event is called after a survey that represents the Property Grid is created and all its questions (property editors) are setup.
463
+ * You can use this event to modify this survey to change the property grid behavior
464
+ * <br/> options.obj the survey object that is currently editing in the property grid
465
+ * <br/> options.survey the property grid survey
466
+ */
467
+ onPropertyGridSurveyCreated: Event<(sender: CreatorBase, options: any) => any, any>;
468
+ /*
461
469
  * The event is called after a property editor (in fact a survey question) has been created and all it's properties have been assign.
462
470
  * You can use this event to modify the property editor properties or set event handlers to customize it's behavior
463
471
  * <br/> options.obj the survey object that is currently editing in the property grid
@@ -566,6 +574,14 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
566
574
  */
567
575
  onPropertyValueChanging: Event<(sender: CreatorBase, options: any) => any, any>;
568
576
  /*
577
+ * The event is fired when a property in any survey object object is changed.
578
+ * <br/> sender the survey creator object that fires the event
579
+ * <br/> options.obj the survey object which property has been changed.
580
+ * <br/> options.propertyName the name of the changed property.
581
+ * <br/> options.value the property value.
582
+ */
583
+ onSurveyPropertyValueChanged: Event<(sender: CreatorBase, options: any) => any, any>;
584
+ /*
569
585
  * Use this event to modify the list (name and titles) of the questions available in a condition editor.
570
586
  * <br/> sender the survey creator object that fires the event
571
587
  * <br/> options.obj the survey object which property is edited in the Property Editor.
@@ -987,6 +1003,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
987
1003
  onStateChanged: Event<(sender: CreatorBase, options: any) => any, any>;
988
1004
  notifier: Notifier;
989
1005
  setModified(options?: any): void;
1006
+ notifySurveyPropertyChanged(options: any): void;
990
1007
  /*
991
1008
  * This function triggers user notification (via the alert() function if no onNotify event handler added).
992
1009
  */
@@ -1089,6 +1106,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
1089
1106
  get alwaySaveTextInPropertyEditors(): boolean;
1090
1107
  set alwaySaveTextInPropertyEditors(val: boolean);
1091
1108
  onCanShowPropertyCallback(object: any, property: JsonObjectProperty, showMode: string, parentObj: any, parentProperty: JsonObjectProperty): boolean;
1109
+ onPropertyGridSurveyCreatedCallback(object: any, survey: SurveyModel): void;
1092
1110
  onPropertyEditorCreatedCallback(object: any, property: JsonObjectProperty, editor: Question): void;
1093
1111
  onPropertyEditorUpdateTitleActionsCallback(object: any, property: JsonObjectProperty, editor: Question, titleActions: any): void;
1094
1112
  onCanDeleteItemCallback(object: any, item: Base, allowDelete: boolean): boolean;
@@ -1148,7 +1166,6 @@ export declare class CreatorResponsivityManager {
1148
1166
  prevShowToolbox: any;
1149
1167
  prevShowPageNavigator: any;
1150
1168
  screenWidth: any;
1151
- devicePixelRatio: any;
1152
1169
  process(): void;
1153
1170
  dispose(): void;
1154
1171
  }
@@ -2309,6 +2326,7 @@ export declare class EmptySurveyCreatorOptions implements ISurveyCreatorOptions
2309
2326
  maximumRateValues: number;
2310
2327
  getObjectDisplayName(obj: Base, reason: string, displayName: string): string;
2311
2328
  onCanShowPropertyCallback(object: any, property: JsonObjectProperty, showMode: string, parentObj: any, parentProperty: JsonObjectProperty): boolean;
2329
+ onPropertyGridSurveyCreatedCallback(object: any, survey: SurveyModel): void;
2312
2330
  onPropertyEditorCreatedCallback(object: any, property: JsonObjectProperty, editor: Question): void;
2313
2331
  onPropertyEditorUpdateTitleActionsCallback(object: any, property: JsonObjectProperty, editor: Question, titleActions: any): void;
2314
2332
  onIsPropertyReadOnlyCallback(obj: Base, property: JsonObjectProperty, readOnly: boolean, parentObj: Base, parentProperty: JsonObjectProperty): boolean;