@chocbite/ts-lib-ui 1.1.4 → 1.2.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.
Files changed (52) hide show
  1. package/AGENTS.md +547 -9
  2. package/README.md +3 -0
  3. package/SOURCE.md +10313 -7355
  4. package/base/index.d.mts +2 -2
  5. package/base/index.mjs +68 -5
  6. package/base/index.mjs.map +1 -1
  7. package/canvas/index.d.mts +1 -1
  8. package/canvas/index.mjs +1 -1
  9. package/composition/index.d.mts +283 -0
  10. package/composition/index.mjs +2 -0
  11. package/composition-BlntkKR0.mjs +869 -0
  12. package/composition-BlntkKR0.mjs.map +1 -0
  13. package/context-menu/index.d.mts +1 -1
  14. package/context-menu/index.mjs +1 -1
  15. package/{context-menu-JAujBGVW.mjs → context-menu-C0KTV5zC.mjs} +2 -2
  16. package/{context-menu-JAujBGVW.mjs.map → context-menu-C0KTV5zC.mjs.map} +1 -1
  17. package/depot_ui/index.d.mts +60 -0
  18. package/depot_ui/index.mjs +280 -0
  19. package/depot_ui/index.mjs.map +1 -0
  20. package/form/index.d.mts +2 -758
  21. package/form/index.mjs +1 -2953
  22. package/form-CJA3s46n.mjs +2961 -0
  23. package/form-CJA3s46n.mjs.map +1 -0
  24. package/icons/index.d.mts +1 -1
  25. package/{index-76zZKjTH.d.mts → index-CApVOEcI.d.mts} +2 -2
  26. package/{index-ClIBfrHy.d.mts → index-Czy8O3me.d.mts} +5 -1
  27. package/index-DD09-bGe.d.mts +761 -0
  28. package/{index-D6L_jK1x.d.mts → index-U3pqQjLg.d.mts} +4 -4
  29. package/{index-ClfL2SQR.d.mts → index-_y7vmunA.d.mts} +72 -8
  30. package/keyboard/index.d.mts +1 -1
  31. package/keyboard/index.mjs +1 -1
  32. package/list/index.d.mts +1 -1
  33. package/list/index.mjs +1 -1
  34. package/{list-eV59DvUB.mjs → list-CVrn4y2k.mjs} +3 -3
  35. package/{list-eV59DvUB.mjs.map → list-CVrn4y2k.mjs.map} +1 -1
  36. package/package.json +2 -2
  37. package/prompts/index.d.mts +48 -0
  38. package/prompts/index.mjs +107 -0
  39. package/prompts/index.mjs.map +1 -0
  40. package/spinner/index.d.mts +1 -1
  41. package/spinner/index.mjs +1 -1
  42. package/style.css +2049 -1640
  43. package/svg/index.d.mts +1 -1
  44. package/svg-Yz7elqnU.mjs.map +1 -1
  45. package/theme/index.d.mts +1 -1
  46. package/theme/index.mjs +1 -1
  47. package/{theme-CpaCSGOf.mjs → theme-D0pRMLyT.mjs} +2 -2
  48. package/{theme-CpaCSGOf.mjs.map → theme-D0pRMLyT.mjs.map} +1 -1
  49. package/form/index.mjs.map +0 -1
  50. package/test/index.d.mts +0 -98
  51. package/test/index.mjs +0 -193
  52. package/test/index.mjs.map +0 -1
package/test/index.d.mts DELETED
@@ -1,98 +0,0 @@
1
- import '../style.css';
2
- import { l as Base } from "../index-ClfL2SQR.mjs";
3
- import { State, StateROSW } from "@chocbite/ts-lib/state";
4
- /**A fixed value or a state giving the value*/
5
- export type Input<T> = T | State<T>;
6
- /**Base of the trial elements, attach_input would move to Base if the pattern is kept*/
7
- export declare abstract class TestBase extends Base {
8
- static element_name(): string;
9
- static element_name_space(): string;
10
- /**Applies a fixed value right away, a state is applied while the element is connected
11
- * The last good value is kept when a state gives an error*/
12
- protected attach_input<T>(input: Input<T>, apply: (value: T) => void): void;
13
- }
14
- export interface TestBoxOptions {
15
- width?: Input<number>;
16
- height?: Input<number>;
17
- label?: Input<string>;
18
- /**State only, nothing is subscribed when left out*/
19
- color?: State<string>;
20
- }
21
- /**Colored box, the inputs are both values and states, except color which is only a state*/
22
- export declare class TestBox extends TestBase {
23
- #private;
24
- static element_name(): string;
25
- readonly width: Input<number>;
26
- readonly height: Input<number>;
27
- readonly label: Input<string>;
28
- readonly color: State<string> | undefined;
29
- constructor(options?: TestBoxOptions);
30
- /**Overridable, shows what happens when an input calls into a subclass*/
31
- protected format_label(label: string): string;
32
- }
33
- export interface TestLabelBoxOptions extends TestBoxOptions {
34
- badge?: Input<string>;
35
- }
36
- /**Subclass adding its own input after super, which is safe*/
37
- export declare class TestLabelBox extends TestBox {
38
- #private;
39
- static element_name(): string;
40
- readonly badge: Input<string>;
41
- constructor(options?: TestLabelBoxOptions);
42
- }
43
- export interface TestOverrideBoxOptions extends TestBoxOptions {
44
- prefix: string;
45
- }
46
- /**Subclass overriding a method used by an input, which throws for a fixed label,
47
- * as a fixed value is applied in the base constructor before #prefix exists*/
48
- export declare class TestOverrideBox extends TestBox {
49
- #private;
50
- static element_name(): string;
51
- constructor(options: TestOverrideBoxOptions);
52
- protected format_label(label: string): string;
53
- }
54
- export interface TestGroupOptions {
55
- /**State only, so other elements can always subscribe to it*/
56
- items: State<TestBox[]>;
57
- }
58
- /**Shows a list of boxes and hands the state of the list out to other elements*/
59
- export declare class TestGroup extends TestBase {
60
- static element_name(): string;
61
- readonly items: State<TestBox[]>;
62
- constructor(options: TestGroupOptions);
63
- }
64
- export interface TestWatcherOptions {
65
- group: State<TestGroup | undefined>;
66
- }
67
- /**Follows the list of whichever group it is given, the nested subscription of a viewport following its page*/
68
- export declare class TestWatcher extends TestBase {
69
- #private;
70
- static element_name(): string;
71
- readonly group: State<TestGroup | undefined>;
72
- constructor(options: TestWatcherOptions);
73
- }
74
- export interface TestSliderOptions {
75
- value: StateROSW<number>;
76
- min?: Input<number>;
77
- max?: Input<number>;
78
- }
79
- /**Slider writing to a state, the state can be shared with any other element*/
80
- export declare class TestSlider extends TestBase {
81
- #private;
82
- static element_name(): string;
83
- readonly value: StateROSW<number>;
84
- constructor(options: TestSliderOptions);
85
- }
86
- /**The box written the way elements are written today, with setters and getters, to compare against*/
87
- export declare class TestSetterBox extends TestBase {
88
- #private;
89
- static element_name(): string;
90
- constructor();
91
- set width(width: number);
92
- get width(): number;
93
- set height(height: number);
94
- get height(): number;
95
- set label(label: string);
96
- get label(): string;
97
- }
98
- //# sourceMappingURL=index.d.mts.map
package/test/index.mjs DELETED
@@ -1,193 +0,0 @@
1
- import "../style.css";
2
- import { Base, define_element } from "../base/index.mjs";
3
- import { state as state$1 } from "@chocbite/ts-lib/state";
4
- // test/index.ts
5
- /**Base of the trial elements, attach_input would move to Base if the pattern is kept*/
6
- var TestBase = class extends Base {
7
- static element_name() {
8
- return "@abstract@";
9
- }
10
- static element_name_space() {
11
- return "test";
12
- }
13
- /**Applies a fixed value right away, a state is applied while the element is connected
14
- * The last good value is kept when a state gives an error*/
15
- attach_input(input, apply) {
16
- if (state$1.is.state(input)) this.attach_state(input, (result) => {
17
- if (result.ok) apply(result.value);
18
- });
19
- else apply(input);
20
- }
21
- };
22
- /**Colored box, the inputs are both values and states, except color which is only a state*/
23
- var TestBox = class extends TestBase {
24
- static element_name() {
25
- return "box";
26
- }
27
- width;
28
- height;
29
- label;
30
- color;
31
- #text = this.appendChild(document.createElement("span"));
32
- constructor(options = {}) {
33
- super();
34
- this.width = options.width ?? 100;
35
- this.height = options.height ?? 32;
36
- this.label = options.label ?? "";
37
- this.color = options.color;
38
- this.style.cssText = BOX_STYLE;
39
- this.attach_input(this.width, (width) => {
40
- this.style.width = width + "px";
41
- });
42
- this.attach_input(this.height, (height) => {
43
- this.style.height = height + "px";
44
- });
45
- this.attach_input(this.label, (label) => {
46
- this.#text.textContent = this.format_label(label);
47
- });
48
- if (this.color) this.attach_input(this.color, (color) => {
49
- this.style.background = color;
50
- });
51
- }
52
- /**Overridable, shows what happens when an input calls into a subclass*/
53
- format_label(label) {
54
- return label;
55
- }
56
- };
57
- define_element(TestBox);
58
- const BOX_STYLE = "display:inline-flex;align-items:center;justify-content:center;gap:4px;box-sizing:border-box;overflow:hidden;background:#2980b9;color:white;font:12px sans-serif";
59
- /**Subclass adding its own input after super, which is safe*/
60
- var TestLabelBox = class extends TestBox {
61
- static element_name() {
62
- return "labelbox";
63
- }
64
- badge;
65
- #badge = this.insertBefore(document.createElement("b"), this.firstChild);
66
- constructor(options = {}) {
67
- super(options);
68
- this.badge = options.badge ?? "";
69
- this.attach_input(this.badge, (badge) => {
70
- this.#badge.textContent = badge;
71
- });
72
- }
73
- };
74
- define_element(TestLabelBox);
75
- /**Subclass overriding a method used by an input, which throws for a fixed label,
76
- * as a fixed value is applied in the base constructor before #prefix exists*/
77
- var TestOverrideBox = class extends TestBox {
78
- static element_name() {
79
- return "overridebox";
80
- }
81
- #prefix;
82
- constructor(options) {
83
- super(options);
84
- this.#prefix = options.prefix;
85
- }
86
- format_label(label) {
87
- return this.#prefix + label;
88
- }
89
- };
90
- define_element(TestOverrideBox);
91
- /**Shows a list of boxes and hands the state of the list out to other elements*/
92
- var TestGroup = class extends TestBase {
93
- static element_name() {
94
- return "group";
95
- }
96
- items;
97
- constructor(options) {
98
- super();
99
- this.items = options.items;
100
- this.style.cssText = "display:flex;flex-wrap:wrap;gap:4px";
101
- this.attach_input(this.items, (items) => {
102
- this.replaceChildren(...items);
103
- });
104
- }
105
- };
106
- define_element(TestGroup);
107
- /**Follows the list of whichever group it is given, the nested subscription of a viewport following its page*/
108
- var TestWatcher = class extends TestBase {
109
- static element_name() {
110
- return "watcher";
111
- }
112
- group;
113
- #on_items;
114
- constructor(options) {
115
- super();
116
- this.group = options.group;
117
- this.style.cssText = "font:12px monospace";
118
- this.attach_input(this.group, (group) => {
119
- if (this.#on_items) this.detach_state(this.#on_items);
120
- this.#on_items = void 0;
121
- if (group) this.#on_items = this.attach_state(group.items, (items) => {
122
- this.textContent = items.ok ? `${items.value.length} items` : items.error;
123
- });
124
- else this.textContent = "no group";
125
- });
126
- }
127
- };
128
- define_element(TestWatcher);
129
- /**Slider writing to a state, the state can be shared with any other element*/
130
- var TestSlider = class extends TestBase {
131
- static element_name() {
132
- return "slider";
133
- }
134
- value;
135
- #input = this.appendChild(document.createElement("input"));
136
- constructor(options) {
137
- super();
138
- this.value = options.value;
139
- this.#input.type = "range";
140
- this.attach_input(options.min ?? 0, (min) => {
141
- this.#input.min = String(min);
142
- });
143
- this.attach_input(options.max ?? 100, (max) => {
144
- this.#input.max = String(max);
145
- });
146
- this.attach_input(this.value, (value) => {
147
- this.#input.value = String(value);
148
- });
149
- this.#input.oninput = () => {
150
- this.value.write(Number(this.#input.value));
151
- };
152
- }
153
- };
154
- define_element(TestSlider);
155
- /**The box written the way elements are written today, with setters and getters, to compare against*/
156
- var TestSetterBox = class extends TestBase {
157
- static element_name() {
158
- return "setterbox";
159
- }
160
- #width = 100;
161
- #height = 32;
162
- #label = "";
163
- #text = this.appendChild(document.createElement("span"));
164
- constructor() {
165
- super();
166
- this.style.cssText = BOX_STYLE;
167
- }
168
- set width(width) {
169
- this.#width = width;
170
- this.style.width = width + "px";
171
- }
172
- get width() {
173
- return this.#width;
174
- }
175
- set height(height) {
176
- this.#height = height;
177
- this.style.height = height + "px";
178
- }
179
- get height() {
180
- return this.#height;
181
- }
182
- set label(label) {
183
- this.#label = label;
184
- this.#text.textContent = label;
185
- }
186
- get label() {
187
- return this.#label;
188
- }
189
- };
190
- define_element(TestSetterBox);
191
- export { TestBase, TestBox, TestGroup, TestLabelBox, TestOverrideBox, TestSetterBox, TestSlider, TestWatcher };
192
-
193
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","names":["state"],"sources":["../../../package-ui/test/index.ts"],"sourcesContent":["import { Base, define_element } from \"#base\";\nimport {\n state,\n type State,\n type StateROSW,\n type StateSub,\n} from \"@chocbite/ts-lib/state\";\n\n/**A fixed value or a state giving the value*/\nexport type Input<T> = T | State<T>;\n\n/**Base of the trial elements, attach_input would move to Base if the pattern is kept*/\nexport abstract class TestBase extends Base {\n static element_name() {\n return \"@abstract@\";\n }\n static element_name_space() {\n return \"test\";\n }\n\n /**Applies a fixed value right away, a state is applied while the element is connected\n * The last good value is kept when a state gives an error*/\n protected attach_input<T>(input: Input<T>, apply: (value: T) => void): void {\n if (state.is.state(input))\n this.attach_state(input, (result) => {\n if (result.ok) apply(result.value);\n });\n else apply(input);\n }\n}\n\n// ____ ______ __\n// | _ \\ / __ \\ \\ / /\n// | |_) | | | \\ V /\n// | _ <| | | |> <\n// | |_) | |__| / . \\\n// |____/ \\____/_/ \\_\\\nexport interface TestBoxOptions {\n width?: Input<number>;\n height?: Input<number>;\n label?: Input<string>;\n /**State only, nothing is subscribed when left out*/\n color?: State<string>;\n}\n\n/**Colored box, the inputs are both values and states, except color which is only a state*/\nexport class TestBox extends TestBase {\n static element_name() {\n return \"box\";\n }\n\n readonly width: Input<number>;\n readonly height: Input<number>;\n readonly label: Input<string>;\n readonly color: State<string> | undefined;\n\n #text = this.appendChild(document.createElement(\"span\"));\n\n constructor(options: TestBoxOptions = {}) {\n super();\n this.width = options.width ?? 100;\n this.height = options.height ?? 32;\n this.label = options.label ?? \"\";\n this.color = options.color;\n this.style.cssText = BOX_STYLE;\n this.attach_input(this.width, (width) => {\n this.style.width = width + \"px\";\n });\n this.attach_input(this.height, (height) => {\n this.style.height = height + \"px\";\n });\n this.attach_input(this.label, (label) => {\n this.#text.textContent = this.format_label(label);\n });\n if (this.color)\n this.attach_input(this.color, (color) => {\n this.style.background = color;\n });\n }\n\n /**Overridable, shows what happens when an input calls into a subclass*/\n protected format_label(label: string): string {\n return label;\n }\n}\ndefine_element(TestBox);\n\nconst BOX_STYLE =\n \"display:inline-flex;align-items:center;justify-content:center;gap:4px;box-sizing:border-box;overflow:hidden;background:#2980b9;color:white;font:12px sans-serif\";\n\nexport interface TestLabelBoxOptions extends TestBoxOptions {\n badge?: Input<string>;\n}\n\n/**Subclass adding its own input after super, which is safe*/\nexport class TestLabelBox extends TestBox {\n static element_name() {\n return \"labelbox\";\n }\n\n readonly badge: Input<string>;\n\n #badge = this.insertBefore(\n document.createElement(\"b\"),\n this.firstChild,\n );\n\n constructor(options: TestLabelBoxOptions = {}) {\n super(options);\n this.badge = options.badge ?? \"\";\n this.attach_input(this.badge, (badge) => {\n this.#badge.textContent = badge;\n });\n }\n}\ndefine_element(TestLabelBox);\n\nexport interface TestOverrideBoxOptions extends TestBoxOptions {\n prefix: string;\n}\n\n/**Subclass overriding a method used by an input, which throws for a fixed label,\n * as a fixed value is applied in the base constructor before #prefix exists*/\nexport class TestOverrideBox extends TestBox {\n static element_name() {\n return \"overridebox\";\n }\n\n #prefix: string;\n\n constructor(options: TestOverrideBoxOptions) {\n super(options);\n this.#prefix = options.prefix;\n }\n\n protected format_label(label: string): string {\n return this.#prefix + label;\n }\n}\ndefine_element(TestOverrideBox);\n\n// _____ _____ ____ _ _ _____\n// / ____| __ \\ / __ \\| | | | __ \\\n// | | __| |__) | | | | | | | |__) |\n// | | |_ | _ /| | | | | | | ___/\n// | |__| | | \\ \\| |__| | |__| | |\n// \\_____|_| \\_\\\\____/ \\____/|_|\nexport interface TestGroupOptions {\n /**State only, so other elements can always subscribe to it*/\n items: State<TestBox[]>;\n}\n\n/**Shows a list of boxes and hands the state of the list out to other elements*/\nexport class TestGroup extends TestBase {\n static element_name() {\n return \"group\";\n }\n\n readonly items: State<TestBox[]>;\n\n constructor(options: TestGroupOptions) {\n super();\n this.items = options.items;\n this.style.cssText = \"display:flex;flex-wrap:wrap;gap:4px\";\n this.attach_input(this.items, (items) => {\n this.replaceChildren(...items);\n });\n }\n}\ndefine_element(TestGroup);\n\nexport interface TestWatcherOptions {\n group: State<TestGroup | undefined>;\n}\n\n/**Follows the list of whichever group it is given, the nested subscription of a viewport following its page*/\nexport class TestWatcher extends TestBase {\n static element_name() {\n return \"watcher\";\n }\n\n readonly group: State<TestGroup | undefined>;\n\n #on_items: StateSub<any> | undefined;\n\n constructor(options: TestWatcherOptions) {\n super();\n this.group = options.group;\n this.style.cssText = \"font:12px monospace\";\n this.attach_input(this.group, (group) => {\n if (this.#on_items) this.detach_state(this.#on_items);\n this.#on_items = undefined;\n if (group)\n this.#on_items = this.attach_state(group.items, (items) => {\n this.textContent = items.ok\n ? `${items.value.length} items`\n : items.error;\n });\n else this.textContent = \"no group\";\n });\n }\n}\ndefine_element(TestWatcher);\n\n// _____ _ _____ _____ ______ _____\n// / ____| | |_ _| __ \\| ____| __ \\\n// | (___ | | | | | | | | |__ | |__) |\n// \\___ \\| | | | | | | | __| | _ /\n// ____) | |____ _| |_| |__| | |____| | \\ \\\n// |_____/|______|_____|_____/|______|_| \\_\\\nexport interface TestSliderOptions {\n value: StateROSW<number>;\n min?: Input<number>;\n max?: Input<number>;\n}\n\n/**Slider writing to a state, the state can be shared with any other element*/\nexport class TestSlider extends TestBase {\n static element_name() {\n return \"slider\";\n }\n\n readonly value: StateROSW<number>;\n\n #input = this.appendChild(document.createElement(\"input\"));\n\n constructor(options: TestSliderOptions) {\n super();\n this.value = options.value;\n this.#input.type = \"range\";\n //Limits first, setting the value clamps it to the current limits\n this.attach_input(options.min ?? 0, (min) => {\n this.#input.min = String(min);\n });\n this.attach_input(options.max ?? 100, (max) => {\n this.#input.max = String(max);\n });\n this.attach_input(this.value, (value) => {\n this.#input.value = String(value);\n });\n this.#input.oninput = () => {\n void this.value.write(Number(this.#input.value));\n };\n }\n}\ndefine_element(TestSlider);\n\n// _____ ______ _______ _______ ______ _____ _____\n// / ____| ____|__ __|__ __| ____| __ \\ / ____|\n// | (___ | |__ | | | | | |__ | |__) | (___\n// \\___ \\| __| | | | | | __| | _ / \\___ \\\n// ____) | |____ | | | | | |____| | \\ \\ ____) |\n// |_____/|______| |_| |_| |______|_| \\_\\_____/\n/**The box written the way elements are written today, with setters and getters, to compare against*/\nexport class TestSetterBox extends TestBase {\n static element_name() {\n return \"setterbox\";\n }\n\n #width: number = 100;\n #height: number = 32;\n #label: string = \"\";\n #text = this.appendChild(document.createElement(\"span\"));\n\n constructor() {\n super();\n this.style.cssText = BOX_STYLE;\n }\n\n set width(width: number) {\n this.#width = width;\n this.style.width = width + \"px\";\n }\n get width(): number {\n return this.#width;\n }\n\n set height(height: number) {\n this.#height = height;\n this.style.height = height + \"px\";\n }\n get height(): number {\n return this.#height;\n }\n\n set label(label: string) {\n this.#label = label;\n this.#text.textContent = label;\n }\n get label(): string {\n return this.#label;\n }\n}\ndefine_element(TestSetterBox);\n"],"mappings":";;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