@flanksource/clicky-ui 0.3.18 → 0.3.20

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 (609) hide show
  1. package/dist/components/ComboboxMenu.cjs +5 -1
  2. package/dist/components/ComboboxMenu.cjs.map +1 -1
  3. package/dist/components/ComboboxMenu.d.ts.map +1 -1
  4. package/dist/components/ComboboxMenu.js +5 -1
  5. package/dist/components/ComboboxMenu.js.map +1 -1
  6. package/dist/components/EndpointSelector.model.cjs +96 -0
  7. package/dist/components/EndpointSelector.model.cjs.map +1 -0
  8. package/dist/components/EndpointSelector.model.d.ts +2 -0
  9. package/dist/components/EndpointSelector.model.d.ts.map +1 -1
  10. package/dist/components/EndpointSelector.model.js +96 -0
  11. package/dist/components/EndpointSelector.model.js.map +1 -0
  12. package/dist/components/ErrorWrapper.cjs +1 -1
  13. package/dist/components/ErrorWrapper.cjs.map +1 -1
  14. package/dist/components/ErrorWrapper.js +1 -1
  15. package/dist/components/ErrorWrapper.js.map +1 -1
  16. package/dist/components/FilterBar.cjs +52 -2
  17. package/dist/components/FilterBar.cjs.map +1 -1
  18. package/dist/components/FilterBar.d.ts +20 -2
  19. package/dist/components/FilterBar.d.ts.map +1 -1
  20. package/dist/components/FilterBar.js +52 -2
  21. package/dist/components/FilterBar.js.map +1 -1
  22. package/dist/components/JSONPathField.cjs +87 -66
  23. package/dist/components/JSONPathField.cjs.map +1 -1
  24. package/dist/components/JSONPathField.d.ts +26 -9
  25. package/dist/components/JSONPathField.d.ts.map +1 -1
  26. package/dist/components/JSONPathField.js +88 -67
  27. package/dist/components/JSONPathField.js.map +1 -1
  28. package/dist/components/JSONPathPlayground.cjs +225 -0
  29. package/dist/components/JSONPathPlayground.cjs.map +1 -0
  30. package/dist/components/JSONPathPlayground.d.ts +59 -0
  31. package/dist/components/JSONPathPlayground.d.ts.map +1 -0
  32. package/dist/components/JSONPathPlayground.js +225 -0
  33. package/dist/components/JSONPathPlayground.js.map +1 -0
  34. package/dist/components/OnePasswordSelector.cjs +178 -0
  35. package/dist/components/OnePasswordSelector.cjs.map +1 -0
  36. package/dist/components/OnePasswordSelector.d.ts +8 -0
  37. package/dist/components/OnePasswordSelector.d.ts.map +1 -0
  38. package/dist/components/OnePasswordSelector.js +178 -0
  39. package/dist/components/OnePasswordSelector.js.map +1 -0
  40. package/dist/components/OnePasswordSelector.model.cjs +31 -0
  41. package/dist/components/OnePasswordSelector.model.cjs.map +1 -0
  42. package/dist/components/OnePasswordSelector.model.d.ts +27 -0
  43. package/dist/components/OnePasswordSelector.model.d.ts.map +1 -0
  44. package/dist/components/OnePasswordSelector.model.js +31 -0
  45. package/dist/components/OnePasswordSelector.model.js.map +1 -0
  46. package/dist/components/SecretFormField.cjs +142 -0
  47. package/dist/components/SecretFormField.cjs.map +1 -0
  48. package/dist/components/SecretFormField.d.ts +9 -0
  49. package/dist/components/SecretFormField.d.ts.map +1 -0
  50. package/dist/components/SecretFormField.js +142 -0
  51. package/dist/components/SecretFormField.js.map +1 -0
  52. package/dist/components/SecretKeySelector.cjs +20 -14
  53. package/dist/components/SecretKeySelector.cjs.map +1 -1
  54. package/dist/components/SecretKeySelector.d.ts +4 -1
  55. package/dist/components/SecretKeySelector.d.ts.map +1 -1
  56. package/dist/components/SecretKeySelector.js +20 -14
  57. package/dist/components/SecretKeySelector.js.map +1 -1
  58. package/dist/components/TreePickerField.cjs +55 -29
  59. package/dist/components/TreePickerField.cjs.map +1 -1
  60. package/dist/components/TreePickerField.d.ts +10 -1
  61. package/dist/components/TreePickerField.d.ts.map +1 -1
  62. package/dist/components/TreePickerField.js +56 -30
  63. package/dist/components/TreePickerField.js.map +1 -1
  64. package/dist/components/UnitStepControls.cjs +55 -0
  65. package/dist/components/UnitStepControls.cjs.map +1 -0
  66. package/dist/components/UnitStepControls.d.ts +10 -0
  67. package/dist/components/UnitStepControls.d.ts.map +1 -0
  68. package/dist/components/UnitStepControls.js +55 -0
  69. package/dist/components/UnitStepControls.js.map +1 -0
  70. package/dist/components/combobox-types.d.ts +9 -0
  71. package/dist/components/combobox-types.d.ts.map +1 -1
  72. package/dist/components/filter-bar-utils.cjs +7 -0
  73. package/dist/components/filter-bar-utils.cjs.map +1 -1
  74. package/dist/components/filter-bar-utils.d.ts.map +1 -1
  75. package/dist/components/filter-bar-utils.js +7 -0
  76. package/dist/components/filter-bar-utils.js.map +1 -1
  77. package/dist/components/jotai-bindings-core.cjs.map +1 -1
  78. package/dist/components/jotai-bindings-core.d.ts +4 -1
  79. package/dist/components/jotai-bindings-core.d.ts.map +1 -1
  80. package/dist/components/jotai-bindings-core.js.map +1 -1
  81. package/dist/components/json-schema-form-accordion-array.cjs +5 -73
  82. package/dist/components/json-schema-form-accordion-array.cjs.map +1 -1
  83. package/dist/components/json-schema-form-accordion-array.d.ts.map +1 -1
  84. package/dist/components/json-schema-form-accordion-array.js +3 -71
  85. package/dist/components/json-schema-form-accordion-array.js.map +1 -1
  86. package/dist/components/json-schema-form-array.cjs +6 -1
  87. package/dist/components/json-schema-form-array.cjs.map +1 -1
  88. package/dist/components/json-schema-form-array.d.ts.map +1 -1
  89. package/dist/components/json-schema-form-array.js +6 -1
  90. package/dist/components/json-schema-form-array.js.map +1 -1
  91. package/dist/components/json-schema-form-cards-array.cjs +96 -0
  92. package/dist/components/json-schema-form-cards-array.cjs.map +1 -0
  93. package/dist/components/json-schema-form-cards-array.d.ts +7 -0
  94. package/dist/components/json-schema-form-cards-array.d.ts.map +1 -0
  95. package/dist/components/json-schema-form-cards-array.js +96 -0
  96. package/dist/components/json-schema-form-cards-array.js.map +1 -0
  97. package/dist/components/json-schema-form-item-row.cjs +81 -0
  98. package/dist/components/json-schema-form-item-row.cjs.map +1 -0
  99. package/dist/components/json-schema-form-item-row.d.ts +19 -0
  100. package/dist/components/json-schema-form-item-row.d.ts.map +1 -0
  101. package/dist/components/json-schema-form-item-row.js +81 -0
  102. package/dist/components/json-schema-form-item-row.js.map +1 -0
  103. package/dist/components/json-schema-form-render.cjs +4 -3
  104. package/dist/components/json-schema-form-render.cjs.map +1 -1
  105. package/dist/components/json-schema-form-render.d.ts.map +1 -1
  106. package/dist/components/json-schema-form-render.js +4 -3
  107. package/dist/components/json-schema-form-render.js.map +1 -1
  108. package/dist/components/json-schema-form-resolve.cjs +1 -1
  109. package/dist/components/json-schema-form-resolve.cjs.map +1 -1
  110. package/dist/components/json-schema-form-resolve.js +1 -1
  111. package/dist/components/json-schema-form-resolve.js.map +1 -1
  112. package/dist/components/json-schema-form-tone.cjs +12 -0
  113. package/dist/components/json-schema-form-tone.cjs.map +1 -1
  114. package/dist/components/json-schema-form-tone.js +12 -0
  115. package/dist/components/json-schema-form-tone.js.map +1 -1
  116. package/dist/components/json-schema-form-types.d.ts +10 -1
  117. package/dist/components/json-schema-form-types.d.ts.map +1 -1
  118. package/dist/components/jsonPathTree.cjs +189 -0
  119. package/dist/components/jsonPathTree.cjs.map +1 -0
  120. package/dist/components/jsonPathTree.d.ts +92 -0
  121. package/dist/components/jsonPathTree.d.ts.map +1 -0
  122. package/dist/components/jsonPathTree.js +189 -0
  123. package/dist/components/jsonPathTree.js.map +1 -0
  124. package/dist/components/secret-form-extension.cjs +30 -0
  125. package/dist/components/secret-form-extension.cjs.map +1 -0
  126. package/dist/components/secret-form-extension.d.ts +23 -0
  127. package/dist/components/secret-form-extension.d.ts.map +1 -0
  128. package/dist/components/secret-form-extension.js +30 -0
  129. package/dist/components/secret-form-extension.js.map +1 -0
  130. package/dist/components/unit-form-extension.cjs +126 -0
  131. package/dist/components/unit-form-extension.cjs.map +1 -0
  132. package/dist/components/unit-form-extension.d.ts +8 -0
  133. package/dist/components/unit-form-extension.d.ts.map +1 -0
  134. package/dist/components/unit-form-extension.js +126 -0
  135. package/dist/components/unit-form-extension.js.map +1 -0
  136. package/dist/components.cjs +20 -0
  137. package/dist/components.cjs.map +1 -1
  138. package/dist/components.d.ts +7 -0
  139. package/dist/components.d.ts.map +1 -1
  140. package/dist/components.js +20 -0
  141. package/dist/components.js.map +1 -1
  142. package/dist/data/TaskExecDetails.cjs +40 -0
  143. package/dist/data/TaskExecDetails.cjs.map +1 -0
  144. package/dist/data/TaskExecDetails.d.ts +5 -0
  145. package/dist/data/TaskExecDetails.d.ts.map +1 -0
  146. package/dist/data/TaskExecDetails.js +40 -0
  147. package/dist/data/TaskExecDetails.js.map +1 -0
  148. package/dist/data/TaskProgress.cjs +9 -3
  149. package/dist/data/TaskProgress.cjs.map +1 -1
  150. package/dist/data/TaskProgress.d.ts.map +1 -1
  151. package/dist/data/TaskProgress.js +9 -3
  152. package/dist/data/TaskProgress.js.map +1 -1
  153. package/dist/data/TaskSnapshot.cjs.map +1 -1
  154. package/dist/data/TaskSnapshot.d.ts +12 -1
  155. package/dist/data/TaskSnapshot.d.ts.map +1 -1
  156. package/dist/data/TaskSnapshot.js.map +1 -1
  157. package/dist/data/TreeNode.cjs +3 -0
  158. package/dist/data/TreeNode.cjs.map +1 -1
  159. package/dist/data/TreeNode.d.ts.map +1 -1
  160. package/dist/data/TreeNode.js +3 -0
  161. package/dist/data/TreeNode.js.map +1 -1
  162. package/dist/data/data-table-filter-values.cjs +20 -0
  163. package/dist/data/data-table-filter-values.cjs.map +1 -1
  164. package/dist/data/data-table-filter-values.d.ts +16 -0
  165. package/dist/data/data-table-filter-values.d.ts.map +1 -1
  166. package/dist/data/data-table-filter-values.js +20 -0
  167. package/dist/data/data-table-filter-values.js.map +1 -1
  168. package/dist/data/data-table-server-filters.cjs +23 -29
  169. package/dist/data/data-table-server-filters.cjs.map +1 -1
  170. package/dist/data/data-table-server-filters.d.ts.map +1 -1
  171. package/dist/data/data-table-server-filters.js +21 -27
  172. package/dist/data/data-table-server-filters.js.map +1 -1
  173. package/dist/data/diagnostics/ErrorDetails.cjs +61 -8
  174. package/dist/data/diagnostics/ErrorDetails.cjs.map +1 -1
  175. package/dist/data/diagnostics/ErrorDetails.d.ts.map +1 -1
  176. package/dist/data/diagnostics/ErrorDetails.js +61 -8
  177. package/dist/data/diagnostics/ErrorDetails.js.map +1 -1
  178. package/dist/data/diagnostics/error-diagnostics.cjs +10 -4
  179. package/dist/data/diagnostics/error-diagnostics.cjs.map +1 -1
  180. package/dist/data/diagnostics/error-diagnostics.d.ts.map +1 -1
  181. package/dist/data/diagnostics/error-diagnostics.js +10 -4
  182. package/dist/data/diagnostics/error-diagnostics.js.map +1 -1
  183. package/dist/data/query-browser/QueryBrowser.cjs +139 -161
  184. package/dist/data/query-browser/QueryBrowser.cjs.map +1 -1
  185. package/dist/data/query-browser/QueryBrowser.d.ts +1 -71
  186. package/dist/data/query-browser/QueryBrowser.d.ts.map +1 -1
  187. package/dist/data/query-browser/QueryBrowser.editor.cjs +88 -0
  188. package/dist/data/query-browser/QueryBrowser.editor.cjs.map +1 -0
  189. package/dist/data/query-browser/QueryBrowser.editor.d.ts +12 -0
  190. package/dist/data/query-browser/QueryBrowser.editor.d.ts.map +1 -0
  191. package/dist/data/query-browser/QueryBrowser.editor.js +88 -0
  192. package/dist/data/query-browser/QueryBrowser.editor.js.map +1 -0
  193. package/dist/data/query-browser/QueryBrowser.js +140 -162
  194. package/dist/data/query-browser/QueryBrowser.js.map +1 -1
  195. package/dist/data/query-browser/QueryBrowser.types.cjs +12 -0
  196. package/dist/data/query-browser/QueryBrowser.types.cjs.map +1 -0
  197. package/dist/data/query-browser/QueryBrowser.types.d.ts +94 -0
  198. package/dist/data/query-browser/QueryBrowser.types.d.ts.map +1 -0
  199. package/dist/data/query-browser/QueryBrowser.types.js +12 -0
  200. package/dist/data/query-browser/QueryBrowser.types.js.map +1 -0
  201. package/dist/data/query-browser/QueryBrowserDiagnosticsPanel.cjs +56 -0
  202. package/dist/data/query-browser/QueryBrowserDiagnosticsPanel.cjs.map +1 -0
  203. package/dist/data/query-browser/QueryBrowserDiagnosticsPanel.d.ts +5 -0
  204. package/dist/data/query-browser/QueryBrowserDiagnosticsPanel.d.ts.map +1 -0
  205. package/dist/data/query-browser/QueryBrowserDiagnosticsPanel.js +56 -0
  206. package/dist/data/query-browser/QueryBrowserDiagnosticsPanel.js.map +1 -0
  207. package/dist/data/query-browser/QueryBrowserResults.cjs +80 -0
  208. package/dist/data/query-browser/QueryBrowserResults.cjs.map +1 -0
  209. package/dist/data/query-browser/QueryBrowserResults.d.ts +16 -0
  210. package/dist/data/query-browser/QueryBrowserResults.d.ts.map +1 -0
  211. package/dist/data/query-browser/QueryBrowserResults.js +80 -0
  212. package/dist/data/query-browser/QueryBrowserResults.js.map +1 -0
  213. package/dist/data/query-browser/index.d.ts +2 -1
  214. package/dist/data/query-browser/index.d.ts.map +1 -1
  215. package/dist/data/task-exec-details.cjs +9 -0
  216. package/dist/data/task-exec-details.cjs.map +1 -0
  217. package/dist/data/task-exec-details.d.ts +3 -0
  218. package/dist/data/task-exec-details.d.ts.map +1 -0
  219. package/dist/data/task-exec-details.js +9 -0
  220. package/dist/data/task-exec-details.js.map +1 -0
  221. package/dist/data/version-info.cjs +3 -3
  222. package/dist/data/version-info.js +3 -3
  223. package/dist/data.cjs +2 -0
  224. package/dist/data.cjs.map +1 -1
  225. package/dist/data.d.ts +1 -1
  226. package/dist/data.d.ts.map +1 -1
  227. package/dist/data.js +2 -0
  228. package/dist/data.js.map +1 -1
  229. package/dist/index.cjs +22 -0
  230. package/dist/index.cjs.map +1 -1
  231. package/dist/index.js +22 -0
  232. package/dist/index.js.map +1 -1
  233. package/dist/lib/string.cjs +8 -0
  234. package/dist/lib/string.cjs.map +1 -1
  235. package/dist/lib/string.d.ts +1 -0
  236. package/dist/lib/string.d.ts.map +1 -1
  237. package/dist/lib/string.js +8 -0
  238. package/dist/lib/string.js.map +1 -1
  239. package/dist/profiles/catalogTree.cjs +133 -0
  240. package/dist/profiles/catalogTree.cjs.map +1 -0
  241. package/dist/profiles/catalogTree.d.ts +11 -0
  242. package/dist/profiles/catalogTree.d.ts.map +1 -0
  243. package/dist/profiles/catalogTree.js +133 -0
  244. package/dist/profiles/catalogTree.js.map +1 -0
  245. package/dist/profiles/connectionBrowserModel.cjs +185 -0
  246. package/dist/profiles/connectionBrowserModel.cjs.map +1 -0
  247. package/dist/profiles/connectionBrowserModel.d.ts +169 -0
  248. package/dist/profiles/connectionBrowserModel.d.ts.map +1 -0
  249. package/dist/profiles/connectionBrowserModel.js +185 -0
  250. package/dist/profiles/connectionBrowserModel.js.map +1 -0
  251. package/dist/profiles/connectionQueryWorkspace.cjs +185 -0
  252. package/dist/profiles/connectionQueryWorkspace.cjs.map +1 -0
  253. package/dist/profiles/connectionQueryWorkspace.d.ts +63 -0
  254. package/dist/profiles/connectionQueryWorkspace.d.ts.map +1 -0
  255. package/dist/profiles/connectionQueryWorkspace.js +185 -0
  256. package/dist/profiles/connectionQueryWorkspace.js.map +1 -0
  257. package/dist/profiles/connectionQueryWorkspaceModel.cjs +28 -0
  258. package/dist/profiles/connectionQueryWorkspaceModel.cjs.map +1 -0
  259. package/dist/profiles/connectionQueryWorkspaceModel.d.ts +38 -0
  260. package/dist/profiles/connectionQueryWorkspaceModel.d.ts.map +1 -0
  261. package/dist/profiles/connectionQueryWorkspaceModel.js +28 -0
  262. package/dist/profiles/connectionQueryWorkspaceModel.js.map +1 -0
  263. package/dist/profiles/esFieldValues.cjs +64 -0
  264. package/dist/profiles/esFieldValues.cjs.map +1 -0
  265. package/dist/profiles/esFieldValues.d.ts +48 -0
  266. package/dist/profiles/esFieldValues.d.ts.map +1 -0
  267. package/dist/profiles/esFieldValues.js +64 -0
  268. package/dist/profiles/esFieldValues.js.map +1 -0
  269. package/dist/profiles/esParamMappingModel.cjs +301 -0
  270. package/dist/profiles/esParamMappingModel.cjs.map +1 -0
  271. package/dist/profiles/esParamMappingModel.d.ts +37 -0
  272. package/dist/profiles/esParamMappingModel.d.ts.map +1 -0
  273. package/dist/profiles/esParamMappingModel.js +301 -0
  274. package/dist/profiles/esParamMappingModel.js.map +1 -0
  275. package/dist/profiles/esParamMappingPill.cjs +24 -0
  276. package/dist/profiles/esParamMappingPill.cjs.map +1 -0
  277. package/dist/profiles/esParamMappingPill.d.ts +13 -0
  278. package/dist/profiles/esParamMappingPill.d.ts.map +1 -0
  279. package/dist/profiles/esParamMappingPill.js +24 -0
  280. package/dist/profiles/esParamMappingPill.js.map +1 -0
  281. package/dist/profiles/esParamOperandExtension.cjs +75 -0
  282. package/dist/profiles/esParamOperandExtension.cjs.map +1 -0
  283. package/dist/profiles/esParamOperandExtension.d.ts +11 -0
  284. package/dist/profiles/esParamOperandExtension.d.ts.map +1 -0
  285. package/dist/profiles/esParamOperandExtension.js +75 -0
  286. package/dist/profiles/esParamOperandExtension.js.map +1 -0
  287. package/dist/profiles/esQueryBuilder.cjs +205 -0
  288. package/dist/profiles/esQueryBuilder.cjs.map +1 -0
  289. package/dist/profiles/esQueryBuilder.d.ts +35 -0
  290. package/dist/profiles/esQueryBuilder.d.ts.map +1 -0
  291. package/dist/profiles/esQueryBuilder.js +205 -0
  292. package/dist/profiles/esQueryBuilder.js.map +1 -0
  293. package/dist/profiles/esQueryBuilderExtension.cjs +23 -0
  294. package/dist/profiles/esQueryBuilderExtension.cjs.map +1 -0
  295. package/dist/profiles/esQueryBuilderExtension.d.ts +5 -0
  296. package/dist/profiles/esQueryBuilderExtension.d.ts.map +1 -0
  297. package/dist/profiles/esQueryBuilderExtension.js +23 -0
  298. package/dist/profiles/esQueryBuilderExtension.js.map +1 -0
  299. package/dist/profiles/esQueryBuilderForm.cjs +26 -0
  300. package/dist/profiles/esQueryBuilderForm.cjs.map +1 -0
  301. package/dist/profiles/esQueryBuilderForm.d.ts +18 -0
  302. package/dist/profiles/esQueryBuilderForm.d.ts.map +1 -0
  303. package/dist/profiles/esQueryBuilderForm.js +26 -0
  304. package/dist/profiles/esQueryBuilderForm.js.map +1 -0
  305. package/dist/profiles/esQueryBuilderModel.cjs +131 -0
  306. package/dist/profiles/esQueryBuilderModel.cjs.map +1 -0
  307. package/dist/profiles/esQueryBuilderModel.d.ts +108 -0
  308. package/dist/profiles/esQueryBuilderModel.d.ts.map +1 -0
  309. package/dist/profiles/esQueryBuilderModel.js +131 -0
  310. package/dist/profiles/esQueryBuilderModel.js.map +1 -0
  311. package/dist/profiles/esQueryClauseGroup.cjs +144 -0
  312. package/dist/profiles/esQueryClauseGroup.cjs.map +1 -0
  313. package/dist/profiles/esQueryClauseGroup.d.ts +10 -0
  314. package/dist/profiles/esQueryClauseGroup.d.ts.map +1 -0
  315. package/dist/profiles/esQueryClauseGroup.js +144 -0
  316. package/dist/profiles/esQueryClauseGroup.js.map +1 -0
  317. package/dist/profiles/esQueryCompile.cjs +47 -0
  318. package/dist/profiles/esQueryCompile.cjs.map +1 -0
  319. package/dist/profiles/esQueryCompile.d.ts +39 -0
  320. package/dist/profiles/esQueryCompile.d.ts.map +1 -0
  321. package/dist/profiles/esQueryCompile.js +47 -0
  322. package/dist/profiles/esQueryCompile.js.map +1 -0
  323. package/dist/profiles/esQueryConditionRow.cjs +168 -0
  324. package/dist/profiles/esQueryConditionRow.cjs.map +1 -0
  325. package/dist/profiles/esQueryConditionRow.d.ts +37 -0
  326. package/dist/profiles/esQueryConditionRow.d.ts.map +1 -0
  327. package/dist/profiles/esQueryConditionRow.js +168 -0
  328. package/dist/profiles/esQueryConditionRow.js.map +1 -0
  329. package/dist/profiles/esQueryGroupModel.cjs +12 -0
  330. package/dist/profiles/esQueryGroupModel.cjs.map +1 -0
  331. package/dist/profiles/esQueryGroupModel.d.ts +9 -0
  332. package/dist/profiles/esQueryGroupModel.d.ts.map +1 -0
  333. package/dist/profiles/esQueryGroupModel.js +12 -0
  334. package/dist/profiles/esQueryGroupModel.js.map +1 -0
  335. package/dist/profiles/esQueryOccur.cjs +16 -0
  336. package/dist/profiles/esQueryOccur.cjs.map +1 -0
  337. package/dist/profiles/esQueryOccur.d.ts +11 -0
  338. package/dist/profiles/esQueryOccur.d.ts.map +1 -0
  339. package/dist/profiles/esQueryOccur.js +16 -0
  340. package/dist/profiles/esQueryOccur.js.map +1 -0
  341. package/dist/profiles/esQueryOperandEditors.cjs +279 -0
  342. package/dist/profiles/esQueryOperandEditors.cjs.map +1 -0
  343. package/dist/profiles/esQueryOperandEditors.d.ts +24 -0
  344. package/dist/profiles/esQueryOperandEditors.d.ts.map +1 -0
  345. package/dist/profiles/esQueryOperandEditors.js +279 -0
  346. package/dist/profiles/esQueryOperandEditors.js.map +1 -0
  347. package/dist/profiles/esQueryOperandModel.cjs +28 -0
  348. package/dist/profiles/esQueryOperandModel.cjs.map +1 -0
  349. package/dist/profiles/esQueryOperandModel.d.ts +17 -0
  350. package/dist/profiles/esQueryOperandModel.d.ts.map +1 -0
  351. package/dist/profiles/esQueryOperandModel.js +28 -0
  352. package/dist/profiles/esQueryOperandModel.js.map +1 -0
  353. package/dist/profiles/esQueryOperators.cjs +165 -0
  354. package/dist/profiles/esQueryOperators.cjs.map +1 -0
  355. package/dist/profiles/esQueryOperators.d.ts +83 -0
  356. package/dist/profiles/esQueryOperators.d.ts.map +1 -0
  357. package/dist/profiles/esQueryOperators.js +165 -0
  358. package/dist/profiles/esQueryOperators.js.map +1 -0
  359. package/dist/profiles/esQueryOutputEditor.cjs +138 -0
  360. package/dist/profiles/esQueryOutputEditor.cjs.map +1 -0
  361. package/dist/profiles/esQueryOutputEditor.d.ts +7 -0
  362. package/dist/profiles/esQueryOutputEditor.d.ts.map +1 -0
  363. package/dist/profiles/esQueryOutputEditor.js +138 -0
  364. package/dist/profiles/esQueryOutputEditor.js.map +1 -0
  365. package/dist/profiles/esQueryOutputModel.cjs +16 -0
  366. package/dist/profiles/esQueryOutputModel.cjs.map +1 -0
  367. package/dist/profiles/esQueryOutputModel.d.ts +14 -0
  368. package/dist/profiles/esQueryOutputModel.d.ts.map +1 -0
  369. package/dist/profiles/esQueryOutputModel.js +16 -0
  370. package/dist/profiles/esQueryOutputModel.js.map +1 -0
  371. package/dist/profiles/esQueryPreview.cjs +30 -0
  372. package/dist/profiles/esQueryPreview.cjs.map +1 -0
  373. package/dist/profiles/esQueryPreview.d.ts +6 -0
  374. package/dist/profiles/esQueryPreview.d.ts.map +1 -0
  375. package/dist/profiles/esQueryPreview.js +30 -0
  376. package/dist/profiles/esQueryPreview.js.map +1 -0
  377. package/dist/profiles/esQuerySortEditor.cjs +143 -0
  378. package/dist/profiles/esQuerySortEditor.cjs.map +1 -0
  379. package/dist/profiles/esQuerySortEditor.d.ts +9 -0
  380. package/dist/profiles/esQuerySortEditor.d.ts.map +1 -0
  381. package/dist/profiles/esQuerySortEditor.js +143 -0
  382. package/dist/profiles/esQuerySortEditor.js.map +1 -0
  383. package/dist/profiles/esQuerySortModel.cjs +13 -0
  384. package/dist/profiles/esQuerySortModel.cjs.map +1 -0
  385. package/dist/profiles/esQuerySortModel.d.ts +4 -0
  386. package/dist/profiles/esQuerySortModel.d.ts.map +1 -0
  387. package/dist/profiles/esQuerySortModel.js +13 -0
  388. package/dist/profiles/esQuerySortModel.js.map +1 -0
  389. package/dist/profiles/esValueCombobox.cjs +86 -0
  390. package/dist/profiles/esValueCombobox.cjs.map +1 -0
  391. package/dist/profiles/esValueCombobox.d.ts +15 -0
  392. package/dist/profiles/esValueCombobox.d.ts.map +1 -0
  393. package/dist/profiles/esValueCombobox.js +86 -0
  394. package/dist/profiles/esValueCombobox.js.map +1 -0
  395. package/dist/profiles/jsonPathSample.cjs +75 -0
  396. package/dist/profiles/jsonPathSample.cjs.map +1 -0
  397. package/dist/profiles/jsonPathSample.d.ts +27 -0
  398. package/dist/profiles/jsonPathSample.d.ts.map +1 -0
  399. package/dist/profiles/jsonPathSample.js +75 -0
  400. package/dist/profiles/jsonPathSample.js.map +1 -0
  401. package/dist/profiles/jsonPathSampleRow.cjs +14 -0
  402. package/dist/profiles/jsonPathSampleRow.cjs.map +1 -0
  403. package/dist/profiles/jsonPathSampleRow.d.ts +6 -0
  404. package/dist/profiles/jsonPathSampleRow.d.ts.map +1 -0
  405. package/dist/profiles/jsonPathSampleRow.js +14 -0
  406. package/dist/profiles/jsonPathSampleRow.js.map +1 -0
  407. package/dist/profiles/profileApi.cjs +37 -0
  408. package/dist/profiles/profileApi.cjs.map +1 -0
  409. package/dist/profiles/profileApi.d.ts +32 -0
  410. package/dist/profiles/profileApi.d.ts.map +1 -0
  411. package/dist/profiles/profileApi.js +37 -0
  412. package/dist/profiles/profileApi.js.map +1 -0
  413. package/dist/profiles/profileBuilder.cjs +65 -0
  414. package/dist/profiles/profileBuilder.cjs.map +1 -0
  415. package/dist/profiles/profileBuilder.d.ts +11 -0
  416. package/dist/profiles/profileBuilder.d.ts.map +1 -0
  417. package/dist/profiles/profileBuilder.js +65 -0
  418. package/dist/profiles/profileBuilder.js.map +1 -0
  419. package/dist/profiles/profileBuilderExtension.cjs +25 -0
  420. package/dist/profiles/profileBuilderExtension.cjs.map +1 -0
  421. package/dist/profiles/profileBuilderExtension.d.ts +5 -0
  422. package/dist/profiles/profileBuilderExtension.d.ts.map +1 -0
  423. package/dist/profiles/profileBuilderExtension.js +25 -0
  424. package/dist/profiles/profileBuilderExtension.js.map +1 -0
  425. package/dist/profiles/profileBuilderWorkspace.cjs +368 -0
  426. package/dist/profiles/profileBuilderWorkspace.cjs.map +1 -0
  427. package/dist/profiles/profileBuilderWorkspace.d.ts +21 -0
  428. package/dist/profiles/profileBuilderWorkspace.d.ts.map +1 -0
  429. package/dist/profiles/profileBuilderWorkspace.js +368 -0
  430. package/dist/profiles/profileBuilderWorkspace.js.map +1 -0
  431. package/dist/profiles/profileColumnModel.cjs +23 -0
  432. package/dist/profiles/profileColumnModel.cjs.map +1 -0
  433. package/dist/profiles/profileColumnModel.d.ts +8 -0
  434. package/dist/profiles/profileColumnModel.d.ts.map +1 -0
  435. package/dist/profiles/profileColumnModel.js +23 -0
  436. package/dist/profiles/profileColumnModel.js.map +1 -0
  437. package/dist/profiles/profileColumnPicker.cjs +68 -0
  438. package/dist/profiles/profileColumnPicker.cjs.map +1 -0
  439. package/dist/profiles/profileColumnPicker.d.ts +11 -0
  440. package/dist/profiles/profileColumnPicker.d.ts.map +1 -0
  441. package/dist/profiles/profileColumnPicker.js +68 -0
  442. package/dist/profiles/profileColumnPicker.js.map +1 -0
  443. package/dist/profiles/profileEditor.cjs +386 -0
  444. package/dist/profiles/profileEditor.cjs.map +1 -0
  445. package/dist/profiles/profileEditor.d.ts +19 -0
  446. package/dist/profiles/profileEditor.d.ts.map +1 -0
  447. package/dist/profiles/profileEditor.js +386 -0
  448. package/dist/profiles/profileEditor.js.map +1 -0
  449. package/dist/profiles/profileEditorModel.cjs +181 -0
  450. package/dist/profiles/profileEditorModel.cjs.map +1 -0
  451. package/dist/profiles/profileEditorModel.d.ts +74 -0
  452. package/dist/profiles/profileEditorModel.d.ts.map +1 -0
  453. package/dist/profiles/profileEditorModel.js +181 -0
  454. package/dist/profiles/profileEditorModel.js.map +1 -0
  455. package/dist/profiles/profileEditorPreview.cjs +38 -0
  456. package/dist/profiles/profileEditorPreview.cjs.map +1 -0
  457. package/dist/profiles/profileEditorPreview.d.ts +12 -0
  458. package/dist/profiles/profileEditorPreview.d.ts.map +1 -0
  459. package/dist/profiles/profileEditorPreview.js +38 -0
  460. package/dist/profiles/profileEditorPreview.js.map +1 -0
  461. package/dist/profiles/profileEditorRail.cjs +46 -0
  462. package/dist/profiles/profileEditorRail.cjs.map +1 -0
  463. package/dist/profiles/profileEditorRail.d.ts +8 -0
  464. package/dist/profiles/profileEditorRail.d.ts.map +1 -0
  465. package/dist/profiles/profileEditorRail.js +46 -0
  466. package/dist/profiles/profileEditorRail.js.map +1 -0
  467. package/dist/profiles/profileEditorRaw.cjs +118 -0
  468. package/dist/profiles/profileEditorRaw.cjs.map +1 -0
  469. package/dist/profiles/profileEditorRaw.d.ts +7 -0
  470. package/dist/profiles/profileEditorRaw.d.ts.map +1 -0
  471. package/dist/profiles/profileEditorRaw.js +118 -0
  472. package/dist/profiles/profileEditorRaw.js.map +1 -0
  473. package/dist/profiles/profileEditorRoutes.cjs +7 -0
  474. package/dist/profiles/profileEditorRoutes.cjs.map +1 -0
  475. package/dist/profiles/profileEditorRoutes.d.ts +2 -0
  476. package/dist/profiles/profileEditorRoutes.d.ts.map +1 -0
  477. package/dist/profiles/profileEditorRoutes.js +7 -0
  478. package/dist/profiles/profileEditorRoutes.js.map +1 -0
  479. package/dist/profiles/profileEditorSections.cjs +213 -0
  480. package/dist/profiles/profileEditorSections.cjs.map +1 -0
  481. package/dist/profiles/profileEditorSections.d.ts +23 -0
  482. package/dist/profiles/profileEditorSections.d.ts.map +1 -0
  483. package/dist/profiles/profileEditorSections.js +213 -0
  484. package/dist/profiles/profileEditorSections.js.map +1 -0
  485. package/dist/profiles/profileFieldEditor.cjs +200 -0
  486. package/dist/profiles/profileFieldEditor.cjs.map +1 -0
  487. package/dist/profiles/profileFieldEditor.d.ts +34 -0
  488. package/dist/profiles/profileFieldEditor.d.ts.map +1 -0
  489. package/dist/profiles/profileFieldEditor.js +200 -0
  490. package/dist/profiles/profileFieldEditor.js.map +1 -0
  491. package/dist/profiles/profileFieldGrid.cjs +250 -0
  492. package/dist/profiles/profileFieldGrid.cjs.map +1 -0
  493. package/dist/profiles/profileFieldGrid.d.ts +20 -0
  494. package/dist/profiles/profileFieldGrid.d.ts.map +1 -0
  495. package/dist/profiles/profileFieldGrid.js +250 -0
  496. package/dist/profiles/profileFieldGrid.js.map +1 -0
  497. package/dist/profiles/profileFieldManager.cjs +103 -0
  498. package/dist/profiles/profileFieldManager.cjs.map +1 -0
  499. package/dist/profiles/profileFieldManager.d.ts +9 -0
  500. package/dist/profiles/profileFieldManager.d.ts.map +1 -0
  501. package/dist/profiles/profileFieldManager.js +103 -0
  502. package/dist/profiles/profileFieldManager.js.map +1 -0
  503. package/dist/profiles/profileFieldState.cjs +136 -0
  504. package/dist/profiles/profileFieldState.cjs.map +1 -0
  505. package/dist/profiles/profileFieldState.d.ts +41 -0
  506. package/dist/profiles/profileFieldState.d.ts.map +1 -0
  507. package/dist/profiles/profileFieldState.js +136 -0
  508. package/dist/profiles/profileFieldState.js.map +1 -0
  509. package/dist/profiles/profileFieldTypes.cjs +17 -0
  510. package/dist/profiles/profileFieldTypes.cjs.map +1 -0
  511. package/dist/profiles/profileFieldTypes.d.ts +8 -0
  512. package/dist/profiles/profileFieldTypes.d.ts.map +1 -0
  513. package/dist/profiles/profileFieldTypes.js +17 -0
  514. package/dist/profiles/profileFieldTypes.js.map +1 -0
  515. package/dist/profiles/profileParamModel.cjs +78 -0
  516. package/dist/profiles/profileParamModel.cjs.map +1 -0
  517. package/dist/profiles/profileParamModel.d.ts +3 -0
  518. package/dist/profiles/profileParamModel.d.ts.map +1 -0
  519. package/dist/profiles/profileParamModel.js +78 -0
  520. package/dist/profiles/profileParamModel.js.map +1 -0
  521. package/dist/profiles/profileSamplePayload.cjs +15 -0
  522. package/dist/profiles/profileSamplePayload.cjs.map +1 -0
  523. package/dist/profiles/profileSamplePayload.d.ts +13 -0
  524. package/dist/profiles/profileSamplePayload.d.ts.map +1 -0
  525. package/dist/profiles/profileSamplePayload.js +15 -0
  526. package/dist/profiles/profileSamplePayload.js.map +1 -0
  527. package/dist/profiles/profileWizard.cjs +257 -0
  528. package/dist/profiles/profileWizard.cjs.map +1 -0
  529. package/dist/profiles/profileWizard.d.ts +12 -0
  530. package/dist/profiles/profileWizard.d.ts.map +1 -0
  531. package/dist/profiles/profileWizard.js +257 -0
  532. package/dist/profiles/profileWizard.js.map +1 -0
  533. package/dist/profiles/profileWizardHelp.cjs +10 -0
  534. package/dist/profiles/profileWizardHelp.cjs.map +1 -0
  535. package/dist/profiles/profileWizardHelp.d.ts +13 -0
  536. package/dist/profiles/profileWizardHelp.d.ts.map +1 -0
  537. package/dist/profiles/profileWizardHelp.js +10 -0
  538. package/dist/profiles/profileWizardHelp.js.map +1 -0
  539. package/dist/profiles/profileWizardModel.cjs +198 -0
  540. package/dist/profiles/profileWizardModel.cjs.map +1 -0
  541. package/dist/profiles/profileWizardModel.d.ts +255 -0
  542. package/dist/profiles/profileWizardModel.d.ts.map +1 -0
  543. package/dist/profiles/profileWizardModel.js +198 -0
  544. package/dist/profiles/profileWizardModel.js.map +1 -0
  545. package/dist/profiles/profileWizardQueryStep.cjs +215 -0
  546. package/dist/profiles/profileWizardQueryStep.cjs.map +1 -0
  547. package/dist/profiles/profileWizardQueryStep.d.ts +18 -0
  548. package/dist/profiles/profileWizardQueryStep.d.ts.map +1 -0
  549. package/dist/profiles/profileWizardQueryStep.js +215 -0
  550. package/dist/profiles/profileWizardQueryStep.js.map +1 -0
  551. package/dist/profiles/profileWizardSteps.cjs +214 -0
  552. package/dist/profiles/profileWizardSteps.cjs.map +1 -0
  553. package/dist/profiles/profileWizardSteps.d.ts +35 -0
  554. package/dist/profiles/profileWizardSteps.d.ts.map +1 -0
  555. package/dist/profiles/profileWizardSteps.js +214 -0
  556. package/dist/profiles/profileWizardSteps.js.map +1 -0
  557. package/dist/profiles/profileYaml.cjs +19 -0
  558. package/dist/profiles/profileYaml.cjs.map +1 -0
  559. package/dist/profiles/profileYaml.d.ts +4 -0
  560. package/dist/profiles/profileYaml.d.ts.map +1 -0
  561. package/dist/profiles/profileYaml.js +19 -0
  562. package/dist/profiles/profileYaml.js.map +1 -0
  563. package/dist/profiles/prometheusResults.cjs +60 -0
  564. package/dist/profiles/prometheusResults.cjs.map +1 -0
  565. package/dist/profiles/prometheusResults.d.ts +7 -0
  566. package/dist/profiles/prometheusResults.d.ts.map +1 -0
  567. package/dist/profiles/prometheusResults.js +60 -0
  568. package/dist/profiles/prometheusResults.js.map +1 -0
  569. package/dist/profiles/queryRowLimits.cjs +82 -0
  570. package/dist/profiles/queryRowLimits.cjs.map +1 -0
  571. package/dist/profiles/queryRowLimits.d.ts +9 -0
  572. package/dist/profiles/queryRowLimits.d.ts.map +1 -0
  573. package/dist/profiles/queryRowLimits.js +82 -0
  574. package/dist/profiles/queryRowLimits.js.map +1 -0
  575. package/dist/profiles/queryRowLimitsModel.cjs +10 -0
  576. package/dist/profiles/queryRowLimitsModel.cjs.map +1 -0
  577. package/dist/profiles/queryRowLimitsModel.d.ts +9 -0
  578. package/dist/profiles/queryRowLimitsModel.d.ts.map +1 -0
  579. package/dist/profiles/queryRowLimitsModel.js +10 -0
  580. package/dist/profiles/queryRowLimitsModel.js.map +1 -0
  581. package/dist/profiles/queryTargetPicker.cjs +42 -0
  582. package/dist/profiles/queryTargetPicker.cjs.map +1 -0
  583. package/dist/profiles/queryTargetPicker.d.ts +8 -0
  584. package/dist/profiles/queryTargetPicker.d.ts.map +1 -0
  585. package/dist/profiles/queryTargetPicker.js +42 -0
  586. package/dist/profiles/queryTargetPicker.js.map +1 -0
  587. package/dist/profiles/testSchema.d.ts +3 -0
  588. package/dist/profiles/testSchema.d.ts.map +1 -0
  589. package/dist/profiles.cjs +223 -0
  590. package/dist/profiles.cjs.map +1 -0
  591. package/dist/profiles.d.ts +68 -0
  592. package/dist/profiles.d.ts.map +1 -0
  593. package/dist/profiles.js +223 -0
  594. package/dist/profiles.js.map +1 -0
  595. package/dist/rpc/FilterForm.cjs +20 -0
  596. package/dist/rpc/FilterForm.cjs.map +1 -1
  597. package/dist/rpc/FilterForm.js +20 -0
  598. package/dist/rpc/FilterForm.js.map +1 -1
  599. package/dist/rpc/formMetadata.cjs +34 -0
  600. package/dist/rpc/formMetadata.cjs.map +1 -1
  601. package/dist/rpc/formMetadata.d.ts.map +1 -1
  602. package/dist/rpc/formMetadata.js +35 -1
  603. package/dist/rpc/formMetadata.js.map +1 -1
  604. package/dist/rpc/types.cjs.map +1 -1
  605. package/dist/rpc/types.d.ts +9 -1
  606. package/dist/rpc/types.d.ts.map +1 -1
  607. package/dist/rpc/types.js.map +1 -1
  608. package/dist/styles.css +1 -1
  609. package/package.json +6 -1
@@ -0,0 +1,12 @@
1
+ function isGroupOperator(catalog, op) {
2
+ var _a;
3
+ return ((_a = catalog.find((entry) => entry.op === op)) == null ? void 0 : _a.group) === true;
4
+ }
5
+ function groupOperatorOptions(catalog) {
6
+ return catalog.filter((entry) => entry.group).map((entry) => ({ value: entry.op, label: entry.label }));
7
+ }
8
+ export {
9
+ groupOperatorOptions,
10
+ isGroupOperator
11
+ };
12
+ //# sourceMappingURL=esQueryGroupModel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"esQueryGroupModel.js","sources":["../../src/profiles/esQueryGroupModel.ts"],"sourcesContent":["/**\n * A bool or nested group of conditions. A group renders itself for a child that\n * is also a group, so the tree nests to whatever depth the author builds; the\n * compiler places no bound on it either.\n */\n\nimport {\n type EsBuilderVocabulary\n } from \"./esQueryOperators\";\n\n/** Whether an operator holds other conditions rather than matching a value. */\nexport function isGroupOperator(\n catalog: EsBuilderVocabulary[\"catalog\"],\n op: string,\n): boolean {\n return catalog.find((entry) => entry.op === op)?.group === true;\n}\n\n/** The group kinds the catalog offers — bool and nested, today. */\nexport function groupOperatorOptions(catalog: EsBuilderVocabulary[\"catalog\"]) {\n return catalog\n .filter((entry) => entry.group)\n .map((entry) => ({ value: entry.op, label: entry.label }));\n}\n"],"names":[],"mappings":"AAWO,SAAS,gBACd,SACA,IACS;AAHJ;AAIL,WAAO,aAAQ,KAAK,CAAC,UAAU,MAAM,OAAO,EAAE,MAAvC,mBAA0C,WAAU;AAC7D;AAGO,SAAS,qBAAqB,SAAyC;AAC5E,SAAO,QACJ,OAAO,CAAC,UAAU,MAAM,KAAK,EAC7B,IAAI,CAAC,WAAW,EAAE,OAAO,MAAM,IAAI,OAAO,MAAM,QAAQ;AAC7D;"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ function occurOptions(occurs) {
4
+ return occurs.map((occur) => ({
5
+ value: occur,
6
+ label: occurLabels[occur] ?? occur
7
+ }));
8
+ }
9
+ const occurLabels = {
10
+ filter: "AND",
11
+ must: "AND (scored)",
12
+ should: "OR",
13
+ must_not: "NOT"
14
+ };
15
+ exports.occurOptions = occurOptions;
16
+ //# sourceMappingURL=esQueryOccur.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"esQueryOccur.cjs","sources":["../../src/profiles/esQueryOccur.ts"],"sourcesContent":["/**\n * One leaf condition: which field, which operator, and the operand that\n * operator takes. Which operators a field may use and which advanced qualifiers\n * an operator emits both come from the schema vocabulary, so this file owns the\n * editing surface and never the vocabulary itself.\n */\n\n\nexport function occurOptions(occurs: string[]) {\n return occurs.map((occur) => ({\n value: occur,\n label: occurLabels[occur] ?? occur\n }));\n}\n\n// How each bool clause reads to an author. filter and must both narrow, but\n// only must scores, which is the distinction the raw names hide.\nconst occurLabels: Record<string, string> = {\n filter: \"AND\",\n must: \"AND (scored)\",\n should: \"OR\",\n must_not: \"NOT\"\n};\n"],"names":[],"mappings":";;AAQO,SAAS,aAAa,QAAkB;AAC7C,SAAO,OAAO,IAAI,CAAC,WAAW;AAAA,IAC5B,OAAO;AAAA,IACP,OAAO,YAAY,KAAK,KAAK;AAAA,EAAA,EAC7B;AACJ;AAIA,MAAM,cAAsC;AAAA,EAC1C,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,UAAU;AACZ;;"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * One leaf condition: which field, which operator, and the operand that
3
+ * operator takes. Which operators a field may use and which advanced qualifiers
4
+ * an operator emits both come from the schema vocabulary, so this file owns the
5
+ * editing surface and never the vocabulary itself.
6
+ */
7
+ export declare function occurOptions(occurs: string[]): {
8
+ value: string;
9
+ label: string;
10
+ }[];
11
+ //# sourceMappingURL=esQueryOccur.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"esQueryOccur.d.ts","sourceRoot":"","sources":["../../src/profiles/esQueryOccur.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE;;;IAK5C"}
@@ -0,0 +1,16 @@
1
+ function occurOptions(occurs) {
2
+ return occurs.map((occur) => ({
3
+ value: occur,
4
+ label: occurLabels[occur] ?? occur
5
+ }));
6
+ }
7
+ const occurLabels = {
8
+ filter: "AND",
9
+ must: "AND (scored)",
10
+ should: "OR",
11
+ must_not: "NOT"
12
+ };
13
+ export {
14
+ occurOptions
15
+ };
16
+ //# sourceMappingURL=esQueryOccur.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"esQueryOccur.js","sources":["../../src/profiles/esQueryOccur.ts"],"sourcesContent":["/**\n * One leaf condition: which field, which operator, and the operand that\n * operator takes. Which operators a field may use and which advanced qualifiers\n * an operator emits both come from the schema vocabulary, so this file owns the\n * editing surface and never the vocabulary itself.\n */\n\n\nexport function occurOptions(occurs: string[]) {\n return occurs.map((occur) => ({\n value: occur,\n label: occurLabels[occur] ?? occur\n }));\n}\n\n// How each bool clause reads to an author. filter and must both narrow, but\n// only must scores, which is the distinction the raw names hide.\nconst occurLabels: Record<string, string> = {\n filter: \"AND\",\n must: \"AND (scored)\",\n should: \"OR\",\n must_not: \"NOT\"\n};\n"],"names":[],"mappings":"AAQO,SAAS,aAAa,QAAkB;AAC7C,SAAO,OAAO,IAAI,CAAC,WAAW;AAAA,IAC5B,OAAO;AAAA,IACP,OAAO,YAAY,KAAK,KAAK;AAAA,EAAA,EAC7B;AACJ;AAIA,MAAM,cAAsC;AAAA,EAC1C,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,UAAU;AACZ;"}
@@ -0,0 +1,279 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const jsxRuntime = require("react/jsx-runtime");
4
+ const InputField = require("../components/InputField.cjs");
5
+ const select = require("../components/select.cjs");
6
+ const react = require("react");
7
+ const esQueryBuilderModel = require("./esQueryBuilderModel.cjs");
8
+ const esParamOperandExtension = require("./esParamOperandExtension.cjs");
9
+ const esQueryOperandModel = require("./esQueryOperandModel.cjs");
10
+ const esValueCombobox = require("./esValueCombobox.cjs");
11
+ const dateMathPresets = [
12
+ "now-15m",
13
+ "now-1h",
14
+ "now-24h",
15
+ "now-7d",
16
+ "now/d",
17
+ "now"
18
+ ];
19
+ function ConditionOperand({
20
+ condition,
21
+ arity,
22
+ rowId,
23
+ params,
24
+ dateMath,
25
+ values,
26
+ set,
27
+ onBindParam,
28
+ onUnbindParam
29
+ }) {
30
+ if (arity === "none" || arity === "group") return null;
31
+ if (arity === "multiple") {
32
+ return /* @__PURE__ */ jsxRuntime.jsx(
33
+ ValuesInput,
34
+ {
35
+ values: esQueryOperandModel.multipleConditionValues(condition),
36
+ params,
37
+ ...values ? { lookup: values } : {},
38
+ onChange: (next) => {
39
+ if (esQueryBuilderModel.isParamValue(next)) return onBindParam("values", next.param);
40
+ const bound = boundParam(esQueryOperandModel.multipleConditionValues(condition));
41
+ if (next === void 0 && bound) return onUnbindParam(bound);
42
+ if (!Array.isArray(next))
43
+ throw new Error("multiple operand requires a value list");
44
+ set(esQueryOperandModel.conditionOperandPatch({ arity: "multiple", values: next }));
45
+ }
46
+ }
47
+ );
48
+ }
49
+ if (arity === "range") {
50
+ return /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex flex-wrap items-center gap-1", children: ["gte", "lte"].map((bound) => /* @__PURE__ */ jsxRuntime.jsx(
51
+ ValueInput,
52
+ {
53
+ id: `${rowId}-${bound}`,
54
+ label: bound === "gte" ? "From" : "To",
55
+ value: condition[bound],
56
+ params,
57
+ presets: dateMath ? dateMathPresets : [],
58
+ onChange: (next) => {
59
+ if (esQueryBuilderModel.isParamValue(next)) return onBindParam(bound, next.param);
60
+ const mapped = boundParam(condition[bound]);
61
+ if (next === void 0 && mapped) return onUnbindParam(mapped);
62
+ set(
63
+ esQueryOperandModel.conditionOperandPatch({ arity: "range", bound, value: next })
64
+ );
65
+ }
66
+ },
67
+ bound
68
+ )) });
69
+ }
70
+ return /* @__PURE__ */ jsxRuntime.jsx(
71
+ ValueInput,
72
+ {
73
+ id: `${rowId}-value`,
74
+ label: "Value",
75
+ value: condition.value,
76
+ params,
77
+ presets: dateMath ? dateMathPresets : [],
78
+ ...values ? { lookup: values } : {},
79
+ onChange: (next) => {
80
+ if (esQueryBuilderModel.isParamValue(next)) return onBindParam("value", next.param);
81
+ const bound = boundParam(condition.value);
82
+ if (next === void 0 && bound) return onUnbindParam(bound);
83
+ set(esQueryOperandModel.conditionOperandPatch({ arity: "single", value: next }));
84
+ }
85
+ }
86
+ );
87
+ }
88
+ function ValueInput({
89
+ id,
90
+ label,
91
+ value,
92
+ params,
93
+ presets,
94
+ lookup,
95
+ onChange
96
+ }) {
97
+ let node;
98
+ if (lookup) {
99
+ node = /* @__PURE__ */ jsxRuntime.jsx(
100
+ esValueCombobox.ValueCombobox,
101
+ {
102
+ id,
103
+ label,
104
+ lookup,
105
+ value: esQueryBuilderModel.isParamValue(value) || value === void 0 || value === null ? "" : String(value),
106
+ onChange: (next) => onChange(next === "" ? void 0 : next)
107
+ }
108
+ );
109
+ } else {
110
+ const listId = presets.length ? `es-presets-${id}` : void 0;
111
+ node = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
112
+ /* @__PURE__ */ jsxRuntime.jsx(
113
+ InputField.InputField,
114
+ {
115
+ "aria-label": label,
116
+ className: "min-w-36",
117
+ placeholder: label,
118
+ value: esQueryBuilderModel.isParamValue(value) || value === void 0 || value === null ? "" : String(value),
119
+ ...listId ? { list: listId } : {},
120
+ onChange: (next) => onChange(next === "" ? void 0 : next)
121
+ }
122
+ ),
123
+ listId ? /* @__PURE__ */ jsxRuntime.jsx("datalist", { id: listId, children: presets.map((preset) => /* @__PURE__ */ jsxRuntime.jsx("option", { value: preset }, preset)) }) : null
124
+ ] });
125
+ }
126
+ return esParamOperandExtension.extendEsParamOperand({
127
+ label,
128
+ value,
129
+ onChange,
130
+ node,
131
+ params
132
+ });
133
+ }
134
+ function ValuesInput({
135
+ values,
136
+ params,
137
+ lookup,
138
+ onChange
139
+ }) {
140
+ const [draft, setDraft] = react.useState("");
141
+ const bound = values.filter(esQueryBuilderModel.isParamValue);
142
+ const literals = values.filter((value) => !esQueryBuilderModel.isParamValue(value));
143
+ let node;
144
+ if (lookup) {
145
+ node = /* @__PURE__ */ jsxRuntime.jsx(
146
+ esValueCombobox.ValuesCombobox,
147
+ {
148
+ label: "Values",
149
+ lookup,
150
+ values: literals.map(String),
151
+ onChange: (next) => onChange([...next, ...bound])
152
+ }
153
+ );
154
+ } else {
155
+ const commit = () => {
156
+ const parsed = draft.split(",").map((entry) => entry.trim()).filter(Boolean);
157
+ if (!parsed.length) return;
158
+ onChange([...literals, ...parsed, ...bound]);
159
+ setDraft("");
160
+ };
161
+ const removeAt = (index) => onChange([
162
+ ...literals.filter((_value, position) => position !== index),
163
+ ...bound
164
+ ]);
165
+ node = /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex min-w-56 flex-1 flex-wrap items-center gap-1", children: [
166
+ literals.map((value, index) => /* @__PURE__ */ jsxRuntime.jsxs(
167
+ "span",
168
+ {
169
+ className: "es-value-chip inline-flex items-center gap-1 rounded border bg-muted px-1.5 py-0.5 text-xs",
170
+ children: [
171
+ String(value),
172
+ /* @__PURE__ */ jsxRuntime.jsx(
173
+ "button",
174
+ {
175
+ type: "button",
176
+ "aria-label": `Remove ${String(value)}`,
177
+ className: "opacity-60 hover:opacity-100",
178
+ onClick: () => removeAt(index),
179
+ children: "×"
180
+ }
181
+ )
182
+ ]
183
+ },
184
+ index
185
+ )),
186
+ /* @__PURE__ */ jsxRuntime.jsx(
187
+ InputField.InputField,
188
+ {
189
+ "aria-label": "Add value",
190
+ className: "min-w-32",
191
+ placeholder: "Add value…",
192
+ value: draft,
193
+ onChange: setDraft,
194
+ onKeyDown: (event) => {
195
+ if (event.key !== "Enter" && event.key !== ",") return;
196
+ event.preventDefault();
197
+ commit();
198
+ },
199
+ onBlur: commit
200
+ }
201
+ )
202
+ ] });
203
+ }
204
+ return esParamOperandExtension.extendEsParamOperand({
205
+ label: "value",
206
+ value: values,
207
+ onChange,
208
+ node,
209
+ params
210
+ });
211
+ }
212
+ function boundParam(value) {
213
+ var _a;
214
+ const values = Array.isArray(value) ? value : [value];
215
+ return (_a = values.find(esQueryBuilderModel.isParamValue)) == null ? void 0 : _a.param;
216
+ }
217
+ function QualifierInput({
218
+ name,
219
+ schema,
220
+ value,
221
+ onChange
222
+ }) {
223
+ var _a;
224
+ const label = schema.title ?? name;
225
+ if (schema.type === "boolean") {
226
+ const checked = value === void 0 ? schema.default === true : value === true;
227
+ return /* @__PURE__ */ jsxRuntime.jsxs(
228
+ "label",
229
+ {
230
+ className: "flex items-center gap-1 text-xs text-muted-foreground",
231
+ title: schema.description ?? void 0,
232
+ children: [
233
+ /* @__PURE__ */ jsxRuntime.jsx(
234
+ "input",
235
+ {
236
+ type: "checkbox",
237
+ checked,
238
+ onChange: (event) => onChange(event.target.checked)
239
+ }
240
+ ),
241
+ label
242
+ ]
243
+ }
244
+ );
245
+ }
246
+ if ((_a = schema.enum) == null ? void 0 : _a.length) {
247
+ return /* @__PURE__ */ jsxRuntime.jsx("span", { className: "w-40 shrink-0", children: /* @__PURE__ */ jsxRuntime.jsx(
248
+ select.Select,
249
+ {
250
+ "aria-label": label,
251
+ value: value === void 0 ? "" : String(value),
252
+ options: [
253
+ { value: "", label },
254
+ ...schema.enum.map((entry) => ({ value: entry, label: entry }))
255
+ ],
256
+ onChange: (event) => onChange(event.target.value === "" ? void 0 : event.target.value)
257
+ }
258
+ ) });
259
+ }
260
+ const numeric = schema.type === "integer" || schema.type === "number";
261
+ return /* @__PURE__ */ jsxRuntime.jsx(
262
+ InputField.InputField,
263
+ {
264
+ "aria-label": label,
265
+ className: "w-36",
266
+ placeholder: label,
267
+ title: schema.description ?? void 0,
268
+ type: numeric ? "number" : "text",
269
+ value: value === void 0 || value === null ? "" : String(value),
270
+ onChange: (next) => {
271
+ if (next === "") return onChange(void 0);
272
+ onChange(numeric ? Number(next) : next);
273
+ }
274
+ }
275
+ );
276
+ }
277
+ exports.ConditionOperand = ConditionOperand;
278
+ exports.QualifierInput = QualifierInput;
279
+ //# sourceMappingURL=esQueryOperandEditors.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"esQueryOperandEditors.cjs","sources":["../../src/profiles/esQueryOperandEditors.tsx"],"sourcesContent":["/**\n * The operand side of a condition row: the value an operator takes, and the\n * advanced qualifiers it emits alongside it. Which operand shape applies comes\n * from the operator's arity, and which qualifiers exist comes from the schema —\n * neither is decided here.\n */\n\nimport { InputField } from \"../components/InputField\";\nimport { Select } from \"../components/select\";\nimport { useState, type ReactNode } from \"react\";\nimport {\n isParamValue,\n type EsCondition,\n type EsValue,\n} from \"./esQueryBuilderModel\";\nimport type { FieldValuesQuery } from \"./esFieldValues\";\nimport type { Patch } from \"./profileWizardModel\";\nimport type { ParamOperand } from \"./esParamMappingModel\";\nimport { extendEsParamOperand } from \"./esParamOperandExtension\";\nimport {\n conditionOperandPatch,\n multipleConditionValues,\n} from \"./esQueryOperandModel\";\nimport type { EsQualifierSchema } from \"./esQueryOperators\";\nimport { ValueCombobox, ValuesCombobox } from \"./esValueCombobox\";\nimport type { ParamDraft } from \"./profileWizardModel\";\n\n// Date math a range over a date field commonly starts from. They are ordinary\n// operand values that the backend resolves — this only saves the typing.\nconst dateMathPresets = [\n \"now-15m\",\n \"now-1h\",\n \"now-24h\",\n \"now-7d\",\n \"now/d\",\n \"now\",\n];\n\nexport function ConditionOperand({\n condition,\n arity,\n rowId,\n params,\n dateMath,\n values,\n set,\n onBindParam,\n onUnbindParam,\n}: {\n condition: EsCondition;\n arity: string;\n rowId: string;\n params: ParamDraft[];\n dateMath: boolean;\n /** The field's own values, when the mapping allows aggregating them. */\n values?: FieldValuesQuery;\n set: (patch: Patch<EsCondition>) => void;\n onBindParam: (operand: ParamOperand, name: string) => void;\n onUnbindParam: (name: string) => void;\n}) {\n if (arity === \"none\" || arity === \"group\") return null;\n if (arity === \"multiple\") {\n return (\n <ValuesInput\n values={multipleConditionValues(condition)}\n params={params}\n {...(values ? { lookup: values } : {})}\n onChange={(next) => {\n if (isParamValue(next)) return onBindParam(\"values\", next.param);\n const bound = boundParam(multipleConditionValues(condition));\n if (next === undefined && bound) return onUnbindParam(bound);\n if (!Array.isArray(next))\n throw new Error(\"multiple operand requires a value list\");\n set(conditionOperandPatch({ arity: \"multiple\", values: next }));\n }}\n />\n );\n }\n if (arity === \"range\") {\n return (\n <span className=\"flex flex-wrap items-center gap-1\">\n {([\"gte\", \"lte\"] as const).map((bound) => (\n <ValueInput\n key={bound}\n id={`${rowId}-${bound}`}\n label={bound === \"gte\" ? \"From\" : \"To\"}\n value={condition[bound]}\n params={params}\n presets={dateMath ? dateMathPresets : []}\n onChange={(next) => {\n if (isParamValue(next)) return onBindParam(bound, next.param);\n const mapped = boundParam(condition[bound]);\n if (next === undefined && mapped) return onUnbindParam(mapped);\n set(\n conditionOperandPatch({ arity: \"range\", bound, value: next }),\n );\n }}\n />\n ))}\n </span>\n );\n }\n return (\n <ValueInput\n id={`${rowId}-value`}\n label=\"Value\"\n value={condition.value}\n params={params}\n presets={dateMath ? dateMathPresets : []}\n {...(values ? { lookup: values } : {})}\n onChange={(next) => {\n if (isParamValue(next)) return onBindParam(\"value\", next.param);\n const bound = boundParam(condition.value);\n if (next === undefined && bound) return onUnbindParam(bound);\n set(conditionOperandPatch({ arity: \"single\", value: next }));\n }}\n />\n );\n}\n\nfunction ValueInput({\n id,\n label,\n value,\n params,\n presets,\n lookup,\n onChange,\n}: {\n id: string;\n label: string;\n value: EsValue;\n params: ParamDraft[];\n presets: string[];\n lookup?: FieldValuesQuery;\n onChange: (next: EsValue) => void;\n}) {\n let node: ReactNode;\n if (lookup) {\n node = (\n <ValueCombobox\n id={id}\n label={label}\n lookup={lookup}\n value={\n isParamValue(value) || value === undefined || value === null\n ? \"\"\n : String(value)\n }\n onChange={(next) => onChange(next === \"\" ? undefined : next)}\n />\n );\n } else {\n const listId = presets.length ? `es-presets-${id}` : undefined;\n node = (\n <>\n <InputField\n aria-label={label}\n className=\"min-w-36\"\n placeholder={label}\n value={\n isParamValue(value) || value === undefined || value === null\n ? \"\"\n : String(value)\n }\n {...(listId ? { list: listId } : {})}\n onChange={(next) => onChange(next === \"\" ? undefined : next)}\n />\n {listId ? (\n <datalist id={listId}>\n {presets.map((preset) => (\n <option key={preset} value={preset} />\n ))}\n </datalist>\n ) : null}\n </>\n );\n }\n return extendEsParamOperand({\n label,\n value,\n onChange,\n node,\n params,\n });\n}\n\nfunction ValuesInput({\n values,\n params,\n lookup,\n onChange,\n}: {\n values: EsValue[];\n params: ParamDraft[];\n lookup?: FieldValuesQuery;\n onChange: (values: EsValue[] | EsValue | undefined) => void;\n}) {\n const [draft, setDraft] = useState(\"\");\n const bound = values.filter(isParamValue);\n const literals = values.filter((value) => !isParamValue(value));\n let node: ReactNode;\n if (lookup) {\n node = (\n <ValuesCombobox\n label=\"Values\"\n lookup={lookup}\n values={literals.map(String)}\n onChange={(next) => onChange([...next, ...bound])}\n />\n );\n } else {\n const commit = () => {\n const parsed = draft\n .split(\",\")\n .map((entry) => entry.trim())\n .filter(Boolean);\n if (!parsed.length) return;\n onChange([...literals, ...parsed, ...bound]);\n setDraft(\"\");\n };\n const removeAt = (index: number) =>\n onChange([\n ...literals.filter((_value, position) => position !== index),\n ...bound,\n ]);\n node = (\n <span className=\"flex min-w-56 flex-1 flex-wrap items-center gap-1\">\n {literals.map((value, index) => (\n <span\n key={index}\n className=\"es-value-chip inline-flex items-center gap-1 rounded border bg-muted px-1.5 py-0.5 text-xs\"\n >\n {String(value)}\n <button\n type=\"button\"\n aria-label={`Remove ${String(value)}`}\n className=\"opacity-60 hover:opacity-100\"\n onClick={() => removeAt(index)}\n >\n ×\n </button>\n </span>\n ))}\n <InputField\n aria-label=\"Add value\"\n className=\"min-w-32\"\n placeholder=\"Add value…\"\n value={draft}\n onChange={setDraft}\n onKeyDown={(event) => {\n if (event.key !== \"Enter\" && event.key !== \",\") return;\n event.preventDefault();\n commit();\n }}\n onBlur={commit}\n />\n </span>\n );\n }\n return extendEsParamOperand({\n label: \"value\",\n value: values,\n onChange,\n node,\n params,\n });\n}\n\nfunction boundParam(value: EsValue | EsValue[]): string | undefined {\n const values = Array.isArray(value) ? value : [value];\n return values.find(isParamValue)?.param;\n}\n\nexport function QualifierInput({\n name,\n schema,\n value,\n onChange,\n}: {\n name: string;\n schema: EsQualifierSchema;\n value: unknown;\n onChange: (next: unknown) => void;\n}) {\n const label = schema.title ?? name;\n if (schema.type === \"boolean\") {\n const checked =\n value === undefined ? schema.default === true : value === true;\n return (\n <label\n className=\"flex items-center gap-1 text-xs text-muted-foreground\"\n title={schema.description ?? undefined}\n >\n <input\n type=\"checkbox\"\n checked={checked}\n onChange={(event) => onChange(event.target.checked)}\n />\n {label}\n </label>\n );\n }\n if (schema.enum?.length) {\n // Select renders `placeholder` as a disabled option, which would trap the\n // qualifier once set. An explicit empty entry is what clears it again.\n return (\n <span className=\"w-40 shrink-0\">\n <Select\n aria-label={label}\n value={value === undefined ? \"\" : String(value)}\n options={[\n { value: \"\", label: label },\n ...schema.enum.map((entry) => ({ value: entry, label: entry })),\n ]}\n onChange={(event) =>\n onChange(event.target.value === \"\" ? undefined : event.target.value)\n }\n />\n </span>\n );\n }\n const numeric = schema.type === \"integer\" || schema.type === \"number\";\n return (\n <InputField\n aria-label={label}\n className=\"w-36\"\n placeholder={label}\n title={schema.description ?? undefined}\n type={numeric ? \"number\" : \"text\"}\n value={value === undefined || value === null ? \"\" : String(value)}\n onChange={(next) => {\n if (next === \"\") return onChange(undefined);\n onChange(numeric ? Number(next) : next);\n }}\n />\n );\n}\n"],"names":["jsx","multipleConditionValues","isParamValue","conditionOperandPatch","ValueCombobox","jsxs","Fragment","InputField","extendEsParamOperand","useState","ValuesCombobox","Select"],"mappings":";;;;;;;;;;AA6BA,MAAM,kBAAkB;AAAA,EACtB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEO,SAAS,iBAAiB;AAAA,EAC/B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAWG;AACD,MAAI,UAAU,UAAU,UAAU,QAAS,QAAO;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IAAI,IAAI;AAAA,MACxC;AAAA,IAAA;AAAA,EAAA;AAGN;;;"}
@@ -0,0 +1,24 @@
1
+ import { EsCondition } from './esQueryBuilderModel';
2
+ import { FieldValuesQuery } from './esFieldValues';
3
+ import { Patch, ParamDraft } from './profileWizardModel';
4
+ import { ParamOperand } from './esParamMappingModel';
5
+ import { EsQualifierSchema } from './esQueryOperators';
6
+ export declare function ConditionOperand({ condition, arity, rowId, params, dateMath, values, set, onBindParam, onUnbindParam, }: {
7
+ condition: EsCondition;
8
+ arity: string;
9
+ rowId: string;
10
+ params: ParamDraft[];
11
+ dateMath: boolean;
12
+ /** The field's own values, when the mapping allows aggregating them. */
13
+ values?: FieldValuesQuery;
14
+ set: (patch: Patch<EsCondition>) => void;
15
+ onBindParam: (operand: ParamOperand, name: string) => void;
16
+ onUnbindParam: (name: string) => void;
17
+ }): import("react/jsx-runtime").JSX.Element | null;
18
+ export declare function QualifierInput({ name, schema, value, onChange, }: {
19
+ name: string;
20
+ schema: EsQualifierSchema;
21
+ value: unknown;
22
+ onChange: (next: unknown) => void;
23
+ }): import("react/jsx-runtime").JSX.Element;
24
+ //# sourceMappingURL=esQueryOperandEditors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"esQueryOperandEditors.d.ts","sourceRoot":"","sources":["../../src/profiles/esQueryOperandEditors.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,EAEL,KAAK,WAAW,EAEjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAM1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAE5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAavD,wBAAgB,gBA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