survey-creator-react 1.9.8-beta.1 → 1.9.9-beta.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "survey-creator-react",
3
- "version": "1.9.8-beta.1",
3
+ "version": "1.9.9-beta.1",
4
4
  "description": "Use SurveyJS Creator to create or edit JSON for SurveyJS Library.",
5
5
  "keywords": [
6
6
  "Survey",
@@ -14,8 +14,6 @@
14
14
  "homepage": "https://surveyjs.io/Overview/Survey-Creator",
15
15
  "license": "https://surveyjs.io/Licenses#SurveyCreator",
16
16
  "files": [
17
- "survey-creator-react.css",
18
- "survey-creator-react.min.css",
19
17
  "survey-creator-react.js",
20
18
  "survey-creator-react.d.ts",
21
19
  "survey-creator-react.min.js"
@@ -33,8 +31,9 @@
33
31
  "ace-builds": "^1.4.12"
34
32
  },
35
33
  "dependencies": {
36
- "survey-core": "^1.8.0",
37
- "survey-react-ui": "^1.8.0",
34
+ "survey-core": "^1.9.0",
35
+ "survey-react-ui": "^1.9.0",
36
+ "survey-creator-core": "^1.9.0",
38
37
  "react": "^17.0.1",
39
38
  "react-dom": "^17.0.1"
40
39
  },
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Type definition for Survey Creator library for React v1.9.8-beta.1
2
+ * Type definition for Survey Creator library for React v1.9.9-beta.1
3
3
  * Copyright (c) 2015-2022 Devsoft Baltic OÜ - https://surveyjs.io/
4
4
  * License: https://surveyjs.io/Licenses#SurveyCreator
5
5
  */
@@ -7,11 +7,12 @@ import { Base, JsonObjectProperty, Question, ItemValue, MatrixDropdownColumn } f
7
7
  import { IAction, SurveyModel, Action, QuestionRowModel, PageModel } from "survey-core";
8
8
  import { QuestionSelectBase, ImageItemValue, SurveyElement, AdaptiveActionContainer, ActionContainer } from "survey-core";
9
9
  import { DragDropSurveyElements, DragDropChoices, Event, IElement, IPanel } from "survey-core";
10
- import { ISurveyElement, LocalizableString, ListModel, PopupModel, EventBase } from "survey-core";
11
- import { PanelModel, PanelModelBase, SurveyError, QuestionNonValue, SurveyTemplateRendererTemplateData } from "survey-core";
12
- import { ComputedUpdater, ResponsivityManager, QuestionCheckboxModel, ILocalizableString, ArrayChanges } from "survey-core";
13
- import { VerticalResponsivityManager, HashTable, QuestionMatrixDynamicModel, QuestionMatrixModel, QuestionMatrixDropdownModel } from "survey-core";
14
- import { QuestionPanelDynamicModel, QuestionCommentModel, QuestionRatingModel, MatrixDynamicRowModel } from "survey-core";
10
+ import { ISurveyElement, LocalizableString, DragOrClickHelper, PanelModel, QuestionDropdownModel } from "survey-core";
11
+ import { ListModel, PopupModel, EventBase, PanelModelBase, SurveyError } from "survey-core";
12
+ import { QuestionNonValue, SurveyTemplateRendererTemplateData, ComputedUpdater, ResponsivityManager, QuestionCheckboxModel } from "survey-core";
13
+ import { ILocalizableString, ArrayChanges, VerticalResponsivityManager, HashTable, QuestionMatrixDynamicModel } from "survey-core";
14
+ import { QuestionMatrixModel, QuestionMatrixDropdownModel, QuestionPanelDynamicModel, QuestionCommentModel, QuestionRatingModel } from "survey-core";
15
+ import { MatrixDynamicRowModel } from "survey-core";
15
16
  import { SurveyElementBase, ReactSurveyModel, ISurveyCreator, SurveyQuestionElementBase } from "survey-react-ui";
16
17
  import * as React from "react";
17
18
 
@@ -147,7 +148,7 @@ export interface IPropertyGridEditor {
147
148
  fit(prop: JsonObjectProperty, context?: string): boolean;
148
149
  isDefault?: any;
149
150
  getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
150
- showModalPropertyEditor(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): any;
151
+ showModalPropertyEditor?: any;
151
152
  onCreated?: any;
152
153
  onAfterRenderQuestion?: any;
153
154
  createPropertyEditorSetup?: any;
@@ -1228,19 +1229,6 @@ export declare class DesignTimeSurveyModel extends ReactSurveyModel {
1228
1229
  getRendererForString(element: Base, name: string): string;
1229
1230
  getRendererContextForString(element: Base, locStr: LocalizableString): any;
1230
1231
  }
1231
- export declare class DragOrClickHelper {
1232
- constructor(dragHandler: any);
1233
- pointerDownEvent: any;
1234
- currentTarget: any;
1235
- startX: any;
1236
- startY: any;
1237
- currentX: any;
1238
- currentY: any;
1239
- itemModel: any;
1240
- onPointerDown(pointerDownEvent: any, itemModel?: any): void;
1241
- onPointerUp: any;
1242
- tryToStartDrag: any;
1243
- }
1244
1232
  export declare class EditableObject {
1245
1233
  constructor(obj: Base);
1246
1234
  static isCopyObject(obj: any): boolean;
@@ -1334,6 +1322,19 @@ export declare class JsonEditorBaseModel extends Base {
1334
1322
  processErrors(text: string): void;
1335
1323
  get readOnly(): boolean;
1336
1324
  }
1325
+ export declare class LogicActionModelBase {
1326
+ constructor(panel: PanelModel, initialLogicAction: SurveyLogicAction, logicType: SurveyLogicType);
1327
+ initialLogicAction: SurveyLogicAction;
1328
+ logicType: SurveyLogicType;
1329
+ isTrigger: boolean;
1330
+ currentLogicAction: SurveyLogicAction;
1331
+ updateCurrentLogicAction(survey: SurveyModel): boolean;
1332
+ afterUpdateInitialLogicAction(): void;
1333
+ resetElements(): void;
1334
+ getSelectedElement(): string;
1335
+ updateInitialLogicAction(): void;
1336
+ setInitialElementValue(question: QuestionDropdownModel, action: SurveyLogicAction, selectedQuestion: string): void;
1337
+ }
1337
1338
  export declare class LogoImageComponent extends SurveyElementBase<ILogoImageComponentProps, any> {
1338
1339
  constructor(props: ILogoImageComponentProps);
1339
1340
  model: any;
@@ -1829,6 +1830,7 @@ export declare class StringEditorViewModelBase extends Base {
1829
1830
  focusedProgram: boolean;
1830
1831
  valueBeforeEdit: string;
1831
1832
  errorText: string;
1833
+ focused: boolean;
1832
1834
  setLocString(locString: LocalizableString): void;
1833
1835
  checkConstraints(event: any): void;
1834
1836
  blurEditor: any;
@@ -1992,6 +1994,7 @@ export declare class SurveyLogic extends Base implements ISurveyLogicItemOwner {
1992
1994
  protected hasErrorInUI(): boolean;
1993
1995
  protected getExpressionText(): string;
1994
1996
  protected getEditingActions(): Array<SurveyLogicAction>;
1997
+ protected onReadOnlyChanged(): void;
1995
1998
  addNew(): void;
1996
1999
  editItem(item: SurveyLogicItem): void;
1997
2000
  protected onStartEditing(): void;
@@ -2612,6 +2615,25 @@ export declare class ImageItemValueWrapperViewModel extends ItemValueWrapperView
2612
2615
  chooseFile(model: ImageItemValueWrapperViewModel): void;
2613
2616
  chooseNewFile(model: ImageItemValueWrapperViewModel): void;
2614
2617
  }
2618
+ export declare class LogicActionModel extends LogicActionModelBase {
2619
+ constructor(panel: PanelModel, logicAction: SurveyLogicAction, logicType: SurveyLogicType, selectorElementsHash: any);
2620
+ updateCurrentLogicAction(survey: SurveyModel): boolean;
2621
+ resetElements(): void;
2622
+ updatePanelElements(selectedElement: string, choices: any): void;
2623
+ getSelectedElement(): string;
2624
+ }
2625
+ export declare class LogicActionTriggerModel extends LogicActionModelBase {
2626
+ constructor(panel: PanelModel, logicAction: SurveyLogicAction, logicType: SurveyLogicType);
2627
+ panelObj: Base;
2628
+ isTrigger: boolean;
2629
+ afterUpdateInitialLogicAction(): void;
2630
+ updateCurrentLogicAction(survey: SurveyModel): boolean;
2631
+ updatePanel(propertyName: string, newValue: any, options: ISurveyCreatorOptions, survey: SurveyModel): void;
2632
+ setPanelObj(obj: Base): void;
2633
+ resetElements(): void;
2634
+ updatePanelElements(selectedElement: string, options?: ISurveyCreatorOptions): void;
2635
+ getSelectedElement(): string;
2636
+ }
2615
2637
  export declare class PageViewModel<T> extends ActionContainerViewModel<T> {
2616
2638
  constructor(creator: any, page: PageModel);
2617
2639
  isSelected: boolean;
@@ -2766,6 +2788,7 @@ export declare class SurveyLogicUI extends SurveyLogic {
2766
2788
  addNewUI(): void;
2767
2789
  toggleExpressionEditorIsFastEntry(): void;
2768
2790
  protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
2791
+ protected onReadOnlyChanged(): void;
2769
2792
  get expressionEditor(): ConditionEditor;
2770
2793
  get itemEditor(): LogicItemEditor;
2771
2794
  getExpressionEditor(item: SurveyLogicItem): ConditionEditor;
@@ -2849,13 +2872,14 @@ export declare class TabTestPlugin implements ICreatorPlugin {
2849
2872
  }
2850
2873
  export declare class TabTranslationPlugin implements ICreatorPlugin {
2851
2874
  constructor(creator: any);
2852
- showAllStringsAction: Action;
2875
+ filterStringsAction: Action;
2853
2876
  filterPageAction: Action;
2854
2877
  mergeLocaleWithDefaultAction: Action;
2855
2878
  importCsvAction: Action;
2856
2879
  exportCsvAction: Action;
2857
2880
  inputFileElement: any;
2858
2881
  pagePopupModel: any;
2882
+ stringsPopupModel: any;
2859
2883
  sidebarTab: SidebarTabModel;
2860
2884
  model: Translation;
2861
2885
  activate(): void;
@@ -2863,6 +2887,7 @@ export declare class TabTranslationPlugin implements ICreatorPlugin {
2863
2887
  deactivate(): boolean;
2864
2888
  get selectLanguageOptionsCaption(): any;
2865
2889
  get showAllStringsText(): string;
2890
+ get showUsedStringsOnlyText(): string;
2866
2891
  get showAllPagesText(): string;
2867
2892
  get exportToCSVText(): string;
2868
2893
  get importFromCSVText(): string;
@@ -3023,18 +3048,18 @@ export declare class LogicItemEditor extends PropertyEditorSetupValue {
3023
3048
  logicTypeChoices: any;
3024
3049
  editableItemValue: SurveyLogicItem;
3025
3050
  isBuildingPanels: boolean;
3026
- titleActionsCreator: PropertyGridTitleActionsCreator;
3027
3051
  initialSelectedElements: any;
3028
3052
  isModifiedValue: boolean;
3029
3053
  contextValue: Question;
3054
+ selectorElementsHash: any;
3030
3055
  get editableItem(): SurveyLogicItem;
3031
3056
  setEditableItem(val: SurveyLogicItem): void;
3032
3057
  get survey(): SurveyModel;
3033
3058
  get isModified(): boolean;
3034
3059
  get panel(): QuestionPanelDynamicModel;
3035
3060
  get panels(): any;
3036
- getPanelByAction(action: SurveyLogicAction): PanelModel;
3037
- getActionByPanel(panel: PanelModel): SurveyLogicAction;
3061
+ getActionModelByPanel(panel: PanelModel): LogicActionModelBase;
3062
+ setActionModelByPanel(panel: PanelModel, actionModel: LogicActionModelBase): void;
3038
3063
  get context(): Question;
3039
3064
  set context(val: Question);
3040
3065
  protected getSurveyJSON(): any;
@@ -3043,14 +3068,13 @@ export declare class LogicItemEditor extends PropertyEditorSetupValue {
3043
3068
  apply(): boolean;
3044
3069
  getEditingActions(): Array<SurveyLogicAction>;
3045
3070
  getLocString(name: string): string;
3046
- selectorElementsHash: any;
3047
3071
  }
3048
3072
  export declare class PropertyGridEditorBindings extends PropertyGridEditor {
3049
3073
  constructor();
3050
3074
  fit(prop: JsonObjectProperty): boolean;
3051
3075
  getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
3052
3076
  onMatrixCellCreated(obj: Base, options: any): void;
3053
- onMatrixCellValueChanged(obj: Base, options: any): void;
3077
+ onCreated(obj: Base, question: Question, prop: JsonObjectProperty): void;
3054
3078
  }
3055
3079
  export declare class PropertyGridEditorBoolean extends PropertyGridEditor {
3056
3080
  constructor();
@@ -3608,7 +3632,6 @@ export declare var propertyGridCss: {
3608
3632
  itemSvgIconId: string,
3609
3633
  labelChecked: string,
3610
3634
  itemControl: string,
3611
- itemDecorator: string,
3612
3635
  controlLabel: string,
3613
3636
  materialDecorator: string,
3614
3637
  other: string,
@@ -3642,7 +3665,6 @@ export declare var propertyGridCss: {
3642
3665
  svgIconId: string,
3643
3666
  label: string,
3644
3667
  disabledLabel: string,
3645
- itemDecorator: string,
3646
3668
  materialDecorator: string,
3647
3669
  },
3648
3670
  text: {