amateras 0.1.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -8
- package/ext/css/src/index.ts +103 -49
- package/ext/css/src/lib/colorAssign.ts +6 -0
- package/ext/css/src/lib/colors/amber.ts +25 -0
- package/ext/css/src/lib/colors/blackwhite.ts +13 -0
- package/ext/css/src/lib/colors/blue.ts +25 -0
- package/ext/css/src/lib/colors/cyan.ts +25 -0
- package/ext/css/src/lib/colors/emerald.ts +25 -0
- package/ext/css/src/lib/colors/fuchsia.ts +25 -0
- package/ext/css/src/lib/colors/gray.ts +25 -0
- package/ext/css/src/lib/colors/green.ts +25 -0
- package/ext/css/src/lib/colors/indigo.ts +25 -0
- package/ext/css/src/lib/colors/lime.ts +25 -0
- package/ext/css/src/lib/colors/neutral.ts +25 -0
- package/ext/css/src/lib/colors/orange.ts +25 -0
- package/ext/css/src/lib/colors/pink.ts +25 -0
- package/ext/css/src/lib/colors/purple.ts +25 -0
- package/ext/css/src/lib/colors/red.ts +25 -0
- package/ext/css/src/lib/colors/rose.ts +25 -0
- package/ext/css/src/lib/colors/sky.ts +25 -0
- package/ext/css/src/lib/colors/slate.ts +25 -0
- package/ext/css/src/lib/colors/stone.ts +25 -0
- package/ext/css/src/lib/colors/teal.ts +25 -0
- package/ext/css/src/lib/colors/violet.ts +25 -0
- package/ext/css/src/lib/colors/yellow.ts +25 -0
- package/ext/css/src/lib/colors/zinc.ts +25 -0
- package/ext/css/src/lib/colors.ts +23 -0
- package/ext/css/src/structure/$CSSKeyframesRule.ts +2 -5
- package/ext/css/src/structure/$CSSMediaRule.ts +3 -23
- package/ext/css/src/structure/$CSSRule.ts +6 -18
- package/ext/css/src/structure/$CSSStyleRule.ts +10 -12
- package/ext/html/html.ts +24 -58
- package/ext/html/node/$Anchor.ts +49 -0
- package/ext/html/node/$Canvas.ts +16 -0
- package/ext/html/node/$Dialog.ts +16 -0
- package/ext/html/node/$Form.ts +16 -0
- package/ext/html/node/$Image.ts +72 -0
- package/ext/html/node/$Input.ts +169 -0
- package/ext/html/node/$Label.ts +16 -0
- package/ext/html/node/$Media.ts +16 -0
- package/ext/html/node/$OptGroup.ts +23 -0
- package/ext/html/node/$Option.ts +40 -0
- package/ext/html/node/$Select.ts +76 -0
- package/ext/html/node/$TextArea.ts +16 -0
- package/ext/router/README.md +81 -0
- package/ext/router/index.ts +66 -0
- package/ext/router/node/Page.ts +27 -0
- package/ext/router/node/Route.ts +53 -0
- package/ext/router/node/Router.ts +138 -0
- package/ext/router/node/RouterAnchor.ts +8 -0
- package/ext/ssr/env.ts +61 -0
- package/ext/ssr/index.ts +47 -0
- package/ext/ssr/package.json +10 -0
- package/package.json +8 -4
- package/src/core.ts +43 -30
- package/src/global.ts +6 -0
- package/src/lib/assign.ts +4 -3
- package/src/lib/assignHelper.ts +11 -13
- package/src/lib/native.ts +14 -3
- package/src/node/$Element.ts +204 -23
- package/src/node/$HTMLElement.ts +76 -0
- package/src/node/$Node.ts +145 -53
- package/src/node/node.ts +8 -6
- package/src/structure/Signal.ts +4 -4
- package/tsconfig.json +1 -1
- package/ext/css/src/structure/$CSSKeyframeRule.ts +0 -13
- package/ext/html/node/$HTMLElement.ts +0 -7
- package/ext/html/node/type.ts +0 -96
package/ext/html/node/type.ts
DELETED
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import type { $HTMLElement } from "./$HTMLElement";
|
|
2
|
-
import type { Signal } from "#structure/Signal";
|
|
3
|
-
|
|
4
|
-
type $Parameter<T> = T | undefined | Signal<T> | Signal<T | undefined>
|
|
5
|
-
|
|
6
|
-
declare module '#node/$Element' {
|
|
7
|
-
export interface $Element<Ele extends Element> {
|
|
8
|
-
/** {@link Element.attributes} */
|
|
9
|
-
readonly attributes: NamedNodeMap;
|
|
10
|
-
/** {@link Element.clientHeight} */
|
|
11
|
-
readonly clientHeight: number;
|
|
12
|
-
/** {@link Element.clientLeft} */
|
|
13
|
-
readonly clientLeft: number;
|
|
14
|
-
/** {@link Element.clientTop} */
|
|
15
|
-
readonly clientTop: number;
|
|
16
|
-
/** {@link Element.clientWidth} */
|
|
17
|
-
readonly clientWidth: number;
|
|
18
|
-
/** {@link Element.currentCSSZoom} */
|
|
19
|
-
readonly currentCSSZoom: number;
|
|
20
|
-
/** {@link Element.localName} */
|
|
21
|
-
readonly localName: string;
|
|
22
|
-
/** {@link Element.namespaceURI} */
|
|
23
|
-
readonly namespaceURI: string | null;
|
|
24
|
-
/** {@link Element.prefix} */
|
|
25
|
-
readonly prefix: string | null;
|
|
26
|
-
/** {@link Element.ownerDocument} */
|
|
27
|
-
readonly ownerDocument: Document;
|
|
28
|
-
/** {@link Element.scrollHeight} */
|
|
29
|
-
readonly scrollHeight: number;
|
|
30
|
-
/** {@link Element.scrollWidth} */
|
|
31
|
-
readonly scrollWidth: number;
|
|
32
|
-
/** {@link Element.shadowRoot} */
|
|
33
|
-
readonly shadowRoot: ShadowRoot | null;
|
|
34
|
-
/** {@link Element.tagName} */
|
|
35
|
-
readonly tagName: string;
|
|
36
|
-
|
|
37
|
-
/** {@link Element.classList} */
|
|
38
|
-
classList(): DOMTokenList;
|
|
39
|
-
classList(value: $Parameter<string>): this;
|
|
40
|
-
/** {@link Element.className} */
|
|
41
|
-
className(): string;
|
|
42
|
-
className(value: $Parameter<string>): this;
|
|
43
|
-
/** {@link Element.id} */
|
|
44
|
-
id(): string;
|
|
45
|
-
id(id: $Parameter<string>): this;
|
|
46
|
-
/** {@link Element.innerHTML} */
|
|
47
|
-
innerHTML(): string;
|
|
48
|
-
innerHTML(innerHTML: $Parameter<string>): this;
|
|
49
|
-
/** {@link Element.outerHTML} */
|
|
50
|
-
outerHTML(): string;
|
|
51
|
-
outerHTML(outerHTML: $Parameter<string>): this;
|
|
52
|
-
/** {@link Element.part} */
|
|
53
|
-
part(): DOMTokenList;
|
|
54
|
-
part(part: $Parameter<string>): this;
|
|
55
|
-
/** {@link Element.scrollLeft} */
|
|
56
|
-
scrollLeft(): number;
|
|
57
|
-
scrollLeft(scrollLeft: $Parameter<number>): this;
|
|
58
|
-
/** {@link Element.scrollTop} */
|
|
59
|
-
scrollTop(): number;
|
|
60
|
-
scrollTop(scrollTop: $Parameter<number>): this;
|
|
61
|
-
/** {@link Element.slot} */
|
|
62
|
-
slot(): string;
|
|
63
|
-
slot(slot: $Parameter<string>): this;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export interface $Input extends $HTMLElement<HTMLInputElement> {}
|
|
68
|
-
export interface $Anchor extends $HTMLElement<HTMLAnchorElement> {}
|
|
69
|
-
export interface $Image extends $HTMLElement<HTMLImageElement> {
|
|
70
|
-
src(src: string): this;
|
|
71
|
-
src(): string;
|
|
72
|
-
}
|
|
73
|
-
export interface $Canvas extends $HTMLElement<HTMLCanvasElement> {}
|
|
74
|
-
export interface $Dialog extends $HTMLElement<HTMLDialogElement> {}
|
|
75
|
-
export interface $Form extends $HTMLElement<HTMLFormElement> {}
|
|
76
|
-
export interface $Label extends $HTMLElement<HTMLLabelElement> {}
|
|
77
|
-
export interface $Media extends $HTMLElement<HTMLMediaElement> {}
|
|
78
|
-
export interface $Select extends $HTMLElement<HTMLSelectElement> {}
|
|
79
|
-
export interface $Option extends $HTMLElement<HTMLOptionElement> {}
|
|
80
|
-
export interface $OptGroup extends $HTMLElement<HTMLOptGroupElement> {}
|
|
81
|
-
export interface $TextArea extends $HTMLElement<HTMLTextAreaElement> {}
|
|
82
|
-
|
|
83
|
-
declare module '#core' {
|
|
84
|
-
export function $(tagname: 'input'): $Input
|
|
85
|
-
export function $(tagname: 'anchor'): $Anchor
|
|
86
|
-
export function $(tagname: 'img'): $Image
|
|
87
|
-
export function $(tagname: 'dialog'): $Dialog
|
|
88
|
-
export function $(tagname: 'form'): $Form
|
|
89
|
-
export function $(tagname: 'label'): $Label
|
|
90
|
-
export function $(tagname: 'media'): $Media
|
|
91
|
-
export function $(tagname: 'select'): $Select
|
|
92
|
-
export function $(tagname: 'option'): $Option
|
|
93
|
-
export function $(tagname: 'otpgroup'): $OptGroup
|
|
94
|
-
export function $(tagname: 'textarea'): $TextArea
|
|
95
|
-
export function $(tagname: string): $HTMLElement
|
|
96
|
-
}
|