@flanksource/clicky-ui 0.3.18 → 0.3.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ComboboxMenu.cjs +5 -1
- package/dist/components/ComboboxMenu.cjs.map +1 -1
- package/dist/components/ComboboxMenu.d.ts.map +1 -1
- package/dist/components/ComboboxMenu.js +5 -1
- package/dist/components/ComboboxMenu.js.map +1 -1
- package/dist/components/EndpointSelector.model.cjs +96 -0
- package/dist/components/EndpointSelector.model.cjs.map +1 -0
- package/dist/components/EndpointSelector.model.d.ts +2 -0
- package/dist/components/EndpointSelector.model.d.ts.map +1 -1
- package/dist/components/EndpointSelector.model.js +96 -0
- package/dist/components/EndpointSelector.model.js.map +1 -0
- package/dist/components/ErrorWrapper.cjs +1 -1
- package/dist/components/ErrorWrapper.cjs.map +1 -1
- package/dist/components/ErrorWrapper.js +1 -1
- package/dist/components/ErrorWrapper.js.map +1 -1
- package/dist/components/FilterBar.cjs +52 -2
- package/dist/components/FilterBar.cjs.map +1 -1
- package/dist/components/FilterBar.d.ts +20 -2
- package/dist/components/FilterBar.d.ts.map +1 -1
- package/dist/components/FilterBar.js +52 -2
- package/dist/components/FilterBar.js.map +1 -1
- package/dist/components/JSONPathField.cjs +87 -66
- package/dist/components/JSONPathField.cjs.map +1 -1
- package/dist/components/JSONPathField.d.ts +26 -9
- package/dist/components/JSONPathField.d.ts.map +1 -1
- package/dist/components/JSONPathField.js +88 -67
- package/dist/components/JSONPathField.js.map +1 -1
- package/dist/components/JSONPathPlayground.cjs +225 -0
- package/dist/components/JSONPathPlayground.cjs.map +1 -0
- package/dist/components/JSONPathPlayground.d.ts +59 -0
- package/dist/components/JSONPathPlayground.d.ts.map +1 -0
- package/dist/components/JSONPathPlayground.js +225 -0
- package/dist/components/JSONPathPlayground.js.map +1 -0
- package/dist/components/OnePasswordSelector.cjs +178 -0
- package/dist/components/OnePasswordSelector.cjs.map +1 -0
- package/dist/components/OnePasswordSelector.d.ts +8 -0
- package/dist/components/OnePasswordSelector.d.ts.map +1 -0
- package/dist/components/OnePasswordSelector.js +178 -0
- package/dist/components/OnePasswordSelector.js.map +1 -0
- package/dist/components/OnePasswordSelector.model.cjs +31 -0
- package/dist/components/OnePasswordSelector.model.cjs.map +1 -0
- package/dist/components/OnePasswordSelector.model.d.ts +27 -0
- package/dist/components/OnePasswordSelector.model.d.ts.map +1 -0
- package/dist/components/OnePasswordSelector.model.js +31 -0
- package/dist/components/OnePasswordSelector.model.js.map +1 -0
- package/dist/components/SecretFormField.cjs +142 -0
- package/dist/components/SecretFormField.cjs.map +1 -0
- package/dist/components/SecretFormField.d.ts +9 -0
- package/dist/components/SecretFormField.d.ts.map +1 -0
- package/dist/components/SecretFormField.js +142 -0
- package/dist/components/SecretFormField.js.map +1 -0
- package/dist/components/SecretKeySelector.cjs +20 -14
- package/dist/components/SecretKeySelector.cjs.map +1 -1
- package/dist/components/SecretKeySelector.d.ts +4 -1
- package/dist/components/SecretKeySelector.d.ts.map +1 -1
- package/dist/components/SecretKeySelector.js +20 -14
- package/dist/components/SecretKeySelector.js.map +1 -1
- package/dist/components/TreePickerField.cjs +55 -29
- package/dist/components/TreePickerField.cjs.map +1 -1
- package/dist/components/TreePickerField.d.ts +10 -1
- package/dist/components/TreePickerField.d.ts.map +1 -1
- package/dist/components/TreePickerField.js +56 -30
- package/dist/components/TreePickerField.js.map +1 -1
- package/dist/components/UnitStepControls.cjs +55 -0
- package/dist/components/UnitStepControls.cjs.map +1 -0
- package/dist/components/UnitStepControls.d.ts +10 -0
- package/dist/components/UnitStepControls.d.ts.map +1 -0
- package/dist/components/UnitStepControls.js +55 -0
- package/dist/components/UnitStepControls.js.map +1 -0
- package/dist/components/combobox-types.d.ts +9 -0
- package/dist/components/combobox-types.d.ts.map +1 -1
- package/dist/components/filter-bar-utils.cjs +7 -0
- package/dist/components/filter-bar-utils.cjs.map +1 -1
- package/dist/components/filter-bar-utils.d.ts.map +1 -1
- package/dist/components/filter-bar-utils.js +7 -0
- package/dist/components/filter-bar-utils.js.map +1 -1
- package/dist/components/jotai-bindings-core.cjs.map +1 -1
- package/dist/components/jotai-bindings-core.d.ts +4 -1
- package/dist/components/jotai-bindings-core.d.ts.map +1 -1
- package/dist/components/jotai-bindings-core.js.map +1 -1
- package/dist/components/json-schema-form-accordion-array.cjs +5 -73
- 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 +3 -71
- package/dist/components/json-schema-form-accordion-array.js.map +1 -1
- package/dist/components/json-schema-form-array.cjs +6 -1
- package/dist/components/json-schema-form-array.cjs.map +1 -1
- package/dist/components/json-schema-form-array.d.ts.map +1 -1
- package/dist/components/json-schema-form-array.js +6 -1
- package/dist/components/json-schema-form-array.js.map +1 -1
- package/dist/components/json-schema-form-cards-array.cjs +96 -0
- package/dist/components/json-schema-form-cards-array.cjs.map +1 -0
- package/dist/components/json-schema-form-cards-array.d.ts +7 -0
- package/dist/components/json-schema-form-cards-array.d.ts.map +1 -0
- package/dist/components/json-schema-form-cards-array.js +96 -0
- package/dist/components/json-schema-form-cards-array.js.map +1 -0
- package/dist/components/json-schema-form-item-row.cjs +81 -0
- package/dist/components/json-schema-form-item-row.cjs.map +1 -0
- package/dist/components/json-schema-form-item-row.d.ts +19 -0
- package/dist/components/json-schema-form-item-row.d.ts.map +1 -0
- package/dist/components/json-schema-form-item-row.js +81 -0
- package/dist/components/json-schema-form-item-row.js.map +1 -0
- package/dist/components/json-schema-form-render.cjs +4 -3
- 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 +4 -3
- package/dist/components/json-schema-form-render.js.map +1 -1
- package/dist/components/json-schema-form-resolve.cjs +1 -1
- package/dist/components/json-schema-form-resolve.cjs.map +1 -1
- package/dist/components/json-schema-form-resolve.js +1 -1
- package/dist/components/json-schema-form-resolve.js.map +1 -1
- package/dist/components/json-schema-form-tone.cjs +12 -0
- package/dist/components/json-schema-form-tone.cjs.map +1 -1
- package/dist/components/json-schema-form-tone.js +12 -0
- package/dist/components/json-schema-form-tone.js.map +1 -1
- package/dist/components/json-schema-form-types.d.ts +10 -1
- package/dist/components/json-schema-form-types.d.ts.map +1 -1
- package/dist/components/jsonPathTree.cjs +189 -0
- package/dist/components/jsonPathTree.cjs.map +1 -0
- package/dist/components/jsonPathTree.d.ts +92 -0
- package/dist/components/jsonPathTree.d.ts.map +1 -0
- package/dist/components/jsonPathTree.js +189 -0
- package/dist/components/jsonPathTree.js.map +1 -0
- package/dist/components/secret-form-extension.cjs +30 -0
- package/dist/components/secret-form-extension.cjs.map +1 -0
- package/dist/components/secret-form-extension.d.ts +23 -0
- package/dist/components/secret-form-extension.d.ts.map +1 -0
- package/dist/components/secret-form-extension.js +30 -0
- package/dist/components/secret-form-extension.js.map +1 -0
- package/dist/components/unit-form-extension.cjs +126 -0
- package/dist/components/unit-form-extension.cjs.map +1 -0
- package/dist/components/unit-form-extension.d.ts +8 -0
- package/dist/components/unit-form-extension.d.ts.map +1 -0
- package/dist/components/unit-form-extension.js +126 -0
- package/dist/components/unit-form-extension.js.map +1 -0
- package/dist/components.cjs +20 -0
- package/dist/components.cjs.map +1 -1
- package/dist/components.d.ts +7 -0
- package/dist/components.d.ts.map +1 -1
- package/dist/components.js +20 -0
- package/dist/components.js.map +1 -1
- package/dist/data/TaskExecDetails.cjs +40 -0
- package/dist/data/TaskExecDetails.cjs.map +1 -0
- package/dist/data/TaskExecDetails.d.ts +5 -0
- package/dist/data/TaskExecDetails.d.ts.map +1 -0
- package/dist/data/TaskExecDetails.js +40 -0
- package/dist/data/TaskExecDetails.js.map +1 -0
- package/dist/data/TaskProgress.cjs +9 -3
- package/dist/data/TaskProgress.cjs.map +1 -1
- package/dist/data/TaskProgress.d.ts.map +1 -1
- package/dist/data/TaskProgress.js +9 -3
- package/dist/data/TaskProgress.js.map +1 -1
- package/dist/data/TaskSnapshot.cjs.map +1 -1
- package/dist/data/TaskSnapshot.d.ts +12 -1
- package/dist/data/TaskSnapshot.d.ts.map +1 -1
- package/dist/data/TaskSnapshot.js.map +1 -1
- package/dist/data/TreeNode.cjs +3 -0
- package/dist/data/TreeNode.cjs.map +1 -1
- package/dist/data/TreeNode.d.ts.map +1 -1
- package/dist/data/TreeNode.js +3 -0
- package/dist/data/TreeNode.js.map +1 -1
- package/dist/data/data-table-filter-values.cjs +20 -0
- package/dist/data/data-table-filter-values.cjs.map +1 -1
- package/dist/data/data-table-filter-values.d.ts +16 -0
- package/dist/data/data-table-filter-values.d.ts.map +1 -1
- package/dist/data/data-table-filter-values.js +20 -0
- package/dist/data/data-table-filter-values.js.map +1 -1
- package/dist/data/data-table-server-filters.cjs +23 -29
- package/dist/data/data-table-server-filters.cjs.map +1 -1
- package/dist/data/data-table-server-filters.d.ts.map +1 -1
- package/dist/data/data-table-server-filters.js +21 -27
- package/dist/data/data-table-server-filters.js.map +1 -1
- package/dist/data/diagnostics/ErrorDetails.cjs +61 -8
- package/dist/data/diagnostics/ErrorDetails.cjs.map +1 -1
- package/dist/data/diagnostics/ErrorDetails.d.ts.map +1 -1
- package/dist/data/diagnostics/ErrorDetails.js +61 -8
- package/dist/data/diagnostics/ErrorDetails.js.map +1 -1
- package/dist/data/diagnostics/error-diagnostics.cjs +10 -4
- package/dist/data/diagnostics/error-diagnostics.cjs.map +1 -1
- package/dist/data/diagnostics/error-diagnostics.d.ts.map +1 -1
- package/dist/data/diagnostics/error-diagnostics.js +10 -4
- package/dist/data/diagnostics/error-diagnostics.js.map +1 -1
- package/dist/data/query-browser/QueryBrowser.cjs +139 -161
- package/dist/data/query-browser/QueryBrowser.cjs.map +1 -1
- package/dist/data/query-browser/QueryBrowser.d.ts +1 -71
- package/dist/data/query-browser/QueryBrowser.d.ts.map +1 -1
- package/dist/data/query-browser/QueryBrowser.editor.cjs +88 -0
- package/dist/data/query-browser/QueryBrowser.editor.cjs.map +1 -0
- package/dist/data/query-browser/QueryBrowser.editor.d.ts +12 -0
- package/dist/data/query-browser/QueryBrowser.editor.d.ts.map +1 -0
- package/dist/data/query-browser/QueryBrowser.editor.js +88 -0
- package/dist/data/query-browser/QueryBrowser.editor.js.map +1 -0
- package/dist/data/query-browser/QueryBrowser.js +140 -162
- package/dist/data/query-browser/QueryBrowser.js.map +1 -1
- package/dist/data/query-browser/QueryBrowser.types.cjs +12 -0
- package/dist/data/query-browser/QueryBrowser.types.cjs.map +1 -0
- package/dist/data/query-browser/QueryBrowser.types.d.ts +94 -0
- package/dist/data/query-browser/QueryBrowser.types.d.ts.map +1 -0
- package/dist/data/query-browser/QueryBrowser.types.js +12 -0
- package/dist/data/query-browser/QueryBrowser.types.js.map +1 -0
- package/dist/data/query-browser/QueryBrowserDiagnosticsPanel.cjs +56 -0
- package/dist/data/query-browser/QueryBrowserDiagnosticsPanel.cjs.map +1 -0
- package/dist/data/query-browser/QueryBrowserDiagnosticsPanel.d.ts +5 -0
- package/dist/data/query-browser/QueryBrowserDiagnosticsPanel.d.ts.map +1 -0
- package/dist/data/query-browser/QueryBrowserDiagnosticsPanel.js +56 -0
- package/dist/data/query-browser/QueryBrowserDiagnosticsPanel.js.map +1 -0
- package/dist/data/query-browser/QueryBrowserResults.cjs +80 -0
- package/dist/data/query-browser/QueryBrowserResults.cjs.map +1 -0
- package/dist/data/query-browser/QueryBrowserResults.d.ts +16 -0
- package/dist/data/query-browser/QueryBrowserResults.d.ts.map +1 -0
- package/dist/data/query-browser/QueryBrowserResults.js +80 -0
- package/dist/data/query-browser/QueryBrowserResults.js.map +1 -0
- package/dist/data/query-browser/index.d.ts +2 -1
- package/dist/data/query-browser/index.d.ts.map +1 -1
- package/dist/data/task-exec-details.cjs +9 -0
- package/dist/data/task-exec-details.cjs.map +1 -0
- package/dist/data/task-exec-details.d.ts +3 -0
- package/dist/data/task-exec-details.d.ts.map +1 -0
- package/dist/data/task-exec-details.js +9 -0
- package/dist/data/task-exec-details.js.map +1 -0
- package/dist/data/version-info.cjs +3 -3
- package/dist/data/version-info.js +3 -3
- package/dist/data.cjs +2 -0
- package/dist/data.cjs.map +1 -1
- package/dist/data.d.ts +1 -1
- package/dist/data.d.ts.map +1 -1
- package/dist/data.js +2 -0
- package/dist/data.js.map +1 -1
- package/dist/index.cjs +22 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/string.cjs +8 -0
- package/dist/lib/string.cjs.map +1 -1
- package/dist/lib/string.d.ts +1 -0
- package/dist/lib/string.d.ts.map +1 -1
- package/dist/lib/string.js +8 -0
- package/dist/lib/string.js.map +1 -1
- package/dist/profiles/catalogTree.cjs +133 -0
- package/dist/profiles/catalogTree.cjs.map +1 -0
- package/dist/profiles/catalogTree.d.ts +11 -0
- package/dist/profiles/catalogTree.d.ts.map +1 -0
- package/dist/profiles/catalogTree.js +133 -0
- package/dist/profiles/catalogTree.js.map +1 -0
- package/dist/profiles/connectionBrowserModel.cjs +185 -0
- package/dist/profiles/connectionBrowserModel.cjs.map +1 -0
- package/dist/profiles/connectionBrowserModel.d.ts +169 -0
- package/dist/profiles/connectionBrowserModel.d.ts.map +1 -0
- package/dist/profiles/connectionBrowserModel.js +185 -0
- package/dist/profiles/connectionBrowserModel.js.map +1 -0
- package/dist/profiles/connectionQueryWorkspace.cjs +185 -0
- package/dist/profiles/connectionQueryWorkspace.cjs.map +1 -0
- package/dist/profiles/connectionQueryWorkspace.d.ts +63 -0
- package/dist/profiles/connectionQueryWorkspace.d.ts.map +1 -0
- package/dist/profiles/connectionQueryWorkspace.js +185 -0
- package/dist/profiles/connectionQueryWorkspace.js.map +1 -0
- package/dist/profiles/connectionQueryWorkspaceModel.cjs +28 -0
- package/dist/profiles/connectionQueryWorkspaceModel.cjs.map +1 -0
- package/dist/profiles/connectionQueryWorkspaceModel.d.ts +38 -0
- package/dist/profiles/connectionQueryWorkspaceModel.d.ts.map +1 -0
- package/dist/profiles/connectionQueryWorkspaceModel.js +28 -0
- package/dist/profiles/connectionQueryWorkspaceModel.js.map +1 -0
- package/dist/profiles/esFieldValues.cjs +64 -0
- package/dist/profiles/esFieldValues.cjs.map +1 -0
- package/dist/profiles/esFieldValues.d.ts +48 -0
- package/dist/profiles/esFieldValues.d.ts.map +1 -0
- package/dist/profiles/esFieldValues.js +64 -0
- package/dist/profiles/esFieldValues.js.map +1 -0
- package/dist/profiles/esParamMappingModel.cjs +301 -0
- package/dist/profiles/esParamMappingModel.cjs.map +1 -0
- package/dist/profiles/esParamMappingModel.d.ts +37 -0
- package/dist/profiles/esParamMappingModel.d.ts.map +1 -0
- package/dist/profiles/esParamMappingModel.js +301 -0
- package/dist/profiles/esParamMappingModel.js.map +1 -0
- package/dist/profiles/esParamMappingPill.cjs +24 -0
- package/dist/profiles/esParamMappingPill.cjs.map +1 -0
- package/dist/profiles/esParamMappingPill.d.ts +13 -0
- package/dist/profiles/esParamMappingPill.d.ts.map +1 -0
- package/dist/profiles/esParamMappingPill.js +24 -0
- package/dist/profiles/esParamMappingPill.js.map +1 -0
- package/dist/profiles/esParamOperandExtension.cjs +75 -0
- package/dist/profiles/esParamOperandExtension.cjs.map +1 -0
- package/dist/profiles/esParamOperandExtension.d.ts +11 -0
- package/dist/profiles/esParamOperandExtension.d.ts.map +1 -0
- package/dist/profiles/esParamOperandExtension.js +75 -0
- package/dist/profiles/esParamOperandExtension.js.map +1 -0
- package/dist/profiles/esQueryBuilder.cjs +205 -0
- package/dist/profiles/esQueryBuilder.cjs.map +1 -0
- package/dist/profiles/esQueryBuilder.d.ts +35 -0
- package/dist/profiles/esQueryBuilder.d.ts.map +1 -0
- package/dist/profiles/esQueryBuilder.js +205 -0
- package/dist/profiles/esQueryBuilder.js.map +1 -0
- package/dist/profiles/esQueryBuilderExtension.cjs +23 -0
- package/dist/profiles/esQueryBuilderExtension.cjs.map +1 -0
- package/dist/profiles/esQueryBuilderExtension.d.ts +5 -0
- package/dist/profiles/esQueryBuilderExtension.d.ts.map +1 -0
- package/dist/profiles/esQueryBuilderExtension.js +23 -0
- package/dist/profiles/esQueryBuilderExtension.js.map +1 -0
- package/dist/profiles/esQueryBuilderForm.cjs +26 -0
- package/dist/profiles/esQueryBuilderForm.cjs.map +1 -0
- package/dist/profiles/esQueryBuilderForm.d.ts +18 -0
- package/dist/profiles/esQueryBuilderForm.d.ts.map +1 -0
- package/dist/profiles/esQueryBuilderForm.js +26 -0
- package/dist/profiles/esQueryBuilderForm.js.map +1 -0
- package/dist/profiles/esQueryBuilderModel.cjs +131 -0
- package/dist/profiles/esQueryBuilderModel.cjs.map +1 -0
- package/dist/profiles/esQueryBuilderModel.d.ts +108 -0
- package/dist/profiles/esQueryBuilderModel.d.ts.map +1 -0
- package/dist/profiles/esQueryBuilderModel.js +131 -0
- package/dist/profiles/esQueryBuilderModel.js.map +1 -0
- package/dist/profiles/esQueryClauseGroup.cjs +144 -0
- package/dist/profiles/esQueryClauseGroup.cjs.map +1 -0
- package/dist/profiles/esQueryClauseGroup.d.ts +10 -0
- package/dist/profiles/esQueryClauseGroup.d.ts.map +1 -0
- package/dist/profiles/esQueryClauseGroup.js +144 -0
- package/dist/profiles/esQueryClauseGroup.js.map +1 -0
- package/dist/profiles/esQueryCompile.cjs +47 -0
- package/dist/profiles/esQueryCompile.cjs.map +1 -0
- package/dist/profiles/esQueryCompile.d.ts +39 -0
- package/dist/profiles/esQueryCompile.d.ts.map +1 -0
- package/dist/profiles/esQueryCompile.js +47 -0
- package/dist/profiles/esQueryCompile.js.map +1 -0
- package/dist/profiles/esQueryConditionRow.cjs +168 -0
- package/dist/profiles/esQueryConditionRow.cjs.map +1 -0
- package/dist/profiles/esQueryConditionRow.d.ts +37 -0
- package/dist/profiles/esQueryConditionRow.d.ts.map +1 -0
- package/dist/profiles/esQueryConditionRow.js +168 -0
- package/dist/profiles/esQueryConditionRow.js.map +1 -0
- package/dist/profiles/esQueryGroupModel.cjs +12 -0
- package/dist/profiles/esQueryGroupModel.cjs.map +1 -0
- package/dist/profiles/esQueryGroupModel.d.ts +9 -0
- package/dist/profiles/esQueryGroupModel.d.ts.map +1 -0
- package/dist/profiles/esQueryGroupModel.js +12 -0
- package/dist/profiles/esQueryGroupModel.js.map +1 -0
- package/dist/profiles/esQueryOccur.cjs +16 -0
- package/dist/profiles/esQueryOccur.cjs.map +1 -0
- package/dist/profiles/esQueryOccur.d.ts +11 -0
- package/dist/profiles/esQueryOccur.d.ts.map +1 -0
- package/dist/profiles/esQueryOccur.js +16 -0
- package/dist/profiles/esQueryOccur.js.map +1 -0
- package/dist/profiles/esQueryOperandEditors.cjs +279 -0
- package/dist/profiles/esQueryOperandEditors.cjs.map +1 -0
- package/dist/profiles/esQueryOperandEditors.d.ts +24 -0
- package/dist/profiles/esQueryOperandEditors.d.ts.map +1 -0
- package/dist/profiles/esQueryOperandEditors.js +279 -0
- package/dist/profiles/esQueryOperandEditors.js.map +1 -0
- package/dist/profiles/esQueryOperandModel.cjs +28 -0
- package/dist/profiles/esQueryOperandModel.cjs.map +1 -0
- package/dist/profiles/esQueryOperandModel.d.ts +17 -0
- package/dist/profiles/esQueryOperandModel.d.ts.map +1 -0
- package/dist/profiles/esQueryOperandModel.js +28 -0
- package/dist/profiles/esQueryOperandModel.js.map +1 -0
- package/dist/profiles/esQueryOperators.cjs +165 -0
- package/dist/profiles/esQueryOperators.cjs.map +1 -0
- package/dist/profiles/esQueryOperators.d.ts +83 -0
- package/dist/profiles/esQueryOperators.d.ts.map +1 -0
- package/dist/profiles/esQueryOperators.js +165 -0
- package/dist/profiles/esQueryOperators.js.map +1 -0
- package/dist/profiles/esQueryOutputEditor.cjs +138 -0
- package/dist/profiles/esQueryOutputEditor.cjs.map +1 -0
- package/dist/profiles/esQueryOutputEditor.d.ts +7 -0
- package/dist/profiles/esQueryOutputEditor.d.ts.map +1 -0
- package/dist/profiles/esQueryOutputEditor.js +138 -0
- package/dist/profiles/esQueryOutputEditor.js.map +1 -0
- package/dist/profiles/esQueryOutputModel.cjs +16 -0
- package/dist/profiles/esQueryOutputModel.cjs.map +1 -0
- package/dist/profiles/esQueryOutputModel.d.ts +14 -0
- package/dist/profiles/esQueryOutputModel.d.ts.map +1 -0
- package/dist/profiles/esQueryOutputModel.js +16 -0
- package/dist/profiles/esQueryOutputModel.js.map +1 -0
- package/dist/profiles/esQueryPreview.cjs +30 -0
- package/dist/profiles/esQueryPreview.cjs.map +1 -0
- package/dist/profiles/esQueryPreview.d.ts +6 -0
- package/dist/profiles/esQueryPreview.d.ts.map +1 -0
- package/dist/profiles/esQueryPreview.js +30 -0
- package/dist/profiles/esQueryPreview.js.map +1 -0
- package/dist/profiles/esQuerySortEditor.cjs +143 -0
- package/dist/profiles/esQuerySortEditor.cjs.map +1 -0
- package/dist/profiles/esQuerySortEditor.d.ts +9 -0
- package/dist/profiles/esQuerySortEditor.d.ts.map +1 -0
- package/dist/profiles/esQuerySortEditor.js +143 -0
- package/dist/profiles/esQuerySortEditor.js.map +1 -0
- package/dist/profiles/esQuerySortModel.cjs +13 -0
- package/dist/profiles/esQuerySortModel.cjs.map +1 -0
- package/dist/profiles/esQuerySortModel.d.ts +4 -0
- package/dist/profiles/esQuerySortModel.d.ts.map +1 -0
- package/dist/profiles/esQuerySortModel.js +13 -0
- package/dist/profiles/esQuerySortModel.js.map +1 -0
- package/dist/profiles/esValueCombobox.cjs +86 -0
- package/dist/profiles/esValueCombobox.cjs.map +1 -0
- package/dist/profiles/esValueCombobox.d.ts +15 -0
- package/dist/profiles/esValueCombobox.d.ts.map +1 -0
- package/dist/profiles/esValueCombobox.js +86 -0
- package/dist/profiles/esValueCombobox.js.map +1 -0
- package/dist/profiles/jsonPathSample.cjs +75 -0
- package/dist/profiles/jsonPathSample.cjs.map +1 -0
- package/dist/profiles/jsonPathSample.d.ts +27 -0
- package/dist/profiles/jsonPathSample.d.ts.map +1 -0
- package/dist/profiles/jsonPathSample.js +75 -0
- package/dist/profiles/jsonPathSample.js.map +1 -0
- package/dist/profiles/jsonPathSampleRow.cjs +14 -0
- package/dist/profiles/jsonPathSampleRow.cjs.map +1 -0
- package/dist/profiles/jsonPathSampleRow.d.ts +6 -0
- package/dist/profiles/jsonPathSampleRow.d.ts.map +1 -0
- package/dist/profiles/jsonPathSampleRow.js +14 -0
- package/dist/profiles/jsonPathSampleRow.js.map +1 -0
- package/dist/profiles/profileApi.cjs +37 -0
- package/dist/profiles/profileApi.cjs.map +1 -0
- package/dist/profiles/profileApi.d.ts +32 -0
- package/dist/profiles/profileApi.d.ts.map +1 -0
- package/dist/profiles/profileApi.js +37 -0
- package/dist/profiles/profileApi.js.map +1 -0
- package/dist/profiles/profileBuilder.cjs +65 -0
- package/dist/profiles/profileBuilder.cjs.map +1 -0
- package/dist/profiles/profileBuilder.d.ts +11 -0
- package/dist/profiles/profileBuilder.d.ts.map +1 -0
- package/dist/profiles/profileBuilder.js +65 -0
- package/dist/profiles/profileBuilder.js.map +1 -0
- package/dist/profiles/profileBuilderExtension.cjs +25 -0
- package/dist/profiles/profileBuilderExtension.cjs.map +1 -0
- package/dist/profiles/profileBuilderExtension.d.ts +5 -0
- package/dist/profiles/profileBuilderExtension.d.ts.map +1 -0
- package/dist/profiles/profileBuilderExtension.js +25 -0
- package/dist/profiles/profileBuilderExtension.js.map +1 -0
- package/dist/profiles/profileBuilderWorkspace.cjs +368 -0
- package/dist/profiles/profileBuilderWorkspace.cjs.map +1 -0
- package/dist/profiles/profileBuilderWorkspace.d.ts +21 -0
- package/dist/profiles/profileBuilderWorkspace.d.ts.map +1 -0
- package/dist/profiles/profileBuilderWorkspace.js +368 -0
- package/dist/profiles/profileBuilderWorkspace.js.map +1 -0
- package/dist/profiles/profileColumnModel.cjs +23 -0
- package/dist/profiles/profileColumnModel.cjs.map +1 -0
- package/dist/profiles/profileColumnModel.d.ts +8 -0
- package/dist/profiles/profileColumnModel.d.ts.map +1 -0
- package/dist/profiles/profileColumnModel.js +23 -0
- package/dist/profiles/profileColumnModel.js.map +1 -0
- package/dist/profiles/profileColumnPicker.cjs +68 -0
- package/dist/profiles/profileColumnPicker.cjs.map +1 -0
- package/dist/profiles/profileColumnPicker.d.ts +11 -0
- package/dist/profiles/profileColumnPicker.d.ts.map +1 -0
- package/dist/profiles/profileColumnPicker.js +68 -0
- package/dist/profiles/profileColumnPicker.js.map +1 -0
- package/dist/profiles/profileEditor.cjs +386 -0
- package/dist/profiles/profileEditor.cjs.map +1 -0
- package/dist/profiles/profileEditor.d.ts +19 -0
- package/dist/profiles/profileEditor.d.ts.map +1 -0
- package/dist/profiles/profileEditor.js +386 -0
- package/dist/profiles/profileEditor.js.map +1 -0
- package/dist/profiles/profileEditorModel.cjs +181 -0
- package/dist/profiles/profileEditorModel.cjs.map +1 -0
- package/dist/profiles/profileEditorModel.d.ts +74 -0
- package/dist/profiles/profileEditorModel.d.ts.map +1 -0
- package/dist/profiles/profileEditorModel.js +181 -0
- package/dist/profiles/profileEditorModel.js.map +1 -0
- package/dist/profiles/profileEditorPreview.cjs +38 -0
- package/dist/profiles/profileEditorPreview.cjs.map +1 -0
- package/dist/profiles/profileEditorPreview.d.ts +12 -0
- package/dist/profiles/profileEditorPreview.d.ts.map +1 -0
- package/dist/profiles/profileEditorPreview.js +38 -0
- package/dist/profiles/profileEditorPreview.js.map +1 -0
- package/dist/profiles/profileEditorRail.cjs +46 -0
- package/dist/profiles/profileEditorRail.cjs.map +1 -0
- package/dist/profiles/profileEditorRail.d.ts +8 -0
- package/dist/profiles/profileEditorRail.d.ts.map +1 -0
- package/dist/profiles/profileEditorRail.js +46 -0
- package/dist/profiles/profileEditorRail.js.map +1 -0
- package/dist/profiles/profileEditorRaw.cjs +118 -0
- package/dist/profiles/profileEditorRaw.cjs.map +1 -0
- package/dist/profiles/profileEditorRaw.d.ts +7 -0
- package/dist/profiles/profileEditorRaw.d.ts.map +1 -0
- package/dist/profiles/profileEditorRaw.js +118 -0
- package/dist/profiles/profileEditorRaw.js.map +1 -0
- package/dist/profiles/profileEditorRoutes.cjs +7 -0
- package/dist/profiles/profileEditorRoutes.cjs.map +1 -0
- package/dist/profiles/profileEditorRoutes.d.ts +2 -0
- package/dist/profiles/profileEditorRoutes.d.ts.map +1 -0
- package/dist/profiles/profileEditorRoutes.js +7 -0
- package/dist/profiles/profileEditorRoutes.js.map +1 -0
- package/dist/profiles/profileEditorSections.cjs +213 -0
- package/dist/profiles/profileEditorSections.cjs.map +1 -0
- package/dist/profiles/profileEditorSections.d.ts +23 -0
- package/dist/profiles/profileEditorSections.d.ts.map +1 -0
- package/dist/profiles/profileEditorSections.js +213 -0
- package/dist/profiles/profileEditorSections.js.map +1 -0
- package/dist/profiles/profileFieldEditor.cjs +200 -0
- package/dist/profiles/profileFieldEditor.cjs.map +1 -0
- package/dist/profiles/profileFieldEditor.d.ts +34 -0
- package/dist/profiles/profileFieldEditor.d.ts.map +1 -0
- package/dist/profiles/profileFieldEditor.js +200 -0
- package/dist/profiles/profileFieldEditor.js.map +1 -0
- package/dist/profiles/profileFieldGrid.cjs +250 -0
- package/dist/profiles/profileFieldGrid.cjs.map +1 -0
- package/dist/profiles/profileFieldGrid.d.ts +20 -0
- package/dist/profiles/profileFieldGrid.d.ts.map +1 -0
- package/dist/profiles/profileFieldGrid.js +250 -0
- package/dist/profiles/profileFieldGrid.js.map +1 -0
- package/dist/profiles/profileFieldManager.cjs +103 -0
- package/dist/profiles/profileFieldManager.cjs.map +1 -0
- package/dist/profiles/profileFieldManager.d.ts +9 -0
- package/dist/profiles/profileFieldManager.d.ts.map +1 -0
- package/dist/profiles/profileFieldManager.js +103 -0
- package/dist/profiles/profileFieldManager.js.map +1 -0
- package/dist/profiles/profileFieldState.cjs +136 -0
- package/dist/profiles/profileFieldState.cjs.map +1 -0
- package/dist/profiles/profileFieldState.d.ts +41 -0
- package/dist/profiles/profileFieldState.d.ts.map +1 -0
- package/dist/profiles/profileFieldState.js +136 -0
- package/dist/profiles/profileFieldState.js.map +1 -0
- package/dist/profiles/profileFieldTypes.cjs +17 -0
- package/dist/profiles/profileFieldTypes.cjs.map +1 -0
- package/dist/profiles/profileFieldTypes.d.ts +8 -0
- package/dist/profiles/profileFieldTypes.d.ts.map +1 -0
- package/dist/profiles/profileFieldTypes.js +17 -0
- package/dist/profiles/profileFieldTypes.js.map +1 -0
- package/dist/profiles/profileParamModel.cjs +78 -0
- package/dist/profiles/profileParamModel.cjs.map +1 -0
- package/dist/profiles/profileParamModel.d.ts +3 -0
- package/dist/profiles/profileParamModel.d.ts.map +1 -0
- package/dist/profiles/profileParamModel.js +78 -0
- package/dist/profiles/profileParamModel.js.map +1 -0
- package/dist/profiles/profileSamplePayload.cjs +15 -0
- package/dist/profiles/profileSamplePayload.cjs.map +1 -0
- package/dist/profiles/profileSamplePayload.d.ts +13 -0
- package/dist/profiles/profileSamplePayload.d.ts.map +1 -0
- package/dist/profiles/profileSamplePayload.js +15 -0
- package/dist/profiles/profileSamplePayload.js.map +1 -0
- package/dist/profiles/profileWizard.cjs +257 -0
- package/dist/profiles/profileWizard.cjs.map +1 -0
- package/dist/profiles/profileWizard.d.ts +12 -0
- package/dist/profiles/profileWizard.d.ts.map +1 -0
- package/dist/profiles/profileWizard.js +257 -0
- package/dist/profiles/profileWizard.js.map +1 -0
- package/dist/profiles/profileWizardHelp.cjs +10 -0
- package/dist/profiles/profileWizardHelp.cjs.map +1 -0
- package/dist/profiles/profileWizardHelp.d.ts +13 -0
- package/dist/profiles/profileWizardHelp.d.ts.map +1 -0
- package/dist/profiles/profileWizardHelp.js +10 -0
- package/dist/profiles/profileWizardHelp.js.map +1 -0
- package/dist/profiles/profileWizardModel.cjs +198 -0
- package/dist/profiles/profileWizardModel.cjs.map +1 -0
- package/dist/profiles/profileWizardModel.d.ts +255 -0
- package/dist/profiles/profileWizardModel.d.ts.map +1 -0
- package/dist/profiles/profileWizardModel.js +198 -0
- package/dist/profiles/profileWizardModel.js.map +1 -0
- package/dist/profiles/profileWizardQueryStep.cjs +215 -0
- package/dist/profiles/profileWizardQueryStep.cjs.map +1 -0
- package/dist/profiles/profileWizardQueryStep.d.ts +18 -0
- package/dist/profiles/profileWizardQueryStep.d.ts.map +1 -0
- package/dist/profiles/profileWizardQueryStep.js +215 -0
- package/dist/profiles/profileWizardQueryStep.js.map +1 -0
- package/dist/profiles/profileWizardSteps.cjs +214 -0
- package/dist/profiles/profileWizardSteps.cjs.map +1 -0
- package/dist/profiles/profileWizardSteps.d.ts +35 -0
- package/dist/profiles/profileWizardSteps.d.ts.map +1 -0
- package/dist/profiles/profileWizardSteps.js +214 -0
- package/dist/profiles/profileWizardSteps.js.map +1 -0
- package/dist/profiles/profileYaml.cjs +19 -0
- package/dist/profiles/profileYaml.cjs.map +1 -0
- package/dist/profiles/profileYaml.d.ts +4 -0
- package/dist/profiles/profileYaml.d.ts.map +1 -0
- package/dist/profiles/profileYaml.js +19 -0
- package/dist/profiles/profileYaml.js.map +1 -0
- package/dist/profiles/prometheusResults.cjs +60 -0
- package/dist/profiles/prometheusResults.cjs.map +1 -0
- package/dist/profiles/prometheusResults.d.ts +7 -0
- package/dist/profiles/prometheusResults.d.ts.map +1 -0
- package/dist/profiles/prometheusResults.js +60 -0
- package/dist/profiles/prometheusResults.js.map +1 -0
- package/dist/profiles/queryRowLimits.cjs +82 -0
- package/dist/profiles/queryRowLimits.cjs.map +1 -0
- package/dist/profiles/queryRowLimits.d.ts +9 -0
- package/dist/profiles/queryRowLimits.d.ts.map +1 -0
- package/dist/profiles/queryRowLimits.js +82 -0
- package/dist/profiles/queryRowLimits.js.map +1 -0
- package/dist/profiles/queryRowLimitsModel.cjs +10 -0
- package/dist/profiles/queryRowLimitsModel.cjs.map +1 -0
- package/dist/profiles/queryRowLimitsModel.d.ts +9 -0
- package/dist/profiles/queryRowLimitsModel.d.ts.map +1 -0
- package/dist/profiles/queryRowLimitsModel.js +10 -0
- package/dist/profiles/queryRowLimitsModel.js.map +1 -0
- package/dist/profiles/queryTargetPicker.cjs +42 -0
- package/dist/profiles/queryTargetPicker.cjs.map +1 -0
- package/dist/profiles/queryTargetPicker.d.ts +8 -0
- package/dist/profiles/queryTargetPicker.d.ts.map +1 -0
- package/dist/profiles/queryTargetPicker.js +42 -0
- package/dist/profiles/queryTargetPicker.js.map +1 -0
- package/dist/profiles/testSchema.d.ts +3 -0
- package/dist/profiles/testSchema.d.ts.map +1 -0
- package/dist/profiles.cjs +223 -0
- package/dist/profiles.cjs.map +1 -0
- package/dist/profiles.d.ts +68 -0
- package/dist/profiles.d.ts.map +1 -0
- package/dist/profiles.js +223 -0
- package/dist/profiles.js.map +1 -0
- package/dist/rpc/FilterForm.cjs +20 -0
- package/dist/rpc/FilterForm.cjs.map +1 -1
- package/dist/rpc/FilterForm.js +20 -0
- package/dist/rpc/FilterForm.js.map +1 -1
- package/dist/rpc/formMetadata.cjs +34 -0
- package/dist/rpc/formMetadata.cjs.map +1 -1
- package/dist/rpc/formMetadata.d.ts.map +1 -1
- package/dist/rpc/formMetadata.js +35 -1
- package/dist/rpc/formMetadata.js.map +1 -1
- package/dist/rpc/types.cjs.map +1 -1
- package/dist/rpc/types.d.ts +9 -1
- package/dist/rpc/types.d.ts.map +1 -1
- package/dist/rpc/types.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +6 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
function isGroupOperator(catalog, op) {
|
|
2
|
+
var _a;
|
|
3
|
+
return ((_a = catalog.find((entry) => entry.op === op)) == null ? void 0 : _a.group) === true;
|
|
4
|
+
}
|
|
5
|
+
function groupOperatorOptions(catalog) {
|
|
6
|
+
return catalog.filter((entry) => entry.group).map((entry) => ({ value: entry.op, label: entry.label }));
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
groupOperatorOptions,
|
|
10
|
+
isGroupOperator
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=esQueryGroupModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"esQueryGroupModel.js","sources":["../../src/profiles/esQueryGroupModel.ts"],"sourcesContent":["/**\n * A bool or nested group of conditions. A group renders itself for a child that\n * is also a group, so the tree nests to whatever depth the author builds; the\n * compiler places no bound on it either.\n */\n\nimport {\n type EsBuilderVocabulary\n } from \"./esQueryOperators\";\n\n/** Whether an operator holds other conditions rather than matching a value. */\nexport function isGroupOperator(\n catalog: EsBuilderVocabulary[\"catalog\"],\n op: string,\n): boolean {\n return catalog.find((entry) => entry.op === op)?.group === true;\n}\n\n/** The group kinds the catalog offers — bool and nested, today. */\nexport function groupOperatorOptions(catalog: EsBuilderVocabulary[\"catalog\"]) {\n return catalog\n .filter((entry) => entry.group)\n .map((entry) => ({ value: entry.op, label: entry.label }));\n}\n"],"names":[],"mappings":"AAWO,SAAS,gBACd,SACA,IACS;AAHJ;AAIL,WAAO,aAAQ,KAAK,CAAC,UAAU,MAAM,OAAO,EAAE,MAAvC,mBAA0C,WAAU;AAC7D;AAGO,SAAS,qBAAqB,SAAyC;AAC5E,SAAO,QACJ,OAAO,CAAC,UAAU,MAAM,KAAK,EAC7B,IAAI,CAAC,WAAW,EAAE,OAAO,MAAM,IAAI,OAAO,MAAM,QAAQ;AAC7D;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
function occurOptions(occurs) {
|
|
4
|
+
return occurs.map((occur) => ({
|
|
5
|
+
value: occur,
|
|
6
|
+
label: occurLabels[occur] ?? occur
|
|
7
|
+
}));
|
|
8
|
+
}
|
|
9
|
+
const occurLabels = {
|
|
10
|
+
filter: "AND",
|
|
11
|
+
must: "AND (scored)",
|
|
12
|
+
should: "OR",
|
|
13
|
+
must_not: "NOT"
|
|
14
|
+
};
|
|
15
|
+
exports.occurOptions = occurOptions;
|
|
16
|
+
//# sourceMappingURL=esQueryOccur.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"esQueryOccur.cjs","sources":["../../src/profiles/esQueryOccur.ts"],"sourcesContent":["/**\n * One leaf condition: which field, which operator, and the operand that\n * operator takes. Which operators a field may use and which advanced qualifiers\n * an operator emits both come from the schema vocabulary, so this file owns the\n * editing surface and never the vocabulary itself.\n */\n\n\nexport function occurOptions(occurs: string[]) {\n return occurs.map((occur) => ({\n value: occur,\n label: occurLabels[occur] ?? occur\n }));\n}\n\n// How each bool clause reads to an author. filter and must both narrow, but\n// only must scores, which is the distinction the raw names hide.\nconst occurLabels: Record<string, string> = {\n filter: \"AND\",\n must: \"AND (scored)\",\n should: \"OR\",\n must_not: \"NOT\"\n};\n"],"names":[],"mappings":";;AAQO,SAAS,aAAa,QAAkB;AAC7C,SAAO,OAAO,IAAI,CAAC,WAAW;AAAA,IAC5B,OAAO;AAAA,IACP,OAAO,YAAY,KAAK,KAAK;AAAA,EAAA,EAC7B;AACJ;AAIA,MAAM,cAAsC;AAAA,EAC1C,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,UAAU;AACZ;;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One leaf condition: which field, which operator, and the operand that
|
|
3
|
+
* operator takes. Which operators a field may use and which advanced qualifiers
|
|
4
|
+
* an operator emits both come from the schema vocabulary, so this file owns the
|
|
5
|
+
* editing surface and never the vocabulary itself.
|
|
6
|
+
*/
|
|
7
|
+
export declare function occurOptions(occurs: string[]): {
|
|
8
|
+
value: string;
|
|
9
|
+
label: string;
|
|
10
|
+
}[];
|
|
11
|
+
//# sourceMappingURL=esQueryOccur.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"esQueryOccur.d.ts","sourceRoot":"","sources":["../../src/profiles/esQueryOccur.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE;;;IAK5C"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
function occurOptions(occurs) {
|
|
2
|
+
return occurs.map((occur) => ({
|
|
3
|
+
value: occur,
|
|
4
|
+
label: occurLabels[occur] ?? occur
|
|
5
|
+
}));
|
|
6
|
+
}
|
|
7
|
+
const occurLabels = {
|
|
8
|
+
filter: "AND",
|
|
9
|
+
must: "AND (scored)",
|
|
10
|
+
should: "OR",
|
|
11
|
+
must_not: "NOT"
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
occurOptions
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=esQueryOccur.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"esQueryOccur.js","sources":["../../src/profiles/esQueryOccur.ts"],"sourcesContent":["/**\n * One leaf condition: which field, which operator, and the operand that\n * operator takes. Which operators a field may use and which advanced qualifiers\n * an operator emits both come from the schema vocabulary, so this file owns the\n * editing surface and never the vocabulary itself.\n */\n\n\nexport function occurOptions(occurs: string[]) {\n return occurs.map((occur) => ({\n value: occur,\n label: occurLabels[occur] ?? occur\n }));\n}\n\n// How each bool clause reads to an author. filter and must both narrow, but\n// only must scores, which is the distinction the raw names hide.\nconst occurLabels: Record<string, string> = {\n filter: \"AND\",\n must: \"AND (scored)\",\n should: \"OR\",\n must_not: \"NOT\"\n};\n"],"names":[],"mappings":"AAQO,SAAS,aAAa,QAAkB;AAC7C,SAAO,OAAO,IAAI,CAAC,WAAW;AAAA,IAC5B,OAAO;AAAA,IACP,OAAO,YAAY,KAAK,KAAK;AAAA,EAAA,EAC7B;AACJ;AAIA,MAAM,cAAsC;AAAA,EAC1C,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,UAAU;AACZ;"}
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const InputField = require("../components/InputField.cjs");
|
|
5
|
+
const select = require("../components/select.cjs");
|
|
6
|
+
const react = require("react");
|
|
7
|
+
const esQueryBuilderModel = require("./esQueryBuilderModel.cjs");
|
|
8
|
+
const esParamOperandExtension = require("./esParamOperandExtension.cjs");
|
|
9
|
+
const esQueryOperandModel = require("./esQueryOperandModel.cjs");
|
|
10
|
+
const esValueCombobox = require("./esValueCombobox.cjs");
|
|
11
|
+
const dateMathPresets = [
|
|
12
|
+
"now-15m",
|
|
13
|
+
"now-1h",
|
|
14
|
+
"now-24h",
|
|
15
|
+
"now-7d",
|
|
16
|
+
"now/d",
|
|
17
|
+
"now"
|
|
18
|
+
];
|
|
19
|
+
function ConditionOperand({
|
|
20
|
+
condition,
|
|
21
|
+
arity,
|
|
22
|
+
rowId,
|
|
23
|
+
params,
|
|
24
|
+
dateMath,
|
|
25
|
+
values,
|
|
26
|
+
set,
|
|
27
|
+
onBindParam,
|
|
28
|
+
onUnbindParam
|
|
29
|
+
}) {
|
|
30
|
+
if (arity === "none" || arity === "group") return null;
|
|
31
|
+
if (arity === "multiple") {
|
|
32
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
33
|
+
ValuesInput,
|
|
34
|
+
{
|
|
35
|
+
values: esQueryOperandModel.multipleConditionValues(condition),
|
|
36
|
+
params,
|
|
37
|
+
...values ? { lookup: values } : {},
|
|
38
|
+
onChange: (next) => {
|
|
39
|
+
if (esQueryBuilderModel.isParamValue(next)) return onBindParam("values", next.param);
|
|
40
|
+
const bound = boundParam(esQueryOperandModel.multipleConditionValues(condition));
|
|
41
|
+
if (next === void 0 && bound) return onUnbindParam(bound);
|
|
42
|
+
if (!Array.isArray(next))
|
|
43
|
+
throw new Error("multiple operand requires a value list");
|
|
44
|
+
set(esQueryOperandModel.conditionOperandPatch({ arity: "multiple", values: next }));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
if (arity === "range") {
|
|
50
|
+
return /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex flex-wrap items-center gap-1", children: ["gte", "lte"].map((bound) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
51
|
+
ValueInput,
|
|
52
|
+
{
|
|
53
|
+
id: `${rowId}-${bound}`,
|
|
54
|
+
label: bound === "gte" ? "From" : "To",
|
|
55
|
+
value: condition[bound],
|
|
56
|
+
params,
|
|
57
|
+
presets: dateMath ? dateMathPresets : [],
|
|
58
|
+
onChange: (next) => {
|
|
59
|
+
if (esQueryBuilderModel.isParamValue(next)) return onBindParam(bound, next.param);
|
|
60
|
+
const mapped = boundParam(condition[bound]);
|
|
61
|
+
if (next === void 0 && mapped) return onUnbindParam(mapped);
|
|
62
|
+
set(
|
|
63
|
+
esQueryOperandModel.conditionOperandPatch({ arity: "range", bound, value: next })
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
bound
|
|
68
|
+
)) });
|
|
69
|
+
}
|
|
70
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
71
|
+
ValueInput,
|
|
72
|
+
{
|
|
73
|
+
id: `${rowId}-value`,
|
|
74
|
+
label: "Value",
|
|
75
|
+
value: condition.value,
|
|
76
|
+
params,
|
|
77
|
+
presets: dateMath ? dateMathPresets : [],
|
|
78
|
+
...values ? { lookup: values } : {},
|
|
79
|
+
onChange: (next) => {
|
|
80
|
+
if (esQueryBuilderModel.isParamValue(next)) return onBindParam("value", next.param);
|
|
81
|
+
const bound = boundParam(condition.value);
|
|
82
|
+
if (next === void 0 && bound) return onUnbindParam(bound);
|
|
83
|
+
set(esQueryOperandModel.conditionOperandPatch({ arity: "single", value: next }));
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
function ValueInput({
|
|
89
|
+
id,
|
|
90
|
+
label,
|
|
91
|
+
value,
|
|
92
|
+
params,
|
|
93
|
+
presets,
|
|
94
|
+
lookup,
|
|
95
|
+
onChange
|
|
96
|
+
}) {
|
|
97
|
+
let node;
|
|
98
|
+
if (lookup) {
|
|
99
|
+
node = /* @__PURE__ */ jsxRuntime.jsx(
|
|
100
|
+
esValueCombobox.ValueCombobox,
|
|
101
|
+
{
|
|
102
|
+
id,
|
|
103
|
+
label,
|
|
104
|
+
lookup,
|
|
105
|
+
value: esQueryBuilderModel.isParamValue(value) || value === void 0 || value === null ? "" : String(value),
|
|
106
|
+
onChange: (next) => onChange(next === "" ? void 0 : next)
|
|
107
|
+
}
|
|
108
|
+
);
|
|
109
|
+
} else {
|
|
110
|
+
const listId = presets.length ? `es-presets-${id}` : void 0;
|
|
111
|
+
node = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
112
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
113
|
+
InputField.InputField,
|
|
114
|
+
{
|
|
115
|
+
"aria-label": label,
|
|
116
|
+
className: "min-w-36",
|
|
117
|
+
placeholder: label,
|
|
118
|
+
value: esQueryBuilderModel.isParamValue(value) || value === void 0 || value === null ? "" : String(value),
|
|
119
|
+
...listId ? { list: listId } : {},
|
|
120
|
+
onChange: (next) => onChange(next === "" ? void 0 : next)
|
|
121
|
+
}
|
|
122
|
+
),
|
|
123
|
+
listId ? /* @__PURE__ */ jsxRuntime.jsx("datalist", { id: listId, children: presets.map((preset) => /* @__PURE__ */ jsxRuntime.jsx("option", { value: preset }, preset)) }) : null
|
|
124
|
+
] });
|
|
125
|
+
}
|
|
126
|
+
return esParamOperandExtension.extendEsParamOperand({
|
|
127
|
+
label,
|
|
128
|
+
value,
|
|
129
|
+
onChange,
|
|
130
|
+
node,
|
|
131
|
+
params
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
function ValuesInput({
|
|
135
|
+
values,
|
|
136
|
+
params,
|
|
137
|
+
lookup,
|
|
138
|
+
onChange
|
|
139
|
+
}) {
|
|
140
|
+
const [draft, setDraft] = react.useState("");
|
|
141
|
+
const bound = values.filter(esQueryBuilderModel.isParamValue);
|
|
142
|
+
const literals = values.filter((value) => !esQueryBuilderModel.isParamValue(value));
|
|
143
|
+
let node;
|
|
144
|
+
if (lookup) {
|
|
145
|
+
node = /* @__PURE__ */ jsxRuntime.jsx(
|
|
146
|
+
esValueCombobox.ValuesCombobox,
|
|
147
|
+
{
|
|
148
|
+
label: "Values",
|
|
149
|
+
lookup,
|
|
150
|
+
values: literals.map(String),
|
|
151
|
+
onChange: (next) => onChange([...next, ...bound])
|
|
152
|
+
}
|
|
153
|
+
);
|
|
154
|
+
} else {
|
|
155
|
+
const commit = () => {
|
|
156
|
+
const parsed = draft.split(",").map((entry) => entry.trim()).filter(Boolean);
|
|
157
|
+
if (!parsed.length) return;
|
|
158
|
+
onChange([...literals, ...parsed, ...bound]);
|
|
159
|
+
setDraft("");
|
|
160
|
+
};
|
|
161
|
+
const removeAt = (index) => onChange([
|
|
162
|
+
...literals.filter((_value, position) => position !== index),
|
|
163
|
+
...bound
|
|
164
|
+
]);
|
|
165
|
+
node = /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex min-w-56 flex-1 flex-wrap items-center gap-1", children: [
|
|
166
|
+
literals.map((value, index) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
167
|
+
"span",
|
|
168
|
+
{
|
|
169
|
+
className: "es-value-chip inline-flex items-center gap-1 rounded border bg-muted px-1.5 py-0.5 text-xs",
|
|
170
|
+
children: [
|
|
171
|
+
String(value),
|
|
172
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
173
|
+
"button",
|
|
174
|
+
{
|
|
175
|
+
type: "button",
|
|
176
|
+
"aria-label": `Remove ${String(value)}`,
|
|
177
|
+
className: "opacity-60 hover:opacity-100",
|
|
178
|
+
onClick: () => removeAt(index),
|
|
179
|
+
children: "×"
|
|
180
|
+
}
|
|
181
|
+
)
|
|
182
|
+
]
|
|
183
|
+
},
|
|
184
|
+
index
|
|
185
|
+
)),
|
|
186
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
187
|
+
InputField.InputField,
|
|
188
|
+
{
|
|
189
|
+
"aria-label": "Add value",
|
|
190
|
+
className: "min-w-32",
|
|
191
|
+
placeholder: "Add value…",
|
|
192
|
+
value: draft,
|
|
193
|
+
onChange: setDraft,
|
|
194
|
+
onKeyDown: (event) => {
|
|
195
|
+
if (event.key !== "Enter" && event.key !== ",") return;
|
|
196
|
+
event.preventDefault();
|
|
197
|
+
commit();
|
|
198
|
+
},
|
|
199
|
+
onBlur: commit
|
|
200
|
+
}
|
|
201
|
+
)
|
|
202
|
+
] });
|
|
203
|
+
}
|
|
204
|
+
return esParamOperandExtension.extendEsParamOperand({
|
|
205
|
+
label: "value",
|
|
206
|
+
value: values,
|
|
207
|
+
onChange,
|
|
208
|
+
node,
|
|
209
|
+
params
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
function boundParam(value) {
|
|
213
|
+
var _a;
|
|
214
|
+
const values = Array.isArray(value) ? value : [value];
|
|
215
|
+
return (_a = values.find(esQueryBuilderModel.isParamValue)) == null ? void 0 : _a.param;
|
|
216
|
+
}
|
|
217
|
+
function QualifierInput({
|
|
218
|
+
name,
|
|
219
|
+
schema,
|
|
220
|
+
value,
|
|
221
|
+
onChange
|
|
222
|
+
}) {
|
|
223
|
+
var _a;
|
|
224
|
+
const label = schema.title ?? name;
|
|
225
|
+
if (schema.type === "boolean") {
|
|
226
|
+
const checked = value === void 0 ? schema.default === true : value === true;
|
|
227
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
228
|
+
"label",
|
|
229
|
+
{
|
|
230
|
+
className: "flex items-center gap-1 text-xs text-muted-foreground",
|
|
231
|
+
title: schema.description ?? void 0,
|
|
232
|
+
children: [
|
|
233
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
234
|
+
"input",
|
|
235
|
+
{
|
|
236
|
+
type: "checkbox",
|
|
237
|
+
checked,
|
|
238
|
+
onChange: (event) => onChange(event.target.checked)
|
|
239
|
+
}
|
|
240
|
+
),
|
|
241
|
+
label
|
|
242
|
+
]
|
|
243
|
+
}
|
|
244
|
+
);
|
|
245
|
+
}
|
|
246
|
+
if ((_a = schema.enum) == null ? void 0 : _a.length) {
|
|
247
|
+
return /* @__PURE__ */ jsxRuntime.jsx("span", { className: "w-40 shrink-0", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
248
|
+
select.Select,
|
|
249
|
+
{
|
|
250
|
+
"aria-label": label,
|
|
251
|
+
value: value === void 0 ? "" : String(value),
|
|
252
|
+
options: [
|
|
253
|
+
{ value: "", label },
|
|
254
|
+
...schema.enum.map((entry) => ({ value: entry, label: entry }))
|
|
255
|
+
],
|
|
256
|
+
onChange: (event) => onChange(event.target.value === "" ? void 0 : event.target.value)
|
|
257
|
+
}
|
|
258
|
+
) });
|
|
259
|
+
}
|
|
260
|
+
const numeric = schema.type === "integer" || schema.type === "number";
|
|
261
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
262
|
+
InputField.InputField,
|
|
263
|
+
{
|
|
264
|
+
"aria-label": label,
|
|
265
|
+
className: "w-36",
|
|
266
|
+
placeholder: label,
|
|
267
|
+
title: schema.description ?? void 0,
|
|
268
|
+
type: numeric ? "number" : "text",
|
|
269
|
+
value: value === void 0 || value === null ? "" : String(value),
|
|
270
|
+
onChange: (next) => {
|
|
271
|
+
if (next === "") return onChange(void 0);
|
|
272
|
+
onChange(numeric ? Number(next) : next);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
);
|
|
276
|
+
}
|
|
277
|
+
exports.ConditionOperand = ConditionOperand;
|
|
278
|
+
exports.QualifierInput = QualifierInput;
|
|
279
|
+
//# sourceMappingURL=esQueryOperandEditors.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"esQueryOperandEditors.cjs","sources":["../../src/profiles/esQueryOperandEditors.tsx"],"sourcesContent":["/**\n * The operand side of a condition row: the value an operator takes, and the\n * advanced qualifiers it emits alongside it. Which operand shape applies comes\n * from the operator's arity, and which qualifiers exist comes from the schema —\n * neither is decided here.\n */\n\nimport { InputField } from \"../components/InputField\";\nimport { Select } from \"../components/select\";\nimport { useState, type ReactNode } from \"react\";\nimport {\n isParamValue,\n type EsCondition,\n type EsValue,\n} from \"./esQueryBuilderModel\";\nimport type { FieldValuesQuery } from \"./esFieldValues\";\nimport type { Patch } from \"./profileWizardModel\";\nimport type { ParamOperand } from \"./esParamMappingModel\";\nimport { extendEsParamOperand } from \"./esParamOperandExtension\";\nimport {\n conditionOperandPatch,\n multipleConditionValues,\n} from \"./esQueryOperandModel\";\nimport type { EsQualifierSchema } from \"./esQueryOperators\";\nimport { ValueCombobox, ValuesCombobox } from \"./esValueCombobox\";\nimport type { ParamDraft } from \"./profileWizardModel\";\n\n// Date math a range over a date field commonly starts from. They are ordinary\n// operand values that the backend resolves — this only saves the typing.\nconst dateMathPresets = [\n \"now-15m\",\n \"now-1h\",\n \"now-24h\",\n \"now-7d\",\n \"now/d\",\n \"now\",\n];\n\nexport function ConditionOperand({\n condition,\n arity,\n rowId,\n params,\n dateMath,\n values,\n set,\n onBindParam,\n onUnbindParam,\n}: {\n condition: EsCondition;\n arity: string;\n rowId: string;\n params: ParamDraft[];\n dateMath: boolean;\n /** The field's own values, when the mapping allows aggregating them. */\n values?: FieldValuesQuery;\n set: (patch: Patch<EsCondition>) => void;\n onBindParam: (operand: ParamOperand, name: string) => void;\n onUnbindParam: (name: string) => void;\n}) {\n if (arity === \"none\" || arity === \"group\") return null;\n if (arity === \"multiple\") {\n return (\n <ValuesInput\n values={multipleConditionValues(condition)}\n params={params}\n {...(values ? { lookup: values } : {})}\n onChange={(next) => {\n if (isParamValue(next)) return onBindParam(\"values\", next.param);\n const bound = boundParam(multipleConditionValues(condition));\n if (next === undefined && bound) return onUnbindParam(bound);\n if (!Array.isArray(next))\n throw new Error(\"multiple operand requires a value list\");\n set(conditionOperandPatch({ arity: \"multiple\", values: next }));\n }}\n />\n );\n }\n if (arity === \"range\") {\n return (\n <span className=\"flex flex-wrap items-center gap-1\">\n {([\"gte\", \"lte\"] as const).map((bound) => (\n <ValueInput\n key={bound}\n id={`${rowId}-${bound}`}\n label={bound === \"gte\" ? \"From\" : \"To\"}\n value={condition[bound]}\n params={params}\n presets={dateMath ? dateMathPresets : []}\n onChange={(next) => {\n if (isParamValue(next)) return onBindParam(bound, next.param);\n const mapped = boundParam(condition[bound]);\n if (next === undefined && mapped) return onUnbindParam(mapped);\n set(\n conditionOperandPatch({ arity: \"range\", bound, value: next }),\n );\n }}\n />\n ))}\n </span>\n );\n }\n return (\n <ValueInput\n id={`${rowId}-value`}\n label=\"Value\"\n value={condition.value}\n params={params}\n presets={dateMath ? dateMathPresets : []}\n {...(values ? { lookup: values } : {})}\n onChange={(next) => {\n if (isParamValue(next)) return onBindParam(\"value\", next.param);\n const bound = boundParam(condition.value);\n if (next === undefined && bound) return onUnbindParam(bound);\n set(conditionOperandPatch({ arity: \"single\", value: next }));\n }}\n />\n );\n}\n\nfunction ValueInput({\n id,\n label,\n value,\n params,\n presets,\n lookup,\n onChange,\n}: {\n id: string;\n label: string;\n value: EsValue;\n params: ParamDraft[];\n presets: string[];\n lookup?: FieldValuesQuery;\n onChange: (next: EsValue) => void;\n}) {\n let node: ReactNode;\n if (lookup) {\n node = (\n <ValueCombobox\n id={id}\n label={label}\n lookup={lookup}\n value={\n isParamValue(value) || value === undefined || value === null\n ? \"\"\n : String(value)\n }\n onChange={(next) => onChange(next === \"\" ? undefined : next)}\n />\n );\n } else {\n const listId = presets.length ? `es-presets-${id}` : undefined;\n node = (\n <>\n <InputField\n aria-label={label}\n className=\"min-w-36\"\n placeholder={label}\n value={\n isParamValue(value) || value === undefined || value === null\n ? \"\"\n : String(value)\n }\n {...(listId ? { list: listId } : {})}\n onChange={(next) => onChange(next === \"\" ? undefined : next)}\n />\n {listId ? (\n <datalist id={listId}>\n {presets.map((preset) => (\n <option key={preset} value={preset} />\n ))}\n </datalist>\n ) : null}\n </>\n );\n }\n return extendEsParamOperand({\n label,\n value,\n onChange,\n node,\n params,\n });\n}\n\nfunction ValuesInput({\n values,\n params,\n lookup,\n onChange,\n}: {\n values: EsValue[];\n params: ParamDraft[];\n lookup?: FieldValuesQuery;\n onChange: (values: EsValue[] | EsValue | undefined) => void;\n}) {\n const [draft, setDraft] = useState(\"\");\n const bound = values.filter(isParamValue);\n const literals = values.filter((value) => !isParamValue(value));\n let node: ReactNode;\n if (lookup) {\n node = (\n <ValuesCombobox\n label=\"Values\"\n lookup={lookup}\n values={literals.map(String)}\n onChange={(next) => onChange([...next, ...bound])}\n />\n );\n } else {\n const commit = () => {\n const parsed = draft\n .split(\",\")\n .map((entry) => entry.trim())\n .filter(Boolean);\n if (!parsed.length) return;\n onChange([...literals, ...parsed, ...bound]);\n setDraft(\"\");\n };\n const removeAt = (index: number) =>\n onChange([\n ...literals.filter((_value, position) => position !== index),\n ...bound,\n ]);\n node = (\n <span className=\"flex min-w-56 flex-1 flex-wrap items-center gap-1\">\n {literals.map((value, index) => (\n <span\n key={index}\n className=\"es-value-chip inline-flex items-center gap-1 rounded border bg-muted px-1.5 py-0.5 text-xs\"\n >\n {String(value)}\n <button\n type=\"button\"\n aria-label={`Remove ${String(value)}`}\n className=\"opacity-60 hover:opacity-100\"\n onClick={() => removeAt(index)}\n >\n ×\n </button>\n </span>\n ))}\n <InputField\n aria-label=\"Add value\"\n className=\"min-w-32\"\n placeholder=\"Add value…\"\n value={draft}\n onChange={setDraft}\n onKeyDown={(event) => {\n if (event.key !== \"Enter\" && event.key !== \",\") return;\n event.preventDefault();\n commit();\n }}\n onBlur={commit}\n />\n </span>\n );\n }\n return extendEsParamOperand({\n label: \"value\",\n value: values,\n onChange,\n node,\n params,\n });\n}\n\nfunction boundParam(value: EsValue | EsValue[]): string | undefined {\n const values = Array.isArray(value) ? value : [value];\n return values.find(isParamValue)?.param;\n}\n\nexport function QualifierInput({\n name,\n schema,\n value,\n onChange,\n}: {\n name: string;\n schema: EsQualifierSchema;\n value: unknown;\n onChange: (next: unknown) => void;\n}) {\n const label = schema.title ?? name;\n if (schema.type === \"boolean\") {\n const checked =\n value === undefined ? schema.default === true : value === true;\n return (\n <label\n className=\"flex items-center gap-1 text-xs text-muted-foreground\"\n title={schema.description ?? undefined}\n >\n <input\n type=\"checkbox\"\n checked={checked}\n onChange={(event) => onChange(event.target.checked)}\n />\n {label}\n </label>\n );\n }\n if (schema.enum?.length) {\n // Select renders `placeholder` as a disabled option, which would trap the\n // qualifier once set. An explicit empty entry is what clears it again.\n return (\n <span className=\"w-40 shrink-0\">\n <Select\n aria-label={label}\n value={value === undefined ? \"\" : String(value)}\n options={[\n { value: \"\", label: label },\n ...schema.enum.map((entry) => ({ value: entry, label: entry })),\n ]}\n onChange={(event) =>\n onChange(event.target.value === \"\" ? undefined : event.target.value)\n }\n />\n </span>\n );\n }\n const numeric = schema.type === \"integer\" || schema.type === \"number\";\n return (\n <InputField\n aria-label={label}\n className=\"w-36\"\n placeholder={label}\n title={schema.description ?? undefined}\n type={numeric ? \"number\" : \"text\"}\n value={value === undefined || value === null ? \"\" : String(value)}\n onChange={(next) => {\n if (next === \"\") return onChange(undefined);\n onChange(numeric ? Number(next) : next);\n }}\n />\n );\n}\n"],"names":["jsx","multipleConditionValues","isParamValue","conditionOperandPatch","ValueCombobox","jsxs","Fragment","InputField","extendEsParamOperand","useState","ValuesCombobox","Select"],"mappings":";;;;;;;;;;AA6BA,MAAM,kBAAkB;AAAA,EACtB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEO,SAAS,iBAAiB;AAAA,EAC/B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAWG;AACD,MAAI,UAAU,UAAU,UAAU,QAAS,QAAO;AAClD,MAAI,UAAU,YAAY;AACxB,WACEA,2BAAAA;AAAAA,MAAC;AAAA,MAAA;AAAA,QACC,QAAQC,oBAAAA,wBAAwB,SAAS;AAAA,QACzC;AAAA,QACC,GAAI,SAAS,EAAE,QAAQ,OAAA,IAAW,CAAA;AAAA,QACnC,UAAU,CAAC,SAAS;AACl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AAA,cACC,MAAK;AAAA,cACL;AAAA,cACA,UAAU,CAAC,UAAU,SAAS,MAAM,OAAO,OAAO;AAAA,YAAA;AAAA,UAAA;AAAA,UAEnD;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAGP;AACA,OAAI,YAAO,SAAP,mBAAa,QAAQ;AAGvB,WACEA,2BAAAA,IAAC,QAAA,EAAK,WAAU,iBACd,UAAAA,2BAAAA;AAAAA,MAACW,OAAAA;AAAAA,MAAA;AAAA,QACC,cAAY;AAAA,QACZ,OAAO,UAAU,SAAY,KAAK,OAAO,KAAK;AAAA,QAC9C,SAAS;AAAA,UACP,EAAE,OAAO,IAAI,MAAA;AAAA,UACb,GAAG,OAAO,KAAK,IAAI,CAAC,WAAW,EAAE,OAAO,OAAO,OAAO,QAAQ;AAAA,QAAA;AAAA,QAEhE,UAAU,CAAC,UACT,SAAS,MAAM,OAAO,UAAU,KAAK,SAAY,MAAM,OAAO,KAAK;AAAA,MAAA;AAAA,IAAA,GAGzE;AAAA,EAEJ;AACA,QAAM,UAAU,OAAO,SAAS,aAAa,OAAO,SAAS;AAC7D,SACEX,2BAAAA;AAAAA,IAACO,WAAAA;AAAAA,IAAA;AAAA,MACC,cAAY;AAAA,MACZ,WAAU;AAAA,MACV,aAAa;AAAA,MACb,OAAO,OAAO,eAAe;AAAA,MAC7B,MAAM,UAAU,WAAW;AAAA,MAC3B,OAAO,UAAU,UAAa,UAAU,OAAO,KAAK,OAAO,KAAK;AAAA,MAChE,UAAU,CAAC,SAAS;AAClB,YAAI,SAAS,GAAI,QAAO,SAAS,MAAS;AAC1C,iBAAS,UAAU,OAAO,IAAI,IAAI,IAAI;AAAA,MACxC;AAAA,IAAA;AAAA,EAAA;AAGN;;;"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { EsCondition } from './esQueryBuilderModel';
|
|
2
|
+
import { FieldValuesQuery } from './esFieldValues';
|
|
3
|
+
import { Patch, ParamDraft } from './profileWizardModel';
|
|
4
|
+
import { ParamOperand } from './esParamMappingModel';
|
|
5
|
+
import { EsQualifierSchema } from './esQueryOperators';
|
|
6
|
+
export declare function ConditionOperand({ condition, arity, rowId, params, dateMath, values, set, onBindParam, onUnbindParam, }: {
|
|
7
|
+
condition: EsCondition;
|
|
8
|
+
arity: string;
|
|
9
|
+
rowId: string;
|
|
10
|
+
params: ParamDraft[];
|
|
11
|
+
dateMath: boolean;
|
|
12
|
+
/** The field's own values, when the mapping allows aggregating them. */
|
|
13
|
+
values?: FieldValuesQuery;
|
|
14
|
+
set: (patch: Patch<EsCondition>) => void;
|
|
15
|
+
onBindParam: (operand: ParamOperand, name: string) => void;
|
|
16
|
+
onUnbindParam: (name: string) => void;
|
|
17
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
18
|
+
export declare function QualifierInput({ name, schema, value, onChange, }: {
|
|
19
|
+
name: string;
|
|
20
|
+
schema: EsQualifierSchema;
|
|
21
|
+
value: unknown;
|
|
22
|
+
onChange: (next: unknown) => void;
|
|
23
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
//# sourceMappingURL=esQueryOperandEditors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"esQueryOperandEditors.d.ts","sourceRoot":"","sources":["../../src/profiles/esQueryOperandEditors.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,EAEL,KAAK,WAAW,EAEjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAM1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAE5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAavD,wBAAgB,gBAAgB,CAAC,EAC/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