@ngstarter-ui/components 21.0.69 → 21.0.70
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/ai/component-registry.json +80 -12
- package/fesm2022/ngstarter-ui-components-pdf-builder.mjs +626 -109
- package/fesm2022/ngstarter-ui-components-pdf-builder.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-signature-pad.mjs +143 -3
- package/fesm2022/ngstarter-ui-components-signature-pad.mjs.map +1 -1
- package/package.json +1 -1
- package/types/ngstarter-ui-components-pdf-builder.d.ts +157 -7
- package/types/ngstarter-ui-components-signature-pad.d.ts +45 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { Datepicker, DatepickerInput } from '@ngstarter-ui/components/datepicker';
|
|
3
|
-
import { PdfViewerSource,
|
|
3
|
+
import { PdfViewerSource, PdfViewerAnnotationView, PdfViewerSearchResultView, PdfViewerLoadedEvent, PdfViewerSearchOptions } from '@ngstarter-ui/components/pdf-viewer';
|
|
4
4
|
import { Tree } from '@ngstarter-ui/components/tree';
|
|
5
5
|
|
|
6
6
|
type PdfBuilderCanvasTool = 'select' | 'pan' | 'text';
|
|
@@ -9,6 +9,7 @@ type PdfBuilderFieldSlot = 'primary' | 'date' | 'signature' | 'initials' | 'chec
|
|
|
9
9
|
type PdfBuilderSpreadMode = 'single' | 'two-odd' | 'two-even';
|
|
10
10
|
type PdfBuilderScrollLayout = 'vertical' | 'horizontal';
|
|
11
11
|
type PdfBuilderPageRotation = 0 | 1 | 2 | 3;
|
|
12
|
+
type PdfBuilderSchemaPageKind = 'source' | 'virtual';
|
|
12
13
|
interface PdfBuilderTool {
|
|
13
14
|
readonly type: PdfBuilderFieldType;
|
|
14
15
|
readonly label: string;
|
|
@@ -30,6 +31,8 @@ interface PdfBuilderLayerNode {
|
|
|
30
31
|
interface PdfBuilderPage {
|
|
31
32
|
readonly page: number;
|
|
32
33
|
readonly label: string;
|
|
34
|
+
readonly kind: PdfBuilderSchemaPageKind;
|
|
35
|
+
readonly sourcePage: number | null;
|
|
33
36
|
}
|
|
34
37
|
interface PdfBuilderPageSpread {
|
|
35
38
|
readonly id: string;
|
|
@@ -43,6 +46,7 @@ interface PdfBuilderField {
|
|
|
43
46
|
readonly label: string;
|
|
44
47
|
readonly binding: string;
|
|
45
48
|
readonly value: string;
|
|
49
|
+
readonly signer?: PdfBuilderFieldSigner | null;
|
|
46
50
|
readonly icon: string;
|
|
47
51
|
readonly slot: PdfBuilderFieldSlot;
|
|
48
52
|
readonly x: number;
|
|
@@ -53,6 +57,91 @@ interface PdfBuilderField {
|
|
|
53
57
|
readonly readonly: boolean;
|
|
54
58
|
readonly locked: boolean;
|
|
55
59
|
}
|
|
60
|
+
interface PdfBuilderRecipient {
|
|
61
|
+
readonly id: string;
|
|
62
|
+
readonly name: string;
|
|
63
|
+
readonly email?: string;
|
|
64
|
+
readonly role?: string;
|
|
65
|
+
readonly avatarLabel?: string;
|
|
66
|
+
readonly isCurrentUser?: boolean;
|
|
67
|
+
readonly fieldIds?: readonly string[];
|
|
68
|
+
readonly disabled?: boolean;
|
|
69
|
+
}
|
|
70
|
+
interface PdfBuilderSigner {
|
|
71
|
+
readonly id: string;
|
|
72
|
+
readonly fullName: string;
|
|
73
|
+
readonly email?: string;
|
|
74
|
+
}
|
|
75
|
+
interface PdfBuilderFieldSigner {
|
|
76
|
+
readonly id: string;
|
|
77
|
+
readonly fullName: string;
|
|
78
|
+
readonly email?: string;
|
|
79
|
+
}
|
|
80
|
+
interface PdfBuilderStampAsset {
|
|
81
|
+
readonly id: string;
|
|
82
|
+
readonly name: string;
|
|
83
|
+
readonly description?: string;
|
|
84
|
+
readonly imageUrl?: string;
|
|
85
|
+
}
|
|
86
|
+
interface PdfBuilderStampSelection {
|
|
87
|
+
readonly field: PdfBuilderField;
|
|
88
|
+
readonly stamp: PdfBuilderStampAsset;
|
|
89
|
+
}
|
|
90
|
+
interface PdfBuilderStampUpload {
|
|
91
|
+
readonly field: PdfBuilderField;
|
|
92
|
+
readonly file: File;
|
|
93
|
+
}
|
|
94
|
+
interface PdfBuilderSignatureAsset {
|
|
95
|
+
readonly id: string;
|
|
96
|
+
readonly name: string;
|
|
97
|
+
readonly description?: string;
|
|
98
|
+
readonly imageUrl?: string;
|
|
99
|
+
readonly dataUrl?: string;
|
|
100
|
+
}
|
|
101
|
+
interface PdfBuilderSignatureSelection {
|
|
102
|
+
readonly field: PdfBuilderField;
|
|
103
|
+
readonly signature: PdfBuilderSignatureAsset;
|
|
104
|
+
}
|
|
105
|
+
interface PdfBuilderSignatureUpload {
|
|
106
|
+
readonly field: PdfBuilderField;
|
|
107
|
+
readonly file: File;
|
|
108
|
+
}
|
|
109
|
+
interface PdfBuilderSignatureDraw {
|
|
110
|
+
readonly field: PdfBuilderField;
|
|
111
|
+
readonly dataUrl: string;
|
|
112
|
+
}
|
|
113
|
+
interface PdfBuilderSignatureType {
|
|
114
|
+
readonly field: PdfBuilderField;
|
|
115
|
+
readonly value: string;
|
|
116
|
+
readonly dataUrl: string;
|
|
117
|
+
readonly fontFamily: string;
|
|
118
|
+
readonly color: string;
|
|
119
|
+
}
|
|
120
|
+
type PdfBuilderSignatureUploadCallbackResult = string | PdfBuilderSignatureAsset | {
|
|
121
|
+
readonly label?: string;
|
|
122
|
+
readonly name?: string;
|
|
123
|
+
readonly value?: string;
|
|
124
|
+
readonly imageUrl?: string;
|
|
125
|
+
readonly dataUrl?: string;
|
|
126
|
+
};
|
|
127
|
+
interface PdfBuilderDrawnSignatureUploadContext {
|
|
128
|
+
readonly field: PdfBuilderField;
|
|
129
|
+
readonly dataUrl: string;
|
|
130
|
+
}
|
|
131
|
+
interface PdfBuilderSignatureImageUploadContext {
|
|
132
|
+
readonly field: PdfBuilderField;
|
|
133
|
+
readonly file: File;
|
|
134
|
+
}
|
|
135
|
+
type PdfBuilderDrawnSignatureUploadCallback = (context: PdfBuilderDrawnSignatureUploadContext) => PdfBuilderSignatureUploadCallbackResult | Promise<PdfBuilderSignatureUploadCallbackResult>;
|
|
136
|
+
type PdfBuilderSignatureImageUploadCallback = (context: PdfBuilderSignatureImageUploadContext) => PdfBuilderSignatureUploadCallbackResult | Promise<PdfBuilderSignatureUploadCallbackResult>;
|
|
137
|
+
interface PdfBuilderSchemaPage {
|
|
138
|
+
readonly id: string;
|
|
139
|
+
readonly kind: PdfBuilderSchemaPageKind;
|
|
140
|
+
readonly label?: string;
|
|
141
|
+
readonly sourcePage?: number;
|
|
142
|
+
readonly width?: number;
|
|
143
|
+
readonly height?: number;
|
|
144
|
+
}
|
|
56
145
|
interface PdfBuilderSchema {
|
|
57
146
|
readonly version: 1;
|
|
58
147
|
readonly document: {
|
|
@@ -61,6 +150,7 @@ interface PdfBuilderSchema {
|
|
|
61
150
|
readonly sizeLabel: string;
|
|
62
151
|
readonly sourcePageCount: number;
|
|
63
152
|
readonly addedPageCount: number;
|
|
153
|
+
readonly pages?: readonly PdfBuilderSchemaPage[];
|
|
64
154
|
};
|
|
65
155
|
readonly view: {
|
|
66
156
|
readonly activePage: number;
|
|
@@ -133,6 +223,7 @@ interface PdfBuilderFieldResize {
|
|
|
133
223
|
}
|
|
134
224
|
declare class PdfBuilder {
|
|
135
225
|
private readonly document;
|
|
226
|
+
private readonly dialog;
|
|
136
227
|
private readonly destroyRef;
|
|
137
228
|
private readonly elementRef;
|
|
138
229
|
private readonly renderer;
|
|
@@ -147,9 +238,29 @@ declare class PdfBuilder {
|
|
|
147
238
|
private suppressNextSchemaChange;
|
|
148
239
|
private readonly dragCursorClass;
|
|
149
240
|
readonly schema: _angular_core.InputSignal<PdfBuilderSchema | null>;
|
|
241
|
+
readonly annotations: _angular_core.InputSignal<readonly PdfViewerAnnotationView[]>;
|
|
242
|
+
readonly recipients: _angular_core.InputSignal<readonly PdfBuilderRecipient[]>;
|
|
243
|
+
readonly signers: _angular_core.InputSignal<readonly PdfBuilderSigner[]>;
|
|
244
|
+
readonly stamps: _angular_core.InputSignal<readonly PdfBuilderStampAsset[]>;
|
|
245
|
+
readonly uploadedSignatures: _angular_core.InputSignal<readonly PdfBuilderSignatureAsset[]>;
|
|
246
|
+
readonly drawnSignatureUploadCallback: _angular_core.InputSignal<PdfBuilderDrawnSignatureUploadCallback | null | undefined>;
|
|
247
|
+
readonly signatureImageUploadCallback: _angular_core.InputSignal<PdfBuilderSignatureImageUploadCallback | null | undefined>;
|
|
150
248
|
readonly schemaChange: _angular_core.OutputEmitterRef<PdfBuilderSchema>;
|
|
151
249
|
readonly createBlankPdf: _angular_core.OutputEmitterRef<void>;
|
|
152
250
|
readonly exportPdf: _angular_core.OutputEmitterRef<void>;
|
|
251
|
+
readonly recipientSelected: _angular_core.OutputEmitterRef<PdfBuilderRecipient>;
|
|
252
|
+
readonly addRecipient: _angular_core.OutputEmitterRef<void>;
|
|
253
|
+
readonly recipientSearchChanged: _angular_core.OutputEmitterRef<string>;
|
|
254
|
+
readonly createRecipientContact: _angular_core.OutputEmitterRef<string>;
|
|
255
|
+
readonly editRecipientDetails: _angular_core.OutputEmitterRef<PdfBuilderRecipient>;
|
|
256
|
+
readonly replaceRecipient: _angular_core.OutputEmitterRef<PdfBuilderRecipient>;
|
|
257
|
+
readonly removeRecipient: _angular_core.OutputEmitterRef<PdfBuilderRecipient>;
|
|
258
|
+
readonly stampSelected: _angular_core.OutputEmitterRef<PdfBuilderStampSelection>;
|
|
259
|
+
readonly stampUploaded: _angular_core.OutputEmitterRef<PdfBuilderStampUpload>;
|
|
260
|
+
readonly signatureSelected: _angular_core.OutputEmitterRef<PdfBuilderSignatureSelection>;
|
|
261
|
+
readonly signatureUploaded: _angular_core.OutputEmitterRef<PdfBuilderSignatureUpload>;
|
|
262
|
+
readonly signatureDrawn: _angular_core.OutputEmitterRef<PdfBuilderSignatureDraw>;
|
|
263
|
+
readonly signatureTyped: _angular_core.OutputEmitterRef<PdfBuilderSignatureType>;
|
|
153
264
|
protected readonly layersTree: _angular_core.Signal<Tree<PdfBuilderLayerNode, PdfBuilderLayerNode> | undefined>;
|
|
154
265
|
protected readonly dateFieldPicker: _angular_core.Signal<Datepicker<Date> | undefined>;
|
|
155
266
|
protected readonly dateFieldInput: _angular_core.Signal<DatepickerInput<Date> | undefined>;
|
|
@@ -159,6 +270,7 @@ declare class PdfBuilder {
|
|
|
159
270
|
protected readonly wasmUrl = "/assets/embedpdf/pdfium.wasm";
|
|
160
271
|
protected readonly sourcePageCount: _angular_core.WritableSignal<number>;
|
|
161
272
|
protected readonly addedPageCount: _angular_core.WritableSignal<number>;
|
|
273
|
+
protected readonly documentPages: _angular_core.WritableSignal<readonly PdfBuilderSchemaPage[]>;
|
|
162
274
|
protected readonly pageCount: _angular_core.Signal<number>;
|
|
163
275
|
protected readonly activePage: _angular_core.WritableSignal<number>;
|
|
164
276
|
protected readonly pdfScale: _angular_core.WritableSignal<number>;
|
|
@@ -172,6 +284,8 @@ declare class PdfBuilder {
|
|
|
172
284
|
protected readonly fieldResize: _angular_core.WritableSignal<PdfBuilderFieldResize | null>;
|
|
173
285
|
protected readonly pageStripVisible: _angular_core.WritableSignal<boolean>;
|
|
174
286
|
protected readonly libraryCollapsed: _angular_core.WritableSignal<boolean>;
|
|
287
|
+
protected readonly fieldSettingsPanelVisible: _angular_core.WritableSignal<boolean>;
|
|
288
|
+
protected readonly recipientSearchQuery: _angular_core.WritableSignal<string>;
|
|
175
289
|
protected readonly searchPanelVisible: _angular_core.WritableSignal<boolean>;
|
|
176
290
|
protected readonly annotationsPanelVisible: _angular_core.WritableSignal<boolean>;
|
|
177
291
|
protected readonly spreadMode: _angular_core.WritableSignal<PdfBuilderSpreadMode>;
|
|
@@ -193,6 +307,8 @@ declare class PdfBuilder {
|
|
|
193
307
|
protected readonly canGoPrevious: _angular_core.Signal<boolean>;
|
|
194
308
|
protected readonly canGoNext: _angular_core.Signal<boolean>;
|
|
195
309
|
protected readonly selectedField: _angular_core.Signal<PdfBuilderField | null>;
|
|
310
|
+
protected readonly recipientItems: _angular_core.Signal<PdfBuilderRecipient[]>;
|
|
311
|
+
protected readonly signerItems: _angular_core.Signal<readonly PdfBuilderFieldSigner[]>;
|
|
196
312
|
protected readonly isSearchPanelVisible: _angular_core.Signal<boolean>;
|
|
197
313
|
protected readonly isAnnotationsPanelVisible: _angular_core.Signal<boolean>;
|
|
198
314
|
protected readonly annotationItems: _angular_core.Signal<PdfViewerAnnotationView[]>;
|
|
@@ -219,9 +335,12 @@ declare class PdfBuilder {
|
|
|
219
335
|
protected pageFields(pageNumber: number): readonly PdfBuilderField[];
|
|
220
336
|
private groupPagesIntoSpreads;
|
|
221
337
|
protected isSourcePdfPage(pageNumber: number): boolean;
|
|
338
|
+
protected getSourcePageNumber(pageNumber: number): number;
|
|
222
339
|
protected onViewerScroll(): void;
|
|
223
340
|
protected selectLayerNode(node: PdfBuilderLayerNode, event?: Event): void;
|
|
224
341
|
protected selectField(fieldId: string, event?: Event): void;
|
|
342
|
+
protected openStampDialog(field: PdfBuilderField): void;
|
|
343
|
+
protected openSignatureDialog(field: PdfBuilderField): void;
|
|
225
344
|
protected beginFieldDrag(event: PointerEvent, fieldId: string): void;
|
|
226
345
|
protected canResizeField(field: PdfBuilderField): boolean;
|
|
227
346
|
protected beginFieldResize(event: PointerEvent, fieldId: string): void;
|
|
@@ -231,6 +350,8 @@ declare class PdfBuilder {
|
|
|
231
350
|
protected finishTextEditing(fieldId: string): void;
|
|
232
351
|
protected isFieldFilled(field: PdfBuilderField): boolean;
|
|
233
352
|
protected getFieldDisplayValue(field: PdfBuilderField): string;
|
|
353
|
+
protected getFieldSignerTooltip(field: PdfBuilderField): string;
|
|
354
|
+
protected isSignatureImageValue(value: string): boolean;
|
|
234
355
|
protected getVariableBindingLabel(field: PdfBuilderField | null): string;
|
|
235
356
|
protected applyVariableBinding(binding: PdfBuilderVariableBinding): void;
|
|
236
357
|
private openDateFieldPicker;
|
|
@@ -252,6 +373,22 @@ declare class PdfBuilder {
|
|
|
252
373
|
protected toggleSearchPanel(): void;
|
|
253
374
|
protected toggleAnnotationsPanel(): void;
|
|
254
375
|
protected closeAsidePanel(): void;
|
|
376
|
+
protected openFieldSettingsPanel(): void;
|
|
377
|
+
protected closeFieldSettingsPanel(): void;
|
|
378
|
+
protected selectRecipient(recipient: PdfBuilderRecipient, event?: Event): void;
|
|
379
|
+
protected requestAddRecipient(): void;
|
|
380
|
+
protected updateRecipientSearch(query: string): void;
|
|
381
|
+
protected requestCreateRecipientContact(event?: Event): void;
|
|
382
|
+
protected requestEditRecipientDetails(recipient: PdfBuilderRecipient, event?: Event): void;
|
|
383
|
+
protected requestReplaceRecipient(recipient: PdfBuilderRecipient, event?: Event): void;
|
|
384
|
+
protected requestRemoveRecipient(recipient: PdfBuilderRecipient, event?: Event): void;
|
|
385
|
+
protected openSelectedDatePicker(event?: Event): void;
|
|
386
|
+
protected getRecipientAvatarLabel(recipient: PdfBuilderRecipient): string;
|
|
387
|
+
protected getRecipientRoleLabel(recipient: PdfBuilderRecipient): string;
|
|
388
|
+
private getNormalizedSigners;
|
|
389
|
+
private getDefaultFieldSigner;
|
|
390
|
+
protected isRecipientSelected(recipient: PdfBuilderRecipient): boolean;
|
|
391
|
+
private getRecipientTargetField;
|
|
255
392
|
protected updatePdfSearch(event: {
|
|
256
393
|
query: string;
|
|
257
394
|
options: PdfViewerSearchOptions;
|
|
@@ -265,17 +402,31 @@ declare class PdfBuilder {
|
|
|
265
402
|
protected redo(): void;
|
|
266
403
|
private captureSchema;
|
|
267
404
|
private restoreSchema;
|
|
405
|
+
private getSchemaPagesFromDocument;
|
|
406
|
+
private normalizeSchemaPages;
|
|
407
|
+
private setDocumentPages;
|
|
408
|
+
private ensureDocumentPages;
|
|
409
|
+
private createSourceSchemaPages;
|
|
410
|
+
private createVirtualSchemaPage;
|
|
411
|
+
private getSchemaPage;
|
|
268
412
|
protected duplicateSelectedField(): void;
|
|
269
413
|
protected deleteSelectedField(): void;
|
|
270
414
|
protected toggleSelectedFieldLock(): void;
|
|
271
415
|
protected toggleSelectedFieldRequired(): void;
|
|
272
416
|
protected updateSelectedField<K extends keyof PdfBuilderField>(key: K, value: PdfBuilderField[K]): void;
|
|
417
|
+
private applyStampDialogResult;
|
|
418
|
+
private applySignatureDialogResult;
|
|
419
|
+
private resolveSignatureUploadResult;
|
|
420
|
+
private getSignatureResultLabel;
|
|
421
|
+
private getSignatureResultValue;
|
|
422
|
+
private getSignatureDialogResultLabel;
|
|
423
|
+
private getSignatureDialogResultValue;
|
|
273
424
|
protected exportCurrentPdf(): void;
|
|
274
425
|
private restoreLayerTreeExpansion;
|
|
275
426
|
private scheduleLayerTreeExpansionRestore;
|
|
276
427
|
private flattenLayerTree;
|
|
277
428
|
private getLayerMeta;
|
|
278
|
-
private
|
|
429
|
+
private getFieldSearchExcerpt;
|
|
279
430
|
private searchBuilderFields;
|
|
280
431
|
private escapeRegExp;
|
|
281
432
|
private movePlacementGhost;
|
|
@@ -297,7 +448,6 @@ declare class PdfBuilder {
|
|
|
297
448
|
private getPlacementFieldMetrics;
|
|
298
449
|
private syncPageGeometry;
|
|
299
450
|
private syncOverlayGeometry;
|
|
300
|
-
private syncSelectionToolbarGeometry;
|
|
301
451
|
private shouldAutosizeField;
|
|
302
452
|
private withAutosizedTextMetrics;
|
|
303
453
|
private withContentEditableTextMetrics;
|
|
@@ -322,7 +472,6 @@ declare class PdfBuilder {
|
|
|
322
472
|
private getOverlayFieldElements;
|
|
323
473
|
private getOverlayFieldElement;
|
|
324
474
|
private getPlacementGhostElement;
|
|
325
|
-
private getSelectionToolbarElement;
|
|
326
475
|
private getDatePickerAnchorElement;
|
|
327
476
|
private getTextFieldEditorElement;
|
|
328
477
|
private placeContentEditableCaretAtEnd;
|
|
@@ -331,6 +480,7 @@ declare class PdfBuilder {
|
|
|
331
480
|
private setCssVar;
|
|
332
481
|
private setDragCursorLocked;
|
|
333
482
|
private createField;
|
|
483
|
+
private withDefaultFieldSigner;
|
|
334
484
|
private nextFieldId;
|
|
335
485
|
private nextSlot;
|
|
336
486
|
private getSlotMetrics;
|
|
@@ -353,11 +503,11 @@ declare class PdfBuilder {
|
|
|
353
503
|
private recordActivity;
|
|
354
504
|
private refreshViewerLayout;
|
|
355
505
|
private normalizePageRotation;
|
|
356
|
-
private
|
|
506
|
+
private createVirtualPdfBlob;
|
|
357
507
|
private downloadCurrentPdf;
|
|
358
508
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PdfBuilder, never>;
|
|
359
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PdfBuilder, "ngs-pdf-builder", ["ngsPdfBuilder"], { "schema": { "alias": "schema"; "required": false; "isSignal": true; }; }, { "schemaChange": "schemaChange"; "createBlankPdf": "createBlankPdf"; "exportPdf": "exportPdf"; }, never, never, true, never>;
|
|
509
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PdfBuilder, "ngs-pdf-builder", ["ngsPdfBuilder"], { "schema": { "alias": "schema"; "required": false; "isSignal": true; }; "annotations": { "alias": "annotations"; "required": false; "isSignal": true; }; "recipients": { "alias": "recipients"; "required": false; "isSignal": true; }; "signers": { "alias": "signers"; "required": false; "isSignal": true; }; "stamps": { "alias": "stamps"; "required": false; "isSignal": true; }; "uploadedSignatures": { "alias": "uploadedSignatures"; "required": false; "isSignal": true; }; "drawnSignatureUploadCallback": { "alias": "drawnSignatureUploadCallback"; "required": false; "isSignal": true; }; "signatureImageUploadCallback": { "alias": "signatureImageUploadCallback"; "required": false; "isSignal": true; }; }, { "schemaChange": "schemaChange"; "createBlankPdf": "createBlankPdf"; "exportPdf": "exportPdf"; "recipientSelected": "recipientSelected"; "addRecipient": "addRecipient"; "recipientSearchChanged": "recipientSearchChanged"; "createRecipientContact": "createRecipientContact"; "editRecipientDetails": "editRecipientDetails"; "replaceRecipient": "replaceRecipient"; "removeRecipient": "removeRecipient"; "stampSelected": "stampSelected"; "stampUploaded": "stampUploaded"; "signatureSelected": "signatureSelected"; "signatureUploaded": "signatureUploaded"; "signatureDrawn": "signatureDrawn"; "signatureTyped": "signatureTyped"; }, never, never, true, never>;
|
|
360
510
|
}
|
|
361
511
|
|
|
362
512
|
export { PdfBuilder };
|
|
363
|
-
export type { PdfBuilderCanvasTool, PdfBuilderField, PdfBuilderFieldSlot, PdfBuilderFieldType, PdfBuilderPageRotation, PdfBuilderSchema, PdfBuilderScrollLayout, PdfBuilderSpreadMode };
|
|
513
|
+
export type { PdfBuilderCanvasTool, PdfBuilderDrawnSignatureUploadCallback, PdfBuilderDrawnSignatureUploadContext, PdfBuilderField, PdfBuilderFieldSigner, PdfBuilderFieldSlot, PdfBuilderFieldType, PdfBuilderPageRotation, PdfBuilderRecipient, PdfBuilderSchema, PdfBuilderSchemaPage, PdfBuilderSchemaPageKind, PdfBuilderScrollLayout, PdfBuilderSignatureAsset, PdfBuilderSignatureDraw, PdfBuilderSignatureImageUploadCallback, PdfBuilderSignatureImageUploadContext, PdfBuilderSignatureSelection, PdfBuilderSignatureType, PdfBuilderSignatureUpload, PdfBuilderSignatureUploadCallbackResult, PdfBuilderSigner, PdfBuilderSpreadMode, PdfBuilderStampAsset, PdfBuilderStampSelection, PdfBuilderStampUpload };
|
|
@@ -47,4 +47,48 @@ declare class SignaturePad implements OnDestroy {
|
|
|
47
47
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SignaturePad, "ngs-signature-pad", ["ngsSignaturePad"], { "penColor": { "alias": "penColor"; "required": false; "isSignal": true; }; "lineWidth": { "alias": "lineWidth"; "required": false; "isSignal": true; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; "isSignal": true; }; "lazyRadius": { "alias": "lazyRadius"; "required": false; "isSignal": true; }; "lazyFriction": { "alias": "lazyFriction"; "required": false; "isSignal": true; }; "lazyEnabled": { "alias": "lazyEnabled"; "required": false; "isSignal": true; }; "colors": { "alias": "colors"; "required": false; "isSignal": true; }; }, { "penColor": "penColorChange"; "signatureSaved": "signatureSaved"; "signatureCleared": "signatureCleared"; }, never, never, true, never>;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
interface TypedSignatureFont {
|
|
51
|
+
readonly label: string;
|
|
52
|
+
readonly family: string;
|
|
53
|
+
}
|
|
54
|
+
interface TypedSignaturePadValue {
|
|
55
|
+
readonly value: string;
|
|
56
|
+
readonly fontFamily: string;
|
|
57
|
+
readonly color: string;
|
|
58
|
+
readonly dataUrl: string;
|
|
59
|
+
}
|
|
60
|
+
declare class TypedSignaturePad {
|
|
61
|
+
private readonly document;
|
|
62
|
+
private readonly elementRef;
|
|
63
|
+
private readonly renderer;
|
|
64
|
+
private readonly inputRef;
|
|
65
|
+
readonly value: _angular_core.ModelSignal<string>;
|
|
66
|
+
readonly fontFamily: _angular_core.ModelSignal<string>;
|
|
67
|
+
readonly penColor: _angular_core.ModelSignal<string>;
|
|
68
|
+
readonly placeholder: _angular_core.InputSignal<string>;
|
|
69
|
+
readonly colors: _angular_core.InputSignal<string[]>;
|
|
70
|
+
readonly fonts: _angular_core.InputSignal<readonly TypedSignatureFont[]>;
|
|
71
|
+
readonly signatureSaved: _angular_core.OutputEmitterRef<string>;
|
|
72
|
+
readonly signatureTyped: _angular_core.OutputEmitterRef<TypedSignaturePadValue>;
|
|
73
|
+
readonly signatureCleared: _angular_core.OutputEmitterRef<void>;
|
|
74
|
+
protected readonly selectedFont: _angular_core.Signal<TypedSignatureFont>;
|
|
75
|
+
protected readonly hasValue: _angular_core.Signal<boolean>;
|
|
76
|
+
private readonly lastEmittedDataUrl;
|
|
77
|
+
constructor();
|
|
78
|
+
protected updateValue(value: string): void;
|
|
79
|
+
protected selectFont(font: TypedSignatureFont): void;
|
|
80
|
+
onColorChange(color: string): void;
|
|
81
|
+
clear(): void;
|
|
82
|
+
save(): void;
|
|
83
|
+
handleEscapeKey(event: Event): void;
|
|
84
|
+
private emitSignature;
|
|
85
|
+
private createSignatureDataUrl;
|
|
86
|
+
private escapeXml;
|
|
87
|
+
private setCssVar;
|
|
88
|
+
private focusInput;
|
|
89
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TypedSignaturePad, never>;
|
|
90
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TypedSignaturePad, "ngs-typed-signature-pad", ["ngsTypedSignaturePad"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "fontFamily": { "alias": "fontFamily"; "required": false; "isSignal": true; }; "penColor": { "alias": "penColor"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "colors": { "alias": "colors"; "required": false; "isSignal": true; }; "fonts": { "alias": "fonts"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "fontFamily": "fontFamilyChange"; "penColor": "penColorChange"; "signatureSaved": "signatureSaved"; "signatureTyped": "signatureTyped"; "signatureCleared": "signatureCleared"; }, never, never, true, never>;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export { SignaturePad, TypedSignaturePad };
|
|
94
|
+
export type { TypedSignatureFont, TypedSignaturePadValue };
|