@things-factory/ccp 5.0.0-zeta.7 → 5.0.0

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.
@@ -22,7 +22,7 @@ class DataUseCaseCCP {
22
22
  };
23
23
  }
24
24
  evaluate(spec, values) {
25
- if (!spec || typeof values === 'undefined') {
25
+ if (!spec || values == null) {
26
26
  return;
27
27
  }
28
28
  if (!(values instanceof Array)) {
@@ -34,32 +34,30 @@ class DataUseCaseCCP {
34
34
  var ooc = false;
35
35
  for (let i = 0; i < values.length; i++) {
36
36
  const value = values[i];
37
- if (typeof criticalMinimum !== 'undefined' && criticalMinimum !== null && value < criticalMinimum) {
37
+ if (criticalMinimum != null && value < criticalMinimum) {
38
38
  oos = true;
39
39
  break;
40
40
  }
41
- if (typeof criticalMaximum !== 'undefined' && criticalMaximum !== null && value > criticalMaximum) {
41
+ if (criticalMaximum != null && value > criticalMaximum) {
42
42
  oos = true;
43
43
  break;
44
44
  }
45
- if (typeof criticalAcceptables !== 'undefined' &&
46
- criticalAcceptables !== null &&
47
- criticalAcceptables.includes(value)) {
45
+ if (criticalAcceptables != null && criticalAcceptables.includes(value)) {
48
46
  oos = true;
49
47
  break;
50
48
  }
51
49
  }
52
50
  for (let i = 0; i < values.length; i++) {
53
51
  const value = values[i];
54
- if (typeof targetMinimum !== 'undefined' && targetMinimum !== null && value < targetMinimum) {
52
+ if (targetMinimum != null && value < targetMinimum) {
55
53
  ooc = true;
56
54
  break;
57
55
  }
58
- if (typeof targetMaximum !== 'undefined' && targetMaximum !== null && value > targetMaximum) {
56
+ if (targetMaximum != null && value > targetMaximum) {
59
57
  ooc = true;
60
58
  break;
61
59
  }
62
- if (typeof targetAcceptables !== 'undefined' && targetAcceptables !== null && targetAcceptables.includes(value)) {
60
+ if (targetAcceptables != null && targetAcceptables.includes(value)) {
63
61
  ooc = true;
64
62
  break;
65
63
  }
@@ -1 +1 @@
1
- {"version":3,"file":"data-use-case-ccp.js","sour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G,GAAG,GAAG,IAAI,CAAA;gBACV,MAAK;aACN;YAED,IAAI,OAAO,eAAe,KAAK,WAAW,IAAI,eAAe,KAAK,IAAI,IAAI,KAAK,GAAG,eAAe,EAAE;gBACjG,GAAG,GAAG,IAAI,CAAA;gBACV,MAAK;aACN;YAED,IACE,OAAO,mBAAmB,KAAK,WAAW;gBAC1C,mBAAmB,KAAK,IAAI;gBAC5B,mBAAmB,CAAC,QAAQ,CAAC,KAAK,CAAC,EACnC;gBACA,GAAG,GAAG,IAAI,CAAA;gBACV,MAAK;aACN;SACF;QAED,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACtC,MAAM,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;YAEvB,IAAI,OAAO,aAAa,KAAK,WAAW,IAAI,aAAa,KAAK,IAAI,IAAI,KAAK,GAAG,aAAa,EAAE;gBAC3F,GAAG,GAAG,IAAI,CAAA;gBACV,MAAK;aACN;YAED,IAAI,OAAO,aAAa,KAAK,WAAW,IAAI,aAAa,KAAK,IAAI,IAAI,KAAK,GAAG,aAAa,EAAE;gBAC3F,GAAG,GAAG,IAAI,CAAA;gBACV,MAAK;aACN;YAED,IAAI,OAAO,iBAAiB,KAAK,WAAW,IAAI,iBAAiB,KAAK,IAAI,IAAI,iBAAiB,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;gBAC/G,GAAG,GAAG,IAAI,CAAA;gBACV,MAAK;aACN;SACF;QAED,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,CAAA;IACrB,CAAC;CACF;AAzFD,wCAyFC"}
1
+ {"version":3,"file":"data-use-case-ccp.js","sourceRoot":"","sources":["../../server/controllers/data-use-case-ccp.ts"],"names":[],"mappings":";;;AAEA,MAAa,cAAc;IACzB,gBAAgB;QACd,OAAO;YACL,IAAI,EAAE,KAAK;YACX,WAAW,EAAE,kCAAkC;YAC/C,IAAI,EAAE,E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AAQ,CAAC,KAAK,CAAC,EAAE;gBACtE,GAAG,GAAG,IAAI,CAAA;gBACV,MAAK;aACN;SACF;QAED,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACtC,MAAM,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;YAEvB,IAAI,aAAa,IAAI,IAAI,IAAI,KAAK,GAAG,aAAa,EAAE;gBAClD,GAAG,GAAG,IAAI,CAAA;gBACV,MAAK;aACN;YAED,IAAI,aAAa,IAAI,IAAI,IAAI,KAAK,GAAG,aAAa,EAAE;gBAClD,GAAG,GAAG,IAAI,CAAA;gBACV,MAAK;aACN;YAED,IAAI,iBAAiB,IAAI,IAAI,IAAI,iBAAiB,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;gBAClE,GAAG,GAAG,IAAI,CAAA;gBACV,MAAK;aACN;SACF;QAED,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,CAAA;IACrB,CAAC;CACF;AArFD,wCAqFC"}
@@ -1,22 +1,5 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
2
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./migrations"), exports);
18
- __exportStar(require("./middlewares"), exports);
19
- require("./routes");
20
3
  const dataset_1 = require("@things-factory/dataset");
21
4
  const controllers_1 = require("./controllers");
22
5
  process.on('bootstrap-module-start', async ({ app, config, schema }) => {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../server/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,gDAA6B;AAE7B,oBAAiB;AAEjB,qDAAqD;AACrD,+CAA8C;AAE9C,OAAO,CAAC,EAAE,CAAC,wBAA+B,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAO,EAAE,EAAE;IACjF,qBAAW,CAAC,eAAe,CAAC,KAAK,EAAE,IAAI,4BAAc,EAAE,CAAC,CAAA;AAC1D,CAAC,CAAC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../server/index.ts"],"names":[],"mappings":";;AAAA,qDAAqD;AAErD,+CAA8C;AAE9C,OAAO,CAAC,EAAE,CAAC,wBAA+B,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAO,EAAE,EAAE;IACjF,qBAAW,CAAC,eAAe,CAAC,KAAK,EAAE,IAAI,4BAAc,EAAE,CAAC,CAAA;AAC1D,CAAC,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/ccp",
3
- "version": "5.0.0-zeta.7",
3
+ "version": "5.0.0",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -24,10 +24,9 @@
24
24
  "migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
25
25
  },
26
26
  "dependencies": {
27
- "@operato/ccp": "^1.0.0-beta.36",
28
- "@operato/dataset": "^1.0.0-beta.36",
29
- "@things-factory/dataset": "^5.0.0-zeta.7",
30
- "@things-factory/shell": "^5.0.0-zeta.7"
27
+ "@operato/dataset": "^1.0.0",
28
+ "@things-factory/dataset": "^5.0.0",
29
+ "@things-factory/shell": "^5.0.0"
31
30
  },
32
- "gitHead": "e9618dfd6077ba14ebbca0ffb123a5a82660697b"
31
+ "gitHead": "32cb91663e38de9ab1bb7a72af923c3bf8ac187b"
33
32
  }
@@ -22,7 +22,7 @@ export class DataUseCaseCCP implements DataUseCase {
22
22
  }
23
23
 
24
24
  evaluate(spec: any, values: any | any[]): EvaluationResult {
25
- if (!spec || typeof values === 'undefined') {
25
+ if (!spec || values == null) {
26
26
  return
27
27
  }
28
28
 
@@ -48,21 +48,17 @@ export class DataUseCaseCCP implements DataUseCase {
48
48
  for (let i = 0; i < values.length; i++) {
49
49
  const value = values[i]
50
50
 
51
- if (typeof criticalMinimum !== 'undefined' && criticalMinimum !== null && value < criticalMinimum) {
51
+ if (criticalMinimum != null && value < criticalMinimum) {
52
52
  oos = true
53
53
  break
54
54
  }
55
55
 
56
- if (typeof criticalMaximum !== 'undefined' && criticalMaximum !== null && value > criticalMaximum) {
56
+ if (criticalMaximum != null && value > criticalMaximum) {
57
57
  oos = true
58
58
  break
59
59
  }
60
60
 
61
- if (
62
- typeof criticalAcceptables !== 'undefined' &&
63
- criticalAcceptables !== null &&
64
- criticalAcceptables.includes(value)
65
- ) {
61
+ if (criticalAcceptables != null && criticalAcceptables.includes(value)) {
66
62
  oos = true
67
63
  break
68
64
  }
@@ -71,17 +67,17 @@ export class DataUseCaseCCP implements DataUseCase {
71
67
  for (let i = 0; i < values.length; i++) {
72
68
  const value = values[i]
73
69
 
74
- if (typeof targetMinimum !== 'undefined' && targetMinimum !== null && value < targetMinimum) {
70
+ if (targetMinimum != null && value < targetMinimum) {
75
71
  ooc = true
76
72
  break
77
73
  }
78
74
 
79
- if (typeof targetMaximum !== 'undefined' && targetMaximum !== null && value > targetMaximum) {
75
+ if (targetMaximum != null && value > targetMaximum) {
80
76
  ooc = true
81
77
  break
82
78
  }
83
79
 
84
- if (typeof targetAcceptables !== 'undefined' && targetAcceptables !== null && targetAcceptables.includes(value)) {
80
+ if (targetAcceptables != null && targetAcceptables.includes(value)) {
85
81
  ooc = true
86
82
  break
87
83
  }
package/server/index.ts CHANGED
@@ -1,9 +1,5 @@
1
- export * from './migrations'
2
- export * from './middlewares'
3
-
4
- import './routes'
5
-
6
1
  import { DataUseCase } from '@things-factory/dataset'
2
+
7
3
  import { DataUseCaseCCP } from './controllers'
8
4
 
9
5
  process.on('bootstrap-module-start' as any, async ({ app, config, schema }: any) => {
@@ -1,13 +1 @@
1
- import bootstrap from './client/bootstrap'
2
- import route from './client/route'
3
-
4
- export default {
5
- route,
6
- routes: [
7
- {
8
- tagname: 'ccp-main',
9
- page: 'ccp-main'
10
- }
11
- ],
12
- bootstrap
13
- }
1
+ export default {}
@@ -3,8 +3,8 @@
3
3
  "field.critical control point": "critical control point",
4
4
  "field.corrective action": "corrective action",
5
5
  "field.item": "item",
6
- "label.critical limits": "critical limits",
7
- "label.target limits": "target limits",
6
+ "label.critical-limits": "critical limits",
7
+ "label.target-limits": "target limits",
8
8
  "text.control limit": "control limit",
9
9
  "text.measurement": "measurement",
10
10
  "text.observation": "observation",
@@ -13,4 +13,4 @@
13
13
  "text.maximum value": "maximum value",
14
14
  "text.minimum value": "minimum value",
15
15
  "title.history": "history"
16
- }
16
+ }
@@ -3,8 +3,8 @@
3
3
  "field.critical control point": "중점 관리점",
4
4
  "field.corrective action": "개선 조치",
5
5
  "field.item": "항목",
6
- "label.critical limits": "허용 한계",
7
- "label.target limits": "목표 한계",
6
+ "label.critical-limits": "허용 한계",
7
+ "label.target-limits": "목표 한계",
8
8
  "text.control limit": "허용 한계",
9
9
  "text.measurement": "측정",
10
10
  "text.observation": "관찰",
@@ -3,8 +3,8 @@
3
3
  "field.critical control point": "critical control point",
4
4
  "field.corrective action": "corrective action",
5
5
  "field.item": "item",
6
- "label.critical limits": "critical limits",
7
- "label.target limits": "target limits",
6
+ "label.critical-limits": "critical limits",
7
+ "label.target-limits": "target limits",
8
8
  "text.control limit": "control limit",
9
9
  "text.measurement": "measurement",
10
10
  "text.observation": "observation",
@@ -13,4 +13,4 @@
13
13
  "text.maximum value": "maximum value",
14
14
  "text.minimum value": "minimum value",
15
15
  "title.history": "history"
16
- }
16
+ }
@@ -3,8 +3,8 @@
3
3
  "field.critical control point": "critical control point",
4
4
  "field.corrective action": "corrective action",
5
5
  "field.item": "item",
6
- "label.critical limits": "critical limits",
7
- "label.target limits": "target limits",
6
+ "label.critical-limits": "critical limits",
7
+ "label.target-limits": "target limits",
8
8
  "text.control limit": "control limit",
9
9
  "text.measurement": "measurement",
10
10
  "text.observation": "observation",
@@ -13,4 +13,4 @@
13
13
  "text.maximum value": "maximum value",
14
14
  "text.minimum value": "minimum value",
15
15
  "title.history": "history"
16
- }
16
+ }
@@ -1,3 +0,0 @@
1
- import '@operato/ccp' /* to register CCP DataItemSpecProvider */
2
-
3
- export default function bootstrap() {}
package/client/index.js DELETED
File without changes
@@ -1,25 +0,0 @@
1
- import { html } from 'lit-element'
2
- import { connect } from 'pwa-helpers/connect-mixin.js'
3
-
4
- import { PageView, store } from '@things-factory/shell'
5
-
6
- class CCPMain extends connect(store)(PageView) {
7
- static get properties() {
8
- return {
9
- ccp: String
10
- }
11
- }
12
- render() {
13
- return html`
14
- <section>
15
- <h2>CCP</h2>
16
- </section>
17
- `
18
- }
19
-
20
- stateChanged(state) {
21
- this.ccp = state.ccp.state_main
22
- }
23
- }
24
-
25
- window.customElements.define('ccp-main', CCPMain)
package/client/route.js DELETED
@@ -1,7 +0,0 @@
1
- export default function route(page) {
2
- switch (page) {
3
- case 'ccp-main':
4
- import('./pages/main')
5
- return page
6
- }
7
- }
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.initMiddlewares = void 0;
4
- function initMiddlewares(app) {
5
- /* can add middlewares into app */
6
- }
7
- exports.initMiddlewares = initMiddlewares;
8
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/middlewares/index.ts"],"names":[],"mappings":";;;AAAA,SAAgB,eAAe,CAAC,GAAG;IACjC,kCAAkC;AACpC,CAAC;AAFD,0CAEC"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.migrations = void 0;
4
- const glob = require('glob');
5
- const path = require('path');
6
- exports.migrations = [];
7
- glob.sync(path.resolve(__dirname, '.', '**', '*.js')).forEach(function (file) {
8
- if (file.indexOf('index.js') !== -1)
9
- return;
10
- exports.migrations = exports.migrations.concat(Object.values(require(path.resolve(file))) || []);
11
- });
12
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/migrations/index.ts"],"names":[],"mappings":";;;AAAA,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;AAC5B,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;AAEjB,QAAA,UAAU,GAAG,EAAE,CAAA;AAE1B,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,UAAS,IAAI;IACzE,IAAI,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QAAE,OAAM;IAC3C,kBAAU,GAAG,kBAAU,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAA;AAClF,CAAC,CAAC,CAAA"}
@@ -1,25 +0,0 @@
1
- const debug = require('debug')('things-factory:ccp:routes');
2
- process.on('bootstrap-module-global-public-route', (app, globalPublicRouter) => {
3
- /*
4
- * can add global public routes to application (auth not required, tenancy not required)
5
- *
6
- * ex) routes.get('/path', async(context, next) => {})
7
- * ex) routes.post('/path', async(context, next) => {})
8
- */
9
- });
10
- process.on('bootstrap-module-global-private-route', (app, globalPrivateRouter) => {
11
- /*
12
- * can add global private routes to application (auth required, tenancy not required)
13
- */
14
- });
15
- process.on('bootstrap-module-domain-public-route', (app, domainPublicRouter) => {
16
- /*
17
- * can add domain public routes to application (auth not required, tenancy required)
18
- */
19
- });
20
- process.on('bootstrap-module-domain-private-route', (app, domainPrivateRouter) => {
21
- /*
22
- * can add domain private routes to application (auth required, tenancy required)
23
- */
24
- });
25
- //# sourceMappingURL=routes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"routes.js","sourceRoot":"","sources":["../server/routes.ts"],"names":[],"mappings":"AAAA,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,2BAA2B,CAAC,CAAA;AAE3D,OAAO,CAAC,EAAE,CAAC,sCAA6C,EAAE,CAAC,GAAG,EAAE,kBAAkB,EAAE,EAAE;IACpF;;;;;OAKG;AACL,CAAC,CAAC,CAAA;AAEF,OAAO,CAAC,EAAE,CAAC,uCAA8C,EAAE,CAAC,GAAG,EAAE,mBAAmB,EAAE,EAAE;IACtF;;OAEG;AACL,CAAC,CAAC,CAAA;AAEF,OAAO,CAAC,EAAE,CAAC,sCAA6C,EAAE,CAAC,GAAG,EAAE,kBAAkB,EAAE,EAAE;IACpF;;OAEG;AACL,CAAC,CAAC,CAAA;AAEF,OAAO,CAAC,EAAE,CAAC,uCAA8C,EAAE,CAAC,GAAG,EAAE,mBAAmB,EAAE,EAAE;IACtF;;OAEG;AACL,CAAC,CAAC,CAAA"}
@@ -1,3 +0,0 @@
1
- export function initMiddlewares(app) {
2
- /* can add middlewares into app */
3
- }
@@ -1,9 +0,0 @@
1
- const glob = require('glob')
2
- const path = require('path')
3
-
4
- export var migrations = []
5
-
6
- glob.sync(path.resolve(__dirname, '.', '**', '*.js')).forEach(function(file) {
7
- if (file.indexOf('index.js') !== -1) return
8
- migrations = migrations.concat(Object.values(require(path.resolve(file))) || [])
9
- })
package/server/routes.ts DELETED
@@ -1,28 +0,0 @@
1
- const debug = require('debug')('things-factory:ccp:routes')
2
-
3
- process.on('bootstrap-module-global-public-route' as any, (app, globalPublicRouter) => {
4
- /*
5
- * can add global public routes to application (auth not required, tenancy not required)
6
- *
7
- * ex) routes.get('/path', async(context, next) => {})
8
- * ex) routes.post('/path', async(context, next) => {})
9
- */
10
- })
11
-
12
- process.on('bootstrap-module-global-private-route' as any, (app, globalPrivateRouter) => {
13
- /*
14
- * can add global private routes to application (auth required, tenancy not required)
15
- */
16
- })
17
-
18
- process.on('bootstrap-module-domain-public-route' as any, (app, domainPublicRouter) => {
19
- /*
20
- * can add domain public routes to application (auth not required, tenancy required)
21
- */
22
- })
23
-
24
- process.on('bootstrap-module-domain-private-route' as any, (app, domainPrivateRouter) => {
25
- /*
26
- * can add domain private routes to application (auth required, tenancy required)
27
- */
28
- })