@pristy/pristy-libvue 2.18.0 → 2.18.2
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/{ActivityHistory-CRlqa5Jq.js → ActivityHistory-Ceg-TT2z.js} +2 -2
- package/dist/{ActivityHistory-CRlqa5Jq.js.map → ActivityHistory-Ceg-TT2z.js.map} +1 -1
- package/dist/{BookmarksComponent-BLIaEuPk.js → BookmarksComponent-B9Cs5W3M.js} +2 -2
- package/dist/{BookmarksComponent-BLIaEuPk.js.map → BookmarksComponent-B9Cs5W3M.js.map} +1 -1
- package/dist/{ChartWrapper-BaBVW8I3.js → ChartWrapper-FvxEDgfp.js} +2 -2
- package/dist/{ChartWrapper-BaBVW8I3.js.map → ChartWrapper-FvxEDgfp.js.map} +1 -1
- package/dist/{DisplayFileInDashboardComponent-Dllh5MNd.js → DisplayFileInDashboardComponent-CNJXyoYF.js} +2 -2
- package/dist/{DisplayFileInDashboardComponent-Dllh5MNd.js.map → DisplayFileInDashboardComponent-CNJXyoYF.js.map} +1 -1
- package/dist/{ExternalApps-CAmO0szr.js → ExternalApps-C7affsUK.js} +2 -2
- package/dist/{ExternalApps-CAmO0szr.js.map → ExternalApps-C7affsUK.js.map} +1 -1
- package/dist/{FavoriteList-CIQ0aoZc.js → FavoriteList-By-5ScJW.js} +2 -2
- package/dist/{FavoriteList-CIQ0aoZc.js.map → FavoriteList-By-5ScJW.js.map} +1 -1
- package/dist/{MarkdownComponent-8geE7A8s.js → MarkdownComponent-D3pdlWVI.js} +2 -2
- package/dist/{MarkdownComponent-8geE7A8s.js.map → MarkdownComponent-D3pdlWVI.js.map} +1 -1
- package/dist/{SearchInput-B1UV94gV.js → SearchInput-DzA1MVbI.js} +2 -2
- package/dist/{SearchInput-B1UV94gV.js.map → SearchInput-DzA1MVbI.js.map} +1 -1
- package/dist/{UnknownBlockType-Dgloser7.js → UnknownBlockType-BfQLAxi6.js} +2 -2
- package/dist/{UnknownBlockType-Dgloser7.js.map → UnknownBlockType-BfQLAxi6.js.map} +1 -1
- package/dist/{index-D9Rwpk8t.js → index-B82yEdg6.js} +3975 -3794
- package/dist/index-B82yEdg6.js.map +1 -0
- package/dist/pristy-libvue.css +1 -1
- package/dist/pristy-libvue.es.js +1 -1
- package/dist/pristy-libvue.umd.js +18 -18
- package/dist/pristy-libvue.umd.js.map +1 -1
- package/dist/src/components/layouts/AppLayout.vue.d.ts +10 -0
- package/dist/src/components/layouts/AppSubmenu.vue.d.ts.map +1 -1
- package/dist/src/components/layouts/AppTopbar.vue.d.ts +16 -0
- package/dist/src/components/layouts/AppTopbar.vue.d.ts.map +1 -1
- package/dist/src/components/navigation/PreviewPanel.vue.d.ts +14 -1
- package/dist/src/components/viewer/PDFComponent.vue.d.ts +36 -1
- package/dist/src/components/viewer/PDFComponent.vue.d.ts.map +1 -1
- package/dist/src/i18n/index.d.ts +10 -0
- package/dist/src/i18n/index.d.ts.map +1 -1
- package/dist/src/services/ErrorService.d.ts.map +1 -1
- package/dist/src/services/PdfFormService.d.ts +29 -0
- package/dist/src/services/PdfFormService.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/index-D9Rwpk8t.js.map +0 -1
|
@@ -559,6 +559,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
559
559
|
type: ArrayConstructor;
|
|
560
560
|
default: () => any[];
|
|
561
561
|
};
|
|
562
|
+
menuTooltip: {
|
|
563
|
+
type: StringConstructor;
|
|
564
|
+
default: string;
|
|
565
|
+
};
|
|
562
566
|
showSearch: {
|
|
563
567
|
type: BooleanConstructor;
|
|
564
568
|
default: boolean;
|
|
@@ -602,6 +606,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
602
606
|
}>, {
|
|
603
607
|
isMobile: ComputedRef<boolean>;
|
|
604
608
|
computedSettingsItems: ComputedRef<unknown[]>;
|
|
609
|
+
searchIsExternal: ComputedRef<boolean>;
|
|
605
610
|
doLogout: (loginRouteName: any) => Promise<void>;
|
|
606
611
|
}, {}, {}, {
|
|
607
612
|
getLabel(item: any): any;
|
|
@@ -635,6 +640,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
635
640
|
type: ArrayConstructor;
|
|
636
641
|
default: () => any[];
|
|
637
642
|
};
|
|
643
|
+
menuTooltip: {
|
|
644
|
+
type: StringConstructor;
|
|
645
|
+
default: string;
|
|
646
|
+
};
|
|
638
647
|
showSearch: {
|
|
639
648
|
type: BooleanConstructor;
|
|
640
649
|
default: boolean;
|
|
@@ -686,6 +695,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
686
695
|
horizontalMenu: boolean;
|
|
687
696
|
showLogo: boolean;
|
|
688
697
|
logo: string;
|
|
698
|
+
menuTooltip: string;
|
|
689
699
|
showSearch: boolean;
|
|
690
700
|
searchRoute: string;
|
|
691
701
|
searchTooltip: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppSubmenu.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/layouts/AppSubmenu.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"AppSubmenu.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/layouts/AppSubmenu.vue"],"names":[],"mappings":";AA6JA;;IAslBI;;;;;;;;;;;;;OAaG;;;;;;;;;;;;;;;IAbH;;;;;;;;;;;;;OAaG"}
|
|
@@ -45,6 +45,13 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
45
45
|
type: ArrayConstructor;
|
|
46
46
|
default: () => any[];
|
|
47
47
|
};
|
|
48
|
+
/**
|
|
49
|
+
* Accessible name of the menu toggle button
|
|
50
|
+
*/
|
|
51
|
+
menuTooltip: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
default: string;
|
|
54
|
+
};
|
|
48
55
|
/**
|
|
49
56
|
* Show search button
|
|
50
57
|
*/
|
|
@@ -119,6 +126,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
119
126
|
}>, {
|
|
120
127
|
isMobile: ComputedRef<boolean>;
|
|
121
128
|
computedSettingsItems: ComputedRef<unknown[]>;
|
|
129
|
+
searchIsExternal: ComputedRef<boolean>;
|
|
122
130
|
doLogout: (loginRouteName: any) => Promise<void>;
|
|
123
131
|
}, {}, {}, {
|
|
124
132
|
getLabel(item: any): any;
|
|
@@ -171,6 +179,13 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
171
179
|
type: ArrayConstructor;
|
|
172
180
|
default: () => any[];
|
|
173
181
|
};
|
|
182
|
+
/**
|
|
183
|
+
* Accessible name of the menu toggle button
|
|
184
|
+
*/
|
|
185
|
+
menuTooltip: {
|
|
186
|
+
type: StringConstructor;
|
|
187
|
+
default: string;
|
|
188
|
+
};
|
|
174
189
|
/**
|
|
175
190
|
* Show search button
|
|
176
191
|
*/
|
|
@@ -253,6 +268,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
253
268
|
horizontalMenu: boolean;
|
|
254
269
|
showLogo: boolean;
|
|
255
270
|
logo: string;
|
|
271
|
+
menuTooltip: string;
|
|
256
272
|
showSearch: boolean;
|
|
257
273
|
searchRoute: string;
|
|
258
274
|
searchTooltip: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppTopbar.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/layouts/AppTopbar.vue"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"AppTopbar.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/layouts/AppTopbar.vue"],"names":[],"mappings":";;;AAmKA;;IAskBI;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;;OAGG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;;OAGG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;;;;;;;;;;;;;;IApHH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;;OAGG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;;OAGG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG"}
|
|
@@ -250,7 +250,11 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
250
250
|
isSinglePageDisplayed: boolean;
|
|
251
251
|
isFormDirty: boolean;
|
|
252
252
|
isSaving: boolean;
|
|
253
|
+
isUnlocking: boolean;
|
|
254
|
+
isLocking: boolean;
|
|
253
255
|
hasFormFields: boolean;
|
|
256
|
+
hasReadOnlyFields: boolean;
|
|
257
|
+
unlockedFormBytes: any;
|
|
254
258
|
showFormFieldsDialog: boolean;
|
|
255
259
|
formFieldsData: any[];
|
|
256
260
|
formFieldValues: {};
|
|
@@ -273,17 +277,23 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
273
277
|
fitWidthAuto(): void;
|
|
274
278
|
previousPage(): void;
|
|
275
279
|
nextPage(): void;
|
|
280
|
+
currentPdfSource(): string | {
|
|
281
|
+
data: Uint8Array;
|
|
282
|
+
};
|
|
276
283
|
loadPDF(): void;
|
|
277
284
|
changePageUrl(pageValue: any): void;
|
|
278
285
|
focusOnPDFComponent(): void;
|
|
279
286
|
getFormBytes(): Promise<any>;
|
|
280
287
|
resetFormDirty(): void;
|
|
281
288
|
setSaving(value: any): void;
|
|
289
|
+
setLocking(value: any): void;
|
|
290
|
+
getLockedFormBytes(): Promise<Uint8Array | null>;
|
|
282
291
|
onAnnotation(value: any): void;
|
|
283
292
|
checkFormFields(): Promise<void>;
|
|
293
|
+
unlockForm(): Promise<void>;
|
|
284
294
|
cancelForm(): void;
|
|
285
295
|
showFormFieldsInfo(): Promise<void>;
|
|
286
|
-
}, ComponentOptionsMixin, ComponentOptionsMixin, ("formDirtyChange" | "saveForm")[], "formDirtyChange" | "saveForm", PublicProps, Readonly< ExtractPropTypes<{
|
|
296
|
+
}, ComponentOptionsMixin, ComponentOptionsMixin, ("formDirtyChange" | "saveForm" | "lockForm" | "formUnlocked" | "formUnlockError")[], "formDirtyChange" | "saveForm" | "lockForm" | "formUnlocked" | "formUnlockError", PublicProps, Readonly< ExtractPropTypes<{
|
|
287
297
|
url: {
|
|
288
298
|
type: StringConstructor;
|
|
289
299
|
default: any;
|
|
@@ -307,6 +317,9 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
307
317
|
}>> & Readonly<{
|
|
308
318
|
onFormDirtyChange?: (...args: any[]) => any;
|
|
309
319
|
onSaveForm?: (...args: any[]) => any;
|
|
320
|
+
onLockForm?: (...args: any[]) => any;
|
|
321
|
+
onFormUnlocked?: (...args: any[]) => any;
|
|
322
|
+
onFormUnlockError?: (...args: any[]) => any;
|
|
310
323
|
}>, {
|
|
311
324
|
textLayer: boolean;
|
|
312
325
|
hideForms: boolean;
|
|
@@ -45,7 +45,11 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
45
45
|
isSinglePageDisplayed: boolean;
|
|
46
46
|
isFormDirty: boolean;
|
|
47
47
|
isSaving: boolean;
|
|
48
|
+
isUnlocking: boolean;
|
|
49
|
+
isLocking: boolean;
|
|
48
50
|
hasFormFields: boolean;
|
|
51
|
+
hasReadOnlyFields: boolean;
|
|
52
|
+
unlockedFormBytes: any;
|
|
49
53
|
showFormFieldsDialog: boolean;
|
|
50
54
|
formFieldsData: any[];
|
|
51
55
|
formFieldValues: {};
|
|
@@ -68,17 +72,45 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
68
72
|
fitWidthAuto(): void;
|
|
69
73
|
previousPage(): void;
|
|
70
74
|
nextPage(): void;
|
|
75
|
+
/**
|
|
76
|
+
* Source handed to pdf.js: the node URL, or the in-memory bytes produced by
|
|
77
|
+
* unlockForm(). pdf.js transfers the `data` buffer to its worker, which
|
|
78
|
+
* detaches it, so every load gets its own copy — otherwise a second load
|
|
79
|
+
* (cancelForm, changePdfDisplay) would fail on a detached ArrayBuffer.
|
|
80
|
+
*
|
|
81
|
+
* @returns {string|{data: Uint8Array}}
|
|
82
|
+
*/
|
|
83
|
+
currentPdfSource(): string | {
|
|
84
|
+
data: Uint8Array;
|
|
85
|
+
};
|
|
71
86
|
loadPDF(): void;
|
|
72
87
|
changePageUrl(pageValue: any): void;
|
|
73
88
|
focusOnPDFComponent(): void;
|
|
74
89
|
getFormBytes(): Promise<any>;
|
|
75
90
|
resetFormDirty(): void;
|
|
76
91
|
setSaving(value: any): void;
|
|
92
|
+
setLocking(value: any): void;
|
|
93
|
+
/**
|
|
94
|
+
* Bytes of the form with the values typed in the viewer kept and every
|
|
95
|
+
* field flagged read-only, ready to be stored as a new version.
|
|
96
|
+
*
|
|
97
|
+
* @returns {Promise<Uint8Array|null>} null when the document is not loaded
|
|
98
|
+
*/
|
|
99
|
+
getLockedFormBytes(): Promise<Uint8Array | null>;
|
|
77
100
|
onAnnotation(value: any): void;
|
|
78
101
|
checkFormFields(): Promise<void>;
|
|
102
|
+
/**
|
|
103
|
+
* Drop the ReadOnly flags of the form so its fields become fillable.
|
|
104
|
+
*
|
|
105
|
+
* The change stays local: the viewer is reloaded from the rewritten bytes
|
|
106
|
+
* and nothing is sent to the repository. The unlocked structure reaches
|
|
107
|
+
* Alfresco only if the user then saves the filled form, through the regular
|
|
108
|
+
* save path.
|
|
109
|
+
*/
|
|
110
|
+
unlockForm(): Promise<void>;
|
|
79
111
|
cancelForm(): void;
|
|
80
112
|
showFormFieldsInfo(): Promise<void>;
|
|
81
|
-
}, ComponentOptionsMixin, ComponentOptionsMixin, ("formDirtyChange" | "saveForm")[], "formDirtyChange" | "saveForm", PublicProps, Readonly< ExtractPropTypes<{
|
|
113
|
+
}, ComponentOptionsMixin, ComponentOptionsMixin, ("formDirtyChange" | "saveForm" | "lockForm" | "formUnlocked" | "formUnlockError")[], "formDirtyChange" | "saveForm" | "lockForm" | "formUnlocked" | "formUnlockError", PublicProps, Readonly< ExtractPropTypes<{
|
|
82
114
|
url: {
|
|
83
115
|
type: StringConstructor;
|
|
84
116
|
default: any;
|
|
@@ -102,6 +134,9 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
102
134
|
}>> & Readonly<{
|
|
103
135
|
onFormDirtyChange?: (...args: any[]) => any;
|
|
104
136
|
onSaveForm?: (...args: any[]) => any;
|
|
137
|
+
onLockForm?: (...args: any[]) => any;
|
|
138
|
+
onFormUnlocked?: (...args: any[]) => any;
|
|
139
|
+
onFormUnlockError?: (...args: any[]) => any;
|
|
105
140
|
}>, {
|
|
106
141
|
textLayer: boolean;
|
|
107
142
|
hideForms: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PDFComponent.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/viewer/PDFComponent.vue"],"names":[],"mappings":";;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"PDFComponent.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/viewer/PDFComponent.vue"],"names":[],"mappings":";;;;;;;;;;;;;AAkRA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAqkCI;;;;;;;OAOG;wBADU,MAAM,GAAC;QAAC,IAAI,EAAE,UAAU,CAAA;KAAC;;;;;;;;IA8DtC;;;;;OAKG;0BADU,OAAO,CAAC,UAAU,GAAC,IAAI,CAAC;;;IAgFrC;;;;;;;OAOG"}
|
package/dist/src/i18n/index.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ import { I18n } from 'vue-i18n';
|
|
|
2
2
|
export default i18n;
|
|
3
3
|
declare const i18n: I18n<{
|
|
4
4
|
en: {
|
|
5
|
+
emptyPasswordOrUser: string;
|
|
6
|
+
unexpectedLoginError: string;
|
|
5
7
|
auth: {
|
|
6
8
|
signInProgress: string;
|
|
7
9
|
callbackError: string;
|
|
@@ -339,6 +341,9 @@ declare const i18n: I18n<{
|
|
|
339
341
|
showPageByPage: string;
|
|
340
342
|
previousPage: string;
|
|
341
343
|
nextPage: string;
|
|
344
|
+
lockForm: string;
|
|
345
|
+
unlockForm: string;
|
|
346
|
+
unlockFormBlocked: string;
|
|
342
347
|
saveForm: string;
|
|
343
348
|
cancelForm: string;
|
|
344
349
|
formFieldsInfo: string;
|
|
@@ -1912,6 +1917,8 @@ declare const i18n: I18n<{
|
|
|
1912
1917
|
};
|
|
1913
1918
|
};
|
|
1914
1919
|
fr: {
|
|
1920
|
+
emptyPasswordOrUser: string;
|
|
1921
|
+
unexpectedLoginError: string;
|
|
1915
1922
|
auth: {
|
|
1916
1923
|
signInProgress: string;
|
|
1917
1924
|
callbackError: string;
|
|
@@ -2249,6 +2256,9 @@ declare const i18n: I18n<{
|
|
|
2249
2256
|
showPageByPage: string;
|
|
2250
2257
|
previousPage: string;
|
|
2251
2258
|
nextPage: string;
|
|
2259
|
+
lockForm: string;
|
|
2260
|
+
unlockForm: string;
|
|
2261
|
+
unlockFormBlocked: string;
|
|
2252
2262
|
saveForm: string;
|
|
2253
2263
|
cancelForm: string;
|
|
2254
2264
|
formFieldsInfo: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/i18n/index.js"],"names":[],"mappings":";;AAsBA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/i18n/index.js"],"names":[],"mappings":";;AAsBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAOG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorService.d.ts","sourceRoot":"","sources":["../../../src/services/ErrorService.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ErrorService.d.ts","sourceRoot":"","sources":["../../../src/services/ErrorService.js"],"names":[],"mappings":"AAoFA;;;;;;;;;;;GAWG;AACH,uCATW,MAAM,SAEd;IAAsB,MAAM,EAApB,MAAM;IACS,QAAQ,GAC/B;QAAgC,KAAK,GACrC;YAAsC,OAAO,GAArC,MAAM;SACd;KAAA;IAA6B,OAAO,EAA5B,MAAM,MAAO;CACrB,GAAS,WAAW,CAgCtB;AAoFD,2CAyCC;;;AAvOD;;;;;GAKG;AACH;IACE,iDAIC;IAFC,UAAgB;IAChB,WAAkB;CAErB;AAgGD;;;;;GAKG;AACH;IACE,kCAwBC;IAED,iDAUC;IAED,6CAcC;IAED,uCAkBC;CACF"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Make every field of a form fillable again.
|
|
3
|
+
*
|
|
4
|
+
* A form whose fields are all flagged ReadOnly looks broken rather than
|
|
5
|
+
* protected — inert inputs, no message — a common accident with forms exported
|
|
6
|
+
* from LibreOffice Writer.
|
|
7
|
+
*
|
|
8
|
+
* @param {Uint8Array|ArrayBuffer} pdfBytes the document as loaded
|
|
9
|
+
* @returns {Promise<{bytes: Uint8Array|null, unlockedCount: number}>} null
|
|
10
|
+
* bytes when no field was locked
|
|
11
|
+
*/
|
|
12
|
+
export function unlockFormFields(pdfBytes: Uint8Array | ArrayBuffer): Promise<{
|
|
13
|
+
bytes: Uint8Array | null;
|
|
14
|
+
unlockedCount: number;
|
|
15
|
+
}>;
|
|
16
|
+
/**
|
|
17
|
+
* Mark every field of a form as read-only, to state that it is final.
|
|
18
|
+
*
|
|
19
|
+
* @param {Uint8Array|ArrayBuffer} pdfBytes the document as loaded, values
|
|
20
|
+
* included — lock the bytes returned by pdf.js `saveDocument()` to keep what
|
|
21
|
+
* was filled in
|
|
22
|
+
* @returns {Promise<{bytes: Uint8Array|null, lockedCount: number}>} null bytes
|
|
23
|
+
* when every field was already read-only
|
|
24
|
+
*/
|
|
25
|
+
export function lockFormFields(pdfBytes: Uint8Array | ArrayBuffer): Promise<{
|
|
26
|
+
bytes: Uint8Array | null;
|
|
27
|
+
lockedCount: number;
|
|
28
|
+
}>;
|
|
29
|
+
//# sourceMappingURL=PdfFormService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PdfFormService.d.ts","sourceRoot":"","sources":["../../../src/services/PdfFormService.js"],"names":[],"mappings":"AAmEA;;;;;;;;;;GAUG;AACH,2CAJW,UAAU,GAAC,WAAW,GACpB,OAAO,CAAC;IAAC,KAAK,EAAE,UAAU,GAAC,IAAI,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAC,CAAC,CAMpE;AAED;;;;;;;;GAQG;AACH,yCANW,UAAU,GAAC,WAAW,GAGpB,OAAO,CAAC;IAAC,KAAK,EAAE,UAAU,GAAC,IAAI,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAC,CAAC,CAMlE"}
|