@ezeep/ezeep-js 1.0.140 → 1.0.144

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 (163) hide show
  1. package/dist/cjs/ezeep.cjs.js +2 -2
  2. package/dist/cjs/ezp-auth_14.cjs.entry.js +33754 -0
  3. package/dist/cjs/{index-a93095ed.js → index-62fc857c.js} +7 -0
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +3 -1
  6. package/dist/collection/components/ezp-auth/ezp-auth.css +3 -77
  7. package/dist/collection/components/ezp-auth/ezp-auth.js +26 -20
  8. package/dist/collection/components/ezp-backdrop/ezp-backdrop.css +3 -3
  9. package/dist/collection/components/ezp-dialog/ezp-dialog.css +48 -0
  10. package/dist/collection/components/ezp-dialog/ezp-dialog.js +220 -0
  11. package/dist/collection/components/ezp-icon/assets/glyph-account.svg +2 -2
  12. package/dist/collection/components/ezp-icon/assets/glyph-checkmark-alt.svg +3 -0
  13. package/dist/collection/components/ezp-icon/assets/glyph-checkmark.svg +2 -2
  14. package/dist/collection/components/ezp-icon/assets/glyph-close.svg +2 -2
  15. package/dist/collection/components/ezp-icon/assets/glyph-color.svg +2 -2
  16. package/dist/collection/components/ezp-icon/assets/glyph-copies.svg +2 -2
  17. package/dist/collection/components/ezp-icon/assets/glyph-dark.svg +2 -2
  18. package/dist/collection/components/ezp-icon/assets/glyph-drag-drop.svg +3 -0
  19. package/dist/collection/components/ezp-icon/assets/glyph-duplex.svg +2 -2
  20. package/dist/collection/components/ezp-icon/assets/glyph-exclamation-mark.svg +3 -0
  21. package/dist/collection/components/ezp-icon/assets/glyph-expand.svg +2 -2
  22. package/dist/collection/components/ezp-icon/assets/glyph-help.svg +2 -2
  23. package/dist/collection/components/ezp-icon/assets/glyph-light.svg +2 -2
  24. package/dist/collection/components/ezp-icon/assets/glyph-logo.svg +3 -0
  25. package/dist/collection/components/ezp-icon/assets/glyph-logout.svg +2 -2
  26. package/dist/collection/components/ezp-icon/assets/glyph-menu.svg +2 -2
  27. package/dist/collection/components/ezp-icon/assets/glyph-minus.svg +2 -2
  28. package/dist/collection/components/ezp-icon/assets/glyph-orientation.svg +2 -2
  29. package/dist/collection/components/ezp-icon/assets/glyph-plus.svg +2 -2
  30. package/dist/collection/components/ezp-icon/assets/glyph-printer.svg +2 -2
  31. package/dist/collection/components/ezp-icon/assets/glyph-quality.svg +2 -2
  32. package/dist/collection/components/ezp-icon/assets/glyph-question-mark.svg +3 -0
  33. package/dist/collection/components/ezp-icon/assets/glyph-size.svg +2 -2
  34. package/dist/collection/components/ezp-icon/assets/glyph-system.svg +2 -2
  35. package/dist/collection/components/ezp-icon/ezp-icon.css +25 -9
  36. package/dist/collection/components/ezp-icon/ezp-icon.js +23 -3
  37. package/dist/collection/components/ezp-icon-button/ezp-icon-button.css +43 -34
  38. package/dist/collection/components/ezp-icon-button/ezp-icon-button.js +1 -1
  39. package/dist/collection/components/ezp-label/ezp-label.css +32 -32
  40. package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.css +21 -27
  41. package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.js +284 -90
  42. package/dist/collection/components/ezp-printing/ezp-printing.css +175 -273
  43. package/dist/collection/components/ezp-printing/ezp-printing.js +111 -13
  44. package/dist/collection/components/ezp-select/ezp-select.css +98 -151
  45. package/dist/collection/components/ezp-select/ezp-select.js +51 -20
  46. package/dist/collection/components/ezp-status/ezp-status.css +111 -0
  47. package/dist/collection/components/ezp-status/ezp-status.js +236 -0
  48. package/dist/collection/components/ezp-stepper/ezp-stepper.css +21 -21
  49. package/dist/collection/components/ezp-stepper/ezp-stepper.js +1 -1
  50. package/dist/collection/components/ezp-text-button/ezp-text-button.css +44 -34
  51. package/dist/collection/components/ezp-text-button/ezp-text-button.js +22 -2
  52. package/dist/collection/components/ezp-upload/ezp-upload.css +67 -0
  53. package/dist/collection/components/ezp-upload/ezp-upload.js +121 -0
  54. package/dist/collection/components/ezp-user-menu/ezp-user-menu.css +75 -71
  55. package/dist/collection/components/ezp-user-menu/ezp-user-menu.js +12 -9
  56. package/dist/collection/services/print.js +50 -10
  57. package/dist/custom-elements/index.d.ts +18 -6
  58. package/dist/custom-elements/index.js +29059 -378
  59. package/dist/directives/proxies.ts +81 -25
  60. package/dist/esm/ezeep.js +2 -2
  61. package/dist/esm/ezp-auth_14.entry.js +33737 -0
  62. package/dist/esm/{index-9ecf6ae0.js → index-265d8cca.js} +7 -1
  63. package/dist/esm/loader.js +2 -2
  64. package/dist/esm-es5/ezeep.js +1 -1
  65. package/dist/esm-es5/ezp-auth_14.entry.js +21 -0
  66. package/dist/esm-es5/{index-9ecf6ae0.js → index-265d8cca.js} +1 -1
  67. package/dist/esm-es5/loader.js +1 -1
  68. package/dist/ezeep/assets/glyph-account.svg +2 -2
  69. package/dist/ezeep/assets/glyph-checkmark-alt.svg +3 -0
  70. package/dist/ezeep/assets/glyph-checkmark.svg +2 -2
  71. package/dist/ezeep/assets/glyph-close.svg +2 -2
  72. package/dist/ezeep/assets/glyph-color.svg +2 -2
  73. package/dist/ezeep/assets/glyph-copies.svg +2 -2
  74. package/dist/ezeep/assets/glyph-dark.svg +2 -2
  75. package/dist/ezeep/assets/glyph-drag-drop.svg +3 -0
  76. package/dist/ezeep/assets/glyph-duplex.svg +2 -2
  77. package/dist/ezeep/assets/glyph-exclamation-mark.svg +3 -0
  78. package/dist/ezeep/assets/glyph-expand.svg +2 -2
  79. package/dist/ezeep/assets/glyph-help.svg +2 -2
  80. package/dist/ezeep/assets/glyph-light.svg +2 -2
  81. package/dist/ezeep/assets/glyph-logo.svg +3 -0
  82. package/dist/ezeep/assets/glyph-logout.svg +2 -2
  83. package/dist/ezeep/assets/glyph-menu.svg +2 -2
  84. package/dist/ezeep/assets/glyph-minus.svg +2 -2
  85. package/dist/ezeep/assets/glyph-orientation.svg +2 -2
  86. package/dist/ezeep/assets/glyph-plus.svg +2 -2
  87. package/dist/ezeep/assets/glyph-printer.svg +2 -2
  88. package/dist/ezeep/assets/glyph-quality.svg +2 -2
  89. package/dist/ezeep/assets/glyph-question-mark.svg +3 -0
  90. package/dist/ezeep/assets/glyph-size.svg +2 -2
  91. package/dist/ezeep/assets/glyph-system.svg +2 -2
  92. package/dist/ezeep/ezeep.esm.js +1 -1
  93. package/dist/ezeep/ezeep.js +1 -1
  94. package/dist/ezeep/p-740e246f.entry.js +15 -0
  95. package/dist/ezeep/p-98ec6965.system.js +1 -0
  96. package/dist/ezeep/p-b481a50b.system.entry.js +21 -0
  97. package/dist/ezeep/p-f3065800.js +1 -0
  98. package/dist/ezeep/p-f89804ee.system.js +1 -0
  99. package/dist/types/components/ezp-auth/ezp-auth.d.ts +3 -2
  100. package/dist/types/components/ezp-dialog/ezp-dialog.d.ts +42 -0
  101. package/dist/types/components/ezp-icon/ezp-icon.d.ts +2 -0
  102. package/dist/types/components/ezp-printer-selection/ezp-printer-selection.d.ts +19 -1
  103. package/dist/types/components/ezp-printing/ezp-printing.d.ts +10 -3
  104. package/dist/types/components/ezp-select/ezp-select.d.ts +4 -0
  105. package/dist/types/components/ezp-status/ezp-status.d.ts +44 -0
  106. package/dist/types/components/ezp-text-button/ezp-text-button.d.ts +2 -0
  107. package/dist/types/components/ezp-upload/ezp-upload.d.ts +43 -0
  108. package/dist/types/components.d.ts +126 -21
  109. package/dist/types/services/print.d.ts +7 -2
  110. package/dist/types/shared/types.d.ts +15 -3
  111. package/package.json +12 -2
  112. package/readme.md +54 -18
  113. package/www/build/assets/glyph-account.svg +2 -2
  114. package/www/build/assets/glyph-checkmark-alt.svg +3 -0
  115. package/www/build/assets/glyph-checkmark.svg +2 -2
  116. package/www/build/assets/glyph-close.svg +2 -2
  117. package/www/build/assets/glyph-color.svg +2 -2
  118. package/www/build/assets/glyph-copies.svg +2 -2
  119. package/www/build/assets/glyph-dark.svg +2 -2
  120. package/www/build/assets/glyph-drag-drop.svg +3 -0
  121. package/www/build/assets/glyph-duplex.svg +2 -2
  122. package/www/build/assets/glyph-exclamation-mark.svg +3 -0
  123. package/www/build/assets/glyph-expand.svg +2 -2
  124. package/www/build/assets/glyph-help.svg +2 -2
  125. package/www/build/assets/glyph-light.svg +2 -2
  126. package/www/build/assets/glyph-logo.svg +3 -0
  127. package/www/build/assets/glyph-logout.svg +2 -2
  128. package/www/build/assets/glyph-menu.svg +2 -2
  129. package/www/build/assets/glyph-minus.svg +2 -2
  130. package/www/build/assets/glyph-orientation.svg +2 -2
  131. package/www/build/assets/glyph-plus.svg +2 -2
  132. package/www/build/assets/glyph-printer.svg +2 -2
  133. package/www/build/assets/glyph-quality.svg +2 -2
  134. package/www/build/assets/glyph-question-mark.svg +3 -0
  135. package/www/build/assets/glyph-size.svg +2 -2
  136. package/www/build/assets/glyph-system.svg +2 -2
  137. package/www/build/ezeep.esm.js +1 -1
  138. package/www/build/ezeep.js +1 -1
  139. package/www/build/p-740e246f.entry.js +15 -0
  140. package/www/build/p-98ec6965.system.js +1 -0
  141. package/www/build/p-b481a50b.system.entry.js +21 -0
  142. package/www/build/p-f3065800.js +1 -0
  143. package/www/build/p-f89804ee.system.js +1 -0
  144. package/www/data/file-types.json +68 -0
  145. package/www/data/locales/de.json +61 -30
  146. package/www/data/locales/en.json +61 -30
  147. package/www/index.html +27 -7
  148. package/dist/cjs/ezp-auth_12.cjs.entry.js +0 -5079
  149. package/dist/collection/components/ezp-progress/ezp-progress.css +0 -110
  150. package/dist/collection/components/ezp-progress/ezp-progress.js +0 -53
  151. package/dist/esm/ezp-auth_12.entry.js +0 -5064
  152. package/dist/esm-es5/ezp-auth_12.entry.js +0 -1
  153. package/dist/ezeep/p-0711b970.entry.js +0 -1
  154. package/dist/ezeep/p-c488ee3f.system.js +0 -1
  155. package/dist/ezeep/p-e8c8adc1.system.entry.js +0 -1
  156. package/dist/ezeep/p-eb3b8dbd.system.js +0 -1
  157. package/dist/ezeep/p-ff843eb4.js +0 -1
  158. package/dist/types/components/ezp-progress/ezp-progress.d.ts +0 -15
  159. package/www/build/p-0711b970.entry.js +0 -1
  160. package/www/build/p-c488ee3f.system.js +0 -1
  161. package/www/build/p-e8c8adc1.system.entry.js +0 -1
  162. package/www/build/p-eb3b8dbd.system.js +0 -1
  163. package/www/build/p-ff843eb4.js +0 -1
@@ -7,63 +7,73 @@
7
7
  display: flex;
8
8
  }
9
9
  :host(.primary) {
10
- --button-background-disabled: var(--color-shade-primary);
11
- --button-background-init: var(--color-theme-solid);
12
- --button-color-disabled: var(--color-foreground-tertiary);
13
- --button-color-init: var(--color-on-theme);
14
- --button-opacity-active: 0.74;
15
- --button-opacity-hover: 0.84;
10
+ --ezp-textButton-background-disabled: var(--ezp-color-shade-primary);
11
+ --ezp-textButton-background-init: var(--ezp-color-theme-solid);
12
+ --ezp-textButton-color-disabled: var(--ezp-color-foreground-tertiary);
13
+ --ezp-textButton-color-init: var(--ezp-color-on-theme);
14
+ --ezp-textButton-opacity-active: 0.74;
15
+ --ezp-textButton-opacity-hover: 0.84;
16
16
  }
17
17
 
18
18
  :host(.secondary) {
19
- --button-background-active: var(--color-shade-tertiary);
20
- --button-background-disabled: var(--color-shade-primary);
21
- --button-background-hover: var(--color-shade-secondary);
22
- --button-background-init: var(--color-shade-primary);
23
- --button-color-disabled: var(--color-foreground-tertiary);
24
- --button-color-init: var(--color-theme-solid);
19
+ --ezp-textButton-background-active: var(--ezp-color-shade-tertiary);
20
+ --ezp-textButton-background-disabled: var(--ezp-color-shade-primary);
21
+ --ezp-textButton-background-hover: var(--ezp-color-shade-secondary);
22
+ --ezp-textButton-background-init: var(--ezp-color-shade-primary);
23
+ --ezp-textButton-color-disabled: var(--ezp-color-foreground-tertiary);
24
+ --ezp-textButton-color-init: var(--ezp-color-theme-solid);
25
25
  }
26
26
 
27
27
  :host(.tertiary) {
28
- --button-background-active: var(--color-shade-secondary);
29
- --button-background-disabled: transparent;
30
- --button-background-hover: var(--color-shade-primary);
31
- --button-background-init: transparent;
32
- --button-color-disabled: var(--color-foreground-tertiary);
33
- --button-color-init: var(--color-theme-solid);
28
+ --ezp-textButton-background-active: var(--ezp-color-shade-secondary);
29
+ --ezp-textButton-background-disabled: transparent;
30
+ --ezp-textButton-background-hover: var(--ezp-color-shade-primary);
31
+ --ezp-textButton-background-init: transparent;
32
+ --ezp-textButton-color-disabled: var(--ezp-color-foreground-tertiary);
33
+ --ezp-textButton-color-init: var(--ezp-color-theme-solid);
34
34
  }
35
35
 
36
- .button {
36
+ #button {
37
37
  align-items: center;
38
38
  appearance: none;
39
- background: var(--button-background, var(--button-background-init));
39
+ background: var(--ezp-textButton-background, var(--ezp-textButton-background-init));
40
40
  border: 0;
41
41
  border-radius: 3px;
42
42
  box-shadow: none;
43
- color: var(--button-color, var(--button-color-init));
44
- cursor: var(--button-cursor, pointer);
43
+ color: var(--ezp-textButton-color, var(--ezp-textButton-color-init));
44
+ cursor: var(--ezp-textButton-cursor, pointer);
45
45
  display: flex;
46
46
  font-family: inherit;
47
47
  justify-content: center;
48
48
  margin: 0;
49
- opacity: var(--button-opacity, 1);
49
+ opacity: var(--ezp-textButton-opacity, 1);
50
50
  outline: none;
51
- padding: var(--spacing-3);
51
+ padding: var(--ezp-spacing-3);
52
52
  white-space: nowrap;
53
53
  width: 100%;
54
54
  }
55
55
  @media (hover: hover) {
56
- .button:not(:disabled):hover {
57
- --button-background: var(--button-background-hover, var(--button-background-init));
58
- --button-opacity: var(--button-opacity-hover, 1);
56
+ #button:not(:disabled):hover {
57
+ --ezp-textButton-background: var(
58
+ --ezp-textButton-background-hover,
59
+ var(--ezp-textButton-background-init)
60
+ );
61
+ --ezp-textButton-opacity: var(--ezp-textButton-opacity-hover, 1);
59
62
  }
60
- .button:not(:disabled):active {
61
- --button-background: var(--button-background-active, var(--button-background-init));
62
- --button-opacity: var(--button-opacity-active, 1);
63
+ #button:not(:disabled):active {
64
+ --ezp-textButton-background: var(
65
+ --ezp-textButton-background-active,
66
+ var(--ezp-textButton-background-init)
67
+ );
68
+ --ezp-textButton-opacity: var(--ezp-textButton-opacity-active, 1);
63
69
  }
64
70
  }
65
- .button:disabled {
66
- --button-background: var(--button-background-disabled);
67
- --button-color: var(--button-color-disabled);
68
- --button-cursor: not-allowed;
71
+ #button:disabled {
72
+ --ezp-textButton-background: var(--ezp-textButton-background-disabled);
73
+ --ezp-textButton-color: var(--ezp-textButton-color-disabled);
74
+ --ezp-textButton-cursor: default;
75
+ }
76
+
77
+ #label {
78
+ pointer-events: none;
69
79
  }
@@ -12,6 +12,8 @@ export class EzpTextButton {
12
12
  this.disabled = false;
13
13
  /** Description... */
14
14
  this.level = 'primary';
15
+ /** Description... */
16
+ this.small = false;
15
17
  }
16
18
  /**
17
19
  *
@@ -30,8 +32,8 @@ export class EzpTextButton {
30
32
  target: this.blank ? '_blank' : '_self',
31
33
  };
32
34
  return (h(Host, { class: `${this.level}` },
33
- h(TagType, Object.assign({ class: "button" }, attributes),
34
- h("ezp-label", { weight: "heavy", text: this.label }))));
35
+ h(TagType, Object.assign({ id: "button" }, attributes),
36
+ h("ezp-label", { id: "label", weight: "heavy", text: this.label, level: this.small ? 'tertiary' : 'secondary' }))));
35
37
  }
36
38
  static get is() { return "ezp-text-button"; }
37
39
  static get encapsulation() { return "shadow"; }
@@ -156,6 +158,24 @@ export class EzpTextButton {
156
158
  },
157
159
  "attribute": "type",
158
160
  "reflect": false
161
+ },
162
+ "small": {
163
+ "type": "boolean",
164
+ "mutable": false,
165
+ "complexType": {
166
+ "original": "boolean",
167
+ "resolved": "boolean",
168
+ "references": {}
169
+ },
170
+ "required": false,
171
+ "optional": false,
172
+ "docs": {
173
+ "tags": [],
174
+ "text": "Description..."
175
+ },
176
+ "attribute": "small",
177
+ "reflect": false,
178
+ "defaultValue": "false"
159
179
  }
160
180
  }; }
161
181
  }
@@ -0,0 +1,67 @@
1
+ /**
2
+ *
3
+ * Rules
4
+ *
5
+ */
6
+ :host {
7
+ align-content: center;
8
+ background: var(--ezp-upload-background, transparent);
9
+ border: 1px dashed var(--ezp-upload-border-color, var(--ezp-color-foreground-tertiary));
10
+ border-radius: 3px;
11
+ color: var(--ezp-color-foreground-primary);
12
+ display: grid;
13
+ grid-template: auto/minmax(auto, 280px);
14
+ height: var(--ezp-upload-height, auto);
15
+ justify-content: center;
16
+ padding: var(--ezp-spacing-3);
17
+ position: relative;
18
+ transition: background-color var(--ezp-duration-3) var(--ezp-easing-out-quart), border-color var(--ezp-duration-3) var(--ezp-easing-out-quart);
19
+ width: var(--ezp-upload-width, auto);
20
+ }
21
+ :host(.dragging) {
22
+ --ezp-upload-background: var(--ezp-color-theme-translucent);
23
+ --ezp-upload-border-color: var(--ezp-color-theme-translucent);
24
+ --ezp-upload-header-blur: 16px;
25
+ --ezp-upload-header-opacity: 0.42;
26
+ }
27
+
28
+ #header {
29
+ --ezp-icon-fill: var(--ezp-color-theme-solid);
30
+ align-items: center;
31
+ display: flex;
32
+ filter: blur(var(--ezp-upload-header-blur, 0));
33
+ flex-direction: column;
34
+ gap: var(--ezp-spacing-5);
35
+ opacity: var(--ezp-upload-header-opacity, 1);
36
+ text-align: center;
37
+ transition: filter var(--ezp-duration-3) var(--ezp-easing-out-quart), opacity var(--ezp-duration-3) var(--ezp-easing-out-quart);
38
+ }
39
+
40
+ #meta {
41
+ display: flex;
42
+ flex-wrap: wrap;
43
+ gap: var(--ezp-spacing-3) 3px;
44
+ justify-content: center;
45
+ }
46
+
47
+ #select {
48
+ color: var(--ezp-color-theme-solid);
49
+ cursor: pointer;
50
+ opacity: var(--ezp-upload-select-opacity, 1);
51
+ text-decoration: underline;
52
+ white-space: nowrap;
53
+ }
54
+ @media (hover: hover) {
55
+ #select:hover {
56
+ --ezp-upload-select-opacity: 0.58;
57
+ }
58
+ }
59
+
60
+ #input {
61
+ appearance: none;
62
+ height: 0;
63
+ opacity: 0;
64
+ pointer-events: none;
65
+ position: absolute;
66
+ width: 0;
67
+ }
@@ -0,0 +1,121 @@
1
+ import { Component, Host, Listen, Event, State, h } from '@stencil/core';
2
+ import { initi18n } from '../../utils/utils';
3
+ import i18next from 'i18next';
4
+ export class EzpUpload {
5
+ constructor() {
6
+ /**
7
+ *
8
+ * States
9
+ *
10
+ */
11
+ this.dragging = false;
12
+ /**
13
+ *
14
+ * Private methods
15
+ *
16
+ */
17
+ this.handleInput = () => {
18
+ this.uploadFile.emit(this.input.files);
19
+ };
20
+ }
21
+ /**
22
+ *
23
+ * Listeners
24
+ *
25
+ */
26
+ handleDragEnter() {
27
+ this.dragging = true;
28
+ }
29
+ handleDragOver(event) {
30
+ event.stopPropagation();
31
+ event.preventDefault();
32
+ event.dataTransfer.dropEffect = 'copy';
33
+ }
34
+ handleDragLeave() {
35
+ this.dragging = false;
36
+ }
37
+ handleDrop(event) {
38
+ event.stopPropagation();
39
+ event.preventDefault();
40
+ this.dragging = false;
41
+ this.uploadFile.emit(event.dataTransfer.files);
42
+ }
43
+ /**
44
+ *
45
+ * Lifecycle methods
46
+ *
47
+ */
48
+ componentWillLoad() {
49
+ initi18n();
50
+ }
51
+ /**
52
+ *
53
+ * Render method
54
+ *
55
+ */
56
+ render() {
57
+ return (h(Host, { class: { dragging: this.dragging } },
58
+ h("div", { id: "box" },
59
+ h("div", { id: "header" },
60
+ h("ezp-icon", { name: "drag-drop", size: "huge", framed: true }),
61
+ h("ezp-label", { weight: "strong", text: i18next.t('upload.description') }),
62
+ h("div", { id: "meta" },
63
+ h("ezp-label", { level: "tertiary", text: i18next.t('upload.meta_leading') }),
64
+ h("label", { htmlFor: "input", id: "select" },
65
+ h("ezp-label", { level: "tertiary", weight: "strong", text: i18next.t('upload.meta_select') })),
66
+ h("input", { type: "file", name: "input", id: "input", ref: (input) => (this.input = input), onInput: this.handleInput }),
67
+ h("ezp-label", { level: "tertiary", text: i18next.t('upload.meta_trailing') }))))));
68
+ }
69
+ static get is() { return "ezp-upload"; }
70
+ static get encapsulation() { return "shadow"; }
71
+ static get originalStyleUrls() { return {
72
+ "$": ["ezp-upload.scss"]
73
+ }; }
74
+ static get styleUrls() { return {
75
+ "$": ["ezp-upload.css"]
76
+ }; }
77
+ static get states() { return {
78
+ "dragging": {}
79
+ }; }
80
+ static get events() { return [{
81
+ "method": "uploadFile",
82
+ "name": "uploadFile",
83
+ "bubbles": true,
84
+ "cancelable": true,
85
+ "composed": true,
86
+ "docs": {
87
+ "tags": [],
88
+ "text": "\nEvents"
89
+ },
90
+ "complexType": {
91
+ "original": "any",
92
+ "resolved": "any",
93
+ "references": {}
94
+ }
95
+ }]; }
96
+ static get listeners() { return [{
97
+ "name": "dragenter",
98
+ "method": "handleDragEnter",
99
+ "target": undefined,
100
+ "capture": false,
101
+ "passive": true
102
+ }, {
103
+ "name": "dragover",
104
+ "method": "handleDragOver",
105
+ "target": undefined,
106
+ "capture": false,
107
+ "passive": false
108
+ }, {
109
+ "name": "dragleave",
110
+ "method": "handleDragLeave",
111
+ "target": undefined,
112
+ "capture": false,
113
+ "passive": true
114
+ }, {
115
+ "name": "drop",
116
+ "method": "handleDrop",
117
+ "target": undefined,
118
+ "capture": false,
119
+ "passive": false
120
+ }]; }
121
+ }
@@ -29,201 +29,205 @@
29
29
  *
30
30
  */
31
31
  :host {
32
- background: var(--color-surface-tertiary);
32
+ background: var(--ezp-color-surface-tertiary);
33
33
  border-radius: 6px;
34
- box-shadow: var(--host-separator-position, 0 0 0 var(--hairline-width-positive)) var(--hairline-color);
34
+ box-shadow: var(--ezp-userMenu-boxShadowPosition, 0 0 0 1px) var(--ezp-color-outline);
35
35
  display: block;
36
- opacity: var(--host-opacity, 0);
36
+ opacity: var(--ezp-userMenu-opacity, 0);
37
37
  position: absolute;
38
38
  right: 0;
39
39
  top: 0;
40
- transform: scale(var(--host-scale, 0.94, 0.94));
40
+ transform: scale(var(--ezp-userMenu-scale, 0.94, 0.94));
41
41
  transform-origin: right top;
42
- transition: var(--host-transition, opacity var(--duration-3) var(--easing-out-quart), transform var(--duration-3) var(--easing-out-quart), visibility 0s var(--duration-3));
43
- visibility: var(--host-visibility, hidden);
42
+ transition: var(--ezp-userMenu-transition, opacity var(--ezp-duration-3) var(--ezp-easing-out-quart), transform var(--ezp-duration-3) var(--ezp-easing-out-quart), visibility 0s var(--ezp-duration-3));
43
+ visibility: var(--ezp-userMenu-visibility, hidden);
44
44
  z-index: 5;
45
45
  }
46
46
  :host(.is-open) {
47
- --host-opacity: 1;
48
- --host-scale: 1, 1;
49
- --host-transition: opacity var(--duration-3) var(--easing-out-quart),
50
- transform var(--duration-3) var(--easing-out-quart), visibility 0s 0s;
51
- --host-visibility: visible;
47
+ --ezp-userMenu-opacity: 1;
48
+ --ezp-userMenu-scale: 1, 1;
49
+ --ezp-userMenu-transition: opacity var(--ezp-duration-3) var(--ezp-easing-out-quart),
50
+ transform var(--ezp-duration-3) var(--ezp-easing-out-quart), visibility 0s 0s;
51
+ --ezp-userMenu-visibility: visible;
52
52
  }
53
53
 
54
54
  @media (prefers-color-scheme: dark) {
55
55
  :host {
56
- --host-separator-position: inset 0 0 0 var(--hairline-width-positive);
56
+ --ezp-userMenu-separator-position: inset 0 0 0 var(--hairline-width-positive);
57
57
  }
58
58
  }
59
59
 
60
60
  #header {
61
61
  align-items: center;
62
- box-shadow: 0 var(--hairline-width-positive) 0 0 var(--hairline-color);
62
+ box-shadow: var(--ezp-userMenu-header-boxShadowPosition, 0 1px 0 0) var(--ezp-color-outline);
63
63
  box-shadow: 0;
64
64
  display: grid;
65
65
  grid-template: auto/1fr auto;
66
- padding: var(--spacing-4) var(--spacing-3) var(--spacing-4) var(--spacing-4);
66
+ padding: var(--ezp-spacing-4) var(--ezp-spacing-3) var(--ezp-spacing-4) var(--ezp-spacing-4);
67
67
  }
68
68
 
69
69
  #name {
70
- color: var(--color-foreground-primary);
70
+ color: var(--ezp-color-foreground-primary);
71
71
  }
72
72
 
73
73
  #close {
74
- margin: calc(var(--spacing-3) * -1) 0;
74
+ margin: calc(var(--ezp-spacing-3) * -1) 0;
75
75
  }
76
76
 
77
77
  #links {
78
+ box-shadow: var(--ezp-userMenu-links-boxShadowPosition, 0 1px 0 0) var(--ezp-color-outline);
78
79
  display: flex;
79
80
  flex-direction: column;
80
- padding: var(--spacing-2);
81
+ padding: var(--ezp-spacing-2);
81
82
  }
82
83
 
83
84
  .link {
84
85
  align-items: center;
85
- background: var(--link-background, transparent);
86
+ background: var(--ezp-userMenu-link-background, transparent);
86
87
  border-radius: 3px;
87
- color: var(--color-foreground-primary);
88
+ color: var(--ezp-color-foreground-primary);
88
89
  cursor: pointer;
89
90
  display: grid;
90
- gap: var(--spacing-3);
91
+ gap: var(--ezp-spacing-3);
91
92
  grid-template: auto/auto 1fr;
92
- padding: var(--spacing-3);
93
+ padding: var(--ezp-spacing-3);
93
94
  text-decoration: none;
94
95
  }
95
96
  .link:hover {
96
- --link-background: var(--color-shade-primary);
97
+ --ezp-userMenu-link-background: var(--ezp-color-shade-primary);
97
98
  }
98
99
  .link__icon {
99
- color: var(--color-theme-solid);
100
- margin: calc(var(--spacing-2) * -1) 0;
100
+ color: var(--ezp-color-theme-solid);
101
+ margin: calc(var(--ezp-spacing-2) * -1) 0;
102
+ }
103
+
104
+ .caption {
105
+ color: var(--ezp-color-foreground-primary);
101
106
  }
102
107
 
103
108
  #theme {
104
- box-shadow: inset 0 var(--hairline-width-positive) 0 0 var(--hairline-color);
109
+ box-shadow: var(--ezp-userMenu-theme-boxShadowPosition, 0 1px 0 0) var(--ezp-color-outline);
105
110
  display: grid;
106
- gap: var(--spacing-3);
111
+ gap: var(--ezp-spacing-3);
107
112
  grid-template: repeat(2, auto)/1fr;
108
- padding: var(--spacing-4) var(--spacing-4) var(--spacing-3);
113
+ padding: var(--ezp-spacing-4) var(--ezp-spacing-4) var(--ezp-spacing-3);
109
114
  }
110
115
 
111
116
  #swatches {
112
117
  display: flex;
113
- margin: 0 calc(var(--spacing-2) * -1);
118
+ margin: 0 calc(var(--ezp-spacing-2) * -1);
114
119
  }
115
120
 
116
121
  .swatch {
117
122
  align-items: center;
118
123
  appearance: none;
119
- background: var(--swatch-background, transparent);
124
+ background: var(--ezp-userMenu-swatch-background, transparent);
120
125
  border: 0;
121
126
  border-radius: 50%;
122
- color: var(--swatch-color);
123
- cursor: var(--swatch-cursor, pointer);
127
+ color: var(--ezp-userMenu-swatch-color);
128
+ cursor: var(--ezp-userMenu-swatch-cursor, pointer);
124
129
  display: flex;
125
130
  justify-content: center;
126
131
  margin: 0;
127
- opacity: var(--swatch-opacity, 1);
132
+ opacity: var(--ezp-userMenu-swatch-opacity, 1);
128
133
  outline: none;
129
- padding: var(--spacing-2);
134
+ padding: var(--ezp-spacing-2);
130
135
  }
131
136
  @media (hover: hover) {
132
137
  .swatch:not(.selected):hover {
133
- --swatch-background: var(--swatch-theme-translucent);
138
+ --ezp-userMenu-swatch-background: var(--ezp-userMenu-swatch-theme-translucent);
134
139
  }
135
140
  .swatch:not(.selected):active {
136
- --swatch-opacity: 0.74;
141
+ --ezp-userMenu-swatch-opacity: 0.74;
137
142
  }
138
143
  }
139
144
  .swatch.selected {
140
- --dot-boxShadowSize: 10px;
141
- --swatch-background: var(--swatch-theme-translucent);
142
- --swatch-cursor: normal;
145
+ --ezp-userMenu-dot-boxShadowSize: 10px;
146
+ --ezp-userMenu-swatch-background: var(--ezp-userMenu-swatch-theme-translucent);
147
+ --ezp-userMenu-swatch-cursor: normal;
143
148
  }
144
149
  .swatch.selected > .dot {
145
- animation: dot-bounce var(--duration-2) ease-in-out;
150
+ animation: dot-bounce var(--ezp-duration-2) ease-in-out;
146
151
  }
147
152
  .swatch--blue {
148
- --swatch-theme-solid: var(--color-theme-blue-solid);
149
- --swatch-theme-translucent: var(--color-theme-blue-translucent);
153
+ --ezp-userMenu-swatch-theme-solid: var(--ezp-color-blue-solid);
154
+ --ezp-userMenu-swatch-theme-translucent: var(--ezp-color-blue-translucent);
150
155
  }
151
156
  .swatch--cyan {
152
- --swatch-theme-solid: var(--color-theme-cyan-solid);
153
- --swatch-theme-translucent: var(--color-theme-cyan-translucent);
157
+ --ezp-userMenu-swatch-theme-solid: var(--ezp-color-cyan-solid);
158
+ --ezp-userMenu-swatch-theme-translucent: var(--ezp-color-cyan-translucent);
154
159
  }
155
160
  .swatch--green {
156
- --swatch-theme-solid: var(--color-theme-green-solid);
157
- --swatch-theme-translucent: var(--color-theme-green-translucent);
161
+ --ezp-userMenu-swatch-theme-solid: var(--ezp-color-green-solid);
162
+ --ezp-userMenu-swatch-theme-translucent: var(--ezp-color-green-translucent);
158
163
  }
159
164
  .swatch--orange {
160
- --swatch-theme-solid: var(--color-theme-orange-solid);
161
- --swatch-theme-translucent: var(--color-theme-orange-translucent);
165
+ --ezp-userMenu-swatch-theme-solid: var(--ezp-color-orange-solid);
166
+ --ezp-userMenu-swatch-theme-translucent: var(--ezp-color-orange-translucent);
162
167
  }
163
168
  .swatch--pink {
164
- --swatch-theme-solid: var(--color-theme-pink-solid);
165
- --swatch-theme-translucent: var(--color-theme-pink-translucent);
169
+ --ezp-userMenu-swatch-theme-solid: var(--ezp-color-pink-solid);
170
+ --ezp-userMenu-swatch-theme-translucent: var(--ezp-color-pink-translucent);
166
171
  }
167
172
  .swatch--red {
168
- --swatch-theme-solid: var(--color-theme-red-solid);
169
- --swatch-theme-translucent: var(--color-theme-red-translucent);
173
+ --ezp-userMenu-swatch-theme-solid: var(--ezp-color-red-solid);
174
+ --ezp-userMenu-swatch-theme-translucent: var(--ezp-color-red-translucent);
170
175
  }
171
176
  .swatch--violet {
172
- --swatch-theme-solid: var(--color-theme-violet-solid);
173
- --swatch-theme-translucent: var(--color-theme-violet-translucent);
177
+ --ezp-userMenu-swatch-theme-solid: var(--ezp-color-violet-solid);
178
+ --ezp-userMenu-swatch-theme-translucent: var(--ezp-color-violet-translucent);
174
179
  }
175
180
 
176
181
  .dot {
177
- background: var(--dot-background, transparent);
182
+ background: var(--ezp-userMenu-dot-background, transparent);
178
183
  border-radius: 50%;
179
- box-shadow: inset 0 0 0 var(--dot-boxShadowSize, 4px) var(--swatch-theme-solid);
184
+ box-shadow: inset 0 0 0 var(--ezp-userMenu-dot-boxShadowSize, 4px) var(--ezp-userMenu-swatch-theme-solid);
180
185
  height: 18px;
181
- transition: box-shadow var(--duration-2);
186
+ transition: box-shadow var(--ezp-duration-2);
182
187
  width: 18px;
183
188
  }
184
189
 
185
190
  #appearance {
186
- box-shadow: inset 0 var(--hairline-width-positive) 0 0 var(--hairline-color);
187
191
  display: grid;
188
- gap: var(--spacing-3);
192
+ gap: var(--ezp-spacing-3);
189
193
  grid-template: repeat(2, auto)/1fr;
190
- padding: var(--spacing-4) var(--spacing-4) var(--spacing-3);
194
+ padding: var(--ezp-spacing-4) var(--ezp-spacing-4) var(--ezp-spacing-3);
191
195
  }
192
196
 
193
197
  #tabs {
194
198
  display: grid;
195
199
  grid-template: auto/repeat(3, 1fr);
196
- margin: 0 calc(var(--spacing-2) * -1);
200
+ margin: 0 calc(var(--ezp-spacing-2) * -1);
197
201
  }
198
202
 
199
203
  .tab {
200
- --icon-height: 8px;
204
+ --ezp-icon-height: 8px;
201
205
  align-items: center;
202
206
  appearance: none;
203
- background: var(--tab-background, transparent);
207
+ background: var(--ezp-userMenu-tab-background, transparent);
204
208
  border: 0;
205
209
  border-radius: 14px;
206
- color: var(--tab-color, var(--color-foreground-secondary));
207
- cursor: var(--tab-cursor, pointer);
210
+ color: var(--ezp-userMenu-tab-color, var(--ezp-color-foreground-secondary));
211
+ cursor: var(--ezp-userMenu-tab-cursor, pointer);
208
212
  display: flex;
209
- gap: var(--spacing-2);
213
+ gap: var(--ezp-spacing-2);
210
214
  justify-content: center;
211
215
  margin: 0;
212
216
  outline: none;
213
- padding: var(--spacing-3) var(--spacing-3) var(--spacing-3) var(--spacing-2);
217
+ padding: var(--ezp-spacing-3) var(--ezp-spacing-3) var(--ezp-spacing-3) var(--ezp-spacing-2);
214
218
  }
215
219
  @media (hover: hover) {
216
220
  .tab:not(.selected):hover {
217
- --tab-background: var(--color-shade-primary);
221
+ --ezp-userMenu-tab-background: var(--ezp-color-shade-primary);
218
222
  }
219
223
  .tab:not(.selected):active {
220
- --tab-background: var(--color-shade-secondary);
224
+ --ezp-userMenu-tab-background: var(--ezp-color-shade-secondary);
221
225
  }
222
226
  }
223
227
  .tab.selected {
224
- --tab-background: var(--color-theme-translucent);
225
- --tab-color: var(--color-theme-solid);
226
- --tab-cursor: normal;
228
+ --ezp-userMenu-tab-background: var(--ezp-color-theme-translucent);
229
+ --ezp-userMenu-tab-color: var(--ezp-color-theme-solid);
230
+ --ezp-userMenu-tab-cursor: normal;
227
231
  }
228
232
 
229
233
  @keyframes dot-bounce {