@operato/dataset 1.0.0-beta.8 → 1.0.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/CHANGELOG.md +378 -0
- package/dist/src/grist-editor/ox-grist-editor-data-item-spec.js +1 -1
- package/dist/src/grist-editor/ox-grist-editor-data-item-spec.js.map +1 -1
- package/dist/src/grist-editor/ox-popup-data-item-spec.js +3 -2
- package/dist/src/grist-editor/ox-popup-data-item-spec.js.map +1 -1
- package/dist/src/index.d.ts +1 -5
- package/dist/src/index.js +1 -5
- package/dist/src/index.js.map +1 -1
- package/dist/src/ox-data-entry-form.js +24 -4
- package/dist/src/ox-data-entry-form.js.map +1 -1
- package/dist/src/ox-data-item-spec.d.ts +2 -2
- package/dist/src/ox-data-item-spec.js +71 -14
- package/dist/src/ox-data-item-spec.js.map +1 -1
- package/dist/src/ox-data-ooc-view.js +73 -14
- package/dist/src/ox-data-ooc-view.js.map +1 -1
- package/dist/src/ox-data-sample-view.d.ts +1 -3
- package/dist/src/ox-data-sample-view.js +40 -38
- package/dist/src/ox-data-sample-view.js.map +1 -1
- package/dist/src/types.d.ts +25 -6
- package/dist/src/types.js.map +1 -1
- package/dist/src/usecase/ccp/index.d.ts +1 -0
- package/dist/src/usecase/ccp/index.js +8 -0
- package/dist/src/usecase/ccp/index.js.map +1 -0
- package/dist/src/usecase/ccp/ox-data-use-case-ccp.d.ts +7 -0
- package/dist/src/usecase/ccp/ox-data-use-case-ccp.js +102 -0
- package/dist/src/usecase/ccp/ox-data-use-case-ccp.js.map +1 -0
- package/dist/src/usecase/ccp/ox-input-ccp-limits.d.ts +44 -0
- package/dist/src/usecase/ccp/ox-input-ccp-limits.js +171 -0
- package/dist/src/usecase/ccp/ox-input-ccp-limits.js.map +1 -0
- package/dist/src/usecase/ccp/ox-property-editor-ccp-limits.d.ts +5 -0
- package/dist/src/usecase/ccp/ox-property-editor-ccp-limits.js +24 -0
- package/dist/src/usecase/ccp/ox-property-editor-ccp-limits.js.map +1 -0
- package/dist/src/{ox-data-use-case.d.ts → usecase/ox-data-use-case.d.ts} +5 -5
- package/dist/src/{ox-data-use-case.js → usecase/ox-data-use-case.js} +22 -34
- package/dist/src/usecase/ox-data-use-case.js.map +1 -0
- package/dist/src/usecase/qc/index.d.ts +1 -0
- package/dist/src/usecase/qc/index.js +8 -0
- package/dist/src/usecase/qc/index.js.map +1 -0
- package/dist/src/usecase/qc/ox-data-use-case-qc.d.ts +7 -0
- package/dist/src/usecase/qc/ox-data-use-case-qc.js +55 -0
- package/dist/src/usecase/qc/ox-data-use-case-qc.js.map +1 -0
- package/dist/src/usecase/qc/ox-input-qc-limits.d.ts +44 -0
- package/dist/src/usecase/qc/ox-input-qc-limits.js +171 -0
- package/dist/src/usecase/qc/ox-input-qc-limits.js.map +1 -0
- package/dist/src/usecase/qc/ox-property-editor-qc-limits.d.ts +5 -0
- package/dist/src/usecase/qc/ox-property-editor-qc-limits.js +24 -0
- package/dist/src/usecase/qc/ox-property-editor-qc-limits.js.map +1 -0
- package/dist/stories/ox-data-entry-form.stories.d.ts +19 -0
- package/dist/stories/ox-data-entry-form.stories.js +152 -0
- package/dist/stories/ox-data-entry-form.stories.js.map +1 -0
- package/dist/stories/ox-data-item-spec.stories.d.ts +26 -0
- package/dist/stories/ox-data-item-spec.stories.js +102 -0
- package/dist/stories/ox-data-item-spec.stories.js.map +1 -0
- package/dist/stories/ox-data-ooc-view.stories.d.ts +19 -0
- package/dist/stories/ox-data-ooc-view.stories.js +242 -0
- package/dist/stories/ox-data-ooc-view.stories.js.map +1 -0
- package/dist/stories/ox-data-sample-view.stories.d.ts +19 -0
- package/dist/stories/ox-data-sample-view.stories.js +213 -0
- package/dist/stories/ox-data-sample-view.stories.js.map +1 -0
- package/dist/stories/ox-grist-editor-data-item-spec.stories.d.ts +27 -0
- package/dist/stories/ox-grist-editor-data-item-spec.stories.js +389 -0
- package/dist/stories/ox-grist-editor-data-item-spec.stories.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +24 -18
- package/src/grist-editor/ox-grist-editor-data-item-spec.ts +1 -1
- package/src/grist-editor/ox-popup-data-item-spec.ts +3 -2
- package/src/index.ts +1 -5
- package/src/ox-data-entry-form.ts +24 -4
- package/src/ox-data-item-spec.ts +73 -16
- package/src/ox-data-ooc-view.ts +73 -14
- package/src/ox-data-sample-view.ts +43 -39
- package/src/types.ts +31 -6
- package/src/usecase/ccp/index.ts +10 -0
- package/src/usecase/ccp/ox-data-use-case-ccp.ts +147 -0
- package/src/usecase/ccp/ox-input-ccp-limits.ts +161 -0
- package/src/usecase/ccp/ox-property-editor-ccp-limits.ts +23 -0
- package/src/{ox-data-use-case.ts → usecase/ox-data-use-case.ts} +27 -41
- package/src/usecase/qc/index.ts +10 -0
- package/src/usecase/qc/ox-data-use-case-qc.ts +72 -0
- package/src/usecase/qc/ox-input-qc-limits.ts +161 -0
- package/src/usecase/qc/ox-property-editor-qc-limits.ts +23 -0
- package/stories/ox-data-entry-form.stories.ts +165 -0
- package/stories/ox-data-item-spec.stories.ts +121 -0
- package/stories/ox-data-ooc-view.stories.ts +256 -0
- package/stories/ox-data-sample-view.stories.ts +227 -0
- package/stories/ox-grist-editor-data-item-spec.stories.ts +409 -0
- package/translations/en.json +26 -8
- package/translations/ko.json +25 -7
- package/translations/ms.json +26 -8
- package/translations/zh.json +25 -7
- package/demo/index.html +0 -28
- package/demo/ox-data-entry-form.html +0 -118
- package/demo/ox-data-item-spec.html +0 -152
- package/demo/ox-data-ooc-view.html +0 -185
- package/demo/ox-data-sample-view.html +0 -150
- package/demo/ox-grist-editor-data-item-spec.html +0 -476
- package/dist/src/ox-data-use-case.js.map +0 -1
|
@@ -1,185 +0,0 @@
|
|
|
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.0,maximum-scale=1" />
|
|
6
|
-
<style>
|
|
7
|
-
body {
|
|
8
|
-
--ox-checkbox-size: 12px;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
#demo {
|
|
12
|
-
}
|
|
13
|
-
</style>
|
|
14
|
-
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet" />
|
|
15
|
-
<link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
|
|
16
|
-
<link href="/themes/app-theme.css" rel="stylesheet" />
|
|
17
|
-
<link href="/themes/form-theme.css" rel="stylesheet" />
|
|
18
|
-
</head>
|
|
19
|
-
<body>
|
|
20
|
-
<div id="demo"></div>
|
|
21
|
-
|
|
22
|
-
<script type="module">
|
|
23
|
-
import { html, render } from 'lit'
|
|
24
|
-
import '@operato/ccp'
|
|
25
|
-
import '@operato/qc'
|
|
26
|
-
|
|
27
|
-
const parent = document.querySelector('#demo')
|
|
28
|
-
const dataSet = {
|
|
29
|
-
name: 'sample',
|
|
30
|
-
description: 'sample description',
|
|
31
|
-
useCase: 'CCP',
|
|
32
|
-
dataItems: [
|
|
33
|
-
{
|
|
34
|
-
name: '창고 온도',
|
|
35
|
-
description: '창고 온도는 섭씨 0도 이하로 유지되어야 합니다.',
|
|
36
|
-
sequence: 1,
|
|
37
|
-
tag: 'temp',
|
|
38
|
-
type: 'number',
|
|
39
|
-
quota: 1,
|
|
40
|
-
active: true,
|
|
41
|
-
unit: '℃',
|
|
42
|
-
spec: {
|
|
43
|
-
CCP: {
|
|
44
|
-
criticalLimits: {
|
|
45
|
-
minimum: 100,
|
|
46
|
-
maximum: 200
|
|
47
|
-
},
|
|
48
|
-
targetLimits: {
|
|
49
|
-
minimum: 120,
|
|
50
|
-
maximum: 180
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
name: '창고 습도',
|
|
57
|
-
description: '창고 습도는 30% 이하로 유지되어야 합니다.',
|
|
58
|
-
sequence: 2,
|
|
59
|
-
tag: 'humid',
|
|
60
|
-
type: 'number',
|
|
61
|
-
quota: 5,
|
|
62
|
-
active: true,
|
|
63
|
-
unit: '%',
|
|
64
|
-
spec: {
|
|
65
|
-
CCP: {
|
|
66
|
-
criticalLimits: {
|
|
67
|
-
minimum: 10,
|
|
68
|
-
maximum: 50
|
|
69
|
-
},
|
|
70
|
-
targetLimits: {
|
|
71
|
-
minimum: 20,
|
|
72
|
-
maximum: 40
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
name: '육안 검사',
|
|
79
|
-
description: '육안 검사는 포장전 30분 내로 실행되어야 합니다.',
|
|
80
|
-
sequence: 3,
|
|
81
|
-
tag: 'inspection',
|
|
82
|
-
type: 'boolean',
|
|
83
|
-
quota: 3,
|
|
84
|
-
active: true
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
name: '품평',
|
|
88
|
-
description: '품평은 최우수/우수/보통/미달을 포함하여 간단히 평가.',
|
|
89
|
-
sequence: 4,
|
|
90
|
-
tag: 'evaluation',
|
|
91
|
-
type: 'select',
|
|
92
|
-
options: {
|
|
93
|
-
options: [
|
|
94
|
-
{ text: '최우수', value: '최우수' },
|
|
95
|
-
{ text: '우수', value: '우수' },
|
|
96
|
-
{ text: '보통', value: '보통' },
|
|
97
|
-
{ text: '미달', value: '미달' }
|
|
98
|
-
]
|
|
99
|
-
},
|
|
100
|
-
quota: 3,
|
|
101
|
-
active: true,
|
|
102
|
-
spec: {
|
|
103
|
-
CCP: {
|
|
104
|
-
criticalLimits: {
|
|
105
|
-
acceptables: ['최우수', '우수', '보통']
|
|
106
|
-
},
|
|
107
|
-
targetLimits: {
|
|
108
|
-
acceptables: ['최우수', '우수']
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
name: '코멘트',
|
|
115
|
-
description: '특이사항을 기록함.',
|
|
116
|
-
sequence: 4,
|
|
117
|
-
tag: 'comment',
|
|
118
|
-
type: 'string',
|
|
119
|
-
quota: 1,
|
|
120
|
-
active: true
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
name: '첨부파일',
|
|
124
|
-
description: '참조 첨부 파일.',
|
|
125
|
-
sequence: 4,
|
|
126
|
-
tag: 'attachment',
|
|
127
|
-
type: 'file',
|
|
128
|
-
quota: 1,
|
|
129
|
-
active: true
|
|
130
|
-
}
|
|
131
|
-
]
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
var dataOoc = {
|
|
135
|
-
name: 'Data Sample Name',
|
|
136
|
-
description: 'Data Sample이 어쩌구 저쩌구 그래서 중요합니다. 당연히 그래야죠.',
|
|
137
|
-
useCase: 'CCP',
|
|
138
|
-
state: 'CORRECTED',
|
|
139
|
-
data: {
|
|
140
|
-
temp: [1000],
|
|
141
|
-
humid: [20, 23, 21, 26, 27],
|
|
142
|
-
inspection: [true, false, true],
|
|
143
|
-
evaluation: ['최우수', '보통', '우수']
|
|
144
|
-
},
|
|
145
|
-
collectedAt: Date.now(),
|
|
146
|
-
history: [
|
|
147
|
-
{
|
|
148
|
-
user: {
|
|
149
|
-
id: 0,
|
|
150
|
-
name: 'shnam'
|
|
151
|
-
},
|
|
152
|
-
state: 'CREATED',
|
|
153
|
-
timestamp: Date.now()
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
user: {
|
|
157
|
-
id: 0,
|
|
158
|
-
name: 'shnam'
|
|
159
|
-
},
|
|
160
|
-
state: 'REVIEWED',
|
|
161
|
-
comment: '금일 생산한 제품은 전량 폐기합니다',
|
|
162
|
-
timestamp: Date.now()
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
user: {
|
|
166
|
-
id: 0,
|
|
167
|
-
name: 'shnam'
|
|
168
|
-
},
|
|
169
|
-
state: 'CORRECTED',
|
|
170
|
-
timestamp: Date.now()
|
|
171
|
-
}
|
|
172
|
-
]
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
render(
|
|
176
|
-
html`<ox-data-ooc-view
|
|
177
|
-
.dataSet=${dataSet}
|
|
178
|
-
.dataOoc=${dataOoc}
|
|
179
|
-
@change=${e => console.log(e.detail)}
|
|
180
|
-
></ox-data-ooc-view>`,
|
|
181
|
-
parent
|
|
182
|
-
)
|
|
183
|
-
</script>
|
|
184
|
-
</body>
|
|
185
|
-
</html>
|
|
@@ -1,150 +0,0 @@
|
|
|
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.0,maximum-scale=1" />
|
|
6
|
-
<style>
|
|
7
|
-
body {
|
|
8
|
-
--ox-checkbox-size: 12px;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
#demo {
|
|
12
|
-
}
|
|
13
|
-
</style>
|
|
14
|
-
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet" />
|
|
15
|
-
<link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
|
|
16
|
-
<link href="/themes/app-theme.css" rel="stylesheet" />
|
|
17
|
-
<link href="/themes/form-theme.css" rel="stylesheet" />
|
|
18
|
-
</head>
|
|
19
|
-
<body>
|
|
20
|
-
<div id="demo"></div>
|
|
21
|
-
|
|
22
|
-
<script type="module">
|
|
23
|
-
import { html, render } from 'lit'
|
|
24
|
-
import '@operato/ccp'
|
|
25
|
-
import '@operato/qc'
|
|
26
|
-
|
|
27
|
-
const parent = document.querySelector('#demo')
|
|
28
|
-
const dataSet = {
|
|
29
|
-
name: 'sample',
|
|
30
|
-
description: 'sample description',
|
|
31
|
-
useCase: 'CCP',
|
|
32
|
-
dataItems: [
|
|
33
|
-
{
|
|
34
|
-
name: '창고 온도',
|
|
35
|
-
description: '창고 온도는 섭씨 0도 이하로 유지되어야 합니다.',
|
|
36
|
-
sequence: 1,
|
|
37
|
-
tag: 'temp',
|
|
38
|
-
type: 'number',
|
|
39
|
-
quota: 1,
|
|
40
|
-
active: true,
|
|
41
|
-
unit: '℃',
|
|
42
|
-
spec: {
|
|
43
|
-
CCP: {
|
|
44
|
-
criticalLimits: {
|
|
45
|
-
minimum: 100,
|
|
46
|
-
maximum: 200
|
|
47
|
-
},
|
|
48
|
-
targetLimits: {
|
|
49
|
-
minimum: 120,
|
|
50
|
-
maximum: 180
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
name: '창고 습도',
|
|
57
|
-
description: '창고 습도는 30% 이하로 유지되어야 합니다.',
|
|
58
|
-
sequence: 2,
|
|
59
|
-
tag: 'humid',
|
|
60
|
-
type: 'number',
|
|
61
|
-
quota: 5,
|
|
62
|
-
active: true,
|
|
63
|
-
unit: '%',
|
|
64
|
-
spec: {
|
|
65
|
-
CCP: {
|
|
66
|
-
criticalLimits: {
|
|
67
|
-
minimum: 10,
|
|
68
|
-
maximum: 50
|
|
69
|
-
},
|
|
70
|
-
targetLimits: {
|
|
71
|
-
minimum: 20,
|
|
72
|
-
maximum: 40
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
name: '육안 검사',
|
|
79
|
-
description: '육안 검사는 포장전 30분 내로 실행되어야 합니다.',
|
|
80
|
-
sequence: 3,
|
|
81
|
-
tag: 'inspection',
|
|
82
|
-
type: 'boolean',
|
|
83
|
-
quota: 3,
|
|
84
|
-
active: true
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
name: '품평',
|
|
88
|
-
description: '품평은 최우수/우수/보통/미달을 포함하여 간단히 평가.',
|
|
89
|
-
sequence: 4,
|
|
90
|
-
tag: 'evaluation',
|
|
91
|
-
type: 'select',
|
|
92
|
-
options: {
|
|
93
|
-
options: [
|
|
94
|
-
{ text: '최우수', value: '최우수' },
|
|
95
|
-
{ text: '우수', value: '우수' },
|
|
96
|
-
{ text: '보통', value: '보통' },
|
|
97
|
-
{ text: '미달', value: '미달' }
|
|
98
|
-
]
|
|
99
|
-
},
|
|
100
|
-
quota: 3,
|
|
101
|
-
active: true,
|
|
102
|
-
spec: {
|
|
103
|
-
CCP: {
|
|
104
|
-
criticalLimits: {
|
|
105
|
-
acceptables: ['최우수', '우수', '보통']
|
|
106
|
-
},
|
|
107
|
-
targetLimits: {
|
|
108
|
-
acceptables: ['최우수', '우수']
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
name: '코멘트',
|
|
115
|
-
description: '특이사항을 기록함.',
|
|
116
|
-
sequence: 4,
|
|
117
|
-
tag: 'comment',
|
|
118
|
-
type: 'string',
|
|
119
|
-
quota: 1,
|
|
120
|
-
active: true
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
name: '첨부파일',
|
|
124
|
-
description: '참조 첨부 파일.',
|
|
125
|
-
sequence: 4,
|
|
126
|
-
tag: 'attachment',
|
|
127
|
-
type: 'file',
|
|
128
|
-
quota: 1,
|
|
129
|
-
active: true
|
|
130
|
-
}
|
|
131
|
-
]
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
var dataSample = {
|
|
135
|
-
name: 'Data Sample Name',
|
|
136
|
-
description: 'Data Sample이 어쩌구 저쩌구 그래서 중요합니다. 당연히 그래야죠.',
|
|
137
|
-
useCase: 'CCP',
|
|
138
|
-
data: {
|
|
139
|
-
temp: [1000],
|
|
140
|
-
humid: [20, 23, 21, 26, 27],
|
|
141
|
-
inspection: [true, false, true],
|
|
142
|
-
evaluation: ['최우수', '보통', '우수']
|
|
143
|
-
},
|
|
144
|
-
collectedAt: Date.now()
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
render(html`<ox-data-sample-view .dataSet=${dataSet} .dataSample=${dataSample}></ox-data-sample-view>`, parent)
|
|
148
|
-
</script>
|
|
149
|
-
</body>
|
|
150
|
-
</html>
|