@ezeep/ezeep-js 1.0.277 → 1.0.287

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 (72) hide show
  1. package/dist/cjs/ezeep.cjs.js +1 -1
  2. package/dist/cjs/ezp-auth_15.cjs.entry.js +116 -38
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/collection/components/ezp-auth/ezp-auth.css +0 -12
  5. package/dist/collection/components/ezp-auth/ezp-auth.js +23 -4
  6. package/dist/collection/components/ezp-dialog/ezp-dialog.js +1 -1
  7. package/dist/collection/components/ezp-icon/assets/glyph-cloud-upload.svg +4 -0
  8. package/dist/collection/components/ezp-icon/assets/glyph-file.svg +3 -0
  9. package/dist/collection/components/ezp-icon/ezp-icon.js +1 -1
  10. package/dist/collection/components/ezp-icon-button/ezp-icon-button.js +1 -1
  11. package/dist/collection/components/ezp-input/ezp-input.css +17 -33
  12. package/dist/collection/components/ezp-input/ezp-input.js +1 -1
  13. package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.css +175 -48
  14. package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.js +10 -8
  15. package/dist/collection/components/ezp-printing/ezp-printing.css +14 -14
  16. package/dist/collection/components/ezp-printing/ezp-printing.js +17 -2
  17. package/dist/collection/components/ezp-select/ezp-select.css +54 -36
  18. package/dist/collection/components/ezp-select/ezp-select.js +1 -1
  19. package/dist/collection/components/ezp-status/ezp-status.css +94 -9
  20. package/dist/collection/components/ezp-status/ezp-status.js +22 -3
  21. package/dist/collection/components/ezp-stepper/ezp-stepper.css +37 -35
  22. package/dist/collection/components/ezp-stepper/ezp-stepper.js +2 -2
  23. package/dist/collection/components/ezp-text-button/ezp-text-button.css +3 -3
  24. package/dist/collection/components/ezp-text-button/ezp-text-button.js +1 -1
  25. package/dist/collection/components/ezp-upload/ezp-upload.css +223 -75
  26. package/dist/collection/components/ezp-upload/ezp-upload.js +75 -3
  27. package/dist/collection/components/ezp-user-menu/ezp-user-menu.js +1 -1
  28. package/dist/collection/types/shared/types.d.ts +2 -0
  29. package/dist/components/ezp-auth2.js +1 -1
  30. package/dist/components/ezp-input2.js +1 -1
  31. package/dist/components/ezp-printer-selection2.js +1 -1
  32. package/dist/components/ezp-printing.js +1 -1
  33. package/dist/components/ezp-select2.js +1 -1
  34. package/dist/components/ezp-status2.js +1 -1
  35. package/dist/components/ezp-stepper2.js +1 -1
  36. package/dist/components/ezp-text-button2.js +1 -1
  37. package/dist/components/ezp-upload2.js +1 -1
  38. package/dist/components/ezp-user-menu2.js +1 -1
  39. package/dist/components/utils.js +1 -1
  40. package/dist/directives/proxies.ts +18 -6
  41. package/dist/esm/ezeep.js +1 -1
  42. package/dist/esm/ezp-auth_15.entry.js +116 -38
  43. package/dist/esm/loader.js +1 -1
  44. package/dist/esm-es5/ezeep.js +1 -1
  45. package/dist/esm-es5/ezp-auth_15.entry.js +2 -2
  46. package/dist/esm-es5/loader.js +1 -1
  47. package/dist/ezeep/assets/glyph-cloud-upload.svg +4 -0
  48. package/dist/ezeep/assets/glyph-file.svg +3 -0
  49. package/dist/ezeep/ezeep.esm.js +1 -1
  50. package/dist/ezeep/{p-644e48a0.system.entry.js → p-0aae0597.system.entry.js} +2 -2
  51. package/dist/ezeep/p-7b19a21a.entry.js +1 -0
  52. package/dist/ezeep/p-DCznw2Ee.system.js +1 -1
  53. package/dist/ezeep/types/shared/types.d.ts +2 -0
  54. package/dist/types/components/ezp-printing/ezp-printing.d.ts +7 -0
  55. package/dist/types/components/ezp-status/ezp-status.d.ts +1 -0
  56. package/dist/types/components/ezp-upload/ezp-upload.d.ts +11 -0
  57. package/dist/types/components.d.ts +15 -2
  58. package/dist/types/shared/types.d.ts +2 -0
  59. package/package.json +1 -1
  60. package/www/build/assets/glyph-cloud-upload.svg +4 -0
  61. package/www/build/assets/glyph-file.svg +3 -0
  62. package/www/build/ezeep.esm.js +1 -1
  63. package/www/build/{p-644e48a0.system.entry.js → p-0aae0597.system.entry.js} +2 -2
  64. package/www/build/p-7b19a21a.entry.js +1 -0
  65. package/www/build/p-879553e9.js +1 -0
  66. package/www/build/p-DCznw2Ee.system.js +1 -1
  67. package/www/data/locales/de.json +12 -5
  68. package/www/data/locales/en.json +12 -5
  69. package/www/index.html +1 -1
  70. package/dist/ezeep/p-ebd2beda.entry.js +0 -1
  71. package/www/build/p-c7252f1c.js +0 -1
  72. package/www/build/p-ebd2beda.entry.js +0 -1
@@ -96,6 +96,9 @@ export class EzpPrinting {
96
96
  detail: {},
97
97
  });
98
98
  document.dispatchEvent(printCancelEvent);
99
+ // Cancelling sign-in with files pending discards them, so the flow is over
100
+ // for the host — same signal as cancelling on the upload or print step.
101
+ this.printFinished.emit();
99
102
  this.checkAuth();
100
103
  }
101
104
  async listenAuthSuccess() {
@@ -114,6 +117,12 @@ export class EzpPrinting {
114
117
  }
115
118
  }
116
119
  listenUploadFile(event) {
120
+ // Keep the selection in sync as files are added/removed, but stay on the
121
+ // upload step until the user explicitly continues (see listenUploadContinue).
122
+ this.files = event.detail;
123
+ this.filename = this.files.length > 0 ? this.files[0].name : '';
124
+ }
125
+ listenUploadContinue(event) {
117
126
  this.files = event.detail;
118
127
  this.filename = this.files.length > 0 ? this.files[0].name : '';
119
128
  this.open();
@@ -332,7 +341,7 @@ export class EzpPrinting {
332
341
  *
333
342
  */
334
343
  render() {
335
- return (h(Host, { key: 'be2b1eab0c9aeb2b026f94c66c760d4c1e3d946a', class: `${userStore.state.theme} ${userStore.state.appearance === 'system'
344
+ return (h(Host, { key: '8eaeae452fb60e1c15265cf970dddf8767e4c849', class: `${userStore.state.theme} ${userStore.state.appearance === 'system'
336
345
  ? this.systemAppearance
337
346
  : userStore.state.appearance} ${this.seamless ? 'seamless' : ''}` }, 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() }))), this.authOpen ? (h("ezp-auth", { clientID: this.clientid, redirectURI: this.redirecturi, hidelogin: this.hidelogin, trigger: this.trigger, code: this.code })) : this.printOpen ? (h("ezp-printer-selection", { clientID: this.clientid, redirectURI: this.redirecturi, filename: this.filename, fileurl: this.fileurl, filetype: this.filetype, fileid: this.fileid, files: this.files, hidemenu: this.hidemenu, hideheader: this.hideheader, seamless: this.seamless })) : 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));
338
347
  }
@@ -760,7 +769,7 @@ export class EzpPrinting {
760
769
  "composed": true,
761
770
  "docs": {
762
771
  "tags": [],
763
- "text": "Events"
772
+ "text": "Fired when the print flow reaches an end state and the host may dismiss the\ncomponent: a print job was submitted, or the user cancelled on the upload\ncard, the sign-in dialog (with files pending) or the print options card. It\ndoes not mean a job was printed \u2014 check for that on the print API side."
764
773
  },
765
774
  "complexType": {
766
775
  "original": "void",
@@ -931,6 +940,12 @@ export class EzpPrinting {
931
940
  "target": undefined,
932
941
  "capture": false,
933
942
  "passive": false
943
+ }, {
944
+ "name": "uploadContinue",
945
+ "method": "listenUploadContinue",
946
+ "target": undefined,
947
+ "capture": false,
948
+ "passive": false
934
949
  }, {
935
950
  "name": "dialogClose",
936
951
  "method": "listenDialogClose",
@@ -5,35 +5,24 @@
5
5
  */
6
6
  :host {
7
7
  --ezp-select-duration: var(--ezp-duration-3);
8
+ --ezp-badge-gradient: linear-gradient(
9
+ 135deg,
10
+ color-mix(in srgb, var(--ezp-theme-solid), white 14%) 0%,
11
+ color-mix(in srgb, var(--ezp-theme-solid), black 22%) 100%
12
+ );
8
13
  display: block;
9
14
  height: var(--ezp-select-toggle-height);
10
15
  position: relative;
11
16
  transition: var(--ezp-select-transition, z-index 0s var(--ezp-select-duration));
12
17
  z-index: var(--ezp-select-zIndex, 3);
13
18
  }
14
- :host(:first-child) {
15
- --ezp-select-wrap-borderRadius: 3px 3px 0 0;
16
- }
17
-
18
- :host(:last-child) {
19
- --ezp-select-wrap-borderRadius: 0 0 3px 3px;
20
- }
21
-
22
- :host(:first-child:last-child) {
23
- --ezp-select-wrap-borderRadius: 3px;
24
- }
25
-
26
- :host(:not(:last-child):not(.is-expanded)) {
27
- --ezp-select-wrap-boxShadowPositionBottom: 0 0 0 0;
28
- }
29
-
30
19
  :host(.toggle-horizontal) {
31
- --ezp-select-label-alignSelf: start;
20
+ --ezp-select-label-alignSelf: center;
32
21
  --ezp-select-toggle-gridTemplateAreas: 'label value accessory';
33
22
  --ezp-select-toggle-gridTemplateColumns: 1fr repeat(2, auto);
34
- --ezp-select-toggle-height: 30px;
23
+ --ezp-select-toggle-height: 56px;
35
24
  --ezp-select-toggle-gridTemplateRows: auto;
36
- --ezp-select-value-alignSelf: end;
25
+ --ezp-select-value-alignSelf: center;
37
26
  }
38
27
 
39
28
  :host(.toggle-horizontal.has-icon) {
@@ -45,7 +34,7 @@
45
34
  --ezp-select-label-alignSelf: center;
46
35
  --ezp-select-toggle-gridTemplateAreas: 'label accessory' 'value accessory';
47
36
  --ezp-select-toggle-gridTemplateColumns: 1fr auto;
48
- --ezp-select-toggle-height: 48px;
37
+ --ezp-select-toggle-height: 64px;
49
38
  --ezp-select-toggle-gridTemplateRows: repeat(2, auto);
50
39
  --ezp-select-value-alignSelf: center;
51
40
  }
@@ -58,52 +47,73 @@
58
47
  :host(.option-horizontal) {
59
48
  --ezp-select-details-gridTemplateColumns: repeat(2, 1fr);
60
49
  --ezp-select-details-gridTemplateRows: auto;
61
- --ezp-select-option-height: 30px;
50
+ --ezp-select-option-height: 44px;
62
51
  }
63
52
 
64
53
  :host(.option-vertical) {
65
54
  --ezp-select-details-gridTemplateColumns: 1fr;
66
55
  --ezp-select-details-gridTemplateRows: repeat(2, auto);
67
- --ezp-select-option-height: 48px;
56
+ --ezp-select-option-height: 52px;
57
+ }
58
+
59
+ /* The printer selector reads as a solid, prominent badge (screen 3). */
60
+ :host(.toggle-vertical.has-icon) {
61
+ --ezp-select-badge-background: var(--ezp-badge-gradient);
62
+ --ezp-select-badge-color: var(--ezp-white-100);
63
+ --ezp-select-badge-height: 44px;
64
+ --ezp-select-badge-width: 44px;
65
+ --ezp-select-label-textTransform: uppercase;
66
+ --ezp-select-label-letterSpacing: 0.08em;
67
+ --ezp-select-label-fontSize: 11px;
68
+ --ezp-select-value-fontSize: 16px;
69
+ --ezp-select-value-fontWeight: 600;
70
+ --ezp-select-value-color: var(--ezp-core-foreground-primary);
68
71
  }
69
72
 
70
73
  :host(.is-expanded) {
71
74
  --ezp-select-accessory-color: var(--ezp-theme-solid);
72
75
  --ezp-select-transition: z-index 0s 0s;
73
76
  --ezp-select-zIndex: 9999;
74
- --ezp-select-icon-color: var(--ezp-theme-solid);
75
77
  --ezp-select-label-color: var(--ezp-theme-solid);
76
- --ezp-select-wrap-borderRadius: 3px;
78
+ --ezp-select-toggle-background: var(--ezp-theme-translucent);
79
+ --ezp-select-wrap-background: var(--ezp-core-surface-tertiary);
80
+ --ezp-select-wrap-borderRadius: 12px;
81
+ --ezp-select-wrap-boxShadow:
82
+ 0 0 0 1px var(--ezp-core-outline), 0 16px 40px -16px var(--ezp-core-backdrop);
77
83
  }
78
84
 
79
85
  :host(.disabled) {
80
86
  --ezp-select-accessory-color: var(--ezp-core-foreground-tertiary);
81
- --ezp-select-icon-color: var(--ezp-core-foreground-tertiary);
87
+ --ezp-select-badge-background: var(--ezp-core-shade-primary);
88
+ --ezp-select-badge-color: var(--ezp-core-foreground-tertiary);
82
89
  --ezp-select-label-color: var(--ezp-core-foreground-tertiary);
83
90
  --ezp-select-toggle-background-hover: transparent;
84
91
  --ezp-select-toggle-cursor: default;
92
+ --ezp-select-value-color: var(--ezp-core-foreground-tertiary);
85
93
  --value-color: var(--ezp-core-foreground-tertiary);
86
94
  }
87
95
 
88
96
  #wrap {
89
- background: var(--ezp-core-surface-tertiary);
90
- border-radius: var(--ezp-select-wrap-borderRadius, 0);
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);
97
+ background: var(--ezp-select-wrap-background, transparent);
98
+ border-radius: var(--ezp-select-wrap-borderRadius, 12px);
99
+ box-shadow: var(--ezp-select-wrap-boxShadow, none);
92
100
  transform: translateY(var(--ezp-select-wrap-translateY, 0));
93
101
  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
102
  }
95
103
 
96
104
  #toggle {
97
105
  background: var(--ezp-select-toggle-background, transparent);
106
+ border-radius: var(--ezp-select-wrap-borderRadius, 12px);
98
107
  box-sizing: border-box;
99
108
  cursor: var(--ezp-select-toggle-cursor, pointer);
100
109
  display: grid;
101
- gap: var(--ezp-spacing-2) var(--ezp-spacing-3);
110
+ gap: 2px var(--ezp-spacing-3);
102
111
  grid-template-areas: var(--ezp-select-toggle-gridTemplateAreas, none);
103
112
  grid-template-columns: var(--ezp-select-toggle-gridTemplateColumns, none);
104
113
  grid-template-rows: var(--ezp-select-toggle-gridTemplateRows, auto);
105
114
  height: var(--ezp-select-toggle-height, auto);
106
- padding: var(--ezp-spacing-3);
115
+ padding: var(--ezp-spacing-2) var(--ezp-spacing-3);
116
+ transition: background-color var(--ezp-duration-2) var(--ezp-easing-out-quart);
107
117
  }
108
118
  #toggle:hover {
109
119
  --ezp-select-toggle-background: var(
@@ -113,29 +123,37 @@
113
123
  }
114
124
 
115
125
  #icon {
126
+ --ezp-icon-background: var(--ezp-select-badge-background, var(--ezp-theme-translucent));
127
+ --ezp-icon-borderRadius: 50%;
128
+ --ezp-icon-height: var(--ezp-select-badge-height, 40px);
129
+ --ezp-icon-width: var(--ezp-select-badge-width, 40px);
116
130
  align-self: center;
117
- color: var(--ezp-select-icon-color, var(--ezp-core-foreground-secondary));
131
+ color: var(--ezp-select-badge-color, var(--ezp-theme-solid));
118
132
  grid-area: icon;
119
- margin: calc(var(--ezp-spacing-2) * -1) 0;
120
133
  }
121
134
 
122
135
  #label {
136
+ --ezp-label-fontSize: var(--ezp-select-label-fontSize, 14px);
137
+ --ezp-label-letterSpacing: var(--ezp-select-label-letterSpacing, normal);
123
138
  align-self: var(--ezp-select-label-alignSelf, auto);
124
- color: var(--ezp-select-label-color, var(--ezp-core-foreground-secondary));
139
+ color: var(--ezp-select-label-color, var(--ezp-core-foreground-primary));
125
140
  grid-area: label;
141
+ text-transform: var(--ezp-select-label-textTransform, none);
126
142
  }
127
143
 
128
144
  #value {
145
+ --ezp-label-fontSize: var(--ezp-select-value-fontSize, 14px);
146
+ --ezp-label-fontWeight: var(--ezp-select-value-fontWeight, 400);
129
147
  align-self: var(--ezp-select-value-alignSelf, auto);
130
- color: var(--value-color, var(--ezp-core-foreground-primary));
148
+ color: var(--ezp-select-value-color, var(--value-color, var(--ezp-core-foreground-secondary)));
131
149
  grid-area: value;
150
+ text-align: right;
132
151
  }
133
152
 
134
153
  #accessory {
135
154
  align-self: center;
136
- color: var(--ezp-select-accessory-color, var(--ezp-core-foreground-secondary));
155
+ color: var(--ezp-select-accessory-color, var(--ezp-core-foreground-tertiary));
137
156
  grid-area: accessory;
138
- margin: calc(var(--ezp-spacing-2) * -1) 0;
139
157
  }
140
158
 
141
159
  #list {
@@ -235,7 +235,7 @@ export class EzpSelect {
235
235
  "mutable": false,
236
236
  "complexType": {
237
237
  "original": "IconNameTypes",
238
- "resolved": "\"account\" | \"checkmark\" | \"checkmark-alt\" | \"close\" | \"color\" | \"copies\" | \"dark\" | \"drag-drop\" | \"duplex\" | \"exclamation-mark\" | \"expand\" | \"height\" | \"help\" | \"light\" | \"logo\" | \"logout\" | \"menu\" | \"minus\" | \"orientation\" | \"paper_range\" | \"plus\" | \"printer\" | \"quality\" | \"question-mark\" | \"size\" | \"system\" | \"trays\" | \"width\"",
238
+ "resolved": "\"account\" | \"checkmark\" | \"checkmark-alt\" | \"close\" | \"cloud-upload\" | \"color\" | \"copies\" | \"dark\" | \"drag-drop\" | \"duplex\" | \"exclamation-mark\" | \"expand\" | \"file\" | \"height\" | \"help\" | \"light\" | \"logo\" | \"logout\" | \"menu\" | \"minus\" | \"orientation\" | \"paper_range\" | \"plus\" | \"printer\" | \"quality\" | \"question-mark\" | \"size\" | \"system\" | \"trays\" | \"width\"",
239
239
  "references": {
240
240
  "IconNameTypes": {
241
241
  "location": "import",
@@ -29,15 +29,20 @@
29
29
  *
30
30
  */
31
31
  :host {
32
+ --ezp-status-gradient: linear-gradient(
33
+ 135deg,
34
+ color-mix(in srgb, var(--ezp-theme-solid), white 14%) 0%,
35
+ color-mix(in srgb, var(--ezp-theme-solid), black 22%) 100%
36
+ );
32
37
  align-items: center;
33
38
  background: var(--ezp-core-backdrop);
34
- border-radius: var(--ezp-status-border-radius, 6px);
39
+ border-radius: var(--ezp-status-border-radius, 16px);
35
40
  box-sizing: border-box;
36
41
  display: flex;
37
42
  height: 100%;
38
43
  justify-content: center;
39
44
  left: 0;
40
- padding: var(--ezp-spacing-6);
45
+ padding: var(--ezp-spacing-5);
41
46
  position: absolute;
42
47
  top: 0;
43
48
  width: 100%;
@@ -49,24 +54,69 @@
49
54
  }
50
55
  }
51
56
 
57
+ *,
58
+ *::before,
59
+ *::after {
60
+ box-sizing: border-box;
61
+ }
62
+
52
63
  #box {
53
- --ezp-icon-fill: var(--ezp-theme-solid);
54
64
  align-items: center;
55
65
  background: var(--ezp-core-surface-tertiary);
56
- border-radius: 3px;
57
- box-shadow: var(--ezp-status-box-boxShadow, 0 0 0 1px var(--ezp-black-10));
66
+ border-radius: 16px;
67
+ box-shadow: var(--ezp-status-box-boxShadow, 0 0 0 1px var(--ezp-core-outline), 0 24px 60px -20px var(--ezp-core-backdrop));
58
68
  display: flex;
59
69
  flex-direction: column;
60
70
  gap: var(--ezp-spacing-4);
61
- padding: var(--ezp-spacing-4) var(--ezp-spacing-5);
71
+ max-width: 360px;
72
+ padding: var(--ezp-spacing-6) var(--ezp-spacing-5) var(--ezp-spacing-5);
73
+ text-align: center;
74
+ width: 100%;
75
+ }
76
+
77
+ /**
78
+ *
79
+ * Icon (haloed gradient badge)
80
+ *
81
+ */
82
+ #icon {
83
+ align-items: center;
84
+ background: var(--ezp-theme-translucent);
85
+ border-radius: 50%;
86
+ display: flex;
87
+ height: 132px;
88
+ justify-content: center;
89
+ margin-bottom: var(--ezp-spacing-2);
90
+ width: 132px;
91
+ }
92
+
93
+ #icon-inner {
94
+ align-items: center;
95
+ background: var(--ezp-status-gradient);
96
+ border-radius: 50%;
97
+ box-shadow: 0 12px 24px -8px color-mix(in srgb, var(--ezp-theme-solid), transparent 45%);
98
+ color: var(--ezp-white-100);
99
+ display: flex;
100
+ height: 84px;
101
+ justify-content: center;
102
+ width: 84px;
103
+ }
104
+ #icon-inner ezp-icon {
105
+ --ezp-icon-size: 40px;
106
+ --ezp-icon-gridTemplate: 40px;
62
107
  }
63
108
 
109
+ /**
110
+ *
111
+ * Processing spinner
112
+ *
113
+ */
64
114
  #indicator {
65
115
  animation: rotate var(--ezp-duration-6) linear infinite;
66
116
  display: block;
67
- height: 42px;
117
+ height: 48px;
68
118
  transform: rotate(0);
69
- width: 42px;
119
+ width: 48px;
70
120
  }
71
121
 
72
122
  #track {
@@ -85,13 +135,48 @@
85
135
  stroke-width: 4px;
86
136
  }
87
137
 
138
+ /**
139
+ *
140
+ * Text
141
+ *
142
+ */
88
143
  #description {
144
+ --ezp-label-fontSize: 22px;
145
+ --ezp-label-lineHeight: 28px;
89
146
  color: var(--ezp-core-foreground-primary);
90
147
  }
91
148
 
149
+ #subtext {
150
+ color: var(--ezp-core-foreground-secondary);
151
+ margin-top: calc(var(--ezp-spacing-4) * -1 + var(--ezp-spacing-2));
152
+ }
153
+
154
+ /**
155
+ *
156
+ * Footer
157
+ *
158
+ */
92
159
  #footer {
93
160
  display: flex;
94
- gap: var(--ezp-spacing-2);
161
+ gap: var(--ezp-spacing-3);
162
+ margin-top: var(--ezp-spacing-3);
163
+ width: 100%;
164
+ }
165
+
166
+ .action {
167
+ --ezp-textButton-borderRadius: 999px;
168
+ --ezp-textButton-padding: var(--ezp-spacing-4);
169
+ flex: 1;
170
+ }
171
+
172
+ ezp-text-button.action.primary {
173
+ --ezp-textButton-background-init: var(--ezp-status-gradient);
174
+ }
175
+
176
+ ezp-text-button.action.secondary {
177
+ --ezp-textButton-background-init: transparent;
178
+ --ezp-textButton-boxShadow: inset 0 0 0 1px var(--ezp-core-outline);
179
+ --ezp-textButton-color-init: var(--ezp-core-foreground-primary);
95
180
  }
96
181
 
97
182
  /**
@@ -46,9 +46,9 @@ export class EzpStatus {
46
46
  return (
47
47
  // Live region so screen readers announce status changes (loading,
48
48
  // processing, success, error) as they render.
49
- h(Host, { key: 'b5c9846f02fb4d1ecfb4e858979771707f43da7b', role: "status", "aria-live": "polite" }, h("div", { key: '565dc8d7c33de18e84b9e2fc08509fa930f25b6b', id: "box" }, this.processing ? (h("svg", { id: "indicator", viewBox: "0 0 42 42", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true" }, h("circle", { id: "track", cx: "21", cy: "21", r: "18" }), h("circle", { id: "value", cx: "21", cy: "21", r: "18" }))) : this.icon ? (h("ezp-icon", { name: this.icon, framed: true })) : null, h("ezp-label", { key: '2e0a465a7ab43caf42ddbe0bcf8939411334fe75', id: "description", level: "tertiary", weight: "strong", text: this.description }), (this.cancel || this.close || this.retry) && (h("div", { key: '47c159c24325fc2b8617dfeb70a322e3fb21d1c2', id: "footer" }, this.cancel && (h("ezp-text-button", { key: '50cadac96eede3676ff7b223e2974f4f621246a3', level: "secondary", small: true, onClick: this.handleCancel, label: typeof this.cancel === 'string'
49
+ h(Host, { key: '5956a42fc8d74042fe88418c5f98011d0bf728c8', role: "status", "aria-live": "polite" }, h("div", { key: 'b1aebc3725a621c0e4474481064988167ca80328', id: "box" }, this.processing ? (h("svg", { id: "indicator", viewBox: "0 0 42 42", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true" }, h("circle", { id: "track", cx: "21", cy: "21", r: "18" }), h("circle", { id: "value", cx: "21", cy: "21", r: "18" }))) : this.icon ? (h("div", { id: "icon" }, h("div", { id: "icon-inner" }, h("ezp-icon", { name: this.icon })))) : null, h("ezp-label", { key: '34baad28a5ffc3fac42eef6a886ae52f772e3576', id: "description", weight: "heavy", text: this.description }), this.subtext && (h("ezp-label", { key: '321659cc9ae7a40f62c8fc6447556d1aa026a9dc', id: "subtext", level: "secondary", text: this.subtext })), (this.cancel || this.close || this.retry) && (h("div", { key: 'ce83d1db0aad512f282f1a2bbfbf112a3d2f7aed', id: "footer" }, this.cancel && (h("ezp-text-button", { key: '9eb72f9e158b1e2c6a4fd2d2755705c2041b67f5', class: "action secondary", level: "secondary", onClick: this.handleCancel, label: typeof this.cancel === 'string'
50
50
  ? this.cancel
51
- : i18next.t('button_actions.cancel') })), this.close && (h("ezp-text-button", { key: '36efc776e9c90117fd3c99544cdd3fc2e170466c', level: this.retry ? 'secondary' : 'primary', small: true, onClick: this.handleClose, label: typeof this.close === 'string' ? this.close : i18next.t('button_actions.close') })), this.retry && (h("ezp-text-button", { key: '04c60353ca77b16772edb67a38ef5cdf06e4f407', level: "primary", small: true, onClick: this.handleRetry, label: typeof this.retry === 'string' ? this.retry : i18next.t('button_actions.retry') })))))));
51
+ : i18next.t('button_actions.cancel') })), this.close && (h("ezp-text-button", { key: '9a10f49011bf0f0cba24905e82574199837e122a', class: `action ${this.retry ? 'secondary' : 'primary'}`, level: this.retry ? 'secondary' : 'primary', onClick: this.handleClose, label: typeof this.close === 'string' ? this.close : i18next.t('button_actions.close') })), this.retry && (h("ezp-text-button", { key: '2522cfae37af2c9e8800af545f04b986affac356', class: "action primary", level: "primary", onClick: this.handleRetry, label: typeof this.retry === 'string' ? this.retry : i18next.t('button_actions.retry') })))))));
52
52
  }
53
53
  static get is() { return "ezp-status"; }
54
54
  static get encapsulation() { return "shadow"; }
@@ -84,6 +84,25 @@ export class EzpStatus {
84
84
  "attribute": "description",
85
85
  "defaultValue": "'Description'"
86
86
  },
87
+ "subtext": {
88
+ "type": "string",
89
+ "mutable": false,
90
+ "complexType": {
91
+ "original": "string",
92
+ "resolved": "string | undefined",
93
+ "references": {}
94
+ },
95
+ "required": false,
96
+ "optional": true,
97
+ "docs": {
98
+ "tags": [],
99
+ "text": ""
100
+ },
101
+ "getter": false,
102
+ "setter": false,
103
+ "reflect": false,
104
+ "attribute": "subtext"
105
+ },
87
106
  "processing": {
88
107
  "type": "boolean",
89
108
  "mutable": false,
@@ -128,7 +147,7 @@ export class EzpStatus {
128
147
  "mutable": false,
129
148
  "complexType": {
130
149
  "original": "IconNameTypes",
131
- "resolved": "\"account\" | \"checkmark\" | \"checkmark-alt\" | \"close\" | \"color\" | \"copies\" | \"dark\" | \"drag-drop\" | \"duplex\" | \"exclamation-mark\" | \"expand\" | \"height\" | \"help\" | \"light\" | \"logo\" | \"logout\" | \"menu\" | \"minus\" | \"orientation\" | \"paper_range\" | \"plus\" | \"printer\" | \"quality\" | \"question-mark\" | \"size\" | \"system\" | \"trays\" | \"width\" | undefined",
150
+ "resolved": "\"account\" | \"checkmark\" | \"checkmark-alt\" | \"close\" | \"cloud-upload\" | \"color\" | \"copies\" | \"dark\" | \"drag-drop\" | \"duplex\" | \"exclamation-mark\" | \"expand\" | \"file\" | \"height\" | \"help\" | \"light\" | \"logo\" | \"logout\" | \"menu\" | \"minus\" | \"orientation\" | \"paper_range\" | \"plus\" | \"printer\" | \"quality\" | \"question-mark\" | \"size\" | \"system\" | \"trays\" | \"width\" | undefined",
132
151
  "references": {
133
152
  "IconNameTypes": {
134
153
  "location": "import",
@@ -30,28 +30,26 @@
30
30
  */
31
31
  :host {
32
32
  align-items: center;
33
- background: var(--ezp-core-surface-tertiary);
34
- border-radius: 3px;
35
- box-shadow: var(--ezp-stepper-boxShadowPosition, 0 0 0 1px) var(--ezp-core-outline);
33
+ background: transparent;
36
34
  display: grid;
37
35
  gap: var(--ezp-spacing-3);
38
- grid-template: var(--ezp-stepper-gridTemplate, auto/auto 1fr auto);
39
- padding: 0 var(--ezp-spacing-2) 0 var(--ezp-spacing-3);
36
+ grid-template: var(--ezp-stepper-gridTemplate, auto/1fr auto);
37
+ height: 56px;
38
+ padding: var(--ezp-spacing-2) var(--ezp-spacing-3);
40
39
  position: relative;
41
40
  z-index: 0;
42
41
  }
43
42
  :host(.focused) {
44
- --ezp-stepper-icon-color: var(--ezp-theme-solid);
45
- --ezp-stepper-label-color: var(--ezp-theme-solid);
43
+ --ezp-stepper-label-color: var(--ezp-core-foreground-primary);
46
44
  }
47
45
 
48
46
  :host(.has-icon) {
49
- --ezp-stepper-gridTemplate: auto / repeat(2, auto) 1fr auto;
47
+ --ezp-stepper-gridTemplate: auto / auto 1fr auto;
50
48
  }
51
49
 
52
50
  #toggle {
53
- background: var(--ezp-stepper-toggle-background, transparent);
54
- border-radius: 3px;
51
+ background: transparent;
52
+ border-radius: 12px;
55
53
  cursor: pointer;
56
54
  height: 100%;
57
55
  left: 0;
@@ -60,31 +58,22 @@
60
58
  width: 100%;
61
59
  z-index: -1;
62
60
  }
63
- @media (hover: hover) {
64
- #toggle:hover {
65
- --ezp-stepper-toggle-background: var(--ezp-core-shade-primary);
66
- }
67
- }
68
61
 
69
62
  #icon {
70
- color: var(--ezp-stepper-icon-color, var(--ezp-core-foreground-secondary));
63
+ --ezp-icon-background: var(--ezp-theme-translucent);
64
+ --ezp-icon-borderRadius: 50%;
65
+ --ezp-icon-height: 40px;
66
+ --ezp-icon-width: 40px;
67
+ color: var(--ezp-stepper-icon-color, var(--ezp-theme-solid));
71
68
  pointer-events: none;
72
69
  }
73
70
 
74
71
  #label {
75
- color: var(--ezp-stepper-label-color, var(--ezp-core-foreground-secondary));
72
+ color: var(--ezp-stepper-label-color, var(--ezp-core-foreground-primary));
76
73
  pointer-events: none;
77
74
  }
78
75
 
79
76
  #input {
80
- /**
81
- *
82
- * FIXME
83
- *
84
- * - adapt font properties
85
- * - hover / focus state
86
- *
87
- */
88
77
  -moz-appearance: textfield;
89
78
  appearance: none;
90
79
  background: transparent;
@@ -93,19 +82,20 @@
93
82
  box-shadow: none;
94
83
  box-sizing: border-box;
95
84
  color: var(--ezp-core-foreground-primary);
96
- cursor: inherit;
85
+ cursor: text;
97
86
  font-family: inherit;
98
87
  font-feature-settings: "tnum";
99
- font-size: 14px;
88
+ font-size: 16px;
89
+ font-weight: 600;
100
90
  -webkit-font-smoothing: antialiased;
101
91
  height: 30px;
102
- letter-spacing: -0.0062235443em;
92
+ letter-spacing: -0.0109597786em;
103
93
  margin: 0;
94
+ min-width: 28px;
104
95
  outline: none;
105
96
  padding: 0;
106
- pointer-events: none;
107
- text-align: right;
108
- width: 100%;
97
+ text-align: center;
98
+ width: 28px;
109
99
  }
110
100
 
111
101
  #input::-webkit-outer-spin-button,
@@ -115,33 +105,45 @@
115
105
  }
116
106
 
117
107
  .buttons {
108
+ align-items: center;
118
109
  display: flex;
110
+ gap: var(--ezp-spacing-3);
119
111
  }
120
112
 
121
113
  .button {
122
114
  align-items: center;
123
115
  appearance: none;
124
116
  background: var(--ezp-stepper-button-background, transparent);
125
- border: 0;
117
+ border: 1px solid var(--ezp-stepper-button-border, var(--ezp-core-outline));
126
118
  border-radius: 50%;
127
119
  box-shadow: none;
128
- color: var(--ezp-stepper-button-color, var(--ezp-theme-solid));
120
+ color: var(--ezp-stepper-button-color, var(--ezp-core-foreground-secondary));
129
121
  cursor: var(--ezp-stepper-button-cursor, pointer);
130
122
  display: flex;
123
+ height: 32px;
131
124
  justify-content: center;
132
125
  margin: 0;
133
126
  outline: none;
134
- padding: var(--ezp-spacing-1);
127
+ padding: 0;
128
+ transition: background-color var(--ezp-duration-2) var(--ezp-easing-out-quart), border-color var(--ezp-duration-2) var(--ezp-easing-out-quart);
129
+ width: 32px;
130
+ }
131
+ .button ezp-icon {
132
+ --ezp-icon-size: 16px;
133
+ --ezp-icon-gridTemplate: 16px;
135
134
  }
136
135
  @media (hover: hover) {
137
136
  .button:not(:disabled):hover {
138
- --ezp-stepper-button-background: var(--ezp-core-shade-primary);
137
+ --ezp-stepper-button-background: var(--ezp-theme-translucent);
138
+ --ezp-stepper-button-border: var(--ezp-theme-solid);
139
+ --ezp-stepper-button-color: var(--ezp-theme-solid);
139
140
  }
140
141
  .button:not(:disabled):active {
141
142
  --ezp-stepper-button-background: var(--ezp-core-shade-secondary);
142
143
  }
143
144
  }
144
145
  .button:disabled {
146
+ --ezp-stepper-button-border: var(--ezp-core-shade-primary);
145
147
  --ezp-stepper-button-color: var(--ezp-core-foreground-tertiary);
146
148
  --ezp-stepper-button-cursor: default;
147
149
  }
@@ -127,7 +127,7 @@ export class EzpStepper {
127
127
  *
128
128
  */
129
129
  render() {
130
- return (h(Host, { key: 'cdb3aa8969719def6546f35fac5aa35b47c1f94b', class: `${this.focused ? 'focused' : ''} ${this.icon ? 'has-icon' : ''}` }, h("div", { key: '4b0edee6d156edc6e8f79eb0639be4203b12fc5b', id: "toggle", onClick: this.setFocus }), this.icon ? h("ezp-icon", { id: "icon", name: this.icon }) : null, h("ezp-label", { key: '4fb1d96f12933ee37c05afafee8f313d77a06e9e', id: "label", noWrap: true, text: this.label }), h("input", { key: '75a462106e4fc3f7b303178a52dd41d6b9145e1c', id: "input", type: "number", ref: (input) => (this.input = input), min: this.min.toString(), max: this.max !== undefined ? this.max.toString() : undefined, value: this.value.toString(), "aria-label": this.label, onInput: this.handleInput, onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur }), h("div", { key: 'a42c04e3098ec7a96d871c1e7eb12d59189ce540', class: "buttons" }, h("button", { key: '05b28026fc46ed0b14f6617880a252bf83137fa5', class: "button", type: "button", "aria-label": `Decrease ${this.label}`, disabled: !this.canDecrease, onClick: this.handleDecrease }, h("ezp-icon", { key: '66b31a81d7e7836442d342991c6a4ec3749db8ce', name: "minus" })), h("button", { key: '9380b02ebd91ea0cdd26dce6f85ccb7c825d0fe2', class: "button", type: "button", "aria-label": `Increase ${this.label}`, disabled: !this.canIncrease, onClick: this.handleIncrease }, h("ezp-icon", { key: 'b85c276634c61557a475f2951531d9ff0ff78435', name: "plus" })))));
130
+ return (h(Host, { key: 'ef15da0203857706cd220bd932fe25fb20f9a876', class: `${this.focused ? 'focused' : ''} ${this.icon ? 'has-icon' : ''}` }, h("div", { key: 'c36d83b93752da6678184e6e5d449e7422d0dd10', id: "toggle", onClick: this.setFocus }), this.icon ? h("ezp-icon", { id: "icon", name: this.icon }) : null, h("ezp-label", { key: '14e07c854636dfce079c349dd245fa8c7fc3025d', id: "label", noWrap: true, text: this.label }), h("div", { key: '11eef956e9f5dbb0feffa5fd2aed60dae7d80035', class: "buttons" }, h("button", { key: 'e328929f56a3aebeff825a711674a9e3d9e91ab0', class: "button", type: "button", "aria-label": `Decrease ${this.label}`, disabled: !this.canDecrease, onClick: this.handleDecrease }, h("ezp-icon", { key: 'd1af53b4ab9e22c28bd16325851f01e7c551de94', name: "minus" })), h("input", { key: '3591c3060576cf1abdc1187e20aa97b901589a92', id: "input", type: "number", ref: (input) => (this.input = input), min: this.min.toString(), max: this.max !== undefined ? this.max.toString() : undefined, value: this.value.toString(), "aria-label": this.label, onInput: this.handleInput, onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur }), h("button", { key: 'c081e7190bbea2f2d75cf81394c781ade876dce6', class: "button", type: "button", "aria-label": `Increase ${this.label}`, disabled: !this.canIncrease, onClick: this.handleIncrease }, h("ezp-icon", { key: 'd3a1ddde274537dec1f5a17c0cdf5afdd40fe24f', name: "plus" })))));
131
131
  }
132
132
  static get is() { return "ezp-stepper"; }
133
133
  static get encapsulation() { return "shadow"; }
@@ -148,7 +148,7 @@ export class EzpStepper {
148
148
  "mutable": false,
149
149
  "complexType": {
150
150
  "original": "IconNameTypes",
151
- "resolved": "\"account\" | \"checkmark\" | \"checkmark-alt\" | \"close\" | \"color\" | \"copies\" | \"dark\" | \"drag-drop\" | \"duplex\" | \"exclamation-mark\" | \"expand\" | \"height\" | \"help\" | \"light\" | \"logo\" | \"logout\" | \"menu\" | \"minus\" | \"orientation\" | \"paper_range\" | \"plus\" | \"printer\" | \"quality\" | \"question-mark\" | \"size\" | \"system\" | \"trays\" | \"width\"",
151
+ "resolved": "\"account\" | \"checkmark\" | \"checkmark-alt\" | \"close\" | \"cloud-upload\" | \"color\" | \"copies\" | \"dark\" | \"drag-drop\" | \"duplex\" | \"exclamation-mark\" | \"expand\" | \"file\" | \"height\" | \"help\" | \"light\" | \"logo\" | \"logout\" | \"menu\" | \"minus\" | \"orientation\" | \"paper_range\" | \"plus\" | \"printer\" | \"quality\" | \"question-mark\" | \"size\" | \"system\" | \"trays\" | \"width\"",
152
152
  "references": {
153
153
  "IconNameTypes": {
154
154
  "location": "import",
@@ -38,8 +38,8 @@
38
38
  appearance: none;
39
39
  background: var(--ezp-textButton-background, var(--ezp-textButton-background-init));
40
40
  border: 0;
41
- border-radius: 3px;
42
- box-shadow: none;
41
+ border-radius: var(--ezp-textButton-borderRadius, 3px);
42
+ box-shadow: var(--ezp-textButton-boxShadow, none);
43
43
  color: var(--ezp-textButton-color, var(--ezp-textButton-color-init));
44
44
  cursor: var(--ezp-textButton-cursor, pointer);
45
45
  display: flex;
@@ -48,7 +48,7 @@
48
48
  margin: 0;
49
49
  opacity: var(--ezp-textButton-opacity, 1);
50
50
  outline: none;
51
- padding: var(--ezp-spacing-3);
51
+ padding: var(--ezp-textButton-padding, var(--ezp-spacing-3));
52
52
  white-space: nowrap;
53
53
  width: 100%;
54
54
  }
@@ -31,7 +31,7 @@ export class EzpTextButton {
31
31
  href: this.href,
32
32
  target: this.blank ? '_blank' : '_self',
33
33
  };
34
- return (h(Host, { key: '24c7d7fe23395513fccfc8fc94fbc552a1763148', class: `${this.level}` }, h(TagType, Object.assign({ key: 'eded3e128d17f4b5bf5a29b01e51f4a2ba1d6d74', id: "button", "aria-label": this.label }, attributes), h("ezp-label", { key: '4974381f385143ac4828f74c580ef280357e85ac', id: "label", weight: "heavy", text: this.label, level: this.small ? 'tertiary' : 'secondary' }))));
34
+ return (h(Host, { key: 'e4d814429f79e8c7043ac26f44ebab08ba119cb4', class: `${this.level}` }, h(TagType, Object.assign({ key: 'e3f66d16f69c8abc1f073558b6547644340dcb6b', id: "button", "aria-label": this.label }, attributes), h("ezp-label", { key: 'c091e210993059cdf044863fe600212ec04c44b7', id: "label", weight: "heavy", text: this.label, level: this.small ? 'tertiary' : 'secondary' }))));
35
35
  }
36
36
  static get is() { return "ezp-text-button"; }
37
37
  static get encapsulation() { return "shadow"; }