@ezeep/ezeep-js 1.0.290 → 1.0.294

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_15.cjs.entry.js +82 -50
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/collection/components/ezp-input/ezp-input.css +11 -2
  5. package/dist/collection/components/ezp-input/ezp-input.js +3 -5
  6. package/dist/collection/components/ezp-label/ezp-label.js +1 -1
  7. package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.css +41 -15
  8. package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.js +12 -8
  9. package/dist/collection/components/ezp-printing/ezp-printing.js +1 -1
  10. package/dist/collection/components/ezp-select/ezp-select.css +9 -12
  11. package/dist/collection/components/ezp-select/ezp-select.js +1 -1
  12. package/dist/collection/components/ezp-status/ezp-status.js +2 -2
  13. package/dist/collection/components/ezp-stepper/ezp-stepper.js +1 -1
  14. package/dist/collection/components/ezp-text-button/ezp-text-button.css +3 -1
  15. package/dist/collection/components/ezp-text-button/ezp-text-button.js +1 -1
  16. package/dist/collection/components/ezp-upload/ezp-upload.css +173 -144
  17. package/dist/collection/components/ezp-upload/ezp-upload.js +56 -9
  18. package/dist/collection/components/ezp-user-menu/ezp-user-menu.js +1 -1
  19. package/dist/components/ezp-input2.js +1 -1
  20. package/dist/components/ezp-label2.js +1 -1
  21. package/dist/components/ezp-printer-selection2.js +1 -1
  22. package/dist/components/ezp-printing.js +1 -1
  23. package/dist/components/ezp-select2.js +1 -1
  24. package/dist/components/ezp-status2.js +1 -1
  25. package/dist/components/ezp-stepper2.js +1 -1
  26. package/dist/components/ezp-text-button2.js +1 -1
  27. package/dist/components/ezp-upload2.js +1 -1
  28. package/dist/components/ezp-user-menu2.js +1 -1
  29. package/dist/components/utils.js +1 -1
  30. package/dist/esm/ezeep.js +1 -1
  31. package/dist/esm/ezp-auth_15.entry.js +82 -50
  32. package/dist/esm/loader.js +1 -1
  33. package/dist/esm-es5/ezeep.js +1 -1
  34. package/dist/esm-es5/ezp-auth_15.entry.js +2 -2
  35. package/dist/esm-es5/loader.js +1 -1
  36. package/dist/ezeep/ezeep.esm.js +1 -1
  37. package/dist/ezeep/p-3ab5a223.entry.js +1 -0
  38. package/dist/ezeep/p-DCznw2Ee.system.js +1 -1
  39. package/dist/ezeep/{p-6a494b7b.system.entry.js → p-fe700ca4.system.entry.js} +2 -2
  40. package/dist/types/components/ezp-printer-selection/ezp-printer-selection.d.ts +2 -0
  41. package/dist/types/components/ezp-upload/ezp-upload.d.ts +8 -1
  42. package/dist/types/components.d.ts +0 -2
  43. package/package.json +1 -1
  44. package/www/build/ezeep.esm.js +1 -1
  45. package/www/build/p-3ab5a223.entry.js +1 -0
  46. package/www/build/{p-67021add.js → p-65242d5e.js} +1 -1
  47. package/www/build/p-DCznw2Ee.system.js +1 -1
  48. package/www/build/{p-6a494b7b.system.entry.js → p-fe700ca4.system.entry.js} +2 -2
  49. package/www/data/locales/de.json +6 -9
  50. package/www/data/locales/en.json +6 -9
  51. package/www/index.html +1 -1
  52. package/dist/ezeep/p-0df147f4.entry.js +0 -1
  53. package/www/build/p-0df147f4.entry.js +0 -1
@@ -6,7 +6,7 @@ var appGlobals = require('./app-globals-L_3XPZxT.js');
6
6
  const defineCustomElements = async (win, options) => {
7
7
  if (typeof window === 'undefined') return undefined;
8
8
  await appGlobals.globalScripts();
9
- return index.bootstrapLazy([["ezp-auth_15.cjs",[[257,"ezp-printing",{"clientid":[1],"redirecturi":[1],"filename":[1025],"fileurl":[1],"filetype":[1],"custom":[4],"hidelogin":[4],"hidemenu":[4],"hideheader":[4],"authapihosturl":[1],"printapihosturl":[1],"theme":[1],"fileid":[1],"appearance":[1],"trigger":[1],"language":[1],"code":[1],"filedata":[1],"seamless":[4],"printOpen":[32],"authOpen":[32],"onlyGetSasUri":[32],"noDocumentOpen":[32],"systemAppearance":[32],"files":[32],"open":[64],"logOut":[64],"getSasUri":[64],"getAuthUri":[64],"setAuthRefreshToken":[64],"checkAuth":[64]},[[0,"printCancel","listenPrintCancel"],[0,"printSubmit","listenPrintSubmit"],[0,"authCancel","listenAuthCancel"],[0,"userCancel","listenUserCancel"],[0,"authSuccess","listenAuthSuccess"],[0,"uploadFile","listenUploadFile"],[0,"uploadContinue","listenUploadContinue"],[0,"dialogClose","listenDialogClose"],[0,"dialogAction","listenDialogAction"],[0,"logout","listenLogout"]],{"filedata":[{"watchFileData":0}],"filename":[{"watchFilename":0}],"fileurl":[{"watchFileUrl":0}],"language":[{"watchLanguage":0}]}],[1,"ezp-printer-selection",{"clientID":[1,"client-i-d"],"redirectURI":[1,"redirect-u-r-i"],"filename":[1025],"fileurl":[1],"filetype":[1025],"fileid":[1025],"files":[16],"hidemenu":[4],"hideheader":[4],"seamless":[4],"loading":[32],"printProcessing":[32],"pageRangeInvalid":[32],"uploading":[32],"preparingUpload":[32],"printSuccess":[32],"printFailed":[32],"printTimedOut":[32],"notSupported":[32],"noPrinters":[32],"hubDriverError":[32],"userMenuOpen":[32],"printStopped":[32],"userName":[32],"printers":[32],"selectedPrinter":[32],"printerConfig":[32],"selectedPrinterConfig":[32],"selectedProperties":[32],"paperid":[32],"currentFileIndex":[32],"totalFiles":[32],"failedFiles":[32],"successfulFiles":[32],"partialSuccess":[32]},[[0,"inputValueChanged","listenInputValueChanged"],[0,"selectSelection","listenSelectSelection"],[0,"stepperChanged","listenStepperChanged"],[0,"userMenuClosure","listenUserMenuClosure"],[0,"logoutEmitter","listenLogout"],[0,"statusCancel","listenStatusCancel"],[0,"statusClose","listenStatusClose"],[0,"statusRetry","listenStatusRetry"]]],[1,"ezp-auth",{"clientID":[1025,"client-i-d"],"redirectURI":[1025,"redirect-u-r-i"],"hidelogin":[4],"trigger":[1],"code":[1],"auth":[32],"authURI":[32],"accessToken":[32]},[[0,"dialogAction","listenDialogAction"],[0,"dialogClose","listenDialogClose"],[0,"statusCancel","listenStatusCancel"]]],[1,"ezp-upload",{"selectedFiles":[32],"dragging":[32]},[[1,"dragenter","handleDragEnter"],[0,"dragover","handleDragOver"],[1,"dragleave","handleDragLeave"],[0,"drop","handleDrop"],[4,"printCancel","listenPrintCancel"]]],[1,"ezp-dialog",{"heading":[1],"description":[1],"action":[1],"iconName":[1,"icon-name"],"iconSize":[1,"icon-size"],"iconFramed":[4,"icon-framed"],"instance":[1]},[[8,"keydown","handleKeydown"]]],[1,"ezp-user-menu",{"name":[1],"open":[1028]},null,{"open":[{"watchOpen":0}]}],[1,"ezp-select",{"icon":[1],"label":[1],"optionFlow":[1,"option-flow"],"options":[16],"placeholder":[1],"preSelected":[8,"pre-selected"],"toggleFlow":[1,"toggle-flow"],"disabled":[4],"expanded":[32],"selected":[32]},null,{"expanded":[{"watchExpanded":0}],"preSelected":[{"preSelectedChanged":0}]}],[1,"ezp-input",{"label":[1],"value":[1032],"type":[1],"icon":[1],"suffix":[513],"eventType":[1,"event-type"],"placeholder":[1],"focused":[32]}],[1,"ezp-stepper",{"icon":[1],"label":[1],"max":[2],"min":[2],"canDecrease":[32],"canIncrease":[32],"focused":[32],"value":[32]},null,{"value":[{"watchValue":0}]}],[1,"ezp-status",{"description":[1],"subtext":[1],"processing":[4],"instance":[1],"icon":[1],"cancel":[8],"close":[8],"retry":[8]}],[1,"ezp-backdrop",{"visible":[1028]},[[0,"animationend","listenAnimationEnd"]]],[1,"ezp-icon-button",{"blank":[4],"disabled":[4],"href":[1],"icon":[1],"level":[1],"type":[1]}],[1,"ezp-text-button",{"blank":[4],"disabled":[4],"href":[1],"level":[1],"label":[1],"type":[1],"small":[4]}],[1,"ezp-icon",{"name":[1],"size":[1],"framed":[4]}],[1,"ezp-label",{"ellipsis":[4],"level":[1],"noWrap":[4,"no-wrap"],"text":[1],"weight":[1]}]]]], options);
9
+ return index.bootstrapLazy([["ezp-auth_15.cjs",[[257,"ezp-printing",{"clientid":[1],"redirecturi":[1],"filename":[1025],"fileurl":[1],"filetype":[1],"custom":[4],"hidelogin":[4],"hidemenu":[4],"hideheader":[4],"authapihosturl":[1],"printapihosturl":[1],"theme":[1],"fileid":[1],"appearance":[1],"trigger":[1],"language":[1],"code":[1],"filedata":[1],"seamless":[4],"printOpen":[32],"authOpen":[32],"onlyGetSasUri":[32],"noDocumentOpen":[32],"systemAppearance":[32],"files":[32],"open":[64],"logOut":[64],"getSasUri":[64],"getAuthUri":[64],"setAuthRefreshToken":[64],"checkAuth":[64]},[[0,"printCancel","listenPrintCancel"],[0,"printSubmit","listenPrintSubmit"],[0,"authCancel","listenAuthCancel"],[0,"userCancel","listenUserCancel"],[0,"authSuccess","listenAuthSuccess"],[0,"uploadFile","listenUploadFile"],[0,"uploadContinue","listenUploadContinue"],[0,"dialogClose","listenDialogClose"],[0,"dialogAction","listenDialogAction"],[0,"logout","listenLogout"]],{"filedata":[{"watchFileData":0}],"filename":[{"watchFilename":0}],"fileurl":[{"watchFileUrl":0}],"language":[{"watchLanguage":0}]}],[1,"ezp-printer-selection",{"clientID":[1,"client-i-d"],"redirectURI":[1,"redirect-u-r-i"],"filename":[1025],"fileurl":[1],"filetype":[1025],"fileid":[1025],"files":[16],"hidemenu":[4],"hideheader":[4],"seamless":[4],"loading":[32],"printProcessing":[32],"pageRangeInvalid":[32],"uploading":[32],"preparingUpload":[32],"printSuccess":[32],"printFailed":[32],"printTimedOut":[32],"notSupported":[32],"noPrinters":[32],"hubDriverError":[32],"userMenuOpen":[32],"printStopped":[32],"userName":[32],"printers":[32],"selectedPrinter":[32],"printerConfig":[32],"selectedPrinterConfig":[32],"selectedProperties":[32],"paperid":[32],"currentFileIndex":[32],"totalFiles":[32],"failedFiles":[32],"successfulFiles":[32],"partialSuccess":[32]},[[0,"inputValueChanged","listenInputValueChanged"],[0,"selectSelection","listenSelectSelection"],[0,"stepperChanged","listenStepperChanged"],[0,"userMenuClosure","listenUserMenuClosure"],[0,"logoutEmitter","listenLogout"],[0,"statusCancel","listenStatusCancel"],[0,"statusClose","listenStatusClose"],[0,"statusRetry","listenStatusRetry"]]],[1,"ezp-auth",{"clientID":[1025,"client-i-d"],"redirectURI":[1025,"redirect-u-r-i"],"hidelogin":[4],"trigger":[1],"code":[1],"auth":[32],"authURI":[32],"accessToken":[32]},[[0,"dialogAction","listenDialogAction"],[0,"dialogClose","listenDialogClose"],[0,"statusCancel","listenStatusCancel"]]],[1,"ezp-upload",{"selectedFiles":[32],"dragging":[32]},[[0,"dragenter","handleDragEnter"],[0,"dragover","handleDragOver"],[1,"dragleave","handleDragLeave"],[0,"drop","handleDrop"],[9,"drop","resetDrag"],[9,"dragend","resetDrag"],[4,"printCancel","listenPrintCancel"]]],[1,"ezp-dialog",{"heading":[1],"description":[1],"action":[1],"iconName":[1,"icon-name"],"iconSize":[1,"icon-size"],"iconFramed":[4,"icon-framed"],"instance":[1]},[[8,"keydown","handleKeydown"]]],[1,"ezp-user-menu",{"name":[1],"open":[1028]},null,{"open":[{"watchOpen":0}]}],[1,"ezp-select",{"icon":[1],"label":[1],"optionFlow":[1,"option-flow"],"options":[16],"placeholder":[1],"preSelected":[8,"pre-selected"],"toggleFlow":[1,"toggle-flow"],"disabled":[4],"expanded":[32],"selected":[32]},null,{"expanded":[{"watchExpanded":0}],"preSelected":[{"preSelectedChanged":0}]}],[1,"ezp-input",{"label":[1],"value":[1032],"type":[1],"icon":[1],"suffix":[513],"eventType":[1,"event-type"],"placeholder":[1],"focused":[32]}],[1,"ezp-stepper",{"icon":[1],"label":[1],"max":[2],"min":[2],"canDecrease":[32],"canIncrease":[32],"focused":[32],"value":[32]},null,{"value":[{"watchValue":0}]}],[1,"ezp-status",{"description":[1],"subtext":[1],"processing":[4],"instance":[1],"icon":[1],"cancel":[8],"close":[8],"retry":[8]}],[1,"ezp-backdrop",{"visible":[1028]},[[0,"animationend","listenAnimationEnd"]]],[1,"ezp-icon-button",{"blank":[4],"disabled":[4],"href":[1],"icon":[1],"level":[1],"type":[1]}],[1,"ezp-text-button",{"blank":[4],"disabled":[4],"href":[1],"level":[1],"label":[1],"type":[1],"small":[4]}],[1,"ezp-icon",{"name":[1],"size":[1],"framed":[4]}],[1,"ezp-label",{"ellipsis":[4],"level":[1],"noWrap":[4,"no-wrap"],"text":[1],"weight":[1]}]]]], options);
10
10
  };
11
11
 
12
12
  exports.setNonce = index.setNonce;
@@ -34,13 +34,22 @@
34
34
  cursor: text;
35
35
  display: grid;
36
36
  gap: var(--ezp-spacing-3);
37
- grid-template: var(--ezp-input-grid-template, auto/auto auto 1fr);
37
+ grid-template: var(--ezp-input-grid-template, auto/auto 1fr);
38
38
  height: 56px;
39
39
  padding: var(--ezp-spacing-2) var(--ezp-spacing-3);
40
40
  position: relative;
41
41
  z-index: var(--ezp-input-z-index, 3);
42
42
  }
43
+ :host(.has-icon) {
44
+ --ezp-input-grid-template: auto / auto auto 1fr;
45
+ }
46
+
43
47
  :host([suffix]) {
48
+ --ezp-input-grid-template: auto / auto 1fr auto;
49
+ --ezp-input-input-padding-right: 0;
50
+ }
51
+
52
+ :host([suffix].has-icon) {
44
53
  --ezp-input-grid-template: auto / auto auto 1fr auto;
45
54
  --ezp-input-input-padding-right: 0;
46
55
  }
@@ -73,8 +82,8 @@
73
82
  font-family: inherit;
74
83
  font-feature-settings: "tnum";
75
84
  font-size: 14px;
76
- font-weight: 600;
77
85
  -webkit-font-smoothing: antialiased;
86
+ font-weight: 600;
78
87
  height: 30px;
79
88
  letter-spacing: -0.0062235443em;
80
89
  margin: 0;
@@ -12,8 +12,6 @@ export class EzpInput {
12
12
  /** Description... */
13
13
  this.type = 'text';
14
14
  /** Description... */
15
- this.icon = 'color';
16
- /** Description... */
17
15
  this.placeholder = '';
18
16
  /**
19
17
  *
@@ -46,7 +44,8 @@ export class EzpInput {
46
44
  }, 500);
47
45
  }
48
46
  render() {
49
- return (h(Host, { key: 'ba8958137bce0592dbe4ec23c03284885f570e27', class: { focused: this.focused }, onClick: this.setFocus }, h("ezp-icon", { key: '9d3b108841ffdabec9b9a98d6d6b2ea19fba37fc', id: "icon", name: this.icon }), h("ezp-label", { key: '5fee00202e9c6407bddf8a1b7090d983d79e42b3', id: "label", noWrap: true, level: "secondary", text: this.label }), h("input", { key: '99c71e9c6d29193046bd0b6094efbac828ffab15', id: "input", type: this.type, value: this.value, placeholder: this.placeholder, "aria-label": this.label, onInput: (event) => this.handleChange(event), ref: (input) => (this.input = input), onFocus: this.handleFocus, onBlur: this.handleBlur }), this.suffix ? h("ezp-label", { id: "suffix", level: "secondary", text: this.suffix }) : null));
47
+ const hasIcon = !!this.icon;
48
+ return (h(Host, { key: '47a8f8b4f1dd6a8cb2b67ffc21e8770e555a52e3', class: { focused: this.focused, 'has-icon': hasIcon }, onClick: this.setFocus }, hasIcon ? h("ezp-icon", { id: "icon", name: this.icon }) : null, h("ezp-label", { key: '7d9401d2ab927cb52cd2fcfbdcf8790c5a6d0228', id: "label", noWrap: true, level: "secondary", text: this.label }), h("input", { key: 'f0422183a1677ba90e8fe74d6ccf3abdaeb3d645', id: "input", type: this.type, value: this.value, placeholder: this.placeholder, "aria-label": this.label, onInput: (event) => this.handleChange(event), ref: (input) => (this.input = input), onFocus: this.handleFocus, onBlur: this.handleBlur }), this.suffix ? h("ezp-label", { id: "suffix", level: "secondary", text: this.suffix }) : null));
50
49
  }
51
50
  static get is() { return "ezp-input"; }
52
51
  static get encapsulation() { return "shadow"; }
@@ -145,8 +144,7 @@ export class EzpInput {
145
144
  "getter": false,
146
145
  "setter": false,
147
146
  "reflect": false,
148
- "attribute": "icon",
149
- "defaultValue": "'color'"
147
+ "attribute": "icon"
150
148
  },
151
149
  "suffix": {
152
150
  "type": "string",
@@ -23,7 +23,7 @@ export class EzpLabel {
23
23
  *
24
24
  */
25
25
  render() {
26
- return (h(Host, { key: '2dc1901cc1a083e659eb7224a3e34566145e89c2', class: `${this.level} ${this.weight} ${this.ellipsis ? 'ellipsis' : ''} ${this.noWrap ? 'no-wrap' : ''}` }, h("div", { key: '8919f66e8401b3e2797d0ab9ce50f42c0b244348', id: "text" }, this.text)));
26
+ return (h(Host, { key: '941746aaf861bd3ffe8dc65c1c5dbc52866be923', class: `${this.level} ${this.weight} ${this.ellipsis ? 'ellipsis' : ''} ${this.noWrap ? 'no-wrap' : ''}` }, h("div", { key: '36ee30f53e0209f569129ce1c1ca8e1ccf5d0803', id: "text" }, this.text)));
27
27
  }
28
28
  static get is() { return "ezp-label"; }
29
29
  static get encapsulation() { return "shadow"; }
@@ -29,11 +29,6 @@
29
29
  *
30
30
  */
31
31
  :host {
32
- --ezp-drucken-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
- );
37
32
  --ezp-status-border-radius: 16px;
38
33
  background: var(--ezp-printerSelection-background, var(--ezp-core-backdrop));
39
34
  box-sizing: border-box;
@@ -168,18 +163,34 @@
168
163
  * Printer card + print button
169
164
  *
170
165
  */
166
+ #printer-caption {
167
+ color: var(--ezp-core-foreground-secondary);
168
+ letter-spacing: 0.08em;
169
+ padding: 0 var(--ezp-spacing-1);
170
+ text-transform: uppercase;
171
+ }
172
+
171
173
  #printer-card {
172
174
  border-radius: 12px;
173
175
  box-shadow: inset 0 0 0 1px var(--ezp-core-outline);
174
176
  position: relative;
175
177
  }
176
178
 
179
+ /* The caption above the card names this select, so hide its built-in label and
180
+ let the printer name sit next to the badge instead of hugging the chevron. */
181
+ #printer {
182
+ --ezp-select-label-display: none;
183
+ --ezp-select-toggle-gridTemplateAreas: 'icon value accessory';
184
+ --ezp-select-toggle-gridTemplateRows: auto;
185
+ --ezp-select-value-textAlign: left;
186
+ }
187
+
177
188
  #print {
178
189
  align-items: center;
179
190
  appearance: none;
180
- background: var(--ezp-drucken-gradient);
191
+ background: var(--ezp-theme-solid);
181
192
  border: 0;
182
- border-radius: 0 0 12px 12px;
193
+ border-radius: 8px;
183
194
  color: var(--ezp-white-100);
184
195
  cursor: pointer;
185
196
  display: flex;
@@ -188,7 +199,7 @@
188
199
  justify-content: center;
189
200
  margin: 0;
190
201
  outline: none;
191
- padding: var(--ezp-spacing-4);
202
+ padding: 13px var(--ezp-spacing-4);
192
203
  transition: opacity var(--ezp-duration-2) var(--ezp-easing-out-quart);
193
204
  width: 100%;
194
205
  }
@@ -219,25 +230,40 @@
219
230
  display: flex;
220
231
  flex-direction: column;
221
232
  }
233
+ #options > * {
234
+ box-shadow: inset 0 -1px 0 0 var(--ezp-core-outline);
235
+ }
236
+ #options > *:last-child {
237
+ box-shadow: none;
238
+ }
222
239
 
223
240
  /**
224
241
  *
225
242
  * Footer
226
243
  *
227
244
  */
245
+ /* Sticky so Print stays in view when the dialog is taller than the viewport
246
+ and the backdrop scrolls. A scrolling #body would clip the selects, which
247
+ expand in place and measure themselves against #box. */
228
248
  #footer {
229
- display: flex;
230
- justify-content: flex-end;
231
- padding: var(--ezp-spacing-3) var(--ezp-spacing-4) var(--ezp-spacing-4);
232
- position: relative;
249
+ background: var(--ezp-printerSelection-body-background, var(--ezp-core-surface-tertiary));
250
+ border-radius: 0 0 16px 16px;
251
+ border-top: 1px solid var(--ezp-core-outline);
252
+ bottom: 0;
253
+ display: grid;
254
+ gap: var(--ezp-spacing-3);
255
+ grid-template-columns: 1fr 1.4fr;
256
+ padding: var(--ezp-spacing-4);
257
+ position: sticky;
233
258
  z-index: 3;
234
259
  }
235
260
 
236
261
  #cancel {
237
- --ezp-textButton-background-init: transparent;
262
+ --ezp-textButton-background-active: var(--ezp-core-shade-secondary);
238
263
  --ezp-textButton-background-hover: var(--ezp-core-shade-primary);
264
+ --ezp-textButton-background-init: transparent;
265
+ --ezp-textButton-borderRadius: 8px;
239
266
  --ezp-textButton-boxShadow: inset 0 0 0 1px var(--ezp-core-outline);
240
- --ezp-textButton-borderRadius: 999px;
241
267
  --ezp-textButton-color-init: var(--ezp-core-foreground-primary);
242
- --ezp-textButton-padding: var(--ezp-spacing-3) var(--ezp-spacing-6);
268
+ --ezp-textButton-padding: 13px var(--ezp-spacing-3);
243
269
  }
@@ -372,6 +372,10 @@ export class EzpPrinterSelection {
372
372
  break;
373
373
  }
374
374
  }
375
+ /** Print needs a printer, no job in flight and a valid page range. */
376
+ get printDisabled() {
377
+ return this.selectedPrinter.id === '' || this.printProcessing || this.pageRangeInvalid;
378
+ }
375
379
  getPropertiesFromLocalStorage() {
376
380
  const savedProperties = storage.getProperties();
377
381
  if (savedProperties) {
@@ -681,7 +685,7 @@ export class EzpPrinterSelection {
681
685
  ? [this.filename]
682
686
  : [];
683
687
  const fileCount = fileNames.length;
684
- return this.loading ? (h("ezp-status", { processing: true, description: i18next.t('printer_selection.loading'), instance: "loading" })) : (h(Host, { class: { seamless: this.seamless } }, h("div", { id: "box", "data-backdrop-surface": true }, !this.printStopped && this.renderStatus(), !this.hideheader && (h("div", { id: "header" }, h("div", { id: "title" }, h("ezp-label", { weight: "heavy", text: i18next.t('printer_selection.print') }), !this.notSupported && fileCount > 0 && (h("span", { id: "files-badge" }, i18next.t('printer_selection.file_count', { count: fileCount })))), h("div", { id: "header-actions" }, !this.hidemenu && (h("ezp-icon-button", { level: "tertiary", icon: "menu", id: "toggle-menu", type: "button", onClick: this.handleUserMenu })), h("ezp-icon-button", { level: "tertiary", icon: "close", id: "close", type: "button", onClick: this.handleCancel })))), h("div", { id: "body" }, !this.notSupported && fileNames.length > 0 && (h("div", { id: "files-card" }, fileNames.map((name, index) => (h("div", { class: "file-row", key: index }, h("ezp-icon", { name: "file", class: "file-row-icon" }), h("ezp-label", { ellipsis: true, text: name })))))), h("div", { id: "printer-card" }, h("ezp-select", { id: "printer", label: i18next.t('printer_selection.printer'), icon: "printer", placeholder: this.printers.length > 0
688
+ return this.loading ? (h("ezp-status", { processing: true, description: i18next.t('printer_selection.loading'), instance: "loading" })) : (h(Host, { class: { seamless: this.seamless } }, h("div", { id: "box", "data-backdrop-surface": true }, !this.printStopped && this.renderStatus(), !this.hideheader && (h("div", { id: "header" }, h("div", { id: "title" }, h("ezp-label", { weight: "heavy", text: i18next.t('printer_selection.print') }), !this.notSupported && fileCount > 0 && (h("span", { id: "files-badge" }, i18next.t('printer_selection.file_count', { count: fileCount })))), h("div", { id: "header-actions" }, !this.hidemenu && (h("ezp-icon-button", { level: "tertiary", icon: "menu", id: "toggle-menu", type: "button", onClick: this.handleUserMenu })), h("ezp-icon-button", { level: "tertiary", icon: "close", id: "close", type: "button", onClick: this.handleCancel })))), h("div", { id: "body" }, !this.notSupported && fileNames.length > 0 && (h("div", { id: "files-card" }, fileNames.map((name, index) => (h("div", { class: "file-row", key: index }, h("ezp-icon", { name: "file", class: "file-row-icon" }), h("ezp-label", { ellipsis: true, text: name })))))), h("ezp-label", { id: "printer-caption", level: "tertiary", weight: "heavy", text: i18next.t('printer_selection.printer') }), h("div", { id: "printer-card" }, h("ezp-select", { id: "printer", label: i18next.t('printer_selection.printer'), icon: "printer", placeholder: this.printers.length > 0
685
689
  ? i18next.t('printer_selection.select_printer')
686
690
  : i18next.t('printer_selection.no_printers'), toggleFlow: "vertical", optionFlow: "vertical", options: this.printers.map((printer) => ({
687
691
  id: printer.id,
@@ -689,14 +693,14 @@ export class EzpPrinterSelection {
689
693
  meta: printer.location !== '' ? printer.location : '',
690
694
  type: 'printer',
691
695
  is_queue: printer.is_queue,
692
- })), preSelected: this.selectedPrinter.id ? this.selectedPrinter.name : null, disabled: !(this.printers.length > 0) }), h("button", { id: "print", type: "button", disabled: this.selectedPrinter.id === '' || this.printProcessing || this.pageRangeInvalid, onClick: this.handlePrint, ref: (button) => (this.printButton = button) }, h("ezp-icon", { name: "printer" }), h("ezp-label", { weight: "heavy", text: i18next.t('printer_selection.print') }))), h("div", { id: "options" }, h("ezp-stepper", { label: i18next.t('printer_selection.copies'), icon: "copies" }), h("ezp-select", { label: i18next.t('printer_selection.color'), icon: "color", placeholder: i18next.t('printer_selection.select_color'), toggleFlow: "horizontal", options: (_a = this.ColorOptions) === null || _a === void 0 ? void 0 : _a.map((option) => ({
696
+ })), preSelected: this.selectedPrinter.id ? this.selectedPrinter.name : null, disabled: !(this.printers.length > 0) })), h("div", { id: "options" }, h("ezp-stepper", { label: i18next.t('printer_selection.copies') }), h("ezp-select", { label: i18next.t('printer_selection.color'), placeholder: i18next.t('printer_selection.select_color'), toggleFlow: "horizontal", options: (_a = this.ColorOptions) === null || _a === void 0 ? void 0 : _a.map((option) => ({
693
697
  id: option.id,
694
698
  title: option.title,
695
699
  meta: '',
696
700
  type: 'color',
697
701
  })), preSelected: this.selectedPrinter.id && ((_b = this.selectedPrinterConfig.Default) === null || _b === void 0 ? void 0 : _b.Color) == 'color'
698
702
  ? i18next.t('printer_selection.color_color')
699
- : i18next.t('printer_selection.color_grayscale'), disabled: !this.selectedPrinterConfig.ColorSupported }), h("ezp-select", { label: i18next.t('printer_selection.duplex'), icon: "duplex", placeholder: i18next.t('printer_selection.select_duplex'), toggleFlow: "horizontal", options: (_c = this.duplexOptions) === null || _c === void 0 ? void 0 : _c.map((option) => ({
703
+ : i18next.t('printer_selection.color_grayscale'), disabled: !this.selectedPrinterConfig.ColorSupported }), h("ezp-select", { label: i18next.t('printer_selection.duplex'), placeholder: i18next.t('printer_selection.select_duplex'), toggleFlow: "horizontal", options: (_c = this.duplexOptions) === null || _c === void 0 ? void 0 : _c.map((option) => ({
700
704
  id: option.id,
701
705
  title: option.title,
702
706
  meta: '',
@@ -708,7 +712,7 @@ export class EzpPrinterSelection {
708
712
  ? i18next.t('printer_selection.duplex_long')
709
713
  : ((_f = this.selectedPrinterConfig.Default) === null || _f === void 0 ? void 0 : _f.Duplex) == 'duplex_horizontal'
710
714
  ? i18next.t('printer_selection.duplex_short')
711
- : null, disabled: !this.selectedPrinterConfig.DuplexSupported }), 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 &&
715
+ : null, disabled: !this.selectedPrinterConfig.DuplexSupported }), h("ezp-select", { label: i18next.t('printer_selection.size'), placeholder: i18next.t('printer_selection.select_size'), toggleFlow: "horizontal", optionFlow: "horizontal", options: this.selectedPrinterConfig.PaperFormats &&
712
716
  this.selectedPrinterConfig.PaperFormats.map((format) => ({
713
717
  id: format.Id,
714
718
  title: format.Name,
@@ -717,12 +721,12 @@ export class EzpPrinterSelection {
717
721
  })), preSelected: this.selectedPrinter.id &&
718
722
  ((_g = this.selectedPrinterConfig.PaperFormats) === null || _g === void 0 ? void 0 : _g.find((el) => { var _a; return el.Name.includes((_a = this.selectedPrinterConfig.Default) === null || _a === void 0 ? void 0 : _a.Paper); }))
719
723
  ? (_h = this.selectedPrinterConfig.Default) === null || _h === void 0 ? void 0 : _h.Paper
720
- : null, disabled: !(((_k = (_j = this.selectedPrinterConfig.PaperFormats) === null || _j === void 0 ? void 0 : _j.length) !== null && _k !== void 0 ? _k : 0) > 0) }), this.paperid == PAPER_ID ? (h(Fragment, null, h("ezp-input", { icon: "width", suffix: "mm", value: this.selectedProperties.paperwidth, eventType: "width", type: "number", label: i18next.t('printer_selection.width') }), h("ezp-input", { icon: "height", suffix: "mm", value: this.selectedProperties.paperlength, eventType: "length", type: "number", label: i18next.t('printer_selection.length') }))) : null, h("ezp-select", { label: i18next.t('printer_selection.orientation'), icon: "orientation", placeholder: i18next.t('printer_selection.select_orientation'), toggleFlow: "horizontal", options: (_l = this.selectedPrinterConfig.OrientationsSupported) === null || _l === void 0 ? void 0 : _l.map((orientation, index) => ({
724
+ : null, disabled: !(((_k = (_j = this.selectedPrinterConfig.PaperFormats) === null || _j === void 0 ? void 0 : _j.length) !== null && _k !== void 0 ? _k : 0) > 0) }), this.paperid == PAPER_ID ? (h(Fragment, null, h("ezp-input", { suffix: "mm", value: this.selectedProperties.paperwidth, eventType: "width", type: "number", label: i18next.t('printer_selection.width') }), h("ezp-input", { suffix: "mm", value: this.selectedProperties.paperlength, eventType: "length", type: "number", label: i18next.t('printer_selection.length') }))) : null, h("ezp-select", { label: i18next.t('printer_selection.orientation'), placeholder: i18next.t('printer_selection.select_orientation'), toggleFlow: "horizontal", options: (_l = this.selectedPrinterConfig.OrientationsSupported) === null || _l === void 0 ? void 0 : _l.map((orientation, index) => ({
721
725
  id: index + 1,
722
726
  title: i18next.t(`printer_selection.orientation_${orientation}`),
723
727
  meta: '',
724
728
  type: 'orientation',
725
- })), preSelected: this.selectedPrinter.id ? this.selectedProperties.orientation : null, disabled: !(((_o = (_m = this.selectedPrinterConfig.OrientationsSupported) === null || _m === void 0 ? void 0 : _m.length) !== null && _o !== void 0 ? _o : 0) > 0) }), h("ezp-select", { label: i18next.t('printer_selection.quality'), icon: "quality", placeholder: i18next.t('printer_selection.select_quality'), toggleFlow: "horizontal", options: (_p = this.selectedPrinterConfig.Resolutions) === null || _p === void 0 ? void 0 : _p.map((option, index) => ({
729
+ })), preSelected: this.selectedPrinter.id ? this.selectedProperties.orientation : null, disabled: !(((_o = (_m = this.selectedPrinterConfig.OrientationsSupported) === null || _m === void 0 ? void 0 : _m.length) !== null && _o !== void 0 ? _o : 0) > 0) }), h("ezp-select", { label: i18next.t('printer_selection.quality'), placeholder: i18next.t('printer_selection.select_quality'), toggleFlow: "horizontal", options: (_p = this.selectedPrinterConfig.Resolutions) === null || _p === void 0 ? void 0 : _p.map((option, index) => ({
726
730
  id: index,
727
731
  title: option,
728
732
  meta: '',
@@ -732,7 +736,7 @@ export class EzpPrinterSelection {
732
736
  ? (_s = this.selectedPrinterConfig.Default) === null || _s === void 0 ? void 0 : _s.Resolution
733
737
  : null, disabled: !(((_u = (_t = this.selectedPrinterConfig.Resolutions) === null || _t === void 0 ? void 0 : _t.length) !== null && _u !== void 0 ? _u : 0) > 0) }), this.selectedPrinterConfig.Trays &&
734
738
  this.selectedPrinterConfig.Trays.length >= 1 &&
735
- this.selectedPrinterConfig.Trays[0] != null ? (h("ezp-select", { label: i18next.t('printer_selection.trays'), icon: "trays", placeholder: i18next.t('printer_selection.select_trays'), toggleFlow: "horizontal", optionFlow: "horizontal", options: this.selectedPrinterConfig.Trays && this.selectedPrinterConfig.Trays.length >= 1
739
+ this.selectedPrinterConfig.Trays[0] != null ? (h("ezp-select", { label: i18next.t('printer_selection.trays'), placeholder: i18next.t('printer_selection.select_trays'), toggleFlow: "horizontal", optionFlow: "horizontal", options: this.selectedPrinterConfig.Trays && this.selectedPrinterConfig.Trays.length >= 1
736
740
  ? this.selectedPrinterConfig.Trays.map((trays) => ({
737
741
  title: trays.Name,
738
742
  id: trays.Index,
@@ -742,7 +746,7 @@ export class EzpPrinterSelection {
742
746
  : undefined, preSelected: this.selectedPrinter.id &&
743
747
  ((_v = this.selectedPrinterConfig.Trays) === null || _v === void 0 ? void 0 : _v.find((el) => { var _a; return el.Name.includes((_a = this.selectedPrinterConfig.Default) === null || _a === void 0 ? void 0 : _a.Tray); }))
744
748
  ? (_w = this.selectedPrinterConfig.Default) === null || _w === void 0 ? void 0 : _w.Tray
745
- : null })) : null, h("ezp-input", { icon: "paper_range", suffix: "", placeholder: "1-2,4-5,8", value: this.selectedProperties.PageRanges, eventType: "paper_ranges", type: "text", label: i18next.t('printer_selection.page_ranges') }))), h("div", { id: "footer" }, h("ezp-text-button", { type: "button", level: "secondary", onClick: this.handleCancel, label: i18next.t('button_actions.cancel'), class: "action", id: "cancel" })), !this.hidemenu && h("ezp-user-menu", { open: this.userMenuOpen, name: this.userName }))));
749
+ : null })) : null, h("ezp-input", { suffix: "", placeholder: "1-2,4-5,8", value: this.selectedProperties.PageRanges, eventType: "paper_ranges", type: "text", label: i18next.t('printer_selection.page_ranges') }))), h("div", { id: "footer" }, h("ezp-text-button", { type: "button", level: "secondary", onClick: this.handleCancel, label: i18next.t('button_actions.cancel'), class: "action", id: "cancel" }), h("button", { id: "print", type: "button", disabled: this.printDisabled, onClick: this.handlePrint, ref: (button) => (this.printButton = button) }, h("ezp-icon", { name: "printer" }), h("ezp-label", { weight: "heavy", text: i18next.t('printer_selection.print') }))), !this.hidemenu && h("ezp-user-menu", { open: this.userMenuOpen, name: this.userName }))));
746
750
  }
747
751
  static get is() { return "ezp-printer-selection"; }
748
752
  static get encapsulation() { return "shadow"; }
@@ -341,7 +341,7 @@ export class EzpPrinting {
341
341
  *
342
342
  */
343
343
  render() {
344
- return (h(Host, { key: '8eaeae452fb60e1c15265cf970dddf8767e4c849', class: `${userStore.state.theme} ${userStore.state.appearance === 'system'
344
+ return (h(Host, { key: '5aa98ade8a71777d5032a3ccfb70d52f9d71f259', class: `${userStore.state.theme} ${userStore.state.appearance === 'system'
345
345
  ? this.systemAppearance
346
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));
347
347
  }
@@ -5,11 +5,6 @@
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
- );
13
8
  display: block;
14
9
  height: var(--ezp-select-toggle-height);
15
10
  position: relative;
@@ -56,12 +51,11 @@
56
51
  --ezp-select-option-height: 52px;
57
52
  }
58
53
 
59
- /* The printer selector reads as a solid, prominent badge (screen 3). */
54
+ /* The printer selector reads as a tinted, rounded badge (screen 3). */
60
55
  :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;
56
+ --ezp-select-badge-borderRadius: 10px;
57
+ --ezp-select-badge-height: 40px;
58
+ --ezp-select-badge-width: 40px;
65
59
  --ezp-select-label-textTransform: uppercase;
66
60
  --ezp-select-label-letterSpacing: 0.08em;
67
61
  --ezp-select-label-fontSize: 11px;
@@ -124,7 +118,7 @@
124
118
 
125
119
  #icon {
126
120
  --ezp-icon-background: var(--ezp-select-badge-background, var(--ezp-theme-translucent));
127
- --ezp-icon-borderRadius: 50%;
121
+ --ezp-icon-borderRadius: var(--ezp-select-badge-borderRadius, 50%);
128
122
  --ezp-icon-height: var(--ezp-select-badge-height, 40px);
129
123
  --ezp-icon-width: var(--ezp-select-badge-width, 40px);
130
124
  align-self: center;
@@ -137,6 +131,9 @@
137
131
  --ezp-label-letterSpacing: var(--ezp-select-label-letterSpacing, normal);
138
132
  align-self: var(--ezp-select-label-alignSelf, auto);
139
133
  color: var(--ezp-select-label-color, var(--ezp-core-foreground-primary));
134
+ /* Hidden when the consumer captions the select from the outside; the label
135
+ prop still names the combobox for assistive tech. */
136
+ display: var(--ezp-select-label-display, block);
140
137
  grid-area: label;
141
138
  text-transform: var(--ezp-select-label-textTransform, none);
142
139
  }
@@ -147,7 +144,7 @@
147
144
  align-self: var(--ezp-select-value-alignSelf, auto);
148
145
  color: var(--ezp-select-value-color, var(--value-color, var(--ezp-core-foreground-secondary)));
149
146
  grid-area: value;
150
- text-align: right;
147
+ text-align: var(--ezp-select-value-textAlign, right);
151
148
  }
152
149
 
153
150
  #accessory {
@@ -209,7 +209,7 @@ export class EzpSelect {
209
209
  this.disabled ? 'disabled' : '',
210
210
  ];
211
211
  const labelLevel = this.toggleFlow === 'horizontal' ? 'secondary' : 'tertiary';
212
- return (h(Host, { key: 'feebc96701d65827e984b1d75d9ef96974ae6df3', class: hostClasses.join(' ') }, h("div", { key: 'ef9d6ac76f626f74d0dfc0cff7e1747afae0df1b', id: "wrap" }, h("div", { key: '3a18e8c059d93be76f72b0244133b7dbddba5d0d', id: "toggle", role: "combobox", "aria-haspopup": "listbox", "aria-controls": "list", "aria-expanded": this.expanded ? 'true' : 'false', "aria-label": this.label, "aria-disabled": this.disabled ? 'true' : 'false', tabindex: this.disabled ? -1 : 0, ref: (el) => (this.toggleEl = el), onClick: () => !this.disabled && this.toggle(), onKeyDown: this.handleToggleKeydown }, this.icon ? h("ezp-icon", { id: "icon", name: this.icon }) : null, h("ezp-label", { key: 'fda5f7c7f33343634df401890b1c580369273568', id: "label", noWrap: true, level: labelLevel, text: this.label }), h("ezp-label", { key: '2cad104bb14338efaf165c7edff5a7226b9f8a8c', id: "value", ellipsis: true, text: ((_a = this.selected) === null || _a === void 0 ? void 0 : _a.title) !== '' ? (_b = this.selected) === null || _b === void 0 ? void 0 : _b.title : this.placeholder }), h("ezp-icon", { key: 'e4e3a59e2ee36ee9d07232ca03e540b4e7dad6ba', id: "accessory", name: "expand" })), h("div", { key: '3f3c5bc0202985d4f64ba9df828c877df1240f6f', id: "list", role: "listbox", "aria-label": this.label, ref: (element) => (this.list = element) }, (_c = this.options) === null || _c === void 0 ? void 0 : _c.map((option) => {
212
+ return (h(Host, { key: '89aa6ffebb4083fd8ea1ca90c4ab3b197498fd68', class: hostClasses.join(' ') }, h("div", { key: '895a0c53f37d7255034643b33b9b4efcc95072e8', id: "wrap" }, h("div", { key: '8339822b01a064a9bc03e8ea9a65e8de55339640', id: "toggle", role: "combobox", "aria-haspopup": "listbox", "aria-controls": "list", "aria-expanded": this.expanded ? 'true' : 'false', "aria-label": this.label, "aria-disabled": this.disabled ? 'true' : 'false', tabindex: this.disabled ? -1 : 0, ref: (el) => (this.toggleEl = el), onClick: () => !this.disabled && this.toggle(), onKeyDown: this.handleToggleKeydown }, this.icon ? h("ezp-icon", { id: "icon", name: this.icon }) : null, h("ezp-label", { key: '3ba6751cd4c366193ef304ed967cd644e8a04aa2', id: "label", noWrap: true, level: labelLevel, text: this.label }), h("ezp-label", { key: 'd0dd648a1ebe6bfb0dd21e0d24da486c21d34d61', id: "value", ellipsis: true, text: ((_a = this.selected) === null || _a === void 0 ? void 0 : _a.title) !== '' ? (_b = this.selected) === null || _b === void 0 ? void 0 : _b.title : this.placeholder }), h("ezp-icon", { key: '11f05e149e4f3c443bf6b261617ea36c794a657c', id: "accessory", name: "expand" })), h("div", { key: '794d83d79e75f5c85d156fc05bf7c0815ed12780', id: "list", role: "listbox", "aria-label": this.label, ref: (element) => (this.list = element) }, (_c = this.options) === null || _c === void 0 ? void 0 : _c.map((option) => {
213
213
  var _a, _b;
214
214
  if (option.title !== '') {
215
215
  return (h("div", { class: `option ${option.id === ((_a = this.selected) === null || _a === void 0 ? void 0 : _a.id) ? 'is-selected' : ''} ${option.meta !== '' ? 'has-meta' : ''} `, role: "option", "aria-selected": option.id === ((_b = this.selected) === null || _b === void 0 ? void 0 : _b.id) ? 'true' : 'false', tabindex: this.expanded ? 0 : -1, onClick: () => this.select(option.id), onKeyDown: (event) => this.handleOptionKeydown(event, option.id) }, h("ezp-icon", { name: "checkmark", class: "indicator" }), h("div", { class: "details" }, h("ezp-label", { class: "title", ellipsis: true, text: option.title }), option.meta !== '' ? (h("ezp-label", { level: "tertiary", class: "meta", text: option.meta, ellipsis: true })) : null)));
@@ -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: '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'
49
+ h(Host, { key: '57292e782da34ffd4ccde20684cd7e5d4b07d857', role: "status", "aria-live": "polite" }, h("div", { key: 'f4cac1f4e6624efaac038b26dd592ef8c96769a1', 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: '6d6747ac139503337ee1ef5c5d9da0c2b8447846', id: "description", weight: "heavy", text: this.description }), this.subtext && (h("ezp-label", { key: '75557ddfdb8a08cd4536550444937adb462c2ec5', id: "subtext", level: "secondary", text: this.subtext })), (this.cancel || this.close || this.retry) && (h("div", { key: '5615011e1e597a18643d6b7b11007b56d4eee4ad', id: "footer" }, this.cancel && (h("ezp-text-button", { key: 'a451aa22649c64745667ae1434690a86ed680a30', 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: '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') })))))));
51
+ : i18next.t('button_actions.cancel') })), this.close && (h("ezp-text-button", { key: 'a3ea31d096ab7514102fb2c8000a5059c833a96b', 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: '154c3547c46066e80207f3c479788b068cf6a84d', 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"; }
@@ -127,7 +127,7 @@ export class EzpStepper {
127
127
  *
128
128
  */
129
129
  render() {
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" })))));
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("div", { key: '3be9bb50e25876cecf351632e002bc37474a12df', class: "buttons" }, h("button", { key: '77fdb0f15d4b54a820a7c4329b2f49ac2bef832e', class: "button", type: "button", "aria-label": `Decrease ${this.label}`, disabled: !this.canDecrease, onClick: this.handleDecrease }, h("ezp-icon", { key: '76cc4d8fefdb61a9ad66aa63fe36414093207ef5', name: "minus" })), h("input", { key: 'fab279a99fb1803fc8095c881f6d43233a12de6b', 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: 'fa0ad31ae7a0481d4ca173211ae2796a6ef5e805', class: "button", type: "button", "aria-label": `Increase ${this.label}`, disabled: !this.canIncrease, onClick: this.handleIncrease }, h("ezp-icon", { key: '98bb7417e464e4d5704d8f5d4f969a11d0c70fcf', name: "plus" })))));
131
131
  }
132
132
  static get is() { return "ezp-stepper"; }
133
133
  static get encapsulation() { return "shadow"; }
@@ -49,7 +49,7 @@
49
49
  opacity: var(--ezp-textButton-opacity, 1);
50
50
  outline: none;
51
51
  padding: var(--ezp-textButton-padding, var(--ezp-spacing-3));
52
- white-space: nowrap;
52
+ white-space: var(--ezp-textButton-whiteSpace, nowrap);
53
53
  width: 100%;
54
54
  }
55
55
  @media (hover: hover) {
@@ -70,6 +70,8 @@
70
70
  }
71
71
  #button:disabled {
72
72
  --ezp-textButton-background: var(--ezp-textButton-background-disabled);
73
+ /* An outlined button reads as filled-and-flat once disabled. */
74
+ --ezp-textButton-boxShadow: none;
73
75
  --ezp-textButton-color: var(--ezp-textButton-color-disabled);
74
76
  --ezp-textButton-cursor: default;
75
77
  }
@@ -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: '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' }))));
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' }))));
35
35
  }
36
36
  static get is() { return "ezp-text-button"; }
37
37
  static get encapsulation() { return "shadow"; }