asajs 3.0.5 → 3.0.6

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 (285) hide show
  1. package/dist/cjs/compilers/BindingCompiler.js +1 -0
  2. package/dist/cjs/compilers/BindingCompiler.js.map +7 -0
  3. package/dist/cjs/compilers/BindingFunctions.js +1 -0
  4. package/dist/cjs/compilers/BindingFunctions.js.map +7 -0
  5. package/dist/cjs/compilers/Compiler.js +1 -0
  6. package/dist/cjs/compilers/Compiler.js.map +7 -0
  7. package/dist/cjs/compilers/Compress.js +1 -0
  8. package/dist/cjs/compilers/Compress.js.map +7 -0
  9. package/dist/cjs/compilers/Config.js +1 -0
  10. package/dist/cjs/compilers/Config.js.map +7 -0
  11. package/dist/cjs/compilers/Encoder.js +1 -0
  12. package/dist/cjs/compilers/Encoder.js.map +7 -0
  13. package/dist/cjs/compilers/Installer.js +1 -0
  14. package/dist/cjs/compilers/Installer.js.map +7 -0
  15. package/dist/cjs/compilers/PreCompile.js +1 -0
  16. package/dist/cjs/compilers/PreCompile.js.map +7 -0
  17. package/dist/cjs/compilers/generator/GenerateDir.js +1 -0
  18. package/dist/cjs/compilers/generator/GenerateDir.js.map +7 -0
  19. package/dist/cjs/compilers/generator/JsonBuilder.js +1 -0
  20. package/dist/cjs/compilers/generator/JsonBuilder.js.map +7 -0
  21. package/dist/cjs/compilers/generator/LangBuilder.js +1 -0
  22. package/dist/cjs/compilers/generator/LangBuilder.js.map +7 -0
  23. package/dist/cjs/compilers/generator/Log.js +1 -0
  24. package/dist/cjs/compilers/generator/Log.js.map +7 -0
  25. package/dist/cjs/compilers/generator/Manifest.js +1 -0
  26. package/dist/cjs/compilers/generator/Manifest.js.map +7 -0
  27. package/dist/cjs/compilers/generator/Save.js +1 -0
  28. package/dist/cjs/compilers/generator/Save.js.map +7 -0
  29. package/dist/cjs/compilers/generator/SearchFiles.js +1 -0
  30. package/dist/cjs/compilers/generator/SearchFiles.js.map +7 -0
  31. package/dist/cjs/compilers/generator/Sounds.js +1 -0
  32. package/dist/cjs/compilers/generator/Sounds.js.map +7 -0
  33. package/dist/cjs/compilers/generator/Template.js +1 -0
  34. package/dist/cjs/compilers/generator/Template.js.map +7 -0
  35. package/dist/cjs/compilers/generator/UIBuilder.js +1 -0
  36. package/dist/cjs/compilers/generator/UIBuilder.js.map +7 -0
  37. package/dist/cjs/compilers/reader/Audio.js +1 -0
  38. package/dist/cjs/compilers/reader/Audio.js.map +7 -0
  39. package/dist/cjs/compilers/reader/Color.js +1 -0
  40. package/dist/cjs/compilers/reader/Color.js.map +7 -0
  41. package/dist/cjs/compilers/reader/CurrentLine.js +1 -0
  42. package/dist/cjs/compilers/reader/CurrentLine.js.map +7 -0
  43. package/dist/cjs/compilers/reader/Env.js +1 -0
  44. package/dist/cjs/compilers/reader/Env.js.map +7 -0
  45. package/dist/cjs/compilers/reader/GlobalVariables.js +1 -0
  46. package/dist/cjs/compilers/reader/GlobalVariables.js.map +7 -0
  47. package/dist/cjs/compilers/reader/Object.js +1 -0
  48. package/dist/cjs/compilers/reader/Object.js.map +7 -0
  49. package/dist/cjs/compilers/reader/ReadBinding.js +1 -0
  50. package/dist/cjs/compilers/reader/ReadBinding.js.map +7 -0
  51. package/dist/cjs/compilers/reader/ReadProperties.js +4 -3
  52. package/dist/cjs/compilers/reader/ReadProperties.js.map +7 -0
  53. package/dist/cjs/components/AddCollectionChill.js +1 -0
  54. package/dist/cjs/components/AddCollectionChill.js.map +7 -0
  55. package/dist/cjs/components/Animation.js +1 -0
  56. package/dist/cjs/components/Animation.js.map +7 -0
  57. package/dist/cjs/components/AnimationKeyFrame.js +1 -0
  58. package/dist/cjs/components/AnimationKeyFrame.js.map +7 -0
  59. package/dist/cjs/components/Class.js +1 -0
  60. package/dist/cjs/components/Class.js.map +7 -0
  61. package/dist/cjs/components/LocalizeText.js +1 -0
  62. package/dist/cjs/components/LocalizeText.js.map +7 -0
  63. package/dist/cjs/components/Modify.js +1 -0
  64. package/dist/cjs/components/Modify.js.map +7 -0
  65. package/dist/cjs/components/Random.js +1 -0
  66. package/dist/cjs/components/Random.js.map +7 -0
  67. package/dist/cjs/components/UI.js +1 -0
  68. package/dist/cjs/components/UI.js.map +7 -0
  69. package/dist/cjs/components/Vanilla.js +1 -0
  70. package/dist/cjs/components/Vanilla.js.map +7 -0
  71. package/dist/cjs/index.js +1 -0
  72. package/dist/cjs/index.js.map +7 -0
  73. package/dist/cjs/template.js +1 -0
  74. package/dist/cjs/template.js.map +7 -0
  75. package/dist/cjs/types/components/ChildIdentifier.js +1 -0
  76. package/dist/cjs/types/components/ChildIdentifier.js.map +7 -0
  77. package/dist/cjs/types/components/Identifier.js +1 -0
  78. package/dist/cjs/types/components/Identifier.js.map +7 -0
  79. package/dist/cjs/types/components/NameCallback.js +1 -0
  80. package/dist/cjs/types/components/NameCallback.js.map +7 -0
  81. package/dist/cjs/types/components/UIIdentifier.js +1 -0
  82. package/dist/cjs/types/components/UIIdentifier.js.map +7 -0
  83. package/dist/cjs/types/components/UIInterface.js +1 -0
  84. package/dist/cjs/types/components/UIInterface.js.map +7 -0
  85. package/dist/cjs/types/enums/Anchor.js +1 -0
  86. package/dist/cjs/types/enums/Anchor.js.map +7 -0
  87. package/dist/cjs/types/enums/AnimTypes.js +1 -0
  88. package/dist/cjs/types/enums/AnimTypes.js.map +7 -0
  89. package/dist/cjs/types/enums/BindingCondition.js +1 -0
  90. package/dist/cjs/types/enums/BindingCondition.js.map +7 -0
  91. package/dist/cjs/types/enums/BindingName.js +1 -0
  92. package/dist/cjs/types/enums/BindingName.js.map +7 -0
  93. package/dist/cjs/types/enums/BindingType.js +1 -0
  94. package/dist/cjs/types/enums/BindingType.js.map +7 -0
  95. package/dist/cjs/types/enums/ClipDirecion.js +1 -0
  96. package/dist/cjs/types/enums/ClipDirecion.js.map +7 -0
  97. package/dist/cjs/types/enums/Collection.js +1 -0
  98. package/dist/cjs/types/enums/Collection.js.map +7 -0
  99. package/dist/cjs/types/enums/Direction.js +1 -0
  100. package/dist/cjs/types/enums/Direction.js.map +7 -0
  101. package/dist/cjs/types/enums/EasingTypes.js +1 -0
  102. package/dist/cjs/types/enums/EasingTypes.js.map +7 -0
  103. package/dist/cjs/types/enums/EnumColor.js +1 -0
  104. package/dist/cjs/types/enums/EnumColor.js.map +7 -0
  105. package/dist/cjs/types/enums/FocusNavigationMode.js +1 -0
  106. package/dist/cjs/types/enums/FocusNavigationMode.js.map +7 -0
  107. package/dist/cjs/types/enums/FontSize.js +1 -0
  108. package/dist/cjs/types/enums/FontSize.js.map +7 -0
  109. package/dist/cjs/types/enums/FontType.js +1 -0
  110. package/dist/cjs/types/enums/FontType.js.map +7 -0
  111. package/dist/cjs/types/enums/GlobalVariables.js +1 -0
  112. package/dist/cjs/types/enums/GlobalVariables.js.map +7 -0
  113. package/dist/cjs/types/enums/InputModeCondition.js +1 -0
  114. package/dist/cjs/types/enums/InputModeCondition.js.map +7 -0
  115. package/dist/cjs/types/enums/ItemAuxID.js +1 -0
  116. package/dist/cjs/types/enums/ItemAuxID.js.map +7 -0
  117. package/dist/cjs/types/enums/JsonUIArrayName.js +1 -0
  118. package/dist/cjs/types/enums/JsonUIArrayName.js.map +7 -0
  119. package/dist/cjs/types/enums/MappingFrom.js +1 -0
  120. package/dist/cjs/types/enums/MappingFrom.js.map +7 -0
  121. package/dist/cjs/types/enums/MappingTo.js +1 -0
  122. package/dist/cjs/types/enums/MappingTo.js.map +7 -0
  123. package/dist/cjs/types/enums/MappingTypes.js +1 -0
  124. package/dist/cjs/types/enums/MappingTypes.js.map +7 -0
  125. package/dist/cjs/types/enums/Orientation.js +1 -0
  126. package/dist/cjs/types/enums/Orientation.js.map +7 -0
  127. package/dist/cjs/types/enums/Renderer.js +1 -0
  128. package/dist/cjs/types/enums/Renderer.js.map +7 -0
  129. package/dist/cjs/types/enums/Rotation.js +1 -0
  130. package/dist/cjs/types/enums/Rotation.js.map +7 -0
  131. package/dist/cjs/types/enums/Scope.js +1 -0
  132. package/dist/cjs/types/enums/Scope.js.map +7 -0
  133. package/dist/cjs/types/enums/TextTypes.js +1 -0
  134. package/dist/cjs/types/enums/TextTypes.js.map +7 -0
  135. package/dist/cjs/types/enums/TextureFileSystem.js +1 -0
  136. package/dist/cjs/types/enums/TextureFileSystem.js.map +7 -0
  137. package/dist/cjs/types/enums/Types.js +1 -0
  138. package/dist/cjs/types/enums/Types.js.map +7 -0
  139. package/dist/cjs/types/objects/Animation.js +1 -0
  140. package/dist/cjs/types/objects/Animation.js.map +7 -0
  141. package/dist/cjs/types/objects/BindingHook.js +1 -0
  142. package/dist/cjs/types/objects/BindingHook.js.map +7 -0
  143. package/dist/cjs/types/objects/BindingInterface.js +1 -0
  144. package/dist/cjs/types/objects/BindingInterface.js.map +7 -0
  145. package/dist/cjs/types/objects/ButtonMapping.js +1 -0
  146. package/dist/cjs/types/objects/ButtonMapping.js.map +7 -0
  147. package/dist/cjs/types/objects/Factory.js +1 -0
  148. package/dist/cjs/types/objects/Factory.js.map +7 -0
  149. package/dist/cjs/types/objects/Installer.js +1 -0
  150. package/dist/cjs/types/objects/Installer.js.map +7 -0
  151. package/dist/cjs/types/objects/Manifest.js +1 -0
  152. package/dist/cjs/types/objects/Manifest.js.map +7 -0
  153. package/dist/cjs/types/objects/Modify.js +1 -0
  154. package/dist/cjs/types/objects/Modify.js.map +7 -0
  155. package/dist/cjs/types/objects/PropertyBag.js +1 -0
  156. package/dist/cjs/types/objects/PropertyBag.js.map +7 -0
  157. package/dist/cjs/types/objects/Sound.js +1 -0
  158. package/dist/cjs/types/objects/Sound.js.map +7 -0
  159. package/dist/cjs/types/objects/Variables.js +1 -0
  160. package/dist/cjs/types/objects/Variables.js.map +7 -0
  161. package/dist/cjs/types/objects/elements/Button.js +1 -0
  162. package/dist/cjs/types/objects/elements/Button.js.map +7 -0
  163. package/dist/cjs/types/objects/elements/CollectionPanel.js +1 -0
  164. package/dist/cjs/types/objects/elements/CollectionPanel.js.map +7 -0
  165. package/dist/cjs/types/objects/elements/Custom.js +1 -0
  166. package/dist/cjs/types/objects/elements/Custom.js.map +7 -0
  167. package/dist/cjs/types/objects/elements/Dropdown.js +1 -0
  168. package/dist/cjs/types/objects/elements/Dropdown.js.map +7 -0
  169. package/dist/cjs/types/objects/elements/EditBox.js +1 -0
  170. package/dist/cjs/types/objects/elements/EditBox.js.map +7 -0
  171. package/dist/cjs/types/objects/elements/Grid.js +1 -0
  172. package/dist/cjs/types/objects/elements/Grid.js.map +7 -0
  173. package/dist/cjs/types/objects/elements/Image.js +1 -0
  174. package/dist/cjs/types/objects/elements/Image.js.map +7 -0
  175. package/dist/cjs/types/objects/elements/InputPanel.js +1 -0
  176. package/dist/cjs/types/objects/elements/InputPanel.js.map +7 -0
  177. package/dist/cjs/types/objects/elements/Label.js +1 -0
  178. package/dist/cjs/types/objects/elements/Label.js.map +7 -0
  179. package/dist/cjs/types/objects/elements/PropertiesType.js +1 -0
  180. package/dist/cjs/types/objects/elements/PropertiesType.js.map +7 -0
  181. package/dist/cjs/types/objects/elements/Screen.js +1 -0
  182. package/dist/cjs/types/objects/elements/Screen.js.map +7 -0
  183. package/dist/cjs/types/objects/elements/ScrollView.js +1 -0
  184. package/dist/cjs/types/objects/elements/ScrollView.js.map +7 -0
  185. package/dist/cjs/types/objects/elements/ScrollbarBox.js +1 -0
  186. package/dist/cjs/types/objects/elements/ScrollbarBox.js.map +7 -0
  187. package/dist/cjs/types/objects/elements/ScrollbarTrack.js +1 -0
  188. package/dist/cjs/types/objects/elements/ScrollbarTrack.js.map +7 -0
  189. package/dist/cjs/types/objects/elements/SelectionWheel.js +1 -0
  190. package/dist/cjs/types/objects/elements/SelectionWheel.js.map +7 -0
  191. package/dist/cjs/types/objects/elements/Slider.js +1 -0
  192. package/dist/cjs/types/objects/elements/Slider.js.map +7 -0
  193. package/dist/cjs/types/objects/elements/SliderBox.js +1 -0
  194. package/dist/cjs/types/objects/elements/SliderBox.js.map +7 -0
  195. package/dist/cjs/types/objects/elements/StackPanel.js +1 -0
  196. package/dist/cjs/types/objects/elements/StackPanel.js.map +7 -0
  197. package/dist/cjs/types/objects/elements/Toggle.js +1 -0
  198. package/dist/cjs/types/objects/elements/Toggle.js.map +7 -0
  199. package/dist/cjs/types/objects/elements/TooltipTrigger.js +1 -0
  200. package/dist/cjs/types/objects/elements/TooltipTrigger.js.map +7 -0
  201. package/dist/cjs/types/objects/elements/panel.js +1 -0
  202. package/dist/cjs/types/objects/elements/panel.js.map +7 -0
  203. package/dist/cjs/types/objects/properties/Buttons.js +1 -0
  204. package/dist/cjs/types/objects/properties/Buttons.js.map +7 -0
  205. package/dist/cjs/types/objects/properties/CollectionIndexs.js +1 -0
  206. package/dist/cjs/types/objects/properties/CollectionIndexs.js.map +7 -0
  207. package/dist/cjs/types/objects/properties/Collections.js +1 -0
  208. package/dist/cjs/types/objects/properties/Collections.js.map +7 -0
  209. package/dist/cjs/types/objects/properties/Controls.js +1 -0
  210. package/dist/cjs/types/objects/properties/Controls.js.map +7 -0
  211. package/dist/cjs/types/objects/properties/Dropdowns.js +1 -0
  212. package/dist/cjs/types/objects/properties/Dropdowns.js.map +7 -0
  213. package/dist/cjs/types/objects/properties/Focus.js +1 -0
  214. package/dist/cjs/types/objects/properties/Focus.js.map +7 -0
  215. package/dist/cjs/types/objects/properties/FocusContainerCustom.js +1 -0
  216. package/dist/cjs/types/objects/properties/FocusContainerCustom.js.map +7 -0
  217. package/dist/cjs/types/objects/properties/Grids.js +1 -0
  218. package/dist/cjs/types/objects/properties/Grids.js.map +7 -0
  219. package/dist/cjs/types/objects/properties/Inputs.js +1 -0
  220. package/dist/cjs/types/objects/properties/Inputs.js.map +7 -0
  221. package/dist/cjs/types/objects/properties/Layouts.js +1 -0
  222. package/dist/cjs/types/objects/properties/Layouts.js.map +7 -0
  223. package/dist/cjs/types/objects/properties/Properties.js +1 -0
  224. package/dist/cjs/types/objects/properties/Properties.js.map +7 -0
  225. package/dist/cjs/types/objects/properties/Renderers.js +1 -0
  226. package/dist/cjs/types/objects/properties/Renderers.js.map +7 -0
  227. package/dist/cjs/types/objects/properties/Screens.js +1 -0
  228. package/dist/cjs/types/objects/properties/Screens.js.map +7 -0
  229. package/dist/cjs/types/objects/properties/ScrollViews.js +1 -0
  230. package/dist/cjs/types/objects/properties/ScrollViews.js.map +7 -0
  231. package/dist/cjs/types/objects/properties/SelectionWheels.js +1 -0
  232. package/dist/cjs/types/objects/properties/SelectionWheels.js.map +7 -0
  233. package/dist/cjs/types/objects/properties/SliderBoxs.js +1 -0
  234. package/dist/cjs/types/objects/properties/SliderBoxs.js.map +7 -0
  235. package/dist/cjs/types/objects/properties/Sliders.js +1 -0
  236. package/dist/cjs/types/objects/properties/Sliders.js.map +7 -0
  237. package/dist/cjs/types/objects/properties/Sounds.js +1 -0
  238. package/dist/cjs/types/objects/properties/Sounds.js.map +7 -0
  239. package/dist/cjs/types/objects/properties/Specials.js +1 -0
  240. package/dist/cjs/types/objects/properties/Specials.js.map +7 -0
  241. package/dist/cjs/types/objects/properties/Sprites.js +1 -0
  242. package/dist/cjs/types/objects/properties/Sprites.js.map +7 -0
  243. package/dist/cjs/types/objects/properties/StackPanels.js +1 -0
  244. package/dist/cjs/types/objects/properties/StackPanels.js.map +7 -0
  245. package/dist/cjs/types/objects/properties/TTS.js +1 -0
  246. package/dist/cjs/types/objects/properties/TTS.js.map +7 -0
  247. package/dist/cjs/types/objects/properties/TextEdits.js +1 -0
  248. package/dist/cjs/types/objects/properties/TextEdits.js.map +7 -0
  249. package/dist/cjs/types/objects/properties/Texts.js +1 -0
  250. package/dist/cjs/types/objects/properties/Texts.js.map +7 -0
  251. package/dist/cjs/types/objects/properties/Toggles.js +1 -0
  252. package/dist/cjs/types/objects/properties/Toggles.js.map +7 -0
  253. package/dist/cjs/types/objects/properties/TooltipTriggers.js +1 -0
  254. package/dist/cjs/types/objects/properties/TooltipTriggers.js.map +7 -0
  255. package/dist/cjs/types/objects/properties/Variables.js +1 -0
  256. package/dist/cjs/types/objects/properties/Variables.js.map +7 -0
  257. package/dist/cjs/types/values/Any.js +1 -0
  258. package/dist/cjs/types/values/Any.js.map +7 -0
  259. package/dist/cjs/types/values/Binding.js +1 -0
  260. package/dist/cjs/types/values/Binding.js.map +7 -0
  261. package/dist/cjs/types/values/Bool.js +1 -0
  262. package/dist/cjs/types/values/Bool.js.map +7 -0
  263. package/dist/cjs/types/values/ColorVector.js +1 -0
  264. package/dist/cjs/types/values/ColorVector.js.map +7 -0
  265. package/dist/cjs/types/values/ElementPath.js +1 -0
  266. package/dist/cjs/types/values/ElementPath.js.map +7 -0
  267. package/dist/cjs/types/values/Hex.js +1 -0
  268. package/dist/cjs/types/values/Hex.js.map +7 -0
  269. package/dist/cjs/types/values/Number.js +1 -0
  270. package/dist/cjs/types/values/Number.js.map +7 -0
  271. package/dist/cjs/types/values/RangeVector.js +1 -0
  272. package/dist/cjs/types/values/RangeVector.js.map +7 -0
  273. package/dist/cjs/types/values/Str.js +1 -0
  274. package/dist/cjs/types/values/Str.js.map +7 -0
  275. package/dist/cjs/types/values/StringVector.js +1 -0
  276. package/dist/cjs/types/values/StringVector.js.map +7 -0
  277. package/dist/cjs/types/values/TargetElementPath.js +1 -0
  278. package/dist/cjs/types/values/TargetElementPath.js.map +7 -0
  279. package/dist/cjs/types/values/Variable.js +1 -0
  280. package/dist/cjs/types/values/Variable.js.map +7 -0
  281. package/dist/cjs/types/values/Vector.js +1 -0
  282. package/dist/cjs/types/values/Vector.js.map +7 -0
  283. package/dist/esm/index.js +4 -3
  284. package/dist/esm/index.js.map +7 -0
  285. package/package.json +1 -1
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/compilers/reader/GlobalVariables.ts"],
4
+ "sourcesContent": ["import { Obj } from \"./Object\";\r\nimport { JsonBuilder } from \"../generator/JsonBuilder\";\r\nimport { ReadValue } from \"./ReadProperties\";\r\n\r\nObj.forEach(require(`${process.cwd()}/asakiyuki.global_variables.cjs`).global_variables, (key, value) =>\r\n JsonBuilder.registerGlobalVariable(key, ReadValue(value))\r\n);\r\n\r\nexport { };\r\n"],
5
+ "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA,oBAAoB;AACpB,yBAA4B;AAC5B,4BAA0B;AAE1B,kBAAI;AAAA,EAAQ,QAAQ,GAAG,eAAQ,IAAI,GAAC,kCAAiC,EAAE;AAAA,EAAkB,CAAC,KAAK,UAC3F,+BAAY,uBAAuB,SAAK,iCAAU,KAAK,CAAC;AAC5D;",
6
+ "names": []
7
+ }
@@ -42,3 +42,4 @@ class Obj extends import_Class.Class {
42
42
  0 && (module.exports = {
43
43
  Obj
44
44
  });
45
+ //# sourceMappingURL=Object.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/compilers/reader/Object.ts"],
4
+ "sourcesContent": ["import { Class } from \"../../components/Class\";\n\ntype CallbackObject = (key: string, value: any) => void;\ntype CallbackObjectMap = (key: string, value: any) => { key: string; value: any };\n\nexport class Obj extends Class {\n static forEach(data: object, callback: CallbackObject): void {\n for (const key in data) {\n const element = (<any>data)[key];\n callback(key, element);\n }\n }\n\n static map(data: object, callback: CallbackObjectMap): object {\n for (const key in data) {\n const getdata = callback(key, (<any>data)[key]);\n delete (<any>data)[key];\n (<any>data)[getdata.key] = getdata.value;\n }\n return data;\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAsB;AAKf,MAAM,YAAY,mBAAM;AAAA,EAC3B,OAAO,QAAQ,MAAc,UAAgC;AACzD,eAAW,OAAO,MAAM;AACpB,YAAM,UAAgB,KAAM,GAAG;AAC/B,eAAS,KAAK,OAAO;AAAA,IACzB;AAAA,EACJ;AAAA,EAEA,OAAO,IAAI,MAAc,UAAqC;AAC1D,eAAW,OAAO,MAAM;AACpB,YAAM,UAAU,SAAS,KAAW,KAAM,GAAG,CAAC;AAC9C,aAAa,KAAM,GAAG;AACtB,MAAM,KAAM,QAAQ,GAAG,IAAI,QAAQ;AAAA,IACvC;AACA,WAAO;AAAA,EACX;AACJ;",
6
+ "names": []
7
+ }
@@ -65,3 +65,4 @@ function ReadBinding(binding, arg) {
65
65
  0 && (module.exports = {
66
66
  ReadBinding
67
67
  });
68
+ //# sourceMappingURL=ReadBinding.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/compilers/reader/ReadBinding.ts"],
4
+ "sourcesContent": ["import { UI } from \"../../components/UI\";\r\nimport { BindingName } from \"../../types/enums/BindingName\";\r\nimport { BindingType } from \"../../types/enums/BindingType\";\r\nimport { BindingInterface } from \"../../types/objects/BindingInterface\";\r\nimport { OverrideInterface } from \"../../types/objects/Modify\";\r\nimport { Var } from \"../../types/values/Variable\";\r\nimport { BindingCompiler } from \"../BindingCompiler\";\r\nimport { Log } from \"../generator/Log\";\r\nimport { CurrentLine } from \"./CurrentLine\";\r\n\r\nexport function ReadBinding(\r\n binding: BindingName | Var | BindingInterface,\r\n arg: UI | OverrideInterface\r\n): BindingInterface {\r\n if (typeof binding === \"string\")\r\n return {\r\n binding_name: binding,\r\n };\r\n else {\r\n const bindingObject: BindingInterface = <any>binding;\r\n\r\n if (bindingObject.source_property_name) {\r\n bindingObject.binding_type ||= BindingType.View;\r\n\r\n const srcBin = bindingObject.source_property_name;\r\n\r\n if (srcBin && BindingCompiler.isCanCompile(srcBin)) {\r\n if (bindingObject.source_control_name) {\r\n const srcControlName = <string>bindingObject.source_control_name;\r\n\r\n delete bindingObject.source_control_name;\r\n const newBindings = BindingCompiler.findSourceBindings(\r\n BindingCompiler.getCompilePart(srcBin),\r\n srcControlName,\r\n arg.sourceBindings\r\n );\r\n for (const key in newBindings.reSourceBindings)\r\n arg.sourceBindings[key] = newBindings.reSourceBindings[key];\r\n\r\n bindingObject.source_property_name = BindingCompiler.compile(\r\n `[${newBindings.newTokens.join(\"\")}]`,\r\n arg\r\n );\r\n } else bindingObject.source_property_name = BindingCompiler.compile(srcBin, arg);\r\n }\r\n\r\n if (!bindingObject.target_property_name) {\r\n Log.error(`${CurrentLine()} missing target_property_name.`);\r\n }\r\n } else if (bindingObject.binding_collection_name) {\r\n bindingObject.binding_type ||= BindingType.Collection;\r\n }\r\n\r\n return <BindingInterface>bindingObject;\r\n }\r\n}\r\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,yBAA4B;AAI5B,6BAAgC;AAChC,iBAAoB;AACpB,yBAA4B;AAErB,SAAS,YACZ,SACA,KACgB;AAChB,MAAI,OAAO,YAAY;AACnB,WAAO;AAAA,MACH,cAAc;AAAA,IAClB;AAAA,OACC;AACD,UAAM,gBAAuC;AAE7C,QAAI,cAAc,sBAAsB;AACpC,oBAAc,iBAAd,cAAc,eAAiB,+BAAY;AAE3C,YAAM,SAAS,cAAc;AAE7B,UAAI,UAAU,uCAAgB,aAAa,MAAM,GAAG;AAChD,YAAI,cAAc,qBAAqB;AACnC,gBAAM,iBAAyB,cAAc;AAE7C,iBAAO,cAAc;AACrB,gBAAM,cAAc,uCAAgB;AAAA,YAChC,uCAAgB,eAAe,MAAM;AAAA,YACrC;AAAA,YACA,IAAI;AAAA,UACR;AACA,qBAAW,OAAO,YAAY;AAC1B,gBAAI,eAAe,GAAG,IAAI,YAAY,iBAAiB,GAAG;AAE9D,wBAAc,uBAAuB,uCAAgB;AAAA,YACjD,IAAI,mBAAY,UAAU,KAAK,EAAE,GAAC;AAAA,YAClC;AAAA,UACJ;AAAA,QACJ,MAAO,eAAc,uBAAuB,uCAAgB,QAAQ,QAAQ,GAAG;AAAA,MACnF;AAEA,UAAI,CAAC,cAAc,sBAAsB;AACrC,uBAAI,MAAM,GAAG,2CAAY,GAAC,iCAAgC;AAAA,MAC9D;AAAA,IACJ,WAAW,cAAc,yBAAyB;AAC9C,oBAAc,iBAAd,cAAc,eAAiB,+BAAY;AAAA,IAC/C;AAEA,WAAyB;AAAA,EAC7B;AACJ;",
6
+ "names": []
7
+ }
@@ -52,19 +52,19 @@ function ReadProperties(properties) {
52
52
  properties.min_size = [properties.min_w || 0, properties.min_h || 0];
53
53
  delete properties.min_w;
54
54
  delete properties.min_h;
55
- } else if (properties.min_size !== void 0 && !Array.isArray(properties.min_size) && typeof properties.min_size === "string" && !properties.min_size.startsWith("$"))
55
+ } else if (properties.min_size !== void 0 && !Array.isArray(properties.min_size) && (typeof properties.min_size === "string" && !properties.min_size.startsWith("$") || typeof properties.min_size === "number"))
56
56
  properties.min_size = [properties.min_size, properties.min_size];
57
57
  if (properties.max_w || properties.max_h) {
58
58
  properties.max_size = [properties.max_w || 0, properties.max_h || 0];
59
59
  delete properties.max_w;
60
60
  delete properties.max_h;
61
- } else if (properties.max_size !== void 0 && !Array.isArray(properties.max_size) && typeof properties.max_size === "string" && !properties.max_size.startsWith("$"))
61
+ } else if (properties.max_size !== void 0 && !Array.isArray(properties.max_size) && (typeof properties.max_size === "string" && !properties.max_size.startsWith("$") || typeof properties.max_size === "number"))
62
62
  properties.max_size = [properties.max_size, properties.max_size];
63
63
  if (properties.w || properties.h) {
64
64
  properties.size = [properties.w || 0, properties.h || 0];
65
65
  delete properties.w;
66
66
  delete properties.h;
67
- } else if (properties.size !== void 0 && !Array.isArray(properties.size) && typeof properties.size === "string" && !properties.size.startsWith("$"))
67
+ } else if (properties.size !== void 0 && !Array.isArray(properties.size) && (typeof properties.size === "string" && !properties.size.startsWith("$") || typeof properties.size === "number"))
68
68
  properties.size = [properties.size, properties.size];
69
69
  if (properties.sound_path) {
70
70
  properties.sound_name = import_Sounds.SoundHandler.get(properties.sound_path);
@@ -116,3 +116,4 @@ function ReadProperties(properties) {
116
116
  ReadProperties,
117
117
  ReadValue
118
118
  });
119
+ //# sourceMappingURL=ReadProperties.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/compilers/reader/ReadProperties.ts"],
4
+ "sourcesContent": ["import { Animation } from \"../../components/Animation\";\r\nimport { LocalizeText } from \"../../components/LocalizeText\";\r\nimport { Modify } from \"../../components/Modify\";\r\nimport { UI } from \"../../components/UI\";\r\nimport { Properties } from \"../../types/objects/properties/Properties\";\r\nimport { Log } from \"../generator/Log\";\r\nimport { SoundHandler as Sounds } from \"../generator/Sounds\";\r\nimport { ColorHandler } from \"./Color\";\r\nimport { Obj } from \"./Object\";\r\n\r\nexport function ReadValue(value: any, callback?: (type: string) => any) {\r\n if (Array.isArray(value)) {\r\n if (typeof value[0] === \"string\") {\r\n if (value[0].startsWith(\"#\") || value[0].startsWith(\"0x\"))\r\n value = ColorHandler.parse(value[0]);\r\n else if (value[0].startsWith(\"$\")) return callback?.(\"var\");\r\n }\r\n } else if (value instanceof Animation) return value.getKeyIndex(0);\r\n else if (value instanceof LocalizeText) return value.get();\r\n else if (value instanceof UI || value instanceof Modify) return value.getPath();\r\n\r\n return value;\r\n}\r\n\r\nexport function ReadProperties(properties: Properties) {\r\n if (properties.x || properties.y) {\r\n properties.offset = [properties.x || 0, properties.y || 0];\r\n delete properties.x;\r\n delete properties.y;\r\n }\r\n\r\n if (properties.min_w || properties.min_h) {\r\n properties.min_size = [properties.min_w || 0, properties.min_h || 0];\r\n delete properties.min_w;\r\n delete properties.min_h;\r\n } else if (\r\n properties.min_size !== undefined &&\r\n !Array.isArray(properties.min_size) &&\r\n ((typeof properties.min_size === \"string\" && !properties.min_size.startsWith(\"$\")) ||\r\n typeof properties.min_size === \"number\")\r\n )\r\n (<any>properties.min_size) = [properties.min_size, properties.min_size];\r\n\r\n if (properties.max_w || properties.max_h) {\r\n properties.max_size = [properties.max_w || 0, properties.max_h || 0];\r\n delete properties.max_w;\r\n delete properties.max_h;\r\n } else if (\r\n properties.max_size !== undefined &&\r\n !Array.isArray(properties.max_size) &&\r\n ((typeof properties.max_size === \"string\" && !properties.max_size.startsWith(\"$\")) ||\r\n typeof properties.max_size === \"number\")\r\n )\r\n (<any>properties.max_size) = [properties.max_size, properties.max_size];\r\n\r\n if (properties.w || properties.h) {\r\n properties.size = [properties.w || 0, properties.h || 0];\r\n delete properties.w;\r\n delete properties.h;\r\n } else if (\r\n properties.size !== undefined &&\r\n !Array.isArray(properties.size) &&\r\n ((typeof properties.size === \"string\" && !properties.size.startsWith(\"$\")) ||\r\n typeof properties.size === \"number\")\r\n )\r\n (<any>properties.size) = [properties.size, properties.size];\r\n\r\n if (properties.sound_path) {\r\n properties.sound_name = Sounds.get(properties.sound_path);\r\n delete properties.sound_path;\r\n }\r\n\r\n if (properties.sounds) {\r\n properties.sounds = properties.sounds.map(sound => {\r\n if (sound.sound_path) {\r\n const soundId = Sounds.get(sound.sound_path);\r\n delete sound.sound_path;\r\n return {\r\n sound_name: soundId,\r\n };\r\n } else return sound;\r\n });\r\n }\r\n\r\n Obj.forEach(properties, (key, value) => {\r\n if (key.startsWith(\"#\")) {\r\n if ([\"string\", \"number\", \"boolean\"].includes(typeof value)) {\r\n (<any>(properties.property_bag ||= {}))[key] = value;\r\n } else Log.error(`Invalid value for property \"${key}\"`);\r\n delete (<any>properties)[key];\r\n } else {\r\n (<any>properties)[key] = ReadValue(value, type => {\r\n if (type === \"var\") {\r\n const isSpecialProperty = [\"size\", \"min_size\", \"max_size\"].includes(key);\r\n\r\n const disableDefault = value[2];\r\n const propertyName = disableDefault ? value[0] : `${value[0]}|default`;\r\n\r\n if (isSpecialProperty) {\r\n if (Array.isArray(value[1])) properties[propertyName] = value[1];\r\n else properties[propertyName] = [value[1], value[1]];\r\n } else {\r\n properties[propertyName] = ReadValue(value[1]);\r\n }\r\n\r\n return value[0];\r\n }\r\n });\r\n }\r\n });\r\n\r\n if (properties.anchor) {\r\n properties.anchor_from = properties.anchor;\r\n properties.anchor_to = properties.anchor;\r\n delete properties.anchor;\r\n }\r\n\r\n return properties;\r\n}\r\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAA0B;AAC1B,0BAA6B;AAC7B,oBAAuB;A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OAAO,UAAQ;AAC9C,YAAI,SAAS,OAAO;AAChB,gBAAM,oBAAoB,CAAC,QAAQ,YAAY,UAAU,EAAE,SAAS,GAAG;AAEvE,gBAAM,iBAAiB,MAAM,CAAC;AAC9B,gBAAM,eAAe,iBAAiB,MAAM,CAAC,IAAI,GAAG,aAAM,CAAC,GAAC;AAE5D,cAAI,mBAAmB;AACnB,gBAAI,MAAM,QAAQ,MAAM,CAAC,CAAC,EAAG,YAAW,YAAY,IAAI,MAAM,CAAC;AAAA,gBAC1D,YAAW,YAAY,IAAI,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC;AAAA,UACvD,OAAO;AACH,uBAAW,YAAY,IAAI,UAAU,MAAM,CAAC,CAAC;AAAA,UACjD;AAEA,iBAAO,MAAM,CAAC;AAAA,QAClB;AAAA,MACJ,CAAC;AAAA,IACL;AAAA,EACJ,CAAC;AAED,MAAI,WAAW,QAAQ;AACnB,eAAW,cAAc,WAAW;AACpC,eAAW,YAAY,WAAW;AAClC,WAAO,WAAW;AAAA,EACtB;AAEA,SAAO;AACX;",
6
+ "names": ["Sounds"]
7
+ }
@@ -39,3 +39,4 @@ function AddCollectionChild(parent, child, collectionLength, startIndex = 0, pro
39
39
  0 && (module.exports = {
40
40
  AddCollectionChild
41
41
  });
42
+ //# sourceMappingURL=AddCollectionChill.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/AddCollectionChill.ts"],
4
+ "sourcesContent": ["import { UIChildNameCallback } from \"../types/components/NameCallback\";\nimport { Properties } from \"../types/objects/properties/Properties\";\nimport { UI } from \"./UI\";\n\ntype setNameCallback = (index: number) => string;\n\nexport function AddCollectionChild(\n parent: UI,\n child: UI,\n collectionLength: number,\n startIndex: number = 0,\n properties?: Properties,\n setName?: setNameCallback,\n callback?: UIChildNameCallback\n) {\n for (let index = startIndex; index < collectionLength; index++) {\n const name = setName?.(index);\n parent.addChild(\n child,\n {\n ...properties,\n collection_index: index,\n },\n name,\n callback\n );\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAMO,SAAS,mBACZ,QACA,OACA,kBACA,aAAqB,GACrB,YACA,SACA,UACF;AACE,WAAS,QAAQ,YAAY,QAAQ,kBAAkB,SAAS;AAC5D,UAAM,OAAO,mCAAU;AACvB,WAAO;AAAA,MACH;AAAA,MACA;AAAA,QACI,GAAG;AAAA,QACH,kBAAkB;AAAA,MACtB;AAAA,MACA;AAAA,MACA;AAAA,IACJ;AAAA,EACJ;AACJ;",
6
+ "names": []
7
+ }
@@ -125,3 +125,4 @@ class Animation extends import_Class.Class {
125
125
  0 && (module.exports = {
126
126
  Animation
127
127
  });
128
+ //# sourceMappingURL=Animation.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/Animation.ts"],
4
+ "sourcesContent": ["import { Configs } from \"../compilers/Config\";\nimport { Identifier } from \"../types/components/Identifier\";\nimport { AnimationTypes } from \"../types/enums/AnimTypes\";\nimport { AnimationInterface } from \"../types/objects/Animation\";\nimport { AnimationKeyFrame } from \"./AnimationKeyFrame\";\nimport { Class } from \"./Class\";\nimport { Random } from \"./Random\";\n\nexport class Animation extends Class {\n private keyFrames: Array<string> = [];\n private buildKey: number = 0;\n private config = Configs.getConfig();\n\n static register(animation: AnimationInterface, identifier?: Identifier): Animation {\n return new Animation(animation, identifier);\n }\n\n constructor(animation: AnimationInterface, private identifier?: Identifier) {\n super()\n if (!(identifier && !this.config.compiler.UI.obfuscateName))\n identifier = {\n name: Random.getAnimationName(),\n namespace: Random.getNamespace(),\n };\n else {\n if (!identifier.name) identifier.name = Random.getAnimationName();\n if (!identifier.namespace) identifier.namespace = Random.getAnimationName();\n }\n\n this.buildAnimation(animation, identifier);\n }\n\n getKeyIndex(index: number): string {\n let i = index < 0 ? 0 : Math.min(index, this.keyFrames.length);\n return `@${this.keyFrames[index]}`;\n }\n\n private buildAnimation(\n { from, keyFrames, loop, type, durationPerKeyFrame = 1, smartCycle, defaultEase }: AnimationInterface,\n identifier: Identifier\n ) {\n const prefix = keyFrames.length - 1;\n\n if ((smartCycle === undefined || smartCycle) && loop) {\n if (typeof keyFrames[prefix] == \"number\") keyFrames[prefix] = {\n duration: keyFrames[prefix],\n to: from,\n }\n else if (JSON.stringify((keyFrames[prefix] as any).to) != JSON.stringify(from)) {\n keyFrames.push({\n to: (keyFrames[0] as any).from ?? from,\n duration: durationPerKeyFrame,\n easing: defaultEase\n });\n }\n }\n\n const frameLength = keyFrames.length - 1;\n\n keyFrames.forEach((keyFrame, index) => {\n this.keyFrames.push(`${identifier.namespace}.${identifier.name}`);\n const currentIdentifier = identifier;\n\n let next;\n\n if (index === frameLength) {\n if (loop) next = this.getKeyIndex(0);\n } else {\n identifier = this.generateIdentifier();\n next = this.getFrameKeyByIdentifier(identifier);\n }\n\n if (typeof keyFrame == \"number\") {\n new AnimationKeyFrame(\n <any>{\n next,\n anim_type: AnimationTypes.Wait,\n duration: keyFrame,\n },\n currentIdentifier\n );\n } else {\n new AnimationKeyFrame(\n <any>{\n next,\n anim_type: type,\n from,\n duration: (<any>keyFrame).duration ?? durationPerKeyFrame,\n easing: defaultEase,\n ...(<any>keyFrame),\n },\n currentIdentifier\n );\n }\n\n if (typeof keyFrame === \"object\") from = (<any>keyFrame).to;\n });\n }\n\n private generateIdentifier() {\n if (this.config.compiler.UI.obfuscateName) return {\n name: Random.getAnimationName(),\n namespace: Random.getNamespace(),\n }\n else return {\n name: this.identifier?.name ? `${this.identifier.name}-f${this.buildKey++}` : Random.getAnimationName(),\n namespace: this.identifier?.namespace || Random.getNamespace(),\n };\n }\n\n private getFrameKeyByIdentifier(identifier: Identifier) {\n return `@${identifier.namespace}.${identifier.name}`;\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAwB;AAExB,uBAA+B;AAE/B,+BAAkC;A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;AAAA,EAClD;AACJ;",
6
+ "names": ["_a"]
7
+ }
@@ -47,3 +47,4 @@ class AnimationKeyFrame extends import_Class.Class {
47
47
  0 && (module.exports = {
48
48
  AnimationKeyFrame
49
49
  });
50
+ //# sourceMappingURL=AnimationKeyFrame.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/AnimationKeyFrame.ts"],
4
+ "sourcesContent": ["import { JsonBuilder } from \"../compilers/generator/JsonBuilder\";\nimport { ReadValue } from \"../compilers/reader/ReadProperties\";\nimport { Identifier } from \"../types/components/Identifier\";\nimport { AnimationKeyFrameInterface } from \"../types/objects/Animation\";\nimport { Class } from \"./Class\";\n\nexport class AnimationKeyFrame extends Class {\n private properties: AnimationKeyFrameInterface;\n\n constructor(keyFrame: AnimationKeyFrameInterface, private identifier: Identifier) {\n super()\n this.properties = keyFrame;\n if (this.properties.from) this.properties.from = ReadValue(this.properties.from);\n if (this.properties.to) this.properties.to = ReadValue(this.properties.to);\n JsonBuilder.registerElement(identifier.namespace || \"\", this);\n }\n\n getFullPath() {\n return this.identifier.name || \"\";\n }\n\n getUI() {\n return this.properties;\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBAA4B;AAC5B,4BAA0B;AAG1B,mBAAsB;AAEf,MAAM,0BAA0B,mBAAM;AAAA,EAGzC,YAAY,UAA8C,YAAwB;AAC9E,UAAM;AADgD;AAF1D,wBAAQ;AAIJ,SAAK,aAAa;AAClB,QAAI,KAAK,WAAW,KAAM,MAAK,WAAW,WAAO,iCAAU,KAAK,WAAW,IAAI;AAC/E,QAAI,KAAK,WAAW,GAAI,MAAK,WAAW,SAAK,iCAAU,KAAK,WAAW,EAAE;AACzE,mCAAY,gBAAgB,WAAW,aAAa,IAAI,IAAI;AAAA,EAChE;AAAA,EAEA,cAAc;AACV,WAAO,KAAK,WAAW,QAAQ;AAAA,EACnC;AAAA,EAEA,QAAQ;AACJ,WAAO,KAAK;AAAA,EAChB;AACJ;",
6
+ "names": []
7
+ }
@@ -93,3 +93,4 @@ __publicField(Class, "name", "");
93
93
  0 && (module.exports = {
94
94
  Class
95
95
  });
96
+ //# sourceMappingURL=Class.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/Class.ts"],
4
+ "sourcesContent": ["/**\n * Represents a class with several static methods and properties that appear to serve as placeholders or utilities.\n * The methods in this class are defined but not yet implemented, potentially for future extensions or overriding.\n *\n * @class Class\n */\nexport class Class {\n\t/**\n\t * A static method that seems to serve as a placeholder, but has no functionality as of now.\n\t *\n\t * @private\n\t * @static\n\t */\n\tprivate static apply() {}\n\n\t/**\n\t * A static property initialized to an empty string, likely intended to hold arguments or be overridden in the future.\n\t *\n\t * @private\n\t * @static\n\t * @type {string}\n\t */\n\tprivate static arguments = \"\";\n\n\t/**\n\t * A static method that seems to serve as a placeholder, but has no functionality as of now.\n\t *\n\t * @private\n\t * @static\n\t */\n\tprivate static bind() {}\n\n\t/**\n\t * A static method that seems to serve as a placeholder, but has no functionality as of now.\n\t *\n\t * @private\n\t * @static\n\t */\n\tprivate static call() {}\n\n\t/**\n\t * A static property initialized to an empty string, likely intended to hold caller information or be overridden in the future.\n\t *\n\t * @private\n\t * @static\n\t * @type {string}\n\t */\n\tprivate static caller = \"\";\n\n\t/**\n\t * A static property initialized to an empty string, likely intended to hold length-related data or be overridden in the future.\n\t *\n\t * @private\n\t * @static\n\t * @type {string}\n\t */\n\tprivate static length = \"\";\n\n\t/**\n\t * A static property initialized to an empty string, likely intended to hold a name or be overridden in the future.\n\t *\n\t * @private\n\t * @static\n\t * @type {string}\n\t */\n\tprivate static name = \"\";\n\n\t/**\n\t * A static method that seems to serve as a placeholder, but has no functionality as of now.\n\t *\n\t * @private\n\t * @static\n\t */\n\tprivate static toString() {}\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAMO,MAAM,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOlB,OAAe,QAAQ;AAAA,EAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAiBxB,OAAe,OAAO;AAAA,EAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQvB,OAAe,OAAO;AAAA,EAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAmCvB,OAAe,WAAW;AAAA,EAAC;AAC5B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AApDC,cAhBY,OAgBG,aAAY;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAyB3B,cAzCY,OAyCG,UAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASxB,cAlDY,OAkDG,UAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASxB,cA3DY,OA2DG,QAAO;",
6
+ "names": []
7
+ }
@@ -57,3 +57,4 @@ class LocalizeText {
57
57
  LocalizeText,
58
58
  localizeText
59
59
  });
60
+ //# sourceMappingURL=LocalizeText.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/LocalizeText.ts"],
4
+ "sourcesContent": ["import { StaticUIInterface } from \"../types/components/UIInterface\";\nimport { Label } from \"../types/objects/elements/Label\";\nimport { UI } from \"./UI\";\n\ninterface LocalizeTextInterface {\n [language: string]: {\n [key: string]: string;\n };\n}\n\ninterface SetLocalizeTextInterface {\n [language: string]: string;\n}\n\nexport const localizeText: LocalizeTextInterface = {};\n\nexport class LocalizeText {\n constructor(public key: string, value: string | SetLocalizeTextInterface) {\n if (typeof value === \"string\") {\n this.set({ en_US: value });\n } else {\n this.set(value);\n }\n }\n\n createLabel(properties?: Omit<Label, \"text\">, identifier?: StaticUIInterface) {\n const label = UI.label(properties, identifier);\n\n label.setProperties({\n text: this.key,\n });\n\n return label;\n }\n\n set(texts: SetLocalizeTextInterface) {\n for (const language in texts) {\n (localizeText[language] ||= {})[this.key] = texts[language];\n }\n }\n\n get() {\n return this.key;\n }\n\n static register(key: string, value: string | SetLocalizeTextInterface) {\n return new LocalizeText(key, value);\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,gBAAmB;AAYZ,MAAM,eAAsC,CAAC;AAE7C,MAAM,aAAa;AAAA,EACtB,YAAmB,KAAa,OAA0C;AAAvD;AACf,QAAI,OAAO,UAAU,UAAU;AAC3B,WAAK,IAAI,EAAE,OAAO,MAAM,CAAC;AAAA,IAC7B,OAAO;AACH,WAAK,IAAI,KAAK;AAAA,IAClB;AAAA,EACJ;AAAA,EAEA,YAAY,YAAkC,YAAgC;AAC1E,UAAM,QAAQ,aAAG,MAAM,YAAY,UAAU;AAE7C,UAAM,cAAc;AAAA,MAChB,MAAM,KAAK;AAAA,IACf,CAAC;AAED,WAAO;AAAA,EACX;AAAA,EAEA,IAAI,OAAiC;AACjC,eAAW,YAAY,OAAO;AAC1B,OAAC,oDAA2B,CAAC,IAAG,KAAK,GAAG,IAAI,MAAM,QAAQ;AAAA,IAC9D;AAAA,EACJ;AAAA,EAEA,MAAM;AACF,WAAO,KAAK;AAAA,EAChB;AAAA,EAEA,OAAO,SAAS,KAAa,OAA0C;AACnE,WAAO,IAAI,aAAa,KAAK,KAAK;AAAA,EACtC;AACJ;",
6
+ "names": []
7
+ }
@@ -375,3 +375,4 @@ class Modify extends import_Class.Class {
375
375
  0 && (module.exports = {
376
376
  Modify
377
377
  });
378
+ //# sourceMappingURL=Modify.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/Modify.ts"],
4
+ "sourcesContent": ["import { JsonBuilder } from \"../compilers/generator/JsonBuilder\";\nimport { Log } from \"../compilers/generator/Log\";\nimport { CurrentLine } from \"../compilers/reader/CurrentLine\";\nimport { Obj } from \"../compilers/reader/Object\";\nimport { ReadBinding } from \"../compilers/reader/ReadBinding\";\nimport { ReadProperties, ReadValue } from \"../compilers/reader/ReadProperties\";\nimport { ChildElement } from \"../types/components/ChildIdentifier\";\nimport { Identifier } from \"../types/components/Identifier\";\nimport { ExtendInterface } from \"../types/components/UIInterface\";\nimport { Types } from \"../types/enums/Types\";\nimport { BindingInterface } from \"../types/objects/BindingInterface\";\nimport { PropertiesType } from \"../types/objects/elements/PropertiesType\";\nimport {\n ModificationControls,\n OverrideInterface,\n ModificationInterface,\n ExtractUIType,\n} from \"../types/objects/Modify\";\nimport { Properties } from \"../types/objects/properties/Properties\";\nimport { VariablesInterface } from \"../types/objects/Variables\";\nimport { Binding } from \"../types/values/Binding\";\nimport { Class } from \"./Class\";\nimport { Random } from \"./Random\";\nimport { UI } from \"./UI\";\n\nexport class Modify<T extends Types = Types.Any, K extends string = string> extends Class {\n private properties: Properties = {};\n private controls?: Array<ChildElement>;\n private bindings?: Array<BindingInterface>;\n private variables?: VariablesInterface;\n\n private isValidPath: boolean;\n name: string = \"\";\n namespace: string = \"\";\n\n private modifyBindings?: Array<BindingInterface>;\n private removeModifyBindings?: Array<BindingInterface>;\n private modifyControls: ModificationControls = {\n remove: [],\n replace: [],\n insertBack: [],\n insertFront: [],\n insertAfter: [],\n insertBefore: [],\n moveAfter: [],\n moveBack: [],\n moveBefore: [],\n moveFront: [],\n };\n\n override: OverrideInterface = {\n sourceBindings: {},\n\n setProperties: (properties: PropertiesType[T]) => {\n this.properties = {\n ...this.properties,\n ...properties,\n };\n return this.override;\n },\n\n addChild: (element, properties, name, callback) => {\n if (!element) {\n this.controls ||= [];\n return this.override;\n }\n if (!this.controls) this.controls = [];\n name ||= Random.getName();\n\n this.controls.push({\n [`${name}@${\n typeof element === \"string\"\n ? element.startsWith(\"@\")\n ? element.slice(1)\n : element\n : element.getPath()\n }`]: properties ? ReadProperties(properties) : {},\n });\n\n callback?.(this, name);\n\n return this.override;\n },\n\n addBindings: bindings => {\n if (!bindings) {\n this.bindings ||= [];\n return this.override;\n }\n if (Array.isArray(bindings))\n for (const binding of bindings) this.override.addBindings(binding);\n else (this.bindings ||= []).push(ReadBinding(<any>bindings, this.override));\n return this.override;\n },\n\n addVariables: variables => {\n this.variables ||= {};\n\n if (variables)\n Obj.forEach(variables, (key, value) => {\n (<any>this.variables)[key] = {\n ...Obj.map(value, (k, v) => {\n return { key: k, value: ReadValue(v) };\n }),\n };\n });\n\n return this.override;\n },\n\n searchBinding: (\n bindingName: Binding,\n controlName?: string,\n targetBindingName?: Binding\n ) => {\n for (let index = 0; index < (this.bindings?.length || 0); index++) {\n const binding = this.bindings?.[index];\n if (controlName) {\n if (\n binding?.source_control_name === controlName &&\n binding.source_property_name === bindingName\n ) {\n if (targetBindingName) {\n if (binding.target_property_name === targetBindingName) {\n return targetBindingName;\n } else return undefined;\n } else return binding.target_property_name;\n }\n } else {\n if (binding?.source_property_name === bindingName) {\n if (targetBindingName) {\n if (binding.target_property_name === targetBindingName) {\n return targetBindingName;\n } else return undefined;\n } else return binding.target_property_name;\n }\n }\n }\n return undefined;\n },\n };\n\n modify: ModificationInterface<K> = {\n bindings: {\n remove: bindings => {\n if (Array.isArray(bindings)) {\n (this.removeModifyBindings ||= [])?.push(...bindings);\n } else (this.removeModifyBindings ||= [])?.push(bindings);\n return this.modify.bindings;\n },\n\n addBindings: bindings => {\n if (Array.isArray(bindings))\n bindings.forEach(binding => this.modify.bindings.addBindings(binding));\n else {\n (this.modifyBindings ||= []).push(\n ReadBinding(<any>bindings, <any>this.modify.bindings)\n );\n }\n return this.modify.bindings;\n },\n },\n controls: {\n remove: childName => {\n if (Array.isArray(childName)) this.modifyControls.remove.push(...childName);\n else this.modifyControls.remove.push(childName);\n return this.modify.controls;\n },\n\n moveAfter: childName => {\n if (Array.isArray(childName)) this.modifyControls.moveAfter.push(...childName);\n else this.modifyControls.moveAfter.push(childName);\n return this.modify.controls;\n },\n\n moveBack: childName => {\n if (Array.isArray(childName)) this.modifyControls.moveBack.push(...childName);\n else this.modifyControls.moveBack.push(childName);\n return this.modify.controls;\n },\n moveFront: childName => {\n if (Array.isArray(childName)) this.modifyControls.moveFront.push(...childName);\n else this.modifyControls.moveFront.push(childName);\n return this.modify.controls;\n },\n moveBefore: childName => {\n if (Array.isArray(childName)) this.modifyControls.moveBefore.push(...childName);\n else this.modifyControls.moveBefore.push(childName);\n return this.modify.controls;\n },\n\n replace: (childName, ui, properties, elementName) => {\n this.modifyControls.replace.push([\n childName,\n {\n [`${elementName || Random.getName()}@${\n typeof ui === \"string\" ? ui : ui.getPath()\n }`]: ReadProperties(properties || {}),\n },\n ]);\n return this.modify.controls;\n },\n insertAfter: (childName, ui, properties, elementName) => {\n this.modifyControls.insertAfter.push([\n childName,\n {\n [`${elementName || Random.getName()}@${\n typeof ui === \"string\" ? ui : ui.getPath()\n }`]: ReadProperties(properties || {}),\n },\n ]);\n return this.modify.controls;\n },\n insertBefore: (childName, ui, properties, elementName) => {\n this.modifyControls.insertBefore.push([\n childName,\n {\n [`${elementName || Random.getName()}@${\n typeof ui === \"string\" ? ui : ui.getPath()\n }`]: ReadProperties(properties || {}),\n },\n ]);\n return this.modify.controls;\n },\n\n insertBack: (ui, properties, elementName) => {\n this.modifyControls.insertBack.push({\n [`${elementName || Random.getName()}@${\n typeof ui === \"string\" ? ui : ui.getPath()\n }`]: ReadProperties(properties || {}),\n });\n return this.modify.controls;\n },\n insertFront: (ui, properties, elementName) => {\n this.modifyControls.insertFront.push({\n [`${elementName || Random.getName()}@${\n typeof ui === \"string\" ? ui : ui.getPath()\n }`]: ReadProperties(properties || {}),\n });\n return this.modify.controls;\n },\n },\n };\n\n private constructor(properties?: Properties, identifier?: Identifier) {\n super();\n\n if (properties) this.override.setProperties(properties);\n if (identifier && identifier.name?.match(/\\w+/g)?.length === 1 && identifier.namespace)\n this.isValidPath = true;\n else this.isValidPath = false;\n\n this.name = identifier?.name || \"\";\n this.namespace = identifier?.namespace || \"\";\n }\n\n getPath() {\n if (this.isValidPath) return `${this.namespace}.${this.name}`;\n else {\n Log.error(`${CurrentLine()} Cannot use this element for extend or addChild!`);\n return \"\";\n }\n }\n\n getElement() {\n return `@${this.getPath()}`;\n }\n\n extend(identifier?: ExtendInterface, properties?: PropertiesType[ExtractUIType<typeof this>]) {\n return UI.extend(this, properties, identifier);\n }\n\n getUI() {\n const code: any = ReadProperties(this.properties);\n const modifications: Array<any> = [];\n\n for (const key of [\"type\", \"controls\", \"bindings\", \"button_mappings\"])\n if ((<any>this)[key]) code[key] = (<any>this)[key];\n\n if (this.variables)\n Obj.forEach(this.variables, (k, v) => {\n (code.variables ||= []).push({\n requires: k,\n ...v,\n });\n });\n\n if (this.variables && Object.keys(this.variables).length === 0) code.variables ||= [];\n\n {\n if (this.modifyBindings) {\n modifications.push({\n array_name: \"bindings\",\n operation: \"insert_front\",\n value: this.modifyBindings,\n });\n }\n if (this.removeModifyBindings) {\n modifications.push(\n ...this.removeModifyBindings.map(v => ({\n array_name: \"bindings\",\n operation: \"remove\",\n where: v,\n }))\n );\n }\n }\n {\n modifications.push(\n ...this.modifyControls.remove.map(controlName => ({\n array_name: \"controls\",\n operation: \"remove\",\n control_name: controlName,\n }))\n );\n modifications.push(\n ...this.modifyControls.moveAfter.map(controlName => ({\n array_name: \"controls\",\n operation: \"move_after\",\n control_name: controlName,\n }))\n );\n modifications.push(\n ...this.modifyControls.moveBack.map(controlName => ({\n array_name: \"controls\",\n operation: \"move_back\",\n control_name: controlName,\n }))\n );\n modifications.push(\n ...this.modifyControls.moveBefore.map(controlName => ({\n array_name: \"controls\",\n operation: \"move_before\",\n control_name: controlName,\n }))\n );\n modifications.push(\n ...this.modifyControls.moveFront.map(controlName => ({\n array_name: \"controls\",\n operation: \"move_front\",\n control_name: controlName,\n }))\n );\n modifications.push(\n ...this.modifyControls.replace.map(([childName, element]) => ({\n array_name: \"controls\",\n operation: \"replace\",\n control_name: childName,\n value: element,\n }))\n );\n modifications.push(\n ...this.modifyControls.insertAfter.map(([childName, element]) => ({\n array_name: \"controls\",\n operation: \"insert_after\",\n control_name: childName,\n value: [element],\n }))\n );\n modifications.push(\n ...this.modifyControls.insertBefore.map(([childName, element]) => ({\n array_name: \"controls\",\n operation: \"insert_before\",\n control_name: childName,\n value: [element],\n }))\n );\n if (this.modifyControls.insertBack.length)\n modifications.push({\n array_name: \"controls\",\n operation: \"insert_back\",\n value: this.modifyControls.insertBack,\n });\n if (this.modifyControls.insertFront.length)\n modifications.push({\n array_name: \"controls\",\n operation: \"insert_front\",\n value: this.modifyControls.insertFront,\n });\n }\n\n if (modifications.length > 0) code[\"modifications\"] = modifications;\n\n for (const bindingKey in this.override.sourceBindings) {\n const targetBinding = this.override.sourceBindings[bindingKey];\n const [sourceBinding, sourceControl] = bindingKey.split(\":\");\n\n code.bindings.push({\n binding_type: \"view\",\n source_control_name: sourceControl,\n source_property_name: sourceBinding,\n target_property_name: targetBinding,\n });\n }\n\n return Object.keys(code).length > 0 ? code : undefined;\n }\n\n addChild<T extends string | UI<any> | Modify<any, any>>(\n element: T,\n properties?: PropertiesType[ExtractUIType<typeof element>],\n elementName?: string\n ) {\n this.modify.controls.insertFront(element, properties, elementName);\n return this;\n }\n\n static register<T extends Types = Types.Any, K extends string = string>(\n filePath: string,\n elementPath: string,\n properties?: Properties\n ) {\n return this.registerWithNamespace<T, K>(filePath, elementPath, \"\", properties);\n }\n\n static registerWithNamespace<T extends Types = Types.Any, K extends string = string>(\n filePath: string,\n elementPath: string,\n namespace: string,\n properties?: Properties\n ) {\n const modify = JsonBuilder.getModify(filePath, elementPath);\n modify?.override?.setProperties(properties || {});\n return <Modify<T, K>>(modify ||\n JsonBuilder.registerModify(\n filePath,\n elementPath,\n new Modify<T, K>(properties, {\n name: elementPath,\n namespace,\n })\n ));\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBAA4B;AAC5B,iBAAoB;AACpB,yBAA4B;A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ACf,cAAc;AAAA,QACd,qBAAqB;AAAA,QACrB,sBAAsB;AAAA,QACtB,sBAAsB;AAAA,MAC1B,CAAC;AAAA,IACL;AAEA,WAAO,OAAO,KAAK,IAAI,EAAE,SAAS,IAAI,OAAO;AAAA,EACjD;AAAA,EAEA,SACI,SACA,YACA,aACF;AACE,SAAK,OAAO,SAAS,YAAY,SAAS,YAAY,WAAW;AACjE,WAAO;AAAA,EACX;AAAA,EAEA,OAAO,SACH,UACA,aACA,YACF;AACE,WAAO,KAAK,sBAA4B,UAAU,aAAa,IAAI,UAAU;AAAA,EACjF;AAAA,EAEA,OAAO,sBACH,UACA,aACA,WACA,YACF;AApaN;AAqaQ,UAAM,SAAS,+BAAY,UAAU,UAAU,WAAW;AAC1D,2CAAQ,aAAR,mBAAkB,cAAc,cAAc,CAAC;AAC/C,WAAsB,UAClB,+BAAY;AAAA,MACR;AAAA,MACA;AAAA,MACA,IAAI,OAAa,YAAY;AAAA,QACzB,MAAM;AAAA,QACN;AAAA,MACJ,CAAC;AAAA,IACL;AAAA,EACR;AACJ;",
6
+ "names": []
7
+ }
@@ -102,3 +102,4 @@ let Random = _Random;
102
102
  0 && (module.exports = {
103
103
  Random
104
104
  });
105
+ //# sourceMappingURL=Random.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/Random.ts"],
4
+ "sourcesContent": ["import { UUID } from \"../types/objects/Manifest\";\nimport { Class } from \"./Class\";\nimport { Configs } from \"../compilers/Config\";\nimport { Binding } from \"../types/values/Binding\";\n\nconst HEX: string[] = Array.from({ length: 256 }, (_, i) =>\n i.toString(16).toUpperCase().padStart(2, \"0\")\n);\nconst CHARS = \"0123456789abcdefghijklmnopqrstuvwxyz\";\n\nexport class Random extends Class {\n private static namespaces?: string[];\n private static namespaceIndex = 0;\n\n private static _uiConfig?: ReturnType<typeof Configs.getConfig>[\"compiler\"][\"UI\"];\n private static get uiConfig() {\n return (this._uiConfig ??= Configs.getConfig().compiler.UI);\n }\n\n private static get isObfuscate(): boolean {\n return Configs.getConfig().compiler.UI.obfuscateName;\n }\n\n private static _uniqueKey?: string;\n private static get uniqueKey() {\n return (this._uniqueKey ??= Random.genString(5, 16).toUpperCase());\n }\n\n private static get prefix() {\n return this.uniqueKey;\n }\n\n private static counter = { element: 0, animation: 0, binding: 0 };\n\n static genString(length: number, base: number = 32): string {\n const chars = CHARS.slice(0, base);\n const out = new Array<string>(length);\n\n try {\n const buffer = new Uint8Array(length);\n crypto.getRandomValues(buffer);\n for (let i = 0; i < length; i++) {\n out[i] = chars[buffer[i] % base];\n }\n } catch {\n for (let i = 0; i < length; i++) {\n out[i] = chars[Math.floor(Math.random() * base)];\n }\n }\n\n return out.join(\"\");\n }\n\n static getName(length: number = Random.uiConfig.nameLength): string {\n if (Random.isObfuscate) return Random.genString(length);\n const counter = ++Random.counter.element;\n return `${Random.prefix}_ELEMENT_${counter.toString(16).toUpperCase()}`;\n }\n\n static getAnimationName(length: number = Random.uiConfig.nameLength): string {\n if (Random.isObfuscate) return Random.genString(length);\n const counter = ++Random.counter.animation;\n return `${Random.prefix}_ANIMATION_${counter.toString(16).toUpperCase()}`;\n }\n\n static getNamespace(): string {\n if (!Random.namespaces) {\n const { namespaceAmount, namespaceLength } = Random.uiConfig;\n Random.namespaces = Array.from({ length: namespaceAmount }, (_, index) =>\n Random.isObfuscate\n ? Random.genString(namespaceLength)\n : `${Random.prefix}_NAMESPACE_${(index + 1).toString(16).toUpperCase()}`\n );\n }\n const index = Random.namespaceIndex++ % Random.namespaces.length;\n return Random.namespaces[index];\n }\n\n static getUUID(): UUID {\n const b = Array.from({ length: 16 }, () => Math.floor(Math.random() * 256));\n return <UUID>(\n `${HEX[b[0]]}${HEX[b[1]]}${HEX[b[2]]}${HEX[b[3]]}-${HEX[b[4]]}${HEX[b[5]]}-${\n HEX[b[6]]\n }${HEX[b[7]]}-${HEX[b[8]]}${HEX[b[9]]}-${HEX[b[10]]}${HEX[b[11]]}${HEX[b[12]]}${\n HEX[b[13]]\n }${HEX[b[14]]}${HEX[b[15]]}`\n );\n }\n\n static bindingName(): Binding {\n if (Random.isObfuscate) return `#${Random.genString(Random.uiConfig.nameLength)}`;\n const counter = ++Random.counter.binding;\n return `#${Random.prefix}_BINDING_${counter.toString(16).toUpperCase()}`;\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,mBAAsB;AACtB,oBAAwB;AAGxB,MAAM,MAAgB,MAAM;AAAA,EAAK,EAAE,QAAQ,IAAI;AAAA,EAAG,CAAC,GAAG,MAClD,EAAE,SAAS,EAAE,EAAE,YAAY,EAAE,SAAS,GAAG,GAAG;AAChD;AACA,MAAM,QAAQ;AAEP,MAAM,UAAN,MAAM,gBAAe,mBAAM;AAAA,EAK9B,WAAmB,WAAW;AAflC;AAgBQ,YAAQ,UAAK,cAAL,iBAAK,YAAc,sBAAQ,UAAU,EAAE,SAAS;AAAA,EAC5D;AAAA,EAEA,WAAmB,cAAuB;AACtC,WAAO,sBAAQ,UAAU,EAAE,SAAS,GAAG;AAAA,EAC3C;AAAA,EAGA,WAAmB,YAAY;AAxBnC;AAyBQ,YAAQ,UAAK,eAAL,iBAAK,aAAe,QAAO,UAAU,GAAG,EAAE,EAAE,YAAY;AAAA,EACpE;AAAA,EAEA,WAAmB,SAAS;AACxB,WAAO,KAAK;AAAA,EAChB;AAAA,EAIA,OAAO,UAAU,QAAgB,OAAe,IAAY;AACxD,UAAM,QAAQ,MAAM,MAAM,GAAG,IAAI;AACjC,UAAM,MAAM,IAAI,MAAc,MAAM;AAEpC,QAAI;AACA,YAAM,SAAS,IAAI,WAAW,MAAM;AACpC,aAAO,gBAAgB,MAAM;AAC7B,eAAS,IAAI,GAAG,IAAI,QAAQ,KAAK;AAC7B,YAAI,CAAC,IAAI,MAAM,OAAO,CAAC,IAAI,IAAI;AAAA,MACnC;AAAA,IACJ,SAAQ;AACJ,eAAS,IAAI,GAAG,I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C,GAAI,WAAI,EAAE,CAAC,CAAC,GAAC,KAAI,WAAI,EAAE,CAAC,CAAC,GAAI,WAAI,EAAE,CAAC,CAAC,GAAC,KACrE,WAAI,EAAE,CAAC,CAAC,GACT,WAAI,EAAE,CAAC,CAAC,GAAC,KAAI,WAAI,EAAE,CAAC,CAAC,GAAI,WAAI,EAAE,CAAC,CAAC,GAAC,KAAI,WAAI,EAAE,EAAE,CAAC,GAAI,WAAI,EAAE,EAAE,CAAC,GAAI,WAAI,EAAE,EAAE,CAAC,GACxE,WAAI,EAAE,EAAE,CAAC,GACV,WAAI,EAAE,EAAE,CAAC,GAAI,WAAI,EAAE,EAAE,CAAC;AAAA,EAEjC;AAAA,EAEA,OAAO,cAAuB;AAC1B,QAAI,QAAO,YAAa,QAAO,IAAI,eAAO,UAAU,QAAO,SAAS,UAAU;AAC9E,UAAM,UAAU,EAAE,QAAO,QAAQ;AACjC,WAAO,IAAI,eAAO,QAAM,aAAY,eAAQ,SAAS,EAAE,EAAE,YAAY;AAAA,EACzE;AACJ;AAnFI,cADS,SACM;AACf,cAFS,SAEM,kBAAiB;AAEhC,cAJS,SAIM;AASf,cAbS,SAaM;AASf,cAtBS,SAsBM,WAAU,EAAE,SAAS,GAAG,WAAW,GAAG,SAAS,EAAE;AAtB7D,IAAM,SAAN;",
6
+ "names": ["index"]
7
+ }
@@ -385,3 +385,4 @@ let UI = _UI;
385
385
  0 && (module.exports = {
386
386
  UI
387
387
  });
388
+ //# sourceMappingURL=UI.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/UI.ts"],
4
+ "sourcesContent": ["import { Configs } from \"../compilers/Config\";\nimport { JsonBuilder } from \"../compilers/generator/JsonBuilder\";\nimport { Log } from \"../compilers/generator/Log\";\nimport { CurrentLine } from \"../compilers/reader/CurrentLine\";\nimport { Obj } from \"../compilers/reader/Object\";\nimport { ReadBinding } from \"../compilers/reader/ReadBinding\";\nimport { ReadProperties, ReadValue } from \"../compilers/reader/ReadProperties\";\nimport { ChildElement } from \"../types/components/ChildIdentifier\";\nimport { Identifier } from \"../types/components/Identifier\";\nimport { UIChildNameCallback } from \"../types/components/NameCallback\";\nimport { ExtendInterface, StaticUIInterface, UIInterface } from \"../types/components/UIInterface\";\nimport { MappingType } from \"../types/enums/MappingTypes\";\nimport { Renderer } from \"../types/enums/Renderer\";\nimport { Types } from \"../types/enums/Types\";\nimport { BindingInterface } from \"../types/objects/BindingInterface\";\nimport { ButtonMapping } from \"../types/objects/ButtonMapping\";\nimport { Button } from \"../types/objects/elements/Button\";\nimport { CollectionPanel } from \"../types/objects/elements/CollectionPanel\";\nimport { Dropdown } from \"../types/objects/elements/Dropdown\";\nimport { EditBox } from \"../types/objects/elements/EditBox\";\nimport { Grid } from \"../types/objects/elements/Grid\";\nimport { Image } from \"../types/objects/elements/Image\";\nimport { InputPanel } from \"../types/objects/elements/InputPanel\";\nimport { Label } from \"../types/objects/elements/Label\";\nimport { Panel } from \"../types/objects/elements/panel\";\nimport { PropertiesType } from \"../types/objects/elements/PropertiesType\";\nimport { Screen } from \"../types/objects/elements/Screen\";\nimport { ScrollbarBox } from \"../types/objects/elements/ScrollbarBox\";\nimport { ScrollbarTrack } from \"../types/objects/elements/ScrollbarTrack\";\nimport { ScrollView } from \"../types/objects/elements/ScrollView\";\nimport { Slider } from \"../types/objects/elements/Slider\";\nimport { SliderBox } from \"../types/objects/elements/SliderBox\";\nimport { StackPanel } from \"../types/objects/elements/StackPanel\";\nimport { Toggle } from \"../types/objects/elements/Toggle\";\nimport { TooltipTrigger } from \"../types/objects/elements/TooltipTrigger\";\nimport { Properties } from \"../types/objects/properties/Properties\";\nimport { Specials } from \"../types/objects/properties/Specials\";\nimport { VariablesInterface } from \"../types/objects/Variables\";\nimport { Binding } from \"../types/values/Binding\";\nimport { Animation } from \"./Animation\";\nimport { Modify } from \"./Modify\";\nimport { Random } from \"./Random\";\n\ntype ExtractUIType<T, K extends Types = Types.Any>\n = T extends UI<infer U>\n ? U\n : T extends Modify<infer U>\n ? U\n : T extends string\n ? K\n : T extends Identifier\n ? K\n : never;\n\ninterface TypeExtend {\n [key: string]: string;\n}\nconst typeExtend: TypeExtend = {};\n\nexport class UI<T extends Types = Types.Any> {\n name?: string;\n namespace?: string;\n extends?: string;\n sourceBindings: Record<string, string> = {};\n private type?: Types;\n private controls?: Array<ChildElement>;\n private bindings?: Array<BindingInterface>;\n private button_mappings?: Array<ButtonMapping>;\n private variables?: VariablesInterface;\n private anims?: Array<string>;\n private properties?: PropertiesType[T];\n constructor(identifier: UIInterface | UI | Modify) {\n const config = Configs.getConfig();\n\n if (identifier instanceof UI || identifier instanceof Modify) {\n this.name = Random.getName();\n this.namespace = Random.getNamespace();\n this.extends = identifier.getPath();\n } else {\n this.name = (!config.compiler.UI.obfuscateName && identifier?.name) || Random.getName();\n this.namespace =\n (!config.compiler.UI.obfuscateName && identifier?.namespace) ||\n Random.getNamespace();\n\n if (identifier?.extends) {\n if (identifier.type) {\n this.type = identifier.type;\n }\n\n if (identifier.extends instanceof UI)\n this.extends = `${identifier.extends.getPath()}`;\n else if (identifier.extends instanceof Modify) this.extends = identifier.extends.getPath();\n else if (typeof identifier.extends === \"string\") this.extends = identifier.extends;\n else this.extends = `${identifier.extends.namespace}.${identifier.extends.name}`;\n } else {\n if (config.compiler.UI.obfuscateType && identifier.namespace !== \"_type_c\") {\n const type = identifier?.type || Types.Panel;\n this.extends = typeExtend[type] ||= new UI({\n name: type,\n namespace: \"_type_c\",\n type,\n }).getPath();\n } else this.type = identifier?.type || Types.Panel;\n }\n\n if (identifier?.properties) this.setProperties(<any>identifier.properties);\n }\n\n JsonBuilder.registerElement(this.namespace, <any>this);\n }\n\n static panel(properties?: Panel, identifier?: StaticUIInterface) {\n return new UI<Types.Panel>(<UIInterface>{\n ...identifier,\n type: Types.Panel,\n properties,\n });\n }\n\n static stackPanel(properties?: StackPanel, identifier?: StaticUIInterface) {\n return new UI<Types.StackPanel>(<UIInterface>{\n ...identifier,\n type: Types.StackPanel,\n properties,\n });\n }\n\n static collectionPanel(properties?: CollectionPanel, identifier?: StaticUIInterface) {\n return new UI<Types.CollectionPanel>(<UIInterface>{\n ...identifier,\n type: Types.CollectionPanel,\n properties,\n });\n }\n\n static inputPanel(properties?: InputPanel, identifier?: StaticUIInterface) {\n return new UI<Types.InputPanel>(<UIInterface>{\n ...identifier,\n type: Types.InputPanel,\n properties,\n });\n }\n\n static grid(properties?: Grid, identifier?: StaticUIInterface) {\n return new UI<Types.Grid>(<UIInterface>{\n ...identifier,\n type: Types.Grid,\n properties,\n });\n }\n\n static button(properties?: Button, identifier?: StaticUIInterface) {\n return new UI<Types.Button>(<UIInterface>{\n ...identifier,\n type: Types.Button,\n properties,\n });\n }\n\n static toggle(properties?: Toggle, identifier?: StaticUIInterface) {\n return new UI<Types.Toggle>(<UIInterface>{\n ...identifier,\n type: Types.Toggle,\n properties,\n });\n }\n\n static label(properties?: Label, identifier?: StaticUIInterface) {\n return new UI<Types.Label>(<UIInterface>{\n ...identifier,\n type: Types.Label,\n properties,\n });\n }\n\n static image(properties?: Image, identifier?: StaticUIInterface) {\n return new UI<Types.Image>(<UIInterface>{\n ...identifier,\n type: Types.Image,\n properties,\n });\n }\n\n static dropdown(properties?: Dropdown, identifier?: StaticUIInterface) {\n return new UI<Types.Dropdown>(<UIInterface>{\n ...identifier,\n type: Types.Dropdown,\n properties,\n });\n }\n\n static slider(properties?: Slider, identifier?: StaticUIInterface) {\n return new UI<Types.Slider>(<UIInterface>{\n ...identifier,\n type: Types.Slider,\n properties,\n });\n }\n\n static sliderBox(properties?: SliderBox, identifier?: StaticUIInterface) {\n return new UI<Types.SliderBox>(<UIInterface>{\n ...identifier,\n type: Types.SliderBox,\n properties,\n });\n }\n\n static editBox(properties?: EditBox, identifier?: StaticUIInterface) {\n return new UI<Types.EditBox>(<UIInterface>{\n ...identifier,\n type: Types.EditBox,\n properties,\n });\n }\n\n static scrollView(properties?: ScrollView, identifier?: StaticUIInterface) {\n return new UI<Types.ScrollView>(<UIInterface>{\n ...identifier,\n type: Types.ScrollView,\n properties,\n });\n }\n\n static scrollbarTrack(properties?: ScrollbarTrack, identifier?: StaticUIInterface) {\n return new UI<Types.ScrollbarTrack>(<UIInterface>{\n ...identifier,\n type: Types.ScrollbarTrack,\n properties,\n });\n }\n\n static scrollbarBox(properties?: ScrollbarBox, identifier?: StaticUIInterface) {\n return new UI<Types.ScrollbarBox>(<UIInterface>{\n ...identifier,\n type: Types.ScrollbarBox,\n properties,\n });\n }\n\n static screen(properties?: Screen, identifier?: StaticUIInterface) {\n return new UI<Types.Screen>(<UIInterface>{\n ...identifier,\n type: Types.Screen,\n properties,\n });\n }\n\n static custom<T extends Renderer>(\n renderer: T,\n properties?: Panel | Specials[T],\n identifier?: StaticUIInterface\n ) {\n return new UI<Types.Custom>(<UIInterface>{\n ...identifier,\n type: Types.Custom,\n properties: {\n ...properties,\n renderer,\n },\n });\n }\n\n static tooltipTrigger(properties?: TooltipTrigger, identifier?: StaticUIInterface) {\n return new UI<Types.TooltipTrigger>(<UIInterface>{\n ...identifier,\n type: Types.TooltipTrigger,\n properties,\n });\n }\n\n static extend<K extends Types = Types.Any, T extends string | Identifier | UI | Modify = UI>(\n extendElement?: T,\n properties?: PropertiesType[ExtractUIType<typeof extendElement, K>],\n identifier?: StaticUIInterface\n ) {\n if (identifier)\n return new UI<ExtractUIType<typeof extendElement, K>>({\n extends: extendElement,\n ...identifier,\n });\n else\n return new UI<ExtractUIType<typeof extendElement, K>>({\n extends: extendElement,\n properties: <Properties>properties,\n });\n }\n\n searchBinding(bindingName: Binding, controlName?: string, targetBindingName?: Binding) {\n for (let index = 0; index < (this.bindings?.length || 0); index++) {\n const binding = this.bindings?.[index];\n if (controlName) {\n if (\n binding?.source_control_name === controlName &&\n binding.source_property_name === bindingName\n ) {\n if (targetBindingName) {\n if (binding.target_property_name === targetBindingName) {\n return targetBindingName;\n } else return undefined;\n } else return binding.target_property_name;\n }\n } else {\n if (binding?.source_property_name === bindingName) {\n if (targetBindingName) {\n if (binding.target_property_name === targetBindingName) {\n return targetBindingName;\n } else return undefined;\n } else return binding.target_property_name;\n }\n }\n }\n return undefined;\n }\n\n setProperties(properties: PropertiesType[T]) {\n if ((<any>properties).property_bag) {\n (<any>properties).property_bag = {\n ...(<any>this).properties?.property_bag,\n ...(<any>properties).property_bag,\n };\n }\n (<any>this).properties = {\n ...(this.properties || {}),\n ...properties,\n };\n return this;\n }\n\n private isDuplicate(name: string) {\n for (const childElement of this.controls || []) {\n const childKey = Object.keys(childElement)[0];\n const childName = childKey.split(\"@\")[0];\n\n if (childName === name) return true;\n }\n return false;\n }\n\n private isRecusive(name: string) {\n return name === this.name;\n }\n\n addChild<K extends Types = Types.Any, T extends string | Identifier | UI | Modify = any>(\n element: T,\n properties?: PropertiesType[ExtractUIType<typeof element, K>] | null | 0,\n name?: string | null | 0,\n callback?: UIChildNameCallback\n ) {\n if (!this.controls) this.controls = [];\n name ||= Random.getName();\n\n if (this.isDuplicate(name)) {\n Log.warning(`${CurrentLine()} child element should have a unique name!`);\n }\n\n if (typeof element === \"string\") {\n this.controls.push({\n [`${name}@${element}`]: properties ? ReadProperties(<Properties>properties) : {},\n });\n } else if (element instanceof UI || element instanceof Modify) {\n {\n if (element?.getPath() === this.getPath()) {\n Log.warning(`${CurrentLine()} child element should have a unique name!`);\n }\n\n this.controls.push({\n [`${name}@${element?.getPath()}`]: properties\n ? ReadProperties(<Properties>properties)\n : {},\n });\n }\n }\n\n callback?.(this, name);\n\n return this;\n }\n\n addBindings(bindings: Array<BindingInterface> | BindingInterface) {\n if (Array.isArray(bindings)) for (const binding of bindings) this.addBindings(binding);\n else (this.bindings ||= []).push(ReadBinding(<any>bindings, <any>this));\n return this;\n }\n\n addVariables(variables: VariablesInterface) {\n this.variables ||= {};\n\n Obj.forEach(variables, (key, value) => {\n (<any>this.variables)[key] = {\n ...Obj.map(value, (k, v) => {\n return { key: k, value: ReadValue(v) };\n }),\n };\n });\n\n return this;\n }\n\n getUI() {\n const code: any = ReadProperties(<any>(this.properties ?? {}));\n\n for (const key of [\"type\", \"controls\", \"bindings\", \"button_mappings\", \"anims\"])\n if ((<any>this)[key]) code[key] = (<any>this)[key];\n\n for (const bindingKey in this.sourceBindings) {\n const targetBinding = this.sourceBindings[bindingKey];\n const [sourceBinding, sourceControl] = bindingKey.split(\":\");\n\n code.bindings.push({\n binding_type: \"view\",\n source_control_name: sourceControl,\n source_property_name: sourceBinding,\n target_property_name: targetBinding,\n });\n }\n\n if (this.variables)\n Obj.forEach(this.variables, (k, v) => {\n (code.variables ||= []).push({\n requires: k,\n ...v,\n });\n });\n\n return code;\n }\n\n getPath() {\n return `${this.namespace}.${this.name}`;\n }\n\n getElement() {\n return `@${this.getPath()}`;\n }\n\n getFullPath(): string {\n return `${this.name}${this.extends ? `@${this.extends}` : \"\"}`;\n }\n\n extend(identifier?: ExtendInterface, properties?: PropertiesType[T]) {\n return new UI<T>({\n ...identifier,\n extends: this,\n properties: <Properties>properties,\n });\n }\n\n addAnimation(animation: Animation, startIndex?: number) {\n (this.anims ||= []).push(animation.getKeyIndex(startIndex || 0));\n return this;\n }\n\n addMapping(mapping: Array<ButtonMapping> | ButtonMapping) {\n if (Array.isArray(mapping)) mapping.forEach(v => this.addMapping(v));\n else {\n mapping.mapping_type ||= MappingType.Global;\n (this.button_mappings ||= []).push(mapping);\n }\n\n return this;\n }\n\n private static apply() { }\n private static arguments = \"\";\n private static bind() { }\n private static call() { }\n private static caller = \"\";\n private static length = \"\";\n private static name = \"\";\n private static toString() { }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAwB;AACxB,yBAA4B;AAC5B,iBAAoB;AACpB,yBAA4B;AAC5B,oBAAoB;AACpB,yBAA4B;AAC5B,4BAA0C;AAK1C,0BAA4B;AAE5B,mBAAsB;AA2BtB,oBAAuB;AACvB,oBAAuB;AAgBvB,MAAM,aAAyB,CA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ports = {
57914
57914
  Vanilla
57915
57915
  });
57916
+ //# sourceMappingURL=Vanilla.js.map