amateras 0.7.3 → 0.10.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 +76 -85
- package/package.json +27 -21
- package/tsconfig.json +4 -3
- package/packages/core/package.json +0 -32
- package/packages/core/src/env.browser.ts +0 -21
- package/packages/core/src/env.node.ts +0 -21
- package/packages/core/src/global.ts +0 -18
- package/packages/core/src/index.ts +0 -96
- package/packages/core/src/lib/assignNodeProperties.ts +0 -11
- package/packages/core/src/lib/assignProperties.ts +0 -57
- package/packages/core/src/lib/chain.ts +0 -17
- package/packages/core/src/lib/dom.ts +0 -20
- package/packages/core/src/main.ts +0 -4
- package/packages/core/src/node/$Element.ts +0 -366
- package/packages/core/src/node/$EventTarget.ts +0 -48
- package/packages/core/src/node/$HTMLElement.ts +0 -99
- package/packages/core/src/node/$Node.ts +0 -201
- package/packages/core/src/node/$Virtual.ts +0 -65
- package/packages/css/README.md +0 -128
- package/packages/css/package.json +0 -17
- package/packages/css/src/ext/colors/amber.ts +0 -25
- package/packages/css/src/ext/colors/blackwhite.ts +0 -13
- package/packages/css/src/ext/colors/blue.ts +0 -25
- package/packages/css/src/ext/colors/cyan.ts +0 -25
- package/packages/css/src/ext/colors/emerald.ts +0 -25
- package/packages/css/src/ext/colors/fuchsia.ts +0 -25
- package/packages/css/src/ext/colors/gray.ts +0 -25
- package/packages/css/src/ext/colors/green.ts +0 -25
- package/packages/css/src/ext/colors/indigo.ts +0 -25
- package/packages/css/src/ext/colors/lime.ts +0 -25
- package/packages/css/src/ext/colors/neutral.ts +0 -25
- package/packages/css/src/ext/colors/orange.ts +0 -25
- package/packages/css/src/ext/colors/pink.ts +0 -25
- package/packages/css/src/ext/colors/purple.ts +0 -25
- package/packages/css/src/ext/colors/red.ts +0 -25
- package/packages/css/src/ext/colors/rose.ts +0 -25
- package/packages/css/src/ext/colors/sky.ts +0 -25
- package/packages/css/src/ext/colors/slate.ts +0 -25
- package/packages/css/src/ext/colors/stone.ts +0 -25
- package/packages/css/src/ext/colors/teal.ts +0 -25
- package/packages/css/src/ext/colors/violet.ts +0 -25
- package/packages/css/src/ext/colors/yellow.ts +0 -25
- package/packages/css/src/ext/colors/zinc.ts +0 -25
- package/packages/css/src/ext/colors.ts +0 -23
- package/packages/css/src/ext/container.ts +0 -32
- package/packages/css/src/ext/keyframes.ts +0 -54
- package/packages/css/src/ext/media.ts +0 -32
- package/packages/css/src/ext/property.ts +0 -48
- package/packages/css/src/ext/variable.ts +0 -51
- package/packages/css/src/index.ts +0 -436
- package/packages/css/src/lib/colorAssign.ts +0 -6
- package/packages/css/src/lib/utils.ts +0 -11
- package/packages/css/src/structure/$CSSContainerRule.ts +0 -13
- package/packages/css/src/structure/$CSSDeclaration.ts +0 -16
- package/packages/css/src/structure/$CSSKeyframesRule.ts +0 -13
- package/packages/css/src/structure/$CSSMediaRule.ts +0 -10
- package/packages/css/src/structure/$CSSProperty.ts +0 -19
- package/packages/css/src/structure/$CSSRule.ts +0 -13
- package/packages/css/src/structure/$CSSStyleRule.ts +0 -14
- package/packages/css/src/structure/$CSSVariable.ts +0 -30
- package/packages/dom/package.json +0 -20
- package/packages/dom/src/lib/HTMLElementMap.ts +0 -213
- package/packages/dom/src/lib/assignAttributes.ts +0 -16
- package/packages/dom/src/structure/CSS.ts +0 -7
- package/packages/dom/src/structure/CSSStyleSheet.ts +0 -10
- package/packages/dom/src/structure/DOMTokenList.ts +0 -19
- package/packages/dom/src/structure/Document.ts +0 -36
- package/packages/dom/src/structure/Element.ts +0 -106
- package/packages/dom/src/structure/HTMLElement.ts +0 -34
- package/packages/dom/src/structure/History.ts +0 -11
- package/packages/dom/src/structure/Location.ts +0 -9
- package/packages/dom/src/structure/Node.ts +0 -51
- package/packages/dom/src/structure/NodeList.ts +0 -10
- package/packages/dom/src/structure/Storage.ts +0 -8
- package/packages/dom/src/structure/Text.ts +0 -20
- package/packages/dom/src/structure/Window.ts +0 -14
- package/packages/dom/src/structure/html/HTMLAbbrElement.ts +0 -16
- package/packages/dom/src/structure/html/HTMLAddressElement.ts +0 -16
- package/packages/dom/src/structure/html/HTMLAnchorElement.ts +0 -25
- package/packages/dom/src/structure/html/HTMLAreaElement.ts +0 -26
- package/packages/dom/src/structure/html/HTMLArticleElement.ts +0 -16
- package/packages/dom/src/structure/html/HTMLAsideElement.ts +0 -16
- package/packages/dom/src/structure/html/HTMLAudioElement.ts +0 -16
- package/packages/dom/src/structure/html/HTMLBDIElement.ts +0 -16
- package/packages/dom/src/structure/html/HTMLBDOElement.ts +0 -16
- package/packages/dom/src/structure/html/HTMLBElement.ts +0 -16
- package/packages/dom/src/structure/html/HTMLBRElement.ts +0 -17
- package/packages/dom/src/structure/html/HTMLBaseElement.ts +0 -18
- package/packages/dom/src/structure/html/HTMLBodyElement.ts +0 -22
- package/packages/dom/src/structure/html/HTMLButtonElement.ts +0 -26
- package/packages/dom/src/structure/html/HTMLCanvasElement.ts +0 -18
- package/packages/dom/src/structure/html/HTMLCiteElement.ts +0 -16
- package/packages/dom/src/structure/html/HTMLCodeElement.ts +0 -16
- package/packages/dom/src/structure/html/HTMLDDElement.ts +0 -16
- package/packages/dom/src/structure/html/HTMLDFNElement.ts +0 -16
- package/packages/dom/src/structure/html/HTMLDListElement.ts +0 -17
- package/packages/dom/src/structure/html/HTMLDTElement.ts +0 -16
- package/packages/dom/src/structure/html/HTMLDataElement.ts +0 -17
- package/packages/dom/src/structure/html/HTMLDataListElement.ts +0 -16
- package/packages/dom/src/structure/html/HTMLDetailsElement.ts +0 -17
- package/packages/dom/src/structure/html/HTMLDialogElement.ts +0 -18
- package/packages/dom/src/structure/html/HTMLDivElement.ts +0 -17
- package/packages/dom/src/structure/html/HTMLEMElement.ts +0 -16
- package/packages/dom/src/structure/html/HTMLEmbedElement.ts +0 -20
- package/packages/dom/src/structure/html/HTMLFieldSetElement.ts +0 -19
- package/packages/dom/src/structure/html/HTMLFigCaptionElement.ts +0 -16
- package/packages/dom/src/structure/html/HTMLFigureElement.ts +0 -16
- package/packages/dom/src/structure/html/HTMLFooterElement.ts +0 -16
- package/packages/dom/src/structure/html/HTMLFormElement.ts +0 -24
- package/packages/dom/src/structure/html/HTMLHGroupElement.ts +0 -16
- package/packages/dom/src/structure/html/HTMLHRElement.ts +0 -21
- package/packages/dom/src/structure/html/HTMLHeadElement.ts +0 -16
- package/packages/dom/src/structure/html/HTMLHeaderElement.ts +0 -16
- package/packages/dom/src/structure/html/HTMLHeadingElement.ts +0 -17
- package/packages/dom/src/structure/html/HTMLHtmlElement.ts +0 -18
- package/packages/dom/src/structure/html/HTMLIElement.ts +0 -16
- package/packages/dom/src/structure/html/HTMLIFrameElement.ts +0 -31
- package/packages/dom/src/structure/html/HTMLImageElement.ts +0 -38
- package/packages/dom/src/structure/html/HTMLInputElement.ts +0 -55
- package/packages/dom/src/structure/html/HTMLKBDElement.ts +0 -16
- package/packages/dom/src/structure/html/HTMLLIElement.ts +0 -18
- package/packages/dom/src/structure/html/HTMLLabelElement.ts +0 -18
- package/packages/dom/src/structure/html/HTMLLegendElement.ts +0 -17
- package/packages/dom/src/structure/html/HTMLLinkElement.ts +0 -31
- package/packages/dom/src/structure/html/HTMLMainElement.ts +0 -16
- package/packages/dom/src/structure/html/HTMLMapElement.ts +0 -17
- package/packages/dom/src/structure/html/HTMLMarkElement.ts +0 -16
- package/packages/dom/src/structure/html/HTMLMediaElement.ts +0 -48
- package/packages/dom/src/structure/html/HTMLMenuElement.ts +0 -18
- package/packages/dom/src/structure/html/HTMLMetaElement.ts +0 -22
- package/packages/dom/src/structure/html/HTMLMeterElement.ts +0 -23
- package/packages/dom/src/structure/html/HTMLModElement.ts +0 -18
- package/packages/dom/src/structure/html/HTMLNavElement.ts +0 -16
- package/packages/dom/src/structure/html/HTMLNoscriptElement.ts +0 -16
- package/packages/dom/src/structure/html/HTMLOListElement.ts +0 -20
- package/packages/dom/src/structure/html/HTMLObjectElement.ts +0 -34
- package/packages/dom/src/structure/html/HTMLOptGroupElement.ts +0 -18
- package/packages/dom/src/structure/html/HTMLOptionElement.ts +0 -20
- package/packages/dom/src/structure/html/HTMLOutputElement.ts +0 -20
- package/packages/dom/src/structure/html/HTMLParagraphElement.ts +0 -17
- package/packages/dom/src/structure/html/HTMLPictureElement.ts +0 -16
- package/packages/dom/src/structure/html/HTMLPreElement.ts +0 -17
- package/packages/dom/src/structure/html/HTMLProgressElement.ts +0 -19
- package/packages/dom/src/structure/html/HTMLQuoteElement.ts +0 -17
- package/packages/dom/src/structure/html/HTMLRPElement.ts +0 -16
- package/packages/dom/src/structure/html/HTMLRTElement.ts +0 -16
- package/packages/dom/src/structure/html/HTMLRubyElement.ts +0 -16
- package/packages/dom/src/structure/html/HTMLSElement.ts +0 -16
- package/packages/dom/src/structure/html/HTMLSampElement.ts +0 -16
- package/packages/dom/src/structure/html/HTMLScriptElement.ts +0 -27
- package/packages/dom/src/structure/html/HTMLSectionElement.ts +0 -16
- package/packages/dom/src/structure/html/HTMLSelectElement.ts +0 -27
- package/packages/dom/src/structure/html/HTMLSlotElement.ts +0 -17
- package/packages/dom/src/structure/html/HTMLSmallElement.ts +0 -16
- package/packages/dom/src/structure/html/HTMLSourceElement.ts +0 -21
- package/packages/dom/src/structure/html/HTMLSpanElement.ts +0 -16
- package/packages/dom/src/structure/html/HTMLStrongElement.ts +0 -16
- package/packages/dom/src/structure/html/HTMLStyleElement.ts +0 -18
- package/packages/dom/src/structure/html/HTMLSubElement.ts +0 -16
- package/packages/dom/src/structure/html/HTMLSummaryElement.ts +0 -16
- package/packages/dom/src/structure/html/HTMLSupElement.ts +0 -16
- package/packages/dom/src/structure/html/HTMLTableCaptionElement.ts +0 -17
- package/packages/dom/src/structure/html/HTMLTableCellElement.ts +0 -31
- package/packages/dom/src/structure/html/HTMLTableColElement.ts +0 -23
- package/packages/dom/src/structure/html/HTMLTableElement.ts +0 -26
- package/packages/dom/src/structure/html/HTMLTableRowElement.ts +0 -23
- package/packages/dom/src/structure/html/HTMLTableSectionElement.ts +0 -20
- package/packages/dom/src/structure/html/HTMLTemplateElement.ts +0 -17
- package/packages/dom/src/structure/html/HTMLTextAreaElement.ts +0 -33
- package/packages/dom/src/structure/html/HTMLTimeElement.ts +0 -17
- package/packages/dom/src/structure/html/HTMLTitleElement.ts +0 -17
- package/packages/dom/src/structure/html/HTMLTrackElement.ts +0 -21
- package/packages/dom/src/structure/html/HTMLUElement.ts +0 -16
- package/packages/dom/src/structure/html/HTMLUListElement.ts +0 -18
- package/packages/dom/src/structure/html/HTMLVarElement.ts +0 -16
- package/packages/dom/src/structure/html/HTMLVideoElement.ts +0 -22
- package/packages/dom/src/structure/html/HTMLWBRElement.ts +0 -16
- package/packages/html/package.json +0 -18
- package/packages/html/src/index.ts +0 -13
- package/packages/html/src/node/$Anchor.ts +0 -49
- package/packages/html/src/node/$Canvas.ts +0 -38
- package/packages/html/src/node/$Dialog.ts +0 -16
- package/packages/html/src/node/$Form.ts +0 -16
- package/packages/html/src/node/$Image.ts +0 -72
- package/packages/html/src/node/$Input.ts +0 -193
- package/packages/html/src/node/$Label.ts +0 -25
- package/packages/html/src/node/$Media.ts +0 -16
- package/packages/html/src/node/$OptGroup.ts +0 -23
- package/packages/html/src/node/$Option.ts +0 -40
- package/packages/html/src/node/$Select.ts +0 -76
- package/packages/html/src/node/$TextArea.ts +0 -16
- package/packages/i18n/README.md +0 -73
- package/packages/i18n/package.json +0 -19
- package/packages/i18n/src/index.ts +0 -140
- package/packages/i18n/src/structure/I18n.ts +0 -44
- package/packages/i18n/src/structure/I18nDictionary.ts +0 -31
- package/packages/i18n/src/structure/I18nTranslation.ts +0 -41
- package/packages/idb/README.md +0 -127
- package/packages/idb/package.json +0 -19
- package/packages/idb/src/core.ts +0 -6
- package/packages/idb/src/index.ts +0 -17
- package/packages/idb/src/lib/$IDBRequest.ts +0 -8
- package/packages/idb/src/structure/$IDB.ts +0 -63
- package/packages/idb/src/structure/$IDBCursor.ts +0 -34
- package/packages/idb/src/structure/$IDBIndex.ts +0 -48
- package/packages/idb/src/structure/$IDBStore.ts +0 -103
- package/packages/idb/src/structure/$IDBStoreBase.ts +0 -30
- package/packages/idb/src/structure/$IDBTransaction.ts +0 -38
- package/packages/idb/src/structure/builder/$IDBBuilder.ts +0 -229
- package/packages/idb/src/structure/builder/$IDBStoreBuilder.ts +0 -100
- package/packages/markdown/README.md +0 -53
- package/packages/markdown/package.json +0 -19
- package/packages/markdown/src/index.ts +0 -3
- package/packages/markdown/src/lib/type.ts +0 -26
- package/packages/markdown/src/lib/util.ts +0 -21
- package/packages/markdown/src/structure/Markdown.ts +0 -54
- package/packages/markdown/src/structure/MarkdownLexer.ts +0 -111
- package/packages/markdown/src/structure/MarkdownParser.ts +0 -34
- package/packages/markdown/src/syntax/alert.ts +0 -46
- package/packages/markdown/src/syntax/blockquote.ts +0 -35
- package/packages/markdown/src/syntax/bold.ts +0 -11
- package/packages/markdown/src/syntax/code.ts +0 -11
- package/packages/markdown/src/syntax/codeblock.ts +0 -44
- package/packages/markdown/src/syntax/heading.ts +0 -14
- package/packages/markdown/src/syntax/horizontalRule.ts +0 -11
- package/packages/markdown/src/syntax/image.ts +0 -23
- package/packages/markdown/src/syntax/italic.ts +0 -11
- package/packages/markdown/src/syntax/link.ts +0 -46
- package/packages/markdown/src/syntax/list.ts +0 -121
- package/packages/markdown/src/syntax/table.ts +0 -67
- package/packages/markdown/src/syntax/text.ts +0 -19
- package/packages/router/README.md +0 -175
- package/packages/router/package.json +0 -19
- package/packages/router/src/index.ts +0 -68
- package/packages/router/src/node/Page.ts +0 -38
- package/packages/router/src/node/Router.ts +0 -212
- package/packages/router/src/node/RouterAnchor.ts +0 -24
- package/packages/router/src/structure/PageBuilder.ts +0 -24
- package/packages/router/src/structure/Route.ts +0 -105
- package/packages/signal/README.md +0 -93
- package/packages/signal/package.json +0 -18
- package/packages/signal/src/index.ts +0 -221
- package/packages/signal/src/structure/Signal.ts +0 -38
- package/packages/ui/lib/VirtualScroll.ts +0 -25
- package/packages/ui/node/Accordian.ts +0 -97
- package/packages/ui/node/Carousel.ts +0 -20
- package/packages/ui/node/Form.ts +0 -54
- package/packages/ui/node/Grid.ts +0 -0
- package/packages/ui/node/Modal.ts +0 -45
- package/packages/ui/node/Table.ts +0 -43
- package/packages/ui/node/Tabs.ts +0 -129
- package/packages/ui/node/Toast.ts +0 -16
- package/packages/ui/node/Waterfall.ts +0 -94
- package/packages/ui/package.json +0 -21
- package/packages/utils/package.json +0 -17
- package/packages/utils/src/global.ts +0 -25
- package/packages/utils/src/index.ts +0 -90
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { assignAttributes } from "#lib/assignAttributes";
|
|
2
|
-
import { HTMLMediaElement } from "#structure/html/HTMLMediaElement";
|
|
3
|
-
import { _Object_assign } from "@amateras/utils";
|
|
4
|
-
|
|
5
|
-
export class HTMLVideoElement extends HTMLMediaElement {
|
|
6
|
-
static defaultAttributes = {
|
|
7
|
-
...HTMLMediaElement.defaultAttributes,
|
|
8
|
-
disablePictureInPicture: false,
|
|
9
|
-
height: '',
|
|
10
|
-
poster: '',
|
|
11
|
-
videoHeight: 0,
|
|
12
|
-
videoWidth: 0,
|
|
13
|
-
width: ''
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
constructor() {
|
|
17
|
-
super('video')
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
assignAttributes(HTMLVideoElement, HTMLVideoElement.defaultAttributes)
|
|
22
|
-
_Object_assign(globalThis, { HTMLVideoElement })
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { assignAttributes } from "#lib/assignAttributes";
|
|
2
|
-
import { HTMLElement } from "#structure/HTMLElement";
|
|
3
|
-
import { _Object_assign } from "@amateras/utils";
|
|
4
|
-
|
|
5
|
-
export class HTMLWBRElement extends HTMLElement {
|
|
6
|
-
static defaultAttributes = {
|
|
7
|
-
...HTMLElement.defaultAttributes
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
constructor() {
|
|
11
|
-
super('wbr')
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
assignAttributes(HTMLWBRElement, HTMLWBRElement.defaultAttributes)
|
|
16
|
-
_Object_assign(globalThis, { HTMLWBRElement })
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@amateras/html",
|
|
3
|
-
"peerDependencies": {
|
|
4
|
-
"@amateras/core": "workspace:*",
|
|
5
|
-
"@amateras/utils": "workspace:*"
|
|
6
|
-
},
|
|
7
|
-
"imports": {
|
|
8
|
-
"#structure/*": "./src/structure/*.ts",
|
|
9
|
-
"#lib/*": "./src/lib/*.ts",
|
|
10
|
-
"#node/*": "./src/node/*.ts"
|
|
11
|
-
},
|
|
12
|
-
"exports": {
|
|
13
|
-
".": "./src/index.ts",
|
|
14
|
-
"./structure/*": "./src/structure/*.ts",
|
|
15
|
-
"./lib/*": "./src/lib/*.ts",
|
|
16
|
-
"./node/*": "./src/node/*.ts"
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import '@amateras/core';
|
|
2
|
-
import './node/$Anchor';
|
|
3
|
-
import './node/$Dialog';
|
|
4
|
-
import './node/$Form';
|
|
5
|
-
import './node/$Image';
|
|
6
|
-
import './node/$Canvas';
|
|
7
|
-
import './node/$Input';
|
|
8
|
-
import './node/$Label';
|
|
9
|
-
import './node/$Media';
|
|
10
|
-
import './node/$OptGroup';
|
|
11
|
-
import './node/$Option';
|
|
12
|
-
import './node/$Select';
|
|
13
|
-
import './node/$TextArea';
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { assignProperties } from "@amateras/core/lib/assignProperties";
|
|
2
|
-
import { $HTMLElement } from "@amateras/core/node/$HTMLElement";
|
|
3
|
-
|
|
4
|
-
export class $Anchor extends $HTMLElement<HTMLAnchorElement> {
|
|
5
|
-
constructor() {
|
|
6
|
-
super('a')
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface $Anchor extends $HTMLElement<HTMLAnchorElement> {
|
|
11
|
-
/** {@link HTMLAnchorElement.href} */
|
|
12
|
-
href(href: $Parameter<string>): this;
|
|
13
|
-
href(): string;
|
|
14
|
-
/** {@link HTMLAnchorElement.hreflang} */
|
|
15
|
-
hreflang(hreflang: $Parameter<string>): this;
|
|
16
|
-
hreflang(): string;
|
|
17
|
-
/** {@link HTMLAnchorElement.download} */
|
|
18
|
-
download(download: $Parameter<string>): this;
|
|
19
|
-
download(): string;
|
|
20
|
-
/** {@link HTMLAnchorElement.ping} */
|
|
21
|
-
ping(ping: $Parameter<string>): this;
|
|
22
|
-
ping(): string;
|
|
23
|
-
/** {@link HTMLAnchorElement.referrerPolicy} */
|
|
24
|
-
referrerPolicy(referrerPolicy: $Parameter<string>): this;
|
|
25
|
-
referrerPolicy(): string;
|
|
26
|
-
/** {@link HTMLAnchorElement.rel} */
|
|
27
|
-
rel(rel: $Parameter<string>): this;
|
|
28
|
-
rel(): string;
|
|
29
|
-
/** {@link HTMLAnchorElement.relList} */
|
|
30
|
-
relList(relList: $Parameter<string>): this;
|
|
31
|
-
relList(): DOMTokenList;
|
|
32
|
-
/** {@link HTMLAnchorElement.target} */
|
|
33
|
-
target(target: $Parameter<AnchorTarget>): this;
|
|
34
|
-
target(): AnchorTarget;
|
|
35
|
-
/** {@link HTMLAnchorElement.text} */
|
|
36
|
-
text(text: $Parameter<string>): this;
|
|
37
|
-
text(): string;
|
|
38
|
-
/** {@link HTMLAnchorElement.type} */
|
|
39
|
-
type(type: $Parameter<string>): this;
|
|
40
|
-
type(): string;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export type AnchorTarget = '_self' | '_blank' | '_parent' | '_top' | '_unfenced_top' | '' | '_replace';
|
|
44
|
-
|
|
45
|
-
declare module '@amateras/core' {
|
|
46
|
-
export function $(nodeName: 'a'): $Anchor
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
assignProperties(HTMLAnchorElement, $Anchor, 'a');
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { assignProperties } from "@amateras/core/lib/assignProperties";
|
|
2
|
-
import { $HTMLElement } from "@amateras/core/node/$HTMLElement";
|
|
3
|
-
|
|
4
|
-
export class $Canvas extends $HTMLElement<HTMLCanvasElement> {
|
|
5
|
-
constructor() {
|
|
6
|
-
super('canvas');
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface $Canvas extends $HTMLElement<HTMLCanvasElement> {
|
|
11
|
-
/** {@link HTMLCanvasElement.height} */
|
|
12
|
-
height(height: $Parameter<number>): this;
|
|
13
|
-
height(): number;
|
|
14
|
-
/** {@link HTMLCanvasElement.width} */
|
|
15
|
-
width(width: $Parameter<number>): this;
|
|
16
|
-
width(): number;
|
|
17
|
-
|
|
18
|
-
/** {@link HTMLCanvasElement.captureStream} */
|
|
19
|
-
captureStream(frameRequestRate?: number): MediaStream;
|
|
20
|
-
/** {@link HTMLCanvasElement.getContext} */
|
|
21
|
-
getContext(contextId: "2d", options?: CanvasRenderingContext2DSettings): CanvasRenderingContext2D | null;
|
|
22
|
-
getContext(contextId: "bitmaprenderer", options?: ImageBitmapRenderingContextSettings): ImageBitmapRenderingContext | null;
|
|
23
|
-
getContext(contextId: "webgl", options?: WebGLContextAttributes): WebGLRenderingContext | null;
|
|
24
|
-
getContext(contextId: "webgl2", options?: WebGLContextAttributes): WebGL2RenderingContext | null;
|
|
25
|
-
getContext(contextId: string, options?: any): RenderingContext | null;
|
|
26
|
-
/** {@link HTMLCanvasElement.toBlob} */
|
|
27
|
-
toBlob(callback: BlobCallback, type?: string, quality?: number): this;
|
|
28
|
-
/** {@link HTMLCanvasElement.toDataURL} */
|
|
29
|
-
toDataURL(type?: string, quality?: number): string;
|
|
30
|
-
/** {@link HTMLCanvasElement.transferControlToOffscreen} */
|
|
31
|
-
transferControlToOffscreen(): OffscreenCanvas;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
assignProperties(HTMLCanvasElement, $Canvas, 'canvas');
|
|
35
|
-
|
|
36
|
-
declare module "@amateras/core" {
|
|
37
|
-
export function $(nodeName: 'canvas'): $Canvas
|
|
38
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { assignProperties } from "@amateras/core/lib/assignProperties";
|
|
2
|
-
import { $HTMLElement } from "@amateras/core/node/$HTMLElement";
|
|
3
|
-
|
|
4
|
-
export class $Dialog extends $HTMLElement<HTMLDialogElement> {
|
|
5
|
-
constructor() {
|
|
6
|
-
super('dialog')
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface $Dialog extends $HTMLElement<HTMLDialogElement> {}
|
|
11
|
-
|
|
12
|
-
assignProperties(HTMLDialogElement, $Dialog, 'dialog');
|
|
13
|
-
|
|
14
|
-
declare module "@amateras/core" {
|
|
15
|
-
export function $(nodeName: 'dialog'): $Dialog
|
|
16
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { assignProperties } from "@amateras/core/lib/assignProperties";
|
|
2
|
-
import { $HTMLElement } from "@amateras/core/node/$HTMLElement";
|
|
3
|
-
|
|
4
|
-
export class $Form extends $HTMLElement<HTMLFormElement> {
|
|
5
|
-
constructor() {
|
|
6
|
-
super('form')
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface $Form extends $HTMLElement<HTMLFormElement> {}
|
|
11
|
-
|
|
12
|
-
assignProperties(HTMLFormElement, $Form, 'form');
|
|
13
|
-
|
|
14
|
-
declare module "@amateras/core" {
|
|
15
|
-
export function $(nodeName: 'form'): $Form
|
|
16
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { assignProperties } from "@amateras/core/lib/assignProperties";
|
|
2
|
-
import { $HTMLElement } from "@amateras/core/node/$HTMLElement";
|
|
3
|
-
|
|
4
|
-
export class $Image extends $HTMLElement<HTMLImageElement> {
|
|
5
|
-
constructor() {
|
|
6
|
-
super('img')
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface $Image extends $HTMLElement<HTMLImageElement> {
|
|
11
|
-
/** {@link HTMLImageElement.complete} */
|
|
12
|
-
readonly complete: boolean;
|
|
13
|
-
/** {@link HTMLImageElement.currentSrc} */
|
|
14
|
-
readonly currentSrc: string;
|
|
15
|
-
/** {@link HTMLImageElement.naturalHeight} */
|
|
16
|
-
readonly naturalHeight: number;
|
|
17
|
-
/** {@link HTMLImageElement.naturalWidth} */
|
|
18
|
-
readonly naturalWidth: number;
|
|
19
|
-
/** {@link HTMLImageElement.x} */
|
|
20
|
-
readonly x: number;
|
|
21
|
-
/** {@link HTMLImageElement.y} */
|
|
22
|
-
readonly y: number;
|
|
23
|
-
|
|
24
|
-
/** {@link HTMLImageElement.decode} */
|
|
25
|
-
decode(): Promise<this>;
|
|
26
|
-
|
|
27
|
-
/** {@link HTMLImageElement.alt} */
|
|
28
|
-
alt(alt: $Parameter<string>): this;
|
|
29
|
-
alt(): string;
|
|
30
|
-
/** {@link HTMLImageElement.crossOrigin} */
|
|
31
|
-
crossOrigin(crossOrigin: $Parameter<string | null>): this;
|
|
32
|
-
crossOrigin(): string | null;
|
|
33
|
-
/** {@link HTMLImageElement.decoding} */
|
|
34
|
-
decoding(decoding: $Parameter<"async" | "sync" | "auto">): this;
|
|
35
|
-
decoding(): "async" | "sync" | "auto";
|
|
36
|
-
/** {@link HTMLImageElement.fetchPriority} */
|
|
37
|
-
fetchPriority(fetchPriority: $Parameter<"high" | "low" | "auto">): this;
|
|
38
|
-
fetchPriority(): "high" | "low" | "auto";
|
|
39
|
-
/** {@link HTMLImageElement.height} */
|
|
40
|
-
height(height: $Parameter<number>): this;
|
|
41
|
-
height(): number;
|
|
42
|
-
/** {@link HTMLImageElement.isMap} */
|
|
43
|
-
isMap(isMap: $Parameter<boolean>): this;
|
|
44
|
-
isMap(): boolean;
|
|
45
|
-
/** {@link HTMLImageElement.loading} */
|
|
46
|
-
loading(loading: $Parameter<"eager" | "lazy">): this;
|
|
47
|
-
loading(): "eager" | "lazy";
|
|
48
|
-
/** {@link HTMLImageElement.referrerPolicy} */
|
|
49
|
-
referrerPolicy(referrerPolicy: $Parameter<string>): this;
|
|
50
|
-
referrerPolicy(): string;
|
|
51
|
-
/** {@link HTMLImageElement.sizes} */
|
|
52
|
-
sizes(sizes: $Parameter<string>): this;
|
|
53
|
-
sizes(): string;
|
|
54
|
-
/** {@link HTMLImageElement.src} */
|
|
55
|
-
src(src: $Parameter<string>): this;
|
|
56
|
-
src(): string;
|
|
57
|
-
/** {@link HTMLImageElement.srcset} */
|
|
58
|
-
srcset(srcset: $Parameter<string>): this;
|
|
59
|
-
srcset(): string;
|
|
60
|
-
/** {@link HTMLImageElement.useMap} */
|
|
61
|
-
useMap(useMap: $Parameter<string>): this;
|
|
62
|
-
useMap(): string;
|
|
63
|
-
/** {@link HTMLImageElement.width} */
|
|
64
|
-
width(width: $Parameter<number>): this;
|
|
65
|
-
width(): number;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
assignProperties(HTMLImageElement, $Image, 'img');
|
|
69
|
-
|
|
70
|
-
declare module "@amateras/core" {
|
|
71
|
-
export function $(nodeName: 'img'): $Image
|
|
72
|
-
}
|
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
import { assignProperties } from "@amateras/core/lib/assignProperties";
|
|
2
|
-
import { $HTMLElement } from "@amateras/core/node/$HTMLElement";
|
|
3
|
-
|
|
4
|
-
export class $Input extends $HTMLElement<HTMLInputElement> {
|
|
5
|
-
constructor() {
|
|
6
|
-
super('input')
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface $Input extends $HTMLElement<HTMLInputElement> {
|
|
11
|
-
/** {@link HTMLInputElement.form} */
|
|
12
|
-
readonly form: HTMLFormElement | null;
|
|
13
|
-
/** {@link HTMLInputElement.labels} */
|
|
14
|
-
readonly labels: NodeListOf<HTMLLabelElement> | null;
|
|
15
|
-
/** {@link HTMLInputElement.list} */
|
|
16
|
-
readonly list: HTMLDataListElement | null;
|
|
17
|
-
/** {@link HTMLInputElement.validationMessage} */
|
|
18
|
-
readonly validationMessage: string;
|
|
19
|
-
/** {@link HTMLInputElement.validity} */
|
|
20
|
-
readonly validity: ValidityState;
|
|
21
|
-
/** {@link HTMLInputElement.webkitEntries} */
|
|
22
|
-
readonly webkitEntries: ReadonlyArray<FileSystemEntry>;
|
|
23
|
-
/** {@link HTMLInputElement.willValidate} */
|
|
24
|
-
readonly willValidate: boolean;
|
|
25
|
-
|
|
26
|
-
/** {@link HTMLInputElement.checkValidity} */
|
|
27
|
-
checkValidity(): boolean;
|
|
28
|
-
/** {@link HTMLInputElement.reportValidity} */
|
|
29
|
-
reportValidity(): boolean;
|
|
30
|
-
/** {@link HTMLInputElement.select} */
|
|
31
|
-
select(): this;
|
|
32
|
-
/** {@link HTMLInputElement.setCustomValidity} */
|
|
33
|
-
setCustomValidity(error: string): this;
|
|
34
|
-
/** {@link HTMLInputElement.setRangeText} */
|
|
35
|
-
setRangeText(replacement: string): this;
|
|
36
|
-
setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): this;
|
|
37
|
-
/** {@link HTMLInputElement.setSelectionRange} */
|
|
38
|
-
setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): this;
|
|
39
|
-
/** {@link HTMLInputElement.showPicker} */
|
|
40
|
-
showPicker(): this;
|
|
41
|
-
/** {@link HTMLInputElement.stepDown} */
|
|
42
|
-
stepDown(n?: number): this;
|
|
43
|
-
/** {@link HTMLInputElement.stepUp} */
|
|
44
|
-
stepUp(n?: number): this;
|
|
45
|
-
|
|
46
|
-
/** {@link HTMLInputElement.accept} */
|
|
47
|
-
accept(accept: $Parameter<string>): this;
|
|
48
|
-
accept(): string;
|
|
49
|
-
/** {@link HTMLInputElement.alt} */
|
|
50
|
-
alt(alt: $Parameter<string>): this;
|
|
51
|
-
alt(): string;
|
|
52
|
-
/** {@link HTMLInputElement.autoFill} */
|
|
53
|
-
autoFill(autoFill: $Parameter<AutoFill>): this;
|
|
54
|
-
autoFill(): AutoFill;
|
|
55
|
-
/** {@link HTMLInputElement.capture} */
|
|
56
|
-
capture(capture: $Parameter<string>): this;
|
|
57
|
-
capture(): string;
|
|
58
|
-
/** {@link HTMLInputElement.checked} */
|
|
59
|
-
checked(checked: $Parameter<boolean>): this;
|
|
60
|
-
checked(): boolean;
|
|
61
|
-
/** {@link HTMLInputElement.defaultChecked} */
|
|
62
|
-
defaultChecked(defaultChecked: $Parameter<boolean>): this;
|
|
63
|
-
defaultChecked(): string;
|
|
64
|
-
/** {@link HTMLInputElement.defaultValue} */
|
|
65
|
-
defaultValue(defaultValue: $Parameter<string>): this;
|
|
66
|
-
defaultValue(): string;
|
|
67
|
-
/** {@link HTMLInputElement.dirName} */
|
|
68
|
-
dirName(dirName: $Parameter<string>): this;
|
|
69
|
-
dirName(): string;
|
|
70
|
-
/** {@link HTMLInputElement.disabled} */
|
|
71
|
-
disabled(disabled: $Parameter<boolean>): this;
|
|
72
|
-
disabled(): boolean;
|
|
73
|
-
/** {@link HTMLInputElement.files} */
|
|
74
|
-
files(files: $Parameter<FileList | null>): this;
|
|
75
|
-
files(): string;
|
|
76
|
-
/** {@link HTMLInputElement.formAction} */
|
|
77
|
-
formAction(formAction: $Parameter<string>): this;
|
|
78
|
-
formAction(): string;
|
|
79
|
-
/** {@link HTMLInputElement.formEnctype} */
|
|
80
|
-
formEnctype(formEnctype: $Parameter<string>): this;
|
|
81
|
-
formEnctype(): string;
|
|
82
|
-
/** {@link HTMLInputElement.formMethod} */
|
|
83
|
-
formMethod(formMethod: $Parameter<string>): this;
|
|
84
|
-
formMethod(): string;
|
|
85
|
-
/** {@link HTMLInputElement.formNoValidate} */
|
|
86
|
-
formNoValidate(formNoValidate: $Parameter<boolean>): this;
|
|
87
|
-
formNoValidate(): boolean;
|
|
88
|
-
/** {@link HTMLInputElement.formTarget} */
|
|
89
|
-
formTarget(formTarget: $Parameter<string>): this;
|
|
90
|
-
formTarget(): string;
|
|
91
|
-
/** {@link HTMLInputElement.height} */
|
|
92
|
-
height(height: $Parameter<number>): this;
|
|
93
|
-
height(): number;
|
|
94
|
-
/** {@link HTMLInputElement.indeterminate} */
|
|
95
|
-
indeterminate(indeterminate: $Parameter<boolean>): this;
|
|
96
|
-
indeterminate(): boolean;
|
|
97
|
-
/** {@link HTMLInputElement.max} */
|
|
98
|
-
max(max: $Parameter<string>): this;
|
|
99
|
-
max(): string;
|
|
100
|
-
/** {@link HTMLInputElement.maxLength} */
|
|
101
|
-
maxLength(maxLength: $Parameter<number>): this;
|
|
102
|
-
maxLength(): number;
|
|
103
|
-
/** {@link HTMLInputElement.min} */
|
|
104
|
-
min(min: $Parameter<string>): this;
|
|
105
|
-
min(): string;
|
|
106
|
-
/** {@link HTMLInputElement.minLength} */
|
|
107
|
-
minLength(minLength: $Parameter<string>): this;
|
|
108
|
-
minLength(): string;
|
|
109
|
-
/** {@link HTMLInputElement.multiple} */
|
|
110
|
-
multiple(multiple: $Parameter<boolean>): this;
|
|
111
|
-
multiple(): boolean;
|
|
112
|
-
/** {@link HTMLInputElement.name} */
|
|
113
|
-
name(name: $Parameter<string>): this;
|
|
114
|
-
name(): string;
|
|
115
|
-
/** {@link HTMLInputElement.pattern} */
|
|
116
|
-
pattern(pattern: $Parameter<string>): this;
|
|
117
|
-
pattern(): string;
|
|
118
|
-
/** {@link HTMLInputElement.placeholder} */
|
|
119
|
-
placeholder(placeholder: $Parameter<string>): this;
|
|
120
|
-
placeholder(): string;
|
|
121
|
-
/** {@link HTMLInputElement.readOnly} */
|
|
122
|
-
readOnly(readOnly: $Parameter<boolean>): this;
|
|
123
|
-
readOnly(): boolean;
|
|
124
|
-
/** {@link HTMLInputElement.required} */
|
|
125
|
-
required(required: $Parameter<boolean>): this;
|
|
126
|
-
required(): boolean;
|
|
127
|
-
/** {@link HTMLInputElement.selectionDirection} */
|
|
128
|
-
selectionDirection(selectionDirection: $Parameter<'forward' | 'backward' | 'none' | null>): this;
|
|
129
|
-
selectionDirection(): 'forward' | 'backward' | 'none' | null;
|
|
130
|
-
/** {@link HTMLInputElement.selectionEnd} */
|
|
131
|
-
selectionEnd(selectionEnd: $Parameter<number | null>): this;
|
|
132
|
-
selectionEnd(): number | null;
|
|
133
|
-
/** {@link HTMLInputElement.selectionStart} */
|
|
134
|
-
selectionStart(selectionStart: $Parameter<number>): this;
|
|
135
|
-
selectionStart(): number;
|
|
136
|
-
/** {@link HTMLInputElement.size} */
|
|
137
|
-
size(size: $Parameter<number>): this;
|
|
138
|
-
size(): number;
|
|
139
|
-
/** {@link HTMLInputElement.src} */
|
|
140
|
-
src(src: $Parameter<string>): this;
|
|
141
|
-
src(): string;
|
|
142
|
-
/** {@link HTMLInputElement.step} */
|
|
143
|
-
step(step: $Parameter<string>): this;
|
|
144
|
-
step(): string;
|
|
145
|
-
/** {@link HTMLInputElement.type} */
|
|
146
|
-
type(type: $Parameter<InputType>): this;
|
|
147
|
-
type(): InputType;
|
|
148
|
-
/** {@link HTMLInputElement.value} */
|
|
149
|
-
value(value: $Parameter<string>): this;
|
|
150
|
-
value(): string;
|
|
151
|
-
/** {@link HTMLInputElement.valueAsDate} */
|
|
152
|
-
valueAsDate(valueAsDate: $Parameter<Date | null>): this;
|
|
153
|
-
valueAsDate(): Date | null;
|
|
154
|
-
/** {@link HTMLInputElement.valueAsNumber} */
|
|
155
|
-
valueAsNumber(valueAsNumber: $Parameter<number>): this;
|
|
156
|
-
valueAsNumber(): number;
|
|
157
|
-
/** {@link HTMLInputElement.webkitdirectory} */
|
|
158
|
-
webkitdirectory(webkitdirectory: $Parameter<boolean>): this;
|
|
159
|
-
webkitdirectory(): boolean;
|
|
160
|
-
/** {@link HTMLInputElement.width} */
|
|
161
|
-
width(width: $Parameter<number>): this;
|
|
162
|
-
width(): number;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
export type InputType =
|
|
166
|
-
| 'button'
|
|
167
|
-
| 'checkbox'
|
|
168
|
-
| 'color'
|
|
169
|
-
| 'date'
|
|
170
|
-
| 'datetime-local'
|
|
171
|
-
| 'email'
|
|
172
|
-
| 'file'
|
|
173
|
-
| 'hidden'
|
|
174
|
-
| 'image'
|
|
175
|
-
| 'month'
|
|
176
|
-
| 'number'
|
|
177
|
-
| 'password'
|
|
178
|
-
| 'radio'
|
|
179
|
-
| 'range'
|
|
180
|
-
| 'reset'
|
|
181
|
-
| 'search'
|
|
182
|
-
| 'submit'
|
|
183
|
-
| 'tel'
|
|
184
|
-
| 'text'
|
|
185
|
-
| 'time'
|
|
186
|
-
| 'url'
|
|
187
|
-
| 'week';
|
|
188
|
-
|
|
189
|
-
assignProperties(HTMLInputElement, $Input, 'input');
|
|
190
|
-
|
|
191
|
-
declare module "@amateras/core" {
|
|
192
|
-
export function $(nodeName: 'input'): $Input
|
|
193
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { assignProperties } from "@amateras/core/lib/assignProperties";
|
|
2
|
-
import { $HTMLElement } from "@amateras/core/node/$HTMLElement";
|
|
3
|
-
|
|
4
|
-
export class $Label extends $HTMLElement<HTMLLabelElement> {
|
|
5
|
-
constructor() {
|
|
6
|
-
super('label')
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface $Label extends $HTMLElement<HTMLLabelElement> {
|
|
11
|
-
/** {@link HTMLLabelElement.control} */
|
|
12
|
-
readonly control: HTMLElement | null;
|
|
13
|
-
/** {@link HTMLLabelElement.form} */
|
|
14
|
-
readonly form: HTMLFormElement | null;
|
|
15
|
-
|
|
16
|
-
/** {@link HTMLLabelElement.htmlFor} */
|
|
17
|
-
htmlFor(htmlFor: $Parameter<string>): this;
|
|
18
|
-
htmlFor(): string;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
assignProperties(HTMLLabelElement, $Label, 'label');
|
|
22
|
-
|
|
23
|
-
declare module "@amateras/core" {
|
|
24
|
-
export function $(nodeName: 'label'): $Label
|
|
25
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { assignProperties } from "@amateras/core/lib/assignProperties";
|
|
2
|
-
import { $HTMLElement } from "@amateras/core/node/$HTMLElement";
|
|
3
|
-
|
|
4
|
-
export class $Media extends $HTMLElement<HTMLMediaElement> {
|
|
5
|
-
constructor() {
|
|
6
|
-
super('media')
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface $Media extends $HTMLElement<HTMLMediaElement> {}
|
|
11
|
-
|
|
12
|
-
assignProperties(HTMLMediaElement, $Media, 'media');
|
|
13
|
-
|
|
14
|
-
declare module "@amateras/core" {
|
|
15
|
-
export function $(nodeName: 'media'): $Media
|
|
16
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { assignProperties } from "@amateras/core/lib/assignProperties";
|
|
2
|
-
import { $HTMLElement } from "@amateras/core/node/$HTMLElement";
|
|
3
|
-
|
|
4
|
-
export class $OptGroup extends $HTMLElement<HTMLOptGroupElement> {
|
|
5
|
-
constructor() {
|
|
6
|
-
super('optgroup')
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface $OptGroup extends $HTMLElement<HTMLOptGroupElement> {
|
|
11
|
-
/** {@link HTMLOptGroupElement.disabled} */
|
|
12
|
-
disabled(disabled: $Parameter<boolean>): this;
|
|
13
|
-
disabled(): boolean;
|
|
14
|
-
/** {@link HTMLOptGroupElement.label} */
|
|
15
|
-
label(label: $Parameter<string>): this;
|
|
16
|
-
label(): string;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
assignProperties(HTMLOptGroupElement, $OptGroup, 'optgroup');
|
|
20
|
-
|
|
21
|
-
declare module "@amateras/core" {
|
|
22
|
-
export function $(nodeName: 'optgroup'): $OptGroup
|
|
23
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { assignProperties } from "@amateras/core/lib/assignProperties";
|
|
2
|
-
import { $HTMLElement } from "@amateras/core/node/$HTMLElement";
|
|
3
|
-
|
|
4
|
-
export class $Option extends $HTMLElement<HTMLOptionElement> {
|
|
5
|
-
constructor() {
|
|
6
|
-
super('option')
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface $Option extends $HTMLElement<HTMLOptionElement> {
|
|
11
|
-
/** {@link HTMLOptionElement.form} */
|
|
12
|
-
readonly form: HTMLFormElement | null;
|
|
13
|
-
/** {@link HTMLOptionElement.index} */
|
|
14
|
-
readonly index: number;
|
|
15
|
-
|
|
16
|
-
/** {@link HTMLOptionElement.defaultSelected} */
|
|
17
|
-
defaultSelected(defaultSelected: $Parameter<boolean>): this;
|
|
18
|
-
defaultSelected(): boolean;
|
|
19
|
-
/** {@link HTMLOptionElement.disabled} */
|
|
20
|
-
disabled(disabled: $Parameter<boolean>): this;
|
|
21
|
-
disabled(): boolean;
|
|
22
|
-
/** {@link HTMLOptionElement.label} */
|
|
23
|
-
label(label: $Parameter<string>): this;
|
|
24
|
-
label(): string;
|
|
25
|
-
/** {@link HTMLOptionElement.selected} */
|
|
26
|
-
selected(selected: $Parameter<boolean>): this;
|
|
27
|
-
selected(): boolean;
|
|
28
|
-
/** {@link HTMLOptionElement.text} */
|
|
29
|
-
text(text: $Parameter<string>): this;
|
|
30
|
-
text(): string;
|
|
31
|
-
/** {@link HTMLOptionElement.value} */
|
|
32
|
-
value(value: $Parameter<string>): this;
|
|
33
|
-
value(): string;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
assignProperties(HTMLOptionElement, $Option, 'option');
|
|
37
|
-
|
|
38
|
-
declare module "@amateras/core" {
|
|
39
|
-
export function $(nodeName: 'option'): $Option
|
|
40
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { assignProperties } from "@amateras/core/lib/assignProperties";
|
|
2
|
-
import { $HTMLElement } from "@amateras/core/node/$HTMLElement";
|
|
3
|
-
|
|
4
|
-
export class $Select extends $HTMLElement<HTMLSelectElement> {
|
|
5
|
-
constructor() {
|
|
6
|
-
super('select')
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface $Select extends $HTMLElement<HTMLSelectElement> {
|
|
11
|
-
/** {@link HTMLSelectElement.form} */
|
|
12
|
-
readonly form: HTMLFormElement | null;
|
|
13
|
-
/** {@link HTMLSelectElement.labels} */
|
|
14
|
-
readonly labels: NodeListOf<HTMLLabelElement>;
|
|
15
|
-
/** {@link HTMLSelectElement.options} */
|
|
16
|
-
readonly options: HTMLOptionsCollection;
|
|
17
|
-
/** {@link HTMLSelectElement.selectedOptions} */
|
|
18
|
-
readonly selectedOptions: HTMLCollectionOf<HTMLOptionElement>;
|
|
19
|
-
/** {@link HTMLSelectElement.type} */
|
|
20
|
-
readonly type: "select-one" | "select-multiple";
|
|
21
|
-
/** {@link HTMLSelectElement.validationMessage} */
|
|
22
|
-
readonly validationMessage: string;
|
|
23
|
-
/** {@link HTMLSelectElement.validity} */
|
|
24
|
-
readonly validity: ValidityState;
|
|
25
|
-
/** {@link HTMLSelectElement.willValidate} */
|
|
26
|
-
readonly willValidate: boolean;
|
|
27
|
-
|
|
28
|
-
/** {@link HTMLSelectElement.autocomplete} */
|
|
29
|
-
autocomplete(autocomplete: $Parameter<AutoFill>): this;
|
|
30
|
-
autocomplete(): AutoFill;
|
|
31
|
-
/** {@link HTMLSelectElement.disabled} */
|
|
32
|
-
disabled(disabled: $Parameter<boolean>): this;
|
|
33
|
-
disabled(): boolean;
|
|
34
|
-
/** {@link HTMLSelectElement.length} */
|
|
35
|
-
length(length: $Parameter<number>): this;
|
|
36
|
-
length(): number;
|
|
37
|
-
/** {@link HTMLSelectElement.multiple} */
|
|
38
|
-
multiple(multiple: $Parameter<boolean>): this;
|
|
39
|
-
multiple(): boolean;
|
|
40
|
-
/** {@link HTMLSelectElement.name} */
|
|
41
|
-
name(name: $Parameter<string>): this;
|
|
42
|
-
name(): string;
|
|
43
|
-
/** {@link HTMLSelectElement.required} */
|
|
44
|
-
required(required: $Parameter<boolean>): this;
|
|
45
|
-
required(): boolean;
|
|
46
|
-
/** {@link HTMLSelectElement.selectedIndex} */
|
|
47
|
-
selectedIndex(selectedIndex: $Parameter<number>): this;
|
|
48
|
-
selectedIndex(): number;
|
|
49
|
-
/** {@link HTMLSelectElement.size} */
|
|
50
|
-
size(size: $Parameter<number>): this;
|
|
51
|
-
size(): number;
|
|
52
|
-
/** {@link HTMLSelectElement.value} */
|
|
53
|
-
value(value: $Parameter<string>): this;
|
|
54
|
-
value(): string;
|
|
55
|
-
|
|
56
|
-
/** {@link HTMLSelectElement.add} */
|
|
57
|
-
add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): this;
|
|
58
|
-
/** {@link HTMLSelectElement.checkValidity} */
|
|
59
|
-
checkValidity(): boolean;
|
|
60
|
-
/** {@link HTMLSelectElement.item} */
|
|
61
|
-
item(index: number): HTMLOptionElement | null;
|
|
62
|
-
/** {@link HTMLSelectElement.namedItem} */
|
|
63
|
-
namedItem(name: string): HTMLOptionElement | null;
|
|
64
|
-
/** {@link HTMLSelectElement.reportValidity} */
|
|
65
|
-
reportValidity(): boolean;
|
|
66
|
-
/** {@link HTMLSelectElement.setCustomValidity} */
|
|
67
|
-
setCustomValidity(error: string): this;
|
|
68
|
-
/** {@link HTMLSelectElement.showPicker} */
|
|
69
|
-
showPicker(): this;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
assignProperties(HTMLSelectElement, $Select, 'select');
|
|
73
|
-
|
|
74
|
-
declare module "@amateras/core" {
|
|
75
|
-
export function $(nodeName: 'select'): $Select
|
|
76
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { assignProperties } from "@amateras/core/lib/assignProperties";
|
|
2
|
-
import { $HTMLElement } from "@amateras/core/node/$HTMLElement";
|
|
3
|
-
|
|
4
|
-
export class $TextArea extends $HTMLElement<HTMLTextAreaElement> {
|
|
5
|
-
constructor() {
|
|
6
|
-
super('textarea')
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface $TextArea extends $HTMLElement<HTMLTextAreaElement> {}
|
|
11
|
-
|
|
12
|
-
assignProperties(HTMLTextAreaElement, $TextArea, 'textarea');
|
|
13
|
-
|
|
14
|
-
declare module "@amateras/core" {
|
|
15
|
-
export function $(nodeName: 'textarea'): $TextArea
|
|
16
|
-
}
|