@ezeep/ezeep-js 1.0.224 → 1.0.226

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 (30) hide show
  1. package/dist/cjs/ezeep.cjs.js +1 -1
  2. package/dist/cjs/ezp-auth_15.cjs.entry.js +48 -8
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/collection/components/ezp-input/ezp-input.js +40 -3
  5. package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.js +15 -6
  6. package/dist/collection/utils/utils.js +29 -0
  7. package/dist/custom-elements/index.js +50 -10
  8. package/dist/directives/proxies.ts +2 -2
  9. package/dist/esm/ezeep.js +1 -1
  10. package/dist/esm/ezp-auth_15.entry.js +48 -8
  11. package/dist/esm/loader.js +1 -1
  12. package/dist/esm-es5/ezeep.js +1 -1
  13. package/dist/esm-es5/ezp-auth_15.entry.js +2 -2
  14. package/dist/esm-es5/loader.js +1 -1
  15. package/dist/ezeep/ezeep.esm.js +1 -1
  16. package/dist/ezeep/{p-ae73a226.entry.js → p-0d6efa1d.entry.js} +2 -2
  17. package/dist/ezeep/p-84bd195a.system.js +1 -1
  18. package/dist/ezeep/{p-f344770c.system.entry.js → p-f5a002c3.system.entry.js} +3 -3
  19. package/dist/types/components/ezp-input/ezp-input.d.ts +4 -0
  20. package/dist/types/components/ezp-printer-selection/ezp-printer-selection.d.ts +1 -0
  21. package/dist/types/components.d.ts +16 -0
  22. package/dist/types/shared/types.d.ts +117 -0
  23. package/dist/types/utils/utils.d.ts +1 -0
  24. package/package.json +1 -1
  25. package/www/build/ezeep.esm.js +1 -1
  26. package/www/build/{p-ae73a226.entry.js → p-0d6efa1d.entry.js} +2 -2
  27. package/www/build/p-84bd195a.system.js +1 -1
  28. package/www/build/{p-f344770c.system.entry.js → p-f5a002c3.system.entry.js} +3 -3
  29. package/www/data/locales/de.json +2 -1
  30. package/www/data/locales/en.json +2 -1
@@ -18,6 +18,10 @@ export declare class EzpInput {
18
18
  icon: IconNameTypes;
19
19
  /** Description... */
20
20
  suffix: string;
21
+ /** Description... */
22
+ eventType: string;
23
+ /** Description... */
24
+ placeholder: string;
21
25
  /**
22
26
  *
23
27
  * Events
@@ -28,6 +28,7 @@ export declare class EzpPrinterSelection {
28
28
  */
29
29
  loading: boolean;
30
30
  printProcessing: boolean;
31
+ pageRangeInvalid: boolean;
31
32
  uploading: boolean;
32
33
  preparingUpload: boolean;
33
34
  printSuccess: boolean;
@@ -70,6 +70,10 @@ export namespace Components {
70
70
  "type": IconButtonTypeTypes;
71
71
  }
72
72
  interface EzpInput {
73
+ /**
74
+ * Description...
75
+ */
76
+ "eventType": string;
73
77
  /**
74
78
  * Description...
75
79
  */
@@ -78,6 +82,10 @@ export namespace Components {
78
82
  * Description...
79
83
  */
80
84
  "label": string;
85
+ /**
86
+ * Description...
87
+ */
88
+ "placeholder": string;
81
89
  /**
82
90
  * Description...
83
91
  */
@@ -440,6 +448,10 @@ declare namespace LocalJSX {
440
448
  "type"?: IconButtonTypeTypes;
441
449
  }
442
450
  interface EzpInput {
451
+ /**
452
+ * Description...
453
+ */
454
+ "eventType"?: string;
443
455
  /**
444
456
  * Description...
445
457
  */
@@ -452,6 +464,10 @@ declare namespace LocalJSX {
452
464
  * Events
453
465
  */
454
466
  "onInputValueChanged"?: (event: CustomEvent<any>) => void;
467
+ /**
468
+ * Description...
469
+ */
470
+ "placeholder"?: string;
455
471
  /**
456
472
  * Description...
457
473
  */
@@ -0,0 +1,117 @@
1
+ export type IconButtonLevelTypes = 'primary' | 'secondary' | 'tertiary' | 'quaternary'
2
+ export type IconButtonTypeTypes = 'button'
3
+ export type IconNameTypes =
4
+ | 'account'
5
+ | 'checkmark-alt'
6
+ | 'checkmark'
7
+ | 'close'
8
+ | 'color'
9
+ | 'copies'
10
+ | 'dark'
11
+ | 'drag-drop'
12
+ | 'duplex'
13
+ | 'exclamation-mark'
14
+ | 'expand'
15
+ | 'height'
16
+ | 'help'
17
+ | 'light'
18
+ | 'logo'
19
+ | 'logout'
20
+ | 'menu'
21
+ | 'minus'
22
+ | 'orientation'
23
+ | 'plus'
24
+ | 'printer'
25
+ | 'quality'
26
+ | 'question-mark'
27
+ | 'size'
28
+ | 'system'
29
+ | 'width'
30
+ export type IconSizeTypes = 'normal' | 'large' | 'huge'
31
+ export type PrintOrganizationType = { id: number; name: string; printers: PrintPrinterType[] }
32
+ export type PrintPrinterType = { id: number; name: string; location: string }
33
+ export type PrintUserType = {
34
+ id: number
35
+ firstName: string
36
+ lastName: string
37
+ email: string
38
+ organizations: PrintOrganizationType[]
39
+ }
40
+ export type SelectFlowTypes = 'vertical' | 'horizontal'
41
+ export type SelectOptionType = {
42
+ id: number | string | boolean
43
+ title: string
44
+ meta: string
45
+ type?: string
46
+ }
47
+ export type TextButtonLevelTypes = 'primary' | 'secondary' | 'tertiary'
48
+ export type TextButtonTypeTypes = 'button'
49
+ export type LabelLevelTypes = 'primary' | 'secondary' | 'tertiary'
50
+ export type WeightTypes = 'soft' | 'strong' | 'heavy'
51
+ export type ThemeTypes = 'pink' | 'red' | 'orange' | 'green' | 'teal' | 'cyan' | 'blue' | 'violet'
52
+ export type AppearanceTypes = 'system' | 'light' | 'dark'
53
+ export type TriggerTypes = 'custom' | 'file' | 'button'
54
+ export type AlertType = { open: boolean; heading: string; description: string }
55
+ export type SystemAppearanceTypes = 'light' | 'dark'
56
+ export interface PrinterProperties {
57
+ paper?: string
58
+ paperid?: number | string
59
+ color?: boolean | string
60
+ duplex?: boolean | string
61
+ duplexmode?: number | string
62
+ orientation?: number | string
63
+ copies?: number | string
64
+ resolution?: string | number
65
+ paperlength? : string | number
66
+ paperwidth? : string | number
67
+ PageRanges? : string
68
+ }
69
+
70
+ export interface Printer {
71
+ id: string
72
+ location: string
73
+ name: string
74
+ is_queue: boolean
75
+ }
76
+
77
+ export interface PaperFormat {
78
+ Id: number
79
+ Name: string
80
+ XRes: number
81
+ YRes: number
82
+ }
83
+ export interface PrinterConfig {
84
+ Collate?: boolean
85
+ Color?: boolean
86
+ Driver?: string
87
+ DuplexMode?: number
88
+ DuplexSupported?: boolean
89
+ Id?: string
90
+ Location?: string
91
+ MediaSupported?: Array<string>
92
+ MediaSupportedId?: Array<number>
93
+ Name?: string
94
+ OrientationsSupported?: Array<string>
95
+ OrientationsSupportedId?: Array<number>
96
+ PaperFormats?: Array<PaperFormat>
97
+ Resolutions?: Array<string>
98
+ TPUID?: number
99
+ }
100
+
101
+ export interface User {
102
+ azureProfile: any
103
+ dateJoined: string
104
+ displayName: string
105
+ email: string
106
+ firstName: string
107
+ id: string
108
+ idProfile: {
109
+ name: string
110
+ oid: string
111
+ preferredUsername: string
112
+ }
113
+ isVerfified: boolean
114
+ lastName: string
115
+ roles: Array<string>
116
+ userInvitations: any
117
+ }
@@ -14,4 +14,5 @@ export declare const removeEmptyStrings: (obj: {
14
14
  [x: string]: any;
15
15
  }) => {};
16
16
  export declare const managePaperDimensions: (properties: PrinterProperties) => PrinterProperties;
17
+ export declare const validatePageRange: (pageRange: any) => boolean;
17
18
  export declare const PAPER_ID = 256;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ezeep/ezeep-js",
3
- "version": "1.0.224",
3
+ "version": "1.0.226",
4
4
  "description": "A JavaScript library to enable easy and fast printing on any web application uising ezeep Blue.",
5
5
  "author": "Thinprint GmbH",
6
6
  "license": "MIT",
@@ -1 +1 @@
1
- import{p as e,b as i}from"./p-312f40d7.js";import{g as t}from"./p-a4d37138.js";(()=>{const i=import.meta.url,t={};return""!==i&&(t.resourcesUrl=new URL(".",i).href),e(t)})().then((e=>(t(),i([["p-ae73a226",[[1,"ezp-printing",{clientid:[1],redirecturi:[1],filename:[1025],fileurl:[1],filetype:[1],custom:[4],hidelogin:[4],hidemenu:[4],hideheader:[4],authapihosturl:[1],printapihosturl:[1],theme:[1],fileid:[1],appearance:[1],trigger:[1],language:[1],code:[1],filedata:[1],seamless:[4],printOpen:[32],authOpen:[32],onlyGetSasUri:[32],noDocumentOpen:[32],systemAppearance:[32],file:[32],open:[64],logOut:[64],getSasUri:[64],getAuthUri:[64],checkAuth:[64]},[[0,"printCancel","listenPrintCancel"],[0,"printSubmit","listenPrintSubmit"],[0,"authCancel","listenAuthCancel"],[0,"authSuccess","listenAuthSuccess"],[0,"uploadFile","listenUploadFile"],[0,"dialogClose","listenDialogClose"],[0,"dialogAction","listenDialogAction"],[0,"logout","listenLogout"]]],[1,"ezp-printer-selection",{clientID:[1,"client-i-d"],redirectURI:[1,"redirect-u-r-i"],filename:[1025],fileurl:[1],filetype:[1025],fileid:[1025],file:[16],hidemenu:[4],hideheader:[4],seamless:[4],loading:[32],printProcessing:[32],uploading:[32],preparingUpload:[32],printSuccess:[32],printFailed:[32],notSupported:[32],noPrinters:[32],userMenuOpen:[32],printStopped:[32],userName:[32],printers:[32],selectedPrinter:[32],printerConfig:[32],selectedPrinterConfig:[32],selectedProperties:[32],paperid:[32]},[[0,"inputValueChanged","listenInputValueChanged"],[0,"selectSelection","listenSelectSelection"],[0,"stepperChanged","listenStepperChanged"],[0,"userMenuClosure","listenUserMenuClosure"],[0,"logoutEmitter","listenLogout"],[0,"statusCancel","listenStatusCancel"],[0,"statusClose","listenStatusClose"],[0,"statusRetry","listenStatusRetry"]]],[1,"ezp-auth",{clientID:[1025,"client-i-d"],redirectURI:[1025,"redirect-u-r-i"],hidelogin:[4],trigger:[1],code:[1],auth:[32],authURI:[32],accessToken:[32]},[[0,"dialogAction","listenDialogAction"],[0,"dialogClose","listenDialogClose"],[0,"statusCancel","listenStatusCancel"]]],[1,"ezp-upload",{filename:[32],dragging:[32]},[[1,"dragenter","handleDragEnter"],[0,"dragover","handleDragOver"],[1,"dragleave","handleDragLeave"],[0,"drop","handleDrop"],[4,"printCancel","listenPrintCancel"]]],[1,"ezp-dialog",{heading:[1],description:[1],action:[1],iconName:[1,"icon-name"],iconSize:[1,"icon-size"],iconFramed:[4,"icon-framed"],instance:[1]}],[1,"ezp-user-menu",{name:[1],open:[1028]}],[1,"ezp-select",{icon:[1],label:[1],optionFlow:[1,"option-flow"],options:[16],placeholder:[1],preSelected:[8,"pre-selected"],toggleFlow:[1,"toggle-flow"],disabled:[4],expanded:[32],selected:[32]}],[1,"ezp-input",{label:[1],value:[1032],type:[1],icon:[1],suffix:[513],focused:[32]}],[1,"ezp-stepper",{icon:[1],label:[1],max:[2],min:[2],canDecrease:[32],canIncrease:[32],focused:[32],value:[32]}],[1,"ezp-status",{description:[1],processing:[4],instance:[1],icon:[1],cancel:[8],close:[8],retry:[8]}],[1,"ezp-backdrop",{visible:[1028]},[[0,"animationend","listenAnimationEnd"]]],[1,"ezp-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]}]]]],e))));
1
+ import{p as e,b as i}from"./p-312f40d7.js";import{g as t}from"./p-a4d37138.js";(()=>{const i=import.meta.url,t={};return""!==i&&(t.resourcesUrl=new URL(".",i).href),e(t)})().then((e=>(t(),i([["p-0d6efa1d",[[1,"ezp-printing",{clientid:[1],redirecturi:[1],filename:[1025],fileurl:[1],filetype:[1],custom:[4],hidelogin:[4],hidemenu:[4],hideheader:[4],authapihosturl:[1],printapihosturl:[1],theme:[1],fileid:[1],appearance:[1],trigger:[1],language:[1],code:[1],filedata:[1],seamless:[4],printOpen:[32],authOpen:[32],onlyGetSasUri:[32],noDocumentOpen:[32],systemAppearance:[32],file:[32],open:[64],logOut:[64],getSasUri:[64],getAuthUri:[64],checkAuth:[64]},[[0,"printCancel","listenPrintCancel"],[0,"printSubmit","listenPrintSubmit"],[0,"authCancel","listenAuthCancel"],[0,"authSuccess","listenAuthSuccess"],[0,"uploadFile","listenUploadFile"],[0,"dialogClose","listenDialogClose"],[0,"dialogAction","listenDialogAction"],[0,"logout","listenLogout"]]],[1,"ezp-printer-selection",{clientID:[1,"client-i-d"],redirectURI:[1,"redirect-u-r-i"],filename:[1025],fileurl:[1],filetype:[1025],fileid:[1025],file:[16],hidemenu:[4],hideheader:[4],seamless:[4],loading:[32],printProcessing:[32],pageRangeInvalid:[32],uploading:[32],preparingUpload:[32],printSuccess:[32],printFailed:[32],notSupported:[32],noPrinters:[32],userMenuOpen:[32],printStopped:[32],userName:[32],printers:[32],selectedPrinter:[32],printerConfig:[32],selectedPrinterConfig:[32],selectedProperties:[32],paperid:[32]},[[0,"inputValueChanged","listenInputValueChanged"],[0,"selectSelection","listenSelectSelection"],[0,"stepperChanged","listenStepperChanged"],[0,"userMenuClosure","listenUserMenuClosure"],[0,"logoutEmitter","listenLogout"],[0,"statusCancel","listenStatusCancel"],[0,"statusClose","listenStatusClose"],[0,"statusRetry","listenStatusRetry"]]],[1,"ezp-auth",{clientID:[1025,"client-i-d"],redirectURI:[1025,"redirect-u-r-i"],hidelogin:[4],trigger:[1],code:[1],auth:[32],authURI:[32],accessToken:[32]},[[0,"dialogAction","listenDialogAction"],[0,"dialogClose","listenDialogClose"],[0,"statusCancel","listenStatusCancel"]]],[1,"ezp-upload",{filename:[32],dragging:[32]},[[1,"dragenter","handleDragEnter"],[0,"dragover","handleDragOver"],[1,"dragleave","handleDragLeave"],[0,"drop","handleDrop"],[4,"printCancel","listenPrintCancel"]]],[1,"ezp-dialog",{heading:[1],description:[1],action:[1],iconName:[1,"icon-name"],iconSize:[1,"icon-size"],iconFramed:[4,"icon-framed"],instance:[1]}],[1,"ezp-user-menu",{name:[1],open:[1028]}],[1,"ezp-select",{icon:[1],label:[1],optionFlow:[1,"option-flow"],options:[16],placeholder:[1],preSelected:[8,"pre-selected"],toggleFlow:[1,"toggle-flow"],disabled:[4],expanded:[32],selected:[32]}],[1,"ezp-input",{label:[1],value:[1032],type:[1],icon:[1],suffix:[513],eventType:[1,"event-type"],placeholder:[1],focused:[32]}],[1,"ezp-stepper",{icon:[1],label:[1],max:[2],min:[2],canDecrease:[32],canIncrease:[32],focused:[32],value:[32]}],[1,"ezp-status",{description:[1],processing:[4],instance:[1],icon:[1],cancel:[8],close:[8],retry:[8]}],[1,"ezp-backdrop",{visible:[1028]},[[0,"animationend","listenAnimationEnd"]]],[1,"ezp-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]}]]]],e))));