@ezeep/ezeep-js 1.0.221 → 1.0.225
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 → ezp-auth_15.cjs.entry.js} +96 -7
- package/dist/cjs/{index-0b159f85.js → index-1f953145.js} +11 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/ezp-dialog/ezp-dialog.js +1 -1
- package/dist/collection/components/ezp-icon/assets/glyph-height.svg +3 -0
- package/dist/collection/components/ezp-icon/assets/glyph-width.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 +115 -0
- package/dist/collection/components/ezp-input/ezp-input.js +190 -0
- package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.js +35 -4
- package/dist/collection/components/ezp-printing/ezp-printing.css +4 -0
- package/dist/collection/components/ezp-select/ezp-select.js +1 -1
- package/dist/collection/components/ezp-status/ezp-status.js +1 -1
- package/dist/collection/components/ezp-stepper/ezp-stepper.js +1 -1
- package/dist/collection/utils/utils.js +12 -0
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +100 -8
- package/dist/directives/proxies.ts +24 -0
- package/dist/esm/ezeep.js +2 -2
- package/dist/esm/{ezp-auth_14.entry.js → ezp-auth_15.entry.js} +96 -8
- package/dist/esm/{index-13f75d28.js → index-3ac1b749.js} +11 -0
- package/dist/esm/loader.js +2 -2
- package/dist/esm-es5/ezeep.js +1 -1
- package/dist/esm-es5/{ezp-auth_14.entry.js → ezp-auth_15.entry.js} +2 -2
- package/dist/esm-es5/index-3ac1b749.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/ezeep/assets/glyph-height.svg +3 -0
- package/dist/ezeep/assets/glyph-width.svg +3 -0
- package/dist/ezeep/ezeep.esm.js +1 -1
- package/dist/ezeep/ezeep.js +1 -1
- package/dist/ezeep/p-0cc2026d.system.js +1 -0
- package/dist/ezeep/{p-17f25f95.js → p-312f40d7.js} +1 -1
- package/dist/ezeep/p-3139f35d.entry.js +15 -0
- package/dist/ezeep/p-84bd195a.system.js +1 -0
- package/{www/build/p-b5d5f7b5.system.entry.js → dist/ezeep/p-a124be11.system.entry.js} +3 -3
- package/dist/types/components/ezp-input/ezp-input.d.ts +40 -0
- package/dist/types/components/ezp-printer-selection/ezp-printer-selection.d.ts +3 -0
- package/dist/types/components.d.ts +65 -0
- package/dist/types/shared/types.d.ts +9 -5
- package/dist/types/utils/utils.d.ts +3 -0
- package/package.json +1 -1
- package/readme.md +1 -1
- package/www/build/assets/glyph-height.svg +3 -0
- package/www/build/assets/glyph-width.svg +3 -0
- package/www/build/ezeep.esm.js +1 -1
- package/www/build/ezeep.js +1 -1
- package/www/build/p-0cc2026d.system.js +1 -0
- package/www/build/{p-17f25f95.js → p-312f40d7.js} +1 -1
- package/www/build/p-3139f35d.entry.js +15 -0
- package/www/build/p-84bd195a.system.js +1 -0
- package/{dist/ezeep/p-b5d5f7b5.system.entry.js → www/build/p-a124be11.system.entry.js} +3 -3
- package/www/data/locales/de.json +3 -1
- package/www/data/locales/en.json +3 -1
- package/dist/esm-es5/index-13f75d28.js +0 -1
- package/dist/ezeep/p-16c7584d.system.js +0 -1
- package/dist/ezeep/p-9c3f24c6.entry.js +0 -15
- package/dist/ezeep/p-c04b764e.system.js +0 -1
- package/www/build/p-16c7584d.system.js +0 -1
- package/www/build/p-9c3f24c6.entry.js +0 -15
- package/www/build/p-c04b764e.system.js +0 -1
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { Component, Host, Prop, h, State, Event } from '@stencil/core';
|
|
2
|
+
export class EzpInput {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.timeout = null;
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* Properties
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
/** Description... */
|
|
11
|
+
this.label = 'Label';
|
|
12
|
+
/** Description... */
|
|
13
|
+
this.type = 'text';
|
|
14
|
+
/** Description... */
|
|
15
|
+
this.icon = 'color';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* States
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
this.focused = false;
|
|
22
|
+
this.setFocus = () => {
|
|
23
|
+
this.input.focus();
|
|
24
|
+
};
|
|
25
|
+
this.handleBlur = () => {
|
|
26
|
+
this.focused = false;
|
|
27
|
+
};
|
|
28
|
+
this.handleFocus = () => {
|
|
29
|
+
this.focused = true;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
handleChange(event) {
|
|
33
|
+
if (this.timeout) {
|
|
34
|
+
clearTimeout(this.timeout);
|
|
35
|
+
}
|
|
36
|
+
this.value = event.target.value ? event.target.value : 0;
|
|
37
|
+
this.timeout = setTimeout(() => {
|
|
38
|
+
this.inputValueChanged.emit({
|
|
39
|
+
type: this.eventType.toLowerCase(),
|
|
40
|
+
value: this.value,
|
|
41
|
+
});
|
|
42
|
+
}, 500);
|
|
43
|
+
}
|
|
44
|
+
render() {
|
|
45
|
+
return (h(Host, { class: { focused: this.focused }, onClick: this.setFocus },
|
|
46
|
+
h("ezp-icon", { id: "icon", name: this.icon }),
|
|
47
|
+
h("ezp-label", { id: "label", noWrap: true, level: "secondary", text: this.label }),
|
|
48
|
+
h("input", { id: "input", type: this.type, value: this.value, onInput: (event) => this.handleChange(event), ref: (input) => (this.input = input), onFocus: this.handleFocus, onBlur: this.handleBlur }),
|
|
49
|
+
this.suffix ? h("ezp-label", { id: "suffix", level: "secondary", text: this.suffix }) : null));
|
|
50
|
+
}
|
|
51
|
+
static get is() { return "ezp-input"; }
|
|
52
|
+
static get encapsulation() { return "shadow"; }
|
|
53
|
+
static get originalStyleUrls() { return {
|
|
54
|
+
"$": ["ezp-input.scss"]
|
|
55
|
+
}; }
|
|
56
|
+
static get styleUrls() { return {
|
|
57
|
+
"$": ["ezp-input.css"]
|
|
58
|
+
}; }
|
|
59
|
+
static get properties() { return {
|
|
60
|
+
"label": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"mutable": false,
|
|
63
|
+
"complexType": {
|
|
64
|
+
"original": "string",
|
|
65
|
+
"resolved": "string",
|
|
66
|
+
"references": {}
|
|
67
|
+
},
|
|
68
|
+
"required": false,
|
|
69
|
+
"optional": false,
|
|
70
|
+
"docs": {
|
|
71
|
+
"tags": [],
|
|
72
|
+
"text": "Description..."
|
|
73
|
+
},
|
|
74
|
+
"attribute": "label",
|
|
75
|
+
"reflect": false,
|
|
76
|
+
"defaultValue": "'Label'"
|
|
77
|
+
},
|
|
78
|
+
"value": {
|
|
79
|
+
"type": "any",
|
|
80
|
+
"mutable": true,
|
|
81
|
+
"complexType": {
|
|
82
|
+
"original": "number | string",
|
|
83
|
+
"resolved": "number | string",
|
|
84
|
+
"references": {}
|
|
85
|
+
},
|
|
86
|
+
"required": false,
|
|
87
|
+
"optional": false,
|
|
88
|
+
"docs": {
|
|
89
|
+
"tags": [],
|
|
90
|
+
"text": "Description..."
|
|
91
|
+
},
|
|
92
|
+
"attribute": "value",
|
|
93
|
+
"reflect": false
|
|
94
|
+
},
|
|
95
|
+
"type": {
|
|
96
|
+
"type": "string",
|
|
97
|
+
"mutable": false,
|
|
98
|
+
"complexType": {
|
|
99
|
+
"original": "string",
|
|
100
|
+
"resolved": "string",
|
|
101
|
+
"references": {}
|
|
102
|
+
},
|
|
103
|
+
"required": false,
|
|
104
|
+
"optional": false,
|
|
105
|
+
"docs": {
|
|
106
|
+
"tags": [],
|
|
107
|
+
"text": "Description..."
|
|
108
|
+
},
|
|
109
|
+
"attribute": "type",
|
|
110
|
+
"reflect": false,
|
|
111
|
+
"defaultValue": "'text'"
|
|
112
|
+
},
|
|
113
|
+
"icon": {
|
|
114
|
+
"type": "string",
|
|
115
|
+
"mutable": false,
|
|
116
|
+
"complexType": {
|
|
117
|
+
"original": "IconNameTypes",
|
|
118
|
+
"resolved": "\"account\" | \"checkmark-alt\" | \"checkmark\" | \"close\" | \"color\" | \"copies\" | \"dark\" | \"drag-drop\" | \"duplex\" | \"exclamation-mark\" | \"expand\" | \"height\" | \"help\" | \"light\" | \"logo\" | \"logout\" | \"menu\" | \"minus\" | \"orientation\" | \"plus\" | \"printer\" | \"quality\" | \"question-mark\" | \"size\" | \"system\" | \"width\"",
|
|
119
|
+
"references": {
|
|
120
|
+
"IconNameTypes": {
|
|
121
|
+
"location": "import",
|
|
122
|
+
"path": "./../../shared/types"
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"required": false,
|
|
127
|
+
"optional": false,
|
|
128
|
+
"docs": {
|
|
129
|
+
"tags": [],
|
|
130
|
+
"text": "Description..."
|
|
131
|
+
},
|
|
132
|
+
"attribute": "icon",
|
|
133
|
+
"reflect": false,
|
|
134
|
+
"defaultValue": "'color'"
|
|
135
|
+
},
|
|
136
|
+
"suffix": {
|
|
137
|
+
"type": "string",
|
|
138
|
+
"mutable": false,
|
|
139
|
+
"complexType": {
|
|
140
|
+
"original": "string",
|
|
141
|
+
"resolved": "string",
|
|
142
|
+
"references": {}
|
|
143
|
+
},
|
|
144
|
+
"required": false,
|
|
145
|
+
"optional": false,
|
|
146
|
+
"docs": {
|
|
147
|
+
"tags": [],
|
|
148
|
+
"text": "Description..."
|
|
149
|
+
},
|
|
150
|
+
"attribute": "suffix",
|
|
151
|
+
"reflect": true
|
|
152
|
+
},
|
|
153
|
+
"eventType": {
|
|
154
|
+
"type": "string",
|
|
155
|
+
"mutable": false,
|
|
156
|
+
"complexType": {
|
|
157
|
+
"original": "string",
|
|
158
|
+
"resolved": "string",
|
|
159
|
+
"references": {}
|
|
160
|
+
},
|
|
161
|
+
"required": false,
|
|
162
|
+
"optional": false,
|
|
163
|
+
"docs": {
|
|
164
|
+
"tags": [],
|
|
165
|
+
"text": "Description..."
|
|
166
|
+
},
|
|
167
|
+
"attribute": "event-type",
|
|
168
|
+
"reflect": false
|
|
169
|
+
}
|
|
170
|
+
}; }
|
|
171
|
+
static get states() { return {
|
|
172
|
+
"focused": {}
|
|
173
|
+
}; }
|
|
174
|
+
static get events() { return [{
|
|
175
|
+
"method": "inputValueChanged",
|
|
176
|
+
"name": "inputValueChanged",
|
|
177
|
+
"bubbles": true,
|
|
178
|
+
"cancelable": true,
|
|
179
|
+
"composed": true,
|
|
180
|
+
"docs": {
|
|
181
|
+
"tags": [],
|
|
182
|
+
"text": "\nEvents"
|
|
183
|
+
},
|
|
184
|
+
"complexType": {
|
|
185
|
+
"original": "any",
|
|
186
|
+
"resolved": "any",
|
|
187
|
+
"references": {}
|
|
188
|
+
}
|
|
189
|
+
}]; }
|
|
190
|
+
}
|
|
@@ -3,7 +3,8 @@ import i18next from 'i18next';
|
|
|
3
3
|
import authStore from '../../services/auth';
|
|
4
4
|
import printStore, { EzpPrintService } from '../../services/print';
|
|
5
5
|
import userStore, { EzpUserService } from '../../services/user';
|
|
6
|
-
import { poll, removeEmptyStrings } from '../../utils/utils';
|
|
6
|
+
import { managePaperDimensions, poll, removeEmptyStrings } from '../../utils/utils';
|
|
7
|
+
import { PAPER_ID } from '../../utils/utils';
|
|
7
8
|
export class EzpPrinterSelection {
|
|
8
9
|
constructor() {
|
|
9
10
|
this.sasUri = '';
|
|
@@ -56,6 +57,8 @@ export class EzpPrinterSelection {
|
|
|
56
57
|
orientation: 1,
|
|
57
58
|
copies: '',
|
|
58
59
|
resolution: 0,
|
|
60
|
+
paperlength: 0,
|
|
61
|
+
paperwidth: 0
|
|
59
62
|
};
|
|
60
63
|
/**
|
|
61
64
|
*
|
|
@@ -82,7 +85,8 @@ export class EzpPrinterSelection {
|
|
|
82
85
|
this.printProcessing = true;
|
|
83
86
|
// we have to initialse this obj with empty strings to display the select component
|
|
84
87
|
// but don't want to send any attributes with empty strings to the API
|
|
85
|
-
|
|
88
|
+
let cleanPrintProperties = removeEmptyStrings(this.selectedProperties);
|
|
89
|
+
cleanPrintProperties = managePaperDimensions(cleanPrintProperties);
|
|
86
90
|
// put it in store for further use
|
|
87
91
|
printStore.state.fileUrl = this.fileurl;
|
|
88
92
|
printStore.state.fileID = this.fileid;
|
|
@@ -156,6 +160,9 @@ export class EzpPrinterSelection {
|
|
|
156
160
|
* Listeners
|
|
157
161
|
*
|
|
158
162
|
*/
|
|
163
|
+
listenInputValueChanged(event) {
|
|
164
|
+
this.setSelectedProperties(event.detail);
|
|
165
|
+
}
|
|
159
166
|
listenSelectSelection(event) {
|
|
160
167
|
this.setSelectedProperties(event.detail);
|
|
161
168
|
}
|
|
@@ -220,6 +227,10 @@ export class EzpPrinterSelection {
|
|
|
220
227
|
else {
|
|
221
228
|
this.selectedPrinter = { id: '', location: '', name: '', is_queue: false };
|
|
222
229
|
}
|
|
230
|
+
this.setPaperid();
|
|
231
|
+
}
|
|
232
|
+
setPaperid() {
|
|
233
|
+
this.paperid = this.selectedProperties.paperid;
|
|
223
234
|
}
|
|
224
235
|
getUserInfo() {
|
|
225
236
|
const userService = new EzpUserService();
|
|
@@ -253,13 +264,20 @@ export class EzpPrinterSelection {
|
|
|
253
264
|
this.selectedProperties.paper = eventDetails.title;
|
|
254
265
|
this.selectedProperties.paperid = eventDetails.id;
|
|
255
266
|
// console.log('paper selected:')
|
|
256
|
-
// console.log(this.selectedProperties.paper)
|
|
257
267
|
break;
|
|
258
268
|
case 'quality':
|
|
259
269
|
this.selectedProperties.resolution = eventDetails.title;
|
|
260
270
|
// console.log('quality selected:')
|
|
261
271
|
// console.log(this.selectedProperties.resolution)
|
|
262
272
|
break;
|
|
273
|
+
case 'length':
|
|
274
|
+
this.selectedProperties.paperlength = eventDetails.value;
|
|
275
|
+
// console.log(this.selectedProperties)
|
|
276
|
+
break;
|
|
277
|
+
case 'width':
|
|
278
|
+
this.selectedProperties.paperwidth = eventDetails.value;
|
|
279
|
+
// console.log(this.selectedProperties)
|
|
280
|
+
break;
|
|
263
281
|
case 'duplex':
|
|
264
282
|
if (eventDetails.title === 'None') {
|
|
265
283
|
this.selectedProperties.duplex = false;
|
|
@@ -274,6 +292,8 @@ export class EzpPrinterSelection {
|
|
|
274
292
|
default:
|
|
275
293
|
break;
|
|
276
294
|
}
|
|
295
|
+
// setting paper id here to updated the prop for input.
|
|
296
|
+
this.setPaperid();
|
|
277
297
|
}
|
|
278
298
|
async handleFiles(file, printPorperties) {
|
|
279
299
|
this.preparingUpload = true;
|
|
@@ -349,6 +369,7 @@ export class EzpPrinterSelection {
|
|
|
349
369
|
this.selectedProperties.paper = this.selectedPrinterConfig.PaperFormats[0].Name;
|
|
350
370
|
this.selectedProperties.paperid = this.selectedPrinterConfig.PaperFormats[0].Id;
|
|
351
371
|
}
|
|
372
|
+
this.setPaperid();
|
|
352
373
|
}
|
|
353
374
|
/**
|
|
354
375
|
*
|
|
@@ -465,6 +486,9 @@ export class EzpPrinterSelection {
|
|
|
465
486
|
meta: `${format.XRes} x ${format.YRes}`,
|
|
466
487
|
type: 'format',
|
|
467
488
|
})), preSelected: this.selectedPrinter.id ? this.selectedProperties.paper : null, disabled: !(this.selectedPrinterConfig.PaperFormats.length > 0) }),
|
|
489
|
+
this.paperid == PAPER_ID ? (h(Fragment, null,
|
|
490
|
+
h("ezp-input", { icon: "width", suffix: "mm", value: this.selectedProperties.paperwidth, eventType: "width", type: "number", label: i18next.t('printer_selection.width') }),
|
|
491
|
+
h("ezp-input", { icon: "height", suffix: "mm", value: this.selectedProperties.paperlength, eventType: "length", type: "number", label: i18next.t('printer_selection.length') }))) : null,
|
|
468
492
|
h("ezp-select", { label: i18next.t('printer_selection.orientation'), icon: "orientation", placeholder: i18next.t('printer_selection.select_orientation'), toggleFlow: "horizontal", options: this.selectedPrinterConfig.OrientationsSupported.map((orientation, index) => ({
|
|
469
493
|
id: index + 1,
|
|
470
494
|
title: i18next.t(`printer_selection.orientation_${orientation}`),
|
|
@@ -683,7 +707,8 @@ export class EzpPrinterSelection {
|
|
|
683
707
|
"selectedPrinter": {},
|
|
684
708
|
"printerConfig": {},
|
|
685
709
|
"selectedPrinterConfig": {},
|
|
686
|
-
"selectedProperties": {}
|
|
710
|
+
"selectedProperties": {},
|
|
711
|
+
"paperid": {}
|
|
687
712
|
}; }
|
|
688
713
|
static get events() { return [{
|
|
689
714
|
"method": "printCancel",
|
|
@@ -744,6 +769,12 @@ export class EzpPrinterSelection {
|
|
|
744
769
|
}
|
|
745
770
|
}]; }
|
|
746
771
|
static get listeners() { return [{
|
|
772
|
+
"name": "inputValueChanged",
|
|
773
|
+
"method": "listenInputValueChanged",
|
|
774
|
+
"target": undefined,
|
|
775
|
+
"capture": false,
|
|
776
|
+
"passive": false
|
|
777
|
+
}, {
|
|
747
778
|
"name": "selectSelection",
|
|
748
779
|
"method": "listenSelectSelection",
|
|
749
780
|
"target": undefined,
|
|
@@ -202,6 +202,10 @@
|
|
|
202
202
|
--ezp-userMenu-header-boxShadowPosition: inset 0 -1px 0 0;
|
|
203
203
|
--ezp-userMenu-links-boxShadowPosition: inset 0 -1px 0 0;
|
|
204
204
|
--ezp-userMenu-theme-boxShadowPosition: inset 0 -1px 0 0;
|
|
205
|
+
--ezp-input-box-shadow-position-top: inset 0 1px 0 0;
|
|
206
|
+
--ezp-input-box-shadow-position-right: inset -1px 0 0 0;
|
|
207
|
+
--ezp-input-box-shadow-position-bottom: inset 0 -1px 0 0;
|
|
208
|
+
--ezp-input-box-shadow-position-left: inset 1px 0 0 0;
|
|
205
209
|
--ezp-accent-pink-solid: #ff4171;
|
|
206
210
|
--ezp-accent-pink-translucent: rgba(255, 65, 113, 0.26);
|
|
207
211
|
--ezp-accent-red-solid: #ff482c;
|
|
@@ -161,7 +161,7 @@ export class EzpSelect {
|
|
|
161
161
|
"mutable": false,
|
|
162
162
|
"complexType": {
|
|
163
163
|
"original": "IconNameTypes",
|
|
164
|
-
"resolved": "\"account\" | \"checkmark\" | \"close\" | \"color\" | \"copies\" | \"dark\" | \"
|
|
164
|
+
"resolved": "\"account\" | \"checkmark-alt\" | \"checkmark\" | \"close\" | \"color\" | \"copies\" | \"dark\" | \"drag-drop\" | \"duplex\" | \"exclamation-mark\" | \"expand\" | \"height\" | \"help\" | \"light\" | \"logo\" | \"logout\" | \"menu\" | \"minus\" | \"orientation\" | \"plus\" | \"printer\" | \"quality\" | \"question-mark\" | \"size\" | \"system\" | \"width\"",
|
|
165
165
|
"references": {
|
|
166
166
|
"IconNameTypes": {
|
|
167
167
|
"location": "import",
|
|
@@ -116,7 +116,7 @@ export class EzpStatus {
|
|
|
116
116
|
"mutable": false,
|
|
117
117
|
"complexType": {
|
|
118
118
|
"original": "IconNameTypes",
|
|
119
|
-
"resolved": "\"account\" | \"checkmark\" | \"close\" | \"color\" | \"copies\" | \"dark\" | \"
|
|
119
|
+
"resolved": "\"account\" | \"checkmark-alt\" | \"checkmark\" | \"close\" | \"color\" | \"copies\" | \"dark\" | \"drag-drop\" | \"duplex\" | \"exclamation-mark\" | \"expand\" | \"height\" | \"help\" | \"light\" | \"logo\" | \"logout\" | \"menu\" | \"minus\" | \"orientation\" | \"plus\" | \"printer\" | \"quality\" | \"question-mark\" | \"size\" | \"system\" | \"width\"",
|
|
120
120
|
"references": {
|
|
121
121
|
"IconNameTypes": {
|
|
122
122
|
"location": "import",
|
|
@@ -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\" | \"
|
|
94
|
+
"resolved": "\"account\" | \"checkmark-alt\" | \"checkmark\" | \"close\" | \"color\" | \"copies\" | \"dark\" | \"drag-drop\" | \"duplex\" | \"exclamation-mark\" | \"expand\" | \"height\" | \"help\" | \"light\" | \"logo\" | \"logout\" | \"menu\" | \"minus\" | \"orientation\" | \"plus\" | \"printer\" | \"quality\" | \"question-mark\" | \"size\" | \"system\" | \"width\"",
|
|
95
95
|
"references": {
|
|
96
96
|
"IconNameTypes": {
|
|
97
97
|
"location": "import",
|
|
@@ -64,3 +64,15 @@ export const removeEmptyStrings = (obj) => {
|
|
|
64
64
|
});
|
|
65
65
|
return newObj;
|
|
66
66
|
};
|
|
67
|
+
export const managePaperDimensions = (properties) => {
|
|
68
|
+
if (properties.paperid != PAPER_ID) {
|
|
69
|
+
delete properties.paperlength;
|
|
70
|
+
delete properties.paperwidth;
|
|
71
|
+
}
|
|
72
|
+
if (properties.paperlength && properties.paperwidth) {
|
|
73
|
+
properties.paperlength = +properties.paperlength * 10;
|
|
74
|
+
properties.paperwidth = +properties.paperwidth * 10;
|
|
75
|
+
}
|
|
76
|
+
return properties;
|
|
77
|
+
};
|
|
78
|
+
export const PAPER_ID = 256;
|
|
@@ -32,6 +32,12 @@ export const EzpIconButton: {
|
|
|
32
32
|
new (): EzpIconButton;
|
|
33
33
|
};
|
|
34
34
|
|
|
35
|
+
interface EzpInput extends Components.EzpInput, HTMLElement {}
|
|
36
|
+
export const EzpInput: {
|
|
37
|
+
prototype: EzpInput;
|
|
38
|
+
new (): EzpInput;
|
|
39
|
+
};
|
|
40
|
+
|
|
35
41
|
interface EzpLabel extends Components.EzpLabel, HTMLElement {}
|
|
36
42
|
export const EzpLabel: {
|
|
37
43
|
prototype: EzpLabel;
|