typecomposer 0.1.47 → 0.1.49

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 (410) hide show
  1. package/{core → dist/core}/index.d.ts +0 -3
  2. package/{core → dist/core}/index.js +0 -3
  3. package/dist/core/index.js.map +1 -0
  4. package/{core → dist/core}/styles/index.d.ts +3 -3
  5. package/{core → dist/core}/styles/index.js +0 -8
  6. package/{core → dist/core}/styles/index.js.map +1 -1
  7. package/{global → dist/global}/index.d.ts +10 -4
  8. package/{global → dist/global}/index.js +387 -322
  9. package/dist/global/index.js.map +1 -0
  10. package/dist/index.d.ts +3 -0
  11. package/{index.d.ts → dist/index.js} +1 -0
  12. package/dist/index.js.map +1 -0
  13. package/package.json +31 -6
  14. package/styles/style.scss +2 -17
  15. package/typings/index.d.ts +58 -66
  16. package/core/app/Validate.d.ts +0 -61
  17. package/core/app/Validate.js +0 -2
  18. package/core/app/Validate.js.map +0 -1
  19. package/core/app/index.d.ts +0 -40
  20. package/core/app/index.js +0 -181
  21. package/core/app/index.js.map +0 -1
  22. package/core/components/AlertPanel.d.ts +0 -32
  23. package/core/components/AlertPanel.js +0 -75
  24. package/core/components/AlertPanel.js.map +0 -1
  25. package/core/components/AvatarPanel.d.ts +0 -21
  26. package/core/components/AvatarPanel.js +0 -62
  27. package/core/components/AvatarPanel.js.map +0 -1
  28. package/core/components/BorderPanel.d.ts +0 -28
  29. package/core/components/BorderPanel.js +0 -90
  30. package/core/components/BorderPanel.js.map +0 -1
  31. package/core/components/CardPanel.d.ts +0 -5
  32. package/core/components/CardPanel.js +0 -11
  33. package/core/components/CardPanel.js.map +0 -1
  34. package/core/components/CheckBox.d.ts +0 -36
  35. package/core/components/CheckBox.js +0 -109
  36. package/core/components/CheckBox.js.map +0 -1
  37. package/core/components/ColorPicker.d.ts +0 -10
  38. package/core/components/ColorPicker.js +0 -36
  39. package/core/components/ColorPicker.js.map +0 -1
  40. package/core/components/ContextMenu.d.ts +0 -16
  41. package/core/components/ContextMenu.js +0 -64
  42. package/core/components/ContextMenu.js.map +0 -1
  43. package/core/components/DialogPanel.d.ts +0 -15
  44. package/core/components/DialogPanel.js +0 -62
  45. package/core/components/DialogPanel.js.map +0 -1
  46. package/core/components/DropDown.d.ts +0 -54
  47. package/core/components/DropDown.js +0 -231
  48. package/core/components/DropDown.js.map +0 -1
  49. package/core/components/FlowPanel.d.ts +0 -11
  50. package/core/components/FlowPanel.js +0 -40
  51. package/core/components/FlowPanel.js.map +0 -1
  52. package/core/components/ForEach.d.ts +0 -11
  53. package/core/components/ForEach.js +0 -88
  54. package/core/components/ForEach.js.map +0 -1
  55. package/core/components/GridPanel.d.ts +0 -10
  56. package/core/components/GridPanel.js +0 -30
  57. package/core/components/GridPanel.js.map +0 -1
  58. package/core/components/HBox.d.ts +0 -5
  59. package/core/components/HBox.js +0 -10
  60. package/core/components/HBox.js.map +0 -1
  61. package/core/components/LazyLoading.d.ts +0 -19
  62. package/core/components/LazyLoading.js +0 -36
  63. package/core/components/LazyLoading.js.map +0 -1
  64. package/core/components/ListPanel.d.ts +0 -27
  65. package/core/components/ListPanel.js +0 -153
  66. package/core/components/ListPanel.js.map +0 -1
  67. package/core/components/PopUpButton.d.ts +0 -18
  68. package/core/components/PopUpButton.js +0 -57
  69. package/core/components/PopUpButton.js.map +0 -1
  70. package/core/components/ScrollPanel.d.ts +0 -14
  71. package/core/components/ScrollPanel.js +0 -35
  72. package/core/components/ScrollPanel.js.map +0 -1
  73. package/core/components/SliderPanel.d.ts +0 -7
  74. package/core/components/SliderPanel.js +0 -135
  75. package/core/components/SliderPanel.js.map +0 -1
  76. package/core/components/StackPanel.d.ts +0 -5
  77. package/core/components/StackPanel.js +0 -10
  78. package/core/components/StackPanel.js.map +0 -1
  79. package/core/components/TabItem.d.ts +0 -19
  80. package/core/components/TabItem.js +0 -84
  81. package/core/components/TabItem.js.map +0 -1
  82. package/core/components/TabPanel.d.ts +0 -25
  83. package/core/components/TabPanel.js +0 -96
  84. package/core/components/TabPanel.js.map +0 -1
  85. package/core/components/TablePanel.d.ts +0 -34
  86. package/core/components/TablePanel.js +0 -127
  87. package/core/components/TablePanel.js.map +0 -1
  88. package/core/components/TextEdit.d.ts +0 -32
  89. package/core/components/TextEdit.js +0 -174
  90. package/core/components/TextEdit.js.map +0 -1
  91. package/core/components/TextField.d.ts +0 -34
  92. package/core/components/TextField.js +0 -140
  93. package/core/components/TextField.js.map +0 -1
  94. package/core/components/ToggleButton.d.ts +0 -7
  95. package/core/components/ToggleButton.js +0 -20
  96. package/core/components/ToggleButton.js.map +0 -1
  97. package/core/components/Tooltip.d.ts +0 -10
  98. package/core/components/Tooltip.js +0 -14
  99. package/core/components/Tooltip.js.map +0 -1
  100. package/core/components/VBox.d.ts +0 -5
  101. package/core/components/VBox.js +0 -10
  102. package/core/components/VBox.js.map +0 -1
  103. package/core/components/VirtualScroll copy 2.d.ts +0 -24
  104. package/core/components/VirtualScroll copy 2.js +0 -92
  105. package/core/components/VirtualScroll copy 2.js.map +0 -1
  106. package/core/components/VirtualScroll.d.ts +0 -20
  107. package/core/components/VirtualScroll.js +0 -47
  108. package/core/components/VirtualScroll.js.map +0 -1
  109. package/core/components/index.d.ts +0 -28
  110. package/core/components/index.js +0 -30
  111. package/core/components/index.js.map +0 -1
  112. package/core/decorators/RegisterComponent.d.ts +0 -8
  113. package/core/decorators/RegisterComponent.js +0 -20
  114. package/core/decorators/RegisterComponent.js.map +0 -1
  115. package/core/decorators/StyleLink.d.ts +0 -1
  116. package/core/decorators/StyleLink.js +0 -13
  117. package/core/decorators/StyleLink.js.map +0 -1
  118. package/core/decorators/index.d.ts +0 -4
  119. package/core/decorators/index.js +0 -6
  120. package/core/decorators/index.js.map +0 -1
  121. package/core/element/AbbreviationElement.d.ts +0 -7
  122. package/core/element/AbbreviationElement.js +0 -10
  123. package/core/element/AbbreviationElement.js.map +0 -1
  124. package/core/element/AnchorElement.d.ts +0 -24
  125. package/core/element/AnchorElement.js +0 -31
  126. package/core/element/AnchorElement.js.map +0 -1
  127. package/core/element/AreaElement.d.ts +0 -18
  128. package/core/element/AreaElement.js +0 -11
  129. package/core/element/AreaElement.js.map +0 -1
  130. package/core/element/ArticleElement.d.ts +0 -5
  131. package/core/element/ArticleElement.js +0 -12
  132. package/core/element/ArticleElement.js.map +0 -1
  133. package/core/element/AudioElement.d.ts +0 -12
  134. package/core/element/AudioElement.js +0 -10
  135. package/core/element/AudioElement.js.map +0 -1
  136. package/core/element/BaseElement.d.ts +0 -8
  137. package/core/element/BaseElement.js +0 -11
  138. package/core/element/BaseElement.js.map +0 -1
  139. package/core/element/BodyElement.d.ts +0 -5
  140. package/core/element/BodyElement.js +0 -11
  141. package/core/element/BodyElement.js.map +0 -1
  142. package/core/element/BoldElement.d.ts +0 -5
  143. package/core/element/BoldElement.js +0 -10
  144. package/core/element/BoldElement.js.map +0 -1
  145. package/core/element/BreakElement.d.ts +0 -5
  146. package/core/element/BreakElement.js +0 -10
  147. package/core/element/BreakElement.js.map +0 -1
  148. package/core/element/ButtonElement.d.ts +0 -26
  149. package/core/element/ButtonElement.js +0 -47
  150. package/core/element/ButtonElement.js.map +0 -1
  151. package/core/element/CanvasElement.d.ts +0 -5
  152. package/core/element/CanvasElement.js +0 -14
  153. package/core/element/CanvasElement.js.map +0 -1
  154. package/core/element/CaptionElement.d.ts +0 -5
  155. package/core/element/CaptionElement.js +0 -13
  156. package/core/element/CaptionElement.js.map +0 -1
  157. package/core/element/CiteElement.d.ts +0 -5
  158. package/core/element/CiteElement.js +0 -11
  159. package/core/element/CiteElement.js.map +0 -1
  160. package/core/element/CodeElement.d.ts +0 -7
  161. package/core/element/CodeElement.js +0 -13
  162. package/core/element/CodeElement.js.map +0 -1
  163. package/core/element/DataListElement.d.ts +0 -5
  164. package/core/element/DataListElement.js +0 -13
  165. package/core/element/DataListElement.js.map +0 -1
  166. package/core/element/DefinitionDescriptionElement.d.ts +0 -5
  167. package/core/element/DefinitionDescriptionElement.js +0 -13
  168. package/core/element/DefinitionDescriptionElement.js.map +0 -1
  169. package/core/element/DefinitionElement.d.ts +0 -5
  170. package/core/element/DefinitionElement.js +0 -13
  171. package/core/element/DefinitionElement.js.map +0 -1
  172. package/core/element/DeletedTextElement.d.ts +0 -7
  173. package/core/element/DeletedTextElement.js +0 -15
  174. package/core/element/DeletedTextElement.js.map +0 -1
  175. package/core/element/DetailsElement.d.ts +0 -9
  176. package/core/element/DetailsElement.js +0 -28
  177. package/core/element/DetailsElement.js.map +0 -1
  178. package/core/element/DialogElement.d.ts +0 -7
  179. package/core/element/DialogElement.js +0 -14
  180. package/core/element/DialogElement.js.map +0 -1
  181. package/core/element/DivElement.d.ts +0 -5
  182. package/core/element/DivElement.js +0 -10
  183. package/core/element/DivElement.js.map +0 -1
  184. package/core/element/EmElement.d.ts +0 -5
  185. package/core/element/EmElement.js +0 -10
  186. package/core/element/EmElement.js.map +0 -1
  187. package/core/element/EmbedElement.d.ts +0 -10
  188. package/core/element/EmbedElement.js +0 -19
  189. package/core/element/EmbedElement.js.map +0 -1
  190. package/core/element/FieldSetElement.d.ts +0 -9
  191. package/core/element/FieldSetElement.js +0 -34
  192. package/core/element/FieldSetElement.js.map +0 -1
  193. package/core/element/FooterElement.d.ts +0 -5
  194. package/core/element/FooterElement.js +0 -13
  195. package/core/element/FooterElement.js.map +0 -1
  196. package/core/element/FormElement.d.ts +0 -20
  197. package/core/element/FormElement.js +0 -36
  198. package/core/element/FormElement.js.map +0 -1
  199. package/core/element/Fragment.d.ts +0 -32
  200. package/core/element/Fragment.js +0 -103
  201. package/core/element/Fragment.js.map +0 -1
  202. package/core/element/H1Element.d.ts +0 -5
  203. package/core/element/H1Element.js +0 -10
  204. package/core/element/H1Element.js.map +0 -1
  205. package/core/element/H2Element.d.ts +0 -5
  206. package/core/element/H2Element.js +0 -10
  207. package/core/element/H2Element.js.map +0 -1
  208. package/core/element/H3Element.d.ts +0 -5
  209. package/core/element/H3Element.js +0 -10
  210. package/core/element/H3Element.js.map +0 -1
  211. package/core/element/H4Element.d.ts +0 -5
  212. package/core/element/H4Element.js +0 -10
  213. package/core/element/H4Element.js.map +0 -1
  214. package/core/element/H5Element.d.ts +0 -5
  215. package/core/element/H5Element.js +0 -10
  216. package/core/element/H5Element.js.map +0 -1
  217. package/core/element/H6Element.d.ts +0 -5
  218. package/core/element/H6Element.js +0 -10
  219. package/core/element/H6Element.js.map +0 -1
  220. package/core/element/HeadElement.d.ts +0 -5
  221. package/core/element/HeadElement.js +0 -11
  222. package/core/element/HeadElement.js.map +0 -1
  223. package/core/element/HeaderElement.d.ts +0 -5
  224. package/core/element/HeaderElement.js +0 -13
  225. package/core/element/HeaderElement.js.map +0 -1
  226. package/core/element/HorizontalRuleElement.d.ts +0 -5
  227. package/core/element/HorizontalRuleElement.js +0 -13
  228. package/core/element/HorizontalRuleElement.js.map +0 -1
  229. package/core/element/HtmlElement.d.ts +0 -9
  230. package/core/element/HtmlElement.js +0 -19
  231. package/core/element/HtmlElement.js.map +0 -1
  232. package/core/element/IFrameElement.d.ts +0 -28
  233. package/core/element/IFrameElement.js +0 -67
  234. package/core/element/IFrameElement.js.map +0 -1
  235. package/core/element/ILayout.d.ts +0 -5
  236. package/core/element/ILayout.js +0 -9
  237. package/core/element/ILayout.js.map +0 -1
  238. package/core/element/IconElement.d.ts +0 -14
  239. package/core/element/IconElement.js +0 -32
  240. package/core/element/IconElement.js.map +0 -1
  241. package/core/element/IdiomaticElement.d.ts +0 -4
  242. package/core/element/IdiomaticElement.js +0 -6
  243. package/core/element/IdiomaticElement.js.map +0 -1
  244. package/core/element/ImageElement.d.ts +0 -19
  245. package/core/element/ImageElement.js +0 -17
  246. package/core/element/ImageElement.js.map +0 -1
  247. package/core/element/InputElement.d.ts +0 -19
  248. package/core/element/InputElement.js +0 -81
  249. package/core/element/InputElement.js.map +0 -1
  250. package/core/element/LabelElement.d.ts +0 -8
  251. package/core/element/LabelElement.js +0 -10
  252. package/core/element/LabelElement.js.map +0 -1
  253. package/core/element/LegendElement.d.ts +0 -7
  254. package/core/element/LegendElement.js +0 -15
  255. package/core/element/LegendElement.js.map +0 -1
  256. package/core/element/ListItemElement.d.ts +0 -12
  257. package/core/element/ListItemElement.js +0 -28
  258. package/core/element/ListItemElement.js.map +0 -1
  259. package/core/element/MainElement.d.ts +0 -5
  260. package/core/element/MainElement.js +0 -10
  261. package/core/element/MainElement.js.map +0 -1
  262. package/core/element/NavElement.d.ts +0 -5
  263. package/core/element/NavElement.js +0 -10
  264. package/core/element/NavElement.js.map +0 -1
  265. package/core/element/OrderedListElement.d.ts +0 -5
  266. package/core/element/OrderedListElement.js +0 -10
  267. package/core/element/OrderedListElement.js.map +0 -1
  268. package/core/element/ParagraphElement.d.ts +0 -5
  269. package/core/element/ParagraphElement.js +0 -10
  270. package/core/element/ParagraphElement.js.map +0 -1
  271. package/core/element/PreElement.d.ts +0 -5
  272. package/core/element/PreElement.js +0 -10
  273. package/core/element/PreElement.js.map +0 -1
  274. package/core/element/SectionElement.d.ts +0 -5
  275. package/core/element/SectionElement.js +0 -12
  276. package/core/element/SectionElement.js.map +0 -1
  277. package/core/element/SelectElement.d.ts +0 -5
  278. package/core/element/SelectElement.js +0 -12
  279. package/core/element/SelectElement.js.map +0 -1
  280. package/core/element/SourceElement.d.ts +0 -8
  281. package/core/element/SourceElement.js +0 -14
  282. package/core/element/SourceElement.js.map +0 -1
  283. package/core/element/SpanElement.d.ts +0 -5
  284. package/core/element/SpanElement.js +0 -10
  285. package/core/element/SpanElement.js.map +0 -1
  286. package/core/element/StrongElement.d.ts +0 -5
  287. package/core/element/StrongElement.js +0 -12
  288. package/core/element/StrongElement.js.map +0 -1
  289. package/core/element/StyleElement.d.ts +0 -5
  290. package/core/element/StyleElement.js +0 -10
  291. package/core/element/StyleElement.js.map +0 -1
  292. package/core/element/SummaryElement.d.ts +0 -5
  293. package/core/element/SummaryElement.js +0 -12
  294. package/core/element/SummaryElement.js.map +0 -1
  295. package/core/element/SvgElement.d.ts +0 -18
  296. package/core/element/SvgElement.js +0 -151
  297. package/core/element/SvgElement.js.map +0 -1
  298. package/core/element/TableBodyElement.d.ts +0 -5
  299. package/core/element/TableBodyElement.js +0 -10
  300. package/core/element/TableBodyElement.js.map +0 -1
  301. package/core/element/TableCellElement.d.ts +0 -10
  302. package/core/element/TableCellElement.js +0 -25
  303. package/core/element/TableCellElement.js.map +0 -1
  304. package/core/element/TableColElement.d.ts +0 -7
  305. package/core/element/TableColElement.js +0 -13
  306. package/core/element/TableColElement.js.map +0 -1
  307. package/core/element/TableColGroupElement.d.ts +0 -7
  308. package/core/element/TableColGroupElement.js +0 -15
  309. package/core/element/TableColGroupElement.js.map +0 -1
  310. package/core/element/TableElement.d.ts +0 -45
  311. package/core/element/TableElement.js +0 -228
  312. package/core/element/TableElement.js.map +0 -1
  313. package/core/element/TableFootElement.d.ts +0 -5
  314. package/core/element/TableFootElement.js +0 -10
  315. package/core/element/TableFootElement.js.map +0 -1
  316. package/core/element/TableFootRowElement.d.ts +0 -9
  317. package/core/element/TableFootRowElement.js +0 -23
  318. package/core/element/TableFootRowElement.js.map +0 -1
  319. package/core/element/TableHeadCellElement.d.ts +0 -10
  320. package/core/element/TableHeadCellElement.js +0 -24
  321. package/core/element/TableHeadCellElement.js.map +0 -1
  322. package/core/element/TableHeadElement.d.ts +0 -5
  323. package/core/element/TableHeadElement.js +0 -10
  324. package/core/element/TableHeadElement.js.map +0 -1
  325. package/core/element/TableHeadRowElement.d.ts +0 -11
  326. package/core/element/TableHeadRowElement.js +0 -29
  327. package/core/element/TableHeadRowElement.js.map +0 -1
  328. package/core/element/TableRowElement.d.ts +0 -11
  329. package/core/element/TableRowElement.js +0 -29
  330. package/core/element/TableRowElement.js.map +0 -1
  331. package/core/element/TextAreaElement.d.ts +0 -7
  332. package/core/element/TextAreaElement.js +0 -10
  333. package/core/element/TextAreaElement.js.map +0 -1
  334. package/core/element/UListElement.d.ts +0 -5
  335. package/core/element/UListElement.js +0 -10
  336. package/core/element/UListElement.js.map +0 -1
  337. package/core/element/VideoElement.d.ts +0 -13
  338. package/core/element/VideoElement.js +0 -16
  339. package/core/element/VideoElement.js.map +0 -1
  340. package/core/element/index.d.ts +0 -72
  341. package/core/element/index.js +0 -73
  342. package/core/element/index.js.map +0 -1
  343. package/core/event/index.d.ts +0 -16
  344. package/core/event/index.js +0 -75
  345. package/core/event/index.js.map +0 -1
  346. package/core/index.js.map +0 -1
  347. package/core/ref/Computed.d.ts +0 -3
  348. package/core/ref/Computed.js +0 -75
  349. package/core/ref/Computed.js.map +0 -1
  350. package/core/ref/RefBoolean.d.ts +0 -91
  351. package/core/ref/RefBoolean.js +0 -119
  352. package/core/ref/RefBoolean.js.map +0 -1
  353. package/core/ref/RefContainer.d.ts +0 -28
  354. package/core/ref/RefContainer.js +0 -114
  355. package/core/ref/RefContainer.js.map +0 -1
  356. package/core/ref/RefList.d.ts +0 -120
  357. package/core/ref/RefList.js +0 -240
  358. package/core/ref/RefList.js.map +0 -1
  359. package/core/ref/RefMap.d.ts +0 -100
  360. package/core/ref/RefMap.js +0 -149
  361. package/core/ref/RefMap.js.map +0 -1
  362. package/core/ref/RefNumber.d.ts +0 -118
  363. package/core/ref/RefNumber.js +0 -157
  364. package/core/ref/RefNumber.js.map +0 -1
  365. package/core/ref/RefObject copy.d.ts +0 -124
  366. package/core/ref/RefObject copy.js +0 -271
  367. package/core/ref/RefObject copy.js.map +0 -1
  368. package/core/ref/RefObject.d.ts +0 -120
  369. package/core/ref/RefObject.js +0 -265
  370. package/core/ref/RefObject.js.map +0 -1
  371. package/core/ref/RefProperty.d.ts +0 -3
  372. package/core/ref/RefProperty.js +0 -46
  373. package/core/ref/RefProperty.js.map +0 -1
  374. package/core/ref/RefSet.d.ts +0 -99
  375. package/core/ref/RefSet.js +0 -148
  376. package/core/ref/RefSet.js.map +0 -1
  377. package/core/ref/RefState.d.ts +0 -25
  378. package/core/ref/RefState.js +0 -89
  379. package/core/ref/RefState.js.map +0 -1
  380. package/core/ref/RefString.d.ts +0 -148
  381. package/core/ref/RefString.js +0 -179
  382. package/core/ref/RefString.js.map +0 -1
  383. package/core/ref/index.d.ts +0 -23
  384. package/core/ref/index.js +0 -71
  385. package/core/ref/index.js.map +0 -1
  386. package/core/router/RouteView.d.ts +0 -20
  387. package/core/router/RouteView.js +0 -84
  388. package/core/router/RouteView.js.map +0 -1
  389. package/core/router/Router.d.ts +0 -78
  390. package/core/router/Router.js +0 -307
  391. package/core/router/Router.js.map +0 -1
  392. package/core/router/RouterEvent.d.ts +0 -36
  393. package/core/router/RouterEvent.js +0 -43
  394. package/core/router/RouterEvent.js.map +0 -1
  395. package/core/router/RouterGuard.d.ts +0 -12
  396. package/core/router/RouterGuard.js +0 -3
  397. package/core/router/RouterGuard.js.map +0 -1
  398. package/core/router/index.d.ts +0 -4
  399. package/core/router/index.js +0 -5
  400. package/core/router/index.js.map +0 -1
  401. package/global/index.js.map +0 -1
  402. package/global/safari-polyfill.d.ts +0 -0
  403. package/global/safari-polyfill.js +0 -234
  404. package/global/safari-polyfill.js.map +0 -1
  405. package/index.js +0 -4
  406. package/index.js.map +0 -1
  407. package/translation/index.d.ts +0 -0
  408. /package/{assets → dist/assets}/index.d.ts +0 -0
  409. /package/{assets → dist/assets}/index.js +0 -0
  410. /package/{assets → dist/assets}/index.js.map +0 -0
@@ -1,28 +0,0 @@
1
- import { Component } from "../../";
2
- export class ListItemElement extends HTMLLIElement {
3
- static TAG = "tc-list-item-element";
4
- constructor(props) {
5
- super();
6
- Component.applyProps(this, props);
7
- }
8
- item = undefined;
9
- removeItem() {
10
- this.dispatchEvent(new CustomEvent("removeItem", { detail: { item: this.item, element: this }, bubbles: true, cancelable: true }));
11
- }
12
- set draggable(value) {
13
- if (value) {
14
- this.addClassName("item-draggable");
15
- this.setAttribute("draggable", "true");
16
- }
17
- else {
18
- this.classList.remove("item-draggable");
19
- this.removeAttribute("draggable");
20
- }
21
- }
22
- get draggable() {
23
- return this.hasAttribute("draggable");
24
- }
25
- onSelect() { }
26
- }
27
- TypeComposer.defineElement(ListItemElement.TAG, ListItemElement, { extends: "li" });
28
- //# sourceMappingURL=ListItemElement.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ListItemElement.js","sourceRoot":"","sources":["../../../src/core/element/ListItemElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEjD,MAAM,OAAO,eAAyB,SAAQ,aAAa;IAC1D,MAAM,CAAU,GAAG,GAAW,sBAAsB,CAAC;IACrD,YAAY,KAA8C;QACzD,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;IACD,IAAI,GAAkB,SAAS,CAAC;IAEhC,UAAU;QACT,IAAI,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,YAAY,EAAE,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IACpI,CAAC;IAED,IAAI,SAAS,CAAC,KAAc;QAC3B,IAAI,KAAK,EAAE,CAAC;YACX,IAAI,CAAC,YAAY,CAAC,gBAAgB,CAAC,CAAC;YACpC,IAAI,CAAC,YAAY,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;QACxC,CAAC;aAAM,CAAC;YACP,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;YACxC,IAAI,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC;QACnC,CAAC;IACF,CAAC;IAED,IAAI,SAAS;QACZ,OAAO,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC;IACvC,CAAC;IAED,QAAQ,KAAW,CAAC;;AAGrB,YAAY,CAAC,aAAa,CAAC,eAAe,CAAC,GAAG,EAAE,eAAe,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC"}
@@ -1,5 +0,0 @@
1
- import { ElementProps } from "../../";
2
- export declare class MainElement extends HTMLElement implements IComponent {
3
- static readonly TAG: string;
4
- constructor(props?: ElementProps);
5
- }
@@ -1,10 +0,0 @@
1
- import { Component } from "../../";
2
- export class MainElement extends HTMLElement {
3
- static TAG = "tc-main-element";
4
- constructor(props) {
5
- super();
6
- Component.applyProps(this, props);
7
- }
8
- }
9
- TypeComposer.defineElement(MainElement.TAG, MainElement, { extends: "main" });
10
- //# sourceMappingURL=MainElement.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MainElement.js","sourceRoot":"","sources":["../../../src/core/element/MainElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEjD,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC3C,MAAM,CAAU,GAAG,GAAW,iBAAiB,CAAC;IAChD,YAAY,KAAoB;QAC/B,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,WAAW,CAAC,GAAG,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC"}
@@ -1,5 +0,0 @@
1
- import { ElementProps } from "../../";
2
- export declare class NavElement extends HTMLElement implements IComponent {
3
- static readonly TAG: string;
4
- constructor(props?: ElementProps);
5
- }
@@ -1,10 +0,0 @@
1
- import { Component } from "../../";
2
- export class NavElement extends HTMLElement {
3
- static TAG = "tc-nav-element";
4
- constructor(props) {
5
- super();
6
- Component.applyProps(this, props);
7
- }
8
- }
9
- TypeComposer.defineElement(NavElement.TAG, NavElement, { extends: "nav" });
10
- //# sourceMappingURL=NavElement.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NavElement.js","sourceRoot":"","sources":["../../../src/core/element/NavElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEjD,MAAM,OAAO,UAAW,SAAQ,WAAW;IAC1C,MAAM,CAAU,GAAG,GAAW,gBAAgB,CAAC;IAC/C,YAAY,KAAoB;QAC/B,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,UAAU,CAAC,GAAG,EAAE,UAAU,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC"}
@@ -1,5 +0,0 @@
1
- import { ElementProps } from "../../";
2
- export declare class OrderedListElement extends HTMLOListElement implements IComponent {
3
- static readonly TAG: string;
4
- constructor(props?: ElementProps);
5
- }
@@ -1,10 +0,0 @@
1
- import { Component } from "../../";
2
- export class OrderedListElement extends HTMLOListElement {
3
- static TAG = "tc-ol-element";
4
- constructor(props) {
5
- super();
6
- Component.applyProps(this, props);
7
- }
8
- }
9
- TypeComposer.defineElement(OrderedListElement.TAG, OrderedListElement, { extends: "ol" });
10
- //# sourceMappingURL=OrderedListElement.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OrderedListElement.js","sourceRoot":"","sources":["../../../src/core/element/OrderedListElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEjD,MAAM,OAAO,kBAAmB,SAAQ,gBAAgB;IACvD,MAAM,CAAU,GAAG,GAAW,eAAe,CAAC;IAC9C,YAAY,KAAoB;QAC/B,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,kBAAkB,CAAC,GAAG,EAAE,kBAAkB,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC"}
@@ -1,5 +0,0 @@
1
- import { ElementProps } from "../../";
2
- export declare class ParagraphElement extends HTMLParagraphElement implements IComponent {
3
- static readonly TAG: string;
4
- constructor(props?: ElementProps);
5
- }
@@ -1,10 +0,0 @@
1
- import { Component } from "../../";
2
- export class ParagraphElement extends HTMLParagraphElement {
3
- static TAG = "tc-p-element";
4
- constructor(props) {
5
- super();
6
- Component.applyProps(this, props);
7
- }
8
- }
9
- TypeComposer.defineElement(ParagraphElement.TAG, ParagraphElement, { extends: "p" });
10
- //# sourceMappingURL=ParagraphElement.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ParagraphElement.js","sourceRoot":"","sources":["../../../src/core/element/ParagraphElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEjD,MAAM,OAAO,gBAAiB,SAAQ,oBAAoB;IACzD,MAAM,CAAU,GAAG,GAAW,cAAc,CAAC;IAC7C,YAAY,KAAoB;QAC/B,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,gBAAgB,CAAC,GAAG,EAAE,gBAAgB,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC"}
@@ -1,5 +0,0 @@
1
- import { ElementProps } from "../../";
2
- export declare class PreElement extends HTMLPreElement implements IComponent {
3
- static readonly TAG: string;
4
- constructor(props?: ElementProps);
5
- }
@@ -1,10 +0,0 @@
1
- import { Component } from "../../";
2
- export class PreElement extends HTMLPreElement {
3
- static TAG = "tc-pre-element";
4
- constructor(props) {
5
- super();
6
- Component.applyProps(this, props);
7
- }
8
- }
9
- TypeComposer.defineElement(PreElement.TAG, PreElement, { extends: "pre" });
10
- //# sourceMappingURL=PreElement.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PreElement.js","sourceRoot":"","sources":["../../../src/core/element/PreElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEjD,MAAM,OAAO,UAAW,SAAQ,cAAc;IAC7C,MAAM,CAAU,GAAG,GAAW,gBAAgB,CAAC;IAC/C,YAAY,KAAoB;QAC/B,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,UAAU,CAAC,GAAG,EAAE,UAAU,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC"}
@@ -1,5 +0,0 @@
1
- import { ElementProps } from "../../";
2
- export declare class SectionElement extends HTMLElement implements IComponent {
3
- static readonly TAG: string;
4
- constructor(props?: ElementProps);
5
- }
@@ -1,12 +0,0 @@
1
- import { Component } from "../../";
2
- export class SectionElement extends HTMLElement {
3
- static TAG = "tc-section-element";
4
- constructor(props) {
5
- super();
6
- Component.applyProps(this, props);
7
- }
8
- }
9
- TypeComposer.defineElement(SectionElement.TAG, SectionElement, {
10
- extends: "section",
11
- });
12
- //# sourceMappingURL=SectionElement.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SectionElement.js","sourceRoot":"","sources":["../../../src/core/element/SectionElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEjD,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC9C,MAAM,CAAU,GAAG,GAAW,oBAAoB,CAAC;IACnD,YAAY,KAAoB;QAC/B,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,cAAc,CAAC,GAAG,EAAE,cAAc,EAAE;IAC9D,OAAO,EAAE,SAAS;CAClB,CAAC,CAAC"}
@@ -1,5 +0,0 @@
1
- import { ElementProps } from "../../";
2
- export declare class SelectElement extends HTMLSelectElement implements IComponent {
3
- static readonly TAG: string;
4
- constructor(props?: ElementProps);
5
- }
@@ -1,12 +0,0 @@
1
- import { Component } from "../../";
2
- export class SelectElement extends HTMLSelectElement {
3
- static TAG = "tc-select-element";
4
- constructor(props) {
5
- super();
6
- Component.applyProps(this, props);
7
- }
8
- }
9
- TypeComposer.defineElement(SelectElement.TAG, SelectElement, {
10
- extends: "select",
11
- });
12
- //# sourceMappingURL=SelectElement.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SelectElement.js","sourceRoot":"","sources":["../../../src/core/element/SelectElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEjD,MAAM,OAAO,aAAc,SAAQ,iBAAiB;IACnD,MAAM,CAAU,GAAG,GAAW,mBAAmB,CAAC;IAClD,YAAY,KAAoB;QAC/B,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,aAAa,CAAC,GAAG,EAAE,aAAa,EAAE;IAC5D,OAAO,EAAE,QAAQ;CACjB,CAAC,CAAC"}
@@ -1,8 +0,0 @@
1
- import { ElementProps } from "../../";
2
- export declare class SourceElement extends HTMLSourceElement implements IComponent {
3
- static readonly TAG: string;
4
- constructor(props?: ElementProps & {
5
- src?: string;
6
- type?: string;
7
- });
8
- }
@@ -1,14 +0,0 @@
1
- import { Component } from "../../";
2
- export class SourceElement extends HTMLSourceElement {
3
- static TAG = "tc-source-element";
4
- constructor(props) {
5
- super();
6
- if (props?.src)
7
- this.src = props.src;
8
- if (props?.type)
9
- this.type = props.type;
10
- Component.applyProps(this, props);
11
- }
12
- }
13
- TypeComposer.defineElement(SourceElement.TAG, SourceElement, { extends: "source" });
14
- //# sourceMappingURL=SourceElement.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SourceElement.js","sourceRoot":"","sources":["../../../src/core/element/SourceElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEjD,MAAM,OAAO,aAAc,SAAQ,iBAAiB;IACnD,MAAM,CAAU,GAAG,GAAW,mBAAmB,CAAC;IAClD,YACC,KAGC;QAED,KAAK,EAAE,CAAC;QACR,IAAI,KAAK,EAAE,GAAG;YAAE,IAAI,CAAC,GAAG,GAAG,KAAK,CAAC,GAAU,CAAC;QAC5C,IAAI,KAAK,EAAE,IAAI;YAAE,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAW,CAAC;QAC/C,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,aAAa,CAAC,GAAG,EAAE,aAAa,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC"}
@@ -1,5 +0,0 @@
1
- import { ElementProps } from "../../";
2
- export declare class SpanElement extends HTMLSpanElement implements IComponent {
3
- static readonly TAG: string;
4
- constructor(props?: ElementProps);
5
- }
@@ -1,10 +0,0 @@
1
- import { Component } from "../../";
2
- export class SpanElement extends HTMLSpanElement {
3
- static TAG = "tc-span-element";
4
- constructor(props) {
5
- super();
6
- Component.applyProps(this, props);
7
- }
8
- }
9
- TypeComposer.defineElement(SpanElement.TAG, SpanElement, { extends: "span" });
10
- //# sourceMappingURL=SpanElement.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SpanElement.js","sourceRoot":"","sources":["../../../src/core/element/SpanElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEjD,MAAM,OAAO,WAAY,SAAQ,eAAe;IAC/C,MAAM,CAAU,GAAG,GAAW,iBAAiB,CAAC;IAChD,YAAY,KAAoB;QAC/B,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,WAAW,CAAC,GAAG,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC"}
@@ -1,5 +0,0 @@
1
- import { ElementProps } from "../../";
2
- export declare class StrongElement extends HTMLSpanElement implements IComponent {
3
- static readonly TAG: string;
4
- constructor(props?: ElementProps);
5
- }
@@ -1,12 +0,0 @@
1
- import { Component } from "../../";
2
- export class StrongElement extends HTMLSpanElement {
3
- static TAG = "tc-strong-element";
4
- constructor(props) {
5
- super();
6
- Component.applyProps(this, props);
7
- }
8
- }
9
- TypeComposer.defineElement(StrongElement.TAG, StrongElement, {
10
- extends: "strong",
11
- });
12
- //# sourceMappingURL=StrongElement.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StrongElement.js","sourceRoot":"","sources":["../../../src/core/element/StrongElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEjD,MAAM,OAAO,aAAc,SAAQ,eAAe;IACjD,MAAM,CAAU,GAAG,GAAW,mBAAmB,CAAC;IAClD,YAAY,KAAoB;QAC/B,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,aAAa,CAAC,GAAG,EAAE,aAAa,EAAE;IAC5D,OAAO,EAAE,QAAQ;CACjB,CAAC,CAAC"}
@@ -1,5 +0,0 @@
1
- import { ElementProps } from "../../";
2
- export declare class StyleElement extends HTMLStyleElement implements IComponent {
3
- static readonly TAG: string;
4
- constructor(props?: ElementProps);
5
- }
@@ -1,10 +0,0 @@
1
- import { Component } from "../../";
2
- export class StyleElement extends HTMLStyleElement {
3
- static TAG = "tc-style-element";
4
- constructor(props) {
5
- super();
6
- Component.applyProps(this, props);
7
- }
8
- }
9
- TypeComposer.defineElement(StyleElement.TAG, StyleElement, { extends: "style" });
10
- //# sourceMappingURL=StyleElement.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StyleElement.js","sourceRoot":"","sources":["../../../src/core/element/StyleElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEjD,MAAM,OAAO,YAAa,SAAQ,gBAAgB;IACjD,MAAM,CAAU,GAAG,GAAW,kBAAkB,CAAC;IACjD,YAAY,KAAoB;QAC/B,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,YAAY,CAAC,GAAG,EAAE,YAAY,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC"}
@@ -1,5 +0,0 @@
1
- import { ElementProps } from "../../";
2
- export declare class SummaryElement extends HTMLElement implements IComponent {
3
- static readonly TAG: string;
4
- constructor(props?: ElementProps);
5
- }
@@ -1,12 +0,0 @@
1
- import { Component } from "../../";
2
- export class SummaryElement extends HTMLElement {
3
- static TAG = "base-summary-element";
4
- constructor(props) {
5
- super();
6
- Component.applyProps(this, props);
7
- }
8
- }
9
- TypeComposer.defineElement(SummaryElement.TAG, SummaryElement, {
10
- extends: "summary",
11
- });
12
- //# sourceMappingURL=SummaryElement.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SummaryElement.js","sourceRoot":"","sources":["../../../src/core/element/SummaryElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEjD,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC9C,MAAM,CAAU,GAAG,GAAW,sBAAsB,CAAC;IACrD,YAAY,KAAoB;QAC/B,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,cAAc,CAAC,GAAG,EAAE,cAAc,EAAE;IAC9D,OAAO,EAAE,SAAS;CAClB,CAAC,CAAC"}
@@ -1,18 +0,0 @@
1
- import { ElementProps } from "../../";
2
- interface SvgBaseElement extends IComponent {
3
- src?: string;
4
- readonly complete: boolean;
5
- }
6
- interface SvgConstructor {
7
- new (props?: ElementProps & {
8
- src?: string;
9
- }): SvgBaseElement;
10
- }
11
- declare const SvgBaseElement: SvgConstructor;
12
- export declare class SvgElement extends SvgBaseElement {
13
- static readonly TAG: string;
14
- constructor(props?: ElementProps & {
15
- src?: string;
16
- });
17
- }
18
- export {};
@@ -1,151 +0,0 @@
1
- import { Component, DivElement } from "../../";
2
- const svgAssets = new Map();
3
- function svgCopy(src, dst) {
4
- if (!src || !dst)
5
- return;
6
- for (let i = 0; i < src.attributes.length; i++) {
7
- const attr = src.attributes[i];
8
- dst.setAttribute(attr.name, attr.value);
9
- }
10
- while (dst.firstChild) {
11
- dst.removeChild(dst.firstChild);
12
- }
13
- for (let i = 0; i < src.childNodes.length; i++) {
14
- const clonedNode = src.childNodes[i].cloneNode(true);
15
- dst.appendChild(clonedNode);
16
- }
17
- }
18
- const applySvg = (svg, src, svgText) => {
19
- if (svgText && svgText.length > 0 && (svgText.startsWith("<?xml") || svgText.includes("<svg"))) {
20
- const parser = new DOMParser();
21
- const doc = parser.parseFromString(svgText, "image/svg+xml");
22
- const parserErrors = doc.getElementsByTagName("parsererror");
23
- // @ts-ignore
24
- const newSvg = doc.querySelector("svg");
25
- if (parserErrors.length == 0 && newSvg && newSvg?.tagName == "svg") {
26
- svgCopy(newSvg, svg);
27
- // @ts-ignore
28
- svg.complete = true;
29
- svg.dispatchEvent(new CustomEvent("load"));
30
- if (src)
31
- svgAssets.set(src, svgText);
32
- // @ts-ignore
33
- if (svg.onLoad)
34
- svg.onLoad();
35
- return true;
36
- }
37
- }
38
- else {
39
- svg.dispatchEvent(new CustomEvent("error"));
40
- // @ts-ignore
41
- if (svg.onError)
42
- svg.onError();
43
- }
44
- return false;
45
- };
46
- const SvgBaseElement = function (props) {
47
- if (props?.src && props.src.includes("<svg") && props.src.includes("</svg>")) {
48
- const div = new DivElement();
49
- div.innerHTML = props.src;
50
- const svg = div.firstElementChild;
51
- if (svg)
52
- Component.applyProps(svg, props);
53
- Object.defineProperty(svg, "src", {
54
- get: () => "",
55
- set: () => {
56
- console.warn("svg static: src is readonly");
57
- },
58
- });
59
- return svg;
60
- }
61
- // @ts-ignore
62
- const svg = document.createElementNS("http://www.w3.org/2000/svg", "svg");
63
- const callback = (mutationsList) => {
64
- for (const mutation of mutationsList) {
65
- if (mutation.type === "attributes" && mutation.attributeName == "src") {
66
- // @ts-ignore
67
- svg.complete = false;
68
- const src = mutation.target?.getAttribute(mutation.attributeName) || "";
69
- if (src.endsWith(".svg")) {
70
- const svgText = svgAssets.get(src);
71
- if (svgText) {
72
- applySvg(svg, undefined, svgText);
73
- }
74
- else {
75
- const currentDomain = window.location.origin;
76
- const urlObject = new URL(src, currentDomain);
77
- if (urlObject.origin === currentDomain) {
78
- fetch(src, {
79
- method: "GET",
80
- headers: {
81
- "Content-Type": "image/svg+xml",
82
- Accept: "image/svg+xml",
83
- },
84
- credentials: "same-origin",
85
- })
86
- .then(async (response) => {
87
- if (response.ok) {
88
- const svgText = await response.text();
89
- applySvg(svg, src, svgText);
90
- }
91
- })
92
- .catch(() => {
93
- // @ts-ignore
94
- svg.complete = true;
95
- applySvg(svg, undefined, document.createElementNS("http://www.w3.org/2000/svg", "svg").outerHTML);
96
- svg.dispatchEvent(new CustomEvent("error"));
97
- // @ts-ignore
98
- if (svg.onError)
99
- svg.onError();
100
- });
101
- }
102
- else {
103
- applySvg(svg, undefined, document.createElementNS("http://www.w3.org/2000/svg", "svg").outerHTML);
104
- // @ts-ignore
105
- svg.complete = true;
106
- svg.dispatchEvent(new CustomEvent("error"));
107
- // @ts-ignore
108
- if (svg.onError)
109
- svg.onError();
110
- }
111
- }
112
- }
113
- else {
114
- applySvg(svg, undefined, document.createElementNS("http://www.w3.org/2000/svg", "svg").outerHTML);
115
- // @ts-ignore
116
- svg.complete = true;
117
- svg.dispatchEvent(new CustomEvent("error"));
118
- // @ts-ignore
119
- if (svg.onError)
120
- svg.onError();
121
- }
122
- }
123
- }
124
- };
125
- const observer = new MutationObserver(callback);
126
- observer.observe(svg, {
127
- attributes: true,
128
- childList: false,
129
- subtree: false,
130
- attributeOldValue: true,
131
- attributeFilter: ["src"],
132
- });
133
- // @ts-ignore
134
- Component.applyProps(svg, props);
135
- svg.src = props.src;
136
- Object.defineProperty(svg, "__observer__", {
137
- value: observer,
138
- writable: false,
139
- enumerable: false,
140
- configurable: false,
141
- });
142
- // @ts-ignore
143
- return svg;
144
- };
145
- export class SvgElement extends SvgBaseElement {
146
- static TAG = "svg";
147
- constructor(props) {
148
- super(props);
149
- }
150
- }
151
- //# sourceMappingURL=SvgElement.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SvgElement.js","sourceRoot":"","sources":["../../../src/core/element/SvgElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAW7D,MAAM,SAAS,GAAG,IAAI,GAAG,EAAkB,CAAC;AAE5C,SAAS,OAAO,CAAC,GAAe,EAAE,GAAe;IAChD,IAAI,CAAC,GAAG,IAAI,CAAC,GAAG;QAAE,OAAO;IACzB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QAChD,MAAM,IAAI,GAAG,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;QAC/B,GAAG,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;IACzC,CAAC;IACD,OAAO,GAAG,CAAC,UAAU,EAAE,CAAC;QACvB,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IACjC,CAAC;IACD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QAChD,MAAM,UAAU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C,GAAG,EAAE,cAAc,EAAE;QAC1C,KAAK,EAAE,QAAQ;QACf,QAAQ,EAAE,KAAK;QACf,UAAU,EAAE,KAAK;QACjB,YAAY,EAAE,KAAK;KACnB,CAAC,CAAC;IACH,aAAa;IACb,OAAO,GAAG,CAAC;AACZ,CAAmB,CAAC;AAEpB,MAAM,OAAO,UAAW,SAAQ,cAAc;IAC7C,MAAM,CAAU,GAAG,GAAW,KAAK,CAAC;IACpC,YAAY,KAAuC;QAClD,KAAK,CAAC,KAAK,CAAC,CAAC;IACd,CAAC"}
@@ -1,5 +0,0 @@
1
- import { ElementProps } from "../../";
2
- export declare class TableBodyElement extends HTMLTableSectionElement implements IComponent {
3
- static readonly TAG: string;
4
- constructor(props?: ElementProps);
5
- }
@@ -1,10 +0,0 @@
1
- import { Component } from "../../";
2
- export class TableBodyElement extends HTMLTableSectionElement {
3
- static TAG = "tc-tbody-element";
4
- constructor(props) {
5
- super();
6
- Component.applyProps(this, props);
7
- }
8
- }
9
- TypeComposer.defineElement(TableBodyElement.TAG, TableBodyElement, { extends: "tbody" });
10
- //# sourceMappingURL=TableBodyElement.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TableBodyElement.js","sourceRoot":"","sources":["../../../src/core/element/TableBodyElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEjD,MAAM,OAAO,gBAAiB,SAAQ,uBAAuB;IAC5D,MAAM,CAAU,GAAG,GAAW,kBAAkB,CAAC;IACjD,YAAY,KAAoB;QAC/B,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,gBAAgB,CAAC,GAAG,EAAE,gBAAgB,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC"}
@@ -1,10 +0,0 @@
1
- import { ElementProps } from "../../";
2
- export declare class TableCellElement extends HTMLTableCellElement implements IComponent {
3
- static readonly TAG: string;
4
- constructor(props?: ElementProps & {
5
- colspan?: number;
6
- rowspan?: number;
7
- child?: HTMLElement;
8
- value?: string | number | HTMLElement;
9
- });
10
- }
@@ -1,25 +0,0 @@
1
- import { Component } from "../../";
2
- export class TableCellElement extends HTMLTableCellElement {
3
- static TAG = "tc-td-element";
4
- constructor(props) {
5
- super();
6
- if (props?.colspan)
7
- this.colSpan = props.colspan;
8
- if (props?.rowspan)
9
- this.rowSpan = props.rowspan;
10
- if (props?.value) {
11
- if (props.value instanceof HTMLElement)
12
- this.appendChild(props.value);
13
- else
14
- this.innerHTML = props.value.toString();
15
- }
16
- //this.#value = props?.value;
17
- if (props?.child)
18
- this.appendChild(props.child);
19
- delete props?.child;
20
- delete props?.value;
21
- Component.applyProps(this, props);
22
- }
23
- }
24
- TypeComposer.defineElement(TableCellElement.TAG, TableCellElement, { extends: "td" });
25
- //# sourceMappingURL=TableCellElement.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TableCellElement.js","sourceRoot":"","sources":["../../../src/core/element/TableCellElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEjD,MAAM,OAAO,gBAAiB,SAAQ,oBAAoB;IACzD,MAAM,CAAU,GAAG,GAAW,eAAe,CAAC;IAC9C,YACC,KAKC;QAED,KAAK,EAAE,CAAC;QACR,IAAI,KAAK,EAAE,OAAO;YAAE,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;QACjD,IAAI,KAAK,EAAE,OAAO;YAAE,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;QACjD,IAAI,KAAK,EAAE,KAAK,EAAE,CAAC;YAClB,IAAI,KAAK,CAAC,KAAK,YAAY,WAAW;gBAAE,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;;gBACjE,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;QAC9C,CAAC;QACD,6BAA6B;QAC7B,IAAI,KAAK,EAAE,KAAK;YAAE,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAChD,OAAO,KAAK,EAAE,KAAK,CAAC;QACpB,OAAO,KAAK,EAAE,KAAK,CAAC;QACpB,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,gBAAgB,CAAC,GAAG,EAAE,gBAAgB,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC"}
@@ -1,7 +0,0 @@
1
- import { ElementProps } from "../../";
2
- export declare class TableColElement extends HTMLTableColElement implements IComponent {
3
- static readonly TAG: string;
4
- constructor(props?: ElementProps & {
5
- span?: number;
6
- });
7
- }
@@ -1,13 +0,0 @@
1
- import { Component } from "../../";
2
- // <col>
3
- export class TableColElement extends HTMLTableColElement {
4
- static TAG = "tc-col-element";
5
- constructor(props) {
6
- super();
7
- if (props?.span)
8
- this.span = props.span;
9
- Component.applyProps(this, props);
10
- }
11
- }
12
- TypeComposer.defineElement(TableColElement.TAG, TableColElement, { extends: "col" });
13
- //# sourceMappingURL=TableColElement.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TableColElement.js","sourceRoot":"","sources":["../../../src/core/element/TableColElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,QAAQ,CAAC;AACjD,QAAQ;AACR,MAAM,OAAO,eAAgB,SAAQ,mBAAmB;IACvD,MAAM,CAAU,GAAG,GAAW,gBAAgB,CAAC;IAC/C,YACC,KAEC;QAED,KAAK,EAAE,CAAC;QACR,IAAI,KAAK,EAAE,IAAI;YAAE,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAW,CAAC;QAC/C,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,eAAe,CAAC,GAAG,EAAE,eAAe,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC"}
@@ -1,7 +0,0 @@
1
- import { ElementProps } from "../../";
2
- export declare class TableColGroupElement extends HTMLTableColElement implements IComponent {
3
- static readonly TAG: string;
4
- constructor(props?: ElementProps & {
5
- span?: number;
6
- });
7
- }
@@ -1,15 +0,0 @@
1
- import { Component } from "../../";
2
- // <colgroup>
3
- export class TableColGroupElement extends HTMLTableColElement {
4
- static TAG = "tc-colgroup-element";
5
- constructor(props) {
6
- super();
7
- if (props?.span)
8
- this.span = props.span;
9
- Component.applyProps(this, props);
10
- }
11
- }
12
- TypeComposer.defineElement(TableColGroupElement.TAG, TableColGroupElement, {
13
- extends: "colgroup",
14
- });
15
- //# sourceMappingURL=TableColGroupElement.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TableColGroupElement.js","sourceRoot":"","sources":["../../../src/core/element/TableColGroupElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,QAAQ,CAAC;AACjD,aAAa;AACb,MAAM,OAAO,oBAAqB,SAAQ,mBAAmB;IAC5D,MAAM,CAAU,GAAG,GAAW,qBAAqB,CAAC;IACpD,YACC,KAEC;QAED,KAAK,EAAE,CAAC;QACR,IAAI,KAAK,EAAE,IAAI;YAAE,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAW,CAAC;QAC/C,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,oBAAoB,CAAC,GAAG,EAAE,oBAAoB,EAAE;IAC1E,OAAO,EAAE,UAAU;CACnB,CAAC,CAAC"}