@operato/scene-label 1.0.0-alpha.3 → 1.0.0-alpha.33

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.
Files changed (53) hide show
  1. package/CHANGELOG.md +261 -15
  2. package/assets/favicon.ico +0 -0
  3. package/assets/images/spinner.png +0 -0
  4. package/dist/barcode-scanner.d.ts +3 -1
  5. package/dist/barcode-scanner.js +62 -10
  6. package/dist/barcode-scanner.js.map +1 -1
  7. package/dist/barcode.d.ts +1 -1
  8. package/dist/barcode.js +1 -1
  9. package/dist/barcode.js.map +1 -1
  10. package/dist/label-printer.d.ts +1 -1
  11. package/dist/label-printer.js +13 -7
  12. package/dist/label-printer.js.map +1 -1
  13. package/helps/scene/component/barcode-scanner.ko.md +19 -1
  14. package/helps/scene/component/barcode-scanner.md +18 -0
  15. package/helps/scene/component/barcode-scanner.zh.md +20 -2
  16. package/helps/scene/component/label-printer.ko.md +6 -4
  17. package/helps/scene/component/label-printer.md +11 -11
  18. package/helps/scene/component/label-printer.zh.md +15 -13
  19. package/logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json +30 -0
  20. package/logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json +35 -0
  21. package/logs/application-2022-06-15-23.log +4 -0
  22. package/logs/application-2022-06-16-17.log +4 -0
  23. package/logs/application-2022-07-03-19.log +16 -0
  24. package/logs/application-2022-07-03-20.log +12 -0
  25. package/logs/application-2022-07-03-21.log +4 -0
  26. package/logs/application-2022-07-03-22.log +4 -0
  27. package/logs/connections-2022-06-09-23.log +70 -0
  28. package/logs/connections-2022-06-13-11.log +35 -0
  29. package/logs/connections-2022-06-13-12.log +35 -0
  30. package/logs/connections-2022-06-15-23.log +35 -0
  31. package/logs/connections-2022-06-16-17.log +35 -0
  32. package/logs/connections-2022-06-20-09.log +35 -0
  33. package/logs/connections-2022-07-03-19.log +140 -0
  34. package/logs/connections-2022-07-03-20.log +105 -0
  35. package/logs/connections-2022-07-03-21.log +35 -0
  36. package/logs/connections-2022-07-03-22.log +35 -0
  37. package/package.json +7 -7
  38. package/src/barcode-scanner.ts +71 -10
  39. package/src/barcode.ts +1 -1
  40. package/src/label-printer.ts +14 -9
  41. package/translations/en.json +5 -1
  42. package/translations/ko.json +5 -1
  43. package/translations/ms.json +6 -2
  44. package/translations/zh.json +8 -4
  45. package/tsconfig.tsbuildinfo +1 -1
  46. package/dist/direct-print/browser-printer.d.ts +0 -5
  47. package/dist/direct-print/browser-printer.js +0 -23
  48. package/dist/direct-print/browser-printer.js.map +0 -1
  49. package/dist/direct-print/usb-printer.d.ts +0 -14
  50. package/dist/direct-print/usb-printer.js +0 -69
  51. package/dist/direct-print/usb-printer.js.map +0 -1
  52. package/src/direct-print/browser-printer.ts +0 -21
  53. package/src/direct-print/usb-printer.ts +0 -84
@@ -0,0 +1,35 @@
1
+ 2022-06-20T09:17:30+09:00 info: Initializing ConnectionManager...
2
+ 2022-06-20T09:17:30+09:00 info: Connector 'echo-back-server' started to ready
3
+ 2022-06-20T09:17:30+09:00 info: Connector 'echo-back' started to ready
4
+ 2022-06-20T09:17:30+09:00 info: Connector 'http-connector' started to ready
5
+ 2022-06-20T09:17:30+09:00 info: Connector 'graphql-connector' started to ready
6
+ 2022-06-20T09:17:30+09:00 info: Connector 'sqlite-connector' started to ready
7
+ 2022-06-20T09:17:30+09:00 info: Connector 'postgresql-connector' started to ready
8
+ 2022-06-20T09:17:30+09:00 info: Connector 'mqtt-connector' started to ready
9
+ 2022-06-20T09:17:30+09:00 info: Connector 'mssql-connector' started to ready
10
+ 2022-06-20T09:17:30+09:00 info: Connector 'oracle-connector' started to ready
11
+ 2022-06-20T09:17:30+09:00 info: Connector 'mysql-connector' started to ready
12
+ 2022-06-20T09:17:30+09:00 info: Connector 'socket-server' started to ready
13
+ 2022-06-20T09:17:30+09:00 info: echo-back-servers are ready
14
+ 2022-06-20T09:17:30+09:00 info: echo-back connections are ready
15
+ 2022-06-20T09:17:30+09:00 info: http-connector connections are ready
16
+ 2022-06-20T09:17:30+09:00 info: graphql-connector connections are ready
17
+ 2022-06-20T09:17:30+09:00 info: sqlite-connector connections are ready
18
+ 2022-06-20T09:17:30+09:00 info: postgresql-connector connections are ready
19
+ 2022-06-20T09:17:30+09:00 info: mqtt-connector connections are ready
20
+ 2022-06-20T09:17:30+09:00 info: mssql-connector connections are ready
21
+ 2022-06-20T09:17:30+09:00 info: oracle-connector connections are ready
22
+ 2022-06-20T09:17:30+09:00 info: mysql-connector connections are ready
23
+ 2022-06-20T09:17:30+09:00 info: socket servers are ready
24
+ 2022-06-20T09:17:30+09:00 info: All connector for 'echo-back-server' ready
25
+ 2022-06-20T09:17:30+09:00 info: All connector for 'echo-back' ready
26
+ 2022-06-20T09:17:30+09:00 info: All connector for 'http-connector' ready
27
+ 2022-06-20T09:17:30+09:00 info: All connector for 'graphql-connector' ready
28
+ 2022-06-20T09:17:30+09:00 info: All connector for 'sqlite-connector' ready
29
+ 2022-06-20T09:17:30+09:00 info: All connector for 'postgresql-connector' ready
30
+ 2022-06-20T09:17:30+09:00 info: All connector for 'mqtt-connector' ready
31
+ 2022-06-20T09:17:30+09:00 info: All connector for 'mssql-connector' ready
32
+ 2022-06-20T09:17:30+09:00 info: All connector for 'oracle-connector' ready
33
+ 2022-06-20T09:17:30+09:00 info: All connector for 'mysql-connector' ready
34
+ 2022-06-20T09:17:30+09:00 info: All connector for 'socket-server' ready
35
+ 2022-06-20T09:17:30+09:00 info: ConnectionManager initialization done:
@@ -0,0 +1,140 @@
1
+ 2022-07-03T19:05:54+09:00 info: Initializing ConnectionManager...
2
+ 2022-07-03T19:05:54+09:00 info: Connector 'echo-back-server' started to ready
3
+ 2022-07-03T19:05:54+09:00 info: Connector 'echo-back' started to ready
4
+ 2022-07-03T19:05:54+09:00 info: Connector 'http-connector' started to ready
5
+ 2022-07-03T19:05:54+09:00 info: Connector 'graphql-connector' started to ready
6
+ 2022-07-03T19:05:54+09:00 info: Connector 'sqlite-connector' started to ready
7
+ 2022-07-03T19:05:54+09:00 info: Connector 'postgresql-connector' started to ready
8
+ 2022-07-03T19:05:54+09:00 info: Connector 'mqtt-connector' started to ready
9
+ 2022-07-03T19:05:54+09:00 info: Connector 'mssql-connector' started to ready
10
+ 2022-07-03T19:05:54+09:00 info: Connector 'oracle-connector' started to ready
11
+ 2022-07-03T19:05:54+09:00 info: Connector 'mysql-connector' started to ready
12
+ 2022-07-03T19:05:54+09:00 info: Connector 'socket-server' started to ready
13
+ 2022-07-03T19:05:54+09:00 info: echo-back-servers are ready
14
+ 2022-07-03T19:05:54+09:00 info: echo-back connections are ready
15
+ 2022-07-03T19:05:54+09:00 info: http-connector connections are ready
16
+ 2022-07-03T19:05:54+09:00 info: graphql-connector connections are ready
17
+ 2022-07-03T19:05:54+09:00 info: sqlite-connector connections are ready
18
+ 2022-07-03T19:05:54+09:00 info: postgresql-connector connections are ready
19
+ 2022-07-03T19:05:54+09:00 info: mqtt-connector connections are ready
20
+ 2022-07-03T19:05:54+09:00 info: mssql-connector connections are ready
21
+ 2022-07-03T19:05:54+09:00 info: oracle-connector connections are ready
22
+ 2022-07-03T19:05:54+09:00 info: mysql-connector connections are ready
23
+ 2022-07-03T19:05:54+09:00 info: socket servers are ready
24
+ 2022-07-03T19:05:54+09:00 info: All connector for 'echo-back-server' ready
25
+ 2022-07-03T19:05:54+09:00 info: All connector for 'echo-back' ready
26
+ 2022-07-03T19:05:54+09:00 info: All connector for 'http-connector' ready
27
+ 2022-07-03T19:05:54+09:00 info: All connector for 'graphql-connector' ready
28
+ 2022-07-03T19:05:54+09:00 info: All connector for 'sqlite-connector' ready
29
+ 2022-07-03T19:05:54+09:00 info: All connector for 'postgresql-connector' ready
30
+ 2022-07-03T19:05:54+09:00 info: All connector for 'mqtt-connector' ready
31
+ 2022-07-03T19:05:54+09:00 info: All connector for 'mssql-connector' ready
32
+ 2022-07-03T19:05:54+09:00 info: All connector for 'oracle-connector' ready
33
+ 2022-07-03T19:05:54+09:00 info: All connector for 'mysql-connector' ready
34
+ 2022-07-03T19:05:54+09:00 info: All connector for 'socket-server' ready
35
+ 2022-07-03T19:05:54+09:00 info: ConnectionManager initialization done:
36
+ 2022-07-03T19:37:58+09:00 info: Initializing ConnectionManager...
37
+ 2022-07-03T19:37:58+09:00 info: Connector 'echo-back-server' started to ready
38
+ 2022-07-03T19:37:58+09:00 info: Connector 'echo-back' started to ready
39
+ 2022-07-03T19:37:58+09:00 info: Connector 'http-connector' started to ready
40
+ 2022-07-03T19:37:58+09:00 info: Connector 'graphql-connector' started to ready
41
+ 2022-07-03T19:37:58+09:00 info: Connector 'sqlite-connector' started to ready
42
+ 2022-07-03T19:37:58+09:00 info: Connector 'postgresql-connector' started to ready
43
+ 2022-07-03T19:37:58+09:00 info: Connector 'mqtt-connector' started to ready
44
+ 2022-07-03T19:37:58+09:00 info: Connector 'mssql-connector' started to ready
45
+ 2022-07-03T19:37:58+09:00 info: Connector 'oracle-connector' started to ready
46
+ 2022-07-03T19:37:58+09:00 info: Connector 'mysql-connector' started to ready
47
+ 2022-07-03T19:37:58+09:00 info: Connector 'socket-server' started to ready
48
+ 2022-07-03T19:37:58+09:00 info: echo-back-servers are ready
49
+ 2022-07-03T19:37:58+09:00 info: echo-back connections are ready
50
+ 2022-07-03T19:37:58+09:00 info: http-connector connections are ready
51
+ 2022-07-03T19:37:58+09:00 info: graphql-connector connections are ready
52
+ 2022-07-03T19:37:58+09:00 info: sqlite-connector connections are ready
53
+ 2022-07-03T19:37:58+09:00 info: postgresql-connector connections are ready
54
+ 2022-07-03T19:37:58+09:00 info: mqtt-connector connections are ready
55
+ 2022-07-03T19:37:58+09:00 info: mssql-connector connections are ready
56
+ 2022-07-03T19:37:58+09:00 info: oracle-connector connections are ready
57
+ 2022-07-03T19:37:58+09:00 info: mysql-connector connections are ready
58
+ 2022-07-03T19:37:58+09:00 info: socket servers are ready
59
+ 2022-07-03T19:37:58+09:00 info: All connector for 'echo-back-server' ready
60
+ 2022-07-03T19:37:58+09:00 info: All connector for 'echo-back' ready
61
+ 2022-07-03T19:37:58+09:00 info: All connector for 'http-connector' ready
62
+ 2022-07-03T19:37:58+09:00 info: All connector for 'graphql-connector' ready
63
+ 2022-07-03T19:37:58+09:00 info: All connector for 'sqlite-connector' ready
64
+ 2022-07-03T19:37:58+09:00 info: All connector for 'postgresql-connector' ready
65
+ 2022-07-03T19:37:58+09:00 info: All connector for 'mqtt-connector' ready
66
+ 2022-07-03T19:37:58+09:00 info: All connector for 'mssql-connector' ready
67
+ 2022-07-03T19:37:58+09:00 info: All connector for 'oracle-connector' ready
68
+ 2022-07-03T19:37:58+09:00 info: All connector for 'mysql-connector' ready
69
+ 2022-07-03T19:37:58+09:00 info: All connector for 'socket-server' ready
70
+ 2022-07-03T19:37:58+09:00 info: ConnectionManager initialization done:
71
+ 2022-07-03T19:43:39+09:00 info: Initializing ConnectionManager...
72
+ 2022-07-03T19:43:39+09:00 info: Connector 'echo-back-server' started to ready
73
+ 2022-07-03T19:43:39+09:00 info: Connector 'echo-back' started to ready
74
+ 2022-07-03T19:43:39+09:00 info: Connector 'http-connector' started to ready
75
+ 2022-07-03T19:43:39+09:00 info: Connector 'graphql-connector' started to ready
76
+ 2022-07-03T19:43:39+09:00 info: Connector 'sqlite-connector' started to ready
77
+ 2022-07-03T19:43:39+09:00 info: Connector 'postgresql-connector' started to ready
78
+ 2022-07-03T19:43:39+09:00 info: Connector 'mqtt-connector' started to ready
79
+ 2022-07-03T19:43:39+09:00 info: Connector 'mssql-connector' started to ready
80
+ 2022-07-03T19:43:39+09:00 info: Connector 'oracle-connector' started to ready
81
+ 2022-07-03T19:43:39+09:00 info: Connector 'mysql-connector' started to ready
82
+ 2022-07-03T19:43:39+09:00 info: Connector 'socket-server' started to ready
83
+ 2022-07-03T19:43:39+09:00 info: echo-back-servers are ready
84
+ 2022-07-03T19:43:39+09:00 info: echo-back connections are ready
85
+ 2022-07-03T19:43:39+09:00 info: http-connector connections are ready
86
+ 2022-07-03T19:43:39+09:00 info: graphql-connector connections are ready
87
+ 2022-07-03T19:43:39+09:00 info: sqlite-connector connections are ready
88
+ 2022-07-03T19:43:39+09:00 info: postgresql-connector connections are ready
89
+ 2022-07-03T19:43:39+09:00 info: mqtt-connector connections are ready
90
+ 2022-07-03T19:43:39+09:00 info: mssql-connector connections are ready
91
+ 2022-07-03T19:43:39+09:00 info: oracle-connector connections are ready
92
+ 2022-07-03T19:43:39+09:00 info: mysql-connector connections are ready
93
+ 2022-07-03T19:43:39+09:00 info: socket servers are ready
94
+ 2022-07-03T19:43:39+09:00 info: All connector for 'echo-back-server' ready
95
+ 2022-07-03T19:43:39+09:00 info: All connector for 'echo-back' ready
96
+ 2022-07-03T19:43:39+09:00 info: All connector for 'http-connector' ready
97
+ 2022-07-03T19:43:39+09:00 info: All connector for 'graphql-connector' ready
98
+ 2022-07-03T19:43:39+09:00 info: All connector for 'sqlite-connector' ready
99
+ 2022-07-03T19:43:39+09:00 info: All connector for 'postgresql-connector' ready
100
+ 2022-07-03T19:43:39+09:00 info: All connector for 'mqtt-connector' ready
101
+ 2022-07-03T19:43:39+09:00 info: All connector for 'mssql-connector' ready
102
+ 2022-07-03T19:43:39+09:00 info: All connector for 'oracle-connector' ready
103
+ 2022-07-03T19:43:39+09:00 info: All connector for 'mysql-connector' ready
104
+ 2022-07-03T19:43:39+09:00 info: All connector for 'socket-server' ready
105
+ 2022-07-03T19:43:39+09:00 info: ConnectionManager initialization done:
106
+ 2022-07-03T19:49:17+09:00 info: Initializing ConnectionManager...
107
+ 2022-07-03T19:49:17+09:00 info: Connector 'echo-back-server' started to ready
108
+ 2022-07-03T19:49:17+09:00 info: Connector 'echo-back' started to ready
109
+ 2022-07-03T19:49:17+09:00 info: Connector 'http-connector' started to ready
110
+ 2022-07-03T19:49:17+09:00 info: Connector 'graphql-connector' started to ready
111
+ 2022-07-03T19:49:17+09:00 info: Connector 'sqlite-connector' started to ready
112
+ 2022-07-03T19:49:17+09:00 info: Connector 'postgresql-connector' started to ready
113
+ 2022-07-03T19:49:17+09:00 info: Connector 'mqtt-connector' started to ready
114
+ 2022-07-03T19:49:17+09:00 info: Connector 'mssql-connector' started to ready
115
+ 2022-07-03T19:49:17+09:00 info: Connector 'oracle-connector' started to ready
116
+ 2022-07-03T19:49:17+09:00 info: Connector 'mysql-connector' started to ready
117
+ 2022-07-03T19:49:17+09:00 info: Connector 'socket-server' started to ready
118
+ 2022-07-03T19:49:17+09:00 info: echo-back-servers are ready
119
+ 2022-07-03T19:49:17+09:00 info: echo-back connections are ready
120
+ 2022-07-03T19:49:17+09:00 info: http-connector connections are ready
121
+ 2022-07-03T19:49:17+09:00 info: graphql-connector connections are ready
122
+ 2022-07-03T19:49:17+09:00 info: sqlite-connector connections are ready
123
+ 2022-07-03T19:49:17+09:00 info: postgresql-connector connections are ready
124
+ 2022-07-03T19:49:17+09:00 info: mqtt-connector connections are ready
125
+ 2022-07-03T19:49:17+09:00 info: mssql-connector connections are ready
126
+ 2022-07-03T19:49:17+09:00 info: oracle-connector connections are ready
127
+ 2022-07-03T19:49:17+09:00 info: mysql-connector connections are ready
128
+ 2022-07-03T19:49:17+09:00 info: socket servers are ready
129
+ 2022-07-03T19:49:17+09:00 info: All connector for 'echo-back-server' ready
130
+ 2022-07-03T19:49:17+09:00 info: All connector for 'echo-back' ready
131
+ 2022-07-03T19:49:17+09:00 info: All connector for 'http-connector' ready
132
+ 2022-07-03T19:49:17+09:00 info: All connector for 'graphql-connector' ready
133
+ 2022-07-03T19:49:17+09:00 info: All connector for 'sqlite-connector' ready
134
+ 2022-07-03T19:49:17+09:00 info: All connector for 'postgresql-connector' ready
135
+ 2022-07-03T19:49:17+09:00 info: All connector for 'mqtt-connector' ready
136
+ 2022-07-03T19:49:17+09:00 info: All connector for 'mssql-connector' ready
137
+ 2022-07-03T19:49:17+09:00 info: All connector for 'oracle-connector' ready
138
+ 2022-07-03T19:49:17+09:00 info: All connector for 'mysql-connector' ready
139
+ 2022-07-03T19:49:17+09:00 info: All connector for 'socket-server' ready
140
+ 2022-07-03T19:49:17+09:00 info: ConnectionManager initialization done:
@@ -0,0 +1,105 @@
1
+ 2022-07-03T20:15:43+09:00 info: Initializing ConnectionManager...
2
+ 2022-07-03T20:15:43+09:00 info: Connector 'echo-back-server' started to ready
3
+ 2022-07-03T20:15:43+09:00 info: Connector 'echo-back' started to ready
4
+ 2022-07-03T20:15:43+09:00 info: Connector 'http-connector' started to ready
5
+ 2022-07-03T20:15:43+09:00 info: Connector 'graphql-connector' started to ready
6
+ 2022-07-03T20:15:43+09:00 info: Connector 'sqlite-connector' started to ready
7
+ 2022-07-03T20:15:43+09:00 info: Connector 'postgresql-connector' started to ready
8
+ 2022-07-03T20:15:43+09:00 info: Connector 'mqtt-connector' started to ready
9
+ 2022-07-03T20:15:43+09:00 info: Connector 'mssql-connector' started to ready
10
+ 2022-07-03T20:15:43+09:00 info: Connector 'oracle-connector' started to ready
11
+ 2022-07-03T20:15:43+09:00 info: Connector 'mysql-connector' started to ready
12
+ 2022-07-03T20:15:43+09:00 info: Connector 'socket-server' started to ready
13
+ 2022-07-03T20:15:43+09:00 info: echo-back-servers are ready
14
+ 2022-07-03T20:15:43+09:00 info: echo-back connections are ready
15
+ 2022-07-03T20:15:43+09:00 info: http-connector connections are ready
16
+ 2022-07-03T20:15:43+09:00 info: graphql-connector connections are ready
17
+ 2022-07-03T20:15:43+09:00 info: sqlite-connector connections are ready
18
+ 2022-07-03T20:15:43+09:00 info: postgresql-connector connections are ready
19
+ 2022-07-03T20:15:43+09:00 info: mqtt-connector connections are ready
20
+ 2022-07-03T20:15:43+09:00 info: mssql-connector connections are ready
21
+ 2022-07-03T20:15:43+09:00 info: oracle-connector connections are ready
22
+ 2022-07-03T20:15:43+09:00 info: mysql-connector connections are ready
23
+ 2022-07-03T20:15:43+09:00 info: socket servers are ready
24
+ 2022-07-03T20:15:43+09:00 info: All connector for 'echo-back-server' ready
25
+ 2022-07-03T20:15:43+09:00 info: All connector for 'echo-back' ready
26
+ 2022-07-03T20:15:43+09:00 info: All connector for 'http-connector' ready
27
+ 2022-07-03T20:15:43+09:00 info: All connector for 'graphql-connector' ready
28
+ 2022-07-03T20:15:43+09:00 info: All connector for 'sqlite-connector' ready
29
+ 2022-07-03T20:15:43+09:00 info: All connector for 'postgresql-connector' ready
30
+ 2022-07-03T20:15:43+09:00 info: All connector for 'mqtt-connector' ready
31
+ 2022-07-03T20:15:43+09:00 info: All connector for 'mssql-connector' ready
32
+ 2022-07-03T20:15:43+09:00 info: All connector for 'oracle-connector' ready
33
+ 2022-07-03T20:15:43+09:00 info: All connector for 'mysql-connector' ready
34
+ 2022-07-03T20:15:43+09:00 info: All connector for 'socket-server' ready
35
+ 2022-07-03T20:15:43+09:00 info: ConnectionManager initialization done:
36
+ 2022-07-03T20:20:28+09:00 info: Initializing ConnectionManager...
37
+ 2022-07-03T20:20:28+09:00 info: Connector 'echo-back-server' started to ready
38
+ 2022-07-03T20:20:28+09:00 info: Connector 'echo-back' started to ready
39
+ 2022-07-03T20:20:28+09:00 info: Connector 'http-connector' started to ready
40
+ 2022-07-03T20:20:28+09:00 info: Connector 'graphql-connector' started to ready
41
+ 2022-07-03T20:20:28+09:00 info: Connector 'sqlite-connector' started to ready
42
+ 2022-07-03T20:20:28+09:00 info: Connector 'postgresql-connector' started to ready
43
+ 2022-07-03T20:20:28+09:00 info: Connector 'mqtt-connector' started to ready
44
+ 2022-07-03T20:20:28+09:00 info: Connector 'mssql-connector' started to ready
45
+ 2022-07-03T20:20:28+09:00 info: Connector 'oracle-connector' started to ready
46
+ 2022-07-03T20:20:28+09:00 info: Connector 'mysql-connector' started to ready
47
+ 2022-07-03T20:20:28+09:00 info: Connector 'socket-server' started to ready
48
+ 2022-07-03T20:20:28+09:00 info: echo-back-servers are ready
49
+ 2022-07-03T20:20:28+09:00 info: echo-back connections are ready
50
+ 2022-07-03T20:20:28+09:00 info: http-connector connections are ready
51
+ 2022-07-03T20:20:28+09:00 info: graphql-connector connections are ready
52
+ 2022-07-03T20:20:28+09:00 info: sqlite-connector connections are ready
53
+ 2022-07-03T20:20:28+09:00 info: postgresql-connector connections are ready
54
+ 2022-07-03T20:20:28+09:00 info: mqtt-connector connections are ready
55
+ 2022-07-03T20:20:28+09:00 info: mssql-connector connections are ready
56
+ 2022-07-03T20:20:28+09:00 info: oracle-connector connections are ready
57
+ 2022-07-03T20:20:28+09:00 info: mysql-connector connections are ready
58
+ 2022-07-03T20:20:28+09:00 info: socket servers are ready
59
+ 2022-07-03T20:20:28+09:00 info: All connector for 'echo-back-server' ready
60
+ 2022-07-03T20:20:28+09:00 info: All connector for 'echo-back' ready
61
+ 2022-07-03T20:20:28+09:00 info: All connector for 'http-connector' ready
62
+ 2022-07-03T20:20:28+09:00 info: All connector for 'graphql-connector' ready
63
+ 2022-07-03T20:20:28+09:00 info: All connector for 'sqlite-connector' ready
64
+ 2022-07-03T20:20:28+09:00 info: All connector for 'postgresql-connector' ready
65
+ 2022-07-03T20:20:28+09:00 info: All connector for 'mqtt-connector' ready
66
+ 2022-07-03T20:20:28+09:00 info: All connector for 'mssql-connector' ready
67
+ 2022-07-03T20:20:28+09:00 info: All connector for 'oracle-connector' ready
68
+ 2022-07-03T20:20:28+09:00 info: All connector for 'mysql-connector' ready
69
+ 2022-07-03T20:20:28+09:00 info: All connector for 'socket-server' ready
70
+ 2022-07-03T20:20:28+09:00 info: ConnectionManager initialization done:
71
+ 2022-07-03T20:28:23+09:00 info: Initializing ConnectionManager...
72
+ 2022-07-03T20:28:23+09:00 info: Connector 'echo-back-server' started to ready
73
+ 2022-07-03T20:28:23+09:00 info: Connector 'echo-back' started to ready
74
+ 2022-07-03T20:28:23+09:00 info: Connector 'http-connector' started to ready
75
+ 2022-07-03T20:28:23+09:00 info: Connector 'graphql-connector' started to ready
76
+ 2022-07-03T20:28:23+09:00 info: Connector 'sqlite-connector' started to ready
77
+ 2022-07-03T20:28:23+09:00 info: Connector 'postgresql-connector' started to ready
78
+ 2022-07-03T20:28:23+09:00 info: Connector 'mqtt-connector' started to ready
79
+ 2022-07-03T20:28:23+09:00 info: Connector 'mssql-connector' started to ready
80
+ 2022-07-03T20:28:23+09:00 info: Connector 'oracle-connector' started to ready
81
+ 2022-07-03T20:28:23+09:00 info: Connector 'mysql-connector' started to ready
82
+ 2022-07-03T20:28:23+09:00 info: Connector 'socket-server' started to ready
83
+ 2022-07-03T20:28:23+09:00 info: echo-back-servers are ready
84
+ 2022-07-03T20:28:23+09:00 info: echo-back connections are ready
85
+ 2022-07-03T20:28:23+09:00 info: http-connector connections are ready
86
+ 2022-07-03T20:28:23+09:00 info: graphql-connector connections are ready
87
+ 2022-07-03T20:28:23+09:00 info: sqlite-connector connections are ready
88
+ 2022-07-03T20:28:23+09:00 info: postgresql-connector connections are ready
89
+ 2022-07-03T20:28:23+09:00 info: mqtt-connector connections are ready
90
+ 2022-07-03T20:28:23+09:00 info: mssql-connector connections are ready
91
+ 2022-07-03T20:28:23+09:00 info: oracle-connector connections are ready
92
+ 2022-07-03T20:28:23+09:00 info: mysql-connector connections are ready
93
+ 2022-07-03T20:28:23+09:00 info: socket servers are ready
94
+ 2022-07-03T20:28:23+09:00 info: All connector for 'echo-back-server' ready
95
+ 2022-07-03T20:28:23+09:00 info: All connector for 'echo-back' ready
96
+ 2022-07-03T20:28:23+09:00 info: All connector for 'http-connector' ready
97
+ 2022-07-03T20:28:23+09:00 info: All connector for 'graphql-connector' ready
98
+ 2022-07-03T20:28:23+09:00 info: All connector for 'sqlite-connector' ready
99
+ 2022-07-03T20:28:23+09:00 info: All connector for 'postgresql-connector' ready
100
+ 2022-07-03T20:28:23+09:00 info: All connector for 'mqtt-connector' ready
101
+ 2022-07-03T20:28:23+09:00 info: All connector for 'mssql-connector' ready
102
+ 2022-07-03T20:28:23+09:00 info: All connector for 'oracle-connector' ready
103
+ 2022-07-03T20:28:23+09:00 info: All connector for 'mysql-connector' ready
104
+ 2022-07-03T20:28:23+09:00 info: All connector for 'socket-server' ready
105
+ 2022-07-03T20:28:23+09:00 info: ConnectionManager initialization done:
@@ -0,0 +1,35 @@
1
+ 2022-07-03T21:57:12+09:00 info: Initializing ConnectionManager...
2
+ 2022-07-03T21:57:12+09:00 info: Connector 'echo-back-server' started to ready
3
+ 2022-07-03T21:57:12+09:00 info: Connector 'echo-back' started to ready
4
+ 2022-07-03T21:57:12+09:00 info: Connector 'http-connector' started to ready
5
+ 2022-07-03T21:57:12+09:00 info: Connector 'graphql-connector' started to ready
6
+ 2022-07-03T21:57:12+09:00 info: Connector 'sqlite-connector' started to ready
7
+ 2022-07-03T21:57:12+09:00 info: Connector 'postgresql-connector' started to ready
8
+ 2022-07-03T21:57:12+09:00 info: Connector 'mqtt-connector' started to ready
9
+ 2022-07-03T21:57:12+09:00 info: Connector 'mssql-connector' started to ready
10
+ 2022-07-03T21:57:12+09:00 info: Connector 'oracle-connector' started to ready
11
+ 2022-07-03T21:57:12+09:00 info: Connector 'mysql-connector' started to ready
12
+ 2022-07-03T21:57:12+09:00 info: Connector 'socket-server' started to ready
13
+ 2022-07-03T21:57:12+09:00 info: echo-back-servers are ready
14
+ 2022-07-03T21:57:12+09:00 info: echo-back connections are ready
15
+ 2022-07-03T21:57:12+09:00 info: http-connector connections are ready
16
+ 2022-07-03T21:57:12+09:00 info: graphql-connector connections are ready
17
+ 2022-07-03T21:57:12+09:00 info: sqlite-connector connections are ready
18
+ 2022-07-03T21:57:12+09:00 info: postgresql-connector connections are ready
19
+ 2022-07-03T21:57:12+09:00 info: mqtt-connector connections are ready
20
+ 2022-07-03T21:57:12+09:00 info: mssql-connector connections are ready
21
+ 2022-07-03T21:57:12+09:00 info: oracle-connector connections are ready
22
+ 2022-07-03T21:57:12+09:00 info: mysql-connector connections are ready
23
+ 2022-07-03T21:57:12+09:00 info: socket servers are ready
24
+ 2022-07-03T21:57:12+09:00 info: All connector for 'echo-back-server' ready
25
+ 2022-07-03T21:57:12+09:00 info: All connector for 'echo-back' ready
26
+ 2022-07-03T21:57:12+09:00 info: All connector for 'http-connector' ready
27
+ 2022-07-03T21:57:12+09:00 info: All connector for 'graphql-connector' ready
28
+ 2022-07-03T21:57:12+09:00 info: All connector for 'sqlite-connector' ready
29
+ 2022-07-03T21:57:12+09:00 info: All connector for 'postgresql-connector' ready
30
+ 2022-07-03T21:57:12+09:00 info: All connector for 'mqtt-connector' ready
31
+ 2022-07-03T21:57:12+09:00 info: All connector for 'mssql-connector' ready
32
+ 2022-07-03T21:57:12+09:00 info: All connector for 'oracle-connector' ready
33
+ 2022-07-03T21:57:12+09:00 info: All connector for 'mysql-connector' ready
34
+ 2022-07-03T21:57:12+09:00 info: All connector for 'socket-server' ready
35
+ 2022-07-03T21:57:12+09:00 info: ConnectionManager initialization done:
@@ -0,0 +1,35 @@
1
+ 2022-07-03T22:12:15+09:00 info: Initializing ConnectionManager...
2
+ 2022-07-03T22:12:15+09:00 info: Connector 'echo-back-server' started to ready
3
+ 2022-07-03T22:12:15+09:00 info: Connector 'echo-back' started to ready
4
+ 2022-07-03T22:12:15+09:00 info: Connector 'http-connector' started to ready
5
+ 2022-07-03T22:12:15+09:00 info: Connector 'graphql-connector' started to ready
6
+ 2022-07-03T22:12:15+09:00 info: Connector 'sqlite-connector' started to ready
7
+ 2022-07-03T22:12:15+09:00 info: Connector 'postgresql-connector' started to ready
8
+ 2022-07-03T22:12:15+09:00 info: Connector 'mqtt-connector' started to ready
9
+ 2022-07-03T22:12:15+09:00 info: Connector 'mssql-connector' started to ready
10
+ 2022-07-03T22:12:15+09:00 info: Connector 'oracle-connector' started to ready
11
+ 2022-07-03T22:12:15+09:00 info: Connector 'mysql-connector' started to ready
12
+ 2022-07-03T22:12:15+09:00 info: Connector 'socket-server' started to ready
13
+ 2022-07-03T22:12:15+09:00 info: echo-back-servers are ready
14
+ 2022-07-03T22:12:15+09:00 info: echo-back connections are ready
15
+ 2022-07-03T22:12:15+09:00 info: http-connector connections are ready
16
+ 2022-07-03T22:12:15+09:00 info: graphql-connector connections are ready
17
+ 2022-07-03T22:12:15+09:00 info: sqlite-connector connections are ready
18
+ 2022-07-03T22:12:15+09:00 info: postgresql-connector connections are ready
19
+ 2022-07-03T22:12:15+09:00 info: mqtt-connector connections are ready
20
+ 2022-07-03T22:12:15+09:00 info: mssql-connector connections are ready
21
+ 2022-07-03T22:12:15+09:00 info: oracle-connector connections are ready
22
+ 2022-07-03T22:12:15+09:00 info: mysql-connector connections are ready
23
+ 2022-07-03T22:12:15+09:00 info: socket servers are ready
24
+ 2022-07-03T22:12:15+09:00 info: All connector for 'echo-back-server' ready
25
+ 2022-07-03T22:12:15+09:00 info: All connector for 'echo-back' ready
26
+ 2022-07-03T22:12:15+09:00 info: All connector for 'http-connector' ready
27
+ 2022-07-03T22:12:15+09:00 info: All connector for 'graphql-connector' ready
28
+ 2022-07-03T22:12:15+09:00 info: All connector for 'sqlite-connector' ready
29
+ 2022-07-03T22:12:15+09:00 info: All connector for 'postgresql-connector' ready
30
+ 2022-07-03T22:12:15+09:00 info: All connector for 'mqtt-connector' ready
31
+ 2022-07-03T22:12:15+09:00 info: All connector for 'mssql-connector' ready
32
+ 2022-07-03T22:12:15+09:00 info: All connector for 'oracle-connector' ready
33
+ 2022-07-03T22:12:15+09:00 info: All connector for 'mysql-connector' ready
34
+ 2022-07-03T22:12:15+09:00 info: All connector for 'socket-server' ready
35
+ 2022-07-03T22:12:15+09:00 info: ConnectionManager initialization done:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@operato/scene-label",
3
3
  "description": "Barcode Label component for things-scene",
4
- "version": "1.0.0-alpha.3",
4
+ "version": "1.0.0-alpha.33",
5
5
  "things-scene": true,
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -26,15 +26,15 @@
26
26
  "migration": "things-factory-migration"
27
27
  },
28
28
  "dependencies": {
29
- "@hatiolab/things-scene": "^2.7.34",
30
- "@operato/input": "^1.0.0-alpha.15",
29
+ "@hatiolab/things-scene": "^3.0.18",
30
+ "@operato/barcode": "^1.0.0-beta.45",
31
+ "@operato/input": "^1.0.0-beta.45",
31
32
  "bwip-js": "^3.0.4"
32
33
  },
33
34
  "devDependencies": {
34
35
  "@hatiolab/prettier-config": "^1.0.0",
35
- "@operato/board": "^1.0.0-alpha.15",
36
- "@things-factory/builder": "^5.0.0-alpha.6",
37
- "@things-factory/operato-board": "^5.0.0-alpha.6",
36
+ "@things-factory/builder": "^5.0.0-zeta.14",
37
+ "@things-factory/operato-board": "^5.0.0-zeta.14",
38
38
  "@types/codemirror": "^5.60.5",
39
39
  "@types/w3c-web-usb": "^1.0.5",
40
40
  "@typescript-eslint/eslint-plugin": "^4.33.0",
@@ -61,5 +61,5 @@
61
61
  "prettier --write"
62
62
  ]
63
63
  },
64
- "gitHead": "c0d9e3d83f59884ec05d6e5b5c66346384961972"
64
+ "gitHead": "e5e75469ed573a82fc972e3ad7fd044d94a5e981"
65
65
  }
@@ -9,14 +9,40 @@ const NATURE: ComponentNature = {
9
9
  mutable: false,
10
10
  resizable: true,
11
11
  rotatable: true,
12
- properties: [],
12
+ properties: [
13
+ {
14
+ type: 'checkbox',
15
+ label: 'without-enter',
16
+ name: 'withoutEnter'
17
+ },
18
+ {
19
+ type: 'checkbox',
20
+ label: 'english-only',
21
+ name: 'englishOnly'
22
+ },
23
+ {
24
+ type: 'checkbox',
25
+ label: 'select-after-change',
26
+ name: 'selectAfterChange'
27
+ },
28
+ {
29
+ type: 'checkbox',
30
+ label: 'autofocus',
31
+ name: 'autofocus'
32
+ },
33
+ {
34
+ type: 'checkbox',
35
+ label: 'hide-keyboard',
36
+ name: 'hideKeyboard'
37
+ }
38
+ ],
13
39
  help: 'scene/component/barcode-scanner'
14
40
  }
15
41
 
16
42
  export default class BarcodeScanner extends HTMLOverlayElement {
17
43
  private _data: any
18
44
 
19
- static get nature() {
45
+ get nature() {
20
46
  return NATURE
21
47
  }
22
48
 
@@ -29,6 +55,10 @@ export default class BarcodeScanner extends HTMLOverlayElement {
29
55
  this.executeMappings() // 이전 데이터와 비교하지 않고 매핑을 실행하기 위함
30
56
  }
31
57
 
58
+ select() {
59
+ ;(this.element as OxInputBarcode).input.select()
60
+ }
61
+
32
62
  dispose() {
33
63
  super.dispose()
34
64
  }
@@ -36,14 +66,9 @@ export default class BarcodeScanner extends HTMLOverlayElement {
36
66
  ready() {
37
67
  super.ready()
38
68
  var scanInput = this.element as OxInputBarcode
39
- // 엔터 키 입력 시 컴포넌트 데이터 세팅
40
- scanInput.addEventListener('keyup', (e: Event) => {
41
- if ((e as KeyboardEvent).key === 'Enter') {
42
- e.preventDefault()
43
- if (scanInput.input) {
44
- this.data = scanInput.input.value
45
- }
46
- }
69
+
70
+ scanInput.addEventListener('change', (e: Event) => {
71
+ this.data = scanInput.value
47
72
  })
48
73
 
49
74
  // 스캔 시 컴포넌트 데이터 세팅
@@ -54,7 +79,43 @@ export default class BarcodeScanner extends HTMLOverlayElement {
54
79
  })
55
80
  }
56
81
 
82
+ createElement() {
83
+ super.createElement()
84
+
85
+ if (this.app.isViewMode) {
86
+ const { hideKeyboard, autofocus } = this.state
87
+
88
+ if (hideKeyboard) {
89
+ requestAnimationFrame(() => {
90
+ const input = (this.element as OxInputBarcode).input
91
+ input.addEventListener('focusin', e => {
92
+ input.setAttribute('readonly', '')
93
+ this.select()
94
+
95
+ requestAnimationFrame(() => {
96
+ input.removeAttribute('readonly')
97
+ })
98
+ })
99
+ })
100
+ }
101
+
102
+ if (autofocus) {
103
+ requestAnimationFrame(() => {
104
+ this.select()
105
+ })
106
+ }
107
+ }
108
+ }
109
+
57
110
  setElementProperties(input: OxInputBarcode) {
111
+ const { withoutEnter = false, englishOnly = false, selectAfterChange = false } = this.state
112
+
113
+ input.style.setProperty('--input-font', 'initial')
114
+
115
+ input.withoutEnter = withoutEnter
116
+ input.englishOnly = englishOnly
117
+ input.selectAfterChange = selectAfterChange
118
+
58
119
  input.value = this._data = this.text
59
120
  }
60
121
 
package/src/barcode.ts CHANGED
@@ -243,7 +243,7 @@ export default class Barcode extends RectPath(Shape) {
243
243
  private _canvas?: HTMLCanvasElement
244
244
  private _image: any
245
245
 
246
- static get nature() {
246
+ get nature() {
247
247
  return NATURE
248
248
  }
249
249
 
@@ -3,9 +3,7 @@
3
3
  */
4
4
 
5
5
  import { Component, ComponentNature, Properties, RectPath, Shape } from '@hatiolab/things-scene'
6
-
7
- import { BrowserPrinter } from './direct-print/browser-printer'
8
- import { USBPrinter } from './direct-print/usb-printer'
6
+ import { BrowserPrinter, USBPrinter } from '@operato/barcode'
9
7
 
10
8
  const NATURE: ComponentNature = {
11
9
  mutable: false,
@@ -39,6 +37,11 @@ const NATURE: ComponentNature = {
39
37
  type: 'board-selector',
40
38
  label: 'board id',
41
39
  name: 'boardId'
40
+ },
41
+ {
42
+ type: 'number',
43
+ label: 'copies',
44
+ name: 'copies'
42
45
  }
43
46
  ],
44
47
  'value-property': 'data',
@@ -49,10 +52,6 @@ export default class LabelPrinter extends RectPath(Shape) {
49
52
  private static _image: HTMLImageElement
50
53
  private printer?: USBPrinter | BrowserPrinter
51
54
 
52
- static get nature() {
53
- return NATURE
54
- }
55
-
56
55
  static get image() {
57
56
  if (!LabelPrinter._image) {
58
57
  LabelPrinter._image = new Image()
@@ -62,6 +61,10 @@ export default class LabelPrinter extends RectPath(Shape) {
62
61
  return LabelPrinter._image
63
62
  }
64
63
 
64
+ get nature() {
65
+ return NATURE
66
+ }
67
+
65
68
  dispose() {
66
69
  super.dispose()
67
70
  }
@@ -98,7 +101,7 @@ export default class LabelPrinter extends RectPath(Shape) {
98
101
  return
99
102
  }
100
103
 
101
- var { directPrinter, boardId, vendorId } = this.state
104
+ var { directPrinter, boardId, vendorId, copies = 1 } = this.state
102
105
 
103
106
  var searchParams = new URLSearchParams()
104
107
  for (var key in data) {
@@ -126,7 +129,9 @@ export default class LabelPrinter extends RectPath(Shape) {
126
129
  : new BrowserPrinter()
127
130
  }
128
131
 
129
- await this.printer.print(command)
132
+ for (var i = 0; i < copies; i++) {
133
+ await this.printer.print(command)
134
+ }
130
135
  } catch (err) {
131
136
  throw new Error(err as string)
132
137
  }
@@ -5,5 +5,9 @@
5
5
  "label.paddingwidth": "padding-w",
6
6
  "label.paddingheight": "padding-h",
7
7
  "label.vendor id": "vendor id",
8
- "label.board id": "board id"
8
+ "label.board id": "board id",
9
+ "label.copies": "copies",
10
+ "label.without-enter": "without enter key",
11
+ "label.english-only": "english input only",
12
+ "label.select-after-change": "select over change"
9
13
  }
@@ -5,5 +5,9 @@
5
5
  "label.paddingwidth": "패딩폭",
6
6
  "label.paddingheight": "패딩높이",
7
7
  "label.vendor id": "공급자 ID",
8
- "label.board id": "보드 ID"
8
+ "label.board id": "보드 ID",
9
+ "label.copies": "프린트 매수",
10
+ "label.without-enter": "스캔시 엔터키 붙이지않음",
11
+ "label.english-only": "영어만 입력받음",
12
+ "label.select-after-change": "변경후 전체 선택"
9
13
  }
@@ -5,5 +5,9 @@
5
5
  "label.paddingwidth": "padding-w",
6
6
  "label.paddingheight": "padding-h",
7
7
  "label.vendor id": "penjual id",
8
- "label.board id": "board id"
9
- }
8
+ "label.board id": "board id",
9
+ "label.copies": "copies",
10
+ "label.without-enter": "[ms] without enter key",
11
+ "label.english-only": "[ms] english input only",
12
+ "label.select-after-change": "[ms] select over change"
13
+ }
@@ -1,9 +1,13 @@
1
1
  {
2
- "label.direct-printer": "[zh] direct printer",
3
- "label.monochrome": "[zh] monochrome",
2
+ "label.direct-printer": "direct printer",
3
+ "label.monochrome": "单色",
4
4
  "label.symbol": "符号",
5
5
  "label.paddingwidth": "间隔-w",
6
6
  "label.paddingheight": "间隔-h",
7
7
  "label.vendor id": "供应商 id",
8
- "label.board id": "看板 id"
9
- }
8
+ "label.board id": "看板 id",
9
+ "label.copies": "印数",
10
+ "label.without-enter": "没有回车键",
11
+ "label.english-only": "仅英文输入",
12
+ "label.select-after-change": "选择过度变化"
13
+ }