typecomposer 0.1.49 → 0.1.50

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 (399) hide show
  1. package/assets/index.js +1 -0
  2. package/core/components/AlertPanel.d.ts +32 -0
  3. package/core/components/AlertPanel.js +1 -0
  4. package/core/components/AlertPanel.js.map +1 -0
  5. package/core/components/AvatarPanel.d.ts +21 -0
  6. package/core/components/AvatarPanel.js +1 -0
  7. package/core/components/AvatarPanel.js.map +1 -0
  8. package/core/components/BorderPanel.d.ts +28 -0
  9. package/core/components/BorderPanel.js +1 -0
  10. package/core/components/BorderPanel.js.map +1 -0
  11. package/core/components/CardPanel.d.ts +5 -0
  12. package/core/components/CardPanel.js +1 -0
  13. package/core/components/CardPanel.js.map +1 -0
  14. package/core/components/CheckBox.d.ts +36 -0
  15. package/core/components/CheckBox.js +1 -0
  16. package/core/components/CheckBox.js.map +1 -0
  17. package/core/components/ColorPicker.d.ts +10 -0
  18. package/core/components/ColorPicker.js +1 -0
  19. package/core/components/ColorPicker.js.map +1 -0
  20. package/core/components/ContextMenu.d.ts +16 -0
  21. package/core/components/ContextMenu.js +1 -0
  22. package/core/components/ContextMenu.js.map +1 -0
  23. package/core/components/DialogPanel.d.ts +15 -0
  24. package/core/components/DialogPanel.js +1 -0
  25. package/core/components/DialogPanel.js.map +1 -0
  26. package/core/components/DropDown.d.ts +54 -0
  27. package/core/components/DropDown.js +1 -0
  28. package/core/components/DropDown.js.map +1 -0
  29. package/core/components/FlowPanel.d.ts +11 -0
  30. package/core/components/FlowPanel.js +1 -0
  31. package/core/components/FlowPanel.js.map +1 -0
  32. package/core/components/ForEach.d.ts +11 -0
  33. package/core/components/ForEach.js +1 -0
  34. package/core/components/ForEach.js.map +1 -0
  35. package/core/components/GridPanel.d.ts +7 -0
  36. package/core/components/GridPanel.js +1 -0
  37. package/core/components/GridPanel.js.map +1 -0
  38. package/core/components/HBox.d.ts +5 -0
  39. package/core/components/HBox.js +1 -0
  40. package/core/components/HBox.js.map +1 -0
  41. package/core/components/LazyLoading.d.ts +19 -0
  42. package/core/components/LazyLoading.js +1 -0
  43. package/core/components/LazyLoading.js.map +1 -0
  44. package/core/components/ListPanel.d.ts +27 -0
  45. package/core/components/ListPanel.js +1 -0
  46. package/core/components/ListPanel.js.map +1 -0
  47. package/core/components/PopUpButton.d.ts +18 -0
  48. package/core/components/PopUpButton.js +1 -0
  49. package/core/components/PopUpButton.js.map +1 -0
  50. package/core/components/ScrollPanel.d.ts +14 -0
  51. package/core/components/ScrollPanel.js +1 -0
  52. package/core/components/ScrollPanel.js.map +1 -0
  53. package/core/components/SliderPanel.d.ts +7 -0
  54. package/core/components/SliderPanel.js +1 -0
  55. package/core/components/SliderPanel.js.map +1 -0
  56. package/core/components/StackPanel.d.ts +5 -0
  57. package/core/components/StackPanel.js +1 -0
  58. package/core/components/StackPanel.js.map +1 -0
  59. package/core/components/TabItem.d.ts +19 -0
  60. package/core/components/TabItem.js +1 -0
  61. package/core/components/TabItem.js.map +1 -0
  62. package/core/components/TabPanel.d.ts +25 -0
  63. package/core/components/TabPanel.js +1 -0
  64. package/core/components/TabPanel.js.map +1 -0
  65. package/core/components/TextEdit.d.ts +32 -0
  66. package/core/components/TextEdit.js +1 -0
  67. package/core/components/TextEdit.js.map +1 -0
  68. package/core/components/TextField.d.ts +34 -0
  69. package/core/components/TextField.js +1 -0
  70. package/core/components/TextField.js.map +1 -0
  71. package/core/components/ToggleButton.d.ts +7 -0
  72. package/core/components/ToggleButton.js +1 -0
  73. package/core/components/ToggleButton.js.map +1 -0
  74. package/core/components/Tooltip.d.ts +8 -0
  75. package/core/components/Tooltip.js +1 -0
  76. package/core/components/Tooltip.js.map +1 -0
  77. package/core/components/VBox.d.ts +5 -0
  78. package/core/components/VBox.js +1 -0
  79. package/core/components/VBox.js.map +1 -0
  80. package/core/components/VirtualScroll.d.ts +20 -0
  81. package/core/components/VirtualScroll.js +1 -0
  82. package/core/components/VirtualScroll.js.map +1 -0
  83. package/core/components/index.d.ts +27 -0
  84. package/core/components/index.js +1 -0
  85. package/core/components/index.js.map +1 -0
  86. package/core/decorators/RegisterComponent.d.ts +8 -0
  87. package/core/decorators/RegisterComponent.js +1 -0
  88. package/core/decorators/RegisterComponent.js.map +1 -0
  89. package/core/decorators/StyleLink.d.ts +1 -0
  90. package/core/decorators/StyleLink.js +1 -0
  91. package/core/decorators/StyleLink.js.map +1 -0
  92. package/core/decorators/index.d.ts +4 -0
  93. package/core/decorators/index.js +1 -0
  94. package/core/decorators/index.js.map +1 -0
  95. package/core/element/AbbreviationElement.d.ts +5 -0
  96. package/core/element/AbbreviationElement.js +1 -0
  97. package/core/element/AbbreviationElement.js.map +1 -0
  98. package/core/element/AnchorElement.d.ts +8 -0
  99. package/core/element/AnchorElement.js +1 -0
  100. package/core/element/AnchorElement.js.map +1 -0
  101. package/core/element/AreaElement.d.ts +5 -0
  102. package/core/element/AreaElement.js +1 -0
  103. package/core/element/AreaElement.js.map +1 -0
  104. package/core/element/ArticleElement.d.ts +5 -0
  105. package/core/element/ArticleElement.js +1 -0
  106. package/core/element/ArticleElement.js.map +1 -0
  107. package/core/element/AudioElement.d.ts +5 -0
  108. package/core/element/AudioElement.js +1 -0
  109. package/core/element/AudioElement.js.map +1 -0
  110. package/core/element/BaseElement.d.ts +5 -0
  111. package/core/element/BaseElement.js +1 -0
  112. package/core/element/BaseElement.js.map +1 -0
  113. package/core/element/BodyElement.d.ts +5 -0
  114. package/core/element/BodyElement.js +1 -0
  115. package/core/element/BodyElement.js.map +1 -0
  116. package/core/element/BoldElement.d.ts +5 -0
  117. package/core/element/BoldElement.js +1 -0
  118. package/core/element/BoldElement.js.map +1 -0
  119. package/core/element/BreakElement.d.ts +5 -0
  120. package/core/element/BreakElement.js +1 -0
  121. package/core/element/BreakElement.js.map +1 -0
  122. package/core/element/ButtonElement.d.ts +9 -0
  123. package/core/element/ButtonElement.js +1 -0
  124. package/core/element/ButtonElement.js.map +1 -0
  125. package/core/element/CanvasElement.d.ts +5 -0
  126. package/core/element/CanvasElement.js +1 -0
  127. package/core/element/CanvasElement.js.map +1 -0
  128. package/core/element/CaptionElement.d.ts +5 -0
  129. package/core/element/CaptionElement.js +1 -0
  130. package/core/element/CaptionElement.js.map +1 -0
  131. package/core/element/CiteElement.d.ts +5 -0
  132. package/core/element/CiteElement.js +1 -0
  133. package/core/element/CiteElement.js.map +1 -0
  134. package/core/element/CodeElement.d.ts +7 -0
  135. package/core/element/CodeElement.js +1 -0
  136. package/core/element/CodeElement.js.map +1 -0
  137. package/core/element/DataListElement.d.ts +5 -0
  138. package/core/element/DataListElement.js +1 -0
  139. package/core/element/DataListElement.js.map +1 -0
  140. package/core/element/DefinitionDescriptionElement.d.ts +5 -0
  141. package/core/element/DefinitionDescriptionElement.js +1 -0
  142. package/core/element/DefinitionDescriptionElement.js.map +1 -0
  143. package/core/element/DefinitionElement.d.ts +5 -0
  144. package/core/element/DefinitionElement.js +1 -0
  145. package/core/element/DefinitionElement.js.map +1 -0
  146. package/core/element/DeletedTextElement.d.ts +5 -0
  147. package/core/element/DeletedTextElement.js +1 -0
  148. package/core/element/DeletedTextElement.js.map +1 -0
  149. package/core/element/DetailsElement.d.ts +6 -0
  150. package/core/element/DetailsElement.js +1 -0
  151. package/core/element/DetailsElement.js.map +1 -0
  152. package/core/element/DialogElement.d.ts +5 -0
  153. package/core/element/DialogElement.js +1 -0
  154. package/core/element/DialogElement.js.map +1 -0
  155. package/core/element/DivElement.d.ts +5 -0
  156. package/core/element/DivElement.js +1 -0
  157. package/core/element/DivElement.js.map +1 -0
  158. package/core/element/EmElement.d.ts +5 -0
  159. package/core/element/EmElement.js +1 -0
  160. package/core/element/EmElement.js.map +1 -0
  161. package/core/element/EmbedElement.d.ts +5 -0
  162. package/core/element/EmbedElement.js +1 -0
  163. package/core/element/EmbedElement.js.map +1 -0
  164. package/core/element/FieldSetElement.d.ts +6 -0
  165. package/core/element/FieldSetElement.js +1 -0
  166. package/core/element/FieldSetElement.js.map +1 -0
  167. package/core/element/FooterElement.d.ts +5 -0
  168. package/core/element/FooterElement.js +1 -0
  169. package/core/element/FooterElement.js.map +1 -0
  170. package/core/element/FormElement.d.ts +5 -0
  171. package/core/element/FormElement.js +1 -0
  172. package/core/element/FormElement.js.map +1 -0
  173. package/core/element/Fragment.d.ts +32 -0
  174. package/core/element/Fragment.js +1 -0
  175. package/core/element/Fragment.js.map +1 -0
  176. package/core/element/H1Element.d.ts +5 -0
  177. package/core/element/H1Element.js +1 -0
  178. package/core/element/H1Element.js.map +1 -0
  179. package/core/element/H2Element.d.ts +5 -0
  180. package/core/element/H2Element.js +1 -0
  181. package/core/element/H2Element.js.map +1 -0
  182. package/core/element/H3Element.d.ts +5 -0
  183. package/core/element/H3Element.js +1 -0
  184. package/core/element/H3Element.js.map +1 -0
  185. package/core/element/H4Element.d.ts +5 -0
  186. package/core/element/H4Element.js +1 -0
  187. package/core/element/H4Element.js.map +1 -0
  188. package/core/element/H5Element.d.ts +5 -0
  189. package/core/element/H5Element.js +1 -0
  190. package/core/element/H5Element.js.map +1 -0
  191. package/core/element/H6Element.d.ts +5 -0
  192. package/core/element/H6Element.js +1 -0
  193. package/core/element/H6Element.js.map +1 -0
  194. package/core/element/HeadElement.d.ts +5 -0
  195. package/core/element/HeadElement.js +1 -0
  196. package/core/element/HeadElement.js.map +1 -0
  197. package/core/element/HeaderElement.d.ts +5 -0
  198. package/core/element/HeaderElement.js +1 -0
  199. package/core/element/HeaderElement.js.map +1 -0
  200. package/core/element/HorizontalRuleElement.d.ts +5 -0
  201. package/core/element/HorizontalRuleElement.js +1 -0
  202. package/core/element/HorizontalRuleElement.js.map +1 -0
  203. package/core/element/HtmlElement.d.ts +7 -0
  204. package/core/element/HtmlElement.js +1 -0
  205. package/core/element/HtmlElement.js.map +1 -0
  206. package/core/element/IFrameElement.d.ts +15 -0
  207. package/core/element/IFrameElement.js +1 -0
  208. package/core/element/IFrameElement.js.map +1 -0
  209. package/core/element/ILayout.d.ts +5 -0
  210. package/core/element/ILayout.js +1 -0
  211. package/core/element/ILayout.js.map +1 -0
  212. package/core/element/IconElement.d.ts +14 -0
  213. package/core/element/IconElement.js +1 -0
  214. package/core/element/IconElement.js.map +1 -0
  215. package/core/element/IdiomaticElement.d.ts +5 -0
  216. package/core/element/IdiomaticElement.js +1 -0
  217. package/core/element/IdiomaticElement.js.map +1 -0
  218. package/core/element/ImageElement.d.ts +19 -0
  219. package/core/element/ImageElement.js +1 -0
  220. package/core/element/ImageElement.js.map +1 -0
  221. package/core/element/InputElement.d.ts +5 -0
  222. package/core/element/InputElement.js +1 -0
  223. package/core/element/InputElement.js.map +1 -0
  224. package/core/element/LabelElement.d.ts +5 -0
  225. package/core/element/LabelElement.js +1 -0
  226. package/core/element/LabelElement.js.map +1 -0
  227. package/core/element/LegendElement.d.ts +5 -0
  228. package/core/element/LegendElement.js +1 -0
  229. package/core/element/LegendElement.js.map +1 -0
  230. package/core/element/ListItemElement.d.ts +10 -0
  231. package/core/element/ListItemElement.js +1 -0
  232. package/core/element/ListItemElement.js.map +1 -0
  233. package/core/element/MainElement.d.ts +5 -0
  234. package/core/element/MainElement.js +1 -0
  235. package/core/element/MainElement.js.map +1 -0
  236. package/core/element/NavElement.d.ts +5 -0
  237. package/core/element/NavElement.js +1 -0
  238. package/core/element/NavElement.js.map +1 -0
  239. package/core/element/OrderedListElement.d.ts +5 -0
  240. package/core/element/OrderedListElement.js +1 -0
  241. package/core/element/OrderedListElement.js.map +1 -0
  242. package/core/element/ParagraphElement.d.ts +5 -0
  243. package/core/element/ParagraphElement.js +1 -0
  244. package/core/element/ParagraphElement.js.map +1 -0
  245. package/core/element/PreElement.d.ts +5 -0
  246. package/core/element/PreElement.js +1 -0
  247. package/core/element/PreElement.js.map +1 -0
  248. package/core/element/SectionElement.d.ts +5 -0
  249. package/core/element/SectionElement.js +1 -0
  250. package/core/element/SectionElement.js.map +1 -0
  251. package/core/element/SelectElement.d.ts +5 -0
  252. package/core/element/SelectElement.js +1 -0
  253. package/core/element/SelectElement.js.map +1 -0
  254. package/core/element/SourceElement.d.ts +5 -0
  255. package/core/element/SourceElement.js +1 -0
  256. package/core/element/SourceElement.js.map +1 -0
  257. package/core/element/SpanElement.d.ts +5 -0
  258. package/core/element/SpanElement.js +1 -0
  259. package/core/element/SpanElement.js.map +1 -0
  260. package/core/element/StrongElement.d.ts +5 -0
  261. package/core/element/StrongElement.js +1 -0
  262. package/core/element/StrongElement.js.map +1 -0
  263. package/core/element/StyleElement.d.ts +5 -0
  264. package/core/element/StyleElement.js +1 -0
  265. package/core/element/StyleElement.js.map +1 -0
  266. package/core/element/SummaryElement.d.ts +5 -0
  267. package/core/element/SummaryElement.js +1 -0
  268. package/core/element/SummaryElement.js.map +1 -0
  269. package/core/element/SvgElement.d.ts +18 -0
  270. package/core/element/SvgElement.js +1 -0
  271. package/core/element/SvgElement.js.map +1 -0
  272. package/core/element/TableBodyElement.d.ts +5 -0
  273. package/core/element/TableBodyElement.js +1 -0
  274. package/core/element/TableBodyElement.js.map +1 -0
  275. package/core/element/TableCellElement.d.ts +7 -0
  276. package/core/element/TableCellElement.js +1 -0
  277. package/core/element/TableCellElement.js.map +1 -0
  278. package/core/element/TableColElement.d.ts +5 -0
  279. package/core/element/TableColElement.js +1 -0
  280. package/core/element/TableColElement.js.map +1 -0
  281. package/core/element/TableColGroupElement.d.ts +5 -0
  282. package/core/element/TableColGroupElement.js +1 -0
  283. package/core/element/TableColGroupElement.js.map +1 -0
  284. package/core/element/TableElement.d.ts +5 -0
  285. package/core/element/TableElement.js +1 -0
  286. package/core/element/TableElement.js.map +1 -0
  287. package/core/element/TableFootElement.d.ts +5 -0
  288. package/core/element/TableFootElement.js +1 -0
  289. package/core/element/TableFootElement.js.map +1 -0
  290. package/core/element/TableFootRowElement.d.ts +9 -0
  291. package/core/element/TableFootRowElement.js +1 -0
  292. package/core/element/TableFootRowElement.js.map +1 -0
  293. package/core/element/TableHeadCellElement.d.ts +10 -0
  294. package/core/element/TableHeadCellElement.js +1 -0
  295. package/core/element/TableHeadCellElement.js.map +1 -0
  296. package/core/element/TableHeadElement.d.ts +5 -0
  297. package/core/element/TableHeadElement.js +1 -0
  298. package/core/element/TableHeadElement.js.map +1 -0
  299. package/core/element/TableHeadRowElement.d.ts +11 -0
  300. package/core/element/TableHeadRowElement.js +1 -0
  301. package/core/element/TableHeadRowElement.js.map +1 -0
  302. package/core/element/TableRowElement.d.ts +11 -0
  303. package/core/element/TableRowElement.js +1 -0
  304. package/core/element/TableRowElement.js.map +1 -0
  305. package/core/element/TextAreaElement.d.ts +5 -0
  306. package/core/element/TextAreaElement.js +1 -0
  307. package/core/element/TextAreaElement.js.map +1 -0
  308. package/core/element/UListElement.d.ts +5 -0
  309. package/core/element/UListElement.js +1 -0
  310. package/core/element/UListElement.js.map +1 -0
  311. package/core/element/VideoElement.d.ts +5 -0
  312. package/core/element/VideoElement.js +1 -0
  313. package/core/element/VideoElement.js.map +1 -0
  314. package/core/element/index.d.ts +72 -0
  315. package/core/element/index.js +1 -0
  316. package/core/element/index.js.map +1 -0
  317. package/core/event/index.d.ts +16 -0
  318. package/core/event/index.js +1 -0
  319. package/core/event/index.js.map +1 -0
  320. package/core/index.js +1 -0
  321. package/core/ref/Computed.d.ts +3 -0
  322. package/core/ref/Computed.js +1 -0
  323. package/core/ref/Computed.js.map +1 -0
  324. package/core/ref/RefBoolean.d.ts +91 -0
  325. package/core/ref/RefBoolean.js +1 -0
  326. package/core/ref/RefBoolean.js.map +1 -0
  327. package/core/ref/RefContainer.d.ts +28 -0
  328. package/core/ref/RefContainer.js +1 -0
  329. package/core/ref/RefContainer.js.map +1 -0
  330. package/core/ref/RefList.d.ts +120 -0
  331. package/core/ref/RefList.js +1 -0
  332. package/core/ref/RefList.js.map +1 -0
  333. package/core/ref/RefMap.d.ts +100 -0
  334. package/core/ref/RefMap.js +1 -0
  335. package/core/ref/RefMap.js.map +1 -0
  336. package/core/ref/RefNumber.d.ts +118 -0
  337. package/core/ref/RefNumber.js +1 -0
  338. package/core/ref/RefNumber.js.map +1 -0
  339. package/core/ref/RefObject.d.ts +120 -0
  340. package/core/ref/RefObject.js +1 -0
  341. package/core/ref/RefObject.js.map +1 -0
  342. package/core/ref/RefProperty.d.ts +3 -0
  343. package/core/ref/RefProperty.js +1 -0
  344. package/core/ref/RefProperty.js.map +1 -0
  345. package/core/ref/RefSet.d.ts +99 -0
  346. package/core/ref/RefSet.js +1 -0
  347. package/core/ref/RefSet.js.map +1 -0
  348. package/core/ref/RefState.d.ts +25 -0
  349. package/core/ref/RefState.js +1 -0
  350. package/core/ref/RefState.js.map +1 -0
  351. package/core/ref/RefString.d.ts +148 -0
  352. package/core/ref/RefString.js +1 -0
  353. package/core/ref/RefString.js.map +1 -0
  354. package/core/ref/index.d.ts +23 -0
  355. package/core/ref/index.js +1 -0
  356. package/core/ref/index.js.map +1 -0
  357. package/core/router/RouteView.d.ts +20 -0
  358. package/core/router/RouteView.js +1 -0
  359. package/core/router/RouteView.js.map +1 -0
  360. package/core/router/Router.d.ts +77 -0
  361. package/core/router/Router.js +1 -0
  362. package/core/router/Router.js.map +1 -0
  363. package/core/router/RouterEvent.d.ts +36 -0
  364. package/core/router/RouterEvent.js +1 -0
  365. package/core/router/RouterEvent.js.map +1 -0
  366. package/core/router/RouterGuard.d.ts +12 -0
  367. package/core/router/RouterGuard.js +1 -0
  368. package/core/router/RouterGuard.js.map +1 -0
  369. package/core/router/index.d.ts +4 -0
  370. package/core/router/index.js +1 -0
  371. package/core/router/index.js.map +1 -0
  372. package/core/styles/index.js +1 -0
  373. package/global/app.d.ts +38 -0
  374. package/global/app.js +1 -0
  375. package/global/app.js.map +1 -0
  376. package/global/index.js +1 -0
  377. package/global/safari-polyfill.d.ts +0 -0
  378. package/global/safari-polyfill.js +1 -0
  379. package/global/safari-polyfill.js.map +1 -0
  380. package/index.js +1 -0
  381. package/package.json +6 -31
  382. package/translation/index.d.ts +0 -0
  383. package/LICENSE +0 -21
  384. package/README.md +0 -62
  385. package/dist/assets/index.js +0 -2
  386. package/dist/core/index.js +0 -7
  387. package/dist/core/styles/index.js +0 -28
  388. package/dist/global/index.js +0 -1351
  389. package/dist/index.js +0 -3
  390. /package/{dist/assets → assets}/index.d.ts +0 -0
  391. /package/{dist/assets → assets}/index.js.map +0 -0
  392. /package/{dist/core → core}/index.d.ts +0 -0
  393. /package/{dist/core → core}/index.js.map +0 -0
  394. /package/{dist/core → core}/styles/index.d.ts +0 -0
  395. /package/{dist/core → core}/styles/index.js.map +0 -0
  396. /package/{dist/global → global}/index.d.ts +0 -0
  397. /package/{dist/global → global}/index.js.map +0 -0
  398. /package/{dist/index.d.ts → index.d.ts} +0 -0
  399. /package/{dist/index.js.map → index.js.map} +0 -0
@@ -0,0 +1,23 @@
1
+ import { ref } from "./RefObject";
2
+ export * from "./RefBoolean";
3
+ export * from "./RefNumber";
4
+ export * from "./RefString";
5
+ export * from "./RefMap";
6
+ export * from "./RefList";
7
+ export * from "./RefSet";
8
+ export * from "./RefObject";
9
+ export * from "./RefProperty";
10
+ export * from "./RefState";
11
+ export * from "./Computed";
12
+ export declare class Ref {
13
+ private static refs;
14
+ private static onCreatedCallbacks;
15
+ private static refsStatus;
16
+ static onCreated(refKey: string, action: (ref: ref) => void): void;
17
+ static get<T>(refKey: string): ref<T> | undefined;
18
+ private static getStatus;
19
+ static set<T>(refKey: string, value: ref<any>): void;
20
+ static unsubscribe(target: object, propertyName: string | symbol): void;
21
+ static unsubscribeAll(target: object): void;
22
+ private static subscribe;
23
+ }
@@ -0,0 +1 @@
1
+ import{ref}from"./RefObject";export*from"./RefBoolean";export*from"./RefNumber";export*from"./RefString";export*from"./RefMap";export*from"./RefList";export*from"./RefSet";export*from"./RefObject";export*from"./RefProperty";export*from"./RefState";export*from"./Computed";const subscribers=new WeakMap;export class Ref{static refs=new Map;static onCreatedCallbacks=new Map;static refsStatus=new Map;static onCreated(e,s){Ref.onCreatedCallbacks.set(e,[...Ref.onCreatedCallbacks.get(e)||[],s])}static get(e){const s=Ref.refs.get(e);return s?.deref()}static getStatus(e){return Ref.refsStatus.has(e)||Ref.refsStatus.set(e,ref("0")),Ref.refsStatus.get(e)}static set(e,s){Ref.refs.set(e,new WeakRef(s));for(const t of Ref.onCreatedCallbacks.get(e)||[])t(s);Ref.onCreatedCallbacks.delete(e)}static unsubscribe(e,s){if(!subscribers.has(e))return;const t=subscribers.get(e),r=t.get(s);r&&r.deref()?.unsubscribe(e,s),t.has(s)&&t.delete(s)}static unsubscribeAll(e){if(!subscribers.has(e))return;const s=subscribers.get(e);subscribers.delete(e);for(const[t,r]of s)r.deref()?.unsubscribe(e,t)}static subscribe(e,s,t){subscribers.has(e)||subscribers.set(e,new Map);const r=subscribers.get(e);if(r.has(s)){const t=r.get(s);t&&t.deref()?.unsubscribe(e,s)}r.set(s,new WeakRef(t))}}globalThis.Ref=Ref;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/ref/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAG3B,MAAM,WAAW,GAAG,IAAI,OAAO,EAAuB,CAAC;AAEvD,MAAM,OAAO,GAAG;IACN,MAAM,CAAC,IAAI,GAAG,IAAI,GAAG,EAAwB,CAAC;IAC9C,MAAM,CAAC,kBAAkB,GAAG,IAAI,GAAG,EAAsB,CAAC;IAC1D,MAAM,CAAC,UAAU,GAAG,IAAI,GAAG,EAAuB,CAAC;IAEpD,MAAM,CAAC,SAAS,CAAC,MAAc,EAAE,MAA0B;QAChE,GAAG,CAAC,kBAA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;;AAKF,UAAkB,CAAC,GAAG,GAAG,GAAG,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { Component, ElementType } from "../..";
2
+ export declare class RouteView extends Component {
3
+ #private;
4
+ static readonly TAG: string;
5
+ private _view;
6
+ private _url;
7
+ private routePage;
8
+ constructor(props?: ElementType & {
9
+ defaultView?: ComponentType;
10
+ onUpdateView?: (view?: IComponent) => void;
11
+ });
12
+ get url(): string;
13
+ connectedCallback(): void;
14
+ append(...nodes: (Node | string)[]): void;
15
+ appendChild<T extends Node>(node: T): T;
16
+ private updateView;
17
+ disconnectedCallback(): void;
18
+ get view(): IComponent | undefined;
19
+ set view(value: IComponent | undefined);
20
+ }
@@ -0,0 +1 @@
1
+ import{Component,Router}from"../..";export class RouteView extends Component{static TAG="tc-route-view";_view=void 0;_url="";routePage=void 0;#e=void 0;#t=void 0;constructor(e){super(),this.#e=e?.defaultView,delete e?.defaultView,delete e?.children,Component.applyProps(this,e),this.onEvent("router:watch",()=>{this.updateView(),e?.onUpdateView?.(this.view)})}get url(){return this._url}connectedCallback(){this.updateView()}append(...e){throw new Error("Method not implemented.")}appendChild(e){throw new Error("Method not implemented.")}async updateView(){const e=Router.getRouteViewFree(this);if(null==e)return this.routePage&&(this.routePage.routeView=void 0),this.view=void 0,void(this.routePage=void 0);if(e!==this.routePage)if(e.build&&e.build===this.routePage?.build)e.routeView=this;else{if(e.component instanceof Function&&e.component.prototype instanceof Element)e.build=e.build||new e.component;else if(!e.build){const t=await e.component();e.build=new t.default}this.routePage=e,this.view=e.build}}disconnectedCallback(){this.routePage&&(this.routePage.routeView=void 0),this.routePage=void 0,this.removeEvent("router:watch")}get view(){return this._view}set view(e){!e&&this.#e&&(e=this.#t||new this.#e,this.#t=e),this._view!=e&&(this._view&&this._view.remove(),this._view=e,e&&super.append(e))}}TypeComposer.defineElement(RouteView.TAG,RouteView);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RouteView.js","sourceRoot":"","sources":["../../../src/core/router/RouteView.ts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AAE,CAAC;YAChC,KAAK,GAAG,IAAI,CAAC,iBAAiB,IAAI,IAAI,IAAI,CAAC,YAAY,CAAC;YACxD,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACjC,CAAC;QACD,IAAI,IAAI,CAAC,KAAK,IAAI,KAAK;YAAE,OAAO;QAChC,IAAI,IAAI,CAAC,KAAK;YAAE,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;QACpC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,KAAK;YAAE,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC;;AAEH,YAAY,CAAC,aAAa,CAAC,SAAS,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC"}
@@ -0,0 +1,77 @@
1
+ import { RouteView, AsyncComponentLoader } from "../../";
2
+ import { RouterGuard } from "./RouterGuard";
3
+ export interface RoutePage {
4
+ path: string;
5
+ component?: ComponentType | AsyncComponentLoader;
6
+ children?: RoutePage[];
7
+ redirect?: string;
8
+ title?: string;
9
+ guard?: RouterGuard;
10
+ }
11
+ interface RoutePageBuild extends RoutePage {
12
+ parent: RoutePageBuild;
13
+ build: IComponent;
14
+ routeView: RouteView | undefined;
15
+ id?: string;
16
+ }
17
+ interface RouteMatch {
18
+ url: string;
19
+ path: string;
20
+ routers: RoutePageBuild[];
21
+ params: Record<string, string>;
22
+ }
23
+ export declare class Router {
24
+ #private;
25
+ private routes;
26
+ private url;
27
+ private urlValid;
28
+ private pageNotFound;
29
+ private match;
30
+ /**
31
+ * @param data - An array of route objects.
32
+ * @param history - The type of history to use. Can be either "hash" or "history".
33
+ */
34
+ static readonly SEGMENT_WILDCARD = "*";
35
+ /**
36
+ * @param data - An array of route objects.
37
+ * @param history - The type of history to use. Can be either "hash" or "history".
38
+ * @returns {void}
39
+ */
40
+ static readonly PATH_WILDCARD = "**";
41
+ beforeEach: (to: RouteMatch) => void;
42
+ private constructor();
43
+ private createAutoId;
44
+ private handleRoute;
45
+ private buildRoutePage;
46
+ private checkGuard;
47
+ static create(data: {
48
+ routes: RoutePage[];
49
+ pageNotFound?: ComponentType;
50
+ history?: "hash" | "history";
51
+ sitemaps?: {
52
+ baseUrl: string;
53
+ };
54
+ robots?: "auto" | {
55
+ [key: string]: any;
56
+ };
57
+ }): void;
58
+ static reload(): void;
59
+ static get props(): {
60
+ [key: string]: any;
61
+ };
62
+ static get history(): "hash" | "history";
63
+ private static buildURL;
64
+ static go(url: string, props?: {}): Promise<void>;
65
+ static back(): void;
66
+ static forward(): void;
67
+ protected static getRouteViewFree(routeView: RouteView): RoutePageBuild | undefined;
68
+ /**
69
+ * Returns the Location object's URL's path.
70
+ *
71
+ * Can be set, to navigate to the same URL with a changed path.
72
+ *
73
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/pathname)
74
+ */
75
+ static get pathname(): string;
76
+ }
77
+ export {};
@@ -0,0 +1 @@
1
+ import{App,DivElement}from"../../";function getRoutePairs(t,e="",o=[]){let r=[];for(const i of t){const t=`${e}${i.path?`/${i.path}`:""}`.replace(/\/+/g,"/"),n=[...o];(i.component||i.redirect)&&n.push({component:i.component,path:i.path,id:i.id,guard:i.guard,redirect:i.redirect,title:i.title}),r.push({path:t,routers:n,isChild:i.isChild}),i.children&&(r=r.concat(getRoutePairs(i.children,t,n)))}return r}function validateRoutePattern(t,e){if(t.isChild)return!1;const o=t.path;if("/**"===o)return!0;const r=o.split("/").filter(Boolean),i=e.split("/").filter(Boolean);return r.length===i.length&&r.every((t,e)=>t.startsWith(":")||"*"===t||t===i[e])}function getRouterParams(t,e){const o={},r=t.path.split("/").filter(Boolean),i=e.pathname.split("/").filter(Boolean);for(let t=0;t<r.length;t++){const e=r[t];if(e.startsWith(":")){o[e.slice(1)]=i[t]}}for(const[t,r]of e.searchParams.entries())o[t]=r;return o}function matchRoute(t,e){for(const o of e)if(validateRoutePattern(o,t.pathname))return{url:t.pathname,path:t.pathname,routers:o.routers.map(t=>({component:t.component,path:t.path,guard:t.guard,title:t.title,redirect:t.redirect,build:void 0})),params:getRouterParams(o,t)};return null}function pageNotFound(){const t=new DivElement;return t.style.width="100vw",t.style.height="100vh",t.style.display="flex",t.style.flexDirection="column",t.style.justifyContent="center",t.style.alignItems="center",t.style.overflow="hidden",t.style.position="fixed",t.innerHTML="<div style='text-align: center;'><h1 style='text-shadow: 0 3px 0px $color-base, 0 6px 0px #333; color: #f54f59; font-size: 6em; font-weight: 700; line-height: 0.6em;'>404</h1><h1 style='text-shadow: 0 3px 0px $color-base, 0 6px 0px #333; color: #f54f59; font-size: 10; font-weight: 15; line-height: 0.6em;'>Page not found</h1></div>",t}export class Router{static#t;#e;#o={};routes=[];url=window.location.pathname;urlValid="";pageNotFound;match=null;static SEGMENT_WILDCARD="*";static PATH_WILDCARD="**";beforeEach=()=>{};constructor(t,e,o){if(Router.#t)throw new Error("Router already exists");Router.#t=this,this.#e=e,"hash"===this.#e&&(window.location.pathname.startsWith("/#/")||("/"===window.location.pathname?window.history.replaceState({},"","/#/"):window.history.replaceState({},"","/#"+window.location.pathname))),this.pageNotFound=o,this.createAutoId(t,0),this.routes=getRoutePairs(t),window.addEventListener("history"==e?"popstate":"hashchange",()=>this.handleRoute()),this.handleRoute()}createAutoId(t=[],e){for(const o of t)o.id=`${o.path}_${++e}`,o.isChild=o.children&&o.children.length>0,o.children&&(e=this.createAutoId(o.children,e));return e}handleRoute(){const t=("hash"===this.#e?window.location.hash.replace(/^#\//,"/"):window.location.pathname)||"/",e=new URL("http://localhost"+t);this.url=e.pathname,this.buildRoutePage(matchRoute(e,this.routes))}async buildRoutePage(t){let e="";if(this.#o=t?.params||{},t&&t.routers.length){if(!await this.checkGuard(t))return;if(this.match)for(let e=0;e<t.routers.length&&this.match?.routers[e]?.id;e++){const o=t.routers[e];o.id==this.match?.routers[e]?.id&&(o.build=this.match.routers[e].build)}for(let o=0;o<t.routers.length;o++){const r=t.routers[o];if(r.redirect)return this.match=null,void Router.go(r.redirect);r.title&&(e=r.title),r.parent=0==o?void 0:t.routers[o-1]}const o=t.routers[0];if(this.match=t,!o.build)if(o.component instanceof Function&&o.component.prototype instanceof Element)o.build=App.setPage(new o.component);else{const t=await o.component();o.build=App.setPage(new t.default)}}else App.setPage(this.pageNotFound?new this.pageNotFound:pageNotFound()),this.match=null;e&&(document.title=e),this.beforeEach(t),document?.body?.emitEvent("router:watch",{url:this.url,props:Router.props})}async checkGuard(t){const e=t.routers.map(t=>t.guard).filter(Boolean);let o=!0;for await(const r of e){const e=new Promise(e=>{const o={path:t.url,params:t.params,query:this.#o,redirect:t=>{e(t)},resolve:()=>{e(!0)},break:()=>{e(!1)},reject:()=>{e(!1)}};r.beforeEach(o)});if(o=await e,"string"==typeof o)return Router.go(o),!1}return o?this.urlValid=t.url:Router.go(Router.#t?.urlValid),!0===o}static create(t){Router.#t=new Router(t.routes,t.history||"history",t.pageNotFound)}static reload(){Router.#t?(Router.#t.match=null,Router.#t.handleRoute()):window.location.reload()}static get props(){return this.#t.#o||{}}static get history(){return Router.#t.#e}static buildURL(t,e){const o=Object.keys(e).map(t=>encodeURIComponent(t)+"="+encodeURIComponent(e[t])).join("&");return t+(o?"?"+o:"")}static async go(t,e){if(!Router.#t)throw new Error("Router not initialized");if(!t)return;t.startsWith("/")||(t="/"+t);const o=Router.buildURL(t,e||{});"history"===Router.#t.#e?history.pushState(e||{},"",o):window.location.hash=o}static back(){window.history.back()}static forward(){window.history.forward()}static getRouteViewFree(t){if(!Router.#t||!Router.#t.match)return;const{routers:e}=Router.#t.match,o=e.find(e=>(!e.routeView||e.routeView===t)&&e.parent);return o?(o.routeView=t,o):void 0}static get pathname(){return(Router.#t?.url||window.location.pathname).replace(/^\//,"")}}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Router.js","sourceRoot":"","sources":["../../../src/core/router/Router.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,UAAU,EAAmC,MAAM,QAAQ,CAAC;AA2B1E,SAAS,aAAa,CAAC,MAA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C;IAES,MAAM,CAAC,gBAAgB,CAAC,SAAoB;QACpD,IAAI,CAAC,MAAM,CAAC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK;YAAE,OAAO,SAAS,CAAC;QAC/D,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC;QACzC,MAAM,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,IAAI,KAAK,CAAC,SAAS,KAAK,SAAS,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC;QAC3G,IAAI,CAAC,KAAK;YAAE,OAAO,SAAS,CAAC;QAC7B,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC;QAC5B,OAAO,KAAK,CAAC;IACf,CAAC;IAED;;;;;;OAMG;IACI,MAAM,KAAK,QAAQ;QACxB,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,GAAG,IAAI,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IAC9E,CAAC"}
@@ -0,0 +1,36 @@
1
+ export declare class RouterEvent {
2
+ /**
3
+ * This event is triggered before leaving the current route. It is useful for
4
+ * carrying out specific checks or actions before allowing the user to leave
5
+ * the current page.
6
+ * @param to
7
+ * @param from
8
+ * @param next
9
+ */
10
+ beforeRouteLeave(to: any, from: any, next: any): void;
11
+ /**
12
+ * This event is triggered before entering the new route. It is useful for carrying
13
+ * out data uploads or other necessary tasks before fully entering the new route
14
+ * @param to
15
+ * @param from
16
+ * @param next
17
+ */
18
+ beforeRouteEnter(to: any, from: any, next: any): void;
19
+ /**
20
+ * This event is triggered when the route is about to be updated, but the current
21
+ * route still remains active. It is useful for carrying out specific actions when
22
+ * the route is changing but the component is still in use.
23
+ * @param to
24
+ * @param from
25
+ * @param next
26
+ * @returns
27
+ */
28
+ beforeRouteUpdate(to: any, from: any, next: any): void;
29
+ /**
30
+ * This event is triggered after the route has been updated. It is useful for
31
+ * carrying out specific actions after the route has been updated.
32
+ * @param to
33
+ * @param from
34
+ */
35
+ afterEach(to: any, from: any): void;
36
+ }
@@ -0,0 +1 @@
1
+ export class RouterEvent{beforeRouteLeave(e,t,o){o()}beforeRouteEnter(e,t,o){o()}beforeRouteUpdate(e,t,o){o()}afterEach(e,t){}}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RouterEvent.js","sourceRoot":"","sources":["../../../src/core/router/RouterEvent.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,WAAW;IACtB;;;;;;;OAOG;IACH,gBAAgB,CAAC,EAAO,EAAE,IAAS,EAAE,IAAS;QAC5C,IAAI,EAAE,CAAC;IACT,CAAC;IAED;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAO,EAAE,IAAS,EAAE,IAAS;QAC5C,IAAI,EAAE,CAAC;IACT,CAAC;IAED;;;;;;;;OAQG;IACH,iBAAiB,CAAC,EAAO,EAAE,IAAS,EAAE,IAAS;QAC7C,IAAI,EAAE,CAAC;IACT,CAAC;IAED;;;;;OAKG;IACH,SAAS,CAAC,EAAO,EAAE,IAAS,IAAG,CAAC;CACjC"}
@@ -0,0 +1,12 @@
1
+ export interface GuardResponse {
2
+ redirect(path: string): void;
3
+ resolve(): void;
4
+ break(): void;
5
+ reject(): void;
6
+ readonly path: string;
7
+ readonly params: Record<string, string>;
8
+ readonly query: Record<string, string>;
9
+ }
10
+ export declare abstract class RouterGuard {
11
+ abstract beforeEach(response: GuardResponse): void;
12
+ }
@@ -0,0 +1 @@
1
+ export class RouterGuard{}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RouterGuard.js","sourceRoot":"","sources":["../../../src/core/router/RouterGuard.ts"],"names":[],"mappings":"AAWA,MAAM,OAAgB,WAAW;CAIhC"}
@@ -0,0 +1,4 @@
1
+ export { RouteView } from "./RouteView";
2
+ export { Router } from "./Router";
3
+ export { RouterGuard, type GuardResponse } from "./RouterGuard";
4
+ export { RouterEvent } from "./RouterEvent";
@@ -0,0 +1 @@
1
+ export{RouteView}from"./RouteView";export{Router}from"./Router";export{RouterGuard}from"./RouterGuard";export{RouterEvent}from"./RouterEvent";
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/router/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,WAAW,EAAsB,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1 @@
1
+ import{ref}from"../";const removePropertyOriginal=CSSStyleDeclaration.prototype.removeProperty;Object.defineProperty(CSSStyleDeclaration.prototype,"removeProperty",{value:function(e){removePropertyOriginal.call(this,e)},writable:!0,configurable:!0});const setPropertyOriginal=CSSStyleDeclaration.prototype.setProperty;Object.defineProperty(CSSStyleDeclaration.prototype,"setProperty",{value:function(e,r,t){r instanceof ref?r.subscribe(this,e):setPropertyOriginal.call(this,e,r,t)},writable:!0,configurable:!0}),Object.defineProperty(CSSStyleDeclaration.prototype,"hasOwnProperty",{value:function(e){return Object.prototype.hasOwnProperty.call(this,e)},writable:!0,configurable:!0});
@@ -0,0 +1,38 @@
1
+ import { ref } from "../";
2
+ export type theme = "light" | "dark" | string;
3
+ export type Platform = "Windows" | "macOS" | "Linux" | "Android" | "iOS" | "Other";
4
+ export declare class __App__ {
5
+ #private;
6
+ private translateData;
7
+ private component;
8
+ private translateComputed;
9
+ constructor();
10
+ get theme(): theme;
11
+ set theme(value: theme);
12
+ set language(value: string);
13
+ get language(): ref<string>;
14
+ setPage(page: HTMLElement): IComponent;
15
+ /**
16
+ * Gets a reference to the root node of the document.
17
+ * @returns {HTMLElement} The root node of the document.
18
+ */
19
+ get root(): HTMLElement;
20
+ get body(): HTMLElement;
21
+ get head(): HTMLElement;
22
+ get location(): Location;
23
+ get title(): string;
24
+ set title(value: string);
25
+ setTitle(value: string): void;
26
+ get style(): CSSStyleDeclarationRef;
27
+ set translate(value: object);
28
+ get translate(): object;
29
+ get platform(): Promise<string>;
30
+ getCookie(nome: string): any;
31
+ setCookie(nome: string, valor: any, dias: number): void;
32
+ removeCookie(nome: string): void;
33
+ getLocalStorage(nome: string): string;
34
+ setLocalStorage(nome: string, valor: string): void;
35
+ removeLocalStorage(nome: string): void;
36
+ requestFullscreen(): void;
37
+ exitFullscreen(): void;
38
+ }
package/global/app.js ADDED
@@ -0,0 +1 @@
1
+ import{ref,Router}from"../";async function detectOS(){let e="Other";if(navigator?.userAgentData){e=(await navigator.userAgentData.getHighEntropyValues(["platform"])).platform}else{const e=navigator.userAgent.toLowerCase();if(e.includes("win"))return"Windows";if(e.includes("mac"))return"macOS";if(e.includes("linux"))return"Linux";if(/android/.test(e))return"Android";if(/iphone|ipad|ipod/.test(e))return"iOS"}return e}export class __App__{translateData;component=void 0;#e=void 0;translateComputed=void 0;#t=document.documentElement["data-theme"];#n=ref(document.documentElement.lang||"en");constructor(){const e=localStorage.getItem("__app__");if(e){const t=JSON.parse(e);this.#n.value=t.language,this.#t=this.#t||document.documentElement["data-theme"]||"light"}}get theme(){return this.#t}set theme(e){this.#t=e;const t=document.querySelector("html");t?.setAttribute("data-theme",e),localStorage.setItem("__app__",JSON.stringify({theme:e,language:this.#n.value}))}set language(e){this.#n.value!=e&&(this.#n.value=e,localStorage.setItem("__app__",JSON.stringify({theme:this.#t,language:e})),void 0===this.translateComputed&&Router.reload())}get language(){return this.#n}setPage(e){if(this.component&&this.component.remove(),Array.from(document.body.querySelectorAll("[main-page]")).map(e=>e.remove()),e?.setAttribute("main-page",""),e instanceof HTMLBodyElement)document.body=e;else{const t=document.createDocumentFragment();t.appendChild(e),document.body||(document.body=document.createElement("body")),document.body.appendChild(t)}return this.component=e,e}get root(){return document.documentElement}get body(){return document.body}get head(){return document.head}get location(){return window.location}get title(){return document.title}set title(e){document.title=e}setTitle(e){document.title=e}get style(){return document.documentElement.style}set translate(e){this.translateData=e}get translate(){return this.translateData}get platform(){return this.#e?Promise.resolve(this.#e):detectOS().then(e=>(this.#e=e,e))}getCookie(e){const t=("; "+document.cookie).split("; "+e+"=");if(2===t.length){const e=t.pop().split(";").shift();try{return JSON.parse(e)}catch(t){return e}}return null}setCookie(e,t,n){const o=new Date;o.setTime(o.getTime()+24*n*60*60*1e3),"object"==typeof t&&(t=JSON.stringify(t)),document.cookie=`${e}=${t}; expires=${o.toUTCString()}; path=/`}removeCookie(e){document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;`}getLocalStorage(e){return localStorage.getItem(e)}setLocalStorage(e,t){localStorage.setItem(e,t)}removeLocalStorage(e){localStorage.removeItem(e)}requestFullscreen(){document.documentElement.requestFullscreen?document.documentElement.requestFullscreen():document.documentElement.mozRequestFullScreen?document.documentElement.mozRequestFullScreen():document.documentElement.webkitRequestFullscreen?document.documentElement.webkitRequestFullscreen():document.documentElement.msRequestFullscreen&&document.documentElement.msRequestFullscreen()}exitFullscreen(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()}}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.js","sourceRoot":"","sources":["../../src/global/app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,GAAG,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAM7C,KAAK,UAAU,QAAQ;IACrB,IAAI,QAAQ,GAAa,OAAO,CAAC;IACjC,aAAa;IACb,IAAI,SAAS,EAAE,aAAa,EAAE,CAAC;QAC7B,aAAa;QACb,MAAM,IAAI,GAAG,MAAM,SAAS,CAAC,aAAa,CAAC,oBAAoB,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;QAC9E,QAAQ,GAAG,IAAI,CAAC,QAAQ,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sBAAsB,CAAC,EAAE,CAAC;QACrC,CAAC;aAAM,IAAI,QAAQ,CAAC,kBAAkB,CAAC,EAAE,CAAC;YACxC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,CAAC;QACjC,CAAC;IACH,CAAC;CACF"}
@@ -0,0 +1 @@
1
+ import"./safari-polyfill";import{EventComponent}from"../core/event";import{computed,InputElement,ref,RefBoolean,RefList,RefMap,RefNumber,RefSet,RefString}from"../";function deepCopy(e,t=new WeakMap){if(e instanceof ref&&(e=e.valueOf()),null===e||"object"!=typeof e)return e;if(t.has(e))return t.get(e);if(e instanceof HTMLElement)return e;if("function"==typeof e)return e;if(null===Object.getPrototypeOf(e))return e;if(Array.isArray(e)){const n=e.map(e=>deepCopy(e,t));return t.set(e,n),n}if(e instanceof Date)return new Date(e);if(e instanceof RegExp)return new RegExp(e);if(e instanceof Map){const n=new Map;t.set(e,n);for(const[o,r]of e)n.set(deepCopy(o,t),deepCopy(r,t));return n}if(e instanceof Set){const n=new Set;t.set(e,n);for(const o of e)n.add(deepCopy(o,t));return n}const n=Object.create(Object.getPrototypeOf(e));t.set(e,n);for(const o of Reflect.ownKeys(e))n[o]=deepCopy(e[o],t);return Object.isFrozen(e)?Object.freeze(n):Object.isSealed(e)&&Object.seal(n),n}globalThis.deepCopy=deepCopy;const styleRef=Symbol("styleRef"),variantAll=Symbol("variantAll"),variants=new Map,mergeVariants=new Map;Object.defineProperty(Element.prototype,"extendedStyle",{get:function(){const e=this;return{add(t){const n=(e.getAttribute("tc-style")||"").split(/\s+/).filter(Boolean);n.includes(t)||(n.push(t),e.setAttribute("tc-style",n.join(" ")))},remove(t){const n=(e.getAttribute("tc-style")||"").split(/\s+/).filter(Boolean),o=n.indexOf(t);-1!==o&&(n.splice(o,1),e.setAttribute("tc-style",n.join(" ")))},has:t=>(e.getAttribute("tc-style")||"").split(/\s+/).filter(Boolean).includes(t),toggle(e){this.has(e)?this.remove(e):this.add(e)},clear(){e.removeAttribute("tc-style")},toString:()=>e.getAttribute("tc-style")||"",getReferences:()=>(e.getAttribute("tc-style")||"").split(/\s+/).filter(Boolean).map(e=>customElements.get(e)).filter(Boolean)}},configurable:!0});const TypeComposer={defineElement(e,t,n){Component.mergeVariant(t,Object.getPrototypeOf(t.prototype).constructor),customElements.define(e,t,n)},createElement:(e,t,...n)=>{const o=e?.prototype instanceof HTMLElement;if("string"==typeof e||o){if("fragment"===e){const e=document.createDocumentFragment();for(const t of n)Array.isArray(t)?e.append(...t):t instanceof Node&&e.append(t);return e}const r=t?.key,i=r&&"object"==typeof r&&r.controller&&r.controller.getCache&&r.controller.setCache;if(i){const e=r.controller.getCache(r.key);if(e)return e}const s=t?.onInit,c=t?.style,l=t?.ref,a=t?.className||t?.class;delete t?.className,delete t?.class,delete t?.onInit,delete t?.ref,delete t?.key,c&&(t.style={});const p=t||{},f=o?new e(p):document.createElement(e);i&&r.controller.setCache(r.key,f),c&&f.setStyle(c),a&&f.addClassName(a),l&&l(f),Component.applyProps(f,p);const u=(e,t)=>{t instanceof ref?e.append(t):Array.isArray(t)?t.forEach(t=>u(e,t)):t instanceof Node?e.appendChild(t):null!=t&&e.appendChild(document.createTextNode(t.toString()))};return n.forEach(e=>u(f,e)),s&&s(),f}return e({...t,children:n})},createFragment:(...e)=>{const t=document.createDocumentFragment();return t.append(...e),t},deepCopy:deepCopy,computed:computed,Fragment:"fragment"};globalThis.TypeComposer=TypeComposer;export const componentProps=Symbol("componentProps");export class Component extends HTMLElement{static TAG="tc-component";constructor(e){super(),Component.initComponent(this,Component,e)}static async applyProps(e,t,n=!1){if(!Object.hasOwn(e.style,"styleRef")){const t=e.style;t.styleRef=styleRef;const n=new Proxy(t,{get(e,t){const n=Reflect.get(e,t);return"function"==typeof n?n.bind(e):n},set:(e,t,n)=>(n instanceof ref?n.subscribe(e,t):Reflect.set(e,t,n),!0)});Object.defineProperty(e,"style",{get:()=>n})}if(t)for(const[n,o]of Object.entries(t))if(null!=o)switch(n){case"key":e.key=o;break;case"onInit":"function"==typeof o&&(e.onInit=()=>o());break;case"style":e.setStyle(o);break;case"itemLoading":e.setAttribute("item-loading",o);break;case"children":Array.isArray(o)?e.append(...o):e.append(o);break;case"for":e.setAttribute("for",o);break;case"className":e.addClassName(o);break;case"text":e.innerText=o;break;case"html":e.innerHTML=o;break;case"style":for(const[t,n]of Object.entries(o))e.style[t]=n;break;default:if(n in e&&o)try{e[n]=o,void 0===o&&e.removeAttribute(n)}catch{}}}static initComponent(e,t,n){if(e.constructor===t){if(Component.applyProps(e,e[componentProps]||n),e?.template&&"function"==typeof e.template){const t=e.template();t&&e.append(t)}return e?.onInit(),void(e[componentProps]&&delete e[componentProps])}n&&(e[componentProps]=n),Component.applyProps(e,n)}static createElement(e){const t=document.createElement("div");return t.innerHTML=e,t?.children[0]||t}static setVariant(e,t,n){variants.has(e)||variants.set(e,new Map);const o=variants.get(e);o&&o.set(t,n)}static getVariant(e,t){const n=variants.get(e);let o;if(n&&(o=n.get(t)),!o){const n=mergeVariants.get(e);if(!n)return o;const r=n.get(t)||n.get(variantAll);if(r)return Component.getVariant(r,t)}return o}static getVariants(e){const t=variants.get(e);return t?Array.from(t.keys()):[]}static removeVariant(e,t){const n=variants.get(e);n&&n.delete(t)}static mergeVariant(e,t,...n){mergeVariants.has(e)||mergeVariants.set(e,new Map);const o=mergeVariants.get(e);if(o)if(n&&n.length)for(const e of n)o.set(e,t);else o.set(variantAll,t)}static lazyLoad(e,t){const n=new(t?.component||Component);return e().then(e=>{const o=e.default,r=n.parentElement;r&&r.replaceChild(new o(t?.props),n)}),n}}globalThis.Component=Component,TypeComposer.defineElement(Component.TAG,Component);const isValideRef=e=>e&&"object"==typeof e&&(e instanceof RefString||e instanceof RefNumber||e instanceof RefBoolean||e instanceof RefList||e instanceof RefMap||e instanceof RefSet),consolecheck=(e,t,...n)=>{isValideRef(t)&&(t=t.valueOf());for(let e=0;e<n.length;e++)isValideRef(n[e])&&(n[e]=n[e].valueOf());e(t,...n)},originalConsoleLog=console.log;console.log=function(e,...t){consolecheck(originalConsoleLog,e,...t)};const originalConsoleError=console.error;console.error=function(e,...t){consolecheck(originalConsoleError,e,...t)};const originalConsoleWarn=console.warn;console.warn=function(e,...t){consolecheck(originalConsoleWarn,e,...t)};const originalConsoleInfo=console.info;function basePrototypeRefInjection(e){Object.defineProperty(e,"value",{get:function(){return this.valueOf()},set:function(e){this.valueOf(e)}}),Object.defineProperty(e,"subscribe",{value:function(e){}}),Object.defineProperty(e,"unsubscribe",{value:function(e){}})}function componentInjectionValue(e){const t=Object.getOwnPropertyDescriptor(e,"value");t&&Object.defineProperty(e,"value",{set:function(e){if(e instanceof ref){const t=()=>e.value=this.value;this.addEventListener("input",t),e.subscribe(this,"value",()=>this.removeEventListener("input",t))}else t.set.call(this,e)}})}function componentInjectionChecked(e){const t=Object.getOwnPropertyDescriptor(e,"checked");t&&Object.defineProperty(e,"checked",{set:function(e){if(e instanceof ref){const t=()=>e.value=this.checked;this.addEventListener("input",t),this.subscribe(this,"checked",()=>this.removeEventListener("input",t))}else t.set.call(this,e)}})}function componentInjectionDisabled(e){Object.defineProperty(e,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(e){e instanceof ref?e.subscribe(this,"disabled"):e?this.setAttribute("disabled",""):this.removeAttribute("disabled")}})}function componentInjectionHidden(e){Object.defineProperty(e,"hidden",{get:function(){return this.hasAttribute("hidden")},set:function(e){e instanceof ref?e.subscribe(this,"hidden"):e?this.setAttribute("hidden",""):this.removeAttribute("hidden")}})}function isWritable(e){return!(!e||"function"==typeof e?.value)&&("value"in e?!!e.writable:("get"in e||"set"in e)&&"function"==typeof e.set)}function componentInjectionVariableController(e,t){const n=getOwnPropertyDescriptor(e,t);isWritable(n)&&Object.defineProperty(e,t,{set:function(e){e instanceof ref?e.subscribe(this,t?.toString()):n.set.call(this,e?.valueOf())}})}function getOwnPropertyDescriptor(e,t){if(null==e)return;return Object.getOwnPropertyDescriptor(e,t)||getOwnPropertyDescriptor(Object.getPrototypeOf(e),t)}function componentInjectionController(e,t){null==t&&(t=Object.getOwnPropertyNames(e)),t.includes("disabled")||componentInjectionDisabled(e),t.includes("hidden")||componentInjectionHidden(e);for(const n of t)"value"==n?componentInjectionValue(e):"checked"==n?componentInjectionChecked(e):componentInjectionVariableController(e,n)}console.info=function(e,...t){consolecheck(originalConsoleInfo,e,...t)},WeakRef.prototype.equals=function(e){return this.deref()===e.deref()},Object.defineProperty(Element.prototype,"onInit",{value:function(){},writable:!0,configurable:!0,enumerable:!0}),Object.defineProperty(Element.prototype,"getElementById",{value:function(e){return this.querySelector(`#${e}`)},writable:!0,configurable:!0,enumerable:!0}),basePrototypeRefInjection(String.prototype),basePrototypeRefInjection(Number.prototype),basePrototypeRefInjection(Boolean.prototype),basePrototypeRefInjection(Array.prototype),basePrototypeRefInjection(Map.prototype),basePrototypeRefInjection(Set.prototype),componentInjectionController(Element.prototype),componentInjectionController(HTMLElement.prototype),componentInjectionController(HTMLButtonElement.prototype),componentInjectionController(HTMLInputElement.prototype),componentInjectionController(HTMLTextAreaElement.prototype),componentInjectionController(HTMLImageElement.prototype),Object.defineProperty(Element.prototype,"variant",{get:function(){return this.getAttribute("variant")||"default"},set:function(e){e instanceof ref?e.subscribe(this,"variant"):("default"==(e=e?.toString()?.trim()||"default")||null==e||0==e.trim().length?this.removeAttribute("variant"):this.setAttribute("variant",e),Component.getVariant(this.constructor,e)?.(this))}}),Object.defineProperty(Element.prototype,"connectedCallback",{value:function(){this.dispatchEvent(new CustomEvent("onConnected",{bubbles:!1,cancelable:!0})),this?.onConnected()},writable:!0,configurable:!0,enumerable:!0}),Object.defineProperty(Element.prototype,"disconnectedCallback",{value:function(){this.dispatchEvent(new CustomEvent("onDisconnected",{bubbles:!1,cancelable:!0})),this?.onDisconnected()},writable:!0,configurable:!0,enumerable:!0}),Object.defineProperty(window,"scoped",{value:function(e){},writable:!0,configurable:!0,enumerable:!0});try{const e=Object.getOwnPropertyDescriptor(HTMLButtonElement.prototype,"type").set;Object.defineProperty(HTMLButtonElement.prototype,"onfile",{value:function(e){},writable:!0,configurable:!0,enumerable:!0}),Object.defineProperty(HTMLButtonElement.prototype,"accept",{get:function(){return this.getAttribute("accept")||""},set:function(e){this.setAttribute("accept",e)}}),Object.defineProperty(HTMLButtonElement.prototype,"multiple",{get:function(){return this.hasAttribute("multiple")},set:function(e){e?this.setAttribute("multiple",""):this.removeAttribute("multiple")}}),Object.defineProperty(HTMLButtonElement.prototype,"type",{set:function(t){this.__onButtonFile__&&(this.__input_file__&&this.removeChild(this.__input_file__),this.__input_file__=void 0,this.removeEventListener("click",this.__onButtonFile__)),"file"==t&&(this.__input_file__=new InputElement({type:"file",style:{display:"none"}}),this.__input_file__.onchange=e=>{this.onfile(e.target.files),e.stopPropagation(),e.preventDefault()},this.__input_file__.onclick=e=>{this.removeChild(this.__input_file__),e.stopPropagation()},this.__onButtonFile__=()=>{this.__input_file__.accept=this.accept,this.__input_file__.multiple=this.multiple,this.appendChild(this.__input_file__),this.__input_file__.click()},this.addEventListener("click",this.__onButtonFile__)),e.call(this,t)}})}catch(e){}Object.defineProperty(Element.prototype,"onInit",{value:function(){},writable:!0,configurable:!0,enumerable:!0}),Object.defineProperty(Element.prototype,"getParent",{value:function(){return this.parentElement},writable:!0,configurable:!0,enumerable:!0}),Object.defineProperty(Element.prototype,"onConnected",{value:function(){},writable:!0,configurable:!0,enumerable:!0}),Object.defineProperty(Element.prototype,"onDisconnected",{value:function(){},writable:!0,configurable:!0,enumerable:!0}),Object.defineProperty(Element.prototype,"unmount",{value:function(){},writable:!0,configurable:!0,enumerable:!0}),Object.defineProperty(Element.prototype,"addClassName",{value:function(...e){for(const t of e){const e=t.match(/\S+/g)||[];e.length>0&&this.classList.add(...e)}},writable:!0,configurable:!0,enumerable:!0}),Object.defineProperty(Element.prototype,"removeClassName",{value:function(...e){for(const t of e){const e=t.match(/\S+/g)||[];e.length>0&&this.classList.remove(...e)}},writable:!0,configurable:!0,enumerable:!0}),Object.defineProperty(Element.prototype,"setStyle",{value:function(e){for(const[t,n]of Object.entries(e))this.style[t]=n},writable:!0,configurable:!0,enumerable:!0}),Object.defineProperty(Element.prototype,"onEvent",{value:function(e,t,n){EventComponent.addEventListener(this,e,t,n)},writable:!0,configurable:!0,enumerable:!0}),Object.defineProperty(Element.prototype,"createEvent",{value:function(e,...t){return EventComponent.createEvent(e,...t)},writable:!0,configurable:!0,enumerable:!0}),Object.defineProperty(Element.prototype,"removeEvent",{value:function(e){EventComponent.removeEventListener(this,e)},writable:!0,configurable:!0,enumerable:!0}),Object.defineProperty(Element.prototype,"removeEvents",{value:function(){EventComponent.removeEventListeners(this)},writable:!0,configurable:!0,enumerable:!0}),Object.defineProperty(Element.prototype,"emitEvent",{value:function(e,...t){return EventComponent.emitEvent(e,...t)},writable:!0,configurable:!0,enumerable:!0}),Object.defineProperty(Element.prototype,"deleteEvent",{value:function(e){EventComponent.deleteEvent(e)},writable:!0,configurable:!0,enumerable:!0});const originalAppend=Element.prototype.append,REF_MUTATION=Symbol("RefMutation");class RefElementObserver{element;node;index=-1;head;elements=[];constructor(e,t){this.element=e,this.node=t}set value(e){const t=this.elements,n=this.node.valueOf();if(Array.isArray(this.node))this.elements=n;else if("function"==typeof n){const e=n();this.elements=Array.isArray(e)?e:[e]}else this.elements=[n];if(-1==this.index)this.index=this.element.children.length,this.element.append(...this.elements);else{const e=Array.from(this.element.children);this.index=e.findIndex(e=>e===t[0]),e.splice(this.index,t.length,...this.elements),this.syncComponentWithList(e,this.element)}}syncComponentWithList(e,t){const n=Array.from(t.children);n.forEach(n=>{e.includes(n)||t.removeChild(n)}),e.forEach(e=>{e instanceof Node&&!n.includes(e)&&t.appendChild(e)}),e.forEach((e,n)=>{e instanceof Node&&t.children[n]!==e&&t.insertBefore(e,t.children[n]||null)})}disconnect(){this.node.unsubscribe(this,"value")}}class RefMutationObserver extends MutationObserver{element;observers=new Map;data;constructor(e){super(e=>{for(const t of e)t.addedNodes.forEach(e=>{}),t.removedNodes.forEach(e=>{})}),this.element=e,this.observe(this.element,{childList:!0}),this.element[REF_MUTATION]=this}appendRef(e){this.data=new RefElementObserver(this.element,e),this.observers.set(e,this.data)}disconnect(){super.disconnect();for(const[e,t]of this.observers)t.disconnect()}}function getIndexInKeepElements(e,t){return e instanceof HTMLElement?t.length-t.indexOf(e):-1}function replaceElements(e,t,n,o){const r=Array.from(e.childNodes),i=r.indexOf(t),s=r.indexOf(n);if(Array.isArray(o)||(o=[o]),o=o.filter(Boolean).map(e=>e instanceof HTMLElement?e:document.createTextNode(e?.toString()||e)),-1===i||-1===s||s<=i)return;const c=r.slice(i+1,s),l=c.filter(e=>!o.find(t=>t===e)),a=c.filter(e=>o.find(t=>t===e)),p=[];for(const e of l)e.remove();for(const[e,t]of o.entries())t&&p.unshift({element:t,action:a[e]===t?"keep":"insert",before:o[e+1]?o[e+1]:n});for(const t of p){const{element:n,action:o,before:r}=t;"keep"!==o&&("insert"===o&&e.insertBefore(n,r))}}Element.prototype.append=function(...e){if(e.find(e=>e instanceof ref))for(const t of e)if(t instanceof ref){const e=t,n=new Comment(`ref:${e.id}:start`),o=new Comment(`ref:${e.id}:end`);originalAppend.call(this,n,o),e.subscribe(e=>replaceElements(this,n,o,e))}else originalAppend.call(this,t);else originalAppend.call(this,...e)},Window.prototype.getTheme=function(){return localStorage.getItem("theme")||"light"},Window.prototype.setTheme=function(e){const t=document.querySelector("html");t?.setAttribute("data-theme",e),localStorage.setItem("theme",e)},Array.prototype.clear=function(){this.length=0},Object.defineProperty(SVGElement.prototype,"complete",{value:!1,writable:!0,configurable:!0,enumerable:!0}),Object.defineProperty(SVGElement.prototype,"src",{get:function(){return this.getAttribute("src")||""},set:function(e){e?this.setAttribute("src",e):this.removeAttribute("src")}}),String.prototype.toNumber=function(){return new Number(this).valueOf()},String.prototype.toInt=function(e){return parseInt(this,e)},String.prototype.toDate=function(){return new Date(this)};import{__App__}from"./app";export*from"../core/ref";export const App=new __App__;
File without changes
@@ -0,0 +1 @@
1
+ if(/^((?!chrome|android|crios|fxios).)*safari/i.test(navigator.userAgent)||/iP(hone|od|ad)/.test(navigator.userAgent)){const{keys:e}=Object,t=!0,r=!1,o="querySelectorAll",n="querySelectorAll",{document:s,Element:l,MutationObserver:a,Set:c,WeakMap:i}=self,u=e=>n in e,{filter:d}=[];var h=e=>{const h=new i,f=(t,r)=>{let o;if(r)for(let n,s=(e=>e.matches||e.webkitMatchesSelector||e.msMatchesSelector)(t),l=0,{length:a}=p;l<a;l++)s.call(t,n=p[l])&&(h.has(t)||h.set(t,new c),o=h.get(t),o.has(n)||(o.add(n),e.handle(t,r,n)));else h.has(t)&&(o=h.get(t),h.delete(t),o.forEach(o=>{e.handle(t,r,o)}))},g=(e,t=!0)=>{for(let r=0,{length:o}=e;r<o;r++)f(e[r],t)},{query:p}=e,b=e.root||s,y=((e,n=document,s=MutationObserver,l=["*"])=>{const a=(r,n,s,l,c,i)=>{for(const u of r)(i||o in u)&&(c?s.has(u)||(s.add(u),l.delete(u),e(u,c)):l.has(u)||(l.add(u),s.delete(u),e(u,c)),i||a(u[o](n),n,s,l,c,t))},c=new s(e=>{if(l.length){const o=l.join(","),n=new Set,s=new Set;for(const{addedNodes:l,removedNodes:c}of e)a(c,o,n,s,r,r),a(l,o,n,s,t,r)}}),{observe:i}=c;return(c.observe=e=>i.call(c,e,{subtree:t,childList:t}))(n),c})(f,b,a,p),{attachShadow:w}=l.prototype;return w&&(l.prototype.attachShadow=function(e){const t=w.call(this,e);return y.observe(t),t}),p.length&&g(b[n](p)),{drop:e=>{for(let t=0,{length:r}=e;t<r;t++)h.delete(e[t])},flush:()=>{const e=y.takeRecords();for(let t=0,{length:r}=e;t<r;t++)g(d.call(e[t].removedNodes,u),!1),g(d.call(e[t].addedNodes,u),!0)},observer:y,parse:g}};const{customElements:f,document:g,Element:p,MutationObserver:b,Object:y,Promise:w,Map:m,Set:v,WeakMap:S,Reflect:A}=self,{createElement:E}=g,{define:M,get:O,upgrade:q}=f,{construct:k}=A||{construct(e){return e.call(this)}},{defineProperty:N,getOwnPropertyNames:P,setPrototypeOf:$}=y,C=new S,j=new v,V=new m,x=new m,L=new m,R=new m,T=[],W=[],_=e=>R.get(e)||O.call(f,e),{parse:D}=h({query:W,handle:(t,r,o)=>{const n=L.get(o);if(r&&!n.isPrototypeOf(t)){const r=(t=>{const r=e(t),o=[],n=new Set,{length:s}=r;for(let e=0;e<s;e++){o[e]=t[r[e]];try{delete t[r[e]]}catch(t){n.add(e)}}return()=>{for(let e=0;e<s;e++)n.has(e)||(t[r[e]]=o[e])}})(t);B=$(t,n);try{new n.constructor}finally{B=null,r()}}const s=(r?"":"dis")+"connectedCallback";s in n&&t[s]()}}),{parse:F}=h({query:T,handle(e,t){C.has(e)&&(t?j.add(e):j.delete(e),W.length&&G.call(W,e))}}),{attachShadow:H}=p.prototype;H&&(p.prototype.attachShadow=function(e){const t=H.call(this,e);return C.set(this,t),t});const I=e=>{if(!x.has(e)){let t,r=new w(e=>{t=e});x.set(e,{$:r,_:t})}return x.get(e).$},z=((e,t)=>{const r=e=>{for(let t=0,{length:r}=e;t<r;t++)o(e[t])},o=({target:e,attributeName:t,oldValue:r})=>{e.attributeChangedCallback(t,r,e.getAttribute(t))};return(n,s)=>{const{observedAttributes:l}=n.constructor;return l&&e(s).then(()=>{new t(r).observe(n,{attributes:!0,attributeOldValue:!0,attributeFilter:l});for(let e=0,{length:t}=l;e<t;e++)n.hasAttribute(l[e])&&o({target:n,attributeName:l[e],oldValue:null})}),n}})(I,b);let B=null;function G(e){const t=C.get(e);D(t.querySelectorAll(this),e.isConnected)}P(self).filter(e=>/^HTML.*Element$/.test(e)).forEach(e=>{const t=self[e];function r(){const{constructor:e}=this;if(!V.has(e))throw new TypeError("Illegal constructor");const{is:r,tag:o}=V.get(e);if(r){if(B)return z(B,r);const t=E.call(g,o);return t.setAttribute("is",r),z($(t,e.prototype),r)}return k.call(this,t,[],e)}$(r,t),N(r.prototype=t.prototype,"constructor",{value:r}),N(self,e,{value:r})}),g.createElement=function(e,t){const r=t&&t.is;if(r){const t=R.get(r);if(t&&V.get(t).tag===e)return new t}const o=E.call(g,e);return r&&o.setAttribute("is",r),o},f.get=_,f.whenDefined=I,f.upgrade=function(e){const t=e.getAttribute("is");if(t){const r=R.get(t);if(r)return void z($(e,r.prototype),t)}q.call(f,e)},f.define=function(e,t,r){if(_(e))throw new Error(`'${e}' has already been defined as a custom element`);let o;const n=r&&r.extends;V.set(t,n?{is:e,tag:n}:{is:"",tag:e}),n?(o=`${n}[is="${e}"]`,L.set(o,t.prototype),R.set(e,t),W.push(o)):(M.apply(f,arguments),T.push(o=e)),I(e).then(()=>{n?(D(g.querySelectorAll(o)),j.forEach(G,[o])):F(g.querySelectorAll(o))}),x.get(e)._(t)}}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"safari-polyfill.js","sourceRoot":"","sources":["../../src/global/safari-polyfill.ts"],"names":[],"mappings":"AAAA,IAAI,4CAA4C,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,EAAE,CAAC;IACzH,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,MAAM,EACxB,CAAC,GAAG,CAAC,CAAC,EACN,CAAC,GAAG,CAAC,CAAC,EACN,CAAC,GAAG,kBAAkB,EACtB,CAAC,GAAG,kBAAkB,EACtB,EAAE,QAAQ,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,gBAAgB,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,IAAI;IAC3E,cAAc;IACd,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,EACjB,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC;IACrB,cAAc;IACd,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE;QACZ,MAAM,CAAC,GAAG,IAAI,CAAC,EAAE;QACf,cAAc;QACd,C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BAAgB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;wBAC7C,CAAC,CAAC,cAAc;4BAChB,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;gBAC7B,CAAC,CAAC;gBACF,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC,CAAC,CAAC;AACP,CAAC"}
package/index.js ADDED
@@ -0,0 +1 @@
1
+ export*from"./core";import"./global";
package/package.json CHANGED
@@ -1,11 +1,14 @@
1
1
  {
2
2
  "name": "typecomposer",
3
- "version": "0.1.49",
3
+ "version": "0.1.50",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/zico15"
7
7
  },
8
8
  "description": "A component library for getting people started with easy to re-use components for everyday projects.",
9
+ "main": "index.js",
10
+ "module": "index.js",
11
+ "types": "index.d.ts",
9
12
  "sideEffects": [
10
13
  "./global/index.js",
11
14
  "./core/styles/**"
@@ -18,51 +21,23 @@
18
21
  "index.js",
19
22
  "index.d.ts",
20
23
  "index.js.map",
21
- "client.d.ts",
22
24
  "typings/index.d.ts",
23
- "public",
24
25
  "assets",
25
26
  "translation",
26
27
  "LICENSE"
27
28
  ],
28
- "scripts": {
29
- "copy": "rm -rf '/Users/Ezequiel/Documents/TypeComposer/docs/node_modules/typecomposer/* -y' && cp -r ./dist/* '/Users/Ezequiel/Documents/TypeComposer/docs/node_modules/typecomposer'",
30
- "build": "npm run build:esm && npm run copy",
31
- "build:esm": "tsc -p tsconfig.json",
32
- "minify": "find dist -name '*.js' -exec terser {} --compress drop_console=true --mangle --output {} \\;",
33
- "pub": "npm run build && npm publish"
34
- },
35
29
  "keywords": [
36
30
  "typecomposer"
37
31
  ],
38
- "exports": {
39
- ".": {
40
- "import": {
41
- "types": "./dist/index.d.ts",
42
- "default": "./dist/index.js"
43
- },
44
- "require": {
45
- "types": "./dist/index.d.cts",
46
- "default": "./dist/index.cjs"
47
- }
48
- },
49
- "./typings": {
50
- "types": "./index.d.ts"
51
- },
52
- "./*": "./*"
53
- },
54
- "main": "dist/index.cjs",
55
- "module": "dist/index.js",
56
- "types": "dist/index.d.ts",
57
32
  "preferGlobal": true,
58
33
  "author": "Ezequiel",
59
34
  "license": "MIT",
60
35
  "devDependencies": {
61
- "ts-morph": "^27.0.0",
62
36
  "@types/node": "^24.3.3",
63
37
  "csstype": "^3.1.3",
64
38
  "terser": "^5.44.0",
39
+ "ts-morph": "^27.0.0",
65
40
  "typescript": "^5.9.2",
66
41
  "vite": "^7.1.5"
67
42
  }
68
- }
43
+ }
File without changes
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) Facebook, Inc. and its affiliates.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE
package/README.md DELETED
@@ -1,62 +0,0 @@
1
- # TypeComposer
2
-
3
- TypeComposer is a frontend framework that allows you to create user interfaces declaratively using only classes in TypeScript or JavaScript, eliminating the need to write HTML directly.It offers a simplified and efficient approach to web development.
4
-
5
- ## Features
6
-
7
- - Create user interfaces without writing HTML directly.
8
-
9
- - Uses a class-based syntax to define the structure of the interface.
10
- - Full TypeScript support and compatibility with JavaScript.
11
- - Easily integratable with other frontend frameworks and libraries.
12
- - Style and positioning of elements controlled via CSS.
13
-
14
- ## Installation
15
-
16
- You can install TypeComposer via npm:
17
-
18
- ```bash
19
- npm create typecomposer@latest
20
- ```
21
-
22
- ## Usage
23
-
24
- To get started with TypeComposer, import the necessary elements from the package and start creating your user interface using classes.Here's a basic example of a login page:
25
-
26
- ```js
27
- import typescriptLogo from "/typescript.svg";
28
- import logo from "/typecomposer.svg";
29
- import { App, BorderPaneElement, ButtonElement, H1Element, HBoxElement, ImageElement, VBoxElement } from "typecomposer";
30
- import "./style.css";
31
-
32
- export class AppPage extends BorderPaneElement {
33
- private count: number = 0;
34
-
35
- onInit(): void {
36
- const vbox = new VBoxElement({ justifyContent: "center" });
37
- const images = new HBoxElement({ width: "100%", alignItems: "center", justifyContent: "center" });
38
- images.append(new ImageElement({ src: logo, className: "logo" }));
39
- images.append(new ImageElement({ src: typescriptLogo, className: "logo" }));
40
- vbox.append(images);
41
- vbox.append(new H1Element({ text: "TypeComposer", textAlign: "center", color: "#fcfffa" }));
42
- const counter = new ButtonElement({ text: "0", width: "35%", height: "50px", alignSelf: "center" });
43
- counter.onclick = () => (counter.innerHTML = (this.count++).toString());
44
- vbox.append(counter);
45
- this.center = vbox;
46
- }
47
- }
48
-
49
- App.setPage(new AppPage());
50
- ```
51
-
52
- ## Contributing
53
-
54
- Contributions are welcome! If you find any issues or have suggestions for improvement, feel free to open an issue or submit a pull request in this GitHub repository.
55
-
56
- ## License
57
-
58
- This project is licensed under the[MIT License](LICENSE).
59
-
60
- ```
61
-
62
- ```
@@ -1,2 +0,0 @@
1
- export const Asstes = {};
2
- //# sourceMappingURL=index.js.map
@@ -1,7 +0,0 @@
1
- export * from "../global";
2
- export * from "./styles";
3
- export * from "./decorators";
4
- export * from "./element";
5
- export * from "./components";
6
- export * from "./router";
7
- //# sourceMappingURL=index.js.map