zed-gpui 0.2.2 → 0.4.1
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/README.md +47 -13
- package/dist/index.d.ts +138 -79
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -31,13 +31,7 @@ pnpm add zed-gpui
|
|
|
31
31
|
Almost every method returns the current element, so the normal style is fluent chaining:
|
|
32
32
|
|
|
33
33
|
```ts
|
|
34
|
-
const app = div()
|
|
35
|
-
.flex_()
|
|
36
|
-
.items_('center')
|
|
37
|
-
.justify_('center')
|
|
38
|
-
.w_('100%')
|
|
39
|
-
.h_('100vh')
|
|
40
|
-
.bg_('#f5f5f5');
|
|
34
|
+
const app = div().flex_().items_('center').justify_('center').w_('100%').h_('100vh').bg_('#f5f5f5');
|
|
41
35
|
```
|
|
42
36
|
|
|
43
37
|
### 2. Every method ends with an underscore
|
|
@@ -45,12 +39,12 @@ const app = div()
|
|
|
45
39
|
This is one of the most recognizable parts of the library.
|
|
46
40
|
|
|
47
41
|
```ts
|
|
48
|
-
id_()
|
|
49
|
-
class_()
|
|
50
|
-
child_()
|
|
51
|
-
text_()
|
|
52
|
-
onClick_()
|
|
53
|
-
placeholder_()
|
|
42
|
+
id_();
|
|
43
|
+
class_();
|
|
44
|
+
child_();
|
|
45
|
+
text_();
|
|
46
|
+
onClick_();
|
|
47
|
+
placeholder_();
|
|
54
48
|
```
|
|
55
49
|
|
|
56
50
|
The goal is straightforward:
|
|
@@ -152,6 +146,46 @@ The API surface broadly includes:
|
|
|
152
146
|
- events: `onClick_`, `onInput_`, `onChange_`, `on_`
|
|
153
147
|
- form helpers: `value_`, `placeholder_`, `checked_`, `options_`
|
|
154
148
|
|
|
149
|
+
## Functional chain helpers
|
|
150
|
+
|
|
151
|
+
`HTMLElement` also includes small functional helpers for keeping custom logic inside a chain:
|
|
152
|
+
|
|
153
|
+
```ts
|
|
154
|
+
div()
|
|
155
|
+
.class_('card')
|
|
156
|
+
.tap_((el) => {
|
|
157
|
+
el.dataset.ready = 'true';
|
|
158
|
+
})
|
|
159
|
+
.iterChildren_((child) => {
|
|
160
|
+
child.classList.add('card-child');
|
|
161
|
+
});
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
- `tap_(fn)`: runs `fn(this)` for side effects, then returns the same element.
|
|
165
|
+
- `map_(fn)`: runs `fn(this)` and returns the callback result, useful when you want to leave the chain.
|
|
166
|
+
- `iterChildren_(fn)`: iterates `children` and returns the same element.
|
|
167
|
+
- `iterChildNodes_(fn)`: iterates `childNodes` and returns the same element.
|
|
168
|
+
|
|
169
|
+
## Tree-shaking plugin
|
|
170
|
+
|
|
171
|
+
For production builds, install the companion plugin to automatically remove unused prototype methods from the final bundle:
|
|
172
|
+
|
|
173
|
+
```bash
|
|
174
|
+
pnpm add -D unplugin-zed-gpui
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
```ts
|
|
178
|
+
// vite.config.ts
|
|
179
|
+
import { defineConfig } from 'vite';
|
|
180
|
+
import zedGpui from 'unplugin-zed-gpui';
|
|
181
|
+
|
|
182
|
+
export default defineConfig({
|
|
183
|
+
plugins: [zedGpui.vite()],
|
|
184
|
+
});
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
The plugin scans your source code for used zed-gpui methods, then trims the generated prototype enhancement table. For example, if your app only calls `child_`, unused methods such as `flex_`, `bg_`, `onClick_`, or `placeholder_` can be removed from the output.
|
|
188
|
+
|
|
155
189
|
## Good fit for
|
|
156
190
|
|
|
157
191
|
This library is a good match if you want to:
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,46 @@
|
|
|
1
|
-
//#region src/
|
|
1
|
+
//#region src/common/enhance.d.ts
|
|
2
2
|
declare global {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
function $_(c: {
|
|
4
|
+
prototype: Element;
|
|
5
|
+
}, ...o: object[]): void;
|
|
6
|
+
interface Element {
|
|
7
|
+
gpui: string;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/core/types.d.ts
|
|
12
|
+
interface ZedGpuiFuncional extends Element {
|
|
13
|
+
attr_(attr: string, value: any): this;
|
|
14
|
+
style_(style: string | CSSStyleDeclaration): this;
|
|
15
|
+
child_(...nodes: any[]): this;
|
|
16
|
+
text_(text: string): this;
|
|
17
|
+
remove_(): this;
|
|
18
|
+
class_(classNames: string): this;
|
|
19
|
+
classList_(classList: string[]): this;
|
|
20
|
+
on_(eventName: string, handler: EventListener, options?: boolean | AddEventListenerOptions): this;
|
|
21
|
+
off_(eventName: string, handler: EventListener, options?: boolean | EventListenerOptions): this;
|
|
22
|
+
/**
|
|
23
|
+
* Do some custom modification of this element and turns itself
|
|
24
|
+
*/
|
|
25
|
+
tap_(fn: (thisArg: this) => void): this;
|
|
26
|
+
map_<T = Element>(fn: (thisArg: this) => T): T;
|
|
27
|
+
/**
|
|
28
|
+
* Iterator over children, simply uses `for` but caches length
|
|
29
|
+
*/
|
|
30
|
+
iterChildren_(fn: (child: Element) => void): this;
|
|
31
|
+
/**
|
|
32
|
+
* Iterator over child nodes, simply uses `for` but caches length
|
|
33
|
+
*/
|
|
34
|
+
iterChildNodes_(fn: (childNode: Node) => void): this;
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/core/html/index.d.ts
|
|
38
|
+
declare global {
|
|
39
|
+
interface HTMLElement extends ZedGpuiFuncional {
|
|
40
|
+
readonly gpui: 'html';
|
|
5
41
|
id_(id: string): this;
|
|
6
|
-
attr_(attr: string, value: any): this;
|
|
7
42
|
name_(name: string): this;
|
|
8
|
-
|
|
9
|
-
text_(text: string): this;
|
|
43
|
+
dataset_(key: string, value: any): this;
|
|
10
44
|
class_(classList: string[]): this;
|
|
11
45
|
class_(className: string): this;
|
|
12
46
|
w_(w: string): this;
|
|
@@ -133,63 +167,62 @@ declare global {
|
|
|
133
167
|
transitionDuration_(duration: string): this;
|
|
134
168
|
transitionTimingFunction_(timing: string): this;
|
|
135
169
|
transitionDelay_(delay: string): this;
|
|
136
|
-
onClick_(handler: (event: MouseEvent) => void): this;
|
|
137
|
-
onDoubleClick_(handler: (event: MouseEvent) => void): this;
|
|
138
|
-
onMouseDown_(handler: (event: MouseEvent) => void): this;
|
|
139
|
-
onMouseUp_(handler: (event: MouseEvent) => void): this;
|
|
140
|
-
onMouseMove_(handler: (event: MouseEvent) => void): this;
|
|
141
|
-
onMouseEnter_(handler: (event: MouseEvent) => void): this;
|
|
142
|
-
onMouseLeave_(handler: (event: MouseEvent) => void): this;
|
|
143
|
-
onMouseOver_(handler: (event: MouseEvent) => void): this;
|
|
144
|
-
onMouseOut_(handler: (event: MouseEvent) => void): this;
|
|
145
|
-
onMouseWheel_(handler: (event: WheelEvent) => void): this;
|
|
146
|
-
onKeyDown_(handler: (event: KeyboardEvent) => void): this;
|
|
147
|
-
onKeyUp_(handler: (event: KeyboardEvent) => void): this;
|
|
148
|
-
onKeyPress_(handler: (event: KeyboardEvent) => void): this;
|
|
149
|
-
onFocus_(handler: (event: FocusEvent) => void): this;
|
|
150
|
-
onBlur_(handler: (event: FocusEvent) => void): this;
|
|
151
|
-
onFocusIn_(handler: (event: FocusEvent) => void): this;
|
|
152
|
-
onFocusOut_(handler: (event: FocusEvent) => void): this;
|
|
153
|
-
onChange_(handler: (event: Event) => void): this;
|
|
154
|
-
onInput_(handler: (event: Event) => void): this;
|
|
155
|
-
onSubmit_(handler: (event: SubmitEvent) => void): this;
|
|
156
|
-
onReset_(handler: (event: Event) => void): this;
|
|
157
|
-
onTouchStart_(handler: (event: TouchEvent) => void): this;
|
|
158
|
-
onTouchEnd_(handler: (event: TouchEvent) => void): this;
|
|
159
|
-
onTouchMove_(handler: (event: TouchEvent) => void): this;
|
|
160
|
-
onTouchCancel_(handler: (event: TouchEvent) => void): this;
|
|
161
|
-
onDrag_(handler: (event: DragEvent) => void): this;
|
|
162
|
-
onDragStart_(handler: (event: DragEvent) => void): this;
|
|
163
|
-
onDragEnd_(handler: (event: DragEvent) => void): this;
|
|
164
|
-
onDragEnter_(handler: (event: DragEvent) => void): this;
|
|
165
|
-
onDragLeave_(handler: (event: DragEvent) => void): this;
|
|
166
|
-
onDragOver_(handler: (event: DragEvent) => void): this;
|
|
167
|
-
onDragDrop_(handler: (event: DragEvent) => void): this;
|
|
168
|
-
onCopy_(handler: (event: ClipboardEvent) => void): this;
|
|
169
|
-
onCut_(handler: (event: ClipboardEvent) => void): this;
|
|
170
|
-
onPaste_(handler: (event: ClipboardEvent) => void): this;
|
|
171
|
-
onScroll_(handler: (event: Event) => void): this;
|
|
172
|
-
onResize_(handler: (event: UIEvent) => void): this;
|
|
173
|
-
onPlay_(handler: (event: Event) => void): this;
|
|
174
|
-
onPause_(handler: (event: Event) => void): this;
|
|
175
|
-
onEnded_(handler: (event: Event) => void): this;
|
|
176
|
-
onVolumeChange_(handler: (event: Event) => void): this;
|
|
177
|
-
onAnimationStart_(handler: (event: AnimationEvent) => void): this;
|
|
178
|
-
onAnimationEnd_(handler: (event: AnimationEvent) => void): this;
|
|
179
|
-
onAnimationIteration_(handler: (event: AnimationEvent) => void): this;
|
|
180
|
-
onTransitionEnd_(handler: (event: TransitionEvent) => void): this;
|
|
181
|
-
onPointerDown_(handler: (event: PointerEvent) => void): this;
|
|
182
|
-
onPointerUp_(handler: (event: PointerEvent) => void): this;
|
|
183
|
-
onPointerMove_(handler: (event: PointerEvent) => void): this;
|
|
184
|
-
onPointerEnter_(handler: (event: PointerEvent) => void): this;
|
|
185
|
-
onPointerLeave_(handler: (event: PointerEvent) => void): this;
|
|
186
|
-
onPointerCancel_(handler: (event: PointerEvent) => void): this;
|
|
187
|
-
on_(
|
|
188
|
-
off_(eventName: string, handler: EventListener): this;
|
|
170
|
+
onClick_(handler: (event: MouseEvent) => void, options?: boolean | AddEventListenerOptions): this;
|
|
171
|
+
onDoubleClick_(handler: (event: MouseEvent) => void, options?: boolean | AddEventListenerOptions): this;
|
|
172
|
+
onMouseDown_(handler: (event: MouseEvent) => void, options?: boolean | AddEventListenerOptions): this;
|
|
173
|
+
onMouseUp_(handler: (event: MouseEvent) => void, options?: boolean | AddEventListenerOptions): this;
|
|
174
|
+
onMouseMove_(handler: (event: MouseEvent) => void, options?: boolean | AddEventListenerOptions): this;
|
|
175
|
+
onMouseEnter_(handler: (event: MouseEvent) => void, options?: boolean | AddEventListenerOptions): this;
|
|
176
|
+
onMouseLeave_(handler: (event: MouseEvent) => void, options?: boolean | AddEventListenerOptions): this;
|
|
177
|
+
onMouseOver_(handler: (event: MouseEvent) => void, options?: boolean | AddEventListenerOptions): this;
|
|
178
|
+
onMouseOut_(handler: (event: MouseEvent) => void, options?: boolean | AddEventListenerOptions): this;
|
|
179
|
+
onMouseWheel_(handler: (event: WheelEvent) => void, options?: boolean | AddEventListenerOptions): this;
|
|
180
|
+
onKeyDown_(handler: (event: KeyboardEvent) => void, options?: boolean | AddEventListenerOptions): this;
|
|
181
|
+
onKeyUp_(handler: (event: KeyboardEvent) => void, options?: boolean | AddEventListenerOptions): this;
|
|
182
|
+
onKeyPress_(handler: (event: KeyboardEvent) => void, options?: boolean | AddEventListenerOptions): this;
|
|
183
|
+
onFocus_(handler: (event: FocusEvent) => void, options?: boolean | AddEventListenerOptions): this;
|
|
184
|
+
onBlur_(handler: (event: FocusEvent) => void, options?: boolean | AddEventListenerOptions): this;
|
|
185
|
+
onFocusIn_(handler: (event: FocusEvent) => void, options?: boolean | AddEventListenerOptions): this;
|
|
186
|
+
onFocusOut_(handler: (event: FocusEvent) => void, options?: boolean | AddEventListenerOptions): this;
|
|
187
|
+
onChange_(handler: (event: Event) => void, options?: boolean | AddEventListenerOptions): this;
|
|
188
|
+
onInput_(handler: (event: Event) => void, options?: boolean | AddEventListenerOptions): this;
|
|
189
|
+
onSubmit_(handler: (event: SubmitEvent) => void, options?: boolean | AddEventListenerOptions): this;
|
|
190
|
+
onReset_(handler: (event: Event) => void, options?: boolean | AddEventListenerOptions): this;
|
|
191
|
+
onTouchStart_(handler: (event: TouchEvent) => void, options?: boolean | AddEventListenerOptions): this;
|
|
192
|
+
onTouchEnd_(handler: (event: TouchEvent) => void, options?: boolean | AddEventListenerOptions): this;
|
|
193
|
+
onTouchMove_(handler: (event: TouchEvent) => void, options?: boolean | AddEventListenerOptions): this;
|
|
194
|
+
onTouchCancel_(handler: (event: TouchEvent) => void, options?: boolean | AddEventListenerOptions): this;
|
|
195
|
+
onDrag_(handler: (event: DragEvent) => void, options?: boolean | AddEventListenerOptions): this;
|
|
196
|
+
onDragStart_(handler: (event: DragEvent) => void, options?: boolean | AddEventListenerOptions): this;
|
|
197
|
+
onDragEnd_(handler: (event: DragEvent) => void, options?: boolean | AddEventListenerOptions): this;
|
|
198
|
+
onDragEnter_(handler: (event: DragEvent) => void, options?: boolean | AddEventListenerOptions): this;
|
|
199
|
+
onDragLeave_(handler: (event: DragEvent) => void, options?: boolean | AddEventListenerOptions): this;
|
|
200
|
+
onDragOver_(handler: (event: DragEvent) => void, options?: boolean | AddEventListenerOptions): this;
|
|
201
|
+
onDragDrop_(handler: (event: DragEvent) => void, options?: boolean | AddEventListenerOptions): this;
|
|
202
|
+
onCopy_(handler: (event: ClipboardEvent) => void, options?: boolean | AddEventListenerOptions): this;
|
|
203
|
+
onCut_(handler: (event: ClipboardEvent) => void, options?: boolean | AddEventListenerOptions): this;
|
|
204
|
+
onPaste_(handler: (event: ClipboardEvent) => void, options?: boolean | AddEventListenerOptions): this;
|
|
205
|
+
onScroll_(handler: (event: Event) => void, options?: boolean | AddEventListenerOptions): this;
|
|
206
|
+
onResize_(handler: (event: UIEvent) => void, options?: boolean | AddEventListenerOptions): this;
|
|
207
|
+
onPlay_(handler: (event: Event) => void, options?: boolean | AddEventListenerOptions): this;
|
|
208
|
+
onPause_(handler: (event: Event) => void, options?: boolean | AddEventListenerOptions): this;
|
|
209
|
+
onEnded_(handler: (event: Event) => void, options?: boolean | AddEventListenerOptions): this;
|
|
210
|
+
onVolumeChange_(handler: (event: Event) => void, options?: boolean | AddEventListenerOptions): this;
|
|
211
|
+
onAnimationStart_(handler: (event: AnimationEvent) => void, options?: boolean | AddEventListenerOptions): this;
|
|
212
|
+
onAnimationEnd_(handler: (event: AnimationEvent) => void, options?: boolean | AddEventListenerOptions): this;
|
|
213
|
+
onAnimationIteration_(handler: (event: AnimationEvent) => void, options?: boolean | AddEventListenerOptions): this;
|
|
214
|
+
onTransitionEnd_(handler: (event: TransitionEvent) => void, options?: boolean | AddEventListenerOptions): this;
|
|
215
|
+
onPointerDown_(handler: (event: PointerEvent) => void, options?: boolean | AddEventListenerOptions): this;
|
|
216
|
+
onPointerUp_(handler: (event: PointerEvent) => void, options?: boolean | AddEventListenerOptions): this;
|
|
217
|
+
onPointerMove_(handler: (event: PointerEvent) => void, options?: boolean | AddEventListenerOptions): this;
|
|
218
|
+
onPointerEnter_(handler: (event: PointerEvent) => void, options?: boolean | AddEventListenerOptions): this;
|
|
219
|
+
onPointerLeave_(handler: (event: PointerEvent) => void, options?: boolean | AddEventListenerOptions): this;
|
|
220
|
+
onPointerCancel_(handler: (event: PointerEvent) => void, options?: boolean | AddEventListenerOptions): this;
|
|
221
|
+
on_<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): this;
|
|
189
222
|
}
|
|
190
223
|
}
|
|
191
224
|
//#endregion
|
|
192
|
-
//#region src/core/input.d.ts
|
|
225
|
+
//#region src/core/html/input.d.ts
|
|
193
226
|
declare global {
|
|
194
227
|
interface HTMLInputElement {
|
|
195
228
|
placeholder_(value: string): this;
|
|
@@ -203,15 +236,15 @@ declare global {
|
|
|
203
236
|
onChange_(handler: (event: Event & {
|
|
204
237
|
currentTarget: HTMLInputElement;
|
|
205
238
|
target: HTMLInputElement;
|
|
206
|
-
}) => void): this;
|
|
239
|
+
}) => void, options?: boolean | AddEventListenerOptions): this;
|
|
207
240
|
onInput_(handler: (event: Event & {
|
|
208
241
|
currentTarget: HTMLInputElement;
|
|
209
242
|
target: HTMLInputElement;
|
|
210
|
-
}) => void): this;
|
|
243
|
+
}) => void, options?: boolean | AddEventListenerOptions): this;
|
|
211
244
|
}
|
|
212
245
|
}
|
|
213
246
|
//#endregion
|
|
214
|
-
//#region src/core/textarea.d.ts
|
|
247
|
+
//#region src/core/html/textarea.d.ts
|
|
215
248
|
declare global {
|
|
216
249
|
interface HTMLTextAreaElement {
|
|
217
250
|
placeholder_(value: string): this;
|
|
@@ -225,15 +258,15 @@ declare global {
|
|
|
225
258
|
onChange_(handler: (event: Event & {
|
|
226
259
|
currentTarget: HTMLTextAreaElement;
|
|
227
260
|
target: HTMLTextAreaElement;
|
|
228
|
-
}) => void): this;
|
|
261
|
+
}) => void, options?: boolean | AddEventListenerOptions): this;
|
|
229
262
|
onInput_(handler: (event: Event & {
|
|
230
263
|
currentTarget: HTMLTextAreaElement;
|
|
231
264
|
target: HTMLTextAreaElement;
|
|
232
|
-
}) => void): this;
|
|
265
|
+
}) => void, options?: boolean | AddEventListenerOptions): this;
|
|
233
266
|
}
|
|
234
267
|
}
|
|
235
268
|
//#endregion
|
|
236
|
-
//#region src/core/select.d.ts
|
|
269
|
+
//#region src/core/html/select.d.ts
|
|
237
270
|
declare global {
|
|
238
271
|
interface HTMLSelectElement {
|
|
239
272
|
value_(value: string): this;
|
|
@@ -247,15 +280,15 @@ declare global {
|
|
|
247
280
|
onChange_(handler: (event: Event & {
|
|
248
281
|
currentTarget: HTMLSelectElement;
|
|
249
282
|
target: HTMLSelectElement;
|
|
250
|
-
}) => void): this;
|
|
283
|
+
}) => void, options?: boolean | AddEventListenerOptions): this;
|
|
251
284
|
onInput_(handler: (event: Event & {
|
|
252
285
|
currentTarget: HTMLSelectElement;
|
|
253
286
|
target: HTMLSelectElement;
|
|
254
|
-
}) => void): this;
|
|
287
|
+
}) => void, options?: boolean | AddEventListenerOptions): this;
|
|
255
288
|
}
|
|
256
289
|
}
|
|
257
290
|
//#endregion
|
|
258
|
-
//#region src/core/button.d.ts
|
|
291
|
+
//#region src/core/html/button.d.ts
|
|
259
292
|
declare global {
|
|
260
293
|
interface HTMLButtonElement {
|
|
261
294
|
type_(type: 'button' | 'submit' | 'reset'): this;
|
|
@@ -266,7 +299,7 @@ declare global {
|
|
|
266
299
|
}
|
|
267
300
|
}
|
|
268
301
|
//#endregion
|
|
269
|
-
//#region src/core/form.d.ts
|
|
302
|
+
//#region src/core/html/form.d.ts
|
|
270
303
|
declare global {
|
|
271
304
|
interface HTMLFormElement {
|
|
272
305
|
action_(action: string): this;
|
|
@@ -280,7 +313,7 @@ declare global {
|
|
|
280
313
|
}
|
|
281
314
|
}
|
|
282
315
|
//#endregion
|
|
283
|
-
//#region src/core/a.d.ts
|
|
316
|
+
//#region src/core/html/a.d.ts
|
|
284
317
|
declare global {
|
|
285
318
|
interface HTMLAnchorElement {
|
|
286
319
|
href_(href: string): this;
|
|
@@ -291,7 +324,7 @@ declare global {
|
|
|
291
324
|
}
|
|
292
325
|
}
|
|
293
326
|
//#endregion
|
|
294
|
-
//#region src/core/img.d.ts
|
|
327
|
+
//#region src/core/html/img.d.ts
|
|
295
328
|
declare global {
|
|
296
329
|
interface HTMLImageElement {
|
|
297
330
|
src_(src: string): this;
|
|
@@ -303,7 +336,7 @@ declare global {
|
|
|
303
336
|
}
|
|
304
337
|
}
|
|
305
338
|
//#endregion
|
|
306
|
-
//#region src/core/media.d.ts
|
|
339
|
+
//#region src/core/html/media.d.ts
|
|
307
340
|
declare global {
|
|
308
341
|
interface HTMLMediaElement {
|
|
309
342
|
src_(src: string): this;
|
|
@@ -318,14 +351,14 @@ declare global {
|
|
|
318
351
|
}
|
|
319
352
|
}
|
|
320
353
|
//#endregion
|
|
321
|
-
//#region src/core/label.d.ts
|
|
354
|
+
//#region src/core/html/label.d.ts
|
|
322
355
|
declare global {
|
|
323
356
|
interface HTMLLabelElement {
|
|
324
357
|
for_(htmlFor: string): this;
|
|
325
358
|
}
|
|
326
359
|
}
|
|
327
360
|
//#endregion
|
|
328
|
-
//#region src/core/option.d.ts
|
|
361
|
+
//#region src/core/html/option.d.ts
|
|
329
362
|
declare global {
|
|
330
363
|
interface HTMLOptionElement {
|
|
331
364
|
value_(value: string): this;
|
|
@@ -335,14 +368,14 @@ declare global {
|
|
|
335
368
|
}
|
|
336
369
|
}
|
|
337
370
|
//#endregion
|
|
338
|
-
//#region src/core/details.d.ts
|
|
371
|
+
//#region src/core/html/details.d.ts
|
|
339
372
|
declare global {
|
|
340
373
|
interface HTMLDetailsElement {
|
|
341
374
|
open_(open?: boolean): this;
|
|
342
375
|
}
|
|
343
376
|
}
|
|
344
377
|
//#endregion
|
|
345
|
-
//#region src/core/dialog.d.ts
|
|
378
|
+
//#region src/core/html/dialog.d.ts
|
|
346
379
|
declare global {
|
|
347
380
|
interface HTMLDialogElement {
|
|
348
381
|
open_(open?: boolean): this;
|
|
@@ -352,7 +385,7 @@ declare global {
|
|
|
352
385
|
}
|
|
353
386
|
}
|
|
354
387
|
//#endregion
|
|
355
|
-
//#region src/core/progress.d.ts
|
|
388
|
+
//#region src/core/html/progress.d.ts
|
|
356
389
|
declare global {
|
|
357
390
|
interface HTMLProgressElement {
|
|
358
391
|
value_(value: number): this;
|
|
@@ -368,6 +401,22 @@ declare global {
|
|
|
368
401
|
}
|
|
369
402
|
}
|
|
370
403
|
//#endregion
|
|
404
|
+
//#region src/core/svg/index.d.ts
|
|
405
|
+
declare global {
|
|
406
|
+
interface SVGElement extends ZedGpuiFuncional {
|
|
407
|
+
readonly gpui: 'svg';
|
|
408
|
+
fill_(fill: string): this;
|
|
409
|
+
stroke_(stroke: string): this;
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
//#endregion
|
|
413
|
+
//#region src/core/mathml/index.d.ts
|
|
414
|
+
declare global {
|
|
415
|
+
interface MathMLElement extends ZedGpuiFuncional {
|
|
416
|
+
readonly gpui: 'mathml';
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
//#endregion
|
|
371
420
|
//#region src/index.d.ts
|
|
372
421
|
declare const h: <T extends keyof HTMLElementTagNameMap>(tag: T) => HTMLElementTagNameMap[T];
|
|
373
422
|
declare const div: () => HTMLDivElement;
|
|
@@ -381,6 +430,16 @@ declare const select: (options: Array<{
|
|
|
381
430
|
value: any;
|
|
382
431
|
label: string;
|
|
383
432
|
}>) => HTMLSelectElement;
|
|
433
|
+
/**
|
|
434
|
+
* Creates svg related elements
|
|
435
|
+
* @param tag left empty will make it an `<svg></svg>`
|
|
436
|
+
*/
|
|
437
|
+
declare const svg: <T extends keyof SVGElementTagNameMap>(tag?: T) => SVGElementTagNameMap[T];
|
|
438
|
+
/**
|
|
439
|
+
* Creates mathml related elements
|
|
440
|
+
* @param tag left empty will make it an `<mathml></mathml>`
|
|
441
|
+
*/
|
|
442
|
+
declare const mathml: <T extends keyof MathMLElementTagNameMap>(tag?: T) => MathMLElementTagNameMap[T];
|
|
384
443
|
//#endregion
|
|
385
|
-
export { btn, div, h, input, p, section, select, span, textarea };
|
|
444
|
+
export { btn, div, h, input, mathml, p, section, select, span, svg, textarea };
|
|
386
445
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.assign(HTMLElement.prototype,{id_(e){return this.id=e,this},attr_(e,t){return this.setAttribute(e,t),this},name_(e){return this.setAttribute(`name`,e),this},child_(...e){return this.append(...e),this},class_(e){return this.className=Array.isArray(e)?e.join(` `):e,this},w_(e){return this.style.width=e,this},h_(e){return this.style.height=e,this},size_(e,t){return this.style.width=e,this.style.height=t,this},minW_(e){return this.style.minWidth=e,this},minH_(e){return this.style.minHeight=e,this},maxW_(e){return this.style.maxWidth=e,this},maxH_(e){return this.style.maxHeight=e,this},flex_(){return this.style.display=`flex`,this},flexFlex_(){return this.style.display=`flex`,this.style.flex=`1 1 0%`,this},flexNone_(){return this.style.flex=`none`,this},flexAuto_(){return this.style.flex=`1 1 auto`,this},flexGrow_(e){return this.style.flexGrow=String(e),this},flexShrink_(e){return this.style.flexShrink=String(e),this},flexBasis_(e){return this.style.flexBasis=e,this},flexDirection_(e){return this.style.flexDirection=e,this},flexWrap_(e){return this.style.flexWrap=e,this},grid_(){return this.style.display=`grid`,this},gridTemplateColumns_(e){return this.style.gridTemplateColumns=e,this},gridTemplateRows_(e){return this.style.gridTemplateRows=e,this},gridColumn_(e){return this.style.gridColumn=e,this},gridRow_(e){return this.style.gridRow=e,this},gap_(e){return this.style.gap=e,this},gapX_(e){return this.style.columnGap=e,this},gapY_(e){return this.style.rowGap=e,this},justify_(e){return this.style.justifyContent=e,this},items_(e){return this.style.alignItems=e,this},content_(e){return this.style.alignContent=e,this},self_(e){return this.style.alignSelf=e,this},justifySelf_(e){return this.style.justifySelf=e,this},px_(e){return this.style.paddingLeft=e,this.style.paddingRight=e,this},py_(e){return this.style.paddingTop=e,this.style.paddingBottom=e,this},pt_(e){return this.style.paddingTop=e,this},pr_(e){return this.style.paddingRight=e,this},pb_(e){return this.style.paddingBottom=e,this},pl_(e){return this.style.paddingLeft=e,this},p_(e){return this.style.padding=e,this},mx_(e){return this.style.marginLeft=e,this.style.marginRight=e,this},my_(e){return this.style.marginTop=e,this.style.marginBottom=e,this},mt_(e){return this.style.marginTop=e,this},mr_(e){return this.style.marginRight=e,this},mb_(e){return this.style.marginBottom=e,this},ml_(e){return this.style.marginLeft=e,this},m_(e){return this.style.margin=e,this},border_(){return this.style.border=`1px solid currentColor`,this},borderW_(e){return this.style.borderWidth=e,this},borderT_(e){return this.style.borderTopWidth=e,this},borderR_(e){return this.style.borderRightWidth=e,this},borderB_(e){return this.style.borderBottomWidth=e,this},borderL_(e){return this.style.borderLeftWidth=e,this},borderColor_(e){return this.style.borderColor=e,this},borderStyle_(e){return this.style.borderStyle=e,this},rounded_(e){return this.style.borderRadius=e,this},roundedTL_(e){return this.style.borderTopLeftRadius=e,this},roundedTR_(e){return this.style.borderTopRightRadius=e,this},roundedBL_(e){return this.style.borderBottomLeftRadius=e,this},roundedBR_(e){return this.style.borderBottomRightRadius=e,this},bg_(e){return this.style.backgroundColor=e,this},bgColor_(e){return this.style.backgroundColor=e,this},bgImage_(e){return this.style.backgroundImage=e,this},bgSize_(e){return this.style.backgroundSize=e,this},bgPosition_(e){return this.style.backgroundPosition=e,this},bgRepeat_(e){return this.style.backgroundRepeat=e,this},shadow_(e){return this.style.boxShadow=e,this},shadowMd_(){return this.style.boxShadow=`0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)`,this},shadowLg_(){return this.style.boxShadow=`0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)`,this},shadowNone_(){return this.style.boxShadow=`none`,this},opacity_(e){return this.style.opacity=String(e),this},text_(e){return this.textContent=e,this},textColor_(e){return this.style.color=e,this},textSize_(e){return this.style.fontSize=e,this},textAlign_(e){return this.style.textAlign=e,this},fontWeight_(e){return this.style.fontWeight=e,this},lineHeight_(e){return this.style.lineHeight=e,this},letterSpacing_(e){return this.style.letterSpacing=e,this},textOverflow_(e){return this.style.textOverflow=e,this},whitespace_(e){return this.style.whiteSpace=e,this},truncate_(){return this.style.overflow=`hidden`,this.style.textOverflow=`ellipsis`,this.style.whiteSpace=`nowrap`,this},lineClamp_(e){return this.style.display=`-webkit-box`,this.style.webkitLineClamp=String(e),this.style.webkitBoxOrient=`vertical`,this.style.overflow=`hidden`,this},relative_(){return this.style.position=`relative`,this},absolute_(){return this.style.position=`absolute`,this},fixed_(){return this.style.position=`fixed`,this},sticky_(){return this.style.position=`sticky`,this},static_(){return this.style.position=`static`,this},inset_(e){return this.style.top=e,this.style.right=e,this.style.bottom=e,this.style.left=e,this},insetY_(e){return this.style.top=e,this.style.bottom=e,this},insetX_(e){return this.style.right=e,this.style.left=e,this},top_(e){return this.style.top=e,this},right_(e){return this.style.right=e,this},bottom_(e){return this.style.bottom=e,this},left_(e){return this.style.left=e,this},z_(e){return this.style.zIndex=String(e),this},zIndex_(e){return this.style.zIndex=String(e),this},overflow_(e){return this.style.overflow=e,this},overflowX_(e){return this.style.overflowX=e,this},overflowY_(e){return this.style.overflowY=e,this},overflowHidden_(){return this.style.overflow=`hidden`,this},overflowScroll_(){return this.style.overflow=`scroll`,this},overflowAuto_(){return this.style.overflow=`auto`,this},overflowVisible_(){return this.style.overflow=`visible`,this},cursor_(e){return this.style.cursor=e,this},cursorPointer_(){return this.style.cursor=`pointer`,this},cursorDefault_(){return this.style.cursor=`default`,this},cursorMove_(){return this.style.cursor=`move`,this},cursorGrab_(){return this.style.cursor=`grab`,this},cursorGrabbing_(){return this.style.cursor=`grabbing`,this},pointerEvents_(e){return this.style.pointerEvents=e,this},pointerEventsNone_(){return this.style.pointerEvents=`none`,this},pointerEventsAuto_(){return this.style.pointerEvents=`auto`,this},userSelect_(e){return this.style.userSelect=e,this},selectNone_(){return this.style.userSelect=`none`,this},selectText_(){return this.style.userSelect=`text`,this},selectAll_(){return this.style.userSelect=`all`,this},block_(){return this.style.display=`block`,this},inlineBlock_(){return this.style.display=`inline-block`,this},inline_(){return this.style.display=`inline`,this},hide_(){return this.style.display=`none`,this},visible_(){return this.style.visibility=`visible`,this},invisible_(){return this.style.visibility=`hidden`,this},rotate_(e){return this.style.transform=`rotate(`+e+`deg)`,this},scale_(e,t){return this.style.transform=`scale(`+e+`, `+(t??e)+`)`,this},transformTranslate_(e,t){return this.style.transform=`translate(`+e+`, `+t+`)`,this},transition_(e){return this.style.transition=e,this},transitionDuration_(e){return this.style.transitionDuration=e,this},transitionTimingFunction_(e){return this.style.transitionTimingFunction=e,this},transitionDelay_(e){return this.style.transitionDelay=e,this},onClick_(e){return this.on_(`click`,e)},onDoubleClick_(e){return this.on_(`dblclick`,e)},onMouseDown_(e){return this.on_(`mousedown`,e)},onMouseUp_(e){return this.on_(`mouseup`,e)},onMouseMove_(e){return this.on_(`mousemove`,e)},onMouseEnter_(e){return this.on_(`mouseenter`,e)},onMouseLeave_(e){return this.on_(`mouseleave`,e)},onMouseOver_(e){return this.on_(`mouseover`,e)},onMouseOut_(e){return this.on_(`mouseout`,e)},onMouseWheel_(e){return this.on_(`wheel`,e)},onKeyDown_(e){return this.on_(`keydown`,e)},onKeyUp_(e){return this.on_(`keyup`,e)},onKeyPress_(e){return this.on_(`keypress`,e)},onFocus_(e){return this.on_(`focus`,e)},onBlur_(e){return this.on_(`blur`,e)},onFocusIn_(e){return this.on_(`focusin`,e)},onFocusOut_(e){return this.on_(`focusout`,e)},onChange_(e){return this.on_(`change`,e)},onInput_(e){return this.on_(`input`,e)},onSubmit_(e){return this.on_(`submit`,e)},onReset_(e){return this.on_(`reset`,e)},onTouchStart_(e){return this.on_(`touchstart`,e)},onTouchEnd_(e){return this.on_(`touchend`,e)},onTouchMove_(e){return this.on_(`touchmove`,e)},onTouchCancel_(e){return this.on_(`touchcancel`,e)},onDrag_(e){return this.on_(`drag`,e)},onDragStart_(e){return this.on_(`dragstart`,e)},onDragEnd_(e){return this.on_(`dragend`,e)},onDragEnter_(e){return this.on_(`dragenter`,e)},onDragLeave_(e){return this.on_(`dragleave`,e)},onDragOver_(e){return this.on_(`dragover`,e)},onDragDrop_(e){return this.on_(`drop`,e)},onCopy_(e){return this.on_(`copy`,e)},onCut_(e){return this.on_(`cut`,e)},onPaste_(e){return this.on_(`paste`,e)},onScroll_(e){return this.on_(`scroll`,e)},onResize_(e){return this.on_(`resize`,e)},onPlay_(e){return this.on_(`play`,e)},onPause_(e){return this.on_(`pause`,e)},onEnded_(e){return this.on_(`ended`,e)},onVolumeChange_(e){return this.on_(`volumechange`,e)},onAnimationStart_(e){return this.on_(`animationstart`,e)},onAnimationEnd_(e){return this.on_(`animationend`,e)},onAnimationIteration_(e){return this.on_(`animationiteration`,e)},onTransitionEnd_(e){return this.on_(`transitionend`,e)},onPointerDown_(e){return this.on_(`pointerdown`,e)},onPointerUp_(e){return this.on_(`pointerup`,e)},onPointerMove_(e){return this.on_(`pointermove`,e)},onPointerEnter_(e){return this.on_(`pointerenter`,e)},onPointerLeave_(e){return this.on_(`pointerleave`,e)},onPointerCancel_(e){return this.on_(`pointercancel`,e)},on_(e,t){return this.addEventListener(e,t),this},off_(e,t){return this.removeEventListener(e,t),this}}),Object.assign(HTMLInputElement.prototype,{placeholder_(e){return this.placeholder=e,this},value_(e){return this.value=e,this},type_(e){return this.type=e,this},checked_(e=!0){return this.checked=e,this},disabled_(e=!0){return this.disabled=e,this},focus_(){return this.focus(),this},blur_(){return this.blur(),this},select_(){return this.select(),this},onChange_(e){return this.on_(`change`,e)},onInput_(e){return this.on_(`input`,e)}}),Object.assign(HTMLTextAreaElement.prototype,{placeholder_(e){return this.placeholder=e,this},value_(e){return this.value=e,this},rows_(e){return this.rows=e,this},cols_(e){return this.cols=e,this},disabled_(e=!0){return this.disabled=e,this},focus_(){return this.focus(),this},blur_(){return this.blur(),this},select_(){return this.select(),this},onChange_(e){return this.on_(`change`,e)},onInput_(e){return this.on_(`input`,e)}}),Object.assign(HTMLSelectElement.prototype,{value_(e){return this.value=e,this},options_(e){return this.replaceChildren(...e.map(e=>{let t=document.createElement(`option`);return t.value=String(e.value),t.textContent=e.label,t})),this},disabled_(e=!0){return this.disabled=e,this},focus_(){return this.focus(),this},blur_(){return this.blur(),this},onChange_(e){return this.on_(`change`,e)},onInput_(e){return this.on_(`input`,e)}}),Object.assign(HTMLButtonElement.prototype,{type_(e){return this.type=e,this},disabled_(e=!0){return this.disabled=e,this},name_(e){return this.name=e,this},value_(e){return this.value=e,this},autofocus_(e=!0){return this.autofocus=e,this}}),Object.assign(HTMLFormElement.prototype,{action_(e){return this.action=e,this},method_(e){return this.method=e,this},target_(e){return this.target=e,this},enctype_(e){return this.enctype=e,this},noValidate_(e=!0){return this.noValidate=e,this},reset_(){return this.reset(),this},submit_(){return this.submit(),this},requestSubmit_(){return this.requestSubmit(),this}}),Object.assign(HTMLAnchorElement.prototype,{href_(e){return this.href=e,this},target_(e){return this.target=e,this},rel_(e){return this.rel=e,this},download_(e=``){return this.download=e,this},referrerPolicy_(e){return this.referrerPolicy=e,this}}),Object.assign(HTMLImageElement.prototype,{src_(e){return this.src=e,this},alt_(e){return this.alt=e,this},width_(e){return this.width=e,this},height_(e){return this.height=e,this},loading_(e){return this.loading=e,this},decoding_(e){return this.decoding=e,this}}),Object.assign(HTMLMediaElement.prototype,{src_(e){return this.src=e,this},controls_(e=!0){return this.controls=e,this},autoplay_(e=!0){return this.autoplay=e,this},loop_(e=!0){return this.loop=e,this},muted_(e=!0){return this.muted=e,this},currentTime_(e){return this.currentTime=e,this},volume_(e){return this.volume=e,this},play_(){return this.play(),this},pause_(){return this.pause(),this}}),Object.assign(HTMLLabelElement.prototype,{for_(e){return this.htmlFor=e,this}}),Object.assign(HTMLOptionElement.prototype,{value_(e){return this.value=e,this},selected_(e=!0){return this.selected=e,this},disabled_(e=!0){return this.disabled=e,this},label_(e){return this.label=e,this}}),Object.assign(HTMLDetailsElement.prototype,{open_(e=!0){return this.open=e,this}}),Object.assign(HTMLDialogElement.prototype,{open_(e=!0){return this.open=e,this},show_(){return this.show(),this},showModal_(){return this.showModal(),this},close_(e){return this.close(e),this}}),Object.assign(HTMLProgressElement.prototype,{value_(e){return this.value=e,this},max_(e){return this.max=e,this}}),Object.assign(HTMLMeterElement.prototype,{value_(e){return this.value=e,this},min_(e){return this.min=e,this},max_(e){return this.max=e,this},low_(e){return this.low=e,this},high_(e){return this.high=e,this},optimum_(e){return this.optimum=e,this}});const e=e=>document.createElement(e),t=()=>document.createElement(`div`),n=()=>document.createElement(`span`),r=()=>document.createElement(`section`),i=()=>document.createElement(`p`),a=()=>document.createElement(`input`),o=()=>document.createElement(`textarea`),s=()=>document.createElement(`button`),c=e=>document.createElement(`select`).options_(e);export{s as btn,t as div,e as h,a as input,i as p,r as section,c as select,n as span,o as textarea};
|
|
1
|
+
globalThis.$_=(e,...t)=>Object.assign(e.prototype,...t);let e=(e,t)=>Object.defineProperty(e.prototype,"gpui",{value:t});e(HTMLElement,`html`),e(SVGElement,`svg`),e(MathMLElement,`mathml`),e=null;const t={tap_(e){return e(this),this},map_(e){return e(this)},iterChildren_(e){let t=this.children.length;for(let n=0;n<t;n++)e(this.children[n]);return this},iterChildNodes_(e){let t=this.childNodes.length;for(let n=0;n<t;n++)e(this.childNodes[n]);return this},attr_(e,t){return this.setAttribute(e,t),this},style_(e){return typeof e==`string`?this.style.cssText=e:Object.assign(this.style,e),this},child_(...e){return this.append(...e),this},text_(e){return this.textContent=e,this},remove_(){return this.remove(),this},class_(e){return this.className=e,this},classList_(e){return this.className=e.join(` `),this},on_(e,t,n){return this.addEventListener(e,t,n),this},off_(e,t,n){return this.removeEventListener(e,t,n),this}};$_(HTMLElement,t,{id_(e){return this.id=e,this},name_(e){return this.setAttribute(`name`,e),this},dataset_(e,t){return this.dataset[e]=t,this},w_(e){return this.style.width=e,this},h_(e){return this.style.height=e,this},size_(e,t){return this.style.width=e,this.style.height=t,this},minW_(e){return this.style.minWidth=e,this},minH_(e){return this.style.minHeight=e,this},maxW_(e){return this.style.maxWidth=e,this},maxH_(e){return this.style.maxHeight=e,this},flex_(){return this.style.display=`flex`,this},flexFlex_(){return this.style.display=`flex`,this.style.flex=`1 1 0%`,this},flexNone_(){return this.style.flex=`none`,this},flexAuto_(){return this.style.flex=`1 1 auto`,this},flexGrow_(e){return this.style.flexGrow=String(e),this},flexShrink_(e){return this.style.flexShrink=String(e),this},flexBasis_(e){return this.style.flexBasis=e,this},flexDirection_(e){return this.style.flexDirection=e,this},flexWrap_(e){return this.style.flexWrap=e,this},grid_(){return this.style.display=`grid`,this},gridTemplateColumns_(e){return this.style.gridTemplateColumns=e,this},gridTemplateRows_(e){return this.style.gridTemplateRows=e,this},gridColumn_(e){return this.style.gridColumn=e,this},gridRow_(e){return this.style.gridRow=e,this},gap_(e){return this.style.gap=e,this},gapX_(e){return this.style.columnGap=e,this},gapY_(e){return this.style.rowGap=e,this},justify_(e){return this.style.justifyContent=e,this},items_(e){return this.style.alignItems=e,this},content_(e){return this.style.alignContent=e,this},self_(e){return this.style.alignSelf=e,this},justifySelf_(e){return this.style.justifySelf=e,this},px_(e){return this.style.paddingLeft=e,this.style.paddingRight=e,this},py_(e){return this.style.paddingTop=e,this.style.paddingBottom=e,this},pt_(e){return this.style.paddingTop=e,this},pr_(e){return this.style.paddingRight=e,this},pb_(e){return this.style.paddingBottom=e,this},pl_(e){return this.style.paddingLeft=e,this},p_(e){return this.style.padding=e,this},mx_(e){return this.style.marginLeft=e,this.style.marginRight=e,this},my_(e){return this.style.marginTop=e,this.style.marginBottom=e,this},mt_(e){return this.style.marginTop=e,this},mr_(e){return this.style.marginRight=e,this},mb_(e){return this.style.marginBottom=e,this},ml_(e){return this.style.marginLeft=e,this},m_(e){return this.style.margin=e,this},border_(){return this.style.border=`1px solid currentColor`,this},borderW_(e){return this.style.borderWidth=e,this},borderT_(e){return this.style.borderTopWidth=e,this},borderR_(e){return this.style.borderRightWidth=e,this},borderB_(e){return this.style.borderBottomWidth=e,this},borderL_(e){return this.style.borderLeftWidth=e,this},borderColor_(e){return this.style.borderColor=e,this},borderStyle_(e){return this.style.borderStyle=e,this},rounded_(e){return this.style.borderRadius=e,this},roundedTL_(e){return this.style.borderTopLeftRadius=e,this},roundedTR_(e){return this.style.borderTopRightRadius=e,this},roundedBL_(e){return this.style.borderBottomLeftRadius=e,this},roundedBR_(e){return this.style.borderBottomRightRadius=e,this},bg_(e){return this.style.backgroundColor=e,this},bgColor_(e){return this.style.backgroundColor=e,this},bgImage_(e){return this.style.backgroundImage=e,this},bgSize_(e){return this.style.backgroundSize=e,this},bgPosition_(e){return this.style.backgroundPosition=e,this},bgRepeat_(e){return this.style.backgroundRepeat=e,this},shadow_(e){return this.style.boxShadow=e,this},shadowMd_(){return this.style.boxShadow=`0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)`,this},shadowLg_(){return this.style.boxShadow=`0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)`,this},shadowNone_(){return this.style.boxShadow=`none`,this},opacity_(e){return this.style.opacity=String(e),this},textColor_(e){return this.style.color=e,this},textSize_(e){return this.style.fontSize=e,this},textAlign_(e){return this.style.textAlign=e,this},fontWeight_(e){return this.style.fontWeight=e,this},lineHeight_(e){return this.style.lineHeight=e,this},letterSpacing_(e){return this.style.letterSpacing=e,this},textOverflow_(e){return this.style.textOverflow=e,this},whitespace_(e){return this.style.whiteSpace=e,this},truncate_(){return this.style.overflow=`hidden`,this.style.textOverflow=`ellipsis`,this.style.whiteSpace=`nowrap`,this},lineClamp_(e){return this.style.display=`-webkit-box`,this.style.webkitLineClamp=String(e),this.style.webkitBoxOrient=`vertical`,this.style.overflow=`hidden`,this},relative_(){return this.style.position=`relative`,this},absolute_(){return this.style.position=`absolute`,this},fixed_(){return this.style.position=`fixed`,this},sticky_(){return this.style.position=`sticky`,this},static_(){return this.style.position=`static`,this},inset_(e){return this.style.top=e,this.style.right=e,this.style.bottom=e,this.style.left=e,this},insetY_(e){return this.style.top=e,this.style.bottom=e,this},insetX_(e){return this.style.right=e,this.style.left=e,this},top_(e){return this.style.top=e,this},right_(e){return this.style.right=e,this},bottom_(e){return this.style.bottom=e,this},left_(e){return this.style.left=e,this},z_(e){return this.style.zIndex=String(e),this},zIndex_(e){return this.style.zIndex=String(e),this},overflow_(e){return this.style.overflow=e,this},overflowX_(e){return this.style.overflowX=e,this},overflowY_(e){return this.style.overflowY=e,this},overflowHidden_(){return this.style.overflow=`hidden`,this},overflowScroll_(){return this.style.overflow=`scroll`,this},overflowAuto_(){return this.style.overflow=`auto`,this},overflowVisible_(){return this.style.overflow=`visible`,this},cursor_(e){return this.style.cursor=e,this},cursorPointer_(){return this.style.cursor=`pointer`,this},cursorDefault_(){return this.style.cursor=`default`,this},cursorMove_(){return this.style.cursor=`move`,this},cursorGrab_(){return this.style.cursor=`grab`,this},cursorGrabbing_(){return this.style.cursor=`grabbing`,this},pointerEvents_(e){return this.style.pointerEvents=e,this},pointerEventsNone_(){return this.style.pointerEvents=`none`,this},pointerEventsAuto_(){return this.style.pointerEvents=`auto`,this},userSelect_(e){return this.style.userSelect=e,this},selectNone_(){return this.style.userSelect=`none`,this},selectText_(){return this.style.userSelect=`text`,this},selectAll_(){return this.style.userSelect=`all`,this},block_(){return this.style.display=`block`,this},inlineBlock_(){return this.style.display=`inline-block`,this},inline_(){return this.style.display=`inline`,this},hide_(){return this.style.display=`none`,this},visible_(){return this.style.visibility=`visible`,this},invisible_(){return this.style.visibility=`hidden`,this},rotate_(e){return this.style.transform=`rotate(`+e+`deg)`,this},scale_(e,t){return this.style.transform=`scale(`+e+`, `+(t??e)+`)`,this},transformTranslate_(e,t){return this.style.transform=`translate(`+e+`, `+t+`)`,this},transition_(e){return this.style.transition=e,this},transitionDuration_(e){return this.style.transitionDuration=e,this},transitionTimingFunction_(e){return this.style.transitionTimingFunction=e,this},transitionDelay_(e){return this.style.transitionDelay=e,this},onClick_(e,t){return this.on_(`click`,e,t)},onDoubleClick_(e,t){return this.on_(`dblclick`,e,t)},onMouseDown_(e,t){return this.on_(`mousedown`,e,t)},onMouseUp_(e,t){return this.on_(`mouseup`,e,t)},onMouseMove_(e,t){return this.on_(`mousemove`,e,t)},onMouseEnter_(e,t){return this.on_(`mouseenter`,e,t)},onMouseLeave_(e,t){return this.on_(`mouseleave`,e,t)},onMouseOver_(e,t){return this.on_(`mouseover`,e,t)},onMouseOut_(e,t){return this.on_(`mouseout`,e,t)},onMouseWheel_(e,t){return this.on_(`wheel`,e,t)},onKeyDown_(e,t){return this.on_(`keydown`,e,t)},onKeyUp_(e,t){return this.on_(`keyup`,e,t)},onKeyPress_(e,t){return this.on_(`keypress`,e,t)},onFocus_(e,t){return this.on_(`focus`,e,t)},onBlur_(e,t){return this.on_(`blur`,e,t)},onFocusIn_(e,t){return this.on_(`focusin`,e,t)},onFocusOut_(e,t){return this.on_(`focusout`,e,t)},onChange_(e,t){return this.on_(`change`,e,t)},onInput_(e,t){return this.on_(`input`,e,t)},onSubmit_(e,t){return this.on_(`submit`,e,t)},onReset_(e,t){return this.on_(`reset`,e,t)},onTouchStart_(e,t){return this.on_(`touchstart`,e,t)},onTouchEnd_(e,t){return this.on_(`touchend`,e,t)},onTouchMove_(e,t){return this.on_(`touchmove`,e,t)},onTouchCancel_(e,t){return this.on_(`touchcancel`,e,t)},onDrag_(e,t){return this.on_(`drag`,e,t)},onDragStart_(e,t){return this.on_(`dragstart`,e,t)},onDragEnd_(e,t){return this.on_(`dragend`,e,t)},onDragEnter_(e,t){return this.on_(`dragenter`,e,t)},onDragLeave_(e,t){return this.on_(`dragleave`,e,t)},onDragOver_(e,t){return this.on_(`dragover`,e,t)},onDragDrop_(e,t){return this.on_(`drop`,e,t)},onCopy_(e,t){return this.on_(`copy`,e,t)},onCut_(e,t){return this.on_(`cut`,e,t)},onPaste_(e,t){return this.on_(`paste`,e,t)},onScroll_(e,t){return this.on_(`scroll`,e,t)},onResize_(e,t){return this.on_(`resize`,e,t)},onPlay_(e,t){return this.on_(`play`,e,t)},onPause_(e,t){return this.on_(`pause`,e,t)},onEnded_(e,t){return this.on_(`ended`,e,t)},onVolumeChange_(e,t){return this.on_(`volumechange`,e,t)},onAnimationStart_(e,t){return this.on_(`animationstart`,e,t)},onAnimationEnd_(e,t){return this.on_(`animationend`,e,t)},onAnimationIteration_(e,t){return this.on_(`animationiteration`,e,t)},onTransitionEnd_(e,t){return this.on_(`transitionend`,e,t)},onPointerDown_(e,t){return this.on_(`pointerdown`,e,t)},onPointerUp_(e,t){return this.on_(`pointerup`,e,t)},onPointerMove_(e,t){return this.on_(`pointermove`,e,t)},onPointerEnter_(e,t){return this.on_(`pointerenter`,e,t)},onPointerLeave_(e,t){return this.on_(`pointerleave`,e,t)},onPointerCancel_(e,t){return this.on_(`pointercancel`,e,t)},on_(e,t,n){return this.addEventListener(e,t,n),this}}),$_(HTMLInputElement,{placeholder_(e){return this.placeholder=e,this},value_(e){return this.value=e,this},type_(e){return this.type=e,this},checked_(e=!0){return this.checked=e,this},disabled_(e=!0){return this.disabled=e,this},focus_(){return this.focus(),this},blur_(){return this.blur(),this},select_(){return this.select(),this},onChange_(e,t){return this.on_(`change`,e,t)},onInput_(e,t){return this.on_(`input`,e,t)}}),$_(HTMLTextAreaElement,{placeholder_(e){return this.placeholder=e,this},value_(e){return this.value=e,this},rows_(e){return this.rows=e,this},cols_(e){return this.cols=e,this},disabled_(e=!0){return this.disabled=e,this},focus_(){return this.focus(),this},blur_(){return this.blur(),this},select_(){return this.select(),this},onChange_(e,t){return this.on_(`change`,e,t)},onInput_(e,t){return this.on_(`input`,e,t)}}),$_(HTMLSelectElement,{value_(e){return this.value=e,this},options_(e){return this.replaceChildren(...e.map(e=>{let t=document.createElement(`option`);return t.value=String(e.value),t.textContent=e.label,t})),this},disabled_(e=!0){return this.disabled=e,this},focus_(){return this.focus(),this},blur_(){return this.blur(),this},onChange_(e,t){return this.on_(`change`,e,t)},onInput_(e,t){return this.on_(`input`,e,t)}}),$_(HTMLButtonElement,{type_(e){return this.type=e,this},disabled_(e=!0){return this.disabled=e,this},name_(e){return this.name=e,this},value_(e){return this.value=e,this},autofocus_(e=!0){return this.autofocus=e,this}}),$_(HTMLFormElement,{action_(e){return this.action=e,this},method_(e){return this.method=e,this},target_(e){return this.target=e,this},enctype_(e){return this.enctype=e,this},noValidate_(e=!0){return this.noValidate=e,this},reset_(){return this.reset(),this},submit_(){return this.submit(),this},requestSubmit_(){return this.requestSubmit(),this}}),$_(HTMLAnchorElement,{href_(e){return this.href=e,this},target_(e){return this.target=e,this},rel_(e){return this.rel=e,this},download_(e=``){return this.download=e,this},referrerPolicy_(e){return this.referrerPolicy=e,this}}),$_(HTMLImageElement,{src_(e){return this.src=e,this},alt_(e){return this.alt=e,this},width_(e){return this.width=e,this},height_(e){return this.height=e,this},loading_(e){return this.loading=e,this},decoding_(e){return this.decoding=e,this}}),$_(HTMLMediaElement,{src_(e){return this.src=e,this},controls_(e=!0){return this.controls=e,this},autoplay_(e=!0){return this.autoplay=e,this},loop_(e=!0){return this.loop=e,this},muted_(e=!0){return this.muted=e,this},currentTime_(e){return this.currentTime=e,this},volume_(e){return this.volume=e,this},play_(){return this.play(),this},pause_(){return this.pause(),this}}),$_(HTMLLabelElement,{for_(e){return this.htmlFor=e,this}}),$_(HTMLOptionElement,{value_(e){return this.value=e,this},selected_(e=!0){return this.selected=e,this},disabled_(e=!0){return this.disabled=e,this},label_(e){return this.label=e,this}}),$_(HTMLDetailsElement,{open_(e=!0){return this.open=e,this}}),$_(HTMLDialogElement,{open_(e=!0){return this.open=e,this},show_(){return this.show(),this},showModal_(){return this.showModal(),this},close_(e){return this.close(e),this}}),$_(HTMLProgressElement,{value_(e){return this.value=e,this},max_(e){return this.max=e,this}}),$_(HTMLMeterElement,{value_(e){return this.value=e,this},min_(e){return this.min=e,this},max_(e){return this.max=e,this},low_(e){return this.low=e,this},high_(e){return this.high=e,this},optimum_(e){return this.optimum=e,this}}),$_(SVGElement,t,{fill_(e){return this.setAttribute(`fill`,e),this},stroke_(e){return this.setAttribute(`stroke`,e),this}}),$_(MathMLElement,t),delete globalThis.$_;const n=e=>document.createElement(e),r=()=>document.createElement(`div`),i=()=>document.createElement(`span`),a=()=>document.createElement(`section`),o=()=>document.createElement(`p`),s=()=>document.createElement(`input`),c=()=>document.createElement(`textarea`),l=()=>document.createElement(`button`),u=e=>document.createElement(`select`).options_(e),d=(e=`svg`)=>document.createElementNS(`http://www.w3.org/2000/svg`,e),f=(e=`mathml`)=>document.createElementNS(`http://www.w3.org/1998/Math/MathML`,e);export{l as btn,r as div,n as h,s as input,f as mathml,o as p,a as section,u as select,i as span,d as svg,c as textarea};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../src/core/index.ts","../src/core/input.ts","../src/core/textarea.ts","../src/core/select.ts","../src/core/button.ts","../src/core/form.ts","../src/core/a.ts","../src/core/img.ts","../src/core/media.ts","../src/core/label.ts","../src/core/option.ts","../src/core/details.ts","../src/core/dialog.ts","../src/core/progress.ts","../src/index.ts"],"sourcesContent":["declare global {\n interface HTMLElement {\n jpui: true;\n\n id_(id: string): this;\n attr_(attr: string, value: any): this;\n name_(name: string): this;\n child_(...nodes: any[]): this;\n text_(text: string): this;\n\n class_(classList: string[]): this;\n class_(className: string): this;\n w_(w: string): this;\n h_(h: string): this;\n size_(w: string, h: string): this;\n minW_(w: string): this;\n minH_(h: string): this;\n maxW_(w: string): this;\n maxH_(h: string): this;\n flex_(): this;\n flexFlex_(): this;\n flexNone_(): this;\n flexAuto_(): this;\n flexGrow_(grow: number): this;\n flexShrink_(shrink: number): this;\n flexBasis_(basis: string): this;\n flexDirection_(direction: string): this;\n flexWrap_(wrap: string): this;\n grid_(): this;\n gridTemplateColumns_(columns: string): this;\n gridTemplateRows_(rows: string): this;\n gridColumn_(column: string): this;\n gridRow_(row: string): this;\n gap_(gap: string): this;\n gapX_(gap: string): this;\n gapY_(gap: string): this;\n justify_(justify: string): this;\n items_(items: string): this;\n content_(content: string): this;\n self_(alignSelf: string): this;\n justifySelf_(justifySelf: string): this;\n px_(px: string): this;\n py_(py: string): this;\n pt_(pt: string): this;\n pr_(pr: string): this;\n pb_(pb: string): this;\n pl_(pl: string): this;\n p_(p: string): this;\n mx_(mx: string): this;\n my_(my: string): this;\n mt_(mt: string): this;\n mr_(mr: string): this;\n mb_(mb: string): this;\n ml_(ml: string): this;\n m_(m: string): this;\n border_(): this;\n borderW_(width: string): this;\n borderT_(width: string): this;\n borderR_(width: string): this;\n borderB_(width: string): this;\n borderL_(width: string): this;\n borderColor_(color: string): this;\n borderStyle_(style: string): this;\n rounded_(radius: string): this;\n roundedTL_(radius: string): this;\n roundedTR_(radius: string): this;\n roundedBL_(radius: string): this;\n roundedBR_(radius: string): this;\n bg_(color: string): this;\n bgColor_(color: string): this;\n bgImage_(image: string): this;\n bgSize_(size: string): this;\n bgPosition_(position: string): this;\n bgRepeat_(repeat: string): this;\n shadow_(shadow: string): this;\n shadowMd_(): this;\n shadowLg_(): this;\n shadowNone_(): this;\n opacity_(value: number): this;\n textColor_(color: string): this;\n textSize_(size: string): this;\n textAlign_(align: string): this;\n fontWeight_(weight: string): this;\n lineHeight_(height: string): this;\n letterSpacing_(spacing: string): this;\n textOverflow_(overflow: string): this;\n whitespace_(value: string): this;\n truncate_(): this;\n lineClamp_(lines: number): this;\n relative_(): this;\n absolute_(): this;\n fixed_(): this;\n sticky_(): this;\n static_(): this;\n inset_(value: string): this;\n insetY_(value: string): this;\n insetX_(value: string): this;\n top_(value: string): this;\n right_(value: string): this;\n bottom_(value: string): this;\n left_(value: string): this;\n z_(value: number): this;\n zIndex_(value: number): this;\n overflow_(value: string): this;\n overflowX_(value: string): this;\n overflowY_(value: string): this;\n overflowHidden_(): this;\n overflowScroll_(): this;\n overflowAuto_(): this;\n overflowVisible_(): this;\n cursor_(cursor: string): this;\n cursorPointer_(): this;\n cursorDefault_(): this;\n cursorMove_(): this;\n cursorGrab_(): this;\n cursorGrabbing_(): this;\n pointerEvents_(value: string): this;\n pointerEventsNone_(): this;\n pointerEventsAuto_(): this;\n userSelect_(value: string): this;\n selectNone_(): this;\n selectText_(): this;\n selectAll_(): this;\n block_(): this;\n inlineBlock_(): this;\n inline_(): this;\n hide_(): this;\n visible_(): this;\n invisible_(): this;\n rotate_(deg: number): this;\n scale_(x: number, y?: number): this;\n transformTranslate_(x: string, y: string): this;\n transition_(property: string): this;\n transitionDuration_(duration: string): this;\n transitionTimingFunction_(timing: string): this;\n transitionDelay_(delay: string): this;\n\n onClick_(handler: (event: MouseEvent) => void): this;\n onDoubleClick_(handler: (event: MouseEvent) => void): this;\n onMouseDown_(handler: (event: MouseEvent) => void): this;\n onMouseUp_(handler: (event: MouseEvent) => void): this;\n onMouseMove_(handler: (event: MouseEvent) => void): this;\n onMouseEnter_(handler: (event: MouseEvent) => void): this;\n onMouseLeave_(handler: (event: MouseEvent) => void): this;\n onMouseOver_(handler: (event: MouseEvent) => void): this;\n onMouseOut_(handler: (event: MouseEvent) => void): this;\n onMouseWheel_(handler: (event: WheelEvent) => void): this;\n onKeyDown_(handler: (event: KeyboardEvent) => void): this;\n onKeyUp_(handler: (event: KeyboardEvent) => void): this;\n onKeyPress_(handler: (event: KeyboardEvent) => void): this;\n onFocus_(handler: (event: FocusEvent) => void): this;\n onBlur_(handler: (event: FocusEvent) => void): this;\n onFocusIn_(handler: (event: FocusEvent) => void): this;\n onFocusOut_(handler: (event: FocusEvent) => void): this;\n onChange_(handler: (event: Event) => void): this;\n onInput_(handler: (event: Event) => void): this;\n onSubmit_(handler: (event: SubmitEvent) => void): this;\n onReset_(handler: (event: Event) => void): this;\n onTouchStart_(handler: (event: TouchEvent) => void): this;\n onTouchEnd_(handler: (event: TouchEvent) => void): this;\n onTouchMove_(handler: (event: TouchEvent) => void): this;\n onTouchCancel_(handler: (event: TouchEvent) => void): this;\n onDrag_(handler: (event: DragEvent) => void): this;\n onDragStart_(handler: (event: DragEvent) => void): this;\n onDragEnd_(handler: (event: DragEvent) => void): this;\n onDragEnter_(handler: (event: DragEvent) => void): this;\n onDragLeave_(handler: (event: DragEvent) => void): this;\n onDragOver_(handler: (event: DragEvent) => void): this;\n onDragDrop_(handler: (event: DragEvent) => void): this;\n onCopy_(handler: (event: ClipboardEvent) => void): this;\n onCut_(handler: (event: ClipboardEvent) => void): this;\n onPaste_(handler: (event: ClipboardEvent) => void): this;\n onScroll_(handler: (event: Event) => void): this;\n onResize_(handler: (event: UIEvent) => void): this;\n onPlay_(handler: (event: Event) => void): this;\n onPause_(handler: (event: Event) => void): this;\n onEnded_(handler: (event: Event) => void): this;\n onVolumeChange_(handler: (event: Event) => void): this;\n onAnimationStart_(handler: (event: AnimationEvent) => void): this;\n onAnimationEnd_(handler: (event: AnimationEvent) => void): this;\n onAnimationIteration_(handler: (event: AnimationEvent) => void): this;\n onTransitionEnd_(handler: (event: TransitionEvent) => void): this;\n onPointerDown_(handler: (event: PointerEvent) => void): this;\n onPointerUp_(handler: (event: PointerEvent) => void): this;\n onPointerMove_(handler: (event: PointerEvent) => void): this;\n onPointerEnter_(handler: (event: PointerEvent) => void): this;\n onPointerLeave_(handler: (event: PointerEvent) => void): this;\n onPointerCancel_(handler: (event: PointerEvent) => void): this;\n on_(eventName: string, handler: EventListener): this;\n off_(eventName: string, handler: EventListener): this;\n }\n}\n\nObject.assign(HTMLElement.prototype, {\n id_(id) {\n this.id = id;\n return this;\n },\n attr_(attr, value) {\n this.setAttribute(attr, value);\n return this;\n },\n name_(name) {\n this.setAttribute('name', name);\n return this;\n },\n child_(...nodes) {\n this.append(...nodes);\n return this;\n },\n class_(c) {\n this.className = Array.isArray(c) ? c.join(' ') : c;\n return this;\n },\n w_(w) {\n this.style.width = w;\n return this;\n },\n h_(h) {\n this.style.height = h;\n return this;\n },\n size_(w, h) {\n this.style.width = w;\n this.style.height = h;\n return this;\n },\n minW_(w) {\n this.style.minWidth = w;\n return this;\n },\n minH_(h) {\n this.style.minHeight = h;\n return this;\n },\n maxW_(w) {\n this.style.maxWidth = w;\n return this;\n },\n maxH_(h) {\n this.style.maxHeight = h;\n return this;\n },\n flex_() {\n this.style.display = 'flex';\n return this;\n },\n flexFlex_() {\n this.style.display = 'flex';\n this.style.flex = '1 1 0%';\n return this;\n },\n flexNone_() {\n this.style.flex = 'none';\n return this;\n },\n flexAuto_() {\n this.style.flex = '1 1 auto';\n return this;\n },\n flexGrow_(grow) {\n this.style.flexGrow = String(grow);\n return this;\n },\n flexShrink_(shrink) {\n this.style.flexShrink = String(shrink);\n return this;\n },\n flexBasis_(basis) {\n this.style.flexBasis = basis;\n return this;\n },\n flexDirection_(direction) {\n this.style.flexDirection = direction;\n return this;\n },\n flexWrap_(wrap) {\n this.style.flexWrap = wrap;\n return this;\n },\n grid_() {\n this.style.display = 'grid';\n return this;\n },\n gridTemplateColumns_(columns) {\n this.style.gridTemplateColumns = columns;\n return this;\n },\n gridTemplateRows_(rows) {\n this.style.gridTemplateRows = rows;\n return this;\n },\n gridColumn_(column) {\n this.style.gridColumn = column;\n return this;\n },\n gridRow_(row) {\n this.style.gridRow = row;\n return this;\n },\n gap_(gap) {\n this.style.gap = gap;\n return this;\n },\n gapX_(gap) {\n this.style.columnGap = gap;\n return this;\n },\n gapY_(gap) {\n this.style.rowGap = gap;\n return this;\n },\n justify_(justify) {\n this.style.justifyContent = justify;\n return this;\n },\n items_(items) {\n this.style.alignItems = items;\n return this;\n },\n content_(content) {\n this.style.alignContent = content;\n return this;\n },\n self_(alignSelf) {\n this.style.alignSelf = alignSelf;\n return this;\n },\n justifySelf_(justifySelf) {\n this.style.justifySelf = justifySelf;\n return this;\n },\n px_(px) {\n this.style.paddingLeft = px;\n this.style.paddingRight = px;\n return this;\n },\n py_(py) {\n this.style.paddingTop = py;\n this.style.paddingBottom = py;\n return this;\n },\n pt_(pt) {\n this.style.paddingTop = pt;\n return this;\n },\n pr_(pr) {\n this.style.paddingRight = pr;\n return this;\n },\n pb_(pb) {\n this.style.paddingBottom = pb;\n return this;\n },\n pl_(pl) {\n this.style.paddingLeft = pl;\n return this;\n },\n p_(p) {\n this.style.padding = p;\n return this;\n },\n mx_(mx) {\n this.style.marginLeft = mx;\n this.style.marginRight = mx;\n return this;\n },\n my_(my) {\n this.style.marginTop = my;\n this.style.marginBottom = my;\n return this;\n },\n mt_(mt) {\n this.style.marginTop = mt;\n return this;\n },\n mr_(mr) {\n this.style.marginRight = mr;\n return this;\n },\n mb_(mb) {\n this.style.marginBottom = mb;\n return this;\n },\n ml_(ml) {\n this.style.marginLeft = ml;\n return this;\n },\n m_(m) {\n this.style.margin = m;\n return this;\n },\n border_() {\n this.style.border = '1px solid currentColor';\n return this;\n },\n borderW_(width) {\n this.style.borderWidth = width;\n return this;\n },\n borderT_(width) {\n this.style.borderTopWidth = width;\n return this;\n },\n borderR_(width) {\n this.style.borderRightWidth = width;\n return this;\n },\n borderB_(width) {\n this.style.borderBottomWidth = width;\n return this;\n },\n borderL_(width) {\n this.style.borderLeftWidth = width;\n return this;\n },\n borderColor_(color) {\n this.style.borderColor = color;\n return this;\n },\n borderStyle_(style) {\n this.style.borderStyle = style;\n return this;\n },\n rounded_(radius) {\n this.style.borderRadius = radius;\n return this;\n },\n roundedTL_(radius) {\n this.style.borderTopLeftRadius = radius;\n return this;\n },\n roundedTR_(radius) {\n this.style.borderTopRightRadius = radius;\n return this;\n },\n roundedBL_(radius) {\n this.style.borderBottomLeftRadius = radius;\n return this;\n },\n roundedBR_(radius) {\n this.style.borderBottomRightRadius = radius;\n return this;\n },\n bg_(color) {\n this.style.backgroundColor = color;\n return this;\n },\n bgColor_(color) {\n this.style.backgroundColor = color;\n return this;\n },\n bgImage_(image) {\n this.style.backgroundImage = image;\n return this;\n },\n bgSize_(size) {\n this.style.backgroundSize = size;\n return this;\n },\n bgPosition_(position) {\n this.style.backgroundPosition = position;\n return this;\n },\n bgRepeat_(repeat) {\n this.style.backgroundRepeat = repeat;\n return this;\n },\n shadow_(shadow) {\n this.style.boxShadow = shadow;\n return this;\n },\n shadowMd_() {\n this.style.boxShadow = '0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)';\n return this;\n },\n shadowLg_() {\n this.style.boxShadow = '0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)';\n return this;\n },\n shadowNone_() {\n this.style.boxShadow = 'none';\n return this;\n },\n opacity_(value) {\n this.style.opacity = String(value);\n return this;\n },\n text_(t) {\n this.textContent = t;\n return this;\n },\n textColor_(color) {\n this.style.color = color;\n return this;\n },\n textSize_(size) {\n this.style.fontSize = size;\n return this;\n },\n textAlign_(align) {\n this.style.textAlign = align;\n return this;\n },\n fontWeight_(weight) {\n this.style.fontWeight = weight;\n return this;\n },\n lineHeight_(height) {\n this.style.lineHeight = height;\n return this;\n },\n letterSpacing_(spacing) {\n this.style.letterSpacing = spacing;\n return this;\n },\n textOverflow_(overflow) {\n this.style.textOverflow = overflow;\n return this;\n },\n whitespace_(value) {\n this.style.whiteSpace = value;\n return this;\n },\n truncate_() {\n this.style.overflow = 'hidden';\n this.style.textOverflow = 'ellipsis';\n this.style.whiteSpace = 'nowrap';\n return this;\n },\n lineClamp_(lines) {\n this.style.display = '-webkit-box';\n this.style.webkitLineClamp = String(lines);\n this.style.webkitBoxOrient = 'vertical';\n this.style.overflow = 'hidden';\n return this;\n },\n relative_() {\n this.style.position = 'relative';\n return this;\n },\n absolute_() {\n this.style.position = 'absolute';\n return this;\n },\n fixed_() {\n this.style.position = 'fixed';\n return this;\n },\n sticky_() {\n this.style.position = 'sticky';\n return this;\n },\n static_() {\n this.style.position = 'static';\n return this;\n },\n inset_(value) {\n this.style.top = value;\n this.style.right = value;\n this.style.bottom = value;\n this.style.left = value;\n return this;\n },\n insetY_(value) {\n this.style.top = value;\n this.style.bottom = value;\n return this;\n },\n insetX_(value) {\n this.style.right = value;\n this.style.left = value;\n return this;\n },\n top_(value) {\n this.style.top = value;\n return this;\n },\n right_(value) {\n this.style.right = value;\n return this;\n },\n bottom_(value) {\n this.style.bottom = value;\n return this;\n },\n left_(value) {\n this.style.left = value;\n return this;\n },\n z_(value) {\n this.style.zIndex = String(value);\n return this;\n },\n zIndex_(value) {\n this.style.zIndex = String(value);\n return this;\n },\n overflow_(value) {\n this.style.overflow = value;\n return this;\n },\n overflowX_(value) {\n this.style.overflowX = value;\n return this;\n },\n overflowY_(value) {\n this.style.overflowY = value;\n return this;\n },\n overflowHidden_() {\n this.style.overflow = 'hidden';\n return this;\n },\n overflowScroll_() {\n this.style.overflow = 'scroll';\n return this;\n },\n overflowAuto_() {\n this.style.overflow = 'auto';\n return this;\n },\n overflowVisible_() {\n this.style.overflow = 'visible';\n return this;\n },\n cursor_(cursor) {\n this.style.cursor = cursor;\n return this;\n },\n cursorPointer_() {\n this.style.cursor = 'pointer';\n return this;\n },\n cursorDefault_() {\n this.style.cursor = 'default';\n return this;\n },\n cursorMove_() {\n this.style.cursor = 'move';\n return this;\n },\n cursorGrab_() {\n this.style.cursor = 'grab';\n return this;\n },\n cursorGrabbing_() {\n this.style.cursor = 'grabbing';\n return this;\n },\n pointerEvents_(value) {\n this.style.pointerEvents = value;\n return this;\n },\n pointerEventsNone_() {\n this.style.pointerEvents = 'none';\n return this;\n },\n pointerEventsAuto_() {\n this.style.pointerEvents = 'auto';\n return this;\n },\n userSelect_(value) {\n this.style.userSelect = value;\n return this;\n },\n selectNone_() {\n this.style.userSelect = 'none';\n return this;\n },\n selectText_() {\n this.style.userSelect = 'text';\n return this;\n },\n selectAll_() {\n this.style.userSelect = 'all';\n return this;\n },\n block_() {\n this.style.display = 'block';\n return this;\n },\n inlineBlock_() {\n this.style.display = 'inline-block';\n return this;\n },\n inline_() {\n this.style.display = 'inline';\n return this;\n },\n hide_() {\n this.style.display = 'none';\n return this;\n },\n visible_() {\n this.style.visibility = 'visible';\n return this;\n },\n invisible_() {\n this.style.visibility = 'hidden';\n return this;\n },\n rotate_(deg) {\n this.style.transform = 'rotate(' + deg + 'deg)';\n return this;\n },\n scale_(x, y) {\n this.style.transform = 'scale(' + x + ', ' + (y ?? x) + ')';\n return this;\n },\n transformTranslate_(x, y) {\n this.style.transform = 'translate(' + x + ', ' + y + ')';\n return this;\n },\n transition_(property) {\n this.style.transition = property;\n return this;\n },\n transitionDuration_(duration) {\n this.style.transitionDuration = duration;\n return this;\n },\n transitionTimingFunction_(timing) {\n this.style.transitionTimingFunction = timing;\n return this;\n },\n transitionDelay_(delay) {\n this.style.transitionDelay = delay;\n return this;\n },\n onClick_(handler) {\n return this.on_('click', handler as EventListener);\n },\n onDoubleClick_(handler) {\n return this.on_('dblclick', handler as EventListener);\n },\n onMouseDown_(handler) {\n return this.on_('mousedown', handler as EventListener);\n },\n onMouseUp_(handler) {\n return this.on_('mouseup', handler as EventListener);\n },\n onMouseMove_(handler) {\n return this.on_('mousemove', handler as EventListener);\n },\n onMouseEnter_(handler) {\n return this.on_('mouseenter', handler as EventListener);\n },\n onMouseLeave_(handler) {\n return this.on_('mouseleave', handler as EventListener);\n },\n onMouseOver_(handler) {\n return this.on_('mouseover', handler as EventListener);\n },\n onMouseOut_(handler) {\n return this.on_('mouseout', handler as EventListener);\n },\n onMouseWheel_(handler) {\n return this.on_('wheel', handler as EventListener);\n },\n onKeyDown_(handler) {\n return this.on_('keydown', handler as EventListener);\n },\n onKeyUp_(handler) {\n return this.on_('keyup', handler as EventListener);\n },\n onKeyPress_(handler) {\n return this.on_('keypress', handler as EventListener);\n },\n onFocus_(handler) {\n return this.on_('focus', handler as EventListener);\n },\n onBlur_(handler) {\n return this.on_('blur', handler as EventListener);\n },\n onFocusIn_(handler) {\n return this.on_('focusin', handler as EventListener);\n },\n onFocusOut_(handler) {\n return this.on_('focusout', handler as EventListener);\n },\n onChange_(handler) {\n return this.on_('change', handler as EventListener);\n },\n onInput_(handler) {\n return this.on_('input', handler as EventListener);\n },\n onSubmit_(handler) {\n return this.on_('submit', handler as EventListener);\n },\n onReset_(handler) {\n return this.on_('reset', handler as EventListener);\n },\n onTouchStart_(handler) {\n return this.on_('touchstart', handler as EventListener);\n },\n onTouchEnd_(handler) {\n return this.on_('touchend', handler as EventListener);\n },\n onTouchMove_(handler) {\n return this.on_('touchmove', handler as EventListener);\n },\n onTouchCancel_(handler) {\n return this.on_('touchcancel', handler as EventListener);\n },\n onDrag_(handler) {\n return this.on_('drag', handler as EventListener);\n },\n onDragStart_(handler) {\n return this.on_('dragstart', handler as EventListener);\n },\n onDragEnd_(handler) {\n return this.on_('dragend', handler as EventListener);\n },\n onDragEnter_(handler) {\n return this.on_('dragenter', handler as EventListener);\n },\n onDragLeave_(handler) {\n return this.on_('dragleave', handler as EventListener);\n },\n onDragOver_(handler) {\n return this.on_('dragover', handler as EventListener);\n },\n onDragDrop_(handler) {\n return this.on_('drop', handler as EventListener);\n },\n onCopy_(handler) {\n return this.on_('copy', handler as EventListener);\n },\n onCut_(handler) {\n return this.on_('cut', handler as EventListener);\n },\n onPaste_(handler) {\n return this.on_('paste', handler as EventListener);\n },\n onScroll_(handler) {\n return this.on_('scroll', handler as EventListener);\n },\n onResize_(handler) {\n return this.on_('resize', handler as EventListener);\n },\n onPlay_(handler) {\n return this.on_('play', handler as EventListener);\n },\n onPause_(handler) {\n return this.on_('pause', handler as EventListener);\n },\n onEnded_(handler) {\n return this.on_('ended', handler as EventListener);\n },\n onVolumeChange_(handler) {\n return this.on_('volumechange', handler as EventListener);\n },\n onAnimationStart_(handler) {\n return this.on_('animationstart', handler as EventListener);\n },\n onAnimationEnd_(handler) {\n return this.on_('animationend', handler as EventListener);\n },\n onAnimationIteration_(handler) {\n return this.on_('animationiteration', handler as EventListener);\n },\n onTransitionEnd_(handler) {\n return this.on_('transitionend', handler as EventListener);\n },\n onPointerDown_(handler) {\n return this.on_('pointerdown', handler as EventListener);\n },\n onPointerUp_(handler) {\n return this.on_('pointerup', handler as EventListener);\n },\n onPointerMove_(handler) {\n return this.on_('pointermove', handler as EventListener);\n },\n onPointerEnter_(handler) {\n return this.on_('pointerenter', handler as EventListener);\n },\n onPointerLeave_(handler) {\n return this.on_('pointerleave', handler as EventListener);\n },\n onPointerCancel_(handler) {\n return this.on_('pointercancel', handler as EventListener);\n },\n on_(eventName, handler) {\n this.addEventListener(eventName, handler);\n return this;\n },\n off_(eventName, handler) {\n this.removeEventListener(eventName, handler);\n return this;\n },\n} as HTMLElement);\n\nexport {};\n","declare global {\n interface HTMLInputElement {\n placeholder_(value: string): this;\n value_(value: string): this;\n type_(type: string): this;\n checked_(checked?: boolean): this;\n disabled_(disabled?: boolean): this;\n focus_(): this;\n blur_(): this;\n select_(): this;\n onChange_(\n handler: (\n event: Event & { currentTarget: HTMLInputElement; target: HTMLInputElement },\n ) => void,\n ): this;\n onInput_(\n handler: (\n event: Event & { currentTarget: HTMLInputElement; target: HTMLInputElement },\n ) => void,\n ): this;\n }\n}\nObject.assign(HTMLInputElement.prototype, {\n placeholder_(value) {\n this.placeholder = value;\n return this;\n },\n value_(value) {\n this.value = value;\n return this;\n },\n type_(type) {\n this.type = type;\n return this;\n },\n checked_(checked = true) {\n this.checked = checked;\n return this;\n },\n disabled_(disabled = true) {\n this.disabled = disabled;\n return this;\n },\n focus_() {\n this.focus();\n return this;\n },\n blur_() {\n this.blur();\n return this;\n },\n select_() {\n this.select();\n return this;\n },\n onChange_(handler) {\n return this.on_('change', handler as EventListener);\n },\n onInput_(handler) {\n return this.on_('input', handler as EventListener);\n },\n} as HTMLInputElement);\nexport {};\n","declare global {\n interface HTMLTextAreaElement {\n placeholder_(value: string): this;\n value_(value: string): this;\n rows_(rows: number): this;\n cols_(cols: number): this;\n disabled_(disabled?: boolean): this;\n focus_(): this;\n blur_(): this;\n select_(): this;\n onChange_(\n handler: (\n event: Event & { currentTarget: HTMLTextAreaElement; target: HTMLTextAreaElement },\n ) => void,\n ): this;\n onInput_(\n handler: (\n event: Event & { currentTarget: HTMLTextAreaElement; target: HTMLTextAreaElement },\n ) => void,\n ): this;\n }\n}\nObject.assign(HTMLTextAreaElement.prototype, {\n placeholder_(value) {\n this.placeholder = value;\n return this;\n },\n value_(value) {\n this.value = value;\n return this;\n },\n rows_(rows) {\n this.rows = rows;\n return this;\n },\n cols_(cols) {\n this.cols = cols;\n return this;\n },\n disabled_(disabled = true) {\n this.disabled = disabled;\n return this;\n },\n focus_() {\n this.focus();\n return this;\n },\n blur_() {\n this.blur();\n return this;\n },\n select_() {\n this.select();\n return this;\n },\n onChange_(handler) {\n return this.on_('change', handler as EventListener);\n },\n onInput_(handler) {\n return this.on_('input', handler as EventListener);\n },\n} as HTMLTextAreaElement);\nexport {};\n","declare global {\n interface HTMLSelectElement {\n value_(value: string): this;\n options_(options: Array<{ value: any; label: string }>): this;\n disabled_(disabled?: boolean): this;\n focus_(): this;\n blur_(): this;\n onChange_(\n handler: (\n event: Event & { currentTarget: HTMLSelectElement; target: HTMLSelectElement },\n ) => void,\n ): this;\n onInput_(\n handler: (\n event: Event & { currentTarget: HTMLSelectElement; target: HTMLSelectElement },\n ) => void,\n ): this;\n }\n}\nObject.assign(HTMLSelectElement.prototype, {\n value_(value) {\n this.value = value;\n return this;\n },\n options_(options) {\n this.replaceChildren(\n ...options.map((option) => {\n const node = document.createElement('option');\n node.value = String(option.value);\n node.textContent = option.label;\n return node;\n }),\n );\n return this;\n },\n disabled_(disabled = true) {\n this.disabled = disabled;\n return this;\n },\n focus_() {\n this.focus();\n return this;\n },\n blur_() {\n this.blur();\n return this;\n },\n onChange_(handler) {\n return this.on_('change', handler as EventListener);\n },\n onInput_(handler) {\n return this.on_('input', handler as EventListener);\n },\n} as HTMLSelectElement);\nexport {};\n","declare global {\n interface HTMLButtonElement {\n type_(type: 'button' | 'submit' | 'reset'): this;\n disabled_(disabled?: boolean): this;\n name_(name: string): this;\n value_(value: string): this;\n autofocus_(autofocus?: boolean): this;\n }\n}\nObject.assign(HTMLButtonElement.prototype, {\n type_(type) {\n this.type = type;\n return this;\n },\n disabled_(disabled = true) {\n this.disabled = disabled;\n return this;\n },\n name_(name) {\n this.name = name;\n return this;\n },\n value_(value) {\n this.value = value;\n return this;\n },\n autofocus_(autofocus = true) {\n this.autofocus = autofocus;\n return this;\n },\n} as HTMLButtonElement);\nexport {};\n","declare global {\n interface HTMLFormElement {\n action_(action: string): this;\n method_(method: 'get' | 'post' | 'dialog'): this;\n target_(target: string): this;\n enctype_(enctype: string): this;\n noValidate_(noValidate?: boolean): this;\n reset_(): this;\n submit_(): this;\n requestSubmit_(): this;\n }\n}\nObject.assign(HTMLFormElement.prototype, {\n action_(action) {\n this.action = action;\n return this;\n },\n method_(method) {\n this.method = method;\n return this;\n },\n target_(target) {\n this.target = target;\n return this;\n },\n enctype_(enctype) {\n this.enctype = enctype;\n return this;\n },\n noValidate_(noValidate = true) {\n this.noValidate = noValidate;\n return this;\n },\n reset_() {\n this.reset();\n return this;\n },\n submit_() {\n this.submit();\n return this;\n },\n requestSubmit_() {\n this.requestSubmit();\n return this;\n },\n} as HTMLFormElement);\nexport {};\n","declare global {\n interface HTMLAnchorElement {\n href_(href: string): this;\n target_(target: string): this;\n rel_(rel: string): this;\n download_(download?: string): this;\n referrerPolicy_(policy: ReferrerPolicy): this;\n }\n}\nObject.assign(HTMLAnchorElement.prototype, {\n href_(href) {\n this.href = href;\n return this;\n },\n target_(target) {\n this.target = target;\n return this;\n },\n rel_(rel) {\n this.rel = rel;\n return this;\n },\n download_(download = '') {\n this.download = download;\n return this;\n },\n referrerPolicy_(policy) {\n this.referrerPolicy = policy;\n return this;\n },\n} as HTMLAnchorElement);\nexport {};\n","declare global {\n interface HTMLImageElement {\n src_(src: string): this;\n alt_(alt: string): this;\n width_(width: number): this;\n height_(height: number): this;\n loading_(loading: 'eager' | 'lazy'): this;\n decoding_(decoding: 'sync' | 'async' | 'auto'): this;\n }\n}\nObject.assign(HTMLImageElement.prototype, {\n src_(src) {\n this.src = src;\n return this;\n },\n alt_(alt) {\n this.alt = alt;\n return this;\n },\n width_(width) {\n this.width = width;\n return this;\n },\n height_(height) {\n this.height = height;\n return this;\n },\n loading_(loading) {\n this.loading = loading;\n return this;\n },\n decoding_(decoding) {\n this.decoding = decoding;\n return this;\n },\n} as HTMLImageElement);\nexport {};\n","declare global {\n interface HTMLMediaElement {\n src_(src: string): this;\n controls_(controls?: boolean): this;\n autoplay_(autoplay?: boolean): this;\n loop_(loop?: boolean): this;\n muted_(muted?: boolean): this;\n currentTime_(time: number): this;\n volume_(volume: number): this;\n play_(): this;\n pause_(): this;\n }\n}\nObject.assign(HTMLMediaElement.prototype, {\n src_(src) {\n this.src = src;\n return this;\n },\n controls_(controls = true) {\n this.controls = controls;\n return this;\n },\n autoplay_(autoplay = true) {\n this.autoplay = autoplay;\n return this;\n },\n loop_(loop = true) {\n this.loop = loop;\n return this;\n },\n muted_(muted = true) {\n this.muted = muted;\n return this;\n },\n currentTime_(time) {\n this.currentTime = time;\n return this;\n },\n volume_(volume) {\n this.volume = volume;\n return this;\n },\n play_() {\n void this.play();\n return this;\n },\n pause_() {\n this.pause();\n return this;\n },\n} as HTMLMediaElement);\nexport {};\n","declare global {\n interface HTMLLabelElement {\n for_(htmlFor: string): this;\n }\n}\nObject.assign(HTMLLabelElement.prototype, {\n for_(htmlFor) {\n this.htmlFor = htmlFor;\n return this;\n },\n} as HTMLLabelElement);\nexport {};\n","declare global {\n interface HTMLOptionElement {\n value_(value: string): this;\n selected_(selected?: boolean): this;\n disabled_(disabled?: boolean): this;\n label_(label: string): this;\n }\n}\nObject.assign(HTMLOptionElement.prototype, {\n value_(value) {\n this.value = value;\n return this;\n },\n selected_(selected = true) {\n this.selected = selected;\n return this;\n },\n disabled_(disabled = true) {\n this.disabled = disabled;\n return this;\n },\n label_(label) {\n this.label = label;\n return this;\n },\n} as HTMLOptionElement);\nexport {};\n","declare global {\n interface HTMLDetailsElement {\n open_(open?: boolean): this;\n }\n}\nObject.assign(HTMLDetailsElement.prototype, {\n open_(open = true) {\n this.open = open;\n return this;\n },\n} as HTMLDetailsElement);\nexport {};\n","declare global {\n interface HTMLDialogElement {\n open_(open?: boolean): this;\n show_(): this;\n showModal_(): this;\n close_(returnValue?: string): this;\n }\n}\nObject.assign(HTMLDialogElement.prototype, {\n open_(open = true) {\n this.open = open;\n return this;\n },\n show_() {\n this.show();\n return this;\n },\n showModal_() {\n this.showModal();\n return this;\n },\n close_(returnValue) {\n this.close(returnValue);\n return this;\n },\n} as HTMLDialogElement);\nexport {};\n","declare global {\n interface HTMLProgressElement {\n value_(value: number): this;\n max_(max: number): this;\n }\n interface HTMLMeterElement {\n value_(value: number): this;\n min_(min: number): this;\n max_(max: number): this;\n low_(low: number): this;\n high_(high: number): this;\n optimum_(optimum: number): this;\n }\n}\nObject.assign(HTMLProgressElement.prototype, {\n value_(value) {\n this.value = value;\n return this;\n },\n max_(max) {\n this.max = max;\n return this;\n },\n} as HTMLProgressElement);\nObject.assign(HTMLMeterElement.prototype, {\n value_(value) {\n this.value = value;\n return this;\n },\n min_(min) {\n this.min = min;\n return this;\n },\n max_(max) {\n this.max = max;\n return this;\n },\n low_(low) {\n this.low = low;\n return this;\n },\n high_(high) {\n this.high = high;\n return this;\n },\n optimum_(optimum) {\n this.optimum = optimum;\n return this;\n },\n} as HTMLMeterElement);\nexport {};\n","import './core/init.js';\n\nexport const h = <T extends keyof HTMLElementTagNameMap>(tag: T): HTMLElementTagNameMap[T] =>\n document.createElement(tag);\nexport const div = () => document.createElement('div');\nexport const span = () => document.createElement('span');\nexport const section = () => document.createElement('section');\nexport const p = () => document.createElement('p');\nexport const input = () => document.createElement('input');\nexport const textarea = () => document.createElement('textarea');\nexport const btn = () => document.createElement('button');\nexport const select = (options: Array<{ value: any; label: string }>) =>\n document.createElement('select').options_(options);\n"],"mappings":"AAiMA,OAAO,OAAO,YAAY,UAAW,CACnC,IAAI,EAAI,CAEN,MADA,MAAK,GAAK,EACH,IACT,EACA,MAAM,EAAM,EAAO,CAEjB,OADA,KAAK,aAAa,EAAM,CAAK,EACtB,IACT,EACA,MAAM,EAAM,CAEV,OADA,KAAK,aAAa,OAAQ,CAAI,EACvB,IACT,EACA,OAAO,GAAG,EAAO,CAEf,OADA,KAAK,OAAO,GAAG,CAAK,EACb,IACT,EACA,OAAO,EAAG,CAER,MADA,MAAK,UAAY,MAAM,QAAQ,CAAC,EAAI,EAAE,KAAK,GAAG,EAAI,EAC3C,IACT,EACA,GAAG,EAAG,CAEJ,MADA,MAAK,MAAM,MAAQ,EACZ,IACT,EACA,GAAG,EAAG,CAEJ,MADA,MAAK,MAAM,OAAS,EACb,IACT,EACA,MAAM,EAAG,EAAG,CAGV,MAFA,MAAK,MAAM,MAAQ,EACnB,KAAK,MAAM,OAAS,EACb,IACT,EACA,MAAM,EAAG,CAEP,MADA,MAAK,MAAM,SAAW,EACf,IACT,EACA,MAAM,EAAG,CAEP,MADA,MAAK,MAAM,UAAY,EAChB,IACT,EACA,MAAM,EAAG,CAEP,MADA,MAAK,MAAM,S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ACT,CACF,CAAsB,ECXtB,OAAO,OAAO,oBAAoB,UAAW,CAC3C,OAAO,EAAO,CAEZ,MADA,MAAK,MAAQ,EACN,IACT,EACA,KAAK,EAAK,CAER,MADA,MAAK,IAAM,EACJ,IACT,CACF,CAAwB,EACxB,OAAO,OAAO,iBAAiB,UAAW,CACxC,OAAO,EAAO,CAEZ,MADA,MAAK,MAAQ,EACN,IACT,EACA,KAAK,EAAK,CAER,MADA,MAAK,IAAM,EACJ,IACT,EACA,KAAK,EAAK,CAER,MADA,MAAK,IAAM,EACJ,IACT,EACA,KAAK,EAAK,CAER,MADA,MAAK,IAAM,EACJ,IACT,EACA,MAAM,EAAM,CAEV,MADA,MAAK,KAAO,EACL,IACT,EACA,SAAS,EAAS,CAEhB,MADA,MAAK,QAAU,EACR,IACT,CACF,CAAqB,EC/CrB,MAAa,EAA4C,GACvD,SAAS,cAAc,CAAG,EACf,MAAY,SAAS,cAAc,KAAK,EACxC,MAAa,SAAS,cAAc,MAAM,EAC1C,MAAgB,SAAS,cAAc,SAAS,EAChD,MAAU,SAAS,cAAc,GAAG,EACpC,MAAc,SAAS,cAAc,OAAO,EAC5C,MAAiB,SAAS,cAAc,UAAU,EAClD,MAAY,SAAS,cAAc,QAAQ,EAC3C,EAAU,GACrB,SAAS,cAAc,QAAQ,CAAC,CAAC,SAAS,CAAO"}
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/common/enhance.ts","../src/core/implementations.ts","../src/core/html/index.ts","../src/core/html/input.ts","../src/core/html/textarea.ts","../src/core/html/select.ts","../src/core/html/button.ts","../src/core/html/form.ts","../src/core/html/a.ts","../src/core/html/img.ts","../src/core/html/media.ts","../src/core/html/label.ts","../src/core/html/option.ts","../src/core/html/details.ts","../src/core/html/dialog.ts","../src/core/html/progress.ts","../src/core/svg/index.ts","../src/core/mathml/index.ts","../src/index.ts"],"sourcesContent":["globalThis.$_ = (c, ...o) => Object.assign(c.prototype, ...o);\n\nlet dfn = (c: { prototype: Element }, v: unknown) =>\n Object.defineProperty(c.prototype, 'gpui', { value: v });\n\ndfn(HTMLElement, 'html');\ndfn(SVGElement, 'svg');\ndfn(MathMLElement, 'mathml');\n\ndfn = null as any;\n\ndeclare global {\n function $_(c: { prototype: Element }, ...o: object[]): void;\n\n interface Element {\n gpui: string;\n }\n}\n","import type { ZedGpuiFuncional } from './types.js';\n\ntype ActualElement = HTMLElement | SVGElement | MathMLElement;\n\nexport const implementation = {\n tap_(fn) {\n fn(this);\n return this;\n },\n map_(fn) {\n return fn(this);\n },\n iterChildren_(fn) {\n const len = this.children.length;\n for (let i = 0; i < len; i++) {\n fn(this.children[i]);\n }\n return this;\n },\n iterChildNodes_(fn) {\n const len = this.childNodes.length;\n for (let i = 0; i < len; i++) {\n fn(this.childNodes[i]);\n }\n return this;\n },\n attr_(attr, value) {\n this.setAttribute(attr, value);\n return this;\n },\n style_(o) {\n if (typeof o === 'string') {\n (this as ActualElement).style.cssText = o;\n } else {\n Object.assign((this as ActualElement).style, o);\n }\n return this;\n },\n child_(...nodes) {\n this.append(...nodes);\n return this;\n },\n text_(text) {\n this.textContent = text;\n return this;\n },\n remove_() {\n this.remove();\n return this;\n },\n class_(className) {\n this.className = className;\n return this;\n },\n classList_(className) {\n this.className = className.join(' ');\n return this;\n },\n on_(eventName, handler, options) {\n this.addEventListener(eventName, handler, options);\n return this;\n },\n off_(eventName, handler, options) {\n this.removeEventListener(eventName, handler, options);\n return this;\n },\n} as ZedGpuiFuncional;\n","import type { ZedGpuiFuncional } from '../types.js';\nimport { implementation } from '../implementations.js';\n\ndeclare global {\n interface HTMLElement extends ZedGpuiFuncional {\n readonly gpui: 'html';\n\n // #region attributes\n id_(id: string): this;\n name_(name: string): this;\n dataset_(key: string, value: any): this;\n // #endregion\n\n // #region styles\n class_(classList: string[]): this;\n class_(className: string): this;\n w_(w: string): this;\n h_(h: string): this;\n size_(w: string, h: string): this;\n minW_(w: string): this;\n minH_(h: string): this;\n maxW_(w: string): this;\n maxH_(h: string): this;\n flex_(): this;\n flexFlex_(): this;\n flexNone_(): this;\n flexAuto_(): this;\n flexGrow_(grow: number): this;\n flexShrink_(shrink: number): this;\n flexBasis_(basis: string): this;\n flexDirection_(direction: string): this;\n flexWrap_(wrap: string): this;\n grid_(): this;\n gridTemplateColumns_(columns: string): this;\n gridTemplateRows_(rows: string): this;\n gridColumn_(column: string): this;\n gridRow_(row: string): this;\n gap_(gap: string): this;\n gapX_(gap: string): this;\n gapY_(gap: string): this;\n justify_(justify: string): this;\n items_(items: string): this;\n content_(content: string): this;\n self_(alignSelf: string): this;\n justifySelf_(justifySelf: string): this;\n px_(px: string): this;\n py_(py: string): this;\n pt_(pt: string): this;\n pr_(pr: string): this;\n pb_(pb: string): this;\n pl_(pl: string): this;\n p_(p: string): this;\n mx_(mx: string): this;\n my_(my: string): this;\n mt_(mt: string): this;\n mr_(mr: string): this;\n mb_(mb: string): this;\n ml_(ml: string): this;\n m_(m: string): this;\n border_(): this;\n borderW_(width: string): this;\n borderT_(width: string): this;\n borderR_(width: string): this;\n borderB_(width: string): this;\n borderL_(width: string): this;\n borderColor_(color: string): this;\n borderStyle_(style: string): this;\n rounded_(radius: string): this;\n roundedTL_(radius: string): this;\n roundedTR_(radius: string): this;\n roundedBL_(radius: string): this;\n roundedBR_(radius: string): this;\n bg_(color: string): this;\n bgColor_(color: string): this;\n bgImage_(image: string): this;\n bgSize_(size: string): this;\n bgPosition_(position: string): this;\n bgRepeat_(repeat: string): this;\n shadow_(shadow: string): this;\n shadowMd_(): this;\n shadowLg_(): this;\n shadowNone_(): this;\n opacity_(value: number): this;\n textColor_(color: string): this;\n textSize_(size: string): this;\n textAlign_(align: string): this;\n fontWeight_(weight: string): this;\n lineHeight_(height: string): this;\n letterSpacing_(spacing: string): this;\n textOverflow_(overflow: string): this;\n whitespace_(value: string): this;\n truncate_(): this;\n lineClamp_(lines: number): this;\n relative_(): this;\n absolute_(): this;\n fixed_(): this;\n sticky_(): this;\n static_(): this;\n inset_(value: string): this;\n insetY_(value: string): this;\n insetX_(value: string): this;\n top_(value: string): this;\n right_(value: string): this;\n bottom_(value: string): this;\n left_(value: string): this;\n z_(value: number): this;\n zIndex_(value: number): this;\n overflow_(value: string): this;\n overflowX_(value: string): this;\n overflowY_(value: string): this;\n overflowHidden_(): this;\n overflowScroll_(): this;\n overflowAuto_(): this;\n overflowVisible_(): this;\n cursor_(cursor: string): this;\n cursorPointer_(): this;\n cursorDefault_(): this;\n cursorMove_(): this;\n cursorGrab_(): this;\n cursorGrabbing_(): this;\n pointerEvents_(value: string): this;\n pointerEventsNone_(): this;\n pointerEventsAuto_(): this;\n userSelect_(value: string): this;\n selectNone_(): this;\n selectText_(): this;\n selectAll_(): this;\n block_(): this;\n inlineBlock_(): this;\n inline_(): this;\n hide_(): this;\n visible_(): this;\n invisible_(): this;\n rotate_(deg: number): this;\n scale_(x: number, y?: number): this;\n transformTranslate_(x: string, y: string): this;\n transition_(property: string): this;\n transitionDuration_(duration: string): this;\n transitionTimingFunction_(timing: string): this;\n transitionDelay_(delay: string): this;\n // #endregion\n\n // #region events\n onClick_(handler: (event: MouseEvent) => void, options?: boolean | AddEventListenerOptions): this;\n onDoubleClick_(handler: (event: MouseEvent) => void, options?: boolean | AddEventListenerOptions): this;\n onMouseDown_(handler: (event: MouseEvent) => void, options?: boolean | AddEventListenerOptions): this;\n onMouseUp_(handler: (event: MouseEvent) => void, options?: boolean | AddEventListenerOptions): this;\n onMouseMove_(handler: (event: MouseEvent) => void, options?: boolean | AddEventListenerOptions): this;\n onMouseEnter_(handler: (event: MouseEvent) => void, options?: boolean | AddEventListenerOptions): this;\n onMouseLeave_(handler: (event: MouseEvent) => void, options?: boolean | AddEventListenerOptions): this;\n onMouseOver_(handler: (event: MouseEvent) => void, options?: boolean | AddEventListenerOptions): this;\n onMouseOut_(handler: (event: MouseEvent) => void, options?: boolean | AddEventListenerOptions): this;\n onMouseWheel_(handler: (event: WheelEvent) => void, options?: boolean | AddEventListenerOptions): this;\n onKeyDown_(handler: (event: KeyboardEvent) => void, options?: boolean | AddEventListenerOptions): this;\n onKeyUp_(handler: (event: KeyboardEvent) => void, options?: boolean | AddEventListenerOptions): this;\n onKeyPress_(handler: (event: KeyboardEvent) => void, options?: boolean | AddEventListenerOptions): this;\n onFocus_(handler: (event: FocusEvent) => void, options?: boolean | AddEventListenerOptions): this;\n onBlur_(handler: (event: FocusEvent) => void, options?: boolean | AddEventListenerOptions): this;\n onFocusIn_(handler: (event: FocusEvent) => void, options?: boolean | AddEventListenerOptions): this;\n onFocusOut_(handler: (event: FocusEvent) => void, options?: boolean | AddEventListenerOptions): this;\n onChange_(handler: (event: Event) => void, options?: boolean | AddEventListenerOptions): this;\n onInput_(handler: (event: Event) => void, options?: boolean | AddEventListenerOptions): this;\n onSubmit_(handler: (event: SubmitEvent) => void, options?: boolean | AddEventListenerOptions): this;\n onReset_(handler: (event: Event) => void, options?: boolean | AddEventListenerOptions): this;\n onTouchStart_(handler: (event: TouchEvent) => void, options?: boolean | AddEventListenerOptions): this;\n onTouchEnd_(handler: (event: TouchEvent) => void, options?: boolean | AddEventListenerOptions): this;\n onTouchMove_(handler: (event: TouchEvent) => void, options?: boolean | AddEventListenerOptions): this;\n onTouchCancel_(handler: (event: TouchEvent) => void, options?: boolean | AddEventListenerOptions): this;\n onDrag_(handler: (event: DragEvent) => void, options?: boolean | AddEventListenerOptions): this;\n onDragStart_(handler: (event: DragEvent) => void, options?: boolean | AddEventListenerOptions): this;\n onDragEnd_(handler: (event: DragEvent) => void, options?: boolean | AddEventListenerOptions): this;\n onDragEnter_(handler: (event: DragEvent) => void, options?: boolean | AddEventListenerOptions): this;\n onDragLeave_(handler: (event: DragEvent) => void, options?: boolean | AddEventListenerOptions): this;\n onDragOver_(handler: (event: DragEvent) => void, options?: boolean | AddEventListenerOptions): this;\n onDragDrop_(handler: (event: DragEvent) => void, options?: boolean | AddEventListenerOptions): this;\n onCopy_(handler: (event: ClipboardEvent) => void, options?: boolean | AddEventListenerOptions): this;\n onCut_(handler: (event: ClipboardEvent) => void, options?: boolean | AddEventListenerOptions): this;\n onPaste_(handler: (event: ClipboardEvent) => void, options?: boolean | AddEventListenerOptions): this;\n onScroll_(handler: (event: Event) => void, options?: boolean | AddEventListenerOptions): this;\n onResize_(handler: (event: UIEvent) => void, options?: boolean | AddEventListenerOptions): this;\n onPlay_(handler: (event: Event) => void, options?: boolean | AddEventListenerOptions): this;\n onPause_(handler: (event: Event) => void, options?: boolean | AddEventListenerOptions): this;\n onEnded_(handler: (event: Event) => void, options?: boolean | AddEventListenerOptions): this;\n onVolumeChange_(handler: (event: Event) => void, options?: boolean | AddEventListenerOptions): this;\n onAnimationStart_(handler: (event: AnimationEvent) => void, options?: boolean | AddEventListenerOptions): this;\n onAnimationEnd_(handler: (event: AnimationEvent) => void, options?: boolean | AddEventListenerOptions): this;\n onAnimationIteration_(handler: (event: AnimationEvent) => void, options?: boolean | AddEventListenerOptions): this;\n onTransitionEnd_(handler: (event: TransitionEvent) => void, options?: boolean | AddEventListenerOptions): this;\n onPointerDown_(handler: (event: PointerEvent) => void, options?: boolean | AddEventListenerOptions): this;\n onPointerUp_(handler: (event: PointerEvent) => void, options?: boolean | AddEventListenerOptions): this;\n onPointerMove_(handler: (event: PointerEvent) => void, options?: boolean | AddEventListenerOptions): this;\n onPointerEnter_(handler: (event: PointerEvent) => void, options?: boolean | AddEventListenerOptions): this;\n onPointerLeave_(handler: (event: PointerEvent) => void, options?: boolean | AddEventListenerOptions): this;\n onPointerCancel_(handler: (event: PointerEvent) => void, options?: boolean | AddEventListenerOptions): this;\n\n on_<K extends keyof HTMLElementEventMap>(\n type: K,\n listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any,\n options?: boolean | AddEventListenerOptions,\n ): this;\n // #endregion\n }\n}\n\n$_(HTMLElement, implementation, {\n // #region attributes\n id_(id) {\n this.id = id;\n return this;\n },\n name_(name) {\n this.setAttribute('name', name);\n return this;\n },\n dataset_(k, v) {\n this.dataset[k] = v;\n return this;\n },\n // #endregion\n\n // #region styles\n w_(w) {\n this.style.width = w;\n return this;\n },\n h_(h) {\n this.style.height = h;\n return this;\n },\n size_(w, h) {\n this.style.width = w;\n this.style.height = h;\n return this;\n },\n minW_(w) {\n this.style.minWidth = w;\n return this;\n },\n minH_(h) {\n this.style.minHeight = h;\n return this;\n },\n maxW_(w) {\n this.style.maxWidth = w;\n return this;\n },\n maxH_(h) {\n this.style.maxHeight = h;\n return this;\n },\n flex_() {\n this.style.display = 'flex';\n return this;\n },\n flexFlex_() {\n this.style.display = 'flex';\n this.style.flex = '1 1 0%';\n return this;\n },\n flexNone_() {\n this.style.flex = 'none';\n return this;\n },\n flexAuto_() {\n this.style.flex = '1 1 auto';\n return this;\n },\n flexGrow_(grow) {\n this.style.flexGrow = String(grow);\n return this;\n },\n flexShrink_(shrink) {\n this.style.flexShrink = String(shrink);\n return this;\n },\n flexBasis_(basis) {\n this.style.flexBasis = basis;\n return this;\n },\n flexDirection_(direction) {\n this.style.flexDirection = direction;\n return this;\n },\n flexWrap_(wrap) {\n this.style.flexWrap = wrap;\n return this;\n },\n grid_() {\n this.style.display = 'grid';\n return this;\n },\n gridTemplateColumns_(columns) {\n this.style.gridTemplateColumns = columns;\n return this;\n },\n gridTemplateRows_(rows) {\n this.style.gridTemplateRows = rows;\n return this;\n },\n gridColumn_(column) {\n this.style.gridColumn = column;\n return this;\n },\n gridRow_(row) {\n this.style.gridRow = row;\n return this;\n },\n gap_(gap) {\n this.style.gap = gap;\n return this;\n },\n gapX_(gap) {\n this.style.columnGap = gap;\n return this;\n },\n gapY_(gap) {\n this.style.rowGap = gap;\n return this;\n },\n justify_(justify) {\n this.style.justifyContent = justify;\n return this;\n },\n items_(items) {\n this.style.alignItems = items;\n return this;\n },\n content_(content) {\n this.style.alignContent = content;\n return this;\n },\n self_(alignSelf) {\n this.style.alignSelf = alignSelf;\n return this;\n },\n justifySelf_(justifySelf) {\n this.style.justifySelf = justifySelf;\n return this;\n },\n px_(px) {\n this.style.paddingLeft = px;\n this.style.paddingRight = px;\n return this;\n },\n py_(py) {\n this.style.paddingTop = py;\n this.style.paddingBottom = py;\n return this;\n },\n pt_(pt) {\n this.style.paddingTop = pt;\n return this;\n },\n pr_(pr) {\n this.style.paddingRight = pr;\n return this;\n },\n pb_(pb) {\n this.style.paddingBottom = pb;\n return this;\n },\n pl_(pl) {\n this.style.paddingLeft = pl;\n return this;\n },\n p_(p) {\n this.style.padding = p;\n return this;\n },\n mx_(mx) {\n this.style.marginLeft = mx;\n this.style.marginRight = mx;\n return this;\n },\n my_(my) {\n this.style.marginTop = my;\n this.style.marginBottom = my;\n return this;\n },\n mt_(mt) {\n this.style.marginTop = mt;\n return this;\n },\n mr_(mr) {\n this.style.marginRight = mr;\n return this;\n },\n mb_(mb) {\n this.style.marginBottom = mb;\n return this;\n },\n ml_(ml) {\n this.style.marginLeft = ml;\n return this;\n },\n m_(m) {\n this.style.margin = m;\n return this;\n },\n border_() {\n this.style.border = '1px solid currentColor';\n return this;\n },\n borderW_(width) {\n this.style.borderWidth = width;\n return this;\n },\n borderT_(width) {\n this.style.borderTopWidth = width;\n return this;\n },\n borderR_(width) {\n this.style.borderRightWidth = width;\n return this;\n },\n borderB_(width) {\n this.style.borderBottomWidth = width;\n return this;\n },\n borderL_(width) {\n this.style.borderLeftWidth = width;\n return this;\n },\n borderColor_(color) {\n this.style.borderColor = color;\n return this;\n },\n borderStyle_(style) {\n this.style.borderStyle = style;\n return this;\n },\n rounded_(radius) {\n this.style.borderRadius = radius;\n return this;\n },\n roundedTL_(radius) {\n this.style.borderTopLeftRadius = radius;\n return this;\n },\n roundedTR_(radius) {\n this.style.borderTopRightRadius = radius;\n return this;\n },\n roundedBL_(radius) {\n this.style.borderBottomLeftRadius = radius;\n return this;\n },\n roundedBR_(radius) {\n this.style.borderBottomRightRadius = radius;\n return this;\n },\n bg_(color) {\n this.style.backgroundColor = color;\n return this;\n },\n bgColor_(color) {\n this.style.backgroundColor = color;\n return this;\n },\n bgImage_(image) {\n this.style.backgroundImage = image;\n return this;\n },\n bgSize_(size) {\n this.style.backgroundSize = size;\n return this;\n },\n bgPosition_(position) {\n this.style.backgroundPosition = position;\n return this;\n },\n bgRepeat_(repeat) {\n this.style.backgroundRepeat = repeat;\n return this;\n },\n shadow_(shadow) {\n this.style.boxShadow = shadow;\n return this;\n },\n shadowMd_() {\n this.style.boxShadow = '0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)';\n return this;\n },\n shadowLg_() {\n this.style.boxShadow = '0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)';\n return this;\n },\n shadowNone_() {\n this.style.boxShadow = 'none';\n return this;\n },\n opacity_(value) {\n this.style.opacity = String(value);\n return this;\n },\n textColor_(color) {\n this.style.color = color;\n return this;\n },\n textSize_(size) {\n this.style.fontSize = size;\n return this;\n },\n textAlign_(align) {\n this.style.textAlign = align;\n return this;\n },\n fontWeight_(weight) {\n this.style.fontWeight = weight;\n return this;\n },\n lineHeight_(height) {\n this.style.lineHeight = height;\n return this;\n },\n letterSpacing_(spacing) {\n this.style.letterSpacing = spacing;\n return this;\n },\n textOverflow_(overflow) {\n this.style.textOverflow = overflow;\n return this;\n },\n whitespace_(value) {\n this.style.whiteSpace = value;\n return this;\n },\n truncate_() {\n this.style.overflow = 'hidden';\n this.style.textOverflow = 'ellipsis';\n this.style.whiteSpace = 'nowrap';\n return this;\n },\n lineClamp_(lines) {\n this.style.display = '-webkit-box';\n this.style.webkitLineClamp = String(lines);\n this.style.webkitBoxOrient = 'vertical';\n this.style.overflow = 'hidden';\n return this;\n },\n relative_() {\n this.style.position = 'relative';\n return this;\n },\n absolute_() {\n this.style.position = 'absolute';\n return this;\n },\n fixed_() {\n this.style.position = 'fixed';\n return this;\n },\n sticky_() {\n this.style.position = 'sticky';\n return this;\n },\n static_() {\n this.style.position = 'static';\n return this;\n },\n inset_(value) {\n this.style.top = value;\n this.style.right = value;\n this.style.bottom = value;\n this.style.left = value;\n return this;\n },\n insetY_(value) {\n this.style.top = value;\n this.style.bottom = value;\n return this;\n },\n insetX_(value) {\n this.style.right = value;\n this.style.left = value;\n return this;\n },\n top_(value) {\n this.style.top = value;\n return this;\n },\n right_(value) {\n this.style.right = value;\n return this;\n },\n bottom_(value) {\n this.style.bottom = value;\n return this;\n },\n left_(value) {\n this.style.left = value;\n return this;\n },\n z_(value) {\n this.style.zIndex = String(value);\n return this;\n },\n zIndex_(value) {\n this.style.zIndex = String(value);\n return this;\n },\n overflow_(value) {\n this.style.overflow = value;\n return this;\n },\n overflowX_(value) {\n this.style.overflowX = value;\n return this;\n },\n overflowY_(value) {\n this.style.overflowY = value;\n return this;\n },\n overflowHidden_() {\n this.style.overflow = 'hidden';\n return this;\n },\n overflowScroll_() {\n this.style.overflow = 'scroll';\n return this;\n },\n overflowAuto_() {\n this.style.overflow = 'auto';\n return this;\n },\n overflowVisible_() {\n this.style.overflow = 'visible';\n return this;\n },\n cursor_(cursor) {\n this.style.cursor = cursor;\n return this;\n },\n cursorPointer_() {\n this.style.cursor = 'pointer';\n return this;\n },\n cursorDefault_() {\n this.style.cursor = 'default';\n return this;\n },\n cursorMove_() {\n this.style.cursor = 'move';\n return this;\n },\n cursorGrab_() {\n this.style.cursor = 'grab';\n return this;\n },\n cursorGrabbing_() {\n this.style.cursor = 'grabbing';\n return this;\n },\n pointerEvents_(value) {\n this.style.pointerEvents = value;\n return this;\n },\n pointerEventsNone_() {\n this.style.pointerEvents = 'none';\n return this;\n },\n pointerEventsAuto_() {\n this.style.pointerEvents = 'auto';\n return this;\n },\n userSelect_(value) {\n this.style.userSelect = value;\n return this;\n },\n selectNone_() {\n this.style.userSelect = 'none';\n return this;\n },\n selectText_() {\n this.style.userSelect = 'text';\n return this;\n },\n selectAll_() {\n this.style.userSelect = 'all';\n return this;\n },\n block_() {\n this.style.display = 'block';\n return this;\n },\n inlineBlock_() {\n this.style.display = 'inline-block';\n return this;\n },\n inline_() {\n this.style.display = 'inline';\n return this;\n },\n hide_() {\n this.style.display = 'none';\n return this;\n },\n visible_() {\n this.style.visibility = 'visible';\n return this;\n },\n invisible_() {\n this.style.visibility = 'hidden';\n return this;\n },\n rotate_(deg) {\n this.style.transform = 'rotate(' + deg + 'deg)';\n return this;\n },\n scale_(x, y) {\n this.style.transform = 'scale(' + x + ', ' + (y ?? x) + ')';\n return this;\n },\n transformTranslate_(x, y) {\n this.style.transform = 'translate(' + x + ', ' + y + ')';\n return this;\n },\n transition_(property) {\n this.style.transition = property;\n return this;\n },\n transitionDuration_(duration) {\n this.style.transitionDuration = duration;\n return this;\n },\n transitionTimingFunction_(timing) {\n this.style.transitionTimingFunction = timing;\n return this;\n },\n transitionDelay_(delay) {\n this.style.transitionDelay = delay;\n return this;\n },\n // #endregion\n\n // #region events\n onClick_(handler, options) {\n return this.on_('click', handler as EventListener, options);\n },\n onDoubleClick_(handler, options) {\n return this.on_('dblclick', handler as EventListener, options);\n },\n onMouseDown_(handler, options) {\n return this.on_('mousedown', handler as EventListener, options);\n },\n onMouseUp_(handler, options) {\n return this.on_('mouseup', handler as EventListener, options);\n },\n onMouseMove_(handler, options) {\n return this.on_('mousemove', handler as EventListener, options);\n },\n onMouseEnter_(handler, options) {\n return this.on_('mouseenter', handler as EventListener, options);\n },\n onMouseLeave_(handler, options) {\n return this.on_('mouseleave', handler as EventListener, options);\n },\n onMouseOver_(handler, options) {\n return this.on_('mouseover', handler as EventListener, options);\n },\n onMouseOut_(handler, options) {\n return this.on_('mouseout', handler as EventListener, options);\n },\n onMouseWheel_(handler, options) {\n return this.on_('wheel', handler as EventListener, options);\n },\n onKeyDown_(handler, options) {\n return this.on_('keydown', handler as EventListener, options);\n },\n onKeyUp_(handler, options) {\n return this.on_('keyup', handler as EventListener, options);\n },\n onKeyPress_(handler, options) {\n return this.on_('keypress', handler as EventListener, options);\n },\n onFocus_(handler, options) {\n return this.on_('focus', handler as EventListener, options);\n },\n onBlur_(handler, options) {\n return this.on_('blur', handler as EventListener, options);\n },\n onFocusIn_(handler, options) {\n return this.on_('focusin', handler as EventListener, options);\n },\n onFocusOut_(handler, options) {\n return this.on_('focusout', handler as EventListener, options);\n },\n onChange_(handler, options) {\n return this.on_('change', handler as EventListener, options);\n },\n onInput_(handler, options) {\n return this.on_('input', handler as EventListener, options);\n },\n onSubmit_(handler, options) {\n return this.on_('submit', handler as EventListener, options);\n },\n onReset_(handler, options) {\n return this.on_('reset', handler as EventListener, options);\n },\n onTouchStart_(handler, options) {\n return this.on_('touchstart', handler as EventListener, options);\n },\n onTouchEnd_(handler, options) {\n return this.on_('touchend', handler as EventListener, options);\n },\n onTouchMove_(handler, options) {\n return this.on_('touchmove', handler as EventListener, options);\n },\n onTouchCancel_(handler, options) {\n return this.on_('touchcancel', handler as EventListener, options);\n },\n onDrag_(handler, options) {\n return this.on_('drag', handler as EventListener, options);\n },\n onDragStart_(handler, options) {\n return this.on_('dragstart', handler as EventListener, options);\n },\n onDragEnd_(handler, options) {\n return this.on_('dragend', handler as EventListener, options);\n },\n onDragEnter_(handler, options) {\n return this.on_('dragenter', handler as EventListener, options);\n },\n onDragLeave_(handler, options) {\n return this.on_('dragleave', handler as EventListener, options);\n },\n onDragOver_(handler, options) {\n return this.on_('dragover', handler as EventListener, options);\n },\n onDragDrop_(handler, options) {\n return this.on_('drop', handler as EventListener, options);\n },\n onCopy_(handler, options) {\n return this.on_('copy', handler as EventListener, options);\n },\n onCut_(handler, options) {\n return this.on_('cut', handler as EventListener, options);\n },\n onPaste_(handler, options) {\n return this.on_('paste', handler as EventListener, options);\n },\n onScroll_(handler, options) {\n return this.on_('scroll', handler as EventListener, options);\n },\n onResize_(handler, options) {\n return this.on_('resize', handler as EventListener, options);\n },\n onPlay_(handler, options) {\n return this.on_('play', handler as EventListener, options);\n },\n onPause_(handler, options) {\n return this.on_('pause', handler as EventListener, options);\n },\n onEnded_(handler, options) {\n return this.on_('ended', handler as EventListener, options);\n },\n onVolumeChange_(handler, options) {\n return this.on_('volumechange', handler as EventListener, options);\n },\n onAnimationStart_(handler, options) {\n return this.on_('animationstart', handler as EventListener, options);\n },\n onAnimationEnd_(handler, options) {\n return this.on_('animationend', handler as EventListener, options);\n },\n onAnimationIteration_(handler, options) {\n return this.on_('animationiteration', handler as EventListener, options);\n },\n onTransitionEnd_(handler, options) {\n return this.on_('transitionend', handler as EventListener, options);\n },\n onPointerDown_(handler, options) {\n return this.on_('pointerdown', handler as EventListener, options);\n },\n onPointerUp_(handler, options) {\n return this.on_('pointerup', handler as EventListener, options);\n },\n onPointerMove_(handler, options) {\n return this.on_('pointermove', handler as EventListener, options);\n },\n onPointerEnter_(handler, options) {\n return this.on_('pointerenter', handler as EventListener, options);\n },\n onPointerLeave_(handler, options) {\n return this.on_('pointerleave', handler as EventListener, options);\n },\n onPointerCancel_(handler, options) {\n return this.on_('pointercancel', handler as EventListener, options);\n },\n on_(eventName: string, handler: (ev: Event) => void, options?: boolean | AddEventListenerOptions) {\n this.addEventListener(eventName, handler, options);\n return this;\n },\n // #endregion\n} as HTMLElement);\n\nexport {};\n","declare global {\n interface HTMLInputElement {\n placeholder_(value: string): this;\n value_(value: string): this;\n type_(type: string): this;\n checked_(checked?: boolean): this;\n disabled_(disabled?: boolean): this;\n focus_(): this;\n blur_(): this;\n select_(): this;\n onChange_(\n handler: (\n event: Event & { currentTarget: HTMLInputElement; target: HTMLInputElement },\n ) => void,\n options?: boolean | AddEventListenerOptions,\n ): this;\n onInput_(\n handler: (\n event: Event & { currentTarget: HTMLInputElement; target: HTMLInputElement },\n ) => void,\n options?: boolean | AddEventListenerOptions,\n ): this;\n }\n}\n$_(HTMLInputElement, {\n placeholder_(value) {\n this.placeholder = value;\n return this;\n },\n value_(value) {\n this.value = value;\n return this;\n },\n type_(type) {\n this.type = type;\n return this;\n },\n checked_(checked = true) {\n this.checked = checked;\n return this;\n },\n disabled_(disabled = true) {\n this.disabled = disabled;\n return this;\n },\n focus_() {\n this.focus();\n return this;\n },\n blur_() {\n this.blur();\n return this;\n },\n select_() {\n this.select();\n return this;\n },\n onChange_(handler, options) {\n return this.on_('change', handler as EventListener, options);\n },\n onInput_(handler, options) {\n return this.on_('input', handler as EventListener, options);\n },\n} as HTMLInputElement);\nexport {};\n","declare global {\n interface HTMLTextAreaElement {\n placeholder_(value: string): this;\n value_(value: string): this;\n rows_(rows: number): this;\n cols_(cols: number): this;\n disabled_(disabled?: boolean): this;\n focus_(): this;\n blur_(): this;\n select_(): this;\n onChange_(\n handler: (\n event: Event & { currentTarget: HTMLTextAreaElement; target: HTMLTextAreaElement },\n ) => void,\n options?: boolean | AddEventListenerOptions,\n ): this;\n onInput_(\n handler: (\n event: Event & { currentTarget: HTMLTextAreaElement; target: HTMLTextAreaElement },\n ) => void,\n options?: boolean | AddEventListenerOptions,\n ): this;\n }\n}\n$_(HTMLTextAreaElement, {\n placeholder_(value) {\n this.placeholder = value;\n return this;\n },\n value_(value) {\n this.value = value;\n return this;\n },\n rows_(rows) {\n this.rows = rows;\n return this;\n },\n cols_(cols) {\n this.cols = cols;\n return this;\n },\n disabled_(disabled = true) {\n this.disabled = disabled;\n return this;\n },\n focus_() {\n this.focus();\n return this;\n },\n blur_() {\n this.blur();\n return this;\n },\n select_() {\n this.select();\n return this;\n },\n onChange_(handler, options) {\n return this.on_('change', handler as EventListener, options);\n },\n onInput_(handler, options) {\n return this.on_('input', handler as EventListener, options);\n },\n} as HTMLTextAreaElement);\nexport {};\n","declare global {\n interface HTMLSelectElement {\n value_(value: string): this;\n options_(options: Array<{ value: any; label: string }>): this;\n disabled_(disabled?: boolean): this;\n focus_(): this;\n blur_(): this;\n onChange_(\n handler: (\n event: Event & { currentTarget: HTMLSelectElement; target: HTMLSelectElement },\n ) => void,\n options?: boolean | AddEventListenerOptions,\n ): this;\n onInput_(\n handler: (\n event: Event & { currentTarget: HTMLSelectElement; target: HTMLSelectElement },\n ) => void,\n options?: boolean | AddEventListenerOptions,\n ): this;\n }\n}\n$_(HTMLSelectElement, {\n value_(value) {\n this.value = value;\n return this;\n },\n options_(options) {\n this.replaceChildren(\n ...options.map((option) => {\n const node = document.createElement('option');\n node.value = String(option.value);\n node.textContent = option.label;\n return node;\n }),\n );\n return this;\n },\n disabled_(disabled = true) {\n this.disabled = disabled;\n return this;\n },\n focus_() {\n this.focus();\n return this;\n },\n blur_() {\n this.blur();\n return this;\n },\n onChange_(handler, options) {\n return this.on_('change', handler as EventListener, options);\n },\n onInput_(handler, options) {\n return this.on_('input', handler as EventListener, options);\n },\n} as HTMLSelectElement);\nexport {};\n","declare global {\n interface HTMLButtonElement {\n type_(type: 'button' | 'submit' | 'reset'): this;\n disabled_(disabled?: boolean): this;\n name_(name: string): this;\n value_(value: string): this;\n autofocus_(autofocus?: boolean): this;\n }\n}\n$_(HTMLButtonElement, {\n type_(type) {\n this.type = type;\n return this;\n },\n disabled_(disabled = true) {\n this.disabled = disabled;\n return this;\n },\n name_(name) {\n this.name = name;\n return this;\n },\n value_(value) {\n this.value = value;\n return this;\n },\n autofocus_(autofocus = true) {\n this.autofocus = autofocus;\n return this;\n },\n} as HTMLButtonElement);\nexport {};\n","declare global {\n interface HTMLFormElement {\n action_(action: string): this;\n method_(method: 'get' | 'post' | 'dialog'): this;\n target_(target: string): this;\n enctype_(enctype: string): this;\n noValidate_(noValidate?: boolean): this;\n reset_(): this;\n submit_(): this;\n requestSubmit_(): this;\n }\n}\n$_(HTMLFormElement, {\n action_(action) {\n this.action = action;\n return this;\n },\n method_(method) {\n this.method = method;\n return this;\n },\n target_(target) {\n this.target = target;\n return this;\n },\n enctype_(enctype) {\n this.enctype = enctype;\n return this;\n },\n noValidate_(noValidate = true) {\n this.noValidate = noValidate;\n return this;\n },\n reset_() {\n this.reset();\n return this;\n },\n submit_() {\n this.submit();\n return this;\n },\n requestSubmit_() {\n this.requestSubmit();\n return this;\n },\n} as HTMLFormElement);\nexport {};\n","declare global {\n interface HTMLAnchorElement {\n href_(href: string): this;\n target_(target: string): this;\n rel_(rel: string): this;\n download_(download?: string): this;\n referrerPolicy_(policy: ReferrerPolicy): this;\n }\n}\n$_(HTMLAnchorElement, {\n href_(href) {\n this.href = href;\n return this;\n },\n target_(target) {\n this.target = target;\n return this;\n },\n rel_(rel) {\n this.rel = rel;\n return this;\n },\n download_(download = '') {\n this.download = download;\n return this;\n },\n referrerPolicy_(policy) {\n this.referrerPolicy = policy;\n return this;\n },\n} as HTMLAnchorElement);\nexport {};\n","declare global {\n interface HTMLImageElement {\n src_(src: string): this;\n alt_(alt: string): this;\n width_(width: number): this;\n height_(height: number): this;\n loading_(loading: 'eager' | 'lazy'): this;\n decoding_(decoding: 'sync' | 'async' | 'auto'): this;\n }\n}\n$_(HTMLImageElement, {\n src_(src) {\n this.src = src;\n return this;\n },\n alt_(alt) {\n this.alt = alt;\n return this;\n },\n width_(width) {\n this.width = width;\n return this;\n },\n height_(height) {\n this.height = height;\n return this;\n },\n loading_(loading) {\n this.loading = loading;\n return this;\n },\n decoding_(decoding) {\n this.decoding = decoding;\n return this;\n },\n} as HTMLImageElement);\nexport {};\n","declare global {\n interface HTMLMediaElement {\n src_(src: string): this;\n controls_(controls?: boolean): this;\n autoplay_(autoplay?: boolean): this;\n loop_(loop?: boolean): this;\n muted_(muted?: boolean): this;\n currentTime_(time: number): this;\n volume_(volume: number): this;\n play_(): this;\n pause_(): this;\n }\n}\n$_(HTMLMediaElement, {\n src_(src) {\n this.src = src;\n return this;\n },\n controls_(controls = true) {\n this.controls = controls;\n return this;\n },\n autoplay_(autoplay = true) {\n this.autoplay = autoplay;\n return this;\n },\n loop_(loop = true) {\n this.loop = loop;\n return this;\n },\n muted_(muted = true) {\n this.muted = muted;\n return this;\n },\n currentTime_(time) {\n this.currentTime = time;\n return this;\n },\n volume_(volume) {\n this.volume = volume;\n return this;\n },\n play_() {\n void this.play();\n return this;\n },\n pause_() {\n this.pause();\n return this;\n },\n} as HTMLMediaElement);\nexport {};\n","declare global {\n interface HTMLLabelElement {\n for_(htmlFor: string): this;\n }\n}\n$_(HTMLLabelElement, {\n for_(htmlFor) {\n this.htmlFor = htmlFor;\n return this;\n },\n} as HTMLLabelElement);\nexport {};\n","declare global {\n interface HTMLOptionElement {\n value_(value: string): this;\n selected_(selected?: boolean): this;\n disabled_(disabled?: boolean): this;\n label_(label: string): this;\n }\n}\n$_(HTMLOptionElement, {\n value_(value) {\n this.value = value;\n return this;\n },\n selected_(selected = true) {\n this.selected = selected;\n return this;\n },\n disabled_(disabled = true) {\n this.disabled = disabled;\n return this;\n },\n label_(label) {\n this.label = label;\n return this;\n },\n} as HTMLOptionElement);\nexport {};\n","declare global {\n interface HTMLDetailsElement {\n open_(open?: boolean): this;\n }\n}\n$_(HTMLDetailsElement, {\n open_(open = true) {\n this.open = open;\n return this;\n },\n} as HTMLDetailsElement);\nexport {};\n","declare global {\n interface HTMLDialogElement {\n open_(open?: boolean): this;\n show_(): this;\n showModal_(): this;\n close_(returnValue?: string): this;\n }\n}\n$_(HTMLDialogElement, {\n open_(open = true) {\n this.open = open;\n return this;\n },\n show_() {\n this.show();\n return this;\n },\n showModal_() {\n this.showModal();\n return this;\n },\n close_(returnValue) {\n this.close(returnValue);\n return this;\n },\n} as HTMLDialogElement);\nexport {};\n","declare global {\n interface HTMLProgressElement {\n value_(value: number): this;\n max_(max: number): this;\n }\n interface HTMLMeterElement {\n value_(value: number): this;\n min_(min: number): this;\n max_(max: number): this;\n low_(low: number): this;\n high_(high: number): this;\n optimum_(optimum: number): this;\n }\n}\n$_(HTMLProgressElement, {\n value_(value) {\n this.value = value;\n return this;\n },\n max_(max) {\n this.max = max;\n return this;\n },\n} as HTMLProgressElement);\n$_(HTMLMeterElement, {\n value_(value) {\n this.value = value;\n return this;\n },\n min_(min) {\n this.min = min;\n return this;\n },\n max_(max) {\n this.max = max;\n return this;\n },\n low_(low) {\n this.low = low;\n return this;\n },\n high_(high) {\n this.high = high;\n return this;\n },\n optimum_(optimum) {\n this.optimum = optimum;\n return this;\n },\n} as HTMLMeterElement);\nexport {};\n","import type { ZedGpuiFuncional } from '../types.js';\nimport { implementation } from '../implementations.js';\n\ndeclare global {\n interface SVGElement extends ZedGpuiFuncional {\n readonly gpui: 'svg';\n\n // #region attributes\n fill_(fill: string): this;\n stroke_(stroke: string): this;\n // #endregion\n\n // #region events\n // #endregion\n }\n}\n\n$_(SVGElement, implementation, {\n // #region attributes\n fill_(fill) {\n this.setAttribute('fill', fill);\n return this;\n },\n stroke_(stroke) {\n this.setAttribute('stroke', stroke);\n return this;\n },\n // #endregion\n\n // #region events\n // #endregion\n} as SVGElement);\n\nexport {};\n","import type { ZedGpuiFuncional } from '../types.js';\nimport { implementation } from '../implementations.js';\n\ndeclare global {\n interface MathMLElement extends ZedGpuiFuncional {\n readonly gpui: 'mathml';\n\n // #region attributes\n // #endregion\n\n // #region events\n // #endregion\n }\n}\n\n$_(MathMLElement, implementation);\n\nexport {};\n","import './common/enhance.js';\nimport './core/html/init.js';\nimport './core/svg/init.js';\nimport './core/mathml/init.js';\n\ndelete (globalThis as any).$_;\n\nexport const h = <T extends keyof HTMLElementTagNameMap>(tag: T): HTMLElementTagNameMap[T] =>\n document.createElement(tag);\nexport const div = () => document.createElement('div');\nexport const span = () => document.createElement('span');\nexport const section = () => document.createElement('section');\nexport const p = () => document.createElement('p');\nexport const input = () => document.createElement('input');\nexport const textarea = () => document.createElement('textarea');\nexport const btn = () => document.createElement('button');\nexport const select = (options: Array<{ value: any; label: string }>) =>\n document.createElement('select').options_(options);\n\n/**\n * Creates svg related elements\n * @param tag left empty will make it an `<svg></svg>`\n */\nexport const svg = <T extends keyof SVGElementTagNameMap>(\n tag: T = 'svg' as any,\n): SVGElementTagNameMap[T] => document.createElementNS('http://www.w3.org/2000/svg', tag);\n\n/**\n * Creates mathml related elements\n * @param tag left empty will make it an `<mathml></mathml>`\n */\nexport const mathml = <T extends keyof MathMLElementTagNameMap>(\n tag: T = 'mathml' as any,\n): MathMLElementTagNameMap[T] =>\n document.createElementNS('http://www.w3.org/1998/Math/MathML', tag);\n"],"mappings":"AAA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