@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/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.13.16",
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.13.16",
111
+ "@operato/data-grist": "^1.14.0",
112
112
  "@operato/graphql": "^1.12.9",
113
- "@operato/grist-editor": "^1.13.16",
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.13.16",
118
- "@operato/shell": "^1.13.9",
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": "83c795469ca01c1916d9312d5244df1d2c6f4dc7"
155
+ "gitHead": "bf24ed345574907941d932d37f287b8d3fa937f4"
156
156
  }
@@ -57,6 +57,7 @@ export class OxDataEntryView extends LitElement {
57
57
  font: var(--th-font);
58
58
  color: var(--th-color);
59
59
  text-align: left;
60
+ white-space: nowrap;
60
61
  }
61
62
  th[item] {
62
63
  min-width: 100px;
@@ -15,7 +15,6 @@ export class OxDataOocBriefView extends LitElement {
15
15
  :host {
16
16
  display: flex;
17
17
  flex-direction: column;
18
- background-color: var(--main-section-background-color);
19
18
 
20
19
  position: relative;
21
20
  }
@@ -14,7 +14,6 @@ export class OxDataOocCorrectionPart extends LitElement {
14
14
  :host {
15
15
  display: flex;
16
16
  flex-direction: column;
17
- background-color: var(--main-section-background-color);
18
17
 
19
18
  position: relative;
20
19
  }
@@ -19,7 +19,6 @@ export class OxDataOocView extends LitElement {
19
19
  :host {
20
20
  display: flex;
21
21
  flex-direction: column;
22
- background-color: var(--main-section-background-color);
23
22
 
24
23
  position: relative;
25
24
  }
@@ -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
- <table>
132
- <tr>
133
- <th item>${i18next.t('field.item')}</th>
134
- <th>${i18next.t('field.description')}</th>
135
- <th>${i18next.t('field.finalizing-function')}</th>
136
- <th>${i18next.t('field.unit')}</th>
137
- <th value>${i18next.t('field.value')}</th>
138
- <th>${i18next.t('field.spec')}</th>
139
- <th>${i18next.t('field.ooc')}</th>
140
- <th>${i18next.t('field.oos')}</th>
141
- </tr>
142
- ${nonGroupDataItems.map(dataItem => {
143
- const { name = '', tag = '', description = '', stat, unit = '', spec = {}, type } = dataItem
144
- const value = data[tag]
145
- const { ooc, oos } = judgment?.[tag] || {}
146
-
147
- return html`
148
- <tr ?ooc=${ooc} ?oos=${oos}>
149
- <td name>${name}</td>
150
- <td>${description}</td>
151
- <td>${stat}</td>
152
- <td>${unit}</td>
153
- <td>${this.buildValue(type, value)}</td>
154
- <td><pre>${this.buildSpec(useCaseNames, spec)}</pre></td>
155
- <td>${ooc ? html`<mwc-icon>done</mwc-icon>` : ''}</td>
156
- <td>${oos ? html`<mwc-icon>done</mwc-icon>` : ''}</td>
157
- </tr>
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