@intuitionrobotics/thunderstorm 0.45.3 → 0.46.0

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 (224) hide show
  1. package/app-backend/api/v1/utils/version/_assert.js +0 -20
  2. package/app-backend/api/v1/utils/version/_assert.js.map +1 -1
  3. package/app-backend/api/v1/utils/version/assert.js +0 -20
  4. package/app-backend/api/v1/utils/version/assert.js.map +1 -1
  5. package/app-backend/core/BaseStorm.d.ts +1 -1
  6. package/app-backend/core/BaseStorm.js +2 -22
  7. package/app-backend/core/BaseStorm.js.map +1 -1
  8. package/app-backend/core/Storm.js +9 -27
  9. package/app-backend/core/Storm.js.map +1 -1
  10. package/app-backend/exceptions.d.ts +2 -2
  11. package/app-backend/exceptions.js +2 -22
  12. package/app-backend/exceptions.js.map +1 -1
  13. package/app-backend/modules/CleanupScheduler.js +5 -4
  14. package/app-backend/modules/CleanupScheduler.js.map +1 -1
  15. package/app-backend/modules/FirestoreBackupScheduler.d.ts +1 -1
  16. package/app-backend/modules/FirestoreBackupScheduler.js +23 -9
  17. package/app-backend/modules/FirestoreBackupScheduler.js.map +1 -1
  18. package/app-backend/modules/ForceUpgrade.d.ts +1 -1
  19. package/app-backend/modules/ForceUpgrade.js +8 -26
  20. package/app-backend/modules/ForceUpgrade.js.map +1 -1
  21. package/app-backend/modules/SlackModule.d.ts +2 -4
  22. package/app-backend/modules/SlackModule.js +9 -30
  23. package/app-backend/modules/SlackModule.js.map +1 -1
  24. package/app-backend/modules/http/AxiosHttpModule.js +3 -23
  25. package/app-backend/modules/http/AxiosHttpModule.js.map +1 -1
  26. package/app-backend/modules/proxy/RemoteProxy.d.ts +2 -1
  27. package/app-backend/modules/proxy/RemoteProxy.js +11 -30
  28. package/app-backend/modules/proxy/RemoteProxy.js.map +1 -1
  29. package/app-backend/modules/proxy/RemoteProxyCaller.d.ts +1 -1
  30. package/app-backend/modules/proxy/RemoteProxyCaller.js +11 -29
  31. package/app-backend/modules/proxy/RemoteProxyCaller.js.map +1 -1
  32. package/app-backend/modules/server/HttpServer.d.ts +2 -1
  33. package/app-backend/modules/server/HttpServer.js +9 -31
  34. package/app-backend/modules/server/HttpServer.js.map +1 -1
  35. package/app-backend/modules/server/server-api.d.ts +3 -1
  36. package/app-backend/modules/server/server-api.js +27 -25
  37. package/app-backend/modules/server/server-api.js.map +1 -1
  38. package/app-backend/modules/server/server-errors.d.ts +1 -1
  39. package/app-backend/modules/server/server-errors.js +7 -26
  40. package/app-backend/modules/server/server-errors.js.map +1 -1
  41. package/app-backend/utils/LogClient_File.d.ts +2 -2
  42. package/app-backend/utils/LogClient_File.js +12 -30
  43. package/app-backend/utils/LogClient_File.js.map +1 -1
  44. package/app-backend/utils/file.js +0 -20
  45. package/app-backend/utils/file.js.map +1 -1
  46. package/app-backend/utils/promisify-request.js +2 -22
  47. package/app-backend/utils/promisify-request.js.map +1 -1
  48. package/app-backend/utils/to-be-removed.js +0 -20
  49. package/app-backend/utils/to-be-removed.js.map +1 -1
  50. package/app-backend/utils/types.d.ts +1 -1
  51. package/app-backend/utils/types.js +2 -22
  52. package/app-backend/utils/types.js.map +1 -1
  53. package/app-frontend/components/ActionButton.js +0 -20
  54. package/app-frontend/components/ActionButton.js.map +1 -1
  55. package/app-frontend/components/DropDown.js +5 -24
  56. package/app-frontend/components/DropDown.js.map +1 -1
  57. package/app-frontend/components/FilterInput.js +4 -23
  58. package/app-frontend/components/FilterInput.js.map +1 -1
  59. package/app-frontend/components/GenericSelect.js +0 -20
  60. package/app-frontend/components/GenericSelect.js.map +1 -1
  61. package/app-frontend/components/Overlay.js +0 -20
  62. package/app-frontend/components/Overlay.js.map +1 -1
  63. package/app-frontend/components/TS_Input.js +3 -23
  64. package/app-frontend/components/TS_Input.js.map +1 -1
  65. package/app-frontend/components/TS_Table.d.ts +1 -1
  66. package/app-frontend/components/TS_Table.js +0 -20
  67. package/app-frontend/components/TS_Table.js.map +1 -1
  68. package/app-frontend/components/TS_TextArea.js +0 -20
  69. package/app-frontend/components/TS_TextArea.js.map +1 -1
  70. package/app-frontend/components/adapter/Adapter.js +6 -26
  71. package/app-frontend/components/adapter/Adapter.js.map +1 -1
  72. package/app-frontend/components/adapter/BaseRenderer.js +0 -20
  73. package/app-frontend/components/adapter/BaseRenderer.js.map +1 -1
  74. package/app-frontend/components/checkbox/TS_Checkbox.d.ts +2 -2
  75. package/app-frontend/components/checkbox/TS_Checkbox.js +2 -1
  76. package/app-frontend/components/checkbox/TS_Checkbox.js.map +1 -1
  77. package/app-frontend/components/checkbox/TS_CheckboxField.js +0 -18
  78. package/app-frontend/components/checkbox/TS_CheckboxField.js.map +1 -1
  79. package/app-frontend/components/form/Form.d.ts +2 -1
  80. package/app-frontend/components/form/Form.js +2 -22
  81. package/app-frontend/components/form/Form.js.map +1 -1
  82. package/app-frontend/components/form/types.d.ts +2 -1
  83. package/app-frontend/components/form/types.js +0 -20
  84. package/app-frontend/components/form/types.js.map +1 -1
  85. package/app-frontend/components/playground/Example_NewProps.js +0 -20
  86. package/app-frontend/components/playground/Example_NewProps.js.map +1 -1
  87. package/app-frontend/components/playground/Playground.js +1 -21
  88. package/app-frontend/components/playground/Playground.js.map +1 -1
  89. package/app-frontend/components/tree/MenuComponent.js +2 -22
  90. package/app-frontend/components/tree/MenuComponent.js.map +1 -1
  91. package/app-frontend/components/tree/MultiTypeAdaptor.js +2 -22
  92. package/app-frontend/components/tree/MultiTypeAdaptor.js.map +1 -1
  93. package/app-frontend/components/tree/SimpleTreeNodeRenderer.js +0 -20
  94. package/app-frontend/components/tree/SimpleTreeNodeRenderer.js.map +1 -1
  95. package/app-frontend/components/tree/Tree.js +3 -23
  96. package/app-frontend/components/tree/Tree.js.map +1 -1
  97. package/app-frontend/components/tree/types.js +0 -20
  98. package/app-frontend/components/tree/types.js.map +1 -1
  99. package/app-frontend/components/treeicons.js.map +1 -1
  100. package/app-frontend/components/types.js +0 -20
  101. package/app-frontend/components/types.js.map +1 -1
  102. package/app-frontend/core/AbstractThunder.d.ts +0 -3
  103. package/app-frontend/core/AbstractThunder.js +0 -32
  104. package/app-frontend/core/AbstractThunder.js.map +1 -1
  105. package/app-frontend/core/AppPage.js +0 -20
  106. package/app-frontend/core/AppPage.js.map +1 -1
  107. package/app-frontend/core/AppWrapper.js +2 -23
  108. package/app-frontend/core/AppWrapper.js.map +1 -1
  109. package/app-frontend/core/BaseComponent.d.ts +2 -4
  110. package/app-frontend/core/BaseComponent.js +18 -41
  111. package/app-frontend/core/BaseComponent.js.map +1 -1
  112. package/app-frontend/core/SimpleScriptInjector.js +2 -22
  113. package/app-frontend/core/SimpleScriptInjector.js.map +1 -1
  114. package/app-frontend/core/Thunder.js +3 -22
  115. package/app-frontend/core/Thunder.js.map +1 -1
  116. package/app-frontend/core/thunder-dispatcher.d.ts +2 -1
  117. package/app-frontend/core/thunder-dispatcher.js +13 -23
  118. package/app-frontend/core/thunder-dispatcher.js.map +1 -1
  119. package/app-frontend/modules/ConnectivityModule.d.ts +1 -1
  120. package/app-frontend/modules/ConnectivityModule.js +2 -2
  121. package/app-frontend/modules/ConnectivityModule.js.map +1 -1
  122. package/app-frontend/modules/ForceUpgrade.d.ts +1 -1
  123. package/app-frontend/modules/ForceUpgrade.js +4 -23
  124. package/app-frontend/modules/ForceUpgrade.js.map +1 -1
  125. package/app-frontend/modules/HistoryModule.d.ts +3 -5
  126. package/app-frontend/modules/HistoryModule.js +9 -28
  127. package/app-frontend/modules/HistoryModule.js.map +1 -1
  128. package/app-frontend/modules/ResourcesModule.d.ts +1 -4
  129. package/app-frontend/modules/ResourcesModule.js +2 -25
  130. package/app-frontend/modules/ResourcesModule.js.map +1 -1
  131. package/app-frontend/modules/StorageModule.d.ts +1 -4
  132. package/app-frontend/modules/StorageModule.js +4 -26
  133. package/app-frontend/modules/StorageModule.js.map +1 -1
  134. package/app-frontend/modules/ThunderstormModule.d.ts +1 -1
  135. package/app-frontend/modules/ThunderstormModule.js +3 -3
  136. package/app-frontend/modules/ThunderstormModule.js.map +1 -1
  137. package/app-frontend/modules/component-loader/ReactEntryComponentInjector.js +0 -20
  138. package/app-frontend/modules/component-loader/ReactEntryComponentInjector.js.map +1 -1
  139. package/app-frontend/modules/component-loader/entry-component-loading-module.d.ts +1 -1
  140. package/app-frontend/modules/component-loader/entry-component-loading-module.js +4 -25
  141. package/app-frontend/modules/component-loader/entry-component-loading-module.js.map +1 -1
  142. package/app-frontend/modules/dialog/Dialog.js +0 -22
  143. package/app-frontend/modules/dialog/Dialog.js.map +1 -1
  144. package/app-frontend/modules/dialog/DialogModule.d.ts +1 -1
  145. package/app-frontend/modules/dialog/DialogModule.js +2 -22
  146. package/app-frontend/modules/dialog/DialogModule.js.map +1 -1
  147. package/app-frontend/modules/http/HttpClient.js +0 -20
  148. package/app-frontend/modules/http/HttpClient.js.map +1 -1
  149. package/app-frontend/modules/http/XhrHttpModule.js +9 -10
  150. package/app-frontend/modules/http/XhrHttpModule.js.map +1 -1
  151. package/app-frontend/modules/locale/LocaleModule.d.ts +1 -4
  152. package/app-frontend/modules/locale/LocaleModule.js +5 -24
  153. package/app-frontend/modules/locale/LocaleModule.js.map +1 -1
  154. package/app-frontend/modules/locale/types.d.ts +0 -3
  155. package/app-frontend/modules/locale/types.js +0 -20
  156. package/app-frontend/modules/locale/types.js.map +1 -1
  157. package/app-frontend/modules/menu/MenuAndButton.js +2 -2
  158. package/app-frontend/modules/menu/MenuAndButton.js.map +1 -1
  159. package/app-frontend/modules/menu/MenuModule.d.ts +1 -1
  160. package/app-frontend/modules/menu/MenuModule.js +4 -3
  161. package/app-frontend/modules/menu/MenuModule.js.map +1 -1
  162. package/app-frontend/modules/menu/PopupMenu.js +2 -2
  163. package/app-frontend/modules/menu/PopupMenu.js.map +1 -1
  164. package/app-frontend/modules/routing/RoutingModule.d.ts +1 -1
  165. package/app-frontend/modules/routing/RoutingModule.js +6 -25
  166. package/app-frontend/modules/routing/RoutingModule.js.map +1 -1
  167. package/app-frontend/modules/routing/route.js +0 -20
  168. package/app-frontend/modules/routing/route.js.map +1 -1
  169. package/app-frontend/modules/toaster/BaseToaster.js +0 -22
  170. package/app-frontend/modules/toaster/BaseToaster.js.map +1 -1
  171. package/app-frontend/modules/toaster/Toaster.js +0 -20
  172. package/app-frontend/modules/toaster/Toaster.js.map +1 -1
  173. package/app-frontend/modules/toaster/ToasterModule.d.ts +1 -1
  174. package/app-frontend/modules/toaster/ToasterModule.js +5 -25
  175. package/app-frontend/modules/toaster/ToasterModule.js.map +1 -1
  176. package/app-frontend/modules/tooltip/Tooltip.js +2 -22
  177. package/app-frontend/modules/tooltip/Tooltip.js.map +1 -1
  178. package/app-frontend/modules/tooltip/TooltipModule.d.ts +1 -1
  179. package/app-frontend/modules/tooltip/TooltipModule.js +4 -23
  180. package/app-frontend/modules/tooltip/TooltipModule.js.map +1 -1
  181. package/app-frontend/tools/KeyboardListener.js +0 -17
  182. package/app-frontend/tools/KeyboardListener.js.map +1 -1
  183. package/app-frontend/tools/Stylable.js +0 -20
  184. package/app-frontend/tools/Stylable.js.map +1 -1
  185. package/app-frontend/types/renderer-map.js +0 -20
  186. package/app-frontend/types/renderer-map.js.map +1 -1
  187. package/app-frontend/utils/tools.js +3 -23
  188. package/app-frontend/utils/tools.js.map +1 -1
  189. package/index.d.ts +0 -6
  190. package/index.js +0 -37
  191. package/index.js.map +1 -1
  192. package/package.json +4 -4
  193. package/shared/BaseHttpModule.d.ts +1 -1
  194. package/shared/BaseHttpModule.js +6 -5
  195. package/shared/BaseHttpModule.js.map +1 -1
  196. package/shared/BaseHttpRequest.js +9 -27
  197. package/shared/BaseHttpRequest.js.map +1 -1
  198. package/shared/consts.js +0 -20
  199. package/shared/consts.js.map +1 -1
  200. package/shared/force-upgrade.js +0 -20
  201. package/shared/force-upgrade.js.map +1 -1
  202. package/shared/request-types.js +0 -20
  203. package/shared/request-types.js.map +1 -1
  204. package/shared/types.js +0 -20
  205. package/shared/types.js.map +1 -1
  206. package/test-backend/StormTester.js +6 -26
  207. package/test-backend/StormTester.js.map +1 -1
  208. package/test-frontend/ThunderTester.js +0 -20
  209. package/test-frontend/ThunderTester.js.map +1 -1
  210. package/app-backend/modules/_imports.d.ts +0 -10
  211. package/app-backend/modules/_imports.js +0 -43
  212. package/app-backend/modules/_imports.js.map +0 -1
  213. package/app-frontend/components/GenericTabs.d.ts +0 -4
  214. package/app-frontend/components/GenericTabs.js +0 -11
  215. package/app-frontend/components/GenericTabs.js.map +0 -1
  216. package/backend-test.d.ts +0 -1
  217. package/backend-test.js +0 -34
  218. package/backend-test.js.map +0 -1
  219. package/backend.d.ts +0 -17
  220. package/backend.js +0 -50
  221. package/backend.js.map +0 -1
  222. package/frontend.d.ts +0 -55
  223. package/frontend.js +0 -88
  224. package/frontend.js.map +0 -1
@@ -1,28 +1,7 @@
1
1
  "use strict";
2
- /*
3
- * Thunderstorm is a full web app framework!
4
- *
5
- * Typescript & Express backend infrastructure that natively runs on firebase function
6
- * Typescript & React frontend infrastructure
7
- *
8
- * Copyright (C) 2020 Intuition Robotics
9
- *
10
- * Licensed under the Apache License, Version 2.0 (the "License");
11
- * you may not use this file except in compliance with the License.
12
- * You may obtain a copy of the License at
13
- *
14
- * http://www.apache.org/licenses/LICENSE-2.0
15
- *
16
- * Unless required by applicable law or agreed to in writing, software
17
- * distributed under the License is distributed on an "AS IS" BASIS,
18
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
- * See the License for the specific language governing permissions and
20
- * limitations under the License.
21
- */
22
2
  Object.defineProperty(exports, "__esModule", { value: true });
23
3
  exports.Thunder = exports.SuccessHandler_Dispatch = exports.ErrorHandler_Dispatch = exports.SuccessHandler_Toast = exports.ErrorHandler_Toast = void 0;
24
4
  const AppWrapper_1 = require("./AppWrapper");
25
- const ts_common_1 = require("@intuitionrobotics/ts-common");
26
5
  const XhrHttpModule_1 = require("../modules/http/XhrHttpModule");
27
6
  const ToasterModule_1 = require("../modules/toaster/ToasterModule");
28
7
  const RoutingModule_1 = require("../modules/routing/RoutingModule");
@@ -33,6 +12,8 @@ const AbstractThunder_1 = require("./AbstractThunder");
33
12
  const ThunderstormModule_1 = require("../modules/ThunderstormModule");
34
13
  const DialogModule_1 = require("../modules/dialog/DialogModule");
35
14
  const thunder_dispatcher_1 = require("./thunder-dispatcher");
15
+ const LogClient_Browser_1 = require("@intuitionrobotics/ts-common/core/logger/LogClient_Browser");
16
+ const BeLogged_1 = require("@intuitionrobotics/ts-common/core/logger/BeLogged");
36
17
  const ErrorHandler_Toast = (request, resError) => {
37
18
  const errorMessage = request.errorMessage || (resError === null || resError === void 0 ? void 0 : resError.debugMessage);
38
19
  return errorMessage && ToasterModule_1.ToastModule.toastError(errorMessage);
@@ -66,7 +47,7 @@ class Thunder extends AbstractThunder_1.AbstractThunder {
66
47
  return Thunder.instance;
67
48
  }
68
49
  init() {
69
- ts_common_1.BeLogged.addClient(ts_common_1.LogClient_Browser);
50
+ BeLogged_1.BeLogged.addClient(LogClient_Browser_1.LogClient_Browser);
70
51
  super.init();
71
52
  XhrHttpModule_1.XhrHttpModule.setErrorHandlers([exports.ErrorHandler_Toast, exports.ErrorHandler_Dispatch]);
72
53
  XhrHttpModule_1.XhrHttpModule.setSuccessHandlers([exports.SuccessHandler_Toast, exports.SuccessHandler_Dispatch]);
@@ -1 +1 @@
1
- {"version":3,"file":"Thunder.js","sourceRoot":"","sources":["../../../src/main/app-frontend/core/Thunder.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;AAGH,6CAAqD;AACrD,4DAAiF;AACjF,iEAA4D;AAC5D,oEAA6D;AAC7D,oEAA+D;AAC/D,4DAA8D;AAC9D,4DAAuD;AACvD,gEAA2D;AAE3D,uDAA6E;AAC7E,sEAAiE;AACjE,iEAA4D;AAE5D,6DAAuD;AAEhD,MAAM,kBAAkB,GAA6B,CAAC,OAAO,EAAE,QAAS,EAAE,EAAE;IAC/E,MAAM,YAAY,GAAG,OAAO,CAAC,YAAY,KAAI,QAAQ,aAAR,Q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QAC5E,6BAAa,CAAC,kBAAkB,CAAC,CAAC,4BAAoB,EAAE,+BAAuB,CAAC,CAAC,CAAC;QAClF,6BAAa,CAAC,yBAAyB,CAAC,CAAC,OAA6B,EAAE,EAAE;YACtE,IAAI,OAAO,CAAC,SAAS,EAAE,KAAK,GAAG;gBAC3B,OAAO,KAAK,CAAC;YAEjB,MAAM,yBAAyB,GAAG,IAAI,sCAAiB,CAAyD,2BAA2B,CAAC,CAAC;YAC7I,yBAAyB,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;YACzC,yBAAyB,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;YAC7C,OAAO,IAAI,CAAC;QAChB,CAAC,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC;IAChB,CAAC;IAMM,UAAU,CAAC,OAAwC;QACtD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,UAAU;QACb,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;CACJ;AA9CD,0BA8CC"}
@@ -1,7 +1,8 @@
1
1
  import { Dispatcher } from "@intuitionrobotics/ts-common/core/dispatcher";
2
2
  import { FunctionKeys, ReturnPromiseType } from "@intuitionrobotics/ts-common/utils/types";
3
+ export declare const addUIListener: (listener: any) => void;
4
+ export declare const removeUIListener: (listener: any) => void;
3
5
  export declare class ThunderDispatcher<T extends object, K extends FunctionKeys<T>> extends Dispatcher<T, K> {
4
- static readonly listenersResolver: () => any[];
5
6
  constructor(method: K);
6
7
  dispatchUI(p: Parameters<T[K]>): ReturnPromiseType<T[K]>[];
7
8
  dispatchUIAsync(p: Parameters<T[K]>): Promise<ReturnPromiseType<T[K]>[]>;
@@ -1,24 +1,4 @@
1
1
  "use strict";
2
- /*
3
- * Thunderstorm is a full web app framework!
4
- *
5
- * Typescript & Express backend infrastructure that natively runs on firebase function
6
- * Typescript & React frontend infrastructure
7
- *
8
- * Copyright (C) 2020 Intuition Robotics
9
- *
10
- * Licensed under the Apache License, Version 2.0 (the "License");
11
- * you may not use this file except in compliance with the License.
12
- * You may obtain a copy of the License at
13
- *
14
- * http://www.apache.org/licenses/LICENSE-2.0
15
- *
16
- * Unless required by applicable law or agreed to in writing, software
17
- * distributed under the License is distributed on an "AS IS" BASIS,
18
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
- * See the License for the specific language governing permissions and
20
- * limitations under the License.
21
- */
22
2
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
23
3
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
24
4
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -29,20 +9,30 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
29
9
  });
30
10
  };
31
11
  Object.defineProperty(exports, "__esModule", { value: true });
32
- exports.ThunderDispatcher = void 0;
12
+ exports.ThunderDispatcher = exports.removeUIListener = exports.addUIListener = void 0;
33
13
  const dispatcher_1 = require("@intuitionrobotics/ts-common/core/dispatcher");
14
+ const array_tools_1 = require("@intuitionrobotics/ts-common/utils/array-tools");
15
+ const listeners = [];
16
+ const addUIListener = (listener) => {
17
+ console.log(`Register UI listener: ${listener}`);
18
+ listeners.push(listener);
19
+ };
20
+ exports.addUIListener = addUIListener;
21
+ const removeUIListener = (listener) => {
22
+ console.log(`Unregister UI listener: ${listener}`);
23
+ array_tools_1.removeItemFromArray(listeners, listener);
24
+ };
25
+ exports.removeUIListener = removeUIListener;
34
26
  class ThunderDispatcher extends dispatcher_1.Dispatcher {
35
27
  constructor(method) {
36
28
  super(method);
37
29
  }
38
30
  dispatchUI(p) {
39
- const listeners = ThunderDispatcher.listenersResolver();
40
31
  // @ts-ignore
41
32
  return listeners.filter(this.filter).map((listener) => listener[this.method](...p));
42
33
  }
43
34
  dispatchUIAsync(p) {
44
35
  return __awaiter(this, void 0, void 0, function* () {
45
- const listeners = ThunderDispatcher.listenersResolver();
46
36
  return Promise.all(listeners.filter(this.filter).map((listener) => __awaiter(this, void 0, void 0, function* () {
47
37
  const params = p;
48
38
  return listener[this.method](...params);
@@ -1 +1 @@
1
- {"version":3,"file":"thunder-dispatcher.js","sourceRoot":"","sources":["../../../src/main/app-frontend/core/thunder-dispatcher.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;AAEH,6EAAwE;AAMxE,MAAa,iBACZ,SAAQ,uBAAgB;IAIxB,YAAY,MAAS;QACpB,KAAK,CAAC,MAAM,CAAC,CAAC;IACf,CAAC;IAEM,UAAU,CAAC,CAAmB;QACpC,MAAM,SAAS,GAAG,iBAAiB,CAAC,iBAAiB,EAAE,CAAC;QACxD,aAAa;QACb,OAAO,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,QAAW,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IACxF,CAAC;IAEY,eAAe,CAAC,CAAmB;;YAC/C,MAAM,SAAS,GAAG,iBAAiB,CAAC,iBAAiB,EAAE,CAAC;YACxD,OAAO,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAO,QAAW,EAAE,EAAE;gBAC1E,MAAM,MAAM,GAAQ,CAAC,CAAC;gBACtB,OAAO,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC;YACzC,CAAC,CAAA,CAAC,CAAC,CAAC;QACL,CAAC;KAAA;CACD;AAtBD,8CAsBC"}
1
+ {"version":3,"file":"thunder-dispatcher.js","sourceRoot":"","sources":["../../../src/main/app-frontend/core/thunder-dispatcher.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6EAAwE;AAKxE,gFAAmF;AAEnF,MAAM,SAAS,GAAU,EAAE,CAAC;AAErB,MAAM,aAAa,GAAG,CAAC,QAAa,EAAS,EAAE;IACrD,OAAO,CAAC,GAAG,CAAC,yBAAyB,QAAQ,EAAE,CAAC,CAAC;IACjD,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AAC1B,CAAC,CAAA;AAHY,QAAA,aAAa,iBAGzB;AAEM,MAAM,gBAAgB,GAAG,CAAC,QAAa,EAAS,EAAE;IACxD,OAAO,CAAC,GAAG,CAAC,2BAA2B,QAAQ,EAAE,CAAC,CAAC;IACnD,iCAAmB,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;AAC1C,CAAC,CAAA;AAHY,QAAA,gBAAgB,oBAG5B;AAED,MAAa,iBACZ,SAAQ,uBAAgB;IAExB,YAAY,MAAS;QACpB,KAAK,CAAC,MAAM,CAAC,CAAC;IACf,CAAC;IAEM,UAAU,CAAC,CAAmB;QACpC,aAAa;QACb,OAAO,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,QAAW,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IACxF,CAAC;IAEY,eAAe,CAAC,CAAmB;;YAC/C,OAAO,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAO,QAAW,EAAE,EAAE;gBAC1E,MAAM,MAAM,GAAQ,CAAC,CAAC;gBACtB,OAAO,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC;YACzC,CAAC,CAAA,CAAC,CAAC,CAAC;QACL,CAAC;KAAA;CACD;AAlBD,8CAkBC"}
@@ -1,4 +1,4 @@
1
- import { Module } from "@intuitionrobotics/ts-common";
1
+ import { Module } from "@intuitionrobotics/ts-common/core/module";
2
2
  export interface OnConnectivityChange {
3
3
  __onConnectivityChange(): void;
4
4
  }
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ConnectivityModule = void 0;
4
- const ts_common_1 = require("@intuitionrobotics/ts-common");
4
+ const module_1 = require("@intuitionrobotics/ts-common/core/module");
5
5
  const thunder_dispatcher_1 = require("../core/thunder-dispatcher");
6
- class ConnectivityModule_Class extends ts_common_1.Module {
6
+ class ConnectivityModule_Class extends module_1.Module {
7
7
  constructor() {
8
8
  super("ConnectivityModule");
9
9
  this.dispatch_onConnectivityChange = new thunder_dispatcher_1.ThunderDispatcher('__onConnectivityChange');
@@ -1 +1 @@
1
- {"version":3,"file":"ConnectivityModule.js","sourceRoot":"","sources":["../../../src/main/app-frontend/modules/ConnectivityModule.ts"],"names":[],"mappings":";;;AAAA,4DAAoD;AACpD,mEAA6D;AAM7D,MAAM,wBACL,SAAQ,kBAAM;IAKd;QACC,KAAK,CAAC,oBAAoB,CAAC,CAAC;QAHrB,kCAA6B,GAAG,IAAI,sCAAiB,CAAiD,wBAAwB,CAAC,CAAC;QAYxI,gBAAW,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC;QAEnC,2BAAsB,GAAG,GAAG,EAAE;YAC7B,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,qBAAqB,EAAE,CAAC;YAC9C,IAAI,CAAC,6BAA6B,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;YACtD,IAAI,CAAC,6BAA6B,CAAC,UAAU,CAAC,EAAE,CAAC,CAAA;QAClD,CAAC,CAAC;QAEM,0BAAqB,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC;QAhBtD,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,qBAAqB,EAAE,CAAC;IAC/C,CAAC;IAES,IAAI;QACb,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,IAAI,CAAC,sBAAsB,CAAC,CAAC;QAC/D,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,IAAI,CAAC,sBAAsB,CAAC,CAAC;IACjE,CAAC;CAWD;AAEY,QAAA,kBAAkB,GAAG,IAAI,wBAAwB,EAAE,CAAC"}
1
+ {"version":3,"file":"ConnectivityModule.js","sourceRoot":"","sources":["../../../src/main/app-frontend/modules/ConnectivityModule.ts"],"names":[],"mappings":";;;AAAA,qEAAgE;AAChE,mEAA6D;AAM7D,MAAM,wBACF,SAAQ,eAAM;IAKd;QACI,KAAK,CAAC,oBAAoB,CAAC,CAAC;QAHxB,kCAA6B,GAAG,IAAI,sCAAiB,CAAiD,wBAAwB,CAAC,CAAC;QAYxI,gBAAW,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC;QAEnC,2BAAsB,GAAG,GAAG,EAAE;YAC1B,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,qBAAqB,EAAE,CAAC;YAC9C,IAAI,CAAC,6BAA6B,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;YACtD,IAAI,CAAC,6BAA6B,CAAC,UAAU,CAAC,EAAE,CAAC,CAAA;QACrD,CAAC,CAAC;QAEM,0BAAqB,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC;QAhBnD,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,qBAAqB,EAAE,CAAC;IAClD,CAAC;IAES,IAAI;QACV,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,IAAI,CAAC,sBAAsB,CAAC,CAAC;QAC/D,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,IAAI,CAAC,sBAAsB,CAAC,CAAC;IACpE,CAAC;CAWJ;AAEY,QAAA,kBAAkB,GAAG,IAAI,wBAAwB,EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Module } from "@intuitionrobotics/ts-common";
1
+ import { Module } from "@intuitionrobotics/ts-common/core/module";
2
2
  import { UpgradeRequired } from "../../shared/force-upgrade";
3
3
  export declare const RequestKey_AssertAppVersion = "assert-app-version";
4
4
  declare type Config = {
@@ -1,34 +1,15 @@
1
1
  "use strict";
2
- /*
3
- * Thunderstorm is a full web app framework!
4
- *
5
- * Typescript & Express backend infrastructure that natively runs on firebase function
6
- * Typescript & React frontend infrastructure
7
- *
8
- * Copyright (C) 2020 Intuition Robotics
9
- *
10
- * Licensed under the Apache License, Version 2.0 (the "License");
11
- * you may not use this file except in compliance with the License.
12
- * You may obtain a copy of the License at
13
- *
14
- * http://www.apache.org/licenses/LICENSE-2.0
15
- *
16
- * Unless required by applicable law or agreed to in writing, software
17
- * distributed under the License is distributed on an "AS IS" BASIS,
18
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
- * See the License for the specific language governing permissions and
20
- * limitations under the License.
21
- */
22
2
  Object.defineProperty(exports, "__esModule", { value: true });
23
3
  exports.ForceUpgrade = exports.RequestKey_AssertAppVersion = void 0;
24
- const ts_common_1 = require("@intuitionrobotics/ts-common");
4
+ const module_1 = require("@intuitionrobotics/ts-common/core/module");
25
5
  const XhrHttpModule_1 = require("./http/XhrHttpModule");
26
6
  const force_upgrade_1 = require("../../shared/force-upgrade");
27
7
  const types_1 = require("../../shared/types");
28
8
  const tools_1 = require("../utils/tools");
9
+ const dispatcher_1 = require("@intuitionrobotics/ts-common/core/dispatcher");
29
10
  exports.RequestKey_AssertAppVersion = "assert-app-version";
30
- const dispatch_onUpgradeRequired = new ts_common_1.Dispatcher("__onUpgradeRequired");
31
- class ForceUpgrade_Class extends ts_common_1.Module {
11
+ const dispatch_onUpgradeRequired = new dispatcher_1.Dispatcher("__onUpgradeRequired");
12
+ class ForceUpgrade_Class extends module_1.Module {
32
13
  constructor() {
33
14
  super("ForceUpgrade");
34
15
  this.compareVersion = () => {
@@ -1 +1 @@
1
- {"version":3,"file":"ForceUpgrade.js","sourceRoot":"","sources":["../../../src/main/app-frontend/modules/ForceUpgrade.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;AAEH,4DAGsC;AACtC,wDAA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AClB,6BAAa;iBACR,aAAa,CAA6B,kBAAU,CAAC,GAAG,EAAE,mCAA2B,CAAC;iBACtF,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC;iBAC5C,OAAO,CAAC,CAAC,QAAyB,EAAE,EAAE;gBACnC,0BAA0B,CAAC,cAAc,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;YAC1D,CAAC,CAAC,CAAC;QACX,CAAC,CAAC;IAdF,CAAC;IAES,IAAI;QACV,6BAAa,CAAC,gBAAgB,CAAC,yCAAyB,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,CAAC,CAAC;QACvF,6BAAa,CAAC,gBAAgB,CAAC,sCAAsB,EAAE,GAAG,mBAAW,EAAE,EAAE,CAAC,CAAC;IAC/E,CAAC;CAUJ;AAEY,QAAA,YAAY,GAAG,IAAI,kBAAkB,EAAE,CAAC"}
@@ -1,9 +1,6 @@
1
- /**
2
- * Created by tacb0ss on 27/07/2018.
3
- */
4
- import { Module } from "@intuitionrobotics/ts-common";
1
+ import { Module } from "@intuitionrobotics/ts-common/core/module";
5
2
  import { History, LocationDescriptorObject } from "history";
6
- import { QueryParams } from "../../index";
3
+ import { QueryParams } from "../../shared/types";
7
4
  export declare class BrowserHistoryModule_Class extends Module {
8
5
  private readonly history;
9
6
  constructor();
@@ -12,6 +9,7 @@ export declare class BrowserHistoryModule_Class extends Module {
12
9
  private composeQuery;
13
10
  private getEncodedQueryParams;
14
11
  getQueryParams(): QueryParams;
12
+ getQueryParam(k: string): string | undefined;
15
13
  setQuery(queryParams: QueryParams): void;
16
14
  addQueryParam(key: string, value: string): void;
17
15
  removeQueryParam(key: string): void;
@@ -1,32 +1,10 @@
1
1
  "use strict";
2
- /*
3
- * Thunderstorm is a full web app framework!
4
- *
5
- * Typescript & Express backend infrastructure that natively runs on firebase function
6
- * Typescript & React frontend infrastructure
7
- *
8
- * Copyright (C) 2020 Intuition Robotics
9
- *
10
- * Licensed under the Apache License, Version 2.0 (the "License");
11
- * you may not use this file except in compliance with the License.
12
- * You may obtain a copy of the License at
13
- *
14
- * http://www.apache.org/licenses/LICENSE-2.0
15
- *
16
- * Unless required by applicable law or agreed to in writing, software
17
- * distributed under the License is distributed on an "AS IS" BASIS,
18
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
- * See the License for the specific language governing permissions and
20
- * limitations under the License.
21
- */
22
2
  Object.defineProperty(exports, "__esModule", { value: true });
23
3
  exports.BrowserHistoryModule = exports.BrowserHistoryModule_Class = void 0;
24
- /**
25
- * Created by tacb0ss on 27/07/2018.
26
- */
27
- const ts_common_1 = require("@intuitionrobotics/ts-common");
4
+ const module_1 = require("@intuitionrobotics/ts-common/core/module");
5
+ const object_tools_1 = require("@intuitionrobotics/ts-common/utils/object-tools");
28
6
  const history_1 = require("history");
29
- class BrowserHistoryModule_Class extends ts_common_1.Module {
7
+ class BrowserHistoryModule_Class extends module_1.Module {
30
8
  constructor() {
31
9
  super("BrowserHistoryModule");
32
10
  this.getEncodedQueryParams = () => {
@@ -61,14 +39,14 @@ class BrowserHistoryModule_Class extends ts_common_1.Module {
61
39
  this.history.replace(push);
62
40
  }
63
41
  composeQuery(queryParams) {
64
- const queryAsString = ts_common_1._keys(queryParams).map((key) => `${key}=${queryParams[key]}`).join("&");
42
+ const queryAsString = object_tools_1._keys(queryParams).map((key) => `${key}=${queryParams[key]}`).join("&");
65
43
  if (queryAsString.length === 0)
66
44
  return undefined;
67
45
  return queryAsString;
68
46
  }
69
47
  getQueryParams() {
70
48
  const params = this.getEncodedQueryParams();
71
- ts_common_1._keys(params).forEach(key => {
49
+ object_tools_1._keys(params).forEach(key => {
72
50
  const value = params[key];
73
51
  if (!value) {
74
52
  delete params[key];
@@ -78,9 +56,12 @@ class BrowserHistoryModule_Class extends ts_common_1.Module {
78
56
  });
79
57
  return params;
80
58
  }
59
+ getQueryParam(k) {
60
+ return this.getQueryParams()[k];
61
+ }
81
62
  setQuery(queryParams) {
82
63
  const encodedQueryParams = Object.assign({}, queryParams);
83
- ts_common_1._keys(encodedQueryParams).forEach(key => {
64
+ object_tools_1._keys(encodedQueryParams).forEach(key => {
84
65
  const value = encodedQueryParams[key];
85
66
  if (!value) {
86
67
  delete encodedQueryParams[key];
@@ -1 +1 @@
1
- {"version":3,"file":"HistoryModule.js","sourceRoot":"","sources":["../../../src/main/app-frontend/modules/HistoryModule.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;AAEH;;GAEG;AACH,4DAGsC;AACtC,qCAIiB;AAGjB,MAAa,0BACZ,SAAQ,kBAAM;IAGd;QACC,KAAK,CAAC,sBAAsB,CAAC,CAAC;QAoBvB,0BAAqB,GAAG,GAAgB,EAAE;YACjD,MAAM,WAAW,GAAgB,EAAE,CAAC;YACpC,IAAI,aAAa,GAAG,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC;YAC3C,IAAI,CAAC,aAAa,IAAI,aAAa,CAAC,MAAM,KAAK,CAAC;gBAC/C,OAAO,EAAE,CAAC;YAEX,OAAO,IAAI,EAAE;gBACZ,IAAI,aAAa,CAAC,UAAU,CAAC,GAAG,CAAC;oBAChC,aAAa,GAAG,aAAa,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;qBACvC,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC;oBACtC,aAAa,GAAG,aAAa,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;;oBAE3C,MAAM;aACP;YAED,MAAM,KAAK,GAAG,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACvC,OAAO,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE;gBACxB,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBAC/B,OAAO,EAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,EAAC,CAAC;YACzC,CAAC,CA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;IACxB,CAAC;CACJ;AAjID,gEAiIC;AAEY,QAAA,oBAAoB,GAAG,IAAI,0BAA0B,EAAE,CAAC"}
@@ -1,7 +1,4 @@
1
- /**
2
- * Created by tacb0ss on 27/07/2018.
3
- */
4
- import { Module } from "@intuitionrobotics/ts-common";
1
+ import { Module } from "@intuitionrobotics/ts-common/core/module";
5
2
  export declare type ResourceId = string;
6
3
  export declare class ResourcesModule_Class extends Module {
7
4
  private readonly relativePath;
@@ -1,31 +1,8 @@
1
1
  "use strict";
2
- /*
3
- * Thunderstorm is a full web app framework!
4
- *
5
- * Typescript & Express backend infrastructure that natively runs on firebase function
6
- * Typescript & React frontend infrastructure
7
- *
8
- * Copyright (C) 2020 Intuition Robotics
9
- *
10
- * Licensed under the Apache License, Version 2.0 (the "License");
11
- * you may not use this file except in compliance with the License.
12
- * You may obtain a copy of the License at
13
- *
14
- * http://www.apache.org/licenses/LICENSE-2.0
15
- *
16
- * Unless required by applicable law or agreed to in writing, software
17
- * distributed under the License is distributed on an "AS IS" BASIS,
18
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
- * See the License for the specific language governing permissions and
20
- * limitations under the License.
21
- */
22
2
  Object.defineProperty(exports, "__esModule", { value: true });
23
3
  exports.ResourcesModule = exports.ResourcesModule_Class = void 0;
24
- /**
25
- * Created by tacb0ss on 27/07/2018.
26
- */
27
- const ts_common_1 = require("@intuitionrobotics/ts-common");
28
- class ResourcesModule_Class extends ts_common_1.Module {
4
+ const module_1 = require("@intuitionrobotics/ts-common/core/module");
5
+ class ResourcesModule_Class extends module_1.Module {
29
6
  constructor() {
30
7
  super("ResourcesModule");
31
8
  this.relativePath = "../../res/";
@@ -1 +1 @@
1
- {"version":3,"file":"ResourcesModule.js","sourceRoot":"","sources":["../../../src/main/app-frontend/modules/ResourcesModule.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;AAEH;;GAEG;AACH,4DAAoD;AAIpD,MAAa,qBACZ,SAAQ,kBAAM;IAKd;QACC,KAAK,CAAC,iBAAiB,CAAC,CAAC;QACzB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,kBAAkB,GAAG,GAAG,IAAI,CAAC,YAAY,SAAS,CAAC;IACzD,CAAC;IAED,IAAI;IACJ,CAAC;IAEM,WAAW,CAAC,YAAwB;QAC1C,OAAO,GAAG,IAAI,CAAC,kBAAkB,GAAG,YAAY,EAAE,CAAA;IACnD,CAAC;CACD;AAlBD,sDAkBC;AAEY,QAAA,eAAe,GAAG,IAAI,qBAAqB,EAAE,CAAC"}
1
+ {"version":3,"file":"ResourcesModule.js","sourceRoot":"","sources":["../../../src/main/app-frontend/modules/ResourcesModule.ts"],"names":[],"mappings":";;;AAAA,qEAAkE;AAIlE,MAAa,qBACZ,SAAQ,eAAM;IAKd;QACC,KAAK,CAAC,iBAAiB,CAAC,CAAC;QACzB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,kBAAkB,GAAG,GAAG,IAAI,CAAC,YAAY,SAAS,CAAC;IACzD,CAAC;IAED,IAAI;IACJ,CAAC;IAEM,WAAW,CAAC,YAAwB;QAC1C,OAAO,GAAG,IAAI,CAAC,kBAAkB,GAAG,YAAY,EAAE,CAAA;IACnD,CAAC;CACD;AAlBD,sDAkBC;AAEY,QAAA,eAAe,GAAG,IAAI,qBAAqB,EAAE,CAAC"}
@@ -1,7 +1,4 @@
1
- /**
2
- * Created by tacb0ss on 27/07/2018.
3
- */
4
- import { Module } from "@intuitionrobotics/ts-common";
1
+ import { Module } from "@intuitionrobotics/ts-common/core/module";
5
2
  export interface StorageKeyEvent {
6
3
  __onStorageKeyEvent(event: StorageEvent): void;
7
4
  }
@@ -1,32 +1,10 @@
1
1
  "use strict";
2
- /*
3
- * Thunderstorm is a full web app framework!
4
- *
5
- * Typescript & Express backend infrastructure that natively runs on firebase function
6
- * Typescript & React frontend infrastructure
7
- *
8
- * Copyright (C) 2020 Intuition Robotics
9
- *
10
- * Licensed under the Apache License, Version 2.0 (the "License");
11
- * you may not use this file except in compliance with the License.
12
- * You may obtain a copy of the License at
13
- *
14
- * http://www.apache.org/licenses/LICENSE-2.0
15
- *
16
- * Unless required by applicable law or agreed to in writing, software
17
- * distributed under the License is distributed on an "AS IS" BASIS,
18
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
- * See the License for the specific language governing permissions and
20
- * limitations under the License.
21
- */
22
2
  Object.defineProperty(exports, "__esModule", { value: true });
23
3
  exports.StorageKey = exports.StorageModule = exports.StorageModule_Class = void 0;
24
- /**
25
- * Created by tacb0ss on 27/07/2018.
26
- */
27
- const ts_common_1 = require("@intuitionrobotics/ts-common");
4
+ const module_1 = require("@intuitionrobotics/ts-common/core/module");
5
+ const merge_tools_1 = require("@intuitionrobotics/ts-common/utils/merge-tools");
28
6
  const thunder_dispatcher_1 = require("../core/thunder-dispatcher");
29
- class StorageModule_Class extends ts_common_1.Module {
7
+ class StorageModule_Class extends module_1.Module {
30
8
  constructor() {
31
9
  super("StorageModule");
32
10
  this.cache = {};
@@ -104,7 +82,7 @@ class StorageKey {
104
82
  }
105
83
  patch(value) {
106
84
  const previousValue = this.get();
107
- const mergedValue = ts_common_1.merge(previousValue, value);
85
+ const mergedValue = merge_tools_1.merge(previousValue, value);
108
86
  this.set(mergedValue);
109
87
  return mergedValue;
110
88
  }
@@ -1 +1 @@
1
- {"version":3,"file":"StorageModule.js","sourceRoot":"","sources":["../../../src/main/app-frontend/modules/StorageModule.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;AAEH;;GAEG;AACH,4DAGsC;AACtC,mEAA6D;AAM7D,MAAa,mBACZ,SAAQ,kBAAM;IAGd;QACC,KAAK,CAAC,eAAe,CAAC,CAAC;QAHhB,UAAK,GAA8C,EAAE,CAAC;QAUtD,uBAAkB,GAAG,CAAC,CAAe,EAAE,EAAE;YAChD,MAAM,UAAU,GAAG,IA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vD,8CAA8C;AAC9C,MAAa,UAAU;IAItB,YAAY,GAAW,EAAE,UAAmB,IAAI;QAC/C,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACxB,CAAC;IAED,GAAG,CAAC,YAAwB;QAC3B,aAAa;QACb,OAAO,qBAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,YAAY,EAAE,IAAI,CAAC,OAAO,CAAyB,CAAC;IACxF,CAAC;IAED,KAAK,CAAC,KAAgE;QACrE,MAAM,aAAa,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QACjC,MAAM,WAAW,GAAG,iBAAK,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;QAChD,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;QACtB,OAAO,WAAW,CAAC;IACpB,CAAC;IAED,GAAG,CAAC,KAAgB;QACnB,aAAa;QACb,qBAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACjD,OAAO,KAAK,CAAC;IACd,CAAC;IAED,MAAM;QACL,qBAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;IAED,UAAU;QACT,qBAAa,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACpC,CAAC;CACD;AAlCD,gCAkCC"}
1
+ {"version":3,"file":"StorageModule.js","sourceRoot":"","sources":["../../../src/main/app-frontend/modules/StorageModule.ts"],"names":[],"mappings":";;;AAAA,qEAAkE;AAClE,gFAAuE;AACvE,mEAA6D;AAK7D,MAAa,mBACZ,SAAQ,eAAM;IAGd;QACC,KAAK,CAAC,eAAe,CAAC,CAAC;QAHhB,UAAK,GAA8C,EAAE,CAAC;QAUtD,uBAAkB,GAAG,CAAC,CAAe,EAAE,EAAE;YAChD,MAAM,UAAU,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AAC;AAEvD,8CAA8C;AAC9C,MAAa,UAAU;IAItB,YAAY,GAAW,EAAE,UAAmB,IAAI;QAC/C,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACxB,CAAC;IAED,GAAG,CAAC,YAAwB;QAC3B,aAAa;QACb,OAAO,qBAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,YAAY,EAAE,IAAI,CAAC,OAAO,CAAyB,CAAC;IACxF,CAAC;IAED,KAAK,CAAC,KAAgE;QACrE,MAAM,aAAa,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QACjC,MAAM,WAAW,GAAG,mBAAK,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;QAChD,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;QACtB,OAAO,WAAW,CAAC;IACpB,CAAC;IAED,GAAG,CAAC,KAAgB;QACnB,aAAa;QACb,qBAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACjD,OAAO,KAAK,CAAC;IACd,CAAC;IAED,MAAM;QACL,qBAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;IAED,UAAU;QACT,qBAAa,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACpC,CAAC;CACD;AAlCD,gCAkCC"}
@@ -1,4 +1,4 @@
1
- import { Module } from "@intuitionrobotics/ts-common";
1
+ import { Module } from "@intuitionrobotics/ts-common/core/module";
2
2
  declare type Config = {
3
3
  appName: string;
4
4
  themeColor: string;
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ThunderstormModule = void 0;
4
- const ts_common_1 = require("@intuitionrobotics/ts-common");
5
- class ThunderstormModule_Class extends ts_common_1.Module {
4
+ const module_1 = require("@intuitionrobotics/ts-common/core/module");
5
+ class ThunderstormModule_Class extends module_1.Module {
6
6
  constructor() {
7
7
  super("ThunderstormModule");
8
- this.setDefaultConfig({ appName: "Thunderstorm-WebApp" });
8
+ this.setConfig({ appName: "Thunderstorm-WebApp" });
9
9
  }
10
10
  init() {
11
11
  this.setAppName(this.config.appName);
@@ -1 +1 @@
1
- {"version":3,"file":"ThunderstormModule.js","sourceRoot":"","sources":["../../../src/main/app-frontend/modules/ThunderstormModule.ts"],"names":[],"mappings":";;;AAAA,4DAAoD;AAOpD,MAAM,wBACL,SAAQ,kBAAc;IAEtB;QACC,KAAK,CAAC,oBAAoB,CAAC,CAAC;QAC5B,IAAI,CAAC,gBAAgB,CAAC,EAAC,OAAO,EAAE,qBAAqB,EAAC,CAAC,CAAC;IACzD,CAAC;IAED,IAAI;QACH,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACrC,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAClD,CAAC;IAED,UAAU,CAAC,OAAe;QACzB,QAAQ,CAAC,KAAK,GAAG,OAAO,CAAA;IACzB,CAAC;IAED,mBAAmB,CAAC,UAAkB;QACrC,IAAI,QAAQ,GAA2B,QAAQ,CAAC,IAAI,CAAC,aAAa,CAAC,0BAA0B,CAAC,CAAC;QAC/F,IAAI,CAAC,QAAQ,EAAE;YACd,QAAQ,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;YAC1C,QAAQ,CAAC,IAAI,GAAG,aAAa,CAAC;YAC9B,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;SAC/D;QAED,QAAQ,CAAC,YAAY,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;IAC9C,CAAC;IAED,UAAU;QACT,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC;IAC5B,CAAC;CACD;AAEY,QAAA,kBAAkB,GAAG,IAAI,wBAAwB,EAAE,CAAC"}
1
+ {"version":3,"file":"ThunderstormModule.js","sourceRoot":"","sources":["../../../src/main/app-frontend/modules/ThunderstormModule.ts"],"names":[],"mappings":";;;AAAA,qEAAkE;AAOlE,MAAM,wBACL,SAAQ,eAAc;IAEtB;QACC,KAAK,CAAC,oBAAoB,CAAC,CAAC;QAC5B,IAAI,CAAC,SAAS,CAAC,EAAC,OAAO,EAAE,qBAAqB,EAAC,CAAC,CAAC;IAClD,CAAC;IAED,IAAI;QACH,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACrC,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAClD,CAAC;IAED,UAAU,CAAC,OAAe;QACzB,QAAQ,CAAC,KAAK,GAAG,OAAO,CAAA;IACzB,CAAC;IAED,mBAAmB,CAAC,UAAkB;QACrC,IAAI,QAAQ,GAA2B,QAAQ,CAAC,IAAI,CAAC,aAAa,CAAC,0BAA0B,CAAC,CAAC;QAC/F,IAAI,CAAC,QAAQ,EAAE;YACd,QAAQ,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;YAC1C,QAAQ,CAAC,IAAI,GAAG,aAAa,CAAC;YAC9B,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;SAC/D;QAED,QAAQ,CAAC,YAAY,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;IAC9C,CAAC;IAED,UAAU;QACT,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC;IAC5B,CAAC;CACD;AAEY,QAAA,kBAAkB,GAAG,IAAI,wBAAwB,EAAE,CAAC"}
@@ -1,24 +1,4 @@
1
1
  "use strict";
2
- /*
3
- * Thunderstorm is a full web app framework!
4
- *
5
- * Typescript & Express backend infrastructure that natively runs on firebase function
6
- * Typescript & React frontend infrastructure
7
- *
8
- * Copyright (C) 2020 Intuition Robotics
9
- *
10
- * Licensed under the Apache License, Version 2.0 (the "License");
11
- * you may not use this file except in compliance with the License.
12
- * You may obtain a copy of the License at
13
- *
14
- * http://www.apache.org/licenses/LICENSE-2.0
15
- *
16
- * Unless required by applicable law or agreed to in writing, software
17
- * distributed under the License is distributed on an "AS IS" BASIS,
18
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
- * See the License for the specific language governing permissions and
20
- * limitations under the License.
21
- */
22
2
  Object.defineProperty(exports, "__esModule", { value: true });
23
3
  exports.ReactEntryComponentInjector = void 0;
24
4
  const React = require("react");
@@ -1 +1 @@
1
- {"version":3,"file":"ReactEntryComponentInjector.js","sourceRoot":"","sources":["../../../../src/main/app-frontend/modules/component-loader/ReactEntryComponentInjector.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;AAEH,+BAA+B;AAC/B,qFAA6E;AAC7E,4DAAuD;AAgBvD,MAAa,2BACZ,SAAQ,6BAA2B;IAKnC,YAAY,KAAY;QACvB,KAAK,CAAC,KAAK,CAAC,CAAC;QAHN,UAAK,GAAoC,KAAK,CAAC,SAAS,EAAE,CAAC;QAOnE,yBAAoB,GAAG,CAAC,GAAW,EAAE,OAAgB,EAAE,EAAE;YACxD,IAAI,GAAG,KAAK,IAAI,CAAC,KAAK,CAAC,GAAG;gBACzB,OAAO;YAER,IAAI,CAAC,OAAO;gBACZ,qCAAqC;gBACpC,OAAO;YAER,IAAI,CAAC,eAAe,CAAC,4DAA2B,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;QAChE,CAAC,CAAC;QAZD,IAAI,CAAC,KAAK,GAAG,EAAC,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,EAAC,CAAC;IAC5C,CAAC;IAaO,eAAe,CAAC,IAAU;;QACjC,MAAA,IAAI,CAAC,KAAK,CAAC,OAAO,0CAAE,WAAW,CAAC,IAAI,EAAE;QACtC,IAAI,CAAC,QAAQ,CAAC,EAAC,OAAO,EAAE,KAAK,EAAC,CAAC,CAAC;IACjC,CAAC;IAED,iBAAiB;QAChB,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC;QAC3B,MAAM,IAAI,GAAG,4DAA2B,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACtD,IAAI,IAAI;YACP,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;QAEnC,4DAA2B,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,QAAQ,EAAC,CAAC,CAAC,CAAC;QACrF,IAAI,CAAC,QAAQ,CAAC,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC,CAAC;IAChC,CAAC;IAED,MAAM;QACL,OAAO,6BAAK,GAAG,EAAE,IAAI,CAAC,KAAK,EAAE,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,IAAG,IAAI,CAAC,SAAS,EAAE,CAAO,CAAC;IAC3E,CAAC;IAEO,SAAS;QAChB,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC;QACjC,IAAI,MAAM;YACT,OAAO,oBAAC,MAAM,IAAC,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,CAAC;QAEjD,OAAO,6BAAK,KAAK,EAAE,EAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAC;YAAG,IAAI,CAAC,KAAK,CAAC,QAAQ;iBAAS,CAAC;IACnF,CAAC;CACD;AAhDD,kEAgDC"}
1
+ {"version":3,"file":"ReactEntryComponentInjector.js","sourceRoot":"","sources":["../../../../src/main/app-frontend/modules/component-loader/ReactEntryComponentInjector.tsx"],"names":[],"mappings":";;;AAAA,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AC,KAAK,EAAE,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,IAAG,IAAI,CAAC,SAAS,EAAE,CAAO,CAAC;IAC3E,CAAC;IAEO,SAAS;QAChB,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC;QACjC,IAAI,MAAM;YACT,OAAO,oBAAC,MAAM,IAAC,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,CAAC;QAEjD,OAAO,6BAAK,KAAK,EAAE,EAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAC;YAAG,IAAI,CAAC,KAAK,CAAC,QAAQ;iBAAS,CAAC;IACnF,CAAC;CACD;AAhDD,kEAgDC"}
@@ -1,4 +1,4 @@
1
- import { Module } from "@intuitionrobotics/ts-common";
1
+ import { Module } from "@intuitionrobotics/ts-common/core/module";
2
2
  export declare class PageLoadingModule_Class extends Module<{}> {
3
3
  constructor();
4
4
  private readonly injected;
@@ -1,39 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EntryComponentLoadingModule = exports.PageLoadingModule_Class = void 0;
4
- /*
5
- * Thunderstorm is a full web app framework!
6
- *
7
- * Typescript & Express backend infrastructure that natively runs on firebase function
8
- * Typescript & React frontend infrastructure
9
- *
10
- * Copyright (C) 2020 Intuition Robotics
11
- *
12
- * Licensed under the Apache License, Version 2.0 (the "License");
13
- * you may not use this file except in compliance with the License.
14
- * You may obtain a copy of the License at
15
- *
16
- * http://www.apache.org/licenses/LICENSE-2.0
17
- *
18
- * Unless required by applicable law or agreed to in writing, software
19
- * distributed under the License is distributed on an "AS IS" BASIS,
20
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21
- * See the License for the specific language governing permissions and
22
- * limitations under the License.
23
- */
24
- const index_1 = require("../../../index");
25
- const ts_common_1 = require("@intuitionrobotics/ts-common");
26
- // noinspection TypeScriptPreferShortImport
27
4
  const XhrHttpModule_1 = require("../http/XhrHttpModule");
28
5
  const HistoryModule_1 = require("../HistoryModule");
29
- class PageLoadingModule_Class extends ts_common_1.Module {
6
+ const types_1 = require("../../../shared/types");
7
+ const module_1 = require("@intuitionrobotics/ts-common/core/module");
8
+ class PageLoadingModule_Class extends module_1.Module {
30
9
  constructor() {
31
10
  super("PageLoadingModule");
32
11
  this.injected = {};
33
12
  }
34
13
  loadScript(src, progressListener) {
35
14
  XhrHttpModule_1.XhrHttpModule
36
- .createRequest(index_1.HttpMethod.GET, src)
15
+ .createRequest(types_1.HttpMethod.GET, src)
37
16
  .setUrl(`${HistoryModule_1.BrowserHistoryModule.getOrigin()}/${src}`)
38
17
  .setOnProgressListener((ev) => {
39
18
  const progress = ev.loaded / ev.total;
@@ -1 +1 @@
1
- {"version":3,"file":"entry-component-loading-module.js","sourceRoot":"","sources":["../../../../src/main/app-frontend/modules/component-loader/entry-component-loading-module.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,0CAIwB;AAExB,4DAAoD;AACpD,2CAA2C;AAC3C,yDAAoD;AACpD,oDAAsD;AAItD,MAAa,uBACZ,SAAQ,kBAAU;IAElB;QACC,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAGX,aAAQ,GAAyC,EAAE,CAAC;IAFrE,CAAC;IAID,UAAU,CAAC,GAAW,EAAE,gBAA4C;QACnE,6BAAa;aACX,aAAa,CAAqB,kBAAU,CAAC,GAAG,EAAE,GAAG,CAAC;aACtD,MAAM,CAAC,GAAG,oCAAoB,CAAC,SAAS,EAAE,IAAI,GAAG,EAAE,CAAC;aACpD,qBAAqB,CAAC,CAAC,EAAe,EAAE,EAAE;YAC1C,MAAM,QAAQ,GAAG,EAAE,CAAC,MAAM,GAAG,EAAE,CAAC,KAAK,CAAC;YACtC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;QAC5B,CAAC,CAAC;aACD,OAAO,CAAC,QAAQ,CAAC,EAAE;YACnB,MAAM,UAAU,GAAsB,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;YACvE,UAAU,CAAC,SAAS,GAAG,QAAQ,CAAC;YAChC,UAAU,CAAC,EAAE,GAAG,GAAG,CAAC;YACpB,UAAU,CAAC,KAAK,GAAG,IAAI,CAAC;YACxB,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,UAAU,CAAC;QACjC,CAAC,CAAC,CAAC;IACL,CAAC;IAED,OAAO,CAAC,GAAW;QAClB,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;IAC3B,CAAC;CACD;AA7BD,0DA6BC;AAEY,QAAA,2BAA2B,GAAG,IAAI,uBAAuB,EAAE,CAAC"}
1
+ {"version":3,"file":"entry-component-loading-module.js","sourceRoot":"","sources":["../../../../src/main/app-frontend/modules/component-loader/entry-component-loading-module.tsx"],"names":[],"mappings":";;;AAAA,yDAAoD;AACpD,oDAAsD;AACtD,iDAA+D;AAC/D,qEAAgE;AAKhE,MAAa,uBACT,SAAQ,eAAU;IAElB;QACI,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAGd,aAAQ,GAAyC,EAAE,CAAC;IAFrE,CAAC;IAID,UAAU,CAAC,GAAW,EAAE,gBAA4C;QAChE,6BAAa;aACR,aAAa,CAAqB,kBAAU,CAAC,GAAG,EAAE,GAAG,CAAC;aACtD,MAAM,CAAC,GAAG,oCAAoB,CAAC,SAAS,EAAE,IAAI,GAAG,EAAE,CAAC;aACpD,qBAAqB,CAAC,CAAC,EAAe,EAAE,EAAE;YACvC,MAAM,QAAQ,GAAG,EAAE,CAAC,MAAM,GAAG,EAAE,CAAC,KAAK,CAAC;YACtC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;QAC/B,CAAC,CAAC;aACD,OAAO,CAAC,QAAQ,CAAC,EAAE;YAChB,MAAM,UAAU,GAAsB,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;YACvE,UAAU,CAAC,SAAS,GAAG,QAAQ,CAAC;YAChC,UAAU,CAAC,EAAE,GAAG,GAAG,CAAC;YACpB,UAAU,CAAC,KAAK,GAAG,IAAI,CAAC;YACxB,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,UAAU,CAAC;QACpC,CAAC,CAAC,CAAC;IACX,CAAC;IAED,OAAO,CAAC,GAAW;QACf,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;IAC9B,CAAC;CACJ;AA7BD,0DA6BC;AAEY,QAAA,2BAA2B,GAAG,IAAI,uBAAuB,EAAE,CAAC"}
@@ -1,30 +1,8 @@
1
1
  "use strict";
2
- /*
3
- * Thunderstorm is a full web app framework!
4
- *
5
- * Typescript & Express backend infrastructure that natively runs on firebase function
6
- * Typescript & React frontend infrastructure
7
- *
8
- * Copyright (C) 2020 Intuition Robotics
9
- *
10
- * Licensed under the Apache License, Version 2.0 (the "License");
11
- * you may not use this file except in compliance with the License.
12
- * You may obtain a copy of the License at
13
- *
14
- * http://www.apache.org/licenses/LICENSE-2.0
15
- *
16
- * Unless required by applicable law or agreed to in writing, software
17
- * distributed under the License is distributed on an "AS IS" BASIS,
18
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
- * See the License for the specific language governing permissions and
20
- * limitations under the License.
21
- */
22
2
  Object.defineProperty(exports, "__esModule", { value: true });
23
3
  exports.Dialog = exports.DialogButton_Cancel = exports.DialogButton_Close = exports.DialogButton_Redo = exports.DialogButton_Undo = exports.DialogButton_Save = exports.DialogButton_Submit = void 0;
24
4
  const React = require("react");
25
- // noinspection TypeScriptPreferShortImport
26
5
  const DialogModule_1 = require("./DialogModule");
27
- // noinspection TypeScriptPreferShortImport
28
6
  const BaseComponent_1 = require("../../core/BaseComponent");
29
7
  const tools_1 = require("../../utils/tools");
30
8
  const modalOverlay = {