@things-factory/scene-form 5.0.0-alpha.9 → 5.0.0-zeta.1
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/package.json +3 -3
- package/README.md +0 -15
- package/assets/button.png +0 -0
- package/assets/fieldset.png +0 -0
- package/assets/form.png +0 -0
- package/assets/icon-embed.png +0 -0
- package/assets/icon-radio-group.png +0 -0
- package/assets/icon-video.png +0 -0
- package/assets/iframe.png +0 -0
- package/assets/img.png +0 -0
- package/assets/input-checkbox.png +0 -0
- package/assets/input-color.png +0 -0
- package/assets/input-date.png +0 -0
- package/assets/input-email.png +0 -0
- package/assets/input-file.png +0 -0
- package/assets/input-number.png +0 -0
- package/assets/input-password.png +0 -0
- package/assets/input-radio.png +0 -0
- package/assets/input-range.png +0 -0
- package/assets/input-reset.png +0 -0
- package/assets/input-search.png +0 -0
- package/assets/input-submit.png +0 -0
- package/assets/input-text.png +0 -0
- package/assets/link.png +0 -0
- package/assets/select.png +0 -0
- package/assets/textarea.png +0 -0
- package/helps/scene/component/input.ko.md +0 -59
- package/helps/scene/component/input.md +0 -59
- package/helps/scene/component/input.zh.md +0 -58
- package/src/button.js +0 -34
- package/src/checkbox.js +0 -103
- package/src/div.js +0 -27
- package/src/embed.js +0 -47
- package/src/fieldset.js +0 -48
- package/src/form.js +0 -245
- package/src/iframe.js +0 -41
- package/src/img.js +0 -41
- package/src/index.js +0 -27
- package/src/input-color.js +0 -53
- package/src/input-date.js +0 -62
- package/src/input-file.js +0 -44
- package/src/input-number.js +0 -69
- package/src/input-submit.js +0 -39
- package/src/input.js +0 -204
- package/src/layout/grid-layout.js +0 -116
- package/src/link.js +0 -75
- package/src/radio-group.js +0 -70
- package/src/radio.js +0 -102
- package/src/select.js +0 -172
- package/src/soap-client.js +0 -213
- package/src/template.js +0 -99
- package/src/textarea.js +0 -85
- package/src/video.js +0 -139
- package/templates/index.js +0 -271
- package/test/basic-test.html +0 -61
- package/test/index.html +0 -20
- package/test/soap/broker.js +0 -22
- package/test/soap/sample.wsdl +0 -94
- package/test/soap/soap-client.js +0 -13
- package/test/soap/soap-server.js +0 -51
- package/test/unit/test-form.js +0 -33
- package/test/unit/util.js +0 -22
- package/things-scene.config.js +0 -5
- package/translations/en.json +0 -15
- package/translations/ko.json +0 -16
- package/translations/ms.json +0 -14
- package/translations/zh.json +0 -15
package/templates/index.js
DELETED
|
@@ -1,271 +0,0 @@
|
|
|
1
|
-
import text from '../assets/input-text.png'
|
|
2
|
-
import password from '../assets/input-password.png'
|
|
3
|
-
import email from '../assets/input-email.png'
|
|
4
|
-
import search from '../assets/input-search.png'
|
|
5
|
-
import number from '../assets/input-number.png'
|
|
6
|
-
import color from '../assets/input-color.png'
|
|
7
|
-
import range from '../assets/input-range.png'
|
|
8
|
-
import file from '../assets/input-file.png'
|
|
9
|
-
import date from '../assets/input-date.png'
|
|
10
|
-
import radio from '../assets/input-radio.png'
|
|
11
|
-
import checkbox from '../assets/input-checkbox.png'
|
|
12
|
-
import submit from '../assets/input-submit.png'
|
|
13
|
-
import reset from '../assets/input-reset.png'
|
|
14
|
-
import button from '../assets/button.png'
|
|
15
|
-
import fieldset from '../assets/fieldset.png'
|
|
16
|
-
import iframe from '../assets/iframe.png'
|
|
17
|
-
import img from '../assets/img.png'
|
|
18
|
-
import video from '../assets/icon-video.png'
|
|
19
|
-
import embed from '../assets/icon-embed.png'
|
|
20
|
-
import link from '../assets/link.png'
|
|
21
|
-
import textarea from '../assets/textarea.png'
|
|
22
|
-
import select from '../assets/select.png'
|
|
23
|
-
import form from '../assets/form.png'
|
|
24
|
-
import soapClient from '../assets/form.png'
|
|
25
|
-
import radioGroup from '../assets/icon-radio-group.png'
|
|
26
|
-
|
|
27
|
-
const ICONS = {
|
|
28
|
-
text,
|
|
29
|
-
password,
|
|
30
|
-
email,
|
|
31
|
-
search,
|
|
32
|
-
number,
|
|
33
|
-
color,
|
|
34
|
-
range,
|
|
35
|
-
file,
|
|
36
|
-
date,
|
|
37
|
-
radio,
|
|
38
|
-
checkbox,
|
|
39
|
-
submit,
|
|
40
|
-
reset,
|
|
41
|
-
button,
|
|
42
|
-
fieldset,
|
|
43
|
-
iframe,
|
|
44
|
-
img,
|
|
45
|
-
link,
|
|
46
|
-
textarea,
|
|
47
|
-
select,
|
|
48
|
-
form,
|
|
49
|
-
soapClient,
|
|
50
|
-
radioGroup,
|
|
51
|
-
video,
|
|
52
|
-
embed
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
var inputs01 = ['text', 'password', 'email', 'search', 'number', 'color', 'range', 'file', 'date'].map(function (type) {
|
|
56
|
-
return {
|
|
57
|
-
type: 'input-' + type,
|
|
58
|
-
description: 'html input-' + type,
|
|
59
|
-
group: 'form',
|
|
60
|
-
icon: ICONS[type],
|
|
61
|
-
model: {
|
|
62
|
-
type: 'input-' + type,
|
|
63
|
-
top: 100,
|
|
64
|
-
left: 100,
|
|
65
|
-
width: 280,
|
|
66
|
-
height: 30,
|
|
67
|
-
paddingLeft: type == 'search' ? 0 : 7,
|
|
68
|
-
paddingRight: type == 'search' ? 0 : 7,
|
|
69
|
-
fontSize: 14,
|
|
70
|
-
fillStyle: 'white',
|
|
71
|
-
fontColor: '#585858',
|
|
72
|
-
strokeStyle: 'rgba(0,0,0,.4)',
|
|
73
|
-
lineWidth: type == 'file' ? 0 : 1,
|
|
74
|
-
lineDash: 'solid',
|
|
75
|
-
textAlign: 'left'
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
})
|
|
79
|
-
|
|
80
|
-
var inputs02 = ['submit', 'reset'].map(function (type) {
|
|
81
|
-
return {
|
|
82
|
-
type: 'input-' + type,
|
|
83
|
-
description: 'html input-' + type,
|
|
84
|
-
group: 'form',
|
|
85
|
-
icon: ICONS[type],
|
|
86
|
-
model: {
|
|
87
|
-
type: 'input-' + type,
|
|
88
|
-
top: 100,
|
|
89
|
-
left: 100,
|
|
90
|
-
width: 280,
|
|
91
|
-
height: 30,
|
|
92
|
-
fontSize: 14,
|
|
93
|
-
fillStyle: 'white',
|
|
94
|
-
fontColor: '#585858',
|
|
95
|
-
strokeStyle: 'rgba(0,0,0,.4)'
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
})
|
|
99
|
-
|
|
100
|
-
var buttons = ['button'].map(function (type) {
|
|
101
|
-
return {
|
|
102
|
-
type: type,
|
|
103
|
-
description: 'html ' + type,
|
|
104
|
-
group: 'form',
|
|
105
|
-
icon: ICONS[type],
|
|
106
|
-
model: {
|
|
107
|
-
type: type,
|
|
108
|
-
top: 100,
|
|
109
|
-
left: 100,
|
|
110
|
-
width: 280,
|
|
111
|
-
height: 30,
|
|
112
|
-
fontSize: 14,
|
|
113
|
-
fillStyle: 'white',
|
|
114
|
-
fontColor: '#585858',
|
|
115
|
-
textAlign: 'center'
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
})
|
|
119
|
-
|
|
120
|
-
var textibles = ['radio', 'checkbox'].map(function (type) {
|
|
121
|
-
return {
|
|
122
|
-
type: 'input-' + type,
|
|
123
|
-
description: 'html input-' + type,
|
|
124
|
-
group: 'form',
|
|
125
|
-
icon: ICONS[type],
|
|
126
|
-
model: {
|
|
127
|
-
type: 'input-' + type,
|
|
128
|
-
top: 100,
|
|
129
|
-
left: 100,
|
|
130
|
-
width: 280,
|
|
131
|
-
height: 30,
|
|
132
|
-
text: 'noname',
|
|
133
|
-
fontSize: 14,
|
|
134
|
-
fontColor: '#585858',
|
|
135
|
-
textAlign: 'left'
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
})
|
|
139
|
-
|
|
140
|
-
var fieldsets = ['fieldset', 'iframe', 'img', 'link'].map(function (type) {
|
|
141
|
-
return {
|
|
142
|
-
type: type,
|
|
143
|
-
description: 'html ' + type,
|
|
144
|
-
group: 'form',
|
|
145
|
-
icon: ICONS[type],
|
|
146
|
-
model: {
|
|
147
|
-
type: type,
|
|
148
|
-
top: 100,
|
|
149
|
-
left: 100,
|
|
150
|
-
width: type !== 'link' ? 400 : 280,
|
|
151
|
-
height: type !== 'link' ? 300 : 30,
|
|
152
|
-
fontSize: 14,
|
|
153
|
-
fillStyle: 'white',
|
|
154
|
-
fontColor: '#585858',
|
|
155
|
-
strokeStyle: 'rgba(0,0,0,.4)',
|
|
156
|
-
lineWidth: 1,
|
|
157
|
-
lineDash: 'solid',
|
|
158
|
-
textAlign: 'left'
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
})
|
|
162
|
-
|
|
163
|
-
var multimedias = ['video'].map(type => {
|
|
164
|
-
return {
|
|
165
|
-
type,
|
|
166
|
-
description: 'html ' + type,
|
|
167
|
-
group: 'form',
|
|
168
|
-
icon: ICONS[type],
|
|
169
|
-
model: {
|
|
170
|
-
type,
|
|
171
|
-
top: 100,
|
|
172
|
-
left: 100,
|
|
173
|
-
width: 400,
|
|
174
|
-
height: 224,
|
|
175
|
-
controls: true,
|
|
176
|
-
src:
|
|
177
|
-
'https://player.vimeo.com/external/242538643.sd.mp4?s=42dacbec1a58f449a3fa4845801df5d446a99134&profile_id=165'
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
})
|
|
181
|
-
|
|
182
|
-
var applications = ['embed'].map(type => {
|
|
183
|
-
return {
|
|
184
|
-
type,
|
|
185
|
-
description: 'html ' + type,
|
|
186
|
-
group: 'form',
|
|
187
|
-
icon: ICONS[type],
|
|
188
|
-
model: {
|
|
189
|
-
type,
|
|
190
|
-
top: 100,
|
|
191
|
-
left: 100,
|
|
192
|
-
width: 400,
|
|
193
|
-
height: 224,
|
|
194
|
-
mimetype: 'video/webm',
|
|
195
|
-
src:
|
|
196
|
-
'https://player.vimeo.com/external/242538643.sd.mp4?s=42dacbec1a58f449a3fa4845801df5d446a99134&profile_id=165'
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
})
|
|
200
|
-
|
|
201
|
-
var others = ['textarea', 'select', 'radioGroup'].map(function (type) {
|
|
202
|
-
return {
|
|
203
|
-
type: type == 'radioGroup' ? 'radio-group' : type,
|
|
204
|
-
description: 'html ' + type,
|
|
205
|
-
group: 'form',
|
|
206
|
-
icon: ICONS[type],
|
|
207
|
-
model: {
|
|
208
|
-
type: type == 'radioGroup' ? 'radio-group' : type,
|
|
209
|
-
top: 100,
|
|
210
|
-
left: 100,
|
|
211
|
-
width: 280,
|
|
212
|
-
height: type == 'textarea' ? 60 : 40,
|
|
213
|
-
paddingLeft: type == 'select' ? 0 : 7,
|
|
214
|
-
paddingRight: type == 'select' ? 0 : 7,
|
|
215
|
-
fontSize: 14,
|
|
216
|
-
fillStyle: 'white',
|
|
217
|
-
fontColor: '#585858',
|
|
218
|
-
strokeStyle: 'rgba(0,0,0,.4)',
|
|
219
|
-
lineWidth: 1,
|
|
220
|
-
lineDash: 'solid',
|
|
221
|
-
textAlign: 'left'
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
})
|
|
225
|
-
|
|
226
|
-
var forms = [
|
|
227
|
-
{
|
|
228
|
-
type: 'form',
|
|
229
|
-
description: 'html form',
|
|
230
|
-
group: 'form',
|
|
231
|
-
icon: ICONS['form'],
|
|
232
|
-
model: {
|
|
233
|
-
type: 'form',
|
|
234
|
-
top: 100,
|
|
235
|
-
left: 100,
|
|
236
|
-
width: 400,
|
|
237
|
-
height: 200,
|
|
238
|
-
fontColor: '#585858',
|
|
239
|
-
strokeStyle: '#ccc',
|
|
240
|
-
lineWidth: 1,
|
|
241
|
-
method: 'GET',
|
|
242
|
-
action: '',
|
|
243
|
-
contentType: 'application/json',
|
|
244
|
-
name: 'search',
|
|
245
|
-
authorization: '',
|
|
246
|
-
format: 'TEXT'
|
|
247
|
-
}
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
type: 'soap-client',
|
|
251
|
-
description: 'soap client',
|
|
252
|
-
group: 'form',
|
|
253
|
-
icon: ICONS['soapClient'],
|
|
254
|
-
model: {
|
|
255
|
-
type: 'soap-client',
|
|
256
|
-
top: 100,
|
|
257
|
-
left: 100,
|
|
258
|
-
width: 400,
|
|
259
|
-
height: 200,
|
|
260
|
-
fontColor: '#585858',
|
|
261
|
-
strokeStyle: '#ccc',
|
|
262
|
-
lineWidth: 1,
|
|
263
|
-
action: '',
|
|
264
|
-
method: '',
|
|
265
|
-
name: 'search',
|
|
266
|
-
authorization: ''
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
]
|
|
270
|
-
|
|
271
|
-
export default forms.concat(inputs01, inputs02, buttons, textibles, fieldsets, multimedias, applications, others)
|
package/test/basic-test.html
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
@license
|
|
3
|
-
Copyright © HatioLab Inc. All rights reserved.
|
|
4
|
-
-->
|
|
5
|
-
<!DOCTYPE html>
|
|
6
|
-
<html>
|
|
7
|
-
<head>
|
|
8
|
-
<meta charset="utf-8" />
|
|
9
|
-
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes" />
|
|
10
|
-
|
|
11
|
-
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
|
|
12
|
-
<script src="../../web-component-tester/browser.js"></script>
|
|
13
|
-
|
|
14
|
-
<!-- Step 1: import the element to test -->
|
|
15
|
-
<link rel="import" href="../things-scene-form.html" />
|
|
16
|
-
</head>
|
|
17
|
-
<body>
|
|
18
|
-
<!-- You can use the document as a place to set up your fixtures. -->
|
|
19
|
-
<test-fixture id="things-scene-form-fixture">
|
|
20
|
-
<template>
|
|
21
|
-
<things-scene-form> <h2>things-scene-form</h2> </things-scene-form>
|
|
22
|
-
</template>
|
|
23
|
-
</test-fixture>
|
|
24
|
-
|
|
25
|
-
<script>
|
|
26
|
-
suite('<things-scene-form>', function() {
|
|
27
|
-
var myEl
|
|
28
|
-
|
|
29
|
-
setup(function() {
|
|
30
|
-
myEl = fixture('things-scene-form-fixture')
|
|
31
|
-
})
|
|
32
|
-
|
|
33
|
-
test('defines the "author" property', function() {
|
|
34
|
-
assert.equal(myEl.author.name, 'Dimitri Glazkov')
|
|
35
|
-
assert.equal(myEl.author.image, 'http://addyosmani.com/blog/wp-content/uploads/2013/04/unicorn.jpg')
|
|
36
|
-
})
|
|
37
|
-
|
|
38
|
-
test('says hello', function() {
|
|
39
|
-
assert.equal(myEl.sayHello(), 'things-scene-form says, Hello World!')
|
|
40
|
-
|
|
41
|
-
var greetings = myEl.sayHello('greetings Earthlings')
|
|
42
|
-
assert.equal(greetings, 'things-scene-form says, greetings Earthlings')
|
|
43
|
-
})
|
|
44
|
-
|
|
45
|
-
test('fires lasers', function(done) {
|
|
46
|
-
myEl.addEventListener('things-scene-form-lasers', function(event) {
|
|
47
|
-
assert.equal(event.detail.sound, 'Pew pew!')
|
|
48
|
-
done()
|
|
49
|
-
})
|
|
50
|
-
myEl.fireLasers()
|
|
51
|
-
})
|
|
52
|
-
|
|
53
|
-
test('distributed children', function() {
|
|
54
|
-
var els = myEl.getContentChildren()
|
|
55
|
-
assert.equal(els.length, 1, 'one distributed node')
|
|
56
|
-
assert.equal(els[0], myEl.querySelector('h2'), 'content distributed correctly')
|
|
57
|
-
})
|
|
58
|
-
})
|
|
59
|
-
</script>
|
|
60
|
-
</body>
|
|
61
|
-
</html>
|
package/test/index.html
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
@license
|
|
3
|
-
Copyright © HatioLab Inc. All rights reserved.
|
|
4
|
-
-->
|
|
5
|
-
<!DOCTYPE html>
|
|
6
|
-
<html>
|
|
7
|
-
<head>
|
|
8
|
-
<meta charset="utf-8" />
|
|
9
|
-
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes" />
|
|
10
|
-
|
|
11
|
-
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
|
|
12
|
-
<script src="../../web-component-tester/browser.js"></script>
|
|
13
|
-
</head>
|
|
14
|
-
<body>
|
|
15
|
-
<script>
|
|
16
|
-
// Load and run all tests (.html, .js):
|
|
17
|
-
WCT.loadSuites(['basic-test.html', 'basic-test.html?dom=shadow'])
|
|
18
|
-
</script>
|
|
19
|
-
</body>
|
|
20
|
-
</html>
|
package/test/soap/broker.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
var express = require('express');
|
|
2
|
-
var app = express();
|
|
3
|
-
|
|
4
|
-
var soap = require('soap')
|
|
5
|
-
var wsdl = './sample.wsdl'
|
|
6
|
-
var soapClient
|
|
7
|
-
soap.createClient(wsdl, function(err, client) {
|
|
8
|
-
soapClient = client
|
|
9
|
-
})
|
|
10
|
-
|
|
11
|
-
app.get('/Z_PP_ORDER_STATUS_OUTOP', function (req, res) {
|
|
12
|
-
|
|
13
|
-
soapClient.Z_PP_ORDER_STATUS_OUTOP(req.query, function(err, result) {
|
|
14
|
-
res.send(result)
|
|
15
|
-
})
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
app.listen(8001, function () {
|
|
19
|
-
console.log('Example app listening on port 8001!');
|
|
20
|
-
console.log("sample. http://localhost:8001/Z_PP_ORDER_STATUS_OUTOP?I_GSTRP=2019.04.11&I_MATNR=2011846")
|
|
21
|
-
});
|
|
22
|
-
|
package/test/soap/sample.wsdl
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
<wsdl:definitions
|
|
2
|
-
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
|
|
3
|
-
xmlns:tns="http://xmlns.example.com/Z_PP_ORDER_STATUS_OUT/Z_PP_ORDER_STATUS_OUTOPImpl/Processes/ONL/SAH"
|
|
4
|
-
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
|
|
5
|
-
xmlns:ns0="http://www.tibco.com/schemas/DWFB_DIRECT/Resources/Schemas/SAH/Z_PP_ORDER_STATUS_OUT.xsd4"
|
|
6
|
-
name="Untitled"
|
|
7
|
-
targetNamespace="http://xmlns.example.com/Z_PP_ORDER_STATUS_OUT/Z_PP_ORDER_STATUS_OUTOPImpl/Processes/ONL/SAH">
|
|
8
|
-
<wsdl:types>
|
|
9
|
-
<xs:schema
|
|
10
|
-
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
|
11
|
-
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
|
|
12
|
-
xmlns:tns="http://xmlns.example.com/Z_PP_ORDER_STATUS_OUT/Z_PP_ORDER_STATUS_OUTOPImpl/Processes/ONL/SAH"
|
|
13
|
-
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
|
|
14
|
-
xmlns:ns0="http://www.tibco.com/schemas/DWFB_DIRECT/Resources/Schemas/SAH/Z_PP_ORDER_STATUS_OUT.xsd4"
|
|
15
|
-
xmlns="http://www.tibco.com/schemas/DWFB_DIRECT/Resources/Schemas/SAH/Z_PP_ORDER_STATUS_OUT.xsd4"
|
|
16
|
-
attributeFormDefault="unqualified"
|
|
17
|
-
elementFormDefault="qualified"
|
|
18
|
-
targetNamespace="http://www.tibco.com/schemas/DWFB_DIRECT/Resources/Schemas/SAH/Z_PP_ORDER_STATUS_OUT.xsd4">
|
|
19
|
-
<xs:element name="Z_PP_ORDER_STATUS_OUT">
|
|
20
|
-
<xs:complexType>
|
|
21
|
-
<xs:sequence>
|
|
22
|
-
<xs:element ref="ns0:Z_PP_ORDER_STATUS_OUTRequest"/>
|
|
23
|
-
<xs:element ref="ns0:Z_PP_ORDER_STATUS_OUTResponse"/>
|
|
24
|
-
</xs:sequence>
|
|
25
|
-
</xs:complexType>
|
|
26
|
-
</xs:element>
|
|
27
|
-
|
|
28
|
-
<xs:element name="Z_PP_ORDER_STATUS_OUTRequest">
|
|
29
|
-
<xs:complexType>
|
|
30
|
-
<xs:sequence>
|
|
31
|
-
<xs:element name="I_GSTRP" type="xs:string"/>
|
|
32
|
-
<xs:element name="I_MATNR" type="xs:string"/>
|
|
33
|
-
</xs:sequence>
|
|
34
|
-
</xs:complexType>
|
|
35
|
-
</xs:element>
|
|
36
|
-
|
|
37
|
-
<xs:element name="Z_PP_ORDER_STATUS_OUTResponse">
|
|
38
|
-
<xs:complexType>
|
|
39
|
-
<xs:sequence>
|
|
40
|
-
<xs:element maxOccurs="unbounded" minOccurs="0" name="E_ORDER">
|
|
41
|
-
<xs:complexType>
|
|
42
|
-
<xs:sequence>
|
|
43
|
-
<xs:element name="GSTRP" type="xs:string"/>
|
|
44
|
-
<xs:element name="MATNR" type="xs:string"/>
|
|
45
|
-
<xs:element name="ASGAM1" type="xs:string"/>
|
|
46
|
-
<xs:element name="ASGAM2" type="xs:string"/>
|
|
47
|
-
<xs:element name="CJGAM1" type="xs:string"/>
|
|
48
|
-
<xs:element name="CJGAM2" type="xs:string"/>
|
|
49
|
-
</xs:sequence>
|
|
50
|
-
</xs:complexType>
|
|
51
|
-
</xs:element>
|
|
52
|
-
<xs:element name="TYPE" type="xs:string"/>
|
|
53
|
-
<xs:element name="MESSAGE" type="xs:string"/>
|
|
54
|
-
</xs:sequence>
|
|
55
|
-
</xs:complexType>
|
|
56
|
-
</xs:element>
|
|
57
|
-
</xs:schema>
|
|
58
|
-
</wsdl:types>
|
|
59
|
-
|
|
60
|
-
<wsdl:message name="Z_PP_ORDER_STATUS_OUTSoapIn">
|
|
61
|
-
<wsdl:part element="ns0:Z_PP_ORDER_STATUS_OUTRequest" name="part1"> </wsdl:part>
|
|
62
|
-
</wsdl:message>
|
|
63
|
-
|
|
64
|
-
<wsdl:message name="Z_PP_ORDER_STATUS_OUTSoapOut">
|
|
65
|
-
<wsdl:part element="ns0:Z_PP_ORDER_STATUS_OUTResponse" name="part1"> </wsdl:part>
|
|
66
|
-
</wsdl:message>
|
|
67
|
-
|
|
68
|
-
<wsdl:portType name="Z_PP_ORDER_STATUS_OUTPort">
|
|
69
|
-
<wsdl:operation name="Z_PP_ORDER_STATUS_OUTOP">
|
|
70
|
-
<wsdl:input message="tns:Z_PP_ORDER_STATUS_OUTSoapIn"> </wsdl:input>
|
|
71
|
-
<wsdl:output message="tns:Z_PP_ORDER_STATUS_OUTSoapOut"> </wsdl:output>
|
|
72
|
-
</wsdl:operation>
|
|
73
|
-
</wsdl:portType>
|
|
74
|
-
|
|
75
|
-
<wsdl:binding name="SOAPEventSourceBinding" type="tns:Z_PP_ORDER_STATUS_OUTPort">
|
|
76
|
-
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
|
|
77
|
-
<wsdl:operation name="Z_PP_ORDER_STATUS_OUTOP">
|
|
78
|
-
<soap:operation soapAction="/wsdl" style="document"/>
|
|
79
|
-
<wsdl:input>
|
|
80
|
-
<soap:body parts="part1" use="literal"/>
|
|
81
|
-
</wsdl:input>
|
|
82
|
-
<wsdl:output>
|
|
83
|
-
<soap:body parts="part1" use="literal"/>
|
|
84
|
-
</wsdl:output>
|
|
85
|
-
</wsdl:operation>
|
|
86
|
-
</wsdl:binding>
|
|
87
|
-
|
|
88
|
-
<wsdl:service name="Z_PP_ORDER_STATUS_OUT">
|
|
89
|
-
<wsdl:port binding="tns:SOAPEventSourceBinding" name="SOAPEventSource">
|
|
90
|
-
<soap:address location="http://0.0.0.0:8000/wsdl"/>
|
|
91
|
-
</wsdl:port>
|
|
92
|
-
</wsdl:service>
|
|
93
|
-
|
|
94
|
-
</wsdl:definitions>
|
package/test/soap/soap-client.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
var soap = require('soap')
|
|
2
|
-
var wsdl = './sample.wsdl'
|
|
3
|
-
|
|
4
|
-
var args = { I_GSTRP: '2019.04.11', I_MATNR: '2011846' }
|
|
5
|
-
|
|
6
|
-
soap.createClient(wsdl, function(err, client) {
|
|
7
|
-
// let description = client.describe('Z_PP_ORDER_STATUS_OUTOP')
|
|
8
|
-
// console.log('[Z_PP_ORDER_STATUS_OUTOP] : ', description)
|
|
9
|
-
|
|
10
|
-
client.Z_PP_ORDER_STATUS_OUTOP(args, function(err, result) {
|
|
11
|
-
console.log(args, result)
|
|
12
|
-
})
|
|
13
|
-
})
|
package/test/soap/soap-server.js
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
var service = {
|
|
2
|
-
Z_PP_ORDER_STATUS_OUT: {
|
|
3
|
-
SOAPEventSource: {
|
|
4
|
-
Z_PP_ORDER_STATUS_OUTOP: function(args) {
|
|
5
|
-
return {
|
|
6
|
-
GSTRP: args.I_GSTRP,
|
|
7
|
-
MATNR: args.I_MATNR,
|
|
8
|
-
ASGAM1: '294.125',
|
|
9
|
-
ASGAM2: '0.000',
|
|
10
|
-
CJGAM1: '0.000',
|
|
11
|
-
CJGAM2: '0.000'
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
var xml = require('fs').readFileSync('./sample.wsdl', 'utf8')
|
|
19
|
-
var http = require('http')
|
|
20
|
-
var soap = require('soap')
|
|
21
|
-
var express = require('express')
|
|
22
|
-
var cors = require('cors')
|
|
23
|
-
var bodyParser = require('body-parser')
|
|
24
|
-
|
|
25
|
-
//http server example
|
|
26
|
-
var server = http.createServer(function(request, response) {
|
|
27
|
-
response.end('404: Not Found: ' + request.url)
|
|
28
|
-
})
|
|
29
|
-
|
|
30
|
-
// express server example
|
|
31
|
-
var app = express()
|
|
32
|
-
app.use(cors())
|
|
33
|
-
|
|
34
|
-
// body parser middleware are supported (optional)
|
|
35
|
-
app.use(
|
|
36
|
-
bodyParser.raw({
|
|
37
|
-
type: function() {
|
|
38
|
-
return true
|
|
39
|
-
},
|
|
40
|
-
limit: '5mb'
|
|
41
|
-
})
|
|
42
|
-
)
|
|
43
|
-
app.listen(8000, function() {
|
|
44
|
-
//Note: /wsdl route will be handled by soap module
|
|
45
|
-
//and all other routes & middleware will continue to work
|
|
46
|
-
let server = soap.listen(app, '/wsdl', service, xml)
|
|
47
|
-
|
|
48
|
-
server.log = function(type, data) {
|
|
49
|
-
console.log('soap log', type, data)
|
|
50
|
-
}
|
|
51
|
-
})
|
package/test/unit/test-form.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright © HatioLab Inc. All rights reserved.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import './util'
|
|
6
|
-
|
|
7
|
-
import { expect } from 'chai'
|
|
8
|
-
|
|
9
|
-
import '../../bower_components/things-scene-core/things-scene-min'
|
|
10
|
-
import { Form } from '../../src/index'
|
|
11
|
-
|
|
12
|
-
describe('Form', function() {
|
|
13
|
-
var board
|
|
14
|
-
|
|
15
|
-
beforeEach(function() {
|
|
16
|
-
board = scene.create({
|
|
17
|
-
model: {
|
|
18
|
-
components: [
|
|
19
|
-
{
|
|
20
|
-
id: 'form',
|
|
21
|
-
type: 'form'
|
|
22
|
-
}
|
|
23
|
-
]
|
|
24
|
-
}
|
|
25
|
-
})
|
|
26
|
-
})
|
|
27
|
-
|
|
28
|
-
it('component should be found by its id.', function() {
|
|
29
|
-
var component = board.findById('form')
|
|
30
|
-
|
|
31
|
-
expect(!!component).not.to.equal(false)
|
|
32
|
-
})
|
|
33
|
-
})
|
package/test/unit/util.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright © HatioLab Inc. All rights reserved.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
var noop = () => {}
|
|
6
|
-
|
|
7
|
-
global.Canvas = require('canvas')
|
|
8
|
-
|
|
9
|
-
Canvas.prototype.setAttribute = noop
|
|
10
|
-
Canvas.prototype.style = {}
|
|
11
|
-
|
|
12
|
-
global.Image = Canvas.Image
|
|
13
|
-
global.screen = {
|
|
14
|
-
width: 1280,
|
|
15
|
-
height: 800
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
global.window = global
|
|
19
|
-
|
|
20
|
-
global.addEventListener = noop
|
|
21
|
-
global.location = {}
|
|
22
|
-
global.getComputedStyle = noop
|
package/things-scene.config.js
DELETED
package/translations/en.json
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"label.text-field": "text field",
|
|
3
|
-
"label.value-field": "value field",
|
|
4
|
-
"label.started": "auto started",
|
|
5
|
-
"label.controls": "show controls",
|
|
6
|
-
"label.endpoint": "endpoint",
|
|
7
|
-
"label.namespace": "namespace",
|
|
8
|
-
"label.soap-action": "SOAP Action",
|
|
9
|
-
"label.content-type": "content type",
|
|
10
|
-
"label.mime-type": "MIME type",
|
|
11
|
-
"label.next-input": "next input",
|
|
12
|
-
"label.autofocus": "focus on init",
|
|
13
|
-
"label.alltime-focus": "alltime focus",
|
|
14
|
-
"label.alltime-focus-pending": "alltime focus pending"
|
|
15
|
-
}
|
package/translations/ko.json
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"label.text-field": "텍스트필드",
|
|
3
|
-
"label.value-field": "값 필드",
|
|
4
|
-
"label.started": "자동 시작",
|
|
5
|
-
"label.controls": "컨트롤 보이기",
|
|
6
|
-
"label.endpoint": "엔드포인트",
|
|
7
|
-
"label.namespace": "네임스페이스",
|
|
8
|
-
"label.soap-action": "SOAP 액션",
|
|
9
|
-
"label.content-type": "컨텐트 타입",
|
|
10
|
-
"label.mime-type": "MIME type",
|
|
11
|
-
"label.next-input": "다음 포커스 Input ID",
|
|
12
|
-
"label.autofocus": "시작시 포커스",
|
|
13
|
-
"label.alltime-focus": "상시 포커스",
|
|
14
|
-
"label.alltime-focus-pending": "상시 포커스 지연 시간",
|
|
15
|
-
"label.hide-keyboard": "키보드 숨기기(모바일)"
|
|
16
|
-
}
|
package/translations/ms.json
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"label.text-field": "[ms] text field",
|
|
3
|
-
"label.value-field": "[ms] value field",
|
|
4
|
-
"label.started": "[ms] auto started",
|
|
5
|
-
"label.controls": "[ms] show controls",
|
|
6
|
-
"label.endpoint": "[ms] endpoint",
|
|
7
|
-
"label.namespace": "[ms] namespace",
|
|
8
|
-
"label.soap-action": "[ms] SOAP Action",
|
|
9
|
-
"label.content-type": "[ms] content type",
|
|
10
|
-
"label.mime-type": "[ms] MIME type",
|
|
11
|
-
"label.autofocus": "[ms] focus on init",
|
|
12
|
-
"label.alltime-focus": "[ms] alltime focus",
|
|
13
|
-
"label.alltime-focus-pending": "[ms] alltime focus pending"
|
|
14
|
-
}
|
package/translations/zh.json
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"label.text-field": "文本字段",
|
|
3
|
-
"label.value-field": "值字段",
|
|
4
|
-
"label.started": "自动开启",
|
|
5
|
-
"label.controls": "显示控制器",
|
|
6
|
-
"label.endpoint": "数据端点",
|
|
7
|
-
"label.namespace": "命名空间",
|
|
8
|
-
"label.soap-action": "SOAP操作",
|
|
9
|
-
"label.content-type": "content type",
|
|
10
|
-
"label.mime-type": "MIME type",
|
|
11
|
-
"label.next-input": "下一Focus对象",
|
|
12
|
-
"label.autofocus": "初始Focus",
|
|
13
|
-
"label.alltime-focus": "单一Focus",
|
|
14
|
-
"label.alltime-focus-pending": "单一Focus等待时间"
|
|
15
|
-
}
|