myio-js-library 0.1.98 → 0.1.99
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 +84 -59
- package/dist/index.d.cts +10 -0
- package/dist/index.js +84 -59
- package/dist/myio-js-library.umd.js +84 -59
- package/dist/myio-js-library.umd.min.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1911,38 +1911,58 @@ function base64ToBytesStrict(b64) {
|
|
|
1911
1911
|
init_template_card();
|
|
1912
1912
|
|
|
1913
1913
|
// src/components/SelectionStore.js
|
|
1914
|
-
var MyIOSelectionStoreClass = class {
|
|
1914
|
+
var MyIOSelectionStoreClass = class _MyIOSelectionStoreClass {
|
|
1915
|
+
// Global debug flag - controls all console logs
|
|
1916
|
+
static GlobalDebug = false;
|
|
1917
|
+
/**
|
|
1918
|
+
* Enable or disable all console logs from SelectionStore
|
|
1919
|
+
* @param {boolean} enabled - true to enable logs, false to disable
|
|
1920
|
+
*/
|
|
1921
|
+
static setGlobalDebug(enabled) {
|
|
1922
|
+
_MyIOSelectionStoreClass.GlobalDebug = !!enabled;
|
|
1923
|
+
console.log(`[SelectionStore] \u{1F527} Global debug ${enabled ? "ENABLED" : "DISABLED"}`);
|
|
1924
|
+
}
|
|
1925
|
+
/**
|
|
1926
|
+
* Internal logging method - respects GlobalDebug flag
|
|
1927
|
+
*/
|
|
1928
|
+
_log(level, ...args) {
|
|
1929
|
+
if (!_MyIOSelectionStoreClass.GlobalDebug) return;
|
|
1930
|
+
const logMethod = console[level] || console.log;
|
|
1931
|
+
logMethod.apply(console, args);
|
|
1932
|
+
}
|
|
1915
1933
|
constructor() {
|
|
1916
|
-
|
|
1917
|
-
|
|
1934
|
+
this._log("log", "[SelectionStore] \u{1F50D} Constructor called - checking for existing instance...");
|
|
1935
|
+
this._log("log", "[SelectionStore] typeof document:", typeof document);
|
|
1918
1936
|
if (typeof window !== "undefined") {
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1937
|
+
this._log("log", "[SelectionStore] window.top === window:", window.top === window);
|
|
1938
|
+
this._log("log", "[SelectionStore] document location:", window.location.href);
|
|
1939
|
+
this._log("log", "[SelectionStore] Is in iframe:", window !== window.top);
|
|
1922
1940
|
}
|
|
1923
|
-
|
|
1941
|
+
this._log("log", "[SelectionStore] document.__MyIOSelectionStore_INSTANCE__:", !!document?.__MyIOSelectionStore_INSTANCE__);
|
|
1924
1942
|
if (typeof document !== "undefined") {
|
|
1925
1943
|
const myioProps = Object.getOwnPropertyNames(document).filter((key) => key.startsWith("__MyIO"));
|
|
1926
|
-
|
|
1944
|
+
this._log("log", "[SelectionStore] All __MyIO* properties on document:", myioProps);
|
|
1927
1945
|
}
|
|
1928
1946
|
let existingInstance = null;
|
|
1929
1947
|
try {
|
|
1930
1948
|
const targetWindow = typeof window !== "undefined" && window.top ? window.top : window;
|
|
1931
1949
|
existingInstance = targetWindow?.__MyIOSelectionStore_INSTANCE__;
|
|
1932
|
-
|
|
1950
|
+
this._log("log", "[SelectionStore] Checking window.top.__MyIOSelectionStore_INSTANCE__:", !!existingInstance);
|
|
1933
1951
|
} catch (e) {
|
|
1934
|
-
|
|
1952
|
+
this._log("warn", "[SelectionStore] Cannot access window.top:", e.message);
|
|
1935
1953
|
}
|
|
1936
1954
|
if (!existingInstance) {
|
|
1937
1955
|
existingInstance = typeof document !== "undefined" && document.__MyIOSelectionStore_INSTANCE__ || typeof window !== "undefined" && window.__MyIOSelectionStore_INSTANCE__;
|
|
1938
1956
|
}
|
|
1939
1957
|
if (existingInstance) {
|
|
1940
|
-
|
|
1941
|
-
|
|
1958
|
+
this._log("warn", "[SelectionStore] \u26A0\uFE0F Constructor called but instance already exists! Returning existing instance.");
|
|
1959
|
+
this._log("log", "[SelectionStore] Existing instance has listeners:", existingInstance.eventListeners.get("selection:change")?.length || 0);
|
|
1942
1960
|
return existingInstance;
|
|
1943
1961
|
}
|
|
1944
|
-
|
|
1945
|
-
|
|
1962
|
+
this._log("log", "[SelectionStore] \u{1F3D7}\uFE0F NEW INSTANCE CREATED at:", (/* @__PURE__ */ new Date()).toISOString());
|
|
1963
|
+
if (_MyIOSelectionStoreClass.GlobalDebug) {
|
|
1964
|
+
console.trace("[SelectionStore] Constructor called from:");
|
|
1965
|
+
}
|
|
1946
1966
|
this.MAX_SELECTION = 6;
|
|
1947
1967
|
this.state = { selectedDevice: null };
|
|
1948
1968
|
this.selectedIds = /* @__PURE__ */ new Set();
|
|
@@ -1959,29 +1979,29 @@ var MyIOSelectionStoreClass = class {
|
|
|
1959
1979
|
try {
|
|
1960
1980
|
const targetWindow = typeof window !== "undefined" && window.top ? window.top : window;
|
|
1961
1981
|
if (targetWindow) {
|
|
1962
|
-
|
|
1982
|
+
this._log("log", "[SelectionStore] \u{1F4BE} Storing instance in window.top.__MyIOSelectionStore_INSTANCE__");
|
|
1963
1983
|
targetWindow.__MyIOSelectionStore_INSTANCE__ = this;
|
|
1964
|
-
|
|
1984
|
+
this._log("log", "[SelectionStore] \u2705 Stored in top window! Verify:", !!targetWindow.__MyIOSelectionStore_INSTANCE__);
|
|
1965
1985
|
}
|
|
1966
1986
|
} catch (e) {
|
|
1967
|
-
|
|
1987
|
+
this._log("warn", "[SelectionStore] \u26A0\uFE0F Cannot access window.top (cross-origin iframe):", e.message);
|
|
1968
1988
|
if (typeof document !== "undefined") {
|
|
1969
|
-
|
|
1989
|
+
this._log("log", "[SelectionStore] \u{1F4BE} Storing instance in document.__MyIOSelectionStore_INSTANCE__ (fallback)");
|
|
1970
1990
|
document.__MyIOSelectionStore_INSTANCE__ = this;
|
|
1971
|
-
|
|
1991
|
+
this._log("log", "[SelectionStore] \u2705 Stored! Verify:", !!document.__MyIOSelectionStore_INSTANCE__);
|
|
1972
1992
|
}
|
|
1973
1993
|
}
|
|
1974
1994
|
}
|
|
1975
1995
|
// Core Selection Methods
|
|
1976
1996
|
add(id) {
|
|
1977
|
-
|
|
1997
|
+
this._log("log", "[MyIOSelectionStoreClass] Entrou na LIB", id);
|
|
1978
1998
|
const wasSelected = this.selectedIds.has(id);
|
|
1979
1999
|
if (wasSelected) {
|
|
1980
|
-
|
|
2000
|
+
this._log("log", "[MyIOSelectionStoreClass] Item j\xE1 est\xE1 selecionado:", id);
|
|
1981
2001
|
return;
|
|
1982
2002
|
}
|
|
1983
2003
|
if (this.selectedIds.size >= this.MAX_SELECTION) {
|
|
1984
|
-
|
|
2004
|
+
this._log("warn", `[MyIOSelectionStoreClass] Limite de sele\xE7\xE3o atingido (${this.MAX_SELECTION})`);
|
|
1985
2005
|
this._emit("selection:limit-reached", {
|
|
1986
2006
|
maxAllowed: this.MAX_SELECTION,
|
|
1987
2007
|
currentCount: this.selectedIds.size,
|
|
@@ -1998,9 +2018,9 @@ var MyIOSelectionStoreClass = class {
|
|
|
1998
2018
|
this._trackEvent("footer_dock.drop_add", { entityId: id });
|
|
1999
2019
|
}
|
|
2000
2020
|
remove(id) {
|
|
2001
|
-
|
|
2021
|
+
this._log("log", "[MyIOSelectionStoreClass] ITEM PARA REMO\xC7\xC3O ID", id);
|
|
2002
2022
|
if (!this.selectedIds.has(id)) return;
|
|
2003
|
-
|
|
2023
|
+
this._log("log", "[MyIOSelectionStoreClass] DELETE ID", id);
|
|
2004
2024
|
this.selectedIds.delete(id);
|
|
2005
2025
|
this._emitSelectionChange("remove", id);
|
|
2006
2026
|
this._trackEvent("footer_dock.remove_chip", { entityId: id });
|
|
@@ -2053,7 +2073,7 @@ var MyIOSelectionStoreClass = class {
|
|
|
2053
2073
|
return Array.from(this.selectedIds);
|
|
2054
2074
|
}
|
|
2055
2075
|
getSelectedEntities() {
|
|
2056
|
-
|
|
2076
|
+
this._log("log", "[MyIOSelectionStoreClass] biblioteca:", this.getSelectedIds());
|
|
2057
2077
|
return this.getSelectedIds().map((id) => this.entities.get(id)).filter((entity) => entity !== void 0);
|
|
2058
2078
|
}
|
|
2059
2079
|
getTotals() {
|
|
@@ -2120,17 +2140,17 @@ var MyIOSelectionStoreClass = class {
|
|
|
2120
2140
|
}
|
|
2121
2141
|
// Event System
|
|
2122
2142
|
on(event, callback) {
|
|
2123
|
-
|
|
2143
|
+
this._log("log", `[SelectionStore] \u{1F4DD} Registering listener for event: ${event}`);
|
|
2124
2144
|
if (typeof event !== "string" || typeof callback !== "function") {
|
|
2125
|
-
|
|
2145
|
+
this._log("error", `[SelectionStore] \u274C Invalid registration: event=${typeof event}, callback=${typeof callback}`);
|
|
2126
2146
|
return;
|
|
2127
2147
|
}
|
|
2128
2148
|
if (!this.eventListeners.has(event)) {
|
|
2129
|
-
|
|
2149
|
+
this._log("log", `[SelectionStore] \u{1F195} Creating new listener array for: ${event}`);
|
|
2130
2150
|
this.eventListeners.set(event, []);
|
|
2131
2151
|
}
|
|
2132
2152
|
this.eventListeners.get(event).push(callback);
|
|
2133
|
-
|
|
2153
|
+
this._log("log", `[SelectionStore] \u2705 Listener registered! Total for ${event}: ${this.eventListeners.get(event).length}`);
|
|
2134
2154
|
}
|
|
2135
2155
|
off(event, callback) {
|
|
2136
2156
|
if (!this.eventListeners.has(event)) return;
|
|
@@ -2238,22 +2258,22 @@ var MyIOSelectionStoreClass = class {
|
|
|
2238
2258
|
});
|
|
2239
2259
|
}
|
|
2240
2260
|
_emit(event, data) {
|
|
2241
|
-
|
|
2242
|
-
|
|
2261
|
+
this._log("log", `[SelectionStore] \u{1F514} Emitting event: ${event}, listeners: ${this.eventListeners.get(event)?.length || 0}`);
|
|
2262
|
+
this._log("log", `[SelectionStore] \u{1F4E6} Event data:`, data);
|
|
2243
2263
|
if (!this.eventListeners.has(event)) {
|
|
2244
|
-
|
|
2264
|
+
this._log("warn", `[SelectionStore] \u26A0\uFE0F No listener map for event: ${event}`);
|
|
2245
2265
|
return;
|
|
2246
2266
|
}
|
|
2247
2267
|
const listeners = this.eventListeners.get(event);
|
|
2248
2268
|
if (listeners.length === 0) {
|
|
2249
|
-
|
|
2269
|
+
this._log("warn", `[SelectionStore] \u26A0\uFE0F No listeners registered for event: ${event}`);
|
|
2250
2270
|
}
|
|
2251
2271
|
listeners.forEach((callback, index) => {
|
|
2252
|
-
|
|
2272
|
+
this._log("log", `[SelectionStore] \u{1F3AF} Calling listener #${index} for ${event}`);
|
|
2253
2273
|
try {
|
|
2254
2274
|
callback(data);
|
|
2255
2275
|
} catch (error) {
|
|
2256
|
-
|
|
2276
|
+
this._log("error", `[SelectionStore] \u274C Error in ${event} listener #${index}:`, error);
|
|
2257
2277
|
}
|
|
2258
2278
|
});
|
|
2259
2279
|
}
|
|
@@ -2265,7 +2285,7 @@ var MyIOSelectionStoreClass = class {
|
|
|
2265
2285
|
...payload
|
|
2266
2286
|
});
|
|
2267
2287
|
} catch (error) {
|
|
2268
|
-
|
|
2288
|
+
this._log("error", "Analytics tracking error:", error);
|
|
2269
2289
|
}
|
|
2270
2290
|
}
|
|
2271
2291
|
_convertToKwh(value, unit) {
|
|
@@ -2302,28 +2322,33 @@ var MyIOSelectionStoreClass = class {
|
|
|
2302
2322
|
return data;
|
|
2303
2323
|
}
|
|
2304
2324
|
};
|
|
2325
|
+
function _moduleLog(level, ...args) {
|
|
2326
|
+
if (!MyIOSelectionStoreClass.GlobalDebug) return;
|
|
2327
|
+
const logMethod = console[level] || console.log;
|
|
2328
|
+
logMethod.apply(console, args);
|
|
2329
|
+
}
|
|
2305
2330
|
var MyIOSelectionStore;
|
|
2306
2331
|
var _singletonInstance = null;
|
|
2307
2332
|
if (typeof globalThis !== "undefined" && typeof globalThis.window !== "undefined") {
|
|
2308
|
-
|
|
2333
|
+
_moduleLog("log", "[SelectionStore] \u{1F527} Module initialization - checking for existing instance...");
|
|
2309
2334
|
if (!globalThis.window.__MyIOLibrary_PROTECTED__) {
|
|
2310
|
-
|
|
2335
|
+
_moduleLog("log", "[SelectionStore] \u{1F6E1}\uFE0F Protecting window.MyIOLibrary object from UMD overwrites...");
|
|
2311
2336
|
const existingLib = globalThis.window.MyIOLibrary;
|
|
2312
2337
|
Object.defineProperty(globalThis.window, "MyIOLibrary", {
|
|
2313
2338
|
get: function() {
|
|
2314
2339
|
if (!globalThis.window.__MyIOLibrary_INSTANCE__) {
|
|
2315
|
-
|
|
2340
|
+
_moduleLog("log", "[SelectionStore] \u{1F4E6} Creating protected MyIOLibrary container object");
|
|
2316
2341
|
globalThis.window.__MyIOLibrary_INSTANCE__ = existingLib || {};
|
|
2317
2342
|
}
|
|
2318
2343
|
return globalThis.window.__MyIOLibrary_INSTANCE__;
|
|
2319
2344
|
},
|
|
2320
2345
|
set: function(value) {
|
|
2321
|
-
|
|
2346
|
+
_moduleLog("log", "[SelectionStore] \u{1F504} UMD tried to overwrite MyIOLibrary - merging properties instead");
|
|
2322
2347
|
if (value && typeof value === "object") {
|
|
2323
2348
|
const currentLib = globalThis.window.__MyIOLibrary_INSTANCE__ || {};
|
|
2324
2349
|
Object.keys(value).forEach((key) => {
|
|
2325
2350
|
if (key === "MyIOSelectionStore" && currentLib.MyIOSelectionStore) {
|
|
2326
|
-
|
|
2351
|
+
_moduleLog("log", "[SelectionStore] \u23ED\uFE0F Skipping MyIOSelectionStore - already set");
|
|
2327
2352
|
return;
|
|
2328
2353
|
}
|
|
2329
2354
|
currentLib[key] = value[key];
|
|
@@ -2335,52 +2360,52 @@ if (typeof globalThis !== "undefined" && typeof globalThis.window !== "undefined
|
|
|
2335
2360
|
enumerable: true
|
|
2336
2361
|
});
|
|
2337
2362
|
globalThis.window.__MyIOLibrary_PROTECTED__ = true;
|
|
2338
|
-
|
|
2363
|
+
_moduleLog("log", "[SelectionStore] \u2705 window.MyIOLibrary protected!");
|
|
2339
2364
|
}
|
|
2340
2365
|
let existingInstance = null;
|
|
2341
2366
|
try {
|
|
2342
2367
|
const targetWindow = globalThis.window.top ? globalThis.window.top : globalThis.window;
|
|
2343
2368
|
existingInstance = targetWindow.__MyIOSelectionStore_INSTANCE__;
|
|
2344
|
-
|
|
2369
|
+
_moduleLog("log", "[SelectionStore] window.top.__MyIOSelectionStore_INSTANCE__:", !!existingInstance);
|
|
2345
2370
|
} catch (e) {
|
|
2346
|
-
|
|
2371
|
+
_moduleLog("warn", "[SelectionStore] Cannot access window.top during module init:", e.message);
|
|
2347
2372
|
}
|
|
2348
2373
|
if (!existingInstance) {
|
|
2349
2374
|
existingInstance = typeof document !== "undefined" && document.__MyIOSelectionStore_INSTANCE__ || globalThis.window.__MyIOSelectionStore_INSTANCE__;
|
|
2350
|
-
|
|
2351
|
-
|
|
2375
|
+
_moduleLog("log", "[SelectionStore] document.__MyIOSelectionStore_INSTANCE__:", !!(typeof document !== "undefined" && document.__MyIOSelectionStore_INSTANCE__));
|
|
2376
|
+
_moduleLog("log", "[SelectionStore] window.__MyIOSelectionStore_INSTANCE__:", !!globalThis.window.__MyIOSelectionStore_INSTANCE__);
|
|
2352
2377
|
}
|
|
2353
2378
|
if (existingInstance) {
|
|
2354
|
-
|
|
2379
|
+
_moduleLog("log", "[SelectionStore] \u{1F504} REUSING constructor-created instance from __MyIOSelectionStore_INSTANCE__");
|
|
2355
2380
|
_singletonInstance = existingInstance;
|
|
2356
2381
|
MyIOSelectionStore = _singletonInstance;
|
|
2357
2382
|
if (!Object.getOwnPropertyDescriptor(globalThis.window, "MyIOSelectionStore")?.get) {
|
|
2358
|
-
|
|
2383
|
+
_moduleLog("log", "[SelectionStore] \u{1F517} Defining window.MyIOSelectionStore getter to point to singleton");
|
|
2359
2384
|
Object.defineProperty(globalThis.window, "MyIOSelectionStore", {
|
|
2360
2385
|
get: function() {
|
|
2361
2386
|
return _singletonInstance;
|
|
2362
2387
|
},
|
|
2363
2388
|
set: function(value) {
|
|
2364
|
-
|
|
2389
|
+
_moduleLog("warn", "[SelectionStore] \u26A0\uFE0F Attempted to overwrite singleton - ignoring");
|
|
2365
2390
|
},
|
|
2366
2391
|
configurable: false,
|
|
2367
2392
|
enumerable: true
|
|
2368
2393
|
});
|
|
2369
2394
|
}
|
|
2370
2395
|
if (globalThis.window.MyIOLibrary && typeof globalThis.window.MyIOLibrary === "object") {
|
|
2371
|
-
|
|
2396
|
+
_moduleLog("log", "[SelectionStore] \u{1F517} Updating window.MyIOLibrary.MyIOSelectionStore to point to singleton");
|
|
2372
2397
|
globalThis.window.MyIOLibrary.MyIOSelectionStore = _singletonInstance;
|
|
2373
2398
|
}
|
|
2374
2399
|
} else if (Object.getOwnPropertyDescriptor(globalThis.window, "MyIOSelectionStore")?.get) {
|
|
2375
|
-
|
|
2400
|
+
_moduleLog("log", "[SelectionStore] \u{1F504} REUSING protected global instance via getter");
|
|
2376
2401
|
MyIOSelectionStore = globalThis.window.MyIOSelectionStore;
|
|
2377
2402
|
_singletonInstance = MyIOSelectionStore;
|
|
2378
2403
|
if (globalThis.window.MyIOLibrary && typeof globalThis.window.MyIOLibrary === "object") {
|
|
2379
|
-
|
|
2404
|
+
_moduleLog("log", "[SelectionStore] \u{1F517} Updating window.MyIOLibrary.MyIOSelectionStore to point to singleton");
|
|
2380
2405
|
globalThis.window.MyIOLibrary.MyIOSelectionStore = _singletonInstance;
|
|
2381
2406
|
}
|
|
2382
2407
|
} else if (globalThis.window.MyIOSelectionStore && typeof globalThis.window.MyIOSelectionStore === "object") {
|
|
2383
|
-
|
|
2408
|
+
_moduleLog("log", "[SelectionStore] \u{1F512} UPGRADING existing instance to protected");
|
|
2384
2409
|
_singletonInstance = globalThis.window.MyIOSelectionStore;
|
|
2385
2410
|
MyIOSelectionStore = _singletonInstance;
|
|
2386
2411
|
Object.defineProperty(globalThis.window, "MyIOSelectionStore", {
|
|
@@ -2388,17 +2413,17 @@ if (typeof globalThis !== "undefined" && typeof globalThis.window !== "undefined
|
|
|
2388
2413
|
return _singletonInstance;
|
|
2389
2414
|
},
|
|
2390
2415
|
set: function(value) {
|
|
2391
|
-
|
|
2416
|
+
_moduleLog("warn", "[SelectionStore] \u26A0\uFE0F Attempted to overwrite singleton - ignoring");
|
|
2392
2417
|
},
|
|
2393
2418
|
configurable: false,
|
|
2394
2419
|
enumerable: true
|
|
2395
2420
|
});
|
|
2396
2421
|
if (globalThis.window.MyIOLibrary && typeof globalThis.window.MyIOLibrary === "object") {
|
|
2397
|
-
|
|
2422
|
+
_moduleLog("log", "[SelectionStore] \u{1F517} Updating window.MyIOLibrary.MyIOSelectionStore to point to singleton");
|
|
2398
2423
|
globalThis.window.MyIOLibrary.MyIOSelectionStore = _singletonInstance;
|
|
2399
2424
|
}
|
|
2400
2425
|
} else {
|
|
2401
|
-
|
|
2426
|
+
_moduleLog("log", "[SelectionStore] \u{1F195} Creating new protected singleton instance");
|
|
2402
2427
|
_singletonInstance = new MyIOSelectionStoreClass();
|
|
2403
2428
|
MyIOSelectionStore = _singletonInstance;
|
|
2404
2429
|
Object.defineProperty(globalThis.window, "MyIOSelectionStore", {
|
|
@@ -2406,16 +2431,16 @@ if (typeof globalThis !== "undefined" && typeof globalThis.window !== "undefined
|
|
|
2406
2431
|
return _singletonInstance;
|
|
2407
2432
|
},
|
|
2408
2433
|
set: function(value) {
|
|
2409
|
-
|
|
2434
|
+
_moduleLog("warn", "[SelectionStore] \u26A0\uFE0F Attempted to overwrite singleton - ignoring");
|
|
2410
2435
|
},
|
|
2411
2436
|
configurable: false,
|
|
2412
2437
|
enumerable: true
|
|
2413
2438
|
});
|
|
2414
2439
|
if (globalThis.window.MyIOLibrary && typeof globalThis.window.MyIOLibrary === "object") {
|
|
2415
|
-
|
|
2440
|
+
_moduleLog("log", "[SelectionStore] \u{1F517} Setting window.MyIOLibrary.MyIOSelectionStore to singleton");
|
|
2416
2441
|
globalThis.window.MyIOLibrary.MyIOSelectionStore = _singletonInstance;
|
|
2417
2442
|
}
|
|
2418
|
-
|
|
2443
|
+
_moduleLog("log", "[SelectionStore] \u{1F512} Instance protected and ready");
|
|
2419
2444
|
}
|
|
2420
2445
|
if (!globalThis.window.MyIOSelectionStoreClass) {
|
|
2421
2446
|
globalThis.window.MyIOSelectionStoreClass = MyIOSelectionStoreClass;
|
package/dist/index.d.cts
CHANGED
|
@@ -776,6 +776,16 @@ declare let MyIOSelectionStore: any;
|
|
|
776
776
|
* @author MYIO Frontend Guild
|
|
777
777
|
*/
|
|
778
778
|
declare class MyIOSelectionStoreClass {
|
|
779
|
+
static GlobalDebug: boolean;
|
|
780
|
+
/**
|
|
781
|
+
* Enable or disable all console logs from SelectionStore
|
|
782
|
+
* @param {boolean} enabled - true to enable logs, false to disable
|
|
783
|
+
*/
|
|
784
|
+
static setGlobalDebug(enabled: boolean): void;
|
|
785
|
+
/**
|
|
786
|
+
* Internal logging method - respects GlobalDebug flag
|
|
787
|
+
*/
|
|
788
|
+
_log(level: any, ...args: any[]): void;
|
|
779
789
|
MAX_SELECTION: number;
|
|
780
790
|
state: {
|
|
781
791
|
selectedDevice: any;
|