@operato/dataset 1.13.16 → 1.14.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 +19 -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 +1 -0
- package/dist/src/ox-data-entry-view.js.map +1 -1
- package/dist/src/ox-data-ooc-brief-view.js +0 -1
- package/dist/src/ox-data-ooc-brief-view.js.map +1 -1
- package/dist/src/ox-data-ooc-correction-part.js +0 -1
- package/dist/src/ox-data-ooc-correction-part.js.map +1 -1
- package/dist/src/ox-data-ooc-view.js +0 -1
- 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/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -6
- package/src/ox-data-entry-view.ts +1 -0
- package/src/ox-data-ooc-brief-view.ts +0 -1
- package/src/ox-data-ooc-correction-part.ts +0 -1
- package/src/ox-data-ooc-view.ts +0 -1
- package/src/ox-data-sample-subgroup-view.ts +1 -1
- package/src/ox-data-sample-view.ts +35 -30
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": "1.
|
|
5
|
+
"version": "1.14.1",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
7
7
|
"module": "dist/src/index.js",
|
|
8
8
|
"exports": {
|
|
@@ -108,14 +108,14 @@
|
|
|
108
108
|
"@material/mwc-button": "^0.27.0",
|
|
109
109
|
"@material/mwc-icon": "^0.27.0",
|
|
110
110
|
"@material/mwc-icon-button": "^0.27.0",
|
|
111
|
-
"@operato/data-grist": "^1.
|
|
111
|
+
"@operato/data-grist": "^1.14.0",
|
|
112
112
|
"@operato/graphql": "^1.12.9",
|
|
113
|
-
"@operato/grist-editor": "^1.
|
|
113
|
+
"@operato/grist-editor": "^1.14.1",
|
|
114
114
|
"@operato/i18n": "^1.5.14",
|
|
115
115
|
"@operato/input": "^1.13.14",
|
|
116
116
|
"@operato/popup": "^1.13.9",
|
|
117
|
-
"@operato/property-editor": "^1.
|
|
118
|
-
"@operato/shell": "^1.
|
|
117
|
+
"@operato/property-editor": "^1.14.1",
|
|
118
|
+
"@operato/shell": "^1.14.1",
|
|
119
119
|
"@operato/styles": "^1.12.3",
|
|
120
120
|
"@operato/utils": "^1.13.9",
|
|
121
121
|
"lit": "^2.5.0"
|
|
@@ -152,5 +152,5 @@
|
|
|
152
152
|
"prettier --write"
|
|
153
153
|
]
|
|
154
154
|
},
|
|
155
|
-
"gitHead": "
|
|
155
|
+
"gitHead": "bf24ed345574907941d932d37f287b8d3fa937f4"
|
|
156
156
|
}
|
package/src/ox-data-ooc-view.ts
CHANGED
|
@@ -39,6 +39,7 @@ export class OxDataSampleSubgroupView extends LitElement {
|
|
|
39
39
|
font-weight: bold;
|
|
40
40
|
color: var(--th-color);
|
|
41
41
|
text-align: center;
|
|
42
|
+
white-space: nowrap;
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
th.label,
|
|
@@ -75,7 +76,6 @@ export class OxDataSampleSubgroupView extends LitElement {
|
|
|
75
76
|
|
|
76
77
|
pre {
|
|
77
78
|
tab-size: 2;
|
|
78
|
-
text-wrap: wrap;
|
|
79
79
|
text-align: left;
|
|
80
80
|
}
|
|
81
81
|
`
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@operato/input/ox-input-file.js'
|
|
2
2
|
import './ox-data-sample-subgroup-view.js'
|
|
3
3
|
|
|
4
|
-
import { css, html, LitElement } from 'lit'
|
|
4
|
+
import { css, html, LitElement, nothing } from 'lit'
|
|
5
5
|
import { customElement, property } from 'lit/decorators.js'
|
|
6
6
|
|
|
7
7
|
import { i18next } from '@operato/i18n'
|
|
@@ -58,6 +58,7 @@ export class OxDataSampleView extends LitElement {
|
|
|
58
58
|
font: var(--th-font);
|
|
59
59
|
color: var(--th-color);
|
|
60
60
|
text-align: left;
|
|
61
|
+
white-space: nowrap;
|
|
61
62
|
}
|
|
62
63
|
th[item] {
|
|
63
64
|
min-width: 100px;
|
|
@@ -128,36 +129,40 @@ export class OxDataSampleView extends LitElement {
|
|
|
128
129
|
</p>
|
|
129
130
|
|
|
130
131
|
<form>
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
132
|
+
${nonGroupDataItems.length > 0
|
|
133
|
+
? html`
|
|
134
|
+
<table>
|
|
135
|
+
<tr>
|
|
136
|
+
<th item>${i18next.t('field.item')}</th>
|
|
137
|
+
<th>${i18next.t('field.description')}</th>
|
|
138
|
+
<th>${i18next.t('field.finalizing-function')}</th>
|
|
139
|
+
<th>${i18next.t('field.unit')}</th>
|
|
140
|
+
<th value>${i18next.t('field.value')}</th>
|
|
141
|
+
<th>${i18next.t('field.spec')}</th>
|
|
142
|
+
<th>${i18next.t('field.ooc')}</th>
|
|
143
|
+
<th>${i18next.t('field.oos')}</th>
|
|
144
|
+
</tr>
|
|
145
|
+
${nonGroupDataItems.map(dataItem => {
|
|
146
|
+
const { name = '', tag = '', description = '', stat, unit = '', spec = {}, type } = dataItem
|
|
147
|
+
const value = data[tag]
|
|
148
|
+
const { ooc, oos } = judgment?.[tag] || {}
|
|
149
|
+
|
|
150
|
+
return html`
|
|
151
|
+
<tr ?ooc=${ooc} ?oos=${oos}>
|
|
152
|
+
<td name>${name}</td>
|
|
153
|
+
<td>${description}</td>
|
|
154
|
+
<td>${stat}</td>
|
|
155
|
+
<td>${unit}</td>
|
|
156
|
+
<td>${this.buildValue(type, value)}</td>
|
|
157
|
+
<td><pre>${this.buildSpec(useCaseNames, spec)}</pre></td>
|
|
158
|
+
<td>${ooc ? html`<mwc-icon>done</mwc-icon>` : ''}</td>
|
|
159
|
+
<td>${oos ? html`<mwc-icon>done</mwc-icon>` : ''}</td>
|
|
160
|
+
</tr>
|
|
161
|
+
`
|
|
162
|
+
})}
|
|
163
|
+
</table>
|
|
158
164
|
`
|
|
159
|
-
}
|
|
160
|
-
</table>
|
|
165
|
+
: nothing}
|
|
161
166
|
${Object.keys(dataItemSubgroups).map(subgroup => {
|
|
162
167
|
return html`
|
|
163
168
|
<ox-data-sample-subgroup-view
|