@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
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { fetchJSON } from "../connections/connectionBrowserModel.js";
|
|
2
|
+
import { lookupSamplePath } from "../editor/samplePaths.js";
|
|
3
|
+
import { profileApiPath } from "../profileApi.js";
|
|
4
|
+
import { useEffect, useState } from "react";
|
|
5
|
+
// src/profiles/fields/profileFieldSample.ts
|
|
6
|
+
/** The key the sampled value travels under in the mapping request, so the type
|
|
7
|
+
* column reads it through `source`. */
|
|
8
|
+
var SAMPLE_KEY = "value";
|
|
9
|
+
/** The first sampled value for the field, by output name and then by source. */
|
|
10
|
+
function sampleFieldValue(rows, field) {
|
|
11
|
+
if (rows.length === 0) return {
|
|
12
|
+
status: "none",
|
|
13
|
+
message: "Run a sample to preview this field."
|
|
14
|
+
};
|
|
15
|
+
const [value] = sampledValues(rows, field);
|
|
16
|
+
if (value === void 0) return {
|
|
17
|
+
status: "none",
|
|
18
|
+
message: `The sample has no value for ${field.name || "this field"}: ${explainMissingValue(rows, field)}`
|
|
19
|
+
};
|
|
20
|
+
return {
|
|
21
|
+
status: "found",
|
|
22
|
+
value
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
/** Each sampled row's non-empty value for the field, by output name and then by
|
|
26
|
+
* source. A path is read the way the query engine resolves a column's source
|
|
27
|
+
* (lookupSamplePath): a literal key wins over splitting, so a dotted key inside
|
|
28
|
+
* an unwrapped object is reached as well as a nested document. */
|
|
29
|
+
function sampledValues(rows, field) {
|
|
30
|
+
const keys = [field.name, field.source].filter((key) => Boolean(key));
|
|
31
|
+
return rows.flatMap((row) => {
|
|
32
|
+
for (const key of keys) {
|
|
33
|
+
const found = lookupSamplePath(row, key);
|
|
34
|
+
if (found.found && found.value !== null && found.value !== void 0 && found.value !== "") return [found.value];
|
|
35
|
+
}
|
|
36
|
+
return [];
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
var LISTED_KEYS = 8;
|
|
40
|
+
var isRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
41
|
+
function isKeyValueList(value) {
|
|
42
|
+
return Array.isArray(value) && value.length > 0 && value.every((entry) => isRecord(entry) && typeof entry.key === "string");
|
|
43
|
+
}
|
|
44
|
+
function typeNoun(value) {
|
|
45
|
+
if (value === null) return "null";
|
|
46
|
+
if (Array.isArray(value)) return "a list";
|
|
47
|
+
return `a ${typeof value}`;
|
|
48
|
+
}
|
|
49
|
+
/** Why no sampled row has a value for the field, read from the path the profile
|
|
50
|
+
* actually uses (the source, else the output name): where the path stops and
|
|
51
|
+
* what is there instead. */
|
|
52
|
+
function explainMissingValue(rows, field) {
|
|
53
|
+
const path = field.source || field.name;
|
|
54
|
+
const count = rows.length;
|
|
55
|
+
const present = rows.filter((row) => lookupSamplePath(row, path).found).length;
|
|
56
|
+
if (present === count) return `it is empty in ${count === 1 ? "the 1 sampled row" : `all ${count} sampled rows`}.`;
|
|
57
|
+
if (present > 0) return `it is empty in the ${present} of ${count} sampled rows that carry ${path}, and absent from the rest.`;
|
|
58
|
+
const stop = deepestPrefix(rows, path);
|
|
59
|
+
if (!stop) return `the path ${path} matched nothing in ${count} sampled ${count === 1 ? "row" : "rows"}.`;
|
|
60
|
+
const { head, value } = stop;
|
|
61
|
+
const rest = path.slice(head.length + 1);
|
|
62
|
+
const cannotRead = `so ${rest} cannot be read from it`;
|
|
63
|
+
if (isKeyValueList(value)) return `${head} is a list of {key, value} entries, ${cannotRead}. Add an unwrap rule for ${head} (as key_values) to the provider options, then run the sample again.`;
|
|
64
|
+
if (typeof value === "string") {
|
|
65
|
+
const kind = encodedKind(value);
|
|
66
|
+
if (kind) return `${head} holds JSON text, ${cannotRead}. Add an unwrap rule for ${head} (as ${kind}) to the provider options, then run the sample again.`;
|
|
67
|
+
}
|
|
68
|
+
if (isRecord(value)) {
|
|
69
|
+
const keys = Object.keys(value);
|
|
70
|
+
if (keys.length === 0) return `${head} is an empty object.`;
|
|
71
|
+
return `${head} has no ${rest}. It has ${keys.slice(0, LISTED_KEYS).join(", ")}${keys.length > LISTED_KEYS ? ` and ${keys.length - LISTED_KEYS} more` : ""}.`;
|
|
72
|
+
}
|
|
73
|
+
return `${head} is ${typeNoun(value)}, ${cannotRead}.`;
|
|
74
|
+
}
|
|
75
|
+
/** JSON text decoding to an object or a list: the unwrap rule that would read it. */
|
|
76
|
+
function encodedKind(text) {
|
|
77
|
+
try {
|
|
78
|
+
const decoded = JSON.parse(text);
|
|
79
|
+
if (isKeyValueList(decoded)) return "key_values";
|
|
80
|
+
return typeof decoded === "object" && decoded !== null ? "json" : void 0;
|
|
81
|
+
} catch {
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
/** The longest leading part of the path any row resolves, with what it holds. */
|
|
86
|
+
function deepestPrefix(rows, path) {
|
|
87
|
+
let best;
|
|
88
|
+
for (const row of rows) for (let dot = path.lastIndexOf("."); dot > 0; dot = path.lastIndexOf(".", dot - 1)) {
|
|
89
|
+
const head = path.slice(0, dot);
|
|
90
|
+
if (best && head.length <= best.head.length) break;
|
|
91
|
+
const found = lookupSamplePath(row, head);
|
|
92
|
+
if (found.found) {
|
|
93
|
+
best = {
|
|
94
|
+
head,
|
|
95
|
+
value: found.value
|
|
96
|
+
};
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
return best;
|
|
101
|
+
}
|
|
102
|
+
/** The sampled value as one data type, rendered by the mapping endpoint. */
|
|
103
|
+
function useTypeCell({ type, value, format, unit }) {
|
|
104
|
+
const [state, setState] = useState({ status: "pending" });
|
|
105
|
+
const body = JSON.stringify({
|
|
106
|
+
profile: { columns: [{
|
|
107
|
+
name: type,
|
|
108
|
+
source: SAMPLE_KEY,
|
|
109
|
+
type,
|
|
110
|
+
...format ? { format } : {},
|
|
111
|
+
...unit ? { unit } : {}
|
|
112
|
+
}] },
|
|
113
|
+
rows: [{ [SAMPLE_KEY]: value }]
|
|
114
|
+
});
|
|
115
|
+
useEffect(() => {
|
|
116
|
+
const controller = new AbortController();
|
|
117
|
+
setState({ status: "pending" });
|
|
118
|
+
const timer = setTimeout(() => {
|
|
119
|
+
fetchJSON(profileApiPath("profile/sample/mapping"), {
|
|
120
|
+
method: "POST",
|
|
121
|
+
headers: { "Content-Type": "application/json" },
|
|
122
|
+
body,
|
|
123
|
+
signal: controller.signal
|
|
124
|
+
}).then((result) => {
|
|
125
|
+
if (controller.signal.aborted) return;
|
|
126
|
+
try {
|
|
127
|
+
const document = cellDocument(result.document);
|
|
128
|
+
setState(isEmptyNode(document.node.rows?.[0]?.cells[type]) ? { status: "empty" } : {
|
|
129
|
+
status: "ready",
|
|
130
|
+
document
|
|
131
|
+
});
|
|
132
|
+
} catch (error) {
|
|
133
|
+
setState({
|
|
134
|
+
status: "error",
|
|
135
|
+
message: error instanceof Error ? error.message : String(error)
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
}, (error) => {
|
|
139
|
+
if (controller.signal.aborted) return;
|
|
140
|
+
setState({
|
|
141
|
+
status: "error",
|
|
142
|
+
message: error instanceof Error ? error.message : String(error)
|
|
143
|
+
});
|
|
144
|
+
});
|
|
145
|
+
}, 250);
|
|
146
|
+
return () => {
|
|
147
|
+
clearTimeout(timer);
|
|
148
|
+
controller.abort();
|
|
149
|
+
};
|
|
150
|
+
}, [body, type]);
|
|
151
|
+
return state;
|
|
152
|
+
}
|
|
153
|
+
/** A text node with no text anywhere in it: what the server returns when the
|
|
154
|
+
* value has nothing to show as that type. */
|
|
155
|
+
function isEmptyNode(node) {
|
|
156
|
+
if (!node) return true;
|
|
157
|
+
return node.kind === "text" && !node.text && !node.plain && (node.children ?? []).every(isEmptyNode);
|
|
158
|
+
}
|
|
159
|
+
/** The mapping response's one-cell table, still drawn by the table that would
|
|
160
|
+
* draw it. The option names the type, so the header is left unlabelled and
|
|
161
|
+
* unsortable rather than naming it a second time. */
|
|
162
|
+
function cellDocument(document) {
|
|
163
|
+
const table = document.node;
|
|
164
|
+
const column = table.columns?.[0];
|
|
165
|
+
if (table.kind !== "table" || !column || table.rows?.length !== 1) throw new Error("the mapping preview did not return a one-cell table");
|
|
166
|
+
return {
|
|
167
|
+
...document,
|
|
168
|
+
node: {
|
|
169
|
+
...table,
|
|
170
|
+
columns: [{
|
|
171
|
+
...column,
|
|
172
|
+
label: "",
|
|
173
|
+
sortable: false
|
|
174
|
+
}]
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
export { sampleFieldValue, sampledValues, useTypeCell };
|
|
179
|
+
|
|
180
|
+
//# sourceMappingURL=profileFieldSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profileFieldSample.js","names":[],"sources":["../../../src/profiles/fields/profileFieldSample.ts"],"sourcesContent":["import { useEffect, useState } from \"react\";\nimport type { ClickyDocument, ClickyNode } from \"../../data/Clicky\";\nimport { fetchJSON } from \"../connections/connectionBrowserModel\";\nimport { lookupSamplePath } from \"../editor/samplePaths\";\nimport { profileApiPath } from \"../profileApi\";\nimport type { ProfileColumn } from \"../wizard/profileWizardModel\";\n\n/** The key the sampled value travels under in the mapping request, so the type\n * column reads it through `source`. */\nconst SAMPLE_KEY = \"value\";\n\ntype MappingResponse = { document: ClickyDocument };\n\n/** One data type's answer for the sampled value. */\nexport type TypeCellState =\n | { status: \"pending\" }\n | { status: \"error\"; message: string }\n | { status: \"empty\" }\n | { status: \"ready\"; document: ClickyDocument };\n\n/** The first sampled value for the field, by output name and then by source. */\nexport function sampleFieldValue(\n rows: unknown[],\n field: ProfileColumn,\n): { status: \"found\"; value: unknown } | { status: \"none\"; message: string } {\n if (rows.length === 0) {\n return { status: \"none\", message: \"Run a sample to preview this field.\" };\n }\n const [value] = sampledValues(rows, field);\n if (value === undefined) {\n return {\n status: \"none\",\n message: `The sample has no value for ${field.name || \"this field\"}: ${explainMissingValue(rows, field)}`,\n };\n }\n return { status: \"found\", value };\n}\n\n/** Each sampled row's non-empty value for the field, by output name and then by\n * source. A path is read the way the query engine resolves a column's source\n * (lookupSamplePath): a literal key wins over splitting, so a dotted key inside\n * an unwrapped object is reached as well as a nested document. */\nexport function sampledValues(rows: unknown[], field: ProfileColumn): unknown[] {\n const keys = [field.name, field.source].filter((key): key is string =>\n Boolean(key),\n );\n return rows.flatMap((row) => {\n for (const key of keys) {\n const found = lookupSamplePath(row, key);\n if (found.found && found.value !== null && found.value !== undefined && found.value !== \"\") {\n return [found.value];\n }\n }\n return [];\n });\n}\n\nconst LISTED_KEYS = 8;\n\nconst isRecord = (value: unknown): value is Record<string, unknown> =>\n typeof value === \"object\" && value !== null && !Array.isArray(value);\n\nfunction isKeyValueList(value: unknown): boolean {\n return (\n Array.isArray(value) &&\n value.length > 0 &&\n value.every((entry) => isRecord(entry) && typeof entry.key === \"string\")\n );\n}\n\nfunction typeNoun(value: unknown): string {\n if (value === null) return \"null\";\n if (Array.isArray(value)) return \"a list\";\n return `a ${typeof value}`;\n}\n\n/** Why no sampled row has a value for the field, read from the path the profile\n * actually uses (the source, else the output name): where the path stops and\n * what is there instead. */\nfunction explainMissingValue(rows: unknown[], field: ProfileColumn): string {\n const path = field.source || field.name;\n const count = rows.length;\n const present = rows.filter((row) => lookupSamplePath(row, path).found).length;\n if (present === count) {\n return `it is empty in ${count === 1 ? \"the 1 sampled row\" : `all ${count} sampled rows`}.`;\n }\n if (present > 0) {\n return `it is empty in the ${present} of ${count} sampled rows that carry ${path}, and absent from the rest.`;\n }\n const stop = deepestPrefix(rows, path);\n if (!stop) {\n return `the path ${path} matched nothing in ${count} sampled ${count === 1 ? \"row\" : \"rows\"}.`;\n }\n const { head, value } = stop;\n const rest = path.slice(head.length + 1);\n const cannotRead = `so ${rest} cannot be read from it`;\n if (isKeyValueList(value)) {\n return `${head} is a list of {key, value} entries, ${cannotRead}. Add an unwrap rule for ${head} (as key_values) to the provider options, then run the sample again.`;\n }\n if (typeof value === \"string\") {\n const kind = encodedKind(value);\n if (kind) {\n return `${head} holds JSON text, ${cannotRead}. Add an unwrap rule for ${head} (as ${kind}) to the provider options, then run the sample again.`;\n }\n }\n if (isRecord(value)) {\n const keys = Object.keys(value);\n if (keys.length === 0) return `${head} is an empty object.`;\n const listed = keys.slice(0, LISTED_KEYS).join(\", \");\n const more = keys.length > LISTED_KEYS ? ` and ${keys.length - LISTED_KEYS} more` : \"\";\n return `${head} has no ${rest}. It has ${listed}${more}.`;\n }\n return `${head} is ${typeNoun(value)}, ${cannotRead}.`;\n}\n\n/** JSON text decoding to an object or a list: the unwrap rule that would read it. */\nfunction encodedKind(text: string): \"json\" | \"key_values\" | undefined {\n try {\n const decoded: unknown = JSON.parse(text);\n if (isKeyValueList(decoded)) return \"key_values\";\n return typeof decoded === \"object\" && decoded !== null ? \"json\" : undefined;\n } catch {\n return undefined;\n }\n}\n\n/** The longest leading part of the path any row resolves, with what it holds. */\nfunction deepestPrefix(\n rows: unknown[],\n path: string,\n): { head: string; value: unknown } | undefined {\n let best: { head: string; value: unknown } | undefined;\n for (const row of rows) {\n for (let dot = path.lastIndexOf(\".\"); dot > 0; dot = path.lastIndexOf(\".\", dot - 1)) {\n const head = path.slice(0, dot);\n if (best && head.length <= best.head.length) break;\n const found = lookupSamplePath(row, head);\n if (found.found) {\n best = { head, value: found.value };\n break;\n }\n }\n }\n return best;\n}\n\n/** The sampled value as one data type, rendered by the mapping endpoint. */\nexport function useTypeCell({\n type,\n value,\n format,\n unit,\n}: {\n type: string;\n value: unknown;\n format?: string | undefined;\n unit?: string | undefined;\n}): TypeCellState {\n const [state, setState] = useState<TypeCellState>({ status: \"pending\" });\n const body = JSON.stringify({\n profile: {\n columns: [\n {\n name: type,\n source: SAMPLE_KEY,\n type,\n ...(format ? { format } : {}),\n ...(unit ? { unit } : {}),\n },\n ],\n },\n rows: [{ [SAMPLE_KEY]: value }],\n });\n\n useEffect(() => {\n const controller = new AbortController();\n setState({ status: \"pending\" });\n const timer = setTimeout(() => {\n fetchJSON<MappingResponse>(profileApiPath(\"profile/sample/mapping\"), {\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\" },\n body,\n signal: controller.signal,\n }).then(\n (result) => {\n if (controller.signal.aborted) return;\n try {\n const document = cellDocument(result.document);\n setState(\n isEmptyNode(document.node.rows?.[0]?.cells[type])\n ? { status: \"empty\" }\n : { status: \"ready\", document },\n );\n } catch (error) {\n setState({\n status: \"error\",\n message: error instanceof Error ? error.message : String(error),\n });\n }\n },\n (error: unknown) => {\n if (controller.signal.aborted) return;\n setState({\n status: \"error\",\n message: error instanceof Error ? error.message : String(error),\n });\n },\n );\n }, 250);\n return () => {\n clearTimeout(timer);\n controller.abort();\n };\n }, [body, type]);\n\n return state;\n}\n\n/** A text node with no text anywhere in it: what the server returns when the\n * value has nothing to show as that type. */\nfunction isEmptyNode(node: ClickyNode | undefined): boolean {\n if (!node) return true;\n return (\n node.kind === \"text\" &&\n !node.text &&\n !node.plain &&\n (node.children ?? []).every(isEmptyNode)\n );\n}\n\n/** The mapping response's one-cell table, still drawn by the table that would\n * draw it. The option names the type, so the header is left unlabelled and\n * unsortable rather than naming it a second time. */\nfunction cellDocument(document: ClickyDocument): ClickyDocument {\n const table: ClickyNode = document.node;\n const column = table.columns?.[0];\n if (table.kind !== \"table\" || !column || table.rows?.length !== 1) {\n throw new Error(\"the mapping preview did not return a one-cell table\");\n }\n return {\n ...document,\n node: { ...table, columns: [{ ...column, label: \"\", sortable: false }] },\n };\n}\n"],"mappings":";;;;;;;AASA,IAAM,aAAa;;AAYnB,SAAgB,iBACd,MACA,OAC2E;CAC3E,IAAI,KAAK,WAAW,GAClB,OAAO;EAAE,QAAQ;EAAQ,SAAS;CAAsC;CAE1E,MAAM,CAAC,SAAS,cAAc,MAAM,KAAK;CACzC,IAAI,UAAU,KAAA,GACZ,OAAO;EACL,QAAQ;EACR,SAAS,+BAA+B,MAAM,QAAQ,aAAa,IAAI,oBAAoB,MAAM,KAAK;CACxG;CAEF,OAAO;EAAE,QAAQ;EAAS;CAAM;AAClC;;;;;AAMA,SAAgB,cAAc,MAAiB,OAAiC;CAC9E,MAAM,OAAO,CAAC,MAAM,MAAM,MAAM,MAAM,CAAC,CAAC,QAAQ,QAC9C,QAAQ,GAAG,CACb;CACA,OAAO,KAAK,SAAS,QAAQ;EAC3B,KAAK,MAAM,OAAO,MAAM;GACtB,MAAM,QAAQ,iBAAiB,KAAK,GAAG;GACvC,IAAI,MAAM,SAAS,MAAM,UAAU,QAAQ,MAAM,UAAU,KAAA,KAAa,MAAM,UAAU,IACtF,OAAO,CAAC,MAAM,KAAK;EAEvB;EACA,OAAO,CAAC;CACV,CAAC;AACH;AAEA,IAAM,cAAc;AAEpB,IAAM,YAAY,UAChB,OAAO,UAAU,YAAY,UAAU,QAAQ,CAAC,MAAM,QAAQ,KAAK;AAErE,SAAS,eAAe,OAAyB;CAC/C,OACE,MAAM,QAAQ,KAAK,KACnB,MAAM,SAAS,KACf,MAAM,OAAO,UAAU,SAAS,KAAK,KAAK,OAAO,MAAM,QAAQ,QAAQ;AAE3E;AAEA,SAAS,SAAS,OAAwB;CACxC,IAAI,UAAU,MAAM,OAAO;CAC3B,IAAI,MAAM,QAAQ,KAAK,GAAG,OAAO;CACjC,OAAO,KAAK,OAAO;AACrB;;;;AAKA,SAAS,oBAAoB,MAAiB,OAA8B;CAC1E,MAAM,OAAO,MAAM,UAAU,MAAM;CACnC,MAAM,QAAQ,KAAK;CACnB,MAAM,UAAU,KAAK,QAAQ,QAAQ,iBAAiB,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC;CACxE,IAAI,YAAY,OACd,OAAO,kBAAkB,UAAU,IAAI,sBAAsB,OAAO,MAAM,eAAe;CAE3F,IAAI,UAAU,GACZ,OAAO,sBAAsB,QAAQ,MAAM,MAAM,2BAA2B,KAAK;CAEnF,MAAM,OAAO,cAAc,MAAM,IAAI;CACrC,IAAI,CAAC,MACH,OAAO,YAAY,KAAK,sBAAsB,MAAM,WAAW,UAAU,IAAI,QAAQ,OAAO;CAE9F,MAAM,EAAE,MAAM,UAAU;CACxB,MAAM,OAAO,KAAK,MAAM,KAAK,SAAS,CAAC;CACvC,MAAM,aAAa,MAAM,KAAK;CAC9B,IAAI,eAAe,KAAK,GACtB,OAAO,GAAG,KAAK,sCAAsC,WAAW,2BAA2B,KAAK;CAElG,IAAI,OAAO,UAAU,UAAU;EAC7B,MAAM,OAAO,YAAY,KAAK;EAC9B,IAAI,MACF,OAAO,GAAG,KAAK,oBAAoB,WAAW,2BAA2B,KAAK,OAAO,KAAK;CAE9F;CACA,IAAI,SAAS,KAAK,GAAG;EACnB,MAAM,OAAO,OAAO,KAAK,KAAK;EAC9B,IAAI,KAAK,WAAW,GAAG,OAAO,GAAG,KAAK;EAGtC,OAAO,GAAG,KAAK,UAAU,KAAK,WAFf,KAAK,MAAM,GAAG,WAAW,CAAC,CAAC,KAAK,IAEN,IAD5B,KAAK,SAAS,cAAc,QAAQ,KAAK,SAAS,YAAY,SAAS,GAC7B;CACzD;CACA,OAAO,GAAG,KAAK,MAAM,SAAS,KAAK,EAAE,IAAI,WAAW;AACtD;;AAGA,SAAS,YAAY,MAAiD;CACpE,IAAI;EACF,MAAM,UAAmB,KAAK,MAAM,IAAI;EACxC,IAAI,eAAe,OAAO,GAAG,OAAO;EACpC,OAAO,OAAO,YAAY,YAAY,YAAY,OAAO,SAAS,KAAA;CACpE,QAAQ;EACN;CACF;AACF;;AAGA,SAAS,cACP,MACA,MAC8C;CAC9C,IAAI;CACJ,KAAK,MAAM,OAAO,MAChB,KAAK,IAAI,MAAM,KAAK,YAAY,GAAG,GAAG,MAAM,GAAG,MAAM,KAAK,YAAY,KAAK,MAAM,CAAC,GAAG;EACnF,MAAM,OAAO,KAAK,MAAM,GAAG,GAAG;EAC9B,IAAI,QAAQ,KAAK,UAAU,KAAK,KAAK,QAAQ;EAC7C,MAAM,QAAQ,iBAAiB,KAAK,IAAI;EACxC,IAAI,MAAM,OAAO;GACf,OAAO;IAAE;IAAM,OAAO,MAAM;GAAM;GAClC;EACF;CACF;CAEF,OAAO;AACT;;AAGA,SAAgB,YAAY,EAC1B,MACA,OACA,QACA,QAMgB;CAChB,MAAM,CAAC,OAAO,YAAY,SAAwB,EAAE,QAAQ,UAAU,CAAC;CACvE,MAAM,OAAO,KAAK,UAAU;EAC1B,SAAS,EACP,SAAS,CACP;GACE,MAAM;GACN,QAAQ;GACR;GACA,GAAI,SAAS,EAAE,OAAO,IAAI,CAAC;GAC3B,GAAI,OAAO,EAAE,KAAK,IAAI,CAAC;EACzB,CACF,EACF;EACA,MAAM,CAAC,GAAG,aAAa,MAAM,CAAC;CAChC,CAAC;CAED,gBAAgB;EACd,MAAM,aAAa,IAAI,gBAAgB;EACvC,SAAS,EAAE,QAAQ,UAAU,CAAC;EAC9B,MAAM,QAAQ,iBAAiB;GAC7B,UAA2B,eAAe,wBAAwB,GAAG;IACnE,QAAQ;IACR,SAAS,EAAE,gBAAgB,mBAAmB;IAC9C;IACA,QAAQ,WAAW;GACrB,CAAC,CAAC,CAAC,MACA,WAAW;IACV,IAAI,WAAW,OAAO,SAAS;IAC/B,IAAI;KACF,MAAM,WAAW,aAAa,OAAO,QAAQ;KAC7C,SACE,YAAY,SAAS,KAAK,OAAO,EAAE,EAAE,MAAM,KAAK,IAC5C,EAAE,QAAQ,QAAQ,IAClB;MAAE,QAAQ;MAAS;KAAS,CAClC;IACF,SAAS,OAAO;KACd,SAAS;MACP,QAAQ;MACR,SAAS,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK;KAChE,CAAC;IACH;GACF,IACC,UAAmB;IAClB,IAAI,WAAW,OAAO,SAAS;IAC/B,SAAS;KACP,QAAQ;KACR,SAAS,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK;IAChE,CAAC;GACH,CACF;EACF,GAAG,GAAG;EACN,aAAa;GACX,aAAa,KAAK;GAClB,WAAW,MAAM;EACnB;CACF,GAAG,CAAC,MAAM,IAAI,CAAC;CAEf,OAAO;AACT;;;AAIA,SAAS,YAAY,MAAuC;CAC1D,IAAI,CAAC,MAAM,OAAO;CAClB,OACE,KAAK,SAAS,UACd,CAAC,KAAK,QACN,CAAC,KAAK,UACL,KAAK,YAAY,CAAC,EAAA,CAAG,MAAM,WAAW;AAE3C;;;;AAKA,SAAS,aAAa,UAA0C;CAC9D,MAAM,QAAoB,SAAS;CACnC,MAAM,SAAS,MAAM,UAAU;CAC/B,IAAI,MAAM,SAAS,WAAW,CAAC,UAAU,MAAM,MAAM,WAAW,GAC9D,MAAM,IAAI,MAAM,qDAAqD;CAEvE,OAAO;EACL,GAAG;EACH,MAAM;GAAE,GAAG;GAAO,SAAS,CAAC;IAAE,GAAG;IAAQ,OAAO;IAAI,UAAU;GAAM,CAAC;EAAE;CACzE;AACF"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
const require_Clicky = require("../../data/Clicky.cjs");
|
|
2
|
+
const require_UiFileType = require("../../icons/components/UiFileType.cjs");
|
|
3
|
+
const require_jsonPathSample = require("../query/jsonPathSample.cjs");
|
|
4
|
+
const require_profileFieldControls = require("./profileFieldControls.cjs");
|
|
5
|
+
const require_profileFieldIcons = require("./profileFieldIcons.cjs");
|
|
6
|
+
const require_profileFieldSample = require("./profileFieldSample.cjs");
|
|
7
|
+
const require_profileFieldTypes = require("./profileFieldTypes.cjs");
|
|
8
|
+
let react = require("react");
|
|
9
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
|
+
// src/profiles/fields/profileFieldTypeField.tsx
|
|
11
|
+
/**
|
|
12
|
+
* The Data type dropdown, with each type's rendering of the sampled value in its
|
|
13
|
+
* option.
|
|
14
|
+
*
|
|
15
|
+
* Every type asks the mapping endpoint for itself, so the cell is the real one
|
|
16
|
+
* and the server's verdict is the real one: a type it rejects the value for is
|
|
17
|
+
* left out of the list, since choosing it could only break the column. The
|
|
18
|
+
* field's own type stays listed regardless, marked, so the value is still
|
|
19
|
+
* visible and changeable. With no sample, or while the previews load, every type
|
|
20
|
+
* is listed bare — the dropdown never waits on the server to offer a choice.
|
|
21
|
+
*/
|
|
22
|
+
function ProfileFieldTypeField({ field, onChange }) {
|
|
23
|
+
const rows = require_jsonPathSample.useJsonPathSampleRows();
|
|
24
|
+
const sample = (0, react.useMemo)(() => require_profileFieldSample.sampleFieldValue(rows, field), [rows, field]);
|
|
25
|
+
const [cells, setCells] = (0, react.useState)({});
|
|
26
|
+
const report = (0, react.useCallback)((type, state) => setCells((current) => current[type] === state ? current : {
|
|
27
|
+
...current,
|
|
28
|
+
[type]: state
|
|
29
|
+
}), []);
|
|
30
|
+
const options = (0, react.useMemo)(() => sample.status === "found" ? typeOptions({
|
|
31
|
+
cells,
|
|
32
|
+
current: field.type
|
|
33
|
+
}) : require_profileFieldIcons.profileTypeOptions, [
|
|
34
|
+
sample.status,
|
|
35
|
+
cells,
|
|
36
|
+
field.type
|
|
37
|
+
]);
|
|
38
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [sample.status === "found" ? require_profileFieldTypes.PROFILE_FIELD_TYPES.map((type) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TypeCellLoader, {
|
|
39
|
+
type,
|
|
40
|
+
value: sample.value,
|
|
41
|
+
...type === field.type && field.format ? { format: field.format } : {},
|
|
42
|
+
...type === field.type && field.unit ? { unit: field.unit } : {},
|
|
43
|
+
onState: report
|
|
44
|
+
}, type)) : null, /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_profileFieldControls.EnumField, {
|
|
45
|
+
label: "Data type",
|
|
46
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_UiFileType.UiFileType, {}),
|
|
47
|
+
help: "Value shape and default formatting; independent of Role. Each option shows how the sampled value renders as that type; types the value cannot take are left out.",
|
|
48
|
+
value: field.type ?? "",
|
|
49
|
+
options,
|
|
50
|
+
placeholder: "Auto detect",
|
|
51
|
+
menuWidth: 420,
|
|
52
|
+
onChange: (next) => onChange({ type: next })
|
|
53
|
+
})] });
|
|
54
|
+
}
|
|
55
|
+
/** Asks for one type's cell and reports the answer up. It renders nothing: the
|
|
56
|
+
* dropdown is the only place the answer is shown. */
|
|
57
|
+
function TypeCellLoader({ type, value, format, unit, onState }) {
|
|
58
|
+
const state = require_profileFieldSample.useTypeCell({
|
|
59
|
+
type,
|
|
60
|
+
value,
|
|
61
|
+
format,
|
|
62
|
+
unit
|
|
63
|
+
});
|
|
64
|
+
(0, react.useEffect)(() => onState(type, state), [
|
|
65
|
+
onState,
|
|
66
|
+
type,
|
|
67
|
+
state
|
|
68
|
+
]);
|
|
69
|
+
return null;
|
|
70
|
+
}
|
|
71
|
+
function typeOptions({ cells, current }) {
|
|
72
|
+
return require_profileFieldIcons.profileTypeOptions.flatMap((option) => {
|
|
73
|
+
const cell = cells[option.value];
|
|
74
|
+
if (!cell || cell.status === "pending") return [option];
|
|
75
|
+
if (cell.status === "error") {
|
|
76
|
+
if (option.value !== current) return [];
|
|
77
|
+
return [{
|
|
78
|
+
...option,
|
|
79
|
+
title: cell.message,
|
|
80
|
+
trailing: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
81
|
+
className: "text-xs font-medium text-destructive",
|
|
82
|
+
children: "Incompatible"
|
|
83
|
+
})
|
|
84
|
+
}];
|
|
85
|
+
}
|
|
86
|
+
if (cell.status === "empty") return [{
|
|
87
|
+
...option,
|
|
88
|
+
trailing: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
89
|
+
className: "text-xs italic text-muted-foreground",
|
|
90
|
+
children: "No value"
|
|
91
|
+
})
|
|
92
|
+
}];
|
|
93
|
+
return [{
|
|
94
|
+
...option,
|
|
95
|
+
trailing: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
96
|
+
className: "block max-w-[16rem] min-w-0 overflow-hidden text-sm [&_[data-layout=table]>.shrink-0]:hidden [&_[data-slot=filter-bar]]:hidden [&_[data-testid=data-table-scroll]]:border-0 [&_thead]:hidden",
|
|
97
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Clicky.Clicky, { data: cell.document })
|
|
98
|
+
})
|
|
99
|
+
}];
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
exports.ProfileFieldTypeField = ProfileFieldTypeField;
|
|
103
|
+
|
|
104
|
+
//# sourceMappingURL=profileFieldTypeField.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profileFieldTypeField.cjs","names":["useJsonPathSampleRows","useMemo","sampleFieldValue","useState","useCallback","profileTypeOptions","_Fragment","PROFILE_FIELD_TYPES","EnumField","UiFileType","useTypeCell","Clicky"],"sources":["../../../src/profiles/fields/profileFieldTypeField.tsx"],"sourcesContent":["import { useCallback, useEffect, useMemo, useState } from \"react\";\nimport { Clicky } from \"../../data/Clicky\";\nimport { UiFileType } from \"../../icons\";\nimport type { ComboboxOption } from \"../../components/combobox-types\";\nimport { useJsonPathSampleRows } from \"../query/jsonPathSample\";\nimport type { Patch, ProfileColumn } from \"../wizard/profileWizardModel\";\nimport { EnumField } from \"./profileFieldControls\";\nimport { profileTypeOptions } from \"./profileFieldIcons\";\nimport {\n sampleFieldValue,\n useTypeCell,\n type TypeCellState,\n} from \"./profileFieldSample\";\nimport { PROFILE_FIELD_TYPES } from \"./profileFieldTypes\";\n\n/**\n * The Data type dropdown, with each type's rendering of the sampled value in its\n * option.\n *\n * Every type asks the mapping endpoint for itself, so the cell is the real one\n * and the server's verdict is the real one: a type it rejects the value for is\n * left out of the list, since choosing it could only break the column. The\n * field's own type stays listed regardless, marked, so the value is still\n * visible and changeable. With no sample, or while the previews load, every type\n * is listed bare — the dropdown never waits on the server to offer a choice.\n */\nexport function ProfileFieldTypeField({\n field,\n onChange,\n}: {\n field: ProfileColumn;\n onChange: (patch: Patch<ProfileColumn>) => void;\n}) {\n const rows = useJsonPathSampleRows();\n const sample = useMemo(() => sampleFieldValue(rows, field), [rows, field]);\n const [cells, setCells] = useState<Record<string, TypeCellState>>({});\n const report = useCallback(\n (type: string, state: TypeCellState) =>\n setCells((current) =>\n current[type] === state ? current : { ...current, [type]: state },\n ),\n [],\n );\n const options = useMemo(\n () =>\n sample.status === \"found\"\n ? typeOptions({ cells, current: field.type })\n : profileTypeOptions,\n [sample.status, cells, field.type],\n );\n\n return (\n <>\n {sample.status === \"found\"\n ? PROFILE_FIELD_TYPES.map((type) => (\n <TypeCellLoader\n key={type}\n type={type}\n value={sample.value}\n // Format and unit are the field's own, so they belong to the\n // type it has; every other option shows its type's default.\n {...(type === field.type && field.format ? { format: field.format } : {})}\n {...(type === field.type && field.unit ? { unit: field.unit } : {})}\n onState={report}\n />\n ))\n : null}\n <EnumField\n label=\"Data type\"\n icon={<UiFileType />}\n help=\"Value shape and default formatting; independent of Role. Each option shows how the sampled value renders as that type; types the value cannot take are left out.\"\n value={field.type ?? \"\"}\n options={options}\n placeholder=\"Auto detect\"\n menuWidth={420}\n onChange={(next) => onChange({ type: next })}\n />\n </>\n );\n}\n\n/** Asks for one type's cell and reports the answer up. It renders nothing: the\n * dropdown is the only place the answer is shown. */\nfunction TypeCellLoader({\n type,\n value,\n format,\n unit,\n onState,\n}: {\n type: string;\n value: unknown;\n format?: string;\n unit?: string;\n onState: (type: string, state: TypeCellState) => void;\n}) {\n const state = useTypeCell({ type, value, format, unit });\n useEffect(() => onState(type, state), [onState, type, state]);\n return null;\n}\n\nfunction typeOptions({\n cells,\n current,\n}: {\n cells: Record<string, TypeCellState>;\n current: string | undefined;\n}): ComboboxOption[] {\n return profileTypeOptions.flatMap((option): ComboboxOption[] => {\n const cell = cells[option.value];\n if (!cell || cell.status === \"pending\") return [option];\n if (cell.status === \"error\") {\n // A rejected type is left out, unless it is the one the field has.\n if (option.value !== current) return [];\n return [\n {\n ...option,\n title: cell.message,\n trailing: (\n <span className=\"text-xs font-medium text-destructive\">\n Incompatible\n </span>\n ),\n },\n ];\n }\n if (cell.status === \"empty\") {\n return [\n {\n ...option,\n trailing: (\n <span className=\"text-xs italic text-muted-foreground\">\n No value\n </span>\n ),\n },\n ];\n }\n return [\n {\n ...option,\n trailing: (\n // Only the cell is the point: the table's header, menu and row count\n // are chrome around one value, so they are hidden rather than rebuilt.\n <span className=\"block max-w-[16rem] min-w-0 overflow-hidden text-sm [&_[data-layout=table]>.shrink-0]:hidden [&_[data-slot=filter-bar]]:hidden [&_[data-testid=data-table-scroll]]:border-0 [&_thead]:hidden\">\n <Clicky data={cell.document} />\n </span>\n ),\n },\n ];\n });\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA0BA,SAAgB,sBAAsB,EACpC,OACA,YAIC;CACD,MAAM,OAAOA,uBAAAA,sBAAsB;CACnC,MAAM,UAAA,GAASC,MAAAA,QAAAA,OAAcC,2BAAAA,iBAAiB,MAAM,KAAK,GAAG,CAAC,MAAM,KAAK,CAAC;CACzE,MAAM,CAAC,OAAO,aAAA,GAAYC,MAAAA,SAAAA,CAAwC,CAAC,CAAC;CACpE,MAAM,UAAA,GAASC,MAAAA,YAAAA,EACZ,MAAc,UACb,UAAU,YACR,QAAQ,UAAU,QAAQ,UAAU;EAAE,GAAG;GAAU,OAAO;CAAM,CAClE,GACF,CAAC,CACH;CACA,MAAM,WAAA,GAAUH,MAAAA,QAAAA,OAEZ,OAAO,WAAW,UACd,YAAY;EAAE;EAAO,SAAS,MAAM;CAAK,CAAC,IAC1CI,0BAAAA,oBACN;EAAC,OAAO;EAAQ;EAAO,MAAM;CAAI,CACnC;CAEA,OACE,iBAAA,GAAA,kBAAA,KAAA,CAAAC,kBAAAA,UAAA,EAAA,UAAA,CACG,OAAO,WAAW,UACfC,0BAAAA,oBAAoB,KAAK,SACvB,iBAAA,GAAA,kBAAA,IAAA,CAAC,gBAAD;EAEQ;EACN,OAAO,OAAO;EAGd,GAAK,SAAS,MAAM,QAAQ,MAAM,SAAS,EAAE,QAAQ,MAAM,OAAO,IAAI,CAAC;EACvE,GAAK,SAAS,MAAM,QAAQ,MAAM,OAAO,EAAE,MAAM,MAAM,KAAK,IAAI,CAAC;EACjE,SAAS;CACV,GARM,IAQN,CACF,IACD,MACJ,iBAAA,GAAA,kBAAA,IAAA,CAACC,6BAAAA,WAAD;EACE,OAAM;EACN,MAAM,iBAAA,GAAA,kBAAA,IAAA,CAACC,mBAAAA,YAAD,CAAa,CAAA;EACnB,MAAK;EACL,OAAO,MAAM,QAAQ;EACZ;EACT,aAAY;EACZ,WAAW;EACX,WAAW,SAAS,SAAS,EAAE,MAAM,KAAK,CAAC;CAC5C,CAAA,CACD,EAAA,CAAA;AAEN;;;AAIA,SAAS,eAAe,EACtB,MACA,OACA,QACA,MACA,WAOC;CACD,MAAM,QAAQC,2BAAAA,YAAY;EAAE;EAAM;EAAO;EAAQ;CAAK,CAAC;CACvD,CAAA,GAAA,MAAA,UAAA,OAAgB,QAAQ,MAAM,KAAK,GAAG;EAAC;EAAS;EAAM;CAAK,CAAC;CAC5D,OAAO;AACT;AAEA,SAAS,YAAY,EACnB,OACA,WAImB;CACnB,OAAOL,0BAAAA,mBAAmB,SAAS,WAA6B;EAC9D,MAAM,OAAO,MAAM,OAAO;EAC1B,IAAI,CAAC,QAAQ,KAAK,WAAW,WAAW,OAAO,CAAC,MAAM;EACtD,IAAI,KAAK,WAAW,SAAS;GAE3B,IAAI,OAAO,UAAU,SAAS,OAAO,CAAC;GACtC,OAAO,CACL;IACE,GAAG;IACH,OAAO,KAAK;IACZ,UACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,QAAD;KAAM,WAAU;KAAuC,UAAA;IAEjD,CAAA;GAEV,CACF;EACF;EACA,IAAI,KAAK,WAAW,SAClB,OAAO,CACL;GACE,GAAG;GACH,UACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,QAAD;IAAM,WAAU;IAAuC,UAAA;GAEjD,CAAA;EAEV,CACF;EAEF,OAAO,CACL;GACE,GAAG;GACH,UAGE,iBAAA,GAAA,kBAAA,IAAA,CAAC,QAAD;IAAM,WAAU;IACd,UAAA,iBAAA,GAAA,kBAAA,IAAA,CAACM,eAAAA,QAAD,EAAQ,MAAM,KAAK,SAAW,CAAA;GAC1B,CAAA;EAEV,CACF;CACF,CAAC;AACH"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Patch, ProfileColumn } from '../wizard/profileWizardModel.js';
|
|
2
|
+
/**
|
|
3
|
+
* The Data type dropdown, with each type's rendering of the sampled value in its
|
|
4
|
+
* option.
|
|
5
|
+
*
|
|
6
|
+
* Every type asks the mapping endpoint for itself, so the cell is the real one
|
|
7
|
+
* and the server's verdict is the real one: a type it rejects the value for is
|
|
8
|
+
* left out of the list, since choosing it could only break the column. The
|
|
9
|
+
* field's own type stays listed regardless, marked, so the value is still
|
|
10
|
+
* visible and changeable. With no sample, or while the previews load, every type
|
|
11
|
+
* is listed bare — the dropdown never waits on the server to offer a choice.
|
|
12
|
+
*/
|
|
13
|
+
export declare function ProfileFieldTypeField({ field, onChange, }: {
|
|
14
|
+
field: ProfileColumn;
|
|
15
|
+
onChange: (patch: Patch<ProfileColumn>) => void;
|
|
16
|
+
}): import("react").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=profileFieldTypeField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profileFieldTypeField.d.ts","sourceRoot":"","sources":["../../../src/profiles/fields/profileFieldTypeField.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAUzE;;;;;;;;;;GAUG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,KAAK,EACL,QAAQ,GACT,EAAE;IACD,KAAK,EAAE,aAAa,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC;CACjD,+BA+CA"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { Clicky } from "../../data/Clicky.js";
|
|
2
|
+
import { UiFileType } from "../../icons/components/UiFileType.js";
|
|
3
|
+
import { useJsonPathSampleRows } from "../query/jsonPathSample.js";
|
|
4
|
+
import { EnumField } from "./profileFieldControls.js";
|
|
5
|
+
import { profileTypeOptions } from "./profileFieldIcons.js";
|
|
6
|
+
import { sampleFieldValue, useTypeCell } from "./profileFieldSample.js";
|
|
7
|
+
import { PROFILE_FIELD_TYPES } from "./profileFieldTypes.js";
|
|
8
|
+
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
9
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
// src/profiles/fields/profileFieldTypeField.tsx
|
|
11
|
+
/**
|
|
12
|
+
* The Data type dropdown, with each type's rendering of the sampled value in its
|
|
13
|
+
* option.
|
|
14
|
+
*
|
|
15
|
+
* Every type asks the mapping endpoint for itself, so the cell is the real one
|
|
16
|
+
* and the server's verdict is the real one: a type it rejects the value for is
|
|
17
|
+
* left out of the list, since choosing it could only break the column. The
|
|
18
|
+
* field's own type stays listed regardless, marked, so the value is still
|
|
19
|
+
* visible and changeable. With no sample, or while the previews load, every type
|
|
20
|
+
* is listed bare — the dropdown never waits on the server to offer a choice.
|
|
21
|
+
*/
|
|
22
|
+
function ProfileFieldTypeField({ field, onChange }) {
|
|
23
|
+
const rows = useJsonPathSampleRows();
|
|
24
|
+
const sample = useMemo(() => sampleFieldValue(rows, field), [rows, field]);
|
|
25
|
+
const [cells, setCells] = useState({});
|
|
26
|
+
const report = useCallback((type, state) => setCells((current) => current[type] === state ? current : {
|
|
27
|
+
...current,
|
|
28
|
+
[type]: state
|
|
29
|
+
}), []);
|
|
30
|
+
const options = useMemo(() => sample.status === "found" ? typeOptions({
|
|
31
|
+
cells,
|
|
32
|
+
current: field.type
|
|
33
|
+
}) : profileTypeOptions, [
|
|
34
|
+
sample.status,
|
|
35
|
+
cells,
|
|
36
|
+
field.type
|
|
37
|
+
]);
|
|
38
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [sample.status === "found" ? PROFILE_FIELD_TYPES.map((type) => /* @__PURE__ */ jsx(TypeCellLoader, {
|
|
39
|
+
type,
|
|
40
|
+
value: sample.value,
|
|
41
|
+
...type === field.type && field.format ? { format: field.format } : {},
|
|
42
|
+
...type === field.type && field.unit ? { unit: field.unit } : {},
|
|
43
|
+
onState: report
|
|
44
|
+
}, type)) : null, /* @__PURE__ */ jsx(EnumField, {
|
|
45
|
+
label: "Data type",
|
|
46
|
+
icon: /* @__PURE__ */ jsx(UiFileType, {}),
|
|
47
|
+
help: "Value shape and default formatting; independent of Role. Each option shows how the sampled value renders as that type; types the value cannot take are left out.",
|
|
48
|
+
value: field.type ?? "",
|
|
49
|
+
options,
|
|
50
|
+
placeholder: "Auto detect",
|
|
51
|
+
menuWidth: 420,
|
|
52
|
+
onChange: (next) => onChange({ type: next })
|
|
53
|
+
})] });
|
|
54
|
+
}
|
|
55
|
+
/** Asks for one type's cell and reports the answer up. It renders nothing: the
|
|
56
|
+
* dropdown is the only place the answer is shown. */
|
|
57
|
+
function TypeCellLoader({ type, value, format, unit, onState }) {
|
|
58
|
+
const state = useTypeCell({
|
|
59
|
+
type,
|
|
60
|
+
value,
|
|
61
|
+
format,
|
|
62
|
+
unit
|
|
63
|
+
});
|
|
64
|
+
useEffect(() => onState(type, state), [
|
|
65
|
+
onState,
|
|
66
|
+
type,
|
|
67
|
+
state
|
|
68
|
+
]);
|
|
69
|
+
return null;
|
|
70
|
+
}
|
|
71
|
+
function typeOptions({ cells, current }) {
|
|
72
|
+
return profileTypeOptions.flatMap((option) => {
|
|
73
|
+
const cell = cells[option.value];
|
|
74
|
+
if (!cell || cell.status === "pending") return [option];
|
|
75
|
+
if (cell.status === "error") {
|
|
76
|
+
if (option.value !== current) return [];
|
|
77
|
+
return [{
|
|
78
|
+
...option,
|
|
79
|
+
title: cell.message,
|
|
80
|
+
trailing: /* @__PURE__ */ jsx("span", {
|
|
81
|
+
className: "text-xs font-medium text-destructive",
|
|
82
|
+
children: "Incompatible"
|
|
83
|
+
})
|
|
84
|
+
}];
|
|
85
|
+
}
|
|
86
|
+
if (cell.status === "empty") return [{
|
|
87
|
+
...option,
|
|
88
|
+
trailing: /* @__PURE__ */ jsx("span", {
|
|
89
|
+
className: "text-xs italic text-muted-foreground",
|
|
90
|
+
children: "No value"
|
|
91
|
+
})
|
|
92
|
+
}];
|
|
93
|
+
return [{
|
|
94
|
+
...option,
|
|
95
|
+
trailing: /* @__PURE__ */ jsx("span", {
|
|
96
|
+
className: "block max-w-[16rem] min-w-0 overflow-hidden text-sm [&_[data-layout=table]>.shrink-0]:hidden [&_[data-slot=filter-bar]]:hidden [&_[data-testid=data-table-scroll]]:border-0 [&_thead]:hidden",
|
|
97
|
+
children: /* @__PURE__ */ jsx(Clicky, { data: cell.document })
|
|
98
|
+
})
|
|
99
|
+
}];
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
export { ProfileFieldTypeField };
|
|
103
|
+
|
|
104
|
+
//# sourceMappingURL=profileFieldTypeField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profileFieldTypeField.js","names":["_Fragment"],"sources":["../../../src/profiles/fields/profileFieldTypeField.tsx"],"sourcesContent":["import { useCallback, useEffect, useMemo, useState } from \"react\";\nimport { Clicky } from \"../../data/Clicky\";\nimport { UiFileType } from \"../../icons\";\nimport type { ComboboxOption } from \"../../components/combobox-types\";\nimport { useJsonPathSampleRows } from \"../query/jsonPathSample\";\nimport type { Patch, ProfileColumn } from \"../wizard/profileWizardModel\";\nimport { EnumField } from \"./profileFieldControls\";\nimport { profileTypeOptions } from \"./profileFieldIcons\";\nimport {\n sampleFieldValue,\n useTypeCell,\n type TypeCellState,\n} from \"./profileFieldSample\";\nimport { PROFILE_FIELD_TYPES } from \"./profileFieldTypes\";\n\n/**\n * The Data type dropdown, with each type's rendering of the sampled value in its\n * option.\n *\n * Every type asks the mapping endpoint for itself, so the cell is the real one\n * and the server's verdict is the real one: a type it rejects the value for is\n * left out of the list, since choosing it could only break the column. The\n * field's own type stays listed regardless, marked, so the value is still\n * visible and changeable. With no sample, or while the previews load, every type\n * is listed bare — the dropdown never waits on the server to offer a choice.\n */\nexport function ProfileFieldTypeField({\n field,\n onChange,\n}: {\n field: ProfileColumn;\n onChange: (patch: Patch<ProfileColumn>) => void;\n}) {\n const rows = useJsonPathSampleRows();\n const sample = useMemo(() => sampleFieldValue(rows, field), [rows, field]);\n const [cells, setCells] = useState<Record<string, TypeCellState>>({});\n const report = useCallback(\n (type: string, state: TypeCellState) =>\n setCells((current) =>\n current[type] === state ? current : { ...current, [type]: state },\n ),\n [],\n );\n const options = useMemo(\n () =>\n sample.status === \"found\"\n ? typeOptions({ cells, current: field.type })\n : profileTypeOptions,\n [sample.status, cells, field.type],\n );\n\n return (\n <>\n {sample.status === \"found\"\n ? PROFILE_FIELD_TYPES.map((type) => (\n <TypeCellLoader\n key={type}\n type={type}\n value={sample.value}\n // Format and unit are the field's own, so they belong to the\n // type it has; every other option shows its type's default.\n {...(type === field.type && field.format ? { format: field.format } : {})}\n {...(type === field.type && field.unit ? { unit: field.unit } : {})}\n onState={report}\n />\n ))\n : null}\n <EnumField\n label=\"Data type\"\n icon={<UiFileType />}\n help=\"Value shape and default formatting; independent of Role. Each option shows how the sampled value renders as that type; types the value cannot take are left out.\"\n value={field.type ?? \"\"}\n options={options}\n placeholder=\"Auto detect\"\n menuWidth={420}\n onChange={(next) => onChange({ type: next })}\n />\n </>\n );\n}\n\n/** Asks for one type's cell and reports the answer up. It renders nothing: the\n * dropdown is the only place the answer is shown. */\nfunction TypeCellLoader({\n type,\n value,\n format,\n unit,\n onState,\n}: {\n type: string;\n value: unknown;\n format?: string;\n unit?: string;\n onState: (type: string, state: TypeCellState) => void;\n}) {\n const state = useTypeCell({ type, value, format, unit });\n useEffect(() => onState(type, state), [onState, type, state]);\n return null;\n}\n\nfunction typeOptions({\n cells,\n current,\n}: {\n cells: Record<string, TypeCellState>;\n current: string | undefined;\n}): ComboboxOption[] {\n return profileTypeOptions.flatMap((option): ComboboxOption[] => {\n const cell = cells[option.value];\n if (!cell || cell.status === \"pending\") return [option];\n if (cell.status === \"error\") {\n // A rejected type is left out, unless it is the one the field has.\n if (option.value !== current) return [];\n return [\n {\n ...option,\n title: cell.message,\n trailing: (\n <span className=\"text-xs font-medium text-destructive\">\n Incompatible\n </span>\n ),\n },\n ];\n }\n if (cell.status === \"empty\") {\n return [\n {\n ...option,\n trailing: (\n <span className=\"text-xs italic text-muted-foreground\">\n No value\n </span>\n ),\n },\n ];\n }\n return [\n {\n ...option,\n trailing: (\n // Only the cell is the point: the table's header, menu and row count\n // are chrome around one value, so they are hidden rather than rebuilt.\n <span className=\"block max-w-[16rem] min-w-0 overflow-hidden text-sm [&_[data-layout=table]>.shrink-0]:hidden [&_[data-slot=filter-bar]]:hidden [&_[data-testid=data-table-scroll]]:border-0 [&_thead]:hidden\">\n <Clicky data={cell.document} />\n </span>\n ),\n },\n ];\n });\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA0BA,SAAgB,sBAAsB,EACpC,OACA,YAIC;CACD,MAAM,OAAO,sBAAsB;CACnC,MAAM,SAAS,cAAc,iBAAiB,MAAM,KAAK,GAAG,CAAC,MAAM,KAAK,CAAC;CACzE,MAAM,CAAC,OAAO,YAAY,SAAwC,CAAC,CAAC;CACpE,MAAM,SAAS,aACZ,MAAc,UACb,UAAU,YACR,QAAQ,UAAU,QAAQ,UAAU;EAAE,GAAG;GAAU,OAAO;CAAM,CAClE,GACF,CAAC,CACH;CACA,MAAM,UAAU,cAEZ,OAAO,WAAW,UACd,YAAY;EAAE;EAAO,SAAS,MAAM;CAAK,CAAC,IAC1C,oBACN;EAAC,OAAO;EAAQ;EAAO,MAAM;CAAI,CACnC;CAEA,OACE,qBAAAA,YAAA,EAAA,UAAA,CACG,OAAO,WAAW,UACf,oBAAoB,KAAK,SACvB,oBAAC,gBAAD;EAEQ;EACN,OAAO,OAAO;EAGd,GAAK,SAAS,MAAM,QAAQ,MAAM,SAAS,EAAE,QAAQ,MAAM,OAAO,IAAI,CAAC;EACvE,GAAK,SAAS,MAAM,QAAQ,MAAM,OAAO,EAAE,MAAM,MAAM,KAAK,IAAI,CAAC;EACjE,SAAS;CACV,GARM,IAQN,CACF,IACD,MACJ,oBAAC,WAAD;EACE,OAAM;EACN,MAAM,oBAAC,YAAD,CAAa,CAAA;EACnB,MAAK;EACL,OAAO,MAAM,QAAQ;EACZ;EACT,aAAY;EACZ,WAAW;EACX,WAAW,SAAS,SAAS,EAAE,MAAM,KAAK,CAAC;CAC5C,CAAA,CACD,EAAA,CAAA;AAEN;;;AAIA,SAAS,eAAe,EACtB,MACA,OACA,QACA,MACA,WAOC;CACD,MAAM,QAAQ,YAAY;EAAE;EAAM;EAAO;EAAQ;CAAK,CAAC;CACvD,gBAAgB,QAAQ,MAAM,KAAK,GAAG;EAAC;EAAS;EAAM;CAAK,CAAC;CAC5D,OAAO;AACT;AAEA,SAAS,YAAY,EACnB,OACA,WAImB;CACnB,OAAO,mBAAmB,SAAS,WAA6B;EAC9D,MAAM,OAAO,MAAM,OAAO;EAC1B,IAAI,CAAC,QAAQ,KAAK,WAAW,WAAW,OAAO,CAAC,MAAM;EACtD,IAAI,KAAK,WAAW,SAAS;GAE3B,IAAI,OAAO,UAAU,SAAS,OAAO,CAAC;GACtC,OAAO,CACL;IACE,GAAG;IACH,OAAO,KAAK;IACZ,UACE,oBAAC,QAAD;KAAM,WAAU;KAAuC,UAAA;IAEjD,CAAA;GAEV,CACF;EACF;EACA,IAAI,KAAK,WAAW,SAClB,OAAO,CACL;GACE,GAAG;GACH,UACE,oBAAC,QAAD;IAAM,WAAU;IAAuC,UAAA;GAEjD,CAAA;EAEV,CACF;EAEF,OAAO,CACL;GACE,GAAG;GACH,UAGE,oBAAC,QAAD;IAAM,WAAU;IACd,UAAA,oBAAC,QAAD,EAAQ,MAAM,KAAK,SAAW,CAAA;GAC1B,CAAA;EAEV,CACF;CACF,CAAC;AACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profileFieldTypes.cjs","names":[],"sources":["../../../src/profiles/fields/profileFieldTypes.ts"],"sourcesContent":["/**\n * The data types a profile field may declare.\n *\n * Kept apart from profileFieldList.tsx so that module exports only components\n * (react/only-export-components).\n */\n\nexport const PROFILE_FIELD_TYPES = [\n \"string\",\n \"number\",\n \"boolean\",\n \"datetime\",\n \"duration\",\n \"bytes\",\n \"status\",\n \"health\",\n \"key_value\",\n \"key_values\",\n \"json\",\n] as const;\n"],"mappings":";;;;;;;AAOA,IAAa,sBAAsB;CACjC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF"}
|
|
1
|
+
{"version":3,"file":"profileFieldTypes.cjs","names":[],"sources":["../../../src/profiles/fields/profileFieldTypes.ts"],"sourcesContent":["/**\n * The data types a profile field may declare.\n *\n * Kept apart from profileFieldList.tsx so that module exports only components\n * (react/only-export-components).\n */\n\nexport const PROFILE_FIELD_TYPES = [\n \"string\",\n \"number\",\n \"boolean\",\n \"datetime\",\n \"age\",\n \"duration\",\n \"bytes\",\n \"status\",\n \"health\",\n \"key_value\",\n \"key_values\",\n \"json\",\n] as const;\n"],"mappings":";;;;;;;AAOA,IAAa,sBAAsB;CACjC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF"}
|
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
* Kept apart from profileFieldList.tsx so that module exports only components
|
|
5
5
|
* (react/only-export-components).
|
|
6
6
|
*/
|
|
7
|
-
export declare const PROFILE_FIELD_TYPES: readonly ["string", "number", "boolean", "datetime", "duration", "bytes", "status", "health", "key_value", "key_values", "json"];
|
|
7
|
+
export declare const PROFILE_FIELD_TYPES: readonly ["string", "number", "boolean", "datetime", "age", "duration", "bytes", "status", "health", "key_value", "key_values", "json"];
|
|
8
8
|
//# sourceMappingURL=profileFieldTypes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profileFieldTypes.d.ts","sourceRoot":"","sources":["../../../src/profiles/fields/profileFieldTypes.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"profileFieldTypes.d.ts","sourceRoot":"","sources":["../../../src/profiles/fields/profileFieldTypes.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,mBAAmB,yIAatB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profileFieldTypes.js","names":[],"sources":["../../../src/profiles/fields/profileFieldTypes.ts"],"sourcesContent":["/**\n * The data types a profile field may declare.\n *\n * Kept apart from profileFieldList.tsx so that module exports only components\n * (react/only-export-components).\n */\n\nexport const PROFILE_FIELD_TYPES = [\n \"string\",\n \"number\",\n \"boolean\",\n \"datetime\",\n \"duration\",\n \"bytes\",\n \"status\",\n \"health\",\n \"key_value\",\n \"key_values\",\n \"json\",\n] as const;\n"],"mappings":";;;;;;;AAOA,IAAa,sBAAsB;CACjC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF"}
|
|
1
|
+
{"version":3,"file":"profileFieldTypes.js","names":[],"sources":["../../../src/profiles/fields/profileFieldTypes.ts"],"sourcesContent":["/**\n * The data types a profile field may declare.\n *\n * Kept apart from profileFieldList.tsx so that module exports only components\n * (react/only-export-components).\n */\n\nexport const PROFILE_FIELD_TYPES = [\n \"string\",\n \"number\",\n \"boolean\",\n \"datetime\",\n \"age\",\n \"duration\",\n \"bytes\",\n \"status\",\n \"health\",\n \"key_value\",\n \"key_values\",\n \"json\",\n] as const;\n"],"mappings":";;;;;;;AAOA,IAAa,sBAAsB;CACjC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF"}
|