myio-js-library 0.1.366 → 0.1.367

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/index.cjs CHANGED
@@ -849,7 +849,6 @@ __export(index_exports, {
849
849
  decodePayloadBase64Xor: () => decodePayloadBase64Xor,
850
850
  detectContext: () => detectContext,
851
851
  detectDeviceType: () => detectDeviceType,
852
- detectDomain: () => detectDomain,
853
852
  detectDomainAndContext: () => detectDomainAndContext,
854
853
  detectSuperAdminHolding: () => detectSuperAdminHolding,
855
854
  detectSuperAdminMyio: () => detectSuperAdminMyio,
@@ -967,6 +966,7 @@ __export(index_exports, {
967
966
  isEquipmentDevice: () => isEquipmentDevice,
968
967
  isHydrometerDevice: () => isHydrometerDevice,
969
968
  isInRange: () => isInRange,
969
+ isSolenoidDevice: () => isSolenoidDevice,
970
970
  isStoreDevice: () => isStoreDevice,
971
971
  isTankDevice: () => isTankDevice,
972
972
  isTelemetryStale: () => isTelemetryStale,
@@ -1062,7 +1062,7 @@ module.exports = __toCommonJS(index_exports);
1062
1062
  // package.json
1063
1063
  var package_default = {
1064
1064
  name: "myio-js-library",
1065
- version: "0.1.366",
1065
+ version: "0.1.367",
1066
1066
  description: "A clean, standalone JS SDK for MYIO projects",
1067
1067
  license: "MIT",
1068
1068
  repository: "github:gh-myio/myio-js-library",
@@ -2303,6 +2303,10 @@ function isHydrometerDevice(deviceType) {
2303
2303
  const dt = String(deviceType || "").toUpperCase();
2304
2304
  return dt.startsWith("HIDROMETRO");
2305
2305
  }
2306
+ function isSolenoidDevice(deviceType) {
2307
+ const dt = String(deviceType || "").toUpperCase();
2308
+ return dt.includes("SOLENOIDE");
2309
+ }
2306
2310
  function isTemperatureDevice(deviceType) {
2307
2311
  const dt = String(deviceType || "").toUpperCase();
2308
2312
  return dt === "TERMOSTATO" || dt === "SENSOR_TEMP" || dt.includes("TEMP");
@@ -2312,7 +2316,7 @@ function isEnergyDevice(deviceType) {
2312
2316
  return dt === "3F_MEDIDOR" || dt.includes("3F") || dt.includes("MEDIDOR");
2313
2317
  }
2314
2318
  function getDomainFromDeviceType(deviceType) {
2315
- if (isTankDevice(deviceType) || isHydrometerDevice(deviceType)) {
2319
+ if (isTankDevice(deviceType) || isHydrometerDevice(deviceType) || isSolenoidDevice(deviceType)) {
2316
2320
  return DomainType.WATER;
2317
2321
  }
2318
2322
  if (isTemperatureDevice(deviceType)) {
@@ -2604,16 +2608,6 @@ var ContextType = {
2604
2608
  TERMOSTATO: "termostato",
2605
2609
  TERMOSTATO_EXTERNAL: "termostato_external"
2606
2610
  };
2607
- function detectDomain(device) {
2608
- const deviceType = String(device?.deviceType || "").toUpperCase();
2609
- if (deviceType.includes("HIDROMETRO") || deviceType.includes("HIDRO")) {
2610
- return DomainType2.WATER;
2611
- }
2612
- if (deviceType.includes("TERMOSTATO")) {
2613
- return DomainType2.TEMPERATURE;
2614
- }
2615
- return DomainType2.ENERGY;
2616
- }
2617
2611
  function detectContext(device, domain) {
2618
2612
  const deviceType = String(device?.deviceType || "").toUpperCase();
2619
2613
  const deviceProfile = String(device?.deviceProfile || "").toUpperCase();
@@ -2662,7 +2656,7 @@ function detectContext(device, domain) {
2662
2656
  return ContextType.EQUIPMENTS;
2663
2657
  }
2664
2658
  function detectDomainAndContext(device) {
2665
- const domain = detectDomain(device);
2659
+ const domain = getDomainFromDeviceType(device?.deviceType);
2666
2660
  const context = detectContext(device, domain);
2667
2661
  return { domain, context };
2668
2662
  }
@@ -103996,7 +103990,6 @@ var version = package_default.version || "0.0.0";
103996
103990
  decodePayloadBase64Xor,
103997
103991
  detectContext,
103998
103992
  detectDeviceType,
103999
- detectDomain,
104000
103993
  detectDomainAndContext,
104001
103994
  detectSuperAdminHolding,
104002
103995
  detectSuperAdminMyio,
@@ -104114,6 +104107,7 @@ var version = package_default.version || "0.0.0";
104114
104107
  isEquipmentDevice,
104115
104108
  isHydrometerDevice,
104116
104109
  isInRange,
104110
+ isSolenoidDevice,
104117
104111
  isStoreDevice,
104118
104112
  isTankDevice,
104119
104113
  isTelemetryStale,
package/dist/index.d.cts CHANGED
@@ -808,6 +808,12 @@ declare function isTankDevice(deviceType: string): boolean;
808
808
  * @returns {boolean}
809
809
  */
810
810
  declare function isHydrometerDevice(deviceType: string): boolean;
811
+ /**
812
+ * Checks if device type is a solenoid valve (water infrastructure)
813
+ * @param {string} deviceType - Device type string
814
+ * @returns {boolean}
815
+ */
816
+ declare function isSolenoidDevice(deviceType: string): boolean;
811
817
  /**
812
818
  * Checks if device type is a temperature sensor
813
819
  * @param {string} deviceType - Device type string
@@ -1242,21 +1248,6 @@ type DeviceItem = {
1242
1248
  _isHidrometerDevice: boolean;
1243
1249
  };
1244
1250
 
1245
- /**
1246
- * Detect the domain of a device based on its deviceType.
1247
- *
1248
- * @param {Object} device - Device object with deviceType property
1249
- * @param {string} [device.deviceType] - The device type string
1250
- * @returns {'energy' | 'water' | 'temperature'} The detected domain
1251
- *
1252
- * @example
1253
- * detectDomain({ deviceType: 'HIDROMETRO' }); // 'water'
1254
- * detectDomain({ deviceType: 'TERMOSTATO' }); // 'temperature'
1255
- * detectDomain({ deviceType: '3F_MEDIDOR' }); // 'energy'
1256
- */
1257
- declare function detectDomain(device: {
1258
- deviceType?: string;
1259
- }): "energy" | "water" | "temperature";
1260
1251
  /**
1261
1252
  * RFC-0111: Detect device context based on deviceType, deviceProfile, and identifier.
1262
1253
  *
@@ -15866,4 +15857,4 @@ declare function injectScheduleHolidayStyles(): void;
15866
15857
 
15867
15858
  declare const version: string;
15868
15859
 
15869
- export { ACTION_BUTTON_CSS_PREFIX, ALARMS_NOTIFICATIONS_PANEL_STYLES, SEVERITY_CONFIG as ALARM_SEVERITY_CONFIG, ALARM_SORT_OPTIONS, STATE_CONFIG as ALARM_STATE_CONFIG, ANNOTATION_TYPE_COLORS, ANNOTATION_TYPE_LABELS, ANNOTATION_TYPE_LABELS_EN, ActionButtonController, type ActionButtonInstance, type ActionButtonParams, type ActionButtonSettings, type ActionButtonSize, type ActionButtonThemeMode, type ActionButtonVariant, ActionButtonView, type Alarm, type AlarmAction, type AlarmCardParams, type AlarmComparisonModalInstance, type AlarmComparisonModalParams, type AlarmFilterTab, type AlarmFilters, type AlarmInfo, type AlarmSeverity, type AlarmSortMode, type AlarmSortOption, type AlarmState, type AlarmStats, type AlarmsEventHandler, type AlarmsEventType, AlarmsNotificationsPanelController, type AlarmsNotificationsPanelInstance, type AlarmsNotificationsPanelParams, type AlarmsNotificationsPanelState, AlarmsNotificationsPanelView, type AlarmsSummaryData, AlarmsSummaryTooltip, type AlarmsTab, type Annotation, type AnnotationFilterState, AnnotationIndicator, type AnnotationIndicatorConfig, type AnnotationIndicatorTheme, type AnnotationStatus, type AnnotationSummary, type AnnotationType, type AppliedFilters, type AuditAction, type AuditEntry, BASDashboardController, type BASDashboardData, type BASDashboardInstance, type BASDashboardParams, type BASDashboardSettings, type BASDashboardState, type BASDashboardThemeMode, BASDashboardView, type BASEventType, type HVACDevice as BASHVACDevice, type HVACDeviceStatus as BASHVACDeviceStatus, type MotorDevice as BASMotorDevice, type MotorDeviceStatus as BASMotorDeviceStatus, type MotorDeviceType as BASMotorDeviceType, type WaterDevice as BASWaterDevice, type WaterDeviceStatus as BASWaterDeviceStatus, type WaterDeviceType as BASWaterDeviceType, BAS_DASHBOARD_CSS_PREFIX, BAS_DASHBOARD_STYLES, type BarChartOptions, type BuildTemplateExportParams, CHART_COLORS, DEFAULT_COLORS as CONSUMPTION_CHART_COLORS, DEFAULT_CONFIG as CONSUMPTION_CHART_DEFAULTS, THEME_COLORS as CONSUMPTION_THEME_COLORS, type CardGridCustomStyle, type CardGridItem, CardGridPanel, type CardGridPanelOptions, type CardKPIs, type CategorySummary, type ChartDomain, type ClampRange, ConnectionStatusType, type Consumption7DaysColors, type Consumption7DaysConfig, type Consumption7DaysData, type Consumption7DaysInstance, type ChartType$2 as ConsumptionChartType, type ConsumptionDataPoint$2 as ConsumptionDataPoint, type IdealRangeConfig as ConsumptionIdealRangeConfig, type ConsumptionModalConfig, type ConsumptionModalInstance, type TemperatureConfig as ConsumptionTemperatureConfig, type TemperatureReferenceLine as ConsumptionTemperatureReferenceLine, type ThemeColors as ConsumptionThemeColors, type ThemeMode$e as ConsumptionThemeMode, type VizMode$2 as ConsumptionVizMode, type ConsumptionWidgetConfig, type ConsumptionWidgetInstance, type ContextOption, type ContractDeviceCounts, type ContractDevicesError, type ContractDevicesPersistResult, type ContractDomain, type ContractDomainCounts, type ContractSummaryData, ContractSummaryTooltip, type ContractTemperatureCounts, type CreateDateRangePickerOptions, type CreateInputDateRangePickerInsideDIVParams, type CustomerCardData$1 as CustomerCardData, type CustomerCardDeviceCounts$1 as CustomerCardDeviceCounts, type CustomerCardMetaCounts$1 as CustomerCardMetaCounts, type ThemeMode$b as CustomerCardThemeMode, CustomerCardV1, type CustomerCardV1Instance, type CustomerCardV1Params, CustomerCardV2, type CustomerCardV2Instance, type CustomerCardV2Params, type CustomerOption, DAY_LABELS, DAY_LABELS_FULL, DECIMAL_OPTIONS, DEFAULT_ACTION_BUTTON_SETTINGS, DEFAULT_ALARM_FILTERS, DEFAULT_ALARM_FILTER_TABS, DEFAULT_ALARM_STATS, DEFAULT_BAS_SETTINGS, DEFAULT_CLAMP_RANGE, DEFAULT_DASHBOARD_KPIS$1 as DEFAULT_DASHBOARD_KPIS, DEFAULT_DAYS_WEEK, DEFAULT_DEVICE_OPERATIONAL_CARD_FILTER_STATE, DEFAULT_ENERGY_GROUP_COLORS, DEFAULT_EQUIPMENT_FILTER_STATE, DEFAULT_EQUIPMENT_STATS, DEFAULT_FANCOIL_SETTINGS, DEFAULT_FANCOIL_STATE, DEFAULT_FOOTER_COLORS, DEFAULT_GAS_GROUP_COLORS, DEFAULT_GRID_FILTER_STATE, DEFAULT_GRID_FILTER_TABS, DEFAULT_HEADER_DARK_THEME, DEFAULT_HEADER_LIGHT_THEME, DEFAULT_HEADER_SHOPPING_CONFIG, DEFAULT_HOLIDAY_SETTINGS, DEFAULT_HOLIDAY_STATE, DEFAULT_IR_SCHEDULE, DEFAULT_IR_SETTINGS, DEFAULT_IR_STATE, DEFAULT_SETTINGS as DEFAULT_MEASUREMENT_SETTINGS, DEFAULT_MENU_CONFIG, DEFAULT_MENU_SHOPPING_CONFIG, DEFAULT_ON_OFF_SCHEDULE, DEFAULT_ON_OFF_SETTINGS, DEFAULT_ON_OFF_STATE, DEFAULT_SETPOINT_SCHEDULE, DEFAULT_SETPOINT_SETTINGS, DEFAULT_SETPOINT_STATE, DEFAULT_SHOPPING_CARDS, DEFAULT_SHOPPING_COLORS, DEFAULT_SOLENOID_SETTINGS, DEFAULT_SOLENOID_STATE, DEFAULT_TABS, DEFAULT_WATER_GROUP_COLORS, DEVICE_COUNT_KEYS, DEVICE_OPERATIONAL_CARD_GRID_STYLES, DEVICE_OPERATIONAL_CARD_STYLES, DEVICE_TYPE_DOMAIN, type DashboardEnergySummary, type DashboardKPIs$1 as DashboardKPIs, type DashboardPeriod$1 as DashboardPeriod, type DashboardWaterSummary, type DateRangeControl, type DateRangeInputController, type DateRangeResult, type DaysWeek, type DemandModalInstance, type DemandModalParams, type DemandModalPdfConfig, type DemandModalStyles, type DeviceAttributes, DeviceCategory, type DeviceComparisonData, DeviceComparisonTooltip, ContextType as DeviceContextType, type DeviceCountKeys, DomainType$2 as DeviceDomainType, DeviceGridV6Controller, type CardGridCustomStyle as DeviceGridV6CustomStyle, type DeviceGridV6Instance, type CardGridItem as DeviceGridV6Item, type DeviceGridV6Params, type SortMode as DeviceGridV6SortMode, type DeviceGridV6Stats, DeviceGridV6View, DeviceGridWidgetFactory, type DeviceInfo$2 as DeviceInfo, DeviceOperationalCardController, type DeviceOperationalCardEventHandler, type DeviceOperationalCardEventType, type DeviceOperationalCardFilterState, DeviceOperationalCardGridController, type DeviceOperationalCardGridEventHandler, type DeviceOperationalCardGridEventType, type DeviceOperationalCardGridFilterState, type DeviceOperationalCardGridInstance, type DeviceOperationalCardGridParams, type SortMode$1 as DeviceOperationalCardGridSortMode, type DeviceOperationalCardGridState, type DeviceOperationalCardGridStats, type ThemeMode$1 as DeviceOperationalCardGridThemeMode, DeviceOperationalCardGridView, type DeviceOperationalCardInstance, type DeviceOperationalCardParams, type DeviceOperationalCardState, type ThemeMode$2 as DeviceOperationalCardThemeMode, DeviceOperationalCardView, type DeviceRelation, type DeviceStatusName, DeviceStatusType, type DeviceTypeLimits, type DistributionChartConfig, type DistributionChartInstance, type DistributionData, type DistributionDomain, type DistributionMode$2 as DistributionMode, type DistributionThemeColors, DomainType$3 as DomainType, type DonutChartOptions, type DowntimeEntry$1 as DowntimeEntry, ENERGY_SORT_OPTIONS, ENERGY_UNITS, EQUIPMENT_CLASSIFICATION_CONFIG, STATUS_CONFIG as EQUIPMENT_STATUS_CONFIG, TYPE_CONFIG as EQUIPMENT_TYPE_CONFIG, EXPORT_DEFAULT_COLORS, EXPORT_DOMAIN_ICONS, EXPORT_DOMAIN_LABELS, EXPORT_DOMAIN_UNITS, type EnergyDisplaySettings, type EnergyEntityData, type EnergyKPI, type EnergyModalContext, type EnergyModalError, type EnergyModalI18n, type EnergyModalStyleOverrides, type ChartType$1 as EnergyPanelChartType, type ConsumptionDataPoint$1 as EnergyPanelConsumptionDataPoint, type DistributionDataPoint$1 as EnergyPanelDistributionDataPoint, type DistributionMode$1 as EnergyPanelDistributionMode, type EnergyCategoryData as EnergyPanelEnergyCategoryData, type EnergySummaryData as EnergyPanelEnergySummaryData, type FetchConsumptionFn$1 as EnergyPanelFetchConsumptionFn, type FetchDistributionFn$1 as EnergyPanelFetchDistributionFn, type EnergyPanelInstance, type OnFilterChangeCallback$2 as EnergyPanelOnFilterChangeCallback, type OnMaximizeCallback$1 as EnergyPanelOnMaximizeCallback, type OnPeriodChangeCallback$2 as EnergyPanelOnPeriodChangeCallback, type OnRefreshCallback$2 as EnergyPanelOnRefreshCallback, type OnVizModeChangeCallback$1 as EnergyPanelOnVizModeChangeCallback, type EnergyPanelParams, type PeriodDays$1 as EnergyPanelPeriodDays, type EnergyPanelState, type ThemeMode$9 as EnergyPanelThemeMode, type VizMode$1 as EnergyPanelVizMode, EnergyRangeTooltip, type EnergyStatus, type EnergyStatusResult, EnergySummaryTooltip, type EnergyUnit, type EntityListItem, EntityListPanel, type EntityListPanelOptions, type EquipmentAction, type EquipmentCardData, EquipmentCategory, type EquipmentFilterState, type EquipmentKPI, type EquipmentStats, type EquipmentStatus$1 as EquipmentStatus, type EquipmentType$1 as EquipmentType, type ExportColorsPallet, type ExportComparisonData, type ExportConfigTemplate, type ExportCustomerData, type ExportCustomerInfo, type ExportData, type ExportDataInput, type ExportDataInstance, type ExportDataPoint, type ExportDeviceInfo, type ExportDomain, type ExportFormat, type ExportGroupData, type ExportOptions, type ExportProgressCallback, type ExportResult, type ExportStats, type ExportType, FANCOIL_IMAGES, FANCOIL_REMOTE_CSS_PREFIX, FILTER_GROUPS, FILTER_TAB_ICONS, DEFAULT_CONFIG_TEMPLATE as FOOTER_DEFAULT_CONFIG_TEMPLATE, DEFAULT_DARK_THEME as FOOTER_DEFAULT_DARK_THEME, DEFAULT_LIGHT_THEME as FOOTER_DEFAULT_LIGHT_THEME, type FancoilMode, FancoilRemoteController, type FancoilRemoteInstance, type FancoilRemoteParams, type FancoilRemoteSettings, FancoilRemoteView, type FancoilState, type FancoilStatus, type FancoilThemeMode, type FilterCategory, type FilterState$1 as FilterCategoryState, type FilterGroup, FilterModalComponent, FilterModalController, type FilterModalDomain, type FilterModalInstance, type FilterModalOptions, type FilterModalParams, type FilterModalState, type FilterModalThemeMode, FilterModalView, type SortMode$3 as FilterSortMode, type FilterSortOption, type FilterTab, type FilterableDevice, type FooterColors, type FooterComponentInstance, type FooterComponentParams, type FooterConfigTemplate, type SelectedEntity as FooterSelectedEntity, type FooterThemeConfig, type FooterThemeMode, type UnitType as FooterUnitType, GRID_SORT_OPTIONS, type CustomerOption$1 as GridCustomerOption, type EquipmentStatus as GridEquipmentStatus, type EquipmentType as GridEquipmentType, type GridFilterTab, type GridSortOption, type GroupColors, HEADER_CSS_PREFIX, DEFAULT_CARD_COLORS as HEADER_DEFAULT_CARD_COLORS, HEADER_DEFAULT_CONFIG_TEMPLATE, HEADER_DEFAULT_LOGO_URL, HEADER_DEVICES_GRID_STYLES, HEADER_SHOPPING_CSS_PREFIX, HEADER_STYLE_DARK, HEADER_STYLE_DEFAULT, HEADER_STYLE_SLIM, type CardColorConfig as HeaderCardColorConfig, type HeaderCardColors, type CardType as HeaderCardType, type HeaderComponentInstance, type HeaderComponentParams, type HeaderConfigTemplate, type HeaderDevice, type HeaderDevicesDomain, HeaderDevicesGridController, type HeaderDevicesGridInstance, type HeaderDevicesGridParams, HeaderDevicesGridView, type HeaderDevicesThemeMode, type HeaderDomainConfig, type HeaderEventType, HeaderFilterModal, type FilterPreset as HeaderFilterPreset, type FilterSelection as HeaderFilterSelection, type HeaderLabels, HeaderPanelComponent, type HeaderPanelOptions, type HeaderPanelStyle, type Shopping$2 as HeaderShopping, type HeaderShoppingConfigTemplate, type ContractState as HeaderShoppingContractState, type DomainType$1 as HeaderShoppingDomainType, type HeaderShoppingEventHandler, type HeaderShoppingEventType, type HeaderShoppingInstance, type HeaderShoppingParams, type HeaderShoppingPeriod, HeaderShoppingView, type HeaderStats, type HeaderThemeConfig, type HeaderThemeMode, HeaderView, type HolidayEntry, IMPORTANCE_COLORS, IMPORTANCE_LABELS, IMPORTANCE_LABELS_EN, type IRCommand, type IRGroupScheduleEntry, type IRScheduleEntry, type ImportanceLevel, type InferredDeviceType, InfoTooltip, type InstantaneousPowerLimits, LoadingSpinner, type LogAnnotationsAttribute, LogHelper, DOMAIN_CONFIG$2 as MEASUREMENT_DOMAIN_CONFIG, MENU_SHOPPING_CSS_PREFIX, METRO_TILE_COLORS, MOTOR_SORT_OPTIONS, type MeasurementDisplaySettings, type MeasurementSetupError, type MeasurementSetupFormData, type MeasurementSetupModalInstance, type MeasurementSetupModalParams, type MeasurementSetupModalStyles, type PersistResult as MeasurementSetupPersistResult, type MenuComponentInstance, type MenuComponentParams, type MenuConfigTemplate, MenuController, type MenuEventHandler, type MenuEventType, type MenuShoppingConfigTemplate, type DashboardStateEvent as MenuShoppingDashboardStateEvent, type DomainType as MenuShoppingDomainType, type MenuShoppingEventHandler, type MenuShoppingEventType, type MenuShoppingInstance, type MenuShoppingParams, type MenuShoppingSettings, type MenuShoppingTab, type MenuShoppingUserInfo, MenuShoppingView, type MenuState, type ThingsboardWidgetContext as MenuThingsboardWidgetContext, MenuView, type MetroTile, type ExportFormat$2 as ModalExportFormat, ModalHeader, type ModalHeaderConfig, type ModalHeaderController, type ModalHeaderControllerOptions, type ModalHeaderHandlers, type ModalHeaderInstance, type ModalHeaderOptions, type ModalTheme, type MyIOAuthConfig, type MyIOAuthInstance, MyIOChartModal, MyIODraggableCard, MyIOSelectionStore, MyIOSelectionStoreClass, MyIOToast, type NewAnnotationData, type NotificationInfo, type NotificationsSummaryData, NotificationsSummaryTooltip, OFFLINE_STATUSES, ONLINE_STATUSES, AVAILABILITY_THRESHOLDS as OPERATIONAL_AVAILABILITY_THRESHOLDS, DEFAULT_DASHBOARD_KPIS as OPERATIONAL_DASHBOARD_DEFAULT_KPIS, PERIOD_OPTIONS as OPERATIONAL_DASHBOARD_PERIOD_OPTIONS, OPERATIONAL_DASHBOARD_STYLES, OPERATIONAL_GENERAL_LIST_STYLES, OPERATIONAL_HEADER_DEVICES_GRID_STYLES, STATUS_CONFIG$1 as OPERATIONAL_STATUS_CONFIG, type OnAlarmActionCallback, type OnAlarmClickCallback, type OnAlarmFilterChangeCallback, type OnAlarmStatsUpdateCallback, type OnEquipmentActionCallback, type OnEquipmentClickCallback, type OnGridFilterChangeCallback, type OnGridStatsUpdateCallback, type OnOffGroupScheduleEntry, type OnOffScheduleEntry, type OnboardFooterLink, type OnboardModalConfig, type OnboardModalHandle, OnboardModalView, type OpenContractDevicesModalParams, type OpenDashboardPopupEnergyOptions, type OpenDashboardPopupSettingsParams, type OpenDashboardPopupWaterTankOptions, type OperationalComparisonModalInstance, type OperationalComparisonModalParams, type OperationalContextChangeEvent, type OperationalDashboardInstance, type DashboardKPIs as OperationalDashboardKPIs, type OperationalDashboardParams, type DashboardPeriod as OperationalDashboardPeriod, type DashboardThemeMode as OperationalDashboardThemeMode, type OperationalDevice, type DowntimeEntry as OperationalDowntimeEntry, type OperationalEquipment, type OperationalEquipmentReadyEvent, OperationalGeneralListController, type OperationalGeneralListInstance, type OperationalGeneralListParams, type OperationalGeneralListState, OperationalGeneralListView, type OperationalHeaderDevicesGridInstance, type OperationalHeaderDevicesGridParams, OperationalHeaderDevicesGridView, type OperationalHeaderLabels, type OperationalHeaderStats, type OperationalHeaderThemeMode, type OperationalIndicatorsAccessEvent, type OperationalIndicatorsAttributes, type OperationalListEventHandler, type OperationalListEventType, type ThemeMode$3 as OperationalListThemeMode, type StatusConfig as OperationalStatusConfig, type OperationalStore, type TrendDataPoint as OperationalTrendDataPoint, DEVICE_TYPES as POWER_LIMITS_DEVICE_TYPES, STATUS_CONFIG$2 as POWER_LIMITS_STATUS_CONFIG, TELEMETRY_TYPES as POWER_LIMITS_TELEMETRY_TYPES, type PaginationState, type Period, type PermissionSet, type PersistResult$1 as PersistResult, type PowerLimitsError, type PowerLimitsFormData, type PowerLimitsModalInstance, type PowerLimitsModalParams, type PowerLimitsModalStyles, type PowerRange, type PowerRanges, type RealTimeTelemetryInstance, type RealTimeTelemetryParams, SCHEDULE_HOLIDAY_CSS_PREFIX, SCHEDULE_IR_CSS_PREFIX, SCHEDULE_ON_OFF_CSS_PREFIX, SCHEDULE_SETPOINT_CSS_PREFIX, SCHED_CSS_PREFIX, SEVERITY_ORDER, SOLENOID_CONTROL_CSS_PREFIX, SOLENOID_IMAGES, STATUS_COLORS, STATUS_LABELS, STATUS_LABELS_EN, STATUS_TO_CONNECTIVITY, type ScheduleEntryBase, ScheduleHolidayController, type ScheduleHolidayInstance, type ScheduleHolidayParams, type ScheduleHolidaySettings, type ScheduleHolidayState, ScheduleHolidayView, ScheduleIRController, type ScheduleIRInstance, type ScheduleIRParams, type ScheduleIRSettings, type ScheduleIRState, ScheduleIRView, ScheduleOnOffController, type ScheduleOnOffInstance, type ScheduleOnOffParams, type ScheduleOnOffSettings, type ScheduleOnOffState, ScheduleOnOffView, ScheduleSetpointController, type ScheduleSetpointDevices, type ScheduleSetpointInstance, type ScheduleSetpointParams, type ScheduleSetpointSettings, type ScheduleSetpointState, ScheduleSetpointView, type SchedulingBaseSettings, type ConfirmFn as SchedulingConfirmFn, type NotifyFn as SchedulingNotifyFn, type SchedulingThemeMode, type SetpointScheduleEntry, type SettingsError, type SettingsEvent, type Shopping$1 as Shopping, type ShoppingCard, type ShoppingCardDeviceCounts, type ShoppingCardMetaCounts, type ShoppingColors, type ShoppingDataPoint, SolenoidControlController, type SolenoidControlInstance, type SolenoidControlParams, type SolenoidControlSettings, SolenoidControlView, type SolenoidState, type SolenoidStatus, type SolenoidThemeMode, type StatusLimits, type StatusSummary$1 as StatusSummary, type StoreRow, CONTEXT_CONFIG$1 as TELEMETRY_CONTEXT_CONFIG, DEFAULT_FILTER_TABS as TELEMETRY_DEFAULT_FILTER_TABS, DOMAIN_CONFIG$1 as TELEMETRY_DOMAIN_CONFIG, CONTEXT_CONFIG as TELEMETRY_GRID_SHOPPING_CONTEXT_CONFIG, DOMAIN_CONFIG as TELEMETRY_GRID_SHOPPING_DOMAIN_CONFIG, DEFAULT_CHART_COLORS as TELEMETRY_INFO_DEFAULT_CHART_COLORS, ENERGY_CATEGORY_CONFIG as TELEMETRY_INFO_ENERGY_CATEGORY_CONFIG, WATER_CATEGORY_CONFIG as TELEMETRY_INFO_WATER_CATEGORY_CONFIG, TEMPERATURE_SORT_OPTIONS, TEMPERATURE_UNITS, type TabConfig, type TbScope, type TelemetryConfigTemplate, type TelemetryContext$1 as TelemetryContext, type TelemetryDevice$1 as TelemetryDevice, type TelemetryDomain$2 as TelemetryDomain, type TelemetryFetcher, type FilterState$2 as TelemetryFilterState, TelemetryGridController, type TelemetryGridEventType, type TelemetryGridInstance, type TelemetryGridParams, type CardAction as TelemetryGridShoppingCardAction, type TelemetryContext as TelemetryGridShoppingContext, type TelemetryDevice as TelemetryGridShoppingDevice, type TelemetryDomain$1 as TelemetryGridShoppingDomain, type FilterState as TelemetryGridShoppingFilterState, type TelemetryGridShoppingInstance, type TelemetryGridShoppingParams, type SortMode$2 as TelemetryGridShoppingSortMode, type TelemetryStats as TelemetryGridShoppingStats, type ThemeMode$5 as TelemetryGridShoppingThemeMode, TelemetryGridView, type CategoryType as TelemetryInfoCategoryType, type ChartColors as TelemetryInfoChartColors, type EnergyState as TelemetryInfoEnergyState, type EnergySummary as TelemetryInfoEnergySummary, type TelemetryDomain as TelemetryInfoShoppingDomain, type TelemetryInfoShoppingInstance, type TelemetryInfoShoppingParams, type ThemeMode$4 as TelemetryInfoShoppingThemeMode, type WaterState as TelemetryInfoWaterState, type WaterSummary as TelemetryInfoWaterSummary, type Shopping as TelemetryShopping, type SortMode$4 as TelemetrySortMode, type TelemetryStats$1 as TelemetryStats, type ThemeMode$c as TelemetryThemeMode, type TelemetryTypeLimits, type TempComparisonData, TempComparisonTooltip, type TempEntityData, TempRangeTooltip, type TempSensorDevice, type TempSensorSummaryData, TempSensorSummaryTooltip, type TempStatus, type TempStatusResult, type TemperatureComparisonModalInstance, type TemperatureComparisonModalParams, type TemperatureDevice, type TemperatureDisplaySettings, type TemperatureGranularity, type TemperatureKPI, type TemperatureModalInstance, type TemperatureModalParams, type TemperatureSettingsInstance, type TemperatureSettingsParams, type TemperatureStats, type TemperatureTelemetry, type TemperatureUnit, type ThingsboardCustomerAttrsConfig, type TimedValue, type TrendChartOptions, type TrendDataPoint$1 as TrendDataPoint, type Customer as UpsellCustomer, type Device as UpsellDevice, type UpsellModalError, type UpsellModalInstance, type UpsellModalParams, type UpsellModalStyles, type UserInfo$2 as UserInfo, type UsersByRole, type UsersSummaryData, UsersSummaryTooltip, type UserInfo as UsersTooltipUserInfo, type ValidationMap, WAITING_STATUSES, WATER_DEVICE_CATEGORIES, WATER_SORT_OPTIONS, WATER_UNITS, DEFAULT_PALETTE as WELCOME_DEFAULT_PALETTE, type WaterCategorySummary, type WaterDisplaySettings, type WaterKPI, type ChartType as WaterPanelChartType, type ConsumptionDataPoint as WaterPanelConsumptionDataPoint, type DistributionDataPoint as WaterPanelDistributionDataPoint, type DistributionMode as WaterPanelDistributionMode, type FetchConsumptionFn as WaterPanelFetchConsumptionFn, type FetchDistributionFn as WaterPanelFetchDistributionFn, type WaterPanelInstance, type OnFilterChangeCallback$1 as WaterPanelOnFilterChangeCallback, type OnMaximizeCallback as WaterPanelOnMaximizeCallback, type OnPeriodChangeCallback$1 as WaterPanelOnPeriodChangeCallback, type OnRefreshCallback$1 as WaterPanelOnRefreshCallback, type OnVizModeChangeCallback as WaterPanelOnVizModeChangeCallback, type WaterPanelParams, type PeriodDays as WaterPanelPeriodDays, type WaterPanelState, type ThemeMode$8 as WaterPanelThemeMode, type VizMode as WaterPanelVizMode, type WaterCategoryData as WaterPanelWaterCategoryData, type WaterSummaryData as WaterPanelWaterSummaryData, type WaterRow, WaterSummaryTooltip, type WaterTankDataPoint, type WaterTankModalContext, type WaterTankModalError, type WaterTankModalI18n, type WaterTankModalStyleOverrides, type WaterTankTelemetryData, type WaterUnit, type WelcomeModalInstance, type WelcomeModalParams, type WelcomePalette, type UserInfo$1 as WelcomeUserInfo, addDetectionContext, addNamespace, aggregateByDay, applyFilters as applyDeviceGridFilters, assignShoppingColors, averageByDay, buildEntityObject as buildDeviceGridEntityObject, buildEquipmentCategoryDataForTooltip, buildEquipmentCategorySummary, buildListItemsThingsboardByUniqueDatasource, buildMyioIngestionAuth, buildTemplateExport, buildWaterReportCSV, buildWaterStoresCSV, calcDeltaPercent, calculateAvailability$1 as calculateAvailability, calculateAvailability as calculateDashboardAvailability, calculateMTBF as calculateDashboardMTBF, calculateMTTR as calculateDashboardMTTR, calculateDeviceStatus, calculateDeviceStatusMasterRules, calculateDeviceStatusWithRanges, calculateStats as calculateExportStats, calculateFleetKPIs, calculateMTBF$1 as calculateMTBF, calculateMTTR$1 as calculateMTTR, calculateShoppingDeviceCounts, calculateShoppingDeviceStats, calculateStats$1 as calculateStats, canModifyAnnotation, clampTemperature, classify, classifyEquipment, classifyEquipmentSubcategory, classifyWaterLabel, classifyWaterLabels, clearAllAuthCaches, connectionStatusIcons, createActionButton, createAlarmCardElement, createAlarmsNotificationsPanelComponent, createAnnotationIndicator, createBASDashboard, createButtonBar, createConsumption7DaysChart, createConsumptionChartWidget, createConsumptionModal, createCustomerCardV1, createCustomerCardV2, createDateRangePicker, createDaysGrid, createBusyModal as createDeviceGridBusyModal, createState as createDeviceGridState, createDeviceGridV6, createDeviceItem, createDeviceItemsFromMap, createDeviceOperationalCardComponent, createDeviceOperationalCardGridComponent, createDistributionChartWidget, createEnergyPanelComponent, createErrorSpan, createFancoilRemote, createFilterModalComponent, createFooterComponent, createGroupScheduleCard, createHeaderComponent, createHeaderDevicesGridComponent, createHeaderShoppingComponent, createInputDateRangePickerInsideDIV, createLibraryVersionChecker, createLoadingSpinner, createLogHelper, createMenuComponent, createMenuShoppingComponent, createModalHeader, createOperationalDashboardComponent, createOperationalGeneralListComponent, createOperationalHeaderDevicesGridComponent, createScheduleCard, createScheduleHoliday, createScheduleIR, createScheduleOnOff, createScheduleSetpoint, createSolenoidControl, createTelemetryGridComponent, createTelemetryGridShoppingComponent, createTelemetryInfoShoppingComponent, createToggleSwitch, createWaterPanelComponent, createWidgetController, decodePayload, decodePayloadBase64Xor, detectContext, detectDeviceType, detectDomain, detectDomainAndContext, detectSuperAdminHolding, detectSuperAdminMyio, determineInterval, deviceStatusIcons, doSchedulesOverlap, exportTemperatureCSV, exportToCSV, exportToCSVAll, extractEntityId, extractMyIOCredentials, extractPowerLimitsForDevice, fetchCurrentUserInfo, fetchTemperatureData, fetchThingsboardCustomerAttrsFromStorage, fetchThingsboardCustomerServerScopeAttrs, findValue, findValueWithDefault, fmtPerc$1 as fmtPerc, fmtPerc as fmtPercLegacy, formatAlarmRelativeTime, formatAllInSameUnit, formatAllInSameWaterUnit, formatPercentage as formatDashboardPercentage, formatDateForInput, formatDateToYMD, formatDateWithTimezoneOffset, formatDuration, formatEnergy$1 as formatEnergy, formatHours, formatNumberReadable, formatRelativeTime, formatTankHeadFromCm, formatTemperature, formatTrend, formatWater$1 as formatWater, formatWaterByGroup, formatWaterVolumeM3, formatarDuracao, generateFilename as generateExportFilename, generateFilterModalStyles, generateMockDowntimeList, generateMockKPIs, generateMockTrendData, getSeverityConfig as getAlarmSeverityConfig, getStateConfig as getAlarmStateConfig, getAnnotationPermissions, getAuthCacheStats, getAvailabilityColorFromThresholds, getAvailableContexts, getCategoryDisplayInfo, getConnectionStatusIcon, getDateRangeArray, getDefaultGroupColors, getDefaultPeriodCurrentDaySoFar, getDefaultPeriodCurrentMonthSoFar, getCachedData as getDeviceGridCachedData, getStatusCategory as getDeviceGridV6StatusCategory, getDeviceStatusCategory, getDeviceStatusIcon, getDeviceStatusInfo, getThemeColors as getDistributionThemeColors, getDomainFromDeviceType, getFirstDayOfMonth, getFirstDayOfMonthFor, getGroupColor, getHashColor, getImageByConsumption, getLastDayOfMonth, getModalHeaderStyles, getAvailabilityColor as getOperationalAvailabilityColor, getStatusColors as getOperationalStatusColors, getPeriodDateRange, getSaoPauloISOString, getSaoPauloISOStringFixed, getShoppingColor, getSuggestedIdentifier, getSuggestedProfiles, getTrendClass, getTrendIcon, getValueByDatakey, getValueByDatakeyLegacy, getWaterCategories, groupByDay, handleDeviceType, hasSelectedDays, injectActionButtonStyles, injectAlarmsNotificationsPanelStyles, injectBASDashboardStyles, injectCustomerCardV1Styles, injectCustomerCardV2Styles, injectStyles as injectDeviceGridV6Styles, injectDeviceOperationalCardGridStyles, injectDeviceOperationalCardStyles, injectFancoilRemoteStyles, injectHeaderDevicesGridStyles, injectHeaderShoppingStyles, injectMenuShoppingStyles, injectOperationalDashboardStyles, injectOperationalGeneralListStyles, injectOperationalHeaderDevicesGridStyles, injectScheduleHolidayStyles, injectScheduleIRStyles, injectScheduleOnOffStyles, injectScheduleSetpointStyles, injectSchedulingSharedStyles, injectSolenoidControlStyles, interpolateTemperature, isAlarmActive, isConnectionStale, isDeviceOffline, isEndAfterStart, isEnergyDevice, isEntradaDevice, isEquipmentDevice, isHydrometerDevice, isInRange, isStoreDevice, isTankDevice, isTelemetryStale, isTemperatureDevice, isValidConnectionStatus, isValidDeviceStatus, isValidTimeFormat, isWaterCategory, mapConnectionStatus, mapDeviceStatusToCardStatus, mapDeviceToConnectionStatus, myioExportData, normalizeConnectionStatus, normalizeRecipients, numbers, openAlarmComparisonModal, openContractDevicesModal, openDashboardPopup, openDashboardPopupAllReport, openDashboardPopupEnergy, openDashboardPopupReport, openDashboardPopupSettings, openDashboardPopupWaterTank, openDemandModal, openGoalsPanel, openHelpModal, openMeasurementSetupModal, openOnboardModal, openOperationalComparisonModal, openPowerLimitsSetupModal, openRealTimeTelemetryModal, openTemperatureComparisonModal, openTemperatureModal, openTemperatureSettingsModal, openTutorialModal, openUpsellModal, openWelcomeModal, parseInputDateToDate, periodKey, recalculateDeviceStatus, recomputePercentages as recomputeDeviceGridPercentages, removeAlarmsNotificationsPanelStyles, removeBASDashboardStyles, removeDeviceOperationalCardGridStyles, removeDeviceOperationalCardStyles, removeOperationalDashboardStyles, removeOperationalGeneralListStyles, removeOperationalHeaderDevicesGridStyles, removeSchedulingSharedStyles, renderAlarmCard, renderCardComponent$3 as renderCardComponent, renderCardComponent$2 as renderCardComponentEnhanced, renderCardComponentHeadOffice, renderCardComponentLegacy, renderCardComponentV2, renderCardComponent$1 as renderCardComponentV5, renderCardComponentV6, renderCardComponent as renderCardComponentV6Alias, renderCardComponentV5 as renderCardV5, renderDowntimeList as renderDashboardDowntimeList, renderList as renderDeviceGridList, renderDualLineChart, renderKPICards, renderLineChart, renderSeverityBarChart, renderStateDonutChart, renderStatusDonutChart, renderTrendChart, createDateInput as schedCreateDateInput, createNumberInput as schedCreateNumberInput, createSelect as schedCreateSelect, createTimeInput as schedCreateTimeInput, escapeHtml as schedEscapeHtml, showConfirmModal as schedShowConfirmModal, showNotificationModal as schedShowNotificationModal, shouldFlashIcon, sortDevices as sortDeviceGridDevices, strings, formatEnergy as telemetryInfoFormatEnergy, formatPercentage$1 as telemetryInfoFormatPercentage, formatWater as telemetryInfoFormatWater, temperatureDeviceStatusIcons, timeToMinutes, timeWindowFromInputYMD, toCSV, toFixedSafe, updateStats as updateDeviceGridStats, version, waterDeviceStatusIcons };
15860
+ export { ACTION_BUTTON_CSS_PREFIX, ALARMS_NOTIFICATIONS_PANEL_STYLES, SEVERITY_CONFIG as ALARM_SEVERITY_CONFIG, ALARM_SORT_OPTIONS, STATE_CONFIG as ALARM_STATE_CONFIG, ANNOTATION_TYPE_COLORS, ANNOTATION_TYPE_LABELS, ANNOTATION_TYPE_LABELS_EN, ActionButtonController, type ActionButtonInstance, type ActionButtonParams, type ActionButtonSettings, type ActionButtonSize, type ActionButtonThemeMode, type ActionButtonVariant, ActionButtonView, type Alarm, type AlarmAction, type AlarmCardParams, type AlarmComparisonModalInstance, type AlarmComparisonModalParams, type AlarmFilterTab, type AlarmFilters, type AlarmInfo, type AlarmSeverity, type AlarmSortMode, type AlarmSortOption, type AlarmState, type AlarmStats, type AlarmsEventHandler, type AlarmsEventType, AlarmsNotificationsPanelController, type AlarmsNotificationsPanelInstance, type AlarmsNotificationsPanelParams, type AlarmsNotificationsPanelState, AlarmsNotificationsPanelView, type AlarmsSummaryData, AlarmsSummaryTooltip, type AlarmsTab, type Annotation, type AnnotationFilterState, AnnotationIndicator, type AnnotationIndicatorConfig, type AnnotationIndicatorTheme, type AnnotationStatus, type AnnotationSummary, type AnnotationType, type AppliedFilters, type AuditAction, type AuditEntry, BASDashboardController, type BASDashboardData, type BASDashboardInstance, type BASDashboardParams, type BASDashboardSettings, type BASDashboardState, type BASDashboardThemeMode, BASDashboardView, type BASEventType, type HVACDevice as BASHVACDevice, type HVACDeviceStatus as BASHVACDeviceStatus, type MotorDevice as BASMotorDevice, type MotorDeviceStatus as BASMotorDeviceStatus, type MotorDeviceType as BASMotorDeviceType, type WaterDevice as BASWaterDevice, type WaterDeviceStatus as BASWaterDeviceStatus, type WaterDeviceType as BASWaterDeviceType, BAS_DASHBOARD_CSS_PREFIX, BAS_DASHBOARD_STYLES, type BarChartOptions, type BuildTemplateExportParams, CHART_COLORS, DEFAULT_COLORS as CONSUMPTION_CHART_COLORS, DEFAULT_CONFIG as CONSUMPTION_CHART_DEFAULTS, THEME_COLORS as CONSUMPTION_THEME_COLORS, type CardGridCustomStyle, type CardGridItem, CardGridPanel, type CardGridPanelOptions, type CardKPIs, type CategorySummary, type ChartDomain, type ClampRange, ConnectionStatusType, type Consumption7DaysColors, type Consumption7DaysConfig, type Consumption7DaysData, type Consumption7DaysInstance, type ChartType$2 as ConsumptionChartType, type ConsumptionDataPoint$2 as ConsumptionDataPoint, type IdealRangeConfig as ConsumptionIdealRangeConfig, type ConsumptionModalConfig, type ConsumptionModalInstance, type TemperatureConfig as ConsumptionTemperatureConfig, type TemperatureReferenceLine as ConsumptionTemperatureReferenceLine, type ThemeColors as ConsumptionThemeColors, type ThemeMode$e as ConsumptionThemeMode, type VizMode$2 as ConsumptionVizMode, type ConsumptionWidgetConfig, type ConsumptionWidgetInstance, type ContextOption, type ContractDeviceCounts, type ContractDevicesError, type ContractDevicesPersistResult, type ContractDomain, type ContractDomainCounts, type ContractSummaryData, ContractSummaryTooltip, type ContractTemperatureCounts, type CreateDateRangePickerOptions, type CreateInputDateRangePickerInsideDIVParams, type CustomerCardData$1 as CustomerCardData, type CustomerCardDeviceCounts$1 as CustomerCardDeviceCounts, type CustomerCardMetaCounts$1 as CustomerCardMetaCounts, type ThemeMode$b as CustomerCardThemeMode, CustomerCardV1, type CustomerCardV1Instance, type CustomerCardV1Params, CustomerCardV2, type CustomerCardV2Instance, type CustomerCardV2Params, type CustomerOption, DAY_LABELS, DAY_LABELS_FULL, DECIMAL_OPTIONS, DEFAULT_ACTION_BUTTON_SETTINGS, DEFAULT_ALARM_FILTERS, DEFAULT_ALARM_FILTER_TABS, DEFAULT_ALARM_STATS, DEFAULT_BAS_SETTINGS, DEFAULT_CLAMP_RANGE, DEFAULT_DASHBOARD_KPIS$1 as DEFAULT_DASHBOARD_KPIS, DEFAULT_DAYS_WEEK, DEFAULT_DEVICE_OPERATIONAL_CARD_FILTER_STATE, DEFAULT_ENERGY_GROUP_COLORS, DEFAULT_EQUIPMENT_FILTER_STATE, DEFAULT_EQUIPMENT_STATS, DEFAULT_FANCOIL_SETTINGS, DEFAULT_FANCOIL_STATE, DEFAULT_FOOTER_COLORS, DEFAULT_GAS_GROUP_COLORS, DEFAULT_GRID_FILTER_STATE, DEFAULT_GRID_FILTER_TABS, DEFAULT_HEADER_DARK_THEME, DEFAULT_HEADER_LIGHT_THEME, DEFAULT_HEADER_SHOPPING_CONFIG, DEFAULT_HOLIDAY_SETTINGS, DEFAULT_HOLIDAY_STATE, DEFAULT_IR_SCHEDULE, DEFAULT_IR_SETTINGS, DEFAULT_IR_STATE, DEFAULT_SETTINGS as DEFAULT_MEASUREMENT_SETTINGS, DEFAULT_MENU_CONFIG, DEFAULT_MENU_SHOPPING_CONFIG, DEFAULT_ON_OFF_SCHEDULE, DEFAULT_ON_OFF_SETTINGS, DEFAULT_ON_OFF_STATE, DEFAULT_SETPOINT_SCHEDULE, DEFAULT_SETPOINT_SETTINGS, DEFAULT_SETPOINT_STATE, DEFAULT_SHOPPING_CARDS, DEFAULT_SHOPPING_COLORS, DEFAULT_SOLENOID_SETTINGS, DEFAULT_SOLENOID_STATE, DEFAULT_TABS, DEFAULT_WATER_GROUP_COLORS, DEVICE_COUNT_KEYS, DEVICE_OPERATIONAL_CARD_GRID_STYLES, DEVICE_OPERATIONAL_CARD_STYLES, DEVICE_TYPE_DOMAIN, type DashboardEnergySummary, type DashboardKPIs$1 as DashboardKPIs, type DashboardPeriod$1 as DashboardPeriod, type DashboardWaterSummary, type DateRangeControl, type DateRangeInputController, type DateRangeResult, type DaysWeek, type DemandModalInstance, type DemandModalParams, type DemandModalPdfConfig, type DemandModalStyles, type DeviceAttributes, DeviceCategory, type DeviceComparisonData, DeviceComparisonTooltip, ContextType as DeviceContextType, type DeviceCountKeys, DomainType$2 as DeviceDomainType, DeviceGridV6Controller, type CardGridCustomStyle as DeviceGridV6CustomStyle, type DeviceGridV6Instance, type CardGridItem as DeviceGridV6Item, type DeviceGridV6Params, type SortMode as DeviceGridV6SortMode, type DeviceGridV6Stats, DeviceGridV6View, DeviceGridWidgetFactory, type DeviceInfo$2 as DeviceInfo, DeviceOperationalCardController, type DeviceOperationalCardEventHandler, type DeviceOperationalCardEventType, type DeviceOperationalCardFilterState, DeviceOperationalCardGridController, type DeviceOperationalCardGridEventHandler, type DeviceOperationalCardGridEventType, type DeviceOperationalCardGridFilterState, type DeviceOperationalCardGridInstance, type DeviceOperationalCardGridParams, type SortMode$1 as DeviceOperationalCardGridSortMode, type DeviceOperationalCardGridState, type DeviceOperationalCardGridStats, type ThemeMode$1 as DeviceOperationalCardGridThemeMode, DeviceOperationalCardGridView, type DeviceOperationalCardInstance, type DeviceOperationalCardParams, type DeviceOperationalCardState, type ThemeMode$2 as DeviceOperationalCardThemeMode, DeviceOperationalCardView, type DeviceRelation, type DeviceStatusName, DeviceStatusType, type DeviceTypeLimits, type DistributionChartConfig, type DistributionChartInstance, type DistributionData, type DistributionDomain, type DistributionMode$2 as DistributionMode, type DistributionThemeColors, DomainType$3 as DomainType, type DonutChartOptions, type DowntimeEntry$1 as DowntimeEntry, ENERGY_SORT_OPTIONS, ENERGY_UNITS, EQUIPMENT_CLASSIFICATION_CONFIG, STATUS_CONFIG as EQUIPMENT_STATUS_CONFIG, TYPE_CONFIG as EQUIPMENT_TYPE_CONFIG, EXPORT_DEFAULT_COLORS, EXPORT_DOMAIN_ICONS, EXPORT_DOMAIN_LABELS, EXPORT_DOMAIN_UNITS, type EnergyDisplaySettings, type EnergyEntityData, type EnergyKPI, type EnergyModalContext, type EnergyModalError, type EnergyModalI18n, type EnergyModalStyleOverrides, type ChartType$1 as EnergyPanelChartType, type ConsumptionDataPoint$1 as EnergyPanelConsumptionDataPoint, type DistributionDataPoint$1 as EnergyPanelDistributionDataPoint, type DistributionMode$1 as EnergyPanelDistributionMode, type EnergyCategoryData as EnergyPanelEnergyCategoryData, type EnergySummaryData as EnergyPanelEnergySummaryData, type FetchConsumptionFn$1 as EnergyPanelFetchConsumptionFn, type FetchDistributionFn$1 as EnergyPanelFetchDistributionFn, type EnergyPanelInstance, type OnFilterChangeCallback$2 as EnergyPanelOnFilterChangeCallback, type OnMaximizeCallback$1 as EnergyPanelOnMaximizeCallback, type OnPeriodChangeCallback$2 as EnergyPanelOnPeriodChangeCallback, type OnRefreshCallback$2 as EnergyPanelOnRefreshCallback, type OnVizModeChangeCallback$1 as EnergyPanelOnVizModeChangeCallback, type EnergyPanelParams, type PeriodDays$1 as EnergyPanelPeriodDays, type EnergyPanelState, type ThemeMode$9 as EnergyPanelThemeMode, type VizMode$1 as EnergyPanelVizMode, EnergyRangeTooltip, type EnergyStatus, type EnergyStatusResult, EnergySummaryTooltip, type EnergyUnit, type EntityListItem, EntityListPanel, type EntityListPanelOptions, type EquipmentAction, type EquipmentCardData, EquipmentCategory, type EquipmentFilterState, type EquipmentKPI, type EquipmentStats, type EquipmentStatus$1 as EquipmentStatus, type EquipmentType$1 as EquipmentType, type ExportColorsPallet, type ExportComparisonData, type ExportConfigTemplate, type ExportCustomerData, type ExportCustomerInfo, type ExportData, type ExportDataInput, type ExportDataInstance, type ExportDataPoint, type ExportDeviceInfo, type ExportDomain, type ExportFormat, type ExportGroupData, type ExportOptions, type ExportProgressCallback, type ExportResult, type ExportStats, type ExportType, FANCOIL_IMAGES, FANCOIL_REMOTE_CSS_PREFIX, FILTER_GROUPS, FILTER_TAB_ICONS, DEFAULT_CONFIG_TEMPLATE as FOOTER_DEFAULT_CONFIG_TEMPLATE, DEFAULT_DARK_THEME as FOOTER_DEFAULT_DARK_THEME, DEFAULT_LIGHT_THEME as FOOTER_DEFAULT_LIGHT_THEME, type FancoilMode, FancoilRemoteController, type FancoilRemoteInstance, type FancoilRemoteParams, type FancoilRemoteSettings, FancoilRemoteView, type FancoilState, type FancoilStatus, type FancoilThemeMode, type FilterCategory, type FilterState$1 as FilterCategoryState, type FilterGroup, FilterModalComponent, FilterModalController, type FilterModalDomain, type FilterModalInstance, type FilterModalOptions, type FilterModalParams, type FilterModalState, type FilterModalThemeMode, FilterModalView, type SortMode$3 as FilterSortMode, type FilterSortOption, type FilterTab, type FilterableDevice, type FooterColors, type FooterComponentInstance, type FooterComponentParams, type FooterConfigTemplate, type SelectedEntity as FooterSelectedEntity, type FooterThemeConfig, type FooterThemeMode, type UnitType as FooterUnitType, GRID_SORT_OPTIONS, type CustomerOption$1 as GridCustomerOption, type EquipmentStatus as GridEquipmentStatus, type EquipmentType as GridEquipmentType, type GridFilterTab, type GridSortOption, type GroupColors, HEADER_CSS_PREFIX, DEFAULT_CARD_COLORS as HEADER_DEFAULT_CARD_COLORS, HEADER_DEFAULT_CONFIG_TEMPLATE, HEADER_DEFAULT_LOGO_URL, HEADER_DEVICES_GRID_STYLES, HEADER_SHOPPING_CSS_PREFIX, HEADER_STYLE_DARK, HEADER_STYLE_DEFAULT, HEADER_STYLE_SLIM, type CardColorConfig as HeaderCardColorConfig, type HeaderCardColors, type CardType as HeaderCardType, type HeaderComponentInstance, type HeaderComponentParams, type HeaderConfigTemplate, type HeaderDevice, type HeaderDevicesDomain, HeaderDevicesGridController, type HeaderDevicesGridInstance, type HeaderDevicesGridParams, HeaderDevicesGridView, type HeaderDevicesThemeMode, type HeaderDomainConfig, type HeaderEventType, HeaderFilterModal, type FilterPreset as HeaderFilterPreset, type FilterSelection as HeaderFilterSelection, type HeaderLabels, HeaderPanelComponent, type HeaderPanelOptions, type HeaderPanelStyle, type Shopping$2 as HeaderShopping, type HeaderShoppingConfigTemplate, type ContractState as HeaderShoppingContractState, type DomainType$1 as HeaderShoppingDomainType, type HeaderShoppingEventHandler, type HeaderShoppingEventType, type HeaderShoppingInstance, type HeaderShoppingParams, type HeaderShoppingPeriod, HeaderShoppingView, type HeaderStats, type HeaderThemeConfig, type HeaderThemeMode, HeaderView, type HolidayEntry, IMPORTANCE_COLORS, IMPORTANCE_LABELS, IMPORTANCE_LABELS_EN, type IRCommand, type IRGroupScheduleEntry, type IRScheduleEntry, type ImportanceLevel, type InferredDeviceType, InfoTooltip, type InstantaneousPowerLimits, LoadingSpinner, type LogAnnotationsAttribute, LogHelper, DOMAIN_CONFIG$2 as MEASUREMENT_DOMAIN_CONFIG, MENU_SHOPPING_CSS_PREFIX, METRO_TILE_COLORS, MOTOR_SORT_OPTIONS, type MeasurementDisplaySettings, type MeasurementSetupError, type MeasurementSetupFormData, type MeasurementSetupModalInstance, type MeasurementSetupModalParams, type MeasurementSetupModalStyles, type PersistResult as MeasurementSetupPersistResult, type MenuComponentInstance, type MenuComponentParams, type MenuConfigTemplate, MenuController, type MenuEventHandler, type MenuEventType, type MenuShoppingConfigTemplate, type DashboardStateEvent as MenuShoppingDashboardStateEvent, type DomainType as MenuShoppingDomainType, type MenuShoppingEventHandler, type MenuShoppingEventType, type MenuShoppingInstance, type MenuShoppingParams, type MenuShoppingSettings, type MenuShoppingTab, type MenuShoppingUserInfo, MenuShoppingView, type MenuState, type ThingsboardWidgetContext as MenuThingsboardWidgetContext, MenuView, type MetroTile, type ExportFormat$2 as ModalExportFormat, ModalHeader, type ModalHeaderConfig, type ModalHeaderController, type ModalHeaderControllerOptions, type ModalHeaderHandlers, type ModalHeaderInstance, type ModalHeaderOptions, type ModalTheme, type MyIOAuthConfig, type MyIOAuthInstance, MyIOChartModal, MyIODraggableCard, MyIOSelectionStore, MyIOSelectionStoreClass, MyIOToast, type NewAnnotationData, type NotificationInfo, type NotificationsSummaryData, NotificationsSummaryTooltip, OFFLINE_STATUSES, ONLINE_STATUSES, AVAILABILITY_THRESHOLDS as OPERATIONAL_AVAILABILITY_THRESHOLDS, DEFAULT_DASHBOARD_KPIS as OPERATIONAL_DASHBOARD_DEFAULT_KPIS, PERIOD_OPTIONS as OPERATIONAL_DASHBOARD_PERIOD_OPTIONS, OPERATIONAL_DASHBOARD_STYLES, OPERATIONAL_GENERAL_LIST_STYLES, OPERATIONAL_HEADER_DEVICES_GRID_STYLES, STATUS_CONFIG$1 as OPERATIONAL_STATUS_CONFIG, type OnAlarmActionCallback, type OnAlarmClickCallback, type OnAlarmFilterChangeCallback, type OnAlarmStatsUpdateCallback, type OnEquipmentActionCallback, type OnEquipmentClickCallback, type OnGridFilterChangeCallback, type OnGridStatsUpdateCallback, type OnOffGroupScheduleEntry, type OnOffScheduleEntry, type OnboardFooterLink, type OnboardModalConfig, type OnboardModalHandle, OnboardModalView, type OpenContractDevicesModalParams, type OpenDashboardPopupEnergyOptions, type OpenDashboardPopupSettingsParams, type OpenDashboardPopupWaterTankOptions, type OperationalComparisonModalInstance, type OperationalComparisonModalParams, type OperationalContextChangeEvent, type OperationalDashboardInstance, type DashboardKPIs as OperationalDashboardKPIs, type OperationalDashboardParams, type DashboardPeriod as OperationalDashboardPeriod, type DashboardThemeMode as OperationalDashboardThemeMode, type OperationalDevice, type DowntimeEntry as OperationalDowntimeEntry, type OperationalEquipment, type OperationalEquipmentReadyEvent, OperationalGeneralListController, type OperationalGeneralListInstance, type OperationalGeneralListParams, type OperationalGeneralListState, OperationalGeneralListView, type OperationalHeaderDevicesGridInstance, type OperationalHeaderDevicesGridParams, OperationalHeaderDevicesGridView, type OperationalHeaderLabels, type OperationalHeaderStats, type OperationalHeaderThemeMode, type OperationalIndicatorsAccessEvent, type OperationalIndicatorsAttributes, type OperationalListEventHandler, type OperationalListEventType, type ThemeMode$3 as OperationalListThemeMode, type StatusConfig as OperationalStatusConfig, type OperationalStore, type TrendDataPoint as OperationalTrendDataPoint, DEVICE_TYPES as POWER_LIMITS_DEVICE_TYPES, STATUS_CONFIG$2 as POWER_LIMITS_STATUS_CONFIG, TELEMETRY_TYPES as POWER_LIMITS_TELEMETRY_TYPES, type PaginationState, type Period, type PermissionSet, type PersistResult$1 as PersistResult, type PowerLimitsError, type PowerLimitsFormData, type PowerLimitsModalInstance, type PowerLimitsModalParams, type PowerLimitsModalStyles, type PowerRange, type PowerRanges, type RealTimeTelemetryInstance, type RealTimeTelemetryParams, SCHEDULE_HOLIDAY_CSS_PREFIX, SCHEDULE_IR_CSS_PREFIX, SCHEDULE_ON_OFF_CSS_PREFIX, SCHEDULE_SETPOINT_CSS_PREFIX, SCHED_CSS_PREFIX, SEVERITY_ORDER, SOLENOID_CONTROL_CSS_PREFIX, SOLENOID_IMAGES, STATUS_COLORS, STATUS_LABELS, STATUS_LABELS_EN, STATUS_TO_CONNECTIVITY, type ScheduleEntryBase, ScheduleHolidayController, type ScheduleHolidayInstance, type ScheduleHolidayParams, type ScheduleHolidaySettings, type ScheduleHolidayState, ScheduleHolidayView, ScheduleIRController, type ScheduleIRInstance, type ScheduleIRParams, type ScheduleIRSettings, type ScheduleIRState, ScheduleIRView, ScheduleOnOffController, type ScheduleOnOffInstance, type ScheduleOnOffParams, type ScheduleOnOffSettings, type ScheduleOnOffState, ScheduleOnOffView, ScheduleSetpointController, type ScheduleSetpointDevices, type ScheduleSetpointInstance, type ScheduleSetpointParams, type ScheduleSetpointSettings, type ScheduleSetpointState, ScheduleSetpointView, type SchedulingBaseSettings, type ConfirmFn as SchedulingConfirmFn, type NotifyFn as SchedulingNotifyFn, type SchedulingThemeMode, type SetpointScheduleEntry, type SettingsError, type SettingsEvent, type Shopping$1 as Shopping, type ShoppingCard, type ShoppingCardDeviceCounts, type ShoppingCardMetaCounts, type ShoppingColors, type ShoppingDataPoint, SolenoidControlController, type SolenoidControlInstance, type SolenoidControlParams, type SolenoidControlSettings, SolenoidControlView, type SolenoidState, type SolenoidStatus, type SolenoidThemeMode, type StatusLimits, type StatusSummary$1 as StatusSummary, type StoreRow, CONTEXT_CONFIG$1 as TELEMETRY_CONTEXT_CONFIG, DEFAULT_FILTER_TABS as TELEMETRY_DEFAULT_FILTER_TABS, DOMAIN_CONFIG$1 as TELEMETRY_DOMAIN_CONFIG, CONTEXT_CONFIG as TELEMETRY_GRID_SHOPPING_CONTEXT_CONFIG, DOMAIN_CONFIG as TELEMETRY_GRID_SHOPPING_DOMAIN_CONFIG, DEFAULT_CHART_COLORS as TELEMETRY_INFO_DEFAULT_CHART_COLORS, ENERGY_CATEGORY_CONFIG as TELEMETRY_INFO_ENERGY_CATEGORY_CONFIG, WATER_CATEGORY_CONFIG as TELEMETRY_INFO_WATER_CATEGORY_CONFIG, TEMPERATURE_SORT_OPTIONS, TEMPERATURE_UNITS, type TabConfig, type TbScope, type TelemetryConfigTemplate, type TelemetryContext$1 as TelemetryContext, type TelemetryDevice$1 as TelemetryDevice, type TelemetryDomain$2 as TelemetryDomain, type TelemetryFetcher, type FilterState$2 as TelemetryFilterState, TelemetryGridController, type TelemetryGridEventType, type TelemetryGridInstance, type TelemetryGridParams, type CardAction as TelemetryGridShoppingCardAction, type TelemetryContext as TelemetryGridShoppingContext, type TelemetryDevice as TelemetryGridShoppingDevice, type TelemetryDomain$1 as TelemetryGridShoppingDomain, type FilterState as TelemetryGridShoppingFilterState, type TelemetryGridShoppingInstance, type TelemetryGridShoppingParams, type SortMode$2 as TelemetryGridShoppingSortMode, type TelemetryStats as TelemetryGridShoppingStats, type ThemeMode$5 as TelemetryGridShoppingThemeMode, TelemetryGridView, type CategoryType as TelemetryInfoCategoryType, type ChartColors as TelemetryInfoChartColors, type EnergyState as TelemetryInfoEnergyState, type EnergySummary as TelemetryInfoEnergySummary, type TelemetryDomain as TelemetryInfoShoppingDomain, type TelemetryInfoShoppingInstance, type TelemetryInfoShoppingParams, type ThemeMode$4 as TelemetryInfoShoppingThemeMode, type WaterState as TelemetryInfoWaterState, type WaterSummary as TelemetryInfoWaterSummary, type Shopping as TelemetryShopping, type SortMode$4 as TelemetrySortMode, type TelemetryStats$1 as TelemetryStats, type ThemeMode$c as TelemetryThemeMode, type TelemetryTypeLimits, type TempComparisonData, TempComparisonTooltip, type TempEntityData, TempRangeTooltip, type TempSensorDevice, type TempSensorSummaryData, TempSensorSummaryTooltip, type TempStatus, type TempStatusResult, type TemperatureComparisonModalInstance, type TemperatureComparisonModalParams, type TemperatureDevice, type TemperatureDisplaySettings, type TemperatureGranularity, type TemperatureKPI, type TemperatureModalInstance, type TemperatureModalParams, type TemperatureSettingsInstance, type TemperatureSettingsParams, type TemperatureStats, type TemperatureTelemetry, type TemperatureUnit, type ThingsboardCustomerAttrsConfig, type TimedValue, type TrendChartOptions, type TrendDataPoint$1 as TrendDataPoint, type Customer as UpsellCustomer, type Device as UpsellDevice, type UpsellModalError, type UpsellModalInstance, type UpsellModalParams, type UpsellModalStyles, type UserInfo$2 as UserInfo, type UsersByRole, type UsersSummaryData, UsersSummaryTooltip, type UserInfo as UsersTooltipUserInfo, type ValidationMap, WAITING_STATUSES, WATER_DEVICE_CATEGORIES, WATER_SORT_OPTIONS, WATER_UNITS, DEFAULT_PALETTE as WELCOME_DEFAULT_PALETTE, type WaterCategorySummary, type WaterDisplaySettings, type WaterKPI, type ChartType as WaterPanelChartType, type ConsumptionDataPoint as WaterPanelConsumptionDataPoint, type DistributionDataPoint as WaterPanelDistributionDataPoint, type DistributionMode as WaterPanelDistributionMode, type FetchConsumptionFn as WaterPanelFetchConsumptionFn, type FetchDistributionFn as WaterPanelFetchDistributionFn, type WaterPanelInstance, type OnFilterChangeCallback$1 as WaterPanelOnFilterChangeCallback, type OnMaximizeCallback as WaterPanelOnMaximizeCallback, type OnPeriodChangeCallback$1 as WaterPanelOnPeriodChangeCallback, type OnRefreshCallback$1 as WaterPanelOnRefreshCallback, type OnVizModeChangeCallback as WaterPanelOnVizModeChangeCallback, type WaterPanelParams, type PeriodDays as WaterPanelPeriodDays, type WaterPanelState, type ThemeMode$8 as WaterPanelThemeMode, type VizMode as WaterPanelVizMode, type WaterCategoryData as WaterPanelWaterCategoryData, type WaterSummaryData as WaterPanelWaterSummaryData, type WaterRow, WaterSummaryTooltip, type WaterTankDataPoint, type WaterTankModalContext, type WaterTankModalError, type WaterTankModalI18n, type WaterTankModalStyleOverrides, type WaterTankTelemetryData, type WaterUnit, type WelcomeModalInstance, type WelcomeModalParams, type WelcomePalette, type UserInfo$1 as WelcomeUserInfo, addDetectionContext, addNamespace, aggregateByDay, applyFilters as applyDeviceGridFilters, assignShoppingColors, averageByDay, buildEntityObject as buildDeviceGridEntityObject, buildEquipmentCategoryDataForTooltip, buildEquipmentCategorySummary, buildListItemsThingsboardByUniqueDatasource, buildMyioIngestionAuth, buildTemplateExport, buildWaterReportCSV, buildWaterStoresCSV, calcDeltaPercent, calculateAvailability$1 as calculateAvailability, calculateAvailability as calculateDashboardAvailability, calculateMTBF as calculateDashboardMTBF, calculateMTTR as calculateDashboardMTTR, calculateDeviceStatus, calculateDeviceStatusMasterRules, calculateDeviceStatusWithRanges, calculateStats as calculateExportStats, calculateFleetKPIs, calculateMTBF$1 as calculateMTBF, calculateMTTR$1 as calculateMTTR, calculateShoppingDeviceCounts, calculateShoppingDeviceStats, calculateStats$1 as calculateStats, canModifyAnnotation, clampTemperature, classify, classifyEquipment, classifyEquipmentSubcategory, classifyWaterLabel, classifyWaterLabels, clearAllAuthCaches, connectionStatusIcons, createActionButton, createAlarmCardElement, createAlarmsNotificationsPanelComponent, createAnnotationIndicator, createBASDashboard, createButtonBar, createConsumption7DaysChart, createConsumptionChartWidget, createConsumptionModal, createCustomerCardV1, createCustomerCardV2, createDateRangePicker, createDaysGrid, createBusyModal as createDeviceGridBusyModal, createState as createDeviceGridState, createDeviceGridV6, createDeviceItem, createDeviceItemsFromMap, createDeviceOperationalCardComponent, createDeviceOperationalCardGridComponent, createDistributionChartWidget, createEnergyPanelComponent, createErrorSpan, createFancoilRemote, createFilterModalComponent, createFooterComponent, createGroupScheduleCard, createHeaderComponent, createHeaderDevicesGridComponent, createHeaderShoppingComponent, createInputDateRangePickerInsideDIV, createLibraryVersionChecker, createLoadingSpinner, createLogHelper, createMenuComponent, createMenuShoppingComponent, createModalHeader, createOperationalDashboardComponent, createOperationalGeneralListComponent, createOperationalHeaderDevicesGridComponent, createScheduleCard, createScheduleHoliday, createScheduleIR, createScheduleOnOff, createScheduleSetpoint, createSolenoidControl, createTelemetryGridComponent, createTelemetryGridShoppingComponent, createTelemetryInfoShoppingComponent, createToggleSwitch, createWaterPanelComponent, createWidgetController, decodePayload, decodePayloadBase64Xor, detectContext, detectDeviceType, detectDomainAndContext, detectSuperAdminHolding, detectSuperAdminMyio, determineInterval, deviceStatusIcons, doSchedulesOverlap, exportTemperatureCSV, exportToCSV, exportToCSVAll, extractEntityId, extractMyIOCredentials, extractPowerLimitsForDevice, fetchCurrentUserInfo, fetchTemperatureData, fetchThingsboardCustomerAttrsFromStorage, fetchThingsboardCustomerServerScopeAttrs, findValue, findValueWithDefault, fmtPerc$1 as fmtPerc, fmtPerc as fmtPercLegacy, formatAlarmRelativeTime, formatAllInSameUnit, formatAllInSameWaterUnit, formatPercentage as formatDashboardPercentage, formatDateForInput, formatDateToYMD, formatDateWithTimezoneOffset, formatDuration, formatEnergy$1 as formatEnergy, formatHours, formatNumberReadable, formatRelativeTime, formatTankHeadFromCm, formatTemperature, formatTrend, formatWater$1 as formatWater, formatWaterByGroup, formatWaterVolumeM3, formatarDuracao, generateFilename as generateExportFilename, generateFilterModalStyles, generateMockDowntimeList, generateMockKPIs, generateMockTrendData, getSeverityConfig as getAlarmSeverityConfig, getStateConfig as getAlarmStateConfig, getAnnotationPermissions, getAuthCacheStats, getAvailabilityColorFromThresholds, getAvailableContexts, getCategoryDisplayInfo, getConnectionStatusIcon, getDateRangeArray, getDefaultGroupColors, getDefaultPeriodCurrentDaySoFar, getDefaultPeriodCurrentMonthSoFar, getCachedData as getDeviceGridCachedData, getStatusCategory as getDeviceGridV6StatusCategory, getDeviceStatusCategory, getDeviceStatusIcon, getDeviceStatusInfo, getThemeColors as getDistributionThemeColors, getDomainFromDeviceType, getFirstDayOfMonth, getFirstDayOfMonthFor, getGroupColor, getHashColor, getImageByConsumption, getLastDayOfMonth, getModalHeaderStyles, getAvailabilityColor as getOperationalAvailabilityColor, getStatusColors as getOperationalStatusColors, getPeriodDateRange, getSaoPauloISOString, getSaoPauloISOStringFixed, getShoppingColor, getSuggestedIdentifier, getSuggestedProfiles, getTrendClass, getTrendIcon, getValueByDatakey, getValueByDatakeyLegacy, getWaterCategories, groupByDay, handleDeviceType, hasSelectedDays, injectActionButtonStyles, injectAlarmsNotificationsPanelStyles, injectBASDashboardStyles, injectCustomerCardV1Styles, injectCustomerCardV2Styles, injectStyles as injectDeviceGridV6Styles, injectDeviceOperationalCardGridStyles, injectDeviceOperationalCardStyles, injectFancoilRemoteStyles, injectHeaderDevicesGridStyles, injectHeaderShoppingStyles, injectMenuShoppingStyles, injectOperationalDashboardStyles, injectOperationalGeneralListStyles, injectOperationalHeaderDevicesGridStyles, injectScheduleHolidayStyles, injectScheduleIRStyles, injectScheduleOnOffStyles, injectScheduleSetpointStyles, injectSchedulingSharedStyles, injectSolenoidControlStyles, interpolateTemperature, isAlarmActive, isConnectionStale, isDeviceOffline, isEndAfterStart, isEnergyDevice, isEntradaDevice, isEquipmentDevice, isHydrometerDevice, isInRange, isSolenoidDevice, isStoreDevice, isTankDevice, isTelemetryStale, isTemperatureDevice, isValidConnectionStatus, isValidDeviceStatus, isValidTimeFormat, isWaterCategory, mapConnectionStatus, mapDeviceStatusToCardStatus, mapDeviceToConnectionStatus, myioExportData, normalizeConnectionStatus, normalizeRecipients, numbers, openAlarmComparisonModal, openContractDevicesModal, openDashboardPopup, openDashboardPopupAllReport, openDashboardPopupEnergy, openDashboardPopupReport, openDashboardPopupSettings, openDashboardPopupWaterTank, openDemandModal, openGoalsPanel, openHelpModal, openMeasurementSetupModal, openOnboardModal, openOperationalComparisonModal, openPowerLimitsSetupModal, openRealTimeTelemetryModal, openTemperatureComparisonModal, openTemperatureModal, openTemperatureSettingsModal, openTutorialModal, openUpsellModal, openWelcomeModal, parseInputDateToDate, periodKey, recalculateDeviceStatus, recomputePercentages as recomputeDeviceGridPercentages, removeAlarmsNotificationsPanelStyles, removeBASDashboardStyles, removeDeviceOperationalCardGridStyles, removeDeviceOperationalCardStyles, removeOperationalDashboardStyles, removeOperationalGeneralListStyles, removeOperationalHeaderDevicesGridStyles, removeSchedulingSharedStyles, renderAlarmCard, renderCardComponent$3 as renderCardComponent, renderCardComponent$2 as renderCardComponentEnhanced, renderCardComponentHeadOffice, renderCardComponentLegacy, renderCardComponentV2, renderCardComponent$1 as renderCardComponentV5, renderCardComponentV6, renderCardComponent as renderCardComponentV6Alias, renderCardComponentV5 as renderCardV5, renderDowntimeList as renderDashboardDowntimeList, renderList as renderDeviceGridList, renderDualLineChart, renderKPICards, renderLineChart, renderSeverityBarChart, renderStateDonutChart, renderStatusDonutChart, renderTrendChart, createDateInput as schedCreateDateInput, createNumberInput as schedCreateNumberInput, createSelect as schedCreateSelect, createTimeInput as schedCreateTimeInput, escapeHtml as schedEscapeHtml, showConfirmModal as schedShowConfirmModal, showNotificationModal as schedShowNotificationModal, shouldFlashIcon, sortDevices as sortDeviceGridDevices, strings, formatEnergy as telemetryInfoFormatEnergy, formatPercentage$1 as telemetryInfoFormatPercentage, formatWater as telemetryInfoFormatWater, temperatureDeviceStatusIcons, timeToMinutes, timeWindowFromInputYMD, toCSV, toFixedSafe, updateStats as updateDeviceGridStats, version, waterDeviceStatusIcons };
package/dist/index.js CHANGED
@@ -546,7 +546,7 @@ var init_template_card = __esm({
546
546
  // package.json
547
547
  var package_default = {
548
548
  name: "myio-js-library",
549
- version: "0.1.366",
549
+ version: "0.1.367",
550
550
  description: "A clean, standalone JS SDK for MYIO projects",
551
551
  license: "MIT",
552
552
  repository: "github:gh-myio/myio-js-library",
@@ -1787,6 +1787,10 @@ function isHydrometerDevice(deviceType) {
1787
1787
  const dt = String(deviceType || "").toUpperCase();
1788
1788
  return dt.startsWith("HIDROMETRO");
1789
1789
  }
1790
+ function isSolenoidDevice(deviceType) {
1791
+ const dt = String(deviceType || "").toUpperCase();
1792
+ return dt.includes("SOLENOIDE");
1793
+ }
1790
1794
  function isTemperatureDevice(deviceType) {
1791
1795
  const dt = String(deviceType || "").toUpperCase();
1792
1796
  return dt === "TERMOSTATO" || dt === "SENSOR_TEMP" || dt.includes("TEMP");
@@ -1796,7 +1800,7 @@ function isEnergyDevice(deviceType) {
1796
1800
  return dt === "3F_MEDIDOR" || dt.includes("3F") || dt.includes("MEDIDOR");
1797
1801
  }
1798
1802
  function getDomainFromDeviceType(deviceType) {
1799
- if (isTankDevice(deviceType) || isHydrometerDevice(deviceType)) {
1803
+ if (isTankDevice(deviceType) || isHydrometerDevice(deviceType) || isSolenoidDevice(deviceType)) {
1800
1804
  return DomainType.WATER;
1801
1805
  }
1802
1806
  if (isTemperatureDevice(deviceType)) {
@@ -2088,16 +2092,6 @@ var ContextType = {
2088
2092
  TERMOSTATO: "termostato",
2089
2093
  TERMOSTATO_EXTERNAL: "termostato_external"
2090
2094
  };
2091
- function detectDomain(device) {
2092
- const deviceType = String(device?.deviceType || "").toUpperCase();
2093
- if (deviceType.includes("HIDROMETRO") || deviceType.includes("HIDRO")) {
2094
- return DomainType2.WATER;
2095
- }
2096
- if (deviceType.includes("TERMOSTATO")) {
2097
- return DomainType2.TEMPERATURE;
2098
- }
2099
- return DomainType2.ENERGY;
2100
- }
2101
2095
  function detectContext(device, domain) {
2102
2096
  const deviceType = String(device?.deviceType || "").toUpperCase();
2103
2097
  const deviceProfile = String(device?.deviceProfile || "").toUpperCase();
@@ -2146,7 +2140,7 @@ function detectContext(device, domain) {
2146
2140
  return ContextType.EQUIPMENTS;
2147
2141
  }
2148
2142
  function detectDomainAndContext(device) {
2149
- const domain = detectDomain(device);
2143
+ const domain = getDomainFromDeviceType(device?.deviceType);
2150
2144
  const context = detectContext(device, domain);
2151
2145
  return { domain, context };
2152
2146
  }
@@ -103479,7 +103473,6 @@ export {
103479
103473
  decodePayloadBase64Xor,
103480
103474
  detectContext,
103481
103475
  detectDeviceType,
103482
- detectDomain,
103483
103476
  detectDomainAndContext,
103484
103477
  detectSuperAdminHolding,
103485
103478
  detectSuperAdminMyio,
@@ -103597,6 +103590,7 @@ export {
103597
103590
  isEquipmentDevice,
103598
103591
  isHydrometerDevice,
103599
103592
  isInRange,
103593
+ isSolenoidDevice,
103600
103594
  isStoreDevice,
103601
103595
  isTankDevice,
103602
103596
  isTelemetryStale,
@@ -551,7 +551,7 @@
551
551
 
552
552
  // package.json
553
553
  var package_default = {
554
- version: "0.1.366"};
554
+ version: "0.1.367"};
555
555
 
556
556
  // src/format/energy.ts
557
557
  function formatEnergy(value, unit, decimals = 3) {
@@ -1734,6 +1734,10 @@
1734
1734
  const dt = String(deviceType || "").toUpperCase();
1735
1735
  return dt.startsWith("HIDROMETRO");
1736
1736
  }
1737
+ function isSolenoidDevice(deviceType) {
1738
+ const dt = String(deviceType || "").toUpperCase();
1739
+ return dt.includes("SOLENOIDE");
1740
+ }
1737
1741
  function isTemperatureDevice(deviceType) {
1738
1742
  const dt = String(deviceType || "").toUpperCase();
1739
1743
  return dt === "TERMOSTATO" || dt === "SENSOR_TEMP" || dt.includes("TEMP");
@@ -1743,7 +1747,7 @@
1743
1747
  return dt === "3F_MEDIDOR" || dt.includes("3F") || dt.includes("MEDIDOR");
1744
1748
  }
1745
1749
  function getDomainFromDeviceType(deviceType) {
1746
- if (isTankDevice(deviceType) || isHydrometerDevice(deviceType)) {
1750
+ if (isTankDevice(deviceType) || isHydrometerDevice(deviceType) || isSolenoidDevice(deviceType)) {
1747
1751
  return DomainType.WATER;
1748
1752
  }
1749
1753
  if (isTemperatureDevice(deviceType)) {
@@ -2035,16 +2039,6 @@
2035
2039
  TERMOSTATO: "termostato",
2036
2040
  TERMOSTATO_EXTERNAL: "termostato_external"
2037
2041
  };
2038
- function detectDomain(device) {
2039
- const deviceType = String(device?.deviceType || "").toUpperCase();
2040
- if (deviceType.includes("HIDROMETRO") || deviceType.includes("HIDRO")) {
2041
- return DomainType2.WATER;
2042
- }
2043
- if (deviceType.includes("TERMOSTATO")) {
2044
- return DomainType2.TEMPERATURE;
2045
- }
2046
- return DomainType2.ENERGY;
2047
- }
2048
2042
  function detectContext(device, domain) {
2049
2043
  const deviceType = String(device?.deviceType || "").toUpperCase();
2050
2044
  const deviceProfile = String(device?.deviceProfile || "").toUpperCase();
@@ -2093,7 +2087,7 @@
2093
2087
  return ContextType.EQUIPMENTS;
2094
2088
  }
2095
2089
  function detectDomainAndContext(device) {
2096
- const domain = detectDomain(device);
2090
+ const domain = getDomainFromDeviceType(device?.deviceType);
2097
2091
  const context = detectContext(device, domain);
2098
2092
  return { domain, context };
2099
2093
  }
@@ -103207,7 +103201,6 @@ ${errors.slice(0, 5).join("\n")}` + (errors.length > 5 ? `
103207
103201
  exports.decodePayloadBase64Xor = decodePayloadBase64Xor;
103208
103202
  exports.detectContext = detectContext;
103209
103203
  exports.detectDeviceType = detectDeviceType;
103210
- exports.detectDomain = detectDomain;
103211
103204
  exports.detectDomainAndContext = detectDomainAndContext;
103212
103205
  exports.detectSuperAdminHolding = detectSuperAdminHolding;
103213
103206
  exports.detectSuperAdminMyio = detectSuperAdminMyio;
@@ -103325,6 +103318,7 @@ ${errors.slice(0, 5).join("\n")}` + (errors.length > 5 ? `
103325
103318
  exports.isEquipmentDevice = isEquipmentDevice;
103326
103319
  exports.isHydrometerDevice = isHydrometerDevice;
103327
103320
  exports.isInRange = isInRange;
103321
+ exports.isSolenoidDevice = isSolenoidDevice;
103328
103322
  exports.isStoreDevice = isStoreDevice;
103329
103323
  exports.isTankDevice = isTankDevice;
103330
103324
  exports.isTelemetryStale = isTelemetryStale;