@flashist/appframework 0.0.140 → 0.0.142

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 (240) hide show
  1. package/app/AppModule.js +9 -28
  2. package/app/AppModule.js.map +1 -1
  3. package/app/AppSettings.js +1 -1
  4. package/app/AppSettings.js.map +1 -1
  5. package/app/commands/LoadAppConfigCommand.js +12 -34
  6. package/app/commands/LoadAppConfigCommand.js.map +1 -1
  7. package/app/commands/ParseStaticItemsConfigCommand.js +10 -32
  8. package/app/commands/ParseStaticItemsConfigCommand.js.map +1 -1
  9. package/app/data/state/AppModuleState.d.ts +1 -1
  10. package/app/data/state/AppModuleState.js +1 -1
  11. package/app/data/state/AppModuleState.js.map +1 -1
  12. package/app/managers/AppManager.js +18 -44
  13. package/app/managers/AppManager.js.map +1 -1
  14. package/app/views/AppMainContainer.js +11 -36
  15. package/app/views/AppMainContainer.js.map +1 -1
  16. package/assets/commands/ParseAssetsConfigCommand.js +6 -27
  17. package/assets/commands/ParseAssetsConfigCommand.js.map +1 -1
  18. package/base/BaseObjectWithGlobalDispatcher.js +9 -48
  19. package/base/BaseObjectWithGlobalDispatcher.js.map +1 -1
  20. package/base/commands/BaseAppCommand.js +9 -48
  21. package/base/commands/BaseAppCommand.js.map +1 -1
  22. package/base/managers/BaseAppManager.js +2 -23
  23. package/base/managers/BaseAppManager.js.map +1 -1
  24. package/base/mediators/BaseAppMediator.js +8 -29
  25. package/base/mediators/BaseAppMediator.js.map +1 -1
  26. package/base/models/BaseAppModel.js +2 -23
  27. package/base/models/BaseAppModel.js.map +1 -1
  28. package/base/modules/AppModulesManager.js +18 -20
  29. package/base/modules/AppModulesManager.js.map +1 -1
  30. package/base/modules/BaseAppModule.js +8 -29
  31. package/base/modules/BaseAppModule.js.map +1 -1
  32. package/base/views/BaseAppView.js +7 -32
  33. package/base/views/BaseAppView.js.map +1 -1
  34. package/containers/ContainersModule.js +5 -26
  35. package/containers/ContainersModule.js.map +1 -1
  36. package/containers/managers/ContainersManager.js +12 -31
  37. package/containers/managers/ContainersManager.js.map +1 -1
  38. package/date/DateSettings.js +1 -1
  39. package/date/DateSettings.js.map +1 -1
  40. package/debug/DebugModule.js +9 -30
  41. package/debug/DebugModule.js.map +1 -1
  42. package/debug/data/state/DebugModuleState.d.ts +1 -1
  43. package/debug/data/state/DebugModuleState.js +1 -1
  44. package/debug/data/state/DebugModuleState.js.map +1 -1
  45. package/device/DeviceModule.js +5 -26
  46. package/device/DeviceModule.js.map +1 -1
  47. package/device/data/state/DeviceModuleState.d.ts +1 -1
  48. package/device/data/state/DeviceModuleState.js +1 -1
  49. package/device/data/state/DeviceModuleState.js.map +1 -1
  50. package/display/tools/GetSizeTools.js +6 -10
  51. package/display/tools/GetSizeTools.js.map +1 -1
  52. package/display/views/AppContainer.js +8 -33
  53. package/display/views/AppContainer.js.map +1 -1
  54. package/display/views/button/BaseBtn.js +92 -129
  55. package/display/views/button/BaseBtn.js.map +1 -1
  56. package/display/views/button/BaseBtnEvent.js +1 -1
  57. package/display/views/button/BaseBtnEvent.js.map +1 -1
  58. package/display/views/button/BaseBtnState.js +26 -30
  59. package/display/views/button/BaseBtnState.js.map +1 -1
  60. package/display/views/button/BaseBtnView.js +44 -70
  61. package/display/views/button/BaseBtnView.js.map +1 -1
  62. package/display/views/button/DefaultButtonViewConfig.js +3 -5
  63. package/display/views/button/DefaultButtonViewConfig.js.map +1 -1
  64. package/display/views/button/SimpleButtonConfig.d.ts +1 -1
  65. package/display/views/button/SimpleButtonConfig.js +1 -1
  66. package/display/views/button/SimpleButtonConfig.js.map +1 -1
  67. package/display/views/button/SimpleButtonState.js +26 -30
  68. package/display/views/button/SimpleButtonState.js.map +1 -1
  69. package/display/views/button/SimpleButtonView.js +64 -98
  70. package/display/views/button/SimpleButtonView.js.map +1 -1
  71. package/display/views/button/simple-image-button/SimpleImageButton.js +75 -109
  72. package/display/views/button/simple-image-button/SimpleImageButton.js.map +1 -1
  73. package/display/views/button/simple-image-button/SimpleImageButtonConfig.d.ts +1 -1
  74. package/display/views/button/simple-image-button/SimpleImageButtonConfig.js +1 -1
  75. package/display/views/button/simple-image-button/SimpleImageButtonConfig.js.map +1 -1
  76. package/display/views/button/simple-image-button/SimpleImageButtonState.js +12 -13
  77. package/display/views/button/simple-image-button/SimpleImageButtonState.js.map +1 -1
  78. package/display/views/layout/BaseLayout.js +17 -22
  79. package/display/views/layout/BaseLayout.js.map +1 -1
  80. package/display/views/layout/ColumnLayout.js +12 -36
  81. package/display/views/layout/ColumnLayout.js.map +1 -1
  82. package/display/views/layout/LayoutConfig.js +3 -5
  83. package/display/views/layout/LayoutConfig.js.map +1 -1
  84. package/display/views/layout/MultiColumnLayout.js +10 -28
  85. package/display/views/layout/MultiColumnLayout.js.map +1 -1
  86. package/display/views/layout/MultiColumnLayoutConfig.js +2 -23
  87. package/display/views/layout/MultiColumnLayoutConfig.js.map +1 -1
  88. package/display/views/layout/RowLayout.js +12 -36
  89. package/display/views/layout/RowLayout.js.map +1 -1
  90. package/display/views/layout/container/BaseLayoutableContainer.js +6 -27
  91. package/display/views/layout/container/BaseLayoutableContainer.js.map +1 -1
  92. package/display/views/layout/container/ILayoutableChild.d.ts +1 -1
  93. package/display/views/resize/ResizableContainer.js +39 -76
  94. package/display/views/resize/ResizableContainer.js.map +1 -1
  95. package/display/views/simplelist/SimpleList.js +82 -123
  96. package/display/views/simplelist/SimpleList.js.map +1 -1
  97. package/display/views/simplelist/SimpleListEvent.js +1 -1
  98. package/display/views/simplelist/SimpleListEvent.js.map +1 -1
  99. package/display/views/sizedistributor/SizeDistributor.js +2 -6
  100. package/display/views/sizedistributor/SizeDistributor.js.map +1 -1
  101. package/display/views/sizedistributor/SizeDistributorConfig.js +3 -5
  102. package/display/views/sizedistributor/SizeDistributorConfig.js.map +1 -1
  103. package/display/views/togglegroup/ToggleGroup.js +74 -107
  104. package/display/views/togglegroup/ToggleGroup.js.map +1 -1
  105. package/display/views/togglegroup/ToggleGroupEvent.js +1 -1
  106. package/display/views/togglegroup/ToggleGroupEvent.js.map +1 -1
  107. package/display/views/viewstack/ViewLazyCreationServiceLocatorStack.js +6 -27
  108. package/display/views/viewstack/ViewLazyCreationServiceLocatorStack.js.map +1 -1
  109. package/display/views/viewstack/ViewLazyCreationStack.js +17 -42
  110. package/display/views/viewstack/ViewLazyCreationStack.js.map +1 -1
  111. package/display/views/viewstack/ViewStack.js +42 -75
  112. package/display/views/viewstack/ViewStack.js.map +1 -1
  113. package/display/views/viewstack/ViewStackLazyCreation.js +14 -39
  114. package/display/views/viewstack/ViewStackLazyCreation.js.map +1 -1
  115. package/ecs/ECSModule.js +5 -26
  116. package/ecs/ECSModule.js.map +1 -1
  117. package/ecs/ecs/entities/queries/EntitiesQuery.js +14 -38
  118. package/ecs/ecs/entities/queries/EntitiesQuery.js.map +1 -1
  119. package/ecs/ecs/entities/queries/EntitiesQueryEvent.js +1 -1
  120. package/ecs/ecs/entities/queries/EntitiesQueryEvent.js.map +1 -1
  121. package/ecs/ecs/systems/System.js +17 -38
  122. package/ecs/ecs/systems/System.js.map +1 -1
  123. package/ecs/managers/ECSManager.js +62 -111
  124. package/ecs/managers/ECSManager.js.map +1 -1
  125. package/ecs-rendermodule/ECSRenderModule.js +9 -30
  126. package/ecs-rendermodule/ECSRenderModule.js.map +1 -1
  127. package/ecs-rendermodule/data/RenderModuleRootContainerId.js +1 -1
  128. package/ecs-rendermodule/data/RenderModuleRootContainerId.js.map +1 -1
  129. package/ecs-rendermodule/ecs/components/RenderComponent.d.ts +1 -1
  130. package/ecs-rendermodule/ecs/components/RenderComponent.js +2 -2
  131. package/ecs-rendermodule/ecs/components/RenderComponent.js.map +1 -1
  132. package/ecs-rendermodule/ecs/systems/RenderSystem.js +17 -35
  133. package/ecs-rendermodule/ecs/systems/RenderSystem.js.map +1 -1
  134. package/events/commands/DispatchGlobalEventCommand.js +8 -27
  135. package/events/commands/DispatchGlobalEventCommand.js.map +1 -1
  136. package/facade/Facade.js +49 -72
  137. package/facade/Facade.js.map +1 -1
  138. package/globaleventdispatcher/GlobalEventDispatcherModule.js +5 -26
  139. package/globaleventdispatcher/GlobalEventDispatcherModule.js.map +1 -1
  140. package/globaleventdispatcher/commands/WaitGlobalEventCommand.js +11 -31
  141. package/globaleventdispatcher/commands/WaitGlobalEventCommand.js.map +1 -1
  142. package/globaleventdispatcher/dispatcher/GlobalEventDispatcher.js +17 -51
  143. package/globaleventdispatcher/dispatcher/GlobalEventDispatcher.js.map +1 -1
  144. package/globaleventdispatcher/dispatcher/GlobalEventDispatcherEvent.js +1 -1
  145. package/globaleventdispatcher/dispatcher/GlobalEventDispatcherEvent.js.map +1 -1
  146. package/globaleventdispatcher/managers/GlobalEventsCommandManager.js +8 -41
  147. package/globaleventdispatcher/managers/GlobalEventsCommandManager.js.map +1 -1
  148. package/hints/commands/AnimateHintCommand.js +19 -39
  149. package/hints/commands/AnimateHintCommand.js.map +1 -1
  150. package/hints/data/DefaultHintConfig.js +3 -5
  151. package/hints/data/DefaultHintConfig.js.map +1 -1
  152. package/hints/data/HintContainerId.js +1 -1
  153. package/hints/data/HintContainerId.js.map +1 -1
  154. package/html/HTMLModule.js +5 -26
  155. package/html/HTMLModule.js.map +1 -1
  156. package/html/managers/HTMLManager.js +19 -38
  157. package/html/managers/HTMLManager.js.map +1 -1
  158. package/init/commands/InitApplicationCommand.js +5 -23
  159. package/init/commands/InitApplicationCommand.js.map +1 -1
  160. package/init/commands/InitApplicationDataCommand.js +7 -28
  161. package/init/commands/InitApplicationDataCommand.js.map +1 -1
  162. package/init/commands/InitApplicationDataEvent.js +1 -1
  163. package/init/commands/InitApplicationDataEvent.js.map +1 -1
  164. package/init/events/InitApplicationEvent.js +1 -1
  165. package/init/events/InitApplicationEvent.js.map +1 -1
  166. package/load/LoadModule.js +11 -31
  167. package/load/LoadModule.js.map +1 -1
  168. package/local-storage/LocalStorageModule.js +5 -26
  169. package/local-storage/LocalStorageModule.js.map +1 -1
  170. package/local-storage/LocalStorageModuleConfig.js +1 -1
  171. package/local-storage/LocalStorageModuleConfig.js.map +1 -1
  172. package/local-storage/managers/LocalStorageManager.js +23 -44
  173. package/local-storage/managers/LocalStorageManager.js.map +1 -1
  174. package/locales/LocalesModule.js +5 -26
  175. package/locales/LocalesModule.js.map +1 -1
  176. package/locales/commands/ParseLocaleConfigCommand.js +9 -30
  177. package/locales/commands/ParseLocaleConfigCommand.js.map +1 -1
  178. package/package.json +1 -1
  179. package/pages/PagesModule.js +5 -26
  180. package/pages/PagesModule.js.map +1 -1
  181. package/pages/commands/ChangePageCommand.js +7 -26
  182. package/pages/commands/ChangePageCommand.js.map +1 -1
  183. package/pages/data/state/PagesModuleState.d.ts +1 -1
  184. package/pages/data/state/PagesModuleState.js +1 -1
  185. package/pages/data/state/PagesModuleState.js.map +1 -1
  186. package/pages/views/BasePageView.js +32 -63
  187. package/pages/views/BasePageView.js.map +1 -1
  188. package/pages/views/PagesMediator.js +7 -28
  189. package/pages/views/PagesMediator.js.map +1 -1
  190. package/pages/views/PagesView.js +17 -43
  191. package/pages/views/PagesView.js.map +1 -1
  192. package/pool/ObjectsPoolModule.js +5 -26
  193. package/pool/ObjectsPoolModule.js.map +1 -1
  194. package/preloader-page/data/PreloaderPageId.js +1 -1
  195. package/preloader-page/data/PreloaderPageId.js.map +1 -1
  196. package/renderer/RendererModule.js +5 -26
  197. package/renderer/RendererModule.js.map +1 -1
  198. package/renderer/data/RendererManagerConfigVO.js +3 -5
  199. package/renderer/data/RendererManagerConfigVO.js.map +1 -1
  200. package/renderer/events/RendererManagerEvent.js +1 -1
  201. package/renderer/events/RendererManagerEvent.js.map +1 -1
  202. package/renderer/managers/RendererManager.js +14 -43
  203. package/renderer/managers/RendererManager.js.map +1 -1
  204. package/size/tools/ViewWithSizeAreaTools.js +4 -8
  205. package/size/tools/ViewWithSizeAreaTools.js.map +1 -1
  206. package/sounds/SoundsModule.js +9 -30
  207. package/sounds/SoundsModule.js.map +1 -1
  208. package/sounds/SoundsSettings.js +1 -1
  209. package/sounds/SoundsSettings.js.map +1 -1
  210. package/sounds/managers/BackgroundMusicManager.js +13 -32
  211. package/sounds/managers/BackgroundMusicManager.js.map +1 -1
  212. package/sounds/managers/SoundsStorageManager.js +15 -40
  213. package/sounds/managers/SoundsStorageManager.js.map +1 -1
  214. package/state/AppStateModule.js +11 -32
  215. package/state/AppStateModule.js.map +1 -1
  216. package/state/data/AppStateStorage.js +80 -125
  217. package/state/data/AppStateStorage.js.map +1 -1
  218. package/state/data/DeepKeyTypings.d.ts +6 -6
  219. package/state/data/DeepReadableTypings.d.ts +1 -1
  220. package/state/tools/AppStateDeepKeyTools.js +25 -35
  221. package/state/tools/AppStateDeepKeyTools.js.map +1 -1
  222. package/state/tools/AppStateEventChangeTools.js +5 -9
  223. package/state/tools/AppStateEventChangeTools.js.map +1 -1
  224. package/strategy/managers/BaseStrategyManager.js +5 -26
  225. package/strategy/managers/BaseStrategyManager.js.map +1 -1
  226. package/strategy/models/BaseStrategyModel.js +21 -44
  227. package/strategy/models/BaseStrategyModel.js.map +1 -1
  228. package/strategy/strategies/BaseStrategy.js +7 -28
  229. package/strategy/strategies/BaseStrategy.js.map +1 -1
  230. package/time/TimeModule.js +5 -26
  231. package/time/TimeModule.js.map +1 -1
  232. package/time/data/state/TimeModuleAppState.d.ts +1 -1
  233. package/time/data/state/TimeModuleAppState.js +1 -1
  234. package/time/data/state/TimeModuleAppState.js.map +1 -1
  235. package/time/managers/TimeManager.js +16 -35
  236. package/time/managers/TimeManager.js.map +1 -1
  237. package/windows/managers/WindowsManager.js +24 -44
  238. package/windows/managers/WindowsManager.js.map +1 -1
  239. package/windows/views/BaseWindow.js +11 -36
  240. package/windows/views/BaseWindow.js.map +1 -1
package/app/AppModule.js CHANGED
@@ -1,41 +1,22 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- if (typeof b !== "function" && b !== null)
10
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
1
  import { serviceLocatorAdd } from "@flashist/flibs";
17
2
  import { ObjectTools } from '@flashist/fcore';
18
3
  import { BaseAppModule } from "../base/modules/BaseAppModule";
19
4
  import { AppManager } from "./managers/AppManager";
20
5
  import { AppModuleInitialState } from './data/state/AppModuleState';
21
6
  import { appStorage } from "../state/AppStateModule";
22
- var AppModule = /** @class */ (function (_super) {
23
- __extends(AppModule, _super);
24
- function AppModule(debug) {
25
- var _this = _super.call(this) || this;
26
- _this.debug = debug;
27
- return _this;
7
+ export class AppModule extends BaseAppModule {
8
+ constructor(debug) {
9
+ super();
10
+ this.debug = debug;
28
11
  }
29
- AppModule.prototype.init = function () {
30
- _super.prototype.init.call(this);
12
+ init() {
13
+ super.init();
31
14
  // Init the app with initial state
32
- var initState = ObjectTools.clone(AppModuleInitialState);
15
+ const initState = ObjectTools.clone(AppModuleInitialState);
33
16
  ObjectTools.copyProps(initState, { app: { debug: this.debug } });
34
17
  //
35
18
  appStorage().initializeWith(initState);
36
19
  serviceLocatorAdd(AppManager, { isSingleton: true, forceCreation: true });
37
- };
38
- return AppModule;
39
- }(BaseAppModule));
40
- export { AppModule };
20
+ }
21
+ }
41
22
  //# sourceMappingURL=AppModule.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AppModule.js","sourceRoot":"","sources":["../../src/app/AppModule.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,OAAO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c;QAChC,KAAK,EAAE,CAAC;QADU,UAAK,GAAL,KAAK,CAAS;IAEpC,CAAC;IAED,IAAI;QACA,KAAK,CAAC,IAAI,EAAE,CAAC;QAEb,kCAAkC;QAClC,MAAM,SAAS,GAAmB,WAAW,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;QAC3E,WAAW,CAAC,SAAS,CAAC,SAAS,EAAE,EAAE,GAAG,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,EAAE,CAAC,CAAA;QAChE,EAAE;QACF,UAAU,EAAE,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;QAEvC,iBAAiB,CAAC,UAAU,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC;IAC9E,CAAC;CACJ"}
@@ -1,4 +1,4 @@
1
- export var AppSettings = {
1
+ export const AppSettings = {
2
2
  storageParamId: "appModel",
3
3
  appConfigPath: "assets/app-config.json",
4
4
  assetsConfigFileId: "assetsConfigFile",
@@ -1 +1 @@
1
- {"version":3,"file":"AppSettings.js","sourceRoot":"","sources":["../../src/app/AppSettings.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,WAAW,GAAG;IACvB,cAAc,EAAE,UAAU;IAE1B,aAAa,EAAE,wBAAwB;IAEvC,kBAAkB,EAAE,kBAAkB;IACtC,kBAAkB,EAAE,kBAAkB;IACtC,iBAAiB,EAAE,iBAAiB;CACvC,CAAC"}
1
+ {"version":3,"file":"AppSettings.js","sourceRoot":"","sources":["../../src/app/AppSettings.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG;IACvB,cAAc,EAAE,UAAU;IAE1B,aAAa,EAAE,wBAAwB;IAEvC,kBAAkB,EAAE,kBAAkB;IACtC,kBAAkB,EAAE,kBAAkB;IACtC,iBAAiB,EAAE,iBAAiB;CACvC,CAAC"}
@@ -1,42 +1,22 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- if (typeof b !== "function" && b !== null)
10
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
1
  import { CommandErrorCode } from "@flashist/fcore";
17
2
  import { getInstance, LoadItemCommand, LoadItemsListCommand, LoadManager } from "@flashist/flibs";
18
3
  import { BaseAppCommand } from "../../base/commands/BaseAppCommand";
19
4
  import { AppSettings } from "../AppSettings";
20
5
  import { appStorage } from "../../state/AppStateModule";
21
- var LoadAppConfigCommand = /** @class */ (function (_super) {
22
- __extends(LoadAppConfigCommand, _super);
23
- function LoadAppConfigCommand() {
24
- return _super !== null && _super.apply(this, arguments) || this;
25
- }
26
- LoadAppConfigCommand.prototype.executeInternal = function () {
27
- var _this = this;
6
+ export class LoadAppConfigCommand extends BaseAppCommand {
7
+ executeInternal() {
28
8
  // const appConfigModel: AppConfigModel = getInstance(AppConfigModel);
29
9
  new LoadItemCommand({
30
10
  src: AppSettings.appConfigPath,
31
11
  id: AppSettings.appConfigPath
32
12
  })
33
13
  .execute()
34
- .then(function (data) {
14
+ .then((data) => {
35
15
  console.log("LoadAppConfigCommand | executeInternal __ data: ", data);
36
16
  appStorage().change()("app.config", data);
37
17
  //
38
- var appState = appStorage().getState();
39
- var loadManager = getInstance(LoadManager);
18
+ const appState = appStorage().getState();
19
+ const loadManager = getInstance(LoadManager);
40
20
  loadManager.addSubstituteParams({
41
21
  locale: appState.app.config.locale
42
22
  });
@@ -46,16 +26,14 @@ var LoadAppConfigCommand = /** @class */ (function (_super) {
46
26
  new LoadItemsListCommand(appState.app.config.files)
47
27
  .execute();
48
28
  }
49
- _this.notifyComplete();
50
- }, function () {
51
- var errorText = "LoadAppConfigCommand | executeInternal __ ERROR! Can't load the app-config.json file!";
29
+ this.notifyComplete();
30
+ }, () => {
31
+ const errorText = "LoadAppConfigCommand | executeInternal __ ERROR! Can't load the app-config.json file!";
52
32
  console.error(errorText);
53
33
  alert(errorText);
54
- _this.errorCode = CommandErrorCode.GENERAL_ERROR;
55
- _this.terminate();
34
+ this.errorCode = CommandErrorCode.GENERAL_ERROR;
35
+ this.terminate();
56
36
  });
57
- };
58
- return LoadAppConfigCommand;
59
- }(BaseAppCommand));
60
- export { LoadAppConfigCommand };
37
+ }
38
+ }
61
39
  //# sourceMappingURL=LoadAppConfigCommand.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LoadAppConfigCommand.js","sourceRoot":"","sources":["../../../src/app/commands/LoadAppConfigCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EACH,WAAW,EACX,eAAe,EACf,oBAAoB,EACpB,WAAW,EACd,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAGxD;IAA0C,wCAAc;IAAxD;;IAiDA,CAAC;IA/Ca,8CAAe,GAAzB;QAAA,iBA6CC;QA5CG,sEAAsE;QACtE,IAAI,eAAe,CACf;YACI,GAAG,EAAE,WAAW,CAAC,aAAa;YAC9B,EAAE,EAAE,WAAW,CAAC,aAAa;SAChC,CACJ;aACI,OAAO,EAAE;aACT,IAAI,CACD,UAAC,IAAS;YACN,OAAO,CAAC,GAAG,CAAC,kDAAkD,EAAE,IAAI,CAAC,CAAC;YAEtE,UAAU,EAAE,CAAC,MAAM,EAAkB,CACj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IAE1C,eAAe;QACrB,sEAAsE;QACtE,IAAI,eAAe,CACf;YACI,GAAG,EAAE,WAAW,CAAC,aAAa;YAC9B,EAAE,EAAE,WAAW,CAAC,aAAa;SAChC,CACJ;aACI,OAAO,EAAE;aACT,IAAI,CACD,CAAC,IAAS,EAAE,EAAE;YACV,OAAO,CAAC,GAAG,CAAC,kDAAkD,EAAE,IAAI,CAAC,CAAC;YAEtE,UAAU,EAAE,CAAC,MAAM,EAAkB,CACjC,YAAY,EACZ,IAAI,CACP,CAAC;YAEF,EAAE;YACF,MAAM,QAAQ,GAAG,UAAU,EAAE,CAAC,QAAQ,EAAkB,CAAC;YACzD,MAAM,WAAW,GAAgB,WAAW,CAAC,WAAW,CAAC,CAAC;YAC1D,WAAW,CAAC,mBAAmB,CAC3B;gBACI,MAAM,EAAE,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM;aACrC,CACJ,CAAC;YAEF,EAAE;YACF,IAAI,IAAI,CAAC,KAAK,EAAE;gBACZ,mDAAmD;gBACnD,IAAI,oBAAoB,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,KAAY,CAAC;qBACrD,OAAO,EAAE,CAAC;aAClB;YAED,IAAI,CAAC,cAAc,EAAE,CAAC;QAC1B,CAAC,EACD,GAAG,EAAE;YACD,MAAM,SAAS,GAAW,uFAAuF,CAAC;YAClH,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;YACzB,KAAK,CAAC,SAAS,CAAC,CAAC;YAEjB,IAAI,CAAC,SAAS,GAAG,gBAAgB,CAAC,aAAa,CAAC;YAChD,IAAI,CAAC,SAAS,EAAE,CAAC;QACrB,CAAC,CACJ,CAAC;IACV,CAAC;CAEJ"}
@@ -1,42 +1,22 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- if (typeof b !== "function" && b !== null)
10
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
1
  import { CommandErrorCode } from "@flashist/fcore";
17
2
  import { GenericObjectsByTypeModel, getInstance, LoadManager } from "@flashist/flibs";
18
3
  import { BaseAppCommand } from "../../base/commands/BaseAppCommand";
19
4
  import { ECSManager } from "../../ecs/managers/ECSManager";
20
5
  import { AppSettings } from "../AppSettings";
21
6
  // import {IItemsConfigVO} from "../data/IItemsConfigVO";
22
- var ParseStaticItemsConfigCommand = /** @class */ (function (_super) {
23
- __extends(ParseStaticItemsConfigCommand, _super);
24
- function ParseStaticItemsConfigCommand() {
25
- return _super !== null && _super.apply(this, arguments) || this;
26
- }
27
- ParseStaticItemsConfigCommand.prototype.executeInternal = function () {
28
- var loadManager = getInstance(LoadManager);
29
- var staticItemsConfigFileItem = loadManager.getLoadItem(AppSettings.staticItemsFileId);
7
+ export class ParseStaticItemsConfigCommand extends BaseAppCommand {
8
+ executeInternal() {
9
+ let loadManager = getInstance(LoadManager);
10
+ let staticItemsConfigFileItem = loadManager.getLoadItem(AppSettings.staticItemsFileId);
30
11
  if (staticItemsConfigFileItem && staticItemsConfigFileItem.data) {
31
12
  if (staticItemsConfigFileItem.data) {
32
- var ecsManager = getInstance(ECSManager);
33
- var staticItems = staticItemsConfigFileItem.data;
34
- for (var _i = 0, staticItems_1 = staticItems; _i < staticItems_1.length; _i++) {
35
- var singleStaticItem = staticItems_1[_i];
13
+ const ecsManager = getInstance(ECSManager);
14
+ const staticItems = staticItemsConfigFileItem.data;
15
+ for (let singleStaticItem of staticItems) {
36
16
  ecsManager.entities.add(singleStaticItem);
37
17
  }
38
18
  if (staticItemsConfigFileItem.data.items) {
39
- var genericObjectsByTypeModel = getInstance(GenericObjectsByTypeModel);
19
+ const genericObjectsByTypeModel = getInstance(GenericObjectsByTypeModel);
40
20
  genericObjectsByTypeModel.commitItems(staticItemsConfigFileItem.data.items);
41
21
  }
42
22
  }
@@ -47,8 +27,6 @@ var ParseStaticItemsConfigCommand = /** @class */ (function (_super) {
47
27
  this.errorCode = CommandErrorCode.GENERAL_ERROR;
48
28
  this.terminate();
49
29
  }
50
- };
51
- return ParseStaticItemsConfigCommand;
52
- }(BaseAppCommand));
53
- export { ParseStaticItemsConfigCommand };
30
+ }
31
+ }
54
32
  //# sourceMappingURL=ParseStaticItemsConfigCommand.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ParseStaticItemsConfigCommand.js","sourceRoot":"","sources":["../../../src/app/commands/ParseStaticItemsConfigCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAoB,yBAAyB,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAExG,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAEpE,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,yDAAyD;AAEzD;IAAmD,iDAAc;IAAjE;;IA+BA,CAAC;IA7Ba,uDAAe,GAAzB;QAEI,IAAI,WAAW,GAAgB,WAAW,CAAC,WAAW,CAAC,CAAC;QACxD,IAAI,yBAAyB,GAAqB,WAAW,CAAC,WAAW,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC;QACzG,IAAI,yBAAyB,IAAI,yBAAyB,CAAC,IAAI,EAAE;YAE7D,IAAI,yBAAyB,CAAC,IAAI,EAAE;gBAChC,IAAM,UAAU,GAAe,WAAW,CAAC,UAAU,CAAC,CAAC;gBACvD,IAAM,WAAW,GAAc,y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AW,CAAC,iBAAiB,CAAC,CAAC;QACzG,IAAI,yBAAyB,IAAI,yBAAyB,CAAC,IAAI,EAAE;YAE7D,IAAI,yBAAyB,CAAC,IAAI,EAAE;gBAChC,MAAM,UAAU,GAAe,WAAW,CAAC,UAAU,CAAC,CAAC;gBACvD,MAAM,WAAW,GAAc,yBAAyB,CAAC,IAAI,CAAC;gBAC9D,KAAK,IAAI,gBAAgB,IAAI,WAAW,EAAE;oBACtC,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;iBAC7C;gBAED,IAAI,yBAAyB,CAAC,IAAI,CAAC,KAAK,EAAE;oBACtC,MAAM,yBAAyB,GAA8B,WAAW,CAAC,yBAAyB,CAAC,CAAC;oBACpG,yBAAyB,CAAC,WAAW,CAAC,yBAAyB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;iBAC/E;aACJ;YAED,IAAI,CAAC,cAAc,EAAE,CAAC;SAEzB;aAAM;YACH,OAAO,CAAC,KAAK,CAAC,6EAA6E,CAAC,CAAC;YAC7F,IAAI,CAAC,SAAS,GAAG,gBAAgB,CAAC,aAAa,CAAC;YAChD,IAAI,CAAC,SAAS,EAAE,CAAC;SACpB;IAEL,CAAC;CAEJ"}
@@ -16,4 +16,4 @@ export declare const AppModuleInitialState: {
16
16
  };
17
17
  };
18
18
  };
19
- export declare type AppModuleState = typeof AppModuleInitialState;
19
+ export type AppModuleState = typeof AppModuleInitialState;
@@ -1,4 +1,4 @@
1
- export var AppModuleInitialState = {
1
+ export const AppModuleInitialState = {
2
2
  app: {
3
3
  debug: false,
4
4
  appLaunchesCount: 0,
@@ -1 +1 @@
1
- {"version":3,"file":"AppModuleState.js","sourceRoot":"","sources":["../../../../src/app/data/state/AppModuleState.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,IAAM,qBAAqB,GAAG;IACjC,GAAG,EAAE;QACD,KAAK,EAAE,KAAK;QAEZ,gBAAgB,EAAE,CAAC;QACnB,kBAAkB,EAAE,CAAC;QAErB,gBAAgB,EAAE,CAAC;QACnB,6BAA6B,EAAE,CAAC;QAEhC,MAAM,EAAE;YACJ,OAAO,EAAE,IAAI;YACb,UAAU,EAAE,IAAI;YAChB,KAAK,EAAE,IAAI;YACX,MAAM,EAAE,IAAI;YACZ,SAAS,EAAE,IAAI;YACf,QAAQ,EAAE;gBACN,CAAC,EAAE,CAAC;gBACJ,CAAC,EAAE,CAAC;gBACJ,KAAK,EAAE,IAAI;gBACX,MAAM,EAAE,IAAI;aACF;SACjB;KACJ;CACJ,CAAC"}
1
+ {"version":3,"file":"AppModuleState.js","sourceRoot":"","sources":["../../../../src/app/data/state/AppModuleState.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACjC,GAAG,EAAE;QACD,KAAK,EAAE,KAAK;QAEZ,gBAAgB,EAAE,CAAC;QACnB,kBAAkB,EAAE,CAAC;QAErB,gBAAgB,EAAE,CAAC;QACnB,6BAA6B,EAAE,CAAC;QAEhC,MAAM,EAAE;YACJ,OAAO,EAAE,IAAI;YACb,UAAU,EAAE,IAAI;YAChB,KAAK,EAAE,IAAI;YACX,MAAM,EAAE,IAAI;YACZ,SAAS,EAAE,IAAI;YACf,QAAQ,EAAE;gBACN,CAAC,EAAE,CAAC;gBACJ,CAAC,EAAE,CAAC;gBACJ,KAAK,EAAE,IAAI;gBACX,MAAM,EAAE,IAAI;aACF;SACjB;KACJ;CACJ,CAAC"}
@@ -1,38 +1,14 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- if (typeof b !== "function" && b !== null)
10
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
1
  import { getInstance } from "@flashist/flibs";
17
2
  import { BaseAppManager } from "../../base/managers/BaseAppManager";
18
3
  import { LocalStorageManager } from "../../local-storage/managers/LocalStorageManager";
19
4
  import { appStorage } from "../../state/AppStateModule";
20
5
  import { AppSettings } from "../AppSettings";
21
- var AppManager = /** @class */ (function (_super) {
22
- __extends(AppManager, _super);
23
- function AppManager() {
24
- return _super !== null && _super.apply(this, arguments) || this;
25
- }
26
- AppManager.prototype.construction = function () {
27
- var _this = this;
28
- var args = [];
29
- for (var _i = 0; _i < arguments.length; _i++) {
30
- args[_i] = arguments[_i];
31
- }
32
- _super.prototype.construction.call(this, args);
6
+ export class AppManager extends BaseAppManager {
7
+ construction(...args) {
8
+ super.construction(args);
33
9
  this.storageManager = getInstance(LocalStorageManager);
34
10
  this.appState = appStorage().getState();
35
- var appModelStorageData = this.storageManager.getParam(AppSettings.storageParamId);
11
+ const appModelStorageData = this.storageManager.getParam(AppSettings.storageParamId);
36
12
  this.applyStorageData(appModelStorageData);
37
13
  // this.appState.app.previousSessionTotalUsageTime = this.appState.app.totalUsageDuration;
38
14
  // this.appState.app.sessionStartTime = Date.now();
@@ -44,21 +20,21 @@ var AppManager = /** @class */ (function (_super) {
44
20
  appLaunchesCount: this.appState.app.appLaunchesCount + 1
45
21
  });
46
22
  this.updateStorageData();
47
- this.updateTimeInterval = setInterval(function () {
48
- _this.updateUsageTime();
23
+ this.updateTimeInterval = setInterval(() => {
24
+ this.updateUsageTime();
49
25
  },
50
26
  // 1 min
51
27
  1000 * 60);
52
- };
53
- AppManager.prototype.updateUsageTime = function () {
54
- var sessionTimeDelta = Date.now() - this.appState.app.sessionStartTime;
28
+ }
29
+ updateUsageTime() {
30
+ let sessionTimeDelta = Date.now() - this.appState.app.sessionStartTime;
55
31
  // this.appState.app.totalUsageDuration = this.appState.app.previousSessionTotalUsageTime + sessionTimeDelta;
56
32
  appStorage().change()("app", {
57
33
  totalUsageDuration: this.appState.app.previousSessionTotalUsageTime + sessionTimeDelta
58
34
  });
59
35
  this.updateStorageData();
60
- };
61
- AppManager.prototype.applyStorageData = function (data) {
36
+ }
37
+ applyStorageData(data) {
62
38
  if (!data) {
63
39
  return;
64
40
  }
@@ -68,18 +44,16 @@ var AppManager = /** @class */ (function (_super) {
68
44
  appLaunchesCount: data.appLaunchesCount,
69
45
  totalUsageDuration: data.totalUsageTime
70
46
  });
71
- };
72
- AppManager.prototype.updateStorageData = function () {
73
- var storageData = this.generateStorageData();
47
+ }
48
+ updateStorageData() {
49
+ const storageData = this.generateStorageData();
74
50
  this.storageManager.setParam(AppSettings.storageParamId, storageData);
75
- };
76
- AppManager.prototype.generateStorageData = function () {
51
+ }
52
+ generateStorageData() {
77
53
  return {
78
54
  appLaunchesCount: this.appState.app.appLaunchesCount,
79
55
  totalUsageTime: this.appState.app.totalUsageDuration
80
56
  };
81
- };
82
- return AppManager;
83
- }(BaseAppManager));
84
- export { AppManager };
57
+ }
58
+ }
85
59
  //# sourceMappingURL=AppManager.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AppManager.js","sourceRoot":"","sources":["../../../src/app/managers/AppManager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kDAAkD,CAAC;AACvF,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAExD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAI7C;IAAgC,8BAAc;IAA9C;;IAgFA,CAAC;IAzEa,iCAAY,GAAtB;QAAA,iBA8BC;QA9BsB,cAAO;aAAP,UAAO,EAAP,qBAAO,EAAP,IAAO;YAAP,yBAAO;;QAC1B,iBAAM,YAAY,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J,CAAC;IACN,CAAC;IAES,iBAAiB;QACvB,MAAM,WAAW,GAA4B,IAAI,CAAC,mBAAmB,EAAE,CAAC;QACxE,IAAI,CAAC,cAAc,CAAC,QAAQ,CAA0B,WAAW,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;IACnG,CAAC;IAES,mBAAmB;QACzB,OAAO;YACH,gBAAgB,EAAE,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,gBAAgB;YACpD,cAAc,EAAE,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,kBAAkB;SACvD,CAAC;IACN,CAAC;CACJ"}
@@ -1,54 +1,29 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- if (typeof b !== "function" && b !== null)
10
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
1
  import { PagesView } from "../../pages/views/PagesView";
17
2
  import { BaseAppView } from "../../base/views/BaseAppView";
18
3
  import { Graphics } from '@flashist/flibs';
19
4
  import { AppMainContainerEvent } from "./AppMainContainerEvent";
20
- var AppMainContainer = /** @class */ (function (_super) {
21
- __extends(AppMainContainer, _super);
22
- function AppMainContainer() {
23
- return _super !== null && _super.apply(this, arguments) || this;
24
- }
25
- AppMainContainer.prototype.construction = function () {
26
- var args = [];
27
- for (var _i = 0; _i < arguments.length; _i++) {
28
- args[_i] = arguments[_i];
29
- }
30
- _super.prototype.construction.apply(this, args);
5
+ export class AppMainContainer extends BaseAppView {
6
+ construction(...args) {
7
+ super.construction(...args);
31
8
  this.bg = this.createBg();
32
9
  this.addChild(this.bg);
33
10
  this.pagesView = new PagesView();
34
11
  this.addChild(this.pagesView);
35
- };
36
- AppMainContainer.prototype.arrange = function () {
37
- _super.prototype.arrange.call(this);
12
+ }
13
+ arrange() {
14
+ super.arrange();
38
15
  this.globalDispatcher.dispatchEvent(AppMainContainerEvent.PRE_RESIZE);
39
16
  // Make the bg a bit bigger to cover the whole screen 100%
40
17
  this.bg.width = this.resizeSize.x + 2;
41
18
  this.bg.height = this.resizeSize.y + 2;
42
19
  this.pagesView.resize(this.resizeSize.x, this.resizeSize.y);
43
20
  this.globalDispatcher.dispatchEvent(AppMainContainerEvent.POST_RESIZE);
44
- };
45
- AppMainContainer.prototype.createBg = function () {
46
- var result = new Graphics();
21
+ }
22
+ createBg() {
23
+ let result = new Graphics();
47
24
  result.beginFill(0xFFFFFF, 0);
48
25
  result.drawRect(0, 0, 10, 10);
49
26
  return result;
50
- };
51
- return AppMainContainer;
52
- }(BaseAppView));
53
- export { AppMainContainer };
27
+ }
28
+ }
54
29
  //# sourceMappingURL=AppMainContainer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AppMainContainer.js","sourceRoot":"","sources":["../../../src/app/views/AppMainContainer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAExD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAA0B,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAC,qBAAqB,EAAC,MAAM,yBAAyB,CAAC;AAE9D;IAAsC,oCAAW;IAAjD;;IAuCA,CAAC;IAlCa,uCAAY,GAAtB;QAAuB,cAAO;aAAP,UAAO,EAAP,qBAAO,EAAP,IAAO;YAAP,yBAAO;;QAC1B,iBAAM,YAAY,aAAI,IAAI,EAAE;QAE5B,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;QAC1B,IAAI,CA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,CAAC;CACJ"}
@@ -1,29 +1,10 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- if (typeof b !== "function" && b !== null)
10
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
1
  import { getInstance, LoadItemsListCommand, LoadManager } from "@flashist/flibs";
17
2
  import { BaseAppCommand } from "../../base/commands/BaseAppCommand";
18
3
  import { AppSettings } from "../../app/AppSettings";
19
- var ParseAssetsConfigCommand = /** @class */ (function (_super) {
20
- __extends(ParseAssetsConfigCommand, _super);
21
- function ParseAssetsConfigCommand() {
22
- return _super !== null && _super.apply(this, arguments) || this;
23
- }
24
- ParseAssetsConfigCommand.prototype.executeInternal = function () {
25
- var loadManager = getInstance(LoadManager);
26
- var assetsConfigFileLoadItem = loadManager.getLoadItem(AppSettings.assetsConfigFileId);
4
+ export class ParseAssetsConfigCommand extends BaseAppCommand {
5
+ executeInternal() {
6
+ let loadManager = getInstance(LoadManager);
7
+ let assetsConfigFileLoadItem = loadManager.getLoadItem(AppSettings.assetsConfigFileId);
27
8
  if (assetsConfigFileLoadItem && assetsConfigFileLoadItem.data) {
28
9
  if (assetsConfigFileLoadItem.data.files) {
29
10
  new LoadItemsListCommand(assetsConfigFileLoadItem.data.files)
@@ -35,8 +16,6 @@ var ParseAssetsConfigCommand = /** @class */ (function (_super) {
35
16
  console.error("ParseAssetsConfigCommand | executeInternal __ ERROR! Can't find config file!");
36
17
  this.terminate();
37
18
  }
38
- };
39
- return ParseAssetsConfigCommand;
40
- }(BaseAppCommand));
41
- export { ParseAssetsConfigCommand };
19
+ }
20
+ }
42
21
  //# sourceMappingURL=ParseAssetsConfigCommand.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ParseAssetsConfigCommand.js","sourceRoot":"","sources":["../../../src/assets/commands/ParseAssetsConfigCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAmB,WAAW,EAAE,oBAAoB,EAAE,WAAW,EAAC,MAAM,iBAAiB,CAAC;AAEjG,OAAO,EAAC,cAAc,EAAC,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAElD;IAA8C,4CAAc;IAA5D;;IAmBA,CAAC;IAjBa,kDAAe,GAAzB;QACI,IAAI,WAAW,GAAgB,WAAW,CAAC,WAAW,CAAC,CAAC;QACxD,IAAI,wBAAwB,GAAqB,WAAW,CAAC,WAAW,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC;QAEzG,IAAI,wBAAwB,IAAI,wBAAwB,CAAC,IAAI,EAAE;YAC3D,IAAI,wBAAwB,CAAC,IAAI,CAAC,KAAK,EAAE;gBACrC,IAAI,oBAAoB,CAAC,wBAAwB,CAAC,IAAI,CAAC,KAAK,CAAC;qBACxD,OAAO,EAAE,CAAC;aAClB;YAED,IAAI,CAAC,cAAc,EAAE,CAAC;SAEzB;aAAM;YACH,OAAO,CAAC,KAAK,CAAC,8EAA8E,CAAC,CAAC;YAC9F,IAAI,CAAC,SAAS,EAAE,CAAC;SACpB;IACL,CAAC;IACL,+BAAC;AAAD,CAAC,AAnBD,CAA8C,cAAc,GAmB3D"}
1
+ {"version":3,"file":"ParseAssetsConfigCommand.js","sourceRoot":"","sources":["../../../src/assets/commands/ParseAssetsConfigCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,WAAW,EAAE,oBAAoB,EAAE,WAAW,EAAC,MAAM,iBAAiB,CAAC;AAEjG,OAAO,EAAC,cAAc,EAAC,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAElD,MAAM,OAAO,wBAAyB,SAAQ,cAAc;IAE9C,eAAe;QACrB,IAAI,WAAW,GAAgB,WAAW,CAAC,WAAW,CAAC,CAAC;QACxD,IAAI,wBAAwB,GAAqB,WAAW,CAAC,WAAW,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC;QAEzG,IAAI,wBAAwB,IAAI,wBAAwB,CAAC,IAAI,EAAE;YAC3D,IAAI,wBAAwB,CAAC,IAAI,CAAC,KAAK,EAAE;gBACrC,IAAI,oBAAoB,CAAC,wBAAwB,CAAC,IAAI,CAAC,KAAK,CAAC;qBACxD,OAAO,EAAE,CAAC;aAClB;YAED,IAAI,CAAC,cAAc,EAAE,CAAC;SAEzB;aAAM;YACH,OAAO,CAAC,KAAK,CAAC,8EAA8E,CAAC,CAAC;YAC9F,IAAI,CAAC,SAAS,EAAE,CAAC;SACpB;IACL,CAAC;CACJ"}
@@ -1,54 +1,15 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- if (typeof b !== "function" && b !== null)
10
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
17
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
18
- if (ar || !(i in from)) {
19
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
20
- ar[i] = from[i];
21
- }
22
- }
23
- return to.concat(ar || Array.prototype.slice.call(from));
24
- };
25
1
  import { BaseObject } from "@flashist/fcore";
26
2
  import { getInstance } from "@flashist/flibs";
27
3
  import { GlobalEventDispatcher } from "../globaleventdispatcher/dispatcher/GlobalEventDispatcher";
28
- var BaseObjectWithGlobalDispatcher = /** @class */ (function (_super) {
29
- __extends(BaseObjectWithGlobalDispatcher, _super);
30
- function BaseObjectWithGlobalDispatcher() {
31
- return _super !== null && _super.apply(this, arguments) || this;
32
- }
33
- BaseObjectWithGlobalDispatcher.prototype.construction = function () {
34
- var args = [];
35
- for (var _i = 0; _i < arguments.length; _i++) {
36
- args[_i] = arguments[_i];
37
- }
38
- _super.prototype.construction.apply(this, args);
4
+ export class BaseObjectWithGlobalDispatcher extends BaseObject {
5
+ construction(...args) {
6
+ super.construction(...args);
39
7
  this.globalDispatcher = getInstance(GlobalEventDispatcher);
40
- };
41
- BaseObjectWithGlobalDispatcher.prototype.dispatchEvent = function (event) {
42
- var _a;
43
- var args = [];
44
- for (var _i = 1; _i < arguments.length; _i++) {
45
- args[_i - 1] = arguments[_i];
46
- }
47
- _super.prototype.dispatchEvent.apply(this, __spreadArray([event], args, false));
8
+ }
9
+ dispatchEvent(event, ...args) {
10
+ super.dispatchEvent(event, ...args);
48
11
  // Redispatch event to the global level
49
- (_a = this.globalDispatcher).dispatchEvent.apply(_a, __spreadArray([event], args, false));
50
- };
51
- return BaseObjectWithGlobalDispatcher;
52
- }(BaseObject));
53
- export { BaseObjectWithGlobalDispatcher };
12
+ this.globalDispatcher.dispatchEvent(event, ...args);
13
+ }
14
+ }
54
15
  //# sourceMappingURL=BaseObjectWithGlobalDispatcher.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BaseObjectWithGlobalDispatcher.js","sourceRoot":"","sources":["../../src/base/BaseObjectWithGlobalDispatcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAC,WAAW,EAAC,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,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,CAAC;IACxD,CAAC;CAEJ"}
@@ -1,54 +1,15 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- if (typeof b !== "function" && b !== null)
10
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
17
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
18
- if (ar || !(i in from)) {
19
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
20
- ar[i] = from[i];
21
- }
22
- }
23
- return to.concat(ar || Array.prototype.slice.call(from));
24
- };
25
1
  import { Command } from "@flashist/fcore";
26
2
  import { GlobalEventDispatcher } from "../../globaleventdispatcher/dispatcher/GlobalEventDispatcher";
27
3
  import { getInstance } from "@flashist/flibs";
28
- var BaseAppCommand = /** @class */ (function (_super) {
29
- __extends(BaseAppCommand, _super);
30
- function BaseAppCommand() {
31
- return _super !== null && _super.apply(this, arguments) || this;
32
- }
33
- BaseAppCommand.prototype.construction = function () {
34
- var args = [];
35
- for (var _i = 0; _i < arguments.length; _i++) {
36
- args[_i] = arguments[_i];
37
- }
38
- _super.prototype.construction.apply(this, args);
4
+ export class BaseAppCommand extends Command {
5
+ construction(...args) {
6
+ super.construction(...args);
39
7
  this.globalDispatcher = getInstance(GlobalEventDispatcher);
40
- };
41
- BaseAppCommand.prototype.dispatchEvent = function (event) {
42
- var _a;
43
- var args = [];
44
- for (var _i = 1; _i < arguments.length; _i++) {
45
- args[_i - 1] = arguments[_i];
46
- }
47
- _super.prototype.dispatchEvent.apply(this, __spreadArray([event], args, false));
8
+ }
9
+ dispatchEvent(event, ...args) {
10
+ super.dispatchEvent(event, ...args);
48
11
  // Redispatch event to the global level
49
- (_a = this.globalDispatcher).dispatchEvent.apply(_a, __spreadArray([event], args, false));
50
- };
51
- return BaseAppCommand;
52
- }(Command));
53
- export { BaseAppCommand };
12
+ this.globalDispatcher.dispatchEvent(event, ...args);
13
+ }
14
+ }
54
15
  //# sourceMappingURL=BaseAppCommand.js.map