amateras 0.5.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (290) hide show
  1. package/README.md +23 -26
  2. package/index.ts +1 -0
  3. package/package.json +32 -27
  4. package/packages/core/package.json +32 -0
  5. package/packages/core/src/env.browser.ts +21 -0
  6. package/packages/core/src/env.node.ts +21 -0
  7. package/packages/core/src/global.ts +18 -0
  8. package/packages/core/src/index.ts +96 -0
  9. package/packages/core/src/lib/assignNodeProperties.ts +11 -0
  10. package/packages/core/src/lib/assignProperties.ts +57 -0
  11. package/packages/core/src/lib/chain.ts +17 -0
  12. package/packages/core/src/lib/dom.ts +20 -0
  13. package/packages/core/src/main.ts +4 -0
  14. package/{src → packages/core/src}/node/$Element.ts +25 -47
  15. package/packages/core/src/node/$EventTarget.ts +48 -0
  16. package/{src → packages/core/src}/node/$HTMLElement.ts +1 -1
  17. package/{src → packages/core/src}/node/$Node.ts +64 -73
  18. package/packages/core/src/node/$Virtual.ts +65 -0
  19. package/packages/css/package.json +17 -0
  20. package/{ext/css/src/lib → packages/css/src/ext}/colors/amber.ts +2 -2
  21. package/{ext/css/src/lib → packages/css/src/ext}/colors/blackwhite.ts +2 -2
  22. package/{ext/css/src/lib → packages/css/src/ext}/colors/blue.ts +2 -2
  23. package/{ext/css/src/lib → packages/css/src/ext}/colors/cyan.ts +2 -2
  24. package/{ext/css/src/lib → packages/css/src/ext}/colors/emerald.ts +2 -2
  25. package/{ext/css/src/lib → packages/css/src/ext}/colors/fuchsia.ts +2 -2
  26. package/{ext/css/src/lib → packages/css/src/ext}/colors/gray.ts +2 -2
  27. package/{ext/css/src/lib → packages/css/src/ext}/colors/green.ts +2 -2
  28. package/{ext/css/src/lib → packages/css/src/ext}/colors/indigo.ts +2 -2
  29. package/{ext/css/src/lib → packages/css/src/ext}/colors/lime.ts +2 -2
  30. package/{ext/css/src/lib → packages/css/src/ext}/colors/neutral.ts +2 -2
  31. package/{ext/css/src/lib → packages/css/src/ext}/colors/orange.ts +2 -2
  32. package/{ext/css/src/lib → packages/css/src/ext}/colors/pink.ts +2 -2
  33. package/{ext/css/src/lib → packages/css/src/ext}/colors/purple.ts +2 -2
  34. package/{ext/css/src/lib → packages/css/src/ext}/colors/red.ts +2 -2
  35. package/{ext/css/src/lib → packages/css/src/ext}/colors/rose.ts +2 -2
  36. package/{ext/css/src/lib → packages/css/src/ext}/colors/sky.ts +2 -2
  37. package/{ext/css/src/lib → packages/css/src/ext}/colors/slate.ts +2 -2
  38. package/{ext/css/src/lib → packages/css/src/ext}/colors/stone.ts +2 -2
  39. package/{ext/css/src/lib → packages/css/src/ext}/colors/teal.ts +2 -2
  40. package/{ext/css/src/lib → packages/css/src/ext}/colors/violet.ts +2 -2
  41. package/{ext/css/src/lib → packages/css/src/ext}/colors/yellow.ts +2 -2
  42. package/{ext/css/src/lib → packages/css/src/ext}/colors/zinc.ts +2 -2
  43. package/packages/css/src/ext/container.ts +32 -0
  44. package/packages/css/src/ext/keyframes.ts +54 -0
  45. package/packages/css/src/ext/media.ts +32 -0
  46. package/packages/css/src/ext/property.ts +48 -0
  47. package/packages/css/src/ext/variable.ts +51 -0
  48. package/{ext → packages}/css/src/index.ts +107 -183
  49. package/{ext → packages}/css/src/lib/colorAssign.ts +1 -1
  50. package/packages/css/src/lib/utils.ts +11 -0
  51. package/{ext → packages}/css/src/structure/$CSSContainerRule.ts +1 -1
  52. package/{ext → packages}/css/src/structure/$CSSKeyframesRule.ts +0 -1
  53. package/{ext → packages}/css/src/structure/$CSSMediaRule.ts +1 -1
  54. package/packages/css/src/structure/$CSSProperty.ts +19 -0
  55. package/{ext → packages}/css/src/structure/$CSSRule.ts +1 -1
  56. package/{ext → packages}/css/src/structure/$CSSStyleRule.ts +1 -1
  57. package/packages/css/src/structure/$CSSVariable.ts +30 -0
  58. package/packages/dom/package.json +20 -0
  59. package/packages/dom/src/lib/HTMLElementMap.ts +213 -0
  60. package/packages/dom/src/lib/assignAttributes.ts +16 -0
  61. package/packages/dom/src/structure/CSS.ts +7 -0
  62. package/packages/dom/src/structure/CSSStyleSheet.ts +10 -0
  63. package/packages/dom/src/structure/DOMTokenList.ts +19 -0
  64. package/packages/dom/src/structure/Document.ts +36 -0
  65. package/packages/dom/src/structure/Element.ts +106 -0
  66. package/packages/dom/src/structure/HTMLElement.ts +34 -0
  67. package/packages/dom/src/structure/History.ts +11 -0
  68. package/packages/dom/src/structure/Location.ts +9 -0
  69. package/packages/dom/src/structure/Node.ts +51 -0
  70. package/packages/dom/src/structure/NodeList.ts +10 -0
  71. package/packages/dom/src/structure/Storage.ts +8 -0
  72. package/packages/dom/src/structure/Text.ts +20 -0
  73. package/packages/dom/src/structure/Window.ts +14 -0
  74. package/packages/dom/src/structure/html/HTMLAbbrElement.ts +16 -0
  75. package/packages/dom/src/structure/html/HTMLAddressElement.ts +16 -0
  76. package/packages/dom/src/structure/html/HTMLAnchorElement.ts +25 -0
  77. package/packages/dom/src/structure/html/HTMLAreaElement.ts +26 -0
  78. package/packages/dom/src/structure/html/HTMLArticleElement.ts +16 -0
  79. package/packages/dom/src/structure/html/HTMLAsideElement.ts +16 -0
  80. package/packages/dom/src/structure/html/HTMLAudioElement.ts +16 -0
  81. package/packages/dom/src/structure/html/HTMLBDIElement.ts +16 -0
  82. package/packages/dom/src/structure/html/HTMLBDOElement.ts +16 -0
  83. package/packages/dom/src/structure/html/HTMLBElement.ts +16 -0
  84. package/packages/dom/src/structure/html/HTMLBRElement.ts +17 -0
  85. package/packages/dom/src/structure/html/HTMLBaseElement.ts +18 -0
  86. package/packages/dom/src/structure/html/HTMLBodyElement.ts +22 -0
  87. package/packages/dom/src/structure/html/HTMLButtonElement.ts +26 -0
  88. package/packages/dom/src/structure/html/HTMLCanvasElement.ts +18 -0
  89. package/packages/dom/src/structure/html/HTMLCiteElement.ts +16 -0
  90. package/packages/dom/src/structure/html/HTMLCodeElement.ts +16 -0
  91. package/packages/dom/src/structure/html/HTMLDDElement.ts +16 -0
  92. package/packages/dom/src/structure/html/HTMLDFNElement.ts +16 -0
  93. package/packages/dom/src/structure/html/HTMLDListElement.ts +17 -0
  94. package/packages/dom/src/structure/html/HTMLDTElement.ts +16 -0
  95. package/packages/dom/src/structure/html/HTMLDataElement.ts +17 -0
  96. package/packages/dom/src/structure/html/HTMLDataListElement.ts +16 -0
  97. package/packages/dom/src/structure/html/HTMLDetailsElement.ts +17 -0
  98. package/packages/dom/src/structure/html/HTMLDialogElement.ts +18 -0
  99. package/packages/dom/src/structure/html/HTMLDivElement.ts +17 -0
  100. package/packages/dom/src/structure/html/HTMLEMElement.ts +16 -0
  101. package/packages/dom/src/structure/html/HTMLEmbedElement.ts +20 -0
  102. package/packages/dom/src/structure/html/HTMLFieldSetElement.ts +19 -0
  103. package/packages/dom/src/structure/html/HTMLFigCaptionElement.ts +16 -0
  104. package/packages/dom/src/structure/html/HTMLFigureElement.ts +16 -0
  105. package/packages/dom/src/structure/html/HTMLFooterElement.ts +16 -0
  106. package/packages/dom/src/structure/html/HTMLFormElement.ts +24 -0
  107. package/packages/dom/src/structure/html/HTMLHGroupElement.ts +16 -0
  108. package/packages/dom/src/structure/html/HTMLHRElement.ts +21 -0
  109. package/packages/dom/src/structure/html/HTMLHeadElement.ts +16 -0
  110. package/packages/dom/src/structure/html/HTMLHeaderElement.ts +16 -0
  111. package/packages/dom/src/structure/html/HTMLHeadingElement.ts +17 -0
  112. package/packages/dom/src/structure/html/HTMLHtmlElement.ts +18 -0
  113. package/packages/dom/src/structure/html/HTMLIElement.ts +16 -0
  114. package/packages/dom/src/structure/html/HTMLIFrameElement.ts +31 -0
  115. package/packages/dom/src/structure/html/HTMLImageElement.ts +38 -0
  116. package/packages/dom/src/structure/html/HTMLInputElement.ts +55 -0
  117. package/packages/dom/src/structure/html/HTMLKBDElement.ts +16 -0
  118. package/packages/dom/src/structure/html/HTMLLIElement.ts +18 -0
  119. package/packages/dom/src/structure/html/HTMLLabelElement.ts +18 -0
  120. package/packages/dom/src/structure/html/HTMLLegendElement.ts +17 -0
  121. package/packages/dom/src/structure/html/HTMLLinkElement.ts +31 -0
  122. package/packages/dom/src/structure/html/HTMLMainElement.ts +16 -0
  123. package/packages/dom/src/structure/html/HTMLMapElement.ts +17 -0
  124. package/packages/dom/src/structure/html/HTMLMarkElement.ts +16 -0
  125. package/packages/dom/src/structure/html/HTMLMediaElement.ts +48 -0
  126. package/packages/dom/src/structure/html/HTMLMenuElement.ts +18 -0
  127. package/packages/dom/src/structure/html/HTMLMetaElement.ts +22 -0
  128. package/packages/dom/src/structure/html/HTMLMeterElement.ts +23 -0
  129. package/packages/dom/src/structure/html/HTMLModElement.ts +18 -0
  130. package/packages/dom/src/structure/html/HTMLNavElement.ts +16 -0
  131. package/packages/dom/src/structure/html/HTMLNoscriptElement.ts +16 -0
  132. package/packages/dom/src/structure/html/HTMLOListElement.ts +20 -0
  133. package/packages/dom/src/structure/html/HTMLObjectElement.ts +34 -0
  134. package/packages/dom/src/structure/html/HTMLOptGroupElement.ts +18 -0
  135. package/packages/dom/src/structure/html/HTMLOptionElement.ts +20 -0
  136. package/packages/dom/src/structure/html/HTMLOutputElement.ts +20 -0
  137. package/packages/dom/src/structure/html/HTMLParagraphElement.ts +17 -0
  138. package/packages/dom/src/structure/html/HTMLPictureElement.ts +16 -0
  139. package/packages/dom/src/structure/html/HTMLPreElement.ts +17 -0
  140. package/packages/dom/src/structure/html/HTMLProgressElement.ts +19 -0
  141. package/packages/dom/src/structure/html/HTMLQuoteElement.ts +17 -0
  142. package/packages/dom/src/structure/html/HTMLRPElement.ts +16 -0
  143. package/packages/dom/src/structure/html/HTMLRTElement.ts +16 -0
  144. package/packages/dom/src/structure/html/HTMLRubyElement.ts +16 -0
  145. package/packages/dom/src/structure/html/HTMLSElement.ts +16 -0
  146. package/packages/dom/src/structure/html/HTMLSampElement.ts +16 -0
  147. package/packages/dom/src/structure/html/HTMLScriptElement.ts +27 -0
  148. package/packages/dom/src/structure/html/HTMLSectionElement.ts +16 -0
  149. package/packages/dom/src/structure/html/HTMLSelectElement.ts +27 -0
  150. package/packages/dom/src/structure/html/HTMLSlotElement.ts +17 -0
  151. package/packages/dom/src/structure/html/HTMLSmallElement.ts +16 -0
  152. package/packages/dom/src/structure/html/HTMLSourceElement.ts +21 -0
  153. package/packages/dom/src/structure/html/HTMLSpanElement.ts +16 -0
  154. package/packages/dom/src/structure/html/HTMLStrongElement.ts +16 -0
  155. package/packages/dom/src/structure/html/HTMLStyleElement.ts +18 -0
  156. package/packages/dom/src/structure/html/HTMLSubElement.ts +16 -0
  157. package/packages/dom/src/structure/html/HTMLSummaryElement.ts +16 -0
  158. package/packages/dom/src/structure/html/HTMLSupElement.ts +16 -0
  159. package/packages/dom/src/structure/html/HTMLTableCaptionElement.ts +17 -0
  160. package/packages/dom/src/structure/html/HTMLTableCellElement.ts +31 -0
  161. package/packages/dom/src/structure/html/HTMLTableColElement.ts +23 -0
  162. package/packages/dom/src/structure/html/HTMLTableElement.ts +26 -0
  163. package/packages/dom/src/structure/html/HTMLTableRowElement.ts +23 -0
  164. package/packages/dom/src/structure/html/HTMLTableSectionElement.ts +20 -0
  165. package/packages/dom/src/structure/html/HTMLTemplateElement.ts +17 -0
  166. package/packages/dom/src/structure/html/HTMLTextAreaElement.ts +33 -0
  167. package/packages/dom/src/structure/html/HTMLTimeElement.ts +17 -0
  168. package/packages/dom/src/structure/html/HTMLTitleElement.ts +17 -0
  169. package/packages/dom/src/structure/html/HTMLTrackElement.ts +21 -0
  170. package/packages/dom/src/structure/html/HTMLUElement.ts +16 -0
  171. package/packages/dom/src/structure/html/HTMLUListElement.ts +18 -0
  172. package/packages/dom/src/structure/html/HTMLVarElement.ts +16 -0
  173. package/packages/dom/src/structure/html/HTMLVideoElement.ts +22 -0
  174. package/packages/dom/src/structure/html/HTMLWBRElement.ts +16 -0
  175. package/packages/html/package.json +18 -0
  176. package/{ext/html/html.ts → packages/html/src/index.ts} +1 -1
  177. package/{ext/html → packages/html/src}/node/$Anchor.ts +4 -4
  178. package/packages/html/src/node/$Canvas.ts +38 -0
  179. package/{ext/html → packages/html/src}/node/$Dialog.ts +4 -4
  180. package/{ext/html → packages/html/src}/node/$Form.ts +4 -4
  181. package/{ext/html → packages/html/src}/node/$Image.ts +4 -4
  182. package/{ext/html → packages/html/src}/node/$Input.ts +4 -4
  183. package/{ext/html → packages/html/src}/node/$Label.ts +4 -4
  184. package/{ext/html → packages/html/src}/node/$Media.ts +4 -4
  185. package/{ext/html → packages/html/src}/node/$OptGroup.ts +4 -4
  186. package/{ext/html → packages/html/src}/node/$Option.ts +4 -4
  187. package/{ext/html → packages/html/src}/node/$Select.ts +4 -4
  188. package/{ext/html → packages/html/src}/node/$TextArea.ts +4 -4
  189. package/{ext → packages}/i18n/README.md +20 -0
  190. package/packages/i18n/package.json +19 -0
  191. package/packages/i18n/src/index.ts +140 -0
  192. package/{ext → packages}/i18n/src/structure/I18n.ts +12 -8
  193. package/{ext → packages}/i18n/src/structure/I18nDictionary.ts +1 -1
  194. package/packages/i18n/src/structure/I18nTranslation.ts +41 -0
  195. package/packages/idb/package.json +19 -0
  196. package/{ext → packages}/idb/src/index.ts +2 -2
  197. package/{ext → packages}/idb/src/lib/$IDBRequest.ts +1 -1
  198. package/{ext → packages}/idb/src/structure/$IDB.ts +1 -1
  199. package/{ext → packages}/idb/src/structure/$IDBCursor.ts +1 -1
  200. package/{ext → packages}/idb/src/structure/$IDBIndex.ts +1 -1
  201. package/{ext → packages}/idb/src/structure/$IDBStore.ts +1 -1
  202. package/{ext → packages}/idb/src/structure/$IDBStoreBase.ts +1 -1
  203. package/{ext → packages}/idb/src/structure/$IDBTransaction.ts +1 -1
  204. package/{ext → packages}/idb/src/structure/builder/$IDBBuilder.ts +9 -10
  205. package/{ext → packages}/idb/src/structure/builder/$IDBStoreBuilder.ts +1 -1
  206. package/packages/markdown/README.md +53 -0
  207. package/packages/markdown/package.json +19 -0
  208. package/packages/markdown/src/index.ts +3 -0
  209. package/packages/markdown/src/lib/type.ts +26 -0
  210. package/packages/markdown/src/lib/util.ts +21 -0
  211. package/packages/markdown/src/structure/Markdown.ts +54 -0
  212. package/packages/markdown/src/structure/MarkdownLexer.ts +111 -0
  213. package/packages/markdown/src/structure/MarkdownParser.ts +34 -0
  214. package/packages/markdown/src/syntax/alert.ts +46 -0
  215. package/packages/markdown/src/syntax/blockquote.ts +35 -0
  216. package/packages/markdown/src/syntax/bold.ts +11 -0
  217. package/packages/markdown/src/syntax/code.ts +11 -0
  218. package/packages/markdown/src/syntax/codeblock.ts +44 -0
  219. package/packages/markdown/src/syntax/heading.ts +14 -0
  220. package/packages/markdown/src/syntax/horizontalRule.ts +11 -0
  221. package/packages/markdown/src/syntax/image.ts +23 -0
  222. package/packages/markdown/src/syntax/italic.ts +11 -0
  223. package/packages/markdown/src/syntax/link.ts +46 -0
  224. package/packages/markdown/src/syntax/list.ts +121 -0
  225. package/packages/markdown/src/syntax/table.ts +67 -0
  226. package/packages/markdown/src/syntax/text.ts +19 -0
  227. package/packages/router/README.md +175 -0
  228. package/packages/router/package.json +19 -0
  229. package/packages/router/src/index.ts +68 -0
  230. package/packages/router/src/node/Page.ts +38 -0
  231. package/packages/router/src/node/Router.ts +212 -0
  232. package/{ext/router → packages/router/src}/node/RouterAnchor.ts +13 -2
  233. package/packages/router/src/structure/PageBuilder.ts +24 -0
  234. package/packages/router/src/structure/Route.ts +105 -0
  235. package/packages/signal/README.md +93 -0
  236. package/packages/signal/package.json +18 -0
  237. package/packages/signal/src/index.ts +221 -0
  238. package/{src → packages/signal/src}/structure/Signal.ts +6 -10
  239. package/packages/ssr/package.json +19 -0
  240. package/packages/ssr/src/index.ts +38 -0
  241. package/packages/ui/lib/VirtualScroll.ts +25 -0
  242. package/packages/ui/node/Accordian.ts +97 -0
  243. package/packages/ui/node/Carousel.ts +20 -0
  244. package/packages/ui/node/Form.ts +54 -0
  245. package/packages/ui/node/Grid.ts +0 -0
  246. package/packages/ui/node/Modal.ts +45 -0
  247. package/packages/ui/node/Table.ts +43 -0
  248. package/packages/ui/node/Tabs.ts +129 -0
  249. package/packages/ui/node/Toast.ts +16 -0
  250. package/packages/ui/node/Waterfall.ts +94 -0
  251. package/packages/ui/package.json +21 -0
  252. package/packages/utils/package.json +17 -0
  253. package/{src → packages/utils/src}/global.ts +9 -15
  254. package/packages/utils/src/index.ts +90 -0
  255. package/tsconfig.json +1 -1
  256. package/ext/css/package.json +0 -9
  257. package/ext/css/src/structure/$CSSVariable.ts +0 -12
  258. package/ext/html/node/$Canvas.ts +0 -16
  259. package/ext/i18n/package.json +0 -10
  260. package/ext/i18n/src/index.ts +0 -54
  261. package/ext/i18n/src/node/I18nText.ts +0 -35
  262. package/ext/idb/package.json +0 -13
  263. package/ext/markdown/index.ts +0 -121
  264. package/ext/markdown/package.json +0 -8
  265. package/ext/router/README.md +0 -81
  266. package/ext/router/index.ts +0 -73
  267. package/ext/router/node/Page.ts +0 -27
  268. package/ext/router/node/Route.ts +0 -54
  269. package/ext/router/node/Router.ts +0 -149
  270. package/ext/ssr/env.ts +0 -61
  271. package/ext/ssr/index.ts +0 -49
  272. package/ext/ssr/package.json +0 -10
  273. package/src/core.ts +0 -114
  274. package/src/index.ts +0 -3
  275. package/src/lib/assign.ts +0 -38
  276. package/src/lib/assignHelper.ts +0 -18
  277. package/src/lib/chain.ts +0 -13
  278. package/src/lib/debounce.ts +0 -7
  279. package/src/lib/env.ts +0 -2
  280. package/src/lib/native.ts +0 -40
  281. package/src/lib/randomId.ts +0 -9
  282. package/src/lib/sleep.ts +0 -3
  283. package/src/lib/toArray.ts +0 -9
  284. package/src/lib/trycatch.ts +0 -17
  285. package/src/node.ts +0 -10
  286. /package/{ext → packages}/css/README.md +0 -0
  287. /package/{ext/css/src/lib → packages/css/src/ext}/colors.ts +0 -0
  288. /package/{ext → packages}/css/src/structure/$CSSDeclaration.ts +0 -0
  289. /package/{ext → packages}/idb/README.md +0 -0
  290. /package/{ext → packages}/idb/src/core.ts +0 -0
@@ -0,0 +1,25 @@
1
+ import { assignAttributes } from "#lib/assignAttributes";
2
+ import { HTMLElement } from "#structure/HTMLElement";
3
+ import { _Object_assign } from "@amateras/utils";
4
+
5
+ export class HTMLAnchorElement extends HTMLElement {
6
+ static defaultAttributes = {
7
+ ...HTMLElement.defaultAttributes,
8
+ href: '',
9
+ download: '',
10
+ hreflang: '',
11
+ ping: '',
12
+ referrerPolicy: '',
13
+ rel: '',
14
+ target: '',
15
+ text: '',
16
+ type: ''
17
+ }
18
+
19
+ constructor() {
20
+ super('a')
21
+ }
22
+ }
23
+
24
+ assignAttributes(HTMLAnchorElement, HTMLAnchorElement.defaultAttributes)
25
+ _Object_assign(globalThis, { HTMLAnchorElement })
@@ -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 HTMLAreaElement extends HTMLElement {
6
+ static defaultAttributes = {
7
+ ...HTMLElement.defaultAttributes,
8
+ alt: '',
9
+ coords: '',
10
+ download: '',
11
+ href: '',
12
+ hreflang: '',
13
+ ping: '',
14
+ referrerPolicy: '',
15
+ rel: '',
16
+ shape: '',
17
+ target: ''
18
+ }
19
+
20
+ constructor() {
21
+ super('area')
22
+ }
23
+ }
24
+
25
+ assignAttributes(HTMLAreaElement, HTMLAreaElement.defaultAttributes)
26
+ _Object_assign(globalThis, { HTMLAreaElement })
@@ -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 })