survey-creator-core 1.9.17 → 1.9.20

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.17
2
+ * Type definition for Survey Creatorlibrary. Platform independent (core) v1.9.20
3
3
  * Copyright (c) 2015-2022 Devsoft Baltic OÜ - https://surveyjs.io/
4
4
  * License: https://surveyjs.io/Licenses#SurveyCreator
5
5
  */
@@ -827,12 +827,13 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
827
827
  get showToolbox(): boolean;
828
828
  set showToolbox(val: boolean);
829
829
  showSidebarValue: boolean;
830
- onShowSidebarVisiblityChanged: Event<(sender: CreatorBase, options: any) => any, any>;
830
+ onShowSidebarVisibilityChanged: Event<(sender: CreatorBase, options: any) => any, any>;
831
831
  /*
832
832
  * Set this this property grid false to hide the property grid.
833
833
  */
834
834
  get showSidebar(): boolean;
835
835
  set showSidebar(val: boolean);
836
+ setShowSidebar(value: boolean, isManualMode?: boolean): void;
836
837
  onShowPropertyGridVisiblityChanged: Event<(sender: CreatorBase, options: any) => any, any>;
837
838
  get showPropertyGrid(): boolean;
838
839
  set showPropertyGrid(val: boolean);
@@ -897,6 +898,8 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
897
898
  existingPages: any;
898
899
  protected initSurveyWithJSON(json: any, clearState: boolean): void;
899
900
  protected initDragDrop(): void;
901
+ onBeforeDrop: Event<() => any, any>;
902
+ onAfterDrop: Event<() => any, any>;
900
903
  updateElementsOnLocaleChanged(obj: Base, propertyName: string): void;
901
904
  updateConditionsOnQuestionNameChanged(obj: Base, propertyName: string, oldValue: any): void;
902
905
  updatePagesController(sender: Base, name: string): void;
@@ -1085,7 +1088,6 @@ export declare class CreatorResponsivityManager {
1085
1088
  resizeObserver: any;
1086
1089
  currentWidth: any;
1087
1090
  prevShowToolbox: any;
1088
- prevToolboxIsCompact: any;
1089
1091
  prevShowPageNavigator: any;
1090
1092
  screenWidth: any;
1091
1093
  devicePixelRatio: any;
@@ -1097,6 +1099,7 @@ export declare class DesignTimeSurveyModel extends SurveyModel {
1097
1099
  creator: CreatorBase;
1098
1100
  isPopupEditorContent: boolean;
1099
1101
  getElementWrapperComponentName(element: any, reason?: string): string;
1102
+ getQuestionContentWrapperComponentName(element: any, reason?: string): string;
1100
1103
  getElementWrapperComponentData(element: any, reason?: string): any;
1101
1104
  getRowWrapperComponentName(row: QuestionRowModel): string;
1102
1105
  getRowWrapperComponentData(row: QuestionRowModel): any;
@@ -1414,6 +1417,7 @@ export declare class QuestionToolbox extends AdaptiveActionContainer<QuestionToo
1414
1417
  hasCategories: boolean;
1415
1418
  canCollapseCategories: boolean;
1416
1419
  isCompact: boolean;
1420
+ forceCompact: boolean;
1417
1421
  setLocation(toolboxLocation: any): void;
1418
1422
  /*
1419
1423
  * The Array of Toolbox items as Text JSON.
@@ -1560,7 +1564,7 @@ export declare class SelectionHistory extends Base {
1560
1564
  onObjSelected(obj: Base): void;
1561
1565
  }
1562
1566
  export declare class SidebarModel extends Base {
1563
- constructor(creator: CreatorBase, collapseAction?: any, expandAction?: any);
1567
+ constructor(creator: CreatorBase);
1564
1568
  toolbar: any;
1565
1569
  _expandAction: Action;
1566
1570
  _collapseAction: Action;
@@ -2660,7 +2664,7 @@ export declare class PropertyGridEditorMatrix extends PropertyGridEditor {
2660
2664
  protected hasDetailPanel(): boolean;
2661
2665
  hasPropertiesInDetail: boolean;
2662
2666
  protected setupMatrixQuestion(obj: Base, matrix: QuestionMatrixDynamicModel, prop: JsonObjectProperty): void;
2663
- protected getAllowRowDragDrop(): boolean;
2667
+ protected getAllowRowDragDrop(prop: JsonObjectProperty): boolean;
2664
2668
  getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
2665
2669
  protected getMatrixJSON(obj: Base, prop: JsonObjectProperty, propNames: any, options: ISurveyCreatorOptions): any;
2666
2670
  protected getHideColumnsEmpty(prop: JsonObjectProperty): boolean;
@@ -2765,7 +2769,7 @@ export declare class PropertyGridEditorMatrixColumns extends PropertyGridEditorM
2765
2769
  protected getKeyValue(): string;
2766
2770
  protected getBaseValue(prop: JsonObjectProperty): string;
2767
2771
  protected getMaximumRowCount(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): number;
2768
- protected getAllowRowDragDrop(): boolean;
2772
+ protected getAllowRowDragDrop(prop: JsonObjectProperty): boolean;
2769
2773
  }
2770
2774
  export declare class PropertyGridEditorMatrixHtmlConditions extends PropertyGridEditorMatrix {
2771
2775
  constructor();
@@ -2777,7 +2781,7 @@ export declare class PropertyGridEditorMatrixItemValues extends PropertyGridEdit
2777
2781
  constructor();
2778
2782
  fit(prop: JsonObjectProperty): boolean;
2779
2783
  isPropertyEditorSetupEnabled(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): boolean;
2780
- protected getAllowRowDragDrop(): boolean;
2784
+ protected getAllowRowDragDrop(prop: JsonObjectProperty): boolean;
2781
2785
  createPropertyEditorSetup(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): IPropertyEditorSetup;
2782
2786
  canClearPropertyValue(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): boolean;
2783
2787
  clearPropertyValue(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): void;
@@ -2813,7 +2817,7 @@ export declare class PropertyGridEditorMatrixPages extends PropertyGridEditorMat
2813
2817
  protected hasDetailPanel(): boolean;
2814
2818
  protected getKeyValue(): string;
2815
2819
  protected getBaseValue(prop: JsonObjectProperty): string;
2816
- protected getAllowRowDragDrop(): boolean;
2820
+ protected getAllowRowDragDrop(prop: JsonObjectProperty): boolean;
2817
2821
  }
2818
2822
  export declare class PropertyGridEditorMatrixUrlConditions extends PropertyGridEditorMatrix {
2819
2823
  constructor();
@@ -2902,6 +2906,7 @@ export declare class PropertyGridEditorMatrixTriggers extends PropertyGridEditor
2902
2906
  fit(prop: JsonObjectProperty): boolean;
2903
2907
  protected getObjTypeName(): string;
2904
2908
  protected getDefaultClassName(prop: JsonObjectProperty): string;
2909
+ protected getAllowRowDragDrop(prop: JsonObjectProperty): boolean;
2905
2910
  protected getChoices(obj: Base): Array<any>;
2906
2911
  }
2907
2912
  export declare class PropertyGridEditorMatrixValidators extends PropertyGridEditorMatrixMultipleTypes {
@@ -2934,9 +2939,11 @@ export declare function wrapTextByCurlyBraces(text: string): string;
2934
2939
  export declare function getLogicString(name: string): any;
2935
2940
  export declare function findAction(actions: any, id: string): IAction;
2936
2941
  export declare function updateMatrixLogicExpandAction(question: QuestionMatrixDynamicModel, actions: any, row: MatrixDynamicRowModel): void;
2942
+ export declare function updateMatrixLogicRemoveAction(question: QuestionMatrixDynamicModel, actions: any, row: MatrixDynamicRowModel): void;
2937
2943
  export declare function updateMatrixRemoveAction(question: QuestionMatrixDynamicModel, actions: any, row: MatrixDynamicRowModel): void;
2938
2944
  export declare function setSurveyJSONForPropertyGrid(json: any, updateOnTyping?: boolean, titleLocationLeft?: boolean): void;
2939
2945
  export declare function getElementWrapperComponentName(element: any, reason: string, isPopupEditorContent: boolean): string;
2946
+ export declare function getQuestionContentWrapperComponentName(element: any): string;
2940
2947
  export declare function getElementWrapperComponentData(element: any, reason: string, creator: CreatorBase): any;
2941
2948
  export declare function getItemValueWrapperComponentName(item: ItemValue, question: QuestionSelectBase): string;
2942
2949
  export declare function getItemValueWrapperComponentData(item: ItemValue, question: QuestionSelectBase, creator: CreatorBase): any;