@dssp/supervision 0.0.27 → 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.
- package/client/bootstrap.ts +1 -8
- package/client/index.ts +0 -1
- package/client/pages/building-inspection/building-inspection-detail-drawing.ts +110 -14
- package/client/pages/building-inspection/component/building-inspection-detail-header.ts +1 -1
- package/dist-client/bootstrap.js +1 -7
- package/dist-client/bootstrap.js.map +1 -1
- package/dist-client/index.d.ts +0 -1
- package/dist-client/index.js +1 -1
- package/dist-client/index.js.map +1 -1
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.d.ts +16 -2
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js +121 -18
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js.map +1 -1
- package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js +9 -9
- package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js.map +1 -1
- package/dist-client/route.d.ts +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/service/building-inspection/building-inspection-mutation.js +2 -1
- package/dist-server/service/building-inspection/building-inspection-mutation.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -5
- package/server/service/building-inspection/building-inspection-mutation.ts +1 -1
- package/assets/images/hatiolab-logo.png +0 -0
- package/client/actions/main.ts +0 -1
- package/client/pages/main.ts +0 -25
- package/client/reducers/main.ts +0 -17
- package/dist-client/actions/main.d.ts +0 -1
- package/dist-client/actions/main.js +0 -2
- package/dist-client/actions/main.js.map +0 -1
- package/dist-client/pages/main.d.ts +0 -1
- package/dist-client/pages/main.js +0 -27
- package/dist-client/pages/main.js.map +0 -1
- package/dist-client/reducers/main.d.ts +0 -6
- package/dist-client/reducers/main.js +0 -14
- package/dist-client/reducers/main.js.map +0 -1
package/client/bootstrap.ts
CHANGED
package/client/index.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './actions/main'
|
|
@@ -1,16 +1,23 @@
|
|
|
1
1
|
import '@material/web/icon/icon.js'
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
import
|
|
2
|
+
import '@operato/image-marker/ox-image-marker.js'
|
|
3
|
+
import '@operato/image-marker/ox-image-marker-view.js'
|
|
4
|
+
|
|
5
|
+
import gql from 'graphql-tag'
|
|
6
|
+
import { css, html, PropertyValues } from 'lit'
|
|
6
7
|
import { customElement, query, state } from 'lit/decorators.js'
|
|
8
|
+
import { consume } from '@lit/context'
|
|
7
9
|
import { ScopedElementsMixin } from '@open-wc/scoped-elements'
|
|
10
|
+
|
|
11
|
+
import { PageView } from '@operato/shell'
|
|
12
|
+
import { CommonGristStyles, ScrollbarStyles } from '@operato/styles'
|
|
13
|
+
import { PageLifecycle } from '@operato/shell/dist/src/app/pages/page-view'
|
|
8
14
|
import { client } from '@operato/graphql'
|
|
9
15
|
import { notify } from '@operato/layout'
|
|
10
|
-
import
|
|
16
|
+
import { ImageProvider, Shape } from '@operato/image-marker'
|
|
17
|
+
|
|
18
|
+
import { DrawingImageProvider } from '@dssp/drawing/dist-client/drawing-management/drawing-image-provider.js'
|
|
19
|
+
|
|
11
20
|
import './component/building-inspection-detail-header'
|
|
12
|
-
import '@operato/image-marker/ox-image-marker.js'
|
|
13
|
-
import '@operato/image-marker/ox-image-marker-view.js'
|
|
14
21
|
import { BuildingInspectionStatus } from './building-inspection-list'
|
|
15
22
|
|
|
16
23
|
@customElement('building-inspection-detail-drawing')
|
|
@@ -40,12 +47,28 @@ export class BuildingInspectionDetailDrawing extends ScopedElementsMixin(PageVie
|
|
|
40
47
|
width: 100%;
|
|
41
48
|
}
|
|
42
49
|
}
|
|
50
|
+
|
|
51
|
+
dialog ox-image-marker-view {
|
|
52
|
+
width: 80vw;
|
|
53
|
+
height: 80vh;
|
|
54
|
+
}
|
|
43
55
|
`
|
|
44
56
|
]
|
|
45
57
|
|
|
46
58
|
@state() project: any = {}
|
|
47
59
|
@state() buildingInspection: any = {}
|
|
48
60
|
@state() buildingInspectionId: string = ''
|
|
61
|
+
@state() imageUrl?: string
|
|
62
|
+
@state() shapes: Shape[] = []
|
|
63
|
+
@state() linkUrl?: string
|
|
64
|
+
@state() linkShapes: Shape[] = []
|
|
65
|
+
|
|
66
|
+
@state() drawingImageProvider: DrawingImageProvider = new DrawingImageProvider()
|
|
67
|
+
// @consume({ context: OxUserPreferencesContext, subscribe: true })
|
|
68
|
+
|
|
69
|
+
@query('#image-marker') imageMarker!: any
|
|
70
|
+
@query('#link-viewer') linkViewer!: any
|
|
71
|
+
@query('dialog') dialog!: HTMLDialogElement
|
|
49
72
|
|
|
50
73
|
get context() {
|
|
51
74
|
return {
|
|
@@ -53,10 +76,34 @@ export class BuildingInspectionDetailDrawing extends ScopedElementsMixin(PageVie
|
|
|
53
76
|
}
|
|
54
77
|
}
|
|
55
78
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
79
|
+
connectedCallback(): void {
|
|
80
|
+
super.connectedCallback()
|
|
81
|
+
|
|
82
|
+
requestAnimationFrame(() => {
|
|
83
|
+
this.imageMarker.setImageProvider(this.drawingImageProvider)
|
|
84
|
+
this.linkViewer.setImageProvider(this.drawingImageProvider)
|
|
59
85
|
|
|
86
|
+
this.dialog.addEventListener('click', event => {
|
|
87
|
+
const rect = this.dialog.getBoundingClientRect()
|
|
88
|
+
const isInDialog =
|
|
89
|
+
rect.top <= event.clientY && event.clientY <= rect.bottom && rect.left <= event.clientX && event.clientX <= rect.right
|
|
90
|
+
|
|
91
|
+
// 다이아로그 내부를 클릭한 것이 아니면 다이아로그 닫기
|
|
92
|
+
if (!isInDialog) {
|
|
93
|
+
this.dialog.close()
|
|
94
|
+
}
|
|
95
|
+
})
|
|
96
|
+
})
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
disconnectedCallback(): void {
|
|
100
|
+
this.imageMarker?.setImageProvider(null)
|
|
101
|
+
this.linkViewer?.setImageProvider(null)
|
|
102
|
+
|
|
103
|
+
super.disconnectedCallback()
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
render() {
|
|
60
107
|
return html`
|
|
61
108
|
<building-inspection-detail-header
|
|
62
109
|
.buildingInspectionId=${this.buildingInspection?.id}
|
|
@@ -66,23 +113,72 @@ export class BuildingInspectionDetailDrawing extends ScopedElementsMixin(PageVie
|
|
|
66
113
|
.buildingLevelFloor=${this.buildingInspection?.buildingLevel?.floor}
|
|
67
114
|
></building-inspection-detail-header>
|
|
68
115
|
|
|
69
|
-
<div
|
|
116
|
+
<div
|
|
117
|
+
body
|
|
118
|
+
@link-clicked=${async (e: CustomEvent) => {
|
|
119
|
+
this.linkViewer.reset()
|
|
120
|
+
|
|
121
|
+
const { link } = e.detail
|
|
122
|
+
const { id, type, symbol, box, dwgId } = JSON.parse(link)
|
|
123
|
+
const [x, y, width, height] = box?.split(',').map(Number) || []
|
|
124
|
+
|
|
125
|
+
this.linkUrl = dwgId
|
|
126
|
+
this.linkShapes = [
|
|
127
|
+
{
|
|
128
|
+
id: id!,
|
|
129
|
+
type: 'link',
|
|
130
|
+
x,
|
|
131
|
+
y,
|
|
132
|
+
width,
|
|
133
|
+
height,
|
|
134
|
+
link: '{}'
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
|
|
138
|
+
if (this.dialog) {
|
|
139
|
+
this.dialog.showModal()
|
|
140
|
+
}
|
|
141
|
+
}}
|
|
142
|
+
>
|
|
70
143
|
${this.buildingInspection?.status == BuildingInspectionStatus.PASS
|
|
71
|
-
? html`<ox-image-marker-view
|
|
144
|
+
? html`<ox-image-marker-view
|
|
145
|
+
id="image-marker"
|
|
146
|
+
.imageUrl=${this.imageUrl}
|
|
147
|
+
.shapes=${this.shapes}
|
|
148
|
+
></ox-image-marker-view>`
|
|
72
149
|
: html` <ox-image-marker
|
|
73
|
-
|
|
74
|
-
.
|
|
150
|
+
id="image-marker"
|
|
151
|
+
.imageUrl=${this.imageUrl}
|
|
152
|
+
.shapes=${this.shapes}
|
|
75
153
|
@shapes-changed=${this.onClickMarkerSave}
|
|
76
154
|
.currentMode=${'view'}
|
|
77
155
|
></ox-image-marker>`}
|
|
78
156
|
</div>
|
|
157
|
+
|
|
158
|
+
<dialog>
|
|
159
|
+
<ox-image-marker-view id="link-viewer" .imageUrl=${this.linkUrl} .shapes=${this.linkShapes}></ox-image-marker-view>
|
|
160
|
+
</dialog>
|
|
79
161
|
`
|
|
80
162
|
}
|
|
81
163
|
|
|
164
|
+
protected async updated(changes: PropertyValues): Promise<void> {
|
|
165
|
+
if (changes.has('buildingInspection')) {
|
|
166
|
+
const dwgId = 'GA-3006' // this.buildingInspection?.buildingLevel?.mainDrawingImage || '/assets/images/img-drawing-default.png'
|
|
167
|
+
|
|
168
|
+
const shapes = JSON.parse(this.buildingInspection?.drawingMarker || null) || []
|
|
169
|
+
const markers = await this.drawingImageProvider.getMarkers(dwgId)
|
|
170
|
+
|
|
171
|
+
this.imageUrl = dwgId
|
|
172
|
+
this.shapes = [...shapes, ...markers]
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
82
176
|
async pageUpdated(changes: any, lifecycle: PageLifecycle) {
|
|
83
177
|
if (this.active) {
|
|
84
178
|
this.buildingInspectionId = lifecycle.resourceId || ''
|
|
85
179
|
await this.initBuildingInspection(this.buildingInspectionId)
|
|
180
|
+
|
|
181
|
+
this.imageMarker.reset()
|
|
86
182
|
}
|
|
87
183
|
}
|
|
88
184
|
|
|
@@ -4,7 +4,7 @@ import { customElement, property, state } from 'lit/decorators.js'
|
|
|
4
4
|
import { ButtonContainerStyles, ScrollbarStyles } from '@operato/styles'
|
|
5
5
|
|
|
6
6
|
@customElement('building-inspection-detail-header')
|
|
7
|
-
class
|
|
7
|
+
class BuildingInspectionDetailHeader extends LitElement {
|
|
8
8
|
static styles = [
|
|
9
9
|
ButtonContainerStyles,
|
|
10
10
|
ScrollbarStyles,
|
package/dist-client/bootstrap.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../client/bootstrap.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../client/bootstrap.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,SAAS,KAAI,CAAC","sourcesContent":["export default function bootstrap() {}\n"]}
|
package/dist-client/index.d.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './actions/main';
|
package/dist-client/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist-client/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../client/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../client/index.ts"],"names":[],"mappings":"","sourcesContent":[""]}
|
|
@@ -1,19 +1,33 @@
|
|
|
1
1
|
import '@material/web/icon/icon.js';
|
|
2
|
+
import '@operato/image-marker/ox-image-marker.js';
|
|
3
|
+
import '@operato/image-marker/ox-image-marker-view.js';
|
|
4
|
+
import { PropertyValues } from 'lit';
|
|
2
5
|
import { PageView } from '@operato/shell';
|
|
3
6
|
import { PageLifecycle } from '@operato/shell/dist/src/app/pages/page-view';
|
|
7
|
+
import { Shape } from '@operato/image-marker';
|
|
8
|
+
import { DrawingImageProvider } from '@dssp/drawing/dist-client/drawing-management/drawing-image-provider.js';
|
|
4
9
|
import './component/building-inspection-detail-header';
|
|
5
|
-
import '@operato/image-marker/ox-image-marker.js';
|
|
6
|
-
import '@operato/image-marker/ox-image-marker-view.js';
|
|
7
10
|
declare const BuildingInspectionDetailDrawing_base: typeof PageView & import("@open-wc/dedupe-mixin").Constructor<import("@open-wc/scoped-elements/types/src/types").ScopedElementsHost>;
|
|
8
11
|
export declare class BuildingInspectionDetailDrawing extends BuildingInspectionDetailDrawing_base {
|
|
9
12
|
static styles: import("lit").CSSResult[];
|
|
10
13
|
project: any;
|
|
11
14
|
buildingInspection: any;
|
|
12
15
|
buildingInspectionId: string;
|
|
16
|
+
imageUrl?: string;
|
|
17
|
+
shapes: Shape[];
|
|
18
|
+
linkUrl?: string;
|
|
19
|
+
linkShapes: Shape[];
|
|
20
|
+
drawingImageProvider: DrawingImageProvider;
|
|
21
|
+
imageMarker: any;
|
|
22
|
+
linkViewer: any;
|
|
23
|
+
dialog: HTMLDialogElement;
|
|
13
24
|
get context(): {
|
|
14
25
|
title: string;
|
|
15
26
|
};
|
|
27
|
+
connectedCallback(): void;
|
|
28
|
+
disconnectedCallback(): void;
|
|
16
29
|
render(): import("lit-html").TemplateResult<1>;
|
|
30
|
+
protected updated(changes: PropertyValues): Promise<void>;
|
|
17
31
|
pageUpdated(changes: any, lifecycle: PageLifecycle): Promise<void>;
|
|
18
32
|
initBuildingInspection(buildingInspectionId?: string): Promise<void>;
|
|
19
33
|
private _getProjectByBuildingComplexId;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { __decorate, __metadata } from "tslib";
|
|
2
2
|
import '@material/web/icon/icon.js';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import '@operato/image-marker/ox-image-marker.js';
|
|
4
|
+
import '@operato/image-marker/ox-image-marker-view.js';
|
|
5
|
+
import gql from 'graphql-tag';
|
|
5
6
|
import { css, html } from 'lit';
|
|
6
|
-
import { customElement, state } from 'lit/decorators.js';
|
|
7
|
+
import { customElement, query, state } from 'lit/decorators.js';
|
|
7
8
|
import { ScopedElementsMixin } from '@open-wc/scoped-elements';
|
|
9
|
+
import { PageView } from '@operato/shell';
|
|
10
|
+
import { CommonGristStyles, ScrollbarStyles } from '@operato/styles';
|
|
8
11
|
import { client } from '@operato/graphql';
|
|
9
12
|
import { notify } from '@operato/layout';
|
|
10
|
-
import
|
|
13
|
+
import { DrawingImageProvider } from '@dssp/drawing/dist-client/drawing-management/drawing-image-provider.js';
|
|
11
14
|
import './component/building-inspection-detail-header';
|
|
12
|
-
import '@operato/image-marker/ox-image-marker.js';
|
|
13
|
-
import '@operato/image-marker/ox-image-marker-view.js';
|
|
14
15
|
import { BuildingInspectionStatus } from './building-inspection-list';
|
|
15
16
|
let BuildingInspectionDetailDrawing = class BuildingInspectionDetailDrawing extends ScopedElementsMixin(PageView) {
|
|
16
17
|
constructor() {
|
|
@@ -18,41 +19,106 @@ let BuildingInspectionDetailDrawing = class BuildingInspectionDetailDrawing exte
|
|
|
18
19
|
this.project = {};
|
|
19
20
|
this.buildingInspection = {};
|
|
20
21
|
this.buildingInspectionId = '';
|
|
22
|
+
this.shapes = [];
|
|
23
|
+
this.linkShapes = [];
|
|
24
|
+
this.drawingImageProvider = new DrawingImageProvider();
|
|
21
25
|
}
|
|
22
26
|
get context() {
|
|
23
27
|
return {
|
|
24
28
|
title: '검측 관리 상세 - 검측 도면'
|
|
25
29
|
};
|
|
26
30
|
}
|
|
31
|
+
connectedCallback() {
|
|
32
|
+
super.connectedCallback();
|
|
33
|
+
requestAnimationFrame(() => {
|
|
34
|
+
this.imageMarker.setImageProvider(this.drawingImageProvider);
|
|
35
|
+
this.linkViewer.setImageProvider(this.drawingImageProvider);
|
|
36
|
+
this.dialog.addEventListener('click', event => {
|
|
37
|
+
const rect = this.dialog.getBoundingClientRect();
|
|
38
|
+
const isInDialog = rect.top <= event.clientY && event.clientY <= rect.bottom && rect.left <= event.clientX && event.clientX <= rect.right;
|
|
39
|
+
// 다이아로그 내부를 클릭한 것이 아니면 다이아로그 닫기
|
|
40
|
+
if (!isInDialog) {
|
|
41
|
+
this.dialog.close();
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
disconnectedCallback() {
|
|
47
|
+
var _a, _b;
|
|
48
|
+
(_a = this.imageMarker) === null || _a === void 0 ? void 0 : _a.setImageProvider(null);
|
|
49
|
+
(_b = this.linkViewer) === null || _b === void 0 ? void 0 : _b.setImageProvider(null);
|
|
50
|
+
super.disconnectedCallback();
|
|
51
|
+
}
|
|
27
52
|
render() {
|
|
28
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j
|
|
29
|
-
const imageUrl = ((_b = (_a = this.buildingInspection) === null || _a === void 0 ? void 0 : _a.buildingLevel) === null || _b === void 0 ? void 0 : _b.mainDrawingImage) || '/assets/images/img-drawing-default.png';
|
|
30
|
-
const shapes = JSON.parse(((_c = this.buildingInspection) === null || _c === void 0 ? void 0 : _c.drawingMarker) || null) || [];
|
|
53
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
31
54
|
return html `
|
|
32
55
|
<building-inspection-detail-header
|
|
33
|
-
.buildingInspectionId=${(
|
|
34
|
-
.buildingLevelId=${(
|
|
56
|
+
.buildingInspectionId=${(_a = this.buildingInspection) === null || _a === void 0 ? void 0 : _a.id}
|
|
57
|
+
.buildingLevelId=${(_c = (_b = this.buildingInspection) === null || _b === void 0 ? void 0 : _b.buildingLevel) === null || _c === void 0 ? void 0 : _c.id}
|
|
35
58
|
.projectName=${this.project.name}
|
|
36
|
-
.buildingName=${(
|
|
37
|
-
.buildingLevelFloor=${(
|
|
59
|
+
.buildingName=${(_f = (_e = (_d = this.buildingInspection) === null || _d === void 0 ? void 0 : _d.buildingLevel) === null || _e === void 0 ? void 0 : _e.building) === null || _f === void 0 ? void 0 : _f.name}
|
|
60
|
+
.buildingLevelFloor=${(_h = (_g = this.buildingInspection) === null || _g === void 0 ? void 0 : _g.buildingLevel) === null || _h === void 0 ? void 0 : _h.floor}
|
|
38
61
|
></building-inspection-detail-header>
|
|
39
62
|
|
|
40
|
-
<div
|
|
41
|
-
|
|
42
|
-
|
|
63
|
+
<div
|
|
64
|
+
body
|
|
65
|
+
@link-clicked=${async (e) => {
|
|
66
|
+
this.linkViewer.reset();
|
|
67
|
+
const { link } = e.detail;
|
|
68
|
+
const { id, type, symbol, box, dwgId } = JSON.parse(link);
|
|
69
|
+
const [x, y, width, height] = (box === null || box === void 0 ? void 0 : box.split(',').map(Number)) || [];
|
|
70
|
+
this.linkUrl = dwgId;
|
|
71
|
+
this.linkShapes = [
|
|
72
|
+
{
|
|
73
|
+
id: id,
|
|
74
|
+
type: 'link',
|
|
75
|
+
x,
|
|
76
|
+
y,
|
|
77
|
+
width,
|
|
78
|
+
height,
|
|
79
|
+
link: '{}'
|
|
80
|
+
}
|
|
81
|
+
];
|
|
82
|
+
if (this.dialog) {
|
|
83
|
+
this.dialog.showModal();
|
|
84
|
+
}
|
|
85
|
+
}}
|
|
86
|
+
>
|
|
87
|
+
${((_j = this.buildingInspection) === null || _j === void 0 ? void 0 : _j.status) == BuildingInspectionStatus.PASS
|
|
88
|
+
? html `<ox-image-marker-view
|
|
89
|
+
id="image-marker"
|
|
90
|
+
.imageUrl=${this.imageUrl}
|
|
91
|
+
.shapes=${this.shapes}
|
|
92
|
+
></ox-image-marker-view>`
|
|
43
93
|
: html ` <ox-image-marker
|
|
44
|
-
|
|
45
|
-
.
|
|
94
|
+
id="image-marker"
|
|
95
|
+
.imageUrl=${this.imageUrl}
|
|
96
|
+
.shapes=${this.shapes}
|
|
46
97
|
@shapes-changed=${this.onClickMarkerSave}
|
|
47
98
|
.currentMode=${'view'}
|
|
48
99
|
></ox-image-marker>`}
|
|
49
100
|
</div>
|
|
101
|
+
|
|
102
|
+
<dialog>
|
|
103
|
+
<ox-image-marker-view id="link-viewer" .imageUrl=${this.linkUrl} .shapes=${this.linkShapes}></ox-image-marker-view>
|
|
104
|
+
</dialog>
|
|
50
105
|
`;
|
|
51
106
|
}
|
|
107
|
+
async updated(changes) {
|
|
108
|
+
var _a;
|
|
109
|
+
if (changes.has('buildingInspection')) {
|
|
110
|
+
const dwgId = 'GA-3006'; // this.buildingInspection?.buildingLevel?.mainDrawingImage || '/assets/images/img-drawing-default.png'
|
|
111
|
+
const shapes = JSON.parse(((_a = this.buildingInspection) === null || _a === void 0 ? void 0 : _a.drawingMarker) || null) || [];
|
|
112
|
+
const markers = await this.drawingImageProvider.getMarkers(dwgId);
|
|
113
|
+
this.imageUrl = dwgId;
|
|
114
|
+
this.shapes = [...shapes, ...markers];
|
|
115
|
+
}
|
|
116
|
+
}
|
|
52
117
|
async pageUpdated(changes, lifecycle) {
|
|
53
118
|
if (this.active) {
|
|
54
119
|
this.buildingInspectionId = lifecycle.resourceId || '';
|
|
55
120
|
await this.initBuildingInspection(this.buildingInspectionId);
|
|
121
|
+
this.imageMarker.reset();
|
|
56
122
|
}
|
|
57
123
|
}
|
|
58
124
|
async initBuildingInspection(buildingInspectionId = '') {
|
|
@@ -159,6 +225,11 @@ BuildingInspectionDetailDrawing.styles = [
|
|
|
159
225
|
width: 100%;
|
|
160
226
|
}
|
|
161
227
|
}
|
|
228
|
+
|
|
229
|
+
dialog ox-image-marker-view {
|
|
230
|
+
width: 80vw;
|
|
231
|
+
height: 80vh;
|
|
232
|
+
}
|
|
162
233
|
`
|
|
163
234
|
];
|
|
164
235
|
__decorate([
|
|
@@ -173,6 +244,38 @@ __decorate([
|
|
|
173
244
|
state(),
|
|
174
245
|
__metadata("design:type", String)
|
|
175
246
|
], BuildingInspectionDetailDrawing.prototype, "buildingInspectionId", void 0);
|
|
247
|
+
__decorate([
|
|
248
|
+
state(),
|
|
249
|
+
__metadata("design:type", String)
|
|
250
|
+
], BuildingInspectionDetailDrawing.prototype, "imageUrl", void 0);
|
|
251
|
+
__decorate([
|
|
252
|
+
state(),
|
|
253
|
+
__metadata("design:type", Array)
|
|
254
|
+
], BuildingInspectionDetailDrawing.prototype, "shapes", void 0);
|
|
255
|
+
__decorate([
|
|
256
|
+
state(),
|
|
257
|
+
__metadata("design:type", String)
|
|
258
|
+
], BuildingInspectionDetailDrawing.prototype, "linkUrl", void 0);
|
|
259
|
+
__decorate([
|
|
260
|
+
state(),
|
|
261
|
+
__metadata("design:type", Array)
|
|
262
|
+
], BuildingInspectionDetailDrawing.prototype, "linkShapes", void 0);
|
|
263
|
+
__decorate([
|
|
264
|
+
state(),
|
|
265
|
+
__metadata("design:type", DrawingImageProvider)
|
|
266
|
+
], BuildingInspectionDetailDrawing.prototype, "drawingImageProvider", void 0);
|
|
267
|
+
__decorate([
|
|
268
|
+
query('#image-marker'),
|
|
269
|
+
__metadata("design:type", Object)
|
|
270
|
+
], BuildingInspectionDetailDrawing.prototype, "imageMarker", void 0);
|
|
271
|
+
__decorate([
|
|
272
|
+
query('#link-viewer'),
|
|
273
|
+
__metadata("design:type", Object)
|
|
274
|
+
], BuildingInspectionDetailDrawing.prototype, "linkViewer", void 0);
|
|
275
|
+
__decorate([
|
|
276
|
+
query('dialog'),
|
|
277
|
+
__metadata("design:type", HTMLDialogElement)
|
|
278
|
+
], BuildingInspectionDetailDrawing.prototype, "dialog", void 0);
|
|
176
279
|
BuildingInspectionDetailDrawing = __decorate([
|
|
177
280
|
customElement('building-inspection-detail-drawing')
|
|
178
281
|
], BuildingInspectionDetailDrawing);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"building-inspection-detail-drawing.js","sourceRoot":"","sources":["../../../client/pages/building-inspection/building-inspection-detail-drawing.ts"],"names":[],"mappings":";AAAA,OAAO,4BAA4B,CAAA;AACnC,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAE/B,OAAO,EAAE,aAAa,EAAS,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxC,OAAO,GAAG,MAAM,aAAa,CAAA;AAC7B,OAAO,+CAA+C,CAAA;AACtD,OAAO,0CAA0C,CAAA;A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EAAE,EAAE,IAAI,CAAC,oBAAoB;oBAC7B,aAAa,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC;iBACxC;aACF;SACF,CAAC,CAAA;QAEF,IAAI,QAAQ,CAAC,MAAM;YAAE,OAAM;QAE3B,MAAM,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC,CAAA;IACjC,CAAC;;AAzJM,sCAAM,GAAG;IACd,eAAe;IACf,iBAAiB;IACjB,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;KAsBF;CACF,CAAA;AAED;IAAC,KAAK,EAAE;;gEAAkB;AAC1B;IAAC,KAAK,EAAE;;2EAA6B;AACrC;IAAC,KAAK,EAAE;;6EAAkC;AA/B/B,+BAA+B;IAD3C,aAAa,CAAC,oCAAoC,CAAC;GACvC,+BAA+B,CA2J3C;SA3JY,+BAA+B","sourcesContent":["import '@material/web/icon/icon.js'\nimport { CommonGristStyles, ScrollbarStyles } from '@operato/styles'\nimport { PageView } from '@operato/shell'\nimport { css, html } from 'lit'\nimport { PageLifecycle } from '@operato/shell/dist/src/app/pages/page-view'\nimport { customElement, query, state } from 'lit/decorators.js'\nimport { ScopedElementsMixin } from '@open-wc/scoped-elements'\nimport { client } from '@operato/graphql'\nimport { notify } from '@operato/layout'\nimport gql from 'graphql-tag'\nimport './component/building-inspection-detail-header'\nimport '@operato/image-marker/ox-image-marker.js'\nimport '@operato/image-marker/ox-image-marker-view.js'\nimport { BuildingInspectionStatus } from './building-inspection-list'\n\n@customElement('building-inspection-detail-drawing')\nexport class BuildingInspectionDetailDrawing extends ScopedElementsMixin(PageView) {\n static styles = [\n ScrollbarStyles,\n CommonGristStyles,\n css`\n :host {\n display: grid;\n grid-template-rows: 75px auto;\n color: #4e5055;\n\n width: 100%;\n background-color: #f7f7f7;\n overflow-y: auto;\n\n --grid-record-emphasized-background-color: red;\n --grid-record-emphasized-color: yellow;\n }\n\n div[body] {\n display: flex;\n justify-content: center;\n\n ox-image-marker-view {\n width: 100%;\n }\n }\n `\n ]\n\n @state() project: any = {}\n @state() buildingInspection: any = {}\n @state() buildingInspectionId: string = ''\n\n get context() {\n return {\n title: '검측 관리 상세 - 검측 도면'\n }\n }\n\n render() {\n const imageUrl = this.buildingInspection?.buildingLevel?.mainDrawingImage || '/assets/images/img-drawing-default.png'\n const shapes = JSON.parse(this.buildingInspection?.drawingMarker || null) || []\n\n return html`\n <building-inspection-detail-header\n .buildingInspectionId=${this.buildingInspection?.id}\n .buildingLevelId=${this.buildingInspection?.buildingLevel?.id}\n .projectName=${this.project.name}\n .buildingName=${this.buildingInspection?.buildingLevel?.building?.name}\n .buildingLevelFloor=${this.buildingInspection?.buildingLevel?.floor}\n ></building-inspection-detail-header>\n\n <div body>\n ${this.buildingInspection?.status == BuildingInspectionStatus.PASS\n ? html`<ox-image-marker-view .imageUrl=${imageUrl} .shapes=${shapes}></ox-image-marker-view>`\n : html` <ox-image-marker\n .imageUrl=${imageUrl}\n .shapes=${shapes}\n @shapes-changed=${this.onClickMarkerSave}\n .currentMode=${'view'}\n ></ox-image-marker>`}\n </div>\n `\n }\n\n async pageUpdated(changes: any, lifecycle: PageLifecycle) {\n if (this.active) {\n this.buildingInspectionId = lifecycle.resourceId || ''\n await this.initBuildingInspection(this.buildingInspectionId)\n }\n }\n\n async initBuildingInspection(buildingInspectionId: string = '') {\n const response = await client.query({\n query: gql`\n query BuildingInspection($buildingInspectionId: String!) {\n buildingInspection(id: $buildingInspectionId) {\n id\n status\n requestDate\n drawingMarker\n buildingLevel {\n id\n floor\n mainDrawing {\n id\n name\n fullpath\n }\n mainDrawingImage\n building {\n id\n name\n buildingComplex {\n id\n }\n }\n }\n }\n }\n `,\n variables: {\n buildingInspectionId\n }\n })\n\n if (response.errors) return\n\n this.buildingInspection = response.data.buildingInspection\n\n await this._getProjectByBuildingComplexId(this.buildingInspection?.buildingLevel?.building?.buildingComplex?.id)\n }\n\n private async _getProjectByBuildingComplexId(buildingComplexId) {\n const response = await client.query({\n query: gql`\n query ProjectByBuildingComplexId($buildingComplexId: String!) {\n project: projectByBuildingComplexId(buildingComplexId: $buildingComplexId) {\n id\n name\n }\n }\n `,\n variables: {\n buildingComplexId\n }\n })\n\n if (response.errors) return\n\n this.project = response.data.project\n }\n\n private async onClickMarkerSave(e) {\n const response = await client.query({\n query: gql`\n mutation UpdateBuildingInspection($patch: UpdateBuildingInspectionDrawingMarker!) {\n updateBuildingInspection(patch: $patch) {\n id\n drawingMarker\n }\n }\n `,\n variables: {\n patch: {\n id: this.buildingInspectionId,\n drawingMarker: JSON.stringify(e.detail)\n }\n }\n })\n\n if (response.errors) return\n\n notify({ message: '저장되었습니다.' })\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"building-inspection-detail-drawing.js","sourceRoot":"","sources":["../../../client/pages/building-inspection/building-inspection-detail-drawing.ts"],"names":[],"mappings":";AAAA,OAAO,4BAA4B,CAAA;AACnC,OAAO,0CAA0C,CAAA;AACjD,OAAO,+CAA+C,CAAA;AAEtD,OAAO,GAAG,MAAM,aAAa,CAAA;AAC7B,OAAO,EAAE,GAAG,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAE/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAE9D,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEpE,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAGxC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wEAAwE,CAAA;AAE7G,OAAO,+CAA+C,CAAA;AACtD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AAG9D,IAAM,+BAA+B,GAArC,MA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CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;KA2BF;CACF,CAAA;AAED;IAAC,KAAK,EAAE;;gEAAkB;AAC1B;IAAC,KAAK,EAAE;;2EAA6B;AACrC;IAAC,KAAK,EAAE;;6EAAkC;AAC1C;IAAC,KAAK,EAAE;;iEAAkB;AAC1B;IAAC,KAAK,EAAE;;+DAAqB;AAC7B;IAAC,KAAK,EAAE;;gEAAiB;AACzB;IAAC,KAAK,EAAE;;mEAAyB;AAEjC;IAAC,KAAK,EAAE;8BAAuB,oBAAoB;6EAA6B;AAGhF;IAAC,KAAK,CAAC,eAAe,CAAC;;oEAAkB;AACzC;IAAC,KAAK,CAAC,cAAc,CAAC;;mEAAiB;AACvC;IAAC,KAAK,CAAC,QAAQ,CAAC;8BAAU,iBAAiB;+DAAA;AA/ChC,+BAA+B;IAD3C,aAAa,CAAC,oCAAoC,CAAC;GACvC,+BAA+B,CAoP3C;SApPY,+BAA+B","sourcesContent":["import '@material/web/icon/icon.js'\nimport '@operato/image-marker/ox-image-marker.js'\nimport '@operato/image-marker/ox-image-marker-view.js'\n\nimport gql from 'graphql-tag'\nimport { css, html, PropertyValues } from 'lit'\nimport { customElement, query, state } from 'lit/decorators.js'\nimport { consume } from '@lit/context'\nimport { ScopedElementsMixin } from '@open-wc/scoped-elements'\n\nimport { PageView } from '@operato/shell'\nimport { CommonGristStyles, ScrollbarStyles } from '@operato/styles'\nimport { PageLifecycle } from '@operato/shell/dist/src/app/pages/page-view'\nimport { client } from '@operato/graphql'\nimport { notify } from '@operato/layout'\nimport { ImageProvider, Shape } from '@operato/image-marker'\n\nimport { DrawingImageProvider } from '@dssp/drawing/dist-client/drawing-management/drawing-image-provider.js'\n\nimport './component/building-inspection-detail-header'\nimport { BuildingInspectionStatus } from './building-inspection-list'\n\n@customElement('building-inspection-detail-drawing')\nexport class BuildingInspectionDetailDrawing extends ScopedElementsMixin(PageView) {\n static styles = [\n ScrollbarStyles,\n CommonGristStyles,\n css`\n :host {\n display: grid;\n grid-template-rows: 75px auto;\n color: #4e5055;\n\n width: 100%;\n background-color: #f7f7f7;\n overflow-y: auto;\n\n --grid-record-emphasized-background-color: red;\n --grid-record-emphasized-color: yellow;\n }\n\n div[body] {\n display: flex;\n justify-content: center;\n\n ox-image-marker-view {\n width: 100%;\n }\n }\n\n dialog ox-image-marker-view {\n width: 80vw;\n height: 80vh;\n }\n `\n ]\n\n @state() project: any = {}\n @state() buildingInspection: any = {}\n @state() buildingInspectionId: string = ''\n @state() imageUrl?: string\n @state() shapes: Shape[] = []\n @state() linkUrl?: string\n @state() linkShapes: Shape[] = []\n\n @state() drawingImageProvider: DrawingImageProvider = new DrawingImageProvider()\n // @consume({ context: OxUserPreferencesContext, subscribe: true })\n\n @query('#image-marker') imageMarker!: any\n @query('#link-viewer') linkViewer!: any\n @query('dialog') dialog!: HTMLDialogElement\n\n get context() {\n return {\n title: '검측 관리 상세 - 검측 도면'\n }\n }\n\n connectedCallback(): void {\n super.connectedCallback()\n\n requestAnimationFrame(() => {\n this.imageMarker.setImageProvider(this.drawingImageProvider)\n this.linkViewer.setImageProvider(this.drawingImageProvider)\n\n this.dialog.addEventListener('click', event => {\n const rect = this.dialog.getBoundingClientRect()\n const isInDialog =\n rect.top <= event.clientY && event.clientY <= rect.bottom && rect.left <= event.clientX && event.clientX <= rect.right\n\n // 다이아로그 내부를 클릭한 것이 아니면 다이아로그 닫기\n if (!isInDialog) {\n this.dialog.close()\n }\n })\n })\n }\n\n disconnectedCallback(): void {\n this.imageMarker?.setImageProvider(null)\n this.linkViewer?.setImageProvider(null)\n\n super.disconnectedCallback()\n }\n\n render() {\n return html`\n <building-inspection-detail-header\n .buildingInspectionId=${this.buildingInspection?.id}\n .buildingLevelId=${this.buildingInspection?.buildingLevel?.id}\n .projectName=${this.project.name}\n .buildingName=${this.buildingInspection?.buildingLevel?.building?.name}\n .buildingLevelFloor=${this.buildingInspection?.buildingLevel?.floor}\n ></building-inspection-detail-header>\n\n <div\n body\n @link-clicked=${async (e: CustomEvent) => {\n this.linkViewer.reset()\n\n const { link } = e.detail\n const { id, type, symbol, box, dwgId } = JSON.parse(link)\n const [x, y, width, height] = box?.split(',').map(Number) || []\n\n this.linkUrl = dwgId\n this.linkShapes = [\n {\n id: id!,\n type: 'link',\n x,\n y,\n width,\n height,\n link: '{}'\n }\n ]\n\n if (this.dialog) {\n this.dialog.showModal()\n }\n }}\n >\n ${this.buildingInspection?.status == BuildingInspectionStatus.PASS\n ? html`<ox-image-marker-view\n id=\"image-marker\"\n .imageUrl=${this.imageUrl}\n .shapes=${this.shapes}\n ></ox-image-marker-view>`\n : html` <ox-image-marker\n id=\"image-marker\"\n .imageUrl=${this.imageUrl}\n .shapes=${this.shapes}\n @shapes-changed=${this.onClickMarkerSave}\n .currentMode=${'view'}\n ></ox-image-marker>`}\n </div>\n\n <dialog>\n <ox-image-marker-view id=\"link-viewer\" .imageUrl=${this.linkUrl} .shapes=${this.linkShapes}></ox-image-marker-view>\n </dialog>\n `\n }\n\n protected async updated(changes: PropertyValues): Promise<void> {\n if (changes.has('buildingInspection')) {\n const dwgId = 'GA-3006' // this.buildingInspection?.buildingLevel?.mainDrawingImage || '/assets/images/img-drawing-default.png'\n\n const shapes = JSON.parse(this.buildingInspection?.drawingMarker || null) || []\n const markers = await this.drawingImageProvider.getMarkers(dwgId)\n\n this.imageUrl = dwgId\n this.shapes = [...shapes, ...markers]\n }\n }\n\n async pageUpdated(changes: any, lifecycle: PageLifecycle) {\n if (this.active) {\n this.buildingInspectionId = lifecycle.resourceId || ''\n await this.initBuildingInspection(this.buildingInspectionId)\n\n this.imageMarker.reset()\n }\n }\n\n async initBuildingInspection(buildingInspectionId: string = '') {\n const response = await client.query({\n query: gql`\n query BuildingInspection($buildingInspectionId: String!) {\n buildingInspection(id: $buildingInspectionId) {\n id\n status\n requestDate\n drawingMarker\n buildingLevel {\n id\n floor\n mainDrawing {\n id\n name\n fullpath\n }\n mainDrawingImage\n building {\n id\n name\n buildingComplex {\n id\n }\n }\n }\n }\n }\n `,\n variables: {\n buildingInspectionId\n }\n })\n\n if (response.errors) return\n\n this.buildingInspection = response.data.buildingInspection\n\n await this._getProjectByBuildingComplexId(this.buildingInspection?.buildingLevel?.building?.buildingComplex?.id)\n }\n\n private async _getProjectByBuildingComplexId(buildingComplexId) {\n const response = await client.query({\n query: gql`\n query ProjectByBuildingComplexId($buildingComplexId: String!) {\n project: projectByBuildingComplexId(buildingComplexId: $buildingComplexId) {\n id\n name\n }\n }\n `,\n variables: {\n buildingComplexId\n }\n })\n\n if (response.errors) return\n\n this.project = response.data.project\n }\n\n private async onClickMarkerSave(e) {\n const response = await client.query({\n query: gql`\n mutation UpdateBuildingInspection($patch: UpdateBuildingInspectionDrawingMarker!) {\n updateBuildingInspection(patch: $patch) {\n id\n drawingMarker\n }\n }\n `,\n variables: {\n patch: {\n id: this.buildingInspectionId,\n drawingMarker: JSON.stringify(e.detail)\n }\n }\n })\n\n if (response.errors) return\n\n notify({ message: '저장되었습니다.' })\n }\n}\n"]}
|
package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js
CHANGED
|
@@ -3,7 +3,7 @@ import '@material/web/icon/icon.js';
|
|
|
3
3
|
import { css, html, LitElement } from 'lit';
|
|
4
4
|
import { customElement, property } from 'lit/decorators.js';
|
|
5
5
|
import { ButtonContainerStyles, ScrollbarStyles } from '@operato/styles';
|
|
6
|
-
let
|
|
6
|
+
let BuildingInspectionDetailHeader = class BuildingInspectionDetailHeader extends LitElement {
|
|
7
7
|
constructor() {
|
|
8
8
|
super(...arguments);
|
|
9
9
|
this.buildingInspectionId = '';
|
|
@@ -55,7 +55,7 @@ let buildingInspectionDetailHeader = class buildingInspectionDetailHeader extend
|
|
|
55
55
|
`;
|
|
56
56
|
}
|
|
57
57
|
};
|
|
58
|
-
|
|
58
|
+
BuildingInspectionDetailHeader.styles = [
|
|
59
59
|
ButtonContainerStyles,
|
|
60
60
|
ScrollbarStyles,
|
|
61
61
|
css `
|
|
@@ -113,24 +113,24 @@ buildingInspectionDetailHeader.styles = [
|
|
|
113
113
|
__decorate([
|
|
114
114
|
property({ type: String }),
|
|
115
115
|
__metadata("design:type", String)
|
|
116
|
-
],
|
|
116
|
+
], BuildingInspectionDetailHeader.prototype, "buildingInspectionId", void 0);
|
|
117
117
|
__decorate([
|
|
118
118
|
property({ type: String }),
|
|
119
119
|
__metadata("design:type", String)
|
|
120
|
-
],
|
|
120
|
+
], BuildingInspectionDetailHeader.prototype, "buildingLevelId", void 0);
|
|
121
121
|
__decorate([
|
|
122
122
|
property({ type: String }),
|
|
123
123
|
__metadata("design:type", String)
|
|
124
|
-
],
|
|
124
|
+
], BuildingInspectionDetailHeader.prototype, "projectName", void 0);
|
|
125
125
|
__decorate([
|
|
126
126
|
property({ type: String }),
|
|
127
127
|
__metadata("design:type", String)
|
|
128
|
-
],
|
|
128
|
+
], BuildingInspectionDetailHeader.prototype, "buildingName", void 0);
|
|
129
129
|
__decorate([
|
|
130
130
|
property({ type: String }),
|
|
131
131
|
__metadata("design:type", String)
|
|
132
|
-
],
|
|
133
|
-
|
|
132
|
+
], BuildingInspectionDetailHeader.prototype, "buildingLevelFloor", void 0);
|
|
133
|
+
BuildingInspectionDetailHeader = __decorate([
|
|
134
134
|
customElement('building-inspection-detail-header')
|
|
135
|
-
],
|
|
135
|
+
], BuildingInspectionDetailHeader);
|
|
136
136
|
//# sourceMappingURL=building-inspection-detail-header.js.map
|
package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"building-inspection-detail-header.js","sourceRoot":"","sources":["../../../../client/pages/building-inspection/component/building-inspection-detail-header.ts"],"names":[],"mappings":";AAAA,OAAO,4BAA4B,CAAA;AACnC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAS,MAAM,mBAAmB,CAAA;AAClE,OAAO,EAAE,qB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CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;uEAA6B;AACxD;IAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;mEAAyB;AACpD;IAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oEAA0B;AACrD;IAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;0EAAgC;AA7DvD,8BAA8B;IADnC,aAAa,CAAC,mCAAmC,CAAC;GAC7C,8BAA8B,CA0GnC","sourcesContent":["import '@material/web/icon/icon.js'\nimport { css, html, LitElement } from 'lit'\nimport { customElement, property, state } from 'lit/decorators.js'\nimport { ButtonContainerStyles, ScrollbarStyles } from '@operato/styles'\n\n@customElement('building-inspection-detail-header')\nclass
|
|
1
|
+
{"version":3,"file":"building-inspection-detail-header.js","sourceRoot":"","sources":["../../../../client/pages/building-inspection/component/building-inspection-detail-header.ts"],"names":[],"mappings":";AAAA,OAAO,4BAA4B,CAAA;AACnC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAS,MAAM,mBAAmB,CAAA;AAClE,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAGxE,IAAM,8BAA8B,GAApC,MAAM,8BAA+B,SAAQ,UAAU;IAAvD;;QAyD8B,yBAAoB,GAAW,EAAE,CAAA;QACjC,oBAAe,GAAW,EAAE,CAAA;QAC5B,gBAAW,GAAW,EAAE,CAAA;QACxB,iBAAY,GAAW,EAAE,CAAA;QACzB,uBAAkB,GAAW,EAAE,CAAA;IA6C7D,CAAC;IA3CC,MAAM;QACJ,MAAM,IAAI,GAAG,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAA;QAErC,OAAO,IAAI,CAAA;;cAED,IAAI,CAAC,WAAW,IAAI,EAAE,IAAI,IAAI,CAAC,YAAY,IAAI,EAAE,IAAI,IAAI,CAAC,kBAAkB,IAAI,EAAE;;;wBAGxE,IAAI,CAAC,QAAQ,CAAC,2BAA2B,CAAC;mBAC/C,4BAA4B,IAAI,CAAC,eAAe,EAAE;;;;;wBAK7C,IAAI,CAAC,QAAQ,CAAC,qCAAqC,CAAC;mBACzD,sCAAsC,IAAI,CAAC,oBAAoB,EAAE;;;;;wBAK5D,IAAI,CAAC,QAAQ,CAAC,uCAAuC,CAAC;mBAC3D,wCAAwC,IAAI,CAAC,oBAAoB,EAAE;;;;;wBAK9D,IAAI,CAAC,QAAQ,CAAC,mCAAmC,CAAC;mBACvD,oCAAoC,IAAI,CAAC,oBAAoB,EAAE;;;;;;wBAM1D,IAAI,CAAC,QAAQ,CAAC,qCAAqC,CAAC;mBACzD,sCAAsC,IAAI,CAAC,oBAAoB,EAAE;;;;;;;KAO/E,CAAA;IACH,CAAC;;AAxGM,qCAAM,GAAG;IACd,qBAAqB;IACrB,eAAe;IACf,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAkDF;CACF,CAAA;AAED;IAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4EAAkC;AAC7D;IAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;uEAA6B;AACxD;IAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;mEAAyB;AACpD;IAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oEAA0B;AACrD;IAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;0EAAgC;AA7DvD,8BAA8B;IADnC,aAAa,CAAC,mCAAmC,CAAC;GAC7C,8BAA8B,CA0GnC","sourcesContent":["import '@material/web/icon/icon.js'\nimport { css, html, LitElement } from 'lit'\nimport { customElement, property, state } from 'lit/decorators.js'\nimport { ButtonContainerStyles, ScrollbarStyles } from '@operato/styles'\n\n@customElement('building-inspection-detail-header')\nclass BuildingInspectionDetailHeader extends LitElement {\n static styles = [\n ButtonContainerStyles,\n ScrollbarStyles,\n css`\n md-filled-button {\n --md-filled-button-container-color: #0595e5;\n --md-filled-button-container-height: 30px;\n --md-filled-button-trailing-space: 15px;\n --md-filled-button-leading-space: 15px;\n }\n md-outlined-button {\n --md-outlined-button-container-height: 30px;\n --md-outlined-button-trailing-space: 15px;\n --md-outlined-button-leading-space: 15px;\n }\n\n *[bold] {\n font-weight: bold;\n }\n\n div[header] {\n display: flex;\n margin: 0px 20px;\n }\n\n h2 {\n flex: 0.5;\n color: #3f71a0;\n }\n\n div[button-container] {\n display: flex;\n align-items: center;\n justify-content: end;\n flex: 0.5;\n }\n\n md-elevated-button {\n margin: 0px 3px;\n\n --md-elevated-button-container-height: 35px;\n --md-elevated-button-label-text-size: 16px;\n --md-elevated-button-container-color: #0595e5;\n\n --md-elevated-button-label-text-color: #fff;\n --md-elevated-button-hover-label-text-color: #fff;\n --md-elevated-button-pressed-label-text-color: #fff;\n --md-elevated-button-focus-label-text-color: #fff;\n --md-elevated-button-icon-color: #fff;\n --md-elevated-button-hover-icon-color: #fff;\n --md-elevated-button-pressed-icon-color: #fff;\n --md-elevated-button-focus-icon-color: #fff;\n }\n `\n ]\n\n @property({ type: String }) buildingInspectionId: string = ''\n @property({ type: String }) buildingLevelId: string = ''\n @property({ type: String }) projectName: string = ''\n @property({ type: String }) buildingName: string = ''\n @property({ type: String }) buildingLevelFloor: string = ''\n\n render() {\n const path = window.location.pathname\n\n return html`\n <div header>\n <h2>${this.projectName || ''} ${this.buildingName || ''} ${this.buildingLevelFloor || ''}층</h2>\n <div button-container>\n <md-elevated-button\n ?disabled=${path.includes('building-inspection-list/')}\n href=${`building-inspection-list/${this.buildingLevelId}`}\n >\n <md-icon slot=\"icon\">assignment</md-icon>검측 리스트\n </md-elevated-button>\n <md-elevated-button\n ?disabled=${path.includes('building-inspection-detail-drawing/')}\n href=${`building-inspection-detail-drawing/${this.buildingInspectionId}`}\n >\n <md-icon slot=\"icon\">assignment</md-icon>검측도면\n </md-elevated-button>\n <md-elevated-button\n ?disabled=${path.includes('building-inspection-detail-checklist/')}\n href=${`building-inspection-detail-checklist/${this.buildingInspectionId}`}\n >\n <md-icon slot=\"icon\">description</md-icon>검측 체크리스트\n </md-elevated-button>\n <md-elevated-button\n ?disabled=${path.includes('building-inspection-detail-photo/')}\n href=${`building-inspection-detail-photo/${this.buildingInspectionId}`}\n disabled\n >\n <md-icon slot=\"icon\">description</md-icon>사진촬영\n </md-elevated-button>\n <md-elevated-button\n ?disabled=${path.includes('building-inspection-detail-history/')}\n href=${`building-inspection-detail-history/${this.buildingInspectionId}`}\n disabled\n >\n <md-icon slot=\"icon\">description</md-icon>감리이력\n </md-elevated-button>\n </div>\n </div>\n `\n }\n}\n"]}
|
package/dist-client/route.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function route(page: string): "
|
|
1
|
+
export default function route(page: string): "checklist-type-management" | "building-inspection-list" | "checklist-template-list" | "building-inspection-detail-drawing" | "building-inspection-detail-checklist" | undefined;
|