console-gui-tools
Advanced tools
Comparing version 1.4.2 to 2.0.1
@@ -106,2 +106,5 @@ import { BackgroundColorName, ForegroundColorName } from "chalk"; | ||
bottom: string; | ||
start: string; | ||
end: string; | ||
color: "" | `#${string}` | RGB | keyof import("chalk/source/vendor/ansi-styles").ForegroundColor; | ||
}; | ||
@@ -120,2 +123,5 @@ selected: { | ||
bottom: string; | ||
start: string; | ||
end: string; | ||
color: "" | `#${string}` | RGB | keyof import("chalk/source/vendor/ansi-styles").ForegroundColor; | ||
}; | ||
@@ -134,2 +140,5 @@ hovered: { | ||
bottom: string; | ||
start: string; | ||
end: string; | ||
color: "" | `#${string}` | RGB | keyof import("chalk/source/vendor/ansi-styles").ForegroundColor; | ||
}; | ||
@@ -136,0 +145,0 @@ }; |
@@ -7,76 +7,12 @@ import { BackgroundColorName, ForegroundColorName } from "chalk"; | ||
horizontal: { | ||
100: { | ||
[key: number]: { | ||
char: string; | ||
color: undefined; | ||
color: ForegroundColorName | HEX | RGB | undefined; | ||
}; | ||
88: { | ||
char: string; | ||
color: undefined; | ||
}; | ||
75: { | ||
char: string; | ||
color: undefined; | ||
}; | ||
63: { | ||
char: string; | ||
color: undefined; | ||
}; | ||
50: { | ||
char: string; | ||
color: undefined; | ||
}; | ||
38: { | ||
char: string; | ||
color: undefined; | ||
}; | ||
25: { | ||
char: string; | ||
color: undefined; | ||
}; | ||
13: { | ||
char: string; | ||
color: undefined; | ||
}; | ||
0: { | ||
char: string; | ||
color: undefined; | ||
}; | ||
}; | ||
vertical: { | ||
100: { | ||
[key: number]: { | ||
char: string; | ||
color: undefined; | ||
color: ForegroundColorName | HEX | RGB | undefined; | ||
}; | ||
88: { | ||
char: string; | ||
color: undefined; | ||
}; | ||
75: { | ||
char: string; | ||
color: undefined; | ||
}; | ||
63: { | ||
char: string; | ||
color: undefined; | ||
}; | ||
50: { | ||
char: string; | ||
color: undefined; | ||
}; | ||
38: { | ||
char: string; | ||
color: undefined; | ||
}; | ||
25: { | ||
char: string; | ||
color: undefined; | ||
}; | ||
13: { | ||
char: string; | ||
color: undefined; | ||
}; | ||
0: { | ||
char: string; | ||
color: undefined; | ||
}; | ||
}; | ||
@@ -108,2 +44,5 @@ block: { | ||
bottom: string; | ||
start: string; | ||
end: string; | ||
color: "" | `#${string}` | RGB | keyof import("chalk/source/vendor/ansi-styles/index.js").ForegroundColor; | ||
}; | ||
@@ -116,44 +55,12 @@ labelStyle: undefined; | ||
horizontal: { | ||
100: { | ||
[key: number]: { | ||
char: string; | ||
color: string; | ||
color: ForegroundColorName | HEX | RGB | undefined; | ||
}; | ||
75: { | ||
char: string; | ||
color: string; | ||
}; | ||
50: { | ||
char: string; | ||
color: string; | ||
}; | ||
25: { | ||
char: string; | ||
color: string; | ||
}; | ||
0: { | ||
char: string; | ||
color: undefined; | ||
}; | ||
}; | ||
vertical: { | ||
100: { | ||
[key: number]: { | ||
char: string; | ||
color: string; | ||
color: ForegroundColorName | HEX | RGB | undefined; | ||
}; | ||
75: { | ||
char: string; | ||
color: string; | ||
}; | ||
50: { | ||
char: string; | ||
color: string; | ||
}; | ||
25: { | ||
char: string; | ||
color: string; | ||
}; | ||
0: { | ||
char: string; | ||
color: undefined; | ||
}; | ||
}; | ||
@@ -174,4 +81,16 @@ block: { | ||
boxDrawing: { | ||
topLeft: string; | ||
topRight: string; | ||
bottomLeft: string; | ||
bottomRight: string; | ||
horizontal: string; | ||
vertical: string; | ||
cross: string; | ||
left: string; | ||
right: string; | ||
top: string; | ||
bottom: string; | ||
start: string; | ||
end: string; | ||
color: "" | `#${string}` | RGB | keyof import("chalk/source/vendor/ansi-styles/index.js").ForegroundColor; | ||
}; | ||
@@ -190,44 +109,12 @@ labelStyle: { | ||
horizontal: { | ||
100: { | ||
[key: number]: { | ||
char: string; | ||
color: string; | ||
color: ForegroundColorName | HEX | RGB | undefined; | ||
}; | ||
75: { | ||
char: string; | ||
color: string; | ||
}; | ||
50: { | ||
char: string; | ||
color: string; | ||
}; | ||
25: { | ||
char: string; | ||
color: string; | ||
}; | ||
0: { | ||
char: string; | ||
color: undefined; | ||
}; | ||
}; | ||
vertical: { | ||
100: { | ||
[key: number]: { | ||
char: string; | ||
color: string; | ||
color: ForegroundColorName | HEX | RGB | undefined; | ||
}; | ||
75: { | ||
char: string; | ||
color: string; | ||
}; | ||
50: { | ||
char: string; | ||
color: string; | ||
}; | ||
25: { | ||
char: string; | ||
color: string; | ||
}; | ||
0: { | ||
char: string; | ||
color: undefined; | ||
}; | ||
}; | ||
@@ -248,5 +135,16 @@ block: { | ||
boxDrawing: { | ||
color: string; | ||
topLeft: string; | ||
topRight: string; | ||
bottomLeft: string; | ||
bottomRight: string; | ||
horizontal: string; | ||
vertical: string; | ||
cross: string; | ||
left: string; | ||
right: string; | ||
top: string; | ||
bottom: string; | ||
start: string; | ||
end: string; | ||
color: "" | `#${string}` | RGB | keyof import("chalk/source/vendor/ansi-styles/index.js").ForegroundColor; | ||
}; | ||
@@ -265,44 +163,12 @@ labelStyle: { | ||
horizontal: { | ||
100: { | ||
[key: number]: { | ||
char: string; | ||
color: string; | ||
color: ForegroundColorName | HEX | RGB | undefined; | ||
}; | ||
75: { | ||
char: string; | ||
color: string; | ||
}; | ||
50: { | ||
char: string; | ||
color: string; | ||
}; | ||
25: { | ||
char: string; | ||
color: string; | ||
}; | ||
0: { | ||
char: string; | ||
color: undefined; | ||
}; | ||
}; | ||
vertical: { | ||
100: { | ||
[key: number]: { | ||
char: string; | ||
color: string; | ||
color: ForegroundColorName | HEX | RGB | undefined; | ||
}; | ||
75: { | ||
char: string; | ||
color: string; | ||
}; | ||
50: { | ||
char: string; | ||
color: string; | ||
}; | ||
25: { | ||
char: string; | ||
color: string; | ||
}; | ||
0: { | ||
char: string; | ||
color: undefined; | ||
}; | ||
}; | ||
@@ -323,4 +189,16 @@ block: { | ||
boxDrawing: { | ||
topLeft: string; | ||
topRight: string; | ||
bottomLeft: string; | ||
bottomRight: string; | ||
horizontal: string; | ||
vertical: string; | ||
cross: string; | ||
left: string; | ||
right: string; | ||
top: string; | ||
bottom: string; | ||
start: string; | ||
end: string; | ||
color: "" | `#${string}` | RGB | keyof import("chalk/source/vendor/ansi-styles/index.js").ForegroundColor; | ||
}; | ||
@@ -478,3 +356,3 @@ labelStyle: { | ||
enabled: boolean; | ||
theme: string; | ||
theme: keyof typeof drawingChars; | ||
private style; | ||
@@ -481,0 +359,0 @@ status: "normal" | "hovered" | "selected"; |
@@ -84,4 +84,8 @@ /// <reference types="node" /> | ||
Screen: Screen; | ||
popupCollection: any[]; | ||
controlsCollection: Control[]; | ||
popupCollection: { | ||
[key: string]: any; | ||
}; | ||
controlsCollection: { | ||
[key: string]: Control; | ||
}; | ||
eventListenersContainer: { | ||
@@ -88,0 +92,0 @@ [key: string]: (_str: string, key: KeyListenerArgs) => void; |
{ | ||
"name": "console-gui-tools", | ||
"version": "1.4.2", | ||
"version": "2.0.1", | ||
"description": "A simple library to draw option menu, text popup or other widgets and layout on a Node.js console.", | ||
@@ -14,6 +14,6 @@ "main": "dist/ConsoleGui.js", | ||
"lint": "eslint ./src/ --ext .ts", | ||
"build": "npx tsc", | ||
"build": "node ./esbuild.js", | ||
"prepare": "npm run build", | ||
"test": "npm run build && node ./examples/tcp_simulator.mjs", | ||
"start": "npm run build && node ./dist/ConsoleGui.js", | ||
"start": "node ./esbuild.js --watch", | ||
"docs": "node ./docgen.cjs" | ||
@@ -66,4 +66,5 @@ }, | ||
"jsdoc-to-markdown": "^7.1.1", | ||
"typescript": "^4.8.4" | ||
"typescript": "^4.8.4", | ||
"esbuild": "0.16.10" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
634515
14
43
3059