myio-js-library 0.1.44 → 0.1.46
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 +7 -5
- package/dist/index.d.cts +1 -1
- package/dist/index.js +7 -5
- package/dist/myio-js-library.umd.js +7 -5
- package/dist/myio-js-library.umd.min.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -6910,12 +6910,13 @@ var AllReportModal = class {
|
|
|
6910
6910
|
clientSecret: params.api.clientSecret,
|
|
6911
6911
|
base: params.api.dataApiBaseUrl
|
|
6912
6912
|
});
|
|
6913
|
-
this.debugEnabled =
|
|
6913
|
+
this.debugEnabled = params.debug === 1;
|
|
6914
6914
|
this.debugLog("\u{1F680} AllReportModal initialized", {
|
|
6915
6915
|
customerId: params.customerId,
|
|
6916
6916
|
itemsListLength: params.itemsList?.length || 0,
|
|
6917
6917
|
itemsList: params.itemsList,
|
|
6918
6918
|
debugEnabled: this.debugEnabled,
|
|
6919
|
+
debugParam: params.debug,
|
|
6919
6920
|
apiConfig: {
|
|
6920
6921
|
hasIngestionToken: !!params.api.ingestionToken,
|
|
6921
6922
|
dataApiBaseUrl: params.api.dataApiBaseUrl
|
|
@@ -6941,9 +6942,7 @@ var AllReportModal = class {
|
|
|
6941
6942
|
debugEnabled;
|
|
6942
6943
|
// Debug logging helper
|
|
6943
6944
|
debugLog(message, data) {
|
|
6944
|
-
|
|
6945
|
-
console.log(`[AllReportModal DEBUG] ${message}`, data || "");
|
|
6946
|
-
}
|
|
6945
|
+
console.log(`[AllReportModal DEBUG] ${message}`, data || "");
|
|
6947
6946
|
}
|
|
6948
6947
|
// Helper: normalize identifiers (upper, strip spaces and non-alphanum)
|
|
6949
6948
|
normalizeId(v) {
|
|
@@ -6977,14 +6976,16 @@ var AllReportModal = class {
|
|
|
6977
6976
|
return 0;
|
|
6978
6977
|
}
|
|
6979
6978
|
show() {
|
|
6979
|
+
this.debugLog("\u{1F3AD} Modal show() called - creating modal UI");
|
|
6980
6980
|
this.modal = createModal({
|
|
6981
|
-
title:
|
|
6981
|
+
title: `Relat\xF3rio Geral - Todas as Lojas${this.debugEnabled ? " [DEBUG MODE]" : ""}`,
|
|
6982
6982
|
width: "85vw",
|
|
6983
6983
|
height: "90vh",
|
|
6984
6984
|
theme: this.params.ui?.theme || "light"
|
|
6985
6985
|
});
|
|
6986
6986
|
this.renderContent();
|
|
6987
6987
|
this.modal.on("close", () => {
|
|
6988
|
+
this.debugLog("\u{1F6AA} Modal closing - cleaning up resources");
|
|
6988
6989
|
if (this.dateRangePicker) {
|
|
6989
6990
|
this.dateRangePicker.destroy();
|
|
6990
6991
|
this.dateRangePicker = null;
|
|
@@ -6996,6 +6997,7 @@ var AllReportModal = class {
|
|
|
6996
6997
|
this.authClient.clearCache();
|
|
6997
6998
|
this.emit("close");
|
|
6998
6999
|
});
|
|
7000
|
+
this.debugLog("\u2705 Modal created and ready to use");
|
|
6999
7001
|
return {
|
|
7000
7002
|
close: () => this.modal.close(),
|
|
7001
7003
|
on: (event, handler) => this.on(event, handler)
|
package/dist/index.d.cts
CHANGED
package/dist/index.js
CHANGED
|
@@ -6843,12 +6843,13 @@ var AllReportModal = class {
|
|
|
6843
6843
|
clientSecret: params.api.clientSecret,
|
|
6844
6844
|
base: params.api.dataApiBaseUrl
|
|
6845
6845
|
});
|
|
6846
|
-
this.debugEnabled =
|
|
6846
|
+
this.debugEnabled = params.debug === 1;
|
|
6847
6847
|
this.debugLog("\u{1F680} AllReportModal initialized", {
|
|
6848
6848
|
customerId: params.customerId,
|
|
6849
6849
|
itemsListLength: params.itemsList?.length || 0,
|
|
6850
6850
|
itemsList: params.itemsList,
|
|
6851
6851
|
debugEnabled: this.debugEnabled,
|
|
6852
|
+
debugParam: params.debug,
|
|
6852
6853
|
apiConfig: {
|
|
6853
6854
|
hasIngestionToken: !!params.api.ingestionToken,
|
|
6854
6855
|
dataApiBaseUrl: params.api.dataApiBaseUrl
|
|
@@ -6874,9 +6875,7 @@ var AllReportModal = class {
|
|
|
6874
6875
|
debugEnabled;
|
|
6875
6876
|
// Debug logging helper
|
|
6876
6877
|
debugLog(message, data) {
|
|
6877
|
-
|
|
6878
|
-
console.log(`[AllReportModal DEBUG] ${message}`, data || "");
|
|
6879
|
-
}
|
|
6878
|
+
console.log(`[AllReportModal DEBUG] ${message}`, data || "");
|
|
6880
6879
|
}
|
|
6881
6880
|
// Helper: normalize identifiers (upper, strip spaces and non-alphanum)
|
|
6882
6881
|
normalizeId(v) {
|
|
@@ -6910,14 +6909,16 @@ var AllReportModal = class {
|
|
|
6910
6909
|
return 0;
|
|
6911
6910
|
}
|
|
6912
6911
|
show() {
|
|
6912
|
+
this.debugLog("\u{1F3AD} Modal show() called - creating modal UI");
|
|
6913
6913
|
this.modal = createModal({
|
|
6914
|
-
title:
|
|
6914
|
+
title: `Relat\xF3rio Geral - Todas as Lojas${this.debugEnabled ? " [DEBUG MODE]" : ""}`,
|
|
6915
6915
|
width: "85vw",
|
|
6916
6916
|
height: "90vh",
|
|
6917
6917
|
theme: this.params.ui?.theme || "light"
|
|
6918
6918
|
});
|
|
6919
6919
|
this.renderContent();
|
|
6920
6920
|
this.modal.on("close", () => {
|
|
6921
|
+
this.debugLog("\u{1F6AA} Modal closing - cleaning up resources");
|
|
6921
6922
|
if (this.dateRangePicker) {
|
|
6922
6923
|
this.dateRangePicker.destroy();
|
|
6923
6924
|
this.dateRangePicker = null;
|
|
@@ -6929,6 +6930,7 @@ var AllReportModal = class {
|
|
|
6929
6930
|
this.authClient.clearCache();
|
|
6930
6931
|
this.emit("close");
|
|
6931
6932
|
});
|
|
6933
|
+
this.debugLog("\u2705 Modal created and ready to use");
|
|
6932
6934
|
return {
|
|
6933
6935
|
close: () => this.modal.close(),
|
|
6934
6936
|
on: (event, handler) => this.on(event, handler)
|
|
@@ -6832,12 +6832,13 @@
|
|
|
6832
6832
|
clientSecret: params.api.clientSecret,
|
|
6833
6833
|
base: params.api.dataApiBaseUrl
|
|
6834
6834
|
});
|
|
6835
|
-
this.debugEnabled =
|
|
6835
|
+
this.debugEnabled = params.debug === 1;
|
|
6836
6836
|
this.debugLog("\u{1F680} AllReportModal initialized", {
|
|
6837
6837
|
customerId: params.customerId,
|
|
6838
6838
|
itemsListLength: params.itemsList?.length || 0,
|
|
6839
6839
|
itemsList: params.itemsList,
|
|
6840
6840
|
debugEnabled: this.debugEnabled,
|
|
6841
|
+
debugParam: params.debug,
|
|
6841
6842
|
apiConfig: {
|
|
6842
6843
|
hasIngestionToken: !!params.api.ingestionToken,
|
|
6843
6844
|
dataApiBaseUrl: params.api.dataApiBaseUrl
|
|
@@ -6863,9 +6864,7 @@
|
|
|
6863
6864
|
debugEnabled;
|
|
6864
6865
|
// Debug logging helper
|
|
6865
6866
|
debugLog(message, data) {
|
|
6866
|
-
|
|
6867
|
-
console.log(`[AllReportModal DEBUG] ${message}`, data || "");
|
|
6868
|
-
}
|
|
6867
|
+
console.log(`[AllReportModal DEBUG] ${message}`, data || "");
|
|
6869
6868
|
}
|
|
6870
6869
|
// Helper: normalize identifiers (upper, strip spaces and non-alphanum)
|
|
6871
6870
|
normalizeId(v) {
|
|
@@ -6899,14 +6898,16 @@
|
|
|
6899
6898
|
return 0;
|
|
6900
6899
|
}
|
|
6901
6900
|
show() {
|
|
6901
|
+
this.debugLog("\u{1F3AD} Modal show() called - creating modal UI");
|
|
6902
6902
|
this.modal = createModal({
|
|
6903
|
-
title:
|
|
6903
|
+
title: `Relat\xF3rio Geral - Todas as Lojas${this.debugEnabled ? " [DEBUG MODE]" : ""}`,
|
|
6904
6904
|
width: "85vw",
|
|
6905
6905
|
height: "90vh",
|
|
6906
6906
|
theme: this.params.ui?.theme || "light"
|
|
6907
6907
|
});
|
|
6908
6908
|
this.renderContent();
|
|
6909
6909
|
this.modal.on("close", () => {
|
|
6910
|
+
this.debugLog("\u{1F6AA} Modal closing - cleaning up resources");
|
|
6910
6911
|
if (this.dateRangePicker) {
|
|
6911
6912
|
this.dateRangePicker.destroy();
|
|
6912
6913
|
this.dateRangePicker = null;
|
|
@@ -6918,6 +6919,7 @@
|
|
|
6918
6919
|
this.authClient.clearCache();
|
|
6919
6920
|
this.emit("close");
|
|
6920
6921
|
});
|
|
6922
|
+
this.debugLog("\u2705 Modal created and ready to use");
|
|
6921
6923
|
return {
|
|
6922
6924
|
close: () => this.modal.close(),
|
|
6923
6925
|
on: (event, handler) => this.on(event, handler)
|