@things-factory/kpi 9.0.29 → 9.0.31
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/charts/kpi-mini-trend-chart.ts +125 -0
- package/client/charts/kpi-trend-chart.ts +163 -0
- package/client/google-map/common-google-map.ts +370 -0
- package/client/google-map/google-map-loader.ts +29 -0
- package/client/pages/kpi-dashboard/cards/kpi-level1-card.ts +248 -0
- package/client/pages/kpi-dashboard/cards/kpi-level2-comparison.ts +369 -0
- package/client/pages/kpi-dashboard/cards/kpi-level3-comparison.ts +443 -0
- package/client/pages/kpi-dashboard/components/kpi-chart-toggle.ts +72 -0
- package/client/pages/kpi-dashboard/components/kpi-left-panel.ts +399 -0
- package/client/pages/kpi-dashboard/components/kpi-map-panel.ts +302 -0
- package/client/pages/kpi-dashboard/components/kpi-region-popup.ts +355 -0
- package/client/pages/kpi-dashboard/kpi-dashboard-map.ts +243 -0
- package/client/pages/kpi-dashboard/kpi-dashboard.ts +416 -0
- package/client/route.ts +4 -0
- package/dist-client/charts/kpi-mini-trend-chart.d.ts +14 -0
- package/dist-client/charts/kpi-mini-trend-chart.js +148 -0
- package/dist-client/charts/kpi-mini-trend-chart.js.map +1 -0
- package/dist-client/charts/kpi-trend-chart.d.ts +25 -0
- package/dist-client/charts/kpi-trend-chart.js +186 -0
- package/dist-client/charts/kpi-trend-chart.js.map +1 -0
- package/dist-client/google-map/common-google-map.d.ts +34 -0
- package/dist-client/google-map/common-google-map.js +333 -0
- package/dist-client/google-map/common-google-map.js.map +1 -0
- package/dist-client/google-map/google-map-loader.d.ts +6 -0
- package/dist-client/google-map/google-map-loader.js +22 -0
- package/dist-client/google-map/google-map-loader.js.map +1 -0
- package/dist-client/pages/kpi-dashboard/cards/kpi-level1-card.d.ts +17 -0
- package/dist-client/pages/kpi-dashboard/cards/kpi-level1-card.js +279 -0
- package/dist-client/pages/kpi-dashboard/cards/kpi-level1-card.js.map +1 -0
- package/dist-client/pages/kpi-dashboard/cards/kpi-level2-comparison.d.ts +19 -0
- package/dist-client/pages/kpi-dashboard/cards/kpi-level2-comparison.js +385 -0
- package/dist-client/pages/kpi-dashboard/cards/kpi-level2-comparison.js.map +1 -0
- package/dist-client/pages/kpi-dashboard/cards/kpi-level3-comparison.d.ts +23 -0
- package/dist-client/pages/kpi-dashboard/cards/kpi-level3-comparison.js +465 -0
- package/dist-client/pages/kpi-dashboard/cards/kpi-level3-comparison.js.map +1 -0
- package/dist-client/pages/kpi-dashboard/components/kpi-chart-toggle.d.ts +8 -0
- package/dist-client/pages/kpi-dashboard/components/kpi-chart-toggle.js +78 -0
- package/dist-client/pages/kpi-dashboard/components/kpi-chart-toggle.js.map +1 -0
- package/dist-client/pages/kpi-dashboard/components/kpi-left-panel.d.ts +22 -0
- package/dist-client/pages/kpi-dashboard/components/kpi-left-panel.js +404 -0
- package/dist-client/pages/kpi-dashboard/components/kpi-left-panel.js.map +1 -0
- package/dist-client/pages/kpi-dashboard/components/kpi-map-panel.d.ts +28 -0
- package/dist-client/pages/kpi-dashboard/components/kpi-map-panel.js +298 -0
- package/dist-client/pages/kpi-dashboard/components/kpi-map-panel.js.map +1 -0
- package/dist-client/pages/kpi-dashboard/components/kpi-region-popup.d.ts +23 -0
- package/dist-client/pages/kpi-dashboard/components/kpi-region-popup.js +368 -0
- package/dist-client/pages/kpi-dashboard/components/kpi-region-popup.js.map +1 -0
- package/dist-client/pages/kpi-dashboard/kpi-dashboard-map.d.ts +29 -0
- package/dist-client/pages/kpi-dashboard/kpi-dashboard-map.js +271 -0
- package/dist-client/pages/kpi-dashboard/kpi-dashboard-map.js.map +1 -0
- package/dist-client/pages/kpi-dashboard/kpi-dashboard.d.ts +21 -0
- package/dist-client/pages/kpi-dashboard/kpi-dashboard.js +398 -0
- package/dist-client/pages/kpi-dashboard/kpi-dashboard.js.map +1 -1
- package/dist-client/route.d.ts +1 -1
- package/dist-client/route.js +3 -0
- package/dist-client/route.js.map +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/index.d.ts +1 -0
- package/dist-server/index.js +1 -0
- package/dist-server/index.js.map +1 -1
- package/dist-server/migrations/index.d.ts +1 -0
- package/dist-server/migrations/index.js +12 -0
- package/dist-server/migrations/index.js.map +1 -0
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/server/index.ts +1 -0
- package/server/migrations/index.ts +9 -0
- package/things-factory.config.js +2 -1
- package/translations/en.json +1 -0
- package/translations/ja.json +1 -0
- package/translations/ko.json +1 -0
- package/translations/ms.json +1 -0
- package/translations/zh.json +1 -0
|
@@ -0,0 +1,368 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { LitElement, html, css, nothing } from 'lit';
|
|
3
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
|
4
|
+
import '../../../charts/kpi-radar-chart.js';
|
|
5
|
+
import '../../../charts/kpi-boxplot-chart.js';
|
|
6
|
+
import '../../../charts/kpi-trend-chart.js';
|
|
7
|
+
let KpiRegionPopup = class KpiRegionPopup extends LitElement {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.selectedRegion = null;
|
|
11
|
+
this.selectedChartType = 'boxplot';
|
|
12
|
+
this.selectedPeriod = '월';
|
|
13
|
+
this.startDate = '전체';
|
|
14
|
+
this.endDate = '전체';
|
|
15
|
+
this.chartData = [];
|
|
16
|
+
this.chartCategories = [];
|
|
17
|
+
this.trendData = [];
|
|
18
|
+
}
|
|
19
|
+
static { this.styles = css `
|
|
20
|
+
:host {
|
|
21
|
+
display: block;
|
|
22
|
+
position: absolute;
|
|
23
|
+
top: 0;
|
|
24
|
+
left: 402px;
|
|
25
|
+
width: 400px;
|
|
26
|
+
height: 100%;
|
|
27
|
+
background: #fff;
|
|
28
|
+
border-right: 1px solid #e0e0e0;
|
|
29
|
+
z-index: 1000;
|
|
30
|
+
overflow: hidden;
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
|
|
34
|
+
}
|
|
35
|
+
.popup-content {
|
|
36
|
+
padding: 24px;
|
|
37
|
+
overflow-y: auto;
|
|
38
|
+
flex: 1;
|
|
39
|
+
}
|
|
40
|
+
.popup-header {
|
|
41
|
+
display: flex;
|
|
42
|
+
justify-content: space-between;
|
|
43
|
+
align-items: center;
|
|
44
|
+
padding: 20px 24px;
|
|
45
|
+
border-bottom: 1px solid #e0e0e0;
|
|
46
|
+
background: #fff;
|
|
47
|
+
height: 70px;
|
|
48
|
+
box-sizing: border-box;
|
|
49
|
+
}
|
|
50
|
+
.popup-title {
|
|
51
|
+
font-size: 1.2rem;
|
|
52
|
+
font-weight: bold;
|
|
53
|
+
color: #333;
|
|
54
|
+
}
|
|
55
|
+
.popup-close {
|
|
56
|
+
width: 32px;
|
|
57
|
+
height: 32px;
|
|
58
|
+
border: none;
|
|
59
|
+
background: #fff;
|
|
60
|
+
border-radius: 50%;
|
|
61
|
+
cursor: pointer;
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
justify-content: center;
|
|
65
|
+
font-size: 1.2rem;
|
|
66
|
+
color: #666;
|
|
67
|
+
transition: all 0.2s;
|
|
68
|
+
}
|
|
69
|
+
.popup-close:hover {
|
|
70
|
+
background: #e9ecef;
|
|
71
|
+
color: #333;
|
|
72
|
+
}
|
|
73
|
+
.sub-title {
|
|
74
|
+
font-size: 1rem;
|
|
75
|
+
font-weight: 600;
|
|
76
|
+
margin-bottom: 16px;
|
|
77
|
+
color: #495057;
|
|
78
|
+
}
|
|
79
|
+
.chart-section {
|
|
80
|
+
background: #f8f9fa;
|
|
81
|
+
border-radius: 8px;
|
|
82
|
+
padding: 16px;
|
|
83
|
+
margin-bottom: 20px;
|
|
84
|
+
}
|
|
85
|
+
.chart-toggle {
|
|
86
|
+
display: flex;
|
|
87
|
+
gap: 8px;
|
|
88
|
+
margin-bottom: 16px;
|
|
89
|
+
}
|
|
90
|
+
.toggle-button {
|
|
91
|
+
padding: 8px 16px;
|
|
92
|
+
border: 1px solid #ced4da;
|
|
93
|
+
background: #fff;
|
|
94
|
+
border-radius: 6px;
|
|
95
|
+
cursor: pointer;
|
|
96
|
+
font-size: 0.9rem;
|
|
97
|
+
transition: all 0.2s;
|
|
98
|
+
}
|
|
99
|
+
.toggle-button.active {
|
|
100
|
+
background: #667eea;
|
|
101
|
+
color: white;
|
|
102
|
+
border-color: #667eea;
|
|
103
|
+
}
|
|
104
|
+
.chart-container {
|
|
105
|
+
height: 300px;
|
|
106
|
+
display: flex;
|
|
107
|
+
align-items: center;
|
|
108
|
+
justify-content: center;
|
|
109
|
+
background: white;
|
|
110
|
+
border-radius: 6px;
|
|
111
|
+
border: 1px solid #e9ecef;
|
|
112
|
+
}
|
|
113
|
+
.period-selector {
|
|
114
|
+
display: flex;
|
|
115
|
+
gap: 8px;
|
|
116
|
+
margin-bottom: 16px;
|
|
117
|
+
}
|
|
118
|
+
.period-button {
|
|
119
|
+
padding: 6px 12px;
|
|
120
|
+
border: 1px solid #ced4da;
|
|
121
|
+
background: #fff;
|
|
122
|
+
border-radius: 4px;
|
|
123
|
+
cursor: pointer;
|
|
124
|
+
font-size: 0.85rem;
|
|
125
|
+
transition: all 0.2s;
|
|
126
|
+
}
|
|
127
|
+
.period-button.active {
|
|
128
|
+
background: #667eea;
|
|
129
|
+
color: white;
|
|
130
|
+
border-color: #667eea;
|
|
131
|
+
}
|
|
132
|
+
.date-range-selector {
|
|
133
|
+
display: flex;
|
|
134
|
+
align-items: center;
|
|
135
|
+
gap: 8px;
|
|
136
|
+
margin-bottom: 16px;
|
|
137
|
+
}
|
|
138
|
+
.date-select {
|
|
139
|
+
padding: 6px 12px;
|
|
140
|
+
border: 1px solid #ced4da;
|
|
141
|
+
border-radius: 4px;
|
|
142
|
+
background: white;
|
|
143
|
+
font-size: 0.9rem;
|
|
144
|
+
}
|
|
145
|
+
`; }
|
|
146
|
+
connectedCallback() {
|
|
147
|
+
super.connectedCallback();
|
|
148
|
+
this.generateChartData();
|
|
149
|
+
this.generateTrendData();
|
|
150
|
+
}
|
|
151
|
+
generateChartData() {
|
|
152
|
+
// 선택된 지역의 KPI 데이터 생성
|
|
153
|
+
const categories = ['일정 성과', '비용 성과', '품질 성과', '안전 성과', '환경 성과'];
|
|
154
|
+
this.chartCategories = categories;
|
|
155
|
+
if (this.selectedChartType === 'radar') {
|
|
156
|
+
// 레이더 차트용 데이터 생성
|
|
157
|
+
this.chartData = categories.map(category => ({
|
|
158
|
+
category,
|
|
159
|
+
value: Math.random() * 50 + 25, // 25-75 범위
|
|
160
|
+
group: this.selectedRegion || '전체'
|
|
161
|
+
}));
|
|
162
|
+
}
|
|
163
|
+
else {
|
|
164
|
+
// 박스플롯용 데이터 생성
|
|
165
|
+
this.chartData = categories.map(category => {
|
|
166
|
+
const baseValue = Math.random() * 50 + 25; // 25-75 범위
|
|
167
|
+
const variation = Math.random() * 20; // 변동폭
|
|
168
|
+
// 각 카테고리별로 20개의 데이터 포인트 생성
|
|
169
|
+
const dataPoints = [];
|
|
170
|
+
for (let i = 0; i < 20; i++) {
|
|
171
|
+
dataPoints.push({
|
|
172
|
+
value: baseValue + (Math.random() - 0.5) * variation,
|
|
173
|
+
group: category
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
// 통계값 계산
|
|
177
|
+
const values = dataPoints.map(d => d.value).sort((a, b) => a - b);
|
|
178
|
+
const min = Math.min(...values);
|
|
179
|
+
const max = Math.max(...values);
|
|
180
|
+
const q1 = values[Math.floor(values.length * 0.25)];
|
|
181
|
+
const q3 = values[Math.floor(values.length * 0.75)];
|
|
182
|
+
const median = values[Math.floor(values.length * 0.5)];
|
|
183
|
+
const mean = values.reduce((a, b) => a + b, 0) / values.length;
|
|
184
|
+
return {
|
|
185
|
+
group: category,
|
|
186
|
+
min: min,
|
|
187
|
+
max: max,
|
|
188
|
+
q1: q1,
|
|
189
|
+
q3: q3,
|
|
190
|
+
median: median,
|
|
191
|
+
mean: mean,
|
|
192
|
+
value: mean
|
|
193
|
+
};
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
generateTrendData() {
|
|
198
|
+
// 최근 30일간의 트렌드 데이터 생성
|
|
199
|
+
const today = new Date();
|
|
200
|
+
this.trendData = [];
|
|
201
|
+
for (let i = 29; i >= 0; i--) {
|
|
202
|
+
const date = new Date(today);
|
|
203
|
+
date.setDate(date.getDate() - i);
|
|
204
|
+
// 기본값에서 약간의 변동을 주어 트렌드 생성
|
|
205
|
+
const baseValue = 50;
|
|
206
|
+
const trend = Math.sin(i * 0.2) * 10; // 사인파로 변동
|
|
207
|
+
const noise = (Math.random() - 0.5) * 5; // 랜덤 노이즈
|
|
208
|
+
const value = Math.max(0, Math.min(100, baseValue + trend + noise));
|
|
209
|
+
this.trendData.push({
|
|
210
|
+
date: date.toISOString().split('T')[0], // YYYY-MM-DD 형식
|
|
211
|
+
value: Math.round(value),
|
|
212
|
+
color: value > 60 ? '#4caf50' : value > 40 ? '#ff9800' : '#f44336'
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
onClose() {
|
|
217
|
+
this.dispatchEvent(new CustomEvent('popup-close', {
|
|
218
|
+
bubbles: true,
|
|
219
|
+
composed: true
|
|
220
|
+
}));
|
|
221
|
+
}
|
|
222
|
+
onChartTypeChange(type) {
|
|
223
|
+
this.selectedChartType = type;
|
|
224
|
+
this.generateChartData();
|
|
225
|
+
}
|
|
226
|
+
onPeriodChange(period) {
|
|
227
|
+
this.dispatchEvent(new CustomEvent('period-change', {
|
|
228
|
+
detail: { period },
|
|
229
|
+
bubbles: true,
|
|
230
|
+
composed: true
|
|
231
|
+
}));
|
|
232
|
+
this.generateTrendData();
|
|
233
|
+
}
|
|
234
|
+
onDateRangeChange() {
|
|
235
|
+
this.dispatchEvent(new CustomEvent('date-range-change', {
|
|
236
|
+
detail: { startDate: this.startDate, endDate: this.endDate },
|
|
237
|
+
bubbles: true,
|
|
238
|
+
composed: true
|
|
239
|
+
}));
|
|
240
|
+
}
|
|
241
|
+
render() {
|
|
242
|
+
if (!this.selectedRegion) {
|
|
243
|
+
return nothing;
|
|
244
|
+
}
|
|
245
|
+
return html `
|
|
246
|
+
<div class="popup-header">
|
|
247
|
+
<div class="popup-title">${this.selectedRegion} KPI</div>
|
|
248
|
+
<button class="popup-close" @click=${this.onClose}>×</button>
|
|
249
|
+
</div>
|
|
250
|
+
<div class="popup-content">
|
|
251
|
+
<!-- 종합 성과 -->
|
|
252
|
+
<div class="chart-section">
|
|
253
|
+
<div class="sub-title">종합 성과</div>
|
|
254
|
+
<div class="chart-toggle">
|
|
255
|
+
<button
|
|
256
|
+
class="toggle-button ${this.selectedChartType === 'boxplot' ? 'active' : ''}"
|
|
257
|
+
@click=${() => this.onChartTypeChange('boxplot')}
|
|
258
|
+
>
|
|
259
|
+
박스플롯
|
|
260
|
+
</button>
|
|
261
|
+
<button
|
|
262
|
+
class="toggle-button ${this.selectedChartType === 'radar' ? 'active' : ''}"
|
|
263
|
+
@click=${() => this.onChartTypeChange('radar')}
|
|
264
|
+
>
|
|
265
|
+
레이더차트
|
|
266
|
+
</button>
|
|
267
|
+
</div>
|
|
268
|
+
<div class="chart-container">
|
|
269
|
+
${this.selectedChartType === 'boxplot'
|
|
270
|
+
? html `
|
|
271
|
+
<kpi-boxplot-chart
|
|
272
|
+
.data=${this.chartData}
|
|
273
|
+
.groups=${this.chartCategories}
|
|
274
|
+
.valueKey=${'value'}
|
|
275
|
+
.currentGroup=${this.selectedRegion || '전체'}
|
|
276
|
+
></kpi-boxplot-chart>
|
|
277
|
+
`
|
|
278
|
+
: html `
|
|
279
|
+
<kpi-radar-chart
|
|
280
|
+
.data=${this.chartData}
|
|
281
|
+
.categories=${this.chartCategories}
|
|
282
|
+
.valueKey=${'value'}
|
|
283
|
+
.currentGroup=${this.selectedRegion || '전체'}
|
|
284
|
+
></kpi-radar-chart>
|
|
285
|
+
`}
|
|
286
|
+
</div>
|
|
287
|
+
</div>
|
|
288
|
+
|
|
289
|
+
<!-- 기간별 성과 추이 -->
|
|
290
|
+
<div class="trend-section">
|
|
291
|
+
<div class="sub-title">기간별 성과 추이</div>
|
|
292
|
+
<div class="trend-chart-container" style="height: 200px; margin-bottom: 16px;">
|
|
293
|
+
<kpi-trend-chart
|
|
294
|
+
.data=${this.trendData}
|
|
295
|
+
.lineColor=${'#2196f3'}
|
|
296
|
+
.strokeWidth=${2}
|
|
297
|
+
.showPoints=${true}
|
|
298
|
+
.pointRadius=${4}
|
|
299
|
+
></kpi-trend-chart>
|
|
300
|
+
</div>
|
|
301
|
+
<div class="trend-table">
|
|
302
|
+
<table style="width: 100%; border-collapse: collapse; font-size: 0.85rem;">
|
|
303
|
+
<thead>
|
|
304
|
+
<tr style="border-bottom: 2px solid #f1f3f4; background-color: #f8f9fa;">
|
|
305
|
+
<th style="padding: 8px; text-align: left; font-weight: 600;">날짜</th>
|
|
306
|
+
<th style="padding: 8px; text-align: right; font-weight: 600;">성과</th>
|
|
307
|
+
<th style="padding: 8px; text-align: center; font-weight: 600;">추이</th>
|
|
308
|
+
</tr>
|
|
309
|
+
</thead>
|
|
310
|
+
<tbody>
|
|
311
|
+
${this.trendData.slice(-10).map((item) => html `
|
|
312
|
+
<tr style="border-bottom: 1px solid #f1f3f4;">
|
|
313
|
+
<td style="padding: 8px; font-size: 0.85rem;">${item.date}</td>
|
|
314
|
+
<td style="padding: 8px; text-align: right; font-size: 0.85rem; font-weight: 600;">
|
|
315
|
+
${item.value}
|
|
316
|
+
</td>
|
|
317
|
+
<td style="padding: 8px; text-align: center; font-size: 0.85rem;">
|
|
318
|
+
<span style="color: ${item.color};">
|
|
319
|
+
${item.value > 60 ? '▲' : item.value > 40 ? '▲' : '▼'}
|
|
320
|
+
</span>
|
|
321
|
+
</td>
|
|
322
|
+
</tr>
|
|
323
|
+
`)}
|
|
324
|
+
</tbody>
|
|
325
|
+
</table>
|
|
326
|
+
</div>
|
|
327
|
+
</div>
|
|
328
|
+
</div>
|
|
329
|
+
`;
|
|
330
|
+
}
|
|
331
|
+
};
|
|
332
|
+
__decorate([
|
|
333
|
+
property({ type: String }),
|
|
334
|
+
__metadata("design:type", Object)
|
|
335
|
+
], KpiRegionPopup.prototype, "selectedRegion", void 0);
|
|
336
|
+
__decorate([
|
|
337
|
+
property({ type: String }),
|
|
338
|
+
__metadata("design:type", Object)
|
|
339
|
+
], KpiRegionPopup.prototype, "selectedChartType", void 0);
|
|
340
|
+
__decorate([
|
|
341
|
+
property({ type: String }),
|
|
342
|
+
__metadata("design:type", Object)
|
|
343
|
+
], KpiRegionPopup.prototype, "selectedPeriod", void 0);
|
|
344
|
+
__decorate([
|
|
345
|
+
property({ type: String }),
|
|
346
|
+
__metadata("design:type", Object)
|
|
347
|
+
], KpiRegionPopup.prototype, "startDate", void 0);
|
|
348
|
+
__decorate([
|
|
349
|
+
property({ type: String }),
|
|
350
|
+
__metadata("design:type", Object)
|
|
351
|
+
], KpiRegionPopup.prototype, "endDate", void 0);
|
|
352
|
+
__decorate([
|
|
353
|
+
state(),
|
|
354
|
+
__metadata("design:type", Array)
|
|
355
|
+
], KpiRegionPopup.prototype, "chartData", void 0);
|
|
356
|
+
__decorate([
|
|
357
|
+
state(),
|
|
358
|
+
__metadata("design:type", Array)
|
|
359
|
+
], KpiRegionPopup.prototype, "chartCategories", void 0);
|
|
360
|
+
__decorate([
|
|
361
|
+
state(),
|
|
362
|
+
__metadata("design:type", Array)
|
|
363
|
+
], KpiRegionPopup.prototype, "trendData", void 0);
|
|
364
|
+
KpiRegionPopup = __decorate([
|
|
365
|
+
customElement('kpi-region-popup')
|
|
366
|
+
], KpiRegionPopup);
|
|
367
|
+
export { KpiRegionPopup };
|
|
368
|
+
//# sourceMappingURL=kpi-region-popup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kpi-region-popup.js","sourceRoot":"","sources":["../../../../client/pages/kpi-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C,KAAK;;;8CAGU,IAAI,CAAC,KAAK;4BAC5B,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG;;;;mBAI5D,CACF;;;;;;KAMZ,CAAA;IACH,CAAC;;AAxN2B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sDAAqC;AACpC;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;yDAA8B;AAC7B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sDAAqB;AACpB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;iDAAiB;AAChB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;+CAAe;AAEzB;IAAhB,KAAK,EAAE;;iDAA8B;AACrB;IAAhB,KAAK,EAAE;;uDAAuC;AAC9B;IAAhB,KAAK,EAAE;;iDAA0E;AAzIvE,cAAc;IAD1B,aAAa,CAAC,kBAAkB,CAAC;GACrB,cAAc,CA0V1B","sourcesContent":["import { LitElement, html, css, nothing } from 'lit'\nimport { customElement, property, state } from 'lit/decorators.js'\n\nimport '../../../charts/kpi-radar-chart.js'\nimport '../../../charts/kpi-boxplot-chart.js'\nimport '../../../charts/kpi-trend-chart.js'\n\n@customElement('kpi-region-popup')\nexport class KpiRegionPopup extends LitElement {\n static styles = css`\n :host {\n display: block;\n position: absolute;\n top: 0;\n left: 402px;\n width: 400px;\n height: 100%;\n background: #fff;\n border-right: 1px solid #e0e0e0;\n z-index: 1000;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);\n }\n .popup-content {\n padding: 24px;\n overflow-y: auto;\n flex: 1;\n }\n .popup-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 20px 24px;\n border-bottom: 1px solid #e0e0e0;\n background: #fff;\n height: 70px;\n box-sizing: border-box;\n }\n .popup-title {\n font-size: 1.2rem;\n font-weight: bold;\n color: #333;\n }\n .popup-close {\n width: 32px;\n height: 32px;\n border: none;\n background: #fff;\n border-radius: 50%;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 1.2rem;\n color: #666;\n transition: all 0.2s;\n }\n .popup-close:hover {\n background: #e9ecef;\n color: #333;\n }\n .sub-title {\n font-size: 1rem;\n font-weight: 600;\n margin-bottom: 16px;\n color: #495057;\n }\n .chart-section {\n background: #f8f9fa;\n border-radius: 8px;\n padding: 16px;\n margin-bottom: 20px;\n }\n .chart-toggle {\n display: flex;\n gap: 8px;\n margin-bottom: 16px;\n }\n .toggle-button {\n padding: 8px 16px;\n border: 1px solid #ced4da;\n background: #fff;\n border-radius: 6px;\n cursor: pointer;\n font-size: 0.9rem;\n transition: all 0.2s;\n }\n .toggle-button.active {\n background: #667eea;\n color: white;\n border-color: #667eea;\n }\n .chart-container {\n height: 300px;\n display: flex;\n align-items: center;\n justify-content: center;\n background: white;\n border-radius: 6px;\n border: 1px solid #e9ecef;\n }\n .period-selector {\n display: flex;\n gap: 8px;\n margin-bottom: 16px;\n }\n .period-button {\n padding: 6px 12px;\n border: 1px solid #ced4da;\n background: #fff;\n border-radius: 4px;\n cursor: pointer;\n font-size: 0.85rem;\n transition: all 0.2s;\n }\n .period-button.active {\n background: #667eea;\n color: white;\n border-color: #667eea;\n }\n .date-range-selector {\n display: flex;\n align-items: center;\n gap: 8px;\n margin-bottom: 16px;\n }\n .date-select {\n padding: 6px 12px;\n border: 1px solid #ced4da;\n border-radius: 4px;\n background: white;\n font-size: 0.9rem;\n }\n `\n\n @property({ type: String }) selectedRegion: string | null = null\n @property({ type: String }) selectedChartType = 'boxplot'\n @property({ type: String }) selectedPeriod = '월'\n @property({ type: String }) startDate = '전체'\n @property({ type: String }) endDate = '전체'\n\n @state() private chartData: any[] = []\n @state() private chartCategories: string[] = []\n @state() private trendData: { date: string; value: number; color?: string }[] = []\n\n connectedCallback() {\n super.connectedCallback()\n this.generateChartData()\n this.generateTrendData()\n }\n\n private generateChartData() {\n // 선택된 지역의 KPI 데이터 생성\n const categories = ['일정 성과', '비용 성과', '품질 성과', '안전 성과', '환경 성과']\n this.chartCategories = categories\n\n if (this.selectedChartType === 'radar') {\n // 레이더 차트용 데이터 생성\n this.chartData = categories.map(category => ({\n category,\n value: Math.random() * 50 + 25, // 25-75 범위\n group: this.selectedRegion || '전체'\n }))\n } else {\n // 박스플롯용 데이터 생성\n this.chartData = categories.map(category => {\n const baseValue = Math.random() * 50 + 25 // 25-75 범위\n const variation = Math.random() * 20 // 변동폭\n\n // 각 카테고리별로 20개의 데이터 포인트 생성\n const dataPoints: { value: number; group: string }[] = []\n for (let i = 0; i < 20; i++) {\n dataPoints.push({\n value: baseValue + (Math.random() - 0.5) * variation,\n group: category\n })\n }\n\n // 통계값 계산\n const values = dataPoints.map(d => d.value).sort((a, b) => a - b)\n const min = Math.min(...values)\n const max = Math.max(...values)\n const q1 = values[Math.floor(values.length * 0.25)]\n const q3 = values[Math.floor(values.length * 0.75)]\n const median = values[Math.floor(values.length * 0.5)]\n const mean = values.reduce((a, b) => a + b, 0) / values.length\n\n return {\n group: category,\n min: min,\n max: max,\n q1: q1,\n q3: q3,\n median: median,\n mean: mean,\n value: mean\n }\n })\n }\n }\n\n private generateTrendData() {\n // 최근 30일간의 트렌드 데이터 생성\n const today = new Date()\n this.trendData = []\n\n for (let i = 29; i >= 0; i--) {\n const date = new Date(today)\n date.setDate(date.getDate() - i)\n\n // 기본값에서 약간의 변동을 주어 트렌드 생성\n const baseValue = 50\n const trend = Math.sin(i * 0.2) * 10 // 사인파로 변동\n const noise = (Math.random() - 0.5) * 5 // 랜덤 노이즈\n const value = Math.max(0, Math.min(100, baseValue + trend + noise))\n\n this.trendData.push({\n date: date.toISOString().split('T')[0], // YYYY-MM-DD 형식\n value: Math.round(value),\n color: value > 60 ? '#4caf50' : value > 40 ? '#ff9800' : '#f44336'\n })\n }\n }\n\n private onClose() {\n this.dispatchEvent(\n new CustomEvent('popup-close', {\n bubbles: true,\n composed: true\n })\n )\n }\n\n private onChartTypeChange(type: string) {\n this.selectedChartType = type\n this.generateChartData()\n }\n\n private onPeriodChange(period: string) {\n this.dispatchEvent(\n new CustomEvent('period-change', {\n detail: { period },\n bubbles: true,\n composed: true\n })\n )\n this.generateTrendData()\n }\n\n private onDateRangeChange() {\n this.dispatchEvent(\n new CustomEvent('date-range-change', {\n detail: { startDate: this.startDate, endDate: this.endDate },\n bubbles: true,\n composed: true\n })\n )\n }\n\n render() {\n if (!this.selectedRegion) {\n return nothing\n }\n\n return html`\n <div class=\"popup-header\">\n <div class=\"popup-title\">${this.selectedRegion} KPI</div>\n <button class=\"popup-close\" @click=${this.onClose}>×</button>\n </div>\n <div class=\"popup-content\">\n <!-- 종합 성과 -->\n <div class=\"chart-section\">\n <div class=\"sub-title\">종합 성과</div>\n <div class=\"chart-toggle\">\n <button\n class=\"toggle-button ${this.selectedChartType === 'boxplot' ? 'active' : ''}\"\n @click=${() => this.onChartTypeChange('boxplot')}\n >\n 박스플롯\n </button>\n <button\n class=\"toggle-button ${this.selectedChartType === 'radar' ? 'active' : ''}\"\n @click=${() => this.onChartTypeChange('radar')}\n >\n 레이더차트\n </button>\n </div>\n <div class=\"chart-container\">\n ${this.selectedChartType === 'boxplot'\n ? html`\n <kpi-boxplot-chart\n .data=${this.chartData}\n .groups=${this.chartCategories}\n .valueKey=${'value'}\n .currentGroup=${this.selectedRegion || '전체'}\n ></kpi-boxplot-chart>\n `\n : html`\n <kpi-radar-chart\n .data=${this.chartData}\n .categories=${this.chartCategories}\n .valueKey=${'value'}\n .currentGroup=${this.selectedRegion || '전체'}\n ></kpi-radar-chart>\n `}\n </div>\n </div>\n\n <!-- 기간별 성과 추이 -->\n <div class=\"trend-section\">\n <div class=\"sub-title\">기간별 성과 추이</div>\n <div class=\"trend-chart-container\" style=\"height: 200px; margin-bottom: 16px;\">\n <kpi-trend-chart\n .data=${this.trendData}\n .lineColor=${'#2196f3'}\n .strokeWidth=${2}\n .showPoints=${true}\n .pointRadius=${4}\n ></kpi-trend-chart>\n </div>\n <div class=\"trend-table\">\n <table style=\"width: 100%; border-collapse: collapse; font-size: 0.85rem;\">\n <thead>\n <tr style=\"border-bottom: 2px solid #f1f3f4; background-color: #f8f9fa;\">\n <th style=\"padding: 8px; text-align: left; font-weight: 600;\">날짜</th>\n <th style=\"padding: 8px; text-align: right; font-weight: 600;\">성과</th>\n <th style=\"padding: 8px; text-align: center; font-weight: 600;\">추이</th>\n </tr>\n </thead>\n <tbody>\n ${this.trendData.slice(-10).map(\n (item: any) => html`\n <tr style=\"border-bottom: 1px solid #f1f3f4;\">\n <td style=\"padding: 8px; font-size: 0.85rem;\">${item.date}</td>\n <td style=\"padding: 8px; text-align: right; font-size: 0.85rem; font-weight: 600;\">\n ${item.value}\n </td>\n <td style=\"padding: 8px; text-align: center; font-size: 0.85rem;\">\n <span style=\"color: ${item.color};\">\n ${item.value > 60 ? '▲' : item.value > 40 ? '▲' : '▼'}\n </span>\n </td>\n </tr>\n `\n )}\n </tbody>\n </table>\n </div>\n </div>\n </div>\n `\n }\n}\n"]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { PageView } from '@operato/shell';
|
|
2
|
+
import './components/kpi-map-panel';
|
|
3
|
+
import './components/kpi-left-panel';
|
|
4
|
+
import './components/kpi-region-popup';
|
|
5
|
+
export declare class KpiDashboardMapPage extends PageView {
|
|
6
|
+
static styles: import("lit").CSSResult[];
|
|
7
|
+
selectedCategory: string;
|
|
8
|
+
selectedPeriod: string;
|
|
9
|
+
startDate: string;
|
|
10
|
+
endDate: string;
|
|
11
|
+
nationalData: any;
|
|
12
|
+
seoulData: any;
|
|
13
|
+
mapData: any;
|
|
14
|
+
selectedRegion: string | null;
|
|
15
|
+
showRegionPopup: boolean;
|
|
16
|
+
connectedCallback(): void;
|
|
17
|
+
private setupKeyboardEvents;
|
|
18
|
+
fetchDashboardData(): Promise<void>;
|
|
19
|
+
private generateMapData;
|
|
20
|
+
private downloadExcel;
|
|
21
|
+
private onRegionClick;
|
|
22
|
+
private closeRegionPopup;
|
|
23
|
+
private fetchRegionData;
|
|
24
|
+
get context(): {
|
|
25
|
+
title: string;
|
|
26
|
+
description: string;
|
|
27
|
+
};
|
|
28
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
29
|
+
}
|