@operato/dataset 7.1.26 → 7.1.27
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 +10 -0
- package/dist/src/usecase/ccp/ox-input-ccp-limits.d.ts +1 -0
- package/dist/src/usecase/ccp/ox-input-ccp-limits.js +2 -1
- package/dist/src/usecase/ccp/ox-input-ccp-limits.js.map +1 -1
- package/dist/src/usecase/qc/ox-input-qc-limits.d.ts +1 -0
- package/dist/src/usecase/qc/ox-input-qc-limits.js +2 -1
- package/dist/src/usecase/qc/ox-input-qc-limits.js.map +1 -1
- package/dist/src/usecase/spc/ox-input-spc-limits.d.ts +1 -0
- package/dist/src/usecase/spc/ox-input-spc-limits.js +1 -0
- package/dist/src/usecase/spc/ox-input-spc-limits.js.map +1 -1
- package/dist/stories/ox-data-item-spec.stories.js +87 -6
- package/dist/stories/ox-data-item-spec.stories.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +9 -9
- package/src/usecase/ccp/ox-input-ccp-limits.ts +2 -1
- package/src/usecase/qc/ox-input-qc-limits.ts +2 -1
- package/src/usecase/spc/ox-input-spc-limits.ts +1 -0
- package/stories/ox-data-item-spec.stories.ts +90 -6
- package/themes/calendar-theme.css +3 -1
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@operato/dataset",
|
|
3
3
|
"description": "WebApplication dataset supporting components following open-wc recommendations",
|
|
4
4
|
"author": "heartyoh",
|
|
5
|
-
"version": "7.1.
|
|
5
|
+
"version": "7.1.27",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
7
7
|
"module": "dist/src/index.js",
|
|
8
8
|
"exports": {
|
|
@@ -108,15 +108,15 @@
|
|
|
108
108
|
},
|
|
109
109
|
"dependencies": {
|
|
110
110
|
"@material/web": "^2.0.0",
|
|
111
|
-
"@operato/data-grist": "^7.1.
|
|
111
|
+
"@operato/data-grist": "^7.1.27",
|
|
112
112
|
"@operato/graphql": "^7.1.1",
|
|
113
|
-
"@operato/grist-editor": "^7.1.
|
|
113
|
+
"@operato/grist-editor": "^7.1.27",
|
|
114
114
|
"@operato/i18n": "^7.1.1",
|
|
115
|
-
"@operato/input": "^7.1.
|
|
116
|
-
"@operato/popup": "^7.1.
|
|
117
|
-
"@operato/property-editor": "^7.1.
|
|
118
|
-
"@operato/shell": "^7.1.
|
|
119
|
-
"@operato/styles": "^7.1.
|
|
115
|
+
"@operato/input": "^7.1.27",
|
|
116
|
+
"@operato/popup": "^7.1.27",
|
|
117
|
+
"@operato/property-editor": "^7.1.27",
|
|
118
|
+
"@operato/shell": "^7.1.27",
|
|
119
|
+
"@operato/styles": "^7.1.27",
|
|
120
120
|
"@operato/utils": "^7.1.1",
|
|
121
121
|
"lit": "^3.1.2"
|
|
122
122
|
},
|
|
@@ -152,5 +152,5 @@
|
|
|
152
152
|
"prettier --write"
|
|
153
153
|
]
|
|
154
154
|
},
|
|
155
|
-
"gitHead": "
|
|
155
|
+
"gitHead": "c1c3d738aa1f8462b2483cd1ebdfdfbe95d7e22a"
|
|
156
156
|
}
|
|
@@ -12,6 +12,7 @@ export enum DataItemType {
|
|
|
12
12
|
text = 'text',
|
|
13
13
|
boolean = 'boolean',
|
|
14
14
|
select = 'select',
|
|
15
|
+
radio = 'radio',
|
|
15
16
|
file = 'file',
|
|
16
17
|
signature = 'signature'
|
|
17
18
|
}
|
|
@@ -119,7 +120,7 @@ export class OxInputCcpLimits extends LitElement {
|
|
|
119
120
|
<div unit>${this.unit}</div>
|
|
120
121
|
</label>
|
|
121
122
|
`
|
|
122
|
-
: this.type === DataItemType.select
|
|
123
|
+
: this.type === DataItemType.select || this.type === DataItemType.radio
|
|
123
124
|
? html`
|
|
124
125
|
<!-- <div>Acceptables</div> -->
|
|
125
126
|
${this.options?.options?.map(
|
|
@@ -12,6 +12,7 @@ export enum DataItemType {
|
|
|
12
12
|
text = 'text',
|
|
13
13
|
boolean = 'boolean',
|
|
14
14
|
select = 'select',
|
|
15
|
+
radio = 'radio',
|
|
15
16
|
file = 'file',
|
|
16
17
|
signature = 'signature'
|
|
17
18
|
}
|
|
@@ -119,7 +120,7 @@ export class OxInputQcLimits extends LitElement {
|
|
|
119
120
|
<div unit>${this.unit}</div>
|
|
120
121
|
</label>
|
|
121
122
|
`
|
|
122
|
-
: this.type === DataItemType.select
|
|
123
|
+
: this.type === DataItemType.select || this.type === DataItemType.radio
|
|
123
124
|
? html`
|
|
124
125
|
${this.options?.options?.map(
|
|
125
126
|
option => html`
|
|
@@ -81,6 +81,32 @@ const dataItemD = {
|
|
|
81
81
|
quota: 1
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
+
const dataItemE = {
|
|
85
|
+
name: '선택',
|
|
86
|
+
description: '길다/중간/짧다 를 기록함.',
|
|
87
|
+
sequence: 6,
|
|
88
|
+
tag: 'choice',
|
|
89
|
+
type: 'radio',
|
|
90
|
+
quota: 1,
|
|
91
|
+
options: {
|
|
92
|
+
options: [
|
|
93
|
+
{
|
|
94
|
+
text: '길다',
|
|
95
|
+
value: 'L'
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
text: '중간',
|
|
99
|
+
value: 'M'
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
text: '짧다',
|
|
103
|
+
value: 'S'
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
active: true
|
|
108
|
+
}
|
|
109
|
+
|
|
84
110
|
var specA = {
|
|
85
111
|
CCP: {
|
|
86
112
|
criticalLimits: {
|
|
@@ -101,8 +127,51 @@ var specA = {
|
|
|
101
127
|
}
|
|
102
128
|
|
|
103
129
|
var specB = {
|
|
104
|
-
CCP: {
|
|
105
|
-
|
|
130
|
+
CCP: {
|
|
131
|
+
criticalLimits: {
|
|
132
|
+
acceptables: ['최우수', '우수']
|
|
133
|
+
},
|
|
134
|
+
targetLimits: {
|
|
135
|
+
acceptables: ['최우수', '우수']
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
QC: {
|
|
139
|
+
passLimits: {
|
|
140
|
+
acceptables: ['최우수', '우수']
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
var specD = {
|
|
146
|
+
CCP: {
|
|
147
|
+
criticalLimits: {
|
|
148
|
+
acceptables: [true]
|
|
149
|
+
},
|
|
150
|
+
targetLimits: {
|
|
151
|
+
acceptables: [true]
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
QC: {
|
|
155
|
+
passLimits: {
|
|
156
|
+
acceptables: [true]
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
var specE = {
|
|
162
|
+
CCP: {
|
|
163
|
+
criticalLimits: {
|
|
164
|
+
acceptables: ['L', 'M']
|
|
165
|
+
},
|
|
166
|
+
targetLimits: {
|
|
167
|
+
acceptables: ['L']
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
QC: {
|
|
171
|
+
passLimits: {
|
|
172
|
+
acceptables: ['L', 'M']
|
|
173
|
+
}
|
|
174
|
+
}
|
|
106
175
|
}
|
|
107
176
|
|
|
108
177
|
const Template: Story<ArgTypes> = ({}: ArgTypes) =>
|
|
@@ -142,6 +211,8 @@ const Template: Story<ArgTypes> = ({}: ArgTypes) =>
|
|
|
142
211
|
}}
|
|
143
212
|
></ox-data-item-spec>
|
|
144
213
|
|
|
214
|
+
<hr style="border: 1px solid black; width: 50%;" />
|
|
215
|
+
|
|
145
216
|
<ox-data-item-spec
|
|
146
217
|
.dataItem=${dataItemB}
|
|
147
218
|
.value=${specB}
|
|
@@ -151,21 +222,34 @@ const Template: Story<ArgTypes> = ({}: ArgTypes) =>
|
|
|
151
222
|
}}
|
|
152
223
|
></ox-data-item-spec>
|
|
153
224
|
|
|
225
|
+
<hr style="border: 1px solid black; width: 50%;" />
|
|
226
|
+
|
|
154
227
|
<ox-data-item-spec
|
|
155
228
|
.dataItem=${dataItemC}
|
|
156
|
-
.value=${specA}
|
|
157
229
|
@change=${(e: CustomEvent) => {
|
|
158
230
|
specA = e.detail
|
|
159
231
|
console.log('change', specA)
|
|
160
232
|
}}
|
|
161
233
|
></ox-data-item-spec>
|
|
162
234
|
|
|
235
|
+
<hr style="border: 1px solid black; width: 50%;" />
|
|
236
|
+
|
|
163
237
|
<ox-data-item-spec
|
|
164
238
|
.dataItem=${dataItemD}
|
|
165
|
-
.value=${
|
|
239
|
+
.value=${specD}
|
|
166
240
|
@change=${(e: CustomEvent) => {
|
|
167
|
-
|
|
168
|
-
console.log('change',
|
|
241
|
+
specD = e.detail
|
|
242
|
+
console.log('change', specD)
|
|
243
|
+
}}
|
|
244
|
+
></ox-data-item-spec>
|
|
245
|
+
<hr style="border: 1px solid black; width: 50%;" />
|
|
246
|
+
|
|
247
|
+
<ox-data-item-spec
|
|
248
|
+
.dataItem=${dataItemE}
|
|
249
|
+
.value=${specE}
|
|
250
|
+
@change=${(e: CustomEvent) => {
|
|
251
|
+
specE = e.detail
|
|
252
|
+
console.log('change', specE)
|
|
169
253
|
}}
|
|
170
254
|
></ox-data-item-spec>`
|
|
171
255
|
|
|
@@ -9,7 +9,8 @@ body {
|
|
|
9
9
|
/* monthly layout */
|
|
10
10
|
--calendar-monthly-ol-margin: var(--margin-default) 0;
|
|
11
11
|
--calendar-monthly-ol-top-border: 2px solid var(--md-sys-color-secondary);
|
|
12
|
-
--calendar-current-
|
|
12
|
+
--calendar-current-month-background-color: var(--md-sys-color-surface-variant);
|
|
13
|
+
--calendar-current-month-color: var(--md-sys-color-on-surface);
|
|
13
14
|
--calendar-monthly-label-align: left;
|
|
14
15
|
--calendar-monthly-label-padding: var(--padding-narrow) 0;
|
|
15
16
|
--calendar-monthly-label-color: var(--md-sys-color-secondary);
|
|
@@ -35,6 +36,7 @@ body {
|
|
|
35
36
|
--calendar-weekly-ol-margin: var(--margin-default) 0;
|
|
36
37
|
--calendar-weekly-ol-top-border: 2px solid var(--md-sys-color-secondary);
|
|
37
38
|
--calendar-current-week-background-color: var(--md-sys-color-surface-variant);
|
|
39
|
+
--calendar-current-week-color: var(--md-sys-color-on-surface);
|
|
38
40
|
--calendar-weekly-label-align: center;
|
|
39
41
|
--calendar-weekly-label-padding: var(--padding-narrow) 0;
|
|
40
42
|
--calendar-weekly-label-color: var(--md-sys-color-secondary);
|