@ezeep/ezeep-js 1.0.267 → 1.0.269
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/app-globals-D7ISNeUi.js +16 -0
- package/dist/cjs/ezeep.cjs.js +43 -12
- package/dist/cjs/ezp-auth_15.cjs.entry.js +27992 -26047
- package/dist/cjs/index-dv_gozsq.js +4694 -0
- package/dist/cjs/loader.cjs.js +7 -17
- package/dist/collection/collection-manifest.json +19 -18
- package/dist/collection/components/ezp-auth/ezp-auth.js +266 -245
- package/dist/collection/components/ezp-backdrop/ezp-backdrop.js +93 -81
- package/dist/collection/components/ezp-dialog/ezp-dialog.js +226 -210
- package/dist/collection/components/ezp-icon/ezp-icon.js +117 -102
- package/dist/collection/components/ezp-icon-button/ezp-icon-button.js +181 -159
- package/dist/collection/components/ezp-input/ezp-input.css +5 -5
- package/dist/collection/components/ezp-input/ezp-input.js +227 -205
- package/dist/collection/components/ezp-label/ezp-label.css +5 -5
- package/dist/collection/components/ezp-label/ezp-label.js +151 -132
- package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.css +5 -5
- package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.js +1134 -1107
- package/dist/collection/components/ezp-printing/ezp-printing.css +183 -125
- package/dist/collection/components/ezp-printing/ezp-printing.js +872 -807
- package/dist/collection/components/ezp-select/ezp-select.css +4 -4
- package/dist/collection/components/ezp-select/ezp-select.js +376 -351
- package/dist/collection/components/ezp-status/ezp-status.css +5 -5
- package/dist/collection/components/ezp-status/ezp-status.js +238 -223
- package/dist/collection/components/ezp-stepper/ezp-stepper.css +5 -5
- package/dist/collection/components/ezp-stepper/ezp-stepper.js +256 -243
- package/dist/collection/components/ezp-text-button/ezp-text-button.js +196 -174
- package/dist/collection/components/ezp-upload/ezp-upload.js +134 -141
- package/dist/collection/components/ezp-user-menu/ezp-user-menu.css +5 -5
- package/dist/collection/components/ezp-user-menu/ezp-user-menu.js +180 -185
- package/dist/collection/services/auth.js +133 -133
- package/dist/collection/services/print.js +167 -167
- package/dist/collection/services/user.js +16 -16
- package/dist/collection/shared/global.js +7 -7
- package/dist/collection/types/shared/types.d.ts +1 -0
- package/dist/collection/utils/utils.js +89 -89
- package/dist/components/auth.js +1 -0
- package/dist/components/ezp-auth.d.ts +11 -0
- package/dist/components/ezp-auth.js +1 -0
- package/dist/components/ezp-auth2.js +1 -0
- package/dist/components/ezp-backdrop.d.ts +11 -0
- package/dist/components/ezp-backdrop.js +1 -0
- package/dist/components/ezp-backdrop2.js +1 -0
- package/dist/components/ezp-dialog.d.ts +11 -0
- package/dist/components/ezp-dialog.js +1 -0
- package/dist/components/ezp-dialog2.js +1 -0
- package/dist/components/ezp-icon-button.d.ts +11 -0
- package/dist/components/ezp-icon-button.js +1 -0
- package/dist/components/ezp-icon-button2.js +1 -0
- package/dist/components/ezp-icon.d.ts +11 -0
- package/dist/components/ezp-icon.js +1 -0
- package/dist/components/ezp-icon2.js +1 -0
- package/dist/components/ezp-input.d.ts +11 -0
- package/dist/components/ezp-input.js +1 -0
- package/dist/components/ezp-input2.js +1 -0
- package/dist/components/ezp-label.d.ts +11 -0
- package/dist/components/ezp-label.js +1 -0
- package/dist/components/ezp-label2.js +1 -0
- package/dist/components/ezp-printer-selection.d.ts +11 -0
- package/dist/components/ezp-printer-selection.js +1 -0
- package/dist/components/ezp-printer-selection2.js +1 -0
- package/dist/components/ezp-printing.d.ts +11 -0
- package/dist/components/ezp-printing.js +1 -0
- package/dist/components/ezp-select.d.ts +11 -0
- package/dist/components/ezp-select.js +1 -0
- package/dist/components/ezp-select2.js +1 -0
- package/dist/components/ezp-status.d.ts +11 -0
- package/dist/components/ezp-status.js +1 -0
- package/dist/components/ezp-status2.js +1 -0
- package/dist/components/ezp-stepper.d.ts +11 -0
- package/dist/components/ezp-stepper.js +1 -0
- package/dist/components/ezp-stepper2.js +1 -0
- package/dist/components/ezp-text-button.d.ts +11 -0
- package/dist/components/ezp-text-button.js +1 -0
- package/dist/components/ezp-text-button2.js +1 -0
- package/dist/components/ezp-upload.d.ts +11 -0
- package/dist/components/ezp-upload.js +1 -0
- package/dist/components/ezp-upload2.js +1 -0
- package/dist/components/ezp-user-menu.d.ts +11 -0
- package/dist/components/ezp-user-menu.js +1 -0
- package/dist/components/ezp-user-menu2.js +1 -0
- package/dist/components/i18next.js +1 -0
- package/dist/components/index.d.ts +35 -0
- package/dist/components/index.js +1 -0
- package/dist/directives/angular-component-lib/utils.ts +33 -14
- package/dist/directives/proxies.ts +231 -111
- package/dist/esm/app-globals-CpP67t2l.js +14 -0
- package/dist/esm/ezeep.js +41 -12
- package/dist/esm/ezp-auth_15.entry.js +27996 -26049
- package/dist/esm/index-BTfWEHH9.js +4677 -0
- package/dist/esm/loader.js +7 -15
- package/dist/esm-es5/app-globals-CpP67t2l.js +1 -0
- package/dist/esm-es5/ezeep.js +1 -1
- package/dist/esm-es5/ezp-auth_15.entry.js +2 -2
- package/dist/esm-es5/index-BTfWEHH9.js +13 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/ezeep/ezeep.esm.js +1 -1
- package/dist/ezeep/ezeep.js +16 -19
- package/dist/ezeep/p-2177b8f4.system.entry.js +7 -0
- package/dist/ezeep/p-5ok9OZMg.system.js +1 -0
- package/dist/ezeep/p-BTfWEHH9.js +2 -0
- package/dist/ezeep/p-CfQRcOh8.system.js +1 -0
- package/dist/ezeep/p-CpP67t2l.js +1 -0
- package/dist/ezeep/p-DhXN1yGM.system.js +13 -0
- package/dist/ezeep/p-de8f6583.entry.js +1 -0
- package/dist/ezeep/types/shared/types.d.ts +1 -0
- package/dist/types/components/ezp-auth/ezp-auth.d.ts +20 -20
- package/dist/types/components/ezp-backdrop/ezp-backdrop.d.ts +7 -7
- package/dist/types/components/ezp-dialog/ezp-dialog.d.ts +38 -38
- package/dist/types/components/ezp-icon/ezp-icon.d.ts +24 -24
- package/dist/types/components/ezp-icon-button/ezp-icon-button.d.ts +23 -23
- package/dist/types/components/ezp-input/ezp-input.d.ts +38 -38
- package/dist/types/components/ezp-label/ezp-label.d.ts +21 -21
- package/dist/types/components/ezp-printer-selection/ezp-printer-selection.d.ts +116 -116
- package/dist/types/components/ezp-printing/ezp-printing.d.ts +83 -83
- package/dist/types/components/ezp-select/ezp-select.d.ts +80 -80
- package/dist/types/components/ezp-status/ezp-status.d.ts +40 -40
- package/dist/types/components/ezp-stepper/ezp-stepper.d.ts +65 -65
- package/dist/types/components/ezp-text-button/ezp-text-button.d.ts +25 -25
- package/dist/types/components/ezp-upload/ezp-upload.d.ts +38 -38
- package/dist/types/components/ezp-user-menu/ezp-user-menu.d.ts +43 -43
- package/dist/types/components.d.ts +493 -50
- package/dist/types/services/auth.d.ts +27 -27
- package/dist/types/services/print.d.ts +32 -32
- package/dist/types/services/user.d.ts +4 -4
- package/dist/types/shared/types.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +335 -40
- package/dist/types/utils/utils.d.ts +6 -6
- package/loader/cdn.js +1 -2
- package/loader/index.cjs.js +1 -2
- package/loader/index.d.ts +13 -1
- package/loader/index.es2017.js +1 -2
- package/loader/index.js +1 -2
- package/package.json +10 -10
- package/www/build/ezeep.esm.js +1 -1
- package/www/build/ezeep.js +16 -19
- package/www/build/p-2177b8f4.system.entry.js +7 -0
- package/www/build/p-256870db.js +1 -0
- package/www/build/p-5ok9OZMg.system.js +1 -0
- package/www/build/p-BTfWEHH9.js +2 -0
- package/www/build/p-CfQRcOh8.system.js +1 -0
- package/www/build/p-CpP67t2l.js +1 -0
- package/www/build/p-DhXN1yGM.system.js +13 -0
- package/www/build/p-de8f6583.entry.js +1 -0
- package/www/index.html +1 -1
- package/dist/cjs/app-globals-53afb196.js +0 -15
- package/dist/cjs/index-1f953145.js +0 -1482
- package/dist/custom-elements/index.d.ts +0 -129
- package/dist/custom-elements/index.js +0 -34555
- package/dist/esm/app-globals-28960cbc.js +0 -13
- package/dist/esm/index-3ac1b749.js +0 -1450
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm-es5/app-globals-28960cbc.js +0 -1
- package/dist/esm-es5/index-3ac1b749.js +0 -1
- package/dist/ezeep/p-0cc2026d.system.js +0 -1
- package/dist/ezeep/p-312f40d7.js +0 -1
- package/dist/ezeep/p-4a7d6c3a.system.entry.js +0 -7
- package/dist/ezeep/p-84bd195a.system.js +0 -1
- package/dist/ezeep/p-a4d37138.js +0 -1
- package/dist/ezeep/p-ded04529.system.js +0 -1
- package/dist/ezeep/p-e20ee337.entry.js +0 -1
- package/loader/package.json +0 -10
- package/www/build/p-0cc2026d.system.js +0 -1
- package/www/build/p-312f40d7.js +0 -1
- package/www/build/p-4a7d6c3a.system.entry.js +0 -7
- package/www/build/p-84bd195a.system.js +0 -1
- package/www/build/p-a4d37138.js +0 -1
- package/www/build/p-ded04529.system.js +0 -1
- package/www/build/p-e20ee337.entry.js +0 -1
- /package/dist/ezeep/{p-50ea2036.system.js → p-YWpyar7R.system.js} +0 -0
- /package/www/build/{p-50ea2036.system.js → p-YWpyar7R.system.js} +0 -0
|
@@ -1,257 +1,270 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
2
|
export class EzpStepper {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
constructor() {
|
|
4
|
+
/** Description... */
|
|
5
|
+
this.label = 'Label';
|
|
6
|
+
/** Description... */
|
|
7
|
+
this.min = 1;
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* States
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
/** Description... */
|
|
14
|
+
this.canDecrease = true;
|
|
15
|
+
/** Description... */
|
|
16
|
+
this.canIncrease = true;
|
|
17
|
+
/** Description... */
|
|
18
|
+
this.focused = false;
|
|
19
|
+
/** Description... */
|
|
20
|
+
this.value = 1;
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* Private methods
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
this.handleDecrease = () => {
|
|
27
|
+
const newValue = this.value - 1;
|
|
28
|
+
// Only decrease if within safe range and above minimum
|
|
29
|
+
if (newValue >= Number.MIN_SAFE_INTEGER && (this.min === undefined || newValue >= this.min)) {
|
|
30
|
+
this.value = newValue;
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
this.handleIncrease = () => {
|
|
34
|
+
const newValue = this.value + 1;
|
|
35
|
+
const effectiveMax = this.max !== undefined ? Math.min(this.max, Number.MAX_SAFE_INTEGER) : Number.MAX_SAFE_INTEGER;
|
|
36
|
+
// Only increase if within safe range and below maximum
|
|
37
|
+
if (newValue <= Number.MAX_SAFE_INTEGER && newValue <= effectiveMax) {
|
|
38
|
+
this.value = newValue;
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
this.handleInput = () => {
|
|
42
|
+
if (!this.input)
|
|
43
|
+
return;
|
|
44
|
+
let inputString = this.input.value.trim();
|
|
45
|
+
// If the input is empty, set the value to the minimum
|
|
46
|
+
if (inputString === '') {
|
|
47
|
+
this.value = this.min;
|
|
48
|
+
this.input.value = this.value.toString();
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
// Remove all non-digit characters, keep only numbers
|
|
52
|
+
const cleanedInput = inputString.replace(/\D/g, '');
|
|
53
|
+
// If nothing remains after cleaning, revert to the last valid value
|
|
54
|
+
if (cleanedInput === '') {
|
|
55
|
+
this.input.value = this.value.toString();
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
// Limit input length to prevent precision loss (MAX_SAFE_INTEGER has 16 digits)
|
|
59
|
+
const maxDigits = Number.MAX_SAFE_INTEGER.toString().length;
|
|
60
|
+
const truncatedInput = cleanedInput.slice(0, maxDigits);
|
|
61
|
+
let inputValue = Number(truncatedInput);
|
|
62
|
+
// Safety check: ensure the number is within safe integer range
|
|
63
|
+
if (inputValue > Number.MAX_SAFE_INTEGER) {
|
|
64
|
+
inputValue = Number.MAX_SAFE_INTEGER;
|
|
65
|
+
}
|
|
66
|
+
// Ensure the value is between min and max
|
|
67
|
+
if (this.min !== undefined && inputValue < this.min)
|
|
68
|
+
inputValue = this.min;
|
|
69
|
+
const effectiveMax = this.max !== undefined ? Math.min(this.max, Number.MAX_SAFE_INTEGER) : Number.MAX_SAFE_INTEGER;
|
|
70
|
+
if (inputValue > effectiveMax)
|
|
71
|
+
inputValue = effectiveMax;
|
|
72
|
+
// Update component state and input field
|
|
73
|
+
this.value = inputValue;
|
|
74
|
+
this.input.value = inputValue.toString();
|
|
75
|
+
};
|
|
76
|
+
this.setFocus = () => {
|
|
77
|
+
this.input.focus();
|
|
78
|
+
};
|
|
79
|
+
this.handleBlur = () => {
|
|
80
|
+
this.focused = false;
|
|
81
|
+
};
|
|
82
|
+
this.handleFocus = () => {
|
|
83
|
+
this.focused = true;
|
|
84
|
+
};
|
|
85
|
+
this.handleKeyDown = (event) => {
|
|
86
|
+
// If key is allowed or a Ctrl/Cmd combination, do nothing
|
|
87
|
+
if (EzpStepper.ALLOWED_KEYS.includes(event.key) ||
|
|
88
|
+
((event.ctrlKey || event.metaKey) && EzpStepper.CTRL_CMD_KEYS.includes(event.key.toLowerCase()))) {
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
// If the key is not a digit, prevent default behavior (block input)
|
|
92
|
+
const isDigit = /^\d$/.test(event.key);
|
|
93
|
+
if (!isDigit) {
|
|
94
|
+
event.preventDefault();
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
}
|
|
8
98
|
/**
|
|
9
99
|
*
|
|
10
|
-
*
|
|
100
|
+
* Watchers
|
|
11
101
|
*
|
|
12
102
|
*/
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
|
|
103
|
+
watchValue() {
|
|
104
|
+
const effectiveMax = this.max !== undefined ? Math.min(this.max, Number.MAX_SAFE_INTEGER) : Number.MAX_SAFE_INTEGER;
|
|
105
|
+
this.canIncrease = this.value < effectiveMax;
|
|
106
|
+
this.canDecrease = this.min !== undefined ? this.value > this.min : true;
|
|
107
|
+
this.stepperChanged.emit(this.value);
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* Lifecycle methods
|
|
112
|
+
*
|
|
113
|
+
*/
|
|
114
|
+
componentWillLoad() {
|
|
115
|
+
this.watchValue();
|
|
116
|
+
}
|
|
21
117
|
/**
|
|
22
118
|
*
|
|
23
|
-
*
|
|
119
|
+
* Render method
|
|
24
120
|
*
|
|
25
121
|
*/
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
},
|
|
162
|
-
"attribute": "icon",
|
|
163
|
-
"reflect": false
|
|
164
|
-
},
|
|
165
|
-
"label": {
|
|
166
|
-
"type": "string",
|
|
167
|
-
"mutable": false,
|
|
168
|
-
"complexType": {
|
|
169
|
-
"original": "string",
|
|
170
|
-
"resolved": "string",
|
|
171
|
-
"references": {}
|
|
172
|
-
},
|
|
173
|
-
"required": false,
|
|
174
|
-
"optional": false,
|
|
175
|
-
"docs": {
|
|
176
|
-
"tags": [],
|
|
177
|
-
"text": "Description..."
|
|
178
|
-
},
|
|
179
|
-
"attribute": "label",
|
|
180
|
-
"reflect": false,
|
|
181
|
-
"defaultValue": "'Label'"
|
|
182
|
-
},
|
|
183
|
-
"max": {
|
|
184
|
-
"type": "number",
|
|
185
|
-
"mutable": false,
|
|
186
|
-
"complexType": {
|
|
187
|
-
"original": "number",
|
|
188
|
-
"resolved": "number",
|
|
189
|
-
"references": {}
|
|
190
|
-
},
|
|
191
|
-
"required": false,
|
|
192
|
-
"optional": false,
|
|
193
|
-
"docs": {
|
|
194
|
-
"tags": [],
|
|
195
|
-
"text": "Description..."
|
|
196
|
-
},
|
|
197
|
-
"attribute": "max",
|
|
198
|
-
"reflect": false
|
|
199
|
-
},
|
|
200
|
-
"min": {
|
|
201
|
-
"type": "number",
|
|
202
|
-
"mutable": false,
|
|
203
|
-
"complexType": {
|
|
204
|
-
"original": "number",
|
|
205
|
-
"resolved": "number",
|
|
206
|
-
"references": {}
|
|
207
|
-
},
|
|
208
|
-
"required": false,
|
|
209
|
-
"optional": false,
|
|
210
|
-
"docs": {
|
|
211
|
-
"tags": [],
|
|
212
|
-
"text": "Description..."
|
|
213
|
-
},
|
|
214
|
-
"attribute": "min",
|
|
215
|
-
"reflect": false,
|
|
216
|
-
"defaultValue": "1"
|
|
122
|
+
render() {
|
|
123
|
+
return (h(Host, { key: 'c38bfbfc2ec2a7151bb04240c2eee1b8ad3ec613', class: `${this.focused ? 'focused' : ''} ${this.icon ? 'has-icon' : ''}` }, h("div", { key: '0f4546db4e6004561114c6073672160c4cebe01b', id: "toggle", onClick: this.setFocus }), this.icon ? h("ezp-icon", { id: "icon", name: this.icon }) : null, h("ezp-label", { key: '74bd616d5336895a33b54668c3641e23267427d8', id: "label", noWrap: true, text: this.label }), h("input", { key: '612cbac350e67e5915e3bd2b68beef61d87d65f4', 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(), onInput: this.handleInput, onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur }), h("div", { key: '7b20d44d0fef4c6d206acba4ba7a5b545cefe437', class: "buttons" }, h("button", { key: 'b71ead9b92eef6e56638073d5e9e39e0f3460618', class: "button", disabled: !this.canDecrease, onClick: this.handleDecrease }, h("ezp-icon", { key: 'd2fc6589d1044644da2c40f85ad67f5a4c1aecdd', name: "minus" })), h("button", { key: 'ea7d7c6f9064c03d3a8ea2434fe26dd7f964b4d4', class: "button", disabled: !this.canIncrease, onClick: this.handleIncrease }, h("ezp-icon", { key: '5c4d5c89e329a7af4bf7cc5afd0b4b6f97ff4b3b', name: "plus" })))));
|
|
124
|
+
}
|
|
125
|
+
static get is() { return "ezp-stepper"; }
|
|
126
|
+
static get encapsulation() { return "shadow"; }
|
|
127
|
+
static get originalStyleUrls() {
|
|
128
|
+
return {
|
|
129
|
+
"$": ["ezp-stepper.scss"]
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
static get styleUrls() {
|
|
133
|
+
return {
|
|
134
|
+
"$": ["ezp-stepper.css"]
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
static get properties() {
|
|
138
|
+
return {
|
|
139
|
+
"icon": {
|
|
140
|
+
"type": "string",
|
|
141
|
+
"mutable": false,
|
|
142
|
+
"complexType": {
|
|
143
|
+
"original": "IconNameTypes",
|
|
144
|
+
"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\"",
|
|
145
|
+
"references": {
|
|
146
|
+
"IconNameTypes": {
|
|
147
|
+
"location": "import",
|
|
148
|
+
"path": "../../shared/types",
|
|
149
|
+
"id": "src/shared/types.d.ts::IconNameTypes",
|
|
150
|
+
"referenceLocation": "IconNameTypes"
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"required": false,
|
|
155
|
+
"optional": false,
|
|
156
|
+
"docs": {
|
|
157
|
+
"tags": [],
|
|
158
|
+
"text": "Description..."
|
|
159
|
+
},
|
|
160
|
+
"getter": false,
|
|
161
|
+
"setter": false,
|
|
162
|
+
"reflect": false,
|
|
163
|
+
"attribute": "icon"
|
|
164
|
+
},
|
|
165
|
+
"label": {
|
|
166
|
+
"type": "string",
|
|
167
|
+
"mutable": false,
|
|
168
|
+
"complexType": {
|
|
169
|
+
"original": "string",
|
|
170
|
+
"resolved": "string",
|
|
171
|
+
"references": {}
|
|
172
|
+
},
|
|
173
|
+
"required": false,
|
|
174
|
+
"optional": false,
|
|
175
|
+
"docs": {
|
|
176
|
+
"tags": [],
|
|
177
|
+
"text": "Description..."
|
|
178
|
+
},
|
|
179
|
+
"getter": false,
|
|
180
|
+
"setter": false,
|
|
181
|
+
"reflect": false,
|
|
182
|
+
"attribute": "label",
|
|
183
|
+
"defaultValue": "'Label'"
|
|
184
|
+
},
|
|
185
|
+
"max": {
|
|
186
|
+
"type": "number",
|
|
187
|
+
"mutable": false,
|
|
188
|
+
"complexType": {
|
|
189
|
+
"original": "number",
|
|
190
|
+
"resolved": "number",
|
|
191
|
+
"references": {}
|
|
192
|
+
},
|
|
193
|
+
"required": false,
|
|
194
|
+
"optional": false,
|
|
195
|
+
"docs": {
|
|
196
|
+
"tags": [],
|
|
197
|
+
"text": "Description..."
|
|
198
|
+
},
|
|
199
|
+
"getter": false,
|
|
200
|
+
"setter": false,
|
|
201
|
+
"reflect": false,
|
|
202
|
+
"attribute": "max"
|
|
203
|
+
},
|
|
204
|
+
"min": {
|
|
205
|
+
"type": "number",
|
|
206
|
+
"mutable": false,
|
|
207
|
+
"complexType": {
|
|
208
|
+
"original": "number",
|
|
209
|
+
"resolved": "number",
|
|
210
|
+
"references": {}
|
|
211
|
+
},
|
|
212
|
+
"required": false,
|
|
213
|
+
"optional": false,
|
|
214
|
+
"docs": {
|
|
215
|
+
"tags": [],
|
|
216
|
+
"text": "Description..."
|
|
217
|
+
},
|
|
218
|
+
"getter": false,
|
|
219
|
+
"setter": false,
|
|
220
|
+
"reflect": false,
|
|
221
|
+
"attribute": "min",
|
|
222
|
+
"defaultValue": "1"
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
static get states() {
|
|
227
|
+
return {
|
|
228
|
+
"canDecrease": {},
|
|
229
|
+
"canIncrease": {},
|
|
230
|
+
"focused": {},
|
|
231
|
+
"value": {}
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
static get events() {
|
|
235
|
+
return [{
|
|
236
|
+
"method": "stepperChanged",
|
|
237
|
+
"name": "stepperChanged",
|
|
238
|
+
"bubbles": true,
|
|
239
|
+
"cancelable": true,
|
|
240
|
+
"composed": true,
|
|
241
|
+
"docs": {
|
|
242
|
+
"tags": [],
|
|
243
|
+
"text": "\nEvents"
|
|
244
|
+
},
|
|
245
|
+
"complexType": {
|
|
246
|
+
"original": "any",
|
|
247
|
+
"resolved": "any",
|
|
248
|
+
"references": {}
|
|
249
|
+
}
|
|
250
|
+
}];
|
|
251
|
+
}
|
|
252
|
+
static get watchers() {
|
|
253
|
+
return [{
|
|
254
|
+
"propName": "value",
|
|
255
|
+
"methodName": "watchValue"
|
|
256
|
+
}];
|
|
217
257
|
}
|
|
218
|
-
}; }
|
|
219
|
-
static get states() { return {
|
|
220
|
-
"canDecrease": {},
|
|
221
|
-
"canIncrease": {},
|
|
222
|
-
"focused": {},
|
|
223
|
-
"value": {}
|
|
224
|
-
}; }
|
|
225
|
-
static get events() { return [{
|
|
226
|
-
"method": "stepperChanged",
|
|
227
|
-
"name": "stepperChanged",
|
|
228
|
-
"bubbles": true,
|
|
229
|
-
"cancelable": true,
|
|
230
|
-
"composed": true,
|
|
231
|
-
"docs": {
|
|
232
|
-
"tags": [],
|
|
233
|
-
"text": "\nEvents"
|
|
234
|
-
},
|
|
235
|
-
"complexType": {
|
|
236
|
-
"original": "any",
|
|
237
|
-
"resolved": "any",
|
|
238
|
-
"references": {}
|
|
239
|
-
}
|
|
240
|
-
}]; }
|
|
241
|
-
static get watchers() { return [{
|
|
242
|
-
"propName": "value",
|
|
243
|
-
"methodName": "watchValue"
|
|
244
|
-
}]; }
|
|
245
258
|
}
|
|
246
259
|
EzpStepper.ALLOWED_KEYS = [
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
260
|
+
'Backspace',
|
|
261
|
+
'Delete',
|
|
262
|
+
'Tab',
|
|
263
|
+
'Escape',
|
|
264
|
+
'Enter',
|
|
265
|
+
'ArrowLeft',
|
|
266
|
+
'ArrowUp',
|
|
267
|
+
'ArrowRight',
|
|
268
|
+
'ArrowDown',
|
|
256
269
|
];
|
|
257
270
|
EzpStepper.CTRL_CMD_KEYS = ['a', 'c', 'v', 'x'];
|