@things-factory/dataset 6.0.30 → 6.0.33

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.
Files changed (59) hide show
  1. package/client/activities/activity-data-collect-edit.ts +100 -0
  2. package/client/activities/activity-data-collect-view.ts +1 -20
  3. package/client/activities/activity-ooc-resolve-edit.ts +174 -0
  4. package/client/activities/activity-ooc-resolve-view.ts +10 -37
  5. package/client/activities/activity-ooc-review-edit.ts +153 -0
  6. package/client/activities/activity-ooc-review-view.ts +10 -33
  7. package/client/bootstrap.ts +3 -0
  8. package/client/pages/data-set/data-set-list-page.ts +8 -9
  9. package/dist-client/activities/activity-data-collect-edit.d.ts +19 -0
  10. package/dist-client/activities/activity-data-collect-edit.js +101 -0
  11. package/dist-client/activities/activity-data-collect-edit.js.map +1 -0
  12. package/dist-client/activities/activity-data-collect-view.d.ts +0 -3
  13. package/dist-client/activities/activity-data-collect-view.js +2 -19
  14. package/dist-client/activities/activity-data-collect-view.js.map +1 -1
  15. package/dist-client/activities/activity-ooc-resolve-edit.d.ts +1 -0
  16. package/dist-client/activities/activity-ooc-resolve-edit.js +175 -0
  17. package/dist-client/activities/activity-ooc-resolve-edit.js.map +1 -0
  18. package/dist-client/activities/activity-ooc-resolve-view.js +12 -36
  19. package/dist-client/activities/activity-ooc-resolve-view.js.map +1 -1
  20. package/dist-client/activities/activity-ooc-review-edit.d.ts +1 -0
  21. package/dist-client/activities/activity-ooc-review-edit.js +155 -0
  22. package/dist-client/activities/activity-ooc-review-edit.js.map +1 -0
  23. package/dist-client/activities/activity-ooc-review-view.js +10 -29
  24. package/dist-client/activities/activity-ooc-review-view.js.map +1 -1
  25. package/dist-client/bootstrap.d.ts +3 -0
  26. package/dist-client/bootstrap.js +3 -0
  27. package/dist-client/bootstrap.js.map +1 -1
  28. package/dist-client/components/data-ooc-activity-view.d.ts +1 -0
  29. package/dist-client/components/data-ooc-activity-view.js +154 -0
  30. package/dist-client/components/data-ooc-activity-view.js.map +1 -0
  31. package/dist-client/pages/data-set/data-set-list-page.js +8 -8
  32. package/dist-client/pages/data-set/data-set-list-page.js.map +1 -1
  33. package/dist-client/tsconfig.tsbuildinfo +1 -1
  34. package/dist-server/activities/activity-data-collect.js +4 -2
  35. package/dist-server/activities/activity-data-collect.js.map +1 -1
  36. package/dist-server/activities/activity-ooc-resolve.js +4 -2
  37. package/dist-server/activities/activity-ooc-resolve.js.map +1 -1
  38. package/dist-server/activities/activity-ooc-review.js +4 -2
  39. package/dist-server/activities/activity-ooc-review.js.map +1 -1
  40. package/dist-server/controllers/activity-template/activity-data-collect.js.map +1 -1
  41. package/dist-server/controllers/activity-template/activity-ooc.js +59 -0
  42. package/dist-server/controllers/activity-template/activity-ooc.js.map +1 -0
  43. package/dist-server/routes.js +14 -4
  44. package/dist-server/routes.js.map +1 -1
  45. package/dist-server/service/data-set/data-set-mutation.js +12 -8
  46. package/dist-server/service/data-set/data-set-mutation.js.map +1 -1
  47. package/dist-server/service/data-set/data-set-query.js +1 -1
  48. package/dist-server/service/data-set/data-set-query.js.map +1 -1
  49. package/dist-server/service/data-set/data-set.js +2 -2
  50. package/dist-server/service/data-set/data-set.js.map +1 -1
  51. package/dist-server/tsconfig.tsbuildinfo +1 -1
  52. package/package.json +11 -11
  53. package/server/activities/activity-data-collect.ts +4 -2
  54. package/server/activities/activity-ooc-resolve.ts +4 -2
  55. package/server/activities/activity-ooc-review.ts +4 -2
  56. package/server/routes.ts +22 -5
  57. package/server/service/data-set/data-set-mutation.ts +12 -8
  58. package/server/service/data-set/data-set-query.ts +1 -1
  59. package/server/service/data-set/data-set.ts +2 -2
@@ -0,0 +1,155 @@
1
+ import { __decorate, __metadata } from "tslib";
2
+ import '@operato/dataset/ox-data-sample-view.js';
3
+ import gql from 'graphql-tag';
4
+ import { css, html, LitElement } from 'lit';
5
+ import { customElement, property, query, state } from 'lit/decorators.js';
6
+ import { client } from '@operato/graphql';
7
+ import { i18next, localize } from '@operato/i18n';
8
+ import { ScrollbarStyles } from '@operato/styles';
9
+ let OocReviewActivityEdit = class OocReviewActivityEdit extends localize(i18next)(LitElement) {
10
+ render() {
11
+ var _a;
12
+ const instruction = (_a = this.output) === null || _a === void 0 ? void 0 : _a.instruction;
13
+ return html `
14
+ <div content>
15
+ <ox-data-sample-view .dataSample=${this.dataOoc}></ox-data-sample-view>
16
+ </div>
17
+
18
+ <label instruction>
19
+ <div><mwc-icon>build_circle</mwc-icon> <span>corrective instruction</span></div>
20
+ <textarea
21
+ placeholder="시정 및 예방을 위한 조치 지시 사항을 입력해주세요."
22
+ .value=${instruction || ''}
23
+ @change=${this.onChangeInstruction}
24
+ ></textarea>
25
+ </label>
26
+ `;
27
+ }
28
+ onChangeInstruction(e) {
29
+ this.output || (this.output = {});
30
+ this.output.instruction = e.target.value;
31
+ this.dispatchEvent(new CustomEvent('change', {
32
+ detail: this.output
33
+ }));
34
+ }
35
+ updated(changes) {
36
+ if (changes.has('input')) {
37
+ this.fetchDataOoc();
38
+ }
39
+ }
40
+ async fetchDataOoc() {
41
+ var _a;
42
+ const id = (_a = this.input) === null || _a === void 0 ? void 0 : _a.dataOocId;
43
+ if (id) {
44
+ const response = await client.query({
45
+ query: gql `
46
+ query ($id: String!) {
47
+ dataOoc(id: $id) {
48
+ id
49
+ name
50
+ description
51
+ ooc
52
+ oos
53
+ state
54
+ type
55
+ useCase
56
+ data
57
+ judgment
58
+ dataItems {
59
+ name
60
+ description
61
+ active
62
+ tag
63
+ type
64
+ unit
65
+ options
66
+ quota
67
+ spec
68
+ }
69
+ workDate
70
+ workShift
71
+ collectedAt
72
+ }
73
+ }
74
+ `,
75
+ variables: {
76
+ id
77
+ }
78
+ });
79
+ this.dataOoc = response.data.dataOoc;
80
+ }
81
+ }
82
+ };
83
+ OocReviewActivityEdit.styles = [
84
+ ScrollbarStyles,
85
+ css `
86
+ :host {
87
+ display: flex;
88
+ flex-direction: column;
89
+
90
+ background-color: #fff;
91
+ }
92
+
93
+ div[content] {
94
+ flex: 1;
95
+ flex-direction: column;
96
+
97
+ display: flex;
98
+ overflow: auto;
99
+ }
100
+
101
+ ox-data-sample-view {
102
+ flex: 1;
103
+ padding: var(--padding-wide);
104
+ overflow: auto;
105
+ }
106
+
107
+ label[instruction] {
108
+ display: flex;
109
+ flex-direction: column;
110
+
111
+ padding: var(--padding-wide);
112
+ }
113
+
114
+ label[instruction] div {
115
+ display: flex;
116
+ }
117
+
118
+ mwc-icon {
119
+ color: var(--status-danger-color);
120
+ }
121
+
122
+ textarea {
123
+ border: var(--input-field-border);
124
+ border-radius: var(--input-border-radius);
125
+ padding: var(--input-field-padding);
126
+ font: var(--input-field-font);
127
+ }
128
+
129
+ .button-container {
130
+ display: flex;
131
+ margin-left: auto;
132
+ padding: var(--padding-default);
133
+ }
134
+ `
135
+ ];
136
+ __decorate([
137
+ property({ type: Object }),
138
+ __metadata("design:type", Object)
139
+ ], OocReviewActivityEdit.prototype, "input", void 0);
140
+ __decorate([
141
+ property({ type: Object }),
142
+ __metadata("design:type", Object)
143
+ ], OocReviewActivityEdit.prototype, "output", void 0);
144
+ __decorate([
145
+ state(),
146
+ __metadata("design:type", Object)
147
+ ], OocReviewActivityEdit.prototype, "dataOoc", void 0);
148
+ __decorate([
149
+ query('textarea'),
150
+ __metadata("design:type", HTMLTextAreaElement)
151
+ ], OocReviewActivityEdit.prototype, "instructionTextArea", void 0);
152
+ OocReviewActivityEdit = __decorate([
153
+ customElement('activity-ooc-review-edit')
154
+ ], OocReviewActivityEdit);
155
+ //# sourceMappingURL=activity-ooc-review-edit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"activity-ooc-review-edit.js","sourceRoot":"","sources":["../../client/activities/activity-ooc-review-edit.ts"],"names":[],"mappings":";AAAA,OAAO,yCAAyC,CAAA;AAEhD,OAAO,GAAG,MAAM,aAAa,CAAA;AAC7B,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,EAAE,aAA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AAS,EAAE;oBACT,EAAE;iBACH;aACF,CAAC,CAAA;YAEF,IAAI,CAAC,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAA;SACrC;IACH,CAAC;;AA3IM,4BAAM,GAAG;IACd,eAAe;IACf,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAiDF;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;AAEtB;IAAC,KAAK,CAAC,UAAU,CAAC;8BAAuB,mBAAmB;kEAAA;AA5DxD,qBAAqB;IAD1B,aAAa,CAAC,0BAA0B,CAAC;GACpC,qBAAqB,CA6I1B","sourcesContent":["import '@operato/dataset/ox-data-sample-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-edit')\nclass OocReviewActivityEdit 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-sample-view {\n flex: 1;\n padding: var(--padding-wide);\n overflow: auto;\n }\n\n label[instruction] {\n display: flex;\n flex-direction: column;\n\n padding: var(--padding-wide);\n }\n\n label[instruction] 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 }) input?: any\n @property({ type: Object }) output?: any\n\n @state() dataOoc?: any\n\n @query('textarea') instructionTextArea!: HTMLTextAreaElement\n\n render() {\n const instruction = this.output?.instruction\n\n return html`\n <div content>\n <ox-data-sample-view .dataSample=${this.dataOoc}></ox-data-sample-view>\n </div>\n\n <label instruction>\n <div><mwc-icon>build_circle</mwc-icon> <span>corrective instruction</span></div>\n <textarea\n placeholder=\"시정 및 예방을 위한 조치 지시 사항을 입력해주세요.\"\n .value=${instruction || ''}\n @change=${this.onChangeInstruction}\n ></textarea>\n </label>\n `\n }\n\n onChangeInstruction(e: Event) {\n this.output ||= {}\n this.output.instruction = (e.target as HTMLTextAreaElement).value\n\n this.dispatchEvent(\n new CustomEvent('change', {\n detail: this.output\n })\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 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 collectedAt\n }\n }\n `,\n variables: {\n id\n }\n })\n\n this.dataOoc = response.data.dataOoc\n }\n }\n}\n"]}
@@ -15,23 +15,12 @@ let OocReviewActivityView = class OocReviewActivityView extends localize(i18next
15
15
  <ox-data-sample-view .dataSample=${this.dataOoc}></ox-data-sample-view>
16
16
  </div>
17
17
 
18
- <label instruction>
18
+ <div instruction>
19
19
  <div><mwc-icon>build_circle</mwc-icon> <span>corrective instruction</span></div>
20
- <textarea
21
- placeholder="시정 및 예방을 위한 조치 지시 사항을 입력해주세요."
22
- .value=${instruction || ''}
23
- @change=${this.onChangeInstruction}
24
- ></textarea>
25
- </label>
20
+ <div content>${instruction || ''}</div>
21
+ </div>
26
22
  `;
27
23
  }
28
- onChangeInstruction(e) {
29
- this.output || (this.output = {});
30
- this.output.instruction = e.target.value;
31
- this.dispatchEvent(new CustomEvent('change', {
32
- detail: this.output
33
- }));
34
- }
35
24
  updated(changes) {
36
25
  if (changes.has('input')) {
37
26
  this.fetchDataOoc();
@@ -104,32 +93,24 @@ OocReviewActivityView.styles = [
104
93
  overflow: auto;
105
94
  }
106
95
 
107
- label[instruction] {
96
+ div[instruction] {
108
97
  display: flex;
109
98
  flex-direction: column;
110
99
 
111
100
  padding: var(--padding-wide);
112
101
  }
113
102
 
114
- label[instruction] div {
103
+ div[instruction] div {
115
104
  display: flex;
116
105
  }
117
106
 
118
- mwc-icon {
119
- color: var(--status-danger-color);
120
- }
121
-
122
- textarea {
123
- border: var(--input-field-border);
124
- border-radius: var(--input-border-radius);
125
- padding: var(--input-field-padding);
126
- font: var(--input-field-font);
107
+ div[instruction] div[content] {
108
+ display: flex;
109
+ min-height: 50px;
127
110
  }
128
111
 
129
- .button-container {
130
- display: flex;
131
- margin-left: auto;
132
- padding: var(--padding-default);
112
+ mwc-icon {
113
+ color: var(--status-danger-color);
133
114
  }
134
115
  `
135
116
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"activity-ooc-review-view.js","sourceRoot":"","sources":["../../client/activities/activity-ooc-review-view.ts"],"names":[],"mappings":";AAAA,OAAO,yCAAyC,CAAA;AAEhD,OAAO,GAAG,MAAM,aAAa,CAAA;AAC7B,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,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;AAGjD,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,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CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oDAAY;AACvC;IAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qDAAa;AAExC;IAAC,KAAK,EAAE;;sDAAc;AAEtB;IAAC,KAAK,CAAC,UAAU,CAAC;8BAAuB,mBAAmB;kEAAA;AA5DxD,qBAAqB;IAD1B,aAAa,CAAC,0BAA0B,CAAC;GACpC,qBAAqB,CA6I1B","sourcesContent":["import '@operato/dataset/ox-data-sample-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-sample-view {\n flex: 1;\n padding: var(--padding-wide);\n overflow: auto;\n }\n\n label[instruction] {\n display: flex;\n flex-direction: column;\n\n padding: var(--padding-wide);\n }\n\n label[instruction] 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 }) input?: any\n @property({ type: Object }) output?: any\n\n @state() dataOoc?: any\n\n @query('textarea') instructionTextArea!: HTMLTextAreaElement\n\n render() {\n const instruction = this.output?.instruction\n\n return html`\n <div content>\n <ox-data-sample-view .dataSample=${this.dataOoc}></ox-data-sample-view>\n </div>\n\n <label instruction>\n <div><mwc-icon>build_circle</mwc-icon> <span>corrective instruction</span></div>\n <textarea\n placeholder=\"시정 및 예방을 위한 조치 지시 사항을 입력해주세요.\"\n .value=${instruction || ''}\n @change=${this.onChangeInstruction}\n ></textarea>\n </label>\n `\n }\n\n onChangeInstruction(e: Event) {\n this.output ||= {}\n this.output.instruction = (e.target as HTMLTextAreaElement).value\n\n this.dispatchEvent(\n new CustomEvent('change', {\n detail: this.output\n })\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 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 collectedAt\n }\n }\n `,\n variables: {\n id\n }\n })\n\n this.dataOoc = response.data.dataOoc\n }\n }\n}\n"]}
1
+ {"version":3,"file":"activity-ooc-review-view.js","sourceRoot":"","sources":["../../client/activities/activity-ooc-review-view.ts"],"names":[],"mappings":";AAAA,OAAO,yCAAyC,CAAA;AAEhD,OAAO,GAAG,MAAM,aAAa,CAAA;AAC7B,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,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;AAGjD,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,QAAQ,CAAC,OAAO,CAAC,CAAC,UAAU,CAAC;IAsD/D,MAAM;;QACJ,MAAM,WAAW,GAAG,MAAA,IAAI,CAAC,MAAM,0CAAE,WAAW,CAAA;QAE5C,OAAO,IAAI,CAAA;;2CAE4B,IAAI,CAAC,OAAO;;;;;uBAKhC,WAAW,IAAI,EAAE;;KAEnC,CAAA;IACH,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,MAAA,IAAI,CAAC,KAAK,0CAAE,SAAS,CAAA;QAEhC,IAAI,EAAE,EAAE;YACN,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC;gBAClC,KAAK,EAAE,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SA6BT;gBACD,SAAS,EAAE;oBACT,EAAE;iBACH;aACF,CAAC,CAAA;YAEF,IAAI,CAAC,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAA;SACrC;IACH,CAAC;;AApHM,4BAAM,GAAG;IACd,eAAe;IACf,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAyCF;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;AAEtB;IAAC,KAAK,CAAC,UAAU,CAAC;8BAAuB,mBAAmB;kEAAA;AApDxD,qBAAqB;IAD1B,aAAa,CAAC,0BAA0B,CAAC;GACpC,qBAAqB,CAsH1B","sourcesContent":["import '@operato/dataset/ox-data-sample-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-sample-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 @query('textarea') instructionTextArea!: HTMLTextAreaElement\n\n render() {\n const instruction = this.output?.instruction\n\n return html`\n <div content>\n <ox-data-sample-view .dataSample=${this.dataOoc}></ox-data-sample-view>\n </div>\n\n <div instruction>\n <div><mwc-icon>build_circle</mwc-icon> <span>corrective instruction</span></div>\n <div content>${instruction || ''}</div>\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 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 collectedAt\n }\n }\n `,\n variables: {\n id\n }\n })\n\n this.dataOoc = response.data.dataOoc\n }\n }\n}\n"]}
@@ -1,3 +1,6 @@
1
+ import './activities/activity-data-collect-edit';
2
+ import './activities/activity-ooc-review-edit';
3
+ import './activities/activity-ooc-resolve-edit';
1
4
  import './activities/activity-data-collect-view';
2
5
  import './activities/activity-ooc-review-view';
3
6
  import './activities/activity-ooc-resolve-view';
@@ -1,3 +1,6 @@
1
+ import './activities/activity-data-collect-edit'; /* refered by the activity template (activity-data-collect) on server */
2
+ import './activities/activity-ooc-review-edit'; /* refered by the activity template (activity-ooc-review) on server */
3
+ import './activities/activity-ooc-resolve-edit'; /* refered by the activity template (activity-ooc-resolve) on server */
1
4
  import './activities/activity-data-collect-view'; /* refered by the activity template (activity-data-collect) on server */
2
5
  import './activities/activity-ooc-review-view'; /* refered by the activity template (activity-ooc-review) on server */
3
6
  import './activities/activity-ooc-resolve-view'; /* refered by the activity template (activity-ooc-resolve) on server */
@@ -1 +1 @@
1
- {"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../client/bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,yCAAyC,CAAA,CAAC,wEAAwE;AACzH,OAAO,uCAAuC,CAAA,CAAC,sEAAsE;AACrH,OAAO,wCAAwC,CAAA,CAAC,uEAAuE;AAEvH,OAAO,iCAAiC,CAAA,CAAC,8CAA8C;AAEvF,OAAO,EAAE,iBAAiB,EAAE,MAAM,mDAAmD,CAAA;AACrF,OAAO,EACL,oBAAoB,EACpB,cAAc,IAAI,mBAAmB,EACrC,gBAAgB,IAAI,qBAAqB,EAC1C,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,yBAAyB,EAAE,MAAM,iEAAiE,CAAA;AAC3G,OAAO,EAAE,0BAA0B,EAAE,MAAM,yDAAyD,CAAA;AAEpG,MAAM,CAAC,OAAO,UAAU,SAAS;IAC/B,mBAAmB,CAAC,gBAAgB,EAAE,yBAAyB,CAAC,CAAA;IAChE,qBAAqB,CAAC,gBAAgB,EAAE,oBAAoB,CAAC,CAAA;IAE7D,mBAAmB,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAA;IAEhD,mBAAmB,CAAC,gBAAgB,EAAE,0BAA0B,CAAC,CAAA;IACjE,qBAAqB,CAAC,gBAAgB,EAAE,oBAAoB,CAAC,CAAA;AAC/D,CAAC","sourcesContent":["import './activities/activity-data-collect-view' /* refered by the activity template (activity-data-collect) on server */\nimport './activities/activity-ooc-review-view' /* refered by the activity template (activity-ooc-review) on server */\nimport './activities/activity-ooc-resolve-view' /* refered by the activity template (activity-ooc-resolve) on server */\n\nimport '@operato/app/filter-renderer.js' /* register resource-object filter renderer */\n\nimport { OxGristEditorCode } from '@operato/app/grist-editor/ox-grist-editor-code.js'\nimport {\n OxGristRendererJson5,\n registerEditor as registerGristEditor,\n registerRenderer as registerGristRenderer\n} from '@operato/data-grist'\nimport { OxGristEditorDataItemSpec } from '@operato/dataset/grist-editor/ox-grist-editor-data-item-spec.js'\nimport { OxGristEditorPartitionKeys } from '@operato/grist-editor/ox-grist-editor-partition-keys.js'\n\nexport default function bootstrap() {\n registerGristEditor('data-item-spec', OxGristEditorDataItemSpec)\n registerGristRenderer('data-item-spec', OxGristRendererJson5)\n\n registerGristEditor('script', OxGristEditorCode)\n\n registerGristEditor('partition-keys', OxGristEditorPartitionKeys)\n registerGristRenderer('partition-keys', OxGristRendererJson5)\n}\n"]}
1
+ {"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../client/bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,yCAAyC,CAAA,CAAC,wEAAwE;AACzH,OAAO,uCAAuC,CAAA,CAAC,sEAAsE;AACrH,OAAO,wCAAwC,CAAA,CAAC,uEAAuE;AACvH,OAAO,yCAAyC,CAAA,CAAC,wEAAwE;AACzH,OAAO,uCAAuC,CAAA,CAAC,sEAAsE;AACrH,OAAO,wCAAwC,CAAA,CAAC,uEAAuE;AAEvH,OAAO,iCAAiC,CAAA,CAAC,8CAA8C;AAEvF,OAAO,EAAE,iBAAiB,EAAE,MAAM,mDAAmD,CAAA;AACrF,OAAO,EACL,oBAAoB,EACpB,cAAc,IAAI,mBAAmB,EACrC,gBAAgB,IAAI,qBAAqB,EAC1C,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,yBAAyB,EAAE,MAAM,iEAAiE,CAAA;AAC3G,OAAO,EAAE,0BAA0B,EAAE,MAAM,yDAAyD,CAAA;AAEpG,MAAM,CAAC,OAAO,UAAU,SAAS;IAC/B,mBAAmB,CAAC,gBAAgB,EAAE,yBAAyB,CAAC,CAAA;IAChE,qBAAqB,CAAC,gBAAgB,EAAE,oBAAoB,CAAC,CAAA;IAE7D,mBAAmB,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAA;IAEhD,mBAAmB,CAAC,gBAAgB,EAAE,0BAA0B,CAAC,CAAA;IACjE,qBAAqB,CAAC,gBAAgB,EAAE,oBAAoB,CAAC,CAAA;AAC/D,CAAC","sourcesContent":["import './activities/activity-data-collect-edit' /* refered by the activity template (activity-data-collect) on server */\nimport './activities/activity-ooc-review-edit' /* refered by the activity template (activity-ooc-review) on server */\nimport './activities/activity-ooc-resolve-edit' /* refered by the activity template (activity-ooc-resolve) on server */\nimport './activities/activity-data-collect-view' /* refered by the activity template (activity-data-collect) on server */\nimport './activities/activity-ooc-review-view' /* refered by the activity template (activity-ooc-review) on server */\nimport './activities/activity-ooc-resolve-view' /* refered by the activity template (activity-ooc-resolve) on server */\n\nimport '@operato/app/filter-renderer.js' /* register resource-object filter renderer */\n\nimport { OxGristEditorCode } from '@operato/app/grist-editor/ox-grist-editor-code.js'\nimport {\n OxGristRendererJson5,\n registerEditor as registerGristEditor,\n registerRenderer as registerGristRenderer\n} from '@operato/data-grist'\nimport { OxGristEditorDataItemSpec } from '@operato/dataset/grist-editor/ox-grist-editor-data-item-spec.js'\nimport { OxGristEditorPartitionKeys } from '@operato/grist-editor/ox-grist-editor-partition-keys.js'\n\nexport default function bootstrap() {\n registerGristEditor('data-item-spec', OxGristEditorDataItemSpec)\n registerGristRenderer('data-item-spec', OxGristRendererJson5)\n\n registerGristEditor('script', OxGristEditorCode)\n\n registerGristEditor('partition-keys', OxGristEditorPartitionKeys)\n registerGristRenderer('partition-keys', OxGristRendererJson5)\n}\n"]}
@@ -0,0 +1 @@
1
+ import '@operato/dataset/ox-data-sample-view.js';
@@ -0,0 +1,154 @@
1
+ import { __decorate, __metadata } from "tslib";
2
+ import '@operato/dataset/ox-data-sample-view.js';
3
+ import gql from 'graphql-tag';
4
+ import { css, html, LitElement } from 'lit';
5
+ import { customElement, property, query, state } from 'lit/decorators.js';
6
+ import { client } from '@operato/graphql';
7
+ import { i18next, localize } from '@operato/i18n';
8
+ import { ScrollbarStyles } from '@operato/styles';
9
+ let DataOocActivityView = class DataOocActivityView extends localize(i18next)(LitElement) {
10
+ render() {
11
+ var _a;
12
+ const comment = (_a = this.output) === null || _a === void 0 ? void 0 : _a.comment;
13
+ return html `
14
+ <div content>
15
+ <ox-data-sample-view .dataSample=${this.dataOoc}></ox-data-sample-view>
16
+ </div>
17
+
18
+ <label comment>
19
+ <div><mwc-icon>build_circle</mwc-icon> <span>correction activity</span></div>
20
+ <textarea
21
+ placeholder="조치 내용을 입력해주세요."
22
+ .value=${comment || ''}
23
+ @change=${this.onChangeComment}
24
+ ></textarea>
25
+ </label>
26
+ `;
27
+ }
28
+ onChangeComment(e) {
29
+ this.output = this.output || {};
30
+ this.output.comment = e.target.value;
31
+ this.dispatchEvent(new CustomEvent('change', {
32
+ detail: this.output
33
+ }));
34
+ }
35
+ updated(changes) {
36
+ if (changes.has('input')) {
37
+ this.fetchDataOoc();
38
+ }
39
+ }
40
+ async fetchDataOoc() {
41
+ const id = this.input.dataOocId;
42
+ if (id) {
43
+ const response = await client.query({
44
+ query: gql `
45
+ query ($id: String!) {
46
+ dataOoc(id: $id) {
47
+ id
48
+ name
49
+ description
50
+ ooc
51
+ oos
52
+ state
53
+ type
54
+ useCase
55
+ data
56
+ judgment
57
+ dataItems {
58
+ name
59
+ description
60
+ active
61
+ tag
62
+ type
63
+ unit
64
+ options
65
+ quota
66
+ spec
67
+ }
68
+ workDate
69
+ workShift
70
+ collectedAt
71
+ }
72
+ }
73
+ `,
74
+ variables: {
75
+ id
76
+ }
77
+ });
78
+ this.dataOoc = response.data.dataOoc;
79
+ }
80
+ }
81
+ };
82
+ DataOocActivityView.styles = [
83
+ ScrollbarStyles,
84
+ css `
85
+ :host {
86
+ display: flex;
87
+ flex-direction: column;
88
+
89
+ background-color: #fff;
90
+ }
91
+
92
+ div[content] {
93
+ flex: 1;
94
+ flex-direction: column;
95
+
96
+ display: flex;
97
+ overflow: auto;
98
+ }
99
+
100
+ ox-data-ooc-view {
101
+ flex: 1;
102
+ padding: var(--padding-wide);
103
+ overflow: auto;
104
+ }
105
+
106
+ label[comment] {
107
+ display: flex;
108
+ flex-direction: column;
109
+
110
+ padding: var(--padding-wide);
111
+ }
112
+
113
+ label[comment] div {
114
+ display: flex;
115
+ }
116
+
117
+ mwc-icon {
118
+ color: var(--status-danger-color);
119
+ }
120
+
121
+ textarea {
122
+ border: var(--input-field-border);
123
+ border-radius: var(--input-border-radius);
124
+ padding: var(--input-field-padding);
125
+ font: var(--input-field-font);
126
+ }
127
+
128
+ .button-container {
129
+ display: flex;
130
+ margin-left: auto;
131
+ padding: var(--padding-default);
132
+ }
133
+ `
134
+ ];
135
+ __decorate([
136
+ property({ type: Object }),
137
+ __metadata("design:type", Object)
138
+ ], DataOocActivityView.prototype, "input", void 0);
139
+ __decorate([
140
+ property({ type: Object }),
141
+ __metadata("design:type", Object)
142
+ ], DataOocActivityView.prototype, "output", void 0);
143
+ __decorate([
144
+ state(),
145
+ __metadata("design:type", Object)
146
+ ], DataOocActivityView.prototype, "dataOoc", void 0);
147
+ __decorate([
148
+ query('textarea'),
149
+ __metadata("design:type", HTMLTextAreaElement)
150
+ ], DataOocActivityView.prototype, "commentTextArea", void 0);
151
+ DataOocActivityView = __decorate([
152
+ customElement('data-ooc-activity-view')
153
+ ], DataOocActivityView);
154
+ //# sourceMappingURL=data-ooc-activity-view.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-ooc-activity-view.js","sourceRoot":"","sources":["../../client/components/data-ooc-activity-view.ts"],"names":[],"mappings":";AAAA,OAAO,yCAAyC,CAAA;AAEhD,OAAO,GAAG,MAAM,aAAa,CAAA;AAC7B,OAAO,EAAE,GAAG,EAAE,IA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SA6BT;gBACD,SAAS,EAAE;oBACT,EAAE;iBACH;aACF,CAAC,CAAA;YAEF,IAAI,CAAC,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAA;SACrC;IACH,CAAC;;AA3IM,0BAAM,GAAG;IACd,eAAe;IACf,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAiDF;CACF,CAAA;AAED;IAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;kDAAY;AACvC;IAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;mDAAa;AAExC;IAAC,KAAK,EAAE;;oDAAc;AAEtB;IAAC,KAAK,CAAC,UAAU,CAAC;8BAAmB,mBAAmB;4DAAA;AA5DpD,mBAAmB;IADxB,aAAa,CAAC,wBAAwB,CAAC;GAClC,mBAAmB,CA6IxB","sourcesContent":["import '@operato/dataset/ox-data-sample-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('data-ooc-activity-view')\nclass DataOocActivityView 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-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 }) input?: any\n @property({ type: Object }) output?: any\n\n @state() dataOoc?: any\n\n @query('textarea') commentTextArea!: HTMLTextAreaElement\n\n render() {\n const comment = this.output?.comment\n\n return html`\n <div content>\n <ox-data-sample-view .dataSample=${this.dataOoc}></ox-data-sample-view>\n </div>\n\n <label comment>\n <div><mwc-icon>build_circle</mwc-icon> <span>correction activity</span></div>\n <textarea\n placeholder=\"조치 내용을 입력해주세요.\"\n .value=${comment || ''}\n @change=${this.onChangeComment}\n ></textarea>\n </label>\n `\n }\n\n onChangeComment(e: Event) {\n this.output = this.output || {}\n this.output.comment = (e.target as HTMLTextAreaElement).value\n\n this.dispatchEvent(\n new CustomEvent('change', {\n detail: this.output\n })\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 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 collectedAt\n }\n }\n `,\n variables: {\n id\n }\n })\n\n this.dataOoc = response.data.dataOoc\n }\n }\n}\n"]}
@@ -199,14 +199,14 @@ let DataSetListPage = class DataSetListPage extends connect(store)(localize(i18n
199
199
  {
200
200
  type: 'gutter',
201
201
  gutterName: 'button',
202
- icon: record => (!record || !record.name ? '' : record.schedulerHandle ? 'pause' : 'play_arrow'),
202
+ icon: record => (!record || !record.name ? '' : record.scheduleId ? 'pause' : 'play_arrow'),
203
203
  handlers: {
204
204
  click: (columns, data, column, record, rowIndex) => {
205
205
  if (!record || !record.name) {
206
206
  /* TODO record가 새로 추가된 것이면 리턴하도록 한다. */
207
207
  return;
208
208
  }
209
- if (record.schedulerHandle) {
209
+ if (record.scheduleId) {
210
210
  this.stopDataCollectionSchedule(record);
211
211
  }
212
212
  else {
@@ -587,7 +587,7 @@ let DataSetListPage = class DataSetListPage extends connect(store)(localize(i18n
587
587
  useCase
588
588
  schedule
589
589
  timezone
590
- schedulerHandle
590
+ scheduleId
591
591
  dataKeySet {
592
592
  id
593
593
  name
@@ -745,7 +745,7 @@ let DataSetListPage = class DataSetListPage extends connect(store)(localize(i18n
745
745
  mutation: gql `
746
746
  mutation ($dataSetId: String!) {
747
747
  startDataCollectionSchedule(dataSetId: $dataSetId) {
748
- schedulerHandle
748
+ scheduleId
749
749
  }
750
750
  }
751
751
  `,
@@ -753,11 +753,11 @@ let DataSetListPage = class DataSetListPage extends connect(store)(localize(i18n
753
753
  dataSetId: record.id
754
754
  }
755
755
  });
756
- const schedulerHandle = response.data.startDataCollectionSchedule.schedulerHandle;
757
- record.schedulerHandle = schedulerHandle;
756
+ const scheduleId = response.data.startDataCollectionSchedule.scheduleId;
757
+ record.scheduleId = scheduleId;
758
758
  notify({
759
759
  level: 'info',
760
- message: `${record.schedulerHandle ? 'success' : 'fail'} to start data collection schedule : ${record.name}`
760
+ message: `${record.scheduleId ? 'success' : 'fail'} to start data collection schedule : ${record.name}`
761
761
  });
762
762
  this.grist.fetch();
763
763
  }
@@ -766,7 +766,7 @@ let DataSetListPage = class DataSetListPage extends connect(store)(localize(i18n
766
766
  mutation: gql `
767
767
  mutation ($dataSetId: String!) {
768
768
  stopDataCollectionSchedule(dataSetId: $dataSetId) {
769
- schedulerHandle
769
+ scheduleId
770
770
  }
771
771
  }
772
772
  `,