@ezeep/ezeep-js 1.0.267 → 1.0.269
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 +16 -0
- package/dist/cjs/ezeep.cjs.js +43 -12
- package/dist/cjs/ezp-auth_15.cjs.entry.js +27992 -26047
- package/dist/cjs/index-dv_gozsq.js +4694 -0
- package/dist/cjs/loader.cjs.js +7 -17
- package/dist/collection/collection-manifest.json +19 -18
- package/dist/collection/components/ezp-auth/ezp-auth.js +266 -245
- package/dist/collection/components/ezp-backdrop/ezp-backdrop.js +93 -81
- package/dist/collection/components/ezp-dialog/ezp-dialog.js +226 -210
- package/dist/collection/components/ezp-icon/ezp-icon.js +117 -102
- package/dist/collection/components/ezp-icon-button/ezp-icon-button.js +181 -159
- package/dist/collection/components/ezp-input/ezp-input.css +5 -5
- package/dist/collection/components/ezp-input/ezp-input.js +227 -205
- package/dist/collection/components/ezp-label/ezp-label.css +5 -5
- package/dist/collection/components/ezp-label/ezp-label.js +151 -132
- package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.css +5 -5
- package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.js +1134 -1107
- package/dist/collection/components/ezp-printing/ezp-printing.css +183 -125
- package/dist/collection/components/ezp-printing/ezp-printing.js +872 -807
- package/dist/collection/components/ezp-select/ezp-select.css +4 -4
- package/dist/collection/components/ezp-select/ezp-select.js +376 -351
- package/dist/collection/components/ezp-status/ezp-status.css +5 -5
- package/dist/collection/components/ezp-status/ezp-status.js +238 -223
- package/dist/collection/components/ezp-stepper/ezp-stepper.css +5 -5
- package/dist/collection/components/ezp-stepper/ezp-stepper.js +256 -243
- package/dist/collection/components/ezp-text-button/ezp-text-button.js +196 -174
- package/dist/collection/components/ezp-upload/ezp-upload.js +134 -141
- package/dist/collection/components/ezp-user-menu/ezp-user-menu.css +5 -5
- package/dist/collection/components/ezp-user-menu/ezp-user-menu.js +180 -185
- package/dist/collection/services/auth.js +133 -133
- package/dist/collection/services/print.js +167 -167
- package/dist/collection/services/user.js +16 -16
- package/dist/collection/shared/global.js +7 -7
- package/dist/collection/types/shared/types.d.ts +1 -0
- package/dist/collection/utils/utils.js +89 -89
- package/dist/components/auth.js +1 -0
- package/dist/components/ezp-auth.d.ts +11 -0
- package/dist/components/ezp-auth.js +1 -0
- package/dist/components/ezp-auth2.js +1 -0
- package/dist/components/ezp-backdrop.d.ts +11 -0
- package/dist/components/ezp-backdrop.js +1 -0
- package/dist/components/ezp-backdrop2.js +1 -0
- package/dist/components/ezp-dialog.d.ts +11 -0
- package/dist/components/ezp-dialog.js +1 -0
- package/dist/components/ezp-dialog2.js +1 -0
- package/dist/components/ezp-icon-button.d.ts +11 -0
- package/dist/components/ezp-icon-button.js +1 -0
- package/dist/components/ezp-icon-button2.js +1 -0
- package/dist/components/ezp-icon.d.ts +11 -0
- package/dist/components/ezp-icon.js +1 -0
- package/dist/components/ezp-icon2.js +1 -0
- package/dist/components/ezp-input.d.ts +11 -0
- package/dist/components/ezp-input.js +1 -0
- package/dist/components/ezp-input2.js +1 -0
- package/dist/components/ezp-label.d.ts +11 -0
- package/dist/components/ezp-label.js +1 -0
- package/dist/components/ezp-label2.js +1 -0
- package/dist/components/ezp-printer-selection.d.ts +11 -0
- package/dist/components/ezp-printer-selection.js +1 -0
- package/dist/components/ezp-printer-selection2.js +1 -0
- package/dist/components/ezp-printing.d.ts +11 -0
- package/dist/components/ezp-printing.js +1 -0
- package/dist/components/ezp-select.d.ts +11 -0
- package/dist/components/ezp-select.js +1 -0
- package/dist/components/ezp-select2.js +1 -0
- package/dist/components/ezp-status.d.ts +11 -0
- package/dist/components/ezp-status.js +1 -0
- package/dist/components/ezp-status2.js +1 -0
- package/dist/components/ezp-stepper.d.ts +11 -0
- package/dist/components/ezp-stepper.js +1 -0
- package/dist/components/ezp-stepper2.js +1 -0
- package/dist/components/ezp-text-button.d.ts +11 -0
- package/dist/components/ezp-text-button.js +1 -0
- package/dist/components/ezp-text-button2.js +1 -0
- package/dist/components/ezp-upload.d.ts +11 -0
- package/dist/components/ezp-upload.js +1 -0
- package/dist/components/ezp-upload2.js +1 -0
- package/dist/components/ezp-user-menu.d.ts +11 -0
- package/dist/components/ezp-user-menu.js +1 -0
- package/dist/components/ezp-user-menu2.js +1 -0
- package/dist/components/i18next.js +1 -0
- package/dist/components/index.d.ts +35 -0
- package/dist/components/index.js +1 -0
- package/dist/directives/angular-component-lib/utils.ts +33 -14
- package/dist/directives/proxies.ts +231 -111
- package/dist/esm/app-globals-CpP67t2l.js +14 -0
- package/dist/esm/ezeep.js +41 -12
- package/dist/esm/ezp-auth_15.entry.js +27996 -26049
- package/dist/esm/index-BTfWEHH9.js +4677 -0
- package/dist/esm/loader.js +7 -15
- package/dist/esm-es5/app-globals-CpP67t2l.js +1 -0
- 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 +13 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/ezeep/ezeep.esm.js +1 -1
- package/dist/ezeep/ezeep.js +16 -19
- package/dist/ezeep/p-2177b8f4.system.entry.js +7 -0
- package/dist/ezeep/p-5ok9OZMg.system.js +1 -0
- package/dist/ezeep/p-BTfWEHH9.js +2 -0
- package/dist/ezeep/p-CfQRcOh8.system.js +1 -0
- package/dist/ezeep/p-CpP67t2l.js +1 -0
- package/dist/ezeep/p-DhXN1yGM.system.js +13 -0
- package/dist/ezeep/p-de8f6583.entry.js +1 -0
- package/dist/ezeep/types/shared/types.d.ts +1 -0
- package/dist/types/components/ezp-auth/ezp-auth.d.ts +20 -20
- package/dist/types/components/ezp-backdrop/ezp-backdrop.d.ts +7 -7
- package/dist/types/components/ezp-dialog/ezp-dialog.d.ts +38 -38
- package/dist/types/components/ezp-icon/ezp-icon.d.ts +24 -24
- package/dist/types/components/ezp-icon-button/ezp-icon-button.d.ts +23 -23
- package/dist/types/components/ezp-input/ezp-input.d.ts +38 -38
- package/dist/types/components/ezp-label/ezp-label.d.ts +21 -21
- package/dist/types/components/ezp-printer-selection/ezp-printer-selection.d.ts +116 -116
- package/dist/types/components/ezp-printing/ezp-printing.d.ts +83 -83
- package/dist/types/components/ezp-select/ezp-select.d.ts +80 -80
- package/dist/types/components/ezp-status/ezp-status.d.ts +40 -40
- package/dist/types/components/ezp-stepper/ezp-stepper.d.ts +65 -65
- package/dist/types/components/ezp-text-button/ezp-text-button.d.ts +25 -25
- package/dist/types/components/ezp-upload/ezp-upload.d.ts +38 -38
- package/dist/types/components/ezp-user-menu/ezp-user-menu.d.ts +43 -43
- package/dist/types/components.d.ts +493 -50
- package/dist/types/services/auth.d.ts +27 -27
- package/dist/types/services/print.d.ts +32 -32
- package/dist/types/services/user.d.ts +4 -4
- package/dist/types/shared/types.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +335 -40
- package/dist/types/utils/utils.d.ts +6 -6
- package/loader/cdn.js +1 -2
- package/loader/index.cjs.js +1 -2
- package/loader/index.d.ts +13 -1
- package/loader/index.es2017.js +1 -2
- package/loader/index.js +1 -2
- package/package.json +10 -10
- package/www/build/ezeep.esm.js +1 -1
- package/www/build/ezeep.js +16 -19
- package/www/build/p-2177b8f4.system.entry.js +7 -0
- package/www/build/p-256870db.js +1 -0
- package/www/build/p-5ok9OZMg.system.js +1 -0
- package/www/build/p-BTfWEHH9.js +2 -0
- package/www/build/p-CfQRcOh8.system.js +1 -0
- package/www/build/p-CpP67t2l.js +1 -0
- package/www/build/p-DhXN1yGM.system.js +13 -0
- package/www/build/p-de8f6583.entry.js +1 -0
- package/www/index.html +1 -1
- package/dist/cjs/app-globals-53afb196.js +0 -15
- package/dist/cjs/index-1f953145.js +0 -1482
- package/dist/custom-elements/index.d.ts +0 -129
- package/dist/custom-elements/index.js +0 -34555
- package/dist/esm/app-globals-28960cbc.js +0 -13
- package/dist/esm/index-3ac1b749.js +0 -1450
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm-es5/app-globals-28960cbc.js +0 -1
- package/dist/esm-es5/index-3ac1b749.js +0 -1
- package/dist/ezeep/p-0cc2026d.system.js +0 -1
- package/dist/ezeep/p-312f40d7.js +0 -1
- package/dist/ezeep/p-4a7d6c3a.system.entry.js +0 -7
- package/dist/ezeep/p-84bd195a.system.js +0 -1
- package/dist/ezeep/p-a4d37138.js +0 -1
- package/dist/ezeep/p-ded04529.system.js +0 -1
- package/dist/ezeep/p-e20ee337.entry.js +0 -1
- package/loader/package.json +0 -10
- package/www/build/p-0cc2026d.system.js +0 -1
- package/www/build/p-312f40d7.js +0 -1
- package/www/build/p-4a7d6c3a.system.entry.js +0 -7
- package/www/build/p-84bd195a.system.js +0 -1
- package/www/build/p-a4d37138.js +0 -1
- package/www/build/p-ded04529.system.js +0 -1
- package/www/build/p-e20ee337.entry.js +0 -1
- /package/dist/ezeep/{p-50ea2036.system.js → p-YWpyar7R.system.js} +0 -0
- /package/www/build/{p-50ea2036.system.js → p-YWpyar7R.system.js} +0 -0
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -1,23 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
var index = require('./index-dv_gozsq.js');
|
|
4
|
+
var appGlobals = require('./app-globals-D7ISNeUi.js');
|
|
4
5
|
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Stencil Client Patch Esm v2.14.0 | MIT Licensed | https://stenciljs.com
|
|
10
|
-
*/
|
|
11
|
-
const patchEsm = () => {
|
|
12
|
-
return index.promiseResolve();
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
const defineCustomElements = (win, options) => {
|
|
16
|
-
if (typeof window === 'undefined') return Promise.resolve();
|
|
17
|
-
return patchEsm().then(() => {
|
|
18
|
-
appGlobals.globalScripts();
|
|
19
|
-
return index.bootstrapLazy([["ezp-auth_15.cjs",[[1,"ezp-printing",{"clientid":[1],"redirecturi":[1],"filename":[1025],"fileurl":[1],"filetype":[1],"custom":[4],"hidelogin":[4],"hidemenu":[4],"hideheader":[4],"authapihosturl":[1],"printapihosturl":[1],"theme":[1],"fileid":[1],"appearance":[1],"trigger":[1],"language":[1],"code":[1],"filedata":[1],"seamless":[4],"printOpen":[32],"authOpen":[32],"onlyGetSasUri":[32],"noDocumentOpen":[32],"systemAppearance":[32],"files":[32],"open":[64],"logOut":[64],"getSasUri":[64],"getAuthUri":[64],"setAuthRefreshToken":[64],"checkAuth":[64]},[[0,"printCancel","listenPrintCancel"],[0,"printSubmit","listenPrintSubmit"],[0,"authCancel","listenAuthCancel"],[0,"userCancel","listenUserCancel"],[0,"authSuccess","listenAuthSuccess"],[0,"uploadFile","listenUploadFile"],[0,"dialogClose","listenDialogClose"],[0,"dialogAction","listenDialogAction"],[0,"logout","listenLogout"]]],[1,"ezp-printer-selection",{"clientID":[1,"client-i-d"],"redirectURI":[1,"redirect-u-r-i"],"filename":[1025],"fileurl":[1],"filetype":[1025],"fileid":[1025],"files":[16],"hidemenu":[4],"hideheader":[4],"seamless":[4],"loading":[32],"printProcessing":[32],"pageRangeInvalid":[32],"uploading":[32],"preparingUpload":[32],"printSuccess":[32],"printFailed":[32],"notSupported":[32],"noPrinters":[32],"hubDriverError":[32],"userMenuOpen":[32],"printStopped":[32],"userName":[32],"printers":[32],"selectedPrinter":[32],"printerConfig":[32],"selectedPrinterConfig":[32],"selectedProperties":[32],"paperid":[32],"currentFileIndex":[32],"totalFiles":[32],"failedFiles":[32],"successfulFiles":[32],"partialSuccess":[32]},[[0,"inputValueChanged","listenInputValueChanged"],[0,"selectSelection","listenSelectSelection"],[0,"stepperChanged","listenStepperChanged"],[0,"userMenuClosure","listenUserMenuClosure"],[0,"logoutEmitter","listenLogout"],[0,"statusCancel","listenStatusCancel"],[0,"statusClose","listenStatusClose"],[0,"statusRetry","listenStatusRetry"]]],[1,"ezp-auth",{"clientID":[1025,"client-i-d"],"redirectURI":[1025,"redirect-u-r-i"],"hidelogin":[4],"trigger":[1],"code":[1],"auth":[32],"authURI":[32],"accessToken":[32]},[[0,"dialogAction","listenDialogAction"],[0,"dialogClose","listenDialogClose"],[0,"statusCancel","listenStatusCancel"]]],[1,"ezp-upload",{"selectedFiles":[32],"dragging":[32]},[[1,"dragenter","handleDragEnter"],[0,"dragover","handleDragOver"],[1,"dragleave","handleDragLeave"],[0,"drop","handleDrop"],[4,"printCancel","listenPrintCancel"]]],[1,"ezp-dialog",{"heading":[1],"description":[1],"action":[1],"iconName":[1,"icon-name"],"iconSize":[1,"icon-size"],"iconFramed":[4,"icon-framed"],"instance":[1]}],[1,"ezp-user-menu",{"name":[1],"open":[1028]}],[1,"ezp-select",{"icon":[1],"label":[1],"optionFlow":[1,"option-flow"],"options":[16],"placeholder":[1],"preSelected":[8,"pre-selected"],"toggleFlow":[1,"toggle-flow"],"disabled":[4],"expanded":[32],"selected":[32]}],[1,"ezp-input",{"label":[1],"value":[1032],"type":[1],"icon":[1],"suffix":[513],"eventType":[1,"event-type"],"placeholder":[1],"focused":[32]}],[1,"ezp-stepper",{"icon":[1],"label":[1],"max":[2],"min":[2],"canDecrease":[32],"canIncrease":[32],"focused":[32],"value":[32]}],[1,"ezp-status",{"description":[1],"processing":[4],"instance":[1],"icon":[1],"cancel":[8],"close":[8],"retry":[8]}],[1,"ezp-backdrop",{"visible":[1028]},[[0,"animationend","listenAnimationEnd"]]],[1,"ezp-text-button",{"blank":[4],"disabled":[4],"href":[1],"level":[1],"label":[1],"type":[1],"small":[4]}],[1,"ezp-icon-button",{"blank":[4],"disabled":[4],"href":[1],"icon":[1],"level":[1],"type":[1]}],[1,"ezp-icon",{"name":[1],"size":[1],"framed":[4]}],[1,"ezp-label",{"ellipsis":[4],"level":[1],"noWrap":[4,"no-wrap"],"text":[1],"weight":[1]}]]]], options);
|
|
20
|
-
});
|
|
6
|
+
const defineCustomElements = async (win, options) => {
|
|
7
|
+
if (typeof window === 'undefined') return undefined;
|
|
8
|
+
await appGlobals.globalScripts();
|
|
9
|
+
return index.bootstrapLazy([["ezp-auth_15.cjs",[[257,"ezp-printing",{"clientid":[1],"redirecturi":[1],"filename":[1025],"fileurl":[1],"filetype":[1],"custom":[4],"hidelogin":[4],"hidemenu":[4],"hideheader":[4],"authapihosturl":[1],"printapihosturl":[1],"theme":[1],"fileid":[1],"appearance":[1],"trigger":[1],"language":[1],"code":[1],"filedata":[1],"seamless":[4],"printOpen":[32],"authOpen":[32],"onlyGetSasUri":[32],"noDocumentOpen":[32],"systemAppearance":[32],"files":[32],"open":[64],"logOut":[64],"getSasUri":[64],"getAuthUri":[64],"setAuthRefreshToken":[64],"checkAuth":[64]},[[0,"printCancel","listenPrintCancel"],[0,"printSubmit","listenPrintSubmit"],[0,"authCancel","listenAuthCancel"],[0,"userCancel","listenUserCancel"],[0,"authSuccess","listenAuthSuccess"],[0,"uploadFile","listenUploadFile"],[0,"dialogClose","listenDialogClose"],[0,"dialogAction","listenDialogAction"],[0,"logout","listenLogout"]],{"filedata":[{"watchFileData":0}],"filename":[{"watchFilename":0}],"fileurl":[{"watchFileUrl":0}],"language":[{"watchLanguage":0}]}],[1,"ezp-printer-selection",{"clientID":[1,"client-i-d"],"redirectURI":[1,"redirect-u-r-i"],"filename":[1025],"fileurl":[1],"filetype":[1025],"fileid":[1025],"files":[16],"hidemenu":[4],"hideheader":[4],"seamless":[4],"loading":[32],"printProcessing":[32],"pageRangeInvalid":[32],"uploading":[32],"preparingUpload":[32],"printSuccess":[32],"printFailed":[32],"notSupported":[32],"noPrinters":[32],"hubDriverError":[32],"userMenuOpen":[32],"printStopped":[32],"userName":[32],"printers":[32],"selectedPrinter":[32],"printerConfig":[32],"selectedPrinterConfig":[32],"selectedProperties":[32],"paperid":[32],"currentFileIndex":[32],"totalFiles":[32],"failedFiles":[32],"successfulFiles":[32],"partialSuccess":[32]},[[0,"inputValueChanged","listenInputValueChanged"],[0,"selectSelection","listenSelectSelection"],[0,"stepperChanged","listenStepperChanged"],[0,"userMenuClosure","listenUserMenuClosure"],[0,"logoutEmitter","listenLogout"],[0,"statusCancel","listenStatusCancel"],[0,"statusClose","listenStatusClose"],[0,"statusRetry","listenStatusRetry"]]],[1,"ezp-auth",{"clientID":[1025,"client-i-d"],"redirectURI":[1025,"redirect-u-r-i"],"hidelogin":[4],"trigger":[1],"code":[1],"auth":[32],"authURI":[32],"accessToken":[32]},[[0,"dialogAction","listenDialogAction"],[0,"dialogClose","listenDialogClose"],[0,"statusCancel","listenStatusCancel"]]],[1,"ezp-upload",{"selectedFiles":[32],"dragging":[32]},[[1,"dragenter","handleDragEnter"],[0,"dragover","handleDragOver"],[1,"dragleave","handleDragLeave"],[0,"drop","handleDrop"],[4,"printCancel","listenPrintCancel"]]],[1,"ezp-dialog",{"heading":[1],"description":[1],"action":[1],"iconName":[1,"icon-name"],"iconSize":[1,"icon-size"],"iconFramed":[4,"icon-framed"],"instance":[1]}],[1,"ezp-user-menu",{"name":[1],"open":[1028]},null,{"open":[{"watchOpen":0}]}],[1,"ezp-select",{"icon":[1],"label":[1],"optionFlow":[1,"option-flow"],"options":[16],"placeholder":[1],"preSelected":[8,"pre-selected"],"toggleFlow":[1,"toggle-flow"],"disabled":[4],"expanded":[32],"selected":[32]},null,{"expanded":[{"watchExpanded":0}],"preSelected":[{"preSelectedChanged":0}]}],[1,"ezp-input",{"label":[1],"value":[1032],"type":[1],"icon":[1],"suffix":[513],"eventType":[1,"event-type"],"placeholder":[1],"focused":[32]}],[1,"ezp-stepper",{"icon":[1],"label":[1],"max":[2],"min":[2],"canDecrease":[32],"canIncrease":[32],"focused":[32],"value":[32]},null,{"value":[{"watchValue":0}]}],[1,"ezp-status",{"description":[1],"processing":[4],"instance":[1],"icon":[1],"cancel":[8],"close":[8],"retry":[8]}],[1,"ezp-backdrop",{"visible":[1028]},[[0,"animationend","listenAnimationEnd"]]],[1,"ezp-text-button",{"blank":[4],"disabled":[4],"href":[1],"level":[1],"label":[1],"type":[1],"small":[4]}],[1,"ezp-icon-button",{"blank":[4],"disabled":[4],"href":[1],"icon":[1],"level":[1],"type":[1]}],[1,"ezp-icon",{"name":[1],"size":[1],"framed":[4]}],[1,"ezp-label",{"ellipsis":[4],"level":[1],"noWrap":[4,"no-wrap"],"text":[1],"weight":[1]}]]]], options);
|
|
21
10
|
};
|
|
22
11
|
|
|
12
|
+
exports.setNonce = index.setNonce;
|
|
23
13
|
exports.defineCustomElements = defineCustomElements;
|
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"entries": [
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
3
|
+
"components/ezp-auth/ezp-auth.js",
|
|
4
|
+
"components/ezp-backdrop/ezp-backdrop.js",
|
|
5
|
+
"components/ezp-dialog/ezp-dialog.js",
|
|
6
|
+
"components/ezp-icon/ezp-icon.js",
|
|
7
|
+
"components/ezp-icon-button/ezp-icon-button.js",
|
|
8
|
+
"components/ezp-input/ezp-input.js",
|
|
9
|
+
"components/ezp-label/ezp-label.js",
|
|
10
|
+
"components/ezp-printer-selection/ezp-printer-selection.js",
|
|
11
|
+
"components/ezp-printing/ezp-printing.js",
|
|
12
|
+
"components/ezp-select/ezp-select.js",
|
|
13
|
+
"components/ezp-status/ezp-status.js",
|
|
14
|
+
"components/ezp-stepper/ezp-stepper.js",
|
|
15
|
+
"components/ezp-text-button/ezp-text-button.js",
|
|
16
|
+
"components/ezp-upload/ezp-upload.js",
|
|
17
|
+
"components/ezp-user-menu/ezp-user-menu.js"
|
|
18
18
|
],
|
|
19
|
+
"mixins": [],
|
|
19
20
|
"compiler": {
|
|
20
21
|
"name": "@stencil/core",
|
|
21
|
-
"version": "
|
|
22
|
-
"typescriptVersion": "
|
|
22
|
+
"version": "4.43.4",
|
|
23
|
+
"typescriptVersion": "5.8.3"
|
|
23
24
|
},
|
|
24
25
|
"collections": [],
|
|
25
26
|
"bundles": [],
|
|
26
|
-
"global": "
|
|
27
|
+
"global": "shared/global.js"
|
|
27
28
|
}
|
|
@@ -1,255 +1,276 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { EzpAuthorizationService } from
|
|
3
|
-
import authStore from
|
|
4
|
-
import i18next from
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { EzpAuthorizationService } from "../../services/auth";
|
|
3
|
+
import authStore from "../../services/auth";
|
|
4
|
+
import i18next from "i18next";
|
|
5
5
|
export class EzpAuth {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
listenDialogAction() {
|
|
11
|
-
this.openSignInWindow(this.auth.authURI.toString(), 'ezeep Login');
|
|
12
|
-
}
|
|
13
|
-
listenDialogClose() {
|
|
14
|
-
this.authCancel.emit();
|
|
15
|
-
}
|
|
16
|
-
listenStatusCancel() {
|
|
17
|
-
this.authCancel.emit();
|
|
18
|
-
}
|
|
19
|
-
openSignInWindow(url, name) {
|
|
20
|
-
if (authStore.state.isAuthorized) {
|
|
21
|
-
this.authCancel.emit();
|
|
22
|
-
this.authSuccess.emit();
|
|
23
|
-
return;
|
|
6
|
+
constructor() {
|
|
7
|
+
this.oauthPopupWindow = null;
|
|
8
|
+
this.previousUrl = null;
|
|
24
9
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
// window features
|
|
28
|
-
const windowFeatures = 'toolbar=no, menubar=no, width=600, height=7000, top=100, left=100';
|
|
29
|
-
if (this.oauthPopupWindow === null || this.oauthPopupWindow.closed) {
|
|
30
|
-
/* if the pointer to the window object in memory does not exist
|
|
31
|
-
or if such pointer exists but the window was closed */
|
|
32
|
-
this.oauthPopupWindow = window.open(url, name, windowFeatures);
|
|
10
|
+
listenDialogAction() {
|
|
11
|
+
this.openSignInWindow(this.auth.authURI.toString(), 'ezeep Login');
|
|
33
12
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
then we load it in the already opened secondary window and then
|
|
37
|
-
we bring such window back on top/in front of its parent window. */
|
|
38
|
-
this.oauthPopupWindow = window.open(url, name, windowFeatures);
|
|
39
|
-
if (!this.oauthPopupWindow ||
|
|
40
|
-
this.oauthPopupWindow.closed ||
|
|
41
|
-
typeof this.oauthPopupWindow.closed == 'undefined') {
|
|
42
|
-
alert('popup blocked');
|
|
43
|
-
}
|
|
44
|
-
this.oauthPopupWindow.focus();
|
|
13
|
+
listenDialogClose() {
|
|
14
|
+
this.authCancel.emit();
|
|
45
15
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
is not closed; therefore, we can bring it back on top of any other
|
|
49
|
-
window with the focus() method. There would be no need to re-create
|
|
50
|
-
the window or to reload the referenced resource. */
|
|
51
|
-
this.oauthPopupWindow.focus();
|
|
16
|
+
listenStatusCancel() {
|
|
17
|
+
this.authCancel.emit();
|
|
52
18
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
19
|
+
openSignInWindow(url, name) {
|
|
20
|
+
if (authStore.state.isAuthorized) {
|
|
21
|
+
this.authCancel.emit();
|
|
22
|
+
this.authSuccess.emit();
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
// remove any existing event listeners
|
|
26
|
+
window.removeEventListener('message', this.receiveMessage);
|
|
27
|
+
// window features
|
|
28
|
+
const windowFeatures = 'toolbar=no, menubar=no, width=600, height=7000, top=100, left=100';
|
|
29
|
+
if (this.oauthPopupWindow === null || this.oauthPopupWindow.closed) {
|
|
30
|
+
/* if the pointer to the window object in memory does not exist
|
|
31
|
+
or if such pointer exists but the window was closed */
|
|
32
|
+
this.oauthPopupWindow = window.open(url, name, windowFeatures);
|
|
33
|
+
}
|
|
34
|
+
else if (this.previousUrl !== this.auth.authURI.toString()) {
|
|
35
|
+
/* if the resource to load is different,
|
|
36
|
+
then we load it in the already opened secondary window and then
|
|
37
|
+
we bring such window back on top/in front of its parent window. */
|
|
38
|
+
this.oauthPopupWindow = window.open(url, name, windowFeatures);
|
|
39
|
+
if (!this.oauthPopupWindow ||
|
|
40
|
+
this.oauthPopupWindow.closed ||
|
|
41
|
+
typeof this.oauthPopupWindow.closed == 'undefined') {
|
|
42
|
+
alert('popup blocked');
|
|
43
|
+
}
|
|
44
|
+
this.oauthPopupWindow.focus();
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
/* else the window reference must exist and the window
|
|
48
|
+
is not closed; therefore, we can bring it back on top of any other
|
|
49
|
+
window with the focus() method. There would be no need to re-create
|
|
50
|
+
the window or to reload the referenced resource. */
|
|
51
|
+
this.oauthPopupWindow.focus();
|
|
52
|
+
}
|
|
53
|
+
// add the listener for receiving a message from the popup
|
|
54
|
+
window.addEventListener('message', (event) => this.receiveMessage(event), false);
|
|
55
|
+
this.previousUrl = this.auth.authURI;
|
|
56
|
+
}
|
|
57
|
+
receiveMessage(event) {
|
|
58
|
+
authStore.state.code = event.data;
|
|
59
|
+
this.auth.getAccessToken().then(() => {
|
|
60
|
+
this.authCancel.emit();
|
|
61
|
+
this.authSuccess.emit();
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
async componentWillLoad() {
|
|
65
|
+
this.auth = new EzpAuthorizationService(this.redirectURI, this.clientID);
|
|
66
|
+
if (this.code) {
|
|
67
|
+
authStore.state.code = this.code;
|
|
68
|
+
await this.auth.getAccessToken();
|
|
69
|
+
this.authCancel.emit();
|
|
70
|
+
this.authSuccess.emit();
|
|
71
|
+
}
|
|
72
|
+
if (authStore.state.isAuthorized === false) {
|
|
73
|
+
this.auth.generateCodeVerifier();
|
|
74
|
+
await this.auth.generateCodeChallenge(authStore.state.codeVerifier);
|
|
75
|
+
this.auth.buildAuthURI();
|
|
76
|
+
}
|
|
77
|
+
if (this.hidelogin && this.trigger === 'button') {
|
|
78
|
+
this.openSignInWindow(this.auth.authURI.toString(), 'ezeep Login');
|
|
79
|
+
}
|
|
71
80
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
await this.auth.generateCodeChallenge(authStore.state.codeVerifier);
|
|
75
|
-
this.auth.buildAuthURI();
|
|
81
|
+
render() {
|
|
82
|
+
return (h(Host, { key: 'a61df2cca2d4ebdf13b0148ad9eed77f2bd6526f' }, this.hidelogin && this.trigger === 'button' ? (h("ezp-status", { description: i18next.t('login_dialog.action'), processing: true, cancel: true })) : this.hidelogin && this.trigger === 'file' ? (h("div", { class: "auth-actions" }, h("ezp-text-button", { type: "button", level: "secondary", onClick: () => this.userCancel.emit(), label: i18next.t('button_actions.cancel') }), h("ezp-text-button", { type: "button", level: "primary", onClick: () => this.openSignInWindow(this.auth.authURI.toString(), 'ezeep Login'), label: i18next.t('button_actions.select_printer') }))) : (h("ezp-dialog", { heading: i18next.t('login_dialog.heading'), description: i18next.t('login_dialog.description'), action: i18next.t('login_dialog.action'), iconName: "logo", iconSize: "huge", iconFramed: false, instance: "login" }))));
|
|
76
83
|
}
|
|
77
|
-
|
|
78
|
-
|
|
84
|
+
static get is() { return "ezp-auth"; }
|
|
85
|
+
static get encapsulation() { return "shadow"; }
|
|
86
|
+
static get originalStyleUrls() {
|
|
87
|
+
return {
|
|
88
|
+
"$": ["ezp-auth.scss"]
|
|
89
|
+
};
|
|
79
90
|
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
91
|
+
static get styleUrls() {
|
|
92
|
+
return {
|
|
93
|
+
"$": ["ezp-auth.css"]
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
static get properties() {
|
|
97
|
+
return {
|
|
98
|
+
"clientID": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"mutable": true,
|
|
101
|
+
"complexType": {
|
|
102
|
+
"original": "string",
|
|
103
|
+
"resolved": "string",
|
|
104
|
+
"references": {}
|
|
105
|
+
},
|
|
106
|
+
"required": false,
|
|
107
|
+
"optional": false,
|
|
108
|
+
"docs": {
|
|
109
|
+
"tags": [],
|
|
110
|
+
"text": ""
|
|
111
|
+
},
|
|
112
|
+
"getter": false,
|
|
113
|
+
"setter": false,
|
|
114
|
+
"reflect": false,
|
|
115
|
+
"attribute": "client-i-d"
|
|
116
|
+
},
|
|
117
|
+
"redirectURI": {
|
|
118
|
+
"type": "string",
|
|
119
|
+
"mutable": true,
|
|
120
|
+
"complexType": {
|
|
121
|
+
"original": "string",
|
|
122
|
+
"resolved": "string",
|
|
123
|
+
"references": {}
|
|
124
|
+
},
|
|
125
|
+
"required": false,
|
|
126
|
+
"optional": false,
|
|
127
|
+
"docs": {
|
|
128
|
+
"tags": [],
|
|
129
|
+
"text": ""
|
|
130
|
+
},
|
|
131
|
+
"getter": false,
|
|
132
|
+
"setter": false,
|
|
133
|
+
"reflect": false,
|
|
134
|
+
"attribute": "redirect-u-r-i"
|
|
135
|
+
},
|
|
136
|
+
"hidelogin": {
|
|
137
|
+
"type": "boolean",
|
|
138
|
+
"mutable": false,
|
|
139
|
+
"complexType": {
|
|
140
|
+
"original": "boolean",
|
|
141
|
+
"resolved": "boolean",
|
|
142
|
+
"references": {}
|
|
143
|
+
},
|
|
144
|
+
"required": false,
|
|
145
|
+
"optional": false,
|
|
146
|
+
"docs": {
|
|
147
|
+
"tags": [],
|
|
148
|
+
"text": ""
|
|
149
|
+
},
|
|
150
|
+
"getter": false,
|
|
151
|
+
"setter": false,
|
|
152
|
+
"reflect": false,
|
|
153
|
+
"attribute": "hidelogin"
|
|
154
|
+
},
|
|
155
|
+
"trigger": {
|
|
156
|
+
"type": "string",
|
|
157
|
+
"mutable": false,
|
|
158
|
+
"complexType": {
|
|
159
|
+
"original": "string",
|
|
160
|
+
"resolved": "string",
|
|
161
|
+
"references": {}
|
|
162
|
+
},
|
|
163
|
+
"required": false,
|
|
164
|
+
"optional": false,
|
|
165
|
+
"docs": {
|
|
166
|
+
"tags": [],
|
|
167
|
+
"text": ""
|
|
168
|
+
},
|
|
169
|
+
"getter": false,
|
|
170
|
+
"setter": false,
|
|
171
|
+
"reflect": false,
|
|
172
|
+
"attribute": "trigger"
|
|
173
|
+
},
|
|
174
|
+
"code": {
|
|
175
|
+
"type": "string",
|
|
176
|
+
"mutable": false,
|
|
177
|
+
"complexType": {
|
|
178
|
+
"original": "string",
|
|
179
|
+
"resolved": "string",
|
|
180
|
+
"references": {}
|
|
181
|
+
},
|
|
182
|
+
"required": false,
|
|
183
|
+
"optional": false,
|
|
184
|
+
"docs": {
|
|
185
|
+
"tags": [],
|
|
186
|
+
"text": ""
|
|
187
|
+
},
|
|
188
|
+
"getter": false,
|
|
189
|
+
"setter": false,
|
|
190
|
+
"reflect": false,
|
|
191
|
+
"attribute": "code"
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
static get states() {
|
|
196
|
+
return {
|
|
197
|
+
"auth": {},
|
|
198
|
+
"authURI": {},
|
|
199
|
+
"accessToken": {}
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
static get events() {
|
|
203
|
+
return [{
|
|
204
|
+
"method": "authCancel",
|
|
205
|
+
"name": "authCancel",
|
|
206
|
+
"bubbles": true,
|
|
207
|
+
"cancelable": true,
|
|
208
|
+
"composed": true,
|
|
209
|
+
"docs": {
|
|
210
|
+
"tags": [],
|
|
211
|
+
"text": ""
|
|
212
|
+
},
|
|
213
|
+
"complexType": {
|
|
214
|
+
"original": "MouseEvent",
|
|
215
|
+
"resolved": "MouseEvent",
|
|
216
|
+
"references": {
|
|
217
|
+
"MouseEvent": {
|
|
218
|
+
"location": "global",
|
|
219
|
+
"id": "global::MouseEvent"
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}, {
|
|
224
|
+
"method": "authSuccess",
|
|
225
|
+
"name": "authSuccess",
|
|
226
|
+
"bubbles": true,
|
|
227
|
+
"cancelable": true,
|
|
228
|
+
"composed": true,
|
|
229
|
+
"docs": {
|
|
230
|
+
"tags": [],
|
|
231
|
+
"text": ""
|
|
232
|
+
},
|
|
233
|
+
"complexType": {
|
|
234
|
+
"original": "any",
|
|
235
|
+
"resolved": "any",
|
|
236
|
+
"references": {}
|
|
237
|
+
}
|
|
238
|
+
}, {
|
|
239
|
+
"method": "userCancel",
|
|
240
|
+
"name": "userCancel",
|
|
241
|
+
"bubbles": true,
|
|
242
|
+
"cancelable": true,
|
|
243
|
+
"composed": true,
|
|
244
|
+
"docs": {
|
|
245
|
+
"tags": [],
|
|
246
|
+
"text": ""
|
|
247
|
+
},
|
|
248
|
+
"complexType": {
|
|
249
|
+
"original": "any",
|
|
250
|
+
"resolved": "any",
|
|
251
|
+
"references": {}
|
|
252
|
+
}
|
|
253
|
+
}];
|
|
254
|
+
}
|
|
255
|
+
static get listeners() {
|
|
256
|
+
return [{
|
|
257
|
+
"name": "dialogAction",
|
|
258
|
+
"method": "listenDialogAction",
|
|
259
|
+
"target": undefined,
|
|
260
|
+
"capture": false,
|
|
261
|
+
"passive": false
|
|
262
|
+
}, {
|
|
263
|
+
"name": "dialogClose",
|
|
264
|
+
"method": "listenDialogClose",
|
|
265
|
+
"target": undefined,
|
|
266
|
+
"capture": false,
|
|
267
|
+
"passive": false
|
|
268
|
+
}, {
|
|
269
|
+
"name": "statusCancel",
|
|
270
|
+
"method": "listenStatusCancel",
|
|
271
|
+
"target": undefined,
|
|
272
|
+
"capture": false,
|
|
273
|
+
"passive": false
|
|
274
|
+
}];
|
|
179
275
|
}
|
|
180
|
-
}; }
|
|
181
|
-
static get states() { return {
|
|
182
|
-
"auth": {},
|
|
183
|
-
"authURI": {},
|
|
184
|
-
"accessToken": {}
|
|
185
|
-
}; }
|
|
186
|
-
static get events() { return [{
|
|
187
|
-
"method": "authCancel",
|
|
188
|
-
"name": "authCancel",
|
|
189
|
-
"bubbles": true,
|
|
190
|
-
"cancelable": true,
|
|
191
|
-
"composed": true,
|
|
192
|
-
"docs": {
|
|
193
|
-
"tags": [],
|
|
194
|
-
"text": ""
|
|
195
|
-
},
|
|
196
|
-
"complexType": {
|
|
197
|
-
"original": "MouseEvent",
|
|
198
|
-
"resolved": "MouseEvent",
|
|
199
|
-
"references": {
|
|
200
|
-
"MouseEvent": {
|
|
201
|
-
"location": "global"
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
}, {
|
|
206
|
-
"method": "authSuccess",
|
|
207
|
-
"name": "authSuccess",
|
|
208
|
-
"bubbles": true,
|
|
209
|
-
"cancelable": true,
|
|
210
|
-
"composed": true,
|
|
211
|
-
"docs": {
|
|
212
|
-
"tags": [],
|
|
213
|
-
"text": ""
|
|
214
|
-
},
|
|
215
|
-
"complexType": {
|
|
216
|
-
"original": "any",
|
|
217
|
-
"resolved": "any",
|
|
218
|
-
"references": {}
|
|
219
|
-
}
|
|
220
|
-
}, {
|
|
221
|
-
"method": "userCancel",
|
|
222
|
-
"name": "userCancel",
|
|
223
|
-
"bubbles": true,
|
|
224
|
-
"cancelable": true,
|
|
225
|
-
"composed": true,
|
|
226
|
-
"docs": {
|
|
227
|
-
"tags": [],
|
|
228
|
-
"text": ""
|
|
229
|
-
},
|
|
230
|
-
"complexType": {
|
|
231
|
-
"original": "any",
|
|
232
|
-
"resolved": "any",
|
|
233
|
-
"references": {}
|
|
234
|
-
}
|
|
235
|
-
}]; }
|
|
236
|
-
static get listeners() { return [{
|
|
237
|
-
"name": "dialogAction",
|
|
238
|
-
"method": "listenDialogAction",
|
|
239
|
-
"target": undefined,
|
|
240
|
-
"capture": false,
|
|
241
|
-
"passive": false
|
|
242
|
-
}, {
|
|
243
|
-
"name": "dialogClose",
|
|
244
|
-
"method": "listenDialogClose",
|
|
245
|
-
"target": undefined,
|
|
246
|
-
"capture": false,
|
|
247
|
-
"passive": false
|
|
248
|
-
}, {
|
|
249
|
-
"name": "statusCancel",
|
|
250
|
-
"method": "listenStatusCancel",
|
|
251
|
-
"target": undefined,
|
|
252
|
-
"capture": false,
|
|
253
|
-
"passive": false
|
|
254
|
-
}]; }
|
|
255
276
|
}
|