@ezeep/ezeep-js 1.0.206 → 1.0.207
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/ezeep.cjs.js +1 -1
- package/dist/cjs/ezp-auth_14.cjs.entry.js +12 -8
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.css +42 -14
- package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.js +41 -5
- package/dist/collection/components/ezp-printing/ezp-printing.css +8 -4
- package/dist/collection/components/ezp-printing/ezp-printing.js +42 -3
- package/dist/custom-elements/index.js +14 -10
- package/dist/directives/proxies.ts +4 -4
- package/dist/esm/ezeep.js +1 -1
- package/dist/esm/ezp-auth_14.entry.js +12 -8
- package/dist/esm/loader.js +1 -1
- package/dist/esm-es5/ezeep.js +1 -1
- package/dist/esm-es5/ezp-auth_14.entry.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/ezeep/ezeep.esm.js +1 -1
- package/dist/ezeep/p-16c7584d.system.js +1 -1
- package/dist/ezeep/{p-cfaa99a0.system.entry.js → p-b899deb2.system.entry.js} +1 -1
- package/dist/ezeep/{p-64199b42.entry.js → p-fd75ede4.entry.js} +1 -1
- package/dist/types/components/ezp-printer-selection/ezp-printer-selection.d.ts +2 -0
- package/dist/types/components/ezp-printing/ezp-printing.d.ts +2 -0
- package/dist/types/components.d.ts +8 -0
- package/package.json +1 -1
- package/www/build/ezeep.esm.js +1 -1
- package/www/build/p-16c7584d.system.js +1 -1
- package/www/build/{p-cfaa99a0.system.entry.js → p-b899deb2.system.entry.js} +1 -1
- package/www/build/{p-64199b42.entry.js → p-fd75ede4.entry.js} +1 -1
- package/www/index.html +7 -1
package/dist/cjs/ezeep.cjs.js
CHANGED
|
@@ -17,5 +17,5 @@ const patchBrowser = () => {
|
|
|
17
17
|
|
|
18
18
|
patchBrowser().then(options => {
|
|
19
19
|
appGlobals.globalScripts();
|
|
20
|
-
return index.bootstrapLazy([["ezp-auth_14.cjs",[[1,"ezp-printing",{"clientid":[1],"redirecturi":[1],"filename":[1025],"fileurl":[1],"filetype":[1],"custom":[4],"hidelogin":[4],"hidemenu":[4],"authapihosturl":[1],"printapihosturl":[1],"theme":[1],"fileid":[1],"appearance":[1],"trigger":[1],"language":[1],"code":[1],"filedata":[1],"printOpen":[32],"authOpen":[32],"onlyGetSasUri":[32],"noDocumentOpen":[32],"systemAppearance":[32],"file":[32],"open":[64],"logOut":[64],"getSasUri":[64],"getAuthUri":[64],"checkAuth":[64]},[[0,"printCancel","listenPrintCancel"],[0,"printSubmit","listenPrintSubmit"],[0,"authCancel","listenAuthCancel"],[0,"authSuccess","listenAuthSuccess"],[0,"uploadFile","listenUploadFile"],[0,"dialogClose","listenDialogClose"],[0,"dialogAction","listenDialogAction"]]],[1,"ezp-printer-selection",{"clientID":[1,"client-i-d"],"redirectURI":[1,"redirect-u-r-i"],"filename":[1025],"fileurl":[1],"filetype":[1025],"fileid":[1025],"file":[16],"hidemenu":[4],"loading":[32],"printProcessing":[32],"uploading":[32],"preparingUpload":[32],"printSuccess":[32],"printFailed":[32],"notSupported":[32],"noPrinters":[32],"userMenuOpen":[32],"printStopped":[32],"userName":[32],"printers":[32],"selectedPrinter":[32],"printerConfig":[32],"selectedPrinterConfig":[32],"selectedProperties":[32]},[[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",{"filename":[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-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-icon-button",{"blank":[4],"disabled":[4],"href":[1],"icon":[1],"level":[1],"type":[1]}],[1,"ezp-text-button",{"blank":[4],"disabled":[4],"href":[1],"level":[1],"label":[1],"type":[1],"small":[4]}],[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
|
+
return index.bootstrapLazy([["ezp-auth_14.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],"file":[32],"open":[64],"logOut":[64],"getSasUri":[64],"getAuthUri":[64],"checkAuth":[64]},[[0,"printCancel","listenPrintCancel"],[0,"printSubmit","listenPrintSubmit"],[0,"authCancel","listenAuthCancel"],[0,"authSuccess","listenAuthSuccess"],[0,"uploadFile","listenUploadFile"],[0,"dialogClose","listenDialogClose"],[0,"dialogAction","listenDialogAction"]]],[1,"ezp-printer-selection",{"clientID":[1,"client-i-d"],"redirectURI":[1,"redirect-u-r-i"],"filename":[1025],"fileurl":[1],"filetype":[1025],"fileid":[1025],"file":[16],"hidemenu":[4],"hideheader":[4],"seamless":[4],"loading":[32],"printProcessing":[32],"uploading":[32],"preparingUpload":[32],"printSuccess":[32],"printFailed":[32],"notSupported":[32],"noPrinters":[32],"userMenuOpen":[32],"printStopped":[32],"userName":[32],"printers":[32],"selectedPrinter":[32],"printerConfig":[32],"selectedPrinterConfig":[32],"selectedProperties":[32]},[[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",{"filename":[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-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-icon-button",{"blank":[4],"disabled":[4],"href":[1],"icon":[1],"level":[1],"type":[1]}],[1,"ezp-text-button",{"blank":[4],"disabled":[4],"href":[1],"level":[1],"label":[1],"type":[1],"small":[4]}],[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
21
|
});
|
|
@@ -32633,7 +32633,7 @@ const userStore = createStore({
|
|
|
32633
32633
|
appearance: '',
|
|
32634
32634
|
});
|
|
32635
32635
|
|
|
32636
|
-
const ezpPrinterSelectionCss = ":host{-ms-flex-line-pack:center;align-content:center;background:var(--ezp-core-backdrop);display:grid;grid-template:auto/var(--ezp-printerSelection-width, 320px);height:100vh;-ms-flex-pack:center;justify-content:center;left:0;position:fixed;top:0;width:
|
|
32636
|
+
const ezpPrinterSelectionCss = ":host{-ms-flex-line-pack:var(--ezp-printerSelection-alignContent, center);align-content:var(--ezp-printerSelection-alignContent, center);background:var(--ezp-printerSelection-background, var(--ezp-core-backdrop));display:grid;grid-template:auto/var(--ezp-printerSelection-width, 320px);height:var(--ezp-printerSelection-height, 100vh);-ms-flex-pack:var(--ezp-printerSelection-justifyContent, center);justify-content:var(--ezp-printerSelection-justifyContent, center);left:0;position:var(--ezp-printerSelection-position, fixed);top:0;width:100%;z-index:1}:host(.seamless){--ezp-printerSelection-alignContent:stretch;--ezp-printerSelection-background:transparent;--ezp-printerSelection-body-background:transparent;--ezp-printerSelection-body-padding:0;--ezp-printerSelection-box-background:transparent;--ezp-printerSelection-box-borderRadius:0;--ezp-printerSelection-box-boxShadow:none;--ezp-printerSelection-footer-boxShadowPosition:0 0 0 0;--ezp-printerSelection-footer-padding:var(--ezp-spacing-2) 0;--ezp-printerSelection-header-boxShadowPosition:0 0 0 0;--ezp-printerSelection-header-padding:var(--ezp-spacing-4) 0;--ezp-printerSelection-justifyContent:stretch;--ezp-printerSelection-position:static}#box{background:var(--ezp-printerSelection-box-background, var(--ezp-core-surface-tertiary));border-radius:var(--ezp-printerSelection-box-borderRadius, 6px);-webkit-box-shadow:var(--ezp-printerSelection-box-boxShadow, 0 0 0 1px var(--ezp-black-10));box-shadow:var(--ezp-printerSelection-box-boxShadow, 0 0 0 1px var(--ezp-black-10));padding:var(--ezp-printerSelection-padding, 0);position:relative}#header{border-radius:6px 6px 0 0;-webkit-box-shadow:var(--ezp-printerSelection-header-boxShadowPosition, 0 1px 0 0) var(--ezp-core-outline);box-shadow:var(--ezp-printerSelection-header-boxShadowPosition, 0 1px 0 0) var(--ezp-core-outline);color:var(--ezp-core-foreground-primary);display:grid;grid-column-gap:var(--ezp-spacing-2);grid-template-columns:auto 1fr auto;padding:var(--ezp-printerSelection-header-padding, var(--ezp-spacing-4) var(--ezp-spacing-3) var(--ezp-spacing-4) var(--ezp-spacing-4));position:relative;z-index:3}#toggle-menu{margin:calc(var(--ezp-spacing-3) * -1) 0;position:relative;z-index:2}#body{background:var(--ezp-printerSelection-body-background, var(--ezp-core-surface-secondary));-webkit-box-shadow:var(--ezp-printerSelection-body-boxShadow, none);box-shadow:var(--ezp-printerSelection-body-boxShadow, none);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:var(--ezp-spacing-2);padding:var(--ezp-printerSelection-body-padding, var(--ezp-spacing-2))}#footer{border-radius:0 0 6px 6px;-webkit-box-shadow:var(--ezp-printerSelection-footer-boxShadowPosition, 0 -1px 0 0) var(--ezp-core-outline);box-shadow:var(--ezp-printerSelection-footer-boxShadowPosition, 0 -1px 0 0) var(--ezp-core-outline);display:grid;gap:var(--ezp-spacing-2);grid-template-areas:var(--ezp-printerSelection-footer-areas, \"cancel print\");grid-template-columns:var(--ezp-printerSelection-footer-columns, repeat(2, 1fr));grid-template-rows:var(--ezp-printerSelection-footer-rows, auto);-ms-flex-pack:center;justify-content:center;justify-items:stretch;padding:var(--ezp-printerSelection-footer-padding, var(--ezp-spacing-2));position:relative;z-index:3}#cancel{grid-area:cancel}#print{grid-area:print}";
|
|
32637
32637
|
|
|
32638
32638
|
let EzpPrinterSelection = class {
|
|
32639
32639
|
constructor(hostRef) {
|
|
@@ -32657,6 +32657,7 @@ let EzpPrinterSelection = class {
|
|
|
32657
32657
|
},
|
|
32658
32658
|
];
|
|
32659
32659
|
this.hidemenu = false;
|
|
32660
|
+
this.hideheader = false;
|
|
32660
32661
|
/**
|
|
32661
32662
|
*
|
|
32662
32663
|
* States
|
|
@@ -33027,11 +33028,11 @@ let EzpPrinterSelection = class {
|
|
|
33027
33028
|
*
|
|
33028
33029
|
*/
|
|
33029
33030
|
render() {
|
|
33030
|
-
return this.loading ? (index.h("ezp-status", { processing: true, description: i18next.t('printer_selection.loading'), instance: "loading" })) : (index.h(index.Host,
|
|
33031
|
+
return this.loading ? (index.h("ezp-status", { processing: true, description: i18next.t('printer_selection.loading'), instance: "loading" })) : (index.h(index.Host, { class: { seamless: this.seamless } }, index.h("div", { id: "box", "data-backdrop-surface": true }, !this.printStopped && (index.h(index.Fragment, null, this.printProcessing ? (index.h("ezp-status", { processing: true, description: this.preparingUpload
|
|
33031
33032
|
? i18next.t('printer_selection.prepare_upload')
|
|
33032
33033
|
: this.uploading
|
|
33033
33034
|
? i18next.t('printer_selection.uploading')
|
|
33034
|
-
: i18next.t('printer_selection.print_processing'), instance: "print-processing", cancel: true })) : this.selectedPrinter.is_queue && this.printSuccess ? (index.h("ezp-status", { icon: "checkmark-alt", description: i18next.t('printer_selection.pull_print_success'), instance: "print-success", close: true })) : this.printSuccess ? (index.h("ezp-status", { icon: "checkmark-alt", description: i18next.t('printer_selection.print_success'), instance: "print-success", close: true })) : this.printFailed ? (index.h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.print_failed'), instance: "print-failed", close: true, retry: true })) : this.notSupported ? (index.h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.not_supported'), instance: "not-supported", retry: true })) : this.noPrinters ? (index.h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.no_printers'), instance: "no-printers", close: true })) : null)), index.h("div", { id: "header" }, index.h("ezp-label", { weight: "heavy", text: i18next.t('printer_selection.print') + `${!this.notSupported ? ':' : ''}` }), index.h("ezp-label", { text: !this.notSupported ? this.filename : '', ellipsis: true }), !this.hidemenu && (index.h("ezp-icon-button", { level: "tertiary", icon: "menu", id: "toggle-menu", type: "button", onClick: this.handleUserMenu }))), index.h("div", { id: "body" }, index.h("div", { id: "printer" }, index.h("ezp-select", { label: i18next.t('printer_selection.printer'), icon: "printer", placeholder: this.printers.length > 0
|
|
33035
|
+
: i18next.t('printer_selection.print_processing'), instance: "print-processing", cancel: true })) : this.selectedPrinter.is_queue && this.printSuccess ? (index.h("ezp-status", { icon: "checkmark-alt", description: i18next.t('printer_selection.pull_print_success'), instance: "print-success", close: true })) : this.printSuccess ? (index.h("ezp-status", { icon: "checkmark-alt", description: i18next.t('printer_selection.print_success'), instance: "print-success", close: true })) : this.printFailed ? (index.h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.print_failed'), instance: "print-failed", close: true, retry: true })) : this.notSupported ? (index.h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.not_supported'), instance: "not-supported", retry: true })) : this.noPrinters ? (index.h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.no_printers'), instance: "no-printers", close: true })) : null)), !this.hideheader && (index.h("div", { id: "header" }, index.h("ezp-label", { weight: "heavy", text: i18next.t('printer_selection.print') + `${!this.notSupported ? ':' : ''}` }), index.h("ezp-label", { text: !this.notSupported ? this.filename : '', ellipsis: true }), !this.hidemenu && (index.h("ezp-icon-button", { level: "tertiary", icon: "menu", id: "toggle-menu", type: "button", onClick: this.handleUserMenu })))), index.h("div", { id: "body" }, index.h("div", { id: "printer" }, index.h("ezp-select", { label: i18next.t('printer_selection.printer'), icon: "printer", placeholder: this.printers.length > 0
|
|
33035
33036
|
? i18next.t('printer_selection.select_printer')
|
|
33036
33037
|
: i18next.t('printer_selection.no_printers'), toggleFlow: "vertical", optionFlow: "vertical", options: this.printers.map((printer) => ({
|
|
33037
33038
|
id: printer.id,
|
|
@@ -33087,7 +33088,7 @@ let EzpPrinterSelection = class {
|
|
|
33087
33088
|
title: option,
|
|
33088
33089
|
meta: '',
|
|
33089
33090
|
type: 'quality',
|
|
33090
|
-
})), preSelected: this.selectedPrinter.id ? this.selectedProperties.resolution : null, disabled: !(this.selectedPrinterConfig.Resolutions.length > 0) })), index.h("ezp-stepper", { label: i18next.t('printer_selection.copies'), max: 10, icon: "copies" })), index.h("div", { id: "footer" }, index.h("ezp-text-button", { type: "button", level: "secondary", onClick: this.handleCancel, label: i18next.t('button_actions.cancel') }), index.h("ezp-text-button", { disabled: this.selectedPrinter.id === '' || this.printProcessing, type: "button", onClick: this.handlePrint, label: i18next.t('button_actions.print'), ref: (button) => (this.printButton = button) })), !this.hidemenu && index.h("ezp-user-menu", { open: this.userMenuOpen, name: this.userName }))));
|
|
33091
|
+
})), preSelected: this.selectedPrinter.id ? this.selectedProperties.resolution : null, disabled: !(this.selectedPrinterConfig.Resolutions.length > 0) })), index.h("ezp-stepper", { label: i18next.t('printer_selection.copies'), max: 10, icon: "copies" })), index.h("div", { id: "footer" }, index.h("ezp-text-button", { type: "button", level: "secondary", onClick: this.handleCancel, label: i18next.t('button_actions.cancel'), class: "action", id: "cancel" }), index.h("ezp-text-button", { disabled: this.selectedPrinter.id === '' || this.printProcessing, type: "button", onClick: this.handlePrint, label: i18next.t('button_actions.print'), ref: (button) => (this.printButton = button), class: "action", id: "print" })), !this.hidemenu && index.h("ezp-user-menu", { open: this.userMenuOpen, name: this.userName }))));
|
|
33091
33092
|
}
|
|
33092
33093
|
};
|
|
33093
33094
|
EzpPrinterSelection.style = ezpPrinterSelectionCss;
|
|
@@ -33099,16 +33100,18 @@ const config = {
|
|
|
33099
33100
|
printingApiHostUrl: printingApiHostUrl
|
|
33100
33101
|
};
|
|
33101
33102
|
|
|
33102
|
-
const ezpPrintingCss = ":host{--ezp-black-5:rgba(0, 0, 0, 0.05);--ezp-black-10:rgba(0, 0, 0, 0.1);--ezp-black-20:rgba(0, 0, 0, 0.2);--ezp-black-30:rgba(0, 0, 0, 0.3);--ezp-black-40:rgba(0, 0, 0, 0.4);--ezp-black-50:rgba(0, 0, 0, 0.5);--ezp-black-60:rgba(0, 0, 0, 0.6);--ezp-black-70:rgba(0, 0, 0, 0.7);--ezp-black-80:rgba(0, 0, 0, 0.8);--ezp-black-90:rgba(0, 0, 0, 0.9);--ezp-black-95:rgba(0, 0, 0, 0.95);--ezp-black-100:black}:host{--ezp-white-5:rgba(255, 255, 255, 0.05);--ezp-white-10:rgba(255, 255, 255, 0.1);--ezp-white-20:rgba(255, 255, 255, 0.2);--ezp-white-30:rgba(255, 255, 255, 0.3);--ezp-white-40:rgba(255, 255, 255, 0.4);--ezp-white-50:rgba(255, 255, 255, 0.5);--ezp-white-60:rgba(255, 255, 255, 0.6);--ezp-white-70:rgba(255, 255, 255, 0.7);--ezp-white-80:rgba(255, 255, 255, 0.8);--ezp-white-90:rgba(255, 255, 255, 0.9);--ezp-white-95:rgba(255, 255, 255, 0.95);--ezp-white-100:white}:host{font-family:\"Inter\", sans-serif;-webkit-font-feature-settings:\"calt\", \"liga\", \"ss03\", \"zero\", \"cv05\", \"cv10\";font-feature-settings:\"calt\", \"liga\", \"ss03\", \"zero\", \"cv05\", \"cv10\";-webkit-font-kerning:normal;font-kerning:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;-webkit-tap-highlight-color:transparent;text-rendering:optimizeLegibility;-webkit-text-size-adjust:none;--ezp-duration-1:0.1s;--ezp-duration-2:0.16s;--ezp-duration-3:0.26s;--ezp-duration-4:0.42s;--ezp-duration-5:0.68s;--ezp-duration-6:1s;--ezp-spacing-1:4px;--ezp-spacing-2:6px;--ezp-spacing-3:10px;--ezp-spacing-4:16px;--ezp-spacing-5:26px;--ezp-spacing-6:42px;--ezp-spacing-7:68px;--ezp-spacing-8:110px;--ezp-easing-in-quart:cubic-bezier(0.11, 0, 0.5, 0);--ezp-easing-in-out-quart:cubic-bezier(0.76, 0, 0.24, 1);--ezp-easing-in-out-cubic:cubic-bezier(0.65, 0, 0.35, 1);--ezp-easing-in-expo:cubic-bezier(0.7, 0, 0.84, 0);--ezp-easing-out-quart:cubic-bezier(0.25, 1, 0.5, 1);--ezp-easing-out-expo:cubic-bezier(0.16, 1, 0.3, 1)}:host(.light){--ezp-accent-pink-solid:#f23267;--ezp-accent-pink-solid-alt:#df1559;--ezp-accent-pink-translucent:rgba(242, 50, 103, 0.16);--ezp-accent-red-solid:#f23b22;--ezp-accent-red-solid-alt:#de2313;--ezp-accent-red-translucent:rgba(242, 59, 34, 0.16);--ezp-accent-orange-solid:#fe7200;--ezp-accent-orange-solid-alt:#f56200;--ezp-accent-orange-translucent:rgba(254, 114, 0, 0.16);--ezp-accent-yellow-solid:#ffa200;--ezp-accent-yellow-solid-alt:#fe9000;--ezp-accent-yellow-translucent:rgba(255, 162, 0, 0.16);--ezp-accent-green-solid:#5d9200;--ezp-accent-green-solid-alt:#518100;--ezp-accent-green-translucent:rgba(93, 146, 0, 0.16);--ezp-accent-teal-solid:#00967c;--ezp-accent-teal-solid-alt:#00846e;--ezp-accent-teal-translucent:rgba(0, 150, 124, 0.16);--ezp-accent-cyan-solid:#0091b4;--ezp-accent-cyan-solid-alt:#0080a0;--ezp-accent-cyan-translucent:rgba(0, 145, 180, 0.16);--ezp-accent-blue-solid:#5081f1;--ezp-accent-blue-solid-alt:#3b72df;--ezp-accent-blue-translucent:rgba(80, 129, 241, 0.16);--ezp-accent-violet-solid:#ae5ef3;--ezp-accent-violet-solid-alt:#9d4ee2;--ezp-accent-violet-translucent:rgba(174, 94, 243, 0.16);--ezp-core-surface-primary:white;--ezp-core-surface-secondary:#f3f3f3;--ezp-core-surface-tertiary:white;--ezp-core-foreground-primary:rgba(0, 0, 0, 0.94);--ezp-core-foreground-secondary:rgba(62, 62, 62, 0.68);--ezp-core-foreground-tertiary:rgba(62, 62, 62, 0.42);--ezp-core-shade-primary:rgba(139, 139, 139, 0.1);--ezp-core-shade-secondary:rgba(139, 139, 139, 0.16);--ezp-core-shade-tertiary:rgba(139, 139, 139, 0.22);--ezp-core-outline:rgba(99, 99, 99, 0.16);--ezp-core-edge:rgba(0, 0, 0, 0.1);--ezp-core-backdrop:rgba(0, 0, 0, 0.26)}@media (color-gamut: p3){@supports (color: color(display-p3 1 1 1)){:host(.light){--ezp-accent-pink-solid:color(display-p3 0.949 0.196 0.404/100%);--ezp-accent-pink-solid-alt:color(display-p3 0.875 0.082 0.349/100%);--ezp-accent-pink-translucent:color(display-p3 0.949 0.196 0.404/16%);--ezp-accent-red-solid:color(display-p3 0.949 0.231 0.133/100%);--ezp-accent-red-solid-alt:color(display-p3 0.871 0.137 0.075/100%);--ezp-accent-red-translucent:color(display-p3 0.949 0.231 0.133/16%);--ezp-accent-orange-solid:color(display-p3 0.996 0.447 0/100%);--ezp-accent-orange-solid-alt:color(display-p3 0.961 0.384 0/100%);--ezp-accent-orange-translucent:color(display-p3 0.996 0.447 0/16%);--ezp-accent-yellow-solid:color(display-p3 1 0.635 0/100%);--ezp-accent-yellow-solid-alt:color(display-p3 0.996 0.565 0/100%);--ezp-accent-yellow-translucent:color(display-p3 1 0.635 0/16%);--ezp-accent-green-solid:color(display-p3 0.365 0.573 0/100%);--ezp-accent-green-solid-alt:color(display-p3 0.318 0.506 0/100%);--ezp-accent-green-translucent:color(display-p3 0.365 0.573 0/16%);--ezp-accent-teal-solid:color(display-p3 0 0.588 0.486/100%);--ezp-accent-teal-solid-alt:color(display-p3 0 0.518 0.431/100%);--ezp-accent-teal-translucent:color(display-p3 0 0.588 0.486/16%);--ezp-accent-cyan-solid:color(display-p3 0 0.569 0.706/100%);--ezp-accent-cyan-solid-alt:color(display-p3 0 0.502 0.627/100%);--ezp-accent-cyan-translucent:color(display-p3 0 0.569 0.706/16%);--ezp-accent-blue-solid:color(display-p3 0.314 0.506 0.945/100%);--ezp-accent-blue-solid-alt:color(display-p3 0.231 0.447 0.875/100%);--ezp-accent-blue-translucent:color(display-p3 0.314 0.506 0.945/16%);--ezp-accent-violet-solid:color(display-p3 0.682 0.369 0.953/100%);--ezp-accent-violet-solid-alt:color(display-p3 0.616 0.306 0.886/100%);--ezp-accent-violet-translucent:color(display-p3 0.682 0.369 0.953/16%)}}}@media (color-gamut: p3){@supports (color: color(display-p3 1 1 1)){:host(.light){--ezp-core-surface-primary:color(display-p3 1 1 1/100%);--ezp-core-surface-secondary:color(display-p3 0.953 0.953 0.953/100%);--ezp-core-surface-tertiary:color(display-p3 1 1 1/100%);--ezp-core-foreground-primary:color(display-p3 0 0 0/94%);--ezp-core-foreground-secondary:color(display-p3 0.243 0.243 0.243/68%);--ezp-core-foreground-tertiary:color(display-p3 0.243 0.243 0.243/42%);--ezp-core-shade-primary:color(display-p3 0.545 0.545 0.545/10%);--ezp-core-shade-secondary:color(display-p3 0.545 0.545 0.545/16%);--ezp-core-shade-tertiary:color(display-p3 0.545 0.545 0.545/22%);--ezp-core-outline:color(display-p3 0.388 0.388 0.388/16%);--ezp-core-edge:color(display-p3 0 0 0/10%);--ezp-core-backdrop:color(display-p3 0 0 0/26%)}}}:host(.dark){--ezp-dialog-box-boxShadow:inset 0 0 0 1px var(--ezp-core-outline), 0 0 0 1px var(--ezp-black-60);--ezp-printerSelection-body-boxShadow:inset 1px 0 0 0 var(--ezp-core-outline), inset -1px 0 0 0 var(--ezp-core-outline);--ezp-printerSelection-box-boxShadow:0 0 0 1px var(--ezp-black-60);--ezp-printerSelection-footer-boxShadowPosition:inset 0 0 0 1px;--ezp-printerSelection-header-boxShadowPosition:inset 0 0 0 1px;--ezp-select-wrap-boxShadowPositionBottom:inset 0 -1px 0 0;--ezp-select-wrap-boxShadowPositionLeft:inset 1px 0 0 0;--ezp-select-wrap-boxShadowPositionRight:inset -1px 0 0 0;--ezp-select-wrap-boxShadowPositionTop:inset 0 1px 0 0;--ezp-status-box-boxShadow:inset 0 0 0 1px var(--ezp-core-outline), 0 0 0 1px var(--ezp-black-60);--ezp-stepper-boxShadowPosition:inset 0 0 0 1px;--ezp-userMenu-boxShadow:inset 0 0 0 1px var(--ezp-core-outline), 0 0 0 1px var(--ezp-black-60);--ezp-userMenu-header-boxShadowPosition:inset 0 -1px 0 0;--ezp-userMenu-links-boxShadowPosition:inset 0 -1px 0 0;--ezp-userMenu-theme-boxShadowPosition:inset 0 -1px 0 0;--ezp-accent-pink-solid:#ff4171;--ezp-accent-pink-translucent:rgba(255, 65, 113, 0.26);--ezp-accent-red-solid:#ff482c;--ezp-accent-red-translucent:rgba(255, 72, 44, 0.26);--ezp-accent-orange-solid:#ff811c;--ezp-accent-orange-translucent:rgba(255, 129, 28, 0.26);--ezp-accent-yellow-solid:#ffaf3a;--ezp-accent-yellow-translucent:rgba(255, 175, 58, 0.26);--ezp-accent-green-solid:#679c15;--ezp-accent-green-translucent:rgba(103, 156, 21, 0.26);--ezp-accent-teal-solid:#1da086;--ezp-accent-teal-translucent:rgba(29, 160, 134, 0.26);--ezp-accent-cyan-solid:#209bbf;--ezp-accent-cyan-translucent:rgba(32, 155, 191, 0.26);--ezp-accent-blue-solid:#5d8bfd;--ezp-accent-blue-translucent:rgba(93, 139, 253, 0.26);--ezp-accent-violet-solid:#ba69ff;--ezp-accent-violet-translucent:rgba(186, 105, 255, 0.26);--ezp-core-surface-primary:black;--ezp-core-surface-secondary:#1b1b1b;--ezp-core-surface-tertiary:#282828;--ezp-core-foreground-primary:rgba(255, 255, 255, 0.94);--ezp-core-foreground-secondary:rgba(182, 182, 182, 0.68);--ezp-core-foreground-tertiary:rgba(182, 182, 182, 0.42);--ezp-core-shade-primary:rgba(99, 99, 99, 0.26);--ezp-core-shade-secondary:rgba(99, 99, 99, 0.32);--ezp-core-shade-tertiary:rgba(99, 99, 99, 0.38);--ezp-core-outline:rgba(139, 139, 139, 0.26);--ezp-core-edge:rgba(255, 255, 255, 0.16);--ezp-core-backdrop:rgba(0, 0, 0, 0.68)}@media (color-gamut: p3){@supports (color: color(display-p3 1 1 1)){:host(.dark){--ezp-accent-pink-solid:color(display-p3 1 0.255 0.443/100%);--ezp-accent-pink-translucent:color(display-p3 1 0.255 0.443/26%);--ezp-accent-red-solid:color(display-p3 1 0.282 0.173/100%);--ezp-accent-red-translucent:color(display-p3 1 0.282 0.173/26%);--ezp-accent-orange-solid:color(display-p3 1 0.506 0.11/100%);--ezp-accent-orange-translucent:color(display-p3 1 0.506 0.11/26%);--ezp-accent-yellow-solid:color(display-p3 1 0.686 0.227/100%);--ezp-accent-yellow-translucent:color(display-p3 1 0.686 0.227/26%);--ezp-accent-green-solid:color(display-p3 0.404 0.612 0.082/100%);--ezp-accent-green-translucent:color(display-p3 0.404 0.612 0.082/26%);--ezp-accent-teal-solid:color(display-p3 0.114 0.627 0.525/100%);--ezp-accent-teal-translucent:color(display-p3 0.114 0.627 0.525/26%);--ezp-accent-cyan-solid:color(display-p3 0.125 0.608 0.749/100%);--ezp-accent-cyan-translucent:color(display-p3 0.125 0.608 0.749/26%);--ezp-accent-blue-solid:color(display-p3 0.365 0.545 0.992/100%);--ezp-accent-blue-translucent:color(display-p3 0.365 0.545 0.992/26%);--ezp-accent-violet-solid:color(display-p3 0.729 0.412 1/100%);--ezp-accent-violet-translucent:color(display-p3 0.729 0.412 1/26%)}}}@media (color-gamut: p3){@supports (color: color(display-p3 1 1 1)){:host(.dark){--ezp-core-surface-primary:color(display-p3 0 0 0/100%);--ezp-core-surface-secondary:color(display-p3 0.106 0.106 0.106/100%);--ezp-core-surface-tertiary:color(display-p3 0.157 0.157 0.157/100%);--ezp-core-foreground-primary:color(display-p3 1 1 1/94%);--ezp-core-foreground-secondary:color(display-p3 0.714 0.714 0.714/68%);--ezp-core-foreground-tertiary:color(display-p3 0.714 0.714 0.714/42%);--ezp-core-shade-primary:color(display-p3 0.388 0.388 0.388/26%);--ezp-core-shade-secondary:color(display-p3 0.388 0.388 0.388/32%);--ezp-core-shade-tertiary:color(display-p3 0.388 0.388 0.388/38%);--ezp-core-outline:color(display-p3 0.545 0.545 0.545/26%);--ezp-core-edge:color(display-p3 1 1 1/16%);--ezp-core-backdrop:color(display-p3 0 0 0/68%)}}}:host(.blue){--ezp-theme-solid:var(--ezp-accent-blue-solid);--ezp-theme-translucent:var(--ezp-accent-blue-translucent)}:host(.cyan){--ezp-theme-solid:var(--ezp-accent-cyan-solid);--ezp-theme-translucent:var(--ezp-accent-cyan-translucent)}:host(.green){--ezp-theme-solid:var(--ezp-accent-green-solid);--ezp-theme-translucent:var(--ezp-accent-green-translucent)}:host(.teal){--ezp-theme-solid:var(--ezp-accent-teal-solid);--ezp-theme-translucent:var(--ezp-accent-teal-translucent)}:host(.orange){--ezp-theme-solid:var(--ezp-accent-orange-solid);--ezp-theme-translucent:var(--ezp-accent-orange-translucent)}:host(.pink){--ezp-theme-solid:var(--ezp-accent-pink-solid);--ezp-theme-translucent:var(--ezp-accent-pink-translucent)}:host(.red){--ezp-theme-solid:var(--ezp-accent-red-solid);--ezp-theme-translucent:var(--ezp-accent-red-translucent)}:host(.violet){--ezp-theme-solid:var(--ezp-accent-violet-solid);--ezp-theme-translucent:var(--ezp-accent-violet-translucent)}";
|
|
33103
|
+
const ezpPrintingCss = ":host{--ezp-black-5:rgba(0, 0, 0, 0.05);--ezp-black-10:rgba(0, 0, 0, 0.1);--ezp-black-20:rgba(0, 0, 0, 0.2);--ezp-black-30:rgba(0, 0, 0, 0.3);--ezp-black-40:rgba(0, 0, 0, 0.4);--ezp-black-50:rgba(0, 0, 0, 0.5);--ezp-black-60:rgba(0, 0, 0, 0.6);--ezp-black-70:rgba(0, 0, 0, 0.7);--ezp-black-80:rgba(0, 0, 0, 0.8);--ezp-black-90:rgba(0, 0, 0, 0.9);--ezp-black-95:rgba(0, 0, 0, 0.95);--ezp-black-100:black}:host{--ezp-white-5:rgba(255, 255, 255, 0.05);--ezp-white-10:rgba(255, 255, 255, 0.1);--ezp-white-20:rgba(255, 255, 255, 0.2);--ezp-white-30:rgba(255, 255, 255, 0.3);--ezp-white-40:rgba(255, 255, 255, 0.4);--ezp-white-50:rgba(255, 255, 255, 0.5);--ezp-white-60:rgba(255, 255, 255, 0.6);--ezp-white-70:rgba(255, 255, 255, 0.7);--ezp-white-80:rgba(255, 255, 255, 0.8);--ezp-white-90:rgba(255, 255, 255, 0.9);--ezp-white-95:rgba(255, 255, 255, 0.95);--ezp-white-100:white}:host{font-family:\"Inter\", sans-serif;-webkit-font-feature-settings:\"calt\", \"liga\", \"ss03\", \"zero\", \"cv05\", \"cv10\";font-feature-settings:\"calt\", \"liga\", \"ss03\", \"zero\", \"cv05\", \"cv10\";-webkit-font-kerning:normal;font-kerning:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;-webkit-tap-highlight-color:transparent;text-rendering:optimizeLegibility;-webkit-text-size-adjust:none;--ezp-duration-1:0.1s;--ezp-duration-2:0.16s;--ezp-duration-3:0.26s;--ezp-duration-4:0.42s;--ezp-duration-5:0.68s;--ezp-duration-6:1s;--ezp-spacing-1:4px;--ezp-spacing-2:6px;--ezp-spacing-3:10px;--ezp-spacing-4:16px;--ezp-spacing-5:26px;--ezp-spacing-6:42px;--ezp-spacing-7:68px;--ezp-spacing-8:110px;--ezp-easing-in-quart:cubic-bezier(0.11, 0, 0.5, 0);--ezp-easing-in-out-quart:cubic-bezier(0.76, 0, 0.24, 1);--ezp-easing-in-out-cubic:cubic-bezier(0.65, 0, 0.35, 1);--ezp-easing-in-expo:cubic-bezier(0.7, 0, 0.84, 0);--ezp-easing-out-quart:cubic-bezier(0.25, 1, 0.5, 1);--ezp-easing-out-expo:cubic-bezier(0.16, 1, 0.3, 1)}:host(.light){--ezp-accent-pink-solid:#f23267;--ezp-accent-pink-solid-alt:#df1559;--ezp-accent-pink-translucent:rgba(242, 50, 103, 0.16);--ezp-accent-red-solid:#f23b22;--ezp-accent-red-solid-alt:#de2313;--ezp-accent-red-translucent:rgba(242, 59, 34, 0.16);--ezp-accent-orange-solid:#fe7200;--ezp-accent-orange-solid-alt:#f56200;--ezp-accent-orange-translucent:rgba(254, 114, 0, 0.16);--ezp-accent-yellow-solid:#ffa200;--ezp-accent-yellow-solid-alt:#fe9000;--ezp-accent-yellow-translucent:rgba(255, 162, 0, 0.16);--ezp-accent-green-solid:#5d9200;--ezp-accent-green-solid-alt:#518100;--ezp-accent-green-translucent:rgba(93, 146, 0, 0.16);--ezp-accent-teal-solid:#00967c;--ezp-accent-teal-solid-alt:#00846e;--ezp-accent-teal-translucent:rgba(0, 150, 124, 0.16);--ezp-accent-cyan-solid:#0091b4;--ezp-accent-cyan-solid-alt:#0080a0;--ezp-accent-cyan-translucent:rgba(0, 145, 180, 0.16);--ezp-accent-blue-solid:#5081f1;--ezp-accent-blue-solid-alt:#3b72df;--ezp-accent-blue-translucent:rgba(80, 129, 241, 0.16);--ezp-accent-violet-solid:#ae5ef3;--ezp-accent-violet-solid-alt:#9d4ee2;--ezp-accent-violet-translucent:rgba(174, 94, 243, 0.16);--ezp-core-surface-primary:white;--ezp-core-surface-secondary:#f3f3f3;--ezp-core-surface-tertiary:white;--ezp-core-foreground-primary:rgba(0, 0, 0, 0.94);--ezp-core-foreground-secondary:rgba(62, 62, 62, 0.68);--ezp-core-foreground-tertiary:rgba(62, 62, 62, 0.42);--ezp-core-shade-primary:rgba(139, 139, 139, 0.1);--ezp-core-shade-secondary:rgba(139, 139, 139, 0.16);--ezp-core-shade-tertiary:rgba(139, 139, 139, 0.22);--ezp-core-outline:rgba(99, 99, 99, 0.16);--ezp-core-edge:rgba(0, 0, 0, 0.1);--ezp-core-backdrop:rgba(0, 0, 0, 0.26)}@media (color-gamut: p3){@supports (color: color(display-p3 1 1 1)){:host(.light){--ezp-accent-pink-solid:color(display-p3 0.949 0.196 0.404/100%);--ezp-accent-pink-solid-alt:color(display-p3 0.875 0.082 0.349/100%);--ezp-accent-pink-translucent:color(display-p3 0.949 0.196 0.404/16%);--ezp-accent-red-solid:color(display-p3 0.949 0.231 0.133/100%);--ezp-accent-red-solid-alt:color(display-p3 0.871 0.137 0.075/100%);--ezp-accent-red-translucent:color(display-p3 0.949 0.231 0.133/16%);--ezp-accent-orange-solid:color(display-p3 0.996 0.447 0/100%);--ezp-accent-orange-solid-alt:color(display-p3 0.961 0.384 0/100%);--ezp-accent-orange-translucent:color(display-p3 0.996 0.447 0/16%);--ezp-accent-yellow-solid:color(display-p3 1 0.635 0/100%);--ezp-accent-yellow-solid-alt:color(display-p3 0.996 0.565 0/100%);--ezp-accent-yellow-translucent:color(display-p3 1 0.635 0/16%);--ezp-accent-green-solid:color(display-p3 0.365 0.573 0/100%);--ezp-accent-green-solid-alt:color(display-p3 0.318 0.506 0/100%);--ezp-accent-green-translucent:color(display-p3 0.365 0.573 0/16%);--ezp-accent-teal-solid:color(display-p3 0 0.588 0.486/100%);--ezp-accent-teal-solid-alt:color(display-p3 0 0.518 0.431/100%);--ezp-accent-teal-translucent:color(display-p3 0 0.588 0.486/16%);--ezp-accent-cyan-solid:color(display-p3 0 0.569 0.706/100%);--ezp-accent-cyan-solid-alt:color(display-p3 0 0.502 0.627/100%);--ezp-accent-cyan-translucent:color(display-p3 0 0.569 0.706/16%);--ezp-accent-blue-solid:color(display-p3 0.314 0.506 0.945/100%);--ezp-accent-blue-solid-alt:color(display-p3 0.231 0.447 0.875/100%);--ezp-accent-blue-translucent:color(display-p3 0.314 0.506 0.945/16%);--ezp-accent-violet-solid:color(display-p3 0.682 0.369 0.953/100%);--ezp-accent-violet-solid-alt:color(display-p3 0.616 0.306 0.886/100%);--ezp-accent-violet-translucent:color(display-p3 0.682 0.369 0.953/16%)}}}@media (color-gamut: p3){@supports (color: color(display-p3 1 1 1)){:host(.light){--ezp-core-surface-primary:color(display-p3 1 1 1/100%);--ezp-core-surface-secondary:color(display-p3 0.953 0.953 0.953/100%);--ezp-core-surface-tertiary:color(display-p3 1 1 1/100%);--ezp-core-foreground-primary:color(display-p3 0 0 0/94%);--ezp-core-foreground-secondary:color(display-p3 0.243 0.243 0.243/68%);--ezp-core-foreground-tertiary:color(display-p3 0.243 0.243 0.243/42%);--ezp-core-shade-primary:color(display-p3 0.545 0.545 0.545/10%);--ezp-core-shade-secondary:color(display-p3 0.545 0.545 0.545/16%);--ezp-core-shade-tertiary:color(display-p3 0.545 0.545 0.545/22%);--ezp-core-outline:color(display-p3 0.388 0.388 0.388/16%);--ezp-core-edge:color(display-p3 0 0 0/10%);--ezp-core-backdrop:color(display-p3 0 0 0/26%)}}}:host(.dark){--ezp-dialog-box-boxShadow:inset 0 0 0 1px var(--ezp-core-outline),\n 0 0 0 1px var(--ezp-black-60);--ezp-printerSelection-body-boxShadow:inset 1px 0 0 0 var(--ezp-core-outline),\n inset -1px 0 0 0 var(--ezp-core-outline);--ezp-printerSelection-box-boxShadow:0 0 0 1px var(--ezp-black-60);--ezp-printerSelection-footer-boxShadowPosition:inset 0 0 0 1px;--ezp-printerSelection-header-boxShadowPosition:inset 0 0 0 1px;--ezp-select-wrap-boxShadowPositionBottom:inset 0 -1px 0 0;--ezp-select-wrap-boxShadowPositionLeft:inset 1px 0 0 0;--ezp-select-wrap-boxShadowPositionRight:inset -1px 0 0 0;--ezp-select-wrap-boxShadowPositionTop:inset 0 1px 0 0;--ezp-status-box-boxShadow:inset 0 0 0 1px var(--ezp-core-outline),\n 0 0 0 1px var(--ezp-black-60);--ezp-stepper-boxShadowPosition:inset 0 0 0 1px;--ezp-userMenu-boxShadow:inset 0 0 0 1px var(--ezp-core-outline),\n 0 0 0 1px var(--ezp-black-60);--ezp-userMenu-header-boxShadowPosition:inset 0 -1px 0 0;--ezp-userMenu-links-boxShadowPosition:inset 0 -1px 0 0;--ezp-userMenu-theme-boxShadowPosition:inset 0 -1px 0 0;--ezp-accent-pink-solid:#ff4171;--ezp-accent-pink-translucent:rgba(255, 65, 113, 0.26);--ezp-accent-red-solid:#ff482c;--ezp-accent-red-translucent:rgba(255, 72, 44, 0.26);--ezp-accent-orange-solid:#ff811c;--ezp-accent-orange-translucent:rgba(255, 129, 28, 0.26);--ezp-accent-yellow-solid:#ffaf3a;--ezp-accent-yellow-translucent:rgba(255, 175, 58, 0.26);--ezp-accent-green-solid:#679c15;--ezp-accent-green-translucent:rgba(103, 156, 21, 0.26);--ezp-accent-teal-solid:#1da086;--ezp-accent-teal-translucent:rgba(29, 160, 134, 0.26);--ezp-accent-cyan-solid:#209bbf;--ezp-accent-cyan-translucent:rgba(32, 155, 191, 0.26);--ezp-accent-blue-solid:#5d8bfd;--ezp-accent-blue-translucent:rgba(93, 139, 253, 0.26);--ezp-accent-violet-solid:#ba69ff;--ezp-accent-violet-translucent:rgba(186, 105, 255, 0.26);--ezp-core-surface-primary:black;--ezp-core-surface-secondary:#1b1b1b;--ezp-core-surface-tertiary:#282828;--ezp-core-foreground-primary:rgba(255, 255, 255, 0.94);--ezp-core-foreground-secondary:rgba(182, 182, 182, 0.68);--ezp-core-foreground-tertiary:rgba(182, 182, 182, 0.42);--ezp-core-shade-primary:rgba(99, 99, 99, 0.26);--ezp-core-shade-secondary:rgba(99, 99, 99, 0.32);--ezp-core-shade-tertiary:rgba(99, 99, 99, 0.38);--ezp-core-outline:rgba(139, 139, 139, 0.26);--ezp-core-edge:rgba(255, 255, 255, 0.16);--ezp-core-backdrop:rgba(0, 0, 0, 0.68)}@media (color-gamut: p3){@supports (color: color(display-p3 1 1 1)){:host(.dark){--ezp-accent-pink-solid:color(display-p3 1 0.255 0.443/100%);--ezp-accent-pink-translucent:color(display-p3 1 0.255 0.443/26%);--ezp-accent-red-solid:color(display-p3 1 0.282 0.173/100%);--ezp-accent-red-translucent:color(display-p3 1 0.282 0.173/26%);--ezp-accent-orange-solid:color(display-p3 1 0.506 0.11/100%);--ezp-accent-orange-translucent:color(display-p3 1 0.506 0.11/26%);--ezp-accent-yellow-solid:color(display-p3 1 0.686 0.227/100%);--ezp-accent-yellow-translucent:color(display-p3 1 0.686 0.227/26%);--ezp-accent-green-solid:color(display-p3 0.404 0.612 0.082/100%);--ezp-accent-green-translucent:color(display-p3 0.404 0.612 0.082/26%);--ezp-accent-teal-solid:color(display-p3 0.114 0.627 0.525/100%);--ezp-accent-teal-translucent:color(display-p3 0.114 0.627 0.525/26%);--ezp-accent-cyan-solid:color(display-p3 0.125 0.608 0.749/100%);--ezp-accent-cyan-translucent:color(display-p3 0.125 0.608 0.749/26%);--ezp-accent-blue-solid:color(display-p3 0.365 0.545 0.992/100%);--ezp-accent-blue-translucent:color(display-p3 0.365 0.545 0.992/26%);--ezp-accent-violet-solid:color(display-p3 0.729 0.412 1/100%);--ezp-accent-violet-translucent:color(display-p3 0.729 0.412 1/26%)}}}@media (color-gamut: p3){@supports (color: color(display-p3 1 1 1)){:host(.dark){--ezp-core-surface-primary:color(display-p3 0 0 0/100%);--ezp-core-surface-secondary:color(display-p3 0.106 0.106 0.106/100%);--ezp-core-surface-tertiary:color(display-p3 0.157 0.157 0.157/100%);--ezp-core-foreground-primary:color(display-p3 1 1 1/94%);--ezp-core-foreground-secondary:color(display-p3 0.714 0.714 0.714/68%);--ezp-core-foreground-tertiary:color(display-p3 0.714 0.714 0.714/42%);--ezp-core-shade-primary:color(display-p3 0.388 0.388 0.388/26%);--ezp-core-shade-secondary:color(display-p3 0.388 0.388 0.388/32%);--ezp-core-shade-tertiary:color(display-p3 0.388 0.388 0.388/38%);--ezp-core-outline:color(display-p3 0.545 0.545 0.545/26%);--ezp-core-edge:color(display-p3 1 1 1/16%);--ezp-core-backdrop:color(display-p3 0 0 0/68%)}}}:host(.blue){--ezp-theme-solid:var(--ezp-accent-blue-solid);--ezp-theme-translucent:var(--ezp-accent-blue-translucent)}:host(.cyan){--ezp-theme-solid:var(--ezp-accent-cyan-solid);--ezp-theme-translucent:var(--ezp-accent-cyan-translucent)}:host(.green){--ezp-theme-solid:var(--ezp-accent-green-solid);--ezp-theme-translucent:var(--ezp-accent-green-translucent)}:host(.teal){--ezp-theme-solid:var(--ezp-accent-teal-solid);--ezp-theme-translucent:var(--ezp-accent-teal-translucent)}:host(.orange){--ezp-theme-solid:var(--ezp-accent-orange-solid);--ezp-theme-translucent:var(--ezp-accent-orange-translucent)}:host(.pink){--ezp-theme-solid:var(--ezp-accent-pink-solid);--ezp-theme-translucent:var(--ezp-accent-pink-translucent)}:host(.red){--ezp-theme-solid:var(--ezp-accent-red-solid);--ezp-theme-translucent:var(--ezp-accent-red-translucent)}:host(.violet){--ezp-theme-solid:var(--ezp-accent-violet-solid);--ezp-theme-translucent:var(--ezp-accent-violet-translucent)}";
|
|
33103
33104
|
|
|
33104
33105
|
let EzpPrinting = class {
|
|
33105
33106
|
constructor(hostRef) {
|
|
33106
33107
|
index.registerInstance(this, hostRef);
|
|
33107
33108
|
this.filename = '';
|
|
33108
33109
|
this.hidemenu = false;
|
|
33110
|
+
this.hideheader = false;
|
|
33109
33111
|
this.theme = 'cyan';
|
|
33110
33112
|
this.appearance = 'system';
|
|
33111
33113
|
this.language = '';
|
|
33114
|
+
this.seamless = false;
|
|
33112
33115
|
/**
|
|
33113
33116
|
*
|
|
33114
33117
|
* States
|
|
@@ -33237,9 +33240,10 @@ let EzpPrinting = class {
|
|
|
33237
33240
|
authStore.state.accessToken = accessToken;
|
|
33238
33241
|
}
|
|
33239
33242
|
if (localStorage.getItem('isAuthorized')) {
|
|
33240
|
-
authStore.state.isAuthorized =
|
|
33243
|
+
authStore.state.isAuthorized = localStorage.getItem('isAuthorized') === 'true';
|
|
33241
33244
|
}
|
|
33242
|
-
await printService
|
|
33245
|
+
await printService
|
|
33246
|
+
.getConfig(authStore.state.accessToken)
|
|
33243
33247
|
.then((response) => {
|
|
33244
33248
|
if (response.ok) {
|
|
33245
33249
|
authStore.state.isAuthorized = true;
|
|
@@ -33297,7 +33301,7 @@ let EzpPrinting = class {
|
|
|
33297
33301
|
render() {
|
|
33298
33302
|
return (index.h(index.Host, { class: `${userStore.state.theme} ${userStore.state.appearance === 'system'
|
|
33299
33303
|
? this.systemAppearance
|
|
33300
|
-
: userStore.state.appearance}` }, this.trigger === 'custom' ? (index.h("slot", null)) : this.trigger === 'file' ? (index.h("ezp-upload", null)) : (this.trigger === 'button' && (index.h("ezp-icon-button", { id: "print-trigger", icon: "printer", slot: "trigger", type: "button", onClick: () => this.open() }))), this.authOpen ? (index.h("ezp-auth", { clientID: this.clientid, redirectURI: this.redirecturi, hidelogin: this.hidelogin, trigger: this.trigger, code: this.code })) : this.printOpen ? (index.h("ezp-printer-selection", { clientID: this.clientid, redirectURI: this.redirecturi, filename: this.filename, fileurl: this.fileurl, filetype: this.filetype, fileid: this.fileid, file: this.file, hidemenu: this.hidemenu })) : this.noDocumentOpen ? (index.h("ezp-dialog", { heading: i18next.t('no_document_dialog.heading'), description: i18next.t('no_document_dialog.description'), action: i18next.t('no_document_dialog.action'), iconName: "question-mark", instance: "no-document-selected" })) : null));
|
|
33304
|
+
: userStore.state.appearance}` }, this.trigger === 'custom' ? (index.h("slot", null)) : this.trigger === 'file' ? (index.h("ezp-upload", null)) : (this.trigger === 'button' && (index.h("ezp-icon-button", { id: "print-trigger", icon: "printer", slot: "trigger", type: "button", onClick: () => this.open() }))), this.authOpen ? (index.h("ezp-auth", { clientID: this.clientid, redirectURI: this.redirecturi, hidelogin: this.hidelogin, trigger: this.trigger, code: this.code })) : this.printOpen ? (index.h("ezp-printer-selection", { clientID: this.clientid, redirectURI: this.redirecturi, filename: this.filename, fileurl: this.fileurl, filetype: this.filetype, fileid: this.fileid, file: this.file, hidemenu: this.hidemenu, hideheader: this.hideheader, seamless: this.seamless })) : this.noDocumentOpen ? (index.h("ezp-dialog", { heading: i18next.t('no_document_dialog.heading'), description: i18next.t('no_document_dialog.description'), action: i18next.t('no_document_dialog.action'), iconName: "question-mark", instance: "no-document-selected" })) : null));
|
|
33301
33305
|
}
|
|
33302
33306
|
static get watchers() { return {
|
|
33303
33307
|
"filedata": ["watchFileData"],
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -16,7 +16,7 @@ const defineCustomElements = (win, options) => {
|
|
|
16
16
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
17
17
|
return patchEsm().then(() => {
|
|
18
18
|
appGlobals.globalScripts();
|
|
19
|
-
return index.bootstrapLazy([["ezp-auth_14.cjs",[[1,"ezp-printing",{"clientid":[1],"redirecturi":[1],"filename":[1025],"fileurl":[1],"filetype":[1],"custom":[4],"hidelogin":[4],"hidemenu":[4],"authapihosturl":[1],"printapihosturl":[1],"theme":[1],"fileid":[1],"appearance":[1],"trigger":[1],"language":[1],"code":[1],"filedata":[1],"printOpen":[32],"authOpen":[32],"onlyGetSasUri":[32],"noDocumentOpen":[32],"systemAppearance":[32],"file":[32],"open":[64],"logOut":[64],"getSasUri":[64],"getAuthUri":[64],"checkAuth":[64]},[[0,"printCancel","listenPrintCancel"],[0,"printSubmit","listenPrintSubmit"],[0,"authCancel","listenAuthCancel"],[0,"authSuccess","listenAuthSuccess"],[0,"uploadFile","listenUploadFile"],[0,"dialogClose","listenDialogClose"],[0,"dialogAction","listenDialogAction"]]],[1,"ezp-printer-selection",{"clientID":[1,"client-i-d"],"redirectURI":[1,"redirect-u-r-i"],"filename":[1025],"fileurl":[1],"filetype":[1025],"fileid":[1025],"file":[16],"hidemenu":[4],"loading":[32],"printProcessing":[32],"uploading":[32],"preparingUpload":[32],"printSuccess":[32],"printFailed":[32],"notSupported":[32],"noPrinters":[32],"userMenuOpen":[32],"printStopped":[32],"userName":[32],"printers":[32],"selectedPrinter":[32],"printerConfig":[32],"selectedPrinterConfig":[32],"selectedProperties":[32]},[[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",{"filename":[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-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-icon-button",{"blank":[4],"disabled":[4],"href":[1],"icon":[1],"level":[1],"type":[1]}],[1,"ezp-text-button",{"blank":[4],"disabled":[4],"href":[1],"level":[1],"label":[1],"type":[1],"small":[4]}],[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);
|
|
19
|
+
return index.bootstrapLazy([["ezp-auth_14.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],"file":[32],"open":[64],"logOut":[64],"getSasUri":[64],"getAuthUri":[64],"checkAuth":[64]},[[0,"printCancel","listenPrintCancel"],[0,"printSubmit","listenPrintSubmit"],[0,"authCancel","listenAuthCancel"],[0,"authSuccess","listenAuthSuccess"],[0,"uploadFile","listenUploadFile"],[0,"dialogClose","listenDialogClose"],[0,"dialogAction","listenDialogAction"]]],[1,"ezp-printer-selection",{"clientID":[1,"client-i-d"],"redirectURI":[1,"redirect-u-r-i"],"filename":[1025],"fileurl":[1],"filetype":[1025],"fileid":[1025],"file":[16],"hidemenu":[4],"hideheader":[4],"seamless":[4],"loading":[32],"printProcessing":[32],"uploading":[32],"preparingUpload":[32],"printSuccess":[32],"printFailed":[32],"notSupported":[32],"noPrinters":[32],"userMenuOpen":[32],"printStopped":[32],"userName":[32],"printers":[32],"selectedPrinter":[32],"printerConfig":[32],"selectedPrinterConfig":[32],"selectedProperties":[32]},[[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",{"filename":[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-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-icon-button",{"blank":[4],"disabled":[4],"href":[1],"icon":[1],"level":[1],"type":[1]}],[1,"ezp-text-button",{"blank":[4],"disabled":[4],"href":[1],"level":[1],"label":[1],"type":[1],"small":[4]}],[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
20
|
});
|
|
21
21
|
};
|
|
22
22
|
|
|
@@ -29,23 +29,39 @@
|
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
31
31
|
:host {
|
|
32
|
-
align-content: center;
|
|
33
|
-
background: var(--ezp-core-backdrop);
|
|
32
|
+
align-content: var(--ezp-printerSelection-alignContent, center);
|
|
33
|
+
background: var(--ezp-printerSelection-background, var(--ezp-core-backdrop));
|
|
34
34
|
display: grid;
|
|
35
35
|
grid-template: auto/var(--ezp-printerSelection-width, 320px);
|
|
36
|
-
height: 100vh;
|
|
37
|
-
justify-content: center;
|
|
36
|
+
height: var(--ezp-printerSelection-height, 100vh);
|
|
37
|
+
justify-content: var(--ezp-printerSelection-justifyContent, center);
|
|
38
38
|
left: 0;
|
|
39
|
-
position: fixed;
|
|
39
|
+
position: var(--ezp-printerSelection-position, fixed);
|
|
40
40
|
top: 0;
|
|
41
|
-
width:
|
|
41
|
+
width: 100%;
|
|
42
42
|
z-index: 1;
|
|
43
43
|
}
|
|
44
|
+
:host(.seamless) {
|
|
45
|
+
--ezp-printerSelection-alignContent: stretch;
|
|
46
|
+
--ezp-printerSelection-background: transparent;
|
|
47
|
+
--ezp-printerSelection-body-background: transparent;
|
|
48
|
+
--ezp-printerSelection-body-padding: 0;
|
|
49
|
+
--ezp-printerSelection-box-background: transparent;
|
|
50
|
+
--ezp-printerSelection-box-borderRadius: 0;
|
|
51
|
+
--ezp-printerSelection-box-boxShadow: none;
|
|
52
|
+
--ezp-printerSelection-footer-boxShadowPosition: 0 0 0 0;
|
|
53
|
+
--ezp-printerSelection-footer-padding: var(--ezp-spacing-2) 0;
|
|
54
|
+
--ezp-printerSelection-header-boxShadowPosition: 0 0 0 0;
|
|
55
|
+
--ezp-printerSelection-header-padding: var(--ezp-spacing-4) 0;
|
|
56
|
+
--ezp-printerSelection-justifyContent: stretch;
|
|
57
|
+
--ezp-printerSelection-position: static;
|
|
58
|
+
}
|
|
44
59
|
|
|
45
60
|
#box {
|
|
46
|
-
background: var(--ezp-core-surface-tertiary);
|
|
47
|
-
border-radius: 6px;
|
|
61
|
+
background: var(--ezp-printerSelection-box-background, var(--ezp-core-surface-tertiary));
|
|
62
|
+
border-radius: var(--ezp-printerSelection-box-borderRadius, 6px);
|
|
48
63
|
box-shadow: var(--ezp-printerSelection-box-boxShadow, 0 0 0 1px var(--ezp-black-10));
|
|
64
|
+
padding: var(--ezp-printerSelection-padding, 0);
|
|
49
65
|
position: relative;
|
|
50
66
|
}
|
|
51
67
|
|
|
@@ -56,7 +72,7 @@
|
|
|
56
72
|
display: grid;
|
|
57
73
|
grid-column-gap: var(--ezp-spacing-2);
|
|
58
74
|
grid-template-columns: auto 1fr auto;
|
|
59
|
-
padding: var(--ezp-spacing-4) var(--ezp-spacing-3) var(--ezp-spacing-4) var(--ezp-spacing-4);
|
|
75
|
+
padding: var(--ezp-printerSelection-header-padding, var(--ezp-spacing-4) var(--ezp-spacing-3) var(--ezp-spacing-4) var(--ezp-spacing-4));
|
|
60
76
|
position: relative;
|
|
61
77
|
z-index: 3;
|
|
62
78
|
}
|
|
@@ -68,21 +84,33 @@
|
|
|
68
84
|
}
|
|
69
85
|
|
|
70
86
|
#body {
|
|
71
|
-
background: var(--ezp-core-surface-secondary);
|
|
87
|
+
background: var(--ezp-printerSelection-body-background, var(--ezp-core-surface-secondary));
|
|
72
88
|
box-shadow: var(--ezp-printerSelection-body-boxShadow, none);
|
|
73
89
|
display: flex;
|
|
74
90
|
flex-direction: column;
|
|
75
91
|
gap: var(--ezp-spacing-2);
|
|
76
|
-
padding: var(--ezp-spacing-2);
|
|
92
|
+
padding: var(--ezp-printerSelection-body-padding, var(--ezp-spacing-2));
|
|
77
93
|
}
|
|
78
94
|
|
|
79
95
|
#footer {
|
|
80
96
|
border-radius: 0 0 6px 6px;
|
|
81
97
|
box-shadow: var(--ezp-printerSelection-footer-boxShadowPosition, 0 -1px 0 0) var(--ezp-core-outline);
|
|
82
98
|
display: grid;
|
|
83
|
-
|
|
84
|
-
grid-template-
|
|
85
|
-
|
|
99
|
+
gap: var(--ezp-spacing-2);
|
|
100
|
+
grid-template-areas: var(--ezp-printerSelection-footer-areas, "cancel print");
|
|
101
|
+
grid-template-columns: var(--ezp-printerSelection-footer-columns, repeat(2, 1fr));
|
|
102
|
+
grid-template-rows: var(--ezp-printerSelection-footer-rows, auto);
|
|
103
|
+
justify-content: center;
|
|
104
|
+
justify-items: stretch;
|
|
105
|
+
padding: var(--ezp-printerSelection-footer-padding, var(--ezp-spacing-2));
|
|
86
106
|
position: relative;
|
|
87
107
|
z-index: 3;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
#cancel {
|
|
111
|
+
grid-area: cancel;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
#print {
|
|
115
|
+
grid-area: print;
|
|
88
116
|
}
|
|
@@ -23,6 +23,7 @@ export class EzpPrinterSelection {
|
|
|
23
23
|
},
|
|
24
24
|
];
|
|
25
25
|
this.hidemenu = false;
|
|
26
|
+
this.hideheader = false;
|
|
26
27
|
/**
|
|
27
28
|
*
|
|
28
29
|
* States
|
|
@@ -395,17 +396,17 @@ export class EzpPrinterSelection {
|
|
|
395
396
|
*
|
|
396
397
|
*/
|
|
397
398
|
render() {
|
|
398
|
-
return this.loading ? (h("ezp-status", { processing: true, description: i18next.t('printer_selection.loading'), instance: "loading" })) : (h(Host,
|
|
399
|
+
return this.loading ? (h("ezp-status", { processing: true, description: i18next.t('printer_selection.loading'), instance: "loading" })) : (h(Host, { class: { seamless: this.seamless } },
|
|
399
400
|
h("div", { id: "box", "data-backdrop-surface": true },
|
|
400
401
|
!this.printStopped && (h(Fragment, null, this.printProcessing ? (h("ezp-status", { processing: true, description: this.preparingUpload
|
|
401
402
|
? i18next.t('printer_selection.prepare_upload')
|
|
402
403
|
: this.uploading
|
|
403
404
|
? i18next.t('printer_selection.uploading')
|
|
404
405
|
: i18next.t('printer_selection.print_processing'), instance: "print-processing", cancel: true })) : this.selectedPrinter.is_queue && this.printSuccess ? (h("ezp-status", { icon: "checkmark-alt", description: i18next.t('printer_selection.pull_print_success'), instance: "print-success", close: true })) : this.printSuccess ? (h("ezp-status", { icon: "checkmark-alt", description: i18next.t('printer_selection.print_success'), instance: "print-success", close: true })) : this.printFailed ? (h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.print_failed'), instance: "print-failed", close: true, retry: true })) : this.notSupported ? (h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.not_supported'), instance: "not-supported", retry: true })) : this.noPrinters ? (h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.no_printers'), instance: "no-printers", close: true })) : null)),
|
|
405
|
-
h("div", { id: "header" },
|
|
406
|
+
!this.hideheader && (h("div", { id: "header" },
|
|
406
407
|
h("ezp-label", { weight: "heavy", text: i18next.t('printer_selection.print') + `${!this.notSupported ? ':' : ''}` }),
|
|
407
408
|
h("ezp-label", { text: !this.notSupported ? this.filename : '', ellipsis: true }),
|
|
408
|
-
!this.hidemenu && (h("ezp-icon-button", { level: "tertiary", icon: "menu", id: "toggle-menu", type: "button", onClick: this.handleUserMenu }))),
|
|
409
|
+
!this.hidemenu && (h("ezp-icon-button", { level: "tertiary", icon: "menu", id: "toggle-menu", type: "button", onClick: this.handleUserMenu })))),
|
|
409
410
|
h("div", { id: "body" },
|
|
410
411
|
h("div", { id: "printer" },
|
|
411
412
|
h("ezp-select", { label: i18next.t('printer_selection.printer'), icon: "printer", placeholder: this.printers.length > 0
|
|
@@ -473,8 +474,8 @@ export class EzpPrinterSelection {
|
|
|
473
474
|
})), preSelected: this.selectedPrinter.id ? this.selectedProperties.resolution : null, disabled: !(this.selectedPrinterConfig.Resolutions.length > 0) })),
|
|
474
475
|
h("ezp-stepper", { label: i18next.t('printer_selection.copies'), max: 10, icon: "copies" })),
|
|
475
476
|
h("div", { id: "footer" },
|
|
476
|
-
h("ezp-text-button", { type: "button", level: "secondary", onClick: this.handleCancel, label: i18next.t('button_actions.cancel') }),
|
|
477
|
-
h("ezp-text-button", { disabled: this.selectedPrinter.id === '' || this.printProcessing, type: "button", onClick: this.handlePrint, label: i18next.t('button_actions.print'), ref: (button) => (this.printButton = button) })),
|
|
477
|
+
h("ezp-text-button", { type: "button", level: "secondary", onClick: this.handleCancel, label: i18next.t('button_actions.cancel'), class: "action", id: "cancel" }),
|
|
478
|
+
h("ezp-text-button", { disabled: this.selectedPrinter.id === '' || this.printProcessing, type: "button", onClick: this.handlePrint, label: i18next.t('button_actions.print'), ref: (button) => (this.printButton = button), class: "action", id: "print" })),
|
|
478
479
|
!this.hidemenu && h("ezp-user-menu", { open: this.userMenuOpen, name: this.userName }))));
|
|
479
480
|
}
|
|
480
481
|
static get is() { return "ezp-printer-selection"; }
|
|
@@ -624,6 +625,41 @@ export class EzpPrinterSelection {
|
|
|
624
625
|
"attribute": "hidemenu",
|
|
625
626
|
"reflect": false,
|
|
626
627
|
"defaultValue": "false"
|
|
628
|
+
},
|
|
629
|
+
"hideheader": {
|
|
630
|
+
"type": "boolean",
|
|
631
|
+
"mutable": false,
|
|
632
|
+
"complexType": {
|
|
633
|
+
"original": "boolean",
|
|
634
|
+
"resolved": "boolean",
|
|
635
|
+
"references": {}
|
|
636
|
+
},
|
|
637
|
+
"required": false,
|
|
638
|
+
"optional": false,
|
|
639
|
+
"docs": {
|
|
640
|
+
"tags": [],
|
|
641
|
+
"text": ""
|
|
642
|
+
},
|
|
643
|
+
"attribute": "hideheader",
|
|
644
|
+
"reflect": false,
|
|
645
|
+
"defaultValue": "false"
|
|
646
|
+
},
|
|
647
|
+
"seamless": {
|
|
648
|
+
"type": "boolean",
|
|
649
|
+
"mutable": false,
|
|
650
|
+
"complexType": {
|
|
651
|
+
"original": "boolean",
|
|
652
|
+
"resolved": "boolean",
|
|
653
|
+
"references": {}
|
|
654
|
+
},
|
|
655
|
+
"required": false,
|
|
656
|
+
"optional": false,
|
|
657
|
+
"docs": {
|
|
658
|
+
"tags": [],
|
|
659
|
+
"text": ""
|
|
660
|
+
},
|
|
661
|
+
"attribute": "seamless",
|
|
662
|
+
"reflect": false
|
|
627
663
|
}
|
|
628
664
|
}; }
|
|
629
665
|
static get states() { return {
|
|
@@ -183,8 +183,10 @@
|
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
:host(.dark) {
|
|
186
|
-
--ezp-dialog-box-boxShadow: inset 0 0 0 1px var(--ezp-core-outline),
|
|
187
|
-
|
|
186
|
+
--ezp-dialog-box-boxShadow: inset 0 0 0 1px var(--ezp-core-outline),
|
|
187
|
+
0 0 0 1px var(--ezp-black-60);
|
|
188
|
+
--ezp-printerSelection-body-boxShadow: inset 1px 0 0 0 var(--ezp-core-outline),
|
|
189
|
+
inset -1px 0 0 0 var(--ezp-core-outline);
|
|
188
190
|
--ezp-printerSelection-box-boxShadow: 0 0 0 1px var(--ezp-black-60);
|
|
189
191
|
--ezp-printerSelection-footer-boxShadowPosition: inset 0 0 0 1px;
|
|
190
192
|
--ezp-printerSelection-header-boxShadowPosition: inset 0 0 0 1px;
|
|
@@ -192,9 +194,11 @@
|
|
|
192
194
|
--ezp-select-wrap-boxShadowPositionLeft: inset 1px 0 0 0;
|
|
193
195
|
--ezp-select-wrap-boxShadowPositionRight: inset -1px 0 0 0;
|
|
194
196
|
--ezp-select-wrap-boxShadowPositionTop: inset 0 1px 0 0;
|
|
195
|
-
--ezp-status-box-boxShadow: inset 0 0 0 1px var(--ezp-core-outline),
|
|
197
|
+
--ezp-status-box-boxShadow: inset 0 0 0 1px var(--ezp-core-outline),
|
|
198
|
+
0 0 0 1px var(--ezp-black-60);
|
|
196
199
|
--ezp-stepper-boxShadowPosition: inset 0 0 0 1px;
|
|
197
|
-
--ezp-userMenu-boxShadow: inset 0 0 0 1px var(--ezp-core-outline),
|
|
200
|
+
--ezp-userMenu-boxShadow: inset 0 0 0 1px var(--ezp-core-outline),
|
|
201
|
+
0 0 0 1px var(--ezp-black-60);
|
|
198
202
|
--ezp-userMenu-header-boxShadowPosition: inset 0 -1px 0 0;
|
|
199
203
|
--ezp-userMenu-links-boxShadowPosition: inset 0 -1px 0 0;
|
|
200
204
|
--ezp-userMenu-theme-boxShadowPosition: inset 0 -1px 0 0;
|
|
@@ -9,9 +9,11 @@ export class EzpPrinting {
|
|
|
9
9
|
constructor() {
|
|
10
10
|
this.filename = '';
|
|
11
11
|
this.hidemenu = false;
|
|
12
|
+
this.hideheader = false;
|
|
12
13
|
this.theme = 'cyan';
|
|
13
14
|
this.appearance = 'system';
|
|
14
15
|
this.language = '';
|
|
16
|
+
this.seamless = false;
|
|
15
17
|
/**
|
|
16
18
|
*
|
|
17
19
|
* States
|
|
@@ -140,9 +142,10 @@ export class EzpPrinting {
|
|
|
140
142
|
authStore.state.accessToken = accessToken;
|
|
141
143
|
}
|
|
142
144
|
if (localStorage.getItem('isAuthorized')) {
|
|
143
|
-
authStore.state.isAuthorized =
|
|
145
|
+
authStore.state.isAuthorized = localStorage.getItem('isAuthorized') === 'true';
|
|
144
146
|
}
|
|
145
|
-
await printService
|
|
147
|
+
await printService
|
|
148
|
+
.getConfig(authStore.state.accessToken)
|
|
146
149
|
.then((response) => {
|
|
147
150
|
if (response.ok) {
|
|
148
151
|
authStore.state.isAuthorized = true;
|
|
@@ -202,7 +205,7 @@ export class EzpPrinting {
|
|
|
202
205
|
? this.systemAppearance
|
|
203
206
|
: userStore.state.appearance}` },
|
|
204
207
|
this.trigger === 'custom' ? (h("slot", null)) : this.trigger === 'file' ? (h("ezp-upload", null)) : (this.trigger === 'button' && (h("ezp-icon-button", { id: "print-trigger", icon: "printer", slot: "trigger", type: "button", onClick: () => this.open() }))),
|
|
205
|
-
this.authOpen ? (h("ezp-auth", { clientID: this.clientid, redirectURI: this.redirecturi, hidelogin: this.hidelogin, trigger: this.trigger, code: this.code })) : this.printOpen ? (h("ezp-printer-selection", { clientID: this.clientid, redirectURI: this.redirecturi, filename: this.filename, fileurl: this.fileurl, filetype: this.filetype, fileid: this.fileid, file: this.file, hidemenu: this.hidemenu })) : this.noDocumentOpen ? (h("ezp-dialog", { heading: i18next.t('no_document_dialog.heading'), description: i18next.t('no_document_dialog.description'), action: i18next.t('no_document_dialog.action'), iconName: "question-mark", instance: "no-document-selected" })) : null));
|
|
208
|
+
this.authOpen ? (h("ezp-auth", { clientID: this.clientid, redirectURI: this.redirecturi, hidelogin: this.hidelogin, trigger: this.trigger, code: this.code })) : this.printOpen ? (h("ezp-printer-selection", { clientID: this.clientid, redirectURI: this.redirecturi, filename: this.filename, fileurl: this.fileurl, filetype: this.filetype, fileid: this.fileid, file: this.file, hidemenu: this.hidemenu, hideheader: this.hideheader, seamless: this.seamless })) : this.noDocumentOpen ? (h("ezp-dialog", { heading: i18next.t('no_document_dialog.heading'), description: i18next.t('no_document_dialog.description'), action: i18next.t('no_document_dialog.action'), iconName: "question-mark", instance: "no-document-selected" })) : null));
|
|
206
209
|
}
|
|
207
210
|
static get is() { return "ezp-printing"; }
|
|
208
211
|
static get encapsulation() { return "shadow"; }
|
|
@@ -351,6 +354,24 @@ export class EzpPrinting {
|
|
|
351
354
|
"reflect": false,
|
|
352
355
|
"defaultValue": "false"
|
|
353
356
|
},
|
|
357
|
+
"hideheader": {
|
|
358
|
+
"type": "boolean",
|
|
359
|
+
"mutable": false,
|
|
360
|
+
"complexType": {
|
|
361
|
+
"original": "boolean",
|
|
362
|
+
"resolved": "boolean",
|
|
363
|
+
"references": {}
|
|
364
|
+
},
|
|
365
|
+
"required": false,
|
|
366
|
+
"optional": false,
|
|
367
|
+
"docs": {
|
|
368
|
+
"tags": [],
|
|
369
|
+
"text": ""
|
|
370
|
+
},
|
|
371
|
+
"attribute": "hideheader",
|
|
372
|
+
"reflect": false,
|
|
373
|
+
"defaultValue": "false"
|
|
374
|
+
},
|
|
354
375
|
"authapihosturl": {
|
|
355
376
|
"type": "string",
|
|
356
377
|
"mutable": false,
|
|
@@ -521,6 +542,24 @@ export class EzpPrinting {
|
|
|
521
542
|
},
|
|
522
543
|
"attribute": "filedata",
|
|
523
544
|
"reflect": false
|
|
545
|
+
},
|
|
546
|
+
"seamless": {
|
|
547
|
+
"type": "boolean",
|
|
548
|
+
"mutable": false,
|
|
549
|
+
"complexType": {
|
|
550
|
+
"original": "boolean",
|
|
551
|
+
"resolved": "boolean",
|
|
552
|
+
"references": {}
|
|
553
|
+
},
|
|
554
|
+
"required": false,
|
|
555
|
+
"optional": false,
|
|
556
|
+
"docs": {
|
|
557
|
+
"tags": [],
|
|
558
|
+
"text": ""
|
|
559
|
+
},
|
|
560
|
+
"attribute": "seamless",
|
|
561
|
+
"reflect": false,
|
|
562
|
+
"defaultValue": "false"
|
|
524
563
|
}
|
|
525
564
|
}; }
|
|
526
565
|
static get states() { return {
|