cedro 0.1.12 → 0.1.13

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 (349) hide show
  1. package/lib/assets/_virtual/_commonjsHelpers.js +1 -0
  2. package/lib/assets/_virtual/index.js +1 -0
  3. package/lib/assets/_virtual/modulepreload-polyfill.js +1 -0
  4. package/lib/assets/_virtual/named-references.js +1 -0
  5. package/lib/assets/_virtual/numeric-unicode-map.js +1 -0
  6. package/lib/assets/_virtual/surrogate-pairs.js +1 -0
  7. package/lib/assets/core/application.builder.js +1 -0
  8. package/lib/assets/core/application.core.js +1 -0
  9. package/lib/assets/core/jsxsupport.js +1 -0
  10. package/lib/assets/core/screeen.core.js +1 -0
  11. package/lib/assets/core/seo.js +1 -0
  12. package/lib/assets/core/themes.core.js +1 -0
  13. package/lib/assets/core/uid.js +1 -0
  14. package/lib/assets/index.js +5 -0
  15. package/lib/assets/material-icons-outlined.woff +0 -0
  16. package/lib/assets/material-icons-outlined.woff2 +0 -0
  17. package/lib/assets/material-icons-round.woff +0 -0
  18. package/lib/assets/material-icons-round.woff2 +0 -0
  19. package/lib/assets/material-icons-sharp.woff +0 -0
  20. package/lib/assets/material-icons-sharp.woff2 +0 -0
  21. package/lib/assets/material-icons-two-tone.woff +0 -0
  22. package/lib/assets/material-icons-two-tone.woff2 +0 -0
  23. package/lib/assets/material-icons.woff +0 -0
  24. package/lib/assets/material-icons.woff2 +0 -0
  25. package/lib/assets/node_modules/@fontsource/roboto/100.css +1 -0
  26. package/lib/assets/node_modules/@fontsource/roboto/300.css +1 -0
  27. package/lib/assets/node_modules/@fontsource/roboto/400.css +1 -0
  28. package/lib/assets/node_modules/@fontsource/roboto/500.css +1 -0
  29. package/lib/assets/node_modules/@fontsource/roboto/700.css +1 -0
  30. package/lib/assets/node_modules/@fontsource/roboto/900.css +1 -0
  31. package/lib/assets/node_modules/html-entities/lib/index.js +1 -0
  32. package/lib/assets/node_modules/html-entities/lib/named-references.js +2 -0
  33. package/lib/assets/node_modules/html-entities/lib/numeric-unicode-map.js +1 -0
  34. package/lib/assets/node_modules/html-entities/lib/surrogate-pairs.js +1 -0
  35. package/lib/assets/node_modules/material-icons/iconfont/material-icons.css +1 -0
  36. package/lib/assets/node_modules/navigo/lib/es/Q.js +1 -0
  37. package/lib/assets/node_modules/navigo/lib/es/constants.js +1 -0
  38. package/lib/assets/node_modules/navigo/lib/es/index.js +1 -0
  39. package/lib/assets/node_modules/navigo/lib/es/lifecycles.js +1 -0
  40. package/lib/assets/node_modules/navigo/lib/es/middlewares/callHandler.js +1 -0
  41. package/lib/assets/node_modules/navigo/lib/es/middlewares/checkForAfterHook.js +1 -0
  42. package/lib/assets/node_modules/navigo/lib/es/middlewares/checkForAlreadyHook.js +1 -0
  43. package/lib/assets/node_modules/navigo/lib/es/middlewares/checkForBeforeHook.js +1 -0
  44. package/lib/assets/node_modules/navigo/lib/es/middlewares/checkForDeprecationMethods.js +1 -0
  45. package/lib/assets/node_modules/navigo/lib/es/middlewares/checkForForceOp.js +1 -0
  46. package/lib/assets/node_modules/navigo/lib/es/middlewares/checkForLeaveHook.js +1 -0
  47. package/lib/assets/node_modules/navigo/lib/es/middlewares/checkForNotFoundHandler.js +1 -0
  48. package/lib/assets/node_modules/navigo/lib/es/middlewares/errorOut.js +1 -0
  49. package/lib/assets/node_modules/navigo/lib/es/middlewares/flushCurrent.js +1 -0
  50. package/lib/assets/node_modules/navigo/lib/es/middlewares/matchPathToRegisteredRoutes.js +1 -0
  51. package/lib/assets/node_modules/navigo/lib/es/middlewares/processMatches.js +1 -0
  52. package/lib/assets/node_modules/navigo/lib/es/middlewares/setLocationPath.js +1 -0
  53. package/lib/assets/node_modules/navigo/lib/es/middlewares/updateBrowserURL.js +1 -0
  54. package/lib/assets/node_modules/navigo/lib/es/middlewares/updateState.js +1 -0
  55. package/lib/assets/node_modules/navigo/lib/es/middlewares/waitingList.js +1 -0
  56. package/lib/assets/node_modules/navigo/lib/es/utils.js +1 -0
  57. package/lib/assets/roboto-cyrillic-100-normal.woff +0 -0
  58. package/lib/assets/roboto-cyrillic-100-normal.woff2 +0 -0
  59. package/lib/assets/roboto-cyrillic-300-normal.woff +0 -0
  60. package/lib/assets/roboto-cyrillic-300-normal.woff2 +0 -0
  61. package/lib/assets/roboto-cyrillic-400-normal.woff +0 -0
  62. package/lib/assets/roboto-cyrillic-400-normal.woff2 +0 -0
  63. package/lib/assets/roboto-cyrillic-500-normal.woff +0 -0
  64. package/lib/assets/roboto-cyrillic-500-normal.woff2 +0 -0
  65. package/lib/assets/roboto-cyrillic-700-normal.woff +0 -0
  66. package/lib/assets/roboto-cyrillic-700-normal.woff2 +0 -0
  67. package/lib/assets/roboto-cyrillic-900-normal.woff +0 -0
  68. package/lib/assets/roboto-cyrillic-900-normal.woff2 +0 -0
  69. package/lib/assets/roboto-cyrillic-ext-100-normal.woff +0 -0
  70. package/lib/assets/roboto-cyrillic-ext-100-normal.woff2 +0 -0
  71. package/lib/assets/roboto-cyrillic-ext-300-normal.woff +0 -0
  72. package/lib/assets/roboto-cyrillic-ext-300-normal.woff2 +0 -0
  73. package/lib/assets/roboto-cyrillic-ext-400-normal.woff +0 -0
  74. package/lib/assets/roboto-cyrillic-ext-400-normal.woff2 +0 -0
  75. package/lib/assets/roboto-cyrillic-ext-500-normal.woff +0 -0
  76. package/lib/assets/roboto-cyrillic-ext-500-normal.woff2 +0 -0
  77. package/lib/assets/roboto-cyrillic-ext-700-normal.woff +0 -0
  78. package/lib/assets/roboto-cyrillic-ext-700-normal.woff2 +0 -0
  79. package/lib/assets/roboto-cyrillic-ext-900-normal.woff +0 -0
  80. package/lib/assets/roboto-cyrillic-ext-900-normal.woff2 +0 -0
  81. package/lib/assets/roboto-greek-100-normal.woff +0 -0
  82. package/lib/assets/roboto-greek-100-normal.woff2 +0 -0
  83. package/lib/assets/roboto-greek-300-normal.woff +0 -0
  84. package/lib/assets/roboto-greek-300-normal.woff2 +0 -0
  85. package/lib/assets/roboto-greek-400-normal.woff +0 -0
  86. package/lib/assets/roboto-greek-400-normal.woff2 +0 -0
  87. package/lib/assets/roboto-greek-500-normal.woff +0 -0
  88. package/lib/assets/roboto-greek-500-normal.woff2 +0 -0
  89. package/lib/assets/roboto-greek-700-normal.woff +0 -0
  90. package/lib/assets/roboto-greek-700-normal.woff2 +0 -0
  91. package/lib/assets/roboto-greek-900-normal.woff +0 -0
  92. package/lib/assets/roboto-greek-900-normal.woff2 +0 -0
  93. package/lib/assets/roboto-latin-100-normal.woff +0 -0
  94. package/lib/assets/roboto-latin-100-normal.woff2 +0 -0
  95. package/lib/assets/roboto-latin-300-normal.woff +0 -0
  96. package/lib/assets/roboto-latin-300-normal.woff2 +0 -0
  97. package/lib/assets/roboto-latin-400-normal.woff +0 -0
  98. package/lib/assets/roboto-latin-400-normal.woff2 +0 -0
  99. package/lib/assets/roboto-latin-500-normal.woff +0 -0
  100. package/lib/assets/roboto-latin-500-normal.woff2 +0 -0
  101. package/lib/assets/roboto-latin-700-normal.woff +0 -0
  102. package/lib/assets/roboto-latin-700-normal.woff2 +0 -0
  103. package/lib/assets/roboto-latin-900-normal.woff +0 -0
  104. package/lib/assets/roboto-latin-900-normal.woff2 +0 -0
  105. package/lib/assets/roboto-latin-ext-100-normal.woff +0 -0
  106. package/lib/assets/roboto-latin-ext-100-normal.woff2 +0 -0
  107. package/lib/assets/roboto-latin-ext-300-normal.woff +0 -0
  108. package/lib/assets/roboto-latin-ext-300-normal.woff2 +0 -0
  109. package/lib/assets/roboto-latin-ext-400-normal.woff +0 -0
  110. package/lib/assets/roboto-latin-ext-400-normal.woff2 +0 -0
  111. package/lib/assets/roboto-latin-ext-500-normal.woff +0 -0
  112. package/lib/assets/roboto-latin-ext-500-normal.woff2 +0 -0
  113. package/lib/assets/roboto-latin-ext-700-normal.woff +0 -0
  114. package/lib/assets/roboto-latin-ext-700-normal.woff2 +0 -0
  115. package/lib/assets/roboto-latin-ext-900-normal.woff +0 -0
  116. package/lib/assets/roboto-latin-ext-900-normal.woff2 +0 -0
  117. package/lib/assets/roboto-vietnamese-100-normal.woff +0 -0
  118. package/lib/assets/roboto-vietnamese-100-normal.woff2 +0 -0
  119. package/lib/assets/roboto-vietnamese-300-normal.woff +0 -0
  120. package/lib/assets/roboto-vietnamese-300-normal.woff2 +0 -0
  121. package/lib/assets/roboto-vietnamese-400-normal.woff +0 -0
  122. package/lib/assets/roboto-vietnamese-400-normal.woff2 +0 -0
  123. package/lib/assets/roboto-vietnamese-500-normal.woff +0 -0
  124. package/lib/assets/roboto-vietnamese-500-normal.woff2 +0 -0
  125. package/lib/assets/roboto-vietnamese-700-normal.woff +0 -0
  126. package/lib/assets/roboto-vietnamese-700-normal.woff2 +0 -0
  127. package/lib/assets/roboto-vietnamese-900-normal.woff +0 -0
  128. package/lib/assets/roboto-vietnamese-900-normal.woff2 +0 -0
  129. package/lib/assets/types/select.item.type.js +1 -0
  130. package/lib/assets/ui/Icon.ui.js +1 -0
  131. package/lib/assets/ui/IconButton.ui.js +1 -0
  132. package/lib/assets/ui/Textbox.ui.js +1 -0
  133. package/lib/assets/ui/accordion.ui.js +1 -0
  134. package/lib/assets/ui/button.ui.js +1 -0
  135. package/lib/assets/ui/buttonColor.ui.js +1 -0
  136. package/lib/assets/ui/buttonmenu.ui.js +1 -0
  137. package/lib/assets/ui/buttonstack.ui.js +1 -0
  138. package/lib/assets/ui/checkbox.ui.js +1 -0
  139. package/lib/assets/ui/container.ui.js +1 -0
  140. package/lib/assets/ui/datagrid.ui.js +1 -0
  141. package/lib/assets/ui/dialog.js +1 -0
  142. package/lib/assets/ui/draggable.ui.js +1 -0
  143. package/lib/assets/ui/hpanel.ui.js +1 -0
  144. package/lib/assets/ui/iconButtonMenu.ui.js +1 -0
  145. package/lib/assets/ui/image.ui.js +1 -0
  146. package/lib/assets/ui/label.ui.js +1 -0
  147. package/lib/assets/ui/loading.ui.js +1 -0
  148. package/lib/assets/ui/menu.ui.js +1 -0
  149. package/lib/assets/ui/progressbar.ui.js +1 -0
  150. package/lib/assets/ui/radiobutton.ui.js +1 -0
  151. package/lib/assets/ui/scroll.ui.js +1 -0
  152. package/lib/assets/ui/select.ui.js +1 -0
  153. package/lib/assets/ui/styles/accordion.css +1 -0
  154. package/lib/assets/ui/styles/button.css +1 -0
  155. package/lib/assets/ui/styles/buttoncolor.css +1 -0
  156. package/lib/assets/ui/styles/container.css +1 -0
  157. package/lib/assets/ui/styles/datagrid.css +1 -0
  158. package/lib/assets/ui/styles/dialog.css +1 -0
  159. package/lib/assets/ui/styles/draggable.css +1 -0
  160. package/lib/assets/ui/styles/hpanel.css +1 -0
  161. package/lib/assets/ui/styles/icon.css +1 -0
  162. package/lib/assets/ui/styles/image.css +1 -0
  163. package/lib/assets/ui/styles/label.css +1 -0
  164. package/lib/assets/ui/styles/loading.css +1 -0
  165. package/lib/assets/ui/styles/main.css +1 -0
  166. package/lib/assets/ui/styles/menu.css +1 -0
  167. package/lib/assets/ui/styles/progressbar.css +1 -0
  168. package/lib/assets/ui/styles/scroll.css +1 -0
  169. package/lib/assets/ui/styles/select.css +1 -0
  170. package/lib/assets/ui/styles/stackbutton.css +1 -0
  171. package/lib/assets/ui/styles/tabs.css +1 -0
  172. package/lib/assets/ui/styles/textarea.css +1 -0
  173. package/lib/assets/ui/styles/textbox.css +1 -0
  174. package/lib/assets/ui/styles/toolbar.css +1 -0
  175. package/lib/assets/ui/styles/valuebar.css +1 -0
  176. package/lib/assets/ui/styles/vpanel.css +1 -0
  177. package/lib/assets/ui/styles/vstackbutton.css +1 -0
  178. package/lib/assets/ui/switch.ui.js +1 -0
  179. package/lib/assets/ui/tabs.ui.js +1 -0
  180. package/lib/assets/ui/textarea.ui.js +1 -0
  181. package/lib/assets/ui/toggle.ui.js +1 -0
  182. package/lib/assets/ui/toolbar.ui.js +1 -0
  183. package/lib/assets/ui/valuebar.ui.js +1 -0
  184. package/lib/assets/ui/vpanel.ui.js +1 -0
  185. package/lib/assets/ui/widget.builder.js +1 -0
  186. package/lib/assets/ui/widget.collection.js +1 -0
  187. package/lib/assets/ui/widget.ui.js +1 -0
  188. package/lib/cedro-logo.png +0 -0
  189. package/lib/cedro-logo.svg +97 -0
  190. package/lib/fangio.jpg +0 -0
  191. package/lib/material-icons-list.json/357/200/272Zone.Identifier +3 -0
  192. package/package.json +10 -4
  193. package/rollup.config.js +31 -0
  194. package/tsconfig.json +3 -0
  195. package/tsconfig.publish.json +3 -0
  196. package/vite.publish.config.ts +41 -0
  197. package/lib/core/application.builder.d.ts +0 -2
  198. package/lib/core/application.builder.jsx +0 -103
  199. package/lib/core/application.builder.jsx.map +0 -1
  200. package/lib/core/application.core.d.ts +0 -96
  201. package/lib/core/application.core.jsx +0 -290
  202. package/lib/core/application.core.jsx.map +0 -1
  203. package/lib/core/index.d.ts +0 -3
  204. package/lib/core/index.js +0 -4
  205. package/lib/core/index.js.map +0 -1
  206. package/lib/core/jsxsupport.d.ts +0 -13
  207. package/lib/core/jsxsupport.js +0 -82
  208. package/lib/core/jsxsupport.js.map +0 -1
  209. package/lib/core/screeen.core.d.ts +0 -41
  210. package/lib/core/screeen.core.js +0 -76
  211. package/lib/core/screeen.core.js.map +0 -1
  212. package/lib/core/seo.d.ts +0 -33
  213. package/lib/core/seo.js +0 -66
  214. package/lib/core/seo.js.map +0 -1
  215. package/lib/core/themes.core.d.ts +0 -22
  216. package/lib/core/themes.core.js +0 -317
  217. package/lib/core/themes.core.js.map +0 -1
  218. package/lib/core/uid.d.ts +0 -1
  219. package/lib/core/uid.js +0 -4
  220. package/lib/core/uid.js.map +0 -1
  221. package/lib/index.d.ts +0 -5
  222. package/lib/index.js +0 -8
  223. package/lib/index.js.map +0 -1
  224. package/lib/interfaces/application.interface.d.ts +0 -39
  225. package/lib/interfaces/application.interface.js +0 -6
  226. package/lib/interfaces/application.interface.js.map +0 -1
  227. package/lib/interfaces/screen.interface.d.ts +0 -12
  228. package/lib/interfaces/screen.interface.js +0 -2
  229. package/lib/interfaces/screen.interface.js.map +0 -1
  230. package/lib/interfaces/themes.interface.d.ts +0 -15
  231. package/lib/interfaces/themes.interface.js +0 -2
  232. package/lib/interfaces/themes.interface.js.map +0 -1
  233. package/lib/interfaces/widget.interface.d.ts +0 -85
  234. package/lib/interfaces/widget.interface.js +0 -2
  235. package/lib/interfaces/widget.interface.js.map +0 -1
  236. package/lib/types/orientation.type.d.ts +0 -1
  237. package/lib/types/orientation.type.js +0 -2
  238. package/lib/types/orientation.type.js.map +0 -1
  239. package/lib/types/select.item.type.d.ts +0 -6
  240. package/lib/types/select.item.type.js +0 -26
  241. package/lib/types/select.item.type.js.map +0 -1
  242. package/lib/types/vector2d.type.d.ts +0 -4
  243. package/lib/types/vector2d.type.js +0 -2
  244. package/lib/types/vector2d.type.js.map +0 -1
  245. package/lib/ui/Icon.ui.d.ts +0 -31
  246. package/lib/ui/Icon.ui.jsx +0 -121
  247. package/lib/ui/Icon.ui.jsx.map +0 -1
  248. package/lib/ui/IconButton.ui.d.ts +0 -32
  249. package/lib/ui/IconButton.ui.jsx +0 -184
  250. package/lib/ui/IconButton.ui.jsx.map +0 -1
  251. package/lib/ui/Textbox.ui.d.ts +0 -32
  252. package/lib/ui/Textbox.ui.jsx +0 -152
  253. package/lib/ui/Textbox.ui.jsx.map +0 -1
  254. package/lib/ui/accordion.ui.d.ts +0 -27
  255. package/lib/ui/accordion.ui.jsx +0 -108
  256. package/lib/ui/accordion.ui.jsx.map +0 -1
  257. package/lib/ui/button.ui.d.ts +0 -44
  258. package/lib/ui/button.ui.jsx +0 -180
  259. package/lib/ui/button.ui.jsx.map +0 -1
  260. package/lib/ui/buttonColor.ui.d.ts +0 -14
  261. package/lib/ui/buttonColor.ui.jsx +0 -58
  262. package/lib/ui/buttonColor.ui.jsx.map +0 -1
  263. package/lib/ui/buttonmenu.ui.d.ts +0 -23
  264. package/lib/ui/buttonmenu.ui.jsx +0 -104
  265. package/lib/ui/buttonmenu.ui.jsx.map +0 -1
  266. package/lib/ui/buttonstack.ui.d.ts +0 -26
  267. package/lib/ui/buttonstack.ui.jsx +0 -138
  268. package/lib/ui/buttonstack.ui.jsx.map +0 -1
  269. package/lib/ui/checkbox.ui.d.ts +0 -12
  270. package/lib/ui/checkbox.ui.jsx +0 -29
  271. package/lib/ui/checkbox.ui.jsx.map +0 -1
  272. package/lib/ui/colors.ui.d.ts +0 -1
  273. package/lib/ui/colors.ui.js +0 -2
  274. package/lib/ui/colors.ui.js.map +0 -1
  275. package/lib/ui/container.ui.d.ts +0 -33
  276. package/lib/ui/container.ui.jsx +0 -96
  277. package/lib/ui/container.ui.jsx.map +0 -1
  278. package/lib/ui/datagrid.ui.d.ts +0 -119
  279. package/lib/ui/datagrid.ui.jsx +0 -445
  280. package/lib/ui/datagrid.ui.jsx.map +0 -1
  281. package/lib/ui/dialog.d.ts +0 -102
  282. package/lib/ui/dialog.jsx +0 -480
  283. package/lib/ui/dialog.jsx.map +0 -1
  284. package/lib/ui/draggable.ui.d.ts +0 -27
  285. package/lib/ui/draggable.ui.js +0 -183
  286. package/lib/ui/draggable.ui.js.map +0 -1
  287. package/lib/ui/hpanel.ui.d.ts +0 -26
  288. package/lib/ui/hpanel.ui.jsx +0 -183
  289. package/lib/ui/hpanel.ui.jsx.map +0 -1
  290. package/lib/ui/iconButtonMenu.ui.d.ts +0 -27
  291. package/lib/ui/iconButtonMenu.ui.jsx +0 -135
  292. package/lib/ui/iconButtonMenu.ui.jsx.map +0 -1
  293. package/lib/ui/image.ui.d.ts +0 -25
  294. package/lib/ui/image.ui.jsx +0 -88
  295. package/lib/ui/image.ui.jsx.map +0 -1
  296. package/lib/ui/index.d.ts +0 -30
  297. package/lib/ui/index.js +0 -30
  298. package/lib/ui/index.js.map +0 -1
  299. package/lib/ui/label.ui.d.ts +0 -37
  300. package/lib/ui/label.ui.jsx +0 -155
  301. package/lib/ui/label.ui.jsx.map +0 -1
  302. package/lib/ui/loading.ui.d.ts +0 -5
  303. package/lib/ui/loading.ui.js +0 -10
  304. package/lib/ui/loading.ui.js.map +0 -1
  305. package/lib/ui/menu.ui.d.ts +0 -19
  306. package/lib/ui/menu.ui.js +0 -186
  307. package/lib/ui/menu.ui.js.map +0 -1
  308. package/lib/ui/progressbar.ui.d.ts +0 -23
  309. package/lib/ui/progressbar.ui.jsx +0 -109
  310. package/lib/ui/progressbar.ui.jsx.map +0 -1
  311. package/lib/ui/radiobutton.ui.d.ts +0 -12
  312. package/lib/ui/radiobutton.ui.jsx +0 -29
  313. package/lib/ui/radiobutton.ui.jsx.map +0 -1
  314. package/lib/ui/scroll.ui.d.ts +0 -13
  315. package/lib/ui/scroll.ui.js +0 -163
  316. package/lib/ui/scroll.ui.js.map +0 -1
  317. package/lib/ui/select.ui.d.ts +0 -29
  318. package/lib/ui/select.ui.jsx +0 -129
  319. package/lib/ui/select.ui.jsx.map +0 -1
  320. package/lib/ui/switch.ui.d.ts +0 -12
  321. package/lib/ui/switch.ui.jsx +0 -29
  322. package/lib/ui/switch.ui.jsx.map +0 -1
  323. package/lib/ui/tabs.ui.d.ts +0 -40
  324. package/lib/ui/tabs.ui.jsx +0 -242
  325. package/lib/ui/tabs.ui.jsx.map +0 -1
  326. package/lib/ui/textarea.ui.d.ts +0 -13
  327. package/lib/ui/textarea.ui.jsx +0 -34
  328. package/lib/ui/textarea.ui.jsx.map +0 -1
  329. package/lib/ui/toggle.ui.d.ts +0 -11
  330. package/lib/ui/toggle.ui.jsx +0 -48
  331. package/lib/ui/toggle.ui.jsx.map +0 -1
  332. package/lib/ui/toolbar.ui.d.ts +0 -44
  333. package/lib/ui/toolbar.ui.jsx +0 -261
  334. package/lib/ui/toolbar.ui.jsx.map +0 -1
  335. package/lib/ui/valuebar.ui.d.ts +0 -23
  336. package/lib/ui/valuebar.ui.jsx +0 -144
  337. package/lib/ui/valuebar.ui.jsx.map +0 -1
  338. package/lib/ui/vpanel.ui.d.ts +0 -24
  339. package/lib/ui/vpanel.ui.jsx +0 -170
  340. package/lib/ui/vpanel.ui.jsx.map +0 -1
  341. package/lib/ui/widget.builder.d.ts +0 -25
  342. package/lib/ui/widget.builder.js +0 -216
  343. package/lib/ui/widget.builder.js.map +0 -1
  344. package/lib/ui/widget.collection.d.ts +0 -20
  345. package/lib/ui/widget.collection.js +0 -49
  346. package/lib/ui/widget.collection.js.map +0 -1
  347. package/lib/ui/widget.ui.d.ts +0 -337
  348. package/lib/ui/widget.ui.js +0 -964
  349. package/lib/ui/widget.ui.js.map +0 -1
@@ -0,0 +1 @@
1
+ var d=Object.defineProperty;var o=(e,i,t)=>i in e?d(e,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[i]=t;var h=(e,i,t)=>o(e,typeof i!="symbol"?i+"":i,t);import{DOMcreateElement as u}from"../core/jsxsupport.js";/* empty css */import{connectWidgetCallback as g,getOnlyEventProps as c,Widget as l}from"./widget.ui.js";import{Draggable as B}from"./draggable.ui.js";import{normalizeWidget as b}from"./widget.builder.js";import{UID as m}from"../core/uid.js";class v extends l{constructor(t,r="horizontal",a=null){super(t,"div",a);h(this,"orientation");h(this,"value");h(this,"containerBar");h(this,"bar");h(this,"handler");h(this,"draggable");this.containerBar=new l(t+".containerBar","div",this),this.bar=new l(t+".bar","div",this.containerBar),this.handler=new l(t+".handler","div",this),this.addClass("WUIValueBar"),this.containerBar.addClass("WUIValueBarContainer"),this.bar.addClass("WUIValueBarBar"),this.handler.addClass("WUIValueBarHandler"),this.draggable=new B(this.handler,r),this.handler.subscribe({event:"drag",then:(s,n)=>{this.updateValueFromHandlerPosition()}}),this.orientation=r,this.value=10,this.handler.raisteTop()}setValue(t){this.value=t,this.render()}getValue(){return this.value}updateValueFromHandlerPosition(){if(this.orientation==="horizontal"){const t=this.draggable.maxX?this.draggable.maxX:1,r=this.handler.getX()/t;this.value=Math.round(r*100)}else if(this.orientation==="vertical"){const t=this.draggable.maxY?this.draggable.maxY:1,r=this.handler.getY()/t;this.value=Math.round(r*100)}this.render()}render(){if(super.render(),this.orientation==="horizontal"){const a=this.getW()-3,s=this.getH(),n=a*(this.value/100);this.containerBar.setX(0),this.containerBar.setY(s/2-14/2),this.containerBar.setH(14),this.containerBar.setW(a),this.bar.setX(0),this.bar.setY(0),this.bar.setW(n),this.bar.setH(10),this.handler.setX(n-24+2),this.handler.setY(s/2-24/2),this.handler.setWH(24,24),this.draggable.setMinX(0),this.draggable.setMaxX(a-24+2)}else if(this.orientation==="vertical"){const a=this.getH()-3,s=this.getW(),n=a*(this.value/100);this.containerBar.setY(0),this.containerBar.setX(s/2-14/2),this.containerBar.setW(14),this.containerBar.setH(a),this.bar.setX(0),this.bar.setY(0),this.bar.setH(n),this.bar.setW(10),this.handler.setY(n-24+2),this.handler.setX(s/2-24/2),this.handler.setWH(24,24),this.draggable.setMinY(0),this.draggable.setMaxY(a-24+2)}}}const Y=e=>(e.id||(e.id="ValueBar."+m()),g(e.id,c(e)),b(u("div",{id:e.id,"w-valuebar":!0,"w-value":e.value}),e));function H(e,i,t=null){const r=i.getAttribute("w-orientation"),a=i.getAttribute("w-value");let s=r||"horizontal",n=new v(e,s,t);return a&&n.setValue(parseInt(a)),n}export{v as ValueBar,Y as WValueBar,H as createValueBar};
@@ -0,0 +1 @@
1
+ var u=Object.defineProperty;var c=(i,o,t)=>o in i?u(i,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[o]=t;var l=(i,o,t)=>c(i,typeof o!="symbol"?o+"":o,t);import{DOMcreateElement as m}from"../core/jsxsupport.js";import{Draggable as b}from"./draggable.ui.js";/* empty css */import{normalizeWidget as C,createWidget as H}from"./widget.builder.js";import{Widget as a,WidgetAlignTypes as f,WidgetTypes as g,connectWidgetCallback as Y,getOnlyEventProps as y}from"./widget.ui.js";const d=4;class S extends a{constructor(t,e=null){super(t,"div",e);l(this,"topContent");l(this,"bottomContent");l(this,"topHeight");l(this,"bottomHeight");l(this,"handler");l(this,"draggable");this.setAlign(f.VERTICAL),this.setType(g.FILL),this.handler=new a(t+".handler","div",null),this.handler.addClass("WUIVPanelHandler"),this.draggable=new b(this.handler,"vertical"),this.draggable.setDraggingClass("WUIVPanelDragging"),this.draggable.setBackgroundCursor("row-resize"),this.handler.subscribe({event:"drag",then:(s,n)=>{this.updateSizeFromHandlerPosition()}}),this.subscribe({event:"mousemove",then:(s,n)=>{this.updateHandlerOpacity(s)}}),this.topContent=null,this.bottomContent=null,this.topHeight=null,this.bottomHeight=null}updateHandlerOpacity(t){const e=this.handler.getY(),s=t.clientY,n=100,h=20,r=Math.abs(s-e);if(r<n&&r>h){const p=1-r/n;this.handler.getBody().style.opacity=p.toString()}else r<h?this.handler.getBody().style.opacity="1":this.handler.getBody().style.opacity="0"}setTop(t,e=null){this.topContent=t,this.topHeight=e,e!==null&&(this.bottomHeight=null,this.topContent.setFixedSize(e)),this.addChild(t);const s=new a("spacer."+Date.now().toString(),"div",null);s.setType(g.FILL),s.setFixedSize(d),this.addChild(s)}setBottom(t,e=null){this.bottomContent=t,this.bottomHeight=e,e!==null&&(this.topHeight=null,this.bottomContent.setFixedSize(e)),this.addChild(t)}updateSizeFromHandlerPosition(){if(this.topHeight!==null){const t=this.topContent?this.topContent.getY(!0):0;this.topHeight=this.handler.getY()-t}else this.bottomHeight!==null&&(this.bottomHeight=this.getH()-this.handler.getY());this.render()}render(){var t,e,s;if(super.render(),this.handler.setH(d),this.handler.setW(this.getW()),this.topHeight!==null){const n=this.topContent?this.topContent.getY(!0):0;this.handler.setY(n+this.topHeight),(t=this.topContent)==null||t.setFixedSize(this.topHeight)}else if(this.bottomHeight!==null){const n=this.bottomContent?this.bottomContent.getY(!0):0;this.handler.setY(n+this.bottomHeight),(e=this.bottomContent)==null||e.setFixedSize(this.bottomHeight)}else{this.topHeight===null&&(this.topHeight=this.getH()/2-d/2);const n=this.topContent?this.topContent.getY(!0):0;this.handler.setY(n+this.topHeight),(s=this.topContent)==null||s.setFixedSize(this.topHeight)}this.handler.setX(this.getX(!0))}free(){var t,e;this.handler.free(),(t=this.topContent)==null||t.free(),(e=this.bottomContent)==null||e.free(),super.free()}}const D=i=>(Y(i.id,y(i)),C(m("div",{"w-vpanel":!0},i.children),i));function E(i,o,t=null){let e=new S(i,t);return o.childNodes.forEach((s,n)=>{const h=H(s);h!==null&&(n===0?e.setTop(h,h.getFixedSize()):n===1&&e.setBottom(h))}),e}export{S as VPanel,D as WVPanel,E as createVPanel};
@@ -0,0 +1 @@
1
+ import{UID as d}from"../core/uid.js";import{WidgetTypes as l,Widget as b,WidgetAlignTypes as f}from"./widget.ui.js";import{addNewWidget as g}from"./widget.collection.js";import{createTextbox as A}from"./Textbox.ui.js";import{createButton as w}from"./button.ui.js";import{createLabel as x}from"./label.ui.js";import{createContainer as h}from"./container.ui.js";import{createIconButton as p}from"./IconButton.ui.js";import{createImage as y}from"./image.ui.js";import{createCheckbox as T}from"./checkbox.ui.js";import{createRadioButton as I}from"./radiobutton.ui.js";import{createToolbar as N}from"./toolbar.ui.js";import{createProgressBar as z}from"./progressbar.ui.js";import{createValueBar as B}from"./valuebar.ui.js";import{createVPanel as C,VPanel as S}from"./vpanel.ui.js";import{createHPanel as v,HPanel as E}from"./hpanel.ui.js";import{createTab as L,Tabs as P}from"./tabs.ui.js";import{createSwitch as R}from"./switch.ui.js";import{createAccordion as V,Accordion as c}from"./accordion.ui.js";import{createButtonStack as W}from"./buttonstack.ui.js";import{createButtonColor as D}from"./buttonColor.ui.js";import{createButtonMenu as F}from"./buttonmenu.ui.js";import{createIconButtonMenu as k}from"./iconButtonMenu.ui.js";import{createIcon as H}from"./Icon.ui.js";import{createTextarea as M}from"./textarea.ui.js";import{createSelect as O}from"./select.ui.js";import{createDialog as G,Dialog as u}from"./dialog.js";import{createDataGrid as U,DataGrid as o}from"./datagrid.ui.js";function Z(i,r=null,s=!1){if(!i.tagName)return null;let e=null,t={id:i.id?i.id:d(),type:i.getAttribute("w-type")===null?l.FILL:parseInt(i.getAttribute("w-type")),orientation:i.getAttribute("w-orientation")===null?"horizontal":i.getAttribute("w-orientation"),hidden:i.getAttribute("w-hidden")!==null,padding:i.getAttribute("w-padding")===null?0:parseInt(i.getAttribute("w-padding")),fixedSize:i.getAttribute("w-fixed-size")===null?null:parseInt(i.getAttribute("w-fixed-size")),classNames:i.getAttribute("w-classes")===null?null:i.getAttribute("w-classes")};if(t.id||(t.id=d()),i.getAttribute("w-textbox")?e=A(t.id,i,r):i.getAttribute("w-textarea")?e=M(t.id,i,r):i.getAttribute("w-button")?e=w(t.id,i,r):i.getAttribute("w-icon-button")?e=p(t.id,i,r):i.getAttribute("w-button-stack")?e=W(t.id,i,r):i.getAttribute("w-button-color")?e=D(t.id,i,r):i.getAttribute("w-button-menu")?e=F(t.id,i,r):i.getAttribute("w-icon-button-menu")?e=k(t.id,i,r):i.getAttribute("w-label")?e=x(t.id,i,r):i.getAttribute("w-image")?e=y(t.id,i,r):i.getAttribute("w-icon")?e=H(t.id,i,r):i.getAttribute("w-checkbox")?e=T(t.id,i,r):i.getAttribute("w-radiobutton")?e=I(t.id,i,r):i.getAttribute("w-switch")?e=R(t.id,i,r):i.getAttribute("w-toolbar")?e=N(t.id,i,r):i.getAttribute("w-progressbar")?e=z(t.id,i,r):i.getAttribute("w-valuebar")?e=B(t.id,i,r):i.getAttribute("w-tab")?e=L(t.id,i,r):i.getAttribute("w-accordion")?e=V(t.id,i,r):i.getAttribute("w-vpanel")?e=C(t.id,i,r):i.getAttribute("w-hpanel")?e=v(t.id,i,r):i.getAttribute("w-container")?e=h(i,r):i.getAttribute("w-select")?e=O(t.id,i,r):i.getAttribute("w-dialog")?e=G(t.id,i,null):i.getAttribute("w-data-grid")?e=U(t.id,i,r):(e=new b(t.id,i.tagName,r),t.type===l.FREE&&(s=!0),i.getAttributeNames().forEach(a=>{e&&e.getBody().setAttribute(a,i.getAttribute(a))}),i.childNodes.forEach(a=>{a.hasChildNodes()==!0?Z(a,e,s):e&&e.getBody().appendChild(a)})),e){if(!s&&t.type?e.setType(t.type):e.setType(l.FREE),e instanceof u&&e.setType(l.CUSTOM),t.orientation&&!(e instanceof S)&&!(e instanceof E)&&!(e instanceof u)&&!(e instanceof o)&&!(e instanceof P)&&(t.orientation==="vertical"?e.setAlign(f.VERTICAL):e.setAlign(f.HORIZONTAL)),e instanceof c&&e.setAlign(f.VERTICAL),e instanceof o&&e.setAlign(f.VERTICAL),t.padding&&e.setPadding(t.padding),t.fixedSize&&e.setFixedSize(t.fixedSize),t.classNames){const a=t.classNames.split(" ");for(const m of a)e.addClass(m)}return t.hidden&&e.setVisible(!1),g(t.id,e),e}return null}function pi(i,r){return r.fixedSize!==void 0&&i.setAttribute("w-fixed-size",r.fixedSize),r.padding!==void 0&&i.setAttribute("w-padding",r.padding),r.type!==void 0&&i.setAttribute("w-type",r.type),r.hidden!==void 0&&i.setAttribute("w-hidden",r.hidden),r.classNames!==void 0&&i.setAttribute("w-classes",r.classNames),r.orientation!==void 0&&i.setAttribute("w-orientation",r.orientation),i}export{Z as createWidget,pi as normalizeWidget};
@@ -0,0 +1 @@
1
+ const i=()=>{window.w||(window.w=new Map,w=window.w),o()},o=()=>{window.widgetConnections||(window.widgetConnections=new Map),window.widgetCustomConnections||(window.widgetCustomConnections=new Map)},c=(n,t)=>{i(),w.get(n)||w.set(n,t),setTimeout(()=>{s("widget-added-"+n),d("widget-custom-added-"+n)})},C=(n,t)=>{o(),widgetConnections.set(n,t)},g=(n,t)=>{o(),widgetCustomConnections.set(n,t)},s=n=>{for(const[t,e]of widgetConnections.entries())t==n&&e.then(new Event(n),null);widgetConnections.delete(n)},d=n=>{for(const[t,e]of widgetCustomConnections.entries())t==n&&e.then(new Event(n),null);widgetCustomConnections.delete(n)};export{c as addNewWidget,g as connectCustomWidget,C as connectWidget,i as initWidgetCollection,o as initWidgetConnections,s as run,d as runCustom};
@@ -0,0 +1 @@
1
+ var f=Object.defineProperty;var b=(i,e,t)=>e in i?f(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var d=(i,e,t)=>b(i,typeof e!="symbol"?e+"":e,t);import{UID as y}from"../core/uid.js";import{addNewWidget as c,connectWidget as g}from"./widget.collection.js";var v=(i=>(i[i.FILL=1]="FILL",i[i.CUSTOM=2]="CUSTOM",i[i.FREE=3]="FREE",i))(v||{}),m=(i=>(i[i.HORIZONTAL=1]="HORIZONTAL",i[i.VERTICAL=2]="VERTICAL",i))(m||{});class M{constructor(e="",t="div",h=null){d(this,"id");d(this,"subscribers");d(this,"padding");d(this,"left");d(this,"top");d(this,"width");d(this,"height");d(this,"initialWidth");d(this,"initialHeight");d(this,"overflow");d(this,"fixedSize");d(this,"type");d(this,"align");d(this,"visible");d(this,"enabled");d(this,"parent");d(this,"childs");d(this,"bodyTagName");d(this,"body");this.id=e||y(),this.overflow=!1,this.subscribers=new Map,this.padding=0,this.left=0,this.top=0,this.width=0,this.height=0,this.initialWidth=0,this.initialHeight=0,this.fixedSize=null,this.type=3,this.align=2,this.visible=!0,this.enabled=!0,this.parent=h,this.childs=[],this.bodyTagName=t,this.body=document.createElement(this.bodyTagName),this.body.id=`WUI.${e}.body`,h?(h.addChild(this),h.getBody().appendChild(this.body)):(this.setType(3),document.body.appendChild(this.body)),this.body.addEventListener("click",s=>{this.subscribers.forEach(n=>{n.event=="click"&&n.then(s,this)})}),this.body.addEventListener("mousedown",s=>{this.subscribers.forEach(n=>{n.event=="mousedown"&&n.then(s,this)})}),this.body.addEventListener("mouseup",s=>{this.subscribers.forEach(n=>{n.event=="mouseup"&&n.then(s,this)})}),this.body.addEventListener("mousemove",s=>{this.subscribers.forEach(n=>{n.event=="mousemove"&&n.then(s,this)})}),this.body.addEventListener("wheel",s=>{this.subscribers.forEach(n=>{n.event=="wheel"&&n.then(s,this)})}),this.body.addEventListener("mouseout",s=>{this.subscribers.forEach(n=>{n.event=="mouseout"&&n.then(s,this)})}),this.body.addEventListener("mouseleave",s=>{this.subscribers.forEach(n=>{n.event=="mouseleave"&&n.then(s,this)})}),this.init(),this.getMaxZIndex(),c(this.id,this)}run(e){this.subscribers.forEach(t=>{t.event==e&&t.then(new Event(e),this)})}subscribe(e){const t=Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15);this.subscribers.set(`${t}.${e.event}`,e)}unsubscribe(e){this.subscribers.delete(`${e}`)}setPadding(e){this.padding=e}setX(e){this.left=e,this.body.style.left=`${e}px`}setY(e){this.top=e,this.body.style.top=`${e}px`}setW(e){this.body.style.width=`${e}px`}setInitialW(e){this.initialWidth=e}setH(e){this.body.style.height=`${e}px`}setInitialH(e){this.initialHeight=e}setWH(e,t){this.width=e,this.height=t,this.body.style.width=`${e}px`,this.body.style.height=`${t}px`,this.subscribers.forEach(h=>{h.event=="resize"&&h.then(new Event("resize"),this)})}setFixedSize(e){this.fixedSize=e}setType(e){this.type=e;let t=!1;this.type===3&&(t=!0);const h=this.getParent();h&&h.type===3&&(t=!0),t?(this.deleteClass("WUINonFreePosition"),this.addClass("WUIFixPosition"),this.body.style.left="",this.body.style.top="",this.body.style.width="",this.body.style.height="",this.body.style.bottom="",this.body.style.right=""):(this.type===2||this.type===1)&&(this.deleteClass("WUIFixPosition"),this.addClass("WUINonFreePosition")),this.initialWidth!=0&&(this.body.style.width=`${this.initialWidth}px`),this.initialHeight!=0&&(this.body.style.height=`${this.initialHeight}px`)}setAlign(e){this.align=e}setVisible(e){this.visible=e,this.body.style.display=e?"":"none"}setEnabled(e){this.enabled=e}setParent(e){var t;this.parent&&this.body&&this.body.parentNode&&this.body.parentNode.removeChild(this.body),this.parent=e,(t=this.parent)==null||t.body.appendChild(this.body),this.setType(this.type)}setBody(e){var t;this.body.parentNode&&this.body.parentNode.removeChild(this.body),this.body=e,(t=this.parent)==null||t.getBody().appendChild(this.body)}setChilds(e){this.childs=e}setOverflow(e){this.overflow=e,this.getBody().style.overflow=this.overflow?"auto":"hidden"}addClass(e){this.body.classList.add(e)}deleteClass(e){this.body.classList.remove(e)}deleteAllClasses(){this.body.classList.forEach(e=>{this.deleteClass(e)})}getPadding(){return this.padding}getX(e=!1){if(!e)return this.left;const t=this.getParent();return t?this.left+t.getX(!0):this.left}getY(e=!1){if(!e)return this.top;const t=this.getParent();return t?this.top+t.getY(!0):this.top}getW(){return this.getBody().clientWidth}getH(){return this.getBody().clientHeight}getPosition(e=!1){var t=this.getBody().getBoundingClientRect(),h=document.body,s=document.documentElement,n=e?s.scrollTop||h.scrollTop:0,l=e?s.scrollLeft||h.scrollLeft:0,u=s.clientTop||h.clientTop||0,a=s.clientLeft||h.clientLeft||0,o=t.top+n-u,r=t.left+l-a;return{x:Math.round(r),y:Math.round(o)}}getFixedSize(){return this.fixedSize}getType(){return this.type}getAlign(){return this.align}getEnabled(){return this.enabled}getVisible(){return this.visible}getParent(){return this.parent}getBody(){return this.body}getChilds(){return this.childs}getOverflow(){return this.overflow}addChild(e=null){e&&(this.childs.push(e),e.setParent(this),e.init())}populate(){window.w.get(this.id)||window.w.set(this.id,this);for(const e of this.childs)e.populate()}disableSelection(){console.log("disableSelection")}enableSelection(){console.log("enableSelection")}hide(){this.setVisible(!1)}init(){let e=!1;this.type===3&&(e=!0);const t=this.getParent();t&&t.type===3&&(e=!0),e||(this.deleteClass("WUIFixPosition"),this.addClass("WUINonFreePosition")),this.initPosition()}initPosition(){if(this.type===1)if(!this.parent)this.setX(0),this.setY(0),this.setWH(window.innerWidth,window.innerHeight);else return}render(){const e=this.padding,t=this.align===1?this.width:this.height;let h=e,s=0,n=0;for(const o of this.childs)o.type===1&&n++;let l=n;for(const o of this.childs)o.getFixedSize()!==null&&(s+=o.getFixedSize(),l--);let u=t-s;const a=this.getParent();a&&a.type===3&&(this.addClass("WUIFixPosition"),this.getBody().style.left="",this.getBody().style.top="",this.getBody().style.height="",this.getBody().style.width="",this.initialWidth!=0&&(this.getBody().style.width=`${this.initialWidth}px`),this.initialHeight!=0&&(this.getBody().style.height=`${this.initialHeight}px`));for(const o of this.childs){if(o.type!==1){o.render();continue}let r=(u-e)/l;o.getFixedSize()!==null&&(r=o.getFixedSize()),this.align===1?(o.setY(e),o.setX(h),o.type===1?o.setWH(r-e,this.getH()-e*2):o.setWH(r-e,this.getH()-e*2)):this.align===2&&(o.setX(e),o.setY(h),o.type===1?o.setWH(this.getW()-e*2,r-e):o.setWH(this.getW()-e*2,r-e)),h+=r,o.render()}this.subscribers.forEach(o=>{o.event=="render"&&o.then(new Event("render"),this)})}resize(){this.initPosition(),this.render()}display(){this.setVisible(!0)}toggle(){this.setVisible(!this.visible)}renderHTML(e){return this.body.appendChild(e),e}getMaxZIndex(e=0,t=null){const h=t||document.body;return h instanceof HTMLElement&&parseInt(window.getComputedStyle(h).zIndex)>e&&(e=parseInt(window.getComputedStyle(h).zIndex)),h==null||h.childNodes.forEach(s=>{e=this.getMaxZIndex(e,s)}),e}setZIndex(e){this.getBody().style.zIndex=`${e}`}raisteTop(){this.setZIndex(this.getMaxZIndex()+1)}raiseBottom(){this.setZIndex(0)}attachWidget(e){this.removeAllChilds(),this.addChild(e),e.setParent(this),e.render(),this.resize(),this.render()}removeAllChilds(){for(;this.getBody().childNodes.length>0;){const e=this.getBody().firstChild;e&&this.getBody().removeChild(e)}this.childs=[]}free(){if(this.childs)for(const h of this.childs)h.free();window.w.delete(this.id);const e=this.getBody(),t=e.parentNode;!t&&!e||t==null||t.removeChild(e)}dispose(){this.removeAllChilds();const e=this.getBody(),t=e.parentNode;t==null||t.removeChild(e)}}function x(i){return{onClick:i.onClick,onDrag:i.onDrag,onResize:i.onResize,onMouseDown:i.onMouseDown,onMouseUp:i.onMouseUp,onMouseMove:i.onMouseMove,onMouseOut:i.onMouseOut,onMouseLeave:i.onMouseLeave,onWheel:i.onWheel,onRender:i.onRender}}function L(i,e){i&&g("widget-added-"+i,{event:"widget-load",then:(t,h)=>{const s=w.get(i);s&&(s.subscribe({event:"click",then:(n,l)=>{e.onClick&&e.onClick({})}}),s.subscribe({event:"drag",then:(n,l)=>{e.onDrag&&e.onDrag({})}}),s.subscribe({event:"resize",then:(n,l)=>{e.onResize&&e.onResize({})}}),s.subscribe({event:"mousedown",then:(n,l)=>{e.onMouseDown&&e.onMouseDown({})}}),s.subscribe({event:"mouseup",then:(n,l)=>{e.onMouseUp&&e.onMouseUp({})}}),s.subscribe({event:"mousemove",then:(n,l)=>{e.onMouseMove&&e.onMouseMove({})}}),s.subscribe({event:"mouseout",then:(n,l)=>{e.onMouseOut&&e.onMouseOut({})}}),s.subscribe({event:"mouseleave",then:(n,l)=>{e.onMouseLeave&&e.onMouseLeave({})}}),s.subscribe({event:"wheel",then:(n,l)=>{e.onWheel&&e.onWheel({})}}),s.subscribe({event:"render",then:(n,l)=>{e.onRender&&e.onRender({})}}))}})}export{M as Widget,m as WidgetAlignTypes,v as WidgetTypes,L as connectWidgetCallback,x as getOnlyEventProps};
Binary file
@@ -0,0 +1,97 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <!-- Created with Inkscape (http://www.inkscape.org/) -->
3
+
4
+ <svg
5
+ width="63.999996"
6
+ height="63.999996"
7
+ viewBox="0 0 16.933332 16.933332"
8
+ version="1.1"
9
+ id="svg1"
10
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
11
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
12
+ xmlns:xlink="http://www.w3.org/1999/xlink"
13
+ xmlns="http://www.w3.org/2000/svg"
14
+ xmlns:svg="http://www.w3.org/2000/svg">
15
+ <sodipodi:namedview
16
+ id="namedview1"
17
+ pagecolor="#ffffff"
18
+ bordercolor="#000000"
19
+ borderopacity="0.25"
20
+ inkscape:showpageshadow="2"
21
+ inkscape:pageopacity="0.0"
22
+ inkscape:pagecheckerboard="0"
23
+ inkscape:deskcolor="#d1d1d1"
24
+ inkscape:document-units="mm" />
25
+ <defs
26
+ id="defs1">
27
+ <linearGradient
28
+ inkscape:collect="always"
29
+ xlink:href="#linearGradient43"
30
+ id="linearGradient4-4-2-8-2"
31
+ x1="-2.3303316"
32
+ y1="4.1695919"
33
+ x2="35.675308"
34
+ y2="27.438389"
35
+ gradientUnits="userSpaceOnUse" />
36
+ <linearGradient
37
+ id="linearGradient43"
38
+ inkscape:collect="always">
39
+ <stop
40
+ style="stop-color:#c55a36;stop-opacity:1;"
41
+ offset="0"
42
+ id="stop41" />
43
+ <stop
44
+ style="stop-color:#653916;stop-opacity:1;"
45
+ offset="1"
46
+ id="stop43" />
47
+ </linearGradient>
48
+ </defs>
49
+ <g
50
+ inkscape:label="Capa 1"
51
+ inkscape:groupmode="layer"
52
+ id="layer1">
53
+ <g
54
+ id="g43-97"
55
+ inkscape:label="logo"
56
+ transform="matrix(0.35787036,0,0,0.35787036,-28.673691,-14.901542)">
57
+ <path
58
+ sodipodi:type="star"
59
+ style="fill:url(#linearGradient4-4-2-8-2);fill-opacity:1;stroke-width:0.264583"
60
+ id="path3-9-1-9-3"
61
+ inkscape:flatsided="true"
62
+ sodipodi:sides="6"
63
+ sodipodi:cx="14.4682"
64
+ sodipodi:cy="10.85115"
65
+ sodipodi:r1="33.404415"
66
+ sodipodi:r2="28.929071"
67
+ sodipodi:arg1="1.0471976"
68
+ sodipodi:arg2="1.5707963"
69
+ inkscape:rounded="-8.6736174e-17"
70
+ inkscape:randomized="0"
71
+ d="m 31.170406,39.780222 -33.4044152,-1e-6 -16.7022058,-28.929073 16.7022086,-28.929071 33.4044154,10e-7 16.702206,28.929073 z"
72
+ transform="matrix(0.61335724,0.35412196,-0.35412196,0.61335724,98.750054,53.518832)"
73
+ inkscape:label="hexagon" />
74
+ <g
75
+ id="g24-0-1-8"
76
+ transform="matrix(-0.10705088,-1.1567783,1.1567783,-0.10705088,-42.580249,112.06565)"
77
+ style="fill:#f3e6c6;fill-opacity:1"
78
+ inkscape:label="nut">
79
+ <path
80
+ style="fill:#f3e6c6;fill-opacity:1;stroke-width:0.205808"
81
+ d="m 37.695391,137.67201 c -4.335995,0.12348 -8.322511,-0.1629 -11.716092,-1.8082 -3.88948,-1.88571 -3.172757,-3.90894 -4.3329,-4.71833 -1.160142,-0.80938 -2.396324,-0.45638 -3.605738,-1.29419 -0.603327,3.56778 0.585177,7.57188 3.574494,9.76572 2.475445,1.94075 5.836913,2.56868 8.869641,1.79277 2.655797,-0.6397 5.120805,-1.99503 7.210595,-3.73777 z"
82
+ id="path5-29-8-8"
83
+ sodipodi:nodetypes="csscccc" />
84
+ <path
85
+ style="fill:#f3e6c6;fill-opacity:1;stroke-width:0.205808"
86
+ d="m 18.498269,128.08787 c 3.295382,-2.82073 6.576454,-5.10303 10.250209,-5.95563 4.210585,-0.97721 4.924417,1.04705 6.335504,0.94765 1.411079,-0.0994 2.150886,-1.1508 3.618159,-1.25904 -1.772618,-3.15451 -5.21328,-5.52246 -8.917253,-5.3506 -3.145193,0.0458 -6.154665,1.66966 -8.026256,4.17897 -1.663968,2.16649 -2.729828,4.76978 -3.260363,7.43865 z"
87
+ id="path5-2-2-5-2"
88
+ sodipodi:nodetypes="csscccc" />
89
+ <path
90
+ style="fill:#f3e6c6;fill-opacity:1;stroke-width:0.168787"
91
+ d="m 37.926149,126.16714 c -4.099583,0.20247 -10.320435,-0.90098 -11.157646,2.98893 -0.837211,3.88992 6.600086,3.11085 11.595712,6.01708 1.249664,-1.53842 1.810365,-3.89641 1.639598,-5.55579 -0.170766,-1.65938 -0.955994,-2.63481 -2.077664,-3.45022 z"
92
+ id="path6-9-7-2"
93
+ sodipodi:nodetypes="czczc" />
94
+ </g>
95
+ </g>
96
+ </g>
97
+ </svg>
package/lib/fangio.jpg ADDED
Binary file
@@ -0,0 +1,3 @@
1
+ [ZoneTransfer]
2
+ ZoneId=3
3
+ HostUrl=https://github.com/
package/package.json CHANGED
@@ -1,22 +1,28 @@
1
1
  {
2
2
  "name": "cedro",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "type": "module",
5
5
  "devDependencies": {
6
+ "@rollup/plugin-inject": "^5.0.5",
6
7
  "@types/node": "^20.4.4",
7
- "typescript": "^5.0.2"
8
+ "rollup": "^4.21.1",
9
+ "rollup-plugin-postcss": "^4.0.2",
10
+ "rollup-plugin-typescript2": "^0.36.0",
11
+ "typescript": "^5.0.2",
12
+ "vite": "^5.0.8"
8
13
  },
9
14
  "scripts": {
10
- "build": "tsc"
15
+ "rollup-build": "rollup -c",
16
+ "vite-build": "tsc && vite build"
11
17
  },
12
18
  "dependencies": {
13
19
  "@fontsource/roboto": "^5.0.5",
14
20
  "@oothkoo/seo-js": "1.0.5",
15
21
  "@types/color": "3.0.3",
16
22
  "@types/react": "18.2.17",
17
- "html-entities": "^2.5.2",
18
23
  "color": "4.2.3",
19
24
  "glob": "^11.0.0",
25
+ "html-entities": "^2.5.2",
20
26
  "material-icons": "1.13.12",
21
27
  "navigo": "8.11.1"
22
28
  }
@@ -0,0 +1,31 @@
1
+ import typescript from "rollup-plugin-typescript2";
2
+ import postcss from "rollup-plugin-postcss";
3
+ import inject from "@rollup/plugin-inject";
4
+
5
+ export default {
6
+ input: "src/index.ts",
7
+ output: [
8
+ {
9
+ file: "lib/index.js",
10
+ format: "cjs",
11
+ },
12
+ {
13
+ file: "lib/index.esm.js",
14
+ format: "esm",
15
+ },
16
+ ],
17
+ plugins: [
18
+ inject({
19
+ DOMcreateElement: ["@root/core/jsxsupport", "DOMcreateElement"],
20
+ DOMcreateFragment: ["@root/core/jsxsupport", "DOMcreateFragment"],
21
+ }),
22
+ typescript({
23
+ tsconfig: "./tsconfig.json", // Asegúrate de que esta ruta sea correcta
24
+ }),
25
+ postcss({
26
+ extract: true,
27
+ minimize: true,
28
+ }),
29
+ ],
30
+ external: ["react", "react-dom"],
31
+ };
package/tsconfig.json CHANGED
@@ -27,6 +27,9 @@
27
27
  "noFallthroughCasesInSwitch": true,
28
28
 
29
29
  "baseUrl": ".",
30
+ "paths": {
31
+ "@root/*": ["src/*"]
32
+ }
30
33
  },
31
34
  "include": ["src"],
32
35
  "exclude": ["node_modules", "src/working"]
@@ -27,6 +27,9 @@
27
27
  "noFallthroughCasesInSwitch": true,
28
28
 
29
29
  "baseUrl": ".",
30
+ "paths": {
31
+ "@root/*": ["src/*"]
32
+ }
30
33
  },
31
34
  "include": ["src"],
32
35
  "exclude": ["node_modules", "src/working"]
@@ -0,0 +1,41 @@
1
+ import path, { resolve } from "path";
2
+ import { defineConfig } from "vite";
3
+ import { glob } from "glob";
4
+
5
+ // Encuentra todos los archivos index.tsx dentro de la carpeta 'working'
6
+ const entries = glob.sync("src/**/index.tsx").reduce((acc, file) => {
7
+ const entryName = file.replace("src/", "").replace(".tsx", "");
8
+ acc[entryName] = resolve(__dirname, file);
9
+ return acc;
10
+ }, {});
11
+
12
+ export default defineConfig({
13
+ plugins: [],
14
+ esbuild: {
15
+ jsxFactory: "DOMcreateElement",
16
+ jsxFragment: "DOMcreateFragment",
17
+ jsxInject: "import { DOMcreateElement, DOMcreateFragment } from '@root/core/jsxsupport';",
18
+ },
19
+ build: {
20
+ rollupOptions: {
21
+ input: { ...entries, main: resolve(__dirname, "index.html") },
22
+ output: {
23
+ entryFileNames: (chunkInfo) => {
24
+ // Genera una estructura de nombres de archivo basada en la ubicación original
25
+ const name = chunkInfo.name.replace(/src\//, "");
26
+ return `assets/${name}.js`;
27
+ },
28
+ chunkFileNames: "assets/[name].js",
29
+ assetFileNames: "assets/[name].[ext]",
30
+ preserveModules: true,
31
+ preserveModulesRoot: "src",
32
+ },
33
+ preserveEntrySignatures: "allow-extension",
34
+ },
35
+ },
36
+ resolve: {
37
+ alias: {
38
+ "@root": path.resolve(__dirname, "./src/"),
39
+ },
40
+ },
41
+ });
@@ -1,2 +0,0 @@
1
- import Application from "./application.core";
2
- export declare function createApplication(content: any): Application;
@@ -1,103 +0,0 @@
1
- //import { createWidget } from "src/ui/builder/widget.builder";
2
- import { WidgetAlignTypes } from "../ui";
3
- import { createWidget } from "../ui/widget.builder";
4
- import Application from "./application.core";
5
- import { decode } from "html-entities";
6
- function getApplicationProps(content) {
7
- let props = {
8
- title: content.title,
9
- padding: 0,
10
- theme: null,
11
- orientation: null,
12
- children: null,
13
- };
14
- if (content.getAttribute("w-title") !== null) {
15
- props.title = content.getAttribute("w-title");
16
- }
17
- if (content.getAttribute("w-padding") !== null) {
18
- props.padding = parseInt(content.getAttribute("w-padding"));
19
- }
20
- if (content.getAttribute("w-orientation") !== null) {
21
- props.orientation = content.getAttribute("w-orientation");
22
- }
23
- if (content.getAttribute("w-theme") !== null) {
24
- props.theme = content.getAttribute("w-theme");
25
- }
26
- return props;
27
- }
28
- export function createApplication(content) {
29
- const appProps = getApplicationProps(content);
30
- const newApp = new Application(appProps.title);
31
- if (appProps.padding) {
32
- newApp.getRoot().setPadding(appProps.padding);
33
- }
34
- if (appProps.orientation) {
35
- if (appProps.orientation === "horizontal") {
36
- newApp.getRoot().setAlign(WidgetAlignTypes.HORIZONTAL);
37
- }
38
- else {
39
- newApp.getRoot().setAlign(WidgetAlignTypes.VERTICAL);
40
- }
41
- }
42
- if (appProps.theme) {
43
- newApp.theme.setTheme(appProps.theme);
44
- }
45
- content.childNodes.forEach((item) => {
46
- if (item.getAttribute("w-widget-collection")) {
47
- item.childNodes.forEach((ietmWidget) => {
48
- const appWidgets = createWidget(ietmWidget);
49
- if (appWidgets !== null) {
50
- newApp.getRoot().addChild(appWidgets);
51
- }
52
- });
53
- }
54
- else if (item.getAttribute("w-routes")) {
55
- newApp.setRouterHostId(item.getAttribute("w-host-id"));
56
- item.childNodes.forEach((ietmRoute) => {
57
- if (ietmRoute.getAttribute("w-route-path") && ietmRoute.getAttribute("href")) {
58
- newApp.router.on(decode(ietmRoute.getAttribute("href")), () => {
59
- const url = decode(ietmRoute.getAttribute("href"));
60
- const timestamp = new Date().getTime();
61
- const isProduction = process.env.NODE_ENV === "production";
62
- const pathDev = ".." + url + "?ts=" + timestamp;
63
- const pathProduction = `../../assets${decode(ietmRoute.getAttribute("href"))}/index.js?ts=${timestamp}`;
64
- const path = isProduction ? pathProduction : pathDev;
65
- import(/*@vite-ignore*/ path).then((module) => {
66
- newApp.clearLoadedModule();
67
- newApp.setLoadedModule(module.default);
68
- const host = w.get(newApp.getRouterHostId());
69
- if (host) {
70
- newApp.attachWidget(newApp.getLoadedModule(), host);
71
- }
72
- newApp.hideLoading();
73
- });
74
- const loadCss = async () => {
75
- try {
76
- const timestamp = new Date().getTime();
77
- //const cssName = "../../assets" + url + "/style.css?ts=" + timestamp;
78
- const cssName = "/assets" + url + "/style.css?ts=" + timestamp;
79
- // Crear un elemento <link> para cargar el CSS
80
- const link = document.createElement("link");
81
- link.rel = "stylesheet";
82
- link.href = cssName;
83
- document.head.appendChild(link);
84
- }
85
- catch (error) {
86
- console.log(error);
87
- }
88
- };
89
- if (isProduction)
90
- loadCss();
91
- });
92
- }
93
- });
94
- newApp.router.resolve();
95
- }
96
- });
97
- appConnections.forEach((cb) => {
98
- newApp.subscribe(cb);
99
- });
100
- appConnections = [];
101
- return newApp;
102
- }
103
- //# sourceMappingURL=application.builder.jsx.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"application.builder.jsx","sourceRoot":"","sources":["../../src/core/application.builder.tsx"],"names":[],"mappings":"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"}
@@ -1,96 +0,0 @@
1
- import "../ui/styles/main.css";
2
- import "@fontsource/roboto/100.css";
3
- import "@fontsource/roboto/300.css";
4
- import "@fontsource/roboto/400.css";
5
- import "@fontsource/roboto/500.css";
6
- import "@fontsource/roboto/700.css";
7
- import "@fontsource/roboto/900.css";
8
- import "material-icons/iconfont/material-icons.css";
9
- import { Widget } from "../ui/widget.ui";
10
- import { Screen } from "./screeen.core";
11
- import { IApplication, IScreenSize } from "../interfaces/application.interface";
12
- import { IWidget, WUICallback, WUIEvent } from "../interfaces/widget.interface";
13
- import Navigo from "navigo";
14
- import { Dialog } from "../ui/dialog";
15
- import { Seo } from "./seo";
16
- import { ThemeManager } from "./themes.core";
17
- import { Loading } from "../ui/loading.ui";
18
- import { OrientationTypes } from "../types/orientation.type";
19
- declare global {
20
- var appConnections: Array<WUICallback>;
21
- }
22
- declare class WApplication implements IApplication {
23
- seo: Seo;
24
- subscribers: Map<string, WUICallback>;
25
- screen: Screen;
26
- root: Widget;
27
- router: Navigo;
28
- routerHostId: string;
29
- alertDialog: Dialog;
30
- confirmDialog: Dialog;
31
- loading: Loading;
32
- mediaQueries: Map<string, IScreenSize>;
33
- theme: ThemeManager;
34
- loadedModule: any;
35
- constructor(title: string);
36
- setLoadedModule(module: any): void;
37
- getLoadedModule(): any;
38
- clearLoadedModule(): void;
39
- setRouterHostId(id: string | null): void;
40
- getRouterHostId(): string;
41
- run(eventId: WUIEvent): void;
42
- subscribe(cb: WUICallback): void;
43
- unsubscribe(event: WUIEvent): void;
44
- alert(title: string | undefined, msg: string, onOk?: () => void, onCancell?: () => void): void;
45
- confirm(msg: string, onOk?: () => void, onCancell?: () => void): void;
46
- attachWidget(guest: IWidget, host: IWidget): void;
47
- addMediaQuery(query: string, minWidth: number, maxWidth: number, cb: (app: IApplication) => void): void;
48
- /**
49
- * Initializes the application.
50
- *
51
- * @return {void} This function does not return a value.
52
- */
53
- init(): void;
54
- /**
55
- * Retrieves the root widget of the application.
56
- *
57
- * @return {Widget} The root widget of the application.
58
- */
59
- getRoot(): Widget;
60
- /**
61
- * Sets the root widget of the object.
62
- *
63
- * @param {Widget} root - The root widget to set.
64
- * @return {void}
65
- */
66
- setRoot(root: Widget): void;
67
- showLoading(): void;
68
- hideLoading(): void;
69
- goTo(path: string): void;
70
- }
71
- export declare const initApplicationConnections: () => void;
72
- export declare const connectApplication: (cb: WUICallback) => void;
73
- export type ApplicationProps = {
74
- title: string;
75
- padding?: number | null;
76
- orientation?: OrientationTypes | null;
77
- theme?: string | null;
78
- children: any;
79
- onResize?: (args: any) => void;
80
- onLoad?: (args: any) => void;
81
- };
82
- export declare const Application: (props: ApplicationProps) => JSX.Element;
83
- export type WidgetsProps = {
84
- children: any;
85
- };
86
- export declare const Widgets: (props: WidgetsProps) => JSX.Element;
87
- export type RoutesProps = {
88
- hostId: string;
89
- children: any;
90
- };
91
- export declare const Routes: (props: RoutesProps) => JSX.Element;
92
- export type RouteProps = {
93
- src: string;
94
- };
95
- export declare const Route: (props: RouteProps) => JSX.Element;
96
- export default WApplication;