@operato/dataset 2.0.0-alpha.2 → 2.0.0-alpha.20
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 +152 -0
- package/demo/favicon.ico +0 -0
- package/demo/index.html +338 -0
- package/demo/ox-data-ooc-brief-view-test.html +338 -0
- package/dist/src/ox-data-entry-view.js +2 -1
- package/dist/src/ox-data-entry-view.js.map +1 -1
- package/dist/src/ox-data-ooc-badge.d.ts +9 -0
- package/dist/src/ox-data-ooc-badge.js +66 -0
- package/dist/src/ox-data-ooc-badge.js.map +1 -0
- package/dist/src/ox-data-ooc-brief-view.d.ts +2 -0
- package/dist/src/ox-data-ooc-brief-view.js +8 -110
- package/dist/src/ox-data-ooc-brief-view.js.map +1 -1
- package/dist/src/ox-data-ooc-correction-part.d.ts +9 -0
- package/dist/src/ox-data-ooc-correction-part.js +99 -0
- package/dist/src/ox-data-ooc-correction-part.js.map +1 -0
- package/dist/src/ox-data-ooc-history.d.ts +10 -0
- package/dist/src/ox-data-ooc-history.js +72 -0
- package/dist/src/ox-data-ooc-history.js.map +1 -0
- package/dist/src/ox-data-ooc-view.d.ts +1 -0
- package/dist/src/ox-data-ooc-view.js +6 -89
- package/dist/src/ox-data-ooc-view.js.map +1 -1
- package/dist/src/ox-data-sample-subgroup-view.js +1 -1
- package/dist/src/ox-data-sample-subgroup-view.js.map +1 -1
- package/dist/src/ox-data-sample-view.js +35 -30
- package/dist/src/ox-data-sample-view.js.map +1 -1
- package/dist/src/ox-data-summary-view.js +1 -1
- package/dist/src/ox-data-summary-view.js.map +1 -1
- package/dist/src/types.d.ts +45 -0
- package/dist/src/types.js.map +1 -1
- package/dist/src/usecase/spc/index.d.ts +1 -0
- package/dist/src/usecase/spc/index.js +8 -0
- package/dist/src/usecase/spc/index.js.map +1 -0
- package/dist/src/usecase/spc/ox-data-use-case-spc.d.ts +7 -0
- package/dist/src/usecase/spc/ox-data-use-case-spc.js +102 -0
- package/dist/src/usecase/spc/ox-data-use-case-spc.js.map +1 -0
- package/dist/src/usecase/spc/ox-input-spc-limits.d.ts +44 -0
- package/dist/src/usecase/spc/ox-input-spc-limits.js +193 -0
- package/dist/src/usecase/spc/ox-input-spc-limits.js.map +1 -0
- package/dist/src/usecase/spc/ox-property-editor-spc-limits.d.ts +6 -0
- package/dist/src/usecase/spc/ox-property-editor-spc-limits.js +24 -0
- package/dist/src/usecase/spc/ox-property-editor-spc-limits.js.map +1 -0
- package/dist/stories/ox-data-ooc-view.stories.js +2 -0
- package/dist/stories/ox-data-ooc-view.stories.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +24 -9
- package/src/ox-data-entry-view.ts +2 -1
- package/src/ox-data-ooc-badge.ts +64 -0
- package/src/ox-data-ooc-brief-view.ts +9 -120
- package/src/ox-data-ooc-correction-part.ts +107 -0
- package/src/ox-data-ooc-history.ts +74 -0
- package/src/ox-data-ooc-view.ts +6 -91
- package/src/ox-data-sample-subgroup-view.ts +1 -1
- package/src/ox-data-sample-view.ts +35 -30
- package/src/ox-data-summary-view.ts +1 -1
- package/src/types.ts +47 -0
- package/src/usecase/spc/index.ts +10 -0
- package/src/usecase/spc/ox-data-use-case-spc.ts +147 -0
- package/src/usecase/spc/ox-input-spc-limits.ts +182 -0
- package/src/usecase/spc/ox-property-editor-spc-limits.ts +23 -0
- package/stories/ox-data-ooc-view.stories.ts +2 -0
- package/themes/grist-theme.css +1 -1
- package/translations/en.json +1 -0
- package/translations/ko.json +1 -0
- package/translations/ms.json +142 -70
- package/translations/zh.json +146 -75
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,158 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.0.0-alpha.20](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.19...v2.0.0-alpha.20) (2024-02-05)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @operato/dataset
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [2.0.0-alpha.19](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.18...v2.0.0-alpha.19) (2024-02-05)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @operato/dataset
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [2.0.0-alpha.18](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.17...v2.0.0-alpha.18) (2024-02-04)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### :bug: Bug Fix
|
|
26
|
+
|
|
27
|
+
* export spc chart components ([64c7524](https://github.com/hatiolab/operato/commit/64c752427cffa27f7d43e25a1d73b4be4e9bc28a))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
## [2.0.0-alpha.17](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.16...v2.0.0-alpha.17) (2024-02-04)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### :bug: Bug Fix
|
|
35
|
+
|
|
36
|
+
* styling for printing ([c8557a6](https://github.com/hatiolab/operato/commit/c8557a69880bafe5a6a152b07b367946e584c6fb))
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
## [2.0.0-alpha.16](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.15...v2.0.0-alpha.16) (2024-02-03)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### :bug: Bug Fix
|
|
44
|
+
|
|
45
|
+
* dataset components for mobile ([f434288](https://github.com/hatiolab/operato/commit/f434288f8724c983b6ebed863a67a315efc9a7ce))
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
## [2.0.0-alpha.15](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.14...v2.0.0-alpha.15) (2024-02-03)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
### :bug: Bug Fix
|
|
53
|
+
|
|
54
|
+
* rewrite spc module ([2311e10](https://github.com/hatiolab/operato/commit/2311e10ae19f5c512a71aae84743aca2bba12efd))
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
## [2.0.0-alpha.14](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.13...v2.0.0-alpha.14) (2024-01-29)
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
### :bug: Bug Fix
|
|
62
|
+
|
|
63
|
+
* simplify dataset component ([b88d5b4](https://github.com/hatiolab/operato/commit/b88d5b4778807fbecef11dcab4de40b3cf397de3))
|
|
64
|
+
* typo for dataset ox-data-ooc-view ([b2e68d5](https://github.com/hatiolab/operato/commit/b2e68d57017bde6dc609621620e45d4f78979835))
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
## [2.0.0-alpha.13](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.12...v2.0.0-alpha.13) (2024-01-28)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
### :bug: Bug Fix
|
|
72
|
+
|
|
73
|
+
* css-variable --grid-record-padding ([b057312](https://github.com/hatiolab/operato/commit/b0573120fcb46c71b6b283065f08ae926e9f826f))
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
## [2.0.0-alpha.12](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.11...v2.0.0-alpha.12) (2024-01-24)
|
|
78
|
+
|
|
79
|
+
**Note:** Version bump only for package @operato/dataset
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
## [2.0.0-alpha.11](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.10...v2.0.0-alpha.11) (2024-01-24)
|
|
86
|
+
|
|
87
|
+
**Note:** Version bump only for package @operato/dataset
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
## [2.0.0-alpha.10](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.9...v2.0.0-alpha.10) (2024-01-22)
|
|
94
|
+
|
|
95
|
+
**Note:** Version bump only for package @operato/dataset
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
## [2.0.0-alpha.9](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.8...v2.0.0-alpha.9) (2024-01-20)
|
|
102
|
+
|
|
103
|
+
**Note:** Version bump only for package @operato/dataset
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
## [2.0.0-alpha.8](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.7...v2.0.0-alpha.8) (2024-01-20)
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
### :bug: Bug Fix
|
|
113
|
+
|
|
114
|
+
* stat-function => finalizing-function 마감함수 ([38d66d3](https://github.com/hatiolab/operato/commit/38d66d3a14ce9974bc72570f31f6b4e6bc39fca0))
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
## [2.0.0-alpha.7](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.6...v2.0.0-alpha.7) (2024-01-15)
|
|
119
|
+
|
|
120
|
+
**Note:** Version bump only for package @operato/dataset
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
## [2.0.0-alpha.6](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.5...v2.0.0-alpha.6) (2024-01-15)
|
|
127
|
+
|
|
128
|
+
**Note:** Version bump only for package @operato/dataset
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
## [2.0.0-alpha.5](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.4...v2.0.0-alpha.5) (2024-01-15)
|
|
135
|
+
|
|
136
|
+
**Note:** Version bump only for package @operato/dataset
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
## [2.0.0-alpha.4](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.3...v2.0.0-alpha.4) (2024-01-15)
|
|
143
|
+
|
|
144
|
+
**Note:** Version bump only for package @operato/dataset
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
## [2.0.0-alpha.3](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.2...v2.0.0-alpha.3) (2024-01-14)
|
|
151
|
+
|
|
152
|
+
**Note:** Version bump only for package @operato/dataset
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
6
158
|
## [2.0.0-alpha.2](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.1...v2.0.0-alpha.2) (2024-01-09)
|
|
7
159
|
|
|
8
160
|
|
package/demo/favicon.ico
ADDED
|
Binary file
|
package/demo/index.html
ADDED
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en-GB">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
|
|
6
|
+
<style>
|
|
7
|
+
body {
|
|
8
|
+
/* box-sizing: border-box; */
|
|
9
|
+
margin: 0;
|
|
10
|
+
padding: 0;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
|
|
13
|
+
/* This is a font-stack that tries to use the system-default sans-serifs first */
|
|
14
|
+
font-family: Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
15
|
+
line-height: 1.5;
|
|
16
|
+
-webkit-font-smoothing: antialiased;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
#app {
|
|
20
|
+
width: 100vw;
|
|
21
|
+
height: 100dvh;
|
|
22
|
+
overflow: auto;
|
|
23
|
+
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
#demo {
|
|
29
|
+
flex: 1;
|
|
30
|
+
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@media print {
|
|
36
|
+
#app {
|
|
37
|
+
height: unset;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
</style>
|
|
41
|
+
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet" />
|
|
42
|
+
<link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
|
|
43
|
+
|
|
44
|
+
<link href="/themes/app-theme.css" rel="stylesheet" />
|
|
45
|
+
<link href="/themes/oops-theme.css" rel="stylesheet" />
|
|
46
|
+
</head>
|
|
47
|
+
|
|
48
|
+
<body>
|
|
49
|
+
<script type="module">
|
|
50
|
+
import { LitElement, html, css, render } from 'lit'
|
|
51
|
+
import '../dist/src/index.js'
|
|
52
|
+
import '../dist/src/usecase/ccp/index.js'
|
|
53
|
+
import '../dist/src/ox-data-sample-view.js'
|
|
54
|
+
|
|
55
|
+
const dataSet = {
|
|
56
|
+
name: 'sample',
|
|
57
|
+
description: 'sample description',
|
|
58
|
+
type: 'manual',
|
|
59
|
+
useCase: 'CCP',
|
|
60
|
+
dataItems: [
|
|
61
|
+
{
|
|
62
|
+
name: '창고 온도',
|
|
63
|
+
description: '창고 온도는 섭씨 0도 이하로 유지되어야 합니다.',
|
|
64
|
+
sequence: 1,
|
|
65
|
+
tag: 'temp',
|
|
66
|
+
group: '측정데이타',
|
|
67
|
+
type: 'number',
|
|
68
|
+
quota: 1,
|
|
69
|
+
active: true,
|
|
70
|
+
unit: '℃',
|
|
71
|
+
spec: {
|
|
72
|
+
CCP: {
|
|
73
|
+
criticalLimits: {
|
|
74
|
+
minimum: 100,
|
|
75
|
+
maximum: 200
|
|
76
|
+
},
|
|
77
|
+
targetLimits: {
|
|
78
|
+
minimum: 120,
|
|
79
|
+
maximum: 180
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: '창고 습도',
|
|
86
|
+
description: '창고 습도는 30% 이하로 유지되어야 합니다.',
|
|
87
|
+
sequence: 2,
|
|
88
|
+
tag: 'humid',
|
|
89
|
+
group: '측정데이타',
|
|
90
|
+
type: 'number',
|
|
91
|
+
quota: 5,
|
|
92
|
+
active: true,
|
|
93
|
+
unit: '%',
|
|
94
|
+
spec: {
|
|
95
|
+
CCP: {
|
|
96
|
+
criticalLimits: {
|
|
97
|
+
minimum: 10,
|
|
98
|
+
maximum: 50
|
|
99
|
+
},
|
|
100
|
+
targetLimits: {
|
|
101
|
+
minimum: 20,
|
|
102
|
+
maximum: 40
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
name: '육안 검사',
|
|
109
|
+
description: '육안 검사는 포장전 30분 내로 실행되어야 합니다.',
|
|
110
|
+
sequence: 3,
|
|
111
|
+
tag: 'inspection',
|
|
112
|
+
group: '측정데이타',
|
|
113
|
+
type: 'boolean',
|
|
114
|
+
quota: 3,
|
|
115
|
+
active: true,
|
|
116
|
+
spec: {
|
|
117
|
+
CCP: {
|
|
118
|
+
criticalLimits: {
|
|
119
|
+
acceptables: true
|
|
120
|
+
},
|
|
121
|
+
targetLimits: {
|
|
122
|
+
acceptables: true
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
name: '품평',
|
|
129
|
+
description: '품평은 최우수/우수/보통/미달을 포함하여 간단히 평가.',
|
|
130
|
+
sequence: 4,
|
|
131
|
+
tag: 'evaluation',
|
|
132
|
+
group: '측정데이타',
|
|
133
|
+
type: 'select',
|
|
134
|
+
options: {
|
|
135
|
+
options: [
|
|
136
|
+
{ text: '최우수', value: '최우수' },
|
|
137
|
+
{ text: '우수', value: '우수' },
|
|
138
|
+
{ text: '보통', value: '보통' },
|
|
139
|
+
{ text: '미달', value: '미달' }
|
|
140
|
+
]
|
|
141
|
+
},
|
|
142
|
+
quota: 3,
|
|
143
|
+
active: true,
|
|
144
|
+
spec: {
|
|
145
|
+
CCP: {
|
|
146
|
+
criticalLimits: {
|
|
147
|
+
acceptables: ['최우수', '우수', '보통']
|
|
148
|
+
},
|
|
149
|
+
targetLimits: {
|
|
150
|
+
acceptables: ['최우수', '우수']
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
name: '코멘트',
|
|
157
|
+
description: '특이사항을 기록함.',
|
|
158
|
+
sequence: 4,
|
|
159
|
+
tag: 'comment',
|
|
160
|
+
type: 'string',
|
|
161
|
+
quota: 1,
|
|
162
|
+
active: true
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
name: '첨부파일',
|
|
166
|
+
description: '참조 첨부 파일.',
|
|
167
|
+
sequence: 4,
|
|
168
|
+
tag: 'attachment',
|
|
169
|
+
type: 'file',
|
|
170
|
+
quota: 1,
|
|
171
|
+
active: true
|
|
172
|
+
}
|
|
173
|
+
]
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
var dataSample = {
|
|
177
|
+
name: 'Data Sample Name',
|
|
178
|
+
description: 'Data Sample이 어쩌구 저쩌구 그래서 중요합니다. 당연히 그래야죠.',
|
|
179
|
+
state: 'CORRECTED',
|
|
180
|
+
useCase: 'CCP',
|
|
181
|
+
judgment: {
|
|
182
|
+
temp: {
|
|
183
|
+
ooc: true,
|
|
184
|
+
oos: false
|
|
185
|
+
},
|
|
186
|
+
humid: {
|
|
187
|
+
ooc: false,
|
|
188
|
+
oos: true
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
data: {
|
|
192
|
+
temp: [1000, 1023, 1027, 997, 981],
|
|
193
|
+
humid: [20, 23, 21, 26, 27],
|
|
194
|
+
inspection: [true, false, true, false, false],
|
|
195
|
+
evaluation: ['최우수', '보통', '우수', '보통', '최우수'],
|
|
196
|
+
comment: '이것은 코멘트입니다.'
|
|
197
|
+
},
|
|
198
|
+
dataItems: dataSet.dataItems,
|
|
199
|
+
spec: {
|
|
200
|
+
temp: {
|
|
201
|
+
name: '창고 온도',
|
|
202
|
+
description: '창고 온도는 섭씨 0도 이하로 유지되어야 합니다.',
|
|
203
|
+
spec: {
|
|
204
|
+
CCP: {
|
|
205
|
+
criticalLimits: {
|
|
206
|
+
minimum: 100,
|
|
207
|
+
maximum: 200
|
|
208
|
+
},
|
|
209
|
+
targetLimits: {
|
|
210
|
+
minimum: 120,
|
|
211
|
+
maximum: 180
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
humid: {
|
|
217
|
+
name: '창고 습도',
|
|
218
|
+
description: '창고 습도는 30% 이하로 유지되어야 합니다.',
|
|
219
|
+
spec: {
|
|
220
|
+
CCP: {
|
|
221
|
+
criticalLimits: {
|
|
222
|
+
minimum: 10,
|
|
223
|
+
maximum: 50
|
|
224
|
+
},
|
|
225
|
+
targetLimits: {
|
|
226
|
+
minimum: 20,
|
|
227
|
+
maximum: 40
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
inspection: {
|
|
233
|
+
name: '육안 검사',
|
|
234
|
+
description: '육안 검사는 포장전 30분 내로 실행되어야 합니다.'
|
|
235
|
+
},
|
|
236
|
+
evaluation: {
|
|
237
|
+
name: '품평',
|
|
238
|
+
description: '품평은 최우수/우수/보통/미달을 포함하여 간단히 평가.',
|
|
239
|
+
spec: {
|
|
240
|
+
CCP: {
|
|
241
|
+
criticalLimits: {
|
|
242
|
+
acceptables: ['최우수', '우수', '보통']
|
|
243
|
+
},
|
|
244
|
+
targetLimits: {
|
|
245
|
+
acceptables: ['최우수', '우수']
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
comment: {
|
|
251
|
+
name: '코멘트',
|
|
252
|
+
description: '특이사항을 기록함.'
|
|
253
|
+
},
|
|
254
|
+
attachment: {
|
|
255
|
+
name: '첨부파일',
|
|
256
|
+
description: '참조 첨부 파일.'
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
collectedAt: Date.now(),
|
|
260
|
+
reviewer: {
|
|
261
|
+
name: '남상혁'
|
|
262
|
+
},
|
|
263
|
+
reviewedAt: Date.now(),
|
|
264
|
+
correctiveInstruction: '바지틀고서 만나오리오. 쿠투추파',
|
|
265
|
+
corrector: {
|
|
266
|
+
name: '남상혁'
|
|
267
|
+
},
|
|
268
|
+
correctedAt: Date.now(),
|
|
269
|
+
correctiveAction: '바지틀고서 만나오리오. 쿠투추파',
|
|
270
|
+
history: [
|
|
271
|
+
{
|
|
272
|
+
user: {
|
|
273
|
+
id: 0,
|
|
274
|
+
name: 'shnam'
|
|
275
|
+
},
|
|
276
|
+
state: 'ISSUED',
|
|
277
|
+
timestamp: Date.now()
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
user: {
|
|
281
|
+
id: 0,
|
|
282
|
+
name: 'shnam'
|
|
283
|
+
},
|
|
284
|
+
state: 'REVIEWED',
|
|
285
|
+
comment: '금일 생산한 제품은 전량 폐기합니다',
|
|
286
|
+
timestamp: Date.now()
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
user: {
|
|
290
|
+
id: 0,
|
|
291
|
+
name: 'shnam'
|
|
292
|
+
},
|
|
293
|
+
state: 'CORRECTED',
|
|
294
|
+
timestamp: Date.now()
|
|
295
|
+
}
|
|
296
|
+
]
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
class OxDataSampleViewDemo extends LitElement {
|
|
300
|
+
static styles = [
|
|
301
|
+
css`
|
|
302
|
+
:host {
|
|
303
|
+
display: block;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
ox-data-sample-view {
|
|
307
|
+
page-break-after: always;
|
|
308
|
+
}
|
|
309
|
+
`
|
|
310
|
+
]
|
|
311
|
+
|
|
312
|
+
render() {
|
|
313
|
+
return Array(10)
|
|
314
|
+
.fill(null)
|
|
315
|
+
.map(
|
|
316
|
+
() => html`
|
|
317
|
+
<ox-data-sample-view
|
|
318
|
+
.dataSet=${dataSet}
|
|
319
|
+
.dataSample=${dataSample}
|
|
320
|
+
@change=${e => console.log(e.detail)}
|
|
321
|
+
></ox-data-sample-view>
|
|
322
|
+
`
|
|
323
|
+
)
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
customElements.define('ox-data-sample-view-demo', OxDataSampleViewDemo)
|
|
328
|
+
|
|
329
|
+
setTimeout(() => {
|
|
330
|
+
render(html` <ox-data-sample-view-demo></ox-data-sample-view-demo> `, document.querySelector('#demo'))
|
|
331
|
+
})
|
|
332
|
+
</script>
|
|
333
|
+
|
|
334
|
+
<div id="app">
|
|
335
|
+
<div id="demo"></div>
|
|
336
|
+
</div>
|
|
337
|
+
</body>
|
|
338
|
+
</html>
|