survey-pdf 2.2.5 → 2.3.0
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/fesm/pdf-form-filler-shared.mjs +1 -1
- package/fesm/pdf-form-filler.mjs +1 -1
- package/fesm/pdf-form-filler.node.mjs +1 -1
- package/fesm/survey.pdf.fonts.mjs +1 -1
- package/fesm/survey.pdf.mjs +82 -60
- package/fesm/survey.pdf.mjs.map +1 -1
- package/package.json +2 -2
- package/pdf-form-filler.js +1 -1
- package/pdf-form-filler.min.js.LICENSE.txt +1 -1
- package/pdf-form-filler.node.js +1 -1
- package/pdf-form-filler.node.min.js.LICENSE.txt +1 -1
- package/survey.pdf.fonts.js +1 -1
- package/survey.pdf.fonts.min.js.LICENSE.txt +1 -1
- package/survey.pdf.js +166 -115
- package/survey.pdf.js.map +1 -1
- package/survey.pdf.min.js +1 -1
- package/survey.pdf.min.js.LICENSE.txt +1 -1
- package/typings/flat_layout/flat_dropdown.d.ts +1 -0
- package/typings/flat_layout/flat_matrix.d.ts +10 -6
- package/typings/flat_layout/flat_selectbase.d.ts +3 -1
- package/typings/helper_survey.d.ts +0 -1
|
@@ -8,5 +8,6 @@ export declare class FlatDropdown extends FlatQuestion {
|
|
|
8
8
|
protected controller: DocController;
|
|
9
9
|
protected question: QuestionDropdownModel;
|
|
10
10
|
constructor(survey: SurveyPDF, question: IQuestion, controller: DocController);
|
|
11
|
+
protected generateItemComment(point: IPoint): Promise<IPdfBrick>;
|
|
11
12
|
generateFlatsContent(point: IPoint): Promise<IPdfBrick[]>;
|
|
12
13
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { IQuestion, QuestionMatrixModel, MatrixRowModel, ItemValue } from 'survey-core';
|
|
2
2
|
import { SurveyPDF } from '../survey';
|
|
3
|
-
import { DocController, IPoint } from '../doc_controller';
|
|
3
|
+
import { DocController, IPoint, IRect } from '../doc_controller';
|
|
4
4
|
import { FlatQuestion } from './flat_question';
|
|
5
|
-
import { FlatRadiogroup } from './flat_radiogroup';
|
|
6
5
|
import { IPdfBrick } from '../pdf_render/pdf_brick';
|
|
7
6
|
import { CompositeBrick } from '../pdf_render/pdf_composite';
|
|
7
|
+
import { RadioItemBrick } from '../pdf_render/pdf_radioitem';
|
|
8
|
+
import { CheckItemBrick } from '../pdf_render/pdf_checkitem';
|
|
8
9
|
export declare class FlatMatrix extends FlatQuestion {
|
|
9
10
|
protected survey: SurveyPDF;
|
|
10
11
|
protected controller: DocController;
|
|
@@ -18,8 +19,9 @@ export declare class FlatMatrix extends FlatQuestion {
|
|
|
18
19
|
private calculateColumnsWidthes;
|
|
19
20
|
generateFlatsContent(point: IPoint): Promise<IPdfBrick[]>;
|
|
20
21
|
}
|
|
21
|
-
export declare class FlatMatrixRow
|
|
22
|
+
export declare class FlatMatrixRow {
|
|
22
23
|
protected survey: SurveyPDF;
|
|
24
|
+
protected question: QuestionMatrixModel;
|
|
23
25
|
protected controller: DocController;
|
|
24
26
|
private row;
|
|
25
27
|
private rowIndex;
|
|
@@ -28,11 +30,13 @@ export declare class FlatMatrixRow extends FlatRadiogroup {
|
|
|
28
30
|
protected isVertical: boolean;
|
|
29
31
|
private rowTitleWidth;
|
|
30
32
|
private columnWidth;
|
|
31
|
-
|
|
32
|
-
constructor(survey: SurveyPDF, question:
|
|
33
|
+
private radioGroupWrap;
|
|
34
|
+
constructor(survey: SurveyPDF, question: QuestionMatrixModel, controller: DocController, row: MatrixRowModel, rowIndex: number, key: string, isFirst: boolean, isVertical: boolean, rowTitleWidth: number, columnWidth: number);
|
|
33
35
|
generateFlatsContent(point: IPoint): Promise<IPdfBrick[]>;
|
|
36
|
+
protected generateFlatItem(rect: IRect, item: ItemValue, index: number, key: string, context?: any): CheckItemBrick | RadioItemBrick;
|
|
34
37
|
protected generateTextComposite(point: IPoint, column: ItemValue, index: number): Promise<IPdfBrick>;
|
|
35
|
-
protected
|
|
38
|
+
protected generateItemComposite(point: IPoint, column: ItemValue, index: number): Promise<IPdfBrick>;
|
|
36
39
|
protected generateFlatsHorizontallyCells(point: IPoint): Promise<(IPdfBrick | CompositeBrick)[]>;
|
|
37
40
|
protected generateFlatsVerticallyCells(point: IPoint): Promise<IPdfBrick[]>;
|
|
41
|
+
protected generateVerticallyItems(point: IPoint, itemValues: ItemValue[]): Promise<IPdfBrick[]>;
|
|
38
42
|
}
|
|
@@ -3,13 +3,15 @@ import { SurveyPDF } from '../survey';
|
|
|
3
3
|
import { IPoint, IRect, DocController } from '../doc_controller';
|
|
4
4
|
import { FlatQuestion } from './flat_question';
|
|
5
5
|
import { IPdfBrick } from '../pdf_render/pdf_brick';
|
|
6
|
+
import { ChoiceItem } from 'survey-core/typings/src/question_baseselect';
|
|
6
7
|
export declare abstract class FlatSelectBase extends FlatQuestion {
|
|
7
8
|
protected survey: SurveyPDF;
|
|
8
9
|
protected controller: DocController;
|
|
9
10
|
protected question: QuestionCheckboxBase;
|
|
10
11
|
constructor(survey: SurveyPDF, question: IQuestion, controller: DocController);
|
|
11
12
|
abstract generateFlatItem(rect: IRect, item: ItemValue, index: number): IPdfBrick;
|
|
12
|
-
protected
|
|
13
|
+
protected generateItemComment(point: IPoint, item: ItemValue): Promise<IPdfBrick>;
|
|
14
|
+
protected generateFlatComposite(point: IPoint, item: ItemValue | ChoiceItem, index: number): Promise<IPdfBrick>;
|
|
13
15
|
protected getVisibleChoices(): Array<ItemValue>;
|
|
14
16
|
protected getColCount(): number;
|
|
15
17
|
generateFlatsContent(point: IPoint): Promise<IPdfBrick[]>;
|
|
@@ -119,7 +119,6 @@ export declare class SurveyHelper {
|
|
|
119
119
|
static createReadOnlyTextFieldTextFlat(point: IPoint, controller: DocController, question: Question, value: string): Promise<IPdfBrick>;
|
|
120
120
|
static renderFlatBorders(controller: DocController, borderOptions: IBorderDescription): void;
|
|
121
121
|
static getLocString(text: LocalizableString): string;
|
|
122
|
-
static getDropdownQuestionValue(question: Question): string;
|
|
123
122
|
static getContentQuestion(question: Question): Question;
|
|
124
123
|
static getContentQuestionTypeRenderAs(question: Question, survey: SurveyPDF): string;
|
|
125
124
|
static getContentQuestionType(question: Question, survey: SurveyPDF): string;
|