@ezeep/ezeep-js 1.0.277 → 1.0.284
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.
- package/dist/cjs/ezeep.cjs.js +1 -1
- package/dist/cjs/ezp-auth_15.cjs.entry.js +114 -38
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ezp-auth/ezp-auth.css +0 -12
- package/dist/collection/components/ezp-auth/ezp-auth.js +23 -4
- package/dist/collection/components/ezp-dialog/ezp-dialog.js +1 -1
- package/dist/collection/components/ezp-icon/assets/glyph-cloud-upload.svg +4 -0
- package/dist/collection/components/ezp-icon/assets/glyph-file.svg +3 -0
- package/dist/collection/components/ezp-icon/ezp-icon.js +1 -1
- package/dist/collection/components/ezp-icon-button/ezp-icon-button.js +1 -1
- package/dist/collection/components/ezp-input/ezp-input.css +17 -33
- package/dist/collection/components/ezp-input/ezp-input.js +1 -1
- package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.css +175 -48
- package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.js +10 -8
- package/dist/collection/components/ezp-printing/ezp-printing.css +14 -14
- package/dist/collection/components/ezp-printing/ezp-printing.js +13 -1
- package/dist/collection/components/ezp-select/ezp-select.css +54 -36
- package/dist/collection/components/ezp-select/ezp-select.js +1 -1
- package/dist/collection/components/ezp-status/ezp-status.css +94 -9
- package/dist/collection/components/ezp-status/ezp-status.js +22 -3
- package/dist/collection/components/ezp-stepper/ezp-stepper.css +37 -35
- package/dist/collection/components/ezp-stepper/ezp-stepper.js +2 -2
- package/dist/collection/components/ezp-text-button/ezp-text-button.css +3 -3
- package/dist/collection/components/ezp-text-button/ezp-text-button.js +1 -1
- package/dist/collection/components/ezp-upload/ezp-upload.css +241 -75
- package/dist/collection/components/ezp-upload/ezp-upload.js +55 -3
- package/dist/collection/components/ezp-user-menu/ezp-user-menu.js +1 -1
- package/dist/collection/types/shared/types.d.ts +2 -0
- package/dist/components/ezp-auth2.js +1 -1
- package/dist/components/ezp-input2.js +1 -1
- package/dist/components/ezp-printer-selection2.js +1 -1
- package/dist/components/ezp-printing.js +1 -1
- package/dist/components/ezp-select2.js +1 -1
- package/dist/components/ezp-status2.js +1 -1
- package/dist/components/ezp-stepper2.js +1 -1
- package/dist/components/ezp-text-button2.js +1 -1
- package/dist/components/ezp-upload2.js +1 -1
- package/dist/components/ezp-user-menu2.js +1 -1
- package/dist/components/utils.js +1 -1
- package/dist/directives/proxies.ts +9 -5
- package/dist/esm/ezeep.js +1 -1
- package/dist/esm/ezp-auth_15.entry.js +114 -38
- package/dist/esm/loader.js +1 -1
- package/dist/esm-es5/ezeep.js +1 -1
- package/dist/esm-es5/ezp-auth_15.entry.js +2 -2
- package/dist/esm-es5/loader.js +1 -1
- package/dist/ezeep/assets/glyph-cloud-upload.svg +4 -0
- package/dist/ezeep/assets/glyph-file.svg +3 -0
- package/dist/ezeep/ezeep.esm.js +1 -1
- package/dist/ezeep/{p-644e48a0.system.entry.js → p-1e286bd1.system.entry.js} +2 -2
- package/dist/ezeep/p-DCznw2Ee.system.js +1 -1
- package/dist/ezeep/p-a2b688f0.entry.js +1 -0
- package/dist/ezeep/types/shared/types.d.ts +2 -0
- package/dist/types/components/ezp-printing/ezp-printing.d.ts +1 -0
- package/dist/types/components/ezp-status/ezp-status.d.ts +1 -0
- package/dist/types/components/ezp-upload/ezp-upload.d.ts +9 -0
- package/dist/types/components.d.ts +9 -1
- package/dist/types/shared/types.d.ts +2 -0
- package/package.json +1 -1
- package/www/build/assets/glyph-cloud-upload.svg +4 -0
- package/www/build/assets/glyph-file.svg +3 -0
- package/www/build/ezeep.esm.js +1 -1
- package/www/build/{p-644e48a0.system.entry.js → p-1e286bd1.system.entry.js} +2 -2
- package/www/build/p-544b7033.js +1 -0
- package/www/build/p-DCznw2Ee.system.js +1 -1
- package/www/build/p-a2b688f0.entry.js +1 -0
- package/www/data/locales/de.json +13 -5
- package/www/data/locales/en.json +13 -5
- package/www/index.html +1 -1
- package/dist/ezeep/p-ebd2beda.entry.js +0 -1
- package/www/build/p-c7252f1c.js +0 -1
- package/www/build/p-ebd2beda.entry.js +0 -1
|
@@ -114,6 +114,12 @@ export class EzpPrinting {
|
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
listenUploadFile(event) {
|
|
117
|
+
// Keep the selection in sync as files are added/removed, but stay on the
|
|
118
|
+
// upload step until the user explicitly continues (see listenUploadContinue).
|
|
119
|
+
this.files = event.detail;
|
|
120
|
+
this.filename = this.files.length > 0 ? this.files[0].name : '';
|
|
121
|
+
}
|
|
122
|
+
listenUploadContinue(event) {
|
|
117
123
|
this.files = event.detail;
|
|
118
124
|
this.filename = this.files.length > 0 ? this.files[0].name : '';
|
|
119
125
|
this.open();
|
|
@@ -332,7 +338,7 @@ export class EzpPrinting {
|
|
|
332
338
|
*
|
|
333
339
|
*/
|
|
334
340
|
render() {
|
|
335
|
-
return (h(Host, { key: '
|
|
341
|
+
return (h(Host, { key: 'e25b56d55da0fdcc0485d5e07e176397f2503dde', class: `${userStore.state.theme} ${userStore.state.appearance === 'system'
|
|
336
342
|
? this.systemAppearance
|
|
337
343
|
: 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
344
|
}
|
|
@@ -931,6 +937,12 @@ export class EzpPrinting {
|
|
|
931
937
|
"target": undefined,
|
|
932
938
|
"capture": false,
|
|
933
939
|
"passive": false
|
|
940
|
+
}, {
|
|
941
|
+
"name": "uploadContinue",
|
|
942
|
+
"method": "listenUploadContinue",
|
|
943
|
+
"target": undefined,
|
|
944
|
+
"capture": false,
|
|
945
|
+
"passive": false
|
|
934
946
|
}, {
|
|
935
947
|
"name": "dialogClose",
|
|
936
948
|
"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:
|
|
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:
|
|
23
|
+
--ezp-select-toggle-height: 56px;
|
|
35
24
|
--ezp-select-toggle-gridTemplateRows: auto;
|
|
36
|
-
--ezp-select-value-alignSelf:
|
|
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:
|
|
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:
|
|
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:
|
|
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-
|
|
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-
|
|
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-
|
|
90
|
-
border-radius: var(--ezp-select-wrap-borderRadius,
|
|
91
|
-
box-shadow: var(--ezp-select-wrap-
|
|
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:
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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,
|
|
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-
|
|
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:
|
|
57
|
-
box-shadow: var(--ezp-status-box-boxShadow, 0 0 0 1px var(--ezp-
|
|
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
|
-
|
|
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:
|
|
117
|
+
height: 48px;
|
|
68
118
|
transform: rotate(0);
|
|
69
|
-
width:
|
|
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-
|
|
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: '
|
|
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: '
|
|
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:
|
|
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/
|
|
39
|
-
|
|
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-
|
|
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 /
|
|
47
|
+
--ezp-stepper-gridTemplate: auto / auto 1fr auto;
|
|
50
48
|
}
|
|
51
49
|
|
|
52
50
|
#toggle {
|
|
53
|
-
background:
|
|
54
|
-
border-radius:
|
|
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
|
-
|
|
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-
|
|
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:
|
|
85
|
+
cursor: text;
|
|
97
86
|
font-family: inherit;
|
|
98
87
|
font-feature-settings: "tnum";
|
|
99
|
-
font-size:
|
|
88
|
+
font-size: 16px;
|
|
89
|
+
font-weight: 600;
|
|
100
90
|
-webkit-font-smoothing: antialiased;
|
|
101
91
|
height: 30px;
|
|
102
|
-
letter-spacing: -0.
|
|
92
|
+
letter-spacing: -0.0109597786em;
|
|
103
93
|
margin: 0;
|
|
94
|
+
min-width: 28px;
|
|
104
95
|
outline: none;
|
|
105
96
|
padding: 0;
|
|
106
|
-
|
|
107
|
-
|
|
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:
|
|
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-
|
|
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:
|
|
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-
|
|
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: '
|
|
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: '
|
|
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"; }
|