@smartnet360/svelte-components 0.0.135 → 0.0.136
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/core/index.d.ts +1 -2
- package/dist/core/index.js +2 -5
- package/package.json +1 -1
- package/dist/core/CellTable/CellHistoryDemo.svelte +0 -240
- package/dist/core/CellTable/CellHistoryDemo.svelte.d.ts +0 -3
- package/dist/core/CellTable/CellTable.svelte +0 -597
- package/dist/core/CellTable/CellTable.svelte.d.ts +0 -40
- package/dist/core/CellTable/CellTableDemo.svelte +0 -336
- package/dist/core/CellTable/CellTableDemo.svelte.d.ts +0 -3
- package/dist/core/CellTable/CellTablePanel.svelte +0 -833
- package/dist/core/CellTable/CellTablePanel.svelte.d.ts +0 -84
- package/dist/core/CellTable/CellTableToolbar.svelte +0 -323
- package/dist/core/CellTable/CellTableToolbar.svelte.d.ts +0 -59
- package/dist/core/CellTable/ColumnPicker.svelte +0 -214
- package/dist/core/CellTable/ColumnPicker.svelte.d.ts +0 -26
- package/dist/core/CellTable/column-config.d.ts +0 -139
- package/dist/core/CellTable/column-config.js +0 -872
- package/dist/core/CellTable/history-api-helper.d.ts +0 -79
- package/dist/core/CellTable/history-api-helper.js +0 -83
- package/dist/core/CellTable/index.d.ts +0 -15
- package/dist/core/CellTable/index.js +0 -20
- package/dist/core/CellTable/types.d.ts +0 -172
- package/dist/core/CellTable/types.js +0 -6
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CellTable - Column Configuration
|
|
3
|
-
*
|
|
4
|
-
* Defines column definitions, presets, and formatters for the cell table
|
|
5
|
-
*/
|
|
6
|
-
import type { ColumnDefinition, CellComponent } from 'tabulator-tables';
|
|
7
|
-
import type { CellTableColumn, ColumnPreset, TechColorMap, StatusColorMap, ColumnGroups } from './types';
|
|
8
|
-
/**
|
|
9
|
-
* Default technology colors (Bootstrap-aligned)
|
|
10
|
-
* 2G: Yellow, 4G: Purple, 5G: Green
|
|
11
|
-
*/
|
|
12
|
-
export declare const DEFAULT_TECH_COLORS: TechColorMap;
|
|
13
|
-
/**
|
|
14
|
-
* Default status colors (Bootstrap-aligned)
|
|
15
|
-
*/
|
|
16
|
-
export declare const DEFAULT_STATUS_COLORS: StatusColorMap;
|
|
17
|
-
/**
|
|
18
|
-
* Frequency band colors
|
|
19
|
-
* GSM: Yellow shades (darker = higher freq)
|
|
20
|
-
* LTE: Purple shades (darker = higher freq)
|
|
21
|
-
* 5G: Green shades (stronger = higher freq)
|
|
22
|
-
*/
|
|
23
|
-
export declare const FBAND_COLORS: Record<string, string>;
|
|
24
|
-
/**
|
|
25
|
-
* Column groups for different presets
|
|
26
|
-
*/
|
|
27
|
-
export declare const COLUMN_GROUPS: ColumnGroups;
|
|
28
|
-
/**
|
|
29
|
-
* Create a technology badge formatter
|
|
30
|
-
*/
|
|
31
|
-
export declare function createTechFormatter(colors?: TechColorMap): (cell: CellComponent) => string;
|
|
32
|
-
/**
|
|
33
|
-
* Create a status badge formatter
|
|
34
|
-
*/
|
|
35
|
-
export declare function createStatusFormatter(colors?: StatusColorMap): (cell: CellComponent) => string;
|
|
36
|
-
/**
|
|
37
|
-
* Create an fband badge formatter
|
|
38
|
-
*/
|
|
39
|
-
export declare function createFbandFormatter(): (cell: CellComponent) => string;
|
|
40
|
-
/**
|
|
41
|
-
* Number formatter with fixed decimals
|
|
42
|
-
*/
|
|
43
|
-
export declare function numberFormatter(decimals?: number): (cell: CellComponent) => string;
|
|
44
|
-
/**
|
|
45
|
-
* Coordinate formatter (lat/lng)
|
|
46
|
-
*/
|
|
47
|
-
export declare function coordinateFormatter(cell: CellComponent): string;
|
|
48
|
-
/**
|
|
49
|
-
* Azimuth formatter with degree symbol
|
|
50
|
-
*/
|
|
51
|
-
export declare function azimuthFormatter(cell: CellComponent): string;
|
|
52
|
-
/**
|
|
53
|
-
* Height formatter with meter unit
|
|
54
|
-
*/
|
|
55
|
-
export declare function heightFormatter(cell: CellComponent): string;
|
|
56
|
-
/**
|
|
57
|
-
* Comparison formatter for Atoll vs Network values
|
|
58
|
-
* Shows both values side by side with color coding:
|
|
59
|
-
* - Green: values match exactly
|
|
60
|
-
* - Red: values don't match
|
|
61
|
-
* - Gray: one or both values missing
|
|
62
|
-
*/
|
|
63
|
-
export declare function createCompareFormatter(atollField: string, nwtField: string): (cell: CellComponent) => string;
|
|
64
|
-
/**
|
|
65
|
-
* Create a history change formatter for showing current vs previous values
|
|
66
|
-
* Highlights changes in yellow/amber, unchanged values in muted style
|
|
67
|
-
*
|
|
68
|
-
* @param currentField - Field name for current value
|
|
69
|
-
* @param prevField - Field name for previous value
|
|
70
|
-
*/
|
|
71
|
-
export declare function createHistoryChangeFormatter(currentField: string, prevField: string): (cell: CellComponent) => string;
|
|
72
|
-
/**
|
|
73
|
-
* Format ISO date string to YYYY.MM.DD format for history display
|
|
74
|
-
*/
|
|
75
|
-
export declare function historyDateFormatter(cell: CellComponent): string;
|
|
76
|
-
/**
|
|
77
|
-
* Creates a sparkline SVG formatter for KPI time-series data
|
|
78
|
-
* Renders a mini line chart showing trend over time
|
|
79
|
-
*
|
|
80
|
-
* @param options Configuration for the sparkline
|
|
81
|
-
*/
|
|
82
|
-
export interface SparklineOptions {
|
|
83
|
-
width?: number;
|
|
84
|
-
height?: number;
|
|
85
|
-
lineColor?: string;
|
|
86
|
-
fillColor?: string;
|
|
87
|
-
showDots?: boolean;
|
|
88
|
-
showLastValue?: boolean;
|
|
89
|
-
unit?: string;
|
|
90
|
-
decimals?: number;
|
|
91
|
-
}
|
|
92
|
-
export declare function createSparklineFormatter(options?: SparklineOptions): (cell: CellComponent) => string;
|
|
93
|
-
/**
|
|
94
|
-
* Custom sorter for fband - extracts numeric portion and sorts numerically
|
|
95
|
-
* Examples: LTE700 → 700, GSM900 → 900, LTE1800 → 1800, 5G-3500 → 3500
|
|
96
|
-
*/
|
|
97
|
-
export declare function fbandSorter(a: string, b: string): number;
|
|
98
|
-
/**
|
|
99
|
-
* Custom sorter for cellName - sorts by the 5th character (sector digit)
|
|
100
|
-
* Example: 10001 → '1', 10002 → '2', 10003 → '3'
|
|
101
|
-
*/
|
|
102
|
-
export declare function cellNameSectorSorter(a: string, b: string): number;
|
|
103
|
-
/**
|
|
104
|
-
* Combined multi-level sorter for cell data
|
|
105
|
-
* Sort order: tech (asc) → fband by numeric value (asc) → cellName by 5th digit (asc)
|
|
106
|
-
*/
|
|
107
|
-
export declare function cellDataSorter<T extends {
|
|
108
|
-
tech?: string;
|
|
109
|
-
fband?: string;
|
|
110
|
-
cellName?: string;
|
|
111
|
-
}>(a: T, b: T): number;
|
|
112
|
-
/**
|
|
113
|
-
* Get all column definitions
|
|
114
|
-
*/
|
|
115
|
-
export declare function getAllColumns(techColors?: TechColorMap, statusColors?: StatusColorMap, headerFilters?: boolean): CellTableColumn[];
|
|
116
|
-
/**
|
|
117
|
-
* Get columns for a specific preset
|
|
118
|
-
*/
|
|
119
|
-
export declare function getColumnsForPreset(preset: ColumnPreset, techColors?: TechColorMap, statusColors?: StatusColorMap, headerFilters?: boolean): ColumnDefinition[];
|
|
120
|
-
/**
|
|
121
|
-
* Get group header formatter for a specific field
|
|
122
|
-
*/
|
|
123
|
-
export declare function getGroupHeaderFormatter(groupField: string): (value: unknown, count: number) => string;
|
|
124
|
-
/**
|
|
125
|
-
* Column metadata for the column picker
|
|
126
|
-
*/
|
|
127
|
-
export interface ColumnMeta {
|
|
128
|
-
field: string;
|
|
129
|
-
title: string;
|
|
130
|
-
group: string;
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* Get column metadata for the column picker UI
|
|
134
|
-
*/
|
|
135
|
-
export declare function getColumnMetadata(): ColumnMeta[];
|
|
136
|
-
/**
|
|
137
|
-
* Get default visible columns for a preset
|
|
138
|
-
*/
|
|
139
|
-
export declare function getPresetVisibleFields(preset: ColumnPreset): string[];
|