survey-creator-core 1.9.112 → 1.9.113

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.
Files changed (90) hide show
  1. package/fonts.fontless.css +1 -1
  2. package/fonts.fontless.min.css +1 -1
  3. package/i18n/arabic.js +1 -1
  4. package/i18n/arabic.min.js +1 -1
  5. package/i18n/bulgarian.js +1 -1
  6. package/i18n/bulgarian.min.js +1 -1
  7. package/i18n/croatian.js +1 -1
  8. package/i18n/croatian.min.js +1 -1
  9. package/i18n/czech.js +1 -1
  10. package/i18n/czech.min.js +1 -1
  11. package/i18n/danish.js +1 -1
  12. package/i18n/danish.min.js +1 -1
  13. package/i18n/dutch.js +1 -1
  14. package/i18n/dutch.min.js +1 -1
  15. package/i18n/english.js +5 -2
  16. package/i18n/english.js.map +1 -1
  17. package/i18n/english.min.js +2 -2
  18. package/i18n/finnish.js +1 -1
  19. package/i18n/finnish.min.js +1 -1
  20. package/i18n/french.js +1 -1
  21. package/i18n/french.min.js +1 -1
  22. package/i18n/german.js +1 -1
  23. package/i18n/german.min.js +1 -1
  24. package/i18n/hungarian.js +1 -1
  25. package/i18n/hungarian.min.js +1 -1
  26. package/i18n/index.js +1 -1
  27. package/i18n/index.min.js +1 -1
  28. package/i18n/indonesian.js +1 -1
  29. package/i18n/indonesian.min.js +1 -1
  30. package/i18n/italian.js +1 -1
  31. package/i18n/italian.min.js +1 -1
  32. package/i18n/japanese.js +1 -1
  33. package/i18n/japanese.min.js +1 -1
  34. package/i18n/korean.js +1 -1
  35. package/i18n/korean.min.js +1 -1
  36. package/i18n/malay.js +1 -1
  37. package/i18n/malay.min.js +1 -1
  38. package/i18n/mongolian.js +1 -1
  39. package/i18n/mongolian.min.js +1 -1
  40. package/i18n/norwegian.js +1 -1
  41. package/i18n/norwegian.min.js +1 -1
  42. package/i18n/persian.js +1 -1
  43. package/i18n/persian.min.js +1 -1
  44. package/i18n/polish.js +1 -1
  45. package/i18n/polish.min.js +1 -1
  46. package/i18n/portuguese.js +1 -1
  47. package/i18n/portuguese.min.js +1 -1
  48. package/i18n/russian.js +1 -1
  49. package/i18n/russian.min.js +1 -1
  50. package/i18n/simplified-chinese.js +1 -1
  51. package/i18n/simplified-chinese.min.js +1 -1
  52. package/i18n/slovak.js +1 -1
  53. package/i18n/slovak.min.js +1 -1
  54. package/i18n/spanish.js +1 -1
  55. package/i18n/spanish.min.js +1 -1
  56. package/i18n/swedish.js +1 -1
  57. package/i18n/swedish.min.js +1 -1
  58. package/i18n/tajik.js +1 -1
  59. package/i18n/tajik.min.js +1 -1
  60. package/i18n/traditional-chinese.js +1 -1
  61. package/i18n/traditional-chinese.min.js +1 -1
  62. package/i18n/turkish.js +1 -1
  63. package/i18n/turkish.min.js +1 -1
  64. package/package.json +2 -2
  65. package/survey-creator-core.css +6 -9
  66. package/survey-creator-core.fontless.css +5 -8
  67. package/survey-creator-core.fontless.css.map +1 -1
  68. package/survey-creator-core.fontless.min.css +4 -4
  69. package/survey-creator-core.i18n.js +1 -1
  70. package/survey-creator-core.i18n.min.js +1 -1
  71. package/survey-creator-core.js +618 -533
  72. package/survey-creator-core.js.map +1 -1
  73. package/survey-creator-core.min.css +5 -5
  74. package/survey-creator-core.min.js +45 -45
  75. package/typings/components/tabs/json-editor-plugin.d.ts +12 -2
  76. package/typings/components/tabs/test.d.ts +2 -0
  77. package/typings/components/tabs/theme-builder.d.ts +22 -2
  78. package/typings/components/tabs/theme-custom-questions/element-settings.d.ts +4 -4
  79. package/typings/components/tabs/theme-custom-questions/font-settings.d.ts +4 -4
  80. package/typings/components/tabs/theme-plugin.d.ts +6 -3
  81. package/typings/creator-base.d.ts +167 -137
  82. package/typings/creator-options.d.ts +0 -6
  83. package/typings/creator-settings.d.ts +3 -0
  84. package/typings/custom-questions/question-file.d.ts +3 -0
  85. package/typings/editorLocalization.d.ts +5 -1
  86. package/typings/localization/english.d.ts +4 -1
  87. package/typings/plugins/undo-redo/undo-redo-controller.d.ts +0 -10
  88. package/typings/property-grid-theme/property-grid.d.ts +1 -0
  89. package/typings/survey-helper.d.ts +6 -6
  90. package/typings/utils/utils.d.ts +1 -0
@@ -148,6 +148,7 @@ export declare var settings: {
148
148
  };
149
149
  jsonEditor: {
150
150
  indentation: number;
151
+ exportFileName: string;
151
152
  };
152
153
  };
153
154
  export interface ICollectionItemAllowOperations {
@@ -200,6 +201,7 @@ export interface ISurveyCreatorOptions {
200
201
  uploadFiles(files: File[], question: Question, uploadingCallback: (status: string, data: any) => any): void;
201
202
  getHasMachineTranslation(): boolean;
202
203
  doMachineTranslation(fromLocale: string, toLocale: string, strings: Array<string>, callback: (translated: Array<string>) => void): void;
204
+ chooseFiles(input: HTMLInputElement, onFilesChosen: (files: File[]) => void): void;
203
205
  }
204
206
  export declare class EmptySurveyCreatorOptions implements ISurveyCreatorOptions {
205
207
  rootElement: HTMLElement;
@@ -247,4 +249,5 @@ export declare class EmptySurveyCreatorOptions implements ISurveyCreatorOptions
247
249
  uploadFiles(files: File[], question: Question, uploadingCallback: (status: string, data: any) => any): void;
248
250
  getHasMachineTranslation(): boolean;
249
251
  doMachineTranslation(fromLocale: string, toLocale: string, strings: Array<string>, callback: (translated: Array<string>) => void): void;
252
+ chooseFiles(input: HTMLInputElement, onFilesChosen: (files: File[]) => void): void;
250
253
  }
@@ -19,4 +19,7 @@ export declare class QuestionFileEditorModel extends QuestionFileModel {
19
19
  getIsClearButtonDisabled(): boolean;
20
20
  getChooseButtonCss(): string;
21
21
  onKeyDown: (event: KeyboardEvent) => void;
22
+ onFileInputChange: (event: Event) => boolean;
23
+ onChooseFilesCallback: (input: HTMLInputElement, onFilesChosen: (files: File[]) => void) => void;
24
+ chooseFiles(event: Event): boolean;
22
25
  }
@@ -25,6 +25,7 @@ export declare class EditorLocalization {
25
25
  getLocale(locale?: string): any;
26
26
  private getValueInternal;
27
27
  getLocales(): Array<string>;
28
+ private stringsDiff;
28
29
  }
29
30
  export declare var editorLocalization: EditorLocalization;
30
31
  export declare function getLocString(strName: string, locale?: string): string;
@@ -168,6 +169,9 @@ export declare var defaultStrings: {
168
169
  translationPlaceHolder: string;
169
170
  themeExportButton: string;
170
171
  themeImportButton: string;
172
+ surveyJsonExportButton: string;
173
+ surveyJsonImportButton: string;
174
+ surveyJsonCopyButton: string;
171
175
  themeResetButton: string;
172
176
  bold: string;
173
177
  italic: string;
@@ -1098,7 +1102,7 @@ export declare var defaultStrings: {
1098
1102
  headerViewAdvanced: string;
1099
1103
  coverInheritWidthFrom: string;
1100
1104
  coverInheritWidthFromSurvey: string;
1101
- coverInheritWidthFromPage: string;
1105
+ coverInheritWidthFromContainer: string;
1102
1106
  coverTextAreaWidth: string;
1103
1107
  coverBackgroundColorSwitch: string;
1104
1108
  coverBackgroundColorNone: string;
@@ -138,6 +138,9 @@ export declare var enStrings: {
138
138
  translationPlaceHolder: string;
139
139
  themeExportButton: string;
140
140
  themeImportButton: string;
141
+ surveyJsonExportButton: string;
142
+ surveyJsonImportButton: string;
143
+ surveyJsonCopyButton: string;
141
144
  themeResetButton: string;
142
145
  bold: string;
143
146
  italic: string;
@@ -1068,7 +1071,7 @@ export declare var enStrings: {
1068
1071
  headerViewAdvanced: string;
1069
1072
  coverInheritWidthFrom: string;
1070
1073
  coverInheritWidthFromSurvey: string;
1071
- coverInheritWidthFromPage: string;
1074
+ coverInheritWidthFromContainer: string;
1072
1075
  coverTextAreaWidth: string;
1073
1076
  coverBackgroundColorSwitch: string;
1074
1077
  coverBackgroundColorNone: string;
@@ -28,14 +28,4 @@ export declare class UndoRedoController extends Base {
28
28
  * options.canRedo a boolean value. It is true by default. Set it false to hide prevent redo operation.
29
29
  */
30
30
  onBeforeRedo: CreatorEvent;
31
- /**
32
- * The event is called after undo happens.
33
- * options.state is an undo/redo item.
34
- */
35
- onAfterUndo: CreatorEvent;
36
- /**
37
- * The event is called after redo happens.
38
- * options.state is an undo/redo item.
39
- */
40
- onAfterRedo: CreatorEvent;
41
31
  }
@@ -34,6 +34,7 @@ export declare var propertyGridCss: {
34
34
  requiredText: string;
35
35
  };
36
36
  paneldynamic: {
37
+ mainRoot: string;
37
38
  root: string;
38
39
  navigation: string;
39
40
  title: string;
@@ -1,12 +1,12 @@
1
1
  import { Base, ISurveyElement, ItemValue, JsonObjectProperty, SurveyElement, SurveyModel } from "survey-core";
2
2
  import { ISurveyCreatorOptions } from "./creator-settings";
3
3
  export declare enum ObjType {
4
- Unknown = 0,
5
- Survey = 1,
6
- Page = 2,
7
- Panel = 3,
8
- Question = 4,
9
- Column = 5
4
+ Unknown = "unknown",
5
+ Survey = "survey",
6
+ Page = "page",
7
+ Panel = "panel",
8
+ Question = "question",
9
+ Column = "column"
10
10
  }
11
11
  export declare class SurveyHelper {
12
12
  static getNewElementName(el: ISurveyElement): string;
@@ -43,3 +43,4 @@ export declare class ColorCalculator {
43
43
  initialize(baseColor: string, lightColor: string, darkColor: string): void;
44
44
  calculateColors(newColor: string): void;
45
45
  }
46
+ export declare function saveToFileHandler(fileName: string, blob: Blob): void;