@ezeep/ezeep-js 1.0.136 → 1.0.140

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 (56) hide show
  1. package/dist/cjs/ezeep.cjs.js +1 -1
  2. package/dist/cjs/ezp-auth_12.cjs.entry.js +126 -46
  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 +109 -38
  12. package/dist/collection/components/ezp-printing/ezp-printing.css +211 -120
  13. package/dist/collection/components/ezp-printing/ezp-printing.js +43 -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/print.js +17 -1
  20. package/dist/collection/services/user.js +1 -0
  21. package/dist/custom-elements/index.js +128 -48
  22. package/dist/directives/proxies.ts +4 -4
  23. package/dist/esm/ezeep.js +1 -1
  24. package/dist/esm/ezp-auth_12.entry.js +126 -46
  25. package/dist/esm/loader.js +1 -1
  26. package/dist/esm-es5/ezeep.js +1 -1
  27. package/dist/esm-es5/ezp-auth_12.entry.js +1 -1
  28. package/dist/esm-es5/loader.js +1 -1
  29. package/dist/ezeep/assets/glyph-dark.svg +3 -0
  30. package/dist/ezeep/assets/glyph-light.svg +3 -0
  31. package/dist/ezeep/assets/glyph-system.svg +3 -0
  32. package/dist/ezeep/ezeep.esm.js +1 -1
  33. package/dist/ezeep/p-0711b970.entry.js +1 -0
  34. package/dist/ezeep/p-c488ee3f.system.js +1 -1
  35. package/dist/ezeep/p-e8c8adc1.system.entry.js +1 -0
  36. package/dist/types/components/ezp-printer-selection/ezp-printer-selection.d.ts +3 -1
  37. package/dist/types/components/ezp-printing/ezp-printing.d.ts +3 -1
  38. package/dist/types/components/ezp-user-menu/ezp-user-menu.d.ts +2 -0
  39. package/dist/types/components.d.ts +7 -1
  40. package/dist/types/services/print.d.ts +8 -1
  41. package/dist/types/services/user.d.ts +1 -0
  42. package/dist/types/shared/types.d.ts +4 -0
  43. package/package.json +1 -1
  44. package/readme.md +27 -3
  45. package/www/build/assets/glyph-dark.svg +3 -0
  46. package/www/build/assets/glyph-light.svg +3 -0
  47. package/www/build/assets/glyph-system.svg +3 -0
  48. package/www/build/ezeep.esm.js +1 -1
  49. package/www/build/p-0711b970.entry.js +1 -0
  50. package/www/build/p-c488ee3f.system.js +1 -1
  51. package/www/build/p-e8c8adc1.system.entry.js +1 -0
  52. package/www/index.html +1 -1
  53. package/dist/ezeep/p-12ca28b7.system.entry.js +0 -1
  54. package/dist/ezeep/p-f4d2e700.entry.js +0 -1
  55. package/www/build/p-12ca28b7.system.entry.js +0 -1
  56. package/www/build/p-f4d2e700.entry.js +0 -1
@@ -35,7 +35,7 @@ export class EzpPrinterSelection {
35
35
  this.selectedProperties = {
36
36
  paper: '',
37
37
  paperid: '',
38
- color: '',
38
+ color: false,
39
39
  duplex: false,
40
40
  duplexmode: '',
41
41
  orientation: '',
@@ -45,7 +45,7 @@ export class EzpPrinterSelection {
45
45
  this.previouslySelectedProperties = {
46
46
  paper: '',
47
47
  paperid: '',
48
- color: '',
48
+ color: false,
49
49
  duplex: false,
50
50
  duplexmode: '',
51
51
  orientation: '',
@@ -63,39 +63,88 @@ export class EzpPrinterSelection {
63
63
  };
64
64
  /** Description... */
65
65
  this.handlePrint = () => {
66
+ const validateData = (data) => {
67
+ if (data.jobstatus === 0) {
68
+ this.printInProgress = false;
69
+ return true;
70
+ }
71
+ return false;
72
+ };
73
+ const POLL_INTERVAL = 2000;
66
74
  this.printInProgress = true;
67
- this.printService
68
- .printFileByUrl(authStore.state.accessToken, this.fileurl, this.filetype, this.selectedPrinter.id,
69
75
  // we have to initialse this obj with empty strings to display the select component
70
76
  // but don't want to send any attributes with empty strings to the API
71
- removeEmptyStrings(this.selectedProperties), this.filename)
72
- .then((data) => {
73
- if (data.jobid) {
74
- printStore.state.jobID = data.jobid;
75
- const POLL_INTERVAL = 2000;
76
- const validateData = (data) => {
77
- if (data.jobstatus === 0) {
77
+ removeEmptyStrings(this.selectedProperties);
78
+ // put it in store for further use
79
+ printStore.state.fileUrl = this.fileurl;
80
+ printStore.state.fileID = this.fileid;
81
+ printStore.state.fileType = this.filetype;
82
+ printStore.state.printerID = this.selectedPrinter.id;
83
+ printStore.state.printerProperties = this.selectedProperties;
84
+ printStore.state.fileName = this.filename;
85
+ if (this.fileurl) {
86
+ this.printService
87
+ .printFileByUrl(authStore.state.accessToken, this.fileurl, this.filetype, this.selectedPrinter.id, this.selectedProperties, this.filename)
88
+ .then((response) => {
89
+ if (response.status === 412) {
90
+ response.json().then(data => this.fileid = data.fileid);
91
+ this.printService.printByFileID(authStore.state.accessToken, this.fileid, this.filetype, this.selectedPrinter.id, this.selectedProperties, this.filename).finally(() => this.printInProgress = false);
92
+ }
93
+ else {
94
+ return response.json();
95
+ }
96
+ })
97
+ .then((data) => {
98
+ if (data.jobid) {
99
+ printStore.state.jobID = data.jobid;
100
+ poll({
101
+ fn: this.printService.getPrintStatus,
102
+ validate: validateData,
103
+ interval: POLL_INTERVAL,
104
+ maxAttempts: 10,
105
+ })
106
+ .then(data)
107
+ .catch((err) => {
108
+ console.warn(err);
78
109
  this.printInProgress = false;
79
- return true;
80
- }
81
- return false;
82
- };
83
- poll({
84
- fn: this.printService.getPrintStatus,
85
- validate: validateData,
86
- interval: POLL_INTERVAL,
87
- maxAttempts: 10,
88
- })
89
- .then(data)
90
- .catch((err) => {
91
- console.warn(err);
110
+ });
111
+ }
112
+ else {
92
113
  this.printInProgress = false;
93
- });
94
- }
95
- else {
114
+ }
115
+ })
116
+ .catch(error => {
117
+ console.log(error);
96
118
  this.printInProgress = false;
97
- }
98
- });
119
+ });
120
+ }
121
+ else if (this.fileid) {
122
+ this.printService.printByFileID(authStore.state.accessToken, this.fileid, this.filetype, this.selectedPrinter.id, this.selectedProperties, this.filename)
123
+ .then((response) => response.json())
124
+ .then((data) => {
125
+ if (data.jobid) {
126
+ printStore.state.jobID = data.jobid;
127
+ poll({
128
+ fn: this.printService.getPrintStatus,
129
+ validate: validateData,
130
+ interval: POLL_INTERVAL,
131
+ maxAttempts: 10,
132
+ })
133
+ .then(data)
134
+ .catch((err) => {
135
+ console.warn(err);
136
+ this.printInProgress = false;
137
+ });
138
+ }
139
+ else {
140
+ this.printInProgress = false;
141
+ }
142
+ })
143
+ .catch(error => {
144
+ console.log(error);
145
+ this.printInProgress = false;
146
+ });
147
+ }
99
148
  localStorage.setItem('properties', JSON.stringify(this.selectedProperties));
100
149
  localStorage.setItem('printer', JSON.stringify(this.selectedPrinter));
101
150
  localStorage.setItem('previouslySelectedProperties', JSON.stringify(this.previouslySelectedProperties));
@@ -143,11 +192,14 @@ export class EzpPrinterSelection {
143
192
  this.userName = userStore.state.user.display_name;
144
193
  });
145
194
  }
146
- setSelectedProperties(eventDetails) {
195
+ async setSelectedProperties(eventDetails) {
147
196
  switch (eventDetails.type) {
148
197
  case 'printer':
149
198
  this.selectedPrinter.id = eventDetails.id;
150
199
  this.selectedPrinter.name = eventDetails.title;
200
+ await this.printService.getPrinterProperties(authStore.state.accessToken, this.selectedPrinter.id).then(data => this.selectedPrinterConfig = data[0]);
201
+ console.log('selected printer config:');
202
+ console.log(this.selectedPrinterConfig);
151
203
  break;
152
204
  case 'color':
153
205
  this.selectedProperties.color = !!eventDetails.id;
@@ -201,7 +253,8 @@ export class EzpPrinterSelection {
201
253
  await this.printService
202
254
  .getAllPrinterProperties(authStore.state.accessToken)
203
255
  .then((printerConfig) => {
204
- this.printerConfig = printerConfig[0];
256
+ this.printerConfig = printerConfig;
257
+ console.log(this.printerConfig);
205
258
  });
206
259
  this.loading = false;
207
260
  }
@@ -229,7 +282,7 @@ export class EzpPrinterSelection {
229
282
  type: 'printer',
230
283
  })), preSelected: this.selectedPrinter.name })),
231
284
  h("div", { id: "options" },
232
- h("ezp-select", { label: i18next.t('printer_selection.color'), icon: "color", placeholder: i18next.t('printer_selection.select_color'), toggleFlow: "horizontal", options: this.printerConfig.Color
285
+ h("ezp-select", { label: i18next.t('printer_selection.color'), icon: "color", placeholder: i18next.t('printer_selection.select_color'), toggleFlow: "horizontal", options: this.selectedPrinterConfig.Color
233
286
  ? [
234
287
  {
235
288
  id: 1,
@@ -250,29 +303,29 @@ export class EzpPrinterSelection {
250
303
  title: i18next.t('printer_selection.color_grayscale'),
251
304
  meta: '',
252
305
  type: 'color',
253
- }
306
+ },
254
307
  ], preSelected: this.previouslySelectedProperties.color }),
255
- h("ezp-select", { label: i18next.t('printer_selection.orientation'), icon: "orientation", placeholder: i18next.t('printer_selection.select_orientation'), toggleFlow: "horizontal", options: this.printerConfig.OrientationsSupported.map((orientation, index) => ({
308
+ 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) => ({
256
309
  id: index,
257
310
  title: i18next.t(`printer_selection.orientation_${orientation}`),
258
311
  meta: '',
259
312
  type: 'orientation',
260
313
  })), preSelected: this.previouslySelectedProperties.orientation }),
261
- h("ezp-select", { label: i18next.t('printer_selection.size'), icon: "size", placeholder: i18next.t('printer_selection.select_size'), toggleFlow: "horizontal", optionFlow: "horizontal", options: this.printerConfig.PaperFormats.map((format) => ({
314
+ 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) => ({
262
315
  id: format.Id,
263
316
  title: format.Name,
264
317
  meta: `${format.XRes} x ${format.YRes}`,
265
318
  type: 'format',
266
319
  })), preSelected: this.previouslySelectedProperties.paper }),
267
- h("ezp-select", { label: i18next.t('printer_selection.quality'), icon: "quality", toggleFlow: "horizontal", options: this.printerConfig.Resolutions.map((option, index) => ({
320
+ h("ezp-select", { label: i18next.t('printer_selection.quality'), icon: "quality", toggleFlow: "horizontal", options: this.selectedPrinterConfig.Resolutions.map((option, index) => ({
268
321
  id: index,
269
322
  title: option,
270
323
  meta: '',
271
324
  type: 'quality',
272
325
  })), preSelected: !this.previouslySelectedProperties.resolution
273
- ? this.printerConfig.Resolutions[0]
326
+ ? this.selectedPrinterConfig.Resolutions[0]
274
327
  : this.previouslySelectedProperties.resolution }),
275
- this.printerConfig.DuplexSupported ? (h("ezp-select", { label: i18next.t('printer_selection.duplex'), icon: "duplex", toggleFlow: "horizontal", options: this.duplexOptions.map((option) => ({
328
+ this.selectedPrinterConfig.DuplexSupported ? (h("ezp-select", { label: i18next.t('printer_selection.duplex'), icon: "duplex", toggleFlow: "horizontal", options: this.duplexOptions.map((option) => ({
276
329
  id: option.id,
277
330
  title: option.title,
278
331
  meta: '',
@@ -379,6 +432,23 @@ export class EzpPrinterSelection {
379
432
  },
380
433
  "attribute": "filetype",
381
434
  "reflect": false
435
+ },
436
+ "fileid": {
437
+ "type": "string",
438
+ "mutable": false,
439
+ "complexType": {
440
+ "original": "string",
441
+ "resolved": "string",
442
+ "references": {}
443
+ },
444
+ "required": false,
445
+ "optional": false,
446
+ "docs": {
447
+ "tags": [],
448
+ "text": ""
449
+ },
450
+ "attribute": "fileid",
451
+ "reflect": false
382
452
  }
383
453
  }; }
384
454
  static get states() { return {
@@ -390,6 +460,7 @@ export class EzpPrinterSelection {
390
460
  "printers": {},
391
461
  "selectedPrinter": {},
392
462
  "printerConfig": {},
463
+ "selectedPrinterConfig": {},
393
464
  "selectedProperties": {},
394
465
  "previouslySelectedProperties": {}
395
466
  }; }
@@ -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) {