@flanksource/clicky-ui 0.3.78 → 0.3.79
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.
- package/dist/ai.cjs +2 -2
- package/dist/ai.js +2 -2
- package/dist/comments/CommentThreadList.cjs +13 -14
- package/dist/comments/CommentThreadList.cjs.map +1 -1
- package/dist/comments/CommentThreadList.d.ts.map +1 -1
- package/dist/comments/CommentThreadList.js +13 -14
- package/dist/comments/CommentThreadList.js.map +1 -1
- package/dist/components/EndpointSelector.cjs +7 -1
- package/dist/components/EndpointSelector.cjs.map +1 -1
- package/dist/components/EndpointSelector.d.ts.map +1 -1
- package/dist/components/EndpointSelector.js +7 -1
- package/dist/components/EndpointSelector.js.map +1 -1
- package/dist/components/FilterBar.cjs +36 -12
- package/dist/components/FilterBar.cjs.map +1 -1
- package/dist/components/FilterBar.d.ts +14 -2
- package/dist/components/FilterBar.d.ts.map +1 -1
- package/dist/components/FilterBar.js +36 -12
- package/dist/components/FilterBar.js.map +1 -1
- package/dist/components/FormLookupProvider.cjs +12 -4
- package/dist/components/FormLookupProvider.cjs.map +1 -1
- package/dist/components/FormLookupProvider.d.ts.map +1 -1
- package/dist/components/FormLookupProvider.js +13 -5
- package/dist/components/FormLookupProvider.js.map +1 -1
- package/dist/components/JSONPathPlayground.cjs +124 -233
- package/dist/components/JSONPathPlayground.cjs.map +1 -1
- package/dist/components/JSONPathPlayground.d.ts +15 -13
- package/dist/components/JSONPathPlayground.d.ts.map +1 -1
- package/dist/components/JSONPathPlayground.js +125 -234
- package/dist/components/JSONPathPlayground.js.map +1 -1
- package/dist/components/JsonSchemaForm.cjs +6 -0
- package/dist/components/JsonSchemaForm.cjs.map +1 -1
- package/dist/components/JsonSchemaForm.js +6 -0
- package/dist/components/JsonSchemaForm.js.map +1 -1
- package/dist/components/SegmentedControl.cjs +1 -1
- package/dist/components/SegmentedControl.cjs.map +1 -1
- package/dist/components/SegmentedControl.d.ts.map +1 -1
- package/dist/components/SegmentedControl.js +1 -1
- package/dist/components/SegmentedControl.js.map +1 -1
- package/dist/components/TimeRange.cjs +133 -60
- package/dist/components/TimeRange.cjs.map +1 -1
- package/dist/components/TimeRange.d.ts +8 -1
- package/dist/components/TimeRange.d.ts.map +1 -1
- package/dist/components/TimeRange.js +133 -60
- package/dist/components/TimeRange.js.map +1 -1
- package/dist/components/json-schema-form-accordion-array.cjs +8 -6
- package/dist/components/json-schema-form-accordion-array.cjs.map +1 -1
- package/dist/components/json-schema-form-accordion-array.d.ts.map +1 -1
- package/dist/components/json-schema-form-accordion-array.js +9 -7
- package/dist/components/json-schema-form-accordion-array.js.map +1 -1
- package/dist/components/json-schema-form-array-rows.cjs +45 -0
- package/dist/components/json-schema-form-array-rows.cjs.map +1 -0
- package/dist/components/json-schema-form-array-rows.d.ts +10 -0
- package/dist/components/json-schema-form-array-rows.d.ts.map +1 -0
- package/dist/components/json-schema-form-array-rows.js +45 -0
- package/dist/components/json-schema-form-array-rows.js.map +1 -0
- package/dist/components/json-schema-form-item-summary.cjs +3 -5
- package/dist/components/json-schema-form-item-summary.cjs.map +1 -1
- package/dist/components/json-schema-form-item-summary.d.ts +1 -1
- package/dist/components/json-schema-form-item-summary.d.ts.map +1 -1
- package/dist/components/json-schema-form-item-summary.js +3 -5
- package/dist/components/json-schema-form-item-summary.js.map +1 -1
- package/dist/components/json-schema-form-render.cjs +11 -2
- package/dist/components/json-schema-form-render.cjs.map +1 -1
- package/dist/components/json-schema-form-render.d.ts.map +1 -1
- package/dist/components/json-schema-form-render.js +12 -3
- package/dist/components/json-schema-form-render.js.map +1 -1
- package/dist/components/json-schema-form-resolve.cjs +10 -0
- package/dist/components/json-schema-form-resolve.cjs.map +1 -1
- package/dist/components/json-schema-form-resolve.d.ts +1 -0
- package/dist/components/json-schema-form-resolve.d.ts.map +1 -1
- package/dist/components/json-schema-form-resolve.js +10 -1
- package/dist/components/json-schema-form-resolve.js.map +1 -1
- package/dist/components/json-schema-form-runtime-types.d.ts +4 -0
- package/dist/components/json-schema-form-runtime-types.d.ts.map +1 -1
- package/dist/components/json-schema-form-table-array.cjs +25 -16
- package/dist/components/json-schema-form-table-array.cjs.map +1 -1
- package/dist/components/json-schema-form-table-array.d.ts +1 -1
- package/dist/components/json-schema-form-table-array.d.ts.map +1 -1
- package/dist/components/json-schema-form-table-array.js +26 -17
- package/dist/components/json-schema-form-table-array.js.map +1 -1
- package/dist/components/json-schema-form-types.d.ts +0 -2
- package/dist/components/json-schema-form-types.d.ts.map +1 -1
- package/dist/components/jsonPathPlaygroundEvaluator.cjs +53 -0
- package/dist/components/jsonPathPlaygroundEvaluator.cjs.map +1 -0
- package/dist/components/jsonPathPlaygroundEvaluator.d.ts +23 -0
- package/dist/components/jsonPathPlaygroundEvaluator.d.ts.map +1 -0
- package/dist/components/jsonPathPlaygroundEvaluator.js +53 -0
- package/dist/components/jsonPathPlaygroundEvaluator.js.map +1 -0
- package/dist/components/jsonPathTree.cjs +1 -0
- package/dist/components/jsonPathTree.cjs.map +1 -1
- package/dist/components/jsonPathTree.d.ts +6 -0
- package/dist/components/jsonPathTree.d.ts.map +1 -1
- package/dist/components/jsonPathTree.js +1 -0
- package/dist/components/jsonPathTree.js.map +1 -1
- package/dist/data/Clicky.cjs +37 -18
- package/dist/data/Clicky.cjs.map +1 -1
- package/dist/data/Clicky.d.ts +5 -0
- package/dist/data/Clicky.d.ts.map +1 -1
- package/dist/data/Clicky.js +37 -18
- package/dist/data/Clicky.js.map +1 -1
- package/dist/data/DataTable.cjs +49 -12
- package/dist/data/DataTable.cjs.map +1 -1
- package/dist/data/DataTable.d.ts +17 -2
- package/dist/data/DataTable.d.ts.map +1 -1
- package/dist/data/DataTable.js +49 -12
- package/dist/data/DataTable.js.map +1 -1
- package/dist/data/TaskPoolUsage.cjs +2 -1
- package/dist/data/TaskPoolUsage.cjs.map +1 -1
- package/dist/data/TaskPoolUsage.d.ts.map +1 -1
- package/dist/data/TaskPoolUsage.js +2 -1
- package/dist/data/TaskPoolUsage.js.map +1 -1
- package/dist/data/TimeseriesPanel.axes.cjs +18 -3
- package/dist/data/TimeseriesPanel.axes.cjs.map +1 -1
- package/dist/data/TimeseriesPanel.axes.d.ts +10 -1
- package/dist/data/TimeseriesPanel.axes.d.ts.map +1 -1
- package/dist/data/TimeseriesPanel.axes.js +17 -4
- package/dist/data/TimeseriesPanel.axes.js.map +1 -1
- package/dist/data/TimeseriesPanel.cjs +57 -23
- package/dist/data/TimeseriesPanel.cjs.map +1 -1
- package/dist/data/TimeseriesPanel.d.ts.map +1 -1
- package/dist/data/TimeseriesPanel.js +59 -25
- package/dist/data/TimeseriesPanel.js.map +1 -1
- package/dist/data/TimeseriesPanel.model.cjs +10 -7
- package/dist/data/TimeseriesPanel.model.cjs.map +1 -1
- package/dist/data/TimeseriesPanel.model.d.ts +7 -4
- package/dist/data/TimeseriesPanel.model.d.ts.map +1 -1
- package/dist/data/TimeseriesPanel.model.js +11 -8
- package/dist/data/TimeseriesPanel.model.js.map +1 -1
- package/dist/data/TimeseriesPanel.readout.cjs +11 -0
- package/dist/data/TimeseriesPanel.readout.cjs.map +1 -0
- package/dist/data/TimeseriesPanel.readout.d.ts +4 -0
- package/dist/data/TimeseriesPanel.readout.d.ts.map +1 -0
- package/dist/data/TimeseriesPanel.readout.js +10 -0
- package/dist/data/TimeseriesPanel.readout.js.map +1 -0
- package/dist/data/TimeseriesPanel.segments.cjs +67 -0
- package/dist/data/TimeseriesPanel.segments.cjs.map +1 -0
- package/dist/data/TimeseriesPanel.segments.d.ts +27 -0
- package/dist/data/TimeseriesPanel.segments.d.ts.map +1 -0
- package/dist/data/TimeseriesPanel.segments.js +67 -0
- package/dist/data/TimeseriesPanel.segments.js.map +1 -0
- package/dist/data/TreeDataTable.cjs +12 -3
- package/dist/data/TreeDataTable.cjs.map +1 -1
- package/dist/data/TreeDataTable.d.ts +15 -3
- package/dist/data/TreeDataTable.d.ts.map +1 -1
- package/dist/data/TreeDataTable.js +12 -3
- package/dist/data/TreeDataTable.js.map +1 -1
- package/dist/data/TreeNode.cjs +18 -3
- package/dist/data/TreeNode.cjs.map +1 -1
- package/dist/data/TreeNode.d.ts +7 -1
- package/dist/data/TreeNode.d.ts.map +1 -1
- package/dist/data/TreeNode.js +18 -3
- package/dist/data/TreeNode.js.map +1 -1
- package/dist/data/ai/SessionChatComposer.cjs +2 -0
- package/dist/data/ai/SessionChatComposer.cjs.map +1 -1
- package/dist/data/ai/SessionChatComposer.d.ts.map +1 -1
- package/dist/data/ai/SessionChatComposer.js +2 -0
- package/dist/data/ai/SessionChatComposer.js.map +1 -1
- package/dist/data/ai/SessionInspector.panels.cjs +47 -1
- package/dist/data/ai/SessionInspector.panels.cjs.map +1 -1
- package/dist/data/ai/SessionInspector.panels.d.ts.map +1 -1
- package/dist/data/ai/SessionInspector.panels.js +48 -2
- package/dist/data/ai/SessionInspector.panels.js.map +1 -1
- package/dist/data/ai/SessionViewer.unified.d.ts +48 -0
- package/dist/data/ai/SessionViewer.unified.d.ts.map +1 -1
- package/dist/data/ai/index.d.ts +2 -2
- package/dist/data/ai/index.d.ts.map +1 -1
- package/dist/data/ai/runtime-profiles/PresetWorkspace.cjs +97 -100
- package/dist/data/ai/runtime-profiles/PresetWorkspace.cjs.map +1 -1
- package/dist/data/ai/runtime-profiles/PresetWorkspace.d.ts.map +1 -1
- package/dist/data/ai/runtime-profiles/PresetWorkspace.js +97 -100
- package/dist/data/ai/runtime-profiles/PresetWorkspace.js.map +1 -1
- package/dist/data/ai/runtime-profiles/ProfileWorkspace.cjs +40 -38
- package/dist/data/ai/runtime-profiles/ProfileWorkspace.cjs.map +1 -1
- package/dist/data/ai/runtime-profiles/ProfileWorkspace.d.ts.map +1 -1
- package/dist/data/ai/runtime-profiles/ProfileWorkspace.js +41 -39
- package/dist/data/ai/runtime-profiles/ProfileWorkspace.js.map +1 -1
- package/dist/data/ai/runtime-profiles/ResolutionPreview.cjs +53 -0
- package/dist/data/ai/runtime-profiles/ResolutionPreview.cjs.map +1 -0
- package/dist/data/ai/runtime-profiles/ResolutionPreview.d.ts +7 -0
- package/dist/data/ai/runtime-profiles/ResolutionPreview.d.ts.map +1 -0
- package/dist/data/ai/runtime-profiles/ResolutionPreview.js +53 -0
- package/dist/data/ai/runtime-profiles/ResolutionPreview.js.map +1 -0
- package/dist/data/ai/runtime-profiles/index.d.ts +1 -1
- package/dist/data/ai/runtime-profiles/index.d.ts.map +1 -1
- package/dist/data/ai/sessionSubmitVariant.cjs +30 -0
- package/dist/data/ai/sessionSubmitVariant.cjs.map +1 -0
- package/dist/data/ai/sessionSubmitVariant.d.ts +7 -0
- package/dist/data/ai/sessionSubmitVariant.d.ts.map +1 -0
- package/dist/data/ai/sessionSubmitVariant.js +30 -0
- package/dist/data/ai/sessionSubmitVariant.js.map +1 -0
- package/dist/data/cells/Timestamp.cjs +15 -4
- package/dist/data/cells/Timestamp.cjs.map +1 -1
- package/dist/data/cells/Timestamp.d.ts.map +1 -1
- package/dist/data/cells/Timestamp.js +15 -4
- package/dist/data/cells/Timestamp.js.map +1 -1
- package/dist/data/cells/timestamp-format.cjs +28 -8
- package/dist/data/cells/timestamp-format.cjs.map +1 -1
- package/dist/data/cells/timestamp-format.d.ts +3 -1
- package/dist/data/cells/timestamp-format.d.ts.map +1 -1
- package/dist/data/cells/timestamp-format.js +28 -8
- package/dist/data/cells/timestamp-format.js.map +1 -1
- package/dist/data/charts/TrendChart.cjs +65 -31
- package/dist/data/charts/TrendChart.cjs.map +1 -1
- package/dist/data/charts/TrendChart.d.ts +12 -3
- package/dist/data/charts/TrendChart.d.ts.map +1 -1
- package/dist/data/charts/TrendChart.js +67 -33
- package/dist/data/charts/TrendChart.js.map +1 -1
- package/dist/data/charts/index.d.ts +1 -1
- package/dist/data/charts/index.d.ts.map +1 -1
- package/dist/data/chat/PromptInput.cjs +11 -2
- package/dist/data/chat/PromptInput.cjs.map +1 -1
- package/dist/data/chat/PromptInput.d.ts +15 -1
- package/dist/data/chat/PromptInput.d.ts.map +1 -1
- package/dist/data/chat/PromptInput.js +11 -2
- package/dist/data/chat/PromptInput.js.map +1 -1
- package/dist/data/chat/index.d.ts +1 -1
- package/dist/data/chat/index.d.ts.map +1 -1
- package/dist/data/data-table-filter-values.cjs.map +1 -1
- package/dist/data/data-table-filter-values.d.ts +1 -1
- package/dist/data/data-table-filter-values.d.ts.map +1 -1
- package/dist/data/data-table-filter-values.js.map +1 -1
- package/dist/data/data-table-server-filters.cjs +2 -6
- package/dist/data/data-table-server-filters.cjs.map +1 -1
- package/dist/data/data-table-server-filters.d.ts +1 -1
- package/dist/data/data-table-server-filters.d.ts.map +1 -1
- package/dist/data/data-table-server-filters.js +1 -5
- package/dist/data/data-table-server-filters.js.map +1 -1
- package/dist/data/diagnostics/ErrorDetails.cjs +2 -1
- package/dist/data/diagnostics/ErrorDetails.cjs.map +1 -1
- package/dist/data/diagnostics/ErrorDetails.d.ts +2 -1
- package/dist/data/diagnostics/ErrorDetails.d.ts.map +1 -1
- package/dist/data/diagnostics/ErrorDetails.js +2 -1
- package/dist/data/diagnostics/ErrorDetails.js.map +1 -1
- package/dist/data/gauge-stats.cjs +7 -3
- package/dist/data/gauge-stats.cjs.map +1 -1
- package/dist/data/gauge-stats.d.ts.map +1 -1
- package/dist/data/gauge-stats.js +7 -3
- package/dist/data/gauge-stats.js.map +1 -1
- package/dist/data/query-browser/QueryBrowser.cjs +41 -17
- package/dist/data/query-browser/QueryBrowser.cjs.map +1 -1
- package/dist/data/query-browser/QueryBrowser.d.ts +1 -1
- package/dist/data/query-browser/QueryBrowser.d.ts.map +1 -1
- package/dist/data/query-browser/QueryBrowser.fieldNames.cjs +23 -0
- package/dist/data/query-browser/QueryBrowser.fieldNames.cjs.map +1 -0
- package/dist/data/query-browser/QueryBrowser.fieldNames.d.ts +11 -0
- package/dist/data/query-browser/QueryBrowser.fieldNames.d.ts.map +1 -0
- package/dist/data/query-browser/QueryBrowser.fieldNames.js +23 -0
- package/dist/data/query-browser/QueryBrowser.fieldNames.js.map +1 -0
- package/dist/data/query-browser/QueryBrowser.js +41 -17
- package/dist/data/query-browser/QueryBrowser.js.map +1 -1
- package/dist/data/query-browser/QueryBrowser.types.cjs.map +1 -1
- package/dist/data/query-browser/QueryBrowser.types.d.ts +18 -0
- package/dist/data/query-browser/QueryBrowser.types.d.ts.map +1 -1
- package/dist/data/query-browser/QueryBrowser.types.js.map +1 -1
- package/dist/data/runtime/RuntimeBarLayout.cjs +3 -2
- package/dist/data/runtime/RuntimeBarLayout.cjs.map +1 -1
- package/dist/data/runtime/RuntimeBarLayout.d.ts.map +1 -1
- package/dist/data/runtime/RuntimeBarLayout.js +3 -2
- package/dist/data/runtime/RuntimeBarLayout.js.map +1 -1
- package/dist/data/test-runner/TestRunner.cjs +3 -1
- package/dist/data/test-runner/TestRunner.cjs.map +1 -1
- package/dist/data/test-runner/TestRunner.d.ts +8 -1
- package/dist/data/test-runner/TestRunner.d.ts.map +1 -1
- package/dist/data/test-runner/TestRunner.js +3 -1
- package/dist/data/test-runner/TestRunner.js.map +1 -1
- package/dist/data/test-runner/TestTree.cjs +1 -0
- package/dist/data/test-runner/TestTree.cjs.map +1 -1
- package/dist/data/test-runner/TestTree.d.ts.map +1 -1
- package/dist/data/test-runner/TestTree.js +1 -0
- package/dist/data/test-runner/TestTree.js.map +1 -1
- package/dist/data/test-runner/context.cjs.map +1 -1
- package/dist/data/test-runner/context.d.ts +2 -0
- package/dist/data/test-runner/context.d.ts.map +1 -1
- package/dist/data/test-runner/context.js.map +1 -1
- package/dist/data/timeseries-query.cjs +2 -2
- package/dist/data/timeseries-query.cjs.map +1 -1
- package/dist/data/timeseries-query.d.ts +1 -1
- package/dist/data/timeseries-query.d.ts.map +1 -1
- package/dist/data/timeseries-query.js +2 -2
- package/dist/data/timeseries-query.js.map +1 -1
- package/dist/data/version-info.cjs +3 -3
- package/dist/data/version-info.js +3 -3
- package/dist/data.cjs +1 -0
- package/dist/data.d.ts +1 -1
- package/dist/data.d.ts.map +1 -1
- package/dist/data.js +2 -2
- package/dist/expressions/playground/EmbeddedPlayground.cjs +40 -0
- package/dist/expressions/playground/EmbeddedPlayground.cjs.map +1 -0
- package/dist/expressions/playground/EmbeddedPlayground.d.ts +30 -0
- package/dist/expressions/playground/EmbeddedPlayground.d.ts.map +1 -0
- package/dist/expressions/playground/EmbeddedPlayground.js +40 -0
- package/dist/expressions/playground/EmbeddedPlayground.js.map +1 -0
- package/dist/expressions/playground/ExpressionPlayground.cjs +6 -6
- package/dist/expressions/playground/ExpressionPlayground.cjs.map +1 -1
- package/dist/expressions/playground/ExpressionPlayground.d.ts +10 -3
- package/dist/expressions/playground/ExpressionPlayground.d.ts.map +1 -1
- package/dist/expressions/playground/ExpressionPlayground.js +6 -6
- package/dist/expressions/playground/ExpressionPlayground.js.map +1 -1
- package/dist/expressions/playground/LazyEmbeddedPlayground.cjs +22 -0
- package/dist/expressions/playground/LazyEmbeddedPlayground.cjs.map +1 -0
- package/dist/expressions/playground/LazyEmbeddedPlayground.d.ts +4 -0
- package/dist/expressions/playground/LazyEmbeddedPlayground.d.ts.map +1 -0
- package/dist/expressions/playground/LazyEmbeddedPlayground.js +22 -0
- package/dist/expressions/playground/LazyEmbeddedPlayground.js.map +1 -0
- package/dist/expressions/playground/api.cjs.map +1 -1
- package/dist/expressions/playground/api.d.ts +10 -0
- package/dist/expressions/playground/api.d.ts.map +1 -1
- package/dist/expressions/playground/api.js.map +1 -1
- package/dist/expressions/playground/hostEvaluation.cjs +67 -0
- package/dist/expressions/playground/hostEvaluation.cjs.map +1 -0
- package/dist/expressions/playground/hostEvaluation.d.ts +39 -0
- package/dist/expressions/playground/hostEvaluation.d.ts.map +1 -0
- package/dist/expressions/playground/hostEvaluation.js +63 -0
- package/dist/expressions/playground/hostEvaluation.js.map +1 -0
- package/dist/expressions/playground/panels/GraphPanel.cjs +8 -3
- package/dist/expressions/playground/panels/GraphPanel.cjs.map +1 -1
- package/dist/expressions/playground/panels/GraphPanel.d.ts +2 -1
- package/dist/expressions/playground/panels/GraphPanel.d.ts.map +1 -1
- package/dist/expressions/playground/panels/GraphPanel.js +8 -3
- package/dist/expressions/playground/panels/GraphPanel.js.map +1 -1
- package/dist/expressions/playground/panels/graphNodes.cjs +6 -2
- package/dist/expressions/playground/panels/graphNodes.cjs.map +1 -1
- package/dist/expressions/playground/panels/graphNodes.d.ts +6 -2
- package/dist/expressions/playground/panels/graphNodes.d.ts.map +1 -1
- package/dist/expressions/playground/panels/graphNodes.js +6 -2
- package/dist/expressions/playground/panels/graphNodes.js.map +1 -1
- package/dist/expressions/playground.d.ts +1 -1
- package/dist/expressions/playground.d.ts.map +1 -1
- package/dist/hooks/use-element-height.cjs +26 -0
- package/dist/hooks/use-element-height.cjs.map +1 -0
- package/dist/hooks/use-element-height.d.ts +10 -0
- package/dist/hooks/use-element-height.d.ts.map +1 -0
- package/dist/hooks/use-element-height.js +26 -0
- package/dist/hooks/use-element-height.js.map +1 -0
- package/dist/index.cjs +6 -5
- package/dist/index.js +7 -7
- package/dist/jvm/classes/PatchedClassList.cjs +11 -2
- package/dist/jvm/classes/PatchedClassList.cjs.map +1 -1
- package/dist/jvm/classes/PatchedClassList.d.ts.map +1 -1
- package/dist/jvm/classes/PatchedClassList.js +11 -2
- package/dist/jvm/classes/PatchedClassList.js.map +1 -1
- package/dist/jvm/fixtures/fake-client.d.ts.map +1 -1
- package/dist/jvm/model/patches.cjs +4 -2
- package/dist/jvm/model/patches.cjs.map +1 -1
- package/dist/jvm/model/patches.d.ts +3 -1
- package/dist/jvm/model/patches.d.ts.map +1 -1
- package/dist/jvm/model/patches.js +4 -2
- package/dist/jvm/model/patches.js.map +1 -1
- package/dist/jvm/protocol/client.d.ts +7 -2
- package/dist/jvm/protocol/client.d.ts.map +1 -1
- package/dist/jvm/protocol/operation-client.cjs +30 -11
- package/dist/jvm/protocol/operation-client.cjs.map +1 -1
- package/dist/jvm/protocol/operation-client.d.ts.map +1 -1
- package/dist/jvm/protocol/operation-client.js +30 -11
- package/dist/jvm/protocol/operation-client.js.map +1 -1
- package/dist/jvm/protocol/query-keys.cjs +1 -1
- package/dist/jvm/protocol/query-keys.cjs.map +1 -1
- package/dist/jvm/protocol/query-keys.d.ts +1 -1
- package/dist/jvm/protocol/query-keys.d.ts.map +1 -1
- package/dist/jvm/protocol/query-keys.js +1 -1
- package/dist/jvm/protocol/query-keys.js.map +1 -1
- package/dist/jvm/protocol/status.cjs +38 -0
- package/dist/jvm/protocol/status.cjs.map +1 -0
- package/dist/jvm/protocol/status.d.ts +13 -0
- package/dist/jvm/protocol/status.d.ts.map +1 -0
- package/dist/jvm/protocol/status.js +38 -0
- package/dist/jvm/protocol/status.js.map +1 -0
- package/dist/jvm/protocol/types.d.ts +16 -4
- package/dist/jvm/protocol/types.d.ts.map +1 -1
- package/dist/jvm/runtime/GcSummary.cjs +7 -1
- package/dist/jvm/runtime/GcSummary.cjs.map +1 -1
- package/dist/jvm/runtime/GcSummary.d.ts.map +1 -1
- package/dist/jvm/runtime/GcSummary.js +7 -1
- package/dist/jvm/runtime/GcSummary.js.map +1 -1
- package/dist/jvm/surfaces/ClassesSurface.cjs +11 -10
- package/dist/jvm/surfaces/ClassesSurface.cjs.map +1 -1
- package/dist/jvm/surfaces/ClassesSurface.d.ts.map +1 -1
- package/dist/jvm/surfaces/ClassesSurface.js +12 -11
- package/dist/jvm/surfaces/ClassesSurface.js.map +1 -1
- package/dist/jvm/surfaces/JvmDiagnosticsWorkspace.cjs +11 -3
- package/dist/jvm/surfaces/JvmDiagnosticsWorkspace.cjs.map +1 -1
- package/dist/jvm/surfaces/JvmDiagnosticsWorkspace.d.ts +2 -0
- package/dist/jvm/surfaces/JvmDiagnosticsWorkspace.d.ts.map +1 -1
- package/dist/jvm/surfaces/JvmDiagnosticsWorkspace.js +11 -3
- package/dist/jvm/surfaces/JvmDiagnosticsWorkspace.js.map +1 -1
- package/dist/jvm/surfaces/PatchesSurface.cjs +3 -8
- package/dist/jvm/surfaces/PatchesSurface.cjs.map +1 -1
- package/dist/jvm/surfaces/PatchesSurface.d.ts +2 -1
- package/dist/jvm/surfaces/PatchesSurface.d.ts.map +1 -1
- package/dist/jvm/surfaces/PatchesSurface.js +4 -9
- package/dist/jvm/surfaces/PatchesSurface.js.map +1 -1
- package/dist/jvm/surfaces/ThreadsSurface.cjs +7 -4
- package/dist/jvm/surfaces/ThreadsSurface.cjs.map +1 -1
- package/dist/jvm/surfaces/ThreadsSurface.d.ts +4 -1
- package/dist/jvm/surfaces/ThreadsSurface.d.ts.map +1 -1
- package/dist/jvm/surfaces/ThreadsSurface.js +7 -4
- package/dist/jvm/surfaces/ThreadsSurface.js.map +1 -1
- package/dist/jvm/surfaces/jvm-context.cjs +23 -4
- package/dist/jvm/surfaces/jvm-context.cjs.map +1 -1
- package/dist/jvm/surfaces/jvm-context.d.ts +7 -0
- package/dist/jvm/surfaces/jvm-context.d.ts.map +1 -1
- package/dist/jvm/surfaces/jvm-context.js +23 -5
- package/dist/jvm/surfaces/jvm-context.js.map +1 -1
- package/dist/jvm/surfaces/use-patch-actions.cjs +2 -2
- package/dist/jvm/surfaces/use-patch-actions.cjs.map +1 -1
- package/dist/jvm/surfaces/use-patch-actions.js +2 -2
- package/dist/jvm/surfaces/use-patch-actions.js.map +1 -1
- package/dist/jvm/threads/FoldedStackTrace.cjs +3 -2
- package/dist/jvm/threads/FoldedStackTrace.cjs.map +1 -1
- package/dist/jvm/threads/FoldedStackTrace.d.ts +4 -1
- package/dist/jvm/threads/FoldedStackTrace.d.ts.map +1 -1
- package/dist/jvm/threads/FoldedStackTrace.js +3 -2
- package/dist/jvm/threads/FoldedStackTrace.js.map +1 -1
- package/dist/jvm/threads/ThreadDetail.cjs +6 -2
- package/dist/jvm/threads/ThreadDetail.cjs.map +1 -1
- package/dist/jvm/threads/ThreadDetail.d.ts +4 -1
- package/dist/jvm/threads/ThreadDetail.d.ts.map +1 -1
- package/dist/jvm/threads/ThreadDetail.js +6 -2
- package/dist/jvm/threads/ThreadDetail.js.map +1 -1
- package/dist/jvm.cjs +3 -0
- package/dist/jvm.d.ts +2 -1
- package/dist/jvm.d.ts.map +1 -1
- package/dist/jvm.js +3 -2
- package/dist/layout/AppShell.cjs.map +1 -1
- package/dist/layout/AppShell.d.ts +16 -0
- package/dist/layout/AppShell.d.ts.map +1 -1
- package/dist/layout/AppShell.js.map +1 -1
- package/dist/layout/AppShell.nav.cjs +21 -2
- package/dist/layout/AppShell.nav.cjs.map +1 -1
- package/dist/layout/AppShell.nav.js +21 -2
- package/dist/layout/AppShell.nav.js.map +1 -1
- package/dist/layout/Workspace.cjs +66 -21
- package/dist/layout/Workspace.cjs.map +1 -1
- package/dist/layout/Workspace.d.ts +6 -1
- package/dist/layout/Workspace.d.ts.map +1 -1
- package/dist/layout/Workspace.js +66 -21
- package/dist/layout/Workspace.js.map +1 -1
- package/dist/layout/Workspace.model.cjs +20 -0
- package/dist/layout/Workspace.model.cjs.map +1 -1
- package/dist/layout/Workspace.model.d.ts +17 -0
- package/dist/layout/Workspace.model.d.ts.map +1 -1
- package/dist/layout/Workspace.model.js +20 -1
- package/dist/layout/Workspace.model.js.map +1 -1
- package/dist/layout/Workspace.regions.cjs +10 -6
- package/dist/layout/Workspace.regions.cjs.map +1 -1
- package/dist/layout/Workspace.regions.d.ts +4 -1
- package/dist/layout/Workspace.regions.d.ts.map +1 -1
- package/dist/layout/Workspace.regions.js +10 -6
- package/dist/layout/Workspace.regions.js.map +1 -1
- package/dist/lib/duration.cjs +20 -0
- package/dist/lib/duration.cjs.map +1 -1
- package/dist/lib/duration.d.ts +8 -0
- package/dist/lib/duration.d.ts.map +1 -1
- package/dist/lib/duration.js +19 -1
- package/dist/lib/duration.js.map +1 -1
- package/dist/monaco/MonacoEditor.cjs +34 -30
- package/dist/monaco/MonacoEditor.cjs.map +1 -1
- package/dist/monaco/MonacoEditor.d.ts.map +1 -1
- package/dist/monaco/MonacoEditor.js +34 -30
- package/dist/monaco/MonacoEditor.js.map +1 -1
- package/dist/overlay/ConfirmDialog.cjs +5 -2
- package/dist/overlay/ConfirmDialog.cjs.map +1 -1
- package/dist/overlay/ConfirmDialog.d.ts +14 -2
- package/dist/overlay/ConfirmDialog.d.ts.map +1 -1
- package/dist/overlay/ConfirmDialog.js +5 -2
- package/dist/overlay/ConfirmDialog.js.map +1 -1
- package/dist/profiles/cel/celEditor.cjs +94 -285
- package/dist/profiles/cel/celEditor.cjs.map +1 -1
- package/dist/profiles/cel/celEditor.d.ts +10 -15
- package/dist/profiles/cel/celEditor.d.ts.map +1 -1
- package/dist/profiles/cel/celEditor.js +97 -287
- package/dist/profiles/cel/celEditor.js.map +1 -1
- package/dist/profiles/cel/celExpression.cjs +1 -61
- package/dist/profiles/cel/celExpression.cjs.map +1 -1
- package/dist/profiles/cel/celExpression.d.ts +2 -38
- package/dist/profiles/cel/celExpression.d.ts.map +1 -1
- package/dist/profiles/cel/celExpression.js +2 -58
- package/dist/profiles/cel/celExpression.js.map +1 -1
- package/dist/profiles/cel/celPlayground.cjs +122 -0
- package/dist/profiles/cel/celPlayground.cjs.map +1 -0
- package/dist/profiles/cel/celPlayground.d.ts +43 -0
- package/dist/profiles/cel/celPlayground.d.ts.map +1 -0
- package/dist/profiles/cel/celPlayground.js +118 -0
- package/dist/profiles/cel/celPlayground.js.map +1 -0
- package/dist/profiles/connections/connectionBrowserModel.cjs +2 -2
- package/dist/profiles/connections/connectionBrowserModel.cjs.map +1 -1
- package/dist/profiles/connections/connectionBrowserModel.d.ts +5 -1
- package/dist/profiles/connections/connectionBrowserModel.d.ts.map +1 -1
- package/dist/profiles/connections/connectionBrowserModel.js +2 -2
- package/dist/profiles/connections/connectionBrowserModel.js.map +1 -1
- package/dist/profiles/connections/connectionQueryWorkspace.cjs +2 -1
- package/dist/profiles/connections/connectionQueryWorkspace.cjs.map +1 -1
- package/dist/profiles/connections/connectionQueryWorkspace.d.ts +3 -1
- package/dist/profiles/connections/connectionQueryWorkspace.d.ts.map +1 -1
- package/dist/profiles/connections/connectionQueryWorkspace.js +2 -1
- package/dist/profiles/connections/connectionQueryWorkspace.js.map +1 -1
- package/dist/profiles/editor/UnwrapPreviewList.cjs +90 -0
- package/dist/profiles/editor/UnwrapPreviewList.cjs.map +1 -0
- package/dist/profiles/editor/UnwrapPreviewList.d.ts +7 -0
- package/dist/profiles/editor/UnwrapPreviewList.d.ts.map +1 -0
- package/dist/profiles/editor/UnwrapPreviewList.js +90 -0
- package/dist/profiles/editor/UnwrapPreviewList.js.map +1 -0
- package/dist/profiles/editor/profileCanonicalQuery.cjs +6 -58
- package/dist/profiles/editor/profileCanonicalQuery.cjs.map +1 -1
- package/dist/profiles/editor/profileCanonicalQuery.d.ts +1 -1
- package/dist/profiles/editor/profileCanonicalQuery.d.ts.map +1 -1
- package/dist/profiles/editor/profileCanonicalQuery.js +4 -56
- package/dist/profiles/editor/profileCanonicalQuery.js.map +1 -1
- package/dist/profiles/editor/profileCanonicalTranslate.cjs +48 -0
- package/dist/profiles/editor/profileCanonicalTranslate.cjs.map +1 -0
- package/dist/profiles/editor/profileCanonicalTranslate.d.ts +24 -0
- package/dist/profiles/editor/profileCanonicalTranslate.d.ts.map +1 -0
- package/dist/profiles/editor/profileCanonicalTranslate.js +47 -0
- package/dist/profiles/editor/profileCanonicalTranslate.js.map +1 -0
- package/dist/profiles/editor/profileEditor.cjs +106 -37
- package/dist/profiles/editor/profileEditor.cjs.map +1 -1
- package/dist/profiles/editor/profileEditor.d.ts.map +1 -1
- package/dist/profiles/editor/profileEditor.js +107 -38
- package/dist/profiles/editor/profileEditor.js.map +1 -1
- package/dist/profiles/editor/profileEditorModel.cjs +65 -19
- package/dist/profiles/editor/profileEditorModel.cjs.map +1 -1
- package/dist/profiles/editor/profileEditorModel.d.ts +24 -8
- package/dist/profiles/editor/profileEditorModel.d.ts.map +1 -1
- package/dist/profiles/editor/profileEditorModel.js +64 -18
- package/dist/profiles/editor/profileEditorModel.js.map +1 -1
- package/dist/profiles/editor/profileEditorPreview.cjs +129 -29
- package/dist/profiles/editor/profileEditorPreview.cjs.map +1 -1
- package/dist/profiles/editor/profileEditorPreview.d.ts +18 -5
- package/dist/profiles/editor/profileEditorPreview.d.ts.map +1 -1
- package/dist/profiles/editor/profileEditorPreview.js +129 -29
- package/dist/profiles/editor/profileEditorPreview.js.map +1 -1
- package/dist/profiles/editor/profileEditorSections.cjs +137 -88
- package/dist/profiles/editor/profileEditorSections.cjs.map +1 -1
- package/dist/profiles/editor/profileEditorSections.d.ts +18 -2
- package/dist/profiles/editor/profileEditorSections.d.ts.map +1 -1
- package/dist/profiles/editor/profileEditorSections.js +138 -90
- package/dist/profiles/editor/profileEditorSections.js.map +1 -1
- package/dist/profiles/editor/profileMappingPreview.cjs +22 -6
- package/dist/profiles/editor/profileMappingPreview.cjs.map +1 -1
- package/dist/profiles/editor/profileMappingPreview.d.ts +17 -1
- package/dist/profiles/editor/profileMappingPreview.d.ts.map +1 -1
- package/dist/profiles/editor/profileMappingPreview.js +23 -7
- package/dist/profiles/editor/profileMappingPreview.js.map +1 -1
- package/dist/profiles/editor/profileSaveAsDialog.cjs +21 -13
- package/dist/profiles/editor/profileSaveAsDialog.cjs.map +1 -1
- package/dist/profiles/editor/profileSaveAsDialog.d.ts.map +1 -1
- package/dist/profiles/editor/profileSaveAsDialog.js +21 -13
- package/dist/profiles/editor/profileSaveAsDialog.js.map +1 -1
- package/dist/profiles/editor/profileSourceExtensions.cjs +71 -0
- package/dist/profiles/editor/profileSourceExtensions.cjs.map +1 -0
- package/dist/profiles/editor/profileSourceExtensions.d.ts +26 -0
- package/dist/profiles/editor/profileSourceExtensions.d.ts.map +1 -0
- package/dist/profiles/editor/profileSourceExtensions.js +70 -0
- package/dist/profiles/editor/profileSourceExtensions.js.map +1 -0
- package/dist/profiles/editor/samplePaths.cjs +54 -0
- package/dist/profiles/editor/samplePaths.cjs.map +1 -0
- package/dist/profiles/editor/samplePaths.d.ts +27 -0
- package/dist/profiles/editor/samplePaths.d.ts.map +1 -0
- package/dist/profiles/editor/samplePaths.js +53 -0
- package/dist/profiles/editor/samplePaths.js.map +1 -0
- package/dist/profiles/editor/testSchema.d.ts.map +1 -1
- package/dist/profiles/editor/useUnwrapPreviews.cjs +60 -0
- package/dist/profiles/editor/useUnwrapPreviews.cjs.map +1 -0
- package/dist/profiles/editor/useUnwrapPreviews.d.ts +38 -0
- package/dist/profiles/editor/useUnwrapPreviews.d.ts.map +1 -0
- package/dist/profiles/editor/useUnwrapPreviews.js +60 -0
- package/dist/profiles/editor/useUnwrapPreviews.js.map +1 -0
- package/dist/profiles/elasticsearch/esQueryBuilder.cjs +10 -1
- package/dist/profiles/elasticsearch/esQueryBuilder.cjs.map +1 -1
- package/dist/profiles/elasticsearch/esQueryBuilder.d.ts.map +1 -1
- package/dist/profiles/elasticsearch/esQueryBuilder.js +11 -2
- package/dist/profiles/elasticsearch/esQueryBuilder.js.map +1 -1
- package/dist/profiles/elasticsearch/esQueryBuilderForm.cjs +38 -0
- package/dist/profiles/elasticsearch/esQueryBuilderForm.cjs.map +1 -1
- package/dist/profiles/elasticsearch/esQueryBuilderForm.d.ts +17 -0
- package/dist/profiles/elasticsearch/esQueryBuilderForm.d.ts.map +1 -1
- package/dist/profiles/elasticsearch/esQueryBuilderForm.js +37 -1
- package/dist/profiles/elasticsearch/esQueryBuilderForm.js.map +1 -1
- package/dist/profiles/elasticsearch/esQueryConditionRow.cjs +4 -3
- package/dist/profiles/elasticsearch/esQueryConditionRow.cjs.map +1 -1
- package/dist/profiles/elasticsearch/esQueryConditionRow.d.ts.map +1 -1
- package/dist/profiles/elasticsearch/esQueryConditionRow.js +4 -3
- package/dist/profiles/elasticsearch/esQueryConditionRow.js.map +1 -1
- package/dist/profiles/elasticsearch/esQueryOperators.cjs.map +1 -1
- package/dist/profiles/elasticsearch/esQueryOperators.d.ts +8 -0
- package/dist/profiles/elasticsearch/esQueryOperators.d.ts.map +1 -1
- package/dist/profiles/elasticsearch/esQueryOperators.js.map +1 -1
- package/dist/profiles/fields/profileFieldControls.cjs +3 -2
- package/dist/profiles/fields/profileFieldControls.cjs.map +1 -1
- package/dist/profiles/fields/profileFieldControls.d.ts +3 -1
- package/dist/profiles/fields/profileFieldControls.d.ts.map +1 -1
- package/dist/profiles/fields/profileFieldControls.js +3 -2
- package/dist/profiles/fields/profileFieldControls.js.map +1 -1
- package/dist/profiles/fields/profileFieldEditor.cjs +98 -185
- package/dist/profiles/fields/profileFieldEditor.cjs.map +1 -1
- package/dist/profiles/fields/profileFieldEditor.d.ts +11 -3
- package/dist/profiles/fields/profileFieldEditor.d.ts.map +1 -1
- package/dist/profiles/fields/profileFieldEditor.js +99 -186
- package/dist/profiles/fields/profileFieldEditor.js.map +1 -1
- package/dist/profiles/fields/profileFieldFilterEditor.cjs +115 -81
- package/dist/profiles/fields/profileFieldFilterEditor.cjs.map +1 -1
- package/dist/profiles/fields/profileFieldFilterEditor.d.ts.map +1 -1
- package/dist/profiles/fields/profileFieldFilterEditor.js +116 -82
- package/dist/profiles/fields/profileFieldFilterEditor.js.map +1 -1
- package/dist/profiles/fields/profileFieldIcons.cjs +2 -0
- package/dist/profiles/fields/profileFieldIcons.cjs.map +1 -1
- package/dist/profiles/fields/profileFieldIcons.d.ts.map +1 -1
- package/dist/profiles/fields/profileFieldIcons.js +2 -0
- package/dist/profiles/fields/profileFieldIcons.js.map +1 -1
- package/dist/profiles/fields/profileFieldList.cjs +23 -1
- package/dist/profiles/fields/profileFieldList.cjs.map +1 -1
- package/dist/profiles/fields/profileFieldList.d.ts.map +1 -1
- package/dist/profiles/fields/profileFieldList.js +23 -1
- package/dist/profiles/fields/profileFieldList.js.map +1 -1
- package/dist/profiles/fields/profileFieldPreview.cjs +111 -0
- package/dist/profiles/fields/profileFieldPreview.cjs.map +1 -0
- package/dist/profiles/fields/profileFieldPreview.d.ts +25 -0
- package/dist/profiles/fields/profileFieldPreview.d.ts.map +1 -0
- package/dist/profiles/fields/profileFieldPreview.js +110 -0
- package/dist/profiles/fields/profileFieldPreview.js.map +1 -0
- package/dist/profiles/fields/profileFieldSample.cjs +182 -0
- package/dist/profiles/fields/profileFieldSample.cjs.map +1 -0
- package/dist/profiles/fields/profileFieldSample.d.ts +35 -0
- package/dist/profiles/fields/profileFieldSample.d.ts.map +1 -0
- package/dist/profiles/fields/profileFieldSample.js +180 -0
- package/dist/profiles/fields/profileFieldSample.js.map +1 -0
- package/dist/profiles/fields/profileFieldTypeField.cjs +104 -0
- package/dist/profiles/fields/profileFieldTypeField.cjs.map +1 -0
- package/dist/profiles/fields/profileFieldTypeField.d.ts +17 -0
- package/dist/profiles/fields/profileFieldTypeField.d.ts.map +1 -0
- package/dist/profiles/fields/profileFieldTypeField.js +104 -0
- package/dist/profiles/fields/profileFieldTypeField.js.map +1 -0
- package/dist/profiles/fields/profileFieldTypes.cjs +1 -0
- package/dist/profiles/fields/profileFieldTypes.cjs.map +1 -1
- package/dist/profiles/fields/profileFieldTypes.d.ts +1 -1
- package/dist/profiles/fields/profileFieldTypes.d.ts.map +1 -1
- package/dist/profiles/fields/profileFieldTypes.js +1 -0
- package/dist/profiles/fields/profileFieldTypes.js.map +1 -1
- package/dist/profiles/fields/profileFieldValueEditor.cjs +298 -0
- package/dist/profiles/fields/profileFieldValueEditor.cjs.map +1 -0
- package/dist/profiles/fields/profileFieldValueEditor.d.ts +18 -0
- package/dist/profiles/fields/profileFieldValueEditor.d.ts.map +1 -0
- package/dist/profiles/fields/profileFieldValueEditor.js +298 -0
- package/dist/profiles/fields/profileFieldValueEditor.js.map +1 -0
- package/dist/profiles/fields/profileFieldValueMode.cjs +61 -0
- package/dist/profiles/fields/profileFieldValueMode.cjs.map +1 -0
- package/dist/profiles/fields/profileFieldValueMode.d.ts +34 -0
- package/dist/profiles/fields/profileFieldValueMode.d.ts.map +1 -0
- package/dist/profiles/fields/profileFieldValueMode.js +59 -0
- package/dist/profiles/fields/profileFieldValueMode.js.map +1 -0
- package/dist/profiles/processor/processorConfig.cjs +79 -79
- package/dist/profiles/processor/processorConfig.cjs.map +1 -1
- package/dist/profiles/processor/processorConfig.d.ts +30 -3
- package/dist/profiles/processor/processorConfig.d.ts.map +1 -1
- package/dist/profiles/processor/processorConfig.js +78 -78
- package/dist/profiles/processor/processorConfig.js.map +1 -1
- package/dist/profiles/processor/processorPipeline.cjs +8 -6
- package/dist/profiles/processor/processorPipeline.cjs.map +1 -1
- package/dist/profiles/processor/processorPipeline.d.ts +3 -3
- package/dist/profiles/processor/processorPipeline.d.ts.map +1 -1
- package/dist/profiles/processor/processorPipeline.js +9 -7
- package/dist/profiles/processor/processorPipeline.js.map +1 -1
- package/dist/profiles/processor/processorPipelineEditor.cjs +38 -94
- package/dist/profiles/processor/processorPipelineEditor.cjs.map +1 -1
- package/dist/profiles/processor/processorPipelineEditor.d.ts +3 -3
- package/dist/profiles/processor/processorPipelineEditor.d.ts.map +1 -1
- package/dist/profiles/processor/processorPipelineEditor.js +39 -95
- package/dist/profiles/processor/processorPipelineEditor.js.map +1 -1
- package/dist/profiles/processor/processorPipelineExtension.cjs +3 -2
- package/dist/profiles/processor/processorPipelineExtension.cjs.map +1 -1
- package/dist/profiles/processor/processorPipelineExtension.d.ts.map +1 -1
- package/dist/profiles/processor/processorPipelineExtension.js +3 -2
- package/dist/profiles/processor/processorPipelineExtension.js.map +1 -1
- package/dist/profiles/query/profileSampleFilterLookup.cjs.map +1 -1
- package/dist/profiles/query/profileSampleFilterLookup.d.ts +6 -3
- package/dist/profiles/query/profileSampleFilterLookup.d.ts.map +1 -1
- package/dist/profiles/query/profileSampleFilterLookup.js.map +1 -1
- package/dist/profiles/wizard/profileWizardModel.cjs +10 -1
- package/dist/profiles/wizard/profileWizardModel.cjs.map +1 -1
- package/dist/profiles/wizard/profileWizardModel.d.ts +6 -0
- package/dist/profiles/wizard/profileWizardModel.d.ts.map +1 -1
- package/dist/profiles/wizard/profileWizardModel.js +10 -1
- package/dist/profiles/wizard/profileWizardModel.js.map +1 -1
- package/dist/profiles/wizard/profileWizardQueryStep.cjs +10 -22
- package/dist/profiles/wizard/profileWizardQueryStep.cjs.map +1 -1
- package/dist/profiles/wizard/profileWizardQueryStep.d.ts +8 -1
- package/dist/profiles/wizard/profileWizardQueryStep.d.ts.map +1 -1
- package/dist/profiles/wizard/profileWizardQueryStep.js +11 -23
- package/dist/profiles/wizard/profileWizardQueryStep.js.map +1 -1
- package/dist/profiles/wizard/useProfileInspection.cjs +39 -0
- package/dist/profiles/wizard/useProfileInspection.cjs.map +1 -0
- package/dist/profiles/wizard/useProfileInspection.d.ts +21 -0
- package/dist/profiles/wizard/useProfileInspection.d.ts.map +1 -0
- package/dist/profiles/wizard/useProfileInspection.js +39 -0
- package/dist/profiles/wizard/useProfileInspection.js.map +1 -0
- package/dist/profiles.cjs +9 -11
- package/dist/profiles.js +8 -8
- package/dist/rpc/EntityExplorerApp.cjs +7 -3
- package/dist/rpc/EntityExplorerApp.cjs.map +1 -1
- package/dist/rpc/EntityExplorerApp.d.ts +16 -1
- package/dist/rpc/EntityExplorerApp.d.ts.map +1 -1
- package/dist/rpc/EntityExplorerApp.js +7 -3
- package/dist/rpc/EntityExplorerApp.js.map +1 -1
- package/dist/rpc/InlineError.cjs +30 -10
- package/dist/rpc/InlineError.cjs.map +1 -1
- package/dist/rpc/InlineError.d.ts +10 -1
- package/dist/rpc/InlineError.d.ts.map +1 -1
- package/dist/rpc/InlineError.js +30 -10
- package/dist/rpc/InlineError.js.map +1 -1
- package/dist/rpc/SchemaActionForm.cjs +9 -6
- package/dist/rpc/SchemaActionForm.cjs.map +1 -1
- package/dist/rpc/SchemaActionForm.d.ts.map +1 -1
- package/dist/rpc/SchemaActionForm.js +9 -6
- package/dist/rpc/SchemaActionForm.js.map +1 -1
- package/dist/rpc/SessionHeader.cjs +3 -3
- package/dist/rpc/SessionHeader.cjs.map +1 -1
- package/dist/rpc/SessionHeader.d.ts.map +1 -1
- package/dist/rpc/SessionHeader.js +3 -3
- package/dist/rpc/SessionHeader.js.map +1 -1
- package/dist/rpc/formMetadata.cjs +2 -6
- package/dist/rpc/formMetadata.cjs.map +1 -1
- package/dist/rpc/formMetadata.d.ts.map +1 -1
- package/dist/rpc/formMetadata.js +1 -5
- package/dist/rpc/formMetadata.js.map +1 -1
- package/dist/rpc/surfaceNav.cjs +5 -0
- package/dist/rpc/surfaceNav.cjs.map +1 -1
- package/dist/rpc/surfaceNav.d.ts.map +1 -1
- package/dist/rpc/surfaceNav.js +5 -0
- package/dist/rpc/surfaceNav.js.map +1 -1
- package/dist/runtime/barrels.json +4982 -4979
- package/dist/runtime/importmap.json +2168 -2146
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/data/ai/runtime-profiles/ResolutionInspector.cjs +0 -91
- package/dist/data/ai/runtime-profiles/ResolutionInspector.cjs.map +0 -1
- package/dist/data/ai/runtime-profiles/ResolutionInspector.d.ts +0 -7
- package/dist/data/ai/runtime-profiles/ResolutionInspector.d.ts.map +0 -1
- package/dist/data/ai/runtime-profiles/ResolutionInspector.js +0 -91
- package/dist/data/ai/runtime-profiles/ResolutionInspector.js.map +0 -1
- package/dist/profiles/cel/celEditorResults.cjs +0 -158
- package/dist/profiles/cel/celEditorResults.cjs.map +0 -1
- package/dist/profiles/cel/celEditorResults.d.ts +0 -37
- package/dist/profiles/cel/celEditorResults.d.ts.map +0 -1
- package/dist/profiles/cel/celEditorResults.js +0 -156
- package/dist/profiles/cel/celEditorResults.js.map +0 -1
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
const require_Combobox = require("../../components/Combobox.cjs");
|
|
2
|
+
const require_JSONPathField = require("../../components/JSONPathField.cjs");
|
|
3
|
+
const require_SegmentedControl = require("../../components/SegmentedControl.cjs");
|
|
4
|
+
const require_UiBraces = require("../../icons/components/UiBraces.cjs");
|
|
5
|
+
const require_UiColumns = require("../../icons/components/UiColumns.cjs");
|
|
6
|
+
const require_UiDatabase = require("../../icons/components/UiDatabase.cjs");
|
|
7
|
+
const require_UiFunctionSquare = require("../../icons/components/UiFunctionSquare.cjs");
|
|
8
|
+
const require_celEditor = require("../cel/celEditor.cjs");
|
|
9
|
+
const require_celPath = require("../cel/celPath.cjs");
|
|
10
|
+
const require_jsonPathSample = require("../query/jsonPathSample.cjs");
|
|
11
|
+
const require_profileWizardModel = require("../wizard/profileWizardModel.cjs");
|
|
12
|
+
const require_profileFieldControls = require("./profileFieldControls.cjs");
|
|
13
|
+
const require_profileFieldValueMode = require("./profileFieldValueMode.cjs");
|
|
14
|
+
let react = require("react");
|
|
15
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
16
|
+
// src/profiles/fields/profileFieldValueEditor.tsx
|
|
17
|
+
/**
|
|
18
|
+
* The starting points offered before a value is in hand.
|
|
19
|
+
*
|
|
20
|
+
* This header has only the field's name to go on — the sampled value lives in
|
|
21
|
+
* the Test dialog, which is where the examples that fit it are offered. So
|
|
22
|
+
* these stay deliberately generic and lead there.
|
|
23
|
+
*/
|
|
24
|
+
function celExamples(fieldName) {
|
|
25
|
+
const field = require_celPath.celFieldAccess(fieldName);
|
|
26
|
+
return [
|
|
27
|
+
{
|
|
28
|
+
label: "Use the entire row",
|
|
29
|
+
expression: "row"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
label: `Read ${fieldName}`,
|
|
33
|
+
expression: field.reference
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
label: `Default ${fieldName} when missing`,
|
|
37
|
+
expression: `${field.presence} ? ${field.reference} : ""`
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
label: `Convert ${fieldName} to text`,
|
|
41
|
+
expression: `string(${field.reference})`
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
label: `Scale ${fieldName} by 1,000`,
|
|
45
|
+
expression: `${field.reference} / 1000.0`
|
|
46
|
+
}
|
|
47
|
+
];
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* How the column's value is produced: read off a row key, computed by CEL, or
|
|
51
|
+
* selected by a JSONPath. They are alternatives, so one segmented control picks
|
|
52
|
+
* the mode and only that mode's input is shown; switching clears the keys of the
|
|
53
|
+
* others, so a column never carries two.
|
|
54
|
+
*
|
|
55
|
+
* The filter's field (`filter.field`) is shown here too, since it is where the
|
|
56
|
+
* value comes from: an optional override in field mode, where the server filters
|
|
57
|
+
* on the source, and what makes the value filterable in CEL and JSONPath modes.
|
|
58
|
+
*/
|
|
59
|
+
function ProfileFieldValueEditor({ field, columns, providerType, onChange }) {
|
|
60
|
+
const rows = require_jsonPathSample.useJsonPathSampleRows();
|
|
61
|
+
const state = require_profileFieldValueMode.valueModeOf(field);
|
|
62
|
+
const [chosen, setChosen] = (0, react.useState)();
|
|
63
|
+
const mode = state.mode === "field" && chosen?.name === field.name ? chosen.mode : state.mode;
|
|
64
|
+
const fieldLabel = require_profileFieldValueMode.fieldModeLabel(providerType);
|
|
65
|
+
const wide = columns === 2 ? "sm:col-span-2" : "";
|
|
66
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
67
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
68
|
+
className: "grid content-start gap-2",
|
|
69
|
+
children: [
|
|
70
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
71
|
+
className: "text-sm font-medium",
|
|
72
|
+
children: "Value source"
|
|
73
|
+
}),
|
|
74
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_SegmentedControl.SegmentedControl, {
|
|
75
|
+
"aria-label": "Value source",
|
|
76
|
+
size: "sm",
|
|
77
|
+
value: mode,
|
|
78
|
+
options: [
|
|
79
|
+
{
|
|
80
|
+
id: "field",
|
|
81
|
+
label: fieldLabel,
|
|
82
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_UiColumns.UiColumns, {})
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
id: "cel",
|
|
86
|
+
label: "CEL",
|
|
87
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_UiFunctionSquare.UiFunctionSquare, {})
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
id: "jsonpath",
|
|
91
|
+
label: "JSONPath",
|
|
92
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_UiBraces.UiBraces, {})
|
|
93
|
+
}
|
|
94
|
+
],
|
|
95
|
+
onChange: (target) => {
|
|
96
|
+
if (target === "invalid") return;
|
|
97
|
+
setChosen({
|
|
98
|
+
name: field.name,
|
|
99
|
+
mode: target
|
|
100
|
+
});
|
|
101
|
+
onChange(require_profileFieldValueMode.patchForValueMode({
|
|
102
|
+
current: state,
|
|
103
|
+
target
|
|
104
|
+
}));
|
|
105
|
+
}
|
|
106
|
+
}),
|
|
107
|
+
state.mode === "invalid" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
108
|
+
role: "alert",
|
|
109
|
+
className: "text-xs text-destructive",
|
|
110
|
+
children: state.message
|
|
111
|
+
}) : null,
|
|
112
|
+
mode === "field" ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(FieldNameInput, {
|
|
113
|
+
field,
|
|
114
|
+
label: fieldLabel,
|
|
115
|
+
onChange
|
|
116
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FilterFieldInput, {
|
|
117
|
+
field,
|
|
118
|
+
variant: "override",
|
|
119
|
+
onChange
|
|
120
|
+
})] }) : null
|
|
121
|
+
]
|
|
122
|
+
}),
|
|
123
|
+
mode === "cel" ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
124
|
+
className: `grid gap-2 ${wide}`,
|
|
125
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(CelInput, {
|
|
126
|
+
field,
|
|
127
|
+
rows,
|
|
128
|
+
onChange
|
|
129
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FilterFieldInput, {
|
|
130
|
+
field,
|
|
131
|
+
variant: "computed",
|
|
132
|
+
onChange
|
|
133
|
+
})]
|
|
134
|
+
}) : null,
|
|
135
|
+
mode === "jsonpath" ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
136
|
+
className: `grid gap-2 ${wide}`,
|
|
137
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(JsonPathInput, {
|
|
138
|
+
field,
|
|
139
|
+
rows,
|
|
140
|
+
onChange
|
|
141
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FilterFieldInput, {
|
|
142
|
+
field,
|
|
143
|
+
variant: "computed",
|
|
144
|
+
onChange
|
|
145
|
+
})]
|
|
146
|
+
}) : null
|
|
147
|
+
] });
|
|
148
|
+
}
|
|
149
|
+
/** Whether the column offers a filter at all: not switched off, and of a type
|
|
150
|
+
* that has a control. */
|
|
151
|
+
function filterOffered(field) {
|
|
152
|
+
const filter = field.filter ?? {};
|
|
153
|
+
if (filter.disabled || filter.kind === "none") return false;
|
|
154
|
+
return (filter.kind ?? require_profileWizardModel.inferredFilterKind(field)) !== "none";
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* The filter's `filter.field`, shown where it belongs to the value.
|
|
158
|
+
*
|
|
159
|
+
* For a plain field read the server filters on the source itself, so there is
|
|
160
|
+
* nothing to enter and only a differing field — an analyzed text field filtered
|
|
161
|
+
* through its `.keyword` sibling — is shown, as an override. For a CEL or
|
|
162
|
+
* JSONPath value there is no field of its own to infer, so this is what makes it
|
|
163
|
+
* filterable at all. Either way it is the same stored `filter.field`.
|
|
164
|
+
*/
|
|
165
|
+
function FilterFieldInput({ field, variant, onChange }) {
|
|
166
|
+
const [opened, setOpened] = (0, react.useState)();
|
|
167
|
+
const stored = field.filter?.field;
|
|
168
|
+
const label = variant === "computed" ? "Filter on field" : "Filter on a different field";
|
|
169
|
+
const differs = Boolean(stored) && stored !== (field.source || field.name);
|
|
170
|
+
if (!filterOffered(field)) return null;
|
|
171
|
+
if (variant === "override" && !differs && opened !== field.name) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
172
|
+
type: "button",
|
|
173
|
+
className: "justify-self-start text-xs text-primary hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
174
|
+
onClick: () => setOpened(field.name),
|
|
175
|
+
children: "Filter on a different field…"
|
|
176
|
+
});
|
|
177
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_profileFieldControls.EditorField, {
|
|
178
|
+
label,
|
|
179
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_UiDatabase.UiDatabase, {}),
|
|
180
|
+
help: variant === "computed" ? "The indexed field the filter narrows on. A computed value has no field of its own, so filtering is off without it." : "Filter on another field than the one this column reads, such as the .keyword sibling of an analyzed text field. Clear it to filter on the source again.",
|
|
181
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
182
|
+
"aria-label": label,
|
|
183
|
+
value: stored ?? "",
|
|
184
|
+
className: require_profileFieldControls.inputClassName,
|
|
185
|
+
placeholder: variant === "computed" ? "Required to filter this value" : field.source || field.name,
|
|
186
|
+
onChange: (event) => onChange({ filter: require_profileWizardModel.patchColumnFilter(field.filter, { field: event.target.value || void 0 }) })
|
|
187
|
+
}), variant === "computed" && !stored ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
188
|
+
className: "text-xs font-normal text-muted-foreground",
|
|
189
|
+
children: "Filtering is off without it."
|
|
190
|
+
}) : null]
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
function FieldNameInput({ field, label, onChange }) {
|
|
194
|
+
const rows = require_jsonPathSample.useJsonPathSampleRows();
|
|
195
|
+
const options = (0, react.useMemo)(() => sampledFieldNames(rows).map((name) => ({
|
|
196
|
+
value: name,
|
|
197
|
+
label: name
|
|
198
|
+
})), [rows]);
|
|
199
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_profileFieldControls.EditorField, {
|
|
200
|
+
label,
|
|
201
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_UiColumns.UiColumns, {}),
|
|
202
|
+
help: "The row key the value is read from, copied into the name; blank reads the name itself. Suggestions come from the sample.",
|
|
203
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Combobox.Combobox, {
|
|
204
|
+
ariaLabel: label,
|
|
205
|
+
value: field.source ?? "",
|
|
206
|
+
options,
|
|
207
|
+
placeholder: field.name,
|
|
208
|
+
onChange: (next) => onChange({ source: next || void 0 })
|
|
209
|
+
})
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
function CelInput({ field, rows, onChange }) {
|
|
213
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
214
|
+
className: "grid gap-1.5 text-sm font-medium",
|
|
215
|
+
children: [
|
|
216
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
217
|
+
className: "flex items-center justify-between gap-2",
|
|
218
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
219
|
+
className: "flex items-center gap-2",
|
|
220
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_UiFunctionSquare.UiFunctionSquare, { className: "shrink-0 text-[15px] text-muted-foreground" }), "CEL expression"]
|
|
221
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
222
|
+
className: "flex items-center gap-2",
|
|
223
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("select", {
|
|
224
|
+
"aria-label": "CEL examples",
|
|
225
|
+
value: "",
|
|
226
|
+
className: "h-8 rounded-md border border-input bg-background px-2 text-xs font-normal outline-none focus:border-primary focus:ring-2 focus:ring-primary/15",
|
|
227
|
+
onChange: (event) => onChange({ cel: event.target.value }),
|
|
228
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
229
|
+
value: "",
|
|
230
|
+
children: "Examples"
|
|
231
|
+
}), celExamples(field.name).map((example) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
232
|
+
value: example.expression,
|
|
233
|
+
children: example.label
|
|
234
|
+
}, example.label))]
|
|
235
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_celEditor.CelTestButton, {
|
|
236
|
+
value: field.cel ?? "",
|
|
237
|
+
scope: "row",
|
|
238
|
+
rows,
|
|
239
|
+
title: field.name,
|
|
240
|
+
onChange: (next) => onChange({ cel: next || void 0 })
|
|
241
|
+
})]
|
|
242
|
+
})]
|
|
243
|
+
}),
|
|
244
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("textarea", {
|
|
245
|
+
"aria-label": "CEL expression",
|
|
246
|
+
rows: 4,
|
|
247
|
+
value: field.cel ?? "",
|
|
248
|
+
className: `${require_profileFieldControls.inputClassName} resize-y font-mono text-xs`,
|
|
249
|
+
placeholder: "Expression computing the value from row",
|
|
250
|
+
onChange: (event) => onChange({ cel: event.target.value || void 0 })
|
|
251
|
+
}),
|
|
252
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
253
|
+
className: "text-xs font-normal text-muted-foreground",
|
|
254
|
+
children: "Computes the value from row."
|
|
255
|
+
})
|
|
256
|
+
]
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
function JsonPathInput({ field, rows, onChange }) {
|
|
260
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_profileFieldControls.EditorField, {
|
|
261
|
+
label: "JSONPath",
|
|
262
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_UiBraces.UiBraces, {}),
|
|
263
|
+
help: "Path computing the value, rooted at the row or at the Source a pick sets.",
|
|
264
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_JSONPathField.JSONPathField, {
|
|
265
|
+
"aria-label": "JSONPath",
|
|
266
|
+
value: field.jsonpath ?? "",
|
|
267
|
+
onChange: (next) => onChange({ jsonpath: next || void 0 }),
|
|
268
|
+
onSelectPath: (next, { root }) => onChange({
|
|
269
|
+
jsonpath: next || void 0,
|
|
270
|
+
source: root
|
|
271
|
+
}),
|
|
272
|
+
...field.source ? { source: field.source } : {},
|
|
273
|
+
...rows.length === 0 ? {} : {
|
|
274
|
+
json: rows[0],
|
|
275
|
+
rows
|
|
276
|
+
},
|
|
277
|
+
evaluate: require_jsonPathSample.evaluateJsonPath
|
|
278
|
+
})
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
/** The keys the sampled rows carry, nested documents as dotted paths — the form
|
|
282
|
+
* the query engine resolves a source by. */
|
|
283
|
+
function sampledFieldNames(rows) {
|
|
284
|
+
const names = /* @__PURE__ */ new Set();
|
|
285
|
+
const visit = (node, prefix, depth) => {
|
|
286
|
+
if (typeof node !== "object" || node === null || Array.isArray(node)) return;
|
|
287
|
+
for (const [key, value] of Object.entries(node)) {
|
|
288
|
+
const path = prefix ? `${prefix}.${key}` : key;
|
|
289
|
+
names.add(path);
|
|
290
|
+
if (depth < 3) visit(value, path, depth + 1);
|
|
291
|
+
}
|
|
292
|
+
};
|
|
293
|
+
for (const row of rows.slice(0, 20)) visit(row, "", 1);
|
|
294
|
+
return [...names];
|
|
295
|
+
}
|
|
296
|
+
exports.ProfileFieldValueEditor = ProfileFieldValueEditor;
|
|
297
|
+
|
|
298
|
+
//# sourceMappingURL=profileFieldValueEditor.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profileFieldValueEditor.cjs","names":["celFieldAccess","useJsonPathSampleRows","valueModeOf","useState","fieldModeLabel","_Fragment","SegmentedControl","UiColumns","UiFunctionSquare","UiBraces","patchForValueMode","inferredFilterKind","EditorField","UiDatabase","inputClassName","patchColumnFilter","useMemo","Combobox","CelTestButton","JSONPathField","evaluateJsonPath"],"sources":["../../../src/profiles/fields/profileFieldValueEditor.tsx"],"sourcesContent":["import { useMemo, useState } from \"react\";\nimport { Combobox } from \"../../components/Combobox\";\nimport { JSONPathField } from \"../../components/JSONPathField\";\nimport { SegmentedControl } from \"../../components/SegmentedControl\";\nimport { UiBraces, UiColumns, UiDatabase, UiFunctionSquare } from \"../../icons\";\nimport { CelTestButton } from \"../cel/celEditor\";\nimport { celFieldAccess } from \"../cel/celPath\";\nimport {\n evaluateJsonPath,\n useJsonPathSampleRows,\n} from \"../query/jsonPathSample\";\nimport {\n inferredFilterKind,\n patchColumnFilter,\n type Patch,\n type ProfileColumn,\n} from \"../wizard/profileWizardModel\";\nimport { EditorField, inputClassName } from \"./profileFieldControls\";\nimport {\n fieldModeLabel,\n patchForValueMode,\n valueModeOf,\n type ValueMode,\n} from \"./profileFieldValueMode\";\n\n/**\n * The starting points offered before a value is in hand.\n *\n * This header has only the field's name to go on — the sampled value lives in\n * the Test dialog, which is where the examples that fit it are offered. So\n * these stay deliberately generic and lead there.\n */\nfunction celExamples(\n fieldName: string\n): Array<{ label: string; expression: string }> {\n const field = celFieldAccess(fieldName);\n return [\n { label: \"Use the entire row\", expression: \"row\" },\n { label: `Read ${fieldName}`, expression: field.reference },\n {\n label: `Default ${fieldName} when missing`,\n expression: `${field.presence} ? ${field.reference} : \"\"`,\n },\n {\n label: `Convert ${fieldName} to text`,\n expression: `string(${field.reference})`,\n },\n {\n label: `Scale ${fieldName} by 1,000`,\n expression: `${field.reference} / 1000.0`,\n },\n ];\n}\n\n/**\n * How the column's value is produced: read off a row key, computed by CEL, or\n * selected by a JSONPath. They are alternatives, so one segmented control picks\n * the mode and only that mode's input is shown; switching clears the keys of the\n * others, so a column never carries two.\n *\n * The filter's field (`filter.field`) is shown here too, since it is where the\n * value comes from: an optional override in field mode, where the server filters\n * on the source, and what makes the value filterable in CEL and JSONPath modes.\n */\nexport function ProfileFieldValueEditor({\n field,\n columns,\n providerType,\n onChange,\n}: {\n field: ProfileColumn;\n columns: 1 | 2;\n providerType?: string | undefined;\n onChange: (patch: Patch<ProfileColumn>) => void;\n}) {\n const rows = useJsonPathSampleRows();\n const state = valueModeOf(field);\n // The keys say which mode a column is in, but a column with none of them set —\n // a fresh CEL choice, before anything is typed — says nothing. The choice is\n // remembered for that column until its keys take over.\n const [chosen, setChosen] = useState<{ name: string; mode: ValueMode }>();\n const mode =\n state.mode === \"field\" && chosen?.name === field.name\n ? chosen.mode\n : state.mode;\n const fieldLabel = fieldModeLabel(providerType);\n const wide = columns === 2 ? \"sm:col-span-2\" : \"\";\n\n return (\n <>\n <div className=\"grid content-start gap-2\">\n <span className=\"text-sm font-medium\">Value source</span>\n <SegmentedControl<ValueMode | \"invalid\">\n aria-label=\"Value source\"\n size=\"sm\"\n // \"invalid\" matches no segment, so a column carrying two modes has none\n // selected rather than one picked for it.\n value={mode}\n options={[\n { id: \"field\", label: fieldLabel, icon: <UiColumns /> },\n { id: \"cel\", label: \"CEL\", icon: <UiFunctionSquare /> },\n { id: \"jsonpath\", label: \"JSONPath\", icon: <UiBraces /> },\n ]}\n onChange={(target) => {\n if (target === \"invalid\") return;\n setChosen({ name: field.name, mode: target });\n onChange(patchForValueMode({ current: state, target }));\n }}\n />\n {state.mode === \"invalid\" ? (\n <p role=\"alert\" className=\"text-xs text-destructive\">\n {state.message}\n </p>\n ) : null}\n {mode === \"field\" ? (\n <>\n <FieldNameInput\n field={field}\n label={fieldLabel}\n onChange={onChange}\n />\n <FilterFieldInput\n field={field}\n variant=\"override\"\n onChange={onChange}\n />\n </>\n ) : null}\n </div>\n {/* The expression editors need the room, so they take the whole row\n beneath the name and the source control rather than half of it. */}\n {mode === \"cel\" ? (\n <div className={`grid gap-2 ${wide}`}>\n <CelInput field={field} rows={rows} onChange={onChange} />\n <FilterFieldInput\n field={field}\n variant=\"computed\"\n onChange={onChange}\n />\n </div>\n ) : null}\n {mode === \"jsonpath\" ? (\n <div className={`grid gap-2 ${wide}`}>\n <JsonPathInput field={field} rows={rows} onChange={onChange} />\n <FilterFieldInput\n field={field}\n variant=\"computed\"\n onChange={onChange}\n />\n </div>\n ) : null}\n </>\n );\n}\n\n/** Whether the column offers a filter at all: not switched off, and of a type\n * that has a control. */\nfunction filterOffered(field: ProfileColumn): boolean {\n const filter = field.filter ?? {};\n if (filter.disabled || filter.kind === \"none\") return false;\n return (filter.kind ?? inferredFilterKind(field)) !== \"none\";\n}\n\n/**\n * The filter's `filter.field`, shown where it belongs to the value.\n *\n * For a plain field read the server filters on the source itself, so there is\n * nothing to enter and only a differing field — an analyzed text field filtered\n * through its `.keyword` sibling — is shown, as an override. For a CEL or\n * JSONPath value there is no field of its own to infer, so this is what makes it\n * filterable at all. Either way it is the same stored `filter.field`.\n */\nfunction FilterFieldInput({\n field,\n variant,\n onChange,\n}: {\n field: ProfileColumn;\n variant: \"override\" | \"computed\";\n onChange: (patch: Patch<ProfileColumn>) => void;\n}) {\n const [opened, setOpened] = useState<string>();\n const stored = field.filter?.field;\n const label =\n variant === \"computed\" ? \"Filter on field\" : \"Filter on a different field\";\n const differs = Boolean(stored) && stored !== (field.source || field.name);\n if (!filterOffered(field)) return null;\n if (variant === \"override\" && !differs && opened !== field.name) {\n return (\n <button\n type=\"button\"\n className=\"justify-self-start text-xs text-primary hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring\"\n onClick={() => setOpened(field.name)}\n >\n Filter on a different field…\n </button>\n );\n }\n return (\n <EditorField\n label={label}\n icon={<UiDatabase />}\n help={\n variant === \"computed\"\n ? \"The indexed field the filter narrows on. A computed value has no field of its own, so filtering is off without it.\"\n : \"Filter on another field than the one this column reads, such as the .keyword sibling of an analyzed text field. Clear it to filter on the source again.\"\n }\n >\n <input\n aria-label={label}\n value={stored ?? \"\"}\n className={inputClassName}\n placeholder={\n variant === \"computed\"\n ? \"Required to filter this value\"\n : field.source || field.name\n }\n onChange={(event) =>\n onChange({\n filter: patchColumnFilter(field.filter, {\n field: event.target.value || undefined,\n }),\n })\n }\n />\n {variant === \"computed\" && !stored ? (\n <span className=\"text-xs font-normal text-muted-foreground\">\n Filtering is off without it.\n </span>\n ) : null}\n </EditorField>\n );\n}\n\nfunction FieldNameInput({\n field,\n label,\n onChange,\n}: {\n field: ProfileColumn;\n label: string;\n onChange: (patch: Patch<ProfileColumn>) => void;\n}) {\n const rows = useJsonPathSampleRows();\n const options = useMemo(\n () => sampledFieldNames(rows).map((name) => ({ value: name, label: name })),\n [rows]\n );\n return (\n <EditorField\n label={label}\n icon={<UiColumns />}\n help=\"The row key the value is read from, copied into the name; blank reads the name itself. Suggestions come from the sample.\"\n >\n <Combobox\n ariaLabel={label}\n value={field.source ?? \"\"}\n options={options}\n placeholder={field.name}\n onChange={(next) => onChange({ source: next || undefined })}\n />\n </EditorField>\n );\n}\n\nfunction CelInput({\n field,\n rows,\n onChange,\n}: {\n field: ProfileColumn;\n rows: unknown[];\n onChange: (patch: Patch<ProfileColumn>) => void;\n}) {\n return (\n <div className=\"grid gap-1.5 text-sm font-medium\">\n <div className=\"flex items-center justify-between gap-2\">\n <span className=\"flex items-center gap-2\">\n <UiFunctionSquare className=\"shrink-0 text-[15px] text-muted-foreground\" />\n CEL expression\n </span>\n <span className=\"flex items-center gap-2\">\n <select\n aria-label=\"CEL examples\"\n value=\"\"\n className=\"h-8 rounded-md border border-input bg-background px-2 text-xs font-normal outline-none focus:border-primary focus:ring-2 focus:ring-primary/15\"\n onChange={(event) => onChange({ cel: event.target.value })}\n >\n <option value=\"\">Examples</option>\n {celExamples(field.name).map((example) => (\n <option key={example.label} value={example.expression}>\n {example.label}\n </option>\n ))}\n </select>\n <CelTestButton\n value={field.cel ?? \"\"}\n scope=\"row\"\n rows={rows}\n title={field.name}\n onChange={(next) => onChange({ cel: next || undefined })}\n />\n </span>\n </div>\n <textarea\n aria-label=\"CEL expression\"\n rows={4}\n value={field.cel ?? \"\"}\n className={`${inputClassName} resize-y font-mono text-xs`}\n placeholder=\"Expression computing the value from row\"\n onChange={(event) => onChange({ cel: event.target.value || undefined })}\n />\n <span className=\"text-xs font-normal text-muted-foreground\">\n Computes the value from row.\n </span>\n </div>\n );\n}\n\nfunction JsonPathInput({\n field,\n rows,\n onChange,\n}: {\n field: ProfileColumn;\n rows: unknown[];\n onChange: (patch: Patch<ProfileColumn>) => void;\n}) {\n return (\n <EditorField\n label=\"JSONPath\"\n icon={<UiBraces />}\n help=\"Path computing the value, rooted at the row or at the Source a pick sets.\"\n >\n <JSONPathField\n aria-label=\"JSONPath\"\n value={field.jsonpath ?? \"\"}\n onChange={(next) => onChange({ jsonpath: next || undefined })}\n // A path picked out of a JSON-encoded column sets the Source it needs in\n // the same edit rather than leaving the author to pair the two by hand.\n // A path picked outside one clears it: alongside a jsonpath, Source is\n // the root, and a stale root re-roots the new path at a column it was\n // never written against.\n onSelectPath={(next, { root }) =>\n onChange({ jsonpath: next || undefined, source: root })\n }\n {...(field.source ? { source: field.source } : {})}\n {...(rows.length === 0 ? {} : { json: rows[0], rows })}\n evaluate={evaluateJsonPath}\n />\n </EditorField>\n );\n}\n\n/** The keys the sampled rows carry, nested documents as dotted paths — the form\n * the query engine resolves a source by. */\nfunction sampledFieldNames(rows: unknown[]): string[] {\n const names = new Set<string>();\n const visit = (node: unknown, prefix: string, depth: number) => {\n if (typeof node !== \"object\" || node === null || Array.isArray(node))\n return;\n for (const [key, value] of Object.entries(node)) {\n const path = prefix ? `${prefix}.${key}` : key;\n names.add(path);\n if (depth < 3) visit(value, path, depth + 1);\n }\n };\n for (const row of rows.slice(0, 20)) visit(row, \"\", 1);\n return [...names];\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAgCA,SAAS,YACP,WAC8C;CAC9C,MAAM,QAAQA,gBAAAA,eAAe,SAAS;CACtC,OAAO;EACL;GAAE,OAAO;GAAsB,YAAY;EAAM;EACjD;GAAE,OAAO,QAAQ;GAAa,YAAY,MAAM;EAAU;EAC1D;GACE,OAAO,WAAW,UAAU;GAC5B,YAAY,GAAG,MAAM,SAAS,KAAK,MAAM,UAAU;EACrD;EACA;GACE,OAAO,WAAW,UAAU;GAC5B,YAAY,UAAU,MAAM,UAAU;EACxC;EACA;GACE,OAAO,SAAS,UAAU;GAC1B,YAAY,GAAG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;GAC3C,MAAM,IAAI,IAAI;GACd,IAAI,QAAQ,GAAG,MAAM,OAAO,MAAM,QAAQ,CAAC;EAC7C;CACF;CACA,KAAK,MAAM,OAAO,KAAK,MAAM,GAAG,EAAE,GAAG,MAAM,KAAK,IAAI,CAAC;CACrD,OAAO,CAAC,GAAG,KAAK;AAClB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Patch, ProfileColumn } from '../wizard/profileWizardModel.js';
|
|
2
|
+
/**
|
|
3
|
+
* How the column's value is produced: read off a row key, computed by CEL, or
|
|
4
|
+
* selected by a JSONPath. They are alternatives, so one segmented control picks
|
|
5
|
+
* the mode and only that mode's input is shown; switching clears the keys of the
|
|
6
|
+
* others, so a column never carries two.
|
|
7
|
+
*
|
|
8
|
+
* The filter's field (`filter.field`) is shown here too, since it is where the
|
|
9
|
+
* value comes from: an optional override in field mode, where the server filters
|
|
10
|
+
* on the source, and what makes the value filterable in CEL and JSONPath modes.
|
|
11
|
+
*/
|
|
12
|
+
export declare function ProfileFieldValueEditor({ field, columns, providerType, onChange, }: {
|
|
13
|
+
field: ProfileColumn;
|
|
14
|
+
columns: 1 | 2;
|
|
15
|
+
providerType?: string | undefined;
|
|
16
|
+
onChange: (patch: Patch<ProfileColumn>) => void;
|
|
17
|
+
}): import("react").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=profileFieldValueEditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profileFieldValueEditor.d.ts","sourceRoot":"","sources":["../../../src/profiles/fields/profileFieldValueEditor.tsx"],"names":[],"mappings":"AAWA,OAAO,EAGL,KAAK,KAAK,EACV,KAAK,aAAa,EACnB,MAAM,8BAA8B,CAAC;AAsCtC;;;;;;;;;GASG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,KAAK,EACL,OAAO,EACP,YAAY,EACZ,QAAQ,GACT,EAAE;IACD,KAAK,EAAE,aAAa,CAAC;IACrB,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC;CACjD,+BA+EA"}
|
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
import { Combobox } from "../../components/Combobox.js";
|
|
2
|
+
import { JSONPathField } from "../../components/JSONPathField.js";
|
|
3
|
+
import { SegmentedControl } from "../../components/SegmentedControl.js";
|
|
4
|
+
import { UiBraces } from "../../icons/components/UiBraces.js";
|
|
5
|
+
import { UiColumns } from "../../icons/components/UiColumns.js";
|
|
6
|
+
import { UiDatabase } from "../../icons/components/UiDatabase.js";
|
|
7
|
+
import { UiFunctionSquare } from "../../icons/components/UiFunctionSquare.js";
|
|
8
|
+
import { CelTestButton } from "../cel/celEditor.js";
|
|
9
|
+
import { celFieldAccess } from "../cel/celPath.js";
|
|
10
|
+
import { evaluateJsonPath, useJsonPathSampleRows } from "../query/jsonPathSample.js";
|
|
11
|
+
import { inferredFilterKind, patchColumnFilter } from "../wizard/profileWizardModel.js";
|
|
12
|
+
import { EditorField, inputClassName } from "./profileFieldControls.js";
|
|
13
|
+
import { fieldModeLabel, patchForValueMode, valueModeOf } from "./profileFieldValueMode.js";
|
|
14
|
+
import { useMemo, useState } from "react";
|
|
15
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
+
// src/profiles/fields/profileFieldValueEditor.tsx
|
|
17
|
+
/**
|
|
18
|
+
* The starting points offered before a value is in hand.
|
|
19
|
+
*
|
|
20
|
+
* This header has only the field's name to go on — the sampled value lives in
|
|
21
|
+
* the Test dialog, which is where the examples that fit it are offered. So
|
|
22
|
+
* these stay deliberately generic and lead there.
|
|
23
|
+
*/
|
|
24
|
+
function celExamples(fieldName) {
|
|
25
|
+
const field = celFieldAccess(fieldName);
|
|
26
|
+
return [
|
|
27
|
+
{
|
|
28
|
+
label: "Use the entire row",
|
|
29
|
+
expression: "row"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
label: `Read ${fieldName}`,
|
|
33
|
+
expression: field.reference
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
label: `Default ${fieldName} when missing`,
|
|
37
|
+
expression: `${field.presence} ? ${field.reference} : ""`
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
label: `Convert ${fieldName} to text`,
|
|
41
|
+
expression: `string(${field.reference})`
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
label: `Scale ${fieldName} by 1,000`,
|
|
45
|
+
expression: `${field.reference} / 1000.0`
|
|
46
|
+
}
|
|
47
|
+
];
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* How the column's value is produced: read off a row key, computed by CEL, or
|
|
51
|
+
* selected by a JSONPath. They are alternatives, so one segmented control picks
|
|
52
|
+
* the mode and only that mode's input is shown; switching clears the keys of the
|
|
53
|
+
* others, so a column never carries two.
|
|
54
|
+
*
|
|
55
|
+
* The filter's field (`filter.field`) is shown here too, since it is where the
|
|
56
|
+
* value comes from: an optional override in field mode, where the server filters
|
|
57
|
+
* on the source, and what makes the value filterable in CEL and JSONPath modes.
|
|
58
|
+
*/
|
|
59
|
+
function ProfileFieldValueEditor({ field, columns, providerType, onChange }) {
|
|
60
|
+
const rows = useJsonPathSampleRows();
|
|
61
|
+
const state = valueModeOf(field);
|
|
62
|
+
const [chosen, setChosen] = useState();
|
|
63
|
+
const mode = state.mode === "field" && chosen?.name === field.name ? chosen.mode : state.mode;
|
|
64
|
+
const fieldLabel = fieldModeLabel(providerType);
|
|
65
|
+
const wide = columns === 2 ? "sm:col-span-2" : "";
|
|
66
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
67
|
+
/* @__PURE__ */ jsxs("div", {
|
|
68
|
+
className: "grid content-start gap-2",
|
|
69
|
+
children: [
|
|
70
|
+
/* @__PURE__ */ jsx("span", {
|
|
71
|
+
className: "text-sm font-medium",
|
|
72
|
+
children: "Value source"
|
|
73
|
+
}),
|
|
74
|
+
/* @__PURE__ */ jsx(SegmentedControl, {
|
|
75
|
+
"aria-label": "Value source",
|
|
76
|
+
size: "sm",
|
|
77
|
+
value: mode,
|
|
78
|
+
options: [
|
|
79
|
+
{
|
|
80
|
+
id: "field",
|
|
81
|
+
label: fieldLabel,
|
|
82
|
+
icon: /* @__PURE__ */ jsx(UiColumns, {})
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
id: "cel",
|
|
86
|
+
label: "CEL",
|
|
87
|
+
icon: /* @__PURE__ */ jsx(UiFunctionSquare, {})
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
id: "jsonpath",
|
|
91
|
+
label: "JSONPath",
|
|
92
|
+
icon: /* @__PURE__ */ jsx(UiBraces, {})
|
|
93
|
+
}
|
|
94
|
+
],
|
|
95
|
+
onChange: (target) => {
|
|
96
|
+
if (target === "invalid") return;
|
|
97
|
+
setChosen({
|
|
98
|
+
name: field.name,
|
|
99
|
+
mode: target
|
|
100
|
+
});
|
|
101
|
+
onChange(patchForValueMode({
|
|
102
|
+
current: state,
|
|
103
|
+
target
|
|
104
|
+
}));
|
|
105
|
+
}
|
|
106
|
+
}),
|
|
107
|
+
state.mode === "invalid" ? /* @__PURE__ */ jsx("p", {
|
|
108
|
+
role: "alert",
|
|
109
|
+
className: "text-xs text-destructive",
|
|
110
|
+
children: state.message
|
|
111
|
+
}) : null,
|
|
112
|
+
mode === "field" ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(FieldNameInput, {
|
|
113
|
+
field,
|
|
114
|
+
label: fieldLabel,
|
|
115
|
+
onChange
|
|
116
|
+
}), /* @__PURE__ */ jsx(FilterFieldInput, {
|
|
117
|
+
field,
|
|
118
|
+
variant: "override",
|
|
119
|
+
onChange
|
|
120
|
+
})] }) : null
|
|
121
|
+
]
|
|
122
|
+
}),
|
|
123
|
+
mode === "cel" ? /* @__PURE__ */ jsxs("div", {
|
|
124
|
+
className: `grid gap-2 ${wide}`,
|
|
125
|
+
children: [/* @__PURE__ */ jsx(CelInput, {
|
|
126
|
+
field,
|
|
127
|
+
rows,
|
|
128
|
+
onChange
|
|
129
|
+
}), /* @__PURE__ */ jsx(FilterFieldInput, {
|
|
130
|
+
field,
|
|
131
|
+
variant: "computed",
|
|
132
|
+
onChange
|
|
133
|
+
})]
|
|
134
|
+
}) : null,
|
|
135
|
+
mode === "jsonpath" ? /* @__PURE__ */ jsxs("div", {
|
|
136
|
+
className: `grid gap-2 ${wide}`,
|
|
137
|
+
children: [/* @__PURE__ */ jsx(JsonPathInput, {
|
|
138
|
+
field,
|
|
139
|
+
rows,
|
|
140
|
+
onChange
|
|
141
|
+
}), /* @__PURE__ */ jsx(FilterFieldInput, {
|
|
142
|
+
field,
|
|
143
|
+
variant: "computed",
|
|
144
|
+
onChange
|
|
145
|
+
})]
|
|
146
|
+
}) : null
|
|
147
|
+
] });
|
|
148
|
+
}
|
|
149
|
+
/** Whether the column offers a filter at all: not switched off, and of a type
|
|
150
|
+
* that has a control. */
|
|
151
|
+
function filterOffered(field) {
|
|
152
|
+
const filter = field.filter ?? {};
|
|
153
|
+
if (filter.disabled || filter.kind === "none") return false;
|
|
154
|
+
return (filter.kind ?? inferredFilterKind(field)) !== "none";
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* The filter's `filter.field`, shown where it belongs to the value.
|
|
158
|
+
*
|
|
159
|
+
* For a plain field read the server filters on the source itself, so there is
|
|
160
|
+
* nothing to enter and only a differing field — an analyzed text field filtered
|
|
161
|
+
* through its `.keyword` sibling — is shown, as an override. For a CEL or
|
|
162
|
+
* JSONPath value there is no field of its own to infer, so this is what makes it
|
|
163
|
+
* filterable at all. Either way it is the same stored `filter.field`.
|
|
164
|
+
*/
|
|
165
|
+
function FilterFieldInput({ field, variant, onChange }) {
|
|
166
|
+
const [opened, setOpened] = useState();
|
|
167
|
+
const stored = field.filter?.field;
|
|
168
|
+
const label = variant === "computed" ? "Filter on field" : "Filter on a different field";
|
|
169
|
+
const differs = Boolean(stored) && stored !== (field.source || field.name);
|
|
170
|
+
if (!filterOffered(field)) return null;
|
|
171
|
+
if (variant === "override" && !differs && opened !== field.name) return /* @__PURE__ */ jsx("button", {
|
|
172
|
+
type: "button",
|
|
173
|
+
className: "justify-self-start text-xs text-primary hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
174
|
+
onClick: () => setOpened(field.name),
|
|
175
|
+
children: "Filter on a different field…"
|
|
176
|
+
});
|
|
177
|
+
return /* @__PURE__ */ jsxs(EditorField, {
|
|
178
|
+
label,
|
|
179
|
+
icon: /* @__PURE__ */ jsx(UiDatabase, {}),
|
|
180
|
+
help: variant === "computed" ? "The indexed field the filter narrows on. A computed value has no field of its own, so filtering is off without it." : "Filter on another field than the one this column reads, such as the .keyword sibling of an analyzed text field. Clear it to filter on the source again.",
|
|
181
|
+
children: [/* @__PURE__ */ jsx("input", {
|
|
182
|
+
"aria-label": label,
|
|
183
|
+
value: stored ?? "",
|
|
184
|
+
className: inputClassName,
|
|
185
|
+
placeholder: variant === "computed" ? "Required to filter this value" : field.source || field.name,
|
|
186
|
+
onChange: (event) => onChange({ filter: patchColumnFilter(field.filter, { field: event.target.value || void 0 }) })
|
|
187
|
+
}), variant === "computed" && !stored ? /* @__PURE__ */ jsx("span", {
|
|
188
|
+
className: "text-xs font-normal text-muted-foreground",
|
|
189
|
+
children: "Filtering is off without it."
|
|
190
|
+
}) : null]
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
function FieldNameInput({ field, label, onChange }) {
|
|
194
|
+
const rows = useJsonPathSampleRows();
|
|
195
|
+
const options = useMemo(() => sampledFieldNames(rows).map((name) => ({
|
|
196
|
+
value: name,
|
|
197
|
+
label: name
|
|
198
|
+
})), [rows]);
|
|
199
|
+
return /* @__PURE__ */ jsx(EditorField, {
|
|
200
|
+
label,
|
|
201
|
+
icon: /* @__PURE__ */ jsx(UiColumns, {}),
|
|
202
|
+
help: "The row key the value is read from, copied into the name; blank reads the name itself. Suggestions come from the sample.",
|
|
203
|
+
children: /* @__PURE__ */ jsx(Combobox, {
|
|
204
|
+
ariaLabel: label,
|
|
205
|
+
value: field.source ?? "",
|
|
206
|
+
options,
|
|
207
|
+
placeholder: field.name,
|
|
208
|
+
onChange: (next) => onChange({ source: next || void 0 })
|
|
209
|
+
})
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
function CelInput({ field, rows, onChange }) {
|
|
213
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
214
|
+
className: "grid gap-1.5 text-sm font-medium",
|
|
215
|
+
children: [
|
|
216
|
+
/* @__PURE__ */ jsxs("div", {
|
|
217
|
+
className: "flex items-center justify-between gap-2",
|
|
218
|
+
children: [/* @__PURE__ */ jsxs("span", {
|
|
219
|
+
className: "flex items-center gap-2",
|
|
220
|
+
children: [/* @__PURE__ */ jsx(UiFunctionSquare, { className: "shrink-0 text-[15px] text-muted-foreground" }), "CEL expression"]
|
|
221
|
+
}), /* @__PURE__ */ jsxs("span", {
|
|
222
|
+
className: "flex items-center gap-2",
|
|
223
|
+
children: [/* @__PURE__ */ jsxs("select", {
|
|
224
|
+
"aria-label": "CEL examples",
|
|
225
|
+
value: "",
|
|
226
|
+
className: "h-8 rounded-md border border-input bg-background px-2 text-xs font-normal outline-none focus:border-primary focus:ring-2 focus:ring-primary/15",
|
|
227
|
+
onChange: (event) => onChange({ cel: event.target.value }),
|
|
228
|
+
children: [/* @__PURE__ */ jsx("option", {
|
|
229
|
+
value: "",
|
|
230
|
+
children: "Examples"
|
|
231
|
+
}), celExamples(field.name).map((example) => /* @__PURE__ */ jsx("option", {
|
|
232
|
+
value: example.expression,
|
|
233
|
+
children: example.label
|
|
234
|
+
}, example.label))]
|
|
235
|
+
}), /* @__PURE__ */ jsx(CelTestButton, {
|
|
236
|
+
value: field.cel ?? "",
|
|
237
|
+
scope: "row",
|
|
238
|
+
rows,
|
|
239
|
+
title: field.name,
|
|
240
|
+
onChange: (next) => onChange({ cel: next || void 0 })
|
|
241
|
+
})]
|
|
242
|
+
})]
|
|
243
|
+
}),
|
|
244
|
+
/* @__PURE__ */ jsx("textarea", {
|
|
245
|
+
"aria-label": "CEL expression",
|
|
246
|
+
rows: 4,
|
|
247
|
+
value: field.cel ?? "",
|
|
248
|
+
className: `${inputClassName} resize-y font-mono text-xs`,
|
|
249
|
+
placeholder: "Expression computing the value from row",
|
|
250
|
+
onChange: (event) => onChange({ cel: event.target.value || void 0 })
|
|
251
|
+
}),
|
|
252
|
+
/* @__PURE__ */ jsx("span", {
|
|
253
|
+
className: "text-xs font-normal text-muted-foreground",
|
|
254
|
+
children: "Computes the value from row."
|
|
255
|
+
})
|
|
256
|
+
]
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
function JsonPathInput({ field, rows, onChange }) {
|
|
260
|
+
return /* @__PURE__ */ jsx(EditorField, {
|
|
261
|
+
label: "JSONPath",
|
|
262
|
+
icon: /* @__PURE__ */ jsx(UiBraces, {}),
|
|
263
|
+
help: "Path computing the value, rooted at the row or at the Source a pick sets.",
|
|
264
|
+
children: /* @__PURE__ */ jsx(JSONPathField, {
|
|
265
|
+
"aria-label": "JSONPath",
|
|
266
|
+
value: field.jsonpath ?? "",
|
|
267
|
+
onChange: (next) => onChange({ jsonpath: next || void 0 }),
|
|
268
|
+
onSelectPath: (next, { root }) => onChange({
|
|
269
|
+
jsonpath: next || void 0,
|
|
270
|
+
source: root
|
|
271
|
+
}),
|
|
272
|
+
...field.source ? { source: field.source } : {},
|
|
273
|
+
...rows.length === 0 ? {} : {
|
|
274
|
+
json: rows[0],
|
|
275
|
+
rows
|
|
276
|
+
},
|
|
277
|
+
evaluate: evaluateJsonPath
|
|
278
|
+
})
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
/** The keys the sampled rows carry, nested documents as dotted paths — the form
|
|
282
|
+
* the query engine resolves a source by. */
|
|
283
|
+
function sampledFieldNames(rows) {
|
|
284
|
+
const names = /* @__PURE__ */ new Set();
|
|
285
|
+
const visit = (node, prefix, depth) => {
|
|
286
|
+
if (typeof node !== "object" || node === null || Array.isArray(node)) return;
|
|
287
|
+
for (const [key, value] of Object.entries(node)) {
|
|
288
|
+
const path = prefix ? `${prefix}.${key}` : key;
|
|
289
|
+
names.add(path);
|
|
290
|
+
if (depth < 3) visit(value, path, depth + 1);
|
|
291
|
+
}
|
|
292
|
+
};
|
|
293
|
+
for (const row of rows.slice(0, 20)) visit(row, "", 1);
|
|
294
|
+
return [...names];
|
|
295
|
+
}
|
|
296
|
+
export { ProfileFieldValueEditor };
|
|
297
|
+
|
|
298
|
+
//# sourceMappingURL=profileFieldValueEditor.js.map
|