@operato/scene-manufacturing 7.0.6 → 7.0.7
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/CHANGELOG.md +9 -0
- package/db.sqlite +0 -0
- package/dist/tact-timer.js +20 -18
- package/dist/tact-timer.js.map +1 -1
- package/helps/scene/component/manufacturing/tact-timer.ja.md +39 -39
- package/helps/scene/component/manufacturing/tact-timer.ko.md +8 -8
- package/helps/scene/component/manufacturing/tact-timer.md +38 -38
- package/helps/scene/component/manufacturing/tact-timer.ms.md +45 -42
- package/helps/scene/component/manufacturing/tact-timer.zh.md +45 -45
- package/logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json +15 -0
- package/logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json +15 -5
- package/logs/application-2024-07-12-16.log +105 -0
- package/logs/application-2024-07-12-17.log +210 -0
- package/logs/application-2024-07-12-19.log +46 -0
- package/logs/connections-2024-07-12-16.log +50 -0
- package/logs/connections-2024-07-12-17.log +100 -0
- package/logs/connections-2024-07-12-19.log +94 -0
- package/package.json +2 -2
- package/src/tact-timer.ts +25 -21
- package/translations/en.json +10 -10
- package/translations/ja.json +10 -10
- package/translations/ko.json +4 -4
- package/translations/ms.json +9 -9
- package/translations/zh.json +9 -9
- package/tsconfig.tsbuildinfo +1 -1
- package/cache/translations/system/en.json +0 -1
- package/cache/translations/system/ko.json +0 -1
- package/icons/tact-timer-mask.svg +0 -37
- package/logs/connections-2024-06-27-22.log +0 -47
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
2024-07-12T17:15:50+09:00 info: Initializing ConnectionManager...
|
|
2
|
+
2024-07-12T17:15:50+09:00 info: Connector 'echo-back-server' started to ready
|
|
3
|
+
2024-07-12T17:15:50+09:00 info: Connector 'echo-back' started to ready
|
|
4
|
+
2024-07-12T17:15:50+09:00 info: Connector 'http-connector' started to ready
|
|
5
|
+
2024-07-12T17:15:50+09:00 info: Connector 'graphql-connector' started to ready
|
|
6
|
+
2024-07-12T17:15:50+09:00 info: Connector 'sqlite-connector' started to ready
|
|
7
|
+
2024-07-12T17:15:50+09:00 info: Connector 'postgresql-connector' started to ready
|
|
8
|
+
2024-07-12T17:15:50+09:00 info: Connector 'mqtt-connector' started to ready
|
|
9
|
+
2024-07-12T17:15:50+09:00 info: Connector 'mssql-connector' started to ready
|
|
10
|
+
2024-07-12T17:15:50+09:00 info: Connector 'oracle-connector' started to ready
|
|
11
|
+
2024-07-12T17:15:50+09:00 info: Connector 'mysql-connector' started to ready
|
|
12
|
+
2024-07-12T17:15:50+09:00 info: Connector 'socket-server' started to ready
|
|
13
|
+
2024-07-12T17:15:50+09:00 info: Connector 'operato-connector' started to ready
|
|
14
|
+
2024-07-12T17:15:50+09:00 info: Connector 'email-connector' started to ready
|
|
15
|
+
2024-07-12T17:15:50+09:00 info: Connector 'influxdb-connector' started to ready
|
|
16
|
+
2024-07-12T17:15:50+09:00 info: Connector 'msgraph-connector' started to ready
|
|
17
|
+
2024-07-12T17:15:50+09:00 info: Connector 'proxy-connector' started to ready
|
|
18
|
+
2024-07-12T17:15:50+09:00 info: echo-back-servers are ready
|
|
19
|
+
2024-07-12T17:15:50+09:00 info: echo-back connections are ready
|
|
20
|
+
2024-07-12T17:15:50+09:00 info: http-connector connections are ready
|
|
21
|
+
2024-07-12T17:15:50+09:00 info: graphql-connector connections are ready
|
|
22
|
+
2024-07-12T17:15:50+09:00 info: sqlite-connector connections are ready
|
|
23
|
+
2024-07-12T17:15:50+09:00 info: postgresql-connector connections are ready
|
|
24
|
+
2024-07-12T17:15:50+09:00 info: mqtt-connector connections are ready
|
|
25
|
+
2024-07-12T17:15:50+09:00 info: mssql-connector connections are ready
|
|
26
|
+
2024-07-12T17:15:50+09:00 info: oracle-connector connections are ready
|
|
27
|
+
2024-07-12T17:15:50+09:00 info: mysql-connector connections are ready
|
|
28
|
+
2024-07-12T17:15:50+09:00 info: socket servers are ready
|
|
29
|
+
2024-07-12T17:15:50+09:00 info: operato-connector connections are ready
|
|
30
|
+
2024-07-12T17:15:50+09:00 info: email connections are ready
|
|
31
|
+
2024-07-12T17:15:50+09:00 info: influxdb connections are ready
|
|
32
|
+
2024-07-12T17:15:50+09:00 info: msgraph-connector connections are ready
|
|
33
|
+
2024-07-12T17:15:50+09:00 info: proxy-connector connections are ready
|
|
34
|
+
2024-07-12T17:15:50+09:00 info: All connector for 'echo-back-server' ready
|
|
35
|
+
2024-07-12T17:15:50+09:00 info: All connector for 'echo-back' ready
|
|
36
|
+
2024-07-12T17:15:50+09:00 info: All connector for 'http-connector' ready
|
|
37
|
+
2024-07-12T17:15:50+09:00 info: All connector for 'graphql-connector' ready
|
|
38
|
+
2024-07-12T17:15:50+09:00 info: All connector for 'sqlite-connector' ready
|
|
39
|
+
2024-07-12T17:15:50+09:00 info: All connector for 'postgresql-connector' ready
|
|
40
|
+
2024-07-12T17:15:50+09:00 info: All connector for 'mqtt-connector' ready
|
|
41
|
+
2024-07-12T17:15:50+09:00 info: All connector for 'mssql-connector' ready
|
|
42
|
+
2024-07-12T17:15:50+09:00 info: All connector for 'oracle-connector' ready
|
|
43
|
+
2024-07-12T17:15:50+09:00 info: All connector for 'mysql-connector' ready
|
|
44
|
+
2024-07-12T17:15:50+09:00 info: All connector for 'socket-server' ready
|
|
45
|
+
2024-07-12T17:15:50+09:00 info: All connector for 'operato-connector' ready
|
|
46
|
+
2024-07-12T17:15:50+09:00 info: All connector for 'email-connector' ready
|
|
47
|
+
2024-07-12T17:15:50+09:00 info: All connector for 'influxdb-connector' ready
|
|
48
|
+
2024-07-12T17:15:50+09:00 info: All connector for 'msgraph-connector' ready
|
|
49
|
+
2024-07-12T17:15:50+09:00 info: All connector for 'proxy-connector' ready
|
|
50
|
+
2024-07-12T17:15:50+09:00 info: ConnectionManager initialization done:
|
|
51
|
+
2024-07-12T17:27:10+09:00 info: Initializing ConnectionManager...
|
|
52
|
+
2024-07-12T17:27:10+09:00 info: Connector 'echo-back-server' started to ready
|
|
53
|
+
2024-07-12T17:27:10+09:00 info: Connector 'echo-back' started to ready
|
|
54
|
+
2024-07-12T17:27:10+09:00 info: Connector 'http-connector' started to ready
|
|
55
|
+
2024-07-12T17:27:10+09:00 info: Connector 'graphql-connector' started to ready
|
|
56
|
+
2024-07-12T17:27:10+09:00 info: Connector 'sqlite-connector' started to ready
|
|
57
|
+
2024-07-12T17:27:10+09:00 info: Connector 'postgresql-connector' started to ready
|
|
58
|
+
2024-07-12T17:27:10+09:00 info: Connector 'mqtt-connector' started to ready
|
|
59
|
+
2024-07-12T17:27:10+09:00 info: Connector 'mssql-connector' started to ready
|
|
60
|
+
2024-07-12T17:27:10+09:00 info: Connector 'oracle-connector' started to ready
|
|
61
|
+
2024-07-12T17:27:10+09:00 info: Connector 'mysql-connector' started to ready
|
|
62
|
+
2024-07-12T17:27:10+09:00 info: Connector 'socket-server' started to ready
|
|
63
|
+
2024-07-12T17:27:10+09:00 info: Connector 'operato-connector' started to ready
|
|
64
|
+
2024-07-12T17:27:10+09:00 info: Connector 'email-connector' started to ready
|
|
65
|
+
2024-07-12T17:27:10+09:00 info: Connector 'influxdb-connector' started to ready
|
|
66
|
+
2024-07-12T17:27:10+09:00 info: Connector 'msgraph-connector' started to ready
|
|
67
|
+
2024-07-12T17:27:10+09:00 info: Connector 'proxy-connector' started to ready
|
|
68
|
+
2024-07-12T17:27:10+09:00 info: echo-back-servers are ready
|
|
69
|
+
2024-07-12T17:27:10+09:00 info: echo-back connections are ready
|
|
70
|
+
2024-07-12T17:27:10+09:00 info: http-connector connections are ready
|
|
71
|
+
2024-07-12T17:27:10+09:00 info: graphql-connector connections are ready
|
|
72
|
+
2024-07-12T17:27:10+09:00 info: sqlite-connector connections are ready
|
|
73
|
+
2024-07-12T17:27:10+09:00 info: postgresql-connector connections are ready
|
|
74
|
+
2024-07-12T17:27:10+09:00 info: mqtt-connector connections are ready
|
|
75
|
+
2024-07-12T17:27:10+09:00 info: mssql-connector connections are ready
|
|
76
|
+
2024-07-12T17:27:10+09:00 info: oracle-connector connections are ready
|
|
77
|
+
2024-07-12T17:27:10+09:00 info: mysql-connector connections are ready
|
|
78
|
+
2024-07-12T17:27:10+09:00 info: socket servers are ready
|
|
79
|
+
2024-07-12T17:27:10+09:00 info: operato-connector connections are ready
|
|
80
|
+
2024-07-12T17:27:10+09:00 info: email connections are ready
|
|
81
|
+
2024-07-12T17:27:10+09:00 info: influxdb connections are ready
|
|
82
|
+
2024-07-12T17:27:10+09:00 info: msgraph-connector connections are ready
|
|
83
|
+
2024-07-12T17:27:10+09:00 info: proxy-connector connections are ready
|
|
84
|
+
2024-07-12T17:27:10+09:00 info: All connector for 'echo-back-server' ready
|
|
85
|
+
2024-07-12T17:27:10+09:00 info: All connector for 'echo-back' ready
|
|
86
|
+
2024-07-12T17:27:10+09:00 info: All connector for 'http-connector' ready
|
|
87
|
+
2024-07-12T17:27:10+09:00 info: All connector for 'graphql-connector' ready
|
|
88
|
+
2024-07-12T17:27:10+09:00 info: All connector for 'sqlite-connector' ready
|
|
89
|
+
2024-07-12T17:27:10+09:00 info: All connector for 'postgresql-connector' ready
|
|
90
|
+
2024-07-12T17:27:10+09:00 info: All connector for 'mqtt-connector' ready
|
|
91
|
+
2024-07-12T17:27:10+09:00 info: All connector for 'mssql-connector' ready
|
|
92
|
+
2024-07-12T17:27:10+09:00 info: All connector for 'oracle-connector' ready
|
|
93
|
+
2024-07-12T17:27:10+09:00 info: All connector for 'mysql-connector' ready
|
|
94
|
+
2024-07-12T17:27:10+09:00 info: All connector for 'socket-server' ready
|
|
95
|
+
2024-07-12T17:27:10+09:00 info: All connector for 'operato-connector' ready
|
|
96
|
+
2024-07-12T17:27:10+09:00 info: All connector for 'email-connector' ready
|
|
97
|
+
2024-07-12T17:27:10+09:00 info: All connector for 'influxdb-connector' ready
|
|
98
|
+
2024-07-12T17:27:10+09:00 info: All connector for 'msgraph-connector' ready
|
|
99
|
+
2024-07-12T17:27:10+09:00 info: All connector for 'proxy-connector' ready
|
|
100
|
+
2024-07-12T17:27:10+09:00 info: ConnectionManager initialization done:
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
2024-07-12T19:47:56+09:00 info: Initializing ConnectionManager...
|
|
2
|
+
2024-07-12T19:47:56+09:00 info: Connector 'echo-back-server' started to ready
|
|
3
|
+
2024-07-12T19:47:56+09:00 info: Connector 'echo-back' started to ready
|
|
4
|
+
2024-07-12T19:47:56+09:00 info: Connector 'http-connector' started to ready
|
|
5
|
+
2024-07-12T19:47:56+09:00 info: Connector 'graphql-connector' started to ready
|
|
6
|
+
2024-07-12T19:47:56+09:00 info: Connector 'sqlite-connector' started to ready
|
|
7
|
+
2024-07-12T19:47:56+09:00 info: Connector 'postgresql-connector' started to ready
|
|
8
|
+
2024-07-12T19:47:56+09:00 info: Connector 'mqtt-connector' started to ready
|
|
9
|
+
2024-07-12T19:47:56+09:00 info: Connector 'mssql-connector' started to ready
|
|
10
|
+
2024-07-12T19:47:56+09:00 info: Connector 'oracle-connector' started to ready
|
|
11
|
+
2024-07-12T19:47:56+09:00 info: Connector 'mysql-connector' started to ready
|
|
12
|
+
2024-07-12T19:47:56+09:00 info: Connector 'socket-server' started to ready
|
|
13
|
+
2024-07-12T19:47:56+09:00 info: Connector 'operato-connector' started to ready
|
|
14
|
+
2024-07-12T19:47:56+09:00 info: Connector 'email-connector' started to ready
|
|
15
|
+
2024-07-12T19:47:56+09:00 info: Connector 'influxdb-connector' started to ready
|
|
16
|
+
2024-07-12T19:47:56+09:00 info: Connector 'msgraph-connector' started to ready
|
|
17
|
+
2024-07-12T19:47:56+09:00 info: echo-back-servers are ready
|
|
18
|
+
2024-07-12T19:47:56+09:00 info: echo-back connections are ready
|
|
19
|
+
2024-07-12T19:47:56+09:00 info: http-connector connections are ready
|
|
20
|
+
2024-07-12T19:47:56+09:00 info: graphql-connector connections are ready
|
|
21
|
+
2024-07-12T19:47:56+09:00 info: sqlite-connector connections are ready
|
|
22
|
+
2024-07-12T19:47:56+09:00 info: postgresql-connector connections are ready
|
|
23
|
+
2024-07-12T19:47:56+09:00 info: mqtt-connector connections are ready
|
|
24
|
+
2024-07-12T19:47:56+09:00 info: mssql-connector connections are ready
|
|
25
|
+
2024-07-12T19:47:56+09:00 info: oracle-connector connections are ready
|
|
26
|
+
2024-07-12T19:47:56+09:00 info: mysql-connector connections are ready
|
|
27
|
+
2024-07-12T19:47:56+09:00 info: socket servers are ready
|
|
28
|
+
2024-07-12T19:47:56+09:00 info: graphql-connector connections are ready
|
|
29
|
+
2024-07-12T19:47:56+09:00 info: email connections are ready
|
|
30
|
+
2024-07-12T19:47:56+09:00 info: influxdb connections are ready
|
|
31
|
+
2024-07-12T19:47:56+09:00 info: msgraph-connector connections are ready
|
|
32
|
+
2024-07-12T19:47:56+09:00 info: All connector for 'echo-back-server' ready
|
|
33
|
+
2024-07-12T19:47:56+09:00 info: All connector for 'echo-back' ready
|
|
34
|
+
2024-07-12T19:47:56+09:00 info: All connector for 'http-connector' ready
|
|
35
|
+
2024-07-12T19:47:56+09:00 info: All connector for 'graphql-connector' ready
|
|
36
|
+
2024-07-12T19:47:56+09:00 info: All connector for 'sqlite-connector' ready
|
|
37
|
+
2024-07-12T19:47:56+09:00 info: All connector for 'postgresql-connector' ready
|
|
38
|
+
2024-07-12T19:47:56+09:00 info: All connector for 'mqtt-connector' ready
|
|
39
|
+
2024-07-12T19:47:56+09:00 info: All connector for 'mssql-connector' ready
|
|
40
|
+
2024-07-12T19:47:56+09:00 info: All connector for 'oracle-connector' ready
|
|
41
|
+
2024-07-12T19:47:56+09:00 info: All connector for 'mysql-connector' ready
|
|
42
|
+
2024-07-12T19:47:56+09:00 info: All connector for 'socket-server' ready
|
|
43
|
+
2024-07-12T19:47:56+09:00 info: All connector for 'operato-connector' ready
|
|
44
|
+
2024-07-12T19:47:56+09:00 info: All connector for 'email-connector' ready
|
|
45
|
+
2024-07-12T19:47:56+09:00 info: All connector for 'influxdb-connector' ready
|
|
46
|
+
2024-07-12T19:47:56+09:00 info: All connector for 'msgraph-connector' ready
|
|
47
|
+
2024-07-12T19:47:56+09:00 info: ConnectionManager initialization done:
|
|
48
|
+
2024-07-12T19:53:56+09:00 info: Initializing ConnectionManager...
|
|
49
|
+
2024-07-12T19:53:56+09:00 info: Connector 'echo-back-server' started to ready
|
|
50
|
+
2024-07-12T19:53:56+09:00 info: Connector 'echo-back' started to ready
|
|
51
|
+
2024-07-12T19:53:56+09:00 info: Connector 'http-connector' started to ready
|
|
52
|
+
2024-07-12T19:53:56+09:00 info: Connector 'graphql-connector' started to ready
|
|
53
|
+
2024-07-12T19:53:56+09:00 info: Connector 'sqlite-connector' started to ready
|
|
54
|
+
2024-07-12T19:53:56+09:00 info: Connector 'postgresql-connector' started to ready
|
|
55
|
+
2024-07-12T19:53:56+09:00 info: Connector 'mqtt-connector' started to ready
|
|
56
|
+
2024-07-12T19:53:56+09:00 info: Connector 'mssql-connector' started to ready
|
|
57
|
+
2024-07-12T19:53:56+09:00 info: Connector 'oracle-connector' started to ready
|
|
58
|
+
2024-07-12T19:53:56+09:00 info: Connector 'mysql-connector' started to ready
|
|
59
|
+
2024-07-12T19:53:56+09:00 info: Connector 'socket-server' started to ready
|
|
60
|
+
2024-07-12T19:53:56+09:00 info: Connector 'operato-connector' started to ready
|
|
61
|
+
2024-07-12T19:53:56+09:00 info: Connector 'email-connector' started to ready
|
|
62
|
+
2024-07-12T19:53:56+09:00 info: Connector 'influxdb-connector' started to ready
|
|
63
|
+
2024-07-12T19:53:56+09:00 info: Connector 'msgraph-connector' started to ready
|
|
64
|
+
2024-07-12T19:53:56+09:00 info: echo-back-servers are ready
|
|
65
|
+
2024-07-12T19:53:56+09:00 info: echo-back connections are ready
|
|
66
|
+
2024-07-12T19:53:56+09:00 info: http-connector connections are ready
|
|
67
|
+
2024-07-12T19:53:56+09:00 info: graphql-connector connections are ready
|
|
68
|
+
2024-07-12T19:53:56+09:00 info: sqlite-connector connections are ready
|
|
69
|
+
2024-07-12T19:53:56+09:00 info: postgresql-connector connections are ready
|
|
70
|
+
2024-07-12T19:53:56+09:00 info: mqtt-connector connections are ready
|
|
71
|
+
2024-07-12T19:53:56+09:00 info: mssql-connector connections are ready
|
|
72
|
+
2024-07-12T19:53:56+09:00 info: oracle-connector connections are ready
|
|
73
|
+
2024-07-12T19:53:56+09:00 info: mysql-connector connections are ready
|
|
74
|
+
2024-07-12T19:53:56+09:00 info: socket servers are ready
|
|
75
|
+
2024-07-12T19:53:56+09:00 info: graphql-connector connections are ready
|
|
76
|
+
2024-07-12T19:53:56+09:00 info: email connections are ready
|
|
77
|
+
2024-07-12T19:53:56+09:00 info: influxdb connections are ready
|
|
78
|
+
2024-07-12T19:53:56+09:00 info: msgraph-connector connections are ready
|
|
79
|
+
2024-07-12T19:53:56+09:00 info: All connector for 'echo-back-server' ready
|
|
80
|
+
2024-07-12T19:53:56+09:00 info: All connector for 'echo-back' ready
|
|
81
|
+
2024-07-12T19:53:56+09:00 info: All connector for 'http-connector' ready
|
|
82
|
+
2024-07-12T19:53:56+09:00 info: All connector for 'graphql-connector' ready
|
|
83
|
+
2024-07-12T19:53:56+09:00 info: All connector for 'sqlite-connector' ready
|
|
84
|
+
2024-07-12T19:53:56+09:00 info: All connector for 'postgresql-connector' ready
|
|
85
|
+
2024-07-12T19:53:56+09:00 info: All connector for 'mqtt-connector' ready
|
|
86
|
+
2024-07-12T19:53:56+09:00 info: All connector for 'mssql-connector' ready
|
|
87
|
+
2024-07-12T19:53:56+09:00 info: All connector for 'oracle-connector' ready
|
|
88
|
+
2024-07-12T19:53:56+09:00 info: All connector for 'mysql-connector' ready
|
|
89
|
+
2024-07-12T19:53:56+09:00 info: All connector for 'socket-server' ready
|
|
90
|
+
2024-07-12T19:53:56+09:00 info: All connector for 'operato-connector' ready
|
|
91
|
+
2024-07-12T19:53:56+09:00 info: All connector for 'email-connector' ready
|
|
92
|
+
2024-07-12T19:53:56+09:00 info: All connector for 'influxdb-connector' ready
|
|
93
|
+
2024-07-12T19:53:56+09:00 info: All connector for 'msgraph-connector' ready
|
|
94
|
+
2024-07-12T19:53:56+09:00 info: ConnectionManager initialization done:
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@operato/scene-manufacturing",
|
|
3
3
|
"description": "Things scene components for manufacturing industry",
|
|
4
|
-
"version": "7.0.
|
|
4
|
+
"version": "7.0.7",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"things-scene": true,
|
|
7
7
|
"author": "heartyoh",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"prettier --write"
|
|
58
58
|
]
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "06b50d5c52efccfb055e2244cd6d97c4f496eda8"
|
|
61
61
|
}
|
package/src/tact-timer.ts
CHANGED
|
@@ -40,23 +40,23 @@ const NATURE: ComponentNature = {
|
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
type: 'color',
|
|
43
|
-
label: '
|
|
44
|
-
name: '
|
|
43
|
+
label: 'before-due-progress-color',
|
|
44
|
+
name: 'beforeDueProgressColor'
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
type: 'color',
|
|
48
|
-
label: '
|
|
49
|
-
name: '
|
|
48
|
+
label: 'over-due-progress-color',
|
|
49
|
+
name: 'overDueProgressColor'
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
type: 'color',
|
|
53
|
-
label: '
|
|
54
|
-
name: '
|
|
53
|
+
label: 'before-due-font-color',
|
|
54
|
+
name: 'beforeDueFontColor'
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
57
|
type: 'color',
|
|
58
|
-
label: '
|
|
59
|
-
name: '
|
|
58
|
+
label: 'over-due-font-color',
|
|
59
|
+
name: 'overDueFontColor'
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
62
|
type: 'color',
|
|
@@ -115,11 +115,11 @@ export default class TactTimer extends RectPath(Shape) {
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
start() {
|
|
118
|
-
const { startTime, endTime } = this.state
|
|
118
|
+
const { startTime, endTime, hidden } = this.state
|
|
119
119
|
const start = this.parseTime(startTime)
|
|
120
120
|
const end = this.parseTime(endTime)
|
|
121
121
|
|
|
122
|
-
if (start && end) {
|
|
122
|
+
if (start && end && !hidden) {
|
|
123
123
|
this._due = end.getTime()
|
|
124
124
|
this._start = start.getTime()
|
|
125
125
|
this.counting()
|
|
@@ -127,9 +127,10 @@ export default class TactTimer extends RectPath(Shape) {
|
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
onchange(after: Properties) {
|
|
130
|
-
if ('startTime' in after || 'endTime' in after) {
|
|
130
|
+
if ('startTime' in after || 'endTime' in after || 'hidden' in after) {
|
|
131
131
|
this.start()
|
|
132
132
|
}
|
|
133
|
+
|
|
133
134
|
if ('maskColor' in after) {
|
|
134
135
|
delete this.imageElement
|
|
135
136
|
}
|
|
@@ -148,14 +149,17 @@ export default class TactTimer extends RectPath(Shape) {
|
|
|
148
149
|
}
|
|
149
150
|
|
|
150
151
|
counting() {
|
|
151
|
-
|
|
152
|
+
const { hidden } = this.state
|
|
153
|
+
if (this.disposed || hidden) {
|
|
152
154
|
return
|
|
153
155
|
}
|
|
154
156
|
|
|
155
157
|
requestAnimationFrame(() => {
|
|
156
|
-
const { showTimer } = this.state
|
|
158
|
+
const { showTimer, beforeDueFontColor, overDueFontColor, fontColor } = this.state
|
|
157
159
|
const countdown = this.countdown
|
|
158
160
|
|
|
161
|
+
this.setState('fontColor', (this.countdown > 0 ? beforeDueFontColor : overDueFontColor) || fontColor)
|
|
162
|
+
|
|
159
163
|
if (showTimer) {
|
|
160
164
|
const text = format(Math.abs(countdown), this.getState('format'))
|
|
161
165
|
this.text = text
|
|
@@ -180,10 +184,10 @@ export default class TactTimer extends RectPath(Shape) {
|
|
|
180
184
|
round = 0,
|
|
181
185
|
fontColor,
|
|
182
186
|
maskColor,
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
+
beforeDueFontColor,
|
|
188
|
+
overDueFontColor,
|
|
189
|
+
beforeDueProgressColor = 'transparent',
|
|
190
|
+
overDueProgressColor = 'transparent',
|
|
187
191
|
underThresholdColor = 'transparent',
|
|
188
192
|
progressDirection = 'increase',
|
|
189
193
|
progressThreshold = 0,
|
|
@@ -222,19 +226,19 @@ export default class TactTimer extends RectPath(Shape) {
|
|
|
222
226
|
context.fillStyle = increase
|
|
223
227
|
? underThreshold
|
|
224
228
|
? underThresholdColor
|
|
225
|
-
:
|
|
226
|
-
:
|
|
229
|
+
: beforeDueProgressColor
|
|
230
|
+
: overDueProgressColor
|
|
227
231
|
context.fill()
|
|
228
232
|
|
|
229
233
|
context.beginPath()
|
|
230
234
|
}
|
|
231
235
|
|
|
232
236
|
const image = this.getImageElement()
|
|
233
|
-
this.drawImage(context, image!, left, top, width, height)
|
|
237
|
+
this.drawImage(context, image!, left - 2, top - 2, width + 4, height + 4)
|
|
234
238
|
|
|
235
239
|
context.roundRect(left, top, width, height, round)
|
|
236
240
|
|
|
237
|
-
this.setState('fontColor', (increase ?
|
|
241
|
+
this.setState('fontColor', (increase ? beforeDueFontColor : overDueFontColor) || fontColor)
|
|
238
242
|
}
|
|
239
243
|
|
|
240
244
|
postrender(context: CanvasRenderingContext2D) {
|
package/translations/en.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"component.tact-timer": "tact timer",
|
|
3
|
-
"label.
|
|
4
|
-
"label.
|
|
5
|
-
"label.
|
|
6
|
-
"label.
|
|
7
|
-
"label.
|
|
8
|
-
"label.progress-direction": "
|
|
9
|
-
"label.progress-threshold": "
|
|
10
|
-
"label.tact-time": "
|
|
11
|
-
"label.under-threshold-color": "
|
|
12
|
-
"label.show-progress": "show progress",
|
|
3
|
+
"label.before-due-progress-color": "before due progress color",
|
|
4
|
+
"label.before-due-font-color": "before due font color",
|
|
5
|
+
"label.over-due-progress-color": "over due progress color",
|
|
6
|
+
"label.over-due-font-color": "over due font color",
|
|
7
|
+
"label.format": "format",
|
|
8
|
+
"label.progress-direction": "progress direction",
|
|
9
|
+
"label.progress-threshold": "progress threshold",
|
|
10
|
+
"label.tact-time": "tact time",
|
|
11
|
+
"label.under-threshold-color": "under threshold color",
|
|
12
|
+
"label.show-progress": "show progress color",
|
|
13
13
|
"label.show-timer": "show timer",
|
|
14
14
|
"label.start-time": "start time",
|
|
15
15
|
"label.end-time": "end time",
|
package/translations/ja.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
|
-
"component.tact-timer": "
|
|
3
|
-
"label.
|
|
4
|
-
"label.
|
|
2
|
+
"component.tact-timer": "工程標準時間タイマー",
|
|
3
|
+
"label.before-due-progress-color": "期限前進行色",
|
|
4
|
+
"label.before-due-font-color": "期限前フォント色",
|
|
5
|
+
"label.over-due-progress-color": "期限後進行色",
|
|
6
|
+
"label.over-due-font-color": "期限後フォント色",
|
|
5
7
|
"label.format": "フォーマット",
|
|
6
|
-
"label.increase-font-color": "フォント色の増加",
|
|
7
|
-
"label.increase-progress-color": "進行色の増加",
|
|
8
8
|
"label.progress-direction": "進行方向",
|
|
9
|
-
"label.progress-threshold": "
|
|
10
|
-
"label.tact-time": "
|
|
11
|
-
"label.under-threshold-color": "
|
|
12
|
-
"label.show-progress": "
|
|
9
|
+
"label.progress-threshold": "進行しきい値",
|
|
10
|
+
"label.tact-time": "tact time",
|
|
11
|
+
"label.under-threshold-color": "しきい値以下の色",
|
|
12
|
+
"label.show-progress": "進行色を表示",
|
|
13
13
|
"label.show-timer": "タイマーを表示",
|
|
14
14
|
"label.start-time": "開始時間",
|
|
15
15
|
"label.end-time": "終了時間",
|
|
16
|
-
"label.tact-timer-mask-color": "
|
|
16
|
+
"label.tact-timer-mask-color": "マスク色"
|
|
17
17
|
}
|
package/translations/ko.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"component.tact-timer": "공정표준시간 타이머",
|
|
3
|
-
"label.
|
|
4
|
-
"label.
|
|
3
|
+
"label.before-due-progress-color": "만기이전 진행색상",
|
|
4
|
+
"label.before-due-font-color": "만기이전 폰트색상",
|
|
5
|
+
"label.over-due-progress-color": "만기이후 진행색상",
|
|
6
|
+
"label.over-due-font-color": "만기이후 폰트색상",
|
|
5
7
|
"label.format": "포맷",
|
|
6
|
-
"label.increase-font-color": "증가 폰트색상",
|
|
7
|
-
"label.increase-progress-color": "증가 진행색상",
|
|
8
8
|
"label.progress-direction": "진행 방향",
|
|
9
9
|
"label.progress-threshold": "진행 임계값",
|
|
10
10
|
"label.tact-time": "tact time",
|
package/translations/ms.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
-
"component.tact-timer": "pemasa
|
|
3
|
-
"label.
|
|
4
|
-
"label.
|
|
2
|
+
"component.tact-timer": "pemasa masa standard proses",
|
|
3
|
+
"label.before-due-progress-color": "warna kemajuan sebelum tarikh akhir",
|
|
4
|
+
"label.before-due-font-color": "warna fon sebelum tarikh akhir",
|
|
5
|
+
"label.over-due-progress-color": "warna kemajuan selepas tarikh akhir",
|
|
6
|
+
"label.over-due-font-color": "warna fon selepas tarikh akhir",
|
|
5
7
|
"label.format": "format",
|
|
6
|
-
"label.increase-font-color": "warna fon meningkat",
|
|
7
|
-
"label.increase-progress-color": "warna kemajuan meningkat",
|
|
8
8
|
"label.progress-direction": "arah kemajuan",
|
|
9
9
|
"label.progress-threshold": "ambang kemajuan",
|
|
10
|
-
"label.tact-time": "
|
|
11
|
-
"label.under-threshold-color": "warna bawah ambang",
|
|
12
|
-
"label.show-progress": "
|
|
13
|
-
"label.show-timer": "
|
|
10
|
+
"label.tact-time": "tact time",
|
|
11
|
+
"label.under-threshold-color": "warna di bawah ambang",
|
|
12
|
+
"label.show-progress": "tunjukkan warna kemajuan",
|
|
13
|
+
"label.show-timer": "tunjukkan pemasa",
|
|
14
14
|
"label.start-time": "masa mula",
|
|
15
15
|
"label.end-time": "masa tamat",
|
|
16
16
|
"label.tact-timer-mask-color": "warna topeng"
|
package/translations/zh.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
|
-
"component.tact-timer": "
|
|
3
|
-
"label.
|
|
4
|
-
"label.
|
|
2
|
+
"component.tact-timer": "工艺标准时间计时器",
|
|
3
|
+
"label.before-due-progress-color": "到期前进度颜色",
|
|
4
|
+
"label.before-due-font-color": "到期前字体颜色",
|
|
5
|
+
"label.over-due-progress-color": "到期后进度颜色",
|
|
6
|
+
"label.over-due-font-color": "到期后字体颜色",
|
|
5
7
|
"label.format": "格式",
|
|
6
|
-
"label.increase-font-color": "增加字体颜色",
|
|
7
|
-
"label.increase-progress-color": "增加进度颜色",
|
|
8
8
|
"label.progress-direction": "进度方向",
|
|
9
9
|
"label.progress-threshold": "进度阈值",
|
|
10
|
-
"label.tact-time": "
|
|
10
|
+
"label.tact-time": "tact time",
|
|
11
11
|
"label.under-threshold-color": "低于阈值颜色",
|
|
12
|
-
"label.show-progress": "
|
|
12
|
+
"label.show-progress": "显示进度颜色",
|
|
13
13
|
"label.show-timer": "显示计时器",
|
|
14
14
|
"label.start-time": "开始时间",
|
|
15
|
-
"label.end-time": "
|
|
16
|
-
"label.tact-timer-mask-color": "
|
|
15
|
+
"label.end-time": "结束时间",
|
|
16
|
+
"label.tact-timer-mask-color": "掩码颜色"
|
|
17
17
|
}
|