@flanksource/clicky-ui 0.3.77 → 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/NOTICE.md +16 -0
- 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 +33 -0
- package/dist/data.d.ts +1 -1
- package/dist/data.d.ts.map +1 -1
- package/dist/data.js +18 -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/icons/components/UiGlobeShare.cjs +33 -0
- package/dist/icons/components/UiGlobeShare.cjs.map +1 -0
- package/dist/icons/components/UiGlobeShare.d.ts +9 -0
- package/dist/icons/components/UiGlobeShare.d.ts.map +1 -0
- package/dist/icons/components/UiGlobeShare.js +31 -0
- package/dist/icons/components/UiGlobeShare.js.map +1 -0
- package/dist/icons/components/UiKubernetesLink.cjs +38 -0
- package/dist/icons/components/UiKubernetesLink.cjs.map +1 -0
- package/dist/icons/components/UiKubernetesLink.d.ts +9 -0
- package/dist/icons/components/UiKubernetesLink.d.ts.map +1 -0
- package/dist/icons/components/UiKubernetesLink.js +36 -0
- package/dist/icons/components/UiKubernetesLink.js.map +1 -0
- package/dist/icons/components/UiLogoAws.cjs +29 -0
- package/dist/icons/components/UiLogoAws.cjs.map +1 -0
- package/dist/icons/components/UiLogoAws.d.ts +9 -0
- package/dist/icons/components/UiLogoAws.d.ts.map +1 -0
- package/dist/icons/components/UiLogoAws.js +27 -0
- package/dist/icons/components/UiLogoAws.js.map +1 -0
- package/dist/icons/components/UiLogoAzure.cjs +29 -0
- package/dist/icons/components/UiLogoAzure.cjs.map +1 -0
- package/dist/icons/components/UiLogoAzure.d.ts +9 -0
- package/dist/icons/components/UiLogoAzure.d.ts.map +1 -0
- package/dist/icons/components/UiLogoAzure.js +27 -0
- package/dist/icons/components/UiLogoAzure.js.map +1 -0
- package/dist/icons/components/UiLogoAzureDevops.cjs +29 -0
- package/dist/icons/components/UiLogoAzureDevops.cjs.map +1 -0
- package/dist/icons/components/UiLogoAzureDevops.d.ts +9 -0
- package/dist/icons/components/UiLogoAzureDevops.d.ts.map +1 -0
- package/dist/icons/components/UiLogoAzureDevops.js +27 -0
- package/dist/icons/components/UiLogoAzureDevops.js.map +1 -0
- package/dist/icons/components/UiLogoGit.cjs +29 -0
- package/dist/icons/components/UiLogoGit.cjs.map +1 -0
- package/dist/icons/components/UiLogoGit.d.ts +9 -0
- package/dist/icons/components/UiLogoGit.d.ts.map +1 -0
- package/dist/icons/components/UiLogoGit.js +27 -0
- package/dist/icons/components/UiLogoGit.js.map +1 -0
- package/dist/icons/components/UiLogoGithub.cjs +29 -0
- package/dist/icons/components/UiLogoGithub.cjs.map +1 -0
- package/dist/icons/components/UiLogoGithub.d.ts +9 -0
- package/dist/icons/components/UiLogoGithub.d.ts.map +1 -0
- package/dist/icons/components/UiLogoGithub.js +27 -0
- package/dist/icons/components/UiLogoGithub.js.map +1 -0
- package/dist/icons/components/UiLogoJava.cjs +29 -0
- package/dist/icons/components/UiLogoJava.cjs.map +1 -0
- package/dist/icons/components/UiLogoJava.d.ts +9 -0
- package/dist/icons/components/UiLogoJava.d.ts.map +1 -0
- package/dist/icons/components/UiLogoJava.js +27 -0
- package/dist/icons/components/UiLogoJava.js.map +1 -0
- package/dist/icons/components/UiLogoKubernetes.cjs +29 -0
- package/dist/icons/components/UiLogoKubernetes.cjs.map +1 -0
- package/dist/icons/components/UiLogoKubernetes.d.ts +9 -0
- package/dist/icons/components/UiLogoKubernetes.d.ts.map +1 -0
- package/dist/icons/components/UiLogoKubernetes.js +27 -0
- package/dist/icons/components/UiLogoKubernetes.js.map +1 -0
- package/dist/icons/components/UiLogoMssql.cjs +29 -0
- package/dist/icons/components/UiLogoMssql.cjs.map +1 -0
- package/dist/icons/components/UiLogoMssql.d.ts +9 -0
- package/dist/icons/components/UiLogoMssql.d.ts.map +1 -0
- package/dist/icons/components/UiLogoMssql.js +27 -0
- package/dist/icons/components/UiLogoMssql.js.map +1 -0
- package/dist/icons/components/UiLogoOpenjdk.cjs +29 -0
- package/dist/icons/components/UiLogoOpenjdk.cjs.map +1 -0
- package/dist/icons/components/UiLogoOpenjdk.d.ts +9 -0
- package/dist/icons/components/UiLogoOpenjdk.d.ts.map +1 -0
- package/dist/icons/components/UiLogoOpenjdk.js +27 -0
- package/dist/icons/components/UiLogoOpenjdk.js.map +1 -0
- package/dist/icons/components/UiLogoOpensearch.cjs +29 -0
- package/dist/icons/components/UiLogoOpensearch.cjs.map +1 -0
- package/dist/icons/components/UiLogoOpensearch.d.ts +9 -0
- package/dist/icons/components/UiLogoOpensearch.d.ts.map +1 -0
- package/dist/icons/components/UiLogoOpensearch.js +27 -0
- package/dist/icons/components/UiLogoOpensearch.js.map +1 -0
- package/dist/icons/components/UiLogoOpentelemetry.cjs +29 -0
- package/dist/icons/components/UiLogoOpentelemetry.cjs.map +1 -0
- package/dist/icons/components/UiLogoOpentelemetry.d.ts +9 -0
- package/dist/icons/components/UiLogoOpentelemetry.d.ts.map +1 -0
- package/dist/icons/components/UiLogoOpentelemetry.js +27 -0
- package/dist/icons/components/UiLogoOpentelemetry.js.map +1 -0
- package/dist/icons/components/UiLogoPostgres.cjs +29 -0
- package/dist/icons/components/UiLogoPostgres.cjs.map +1 -0
- package/dist/icons/components/UiLogoPostgres.d.ts +9 -0
- package/dist/icons/components/UiLogoPostgres.d.ts.map +1 -0
- package/dist/icons/components/UiLogoPostgres.js +27 -0
- package/dist/icons/components/UiLogoPostgres.js.map +1 -0
- package/dist/icons/components/UiLogoSqlite.cjs +29 -0
- package/dist/icons/components/UiLogoSqlite.cjs.map +1 -0
- package/dist/icons/components/UiLogoSqlite.d.ts +9 -0
- package/dist/icons/components/UiLogoSqlite.d.ts.map +1 -0
- package/dist/icons/components/UiLogoSqlite.js +27 -0
- package/dist/icons/components/UiLogoSqlite.js.map +1 -0
- package/dist/icons/components/UiWebLink.cjs +40 -0
- package/dist/icons/components/UiWebLink.cjs.map +1 -0
- package/dist/icons/components/UiWebLink.d.ts +9 -0
- package/dist/icons/components/UiWebLink.d.ts.map +1 -0
- package/dist/icons/components/UiWebLink.js +38 -0
- package/dist/icons/components/UiWebLink.js.map +1 -0
- package/dist/icons/index.d.ts +16 -0
- package/dist/icons/index.d.ts.map +1 -1
- package/dist/icons/registry.cjs +32 -0
- package/dist/icons/registry.cjs.map +1 -1
- package/dist/icons/registry.d.ts.map +1 -1
- package/dist/icons/registry.js +32 -0
- package/dist/icons/registry.js.map +1 -1
- package/dist/icons.cjs +32 -0
- package/dist/icons.js +17 -1
- package/dist/index.cjs +38 -5
- package/dist/index.js +23 -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 +126 -38
- package/dist/profiles/editor/profileEditor.cjs.map +1 -1
- package/dist/profiles/editor/profileEditor.d.ts +5 -1
- package/dist/profiles/editor/profileEditor.d.ts.map +1 -1
- package/dist/profiles/editor/profileEditor.js +127 -39
- 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 +93 -0
- package/dist/profiles/editor/profileSaveAsDialog.cjs.map +1 -0
- package/dist/profiles/editor/profileSaveAsDialog.d.ts +17 -0
- package/dist/profiles/editor/profileSaveAsDialog.d.ts.map +1 -0
- package/dist/profiles/editor/profileSaveAsDialog.js +93 -0
- package/dist/profiles/editor/profileSaveAsDialog.js.map +1 -0
- 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 +24 -8
- 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 +25 -9
- 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 +117 -111
- package/dist/rpc/SessionHeader.cjs.map +1 -1
- package/dist/rpc/SessionHeader.d.ts +3 -1
- package/dist/rpc/SessionHeader.d.ts.map +1 -1
- package/dist/rpc/SessionHeader.js +117 -111
- 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 +8944 -8877
- package/dist/runtime/importmap.json +2168 -2129
- 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
|
@@ -4,11 +4,25 @@ const require_UiListDashes = require("../../icons/components/UiListDashes.cjs");
|
|
|
4
4
|
const require_UiListOrdered = require("../../icons/components/UiListOrdered.cjs");
|
|
5
5
|
const require_UiMagicWand = require("../../icons/components/UiMagicWand.cjs");
|
|
6
6
|
const require_UiProhibit = require("../../icons/components/UiProhibit.cjs");
|
|
7
|
+
const require_SegmentedControl = require("../../components/SegmentedControl.cjs");
|
|
7
8
|
const require_profileFieldControls = require("./profileFieldControls.cjs");
|
|
8
9
|
const require_profileFieldIcons = require("./profileFieldIcons.cjs");
|
|
10
|
+
const require_profileFieldPreview = require("./profileFieldPreview.cjs");
|
|
9
11
|
const require_profileWizardModel = require("../wizard/profileWizardModel.cjs");
|
|
12
|
+
let react = require("react");
|
|
10
13
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
11
14
|
// src/profiles/fields/profileFieldFilterEditor.tsx
|
|
15
|
+
var VALUES_SEGMENTS = [{
|
|
16
|
+
id: "lookup",
|
|
17
|
+
label: "Lookup",
|
|
18
|
+
title: "Lookup",
|
|
19
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_UiDatabase.UiDatabase, {})
|
|
20
|
+
}, {
|
|
21
|
+
id: "static",
|
|
22
|
+
label: "Static list",
|
|
23
|
+
title: "Static list",
|
|
24
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_UiListDashes.UiListDashes, {})
|
|
25
|
+
}];
|
|
12
26
|
var FILTER_SEGMENTS = [
|
|
13
27
|
{
|
|
14
28
|
value: "auto",
|
|
@@ -32,11 +46,42 @@ function ProfileFieldFilterEditor({ field, columns, onChange }) {
|
|
|
32
46
|
const enabled = state !== "off" && effectiveKind !== "none";
|
|
33
47
|
const picksFromAList = selectsValues(effectiveKind);
|
|
34
48
|
const supportsMultiple = picksFromAList || effectiveKind === "exact";
|
|
35
|
-
const enumerated = (filter.options?.length ?? 0) > 0;
|
|
36
|
-
const looksUp = picksFromAList && !enumerated && (filter.lookup ?? true);
|
|
37
49
|
const wide = columns === 2 ? "sm:col-span-2" : "";
|
|
50
|
+
const [kept, setKept] = (0, react.useState)({ name: field.name });
|
|
51
|
+
const memory = kept.name === field.name ? kept : { name: field.name };
|
|
52
|
+
const remember = (patch) => setKept({
|
|
53
|
+
...memory,
|
|
54
|
+
...patch
|
|
55
|
+
});
|
|
56
|
+
const mode = (filter.options?.length ?? 0) > 0 ? "static" : memory.chosen ?? (filter.lookup === false ? void 0 : "lookup");
|
|
38
57
|
const set = (patch) => onChange({ filter: require_profileWizardModel.patchColumnFilter(field.filter, patch) });
|
|
58
|
+
const selectMode = (next) => {
|
|
59
|
+
if (next === mode) return;
|
|
60
|
+
if (next === "static") {
|
|
61
|
+
remember({
|
|
62
|
+
chosen: next,
|
|
63
|
+
lookup: filter.lookup,
|
|
64
|
+
limit: filter.limit
|
|
65
|
+
});
|
|
66
|
+
set({
|
|
67
|
+
options: memory.options,
|
|
68
|
+
lookup: void 0,
|
|
69
|
+
limit: void 0
|
|
70
|
+
});
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
remember({
|
|
74
|
+
chosen: next,
|
|
75
|
+
options: filter.options
|
|
76
|
+
});
|
|
77
|
+
set({
|
|
78
|
+
options: void 0,
|
|
79
|
+
lookup: memory.lookup === false ? void 0 : memory.lookup,
|
|
80
|
+
limit: memory.limit
|
|
81
|
+
});
|
|
82
|
+
};
|
|
39
83
|
const selectState = (next) => {
|
|
84
|
+
setKept({ name: field.name });
|
|
40
85
|
if (next === "off") {
|
|
41
86
|
set({
|
|
42
87
|
disabled: true,
|
|
@@ -53,90 +98,80 @@ function ProfileFieldFilterEditor({ field, columns, onChange }) {
|
|
|
53
98
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
|
|
54
99
|
className: `grid gap-4 ${wide}`,
|
|
55
100
|
"aria-label": "Filtering",
|
|
56
|
-
children: [
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
101
|
+
children: [
|
|
102
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
103
|
+
className: "grid gap-1.5",
|
|
104
|
+
children: [
|
|
105
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
106
|
+
className: "text-sm font-medium",
|
|
107
|
+
children: "Filter type"
|
|
108
|
+
}),
|
|
109
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_SegmentedControl.SegmentedControl, {
|
|
110
|
+
"aria-label": "Filter type",
|
|
111
|
+
size: "sm",
|
|
112
|
+
wrap: true,
|
|
113
|
+
value: state,
|
|
114
|
+
onChange: selectState,
|
|
115
|
+
options: FILTER_SEGMENTS.map((segment) => ({
|
|
116
|
+
id: segment.value,
|
|
117
|
+
label: segment.label,
|
|
70
118
|
title: segment.label,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
onChange: () => selectState(segment.value)
|
|
81
|
-
}),
|
|
82
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
83
|
-
className: "text-[15px]",
|
|
84
|
-
children: segment.icon
|
|
85
|
-
}),
|
|
86
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: segment.label })
|
|
87
|
-
]
|
|
88
|
-
}, segment.value);
|
|
89
|
-
})
|
|
90
|
-
}),
|
|
91
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
92
|
-
className: "text-xs text-muted-foreground",
|
|
93
|
-
children: "Auto derives the control from the data type; choose a type to override it."
|
|
94
|
-
})
|
|
95
|
-
]
|
|
96
|
-
}), enabled ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
97
|
-
className: `grid gap-4 ${columns === 2 ? "sm:grid-cols-2" : ""}`,
|
|
98
|
-
children: [
|
|
99
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_profileFieldControls.EditorField, {
|
|
100
|
-
label: "Backend field",
|
|
101
|
-
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_UiDatabase.UiDatabase, {}),
|
|
102
|
-
help: "The indexed field for a document store, or the result column for SQL; blank infers it from the column.",
|
|
103
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
104
|
-
"aria-label": "Backend field",
|
|
105
|
-
value: filter.field ?? "",
|
|
106
|
-
className: require_profileFieldControls.inputClassName,
|
|
107
|
-
placeholder: field.source || field.name,
|
|
108
|
-
onChange: (event) => set({ field: event.target.value || void 0 })
|
|
119
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
120
|
+
className: "inline-flex text-[15px]",
|
|
121
|
+
children: segment.icon
|
|
122
|
+
})
|
|
123
|
+
}))
|
|
124
|
+
}),
|
|
125
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
126
|
+
className: "text-xs text-muted-foreground",
|
|
127
|
+
children: "Auto derives the control from the data type; choose a type to override it."
|
|
109
128
|
})
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
129
|
+
]
|
|
130
|
+
}),
|
|
131
|
+
enabled && (picksFromAList || supportsMultiple) ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
132
|
+
className: `grid gap-4 ${columns === 2 ? "sm:grid-cols-2" : ""}`,
|
|
133
|
+
children: [picksFromAList ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
134
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
135
|
+
className: `grid gap-1.5 ${wide}`,
|
|
136
|
+
children: [
|
|
137
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
138
|
+
className: "text-sm font-medium",
|
|
139
|
+
children: "Values from"
|
|
140
|
+
}),
|
|
141
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_SegmentedControl.SegmentedControl, {
|
|
142
|
+
"aria-label": "Values from",
|
|
143
|
+
size: "sm",
|
|
144
|
+
value: mode ?? "typed",
|
|
145
|
+
onChange: (target) => {
|
|
146
|
+
if (target !== "typed") selectMode(target);
|
|
147
|
+
},
|
|
148
|
+
options: VALUES_SEGMENTS
|
|
149
|
+
}),
|
|
150
|
+
mode === void 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
151
|
+
className: "text-xs text-muted-foreground",
|
|
152
|
+
children: "Values are typed rather than picked (lookup is off). Choose Lookup or Static list."
|
|
153
|
+
}) : null
|
|
154
|
+
]
|
|
155
|
+
}),
|
|
156
|
+
mode === "static" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
113
157
|
className: wide,
|
|
114
158
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_profileFieldControls.EditorField, {
|
|
115
159
|
label: "Values",
|
|
116
160
|
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_UiListDashes.UiListDashes, {}),
|
|
117
|
-
help: "Comma-separated values
|
|
161
|
+
help: "Comma-separated values the control offers; the backend is not asked.",
|
|
118
162
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
119
163
|
"aria-label": "Values",
|
|
120
164
|
value: (filter.options ?? []).join(", "),
|
|
121
165
|
className: require_profileFieldControls.inputClassName,
|
|
122
|
-
placeholder: "
|
|
123
|
-
onChange: (event) =>
|
|
166
|
+
placeholder: "prod, staging, dev",
|
|
167
|
+
onChange: (event) => {
|
|
168
|
+
remember({ chosen: "static" });
|
|
169
|
+
set({ options: parseFilterOptions(event.target.value) });
|
|
170
|
+
}
|
|
124
171
|
})
|
|
125
172
|
})
|
|
126
|
-
}),
|
|
127
|
-
/* @__PURE__ */ (0, react_jsx_runtime.
|
|
128
|
-
className: "flex items-center gap-2 text-sm font-medium",
|
|
129
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
130
|
-
type: "checkbox",
|
|
131
|
-
checked: looksUp,
|
|
132
|
-
disabled: enumerated,
|
|
133
|
-
onChange: (event) => set({ lookup: event.target.checked })
|
|
134
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
135
|
-
className: enumerated ? "text-muted-foreground" : void 0,
|
|
136
|
-
children: enumerated ? "Values are listed above" : "Look values up from the data"
|
|
137
|
-
})]
|
|
138
|
-
}),
|
|
139
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_profileFieldControls.EditorField, {
|
|
173
|
+
}) : null,
|
|
174
|
+
mode === "lookup" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_profileFieldControls.EditorField, {
|
|
140
175
|
label: "Values offered",
|
|
141
176
|
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_UiListOrdered.UiListOrdered, {}),
|
|
142
177
|
help: `How many distinct values the control lists before the rest have to be typed. Blank uses 50.`,
|
|
@@ -146,14 +181,12 @@ function ProfileFieldFilterEditor({ field, columns, onChange }) {
|
|
|
146
181
|
min: 1,
|
|
147
182
|
max: 200,
|
|
148
183
|
value: filter.limit ?? "",
|
|
149
|
-
disabled: !looksUp,
|
|
150
184
|
className: require_profileFieldControls.inputClassName,
|
|
151
185
|
placeholder: String(50),
|
|
152
186
|
onChange: (event) => set({ limit: event.target.value ? Number(event.target.value) : void 0 })
|
|
153
187
|
})
|
|
154
|
-
})
|
|
155
|
-
] }) : null,
|
|
156
|
-
supportsMultiple ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
188
|
+
}) : null
|
|
189
|
+
] }) : null, supportsMultiple ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
157
190
|
className: "flex items-center gap-2 text-sm font-medium",
|
|
158
191
|
children: [
|
|
159
192
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
@@ -164,9 +197,10 @@ function ProfileFieldFilterEditor({ field, columns, onChange }) {
|
|
|
164
197
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_UiListChecks.UiListChecks, { className: "text-[15px] text-muted-foreground" }),
|
|
165
198
|
"Allow several values at once"
|
|
166
199
|
]
|
|
167
|
-
}) : null
|
|
168
|
-
|
|
169
|
-
|
|
200
|
+
}) : null]
|
|
201
|
+
}) : null,
|
|
202
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_profileFieldPreview.ProfileFieldFilterPreview, { field })
|
|
203
|
+
]
|
|
170
204
|
});
|
|
171
205
|
}
|
|
172
206
|
/** Whether kind picks values from a list — values, or the patterns a value
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profileFieldFilterEditor.cjs","names":["UiMagicWand","UiProhibit","PROFILE_FILTER_KIND_OPTIONS","profileFilterKindIcon","inferredFilterKind","patchColumnFilter","EditorField","UiDatabase","inputClassName","_Fragment","UiListDashes","UiListOrdered","UiListChecks"],"sources":["../../../src/profiles/fields/profileFieldFilterEditor.tsx"],"sourcesContent":["import {\n UiDatabase,\n UiListChecks,\n UiListDashes,\n UiListOrdered,\n UiMagicWand,\n UiProhibit,\n} from \"../../icons\";\nimport { EditorField, inputClassName } from \"./profileFieldControls\";\nimport { profileFilterKindIcon } from \"./profileFieldIcons\";\nimport {\n inferredFilterKind,\n patchColumnFilter,\n PROFILE_FILTER_DEFAULT_LIMIT,\n PROFILE_FILTER_KIND_OPTIONS,\n PROFILE_FILTER_MAX_LIMIT,\n type Patch,\n type ProfileColumn,\n type ProfileColumnFilter,\n} from \"../wizard/profileWizardModel\";\n\ntype FilterState = \"auto\" | \"off\" | string;\n\nconst FILTER_SEGMENTS = [\n { value: \"auto\", label: \"Auto\", icon: <UiMagicWand /> },\n { value: \"off\", label: \"Off\", icon: <UiProhibit /> },\n ...PROFILE_FILTER_KIND_OPTIONS.filter(\n (option) => option.value !== \"none\",\n ).map((option) => ({\n ...option,\n icon: profileFilterKindIcon(option.value),\n })),\n] as const;\n\nexport function ProfileFieldFilterEditor({\n field,\n columns,\n onChange,\n}: {\n field: ProfileColumn;\n columns: 1 | 2;\n onChange: (patch: Patch<ProfileColumn>) => void;\n}) {\n const filter = field.filter ?? {};\n const state: FilterState =\n filter.disabled || filter.kind === \"none\" ? \"off\" : filter.kind || \"auto\";\n const effectiveKind = state === \"auto\" ? inferredFilterKind(field) : state;\n const enabled = state !== \"off\" && effectiveKind !== \"none\";\n const picksFromAList = selectsValues(effectiveKind);\n const supportsMultiple = picksFromAList || effectiveKind === \"exact\";\n const enumerated = (filter.options?.length ?? 0) > 0;\n const looksUp = picksFromAList && !enumerated && (filter.lookup ?? true);\n const wide = columns === 2 ? \"sm:col-span-2\" : \"\";\n\n const set = (patch: Patch<ProfileColumnFilter>) =>\n onChange({ filter: patchColumnFilter(field.filter, patch) });\n const selectState = (next: FilterState) => {\n if (next === \"off\") {\n set({\n disabled: true,\n kind: filter.kind === \"none\" ? undefined : filter.kind,\n });\n return;\n }\n const kind = next === \"auto\" ? inferredFilterKind(field) : next;\n const selected = patchColumnFilter(filter, {\n disabled: undefined,\n kind: next === \"auto\" ? undefined : next,\n });\n onChange({ filter: filterForKind(selected, kind) });\n };\n\n return (\n <section className={`grid gap-4 ${wide}`} aria-label=\"Filtering\">\n <div className=\"grid gap-1.5\">\n <span className=\"text-sm font-medium\">Filter type</span>\n <div\n role=\"radiogroup\"\n aria-label=\"Filter type\"\n className=\"flex flex-wrap gap-1 rounded-md border bg-muted/30 p-1\"\n >\n {FILTER_SEGMENTS.map((segment) => {\n const selected = state === segment.value;\n return (\n <label\n key={segment.value}\n title={segment.label}\n className={`flex h-9 cursor-pointer items-center gap-1.5 rounded px-2 text-xs transition-colors focus-within:ring-2 focus-within:ring-primary/30 ${\n selected\n ? \"bg-background font-medium text-foreground shadow-sm\"\n : \"text-muted-foreground hover:bg-background/70 hover:text-foreground\"\n }`}\n >\n <input\n type=\"radio\"\n name={`filter-type-${field.name}`}\n value={segment.value}\n checked={selected}\n aria-label={segment.label}\n className=\"sr-only\"\n onChange={() => selectState(segment.value)}\n />\n <span className=\"text-[15px]\">{segment.icon}</span>\n <span>{segment.label}</span>\n </label>\n );\n })}\n </div>\n <span className=\"text-xs text-muted-foreground\">\n Auto derives the control from the data type; choose a type to override it.\n </span>\n </div>\n\n {enabled ? (\n <div className={`grid gap-4 ${columns === 2 ? \"sm:grid-cols-2\" : \"\"}`}>\n <EditorField\n label=\"Backend field\"\n icon={<UiDatabase />}\n help=\"The indexed field for a document store, or the result column for SQL; blank infers it from the column.\"\n >\n <input\n aria-label=\"Backend field\"\n value={filter.field ?? \"\"}\n className={inputClassName}\n placeholder={field.source || field.name}\n onChange={(event) =>\n set({ field: event.target.value || undefined })\n }\n />\n </EditorField>\n {picksFromAList ? (\n <>\n <div className={wide}>\n <EditorField\n label=\"Values\"\n icon={<UiListDashes />}\n help=\"Comma-separated values to offer instead of asking the backend; leave blank to enumerate from the data.\"\n >\n <input\n aria-label=\"Values\"\n value={(filter.options ?? []).join(\", \")}\n className={inputClassName}\n placeholder=\"Ask the backend\"\n onChange={(event) =>\n set({ options: parseFilterOptions(event.target.value) })\n }\n />\n </EditorField>\n </div>\n <label className=\"flex items-center gap-2 text-sm font-medium\">\n <input\n type=\"checkbox\"\n checked={looksUp}\n disabled={enumerated}\n onChange={(event) => set({ lookup: event.target.checked })}\n />\n <span\n className={enumerated ? \"text-muted-foreground\" : undefined}\n >\n {enumerated\n ? \"Values are listed above\"\n : \"Look values up from the data\"}\n </span>\n </label>\n <EditorField\n label=\"Values offered\"\n icon={<UiListOrdered />}\n help={`How many distinct values the control lists before the rest have to be typed. Blank uses ${PROFILE_FILTER_DEFAULT_LIMIT}.`}\n >\n <input\n aria-label=\"Values offered\"\n type=\"number\"\n min={1}\n max={PROFILE_FILTER_MAX_LIMIT}\n value={filter.limit ?? \"\"}\n disabled={!looksUp}\n className={inputClassName}\n placeholder={String(PROFILE_FILTER_DEFAULT_LIMIT)}\n onChange={(event) =>\n set({\n limit: event.target.value\n ? Number(event.target.value)\n : undefined,\n })\n }\n />\n </EditorField>\n </>\n ) : null}\n {supportsMultiple ? (\n <label className=\"flex items-center gap-2 text-sm font-medium\">\n <input\n type=\"checkbox\"\n checked={filter.multi ?? true}\n onChange={(event) => set({ multi: event.target.checked })}\n />\n <UiListChecks className=\"text-[15px] text-muted-foreground\" />\n Allow several values at once\n </label>\n ) : null}\n </div>\n ) : null}\n </section>\n );\n}\n\n/** Whether kind picks values from a list — values, or the patterns a value\n * matches — and so takes options, a lookup and several values at once.\n * Mirrors query.ColumnFilterKind.selectsValues. */\nfunction selectsValues(kind: string): boolean {\n return kind === \"terms\" || kind === \"match\";\n}\n\nfunction filterForKind(\n filter: ProfileColumnFilter | undefined,\n kind: string,\n): ProfileColumnFilter | undefined {\n if (selectsValues(kind)) return filter;\n if (kind === \"exact\") {\n return patchColumnFilter(filter, {\n options: undefined,\n lookup: undefined,\n limit: undefined,\n });\n }\n return patchColumnFilter(filter, {\n options: undefined,\n lookup: undefined,\n limit: undefined,\n multi: undefined,\n });\n}\n\nfunction parseFilterOptions(raw: string): string[] | undefined {\n const values = raw\n .split(\",\")\n .map((value) => value.trim())\n .filter(Boolean);\n return values.length ? values : undefined;\n}\n"],"mappings":";;;;;;;;;;;AAuBA,IAAM,kBAAkB;CACtB;EAAE,OAAO;EAAQ,OAAO;EAAQ,MAAM,iBAAA,GAAA,kBAAA,IAAA,CAACA,oBAAAA,aAAD,CAAc,CAAA;CAAE;CACtD;EAAE,OAAO;EAAO,OAAO;EAAO,MAAM,iBAAA,GAAA,kBAAA,IAAA,CAACC,mBAAAA,YAAD,CAAa,CAAA;CAAE;CACnD,GAAGC,2BAAAA,4BAA4B,QAC5B,WAAW,OAAO,UAAU,MAC/B,CAAC,CAAC,KAAK,YAAY;EACjB,GAAG;EACH,MAAMC,0BAAAA,sBAAsB,OAAO,KAAK;CAC1C,EAAE;AACJ;AAEA,SAAgB,yBAAyB,EACvC,OACA,SACA,YAKC;CACD,MAAM,SAAS,MAAM,UAAU,CAAC;CAChC,MAAM,QACJ,OAAO,YAAY,OAAO,SAAS,SAAS,QAAQ,OAAO,QAAQ;CACrE,MAAM,gBAAgB,UAAU,SAASC,2BAAAA,mBA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AM,OAAO,QAAQ,CAAC;MACzD,CAAA;MACD,iBAAA,GAAA,kBAAA,IAAA,CAACI,qBAAAA,cAAD,EAAc,WAAU,oCAAqC,CAAA;MAAC;KAEzD;IACL,CAAA,IAAA;GACD;EACH,CAAA,IAAA,IACG;;AAEb;;;;AAKA,SAAS,cAAc,MAAuB;CAC5C,OAAO,SAAS,WAAW,SAAS;AACtC;AAEA,SAAS,cACP,QACA,MACiC;CACjC,IAAI,cAAc,IAAI,GAAG,OAAO;CAChC,IAAI,SAAS,SACX,OAAOP,2BAAAA,kBAAkB,QAAQ;EAC/B,SAAS,KAAA;EACT,QAAQ,KAAA;EACR,OAAO,KAAA;CACT,CAAC;CAEH,OAAOA,2BAAAA,kBAAkB,QAAQ;EAC/B,SAAS,KAAA;EACT,QAAQ,KAAA;EACR,OAAO,KAAA;EACP,OAAO,KAAA;CACT,CAAC;AACH;AAEA,SAAS,mBAAmB,KAAmC;CAC7D,MAAM,SAAS,IACZ,MAAM,GAAG,CAAC,CACV,KAAK,UAAU,MAAM,KAAK,CAAC,CAAC,CAC5B,OAAO,OAAO;CACjB,OAAO,OAAO,SAAS,SAAS,KAAA;AAClC"}
|
|
1
|
+
{"version":3,"file":"profileFieldFilterEditor.cjs","names":["UiDatabase","UiListDashes","UiMagicWand","UiProhibit","PROFILE_FILTER_KIND_OPTIONS","profileFilterKindIcon","inferredFilterKind","useState","patchColumnFilter","SegmentedControl","_Fragment","EditorField","inputClassName","UiListOrdered","UiListChecks","ProfileFieldFilterPreview"],"sources":["../../../src/profiles/fields/profileFieldFilterEditor.tsx"],"sourcesContent":["import { useState } from \"react\";\nimport {\n UiDatabase,\n UiListChecks,\n UiListDashes,\n UiListOrdered,\n UiMagicWand,\n UiProhibit,\n} from \"../../icons\";\nimport {\n SegmentedControl,\n type SegmentedOption,\n} from \"../../components/SegmentedControl\";\nimport { EditorField, inputClassName } from \"./profileFieldControls\";\nimport { profileFilterKindIcon } from \"./profileFieldIcons\";\nimport { ProfileFieldFilterPreview } from \"./profileFieldPreview\";\nimport {\n inferredFilterKind,\n patchColumnFilter,\n PROFILE_FILTER_DEFAULT_LIMIT,\n PROFILE_FILTER_KIND_OPTIONS,\n PROFILE_FILTER_MAX_LIMIT,\n type Patch,\n type ProfileColumn,\n type ProfileColumnFilter,\n} from \"../wizard/profileWizardModel\";\n\ntype FilterState = \"auto\" | \"off\" | string;\n\ntype ValuesMode = \"lookup\" | \"static\";\n\n/** What the values-source choice remembers for one field: the mode chosen, and\n * the settings of the mode that is not in the draft. */\ntype ValuesMemory = {\n name: string;\n chosen?: ValuesMode;\n options?: string[] | undefined;\n lookup?: boolean | undefined;\n limit?: number | undefined;\n};\n\nconst VALUES_SEGMENTS = [\n { id: \"lookup\", label: \"Lookup\", title: \"Lookup\", icon: <UiDatabase /> },\n { id: \"static\", label: \"Static list\", title: \"Static list\", icon: <UiListDashes /> },\n] satisfies SegmentedOption<ValuesMode>[];\n\nconst FILTER_SEGMENTS = [\n { value: \"auto\", label: \"Auto\", icon: <UiMagicWand /> },\n { value: \"off\", label: \"Off\", icon: <UiProhibit /> },\n ...PROFILE_FILTER_KIND_OPTIONS.filter(\n (option) => option.value !== \"none\",\n ).map((option) => ({\n ...option,\n icon: profileFilterKindIcon(option.value),\n })),\n] as const;\n\nexport function ProfileFieldFilterEditor({\n field,\n columns,\n onChange,\n}: {\n field: ProfileColumn;\n columns: 1 | 2;\n onChange: (patch: Patch<ProfileColumn>) => void;\n}) {\n const filter = field.filter ?? {};\n const state: FilterState =\n filter.disabled || filter.kind === \"none\" ? \"off\" : filter.kind || \"auto\";\n const effectiveKind = state === \"auto\" ? inferredFilterKind(field) : state;\n const enabled = state !== \"off\" && effectiveKind !== \"none\";\n const picksFromAList = selectsValues(effectiveKind);\n const supportsMultiple = picksFromAList || effectiveKind === \"exact\";\n const wide = columns === 2 ? \"sm:col-span-2\" : \"\";\n\n // Where the values come from is exactly one of two things, and the draft only\n // ever carries the chosen one: listed options make the server stop asking the\n // backend (so a lookup or limit beside them would do nothing), and no options\n // means it asks. What the author chose but the draft cannot hold yet — Static\n // list with no values typed — and the other mode's settings are kept here, for\n // this field, so switching back restores them. They do not survive selecting\n // another field.\n const [kept, setKept] = useState<ValuesMemory>({ name: field.name });\n const memory = kept.name === field.name ? kept : { name: field.name };\n const remember = (patch: Partial<ValuesMemory>) =>\n setKept({ ...memory, ...patch });\n const mode: ValuesMode | undefined =\n (filter.options?.length ?? 0) > 0\n ? \"static\"\n : (memory.chosen ?? (filter.lookup === false ? undefined : \"lookup\"));\n\n const set = (patch: Patch<ProfileColumnFilter>) =>\n onChange({ filter: patchColumnFilter(field.filter, patch) });\n const selectMode = (next: ValuesMode) => {\n if (next === mode) return;\n if (next === \"static\") {\n remember({ chosen: next, lookup: filter.lookup, limit: filter.limit });\n set({ options: memory.options, lookup: undefined, limit: undefined });\n return;\n }\n remember({ chosen: next, options: filter.options });\n // Lookup off is neither mode, so choosing Lookup is what clears it.\n set({\n options: undefined,\n lookup: memory.lookup === false ? undefined : memory.lookup,\n limit: memory.limit,\n });\n };\n const selectState = (next: FilterState) => {\n setKept({ name: field.name });\n if (next === \"off\") {\n set({\n disabled: true,\n kind: filter.kind === \"none\" ? undefined : filter.kind,\n });\n return;\n }\n const kind = next === \"auto\" ? inferredFilterKind(field) : next;\n const selected = patchColumnFilter(filter, {\n disabled: undefined,\n kind: next === \"auto\" ? undefined : next,\n });\n onChange({ filter: filterForKind(selected, kind) });\n };\n\n return (\n <section className={`grid gap-4 ${wide}`} aria-label=\"Filtering\">\n <div className=\"grid gap-1.5\">\n <span className=\"text-sm font-medium\">Filter type</span>\n <SegmentedControl\n aria-label=\"Filter type\"\n size=\"sm\"\n wrap\n value={state}\n onChange={selectState}\n options={FILTER_SEGMENTS.map((segment) => ({\n id: segment.value,\n label: segment.label,\n title: segment.label,\n icon: <span className=\"inline-flex text-[15px]\">{segment.icon}</span>,\n }))}\n />\n <span className=\"text-xs text-muted-foreground\">\n Auto derives the control from the data type; choose a type to override it.\n </span>\n </div>\n\n {enabled && (picksFromAList || supportsMultiple) ? (\n <div className={`grid gap-4 ${columns === 2 ? \"sm:grid-cols-2\" : \"\"}`}>\n {picksFromAList ? (\n <>\n <div className={`grid gap-1.5 ${wide}`}>\n <span className=\"text-sm font-medium\">Values from</span>\n <SegmentedControl<ValuesMode | \"typed\">\n aria-label=\"Values from\"\n size=\"sm\"\n // \"typed\" matches no segment: lookup is off and nothing is\n // listed, which is neither mode, so none is selected for it.\n value={mode ?? \"typed\"}\n onChange={(target) => {\n if (target !== \"typed\") selectMode(target);\n }}\n options={VALUES_SEGMENTS}\n />\n {mode === undefined ? (\n <span className=\"text-xs text-muted-foreground\">\n Values are typed rather than picked (lookup is off). Choose\n Lookup or Static list.\n </span>\n ) : null}\n </div>\n {mode === \"static\" ? (\n <div className={wide}>\n <EditorField\n label=\"Values\"\n icon={<UiListDashes />}\n help=\"Comma-separated values the control offers; the backend is not asked.\"\n >\n <input\n aria-label=\"Values\"\n value={(filter.options ?? []).join(\", \")}\n className={inputClassName}\n placeholder=\"prod, staging, dev\"\n onChange={(event) => {\n remember({ chosen: \"static\" });\n set({ options: parseFilterOptions(event.target.value) });\n }}\n />\n </EditorField>\n </div>\n ) : null}\n {mode === \"lookup\" ? (\n <EditorField\n label=\"Values offered\"\n icon={<UiListOrdered />}\n help={`How many distinct values the control lists before the rest have to be typed. Blank uses ${PROFILE_FILTER_DEFAULT_LIMIT}.`}\n >\n <input\n aria-label=\"Values offered\"\n type=\"number\"\n min={1}\n max={PROFILE_FILTER_MAX_LIMIT}\n value={filter.limit ?? \"\"}\n className={inputClassName}\n placeholder={String(PROFILE_FILTER_DEFAULT_LIMIT)}\n onChange={(event) =>\n set({\n limit: event.target.value\n ? Number(event.target.value)\n : undefined,\n })\n }\n />\n </EditorField>\n ) : null}\n </>\n ) : null}\n {supportsMultiple ? (\n <label className=\"flex items-center gap-2 text-sm font-medium\">\n <input\n type=\"checkbox\"\n checked={filter.multi ?? true}\n onChange={(event) => set({ multi: event.target.checked })}\n />\n <UiListChecks className=\"text-[15px] text-muted-foreground\" />\n Allow several values at once\n </label>\n ) : null}\n </div>\n ) : null}\n <ProfileFieldFilterPreview field={field} />\n </section>\n );\n}\n\n/** Whether kind picks values from a list — values, or the patterns a value\n * matches — and so takes options, a lookup and several values at once.\n * Mirrors query.ColumnFilterKind.selectsValues. */\nfunction selectsValues(kind: string): boolean {\n return kind === \"terms\" || kind === \"match\";\n}\n\nfunction filterForKind(\n filter: ProfileColumnFilter | undefined,\n kind: string,\n): ProfileColumnFilter | undefined {\n if (selectsValues(kind)) return filter;\n if (kind === \"exact\") {\n return patchColumnFilter(filter, {\n options: undefined,\n lookup: undefined,\n limit: undefined,\n });\n }\n return patchColumnFilter(filter, {\n options: undefined,\n lookup: undefined,\n limit: undefined,\n multi: undefined,\n });\n}\n\nfunction parseFilterOptions(raw: string): string[] | undefined {\n const values = raw\n .split(\",\")\n .map((value) => value.trim())\n .filter(Boolean);\n return values.length ? values : undefined;\n}\n"],"mappings":";;;;;;;;;;;;;;AAyCA,IAAM,kBAAkB,CACtB;CAAE,IAAI;CAAU,OAAO;CAAU,OAAO;CAAU,MAAM,iBAAA,GAAA,kBAAA,IAAA,CAACA,mBAAAA,YAAD,CAAa,CAAA;AAAE,GACvE;CAAE,IAAI;CAAU,OAAO;CAAe,OAAO;CAAe,MAAM,iBAAA,GAAA,kBAAA,IAAA,CAACC,qBAAAA,cAAD,CAAe,CAAA;AAAE,CACrF;AAEA,IAAM,kBAAkB;CACtB;EAAE,OAAO;EAAQ,OAAO;EAAQ,MAAM,iBAAA,GAAA,kBAAA,IAAA,CAACC,oBAAAA,aAAD,CAAc,CAAA;CAAE;CACtD;EAAE,OAAO;EAAO,OAAO;EAAO,MAAM,iBAAA,GAAA,kBAAA,IAAA,CAACC,mBAAAA,YAAD,CAAa,CAAA;CAAE;CACnD,GAAGC,2BAAAA,4BAA4B,QAC5B,WAAW,OAAO,UAAU,MAC/B,CAAC,CAAC,KAAK,YAAY;E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1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profileFieldFilterEditor.d.ts","sourceRoot":"","sources":["../../../src/profiles/fields/profileFieldFilterEditor.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"profileFieldFilterEditor.d.ts","sourceRoot":"","sources":["../../../src/profiles/fields/profileFieldFilterEditor.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAML,KAAK,KAAK,EACV,KAAK,aAAa,EAEnB,MAAM,8BAA8B,CAAC;AAgCtC,wBAAgB,wBAAwB,CAAC,EACvC,KAAK,EACL,OAAO,EACP,QAAQ,GACT,EAAE;IACD,KAAK,EAAE,aAAa,CAAC;IACrB,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;IACf,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC;CACjD,+BAwKA"}
|
|
@@ -4,11 +4,25 @@ import { UiListDashes } from "../../icons/components/UiListDashes.js";
|
|
|
4
4
|
import { UiListOrdered } from "../../icons/components/UiListOrdered.js";
|
|
5
5
|
import { UiMagicWand } from "../../icons/components/UiMagicWand.js";
|
|
6
6
|
import { UiProhibit } from "../../icons/components/UiProhibit.js";
|
|
7
|
+
import { SegmentedControl } from "../../components/SegmentedControl.js";
|
|
7
8
|
import { EditorField, inputClassName } from "./profileFieldControls.js";
|
|
8
9
|
import { profileFilterKindIcon } from "./profileFieldIcons.js";
|
|
10
|
+
import { ProfileFieldFilterPreview } from "./profileFieldPreview.js";
|
|
9
11
|
import { PROFILE_FILTER_KIND_OPTIONS, inferredFilterKind, patchColumnFilter } from "../wizard/profileWizardModel.js";
|
|
10
|
-
import {
|
|
12
|
+
import { useState } from "react";
|
|
13
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
11
14
|
// src/profiles/fields/profileFieldFilterEditor.tsx
|
|
15
|
+
var VALUES_SEGMENTS = [{
|
|
16
|
+
id: "lookup",
|
|
17
|
+
label: "Lookup",
|
|
18
|
+
title: "Lookup",
|
|
19
|
+
icon: /* @__PURE__ */ jsx(UiDatabase, {})
|
|
20
|
+
}, {
|
|
21
|
+
id: "static",
|
|
22
|
+
label: "Static list",
|
|
23
|
+
title: "Static list",
|
|
24
|
+
icon: /* @__PURE__ */ jsx(UiListDashes, {})
|
|
25
|
+
}];
|
|
12
26
|
var FILTER_SEGMENTS = [
|
|
13
27
|
{
|
|
14
28
|
value: "auto",
|
|
@@ -32,11 +46,42 @@ function ProfileFieldFilterEditor({ field, columns, onChange }) {
|
|
|
32
46
|
const enabled = state !== "off" && effectiveKind !== "none";
|
|
33
47
|
const picksFromAList = selectsValues(effectiveKind);
|
|
34
48
|
const supportsMultiple = picksFromAList || effectiveKind === "exact";
|
|
35
|
-
const enumerated = (filter.options?.length ?? 0) > 0;
|
|
36
|
-
const looksUp = picksFromAList && !enumerated && (filter.lookup ?? true);
|
|
37
49
|
const wide = columns === 2 ? "sm:col-span-2" : "";
|
|
50
|
+
const [kept, setKept] = useState({ name: field.name });
|
|
51
|
+
const memory = kept.name === field.name ? kept : { name: field.name };
|
|
52
|
+
const remember = (patch) => setKept({
|
|
53
|
+
...memory,
|
|
54
|
+
...patch
|
|
55
|
+
});
|
|
56
|
+
const mode = (filter.options?.length ?? 0) > 0 ? "static" : memory.chosen ?? (filter.lookup === false ? void 0 : "lookup");
|
|
38
57
|
const set = (patch) => onChange({ filter: patchColumnFilter(field.filter, patch) });
|
|
58
|
+
const selectMode = (next) => {
|
|
59
|
+
if (next === mode) return;
|
|
60
|
+
if (next === "static") {
|
|
61
|
+
remember({
|
|
62
|
+
chosen: next,
|
|
63
|
+
lookup: filter.lookup,
|
|
64
|
+
limit: filter.limit
|
|
65
|
+
});
|
|
66
|
+
set({
|
|
67
|
+
options: memory.options,
|
|
68
|
+
lookup: void 0,
|
|
69
|
+
limit: void 0
|
|
70
|
+
});
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
remember({
|
|
74
|
+
chosen: next,
|
|
75
|
+
options: filter.options
|
|
76
|
+
});
|
|
77
|
+
set({
|
|
78
|
+
options: void 0,
|
|
79
|
+
lookup: memory.lookup === false ? void 0 : memory.lookup,
|
|
80
|
+
limit: memory.limit
|
|
81
|
+
});
|
|
82
|
+
};
|
|
39
83
|
const selectState = (next) => {
|
|
84
|
+
setKept({ name: field.name });
|
|
40
85
|
if (next === "off") {
|
|
41
86
|
set({
|
|
42
87
|
disabled: true,
|
|
@@ -53,90 +98,80 @@ function ProfileFieldFilterEditor({ field, columns, onChange }) {
|
|
|
53
98
|
return /* @__PURE__ */ jsxs("section", {
|
|
54
99
|
className: `grid gap-4 ${wide}`,
|
|
55
100
|
"aria-label": "Filtering",
|
|
56
|
-
children: [
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
101
|
+
children: [
|
|
102
|
+
/* @__PURE__ */ jsxs("div", {
|
|
103
|
+
className: "grid gap-1.5",
|
|
104
|
+
children: [
|
|
105
|
+
/* @__PURE__ */ jsx("span", {
|
|
106
|
+
className: "text-sm font-medium",
|
|
107
|
+
children: "Filter type"
|
|
108
|
+
}),
|
|
109
|
+
/* @__PURE__ */ jsx(SegmentedControl, {
|
|
110
|
+
"aria-label": "Filter type",
|
|
111
|
+
size: "sm",
|
|
112
|
+
wrap: true,
|
|
113
|
+
value: state,
|
|
114
|
+
onChange: selectState,
|
|
115
|
+
options: FILTER_SEGMENTS.map((segment) => ({
|
|
116
|
+
id: segment.value,
|
|
117
|
+
label: segment.label,
|
|
70
118
|
title: segment.label,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
onChange: () => selectState(segment.value)
|
|
81
|
-
}),
|
|
82
|
-
/* @__PURE__ */ jsx("span", {
|
|
83
|
-
className: "text-[15px]",
|
|
84
|
-
children: segment.icon
|
|
85
|
-
}),
|
|
86
|
-
/* @__PURE__ */ jsx("span", { children: segment.label })
|
|
87
|
-
]
|
|
88
|
-
}, segment.value);
|
|
89
|
-
})
|
|
90
|
-
}),
|
|
91
|
-
/* @__PURE__ */ jsx("span", {
|
|
92
|
-
className: "text-xs text-muted-foreground",
|
|
93
|
-
children: "Auto derives the control from the data type; choose a type to override it."
|
|
94
|
-
})
|
|
95
|
-
]
|
|
96
|
-
}), enabled ? /* @__PURE__ */ jsxs("div", {
|
|
97
|
-
className: `grid gap-4 ${columns === 2 ? "sm:grid-cols-2" : ""}`,
|
|
98
|
-
children: [
|
|
99
|
-
/* @__PURE__ */ jsx(EditorField, {
|
|
100
|
-
label: "Backend field",
|
|
101
|
-
icon: /* @__PURE__ */ jsx(UiDatabase, {}),
|
|
102
|
-
help: "The indexed field for a document store, or the result column for SQL; blank infers it from the column.",
|
|
103
|
-
children: /* @__PURE__ */ jsx("input", {
|
|
104
|
-
"aria-label": "Backend field",
|
|
105
|
-
value: filter.field ?? "",
|
|
106
|
-
className: inputClassName,
|
|
107
|
-
placeholder: field.source || field.name,
|
|
108
|
-
onChange: (event) => set({ field: event.target.value || void 0 })
|
|
119
|
+
icon: /* @__PURE__ */ jsx("span", {
|
|
120
|
+
className: "inline-flex text-[15px]",
|
|
121
|
+
children: segment.icon
|
|
122
|
+
})
|
|
123
|
+
}))
|
|
124
|
+
}),
|
|
125
|
+
/* @__PURE__ */ jsx("span", {
|
|
126
|
+
className: "text-xs text-muted-foreground",
|
|
127
|
+
children: "Auto derives the control from the data type; choose a type to override it."
|
|
109
128
|
})
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
129
|
+
]
|
|
130
|
+
}),
|
|
131
|
+
enabled && (picksFromAList || supportsMultiple) ? /* @__PURE__ */ jsxs("div", {
|
|
132
|
+
className: `grid gap-4 ${columns === 2 ? "sm:grid-cols-2" : ""}`,
|
|
133
|
+
children: [picksFromAList ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
134
|
+
/* @__PURE__ */ jsxs("div", {
|
|
135
|
+
className: `grid gap-1.5 ${wide}`,
|
|
136
|
+
children: [
|
|
137
|
+
/* @__PURE__ */ jsx("span", {
|
|
138
|
+
className: "text-sm font-medium",
|
|
139
|
+
children: "Values from"
|
|
140
|
+
}),
|
|
141
|
+
/* @__PURE__ */ jsx(SegmentedControl, {
|
|
142
|
+
"aria-label": "Values from",
|
|
143
|
+
size: "sm",
|
|
144
|
+
value: mode ?? "typed",
|
|
145
|
+
onChange: (target) => {
|
|
146
|
+
if (target !== "typed") selectMode(target);
|
|
147
|
+
},
|
|
148
|
+
options: VALUES_SEGMENTS
|
|
149
|
+
}),
|
|
150
|
+
mode === void 0 ? /* @__PURE__ */ jsx("span", {
|
|
151
|
+
className: "text-xs text-muted-foreground",
|
|
152
|
+
children: "Values are typed rather than picked (lookup is off). Choose Lookup or Static list."
|
|
153
|
+
}) : null
|
|
154
|
+
]
|
|
155
|
+
}),
|
|
156
|
+
mode === "static" ? /* @__PURE__ */ jsx("div", {
|
|
113
157
|
className: wide,
|
|
114
158
|
children: /* @__PURE__ */ jsx(EditorField, {
|
|
115
159
|
label: "Values",
|
|
116
160
|
icon: /* @__PURE__ */ jsx(UiListDashes, {}),
|
|
117
|
-
help: "Comma-separated values
|
|
161
|
+
help: "Comma-separated values the control offers; the backend is not asked.",
|
|
118
162
|
children: /* @__PURE__ */ jsx("input", {
|
|
119
163
|
"aria-label": "Values",
|
|
120
164
|
value: (filter.options ?? []).join(", "),
|
|
121
165
|
className: inputClassName,
|
|
122
|
-
placeholder: "
|
|
123
|
-
onChange: (event) =>
|
|
166
|
+
placeholder: "prod, staging, dev",
|
|
167
|
+
onChange: (event) => {
|
|
168
|
+
remember({ chosen: "static" });
|
|
169
|
+
set({ options: parseFilterOptions(event.target.value) });
|
|
170
|
+
}
|
|
124
171
|
})
|
|
125
172
|
})
|
|
126
|
-
}),
|
|
127
|
-
/* @__PURE__ */
|
|
128
|
-
className: "flex items-center gap-2 text-sm font-medium",
|
|
129
|
-
children: [/* @__PURE__ */ jsx("input", {
|
|
130
|
-
type: "checkbox",
|
|
131
|
-
checked: looksUp,
|
|
132
|
-
disabled: enumerated,
|
|
133
|
-
onChange: (event) => set({ lookup: event.target.checked })
|
|
134
|
-
}), /* @__PURE__ */ jsx("span", {
|
|
135
|
-
className: enumerated ? "text-muted-foreground" : void 0,
|
|
136
|
-
children: enumerated ? "Values are listed above" : "Look values up from the data"
|
|
137
|
-
})]
|
|
138
|
-
}),
|
|
139
|
-
/* @__PURE__ */ jsx(EditorField, {
|
|
173
|
+
}) : null,
|
|
174
|
+
mode === "lookup" ? /* @__PURE__ */ jsx(EditorField, {
|
|
140
175
|
label: "Values offered",
|
|
141
176
|
icon: /* @__PURE__ */ jsx(UiListOrdered, {}),
|
|
142
177
|
help: `How many distinct values the control lists before the rest have to be typed. Blank uses 50.`,
|
|
@@ -146,14 +181,12 @@ function ProfileFieldFilterEditor({ field, columns, onChange }) {
|
|
|
146
181
|
min: 1,
|
|
147
182
|
max: 200,
|
|
148
183
|
value: filter.limit ?? "",
|
|
149
|
-
disabled: !looksUp,
|
|
150
184
|
className: inputClassName,
|
|
151
185
|
placeholder: String(50),
|
|
152
186
|
onChange: (event) => set({ limit: event.target.value ? Number(event.target.value) : void 0 })
|
|
153
187
|
})
|
|
154
|
-
})
|
|
155
|
-
] }) : null,
|
|
156
|
-
supportsMultiple ? /* @__PURE__ */ jsxs("label", {
|
|
188
|
+
}) : null
|
|
189
|
+
] }) : null, supportsMultiple ? /* @__PURE__ */ jsxs("label", {
|
|
157
190
|
className: "flex items-center gap-2 text-sm font-medium",
|
|
158
191
|
children: [
|
|
159
192
|
/* @__PURE__ */ jsx("input", {
|
|
@@ -164,9 +197,10 @@ function ProfileFieldFilterEditor({ field, columns, onChange }) {
|
|
|
164
197
|
/* @__PURE__ */ jsx(UiListChecks, { className: "text-[15px] text-muted-foreground" }),
|
|
165
198
|
"Allow several values at once"
|
|
166
199
|
]
|
|
167
|
-
}) : null
|
|
168
|
-
|
|
169
|
-
|
|
200
|
+
}) : null]
|
|
201
|
+
}) : null,
|
|
202
|
+
/* @__PURE__ */ jsx(ProfileFieldFilterPreview, { field })
|
|
203
|
+
]
|
|
170
204
|
});
|
|
171
205
|
}
|
|
172
206
|
/** Whether kind picks values from a list — values, or the patterns a value
|