File size: 1,471 Bytes
82ea528
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
export var EStatus;
(function (EStatus) {
    EStatus["executing"] = "Executing";
    EStatus["executed"] = "Executed";
    EStatus["execution_error"] = "Execution error";
})(EStatus || (EStatus = {}));
export const ComfyKeyMenuDisplayOption = 'Comfy.UseNewMenu';
export var MenuDisplayOptions;
(function (MenuDisplayOptions) {
    MenuDisplayOptions["Disabled"] = "Disabled";
    MenuDisplayOptions["Top"] = "Top";
    MenuDisplayOptions["Bottom"] = "Bottom";
})(MenuDisplayOptions || (MenuDisplayOptions = {}));
export class ProgressBarUIBase {
    constructor(rootId, rootElement) {
        Object.defineProperty(this, "rootId", {
            enumerable: true,
            configurable: true,
            writable: true,
            value: rootId
        });
        Object.defineProperty(this, "rootElement", {
            enumerable: true,
            configurable: true,
            writable: true,
            value: rootElement
        });
        Object.defineProperty(this, "htmlClassMonitor", {
            enumerable: true,
            configurable: true,
            writable: true,
            value: 'crystools-monitors-container'
        });
        if (this.rootElement && this.rootElement.children.length === 0) {
            this.rootElement.setAttribute('id', this.rootId);
            this.rootElement.classList.add(this.htmlClassMonitor);
            this.rootElement.classList.add(this.constructor.name);
        }
        else {
        }
    }
}