@dssp/supervision 1.0.0-alpha.21 → 1.0.0-alpha.23
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/dist-client/pages/building-inspection/building-inspection-detail-drawing.js +1 -1
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js.map +1 -1
- package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.d.ts +3 -2
- package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js +57 -27
- package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js.map +1 -1
- package/dist-client/pages/checklist/inspection-info-popup.d.ts +47 -0
- package/dist-client/pages/checklist/inspection-info-popup.js +563 -0
- package/dist-client/pages/checklist/inspection-info-popup.js.map +1 -0
- package/dist-client/pages/checklist/inspection-tab-popup.d.ts +17 -0
- package/dist-client/pages/checklist/inspection-tab-popup.js +189 -0
- package/dist-client/pages/checklist/inspection-tab-popup.js.map +1 -0
- package/dist-client/route.d.ts +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/service/building-inspection/building-inspection-mutation.d.ts +2 -2
- package/dist-server/service/building-inspection/building-inspection-mutation.js +1 -1
- package/dist-server/service/building-inspection/building-inspection-mutation.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection-query.d.ts +1 -1
- package/dist-server/service/building-inspection/building-inspection-query.js +2 -2
- package/dist-server/service/building-inspection/building-inspection-query.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection-type.d.ts +2 -1
- package/dist-server/service/building-inspection/building-inspection-type.js +11 -7
- package/dist-server/service/building-inspection/building-inspection-type.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection.d.ts +1 -0
- package/dist-server/service/building-inspection/building-inspection.js +5 -0
- package/dist-server/service/building-inspection/building-inspection.js.map +1 -1
- package/dist-server/service/building-inspection/index.d.ts +1 -1
- package/dist-server/service/index.d.ts +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import '@material/web/icon/icon.js';
|
|
3
|
+
import '@material/web/button/elevated-button.js';
|
|
4
|
+
import { css, html, LitElement } from 'lit';
|
|
5
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
|
6
|
+
import { ButtonContainerStyles, ScrollbarStyles } from '@operato/styles';
|
|
7
|
+
import { BuildingInspectionStatus } from '../building-inspection/building-inspection-list';
|
|
8
|
+
import './inspection-info-popup';
|
|
9
|
+
let InspectionTabPopup = class InspectionTabPopup extends LitElement {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.selectedInspection = {};
|
|
13
|
+
this.project = {};
|
|
14
|
+
this.initialTab = 0;
|
|
15
|
+
this.activeTab = 0;
|
|
16
|
+
}
|
|
17
|
+
firstUpdated() {
|
|
18
|
+
this.activeTab = this.initialTab;
|
|
19
|
+
}
|
|
20
|
+
render() {
|
|
21
|
+
return html `
|
|
22
|
+
<div class="tab-container">
|
|
23
|
+
<div class="tab-header">
|
|
24
|
+
<button class="tab-button ${this.activeTab === 0 ? 'active' : ''}" @click=${() => this._setActiveTab(0)}>
|
|
25
|
+
<md-icon>assignment</md-icon>
|
|
26
|
+
체크리스트
|
|
27
|
+
</button>
|
|
28
|
+
<button class="tab-button ${this.activeTab === 1 ? 'active' : ''}" @click=${() => this._setActiveTab(1)}>
|
|
29
|
+
<md-icon>note_add</md-icon>
|
|
30
|
+
메모 & 첨부자료
|
|
31
|
+
</button>
|
|
32
|
+
</div>
|
|
33
|
+
|
|
34
|
+
<div class="tab-content">${this.activeTab === 0 ? this._renderChecklistTab() : this._renderInfoTab()}</div>
|
|
35
|
+
</div>
|
|
36
|
+
`;
|
|
37
|
+
}
|
|
38
|
+
// 체크리스트 랜더링
|
|
39
|
+
_renderChecklistTab() {
|
|
40
|
+
var _a;
|
|
41
|
+
return html `
|
|
42
|
+
<div class="checklist-tab">
|
|
43
|
+
<div class="checklist-content">
|
|
44
|
+
<checklist-view
|
|
45
|
+
.mode=${"EDITOR" /* ChecklistMode.EDITOR */}
|
|
46
|
+
.status=${this.selectedInspection.status}
|
|
47
|
+
.checklist=${this.selectedInspection.checklist || {}}
|
|
48
|
+
.buildingComplex=${((_a = this.project) === null || _a === void 0 ? void 0 : _a.buildingComplex) || {}}
|
|
49
|
+
></checklist-view>
|
|
50
|
+
</div>
|
|
51
|
+
|
|
52
|
+
<div class="checklist-actions">
|
|
53
|
+
<md-elevated-button
|
|
54
|
+
?disabled=${this.selectedInspection.status == BuildingInspectionStatus.PASS}
|
|
55
|
+
@click=${this._onModifyChecklist}
|
|
56
|
+
>
|
|
57
|
+
<md-icon slot="icon">assignment</md-icon>등록
|
|
58
|
+
</md-elevated-button>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
`;
|
|
62
|
+
}
|
|
63
|
+
// 메모 & 첨부자료 랜더링
|
|
64
|
+
_renderInfoTab() {
|
|
65
|
+
return html `
|
|
66
|
+
<inspection-info-popup
|
|
67
|
+
.buildingInspectionId=${this.selectedInspection.id}
|
|
68
|
+
.status=${this.selectedInspection.status}
|
|
69
|
+
.mode=${"EDITOR" /* ChecklistMode.EDITOR */}
|
|
70
|
+
style="flex: 1; height: 100%;"
|
|
71
|
+
></inspection-info-popup>
|
|
72
|
+
`;
|
|
73
|
+
}
|
|
74
|
+
// 탭 전환
|
|
75
|
+
_setActiveTab(index) {
|
|
76
|
+
this.activeTab = index;
|
|
77
|
+
}
|
|
78
|
+
// 체크리스트 수정 이벤트
|
|
79
|
+
_onModifyChecklist() {
|
|
80
|
+
this.dispatchEvent(new CustomEvent('modify-checklist', {
|
|
81
|
+
detail: {
|
|
82
|
+
checklist: this.selectedInspection.checklist
|
|
83
|
+
}
|
|
84
|
+
}));
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
InspectionTabPopup.styles = [
|
|
88
|
+
ButtonContainerStyles,
|
|
89
|
+
ScrollbarStyles,
|
|
90
|
+
css `
|
|
91
|
+
:host {
|
|
92
|
+
display: flex;
|
|
93
|
+
flex-direction: column;
|
|
94
|
+
height: 100%;
|
|
95
|
+
min-height: 600px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.tab-container {
|
|
99
|
+
display: flex;
|
|
100
|
+
flex-direction: column;
|
|
101
|
+
height: 100%;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.tab-header {
|
|
105
|
+
display: flex;
|
|
106
|
+
border-bottom: 1px solid #ddd;
|
|
107
|
+
background: #f5f5f5;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.tab-button {
|
|
111
|
+
display: flex;
|
|
112
|
+
align-items: center;
|
|
113
|
+
gap: 8px;
|
|
114
|
+
padding: 12px 24px;
|
|
115
|
+
border: none;
|
|
116
|
+
background: transparent;
|
|
117
|
+
cursor: pointer;
|
|
118
|
+
font-size: 14px;
|
|
119
|
+
color: #666;
|
|
120
|
+
transition: all 0.2s;
|
|
121
|
+
border-bottom: 3px solid transparent;
|
|
122
|
+
min-width: 150px;
|
|
123
|
+
justify-content: center;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.tab-button:hover {
|
|
127
|
+
background: #e8f4f8;
|
|
128
|
+
color: #0595e5;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.tab-button.active {
|
|
132
|
+
background: white;
|
|
133
|
+
color: #0595e5;
|
|
134
|
+
border-bottom-color: #0595e5;
|
|
135
|
+
font-weight: 600;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.tab-button md-icon {
|
|
139
|
+
font-size: 18px;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.tab-content {
|
|
143
|
+
flex: 1;
|
|
144
|
+
overflow: hidden;
|
|
145
|
+
display: flex;
|
|
146
|
+
flex-direction: column;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.checklist-tab {
|
|
150
|
+
display: flex;
|
|
151
|
+
flex-direction: column;
|
|
152
|
+
height: 100%;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.checklist-content {
|
|
156
|
+
flex: 1;
|
|
157
|
+
overflow-y: auto;
|
|
158
|
+
padding: 0;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.checklist-actions {
|
|
162
|
+
padding: 20px;
|
|
163
|
+
text-align: right;
|
|
164
|
+
border-top: 1px solid #eee;
|
|
165
|
+
background: white;
|
|
166
|
+
}
|
|
167
|
+
`
|
|
168
|
+
];
|
|
169
|
+
__decorate([
|
|
170
|
+
property({ type: Object }),
|
|
171
|
+
__metadata("design:type", Object)
|
|
172
|
+
], InspectionTabPopup.prototype, "selectedInspection", void 0);
|
|
173
|
+
__decorate([
|
|
174
|
+
property({ type: Object }),
|
|
175
|
+
__metadata("design:type", Object)
|
|
176
|
+
], InspectionTabPopup.prototype, "project", void 0);
|
|
177
|
+
__decorate([
|
|
178
|
+
property({ type: Number }),
|
|
179
|
+
__metadata("design:type", Number)
|
|
180
|
+
], InspectionTabPopup.prototype, "initialTab", void 0);
|
|
181
|
+
__decorate([
|
|
182
|
+
state(),
|
|
183
|
+
__metadata("design:type", Number)
|
|
184
|
+
], InspectionTabPopup.prototype, "activeTab", void 0);
|
|
185
|
+
InspectionTabPopup = __decorate([
|
|
186
|
+
customElement('inspection-tab-popup')
|
|
187
|
+
], InspectionTabPopup);
|
|
188
|
+
export { InspectionTabPopup };
|
|
189
|
+
//# sourceMappingURL=inspection-tab-popup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inspection-tab-popup.js","sourceRoot":"","sources":["../../../client/pages/checklist/inspection-tab-popup.ts"],"names":[],"mappings":";AAAA,OAAO,4BAA4B,CAAA;AACnC,OAAO,yCAAyC,CAAA;AAChD,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAA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,wBAAwB,CAAC,IAAI;qBAClE,IAAI,CAAC,kBAAkB;;;;;;KAMvC,CAAA;IACH,CAAC;IAED,gBAAgB;IACR,cAAc;QACpB,OAAO,IAAI,CAAA;;gCAEiB,IAAI,CAAC,kBAAkB,CAAC,EAAE;kBACxC,IAAI,CAAC,kBAAkB,CAAC,MAAM;gBAChC,mCAAoB;;;KAG/B,CAAA;IACH,CAAC;IAED,OAAO;IACC,aAAa,CAAC,KAAa;QACjC,IAAI,CAAC,SAAS,GAAG,KAAK,CAAA;IACxB,CAAC;IAED,eAAe;IACP,kBAAkB;QACxB,IAAI,CAAC,aAAa,CAChB,IAAI,WAAW,CAAC,kBAAkB,EAAE;YAClC,MAAM,EAAE;gBACN,SAAS,EAAE,IAAI,CAAC,kBAAkB,CAAC,SAAS;aAC7C;SACF,CAAC,CACH,CAAA;IACH,CAAC;;AAnKM,yBAAM,GAAG;IACd,qBAAqB;IACrB,eAAe;IACf,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA6EF;CACF,AAjFY,CAiFZ;AAE2B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;8DAA6B;AAC5B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;mDAAkB;AACjB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sDAAuB;AAEzC;IAAR,KAAK,EAAE;;qDAAsB;AAxFnB,kBAAkB;IAD9B,aAAa,CAAC,sBAAsB,CAAC;GACzB,kBAAkB,CAqK9B","sourcesContent":["import '@material/web/icon/icon.js'\nimport '@material/web/button/elevated-button.js'\nimport { css, html, LitElement } from 'lit'\nimport { customElement, property, state } from 'lit/decorators.js'\nimport { ButtonContainerStyles, ScrollbarStyles } from '@operato/styles'\nimport { BuildingInspectionStatus } from '../building-inspection/building-inspection-list'\nimport { ChecklistMode } from './checklist-view'\nimport './inspection-info-popup'\n\n@customElement('inspection-tab-popup')\nexport class InspectionTabPopup extends LitElement {\n static styles = [\n ButtonContainerStyles,\n ScrollbarStyles,\n css`\n :host {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 600px;\n }\n\n .tab-container {\n display: flex;\n flex-direction: column;\n height: 100%;\n }\n\n .tab-header {\n display: flex;\n border-bottom: 1px solid #ddd;\n background: #f5f5f5;\n }\n\n .tab-button {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 12px 24px;\n border: none;\n background: transparent;\n cursor: pointer;\n font-size: 14px;\n color: #666;\n transition: all 0.2s;\n border-bottom: 3px solid transparent;\n min-width: 150px;\n justify-content: center;\n }\n\n .tab-button:hover {\n background: #e8f4f8;\n color: #0595e5;\n }\n\n .tab-button.active {\n background: white;\n color: #0595e5;\n border-bottom-color: #0595e5;\n font-weight: 600;\n }\n\n .tab-button md-icon {\n font-size: 18px;\n }\n\n .tab-content {\n flex: 1;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n }\n\n .checklist-tab {\n display: flex;\n flex-direction: column;\n height: 100%;\n }\n\n .checklist-content {\n flex: 1;\n overflow-y: auto;\n padding: 0;\n }\n\n .checklist-actions {\n padding: 20px;\n text-align: right;\n border-top: 1px solid #eee;\n background: white;\n }\n `\n ]\n\n @property({ type: Object }) selectedInspection: any = {}\n @property({ type: Object }) project: any = {}\n @property({ type: Number }) initialTab: number = 0\n\n @state() activeTab: number = 0\n\n firstUpdated() {\n this.activeTab = this.initialTab\n }\n\n render() {\n return html`\n <div class=\"tab-container\">\n <div class=\"tab-header\">\n <button class=\"tab-button ${this.activeTab === 0 ? 'active' : ''}\" @click=${() => this._setActiveTab(0)}>\n <md-icon>assignment</md-icon>\n 체크리스트\n </button>\n <button class=\"tab-button ${this.activeTab === 1 ? 'active' : ''}\" @click=${() => this._setActiveTab(1)}>\n <md-icon>note_add</md-icon>\n 메모 & 첨부자료\n </button>\n </div>\n\n <div class=\"tab-content\">${this.activeTab === 0 ? this._renderChecklistTab() : this._renderInfoTab()}</div>\n </div>\n `\n }\n\n // 체크리스트 랜더링\n private _renderChecklistTab() {\n return html`\n <div class=\"checklist-tab\">\n <div class=\"checklist-content\">\n <checklist-view\n .mode=${ChecklistMode.EDITOR}\n .status=${this.selectedInspection.status}\n .checklist=${this.selectedInspection.checklist || {}}\n .buildingComplex=${this.project?.buildingComplex || {}}\n ></checklist-view>\n </div>\n\n <div class=\"checklist-actions\">\n <md-elevated-button\n ?disabled=${this.selectedInspection.status == BuildingInspectionStatus.PASS}\n @click=${this._onModifyChecklist}\n >\n <md-icon slot=\"icon\">assignment</md-icon>등록\n </md-elevated-button>\n </div>\n </div>\n `\n }\n\n // 메모 & 첨부자료 랜더링\n private _renderInfoTab() {\n return html`\n <inspection-info-popup\n .buildingInspectionId=${this.selectedInspection.id}\n .status=${this.selectedInspection.status}\n .mode=${ChecklistMode.EDITOR}\n style=\"flex: 1; height: 100%;\"\n ></inspection-info-popup>\n `\n }\n\n // 탭 전환\n private _setActiveTab(index: number) {\n this.activeTab = index\n }\n\n // 체크리스트 수정 이벤트\n private _onModifyChecklist() {\n this.dispatchEvent(\n new CustomEvent('modify-checklist', {\n detail: {\n checklist: this.selectedInspection.checklist\n }\n })\n )\n }\n}\n"]}
|
package/dist-client/route.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function route(page: string): "checklist-
|
|
1
|
+
export default function route(page: string): "checklist-template-list" | "checklist-type-management" | "building-inspection-list" | "building-inspection-detail-drawing" | "building-inspection-detail-checklist" | "building-inspection-detail-camera" | "building-inspection-grid-detail" | undefined;
|