@texturehq/edges 1.16.0 → 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-BjHgNcRT.d.cts → colors-wUwMI6WH.d.cts} +178 -6
- package/dist/{server-BjHgNcRT.d.ts → colors-wUwMI6WH.d.ts} +178 -6
- package/dist/components.manifest.json +2 -2
- 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 +3 -3
- package/dist/index.d.ts +3 -3
- 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 +38 -3
- package/dist/utilities.manifest.json +2 -2
- package/package.json +1 -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
|
|
@@ -1702,6 +1702,178 @@ interface TextLinkProps {
|
|
|
1702
1702
|
*/
|
|
1703
1703
|
declare const TextLink: ({ href, children, className, external, title, variant, onClick, asButton, onPress, showArrow, }: TextLinkProps) => react_jsx_runtime.JSX.Element;
|
|
1704
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
|
+
|
|
1705
1877
|
/**
|
|
1706
1878
|
* Resolves a CSS variable to its computed color value
|
|
1707
1879
|
* Supports multiple formats and automatically adds the color- prefix if needed
|
|
@@ -1745,4 +1917,4 @@ declare const isLightColor: (color: string) => boolean;
|
|
|
1745
1917
|
*/
|
|
1746
1918
|
declare const getContrastingTextColor: (backgroundColor: string) => string;
|
|
1747
1919
|
|
|
1748
|
-
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
|
|
@@ -1702,6 +1702,178 @@ interface TextLinkProps {
|
|
|
1702
1702
|
*/
|
|
1703
1703
|
declare const TextLink: ({ href, children, className, external, title, variant, onClick, asButton, onPress, showArrow, }: TextLinkProps) => react_jsx_runtime.JSX.Element;
|
|
1704
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
|
+
|
|
1705
1877
|
/**
|
|
1706
1878
|
* Resolves a CSS variable to its computed color value
|
|
1707
1879
|
* Supports multiple formats and automatically adds the color- prefix if needed
|
|
@@ -1745,4 +1917,4 @@ declare const isLightColor: (color: string) => boolean;
|
|
|
1745
1917
|
*/
|
|
1746
1918
|
declare const getContrastingTextColor: (backgroundColor: string) => string;
|
|
1747
1919
|
|
|
1748
|
-
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 };
|