@finos/legend-application 14.0.4 → 15.0.1

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 (261) hide show
  1. package/lib/__lib__/LegendApplicationDocumentation.d.ts.map +1 -0
  2. package/lib/__lib__/LegendApplicationDocumentation.js.map +1 -0
  3. package/lib/{application → __lib__}/LegendApplicationEvent.d.ts +0 -1
  4. package/lib/__lib__/LegendApplicationEvent.d.ts.map +1 -0
  5. package/lib/{application → __lib__}/LegendApplicationEvent.js +0 -1
  6. package/lib/__lib__/LegendApplicationEvent.js.map +1 -0
  7. package/lib/__lib__/LegendApplicationNavigation.d.ts +19 -0
  8. package/lib/__lib__/LegendApplicationNavigation.d.ts.map +1 -0
  9. package/lib/__lib__/LegendApplicationNavigation.js +20 -0
  10. package/lib/__lib__/LegendApplicationNavigation.js.map +1 -0
  11. package/lib/__lib__/LegendApplicationSetting.d.ts.map +1 -0
  12. package/lib/__lib__/LegendApplicationSetting.js.map +1 -0
  13. package/lib/{application → __lib__}/LegendApplicationTelemetry.d.ts +0 -11
  14. package/lib/__lib__/LegendApplicationTelemetry.d.ts.map +1 -0
  15. package/lib/{application → __lib__}/LegendApplicationTelemetry.js +0 -4
  16. package/lib/__lib__/LegendApplicationTelemetry.js.map +1 -0
  17. package/lib/__lib__/LegendApplicationTheme.d.ts.map +1 -0
  18. package/lib/__lib__/LegendApplicationTheme.js.map +1 -0
  19. package/lib/__test__.d.ts +18 -0
  20. package/lib/__test__.d.ts.map +1 -0
  21. package/lib/__test__.js +18 -0
  22. package/lib/__test__.js.map +1 -0
  23. package/lib/application/LegendApplication.d.ts +7 -4
  24. package/lib/application/LegendApplication.d.ts.map +1 -1
  25. package/lib/application/LegendApplication.js +28 -11
  26. package/lib/application/LegendApplication.js.map +1 -1
  27. package/lib/application/LegendApplicationConfig.d.ts +8 -1
  28. package/lib/application/LegendApplicationConfig.d.ts.map +1 -1
  29. package/lib/application/LegendApplicationConfig.js +6 -2
  30. package/lib/application/LegendApplicationConfig.js.map +1 -1
  31. package/lib/browser.d.ts +19 -0
  32. package/lib/browser.d.ts.map +1 -0
  33. package/lib/browser.js +19 -0
  34. package/lib/browser.js.map +1 -0
  35. package/lib/components/{LegendApplicationComponentFrameworkProvider.d.ts → ApplicationComponentFrameworkProvider.d.ts} +2 -2
  36. package/lib/components/ApplicationComponentFrameworkProvider.d.ts.map +1 -0
  37. package/lib/components/{LegendApplicationComponentFrameworkProvider.js → ApplicationComponentFrameworkProvider.js} +3 -3
  38. package/lib/components/ApplicationComponentFrameworkProvider.js.map +1 -0
  39. package/lib/components/ApplicationFrameworkProvider.d.ts +21 -0
  40. package/lib/components/ApplicationFrameworkProvider.d.ts.map +1 -0
  41. package/lib/components/ApplicationFrameworkProvider.js +39 -0
  42. package/lib/components/ApplicationFrameworkProvider.js.map +1 -0
  43. package/lib/components/{shared/DocumentationLink.d.ts → ApplicationPlatformProvider.d.ts} +4 -10
  44. package/lib/components/ApplicationPlatformProvider.d.ts.map +1 -0
  45. package/lib/components/{WebApplicationNavigatorProviderTestUtils.d.ts → ApplicationPlatformProvider.js} +5 -7
  46. package/lib/components/ApplicationPlatformProvider.js.map +1 -0
  47. package/lib/components/ApplicationStoreProvider.d.ts +3 -4
  48. package/lib/components/ApplicationStoreProvider.d.ts.map +1 -1
  49. package/lib/components/ApplicationStoreProvider.js +6 -23
  50. package/lib/components/ApplicationStoreProvider.js.map +1 -1
  51. package/lib/components/{WebApplicationNavigatorProvider.d.ts → BrowserEnvironmentProvider.d.ts} +3 -4
  52. package/lib/components/BrowserEnvironmentProvider.d.ts.map +1 -0
  53. package/lib/components/BrowserEnvironmentProvider.js +31 -0
  54. package/lib/components/BrowserEnvironmentProvider.js.map +1 -0
  55. package/lib/components/VirtualAssistant.d.ts.map +1 -1
  56. package/lib/components/VirtualAssistant.js +17 -9
  57. package/lib/components/VirtualAssistant.js.map +1 -1
  58. package/lib/components/{shared/FuzzySearchAdvancedConfigMenu.d.ts → __test-utils__/BrowserEnvironmentTestUtils.d.ts} +13 -7
  59. package/lib/components/__test-utils__/BrowserEnvironmentTestUtils.d.ts.map +1 -0
  60. package/lib/components/__test-utils__/BrowserEnvironmentTestUtils.js +42 -0
  61. package/lib/components/__test-utils__/BrowserEnvironmentTestUtils.js.map +1 -0
  62. package/lib/index.css +2 -2
  63. package/lib/index.css.map +1 -1
  64. package/lib/index.d.ts +8 -16
  65. package/lib/index.d.ts.map +1 -1
  66. package/lib/index.js +8 -18
  67. package/lib/index.js.map +1 -1
  68. package/lib/package.json +4 -6
  69. package/lib/stores/{shared/PackageableElementOption.d.ts → ApplicationConfig.d.ts} +6 -7
  70. package/lib/stores/ApplicationConfig.d.ts.map +1 -0
  71. package/lib/stores/ApplicationConfig.js +21 -0
  72. package/lib/stores/ApplicationConfig.js.map +1 -0
  73. package/lib/stores/ApplicationNavigationContextService.js +1 -1
  74. package/lib/stores/ApplicationNavigationContextService.js.map +1 -1
  75. package/lib/stores/ApplicationStore.d.ts +4 -8
  76. package/lib/stores/ApplicationStore.d.ts.map +1 -1
  77. package/lib/stores/ApplicationStore.js +14 -14
  78. package/lib/stores/ApplicationStore.js.map +1 -1
  79. package/lib/stores/AssistantService.d.ts +3 -3
  80. package/lib/stores/AssistantService.d.ts.map +1 -1
  81. package/lib/stores/AssistantService.js +18 -10
  82. package/lib/stores/AssistantService.js.map +1 -1
  83. package/lib/stores/CommandService.js +1 -1
  84. package/lib/stores/CommandService.js.map +1 -1
  85. package/lib/stores/Core_LegendApplicationPlugin.d.ts.map +1 -1
  86. package/lib/stores/Core_LegendApplicationPlugin.js +2 -52
  87. package/lib/stores/Core_LegendApplicationPlugin.js.map +1 -1
  88. package/lib/stores/DocumentationService.d.ts +1 -1
  89. package/lib/stores/DocumentationService.d.ts.map +1 -1
  90. package/lib/stores/DocumentationService.js +4 -5
  91. package/lib/stores/DocumentationService.js.map +1 -1
  92. package/lib/stores/LayoutService.js +3 -3
  93. package/lib/stores/LayoutService.js.map +1 -1
  94. package/lib/stores/LegendApplicationPlugin.d.ts +1 -15
  95. package/lib/stores/LegendApplicationPlugin.d.ts.map +1 -1
  96. package/lib/stores/LegendApplicationPlugin.js +0 -5
  97. package/lib/stores/LegendApplicationPlugin.js.map +1 -1
  98. package/lib/stores/SettingService.d.ts +1 -0
  99. package/lib/stores/SettingService.d.ts.map +1 -1
  100. package/lib/stores/SettingService.js +1 -1
  101. package/lib/stores/SettingService.js.map +1 -1
  102. package/lib/stores/__test-utils__/ApplicationStoreTestUtils.d.ts +18 -0
  103. package/lib/stores/__test-utils__/ApplicationStoreTestUtils.d.ts.map +1 -0
  104. package/lib/stores/__test-utils__/ApplicationStoreTestUtils.js +21 -0
  105. package/lib/stores/__test-utils__/ApplicationStoreTestUtils.js.map +1 -0
  106. package/lib/stores/navigation/BrowserNavigator.d.ts +64 -0
  107. package/lib/stores/navigation/BrowserNavigator.d.ts.map +1 -0
  108. package/lib/stores/navigation/{WebApplicationNavigator.js → BrowserNavigator.js} +22 -3
  109. package/lib/stores/navigation/BrowserNavigator.js.map +1 -0
  110. package/lib/stores/navigation/{WebApplicationNavigator.d.ts → DefaultNavigator.d.ts} +3 -12
  111. package/lib/stores/navigation/DefaultNavigator.d.ts.map +1 -0
  112. package/lib/stores/navigation/DefaultNavigator.js +74 -0
  113. package/lib/stores/navigation/DefaultNavigator.js.map +1 -0
  114. package/lib/stores/navigation/NavigationService.d.ts +7 -0
  115. package/lib/stores/navigation/NavigationService.d.ts.map +1 -1
  116. package/lib/stores/navigation/NavigationService.js.map +1 -1
  117. package/lib/stores/platform/ApplicationPlatform.d.ts +24 -0
  118. package/lib/stores/platform/ApplicationPlatform.d.ts.map +1 -0
  119. package/lib/stores/platform/ApplicationPlatform.js +25 -0
  120. package/lib/stores/platform/ApplicationPlatform.js.map +1 -0
  121. package/lib/stores/platform/BrowserPlatform.d.ts +29 -0
  122. package/lib/stores/platform/BrowserPlatform.d.ts.map +1 -0
  123. package/lib/stores/platform/BrowserPlatform.js +39 -0
  124. package/lib/stores/platform/BrowserPlatform.js.map +1 -0
  125. package/lib/stores/storage/StorageService.d.ts +5 -2
  126. package/lib/stores/storage/StorageService.d.ts.map +1 -1
  127. package/lib/stores/storage/StorageService.js +20 -10
  128. package/lib/stores/storage/StorageService.js.map +1 -1
  129. package/lib/stores/terminal/XTerm.d.ts.map +1 -1
  130. package/lib/stores/terminal/XTerm.js +5 -5
  131. package/lib/stores/terminal/XTerm.js.map +1 -1
  132. package/package.json +7 -9
  133. package/src/{application → __lib__}/LegendApplicationEvent.ts +1 -1
  134. package/{lib/stores/shared/PackageableElementOption.js → src/__lib__/LegendApplicationNavigation.ts} +4 -5
  135. package/src/{application → __lib__}/LegendApplicationTelemetry.ts +0 -24
  136. package/src/{components.ts → __test__.ts} +2 -7
  137. package/src/application/LegendApplication.ts +45 -16
  138. package/src/application/LegendApplicationConfig.ts +13 -2
  139. package/src/browser.ts +19 -0
  140. package/src/components/{LegendApplicationComponentFrameworkProvider.tsx → ApplicationComponentFrameworkProvider.tsx} +2 -2
  141. package/src/components/ApplicationFrameworkProvider.tsx +47 -0
  142. package/src/components/ApplicationPlatformProvider.tsx +29 -0
  143. package/src/components/ApplicationStoreProvider.tsx +8 -33
  144. package/src/components/BrowserEnvironmentProvider.tsx +48 -0
  145. package/src/components/VirtualAssistant.tsx +53 -11
  146. package/src/components/__test-utils__/BrowserEnvironmentTestUtils.tsx +63 -0
  147. package/src/index.ts +12 -24
  148. package/src/stores/ApplicationConfig.ts +22 -0
  149. package/src/stores/ApplicationNavigationContextService.ts +1 -1
  150. package/src/stores/ApplicationStore.ts +18 -19
  151. package/src/stores/AssistantService.ts +20 -9
  152. package/src/stores/CommandService.ts +1 -1
  153. package/src/stores/Core_LegendApplicationPlugin.ts +2 -78
  154. package/src/stores/DocumentationService.ts +4 -5
  155. package/src/stores/LayoutService.ts +3 -3
  156. package/src/stores/LegendApplicationPlugin.ts +1 -21
  157. package/src/stores/SettingService.ts +2 -1
  158. package/src/stores/__test-utils__/ApplicationStoreTestUtils.ts +24 -0
  159. package/src/stores/navigation/{WebApplicationNavigator.ts → BrowserNavigator.ts} +41 -2
  160. package/src/stores/navigation/DefaultNavigator.ts +150 -0
  161. package/src/stores/navigation/NavigationService.ts +8 -0
  162. package/src/stores/{shared/PackageableElementOption.ts → platform/ApplicationPlatform.ts} +14 -11
  163. package/src/stores/platform/BrowserPlatform.ts +54 -0
  164. package/src/stores/storage/StorageService.ts +32 -14
  165. package/src/stores/terminal/XTerm.ts +8 -5
  166. package/tsconfig.json +19 -23
  167. package/lib/application/LegendApplicationDocumentation.d.ts.map +0 -1
  168. package/lib/application/LegendApplicationDocumentation.js.map +0 -1
  169. package/lib/application/LegendApplicationEvent.d.ts.map +0 -1
  170. package/lib/application/LegendApplicationEvent.js.map +0 -1
  171. package/lib/application/LegendApplicationSetting.d.ts.map +0 -1
  172. package/lib/application/LegendApplicationSetting.js.map +0 -1
  173. package/lib/application/LegendApplicationTelemetry.d.ts.map +0 -1
  174. package/lib/application/LegendApplicationTelemetry.js.map +0 -1
  175. package/lib/application/LegendApplicationTheme.d.ts.map +0 -1
  176. package/lib/application/LegendApplicationTheme.js.map +0 -1
  177. package/lib/components/ApplicationStoreProviderTestUtils.d.ts +0 -31
  178. package/lib/components/ApplicationStoreProviderTestUtils.d.ts.map +0 -1
  179. package/lib/components/ApplicationStoreProviderTestUtils.js +0 -32
  180. package/lib/components/ApplicationStoreProviderTestUtils.js.map +0 -1
  181. package/lib/components/LegendApplicationComponentFrameworkProvider.d.ts.map +0 -1
  182. package/lib/components/LegendApplicationComponentFrameworkProvider.js.map +0 -1
  183. package/lib/components/WebApplicationNavigatorProvider.d.ts.map +0 -1
  184. package/lib/components/WebApplicationNavigatorProvider.js +0 -29
  185. package/lib/components/WebApplicationNavigatorProvider.js.map +0 -1
  186. package/lib/components/WebApplicationNavigatorProviderTestUtils.d.ts.map +0 -1
  187. package/lib/components/WebApplicationNavigatorProviderTestUtils.js +0 -28
  188. package/lib/components/WebApplicationNavigatorProviderTestUtils.js.map +0 -1
  189. package/lib/components/shared/DocumentationLink.d.ts.map +0 -1
  190. package/lib/components/shared/DocumentationLink.js +0 -53
  191. package/lib/components/shared/DocumentationLink.js.map +0 -1
  192. package/lib/components/shared/FuzzySearchAdvancedConfigMenu.d.ts.map +0 -1
  193. package/lib/components/shared/FuzzySearchAdvancedConfigMenu.js +0 -37
  194. package/lib/components/shared/FuzzySearchAdvancedConfigMenu.js.map +0 -1
  195. package/lib/components/shared/PackageableElementOptionLabel.d.ts +0 -22
  196. package/lib/components/shared/PackageableElementOptionLabel.d.ts.map +0 -1
  197. package/lib/components/shared/PackageableElementOptionLabel.js +0 -46
  198. package/lib/components/shared/PackageableElementOptionLabel.js.map +0 -1
  199. package/lib/components/shared/TabManager.d.ts +0 -24
  200. package/lib/components/shared/TabManager.d.ts.map +0 -1
  201. package/lib/components/shared/TabManager.js +0 -117
  202. package/lib/components/shared/TabManager.js.map +0 -1
  203. package/lib/components.d.ts +0 -21
  204. package/lib/components.d.ts.map +0 -1
  205. package/lib/components.js +0 -21
  206. package/lib/components.js.map +0 -1
  207. package/lib/const.d.ts +0 -35
  208. package/lib/const.d.ts.map +0 -1
  209. package/lib/const.js +0 -39
  210. package/lib/const.js.map +0 -1
  211. package/lib/stores/ApplicationStoreTestUtils.d.ts +0 -41
  212. package/lib/stores/ApplicationStoreTestUtils.d.ts.map +0 -1
  213. package/lib/stores/ApplicationStoreTestUtils.js +0 -70
  214. package/lib/stores/ApplicationStoreTestUtils.js.map +0 -1
  215. package/lib/stores/navigation/WebApplicationNavigator.d.ts.map +0 -1
  216. package/lib/stores/navigation/WebApplicationNavigator.js.map +0 -1
  217. package/lib/stores/navigation/WebApplicationRouter.d.ts +0 -22
  218. package/lib/stores/navigation/WebApplicationRouter.d.ts.map +0 -1
  219. package/lib/stores/navigation/WebApplicationRouter.js +0 -25
  220. package/lib/stores/navigation/WebApplicationRouter.js.map +0 -1
  221. package/lib/stores/pure-language/PureLanguageCodeEditorSupport.d.ts +0 -70
  222. package/lib/stores/pure-language/PureLanguageCodeEditorSupport.d.ts.map +0 -1
  223. package/lib/stores/pure-language/PureLanguageCodeEditorSupport.js +0 -237
  224. package/lib/stores/pure-language/PureLanguageCodeEditorSupport.js.map +0 -1
  225. package/lib/stores/pure-language/PureLanguageSupport.d.ts +0 -39
  226. package/lib/stores/pure-language/PureLanguageSupport.d.ts.map +0 -1
  227. package/lib/stores/pure-language/PureLanguageSupport.js +0 -437
  228. package/lib/stores/pure-language/PureLanguageSupport.js.map +0 -1
  229. package/lib/stores/shared/FuzzySearchAdvancedConfigState.d.ts +0 -30
  230. package/lib/stores/shared/FuzzySearchAdvancedConfigState.d.ts.map +0 -1
  231. package/lib/stores/shared/FuzzySearchAdvancedConfigState.js +0 -59
  232. package/lib/stores/shared/FuzzySearchAdvancedConfigState.js.map +0 -1
  233. package/lib/stores/shared/PackageableElementOption.d.ts.map +0 -1
  234. package/lib/stores/shared/PackageableElementOption.js.map +0 -1
  235. package/lib/stores/shared/TabManagerState.d.ts +0 -40
  236. package/lib/stores/shared/TabManagerState.d.ts.map +0 -1
  237. package/lib/stores/shared/TabManagerState.js +0 -93
  238. package/lib/stores/shared/TabManagerState.js.map +0 -1
  239. package/src/components/ApplicationStoreProviderTestUtils.tsx +0 -59
  240. package/src/components/WebApplicationNavigatorProvider.tsx +0 -46
  241. package/src/components/WebApplicationNavigatorProviderTestUtils.tsx +0 -37
  242. package/src/components/shared/DocumentationLink.tsx +0 -87
  243. package/src/components/shared/FuzzySearchAdvancedConfigMenu.tsx +0 -73
  244. package/src/components/shared/PackageableElementOptionLabel.tsx +0 -85
  245. package/src/components/shared/TabManager.tsx +0 -288
  246. package/src/const.ts +0 -40
  247. package/src/stores/ApplicationStoreTestUtils.ts +0 -107
  248. package/src/stores/navigation/WebApplicationRouter.ts +0 -49
  249. package/src/stores/pure-language/PureLanguageCodeEditorSupport.ts +0 -338
  250. package/src/stores/pure-language/PureLanguageSupport.ts +0 -498
  251. package/src/stores/shared/FuzzySearchAdvancedConfigState.ts +0 -65
  252. package/src/stores/shared/TabManagerState.ts +0 -124
  253. /package/lib/{application → __lib__}/LegendApplicationDocumentation.d.ts +0 -0
  254. /package/lib/{application → __lib__}/LegendApplicationDocumentation.js +0 -0
  255. /package/lib/{application → __lib__}/LegendApplicationSetting.d.ts +0 -0
  256. /package/lib/{application → __lib__}/LegendApplicationSetting.js +0 -0
  257. /package/lib/{application → __lib__}/LegendApplicationTheme.d.ts +0 -0
  258. /package/lib/{application → __lib__}/LegendApplicationTheme.js +0 -0
  259. /package/src/{application → __lib__}/LegendApplicationDocumentation.ts +0 -0
  260. /package/src/{application → __lib__}/LegendApplicationSetting.ts +0 -0
  261. /package/src/{application → __lib__}/LegendApplicationTheme.ts +0 -0
@@ -20,28 +20,24 @@ import {
20
20
  guaranteeIsBoolean,
21
21
  guaranteeIsObject,
22
22
  isNonNullable,
23
+ returnUndefOnError,
24
+ isEmpty,
23
25
  } from '@finos/legend-shared';
24
26
  import type { GenericLegendApplicationStore } from '../ApplicationStore.js';
25
27
  import { LocalStorage } from './ApplicationStorage.js';
26
28
 
27
29
  type StoredValue = object | string | number | boolean;
30
+ type StorageStoreData = Record<PropertyKey, StoredValue>;
28
31
 
29
32
  export class StorageStore {
30
33
  readonly storeIndex;
31
34
  readonly storageService: StorageService;
32
- private readonly data!: Record<PropertyKey, StoredValue>;
35
+ private readonly data!: StorageStoreData;
33
36
 
34
37
  constructor(storageService: StorageService, storeIndex: string) {
35
38
  this.storageService = storageService;
36
39
  this.storeIndex = storeIndex;
37
- const store = this.storageService.storage.getItem(this.storeIndex);
38
-
39
- if (store) {
40
- const data = JSON.parse(store) as Record<PropertyKey, StoredValue>;
41
- this.data = data;
42
- } else {
43
- this.data = {};
44
- }
40
+ this.data = this.storageService.getIndex(this.storeIndex) ?? {};
45
41
  }
46
42
 
47
43
  getValue(key: string): StoredValue | undefined {
@@ -78,19 +74,41 @@ export class StorageStore {
78
74
  } else {
79
75
  delete this.data[key];
80
76
  }
81
- this.storageService.storage.setItem(
82
- this.storeIndex,
83
- JSON.stringify(this.data),
84
- );
77
+ this.storageService.updateIndex(this.storeIndex, this.data);
85
78
  }
86
79
  }
87
80
 
88
81
  export class StorageService {
89
82
  readonly applicationStore: GenericLegendApplicationStore;
90
- readonly storage: LocalStorage;
83
+ private readonly storage: LocalStorage;
84
+ private readonly data!: Record<string, StorageStoreData>;
91
85
 
92
86
  constructor(applicationStore: GenericLegendApplicationStore) {
93
87
  this.applicationStore = applicationStore;
94
88
  this.storage = new LocalStorage();
89
+ const data = this.storage.getItem(
90
+ applicationStore.config.applicationStorageKey,
91
+ );
92
+ this.data = data
93
+ ? returnUndefOnError(
94
+ () => JSON.parse(data) as Record<string, StorageStoreData>,
95
+ ) ?? {}
96
+ : {};
97
+ }
98
+
99
+ getIndex(index: string): StorageStoreData | undefined {
100
+ return this.data[index];
101
+ }
102
+
103
+ updateIndex(index: string, value: StorageStoreData): void {
104
+ if (isEmpty(value)) {
105
+ delete this.data[index];
106
+ } else {
107
+ this.data[index] = value;
108
+ }
109
+ this.storage.setItem(
110
+ this.applicationStore.config.applicationStorageKey,
111
+ JSON.stringify(this.data),
112
+ );
95
113
  }
96
114
  }
@@ -28,7 +28,10 @@ import {
28
28
  } from 'xterm-addon-search';
29
29
  import { Unicode11Addon as XTermUnicode11Addon } from 'xterm-addon-unicode11';
30
30
  import { WebglAddon as XTermWebglAddon } from 'xterm-addon-webgl';
31
- import { MONOSPACED_FONT_FAMILY, TAB_SIZE } from '../../const.js';
31
+ import {
32
+ DEFAULT_MONOSPACED_FONT_FAMILY,
33
+ DEFAULT_TAB_SIZE,
34
+ } from '../ApplicationConfig.js';
32
35
  import {
33
36
  Terminal,
34
37
  DISPLAY_ANSI_ESCAPE,
@@ -46,8 +49,8 @@ import {
46
49
  prettyCONSTName,
47
50
  uniqBy,
48
51
  } from '@finos/legend-shared';
49
- import { APPLICATION_EVENT } from '../../application/LegendApplicationEvent.js';
50
- import { forceDispatchKeyboardEvent } from '../../components/LegendApplicationComponentFrameworkProvider.js';
52
+ import { APPLICATION_EVENT } from '../../__lib__/LegendApplicationEvent.js';
53
+ import { forceDispatchKeyboardEvent } from '../../components/ApplicationComponentFrameworkProvider.js';
51
54
 
52
55
  const LEGEND_XTERM_THEME: XTermTheme = {
53
56
  foreground: '#cccccc',
@@ -185,8 +188,8 @@ export class XTerm extends Terminal {
185
188
  letterSpacing: 2,
186
189
  fontWeight: 400,
187
190
  fontWeightBold: 700,
188
- fontFamily: `"${MONOSPACED_FONT_FAMILY}", Menlo, Consolas, monospace`,
189
- tabStopWidth: TAB_SIZE,
191
+ fontFamily: `"${DEFAULT_MONOSPACED_FONT_FAMILY}", Menlo, Consolas, monospace`,
192
+ tabStopWidth: DEFAULT_TAB_SIZE,
190
193
  theme: LEGEND_XTERM_THEME,
191
194
  overviewRulerWidth: 14, // 14px
192
195
  scrollback: 100000, // buffer a substantial content length
package/tsconfig.json CHANGED
@@ -32,21 +32,22 @@
32
32
  }
33
33
  ],
34
34
  "files": [
35
- "./src/components.ts",
36
- "./src/const.ts",
35
+ "./src/__test__.ts",
36
+ "./src/browser.ts",
37
37
  "./src/index.ts",
38
+ "./src/__lib__/LegendApplicationDocumentation.ts",
39
+ "./src/__lib__/LegendApplicationEvent.ts",
40
+ "./src/__lib__/LegendApplicationNavigation.ts",
41
+ "./src/__lib__/LegendApplicationSetting.ts",
42
+ "./src/__lib__/LegendApplicationTelemetry.ts",
43
+ "./src/__lib__/LegendApplicationTheme.ts",
38
44
  "./src/application/LegendApplication.ts",
39
45
  "./src/application/LegendApplicationConfig.ts",
40
- "./src/application/LegendApplicationDocumentation.ts",
41
- "./src/application/LegendApplicationEvent.ts",
42
46
  "./src/application/LegendApplicationPluginManager.ts",
43
- "./src/application/LegendApplicationSetting.ts",
44
- "./src/application/LegendApplicationTelemetry.ts",
45
- "./src/application/LegendApplicationTheme.ts",
46
47
  "./src/stores/AlertService.ts",
48
+ "./src/stores/ApplicationConfig.ts",
47
49
  "./src/stores/ApplicationNavigationContextService.ts",
48
50
  "./src/stores/ApplicationStore.ts",
49
- "./src/stores/ApplicationStoreTestUtils.ts",
50
51
  "./src/stores/AssistantService.ts",
51
52
  "./src/stores/ClipboardService.ts",
52
53
  "./src/stores/CommandService.ts",
@@ -61,35 +62,30 @@
61
62
  "./src/stores/TelemetryService.ts",
62
63
  "./src/stores/TerminalService.ts",
63
64
  "./src/stores/TimeService.ts",
65
+ "./src/stores/__test-utils__/ApplicationStoreTestUtils.ts",
64
66
  "./src/stores/event/EventService.ts",
65
67
  "./src/stores/event/IframeEventNotifierPlugin.ts",
68
+ "./src/stores/navigation/BrowserNavigator.ts",
69
+ "./src/stores/navigation/DefaultNavigator.ts",
66
70
  "./src/stores/navigation/NavigationService.ts",
67
- "./src/stores/navigation/WebApplicationNavigator.ts",
68
- "./src/stores/navigation/WebApplicationRouter.ts",
69
- "./src/stores/pure-language/PureLanguageCodeEditorSupport.ts",
70
- "./src/stores/pure-language/PureLanguageSupport.ts",
71
- "./src/stores/shared/FuzzySearchAdvancedConfigState.ts",
72
- "./src/stores/shared/PackageableElementOption.ts",
73
- "./src/stores/shared/TabManagerState.ts",
71
+ "./src/stores/platform/ApplicationPlatform.ts",
72
+ "./src/stores/platform/BrowserPlatform.ts",
74
73
  "./src/stores/storage/ApplicationStorage.ts",
75
74
  "./src/stores/storage/StorageService.ts",
76
75
  "./src/stores/terminal/Terminal.ts",
77
76
  "./src/stores/terminal/XTerm.ts",
78
77
  "./src/components/ActionAlert.tsx",
78
+ "./src/components/ApplicationComponentFrameworkProvider.tsx",
79
+ "./src/components/ApplicationFrameworkProvider.tsx",
80
+ "./src/components/ApplicationPlatformProvider.tsx",
79
81
  "./src/components/ApplicationStoreProvider.tsx",
80
- "./src/components/ApplicationStoreProviderTestUtils.tsx",
81
82
  "./src/components/BlockingAlert.tsx",
82
- "./src/components/LegendApplicationComponentFrameworkProvider.tsx",
83
+ "./src/components/BrowserEnvironmentProvider.tsx",
83
84
  "./src/components/NotificationManager.tsx",
84
85
  "./src/components/VirtualAssistant.tsx",
85
- "./src/components/WebApplicationNavigatorProvider.tsx",
86
- "./src/components/WebApplicationNavigatorProviderTestUtils.tsx",
87
86
  "./src/components/useApplicationNavigationContext.tsx",
88
87
  "./src/components/useCommands.tsx",
89
- "./src/components/shared/DocumentationLink.tsx",
90
- "./src/components/shared/FuzzySearchAdvancedConfigMenu.tsx",
91
- "./src/components/shared/PackageableElementOptionLabel.tsx",
92
- "./src/components/shared/TabManager.tsx"
88
+ "./src/components/__test-utils__/BrowserEnvironmentTestUtils.tsx"
93
89
  ],
94
90
  "include": [
95
91
  "src/**/*.ts",
@@ -1 +0,0 @@
1
- {"version":3,"file":"LegendApplicationDocumentation.d.ts","sourceRoot":"","sources":["../../src/application/LegendApplicationDocumentation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,oCAAoC;IAC9C,0CAA0C,+CAA+C;CAC1F"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"LegendApplicationDocumentation.js","sourceRoot":"","sources":["../../src/application/LegendApplicationDocumentation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,oCAEX;AAFD,WAAY,oCAAoC;IAC9C,iIAAyF,CAAA;AAC3F,CAAC,EAFW,oCAAoC,GAApC,oCAAoC,KAApC,oCAAoC,QAE/C"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"LegendApplicationEvent.d.ts","sourceRoot":"","sources":["../../src/application/LegendApplicationEvent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,iBAAiB;IAC3B,0BAA0B,8BAA8B;IACxD,yBAAyB,6BAA6B;IACtD,yBAAyB,6BAA6B;IAEtD,kCAAkC,oCAAoC;IACtE,kCAAkC,sCAAsC;IAExE,4BAA4B,4CAA4C;IAExE,4BAA4B,4CAA4C;IACxE,wBAAwB,wCAAwC;IAChE,wCAAwC,wDAAwD;IAEhG,mCAAmC,qEAAqE;IACxG,6CAA6C,6DAA6D;IAE1G,6CAA6C,kEAAkE;IAE/G,wCAAwC,+DAA+D;IACvG,8BAA8B,kCAAkC;IAEhE,oCAAoC,oDAAoD;IACxF,uBAAuB,yCAAyC;IAEhE,oCAAoC,6CAA6C;IAEjF,iBAAiB,sBAAsB;IAEvC,2BAA2B,+BAA+B;IAE1D,4BAA4B,gCAAgC;CAC7D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"LegendApplicationEvent.js","sourceRoot":"","sources":["../../src/application/LegendApplicationEvent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,iBAgCX;AAhCD,WAAY,iBAAiB;IAC3B,6EAAwD,CAAA;IACxD,2EAAsD,CAAA;IACtD,2EAAsD,CAAA;IAEtD,2FAAsE,CAAA;IACtE,6FAAwE,CAAA;IAExE,6FAAwE,CAAA;IAExE,6FAAwE,CAAA;IACxE,qFAAgE,CAAA;IAChE,qHAAgG,CAAA;IAEhG,6HAAwG,CAAA;IACxG,+HAA0G,CAAA;IAE1G,oIAA+G,CAAA;IAE/G,4HAAuG,CAAA;IACvG,qFAAgE,CAAA;IAEhE,6GAAwF,CAAA;IACxF,qFAAgE,CAAA;IAEhE,sGAAiF,CAAA;IAEjF,4DAAuC,CAAA;IAEvC,+EAA0D,CAAA;IAE1D,iFAA4D,CAAA;AAC9D,CAAC,EAhCW,iBAAiB,GAAjB,iBAAiB,KAAjB,iBAAiB,QAgC5B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"LegendApplicationSetting.d.ts","sourceRoot":"","sources":["../../src/application/LegendApplicationSetting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,8BAA8B,EAAE,MAAM,6BAA6B,CAAC;AAE7E,oBAAY,8BAA8B;IACxC,WAAW,kCAAkC;CAC9C;AAED,eAAO,MAAM,iCAAiC;;;;CAI7C,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"LegendApplicationSetting.js","sourceRoot":"","sources":["../../src/application/LegendApplicationSetting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,8BAA8B,EAAE,MAAM,6BAA6B,CAAC;AAE7E,MAAM,CAAN,IAAY,8BAEX;AAFD,WAAY,8BAA8B;IACxC,+EAA6C,CAAA;AAC/C,CAAC,EAFW,8BAA8B,GAA9B,8BAA8B,KAA9B,8BAA8B,QAEzC;AAED,MAAM,CAAC,MAAM,iCAAiC,GAAG;IAC/C,CAAC,8BAA8B,CAAC,WAAW,CAAC,EAAE;QAC5C,YAAY,EAAE,8BAA8B,CAAC,YAAY;KAC1D;CACF,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"LegendApplicationTelemetry.d.ts","sourceRoot":"","sources":["../../src/application/LegendApplicationTelemetry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,2BAA2B,EAEjC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,+BAA+B,CAAC;AACnF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,KAAK,wCAAwC,GAAG;IAC9C,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,KAAK,wDAAwD,GAAG;IAC9D,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,KAAK,8BAA8B,GAAG;IACpC,OAAO,EAAE,aAAa,CAAC;IACvB,YAAY,EAAE,2BAA2B,CAAC;IAC1C,iBAAiB,EAAE,MAAM,CAAC;IAC1B,KAAK,EAAE,2BAA2B,CAAC;IACnC,WAAW,CAAC,EAAE,2BAA2B,CAAC;IAC1C,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,qBAAa,gCAAgC;IAC3C,MAAM,CAAC,2CAA2C,CAChD,gBAAgB,EAAE,gBAAgB,EAClC,gBAAgB,EAAE,6BAA6B,GAC9C,IAAI;IAiBP,MAAM,CAAC,mCAAmC,CACxC,gBAAgB,EAAE,gBAAgB,EAClC,IAAI,EAAE,wCAAwC,GAC7C,IAAI;IAOP,MAAM,CAAC,mDAAmD,CACxD,gBAAgB,EAAE,gBAAgB,EAClC,IAAI,EAAE,wDAAwD,GAC7D,IAAI;IAOP,MAAM,CAAC,qCAAqC,CAC1C,gBAAgB,EAAE,gBAAgB,EAClC,IAAI,EAAE,8BAA8B,GACnC,IAAI;IAOP,MAAM,CAAC,oCAAoC,CACzC,gBAAgB,EAAE,gBAAgB,GACjC,IAAI;CAMR"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"LegendApplicationTelemetry.js","sourceRoot":"","sources":["../../src/application/LegendApplicationTelemetry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAqBhE,MAAM,OAAO,gCAAgC;IAC3C,MAAM,CAAC,2CAA2C,CAChD,gBAAkC,EAClC,gBAA+C;QAE/C,gBAAgB,CAAC,QAAQ,CAAC,iBAAiB,CAAC,yBAAyB,EAAE;YACrE,WAAW,EAAE;gBACX,IAAI,EAAE,gBAAgB,CAAC,MAAM,CAAC,OAAO;gBACrC,OAAO,EAAE,gBAAgB,CAAC,MAAM,CAAC,UAAU;gBAC3C,GAAG,EAAE,gBAAgB,CAAC,MAAM,CAAC,GAAG;aACjC;YACD,OAAO,EAAE;gBACP,SAAS,EAAE,SAAS,CAAC,SAAS;aAC/B;YACD,MAAM,EAAE;gBACN,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM;gBAC5B,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK;aAC3B;SACF,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,mCAAmC,CACxC,gBAAkC,EAClC,IAA8C;QAE9C,gBAAgB,CAAC,QAAQ,CACvB,iBAAiB,CAAC,2BAA2B,EAC7C,IAAI,CACL,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,mDAAmD,CACxD,gBAAkC,EAClC,IAA8D;QAE9D,gBAAgB,CAAC,QAAQ,CACvB,iBAAiB,CAAC,6CAA6C,EAC/D,IAAI,CACL,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,qCAAqC,CAC1C,gBAAkC,EAClC,IAAoC;QAEpC,gBAAgB,CAAC,QAAQ,CACvB,mBAAmB,CAAC,yBAAyB,EAC7C,IAAI,CACL,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,oCAAoC,CACzC,gBAAkC;QAElC,gBAAgB,CAAC,QAAQ,CACvB,iBAAiB,CAAC,4BAA4B,EAC9C,EAAE,CACH,CAAC;IACJ,CAAC;CACF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"LegendApplicationTheme.d.ts","sourceRoot":"","sources":["../../src/application/LegendApplicationTheme.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAE7D,oBAAY,8BAA8B;IACxC,YAAY,iBAAiB;IAC7B,YAAY,iBAAiB;IAC7B,mBAAmB,aAAa;CACjC;AAED,eAAO,MAAM,wBAAwB,EAAE,UAItC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,UAItC,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,UAI7C,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"LegendApplicationTheme.js","sourceRoot":"","sources":["../../src/application/LegendApplicationTheme.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,MAAM,CAAN,IAAY,8BAIX;AAJD,WAAY,8BAA8B;IACxC,+DAA6B,CAAA;IAC7B,+DAA6B,CAAA;IAC7B,kEAAgC,CAAA;AAClC,CAAC,EAJW,8BAA8B,GAA9B,8BAA8B,KAA9B,8BAA8B,QAIzC;AAED,MAAM,CAAC,MAAM,wBAAwB,GAAe;IAClD,IAAI,EAAE,wBAAwB;IAC9B,GAAG,EAAE,8BAA8B,CAAC,YAAY;IAChD,6BAA6B,EAAE,qBAAqB;CACrD,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAe;IAClD,IAAI,EAAE,cAAc;IACpB,GAAG,EAAE,8BAA8B,CAAC,YAAY;IAChD,6BAA6B,EAAE,qBAAqB;CACrD,CAAC;AAEF,MAAM,CAAC,MAAM,+BAA+B,GAAe;IACzD,IAAI,EAAE,qBAAqB;IAC3B,GAAG,EAAE,8BAA8B,CAAC,mBAAmB;IACvD,6BAA6B,EAAE,iBAAiB;CACjD,CAAC"}
@@ -1,31 +0,0 @@
1
- /**
2
- * Copyright (c) 2020-present, Goldman Sachs
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- /// <reference types="react" resolution-mode="require"/>
17
- import { ApplicationStore } from '../stores/ApplicationStore.js';
18
- import { WebApplicationNavigator } from '../stores/navigation/WebApplicationNavigator.js';
19
- import type { LegendApplicationConfig } from '../application/LegendApplicationConfig.js';
20
- import type { LegendApplicationPluginManager } from '../application/LegendApplicationPluginManager.js';
21
- import type { LegendApplicationPlugin } from '../stores/LegendApplicationPlugin.js';
22
- export declare const TEST__ApplicationStoreProvider: React.FC<{
23
- children: React.ReactNode;
24
- config: LegendApplicationConfig;
25
- pluginManager: LegendApplicationPluginManager<LegendApplicationPlugin>;
26
- }>;
27
- export declare const TEST__provideMockedApplicationStore: <T extends LegendApplicationConfig, V extends LegendApplicationPluginManager<LegendApplicationPlugin>>(config: T, pluginManager: V, customization?: {
28
- mock?: ApplicationStore<T, V>;
29
- navigator?: WebApplicationNavigator;
30
- } | undefined) => ApplicationStore<T, V>;
31
- //# sourceMappingURL=ApplicationStoreProviderTestUtils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ApplicationStoreProviderTestUtils.d.ts","sourceRoot":"","sources":["../../src/components/ApplicationStoreProviderTestUtils.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,iDAAiD,CAAC;AAC1F,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AAEzF,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,kDAAkD,CAAC;AACvG,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAGpF,eAAO,MAAM,8BAA8B,EAAE,KAAK,CAAC,EAAE,CAAC;IACpD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,EAAE,uBAAuB,CAAC;IAChC,aAAa,EAAE,8BAA8B,CAAC,uBAAuB,CAAC,CAAC;CACxE,CAIA,CAAC;AAEF,eAAO,MAAM,mCAAmC;;gBAQhC,uBAAuB;wCAetC,CAAC"}
@@ -1,32 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- /**
3
- * Copyright (c) 2020-present, Goldman Sachs
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import { createMemoryHistory } from 'history';
18
- import { ApplicationStore } from '../stores/ApplicationStore.js';
19
- import { WebApplicationNavigator } from '../stores/navigation/WebApplicationNavigator.js';
20
- import { ApplicationStoreProvider } from './ApplicationStoreProvider.js';
21
- import { createMock } from '@finos/legend-shared';
22
- export const TEST__ApplicationStoreProvider = ({ children, config, pluginManager }) => (_jsx(ApplicationStoreProvider, { config: config, pluginManager: pluginManager, children: children }));
23
- export const TEST__provideMockedApplicationStore = (config, pluginManager, customization) => {
24
- const value = customization?.mock ??
25
- new ApplicationStore(config, customization?.navigator ??
26
- new WebApplicationNavigator(createMemoryHistory()), pluginManager);
27
- const MOCK__ApplicationStoreProvider = require('./ApplicationStoreProvider.js'); // eslint-disable-line @typescript-eslint/no-unsafe-assignment
28
- MOCK__ApplicationStoreProvider.useApplicationStore = createMock();
29
- MOCK__ApplicationStoreProvider.useApplicationStore.mockReturnValue(value);
30
- return value;
31
- };
32
- //# sourceMappingURL=ApplicationStoreProviderTestUtils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ApplicationStoreProviderTestUtils.js","sourceRoot":"","sources":["../../src/components/ApplicationStoreProviderTestUtils.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,iDAAiD,CAAC;AAE1F,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAGzE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,MAAM,CAAC,MAAM,8BAA8B,GAItC,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,aAAa,EAAE,EAAE,EAAE,CAAC,CAC5C,KAAC,wBAAwB,IAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,YACnE,QAAQ,GACgB,CAC5B,CAAC;AAEF,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAIjD,MAAS,EACT,aAAgB,EAChB,aAGC,EACuB,EAAE;IAC1B,MAAM,KAAK,GACT,aAAa,EAAE,IAAI;QACnB,IAAI,gBAAgB,CAClB,MAAM,EACN,aAAa,EAAE,SAAS;YACtB,IAAI,uBAAuB,CAAC,mBAAmB,EAAE,CAAC,EACpD,aAAa,CACd,CAAC;IACJ,MAAM,8BAA8B,GAAG,OAAO,CAAC,+BAA+B,CAAC,CAAC,CAAC,8DAA8D;IAC/I,8BAA8B,CAAC,mBAAmB,GAAG,UAAU,EAAE,CAAC;IAClE,8BAA8B,CAAC,mBAAmB,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;IAC1E,OAAO,KAAK,CAAC;AACf,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"LegendApplicationComponentFrameworkProvider.d.ts","sourceRoot":"","sources":["../../src/components/LegendApplicationComponentFrameworkProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAiBH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,+BAA+B,CAAC;AA4DnF;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,UAC9B,aAAa,sDAEnB,IAIF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,CAE7D,CAAC;AAEF,eAAO,MAAM,2CAA2C,WAC9C;IAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;CAAE;;CAqGtC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"LegendApplicationComponentFrameworkProvider.js","sourceRoot":"","sources":["../../src/components/LegendApplicationComponentFrameworkProvider.tsx"],"names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,mBAAmB,eAClB,KAAC,aAAa,KAAG,EACjB,KAAC,WAAW,KAAG,EACf,KAAC,mBAAmB,KAAG,EACvB,KAAC,gBAAgB,KAAG,EACnB,gBAAgB,CAAC,aAAa,CAAC,YAAY,IAAI;YAC9C,0EAA0E;YAC1E,6EAA6E;YAC7E,kBAAkB;YAClB,8EAA8E;YAC9E,iFAAiF;YACjF,qDAAqD;YACrD,KAAC,MAAM,IACL,SAAS,EACP,gBAAgB,CAAC,aAAa,CAAC,cAAc,CAC3C,gBAAgB,CAAC,aAAa,CAAC,0BAA0B;oBACvD,gCAAgC,CAAC,kBAAkB,CACtD,IAAI,IAAI,YAGX,KAAC,QAAQ,IACP,SAAS,EAAC,UAAU,EACpB,IAAI,EAAE,gBAAgB,CAAC,aAAa,CAAC,YAAY,GACjD,GACK,CACV,EACD,KAAC,WAAW,IAAC,OAAO,EAAE,YAAY,YAChC,eACE,SAAS,EAAC,gBAAgB,oBAIxB,gCAAgC,CAAC,mBAAmB;oBAEtD,0GAA0G;oBAC1G,aAAa,EAAE,kBAAkB,aAEjC,KAAC,iBAAiB,IAChB,SAAS,EAAE,gCAAgC,CAAC,kBAAkB,GAC9D,EACD,QAAQ,IACL,GACM,IACM,CACvB,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"WebApplicationNavigatorProvider.d.ts","sourceRoot":"","sources":["../../src/components/WebApplicationNavigatorProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAMH,OAAO,EAAE,uBAAuB,EAAE,MAAM,iDAAiD,CAAC;AAO1F,eAAO,MAAM,+BAA+B,EAAE,KAAK,CAAC,EAAE,CAAC;IACrD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAUA,CAAC;AAEF,eAAO,MAAM,0BAA0B,QAAO,uBAI3C,CAAC"}
@@ -1,29 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- /**
3
- * Copyright (c) 2020-present, Goldman Sachs
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import { guaranteeNonNullable } from '@finos/legend-shared';
18
- import { useLocalObservable } from 'mobx-react-lite';
19
- import { createContext, useContext } from 'react';
20
- import { WebApplicationNavigator } from '../stores/navigation/WebApplicationNavigator.js';
21
- import { useHistory } from 'react-router';
22
- const WebApplicationNavigatorContext = createContext(undefined);
23
- export const WebApplicationNavigatorProvider = ({ children }) => {
24
- const history = useHistory();
25
- const navigator = useLocalObservable(() => new WebApplicationNavigator(history));
26
- return (_jsx(WebApplicationNavigatorContext.Provider, { value: navigator, children: children }));
27
- };
28
- export const useWebApplicationNavigator = () => guaranteeNonNullable(useContext(WebApplicationNavigatorContext), `Can't find web application navigator in context`);
29
- //# sourceMappingURL=WebApplicationNavigatorProvider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WebApplicationNavigatorProvider.js","sourceRoot":"","sources":["../../src/components/WebApplicationNavigatorProvider.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAElD,OAAO,EAAE,uBAAuB,EAAE,MAAM,iDAAiD,CAAC;AAC1F,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,8BAA8B,GAAG,aAAa,CAElD,SAAS,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,+BAA+B,GAEvC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACpB,MAAM,OAAO,GAAG,UAAU,EAAa,CAAC;IACxC,MAAM,SAAS,GAAG,kBAAkB,CAClC,GAAG,EAAE,CAAC,IAAI,uBAAuB,CAAC,OAAO,CAAC,CAC3C,CAAC;IACF,OAAO,CACL,KAAC,8BAA8B,CAAC,QAAQ,IAAC,KAAK,EAAE,SAAS,YACtD,QAAQ,GAC+B,CAC3C,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAA4B,EAAE,CACtE,oBAAoB,CAClB,UAAU,CAAC,8BAA8B,CAAC,EAC1C,iDAAiD,CAClD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"WebApplicationNavigatorProviderTestUtils.d.ts","sourceRoot":"","sources":["../../src/components/WebApplicationNavigatorProviderTestUtils.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,iDAAiD,CAAC;AAC1F,OAAO,EAAuB,KAAK,OAAO,EAAE,MAAM,SAAS,CAAC;AAG5D,eAAO,MAAM,0CAA0C,mBAAoB;IACzE,IAAI,CAAC,EAAE,uBAAuB,CAAC;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,KAAG,uBAaH,CAAC"}
@@ -1,28 +0,0 @@
1
- /**
2
- * Copyright (c) 2020-present, Goldman Sachs
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import { WebApplicationNavigator } from '../stores/navigation/WebApplicationNavigator.js';
17
- import { createMemoryHistory } from 'history';
18
- import { createMock } from '@finos/legend-shared';
19
- export const TEST__provideMockedWebApplicationNavigator = (customization) => {
20
- const value = customization?.mock ??
21
- new WebApplicationNavigator(customization?.history ?? createMemoryHistory());
22
- const MOCK__WebApplicationNavigatorProvider = require('./WebApplicationNavigatorProvider.js'); // eslint-disable-line @typescript-eslint/no-unsafe-assignment
23
- MOCK__WebApplicationNavigatorProvider.useWebApplicationNavigator =
24
- createMock();
25
- MOCK__WebApplicationNavigatorProvider.useWebApplicationNavigator.mockReturnValue(value);
26
- return value;
27
- };
28
- //# sourceMappingURL=WebApplicationNavigatorProviderTestUtils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WebApplicationNavigatorProviderTestUtils.js","sourceRoot":"","sources":["../../src/components/WebApplicationNavigatorProviderTestUtils.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,iDAAiD,CAAC;AAC1F,OAAO,EAAE,mBAAmB,EAAgB,MAAM,SAAS,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,MAAM,CAAC,MAAM,0CAA0C,GAAG,CAAC,aAG1D,EAA2B,EAAE;IAC5B,MAAM,KAAK,GACT,aAAa,EAAE,IAAI;QACnB,IAAI,uBAAuB,CACzB,aAAa,EAAE,OAAO,IAAI,mBAAmB,EAAE,CAChD,CAAC;IACJ,MAAM,qCAAqC,GAAG,OAAO,CAAC,sCAAsC,CAAC,CAAC,CAAC,8DAA8D;IAC7J,qCAAqC,CAAC,0BAA0B;QAC9D,UAAU,EAAE,CAAC;IACf,qCAAqC,CAAC,0BAA0B,CAAC,eAAe,CAC9E,KAAK,CACN,CAAC;IACF,OAAO,KAAK,CAAC;AACf,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DocumentationLink.d.ts","sourceRoot":"","sources":["../../../src/components/shared/DocumentationLink.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAMH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC;IACvC,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC,CAuCA,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC;IAC1C,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC,CAkBA,CAAC"}
@@ -1,53 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- /**
3
- * Copyright (c) 2020-present, Goldman Sachs
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import { clsx, QuestionCircleIcon } from '@finos/legend-art';
18
- import { useApplicationStore } from '../ApplicationStoreProvider.js';
19
- import { shouldDisplayVirtualAssistantDocumentationEntry } from '../../stores/AssistantService.js';
20
- export const DocumentationLink = (props) => {
21
- const { documentationKey, className } = props;
22
- const applicationStore = useApplicationStore();
23
- const documentationEntry = applicationStore.documentationService.getDocEntry(documentationKey);
24
- const openDocLink = (event) => {
25
- event.preventDefault();
26
- event.stopPropagation();
27
- if (documentationEntry) {
28
- if (shouldDisplayVirtualAssistantDocumentationEntry(documentationEntry)) {
29
- applicationStore.assistantService.openDocumentationEntry(documentationKey);
30
- }
31
- else if (documentationEntry.url) {
32
- applicationStore.navigationService.navigator.visitAddress(documentationEntry.url);
33
- }
34
- }
35
- };
36
- if (!documentationEntry ||
37
- (!documentationEntry.url &&
38
- !shouldDisplayVirtualAssistantDocumentationEntry(documentationEntry))) {
39
- return null;
40
- }
41
- return (_jsx("div", { onClick: openDocLink, title: "Click to see documentation", className: clsx('documentation-link', className), children: _jsx(QuestionCircleIcon, {}) }));
42
- };
43
- export const DocumentationPreview = (props) => {
44
- const { documentationKey, text, className } = props;
45
- const applicationStore = useApplicationStore();
46
- const documentationEntry = applicationStore.documentationService.getDocEntry(documentationKey);
47
- const textContent = text ?? documentationEntry?.text;
48
- if (!documentationEntry || !textContent) {
49
- return null;
50
- }
51
- return (_jsxs("div", { className: clsx('documentation-preview', className), children: [_jsx("div", { className: "documentation-preview__text", children: textContent }), _jsx("div", { className: "documentation-preview__hint", children: _jsx(DocumentationLink, { documentationKey: documentationKey }) })] }));
52
- };
53
- //# sourceMappingURL=DocumentationLink.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DocumentationLink.js","sourceRoot":"","sources":["../../../src/components/shared/DocumentationLink.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,+CAA+C,EAAE,MAAM,kCAAkC,CAAC;AAEnG,MAAM,CAAC,MAAM,iBAAiB,GAGzB,CAAC,KAAK,EAAE,EAAE;IACb,MAAM,EAAE,gBAAgB,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAC9C,MAAM,gBAAgB,GAAG,mBAAmB,EAAE,CAAC;IAC/C,MAAM,kBAAkB,GACtB,gBAAgB,CAAC,oBAAoB,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;IACtE,MAAM,WAAW,GAA4C,CAC3D,KAAK,EACC,EAAE;QACR,KAAK,CAAC,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E,cAAK,SAAS,EAAC,6BAA6B,YAC1C,KAAC,iBAAiB,IAAC,gBAAgB,EAAE,gBAAgB,GAAI,GACrD,IACF,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"FuzzySearchAdvancedConfigMenu.d.ts","sourceRoot":"","sources":["../../../src/components/shared/FuzzySearchAdvancedConfigMenu.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAIH,OAAO,EAEL,KAAK,8BAA8B,EACpC,MAAM,uDAAuD,CAAC;AAI/D,eAAO,MAAM,6BAA6B,WAChC;IAAE,WAAW,EAAE,8BAA8B,CAAA;CAAE;;CA8CxD,CAAC"}
@@ -1,37 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- /**
3
- * Copyright (c) 2020-present, Goldman Sachs
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import { BaseRadioGroup, InfoCircleIcon } from '@finos/legend-art';
18
- import { observer } from 'mobx-react-lite';
19
- import { ADVANCED_FUZZY_SEARCH_MODE, } from '../../stores/shared/FuzzySearchAdvancedConfigState.js';
20
- import { LEGEND_APPLICATION_DOCUMENTATION_KEY } from '../../application/LegendApplicationDocumentation.js';
21
- import { useApplicationStore } from '../ApplicationStoreProvider.js';
22
- export const FuzzySearchAdvancedConfigMenu = observer((props) => {
23
- const { configState } = props;
24
- const applicationStore = useApplicationStore();
25
- const handleSearchMode = (event) => {
26
- const searchMode = event.target.value;
27
- configState.setCurrentMode(searchMode);
28
- };
29
- const seeDocumentation = () => applicationStore.assistantService.openDocumentationEntry(LEGEND_APPLICATION_DOCUMENTATION_KEY.QUESTION_HOW_TO_USE_ADVANCED_SEARCH_SYNTAX);
30
- return (_jsxs("div", { className: "fuzzy-search__advanced-config__panel", children: [_jsxs("div", { className: "fuzzy-search__advanced-config__panel__header__label", children: ["search config", _jsx("button", { className: "fuzzy-search__advanced-config__panel__header__hint", tabIndex: -1, onClick: seeDocumentation, title: "Click to see more details on advanced search", children: _jsx(InfoCircleIcon, {}) })] }), _jsx("div", { children: _jsx(BaseRadioGroup, { className: "text-search-advanced-config__options", value: configState.currentMode, onChange: handleSearchMode, row: false, options: [
31
- ADVANCED_FUZZY_SEARCH_MODE.STANDARD,
32
- ADVANCED_FUZZY_SEARCH_MODE.INCLUDE,
33
- ADVANCED_FUZZY_SEARCH_MODE.EXACT,
34
- ADVANCED_FUZZY_SEARCH_MODE.INVERSE,
35
- ], size: 1 }) })] }));
36
- });
37
- //# sourceMappingURL=FuzzySearchAdvancedConfigMenu.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FuzzySearchAdvancedConfigMenu.js","sourceRoot":"","sources":["../../../src/components/shared/FuzzySearchAdvancedConfigMenu.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,0BAA0B,GAE3B,MAAM,uDAAuD,CAAC;AAC/D,OAAO,EAAE,oCAAoC,EAAE,MAAM,qDAAqD,CAAC;AAC3G,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAErE,MAAM,CAAC,MAAM,6BAA6B,GAAG,QAAQ,CACnD,CAAC,KAAsD,EAAE,EAAE;IACzD,MAAM,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IAC9B,MAAM,gBAAgB,GAAG,mBAAmB,EAAE,CAAC;IAE/C,MAAM,gBAAgB,GAA+C,CACnE,KAAK,EACC,EAAE;QACR,MAAM,UAAU,GAAG,KAAK,CAAC,MAAM,CAAC,KAAmC,CAAC;QACpE,WAAW,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;IACzC,CAAC,CAAC;IACF,MAAM,gBAAgB,GAAG,GAAS,EAAE,CAClC,gBAAgB,CAAC,gBAAgB,CAAC,sBAAsB,CACtD,oCAAoC,CAAC,0CAA0C,CAChF,CAAC;IAEJ,OAAO,CACL,eAAK,SAAS,EAAC,sCAAsC,aACnD,eAAK,SAAS,EAAC,qDAAqD,8BAElE,iBACE,SAAS,EAAC,oDAAoD,EAC9D,QAAQ,EAAE,CAAC,CAAC,EACZ,OAAO,EAAE,gBAAgB,EACzB,KAAK,EAAC,8CAA8C,YAEpD,KAAC,cAAc,KAAG,GACX,IACL,EACN,wBACE,KAAC,cAAc,IACb,SAAS,EAAC,sCAAsC,EAChD,KAAK,EAAE,WAAW,CAAC,WAAW,EAC9B,QAAQ,EAAE,gBAAgB,EAC1B,GAAG,EAAE,KAAK,EACV,OAAO,EAAE;wBACP,0BAA0B,CAAC,QAAQ;wBACnC,0BAA0B,CAAC,OAAO;wBAClC,0BAA0B,CAAC,KAAK;wBAChC,0BAA0B,CAAC,OAAO;qBACnC,EACD,IAAI,EAAE,CAAC,GACP,GACE,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,22 +0,0 @@
1
- /**
2
- * Copyright (c) 2020-present, Goldman Sachs
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import { type PackageableElement, type PureModel } from '@finos/legend-graph';
17
- import type { PackageableElementOption } from '../../stores/shared/PackageableElementOption.js';
18
- export declare const getPackageableElementOptionFormatter: (props: {
19
- darkMode?: boolean | undefined;
20
- graph?: PureModel | undefined;
21
- }) => (option: PackageableElementOption<PackageableElement>) => React.ReactNode;
22
- //# sourceMappingURL=PackageableElementOptionLabel.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PackageableElementOptionLabel.d.ts","sourceRoot":"","sources":["../../../src/components/shared/PackageableElementOptionLabel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,kBAAkB,EAIvB,KAAK,SAAS,EACf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iDAAiD,CAAC;AA8BhG,eAAO,MAAM,oCAAoC,UAAW;IAC1D,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B,KAAK,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CAC/B,cACS,yBAAyB,kBAAkB,CAAC,KACjD,MAAM,SA0BR,CAAC"}
@@ -1,46 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- /**
3
- * Copyright (c) 2020-present, Goldman Sachs
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import { isSystemElement, isGeneratedElement, isDependencyElement, } from '@finos/legend-graph';
18
- const getElementColorCode = (element, graph) => graph
19
- ? isSystemElement(element)
20
- ? 'system'
21
- : isGeneratedElement(element)
22
- ? 'generated'
23
- : isDependencyElement(element, graph)
24
- ? 'dependency'
25
- : ''
26
- : '';
27
- const generateOptionTooltipText = (element, graph) => graph
28
- ? isSystemElement(element)
29
- ? 'system element'
30
- : isGeneratedElement(element)
31
- ? 'generated element'
32
- : isDependencyElement(element, graph)
33
- ? 'dependency element'
34
- : undefined
35
- : undefined;
36
- export const getPackageableElementOptionFormatter = (props) => function PackageableElementOptionLabel(option) {
37
- const { darkMode, graph } = props;
38
- const className = darkMode
39
- ? 'packageable-element-option-label--dark'
40
- : 'packageable-element-option-label';
41
- const colorCode = getElementColorCode(option.value, graph);
42
- return (_jsxs("div", { className: className, children: [_jsx("div", { title: generateOptionTooltipText(option.value, graph), className: `packageable-element-option-label__type ${colorCode
43
- ? `packageable-element-option-label__type--${colorCode}`
44
- : ''} ` }), _jsx("div", { className: `${className}__name`, children: option.label }), option.value.package && (_jsx("div", { className: `${className}__tag`, children: option.value.path }))] }));
45
- };
46
- //# sourceMappingURL=PackageableElementOptionLabel.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PackageableElementOptionLabel.js","sourceRoot":"","sources":["../../../src/components/shared/PackageableElementOptionLabel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,eAAe,EACf,kBAAkB,EAClB,mBAAmB,GAEpB,MAAM,qBAAqB,CAAC;AAG7B,MAAM,mBAAmB,GAAG,CAC1B,OAA2B,EAC3B,KAA4B,EACpB,EAAE,CACV,KAAK;IACH,CAAC,CAAC,eAAe,CAAC,OAAO,CAAC;QACxB,CAAC,CAAC,QAAQ;QACV,CAAC,CAAC,kBAAkB,CAAC,OAAO,CAAC;YAC7B,CAAC,CAAC,WAAW;YACb,CAAC,CAAC,mBAAmB,CAAC,OAAO,EAAE,KAAK,CAAC;gBACrC,CAAC,CAAC,YAAY;gBACd,CAAC,CAAC,EAAE;IACN,CAAC,CAAC,EAAE,CAAC;AAET,MAAM,yBAAyB,GAAG,CAChC,OAA2B,EAC3B,KAA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