survey-creator-react 1.9.8-beta.1 → 1.9.12-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.12-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.9",
35
+ "survey-react-ui": "^1.9.9",
36
+ "survey-creator-core": "^1.9.9-beta.1",
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.12-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();
@@ -3406,78 +3430,7 @@ export declare var editorLocalization: {
3406
3430
  getLocales: any,
3407
3431
  };
3408
3432
  export declare var defaultStrings: any;
3409
- export declare var settings: {
3410
- translation: {
3411
- sortByName: boolean,
3412
- exportPrefix: string,
3413
- /*
3414
- * The maximum number of locales that user can select at once for translation
3415
- */
3416
- maximumSelectedLocales: number,
3417
- },
3418
- operators: {
3419
- empty: any,
3420
- notempty: any,
3421
- equal: any,
3422
- notequal: any,
3423
- contains: any,
3424
- notcontains: any,
3425
- anyof: any,
3426
- allof: any,
3427
- greater: any,
3428
- less: any,
3429
- greaterorequal: any,
3430
- lessorequal: any,
3431
- },
3432
- defaultNewSurveyJSON: any,
3433
- logic: {
3434
- visibleActions: any,
3435
- logicItemTitleMaxChars: number,
3436
- },
3437
- /*
3438
- * Determines which types of questions the conversion will be available for.
3439
- */
3440
- questionConvertMode: QuestionConvertMode,
3441
- propertyGrid: {
3442
- useButtonGroup: boolean,
3443
- maxCharsInButtonGroup: number,
3444
- showNavigationButtons: boolean,
3445
- maximumColumnsCount: number,
3446
- maximumChoicesCount: number,
3447
- maximumRowsCount: number,
3448
- maximumRateValues: number,
3449
- generalTabName: string,
3450
- },
3451
- /*
3452
- * Notification settings
3453
- */
3454
- notifications: {
3455
- lifetime: number,
3456
- },
3457
- /*
3458
- * Auto save parameters
3459
- */
3460
- autoSave: {
3461
- delay: number,
3462
- },
3463
- /*
3464
- * Drag Drop Settings
3465
- */
3466
- dragDrop: {
3467
- restrictDragQuestionBetweenPages: boolean,
3468
- },
3469
- /*
3470
- * Creator layout settings
3471
- */
3472
- layout: {
3473
- showTabs: boolean,
3474
- showToolbar: boolean,
3475
- allowCollapseSidebar: boolean,
3476
- },
3477
- jsonEditor: {
3478
- indentation: number,
3479
- },
3480
- };
3433
+ export declare var settings: any;
3481
3434
  export declare var opositeValues: {
3482
3435
  true: string,
3483
3436
  True: string,
@@ -3608,7 +3561,6 @@ export declare var propertyGridCss: {
3608
3561
  itemSvgIconId: string,
3609
3562
  labelChecked: string,
3610
3563
  itemControl: string,
3611
- itemDecorator: string,
3612
3564
  controlLabel: string,
3613
3565
  materialDecorator: string,
3614
3566
  other: string,
@@ -3642,7 +3594,6 @@ export declare var propertyGridCss: {
3642
3594
  svgIconId: string,
3643
3595
  label: string,
3644
3596
  disabledLabel: string,
3645
- itemDecorator: string,
3646
3597
  materialDecorator: string,
3647
3598
  },
3648
3599
  text: {
@@ -3964,25 +3915,7 @@ export declare var simulatorDevices: {
3964
3915
  cssClass: string,
3965
3916
  },
3966
3917
  };
3967
- export declare var PropertyGridEditorCollection: {
3968
- editors: any,
3969
- fitHash: any,
3970
- clearHash: any,
3971
- register: any,
3972
- getEditor: any,
3973
- isEditorFit: any,
3974
- getJSON: any,
3975
- onCreated: any,
3976
- onAfterRenderQuestion: any,
3977
- onMatrixCellCreated: any,
3978
- onMatrixCellValueChanged: any,
3979
- onMatrixAllowRemoveRow: any,
3980
- onGetMatrixRowAction: any,
3981
- onUpdateQuestionCssClasses: any,
3982
- onGetQuestionTitleActions: any,
3983
- onValueChanged: any,
3984
- onMasterValueChanged: any,
3985
- };
3918
+ export declare var PropertyGridEditorCollection: any;
3986
3919
  export declare var translationCss: {
3987
3920
  root: string,
3988
3921
  container: string,
@@ -4597,6 +4530,7 @@ export declare var logicCss: {
4597
4530
  },
4598
4531
  };
4599
4532
  export declare var initialSettingsAllowShowEmptyTitleInDesignMode: boolean;
4600
- export declare var svgBundle: string;
4533
+ export declare var svgBundle: any;
4601
4534
  export declare var Version: string;
4602
- export declare var editableStringRendererName: any;
4535
+ export declare var editableStringRendererName: any;
4536
+ export declare var localization: any;