@m3ui-vue/m3ui-vue 1.6.2 → 1.8.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/dist/API.md +1224 -28
- package/dist/{MColorPickerModal-NtkihoK6.js → MColorPickerModal-H8nuX0Wu.js} +3 -4
- package/dist/{MColorPickerModal-NtkihoK6.js.map → MColorPickerModal-H8nuX0Wu.js.map} +1 -1
- package/dist/MDialog-B42Mhn8W.js +331 -0
- package/dist/MDialog-B42Mhn8W.js.map +1 -0
- package/dist/{MListItem-D2cNUyzP.js → MListItem-DiOAxaN7.js} +431 -325
- package/dist/MListItem-DiOAxaN7.js.map +1 -0
- package/dist/{MLoadingIndicator-DWUj0BAB.js → MLoadingIndicator-CuTZYFFj.js} +2 -2
- package/dist/{MLoadingIndicator-DWUj0BAB.js.map → MLoadingIndicator-CuTZYFFj.js.map} +1 -1
- package/dist/{MSeekBar-C4cn9RIF.js → MSeekBar-BCDQTx2t.js} +2 -2
- package/dist/{MSeekBar-C4cn9RIF.js.map → MSeekBar-BCDQTx2t.js.map} +1 -1
- package/dist/MSegmentedButton-BXzRsg1S.js +105 -0
- package/dist/MSegmentedButton-BXzRsg1S.js.map +1 -0
- package/dist/MSignaturePad-BTqGaPXA.js +313 -0
- package/dist/MSignaturePad-BTqGaPXA.js.map +1 -0
- package/dist/MSlider-D_O8J9YH.js +739 -0
- package/dist/MSlider-D_O8J9YH.js.map +1 -0
- package/dist/{MSpinner-DZkXZJpc.js → MSpinner-UCdtSOHP.js} +2 -2
- package/dist/{MSpinner-DZkXZJpc.js.map → MSpinner-UCdtSOHP.js.map} +1 -1
- package/dist/{MTextField-CNH-byir.js → MTextField-CYk9yFvi.js} +162 -115
- package/dist/MTextField-CYk9yFvi.js.map +1 -0
- package/dist/_useFieldValidation-B0B44M_t.js +191 -0
- package/dist/_useFieldValidation-B0B44M_t.js.map +1 -0
- package/dist/api.json +1 -1
- package/dist/code-editor.js +184 -103
- package/dist/code-editor.js.map +1 -1
- package/dist/components/MAddressField.vue.d.ts +18 -3
- package/dist/components/MAppBarWithSearch.vue.d.ts +1 -1
- package/dist/components/MAudioRecorder.vue.d.ts +2 -2
- package/dist/components/MAutocomplete.vue.d.ts +22 -3
- package/dist/components/MCheckbox.vue.d.ts +23 -1
- package/dist/components/MCodeEditor.vue.d.ts +23 -1
- package/dist/components/MColorPicker.vue.d.ts +24 -3
- package/dist/components/MConfirmDialog.vue.d.ts +2 -2
- package/dist/components/MCountrySelect.vue.d.ts +13 -2
- package/dist/components/MCreditCardInput.vue.d.ts +33 -0
- package/dist/components/MCronField.vue.d.ts +23 -1
- package/dist/components/MDataTable.vue.d.ts +1 -1
- package/dist/components/MDatePicker.vue.d.ts +24 -3
- package/dist/components/MDateRangePicker.vue.d.ts +24 -3
- package/dist/components/MFileUpload.vue.d.ts +23 -2
- package/dist/components/MForm.vue.d.ts +61 -0
- package/dist/components/MFormBuilder.vue.d.ts +22 -0
- package/dist/components/MFormRenderer.vue.d.ts +151 -0
- package/dist/components/MJsonEditor.vue.d.ts +23 -1
- package/dist/components/MMapRoute.vue.d.ts +176 -0
- package/dist/components/MMaskField.vue.d.ts +20 -2
- package/dist/components/MMentionField.vue.d.ts +13 -2
- package/dist/components/MMultiAutocomplete.vue.d.ts +22 -3
- package/dist/components/MMultiSelect.vue.d.ts +22 -3
- package/dist/components/MNavigationRail.vue.d.ts +1 -1
- package/dist/components/MNotificationCenter.vue.d.ts +2 -2
- package/dist/components/MNumberField.vue.d.ts +20 -2
- package/dist/components/MPdfSigner.vue.d.ts +499 -0
- package/dist/components/MPdfViewer.vue.d.ts +12 -0
- package/dist/components/MPhoneInput.vue.d.ts +19 -4
- package/dist/components/MPinInput.vue.d.ts +24 -3
- package/dist/components/MPosKeypad.vue.d.ts +3 -3
- package/dist/components/MRadioGroup.vue.d.ts +23 -1
- package/dist/components/MRating.vue.d.ts +23 -1
- package/dist/components/MRichTextEditor.vue.d.ts +23 -1
- package/dist/components/MSearchBar.vue.d.ts +1 -1
- package/dist/components/MSegmentedButton.vue.d.ts +23 -2
- package/dist/components/MSelect.vue.d.ts +22 -3
- package/dist/components/MSignaturePad.vue.d.ts +19 -0
- package/dist/components/MSlider.vue.d.ts +23 -1
- package/dist/components/MSpreadsheet.vue.d.ts +137 -0
- package/dist/components/MStack.vue.d.ts +1 -1
- package/dist/components/MSwitch.vue.d.ts +23 -1
- package/dist/components/MTable.vue.d.ts +1 -1
- package/dist/components/MTagInput.vue.d.ts +20 -2
- package/dist/components/MText.vue.d.ts +1 -1
- package/dist/components/MTextField.vue.d.ts +26 -3
- package/dist/components/MTimePicker.vue.d.ts +24 -3
- package/dist/components/MTimezoneSelect.vue.d.ts +13 -2
- package/dist/components/MTour.vue.d.ts +2 -2
- package/dist/components/MTrackingTimeline.vue.d.ts +75 -0
- package/dist/components/MWindow.vue.d.ts +2 -2
- package/dist/composables/_routeGeometry.d.ts +26 -0
- package/dist/composables/_useFieldValidation.d.ts +91 -0
- package/dist/composables/mapRouting.d.ts +35 -0
- package/dist/composables/pdfSign.d.ts +52 -0
- package/dist/composables/spreadsheetFormula.d.ts +55 -0
- package/dist/composables/useLocale.d.ts +177 -0
- package/dist/composables/validation.d.ts +82 -0
- package/dist/draw.js +2 -2
- package/dist/flow.js +1 -1
- package/dist/gantt.js +2 -2
- package/dist/index.d.ts +12 -0
- package/dist/locales/index.js +693 -7
- package/dist/locales/index.js.map +1 -1
- package/dist/m3ui-vue.css +1 -1
- package/dist/m3ui.js +15507 -12417
- package/dist/m3ui.js.map +1 -1
- package/dist/map.d.ts +4 -0
- package/dist/map.js +1207 -745
- package/dist/map.js.map +1 -1
- package/dist/media.js +4 -4
- package/dist/pdf.d.ts +3 -0
- package/dist/pdf.js +1228 -687
- package/dist/pdf.js.map +1 -1
- package/dist/rich-text-editor.js +188 -146
- package/dist/rich-text-editor.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/{useLocale-DaVSTdm0.js → useLocale-DL96OFgr.js} +99 -1
- package/dist/useLocale-DL96OFgr.js.map +1 -0
- package/package.json +5 -1
- package/src/__tests__/MForm.test.ts +325 -0
- package/src/__tests__/MFormRenderer.test.ts +157 -0
- package/src/__tests__/MMapRoute.test.ts +418 -0
- package/src/__tests__/MPdfSigner.test.ts +175 -0
- package/src/__tests__/MPhoneInput.test.ts +5 -2
- package/src/__tests__/MRichTextEditor.test.ts +2 -1
- package/src/__tests__/MSpreadsheet.test.ts +223 -0
- package/src/__tests__/MTrackingTimeline.test.ts +66 -0
- package/src/__tests__/_fakeMaplibre.ts +4 -1
- package/src/__tests__/_osrmRoutes.ts +10 -0
- package/src/__tests__/attrsFallthrough.test.ts +11 -0
- package/src/__tests__/fieldsValidation.test.ts +229 -0
- package/src/__tests__/spreadsheetFormula.test.ts +77 -0
- package/src/__tests__/ssr.test.ts +4 -0
- package/src/__tests__/validation.test.ts +77 -0
- package/src/components/MAddressField.vue +45 -8
- package/src/components/MAutocomplete.vue +69 -23
- package/src/components/MCheckbox.vue +80 -17
- package/src/components/MCodeEditor.vue +59 -2
- package/src/components/MColorPicker.vue +65 -16
- package/src/components/MCountrySelect.vue +17 -3
- package/src/components/MCreditCardInput.vue +76 -7
- package/src/components/MCronField.vue +60 -10
- package/src/components/MDatePicker.vue +65 -16
- package/src/components/MDateRangePicker.vue +66 -16
- package/src/components/MFileUpload.vue +71 -8
- package/src/components/MForm.vue +208 -0
- package/src/components/MFormBuilder.vue +417 -0
- package/src/components/MFormRenderer.vue +324 -0
- package/src/components/MJsonEditor.vue +57 -3
- package/src/components/MMapRoute.vue +523 -0
- package/src/components/MMaskField.vue +55 -13
- package/src/components/MMentionField.vue +17 -2
- package/src/components/MMultiAutocomplete.vue +70 -23
- package/src/components/MMultiSelect.vue +70 -23
- package/src/components/MNumberField.vue +58 -16
- package/src/components/MPdfSigner.vue +433 -0
- package/src/components/MPdfViewer.vue +12 -0
- package/src/components/MPhoneInput.vue +60 -18
- package/src/components/MPinInput.vue +58 -10
- package/src/components/MRadioGroup.vue +65 -4
- package/src/components/MRating.vue +62 -6
- package/src/components/MRichTextEditor.vue +64 -4
- package/src/components/MSegmentedButton.vue +59 -2
- package/src/components/MSelect.vue +72 -26
- package/src/components/MSignaturePad.vue +71 -6
- package/src/components/MSlider.vue +61 -10
- package/src/components/MSpreadsheet.vue +992 -0
- package/src/components/MSwitch.vue +63 -8
- package/src/components/MTagInput.vue +67 -25
- package/src/components/MTextField.vue +68 -14
- package/src/components/MTimePicker.vue +65 -16
- package/src/components/MTimezoneSelect.vue +17 -3
- package/src/components/MTrackingTimeline.vue +257 -0
- package/src/composables/_routeGeometry.ts +140 -0
- package/src/composables/_useFieldValidation.ts +287 -0
- package/src/composables/mapRouting.ts +55 -0
- package/src/composables/pdfSign.ts +141 -0
- package/src/composables/spreadsheetFormula.ts +459 -0
- package/src/composables/useLocale.ts +277 -0
- package/src/composables/validation.ts +178 -0
- package/src/index.ts +12 -0
- package/src/locales/de.ts +98 -0
- package/src/locales/es.ts +105 -7
- package/src/locales/fr.ts +98 -0
- package/src/locales/ja.ts +98 -0
- package/src/locales/ko.ts +98 -0
- package/src/locales/pt.ts +98 -0
- package/src/locales/zh.ts +98 -0
- package/src/map.ts +4 -0
- package/src/pdf.ts +3 -0
- package/dist/MButton-OQ4wIERQ.js +0 -171
- package/dist/MButton-OQ4wIERQ.js.map +0 -1
- package/dist/MDialog-DYMnaBlt.js +0 -167
- package/dist/MDialog-DYMnaBlt.js.map +0 -1
- package/dist/MListItem-D2cNUyzP.js.map +0 -1
- package/dist/MProgressBar-BWly1UKN.js +0 -179
- package/dist/MProgressBar-BWly1UKN.js.map +0 -1
- package/dist/MSegmentedButton-BEB4gXLA.js +0 -64
- package/dist/MSegmentedButton-BEB4gXLA.js.map +0 -1
- package/dist/MSlider-BIkA6DiE.js +0 -690
- package/dist/MSlider-BIkA6DiE.js.map +0 -1
- package/dist/MTextField-CNH-byir.js.map +0 -1
- package/dist/useLocale-DaVSTdm0.js.map +0 -1
|
@@ -0,0 +1,499 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sign and fill a PDF: fields placed on its pages (signature, initials, name, date, text, checkbox) that the signer
|
|
3
|
+
* fills in order, a signature drawn with a finger or mouse or typed, adopted once and reused for every signature
|
|
4
|
+
* field, and `save()` to get the PDF with everything written into it. In `prepare` mode the sender places the
|
|
5
|
+
* fields instead: add, drag, resize, mark required. Fields are plain JSON (`v-model:fields`, positions as fractions
|
|
6
|
+
* of the page), so a backend can store them and send them to each signer (`signer` picks whose fields are active).
|
|
7
|
+
* Built on MPdfViewer (zoom, search, thumbnails) and MSignaturePad. Writing the PDF needs `pdf-lib`. A visual
|
|
8
|
+
* signature, as e-signature flows show and print; for a certificate-based digital signature (PAdES), sign the
|
|
9
|
+
* saved file on your server. Available from the `/pdf` entry point. Not an M3 spec component.
|
|
10
|
+
*
|
|
11
|
+
* @event update:fields The fields changed (placed, moved, filled)
|
|
12
|
+
* @event complete Every required field is filled (after the last one is)
|
|
13
|
+
* @event finish The signer pressed Finish (every required field is filled): call `save()` here
|
|
14
|
+
* @event loaded The document loaded (MPdfViewer's)
|
|
15
|
+
*/
|
|
16
|
+
import { nextTick } from 'vue';
|
|
17
|
+
import { type PdfSignField, type SignPdfOptions } from '../composables/pdfSign';
|
|
18
|
+
import type { PdfSource } from '../composables/usePdf';
|
|
19
|
+
type __VLS_Props = {
|
|
20
|
+
/** The PDF: a URL, its bytes, or a `File`/`Blob` */
|
|
21
|
+
src?: PdfSource | null;
|
|
22
|
+
/** The fields on its pages (v-model:fields) */
|
|
23
|
+
fields?: PdfSignField[];
|
|
24
|
+
/** `sign`: fill the fields. `prepare`: place them (add, move, resize, delete) */
|
|
25
|
+
mode?: 'sign' | 'prepare';
|
|
26
|
+
/** Whose turn it is: only fields with this `signer` (or none) can be filled; the rest show dimmed */
|
|
27
|
+
signer?: string;
|
|
28
|
+
/** Fills name fields, and starts a typed signature with it */
|
|
29
|
+
signerName?: string;
|
|
30
|
+
/** How date fields write today's date */
|
|
31
|
+
dateFormat?: Intl.DateTimeFormatOptions;
|
|
32
|
+
/** The field types offered in prepare mode */
|
|
33
|
+
types?: PdfSignField['type'][];
|
|
34
|
+
/** The pdf.js worker URL (MPdfViewer's) */
|
|
35
|
+
workerSrc?: string;
|
|
36
|
+
};
|
|
37
|
+
declare function next(): void;
|
|
38
|
+
/** The PDF with the filled fields written into it */
|
|
39
|
+
declare function save(options?: SignPdfOptions): Promise<Uint8Array>;
|
|
40
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
41
|
+
/** The PDF with the filled fields written in (needs `pdf-lib`) */
|
|
42
|
+
save: typeof save;
|
|
43
|
+
/** Scrolls to the next field to fill */
|
|
44
|
+
next: typeof next;
|
|
45
|
+
/** Whether every required field of this signer is filled */
|
|
46
|
+
complete: import("vue").ComputedRef<boolean>;
|
|
47
|
+
/** The viewer underneath (zoom, pages, search) */
|
|
48
|
+
viewer: import("vue").Ref<({
|
|
49
|
+
$: import("vue").ComponentInternalInstance;
|
|
50
|
+
$data: {};
|
|
51
|
+
$props: {
|
|
52
|
+
readonly src?: (PdfSource | null) | undefined;
|
|
53
|
+
readonly title?: string | undefined;
|
|
54
|
+
readonly page?: number | undefined;
|
|
55
|
+
readonly zoom?: import("./MPdfViewer.vue").PdfZoom | undefined;
|
|
56
|
+
readonly rotation?: number | undefined;
|
|
57
|
+
readonly annotations?: import("./MPdfViewer.vue").PdfAnnotation[] | undefined;
|
|
58
|
+
readonly annotate?: boolean | undefined;
|
|
59
|
+
readonly tool?: import("./MPdfViewer.vue").PdfTool | undefined;
|
|
60
|
+
readonly colors?: string[] | undefined;
|
|
61
|
+
readonly inkWidths?: number[] | undefined;
|
|
62
|
+
readonly author?: string | undefined;
|
|
63
|
+
readonly sidebar?: "thumbnails" | "outline" | null | undefined;
|
|
64
|
+
readonly toolbar?: boolean | undefined;
|
|
65
|
+
readonly downloadable?: boolean | undefined;
|
|
66
|
+
readonly fileName?: string | undefined;
|
|
67
|
+
readonly password?: string | undefined;
|
|
68
|
+
readonly workerSrc?: string | undefined;
|
|
69
|
+
readonly minZoom?: number | undefined;
|
|
70
|
+
readonly maxZoom?: number | undefined;
|
|
71
|
+
readonly onLink?: ((args_0: {
|
|
72
|
+
url?: string;
|
|
73
|
+
page?: number;
|
|
74
|
+
}) => any) | undefined;
|
|
75
|
+
readonly onError?: ((args_0: Error) => any) | undefined;
|
|
76
|
+
readonly "onUpdate:tool"?: ((args_0: import("./MPdfViewer.vue").PdfTool) => any) | undefined;
|
|
77
|
+
readonly "onUpdate:page"?: ((args_0: number) => any) | undefined;
|
|
78
|
+
readonly "onUpdate:zoom"?: ((args_0: import("./MPdfViewer.vue").PdfZoom) => any) | undefined;
|
|
79
|
+
readonly "onUpdate:rotation"?: ((args_0: number) => any) | undefined;
|
|
80
|
+
readonly onLoaded?: ((args_0: import("pdfjs-dist/types/src/display/api").PDFDocumentProxy) => any) | undefined;
|
|
81
|
+
readonly "onUpdate:annotations"?: ((args_0: import("./MPdfViewer.vue").PdfAnnotation[]) => any) | undefined;
|
|
82
|
+
readonly "onUpdate:sidebar"?: ((args_0: "outline" | "thumbnails" | null) => any) | undefined;
|
|
83
|
+
readonly "onAnnotation-click"?: ((args_0: import("./MPdfViewer.vue").PdfAnnotation) => any) | undefined;
|
|
84
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
85
|
+
$attrs: import("vue").Attrs;
|
|
86
|
+
$refs: {
|
|
87
|
+
[x: string]: unknown;
|
|
88
|
+
};
|
|
89
|
+
$slots: Readonly<{
|
|
90
|
+
[name: string]: import("vue").Slot<any> | undefined;
|
|
91
|
+
}>;
|
|
92
|
+
$root: import("vue").ComponentPublicInstance | null;
|
|
93
|
+
$parent: import("vue").ComponentPublicInstance | null;
|
|
94
|
+
$host: Element | null;
|
|
95
|
+
$emit: ((event: "link", args_0: {
|
|
96
|
+
url?: string;
|
|
97
|
+
page?: number;
|
|
98
|
+
}) => void) & ((event: "error", args_0: Error) => void) & ((event: "update:tool", args_0: import("./MPdfViewer.vue").PdfTool) => void) & ((event: "update:page", args_0: number) => void) & ((event: "update:zoom", args_0: import("./MPdfViewer.vue").PdfZoom) => void) & ((event: "update:rotation", args_0: number) => void) & ((event: "loaded", args_0: import("pdfjs-dist/types/src/display/api").PDFDocumentProxy) => void) & ((event: "update:annotations", args_0: import("./MPdfViewer.vue").PdfAnnotation[]) => void) & ((event: "update:sidebar", args_0: "outline" | "thumbnails" | null) => void) & ((event: "annotation-click", args_0: import("./MPdfViewer.vue").PdfAnnotation) => void);
|
|
99
|
+
$el: any;
|
|
100
|
+
$options: import("vue").ComponentOptionsBase<Readonly<{
|
|
101
|
+
src?: PdfSource | null;
|
|
102
|
+
title?: string;
|
|
103
|
+
page?: number;
|
|
104
|
+
zoom?: import("./MPdfViewer.vue").PdfZoom;
|
|
105
|
+
rotation?: number;
|
|
106
|
+
annotations?: import("./MPdfViewer.vue").PdfAnnotation[];
|
|
107
|
+
annotate?: boolean;
|
|
108
|
+
tool?: import("./MPdfViewer.vue").PdfTool;
|
|
109
|
+
colors?: string[];
|
|
110
|
+
inkWidths?: number[];
|
|
111
|
+
author?: string;
|
|
112
|
+
sidebar?: "thumbnails" | "outline" | null;
|
|
113
|
+
toolbar?: boolean;
|
|
114
|
+
downloadable?: boolean;
|
|
115
|
+
fileName?: string;
|
|
116
|
+
password?: string;
|
|
117
|
+
workerSrc?: string;
|
|
118
|
+
minZoom?: number;
|
|
119
|
+
maxZoom?: number;
|
|
120
|
+
}> & Readonly<{
|
|
121
|
+
onLink?: ((args_0: {
|
|
122
|
+
url?: string;
|
|
123
|
+
page?: number;
|
|
124
|
+
}) => any) | undefined;
|
|
125
|
+
onError?: ((args_0: Error) => any) | undefined;
|
|
126
|
+
"onUpdate:tool"?: ((args_0: import("./MPdfViewer.vue").PdfTool) => any) | undefined;
|
|
127
|
+
"onUpdate:page"?: ((args_0: number) => any) | undefined;
|
|
128
|
+
"onUpdate:zoom"?: ((args_0: import("./MPdfViewer.vue").PdfZoom) => any) | undefined;
|
|
129
|
+
"onUpdate:rotation"?: ((args_0: number) => any) | undefined;
|
|
130
|
+
onLoaded?: ((args_0: import("pdfjs-dist/types/src/display/api").PDFDocumentProxy) => any) | undefined;
|
|
131
|
+
"onUpdate:annotations"?: ((args_0: import("./MPdfViewer.vue").PdfAnnotation[]) => any) | undefined;
|
|
132
|
+
"onUpdate:sidebar"?: ((args_0: "outline" | "thumbnails" | null) => any) | undefined;
|
|
133
|
+
"onAnnotation-click"?: ((args_0: import("./MPdfViewer.vue").PdfAnnotation) => any) | undefined;
|
|
134
|
+
}>, {
|
|
135
|
+
pdf: import("../pdf.ts").PdfState;
|
|
136
|
+
goToPage: (p: number) => void;
|
|
137
|
+
setZoom: (z: import("./MPdfViewer.vue").PdfZoom) => void;
|
|
138
|
+
search: (q: string) => void;
|
|
139
|
+
undo: () => void;
|
|
140
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
141
|
+
link: (args_0: {
|
|
142
|
+
url?: string;
|
|
143
|
+
page?: number;
|
|
144
|
+
}) => any;
|
|
145
|
+
error: (args_0: Error) => any;
|
|
146
|
+
"update:tool": (args_0: import("./MPdfViewer.vue").PdfTool) => any;
|
|
147
|
+
"update:page": (args_0: number) => any;
|
|
148
|
+
"update:zoom": (args_0: import("./MPdfViewer.vue").PdfZoom) => any;
|
|
149
|
+
"update:rotation": (args_0: number) => any;
|
|
150
|
+
loaded: (args_0: import("pdfjs-dist/types/src/display/api").PDFDocumentProxy) => any;
|
|
151
|
+
"update:annotations": (args_0: import("./MPdfViewer.vue").PdfAnnotation[]) => any;
|
|
152
|
+
"update:sidebar": (args_0: "outline" | "thumbnails" | null) => any;
|
|
153
|
+
"annotation-click": (args_0: import("./MPdfViewer.vue").PdfAnnotation) => any;
|
|
154
|
+
}, string, {
|
|
155
|
+
colors: string[];
|
|
156
|
+
rotation: number;
|
|
157
|
+
page: number;
|
|
158
|
+
minZoom: number;
|
|
159
|
+
maxZoom: number;
|
|
160
|
+
tool: import("./MPdfViewer.vue").PdfTool;
|
|
161
|
+
src: PdfSource | null;
|
|
162
|
+
toolbar: boolean;
|
|
163
|
+
zoom: import("./MPdfViewer.vue").PdfZoom;
|
|
164
|
+
annotations: import("./MPdfViewer.vue").PdfAnnotation[];
|
|
165
|
+
annotate: boolean;
|
|
166
|
+
inkWidths: number[];
|
|
167
|
+
sidebar: "outline" | "thumbnails" | null;
|
|
168
|
+
downloadable: boolean;
|
|
169
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
170
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
171
|
+
created?: (() => void) | (() => void)[];
|
|
172
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
173
|
+
mounted?: (() => void) | (() => void)[];
|
|
174
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
175
|
+
updated?: (() => void) | (() => void)[];
|
|
176
|
+
activated?: (() => void) | (() => void)[];
|
|
177
|
+
deactivated?: (() => void) | (() => void)[];
|
|
178
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
179
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
180
|
+
destroyed?: (() => void) | (() => void)[];
|
|
181
|
+
unmounted?: (() => void) | (() => void)[];
|
|
182
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
183
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
184
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
185
|
+
};
|
|
186
|
+
$forceUpdate: () => void;
|
|
187
|
+
$nextTick: typeof nextTick;
|
|
188
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
|
|
189
|
+
} & Readonly<{
|
|
190
|
+
colors: string[];
|
|
191
|
+
rotation: number;
|
|
192
|
+
page: number;
|
|
193
|
+
minZoom: number;
|
|
194
|
+
maxZoom: number;
|
|
195
|
+
tool: import("./MPdfViewer.vue").PdfTool;
|
|
196
|
+
src: PdfSource | null;
|
|
197
|
+
toolbar: boolean;
|
|
198
|
+
zoom: import("./MPdfViewer.vue").PdfZoom;
|
|
199
|
+
annotations: import("./MPdfViewer.vue").PdfAnnotation[];
|
|
200
|
+
annotate: boolean;
|
|
201
|
+
inkWidths: number[];
|
|
202
|
+
sidebar: "outline" | "thumbnails" | null;
|
|
203
|
+
downloadable: boolean;
|
|
204
|
+
}> & Omit<Readonly<{
|
|
205
|
+
src?: PdfSource | null;
|
|
206
|
+
title?: string;
|
|
207
|
+
page?: number;
|
|
208
|
+
zoom?: import("./MPdfViewer.vue").PdfZoom;
|
|
209
|
+
rotation?: number;
|
|
210
|
+
annotations?: import("./MPdfViewer.vue").PdfAnnotation[];
|
|
211
|
+
annotate?: boolean;
|
|
212
|
+
tool?: import("./MPdfViewer.vue").PdfTool;
|
|
213
|
+
colors?: string[];
|
|
214
|
+
inkWidths?: number[];
|
|
215
|
+
author?: string;
|
|
216
|
+
sidebar?: "thumbnails" | "outline" | null;
|
|
217
|
+
toolbar?: boolean;
|
|
218
|
+
downloadable?: boolean;
|
|
219
|
+
fileName?: string;
|
|
220
|
+
password?: string;
|
|
221
|
+
workerSrc?: string;
|
|
222
|
+
minZoom?: number;
|
|
223
|
+
maxZoom?: number;
|
|
224
|
+
}> & Readonly<{
|
|
225
|
+
onLink?: ((args_0: {
|
|
226
|
+
url?: string;
|
|
227
|
+
page?: number;
|
|
228
|
+
}) => any) | undefined;
|
|
229
|
+
onError?: ((args_0: Error) => any) | undefined;
|
|
230
|
+
"onUpdate:tool"?: ((args_0: import("./MPdfViewer.vue").PdfTool) => any) | undefined;
|
|
231
|
+
"onUpdate:page"?: ((args_0: number) => any) | undefined;
|
|
232
|
+
"onUpdate:zoom"?: ((args_0: import("./MPdfViewer.vue").PdfZoom) => any) | undefined;
|
|
233
|
+
"onUpdate:rotation"?: ((args_0: number) => any) | undefined;
|
|
234
|
+
onLoaded?: ((args_0: import("pdfjs-dist/types/src/display/api").PDFDocumentProxy) => any) | undefined;
|
|
235
|
+
"onUpdate:annotations"?: ((args_0: import("./MPdfViewer.vue").PdfAnnotation[]) => any) | undefined;
|
|
236
|
+
"onUpdate:sidebar"?: ((args_0: "outline" | "thumbnails" | null) => any) | undefined;
|
|
237
|
+
"onAnnotation-click"?: ((args_0: import("./MPdfViewer.vue").PdfAnnotation) => any) | undefined;
|
|
238
|
+
}>, "search" | "undo" | "pdf" | "goToPage" | "setZoom" | ("colors" | "rotation" | "page" | "minZoom" | "maxZoom" | "tool" | "src" | "toolbar" | "zoom" | "annotations" | "annotate" | "inkWidths" | "sidebar" | "downloadable")> & {
|
|
239
|
+
pdf: import("../pdf.ts").PdfState;
|
|
240
|
+
goToPage: (p: number) => void;
|
|
241
|
+
setZoom: (z: import("./MPdfViewer.vue").PdfZoom) => void;
|
|
242
|
+
search: (q: string) => void;
|
|
243
|
+
undo: () => void;
|
|
244
|
+
} & {} & import("vue").ComponentCustomProperties & {} & {
|
|
245
|
+
$slots: {
|
|
246
|
+
actions?: (props: {
|
|
247
|
+
pdf: import("../pdf.ts").PdfState;
|
|
248
|
+
}) => any;
|
|
249
|
+
} & {
|
|
250
|
+
page?: (props: {
|
|
251
|
+
page: number;
|
|
252
|
+
width: number;
|
|
253
|
+
height: number;
|
|
254
|
+
scale: number;
|
|
255
|
+
rotation: number;
|
|
256
|
+
size: {
|
|
257
|
+
width: number;
|
|
258
|
+
height: number;
|
|
259
|
+
} | undefined;
|
|
260
|
+
}) => any;
|
|
261
|
+
} & {
|
|
262
|
+
empty?: (props: {}) => any;
|
|
263
|
+
};
|
|
264
|
+
}) | undefined, ({
|
|
265
|
+
$: import("vue").ComponentInternalInstance;
|
|
266
|
+
$data: {};
|
|
267
|
+
$props: {
|
|
268
|
+
readonly src?: (PdfSource | null) | undefined;
|
|
269
|
+
readonly title?: string | undefined;
|
|
270
|
+
readonly page?: number | undefined;
|
|
271
|
+
readonly zoom?: import("./MPdfViewer.vue").PdfZoom | undefined;
|
|
272
|
+
readonly rotation?: number | undefined;
|
|
273
|
+
readonly annotations?: import("./MPdfViewer.vue").PdfAnnotation[] | undefined;
|
|
274
|
+
readonly annotate?: boolean | undefined;
|
|
275
|
+
readonly tool?: import("./MPdfViewer.vue").PdfTool | undefined;
|
|
276
|
+
readonly colors?: string[] | undefined;
|
|
277
|
+
readonly inkWidths?: number[] | undefined;
|
|
278
|
+
readonly author?: string | undefined;
|
|
279
|
+
readonly sidebar?: "thumbnails" | "outline" | null | undefined;
|
|
280
|
+
readonly toolbar?: boolean | undefined;
|
|
281
|
+
readonly downloadable?: boolean | undefined;
|
|
282
|
+
readonly fileName?: string | undefined;
|
|
283
|
+
readonly password?: string | undefined;
|
|
284
|
+
readonly workerSrc?: string | undefined;
|
|
285
|
+
readonly minZoom?: number | undefined;
|
|
286
|
+
readonly maxZoom?: number | undefined;
|
|
287
|
+
readonly onLink?: ((args_0: {
|
|
288
|
+
url?: string;
|
|
289
|
+
page?: number;
|
|
290
|
+
}) => any) | undefined;
|
|
291
|
+
readonly onError?: ((args_0: Error) => any) | undefined;
|
|
292
|
+
readonly "onUpdate:tool"?: ((args_0: import("./MPdfViewer.vue").PdfTool) => any) | undefined;
|
|
293
|
+
readonly "onUpdate:page"?: ((args_0: number) => any) | undefined;
|
|
294
|
+
readonly "onUpdate:zoom"?: ((args_0: import("./MPdfViewer.vue").PdfZoom) => any) | undefined;
|
|
295
|
+
readonly "onUpdate:rotation"?: ((args_0: number) => any) | undefined;
|
|
296
|
+
readonly onLoaded?: ((args_0: import("pdfjs-dist/types/src/display/api").PDFDocumentProxy) => any) | undefined;
|
|
297
|
+
readonly "onUpdate:annotations"?: ((args_0: import("./MPdfViewer.vue").PdfAnnotation[]) => any) | undefined;
|
|
298
|
+
readonly "onUpdate:sidebar"?: ((args_0: "outline" | "thumbnails" | null) => any) | undefined;
|
|
299
|
+
readonly "onAnnotation-click"?: ((args_0: import("./MPdfViewer.vue").PdfAnnotation) => any) | undefined;
|
|
300
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
301
|
+
$attrs: import("vue").Attrs;
|
|
302
|
+
$refs: {
|
|
303
|
+
[x: string]: unknown;
|
|
304
|
+
};
|
|
305
|
+
$slots: Readonly<{
|
|
306
|
+
[name: string]: import("vue").Slot<any> | undefined;
|
|
307
|
+
}>;
|
|
308
|
+
$root: import("vue").ComponentPublicInstance | null;
|
|
309
|
+
$parent: import("vue").ComponentPublicInstance | null;
|
|
310
|
+
$host: Element | null;
|
|
311
|
+
$emit: ((event: "link", args_0: {
|
|
312
|
+
url?: string;
|
|
313
|
+
page?: number;
|
|
314
|
+
}) => void) & ((event: "error", args_0: Error) => void) & ((event: "update:tool", args_0: import("./MPdfViewer.vue").PdfTool) => void) & ((event: "update:page", args_0: number) => void) & ((event: "update:zoom", args_0: import("./MPdfViewer.vue").PdfZoom) => void) & ((event: "update:rotation", args_0: number) => void) & ((event: "loaded", args_0: import("pdfjs-dist/types/src/display/api").PDFDocumentProxy) => void) & ((event: "update:annotations", args_0: import("./MPdfViewer.vue").PdfAnnotation[]) => void) & ((event: "update:sidebar", args_0: "outline" | "thumbnails" | null) => void) & ((event: "annotation-click", args_0: import("./MPdfViewer.vue").PdfAnnotation) => void);
|
|
315
|
+
$el: any;
|
|
316
|
+
$options: import("vue").ComponentOptionsBase<Readonly<{
|
|
317
|
+
src?: PdfSource | null;
|
|
318
|
+
title?: string;
|
|
319
|
+
page?: number;
|
|
320
|
+
zoom?: import("./MPdfViewer.vue").PdfZoom;
|
|
321
|
+
rotation?: number;
|
|
322
|
+
annotations?: import("./MPdfViewer.vue").PdfAnnotation[];
|
|
323
|
+
annotate?: boolean;
|
|
324
|
+
tool?: import("./MPdfViewer.vue").PdfTool;
|
|
325
|
+
colors?: string[];
|
|
326
|
+
inkWidths?: number[];
|
|
327
|
+
author?: string;
|
|
328
|
+
sidebar?: "thumbnails" | "outline" | null;
|
|
329
|
+
toolbar?: boolean;
|
|
330
|
+
downloadable?: boolean;
|
|
331
|
+
fileName?: string;
|
|
332
|
+
password?: string;
|
|
333
|
+
workerSrc?: string;
|
|
334
|
+
minZoom?: number;
|
|
335
|
+
maxZoom?: number;
|
|
336
|
+
}> & Readonly<{
|
|
337
|
+
onLink?: ((args_0: {
|
|
338
|
+
url?: string;
|
|
339
|
+
page?: number;
|
|
340
|
+
}) => any) | undefined;
|
|
341
|
+
onError?: ((args_0: Error) => any) | undefined;
|
|
342
|
+
"onUpdate:tool"?: ((args_0: import("./MPdfViewer.vue").PdfTool) => any) | undefined;
|
|
343
|
+
"onUpdate:page"?: ((args_0: number) => any) | undefined;
|
|
344
|
+
"onUpdate:zoom"?: ((args_0: import("./MPdfViewer.vue").PdfZoom) => any) | undefined;
|
|
345
|
+
"onUpdate:rotation"?: ((args_0: number) => any) | undefined;
|
|
346
|
+
onLoaded?: ((args_0: import("pdfjs-dist/types/src/display/api").PDFDocumentProxy) => any) | undefined;
|
|
347
|
+
"onUpdate:annotations"?: ((args_0: import("./MPdfViewer.vue").PdfAnnotation[]) => any) | undefined;
|
|
348
|
+
"onUpdate:sidebar"?: ((args_0: "outline" | "thumbnails" | null) => any) | undefined;
|
|
349
|
+
"onAnnotation-click"?: ((args_0: import("./MPdfViewer.vue").PdfAnnotation) => any) | undefined;
|
|
350
|
+
}>, {
|
|
351
|
+
pdf: import("../pdf.ts").PdfState;
|
|
352
|
+
goToPage: (p: number) => void;
|
|
353
|
+
setZoom: (z: import("./MPdfViewer.vue").PdfZoom) => void;
|
|
354
|
+
search: (q: string) => void;
|
|
355
|
+
undo: () => void;
|
|
356
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
357
|
+
link: (args_0: {
|
|
358
|
+
url?: string;
|
|
359
|
+
page?: number;
|
|
360
|
+
}) => any;
|
|
361
|
+
error: (args_0: Error) => any;
|
|
362
|
+
"update:tool": (args_0: import("./MPdfViewer.vue").PdfTool) => any;
|
|
363
|
+
"update:page": (args_0: number) => any;
|
|
364
|
+
"update:zoom": (args_0: import("./MPdfViewer.vue").PdfZoom) => any;
|
|
365
|
+
"update:rotation": (args_0: number) => any;
|
|
366
|
+
loaded: (args_0: import("pdfjs-dist/types/src/display/api").PDFDocumentProxy) => any;
|
|
367
|
+
"update:annotations": (args_0: import("./MPdfViewer.vue").PdfAnnotation[]) => any;
|
|
368
|
+
"update:sidebar": (args_0: "outline" | "thumbnails" | null) => any;
|
|
369
|
+
"annotation-click": (args_0: import("./MPdfViewer.vue").PdfAnnotation) => any;
|
|
370
|
+
}, string, {
|
|
371
|
+
colors: string[];
|
|
372
|
+
rotation: number;
|
|
373
|
+
page: number;
|
|
374
|
+
minZoom: number;
|
|
375
|
+
maxZoom: number;
|
|
376
|
+
tool: import("./MPdfViewer.vue").PdfTool;
|
|
377
|
+
src: PdfSource | null;
|
|
378
|
+
toolbar: boolean;
|
|
379
|
+
zoom: import("./MPdfViewer.vue").PdfZoom;
|
|
380
|
+
annotations: import("./MPdfViewer.vue").PdfAnnotation[];
|
|
381
|
+
annotate: boolean;
|
|
382
|
+
inkWidths: number[];
|
|
383
|
+
sidebar: "outline" | "thumbnails" | null;
|
|
384
|
+
downloadable: boolean;
|
|
385
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
386
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
387
|
+
created?: (() => void) | (() => void)[];
|
|
388
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
389
|
+
mounted?: (() => void) | (() => void)[];
|
|
390
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
391
|
+
updated?: (() => void) | (() => void)[];
|
|
392
|
+
activated?: (() => void) | (() => void)[];
|
|
393
|
+
deactivated?: (() => void) | (() => void)[];
|
|
394
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
395
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
396
|
+
destroyed?: (() => void) | (() => void)[];
|
|
397
|
+
unmounted?: (() => void) | (() => void)[];
|
|
398
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
399
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
400
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
401
|
+
};
|
|
402
|
+
$forceUpdate: () => void;
|
|
403
|
+
$nextTick: typeof nextTick;
|
|
404
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
|
|
405
|
+
} & Readonly<{
|
|
406
|
+
colors: string[];
|
|
407
|
+
rotation: number;
|
|
408
|
+
page: number;
|
|
409
|
+
minZoom: number;
|
|
410
|
+
maxZoom: number;
|
|
411
|
+
tool: import("./MPdfViewer.vue").PdfTool;
|
|
412
|
+
src: PdfSource | null;
|
|
413
|
+
toolbar: boolean;
|
|
414
|
+
zoom: import("./MPdfViewer.vue").PdfZoom;
|
|
415
|
+
annotations: import("./MPdfViewer.vue").PdfAnnotation[];
|
|
416
|
+
annotate: boolean;
|
|
417
|
+
inkWidths: number[];
|
|
418
|
+
sidebar: "outline" | "thumbnails" | null;
|
|
419
|
+
downloadable: boolean;
|
|
420
|
+
}> & Omit<Readonly<{
|
|
421
|
+
src?: PdfSource | null;
|
|
422
|
+
title?: string;
|
|
423
|
+
page?: number;
|
|
424
|
+
zoom?: import("./MPdfViewer.vue").PdfZoom;
|
|
425
|
+
rotation?: number;
|
|
426
|
+
annotations?: import("./MPdfViewer.vue").PdfAnnotation[];
|
|
427
|
+
annotate?: boolean;
|
|
428
|
+
tool?: import("./MPdfViewer.vue").PdfTool;
|
|
429
|
+
colors?: string[];
|
|
430
|
+
inkWidths?: number[];
|
|
431
|
+
author?: string;
|
|
432
|
+
sidebar?: "thumbnails" | "outline" | null;
|
|
433
|
+
toolbar?: boolean;
|
|
434
|
+
downloadable?: boolean;
|
|
435
|
+
fileName?: string;
|
|
436
|
+
password?: string;
|
|
437
|
+
workerSrc?: string;
|
|
438
|
+
minZoom?: number;
|
|
439
|
+
maxZoom?: number;
|
|
440
|
+
}> & Readonly<{
|
|
441
|
+
onLink?: ((args_0: {
|
|
442
|
+
url?: string;
|
|
443
|
+
page?: number;
|
|
444
|
+
}) => any) | undefined;
|
|
445
|
+
onError?: ((args_0: Error) => any) | undefined;
|
|
446
|
+
"onUpdate:tool"?: ((args_0: import("./MPdfViewer.vue").PdfTool) => any) | undefined;
|
|
447
|
+
"onUpdate:page"?: ((args_0: number) => any) | undefined;
|
|
448
|
+
"onUpdate:zoom"?: ((args_0: import("./MPdfViewer.vue").PdfZoom) => any) | undefined;
|
|
449
|
+
"onUpdate:rotation"?: ((args_0: number) => any) | undefined;
|
|
450
|
+
onLoaded?: ((args_0: import("pdfjs-dist/types/src/display/api").PDFDocumentProxy) => any) | undefined;
|
|
451
|
+
"onUpdate:annotations"?: ((args_0: import("./MPdfViewer.vue").PdfAnnotation[]) => any) | undefined;
|
|
452
|
+
"onUpdate:sidebar"?: ((args_0: "outline" | "thumbnails" | null) => any) | undefined;
|
|
453
|
+
"onAnnotation-click"?: ((args_0: import("./MPdfViewer.vue").PdfAnnotation) => any) | undefined;
|
|
454
|
+
}>, "search" | "undo" | "pdf" | "goToPage" | "setZoom" | ("colors" | "rotation" | "page" | "minZoom" | "maxZoom" | "tool" | "src" | "toolbar" | "zoom" | "annotations" | "annotate" | "inkWidths" | "sidebar" | "downloadable")> & {
|
|
455
|
+
pdf: import("../pdf.ts").PdfState;
|
|
456
|
+
goToPage: (p: number) => void;
|
|
457
|
+
setZoom: (z: import("./MPdfViewer.vue").PdfZoom) => void;
|
|
458
|
+
search: (q: string) => void;
|
|
459
|
+
undo: () => void;
|
|
460
|
+
} & {} & import("vue").ComponentCustomProperties & {} & {
|
|
461
|
+
$slots: {
|
|
462
|
+
actions?: (props: {
|
|
463
|
+
pdf: import("../pdf.ts").PdfState;
|
|
464
|
+
}) => any;
|
|
465
|
+
} & {
|
|
466
|
+
page?: (props: {
|
|
467
|
+
page: number;
|
|
468
|
+
width: number;
|
|
469
|
+
height: number;
|
|
470
|
+
scale: number;
|
|
471
|
+
rotation: number;
|
|
472
|
+
size: {
|
|
473
|
+
width: number;
|
|
474
|
+
height: number;
|
|
475
|
+
} | undefined;
|
|
476
|
+
}) => any;
|
|
477
|
+
} & {
|
|
478
|
+
empty?: (props: {}) => any;
|
|
479
|
+
};
|
|
480
|
+
}) | undefined>;
|
|
481
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
482
|
+
finish: () => any;
|
|
483
|
+
complete: () => any;
|
|
484
|
+
loaded: (doc: unknown) => any;
|
|
485
|
+
"update:fields": (fields: PdfSignField[]) => any;
|
|
486
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
487
|
+
onFinish?: (() => any) | undefined;
|
|
488
|
+
onComplete?: (() => any) | undefined;
|
|
489
|
+
onLoaded?: ((doc: unknown) => any) | undefined;
|
|
490
|
+
"onUpdate:fields"?: ((fields: PdfSignField[]) => any) | undefined;
|
|
491
|
+
}>, {
|
|
492
|
+
mode: "sign" | "prepare";
|
|
493
|
+
fields: PdfSignField[];
|
|
494
|
+
src: PdfSource | null;
|
|
495
|
+
types: ("text" | "name" | "checkbox" | "date" | "signature" | "initials")[];
|
|
496
|
+
dateFormat: Intl.DateTimeFormatOptions;
|
|
497
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
498
|
+
declare const _default: typeof __VLS_export;
|
|
499
|
+
export default _default;
|
|
@@ -164,6 +164,18 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
164
164
|
actions?: (props: {
|
|
165
165
|
pdf: import("../pdf.ts").PdfState;
|
|
166
166
|
}) => any;
|
|
167
|
+
} & {
|
|
168
|
+
page?: (props: {
|
|
169
|
+
page: number;
|
|
170
|
+
width: number;
|
|
171
|
+
height: number;
|
|
172
|
+
scale: number;
|
|
173
|
+
rotation: number;
|
|
174
|
+
size: {
|
|
175
|
+
width: number;
|
|
176
|
+
height: number;
|
|
177
|
+
} | undefined;
|
|
178
|
+
}) => any;
|
|
167
179
|
} & {
|
|
168
180
|
empty?: (props: {}) => any;
|
|
169
181
|
}>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ValidateOn, ValidationRule } from '../composables/validation';
|
|
1
2
|
type __VLS_Props = {
|
|
2
3
|
/** The number in E.164 (`+541123456789`), or null (v-model) */
|
|
3
4
|
modelValue?: string | null;
|
|
@@ -13,17 +14,25 @@ type __VLS_Props = {
|
|
|
13
14
|
preferred?: string[];
|
|
14
15
|
/** Visual style */
|
|
15
16
|
variant?: 'filled' | 'outlined';
|
|
16
|
-
/** Puts the field in error state */
|
|
17
|
-
error?: boolean;
|
|
17
|
+
/** Puts the field in error state. A string is also the message */
|
|
18
|
+
error?: boolean | string;
|
|
18
19
|
/** Error message below the field (when `error`, or when `validate` finds the number incomplete) */
|
|
19
20
|
errorLabel?: string;
|
|
21
|
+
/** More validation rules (functions or a Standard Schema), run on the E.164 value; see `MForm` */
|
|
22
|
+
rules?: ValidationRule | ValidationRule[];
|
|
23
|
+
/** When the rules are checked and shown: on leaving the field (default), while typing, or only on submit */
|
|
24
|
+
validateOn?: ValidateOn;
|
|
25
|
+
/** Wait this long (ms) after the value stops changing before re-checking (one request for an async rule, not one per key). Defaults to its `MForm`'s */
|
|
26
|
+
validateDebounce?: number;
|
|
27
|
+
/** The key of this field in its `MForm` */
|
|
28
|
+
name?: string;
|
|
20
29
|
/** Hint text below the field */
|
|
21
30
|
hint?: string;
|
|
22
31
|
/** Disables the field */
|
|
23
32
|
disabled?: boolean;
|
|
24
33
|
/** Marks as required — adds a red asterisk after the label */
|
|
25
34
|
required?: boolean;
|
|
26
|
-
/** After leaving the field, show an error when the number doesn't fit its country's length */
|
|
35
|
+
/** After leaving the field, show an error when the number doesn't fit its country's length (and block an `MForm`'s submit) */
|
|
27
36
|
validate?: boolean;
|
|
28
37
|
/** Placeholder; defaults to an example in the country's format */
|
|
29
38
|
placeholder?: string;
|
|
@@ -48,21 +57,27 @@ declare const __VLS_template: () => {
|
|
|
48
57
|
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
49
58
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
50
59
|
focus: (options?: FocusOptions) => void | undefined;
|
|
60
|
+
/** Checks its rules (and the number's length) and shows the result; resolves to whether they pass */
|
|
61
|
+
validate: () => Promise<boolean>;
|
|
62
|
+
/** Hides its validation error (until the next check) */
|
|
63
|
+
resetValidation: () => void;
|
|
51
64
|
/** Whether the number fits its country's length */
|
|
52
65
|
valid: import("vue").ComputedRef<boolean>;
|
|
53
66
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
67
|
+
blur: () => any;
|
|
54
68
|
"update:modelValue": (args_0: string | null) => any;
|
|
55
69
|
"update:country": (args_0: string) => any;
|
|
56
70
|
"update:valid": (args_0: boolean) => any;
|
|
57
71
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
72
|
+
onBlur?: (() => any) | undefined;
|
|
58
73
|
"onUpdate:modelValue"?: ((args_0: string | null) => any) | undefined;
|
|
59
74
|
"onUpdate:country"?: ((args_0: string) => any) | undefined;
|
|
60
75
|
"onUpdate:valid"?: ((args_0: boolean) => any) | undefined;
|
|
61
76
|
}>, {
|
|
62
77
|
modelValue: string | null;
|
|
78
|
+
validate: boolean;
|
|
63
79
|
variant: "filled" | "outlined";
|
|
64
80
|
flags: boolean;
|
|
65
|
-
validate: boolean;
|
|
66
81
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
67
82
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
68
83
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ValidateOn, ValidationRule } from '../composables/validation';
|
|
1
2
|
type __VLS_Props = {
|
|
2
3
|
/** Bound code (v-model), e.g. "1234" */
|
|
3
4
|
modelValue: string;
|
|
@@ -13,10 +14,23 @@ type __VLS_Props = {
|
|
|
13
14
|
masked?: boolean;
|
|
14
15
|
/** Visual style */
|
|
15
16
|
variant?: 'filled' | 'outlined';
|
|
16
|
-
/** Error state */
|
|
17
|
-
error?: boolean;
|
|
17
|
+
/** Error state. A string is also the message (`:error="errors.x"`) */
|
|
18
|
+
error?: boolean | string;
|
|
18
19
|
/** Error message shown when error is true */
|
|
19
20
|
errorLabel?: string;
|
|
21
|
+
/** Marks as required — adds a red asterisk after the label; inside an `MForm` or with `rules`, also validates it */
|
|
22
|
+
required?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Validation rules: functions `(value, ctx) => true | 'message'` (may be async; see the built-in `required`,
|
|
25
|
+
* `email`, `minLength`…) or a Standard Schema (zod, valibot…). Checked in order; the first failure is shown
|
|
26
|
+
*/
|
|
27
|
+
rules?: ValidationRule | ValidationRule[];
|
|
28
|
+
/** When the rules are checked and shown: on leaving the field (default; live after that), while typing, or only on submit (`MForm`) */
|
|
29
|
+
validateOn?: ValidateOn;
|
|
30
|
+
/** Wait this long (ms) after the value stops changing before re-checking (one request for an async rule, not one per key). Defaults to its `MForm`'s */
|
|
31
|
+
validateDebounce?: number;
|
|
32
|
+
/** The key of this field in its `MForm`'s values, errors and schema */
|
|
33
|
+
name?: string;
|
|
20
34
|
/** Hint text below the boxes */
|
|
21
35
|
hint?: string;
|
|
22
36
|
/** Disables every box */
|
|
@@ -26,10 +40,17 @@ type __VLS_Props = {
|
|
|
26
40
|
/** aria-label for the group of boxes */
|
|
27
41
|
label?: string;
|
|
28
42
|
};
|
|
29
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
43
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
44
|
+
/** Checks its rules and shows the result; resolves to whether they pass */
|
|
45
|
+
validate: () => Promise<boolean>;
|
|
46
|
+
/** Hides its validation error (until the next check) */
|
|
47
|
+
resetValidation: () => void;
|
|
48
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
49
|
+
blur: () => any;
|
|
30
50
|
"update:modelValue": (args_0: string) => any;
|
|
31
51
|
complete: (args_0: string) => any;
|
|
32
52
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
53
|
+
onBlur?: (() => any) | undefined;
|
|
33
54
|
"onUpdate:modelValue"?: ((args_0: string) => any) | undefined;
|
|
34
55
|
onComplete?: ((args_0: string) => any) | undefined;
|
|
35
56
|
}>, {
|
|
@@ -58,15 +58,15 @@ declare const __VLS_template: () => {
|
|
|
58
58
|
};
|
|
59
59
|
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
60
60
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
61
|
-
"update:modelValue": (args_0: string) => any;
|
|
62
61
|
submit: (args_0: string) => any;
|
|
62
|
+
"update:modelValue": (args_0: string) => any;
|
|
63
63
|
key: (args_0: string) => any;
|
|
64
64
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
65
|
-
"onUpdate:modelValue"?: ((args_0: string) => any) | undefined;
|
|
66
65
|
onSubmit?: ((args_0: string) => any) | undefined;
|
|
66
|
+
"onUpdate:modelValue"?: ((args_0: string) => any) | undefined;
|
|
67
67
|
onKey?: ((args_0: string) => any) | undefined;
|
|
68
68
|
}>, {
|
|
69
|
-
mode: "integer" | "
|
|
69
|
+
mode: "integer" | "pin" | "amount";
|
|
70
70
|
disabled: boolean;
|
|
71
71
|
entry: "shift" | "free";
|
|
72
72
|
decimals: number;
|