@ice1/glyphx 0.1.0
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/CHANGELOG.md +3 -0
- package/LICENSE +201 -0
- package/README.md +151 -0
- package/build/index.d.ts +306 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +1292 -0
- package/build/index.js.map +1 -0
- package/package.json +37 -0
package/CHANGELOG.md
ADDED
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 buildup
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
## @ice1/glyphx
|
|
2
|
+
|
|
3
|
+
💻 The terminal environment was fantastic and beautiful.
|
|
4
|
+
|
|
5
|
+
### Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @ice1/glyphx
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
### Usage
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import {
|
|
15
|
+
Cursor,
|
|
16
|
+
Screen,
|
|
17
|
+
Input,
|
|
18
|
+
Button,
|
|
19
|
+
Container,
|
|
20
|
+
ContainerGroup,
|
|
21
|
+
Select,
|
|
22
|
+
Radio,
|
|
23
|
+
CheckBox,
|
|
24
|
+
Label,
|
|
25
|
+
Event,
|
|
26
|
+
ContainerStyle,
|
|
27
|
+
Textarea,
|
|
28
|
+
} from "../src";
|
|
29
|
+
import * as readline from "readline";
|
|
30
|
+
import chalk from "chalk";
|
|
31
|
+
|
|
32
|
+
const screen = new Screen();
|
|
33
|
+
screen.enter();
|
|
34
|
+
process.stdin.setRawMode(true);
|
|
35
|
+
Cursor.hide();
|
|
36
|
+
|
|
37
|
+
const S: ContainerStyle = { width: 32, height: 16 };
|
|
38
|
+
|
|
39
|
+
// ─── Container 1 : Input fields ───────────────────────────────────────────────
|
|
40
|
+
const inputName = new Input(24, "e.g. Jane Doe");
|
|
41
|
+
const inputEmail = new Input(24, "e.g. hello@example.com");
|
|
42
|
+
const inputPass = new Input(24, "password", "password");
|
|
43
|
+
const inputBio = new Textarea(24, 6, "", "Input your bio");
|
|
44
|
+
const submitBtn = new Button(24, "Submit", "primary", () => {}, render);
|
|
45
|
+
|
|
46
|
+
const c1 = new Container(S, [
|
|
47
|
+
new Label(""),
|
|
48
|
+
new Label("# Input", "white"),
|
|
49
|
+
new Label(""),
|
|
50
|
+
new Label("Name", "gray"),
|
|
51
|
+
inputName,
|
|
52
|
+
new Label(""),
|
|
53
|
+
new Label("Email", "gray"),
|
|
54
|
+
inputEmail,
|
|
55
|
+
new Label(""),
|
|
56
|
+
new Label("Password", "gray"),
|
|
57
|
+
inputPass,
|
|
58
|
+
new Label(""),
|
|
59
|
+
new Label("Bio", "gray"),
|
|
60
|
+
inputBio,
|
|
61
|
+
new Label(""),
|
|
62
|
+
submitBtn,
|
|
63
|
+
]);
|
|
64
|
+
|
|
65
|
+
// ─── Container 2 : Select + Radio ─────────────────────────────────────────────
|
|
66
|
+
const selectLang = new Select(
|
|
67
|
+
24,
|
|
68
|
+
["TypeScript", "Rust", "Go", "Python", "C++"],
|
|
69
|
+
0,
|
|
70
|
+
);
|
|
71
|
+
|
|
72
|
+
const radioTheme = new Radio(["Light", "Dark", "System"], 1);
|
|
73
|
+
|
|
74
|
+
const c2 = new Container(S, [
|
|
75
|
+
new Label(""),
|
|
76
|
+
new Label("# Select", "white"),
|
|
77
|
+
new Label(""),
|
|
78
|
+
new Label("Language", "gray"),
|
|
79
|
+
selectLang,
|
|
80
|
+
new Label(""),
|
|
81
|
+
new Label("# Radio", "white"),
|
|
82
|
+
new Label(""),
|
|
83
|
+
new Label("Theme", "gray"),
|
|
84
|
+
radioTheme,
|
|
85
|
+
]);
|
|
86
|
+
|
|
87
|
+
// ─── Container 3 : CheckBoxes ──────────────────────────────────────────────────
|
|
88
|
+
const checks = [
|
|
89
|
+
new CheckBox("Auto-save", true),
|
|
90
|
+
new CheckBox("Word wrap", true),
|
|
91
|
+
new CheckBox("Line numbers", true),
|
|
92
|
+
new CheckBox("Spell check", false),
|
|
93
|
+
new CheckBox("Minimap", false),
|
|
94
|
+
new CheckBox("Bracket match", true),
|
|
95
|
+
new CheckBox("Format on save", false),
|
|
96
|
+
new CheckBox("Tab completion", true),
|
|
97
|
+
];
|
|
98
|
+
|
|
99
|
+
const c3 = new Container(S, [
|
|
100
|
+
new Label(""),
|
|
101
|
+
new Label("# CheckBox", "white"),
|
|
102
|
+
new Label(""),
|
|
103
|
+
...checks,
|
|
104
|
+
]);
|
|
105
|
+
|
|
106
|
+
const allContainers = [c1, c2, c3];
|
|
107
|
+
const group = new ContainerGroup(allContainers);
|
|
108
|
+
|
|
109
|
+
const COLS = [1, 34, 67] as const;
|
|
110
|
+
|
|
111
|
+
function render(): void {
|
|
112
|
+
for (let i = 0; i < allContainers.length; i++) {
|
|
113
|
+
allContainers[i]!.renderAt(1, COLS[i] ?? 1);
|
|
114
|
+
}
|
|
115
|
+
Cursor.moveTo(20, 1);
|
|
116
|
+
process.stdout.write(
|
|
117
|
+
chalk.gray(" ←/→ ") +
|
|
118
|
+
chalk.white("switch panels") +
|
|
119
|
+
chalk.gray(" ↵ ") +
|
|
120
|
+
chalk.white("enter panel") +
|
|
121
|
+
chalk.gray(" ⇥ ") +
|
|
122
|
+
chalk.white("next field") +
|
|
123
|
+
chalk.gray(" ⎋ ") +
|
|
124
|
+
chalk.white("back") +
|
|
125
|
+
chalk.gray(" ⌃C ") +
|
|
126
|
+
chalk.white("quit"),
|
|
127
|
+
);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
render();
|
|
131
|
+
|
|
132
|
+
const event = new Event(process, screen);
|
|
133
|
+
event.add({
|
|
134
|
+
name: "main",
|
|
135
|
+
next(key: readline.Key) {
|
|
136
|
+
group.handleKey(key);
|
|
137
|
+
render();
|
|
138
|
+
},
|
|
139
|
+
});
|
|
140
|
+
event.setup();
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
### Run
|
|
144
|
+
|
|
145
|
+
```bash
|
|
146
|
+
npm run test
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
### ScreenShot
|
|
150
|
+
|
|
151
|
+

|
package/build/index.d.ts
ADDED
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
import * as readline from "readline";
|
|
2
|
+
/** DIP: all rendering depends on this interface, not on process.stdout directly. */
|
|
3
|
+
export interface ITerminalWriter {
|
|
4
|
+
moveTo(row: number, col: number): void;
|
|
5
|
+
write(text: string): void;
|
|
6
|
+
}
|
|
7
|
+
/** Describes how many lines / columns a widget occupies. */
|
|
8
|
+
export interface IDimensional {
|
|
9
|
+
lineCount(): number;
|
|
10
|
+
naturalWidth(): number;
|
|
11
|
+
}
|
|
12
|
+
/** Describes how a widget draws itself. */
|
|
13
|
+
export interface IRenderable {
|
|
14
|
+
renderLine(lineIndex: number, termRow: number, termCol: number, maxWidth: number, scrollX?: number): void;
|
|
15
|
+
}
|
|
16
|
+
/** ISP: keyboard handling is separated from focus bookkeeping. */
|
|
17
|
+
export interface IKeyConsumer {
|
|
18
|
+
/** Return true if the key was fully consumed; false/void to let parent act. */
|
|
19
|
+
handleKey(key: readline.Key): boolean | void;
|
|
20
|
+
}
|
|
21
|
+
/** ISP: focus state is separated from the key-handling logic. */
|
|
22
|
+
export interface IFocusTarget {
|
|
23
|
+
isFocused(): boolean;
|
|
24
|
+
focus(): void;
|
|
25
|
+
blur(): void;
|
|
26
|
+
/**
|
|
27
|
+
* Optional hint for Container auto-scroll: the line index *within this
|
|
28
|
+
* widget* (0-based) that should stay inside the viewport.
|
|
29
|
+
*/
|
|
30
|
+
activeLineHint?(): number;
|
|
31
|
+
}
|
|
32
|
+
/** Convenience union: a widget that is both focusable and can handle keys. */
|
|
33
|
+
export type IFocusable = IFocusTarget & IKeyConsumer;
|
|
34
|
+
/** OCP: new button styles can be added without modifying the Button class. */
|
|
35
|
+
export interface IButtonRenderer {
|
|
36
|
+
render(writer: ITerminalWriter, row: number, col: number, width: number, label: string, focused: boolean, pressed: boolean): void;
|
|
37
|
+
}
|
|
38
|
+
/** Default ITerminalWriter backed by process.stdout + ANSI escape codes. */
|
|
39
|
+
export declare class TerminalWriter implements ITerminalWriter {
|
|
40
|
+
moveTo(row: number, col: number): void;
|
|
41
|
+
write(text: string): void;
|
|
42
|
+
}
|
|
43
|
+
export declare class Screen {
|
|
44
|
+
private active;
|
|
45
|
+
enter(): void;
|
|
46
|
+
exit(): void;
|
|
47
|
+
}
|
|
48
|
+
export declare class Cursor {
|
|
49
|
+
static moveTo(row: number, col: number): void;
|
|
50
|
+
static hide(): void;
|
|
51
|
+
static show(): void;
|
|
52
|
+
}
|
|
53
|
+
export interface SubEvent {
|
|
54
|
+
name: string;
|
|
55
|
+
next(key: readline.Key): void;
|
|
56
|
+
}
|
|
57
|
+
export declare class Event {
|
|
58
|
+
private proc;
|
|
59
|
+
private screen;
|
|
60
|
+
subEvents: SubEvent[];
|
|
61
|
+
constructor(proc: NodeJS.Process, screen: Screen);
|
|
62
|
+
setup(): void;
|
|
63
|
+
add(sub: SubEvent): void;
|
|
64
|
+
remove(name: string): void;
|
|
65
|
+
}
|
|
66
|
+
export declare class FocusManager {
|
|
67
|
+
private readonly _focusables;
|
|
68
|
+
private _idx;
|
|
69
|
+
constructor(_focusables: IFocusable[]);
|
|
70
|
+
get index(): number;
|
|
71
|
+
get current(): IFocusable | undefined;
|
|
72
|
+
get hasFocus(): boolean;
|
|
73
|
+
focusAt(i: number): void;
|
|
74
|
+
cycle(direction: 1 | -1): void;
|
|
75
|
+
clear(): void;
|
|
76
|
+
initFirst(): void;
|
|
77
|
+
private _blurActive;
|
|
78
|
+
}
|
|
79
|
+
export declare class ScrollState {
|
|
80
|
+
private _x;
|
|
81
|
+
private _y;
|
|
82
|
+
get x(): number;
|
|
83
|
+
get y(): number;
|
|
84
|
+
setX(value: number, max: number): void;
|
|
85
|
+
setY(value: number, max: number): void;
|
|
86
|
+
/** Ensure a cursor column stays within a viewport of `viewportWidth`. */
|
|
87
|
+
clampHorizontal(cursor: number, viewportWidth: number): void;
|
|
88
|
+
/** Ensure a cursor row stays within a viewport of `viewportHeight`. */
|
|
89
|
+
clampVertical(cursor: number, viewportHeight: number, maxScroll: number): void;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Abstract base satisfying IDimensional + IRenderable.
|
|
93
|
+
* Concrete subclasses must implement lineCount() and renderLine().
|
|
94
|
+
* naturalWidth() defaults to 0 (override when meaningful).
|
|
95
|
+
*
|
|
96
|
+
* Every widget receives an ITerminalWriter at construction time (DIP).
|
|
97
|
+
*/
|
|
98
|
+
export declare abstract class Widget implements IDimensional, IRenderable {
|
|
99
|
+
protected readonly writer: ITerminalWriter;
|
|
100
|
+
constructor(writer?: ITerminalWriter);
|
|
101
|
+
abstract lineCount(): number;
|
|
102
|
+
naturalWidth(): number;
|
|
103
|
+
abstract renderLine(lineIndex: number, termRow: number, termCol: number, maxWidth: number, scrollX?: number): void;
|
|
104
|
+
}
|
|
105
|
+
export declare class Label extends Widget {
|
|
106
|
+
private text;
|
|
107
|
+
private color;
|
|
108
|
+
constructor(text: string, color?: string, writer?: ITerminalWriter);
|
|
109
|
+
lineCount(): number;
|
|
110
|
+
naturalWidth(): number;
|
|
111
|
+
renderLine(_li: number, row: number, col: number, maxWidth: number, scrollX?: number): void;
|
|
112
|
+
}
|
|
113
|
+
export declare class Command extends Widget {
|
|
114
|
+
private label;
|
|
115
|
+
private shortcut;
|
|
116
|
+
constructor(label: string, shortcut: string[], writer?: ITerminalWriter);
|
|
117
|
+
lineCount(): number;
|
|
118
|
+
private _segs;
|
|
119
|
+
naturalWidth(): number;
|
|
120
|
+
renderLine(_li: number, row: number, col: number, maxWidth: number, scrollX?: number): void;
|
|
121
|
+
}
|
|
122
|
+
export type InputType = "text" | "password";
|
|
123
|
+
export declare class Input extends Widget implements IFocusable {
|
|
124
|
+
private width;
|
|
125
|
+
private placeholder;
|
|
126
|
+
private type;
|
|
127
|
+
private onChange?;
|
|
128
|
+
private _value;
|
|
129
|
+
private _cursor;
|
|
130
|
+
private _scroll;
|
|
131
|
+
private _focused;
|
|
132
|
+
constructor(width: number, placeholder?: string, type?: InputType, onChange?: ((value: string) => void) | undefined, writer?: ITerminalWriter);
|
|
133
|
+
lineCount(): number;
|
|
134
|
+
naturalWidth(): number;
|
|
135
|
+
getValue(): string;
|
|
136
|
+
setValue(v: string): void;
|
|
137
|
+
isFocused(): boolean;
|
|
138
|
+
focus(): void;
|
|
139
|
+
blur(): void;
|
|
140
|
+
handleKey(key: readline.Key): boolean;
|
|
141
|
+
private _clampScroll;
|
|
142
|
+
private _display;
|
|
143
|
+
renderLine(_li: number, row: number, col: number, maxWidth: number): void;
|
|
144
|
+
}
|
|
145
|
+
export declare class Select extends Widget implements IFocusable {
|
|
146
|
+
private width;
|
|
147
|
+
private options;
|
|
148
|
+
private onChange?;
|
|
149
|
+
private _open;
|
|
150
|
+
private _focused;
|
|
151
|
+
private _hovered;
|
|
152
|
+
private _selected;
|
|
153
|
+
constructor(width: number, options: string[], initialIndex?: number, onChange?: ((index: number, value: string) => void) | undefined, writer?: ITerminalWriter);
|
|
154
|
+
lineCount(): number;
|
|
155
|
+
naturalWidth(): number;
|
|
156
|
+
getIndex(): number;
|
|
157
|
+
getValue(): string;
|
|
158
|
+
isFocused(): boolean;
|
|
159
|
+
focus(): void;
|
|
160
|
+
blur(): void;
|
|
161
|
+
handleKey(key: readline.Key): boolean;
|
|
162
|
+
activeLineHint(): number;
|
|
163
|
+
renderLine(li: number, row: number, col: number, maxWidth: number): void;
|
|
164
|
+
}
|
|
165
|
+
export declare class Radio extends Widget implements IFocusable {
|
|
166
|
+
private options;
|
|
167
|
+
private onChange?;
|
|
168
|
+
private _focused;
|
|
169
|
+
private _hovered;
|
|
170
|
+
private _selected;
|
|
171
|
+
constructor(options: string[], initialIndex?: number, onChange?: ((index: number, value: string) => void) | undefined, writer?: ITerminalWriter);
|
|
172
|
+
lineCount(): number;
|
|
173
|
+
naturalWidth(): number;
|
|
174
|
+
getIndex(): number;
|
|
175
|
+
getValue(): string;
|
|
176
|
+
isFocused(): boolean;
|
|
177
|
+
focus(): void;
|
|
178
|
+
blur(): void;
|
|
179
|
+
handleKey(key: readline.Key): boolean;
|
|
180
|
+
activeLineHint(): number;
|
|
181
|
+
renderLine(li: number, row: number, col: number, maxWidth: number): void;
|
|
182
|
+
}
|
|
183
|
+
export declare class CheckBox extends Widget implements IFocusable {
|
|
184
|
+
private label;
|
|
185
|
+
private onChange?;
|
|
186
|
+
private _focused;
|
|
187
|
+
private _checked;
|
|
188
|
+
constructor(label: string, initialChecked?: boolean, onChange?: ((checked: boolean) => void) | undefined, writer?: ITerminalWriter);
|
|
189
|
+
lineCount(): number;
|
|
190
|
+
naturalWidth(): number;
|
|
191
|
+
isChecked(): boolean;
|
|
192
|
+
setChecked(v: boolean): void;
|
|
193
|
+
isFocused(): boolean;
|
|
194
|
+
focus(): void;
|
|
195
|
+
blur(): void;
|
|
196
|
+
handleKey(key: readline.Key): boolean;
|
|
197
|
+
renderLine(_li: number, row: number, col: number, maxWidth: number): void;
|
|
198
|
+
}
|
|
199
|
+
/** Default bordered button: [ Label ] */
|
|
200
|
+
export declare class DefaultButtonRenderer implements IButtonRenderer {
|
|
201
|
+
render(writer: ITerminalWriter, row: number, col: number, w: number, label: string, focused: boolean, pressed: boolean): void;
|
|
202
|
+
}
|
|
203
|
+
/** Filled primary button: ▐ Label ▌ */
|
|
204
|
+
export declare class PrimaryButtonRenderer implements IButtonRenderer {
|
|
205
|
+
render(writer: ITerminalWriter, row: number, col: number, w: number, label: string, _focused: boolean, pressed: boolean): void;
|
|
206
|
+
}
|
|
207
|
+
/** Danger button: [ Label ] in red */
|
|
208
|
+
export declare class DangerButtonRenderer implements IButtonRenderer {
|
|
209
|
+
render(writer: ITerminalWriter, row: number, col: number, w: number, label: string, focused: boolean, pressed: boolean): void;
|
|
210
|
+
}
|
|
211
|
+
export type ButtonVariant = "default" | "primary" | "danger";
|
|
212
|
+
export declare class Button extends Widget implements IFocusable {
|
|
213
|
+
private width;
|
|
214
|
+
private label;
|
|
215
|
+
private onClick?;
|
|
216
|
+
private onRender?;
|
|
217
|
+
private _focused;
|
|
218
|
+
private _pressed;
|
|
219
|
+
private readonly _variantRenderer;
|
|
220
|
+
constructor(width: number, label: string, variantOrRenderer?: ButtonVariant | IButtonRenderer, onClick?: (() => void) | undefined, onRender?: (() => void) | undefined, writer?: ITerminalWriter);
|
|
221
|
+
lineCount(): number;
|
|
222
|
+
naturalWidth(): number;
|
|
223
|
+
isFocused(): boolean;
|
|
224
|
+
focus(): void;
|
|
225
|
+
blur(): void;
|
|
226
|
+
handleKey(key: readline.Key): boolean;
|
|
227
|
+
renderLine(_li: number, row: number, col: number, maxWidth: number): void;
|
|
228
|
+
}
|
|
229
|
+
export declare class Textarea extends Widget implements IFocusable {
|
|
230
|
+
private width;
|
|
231
|
+
private height;
|
|
232
|
+
private placeholder;
|
|
233
|
+
private onChange?;
|
|
234
|
+
private _lines;
|
|
235
|
+
private _cursorRow;
|
|
236
|
+
private _cursorCol;
|
|
237
|
+
private _scroll;
|
|
238
|
+
private _focused;
|
|
239
|
+
constructor(width: number, height: number, initialValue?: string, placeholder?: string, onChange?: ((value: string) => void) | undefined, writer?: ITerminalWriter);
|
|
240
|
+
private iw;
|
|
241
|
+
private ih;
|
|
242
|
+
lineCount(): number;
|
|
243
|
+
naturalWidth(): number;
|
|
244
|
+
getValue(): string;
|
|
245
|
+
setValue(v: string): void;
|
|
246
|
+
isFocused(): boolean;
|
|
247
|
+
focus(): void;
|
|
248
|
+
blur(): void;
|
|
249
|
+
activeLineHint(): number;
|
|
250
|
+
handleKey(key: readline.Key): boolean;
|
|
251
|
+
private _currentLine;
|
|
252
|
+
private _moveCursorLeft;
|
|
253
|
+
private _moveCursorRight;
|
|
254
|
+
private _moveCursorUp;
|
|
255
|
+
private _moveCursorDown;
|
|
256
|
+
private _insertChar;
|
|
257
|
+
private _insertNewline;
|
|
258
|
+
private _deleteBackward;
|
|
259
|
+
private _deleteForward;
|
|
260
|
+
private _clampScroll;
|
|
261
|
+
renderLine(li: number, row: number, col: number, maxWidth: number): void;
|
|
262
|
+
}
|
|
263
|
+
export type ContainerState = "default" | "select" | "focus";
|
|
264
|
+
export interface ContainerStyle {
|
|
265
|
+
width: number;
|
|
266
|
+
height: number;
|
|
267
|
+
}
|
|
268
|
+
export declare class Container extends Widget {
|
|
269
|
+
private style;
|
|
270
|
+
private children;
|
|
271
|
+
private state;
|
|
272
|
+
private readonly _scroll;
|
|
273
|
+
private readonly _focus;
|
|
274
|
+
constructor(style: ContainerStyle, children: Widget[], writer?: ITerminalWriter);
|
|
275
|
+
private iw;
|
|
276
|
+
private ih;
|
|
277
|
+
private contentWidth;
|
|
278
|
+
private _totalLines;
|
|
279
|
+
private _maxLineWidth;
|
|
280
|
+
private _maxScrollY;
|
|
281
|
+
private _maxScrollX;
|
|
282
|
+
lineCount(): number;
|
|
283
|
+
getState(): ContainerState;
|
|
284
|
+
setState(s: ContainerState): void;
|
|
285
|
+
handleKey(key: readline.Key): void;
|
|
286
|
+
private _handleFocusMode;
|
|
287
|
+
/**
|
|
288
|
+
* SRP: scroll logic now lives here, using ScrollState's helpers.
|
|
289
|
+
* The FocusManager provides the target widget; we compute its line offset
|
|
290
|
+
* within the children list and delegate clamping to ScrollState.
|
|
291
|
+
*/
|
|
292
|
+
private _scrollToFocused;
|
|
293
|
+
renderLine(_li: number, row: number, col: number): void;
|
|
294
|
+
/** Convenience entry point when you know the absolute terminal position. */
|
|
295
|
+
renderAt(row: number, col: number): void;
|
|
296
|
+
private _renderAt;
|
|
297
|
+
}
|
|
298
|
+
export declare class ContainerGroup {
|
|
299
|
+
private containers;
|
|
300
|
+
private _sel;
|
|
301
|
+
constructor(containers: Container[]);
|
|
302
|
+
handleKey(key: readline.Key): void;
|
|
303
|
+
private _moveSel;
|
|
304
|
+
private _clearSel;
|
|
305
|
+
}
|
|
306
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,UAAU,CAAC;AASrC,oFAAoF;AACpF,MAAM,WAAW,eAAe;IAC5B,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAID,4DAA4D;AAC5D,MAAM,WAAW,YAAY;IACzB,SAAS,IAAI,MAAM,CAAC;IACpB,YAAY,IAAI,MAAM,CAAC;CAC1B;AAED,2CAA2C;AAC3C,MAAM,WAAW,WAAW;IACxB,UAAU,CACN,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,MAAM,GACjB,IAAI,CAAC;CACX;AAED,kEAAkE;AAClE,MAAM,WAAW,YAAY;IACzB,+EAA+E;IAC/E,SAAS,CAAC,GAAG,EAAE,QAAQ,CAAC,GAAG,GAAG,OAAO,GAAG,IAAI,CAAC;CAChD;AAED,iEAAiE;AACjE,MAAM,WAAW,YAAY;IACzB,SAAS,IAAI,OAAO,CAAC;IACrB,KAAK,IAAI,IAAI,CAAC;IACd,IAAI,IAAI,IAAI,CAAC;IACb;;;OAGG;IACH,cAAc,CAAC,IAAI,MAAM,CAAC;CAC7B;AAED,8EAA8E;AAC9E,MAAM,MAAM,UAAU,GAAG,YAAY,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