survey-pdf 1.9.57 → 1.9.59

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.57",
3
+ "version": "1.9.59",
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.57"
29
+ "survey-core": "1.9.59"
30
30
  }
31
31
  }
package/survey.pdf.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- /*Type definitions for SurveyJS PDF library v1.9.57
1
+ /*Type definitions for SurveyJS PDF library v1.9.59
2
2
  Copyright (c) 2015-2022 Devsoft Baltic OÜ - http://surveyjs.io/
3
3
  Definitions by: Devsoft Baltic OÜ <https://github.com/surveyjs/>
4
4
  */
@@ -7,7 +7,7 @@ Definitions by: Devsoft Baltic OÜ <https://github.com/surveyjs/>
7
7
 
8
8
  import { SurveyModel } from 'survey-core';
9
9
  import { IQuestion, Question, QuestionRatingModel, QuestionFileModel, LocalizableString } from 'survey-core';
10
- import { QuestionBooleanModel } from 'survey-core';
10
+ import { QuestionBooleanModel, QuestionRadiogroupModel } from 'survey-core';
11
11
  import { ItemValue, QuestionCheckboxModel } from 'survey-core';
12
12
  import { QuestionCommentModel } from 'survey-core';
13
13
  import { QuestionDropdownModel } from 'survey-core';
@@ -16,7 +16,6 @@ import { QuestionHtmlModel } from 'survey-core';
16
16
  import { QuestionImageModel } from 'survey-core';
17
17
  import { QuestionImagePickerModel } from 'survey-core';
18
18
  import { QuestionPanelDynamicModel } from 'survey-core';
19
- import { QuestionRadiogroupModel } from 'survey-core';
20
19
  import { QuestionRankingModel } from 'survey-core';
21
20
  import { QuestionCheckboxBase } from 'survey-core';
22
21
  import { QuestionSignaturePadModel } from 'survey-core';
@@ -313,7 +312,7 @@ export interface IDocOptions {
313
312
  * You can override this property for an individual matrix-like question. Set the question's `renderAs` property to `"list"` in the survey JSON schema.
314
313
  */
315
314
  matrixRenderAs?: 'auto' | 'list';
316
- booleanRenderAs?: 'default' | 'radiogroup';
315
+ useLegacyBooleanRendering?: boolean;
317
316
  /**
318
317
  * Specifies how to render read-only questions.
319
318
  * Accepted values:
@@ -357,7 +356,7 @@ export declare class DocOptions implements IDocOptions {
357
356
  protected _textFieldRenderAs: 'singleLine' | 'multiLine';
358
357
  protected _compress: boolean;
359
358
  protected _applyImageFit: boolean;
360
- protected _booleanRenderAs: 'default' | 'radiogroup';
359
+ protected _useLegacyBooleanRendering: boolean;
361
360
  constructor(options: IDocOptions);
362
361
  get leftTopPoint(): IPoint;
363
362
  get fontSize(): number;
@@ -374,7 +373,7 @@ export declare class DocOptions implements IDocOptions {
374
373
  get textFieldRenderAs(): 'singleLine' | 'multiLine';
375
374
  get compress(): boolean;
376
375
  get applyImageFit(): boolean;
377
- get booleanRenderAs(): 'default' | 'radiogroup';
376
+ get useLegacyBooleanRendering(): boolean;
378
377
  }
379
378
  export declare class DocController extends DocOptions {
380
379
  constructor(options?: IDocOptions);
@@ -407,7 +406,7 @@ export declare class DocController extends DocOptions {
407
406
  setPage(index: number): void;
408
407
  }
409
408
 
410
- export declare type FlatConstructor = new (survey: SurveyPDF, question: IQuestion, controller: DocController) => IFlatQuestion;
409
+ export type FlatConstructor = new (survey: SurveyPDF, question: IQuestion, controller: DocController) => IFlatQuestion;
411
410
  export declare class FlatRepository {
412
411
  static getInstance(): FlatRepository;
413
412
  register(modelType: string, rendererConstructor: FlatConstructor): void;
@@ -433,17 +432,18 @@ export declare class FlatQuestion implements IFlatQuestion {
433
432
  generateFlats(point: IPoint): Promise<IPdfBrick[]>;
434
433
  }
435
434
 
436
- export declare class FlatBoolean extends FlatQuestion {
435
+ export declare class FlatBooleanCheckbox extends FlatQuestion {
437
436
  protected survey: SurveyPDF;
438
437
  protected controller: DocController;
439
438
  protected question: QuestionBooleanModel;
440
439
  constructor(survey: SurveyPDF, question: IQuestion, controller: DocController);
441
440
  generateFlatsContent(point: IPoint): Promise<IPdfBrick[]>;
442
441
  }
443
- export declare class FlatBooleanRadiogroup extends FlatRadiogroup {
442
+ export declare class FlatBoolean extends FlatRadiogroup {
444
443
  protected survey: SurveyPDF;
445
444
  protected controller: DocController;
446
445
  constructor(survey: SurveyPDF, question: IQuestion, controller: DocController);
446
+ protected getRadiogroupQuestion(question: QuestionBooleanModel): QuestionRadiogroupModel;
447
447
  }
448
448
 
449
449
  export declare class FlatCheckbox extends FlatSelectBase {
@@ -493,7 +493,7 @@ export declare class FlatFile extends FlatQuestion {
493
493
  generateFlatsContent(point: IPoint): Promise<IPdfBrick[]>;
494
494
  }
495
495
 
496
- export declare type IHTMLRenderType = 'auto' | 'standard' | 'image';
496
+ export type IHTMLRenderType = 'auto' | 'standard' | 'image';
497
497
  export declare class FlatHTML extends FlatQuestion {
498
498
  protected survey: SurveyPDF;
499
499
  protected question: QuestionHtmlModel;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS PDF library v1.9.57
2
+ * surveyjs - SurveyJS PDF library v1.9.59
3
3
  * Copyright (c) 2015-2022 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.57
2
+ * surveyjs - SurveyJS PDF library v1.9.59
3
3
  * Copyright (c) 2015-2022 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */