@ezeep/ezeep-js 1.0.151 → 1.0.154

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.
Files changed (100) hide show
  1. package/dist/cjs/ezeep.cjs.js +3 -3
  2. package/dist/cjs/ezp-auth_14.cjs.entry.js +118 -67
  3. package/dist/cjs/{index-62fc857c.js → index-d547be4e.js} +23 -0
  4. package/dist/cjs/loader.cjs.js +3 -3
  5. package/dist/collection/collection-manifest.json +2 -2
  6. package/dist/collection/components/ezp-auth/ezp-auth.js +1 -3
  7. package/dist/collection/components/ezp-dialog/ezp-dialog.js +0 -2
  8. package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.js +87 -52
  9. package/dist/collection/components/ezp-printing/ezp-printing.js +24 -3
  10. package/dist/collection/components/ezp-status/ezp-status.js +0 -2
  11. package/dist/collection/components/ezp-upload/ezp-upload.js +0 -2
  12. package/dist/collection/components/ezp-user-menu/ezp-user-menu.js +0 -2
  13. package/dist/collection/services/auth.js +2 -0
  14. package/dist/collection/utils/utils.js +20 -8
  15. package/dist/components/auth.js +504 -0
  16. package/dist/components/ezp-auth.d.ts +11 -0
  17. package/dist/components/ezp-auth.js +6 -0
  18. package/dist/components/ezp-auth2.js +141 -0
  19. package/dist/components/ezp-backdrop.d.ts +11 -0
  20. package/dist/components/ezp-backdrop.js +6 -0
  21. package/dist/components/ezp-backdrop2.js +46 -0
  22. package/dist/components/ezp-dialog.d.ts +11 -0
  23. package/dist/components/ezp-dialog.js +6 -0
  24. package/dist/components/ezp-dialog2.js +92 -0
  25. package/dist/components/ezp-icon-button.d.ts +11 -0
  26. package/dist/components/ezp-icon-button.js +6 -0
  27. package/dist/components/ezp-icon-button2.js +70 -0
  28. package/dist/components/ezp-icon.d.ts +11 -0
  29. package/dist/components/ezp-icon.js +6 -0
  30. package/dist/components/ezp-icon2.js +58 -0
  31. package/dist/components/ezp-label.d.ts +11 -0
  32. package/dist/components/ezp-label.js +6 -0
  33. package/dist/components/ezp-label2.js +57 -0
  34. package/dist/components/ezp-printer-selection.d.ts +11 -0
  35. package/dist/components/ezp-printer-selection.js +6 -0
  36. package/dist/{custom-elements/index.js → components/ezp-printer-selection2.js} +8225 -12189
  37. package/dist/components/ezp-printing.d.ts +11 -0
  38. package/dist/components/ezp-printing.js +271 -0
  39. package/dist/components/ezp-select.d.ts +11 -0
  40. package/dist/components/ezp-select.js +6 -0
  41. package/dist/components/ezp-select2.js +194 -0
  42. package/dist/components/ezp-status.d.ts +11 -0
  43. package/dist/components/ezp-status.js +6 -0
  44. package/dist/components/ezp-status2.js +94 -0
  45. package/dist/components/ezp-stepper.d.ts +11 -0
  46. package/dist/components/ezp-stepper.js +6 -0
  47. package/dist/components/ezp-stepper2.js +119 -0
  48. package/dist/components/ezp-text-button.d.ts +11 -0
  49. package/dist/components/ezp-text-button.js +6 -0
  50. package/dist/components/ezp-text-button2.js +73 -0
  51. package/dist/components/ezp-upload.d.ts +11 -0
  52. package/dist/components/ezp-upload.js +6 -0
  53. package/dist/components/ezp-upload2.js +95 -0
  54. package/dist/components/ezp-user-menu.d.ts +11 -0
  55. package/dist/components/ezp-user-menu.js +6 -0
  56. package/dist/components/ezp-user-menu2.js +159 -0
  57. package/dist/components/i18next.js +2653 -0
  58. package/dist/components/index.d.ts +26 -0
  59. package/dist/components/index.js +15 -0
  60. package/dist/directives/proxies.ts +2 -2
  61. package/dist/esm/ezeep.js +3 -3
  62. package/dist/esm/ezp-auth_14.entry.js +118 -67
  63. package/dist/esm/{index-265d8cca.js → index-485041ac.js} +23 -0
  64. package/dist/esm/loader.js +3 -3
  65. package/dist/esm/polyfills/css-shim.js +1 -1
  66. package/dist/esm-es5/ezeep.js +1 -1
  67. package/dist/esm-es5/ezp-auth_14.entry.js +3 -3
  68. package/dist/esm-es5/index-485041ac.js +1 -0
  69. package/dist/esm-es5/loader.js +1 -1
  70. package/dist/ezeep/ezeep.esm.js +1 -1
  71. package/dist/ezeep/ezeep.js +1 -1
  72. package/dist/ezeep/p-0b51d725.system.entry.js +21 -0
  73. package/dist/ezeep/{p-a7b7b386.entry.js → p-b6ec69dc.entry.js} +2 -2
  74. package/dist/ezeep/p-cc2bb341.system.js +1 -0
  75. package/dist/ezeep/p-d4dae139.system.js +1 -0
  76. package/dist/ezeep/{p-f3065800.js → p-fa808a39.js} +0 -0
  77. package/dist/types/components/ezp-printer-selection/ezp-printer-selection.d.ts +1 -1
  78. package/dist/types/components/ezp-printing/ezp-printing.d.ts +1 -0
  79. package/dist/types/components.d.ts +2 -0
  80. package/dist/types/stencil-public-runtime.d.ts +6 -4
  81. package/dist/types/utils/utils.d.ts +1 -1
  82. package/package.json +4 -4
  83. package/readme.md +1 -0
  84. package/www/build/ezeep.esm.js +1 -1
  85. package/www/build/ezeep.js +1 -1
  86. package/www/build/p-0b51d725.system.entry.js +21 -0
  87. package/www/build/{p-a7b7b386.entry.js → p-b6ec69dc.entry.js} +2 -2
  88. package/www/build/p-cc2bb341.system.js +1 -0
  89. package/www/build/p-d4dae139.system.js +1 -0
  90. package/www/build/{p-f3065800.js → p-fa808a39.js} +0 -0
  91. package/www/data/locales/en.json +6 -1
  92. package/www/index.html +1 -1
  93. package/dist/custom-elements/index.d.ts +0 -123
  94. package/dist/esm-es5/index-265d8cca.js +0 -1
  95. package/dist/ezeep/p-98ec6965.system.js +0 -1
  96. package/dist/ezeep/p-a1b0d17a.system.entry.js +0 -21
  97. package/dist/ezeep/p-f89804ee.system.js +0 -1
  98. package/www/build/p-98ec6965.system.js +0 -1
  99. package/www/build/p-a1b0d17a.system.entry.js +0 -21
  100. package/www/build/p-f89804ee.system.js +0 -1
@@ -0,0 +1,26 @@
1
+ /* ezeep custom elements */
2
+
3
+ import type { Components, JSX } from "../types/components";
4
+
5
+ /**
6
+ * Used to manually set the base path where assets can be found.
7
+ * If the script is used as "module", it's recommended to use "import.meta.url",
8
+ * such as "setAssetPath(import.meta.url)". Other options include
9
+ * "setAssetPath(document.currentScript.src)", or using a bundler's replace plugin to
10
+ * dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".
11
+ * But do note that this configuration depends on how your script is bundled, or lack of
12
+ * bunding, and where your assets can be loaded from. Additionally custom bundling
13
+ * will have to ensure the static assets are copied to its build directory.
14
+ */
15
+ export declare const setAssetPath: (path: string) => void;
16
+
17
+ export interface SetPlatformOptions {
18
+ raf?: (c: FrameRequestCallback) => number;
19
+ ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
20
+ rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
21
+ }
22
+ export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
23
+
24
+ export type { Components, JSX };
25
+
26
+ export * from '../types';
@@ -0,0 +1,15 @@
1
+ export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
2
+
3
+ const appGlobalScript = async () => {
4
+ const font = new FontFace('Inter', 'url(https://rsms.me/inter/font-files/Inter-roman.var.woff2)', {
5
+ style: 'normal',
6
+ weight: '400 600',
7
+ });
8
+ font.load().then(() => {
9
+ document.fonts.add(font);
10
+ });
11
+ };
12
+
13
+ const globalScripts = appGlobalScript;
14
+
15
+ globalScripts();
@@ -166,14 +166,14 @@ export class EzpPrinterSelection {
166
166
 
167
167
  export declare interface EzpPrinting extends Components.EzpPrinting {}
168
168
  @ProxyCmp({
169
- inputs: ['appearance', 'authapihosturl', 'clientid', 'custom', 'fileid', 'filename', 'filetype', 'fileurl', 'hidelogin', 'hidemenu', 'printapihosturl', 'redirecturi', 'theme', 'trigger'],
169
+ inputs: ['appearance', 'authapihosturl', 'clientid', 'custom', 'fileid', 'filename', 'filetype', 'fileurl', 'hidelogin', 'hidemenu', 'language', 'printapihosturl', 'redirecturi', 'theme', 'trigger'],
170
170
  methods: ['open']
171
171
  })
172
172
  @Component({
173
173
  selector: 'ezp-printing',
174
174
  changeDetection: ChangeDetectionStrategy.OnPush,
175
175
  template: '<ng-content></ng-content>',
176
- inputs: ['appearance', 'authapihosturl', 'clientid', 'custom', 'fileid', 'filename', 'filetype', 'fileurl', 'hidelogin', 'hidemenu', 'printapihosturl', 'redirecturi', 'theme', 'trigger']
176
+ inputs: ['appearance', 'authapihosturl', 'clientid', 'custom', 'fileid', 'filename', 'filetype', 'fileurl', 'hidelogin', 'hidemenu', 'language', 'printapihosturl', 'redirecturi', 'theme', 'trigger']
177
177
  })
178
178
  export class EzpPrinting {
179
179
  protected el: HTMLElement;
package/dist/esm/ezeep.js CHANGED
@@ -1,8 +1,8 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-265d8cca.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-485041ac.js';
2
2
  import { g as globalScripts } from './app-globals-28960cbc.js';
3
3
 
4
4
  /*
5
- Stencil Client Patch Browser v2.11.0 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Patch Browser v2.14.0 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  const patchBrowser = () => {
8
8
  const importMeta = import.meta.url;
@@ -15,5 +15,5 @@ const patchBrowser = () => {
15
15
 
16
16
  patchBrowser().then(options => {
17
17
  globalScripts();
18
- return bootstrapLazy([["ezp-auth_14",[[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],"printOpen":[32],"authOpen":[32],"noDocumentOpen":[32],"systemAppearance":[32],"open":[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],"options":[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],"previouslySelectedProperties":[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],"auth":[32],"authURI":[32],"accessToken":[32]},[[0,"dialogAction","listenDialogAction"],[0,"dialogClose","listenDialogClose"]]],[1,"ezp-upload",{"dragging":[32]},[[1,"dragenter","handleDragEnter"],[0,"dragover","handleDragOver"],[1,"dragleave","handleDragLeave"],[0,"drop","handleDrop"]]],[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);
18
+ return bootstrapLazy([["ezp-auth_14",[[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],"printOpen":[32],"authOpen":[32],"noDocumentOpen":[32],"systemAppearance":[32],"open":[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],"options":[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],"auth":[32],"authURI":[32],"accessToken":[32]},[[0,"dialogAction","listenDialogAction"],[0,"dialogClose","listenDialogClose"]]],[1,"ezp-upload",{"dragging":[32]},[[1,"dragenter","handleDragEnter"],[0,"dragover","handleDragOver"],[1,"dragleave","handleDragLeave"],[0,"drop","handleDrop"]]],[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
19
  });
@@ -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-265d8cca.js';
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-485041ac.js';
2
2
 
3
3
  const appendToMap = (map, propName, value) => {
4
4
  const items = map.get(propName);
@@ -2922,6 +2922,9 @@ const printer_selection = {
2922
2922
  orientation: "Orientation",
2923
2923
  size: "Paper Size",
2924
2924
  duplex: "Double-sided",
2925
+ duplex_none: "None",
2926
+ duplex_long: "Long edge binding",
2927
+ duplex_short: "Short edge binding",
2925
2928
  quality: "Print Quality",
2926
2929
  select_printer: "Select a printer",
2927
2930
  select_color: "Select Color/Grayscale",
@@ -2934,7 +2937,8 @@ const printer_selection = {
2934
2937
  orientation_portrait: "Portrait",
2935
2938
  orientation_landscape: "Landscape",
2936
2939
  unknown_location: "Unknown location",
2937
- no_printers: "No printers found."
2940
+ no_printers: "No printers found.",
2941
+ copies: "Copies"
2938
2942
  };
2939
2943
  const button_actions = {
2940
2944
  login: "Sign In",
@@ -2973,7 +2977,7 @@ function encodeFormData(data) {
2973
2977
  .map((key) => encodeURIComponent(key) + '=' + encodeURIComponent(data[key]))
2974
2978
  .join('&');
2975
2979
  }
2976
- function initi18n() {
2980
+ function initi18n(language) {
2977
2981
  const resources = {
2978
2982
  en: {
2979
2983
  translation: translationsEN,
@@ -2982,13 +2986,25 @@ function initi18n() {
2982
2986
  translation: translationsDE,
2983
2987
  },
2984
2988
  };
2985
- i18next.init({
2986
- resources,
2987
- lng: navigator.language,
2988
- // allow keys to be phrases having `:`, `.`
2989
- nsSeparator: false,
2990
- fallbackLng: 'en',
2991
- });
2989
+ // override browserlanguage if language is provided
2990
+ if (language != '') {
2991
+ i18next.init({
2992
+ resources,
2993
+ lng: language,
2994
+ // allow keys to be phrases having `:`, `.`
2995
+ nsSeparator: false,
2996
+ fallbackLng: 'en',
2997
+ });
2998
+ }
2999
+ else {
3000
+ i18next.init({
3001
+ resources,
3002
+ lng: navigator.language,
3003
+ // allow keys to be phrases having `:`, `.`
3004
+ nsSeparator: false,
3005
+ fallbackLng: 'en',
3006
+ });
3007
+ }
2992
3008
  }
2993
3009
  const poll = async ({ fn, validate, interval, maxAttempts }) => {
2994
3010
  let attempts = 0;
@@ -3056,6 +3072,7 @@ class EzpAuthorizationService {
3056
3072
  }
3057
3073
  getAccessToken() {
3058
3074
  return fetch(this.accessTokenURL, {
3075
+ credentials: 'include',
3059
3076
  headers: {
3060
3077
  Authorization: 'Basic ' + btoa(this.clientID + ':'),
3061
3078
  'Content-Type': 'application/x-www-form-urlencoded',
@@ -3089,6 +3106,7 @@ class EzpAuthorizationService {
3089
3106
  }
3090
3107
  refreshTokens() {
3091
3108
  fetch(this.accessTokenURL, {
3109
+ credentials: 'include',
3092
3110
  headers: {
3093
3111
  Authorization: 'Basic ' + btoa(this.clientID + ':'),
3094
3112
  'Content-Type': 'application/x-www-form-urlencoded',
@@ -3189,13 +3207,12 @@ let EzpAuth = class {
3189
3207
  }
3190
3208
  receiveMessage(event) {
3191
3209
  this.auth.code = event.data;
3192
- this.auth.getAccessToken().finally(() => {
3210
+ this.auth.getAccessToken().then(() => {
3193
3211
  this.authCancel.emit();
3194
3212
  this.authSuccess.emit();
3195
3213
  });
3196
3214
  }
3197
3215
  async componentWillLoad() {
3198
- initi18n();
3199
3216
  this.auth = new EzpAuthorizationService(this.redirectURI, this.clientID);
3200
3217
  if (authStore.state.isAuthorized === false) {
3201
3218
  this.auth.generateCodeVerifier();
@@ -3265,7 +3282,6 @@ let EzpDialog = class {
3265
3282
  *
3266
3283
  */
3267
3284
  componentWillLoad() {
3268
- initi18n();
3269
3285
  }
3270
3286
  /**
3271
3287
  *
@@ -32679,15 +32695,15 @@ let EzpPrinterSelection = class {
32679
32695
  this.duplexOptions = [
32680
32696
  {
32681
32697
  id: 1,
32682
- title: 'None',
32698
+ title: i18next.t('printer_selection.duplex_none'),
32683
32699
  },
32684
32700
  {
32685
32701
  id: 2,
32686
- title: 'Long edge binding',
32702
+ title: i18next.t('printer_selection.duplex_long'),
32687
32703
  },
32688
32704
  {
32689
32705
  id: 3,
32690
- title: 'Short edge binding',
32706
+ title: i18next.t('printer_selection.duplex_short'),
32691
32707
  },
32692
32708
  ];
32693
32709
  this.hidemenu = false;
@@ -32725,16 +32741,6 @@ let EzpPrinterSelection = class {
32725
32741
  copies: '',
32726
32742
  resolution: '',
32727
32743
  };
32728
- this.previouslySelectedProperties = {
32729
- paper: '',
32730
- paperid: '',
32731
- color: false,
32732
- duplex: false,
32733
- duplexmode: '',
32734
- orientation: '',
32735
- copies: '',
32736
- resolution: '',
32737
- };
32738
32744
  /**
32739
32745
  *
32740
32746
  * Private methods
@@ -32779,6 +32785,10 @@ let EzpPrinterSelection = class {
32779
32785
  }
32780
32786
  })
32781
32787
  .then((data) => {
32788
+ if (data.code === 804) {
32789
+ this.printFailed = true;
32790
+ this.printProcessing = false;
32791
+ }
32782
32792
  if (data.jobid) {
32783
32793
  printStore.state.jobID = data.jobid;
32784
32794
  poll({
@@ -32788,15 +32798,19 @@ let EzpPrinterSelection = class {
32788
32798
  maxAttempts: 10,
32789
32799
  }).catch((err) => {
32790
32800
  console.warn(err);
32801
+ this.printFailed = true;
32802
+ this.printProcessing = false;
32791
32803
  });
32792
32804
  }
32793
32805
  else {
32794
32806
  this.printFailed = true;
32807
+ this.printProcessing = false;
32795
32808
  }
32796
32809
  })
32797
32810
  .catch((error) => {
32798
32811
  console.log(error);
32799
32812
  this.printFailed = true;
32813
+ this.printProcessing = false;
32800
32814
  });
32801
32815
  }
32802
32816
  if (this.file) {
@@ -32804,7 +32818,6 @@ let EzpPrinterSelection = class {
32804
32818
  }
32805
32819
  localStorage.setItem('properties', JSON.stringify(this.selectedProperties));
32806
32820
  localStorage.setItem('printer', JSON.stringify(this.selectedPrinter));
32807
- localStorage.setItem('previouslySelectedProperties', JSON.stringify(this.previouslySelectedProperties));
32808
32821
  this.printStopped = false;
32809
32822
  };
32810
32823
  this.handleUserMenu = () => {
@@ -32876,9 +32889,6 @@ let EzpPrinterSelection = class {
32876
32889
  else {
32877
32890
  this.selectedPrinter = { id: '', location: '', name: '' };
32878
32891
  }
32879
- if (localStorage.getItem('previouslySelectedProperties')) {
32880
- this.previouslySelectedProperties = JSON.parse(localStorage.getItem('previouslySelectedProperties'));
32881
- }
32882
32892
  }
32883
32893
  getUserInfo() {
32884
32894
  const userService = new EzpUserService();
@@ -32895,24 +32905,20 @@ let EzpPrinterSelection = class {
32895
32905
  await this.printService
32896
32906
  .getPrinterProperties(authStore.state.accessToken, this.selectedPrinter.id)
32897
32907
  .then((data) => (this.selectedPrinterConfig = data[0]));
32908
+ this.setDefaultPaperFormat();
32898
32909
  break;
32899
32910
  case 'color':
32900
32911
  this.selectedProperties.color = !!eventDetails.id;
32901
- this.previouslySelectedProperties.color = eventDetails.title;
32902
32912
  break;
32903
32913
  case 'orientation':
32904
32914
  this.selectedProperties.orientation = eventDetails.id;
32905
- this.previouslySelectedProperties.orientation = eventDetails.title;
32906
32915
  break;
32907
32916
  case 'format':
32908
32917
  this.selectedProperties.paper = eventDetails.title;
32909
32918
  this.selectedProperties.paperid = eventDetails.id;
32910
- this.previouslySelectedProperties.paper = eventDetails.title;
32911
- this.previouslySelectedProperties.paperid = eventDetails.id;
32912
32919
  break;
32913
32920
  case 'quality':
32914
32921
  this.selectedProperties.resolution = eventDetails.title;
32915
- this.previouslySelectedProperties.resolution = eventDetails.title;
32916
32922
  break;
32917
32923
  case 'duplex':
32918
32924
  if (eventDetails.title === 'None') {
@@ -32922,7 +32928,6 @@ let EzpPrinterSelection = class {
32922
32928
  this.selectedProperties.duplex = true;
32923
32929
  }
32924
32930
  this.selectedProperties.duplexmode = eventDetails.id;
32925
- this.previouslySelectedProperties.duplexmode = eventDetails.id;
32926
32931
  break;
32927
32932
  }
32928
32933
  }
@@ -32947,6 +32952,10 @@ let EzpPrinterSelection = class {
32947
32952
  this.printService
32948
32953
  .printByFileID(authStore.state.accessToken, this.fileid, this.filetype, this.selectedPrinter.id, this.selectedProperties, this.filename)
32949
32954
  .then((data) => {
32955
+ if (data.code === 804) {
32956
+ this.printFailed = true;
32957
+ this.printProcessing = false;
32958
+ }
32950
32959
  if (data.jobid) {
32951
32960
  printStore.state.jobID = data.jobid;
32952
32961
  poll({
@@ -32957,21 +32966,40 @@ let EzpPrinterSelection = class {
32957
32966
  }).catch((err) => {
32958
32967
  console.log(err);
32959
32968
  this.printFailed = true;
32969
+ this.printProcessing = false;
32960
32970
  });
32961
32971
  }
32962
32972
  else {
32963
32973
  this.printFailed = true;
32974
+ this.printProcessing = false;
32964
32975
  }
32965
32976
  })
32966
32977
  .catch((error) => {
32967
32978
  console.log(error);
32968
32979
  this.printFailed = true;
32980
+ this.printProcessing = false;
32969
32981
  });
32970
32982
  }
32971
32983
  else {
32972
32984
  this.printFailed = true;
32985
+ this.printProcessing = false;
32973
32986
  }
32974
32987
  }
32988
+ setDefaultPaperFormat() {
32989
+ let format;
32990
+ const language = navigator.language;
32991
+ if (language === 'en-US') {
32992
+ format = 'Letter';
32993
+ }
32994
+ else if (language === 'my') {
32995
+ format = 'Letter';
32996
+ }
32997
+ else {
32998
+ format = 'A4';
32999
+ }
33000
+ this.selectedProperties.paper = this.selectedPrinterConfig.PaperFormats.find((el) => el.Name === format).Name;
33001
+ this.selectedProperties.paperid = this.selectedPrinterConfig.PaperFormats.find((el) => el.Name === format).Id;
33002
+ }
32975
33003
  /**
32976
33004
  *
32977
33005
  * Lifecycle methods
@@ -32979,11 +33007,19 @@ let EzpPrinterSelection = class {
32979
33007
  */
32980
33008
  /** Description... */
32981
33009
  async componentWillLoad() {
32982
- initi18n();
32983
33010
  this.loading = true;
32984
33011
  this.getPropertiesFromLocalStorage();
32985
33012
  this.getUserInfo();
32986
33013
  this.printService = new EzpPrintService(this.redirectURI, this.clientID);
33014
+ // if printer is stored from previous print, get the config to enable property selection
33015
+ if (this.selectedPrinter.id != '') {
33016
+ await this.printService
33017
+ .getPrinterProperties(authStore.state.accessToken, this.selectedPrinter.id)
33018
+ .then((data) => (this.selectedPrinterConfig = data[0]));
33019
+ if (this.selectedProperties.paper === '') {
33020
+ this.setDefaultPaperFormat();
33021
+ }
33022
+ }
32987
33023
  await (await this.printService.getConfig(authStore.state.accessToken))
32988
33024
  .json()
32989
33025
  .then((response) => {
@@ -33028,7 +33064,9 @@ let EzpPrinterSelection = class {
33028
33064
  ? printer.location
33029
33065
  : i18next.t('printer_selection.unknown_location'),
33030
33066
  type: 'printer',
33031
- })), preSelected: this.selectedPrinter ? 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
33067
+ })),
33068
+ // preSelected={this.selectedPrinter ? this.selectedPrinter.name : null}
33069
+ 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
33032
33070
  ? [
33033
33071
  {
33034
33072
  id: 1,
@@ -33052,11 +33090,25 @@ let EzpPrinterSelection = class {
33052
33090
  },
33053
33091
  ],
33054
33092
  // preSelected={
33055
- // this.previouslySelectedProperties.color
33056
- // ? this.previouslySelectedProperties.color
33057
- // : this.selectedPrinterConfig.Color
33058
- // ? i18next.t('printer_selection.color_grayscale')
33059
- // : null
33093
+ // this.selectedProperties.color ?
33094
+ // [
33095
+ // {
33096
+ // id: 1,
33097
+ // title: i18next.t('printer_selection.color'),
33098
+ // meta: '',
33099
+ // type: 'color',
33100
+ // },
33101
+ // ]
33102
+ // : !this.selectedProperties.color ?
33103
+ // [
33104
+ // {
33105
+ // id: 0,
33106
+ // title: i18next.t('printer_selection.color_grayscale'),
33107
+ // meta: '',
33108
+ // type: 'color',
33109
+ // },
33110
+ // ]
33111
+ // : null
33060
33112
  // }
33061
33113
  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) => ({
33062
33114
  id: option.id,
@@ -33065,10 +33117,10 @@ let EzpPrinterSelection = class {
33065
33117
  type: 'duplex',
33066
33118
  })),
33067
33119
  // preSelected={
33068
- // this.previouslySelectedProperties.duplex
33069
- // ? this.previouslySelectedProperties.duplex
33070
- // : this.selectedPrinterConfig.DuplexSupported
33071
- // ? 'None'
33120
+ // this.selectedProperties.duplex
33121
+ // ? this.selectedProperties.duplex
33122
+ // // : this.selectedPrinterConfig.DuplexSupported
33123
+ // // ? 'None'
33072
33124
  // : null
33073
33125
  // }
33074
33126
  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) => ({
@@ -33078,10 +33130,10 @@ let EzpPrinterSelection = class {
33078
33130
  type: 'format',
33079
33131
  })),
33080
33132
  // preSelected={
33081
- // this.previouslySelectedProperties.paper
33082
- // ? this.previouslySelectedProperties.paper
33083
- // : this.selectedPrinterConfig.PaperFormats.length > 0
33084
- // ? this.selectedPrinterConfig.PaperFormats[0].Name
33133
+ // this.selectedProperties.paper
33134
+ // ? this.selectedProperties.paper
33135
+ // // : this.selectedPrinterConfig.PaperFormats.length > 0
33136
+ // // ? this.selectedPrinterConfig.PaperFormats[0].Name
33085
33137
  // : null
33086
33138
  // }
33087
33139
  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) => ({
@@ -33091,12 +33143,12 @@ let EzpPrinterSelection = class {
33091
33143
  type: 'orientation',
33092
33144
  })),
33093
33145
  // preSelected={
33094
- // this.previouslySelectedProperties.orientation
33095
- // ? this.previouslySelectedProperties.orientation
33096
- // : this.selectedPrinterConfig.OrientationsSupported.length > 0
33097
- // ? i18next.t(
33098
- // `printer_selection.orientation_${this.selectedPrinterConfig.OrientationsSupported[0]}`
33099
- // )
33146
+ // this.selectedProperties.orientation
33147
+ // ? this.selectedProperties.orientation
33148
+ // // : this.selectedPrinterConfig.OrientationsSupported.length > 0
33149
+ // // ? i18next.t(
33150
+ // // `printer_selection.orientation_${this.selectedPrinterConfig.OrientationsSupported[0]}`
33151
+ // // )
33100
33152
  // : null
33101
33153
  // }
33102
33154
  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) => ({
@@ -33106,13 +33158,13 @@ let EzpPrinterSelection = class {
33106
33158
  type: 'quality',
33107
33159
  })),
33108
33160
  // preSelected={
33109
- // this.previouslySelectedProperties.resolution
33110
- // ? this.previouslySelectedProperties.resolution
33111
- // : this.selectedPrinterConfig.Resolutions.length > 0
33112
- // ? this.selectedPrinterConfig.Resolutions[0]
33161
+ // this.selectedProperties.resolution
33162
+ // ? this.selectedProperties.resolution
33163
+ // // : this.selectedPrinterConfig.Resolutions.length > 0
33164
+ // // ? this.selectedPrinterConfig.Resolutions[0]
33113
33165
  // : null
33114
33166
  // }
33115
- disabled: !(this.selectedPrinterConfig.Resolutions.length > 0) })), h("ezp-stepper", { label: "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 }))));
33167
+ 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 }))));
33116
33168
  }
33117
33169
  };
33118
33170
  EzpPrinterSelection.style = ezpPrinterSelectionCss;
@@ -33129,9 +33181,11 @@ const ezpPrintingCss = ":host{font-family:\"Inter\", sans-serif;-webkit-font-fea
33129
33181
  let EzpPrinting = class {
33130
33182
  constructor(hostRef) {
33131
33183
  registerInstance(this, hostRef);
33184
+ this.filename = '';
33132
33185
  this.hidemenu = false;
33133
33186
  this.theme = 'cyan';
33134
33187
  this.appearance = 'system';
33188
+ this.language = '';
33135
33189
  /**
33136
33190
  *
33137
33191
  * States
@@ -33160,7 +33214,7 @@ let EzpPrinting = class {
33160
33214
  this.authOpen = false;
33161
33215
  }
33162
33216
  listenAuthSuccess() {
33163
- if (this.filename) {
33217
+ if (this.filename != '') {
33164
33218
  this.printOpen = true;
33165
33219
  }
33166
33220
  else {
@@ -33246,7 +33300,7 @@ let EzpPrinting = class {
33246
33300
  else {
33247
33301
  printStore.state.printApiHostUrl = config.printingApiHostUrl;
33248
33302
  }
33249
- initi18n();
33303
+ initi18n(this.language);
33250
33304
  sendCodeToParentWindow();
33251
33305
  this.checkAuth();
33252
33306
  }
@@ -33445,7 +33499,6 @@ let EzpStatus = class {
33445
33499
  *
33446
33500
  */
33447
33501
  componentWillLoad() {
33448
- initi18n();
33449
33502
  }
33450
33503
  /**
33451
33504
  *
@@ -33626,7 +33679,6 @@ let EzpUpload = class {
33626
33679
  *
33627
33680
  */
33628
33681
  componentWillLoad() {
33629
- initi18n();
33630
33682
  }
33631
33683
  /**
33632
33684
  *
@@ -33708,7 +33760,6 @@ let EzpUserMenu = class {
33708
33760
  *
33709
33761
  */
33710
33762
  componentWillLoad() {
33711
- initi18n();
33712
33763
  this.container = this.component.closest('[data-backdrop-surface]');
33713
33764
  this.backdrop.addEventListener('backdropHideStart', () => {
33714
33765
  this.open = false;
@@ -911,6 +911,29 @@ const then = (promise, thenFn) => {
911
911
  };
912
912
  const addHydratedFlag = (elm) => elm.classList.add('hydrated')
913
913
  ;
914
+ /**
915
+ * Parse a new property value for a given property type.
916
+ *
917
+ * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
918
+ * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
919
+ * 1. `any`, the type given to `propValue` in the function signature
920
+ * 2. the type stored from `propType`.
921
+ *
922
+ * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
923
+ *
924
+ * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
925
+ * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
926
+ * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
927
+ * ```tsx
928
+ * <my-cmp prop-val={0}></my-cmp>
929
+ * ```
930
+ *
931
+ * HTML prop values on the other hand, will always a string
932
+ *
933
+ * @param propValue the new value to coerce to some type
934
+ * @param propType the type of the prop, expressed as a binary number
935
+ * @returns the parsed/coerced value
936
+ */
914
937
  const parsePropertyValue = (propValue, propType) => {
915
938
  // ensure this value is of the correct prop type
916
939
  if (propValue != null && !isComplexType(propValue)) {
@@ -1,8 +1,8 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-265d8cca.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-485041ac.js';
2
2
  import { g as globalScripts } from './app-globals-28960cbc.js';
3
3
 
4
4
  /*
5
- Stencil Client Patch Esm v2.11.0 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Patch Esm v2.14.0 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  const patchEsm = () => {
8
8
  return promiseResolve();
@@ -12,7 +12,7 @@ const defineCustomElements = (win, options) => {
12
12
  if (typeof window === 'undefined') return Promise.resolve();
13
13
  return patchEsm().then(() => {
14
14
  globalScripts();
15
- return bootstrapLazy([["ezp-auth_14",[[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],"printOpen":[32],"authOpen":[32],"noDocumentOpen":[32],"systemAppearance":[32],"open":[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],"options":[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],"previouslySelectedProperties":[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],"auth":[32],"authURI":[32],"accessToken":[32]},[[0,"dialogAction","listenDialogAction"],[0,"dialogClose","listenDialogClose"]]],[1,"ezp-upload",{"dragging":[32]},[[1,"dragenter","handleDragEnter"],[0,"dragover","handleDragOver"],[1,"dragleave","handleDragLeave"],[0,"drop","handleDrop"]]],[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);
15
+ return bootstrapLazy([["ezp-auth_14",[[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],"printOpen":[32],"authOpen":[32],"noDocumentOpen":[32],"systemAppearance":[32],"open":[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],"options":[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],"auth":[32],"authURI":[32],"accessToken":[32]},[[0,"dialogAction","listenDialogAction"],[0,"dialogClose","listenDialogClose"]]],[1,"ezp-upload",{"dragging":[32]},[[1,"dragenter","handleDragEnter"],[0,"dragover","handleDragOver"],[1,"dragleave","handleDragLeave"],[0,"drop","handleDrop"]]],[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);
16
16
  });
17
17
  };
18
18