@dssp/supervision 0.0.26 → 0.0.28

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 (37) hide show
  1. package/client/bootstrap.ts +1 -8
  2. package/client/index.ts +0 -1
  3. package/client/pages/building-inspection/building-inspection-detail-drawing.ts +110 -14
  4. package/client/pages/building-inspection/component/building-inspection-detail-header.ts +1 -1
  5. package/dist-client/bootstrap.js +1 -7
  6. package/dist-client/bootstrap.js.map +1 -1
  7. package/dist-client/index.d.ts +0 -1
  8. package/dist-client/index.js +1 -1
  9. package/dist-client/index.js.map +1 -1
  10. package/dist-client/pages/building-inspection/building-inspection-detail-drawing.d.ts +16 -2
  11. package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js +121 -18
  12. package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js.map +1 -1
  13. package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js +9 -9
  14. package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js.map +1 -1
  15. package/dist-client/pages/checklist/checklist-view.js +0 -2
  16. package/dist-client/pages/checklist/checklist-view.js.map +1 -1
  17. package/dist-client/route.d.ts +1 -1
  18. package/dist-client/tsconfig.tsbuildinfo +1 -1
  19. package/dist-server/service/building-inspection/building-inspection-mutation.js +2 -1
  20. package/dist-server/service/building-inspection/building-inspection-mutation.js.map +1 -1
  21. package/dist-server/service/index.d.ts +1 -1
  22. package/dist-server/tsconfig.tsbuildinfo +1 -1
  23. package/package.json +6 -5
  24. package/server/service/building-inspection/building-inspection-mutation.ts +1 -1
  25. package/assets/images/hatiolab-logo.png +0 -0
  26. package/client/actions/main.ts +0 -1
  27. package/client/pages/main.ts +0 -25
  28. package/client/reducers/main.ts +0 -17
  29. package/dist-client/actions/main.d.ts +0 -1
  30. package/dist-client/actions/main.js +0 -2
  31. package/dist-client/actions/main.js.map +0 -1
  32. package/dist-client/pages/main.d.ts +0 -1
  33. package/dist-client/pages/main.js +0 -27
  34. package/dist-client/pages/main.js.map +0 -1
  35. package/dist-client/reducers/main.d.ts +0 -6
  36. package/dist-client/reducers/main.js +0 -14
  37. package/dist-client/reducers/main.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dssp/supervision",
3
- "version": "0.0.26",
3
+ "version": "0.0.28",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "repository": {
15
15
  "type": "git",
16
- "url": "git+https://github.com/hatiolab/dssp-m.git",
16
+ "url": "git+https://github.com/hatiolab/dssp.git",
17
17
  "directory": "packages/supervision"
18
18
  },
19
19
  "scripts": {
@@ -27,8 +27,9 @@
27
27
  "migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
28
28
  },
29
29
  "dependencies": {
30
- "@dssp/building-complex": "^0.0.26",
31
- "@dssp/project": "^0.0.26",
30
+ "@dssp/building-complex": "^0.0.28",
31
+ "@dssp/drawing": "^0.0.28",
32
+ "@dssp/project": "^0.0.28",
32
33
  "@operato/event-view": "^8.0.0-alpha",
33
34
  "@operato/graphql": "^8.0.0-alpha",
34
35
  "@operato/image-marker": "^8.0.0-alpha",
@@ -37,5 +38,5 @@
37
38
  "@things-factory/auth-base": "^8.0.0-alpha",
38
39
  "@things-factory/shell": "^8.0.0-alpha"
39
40
  },
40
- "gitHead": "240bdb67cf79bb5d922fc082db3d84f6e3cc488c"
41
+ "gitHead": "9880be3b865bcd429fbab483f7c4863152f1dd38"
41
42
  }
@@ -245,7 +245,7 @@ export class BuildingInspectionMutation {
245
245
  relations: ['building']
246
246
  })
247
247
 
248
- const buildingName = buildingLevel.building.name.match(/\d+/g).join('').padStart(4, '0')
248
+ const buildingName = buildingLevel.building.name.match(/\d+/g)?.join('')?.padStart(4, '0') || '0000'
249
249
  const floorName = buildingLevel.floor.toString().padStart(3, '0')
250
250
  const latestChecklist = await getRepository(Checklist)
251
251
  .createQueryBuilder('c')
Binary file
@@ -1 +0,0 @@
1
- export const UPDATE_SUPERVISION = 'UPDATE_SUPERVISION'
@@ -1,25 +0,0 @@
1
- import { html } from 'lit'
2
- import { customElement, property } from 'lit/decorators.js'
3
- import { connect } from 'pwa-helpers/connect-mixin.js'
4
- import { store, PageView } from '@operato/shell'
5
-
6
- const logo = new URL('/assets/images/hatiolab-logo.png', import.meta.url).href
7
-
8
- @customElement('supervision-main')
9
- class SupervisionMain extends connect(store)(PageView) {
10
- @property({ type: String }) supervision?: string
11
-
12
- render() {
13
- return html`
14
- <section>
15
- <h2>Supervision</h2>
16
- <img src=${logo}>
17
- </section>
18
- `
19
- }
20
-
21
- stateChanged(state) {
22
- this.supervision = state.supervision.state_main
23
- }
24
- }
25
-
@@ -1,17 +0,0 @@
1
- import { UPDATE_SUPERVISION } from '../actions/main'
2
-
3
- const INITIAL_STATE = {
4
- supervision: 'ABC'
5
- }
6
-
7
- const supervision = (state = INITIAL_STATE, action) => {
8
- switch (action.type) {
9
- case UPDATE_SUPERVISION:
10
- return { ...state }
11
-
12
- default:
13
- return state
14
- }
15
- }
16
-
17
- export default supervision
@@ -1 +0,0 @@
1
- export declare const UPDATE_SUPERVISION = "UPDATE_SUPERVISION";
@@ -1,2 +0,0 @@
1
- export const UPDATE_SUPERVISION = 'UPDATE_SUPERVISION';
2
- //# sourceMappingURL=main.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../../client/actions/main.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG,oBAAoB,CAAA","sourcesContent":["export const UPDATE_SUPERVISION = 'UPDATE_SUPERVISION'\n"]}
@@ -1 +0,0 @@
1
- export {};
@@ -1,27 +0,0 @@
1
- import { __decorate, __metadata } from "tslib";
2
- import { html } from 'lit';
3
- import { customElement, property } from 'lit/decorators.js';
4
- import { connect } from 'pwa-helpers/connect-mixin.js';
5
- import { store, PageView } from '@operato/shell';
6
- const logo = new URL('/assets/images/hatiolab-logo.png', import.meta.url).href;
7
- let SupervisionMain = class SupervisionMain extends connect(store)(PageView) {
8
- render() {
9
- return html `
10
- <section>
11
- <h2>Supervision</h2>
12
- <img src=${logo}>
13
- </section>
14
- `;
15
- }
16
- stateChanged(state) {
17
- this.supervision = state.supervision.state_main;
18
- }
19
- };
20
- __decorate([
21
- property({ type: String }),
22
- __metadata("design:type", String)
23
- ], SupervisionMain.prototype, "supervision", void 0);
24
- SupervisionMain = __decorate([
25
- customElement('supervision-main')
26
- ], SupervisionMain);
27
- //# sourceMappingURL=main.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../../client/pages/main.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAC1B,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAA;AACtD,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAEhD,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,kCAAkC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAG9E,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,OAAO,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC;IAGpD,MAAM;QACJ,OAAO,IAAI,CAAA;;;mBAGI,IAAI;;KAElB,CAAA;IACH,CAAC;IAED,YAAY,CAAC,KAAK;QAChB,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC,UAAU,CAAA;IACjD,CAAC;CACF,CAAA;AAdC;IAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oDAAqB;AAD5C,eAAe;IADpB,aAAa,CAAC,kBAAkB,CAAC;GAC5B,eAAe,CAepB","sourcesContent":["import { html } from 'lit'\nimport { customElement, property } from 'lit/decorators.js'\nimport { connect } from 'pwa-helpers/connect-mixin.js'\nimport { store, PageView } from '@operato/shell'\n\nconst logo = new URL('/assets/images/hatiolab-logo.png', import.meta.url).href\n\n@customElement('supervision-main')\nclass SupervisionMain extends connect(store)(PageView) {\n @property({ type: String }) supervision?: string\n\n render() {\n return html`\n <section>\n <h2>Supervision</h2>\n <img src=${logo}>\n </section>\n `\n }\n\n stateChanged(state) {\n this.supervision = state.supervision.state_main\n }\n}\n\n"]}
@@ -1,6 +0,0 @@
1
- declare const supervision: (state: {
2
- supervision: string;
3
- } | undefined, action: any) => {
4
- supervision: string;
5
- };
6
- export default supervision;
@@ -1,14 +0,0 @@
1
- import { UPDATE_SUPERVISION } from '../actions/main';
2
- const INITIAL_STATE = {
3
- supervision: 'ABC'
4
- };
5
- const supervision = (state = INITIAL_STATE, action) => {
6
- switch (action.type) {
7
- case UPDATE_SUPERVISION:
8
- return Object.assign({}, state);
9
- default:
10
- return state;
11
- }
12
- };
13
- export default supervision;
14
- //# sourceMappingURL=main.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../../client/reducers/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAEpD,MAAM,aAAa,GAAG;IACpB,WAAW,EAAE,KAAK;CACnB,CAAA;AAED,MAAM,WAAW,GAAG,CAAC,KAAK,GAAG,aAAa,EAAE,MAAM,EAAE,EAAE;IACpD,QAAQ,MAAM,CAAC,IAAI,EAAE;QACnB,KAAK,kBAAkB;YACrB,yBAAY,KAAK,EAAE;QAErB;YACE,OAAO,KAAK,CAAA;KACf;AACH,CAAC,CAAA;AAED,eAAe,WAAW,CAAA","sourcesContent":["import { UPDATE_SUPERVISION } from '../actions/main'\n\nconst INITIAL_STATE = {\n supervision: 'ABC'\n}\n\nconst supervision = (state = INITIAL_STATE, action) => {\n switch (action.type) {\n case UPDATE_SUPERVISION:\n return { ...state }\n\n default:\n return state\n }\n}\n\nexport default supervision\n"]}