@texturehq/edges 1.15.6 → 1.17.0
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/{server-DfqlfwZg.d.cts → colors-wUwMI6WH.d.cts} +197 -7
- package/dist/{server-DfqlfwZg.d.ts → colors-wUwMI6WH.d.ts} +197 -7
- package/dist/components.manifest.json +25 -3
- package/dist/generated/tailwind-tokens-dark.css +1 -0
- package/dist/generated/tailwind-tokens-light.css +1 -0
- package/dist/index.cjs +8 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +191 -5
- package/dist/index.d.ts +191 -5
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/dist/server.cjs +5 -5
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +50 -5
- package/dist/server.d.ts +50 -5
- package/dist/server.js +5 -5
- package/dist/server.js.map +1 -1
- package/dist/styles.css +97 -12
- package/dist/utilities.manifest.json +2 -2
- package/package.json +2 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as d3_scale from 'd3-scale';
|
|
2
|
+
import { ScaleTime, ScaleLinear } from 'd3-scale';
|
|
2
3
|
import * as React$1 from 'react';
|
|
3
4
|
import React__default, { ReactNode } from 'react';
|
|
4
|
-
import * as
|
|
5
|
-
import { IconProps as IconProps$1 } from '@phosphor-icons/react';
|
|
5
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import { DateValue, DateFieldProps as DateFieldProps$1, ValidationResult, MeterProps as MeterProps$1 } from 'react-aria-components';
|
|
7
7
|
import * as react_map_gl from 'react-map-gl';
|
|
8
8
|
import { ViewState, MapRef } from 'react-map-gl';
|
|
9
|
-
import * as
|
|
10
|
-
import {
|
|
9
|
+
import * as PhosphorIcons from '@phosphor-icons/react';
|
|
10
|
+
import { IconProps as IconProps$1 } from '@phosphor-icons/react';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Core types for the formatting system
|
|
@@ -199,15 +199,23 @@ interface TooltipData {
|
|
|
199
199
|
x: number;
|
|
200
200
|
y: number;
|
|
201
201
|
position: "left" | "right";
|
|
202
|
+
/** Whether this tooltip is for an event marker (vs data point) */
|
|
203
|
+
isEvent?: boolean;
|
|
204
|
+
/** Optional event metadata to display */
|
|
205
|
+
eventMetadata?: Record<string, string | number>;
|
|
202
206
|
}
|
|
203
207
|
interface TooltipSeries {
|
|
204
208
|
label: string;
|
|
205
209
|
value: number;
|
|
206
210
|
color: string;
|
|
207
|
-
type?: "area" | "line" | "bar";
|
|
211
|
+
type?: "area" | "line" | "bar" | "event";
|
|
208
212
|
category?: string;
|
|
209
213
|
categoryColor?: string;
|
|
210
214
|
}
|
|
215
|
+
interface SeriesMetadata {
|
|
216
|
+
label: string;
|
|
217
|
+
color: string;
|
|
218
|
+
}
|
|
211
219
|
interface ChartContextType {
|
|
212
220
|
xScale: ScaleTime<number, number>;
|
|
213
221
|
yScale: ScaleLinear<number, number>;
|
|
@@ -223,6 +231,16 @@ interface ChartContextType {
|
|
|
223
231
|
show: (data: TooltipData) => void;
|
|
224
232
|
hide: () => void;
|
|
225
233
|
};
|
|
234
|
+
/** Series datasets for accessing underlying data */
|
|
235
|
+
datasets?: BaseDataPoint[][];
|
|
236
|
+
/** Series metadata for labels and colors */
|
|
237
|
+
seriesMetadata?: SeriesMetadata[];
|
|
238
|
+
/** Series types for proper tooltip rendering */
|
|
239
|
+
seriesTypes?: ("area" | "line" | "bar")[];
|
|
240
|
+
/** Category colors for bar charts */
|
|
241
|
+
categoryColors?: Record<string, string>;
|
|
242
|
+
/** Category labels for translating category values */
|
|
243
|
+
categoryLabels?: Record<string, string>;
|
|
226
244
|
}
|
|
227
245
|
declare const ChartContext: React$1.Context<ChartContextType | null>;
|
|
228
246
|
|
|
@@ -1684,6 +1702,178 @@ interface TextLinkProps {
|
|
|
1684
1702
|
*/
|
|
1685
1703
|
declare const TextLink: ({ href, children, className, external, title, variant, onClick, asButton, onPress, showArrow, }: TextLinkProps) => react_jsx_runtime.JSX.Element;
|
|
1686
1704
|
|
|
1705
|
+
/**
|
|
1706
|
+
* Entity Configuration
|
|
1707
|
+
*
|
|
1708
|
+
* Centralized configuration for all platform entities including
|
|
1709
|
+
* display properties, icons, colors, and labels.
|
|
1710
|
+
*
|
|
1711
|
+
* Use this for consistent entity representation across the application:
|
|
1712
|
+
* - Navigation
|
|
1713
|
+
* - Page headers
|
|
1714
|
+
* - Breadcrumbs
|
|
1715
|
+
* - Empty states
|
|
1716
|
+
* - Related entity links
|
|
1717
|
+
*
|
|
1718
|
+
* @example
|
|
1719
|
+
* ```tsx
|
|
1720
|
+
* import { ENTITY_CONFIG } from "@texturehq/edges/config/entities";
|
|
1721
|
+
*
|
|
1722
|
+
* const siteConfig = ENTITY_CONFIG.site;
|
|
1723
|
+
* // { icon: "Buildings", label: { singular: "Site", plural: "Sites" }, ... }
|
|
1724
|
+
* ```
|
|
1725
|
+
*/
|
|
1726
|
+
|
|
1727
|
+
interface EntityConfig {
|
|
1728
|
+
/** Phosphor icon name */
|
|
1729
|
+
icon: IconName;
|
|
1730
|
+
/** Display labels */
|
|
1731
|
+
label: {
|
|
1732
|
+
singular: string;
|
|
1733
|
+
plural: string;
|
|
1734
|
+
};
|
|
1735
|
+
/** Optional description */
|
|
1736
|
+
description?: string;
|
|
1737
|
+
}
|
|
1738
|
+
declare const ENTITY_CONFIG: {
|
|
1739
|
+
readonly site: {
|
|
1740
|
+
readonly icon: "Buildings";
|
|
1741
|
+
readonly label: {
|
|
1742
|
+
readonly singular: "Site";
|
|
1743
|
+
readonly plural: "Sites";
|
|
1744
|
+
};
|
|
1745
|
+
readonly description: "Physical locations with energy systems";
|
|
1746
|
+
};
|
|
1747
|
+
readonly device: {
|
|
1748
|
+
readonly icon: "ShareNetwork";
|
|
1749
|
+
readonly label: {
|
|
1750
|
+
readonly singular: "Device";
|
|
1751
|
+
readonly plural: "Devices";
|
|
1752
|
+
};
|
|
1753
|
+
readonly description: "Connected energy devices";
|
|
1754
|
+
};
|
|
1755
|
+
readonly customer: {
|
|
1756
|
+
readonly icon: "Users";
|
|
1757
|
+
readonly label: {
|
|
1758
|
+
readonly singular: "Customer";
|
|
1759
|
+
readonly plural: "Customers";
|
|
1760
|
+
};
|
|
1761
|
+
readonly description: "End customers and site owners";
|
|
1762
|
+
};
|
|
1763
|
+
readonly contact: {
|
|
1764
|
+
readonly icon: "Users";
|
|
1765
|
+
readonly label: {
|
|
1766
|
+
readonly singular: "Contact";
|
|
1767
|
+
readonly plural: "Contacts";
|
|
1768
|
+
};
|
|
1769
|
+
readonly description: "Contact persons";
|
|
1770
|
+
};
|
|
1771
|
+
readonly program: {
|
|
1772
|
+
readonly icon: "ClipboardText";
|
|
1773
|
+
readonly label: {
|
|
1774
|
+
readonly singular: "Program";
|
|
1775
|
+
readonly plural: "Programs";
|
|
1776
|
+
};
|
|
1777
|
+
readonly description: "Demand response and VPP programs";
|
|
1778
|
+
};
|
|
1779
|
+
readonly workflow: {
|
|
1780
|
+
readonly icon: "FlowArrow";
|
|
1781
|
+
readonly label: {
|
|
1782
|
+
readonly singular: "Workflow";
|
|
1783
|
+
readonly plural: "Workflows";
|
|
1784
|
+
};
|
|
1785
|
+
readonly description: "Automated workflows and rules";
|
|
1786
|
+
};
|
|
1787
|
+
readonly collection: {
|
|
1788
|
+
readonly icon: "Stack";
|
|
1789
|
+
readonly label: {
|
|
1790
|
+
readonly singular: "Collection";
|
|
1791
|
+
readonly plural: "Collections";
|
|
1792
|
+
};
|
|
1793
|
+
readonly description: "Grouped entities";
|
|
1794
|
+
};
|
|
1795
|
+
readonly board: {
|
|
1796
|
+
readonly icon: "SquaresFour";
|
|
1797
|
+
readonly label: {
|
|
1798
|
+
readonly singular: "Board";
|
|
1799
|
+
readonly plural: "Boards";
|
|
1800
|
+
};
|
|
1801
|
+
readonly description: "Dashboard and monitoring boards";
|
|
1802
|
+
};
|
|
1803
|
+
readonly report: {
|
|
1804
|
+
readonly icon: "ChartLine";
|
|
1805
|
+
readonly label: {
|
|
1806
|
+
readonly singular: "Report";
|
|
1807
|
+
readonly plural: "Reports";
|
|
1808
|
+
};
|
|
1809
|
+
readonly description: "Analytics and reports";
|
|
1810
|
+
};
|
|
1811
|
+
readonly event: {
|
|
1812
|
+
readonly icon: "ClockCounterClockwise";
|
|
1813
|
+
readonly label: {
|
|
1814
|
+
readonly singular: "Event";
|
|
1815
|
+
readonly plural: "Events";
|
|
1816
|
+
};
|
|
1817
|
+
readonly description: "System events and activity";
|
|
1818
|
+
};
|
|
1819
|
+
readonly alert: {
|
|
1820
|
+
readonly icon: "Bell";
|
|
1821
|
+
readonly label: {
|
|
1822
|
+
readonly singular: "Alert";
|
|
1823
|
+
readonly plural: "Alerts";
|
|
1824
|
+
};
|
|
1825
|
+
readonly description: "Notifications and alerts";
|
|
1826
|
+
};
|
|
1827
|
+
readonly command: {
|
|
1828
|
+
readonly icon: "Play";
|
|
1829
|
+
readonly label: {
|
|
1830
|
+
readonly singular: "Command";
|
|
1831
|
+
readonly plural: "Commands";
|
|
1832
|
+
};
|
|
1833
|
+
readonly description: "Device commands and control";
|
|
1834
|
+
};
|
|
1835
|
+
};
|
|
1836
|
+
type EntityType = keyof typeof ENTITY_CONFIG;
|
|
1837
|
+
/**
|
|
1838
|
+
* Get entity configuration by type
|
|
1839
|
+
*
|
|
1840
|
+
* @param entityType - The entity type key
|
|
1841
|
+
* @returns Entity configuration object
|
|
1842
|
+
*
|
|
1843
|
+
* @example
|
|
1844
|
+
* ```tsx
|
|
1845
|
+
* const config = getEntityConfig("site");
|
|
1846
|
+
* // { icon: "Buildings", label: { singular: "Site", plural: "Sites" }, ... }
|
|
1847
|
+
* ```
|
|
1848
|
+
*/
|
|
1849
|
+
declare function getEntityConfig(entityType: EntityType): EntityConfig;
|
|
1850
|
+
/**
|
|
1851
|
+
* Get entity icon name
|
|
1852
|
+
*
|
|
1853
|
+
* @param entityType - The entity type key
|
|
1854
|
+
* @returns Phosphor icon name
|
|
1855
|
+
*
|
|
1856
|
+
* @example
|
|
1857
|
+
* ```tsx
|
|
1858
|
+
* const iconName = getEntityIcon("site"); // "Buildings"
|
|
1859
|
+
* ```
|
|
1860
|
+
*/
|
|
1861
|
+
declare function getEntityIcon(entityType: EntityType): IconName;
|
|
1862
|
+
/**
|
|
1863
|
+
* Get entity label (singular or plural)
|
|
1864
|
+
*
|
|
1865
|
+
* @param entityType - The entity type key
|
|
1866
|
+
* @param plural - Whether to return plural form
|
|
1867
|
+
* @returns Entity label string
|
|
1868
|
+
*
|
|
1869
|
+
* @example
|
|
1870
|
+
* ```tsx
|
|
1871
|
+
* getEntityLabel("site", false); // "Site"
|
|
1872
|
+
* getEntityLabel("site", true); // "Sites"
|
|
1873
|
+
* ```
|
|
1874
|
+
*/
|
|
1875
|
+
declare function getEntityLabel(entityType: EntityType, plural?: boolean): string;
|
|
1876
|
+
|
|
1687
1877
|
/**
|
|
1688
1878
|
* Resolves a CSS variable to its computed color value
|
|
1689
1879
|
* Supports multiple formats and automatically adds the color- prefix if needed
|
|
@@ -1727,4 +1917,4 @@ declare const isLightColor: (color: string) => boolean;
|
|
|
1727
1917
|
*/
|
|
1728
1918
|
declare const getContrastingTextColor: (backgroundColor: string) => string;
|
|
1729
1919
|
|
|
1730
|
-
export { type ColorSpec as $, type ActionItem as A, type BooleanFormat as B, type CurrentFormat as C, type DateFormat as D, type EnergyFormat as E, type FieldValue as F, type GridState as G, Badge as H, Icon as I, type CodeEditorProps as J, type CodeLanguage as K, type LayerSpec as L, type CodeTheme as M, type NumberFormat as N, CodeEditor as O, type PhoneFormat as P, type DateFieldProps as Q, type ResistanceFormat as R, DateField as S, type TemperatureUnitString as T, type FileUploadProps as U, type VoltageFormat as V, FileUpload as W, Heading as X, type YFormatType as Y, Loader as Z, Logo as _, type FormattedValue as a, type InteractiveMapProps as a0, type LayerFeature as a1, type LayerStyle as a2, type MapPoint as a3, type RenderType as a4, type StaticMapProps as a5, type ZoomStops as a6, InteractiveMap as a7, MAP_TYPES as a8, StaticMap as a9,
|
|
1920
|
+
export { type ColorSpec as $, type ActionItem as A, type BooleanFormat as B, type CurrentFormat as C, type DateFormat as D, type EnergyFormat as E, type FieldValue as F, type GridState as G, Badge as H, Icon as I, type CodeEditorProps as J, type CodeLanguage as K, type LayerSpec as L, type CodeTheme as M, type NumberFormat as N, CodeEditor as O, type PhoneFormat as P, type DateFieldProps as Q, type ResistanceFormat as R, DateField as S, type TemperatureUnitString as T, type FileUploadProps as U, type VoltageFormat as V, FileUpload as W, Heading as X, type YFormatType as Y, Loader as Z, Logo as _, type FormattedValue as a, activeDeviceStates as a$, type InteractiveMapProps as a0, type LayerFeature as a1, type LayerStyle as a2, type MapPoint as a3, type RenderType as a4, type StaticMapProps as a5, type ZoomStops as a6, InteractiveMap as a7, MAP_TYPES as a8, StaticMap as a9, getYFormatSettings as aA, type YFormatSettings as aB, clearColorCache as aC, createCategoryColorMap as aD, getContrastingTextColor as aE, getDefaultChartColor as aF, getDefaultColors as aG, getResolvedColor as aH, getThemeCategoricalColors as aI, isLightColor as aJ, type ComponentFormatOptions as aK, formatComponentValue as aL, useComponentFormatter as aM, type BaseFormat as aN, type TextTransform as aO, type TextTruncatePosition as aP, type PercentageFormat as aQ, type DateFormatStyle as aR, type EnergyUnit as aS, type PowerUnit as aT, type VoltageUnit as aU, type CurrentUnit as aV, type ResistanceUnit as aW, type DistanceUnit as aX, type CustomFormat as aY, type MetricFormat as aZ, deviceStateMetricFormats as a_, type MeterProps as aa, Meter as ab, type RichTextEditorProps as ac, RichTextEditor as ad, type SegmentedControlProps as ae, type SegmentOption as af, SegmentedControl as ag, type SideNavItem as ah, type SideNavProps as ai, SideNav as aj, TextLink as ak, type TopNavProps as al, TopNav as am, type EntityConfig as an, type EntityType as ao, ENTITY_CONFIG as ap, getEntityConfig as aq, getEntityIcon as ar, getEntityLabel as as, type TooltipSeries as at, ChartContext as au, useChartContext as av, type ChartMargin as aw, createXScale as ax, createYScale as ay, defaultMargin as az, type DistanceFormat as b, deviceStateLabels as b0, isActiveState as b1, getDeviceStateLabel as b2, gridStateLabels as b3, getGridStateLabel as b4, type CurrencyFormat as c, type PowerFormat as d, type FormatterFunction as e, type TemperatureUnit as f, type TemperatureFormat as g, type TextFormat as h, type FieldFormat as i, type BaseDataPoint as j, type BadgeProps as k, type TooltipData as l, type IconName as m, type DeviceState as n, type ComponentFormatter as o, type CustomPinsSpec as p, type GeoJsonLayerSpec as q, type RasterLayerSpec as r, type VectorLayerSpec as s, type ClusteredVectorLayerSpec as t, type ActionMenuProps as u, ActionMenu as v, type AppShellProps as w, AppShell as x, type AvatarProps as y, Avatar as z };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as d3_scale from 'd3-scale';
|
|
2
|
+
import { ScaleTime, ScaleLinear } from 'd3-scale';
|
|
2
3
|
import * as React$1 from 'react';
|
|
3
4
|
import React__default, { ReactNode } from 'react';
|
|
4
|
-
import * as
|
|
5
|
-
import { IconProps as IconProps$1 } from '@phosphor-icons/react';
|
|
5
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import { DateValue, DateFieldProps as DateFieldProps$1, ValidationResult, MeterProps as MeterProps$1 } from 'react-aria-components';
|
|
7
7
|
import * as react_map_gl from 'react-map-gl';
|
|
8
8
|
import { ViewState, MapRef } from 'react-map-gl';
|
|
9
|
-
import * as
|
|
10
|
-
import {
|
|
9
|
+
import * as PhosphorIcons from '@phosphor-icons/react';
|
|
10
|
+
import { IconProps as IconProps$1 } from '@phosphor-icons/react';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Core types for the formatting system
|
|
@@ -199,15 +199,23 @@ interface TooltipData {
|
|
|
199
199
|
x: number;
|
|
200
200
|
y: number;
|
|
201
201
|
position: "left" | "right";
|
|
202
|
+
/** Whether this tooltip is for an event marker (vs data point) */
|
|
203
|
+
isEvent?: boolean;
|
|
204
|
+
/** Optional event metadata to display */
|
|
205
|
+
eventMetadata?: Record<string, string | number>;
|
|
202
206
|
}
|
|
203
207
|
interface TooltipSeries {
|
|
204
208
|
label: string;
|
|
205
209
|
value: number;
|
|
206
210
|
color: string;
|
|
207
|
-
type?: "area" | "line" | "bar";
|
|
211
|
+
type?: "area" | "line" | "bar" | "event";
|
|
208
212
|
category?: string;
|
|
209
213
|
categoryColor?: string;
|
|
210
214
|
}
|
|
215
|
+
interface SeriesMetadata {
|
|
216
|
+
label: string;
|
|
217
|
+
color: string;
|
|
218
|
+
}
|
|
211
219
|
interface ChartContextType {
|
|
212
220
|
xScale: ScaleTime<number, number>;
|
|
213
221
|
yScale: ScaleLinear<number, number>;
|
|
@@ -223,6 +231,16 @@ interface ChartContextType {
|
|
|
223
231
|
show: (data: TooltipData) => void;
|
|
224
232
|
hide: () => void;
|
|
225
233
|
};
|
|
234
|
+
/** Series datasets for accessing underlying data */
|
|
235
|
+
datasets?: BaseDataPoint[][];
|
|
236
|
+
/** Series metadata for labels and colors */
|
|
237
|
+
seriesMetadata?: SeriesMetadata[];
|
|
238
|
+
/** Series types for proper tooltip rendering */
|
|
239
|
+
seriesTypes?: ("area" | "line" | "bar")[];
|
|
240
|
+
/** Category colors for bar charts */
|
|
241
|
+
categoryColors?: Record<string, string>;
|
|
242
|
+
/** Category labels for translating category values */
|
|
243
|
+
categoryLabels?: Record<string, string>;
|
|
226
244
|
}
|
|
227
245
|
declare const ChartContext: React$1.Context<ChartContextType | null>;
|
|
228
246
|
|
|
@@ -1684,6 +1702,178 @@ interface TextLinkProps {
|
|
|
1684
1702
|
*/
|
|
1685
1703
|
declare const TextLink: ({ href, children, className, external, title, variant, onClick, asButton, onPress, showArrow, }: TextLinkProps) => react_jsx_runtime.JSX.Element;
|
|
1686
1704
|
|
|
1705
|
+
/**
|
|
1706
|
+
* Entity Configuration
|
|
1707
|
+
*
|
|
1708
|
+
* Centralized configuration for all platform entities including
|
|
1709
|
+
* display properties, icons, colors, and labels.
|
|
1710
|
+
*
|
|
1711
|
+
* Use this for consistent entity representation across the application:
|
|
1712
|
+
* - Navigation
|
|
1713
|
+
* - Page headers
|
|
1714
|
+
* - Breadcrumbs
|
|
1715
|
+
* - Empty states
|
|
1716
|
+
* - Related entity links
|
|
1717
|
+
*
|
|
1718
|
+
* @example
|
|
1719
|
+
* ```tsx
|
|
1720
|
+
* import { ENTITY_CONFIG } from "@texturehq/edges/config/entities";
|
|
1721
|
+
*
|
|
1722
|
+
* const siteConfig = ENTITY_CONFIG.site;
|
|
1723
|
+
* // { icon: "Buildings", label: { singular: "Site", plural: "Sites" }, ... }
|
|
1724
|
+
* ```
|
|
1725
|
+
*/
|
|
1726
|
+
|
|
1727
|
+
interface EntityConfig {
|
|
1728
|
+
/** Phosphor icon name */
|
|
1729
|
+
icon: IconName;
|
|
1730
|
+
/** Display labels */
|
|
1731
|
+
label: {
|
|
1732
|
+
singular: string;
|
|
1733
|
+
plural: string;
|
|
1734
|
+
};
|
|
1735
|
+
/** Optional description */
|
|
1736
|
+
description?: string;
|
|
1737
|
+
}
|
|
1738
|
+
declare const ENTITY_CONFIG: {
|
|
1739
|
+
readonly site: {
|
|
1740
|
+
readonly icon: "Buildings";
|
|
1741
|
+
readonly label: {
|
|
1742
|
+
readonly singular: "Site";
|
|
1743
|
+
readonly plural: "Sites";
|
|
1744
|
+
};
|
|
1745
|
+
readonly description: "Physical locations with energy systems";
|
|
1746
|
+
};
|
|
1747
|
+
readonly device: {
|
|
1748
|
+
readonly icon: "ShareNetwork";
|
|
1749
|
+
readonly label: {
|
|
1750
|
+
readonly singular: "Device";
|
|
1751
|
+
readonly plural: "Devices";
|
|
1752
|
+
};
|
|
1753
|
+
readonly description: "Connected energy devices";
|
|
1754
|
+
};
|
|
1755
|
+
readonly customer: {
|
|
1756
|
+
readonly icon: "Users";
|
|
1757
|
+
readonly label: {
|
|
1758
|
+
readonly singular: "Customer";
|
|
1759
|
+
readonly plural: "Customers";
|
|
1760
|
+
};
|
|
1761
|
+
readonly description: "End customers and site owners";
|
|
1762
|
+
};
|
|
1763
|
+
readonly contact: {
|
|
1764
|
+
readonly icon: "Users";
|
|
1765
|
+
readonly label: {
|
|
1766
|
+
readonly singular: "Contact";
|
|
1767
|
+
readonly plural: "Contacts";
|
|
1768
|
+
};
|
|
1769
|
+
readonly description: "Contact persons";
|
|
1770
|
+
};
|
|
1771
|
+
readonly program: {
|
|
1772
|
+
readonly icon: "ClipboardText";
|
|
1773
|
+
readonly label: {
|
|
1774
|
+
readonly singular: "Program";
|
|
1775
|
+
readonly plural: "Programs";
|
|
1776
|
+
};
|
|
1777
|
+
readonly description: "Demand response and VPP programs";
|
|
1778
|
+
};
|
|
1779
|
+
readonly workflow: {
|
|
1780
|
+
readonly icon: "FlowArrow";
|
|
1781
|
+
readonly label: {
|
|
1782
|
+
readonly singular: "Workflow";
|
|
1783
|
+
readonly plural: "Workflows";
|
|
1784
|
+
};
|
|
1785
|
+
readonly description: "Automated workflows and rules";
|
|
1786
|
+
};
|
|
1787
|
+
readonly collection: {
|
|
1788
|
+
readonly icon: "Stack";
|
|
1789
|
+
readonly label: {
|
|
1790
|
+
readonly singular: "Collection";
|
|
1791
|
+
readonly plural: "Collections";
|
|
1792
|
+
};
|
|
1793
|
+
readonly description: "Grouped entities";
|
|
1794
|
+
};
|
|
1795
|
+
readonly board: {
|
|
1796
|
+
readonly icon: "SquaresFour";
|
|
1797
|
+
readonly label: {
|
|
1798
|
+
readonly singular: "Board";
|
|
1799
|
+
readonly plural: "Boards";
|
|
1800
|
+
};
|
|
1801
|
+
readonly description: "Dashboard and monitoring boards";
|
|
1802
|
+
};
|
|
1803
|
+
readonly report: {
|
|
1804
|
+
readonly icon: "ChartLine";
|
|
1805
|
+
readonly label: {
|
|
1806
|
+
readonly singular: "Report";
|
|
1807
|
+
readonly plural: "Reports";
|
|
1808
|
+
};
|
|
1809
|
+
readonly description: "Analytics and reports";
|
|
1810
|
+
};
|
|
1811
|
+
readonly event: {
|
|
1812
|
+
readonly icon: "ClockCounterClockwise";
|
|
1813
|
+
readonly label: {
|
|
1814
|
+
readonly singular: "Event";
|
|
1815
|
+
readonly plural: "Events";
|
|
1816
|
+
};
|
|
1817
|
+
readonly description: "System events and activity";
|
|
1818
|
+
};
|
|
1819
|
+
readonly alert: {
|
|
1820
|
+
readonly icon: "Bell";
|
|
1821
|
+
readonly label: {
|
|
1822
|
+
readonly singular: "Alert";
|
|
1823
|
+
readonly plural: "Alerts";
|
|
1824
|
+
};
|
|
1825
|
+
readonly description: "Notifications and alerts";
|
|
1826
|
+
};
|
|
1827
|
+
readonly command: {
|
|
1828
|
+
readonly icon: "Play";
|
|
1829
|
+
readonly label: {
|
|
1830
|
+
readonly singular: "Command";
|
|
1831
|
+
readonly plural: "Commands";
|
|
1832
|
+
};
|
|
1833
|
+
readonly description: "Device commands and control";
|
|
1834
|
+
};
|
|
1835
|
+
};
|
|
1836
|
+
type EntityType = keyof typeof ENTITY_CONFIG;
|
|
1837
|
+
/**
|
|
1838
|
+
* Get entity configuration by type
|
|
1839
|
+
*
|
|
1840
|
+
* @param entityType - The entity type key
|
|
1841
|
+
* @returns Entity configuration object
|
|
1842
|
+
*
|
|
1843
|
+
* @example
|
|
1844
|
+
* ```tsx
|
|
1845
|
+
* const config = getEntityConfig("site");
|
|
1846
|
+
* // { icon: "Buildings", label: { singular: "Site", plural: "Sites" }, ... }
|
|
1847
|
+
* ```
|
|
1848
|
+
*/
|
|
1849
|
+
declare function getEntityConfig(entityType: EntityType): EntityConfig;
|
|
1850
|
+
/**
|
|
1851
|
+
* Get entity icon name
|
|
1852
|
+
*
|
|
1853
|
+
* @param entityType - The entity type key
|
|
1854
|
+
* @returns Phosphor icon name
|
|
1855
|
+
*
|
|
1856
|
+
* @example
|
|
1857
|
+
* ```tsx
|
|
1858
|
+
* const iconName = getEntityIcon("site"); // "Buildings"
|
|
1859
|
+
* ```
|
|
1860
|
+
*/
|
|
1861
|
+
declare function getEntityIcon(entityType: EntityType): IconName;
|
|
1862
|
+
/**
|
|
1863
|
+
* Get entity label (singular or plural)
|
|
1864
|
+
*
|
|
1865
|
+
* @param entityType - The entity type key
|
|
1866
|
+
* @param plural - Whether to return plural form
|
|
1867
|
+
* @returns Entity label string
|
|
1868
|
+
*
|
|
1869
|
+
* @example
|
|
1870
|
+
* ```tsx
|
|
1871
|
+
* getEntityLabel("site", false); // "Site"
|
|
1872
|
+
* getEntityLabel("site", true); // "Sites"
|
|
1873
|
+
* ```
|
|
1874
|
+
*/
|
|
1875
|
+
declare function getEntityLabel(entityType: EntityType, plural?: boolean): string;
|
|
1876
|
+
|
|
1687
1877
|
/**
|
|
1688
1878
|
* Resolves a CSS variable to its computed color value
|
|
1689
1879
|
* Supports multiple formats and automatically adds the color- prefix if needed
|
|
@@ -1727,4 +1917,4 @@ declare const isLightColor: (color: string) => boolean;
|
|
|
1727
1917
|
*/
|
|
1728
1918
|
declare const getContrastingTextColor: (backgroundColor: string) => string;
|
|
1729
1919
|
|
|
1730
|
-
export { type ColorSpec as $, type ActionItem as A, type BooleanFormat as B, type CurrentFormat as C, type DateFormat as D, type EnergyFormat as E, type FieldValue as F, type GridState as G, Badge as H, Icon as I, type CodeEditorProps as J, type CodeLanguage as K, type LayerSpec as L, type CodeTheme as M, type NumberFormat as N, CodeEditor as O, type PhoneFormat as P, type DateFieldProps as Q, type ResistanceFormat as R, DateField as S, type TemperatureUnitString as T, type FileUploadProps as U, type VoltageFormat as V, FileUpload as W, Heading as X, type YFormatType as Y, Loader as Z, Logo as _, type FormattedValue as a, type InteractiveMapProps as a0, type LayerFeature as a1, type LayerStyle as a2, type MapPoint as a3, type RenderType as a4, type StaticMapProps as a5, type ZoomStops as a6, InteractiveMap as a7, MAP_TYPES as a8, StaticMap as a9,
|
|
1920
|
+
export { type ColorSpec as $, type ActionItem as A, type BooleanFormat as B, type CurrentFormat as C, type DateFormat as D, type EnergyFormat as E, type FieldValue as F, type GridState as G, Badge as H, Icon as I, type CodeEditorProps as J, type CodeLanguage as K, type LayerSpec as L, type CodeTheme as M, type NumberFormat as N, CodeEditor as O, type PhoneFormat as P, type DateFieldProps as Q, type ResistanceFormat as R, DateField as S, type TemperatureUnitString as T, type FileUploadProps as U, type VoltageFormat as V, FileUpload as W, Heading as X, type YFormatType as Y, Loader as Z, Logo as _, type FormattedValue as a, activeDeviceStates as a$, type InteractiveMapProps as a0, type LayerFeature as a1, type LayerStyle as a2, type MapPoint as a3, type RenderType as a4, type StaticMapProps as a5, type ZoomStops as a6, InteractiveMap as a7, MAP_TYPES as a8, StaticMap as a9, getYFormatSettings as aA, type YFormatSettings as aB, clearColorCache as aC, createCategoryColorMap as aD, getContrastingTextColor as aE, getDefaultChartColor as aF, getDefaultColors as aG, getResolvedColor as aH, getThemeCategoricalColors as aI, isLightColor as aJ, type ComponentFormatOptions as aK, formatComponentValue as aL, useComponentFormatter as aM, type BaseFormat as aN, type TextTransform as aO, type TextTruncatePosition as aP, type PercentageFormat as aQ, type DateFormatStyle as aR, type EnergyUnit as aS, type PowerUnit as aT, type VoltageUnit as aU, type CurrentUnit as aV, type ResistanceUnit as aW, type DistanceUnit as aX, type CustomFormat as aY, type MetricFormat as aZ, deviceStateMetricFormats as a_, type MeterProps as aa, Meter as ab, type RichTextEditorProps as ac, RichTextEditor as ad, type SegmentedControlProps as ae, type SegmentOption as af, SegmentedControl as ag, type SideNavItem as ah, type SideNavProps as ai, SideNav as aj, TextLink as ak, type TopNavProps as al, TopNav as am, type EntityConfig as an, type EntityType as ao, ENTITY_CONFIG as ap, getEntityConfig as aq, getEntityIcon as ar, getEntityLabel as as, type TooltipSeries as at, ChartContext as au, useChartContext as av, type ChartMargin as aw, createXScale as ax, createYScale as ay, defaultMargin as az, type DistanceFormat as b, deviceStateLabels as b0, isActiveState as b1, getDeviceStateLabel as b2, gridStateLabels as b3, getGridStateLabel as b4, type CurrencyFormat as c, type PowerFormat as d, type FormatterFunction as e, type TemperatureUnit as f, type TemperatureFormat as g, type TextFormat as h, type FieldFormat as i, type BaseDataPoint as j, type BadgeProps as k, type TooltipData as l, type IconName as m, type DeviceState as n, type ComponentFormatter as o, type CustomPinsSpec as p, type GeoJsonLayerSpec as q, type RasterLayerSpec as r, type VectorLayerSpec as s, type ClusteredVectorLayerSpec as t, type ActionMenuProps as u, ActionMenu as v, type AppShellProps as w, AppShell as x, type AvatarProps as y, Avatar as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
3
|
-
"generatedAt": "2025-11-
|
|
2
|
+
"version": "1.17.0",
|
|
3
|
+
"generatedAt": "2025-11-03T16:51:16.747Z",
|
|
4
4
|
"components": [
|
|
5
5
|
{
|
|
6
6
|
"name": "ActionCell",
|
|
@@ -609,6 +609,16 @@
|
|
|
609
609
|
"relatedComponents": [],
|
|
610
610
|
"storybookPath": "Charts/ChartContainer"
|
|
611
611
|
},
|
|
612
|
+
{
|
|
613
|
+
"name": "ChartEventMarkers",
|
|
614
|
+
"category": "Charts",
|
|
615
|
+
"description": "ChartEventMarkers Renders vertical lines with markers for events (e.g., commands) on a chart. Must be used as a child of ChartContainer to access chart context. @example ```tsx <ChartContainer> <AreaSeries data={data} label=\"Power\" /> <ChartEventMarkers events={[ { timestamp: new Date('2024-01-01T10:00:00Z'), label: 'Command sent', type: 'command' }, { timestamp: new Date('2024-01-01T12:00:00Z'), label: 'Alert triggered', type: 'alert' } ]} /> </ChartContainer> ```",
|
|
616
|
+
"importRoot": "@texturehq/edges",
|
|
617
|
+
"importPath": "@texturehq/edges/components/ChartEventMarkers",
|
|
618
|
+
"props": [],
|
|
619
|
+
"relatedComponents": [],
|
|
620
|
+
"storybookPath": "Charts/ChartEventMarkers"
|
|
621
|
+
},
|
|
612
622
|
{
|
|
613
623
|
"name": "ChartTooltip",
|
|
614
624
|
"category": "Uncategorized",
|
|
@@ -2278,6 +2288,16 @@
|
|
|
2278
2288
|
"relatedComponents": [],
|
|
2279
2289
|
"storybookPath": "Navigation/TextLink"
|
|
2280
2290
|
},
|
|
2291
|
+
{
|
|
2292
|
+
"name": "TimeControls",
|
|
2293
|
+
"category": "Charts",
|
|
2294
|
+
"description": "TimeControls Sophisticated time control component with responsive behavior and calendar integration. Features preset ranges, custom date picker, and window size selection. **Responsive Behavior:** - < 600px: Compact mode with Select dropdowns - ≥ 600px: Expanded mode with ToggleButton group for presets @example ```tsx const [dateRange, setDateRange] = useState({ after: subDays(new Date(), 7), before: new Date() }); const [windowSize, setWindowSize] = useState<WindowSize>(\"HOUR\"); <TimeControls dateRange={dateRange} onDateRangeChange={setDateRange} windowSize={windowSize} onWindowSizeChange={setWindowSize} presetRanges={presetRanges} allowDatePicker /> ```",
|
|
2295
|
+
"importRoot": "@texturehq/edges",
|
|
2296
|
+
"importPath": "@texturehq/edges/components/TimeControls",
|
|
2297
|
+
"props": [],
|
|
2298
|
+
"relatedComponents": [],
|
|
2299
|
+
"storybookPath": "Charts/TimeControls"
|
|
2300
|
+
},
|
|
2281
2301
|
{
|
|
2282
2302
|
"name": "TimeField",
|
|
2283
2303
|
"category": "Form Controls",
|
|
@@ -2579,8 +2599,10 @@
|
|
|
2579
2599
|
"AreaSeries",
|
|
2580
2600
|
"BarSeries",
|
|
2581
2601
|
"ChartContainer",
|
|
2602
|
+
"ChartEventMarkers",
|
|
2582
2603
|
"FunnelSeries",
|
|
2583
|
-
"LineSeries"
|
|
2604
|
+
"LineSeries",
|
|
2605
|
+
"TimeControls"
|
|
2584
2606
|
],
|
|
2585
2607
|
"Uncategorized": [
|
|
2586
2608
|
"ActionCell",
|