myio-js-library 0.1.43 → 0.1.45
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 +11 -5
- package/dist/index.d.cts +1 -0
- package/dist/index.js +11 -5
- package/dist/myio-js-library.umd.js +11 -5
- package/dist/myio-js-library.umd.min.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -6902,7 +6902,7 @@ function attachFilterOrderingModal(props) {
|
|
|
6902
6902
|
}
|
|
6903
6903
|
|
|
6904
6904
|
// src/components/premium-modals/report-all/AllReportModal.ts
|
|
6905
|
-
var AllReportModal = class
|
|
6905
|
+
var AllReportModal = class {
|
|
6906
6906
|
constructor(params) {
|
|
6907
6907
|
this.params = params;
|
|
6908
6908
|
this.authClient = new AuthClient({
|
|
@@ -6910,10 +6910,13 @@ var AllReportModal = class _AllReportModal {
|
|
|
6910
6910
|
clientSecret: params.api.clientSecret,
|
|
6911
6911
|
base: params.api.dataApiBaseUrl
|
|
6912
6912
|
});
|
|
6913
|
+
this.debugEnabled = params.debug === 1;
|
|
6913
6914
|
this.debugLog("\u{1F680} AllReportModal initialized", {
|
|
6914
6915
|
customerId: params.customerId,
|
|
6915
6916
|
itemsListLength: params.itemsList?.length || 0,
|
|
6916
6917
|
itemsList: params.itemsList,
|
|
6918
|
+
debugEnabled: this.debugEnabled,
|
|
6919
|
+
debugParam: params.debug,
|
|
6917
6920
|
apiConfig: {
|
|
6918
6921
|
hasIngestionToken: !!params.api.ingestionToken,
|
|
6919
6922
|
dataApiBaseUrl: params.api.dataApiBaseUrl
|
|
@@ -6935,11 +6938,11 @@ var AllReportModal = class _AllReportModal {
|
|
|
6935
6938
|
filterModal = null;
|
|
6936
6939
|
selectedStoreIds = /* @__PURE__ */ new Set();
|
|
6937
6940
|
currentSortMode = "CONSUMPTION_DESC";
|
|
6938
|
-
// Debug logging flag -
|
|
6939
|
-
|
|
6941
|
+
// Debug logging flag - controlled by params.debug
|
|
6942
|
+
debugEnabled;
|
|
6940
6943
|
// Debug logging helper
|
|
6941
6944
|
debugLog(message, data) {
|
|
6942
|
-
if (
|
|
6945
|
+
if (this.debugEnabled) {
|
|
6943
6946
|
console.log(`[AllReportModal DEBUG] ${message}`, data || "");
|
|
6944
6947
|
}
|
|
6945
6948
|
}
|
|
@@ -6975,14 +6978,16 @@ var AllReportModal = class _AllReportModal {
|
|
|
6975
6978
|
return 0;
|
|
6976
6979
|
}
|
|
6977
6980
|
show() {
|
|
6981
|
+
this.debugLog("\u{1F3AD} Modal show() called - creating modal UI");
|
|
6978
6982
|
this.modal = createModal({
|
|
6979
|
-
title:
|
|
6983
|
+
title: `Relat\xF3rio Geral - Todas as Lojas${this.debugEnabled ? " [DEBUG MODE]" : ""}`,
|
|
6980
6984
|
width: "85vw",
|
|
6981
6985
|
height: "90vh",
|
|
6982
6986
|
theme: this.params.ui?.theme || "light"
|
|
6983
6987
|
});
|
|
6984
6988
|
this.renderContent();
|
|
6985
6989
|
this.modal.on("close", () => {
|
|
6990
|
+
this.debugLog("\u{1F6AA} Modal closing - cleaning up resources");
|
|
6986
6991
|
if (this.dateRangePicker) {
|
|
6987
6992
|
this.dateRangePicker.destroy();
|
|
6988
6993
|
this.dateRangePicker = null;
|
|
@@ -6994,6 +6999,7 @@ var AllReportModal = class _AllReportModal {
|
|
|
6994
6999
|
this.authClient.clearCache();
|
|
6995
7000
|
this.emit("close");
|
|
6996
7001
|
});
|
|
7002
|
+
this.debugLog("\u2705 Modal created and ready to use");
|
|
6997
7003
|
return {
|
|
6998
7004
|
close: () => this.modal.close(),
|
|
6999
7005
|
on: (event, handler) => this.on(event, handler)
|
package/dist/index.d.cts
CHANGED
package/dist/index.js
CHANGED
|
@@ -6835,7 +6835,7 @@ function attachFilterOrderingModal(props) {
|
|
|
6835
6835
|
}
|
|
6836
6836
|
|
|
6837
6837
|
// src/components/premium-modals/report-all/AllReportModal.ts
|
|
6838
|
-
var AllReportModal = class
|
|
6838
|
+
var AllReportModal = class {
|
|
6839
6839
|
constructor(params) {
|
|
6840
6840
|
this.params = params;
|
|
6841
6841
|
this.authClient = new AuthClient({
|
|
@@ -6843,10 +6843,13 @@ var AllReportModal = class _AllReportModal {
|
|
|
6843
6843
|
clientSecret: params.api.clientSecret,
|
|
6844
6844
|
base: params.api.dataApiBaseUrl
|
|
6845
6845
|
});
|
|
6846
|
+
this.debugEnabled = params.debug === 1;
|
|
6846
6847
|
this.debugLog("\u{1F680} AllReportModal initialized", {
|
|
6847
6848
|
customerId: params.customerId,
|
|
6848
6849
|
itemsListLength: params.itemsList?.length || 0,
|
|
6849
6850
|
itemsList: params.itemsList,
|
|
6851
|
+
debugEnabled: this.debugEnabled,
|
|
6852
|
+
debugParam: params.debug,
|
|
6850
6853
|
apiConfig: {
|
|
6851
6854
|
hasIngestionToken: !!params.api.ingestionToken,
|
|
6852
6855
|
dataApiBaseUrl: params.api.dataApiBaseUrl
|
|
@@ -6868,11 +6871,11 @@ var AllReportModal = class _AllReportModal {
|
|
|
6868
6871
|
filterModal = null;
|
|
6869
6872
|
selectedStoreIds = /* @__PURE__ */ new Set();
|
|
6870
6873
|
currentSortMode = "CONSUMPTION_DESC";
|
|
6871
|
-
// Debug logging flag -
|
|
6872
|
-
|
|
6874
|
+
// Debug logging flag - controlled by params.debug
|
|
6875
|
+
debugEnabled;
|
|
6873
6876
|
// Debug logging helper
|
|
6874
6877
|
debugLog(message, data) {
|
|
6875
|
-
if (
|
|
6878
|
+
if (this.debugEnabled) {
|
|
6876
6879
|
console.log(`[AllReportModal DEBUG] ${message}`, data || "");
|
|
6877
6880
|
}
|
|
6878
6881
|
}
|
|
@@ -6908,14 +6911,16 @@ var AllReportModal = class _AllReportModal {
|
|
|
6908
6911
|
return 0;
|
|
6909
6912
|
}
|
|
6910
6913
|
show() {
|
|
6914
|
+
this.debugLog("\u{1F3AD} Modal show() called - creating modal UI");
|
|
6911
6915
|
this.modal = createModal({
|
|
6912
|
-
title:
|
|
6916
|
+
title: `Relat\xF3rio Geral - Todas as Lojas${this.debugEnabled ? " [DEBUG MODE]" : ""}`,
|
|
6913
6917
|
width: "85vw",
|
|
6914
6918
|
height: "90vh",
|
|
6915
6919
|
theme: this.params.ui?.theme || "light"
|
|
6916
6920
|
});
|
|
6917
6921
|
this.renderContent();
|
|
6918
6922
|
this.modal.on("close", () => {
|
|
6923
|
+
this.debugLog("\u{1F6AA} Modal closing - cleaning up resources");
|
|
6919
6924
|
if (this.dateRangePicker) {
|
|
6920
6925
|
this.dateRangePicker.destroy();
|
|
6921
6926
|
this.dateRangePicker = null;
|
|
@@ -6927,6 +6932,7 @@ var AllReportModal = class _AllReportModal {
|
|
|
6927
6932
|
this.authClient.clearCache();
|
|
6928
6933
|
this.emit("close");
|
|
6929
6934
|
});
|
|
6935
|
+
this.debugLog("\u2705 Modal created and ready to use");
|
|
6930
6936
|
return {
|
|
6931
6937
|
close: () => this.modal.close(),
|
|
6932
6938
|
on: (event, handler) => this.on(event, handler)
|
|
@@ -6824,7 +6824,7 @@
|
|
|
6824
6824
|
}
|
|
6825
6825
|
|
|
6826
6826
|
// src/components/premium-modals/report-all/AllReportModal.ts
|
|
6827
|
-
var AllReportModal = class
|
|
6827
|
+
var AllReportModal = class {
|
|
6828
6828
|
constructor(params) {
|
|
6829
6829
|
this.params = params;
|
|
6830
6830
|
this.authClient = new AuthClient({
|
|
@@ -6832,10 +6832,13 @@
|
|
|
6832
6832
|
clientSecret: params.api.clientSecret,
|
|
6833
6833
|
base: params.api.dataApiBaseUrl
|
|
6834
6834
|
});
|
|
6835
|
+
this.debugEnabled = params.debug === 1;
|
|
6835
6836
|
this.debugLog("\u{1F680} AllReportModal initialized", {
|
|
6836
6837
|
customerId: params.customerId,
|
|
6837
6838
|
itemsListLength: params.itemsList?.length || 0,
|
|
6838
6839
|
itemsList: params.itemsList,
|
|
6840
|
+
debugEnabled: this.debugEnabled,
|
|
6841
|
+
debugParam: params.debug,
|
|
6839
6842
|
apiConfig: {
|
|
6840
6843
|
hasIngestionToken: !!params.api.ingestionToken,
|
|
6841
6844
|
dataApiBaseUrl: params.api.dataApiBaseUrl
|
|
@@ -6857,11 +6860,11 @@
|
|
|
6857
6860
|
filterModal = null;
|
|
6858
6861
|
selectedStoreIds = /* @__PURE__ */ new Set();
|
|
6859
6862
|
currentSortMode = "CONSUMPTION_DESC";
|
|
6860
|
-
// Debug logging flag -
|
|
6861
|
-
|
|
6863
|
+
// Debug logging flag - controlled by params.debug
|
|
6864
|
+
debugEnabled;
|
|
6862
6865
|
// Debug logging helper
|
|
6863
6866
|
debugLog(message, data) {
|
|
6864
|
-
{
|
|
6867
|
+
if (this.debugEnabled) {
|
|
6865
6868
|
console.log(`[AllReportModal DEBUG] ${message}`, data || "");
|
|
6866
6869
|
}
|
|
6867
6870
|
}
|
|
@@ -6897,14 +6900,16 @@
|
|
|
6897
6900
|
return 0;
|
|
6898
6901
|
}
|
|
6899
6902
|
show() {
|
|
6903
|
+
this.debugLog("\u{1F3AD} Modal show() called - creating modal UI");
|
|
6900
6904
|
this.modal = createModal({
|
|
6901
|
-
title:
|
|
6905
|
+
title: `Relat\xF3rio Geral - Todas as Lojas${this.debugEnabled ? " [DEBUG MODE]" : ""}`,
|
|
6902
6906
|
width: "85vw",
|
|
6903
6907
|
height: "90vh",
|
|
6904
6908
|
theme: this.params.ui?.theme || "light"
|
|
6905
6909
|
});
|
|
6906
6910
|
this.renderContent();
|
|
6907
6911
|
this.modal.on("close", () => {
|
|
6912
|
+
this.debugLog("\u{1F6AA} Modal closing - cleaning up resources");
|
|
6908
6913
|
if (this.dateRangePicker) {
|
|
6909
6914
|
this.dateRangePicker.destroy();
|
|
6910
6915
|
this.dateRangePicker = null;
|
|
@@ -6916,6 +6921,7 @@
|
|
|
6916
6921
|
this.authClient.clearCache();
|
|
6917
6922
|
this.emit("close");
|
|
6918
6923
|
});
|
|
6924
|
+
this.debugLog("\u2705 Modal created and ready to use");
|
|
6919
6925
|
return {
|
|
6920
6926
|
close: () => this.modal.close(),
|
|
6921
6927
|
on: (event, handler) => this.on(event, handler)
|