amateras 0.6.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 (282) hide show
  1. package/index.ts +1 -0
  2. package/package.json +32 -30
  3. package/packages/core/package.json +32 -0
  4. package/packages/core/src/env.browser.ts +21 -0
  5. package/packages/core/src/env.node.ts +21 -0
  6. package/packages/core/src/global.ts +18 -0
  7. package/{src/core.ts → packages/core/src/index.ts} +42 -30
  8. package/{src → packages/core/src}/lib/assignProperties.ts +1 -1
  9. package/packages/core/src/lib/chain.ts +17 -0
  10. package/packages/core/src/lib/dom.ts +20 -0
  11. package/packages/core/src/main.ts +4 -0
  12. package/{src → packages/core/src}/node/$Element.ts +22 -10
  13. package/{src → packages/core/src}/node/$EventTarget.ts +13 -10
  14. package/{src → packages/core/src}/node/$HTMLElement.ts +1 -1
  15. package/{src → packages/core/src}/node/$Node.ts +7 -11
  16. package/{src → packages/core/src}/node/$Virtual.ts +5 -5
  17. package/packages/css/package.json +17 -0
  18. package/{ext/css/src/lib → packages/css/src/ext}/colors/amber.ts +2 -2
  19. package/{ext/css/src/lib → packages/css/src/ext}/colors/blackwhite.ts +2 -2
  20. package/{ext/css/src/lib → packages/css/src/ext}/colors/blue.ts +2 -2
  21. package/{ext/css/src/lib → packages/css/src/ext}/colors/cyan.ts +2 -2
  22. package/{ext/css/src/lib → packages/css/src/ext}/colors/emerald.ts +2 -2
  23. package/{ext/css/src/lib → packages/css/src/ext}/colors/fuchsia.ts +2 -2
  24. package/{ext/css/src/lib → packages/css/src/ext}/colors/gray.ts +2 -2
  25. package/{ext/css/src/lib → packages/css/src/ext}/colors/green.ts +2 -2
  26. package/{ext/css/src/lib → packages/css/src/ext}/colors/indigo.ts +2 -2
  27. package/{ext/css/src/lib → packages/css/src/ext}/colors/lime.ts +2 -2
  28. package/{ext/css/src/lib → packages/css/src/ext}/colors/neutral.ts +2 -2
  29. package/{ext/css/src/lib → packages/css/src/ext}/colors/orange.ts +2 -2
  30. package/{ext/css/src/lib → packages/css/src/ext}/colors/pink.ts +2 -2
  31. package/{ext/css/src/lib → packages/css/src/ext}/colors/purple.ts +2 -2
  32. package/{ext/css/src/lib → packages/css/src/ext}/colors/red.ts +2 -2
  33. package/{ext/css/src/lib → packages/css/src/ext}/colors/rose.ts +2 -2
  34. package/{ext/css/src/lib → packages/css/src/ext}/colors/sky.ts +2 -2
  35. package/{ext/css/src/lib → packages/css/src/ext}/colors/slate.ts +2 -2
  36. package/{ext/css/src/lib → packages/css/src/ext}/colors/stone.ts +2 -2
  37. package/{ext/css/src/lib → packages/css/src/ext}/colors/teal.ts +2 -2
  38. package/{ext/css/src/lib → packages/css/src/ext}/colors/violet.ts +2 -2
  39. package/{ext/css/src/lib → packages/css/src/ext}/colors/yellow.ts +2 -2
  40. package/{ext/css/src/lib → packages/css/src/ext}/colors/zinc.ts +2 -2
  41. package/packages/css/src/ext/container.ts +32 -0
  42. package/packages/css/src/ext/keyframes.ts +54 -0
  43. package/packages/css/src/ext/media.ts +32 -0
  44. package/packages/css/src/ext/property.ts +48 -0
  45. package/packages/css/src/ext/variable.ts +51 -0
  46. package/{ext → packages}/css/src/index.ts +107 -183
  47. package/{ext → packages}/css/src/lib/colorAssign.ts +1 -1
  48. package/packages/css/src/lib/utils.ts +11 -0
  49. package/{ext → packages}/css/src/structure/$CSSContainerRule.ts +1 -1
  50. package/{ext → packages}/css/src/structure/$CSSKeyframesRule.ts +0 -1
  51. package/{ext → packages}/css/src/structure/$CSSMediaRule.ts +1 -1
  52. package/packages/css/src/structure/$CSSProperty.ts +19 -0
  53. package/{ext → packages}/css/src/structure/$CSSRule.ts +1 -1
  54. package/{ext → packages}/css/src/structure/$CSSStyleRule.ts +1 -1
  55. package/packages/css/src/structure/$CSSVariable.ts +30 -0
  56. package/packages/dom/package.json +20 -0
  57. package/packages/dom/src/lib/HTMLElementMap.ts +213 -0
  58. package/packages/dom/src/lib/assignAttributes.ts +16 -0
  59. package/packages/dom/src/structure/CSS.ts +7 -0
  60. package/packages/dom/src/structure/CSSStyleSheet.ts +10 -0
  61. package/packages/dom/src/structure/DOMTokenList.ts +19 -0
  62. package/packages/dom/src/structure/Document.ts +36 -0
  63. package/packages/dom/src/structure/Element.ts +106 -0
  64. package/packages/dom/src/structure/HTMLElement.ts +34 -0
  65. package/packages/dom/src/structure/History.ts +11 -0
  66. package/packages/dom/src/structure/Location.ts +9 -0
  67. package/packages/dom/src/structure/Node.ts +51 -0
  68. package/packages/dom/src/structure/NodeList.ts +10 -0
  69. package/packages/dom/src/structure/Storage.ts +8 -0
  70. package/packages/dom/src/structure/Text.ts +20 -0
  71. package/packages/dom/src/structure/Window.ts +14 -0
  72. package/packages/dom/src/structure/html/HTMLAbbrElement.ts +16 -0
  73. package/packages/dom/src/structure/html/HTMLAddressElement.ts +16 -0
  74. package/packages/dom/src/structure/html/HTMLAnchorElement.ts +25 -0
  75. package/packages/dom/src/structure/html/HTMLAreaElement.ts +26 -0
  76. package/packages/dom/src/structure/html/HTMLArticleElement.ts +16 -0
  77. package/packages/dom/src/structure/html/HTMLAsideElement.ts +16 -0
  78. package/packages/dom/src/structure/html/HTMLAudioElement.ts +16 -0
  79. package/packages/dom/src/structure/html/HTMLBDIElement.ts +16 -0
  80. package/packages/dom/src/structure/html/HTMLBDOElement.ts +16 -0
  81. package/packages/dom/src/structure/html/HTMLBElement.ts +16 -0
  82. package/packages/dom/src/structure/html/HTMLBRElement.ts +17 -0
  83. package/packages/dom/src/structure/html/HTMLBaseElement.ts +18 -0
  84. package/packages/dom/src/structure/html/HTMLBodyElement.ts +22 -0
  85. package/packages/dom/src/structure/html/HTMLButtonElement.ts +26 -0
  86. package/packages/dom/src/structure/html/HTMLCanvasElement.ts +18 -0
  87. package/packages/dom/src/structure/html/HTMLCiteElement.ts +16 -0
  88. package/packages/dom/src/structure/html/HTMLCodeElement.ts +16 -0
  89. package/packages/dom/src/structure/html/HTMLDDElement.ts +16 -0
  90. package/packages/dom/src/structure/html/HTMLDFNElement.ts +16 -0
  91. package/packages/dom/src/structure/html/HTMLDListElement.ts +17 -0
  92. package/packages/dom/src/structure/html/HTMLDTElement.ts +16 -0
  93. package/packages/dom/src/structure/html/HTMLDataElement.ts +17 -0
  94. package/packages/dom/src/structure/html/HTMLDataListElement.ts +16 -0
  95. package/packages/dom/src/structure/html/HTMLDetailsElement.ts +17 -0
  96. package/packages/dom/src/structure/html/HTMLDialogElement.ts +18 -0
  97. package/packages/dom/src/structure/html/HTMLDivElement.ts +17 -0
  98. package/packages/dom/src/structure/html/HTMLEMElement.ts +16 -0
  99. package/packages/dom/src/structure/html/HTMLEmbedElement.ts +20 -0
  100. package/packages/dom/src/structure/html/HTMLFieldSetElement.ts +19 -0
  101. package/packages/dom/src/structure/html/HTMLFigCaptionElement.ts +16 -0
  102. package/packages/dom/src/structure/html/HTMLFigureElement.ts +16 -0
  103. package/packages/dom/src/structure/html/HTMLFooterElement.ts +16 -0
  104. package/packages/dom/src/structure/html/HTMLFormElement.ts +24 -0
  105. package/packages/dom/src/structure/html/HTMLHGroupElement.ts +16 -0
  106. package/packages/dom/src/structure/html/HTMLHRElement.ts +21 -0
  107. package/packages/dom/src/structure/html/HTMLHeadElement.ts +16 -0
  108. package/packages/dom/src/structure/html/HTMLHeaderElement.ts +16 -0
  109. package/packages/dom/src/structure/html/HTMLHeadingElement.ts +17 -0
  110. package/packages/dom/src/structure/html/HTMLHtmlElement.ts +18 -0
  111. package/packages/dom/src/structure/html/HTMLIElement.ts +16 -0
  112. package/packages/dom/src/structure/html/HTMLIFrameElement.ts +31 -0
  113. package/packages/dom/src/structure/html/HTMLImageElement.ts +38 -0
  114. package/packages/dom/src/structure/html/HTMLInputElement.ts +55 -0
  115. package/packages/dom/src/structure/html/HTMLKBDElement.ts +16 -0
  116. package/packages/dom/src/structure/html/HTMLLIElement.ts +18 -0
  117. package/packages/dom/src/structure/html/HTMLLabelElement.ts +18 -0
  118. package/packages/dom/src/structure/html/HTMLLegendElement.ts +17 -0
  119. package/packages/dom/src/structure/html/HTMLLinkElement.ts +31 -0
  120. package/packages/dom/src/structure/html/HTMLMainElement.ts +16 -0
  121. package/packages/dom/src/structure/html/HTMLMapElement.ts +17 -0
  122. package/packages/dom/src/structure/html/HTMLMarkElement.ts +16 -0
  123. package/packages/dom/src/structure/html/HTMLMediaElement.ts +48 -0
  124. package/packages/dom/src/structure/html/HTMLMenuElement.ts +18 -0
  125. package/packages/dom/src/structure/html/HTMLMetaElement.ts +22 -0
  126. package/packages/dom/src/structure/html/HTMLMeterElement.ts +23 -0
  127. package/packages/dom/src/structure/html/HTMLModElement.ts +18 -0
  128. package/packages/dom/src/structure/html/HTMLNavElement.ts +16 -0
  129. package/packages/dom/src/structure/html/HTMLNoscriptElement.ts +16 -0
  130. package/packages/dom/src/structure/html/HTMLOListElement.ts +20 -0
  131. package/packages/dom/src/structure/html/HTMLObjectElement.ts +34 -0
  132. package/packages/dom/src/structure/html/HTMLOptGroupElement.ts +18 -0
  133. package/packages/dom/src/structure/html/HTMLOptionElement.ts +20 -0
  134. package/packages/dom/src/structure/html/HTMLOutputElement.ts +20 -0
  135. package/packages/dom/src/structure/html/HTMLParagraphElement.ts +17 -0
  136. package/packages/dom/src/structure/html/HTMLPictureElement.ts +16 -0
  137. package/packages/dom/src/structure/html/HTMLPreElement.ts +17 -0
  138. package/packages/dom/src/structure/html/HTMLProgressElement.ts +19 -0
  139. package/packages/dom/src/structure/html/HTMLQuoteElement.ts +17 -0
  140. package/packages/dom/src/structure/html/HTMLRPElement.ts +16 -0
  141. package/packages/dom/src/structure/html/HTMLRTElement.ts +16 -0
  142. package/packages/dom/src/structure/html/HTMLRubyElement.ts +16 -0
  143. package/packages/dom/src/structure/html/HTMLSElement.ts +16 -0
  144. package/packages/dom/src/structure/html/HTMLSampElement.ts +16 -0
  145. package/packages/dom/src/structure/html/HTMLScriptElement.ts +27 -0
  146. package/packages/dom/src/structure/html/HTMLSectionElement.ts +16 -0
  147. package/packages/dom/src/structure/html/HTMLSelectElement.ts +27 -0
  148. package/packages/dom/src/structure/html/HTMLSlotElement.ts +17 -0
  149. package/packages/dom/src/structure/html/HTMLSmallElement.ts +16 -0
  150. package/packages/dom/src/structure/html/HTMLSourceElement.ts +21 -0
  151. package/packages/dom/src/structure/html/HTMLSpanElement.ts +16 -0
  152. package/packages/dom/src/structure/html/HTMLStrongElement.ts +16 -0
  153. package/packages/dom/src/structure/html/HTMLStyleElement.ts +18 -0
  154. package/packages/dom/src/structure/html/HTMLSubElement.ts +16 -0
  155. package/packages/dom/src/structure/html/HTMLSummaryElement.ts +16 -0
  156. package/packages/dom/src/structure/html/HTMLSupElement.ts +16 -0
  157. package/packages/dom/src/structure/html/HTMLTableCaptionElement.ts +17 -0
  158. package/packages/dom/src/structure/html/HTMLTableCellElement.ts +31 -0
  159. package/packages/dom/src/structure/html/HTMLTableColElement.ts +23 -0
  160. package/packages/dom/src/structure/html/HTMLTableElement.ts +26 -0
  161. package/packages/dom/src/structure/html/HTMLTableRowElement.ts +23 -0
  162. package/packages/dom/src/structure/html/HTMLTableSectionElement.ts +20 -0
  163. package/packages/dom/src/structure/html/HTMLTemplateElement.ts +17 -0
  164. package/packages/dom/src/structure/html/HTMLTextAreaElement.ts +33 -0
  165. package/packages/dom/src/structure/html/HTMLTimeElement.ts +17 -0
  166. package/packages/dom/src/structure/html/HTMLTitleElement.ts +17 -0
  167. package/packages/dom/src/structure/html/HTMLTrackElement.ts +21 -0
  168. package/packages/dom/src/structure/html/HTMLUElement.ts +16 -0
  169. package/packages/dom/src/structure/html/HTMLUListElement.ts +18 -0
  170. package/packages/dom/src/structure/html/HTMLVarElement.ts +16 -0
  171. package/packages/dom/src/structure/html/HTMLVideoElement.ts +22 -0
  172. package/packages/dom/src/structure/html/HTMLWBRElement.ts +16 -0
  173. package/packages/html/package.json +18 -0
  174. package/{ext/html/html.ts → packages/html/src/index.ts} +1 -1
  175. package/{ext/html → packages/html/src}/node/$Anchor.ts +3 -3
  176. package/packages/html/src/node/$Canvas.ts +38 -0
  177. package/{ext/html → packages/html/src}/node/$Dialog.ts +3 -3
  178. package/{ext/html → packages/html/src}/node/$Form.ts +3 -3
  179. package/{ext/html → packages/html/src}/node/$Image.ts +3 -3
  180. package/{ext/html → packages/html/src}/node/$Input.ts +3 -3
  181. package/{ext/html → packages/html/src}/node/$Label.ts +3 -3
  182. package/{ext/html → packages/html/src}/node/$Media.ts +3 -3
  183. package/{ext/html → packages/html/src}/node/$OptGroup.ts +3 -3
  184. package/{ext/html → packages/html/src}/node/$Option.ts +3 -3
  185. package/{ext/html → packages/html/src}/node/$Select.ts +3 -3
  186. package/{ext/html → packages/html/src}/node/$TextArea.ts +3 -3
  187. package/packages/i18n/package.json +19 -0
  188. package/{ext → packages}/i18n/src/index.ts +6 -14
  189. package/{ext → packages}/i18n/src/structure/I18n.ts +2 -2
  190. package/{ext → packages}/i18n/src/structure/I18nDictionary.ts +1 -1
  191. package/{ext → packages}/i18n/src/structure/I18nTranslation.ts +10 -4
  192. package/packages/idb/package.json +19 -0
  193. package/{ext → packages}/idb/src/index.ts +2 -2
  194. package/{ext → packages}/idb/src/lib/$IDBRequest.ts +1 -1
  195. package/{ext → packages}/idb/src/structure/$IDB.ts +1 -1
  196. package/{ext → packages}/idb/src/structure/$IDBCursor.ts +1 -1
  197. package/{ext → packages}/idb/src/structure/$IDBIndex.ts +1 -1
  198. package/{ext → packages}/idb/src/structure/$IDBStore.ts +1 -1
  199. package/{ext → packages}/idb/src/structure/$IDBStoreBase.ts +1 -1
  200. package/{ext → packages}/idb/src/structure/$IDBTransaction.ts +1 -1
  201. package/{ext → packages}/idb/src/structure/builder/$IDBBuilder.ts +1 -2
  202. package/{ext → packages}/idb/src/structure/builder/$IDBStoreBuilder.ts +1 -1
  203. package/packages/markdown/package.json +19 -0
  204. package/{ext → packages}/markdown/src/lib/util.ts +1 -1
  205. package/{ext → packages}/markdown/src/structure/MarkdownLexer.ts +2 -2
  206. package/{ext → packages}/markdown/src/structure/MarkdownParser.ts +2 -1
  207. package/{ext → packages}/markdown/src/syntax/alert.ts +1 -1
  208. package/{ext → packages}/markdown/src/syntax/codeblock.ts +1 -1
  209. package/{ext → packages}/markdown/src/syntax/link.ts +2 -2
  210. package/{ext → packages}/markdown/src/syntax/list.ts +1 -1
  211. package/{ext → packages}/markdown/src/syntax/table.ts +1 -1
  212. package/packages/router/package.json +19 -0
  213. package/{ext → packages}/router/src/index.ts +4 -5
  214. package/{ext → packages}/router/src/node/Page.ts +8 -4
  215. package/{ext → packages}/router/src/node/Router.ts +79 -58
  216. package/{ext → packages}/router/src/node/RouterAnchor.ts +2 -2
  217. package/{ext → packages}/router/src/structure/PageBuilder.ts +3 -3
  218. package/{ext → packages}/router/src/structure/Route.ts +1 -1
  219. package/packages/signal/package.json +18 -0
  220. package/packages/signal/src/index.ts +221 -0
  221. package/{ext → packages}/signal/src/structure/Signal.ts +1 -1
  222. package/packages/ssr/package.json +19 -0
  223. package/packages/ssr/src/index.ts +38 -0
  224. package/{ext → packages}/ui/lib/VirtualScroll.ts +5 -5
  225. package/{ext → packages}/ui/node/Accordian.ts +4 -4
  226. package/packages/ui/node/Carousel.ts +20 -0
  227. package/{ext → packages}/ui/node/Form.ts +7 -6
  228. package/packages/ui/node/Modal.ts +45 -0
  229. package/{ext → packages}/ui/node/Table.ts +1 -1
  230. package/{ext → packages}/ui/node/Tabs.ts +28 -13
  231. package/{ext → packages}/ui/node/Toast.ts +2 -2
  232. package/packages/ui/node/Waterfall.ts +94 -0
  233. package/packages/ui/package.json +21 -0
  234. package/packages/utils/package.json +17 -0
  235. package/{src → packages/utils/src}/global.ts +5 -18
  236. package/{src/lib/native.ts → packages/utils/src/index.ts} +34 -1
  237. package/tsconfig.json +1 -1
  238. package/ext/css/package.json +0 -9
  239. package/ext/css/src/structure/$CSSVariable.ts +0 -12
  240. package/ext/html/node/$Canvas.ts +0 -16
  241. package/ext/i18n/package.json +0 -10
  242. package/ext/idb/package.json +0 -13
  243. package/ext/markdown/package.json +0 -15
  244. package/ext/router/package.json +0 -10
  245. package/ext/signal/package.json +0 -9
  246. package/ext/signal/src/index.ts +0 -128
  247. package/ext/ssr/env.ts +0 -61
  248. package/ext/ssr/index.ts +0 -49
  249. package/ext/ssr/package.json +0 -10
  250. package/ext/ui/node/Waterfall.ts +0 -72
  251. package/ext/ui/package.json +0 -11
  252. package/src/index.ts +0 -2
  253. package/src/lib/chain.ts +0 -13
  254. package/src/lib/debounce.ts +0 -7
  255. package/src/lib/env.ts +0 -2
  256. package/src/lib/randomId.ts +0 -9
  257. package/src/lib/sleep.ts +0 -3
  258. package/src/lib/toArray.ts +0 -9
  259. package/src/lib/trycatch.ts +0 -17
  260. package/src/lib/uppercase.ts +0 -3
  261. /package/{src/node.ts → packages/core/src/lib/assignNodeProperties.ts} +0 -0
  262. /package/{ext → packages}/css/README.md +0 -0
  263. /package/{ext/css/src/lib → packages/css/src/ext}/colors.ts +0 -0
  264. /package/{ext → packages}/css/src/structure/$CSSDeclaration.ts +0 -0
  265. /package/{ext → packages}/i18n/README.md +0 -0
  266. /package/{ext → packages}/idb/README.md +0 -0
  267. /package/{ext → packages}/idb/src/core.ts +0 -0
  268. /package/{ext → packages}/markdown/README.md +0 -0
  269. /package/{ext → packages}/markdown/src/index.ts +0 -0
  270. /package/{ext → packages}/markdown/src/lib/type.ts +0 -0
  271. /package/{ext → packages}/markdown/src/structure/Markdown.ts +0 -0
  272. /package/{ext → packages}/markdown/src/syntax/blockquote.ts +0 -0
  273. /package/{ext → packages}/markdown/src/syntax/bold.ts +0 -0
  274. /package/{ext → packages}/markdown/src/syntax/code.ts +0 -0
  275. /package/{ext → packages}/markdown/src/syntax/heading.ts +0 -0
  276. /package/{ext → packages}/markdown/src/syntax/horizontalRule.ts +0 -0
  277. /package/{ext → packages}/markdown/src/syntax/image.ts +0 -0
  278. /package/{ext → packages}/markdown/src/syntax/italic.ts +0 -0
  279. /package/{ext → packages}/markdown/src/syntax/text.ts +0 -0
  280. /package/{ext → packages}/router/README.md +0 -0
  281. /package/{ext → packages}/signal/README.md +0 -0
  282. /package/{ext → packages}/ui/node/Grid.ts +0 -0
@@ -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 HTMLQuoteElement extends HTMLElement {
6
+ static defaultAttributes = {
7
+ ...HTMLElement.defaultAttributes,
8
+ cite: ''
9
+ }
10
+
11
+ constructor(tag: string = 'blockquote') {
12
+ super(tag)
13
+ }
14
+ }
15
+
16
+ assignAttributes(HTMLQuoteElement, HTMLQuoteElement.defaultAttributes)
17
+ _Object_assign(globalThis, { HTMLQuoteElement })
@@ -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 HTMLRPElement extends HTMLElement {
6
+ static defaultAttributes = {
7
+ ...HTMLElement.defaultAttributes
8
+ }
9
+
10
+ constructor() {
11
+ super('rp')
12
+ }
13
+ }
14
+
15
+ assignAttributes(HTMLRPElement, HTMLRPElement.defaultAttributes)
16
+ _Object_assign(globalThis, { HTMLRPElement })
@@ -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 HTMLRTElement extends HTMLElement {
6
+ static defaultAttributes = {
7
+ ...HTMLElement.defaultAttributes
8
+ }
9
+
10
+ constructor() {
11
+ super('rt')
12
+ }
13
+ }
14
+
15
+ assignAttributes(HTMLRTElement, HTMLRTElement.defaultAttributes)
16
+ _Object_assign(globalThis, { HTMLRTElement })
@@ -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 HTMLRubyElement extends HTMLElement {
6
+ static defaultAttributes = {
7
+ ...HTMLElement.defaultAttributes
8
+ }
9
+
10
+ constructor() {
11
+ super('ruby')
12
+ }
13
+ }
14
+
15
+ assignAttributes(HTMLRubyElement, HTMLRubyElement.defaultAttributes)
16
+ _Object_assign(globalThis, { HTMLRubyElement })
@@ -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 HTMLSElement extends HTMLElement {
6
+ static defaultAttributes = {
7
+ ...HTMLElement.defaultAttributes
8
+ }
9
+
10
+ constructor() {
11
+ super('s')
12
+ }
13
+ }
14
+
15
+ assignAttributes(HTMLSElement, HTMLSElement.defaultAttributes)
16
+ _Object_assign(globalThis, { HTMLSElement })
@@ -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 HTMLSampElement extends HTMLElement {
6
+ static defaultAttributes = {
7
+ ...HTMLElement.defaultAttributes
8
+ }
9
+
10
+ constructor() {
11
+ super('samp')
12
+ }
13
+ }
14
+
15
+ assignAttributes(HTMLSampElement, HTMLSampElement.defaultAttributes)
16
+ _Object_assign(globalThis, { HTMLSampElement })
@@ -0,0 +1,27 @@
1
+ import { assignAttributes } from "#lib/assignAttributes";
2
+ import { HTMLElement } from "#structure/HTMLElement";
3
+ import { _Object_assign } from "@amateras/utils";
4
+
5
+ export class HTMLScriptElement extends HTMLElement {
6
+ static defaultAttributes = {
7
+ ...HTMLElement.defaultAttributes,
8
+ async: false,
9
+ charset: '',
10
+ crossOrigin: '',
11
+ defer: false,
12
+ fetchPriority: 'auto',
13
+ integrity: '',
14
+ noModule: false,
15
+ referrerPolicy: '',
16
+ src: '',
17
+ text: '',
18
+ type: ''
19
+ }
20
+
21
+ constructor() {
22
+ super('script')
23
+ }
24
+ }
25
+
26
+ assignAttributes(HTMLScriptElement, HTMLScriptElement.defaultAttributes)
27
+ _Object_assign(globalThis, { HTMLScriptElement })
@@ -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 HTMLSectionElement extends HTMLElement {
6
+ static defaultAttributes = {
7
+ ...HTMLElement.defaultAttributes
8
+ }
9
+
10
+ constructor() {
11
+ super('section')
12
+ }
13
+ }
14
+
15
+ assignAttributes(HTMLSectionElement, HTMLSectionElement.defaultAttributes)
16
+ _Object_assign(globalThis, { HTMLSectionElement })
@@ -0,0 +1,27 @@
1
+ import { assignAttributes } from "#lib/assignAttributes";
2
+ import { HTMLElement } from "#structure/HTMLElement";
3
+ import { _Object_assign } from "@amateras/utils";
4
+
5
+ export class HTMLSelectElement extends HTMLElement {
6
+ static defaultAttributes = {
7
+ ...HTMLElement.defaultAttributes,
8
+ autocomplete: '',
9
+ autofocus: false,
10
+ disabled: false,
11
+ form: '',
12
+ length: 0,
13
+ multiple: false,
14
+ name: '',
15
+ required: false,
16
+ selectedIndex: -1,
17
+ size: 0,
18
+ value: ''
19
+ }
20
+
21
+ constructor() {
22
+ super('select')
23
+ }
24
+ }
25
+
26
+ assignAttributes(HTMLSelectElement, HTMLSelectElement.defaultAttributes)
27
+ _Object_assign(globalThis, { HTMLSelectElement })
@@ -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 HTMLSlotElement extends HTMLElement {
6
+ static defaultAttributes = {
7
+ ...HTMLElement.defaultAttributes,
8
+ name: ''
9
+ }
10
+
11
+ constructor() {
12
+ super('slot')
13
+ }
14
+ }
15
+
16
+ assignAttributes(HTMLSlotElement, HTMLSlotElement.defaultAttributes)
17
+ _Object_assign(globalThis, { HTMLSlotElement })
@@ -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 HTMLSmallElement extends HTMLElement {
6
+ static defaultAttributes = {
7
+ ...HTMLElement.defaultAttributes
8
+ }
9
+
10
+ constructor() {
11
+ super('small')
12
+ }
13
+ }
14
+
15
+ assignAttributes(HTMLSmallElement, HTMLSmallElement.defaultAttributes)
16
+ _Object_assign(globalThis, { HTMLSmallElement })
@@ -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 HTMLSourceElement extends HTMLElement {
6
+ static defaultAttributes = {
7
+ ...HTMLElement.defaultAttributes,
8
+ media: '',
9
+ sizes: '',
10
+ src: '',
11
+ srcSet: '',
12
+ type: ''
13
+ }
14
+
15
+ constructor() {
16
+ super('source')
17
+ }
18
+ }
19
+
20
+ assignAttributes(HTMLSourceElement, HTMLSourceElement.defaultAttributes)
21
+ _Object_assign(globalThis, { HTMLSourceElement })
@@ -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 HTMLSpanElement extends HTMLElement {
6
+ static defaultAttributes = {
7
+ ...HTMLElement.defaultAttributes
8
+ }
9
+
10
+ constructor() {
11
+ super('span')
12
+ }
13
+ }
14
+
15
+ assignAttributes(HTMLSpanElement, HTMLSpanElement.defaultAttributes)
16
+ _Object_assign(globalThis, { HTMLSpanElement })
@@ -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 HTMLStrongElement extends HTMLElement {
6
+ static defaultAttributes = {
7
+ ...HTMLElement.defaultAttributes
8
+ }
9
+
10
+ constructor() {
11
+ super('strong')
12
+ }
13
+ }
14
+
15
+ assignAttributes(HTMLStrongElement, HTMLStrongElement.defaultAttributes)
16
+ _Object_assign(globalThis, { HTMLStrongElement })
@@ -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 HTMLStyleElement extends HTMLElement {
6
+ static defaultAttributes = {
7
+ ...HTMLElement.defaultAttributes,
8
+ media: '',
9
+ type: ''
10
+ }
11
+
12
+ constructor() {
13
+ super('style')
14
+ }
15
+ }
16
+
17
+ assignAttributes(HTMLStyleElement, HTMLStyleElement.defaultAttributes)
18
+ _Object_assign(globalThis, { HTMLStyleElement })
@@ -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 HTMLSubElement extends HTMLElement {
6
+ static defaultAttributes = {
7
+ ...HTMLElement.defaultAttributes
8
+ }
9
+
10
+ constructor() {
11
+ super('sub')
12
+ }
13
+ }
14
+
15
+ assignAttributes(HTMLSubElement, HTMLSubElement.defaultAttributes)
16
+ _Object_assign(globalThis, { HTMLSubElement })
@@ -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 HTMLSummaryElement extends HTMLElement {
6
+ static defaultAttributes = {
7
+ ...HTMLElement.defaultAttributes
8
+ }
9
+
10
+ constructor() {
11
+ super('summary')
12
+ }
13
+ }
14
+
15
+ assignAttributes(HTMLSummaryElement, HTMLSummaryElement.defaultAttributes)
16
+ _Object_assign(globalThis, { HTMLSummaryElement })
@@ -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 HTMLSupElement extends HTMLElement {
6
+ static defaultAttributes = {
7
+ ...HTMLElement.defaultAttributes
8
+ }
9
+
10
+ constructor() {
11
+ super('sup')
12
+ }
13
+ }
14
+
15
+ assignAttributes(HTMLSupElement, HTMLSupElement.defaultAttributes)
16
+ _Object_assign(globalThis, { HTMLSupElement })
@@ -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 HTMLTableCaptionElement extends HTMLElement {
6
+ static defaultAttributes = {
7
+ ...HTMLElement.defaultAttributes,
8
+ align: ''
9
+ }
10
+
11
+ constructor() {
12
+ super('caption')
13
+ }
14
+ }
15
+
16
+ assignAttributes(HTMLTableCaptionElement, HTMLTableCaptionElement.defaultAttributes)
17
+ _Object_assign(globalThis, { HTMLTableCaptionElement })
@@ -0,0 +1,31 @@
1
+ import { assignAttributes } from "#lib/assignAttributes";
2
+ import { HTMLElement } from "#structure/HTMLElement";
3
+ import { _Object_assign } from "@amateras/utils";
4
+
5
+ export class HTMLTableCellElement extends HTMLElement {
6
+ static defaultAttributes = {
7
+ ...HTMLElement.defaultAttributes,
8
+ abbr: '',
9
+ align: '',
10
+ axis: '',
11
+ bgColor: '',
12
+ cellIndex: 0,
13
+ ch: '',
14
+ chOff: '',
15
+ colSpan: 1,
16
+ headers: '',
17
+ height: '',
18
+ noWrap: false,
19
+ rowSpan: 1,
20
+ scope: '',
21
+ vAlign: '',
22
+ width: ''
23
+ }
24
+
25
+ constructor(tag: string = 'td') {
26
+ super(tag)
27
+ }
28
+ }
29
+
30
+ assignAttributes(HTMLTableCellElement, HTMLTableCellElement.defaultAttributes)
31
+ _Object_assign(globalThis, { HTMLTableCellElement })
@@ -0,0 +1,23 @@
1
+ import { assignAttributes } from "#lib/assignAttributes";
2
+ import { HTMLElement } from "#structure/HTMLElement";
3
+ import { _Object_assign } from "@amateras/utils";
4
+
5
+ export class HTMLTableColElement extends HTMLElement {
6
+ static defaultAttributes = {
7
+ ...HTMLElement.defaultAttributes,
8
+ align: '',
9
+ ch: '',
10
+ chOff: '',
11
+ colSpan: 1,
12
+ span: 1,
13
+ vAlign: '',
14
+ width: ''
15
+ }
16
+
17
+ constructor(tag: string = 'col') {
18
+ super(tag)
19
+ }
20
+ }
21
+
22
+ assignAttributes(HTMLTableColElement, HTMLTableColElement.defaultAttributes)
23
+ _Object_assign(globalThis, { HTMLTableColElement })
@@ -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 HTMLTableElement extends HTMLElement {
6
+ static defaultAttributes = {
7
+ ...HTMLElement.defaultAttributes,
8
+ align: '',
9
+ bgColor: '',
10
+ border: '',
11
+ borderColor: '',
12
+ cellPadding: '',
13
+ cellSpacing: '',
14
+ frame: '',
15
+ rules: '',
16
+ summary: '',
17
+ width: ''
18
+ }
19
+
20
+ constructor() {
21
+ super('table')
22
+ }
23
+ }
24
+
25
+ assignAttributes(HTMLTableElement, HTMLTableElement.defaultAttributes)
26
+ _Object_assign(globalThis, { HTMLTableElement })
@@ -0,0 +1,23 @@
1
+ import { assignAttributes } from "#lib/assignAttributes";
2
+ import { HTMLElement } from "#structure/HTMLElement";
3
+ import { _Object_assign } from "@amateras/utils";
4
+
5
+ export class HTMLTableRowElement extends HTMLElement {
6
+ static defaultAttributes = {
7
+ ...HTMLElement.defaultAttributes,
8
+ align: '',
9
+ bgColor: '',
10
+ ch: '',
11
+ chOff: '',
12
+ rowIndex: 0,
13
+ sectionRowIndex: 0,
14
+ vAlign: ''
15
+ }
16
+
17
+ constructor() {
18
+ super('tr')
19
+ }
20
+ }
21
+
22
+ assignAttributes(HTMLTableRowElement, HTMLTableRowElement.defaultAttributes)
23
+ _Object_assign(globalThis, { HTMLTableRowElement })
@@ -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 HTMLTableSectionElement extends HTMLElement {
6
+ static defaultAttributes = {
7
+ ...HTMLElement.defaultAttributes,
8
+ align: '',
9
+ ch: '',
10
+ chOff: '',
11
+ vAlign: ''
12
+ }
13
+
14
+ constructor(tag: string = 'tbody') {
15
+ super(tag)
16
+ }
17
+ }
18
+
19
+ assignAttributes(HTMLTableSectionElement, HTMLTableSectionElement.defaultAttributes)
20
+ _Object_assign(globalThis, { HTMLTableSectionElement })
@@ -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 HTMLTemplateElement extends HTMLElement {
6
+ static defaultAttributes = {
7
+ ...HTMLElement.defaultAttributes,
8
+ content: null
9
+ }
10
+
11
+ constructor() {
12
+ super('template')
13
+ }
14
+ }
15
+
16
+ assignAttributes(HTMLTemplateElement, HTMLTemplateElement.defaultAttributes)
17
+ _Object_assign(globalThis, { HTMLTemplateElement })
@@ -0,0 +1,33 @@
1
+ import { assignAttributes } from "#lib/assignAttributes";
2
+ import { HTMLElement } from "#structure/HTMLElement";
3
+ import { _Object_assign } from "@amateras/utils";
4
+
5
+ export class HTMLTextAreaElement extends HTMLElement {
6
+ static defaultAttributes = {
7
+ ...HTMLElement.defaultAttributes,
8
+ autocomplete: '',
9
+ autofocus: false,
10
+ cols: 20,
11
+ defaultValue: '',
12
+ dirName: '',
13
+ disabled: false,
14
+ form: '',
15
+ inputMode: '',
16
+ maxLength: -1,
17
+ minLength: -1,
18
+ name: '',
19
+ placeholder: '',
20
+ readOnly: false,
21
+ required: false,
22
+ rows: 2,
23
+ value: '',
24
+ wrap: 'soft'
25
+ }
26
+
27
+ constructor() {
28
+ super('textarea')
29
+ }
30
+ }
31
+
32
+ assignAttributes(HTMLTextAreaElement, HTMLTextAreaElement.defaultAttributes)
33
+ _Object_assign(globalThis, { HTMLTextAreaElement })
@@ -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 HTMLTimeElement extends HTMLElement {
6
+ static defaultAttributes = {
7
+ ...HTMLElement.defaultAttributes,
8
+ dateTime: ''
9
+ }
10
+
11
+ constructor() {
12
+ super('time')
13
+ }
14
+ }
15
+
16
+ assignAttributes(HTMLTimeElement, HTMLTimeElement.defaultAttributes)
17
+ _Object_assign(globalThis, { HTMLTimeElement })
@@ -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 HTMLTitleElement extends HTMLElement {
6
+ static defaultAttributes = {
7
+ ...HTMLElement.defaultAttributes,
8
+ text: ''
9
+ }
10
+
11
+ constructor() {
12
+ super('title')
13
+ }
14
+ }
15
+
16
+ assignAttributes(HTMLTitleElement, HTMLTitleElement.defaultAttributes)
17
+ _Object_assign(globalThis, { HTMLTitleElement })
@@ -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 HTMLTrackElement extends HTMLElement {
6
+ static defaultAttributes = {
7
+ ...HTMLElement.defaultAttributes,
8
+ default: false,
9
+ kind: 'subtitles',
10
+ label: '',
11
+ src: '',
12
+ srclang: ''
13
+ }
14
+
15
+ constructor() {
16
+ super('track')
17
+ }
18
+ }
19
+
20
+ assignAttributes(HTMLTrackElement, HTMLTrackElement.defaultAttributes)
21
+ _Object_assign(globalThis, { HTMLTrackElement })
@@ -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 HTMLUElement extends HTMLElement {
6
+ static defaultAttributes = {
7
+ ...HTMLElement.defaultAttributes
8
+ }
9
+
10
+ constructor() {
11
+ super('u')
12
+ }
13
+ }
14
+
15
+ assignAttributes(HTMLUElement, HTMLUElement.defaultAttributes)
16
+ _Object_assign(globalThis, { HTMLUElement })
@@ -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 HTMLUListElement extends HTMLElement {
6
+ static defaultAttributes = {
7
+ ...HTMLElement.defaultAttributes,
8
+ compact: false,
9
+ type: ''
10
+ }
11
+
12
+ constructor() {
13
+ super('ul')
14
+ }
15
+ }
16
+
17
+ assignAttributes(HTMLUListElement, HTMLUListElement.defaultAttributes)
18
+ _Object_assign(globalThis, { HTMLUListElement })
@@ -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 HTMLVarElement extends HTMLElement {
6
+ static defaultAttributes = {
7
+ ...HTMLElement.defaultAttributes
8
+ }
9
+
10
+ constructor() {
11
+ super('var')
12
+ }
13
+ }
14
+
15
+ assignAttributes(HTMLVarElement, HTMLVarElement.defaultAttributes)
16
+ _Object_assign(globalThis, { HTMLVarElement })