@things-factory/dataset 6.2.25 → 6.2.26
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/client/activities/activity-data-collect-view.ts +1 -1
- package/client/activities/activity-ooc-resolve-view.ts +16 -13
- package/client/activities/activity-ooc-review-view.ts +16 -10
- package/client/pages/data-ooc/data-ooc-view.ts +2 -48
- package/dist-client/activities/activity-data-collect-view.js +1 -1
- package/dist-client/activities/activity-data-collect-view.js.map +1 -1
- package/dist-client/activities/activity-ooc-resolve-view.d.ts +1 -1
- package/dist-client/activities/activity-ooc-resolve-view.js +16 -14
- package/dist-client/activities/activity-ooc-resolve-view.js.map +1 -1
- package/dist-client/activities/activity-ooc-review-view.d.ts +1 -1
- package/dist-client/activities/activity-ooc-review-view.js +17 -13
- package/dist-client/activities/activity-ooc-review-view.js.map +1 -1
- package/dist-client/pages/data-ooc/data-ooc-view.d.ts +0 -4
- package/dist-client/pages/data-ooc/data-ooc-view.js +2 -46
- package/dist-client/pages/data-ooc/data-ooc-view.js.map +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/controllers/query-data-summary-by-period.js +3 -2
- package/dist-server/controllers/query-data-summary-by-period.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/server/controllers/query-data-summary-by-period.ts +3 -3
- package/translations/en.json +31 -29
- package/translations/ja.json +33 -31
- package/translations/ko.json +33 -31
- package/translations/ms.json +29 -27
- package/translations/zh.json +33 -31
@@ -1,4 +1,4 @@
|
|
1
|
-
import '@operato/dataset/ox-data-
|
1
|
+
import '@operato/dataset/ox-data-ooc-brief-view.js'
|
2
2
|
|
3
3
|
import gql from 'graphql-tag'
|
4
4
|
import { css, html, LitElement } from 'lit'
|
@@ -28,7 +28,7 @@ class OocResolveActivityView extends localize(i18next)(LitElement) {
|
|
28
28
|
overflow: auto;
|
29
29
|
}
|
30
30
|
|
31
|
-
ox-data-
|
31
|
+
ox-data-ooc-brief-view {
|
32
32
|
flex: 1;
|
33
33
|
padding: var(--padding-wide);
|
34
34
|
overflow: auto;
|
@@ -80,17 +80,7 @@ class OocResolveActivityView extends localize(i18next)(LitElement) {
|
|
80
80
|
render() {
|
81
81
|
return html`
|
82
82
|
<div content>
|
83
|
-
<ox-data-
|
84
|
-
</div>
|
85
|
-
|
86
|
-
<div instruction>
|
87
|
-
<div><mwc-icon>build_circle</mwc-icon> <span>corrective instruction</span></div>
|
88
|
-
<div content>${this.input?.instruction}</div>
|
89
|
-
</div>
|
90
|
-
|
91
|
-
<div action>
|
92
|
-
<div><mwc-icon>build_circle</mwc-icon> <span>corrective action</span></div>
|
93
|
-
<div content>${this.output?.action}</div>
|
83
|
+
<ox-data-ooc-brief-view .dataOoc=${this.dataOoc}></ox-data-ooc-brief-view>
|
94
84
|
</div>
|
95
85
|
`
|
96
86
|
}
|
@@ -119,6 +109,9 @@ class OocResolveActivityView extends localize(i18next)(LitElement) {
|
|
119
109
|
useCase
|
120
110
|
data
|
121
111
|
judgment
|
112
|
+
history
|
113
|
+
correctiveAction
|
114
|
+
correctiveInstruction
|
122
115
|
dataItems {
|
123
116
|
name
|
124
117
|
description
|
@@ -132,7 +125,17 @@ class OocResolveActivityView extends localize(i18next)(LitElement) {
|
|
132
125
|
}
|
133
126
|
workDate
|
134
127
|
workShift
|
128
|
+
reviewer {
|
129
|
+
id
|
130
|
+
name
|
131
|
+
}
|
132
|
+
corrector {
|
133
|
+
id
|
134
|
+
name
|
135
|
+
}
|
135
136
|
collectedAt
|
137
|
+
reviewedAt
|
138
|
+
correctedAt
|
136
139
|
}
|
137
140
|
}
|
138
141
|
`,
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import '@operato/dataset/ox-data-
|
1
|
+
import '@operato/dataset/ox-data-ooc-brief-view.js'
|
2
2
|
|
3
3
|
import gql from 'graphql-tag'
|
4
4
|
import { css, html, LitElement } from 'lit'
|
@@ -28,7 +28,7 @@ class OocReviewActivityView extends localize(i18next)(LitElement) {
|
|
28
28
|
overflow: auto;
|
29
29
|
}
|
30
30
|
|
31
|
-
ox-data-
|
31
|
+
ox-data-ooc-brief-view {
|
32
32
|
flex: 1;
|
33
33
|
padding: var(--padding-wide);
|
34
34
|
overflow: auto;
|
@@ -61,19 +61,12 @@ class OocReviewActivityView extends localize(i18next)(LitElement) {
|
|
61
61
|
|
62
62
|
@state() dataOoc?: any
|
63
63
|
|
64
|
-
@query('textarea') instructionTextArea!: HTMLTextAreaElement
|
65
|
-
|
66
64
|
render() {
|
67
65
|
const instruction = this.output?.instruction
|
68
66
|
|
69
67
|
return html`
|
70
68
|
<div content>
|
71
|
-
<ox-data-
|
72
|
-
</div>
|
73
|
-
|
74
|
-
<div instruction>
|
75
|
-
<div><mwc-icon>build_circle</mwc-icon> <span>corrective instruction</span></div>
|
76
|
-
<div content>${instruction || ''}</div>
|
69
|
+
<ox-data-ooc-brief-view .dataOoc=${this.dataOoc}></ox-data-ooc-brief-view>
|
77
70
|
</div>
|
78
71
|
`
|
79
72
|
}
|
@@ -102,6 +95,9 @@ class OocReviewActivityView extends localize(i18next)(LitElement) {
|
|
102
95
|
useCase
|
103
96
|
data
|
104
97
|
judgment
|
98
|
+
history
|
99
|
+
correctiveAction
|
100
|
+
correctiveInstruction
|
105
101
|
dataItems {
|
106
102
|
name
|
107
103
|
description
|
@@ -115,7 +111,17 @@ class OocReviewActivityView extends localize(i18next)(LitElement) {
|
|
115
111
|
}
|
116
112
|
workDate
|
117
113
|
workShift
|
114
|
+
reviewer {
|
115
|
+
id
|
116
|
+
name
|
117
|
+
}
|
118
|
+
corrector {
|
119
|
+
id
|
120
|
+
name
|
121
|
+
}
|
118
122
|
collectedAt
|
123
|
+
reviewedAt
|
124
|
+
correctedAt
|
119
125
|
}
|
120
126
|
}
|
121
127
|
`,
|
@@ -1,13 +1,10 @@
|
|
1
1
|
import '@operato/dataset/ox-data-ooc-brief-view.js'
|
2
2
|
|
3
|
-
import gql from 'graphql-tag'
|
4
3
|
import { css, html, LitElement } from 'lit'
|
5
|
-
import { customElement, property, query
|
4
|
+
import { customElement, property, query } from 'lit/decorators.js'
|
6
5
|
|
7
|
-
import { client } from '@operato/graphql'
|
8
6
|
import { i18next, localize } from '@operato/i18n'
|
9
7
|
import { ScrollbarStyles } from '@operato/styles'
|
10
|
-
import { DataSet } from '@operato/dataset'
|
11
8
|
|
12
9
|
@customElement('data-ooc-view')
|
13
10
|
export class DataOocView extends localize(i18next)(LitElement) {
|
@@ -66,8 +63,6 @@ export class DataOocView extends localize(i18next)(LitElement) {
|
|
66
63
|
|
67
64
|
@property({ type: Object }) dataOoc?: any
|
68
65
|
|
69
|
-
@state() dataSet?: DataSet
|
70
|
-
|
71
66
|
@query('textarea') commentTextArea!: HTMLTextAreaElement
|
72
67
|
@query('ox-data-ooc-brief-view') sampleView!: HTMLTextAreaElement
|
73
68
|
|
@@ -76,49 +71,8 @@ export class DataOocView extends localize(i18next)(LitElement) {
|
|
76
71
|
|
77
72
|
return html`
|
78
73
|
<div content>
|
79
|
-
<ox-data-ooc-brief-view .
|
74
|
+
<ox-data-ooc-brief-view .dataOoc=${this.dataOoc}></ox-data-ooc-brief-view>
|
80
75
|
</div>
|
81
76
|
`
|
82
77
|
}
|
83
|
-
|
84
|
-
updated(changes) {
|
85
|
-
if (changes.has('dataOoc')) {
|
86
|
-
this.fetchDataSet()
|
87
|
-
}
|
88
|
-
}
|
89
|
-
|
90
|
-
async fetchDataSet() {
|
91
|
-
const id = this.dataOoc?.dataSet?.id
|
92
|
-
|
93
|
-
if (id) {
|
94
|
-
const response = await client.query({
|
95
|
-
query: gql`
|
96
|
-
query ($id: String!) {
|
97
|
-
dataSet(id: $id) {
|
98
|
-
id
|
99
|
-
name
|
100
|
-
description
|
101
|
-
useCase
|
102
|
-
dataItems {
|
103
|
-
name
|
104
|
-
description
|
105
|
-
active
|
106
|
-
tag
|
107
|
-
type
|
108
|
-
unit
|
109
|
-
options
|
110
|
-
quota
|
111
|
-
spec
|
112
|
-
}
|
113
|
-
}
|
114
|
-
}
|
115
|
-
`,
|
116
|
-
variables: {
|
117
|
-
id: this.dataOoc?.dataSet?.id
|
118
|
-
}
|
119
|
-
})
|
120
|
-
|
121
|
-
this.dataSet = response.data.dataSet
|
122
|
-
}
|
123
|
-
}
|
124
78
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"activity-data-collect-view.js","sourceRoot":"","sources":["../../client/activities/activity-data-collect-view.ts"],"names":[],"mappings":";AAAA,OAAO,wCAAwC,CAAA;AAE/C,OAAO,GAAG,MAAM,aAAa,CAAA;AAC7B,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAS,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAEzE,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACzC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAI1C,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,QAAQ,CAAC,OAAO,CAAC,CAAC,UAAU,CAAC;IAwBxE,MAAM;QACJ,OAAO,IAAI,CAAA,iCAAiC,IAAI,CAAC,OAAO,WAAW,IAAI,CAAC,MAAM,wBAAwB,CAAA;IACxG,CAAC;IAED,OAAO,CAAC,OAAO;QACb,IAAI,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;YACxB,IAAI,CAAC,YAAY,EAAE,CAAA;SACpB;IACH,CAAC;IAED,KAAK,CAAC,YAAY;QAChB,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAA;QAE/B,IAAI,EAAE,EAAE;YACN,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC;gBAClC,KAAK,EAAE,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;SAoBT;gBACD,SAAS,EAAE;oBACT,EAAE;iBACH;aACF,CAAC,CAAA;YAEF,IAAI,CAAC,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAA;SACrC;IACH,CAAC;;AAlEM,8BAAM,GAAG;IACd,eAAe;IACf,GAAG,CAAA;;;;;;;;;;;;;KAaF;CACF,CAAA;AAED;IAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sDAAY;AACvC;IAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;uDAAa;AAExC;IAAC,KAAK,EAAE;;wDAAmC;AAtBhC,uBAAuB;IADnC,aAAa,CAAC,4BAA4B,CAAC;GAC/B,uBAAuB,CAoEnC;SApEY,uBAAuB","sourcesContent":["import '@operato/dataset/ox-data-entry-view.js'\n\nimport gql from 'graphql-tag'\nimport { css, html, LitElement } from 'lit'\nimport { customElement, property, query, state } from 'lit/decorators.js'\n\nimport { client } from '@operato/graphql'\nimport { i18next, localize } from '@operato/i18n'\nimport { ScrollbarStyles } from '@operato/styles'\nimport { DataSet } from '@operato/dataset'\n\n@customElement('activity-data-collect-view')\nexport class DataCollectActivityView extends localize(i18next)(LitElement) {\n static styles = [\n ScrollbarStyles,\n css`\n :host {\n display: flex;\n flex-direction: column;\n\n background-color: #fff;\n }\n\n ox-data-entry-
|
1
|
+
{"version":3,"file":"activity-data-collect-view.js","sourceRoot":"","sources":["../../client/activities/activity-data-collect-view.ts"],"names":[],"mappings":";AAAA,OAAO,wCAAwC,CAAA;AAE/C,OAAO,GAAG,MAAM,aAAa,CAAA;AAC7B,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAS,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAEzE,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACzC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAI1C,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,QAAQ,CAAC,OAAO,CAAC,CAAC,UAAU,CAAC;IAwBxE,MAAM;QACJ,OAAO,IAAI,CAAA,iCAAiC,IAAI,CAAC,OAAO,WAAW,IAAI,CAAC,MAAM,wBAAwB,CAAA;IACxG,CAAC;IAED,OAAO,CAAC,OAAO;QACb,IAAI,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;YACxB,IAAI,CAAC,YAAY,EAAE,CAAA;SACpB;IACH,CAAC;IAED,KAAK,CAAC,YAAY;QAChB,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAA;QAE/B,IAAI,EAAE,EAAE;YACN,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC;gBAClC,KAAK,EAAE,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;SAoBT;gBACD,SAAS,EAAE;oBACT,EAAE;iBACH;aACF,CAAC,CAAA;YAEF,IAAI,CAAC,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAA;SACrC;IACH,CAAC;;AAlEM,8BAAM,GAAG;IACd,eAAe;IACf,GAAG,CAAA;;;;;;;;;;;;;KAaF;CACF,CAAA;AAED;IAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sDAAY;AACvC;IAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;uDAAa;AAExC;IAAC,KAAK,EAAE;;wDAAmC;AAtBhC,uBAAuB;IADnC,aAAa,CAAC,4BAA4B,CAAC;GAC/B,uBAAuB,CAoEnC;SApEY,uBAAuB","sourcesContent":["import '@operato/dataset/ox-data-entry-view.js'\n\nimport gql from 'graphql-tag'\nimport { css, html, LitElement } from 'lit'\nimport { customElement, property, query, state } from 'lit/decorators.js'\n\nimport { client } from '@operato/graphql'\nimport { i18next, localize } from '@operato/i18n'\nimport { ScrollbarStyles } from '@operato/styles'\nimport { DataSet } from '@operato/dataset'\n\n@customElement('activity-data-collect-view')\nexport class DataCollectActivityView extends localize(i18next)(LitElement) {\n static styles = [\n ScrollbarStyles,\n css`\n :host {\n display: flex;\n flex-direction: column;\n\n background-color: #fff;\n }\n\n ox-data-entry-view {\n flex: 1;\n padding: 10px;\n overflow: auto;\n }\n `\n ]\n\n @property({ type: Object }) input?: any\n @property({ type: Object }) output?: any\n\n @state() dataSet?: DataSet & { id: string }\n\n render() {\n return html` <ox-data-entry-view .dataSet=${this.dataSet} .value=${this.output}></ox-data-entry-view>`\n }\n\n updated(changes) {\n if (changes.has('input')) {\n this.fetchDataSet()\n }\n }\n\n async fetchDataSet() {\n const id = this.input.dataSetId\n\n if (id) {\n const response = await client.query({\n query: gql`\n query ($id: String!) {\n dataSet(id: $id) {\n id\n name\n description\n useCase\n dataItems {\n name\n description\n active\n tag\n type\n unit\n options\n quota\n spec\n }\n }\n }\n `,\n variables: {\n id\n }\n })\n\n this.dataSet = response.data.dataSet\n }\n }\n}\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
import '@operato/dataset/ox-data-
|
1
|
+
import '@operato/dataset/ox-data-ooc-brief-view.js';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { __decorate, __metadata } from "tslib";
|
2
|
-
import '@operato/dataset/ox-data-
|
2
|
+
import '@operato/dataset/ox-data-ooc-brief-view.js';
|
3
3
|
import gql from 'graphql-tag';
|
4
4
|
import { css, html, LitElement } from 'lit';
|
5
5
|
import { customElement, property, state } from 'lit/decorators.js';
|
@@ -8,20 +8,9 @@ import { i18next, localize } from '@operato/i18n';
|
|
8
8
|
import { ScrollbarStyles } from '@operato/styles';
|
9
9
|
let OocResolveActivityView = class OocResolveActivityView extends localize(i18next)(LitElement) {
|
10
10
|
render() {
|
11
|
-
var _a, _b;
|
12
11
|
return html `
|
13
12
|
<div content>
|
14
|
-
<ox-data-
|
15
|
-
</div>
|
16
|
-
|
17
|
-
<div instruction>
|
18
|
-
<div><mwc-icon>build_circle</mwc-icon> <span>corrective instruction</span></div>
|
19
|
-
<div content>${(_a = this.input) === null || _a === void 0 ? void 0 : _a.instruction}</div>
|
20
|
-
</div>
|
21
|
-
|
22
|
-
<div action>
|
23
|
-
<div><mwc-icon>build_circle</mwc-icon> <span>corrective action</span></div>
|
24
|
-
<div content>${(_b = this.output) === null || _b === void 0 ? void 0 : _b.action}</div>
|
13
|
+
<ox-data-ooc-brief-view .dataOoc=${this.dataOoc}></ox-data-ooc-brief-view>
|
25
14
|
</div>
|
26
15
|
`;
|
27
16
|
}
|
@@ -47,6 +36,9 @@ let OocResolveActivityView = class OocResolveActivityView extends localize(i18ne
|
|
47
36
|
useCase
|
48
37
|
data
|
49
38
|
judgment
|
39
|
+
history
|
40
|
+
correctiveAction
|
41
|
+
correctiveInstruction
|
50
42
|
dataItems {
|
51
43
|
name
|
52
44
|
description
|
@@ -60,7 +52,17 @@ let OocResolveActivityView = class OocResolveActivityView extends localize(i18ne
|
|
60
52
|
}
|
61
53
|
workDate
|
62
54
|
workShift
|
55
|
+
reviewer {
|
56
|
+
id
|
57
|
+
name
|
58
|
+
}
|
59
|
+
corrector {
|
60
|
+
id
|
61
|
+
name
|
62
|
+
}
|
63
63
|
collectedAt
|
64
|
+
reviewedAt
|
65
|
+
correctedAt
|
64
66
|
}
|
65
67
|
}
|
66
68
|
`,
|
@@ -90,7 +92,7 @@ OocResolveActivityView.styles = [
|
|
90
92
|
overflow: auto;
|
91
93
|
}
|
92
94
|
|
93
|
-
ox-data-
|
95
|
+
ox-data-ooc-brief-view {
|
94
96
|
flex: 1;
|
95
97
|
padding: var(--padding-wide);
|
96
98
|
overflow: auto;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"activity-ooc-resolve-view.js","sourceRoot":"","sources":["../../client/activities/activity-ooc-resolve-view.ts"],"names":[],"mappings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G,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAyDF;CACF,CAAA;AAED;IAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qDAAY;AACvC;IAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sDAAa;AAExC;IAAC,KAAK,EAAE;;uDAAc;AAlElB,sBAAsB;IAD3B,aAAa,CAAC,2BAA2B,CAAC;GACrC,sBAAsB,CA0I3B","sourcesContent":["import '@operato/dataset/ox-data-ooc-brief-view.js'\n\nimport gql from 'graphql-tag'\nimport { css, html, LitElement } from 'lit'\nimport { customElement, property, query, state } from 'lit/decorators.js'\n\nimport { client } from '@operato/graphql'\nimport { i18next, localize } from '@operato/i18n'\nimport { ScrollbarStyles } from '@operato/styles'\n\n@customElement('activity-ooc-resolve-view')\nclass OocResolveActivityView extends localize(i18next)(LitElement) {\n static styles = [\n ScrollbarStyles,\n css`\n :host {\n display: flex;\n flex-direction: column;\n\n background-color: #fff;\n }\n\n div[content] {\n flex: 1;\n flex-direction: column;\n\n display: flex;\n overflow: auto;\n }\n\n ox-data-ooc-brief-view {\n flex: 1;\n padding: var(--padding-wide);\n overflow: auto;\n }\n\n div[instruction] {\n display: flex;\n flex-direction: column;\n\n padding: var(--padding-wide);\n }\n\n div[instruction] div {\n display: flex;\n }\n\n div[instruction] div[content] {\n display: flex;\n min-height: 50px;\n }\n\n div[action] {\n display: flex;\n flex-direction: column;\n\n padding: var(--padding-wide);\n }\n\n div[action] div {\n display: flex;\n }\n\n div[action] div[content] {\n display: flex;\n min-height: 50px;\n }\n\n mwc-icon {\n color: var(--status-danger-color);\n }\n `\n ]\n\n @property({ type: Object }) input?: any\n @property({ type: Object }) output?: any\n\n @state() dataOoc?: any\n\n render() {\n return html`\n <div content>\n <ox-data-ooc-brief-view .dataOoc=${this.dataOoc}></ox-data-ooc-brief-view>\n </div>\n `\n }\n\n updated(changes) {\n if (changes.has('input')) {\n this.fetchDataOoc()\n }\n }\n\n async fetchDataOoc() {\n const id = this.input.dataOocId\n\n if (id) {\n const response = await client.query({\n query: gql`\n query ($id: String!) {\n dataOoc(id: $id) {\n id\n name\n description\n ooc\n oos\n state\n type\n useCase\n data\n judgment\n history\n correctiveAction\n correctiveInstruction\n dataItems {\n name\n description\n active\n tag\n type\n unit\n options\n quota\n spec\n }\n workDate\n workShift\n reviewer {\n id\n name\n }\n corrector {\n id\n name\n }\n collectedAt\n reviewedAt\n correctedAt\n }\n }\n `,\n variables: {\n id\n }\n })\n\n this.dataOoc = response.data.dataOoc\n }\n }\n}\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
import '@operato/dataset/ox-data-
|
1
|
+
import '@operato/dataset/ox-data-ooc-brief-view.js';
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { __decorate, __metadata } from "tslib";
|
2
|
-
import '@operato/dataset/ox-data-
|
2
|
+
import '@operato/dataset/ox-data-ooc-brief-view.js';
|
3
3
|
import gql from 'graphql-tag';
|
4
4
|
import { css, html, LitElement } from 'lit';
|
5
|
-
import { customElement, property,
|
5
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
6
6
|
import { client } from '@operato/graphql';
|
7
7
|
import { i18next, localize } from '@operato/i18n';
|
8
8
|
import { ScrollbarStyles } from '@operato/styles';
|
@@ -12,12 +12,7 @@ let OocReviewActivityView = class OocReviewActivityView extends localize(i18next
|
|
12
12
|
const instruction = (_a = this.output) === null || _a === void 0 ? void 0 : _a.instruction;
|
13
13
|
return html `
|
14
14
|
<div content>
|
15
|
-
<ox-data-
|
16
|
-
</div>
|
17
|
-
|
18
|
-
<div instruction>
|
19
|
-
<div><mwc-icon>build_circle</mwc-icon> <span>corrective instruction</span></div>
|
20
|
-
<div content>${instruction || ''}</div>
|
15
|
+
<ox-data-ooc-brief-view .dataOoc=${this.dataOoc}></ox-data-ooc-brief-view>
|
21
16
|
</div>
|
22
17
|
`;
|
23
18
|
}
|
@@ -44,6 +39,9 @@ let OocReviewActivityView = class OocReviewActivityView extends localize(i18next
|
|
44
39
|
useCase
|
45
40
|
data
|
46
41
|
judgment
|
42
|
+
history
|
43
|
+
correctiveAction
|
44
|
+
correctiveInstruction
|
47
45
|
dataItems {
|
48
46
|
name
|
49
47
|
description
|
@@ -57,7 +55,17 @@ let OocReviewActivityView = class OocReviewActivityView extends localize(i18next
|
|
57
55
|
}
|
58
56
|
workDate
|
59
57
|
workShift
|
58
|
+
reviewer {
|
59
|
+
id
|
60
|
+
name
|
61
|
+
}
|
62
|
+
corrector {
|
63
|
+
id
|
64
|
+
name
|
65
|
+
}
|
60
66
|
collectedAt
|
67
|
+
reviewedAt
|
68
|
+
correctedAt
|
61
69
|
}
|
62
70
|
}
|
63
71
|
`,
|
@@ -87,7 +95,7 @@ OocReviewActivityView.styles = [
|
|
87
95
|
overflow: auto;
|
88
96
|
}
|
89
97
|
|
90
|
-
ox-data-
|
98
|
+
ox-data-ooc-brief-view {
|
91
99
|
flex: 1;
|
92
100
|
padding: var(--padding-wide);
|
93
101
|
overflow: auto;
|
@@ -126,10 +134,6 @@ __decorate([
|
|
126
134
|
state(),
|
127
135
|
__metadata("design:type", Object)
|
128
136
|
], OocReviewActivityView.prototype, "dataOoc", void 0);
|
129
|
-
__decorate([
|
130
|
-
query('textarea'),
|
131
|
-
__metadata("design:type", HTMLTextAreaElement)
|
132
|
-
], OocReviewActivityView.prototype, "instructionTextArea", void 0);
|
133
137
|
OocReviewActivityView = __decorate([
|
134
138
|
customElement('activity-ooc-review-view')
|
135
139
|
], OocReviewActivityView);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"activity-ooc-review-view.js","sourceRoot":"","sources":["../../client/activities/activity-ooc-review-view.ts"],"names":[],"mappings":";AAAA,OAAO,
|
1
|
+
{"version":3,"file":"activity-ooc-review-view.js","sourceRoot":"","sources":["../../client/activities/activity-ooc-review-view.ts"],"names":[],"mappings":";AAAA,OAAO,4CAA4C,CAAA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CF;CACF,CAAA;AAED;IAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oDAAY;AACvC;IAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qDAAa;AAExC;IAAC,KAAK,EAAE;;sDAAc;AAlDlB,qBAAqB;IAD1B,aAAa,CAAC,0BAA0B,CAAC;GACpC,qBAAqB,CA4H1B","sourcesContent":["import '@operato/dataset/ox-data-ooc-brief-view.js'\n\nimport gql from 'graphql-tag'\nimport { css, html, LitElement } from 'lit'\nimport { customElement, property, query, state } from 'lit/decorators.js'\n\nimport { client } from '@operato/graphql'\nimport { i18next, localize } from '@operato/i18n'\nimport { ScrollbarStyles } from '@operato/styles'\n\n@customElement('activity-ooc-review-view')\nclass OocReviewActivityView extends localize(i18next)(LitElement) {\n static styles = [\n ScrollbarStyles,\n css`\n :host {\n display: flex;\n flex-direction: column;\n\n background-color: #fff;\n }\n\n div[content] {\n flex: 1;\n flex-direction: column;\n\n display: flex;\n overflow: auto;\n }\n\n ox-data-ooc-brief-view {\n flex: 1;\n padding: var(--padding-wide);\n overflow: auto;\n }\n\n div[instruction] {\n display: flex;\n flex-direction: column;\n\n padding: var(--padding-wide);\n }\n\n div[instruction] div {\n display: flex;\n }\n\n div[instruction] div[content] {\n display: flex;\n min-height: 50px;\n }\n\n mwc-icon {\n color: var(--status-danger-color);\n }\n `\n ]\n\n @property({ type: Object }) input?: any\n @property({ type: Object }) output?: any\n\n @state() dataOoc?: any\n\n render() {\n const instruction = this.output?.instruction\n\n return html`\n <div content>\n <ox-data-ooc-brief-view .dataOoc=${this.dataOoc}></ox-data-ooc-brief-view>\n </div>\n `\n }\n\n updated(changes) {\n if (changes.has('input')) {\n this.fetchDataOoc()\n }\n }\n\n async fetchDataOoc() {\n const id = this.input?.dataOocId\n\n if (id) {\n const response = await client.query({\n query: gql`\n query ($id: String!) {\n dataOoc(id: $id) {\n id\n name\n description\n ooc\n oos\n state\n type\n useCase\n data\n judgment\n history\n correctiveAction\n correctiveInstruction\n dataItems {\n name\n description\n active\n tag\n type\n unit\n options\n quota\n spec\n }\n workDate\n workShift\n reviewer {\n id\n name\n }\n corrector {\n id\n name\n }\n collectedAt\n reviewedAt\n correctedAt\n }\n }\n `,\n variables: {\n id\n }\n })\n\n this.dataOoc = response.data.dataOoc\n }\n }\n}\n"]}
|
@@ -1,15 +1,11 @@
|
|
1
1
|
import '@operato/dataset/ox-data-ooc-brief-view.js';
|
2
2
|
import { LitElement } from 'lit';
|
3
|
-
import { DataSet } from '@operato/dataset';
|
4
3
|
declare const DataOocView_base: (new (...args: any[]) => LitElement) & typeof LitElement;
|
5
4
|
export declare class DataOocView extends DataOocView_base {
|
6
5
|
static styles: import("lit").CSSResult[];
|
7
6
|
dataOoc?: any;
|
8
|
-
dataSet?: DataSet;
|
9
7
|
commentTextArea: HTMLTextAreaElement;
|
10
8
|
sampleView: HTMLTextAreaElement;
|
11
9
|
render(): import("lit-html").TemplateResult<1>;
|
12
|
-
updated(changes: any): void;
|
13
|
-
fetchDataSet(): Promise<void>;
|
14
10
|
}
|
15
11
|
export {};
|
@@ -1,9 +1,7 @@
|
|
1
1
|
import { __decorate, __metadata } from "tslib";
|
2
2
|
import '@operato/dataset/ox-data-ooc-brief-view.js';
|
3
|
-
import gql from 'graphql-tag';
|
4
3
|
import { css, html, LitElement } from 'lit';
|
5
|
-
import { customElement, property, query
|
6
|
-
import { client } from '@operato/graphql';
|
4
|
+
import { customElement, property, query } from 'lit/decorators.js';
|
7
5
|
import { i18next, localize } from '@operato/i18n';
|
8
6
|
import { ScrollbarStyles } from '@operato/styles';
|
9
7
|
let DataOocView = class DataOocView extends localize(i18next)(LitElement) {
|
@@ -12,48 +10,10 @@ let DataOocView = class DataOocView extends localize(i18next)(LitElement) {
|
|
12
10
|
const state = (_a = this.dataOoc) === null || _a === void 0 ? void 0 : _a.state;
|
13
11
|
return html `
|
14
12
|
<div content>
|
15
|
-
<ox-data-ooc-brief-view .
|
13
|
+
<ox-data-ooc-brief-view .dataOoc=${this.dataOoc}></ox-data-ooc-brief-view>
|
16
14
|
</div>
|
17
15
|
`;
|
18
16
|
}
|
19
|
-
updated(changes) {
|
20
|
-
if (changes.has('dataOoc')) {
|
21
|
-
this.fetchDataSet();
|
22
|
-
}
|
23
|
-
}
|
24
|
-
async fetchDataSet() {
|
25
|
-
var _a, _b, _c, _d;
|
26
|
-
const id = (_b = (_a = this.dataOoc) === null || _a === void 0 ? void 0 : _a.dataSet) === null || _b === void 0 ? void 0 : _b.id;
|
27
|
-
if (id) {
|
28
|
-
const response = await client.query({
|
29
|
-
query: gql `
|
30
|
-
query ($id: String!) {
|
31
|
-
dataSet(id: $id) {
|
32
|
-
id
|
33
|
-
name
|
34
|
-
description
|
35
|
-
useCase
|
36
|
-
dataItems {
|
37
|
-
name
|
38
|
-
description
|
39
|
-
active
|
40
|
-
tag
|
41
|
-
type
|
42
|
-
unit
|
43
|
-
options
|
44
|
-
quota
|
45
|
-
spec
|
46
|
-
}
|
47
|
-
}
|
48
|
-
}
|
49
|
-
`,
|
50
|
-
variables: {
|
51
|
-
id: (_d = (_c = this.dataOoc) === null || _c === void 0 ? void 0 : _c.dataSet) === null || _d === void 0 ? void 0 : _d.id
|
52
|
-
}
|
53
|
-
});
|
54
|
-
this.dataSet = response.data.dataSet;
|
55
|
-
}
|
56
|
-
}
|
57
17
|
};
|
58
18
|
DataOocView.styles = [
|
59
19
|
ScrollbarStyles,
|
@@ -111,10 +71,6 @@ __decorate([
|
|
111
71
|
property({ type: Object }),
|
112
72
|
__metadata("design:type", Object)
|
113
73
|
], DataOocView.prototype, "dataOoc", void 0);
|
114
|
-
__decorate([
|
115
|
-
state(),
|
116
|
-
__metadata("design:type", Object)
|
117
|
-
], DataOocView.prototype, "dataSet", void 0);
|
118
74
|
__decorate([
|
119
75
|
query('textarea'),
|
120
76
|
__metadata("design:type", HTMLTextAreaElement)
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"data-ooc-view.js","sourceRoot":"","sources":["../../../client/pages/data-ooc/data-ooc-view.ts"],"names":[],"mappings":";AAAA,OAAO,4CAA4C,CAAA;AAEnD,OAAO,
|
1
|
+
{"version":3,"file":"data-ooc-view.js","sourceRoot":"","sources":["../../../client/pages/data-ooc/data-ooc-view.ts"],"names":[],"mappings":";AAAA,OAAO,4CAA4C,CAAA;AAEnD,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAElE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAG1C,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,QAAQ,CAAC,OAAO,CAAC,CAAC,UAAU,CAAC;IA2D5D,MAAM;;QACJ,MAAM,KAAK,GAAG,MAAA,IAAI,CAAC,OAAO,0CAAE,KAAK,CAAA;QAEjC,OAAO,IAAI,CAAA;;2CAE4B,IAAI,CAAC,OAAO;;KAElD,CAAA;IACH,CAAC;;AAlEM,kBAAM,GAAG;IACd,eAAe;IACf,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgDF;CACF,CAAA;AAED;IAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4CAAc;AAEzC;IAAC,KAAK,CAAC,UAAU,CAAC;8BAAmB,mBAAmB;oDAAA;AACxD;IAAC,KAAK,CAAC,wBAAwB,CAAC;8BAAc,mBAAmB;+CAAA;AAzDtD,WAAW;IADvB,aAAa,CAAC,eAAe,CAAC;GAClB,WAAW,CAoEvB;SApEY,WAAW","sourcesContent":["import '@operato/dataset/ox-data-ooc-brief-view.js'\n\nimport { css, html, LitElement } from 'lit'\nimport { customElement, property, query } from 'lit/decorators.js'\n\nimport { i18next, localize } from '@operato/i18n'\nimport { ScrollbarStyles } from '@operato/styles'\n\n@customElement('data-ooc-view')\nexport class DataOocView extends localize(i18next)(LitElement) {\n static styles = [\n ScrollbarStyles,\n css`\n :host {\n display: flex;\n flex-direction: column;\n\n background-color: #fff;\n }\n\n div[content] {\n flex: 1;\n\n display: flex;\n overflow: auto;\n }\n\n ox-data-ooc-brief-view {\n flex: 1;\n padding: var(--padding-wide);\n overflow: auto;\n }\n\n label[comment] {\n display: flex;\n flex-direction: column;\n\n padding: var(--padding-wide);\n }\n\n label[comment] div {\n display: flex;\n }\n\n mwc-icon {\n color: var(--status-danger-color);\n }\n\n textarea {\n border: var(--input-field-border);\n border-radius: var(--input-border-radius);\n padding: var(--input-field-padding);\n font: var(--input-field-font);\n }\n\n .button-container {\n display: flex;\n margin-left: auto;\n padding: var(--padding-default);\n }\n `\n ]\n\n @property({ type: Object }) dataOoc?: any\n\n @query('textarea') commentTextArea!: HTMLTextAreaElement\n @query('ox-data-ooc-brief-view') sampleView!: HTMLTextAreaElement\n\n render() {\n const state = this.dataOoc?.state\n\n return html`\n <div content>\n <ox-data-ooc-brief-view .dataOoc=${this.dataOoc}></ox-data-ooc-brief-view>\n </div>\n `\n }\n}\n"]}
|