@ezeep/ezeep-js 1.0.164 → 1.0.167
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 +2 -2
- package/dist/cjs/ezp-auth_14.cjs.entry.js +78 -82
- package/dist/cjs/{index-baa7689a.js → index-0b159f85.js} +6 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/components/ezp-auth/ezp-auth.css +2 -2
- package/dist/collection/components/ezp-auth/ezp-auth.js +25 -4
- package/dist/collection/components/ezp-backdrop/ezp-backdrop.css +1 -1
- package/dist/collection/components/ezp-dialog/ezp-dialog.css +5 -5
- package/dist/collection/components/ezp-icon/ezp-icon.css +1 -1
- package/dist/collection/components/ezp-icon-button/ezp-icon-button.css +16 -16
- package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.css +10 -9
- package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.js +30 -48
- package/dist/collection/components/ezp-printing/ezp-printing.css +203 -133
- package/dist/collection/components/ezp-printing/ezp-printing.js +20 -7
- package/dist/collection/components/ezp-select/ezp-select.css +21 -21
- package/dist/collection/components/ezp-select/ezp-select.js +5 -4
- package/dist/collection/components/ezp-status/ezp-status.css +7 -7
- package/dist/collection/components/ezp-status/ezp-status.js +2 -3
- package/dist/collection/components/ezp-stepper/ezp-stepper.css +12 -12
- package/dist/collection/components/ezp-text-button/ezp-text-button.css +14 -14
- package/dist/collection/components/ezp-upload/ezp-upload.css +6 -6
- package/dist/collection/components/ezp-upload/ezp-upload.js +9 -7
- package/dist/collection/components/ezp-user-menu/ezp-user-menu.css +33 -29
- package/dist/collection/components/ezp-user-menu/ezp-user-menu.js +1 -1
- package/dist/custom-elements/index.js +80 -84
- package/dist/directives/proxies.ts +2 -2
- package/dist/esm/ezeep.js +2 -2
- package/dist/esm/ezp-auth_14.entry.js +78 -82
- package/dist/esm/{index-18d4bf15.js → index-13f75d28.js} +6 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm-es5/ezeep.js +1 -1
- package/dist/esm-es5/ezp-auth_14.entry.js +3 -3
- package/dist/esm-es5/index-13f75d28.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/ezeep/ezeep.esm.js +1 -1
- package/dist/ezeep/ezeep.js +1 -1
- package/dist/ezeep/p-16c7584d.system.js +1 -0
- package/dist/ezeep/p-17f25f95.js +1 -0
- package/dist/ezeep/{p-a78a89f7.system.entry.js → p-9ac499ef.system.entry.js} +3 -3
- package/{www/build/p-2bac1003.entry.js → dist/ezeep/p-a84d0e34.entry.js} +2 -2
- package/dist/ezeep/p-c04b764e.system.js +1 -0
- package/dist/types/components/ezp-auth/ezp-auth.d.ts +1 -0
- package/dist/types/components/ezp-printer-selection/ezp-printer-selection.d.ts +1 -0
- package/dist/types/components/ezp-printing/ezp-printing.d.ts +1 -0
- package/dist/types/components/ezp-upload/ezp-upload.d.ts +2 -6
- package/dist/types/components.d.ts +2 -0
- package/dist/types/shared/types.d.ts +3 -2
- package/package.json +3 -1
- package/www/build/ezeep.esm.js +1 -1
- package/www/build/ezeep.js +1 -1
- package/www/build/p-16c7584d.system.js +1 -0
- package/www/build/p-17f25f95.js +1 -0
- package/www/build/{p-a78a89f7.system.entry.js → p-9ac499ef.system.entry.js} +3 -3
- package/{dist/ezeep/p-2bac1003.entry.js → www/build/p-a84d0e34.entry.js} +2 -2
- package/www/build/p-c04b764e.system.js +1 -0
- package/www/data/locales/en.json +3 -1
- package/www/index.html +8 -1
- package/dist/esm-es5/index-18d4bf15.js +0 -1
- package/dist/ezeep/p-80d5c308.system.js +0 -1
- package/dist/ezeep/p-d9b69b53.js +0 -1
- package/dist/ezeep/p-f96ca6a7.system.js +0 -1
- package/www/build/p-80d5c308.system.js +0 -1
- package/www/build/p-d9b69b53.js +0 -1
- package/www/build/p-f96ca6a7.system.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getRenderingRef, f as forceUpdate, r as registerInstance, c as createEvent, h, H as Host, a as getElement, d as getAssetPath, F as Fragment } from './index-
|
|
1
|
+
import { g as getRenderingRef, f as forceUpdate, r as registerInstance, c as createEvent, h, H as Host, a as getElement, d as getAssetPath, F as Fragment } from './index-13f75d28.js';
|
|
2
2
|
|
|
3
3
|
const appendToMap = (map, propName, value) => {
|
|
4
4
|
const items = map.get(propName);
|
|
@@ -2916,6 +2916,7 @@ const printer_selection = {
|
|
|
2916
2916
|
loading: "Loading My Printers…",
|
|
2917
2917
|
print_processing: "Printing…",
|
|
2918
2918
|
print_success: "Successfully printed.",
|
|
2919
|
+
pull_print_success: "Ready to be released.",
|
|
2919
2920
|
print_failed: "Print failed",
|
|
2920
2921
|
not_supported: "The selected file type is not supported.",
|
|
2921
2922
|
prepare_upload: "Preparing…",
|
|
@@ -2949,7 +2950,8 @@ const button_actions = {
|
|
|
2949
2950
|
print: "Print",
|
|
2950
2951
|
cancel: "Cancel",
|
|
2951
2952
|
close: "Close",
|
|
2952
|
-
retry: "Retry"
|
|
2953
|
+
retry: "Retry",
|
|
2954
|
+
next: "Next"
|
|
2953
2955
|
};
|
|
2954
2956
|
const upload = {
|
|
2955
2957
|
description: "Drop a file here into the browser ",
|
|
@@ -3158,7 +3160,7 @@ function sendCodeToParentWindow() {
|
|
|
3158
3160
|
}
|
|
3159
3161
|
}
|
|
3160
3162
|
|
|
3161
|
-
const ezpAuthCss = ":host{--ezp-
|
|
3163
|
+
const ezpAuthCss = ":host{--ezp-theme-solid:var(--ezp-accent-cyan-solid);--ezp-theme-translucent:var(--ezp-accent-cyan-translucent);display:block}";
|
|
3162
3164
|
|
|
3163
3165
|
let EzpAuth = class {
|
|
3164
3166
|
constructor(hostRef) {
|
|
@@ -3192,6 +3194,11 @@ let EzpAuth = class {
|
|
|
3192
3194
|
then we load it in the already opened secondary window and then
|
|
3193
3195
|
we bring such window back on top/in front of its parent window. */
|
|
3194
3196
|
this.oauthPopupWindow = window.open(url, name, windowFeatures);
|
|
3197
|
+
if (!this.oauthPopupWindow ||
|
|
3198
|
+
this.oauthPopupWindow.closed ||
|
|
3199
|
+
typeof this.oauthPopupWindow.closed == 'undefined') {
|
|
3200
|
+
alert('popup blocked');
|
|
3201
|
+
}
|
|
3195
3202
|
this.oauthPopupWindow.focus();
|
|
3196
3203
|
}
|
|
3197
3204
|
else {
|
|
@@ -3219,17 +3226,17 @@ let EzpAuth = class {
|
|
|
3219
3226
|
await this.auth.generateCodeChallenge(authStore.state.codeVerifier);
|
|
3220
3227
|
this.auth.buildAuthURI();
|
|
3221
3228
|
}
|
|
3222
|
-
if (this.hidelogin) {
|
|
3229
|
+
if (this.hidelogin && this.trigger === 'button') {
|
|
3223
3230
|
this.openSignInWindow(this.auth.authURI.toString(), 'ezeep Login');
|
|
3224
3231
|
}
|
|
3225
3232
|
}
|
|
3226
3233
|
render() {
|
|
3227
|
-
return this.hidelogin ? (h("ezp-status", { description: i18next.t('login_dialog.action'), processing: true, cancel: true })) : (h(
|
|
3234
|
+
return (h(Host, null, this.hidelogin && this.trigger === 'button' ? (h("ezp-status", { description: i18next.t('login_dialog.action'), processing: true, cancel: true })) : this.hidelogin && this.trigger === 'file' ? (h("ezp-text-button", { type: "button", level: "primary", onClick: () => this.openSignInWindow(this.auth.authURI.toString(), 'ezeep Login'), label: i18next.t('button_actions.next') })) : (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" }))));
|
|
3228
3235
|
}
|
|
3229
3236
|
};
|
|
3230
3237
|
EzpAuth.style = ezpAuthCss;
|
|
3231
3238
|
|
|
3232
|
-
const ezpBackdropCss = ":host{-webkit-animation:var(--ezp-backdrop-animation-name, host-in) var(--ezp-duration-3) forwards var(--ezp-easing-out-quart);animation:var(--ezp-backdrop-animation-name, host-in) var(--ezp-duration-3) forwards var(--ezp-easing-out-quart);background:var(--ezp-
|
|
3239
|
+
const ezpBackdropCss = ":host{-webkit-animation:var(--ezp-backdrop-animation-name, host-in) var(--ezp-duration-3) forwards var(--ezp-easing-out-quart);animation:var(--ezp-backdrop-animation-name, host-in) var(--ezp-duration-3) forwards var(--ezp-easing-out-quart);background:var(--ezp-core-backdrop);border-radius:6px;display:block;height:100%;left:0;opacity:0;position:absolute;top:0;width:100%;z-index:4}:host(.hide){--ezp-backdrop-animation-name:host-out}@-webkit-keyframes host-in{0%{opacity:0}100%{opacity:1}}@keyframes host-in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes host-out{0%{opacity:1}100%{opacity:0}}@keyframes host-out{0%{opacity:1}100%{opacity:0}}";
|
|
3233
3240
|
|
|
3234
3241
|
let EzpBackdrop = class {
|
|
3235
3242
|
constructor(hostRef) {
|
|
@@ -3254,7 +3261,7 @@ let EzpBackdrop = class {
|
|
|
3254
3261
|
};
|
|
3255
3262
|
EzpBackdrop.style = ezpBackdropCss;
|
|
3256
3263
|
|
|
3257
|
-
const ezpDialogCss = ":host{--ezp-icon-fill:var(--ezp-
|
|
3264
|
+
const ezpDialogCss = ":host{--ezp-icon-fill:var(--ezp-theme-solid);-ms-flex-line-pack:center;align-content:center;background:var(--ezp-core-backdrop);display:grid;grid-template:auto/minmax(auto, 280px);height:100%;-ms-flex-pack:center;justify-content:center;left:0;position:fixed;top:0;width:100%}#box{background:var(--ezp-core-surface-tertiary);border-radius:6px;-webkit-box-shadow:var(--ezp-dialog-box-boxShadow, 0 0 0 1px var(--ezp-black-10));box-shadow:var(--ezp-dialog-box-boxShadow, 0 0 0 1px var(--ezp-black-10))}#header{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;padding:var(--ezp-spacing-2) var(--ezp-spacing-3)}#body{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:var(--ezp-spacing-5);padding:0 var(--ezp-spacing-5);text-align:center}#text{color:var(--ezp-core-foreground-primary);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:var(--ezp-spacing-4)}#footer{display:grid;grid-template:auto/minmax(144px, auto);-ms-flex-pack:center;justify-content:center;padding:var(--ezp-spacing-5)}";
|
|
3258
3265
|
|
|
3259
3266
|
let EzpDialog = class {
|
|
3260
3267
|
constructor(hostRef) {
|
|
@@ -3294,7 +3301,7 @@ let EzpDialog = class {
|
|
|
3294
3301
|
};
|
|
3295
3302
|
EzpDialog.style = ezpDialogCss;
|
|
3296
3303
|
|
|
3297
|
-
const ezpIconCss = ":host{-ms-flex-line-pack:center;align-content:center;background:var(--ezp-icon-background, transparent);border-radius:var(--ezp-icon-borderRadius, 0);display:grid;grid-template:var(--ezp-icon-gridTemplate)/var(--ezp-icon-gridTemplate);height:var(--ezp-icon-height, var(--ezp-icon-size));-ms-flex-pack:center;justify-content:center;padding:var(--ezp-icon-padding, 0);width:var(--ezp-icon-width, var(--ezp-icon-size))}:host(.framed){--ezp-icon-background:var(--ezp-
|
|
3304
|
+
const ezpIconCss = ":host{-ms-flex-line-pack:center;align-content:center;background:var(--ezp-icon-background, transparent);border-radius:var(--ezp-icon-borderRadius, 0);display:grid;grid-template:var(--ezp-icon-gridTemplate)/var(--ezp-icon-gridTemplate);height:var(--ezp-icon-height, var(--ezp-icon-size));-ms-flex-pack:center;justify-content:center;padding:var(--ezp-icon-padding, 0);width:var(--ezp-icon-width, var(--ezp-icon-size))}:host(.framed){--ezp-icon-background:var(--ezp-core-shade-primary);--ezp-icon-borderRadius:50%;--ezp-icon-padding:var(--ezp-icon-frame)}:host(.normal){--ezp-icon-size:18px;--ezp-icon-gridTemplate:24px;--ezp-icon-frame:var(--ezp-spacing-3)}:host(.large){--ezp-icon-size:36px;--ezp-icon-gridTemplate:48px;--ezp-icon-frame:var(--ezp-spacing-4)}:host(.huge){--ezp-icon-size:54px;--ezp-icon-gridTemplate:72px;--ezp-icon-frame:var(--ezp-spacing-5)}svg{display:block;fill:var(--ezp-icon-fill, currentColor);height:100%;width:100%}";
|
|
3298
3305
|
|
|
3299
3306
|
let EzpIcon = class {
|
|
3300
3307
|
constructor(hostRef) {
|
|
@@ -3329,7 +3336,7 @@ let EzpIcon = class {
|
|
|
3329
3336
|
};
|
|
3330
3337
|
EzpIcon.style = ezpIconCss;
|
|
3331
3338
|
|
|
3332
|
-
const ezpIconButtonCss = ":host{display:block}:host(.primary){--ezp-iconButton-background-disabled:var(--ezp-
|
|
3339
|
+
const ezpIconButtonCss = ":host{display:block}:host(.primary){--ezp-iconButton-background-disabled:var(--ezp-core-shade-primary);--ezp-iconButton-background-init:var(--ezp-theme-solid);--ezp-iconButton-color-disabled:var(--ezp-core-foreground-tertiary);--ezp-iconButton-color-init:var(--ezp-white-100);--ezp-iconButton-opacity-active:0.74;--ezp-iconButton-opacity-hover:0.84}:host(.secondary){--ezp-iconButton-background-active:var(--ezp-core-shade-tertiary);--ezp-iconButton-background-disabled:var(--ezp-core-shade-primary);--ezp-iconButton-background-hover:var(--ezp-core-shade-secondary);--ezp-iconButton-background-init:var(--ezp-core-shade-primary);--ezp-iconButton-color-disabled:var(--ezp-core-foreground-tertiary);--ezp-iconButton-color-init:var(--ezp-theme-solid)}:host(.tertiary){--ezp-iconButton-background-active:var(--ezp-core-shade-secondary);--ezp-iconButton-background-hover:var(--ezp-core-shade-primary);--ezp-iconButton-background-init:transparent;--ezp-iconButton-color-disabled:var(--ezp-core-foreground-tertiary);--ezp-iconButton-color-init:var(--ezp-theme-solid)}:host(.quaternary){--ezp-iconButton-background-init:transparent;--ezp-iconButton-color-disabled:var(--ezp-core-foreground-tertiary);--ezp-iconButton-color-init:var(--ezp-theme-solid);--ezp-iconButton-opacity-active:0.58;--ezp-iconButton-opacity-hover:0.74}#button{-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--ezp-iconButton-background, var(--ezp-iconButton-background-init));border:0;border-radius:3px;-webkit-box-shadow:none;box-shadow:none;color:var(--ezp-iconButton-color, var(--ezp-iconButton-color-init));cursor:var(--ezp-iconButton-cursor, pointer);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0;opacity:var(--ezp-iconButton-opacity, 1);outline:none;padding:var(--ezp-spacing-2)}@media (hover: hover){#button:not(:disabled):hover{--ezp-iconButton-background:var(\n --ezp-iconButton-background-hover,\n var(--ezp-iconButton-background-init)\n );--ezp-iconButton-opacity:var(--ezp-iconButton-opacity-hover, 1)}#button:not(:disabled):active{--ezp-iconButton-background:var(\n --ezp-iconButton-background-active,\n var(--ezp-iconButton-background-init)\n );--ezp-iconButton-opacity:var(--ezp-iconButton-opacity-active, 1)}}#button:disabled{--ezp-iconButton-background:var(\n --ezp-iconButton-background-disabled,\n var(--ezp-iconButton-background-init)\n );--ezp-iconButton-color:var(--ezp-iconButton-color-disabled);--ezp-iconButton-cursor:default}";
|
|
3333
3340
|
|
|
3334
3341
|
let EzpIconButton = class {
|
|
3335
3342
|
constructor(hostRef) {
|
|
@@ -32604,7 +32611,7 @@ const userStore = createStore({
|
|
|
32604
32611
|
appearance: '',
|
|
32605
32612
|
});
|
|
32606
32613
|
|
|
32607
|
-
const ezpPrinterSelectionCss = ":host{-ms-flex-line-pack:center;align-content:center;background:var(--ezp-
|
|
32614
|
+
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:100vw;z-index:1}#box{background:var(--ezp-core-surface-tertiary);border-radius: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));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-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-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-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;grid-column-gap:var(--ezp-spacing-2);grid-template-columns:repeat(2, 1fr);padding:var(--ezp-spacing-2);position:relative;z-index:3}";
|
|
32608
32615
|
|
|
32609
32616
|
let EzpPrinterSelection = class {
|
|
32610
32617
|
constructor(hostRef) {
|
|
@@ -32655,11 +32662,11 @@ let EzpPrinterSelection = class {
|
|
|
32655
32662
|
paper: '',
|
|
32656
32663
|
paperid: '',
|
|
32657
32664
|
color: false,
|
|
32658
|
-
duplex:
|
|
32659
|
-
duplexmode:
|
|
32660
|
-
orientation:
|
|
32665
|
+
duplex: true,
|
|
32666
|
+
duplexmode: 1,
|
|
32667
|
+
orientation: 1,
|
|
32661
32668
|
copies: '',
|
|
32662
|
-
resolution:
|
|
32669
|
+
resolution: 0,
|
|
32663
32670
|
};
|
|
32664
32671
|
/**
|
|
32665
32672
|
*
|
|
@@ -32679,9 +32686,10 @@ let EzpPrinterSelection = class {
|
|
|
32679
32686
|
return false;
|
|
32680
32687
|
};
|
|
32681
32688
|
this.POLL_INTERVAL = 2000;
|
|
32682
|
-
this.MAX_POLL_ATTEMPTS =
|
|
32689
|
+
this.MAX_POLL_ATTEMPTS = Infinity;
|
|
32683
32690
|
/** Description... */
|
|
32684
32691
|
this.handlePrint = async () => {
|
|
32692
|
+
this.printButton.blur();
|
|
32685
32693
|
this.printProcessing = true;
|
|
32686
32694
|
// we have to initialse this obj with empty strings to display the select component
|
|
32687
32695
|
// but don't want to send any attributes with empty strings to the API
|
|
@@ -32808,7 +32816,7 @@ let EzpPrinterSelection = class {
|
|
|
32808
32816
|
this.selectedPrinter = JSON.parse(localStorage.getItem('printer'));
|
|
32809
32817
|
}
|
|
32810
32818
|
else {
|
|
32811
|
-
this.selectedPrinter = { id: '', location: '', name: '' };
|
|
32819
|
+
this.selectedPrinter = { id: '', location: '', name: '', is_queue: false };
|
|
32812
32820
|
}
|
|
32813
32821
|
}
|
|
32814
32822
|
getUserInfo() {
|
|
@@ -32823,9 +32831,11 @@ let EzpPrinterSelection = class {
|
|
|
32823
32831
|
case 'printer':
|
|
32824
32832
|
this.selectedPrinter.id = eventDetails.id;
|
|
32825
32833
|
this.selectedPrinter.name = eventDetails.title;
|
|
32834
|
+
this.selectedPrinter.is_queue = eventDetails.is_queue;
|
|
32826
32835
|
await this.printService
|
|
32827
32836
|
.getPrinterProperties(authStore.state.accessToken, this.selectedPrinter.id)
|
|
32828
32837
|
.then((data) => (this.selectedPrinterConfig = data[0]));
|
|
32838
|
+
console.log(this.selectedPrinterConfig);
|
|
32829
32839
|
this.setDefaultPaperFormat();
|
|
32830
32840
|
break;
|
|
32831
32841
|
case 'color':
|
|
@@ -32928,8 +32938,10 @@ let EzpPrinterSelection = class {
|
|
|
32928
32938
|
else {
|
|
32929
32939
|
format = 'A4';
|
|
32930
32940
|
}
|
|
32931
|
-
|
|
32932
|
-
|
|
32941
|
+
if (this.selectedPrinterConfig.PaperFormats.find((el) => el.Name.includes(format))) {
|
|
32942
|
+
this.selectedProperties.paper = this.selectedPrinterConfig.PaperFormats.find((el) => el.Name.includes(format)).Name;
|
|
32943
|
+
this.selectedProperties.paperid = this.selectedPrinterConfig.PaperFormats.find((el) => el.Name.includes(format)).Id;
|
|
32944
|
+
}
|
|
32933
32945
|
}
|
|
32934
32946
|
/**
|
|
32935
32947
|
*
|
|
@@ -32986,18 +32998,15 @@ let EzpPrinterSelection = class {
|
|
|
32986
32998
|
? i18next.t('printer_selection.prepare_upload')
|
|
32987
32999
|
: this.uploading
|
|
32988
33000
|
? i18next.t('printer_selection.uploading')
|
|
32989
|
-
: i18next.t('printer_selection.print_processing'), instance: "print-processing", cancel: 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)), h("div", { id: "header" }, h("ezp-label", { weight: "heavy", text: i18next.t('printer_selection.print') + `${!this.notSupported ? ':' : ''}` }), h("ezp-label", { text: !this.notSupported ? this.filename : '' }), !this.hidemenu && (h("ezp-icon-button", { level: "tertiary", icon: "menu", id: "toggle-menu", type: "button", onClick: this.handleUserMenu }))), h("div", { id: "body" }, h("div", { id: "printer" }, h("ezp-select", { label: i18next.t('printer_selection.printer'), icon: "printer", placeholder: this.printers.length > 0
|
|
33001
|
+
: i18next.t('printer_selection.print_processing'), instance: "print-processing", cancel: true })) : this.printSuccess ? (h("ezp-status", { icon: "checkmark-alt", description: i18next.t('printer_selection.print_success'), instance: "print-success", close: true })) : this.printSuccess && this.selectedPrinter.is_queue ? (h("ezp-status", { icon: "checkmark-alt", description: i18next.t('printer_selection.pull_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)), h("div", { id: "header" }, h("ezp-label", { weight: "heavy", text: i18next.t('printer_selection.print') + `${!this.notSupported ? ':' : ''}` }), h("ezp-label", { text: !this.notSupported ? this.filename : '', ellipsis: true }), !this.hidemenu && (h("ezp-icon-button", { level: "tertiary", icon: "menu", id: "toggle-menu", type: "button", onClick: this.handleUserMenu }))), h("div", { id: "body" }, h("div", { id: "printer" }, h("ezp-select", { label: i18next.t('printer_selection.printer'), icon: "printer", placeholder: this.printers.length > 0
|
|
32990
33002
|
? i18next.t('printer_selection.select_printer')
|
|
32991
33003
|
: i18next.t('printer_selection.no_printers'), toggleFlow: "vertical", optionFlow: "vertical", options: this.printers.map((printer) => ({
|
|
32992
33004
|
id: printer.id,
|
|
32993
33005
|
title: printer.name,
|
|
32994
|
-
meta: printer.location !== ''
|
|
32995
|
-
? printer.location
|
|
32996
|
-
: i18next.t('printer_selection.unknown_location'),
|
|
33006
|
+
meta: printer.location !== '' ? printer.location : '',
|
|
32997
33007
|
type: 'printer',
|
|
32998
|
-
|
|
32999
|
-
|
|
33000
|
-
disabled: !(this.printers.length > 0) })), h("div", { id: "options" }, h("ezp-select", { label: i18next.t('printer_selection.color'), icon: "color", placeholder: i18next.t('printer_selection.select_color'), toggleFlow: "horizontal", options: this.selectedPrinterConfig.Color
|
|
33008
|
+
is_queue: printer.is_queue,
|
|
33009
|
+
})), preSelected: this.selectedPrinter.id ? this.selectedPrinter.name : null, disabled: !(this.printers.length > 0) })), h("div", { id: "options" }, h("ezp-select", { label: i18next.t('printer_selection.color'), icon: "color", placeholder: i18next.t('printer_selection.select_color'), toggleFlow: "horizontal", options: this.selectedPrinterConfig.Color
|
|
33001
33010
|
? [
|
|
33002
33011
|
{
|
|
33003
33012
|
id: 1,
|
|
@@ -33019,53 +33028,33 @@ let EzpPrinterSelection = class {
|
|
|
33019
33028
|
meta: '',
|
|
33020
33029
|
type: 'color',
|
|
33021
33030
|
},
|
|
33022
|
-
],
|
|
33023
|
-
|
|
33024
|
-
|
|
33025
|
-
|
|
33026
|
-
|
|
33027
|
-
// }
|
|
33028
|
-
disabled: !this.selectedPrinterConfig.Color }), h("ezp-select", { label: i18next.t('printer_selection.duplex'), icon: "duplex", placeholder: i18next.t('printer_selection.select_duplex'), toggleFlow: "horizontal", options: this.duplexOptions.map((option) => ({
|
|
33031
|
+
], preSelected: this.selectedPrinter.id
|
|
33032
|
+
? this.selectedProperties.color
|
|
33033
|
+
? i18next.t('printer_selection.color_color')
|
|
33034
|
+
: i18next.t('printer_selection.color_grayscale')
|
|
33035
|
+
: null, disabled: !this.selectedPrinterConfig.Color }), h("ezp-select", { label: i18next.t('printer_selection.duplex'), icon: "duplex", placeholder: i18next.t('printer_selection.select_duplex'), toggleFlow: "horizontal", options: this.duplexOptions.map((option) => ({
|
|
33029
33036
|
id: option.id,
|
|
33030
33037
|
title: option.title,
|
|
33031
33038
|
meta: '',
|
|
33032
33039
|
type: 'duplex',
|
|
33033
|
-
})),
|
|
33034
|
-
|
|
33035
|
-
|
|
33036
|
-
// ? this.duplexOptions.find(
|
|
33037
|
-
// (option) => option.id === this.selectedProperties.duplexmode
|
|
33038
|
-
// ).id
|
|
33039
|
-
// : null
|
|
33040
|
-
// }
|
|
33041
|
-
disabled: !this.selectedPrinterConfig.DuplexSupported }), h("ezp-select", { label: i18next.t('printer_selection.size'), icon: "size", placeholder: i18next.t('printer_selection.select_size'), toggleFlow: "horizontal", optionFlow: "horizontal", options: this.selectedPrinterConfig.PaperFormats.map((format) => ({
|
|
33040
|
+
})), preSelected: this.selectedPrinter.id && this.selectedProperties.duplex
|
|
33041
|
+
? this.duplexOptions.find((option) => option.id === this.selectedProperties.duplexmode).id
|
|
33042
|
+
: null, disabled: !this.selectedPrinterConfig.DuplexSupported }), h("ezp-select", { label: i18next.t('printer_selection.size'), icon: "size", placeholder: i18next.t('printer_selection.select_size'), toggleFlow: "horizontal", optionFlow: "horizontal", options: this.selectedPrinterConfig.PaperFormats.map((format) => ({
|
|
33042
33043
|
id: format.Id,
|
|
33043
33044
|
title: format.Name,
|
|
33044
33045
|
meta: `${format.XRes} x ${format.YRes}`,
|
|
33045
33046
|
type: 'format',
|
|
33046
|
-
})),
|
|
33047
|
-
// preSelected={this.selectedProperties.paper ? this.selectedProperties.paper : null}
|
|
33048
|
-
disabled: !(this.selectedPrinterConfig.PaperFormats.length > 0) }), h("ezp-select", { label: i18next.t('printer_selection.orientation'), icon: "orientation", placeholder: i18next.t('printer_selection.select_orientation'), toggleFlow: "horizontal", options: this.selectedPrinterConfig.OrientationsSupported.map((orientation, index) => ({
|
|
33047
|
+
})), preSelected: this.selectedPrinter.id ? this.selectedProperties.paper : null, disabled: !(this.selectedPrinterConfig.PaperFormats.length > 0) }), h("ezp-select", { label: i18next.t('printer_selection.orientation'), icon: "orientation", placeholder: i18next.t('printer_selection.select_orientation'), toggleFlow: "horizontal", options: this.selectedPrinterConfig.OrientationsSupported.map((orientation, index) => ({
|
|
33049
33048
|
id: index + 1,
|
|
33050
33049
|
title: i18next.t(`printer_selection.orientation_${orientation}`),
|
|
33051
33050
|
meta: '',
|
|
33052
33051
|
type: 'orientation',
|
|
33053
|
-
})),
|
|
33054
|
-
// preSelected={
|
|
33055
|
-
// this.selectedProperties.orientation
|
|
33056
|
-
// ? this.selectedProperties.orientation
|
|
33057
|
-
// : null
|
|
33058
|
-
// }
|
|
33059
|
-
disabled: !(this.selectedPrinterConfig.OrientationsSupported.length > 0) }), h("ezp-select", { label: i18next.t('printer_selection.quality'), icon: "quality", placeholder: i18next.t('printer_selection.select_quality'), toggleFlow: "horizontal", options: this.selectedPrinterConfig.Resolutions.map((option, index) => ({
|
|
33052
|
+
})), preSelected: this.selectedPrinter.id ? this.selectedProperties.orientation : null, disabled: !(this.selectedPrinterConfig.OrientationsSupported.length > 0) }), h("ezp-select", { label: i18next.t('printer_selection.quality'), icon: "quality", placeholder: i18next.t('printer_selection.select_quality'), toggleFlow: "horizontal", options: this.selectedPrinterConfig.Resolutions.map((option, index) => ({
|
|
33060
33053
|
id: index,
|
|
33061
33054
|
title: option,
|
|
33062
33055
|
meta: '',
|
|
33063
33056
|
type: 'quality',
|
|
33064
|
-
})),
|
|
33065
|
-
// preSelected={
|
|
33066
|
-
// this.selectedProperties.resolution ? this.selectedProperties.resolution : null
|
|
33067
|
-
// }
|
|
33068
|
-
disabled: !(this.selectedPrinterConfig.Resolutions.length > 0) })), h("ezp-stepper", { label: i18next.t('printer_selection.copies'), max: 10, icon: "copies" })), h("div", { id: "footer" }, h("ezp-text-button", { type: "button", level: "secondary", onClick: this.handleCancel, label: i18next.t('button_actions.cancel') }), h("ezp-text-button", { disabled: this.selectedPrinter.id === '', type: "button", onClick: this.handlePrint, label: i18next.t('button_actions.print') })), !this.hidemenu && h("ezp-user-menu", { open: this.userMenuOpen, name: this.userName }))));
|
|
33057
|
+
})), preSelected: this.selectedPrinter.id ? this.selectedProperties.resolution : null, disabled: !(this.selectedPrinterConfig.Resolutions.length > 0) })), h("ezp-stepper", { label: i18next.t('printer_selection.copies'), max: 10, icon: "copies" })), h("div", { id: "footer" }, h("ezp-text-button", { type: "button", level: "secondary", onClick: this.handleCancel, label: i18next.t('button_actions.cancel') }), 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 && h("ezp-user-menu", { open: this.userMenuOpen, name: this.userName }))));
|
|
33069
33058
|
}
|
|
33070
33059
|
};
|
|
33071
33060
|
EzpPrinterSelection.style = ezpPrinterSelectionCss;
|
|
@@ -33077,7 +33066,7 @@ const config = {
|
|
|
33077
33066
|
printingApiHostUrl: printingApiHostUrl
|
|
33078
33067
|
};
|
|
33079
33068
|
|
|
33080
|
-
const ezpPrintingCss = ":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-color-pink-solid:#f23267;--ezp-color-red-solid:#f23b22;--ezp-color-orange-solid:#fe7200;--ezp-color-green-solid:#5d9200;--ezp-color-cyan-solid:#0091b4;--ezp-color-blue-solid:#4e81f3;--ezp-color-violet-solid:#ae5ef3;--ezp-color-pink-translucent:rgba(242, 50, 103, 0.16);--ezp-color-red-translucent:rgba(242, 59, 34, 0.16);--ezp-color-orange-translucent:rgba(254, 114, 0, 0.16);--ezp-color-green-translucent:rgba(93, 146, 0, 0.16);--ezp-color-cyan-translucent:rgba(0, 145, 180, 0.16);--ezp-color-blue-translucent:rgba(78, 129, 243, 0.16);--ezp-color-violet-translucent:rgba(174, 94, 243, 0.16);--ezp-color-on-theme:white;--ezp-color-surface-primary:white;--ezp-color-surface-secondary:#f3f3f3;--ezp-color-surface-tertiary:white;--ezp-color-shade-primary:rgba(139, 139, 139, 0.1);--ezp-color-shade-secondary:rgba(139, 139, 139, 0.16);--ezp-color-shade-tertiary:rgba(139, 139, 139, 0.22);--ezp-color-foreground-primary:rgba(0, 0, 0, 0.94);--ezp-color-foreground-secondary:rgba(62, 62, 62, 0.68);--ezp-color-foreground-tertiary:rgba(62, 62, 62, 0.42);--ezp-color-outline:rgba(99, 99, 99, 0.16);--ezp-color-overlay-primary:rgba(0, 0, 0, 0.26);--ezp-color-overlay-secondary:rgba(0, 0, 0, 0.16);--ezp-color-shadow:rgba(0, 0, 0, 0.06)}@media (color-gamut: p3){@supports (color: color(display-p3 1 1 1)){:host(.light){--ezp-color-pink-solid:color(display-p3 0.949 0.196 0.404/100%);--ezp-color-red-solid:color(display-p3 0.949 0.231 0.133/100%);--ezp-color-orange-solid:color(display-p3 0.996 0.447 0/100%);--ezp-color-green-solid:color(display-p3 0.365 0.573 0/100%);--ezp-color-cyan-solid:color(display-p3 0 0.569 0.706/100%);--ezp-color-blue-solid:color(display-p3 0.306 0.506 0.953/100%);--ezp-color-violet-solid:color(display-p3 0.682 0.369 0.953/100%);--ezp-color-pink-translucent:color(display-p3 0.949 0.196 0.404/16%);--ezp-color-red-translucent:color(display-p3 0.949 0.231 0.133/16%);--ezp-color-orange-translucent:color(display-p3 0.996 0.447 0/16%);--ezp-color-green-translucent:color(display-p3 0.365 0.573 0/16%);--ezp-color-cyan-translucent:color(display-p3 0 0.569 0.706/16%);--ezp-color-blue-translucent:color(display-p3 0.306 0.506 0.953/16%);--ezp-color-violet-translucent:color(display-p3 0.682 0.369 0.953/16%);--ezp-color-on-theme:color(display-p3 1 1 1/100%);--ezp-color-surface-primary:color(display-p3 1 1 1/100%);--ezp-color-surface-secondary:color(display-p3 0.953 0.953 0.953/100%);--ezp-color-surface-tertiary:color(display-p3 1 1 1/100%);--ezp-color-shade-primary:color(display-p3 0.545 0.545 0.545/10%);--ezp-color-shade-secondary:color(display-p3 0.545 0.545 0.545/16%);--ezp-color-shade-tertiary:color(display-p3 0.545 0.545 0.545/22%);--ezp-color-foreground-primary:color(display-p3 0 0 0/94%);--ezp-color-foreground-secondary:color(display-p3 0.243 0.243 0.243/68%);--ezp-color-foreground-tertiary:color(display-p3 0.243 0.243 0.243/42%);--ezp-color-outline:color(display-p3 0.388 0.388 0.388/16%);--ezp-color-overlay-primary:color(display-p3 0 0 0/26%);--ezp-color-overlay-secondary:color(display-p3 0 0 0/16%);--ezp-color-shadow:color(display-p3 0 0 0/6%)}}}:host(.dark){--ezp-dialog-box-boxShadow:inset 0 0 0 1px var(--ezp-color-outline),\n 0 0 0 1px var(--ezp-color-overlay-secondary);--ezp-printerSelection-body-boxShadow:inset 1px 0 0 0 var(--ezp-color-outline),\n inset -1px 0 0 0 var(--ezp-color-outline);--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-boxShadowPosition:inset 0 0 0 1px;--ezp-stepper-boxShadowPosition:inset 0 0 0 1px;--ezp-userMenu-boxShadowPosition:inset 0 0 0 1px;--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}:host(.dark){--ezp-color-pink-solid:#ff4171;--ezp-color-red-solid:#ff482c;--ezp-color-orange-solid:#ff811c;--ezp-color-green-solid:#679c15;--ezp-color-cyan-solid:#209bbf;--ezp-color-blue-solid:#5b8bff;--ezp-color-violet-solid:#ba69ff;--ezp-color-pink-translucent:rgba(255, 65, 113, 0.26);--ezp-color-red-translucent:rgba(255, 72, 44, 0.26);--ezp-color-orange-translucent:rgba(255, 129, 28, 0.26);--ezp-color-green-translucent:rgba(103, 156, 21, 0.26);--ezp-color-cyan-translucent:rgba(32, 155, 191, 0.26);--ezp-color-blue-translucent:rgba(91, 139, 255, 0.26);--ezp-color-violet-translucent:rgba(186, 105, 255, 0.26);--ezp-color-on-theme:white;--ezp-color-surface-primary:black;--ezp-color-surface-secondary:#1b1b1b;--ezp-color-surface-tertiary:#282828;--ezp-color-shade-primary:rgba(99, 99, 99, 0.26);--ezp-color-shade-secondary:rgba(99, 99, 99, 0.32);--ezp-color-shade-tertiary:rgba(99, 99, 99, 0.38);--ezp-color-foreground-primary:rgba(255, 255, 255, 0.94);--ezp-color-foreground-secondary:rgba(182, 182, 182, 0.68);--ezp-color-foreground-tertiary:rgba(182, 182, 182, 0.42);--ezp-color-outline:rgba(139, 139, 139, 0.26);--ezp-color-overlay-primary:rgba(0, 0, 0, 0.68);--ezp-color-overlay-secondary:rgba(0, 0, 0, 0.42);--ezp-color-shadow:rgba(0, 0, 0, 0.1)}@media (color-gamut: p3){@supports (color: color(display-p3 1 1 1)){:host(.dark){--ezp-color-pink-solid:color(display-p3 1 0.255 0.443/100%);--ezp-color-red-solid:color(display-p3 1 0.282 0.173/100%);--ezp-color-orange-solid:color(display-p3 1 0.506 0.11/100%);--ezp-color-green-solid:color(display-p3 0.404 0.612 0.082/100%);--ezp-color-cyan-solid:color(display-p3 0.125 0.608 0.749/100%);--ezp-color-blue-solid:color(display-p3 0.357 0.545 1/100%);--ezp-color-violet-solid:color(display-p3 0.729 0.412 1/100%);--ezp-color-pink-translucent:color(display-p3 1 0.255 0.443/26%);--ezp-color-red-translucent:color(display-p3 1 0.282 0.173/26%);--ezp-color-orange-translucent:color(display-p3 1 0.506 0.11/26%);--ezp-color-green-translucent:color(display-p3 0.404 0.612 0.082/26%);--ezp-color-cyan-translucent:color(display-p3 0.125 0.608 0.749/26%);--ezp-color-blue-translucent:color(display-p3 0.357 0.545 1/26%);--ezp-color-violet-translucent:color(display-p3 0.729 0.412 1/26%);--ezp-color-on-theme:color(display-p3 1 1 1/100%);--ezp-color-surface-primary:color(display-p3 0 0 0/100%);--ezp-color-surface-secondary:color(display-p3 0.106 0.106 0.106/100%);--ezp-color-surface-tertiary:color(display-p3 0.157 0.157 0.157/100%);--ezp-color-shade-primary:color(display-p3 0.388 0.388 0.388/26%);--ezp-color-shade-secondary:color(display-p3 0.388 0.388 0.388/32%);--ezp-color-shade-tertiary:color(display-p3 0.388 0.388 0.388/38%);--ezp-color-foreground-primary:color(display-p3 1 1 1/94%);--ezp-color-foreground-secondary:color(display-p3 0.714 0.714 0.714/68%);--ezp-color-foreground-tertiary:color(display-p3 0.714 0.714 0.714/42%);--ezp-color-outline:color(display-p3 0.545 0.545 0.545/26%);--ezp-color-overlay-primary:color(display-p3 0 0 0/68%);--ezp-color-overlay-secondary:color(display-p3 0 0 0/42%);--ezp-color-shadow:color(display-p3 0 0 0/10%)}}}:host(.blue){--ezp-color-theme-solid:var(--ezp-color-blue-solid);--ezp-color-theme-translucent:var(--ezp-color-blue-translucent)}:host(.cyan){--ezp-color-theme-solid:var(--ezp-color-cyan-solid);--ezp-color-theme-translucent:var(--ezp-color-cyan-translucent)}:host(.green){--ezp-color-theme-solid:var(--ezp-color-green-solid);--ezp-color-theme-translucent:var(--ezp-color-green-translucent)}:host(.orange){--ezp-color-theme-solid:var(--ezp-color-orange-solid);--ezp-color-theme-translucent:var(--ezp-color-orange-translucent)}:host(.pink){--ezp-color-theme-solid:var(--ezp-color-pink-solid);--ezp-color-theme-translucent:var(--ezp-color-pink-translucent)}:host(.red){--ezp-color-theme-solid:var(--ezp-color-red-solid);--ezp-color-theme-translucent:var(--ezp-color-red-translucent)}:host(.violet){--ezp-color-theme-solid:var(--ezp-color-violet-solid);--ezp-color-theme-translucent:var(--ezp-color-violet-translucent)}";
|
|
33069
|
+
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)}";
|
|
33081
33070
|
|
|
33082
33071
|
let EzpPrinting = class {
|
|
33083
33072
|
constructor(hostRef) {
|
|
@@ -33095,6 +33084,7 @@ let EzpPrinting = class {
|
|
|
33095
33084
|
/** Description... */
|
|
33096
33085
|
this.printOpen = false;
|
|
33097
33086
|
this.authOpen = false;
|
|
33087
|
+
this.onlyGetSasUri = false;
|
|
33098
33088
|
this.noDocumentOpen = false;
|
|
33099
33089
|
}
|
|
33100
33090
|
/**
|
|
@@ -33115,7 +33105,11 @@ let EzpPrinting = class {
|
|
|
33115
33105
|
this.authOpen = false;
|
|
33116
33106
|
}
|
|
33117
33107
|
listenAuthSuccess() {
|
|
33118
|
-
if (this.
|
|
33108
|
+
if (this.onlyGetSasUri) {
|
|
33109
|
+
this.printOpen = false;
|
|
33110
|
+
this.onlyGetSasUri = false;
|
|
33111
|
+
}
|
|
33112
|
+
else if (this.filename != '') {
|
|
33119
33113
|
this.printOpen = true;
|
|
33120
33114
|
}
|
|
33121
33115
|
else {
|
|
@@ -33164,11 +33158,16 @@ let EzpPrinting = class {
|
|
|
33164
33158
|
this.printOpen = false;
|
|
33165
33159
|
}
|
|
33166
33160
|
async getSasUri() {
|
|
33161
|
+
this.onlyGetSasUri = true;
|
|
33167
33162
|
const printService = new EzpPrintService(this.redirecturi, this.clientid);
|
|
33168
|
-
|
|
33169
|
-
|
|
33170
|
-
|
|
33171
|
-
|
|
33163
|
+
let response = await printService.prepareFileUpload(authStore.state.accessToken).catch(() => {
|
|
33164
|
+
this.open();
|
|
33165
|
+
return null;
|
|
33166
|
+
});
|
|
33167
|
+
if (response) {
|
|
33168
|
+
const sasUri = response.sasUri;
|
|
33169
|
+
return sasUri;
|
|
33170
|
+
}
|
|
33172
33171
|
}
|
|
33173
33172
|
checkAuth() {
|
|
33174
33173
|
const printService = new EzpPrintService(this.redirecturi, this.clientid);
|
|
@@ -33237,12 +33236,12 @@ let EzpPrinting = class {
|
|
|
33237
33236
|
render() {
|
|
33238
33237
|
return (h(Host, { class: `${userStore.state.theme} ${userStore.state.appearance === 'system'
|
|
33239
33238
|
? this.systemAppearance
|
|
33240
|
-
: userStore.state.appearance}` }, this.authOpen ? (h("ezp-auth", { clientID: this.clientid, redirectURI: this.redirecturi, hidelogin: this.hidelogin })) : 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" })) : 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() })))));
|
|
33239
|
+
: userStore.state.appearance}` }, this.authOpen ? (h("ezp-auth", { clientID: this.clientid, redirectURI: this.redirecturi, hidelogin: this.hidelogin, trigger: this.trigger })) : 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, 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() })))));
|
|
33241
33240
|
}
|
|
33242
33241
|
};
|
|
33243
33242
|
EzpPrinting.style = ezpPrintingCss;
|
|
33244
33243
|
|
|
33245
|
-
const ezpSelectCss = ":host{--ezp-select-duration:var(--ezp-duration-3);display:block;height:var(--ezp-select-toggle-height);position:relative;-webkit-transition:var(--ezp-select-transition, z-index 0s var(--ezp-select-duration));transition:var(--ezp-select-transition, z-index 0s var(--ezp-select-duration));z-index:var(--ezp-select-zIndex, 3)}:host(:first-child){--ezp-select-wrap-borderRadius:3px 3px 0 0}:host(:last-child){--ezp-select-wrap-borderRadius:0 0 3px 3px}:host(:first-child:last-child){--ezp-select-wrap-borderRadius:3px}:host(:not(:last-child):not(.is-expanded)){--ezp-select-wrap-boxShadowPositionBottom:0 0 0 0}:host(.toggle-horizontal){--ezp-select-label-alignSelf:start;--ezp-select-toggle-gridTemplateAreas:\"label value accessory\";--ezp-select-toggle-gridTemplateColumns:1fr repeat(2, auto);--ezp-select-toggle-height:30px;--ezp-select-toggle-gridTemplateRows:auto;--ezp-select-value-alignSelf:end}:host(.toggle-horizontal.has-icon){--ezp-select-toggle-gridTemplateAreas:\"icon label value accessory\";--ezp-select-toggle-gridTemplateColumns:auto 1fr repeat(2, auto)}:host(.toggle-vertical){--ezp-select-label-alignSelf:center;--ezp-select-toggle-gridTemplateAreas:\"label accessory\" \"value accessory\";--ezp-select-toggle-gridTemplateColumns:1fr auto;--ezp-select-toggle-height:48px;--ezp-select-toggle-gridTemplateRows:repeat(2, auto);--ezp-select-value-alignSelf:center}:host(.toggle-vertical.has-icon){--ezp-select-toggle-gridTemplateAreas:\"icon label accessory\" \"icon value accessory\";--ezp-select-toggle-gridTemplateColumns:auto 1fr auto}:host(.option-horizontal){--ezp-select-details-gridTemplateColumns:repeat(2, 1fr);--ezp-select-details-gridTemplateRows:auto;--ezp-select-option-height:30px}:host(.option-vertical){--ezp-select-details-gridTemplateColumns:1fr;--ezp-select-details-gridTemplateRows:repeat(2, auto);--ezp-select-option-height:48px}:host(.is-expanded){--ezp-select-accessory-color:var(--ezp-
|
|
33244
|
+
const ezpSelectCss = ":host{--ezp-select-duration:var(--ezp-duration-3);display:block;height:var(--ezp-select-toggle-height);position:relative;-webkit-transition:var(--ezp-select-transition, z-index 0s var(--ezp-select-duration));transition:var(--ezp-select-transition, z-index 0s var(--ezp-select-duration));z-index:var(--ezp-select-zIndex, 3)}:host(:first-child){--ezp-select-wrap-borderRadius:3px 3px 0 0}:host(:last-child){--ezp-select-wrap-borderRadius:0 0 3px 3px}:host(:first-child:last-child){--ezp-select-wrap-borderRadius:3px}:host(:not(:last-child):not(.is-expanded)){--ezp-select-wrap-boxShadowPositionBottom:0 0 0 0}:host(.toggle-horizontal){--ezp-select-label-alignSelf:start;--ezp-select-toggle-gridTemplateAreas:\"label value accessory\";--ezp-select-toggle-gridTemplateColumns:1fr repeat(2, auto);--ezp-select-toggle-height:30px;--ezp-select-toggle-gridTemplateRows:auto;--ezp-select-value-alignSelf:end}:host(.toggle-horizontal.has-icon){--ezp-select-toggle-gridTemplateAreas:\"icon label value accessory\";--ezp-select-toggle-gridTemplateColumns:auto 1fr repeat(2, auto)}:host(.toggle-vertical){--ezp-select-label-alignSelf:center;--ezp-select-toggle-gridTemplateAreas:\"label accessory\" \"value accessory\";--ezp-select-toggle-gridTemplateColumns:1fr auto;--ezp-select-toggle-height:48px;--ezp-select-toggle-gridTemplateRows:repeat(2, auto);--ezp-select-value-alignSelf:center}:host(.toggle-vertical.has-icon){--ezp-select-toggle-gridTemplateAreas:\"icon label accessory\" \"icon value accessory\";--ezp-select-toggle-gridTemplateColumns:auto 1fr auto}:host(.option-horizontal){--ezp-select-details-gridTemplateColumns:repeat(2, 1fr);--ezp-select-details-gridTemplateRows:auto;--ezp-select-option-height:30px}:host(.option-vertical){--ezp-select-details-gridTemplateColumns:1fr;--ezp-select-details-gridTemplateRows:repeat(2, auto);--ezp-select-option-height:48px}:host(.is-expanded){--ezp-select-accessory-color:var(--ezp-theme-solid);--ezp-select-transition:z-index 0s 0s;--ezp-select-zIndex:9999;--ezp-select-icon-color:var(--ezp-theme-solid);--ezp-select-label-color:var(--ezp-theme-solid);--ezp-select-wrap-borderRadius:3px}:host(.disabled){--ezp-select-accessory-color:var(--ezp-core-foreground-tertiary);--ezp-select-icon-color:var(--ezp-core-foreground-tertiary);--ezp-select-label-color:var(--ezp-core-foreground-tertiary);--ezp-select-toggle-background-hover:transparent;--ezp-select-toggle-cursor:default;--value-color:var(--ezp-core-foreground-tertiary)}#wrap{background:var(--ezp-core-surface-tertiary);border-radius:var(--ezp-select-wrap-borderRadius, 0);-webkit-box-shadow:var(--ezp-select-wrap-boxShadowPositionTop, 0 -1px 0 0) var(--ezp-core-outline), var(--ezp-select-wrap-boxShadowPositionRight, 1px 0 0 0) var(--ezp-core-outline), var(--ezp-select-wrap-boxShadowPositionBottom, 0 1px 0 0) var(--ezp-core-outline), var(--ezp-select-wrap-boxShadowPositionLeft, -1px 0 0 0) var(--ezp-core-outline);box-shadow:var(--ezp-select-wrap-boxShadowPositionTop, 0 -1px 0 0) var(--ezp-core-outline), var(--ezp-select-wrap-boxShadowPositionRight, 1px 0 0 0) var(--ezp-core-outline), var(--ezp-select-wrap-boxShadowPositionBottom, 0 1px 0 0) var(--ezp-core-outline), var(--ezp-select-wrap-boxShadowPositionLeft, -1px 0 0 0) var(--ezp-core-outline);-webkit-transform:translateY(var(--ezp-select-wrap-translateY, 0));transform:translateY(var(--ezp-select-wrap-translateY, 0));-webkit-transition:border-radius var(--ezp-select-duration) var(--ezp-easing-out-quart), -webkit-transform var(--ezp-select-duration) var(--ezp-easing-out-quart), -webkit-box-shadow var(--ezp-select-duration) var(--ezp-easing-out-quart);transition:border-radius var(--ezp-select-duration) var(--ezp-easing-out-quart), -webkit-transform var(--ezp-select-duration) var(--ezp-easing-out-quart), -webkit-box-shadow var(--ezp-select-duration) var(--ezp-easing-out-quart);transition:transform var(--ezp-select-duration) var(--ezp-easing-out-quart), border-radius var(--ezp-select-duration) var(--ezp-easing-out-quart), box-shadow var(--ezp-select-duration) var(--ezp-easing-out-quart);transition:transform var(--ezp-select-duration) var(--ezp-easing-out-quart), border-radius var(--ezp-select-duration) var(--ezp-easing-out-quart), box-shadow var(--ezp-select-duration) var(--ezp-easing-out-quart), -webkit-transform var(--ezp-select-duration) var(--ezp-easing-out-quart), -webkit-box-shadow var(--ezp-select-duration) var(--ezp-easing-out-quart)}#toggle{background:var(--ezp-select-toggle-background, transparent);-webkit-box-sizing:border-box;box-sizing:border-box;cursor:var(--ezp-select-toggle-cursor, pointer);display:grid;gap:var(--ezp-spacing-2) var(--ezp-spacing-3);grid-template-areas:var(--ezp-select-toggle-gridTemplateAreas, none);grid-template-columns:var(--ezp-select-toggle-gridTemplateColumns, none);grid-template-rows:var(--ezp-select-toggle-gridTemplateRows, auto);height:var(--ezp-select-toggle-height, auto);padding:var(--ezp-spacing-3)}#toggle:hover{--ezp-select-toggle-background:var(\n --ezp-select-toggle-background-hover,\n var(--ezp-core-shade-primary)\n )}#icon{align-self:center;color:var(--ezp-select-icon-color, var(--ezp-core-foreground-secondary));grid-area:icon;margin:calc(var(--ezp-spacing-2) * -1) 0}#label{align-self:var(--ezp-select-label-alignSelf, auto);color:var(--ezp-select-label-color, var(--ezp-core-foreground-secondary));grid-area:label}#value{align-self:var(--ezp-select-value-alignSelf, auto);color:var(--value-color, var(--ezp-core-foreground-primary));grid-area:value}#accessory{align-self:center;color:var(--ezp-select-accessory-color, var(--ezp-core-foreground-secondary));grid-area:accessory;margin:calc(var(--ezp-spacing-2) * -1) 0}#list{-webkit-box-shadow:inset 0 1px 0 0 var(--ezp-core-outline);box-shadow:inset 0 1px 0 0 var(--ezp-core-outline);height:var(--ezp-select-list-height, 0);overflow:auto;-webkit-transition:height var(--ezp-select-duration) var(--ezp-easing-out-quart);transition:height var(--ezp-select-duration) var(--ezp-easing-out-quart)}.option{background:var(--ezp-select-option-background);-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:grid;gap:var(--ezp-spacing-3);grid-template:auto/auto 1fr;height:var(--ezp-select-option-height, auto);padding:0 0 0 var(--ezp-spacing-3)}.option:not(:last-child){--ezp-select-details-boxShadow:inset 0 -1px 0 0 var(--ezp-core-outline)}.option:hover{--ezp-select-option-background:var(--ezp-core-shade-primary)}.option:active{--ezp-select-option-background:var(--ezp-core-shade-secondary)}.option.is-selected{--ezp-select-indicator-opacity:1;--ezp-select-indicator-transform:translateX(0);--ezp-select-indicator-transition:opacity var(--ezp-select-duration)\n var(--ezp-easing-out-quart),\n transform var(--ezp-select-duration) var(--ezp-easing-out-quart), visibility 0s 0s;--ezp-select-indicator-visibility:visible}.indicator{-ms-flex-item-align:center;align-self:center;color:var(--ezp-theme-solid);margin:calc(var(--ezp-spacing-2) * -1) 0;opacity:var(--ezp-select-indicator-opacity, 0);-webkit-transform:var(--ezp-select-indicator-transform, translateX(var(--ezp-spacing-3)));transform:var(--ezp-select-indicator-transform, translateX(var(--ezp-spacing-3)));-webkit-transition:var(--ezp-select-indicator-transition, opacity var(--ezp-select-duration) var(--ezp-easing-out-quart), transform var(--ezp-select-duration) var(--ezp-easing-out-quart), visibility 0s var(--ezp-select-duration));transition:var(--ezp-select-indicator-transition, opacity var(--ezp-select-duration) var(--ezp-easing-out-quart), transform var(--ezp-select-duration) var(--ezp-easing-out-quart), visibility 0s var(--ezp-select-duration));visibility:var(--ezp-select-indicator-visibility, hidden)}.details{-webkit-box-shadow:var(--ezp-select-details-boxShadow);box-shadow:var(--ezp-select-details-boxShadow);display:grid;gap:var(--ezp-spacing-2);grid-template-columns:var(--ezp-select-details-gridTemplateColumns, 1fr);grid-template-rows:var(--ezp-select-details-gridTemplateRows, auto);padding:var(--ezp-spacing-3) var(--ezp-spacing-3) var(--ezp-spacing-3) 0}.title{-ms-flex-item-align:start;align-self:start;color:var(--ezp-core-foreground-primary)}.meta{-ms-flex-item-align:end;align-self:end;color:var(--ezp-core-foreground-secondary)}";
|
|
33246
33245
|
|
|
33247
33246
|
let EzpSelect = class {
|
|
33248
33247
|
constructor(hostRef) {
|
|
@@ -33297,8 +33296,6 @@ let EzpSelect = class {
|
|
|
33297
33296
|
const delay = this.selected.id === id ? 0 : this.duration * 1000;
|
|
33298
33297
|
this.selected = this.options.find((option) => option.id === id);
|
|
33299
33298
|
this.selectSelection.emit(this.selected);
|
|
33300
|
-
// console.log('ezp-select:')
|
|
33301
|
-
// console.log(this.selected)
|
|
33302
33299
|
window.setTimeout(() => {
|
|
33303
33300
|
this.toggle();
|
|
33304
33301
|
}, delay);
|
|
@@ -33349,7 +33346,7 @@ let EzpSelect = class {
|
|
|
33349
33346
|
this.backdrop.addEventListener('backdropHideEnd', () => {
|
|
33350
33347
|
this.container.removeChild(this.backdrop);
|
|
33351
33348
|
});
|
|
33352
|
-
if (this.preSelected) {
|
|
33349
|
+
if (this.preSelected !== undefined && this.preSelected !== '' && this.preSelected !== null) {
|
|
33353
33350
|
this.preSelect();
|
|
33354
33351
|
}
|
|
33355
33352
|
}
|
|
@@ -33359,7 +33356,10 @@ let EzpSelect = class {
|
|
|
33359
33356
|
this.duration = parseFloat(styles.getPropertyValue('--ezp-select-duration'));
|
|
33360
33357
|
}
|
|
33361
33358
|
componentWillUpdate() {
|
|
33362
|
-
if (
|
|
33359
|
+
if (this.selected.id === false &&
|
|
33360
|
+
this.preSelected !== undefined &&
|
|
33361
|
+
this.preSelected !== '' &&
|
|
33362
|
+
this.preSelected !== null) {
|
|
33363
33363
|
this.preSelect();
|
|
33364
33364
|
}
|
|
33365
33365
|
}
|
|
@@ -33390,7 +33390,7 @@ let EzpSelect = class {
|
|
|
33390
33390
|
};
|
|
33391
33391
|
EzpSelect.style = ezpSelectCss;
|
|
33392
33392
|
|
|
33393
|
-
const ezpStatusCss = ":host{-ms-flex-align:center;align-items:center;background:var(--ezp-
|
|
33393
|
+
const ezpStatusCss = ":host{-ms-flex-align:center;align-items:center;background:var(--ezp-core-backdrop);border-radius:6px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;height:100%;-ms-flex-pack:center;justify-content:center;left:0;padding:var(--ezp-spacing-6);position:absolute;top:0;width:100%;z-index:9999}@media (prefers-color-scheme: dark){:host{--box-separator-position:inset 0 0 0 var(--hairline-width-positive)}}#box{--ezp-icon-fill:var(--ezp-theme-solid);-ms-flex-align:center;align-items:center;background:var(--ezp-core-surface-tertiary);border-radius:3px;-webkit-box-shadow:var(--ezp-status-box-boxShadow, 0 0 0 1px var(--ezp-black-10));box-shadow:var(--ezp-status-box-boxShadow, 0 0 0 1px var(--ezp-black-10));display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:var(--ezp-spacing-4);padding:var(--ezp-spacing-4) var(--ezp-spacing-5)}#indicator{-webkit-animation:rotate var(--ezp-duration-6) linear infinite;animation:rotate var(--ezp-duration-6) linear infinite;display:block;height:42px;-webkit-transform:rotate(0);transform:rotate(0);width:42px}#track{fill:none;stroke:var(--ezp-core-outline);stroke-width:4px}#value{-webkit-animation:offset var(--ezp-duration-6) linear alternate infinite;animation:offset var(--ezp-duration-6) linear alternate infinite;fill:none;stroke:var(--ezp-theme-solid);stroke-dasharray:110;stroke-dashoffset:110;stroke-linecap:round;stroke-width:4px}#description{color:var(--ezp-core-foreground-primary)}#footer{display:-ms-flexbox;display:flex;gap:var(--ezp-spacing-2)}@-webkit-keyframes offset{100%{stroke-dashoffset:55}}@keyframes offset{100%{stroke-dashoffset:55}}@-webkit-keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}";
|
|
33394
33394
|
|
|
33395
33395
|
let EzpStatus = class {
|
|
33396
33396
|
constructor(hostRef) {
|
|
@@ -33433,12 +33433,12 @@ let EzpStatus = class {
|
|
|
33433
33433
|
*
|
|
33434
33434
|
*/
|
|
33435
33435
|
render() {
|
|
33436
|
-
return (h(Host, null, h("div", { id: "box" }, this.processing ? (h("svg", { id: "indicator", viewBox: "0 0 42 42", xmlns: "http://www.w3.org/2000/svg" }, h("circle", { id: "track", cx: "21", cy: "21", r: "18" }), h("circle", { id: "value", cx: "21", cy: "21", r: "18" }))) : this.icon ? (h("ezp-icon", { name: this.icon, framed: true })) : null, h("ezp-label", { id: "description", level: "tertiary", weight: "strong", text: this.description }), h("div", { id: "footer" }, this.cancel && (h("ezp-text-button", { level: "secondary", small: true, onClick: this.handleCancel, label: typeof this.cancel === 'string' ? this.cancel : i18next.t('button_actions.cancel') })), this.close && (h("ezp-text-button", { level: this.retry ? 'secondary' : 'primary', small: true, onClick: this.handleClose, label: typeof this.close === 'string' ? this.close : i18next.t('button_actions.close') })), this.retry && (h("ezp-text-button", { level: "primary", small: true, onClick: this.handleRetry, label: typeof this.retry === 'string' ? this.retry : i18next.t('button_actions.retry') }))
|
|
33436
|
+
return (h(Host, null, h("div", { id: "box" }, this.processing ? (h("svg", { id: "indicator", viewBox: "0 0 42 42", xmlns: "http://www.w3.org/2000/svg" }, h("circle", { id: "track", cx: "21", cy: "21", r: "18" }), h("circle", { id: "value", cx: "21", cy: "21", r: "18" }))) : this.icon ? (h("ezp-icon", { name: this.icon, framed: true })) : null, h("ezp-label", { id: "description", level: "tertiary", weight: "strong", text: this.description }), (this.cancel || this.close || this.retry) && (h("div", { id: "footer" }, this.cancel && (h("ezp-text-button", { level: "secondary", small: true, onClick: this.handleCancel, label: typeof this.cancel === 'string' ? this.cancel : i18next.t('button_actions.cancel') })), this.close && (h("ezp-text-button", { level: this.retry ? 'secondary' : 'primary', small: true, onClick: this.handleClose, label: typeof this.close === 'string' ? this.close : i18next.t('button_actions.close') })), this.retry && (h("ezp-text-button", { level: "primary", small: true, onClick: this.handleRetry, label: typeof this.retry === 'string' ? this.retry : i18next.t('button_actions.retry') })))))));
|
|
33437
33437
|
}
|
|
33438
33438
|
};
|
|
33439
33439
|
EzpStatus.style = ezpStatusCss;
|
|
33440
33440
|
|
|
33441
|
-
const ezpStepperCss = ":host{-ms-flex-align:center;align-items:center;background:var(--ezp-
|
|
33441
|
+
const ezpStepperCss = ":host{-ms-flex-align:center;align-items:center;background:var(--ezp-core-surface-tertiary);border-radius:3px;-webkit-box-shadow:var(--ezp-stepper-boxShadowPosition, 0 0 0 1px) var(--ezp-core-outline);box-shadow:var(--ezp-stepper-boxShadowPosition, 0 0 0 1px) var(--ezp-core-outline);display:grid;gap:var(--ezp-spacing-3);grid-template:var(--ezp-stepper-gridTemplate, auto/auto 1fr auto);padding:0 var(--ezp-spacing-2) 0 var(--ezp-spacing-3);position:relative;z-index:0}:host(.focused){--ezp-stepper-icon-color:var(--ezp-theme-solid);--ezp-stepper-label-color:var(--ezp-theme-solid)}:host(.has-icon){--ezp-stepper-gridTemplate:auto / repeat(2, auto) 1fr auto}#toggle{background:var(--ezp-stepper-toggle-background, transparent);border-radius:3px;cursor:pointer;height:100%;left:0;position:absolute;top:0;width:100%;z-index:-1}@media (hover: hover){#toggle:hover{--ezp-stepper-toggle-background:var(--ezp-core-shade-primary)}}#icon{color:var(--ezp-stepper-icon-color, var(--ezp-core-foreground-secondary));pointer-events:none}#label{color:var(--ezp-stepper-label-color, var(--ezp-core-foreground-secondary));pointer-events:none}#input{-moz-appearance:textfield;-webkit-appearance:none;appearance:none;background:transparent;border:0;border-radius:3px;-webkit-box-shadow:none;box-shadow:none;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--ezp-core-foreground-primary);cursor:inherit;font-family:inherit;-webkit-font-feature-settings:\"tnum\";font-feature-settings:\"tnum\";font-size:14px;-webkit-font-smoothing:antialiased;height:30px;letter-spacing:-0.0062235443em;margin:0;outline:none;padding:0;pointer-events:none;text-align:right;width:100%}#input::-webkit-outer-spin-button,#input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.buttons{display:-ms-flexbox;display:flex}.button{-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--ezp-stepper-button-background, transparent);border:0;border-radius:50%;-webkit-box-shadow:none;box-shadow:none;color:var(--ezp-stepper-button-color, var(--ezp-theme-solid));cursor:var(--ezp-stepper-button-cursor, pointer);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0;outline:none;padding:var(--ezp-spacing-1)}@media (hover: hover){.button:not(:disabled):hover{--ezp-stepper-button-background:var(--ezp-core-shade-primary)}.button:not(:disabled):active{--ezp-stepper-button-background:var(--ezp-core-shade-secondary)}}.button:disabled{--ezp-stepper-button-color:var(--ezp-core-foreground-tertiary);--ezp-stepper-button-cursor:default}";
|
|
33442
33442
|
|
|
33443
33443
|
let EzpStepper = class {
|
|
33444
33444
|
constructor(hostRef) {
|
|
@@ -33517,7 +33517,7 @@ let EzpStepper = class {
|
|
|
33517
33517
|
};
|
|
33518
33518
|
EzpStepper.style = ezpStepperCss;
|
|
33519
33519
|
|
|
33520
|
-
const ezpTextButtonCss = ":host{display:-ms-flexbox;display:flex}:host(.primary){--ezp-textButton-background-disabled:var(--ezp-
|
|
33520
|
+
const ezpTextButtonCss = ":host{display:-ms-flexbox;display:flex}:host(.primary){--ezp-textButton-background-disabled:var(--ezp-core-shade-primary);--ezp-textButton-background-init:var(--ezp-theme-solid);--ezp-textButton-color-disabled:var(--ezp-core-foreground-tertiary);--ezp-textButton-color-init:var(--ezp-white-100);--ezp-textButton-opacity-active:0.74;--ezp-textButton-opacity-hover:0.84}:host(.secondary){--ezp-textButton-background-active:var(--ezp-core-shade-tertiary);--ezp-textButton-background-disabled:var(--ezp-core-shade-primary);--ezp-textButton-background-hover:var(--ezp-core-shade-secondary);--ezp-textButton-background-init:var(--ezp-core-shade-primary);--ezp-textButton-color-disabled:var(--ezp-core-foreground-tertiary);--ezp-textButton-color-init:var(--ezp-theme-solid)}:host(.tertiary){--ezp-textButton-background-active:var(--ezp-core-shade-secondary);--ezp-textButton-background-disabled:transparent;--ezp-textButton-background-hover:var(--ezp-core-shade-primary);--ezp-textButton-background-init:transparent;--ezp-textButton-color-disabled:var(--ezp-core-foreground-tertiary);--ezp-textButton-color-init:var(--ezp-theme-solid)}#button{-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--ezp-textButton-background, var(--ezp-textButton-background-init));border:0;border-radius:3px;-webkit-box-shadow:none;box-shadow:none;color:var(--ezp-textButton-color, var(--ezp-textButton-color-init));cursor:var(--ezp-textButton-cursor, pointer);display:-ms-flexbox;display:flex;font-family:inherit;-ms-flex-pack:center;justify-content:center;margin:0;opacity:var(--ezp-textButton-opacity, 1);outline:none;padding:var(--ezp-spacing-3);white-space:nowrap;width:100%}@media (hover: hover){#button:not(:disabled):hover{--ezp-textButton-background:var(\n --ezp-textButton-background-hover,\n var(--ezp-textButton-background-init)\n );--ezp-textButton-opacity:var(--ezp-textButton-opacity-hover, 1)}#button:not(:disabled):active{--ezp-textButton-background:var(\n --ezp-textButton-background-active,\n var(--ezp-textButton-background-init)\n );--ezp-textButton-opacity:var(--ezp-textButton-opacity-active, 1)}}#button:disabled{--ezp-textButton-background:var(--ezp-textButton-background-disabled);--ezp-textButton-color:var(--ezp-textButton-color-disabled);--ezp-textButton-cursor:default}#label{pointer-events:none}";
|
|
33521
33521
|
|
|
33522
33522
|
let EzpTextButton = class {
|
|
33523
33523
|
constructor(hostRef) {
|
|
@@ -33557,7 +33557,7 @@ let EzpTextButton = class {
|
|
|
33557
33557
|
};
|
|
33558
33558
|
EzpTextButton.style = ezpTextButtonCss;
|
|
33559
33559
|
|
|
33560
|
-
const ezpUploadCss = ":host{-ms-flex-line-pack:center;align-content:center;background:var(--ezp-upload-background, transparent);border:1px dashed var(--ezp-upload-border-color, var(--ezp-
|
|
33560
|
+
const ezpUploadCss = ":host{-ms-flex-line-pack:center;align-content:center;background:var(--ezp-upload-background, transparent);border:1px dashed var(--ezp-upload-border-color, var(--ezp-core-foreground-tertiary));border-radius:3px;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--ezp-core-foreground-primary);display:grid;grid-template:auto/minmax(auto, 280px);height:var(--ezp-upload-height, auto);-ms-flex-pack:center;justify-content:center;padding:var(--ezp-spacing-3);position:relative;-webkit-transition:background-color var(--ezp-duration-3) var(--ezp-easing-out-quart), border-color var(--ezp-duration-3) var(--ezp-easing-out-quart);transition:background-color var(--ezp-duration-3) var(--ezp-easing-out-quart), border-color var(--ezp-duration-3) var(--ezp-easing-out-quart);width:var(--ezp-upload-width, auto)}:host(.dragging){--ezp-upload-background:var(--ezp-theme-translucent);--ezp-upload-border-color:var(--ezp-theme-translucent);--ezp-upload-header-blur:16px;--ezp-upload-header-opacity:0.42}#header{--ezp-icon-fill:var(--ezp-theme-solid);-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-webkit-filter:blur(var(--ezp-upload-header-blur, 0));filter:blur(var(--ezp-upload-header-blur, 0));-ms-flex-direction:column;flex-direction:column;gap:var(--ezp-spacing-5);opacity:var(--ezp-upload-header-opacity, 1);text-align:center;-webkit-transition:opacity var(--ezp-duration-3) var(--ezp-easing-out-quart), -webkit-filter var(--ezp-duration-3) var(--ezp-easing-out-quart);transition:opacity var(--ezp-duration-3) var(--ezp-easing-out-quart), -webkit-filter var(--ezp-duration-3) var(--ezp-easing-out-quart);transition:filter var(--ezp-duration-3) var(--ezp-easing-out-quart), opacity var(--ezp-duration-3) var(--ezp-easing-out-quart);transition:filter var(--ezp-duration-3) var(--ezp-easing-out-quart), opacity var(--ezp-duration-3) var(--ezp-easing-out-quart), -webkit-filter var(--ezp-duration-3) var(--ezp-easing-out-quart)}#meta{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--ezp-spacing-3) 3px;-ms-flex-pack:center;justify-content:center}#select{color:var(--ezp-theme-solid);cursor:pointer;opacity:var(--ezp-upload-select-opacity, 1);text-decoration:underline;white-space:nowrap}@media (hover: hover){#select:hover{--ezp-upload-select-opacity:0.58}}#input{-webkit-appearance:none;-moz-appearance:none;appearance:none;height:0;opacity:0;pointer-events:none;position:absolute;width:0}";
|
|
33561
33561
|
|
|
33562
33562
|
let EzpUpload = class {
|
|
33563
33563
|
constructor(hostRef) {
|
|
@@ -33600,12 +33600,8 @@ let EzpUpload = class {
|
|
|
33600
33600
|
this.dragging = false;
|
|
33601
33601
|
this.uploadFile.emit(event.dataTransfer.files);
|
|
33602
33602
|
}
|
|
33603
|
-
|
|
33604
|
-
|
|
33605
|
-
* Lifecycle methods
|
|
33606
|
-
*
|
|
33607
|
-
*/
|
|
33608
|
-
componentWillLoad() {
|
|
33603
|
+
listenPrintCancel() {
|
|
33604
|
+
this.form.reset();
|
|
33609
33605
|
}
|
|
33610
33606
|
/**
|
|
33611
33607
|
*
|
|
@@ -33613,12 +33609,12 @@ let EzpUpload = class {
|
|
|
33613
33609
|
*
|
|
33614
33610
|
*/
|
|
33615
33611
|
render() {
|
|
33616
|
-
return (h(Host, { class: { dragging: this.dragging } }, h("
|
|
33612
|
+
return (h(Host, { class: { dragging: this.dragging } }, h("form", { id: "form", ref: (form) => (this.form = form) }, h("div", { id: "header" }, h("ezp-icon", { name: "drag-drop", size: "huge", framed: true }), h("ezp-label", { weight: "strong", text: i18next.t('upload.description') }), h("div", { id: "meta" }, h("ezp-label", { level: "tertiary", text: i18next.t('upload.meta_leading') }), h("label", { htmlFor: "input", id: "select" }, h("ezp-label", { level: "tertiary", weight: "strong", text: i18next.t('upload.meta_select') })), h("input", { type: "file", name: "input", id: "input", ref: (input) => (this.input = input), onInput: this.handleInput }), h("ezp-label", { level: "tertiary", text: i18next.t('upload.meta_trailing') }))))));
|
|
33617
33613
|
}
|
|
33618
33614
|
};
|
|
33619
33615
|
EzpUpload.style = ezpUploadCss;
|
|
33620
33616
|
|
|
33621
|
-
const ezpUserMenuCss = ":host{background:var(--ezp-
|
|
33617
|
+
const ezpUserMenuCss = ":host{background:var(--ezp-core-surface-tertiary);border-radius:6px;-webkit-box-shadow:var(--ezp-userMenu-boxShadow, 0 0 0 1px var(--ezp-black-10));box-shadow:var(--ezp-userMenu-boxShadow, 0 0 0 1px var(--ezp-black-10));display:block;opacity:var(--ezp-userMenu-opacity, 0);position:absolute;right:0;top:0;-webkit-transform:scale(var(--ezp-userMenu-scale, 0.94, 0.94));transform:scale(var(--ezp-userMenu-scale, 0.94, 0.94));-webkit-transform-origin:right top;transform-origin:right top;-webkit-transition:var(--ezp-userMenu-transition, opacity var(--ezp-duration-3) var(--ezp-easing-out-quart), transform var(--ezp-duration-3) var(--ezp-easing-out-quart), visibility 0s var(--ezp-duration-3));transition:var(--ezp-userMenu-transition, opacity var(--ezp-duration-3) var(--ezp-easing-out-quart), transform var(--ezp-duration-3) var(--ezp-easing-out-quart), visibility 0s var(--ezp-duration-3));visibility:var(--ezp-userMenu-visibility, hidden);z-index:5}:host(.is-open){--ezp-userMenu-opacity:1;--ezp-userMenu-scale:1, 1;--ezp-userMenu-transition:opacity var(--ezp-duration-3) var(--ezp-easing-out-quart),\n transform var(--ezp-duration-3) var(--ezp-easing-out-quart), visibility 0s 0s;--ezp-userMenu-visibility:visible}@media (prefers-color-scheme: dark){:host{--ezp-userMenu-separator-position:inset 0 0 0 var(--hairline-width-positive)}}#header{-ms-flex-align:center;align-items:center;-webkit-box-shadow:var(--ezp-userMenu-header-boxShadowPosition, 0 1px 0 0) var(--ezp-core-outline);box-shadow:var(--ezp-userMenu-header-boxShadowPosition, 0 1px 0 0) var(--ezp-core-outline);-webkit-box-shadow:0;box-shadow:0;display:grid;grid-template:auto/1fr auto;padding:var(--ezp-spacing-4) var(--ezp-spacing-3) var(--ezp-spacing-4) var(--ezp-spacing-4)}#name{color:var(--ezp-core-foreground-primary)}#close{margin:calc(var(--ezp-spacing-3) * -1) 0}#links{-webkit-box-shadow:var(--ezp-userMenu-links-boxShadowPosition, 0 1px 0 0) var(--ezp-core-outline);box-shadow:var(--ezp-userMenu-links-boxShadowPosition, 0 1px 0 0) var(--ezp-core-outline);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:var(--ezp-spacing-2)}.link{-ms-flex-align:center;align-items:center;background:var(--ezp-userMenu-link-background, transparent);border-radius:3px;color:var(--ezp-core-foreground-primary);cursor:pointer;display:grid;gap:var(--ezp-spacing-3);grid-template:auto/auto 1fr;padding:var(--ezp-spacing-3);text-decoration:none}.link:hover{--ezp-userMenu-link-background:var(--ezp-core-shade-primary)}.link__icon{color:var(--ezp-theme-solid);margin:calc(var(--ezp-spacing-2) * -1) 0}.caption{color:var(--ezp-core-foreground-primary)}#theme{-webkit-box-shadow:var(--ezp-userMenu-theme-boxShadowPosition, 0 1px 0 0) var(--ezp-core-outline);box-shadow:var(--ezp-userMenu-theme-boxShadowPosition, 0 1px 0 0) var(--ezp-core-outline);display:grid;gap:var(--ezp-spacing-3);grid-template:repeat(2, auto)/1fr;padding:var(--ezp-spacing-4) var(--ezp-spacing-4) var(--ezp-spacing-3)}#swatches{display:-ms-flexbox;display:flex;margin:0 calc(var(--ezp-spacing-2) * -1)}.swatch{-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--ezp-userMenu-swatch-background, transparent);border:0;border-radius:50%;color:var(--ezp-userMenu-swatch-color);cursor:var(--ezp-userMenu-swatch-cursor, pointer);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0;opacity:var(--ezp-userMenu-swatch-opacity, 1);outline:none;padding:var(--ezp-spacing-2)}@media (hover: hover){.swatch:not(.selected):hover{--ezp-userMenu-swatch-background:var(--ezp-userMenu-swatch-theme-translucent)}.swatch:not(.selected):active{--ezp-userMenu-swatch-opacity:0.74}}.swatch.selected{--ezp-userMenu-dot-boxShadowSize:10px;--ezp-userMenu-swatch-background:var(--ezp-userMenu-swatch-theme-translucent);--ezp-userMenu-swatch-cursor:normal}.swatch.selected>.dot{-webkit-animation:dot-bounce var(--ezp-duration-2) ease-in-out;animation:dot-bounce var(--ezp-duration-2) ease-in-out}.swatch--blue{--ezp-userMenu-swatch-theme-solid:var(--ezp-accent-blue-solid);--ezp-userMenu-swatch-theme-translucent:var(--ezp-accent-blue-translucent)}.swatch--cyan{--ezp-userMenu-swatch-theme-solid:var(--ezp-accent-cyan-solid);--ezp-userMenu-swatch-theme-translucent:var(--ezp-accent-cyan-translucent)}.swatch--green{--ezp-userMenu-swatch-theme-solid:var(--ezp-accent-green-solid);--ezp-userMenu-swatch-theme-translucent:var(--ezp-accent-green-translucent)}.swatch--teal{--ezp-userMenu-swatch-theme-solid:var(--ezp-accent-teal-solid);--ezp-userMenu-swatch-theme-translucent:var(--ezp-accent-teal-translucent)}.swatch--orange{--ezp-userMenu-swatch-theme-solid:var(--ezp-accent-orange-solid);--ezp-userMenu-swatch-theme-translucent:var(--ezp-accent-orange-translucent)}.swatch--pink{--ezp-userMenu-swatch-theme-solid:var(--ezp-accent-pink-solid);--ezp-userMenu-swatch-theme-translucent:var(--ezp-accent-pink-translucent)}.swatch--red{--ezp-userMenu-swatch-theme-solid:var(--ezp-accent-red-solid);--ezp-userMenu-swatch-theme-translucent:var(--ezp-accent-red-translucent)}.swatch--violet{--ezp-userMenu-swatch-theme-solid:var(--ezp-accent-violet-solid);--ezp-userMenu-swatch-theme-translucent:var(--ezp-accent-violet-translucent)}.dot{background:var(--ezp-userMenu-dot-background, transparent);border-radius:50%;-webkit-box-shadow:inset 0 0 0 var(--ezp-userMenu-dot-boxShadowSize, 4px) var(--ezp-userMenu-swatch-theme-solid);box-shadow:inset 0 0 0 var(--ezp-userMenu-dot-boxShadowSize, 4px) var(--ezp-userMenu-swatch-theme-solid);height:18px;-webkit-transition:-webkit-box-shadow var(--ezp-duration-2);transition:-webkit-box-shadow var(--ezp-duration-2);transition:box-shadow var(--ezp-duration-2);transition:box-shadow var(--ezp-duration-2), -webkit-box-shadow var(--ezp-duration-2);width:18px}#appearance{display:grid;gap:var(--ezp-spacing-3);grid-template:repeat(2, auto)/1fr;padding:var(--ezp-spacing-4) var(--ezp-spacing-4) var(--ezp-spacing-3)}#tabs{display:grid;grid-template:auto/repeat(3, 1fr);margin:0 calc(var(--ezp-spacing-2) * -1)}.tab{--ezp-icon-height:8px;-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--ezp-userMenu-tab-background, transparent);border:0;border-radius:14px;color:var(--ezp-userMenu-tab-color, var(--ezp-core-foreground-secondary));cursor:var(--ezp-userMenu-tab-cursor, pointer);display:-ms-flexbox;display:flex;gap:var(--ezp-spacing-2);-ms-flex-pack:center;justify-content:center;margin:0;outline:none;padding:var(--ezp-spacing-3) var(--ezp-spacing-3) var(--ezp-spacing-3) var(--ezp-spacing-2)}@media (hover: hover){.tab:not(.selected):hover{--ezp-userMenu-tab-background:var(--ezp-core-shade-primary)}.tab:not(.selected):active{--ezp-userMenu-tab-background:var(--ezp-core-shade-secondary)}}.tab.selected{--ezp-userMenu-tab-background:var(--ezp-theme-translucent);--ezp-userMenu-tab-color:var(--ezp-theme-solid);--ezp-userMenu-tab-cursor:normal}@-webkit-keyframes dot-bounce{0%{-webkit-transform:scale(1, 1);transform:scale(1, 1)}50%{-webkit-transform:scale(0.84, 0.84);transform:scale(0.84, 0.84)}100%{-webkit-transform:scale(1, 1);transform:scale(1, 1)}}@keyframes dot-bounce{0%{-webkit-transform:scale(1, 1);transform:scale(1, 1)}50%{-webkit-transform:scale(0.84, 0.84);transform:scale(0.84, 0.84)}100%{-webkit-transform:scale(1, 1);transform:scale(1, 1)}}";
|
|
33622
33618
|
|
|
33623
33619
|
let EzpUserMenu = class {
|
|
33624
33620
|
constructor(hostRef) {
|
|
@@ -33638,7 +33634,7 @@ let EzpUserMenu = class {
|
|
|
33638
33634
|
href: 'https://support.ezeep.com',
|
|
33639
33635
|
},
|
|
33640
33636
|
];
|
|
33641
|
-
this.themes = ['pink', 'red', 'orange', 'green', 'cyan', 'blue', 'violet'];
|
|
33637
|
+
this.themes = ['pink', 'red', 'orange', 'green', 'teal', 'cyan', 'blue', 'violet'];
|
|
33642
33638
|
this.appearances = [
|
|
33643
33639
|
{ title: i18next.t('user_menu.system'), name: 'system' },
|
|
33644
33640
|
{ title: i18next.t('user_menu.light'), name: 'light' },
|