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
@@ -1,290 +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, WidgetAlignTypes, WidgetTypes } from "../ui/widget.ui";
10
- import { Screen } from "./screeen.core";
11
- import Navigo from "navigo";
12
- import { Dialog } from "../ui/dialog";
13
- import { Label } from "../ui/label.ui";
14
- import { Seo } from "./seo";
15
- import { CedroLightTheme, CedroDarkTheme, DarkTheme, LightTheme, ThemeManager, } from "./themes.core";
16
- import { Loading } from "../ui/loading.ui";
17
- class WApplication {
18
- constructor(title) {
19
- Object.defineProperty(this, "seo", {
20
- enumerable: true,
21
- configurable: true,
22
- writable: true,
23
- value: void 0
24
- });
25
- Object.defineProperty(this, "subscribers", {
26
- enumerable: true,
27
- configurable: true,
28
- writable: true,
29
- value: void 0
30
- });
31
- Object.defineProperty(this, "screen", {
32
- enumerable: true,
33
- configurable: true,
34
- writable: true,
35
- value: void 0
36
- });
37
- Object.defineProperty(this, "root", {
38
- enumerable: true,
39
- configurable: true,
40
- writable: true,
41
- value: void 0
42
- });
43
- Object.defineProperty(this, "router", {
44
- enumerable: true,
45
- configurable: true,
46
- writable: true,
47
- value: void 0
48
- });
49
- Object.defineProperty(this, "routerHostId", {
50
- enumerable: true,
51
- configurable: true,
52
- writable: true,
53
- value: void 0
54
- });
55
- Object.defineProperty(this, "alertDialog", {
56
- enumerable: true,
57
- configurable: true,
58
- writable: true,
59
- value: void 0
60
- });
61
- Object.defineProperty(this, "confirmDialog", {
62
- enumerable: true,
63
- configurable: true,
64
- writable: true,
65
- value: void 0
66
- });
67
- Object.defineProperty(this, "loading", {
68
- enumerable: true,
69
- configurable: true,
70
- writable: true,
71
- value: void 0
72
- });
73
- Object.defineProperty(this, "mediaQueries", {
74
- enumerable: true,
75
- configurable: true,
76
- writable: true,
77
- value: void 0
78
- });
79
- Object.defineProperty(this, "theme", {
80
- enumerable: true,
81
- configurable: true,
82
- writable: true,
83
- value: void 0
84
- });
85
- Object.defineProperty(this, "loadedModule", {
86
- enumerable: true,
87
- configurable: true,
88
- writable: true,
89
- value: void 0
90
- });
91
- this.seo = new Seo(title);
92
- this.subscribers = new Map();
93
- this.root = new Widget("root");
94
- this.root.setType(WidgetTypes.FILL);
95
- this.screen = new Screen();
96
- this.router = new Navigo("/");
97
- this.routerHostId = this.getRoot().id;
98
- this.mediaQueries = new Map();
99
- this.theme = new ThemeManager();
100
- this.theme.add(LightTheme);
101
- this.theme.add(DarkTheme);
102
- this.theme.add(CedroDarkTheme);
103
- this.theme.add(CedroLightTheme);
104
- this.screen.onResize(() => {
105
- this.getRoot().resize();
106
- });
107
- window.addEventListener("load", () => {
108
- this.screen.updateSize();
109
- this.getRoot().resize();
110
- this.run("load");
111
- });
112
- window.addEventListener("resize", () => {
113
- this.screen.updateSize();
114
- this.getRoot().resize();
115
- this.run("resize");
116
- });
117
- this.alertDialog = new Dialog("Dialog.alert", null);
118
- this.confirmDialog = new Dialog("Dialog.confirm", null);
119
- this.loading = new Loading("loading", null);
120
- this.theme.load();
121
- }
122
- setLoadedModule(module) {
123
- this.loadedModule = module;
124
- }
125
- getLoadedModule() {
126
- return this.loadedModule;
127
- }
128
- clearLoadedModule() {
129
- this.loadedModule = null;
130
- }
131
- setRouterHostId(id) {
132
- if (!id) {
133
- this.routerHostId = this.getRoot().id;
134
- return;
135
- }
136
- this.routerHostId = id;
137
- }
138
- getRouterHostId() {
139
- return this.routerHostId;
140
- }
141
- run(eventId) {
142
- this.subscribers.forEach((callback) => {
143
- if (callback.event == eventId) {
144
- callback.then(new Event(eventId), null);
145
- }
146
- });
147
- }
148
- subscribe(cb) {
149
- const randomId = Math.random().toString(36).substring(2, 15) +
150
- Math.random().toString(36).substring(2, 15);
151
- this.subscribers.set(`${randomId}.${cb.event}`, cb);
152
- }
153
- unsubscribe(event) {
154
- this.subscribers.delete(`${event}`);
155
- }
156
- alert(title = "", msg, onOk = () => { }, onCancell = () => { }) {
157
- const mesageLabel = new Label("alert.label", "span");
158
- mesageLabel.setType(WidgetTypes.FILL);
159
- mesageLabel.setAlign(WidgetAlignTypes.VERTICAL);
160
- mesageLabel.setText(msg);
161
- this.alertDialog.titleBar.setText(title);
162
- this.alertDialog.setOkCallback({ event: "click", then: onOk });
163
- this.alertDialog.setCancellCallback({
164
- event: "click",
165
- then: onCancell,
166
- });
167
- this.alertDialog.getContentCntainer().attachWidget(mesageLabel);
168
- this.alertDialog.show();
169
- }
170
- confirm(msg, onOk = () => { }, onCancell = () => { }) {
171
- const mesageLabel = new Label("alert.label", "span");
172
- mesageLabel.setType(WidgetTypes.FILL);
173
- mesageLabel.setAlign(WidgetAlignTypes.VERTICAL);
174
- mesageLabel.setText(msg);
175
- this.confirmDialog.setOkCallback({ event: "click", then: onOk });
176
- this.confirmDialog.setCancellCallback({
177
- event: "click",
178
- then: onCancell,
179
- });
180
- this.confirmDialog.getContentCntainer().attachWidget(mesageLabel);
181
- this.confirmDialog.show();
182
- }
183
- attachWidget(guest, host) {
184
- if (!host) {
185
- console.log("guest:", guest);
186
- return;
187
- }
188
- if (!guest) {
189
- return;
190
- }
191
- for (const child of host.getBody().childNodes) {
192
- child.parentNode?.removeChild(child);
193
- }
194
- for (const child of host.childs) {
195
- child.free();
196
- }
197
- host.removeAllChilds();
198
- host.addChild(guest);
199
- guest.populate(); //tiene que recorrer todos los widgets hijos en forma recursiva e ir agregandolos a window.w
200
- guest.setParent(host);
201
- guest.render();
202
- this.root.resize();
203
- this.root.render();
204
- }
205
- addMediaQuery(query, minWidth, maxWidth, cb) {
206
- this.mediaQueries.set(query, { minWidth, maxWidth, cb });
207
- }
208
- /**
209
- * Initializes the application.
210
- *
211
- * @return {void} This function does not return a value.
212
- */
213
- init() {
214
- this.root.subscribe({
215
- event: "resize",
216
- then: () => {
217
- const app = this;
218
- for (let query of app.mediaQueries.entries()) {
219
- const { minWidth, maxWidth, cb } = query[1];
220
- if (minWidth <= app.screen.dimensions.x && maxWidth > app.screen.dimensions.x) {
221
- cb(this);
222
- //break; quite el break para dar soporte a mas de un media quiery del mismo tipo.
223
- }
224
- }
225
- },
226
- });
227
- this.root.render();
228
- this.seo.setTitle(this.seo.getTitle());
229
- }
230
- /**
231
- * Retrieves the root widget of the application.
232
- *
233
- * @return {Widget} The root widget of the application.
234
- */
235
- getRoot() {
236
- return this.root;
237
- }
238
- /**
239
- * Sets the root widget of the object.
240
- *
241
- * @param {Widget} root - The root widget to set.
242
- * @return {void}
243
- */
244
- setRoot(root) {
245
- this.root = root;
246
- }
247
- showLoading() {
248
- this.loading.setVisible(true);
249
- this.loading.raisteTop();
250
- }
251
- hideLoading() {
252
- this.loading.setVisible(false);
253
- }
254
- goTo(path) {
255
- this.router.navigate(path);
256
- }
257
- }
258
- export const initApplicationConnections = () => {
259
- if (!window.appConnections) {
260
- window.appConnections = new Array();
261
- }
262
- };
263
- export const connectApplication = (cb) => {
264
- initApplicationConnections();
265
- window.appConnections.push(cb);
266
- };
267
- export const Application = (props) => {
268
- if (props.onLoad) {
269
- connectApplication({ event: "load", then: props.onLoad });
270
- }
271
- if (props.onResize) {
272
- connectApplication({ event: "resize", then: props.onResize });
273
- }
274
- return (<div title={props.title} w-padding={props.padding} w-orientation={props.orientation} w-theme={props.theme}>
275
- {props.children}
276
- </div>);
277
- };
278
- export const Widgets = (props) => {
279
- return <div w-widget-collection>{props.children}</div>;
280
- };
281
- export const Routes = (props) => {
282
- return (<div w-routes w-host-id={props.hostId}>
283
- {props.children}
284
- </div>);
285
- };
286
- export const Route = (props) => {
287
- return <a w-route-path href={props.src}></a>;
288
- };
289
- export default WApplication;
290
- //# sourceMappingURL=application.core.jsx.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"application.core.jsx","sourceRoot":"","sources":["../../src/core/application.core.tsx"],"names":[],"mappings":"AAAA,OAAO,uBAAuB,CAAC;AAC/B,OAAO,4BAA4B,CAAC;AACpC,OAAO,4BAA4B,CAAC;AACpC,OAAO,4BAA4B,CAAC;AACpC,OAAO,4BAA4B,CAAC;AACpC,OAAO,4BAA4B,CAAC;AACpC,OAAO,4BAA4B,CAAC;AACpC,OAAO,4CAA4C,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACxE,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAGxC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EACH,eAAe,EACf,cAAc,EACd,SAAS,EACT,UAAU,EACV,YAAY,GACf,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAO3C,MAAM,YAAY;IAoBd,YAAY,KAAa;QAnBzB;;;;;WAAS;QAET;;;;;WAAsC;QAEtC;;;;;WAAe;QACf;;;;;WAAa;QACb;;;;;WAAe;QACf;;;;;WAAqB;QAErB;;;;;WAAoB;QACpB;;;;;WAAsB;QACtB;;;;;WAAiB;QAEjB;;;;;WAAuC;QAEvC;;;;;WAAoB;QAEpB;;;;;WAAkB;QAGd,IAAI,CAAC,GAAG,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC;Q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AK,CAAC,KAAK,CAAC,CACnB,SAAS,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CACzB,aAAa,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CACjC,OAAO,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAErB;YAAA,CAAC,KAAK,CAAC,QAAQ,CACnB;QAAA,EAAE,GAAG,CAAC,CACT,CAAC;AACN,CAAC,CAAC;AAMF,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,KAAmB,EAAE,EAAE;IAC3C,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,GAAG,CAAC,CAAC;AAC3D,CAAC,CAAC;AAOF,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,KAAkB,EAAE,EAAE;IACzC,OAAO,CACH,CAAC,GAAG,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAClC;YAAA,CAAC,KAAK,CAAC,QAAQ,CACnB;QAAA,EAAE,GAAG,CAAC,CACT,CAAC;AACN,CAAC,CAAC;AAMF,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,KAAiB,EAAE,EAAE;IACvC,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AACjD,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1,3 +0,0 @@
1
- import Application from "./application.core";
2
- import { DOMcreateElement, DOMcreateFragment } from "./jsxsupport";
3
- export { Application, DOMcreateElement, DOMcreateFragment };
package/lib/core/index.js DELETED
@@ -1,4 +0,0 @@
1
- import Application from "./application.core";
2
- import { DOMcreateElement, DOMcreateFragment } from "./jsxsupport";
3
- export { Application, DOMcreateElement, DOMcreateFragment };
4
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,oBAAoB,CAAA;AAC5C,OAAO,EAAC,gBAAgB,EAAE,iBAAiB,EAAC,MAAM,cAAc,CAAA;AAEhE,OAAM,EACF,WAAW,EACX,gBAAgB,EAChB,iBAAiB,EACpB,CAAA"}
@@ -1,13 +0,0 @@
1
- interface entityMapData {
2
- [key: string]: string;
3
- }
4
- export declare const entityMap: entityMapData;
5
- export declare const escapeHtml: (str: object[] | string) => string;
6
- export declare const AttributeMapper: (val: string) => string;
7
- export declare function DOMcreateElement(tag: Function | string, attrs?: {
8
- [key: string]: any;
9
- }, ...children: (HTMLElement | string)[]): HTMLElement;
10
- export declare const DOMcreateFragment: (_attrs?: {
11
- [key: string]: any;
12
- }, ...children: (HTMLElement | string)[]) => (HTMLElement | string)[];
13
- export {};
@@ -1,82 +0,0 @@
1
- /*export function h(el: any, attrs: any, content: any) {
2
- const node = document.createElement(el);
3
-
4
- Object.entries(attrs || {}).forEach(([name, value]) => {
5
- node.setAttribute(name, value);
6
- });
7
-
8
- if (typeof content === "string") {
9
- content = document.createTextNode(content);
10
- }
11
-
12
- node.appendChild(content);
13
-
14
- return node;
15
- }*/
16
- export const entityMap = {
17
- "&": "amp",
18
- "<": "lt",
19
- ">": "gt",
20
- '"': "quot",
21
- "'": "#39",
22
- "/": "#x2F",
23
- };
24
- export const escapeHtml = (str) => String(str).replace(/[&<>"'\/\\]/g, (s) => `&${entityMap[s]};`);
25
- // To keep some consistency with React DOM, lets use a mapper
26
- // https://reactjs.org/docs/dom-elements.html
27
- export const AttributeMapper = (val) => ({
28
- tabIndex: "tabindex",
29
- className: "class",
30
- readOnly: "readonly",
31
- }[val] || val);
32
- // tslint:disable-next-line:no-default-export
33
- export function DOMcreateElement(tag, attrs, ...children) {
34
- attrs = attrs || {};
35
- const stack = [...children];
36
- // Support for components(ish)
37
- if (typeof tag === "function") {
38
- attrs.children = stack;
39
- return tag(attrs);
40
- }
41
- const elm = document.createElement(tag);
42
- // Add attributes
43
- for (let [name, val] of Object.entries(attrs)) {
44
- name = escapeHtml(AttributeMapper(name));
45
- if (name.startsWith("on") && name.toLowerCase() in window) {
46
- elm.addEventListener(name.toLowerCase().substr(2), val);
47
- }
48
- else if (name === "ref") {
49
- val(elm);
50
- }
51
- else if (name === "style") {
52
- Object.assign(elm.style, val);
53
- }
54
- else if (val === true) {
55
- elm.setAttribute(name, name);
56
- }
57
- else if (val !== false && val != null) {
58
- elm.setAttribute(name, escapeHtml(val));
59
- }
60
- else if (val === false) {
61
- elm.removeAttribute(name);
62
- }
63
- }
64
- // Append children
65
- while (stack.length) {
66
- const child = stack.shift();
67
- // Is child a leaf?
68
- if (!Array.isArray(child)) {
69
- elm.appendChild(child.nodeType == null
70
- ? document.createTextNode(child.toString())
71
- : child);
72
- }
73
- else {
74
- stack.push(...child);
75
- }
76
- }
77
- return elm;
78
- }
79
- export const DOMcreateFragment = (_attrs, ...children) => {
80
- return children;
81
- };
82
- //# sourceMappingURL=jsxsupport.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"jsxsupport.js","sourceRoot":"","sources":["../../src/core/jsxsupport.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,MAAM,CAAC,MAAM,SAAS,GAAkB;IACpC,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,IAAI;IACT,GAAG,EAAE,IAAI;IACT,GAAG,EAAE,MAAM;IACX,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,MAAM;CACd,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,GAAsB,EAAE,EAAE,CACjD,MAAM,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;AAEpE,6DAA6D;AAC7D,6CAA6C;AAC7C,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,GAAW,EAAE,EAAE,C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,CAAC,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACjC,CAAC;aAAM,IAAI,GAAG,KAAK,KAAK,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;YACtC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC;QAC5C,CAAC;aAAM,IAAI,GAAG,KAAK,KAAK,EAAE,CAAC;YACvB,GAAG,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;QAC9B,CAAC;IACL,CAAC;IAED,kBAAkB;IAClB,OAAO,KAAK,CAAC,MAAM,EAAE,CAAC;QAClB,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,EAAE,CAAC;QAE5B,mBAAmB;QACnB,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YACxB,GAAG,CAAC,WAAW,CACV,KAAqB,CAAC,QAAQ,IAAI,IAAI;gBACnC,CAAC,CAAC,QAAQ,CAAC,cAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;gBAC3C,CAAC,CAAC,KAAK,CACd,CAAC;QACN,CAAC;aAAM,CAAC;YACJ,KAAK,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC;QACzB,CAAC;IACL,CAAC;IAED,OAAO,GAAG,CAAC;AACf,CAAC;AAED,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAC7B,MAA+B,EAC/B,GAAG,QAAkC,EACb,EAAE;IAC1B,OAAO,QAAQ,CAAC;AACpB,CAAC,CAAC"}
@@ -1,41 +0,0 @@
1
- import { IScreen } from "../interfaces/screen.interface";
2
- import { Vector2D } from "../types/vector2d.type";
3
- export declare class Screen implements IScreen {
4
- dimensions: Vector2D;
5
- onResizeCB: () => void;
6
- constructor();
7
- onResize(cb: () => void): void;
8
- /**
9
- * Populates the size of the object.
10
- *
11
- * @return {void} This function does not return anything.
12
- */
13
- populateSize(): void;
14
- updateSize(): void;
15
- /**
16
- * Retrieves the width of the object.
17
- *
18
- * @return {number} The width of the object.
19
- */
20
- getWidth(): number;
21
- /**
22
- * Get the height of the object.
23
- *
24
- * @return {number} The height of the object.
25
- */
26
- getHeight(): number;
27
- /**
28
- * Sets the width of the object.
29
- *
30
- * @param {number} width - The width value to set.
31
- * @return {void} This function does not return anything.
32
- */
33
- setWidth(width: number): void;
34
- /**
35
- * Sets the height of the object.
36
- *
37
- * @param {number} height - The height value to set.
38
- * @return {void} This function does not return a value.
39
- */
40
- setHeight(height: number): void;
41
- }
@@ -1,76 +0,0 @@
1
- export class Screen {
2
- constructor() {
3
- Object.defineProperty(this, "dimensions", {
4
- enumerable: true,
5
- configurable: true,
6
- writable: true,
7
- value: void 0
8
- });
9
- Object.defineProperty(this, "onResizeCB", {
10
- enumerable: true,
11
- configurable: true,
12
- writable: true,
13
- value: void 0
14
- });
15
- this.dimensions = {
16
- x: 0,
17
- y: 0,
18
- };
19
- this.onResizeCB = () => { };
20
- window.addEventListener("resize", () => {
21
- this.updateSize();
22
- this.onResizeCB();
23
- });
24
- this.updateSize();
25
- }
26
- onResize(cb) {
27
- this.onResizeCB = cb;
28
- }
29
- /**
30
- * Populates the size of the object.
31
- *
32
- * @return {void} This function does not return anything.
33
- */
34
- populateSize() {
35
- console.log("populateSize", this.dimensions);
36
- }
37
- updateSize() {
38
- this.setWidth(window.innerWidth);
39
- this.setHeight(window.innerHeight);
40
- }
41
- /**
42
- * Retrieves the width of the object.
43
- *
44
- * @return {number} The width of the object.
45
- */
46
- getWidth() {
47
- return this.dimensions.x;
48
- }
49
- /**
50
- * Get the height of the object.
51
- *
52
- * @return {number} The height of the object.
53
- */
54
- getHeight() {
55
- return this.dimensions.y;
56
- }
57
- /**
58
- * Sets the width of the object.
59
- *
60
- * @param {number} width - The width value to set.
61
- * @return {void} This function does not return anything.
62
- */
63
- setWidth(width) {
64
- this.dimensions.x = width;
65
- }
66
- /**
67
- * Sets the height of the object.
68
- *
69
- * @param {number} height - The height value to set.
70
- * @return {void} This function does not return a value.
71
- */
72
- setHeight(height) {
73
- this.dimensions.y = height;
74
- }
75
- }
76
- //# sourceMappingURL=screeen.core.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"screeen.core.js","sourceRoot":"","sources":["../../src/core/screeen.core.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,MAAM;IAGf;QAFA;;;;;WAAqB;QACrB;;;;;WAAuB;QAEnB,IAAI,CAAC,UAAU,GAAG;YACd,CAAC,EAAE,CAAC;YACJ,CAAC,EAAE,CAAC;SACP,CAAC;QAEF,IAAI,CAAC,UAAU,GAAG,GAAG,EAAE,GAAE,CAAC,CAAC;QAE3B,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,GAAG,EAAE;YAEnC,IAAI,CAAC,UAAU,EAAE,CAAC;YAClB,IAAI,CAAC,UAAU,EAAE,CAAC;QAEtB,CAAC,CAAC,CAAA;QAEF,IAAI,CAAC,UAAU,EAAE,CAAC;IAEtB,CAAC;IAED,QAAQ,CAAC,EAAc;QACnB,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC;IACzB,CAAC;IAED;;;;OAIG;IACH,YAAY;QACR,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IACjD,CAAC;IAED,UAAU;QACN,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;QACjC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;IACvC,CAAC;IAED;;;;OAIG;IACH,QAAQ;QACJ,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;IAC7B,CAAC;IAED;;;;OAIG;IACH,SAAS;QACL,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;IAC7B,CAAC;IAED;;;;;OAKG;IACH,QAAQ,CAAC,KAAa;QAClB,IAAI,CAAC,UAAU,CAAC,CAAC,GAAG,KAAK,CAAC;IAC9B,CAAC;IAED;;;;;OAKG;IACH,SAAS,CAAC,MAAc;QACpB,IAAI,CAAC,UAAU,CAAC,CAAC,GAAG,MAAM,CAAC;IAC/B,CAAC;CACJ"}
package/lib/core/seo.d.ts DELETED
@@ -1,33 +0,0 @@
1
- export type TextDirectionValue = "ltr" | "rtl" | "auto";
2
- export interface IMetaDataElement {
3
- lang: string | null;
4
- dir: TextDirectionValue | null;
5
- name: string;
6
- content: string;
7
- }
8
- export interface IMetaData {
9
- items: IMetaDataElement[];
10
- add(element: IMetaDataElement): void;
11
- get(name: string): IMetaDataElement | null;
12
- deleteByName(name: string): void;
13
- }
14
- export declare class MetaData implements IMetaData {
15
- items: IMetaDataElement[];
16
- constructor();
17
- add(element: IMetaDataElement): void;
18
- get(name: string): IMetaDataElement | null;
19
- deleteByName(name: string): void;
20
- }
21
- export interface ISeo {
22
- title: string;
23
- meta: MetaData;
24
- setTitle(title: string): void;
25
- getTitle(): string;
26
- }
27
- export declare class Seo implements ISeo {
28
- title: string;
29
- meta: MetaData;
30
- constructor(title: string);
31
- setTitle(title: string): void;
32
- getTitle(): string;
33
- }
package/lib/core/seo.js DELETED
@@ -1,66 +0,0 @@
1
- export class MetaData {
2
- constructor() {
3
- Object.defineProperty(this, "items", {
4
- enumerable: true,
5
- configurable: true,
6
- writable: true,
7
- value: void 0
8
- });
9
- this.items = [];
10
- }
11
- add(element) {
12
- this.items.push(element);
13
- const meta = document.createElement("meta");
14
- meta.setAttribute("name", element.name);
15
- meta.setAttribute("content", element.content);
16
- if (element.lang)
17
- meta.setAttribute("lang", element.lang);
18
- if (element.dir)
19
- meta.setAttribute("dir", element.dir);
20
- document.head.appendChild(meta);
21
- }
22
- get(name) {
23
- for (let i = 0; i < this.items.length; i++) {
24
- if (this.items[i].name === name) {
25
- return this.items[i];
26
- }
27
- }
28
- return null;
29
- }
30
- deleteByName(name) {
31
- for (let i = 0; i < this.items.length; i++) {
32
- if (this.items[i].name === name) {
33
- this.items.splice(i, 1);
34
- const deleteItem = document.querySelector(`meta[name="${name}"]`);
35
- if (deleteItem)
36
- document.head.removeChild(deleteItem);
37
- }
38
- }
39
- }
40
- }
41
- export class Seo {
42
- constructor(title) {
43
- Object.defineProperty(this, "title", {
44
- enumerable: true,
45
- configurable: true,
46
- writable: true,
47
- value: void 0
48
- });
49
- Object.defineProperty(this, "meta", {
50
- enumerable: true,
51
- configurable: true,
52
- writable: true,
53
- value: void 0
54
- });
55
- this.title = title;
56
- this.meta = new MetaData();
57
- }
58
- setTitle(title) {
59
- document.title = title;
60
- this.title = title;
61
- }
62
- getTitle() {
63
- return this.title;
64
- }
65
- }
66
- //# sourceMappingURL=seo.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"seo.js","sourceRoot":"","sources":["../../src/core/seo.ts"],"names":[],"mappings":"AAgBA,MAAM,OAAO,QAAQ;IAEjB;QADA;;;;;WAA0B;QAEtB,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;IACpB,CAAC;IAED,GAAG,CAAC,OAAyB;QACzB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzB,MAAM,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;QAC5C,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;QACxC,IAAI,CAAC,YAAY,CAAC,SAAS,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;QAC9C,IAAI,OAAO,CAAC,IAAI;YAAE,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;QAC1D,IAAI,OAAO,CAAC,GAAG;YAAE,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;QACvD,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IACpC,CAAC;IAED,GAAG,CAAC,IAAY;QACZ,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACzC,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,EAAE,CAAC;gBAC9B,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YACzB,CAAC;QACL,CAAC;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,YAAY,CAAC,IAAY;QACrB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACzC,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,EAAE,CAAC;gBAC9B,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;gBACxB,MAAM,UAAU,GAAG,QAAQ,CAAC,aAAa,CACrC,cAAc,IAAI,IAAI,CACzB,CAAC;gBACF,IAAI,UAAU;oBAAE,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;YAC1D,CAAC;QACL,CAAC;IACL,CAAC;CACJ;AAUD,MAAM,OAAO,GAAG;IAGZ,YAAY,KAAa;QAFzB;;;;;WAAc;QACd;;;;;WAAe;QAEX,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,QAAQ,EAAE,CAAC;IAC/B,CAAC;IAED,QAAQ,CAAC,KAAa;QAClB,QAAQ,CAAC,KAAK,GAAG,KAAK,CAAC;QACvB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;IAED,QAAQ;QACJ,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;CACJ"}
@@ -1,22 +0,0 @@
1
- import { ITheme, IThemeManager } from "../interfaces/themes.interface";
2
- export declare class Theme implements ITheme {
3
- name: string;
4
- properties: Map<string, string>;
5
- constructor(name: string);
6
- add(name: string, value: string): ITheme;
7
- }
8
- export declare const LightTheme: Theme;
9
- export declare const DarkTheme: Theme;
10
- export declare const CedroDarkTheme: Theme;
11
- export declare const CedroLightTheme: Theme;
12
- export declare class ThemeManager implements IThemeManager {
13
- themes: ITheme[];
14
- current: ITheme | null;
15
- constructor();
16
- toggleTheme(): void;
17
- load(): void;
18
- add(theme: ITheme): void;
19
- get(name: string): ITheme | null;
20
- setTheme(name: string): void;
21
- getTheme(): string;
22
- }