@ezeep/ezeep-js 1.0.141 → 1.0.145
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 +2 -2
- package/dist/cjs/ezp-auth_14.cjs.entry.js +33752 -0
- package/dist/cjs/{index-a93095ed.js → index-62fc857c.js} +7 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/ezp-auth/ezp-auth.css +3 -77
- package/dist/collection/components/ezp-auth/ezp-auth.js +26 -20
- package/dist/collection/components/ezp-backdrop/ezp-backdrop.css +3 -3
- package/dist/collection/components/ezp-dialog/ezp-dialog.css +48 -0
- package/dist/collection/components/ezp-dialog/ezp-dialog.js +220 -0
- package/dist/collection/components/ezp-icon/assets/glyph-account.svg +2 -2
- package/dist/collection/components/ezp-icon/assets/glyph-checkmark-alt.svg +3 -0
- package/dist/collection/components/ezp-icon/assets/glyph-checkmark.svg +2 -2
- package/dist/collection/components/ezp-icon/assets/glyph-close.svg +2 -2
- package/dist/collection/components/ezp-icon/assets/glyph-color.svg +2 -2
- package/dist/collection/components/ezp-icon/assets/glyph-copies.svg +2 -2
- package/dist/collection/components/ezp-icon/assets/glyph-dark.svg +2 -2
- package/dist/collection/components/ezp-icon/assets/glyph-drag-drop.svg +3 -0
- package/dist/collection/components/ezp-icon/assets/glyph-duplex.svg +2 -2
- package/dist/collection/components/ezp-icon/assets/glyph-exclamation-mark.svg +3 -0
- package/dist/collection/components/ezp-icon/assets/glyph-expand.svg +2 -2
- package/dist/collection/components/ezp-icon/assets/glyph-help.svg +2 -2
- package/dist/collection/components/ezp-icon/assets/glyph-light.svg +2 -2
- package/dist/collection/components/ezp-icon/assets/glyph-logo.svg +3 -0
- package/dist/collection/components/ezp-icon/assets/glyph-logout.svg +2 -2
- package/dist/collection/components/ezp-icon/assets/glyph-menu.svg +2 -2
- package/dist/collection/components/ezp-icon/assets/glyph-minus.svg +2 -2
- package/dist/collection/components/ezp-icon/assets/glyph-orientation.svg +2 -2
- package/dist/collection/components/ezp-icon/assets/glyph-plus.svg +2 -2
- package/dist/collection/components/ezp-icon/assets/glyph-printer.svg +2 -2
- package/dist/collection/components/ezp-icon/assets/glyph-quality.svg +2 -2
- package/dist/collection/components/ezp-icon/assets/glyph-question-mark.svg +3 -0
- package/dist/collection/components/ezp-icon/assets/glyph-size.svg +2 -2
- package/dist/collection/components/ezp-icon/assets/glyph-system.svg +2 -2
- package/dist/collection/components/ezp-icon/ezp-icon.css +25 -9
- package/dist/collection/components/ezp-icon/ezp-icon.js +23 -3
- package/dist/collection/components/ezp-icon-button/ezp-icon-button.css +43 -34
- package/dist/collection/components/ezp-icon-button/ezp-icon-button.js +1 -1
- package/dist/collection/components/ezp-label/ezp-label.css +32 -32
- package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.css +21 -27
- package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.js +280 -302
- package/dist/collection/components/ezp-printing/ezp-printing.css +175 -273
- package/dist/collection/components/ezp-printing/ezp-printing.js +111 -13
- package/dist/collection/components/ezp-select/ezp-select.css +98 -151
- package/dist/collection/components/ezp-select/ezp-select.js +51 -20
- package/dist/collection/components/ezp-status/ezp-status.css +111 -0
- package/dist/collection/components/ezp-status/ezp-status.js +236 -0
- package/dist/collection/components/ezp-stepper/ezp-stepper.css +21 -21
- package/dist/collection/components/ezp-stepper/ezp-stepper.js +1 -1
- package/dist/collection/components/ezp-text-button/ezp-text-button.css +44 -34
- package/dist/collection/components/ezp-text-button/ezp-text-button.js +22 -2
- package/dist/collection/components/ezp-upload/ezp-upload.css +67 -0
- package/dist/collection/components/ezp-upload/ezp-upload.js +121 -0
- package/dist/collection/components/ezp-user-menu/ezp-user-menu.css +75 -71
- package/dist/collection/components/ezp-user-menu/ezp-user-menu.js +12 -9
- package/dist/collection/services/print.js +50 -10
- package/dist/custom-elements/index.d.ts +18 -6
- package/dist/custom-elements/index.js +29055 -590
- package/dist/directives/proxies.ts +81 -25
- package/dist/esm/ezeep.js +2 -2
- package/dist/esm/ezp-auth_14.entry.js +33735 -0
- package/dist/esm/{index-9ecf6ae0.js → index-265d8cca.js} +7 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm-es5/ezeep.js +1 -1
- package/dist/esm-es5/ezp-auth_14.entry.js +21 -0
- package/dist/esm-es5/{index-9ecf6ae0.js → index-265d8cca.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/ezeep/assets/glyph-account.svg +2 -2
- package/dist/ezeep/assets/glyph-checkmark-alt.svg +3 -0
- package/dist/ezeep/assets/glyph-checkmark.svg +2 -2
- package/dist/ezeep/assets/glyph-close.svg +2 -2
- package/dist/ezeep/assets/glyph-color.svg +2 -2
- package/dist/ezeep/assets/glyph-copies.svg +2 -2
- package/dist/ezeep/assets/glyph-dark.svg +2 -2
- package/dist/ezeep/assets/glyph-drag-drop.svg +3 -0
- package/dist/ezeep/assets/glyph-duplex.svg +2 -2
- package/dist/ezeep/assets/glyph-exclamation-mark.svg +3 -0
- package/dist/ezeep/assets/glyph-expand.svg +2 -2
- package/dist/ezeep/assets/glyph-help.svg +2 -2
- package/dist/ezeep/assets/glyph-light.svg +2 -2
- package/dist/ezeep/assets/glyph-logo.svg +3 -0
- package/dist/ezeep/assets/glyph-logout.svg +2 -2
- package/dist/ezeep/assets/glyph-menu.svg +2 -2
- package/dist/ezeep/assets/glyph-minus.svg +2 -2
- package/dist/ezeep/assets/glyph-orientation.svg +2 -2
- package/dist/ezeep/assets/glyph-plus.svg +2 -2
- package/dist/ezeep/assets/glyph-printer.svg +2 -2
- package/dist/ezeep/assets/glyph-quality.svg +2 -2
- package/dist/ezeep/assets/glyph-question-mark.svg +3 -0
- package/dist/ezeep/assets/glyph-size.svg +2 -2
- package/dist/ezeep/assets/glyph-system.svg +2 -2
- package/dist/ezeep/ezeep.esm.js +1 -1
- package/dist/ezeep/ezeep.js +1 -1
- package/dist/ezeep/p-98ec6965.system.js +1 -0
- package/dist/ezeep/p-a1b0d17a.system.entry.js +21 -0
- package/dist/ezeep/p-a7b7b386.entry.js +15 -0
- package/dist/ezeep/p-f3065800.js +1 -0
- package/dist/ezeep/p-f89804ee.system.js +1 -0
- package/dist/types/components/ezp-auth/ezp-auth.d.ts +3 -2
- package/dist/types/components/ezp-dialog/ezp-dialog.d.ts +42 -0
- package/dist/types/components/ezp-icon/ezp-icon.d.ts +2 -0
- package/dist/types/components/ezp-printer-selection/ezp-printer-selection.d.ts +19 -1
- package/dist/types/components/ezp-printing/ezp-printing.d.ts +10 -3
- package/dist/types/components/ezp-select/ezp-select.d.ts +4 -0
- package/dist/types/components/ezp-status/ezp-status.d.ts +44 -0
- package/dist/types/components/ezp-text-button/ezp-text-button.d.ts +2 -0
- package/dist/types/components/ezp-upload/ezp-upload.d.ts +43 -0
- package/dist/types/components.d.ts +126 -21
- package/dist/types/services/print.d.ts +7 -2
- package/dist/types/shared/types.d.ts +15 -3
- package/package.json +12 -2
- package/readme.md +54 -18
- package/www/build/assets/glyph-account.svg +2 -2
- package/www/build/assets/glyph-checkmark-alt.svg +3 -0
- package/www/build/assets/glyph-checkmark.svg +2 -2
- package/www/build/assets/glyph-close.svg +2 -2
- package/www/build/assets/glyph-color.svg +2 -2
- package/www/build/assets/glyph-copies.svg +2 -2
- package/www/build/assets/glyph-dark.svg +2 -2
- package/www/build/assets/glyph-drag-drop.svg +3 -0
- package/www/build/assets/glyph-duplex.svg +2 -2
- package/www/build/assets/glyph-exclamation-mark.svg +3 -0
- package/www/build/assets/glyph-expand.svg +2 -2
- package/www/build/assets/glyph-help.svg +2 -2
- package/www/build/assets/glyph-light.svg +2 -2
- package/www/build/assets/glyph-logo.svg +3 -0
- package/www/build/assets/glyph-logout.svg +2 -2
- package/www/build/assets/glyph-menu.svg +2 -2
- package/www/build/assets/glyph-minus.svg +2 -2
- package/www/build/assets/glyph-orientation.svg +2 -2
- package/www/build/assets/glyph-plus.svg +2 -2
- package/www/build/assets/glyph-printer.svg +2 -2
- package/www/build/assets/glyph-quality.svg +2 -2
- package/www/build/assets/glyph-question-mark.svg +3 -0
- package/www/build/assets/glyph-size.svg +2 -2
- package/www/build/assets/glyph-system.svg +2 -2
- package/www/build/ezeep.esm.js +1 -1
- package/www/build/ezeep.js +1 -1
- package/www/build/p-98ec6965.system.js +1 -0
- package/www/build/p-a1b0d17a.system.entry.js +21 -0
- package/www/build/p-a7b7b386.entry.js +15 -0
- package/www/build/p-f3065800.js +1 -0
- package/www/build/p-f89804ee.system.js +1 -0
- package/www/data/file-types.json +68 -0
- package/www/data/locales/de.json +61 -30
- package/www/data/locales/en.json +61 -30
- package/www/index.html +27 -7
- package/dist/cjs/ezp-auth_12.cjs.entry.js +0 -5293
- package/dist/collection/components/ezp-progress/ezp-progress.css +0 -110
- package/dist/collection/components/ezp-progress/ezp-progress.js +0 -53
- package/dist/esm/ezp-auth_12.entry.js +0 -5278
- package/dist/esm-es5/ezp-auth_12.entry.js +0 -1
- package/dist/ezeep/p-c488ee3f.system.js +0 -1
- package/dist/ezeep/p-c7eac982.system.entry.js +0 -1
- package/dist/ezeep/p-c9ef1ce0.entry.js +0 -1
- package/dist/ezeep/p-eb3b8dbd.system.js +0 -1
- package/dist/ezeep/p-ff843eb4.js +0 -1
- package/dist/types/components/ezp-progress/ezp-progress.d.ts +0 -15
- package/www/build/p-c488ee3f.system.js +0 -1
- package/www/build/p-c7eac982.system.entry.js +0 -1
- package/www/build/p-c9ef1ce0.entry.js +0 -1
- package/www/build/p-eb3b8dbd.system.js +0 -1
- package/www/build/p-ff843eb4.js +0 -1
|
@@ -18,6 +18,8 @@ export class EzpSelect {
|
|
|
18
18
|
this.placeholder = 'Placeholder';
|
|
19
19
|
/** Description... */
|
|
20
20
|
this.toggleFlow = 'horizontal';
|
|
21
|
+
/** Description... */
|
|
22
|
+
this.disabled = false;
|
|
21
23
|
/**
|
|
22
24
|
*
|
|
23
25
|
* States
|
|
@@ -26,13 +28,20 @@ export class EzpSelect {
|
|
|
26
28
|
/** Description... */
|
|
27
29
|
this.expanded = false;
|
|
28
30
|
/** Description... */
|
|
29
|
-
this.selected = { id:
|
|
31
|
+
this.selected = { id: false, title: '', meta: '' };
|
|
30
32
|
/**
|
|
31
33
|
*
|
|
32
34
|
* Private methods
|
|
33
35
|
*
|
|
34
36
|
*/
|
|
35
37
|
this.toggle = () => {
|
|
38
|
+
this.containerHeight = this.container.clientHeight - this.spacing * 2;
|
|
39
|
+
this.listHeight = this.list.scrollHeight;
|
|
40
|
+
this.wrapTop = this.component.offsetTop;
|
|
41
|
+
this.wrapHeight = this.toggleHeight + this.listHeight;
|
|
42
|
+
this.expandCover = this.wrapHeight > this.containerHeight;
|
|
43
|
+
this.expandRise = this.wrapHeight > this.containerHeight - this.wrapTop;
|
|
44
|
+
this.wrapDiff = this.containerHeight - this.wrapHeight - this.wrapTop;
|
|
36
45
|
this.expanded = !this.expanded;
|
|
37
46
|
this.selectToggle.emit(this.expanded);
|
|
38
47
|
};
|
|
@@ -44,6 +53,13 @@ export class EzpSelect {
|
|
|
44
53
|
this.toggle();
|
|
45
54
|
}, delay);
|
|
46
55
|
};
|
|
56
|
+
this.preSelect = () => {
|
|
57
|
+
this.selected = this.options.find((option) => typeof this.preSelected === 'number'
|
|
58
|
+
? option.id === this.preSelected
|
|
59
|
+
: typeof this.preSelected === 'string'
|
|
60
|
+
? option.title === this.preSelected
|
|
61
|
+
: null);
|
|
62
|
+
};
|
|
47
63
|
}
|
|
48
64
|
/**
|
|
49
65
|
*
|
|
@@ -52,15 +68,15 @@ export class EzpSelect {
|
|
|
52
68
|
*/
|
|
53
69
|
watchExpanded() {
|
|
54
70
|
if (this.expandCover) {
|
|
55
|
-
this.component.style.setProperty('--list-height', this.expanded ? `${this.containerHeight - this.toggleHeight}px` : '0px');
|
|
56
|
-
this.component.style.setProperty('--wrap-
|
|
71
|
+
this.component.style.setProperty('--ezp-select-list-height', this.expanded ? `${this.containerHeight - this.toggleHeight}px` : '0px');
|
|
72
|
+
this.component.style.setProperty('--ezp-select-wrap-translateY', this.expanded ? `${this.wrapTop * -1 + this.spacing}px` : '0px');
|
|
57
73
|
}
|
|
58
74
|
else if (this.expandRise) {
|
|
59
|
-
this.component.style.setProperty('--list-height', this.expanded ? `${this.listHeight}px` : '0px');
|
|
60
|
-
this.component.style.setProperty('--wrap-
|
|
75
|
+
this.component.style.setProperty('--ezp-select-list-height', this.expanded ? `${this.listHeight}px` : '0px');
|
|
76
|
+
this.component.style.setProperty('--ezp-select-wrap-translateY', this.expanded ? `${this.wrapDiff + this.spacing}px` : '0px');
|
|
61
77
|
}
|
|
62
78
|
else {
|
|
63
|
-
this.component.style.setProperty('--list-height', this.expanded ? `${this.listHeight}px` : '0px');
|
|
79
|
+
this.component.style.setProperty('--ezp-select-list-height', this.expanded ? `${this.listHeight}px` : '0px');
|
|
64
80
|
}
|
|
65
81
|
if (this.expanded) {
|
|
66
82
|
this.backdrop.visible = true;
|
|
@@ -84,22 +100,18 @@ export class EzpSelect {
|
|
|
84
100
|
this.container.removeChild(this.backdrop);
|
|
85
101
|
});
|
|
86
102
|
if (this.preSelected) {
|
|
87
|
-
this.
|
|
88
|
-
? option.id === this.preSelected
|
|
89
|
-
: option.title === this.preSelected);
|
|
103
|
+
this.preSelect();
|
|
90
104
|
}
|
|
91
105
|
}
|
|
92
106
|
componentDidLoad() {
|
|
93
107
|
const styles = getComputedStyle(this.component);
|
|
94
|
-
this.toggleHeight = parseInt(styles.getPropertyValue('--toggle-height'));
|
|
95
|
-
this.duration = parseFloat(styles.getPropertyValue('--duration'));
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
this.
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
this.expandRise = this.wrapHeight > this.containerHeight - this.wrapTop;
|
|
102
|
-
this.wrapDiff = this.containerHeight - this.wrapHeight - this.wrapTop;
|
|
108
|
+
this.toggleHeight = parseInt(styles.getPropertyValue('--ezp-select-toggle-height'));
|
|
109
|
+
this.duration = parseFloat(styles.getPropertyValue('--ezp-select-duration'));
|
|
110
|
+
}
|
|
111
|
+
componentWillUpdate() {
|
|
112
|
+
if (!this.selected.id && this.preSelected) {
|
|
113
|
+
this.preSelect();
|
|
114
|
+
}
|
|
103
115
|
}
|
|
104
116
|
/**
|
|
105
117
|
*
|
|
@@ -112,11 +124,12 @@ export class EzpSelect {
|
|
|
112
124
|
this.icon ? 'has-icon' : '',
|
|
113
125
|
`toggle-${this.toggleFlow}`,
|
|
114
126
|
this.optionFlow ? `option-${this.optionFlow}` : '',
|
|
127
|
+
this.disabled ? 'disabled' : '',
|
|
115
128
|
];
|
|
116
129
|
const labelLevel = this.toggleFlow === 'horizontal' ? 'secondary' : 'tertiary';
|
|
117
130
|
return (h(Host, { class: hostClasses.join(' ') },
|
|
118
131
|
h("div", { id: "wrap" },
|
|
119
|
-
h("div", { id: "toggle", onClick: () => this.toggle() },
|
|
132
|
+
h("div", { id: "toggle", onClick: () => !this.disabled && this.toggle() },
|
|
120
133
|
this.icon ? h("ezp-icon", { id: "icon", name: this.icon }) : null,
|
|
121
134
|
h("ezp-label", { id: "label", noWrap: true, level: labelLevel, text: this.label }),
|
|
122
135
|
h("ezp-label", { id: "value", ellipsis: true, text: this.selected.title !== '' ? this.selected.title : this.placeholder }),
|
|
@@ -145,7 +158,7 @@ export class EzpSelect {
|
|
|
145
158
|
"mutable": false,
|
|
146
159
|
"complexType": {
|
|
147
160
|
"original": "IconNameTypes",
|
|
148
|
-
"resolved": "\"account\" | \"checkmark\" | \"close\" | \"color\" | \"copies\" | \"dark\" | \"duplex\" | \"expand\" | \"help\" | \"light\" | \"logout\" | \"menu\" | \"minus\" | \"orientation\" | \"plus\" | \"printer\" | \"quality\" | \"size\" | \"system\"",
|
|
161
|
+
"resolved": "\"account\" | \"checkmark\" | \"close\" | \"color\" | \"copies\" | \"dark\" | \"duplex\" | \"expand\" | \"help\" | \"light\" | \"logout\" | \"menu\" | \"minus\" | \"orientation\" | \"plus\" | \"printer\" | \"quality\" | \"size\" | \"system\" | \"drag-drop\" | \"checkmark-alt\" | \"question-mark\" | \"exclamation-mark\" | \"logo\"",
|
|
149
162
|
"references": {
|
|
150
163
|
"IconNameTypes": {
|
|
151
164
|
"location": "import",
|
|
@@ -279,6 +292,24 @@ export class EzpSelect {
|
|
|
279
292
|
"attribute": "toggle-flow",
|
|
280
293
|
"reflect": false,
|
|
281
294
|
"defaultValue": "'horizontal'"
|
|
295
|
+
},
|
|
296
|
+
"disabled": {
|
|
297
|
+
"type": "boolean",
|
|
298
|
+
"mutable": false,
|
|
299
|
+
"complexType": {
|
|
300
|
+
"original": "boolean",
|
|
301
|
+
"resolved": "boolean",
|
|
302
|
+
"references": {}
|
|
303
|
+
},
|
|
304
|
+
"required": false,
|
|
305
|
+
"optional": false,
|
|
306
|
+
"docs": {
|
|
307
|
+
"tags": [],
|
|
308
|
+
"text": "Description..."
|
|
309
|
+
},
|
|
310
|
+
"attribute": "disabled",
|
|
311
|
+
"reflect": false,
|
|
312
|
+
"defaultValue": "false"
|
|
282
313
|
}
|
|
283
314
|
}; }
|
|
284
315
|
static get states() { return {
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Modules
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
* Variables
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* Functions
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* Mixins
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* Modules
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* Rules
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
:host {
|
|
32
|
+
align-items: center;
|
|
33
|
+
background: var(--ezp-color-overlay-primary);
|
|
34
|
+
border-radius: 6px;
|
|
35
|
+
box-sizing: border-box;
|
|
36
|
+
display: flex;
|
|
37
|
+
height: 100%;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
left: 0;
|
|
40
|
+
padding: var(--ezp-spacing-6);
|
|
41
|
+
position: absolute;
|
|
42
|
+
top: 0;
|
|
43
|
+
width: 100%;
|
|
44
|
+
z-index: 9999;
|
|
45
|
+
}
|
|
46
|
+
@media (prefers-color-scheme: dark) {
|
|
47
|
+
:host {
|
|
48
|
+
--box-separator-position: inset 0 0 0 var(--hairline-width-positive);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
#box {
|
|
53
|
+
--ezp-icon-fill: var(--ezp-color-theme-solid);
|
|
54
|
+
align-items: center;
|
|
55
|
+
background: var(--ezp-color-surface-tertiary);
|
|
56
|
+
border-radius: 3px;
|
|
57
|
+
box-shadow: var(--ezp-status-box-boxShadowPosition, 0 0 0 1px) var(--ezp-color-outline);
|
|
58
|
+
display: flex;
|
|
59
|
+
flex-direction: column;
|
|
60
|
+
gap: var(--ezp-spacing-4);
|
|
61
|
+
padding: var(--ezp-spacing-4) var(--ezp-spacing-5);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
#indicator {
|
|
65
|
+
animation: rotate var(--ezp-duration-6) linear infinite;
|
|
66
|
+
display: block;
|
|
67
|
+
height: 42px;
|
|
68
|
+
transform: rotate(0);
|
|
69
|
+
width: 42px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
#track {
|
|
73
|
+
fill: none;
|
|
74
|
+
stroke: var(--ezp-color-outline);
|
|
75
|
+
stroke-width: 4px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
#value {
|
|
79
|
+
animation: offset var(--ezp-duration-6) linear alternate infinite;
|
|
80
|
+
fill: none;
|
|
81
|
+
stroke: var(--ezp-color-theme-solid);
|
|
82
|
+
stroke-dasharray: 110;
|
|
83
|
+
stroke-dashoffset: 110;
|
|
84
|
+
stroke-linecap: round;
|
|
85
|
+
stroke-width: 4px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
#description {
|
|
89
|
+
color: var(--ezp-color-foreground-primary);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
#footer {
|
|
93
|
+
display: flex;
|
|
94
|
+
gap: var(--ezp-spacing-2);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* Keyframes
|
|
100
|
+
*
|
|
101
|
+
*/
|
|
102
|
+
@keyframes offset {
|
|
103
|
+
100% {
|
|
104
|
+
stroke-dashoffset: 55;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
@keyframes rotate {
|
|
108
|
+
100% {
|
|
109
|
+
transform: rotate(360deg);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import { Component, Host, Prop, Event, h } from '@stencil/core';
|
|
2
|
+
import { initi18n } from '../../utils/utils';
|
|
3
|
+
import i18next from 'i18next';
|
|
4
|
+
export class EzpStatus {
|
|
5
|
+
constructor() {
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
* Properties
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
this.description = 'Description';
|
|
12
|
+
this.processing = false;
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* Private methods
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
this.handleCancel = () => {
|
|
19
|
+
this.statusCancel.emit(this.instance);
|
|
20
|
+
};
|
|
21
|
+
this.handleClose = () => {
|
|
22
|
+
this.statusClose.emit(this.instance);
|
|
23
|
+
};
|
|
24
|
+
this.handleRetry = () => {
|
|
25
|
+
this.statusRetry.emit(this.instance);
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* Lifecycle methods
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
componentWillLoad() {
|
|
34
|
+
initi18n();
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* Render method
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
render() {
|
|
42
|
+
return (h(Host, null,
|
|
43
|
+
h("div", { id: "box" },
|
|
44
|
+
this.processing ? (h("svg", { id: "indicator", viewBox: "0 0 42 42", xmlns: "http://www.w3.org/2000/svg" },
|
|
45
|
+
h("circle", { id: "track", cx: "21", cy: "21", r: "18" }),
|
|
46
|
+
h("circle", { id: "value", cx: "21", cy: "21", r: "18" }))) : this.icon ? (h("ezp-icon", { name: this.icon, framed: true })) : null,
|
|
47
|
+
h("ezp-label", { id: "description", level: "tertiary", weight: "strong", text: this.description }),
|
|
48
|
+
h("div", { id: "footer" },
|
|
49
|
+
this.cancel && (h("ezp-text-button", { level: "secondary", small: true, onClick: this.handleCancel, label: typeof this.cancel === 'string' ? this.cancel : i18next.t('button_actions.cancel') })),
|
|
50
|
+
this.close && (h("ezp-text-button", { level: this.retry ? 'secondary' : 'primary', small: true, onClick: this.handleClose, label: typeof this.close === 'string' ? this.close : i18next.t('button_actions.close') })),
|
|
51
|
+
this.retry && (h("ezp-text-button", { level: "primary", small: true, onClick: this.handleRetry, label: typeof this.retry === 'string' ? this.retry : i18next.t('button_actions.retry') })),
|
|
52
|
+
h("slot", null)))));
|
|
53
|
+
}
|
|
54
|
+
static get is() { return "ezp-status"; }
|
|
55
|
+
static get encapsulation() { return "shadow"; }
|
|
56
|
+
static get originalStyleUrls() { return {
|
|
57
|
+
"$": ["ezp-status.scss"]
|
|
58
|
+
}; }
|
|
59
|
+
static get styleUrls() { return {
|
|
60
|
+
"$": ["ezp-status.css"]
|
|
61
|
+
}; }
|
|
62
|
+
static get properties() { return {
|
|
63
|
+
"description": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"mutable": false,
|
|
66
|
+
"complexType": {
|
|
67
|
+
"original": "string",
|
|
68
|
+
"resolved": "string",
|
|
69
|
+
"references": {}
|
|
70
|
+
},
|
|
71
|
+
"required": false,
|
|
72
|
+
"optional": false,
|
|
73
|
+
"docs": {
|
|
74
|
+
"tags": [],
|
|
75
|
+
"text": "\nProperties"
|
|
76
|
+
},
|
|
77
|
+
"attribute": "description",
|
|
78
|
+
"reflect": false,
|
|
79
|
+
"defaultValue": "'Description'"
|
|
80
|
+
},
|
|
81
|
+
"processing": {
|
|
82
|
+
"type": "boolean",
|
|
83
|
+
"mutable": false,
|
|
84
|
+
"complexType": {
|
|
85
|
+
"original": "boolean",
|
|
86
|
+
"resolved": "boolean",
|
|
87
|
+
"references": {}
|
|
88
|
+
},
|
|
89
|
+
"required": false,
|
|
90
|
+
"optional": false,
|
|
91
|
+
"docs": {
|
|
92
|
+
"tags": [],
|
|
93
|
+
"text": ""
|
|
94
|
+
},
|
|
95
|
+
"attribute": "processing",
|
|
96
|
+
"reflect": false,
|
|
97
|
+
"defaultValue": "false"
|
|
98
|
+
},
|
|
99
|
+
"instance": {
|
|
100
|
+
"type": "string",
|
|
101
|
+
"mutable": false,
|
|
102
|
+
"complexType": {
|
|
103
|
+
"original": "string",
|
|
104
|
+
"resolved": "string",
|
|
105
|
+
"references": {}
|
|
106
|
+
},
|
|
107
|
+
"required": false,
|
|
108
|
+
"optional": false,
|
|
109
|
+
"docs": {
|
|
110
|
+
"tags": [],
|
|
111
|
+
"text": ""
|
|
112
|
+
},
|
|
113
|
+
"attribute": "instance",
|
|
114
|
+
"reflect": false
|
|
115
|
+
},
|
|
116
|
+
"icon": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"mutable": false,
|
|
119
|
+
"complexType": {
|
|
120
|
+
"original": "IconNameTypes",
|
|
121
|
+
"resolved": "\"account\" | \"checkmark\" | \"close\" | \"color\" | \"copies\" | \"dark\" | \"duplex\" | \"expand\" | \"help\" | \"light\" | \"logout\" | \"menu\" | \"minus\" | \"orientation\" | \"plus\" | \"printer\" | \"quality\" | \"size\" | \"system\" | \"drag-drop\" | \"checkmark-alt\" | \"question-mark\" | \"exclamation-mark\" | \"logo\"",
|
|
122
|
+
"references": {
|
|
123
|
+
"IconNameTypes": {
|
|
124
|
+
"location": "import",
|
|
125
|
+
"path": "../../shared/types"
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"required": false,
|
|
130
|
+
"optional": true,
|
|
131
|
+
"docs": {
|
|
132
|
+
"tags": [],
|
|
133
|
+
"text": ""
|
|
134
|
+
},
|
|
135
|
+
"attribute": "icon",
|
|
136
|
+
"reflect": false
|
|
137
|
+
},
|
|
138
|
+
"cancel": {
|
|
139
|
+
"type": "any",
|
|
140
|
+
"mutable": false,
|
|
141
|
+
"complexType": {
|
|
142
|
+
"original": "string | boolean",
|
|
143
|
+
"resolved": "boolean | string",
|
|
144
|
+
"references": {}
|
|
145
|
+
},
|
|
146
|
+
"required": false,
|
|
147
|
+
"optional": true,
|
|
148
|
+
"docs": {
|
|
149
|
+
"tags": [],
|
|
150
|
+
"text": ""
|
|
151
|
+
},
|
|
152
|
+
"attribute": "cancel",
|
|
153
|
+
"reflect": false
|
|
154
|
+
},
|
|
155
|
+
"close": {
|
|
156
|
+
"type": "any",
|
|
157
|
+
"mutable": false,
|
|
158
|
+
"complexType": {
|
|
159
|
+
"original": "string | boolean",
|
|
160
|
+
"resolved": "boolean | string",
|
|
161
|
+
"references": {}
|
|
162
|
+
},
|
|
163
|
+
"required": false,
|
|
164
|
+
"optional": true,
|
|
165
|
+
"docs": {
|
|
166
|
+
"tags": [],
|
|
167
|
+
"text": ""
|
|
168
|
+
},
|
|
169
|
+
"attribute": "close",
|
|
170
|
+
"reflect": false
|
|
171
|
+
},
|
|
172
|
+
"retry": {
|
|
173
|
+
"type": "any",
|
|
174
|
+
"mutable": false,
|
|
175
|
+
"complexType": {
|
|
176
|
+
"original": "string | boolean",
|
|
177
|
+
"resolved": "boolean | string",
|
|
178
|
+
"references": {}
|
|
179
|
+
},
|
|
180
|
+
"required": false,
|
|
181
|
+
"optional": true,
|
|
182
|
+
"docs": {
|
|
183
|
+
"tags": [],
|
|
184
|
+
"text": ""
|
|
185
|
+
},
|
|
186
|
+
"attribute": "retry",
|
|
187
|
+
"reflect": false
|
|
188
|
+
}
|
|
189
|
+
}; }
|
|
190
|
+
static get events() { return [{
|
|
191
|
+
"method": "statusCancel",
|
|
192
|
+
"name": "statusCancel",
|
|
193
|
+
"bubbles": true,
|
|
194
|
+
"cancelable": true,
|
|
195
|
+
"composed": true,
|
|
196
|
+
"docs": {
|
|
197
|
+
"tags": [],
|
|
198
|
+
"text": "\nEvents"
|
|
199
|
+
},
|
|
200
|
+
"complexType": {
|
|
201
|
+
"original": "any",
|
|
202
|
+
"resolved": "any",
|
|
203
|
+
"references": {}
|
|
204
|
+
}
|
|
205
|
+
}, {
|
|
206
|
+
"method": "statusClose",
|
|
207
|
+
"name": "statusClose",
|
|
208
|
+
"bubbles": true,
|
|
209
|
+
"cancelable": true,
|
|
210
|
+
"composed": true,
|
|
211
|
+
"docs": {
|
|
212
|
+
"tags": [],
|
|
213
|
+
"text": ""
|
|
214
|
+
},
|
|
215
|
+
"complexType": {
|
|
216
|
+
"original": "any",
|
|
217
|
+
"resolved": "any",
|
|
218
|
+
"references": {}
|
|
219
|
+
}
|
|
220
|
+
}, {
|
|
221
|
+
"method": "statusRetry",
|
|
222
|
+
"name": "statusRetry",
|
|
223
|
+
"bubbles": true,
|
|
224
|
+
"cancelable": true,
|
|
225
|
+
"composed": true,
|
|
226
|
+
"docs": {
|
|
227
|
+
"tags": [],
|
|
228
|
+
"text": ""
|
|
229
|
+
},
|
|
230
|
+
"complexType": {
|
|
231
|
+
"original": "any",
|
|
232
|
+
"resolved": "any",
|
|
233
|
+
"references": {}
|
|
234
|
+
}
|
|
235
|
+
}]; }
|
|
236
|
+
}
|
|
@@ -30,27 +30,27 @@
|
|
|
30
30
|
*/
|
|
31
31
|
:host {
|
|
32
32
|
align-items: center;
|
|
33
|
-
background: var(--color-surface-tertiary);
|
|
33
|
+
background: var(--ezp-color-surface-tertiary);
|
|
34
34
|
border-radius: 3px;
|
|
35
|
-
box-shadow: 0 0 0
|
|
35
|
+
box-shadow: var(--ezp-stepper-boxShadowPosition, 0 0 0 1px) var(--ezp-color-outline);
|
|
36
36
|
display: grid;
|
|
37
|
-
gap: var(--spacing-3);
|
|
38
|
-
grid-template: var(--
|
|
39
|
-
padding: 0 var(--spacing-2) 0 var(--spacing-3);
|
|
37
|
+
gap: var(--ezp-spacing-3);
|
|
38
|
+
grid-template: var(--ezp-stepper-gridTemplate, auto/auto 1fr auto);
|
|
39
|
+
padding: 0 var(--ezp-spacing-2) 0 var(--ezp-spacing-3);
|
|
40
40
|
position: relative;
|
|
41
41
|
z-index: 0;
|
|
42
42
|
}
|
|
43
43
|
:host(.focused) {
|
|
44
|
-
--icon-color: var(--color-theme-solid);
|
|
45
|
-
--label-color: var(--color-theme-solid);
|
|
44
|
+
--ezp-stepper-icon-color: var(--ezp-color-theme-solid);
|
|
45
|
+
--ezp-stepper-label-color: var(--ezp-color-theme-solid);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
:host(.has-icon) {
|
|
49
|
-
--
|
|
49
|
+
--ezp-stepper-gridTemplate: auto / repeat(2, auto) 1fr auto;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
#toggle {
|
|
53
|
-
background: var(--toggle-background, transparent);
|
|
53
|
+
background: var(--ezp-stepper-toggle-background, transparent);
|
|
54
54
|
border-radius: 3px;
|
|
55
55
|
cursor: pointer;
|
|
56
56
|
height: 100%;
|
|
@@ -62,17 +62,17 @@
|
|
|
62
62
|
}
|
|
63
63
|
@media (hover: hover) {
|
|
64
64
|
#toggle:hover {
|
|
65
|
-
--toggle-background: var(--color-shade-primary);
|
|
65
|
+
--ezp-stepper-toggle-background: var(--ezp-color-shade-primary);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
#icon {
|
|
70
|
-
color: var(--icon-color, var(--color-foreground-secondary));
|
|
70
|
+
color: var(--ezp-stepper-icon-color, var(--ezp-color-foreground-secondary));
|
|
71
71
|
pointer-events: none;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
#label {
|
|
75
|
-
color: var(--label-color, var(--color-foreground-secondary));
|
|
75
|
+
color: var(--ezp-stepper-label-color, var(--ezp-color-foreground-secondary));
|
|
76
76
|
pointer-events: none;
|
|
77
77
|
}
|
|
78
78
|
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
border-radius: 3px;
|
|
93
93
|
box-shadow: none;
|
|
94
94
|
box-sizing: border-box;
|
|
95
|
-
color: var(--color-foreground-primary);
|
|
95
|
+
color: var(--ezp-color-foreground-primary);
|
|
96
96
|
cursor: inherit;
|
|
97
97
|
font-family: inherit;
|
|
98
98
|
font-feature-settings: "tnum";
|
|
@@ -121,27 +121,27 @@
|
|
|
121
121
|
.button {
|
|
122
122
|
align-items: center;
|
|
123
123
|
appearance: none;
|
|
124
|
-
background: var(--button-background, transparent);
|
|
124
|
+
background: var(--ezp-stepper-button-background, transparent);
|
|
125
125
|
border: 0;
|
|
126
126
|
border-radius: 50%;
|
|
127
127
|
box-shadow: none;
|
|
128
|
-
color: var(--button-color, var(--color-theme-solid));
|
|
129
|
-
cursor: var(--button-cursor, pointer);
|
|
128
|
+
color: var(--ezp-stepper-button-color, var(--ezp-color-theme-solid));
|
|
129
|
+
cursor: var(--ezp-stepper-button-cursor, pointer);
|
|
130
130
|
display: flex;
|
|
131
131
|
justify-content: center;
|
|
132
132
|
margin: 0;
|
|
133
133
|
outline: none;
|
|
134
|
-
padding: var(--spacing-1);
|
|
134
|
+
padding: var(--ezp-spacing-1);
|
|
135
135
|
}
|
|
136
136
|
@media (hover: hover) {
|
|
137
137
|
.button:not(:disabled):hover {
|
|
138
|
-
--button-background: var(--color-shade-primary);
|
|
138
|
+
--ezp-stepper-button-background: var(--ezp-color-shade-primary);
|
|
139
139
|
}
|
|
140
140
|
.button:not(:disabled):active {
|
|
141
|
-
--button-background: var(--color-shade-secondary);
|
|
141
|
+
--ezp-stepper-button-background: var(--ezp-color-shade-secondary);
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
.button:disabled {
|
|
145
|
-
--button-color: var(--color-foreground-tertiary);
|
|
146
|
-
--button-cursor:
|
|
145
|
+
--ezp-stepper-button-color: var(--ezp-color-foreground-tertiary);
|
|
146
|
+
--ezp-stepper-button-cursor: default;
|
|
147
147
|
}
|
|
@@ -91,7 +91,7 @@ export class EzpStepper {
|
|
|
91
91
|
"mutable": false,
|
|
92
92
|
"complexType": {
|
|
93
93
|
"original": "IconNameTypes",
|
|
94
|
-
"resolved": "\"account\" | \"checkmark\" | \"close\" | \"color\" | \"copies\" | \"dark\" | \"duplex\" | \"expand\" | \"help\" | \"light\" | \"logout\" | \"menu\" | \"minus\" | \"orientation\" | \"plus\" | \"printer\" | \"quality\" | \"size\" | \"system\"",
|
|
94
|
+
"resolved": "\"account\" | \"checkmark\" | \"close\" | \"color\" | \"copies\" | \"dark\" | \"duplex\" | \"expand\" | \"help\" | \"light\" | \"logout\" | \"menu\" | \"minus\" | \"orientation\" | \"plus\" | \"printer\" | \"quality\" | \"size\" | \"system\" | \"drag-drop\" | \"checkmark-alt\" | \"question-mark\" | \"exclamation-mark\" | \"logo\"",
|
|
95
95
|
"references": {
|
|
96
96
|
"IconNameTypes": {
|
|
97
97
|
"location": "import",
|