@inkbar/core 0.7.0 → 0.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/README.md +42 -14
- package/dist/dom.d.mts +212 -13
- package/dist/dom.d.mts.map +1 -1
- package/dist/dom.mjs +6350 -3980
- package/dist/dom.mjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/dist/{signatures-CalOktkf.d.mts → sign-47QLNaqQ.d.mts} +554 -14
- package/dist/sign-47QLNaqQ.d.mts.map +1 -0
- package/dist/{signatures-Do_l2IlM.mjs → sign-DIhqyOV6.mjs} +3864 -1465
- package/dist/sign-DIhqyOV6.mjs.map +1 -0
- package/package.json +5 -4
- package/dist/signatures-CalOktkf.d.mts.map +0 -1
- package/dist/signatures-Do_l2IlM.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -185,20 +185,22 @@ Most creation tools are one-shot: `shape`, `freetext`, `note`, `redact-area` and
|
|
|
185
185
|
|
|
186
186
|
A host tool says which it is with `kind: 'one-shot' | 'sticky'` (no `kind` is sticky). A one-shot tool adds and selects what it makes, then calls `ctx.made(ids)`; `ctx.done()` clears the selection and switches to `select-text` itself. Under a sticky tool, `ctx.made` does nothing. The controller's `active` readable reports every switch, including one a one-shot tool makes.
|
|
187
187
|
|
|
188
|
-
| Where focus is | Key
|
|
189
|
-
| ---------------------------- |
|
|
190
|
-
| Viewport, `highlight` tool | `Enter`
|
|
191
|
-
| Viewport, `redact-area` tool | `Enter`
|
|
192
|
-
| Viewport, `note` tool | `Enter`
|
|
193
|
-
| Viewport, `signature` tool | `Enter`
|
|
194
|
-
| Viewport | `+` or `=`, `-`
|
|
195
|
-
| Viewport | `Home`, `End`, `PageUp`, `PageDown`
|
|
196
|
-
|
|
|
197
|
-
|
|
|
198
|
-
| Annotation | `
|
|
199
|
-
| Annotation | `
|
|
200
|
-
| Annotation | `
|
|
201
|
-
| Annotation | `
|
|
188
|
+
| Where focus is | Key | Effect |
|
|
189
|
+
| ---------------------------- | --------------------------------------------- | --------------------------------------------------------------------------------------------------- |
|
|
190
|
+
| Viewport, `highlight` tool | `Enter` | Turns the text selection into a highlight |
|
|
191
|
+
| Viewport, `redact-area` tool | `Enter` | Turns the text selection into text redactions |
|
|
192
|
+
| Viewport, `note` tool | `Enter` | Places a note at the centre of the current page and focuses it |
|
|
193
|
+
| Viewport, `signature` tool | `Enter` | Places the chosen signature at the centre of the current page |
|
|
194
|
+
| Viewport | `+` or `=`, `-` | Zoom in, zoom out |
|
|
195
|
+
| Viewport | `Home`, `End`, `PageUp`, `PageDown` | First, last, previous, next page |
|
|
196
|
+
| Viewer root, toolbars too | `Ctrl` or `Cmd` + `Z` | Undo |
|
|
197
|
+
| Viewer root, toolbars too | `Ctrl` or `Cmd` + `Shift` + `Z`, `Ctrl` + `Y` | Redo |
|
|
198
|
+
| Annotation | `Enter` or `Space` | Selects and activates it |
|
|
199
|
+
| Annotation | `ArrowUp`, `ArrowDown` | Previous or next annotation on the page, in reading order |
|
|
200
|
+
| Annotation | `Shift` + arrow | Moves it 1 pt (`Shift` + `Alt` + arrow: 10 pt) |
|
|
201
|
+
| Annotation | `Ctrl` or `Cmd` + `Shift` + arrow | Resizes an area redaction, text box or shape by 1 pt. Right and Down grow it, Left and Up shrink it |
|
|
202
|
+
| Annotation | `Delete` or `Backspace` | Removes it |
|
|
203
|
+
| Annotation | `Escape` | Clears the selection |
|
|
202
204
|
|
|
203
205
|
The tool controller and the overlay handle the tool and annotation keys. The zoom and page keys (`+`, `=`, `-`, `Home`, `End`, `PageUp`, `PageDown`) come from `attachViewportKeys`, which the tool controller does not install. Attach it to the same container:
|
|
204
206
|
|
|
@@ -212,6 +214,16 @@ const detach = attachViewportKeys(container, {
|
|
|
212
214
|
// later: detach()
|
|
213
215
|
```
|
|
214
216
|
|
|
217
|
+
`createViewer` and each binding's `InkRoot` put the undo and redo keys on the root element, so they work from the toolbars inside it as well as from the viewport. A key does what the Undo or Redo button does, and acts only while that button is enabled. `Ctrl` and `Cmd` both work on every platform, and so does `Ctrl` + `Y`. In a text field or editable content the keys stay with the element, so a field keeps its own text undo. In a `<select>` they are left to the browser, which does nothing with them. With `mountViewer` or `createToolController`, attach them yourself:
|
|
218
|
+
|
|
219
|
+
```ts
|
|
220
|
+
import { attachHistoryKeys } from '@inkbar/core/dom'
|
|
221
|
+
|
|
222
|
+
const detach = attachHistoryKeys(root, () => doc.history)
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
An Undo or Redo button that undoes or redoes the last step disables itself, and the browser would move focus to `<body>`, out of reach of the keys. `createUndo`, `createRedo` and the binding buttons move it to the scroll element instead. For your own buttons, mark them `data-ink-undo` or `data-ink-redo` and call `keepHistoryFocus(root, () => scrollElement)`.
|
|
226
|
+
|
|
215
227
|
On a focused annotation, `Enter` or `Space` selects it and calls `onActivate`; what activation opens is up to the host.
|
|
216
228
|
|
|
217
229
|
Locked annotations, such as those embedded in the file, ignore move, resize and delete. Without a text selection, `Enter` in the `highlight` and `redact-area` tools does nothing.
|
|
@@ -338,6 +350,22 @@ Ctrl/Cmd+F opens the bar when one is mounted and the key comes from inside the v
|
|
|
338
350
|
|
|
339
351
|
Hits are drawn as a layer over the page that multiplies with it, so the text shows through. `@inkbar/theme` styles them with `--ink-search-hit` and, for the current hit, `--ink-search-current`.
|
|
340
352
|
|
|
353
|
+
## Forms
|
|
354
|
+
|
|
355
|
+
Inkbar fills the AcroForm fields in a PDF and runs the form's scripts. `doc.form` reads and sets the values:
|
|
356
|
+
|
|
357
|
+
```ts
|
|
358
|
+
doc.form.values.get() // { name: 'Ada', agree: 'Yes', ... }
|
|
359
|
+
doc.form.set({ name: 'Grace' }) // runs the scripts; one undo step
|
|
360
|
+
doc.form.reset() // every field back to the PDF's default
|
|
361
|
+
```
|
|
362
|
+
|
|
363
|
+
Pass `fields: { mode: 'controlled', initial, onChange }` to `openDocument` or `createViewer` to hold the values in your own state. The form never submits, opens a link, sends mail or prints. It hands each request to you: through `onFormAction` on `createViewer` or `mountViewer`, or through `doc.form.on('action', fn)` on a document you opened with `openDocument`.
|
|
364
|
+
|
|
365
|
+
Each fillable field has a light tint. `formHighlight: false` turns it off when the viewer opens. To change it later, call `viewer.setFormHighlight(on)` on a `createViewer` viewer, or `engine.setFormHighlight(on)` on a `mountViewer` engine. Neither renders a page again, and a focused field keeps its focus and typed text.
|
|
366
|
+
|
|
367
|
+
The [forms guide](https://inkbar.dev/docs/guides/forms/) covers controlled fields, form actions, scripts, signature fields and saving values as Gloss.
|
|
368
|
+
|
|
341
369
|
## Signatures
|
|
342
370
|
|
|
343
371
|
A signature here is a mark on the page, not a cryptographic signature of the file. Draw one, type your name in a handwriting font, or upload a scan, and it is saved as a template. The `signature` tool places the chosen template: a click puts it about 150 pt wide, centred on the press, and `Enter` puts it at the centre of the current page. It is turned against the page's `/Rotate`, so it reads upright on the page; a view rotation turns it with the page. A drawn signature becomes `ink` and the others a `stamp` (an image), both with `subject: 'Signature'`. Both keep their aspect ratio when resized.
|
package/dist/dom.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as DocumentSource, Bn as Point, Ct as AnnotationInput, D as InkStatus, Dt as AnnotationType, E as InkDocument, Hn as Rect, I as FormController, In as PageInfo, K as PluginHistory, Mt as FreeTextAnnotation, O as OpenOptions, R as InkError, Rn as PdfAssets, Sn as FormAction, Vn as Quad, Wt as LineEnding, X as AnnotationStore, Y as AnnotationEdit, Zt as NoteAnnotation, _ as ScopedToolStyle, _t as cssVariableDefaults, a as SignatureOptions, b as StyleProps, bt as Annotation, gt as AnnotationDefaults, h as CurrentStyle, i as SignatureLibrary, j as SearchHit, jn as Readable, mn as TextMarkupAnnotation, nt as RecordChange, o as SignatureStore, rt as RecordStore, s as SignatureTemplate, t as signField, tt as RecordBase, v as StyleGroup, x as ToolStyle, xn as FieldsMode, y as StyleKey, zn as Matrix } from "./sign-47QLNaqQ.mjs";
|
|
2
2
|
import { IconNode } from "@inkbar/icons";
|
|
3
3
|
//#region src/dom/transform.d.ts
|
|
4
4
|
type ViewRotation = 0 | 90 | 180 | 270;
|
|
@@ -162,6 +162,43 @@ interface ViewportKeysOptions {
|
|
|
162
162
|
*/
|
|
163
163
|
export declare function attachViewportKeys(el: HTMLElement, opts: ViewportKeysOptions): () => void;
|
|
164
164
|
//#endregion
|
|
165
|
+
//#region src/dom/history-keys.d.ts
|
|
166
|
+
/** A flag as a plain value, or as a readable such as core's `History.canUndo`. */
|
|
167
|
+
type Flag = boolean | {
|
|
168
|
+
get(): boolean;
|
|
169
|
+
};
|
|
170
|
+
/**
|
|
171
|
+
* What the keys drive: core's `History`, or a framework binding's history, whose flags are
|
|
172
|
+
* plain values.
|
|
173
|
+
*/
|
|
174
|
+
interface HistoryKeysTarget {
|
|
175
|
+
readonly canUndo: Flag;
|
|
176
|
+
readonly canRedo: Flag;
|
|
177
|
+
undo(): void;
|
|
178
|
+
redo(): void;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Undo and redo from the keyboard: Ctrl or Cmd+Z undoes, Ctrl or Cmd+Shift+Z and Ctrl+Y redo,
|
|
182
|
+
* for keys pressed anywhere inside `el`. They do what the Undo and Redo buttons do: `history`
|
|
183
|
+
* is read on every key, and a key acts only while its button would be enabled (`canUndo`,
|
|
184
|
+
* `canRedo`). Then it is prevented; otherwise it is left to the browser. Events from inputs,
|
|
185
|
+
* text areas, selects and editable content are left alone, so a field keeps its native text
|
|
186
|
+
* undo, as are events already handled. Returns a function that removes the listener.
|
|
187
|
+
*/
|
|
188
|
+
export declare function attachHistoryKeys(el: HTMLElement, history: () => HistoryKeysTarget | null | undefined): () => void;
|
|
189
|
+
/**
|
|
190
|
+
* Keeps focus in the viewer when a focused Undo or Redo button inside `el` turns disabled
|
|
191
|
+
* (it undid or redid the last step), which would otherwise drop focus to `<body>`, out of
|
|
192
|
+
* reach of the undo and redo keys. Focus moves to `scroll()`, the viewer's scroll element,
|
|
193
|
+
* without scrolling. Returns a function that removes the listeners.
|
|
194
|
+
*
|
|
195
|
+
* Chrome and Firefox blur the button as it is disabled: its `focusout` comes while the
|
|
196
|
+
* `disabled` change is still queued for the observer below, and only that `focusout` counts.
|
|
197
|
+
* WebKit can leave focus on the disabled button instead. The observer then moves it, and a later
|
|
198
|
+
* `focusout` (a click on content that takes no focus) is left alone.
|
|
199
|
+
*/
|
|
200
|
+
export declare function keepHistoryFocus(el: HTMLElement, scroll: () => HTMLElement | null | undefined): () => void;
|
|
201
|
+
//#endregion
|
|
165
202
|
//#region src/dom/page-renderer.d.ts
|
|
166
203
|
interface PageRendererOptions {
|
|
167
204
|
document: InkDocument;
|
|
@@ -175,6 +212,12 @@ interface PageRendererOptions {
|
|
|
175
212
|
* and the page re-renders when it changes (browser zoom, moving to another screen).
|
|
176
213
|
*/
|
|
177
214
|
devicePixelRatio?: number;
|
|
215
|
+
/**
|
|
216
|
+
* Whether form widgets are drawn into the canvas as the PDF draws them. By default they are
|
|
217
|
+
* drawn only when the document has no form fields; a document with fields leaves the
|
|
218
|
+
* widgets of its fields on the page out, and the form layer draws each one's appearance.
|
|
219
|
+
*/
|
|
220
|
+
drawWidgets?: boolean;
|
|
178
221
|
onRendered?(): void;
|
|
179
222
|
/** Called for any render failure other than a superseded render's cancellation. */
|
|
180
223
|
onError?(error: unknown): void;
|
|
@@ -866,6 +909,39 @@ interface PluginHost extends LayerSource {
|
|
|
866
909
|
*/
|
|
867
910
|
export declare function createPluginHost(opts: PluginHostOptions): PluginHost;
|
|
868
911
|
//#endregion
|
|
912
|
+
//#region src/dom/form-layer.d.ts
|
|
913
|
+
/** A signature field asked to be signed, anchored to its widget's box. */
|
|
914
|
+
interface SignFieldRequest {
|
|
915
|
+
/** Full field name. */
|
|
916
|
+
field: string;
|
|
917
|
+
/** Widget id. */
|
|
918
|
+
widget: string;
|
|
919
|
+
/** Zero-based page index. */
|
|
920
|
+
page: number;
|
|
921
|
+
/** The widget's rect, in user space. */
|
|
922
|
+
rect: Rect;
|
|
923
|
+
/** The widget's box, to anchor the signature menu to. */
|
|
924
|
+
anchor: HTMLElement;
|
|
925
|
+
}
|
|
926
|
+
interface FormLayer {
|
|
927
|
+
readonly element: HTMLElement;
|
|
928
|
+
/**
|
|
929
|
+
* Resolves once the widget appearances shown now have painted (or failed). Never rejects.
|
|
930
|
+
*/
|
|
931
|
+
readonly rendered: Promise<void>;
|
|
932
|
+
/** Places every widget for a new zoom or rotation, in place: focus, caret and typed text stay. */
|
|
933
|
+
update(t: PageTransform): void;
|
|
934
|
+
/** Focuses the widget's control. False when the widget is not on this page or is hidden. */
|
|
935
|
+
focusWidget(id: string): boolean;
|
|
936
|
+
/** The controls Tab stops at, in Tab order: none while fields take no input. */
|
|
937
|
+
tabStops(): HTMLElement[];
|
|
938
|
+
/** Reads `isActive()` again, after the active tool changed. */
|
|
939
|
+
refresh(): void;
|
|
940
|
+
/** Tints the fields or stops, in place, as `highlight` does at creation. */
|
|
941
|
+
setHighlight(on: boolean): void;
|
|
942
|
+
destroy(): void;
|
|
943
|
+
}
|
|
944
|
+
//#endregion
|
|
869
945
|
//#region src/dom/search/highlights.d.ts
|
|
870
946
|
/** The highlights of one viewer's pages; see `createSearchHighlights`. */
|
|
871
947
|
interface SearchHighlights {
|
|
@@ -889,33 +965,48 @@ interface PageMountOptions {
|
|
|
889
965
|
decorate?: DecorateAnnotation;
|
|
890
966
|
/** Defaults to `window.devicePixelRatio`. */
|
|
891
967
|
devicePixelRatio?: number;
|
|
968
|
+
/** Tints fillable form fields. Default true. */
|
|
969
|
+
formHighlight?: boolean;
|
|
970
|
+
/**
|
|
971
|
+
* Whether form fields take input now. Default: always. The engine passes "the default
|
|
972
|
+
* pointer tool is active".
|
|
973
|
+
*/
|
|
974
|
+
formActive?(): boolean;
|
|
975
|
+
/** A signature field asked to be signed. */
|
|
976
|
+
onSignField?(req: SignFieldRequest): void;
|
|
892
977
|
/** Plugin layers, mounted above the overlay. The engine passes them for its pages only. */
|
|
893
978
|
layers?: PluginLayers;
|
|
894
979
|
/** Search match highlights, mounted below the overlay. */
|
|
895
980
|
highlights?: SearchHighlights;
|
|
896
981
|
/**
|
|
897
|
-
* Canvas
|
|
898
|
-
* reported).
|
|
982
|
+
* Canvas, text layer and form appearance failures, with the layer that failed (cancellations
|
|
983
|
+
* are not reported).
|
|
899
984
|
*/
|
|
900
985
|
onError?(error: unknown, layer: PageLayer): void;
|
|
901
986
|
/**
|
|
902
|
-
* A layer finished without error: the canvas
|
|
903
|
-
* an update. Pair it with `onError` to tell when a failed layer has
|
|
987
|
+
* A layer finished without error: the canvas or the form appearances painted, or the text
|
|
988
|
+
* layer mounted or applied an update. Pair it with `onError` to tell when a failed layer has
|
|
989
|
+
* recovered.
|
|
904
990
|
*/
|
|
905
991
|
onRendered?(layer: PageLayer): void;
|
|
906
992
|
}
|
|
907
|
-
/**
|
|
908
|
-
|
|
993
|
+
/**
|
|
994
|
+
* The page layers that can fail and recover: the canvas, the text layer and the form layer's
|
|
995
|
+
* canvas of widget appearances.
|
|
996
|
+
*/
|
|
997
|
+
type PageLayer = 'canvas' | 'text' | 'form';
|
|
909
998
|
interface PageMount {
|
|
910
999
|
readonly renderer: PageRenderer;
|
|
911
1000
|
readonly textLayer: TextLayerHandle;
|
|
912
1001
|
readonly overlay: Overlay;
|
|
1002
|
+
/** The page's form fields; undefined when the document has none. */
|
|
1003
|
+
readonly form: FormLayer | undefined;
|
|
913
1004
|
update(transform: PageTransform): void;
|
|
914
1005
|
destroy(): void;
|
|
915
1006
|
}
|
|
916
1007
|
/**
|
|
917
|
-
* Canvas, text layer, annotation overlay and any plugin layers for one page, stacked
|
|
918
|
-
* order.
|
|
1008
|
+
* Canvas, text layer, form layer, annotation overlay and any plugin layers for one page, stacked
|
|
1009
|
+
* in that order.
|
|
919
1010
|
*/
|
|
920
1011
|
export declare function createPageMount(opts: PageMountOptions): PageMount;
|
|
921
1012
|
//#endregion
|
|
@@ -1305,6 +1396,21 @@ interface SignatureMenuModel {
|
|
|
1305
1396
|
}
|
|
1306
1397
|
/** What the signature menu shows for the saved templates and the signature tool's options. */
|
|
1307
1398
|
export declare function signatureMenuModel(templates: readonly SignatureTemplate[], options: SignatureOptions): SignatureMenuModel;
|
|
1399
|
+
/**
|
|
1400
|
+
* Words the form layer and the form dialogs add to the page's form fields, shared so every
|
|
1401
|
+
* binding says the same. A field is named by its own tooltip (`/TU`), else the last part of its
|
|
1402
|
+
* name; `unnamed` stands in when it has neither.
|
|
1403
|
+
*/
|
|
1404
|
+
export declare const FORM_LABELS: {
|
|
1405
|
+
readonly unnamed: "Form field";
|
|
1406
|
+
/** An empty signature field's affordance. */
|
|
1407
|
+
readonly sign: "Sign";
|
|
1408
|
+
/** Its tooltip, and the start of its accessible name. */
|
|
1409
|
+
readonly signField: "Sign this field";
|
|
1410
|
+
/** The title of the dialog a form's script message shows in. */
|
|
1411
|
+
readonly alert: "Message";
|
|
1412
|
+
readonly ok: "OK";
|
|
1413
|
+
};
|
|
1308
1414
|
//#endregion
|
|
1309
1415
|
//#region src/dom/palette.d.ts
|
|
1310
1416
|
interface Palette {
|
|
@@ -1412,6 +1518,12 @@ interface FocusReturn {
|
|
|
1412
1518
|
onCloseAutoFocus(event: Event, anchor: HTMLElement | null): void;
|
|
1413
1519
|
}
|
|
1414
1520
|
export declare function createFocusReturn(opts: FocusReturnOptions): FocusReturn;
|
|
1521
|
+
/**
|
|
1522
|
+
* Calls `onDetach` once when `el` leaves its document for any reason: its page unmounted, its
|
|
1523
|
+
* layer rebuilt, or an ancestor removed, inside a shadow root too. Already detached, it calls
|
|
1524
|
+
* on the next microtask. Returns the stop function.
|
|
1525
|
+
*/
|
|
1526
|
+
export declare function watchDetached(el: Element, onDetach: () => void): () => void;
|
|
1415
1527
|
//#endregion
|
|
1416
1528
|
//#region src/dom/viewer/popover.d.ts
|
|
1417
1529
|
/** Options for `createPopover`. */
|
|
@@ -1528,6 +1640,24 @@ interface MountViewerOptions {
|
|
|
1528
1640
|
* Default `SIGNATURE_FONTS`.
|
|
1529
1641
|
*/
|
|
1530
1642
|
signatureFonts?: string[];
|
|
1643
|
+
/**
|
|
1644
|
+
* Tints fillable form fields, as other PDF viewers do. Default true. False sets
|
|
1645
|
+
* `data-ink-form-highlight="off"` on the container and each page's form layer.
|
|
1646
|
+
*/
|
|
1647
|
+
formHighlight?: boolean;
|
|
1648
|
+
/**
|
|
1649
|
+
* An empty signature field was activated: sign it, for instance by offering the saved
|
|
1650
|
+
* signatures anchored to `req.anchor` and calling `signField` with the one picked.
|
|
1651
|
+
* `createViewer` opens its signature menu here. Without it the field does nothing.
|
|
1652
|
+
*/
|
|
1653
|
+
onSignField?(req: SignFieldRequest): void;
|
|
1654
|
+
/**
|
|
1655
|
+
* The form asked the host to submit, open a link, send mail, print or prompt. Inkbar itself
|
|
1656
|
+
* never does any of these.
|
|
1657
|
+
*/
|
|
1658
|
+
onFormAction?(action: FormAction): void;
|
|
1659
|
+
/** A form script called `app.alert`: show `message` (text, not markup) without blocking. */
|
|
1660
|
+
onFormAlert?(message: string): void;
|
|
1531
1661
|
/** Annotation content is rendered by the host (custom slots). Changing it needs `rebuild`. */
|
|
1532
1662
|
customAnnotations?: boolean;
|
|
1533
1663
|
/**
|
|
@@ -1604,6 +1734,11 @@ interface ViewerEngine {
|
|
|
1604
1734
|
* no annotation did.
|
|
1605
1735
|
*/
|
|
1606
1736
|
redecorate(): void;
|
|
1737
|
+
/**
|
|
1738
|
+
* Turns the form field tint on or off for the mounted pages and those mounted later, in
|
|
1739
|
+
* place: no page renders again and no field loses focus or typed text.
|
|
1740
|
+
*/
|
|
1741
|
+
setFormHighlight(on: boolean): void;
|
|
1607
1742
|
destroy(): void;
|
|
1608
1743
|
}
|
|
1609
1744
|
export declare function mountViewer(opts: MountViewerOptions): ViewerEngine;
|
|
@@ -1614,7 +1749,7 @@ export declare function mountViewer(opts: MountViewerOptions): ViewerEngine;
|
|
|
1614
1749
|
* (bound to one document's store, so each engine makes its own), and the tool options and
|
|
1615
1750
|
* signature library (one for the viewer's life).
|
|
1616
1751
|
*/
|
|
1617
|
-
interface CreateViewerOptions extends Omit<MountViewerOptions, 'container' | 'document' | 'toolStyle' | 'toolHistory' | 'toolOptions' | 'signatureLibrary' | 'plugins' | 'search'> {
|
|
1752
|
+
interface CreateViewerOptions extends Omit<MountViewerOptions, 'container' | 'document' | 'toolStyle' | 'toolHistory' | 'toolOptions' | 'signatureLibrary' | 'plugins' | 'search' | 'onSignField' | 'onFormAlert'> {
|
|
1618
1753
|
source: DocumentSource;
|
|
1619
1754
|
assets: PdfAssets;
|
|
1620
1755
|
/** User password for encrypted files. `open` can pass its own for one load. */
|
|
@@ -1622,6 +1757,12 @@ interface CreateViewerOptions extends Omit<MountViewerOptions, 'container' | 'do
|
|
|
1622
1757
|
/** Default: read from the theme's CSS variables on the viewer root. */
|
|
1623
1758
|
defaults?: AnnotationDefaults;
|
|
1624
1759
|
history?: OpenOptions['history'];
|
|
1760
|
+
/**
|
|
1761
|
+
* Form field values; defaults to uncontrolled, starting from the PDF's. Controlled:
|
|
1762
|
+
* `{ mode: 'controlled', initial, onChange }`, where `onChange` hears every commit with the
|
|
1763
|
+
* full map and the host pushes back with `viewer.form.get()?.setControlledValue(next)`.
|
|
1764
|
+
*/
|
|
1765
|
+
fields?: FieldsMode;
|
|
1625
1766
|
/**
|
|
1626
1767
|
* Plugins, set up once for the viewer's life. Their tools join the viewer's tools, their
|
|
1627
1768
|
* decoration and page layers apply to every document, and their commands are placed with
|
|
@@ -1631,6 +1772,7 @@ interface CreateViewerOptions extends Omit<MountViewerOptions, 'container' | 'do
|
|
|
1631
1772
|
/** The thread popover for notes and text markup. Default true. */
|
|
1632
1773
|
threads?: boolean;
|
|
1633
1774
|
onReady?(this: void, doc: InkDocument): void;
|
|
1775
|
+
/** The document failed to open, a form script failed, or signing a field was refused. */
|
|
1634
1776
|
onError?(this: void, error: InkError): void;
|
|
1635
1777
|
}
|
|
1636
1778
|
interface Viewer {
|
|
@@ -1638,6 +1780,8 @@ interface Viewer {
|
|
|
1638
1780
|
readonly element: HTMLElement;
|
|
1639
1781
|
readonly status: Readable<InkStatus>;
|
|
1640
1782
|
readonly document: Readable<InkDocument | null>;
|
|
1783
|
+
/** The open document's form (`document.form`) while it is ready; `null` otherwise. */
|
|
1784
|
+
readonly form: Readable<FormController | null>;
|
|
1641
1785
|
/** Set while a document is ready; `null` otherwise. */
|
|
1642
1786
|
readonly engine: Readable<ViewerEngine | null>;
|
|
1643
1787
|
/**
|
|
@@ -1658,6 +1802,11 @@ interface Viewer {
|
|
|
1658
1802
|
* not in the open document's annotations is ignored.
|
|
1659
1803
|
*/
|
|
1660
1804
|
setActivated(id: string | null): void;
|
|
1805
|
+
/**
|
|
1806
|
+
* Turns the form field tint on or off (the `formHighlight` option) for the open document,
|
|
1807
|
+
* in place, and for the documents opened after it.
|
|
1808
|
+
*/
|
|
1809
|
+
setFormHighlight(on: boolean): void;
|
|
1661
1810
|
/** The plugins' commands by namespaced id (`sandbox.suggest`); place one with `createCommandButton`. */
|
|
1662
1811
|
readonly commands: {
|
|
1663
1812
|
get(id: string): Command | undefined;
|
|
@@ -1834,11 +1983,23 @@ interface MenuOptions {
|
|
|
1834
1983
|
* in the DOM). Presses, focus and Escape inside it neither dismiss this menu nor close it.
|
|
1835
1984
|
*/
|
|
1836
1985
|
owns?(target: Node): boolean;
|
|
1837
|
-
/**
|
|
1986
|
+
/**
|
|
1987
|
+
* The menu opens only through `open()`; the trigger's own clicks and keys stay its own. For a
|
|
1988
|
+
* menu a control opens as one of several things it does, such as a signature field's.
|
|
1989
|
+
*/
|
|
1990
|
+
manual?: boolean;
|
|
1991
|
+
/** The menu closed, for any reason; the trigger's `aria-expanded` and `data-state` are set. */
|
|
1992
|
+
onClose?(): void;
|
|
1993
|
+
/**
|
|
1994
|
+
* Builds the items on first call and updates them in place after; called on open and
|
|
1995
|
+
* `refresh`.
|
|
1996
|
+
*/
|
|
1838
1997
|
render(menu: HTMLElement): void;
|
|
1839
1998
|
}
|
|
1840
1999
|
interface Menu {
|
|
1841
2000
|
readonly isOpen: boolean;
|
|
2001
|
+
/** Opens the menu with its initial item focused, as a click on the trigger does. */
|
|
2002
|
+
open(): void;
|
|
1842
2003
|
/** Re-renders an open menu, and closes it if the trigger has become disabled. */
|
|
1843
2004
|
refresh(): void;
|
|
1844
2005
|
close(restoreFocus?: boolean): void;
|
|
@@ -1954,9 +2115,14 @@ interface SignatureDialogOptions {
|
|
|
1954
2115
|
}
|
|
1955
2116
|
interface SignatureDialog {
|
|
1956
2117
|
readonly isOpen: boolean;
|
|
1957
|
-
/**
|
|
2118
|
+
/**
|
|
2119
|
+
* Opens the dialog. On close, focus goes to `returnFocus`, else to what had it before. Save
|
|
2120
|
+
* stores the template and selects it for the `signature` tool, or, with `onSave`, hands it
|
|
2121
|
+
* to `onSave` instead (to sign a form field with it).
|
|
2122
|
+
*/
|
|
1958
2123
|
open(opts?: {
|
|
1959
2124
|
returnFocus?: HTMLElement | null;
|
|
2125
|
+
onSave?: (t: SignatureTemplate) => void;
|
|
1960
2126
|
}): void;
|
|
1961
2127
|
close(): void;
|
|
1962
2128
|
destroy(): void;
|
|
@@ -1967,6 +2133,39 @@ export declare function createSignatureDialog(viewer: Viewer, opts?: SignatureDi
|
|
|
1967
2133
|
/** A template drawn small: ink as an SVG of filled outlines, an image as an `<img>`. */
|
|
1968
2134
|
export declare function createSignaturePreview(t: SignatureTemplate): HTMLElement;
|
|
1969
2135
|
export declare function createSignatureMenu(viewer: Viewer, opts?: SignatureDialogOptions): HTMLElement;
|
|
2136
|
+
/** Options for `createSignFieldMenu`. */
|
|
2137
|
+
interface SignFieldMenuOptions extends SignatureDialogOptions {
|
|
2138
|
+
/** Signing failed: the field was read-only by then, or already signed. */
|
|
2139
|
+
onError?(error: InkError): void;
|
|
2140
|
+
}
|
|
2141
|
+
/** The signature menu for signature fields; see `createSignFieldMenu`. */
|
|
2142
|
+
interface SignFieldMenu {
|
|
2143
|
+
/** Opens the menu anchored to the field's box. Another field's open menu closes. */
|
|
2144
|
+
open(req: SignFieldRequest): void;
|
|
2145
|
+
close(): void;
|
|
2146
|
+
destroy(): void;
|
|
2147
|
+
}
|
|
2148
|
+
/**
|
|
2149
|
+
* The signature menu, opened on a signature field (the engine's `onSignField`). It lists the
|
|
2150
|
+
* saved signatures and "Create signature", as the toolbar's menu does. Picking one signs the
|
|
2151
|
+
* field with it (`signField`); a new one from the dialog signs the field once saved. Focus
|
|
2152
|
+
* returns to the field.
|
|
2153
|
+
*/
|
|
2154
|
+
export declare function createSignFieldMenu(viewer: Viewer, opts?: SignFieldMenuOptions): SignFieldMenu;
|
|
2155
|
+
//#endregion
|
|
2156
|
+
//#region src/dom/viewer/form-alert.d.ts
|
|
2157
|
+
interface FormAlert {
|
|
2158
|
+
/** Shows `message`, replacing the one showing, if any. */
|
|
2159
|
+
show(message: string): void;
|
|
2160
|
+
/** Closes it, if open, returning focus. */
|
|
2161
|
+
close(): void;
|
|
2162
|
+
destroy(): void;
|
|
2163
|
+
}
|
|
2164
|
+
/**
|
|
2165
|
+
* A non-modal alert for the viewer under `root` (`[data-ink-root]`), placed on `<body>`.
|
|
2166
|
+
* Escape closes it while focus is in it; elsewhere Escape stays the viewer's.
|
|
2167
|
+
*/
|
|
2168
|
+
export declare function createFormAlert(root: HTMLElement): FormAlert;
|
|
1970
2169
|
//#endregion
|
|
1971
|
-
export { type AnnotationDecoration, type AnnotationInputOf, type AnnotationLink, type AnnotationLinkSpec, type AnnotationSlotProps, type AnnotationState, type ArrowheadChoice, type BuiltinToolId, type CardSpec, type ColorMenuModel, type ColorMenuOptions, type ColorMenuSwatch, type ColorProperty, type ColorTrigger, type Command, type CommandOptions, type CommandRun, type CommandSpec, type CreateViewerOptions, type CssLayout, type CssLayoutInput, type CssPageBox, type CssRect, type CurrentStyle, type DecorateAnnotation, type EditorCloseReason, type FocusReturn, type FocusReturnOptions, type FreeTextEditor, type FreeTextEditorOptions, type HighlightMenuItem, type HighlightMenuModel, type HighlightOptions, type InkPlugin, type LayerEvent, type LayerSource, type LayerSpec, type LayoutMode, type LineStyleMenuItem, type LineStyleMenuModel, type LineStyleMenuSection, type MarksHandle, type MarksOptions, type MarkupKind, type Menu, type MenuOptions, type MountViewerOptions, type Overlay, type OverlayOptions, type PageHit, type PageLayer, type PageLayers, type PageMount, type PageMountOptions, type PageRenderer, type PageRendererOptions, type PageTransform, type Palette, type PluginApi, type PluginContext, type PluginHost, type PluginHostOptions, type PluginLayer, type PluginLayerHandle, type PluginLayers, type PluginOptions, type PluginStoreOptions, type Popover, type PopoverOptions, type Records, type ScopedToolStyle, type SearchController, type SearchControllerOptions, type SearchState, type SelectionQuads, type ShapeKind, type ShapeMenuItem, type ShapeMenuModel, type ShapeOptions, type SignatureDialog, type SignatureDialogOptions, type SignatureDraft, type SignatureDraftState, type SignatureMenuItem, type SignatureMenuModel, type SignatureOptions, type SignaturePad, type SignatureTab, type StyleGroup, type StyleKey, type StyleProps, type TextAlignChoice, type TextAlignKey, type TextLayerHandle, type TextLayerOptions, type TextStyleMenuModel, type TextStyleToggle, type TextToggleKey, type ThreadPopoverSlotProps, type Tool, type ToolContext, type ToolController, type ToolControllerOptions, type ToolId, type ToolKind, type ToolOptions, type ToolStyle, type ToolStyleTracker, type TypedSignatureOptions, type ViewRotation, type Viewer, type ViewerEngine, type ViewerSearch, type Viewport, type ViewportHit, type ViewportKeysOptions, type ViewportOptions, type ZoomValue, cssVariableDefaults };
|
|
2170
|
+
export { type AnnotationDecoration, type AnnotationInputOf, type AnnotationLink, type AnnotationLinkSpec, type AnnotationSlotProps, type AnnotationState, type ArrowheadChoice, type BuiltinToolId, type CardSpec, type ColorMenuModel, type ColorMenuOptions, type ColorMenuSwatch, type ColorProperty, type ColorTrigger, type Command, type CommandOptions, type CommandRun, type CommandSpec, type CreateViewerOptions, type CssLayout, type CssLayoutInput, type CssPageBox, type CssRect, type CurrentStyle, type DecorateAnnotation, type EditorCloseReason, type FocusReturn, type FocusReturnOptions, type FormAlert, type FormLayer, type FreeTextEditor, type FreeTextEditorOptions, type HighlightMenuItem, type HighlightMenuModel, type HighlightOptions, type HistoryKeysTarget, type InkPlugin, type LayerEvent, type LayerSource, type LayerSpec, type LayoutMode, type LineStyleMenuItem, type LineStyleMenuModel, type LineStyleMenuSection, type MarksHandle, type MarksOptions, type MarkupKind, type Menu, type MenuOptions, type MountViewerOptions, type Overlay, type OverlayOptions, type PageHit, type PageLayer, type PageLayers, type PageMount, type PageMountOptions, type PageRenderer, type PageRendererOptions, type PageTransform, type Palette, type PluginApi, type PluginContext, type PluginHost, type PluginHostOptions, type PluginLayer, type PluginLayerHandle, type PluginLayers, type PluginOptions, type PluginStoreOptions, type Popover, type PopoverOptions, type Records, type ScopedToolStyle, type SearchController, type SearchControllerOptions, type SearchState, type SelectionQuads, type ShapeKind, type ShapeMenuItem, type ShapeMenuModel, type ShapeOptions, type SignFieldMenu, type SignFieldMenuOptions, type SignFieldRequest, type SignatureDialog, type SignatureDialogOptions, type SignatureDraft, type SignatureDraftState, type SignatureMenuItem, type SignatureMenuModel, type SignatureOptions, type SignaturePad, type SignatureTab, type StyleGroup, type StyleKey, type StyleProps, type TextAlignChoice, type TextAlignKey, type TextLayerHandle, type TextLayerOptions, type TextStyleMenuModel, type TextStyleToggle, type TextToggleKey, type ThreadPopoverSlotProps, type Tool, type ToolContext, type ToolController, type ToolControllerOptions, type ToolId, type ToolKind, type ToolOptions, type ToolStyle, type ToolStyleTracker, type TypedSignatureOptions, type ViewRotation, type Viewer, type ViewerEngine, type ViewerSearch, type Viewport, type ViewportHit, type ViewportKeysOptions, type ViewportOptions, type ZoomValue, cssVariableDefaults, signField };
|
|
1972
2171
|
//# sourceMappingURL=dom.d.mts.map
|
package/dist/dom.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dom.d.mts","names":[],"sources":["../src/dom/transform.ts","../src/dom/layout.ts","../src/dom/viewport.ts","../src/dom/viewport-keys.ts","../src/dom/page-renderer.ts","../src/dom/text-layer.ts","../src/dom/selection.ts","../src/dom/overlay.ts","../src/dom/overlay-render.ts","../src/dom/plugins/api/command.ts","../src/dom/plugins/api/links.ts","../src/dom/plugins/api/records.ts","../src/dom/plugins/api/card.ts","../src/dom/plugins/api/marks.ts","../src/dom/plugins/api/api.ts","../src/dom/search/controller.ts","../src/dom/tools/options.ts","../src/dom/tools/controller.ts","../src/dom/plugins/define.ts","../src/dom/plugins/commands.ts","../src/dom/plugins/layer.ts","../src/dom/plugins/host.ts","../src/dom/search/highlights.ts","../src/dom/page-mount.ts","../src/dom/tools/freetext.ts","../src/dom/tools/highlight.ts","../src/dom/tools/note.ts","../src/dom/tools/redact-area.ts","../src/dom/tools/select.ts","../src/dom/tools/select-text.ts","../src/model/annotations/shape-geometry.ts","../src/dom/tools/shape.ts","../src/dom/tools/signature.ts","../src/dom/tools/index.ts","../src/dom/ui.ts","../src/dom/palette.ts","../src/dom/freetext-editor.ts","../src/dom/menu-keys.ts","../src/dom/annotation-element.ts","../src/dom/popover-focus.ts","../src/dom/viewer/popover.ts","../src/dom/viewer-engine.ts","../src/dom/viewer/create-viewer.ts","../src/dom/search/find-bar.ts","../src/dom/search/find-key.ts","../src/dom/search/find-text.ts","../src/dom/viewer/controls.ts","../src/dom/viewer/style-menu.ts","../src/dom/viewer/color-menu.ts","../src/dom/viewer/text-style-menu.ts","../src/dom/viewer/shape-menu.ts","../src/dom/viewer/highlight-menu.ts","../src/dom/shape-icons.ts","../src/dom/markup-icons.ts","../src/dom/viewer/menu.ts","../src/dom/signature-pad.ts","../src/dom/signature-draft.ts","../src/dom/viewer/signature-dialog.ts","../src/dom/viewer/signature-menu.ts"],"mappings":";;;KAWY;;UAGK;EACf;EACA;EACA;EACA;;UAGe;WACN,MAAM;;WAEN;;;;;WAKA;;WAEA,UAAU;;WAEV,eAAe;;WAEf;;WAEA;;WAEA,QAAQ;EACjB,MAAM,GAAG,QAAQ;EACjB,UAAU,GAAG,OAAO;EACp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qBAAqB,MAAM,OAAO,QAAQ;;;;;;wBA2ChD,iBAAiB,GAAG;EAAsB;;EACxD;EACA;;;;UC7Se;EACf,KAAK;;EAEL;EACA;EACA;;EAEA,OAAO;;EAEP;;EAEA;;EAEA;EACA;;UAGe;WACN,OAAO,SAAS;WAChB;EACT,OAAO,KAAK;EACZ,QAAQ;EACR,QAAQ;;EAER,UAAU,MAAM;EAChB;;EAEA,WAAW,MAAM,mBAAmB;;;;;;EAMpC,KAAK,SAAS,mBAAmB,QAAQ;;EAEzC;EACA;;wBAGc,qBACd;EAAQ;IACP;;;UCnCc;;EAEf;;UAGe;WACN;;EAET,KAAK;IAAS,cAAc;;EAC5B;EACA;;wBAKc,sBACd,QAAQ,QACR,OAAM,yBACL;;;;wBCda,uBAAuB,GAAG,oBAAoB;wBAoB9C,oBACd,QAAQ,QACR,OAAM,yBACL"}
|
|
1
|
+
{"version":3,"file":"dom.d.mts","names":[],"sources":["../src/dom/transform.ts","../src/dom/layout.ts","../src/dom/viewport.ts","../src/dom/viewport-keys.ts","../src/dom/history-keys.ts","../src/dom/page-renderer.ts","../src/dom/text-layer.ts","../src/dom/selection.ts","../src/dom/overlay.ts","../src/dom/overlay-render.ts","../src/dom/plugins/api/command.ts","../src/dom/plugins/api/links.ts","../src/dom/plugins/api/records.ts","../src/dom/plugins/api/card.ts","../src/dom/plugins/api/marks.ts","../src/dom/plugins/api/api.ts","../src/dom/search/controller.ts","../src/dom/tools/options.ts","../src/dom/tools/controller.ts","../src/dom/plugins/define.ts","../src/dom/plugins/commands.ts","../src/dom/plugins/layer.ts","../src/dom/plugins/host.ts","../src/dom/form-layer.ts","../src/dom/search/highlights.ts","../src/dom/page-mount.ts","../src/dom/tools/freetext.ts","../src/dom/tools/highlight.ts","../src/dom/tools/note.ts","../src/dom/tools/redact-area.ts","../src/dom/tools/select.ts","../src/dom/tools/select-text.ts","../src/model/annotations/shape-geometry.ts","../src/dom/tools/shape.ts","../src/dom/tools/signature.ts","../src/dom/tools/index.ts","../src/dom/ui.ts","../src/dom/palette.ts","../src/dom/freetext-editor.ts","../src/dom/menu-keys.ts","../src/dom/annotation-element.ts","../src/dom/popover-focus.ts","../src/dom/viewer/popover.ts","../src/dom/viewer-engine.ts","../src/dom/viewer/create-viewer.ts","../src/dom/search/find-bar.ts","../src/dom/search/find-key.ts","../src/dom/search/find-text.ts","../src/dom/viewer/controls.ts","../src/dom/viewer/style-menu.ts","../src/dom/viewer/color-menu.ts","../src/dom/viewer/text-style-menu.ts","../src/dom/viewer/shape-menu.ts","../src/dom/viewer/highlight-menu.ts","../src/dom/shape-icons.ts","../src/dom/markup-icons.ts","../src/dom/viewer/menu.ts","../src/dom/signature-pad.ts","../src/dom/signature-draft.ts","../src/dom/viewer/signature-dialog.ts","../src/dom/viewer/signature-menu.ts","../src/dom/viewer/form-alert.ts"],"mappings":";;;KAWY;;UAGK;EACf;EACA;EACA;EACA;;UAGe;WACN,MAAM;;WAEN;;;;;WAKA;;WAEA,UAAU;;WAEV,eAAe;;WAEf;;WAEA;;WAEA,QAAQ;EACjB,MAAM,GAAG,QAAQ;EACjB,UAAU,GAAG,OAAO;EACpB,UAAU,GAAG,OAAO;;EAEpB,YAAY;EACZ,QAAQ,GAAG,QAAQ;EACnB,YAAY,GAAG,UAAU;;EAEzB,cAAc;;;wBAIA,kBAAkB,cAAc;;;;;wBAWhC,oBACd,MAAM,UACN,cACA,eAAc,eACb;;;KC/DS;;UAGK;EACf;EACA;EACA;EACA;EACA;;;UAIe;EACf,OAAO;EACP;EACA;;UAGe;EACf,gBAAgB;EAChB;EACA,UAAU;;EAEV;EACA,MAAM;;EAEN;;EAEA;;;wBASc,iBAAiB,OAAO,iBAAiB;;wBAyBzC,WACd,MAAM,UACN,UAAU,cACV;EAAa;EAAe;GAC5B,gCACA;;;;;wBAac,gBACd,QAAQ,WACR,mBACA,wBACA;;wBAec,mBACd,QAAQ,WACR,mBACA;;;KChFU;UAEK;EACf,WAAW;EACX,UAAU;;EAEV,OAAO;;E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