survey-creator-core 1.9.101 → 1.9.103

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.
@@ -25,4 +25,5 @@ export declare class SurveyElementAdornerBase<T extends SurveyElement = SurveyEl
25
25
  get showAddQuestionButton(): boolean;
26
26
  protected setShowAddQuestionButton(val: boolean): void;
27
27
  protected duplicate(): void;
28
+ protected delete(): void;
28
29
  }
@@ -27,6 +27,7 @@ export declare class PageAdorner extends SurveyElementAdornerBase<PageModel> {
27
27
  hover(event: MouseEvent, element: HTMLElement | any): void;
28
28
  hoverStopper(event: MouseEvent, element: HTMLElement | any): void;
29
29
  protected duplicate(): void;
30
+ protected delete(): void;
30
31
  get addNewQuestionText(): string;
31
32
  private _footerActionsBar;
32
33
  get footerActionsBar(): ActionContainer;
@@ -1 +1 @@
1
- export declare const json: any;
1
+ export declare const json: any;
@@ -1,13 +1,13 @@
1
- import { Base, SurveyModel } from "survey-core";
2
- import { ICreatorPlugin, CreatorBase } from "../../creator-base";
3
- export declare class EmbedModel extends Base {
4
- survey: SurveyModel;
5
- constructor(creator: CreatorBase);
6
- }
7
- export declare class TabEmbedPlugin implements ICreatorPlugin {
8
- private creator;
9
- model: EmbedModel;
10
- constructor(creator: CreatorBase);
11
- activate(): void;
12
- deactivate(): boolean;
13
- }
1
+ import { Base, SurveyModel } from "survey-core";
2
+ import { ICreatorPlugin, CreatorBase } from "../../creator-base";
3
+ export declare class EmbedModel extends Base {
4
+ survey: SurveyModel;
5
+ constructor(creator: CreatorBase);
6
+ }
7
+ export declare class TabEmbedPlugin implements ICreatorPlugin {
8
+ private creator;
9
+ model: EmbedModel;
10
+ constructor(creator: CreatorBase);
11
+ activate(): void;
12
+ deactivate(): boolean;
13
+ }
@@ -96,12 +96,6 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
96
96
  * Default value: `false`
97
97
  */
98
98
  showThemeTab: boolean;
99
- /**
100
- * Specifies whether to display the Embed Survey tab.
101
- *
102
- * Default value: `false`
103
- */
104
- showEmbeddedSurveyTab: boolean;
105
99
  /**
106
100
  * Specifies whether to display the Translation tab.
107
101
  *
@@ -135,13 +129,6 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
135
129
  */
136
130
  get showSurveyTitle(): boolean;
137
131
  set showSurveyTitle(val: boolean);
138
- /**
139
- * Removes the Free Trial bar.
140
- *
141
- * Default value: `false`
142
- *
143
- * > You can enable this property only if you have a Survey Creator commercial license. It is illegal to enable this property without a license.
144
- */
145
132
  get haveCommercialLicense(): boolean;
146
133
  set haveCommercialLicense(val: boolean);
147
134
  get licenseText(): string;
@@ -513,6 +500,9 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
513
500
  * A Survey Creator instance that raised the event.
514
501
  * - `options.questionName`: `String`\
515
502
  * The name of a question for which conditions are displayed.
503
+ * - `options.questionName`: `String`\
504
+ * The type of a question for which conditions are displayed.
505
+ * The name of a question for which conditions are displayed.
516
506
  * - `options.operator`: `"empty"` | `"notempty"` | `"equal"` | `"notequal"` | `"contains"` | `"notcontains"` | `"anyof"` | `"allof"` | `"greater"` | `"less"` | `"greaterorequal"` | `"lessorequal"`\
517
507
  * A condition opeator for which the event is raised.
518
508
  * - `options.show`: `Boolean`\
@@ -1156,7 +1146,6 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
1156
1146
  private isObjThisType;
1157
1147
  private addNewElementReason;
1158
1148
  onDragDropItemStart(): void;
1159
- onDragDropItemEnd(): void;
1160
1149
  private doOnQuestionAdded;
1161
1150
  private doOnPanelAdded;
1162
1151
  private doOnPageAdded;
@@ -1379,7 +1368,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
1379
1368
  onGetElementEditorTitleCallback(obj: Base, title: string): string;
1380
1369
  onConditionQuestionsGetListCallback(propertyName: string, obj: Base, editor: any, list: any[]): string;
1381
1370
  onConditionGetTitleCallback(expression: string, title: string): string;
1382
- isConditionOperatorEnabled(questionName: string, operator: string, isEnabled: boolean): boolean;
1371
+ isConditionOperatorEnabled(questionName: string, question: Question, operator: string, isEnabled: boolean): boolean;
1383
1372
  onLogicGetTitleCallback(expression: string, expressionText: string, text: string, logicItem: any): string;
1384
1373
  getProcessedTranslationItemText(locale: string, locString: ILocalizableString, newText: string, obj: any): string;
1385
1374
  getTranslationExportedText(obj: Base, name: string, locString: ILocalizableString, locale: string, text: string): string;
@@ -43,13 +43,6 @@ export interface ICreatorOptions {
43
43
  * Default value: `false`
44
44
  */
45
45
  showTranslationTab?: boolean;
46
- /**
47
- * Removes the Free Trial bar.
48
- *
49
- * Default value: `false`
50
- *
51
- * > You can enable this property only if you have a Survey Creator commercial license. It is illegal to enable this property without a license.
52
- */
53
46
  haveCommercialLicense?: boolean;
54
47
  /**
55
48
  * Specifies whether to call the [`saveSurveyFunc`](https://surveyjs.io/Documentation/Survey-Creator?id=surveycreator#saveSurveyFunc) and [`saveThemeFunc`](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#saveThemeFunc) functions each time survey or theme settings are changed.
@@ -188,7 +188,7 @@ export interface ISurveyCreatorOptions {
188
188
  createSurvey(json: any, reason: string, surveyType?: new (json: any) => SurveyModel): any;
189
189
  onConditionQuestionsGetListCallback(propertyName: string, obj: Base, editor: any, list: any[]): string;
190
190
  onConditionGetTitleCallback(expression: string, title: string): string;
191
- isConditionOperatorEnabled(questionName: string, operator: string, isEnabled: boolean): boolean;
191
+ isConditionOperatorEnabled(questionName: string, question: Question, operator: string, isEnabled: boolean): boolean;
192
192
  onLogicGetTitleCallback(expression: string, displayExpression: string, text: string, logicItem: any): string;
193
193
  getProcessedTranslationItemText(locale: string, locString: ILocalizableString, newText: string, obj: any): string;
194
194
  getTranslationExportedText(obj: Base, name: string, locString: ILocalizableString, locale: string, text: string): string;
@@ -230,7 +230,7 @@ export declare class EmptySurveyCreatorOptions implements ISurveyCreatorOptions
230
230
  createSurvey(json: any, reason: string, surveyType?: new (json: any) => SurveyModel): SurveyModel;
231
231
  onConditionQuestionsGetListCallback(propertyName: string, obj: Base, editor: any, list: any[]): string;
232
232
  onConditionGetTitleCallback(expression: string, title: string): string;
233
- isConditionOperatorEnabled(questionName: string, operator: string, isEnabled: boolean): boolean;
233
+ isConditionOperatorEnabled(questionName: string, question: Question, operator: string, isEnabled: boolean): boolean;
234
234
  onLogicGetTitleCallback(expression: string, displayExpression: string, text: string, logicItem: any): string;
235
235
  getTranslationExportedText(obj: Base, name: string, locString: ILocalizableString, locale: string, text: string): string;
236
236
  uploadFiles(files: File[], question: Question, uploadingCallback: (status: string, data: any) => any): void;
@@ -524,7 +524,6 @@ export declare var defaultStrings: {
524
524
  hideColumnsIfEmpty: string;
525
525
  rateValues: string;
526
526
  rateCount: string;
527
- rateDisplayMode: string;
528
527
  autoGenerate: string;
529
528
  hideIfChoicesEmpty: string;
530
529
  hideNumber: string;
@@ -659,6 +658,7 @@ export declare var defaultStrings: {
659
658
  columnsVisibleIf: string;
660
659
  rowsVisibleIf: string;
661
660
  otherPlaceholder: string;
661
+ rateType: string;
662
662
  };
663
663
  pv: {
664
664
  true: string;
@@ -974,6 +974,20 @@ export declare var defaultStrings: {
974
974
  showCaption: string;
975
975
  iconName: string;
976
976
  iconSize: string;
977
+ precision: string;
978
+ matrixDragHandleArea: string;
979
+ backgroundImage: string;
980
+ backgroundImageFit: string;
981
+ backgroundImageAttachment: string;
982
+ backgroundOpacity: string;
983
+ selectToRankEnabled: string;
984
+ selectToRankAreasLayout: string;
985
+ allowCameraAccess: string;
986
+ scaleColorMode: string;
987
+ rateColorMode: string;
988
+ templateTabTitle: string;
989
+ templateVisibleIf: string;
990
+ copyDisplayValue: string;
977
991
  };
978
992
  theme: {
979
993
  "--background": string;
@@ -6,7 +6,6 @@ export * from "../creator-settings";
6
6
  export { ICreatorOptions } from "../creator-options";
7
7
  export * from "../creator-base";
8
8
  export * from "../creator-responsivity-manager";
9
- export * from "../components/tabs/embed";
10
9
  export * from "../components/tabs/json-editor-ace";
11
10
  export * from "../components/tabs/json-editor-plugin";
12
11
  export * from "../components/tabs/json-editor-textarea";
@@ -495,7 +495,6 @@ export declare var enStrings: {
495
495
  hideColumnsIfEmpty: string;
496
496
  rateValues: string;
497
497
  rateCount: string;
498
- rateDisplayMode: string;
499
498
  autoGenerate: string;
500
499
  hideIfChoicesEmpty: string;
501
500
  hideNumber: string;
@@ -630,6 +629,7 @@ export declare var enStrings: {
630
629
  columnsVisibleIf: string;
631
630
  rowsVisibleIf: string;
632
631
  otherPlaceholder: string;
632
+ rateType: string;
633
633
  };
634
634
  pv: {
635
635
  true: string;
@@ -945,6 +945,20 @@ export declare var enStrings: {
945
945
  showCaption: string;
946
946
  iconName: string;
947
947
  iconSize: string;
948
+ precision: string;
949
+ matrixDragHandleArea: string;
950
+ backgroundImage: string;
951
+ backgroundImageFit: string;
952
+ backgroundImageAttachment: string;
953
+ backgroundOpacity: string;
954
+ selectToRankEnabled: string;
955
+ selectToRankAreasLayout: string;
956
+ allowCameraAccess: string;
957
+ scaleColorMode: string;
958
+ rateColorMode: string;
959
+ templateTabTitle: string;
960
+ templateVisibleIf: string;
961
+ copyDisplayValue: string;
948
962
  };
949
963
  theme: {
950
964
  "--background": string;
@@ -243,8 +243,13 @@ export declare class PropertyGridEditorQuestion extends PropertyGridEditor {
243
243
  }
244
244
  export declare class PropertyGridEditorQuestionSelectBase extends PropertyGridEditorQuestion {
245
245
  fit(prop: JsonObjectProperty): boolean;
246
+ protected isQuestionFit(question: Question): boolean;
246
247
  protected getQuestions(survey: SurveyModel, obj: Base): Array<Question>;
247
248
  }
249
+ export declare class PropertyGridEditorQuestionCarryForward extends PropertyGridEditorQuestionSelectBase {
250
+ fit(prop: JsonObjectProperty): boolean;
251
+ protected isQuestionFit(question: Question): boolean;
252
+ }
248
253
  export declare class PropertyGridEditorQuestionValue extends PropertyGridEditorQuestion {
249
254
  fit(prop: JsonObjectProperty): boolean;
250
255
  protected getItemValue(question: Question): any;
@@ -0,0 +1,12 @@
1
+ import { IElement, IPanel } from "survey-core";
2
+ import { DragDropSurveyElements } from "./survey-elements";
3
+ export declare class DragDropSurveyElementsInCreator extends DragDropSurveyElements {
4
+ protected duringDragOver(dropTargetNode?: HTMLElement, event?: PointerEvent): void;
5
+ protected removeDragOverMarker(dropTarget: {
6
+ dragTypeOverMe: boolean;
7
+ }): void;
8
+ protected afterDragOver(dropTargetNode?: HTMLElement, event?: PointerEvent): void;
9
+ private getElementIndexInPanel;
10
+ moveElementInPanel(panel: IPanel, src: IElement, target: IElement, targetIndex: number): void;
11
+ protected doDrop: () => any;
12
+ }