@gooddata/sdk-ui-metric-component 0.0.0-stage → 11.65.0-alpha.10

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 (766) hide show
  1. package/LICENSE +29 -0
  2. package/NOTICE +72077 -0
  3. package/README.md +13 -2
  4. package/esm/MaqlEditor/components/ExpandableTooltip.d.ts +50 -0
  5. package/esm/MaqlEditor/components/ExpandableTooltip.d.ts.map +1 -0
  6. package/esm/MaqlEditor/components/ExpandableTooltip.js +150 -0
  7. package/esm/MaqlEditor/components/ExpandableTooltipContext.d.ts +10 -0
  8. package/esm/MaqlEditor/components/ExpandableTooltipContext.d.ts.map +1 -0
  9. package/esm/MaqlEditor/components/ExpandableTooltipContext.js +17 -0
  10. package/esm/MaqlEditor/components/hooks/useExpandableTooltip.d.ts +3 -0
  11. package/esm/MaqlEditor/components/hooks/useExpandableTooltip.d.ts.map +1 -0
  12. package/esm/MaqlEditor/components/hooks/useExpandableTooltip.js +10 -0
  13. package/esm/MaqlEditor/components/hooks/useOutsideEvents.d.ts +10 -0
  14. package/esm/MaqlEditor/components/hooks/useOutsideEvents.d.ts.map +1 -0
  15. package/esm/MaqlEditor/components/hooks/useOutsideEvents.js +43 -0
  16. package/esm/MaqlEditor/components/hooks/useRePosition.d.ts +20 -0
  17. package/esm/MaqlEditor/components/hooks/useRePosition.d.ts.map +1 -0
  18. package/esm/MaqlEditor/components/hooks/useRePosition.js +108 -0
  19. package/esm/MaqlEditor/components/hooks/utils.d.ts +4 -0
  20. package/esm/MaqlEditor/components/hooks/utils.d.ts.map +1 -0
  21. package/esm/MaqlEditor/components/hooks/utils.js +18 -0
  22. package/esm/MaqlEditor/hooks/useAutoformat.d.ts +3 -0
  23. package/esm/MaqlEditor/hooks/useAutoformat.d.ts.map +1 -0
  24. package/esm/MaqlEditor/hooks/useAutoformat.js +15 -0
  25. package/esm/MaqlEditor/hooks/useCleanCallback.d.ts +4 -0
  26. package/esm/MaqlEditor/hooks/useCleanCallback.d.ts.map +1 -0
  27. package/esm/MaqlEditor/hooks/useCleanCallback.js +12 -0
  28. package/esm/MaqlEditor/hooks/useCodeTheme.d.ts +3 -0
  29. package/esm/MaqlEditor/hooks/useCodeTheme.d.ts.map +1 -0
  30. package/esm/MaqlEditor/hooks/useCodeTheme.js +48 -0
  31. package/esm/MaqlEditor/hooks/useCopyToClipboard.d.ts +3 -0
  32. package/esm/MaqlEditor/hooks/useCopyToClipboard.d.ts.map +1 -0
  33. package/esm/MaqlEditor/hooks/useCopyToClipboard.js +16 -0
  34. package/esm/MaqlEditor/hooks/useMountCallback.d.ts +13 -0
  35. package/esm/MaqlEditor/hooks/useMountCallback.d.ts.map +1 -0
  36. package/esm/MaqlEditor/hooks/useMountCallback.js +26 -0
  37. package/esm/MaqlEditor/hooks/useUpdateCallback.d.ts +19 -0
  38. package/esm/MaqlEditor/hooks/useUpdateCallback.d.ts.map +1 -0
  39. package/esm/MaqlEditor/hooks/useUpdateCallback.js +63 -0
  40. package/esm/MaqlEditor/hooks/useValueCallbacks.d.ts +6 -0
  41. package/esm/MaqlEditor/hooks/useValueCallbacks.d.ts.map +1 -0
  42. package/esm/MaqlEditor/hooks/useValueCallbacks.js +14 -0
  43. package/esm/MaqlEditor/languageService/LanguageServiceContext.d.ts +19 -0
  44. package/esm/MaqlEditor/languageService/LanguageServiceContext.d.ts.map +1 -0
  45. package/esm/MaqlEditor/languageService/LanguageServiceContext.js +23 -0
  46. package/esm/MaqlEditor/maql/MaqlEditor.d.ts +39 -0
  47. package/esm/MaqlEditor/maql/MaqlEditor.d.ts.map +1 -0
  48. package/esm/MaqlEditor/maql/MaqlEditor.js +45 -0
  49. package/esm/MaqlEditor/maql/MaqlEditor.styles.d.ts +8 -0
  50. package/esm/MaqlEditor/maql/MaqlEditor.styles.d.ts.map +1 -0
  51. package/esm/MaqlEditor/maql/MaqlEditor.styles.js +154 -0
  52. package/esm/MaqlEditor/maql/MaqlEditor.tooltip.d.ts +36 -0
  53. package/esm/MaqlEditor/maql/MaqlEditor.tooltip.d.ts.map +1 -0
  54. package/esm/MaqlEditor/maql/MaqlEditor.tooltip.js +187 -0
  55. package/esm/MaqlEditor/maql/constants.d.ts +2 -0
  56. package/esm/MaqlEditor/maql/constants.d.ts.map +1 -0
  57. package/esm/MaqlEditor/maql/constants.js +2 -0
  58. package/esm/MaqlEditor/maql/formatter.d.ts +6 -0
  59. package/esm/MaqlEditor/maql/formatter.d.ts.map +1 -0
  60. package/esm/MaqlEditor/maql/formatter.js +14 -0
  61. package/esm/MaqlEditor/maql/hooks/hover/doHover.d.ts +12 -0
  62. package/esm/MaqlEditor/maql/hooks/hover/doHover.d.ts.map +1 -0
  63. package/esm/MaqlEditor/maql/hooks/hover/doHover.js +126 -0
  64. package/esm/MaqlEditor/maql/hooks/hover/useHoverEvent.d.ts +4 -0
  65. package/esm/MaqlEditor/maql/hooks/hover/useHoverEvent.d.ts.map +1 -0
  66. package/esm/MaqlEditor/maql/hooks/hover/useHoverEvent.js +32 -0
  67. package/esm/MaqlEditor/maql/hooks/useAutocomplete.d.ts +4 -0
  68. package/esm/MaqlEditor/maql/hooks/useAutocomplete.d.ts.map +1 -0
  69. package/esm/MaqlEditor/maql/hooks/useAutocomplete.js +60 -0
  70. package/esm/MaqlEditor/maql/hooks/useDecoration.d.ts +4 -0
  71. package/esm/MaqlEditor/maql/hooks/useDecoration.d.ts.map +1 -0
  72. package/esm/MaqlEditor/maql/hooks/useDecoration.js +73 -0
  73. package/esm/MaqlEditor/maql/hooks/useDocumentFormatting.d.ts +3 -0
  74. package/esm/MaqlEditor/maql/hooks/useDocumentFormatting.d.ts.map +1 -0
  75. package/esm/MaqlEditor/maql/hooks/useDocumentFormatting.js +29 -0
  76. package/esm/MaqlEditor/maql/hooks/useHover.d.ts +6 -0
  77. package/esm/MaqlEditor/maql/hooks/useHover.d.ts.map +1 -0
  78. package/esm/MaqlEditor/maql/hooks/useHover.js +77 -0
  79. package/esm/MaqlEditor/maql/hooks/useLanguageConfiguration.d.ts +4 -0
  80. package/esm/MaqlEditor/maql/hooks/useLanguageConfiguration.d.ts.map +1 -0
  81. package/esm/MaqlEditor/maql/hooks/useLanguageConfiguration.js +21 -0
  82. package/esm/MaqlEditor/maql/hooks/useLanguageService.d.ts +3 -0
  83. package/esm/MaqlEditor/maql/hooks/useLanguageService.d.ts.map +1 -0
  84. package/esm/MaqlEditor/maql/hooks/useLanguageService.js +21 -0
  85. package/esm/MaqlEditor/maql/hooks/useLanguageServiceInitializer.d.ts +4 -0
  86. package/esm/MaqlEditor/maql/hooks/useLanguageServiceInitializer.d.ts.map +1 -0
  87. package/esm/MaqlEditor/maql/hooks/useLanguageServiceInitializer.js +11 -0
  88. package/esm/MaqlEditor/maql/hooks/useMonaco.d.ts +21 -0
  89. package/esm/MaqlEditor/maql/hooks/useMonaco.d.ts.map +1 -0
  90. package/esm/MaqlEditor/maql/hooks/useMonaco.js +75 -0
  91. package/esm/MaqlEditor/maql/hooks/useSemanticHighlight.d.ts +4 -0
  92. package/esm/MaqlEditor/maql/hooks/useSemanticHighlight.d.ts.map +1 -0
  93. package/esm/MaqlEditor/maql/hooks/useSemanticHighlight.js +33 -0
  94. package/esm/MaqlEditor/maql/hooks/useSyntaxHighlight.d.ts +2 -0
  95. package/esm/MaqlEditor/maql/hooks/useSyntaxHighlight.d.ts.map +1 -0
  96. package/esm/MaqlEditor/maql/hooks/useSyntaxHighlight.js +28 -0
  97. package/esm/MaqlEditor/maql/hooks/useValidation.d.ts +4 -0
  98. package/esm/MaqlEditor/maql/hooks/useValidation.d.ts.map +1 -0
  99. package/esm/MaqlEditor/maql/hooks/useValidation.js +56 -0
  100. package/esm/MaqlEditor/maql/utils.d.ts +4 -0
  101. package/esm/MaqlEditor/maql/utils.d.ts.map +1 -0
  102. package/esm/MaqlEditor/maql/utils.js +6 -0
  103. package/esm/MaqlEditor/mock/monaco-shim.d.ts +5 -0
  104. package/esm/MaqlEditor/mock/monaco-shim.d.ts.map +1 -0
  105. package/esm/MaqlEditor/mock/monaco-shim.js +39 -0
  106. package/esm/MaqlEditor/monaco/MonacoEditor.d.ts +64 -0
  107. package/esm/MaqlEditor/monaco/MonacoEditor.d.ts.map +1 -0
  108. package/esm/MaqlEditor/monaco/MonacoEditor.js +71 -0
  109. package/esm/MaqlEditor/monaco/MonacoEditor.styles.d.ts +53 -0
  110. package/esm/MaqlEditor/monaco/MonacoEditor.styles.d.ts.map +1 -0
  111. package/esm/MaqlEditor/monaco/MonacoEditor.styles.js +427 -0
  112. package/esm/MaqlEditor/monaco/hooks/useAutofocus.d.ts +3 -0
  113. package/esm/MaqlEditor/monaco/hooks/useAutofocus.d.ts.map +1 -0
  114. package/esm/MaqlEditor/monaco/hooks/useAutofocus.js +33 -0
  115. package/esm/MaqlEditor/monaco/hooks/useDefaultValue.d.ts +3 -0
  116. package/esm/MaqlEditor/monaco/hooks/useDefaultValue.d.ts.map +1 -0
  117. package/esm/MaqlEditor/monaco/hooks/useDefaultValue.js +14 -0
  118. package/esm/MaqlEditor/monaco/hooks/useEditorInit.d.ts +3 -0
  119. package/esm/MaqlEditor/monaco/hooks/useEditorInit.d.ts.map +1 -0
  120. package/esm/MaqlEditor/monaco/hooks/useEditorInit.js +84 -0
  121. package/esm/MaqlEditor/monaco/hooks/useEditorOptions.d.ts +3 -0
  122. package/esm/MaqlEditor/monaco/hooks/useEditorOptions.d.ts.map +1 -0
  123. package/esm/MaqlEditor/monaco/hooks/useEditorOptions.js +51 -0
  124. package/esm/MaqlEditor/monaco/hooks/useMonaco.d.ts +3 -0
  125. package/esm/MaqlEditor/monaco/hooks/useMonaco.d.ts.map +1 -0
  126. package/esm/MaqlEditor/monaco/hooks/useMonaco.js +24 -0
  127. package/esm/MaqlEditor/monaco/monacoContributions.d.ts +74 -0
  128. package/esm/MaqlEditor/monaco/monacoContributions.d.ts.map +1 -0
  129. package/esm/MaqlEditor/monaco/monacoContributions.js +88 -0
  130. package/esm/MaqlEditor/monaco/monacoWorkers.d.ts +53 -0
  131. package/esm/MaqlEditor/monaco/monacoWorkers.d.ts.map +1 -0
  132. package/esm/MaqlEditor/monaco/monacoWorkers.js +176 -0
  133. package/esm/MaqlEditor/sql/SqlEditor.d.ts +30 -0
  134. package/esm/MaqlEditor/sql/SqlEditor.d.ts.map +1 -0
  135. package/esm/MaqlEditor/sql/SqlEditor.js +48 -0
  136. package/esm/MaqlEditor/sql/SqlEditor.styles.d.ts +3 -0
  137. package/esm/MaqlEditor/sql/SqlEditor.styles.d.ts.map +1 -0
  138. package/esm/MaqlEditor/sql/SqlEditor.styles.js +3 -0
  139. package/esm/MaqlEditor/sql/constants.d.ts +2 -0
  140. package/esm/MaqlEditor/sql/constants.d.ts.map +1 -0
  141. package/esm/MaqlEditor/sql/constants.js +2 -0
  142. package/esm/MaqlEditor/sql/formatter.d.ts +6 -0
  143. package/esm/MaqlEditor/sql/formatter.d.ts.map +1 -0
  144. package/esm/MaqlEditor/sql/formatter.js +17 -0
  145. package/esm/MaqlEditor/sql/hooks/useDocumentFormatting.d.ts +2 -0
  146. package/esm/MaqlEditor/sql/hooks/useDocumentFormatting.d.ts.map +1 -0
  147. package/esm/MaqlEditor/sql/hooks/useDocumentFormatting.js +26 -0
  148. package/esm/MaqlEditor/sql/hooks/useLanguageConfiguration.d.ts +4 -0
  149. package/esm/MaqlEditor/sql/hooks/useLanguageConfiguration.d.ts.map +1 -0
  150. package/esm/MaqlEditor/sql/hooks/useLanguageConfiguration.js +29 -0
  151. package/esm/MaqlEditor/sql/hooks/useMonaco.d.ts +14 -0
  152. package/esm/MaqlEditor/sql/hooks/useMonaco.d.ts.map +1 -0
  153. package/esm/MaqlEditor/sql/hooks/useMonaco.js +26 -0
  154. package/esm/MaqlEditor/sql/hooks/useSyntaxHighlight.d.ts +2 -0
  155. package/esm/MaqlEditor/sql/hooks/useSyntaxHighlight.d.ts.map +1 -0
  156. package/esm/MaqlEditor/sql/hooks/useSyntaxHighlight.js +796 -0
  157. package/esm/MaqlEditor/sql/utils.d.ts +4 -0
  158. package/esm/MaqlEditor/sql/utils.d.ts.map +1 -0
  159. package/esm/MaqlEditor/sql/utils.js +6 -0
  160. package/esm/MaqlEditor/statusBar/SuggestionStatusBar.d.ts +9 -0
  161. package/esm/MaqlEditor/statusBar/SuggestionStatusBar.d.ts.map +1 -0
  162. package/esm/MaqlEditor/statusBar/SuggestionStatusBar.js +38 -0
  163. package/esm/MaqlEditor/theme/default.d.ts +209 -0
  164. package/esm/MaqlEditor/theme/default.d.ts.map +1 -0
  165. package/esm/MaqlEditor/theme/default.js +226 -0
  166. package/esm/MaqlEditor/theme/styles.d.ts +411 -0
  167. package/esm/MaqlEditor/theme/styles.d.ts.map +1 -0
  168. package/esm/MaqlEditor/theme/styles.js +5 -0
  169. package/esm/MaqlEditor/theme/theme.d.ts +206 -0
  170. package/esm/MaqlEditor/theme/theme.d.ts.map +1 -0
  171. package/esm/MaqlEditor/theme/theme.js +9 -0
  172. package/esm/MetricComponent/ConflictContext/ConflictContext.d.ts +15 -0
  173. package/esm/MetricComponent/ConflictContext/ConflictContext.d.ts.map +1 -0
  174. package/esm/MetricComponent/ConflictContext/ConflictContext.js +12 -0
  175. package/esm/MetricComponent/ConflictContext/useConflictDetection.d.ts +11 -0
  176. package/esm/MetricComponent/ConflictContext/useConflictDetection.d.ts.map +1 -0
  177. package/esm/MetricComponent/ConflictContext/useConflictDetection.js +48 -0
  178. package/esm/MetricComponent/Content/EditMetricContent.d.ts +3 -0
  179. package/esm/MetricComponent/Content/EditMetricContent.d.ts.map +1 -0
  180. package/esm/MetricComponent/Content/EditMetricContent.data.d.ts +58 -0
  181. package/esm/MetricComponent/Content/EditMetricContent.data.d.ts.map +1 -0
  182. package/esm/MetricComponent/Content/EditMetricContent.data.js +18 -0
  183. package/esm/MetricComponent/Content/EditMetricContent.events.d.ts +9 -0
  184. package/esm/MetricComponent/Content/EditMetricContent.events.d.ts.map +1 -0
  185. package/esm/MetricComponent/Content/EditMetricContent.events.js +21 -0
  186. package/esm/MetricComponent/Content/EditMetricContent.js +27 -0
  187. package/esm/MetricComponent/DeleteMetric.d.ts +18 -0
  188. package/esm/MetricComponent/DeleteMetric.d.ts.map +1 -0
  189. package/esm/MetricComponent/DeleteMetric.events.d.ts +10 -0
  190. package/esm/MetricComponent/DeleteMetric.events.d.ts.map +1 -0
  191. package/esm/MetricComponent/DeleteMetric.events.js +24 -0
  192. package/esm/MetricComponent/DeleteMetric.js +11 -0
  193. package/esm/MetricComponent/DeleteMetricConfirmDialog/DeleteMetricConfirmDialog.d.ts +6 -0
  194. package/esm/MetricComponent/DeleteMetricConfirmDialog/DeleteMetricConfirmDialog.d.ts.map +1 -0
  195. package/esm/MetricComponent/DeleteMetricConfirmDialog/DeleteMetricConfirmDialog.js +19 -0
  196. package/esm/MetricComponent/EditMetric.d.ts +57 -0
  197. package/esm/MetricComponent/EditMetric.d.ts.map +1 -0
  198. package/esm/MetricComponent/EditMetric.events.d.ts +16 -0
  199. package/esm/MetricComponent/EditMetric.events.d.ts.map +1 -0
  200. package/esm/MetricComponent/EditMetric.events.js +55 -0
  201. package/esm/MetricComponent/EditMetric.js +33 -0
  202. package/esm/MetricComponent/FeaturesAndSettings/index.d.ts +24 -0
  203. package/esm/MetricComponent/FeaturesAndSettings/index.d.ts.map +1 -0
  204. package/esm/MetricComponent/FeaturesAndSettings/index.js +28 -0
  205. package/esm/MetricComponent/Form/CloseButton/CloseButton.d.ts +6 -0
  206. package/esm/MetricComponent/Form/CloseButton/CloseButton.d.ts.map +1 -0
  207. package/esm/MetricComponent/Form/CloseButton/CloseButton.js +14 -0
  208. package/esm/MetricComponent/Form/EditMetricCenterForm.d.ts +15 -0
  209. package/esm/MetricComponent/Form/EditMetricCenterForm.d.ts.map +1 -0
  210. package/esm/MetricComponent/Form/EditMetricCenterForm.js +157 -0
  211. package/esm/MetricComponent/Form/EditMetricContentForm.d.ts +45 -0
  212. package/esm/MetricComponent/Form/EditMetricContentForm.d.ts.map +1 -0
  213. package/esm/MetricComponent/Form/EditMetricContentForm.events.d.ts +13 -0
  214. package/esm/MetricComponent/Form/EditMetricContentForm.events.d.ts.map +1 -0
  215. package/esm/MetricComponent/Form/EditMetricContentForm.events.js +32 -0
  216. package/esm/MetricComponent/Form/EditMetricContentForm.js +106 -0
  217. package/esm/MetricComponent/Form/EditableRow/EditableRow.d.ts +16 -0
  218. package/esm/MetricComponent/Form/EditableRow/EditableRow.d.ts.map +1 -0
  219. package/esm/MetricComponent/Form/EditableRow/EditableRow.js +82 -0
  220. package/esm/MetricComponent/Form/EditableRow/EditableRowError.d.ts +13 -0
  221. package/esm/MetricComponent/Form/EditableRow/EditableRowError.d.ts.map +1 -0
  222. package/esm/MetricComponent/Form/EditableRow/EditableRowError.js +5 -0
  223. package/esm/MetricComponent/Form/EditableRow/InlineEditableValue.d.ts +27 -0
  224. package/esm/MetricComponent/Form/EditableRow/InlineEditableValue.d.ts.map +1 -0
  225. package/esm/MetricComponent/Form/EditableRow/InlineEditableValue.js +125 -0
  226. package/esm/MetricComponent/Form/Footer/EditMetricContentFooter.d.ts +9 -0
  227. package/esm/MetricComponent/Form/Footer/EditMetricContentFooter.d.ts.map +1 -0
  228. package/esm/MetricComponent/Form/Footer/EditMetricContentFooter.events.d.ts +7 -0
  229. package/esm/MetricComponent/Form/Footer/EditMetricContentFooter.events.d.ts.map +1 -0
  230. package/esm/MetricComponent/Form/Footer/EditMetricContentFooter.events.js +11 -0
  231. package/esm/MetricComponent/Form/Footer/EditMetricContentFooter.js +63 -0
  232. package/esm/MetricComponent/Form/Footer/EditMetricSaveMessage.d.ts +8 -0
  233. package/esm/MetricComponent/Form/Footer/EditMetricSaveMessage.d.ts.map +1 -0
  234. package/esm/MetricComponent/Form/Footer/EditMetricSaveMessage.js +22 -0
  235. package/esm/MetricComponent/Form/Header/EditMetricContentHeader.d.ts +28 -0
  236. package/esm/MetricComponent/Form/Header/EditMetricContentHeader.d.ts.map +1 -0
  237. package/esm/MetricComponent/Form/Header/EditMetricContentHeader.events.d.ts +7 -0
  238. package/esm/MetricComponent/Form/Header/EditMetricContentHeader.events.d.ts.map +1 -0
  239. package/esm/MetricComponent/Form/Header/EditMetricContentHeader.events.js +11 -0
  240. package/esm/MetricComponent/Form/Header/EditMetricContentHeader.js +48 -0
  241. package/esm/MetricComponent/Form/Header/LockedBubble.d.ts +3 -0
  242. package/esm/MetricComponent/Form/Header/LockedBubble.d.ts.map +1 -0
  243. package/esm/MetricComponent/Form/Header/LockedBubble.js +14 -0
  244. package/esm/MetricComponent/Form/Header/MetricDescriptionField.d.ts +10 -0
  245. package/esm/MetricComponent/Form/Header/MetricDescriptionField.d.ts.map +1 -0
  246. package/esm/MetricComponent/Form/Header/MetricDescriptionField.js +24 -0
  247. package/esm/MetricComponent/Form/Header/MetricIdField.d.ts +9 -0
  248. package/esm/MetricComponent/Form/Header/MetricIdField.d.ts.map +1 -0
  249. package/esm/MetricComponent/Form/Header/MetricIdField.js +80 -0
  250. package/esm/MetricComponent/Form/Header/MetricTagsField.d.ts +8 -0
  251. package/esm/MetricComponent/Form/Header/MetricTagsField.d.ts.map +1 -0
  252. package/esm/MetricComponent/Form/Header/MetricTagsField.js +61 -0
  253. package/esm/MetricComponent/Form/Header/MetricTitleField.d.ts +8 -0
  254. package/esm/MetricComponent/Form/Header/MetricTitleField.d.ts.map +1 -0
  255. package/esm/MetricComponent/Form/Header/MetricTitleField.js +40 -0
  256. package/esm/MetricComponent/Form/Header/MetricTypeField.d.ts +8 -0
  257. package/esm/MetricComponent/Form/Header/MetricTypeField.d.ts.map +1 -0
  258. package/esm/MetricComponent/Form/Header/MetricTypeField.js +42 -0
  259. package/esm/MetricComponent/Form/Header/Usage/Usage.d.ts +13 -0
  260. package/esm/MetricComponent/Form/Header/Usage/Usage.d.ts.map +1 -0
  261. package/esm/MetricComponent/Form/Header/Usage/Usage.js +68 -0
  262. package/esm/MetricComponent/Form/Header/Usage/UsageItems.d.ts +11 -0
  263. package/esm/MetricComponent/Form/Header/Usage/UsageItems.d.ts.map +1 -0
  264. package/esm/MetricComponent/Form/Header/Usage/UsageItems.js +88 -0
  265. package/esm/MetricComponent/Form/Header/Usage/UsagesOverlay.d.ts +17 -0
  266. package/esm/MetricComponent/Form/Header/Usage/UsagesOverlay.d.ts.map +1 -0
  267. package/esm/MetricComponent/Form/Header/Usage/UsagesOverlay.js +119 -0
  268. package/esm/MetricComponent/Form/Header/share/MetricAccessChip.d.ts +9 -0
  269. package/esm/MetricComponent/Form/Header/share/MetricAccessChip.d.ts.map +1 -0
  270. package/esm/MetricComponent/Form/Header/share/MetricAccessChip.js +39 -0
  271. package/esm/MetricComponent/Form/Header/share/MetricShare.d.ts +17 -0
  272. package/esm/MetricComponent/Form/Header/share/MetricShare.d.ts.map +1 -0
  273. package/esm/MetricComponent/Form/Header/share/MetricShare.js +36 -0
  274. package/esm/MetricComponent/Form/Header/share/useApplyMetricAccess.d.ts +10 -0
  275. package/esm/MetricComponent/Form/Header/share/useApplyMetricAccess.d.ts.map +1 -0
  276. package/esm/MetricComponent/Form/Header/share/useApplyMetricAccess.js +39 -0
  277. package/esm/MetricComponent/Form/MaqlEditorField/MaqlEditorEditor.d.ts +11 -0
  278. package/esm/MetricComponent/Form/MaqlEditorField/MaqlEditorEditor.d.ts.map +1 -0
  279. package/esm/MetricComponent/Form/MaqlEditorField/MaqlEditorEditor.js +128 -0
  280. package/esm/MetricComponent/Form/MaqlEditorField/MaqlEditorField.d.ts +9 -0
  281. package/esm/MetricComponent/Form/MaqlEditorField/MaqlEditorField.d.ts.map +1 -0
  282. package/esm/MetricComponent/Form/MaqlEditorField/MaqlEditorField.events.d.ts +11 -0
  283. package/esm/MetricComponent/Form/MaqlEditorField/MaqlEditorField.events.d.ts.map +1 -0
  284. package/esm/MetricComponent/Form/MaqlEditorField/MaqlEditorField.events.js +25 -0
  285. package/esm/MetricComponent/Form/MaqlEditorField/MaqlEditorField.js +68 -0
  286. package/esm/MetricComponent/Form/MaqlEditorField/MaqlEditorHeader.d.ts +14 -0
  287. package/esm/MetricComponent/Form/MaqlEditorField/MaqlEditorHeader.d.ts.map +1 -0
  288. package/esm/MetricComponent/Form/MaqlEditorField/MaqlEditorHeader.js +84 -0
  289. package/esm/MetricComponent/Form/MaqlEditorField/suggestionDetailsFunctions.d.ts +3 -0
  290. package/esm/MetricComponent/Form/MaqlEditorField/suggestionDetailsFunctions.d.ts.map +1 -0
  291. package/esm/MetricComponent/Form/MaqlEditorField/suggestionDetailsFunctions.js +57 -0
  292. package/esm/MetricComponent/Form/MaqlEditorUtils/Placeholder.d.ts +8 -0
  293. package/esm/MetricComponent/Form/MaqlEditorUtils/Placeholder.d.ts.map +1 -0
  294. package/esm/MetricComponent/Form/MaqlEditorUtils/Placeholder.js +72 -0
  295. package/esm/MetricComponent/Form/MaqlResult/MaqlResult.d.ts +19 -0
  296. package/esm/MetricComponent/Form/MaqlResult/MaqlResult.d.ts.map +1 -0
  297. package/esm/MetricComponent/Form/MaqlResult/MaqlResult.js +144 -0
  298. package/esm/MetricComponent/Form/MaqlResult/MaqlResultHeader.d.ts +23 -0
  299. package/esm/MetricComponent/Form/MaqlResult/MaqlResultHeader.d.ts.map +1 -0
  300. package/esm/MetricComponent/Form/MaqlResult/MaqlResultHeader.js +54 -0
  301. package/esm/MetricComponent/Form/MaqlResult/MaqlSql.d.ts +8 -0
  302. package/esm/MetricComponent/Form/MaqlResult/MaqlSql.d.ts.map +1 -0
  303. package/esm/MetricComponent/Form/MaqlResult/MaqlSql.js +54 -0
  304. package/esm/MetricComponent/Form/MaqlResult/MaqlSqlHeader.d.ts +10 -0
  305. package/esm/MetricComponent/Form/MaqlResult/MaqlSqlHeader.d.ts.map +1 -0
  306. package/esm/MetricComponent/Form/MaqlResult/MaqlSqlHeader.js +46 -0
  307. package/esm/MetricComponent/Form/MaqlResult/components/AttributesSelect.d.ts +15 -0
  308. package/esm/MetricComponent/Form/MaqlResult/components/AttributesSelect.d.ts.map +1 -0
  309. package/esm/MetricComponent/Form/MaqlResult/components/AttributesSelect.js +171 -0
  310. package/esm/MetricComponent/Form/MaqlResult/components/AttributesSelectItem.d.ts +10 -0
  311. package/esm/MetricComponent/Form/MaqlResult/components/AttributesSelectItem.d.ts.map +1 -0
  312. package/esm/MetricComponent/Form/MaqlResult/components/AttributesSelectItem.js +23 -0
  313. package/esm/MetricComponent/Form/MaqlResult/components/LimitSelect.d.ts +11 -0
  314. package/esm/MetricComponent/Form/MaqlResult/components/LimitSelect.d.ts.map +1 -0
  315. package/esm/MetricComponent/Form/MaqlResult/components/LimitSelect.js +134 -0
  316. package/esm/MetricComponent/Form/NumberFormat/EditMetricContentNumberFormat.d.ts +10 -0
  317. package/esm/MetricComponent/Form/NumberFormat/EditMetricContentNumberFormat.d.ts.map +1 -0
  318. package/esm/MetricComponent/Form/NumberFormat/EditMetricContentNumberFormat.events.d.ts +7 -0
  319. package/esm/MetricComponent/Form/NumberFormat/EditMetricContentNumberFormat.events.d.ts.map +1 -0
  320. package/esm/MetricComponent/Form/NumberFormat/EditMetricContentNumberFormat.events.js +12 -0
  321. package/esm/MetricComponent/Form/NumberFormat/EditMetricContentNumberFormat.js +83 -0
  322. package/esm/MetricComponent/Form/OtherMetrics/OtherMetricsContext.d.ts +13 -0
  323. package/esm/MetricComponent/Form/OtherMetrics/OtherMetricsContext.d.ts.map +1 -0
  324. package/esm/MetricComponent/Form/OtherMetrics/OtherMetricsContext.js +23 -0
  325. package/esm/MetricComponent/Form/OtherMetrics/useOtherMetrics.d.ts +3 -0
  326. package/esm/MetricComponent/Form/OtherMetrics/useOtherMetrics.d.ts.map +1 -0
  327. package/esm/MetricComponent/Form/OtherMetrics/useOtherMetrics.js +6 -0
  328. package/esm/MetricComponent/Form/PartHeader/PartHeader.d.ts +20 -0
  329. package/esm/MetricComponent/Form/PartHeader/PartHeader.d.ts.map +1 -0
  330. package/esm/MetricComponent/Form/PartHeader/PartHeader.js +90 -0
  331. package/esm/MetricComponent/Form/PartHeader/PartHeaderButton.d.ts +16 -0
  332. package/esm/MetricComponent/Form/PartHeader/PartHeaderButton.d.ts.map +1 -0
  333. package/esm/MetricComponent/Form/PartHeader/PartHeaderButton.js +29 -0
  334. package/esm/MetricComponent/Form/Prefixes/PrefixesContext.d.ts +15 -0
  335. package/esm/MetricComponent/Form/Prefixes/PrefixesContext.d.ts.map +1 -0
  336. package/esm/MetricComponent/Form/Prefixes/PrefixesContext.js +10 -0
  337. package/esm/MetricComponent/Form/Prefixes/usePrefixes.d.ts +3 -0
  338. package/esm/MetricComponent/Form/Prefixes/usePrefixes.d.ts.map +1 -0
  339. package/esm/MetricComponent/Form/Prefixes/usePrefixes.js +6 -0
  340. package/esm/MetricComponent/Form/TestingFormProvider.d.ts +10 -0
  341. package/esm/MetricComponent/Form/TestingFormProvider.d.ts.map +1 -0
  342. package/esm/MetricComponent/Form/TestingFormProvider.js +7 -0
  343. package/esm/MetricComponent/Form/attribute.d.ts +3 -0
  344. package/esm/MetricComponent/Form/attribute.d.ts.map +1 -0
  345. package/esm/MetricComponent/Form/attribute.js +9 -0
  346. package/esm/MetricComponent/Form/data.d.ts +26 -0
  347. package/esm/MetricComponent/Form/data.d.ts.map +1 -0
  348. package/esm/MetricComponent/Form/data.js +15 -0
  349. package/esm/MetricComponent/Form/hooks/useCatalog.d.ts +9 -0
  350. package/esm/MetricComponent/Form/hooks/useCatalog.d.ts.map +1 -0
  351. package/esm/MetricComponent/Form/hooks/useCatalog.js +72 -0
  352. package/esm/MetricComponent/Form/hooks/useExecute.d.ts +14 -0
  353. package/esm/MetricComponent/Form/hooks/useExecute.d.ts.map +1 -0
  354. package/esm/MetricComponent/Form/hooks/useExecute.js +26 -0
  355. package/esm/MetricComponent/Form/hooks/useExplain.d.ts +10 -0
  356. package/esm/MetricComponent/Form/hooks/useExplain.d.ts.map +1 -0
  357. package/esm/MetricComponent/Form/hooks/useExplain.js +50 -0
  358. package/esm/MetricComponent/Form/hooks/useInvalidFocus.d.ts +5 -0
  359. package/esm/MetricComponent/Form/hooks/useInvalidFocus.d.ts.map +1 -0
  360. package/esm/MetricComponent/Form/hooks/useInvalidFocus.js +20 -0
  361. package/esm/MetricComponent/Form/hooks/useMetricFormField.d.ts +10 -0
  362. package/esm/MetricComponent/Form/hooks/useMetricFormField.d.ts.map +1 -0
  363. package/esm/MetricComponent/Form/hooks/useMetricFormField.js +16 -0
  364. package/esm/MetricComponent/Form/hooks/useMetricFormStatus.d.ts +5 -0
  365. package/esm/MetricComponent/Form/hooks/useMetricFormStatus.d.ts.map +1 -0
  366. package/esm/MetricComponent/Form/hooks/useMetricFormStatus.js +5 -0
  367. package/esm/MetricComponent/Form/hooks/useMetricFormatState.d.ts +41 -0
  368. package/esm/MetricComponent/Form/hooks/useMetricFormatState.d.ts.map +1 -0
  369. package/esm/MetricComponent/Form/hooks/useMetricFormatState.js +50 -0
  370. package/esm/MetricComponent/Form/hooks/useMetricValidation.d.ts +11 -0
  371. package/esm/MetricComponent/Form/hooks/useMetricValidation.d.ts.map +1 -0
  372. package/esm/MetricComponent/Form/hooks/useMetricValidation.js +53 -0
  373. package/esm/MetricComponent/Form/hooks/useTitleExistsCheck.d.ts +2 -0
  374. package/esm/MetricComponent/Form/hooks/useTitleExistsCheck.d.ts.map +1 -0
  375. package/esm/MetricComponent/Form/hooks/useTitleExistsCheck.js +19 -0
  376. package/esm/MetricComponent/Form/hooks/useToggleWithCollapse.d.ts +4 -0
  377. package/esm/MetricComponent/Form/hooks/useToggleWithCollapse.d.ts.map +1 -0
  378. package/esm/MetricComponent/Form/hooks/useToggleWithCollapse.js +16 -0
  379. package/esm/MetricComponent/Form/hooks/useUniqIdGenerator.d.ts +2 -0
  380. package/esm/MetricComponent/Form/hooks/useUniqIdGenerator.d.ts.map +1 -0
  381. package/esm/MetricComponent/Form/hooks/useUniqIdGenerator.js +48 -0
  382. package/esm/MetricComponent/Form/hooks/useValidationScheme.d.ts +10 -0
  383. package/esm/MetricComponent/Form/hooks/useValidationScheme.d.ts.map +1 -0
  384. package/esm/MetricComponent/Form/hooks/useValidationScheme.js +17 -0
  385. package/esm/MetricComponent/Form/inlineMeasure.d.ts +3 -0
  386. package/esm/MetricComponent/Form/inlineMeasure.d.ts.map +1 -0
  387. package/esm/MetricComponent/Form/inlineMeasure.js +11 -0
  388. package/esm/MetricComponent/Form/maqlFieldFunctions.d.ts +17 -0
  389. package/esm/MetricComponent/Form/maqlFieldFunctions.d.ts.map +1 -0
  390. package/esm/MetricComponent/Form/maqlFieldFunctions.js +43 -0
  391. package/esm/MetricComponent/Form/validationSchema.d.ts +12 -0
  392. package/esm/MetricComponent/Form/validationSchema.d.ts.map +1 -0
  393. package/esm/MetricComponent/Form/validationSchema.js +123 -0
  394. package/esm/MetricComponent/IdChangeConfirmDialog/IdChangeConfirmDialog.d.ts +15 -0
  395. package/esm/MetricComponent/IdChangeConfirmDialog/IdChangeConfirmDialog.d.ts.map +1 -0
  396. package/esm/MetricComponent/IdChangeConfirmDialog/IdChangeConfirmDialog.js +75 -0
  397. package/esm/MetricComponent/ManageMetric.d.ts +47 -0
  398. package/esm/MetricComponent/ManageMetric.d.ts.map +1 -0
  399. package/esm/MetricComponent/ManageMetric.js +32 -0
  400. package/esm/MetricComponent/ManageMetrics.d.ts +32 -0
  401. package/esm/MetricComponent/ManageMetrics.d.ts.map +1 -0
  402. package/esm/MetricComponent/ManageMetrics.js +35 -0
  403. package/esm/MetricComponent/MetricService.d.ts +13 -0
  404. package/esm/MetricComponent/MetricService.d.ts.map +1 -0
  405. package/esm/MetricComponent/MetricService.js +10 -0
  406. package/esm/MetricComponent/MetricState/TabContent.d.ts +37 -0
  407. package/esm/MetricComponent/MetricState/TabContent.d.ts.map +1 -0
  408. package/esm/MetricComponent/MetricState/TabContent.js +21 -0
  409. package/esm/MetricComponent/MetricState/hooks/useChangeIdDialog.d.ts +23 -0
  410. package/esm/MetricComponent/MetricState/hooks/useChangeIdDialog.d.ts.map +1 -0
  411. package/esm/MetricComponent/MetricState/hooks/useChangeIdDialog.js +68 -0
  412. package/esm/MetricComponent/MetricState/hooks/useDirtyChanged.d.ts +4 -0
  413. package/esm/MetricComponent/MetricState/hooks/useDirtyChanged.d.ts.map +1 -0
  414. package/esm/MetricComponent/MetricState/hooks/useDirtyChanged.js +16 -0
  415. package/esm/MetricComponent/MetricState/hooks/useOnChangeCallback.d.ts +17 -0
  416. package/esm/MetricComponent/MetricState/hooks/useOnChangeCallback.d.ts.map +1 -0
  417. package/esm/MetricComponent/MetricState/hooks/useOnChangeCallback.js +41 -0
  418. package/esm/MetricComponent/MetricState/hooks/useOnDeleteCallback.d.ts +5 -0
  419. package/esm/MetricComponent/MetricState/hooks/useOnDeleteCallback.d.ts.map +1 -0
  420. package/esm/MetricComponent/MetricState/hooks/useOnDeleteCallback.js +9 -0
  421. package/esm/MetricComponent/MetricState/hooks/useOnSaveCallback.d.ts +6 -0
  422. package/esm/MetricComponent/MetricState/hooks/useOnSaveCallback.d.ts.map +1 -0
  423. package/esm/MetricComponent/MetricState/hooks/useOnSaveCallback.js +9 -0
  424. package/esm/MetricComponent/MetricState/hooks/useSaveTab.d.ts +9 -0
  425. package/esm/MetricComponent/MetricState/hooks/useSaveTab.d.ts.map +1 -0
  426. package/esm/MetricComponent/MetricState/hooks/useSaveTab.js +93 -0
  427. package/esm/MetricComponent/MetricState/hooks/useTabsData.d.ts +16 -0
  428. package/esm/MetricComponent/MetricState/hooks/useTabsData.d.ts.map +1 -0
  429. package/esm/MetricComponent/MetricState/hooks/useTabsData.js +62 -0
  430. package/esm/MetricComponent/MetricState/hooks/useUnsavedChanges.d.ts +17 -0
  431. package/esm/MetricComponent/MetricState/hooks/useUnsavedChanges.d.ts.map +1 -0
  432. package/esm/MetricComponent/MetricState/hooks/useUnsavedChanges.js +86 -0
  433. package/esm/MetricComponent/MetricState/hooks/useUpdateMetricData.d.ts +5 -0
  434. package/esm/MetricComponent/MetricState/hooks/useUpdateMetricData.d.ts.map +1 -0
  435. package/esm/MetricComponent/MetricState/hooks/useUpdateMetricData.js +10 -0
  436. package/esm/MetricComponent/MetricState/hooks/useUpdateMetricTab.d.ts +6 -0
  437. package/esm/MetricComponent/MetricState/hooks/useUpdateMetricTab.d.ts.map +1 -0
  438. package/esm/MetricComponent/MetricState/hooks/useUpdateMetricTab.js +17 -0
  439. package/esm/MetricComponent/MetricState/metricState.data.d.ts +57 -0
  440. package/esm/MetricComponent/MetricState/metricState.data.d.ts.map +1 -0
  441. package/esm/MetricComponent/MetricState/metricState.data.js +19 -0
  442. package/esm/MetricComponent/MetricState/useMetricState.d.ts +27 -0
  443. package/esm/MetricComponent/MetricState/useMetricState.d.ts.map +1 -0
  444. package/esm/MetricComponent/MetricState/useMetricState.js +127 -0
  445. package/esm/MetricComponent/MetricsContext/MetricsContext.d.ts +11 -0
  446. package/esm/MetricComponent/MetricsContext/MetricsContext.d.ts.map +1 -0
  447. package/esm/MetricComponent/MetricsContext/MetricsContext.js +14 -0
  448. package/esm/MetricComponent/MetricsContext/useMetricsContext.d.ts +3 -0
  449. package/esm/MetricComponent/MetricsContext/useMetricsContext.d.ts.map +1 -0
  450. package/esm/MetricComponent/MetricsContext/useMetricsContext.js +6 -0
  451. package/esm/MetricComponent/MetricsState.d.ts +39 -0
  452. package/esm/MetricComponent/MetricsState.d.ts.map +1 -0
  453. package/esm/MetricComponent/MetricsState.js +73 -0
  454. package/esm/MetricComponent/MinimizedMetricComponent/MinimizedMetricComponent.d.ts +12 -0
  455. package/esm/MetricComponent/MinimizedMetricComponent/MinimizedMetricComponent.d.ts.map +1 -0
  456. package/esm/MetricComponent/MinimizedMetricComponent/MinimizedMetricComponent.js +110 -0
  457. package/esm/MetricComponent/MinimizedMetrics.d.ts +16 -0
  458. package/esm/MetricComponent/MinimizedMetrics.d.ts.map +1 -0
  459. package/esm/MetricComponent/MinimizedMetrics.js +22 -0
  460. package/esm/MetricComponent/MultipleMetricsState.d.ts +67 -0
  461. package/esm/MetricComponent/MultipleMetricsState.d.ts.map +1 -0
  462. package/esm/MetricComponent/MultipleMetricsState.js +56 -0
  463. package/esm/MetricComponent/UnsavedChangesConfirmDialog/UnsavedChangesConfirmDialog.d.ts +14 -0
  464. package/esm/MetricComponent/UnsavedChangesConfirmDialog/UnsavedChangesConfirmDialog.d.ts.map +1 -0
  465. package/esm/MetricComponent/UnsavedChangesConfirmDialog/UnsavedChangesConfirmDialog.js +52 -0
  466. package/esm/MetricComponent/hooks/useDeleteCallbacks.d.ts +7 -0
  467. package/esm/MetricComponent/hooks/useDeleteCallbacks.d.ts.map +1 -0
  468. package/esm/MetricComponent/hooks/useDeleteCallbacks.js +52 -0
  469. package/esm/MetricComponent/hooks/useDirtyChanged.d.ts +2 -0
  470. package/esm/MetricComponent/hooks/useDirtyChanged.d.ts.map +1 -0
  471. package/esm/MetricComponent/hooks/useDirtyChanged.js +10 -0
  472. package/esm/MetricComponent/hooks/useEditCallbacks.d.ts +23 -0
  473. package/esm/MetricComponent/hooks/useEditCallbacks.d.ts.map +1 -0
  474. package/esm/MetricComponent/hooks/useEditCallbacks.js +107 -0
  475. package/esm/MetricComponent/hooks/useFocusedField.d.ts +4 -0
  476. package/esm/MetricComponent/hooks/useFocusedField.d.ts.map +1 -0
  477. package/esm/MetricComponent/hooks/useFocusedField.js +9 -0
  478. package/esm/MetricComponent/hooks/useIdCallbacks.d.ts +22 -0
  479. package/esm/MetricComponent/hooks/useIdCallbacks.d.ts.map +1 -0
  480. package/esm/MetricComponent/hooks/useIdCallbacks.js +46 -0
  481. package/esm/MetricComponent/hooks/useInitialValueMetric.d.ts +4 -0
  482. package/esm/MetricComponent/hooks/useInitialValueMetric.d.ts.map +1 -0
  483. package/esm/MetricComponent/hooks/useInitialValueMetric.js +12 -0
  484. package/esm/MetricComponent/hooks/useInitialValues.d.ts +3 -0
  485. package/esm/MetricComponent/hooks/useInitialValues.d.ts.map +1 -0
  486. package/esm/MetricComponent/hooks/useInitialValues.js +13 -0
  487. package/esm/MetricComponent/hooks/useMetricContentState.d.ts +38 -0
  488. package/esm/MetricComponent/hooks/useMetricContentState.d.ts.map +1 -0
  489. package/esm/MetricComponent/hooks/useMetricContentState.js +73 -0
  490. package/esm/MetricComponent/hooks/useMetricDelete.d.ts +3 -0
  491. package/esm/MetricComponent/hooks/useMetricDelete.d.ts.map +1 -0
  492. package/esm/MetricComponent/hooks/useMetricDelete.js +14 -0
  493. package/esm/MetricComponent/hooks/useMetricSave.d.ts +4 -0
  494. package/esm/MetricComponent/hooks/useMetricSave.d.ts.map +1 -0
  495. package/esm/MetricComponent/hooks/useMetricSave.js +52 -0
  496. package/esm/MetricComponent/hooks/useMetricUsage.d.ts +8 -0
  497. package/esm/MetricComponent/hooks/useMetricUsage.d.ts.map +1 -0
  498. package/esm/MetricComponent/hooks/useMetricUsage.js +21 -0
  499. package/esm/MetricComponent/hooks/useOnCloseOrCancel.d.ts +7 -0
  500. package/esm/MetricComponent/hooks/useOnCloseOrCancel.d.ts.map +1 -0
  501. package/esm/MetricComponent/hooks/useOnCloseOrCancel.js +26 -0
  502. package/esm/MetricComponent/hooks/useOnSaveUnchanged.d.ts +12 -0
  503. package/esm/MetricComponent/hooks/useOnSaveUnchanged.d.ts.map +1 -0
  504. package/esm/MetricComponent/hooks/useOnSaveUnchanged.js +30 -0
  505. package/esm/MetricComponent/hooks/useSaveAsClick.d.ts +6 -0
  506. package/esm/MetricComponent/hooks/useSaveAsClick.d.ts.map +1 -0
  507. package/esm/MetricComponent/hooks/useSaveAsClick.js +62 -0
  508. package/esm/MetricComponent/hooks/useSaveClick.d.ts +11 -0
  509. package/esm/MetricComponent/hooks/useSaveClick.d.ts.map +1 -0
  510. package/esm/MetricComponent/hooks/useSaveClick.js +47 -0
  511. package/esm/MetricComponent/metric/deleteInfo.d.ts +9 -0
  512. package/esm/MetricComponent/metric/deleteInfo.d.ts.map +1 -0
  513. package/esm/MetricComponent/metric/deleteInfo.js +6 -0
  514. package/esm/MetricComponent/metric/emptyMetric.d.ts +20 -0
  515. package/esm/MetricComponent/metric/emptyMetric.d.ts.map +1 -0
  516. package/esm/MetricComponent/metric/emptyMetric.js +19 -0
  517. package/esm/MetricComponent/metric/idChangeHelper.d.ts +5 -0
  518. package/esm/MetricComponent/metric/idChangeHelper.d.ts.map +1 -0
  519. package/esm/MetricComponent/metric/idChangeHelper.js +11 -0
  520. package/esm/MetricComponent/metric/idValidator.d.ts +3 -0
  521. package/esm/MetricComponent/metric/idValidator.d.ts.map +1 -0
  522. package/esm/MetricComponent/metric/idValidator.js +5 -0
  523. package/esm/MetricComponent/metric/metricHelpers.d.ts +53 -0
  524. package/esm/MetricComponent/metric/metricHelpers.d.ts.map +1 -0
  525. package/esm/MetricComponent/metric/metricHelpers.js +132 -0
  526. package/esm/MetricComponent/metric/nameGenerators.d.ts +13 -0
  527. package/esm/MetricComponent/metric/nameGenerators.d.ts.map +1 -0
  528. package/esm/MetricComponent/metric/nameGenerators.js +63 -0
  529. package/esm/MetricComponent/metric/prefixHelper.d.ts +7 -0
  530. package/esm/MetricComponent/metric/prefixHelper.d.ts.map +1 -0
  531. package/esm/MetricComponent/metric/prefixHelper.js +43 -0
  532. package/esm/MetricComponent/metric/saveInfo.d.ts +16 -0
  533. package/esm/MetricComponent/metric/saveInfo.d.ts.map +1 -0
  534. package/esm/MetricComponent/metric/saveInfo.js +10 -0
  535. package/esm/MetricComponent/metric/transformer.d.ts +5 -0
  536. package/esm/MetricComponent/metric/transformer.d.ts.map +1 -0
  537. package/esm/MetricComponent/metric/transformer.js +17 -0
  538. package/esm/index.d.ts +45 -0
  539. package/esm/index.d.ts.map +1 -0
  540. package/esm/index.js +38 -0
  541. package/esm/sdk-ui-metric-component.d.ts +1615 -0
  542. package/esm/shared/Form/Form.d.ts +25 -0
  543. package/esm/shared/Form/Form.d.ts.map +1 -0
  544. package/esm/shared/Form/Form.js +48 -0
  545. package/esm/shared/Form/FormApi.d.ts +8 -0
  546. package/esm/shared/Form/FormApi.d.ts.map +1 -0
  547. package/esm/shared/Form/FormApi.js +14 -0
  548. package/esm/shared/Form/FormContext.d.ts +52 -0
  549. package/esm/shared/Form/FormContext.d.ts.map +1 -0
  550. package/esm/shared/Form/FormContext.js +50 -0
  551. package/esm/shared/Form/data.d.ts +5 -0
  552. package/esm/shared/Form/data.d.ts.map +1 -0
  553. package/esm/shared/Form/data.js +6 -0
  554. package/esm/shared/Form/hooks/useChanged.d.ts +5 -0
  555. package/esm/shared/Form/hooks/useChanged.d.ts.map +1 -0
  556. package/esm/shared/Form/hooks/useChanged.js +14 -0
  557. package/esm/shared/Form/hooks/useDirty.d.ts +3 -0
  558. package/esm/shared/Form/hooks/useDirty.d.ts.map +1 -0
  559. package/esm/shared/Form/hooks/useDirty.js +9 -0
  560. package/esm/shared/Form/hooks/useFormHandlersInternal.d.ts +12 -0
  561. package/esm/shared/Form/hooks/useFormHandlersInternal.d.ts.map +1 -0
  562. package/esm/shared/Form/hooks/useFormHandlersInternal.js +16 -0
  563. package/esm/shared/Form/hooks/useFormState.d.ts +4 -0
  564. package/esm/shared/Form/hooks/useFormState.d.ts.map +1 -0
  565. package/esm/shared/Form/hooks/useFormState.js +33 -0
  566. package/esm/shared/Form/hooks/useFormStatusInternal.d.ts +32 -0
  567. package/esm/shared/Form/hooks/useFormStatusInternal.d.ts.map +1 -0
  568. package/esm/shared/Form/hooks/useFormStatusInternal.js +34 -0
  569. package/esm/shared/Form/hooks/useInvalidFocusField.d.ts +3 -0
  570. package/esm/shared/Form/hooks/useInvalidFocusField.d.ts.map +1 -0
  571. package/esm/shared/Form/hooks/useInvalidFocusField.js +8 -0
  572. package/esm/shared/Form/hooks/useMutations.d.ts +4 -0
  573. package/esm/shared/Form/hooks/useMutations.d.ts.map +1 -0
  574. package/esm/shared/Form/hooks/useMutations.js +97 -0
  575. package/esm/shared/Form/hooks/useRealFocus.d.ts +5 -0
  576. package/esm/shared/Form/hooks/useRealFocus.d.ts.map +1 -0
  577. package/esm/shared/Form/hooks/useRealFocus.js +38 -0
  578. package/esm/shared/Form/useFormChanged.d.ts +2 -0
  579. package/esm/shared/Form/useFormChanged.d.ts.map +1 -0
  580. package/esm/shared/Form/useFormChanged.js +12 -0
  581. package/esm/shared/Form/useFormDefaults.d.ts +2 -0
  582. package/esm/shared/Form/useFormDefaults.d.ts.map +1 -0
  583. package/esm/shared/Form/useFormDefaults.js +7 -0
  584. package/esm/shared/Form/useFormDirty.d.ts +2 -0
  585. package/esm/shared/Form/useFormDirty.d.ts.map +1 -0
  586. package/esm/shared/Form/useFormDirty.js +13 -0
  587. package/esm/shared/Form/useFormErrors.d.ts +3 -0
  588. package/esm/shared/Form/useFormErrors.d.ts.map +1 -0
  589. package/esm/shared/Form/useFormErrors.js +18 -0
  590. package/esm/shared/Form/useFormField.d.ts +24 -0
  591. package/esm/shared/Form/useFormField.d.ts.map +1 -0
  592. package/esm/shared/Form/useFormField.js +60 -0
  593. package/esm/shared/Form/useFormFieldElementRef.d.ts +3 -0
  594. package/esm/shared/Form/useFormFieldElementRef.d.ts.map +1 -0
  595. package/esm/shared/Form/useFormFieldElementRef.js +10 -0
  596. package/esm/shared/Form/useFormHandlers.d.ts +8 -0
  597. package/esm/shared/Form/useFormHandlers.d.ts.map +1 -0
  598. package/esm/shared/Form/useFormHandlers.js +45 -0
  599. package/esm/shared/Form/useFormStatus.d.ts +3 -0
  600. package/esm/shared/Form/useFormStatus.d.ts.map +1 -0
  601. package/esm/shared/Form/useFormStatus.js +10 -0
  602. package/esm/shared/Form/useFormValues.d.ts +3 -0
  603. package/esm/shared/Form/useFormValues.d.ts.map +1 -0
  604. package/esm/shared/Form/useFormValues.js +11 -0
  605. package/esm/shared/Form/utils.d.ts +2 -0
  606. package/esm/shared/Form/utils.d.ts.map +1 -0
  607. package/esm/shared/Form/utils.js +5 -0
  608. package/esm/shared/GlobalLoading/GlobalLoading.d.ts +5 -0
  609. package/esm/shared/GlobalLoading/GlobalLoading.d.ts.map +1 -0
  610. package/esm/shared/GlobalLoading/GlobalLoading.js +18 -0
  611. package/esm/shared/MaqlPreview/MaqlPreview.d.ts +22 -0
  612. package/esm/shared/MaqlPreview/MaqlPreview.d.ts.map +1 -0
  613. package/esm/shared/MaqlPreview/MaqlPreview.js +107 -0
  614. package/esm/shared/MaqlPreview/backend/measureExpressionTokens.d.ts +23 -0
  615. package/esm/shared/MaqlPreview/backend/measureExpressionTokens.d.ts.map +1 -0
  616. package/esm/shared/MaqlPreview/backend/measureExpressionTokens.js +86 -0
  617. package/esm/shared/MaqlPreview/hooks/useMetricTokens.d.ts +8 -0
  618. package/esm/shared/MaqlPreview/hooks/useMetricTokens.d.ts.map +1 -0
  619. package/esm/shared/MaqlPreview/hooks/useMetricTokens.js +14 -0
  620. package/esm/shared/MetricTooltip/MetricTooltip.d.ts +20 -0
  621. package/esm/shared/MetricTooltip/MetricTooltip.d.ts.map +1 -0
  622. package/esm/shared/MetricTooltip/MetricTooltip.events.d.ts +9 -0
  623. package/esm/shared/MetricTooltip/MetricTooltip.events.d.ts.map +1 -0
  624. package/esm/shared/MetricTooltip/MetricTooltip.events.js +18 -0
  625. package/esm/shared/MetricTooltip/MetricTooltip.js +49 -0
  626. package/esm/shared/MetricTooltip/MetricTooltipContent.d.ts +15 -0
  627. package/esm/shared/MetricTooltip/MetricTooltipContent.d.ts.map +1 -0
  628. package/esm/shared/MetricTooltip/MetricTooltipContent.js +38 -0
  629. package/esm/shared/MetricTooltip/fixtures.d.ts +3 -0
  630. package/esm/shared/MetricTooltip/fixtures.d.ts.map +1 -0
  631. package/esm/shared/MetricTooltip/fixtures.js +16 -0
  632. package/esm/shared/Tabs/Tab.d.ts +31 -0
  633. package/esm/shared/Tabs/Tab.d.ts.map +1 -0
  634. package/esm/shared/Tabs/Tab.js +171 -0
  635. package/esm/shared/Tabs/Tabs.classes.d.ts +13 -0
  636. package/esm/shared/Tabs/Tabs.classes.d.ts.map +1 -0
  637. package/esm/shared/Tabs/Tabs.classes.js +13 -0
  638. package/esm/shared/Tabs/Tabs.d.ts +4 -0
  639. package/esm/shared/Tabs/Tabs.d.ts.map +1 -0
  640. package/esm/shared/Tabs/Tabs.data.d.ts +37 -0
  641. package/esm/shared/Tabs/Tabs.data.d.ts.map +1 -0
  642. package/esm/shared/Tabs/Tabs.data.js +4 -0
  643. package/esm/shared/Tabs/Tabs.js +195 -0
  644. package/esm/shared/Tabs/hooks/useChangeScroll.d.ts +2 -0
  645. package/esm/shared/Tabs/hooks/useChangeScroll.d.ts.map +1 -0
  646. package/esm/shared/Tabs/hooks/useChangeScroll.js +19 -0
  647. package/esm/shared/Tabs/hooks/useMouseDownRepeat.d.ts +3 -0
  648. package/esm/shared/Tabs/hooks/useMouseDownRepeat.d.ts.map +1 -0
  649. package/esm/shared/Tabs/hooks/useMouseDownRepeat.js +43 -0
  650. package/esm/shared/Tabs/hooks/useScrollByButtons.d.ts +9 -0
  651. package/esm/shared/Tabs/hooks/useScrollByButtons.d.ts.map +1 -0
  652. package/esm/shared/Tabs/hooks/useScrollByButtons.js +76 -0
  653. package/esm/shared/Tabs/hooks/useScrollToActive.d.ts +2 -0
  654. package/esm/shared/Tabs/hooks/useScrollToActive.d.ts.map +1 -0
  655. package/esm/shared/Tabs/hooks/useScrollToActive.js +36 -0
  656. package/esm/shared/Tabs/hooks/useTabCallbacks.d.ts +7 -0
  657. package/esm/shared/Tabs/hooks/useTabCallbacks.d.ts.map +1 -0
  658. package/esm/shared/Tabs/hooks/useTabCallbacks.js +17 -0
  659. package/esm/shared/Tabs/hooks/useTabs.d.ts +24 -0
  660. package/esm/shared/Tabs/hooks/useTabs.d.ts.map +1 -0
  661. package/esm/shared/Tabs/hooks/useTabs.js +130 -0
  662. package/esm/shared/Tabs/hooks/useTabsCallbacks.d.ts +8 -0
  663. package/esm/shared/Tabs/hooks/useTabsCallbacks.d.ts.map +1 -0
  664. package/esm/shared/Tabs/hooks/useTabsCallbacks.js +19 -0
  665. package/esm/shared/authentication/Authentication.d.ts +11 -0
  666. package/esm/shared/authentication/Authentication.d.ts.map +1 -0
  667. package/esm/shared/authentication/Authentication.js +54 -0
  668. package/esm/shared/backend/tigerContractExpiredHandler.d.ts +9 -0
  669. package/esm/shared/backend/tigerContractExpiredHandler.d.ts.map +1 -0
  670. package/esm/shared/backend/tigerContractExpiredHandler.js +25 -0
  671. package/esm/shared/backend/tigerNotAuthenticatedHandler.d.ts +18 -0
  672. package/esm/shared/backend/tigerNotAuthenticatedHandler.d.ts.map +1 -0
  673. package/esm/shared/backend/tigerNotAuthenticatedHandler.js +45 -0
  674. package/esm/shared/eventing/EventContext.d.ts +40 -0
  675. package/esm/shared/eventing/EventContext.d.ts.map +1 -0
  676. package/esm/shared/eventing/EventContext.js +41 -0
  677. package/esm/shared/eventing/events.d.ts +58 -0
  678. package/esm/shared/eventing/events.d.ts.map +1 -0
  679. package/esm/shared/eventing/events.js +62 -0
  680. package/esm/shared/eventing/functions/errorToTrackingData.d.ts +12 -0
  681. package/esm/shared/eventing/functions/errorToTrackingData.d.ts.map +1 -0
  682. package/esm/shared/eventing/functions/errorToTrackingData.js +10 -0
  683. package/esm/shared/eventing/useEvents.d.ts +18 -0
  684. package/esm/shared/eventing/useEvents.d.ts.map +1 -0
  685. package/esm/shared/eventing/useEvents.js +19 -0
  686. package/esm/shared/hooks/useApi.d.ts +4 -0
  687. package/esm/shared/hooks/useApi.d.ts.map +1 -0
  688. package/esm/shared/hooks/useApi.js +15 -0
  689. package/esm/shared/hooks/useFocus.d.ts +3 -0
  690. package/esm/shared/hooks/useFocus.d.ts.map +1 -0
  691. package/esm/shared/hooks/useFocus.js +55 -0
  692. package/esm/shared/hooks/usePromiseHandlerIndicator.d.ts +2 -0
  693. package/esm/shared/hooks/usePromiseHandlerIndicator.d.ts.map +1 -0
  694. package/esm/shared/hooks/usePromiseHandlerIndicator.js +11 -0
  695. package/esm/shared/hooks/useProp.d.ts +3 -0
  696. package/esm/shared/hooks/useProp.d.ts.map +1 -0
  697. package/esm/shared/hooks/useProp.js +15 -0
  698. package/esm/shared/links.d.ts +33 -0
  699. package/esm/shared/links.d.ts.map +1 -0
  700. package/esm/shared/links.js +33 -0
  701. package/esm/shared/metrics/MetricsReloadContext.d.ts +11 -0
  702. package/esm/shared/metrics/MetricsReloadContext.d.ts.map +1 -0
  703. package/esm/shared/metrics/MetricsReloadContext.js +17 -0
  704. package/esm/shared/metrics/functions/metricListData.d.ts +4 -0
  705. package/esm/shared/metrics/functions/metricListData.d.ts.map +1 -0
  706. package/esm/shared/metrics/functions/metricListData.js +29 -0
  707. package/esm/shared/metrics/useMetricListData.d.ts +41 -0
  708. package/esm/shared/metrics/useMetricListData.d.ts.map +1 -0
  709. package/esm/shared/metrics/useMetricListData.events.d.ts +12 -0
  710. package/esm/shared/metrics/useMetricListData.events.d.ts.map +1 -0
  711. package/esm/shared/metrics/useMetricListData.events.js +31 -0
  712. package/esm/shared/metrics/useMetricListData.js +55 -0
  713. package/esm/shared/metrics/useMetrics.d.ts +21 -0
  714. package/esm/shared/metrics/useMetrics.d.ts.map +1 -0
  715. package/esm/shared/metrics/useMetrics.js +36 -0
  716. package/esm/shared/metrics/useReloadMetrics.d.ts +3 -0
  717. package/esm/shared/metrics/useReloadMetrics.d.ts.map +1 -0
  718. package/esm/shared/metrics/useReloadMetrics.js +10 -0
  719. package/esm/shared/permissions.d.ts +19 -0
  720. package/esm/shared/permissions.d.ts.map +1 -0
  721. package/esm/shared/permissions.js +59 -0
  722. package/esm/shared/platform.d.ts +2 -0
  723. package/esm/shared/platform.d.ts.map +1 -0
  724. package/esm/shared/platform.js +4 -0
  725. package/esm/shared/theme/index.d.ts +424 -0
  726. package/esm/shared/theme/index.d.ts.map +1 -0
  727. package/esm/shared/theme/index.js +199 -0
  728. package/esm/tests/render.test.utils.d.ts +9 -0
  729. package/esm/tests/render.test.utils.d.ts.map +1 -0
  730. package/esm/tests/render.test.utils.js +18 -0
  731. package/esm/translations/IntlWrapper.d.ts +15 -0
  732. package/esm/translations/IntlWrapper.d.ts.map +1 -0
  733. package/esm/translations/IntlWrapper.js +14 -0
  734. package/esm/translations/de-DE.json +185 -0
  735. package/esm/translations/en-AU.json +185 -0
  736. package/esm/translations/en-GB.json +185 -0
  737. package/esm/translations/en-US.json +518 -0
  738. package/esm/translations/es-419.json +185 -0
  739. package/esm/translations/es-ES.json +185 -0
  740. package/esm/translations/fi-FI.json +185 -0
  741. package/esm/translations/fr-CA.json +185 -0
  742. package/esm/translations/fr-FR.json +185 -0
  743. package/esm/translations/id-ID.json +185 -0
  744. package/esm/translations/it-IT.json +185 -0
  745. package/esm/translations/ja-JP.json +185 -0
  746. package/esm/translations/ko-KR.json +185 -0
  747. package/esm/translations/nl-NL.json +185 -0
  748. package/esm/translations/pl-PL.json +185 -0
  749. package/esm/translations/pt-BR.json +185 -0
  750. package/esm/translations/pt-PT.json +185 -0
  751. package/esm/translations/ru-RU.json +185 -0
  752. package/esm/translations/sl-SI.json +185 -0
  753. package/esm/translations/th-TH.json +185 -0
  754. package/esm/translations/tr-TR.json +185 -0
  755. package/esm/translations/translations.d.ts +27 -0
  756. package/esm/translations/translations.d.ts.map +1 -0
  757. package/esm/translations/translations.js +95 -0
  758. package/esm/translations/uk-UA.json +185 -0
  759. package/esm/translations/vi-VN.json +185 -0
  760. package/esm/translations/zh-HK.json +185 -0
  761. package/esm/translations/zh-Hans.json +185 -0
  762. package/esm/translations/zh-Hant.json +185 -0
  763. package/esm/tsdoc-metadata.json +11 -0
  764. package/package.json +109 -3
  765. package/worker/monaco-editor-worker.js +30 -0
  766. package/worker/monaco-editor-worker.source.js +1 -0
@@ -0,0 +1,51 @@
1
+ // (C) 2021-2026 GoodData Corporation
2
+ import { useMemo } from "react";
3
+ export function useEditorOptions(readonly, inline, options = {}) {
4
+ return useMemo(() => ({
5
+ "semanticHighlighting.enabled": true,
6
+ padding: { top: 15 },
7
+ scrollBeyondLastLine: false,
8
+ renderLineHighlight: "none",
9
+ wordBasedSuggestions: "off",
10
+ minimap: { enabled: false },
11
+ fontFamily: "monospace",
12
+ fontSize: 14,
13
+ lineHeight: 22,
14
+ glyphMargin: false,
15
+ lineDecorationsWidth: 0,
16
+ lineNumbersMinChars: 4,
17
+ scrollbar: {
18
+ ...(inline
19
+ ? {
20
+ verticalScrollbarSize: 12,
21
+ }
22
+ : {
23
+ vertical: "hidden",
24
+ verticalScrollbarSize: 0,
25
+ }),
26
+ alwaysConsumeMouseWheel: !readonly,
27
+ },
28
+ overviewRulerBorder: false,
29
+ overviewRulerLanes: 0,
30
+ hideCursorInOverviewRuler: true,
31
+ suggest: {
32
+ snippetsPreventQuickSuggestions: false,
33
+ showStatusBar: false,
34
+ },
35
+ suggestLineHeight: 22,
36
+ suggestFontSize: 13,
37
+ tabSize: 2,
38
+ detectIndentation: false,
39
+ readOnly: readonly,
40
+ domReadOnly: readonly,
41
+ ...(inline
42
+ ? {
43
+ padding: { top: 10, bottom: 10, right: 0, left: 0 },
44
+ fontSize: 12,
45
+ lineHeight: 18,
46
+ }
47
+ : {}),
48
+ ...options,
49
+ editContext: false,
50
+ }), [inline, readonly, options]);
51
+ }
@@ -0,0 +1,3 @@
1
+ import type { IMonacoEditorProps, IStandaloneCodeEditor } from "../MonacoEditor.js";
2
+ export declare function useMonaco(element: HTMLDivElement | null, props: Omit<IMonacoEditorProps, "autofocus" | "icons">): IStandaloneCodeEditor | null;
3
+ //# sourceMappingURL=useMonaco.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useMonaco.d.ts","sourceRoot":"","sources":["../../../../src/MaqlEditor/monaco/hooks/useMonaco.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAKpF,wBAAgB,SAAS,CACrB,OAAO,EAAE,cAAc,GAAG,IAAI,EAC9B,KAAK,EAAE,IAAI,CAAC,kBAAkB,EAAE,WAAW,GAAG,OAAO,CAAC,GACvD,qBAAqB,GAAG,IAAI,CAkC9B"}
@@ -0,0 +1,24 @@
1
+ // (C) 2021-2026 GoodData Corporation
2
+ import { useState } from "react";
3
+ import { useDefaultValue } from "./useDefaultValue.js";
4
+ import { useEditorInit } from "./useEditorInit.js";
5
+ export function useMonaco(element, props) {
6
+ const { defaultValue = "", themeName, themeData, language, languageConfiguration, className, inline, readonly, options, onEditorMount = () => { }, onEditorUpdate = () => { }, onContentSizeChange = () => { }, } = props;
7
+ const [editor, setEditor] = useState(null);
8
+ useDefaultValue(editor, defaultValue);
9
+ useEditorInit(element, editor, setEditor, {
10
+ inline,
11
+ options,
12
+ readonly,
13
+ defaultValue,
14
+ themeData,
15
+ language,
16
+ languageConfiguration,
17
+ themeName,
18
+ className,
19
+ onEditorMount,
20
+ onEditorUpdate,
21
+ onContentSizeChange,
22
+ });
23
+ return editor;
24
+ }
@@ -0,0 +1,74 @@
1
+ import "./monacoWorkers.js";
2
+ import "monaco-editor/editor/contrib/anchorSelect/browser/anchorSelect.js";
3
+ import "monaco-editor/editor/contrib/bracketMatching/browser/bracketMatching.js";
4
+ import "monaco-editor/editor/contrib/caretOperations/browser/transpose.js";
5
+ import "monaco-editor/editor/contrib/clipboard/browser/clipboard.js";
6
+ import "monaco-editor/editor/contrib/codeAction/browser/codeActionContributions.js";
7
+ import "monaco-editor/editor/browser/widget/codeEditor/codeEditorWidget.js";
8
+ import "monaco-editor/editor/contrib/codelens/browser/codelensController.js";
9
+ import "monaco-editor/editor/contrib/colorPicker/browser/colorPickerContribution.js";
10
+ import "monaco-editor/editor/contrib/comment/browser/comment.js";
11
+ import "monaco-editor/editor/contrib/contextmenu/browser/contextmenu.js";
12
+ import "monaco-editor/editor/contrib/cursorUndo/browser/cursorUndo.js";
13
+ import "monaco-editor/editor/browser/widget/diffEditor/diffEditor.contribution.js";
14
+ import "monaco-editor/editor/contrib/diffEditorBreadcrumbs/browser/contribution.js";
15
+ import "monaco-editor/editor/contrib/dnd/browser/dnd.js";
16
+ import "monaco-editor/editor/contrib/documentSymbols/browser/documentSymbols.js";
17
+ import "monaco-editor/editor/contrib/dropOrPasteInto/browser/dropIntoEditorContribution.js";
18
+ import "monaco-editor/features/find/register.js";
19
+ import "monaco-editor/editor/contrib/floatingMenu/browser/floatingMenu.contribution.js";
20
+ import "monaco-editor/editor/contrib/folding/browser/folding.js";
21
+ import "monaco-editor/editor/contrib/fontZoom/browser/fontZoom.js";
22
+ import "monaco-editor/editor/contrib/format/browser/formatActions.js";
23
+ import "monaco-editor/editor/contrib/gotoError/browser/gotoError.js";
24
+ import "monaco-editor/editor/standalone/browser/quickAccess/standaloneGotoLineQuickAccess.js";
25
+ import "monaco-editor/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js";
26
+ import "monaco-editor/editor/contrib/gpu/browser/gpuActions.js";
27
+ import "monaco-editor/editor/contrib/hover/browser/hoverContribution.js";
28
+ import "monaco-editor/editor/contrib/indentation/browser/indentation.js";
29
+ import "monaco-editor/editor/contrib/inlayHints/browser/inlayHintsContribution.js";
30
+ import "monaco-editor/editor/contrib/inlineCompletions/browser/inlineCompletions.contribution.js";
31
+ import "monaco-editor/editor/contrib/inlineProgress/browser/inlineProgress.js";
32
+ import "monaco-editor/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js";
33
+ import "monaco-editor/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js";
34
+ import "monaco-editor/editor/standalone/browser/inspectTokens/inspectTokens.js";
35
+ import "monaco-editor/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard.js";
36
+ import "monaco-editor/editor/contrib/lineSelection/browser/lineSelection.js";
37
+ import "monaco-editor/editor/contrib/linesOperations/browser/linesOperations.js";
38
+ import "monaco-editor/editor/contrib/linkedEditing/browser/linkedEditing.js";
39
+ import "monaco-editor/editor/contrib/links/browser/links.js";
40
+ import "monaco-editor/editor/contrib/longLinesHelper/browser/longLinesHelper.js";
41
+ import "monaco-editor/editor/contrib/middleScroll/browser/middleScroll.contribution.js";
42
+ import "monaco-editor/editor/contrib/multicursor/browser/multicursor.js";
43
+ import "monaco-editor/editor/contrib/parameterHints/browser/parameterHints.js";
44
+ import "monaco-editor/editor/contrib/placeholderText/browser/placeholderText.contribution.js";
45
+ import "monaco-editor/editor/standalone/browser/quickAccess/standaloneCommandsQuickAccess.js";
46
+ import "monaco-editor/editor/standalone/browser/quickAccess/standaloneHelpQuickAccess.js";
47
+ import "monaco-editor/editor/standalone/browser/quickAccess/standaloneGotoSymbolQuickAccess.js";
48
+ import "monaco-editor/editor/contrib/readOnlyMessage/browser/contribution.js";
49
+ import "monaco-editor/editor/standalone/browser/referenceSearch/standaloneReferenceSearch.js";
50
+ import "monaco-editor/editor/contrib/rename/browser/rename.js";
51
+ import "monaco-editor/editor/contrib/sectionHeaders/browser/sectionHeaders.js";
52
+ import "monaco-editor/editor/contrib/semanticTokens/browser/viewportSemanticTokens.js";
53
+ import "monaco-editor/editor/contrib/smartSelect/browser/smartSelect.js";
54
+ import "monaco-editor/editor/contrib/snippet/browser/snippetController2.js";
55
+ import "monaco-editor/editor/contrib/stickyScroll/browser/stickyScrollContribution.js";
56
+ import "monaco-editor/editor/contrib/suggest/browser/suggestInlineCompletions.js";
57
+ import "monaco-editor/editor/standalone/browser/toggleHighContrast/toggleHighContrast.js";
58
+ import "monaco-editor/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js";
59
+ import "monaco-editor/editor/contrib/tokenization/browser/tokenization.js";
60
+ import "monaco-editor/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js";
61
+ import "monaco-editor/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js";
62
+ import "monaco-editor/editor/contrib/wordHighlighter/browser/wordHighlighter.js";
63
+ import "monaco-editor/editor/contrib/wordOperations/browser/wordOperations.js";
64
+ import "monaco-editor/editor/contrib/wordPartOperations/browser/wordPartOperations.js";
65
+ import "monaco-editor/editor/browser/coreCommands.js";
66
+ import "monaco-editor/editor/contrib/caretOperations/browser/caretOperations.js";
67
+ import "monaco-editor/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js";
68
+ import "monaco-editor/editor/contrib/find/browser/findController.js";
69
+ import "monaco-editor/editor/contrib/gotoSymbol/browser/goToCommands.js";
70
+ import "monaco-editor/editor/contrib/gotoError/browser/markerSelectionStatus.js";
71
+ import "monaco-editor/editor/contrib/semanticTokens/browser/documentSemanticTokens.js";
72
+ import "monaco-editor/editor/contrib/suggest/browser/suggestController.js";
73
+ import "monaco-editor/editor/common/standaloneStrings.js";
74
+ //# sourceMappingURL=monacoContributions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"monacoContributions.d.ts","sourceRoot":"","sources":["../../../src/MaqlEditor/monaco/monacoContributions.ts"],"names":[],"mappings":"AAkBA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,mEAAmE,CAAC;AAC3E,OAAO,yEAAyE,CAAC;AACjF,OAAO,mEAAmE,CAAC;AAC3E,OAAO,6DAA6D,CAAC;AACrE,OAAO,4EAA4E,CAAC;AACpF,OAAO,oEAAoE,CAAC;AAC5E,OAAO,qEAAqE,CAAC;AAC7E,OAAO,6EAA6E,CAAC;AACrF,OAAO,yDAAyD,CAAC;AACjE,OAAO,iEAAiE,CAAC;AACzE,OAAO,+DAA+D,CAAC;AACvE,OAAO,2EAA2E,CAAC;AACnF,OAAO,4EAA4E,CAAC;AACpF,OAAO,iDAAiD,CAAC;AACzD,OAAO,yEAAyE,CAAC;AACjF,OAAO,oFAAoF,CAAC;AAC5F,OAAO,yCAAyC,CAAC;AACjD,OAAO,gFAAgF,CAAC;AACxF,OAAO,yDAAyD,CAAC;AACjE,OAAO,2DAA2D,CAAC;AACnE,OAAO,8DAA8D,CAAC;AACtE,OAAO,6DAA6D,CAAC;AACrE,OAAO,sFAAsF,CAAC;AAC9F,OAAO,kFAAkF,CAAC;AAC1F,OAAO,wDAAwD,CAAC;AAChE,OAAO,iEAAiE,CAAC;AACzE,OAAO,iEAAiE,CAAC;AACzE,OAAO,2EAA2E,CAAC;AACnF,OAAO,0FAA0F,CAAC;AAClG,OAAO,uEAAuE,CAAC;AAC/E,OAAO,uEAAuE,CAAC;AAC/E,OAAO,+EAA+E,CAAC;AACvF,OAAO,wEAAwE,CAAC;AAChF,OAAO,8EAA8E,CAAC;AACtF,OAAO,qEAAqE,CAAC;AAC7E,OAAO,yEAAyE,CAAC;AACjF,OAAO,qEAAqE,CAAC;AAC7E,OAAO,qDAAqD,CAAC;AAC7D,OAAO,yEAAyE,CAAC;AACjF,OAAO,gFAAgF,CAAC;AACxF,OAAO,iEAAiE,CAAC;AACzE,OAAO,uEAAuE,CAAC;AAC/E,OAAO,sFAAsF,CAAC;AAC9F,OAAO,sFAAsF,CAAC;AAC9F,OAAO,kFAAkF,CAAC;AAC1F,OAAO,wFAAwF,CAAC;AAChG,OAAO,sEAAsE,CAAC;AAC9E,OAAO,sFAAsF,CAAC;AAC9F,OAAO,uDAAuD,CAAC;AAC/D,OAAO,uEAAuE,CAAC;AAC/E,OAAO,+EAA+E,CAAC;AACvF,OAAO,iEAAiE,CAAC;AACzE,OAAO,oEAAoE,CAAC;AAC5E,OAAO,+EAA+E,CAAC;AACvF,OAAO,0EAA0E,CAAC;AAClF,OAAO,kFAAkF,CAAC;AAC1F,OAAO,+EAA+E,CAAC;AACvF,OAAO,mEAAmE,CAAC;AAC3E,OAAO,+EAA+E,CAAC;AACvF,OAAO,uFAAuF,CAAC;AAC/F,OAAO,yEAAyE,CAAC;AACjF,OAAO,uEAAuE,CAAC;AAC/E,OAAO,+EAA+E,CAAC;AACvF,OAAO,8CAA8C,CAAC;AACtD,OAAO,yEAAyE,CAAC;AACjF,OAAO,+EAA+E,CAAC;AACvF,OAAO,6DAA6D,CAAC;AACrE,OAAO,iEAAiE,CAAC;AACzE,OAAO,yEAAyE,CAAC;AACjF,OAAO,+EAA+E,CAAC;AACvF,OAAO,mEAAmE,CAAC;AAC3E,OAAO,kDAAkD,CAAC"}
@@ -0,0 +1,88 @@
1
+ // (C) 2021-2026 GoodData Corporation
2
+ // oxlint-disable import/no-unassigned-import -- monaco editor contributions register themselves as a side effect of being imported
3
+ // Monaco 0.56 removed the `editor.all.js` aggregate. Its "batteries-included" replacement,
4
+ // `editor.main.js`, bundles the same editor contributions but ALSO eagerly registers every basic
5
+ // language (~80 of them) plus the css/html/json and (~12 MB) TypeScript language-feature services.
6
+ // None of that is used by our editors, yet all of it lands in the bundle (~10 MB+). This module
7
+ // reproduces exactly the editor *contribution* block of `editor.main.js` WITHOUT any language
8
+ // definition or language-feature imports; callers register only the language(s) they actually need.
9
+ //
10
+ // Keep this list in sync with the contribution block of
11
+ // `monaco-editor/esm/vs/editor/editor.main.js` (i.e. everything except its `languages/definitions/*`
12
+ // and `languages/features/*` imports). All required CSS (codicons, widgets, etc.) is pulled in
13
+ // transitively through these contribution modules' own relative imports.
14
+ // First, so `MonacoEnvironment` is wired before any Monaco module below is evaluated and can reach
15
+ // for the editor worker. See monacoWorkers.ts.
16
+ import "./monacoWorkers.js";
17
+ import "monaco-editor/editor/contrib/anchorSelect/browser/anchorSelect.js";
18
+ import "monaco-editor/editor/contrib/bracketMatching/browser/bracketMatching.js";
19
+ import "monaco-editor/editor/contrib/caretOperations/browser/transpose.js";
20
+ import "monaco-editor/editor/contrib/clipboard/browser/clipboard.js";
21
+ import "monaco-editor/editor/contrib/codeAction/browser/codeActionContributions.js";
22
+ import "monaco-editor/editor/browser/widget/codeEditor/codeEditorWidget.js";
23
+ import "monaco-editor/editor/contrib/codelens/browser/codelensController.js";
24
+ import "monaco-editor/editor/contrib/colorPicker/browser/colorPickerContribution.js";
25
+ import "monaco-editor/editor/contrib/comment/browser/comment.js";
26
+ import "monaco-editor/editor/contrib/contextmenu/browser/contextmenu.js";
27
+ import "monaco-editor/editor/contrib/cursorUndo/browser/cursorUndo.js";
28
+ import "monaco-editor/editor/browser/widget/diffEditor/diffEditor.contribution.js";
29
+ import "monaco-editor/editor/contrib/diffEditorBreadcrumbs/browser/contribution.js";
30
+ import "monaco-editor/editor/contrib/dnd/browser/dnd.js";
31
+ import "monaco-editor/editor/contrib/documentSymbols/browser/documentSymbols.js";
32
+ import "monaco-editor/editor/contrib/dropOrPasteInto/browser/dropIntoEditorContribution.js";
33
+ import "monaco-editor/features/find/register.js";
34
+ import "monaco-editor/editor/contrib/floatingMenu/browser/floatingMenu.contribution.js";
35
+ import "monaco-editor/editor/contrib/folding/browser/folding.js";
36
+ import "monaco-editor/editor/contrib/fontZoom/browser/fontZoom.js";
37
+ import "monaco-editor/editor/contrib/format/browser/formatActions.js";
38
+ import "monaco-editor/editor/contrib/gotoError/browser/gotoError.js";
39
+ import "monaco-editor/editor/standalone/browser/quickAccess/standaloneGotoLineQuickAccess.js";
40
+ import "monaco-editor/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js";
41
+ import "monaco-editor/editor/contrib/gpu/browser/gpuActions.js";
42
+ import "monaco-editor/editor/contrib/hover/browser/hoverContribution.js";
43
+ import "monaco-editor/editor/contrib/indentation/browser/indentation.js";
44
+ import "monaco-editor/editor/contrib/inlayHints/browser/inlayHintsContribution.js";
45
+ import "monaco-editor/editor/contrib/inlineCompletions/browser/inlineCompletions.contribution.js";
46
+ import "monaco-editor/editor/contrib/inlineProgress/browser/inlineProgress.js";
47
+ import "monaco-editor/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js";
48
+ import "monaco-editor/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js";
49
+ import "monaco-editor/editor/standalone/browser/inspectTokens/inspectTokens.js";
50
+ import "monaco-editor/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard.js";
51
+ import "monaco-editor/editor/contrib/lineSelection/browser/lineSelection.js";
52
+ import "monaco-editor/editor/contrib/linesOperations/browser/linesOperations.js";
53
+ import "monaco-editor/editor/contrib/linkedEditing/browser/linkedEditing.js";
54
+ import "monaco-editor/editor/contrib/links/browser/links.js";
55
+ import "monaco-editor/editor/contrib/longLinesHelper/browser/longLinesHelper.js";
56
+ import "monaco-editor/editor/contrib/middleScroll/browser/middleScroll.contribution.js";
57
+ import "monaco-editor/editor/contrib/multicursor/browser/multicursor.js";
58
+ import "monaco-editor/editor/contrib/parameterHints/browser/parameterHints.js";
59
+ import "monaco-editor/editor/contrib/placeholderText/browser/placeholderText.contribution.js";
60
+ import "monaco-editor/editor/standalone/browser/quickAccess/standaloneCommandsQuickAccess.js";
61
+ import "monaco-editor/editor/standalone/browser/quickAccess/standaloneHelpQuickAccess.js";
62
+ import "monaco-editor/editor/standalone/browser/quickAccess/standaloneGotoSymbolQuickAccess.js";
63
+ import "monaco-editor/editor/contrib/readOnlyMessage/browser/contribution.js";
64
+ import "monaco-editor/editor/standalone/browser/referenceSearch/standaloneReferenceSearch.js";
65
+ import "monaco-editor/editor/contrib/rename/browser/rename.js";
66
+ import "monaco-editor/editor/contrib/sectionHeaders/browser/sectionHeaders.js";
67
+ import "monaco-editor/editor/contrib/semanticTokens/browser/viewportSemanticTokens.js";
68
+ import "monaco-editor/editor/contrib/smartSelect/browser/smartSelect.js";
69
+ import "monaco-editor/editor/contrib/snippet/browser/snippetController2.js";
70
+ import "monaco-editor/editor/contrib/stickyScroll/browser/stickyScrollContribution.js";
71
+ import "monaco-editor/editor/contrib/suggest/browser/suggestInlineCompletions.js";
72
+ import "monaco-editor/editor/standalone/browser/toggleHighContrast/toggleHighContrast.js";
73
+ import "monaco-editor/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js";
74
+ import "monaco-editor/editor/contrib/tokenization/browser/tokenization.js";
75
+ import "monaco-editor/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js";
76
+ import "monaco-editor/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js";
77
+ import "monaco-editor/editor/contrib/wordHighlighter/browser/wordHighlighter.js";
78
+ import "monaco-editor/editor/contrib/wordOperations/browser/wordOperations.js";
79
+ import "monaco-editor/editor/contrib/wordPartOperations/browser/wordPartOperations.js";
80
+ import "monaco-editor/editor/browser/coreCommands.js";
81
+ import "monaco-editor/editor/contrib/caretOperations/browser/caretOperations.js";
82
+ import "monaco-editor/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js";
83
+ import "monaco-editor/editor/contrib/find/browser/findController.js";
84
+ import "monaco-editor/editor/contrib/gotoSymbol/browser/goToCommands.js";
85
+ import "monaco-editor/editor/contrib/gotoError/browser/markerSelectionStatus.js";
86
+ import "monaco-editor/editor/contrib/semanticTokens/browser/documentSemanticTokens.js";
87
+ import "monaco-editor/editor/contrib/suggest/browser/suggestController.js";
88
+ import "monaco-editor/editor/common/standaloneStrings.js";
@@ -0,0 +1,53 @@
1
+ /**
2
+ * URL of the self-contained editor worker file that this package ships, relative to this module.
3
+ *
4
+ * @remarks
5
+ * The relative path is the same from `src/MaqlEditor/monaco/` and from `esm/MaqlEditor/monaco/`, so
6
+ * it also holds when a dev server serves this package from its sources. webpack and Vite recognise
7
+ * the `new URL("...", import.meta.url)` pattern and emit the file as an asset. A pre-bundled
8
+ * dependency, other bundlers and a Module Federation remote on another origin leave a URL that does
9
+ * not exist or that the page cannot start a worker from. The URL must therefore be checked before
10
+ * the worker starts, see {@link resolveEditorWorkerUrl}.
11
+ *
12
+ * @internal
13
+ */
14
+ export declare function getBundledEditorWorkerUrl(): string;
15
+ /**
16
+ * Resolves the URL the editor worker starts from: the bundled worker file when the bundler emitted
17
+ * it next to the page, the inline worker otherwise.
18
+ *
19
+ * @param assetUrl - URL of the bundled worker file, defaults to {@link getBundledEditorWorkerUrl}
20
+ * @internal
21
+ */
22
+ export declare function resolveEditorWorkerUrl(assetUrl?: string): Promise<string>;
23
+ /**
24
+ * Name of the Trusted Types policy that turns the worker URL into a `TrustedScriptURL`. A page whose
25
+ * content security policy lists the allowed policy names must allow this one.
26
+ *
27
+ * @internal
28
+ */
29
+ export declare const EDITOR_WORKER_TRUSTED_TYPES_POLICY = "gdMetricEditorWorker";
30
+ /**
31
+ * Creates the `MonacoEnvironment.getWorker` that starts the bundled editor worker.
32
+ *
33
+ * @remarks
34
+ * The worker URL and the Trusted Types policy are created once and shared by all workers, which is why
35
+ * the cache lives in the created function: tests create their own, the runtime uses one. A failed
36
+ * resolution is not cached, so the next worker tries again.
37
+ *
38
+ * @param resolveWorkerUrl - resolves the URL of the worker this package ships
39
+ * @internal
40
+ */
41
+ export declare function createEditorWorkerFactory(resolveWorkerUrl?: () => Promise<string>): (workerId: string, label: string) => Promise<Worker>;
42
+ /**
43
+ * Point Monaco at the bundled `editorWorkerService` worker.
44
+ *
45
+ * Called at module load (below) as well as before each `monaco.editor.create`, because Monaco can
46
+ * reach for the worker at any point after its own modules are evaluated — not only once an editor
47
+ * exists. Whoever gets there first wins; the rest are no-ops.
48
+ *
49
+ * Idempotent, and never overrides a `MonacoEnvironment` already provided by the hosting
50
+ * application — a host that wires its own workers stays in charge.
51
+ */
52
+ export declare function setupMonacoWorkers(): void;
53
+ //# sourceMappingURL=monacoWorkers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"monacoWorkers.d.ts","sourceRoot":"","sources":["../../../src/MaqlEditor/monaco/monacoWorkers.ts"],"names":[],"mappings":"AAsBA;;;;;;;;;;;;GAYG;AACH,wBAAgB,yBAAyB,IAAI,MAAM,CAElD;AAiED;;;;;;GAMG;AACH,wBAAsB,sBAAsB,CACxC,QAAQ,GAAE,MAAoC,GAC/C,OAAO,CAAC,MAAM,CAAC,CAEjB;AAKD;;;;;GAKG;AACH,eAAO,MAAM,kCAAkC,yBAAyB,CAAC;AA2BzE;;;;;;;;;;GAUG;AACH,wBAAgB,yBAAyB,CACrC,gBAAgB,GAAE,MAAM,OAAO,CAAC,MAAM,CAA0B,GACjE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAetD;AAID;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,IAAI,IAAI,CASzC"}
@@ -0,0 +1,176 @@
1
+ // (C) 2026 GoodData Corporation
2
+ // Monaco lazily spawns one web worker of its own (label `editorWorkerService`) for the work it keeps
3
+ // off the UI thread: diff computation, word-based suggestions, link detection. We never construct it,
4
+ // so its script URL comes from Monaco's bundler fallback in
5
+ // `monaco-editor/esm/vs/editor/browser/services/editorWorkerService.js`:
6
+ //
7
+ // new URL("../../common/services/editorWebWorkerMain.js", import.meta.url)
8
+ //
9
+ // Bundlers read a bare `new URL(..., import.meta.url)` (not wrapped in `new Worker(...)`) as a plain
10
+ // *asset* reference, so they copy or inline the untouched 544 B entry instead of bundling it. The
11
+ // worker then fails on its own first relative import:
12
+ //
13
+ // Failed to load worker script for label: editorWorkerService.
14
+ // TypeError: Failed to resolve module specifier "../../../base/common/worker/webWorkerBootstrap.js".
15
+ //
16
+ // The fix is to hand Monaco a properly bundled worker. The build of this package bundles the entry
17
+ // with its whole dependency graph into the self-contained `worker/monaco-editor-worker.js` and wraps
18
+ // the same code into a string module (see the `build-worker` script). sdk-ui-geo ships its MapLibre
19
+ // worker the same way. Nothing here depends on a bundler feature, so the package works in any bundler
20
+ // and in the Vite dev server, which pre-bundles it from node_modules.
21
+ /**
22
+ * URL of the self-contained editor worker file that this package ships, relative to this module.
23
+ *
24
+ * @remarks
25
+ * The relative path is the same from `src/MaqlEditor/monaco/` and from `esm/MaqlEditor/monaco/`, so
26
+ * it also holds when a dev server serves this package from its sources. webpack and Vite recognise
27
+ * the `new URL("...", import.meta.url)` pattern and emit the file as an asset. A pre-bundled
28
+ * dependency, other bundlers and a Module Federation remote on another origin leave a URL that does
29
+ * not exist or that the page cannot start a worker from. The URL must therefore be checked before
30
+ * the worker starts, see {@link resolveEditorWorkerUrl}.
31
+ *
32
+ * @internal
33
+ */
34
+ export function getBundledEditorWorkerUrl() {
35
+ return new URL("../../../worker/monaco-editor-worker.js", import.meta.url).href;
36
+ }
37
+ /**
38
+ * How long the check of the bundled worker file may take before the inline worker is used instead.
39
+ */
40
+ const WORKER_FILE_CHECK_TIMEOUT_MS = 5000;
41
+ /**
42
+ * Tells whether the worker can start from the URL directly: the URL is a same-origin `http(s)` URL
43
+ * and the server has the file as JavaScript.
44
+ *
45
+ * @remarks
46
+ * A cross-origin URL is not used even when the file exists: the browser does not start a worker from
47
+ * another origin, which is the case of this editor loaded from a Module Federation remote. The same
48
+ * holds for a same-origin URL that redirects to another origin.
49
+ *
50
+ * The MIME type is checked because single-page application servers often answer a missing file with
51
+ * `index.html` and status 200, and browsers do not start a module worker from HTML.
52
+ */
53
+ async function isReachableSameOriginScript(url) {
54
+ const pageOrigin = typeof location === "undefined" ? undefined : location.origin;
55
+ if (!pageOrigin) {
56
+ return false;
57
+ }
58
+ let parsed;
59
+ try {
60
+ parsed = new URL(url);
61
+ }
62
+ catch {
63
+ return false;
64
+ }
65
+ if (!/^https?:$/.test(parsed.protocol) || parsed.origin !== pageOrigin) {
66
+ return false;
67
+ }
68
+ try {
69
+ const response = await fetch(url, {
70
+ method: "HEAD",
71
+ signal: AbortSignal.timeout(WORKER_FILE_CHECK_TIMEOUT_MS),
72
+ });
73
+ return (response.ok &&
74
+ (!response.url || new URL(response.url).origin === pageOrigin) &&
75
+ /^(text|application)\/(javascript|ecmascript)\b/.test(response.headers.get("content-type") ?? ""));
76
+ }
77
+ catch {
78
+ return false;
79
+ }
80
+ }
81
+ /**
82
+ * Makes a worker URL from the worker code this package ships inline. The Blob URL carries the origin
83
+ * of the page, so the worker starts from it on any page. The URL is never revoked: Monaco creates its
84
+ * worker lazily and the one Blob lives as long as the page.
85
+ */
86
+ async function createInlineWorkerUrl() {
87
+ const { default: source } = await import("../../../worker/monaco-editor-worker.source.js");
88
+ return URL.createObjectURL(new Blob([source], { type: "text/javascript" }));
89
+ }
90
+ /**
91
+ * Resolves the URL the editor worker starts from: the bundled worker file when the bundler emitted
92
+ * it next to the page, the inline worker otherwise.
93
+ *
94
+ * @param assetUrl - URL of the bundled worker file, defaults to {@link getBundledEditorWorkerUrl}
95
+ * @internal
96
+ */
97
+ export async function resolveEditorWorkerUrl(assetUrl = getBundledEditorWorkerUrl()) {
98
+ return (await isReachableSameOriginScript(assetUrl)) ? assetUrl : createInlineWorkerUrl();
99
+ }
100
+ /**
101
+ * Name of the Trusted Types policy that turns the worker URL into a `TrustedScriptURL`. A page whose
102
+ * content security policy lists the allowed policy names must allow this one.
103
+ *
104
+ * @internal
105
+ */
106
+ export const EDITOR_WORKER_TRUSTED_TYPES_POLICY = "gdMetricEditorWorker";
107
+ /**
108
+ * Creates the Trusted Types policy for the worker URL the way Monaco creates its own: through the
109
+ * host's `MonacoEnvironment.createTrustedTypesPolicy` when it has one, through the browser otherwise.
110
+ * Without the policy, a page that enforces Trusted Types does not start a worker from a plain string.
111
+ * Monaco itself already uses the name `defaultWorkerFactory`, and a page that enforces Trusted Types
112
+ * may not allow a second policy of the same name.
113
+ */
114
+ function createWorkerUrlPolicy() {
115
+ const options = { createScriptURL: (url) => url };
116
+ const environment = globalThis.MonacoEnvironment;
117
+ // The DOM typings of TypeScript do not declare Trusted Types; the browser API has the same shape.
118
+ const { trustedTypes } = globalThis;
119
+ try {
120
+ return environment?.createTrustedTypesPolicy
121
+ ? environment.createTrustedTypesPolicy(EDITOR_WORKER_TRUSTED_TYPES_POLICY, options)
122
+ : trustedTypes?.createPolicy(EDITOR_WORKER_TRUSTED_TYPES_POLICY, options);
123
+ }
124
+ catch (error) {
125
+ console.error("The Trusted Types policy of the metric editor worker cannot be created.", error);
126
+ return undefined;
127
+ }
128
+ }
129
+ /**
130
+ * Creates the `MonacoEnvironment.getWorker` that starts the bundled editor worker.
131
+ *
132
+ * @remarks
133
+ * The worker URL and the Trusted Types policy are created once and shared by all workers, which is why
134
+ * the cache lives in the created function: tests create their own, the runtime uses one. A failed
135
+ * resolution is not cached, so the next worker tries again.
136
+ *
137
+ * @param resolveWorkerUrl - resolves the URL of the worker this package ships
138
+ * @internal
139
+ */
140
+ export function createEditorWorkerFactory(resolveWorkerUrl = resolveEditorWorkerUrl) {
141
+ let resolvedWorkerUrl;
142
+ let workerUrlPolicy;
143
+ return async (_workerId, label) => {
144
+ resolvedWorkerUrl ??= resolveWorkerUrl().catch((error) => {
145
+ resolvedWorkerUrl = undefined;
146
+ throw error;
147
+ });
148
+ const workerUrl = await resolvedWorkerUrl;
149
+ workerUrlPolicy ??= { value: createWorkerUrlPolicy() };
150
+ const scriptUrl = workerUrlPolicy.value?.createScriptURL?.(workerUrl) ?? workerUrl;
151
+ return new Worker(scriptUrl, { type: "module", name: label });
152
+ };
153
+ }
154
+ const getEditorWorker = createEditorWorkerFactory();
155
+ /**
156
+ * Point Monaco at the bundled `editorWorkerService` worker.
157
+ *
158
+ * Called at module load (below) as well as before each `monaco.editor.create`, because Monaco can
159
+ * reach for the worker at any point after its own modules are evaluated — not only once an editor
160
+ * exists. Whoever gets there first wins; the rest are no-ops.
161
+ *
162
+ * Idempotent, and never overrides a `MonacoEnvironment` already provided by the hosting
163
+ * application — a host that wires its own workers stays in charge.
164
+ */
165
+ export function setupMonacoWorkers() {
166
+ if (globalThis.MonacoEnvironment?.getWorker || globalThis.MonacoEnvironment?.getWorkerUrl) {
167
+ return;
168
+ }
169
+ globalThis.MonacoEnvironment = {
170
+ ...globalThis.MonacoEnvironment,
171
+ getWorker: getEditorWorker,
172
+ };
173
+ }
174
+ // Run on import, so the environment is in place before any Monaco module can ask for the worker —
175
+ // importers of this module get the wiring by depending on it, without an ordering contract.
176
+ setupMonacoWorkers();
@@ -0,0 +1,30 @@
1
+ import { type Ref } from "react";
2
+ import { type IStandaloneCodeEditor, type Monaco } from "../monaco/MonacoEditor.js";
3
+ import { type MaqlEditorDefaultTheme } from "../theme/default.js";
4
+ /**
5
+ * @internal
6
+ */
7
+ export interface ISqlEditorApi {
8
+ copy: () => boolean;
9
+ }
10
+ /**
11
+ * @internal
12
+ */
13
+ export interface ISqlEditorProps {
14
+ cssTheme?: MaqlEditorDefaultTheme;
15
+ autofocus?: boolean;
16
+ defaultValue?: string;
17
+ readonly?: boolean;
18
+ inline?: boolean;
19
+ onFocus?: (editor: IStandaloneCodeEditor, monaco: Monaco) => void;
20
+ onBlur?: (editor: IStandaloneCodeEditor, monaco: Monaco) => void;
21
+ onEditorMount?: (editor: IStandaloneCodeEditor, monaco: Monaco) => void;
22
+ onChange?: (editor: IStandaloneCodeEditor, monaco: Monaco, value: string) => void;
23
+ onValid?: (editor: IStandaloneCodeEditor, monaco: Monaco, valid: boolean) => void;
24
+ ref?: Ref<ISqlEditorApi | null>;
25
+ }
26
+ /**
27
+ * @internal
28
+ */
29
+ export declare const SqlEditor: import("react").ForwardRefExoticComponent<Omit<ISqlEditorProps, "ref"> & import("react").RefAttributes<ISqlEditorApi>>;
30
+ //# sourceMappingURL=SqlEditor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SqlEditor.d.ts","sourceRoot":"","sources":["../../../src/MaqlEditor/sql/SqlEditor.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,GAAG,EAAoD,MAAM,OAAO,CAAC;AAMnF,OAAO,EACH,KAAK,qBAAqB,EAE1B,KAAK,MAAM,EAEd,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AASlE;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,MAAM,OAAO,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B,QAAQ,CAAC,EAAE,sBAAsB,CAAC;IAClC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,qBAAqB,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAClE,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,qBAAqB,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACjE,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,qBAAqB,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACxE,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,qBAAqB,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClF,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,qBAAqB,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAClF,GAAG,CAAC,EAAE,GAAG,CAAC,aAAa,GAAG,IAAI,CAAC,CAAC;CACnC;AAED;;GAEG;AACH,eAAO,MAAM,SAAS,wHA0DpB,CAAC"}
@@ -0,0 +1,48 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ // (C) 2021-2026 GoodData Corporation
3
+ import { forwardRef, useImperativeHandle, useMemo, useRef } from "react";
4
+ import classNames from "classnames";
5
+ import { useCodeTheme } from "../hooks/useCodeTheme.js";
6
+ import { useCopyToClipboard } from "../hooks/useCopyToClipboard.js";
7
+ import { MonacoEditor, } from "../monaco/MonacoEditor.js";
8
+ import { ThemeProvider } from "../theme/theme.js";
9
+ import { LANGUAGE } from "./constants.js";
10
+ import { formatValue } from "./formatter.js";
11
+ import { useLanguageConfiguration } from "./hooks/useLanguageConfiguration.js";
12
+ import { useMonaco } from "./hooks/useMonaco.js";
13
+ import { SqlEditorClass, SqlEditorTestClass } from "./SqlEditor.styles.js";
14
+ /**
15
+ * @internal
16
+ */
17
+ export const SqlEditor = forwardRef(function SqlEditor({ readonly = false, inline = false, autofocus = false, defaultValue = "", cssTheme, onFocus, onBlur, onEditorMount, onValid, onChange, }, ref) {
18
+ const [theme, themeData] = useCodeTheme();
19
+ const handlers = useMemo(() => ({
20
+ onFocus,
21
+ onBlur,
22
+ onEditorMount,
23
+ onValid,
24
+ onChange,
25
+ }), [onBlur, onChange, onEditorMount, onFocus, onValid]);
26
+ const { onMount, onUpdate } = useMonaco(LANGUAGE, handlers);
27
+ const languageConfiguration = useLanguageConfiguration();
28
+ const options = useEditorOptions();
29
+ const formattedValue = useFormattedValue(defaultValue);
30
+ const copyToClipboard = useCopyToClipboard();
31
+ const editor = useRef(null);
32
+ useImperativeHandle(ref, () => ({
33
+ copy: () => copyToClipboard(editor.current),
34
+ }));
35
+ return (_jsx(ThemeProvider, { theme: cssTheme, children: _jsx(MonacoEditor, { inline: inline, options: options, readonly: readonly, autofocus: autofocus, className: classNames(SqlEditorClass, SqlEditorTestClass), defaultValue: formattedValue, language: LANGUAGE, languageConfiguration: languageConfiguration, themeName: theme, themeData: themeData, onEditorMount: onMount, onEditorUpdate: onUpdate, ref: editor }) }));
36
+ });
37
+ function useEditorOptions() {
38
+ return useMemo(() => ({
39
+ lineNumbers: "off",
40
+ lineNumbersMinChars: 0,
41
+ folding: false,
42
+ }), []);
43
+ }
44
+ function useFormattedValue(value) {
45
+ return useMemo(() => {
46
+ return formatValue(value, { tabSize: 4, insertSpaces: true });
47
+ }, [value]);
48
+ }
@@ -0,0 +1,3 @@
1
+ export declare const SqlEditorClass = "sql-editor";
2
+ export declare const SqlEditorTestClass = "s-sql_editor";
3
+ //# sourceMappingURL=SqlEditor.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SqlEditor.styles.d.ts","sourceRoot":"","sources":["../../../src/MaqlEditor/sql/SqlEditor.styles.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,eAAe,CAAC;AAC3C,eAAO,MAAM,kBAAkB,iBAAiB,CAAC"}
@@ -0,0 +1,3 @@
1
+ // (C) 2021-2026 GoodData Corporation
2
+ export const SqlEditorClass = "sql-editor";
3
+ export const SqlEditorTestClass = "s-sql_editor";
@@ -0,0 +1,2 @@
1
+ export declare const LANGUAGE = "sql";
2
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/MaqlEditor/sql/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,QAAQ,CAAC"}
@@ -0,0 +1,2 @@
1
+ // (C) 2022-2026 GoodData Corporation
2
+ export const LANGUAGE = "sql";
@@ -0,0 +1,6 @@
1
+ import type * as monaco from "monaco-editor/editor/editor.api.js";
2
+ import { type TextDocument } from "vscode-languageserver-textdocument";
3
+ import { type FormattingOptions, type Range } from "../monaco/MonacoEditor.js";
4
+ export declare function formatDocument(document: TextDocument, options: FormattingOptions, range: Range): monaco.languages.TextEdit[];
5
+ export declare function formatValue(text: string, options: FormattingOptions): string;
6
+ //# sourceMappingURL=formatter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatter.d.ts","sourceRoot":"","sources":["../../../src/MaqlEditor/sql/formatter.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,MAAM,oCAAoC,CAAC;AAElE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAGvE,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAE/E,wBAAgB,cAAc,CAC1B,QAAQ,EAAE,YAAY,EACtB,OAAO,EAAE,iBAAiB,EAC1B,KAAK,EAAE,KAAK,GACb,MAAM,CAAC,SAAS,CAAC,QAAQ,EAAE,CAQ7B;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,GAAG,MAAM,CAK5E"}
@@ -0,0 +1,17 @@
1
+ // (C) 2021-2026 GoodData Corporation
2
+ import { format } from "sql-formatter";
3
+ export function formatDocument(document, options, range) {
4
+ const formatted = formatValue(document.getText(), options);
5
+ return [
6
+ {
7
+ range: range,
8
+ text: formatted,
9
+ },
10
+ ];
11
+ }
12
+ export function formatValue(text, options) {
13
+ return format(text, {
14
+ useTabs: !options.insertSpaces,
15
+ tabWidth: options.tabSize,
16
+ });
17
+ }