survey-creator-core 1.9.55 → 1.9.57

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.55
2
+ * Type definition for Survey Creatorlibrary. Platform independent (core) v1.9.57
3
3
  * Copyright (c) 2015-2022 Devsoft Baltic OÜ - https://surveyjs.io/
4
4
  * License: https://surveyjs.io/Licenses#SurveyCreator
5
5
  */
@@ -283,6 +283,14 @@ export interface ICreatorOptions {
283
283
  */
284
284
  allowChangeThemeInPreview?: boolean;
285
285
  /*
286
+ * Specifies the orientation of the selected device in the Preview tab.
287
+ *
288
+ * Possible values:
289
+ * - `"landscape"` (default)
290
+ * - `"portrait"`
291
+ */
292
+ previewOrientation?: "landscape" | "portrait";
293
+ /*
286
294
  * Limits question and panels types available in the Toolbox and Add Question menu.
287
295
  *
288
296
  * Refer to the [Limit Available Question and Panel Types](https://surveyjs.io/Documentation/Survey-Creator?id=toolbox#limit-available-question-and-panel-types) help topic for more information.
@@ -581,6 +589,14 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
581
589
  showSearch: boolean;
582
590
  generateValidJSON: boolean;
583
591
  currentAddQuestionType: string;
592
+ /*
593
+ * Specifies the orientation of the selected device in the Preview tab.
594
+ *
595
+ * Possible values:
596
+ * - `"landscape"` (default)
597
+ * - `"portrait"`
598
+ */
599
+ previewOrientation: "landscape" | "portrait";
584
600
  isRTLValue: boolean;
585
601
  alwaySaveTextInPropertyEditorsValue: boolean;
586
602
  toolbarValue: any;
@@ -1498,7 +1514,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
1498
1514
  /*
1499
1515
  * Upload the files on a server
1500
1516
  */
1501
- uploadFiles(files: any, uploadingCallback: (status: string, data: any) => any): void;
1517
+ uploadFiles(files: any, question: Question, uploadingCallback: (status: string, data: any) => any): void;
1502
1518
  initKeyboardShortcuts(rootNode: any): void;
1503
1519
  removeKeyboardShortcuts(rootNode: any): void;
1504
1520
  protected onKeyDownHandler: (event: any) => void;
@@ -2544,6 +2560,8 @@ export declare class SurveyResultsModel extends Base {
2544
2560
  resultData: any;
2545
2561
  getLocString(name: string): string;
2546
2562
  get surveyResultsText(): string;
2563
+ get surveyResultsTableText(): string;
2564
+ get surveyResultsJsonText(): string;
2547
2565
  get resultsTitle(): string;
2548
2566
  get resultsName(): string;
2549
2567
  get resultsValue(): string;
@@ -2996,6 +3014,9 @@ export declare class SurveyConditionEditorItem extends ConditionEditorItem {
2996
3014
  get isReady(): boolean;
2997
3015
  toExpression(): string;
2998
3016
  }
3017
+ export declare class SurveyCreatorModel extends CreatorBase {
3018
+ constructor(options: ICreatorOptions, options2?: ICreatorOptions);
3019
+ }
2999
3020
  export declare class SurveyLogicUI extends SurveyLogic {
3000
3021
  constructor(survey: SurveyModel, options?: ISurveyCreatorOptions);
3001
3022
  survey: SurveyModel;
@@ -3014,6 +3035,8 @@ export declare class SurveyLogicUI extends SurveyLogic {
3014
3035
  dispose(): void;
3015
3036
  addNewUI(): void;
3016
3037
  toggleExpressionEditorIsFastEntry(): void;
3038
+ updateEditableItemIsModifiedState(): void;
3039
+ haveUnsavedRules(): boolean;
3017
3040
  protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
3018
3041
  protected onReadOnlyChanged(): void;
3019
3042
  get expressionEditor(): ConditionEditor;
@@ -3033,7 +3056,7 @@ export declare class SurveyLogicUI extends SurveyLogic {
3033
3056
  protected getEditingActions(): Array<SurveyLogicAction>;
3034
3057
  protected getLogicItemSurveyJSON(): any;
3035
3058
  get addNewText(): string;
3036
- get emptyTabPlaceHolder(): string;
3059
+ get emptyTabPlaceholder(): string;
3037
3060
  }
3038
3061
  export declare class TabDesignerPlugin implements ICreatorPlugin {
3039
3062
  constructor(creator: CreatorBase);
@@ -3279,7 +3302,6 @@ export declare class FastEntryEditorBase extends PropertyEditorSetupValue {
3279
3302
  protected convertTextToItemValues(text: string): Array<ItemValue>;
3280
3303
  get comment(): QuestionCommentModel;
3281
3304
  protected getChoicesCount(): number;
3282
- protected getPlaceHolder(): string;
3283
3305
  protected get isValueUnique(): boolean;
3284
3306
  protected getFirstUniqueValue(): boolean;
3285
3307
  setComment(): void;
@@ -3664,6 +3686,7 @@ export declare function copyCssClasses(dest: any, source: any): void;
3664
3686
  export declare function assignDefaultV2Classes(destination: any, questionType: string): void;
3665
3687
  export declare function wrapTextByCurlyBraces(text: string): string;
3666
3688
  export declare function capitalize(str: string): string;
3689
+ export declare function notShortCircuitAnd(args: any): boolean;
3667
3690
  export declare function getLocString(strName: string, locale?: string): string;
3668
3691
  export declare function updateLogicExpression(expression: string, varName: string, oldValue: any, newValue: any): string;
3669
3692
  export declare function getLogicString(name: string): string;