survey-creator-core 1.9.135 → 1.9.136

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 (79) 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 +1 -1
  16. package/i18n/english.min.js +1 -1
  17. package/i18n/finnish.js +1 -1
  18. package/i18n/finnish.min.js +1 -1
  19. package/i18n/french.js +1 -1
  20. package/i18n/french.min.js +1 -1
  21. package/i18n/german.js +1 -1
  22. package/i18n/german.min.js +1 -1
  23. package/i18n/hebrew.js +1 -1
  24. package/i18n/hebrew.min.js +1 -1
  25. package/i18n/hungarian.js +1 -1
  26. package/i18n/hungarian.min.js +1 -1
  27. package/i18n/index.js +1 -1
  28. package/i18n/index.min.js +1 -1
  29. package/i18n/indonesian.js +1 -1
  30. package/i18n/indonesian.min.js +1 -1
  31. package/i18n/italian.js +1 -1
  32. package/i18n/italian.min.js +1 -1
  33. package/i18n/japanese.js +1 -1
  34. package/i18n/japanese.min.js +1 -1
  35. package/i18n/korean.js +1 -1
  36. package/i18n/korean.min.js +1 -1
  37. package/i18n/malay.js +1 -1
  38. package/i18n/malay.min.js +1 -1
  39. package/i18n/mongolian.js +1 -1
  40. package/i18n/mongolian.min.js +1 -1
  41. package/i18n/norwegian.js +1 -1
  42. package/i18n/norwegian.min.js +1 -1
  43. package/i18n/persian.js +1 -1
  44. package/i18n/persian.min.js +1 -1
  45. package/i18n/polish.js +1 -1
  46. package/i18n/polish.min.js +1 -1
  47. package/i18n/portuguese.js +1 -1
  48. package/i18n/portuguese.min.js +1 -1
  49. package/i18n/russian.js +1 -1
  50. package/i18n/russian.min.js +1 -1
  51. package/i18n/simplified-chinese.js +1 -1
  52. package/i18n/simplified-chinese.min.js +1 -1
  53. package/i18n/slovak.js +1 -1
  54. package/i18n/slovak.min.js +1 -1
  55. package/i18n/spanish.js +1 -1
  56. package/i18n/spanish.min.js +1 -1
  57. package/i18n/swedish.js +1 -1
  58. package/i18n/swedish.min.js +1 -1
  59. package/i18n/tajik.js +1 -1
  60. package/i18n/tajik.min.js +1 -1
  61. package/i18n/traditional-chinese.js +1 -1
  62. package/i18n/traditional-chinese.min.js +1 -1
  63. package/i18n/turkish.js +1 -1
  64. package/i18n/turkish.min.js +1 -1
  65. package/package.json +2 -2
  66. package/survey-creator-core.css +5 -2
  67. package/survey-creator-core.fontless.css +4 -1
  68. package/survey-creator-core.fontless.css.map +1 -1
  69. package/survey-creator-core.fontless.min.css +2 -2
  70. package/survey-creator-core.i18n.js +1 -1
  71. package/survey-creator-core.i18n.min.js +1 -1
  72. package/survey-creator-core.js +51 -22
  73. package/survey-creator-core.js.map +1 -1
  74. package/survey-creator-core.min.css +3 -3
  75. package/survey-creator-core.min.js +5 -5
  76. package/typings/components/question-rating.d.ts +1 -0
  77. package/typings/creator-base.d.ts +7 -1
  78. package/typings/creator-events-api.d.ts +15 -2
  79. package/typings/creator-settings.d.ts +6 -1
@@ -18,6 +18,7 @@ export declare class QuestionRatingAdornerViewModel extends Base {
18
18
  get allowRemove(): boolean;
19
19
  get enableRemove(): boolean;
20
20
  get removeClassNames(): string;
21
+ get hasTopLabel(): boolean;
21
22
  get controlsClassNames(): string;
22
23
  get addTooltip(): string;
23
24
  get removeTooltip(): string;
@@ -134,6 +134,7 @@ export declare class SurveyCreatorModel extends Base implements ISurveyCreatorOp
134
134
  get haveCommercialLicense(): boolean;
135
135
  set haveCommercialLicense(val: boolean);
136
136
  get licenseText(): string;
137
+ slk(val: string): void;
137
138
  /**
138
139
  * Specifies whether to automatically save a survey or theme JSON schema each time survey or theme settings are changed.
139
140
  *
@@ -1170,7 +1171,12 @@ export declare class SurveyCreatorModel extends Base implements ISurveyCreatorOp
1170
1171
  * @param callback A callback function that indicates the upload status—"success" or "error"—as the first argument. If a file is uploaded successfully, the second argument contains the file's URL.
1171
1172
  * @see onUploadFile
1172
1173
  */
1173
- uploadFiles(files: File[], question: Question, callback: (status: string, data: any) => any): void;
1174
+ uploadFiles(files: File[], question: Question, callback: (status: string, data: any) => any, context?: {
1175
+ element: Base;
1176
+ item?: any;
1177
+ elementType?: string;
1178
+ propertyName?: string;
1179
+ }): void;
1174
1180
  private _rootElementValue;
1175
1181
  get rootElement(): HTMLElement;
1176
1182
  setRootElement(element: HTMLElement): void;
@@ -617,9 +617,18 @@ export interface OpenFileChooserEvent {
617
617
  }
618
618
  export interface UploadFileEvent {
619
619
  /**
620
- * A question for which files are being uploaded.
620
+ * A survey element (question, panel, page, or survey) or a theme JSON schema for which this event is raised.
621
621
  */
622
- question: Question;
622
+ element: Base | ITheme;
623
+ /**
624
+ * The type of the element passed as the `options.element` parameter.\
625
+ * Possible values: `"theme"`, `"header"`, or any value returned from the [`getType()`](https://surveyjs.io/form-library/documentation/api-reference/question#getType) method.
626
+ */
627
+ elementType: String;
628
+ /**
629
+ * The name of the survey element property or theme property for which files are being uploaded.
630
+ */
631
+ propertyName: String;
623
632
  /**
624
633
  * Files to upload.
625
634
  */
@@ -630,6 +639,10 @@ export interface UploadFileEvent {
630
639
  * @param fileUrl The URL of a successfully uploaded file.
631
640
  */
632
641
  callback: (status: string, fileUrl: string) => void;
642
+ /**
643
+ * Obsolete. Use the `options.element` parameter instead.
644
+ */
645
+ question: Question;
633
646
  }
634
647
  export interface TranslationStringVisibilityEvent {
635
648
  /**
@@ -217,7 +217,12 @@ export interface ISurveyCreatorOptions {
217
217
  onLogicGetTitleCallback(expression: string, displayExpression: string, text: string, logicItem: any): string;
218
218
  getProcessedTranslationItemText(locale: string, locString: ILocalizableString, newText: string, obj: any): string;
219
219
  getTranslationExportedText(obj: Base, name: string, locString: ILocalizableString, locale: string, text: string): string;
220
- uploadFiles(files: File[], question: Question, callback: (status: string, data: any) => any): void;
220
+ uploadFiles(files: File[], question: Question, callback: (status: string, data: any) => any, context?: {
221
+ element: Base;
222
+ item?: any;
223
+ elementType?: string;
224
+ propertyName?: string;
225
+ }): void;
221
226
  getHasMachineTranslation(): boolean;
222
227
  doMachineTranslation(fromLocale: string, toLocale: string, strings: Array<string>, callback: (translated: Array<string>) => void): void;
223
228
  chooseFiles(input: HTMLInputElement, callback: (files: File[]) => void, context?: {