survey-pdf 1.9.96 → 1.9.98

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-pdf",
3
- "version": "1.9.96",
3
+ "version": "1.9.98",
4
4
  "description": "survey.pdf.js is a SurveyJS PDF Library. It is a easy way to export SurveyJS surveys to PDF. It uses JSON for survey metadata.",
5
5
  "keywords": [
6
6
  "Survey",
@@ -26,6 +26,6 @@
26
26
  "typings": "survey.pdf.d.ts",
27
27
  "dependencies": {
28
28
  "jspdf": "^2.3.0",
29
- "survey-core": "1.9.96"
29
+ "survey-core": "1.9.98"
30
30
  }
31
31
  }
package/survey.pdf.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- /*Type definitions for SurveyJS PDF library v1.9.96
1
+ /*Type definitions for SurveyJS PDF library v1.9.98
2
2
  Copyright (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
3
3
  Definitions by: Devsoft Baltic OÜ <https://github.com/surveyjs/>
4
4
  */
@@ -241,7 +241,12 @@ export declare class SurveyHelper {
241
241
  static createTitlePanelFlat(point: IPoint, controller: DocController, text: string | LocalizableString, isPage?: boolean): Promise<IPdfBrick>;
242
242
  static createDescFlat(point: IPoint, question: IQuestion, controller: DocController, text: string | LocalizableString): Promise<IPdfBrick>;
243
243
  static getReadonlyRenderAs(question: Question, controller: DocController): 'auto' | 'text' | 'acroform';
244
- static createCommentFlat(point: IPoint, question: Question, controller: DocController, rows: number, isQuestion: boolean, index?: number, value?: string): Promise<IPdfBrick>;
244
+ static createCommentFlat(point: IPoint, question: Question, controller: DocController, isQuestion: boolean, options?: {
245
+ rows?: number;
246
+ index?: number;
247
+ value?: string;
248
+ readOnly?: boolean;
249
+ }): Promise<IPdfBrick>;
245
250
  static getQuestionOrCommentValue(question: Question, isQuestion?: boolean): string;
246
251
  static getQuestionOrCommentDisplayValue(question: Question, isQuestion?: boolean): string;
247
252
  static inBrowser: boolean;
@@ -280,7 +285,7 @@ export declare class SurveyHelper {
280
285
  static isCustomFont(controller: DocController, fontName: string): boolean;
281
286
  static fixFont(controller: DocController): void;
282
287
  static clone(src: any): any;
283
- static shouldRenderReadOnly(question: IQuestion, controller: DocController): boolean;
288
+ static shouldRenderReadOnly(question: IQuestion, controller: DocController, readOnly?: boolean): boolean;
284
289
  }
285
290
 
286
291
  import './jspdf_plugins/acroform.js';
@@ -1172,13 +1177,14 @@ export declare class TextFieldBrick extends PdfBrick {
1172
1177
  protected fieldName: string;
1173
1178
  protected value: string;
1174
1179
  protected placeholder: string;
1175
- protected isReadOnly: boolean;
1180
+ isReadOnly: boolean;
1176
1181
  protected isMultiline: boolean;
1177
1182
  protected inputType: string;
1178
1183
  protected question: QuestionTextModel;
1179
1184
  constructor(question: IQuestion, controller: DocController, rect: IRect, isQuestion: boolean, fieldName: string, value: string, placeholder: string, isReadOnly: boolean, isMultiline: boolean, inputType: string);
1180
1185
  renderInteractive(): Promise<void>;
1181
1186
  protected shouldRenderFlatBorders(): boolean;
1187
+ protected getShouldRenderReadOnly(): boolean;
1182
1188
  textBrick: IPdfBrick;
1183
1189
  renderReadOnly(): Promise<void>;
1184
1190
  translateX(func: TranslateXFunction): void;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS PDF library v1.9.96
2
+ * surveyjs - SurveyJS PDF library v1.9.98
3
3
  * Copyright (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS PDF library v1.9.96
2
+ * surveyjs - SurveyJS PDF library v1.9.98
3
3
  * Copyright (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */