amateras 0.6.0 → 0.7.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/index.ts +1 -0
- package/package.json +31 -30
- package/packages/core/package.json +32 -0
- package/packages/core/src/env.browser.ts +21 -0
- package/packages/core/src/env.node.ts +21 -0
- package/packages/core/src/global.ts +18 -0
- package/{src/core.ts → packages/core/src/index.ts} +42 -30
- package/{src → packages/core/src}/lib/assignProperties.ts +1 -1
- package/packages/core/src/lib/chain.ts +17 -0
- package/packages/core/src/lib/dom.ts +20 -0
- package/packages/core/src/main.ts +4 -0
- package/{src → packages/core/src}/node/$Element.ts +22 -10
- package/{src → packages/core/src}/node/$EventTarget.ts +13 -10
- package/{src → packages/core/src}/node/$HTMLElement.ts +1 -1
- package/{src → packages/core/src}/node/$Node.ts +7 -11
- package/{src → packages/core/src}/node/$Virtual.ts +5 -5
- package/packages/css/package.json +17 -0
- package/{ext/css/src/lib → packages/css/src/ext}/colors/amber.ts +2 -2
- package/{ext/css/src/lib → packages/css/src/ext}/colors/blackwhite.ts +2 -2
- package/{ext/css/src/lib → packages/css/src/ext}/colors/blue.ts +2 -2
- package/{ext/css/src/lib → packages/css/src/ext}/colors/cyan.ts +2 -2
- package/{ext/css/src/lib → packages/css/src/ext}/colors/emerald.ts +2 -2
- package/{ext/css/src/lib → packages/css/src/ext}/colors/fuchsia.ts +2 -2
- package/{ext/css/src/lib → packages/css/src/ext}/colors/gray.ts +2 -2
- package/{ext/css/src/lib → packages/css/src/ext}/colors/green.ts +2 -2
- package/{ext/css/src/lib → packages/css/src/ext}/colors/indigo.ts +2 -2
- package/{ext/css/src/lib → packages/css/src/ext}/colors/lime.ts +2 -2
- package/{ext/css/src/lib → packages/css/src/ext}/colors/neutral.ts +2 -2
- package/{ext/css/src/lib → packages/css/src/ext}/colors/orange.ts +2 -2
- package/{ext/css/src/lib → packages/css/src/ext}/colors/pink.ts +2 -2
- package/{ext/css/src/lib → packages/css/src/ext}/colors/purple.ts +2 -2
- package/{ext/css/src/lib → packages/css/src/ext}/colors/red.ts +2 -2
- package/{ext/css/src/lib → packages/css/src/ext}/colors/rose.ts +2 -2
- package/{ext/css/src/lib → packages/css/src/ext}/colors/sky.ts +2 -2
- package/{ext/css/src/lib → packages/css/src/ext}/colors/slate.ts +2 -2
- package/{ext/css/src/lib → packages/css/src/ext}/colors/stone.ts +2 -2
- package/{ext/css/src/lib → packages/css/src/ext}/colors/teal.ts +2 -2
- package/{ext/css/src/lib → packages/css/src/ext}/colors/violet.ts +2 -2
- package/{ext/css/src/lib → packages/css/src/ext}/colors/yellow.ts +2 -2
- package/{ext/css/src/lib → packages/css/src/ext}/colors/zinc.ts +2 -2
- package/packages/css/src/ext/container.ts +32 -0
- package/packages/css/src/ext/keyframes.ts +54 -0
- package/packages/css/src/ext/media.ts +32 -0
- package/packages/css/src/ext/property.ts +48 -0
- package/packages/css/src/ext/variable.ts +51 -0
- package/{ext → packages}/css/src/index.ts +107 -183
- package/{ext → packages}/css/src/lib/colorAssign.ts +1 -1
- package/packages/css/src/lib/utils.ts +11 -0
- package/{ext → packages}/css/src/structure/$CSSContainerRule.ts +1 -1
- package/{ext → packages}/css/src/structure/$CSSKeyframesRule.ts +0 -1
- package/{ext → packages}/css/src/structure/$CSSMediaRule.ts +1 -1
- package/packages/css/src/structure/$CSSProperty.ts +19 -0
- package/{ext → packages}/css/src/structure/$CSSRule.ts +1 -1
- package/{ext → packages}/css/src/structure/$CSSStyleRule.ts +1 -1
- package/packages/css/src/structure/$CSSVariable.ts +30 -0
- package/packages/dom/package.json +20 -0
- package/packages/dom/src/lib/HTMLElementMap.ts +213 -0
- package/packages/dom/src/lib/assignAttributes.ts +16 -0
- package/packages/dom/src/structure/CSS.ts +7 -0
- package/packages/dom/src/structure/CSSStyleSheet.ts +10 -0
- package/packages/dom/src/structure/DOMTokenList.ts +19 -0
- package/packages/dom/src/structure/Document.ts +36 -0
- package/packages/dom/src/structure/Element.ts +106 -0
- package/packages/dom/src/structure/HTMLElement.ts +34 -0
- package/packages/dom/src/structure/History.ts +11 -0
- package/packages/dom/src/structure/Location.ts +9 -0
- package/packages/dom/src/structure/Node.ts +51 -0
- package/packages/dom/src/structure/NodeList.ts +10 -0
- package/packages/dom/src/structure/Storage.ts +8 -0
- package/packages/dom/src/structure/Text.ts +20 -0
- package/packages/dom/src/structure/Window.ts +14 -0
- package/packages/dom/src/structure/html/HTMLAbbrElement.ts +16 -0
- package/packages/dom/src/structure/html/HTMLAddressElement.ts +16 -0
- package/packages/dom/src/structure/html/HTMLAnchorElement.ts +25 -0
- package/packages/dom/src/structure/html/HTMLAreaElement.ts +26 -0
- package/packages/dom/src/structure/html/HTMLArticleElement.ts +16 -0
- package/packages/dom/src/structure/html/HTMLAsideElement.ts +16 -0
- package/packages/dom/src/structure/html/HTMLAudioElement.ts +16 -0
- package/packages/dom/src/structure/html/HTMLBDIElement.ts +16 -0
- package/packages/dom/src/structure/html/HTMLBDOElement.ts +16 -0
- package/packages/dom/src/structure/html/HTMLBElement.ts +16 -0
- package/packages/dom/src/structure/html/HTMLBRElement.ts +17 -0
- package/packages/dom/src/structure/html/HTMLBaseElement.ts +18 -0
- package/packages/dom/src/structure/html/HTMLBodyElement.ts +22 -0
- package/packages/dom/src/structure/html/HTMLButtonElement.ts +26 -0
- package/packages/dom/src/structure/html/HTMLCanvasElement.ts +18 -0
- package/packages/dom/src/structure/html/HTMLCiteElement.ts +16 -0
- package/packages/dom/src/structure/html/HTMLCodeElement.ts +16 -0
- package/packages/dom/src/structure/html/HTMLDDElement.ts +16 -0
- package/packages/dom/src/structure/html/HTMLDFNElement.ts +16 -0
- package/packages/dom/src/structure/html/HTMLDListElement.ts +17 -0
- package/packages/dom/src/structure/html/HTMLDTElement.ts +16 -0
- package/packages/dom/src/structure/html/HTMLDataElement.ts +17 -0
- package/packages/dom/src/structure/html/HTMLDataListElement.ts +16 -0
- package/packages/dom/src/structure/html/HTMLDetailsElement.ts +17 -0
- package/packages/dom/src/structure/html/HTMLDialogElement.ts +18 -0
- package/packages/dom/src/structure/html/HTMLDivElement.ts +17 -0
- package/packages/dom/src/structure/html/HTMLEMElement.ts +16 -0
- package/packages/dom/src/structure/html/HTMLEmbedElement.ts +20 -0
- package/packages/dom/src/structure/html/HTMLFieldSetElement.ts +19 -0
- package/packages/dom/src/structure/html/HTMLFigCaptionElement.ts +16 -0
- package/packages/dom/src/structure/html/HTMLFigureElement.ts +16 -0
- package/packages/dom/src/structure/html/HTMLFooterElement.ts +16 -0
- package/packages/dom/src/structure/html/HTMLFormElement.ts +24 -0
- package/packages/dom/src/structure/html/HTMLHGroupElement.ts +16 -0
- package/packages/dom/src/structure/html/HTMLHRElement.ts +21 -0
- package/packages/dom/src/structure/html/HTMLHeadElement.ts +16 -0
- package/packages/dom/src/structure/html/HTMLHeaderElement.ts +16 -0
- package/packages/dom/src/structure/html/HTMLHeadingElement.ts +17 -0
- package/packages/dom/src/structure/html/HTMLHtmlElement.ts +18 -0
- package/packages/dom/src/structure/html/HTMLIElement.ts +16 -0
- package/packages/dom/src/structure/html/HTMLIFrameElement.ts +31 -0
- package/packages/dom/src/structure/html/HTMLImageElement.ts +38 -0
- package/packages/dom/src/structure/html/HTMLInputElement.ts +55 -0
- package/packages/dom/src/structure/html/HTMLKBDElement.ts +16 -0
- package/packages/dom/src/structure/html/HTMLLIElement.ts +18 -0
- package/packages/dom/src/structure/html/HTMLLabelElement.ts +18 -0
- package/packages/dom/src/structure/html/HTMLLegendElement.ts +17 -0
- package/packages/dom/src/structure/html/HTMLLinkElement.ts +31 -0
- package/packages/dom/src/structure/html/HTMLMainElement.ts +16 -0
- package/packages/dom/src/structure/html/HTMLMapElement.ts +17 -0
- package/packages/dom/src/structure/html/HTMLMarkElement.ts +16 -0
- package/packages/dom/src/structure/html/HTMLMediaElement.ts +48 -0
- package/packages/dom/src/structure/html/HTMLMenuElement.ts +18 -0
- package/packages/dom/src/structure/html/HTMLMetaElement.ts +22 -0
- package/packages/dom/src/structure/html/HTMLMeterElement.ts +23 -0
- package/packages/dom/src/structure/html/HTMLModElement.ts +18 -0
- package/packages/dom/src/structure/html/HTMLNavElement.ts +16 -0
- package/packages/dom/src/structure/html/HTMLNoscriptElement.ts +16 -0
- package/packages/dom/src/structure/html/HTMLOListElement.ts +20 -0
- package/packages/dom/src/structure/html/HTMLObjectElement.ts +34 -0
- package/packages/dom/src/structure/html/HTMLOptGroupElement.ts +18 -0
- package/packages/dom/src/structure/html/HTMLOptionElement.ts +20 -0
- package/packages/dom/src/structure/html/HTMLOutputElement.ts +20 -0
- package/packages/dom/src/structure/html/HTMLParagraphElement.ts +17 -0
- package/packages/dom/src/structure/html/HTMLPictureElement.ts +16 -0
- package/packages/dom/src/structure/html/HTMLPreElement.ts +17 -0
- package/packages/dom/src/structure/html/HTMLProgressElement.ts +19 -0
- package/packages/dom/src/structure/html/HTMLQuoteElement.ts +17 -0
- package/packages/dom/src/structure/html/HTMLRPElement.ts +16 -0
- package/packages/dom/src/structure/html/HTMLRTElement.ts +16 -0
- package/packages/dom/src/structure/html/HTMLRubyElement.ts +16 -0
- package/packages/dom/src/structure/html/HTMLSElement.ts +16 -0
- package/packages/dom/src/structure/html/HTMLSampElement.ts +16 -0
- package/packages/dom/src/structure/html/HTMLScriptElement.ts +27 -0
- package/packages/dom/src/structure/html/HTMLSectionElement.ts +16 -0
- package/packages/dom/src/structure/html/HTMLSelectElement.ts +27 -0
- package/packages/dom/src/structure/html/HTMLSlotElement.ts +17 -0
- package/packages/dom/src/structure/html/HTMLSmallElement.ts +16 -0
- package/packages/dom/src/structure/html/HTMLSourceElement.ts +21 -0
- package/packages/dom/src/structure/html/HTMLSpanElement.ts +16 -0
- package/packages/dom/src/structure/html/HTMLStrongElement.ts +16 -0
- package/packages/dom/src/structure/html/HTMLStyleElement.ts +18 -0
- package/packages/dom/src/structure/html/HTMLSubElement.ts +16 -0
- package/packages/dom/src/structure/html/HTMLSummaryElement.ts +16 -0
- package/packages/dom/src/structure/html/HTMLSupElement.ts +16 -0
- package/packages/dom/src/structure/html/HTMLTableCaptionElement.ts +17 -0
- package/packages/dom/src/structure/html/HTMLTableCellElement.ts +31 -0
- package/packages/dom/src/structure/html/HTMLTableColElement.ts +23 -0
- package/packages/dom/src/structure/html/HTMLTableElement.ts +26 -0
- package/packages/dom/src/structure/html/HTMLTableRowElement.ts +23 -0
- package/packages/dom/src/structure/html/HTMLTableSectionElement.ts +20 -0
- package/packages/dom/src/structure/html/HTMLTemplateElement.ts +17 -0
- package/packages/dom/src/structure/html/HTMLTextAreaElement.ts +33 -0
- package/packages/dom/src/structure/html/HTMLTimeElement.ts +17 -0
- package/packages/dom/src/structure/html/HTMLTitleElement.ts +17 -0
- package/packages/dom/src/structure/html/HTMLTrackElement.ts +21 -0
- package/packages/dom/src/structure/html/HTMLUElement.ts +16 -0
- package/packages/dom/src/structure/html/HTMLUListElement.ts +18 -0
- package/packages/dom/src/structure/html/HTMLVarElement.ts +16 -0
- package/packages/dom/src/structure/html/HTMLVideoElement.ts +22 -0
- package/packages/dom/src/structure/html/HTMLWBRElement.ts +16 -0
- package/packages/html/package.json +18 -0
- package/{ext/html/html.ts → packages/html/src/index.ts} +1 -1
- package/{ext/html → packages/html/src}/node/$Anchor.ts +3 -3
- package/packages/html/src/node/$Canvas.ts +38 -0
- package/{ext/html → packages/html/src}/node/$Dialog.ts +3 -3
- package/{ext/html → packages/html/src}/node/$Form.ts +3 -3
- package/{ext/html → packages/html/src}/node/$Image.ts +3 -3
- package/{ext/html → packages/html/src}/node/$Input.ts +3 -3
- package/{ext/html → packages/html/src}/node/$Label.ts +3 -3
- package/{ext/html → packages/html/src}/node/$Media.ts +3 -3
- package/{ext/html → packages/html/src}/node/$OptGroup.ts +3 -3
- package/{ext/html → packages/html/src}/node/$Option.ts +3 -3
- package/{ext/html → packages/html/src}/node/$Select.ts +3 -3
- package/{ext/html → packages/html/src}/node/$TextArea.ts +3 -3
- package/packages/i18n/package.json +19 -0
- package/{ext → packages}/i18n/src/index.ts +6 -14
- package/{ext → packages}/i18n/src/structure/I18n.ts +2 -2
- package/{ext → packages}/i18n/src/structure/I18nDictionary.ts +1 -1
- package/{ext → packages}/i18n/src/structure/I18nTranslation.ts +10 -4
- package/packages/idb/package.json +19 -0
- package/{ext → packages}/idb/src/index.ts +2 -2
- package/{ext → packages}/idb/src/lib/$IDBRequest.ts +1 -1
- package/{ext → packages}/idb/src/structure/$IDB.ts +1 -1
- package/{ext → packages}/idb/src/structure/$IDBCursor.ts +1 -1
- package/{ext → packages}/idb/src/structure/$IDBIndex.ts +1 -1
- package/{ext → packages}/idb/src/structure/$IDBStore.ts +1 -1
- package/{ext → packages}/idb/src/structure/$IDBStoreBase.ts +1 -1
- package/{ext → packages}/idb/src/structure/$IDBTransaction.ts +1 -1
- package/{ext → packages}/idb/src/structure/builder/$IDBBuilder.ts +1 -2
- package/{ext → packages}/idb/src/structure/builder/$IDBStoreBuilder.ts +1 -1
- package/packages/markdown/package.json +19 -0
- package/{ext → packages}/markdown/src/lib/util.ts +1 -1
- package/{ext → packages}/markdown/src/structure/MarkdownLexer.ts +2 -2
- package/{ext → packages}/markdown/src/structure/MarkdownParser.ts +2 -1
- package/{ext → packages}/markdown/src/syntax/alert.ts +1 -1
- package/{ext → packages}/markdown/src/syntax/codeblock.ts +1 -1
- package/{ext → packages}/markdown/src/syntax/link.ts +2 -2
- package/{ext → packages}/markdown/src/syntax/list.ts +1 -1
- package/{ext → packages}/markdown/src/syntax/table.ts +1 -1
- package/packages/router/package.json +19 -0
- package/{ext → packages}/router/src/index.ts +4 -5
- package/{ext → packages}/router/src/node/Page.ts +8 -4
- package/{ext → packages}/router/src/node/Router.ts +79 -58
- package/{ext → packages}/router/src/node/RouterAnchor.ts +2 -2
- package/{ext → packages}/router/src/structure/PageBuilder.ts +3 -3
- package/{ext → packages}/router/src/structure/Route.ts +1 -1
- package/packages/signal/package.json +18 -0
- package/packages/signal/src/index.ts +221 -0
- package/{ext → packages}/signal/src/structure/Signal.ts +1 -1
- package/{ext → packages}/ui/lib/VirtualScroll.ts +5 -5
- package/{ext → packages}/ui/node/Accordian.ts +4 -4
- package/packages/ui/node/Carousel.ts +20 -0
- package/{ext → packages}/ui/node/Form.ts +7 -6
- package/packages/ui/node/Modal.ts +45 -0
- package/{ext → packages}/ui/node/Table.ts +1 -1
- package/{ext → packages}/ui/node/Tabs.ts +28 -13
- package/{ext → packages}/ui/node/Toast.ts +2 -2
- package/packages/ui/node/Waterfall.ts +94 -0
- package/packages/ui/package.json +21 -0
- package/packages/utils/package.json +17 -0
- package/{src → packages/utils/src}/global.ts +5 -18
- package/{src/lib/native.ts → packages/utils/src/index.ts} +34 -1
- package/tsconfig.json +1 -1
- package/ext/css/package.json +0 -9
- package/ext/css/src/structure/$CSSVariable.ts +0 -12
- package/ext/html/node/$Canvas.ts +0 -16
- package/ext/i18n/package.json +0 -10
- package/ext/idb/package.json +0 -13
- package/ext/markdown/package.json +0 -15
- package/ext/router/package.json +0 -10
- package/ext/signal/package.json +0 -9
- package/ext/signal/src/index.ts +0 -128
- package/ext/ssr/env.ts +0 -61
- package/ext/ssr/index.ts +0 -49
- package/ext/ssr/package.json +0 -10
- package/ext/ui/node/Waterfall.ts +0 -72
- package/ext/ui/package.json +0 -11
- package/src/index.ts +0 -2
- package/src/lib/chain.ts +0 -13
- package/src/lib/debounce.ts +0 -7
- package/src/lib/env.ts +0 -2
- package/src/lib/randomId.ts +0 -9
- package/src/lib/sleep.ts +0 -3
- package/src/lib/toArray.ts +0 -9
- package/src/lib/trycatch.ts +0 -17
- package/src/lib/uppercase.ts +0 -3
- /package/{src/node.ts → packages/core/src/lib/assignNodeProperties.ts} +0 -0
- /package/{ext → packages}/css/README.md +0 -0
- /package/{ext/css/src/lib → packages/css/src/ext}/colors.ts +0 -0
- /package/{ext → packages}/css/src/structure/$CSSDeclaration.ts +0 -0
- /package/{ext → packages}/i18n/README.md +0 -0
- /package/{ext → packages}/idb/README.md +0 -0
- /package/{ext → packages}/idb/src/core.ts +0 -0
- /package/{ext → packages}/markdown/README.md +0 -0
- /package/{ext → packages}/markdown/src/index.ts +0 -0
- /package/{ext → packages}/markdown/src/lib/type.ts +0 -0
- /package/{ext → packages}/markdown/src/structure/Markdown.ts +0 -0
- /package/{ext → packages}/markdown/src/syntax/blockquote.ts +0 -0
- /package/{ext → packages}/markdown/src/syntax/bold.ts +0 -0
- /package/{ext → packages}/markdown/src/syntax/code.ts +0 -0
- /package/{ext → packages}/markdown/src/syntax/heading.ts +0 -0
- /package/{ext → packages}/markdown/src/syntax/horizontalRule.ts +0 -0
- /package/{ext → packages}/markdown/src/syntax/image.ts +0 -0
- /package/{ext → packages}/markdown/src/syntax/italic.ts +0 -0
- /package/{ext → packages}/markdown/src/syntax/text.ts +0 -0
- /package/{ext → packages}/router/README.md +0 -0
- /package/{ext → packages}/signal/README.md +0 -0
- /package/{ext → packages}/ui/node/Grid.ts +0 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { assignAttributes } from "#lib/assignAttributes";
|
|
2
|
+
import { HTMLElement } from "#structure/HTMLElement";
|
|
3
|
+
import { _Object_assign } from "@amateras/utils";
|
|
4
|
+
|
|
5
|
+
export class HTMLArticleElement extends HTMLElement {
|
|
6
|
+
static defaultAttributes = {
|
|
7
|
+
...HTMLElement.defaultAttributes
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
constructor() {
|
|
11
|
+
super('article')
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
assignAttributes(HTMLArticleElement, HTMLArticleElement.defaultAttributes)
|
|
16
|
+
_Object_assign(globalThis, { HTMLArticleElement })
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { assignAttributes } from "#lib/assignAttributes";
|
|
2
|
+
import { HTMLElement } from "#structure/HTMLElement";
|
|
3
|
+
import { _Object_assign } from "@amateras/utils";
|
|
4
|
+
|
|
5
|
+
export class HTMLAsideElement extends HTMLElement {
|
|
6
|
+
static defaultAttributes = {
|
|
7
|
+
...HTMLElement.defaultAttributes
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
constructor() {
|
|
11
|
+
super('aside')
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
assignAttributes(HTMLAsideElement, HTMLAsideElement.defaultAttributes)
|
|
16
|
+
_Object_assign(globalThis, { HTMLAsideElement })
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { assignAttributes } from "#lib/assignAttributes";
|
|
2
|
+
import { HTMLMediaElement } from "#structure/html/HTMLMediaElement";
|
|
3
|
+
import { _Object_assign } from "@amateras/utils";
|
|
4
|
+
|
|
5
|
+
export class HTMLAudioElement extends HTMLMediaElement {
|
|
6
|
+
static defaultAttributes = {
|
|
7
|
+
...HTMLMediaElement.defaultAttributes
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
constructor() {
|
|
11
|
+
super('audio')
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
assignAttributes(HTMLAudioElement, HTMLAudioElement.defaultAttributes)
|
|
16
|
+
_Object_assign(globalThis, { HTMLAudioElement })
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { assignAttributes } from "#lib/assignAttributes";
|
|
2
|
+
import { HTMLElement } from "#structure/HTMLElement";
|
|
3
|
+
import { _Object_assign } from "@amateras/utils";
|
|
4
|
+
|
|
5
|
+
export class HTMLBDIElement extends HTMLElement {
|
|
6
|
+
static defaultAttributes = {
|
|
7
|
+
...HTMLElement.defaultAttributes
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
constructor() {
|
|
11
|
+
super('bdi')
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
assignAttributes(HTMLBDIElement, HTMLBDIElement.defaultAttributes)
|
|
16
|
+
_Object_assign(globalThis, { HTMLBDIElement })
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { assignAttributes } from "#lib/assignAttributes";
|
|
2
|
+
import { HTMLElement } from "#structure/HTMLElement";
|
|
3
|
+
import { _Object_assign } from "@amateras/utils";
|
|
4
|
+
|
|
5
|
+
export class HTMLBDOElement extends HTMLElement {
|
|
6
|
+
static defaultAttributes = {
|
|
7
|
+
...HTMLElement.defaultAttributes
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
constructor() {
|
|
11
|
+
super('bdo')
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
assignAttributes(HTMLBDOElement, HTMLBDOElement.defaultAttributes)
|
|
16
|
+
_Object_assign(globalThis, { HTMLBDOElement })
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { assignAttributes } from "#lib/assignAttributes";
|
|
2
|
+
import { HTMLElement } from "#structure/HTMLElement";
|
|
3
|
+
import { _Object_assign } from "@amateras/utils";
|
|
4
|
+
|
|
5
|
+
export class HTMLBElement extends HTMLElement {
|
|
6
|
+
static defaultAttributes = {
|
|
7
|
+
...HTMLElement.defaultAttributes
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
constructor() {
|
|
11
|
+
super('b')
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
assignAttributes(HTMLBElement, HTMLBElement.defaultAttributes)
|
|
16
|
+
_Object_assign(globalThis, { HTMLBElement })
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { assignAttributes } from "#lib/assignAttributes";
|
|
2
|
+
import { HTMLElement } from "#structure/HTMLElement";
|
|
3
|
+
import { _Object_assign } from "@amateras/utils";
|
|
4
|
+
|
|
5
|
+
export class HTMLBRElement extends HTMLElement {
|
|
6
|
+
static defaultAttributes = {
|
|
7
|
+
...HTMLElement.defaultAttributes,
|
|
8
|
+
clear: ''
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
constructor() {
|
|
12
|
+
super('br')
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
assignAttributes(HTMLBRElement, HTMLBRElement.defaultAttributes)
|
|
17
|
+
_Object_assign(globalThis, { HTMLBRElement })
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { assignAttributes } from "#lib/assignAttributes";
|
|
2
|
+
import { HTMLElement } from "#structure/HTMLElement";
|
|
3
|
+
import { _Object_assign } from "@amateras/utils";
|
|
4
|
+
|
|
5
|
+
export class HTMLBaseElement extends HTMLElement {
|
|
6
|
+
static defaultAttributes = {
|
|
7
|
+
...HTMLElement.defaultAttributes,
|
|
8
|
+
href: '',
|
|
9
|
+
target: ''
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
constructor() {
|
|
13
|
+
super('base')
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
assignAttributes(HTMLBaseElement, HTMLBaseElement.defaultAttributes)
|
|
18
|
+
_Object_assign(globalThis, { HTMLBaseElement })
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { assignAttributes } from "#lib/assignAttributes";
|
|
2
|
+
import { HTMLElement } from "#structure/HTMLElement";
|
|
3
|
+
import { _Object_assign } from "@amateras/utils";
|
|
4
|
+
|
|
5
|
+
export class HTMLBodyElement extends HTMLElement {
|
|
6
|
+
static defaultAttributes = {
|
|
7
|
+
...HTMLElement.defaultAttributes,
|
|
8
|
+
aLink: '',
|
|
9
|
+
background: '',
|
|
10
|
+
bgColor: '',
|
|
11
|
+
link: '',
|
|
12
|
+
text: '',
|
|
13
|
+
vLink: ''
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
constructor() {
|
|
17
|
+
super('body')
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
assignAttributes(HTMLBodyElement, HTMLBodyElement.defaultAttributes)
|
|
22
|
+
_Object_assign(globalThis, { HTMLBodyElement })
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { assignAttributes } from "#lib/assignAttributes";
|
|
2
|
+
import { HTMLElement } from "#structure/HTMLElement";
|
|
3
|
+
import { _Object_assign } from "@amateras/utils";
|
|
4
|
+
|
|
5
|
+
export class HTMLButtonElement extends HTMLElement {
|
|
6
|
+
static defaultAttributes = {
|
|
7
|
+
...HTMLElement.defaultAttributes,
|
|
8
|
+
autofocus: false,
|
|
9
|
+
disabled: false,
|
|
10
|
+
form: '',
|
|
11
|
+
formAction: '',
|
|
12
|
+
formEncType: '',
|
|
13
|
+
formMethod: '',
|
|
14
|
+
formNoValidate: false,
|
|
15
|
+
name: '',
|
|
16
|
+
type: 'submit',
|
|
17
|
+
value: ''
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
constructor() {
|
|
21
|
+
super('button')
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
assignAttributes(HTMLButtonElement, HTMLButtonElement.defaultAttributes)
|
|
26
|
+
_Object_assign(globalThis, { HTMLButtonElement })
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { assignAttributes } from "#lib/assignAttributes";
|
|
2
|
+
import { HTMLElement } from "#structure/HTMLElement";
|
|
3
|
+
import { _Object_assign } from "@amateras/utils";
|
|
4
|
+
|
|
5
|
+
export class HTMLCanvasElement extends HTMLElement {
|
|
6
|
+
static defaultAttributes = {
|
|
7
|
+
...HTMLElement.defaultAttributes,
|
|
8
|
+
height: 150,
|
|
9
|
+
width: 300
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
constructor() {
|
|
13
|
+
super('canvas')
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
assignAttributes(HTMLCanvasElement, HTMLCanvasElement.defaultAttributes)
|
|
18
|
+
_Object_assign(globalThis, { HTMLCanvasElement })
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { assignAttributes } from "#lib/assignAttributes";
|
|
2
|
+
import { HTMLElement } from "#structure/HTMLElement";
|
|
3
|
+
import { _Object_assign } from "@amateras/utils";
|
|
4
|
+
|
|
5
|
+
export class HTMLCiteElement extends HTMLElement {
|
|
6
|
+
static defaultAttributes = {
|
|
7
|
+
...HTMLElement.defaultAttributes
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
constructor() {
|
|
11
|
+
super('cite')
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
assignAttributes(HTMLCiteElement, HTMLCiteElement.defaultAttributes)
|
|
16
|
+
_Object_assign(globalThis, { HTMLCiteElement })
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { assignAttributes } from "#lib/assignAttributes";
|
|
2
|
+
import { HTMLElement } from "#structure/HTMLElement";
|
|
3
|
+
import { _Object_assign } from "@amateras/utils";
|
|
4
|
+
|
|
5
|
+
export class HTMLCodeElement extends HTMLElement {
|
|
6
|
+
static defaultAttributes = {
|
|
7
|
+
...HTMLElement.defaultAttributes
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
constructor() {
|
|
11
|
+
super('code')
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
assignAttributes(HTMLCodeElement, HTMLCodeElement.defaultAttributes)
|
|
16
|
+
_Object_assign(globalThis, { HTMLCodeElement })
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { assignAttributes } from "#lib/assignAttributes";
|
|
2
|
+
import { HTMLElement } from "#structure/HTMLElement";
|
|
3
|
+
import { _Object_assign } from "@amateras/utils";
|
|
4
|
+
|
|
5
|
+
export class HTMLDDElement extends HTMLElement {
|
|
6
|
+
static defaultAttributes = {
|
|
7
|
+
...HTMLElement.defaultAttributes
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
constructor() {
|
|
11
|
+
super('dd')
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
assignAttributes(HTMLDDElement, HTMLDDElement.defaultAttributes)
|
|
16
|
+
_Object_assign(globalThis, { HTMLDDElement })
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { assignAttributes } from "#lib/assignAttributes";
|
|
2
|
+
import { HTMLElement } from "#structure/HTMLElement";
|
|
3
|
+
import { _Object_assign } from "@amateras/utils";
|
|
4
|
+
|
|
5
|
+
export class HTMLDFNElement extends HTMLElement {
|
|
6
|
+
static defaultAttributes = {
|
|
7
|
+
...HTMLElement.defaultAttributes
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
constructor() {
|
|
11
|
+
super('dfn')
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
assignAttributes(HTMLDFNElement, HTMLDFNElement.defaultAttributes)
|
|
16
|
+
_Object_assign(globalThis, { HTMLDFNElement })
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { assignAttributes } from "#lib/assignAttributes";
|
|
2
|
+
import { HTMLElement } from "#structure/HTMLElement";
|
|
3
|
+
import { _Object_assign } from "@amateras/utils";
|
|
4
|
+
|
|
5
|
+
export class HTMLDListElement extends HTMLElement {
|
|
6
|
+
static defaultAttributes = {
|
|
7
|
+
...HTMLElement.defaultAttributes,
|
|
8
|
+
compact: false
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
constructor() {
|
|
12
|
+
super('dl')
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
assignAttributes(HTMLDListElement, HTMLDListElement.defaultAttributes)
|
|
17
|
+
_Object_assign(globalThis, { HTMLDListElement })
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { assignAttributes } from "#lib/assignAttributes";
|
|
2
|
+
import { HTMLElement } from "#structure/HTMLElement";
|
|
3
|
+
import { _Object_assign } from "@amateras/utils";
|
|
4
|
+
|
|
5
|
+
export class HTMLDTElement extends HTMLElement {
|
|
6
|
+
static defaultAttributes = {
|
|
7
|
+
...HTMLElement.defaultAttributes
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
constructor() {
|
|
11
|
+
super('dt')
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
assignAttributes(HTMLDTElement, HTMLDTElement.defaultAttributes)
|
|
16
|
+
_Object_assign(globalThis, { HTMLDTElement })
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { assignAttributes } from "#lib/assignAttributes";
|
|
2
|
+
import { HTMLElement } from "#structure/HTMLElement";
|
|
3
|
+
import { _Object_assign } from "@amateras/utils";
|
|
4
|
+
|
|
5
|
+
export class HTMLDataElement extends HTMLElement {
|
|
6
|
+
static defaultAttributes = {
|
|
7
|
+
...HTMLElement.defaultAttributes,
|
|
8
|
+
value: ''
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
constructor() {
|
|
12
|
+
super('data')
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
assignAttributes(HTMLDataElement, HTMLDataElement.defaultAttributes)
|
|
17
|
+
_Object_assign(globalThis, { HTMLDataElement })
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { assignAttributes } from "#lib/assignAttributes";
|
|
2
|
+
import { HTMLElement } from "#structure/HTMLElement";
|
|
3
|
+
import { _Object_assign } from "@amateras/utils";
|
|
4
|
+
|
|
5
|
+
export class HTMLDataListElement extends HTMLElement {
|
|
6
|
+
static defaultAttributes = {
|
|
7
|
+
...HTMLElement.defaultAttributes
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
constructor() {
|
|
11
|
+
super('datalist')
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
assignAttributes(HTMLDataListElement, HTMLDataListElement.defaultAttributes)
|
|
16
|
+
_Object_assign(globalThis, { HTMLDataListElement })
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { assignAttributes } from "#lib/assignAttributes";
|
|
2
|
+
import { HTMLElement } from "#structure/HTMLElement";
|
|
3
|
+
import { _Object_assign } from "@amateras/utils";
|
|
4
|
+
|
|
5
|
+
export class HTMLDetailsElement extends HTMLElement {
|
|
6
|
+
static defaultAttributes = {
|
|
7
|
+
...HTMLElement.defaultAttributes,
|
|
8
|
+
open: false
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
constructor() {
|
|
12
|
+
super('details')
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
assignAttributes(HTMLDetailsElement, HTMLDetailsElement.defaultAttributes)
|
|
17
|
+
_Object_assign(globalThis, { HTMLDetailsElement })
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { assignAttributes } from "#lib/assignAttributes";
|
|
2
|
+
import { HTMLElement } from "#structure/HTMLElement";
|
|
3
|
+
import { _Object_assign } from "@amateras/utils";
|
|
4
|
+
|
|
5
|
+
export class HTMLDialogElement extends HTMLElement {
|
|
6
|
+
static defaultAttributes = {
|
|
7
|
+
...HTMLElement.defaultAttributes,
|
|
8
|
+
open: false,
|
|
9
|
+
returnValue: ''
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
constructor() {
|
|
13
|
+
super('dialog')
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
assignAttributes(HTMLDialogElement, HTMLDialogElement.defaultAttributes)
|
|
18
|
+
_Object_assign(globalThis, { HTMLDialogElement })
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { assignAttributes } from "#lib/assignAttributes";
|
|
2
|
+
import { HTMLElement } from "#structure/HTMLElement";
|
|
3
|
+
import { _Object_assign } from "@amateras/utils";
|
|
4
|
+
|
|
5
|
+
export class HTMLDivElement extends HTMLElement {
|
|
6
|
+
static defaultAttributes = {
|
|
7
|
+
...HTMLElement.defaultAttributes,
|
|
8
|
+
align: ''
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
constructor() {
|
|
12
|
+
super('div')
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
assignAttributes(HTMLDivElement, HTMLDivElement.defaultAttributes)
|
|
17
|
+
_Object_assign(globalThis, { HTMLDivElement })
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { assignAttributes } from "#lib/assignAttributes";
|
|
2
|
+
import { HTMLElement } from "#structure/HTMLElement";
|
|
3
|
+
import { _Object_assign } from "@amateras/utils";
|
|
4
|
+
|
|
5
|
+
export class HTMLEMElement extends HTMLElement {
|
|
6
|
+
static defaultAttributes = {
|
|
7
|
+
...HTMLElement.defaultAttributes
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
constructor() {
|
|
11
|
+
super('em')
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
assignAttributes(HTMLEMElement, HTMLEMElement.defaultAttributes)
|
|
16
|
+
_Object_assign(globalThis, { HTMLEMElement })
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { assignAttributes } from "#lib/assignAttributes";
|
|
2
|
+
import { HTMLElement } from "#structure/HTMLElement";
|
|
3
|
+
import { _Object_assign } from "@amateras/utils";
|
|
4
|
+
|
|
5
|
+
export class HTMLEmbedElement extends HTMLElement {
|
|
6
|
+
static defaultAttributes = {
|
|
7
|
+
...HTMLElement.defaultAttributes,
|
|
8
|
+
height: '',
|
|
9
|
+
src: '',
|
|
10
|
+
type: '',
|
|
11
|
+
width: ''
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
constructor() {
|
|
15
|
+
super('embed')
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
assignAttributes(HTMLEmbedElement, HTMLEmbedElement.defaultAttributes)
|
|
20
|
+
_Object_assign(globalThis, { HTMLEmbedElement })
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { assignAttributes } from "#lib/assignAttributes";
|
|
2
|
+
import { HTMLElement } from "#structure/HTMLElement";
|
|
3
|
+
import { _Object_assign } from "@amateras/utils";
|
|
4
|
+
|
|
5
|
+
export class HTMLFieldSetElement extends HTMLElement {
|
|
6
|
+
static defaultAttributes = {
|
|
7
|
+
...HTMLElement.defaultAttributes,
|
|
8
|
+
disabled: false,
|
|
9
|
+
form: '',
|
|
10
|
+
name: ''
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
constructor() {
|
|
14
|
+
super('fieldset')
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
assignAttributes(HTMLFieldSetElement, HTMLFieldSetElement.defaultAttributes)
|
|
19
|
+
_Object_assign(globalThis, { HTMLFieldSetElement })
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { assignAttributes } from "#lib/assignAttributes";
|
|
2
|
+
import { HTMLElement } from "#structure/HTMLElement";
|
|
3
|
+
import { _Object_assign } from "@amateras/utils";
|
|
4
|
+
|
|
5
|
+
export class HTMLFigCaptionElement extends HTMLElement {
|
|
6
|
+
static defaultAttributes = {
|
|
7
|
+
...HTMLElement.defaultAttributes
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
constructor() {
|
|
11
|
+
super('figcaption')
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
assignAttributes(HTMLFigCaptionElement, HTMLFigCaptionElement.defaultAttributes)
|
|
16
|
+
_Object_assign(globalThis, { HTMLFigCaptionElement })
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { assignAttributes } from "#lib/assignAttributes";
|
|
2
|
+
import { HTMLElement } from "#structure/HTMLElement";
|
|
3
|
+
import { _Object_assign } from "@amateras/utils";
|
|
4
|
+
|
|
5
|
+
export class HTMLFigureElement extends HTMLElement {
|
|
6
|
+
static defaultAttributes = {
|
|
7
|
+
...HTMLElement.defaultAttributes
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
constructor() {
|
|
11
|
+
super('figure')
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
assignAttributes(HTMLFigureElement, HTMLFigureElement.defaultAttributes)
|
|
16
|
+
_Object_assign(globalThis, { HTMLFigureElement })
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { assignAttributes } from "#lib/assignAttributes";
|
|
2
|
+
import { HTMLElement } from "#structure/HTMLElement";
|
|
3
|
+
import { _Object_assign } from "@amateras/utils";
|
|
4
|
+
|
|
5
|
+
export class HTMLFooterElement extends HTMLElement {
|
|
6
|
+
static defaultAttributes = {
|
|
7
|
+
...HTMLElement.defaultAttributes
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
constructor() {
|
|
11
|
+
super('footer')
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
assignAttributes(HTMLFooterElement, HTMLFooterElement.defaultAttributes)
|
|
16
|
+
_Object_assign(globalThis, { HTMLFooterElement })
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { assignAttributes } from "#lib/assignAttributes";
|
|
2
|
+
import { HTMLElement } from "#structure/HTMLElement";
|
|
3
|
+
import { _Object_assign } from "@amateras/utils";
|
|
4
|
+
|
|
5
|
+
export class HTMLFormElement extends HTMLElement {
|
|
6
|
+
static defaultAttributes = {
|
|
7
|
+
...HTMLElement.defaultAttributes,
|
|
8
|
+
acceptCharset: '',
|
|
9
|
+
action: '',
|
|
10
|
+
autocomplete: 'on',
|
|
11
|
+
encType: 'application/x-www-form-urlencoded',
|
|
12
|
+
method: 'get',
|
|
13
|
+
name: '',
|
|
14
|
+
noValidate: false,
|
|
15
|
+
target: ''
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
constructor() {
|
|
19
|
+
super('form')
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
assignAttributes(HTMLFormElement, HTMLFormElement.defaultAttributes)
|
|
24
|
+
_Object_assign(globalThis, { HTMLFormElement })
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { assignAttributes } from "#lib/assignAttributes";
|
|
2
|
+
import { HTMLElement } from "#structure/HTMLElement";
|
|
3
|
+
import { _Object_assign } from "@amateras/utils";
|
|
4
|
+
|
|
5
|
+
export class HTMLHGroupElement extends HTMLElement {
|
|
6
|
+
static defaultAttributes = {
|
|
7
|
+
...HTMLElement.defaultAttributes
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
constructor() {
|
|
11
|
+
super('hgroup')
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
assignAttributes(HTMLHGroupElement, HTMLHGroupElement.defaultAttributes)
|
|
16
|
+
_Object_assign(globalThis, { HTMLHGroupElement })
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { assignAttributes } from "#lib/assignAttributes";
|
|
2
|
+
import { HTMLElement } from "#structure/HTMLElement";
|
|
3
|
+
import { _Object_assign } from "@amateras/utils";
|
|
4
|
+
|
|
5
|
+
export class HTMLHRElement extends HTMLElement {
|
|
6
|
+
static defaultAttributes = {
|
|
7
|
+
...HTMLElement.defaultAttributes,
|
|
8
|
+
align: '',
|
|
9
|
+
color: '',
|
|
10
|
+
noShade: false,
|
|
11
|
+
size: '',
|
|
12
|
+
width: ''
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
constructor() {
|
|
16
|
+
super('hr')
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
assignAttributes(HTMLHRElement, HTMLHRElement.defaultAttributes)
|
|
21
|
+
_Object_assign(globalThis, { HTMLHRElement })
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { assignAttributes } from "#lib/assignAttributes";
|
|
2
|
+
import { HTMLElement } from "#structure/HTMLElement";
|
|
3
|
+
import { _Object_assign } from "@amateras/utils";
|
|
4
|
+
|
|
5
|
+
export class HTMLHeadElement extends HTMLElement {
|
|
6
|
+
static defaultAttributes = {
|
|
7
|
+
...HTMLElement.defaultAttributes
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
constructor() {
|
|
11
|
+
super('head')
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
assignAttributes(HTMLHeadElement, HTMLHeadElement.defaultAttributes)
|
|
16
|
+
_Object_assign(globalThis, { HTMLHeadElement })
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { assignAttributes } from "#lib/assignAttributes";
|
|
2
|
+
import { HTMLElement } from "#structure/HTMLElement";
|
|
3
|
+
import { _Object_assign } from "@amateras/utils";
|
|
4
|
+
|
|
5
|
+
export class HTMLHeaderElement extends HTMLElement {
|
|
6
|
+
static defaultAttributes = {
|
|
7
|
+
...HTMLElement.defaultAttributes
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
constructor() {
|
|
11
|
+
super('header')
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
assignAttributes(HTMLHeaderElement, HTMLHeaderElement.defaultAttributes)
|
|
16
|
+
_Object_assign(globalThis, { HTMLHeaderElement })
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { assignAttributes } from "#lib/assignAttributes";
|
|
2
|
+
import { HTMLElement } from "#structure/HTMLElement";
|
|
3
|
+
import { _Object_assign } from "@amateras/utils";
|
|
4
|
+
|
|
5
|
+
export class HTMLHeadingElement extends HTMLElement {
|
|
6
|
+
static defaultAttributes = {
|
|
7
|
+
...HTMLElement.defaultAttributes,
|
|
8
|
+
align: ''
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
constructor(tag: string = 'h1') {
|
|
12
|
+
super(tag)
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
assignAttributes(HTMLHeadingElement, HTMLHeadingElement.defaultAttributes)
|
|
17
|
+
_Object_assign(globalThis, { HTMLHeadingElement })
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { assignAttributes } from "#lib/assignAttributes";
|
|
2
|
+
import { HTMLElement } from "#structure/HTMLElement";
|
|
3
|
+
import { _Object_assign } from "@amateras/utils";
|
|
4
|
+
|
|
5
|
+
export class HTMLHtmlElement extends HTMLElement {
|
|
6
|
+
static defaultAttributes = {
|
|
7
|
+
...HTMLElement.defaultAttributes,
|
|
8
|
+
manifest: '',
|
|
9
|
+
version: ''
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
constructor() {
|
|
13
|
+
super('html')
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
assignAttributes(HTMLHtmlElement, HTMLHtmlElement.defaultAttributes)
|
|
18
|
+
_Object_assign(globalThis, { HTMLHtmlElement })
|