@ezeep/ezeep-js 1.0.272 → 1.0.284
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/cjs/{app-globals-D7ISNeUi.js → app-globals-L_3XPZxT.js} +7 -1
- package/dist/cjs/ezeep.cjs.js +4 -4
- package/dist/cjs/ezp-auth_15.cjs.entry.js +7338 -3700
- package/dist/cjs/{index-dv_gozsq.js → index-DM5v_sge.js} +3 -2
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/ezp-auth/ezp-auth.css +0 -12
- package/dist/collection/components/ezp-auth/ezp-auth.js +78 -18
- package/dist/collection/components/ezp-backdrop/ezp-backdrop.js +5 -5
- package/dist/collection/components/ezp-dialog/ezp-dialog.js +85 -13
- package/dist/collection/components/ezp-icon/assets/glyph-cloud-upload.svg +4 -0
- package/dist/collection/components/ezp-icon/assets/glyph-file.svg +3 -0
- package/dist/collection/components/ezp-icon/ezp-icon.js +8 -3
- package/dist/collection/components/ezp-icon-button/ezp-icon-button.js +5 -2
- package/dist/collection/components/ezp-input/ezp-input.css +19 -38
- package/dist/collection/components/ezp-input/ezp-input.js +16 -14
- package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.css +175 -48
- package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.js +215 -329
- package/dist/collection/components/ezp-printing/ezp-printing.css +23 -23
- package/dist/collection/components/ezp-printing/ezp-printing.js +119 -35
- package/dist/collection/components/ezp-select/ezp-select.css +56 -38
- package/dist/collection/components/ezp-select/ezp-select.js +93 -14
- package/dist/collection/components/ezp-status/ezp-status.css +94 -9
- package/dist/collection/components/ezp-status/ezp-status.js +42 -13
- package/dist/collection/components/ezp-stepper/ezp-stepper.css +37 -35
- package/dist/collection/components/ezp-stepper/ezp-stepper.js +14 -7
- package/dist/collection/components/ezp-text-button/ezp-text-button.css +3 -3
- package/dist/collection/components/ezp-text-button/ezp-text-button.js +1 -1
- package/dist/collection/components/ezp-upload/ezp-upload.css +243 -77
- package/dist/collection/components/ezp-upload/ezp-upload.js +80 -10
- package/dist/collection/components/ezp-user-menu/ezp-user-menu.css +2 -1
- package/dist/collection/components/ezp-user-menu/ezp-user-menu.js +15 -15
- package/dist/collection/services/auth.js +37 -36
- package/dist/collection/services/http.js +11 -0
- package/dist/collection/services/print-job.js +72 -0
- package/dist/collection/services/print.js +21 -69
- package/dist/collection/services/user.js +2 -9
- package/dist/collection/shared/constants.js +55 -0
- package/dist/collection/shared/global.js +7 -1
- package/dist/collection/shared/storage.js +71 -0
- package/dist/collection/types/shared/types.d.ts +42 -9
- package/dist/collection/utils/printer.js +68 -0
- package/dist/collection/utils/utils.js +24 -9
- package/dist/components/auth.js +1 -1
- package/dist/components/ezp-auth2.js +1 -1
- package/dist/components/ezp-backdrop2.js +1 -1
- package/dist/components/ezp-dialog2.js +1 -1
- package/dist/components/ezp-icon-button2.js +1 -1
- package/dist/components/ezp-icon2.js +1 -1
- package/dist/components/ezp-input2.js +1 -1
- package/dist/components/ezp-printer-selection2.js +1 -1
- package/dist/components/ezp-printing.js +1 -1
- package/dist/components/ezp-select2.js +1 -1
- package/dist/components/ezp-status2.js +1 -1
- package/dist/components/ezp-stepper2.js +1 -1
- package/dist/components/ezp-text-button2.js +1 -1
- package/dist/components/ezp-upload2.js +1 -1
- package/dist/components/ezp-user-menu.js +1 -1
- package/dist/components/ezp-user-menu2.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/utils.js +1 -0
- package/dist/directives/proxies.ts +74 -47
- package/dist/esm/{app-globals-CpP67t2l.js → app-globals-C0WTlb31.js} +7 -1
- package/dist/esm/ezeep.js +5 -5
- package/dist/esm/ezp-auth_15.entry.js +7338 -3700
- package/dist/esm/{index-BTfWEHH9.js → index-BButrLnB.js} +3 -3
- package/dist/esm/loader.js +4 -4
- package/dist/esm-es5/{app-globals-CpP67t2l.js → app-globals-C0WTlb31.js} +1 -1
- package/dist/esm-es5/ezeep.js +1 -1
- package/dist/esm-es5/ezp-auth_15.entry.js +2 -2
- package/dist/esm-es5/{index-BTfWEHH9.js → index-BButrLnB.js} +3 -3
- package/dist/esm-es5/loader.js +1 -1
- package/dist/ezeep/assets/glyph-cloud-upload.svg +4 -0
- package/dist/ezeep/assets/glyph-file.svg +3 -0
- package/dist/ezeep/ezeep.esm.js +1 -1
- package/dist/ezeep/ezeep.js +1 -1
- package/dist/ezeep/p-1e286bd1.system.entry.js +7 -0
- package/dist/ezeep/{p-BTfWEHH9.js → p-BButrLnB.js} +2 -2
- package/dist/ezeep/{p-CpP67t2l.js → p-C0WTlb31.js} +1 -1
- package/{www/build/p-DhXN1yGM.system.js → dist/ezeep/p-CYpousxy.system.js} +2 -2
- package/dist/ezeep/{p-5ok9OZMg.system.js → p-D4aCr1OK.system.js} +1 -1
- package/dist/ezeep/p-DCznw2Ee.system.js +1 -0
- package/dist/ezeep/p-a2b688f0.entry.js +1 -0
- package/dist/ezeep/types/shared/types.d.ts +42 -9
- package/dist/types/components/ezp-auth/ezp-auth.d.ts +8 -5
- package/dist/types/components/ezp-backdrop/ezp-backdrop.d.ts +2 -2
- package/dist/types/components/ezp-dialog/ezp-dialog.d.ts +14 -3
- package/dist/types/components/ezp-input/ezp-input.d.ts +17 -14
- package/dist/types/components/ezp-printer-selection/ezp-printer-selection.d.ts +23 -7
- package/dist/types/components/ezp-printing/ezp-printing.d.ts +26 -2
- package/dist/types/components/ezp-select/ezp-select.d.ts +10 -4
- package/dist/types/components/ezp-status/ezp-status.d.ts +7 -4
- package/dist/types/components/ezp-stepper/ezp-stepper.d.ts +1 -1
- package/dist/types/components/ezp-upload/ezp-upload.d.ts +13 -1
- package/dist/types/components/ezp-user-menu/ezp-user-menu.d.ts +5 -2
- package/dist/types/components.d.ts +47 -39
- package/dist/types/services/auth.d.ts +10 -0
- package/dist/types/services/http.d.ts +4 -0
- package/dist/types/services/print-job.d.ts +48 -0
- package/dist/types/services/print.d.ts +10 -9
- package/dist/types/services/user.d.ts +13 -2
- package/dist/types/shared/constants.d.ts +51 -0
- package/dist/types/shared/storage.d.ts +24 -0
- package/dist/types/shared/types.d.ts +42 -9
- package/dist/types/stencil-public-runtime.d.ts +1 -0
- package/dist/types/utils/printer.d.ts +22 -0
- package/dist/types/utils/utils.d.ts +22 -10
- package/package.json +30 -18
- package/readme.md +1 -0
- package/www/build/assets/glyph-cloud-upload.svg +4 -0
- package/www/build/assets/glyph-file.svg +3 -0
- package/www/build/ezeep.esm.js +1 -1
- package/www/build/ezeep.js +1 -1
- package/www/build/p-1e286bd1.system.entry.js +7 -0
- package/www/build/p-544b7033.js +1 -0
- package/www/build/{p-BTfWEHH9.js → p-BButrLnB.js} +2 -2
- package/www/build/{p-CpP67t2l.js → p-C0WTlb31.js} +1 -1
- package/{dist/ezeep/p-DhXN1yGM.system.js → www/build/p-CYpousxy.system.js} +2 -2
- package/www/build/{p-5ok9OZMg.system.js → p-D4aCr1OK.system.js} +1 -1
- package/www/build/p-DCznw2Ee.system.js +1 -0
- package/www/build/p-a2b688f0.entry.js +1 -0
- package/www/data/locales/de.json +14 -5
- package/www/data/locales/en.json +14 -5
- package/www/index.html +2 -5
- package/dist/components/i18next.js +0 -1
- package/dist/ezeep/p-2177b8f4.system.entry.js +0 -7
- package/dist/ezeep/p-CfQRcOh8.system.js +0 -1
- package/dist/ezeep/p-de8f6583.entry.js +0 -1
- package/www/build/p-2177b8f4.system.entry.js +0 -7
- package/www/build/p-256870db.js +0 -1
- package/www/build/p-CfQRcOh8.system.js +0 -1
- package/www/build/p-de8f6583.entry.js +0 -1
|
@@ -5,7 +5,9 @@ export type IconNameTypes =
|
|
|
5
5
|
| 'checkmark-alt'
|
|
6
6
|
| 'checkmark'
|
|
7
7
|
| 'close'
|
|
8
|
+
| 'cloud-upload'
|
|
8
9
|
| 'color'
|
|
10
|
+
| 'file'
|
|
9
11
|
| 'copies'
|
|
10
12
|
| 'dark'
|
|
11
13
|
| 'drag-drop'
|
|
@@ -55,6 +57,37 @@ export type AppearanceTypes = 'system' | 'light' | 'dark'
|
|
|
55
57
|
export type TriggerTypes = 'custom' | 'file' | 'button'
|
|
56
58
|
export type AlertType = { open: boolean; heading: string; description: string }
|
|
57
59
|
export type SystemAppearanceTypes = 'light' | 'dark'
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Payload emitted by selection-style components (`ezp-select`, `ezp-input`,
|
|
63
|
+
* `ezp-stepper`) and consumed by `ezp-printer-selection.setSelectedProperties`.
|
|
64
|
+
*/
|
|
65
|
+
export interface PropertyChangeDetail {
|
|
66
|
+
type: string
|
|
67
|
+
id?: string | number | boolean
|
|
68
|
+
title?: string
|
|
69
|
+
is_queue?: boolean
|
|
70
|
+
value?: string | number
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/** Response of `sfapi/Print` (POST). */
|
|
74
|
+
export interface PrintResponse {
|
|
75
|
+
code?: number
|
|
76
|
+
jobid?: string
|
|
77
|
+
fileid?: string
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/** Response of `sfapi/Status`. */
|
|
81
|
+
export interface JobStatusResponse {
|
|
82
|
+
jobstatus: number
|
|
83
|
+
jobstatusstring?: string
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/** Response of `sfapi/PrepareUpload`. */
|
|
87
|
+
export interface PrepareUploadResponse {
|
|
88
|
+
fileid: string
|
|
89
|
+
sasUri: string
|
|
90
|
+
}
|
|
58
91
|
export interface PrinterProperties {
|
|
59
92
|
paper?: string
|
|
60
93
|
paperid?: number | string
|
|
@@ -64,11 +97,11 @@ export interface PrinterProperties {
|
|
|
64
97
|
orientation?: number | string
|
|
65
98
|
copies?: number | string
|
|
66
99
|
resolution?: string | number
|
|
67
|
-
paperlength
|
|
68
|
-
paperwidth
|
|
100
|
+
paperlength?: string | number
|
|
101
|
+
paperwidth?: string | number
|
|
69
102
|
defaultSource?: number | string
|
|
70
|
-
trayname?: string
|
|
71
|
-
PageRanges
|
|
103
|
+
trayname?: string
|
|
104
|
+
PageRanges?: string
|
|
72
105
|
}
|
|
73
106
|
|
|
74
107
|
export interface Printer {
|
|
@@ -87,8 +120,8 @@ export interface PaperFormat {
|
|
|
87
120
|
}
|
|
88
121
|
|
|
89
122
|
export interface Trays {
|
|
90
|
-
Default
|
|
91
|
-
Index:
|
|
123
|
+
Default: boolean
|
|
124
|
+
Index: number
|
|
92
125
|
Name: string
|
|
93
126
|
}
|
|
94
127
|
|
|
@@ -101,7 +134,7 @@ export interface PrinterConfig {
|
|
|
101
134
|
Resolution?: string
|
|
102
135
|
Paper?: string
|
|
103
136
|
Tray?: string
|
|
104
|
-
}
|
|
137
|
+
}
|
|
105
138
|
Collate?: boolean
|
|
106
139
|
Color?: boolean
|
|
107
140
|
ColorSupported?: boolean
|
|
@@ -123,7 +156,7 @@ export interface PrinterConfig {
|
|
|
123
156
|
}
|
|
124
157
|
|
|
125
158
|
export interface User {
|
|
126
|
-
azureProfile:
|
|
159
|
+
azureProfile: unknown
|
|
127
160
|
dateJoined: string
|
|
128
161
|
displayName: string
|
|
129
162
|
email: string
|
|
@@ -137,5 +170,5 @@ export interface User {
|
|
|
137
170
|
isVerfified: boolean
|
|
138
171
|
lastName: string
|
|
139
172
|
roles: Array<string>
|
|
140
|
-
userInvitations:
|
|
173
|
+
userInvitations: unknown
|
|
141
174
|
}
|
|
@@ -10,15 +10,18 @@ export declare class EzpAuth {
|
|
|
10
10
|
authURI: string;
|
|
11
11
|
accessToken: string;
|
|
12
12
|
authCancel: EventEmitter<MouseEvent>;
|
|
13
|
-
authSuccess: EventEmitter
|
|
14
|
-
userCancel: EventEmitter
|
|
13
|
+
authSuccess: EventEmitter<void>;
|
|
14
|
+
userCancel: EventEmitter<void>;
|
|
15
15
|
listenDialogAction(): void;
|
|
16
16
|
listenDialogClose(): void;
|
|
17
17
|
listenStatusCancel(): void;
|
|
18
|
-
oauthPopupWindow: Window;
|
|
19
|
-
previousUrl:
|
|
18
|
+
oauthPopupWindow: Window | null;
|
|
19
|
+
previousUrl: string | URL | null;
|
|
20
|
+
private unsubscribeLanguage?;
|
|
21
|
+
connectedCallback(): void;
|
|
22
|
+
disconnectedCallback(): void;
|
|
20
23
|
openSignInWindow(url: string, name: string): void;
|
|
21
|
-
receiveMessage(event:
|
|
24
|
+
receiveMessage: (event: MessageEvent) => void;
|
|
22
25
|
componentWillLoad(): Promise<void>;
|
|
23
26
|
render(): any;
|
|
24
27
|
}
|
|
@@ -2,8 +2,8 @@ import { EventEmitter } from '../../stencil-public-runtime';
|
|
|
2
2
|
export declare class EzpBackdrop {
|
|
3
3
|
component: HTMLEzpBackdropElement;
|
|
4
4
|
visible: boolean;
|
|
5
|
-
backdropHideStart: EventEmitter
|
|
6
|
-
backdropHideEnd: EventEmitter
|
|
5
|
+
backdropHideStart: EventEmitter<void>;
|
|
6
|
+
backdropHideEnd: EventEmitter<void>;
|
|
7
7
|
private handleClick;
|
|
8
8
|
listenAnimationEnd(): void;
|
|
9
9
|
render(): any;
|
|
@@ -6,8 +6,8 @@ export declare class EzpDialog {
|
|
|
6
6
|
* Events
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
9
|
-
dialogClose: EventEmitter
|
|
10
|
-
dialogAction: EventEmitter
|
|
9
|
+
dialogClose: EventEmitter<string>;
|
|
10
|
+
dialogAction: EventEmitter<string>;
|
|
11
11
|
/**
|
|
12
12
|
*
|
|
13
13
|
* Properties
|
|
@@ -25,12 +25,23 @@ export declare class EzpDialog {
|
|
|
25
25
|
* Lifecycle methods
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
|
-
|
|
28
|
+
private box?;
|
|
29
|
+
private unsubscribeLanguage?;
|
|
30
|
+
connectedCallback(): void;
|
|
31
|
+
componentDidLoad(): void;
|
|
32
|
+
disconnectedCallback(): void;
|
|
29
33
|
/**
|
|
30
34
|
*
|
|
31
35
|
* Private methods
|
|
32
36
|
*
|
|
33
37
|
*/
|
|
38
|
+
handleKeydown(event: KeyboardEvent): void;
|
|
39
|
+
/** Keep Tab focus cycling inside the modal (across nested shadow roots). */
|
|
40
|
+
private trapFocus;
|
|
41
|
+
/** Tabbable elements in the flattened tree, descending into shadow roots. */
|
|
42
|
+
private collectFocusable;
|
|
43
|
+
/** The truly-focused element, following activeElement through shadow roots. */
|
|
44
|
+
private deepActiveElement;
|
|
34
45
|
private handleClose;
|
|
35
46
|
private handleAction;
|
|
36
47
|
/**
|
|
@@ -4,10 +4,10 @@ export declare class EzpInput {
|
|
|
4
4
|
private input?;
|
|
5
5
|
private timeout;
|
|
6
6
|
/**
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
*
|
|
8
|
+
* Properties
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
11
|
/** Description... */
|
|
12
12
|
label: string;
|
|
13
13
|
/** Description... */
|
|
@@ -23,18 +23,21 @@ export declare class EzpInput {
|
|
|
23
23
|
/** Description... */
|
|
24
24
|
placeholder: string;
|
|
25
25
|
/**
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
inputValueChanged: EventEmitter
|
|
26
|
+
*
|
|
27
|
+
* Events
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
inputValueChanged: EventEmitter<{
|
|
31
|
+
type: string;
|
|
32
|
+
value: string | number;
|
|
33
|
+
}>;
|
|
31
34
|
/**
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
*
|
|
36
|
+
* States
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
36
39
|
focused: boolean;
|
|
37
|
-
handleChange(event:
|
|
40
|
+
handleChange(event: Event): void;
|
|
38
41
|
private setFocus;
|
|
39
42
|
private handleBlur;
|
|
40
43
|
private handleFocus;
|
|
@@ -3,6 +3,7 @@ import { Printer, PrinterConfig, PrinterProperties } from '../../shared/types';
|
|
|
3
3
|
export declare class EzpPrinterSelection {
|
|
4
4
|
private fileExtension;
|
|
5
5
|
private printService;
|
|
6
|
+
private unsubscribeLanguage?;
|
|
6
7
|
duplexOptions: {
|
|
7
8
|
id: number;
|
|
8
9
|
title: string;
|
|
@@ -39,6 +40,7 @@ export declare class EzpPrinterSelection {
|
|
|
39
40
|
preparingUpload: boolean;
|
|
40
41
|
printSuccess: boolean;
|
|
41
42
|
printFailed: boolean;
|
|
43
|
+
printTimedOut: boolean;
|
|
42
44
|
notSupported: boolean;
|
|
43
45
|
noPrinters: boolean;
|
|
44
46
|
hubDriverError: boolean;
|
|
@@ -50,7 +52,7 @@ export declare class EzpPrinterSelection {
|
|
|
50
52
|
printerConfig: PrinterConfig[];
|
|
51
53
|
selectedPrinterConfig: PrinterConfig;
|
|
52
54
|
selectedProperties: PrinterProperties;
|
|
53
|
-
paperid: number | string;
|
|
55
|
+
paperid: number | string | undefined;
|
|
54
56
|
currentFileIndex: number;
|
|
55
57
|
totalFiles: number;
|
|
56
58
|
failedFiles: string[];
|
|
@@ -86,10 +88,8 @@ export declare class EzpPrinterSelection {
|
|
|
86
88
|
*/
|
|
87
89
|
/** Description... */
|
|
88
90
|
private handleCancel;
|
|
91
|
+
/** Poll `validate` callback: maps a job status to component state, returns `true` to stop polling. */
|
|
89
92
|
private validateData;
|
|
90
|
-
private POLL_INTERVAL;
|
|
91
|
-
private MAX_POLL_ATTEMPTS;
|
|
92
|
-
private HUB_TIMEOUT;
|
|
93
93
|
/** Description... */
|
|
94
94
|
private handlePrint;
|
|
95
95
|
private handleUserMenu;
|
|
@@ -97,10 +97,8 @@ export declare class EzpPrinterSelection {
|
|
|
97
97
|
private setPaperid;
|
|
98
98
|
private getUserInfo;
|
|
99
99
|
private setSelectedProperties;
|
|
100
|
-
|
|
100
|
+
/** Upload + print a single file, reflecting progress into component state. */
|
|
101
101
|
private processSingleFile;
|
|
102
|
-
private waitForPrintCompletion;
|
|
103
|
-
private getFileExtension;
|
|
104
102
|
private validateFileType;
|
|
105
103
|
setDefaultPaperFormat(): void;
|
|
106
104
|
private processMultipleFiles;
|
|
@@ -111,10 +109,28 @@ export declare class EzpPrinterSelection {
|
|
|
111
109
|
*/
|
|
112
110
|
/** Description... */
|
|
113
111
|
connectedCallback(): Promise<void>;
|
|
112
|
+
disconnectedCallback(): void;
|
|
114
113
|
/**
|
|
115
114
|
*
|
|
116
115
|
* Render method
|
|
117
116
|
*
|
|
118
117
|
*/
|
|
118
|
+
/** Description shown while a print job is in progress. */
|
|
119
|
+
private processingDescription;
|
|
120
|
+
/** Description for a successful pull-print (hub/queue printer). */
|
|
121
|
+
private pullPrintSuccessDescription;
|
|
122
|
+
/** Description for a successful (possibly partial) direct print. */
|
|
123
|
+
private printSuccessDescription;
|
|
124
|
+
/**
|
|
125
|
+
* True when an error is a polling-budget timeout rather than an outright
|
|
126
|
+
* failure — the job may still be rendering/printing server-side (common for
|
|
127
|
+
* large documents on direct printers), so it warrants a softer message.
|
|
128
|
+
*/
|
|
129
|
+
private isTimeoutError;
|
|
130
|
+
/**
|
|
131
|
+
* The single status card (if any) to show above the form. Replaces a deeply
|
|
132
|
+
* nested 9-branch ternary; the order of checks is preserved.
|
|
133
|
+
*/
|
|
134
|
+
private renderStatus;
|
|
119
135
|
render(): any;
|
|
120
136
|
}
|
|
@@ -3,6 +3,11 @@ import { EzpAuthorizationService } from '../../services/auth';
|
|
|
3
3
|
import { ThemeTypes, AppearanceTypes, TriggerTypes, SystemAppearanceTypes } from './../../shared/types';
|
|
4
4
|
export declare class EzpPrinting {
|
|
5
5
|
auth: EzpAuthorizationService;
|
|
6
|
+
private tokenRefreshInterval?;
|
|
7
|
+
private systemAppearanceQuery?;
|
|
8
|
+
private systemAppearanceListener?;
|
|
9
|
+
private unsubscribeLanguage?;
|
|
10
|
+
private refreshInFlight?;
|
|
6
11
|
clientid: string;
|
|
7
12
|
redirecturi: string;
|
|
8
13
|
filename: string;
|
|
@@ -51,15 +56,16 @@ export declare class EzpPrinting {
|
|
|
51
56
|
/** Description... */
|
|
52
57
|
listenAuthCancel(): void;
|
|
53
58
|
listenUserCancel(): void;
|
|
54
|
-
listenAuthSuccess(): void
|
|
59
|
+
listenAuthSuccess(): Promise<void>;
|
|
55
60
|
listenUploadFile(event: CustomEvent): void;
|
|
61
|
+
listenUploadContinue(event: CustomEvent): void;
|
|
56
62
|
listenDialogClose(event: CustomEvent): void;
|
|
57
63
|
listenDialogAction(event: CustomEvent): void;
|
|
58
64
|
listenLogout(): void;
|
|
59
65
|
/**
|
|
60
66
|
* Events
|
|
61
67
|
*/
|
|
62
|
-
printFinished: EventEmitter<
|
|
68
|
+
printFinished: EventEmitter<void>;
|
|
63
69
|
/**
|
|
64
70
|
*
|
|
65
71
|
* Public methods
|
|
@@ -67,6 +73,15 @@ export declare class EzpPrinting {
|
|
|
67
73
|
*/
|
|
68
74
|
open(): Promise<void>;
|
|
69
75
|
logOut(): Promise<void>;
|
|
76
|
+
/**
|
|
77
|
+
* Make sure an access token is available before a token-dependent call. The
|
|
78
|
+
* token is in-memory only, so after a reload it must be refreshed from the
|
|
79
|
+
* persisted refresh token first. Returns a shared in-flight promise so
|
|
80
|
+
* concurrent callers don't fire duplicate refreshes, and swallows a transient
|
|
81
|
+
* failure (the caller then falls through to the unauthorized path; the
|
|
82
|
+
* periodic refresh and next checkAuth retry).
|
|
83
|
+
*/
|
|
84
|
+
private ensureAccessToken;
|
|
70
85
|
getSasUri(): Promise<string>;
|
|
71
86
|
getAuthUri(): Promise<string>;
|
|
72
87
|
setAuthRefreshToken(refreshToken: string): Promise<void>;
|
|
@@ -77,8 +92,17 @@ export declare class EzpPrinting {
|
|
|
77
92
|
*/
|
|
78
93
|
private normalizeHostUrl;
|
|
79
94
|
refreshTokensPeriodically(seconds: number): void;
|
|
95
|
+
connectedCallback(): void;
|
|
80
96
|
componentWillLoad(): Promise<void>;
|
|
97
|
+
/**
|
|
98
|
+
* Adopt the signed-in user's account language (`preferred_language` from
|
|
99
|
+
* /v1/users/me) so the print UI matches the language chosen in the host app.
|
|
100
|
+
* An explicit `language` prop always wins. Requires an access token, so it
|
|
101
|
+
* runs after auth. Best-effort: on any failure the current language is kept.
|
|
102
|
+
*/
|
|
103
|
+
private syncPreferredLanguage;
|
|
81
104
|
componentDidLoad(): void;
|
|
105
|
+
disconnectedCallback(): void;
|
|
82
106
|
/**
|
|
83
107
|
*
|
|
84
108
|
* Render method
|
|
@@ -8,6 +8,7 @@ export declare class EzpSelect {
|
|
|
8
8
|
private expandCover;
|
|
9
9
|
private expandRise;
|
|
10
10
|
private list;
|
|
11
|
+
private toggleEl?;
|
|
11
12
|
private listHeight;
|
|
12
13
|
private spacing;
|
|
13
14
|
private toggleHeight;
|
|
@@ -30,8 +31,8 @@ export declare class EzpSelect {
|
|
|
30
31
|
options: SelectOptionType[];
|
|
31
32
|
/** Description... */
|
|
32
33
|
placeholder: string;
|
|
33
|
-
/**
|
|
34
|
-
preSelected:
|
|
34
|
+
/** The currently-selected option, matched by title (string) or id (number). */
|
|
35
|
+
preSelected: string | number | null;
|
|
35
36
|
/** Description... */
|
|
36
37
|
toggleFlow: SelectFlowTypes;
|
|
37
38
|
/** Description... */
|
|
@@ -50,8 +51,8 @@ export declare class EzpSelect {
|
|
|
50
51
|
* Events
|
|
51
52
|
*
|
|
52
53
|
*/
|
|
53
|
-
selectToggle: EventEmitter
|
|
54
|
-
selectSelection: EventEmitter
|
|
54
|
+
selectToggle: EventEmitter<boolean>;
|
|
55
|
+
selectSelection: EventEmitter<SelectOptionType>;
|
|
55
56
|
/**
|
|
56
57
|
*
|
|
57
58
|
* Watchers
|
|
@@ -67,6 +68,11 @@ export declare class EzpSelect {
|
|
|
67
68
|
private toggle;
|
|
68
69
|
private select;
|
|
69
70
|
private preSelect;
|
|
71
|
+
private getOptionElements;
|
|
72
|
+
/** Move focus onto the option at `index` (clamped to the list bounds). */
|
|
73
|
+
private focusOption;
|
|
74
|
+
private handleToggleKeydown;
|
|
75
|
+
private handleOptionKeydown;
|
|
70
76
|
/**
|
|
71
77
|
*
|
|
72
78
|
* Lifecycle methods
|
|
@@ -7,6 +7,7 @@ export declare class EzpStatus {
|
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
9
9
|
description: string;
|
|
10
|
+
subtext?: string;
|
|
10
11
|
processing: boolean;
|
|
11
12
|
instance: string;
|
|
12
13
|
icon?: IconNameTypes;
|
|
@@ -18,9 +19,10 @@ export declare class EzpStatus {
|
|
|
18
19
|
* Events
|
|
19
20
|
*
|
|
20
21
|
*/
|
|
21
|
-
statusCancel: EventEmitter
|
|
22
|
-
statusClose: EventEmitter
|
|
23
|
-
statusRetry: EventEmitter
|
|
22
|
+
statusCancel: EventEmitter<string>;
|
|
23
|
+
statusClose: EventEmitter<string>;
|
|
24
|
+
statusRetry: EventEmitter<string>;
|
|
25
|
+
private unsubscribeLanguage?;
|
|
24
26
|
/**
|
|
25
27
|
*
|
|
26
28
|
* Private methods
|
|
@@ -34,7 +36,8 @@ export declare class EzpStatus {
|
|
|
34
36
|
* Lifecycle methods
|
|
35
37
|
*
|
|
36
38
|
*/
|
|
37
|
-
|
|
39
|
+
connectedCallback(): void;
|
|
40
|
+
disconnectedCallback(): void;
|
|
38
41
|
/**
|
|
39
42
|
*
|
|
40
43
|
* Render method
|
|
@@ -2,6 +2,9 @@ import { EventEmitter } from '../../stencil-public-runtime';
|
|
|
2
2
|
export declare class EzpUpload {
|
|
3
3
|
private input?;
|
|
4
4
|
private form?;
|
|
5
|
+
private unsubscribeLanguage?;
|
|
6
|
+
connectedCallback(): void;
|
|
7
|
+
disconnectedCallback(): void;
|
|
5
8
|
/**
|
|
6
9
|
*
|
|
7
10
|
* States
|
|
@@ -14,7 +17,10 @@ export declare class EzpUpload {
|
|
|
14
17
|
* Events
|
|
15
18
|
*
|
|
16
19
|
*/
|
|
17
|
-
|
|
20
|
+
/** Keeps the parent's file state in sync as the selection changes. */
|
|
21
|
+
uploadFile: EventEmitter<File[]>;
|
|
22
|
+
/** Fired when the user confirms the selection and wants to move on to print options. */
|
|
23
|
+
uploadContinue: EventEmitter<File[]>;
|
|
18
24
|
/**
|
|
19
25
|
*
|
|
20
26
|
* Listeners
|
|
@@ -32,6 +38,12 @@ export declare class EzpUpload {
|
|
|
32
38
|
*/
|
|
33
39
|
private handleInput;
|
|
34
40
|
private removeFile;
|
|
41
|
+
private clearSelection;
|
|
42
|
+
private handleContinue;
|
|
43
|
+
/** Extract a short, upper-cased file-type label from the file name. */
|
|
44
|
+
private fileType;
|
|
45
|
+
/** Human-readable file size (matches the mockup's "14.6 KB" style). */
|
|
46
|
+
private formatSize;
|
|
35
47
|
/**
|
|
36
48
|
*
|
|
37
49
|
* Render method
|
|
@@ -14,8 +14,8 @@ export declare class EzpUserMenu {
|
|
|
14
14
|
* Events
|
|
15
15
|
*
|
|
16
16
|
*/
|
|
17
|
-
userMenuClosure: EventEmitter
|
|
18
|
-
logoutEmitter: EventEmitter
|
|
17
|
+
userMenuClosure: EventEmitter<void>;
|
|
18
|
+
logoutEmitter: EventEmitter<void>;
|
|
19
19
|
auth: EzpAuthorizationService;
|
|
20
20
|
/**
|
|
21
21
|
*
|
|
@@ -37,7 +37,10 @@ export declare class EzpUserMenu {
|
|
|
37
37
|
* Render method
|
|
38
38
|
*
|
|
39
39
|
*/
|
|
40
|
+
private unsubscribeLanguage?;
|
|
41
|
+
connectedCallback(): void;
|
|
40
42
|
componentWillLoad(): void;
|
|
43
|
+
disconnectedCallback(): void;
|
|
41
44
|
/**
|
|
42
45
|
*
|
|
43
46
|
* Render method
|