@ezeep/ezeep-js 1.0.138 → 1.0.139

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 (53) hide show
  1. package/dist/cjs/ezeep.cjs.js +1 -1
  2. package/dist/cjs/ezp-auth_12.cjs.entry.js +19 -8
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/collection/components/ezp-icon/assets/glyph-dark.svg +3 -0
  5. package/dist/collection/components/ezp-icon/assets/glyph-light.svg +3 -0
  6. package/dist/collection/components/ezp-icon/assets/glyph-system.svg +3 -0
  7. package/dist/collection/components/ezp-icon/ezp-icon.css +2 -2
  8. package/dist/collection/components/ezp-icon/ezp-icon.js +1 -1
  9. package/dist/collection/components/ezp-icon-button/ezp-icon-button.js +1 -1
  10. package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.css +2 -3
  11. package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.js +1 -1
  12. package/dist/collection/components/ezp-printing/ezp-printing.css +211 -120
  13. package/dist/collection/components/ezp-printing/ezp-printing.js +26 -1
  14. package/dist/collection/components/ezp-progress/ezp-progress.css +1 -1
  15. package/dist/collection/components/ezp-select/ezp-select.js +1 -1
  16. package/dist/collection/components/ezp-stepper/ezp-stepper.js +1 -1
  17. package/dist/collection/components/ezp-user-menu/ezp-user-menu.css +45 -1
  18. package/dist/collection/components/ezp-user-menu/ezp-user-menu.js +15 -2
  19. package/dist/collection/services/user.js +1 -0
  20. package/dist/custom-elements/index.js +20 -9
  21. package/dist/directives/proxies.ts +2 -2
  22. package/dist/esm/ezeep.js +1 -1
  23. package/dist/esm/ezp-auth_12.entry.js +19 -8
  24. package/dist/esm/loader.js +1 -1
  25. package/dist/esm-es5/ezeep.js +1 -1
  26. package/dist/esm-es5/ezp-auth_12.entry.js +1 -1
  27. package/dist/esm-es5/loader.js +1 -1
  28. package/dist/ezeep/assets/glyph-dark.svg +3 -0
  29. package/dist/ezeep/assets/glyph-light.svg +3 -0
  30. package/dist/ezeep/assets/glyph-system.svg +3 -0
  31. package/dist/ezeep/ezeep.esm.js +1 -1
  32. package/dist/ezeep/p-1922e5fe.system.entry.js +1 -0
  33. package/dist/ezeep/p-649f6d96.entry.js +1 -0
  34. package/dist/ezeep/p-c488ee3f.system.js +1 -1
  35. package/dist/types/components/ezp-printing/ezp-printing.d.ts +2 -1
  36. package/dist/types/components/ezp-user-menu/ezp-user-menu.d.ts +2 -0
  37. package/dist/types/components.d.ts +3 -1
  38. package/dist/types/services/user.d.ts +1 -0
  39. package/dist/types/shared/types.d.ts +4 -0
  40. package/package.json +1 -1
  41. package/readme.md +2 -3
  42. package/www/build/assets/glyph-dark.svg +3 -0
  43. package/www/build/assets/glyph-light.svg +3 -0
  44. package/www/build/assets/glyph-system.svg +3 -0
  45. package/www/build/ezeep.esm.js +1 -1
  46. package/www/build/p-1922e5fe.system.entry.js +1 -0
  47. package/www/build/p-649f6d96.entry.js +1 -0
  48. package/www/build/p-c488ee3f.system.js +1 -1
  49. package/www/index.html +1 -1
  50. package/dist/ezeep/p-12ca28b7.system.entry.js +0 -1
  51. package/dist/ezeep/p-f4d2e700.entry.js +0 -1
  52. package/www/build/p-12ca28b7.system.entry.js +0 -1
  53. package/www/build/p-f4d2e700.entry.js +0 -1
@@ -45,34 +45,6 @@
45
45
  -webkit-tap-highlight-color: transparent;
46
46
  text-rendering: optimizeLegibility;
47
47
  -webkit-text-size-adjust: none;
48
- --color-theme-pink-solid: #f23267;
49
- --color-theme-red-solid: #f23b22;
50
- --color-theme-orange-solid: #fe7200;
51
- --color-theme-green-solid: #5d9200;
52
- --color-theme-cyan-solid: #0091b4;
53
- --color-theme-blue-solid: #4e81f3;
54
- --color-theme-violet-solid: #ae5ef3;
55
- --color-theme-pink-translucent: rgba(242, 50, 103, 0.16);
56
- --color-theme-red-translucent: rgba(242, 59, 34, 0.16);
57
- --color-theme-orange-translucent: rgba(254, 114, 0, 0.16);
58
- --color-theme-green-translucent: rgba(93, 146, 0, 0.16);
59
- --color-theme-cyan-translucent: rgba(0, 145, 180, 0.16);
60
- --color-theme-blue-translucent: rgba(78, 129, 243, 0.16);
61
- --color-theme-violet-translucent: rgba(174, 94, 243, 0.16);
62
- --color-on-theme: white;
63
- --color-surface-primary: white;
64
- --color-surface-secondary: #f3f3f3;
65
- --color-surface-tertiary: white;
66
- --color-shade-primary: rgba(119, 119, 119, 0.1);
67
- --color-shade-secondary: rgba(119, 119, 119, 0.16);
68
- --color-shade-tertiary: rgba(119, 119, 119, 0.22);
69
- --color-foreground-primary: rgba(0, 0, 0, 0.94);
70
- --color-foreground-secondary: rgba(99, 99, 99, 0.9);
71
- --color-foreground-tertiary: rgba(99, 99, 99, 0.58);
72
- --color-outline-primary: rgba(119, 119, 119, 0.16);
73
- --color-outline-secondary: rgba(119, 119, 119, 0.26);
74
- --color-overlay: rgba(0, 0, 0, 0.26);
75
- --color-shadow: rgba(0, 0, 0, 0.06);
76
48
  --duration-1: 0.1s;
77
49
  --duration-2: 0.16s;
78
50
  --duration-3: 0.26s;
@@ -94,38 +66,62 @@
94
66
  --easing-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
95
67
  --easing-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
96
68
  --hairline-color: var(--color-outline-primary);
97
- }
98
- @supports (color: color(display-p3 1 1 1)) {
99
- :host {
100
- --color-theme-pink-solid: color(display-p3 0.9490196078 0.1960784314 0.4039215686/100%);
101
- --color-theme-red-solid: color(display-p3 0.9490196078 0.231372549 0.1333333333/100%);
102
- --color-theme-orange-solid: color(display-p3 0.9960784314 0.4470588235 0/100%);
103
- --color-theme-green-solid: color(display-p3 0.3647058824 0.5725490196 0/100%);
104
- --color-theme-cyan-solid: color(display-p3 0 0.568627451 0.7058823529/100%);
105
- --color-theme-blue-solid: color(display-p3 0.3058823529 0.5058823529 0.9529411765/100%);
106
- --color-theme-violet-solid: color(display-p3 0.6823529412 0.368627451 0.9529411765/100%);
107
- --color-theme-pink-translucent: color(display-p3 0.9490196078 0.1960784314 0.4039215686/16%);
108
- --color-theme-red-translucent: color(display-p3 0.9490196078 0.231372549 0.1333333333/16%);
109
- --color-theme-orange-translucent: color(display-p3 0.9960784314 0.4470588235 0/16%);
110
- --color-theme-green-translucent: color(display-p3 0.3647058824 0.5725490196 0/16%);
111
- --color-theme-cyan-translucent: color(display-p3 0 0.568627451 0.7058823529/16%);
112
- --color-theme-blue-translucent: color(display-p3 0.3058823529 0.5058823529 0.9529411765/16%);
113
- --color-theme-violet-translucent: color(display-p3 0.6823529412 0.368627451 0.9529411765/16%);
114
- --color-on-theme: color(display-p3 1 1 1/100%);
115
- --color-surface-primary: color(display-p3 1 1 1/100%);
116
- --color-surface-secondary: color(display-p3 0.9529411765 0.9529411765 0.9529411765/100%);
117
- --color-surface-tertiary: color(display-p3 1 1 1/100%);
118
- --color-shade-primary: color(display-p3 0.4666666667 0.4666666667 0.4666666667/10%);
119
- --color-shade-secondary: color(display-p3 0.4666666667 0.4666666667 0.4666666667/16%);
120
- --color-shade-tertiary: color(display-p3 0.4666666667 0.4666666667 0.4666666667/22%);
121
- --color-foreground-primary: color(display-p3 0 0 0/94%);
122
- --color-foreground-secondary: color(display-p3 0.3882352941 0.3882352941 0.3882352941/90%);
123
- --color-foreground-tertiary: color(display-p3 0.3882352941 0.3882352941 0.3882352941/58%);
124
- --color-outline-primary: color(display-p3 0.4666666667 0.4666666667 0.4666666667/16%);
125
- --color-outline-secondary: color(display-p3 0.4666666667 0.4666666667 0.4666666667/26%);
126
- --color-overlay: color(display-p3 0 0 0/26%);
127
- --color-shadow: color(display-p3 0 0 0/6%);
128
- }
69
+ --color-theme-pink-solid-light: #f23267;
70
+ --color-theme-red-solid-light: #f23b22;
71
+ --color-theme-orange-solid-light: #fe7200;
72
+ --color-theme-green-solid-light: #5d9200;
73
+ --color-theme-cyan-solid-light: #0091b4;
74
+ --color-theme-blue-solid-light: #4e81f3;
75
+ --color-theme-violet-solid-light: #ae5ef3;
76
+ --color-theme-pink-translucent-light: rgba(242, 50, 103, 0.16);
77
+ --color-theme-red-translucent-light: rgba(242, 59, 34, 0.16);
78
+ --color-theme-orange-translucent-light: rgba(254, 114, 0, 0.16);
79
+ --color-theme-green-translucent-light: rgba(93, 146, 0, 0.16);
80
+ --color-theme-cyan-translucent-light: rgba(0, 145, 180, 0.16);
81
+ --color-theme-blue-translucent-light: rgba(78, 129, 243, 0.16);
82
+ --color-theme-violet-translucent-light: rgba(174, 94, 243, 0.16);
83
+ --color-on-theme-light: white;
84
+ --color-surface-primary-light: white;
85
+ --color-surface-secondary-light: #f3f3f3;
86
+ --color-surface-tertiary-light: white;
87
+ --color-shade-primary-light: rgba(119, 119, 119, 0.1);
88
+ --color-shade-secondary-light: rgba(119, 119, 119, 0.16);
89
+ --color-shade-tertiary-light: rgba(119, 119, 119, 0.22);
90
+ --color-foreground-primary-light: rgba(0, 0, 0, 0.94);
91
+ --color-foreground-secondary-light: rgba(99, 99, 99, 0.9);
92
+ --color-foreground-tertiary-light: rgba(99, 99, 99, 0.58);
93
+ --color-outline-primary-light: #e2e2e2;
94
+ --color-outline-secondary-light: #d1d1d1;
95
+ --color-overlay-light: rgba(0, 0, 0, 0.26);
96
+ --color-shadow-light: rgba(0, 0, 0, 0.06);
97
+ --color-theme-pink-solid-dark: #ff4171;
98
+ --color-theme-red-solid-dark: #ff482c;
99
+ --color-theme-orange-solid-dark: #ff811c;
100
+ --color-theme-green-solid-dark: #679c15;
101
+ --color-theme-cyan-solid-dark: #209bbf;
102
+ --color-theme-blue-solid-dark: #5b8bff;
103
+ --color-theme-violet-solid-dark: #ba69ff;
104
+ --color-theme-pink-translucent-dark: rgba(255, 65, 113, 0.26);
105
+ --color-theme-red-translucent-dark: rgba(255, 72, 44, 0.26);
106
+ --color-theme-orange-translucent-dark: rgba(255, 129, 28, 0.26);
107
+ --color-theme-green-translucent-dark: rgba(103, 156, 21, 0.26);
108
+ --color-theme-cyan-translucent-dark: rgba(32, 155, 191, 0.26);
109
+ --color-theme-blue-translucent-dark: rgba(91, 139, 255, 0.26);
110
+ --color-theme-violet-translucent-dark: rgba(186, 105, 255, 0.26);
111
+ --color-on-theme-dark: black;
112
+ --color-surface-primary-dark: black;
113
+ --color-surface-secondary-dark: #1b1b1b;
114
+ --color-surface-tertiary-dark: #282828;
115
+ --color-shade-primary-dark: rgba(119, 119, 119, 0.28);
116
+ --color-shade-secondary-dark: rgba(119, 119, 119, 0.34);
117
+ --color-shade-tertiary-dark: rgba(119, 119, 119, 0.4);
118
+ --color-foreground-primary-dark: rgba(255, 255, 255, 0.94);
119
+ --color-foreground-secondary-dark: rgba(139, 139, 139, 0.9);
120
+ --color-foreground-tertiary-dark: rgba(139, 139, 139, 0.58);
121
+ --color-outline-primary-dark: #3e3e3e;
122
+ --color-outline-secondary-dark: #4b4b4b;
123
+ --color-overlay-dark: rgba(0, 0, 0, 0.68);
124
+ --color-shadow-dark: rgba(0, 0, 0, 0.1);
129
125
  }
130
126
  @media (-webkit-min-device-pixel-ratio: 1), (min-device-pixel-ratio: 1) {
131
127
  :host {
@@ -150,68 +146,163 @@
150
146
  --hairline-color: var(--color-outline-secondary);
151
147
  }
152
148
  }
153
- @media (prefers-color-scheme: dark) {
149
+ @supports (color: color(display-p3 1 1 1)) {
154
150
  :host {
155
- --color-theme-pink-solid: #ff4171;
156
- --color-theme-red-solid: #ff482c;
157
- --color-theme-orange-solid: #ff811c;
158
- --color-theme-green-solid: #679c15;
159
- --color-theme-cyan-solid: #209bbf;
160
- --color-theme-blue-solid: #5b8bff;
161
- --color-theme-violet-solid: #ba69ff;
162
- --color-theme-pink-translucent: rgba(255, 65, 113, 0.26);
163
- --color-theme-red-translucent: rgba(255, 72, 44, 0.26);
164
- --color-theme-orange-translucent: rgba(255, 129, 28, 0.26);
165
- --color-theme-green-translucent: rgba(103, 156, 21, 0.26);
166
- --color-theme-cyan-translucent: rgba(32, 155, 191, 0.26);
167
- --color-theme-blue-translucent: rgba(91, 139, 255, 0.26);
168
- --color-theme-violet-translucent: rgba(186, 105, 255, 0.26);
169
- --color-on-theme: black;
170
- --color-surface-primary: black;
171
- --color-surface-secondary: #1b1b1b;
172
- --color-surface-tertiary: #282828;
173
- --color-shade-primary: rgba(119, 119, 119, 0.28);
174
- --color-shade-secondary: rgba(119, 119, 119, 0.34);
175
- --color-shade-tertiary: rgba(119, 119, 119, 0.4);
176
- --color-foreground-primary: rgba(255, 255, 255, 0.94);
177
- --color-foreground-secondary: rgba(139, 139, 139, 0.9);
178
- --color-foreground-tertiary: rgba(139, 139, 139, 0.58);
179
- --color-outline-primary: rgba(119, 119, 119, 0.26);
180
- --color-outline-secondary: rgba(119, 119, 119, 0.32);
181
- --color-overlay: rgba(0, 0, 0, 0.68);
182
- --color-shadow: rgba(0, 0, 0, 0.1);
151
+ --color-theme-pink-solid-light: color(display-p3 0.9490196078 0.1960784314 0.4039215686/100%);
152
+ --color-theme-red-solid-light: color(display-p3 0.9490196078 0.231372549 0.1333333333/100%);
153
+ --color-theme-orange-solid-light: color(display-p3 0.9960784314 0.4470588235 0/100%);
154
+ --color-theme-green-solid-light: color(display-p3 0.3647058824 0.5725490196 0/100%);
155
+ --color-theme-cyan-solid-light: color(display-p3 0 0.568627451 0.7058823529/100%);
156
+ --color-theme-blue-solid-light: color(display-p3 0.3058823529 0.5058823529 0.9529411765/100%);
157
+ --color-theme-violet-solid-light: color(display-p3 0.6823529412 0.368627451 0.9529411765/100%);
158
+ --color-theme-pink-translucent-light: color(display-p3 0.9490196078 0.1960784314 0.4039215686/16%);
159
+ --color-theme-red-translucent-light: color(display-p3 0.9490196078 0.231372549 0.1333333333/16%);
160
+ --color-theme-orange-translucent-light: color(display-p3 0.9960784314 0.4470588235 0/16%);
161
+ --color-theme-green-translucent-light: color(display-p3 0.3647058824 0.5725490196 0/16%);
162
+ --color-theme-cyan-translucent-light: color(display-p3 0 0.568627451 0.7058823529/16%);
163
+ --color-theme-blue-translucent-light: color(display-p3 0.3058823529 0.5058823529 0.9529411765/16%);
164
+ --color-theme-violet-translucent-light: color(display-p3 0.6823529412 0.368627451 0.9529411765/16%);
165
+ --color-on-theme-light: color(display-p3 1 1 1/100%);
166
+ --color-surface-primary-light: color(display-p3 1 1 1/100%);
167
+ --color-surface-secondary-light: color(display-p3 0.9529411765 0.9529411765 0.9529411765/100%);
168
+ --color-surface-tertiary-light: color(display-p3 1 1 1/100%);
169
+ --color-shade-primary-light: color(display-p3 0.4666666667 0.4666666667 0.4666666667/10%);
170
+ --color-shade-secondary-light: color(display-p3 0.4666666667 0.4666666667 0.4666666667/16%);
171
+ --color-shade-tertiary-light: color(display-p3 0.4666666667 0.4666666667 0.4666666667/22%);
172
+ --color-foreground-primary-light: color(display-p3 0 0 0/94%);
173
+ --color-foreground-secondary-light: color(display-p3 0.3882352941 0.3882352941 0.3882352941/90%);
174
+ --color-foreground-tertiary-light: color(display-p3 0.3882352941 0.3882352941 0.3882352941/58%);
175
+ --color-outline-primary-light: color(display-p3 0.8862745098 0.8862745098 0.8862745098/100%);
176
+ --color-outline-secondary-light: color(display-p3 0.8196078431 0.8196078431 0.8196078431/100%);
177
+ --color-overlay-light: color(display-p3 0 0 0/26%);
178
+ --color-shadow-light: color(display-p3 0 0 0/6%);
183
179
  }
184
- @supports (color: color(display-p3 1 1 1)) {
185
- :host {
186
- --color-theme-pink-solid: color(display-p3 1 0.2549019608 0.4431372549/100%);
187
- --color-theme-red-solid: color(display-p3 1 0.2823529412 0.1725490196/100%);
188
- --color-theme-orange-solid: color(display-p3 1 0.5058823529 0.1098039216/100%);
189
- --color-theme-green-solid: color(display-p3 0.4039215686 0.6117647059 0.0823529412/100%);
190
- --color-theme-cyan-solid: color(display-p3 0.1254901961 0.6078431373 0.7490196078/100%);
191
- --color-theme-blue-solid: color(display-p3 0.3568627451 0.5450980392 1/100%);
192
- --color-theme-violet-solid: color(display-p3 0.7294117647 0.4117647059 1/100%);
193
- --color-theme-pink-translucent: color(display-p3 1 0.2549019608 0.4431372549/26%);
194
- --color-theme-red-translucent: color(display-p3 1 0.2823529412 0.1725490196/26%);
195
- --color-theme-orange-translucent: color(display-p3 1 0.5058823529 0.1098039216/26%);
196
- --color-theme-green-translucent: color(display-p3 0.4039215686 0.6117647059 0.0823529412/26%);
197
- --color-theme-cyan-translucent: color(display-p3 0.1254901961 0.6078431373 0.7490196078/26%);
198
- --color-theme-blue-translucent: color(display-p3 0.3568627451 0.5450980392 1/26%);
199
- --color-theme-violet-translucent: color(display-p3 0.7294117647 0.4117647059 1/26%);
200
- --color-on-theme: color(display-p3 0 0 0/100%);
201
- --color-surface-primary: color(display-p3 0 0 0/100%);
202
- --color-surface-secondary: color(display-p3 0.1058823529 0.1058823529 0.1058823529/100%);
203
- --color-surface-tertiary: color(display-p3 0.1568627451 0.1568627451 0.1568627451/100%);
204
- --color-shade-primary: color(display-p3 0.4666666667 0.4666666667 0.4666666667/28%);
205
- --color-shade-secondary: color(display-p3 0.4666666667 0.4666666667 0.4666666667/34%);
206
- --color-shade-tertiary: color(display-p3 0.4666666667 0.4666666667 0.4666666667/40%);
207
- --color-foreground-primary: color(display-p3 1 1 1/94%);
208
- --color-foreground-secondary: color(display-p3 0.5450980392 0.5450980392 0.5450980392/90%);
209
- --color-foreground-tertiary: color(display-p3 0.5450980392 0.5450980392 0.5450980392/58%);
210
- --color-outline-primary: color(display-p3 0.4666666667 0.4666666667 0.4666666667/26%);
211
- --color-outline-secondary: color(display-p3 0.4666666667 0.4666666667 0.4666666667/32%);
212
- --color-overlay: color(display-p3 0 0 0/68%);
213
- --color-shadow: color(display-p3 0 0 0/10%);
214
- }
180
+ }
181
+ @supports (color: color(display-p3 1 1 1)) {
182
+ :host {
183
+ --color-theme-pink-solid-dark: color(display-p3 1 0.2549019608 0.4431372549/100%);
184
+ --color-theme-red-solid-dark: color(display-p3 1 0.2823529412 0.1725490196/100%);
185
+ --color-theme-orange-solid-dark: color(display-p3 1 0.5058823529 0.1098039216/100%);
186
+ --color-theme-green-solid-dark: color(display-p3 0.4039215686 0.6117647059 0.0823529412/100%);
187
+ --color-theme-cyan-solid-dark: color(display-p3 0.1254901961 0.6078431373 0.7490196078/100%);
188
+ --color-theme-blue-solid-dark: color(display-p3 0.3568627451 0.5450980392 1/100%);
189
+ --color-theme-violet-solid-dark: color(display-p3 0.7294117647 0.4117647059 1/100%);
190
+ --color-theme-pink-translucent-dark: color(display-p3 1 0.2549019608 0.4431372549/26%);
191
+ --color-theme-red-translucent-dark: color(display-p3 1 0.2823529412 0.1725490196/26%);
192
+ --color-theme-orange-translucent-dark: color(display-p3 1 0.5058823529 0.1098039216/26%);
193
+ --color-theme-green-translucent-dark: color(display-p3 0.4039215686 0.6117647059 0.0823529412/26%);
194
+ --color-theme-cyan-translucent-dark: color(display-p3 0.1254901961 0.6078431373 0.7490196078/26%);
195
+ --color-theme-blue-translucent-dark: color(display-p3 0.3568627451 0.5450980392 1/26%);
196
+ --color-theme-violet-translucent-dark: color(display-p3 0.7294117647 0.4117647059 1/26%);
197
+ --color-on-theme-dark: color(display-p3 0 0 0/100%);
198
+ --color-surface-primary-dark: color(display-p3 0 0 0/100%);
199
+ --color-surface-secondary-dark: color(display-p3 0.1058823529 0.1058823529 0.1058823529/100%);
200
+ --color-surface-tertiary-dark: color(display-p3 0.1568627451 0.1568627451 0.1568627451/100%);
201
+ --color-shade-primary-dark: color(display-p3 0.4666666667 0.4666666667 0.4666666667/28%);
202
+ --color-shade-secondary-dark: color(display-p3 0.4666666667 0.4666666667 0.4666666667/34%);
203
+ --color-shade-tertiary-dark: color(display-p3 0.4666666667 0.4666666667 0.4666666667/40%);
204
+ --color-foreground-primary-dark: color(display-p3 1 1 1/94%);
205
+ --color-foreground-secondary-dark: color(display-p3 0.5450980392 0.5450980392 0.5450980392/90%);
206
+ --color-foreground-tertiary-dark: color(display-p3 0.5450980392 0.5450980392 0.5450980392/58%);
207
+ --color-outline-primary-dark: color(display-p3 0.2431372549 0.2431372549 0.2431372549/100%);
208
+ --color-outline-secondary-dark: color(display-p3 0.2941176471 0.2941176471 0.2941176471/100%);
209
+ --color-overlay-dark: color(display-p3 0 0 0/68%);
210
+ --color-shadow-dark: color(display-p3 0 0 0/10%);
211
+ }
212
+ }
213
+ :host,
214
+ :host(.light) {
215
+ --color-theme-pink-solid: var(--color-theme-pink-solid-light);
216
+ --color-theme-red-solid: var(--color-theme-red-solid-light);
217
+ --color-theme-orange-solid: var(--color-theme-orange-solid-light);
218
+ --color-theme-green-solid: var(--color-theme-green-solid-light);
219
+ --color-theme-cyan-solid: var(--color-theme-cyan-solid-light);
220
+ --color-theme-blue-solid: var(--color-theme-blue-solid-light);
221
+ --color-theme-violet-solid: var(--color-theme-violet-solid-light);
222
+ --color-theme-pink-translucent: var(--color-theme-pink-translucent-light);
223
+ --color-theme-red-translucent: var(--color-theme-red-translucent-light);
224
+ --color-theme-orange-translucent: var(--color-theme-orange-translucent-light);
225
+ --color-theme-green-translucent: var(--color-theme-green-translucent-light);
226
+ --color-theme-cyan-translucent: var(--color-theme-cyan-translucent-light);
227
+ --color-theme-blue-translucent: var(--color-theme-blue-translucent-light);
228
+ --color-theme-violet-translucent: var(--color-theme-violet-translucent-light);
229
+ --color-on-theme: var(--color-on-theme-light);
230
+ --color-surface-primary: var(--color-surface-primary-light);
231
+ --color-surface-secondary: var(--color-surface-secondary-light);
232
+ --color-surface-tertiary: var(--color-surface-tertiary-light);
233
+ --color-shade-primary: var(--color-shade-primary-light);
234
+ --color-shade-secondary: var(--color-shade-secondary-light);
235
+ --color-shade-tertiary: var(--color-shade-tertiary-light);
236
+ --color-foreground-primary: var(--color-foreground-primary-light);
237
+ --color-foreground-secondary: var(--color-foreground-secondary-light);
238
+ --color-foreground-tertiary: var(--color-foreground-tertiary-light);
239
+ --color-outline-primary: var(--color-outline-primary-light);
240
+ --color-outline-secondary: var(--color-outline-secondary-light);
241
+ --color-overlay: var(--color-overlay-light);
242
+ --color-shadow: var(--color-shadow-light);
243
+ }
244
+
245
+ :host(.dark) {
246
+ --color-theme-pink-solid: var(--color-theme-pink-solid-dark);
247
+ --color-theme-red-solid: var(--color-theme-red-solid-dark);
248
+ --color-theme-orange-solid: var(--color-theme-orange-solid-dark);
249
+ --color-theme-green-solid: var(--color-theme-green-solid-dark);
250
+ --color-theme-cyan-solid: var(--color-theme-cyan-solid-dark);
251
+ --color-theme-blue-solid: var(--color-theme-blue-solid-dark);
252
+ --color-theme-violet-solid: var(--color-theme-violet-solid-dark);
253
+ --color-theme-pink-translucent: var(--color-theme-pink-translucent-dark);
254
+ --color-theme-red-translucent: var(--color-theme-red-translucent-dark);
255
+ --color-theme-orange-translucent: var(--color-theme-orange-translucent-dark);
256
+ --color-theme-green-translucent: var(--color-theme-green-translucent-dark);
257
+ --color-theme-cyan-translucent: var(--color-theme-cyan-translucent-dark);
258
+ --color-theme-blue-translucent: var(--color-theme-blue-translucent-dark);
259
+ --color-theme-violet-translucent: var(--color-theme-violet-translucent-dark);
260
+ --color-on-theme: var(--color-on-theme-dark);
261
+ --color-surface-primary: var(--color-surface-primary-dark);
262
+ --color-surface-secondary: var(--color-surface-secondary-dark);
263
+ --color-surface-tertiary: var(--color-surface-tertiary-dark);
264
+ --color-shade-primary: var(--color-shade-primary-dark);
265
+ --color-shade-secondary: var(--color-shade-secondary-dark);
266
+ --color-shade-tertiary: var(--color-shade-tertiary-dark);
267
+ --color-foreground-primary: var(--color-foreground-primary-dark);
268
+ --color-foreground-secondary: var(--color-foreground-secondary-dark);
269
+ --color-foreground-tertiary: var(--color-foreground-tertiary-dark);
270
+ --color-outline-primary: var(--color-outline-primary-dark);
271
+ --color-outline-secondary: var(--color-outline-secondary-dark);
272
+ --color-overlay: var(--color-overlay-dark);
273
+ --color-shadow: var(--color-shadow-dark);
274
+ }
275
+
276
+ @media (prefers-color-scheme: dark) {
277
+ :host {
278
+ --color-theme-pink-solid: var(--color-theme-pink-solid-dark);
279
+ --color-theme-red-solid: var(--color-theme-red-solid-dark);
280
+ --color-theme-orange-solid: var(--color-theme-orange-solid-dark);
281
+ --color-theme-green-solid: var(--color-theme-green-solid-dark);
282
+ --color-theme-cyan-solid: var(--color-theme-cyan-solid-dark);
283
+ --color-theme-blue-solid: var(--color-theme-blue-solid-dark);
284
+ --color-theme-violet-solid: var(--color-theme-violet-solid-dark);
285
+ --color-theme-pink-translucent: var(--color-theme-pink-translucent-dark);
286
+ --color-theme-red-translucent: var(--color-theme-red-translucent-dark);
287
+ --color-theme-orange-translucent: var(--color-theme-orange-translucent-dark);
288
+ --color-theme-green-translucent: var(--color-theme-green-translucent-dark);
289
+ --color-theme-cyan-translucent: var(--color-theme-cyan-translucent-dark);
290
+ --color-theme-blue-translucent: var(--color-theme-blue-translucent-dark);
291
+ --color-theme-violet-translucent: var(--color-theme-violet-translucent-dark);
292
+ --color-on-theme: var(--color-on-theme-dark);
293
+ --color-surface-primary: var(--color-surface-primary-dark);
294
+ --color-surface-secondary: var(--color-surface-secondary-dark);
295
+ --color-surface-tertiary: var(--color-surface-tertiary-dark);
296
+ --color-shade-primary: var(--color-shade-primary-dark);
297
+ --color-shade-secondary: var(--color-shade-secondary-dark);
298
+ --color-shade-tertiary: var(--color-shade-tertiary-dark);
299
+ --color-foreground-primary: var(--color-foreground-primary-dark);
300
+ --color-foreground-secondary: var(--color-foreground-secondary-dark);
301
+ --color-foreground-tertiary: var(--color-foreground-tertiary-dark);
302
+ --color-outline-primary: var(--color-outline-primary-dark);
303
+ --color-outline-secondary: var(--color-outline-secondary-dark);
304
+ --color-overlay: var(--color-overlay-dark);
305
+ --color-shadow: var(--color-shadow-dark);
215
306
  }
216
307
  }
217
308
  :host(.blue) {
@@ -6,6 +6,7 @@ import config from '../../shared/config.json';
6
6
  export class EzpPrinting {
7
7
  constructor() {
8
8
  this.theme = 'cyan';
9
+ this.appearance = 'system';
9
10
  /**
10
11
  *
11
12
  * States
@@ -69,6 +70,7 @@ export class EzpPrinting {
69
70
  componentWillLoad() {
70
71
  authStore.state.redirectUri = this.redirecturi;
71
72
  userStore.state.theme = this.theme;
73
+ userStore.state.appearance = this.appearance;
72
74
  if (this.authapihosturl) {
73
75
  authStore.state.authApiHostUrl = this.authapihosturl;
74
76
  }
@@ -90,7 +92,7 @@ export class EzpPrinting {
90
92
  *
91
93
  */
92
94
  render() {
93
- return (h(Host, { class: userStore.state.theme }, 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 })) : this.custom ? (h("slot", null)) : (h("ezp-icon-button", { id: "print-trigger", icon: "printer", slot: "trigger", type: "button", onClick: () => this.open() }))));
95
+ return (h(Host, { class: `${userStore.state.theme} ${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 })) : this.custom ? (h("slot", null)) : (h("ezp-icon-button", { id: "print-trigger", icon: "printer", slot: "trigger", type: "button", onClick: () => this.open() }))));
94
96
  }
95
97
  static get is() { return "ezp-printing"; }
96
98
  static get encapsulation() { return "shadow"; }
@@ -276,6 +278,29 @@ export class EzpPrinting {
276
278
  "attribute": "theme",
277
279
  "reflect": false,
278
280
  "defaultValue": "'cyan'"
281
+ },
282
+ "appearance": {
283
+ "type": "string",
284
+ "mutable": false,
285
+ "complexType": {
286
+ "original": "AppearanceTypes",
287
+ "resolved": "\"dark\" | \"light\" | \"system\"",
288
+ "references": {
289
+ "AppearanceTypes": {
290
+ "location": "import",
291
+ "path": "./../../shared/types"
292
+ }
293
+ }
294
+ },
295
+ "required": false,
296
+ "optional": false,
297
+ "docs": {
298
+ "tags": [],
299
+ "text": ""
300
+ },
301
+ "attribute": "appearance",
302
+ "reflect": false,
303
+ "defaultValue": "'system'"
279
304
  }
280
305
  }; }
281
306
  static get states() { return {
@@ -75,7 +75,7 @@
75
75
 
76
76
  #track {
77
77
  fill: none;
78
- stroke: var(--color-outline-secondary);
78
+ stroke: var(--color-outline-primary);
79
79
  stroke-width: var(--stroke-width);
80
80
  }
81
81
 
@@ -145,7 +145,7 @@ export class EzpSelect {
145
145
  "mutable": false,
146
146
  "complexType": {
147
147
  "original": "IconNameTypes",
148
- "resolved": "\"account\" | \"checkmark\" | \"close\" | \"color\" | \"copies\" | \"duplex\" | \"expand\" | \"help\" | \"logout\" | \"menu\" | \"minus\" | \"orientation\" | \"plus\" | \"printer\" | \"quality\" | \"size\"",
148
+ "resolved": "\"account\" | \"checkmark\" | \"close\" | \"color\" | \"copies\" | \"dark\" | \"duplex\" | \"expand\" | \"help\" | \"light\" | \"logout\" | \"menu\" | \"minus\" | \"orientation\" | \"plus\" | \"printer\" | \"quality\" | \"size\" | \"system\"",
149
149
  "references": {
150
150
  "IconNameTypes": {
151
151
  "location": "import",
@@ -91,7 +91,7 @@ export class EzpStepper {
91
91
  "mutable": false,
92
92
  "complexType": {
93
93
  "original": "IconNameTypes",
94
- "resolved": "\"account\" | \"checkmark\" | \"close\" | \"color\" | \"copies\" | \"duplex\" | \"expand\" | \"help\" | \"logout\" | \"menu\" | \"minus\" | \"orientation\" | \"plus\" | \"printer\" | \"quality\" | \"size\"",
94
+ "resolved": "\"account\" | \"checkmark\" | \"close\" | \"color\" | \"copies\" | \"dark\" | \"duplex\" | \"expand\" | \"help\" | \"light\" | \"logout\" | \"menu\" | \"minus\" | \"orientation\" | \"plus\" | \"printer\" | \"quality\" | \"size\" | \"system\"",
95
95
  "references": {
96
96
  "IconNameTypes": {
97
97
  "location": "import",
@@ -75,7 +75,6 @@
75
75
  }
76
76
 
77
77
  #links {
78
- box-shadow: 0 var(--hairline-width-positive) 0 0 var(--hairline-color);
79
78
  display: flex;
80
79
  flex-direction: column;
81
80
  padding: var(--spacing-2);
@@ -102,6 +101,7 @@
102
101
  }
103
102
 
104
103
  #theme {
104
+ box-shadow: inset 0 var(--hairline-width-positive) 0 0 var(--hairline-color);
105
105
  display: grid;
106
106
  gap: var(--spacing-3);
107
107
  grid-template: repeat(2, auto)/1fr;
@@ -182,6 +182,50 @@
182
182
  width: 18px;
183
183
  }
184
184
 
185
+ #appearance {
186
+ box-shadow: inset 0 var(--hairline-width-positive) 0 0 var(--hairline-color);
187
+ display: grid;
188
+ gap: var(--spacing-3);
189
+ grid-template: repeat(2, auto)/1fr;
190
+ padding: var(--spacing-4) var(--spacing-4) var(--spacing-3);
191
+ }
192
+
193
+ #tabs {
194
+ display: grid;
195
+ grid-template: auto/repeat(3, 1fr);
196
+ margin: 0 calc(var(--spacing-2) * -1);
197
+ }
198
+
199
+ .tab {
200
+ --icon-height: 8px;
201
+ align-items: center;
202
+ appearance: none;
203
+ background: var(--tab-background, transparent);
204
+ border: 0;
205
+ border-radius: 14px;
206
+ color: var(--tab-color, var(--color-foreground-secondary));
207
+ cursor: var(--tab-cursor, pointer);
208
+ display: flex;
209
+ gap: var(--spacing-2);
210
+ justify-content: center;
211
+ margin: 0;
212
+ outline: none;
213
+ padding: var(--spacing-3) var(--spacing-3) var(--spacing-3) var(--spacing-2);
214
+ }
215
+ @media (hover: hover) {
216
+ .tab:not(.selected):hover {
217
+ --tab-background: var(--color-shade-primary);
218
+ }
219
+ .tab:not(.selected):active {
220
+ --tab-background: var(--color-shade-secondary);
221
+ }
222
+ }
223
+ .tab.selected {
224
+ --tab-background: var(--color-theme-translucent);
225
+ --tab-color: var(--color-theme-solid);
226
+ --tab-cursor: normal;
227
+ }
228
+
185
229
  @keyframes dot-bounce {
186
230
  0% {
187
231
  transform: scale(1, 1);
@@ -17,6 +17,11 @@ export class EzpUserMenu {
17
17
  },
18
18
  ];
19
19
  this.themes = ['pink', 'red', 'orange', 'green', 'cyan', 'blue', 'violet'];
20
+ this.appearances = [
21
+ { title: 'System', name: 'system' },
22
+ { title: 'Light', name: 'light' },
23
+ { title: 'Dark', name: 'dark' },
24
+ ];
20
25
  this.name = 'John Doe';
21
26
  this.open = false;
22
27
  this.handleClose = () => {
@@ -30,6 +35,9 @@ export class EzpUserMenu {
30
35
  this.handleTheme = (theme) => {
31
36
  userStore.state.theme = theme;
32
37
  };
38
+ this.handleAppearance = (appearance) => {
39
+ userStore.state.appearance = appearance;
40
+ };
33
41
  }
34
42
  /**
35
43
  *
@@ -83,9 +91,14 @@ export class EzpUserMenu {
83
91
  h("ezp-icon", { class: "link__icon", name: "logout" }),
84
92
  h("ezp-label", { text: "Logout" }))),
85
93
  h("div", { id: "theme" },
86
- h("ezp-label", { text: "Color Theme:" }),
94
+ h("ezp-label", { text: "Color Theme:", weight: "strong" }),
87
95
  h("div", { id: "swatches" }, this.themes.map((theme) => (h("button", { class: `swatch swatch--${theme} ${theme === userStore.state.theme ? 'selected' : ''}`, onClick: () => this.handleTheme(theme) },
88
- h("span", { class: "dot" }))))))));
96
+ h("span", { class: "dot" })))))),
97
+ h("div", { id: "appearance" },
98
+ h("ezp-label", { text: "Appearance:", weight: "strong" }),
99
+ h("div", { id: "tabs" }, this.appearances.map((appearance) => (h("button", { class: `tab ${appearance.name === userStore.state.appearance ? 'selected' : ''}`, onClick: () => this.handleAppearance(appearance.name) },
100
+ h("ezp-icon", { name: appearance.name }),
101
+ h("ezp-label", { text: appearance.title, level: "tertiary", weight: "strong" }))))))));
89
102
  }
90
103
  static get is() { return "ezp-user-menu"; }
91
104
  static get encapsulation() { return "shadow"; }
@@ -16,5 +16,6 @@ export class EzpUserService {
16
16
  const userStore = createStore({
17
17
  user: null,
18
18
  theme: '',
19
+ appearance: '',
19
20
  });
20
21
  export default userStore;