myio-js-library 0.1.77 → 0.1.78
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 +4 -4
- package/dist/index.d.cts +2 -2
- package/dist/index.js +3 -3
- package/dist/myio-js-library.umd.js +3 -3
- package/dist/myio-js-library.umd.min.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -640,9 +640,9 @@ __export(index_exports, {
|
|
|
640
640
|
openDashboardPopupSettings: () => openDashboardPopupSettings,
|
|
641
641
|
openDemandModal: () => openDemandModal,
|
|
642
642
|
parseInputDateToDate: () => parseInputDateToDate,
|
|
643
|
-
renderCardCompenteHeadOffice: () => renderCardCompenteHeadOffice,
|
|
644
643
|
renderCardComponent: () => renderCardComponent,
|
|
645
644
|
renderCardComponentEnhanced: () => renderCardComponent2,
|
|
645
|
+
renderCardComponentHeadOffice: () => renderCardComponentHeadOffice,
|
|
646
646
|
renderCardComponentLegacy: () => renderCardComponentLegacy,
|
|
647
647
|
renderCardComponentV2: () => renderCardComponentV2,
|
|
648
648
|
shouldFlashIcon: () => shouldFlashIcon,
|
|
@@ -4939,9 +4939,9 @@ function showInfoModal(title, bodyHtml) {
|
|
|
4939
4939
|
modalBody.innerHTML = bodyHtml;
|
|
4940
4940
|
modalOverlay.classList.add("visible");
|
|
4941
4941
|
}
|
|
4942
|
-
function
|
|
4942
|
+
function renderCardComponentHeadOffice(containerEl, params) {
|
|
4943
4943
|
if (!containerEl) {
|
|
4944
|
-
throw new Error("
|
|
4944
|
+
throw new Error("renderCardComponentHeadOffice: containerEl is required");
|
|
4945
4945
|
}
|
|
4946
4946
|
ensureCss();
|
|
4947
4947
|
const state = normalizeParams(params);
|
|
@@ -12490,9 +12490,9 @@ async function openDemandModal(params) {
|
|
|
12490
12490
|
openDashboardPopupSettings,
|
|
12491
12491
|
openDemandModal,
|
|
12492
12492
|
parseInputDateToDate,
|
|
12493
|
-
renderCardCompenteHeadOffice,
|
|
12494
12493
|
renderCardComponent,
|
|
12495
12494
|
renderCardComponentEnhanced,
|
|
12495
|
+
renderCardComponentHeadOffice,
|
|
12496
12496
|
renderCardComponentLegacy,
|
|
12497
12497
|
renderCardComponentV2,
|
|
12498
12498
|
shouldFlashIcon,
|
package/dist/index.d.cts
CHANGED
|
@@ -761,7 +761,7 @@ declare function renderCardComponentLegacy(options: any): any;
|
|
|
761
761
|
/**
|
|
762
762
|
* Main render function
|
|
763
763
|
*/
|
|
764
|
-
declare function
|
|
764
|
+
declare function renderCardComponentHeadOffice(containerEl: any, params: any): {
|
|
765
765
|
update(next: any): void;
|
|
766
766
|
destroy(): void;
|
|
767
767
|
getRoot(): HTMLDivElement;
|
|
@@ -1542,4 +1542,4 @@ interface DemandModalInstance {
|
|
|
1542
1542
|
*/
|
|
1543
1543
|
declare function openDemandModal(params: DemandModalParams): Promise<DemandModalInstance>;
|
|
1544
1544
|
|
|
1545
|
-
export { ConnectionStatusType, type CreateDateRangePickerOptions, type CreateInputDateRangePickerInsideDIVParams, type DateRangeControl, type DateRangeInputController, type DateRangeResult, type DemandModalInstance, type DemandModalParams, type DemandModalPdfConfig, type DemandModalStyles, DeviceStatusType, type EnergyModalContext, type EnergyModalError, type EnergyModalI18n, type EnergyModalStyleOverrides, type MyIOAuthConfig, type MyIOAuthInstance, MyIOChartModal, MyIODraggableCard, MyIOSelectionStore, MyIOSelectionStoreClass, type OpenDashboardPopupEnergyOptions, type OpenDashboardPopupSettingsParams, type PersistResult, type SettingsError, type SettingsEvent, type StoreRow, type TbScope, type TelemetryFetcher, type ThingsboardCustomerAttrsConfig, type TimedValue, type WaterRow, addDetectionContext, addNamespace, averageByDay, buildListItemsThingsboardByUniqueDatasource, buildMyioIngestionAuth, buildWaterReportCSV, buildWaterStoresCSV, calcDeltaPercent, calculateDeviceStatus, classify, classifyWaterLabel, classifyWaterLabels, clearAllAuthCaches, connectionStatusIcons, createDateRangePicker, createInputDateRangePickerInsideDIV, decodePayload, decodePayloadBase64Xor, detectDeviceType, determineInterval, deviceStatusIcons, exportToCSV, exportToCSVAll, extractMyIOCredentials, fetchThingsboardCustomerAttrsFromStorage, fetchThingsboardCustomerServerScopeAttrs, findValue, fmtPerc$1 as fmtPerc, fmtPerc as fmtPercLegacy, formatAllInSameUnit, formatAllInSameWaterUnit, formatDateForInput, formatDateToYMD, formatDateWithTimezoneOffset, formatEnergy, formatNumberReadable, formatTankHeadFromCm, formatWaterByGroup, formatWaterVolumeM3, getAuthCacheStats, getAvailableContexts, getConnectionStatusIcon, getDateRangeArray, getDeviceStatusIcon, getDeviceStatusInfo, getSaoPauloISOString, getSaoPauloISOStringFixed, getValueByDatakey, getValueByDatakeyLegacy, getWaterCategories, groupByDay, isDeviceOffline, isValidConnectionStatus, isValidDeviceStatus, isWaterCategory, mapDeviceStatusToCardStatus, mapDeviceToConnectionStatus, normalizeRecipients, numbers, openDashboardPopup, openDashboardPopupAllReport, openDashboardPopupEnergy, openDashboardPopupReport, openDashboardPopupSettings, openDemandModal, parseInputDateToDate,
|
|
1545
|
+
export { ConnectionStatusType, type CreateDateRangePickerOptions, type CreateInputDateRangePickerInsideDIVParams, type DateRangeControl, type DateRangeInputController, type DateRangeResult, type DemandModalInstance, type DemandModalParams, type DemandModalPdfConfig, type DemandModalStyles, DeviceStatusType, type EnergyModalContext, type EnergyModalError, type EnergyModalI18n, type EnergyModalStyleOverrides, type MyIOAuthConfig, type MyIOAuthInstance, MyIOChartModal, MyIODraggableCard, MyIOSelectionStore, MyIOSelectionStoreClass, type OpenDashboardPopupEnergyOptions, type OpenDashboardPopupSettingsParams, type PersistResult, type SettingsError, type SettingsEvent, type StoreRow, type TbScope, type TelemetryFetcher, type ThingsboardCustomerAttrsConfig, type TimedValue, type WaterRow, addDetectionContext, addNamespace, averageByDay, buildListItemsThingsboardByUniqueDatasource, buildMyioIngestionAuth, buildWaterReportCSV, buildWaterStoresCSV, calcDeltaPercent, calculateDeviceStatus, classify, classifyWaterLabel, classifyWaterLabels, clearAllAuthCaches, connectionStatusIcons, createDateRangePicker, createInputDateRangePickerInsideDIV, decodePayload, decodePayloadBase64Xor, detectDeviceType, determineInterval, deviceStatusIcons, exportToCSV, exportToCSVAll, extractMyIOCredentials, fetchThingsboardCustomerAttrsFromStorage, fetchThingsboardCustomerServerScopeAttrs, findValue, fmtPerc$1 as fmtPerc, fmtPerc as fmtPercLegacy, formatAllInSameUnit, formatAllInSameWaterUnit, formatDateForInput, formatDateToYMD, formatDateWithTimezoneOffset, formatEnergy, formatNumberReadable, formatTankHeadFromCm, formatWaterByGroup, formatWaterVolumeM3, getAuthCacheStats, getAvailableContexts, getConnectionStatusIcon, getDateRangeArray, getDeviceStatusIcon, getDeviceStatusInfo, getSaoPauloISOString, getSaoPauloISOStringFixed, getValueByDatakey, getValueByDatakeyLegacy, getWaterCategories, groupByDay, isDeviceOffline, isValidConnectionStatus, isValidDeviceStatus, isWaterCategory, mapDeviceStatusToCardStatus, mapDeviceToConnectionStatus, normalizeRecipients, numbers, openDashboardPopup, openDashboardPopupAllReport, openDashboardPopupEnergy, openDashboardPopupReport, openDashboardPopupSettings, openDemandModal, parseInputDateToDate, renderCardComponent$1 as renderCardComponent, renderCardComponent as renderCardComponentEnhanced, renderCardComponentHeadOffice, renderCardComponentLegacy, renderCardComponentV2, shouldFlashIcon, strings, timeWindowFromInputYMD, toCSV, toFixedSafe };
|
package/dist/index.js
CHANGED
|
@@ -4851,9 +4851,9 @@ function showInfoModal(title, bodyHtml) {
|
|
|
4851
4851
|
modalBody.innerHTML = bodyHtml;
|
|
4852
4852
|
modalOverlay.classList.add("visible");
|
|
4853
4853
|
}
|
|
4854
|
-
function
|
|
4854
|
+
function renderCardComponentHeadOffice(containerEl, params) {
|
|
4855
4855
|
if (!containerEl) {
|
|
4856
|
-
throw new Error("
|
|
4856
|
+
throw new Error("renderCardComponentHeadOffice: containerEl is required");
|
|
4857
4857
|
}
|
|
4858
4858
|
ensureCss();
|
|
4859
4859
|
const state = normalizeParams(params);
|
|
@@ -12401,9 +12401,9 @@ export {
|
|
|
12401
12401
|
openDashboardPopupSettings,
|
|
12402
12402
|
openDemandModal,
|
|
12403
12403
|
parseInputDateToDate,
|
|
12404
|
-
renderCardCompenteHeadOffice,
|
|
12405
12404
|
renderCardComponent,
|
|
12406
12405
|
renderCardComponent2 as renderCardComponentEnhanced,
|
|
12406
|
+
renderCardComponentHeadOffice,
|
|
12407
12407
|
renderCardComponentLegacy,
|
|
12408
12408
|
renderCardComponentV2,
|
|
12409
12409
|
shouldFlashIcon,
|
|
@@ -4849,9 +4849,9 @@
|
|
|
4849
4849
|
modalBody.innerHTML = bodyHtml;
|
|
4850
4850
|
modalOverlay.classList.add("visible");
|
|
4851
4851
|
}
|
|
4852
|
-
function
|
|
4852
|
+
function renderCardComponentHeadOffice(containerEl, params) {
|
|
4853
4853
|
if (!containerEl) {
|
|
4854
|
-
throw new Error("
|
|
4854
|
+
throw new Error("renderCardComponentHeadOffice: containerEl is required");
|
|
4855
4855
|
}
|
|
4856
4856
|
ensureCss();
|
|
4857
4857
|
const state = normalizeParams(params);
|
|
@@ -12396,9 +12396,9 @@
|
|
|
12396
12396
|
exports.openDashboardPopupSettings = openDashboardPopupSettings;
|
|
12397
12397
|
exports.openDemandModal = openDemandModal;
|
|
12398
12398
|
exports.parseInputDateToDate = parseInputDateToDate;
|
|
12399
|
-
exports.renderCardCompenteHeadOffice = renderCardCompenteHeadOffice;
|
|
12400
12399
|
exports.renderCardComponent = renderCardComponent;
|
|
12401
12400
|
exports.renderCardComponentEnhanced = renderCardComponent2;
|
|
12401
|
+
exports.renderCardComponentHeadOffice = renderCardComponentHeadOffice;
|
|
12402
12402
|
exports.renderCardComponentLegacy = renderCardComponentLegacy;
|
|
12403
12403
|
exports.renderCardComponentV2 = renderCardComponentV2;
|
|
12404
12404
|
exports.shouldFlashIcon = shouldFlashIcon;
|