@ezeep/ezeep-js 1.0.165 → 1.0.169

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 (64) hide show
  1. package/dist/cjs/ezeep.cjs.js +2 -2
  2. package/dist/cjs/ezp-auth_14.cjs.entry.js +93 -84
  3. package/dist/cjs/{index-baa7689a.js → index-0b159f85.js} +6 -1
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/collection/components/ezp-auth/ezp-auth.css +2 -2
  6. package/dist/collection/components/ezp-auth/ezp-auth.js +30 -4
  7. package/dist/collection/components/ezp-backdrop/ezp-backdrop.css +1 -1
  8. package/dist/collection/components/ezp-dialog/ezp-dialog.css +5 -5
  9. package/dist/collection/components/ezp-icon/ezp-icon.css +1 -1
  10. package/dist/collection/components/ezp-icon-button/ezp-icon-button.css +16 -16
  11. package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.css +10 -9
  12. package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.js +28 -47
  13. package/dist/collection/components/ezp-printing/ezp-printing.css +203 -133
  14. package/dist/collection/components/ezp-printing/ezp-printing.js +26 -9
  15. package/dist/collection/components/ezp-select/ezp-select.css +21 -21
  16. package/dist/collection/components/ezp-select/ezp-select.js +5 -4
  17. package/dist/collection/components/ezp-status/ezp-status.css +7 -7
  18. package/dist/collection/components/ezp-status/ezp-status.js +2 -3
  19. package/dist/collection/components/ezp-stepper/ezp-stepper.css +12 -12
  20. package/dist/collection/components/ezp-text-button/ezp-text-button.css +14 -14
  21. package/dist/collection/components/ezp-upload/ezp-upload.css +6 -6
  22. package/dist/collection/components/ezp-upload/ezp-upload.js +19 -9
  23. package/dist/collection/components/ezp-user-menu/ezp-user-menu.css +33 -29
  24. package/dist/collection/components/ezp-user-menu/ezp-user-menu.js +1 -1
  25. package/dist/custom-elements/index.js +95 -86
  26. package/dist/directives/proxies.ts +2 -2
  27. package/dist/esm/ezeep.js +2 -2
  28. package/dist/esm/ezp-auth_14.entry.js +93 -84
  29. package/dist/esm/{index-18d4bf15.js → index-13f75d28.js} +6 -1
  30. package/dist/esm/loader.js +2 -2
  31. package/dist/esm-es5/ezeep.js +1 -1
  32. package/dist/esm-es5/ezp-auth_14.entry.js +3 -3
  33. package/dist/esm-es5/index-13f75d28.js +1 -0
  34. package/dist/esm-es5/loader.js +1 -1
  35. package/dist/ezeep/ezeep.esm.js +1 -1
  36. package/dist/ezeep/ezeep.js +1 -1
  37. package/dist/ezeep/{p-3b6f9be6.entry.js → p-0ca9a8ac.entry.js} +2 -2
  38. package/dist/ezeep/p-16c7584d.system.js +1 -0
  39. package/dist/ezeep/p-17f25f95.js +1 -0
  40. package/{www/build/p-246f65df.system.entry.js → dist/ezeep/p-7acdedd4.system.entry.js} +3 -3
  41. package/dist/ezeep/p-c04b764e.system.js +1 -0
  42. package/dist/types/components/ezp-auth/ezp-auth.d.ts +1 -0
  43. package/dist/types/components/ezp-printer-selection/ezp-printer-selection.d.ts +1 -0
  44. package/dist/types/components/ezp-printing/ezp-printing.d.ts +1 -0
  45. package/dist/types/components/ezp-upload/ezp-upload.d.ts +3 -6
  46. package/dist/types/components.d.ts +2 -0
  47. package/dist/types/shared/types.d.ts +3 -2
  48. package/package.json +3 -1
  49. package/www/build/ezeep.esm.js +1 -1
  50. package/www/build/ezeep.js +1 -1
  51. package/www/build/{p-3b6f9be6.entry.js → p-0ca9a8ac.entry.js} +2 -2
  52. package/www/build/p-16c7584d.system.js +1 -0
  53. package/www/build/p-17f25f95.js +1 -0
  54. package/{dist/ezeep/p-246f65df.system.entry.js → www/build/p-7acdedd4.system.entry.js} +3 -3
  55. package/www/build/p-c04b764e.system.js +1 -0
  56. package/www/data/locales/en.json +5 -2
  57. package/www/index.html +8 -1
  58. package/dist/esm-es5/index-18d4bf15.js +0 -1
  59. package/dist/ezeep/p-80d5c308.system.js +0 -1
  60. package/dist/ezeep/p-d9b69b53.js +0 -1
  61. package/dist/ezeep/p-f96ca6a7.system.js +0 -1
  62. package/www/build/p-80d5c308.system.js +0 -1
  63. package/www/build/p-d9b69b53.js +0 -1
  64. package/www/build/p-f96ca6a7.system.js +0 -1
@@ -1,3 +1,33 @@
1
+ :host {
2
+ --ezp-black-5: rgba(0, 0, 0, 0.05);
3
+ --ezp-black-10: rgba(0, 0, 0, 0.1);
4
+ --ezp-black-20: rgba(0, 0, 0, 0.2);
5
+ --ezp-black-30: rgba(0, 0, 0, 0.3);
6
+ --ezp-black-40: rgba(0, 0, 0, 0.4);
7
+ --ezp-black-50: rgba(0, 0, 0, 0.5);
8
+ --ezp-black-60: rgba(0, 0, 0, 0.6);
9
+ --ezp-black-70: rgba(0, 0, 0, 0.7);
10
+ --ezp-black-80: rgba(0, 0, 0, 0.8);
11
+ --ezp-black-90: rgba(0, 0, 0, 0.9);
12
+ --ezp-black-95: rgba(0, 0, 0, 0.95);
13
+ --ezp-black-100: black;
14
+ }
15
+
16
+ :host {
17
+ --ezp-white-5: rgba(255, 255, 255, 0.05);
18
+ --ezp-white-10: rgba(255, 255, 255, 0.1);
19
+ --ezp-white-20: rgba(255, 255, 255, 0.2);
20
+ --ezp-white-30: rgba(255, 255, 255, 0.3);
21
+ --ezp-white-40: rgba(255, 255, 255, 0.4);
22
+ --ezp-white-50: rgba(255, 255, 255, 0.5);
23
+ --ezp-white-60: rgba(255, 255, 255, 0.6);
24
+ --ezp-white-70: rgba(255, 255, 255, 0.7);
25
+ --ezp-white-80: rgba(255, 255, 255, 0.8);
26
+ --ezp-white-90: rgba(255, 255, 255, 0.9);
27
+ --ezp-white-95: rgba(255, 255, 255, 0.95);
28
+ --ezp-white-100: white;
29
+ }
30
+
1
31
  /**
2
32
  *
3
33
  * Modules
@@ -60,184 +90,224 @@
60
90
  --ezp-easing-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
61
91
  }
62
92
  :host(.light) {
63
- --ezp-color-pink-solid: #f23267;
64
- --ezp-color-red-solid: #f23b22;
65
- --ezp-color-orange-solid: #fe7200;
66
- --ezp-color-green-solid: #5d9200;
67
- --ezp-color-cyan-solid: #0091b4;
68
- --ezp-color-blue-solid: #4e81f3;
69
- --ezp-color-violet-solid: #ae5ef3;
70
- --ezp-color-pink-translucent: rgba(242, 50, 103, 0.16);
71
- --ezp-color-red-translucent: rgba(242, 59, 34, 0.16);
72
- --ezp-color-orange-translucent: rgba(254, 114, 0, 0.16);
73
- --ezp-color-green-translucent: rgba(93, 146, 0, 0.16);
74
- --ezp-color-cyan-translucent: rgba(0, 145, 180, 0.16);
75
- --ezp-color-blue-translucent: rgba(78, 129, 243, 0.16);
76
- --ezp-color-violet-translucent: rgba(174, 94, 243, 0.16);
77
- --ezp-color-on-theme: white;
78
- --ezp-color-surface-primary: white;
79
- --ezp-color-surface-secondary: #f3f3f3;
80
- --ezp-color-surface-tertiary: white;
81
- --ezp-color-shade-primary: rgba(139, 139, 139, 0.1);
82
- --ezp-color-shade-secondary: rgba(139, 139, 139, 0.16);
83
- --ezp-color-shade-tertiary: rgba(139, 139, 139, 0.22);
84
- --ezp-color-foreground-primary: rgba(0, 0, 0, 0.94);
85
- --ezp-color-foreground-secondary: rgba(62, 62, 62, 0.68);
86
- --ezp-color-foreground-tertiary: rgba(62, 62, 62, 0.42);
87
- --ezp-color-outline: rgba(99, 99, 99, 0.16);
88
- --ezp-color-overlay-primary: rgba(0, 0, 0, 0.26);
89
- --ezp-color-overlay-secondary: rgba(0, 0, 0, 0.16);
90
- --ezp-color-shadow: rgba(0, 0, 0, 0.06);
93
+ --ezp-accent-pink-solid: #f23267;
94
+ --ezp-accent-pink-solid-alt: #df1559;
95
+ --ezp-accent-pink-translucent: rgba(242, 50, 103, 0.16);
96
+ --ezp-accent-red-solid: #f23b22;
97
+ --ezp-accent-red-solid-alt: #de2313;
98
+ --ezp-accent-red-translucent: rgba(242, 59, 34, 0.16);
99
+ --ezp-accent-orange-solid: #fe7200;
100
+ --ezp-accent-orange-solid-alt: #f56200;
101
+ --ezp-accent-orange-translucent: rgba(254, 114, 0, 0.16);
102
+ --ezp-accent-yellow-solid: #ffa200;
103
+ --ezp-accent-yellow-solid-alt: #fe9000;
104
+ --ezp-accent-yellow-translucent: rgba(255, 162, 0, 0.16);
105
+ --ezp-accent-green-solid: #5d9200;
106
+ --ezp-accent-green-solid-alt: #518100;
107
+ --ezp-accent-green-translucent: rgba(93, 146, 0, 0.16);
108
+ --ezp-accent-teal-solid: #00967c;
109
+ --ezp-accent-teal-solid-alt: #00846e;
110
+ --ezp-accent-teal-translucent: rgba(0, 150, 124, 0.16);
111
+ --ezp-accent-cyan-solid: #0091b4;
112
+ --ezp-accent-cyan-solid-alt: #0080a0;
113
+ --ezp-accent-cyan-translucent: rgba(0, 145, 180, 0.16);
114
+ --ezp-accent-blue-solid: #5081f1;
115
+ --ezp-accent-blue-solid-alt: #3b72df;
116
+ --ezp-accent-blue-translucent: rgba(80, 129, 241, 0.16);
117
+ --ezp-accent-violet-solid: #ae5ef3;
118
+ --ezp-accent-violet-solid-alt: #9d4ee2;
119
+ --ezp-accent-violet-translucent: rgba(174, 94, 243, 0.16);
120
+ --ezp-core-surface-primary: white;
121
+ --ezp-core-surface-secondary: #f3f3f3;
122
+ --ezp-core-surface-tertiary: white;
123
+ --ezp-core-foreground-primary: rgba(0, 0, 0, 0.94);
124
+ --ezp-core-foreground-secondary: rgba(62, 62, 62, 0.68);
125
+ --ezp-core-foreground-tertiary: rgba(62, 62, 62, 0.42);
126
+ --ezp-core-shade-primary: rgba(139, 139, 139, 0.1);
127
+ --ezp-core-shade-secondary: rgba(139, 139, 139, 0.16);
128
+ --ezp-core-shade-tertiary: rgba(139, 139, 139, 0.22);
129
+ --ezp-core-outline: rgba(99, 99, 99, 0.16);
130
+ --ezp-core-edge: rgba(0, 0, 0, 0.1);
131
+ --ezp-core-backdrop: rgba(0, 0, 0, 0.26);
132
+ }
133
+ @media (color-gamut: p3) {
134
+ @supports (color: color(display-p3 1 1 1)) {
135
+ :host(.light) {
136
+ --ezp-accent-pink-solid: color(display-p3 0.949 0.196 0.404/100%);
137
+ --ezp-accent-pink-solid-alt: color(display-p3 0.875 0.082 0.349/100%);
138
+ --ezp-accent-pink-translucent: color(display-p3 0.949 0.196 0.404/16%);
139
+ --ezp-accent-red-solid: color(display-p3 0.949 0.231 0.133/100%);
140
+ --ezp-accent-red-solid-alt: color(display-p3 0.871 0.137 0.075/100%);
141
+ --ezp-accent-red-translucent: color(display-p3 0.949 0.231 0.133/16%);
142
+ --ezp-accent-orange-solid: color(display-p3 0.996 0.447 0/100%);
143
+ --ezp-accent-orange-solid-alt: color(display-p3 0.961 0.384 0/100%);
144
+ --ezp-accent-orange-translucent: color(display-p3 0.996 0.447 0/16%);
145
+ --ezp-accent-yellow-solid: color(display-p3 1 0.635 0/100%);
146
+ --ezp-accent-yellow-solid-alt: color(display-p3 0.996 0.565 0/100%);
147
+ --ezp-accent-yellow-translucent: color(display-p3 1 0.635 0/16%);
148
+ --ezp-accent-green-solid: color(display-p3 0.365 0.573 0/100%);
149
+ --ezp-accent-green-solid-alt: color(display-p3 0.318 0.506 0/100%);
150
+ --ezp-accent-green-translucent: color(display-p3 0.365 0.573 0/16%);
151
+ --ezp-accent-teal-solid: color(display-p3 0 0.588 0.486/100%);
152
+ --ezp-accent-teal-solid-alt: color(display-p3 0 0.518 0.431/100%);
153
+ --ezp-accent-teal-translucent: color(display-p3 0 0.588 0.486/16%);
154
+ --ezp-accent-cyan-solid: color(display-p3 0 0.569 0.706/100%);
155
+ --ezp-accent-cyan-solid-alt: color(display-p3 0 0.502 0.627/100%);
156
+ --ezp-accent-cyan-translucent: color(display-p3 0 0.569 0.706/16%);
157
+ --ezp-accent-blue-solid: color(display-p3 0.314 0.506 0.945/100%);
158
+ --ezp-accent-blue-solid-alt: color(display-p3 0.231 0.447 0.875/100%);
159
+ --ezp-accent-blue-translucent: color(display-p3 0.314 0.506 0.945/16%);
160
+ --ezp-accent-violet-solid: color(display-p3 0.682 0.369 0.953/100%);
161
+ --ezp-accent-violet-solid-alt: color(display-p3 0.616 0.306 0.886/100%);
162
+ --ezp-accent-violet-translucent: color(display-p3 0.682 0.369 0.953/16%);
163
+ }
164
+ }
91
165
  }
92
166
  @media (color-gamut: p3) {
93
167
  @supports (color: color(display-p3 1 1 1)) {
94
168
  :host(.light) {
95
- --ezp-color-pink-solid: color(display-p3 0.949 0.196 0.404/100%);
96
- --ezp-color-red-solid: color(display-p3 0.949 0.231 0.133/100%);
97
- --ezp-color-orange-solid: color(display-p3 0.996 0.447 0/100%);
98
- --ezp-color-green-solid: color(display-p3 0.365 0.573 0/100%);
99
- --ezp-color-cyan-solid: color(display-p3 0 0.569 0.706/100%);
100
- --ezp-color-blue-solid: color(display-p3 0.306 0.506 0.953/100%);
101
- --ezp-color-violet-solid: color(display-p3 0.682 0.369 0.953/100%);
102
- --ezp-color-pink-translucent: color(display-p3 0.949 0.196 0.404/16%);
103
- --ezp-color-red-translucent: color(display-p3 0.949 0.231 0.133/16%);
104
- --ezp-color-orange-translucent: color(display-p3 0.996 0.447 0/16%);
105
- --ezp-color-green-translucent: color(display-p3 0.365 0.573 0/16%);
106
- --ezp-color-cyan-translucent: color(display-p3 0 0.569 0.706/16%);
107
- --ezp-color-blue-translucent: color(display-p3 0.306 0.506 0.953/16%);
108
- --ezp-color-violet-translucent: color(display-p3 0.682 0.369 0.953/16%);
109
- --ezp-color-on-theme: color(display-p3 1 1 1/100%);
110
- --ezp-color-surface-primary: color(display-p3 1 1 1/100%);
111
- --ezp-color-surface-secondary: color(display-p3 0.953 0.953 0.953/100%);
112
- --ezp-color-surface-tertiary: color(display-p3 1 1 1/100%);
113
- --ezp-color-shade-primary: color(display-p3 0.545 0.545 0.545/10%);
114
- --ezp-color-shade-secondary: color(display-p3 0.545 0.545 0.545/16%);
115
- --ezp-color-shade-tertiary: color(display-p3 0.545 0.545 0.545/22%);
116
- --ezp-color-foreground-primary: color(display-p3 0 0 0/94%);
117
- --ezp-color-foreground-secondary: color(display-p3 0.243 0.243 0.243/68%);
118
- --ezp-color-foreground-tertiary: color(display-p3 0.243 0.243 0.243/42%);
119
- --ezp-color-outline: color(display-p3 0.388 0.388 0.388/16%);
120
- --ezp-color-overlay-primary: color(display-p3 0 0 0/26%);
121
- --ezp-color-overlay-secondary: color(display-p3 0 0 0/16%);
122
- --ezp-color-shadow: color(display-p3 0 0 0/6%);
169
+ --ezp-core-surface-primary: color(display-p3 1 1 1/100%);
170
+ --ezp-core-surface-secondary: color(display-p3 0.953 0.953 0.953/100%);
171
+ --ezp-core-surface-tertiary: color(display-p3 1 1 1/100%);
172
+ --ezp-core-foreground-primary: color(display-p3 0 0 0/94%);
173
+ --ezp-core-foreground-secondary: color(display-p3 0.243 0.243 0.243/68%);
174
+ --ezp-core-foreground-tertiary: color(display-p3 0.243 0.243 0.243/42%);
175
+ --ezp-core-shade-primary: color(display-p3 0.545 0.545 0.545/10%);
176
+ --ezp-core-shade-secondary: color(display-p3 0.545 0.545 0.545/16%);
177
+ --ezp-core-shade-tertiary: color(display-p3 0.545 0.545 0.545/22%);
178
+ --ezp-core-outline: color(display-p3 0.388 0.388 0.388/16%);
179
+ --ezp-core-edge: color(display-p3 0 0 0/10%);
180
+ --ezp-core-backdrop: color(display-p3 0 0 0/26%);
123
181
  }
124
182
  }
125
183
  }
126
184
 
127
185
  :host(.dark) {
128
- --ezp-dialog-box-boxShadow: inset 0 0 0 1px var(--ezp-color-outline),
129
- 0 0 0 1px var(--ezp-color-overlay-secondary);
130
- --ezp-printerSelection-body-boxShadow: inset 1px 0 0 0 var(--ezp-color-outline),
131
- inset -1px 0 0 0 var(--ezp-color-outline);
186
+ --ezp-dialog-box-boxShadow: inset 0 0 0 1px var(--ezp-core-outline), 0 0 0 1px var(--ezp-black-60);
187
+ --ezp-printerSelection-body-boxShadow: inset 1px 0 0 0 var(--ezp-core-outline), inset -1px 0 0 0 var(--ezp-core-outline);
188
+ --ezp-printerSelection-box-boxShadow: 0 0 0 1px var(--ezp-black-60);
132
189
  --ezp-printerSelection-footer-boxShadowPosition: inset 0 0 0 1px;
133
190
  --ezp-printerSelection-header-boxShadowPosition: inset 0 0 0 1px;
134
191
  --ezp-select-wrap-boxShadowPositionBottom: inset 0 -1px 0 0;
135
192
  --ezp-select-wrap-boxShadowPositionLeft: inset 1px 0 0 0;
136
193
  --ezp-select-wrap-boxShadowPositionRight: inset -1px 0 0 0;
137
194
  --ezp-select-wrap-boxShadowPositionTop: inset 0 1px 0 0;
138
- --ezp-status-box-boxShadowPosition: inset 0 0 0 1px;
195
+ --ezp-status-box-boxShadow: inset 0 0 0 1px var(--ezp-core-outline), 0 0 0 1px var(--ezp-black-60);
139
196
  --ezp-stepper-boxShadowPosition: inset 0 0 0 1px;
140
- --ezp-userMenu-boxShadowPosition: inset 0 0 0 1px;
197
+ --ezp-userMenu-boxShadow: inset 0 0 0 1px var(--ezp-core-outline), 0 0 0 1px var(--ezp-black-60);
141
198
  --ezp-userMenu-header-boxShadowPosition: inset 0 -1px 0 0;
142
199
  --ezp-userMenu-links-boxShadowPosition: inset 0 -1px 0 0;
143
200
  --ezp-userMenu-theme-boxShadowPosition: inset 0 -1px 0 0;
201
+ --ezp-accent-pink-solid: #ff4171;
202
+ --ezp-accent-pink-translucent: rgba(255, 65, 113, 0.26);
203
+ --ezp-accent-red-solid: #ff482c;
204
+ --ezp-accent-red-translucent: rgba(255, 72, 44, 0.26);
205
+ --ezp-accent-orange-solid: #ff811c;
206
+ --ezp-accent-orange-translucent: rgba(255, 129, 28, 0.26);
207
+ --ezp-accent-yellow-solid: #ffaf3a;
208
+ --ezp-accent-yellow-translucent: rgba(255, 175, 58, 0.26);
209
+ --ezp-accent-green-solid: #679c15;
210
+ --ezp-accent-green-translucent: rgba(103, 156, 21, 0.26);
211
+ --ezp-accent-teal-solid: #1da086;
212
+ --ezp-accent-teal-translucent: rgba(29, 160, 134, 0.26);
213
+ --ezp-accent-cyan-solid: #209bbf;
214
+ --ezp-accent-cyan-translucent: rgba(32, 155, 191, 0.26);
215
+ --ezp-accent-blue-solid: #5d8bfd;
216
+ --ezp-accent-blue-translucent: rgba(93, 139, 253, 0.26);
217
+ --ezp-accent-violet-solid: #ba69ff;
218
+ --ezp-accent-violet-translucent: rgba(186, 105, 255, 0.26);
219
+ --ezp-core-surface-primary: black;
220
+ --ezp-core-surface-secondary: #1b1b1b;
221
+ --ezp-core-surface-tertiary: #282828;
222
+ --ezp-core-foreground-primary: rgba(255, 255, 255, 0.94);
223
+ --ezp-core-foreground-secondary: rgba(182, 182, 182, 0.68);
224
+ --ezp-core-foreground-tertiary: rgba(182, 182, 182, 0.42);
225
+ --ezp-core-shade-primary: rgba(99, 99, 99, 0.26);
226
+ --ezp-core-shade-secondary: rgba(99, 99, 99, 0.32);
227
+ --ezp-core-shade-tertiary: rgba(99, 99, 99, 0.38);
228
+ --ezp-core-outline: rgba(139, 139, 139, 0.26);
229
+ --ezp-core-edge: rgba(255, 255, 255, 0.16);
230
+ --ezp-core-backdrop: rgba(0, 0, 0, 0.68);
144
231
  }
145
- :host(.dark) {
146
- --ezp-color-pink-solid: #ff4171;
147
- --ezp-color-red-solid: #ff482c;
148
- --ezp-color-orange-solid: #ff811c;
149
- --ezp-color-green-solid: #679c15;
150
- --ezp-color-cyan-solid: #209bbf;
151
- --ezp-color-blue-solid: #5b8bff;
152
- --ezp-color-violet-solid: #ba69ff;
153
- --ezp-color-pink-translucent: rgba(255, 65, 113, 0.26);
154
- --ezp-color-red-translucent: rgba(255, 72, 44, 0.26);
155
- --ezp-color-orange-translucent: rgba(255, 129, 28, 0.26);
156
- --ezp-color-green-translucent: rgba(103, 156, 21, 0.26);
157
- --ezp-color-cyan-translucent: rgba(32, 155, 191, 0.26);
158
- --ezp-color-blue-translucent: rgba(91, 139, 255, 0.26);
159
- --ezp-color-violet-translucent: rgba(186, 105, 255, 0.26);
160
- --ezp-color-on-theme: white;
161
- --ezp-color-surface-primary: black;
162
- --ezp-color-surface-secondary: #1b1b1b;
163
- --ezp-color-surface-tertiary: #282828;
164
- --ezp-color-shade-primary: rgba(99, 99, 99, 0.26);
165
- --ezp-color-shade-secondary: rgba(99, 99, 99, 0.32);
166
- --ezp-color-shade-tertiary: rgba(99, 99, 99, 0.38);
167
- --ezp-color-foreground-primary: rgba(255, 255, 255, 0.94);
168
- --ezp-color-foreground-secondary: rgba(182, 182, 182, 0.68);
169
- --ezp-color-foreground-tertiary: rgba(182, 182, 182, 0.42);
170
- --ezp-color-outline: rgba(139, 139, 139, 0.26);
171
- --ezp-color-overlay-primary: rgba(0, 0, 0, 0.68);
172
- --ezp-color-overlay-secondary: rgba(0, 0, 0, 0.42);
173
- --ezp-color-shadow: rgba(0, 0, 0, 0.1);
232
+ @media (color-gamut: p3) {
233
+ @supports (color: color(display-p3 1 1 1)) {
234
+ :host(.dark) {
235
+ --ezp-accent-pink-solid: color(display-p3 1 0.255 0.443/100%);
236
+ --ezp-accent-pink-translucent: color(display-p3 1 0.255 0.443/26%);
237
+ --ezp-accent-red-solid: color(display-p3 1 0.282 0.173/100%);
238
+ --ezp-accent-red-translucent: color(display-p3 1 0.282 0.173/26%);
239
+ --ezp-accent-orange-solid: color(display-p3 1 0.506 0.11/100%);
240
+ --ezp-accent-orange-translucent: color(display-p3 1 0.506 0.11/26%);
241
+ --ezp-accent-yellow-solid: color(display-p3 1 0.686 0.227/100%);
242
+ --ezp-accent-yellow-translucent: color(display-p3 1 0.686 0.227/26%);
243
+ --ezp-accent-green-solid: color(display-p3 0.404 0.612 0.082/100%);
244
+ --ezp-accent-green-translucent: color(display-p3 0.404 0.612 0.082/26%);
245
+ --ezp-accent-teal-solid: color(display-p3 0.114 0.627 0.525/100%);
246
+ --ezp-accent-teal-translucent: color(display-p3 0.114 0.627 0.525/26%);
247
+ --ezp-accent-cyan-solid: color(display-p3 0.125 0.608 0.749/100%);
248
+ --ezp-accent-cyan-translucent: color(display-p3 0.125 0.608 0.749/26%);
249
+ --ezp-accent-blue-solid: color(display-p3 0.365 0.545 0.992/100%);
250
+ --ezp-accent-blue-translucent: color(display-p3 0.365 0.545 0.992/26%);
251
+ --ezp-accent-violet-solid: color(display-p3 0.729 0.412 1/100%);
252
+ --ezp-accent-violet-translucent: color(display-p3 0.729 0.412 1/26%);
253
+ }
254
+ }
174
255
  }
175
256
  @media (color-gamut: p3) {
176
257
  @supports (color: color(display-p3 1 1 1)) {
177
258
  :host(.dark) {
178
- --ezp-color-pink-solid: color(display-p3 1 0.255 0.443/100%);
179
- --ezp-color-red-solid: color(display-p3 1 0.282 0.173/100%);
180
- --ezp-color-orange-solid: color(display-p3 1 0.506 0.11/100%);
181
- --ezp-color-green-solid: color(display-p3 0.404 0.612 0.082/100%);
182
- --ezp-color-cyan-solid: color(display-p3 0.125 0.608 0.749/100%);
183
- --ezp-color-blue-solid: color(display-p3 0.357 0.545 1/100%);
184
- --ezp-color-violet-solid: color(display-p3 0.729 0.412 1/100%);
185
- --ezp-color-pink-translucent: color(display-p3 1 0.255 0.443/26%);
186
- --ezp-color-red-translucent: color(display-p3 1 0.282 0.173/26%);
187
- --ezp-color-orange-translucent: color(display-p3 1 0.506 0.11/26%);
188
- --ezp-color-green-translucent: color(display-p3 0.404 0.612 0.082/26%);
189
- --ezp-color-cyan-translucent: color(display-p3 0.125 0.608 0.749/26%);
190
- --ezp-color-blue-translucent: color(display-p3 0.357 0.545 1/26%);
191
- --ezp-color-violet-translucent: color(display-p3 0.729 0.412 1/26%);
192
- --ezp-color-on-theme: color(display-p3 1 1 1/100%);
193
- --ezp-color-surface-primary: color(display-p3 0 0 0/100%);
194
- --ezp-color-surface-secondary: color(display-p3 0.106 0.106 0.106/100%);
195
- --ezp-color-surface-tertiary: color(display-p3 0.157 0.157 0.157/100%);
196
- --ezp-color-shade-primary: color(display-p3 0.388 0.388 0.388/26%);
197
- --ezp-color-shade-secondary: color(display-p3 0.388 0.388 0.388/32%);
198
- --ezp-color-shade-tertiary: color(display-p3 0.388 0.388 0.388/38%);
199
- --ezp-color-foreground-primary: color(display-p3 1 1 1/94%);
200
- --ezp-color-foreground-secondary: color(display-p3 0.714 0.714 0.714/68%);
201
- --ezp-color-foreground-tertiary: color(display-p3 0.714 0.714 0.714/42%);
202
- --ezp-color-outline: color(display-p3 0.545 0.545 0.545/26%);
203
- --ezp-color-overlay-primary: color(display-p3 0 0 0/68%);
204
- --ezp-color-overlay-secondary: color(display-p3 0 0 0/42%);
205
- --ezp-color-shadow: color(display-p3 0 0 0/10%);
259
+ --ezp-core-surface-primary: color(display-p3 0 0 0/100%);
260
+ --ezp-core-surface-secondary: color(display-p3 0.106 0.106 0.106/100%);
261
+ --ezp-core-surface-tertiary: color(display-p3 0.157 0.157 0.157/100%);
262
+ --ezp-core-foreground-primary: color(display-p3 1 1 1/94%);
263
+ --ezp-core-foreground-secondary: color(display-p3 0.714 0.714 0.714/68%);
264
+ --ezp-core-foreground-tertiary: color(display-p3 0.714 0.714 0.714/42%);
265
+ --ezp-core-shade-primary: color(display-p3 0.388 0.388 0.388/26%);
266
+ --ezp-core-shade-secondary: color(display-p3 0.388 0.388 0.388/32%);
267
+ --ezp-core-shade-tertiary: color(display-p3 0.388 0.388 0.388/38%);
268
+ --ezp-core-outline: color(display-p3 0.545 0.545 0.545/26%);
269
+ --ezp-core-edge: color(display-p3 1 1 1/16%);
270
+ --ezp-core-backdrop: color(display-p3 0 0 0/68%);
206
271
  }
207
272
  }
208
273
  }
209
274
 
210
275
  :host(.blue) {
211
- --ezp-color-theme-solid: var(--ezp-color-blue-solid);
212
- --ezp-color-theme-translucent: var(--ezp-color-blue-translucent);
276
+ --ezp-theme-solid: var(--ezp-accent-blue-solid);
277
+ --ezp-theme-translucent: var(--ezp-accent-blue-translucent);
213
278
  }
214
279
 
215
280
  :host(.cyan) {
216
- --ezp-color-theme-solid: var(--ezp-color-cyan-solid);
217
- --ezp-color-theme-translucent: var(--ezp-color-cyan-translucent);
281
+ --ezp-theme-solid: var(--ezp-accent-cyan-solid);
282
+ --ezp-theme-translucent: var(--ezp-accent-cyan-translucent);
218
283
  }
219
284
 
220
285
  :host(.green) {
221
- --ezp-color-theme-solid: var(--ezp-color-green-solid);
222
- --ezp-color-theme-translucent: var(--ezp-color-green-translucent);
286
+ --ezp-theme-solid: var(--ezp-accent-green-solid);
287
+ --ezp-theme-translucent: var(--ezp-accent-green-translucent);
288
+ }
289
+
290
+ :host(.teal) {
291
+ --ezp-theme-solid: var(--ezp-accent-teal-solid);
292
+ --ezp-theme-translucent: var(--ezp-accent-teal-translucent);
223
293
  }
224
294
 
225
295
  :host(.orange) {
226
- --ezp-color-theme-solid: var(--ezp-color-orange-solid);
227
- --ezp-color-theme-translucent: var(--ezp-color-orange-translucent);
296
+ --ezp-theme-solid: var(--ezp-accent-orange-solid);
297
+ --ezp-theme-translucent: var(--ezp-accent-orange-translucent);
228
298
  }
229
299
 
230
300
  :host(.pink) {
231
- --ezp-color-theme-solid: var(--ezp-color-pink-solid);
232
- --ezp-color-theme-translucent: var(--ezp-color-pink-translucent);
301
+ --ezp-theme-solid: var(--ezp-accent-pink-solid);
302
+ --ezp-theme-translucent: var(--ezp-accent-pink-translucent);
233
303
  }
234
304
 
235
305
  :host(.red) {
236
- --ezp-color-theme-solid: var(--ezp-color-red-solid);
237
- --ezp-color-theme-translucent: var(--ezp-color-red-translucent);
306
+ --ezp-theme-solid: var(--ezp-accent-red-solid);
307
+ --ezp-theme-translucent: var(--ezp-accent-red-translucent);
238
308
  }
239
309
 
240
310
  :host(.violet) {
241
- --ezp-color-theme-solid: var(--ezp-color-violet-solid);
242
- --ezp-color-theme-translucent: var(--ezp-color-violet-translucent);
311
+ --ezp-theme-solid: var(--ezp-accent-violet-solid);
312
+ --ezp-theme-translucent: var(--ezp-accent-violet-translucent);
243
313
  }
@@ -20,6 +20,7 @@ export class EzpPrinting {
20
20
  /** Description... */
21
21
  this.printOpen = false;
22
22
  this.authOpen = false;
23
+ this.onlyGetSasUri = false;
23
24
  this.noDocumentOpen = false;
24
25
  }
25
26
  /**
@@ -30,17 +31,24 @@ export class EzpPrinting {
30
31
  /** Description... */
31
32
  listenPrintCancel() {
32
33
  this.printOpen = false;
34
+ this.checkAuth();
33
35
  }
34
36
  /** Description... */
35
37
  listenPrintSubmit() {
36
38
  this.printOpen = false;
39
+ this.checkAuth();
37
40
  }
38
41
  /** Description... */
39
42
  listenAuthCancel() {
40
43
  this.authOpen = false;
44
+ this.checkAuth();
41
45
  }
42
46
  listenAuthSuccess() {
43
- if (this.filename != '') {
47
+ if (this.onlyGetSasUri) {
48
+ this.printOpen = false;
49
+ this.onlyGetSasUri = false;
50
+ }
51
+ else if (this.filename != '') {
44
52
  this.printOpen = true;
45
53
  }
46
54
  else {
@@ -68,7 +76,8 @@ export class EzpPrinting {
68
76
  *
69
77
  */
70
78
  async open() {
71
- if (authStore.state.isAuthorized) {
79
+ if (authStore.state.isAuthorized && this.trigger === 'file') {
80
+ this.authOpen = true;
72
81
  if (this.filename) {
73
82
  this.printOpen = true;
74
83
  }
@@ -89,11 +98,16 @@ export class EzpPrinting {
89
98
  this.printOpen = false;
90
99
  }
91
100
  async getSasUri() {
101
+ this.onlyGetSasUri = true;
92
102
  const printService = new EzpPrintService(this.redirecturi, this.clientid);
93
- const response = await printService.prepareFileUpload(authStore.state.accessToken)
94
- .catch(() => this.open());
95
- const sasUri = response.sasUri;
96
- return sasUri;
103
+ let response = await printService.prepareFileUpload(authStore.state.accessToken).catch(() => {
104
+ this.open();
105
+ return null;
106
+ });
107
+ if (response) {
108
+ const sasUri = response.sasUri;
109
+ return sasUri;
110
+ }
97
111
  }
98
112
  checkAuth() {
99
113
  const printService = new EzpPrintService(this.redirecturi, this.clientid);
@@ -147,8 +161,8 @@ export class EzpPrinting {
147
161
  else {
148
162
  printStore.state.printApiHostUrl = config.printingApiHostUrl;
149
163
  }
150
- initi18n(this.language);
151
164
  sendCodeToParentWindow();
165
+ initi18n(this.language);
152
166
  this.checkAuth();
153
167
  }
154
168
  componentDidLoad() {
@@ -162,7 +176,9 @@ export class EzpPrinting {
162
176
  render() {
163
177
  return (h(Host, { class: `${userStore.state.theme} ${userStore.state.appearance === 'system'
164
178
  ? this.systemAppearance
165
- : 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() })))));
179
+ : userStore.state.appearance}` },
180
+ 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() }))),
181
+ 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));
166
182
  }
167
183
  static get is() { return "ezp-printing"; }
168
184
  static get encapsulation() { return "shadow"; }
@@ -350,7 +366,7 @@ export class EzpPrinting {
350
366
  "mutable": false,
351
367
  "complexType": {
352
368
  "original": "ThemeTypes",
353
- "resolved": "\"blue\" | \"cyan\" | \"green\" | \"orange\" | \"pink\" | \"red\" | \"violet\"",
369
+ "resolved": "\"blue\" | \"cyan\" | \"green\" | \"orange\" | \"pink\" | \"red\" | \"teal\" | \"violet\"",
354
370
  "references": {
355
371
  "ThemeTypes": {
356
372
  "location": "import",
@@ -452,6 +468,7 @@ export class EzpPrinting {
452
468
  static get states() { return {
453
469
  "printOpen": {},
454
470
  "authOpen": {},
471
+ "onlyGetSasUri": {},
455
472
  "noDocumentOpen": {},
456
473
  "systemAppearance": {}
457
474
  }; }
@@ -68,27 +68,27 @@
68
68
  }
69
69
 
70
70
  :host(.is-expanded) {
71
- --ezp-select-accessory-color: var(--ezp-color-theme-solid);
71
+ --ezp-select-accessory-color: var(--ezp-theme-solid);
72
72
  --ezp-select-transition: z-index 0s 0s;
73
73
  --ezp-select-zIndex: 9999;
74
- --ezp-select-icon-color: var(--ezp-color-theme-solid);
75
- --ezp-select-label-color: var(--ezp-color-theme-solid);
74
+ --ezp-select-icon-color: var(--ezp-theme-solid);
75
+ --ezp-select-label-color: var(--ezp-theme-solid);
76
76
  --ezp-select-wrap-borderRadius: 3px;
77
77
  }
78
78
 
79
79
  :host(.disabled) {
80
- --ezp-select-accessory-color: var(--ezp-color-foreground-tertiary);
81
- --ezp-select-icon-color: var(--ezp-color-foreground-tertiary);
82
- --ezp-select-label-color: var(--ezp-color-foreground-tertiary);
80
+ --ezp-select-accessory-color: var(--ezp-core-foreground-tertiary);
81
+ --ezp-select-icon-color: var(--ezp-core-foreground-tertiary);
82
+ --ezp-select-label-color: var(--ezp-core-foreground-tertiary);
83
83
  --ezp-select-toggle-background-hover: transparent;
84
84
  --ezp-select-toggle-cursor: default;
85
- --value-color: var(--ezp-color-foreground-tertiary);
85
+ --value-color: var(--ezp-core-foreground-tertiary);
86
86
  }
87
87
 
88
88
  #wrap {
89
- background: var(--ezp-color-surface-tertiary);
89
+ background: var(--ezp-core-surface-tertiary);
90
90
  border-radius: var(--ezp-select-wrap-borderRadius, 0);
91
- box-shadow: var(--ezp-select-wrap-boxShadowPositionTop, 0 -1px 0 0) var(--ezp-color-outline), var(--ezp-select-wrap-boxShadowPositionRight, 1px 0 0 0) var(--ezp-color-outline), var(--ezp-select-wrap-boxShadowPositionBottom, 0 1px 0 0) var(--ezp-color-outline), var(--ezp-select-wrap-boxShadowPositionLeft, -1px 0 0 0) var(--ezp-color-outline);
91
+ 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);
92
92
  transform: translateY(var(--ezp-select-wrap-translateY, 0));
93
93
  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);
94
94
  }
@@ -108,38 +108,38 @@
108
108
  #toggle:hover {
109
109
  --ezp-select-toggle-background: var(
110
110
  --ezp-select-toggle-background-hover,
111
- var(--ezp-color-shade-primary)
111
+ var(--ezp-core-shade-primary)
112
112
  );
113
113
  }
114
114
 
115
115
  #icon {
116
116
  align-self: center;
117
- color: var(--ezp-select-icon-color, var(--ezp-color-foreground-secondary));
117
+ color: var(--ezp-select-icon-color, var(--ezp-core-foreground-secondary));
118
118
  grid-area: icon;
119
119
  margin: calc(var(--ezp-spacing-2) * -1) 0;
120
120
  }
121
121
 
122
122
  #label {
123
123
  align-self: var(--ezp-select-label-alignSelf, auto);
124
- color: var(--ezp-select-label-color, var(--ezp-color-foreground-secondary));
124
+ color: var(--ezp-select-label-color, var(--ezp-core-foreground-secondary));
125
125
  grid-area: label;
126
126
  }
127
127
 
128
128
  #value {
129
129
  align-self: var(--ezp-select-value-alignSelf, auto);
130
- color: var(--value-color, var(--ezp-color-foreground-primary));
130
+ color: var(--value-color, var(--ezp-core-foreground-primary));
131
131
  grid-area: value;
132
132
  }
133
133
 
134
134
  #accessory {
135
135
  align-self: center;
136
- color: var(--ezp-select-accessory-color, var(--ezp-color-foreground-secondary));
136
+ color: var(--ezp-select-accessory-color, var(--ezp-core-foreground-secondary));
137
137
  grid-area: accessory;
138
138
  margin: calc(var(--ezp-spacing-2) * -1) 0;
139
139
  }
140
140
 
141
141
  #list {
142
- box-shadow: inset 0 1px 0 0 var(--ezp-color-outline);
142
+ box-shadow: inset 0 1px 0 0 var(--ezp-core-outline);
143
143
  height: var(--ezp-select-list-height, 0);
144
144
  overflow: auto;
145
145
  transition: height var(--ezp-select-duration) var(--ezp-easing-out-quart);
@@ -156,13 +156,13 @@
156
156
  padding: 0 0 0 var(--ezp-spacing-3);
157
157
  }
158
158
  .option:not(:last-child) {
159
- --ezp-select-details-boxShadow: inset 0 -1px 0 0 var(--ezp-color-outline);
159
+ --ezp-select-details-boxShadow: inset 0 -1px 0 0 var(--ezp-core-outline);
160
160
  }
161
161
  .option:hover {
162
- --ezp-select-option-background: var(--ezp-color-shade-primary);
162
+ --ezp-select-option-background: var(--ezp-core-shade-primary);
163
163
  }
164
164
  .option:active {
165
- --ezp-select-option-background: var(--ezp-color-shade-secondary);
165
+ --ezp-select-option-background: var(--ezp-core-shade-secondary);
166
166
  }
167
167
  .option.is-selected {
168
168
  --ezp-select-indicator-opacity: 1;
@@ -175,7 +175,7 @@
175
175
 
176
176
  .indicator {
177
177
  align-self: center;
178
- color: var(--ezp-color-theme-solid);
178
+ color: var(--ezp-theme-solid);
179
179
  margin: calc(var(--ezp-spacing-2) * -1) 0;
180
180
  opacity: var(--ezp-select-indicator-opacity, 0);
181
181
  transform: var(--ezp-select-indicator-transform, translateX(var(--ezp-spacing-3)));
@@ -194,10 +194,10 @@
194
194
 
195
195
  .title {
196
196
  align-self: start;
197
- color: var(--ezp-color-foreground-primary);
197
+ color: var(--ezp-core-foreground-primary);
198
198
  }
199
199
 
200
200
  .meta {
201
201
  align-self: end;
202
- color: var(--ezp-color-foreground-secondary);
202
+ color: var(--ezp-core-foreground-secondary);
203
203
  }
@@ -49,8 +49,6 @@ export class EzpSelect {
49
49
  const delay = this.selected.id === id ? 0 : this.duration * 1000;
50
50
  this.selected = this.options.find((option) => option.id === id);
51
51
  this.selectSelection.emit(this.selected);
52
- // console.log('ezp-select:')
53
- // console.log(this.selected)
54
52
  window.setTimeout(() => {
55
53
  this.toggle();
56
54
  }, delay);
@@ -101,7 +99,7 @@ export class EzpSelect {
101
99
  this.backdrop.addEventListener('backdropHideEnd', () => {
102
100
  this.container.removeChild(this.backdrop);
103
101
  });
104
- if (this.preSelected) {
102
+ if (this.preSelected !== undefined && this.preSelected !== '' && this.preSelected !== null) {
105
103
  this.preSelect();
106
104
  }
107
105
  }
@@ -111,7 +109,10 @@ export class EzpSelect {
111
109
  this.duration = parseFloat(styles.getPropertyValue('--ezp-select-duration'));
112
110
  }
113
111
  componentWillUpdate() {
114
- if (!this.selected.id && this.preSelected) {
112
+ if (this.selected.id === false &&
113
+ this.preSelected !== undefined &&
114
+ this.preSelected !== '' &&
115
+ this.preSelected !== null) {
115
116
  this.preSelect();
116
117
  }
117
118
  }