@smartnet360/svelte-components 0.0.103 → 0.0.105
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/apps/site-check/SiteCheck.svelte +11 -77
- package/dist/apps/site-check/SiteCheckControls.svelte +0 -7
- package/dist/apps/site-check/helper.js +0 -33
- package/dist/apps/site-check/transforms.js +15 -65
- package/dist/core/CellTable/CellTable.svelte +456 -0
- package/dist/core/CellTable/CellTable.svelte.d.ts +27 -0
- package/dist/core/CellTable/CellTableDemo.svelte +145 -0
- package/dist/core/CellTable/CellTableDemo.svelte.d.ts +3 -0
- package/dist/core/CellTable/CellTablePanel.svelte +211 -0
- package/dist/core/CellTable/CellTablePanel.svelte.d.ts +49 -0
- package/dist/core/CellTable/CellTableToolbar.svelte +218 -0
- package/dist/core/CellTable/CellTableToolbar.svelte.d.ts +32 -0
- package/dist/core/CellTable/column-config.d.ts +63 -0
- package/dist/core/CellTable/column-config.js +465 -0
- package/dist/core/CellTable/demo-data.d.ts +5 -0
- package/dist/core/CellTable/demo-data.js +501 -0
- package/dist/core/CellTable/index.d.ts +12 -0
- package/dist/core/CellTable/index.js +14 -0
- package/dist/core/CellTable/types.d.ts +166 -0
- package/dist/core/CellTable/types.js +6 -0
- package/dist/core/Charts/ChartCard.svelte +0 -23
- package/dist/core/Charts/ChartComponent.svelte +0 -25
- package/dist/core/Charts/data-processor.js +1 -19
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.js +2 -0
- package/package.json +3 -2
- package/dist/apps/site-check/transforms-old.d.ts +0 -56
- package/dist/apps/site-check/transforms-old.js +0 -273
|
@@ -0,0 +1,501 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Demo cell data for testing the CellTable component
|
|
3
|
+
*/
|
|
4
|
+
export const demoCells = [
|
|
5
|
+
// Site 1 - Mixed technologies
|
|
6
|
+
{
|
|
7
|
+
id: 'CELL001',
|
|
8
|
+
txId: 'TX001',
|
|
9
|
+
cellID: 'C001',
|
|
10
|
+
cellID2G: '',
|
|
11
|
+
cellName: 'Site1_LTE700_S1',
|
|
12
|
+
siteId: 'SITE001',
|
|
13
|
+
tech: '4G',
|
|
14
|
+
fband: 'LTE700',
|
|
15
|
+
frq: '700',
|
|
16
|
+
type: 'Macro',
|
|
17
|
+
status: 'On_Air',
|
|
18
|
+
onAirDate: '2023-01-15',
|
|
19
|
+
bcch: 0,
|
|
20
|
+
ctrlid: '',
|
|
21
|
+
dlEarfn: 3350,
|
|
22
|
+
antenna: 'Kathrein 80010541',
|
|
23
|
+
azimuth: 0,
|
|
24
|
+
height: 35,
|
|
25
|
+
electricalTilt: '4',
|
|
26
|
+
beamwidth: 65,
|
|
27
|
+
latitude: 47.4979,
|
|
28
|
+
longitude: 19.0402,
|
|
29
|
+
dx: 0,
|
|
30
|
+
dy: 0,
|
|
31
|
+
siteLatitude: 47.4979,
|
|
32
|
+
siteLongitude: 19.0402,
|
|
33
|
+
comment: 'Coverage optimization completed',
|
|
34
|
+
planner: 'John Smith',
|
|
35
|
+
atollETP: 46.5,
|
|
36
|
+
atollPW: 40,
|
|
37
|
+
atollRS: 15,
|
|
38
|
+
atollBW: 10,
|
|
39
|
+
cellId3: 'C001-3',
|
|
40
|
+
nwtP1: 20,
|
|
41
|
+
nwtP2: 20,
|
|
42
|
+
pci1: 150,
|
|
43
|
+
nwtRS: 15,
|
|
44
|
+
nwtBW: 10,
|
|
45
|
+
customSubgroup: 'Urban'
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
id: 'CELL002',
|
|
49
|
+
txId: 'TX002',
|
|
50
|
+
cellID: 'C002',
|
|
51
|
+
cellID2G: '',
|
|
52
|
+
cellName: 'Site1_LTE700_S2',
|
|
53
|
+
siteId: 'SITE001',
|
|
54
|
+
tech: '4G',
|
|
55
|
+
fband: 'LTE700',
|
|
56
|
+
frq: '700',
|
|
57
|
+
type: 'Macro',
|
|
58
|
+
status: 'On_Air',
|
|
59
|
+
onAirDate: '2023-01-15',
|
|
60
|
+
bcch: 0,
|
|
61
|
+
ctrlid: '',
|
|
62
|
+
dlEarfn: 3350,
|
|
63
|
+
antenna: 'Kathrein 80010541',
|
|
64
|
+
azimuth: 120,
|
|
65
|
+
height: 35,
|
|
66
|
+
electricalTilt: '4',
|
|
67
|
+
beamwidth: 65,
|
|
68
|
+
latitude: 47.4979,
|
|
69
|
+
longitude: 19.0402,
|
|
70
|
+
dx: 0,
|
|
71
|
+
dy: 0,
|
|
72
|
+
siteLatitude: 47.4979,
|
|
73
|
+
siteLongitude: 19.0402,
|
|
74
|
+
comment: '',
|
|
75
|
+
planner: 'John Smith',
|
|
76
|
+
atollETP: 46.5,
|
|
77
|
+
atollPW: 40,
|
|
78
|
+
atollRS: 15,
|
|
79
|
+
atollBW: 10,
|
|
80
|
+
cellId3: 'C002-3',
|
|
81
|
+
nwtP1: 20,
|
|
82
|
+
nwtP2: 20,
|
|
83
|
+
pci1: 151,
|
|
84
|
+
nwtRS: 15,
|
|
85
|
+
nwtBW: 10,
|
|
86
|
+
customSubgroup: 'Urban'
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
id: 'CELL003',
|
|
90
|
+
txId: 'TX003',
|
|
91
|
+
cellID: 'C003',
|
|
92
|
+
cellID2G: '',
|
|
93
|
+
cellName: 'Site1_LTE700_S3',
|
|
94
|
+
siteId: 'SITE001',
|
|
95
|
+
tech: '4G',
|
|
96
|
+
fband: 'LTE700',
|
|
97
|
+
frq: '700',
|
|
98
|
+
type: 'Macro',
|
|
99
|
+
status: 'On_Air',
|
|
100
|
+
onAirDate: '2023-01-15',
|
|
101
|
+
bcch: 0,
|
|
102
|
+
ctrlid: '',
|
|
103
|
+
dlEarfn: 3350,
|
|
104
|
+
antenna: 'Kathrein 80010541',
|
|
105
|
+
azimuth: 240,
|
|
106
|
+
height: 35,
|
|
107
|
+
electricalTilt: '4',
|
|
108
|
+
beamwidth: 65,
|
|
109
|
+
latitude: 47.4979,
|
|
110
|
+
longitude: 19.0402,
|
|
111
|
+
dx: 0,
|
|
112
|
+
dy: 0,
|
|
113
|
+
siteLatitude: 47.4979,
|
|
114
|
+
siteLongitude: 19.0402,
|
|
115
|
+
comment: '',
|
|
116
|
+
planner: 'John Smith',
|
|
117
|
+
atollETP: 46.5,
|
|
118
|
+
atollPW: 40,
|
|
119
|
+
atollRS: 15,
|
|
120
|
+
atollBW: 10,
|
|
121
|
+
cellId3: 'C003-3',
|
|
122
|
+
nwtP1: 20,
|
|
123
|
+
nwtP2: 20,
|
|
124
|
+
pci1: 152,
|
|
125
|
+
nwtRS: 15,
|
|
126
|
+
nwtBW: 10,
|
|
127
|
+
customSubgroup: 'Urban'
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
id: 'CELL004',
|
|
131
|
+
txId: 'TX004',
|
|
132
|
+
cellID: 'C004',
|
|
133
|
+
cellID2G: '',
|
|
134
|
+
cellName: 'Site1_LTE1800_S1',
|
|
135
|
+
siteId: 'SITE001',
|
|
136
|
+
tech: '4G',
|
|
137
|
+
fband: 'LTE1800',
|
|
138
|
+
frq: '1800',
|
|
139
|
+
type: 'Macro',
|
|
140
|
+
status: 'On_Air',
|
|
141
|
+
onAirDate: '2022-06-20',
|
|
142
|
+
bcch: 0,
|
|
143
|
+
ctrlid: '',
|
|
144
|
+
dlEarfn: 1650,
|
|
145
|
+
antenna: 'Kathrein 80010541',
|
|
146
|
+
azimuth: 0,
|
|
147
|
+
height: 35,
|
|
148
|
+
electricalTilt: '6',
|
|
149
|
+
beamwidth: 65,
|
|
150
|
+
latitude: 47.4979,
|
|
151
|
+
longitude: 19.0402,
|
|
152
|
+
dx: 0,
|
|
153
|
+
dy: 0,
|
|
154
|
+
siteLatitude: 47.4979,
|
|
155
|
+
siteLongitude: 19.0402,
|
|
156
|
+
comment: 'High capacity layer',
|
|
157
|
+
planner: 'Jane Doe',
|
|
158
|
+
atollETP: 43.2,
|
|
159
|
+
atollPW: 40,
|
|
160
|
+
atollRS: 15,
|
|
161
|
+
atollBW: 20,
|
|
162
|
+
cellId3: 'C004-3',
|
|
163
|
+
nwtP1: 20,
|
|
164
|
+
nwtP2: 20,
|
|
165
|
+
pci1: 200,
|
|
166
|
+
nwtRS: 15,
|
|
167
|
+
nwtBW: 20,
|
|
168
|
+
customSubgroup: 'Urban'
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
id: 'CELL005',
|
|
172
|
+
txId: 'TX005',
|
|
173
|
+
cellID: 'C005',
|
|
174
|
+
cellID2G: '',
|
|
175
|
+
cellName: 'Site1_5G3500_S1',
|
|
176
|
+
siteId: 'SITE001',
|
|
177
|
+
tech: '5G',
|
|
178
|
+
fband: '5G-3500',
|
|
179
|
+
frq: '3500',
|
|
180
|
+
type: 'Macro',
|
|
181
|
+
status: 'On_Air_UNDER_CONSTRUCTION',
|
|
182
|
+
onAirDate: '2024-03-01',
|
|
183
|
+
bcch: 0,
|
|
184
|
+
ctrlid: '',
|
|
185
|
+
dlEarfn: 0,
|
|
186
|
+
antenna: 'Ericsson AIR 6449',
|
|
187
|
+
azimuth: 0,
|
|
188
|
+
height: 35,
|
|
189
|
+
electricalTilt: '0',
|
|
190
|
+
beamwidth: 90,
|
|
191
|
+
latitude: 47.4979,
|
|
192
|
+
longitude: 19.0402,
|
|
193
|
+
dx: 0,
|
|
194
|
+
dy: 0,
|
|
195
|
+
siteLatitude: 47.4979,
|
|
196
|
+
siteLongitude: 19.0402,
|
|
197
|
+
comment: '5G deployment in progress',
|
|
198
|
+
planner: 'Mike Johnson',
|
|
199
|
+
atollETP: 49.0,
|
|
200
|
+
atollPW: 200,
|
|
201
|
+
atollRS: 0,
|
|
202
|
+
atollBW: 100,
|
|
203
|
+
cellId3: 'C005-3',
|
|
204
|
+
nwtP1: 200,
|
|
205
|
+
nwtP2: 0,
|
|
206
|
+
pci1: 500,
|
|
207
|
+
nwtRS: 0,
|
|
208
|
+
nwtBW: 100,
|
|
209
|
+
customSubgroup: 'Urban'
|
|
210
|
+
},
|
|
211
|
+
// Site 2 - GSM/LTE
|
|
212
|
+
{
|
|
213
|
+
id: 'CELL006',
|
|
214
|
+
txId: 'TX006',
|
|
215
|
+
cellID: 'C006',
|
|
216
|
+
cellID2G: '2G006',
|
|
217
|
+
cellName: 'Site2_GSM900_S1',
|
|
218
|
+
siteId: 'SITE002',
|
|
219
|
+
tech: '2G',
|
|
220
|
+
fband: 'GSM900',
|
|
221
|
+
frq: '900',
|
|
222
|
+
type: 'Macro',
|
|
223
|
+
status: 'On_Air',
|
|
224
|
+
onAirDate: '2005-11-10',
|
|
225
|
+
bcch: 50,
|
|
226
|
+
ctrlid: 'BSC01',
|
|
227
|
+
dlEarfn: 0,
|
|
228
|
+
antenna: 'Kathrein 742265',
|
|
229
|
+
azimuth: 30,
|
|
230
|
+
height: 40,
|
|
231
|
+
electricalTilt: '2',
|
|
232
|
+
beamwidth: 65,
|
|
233
|
+
latitude: 47.5012,
|
|
234
|
+
longitude: 19.0455,
|
|
235
|
+
dx: 0,
|
|
236
|
+
dy: 0,
|
|
237
|
+
siteLatitude: 47.5012,
|
|
238
|
+
siteLongitude: 19.0455,
|
|
239
|
+
comment: 'Legacy site',
|
|
240
|
+
planner: 'Legacy',
|
|
241
|
+
atollETP: 44.0,
|
|
242
|
+
atollPW: 45,
|
|
243
|
+
atollRS: 0,
|
|
244
|
+
atollBW: 0.2,
|
|
245
|
+
cellId3: 'C006-3',
|
|
246
|
+
nwtP1: 45,
|
|
247
|
+
nwtP2: 0,
|
|
248
|
+
pci1: 0,
|
|
249
|
+
nwtRS: 0,
|
|
250
|
+
nwtBW: 0,
|
|
251
|
+
customSubgroup: 'Suburban'
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
id: 'CELL007',
|
|
255
|
+
txId: 'TX007',
|
|
256
|
+
cellID: 'C007',
|
|
257
|
+
cellID2G: '2G007',
|
|
258
|
+
cellName: 'Site2_GSM900_S2',
|
|
259
|
+
siteId: 'SITE002',
|
|
260
|
+
tech: '2G',
|
|
261
|
+
fband: 'GSM900',
|
|
262
|
+
frq: '900',
|
|
263
|
+
type: 'Macro',
|
|
264
|
+
status: 'On_Air',
|
|
265
|
+
onAirDate: '2005-11-10',
|
|
266
|
+
bcch: 51,
|
|
267
|
+
ctrlid: 'BSC01',
|
|
268
|
+
dlEarfn: 0,
|
|
269
|
+
antenna: 'Kathrein 742265',
|
|
270
|
+
azimuth: 150,
|
|
271
|
+
height: 40,
|
|
272
|
+
electricalTilt: '2',
|
|
273
|
+
beamwidth: 65,
|
|
274
|
+
latitude: 47.5012,
|
|
275
|
+
longitude: 19.0455,
|
|
276
|
+
dx: 0,
|
|
277
|
+
dy: 0,
|
|
278
|
+
siteLatitude: 47.5012,
|
|
279
|
+
siteLongitude: 19.0455,
|
|
280
|
+
comment: 'Legacy site',
|
|
281
|
+
planner: 'Legacy',
|
|
282
|
+
atollETP: 44.0,
|
|
283
|
+
atollPW: 45,
|
|
284
|
+
atollRS: 0,
|
|
285
|
+
atollBW: 0.2,
|
|
286
|
+
cellId3: 'C007-3',
|
|
287
|
+
nwtP1: 45,
|
|
288
|
+
nwtP2: 0,
|
|
289
|
+
pci1: 0,
|
|
290
|
+
nwtRS: 0,
|
|
291
|
+
nwtBW: 0,
|
|
292
|
+
customSubgroup: 'Suburban'
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
id: 'CELL008',
|
|
296
|
+
txId: 'TX008',
|
|
297
|
+
cellID: 'C008',
|
|
298
|
+
cellID2G: '',
|
|
299
|
+
cellName: 'Site2_LTE2100_S1',
|
|
300
|
+
siteId: 'SITE002',
|
|
301
|
+
tech: '4G',
|
|
302
|
+
fband: 'LTE2100',
|
|
303
|
+
frq: '2100',
|
|
304
|
+
type: 'Macro',
|
|
305
|
+
status: 'RF_Plan_Ready',
|
|
306
|
+
onAirDate: '',
|
|
307
|
+
bcch: 0,
|
|
308
|
+
ctrlid: '',
|
|
309
|
+
dlEarfn: 100,
|
|
310
|
+
antenna: 'Kathrein 80010623',
|
|
311
|
+
azimuth: 30,
|
|
312
|
+
height: 40,
|
|
313
|
+
electricalTilt: '4',
|
|
314
|
+
beamwidth: 65,
|
|
315
|
+
latitude: 47.5012,
|
|
316
|
+
longitude: 19.0455,
|
|
317
|
+
dx: 0,
|
|
318
|
+
dy: 0,
|
|
319
|
+
siteLatitude: 47.5012,
|
|
320
|
+
siteLongitude: 19.0455,
|
|
321
|
+
comment: 'Awaiting installation',
|
|
322
|
+
planner: 'Sarah Connor',
|
|
323
|
+
atollETP: 46.0,
|
|
324
|
+
atollPW: 40,
|
|
325
|
+
atollRS: 15,
|
|
326
|
+
atollBW: 15,
|
|
327
|
+
cellId3: 'C008-3',
|
|
328
|
+
nwtP1: 20,
|
|
329
|
+
nwtP2: 20,
|
|
330
|
+
pci1: 300,
|
|
331
|
+
nwtRS: 15,
|
|
332
|
+
nwtBW: 15,
|
|
333
|
+
customSubgroup: 'Suburban'
|
|
334
|
+
},
|
|
335
|
+
// Site 3 - Planned site
|
|
336
|
+
{
|
|
337
|
+
id: 'CELL009',
|
|
338
|
+
txId: 'TX009',
|
|
339
|
+
cellID: 'C009',
|
|
340
|
+
cellID2G: '',
|
|
341
|
+
cellName: 'Site3_LTE700_S1',
|
|
342
|
+
siteId: 'SITE003',
|
|
343
|
+
tech: '4G',
|
|
344
|
+
fband: 'LTE700',
|
|
345
|
+
frq: '700',
|
|
346
|
+
type: 'Macro',
|
|
347
|
+
status: 'Re-Planned_RF_Plan_Ready',
|
|
348
|
+
onAirDate: '',
|
|
349
|
+
bcch: 0,
|
|
350
|
+
ctrlid: '',
|
|
351
|
+
dlEarfn: 3350,
|
|
352
|
+
antenna: 'CommScope NNVV-65B-R6',
|
|
353
|
+
azimuth: 45,
|
|
354
|
+
height: 30,
|
|
355
|
+
electricalTilt: '3',
|
|
356
|
+
beamwidth: 65,
|
|
357
|
+
latitude: 47.4950,
|
|
358
|
+
longitude: 19.0380,
|
|
359
|
+
dx: 0,
|
|
360
|
+
dy: 0,
|
|
361
|
+
siteLatitude: 47.4950,
|
|
362
|
+
siteLongitude: 19.0380,
|
|
363
|
+
comment: 'Re-planned for better coverage',
|
|
364
|
+
planner: 'Tom Wilson',
|
|
365
|
+
atollETP: 47.0,
|
|
366
|
+
atollPW: 40,
|
|
367
|
+
atollRS: 15,
|
|
368
|
+
atollBW: 10,
|
|
369
|
+
cellId3: 'C009-3',
|
|
370
|
+
nwtP1: 20,
|
|
371
|
+
nwtP2: 20,
|
|
372
|
+
pci1: 450,
|
|
373
|
+
nwtRS: 15,
|
|
374
|
+
nwtBW: 10,
|
|
375
|
+
customSubgroup: 'Rural'
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
id: 'CELL010',
|
|
379
|
+
txId: 'TX010',
|
|
380
|
+
cellID: 'C010',
|
|
381
|
+
cellID2G: '',
|
|
382
|
+
cellName: 'Site3_LTE700_S2',
|
|
383
|
+
siteId: 'SITE003',
|
|
384
|
+
tech: '4G',
|
|
385
|
+
fband: 'LTE700',
|
|
386
|
+
frq: '700',
|
|
387
|
+
type: 'Macro',
|
|
388
|
+
status: 'Re-Planned_RF_Plan_Ready',
|
|
389
|
+
onAirDate: '',
|
|
390
|
+
bcch: 0,
|
|
391
|
+
ctrlid: '',
|
|
392
|
+
dlEarfn: 3350,
|
|
393
|
+
antenna: 'CommScope NNVV-65B-R6',
|
|
394
|
+
azimuth: 165,
|
|
395
|
+
height: 30,
|
|
396
|
+
electricalTilt: '3',
|
|
397
|
+
beamwidth: 65,
|
|
398
|
+
latitude: 47.4950,
|
|
399
|
+
longitude: 19.0380,
|
|
400
|
+
dx: 0,
|
|
401
|
+
dy: 0,
|
|
402
|
+
siteLatitude: 47.4950,
|
|
403
|
+
siteLongitude: 19.0380,
|
|
404
|
+
comment: 'Re-planned for better coverage',
|
|
405
|
+
planner: 'Tom Wilson',
|
|
406
|
+
atollETP: 47.0,
|
|
407
|
+
atollPW: 40,
|
|
408
|
+
atollRS: 15,
|
|
409
|
+
atollBW: 10,
|
|
410
|
+
cellId3: 'C010-3',
|
|
411
|
+
nwtP1: 20,
|
|
412
|
+
nwtP2: 20,
|
|
413
|
+
pci1: 451,
|
|
414
|
+
nwtRS: 15,
|
|
415
|
+
nwtBW: 10,
|
|
416
|
+
customSubgroup: 'Rural'
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
id: 'CELL011',
|
|
420
|
+
txId: 'TX011',
|
|
421
|
+
cellID: 'C011',
|
|
422
|
+
cellID2G: '',
|
|
423
|
+
cellName: 'Site3_5G3500_S1',
|
|
424
|
+
siteId: 'SITE003',
|
|
425
|
+
tech: '5G',
|
|
426
|
+
fband: '5G-3500',
|
|
427
|
+
frq: '3500',
|
|
428
|
+
type: 'Macro',
|
|
429
|
+
status: 'Tavlati_RF_Plan_Ready',
|
|
430
|
+
onAirDate: '',
|
|
431
|
+
bcch: 0,
|
|
432
|
+
ctrlid: '',
|
|
433
|
+
dlEarfn: 0,
|
|
434
|
+
antenna: 'Ericsson AIR 6449',
|
|
435
|
+
azimuth: 45,
|
|
436
|
+
height: 30,
|
|
437
|
+
electricalTilt: '0',
|
|
438
|
+
beamwidth: 90,
|
|
439
|
+
latitude: 47.4950,
|
|
440
|
+
longitude: 19.0380,
|
|
441
|
+
dx: 0,
|
|
442
|
+
dy: 0,
|
|
443
|
+
siteLatitude: 47.4950,
|
|
444
|
+
siteLongitude: 19.0380,
|
|
445
|
+
comment: 'Future 5G deployment',
|
|
446
|
+
planner: 'Tom Wilson',
|
|
447
|
+
atollETP: 49.0,
|
|
448
|
+
atollPW: 200,
|
|
449
|
+
atollRS: 0,
|
|
450
|
+
atollBW: 100,
|
|
451
|
+
cellId3: 'C011-3',
|
|
452
|
+
nwtP1: 200,
|
|
453
|
+
nwtP2: 0,
|
|
454
|
+
pci1: 600,
|
|
455
|
+
nwtRS: 0,
|
|
456
|
+
nwtBW: 100,
|
|
457
|
+
customSubgroup: 'Rural'
|
|
458
|
+
},
|
|
459
|
+
// Site 4 - Locked site
|
|
460
|
+
{
|
|
461
|
+
id: 'CELL012',
|
|
462
|
+
txId: 'TX012',
|
|
463
|
+
cellID: 'C012',
|
|
464
|
+
cellID2G: '',
|
|
465
|
+
cellName: 'Site4_LTE2600_S1',
|
|
466
|
+
siteId: 'SITE004',
|
|
467
|
+
tech: '4G',
|
|
468
|
+
fband: 'LTE2600',
|
|
469
|
+
frq: '2600',
|
|
470
|
+
type: 'Small Cell',
|
|
471
|
+
status: 'On_Air_Locked',
|
|
472
|
+
onAirDate: '2021-09-15',
|
|
473
|
+
bcch: 0,
|
|
474
|
+
ctrlid: '',
|
|
475
|
+
dlEarfn: 3100,
|
|
476
|
+
antenna: 'Integrated',
|
|
477
|
+
azimuth: 0,
|
|
478
|
+
height: 12,
|
|
479
|
+
electricalTilt: '8',
|
|
480
|
+
beamwidth: 90,
|
|
481
|
+
latitude: 47.5000,
|
|
482
|
+
longitude: 19.0420,
|
|
483
|
+
dx: 0,
|
|
484
|
+
dy: 0,
|
|
485
|
+
siteLatitude: 47.5000,
|
|
486
|
+
siteLongitude: 19.0420,
|
|
487
|
+
comment: 'Indoor DAS - Locked',
|
|
488
|
+
planner: 'Amy Chen',
|
|
489
|
+
atollETP: 30.0,
|
|
490
|
+
atollPW: 10,
|
|
491
|
+
atollRS: 15,
|
|
492
|
+
atollBW: 20,
|
|
493
|
+
cellId3: 'C012-3',
|
|
494
|
+
nwtP1: 10,
|
|
495
|
+
nwtP2: 0,
|
|
496
|
+
pci1: 350,
|
|
497
|
+
nwtRS: 15,
|
|
498
|
+
nwtBW: 20,
|
|
499
|
+
customSubgroup: 'Indoor'
|
|
500
|
+
}
|
|
501
|
+
];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CellTable Component - Exports
|
|
3
|
+
*
|
|
4
|
+
* A Bootstrap-themed Tabulator wrapper for displaying cell data
|
|
5
|
+
*/
|
|
6
|
+
export { default as CellTable } from './CellTable.svelte';
|
|
7
|
+
export { default as CellTableToolbar } from './CellTableToolbar.svelte';
|
|
8
|
+
export { default as CellTablePanel } from './CellTablePanel.svelte';
|
|
9
|
+
export { default as CellTableDemo } from './CellTableDemo.svelte';
|
|
10
|
+
export { demoCells } from './demo-data';
|
|
11
|
+
export type { CellData, CellTableGroupField, ColumnPreset, ColumnVisibility, TechColorMap, StatusColorMap, CellTableProps, RowSelectionEvent, RowClickEvent, RowDblClickEvent, DataChangeEvent, CellTableColumn, ColumnGroups } from './types';
|
|
12
|
+
export { DEFAULT_TECH_COLORS, DEFAULT_STATUS_COLORS, FBAND_COLORS, COLUMN_GROUPS, getAllColumns, getColumnsForPreset, getGroupHeaderFormatter, createTechFormatter, createStatusFormatter, createFbandFormatter, numberFormatter, coordinateFormatter, azimuthFormatter, heightFormatter } from './column-config';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CellTable Component - Exports
|
|
3
|
+
*
|
|
4
|
+
* A Bootstrap-themed Tabulator wrapper for displaying cell data
|
|
5
|
+
*/
|
|
6
|
+
// Components
|
|
7
|
+
export { default as CellTable } from './CellTable.svelte';
|
|
8
|
+
export { default as CellTableToolbar } from './CellTableToolbar.svelte';
|
|
9
|
+
export { default as CellTablePanel } from './CellTablePanel.svelte';
|
|
10
|
+
export { default as CellTableDemo } from './CellTableDemo.svelte';
|
|
11
|
+
// Demo data
|
|
12
|
+
export { demoCells } from './demo-data';
|
|
13
|
+
// Configuration utilities
|
|
14
|
+
export { DEFAULT_TECH_COLORS, DEFAULT_STATUS_COLORS, FBAND_COLORS, COLUMN_GROUPS, getAllColumns, getColumnsForPreset, getGroupHeaderFormatter, createTechFormatter, createStatusFormatter, createFbandFormatter, numberFormatter, coordinateFormatter, azimuthFormatter, heightFormatter } from './column-config';
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CellTable Component - Type Definitions
|
|
3
|
+
*
|
|
4
|
+
* Types for the Tabulator-based cell data table component
|
|
5
|
+
*/
|
|
6
|
+
import type { ColumnDefinition, Options } from 'tabulator-tables';
|
|
7
|
+
/**
|
|
8
|
+
* Cell data model - represents a radio cell/sector
|
|
9
|
+
* Imported from map-v3 cells feature for consistency
|
|
10
|
+
*/
|
|
11
|
+
export interface CellData {
|
|
12
|
+
id: string;
|
|
13
|
+
txId: string;
|
|
14
|
+
cellID: string;
|
|
15
|
+
cellID2G: string;
|
|
16
|
+
cellName: string;
|
|
17
|
+
siteId: string;
|
|
18
|
+
tech: string;
|
|
19
|
+
fband: string;
|
|
20
|
+
frq: string;
|
|
21
|
+
type: string;
|
|
22
|
+
status: string;
|
|
23
|
+
onAirDate: string;
|
|
24
|
+
bcch: number;
|
|
25
|
+
ctrlid: string;
|
|
26
|
+
dlEarfn: number;
|
|
27
|
+
antenna: string;
|
|
28
|
+
azimuth: number;
|
|
29
|
+
height: number;
|
|
30
|
+
electricalTilt: string;
|
|
31
|
+
beamwidth: number;
|
|
32
|
+
latitude: number;
|
|
33
|
+
longitude: number;
|
|
34
|
+
dx: number;
|
|
35
|
+
dy: number;
|
|
36
|
+
siteLatitude: number;
|
|
37
|
+
siteLongitude: number;
|
|
38
|
+
comment: string;
|
|
39
|
+
planner: string;
|
|
40
|
+
atollETP: number;
|
|
41
|
+
atollPW: number;
|
|
42
|
+
atollRS: number;
|
|
43
|
+
atollBW: number;
|
|
44
|
+
cellId3: string;
|
|
45
|
+
nwtP1: number;
|
|
46
|
+
nwtP2: number;
|
|
47
|
+
pci1: number;
|
|
48
|
+
nwtRS: number;
|
|
49
|
+
nwtBW: number;
|
|
50
|
+
other?: Record<string, unknown>;
|
|
51
|
+
customSubgroup: string;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Available grouping fields for the table
|
|
55
|
+
*/
|
|
56
|
+
export type CellTableGroupField = 'tech' | 'fband' | 'frq' | 'status' | 'siteId' | 'none';
|
|
57
|
+
/**
|
|
58
|
+
* Column preset configurations
|
|
59
|
+
*/
|
|
60
|
+
export type ColumnPreset = 'default' | 'compact' | 'full' | 'physical' | 'network' | 'planning';
|
|
61
|
+
/**
|
|
62
|
+
* Column visibility configuration
|
|
63
|
+
*/
|
|
64
|
+
export interface ColumnVisibility {
|
|
65
|
+
[key: string]: boolean;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Technology color mapping
|
|
69
|
+
*/
|
|
70
|
+
export interface TechColorMap {
|
|
71
|
+
[tech: string]: string;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Status color mapping
|
|
75
|
+
*/
|
|
76
|
+
export interface StatusColorMap {
|
|
77
|
+
[status: string]: string;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* CellTable component props
|
|
81
|
+
*/
|
|
82
|
+
export interface CellTableProps {
|
|
83
|
+
/** Cell data array to display */
|
|
84
|
+
cells: CellData[];
|
|
85
|
+
/** Field to group rows by */
|
|
86
|
+
groupBy?: CellTableGroupField;
|
|
87
|
+
/** Initial column preset */
|
|
88
|
+
columnPreset?: ColumnPreset;
|
|
89
|
+
/** Custom column visibility overrides */
|
|
90
|
+
columnVisibility?: ColumnVisibility;
|
|
91
|
+
/** Enable row selection */
|
|
92
|
+
selectable?: boolean;
|
|
93
|
+
/** Enable multi-row selection */
|
|
94
|
+
multiSelect?: boolean;
|
|
95
|
+
/** Table height (CSS value) */
|
|
96
|
+
height?: string;
|
|
97
|
+
/** Enable virtual DOM for large datasets */
|
|
98
|
+
virtualDom?: boolean;
|
|
99
|
+
/** Custom Tabulator options override */
|
|
100
|
+
tabulatorOptions?: Partial<Options>;
|
|
101
|
+
/** Technology color mapping */
|
|
102
|
+
techColors?: TechColorMap;
|
|
103
|
+
/** Status color mapping */
|
|
104
|
+
statusColors?: StatusColorMap;
|
|
105
|
+
/** Enable header filters */
|
|
106
|
+
headerFilters?: boolean;
|
|
107
|
+
/** Enable column resizing */
|
|
108
|
+
resizableColumns?: boolean;
|
|
109
|
+
/** Enable movable columns */
|
|
110
|
+
movableColumns?: boolean;
|
|
111
|
+
/** Persist column layout to localStorage */
|
|
112
|
+
persistLayout?: boolean;
|
|
113
|
+
/** Storage key for persisted layout */
|
|
114
|
+
storageKey?: string;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Row selection event data
|
|
118
|
+
*/
|
|
119
|
+
export interface RowSelectionEvent {
|
|
120
|
+
rows: CellData[];
|
|
121
|
+
ids: string[];
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Row click event data
|
|
125
|
+
*/
|
|
126
|
+
export interface RowClickEvent {
|
|
127
|
+
row: CellData;
|
|
128
|
+
event: MouseEvent;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Row double-click event data
|
|
132
|
+
*/
|
|
133
|
+
export interface RowDblClickEvent {
|
|
134
|
+
row: CellData;
|
|
135
|
+
event: MouseEvent;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Data change event data
|
|
139
|
+
*/
|
|
140
|
+
export interface DataChangeEvent {
|
|
141
|
+
type: 'load' | 'update' | 'filter' | 'sort' | 'group';
|
|
142
|
+
rowCount: number;
|
|
143
|
+
filteredCount: number;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Column definition with Bootstrap styling helpers
|
|
147
|
+
*/
|
|
148
|
+
export interface CellTableColumn extends ColumnDefinition {
|
|
149
|
+
/** Bootstrap badge variant for cell rendering */
|
|
150
|
+
badgeVariant?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark';
|
|
151
|
+
/** Use technology-based coloring */
|
|
152
|
+
techColored?: boolean;
|
|
153
|
+
/** Use status-based coloring */
|
|
154
|
+
statusColored?: boolean;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Predefined column groups for presets
|
|
158
|
+
*/
|
|
159
|
+
export interface ColumnGroups {
|
|
160
|
+
core: string[];
|
|
161
|
+
physical: string[];
|
|
162
|
+
network: string[];
|
|
163
|
+
planning: string[];
|
|
164
|
+
atoll: string[];
|
|
165
|
+
position: string[];
|
|
166
|
+
}
|