All Downloads are FREE. Search and download functionalities are using the official Maven repository.

web-interface.assets.325e2d4b-7854.4630614dce897344968f.js.map Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
{"version":3,"file":"325e2d4b-7854.4630614dce897344968f.js","mappings":"gVAuBA,QAAeA,EAAf,GC8KA,GA/KwBC,EAAAA,EAAAA,SAAOD,GAAWE,OAAM,QAAC,SAAEC,EAAF,MAAYC,EAAZ,QAAmBC,GAApB,QAAmC,CAEjFD,MAAOD,EACPG,SAAUF,EACVC,UAJ8C,IAA3B,sEAAGJ,EAKpB,QAAC,SAAEK,EAAF,QAAYD,EAAZ,SAAqBE,EAArB,MAA+BC,GAAhC,SAA4CC,EAAAA,EAAAA,KAA3C,CAAD,snEAEEJ,EAAW,WAAUA,iBAAyB,GAG5BC,EAASI,OAAOC,MAAMC,WACjCN,EAASO,MAAMC,iBAAiBR,EAASI,OAAOC,MAAMC,WAAY,OACvDN,EAASI,OAAOK,QAAQC,MAAMC,QACjCC,EAAAA,GAGSZ,EAASI,OAAOC,MAAMC,WAIhCN,EAASI,OAAOC,MAAMC,WAC3BN,EAASO,MAAMC,iBAAiBR,EAASI,OAAOC,MAAMC,WAAY,OAK7DN,EAASI,OAAOC,MAAMC,WAI3BN,EAASI,OAAOS,KAAK,IACnBZ,EAAW,OAAS,QAIpBC,EAAQ,QAAU,OAIfF,EAASI,OAAOK,QAAQK,SAASH,QAIjCX,EAASI,OAAOK,QAAQM,QASxBf,EAASI,OAAOC,MAAMC,WAIhBN,EAASI,OAAOC,MAAMC,WAItBN,EAASI,OAAOS,KAAK,IAIhCb,EAASI,OAAOC,MAAMC,WAQtBN,EAASI,OAAOK,QAAQO,KAIxBhB,EAASI,OAAOa,OAAOC,YASvBlB,EAASI,OAAOK,QAAQU,KAAKC,OAI7BpB,EAASI,OAAOK,QAAQE,QAIxBX,EAASO,MAAMc,cAAcrB,EAASI,OAAOkB,MAAMC,SACxCvB,EAASI,OAAOkB,MAAMC,QAIjCvB,EAASO,M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,cAAe,kCAAkC,CAACO,QAASL,WACxI,MAAMM,EAAMD,QAAQ,eACd,mBAAEE,GAAuBF,QAAQ,0BAGjCG,EAAuB,WAC3B5F,KAAK6F,OAAS,CACZC,MAAO,CACL,CACEC,MAAO,2BACPC,MAAO,4BACN,CACDD,MAAO,8BACPC,MAAO,OACN,CACDD,MAAO,6BACPC,MAAO,OACN,CACDD,MAAO,8BACPC,MAAO,OACN,CACDD,MAAO,8BACPC,MAAO,OACN,CACDD,MAAO,+BACPC,MAAO,2BACN,CACDD,MAAO,mBACPC,MAAO,sBACN,CACDD,MAAO,eACPC,MAAO,eACN,CACDD,MAAO,eACPC,MAAO,eACN,CACDD,MAAO,mBACPC,MAAO,UACN,CACDD,MAAO,mBACPC,MAAO,aACN,CACDD,MAAO,SACPC,MAAO,mBACN,CACDD,MAAO,UACPC,MAAO,uCACPC,KAAM,cACL,CACDF,MAAO,OACPC,MAAO,cACN,CACDD,MAAO,OACPC,MAAO,QAGXE,WAAY,CAAC,CACXH,MAAO,OACPC,MAAO,OACN,CACDD,MAAO,sBACPC,MAAO,IACPC,KAAM,SACL,CACDD,MAAO,GACPC,KAAM,UAERD,MAAO,CACL,CACED,MAAO,0BACPC,MAAO,6CACN,CACDD,MAAO,oBACPC,MAAO,cACPC,KAAM,YACL,CACDF,MAAO,UACPC,MAAO,iDACN,CACDD,MAAO,2BACPC,MAAO,iDACN,CACDD,MAAO,2BAEPC,MAAO,iBACN,CACDD,MAAO,8BACPC,MAAO,MACN,CACDD,MAAO,2BACPC,MAAO,QACPC,KAAM,yBACL,CACDF,MAAO,QACPC,MAAO,IACPC,KAAM,YACL,CACDE,aAAc,kBAGlBC,sBAAuB,CACrB,CACEL,MAAO,oCACPC,MAAO,6CACN,CACDD,MAAO,2BACPC,MAAO,IACPC,KAAM,SACL,CACDF,MAAO,2BACPC,MAAO,KACN,CACDD,MAAO,QACPC,MAAO,IACPC,KAAM,YACL,CACDE,aAAc,kCAIrB,EAEDT,EAAIW,SAAST,EAAsBD,GAGnCP,QAAQQ,qBAAuBA,CAA/B,IAIFX,IAAIC,OAAO,kBAAmB,CAAC,UAAW,UAAW,SAAU,cAAe,gBAAiB,oCAAoC,CAACO,QAASL,WAC3I,MAAMM,EAAMD,QAAQ,cACda,EAAWb,QAAQ,UAAUc,MAC7B,qBAAEX,GAAyBH,QAAQ,4BAGnCc,EAAO,WACXvG,KAAKwG,eAAiBZ,EACtB5F,KAAKyG,WAAazG,KAAK0G,iBACxB,EAEDhB,EAAIW,SAASE,EAAMD,GAGnB,WACEtG,KAAK2G,IAAM,iBADb,EAEGC,KAAKL,EAAKM,WAGbzB,QAAQmB,KAAOA,CAAf,IAMAtB,IAAIQ,QAAQ,CAAC,oBAAqBqB,IACiCC,IAC/DA,EAAO3B,QAAU0B,EAClB,G","sources":["webpack://graylog-web-interface/./src/views/components/searchbar/queryinput/ace.ts","webpack://graylog-web-interface/./src/views/components/searchbar/queryinput/StyledAceEditor.jsx","webpack://graylog-web-interface/./src/views/components/searchbar/queryinput/BasicQueryInput.tsx","webpack://graylog-web-interface/./src/views/components/searchbar/SearchBarAutocompletions.ts","webpack://graylog-web-interface/./src/views/components/searchbar/queryinput/QueryInput.tsx","webpack://graylog-web-interface/./src/views/components/searchbar/queryinput/ace-queryinput.js","webpack://graylog-web-interface/./src/views/components/searchbar/queryinput/custom-lucene-mode.js"],"sourcesContent":["/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport AceEditor from 'react-ace';\n\nimport './ace-queryinput';\nimport 'ace-builds/src-noconflict/ext-language_tools';\nimport './custom-lucene-mode';\nimport 'ace-builds/webpack-resolver';\n\nexport default AceEditor;\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport styled, { css } from 'styled-components';\n\nimport { INPUT_BORDER_RADIUS } from 'theme/constants';\n\nimport AceEditor from './ace';\n\nconst StyledAceEditor = styled(AceEditor).attrs(({ aceTheme, theme, $height }) => ({\n  // NOTE: After setting the prop we need to swap them back so AceEditor uses the proper styles\n  theme: aceTheme, /* stylelint-disable-line */\n  $scTheme: theme,\n  $height,\n}))(({ $scTheme, $height, disabled, value }) => css`\n  &.ace-queryinput {\n    ${$height ? `height: ${$height}px !important` : ''};\n    min-height: 34px;\n    width: 100% !important;\n    background-color: ${$scTheme.colors.input.background};\n    color: ${$scTheme.utils.contrastingColor($scTheme.colors.input.background, 'AAA')};\n    border: 1px solid ${$scTheme.colors.variant.light.default};\n    border-radius: ${INPUT_BORDER_RADIUS};\n\n    &.ace_multiselect .ace_selection.ace_start {\n      box-shadow: 0 0 3px 0 ${$scTheme.colors.input.background};\n    }\n\n    .ace_gutter {\n      background: ${$scTheme.colors.input.background};\n      color: ${$scTheme.utils.contrastingColor($scTheme.colors.input.background, 'AAA')};\n    }\n\n    .ace_print-margin {\n      width: 1px;\n      background: ${$scTheme.colors.input.background};\n    }\n\n    .ace_cursor {\n      color: ${$scTheme.colors.gray[50]};\n      display: ${disabled ? 'none' : 'block'} !important;\n    }\n\n    .ace_hidden-cursors {\n      display: ${value ? 'block' : 'none'};\n    }\n\n    .ace_marker-layer .ace_selection {\n      background: ${$scTheme.colors.variant.lightest.default};\n    }\n\n    .ace_marker-layer .ace_step {\n      background: ${$scTheme.colors.variant.warning};\n    }\n\n    .ace_marker-layer .ace_bracket {\n      margin: -1px 0 0 -1px;\n      border: none;\n    }\n\n    .ace_marker-layer .ace_active-line {\n      background: ${$scTheme.colors.input.background};\n    }\n\n    .ace_gutter-active-line {\n      background-color: ${$scTheme.colors.input.background};\n    }\n\n    .ace_marker-layer .ace_selected-word {\n      border: 1px solid ${$scTheme.colors.gray[80]};\n    }\n\n    .ace_invisible {\n      color: ${$scTheme.colors.input.background};\n    }\n\n    .ace_keyword,\n    .ace_meta,\n    .ace_storage,\n    .ace_storage.ace_type,\n    .ace_support.ace_type {\n      color: ${$scTheme.colors.variant.info};\n    }\n\n    .ace_keyword.ace_operator {\n      color: ${$scTheme.colors.global.textDefault};\n    }\n\n    .ace_constant.ace_character,\n    .ace_constant.ace_language,\n    .ace_constant.ace_numeric,\n    .ace_keyword.ace_other.ace_unit,\n    .ace_support.ace_constant,\n    .ace_variable.ace_parameter {\n      color: ${$scTheme.colors.variant.dark.danger};\n    }\n\n    .ace_constant.ace_other {\n      color: ${$scTheme.colors.variant.default};\n    }\n\n    .ace_invalid {\n      color: ${$scTheme.utils.readableColor($scTheme.colors.brand.primary)};\n      background-color: ${$scTheme.colors.brand.primary};\n    }\n\n    .ace_invalid.ace_deprecated {\n      color: ${$scTheme.utils.readableColor($scTheme.colors.brand.primary)};\n      background-color: ${$scTheme.colors.variant.dark.primary};\n    }\n\n    .ace_fold {\n      background-color: ${$scTheme.colors.variant.info};\n      border-color: ${$scTheme.utils.contrastingColor($scTheme.colors.input.background, 'AAA')};\n    }\n\n    .ace_entity.ace_name.ace_function,\n    .ace_support.ace_function,\n    .ace_variable,\n    .ace_term {\n      color: ${$scTheme.colors.variant.darker.info};\n    }\n\n    .ace_support.ace_class,\n    .ace_support.ace_type {\n      color: ${$scTheme.colors.variant.dark.warning};\n    }\n\n    .ace_heading,\n    .ace_markup.ace_heading,\n    .ace_string {\n      color: ${$scTheme.colors.variant.dark.success};\n    }\n\n    .ace_entity.ace_name.ace_tag,\n    .ace_entity.ace_other.ace_attribute-name,\n    .ace_meta.ace_tag,\n    .ace_string.ace_regexp,\n    .ace_variable {\n      color: ${$scTheme.colors.brand.primary};\n    }\n\n    .ace_comment {\n      color: ${$scTheme.colors.gray[60]};\n    }\n\n    .ace_indent-guide {\n      background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bdu3f/BwAlfgctduB85QAAAABJRU5ErkJggg==) right repeat-y;\n    }\n\n    .ace_placeholder {\n      left: 0;\n      right: 0;\n      padding: 0;\n      margin-top: 6px;\n      margin-left: 6px;\n      transform: none;\n      opacity: 1;\n      z-index: auto !important;\n      font-family: ${$scTheme.fonts.family.monospace} !important;\n      font-size: ${$scTheme.fonts.size.body};\n      color: ${$scTheme.colors.input.placeholder};\n      text-overflow: ellipsis;\n      max-width: 100%;\n      overflow: hidden;\n    }\n\n    .ace_marker {\n      border-bottom: 2px dashed;\n      position: absolute;\n      border-radius: 0;\n      margin-top: 1px;\n    }\n\n    .ace_marker.ace_validation_error {\n      border-color: ${$scTheme.colors.variant.danger};\n    }\n\n    .ace_marker.ace_validation_warning {\n      border-color: ${$scTheme.colors.variant.dark.warning};\n    }\n  }\n`);\n\nexport default StyledAceEditor;\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport * as React from 'react';\nimport { forwardRef, useMemo, useCallback } from 'react';\nimport PropTypes from 'prop-types';\nimport { useTheme } from 'styled-components';\n\nimport type { QueryValidationState } from 'views/components/searchbar/queryvalidation/types';\n\nimport StyledAceEditor from './StyledAceEditor';\nimport type { Editor } from './ace-types';\n\nexport type BaseProps = {\n  className?: string\n  error?: QueryValidationState,\n  height?: number,\n  maxLines?: number,\n  onLoad?: (editor: Editor) => void,\n  placeholder?: string,\n  value: string,\n  warning?: QueryValidationState,\n  wrapEnabled?: boolean,\n  inputId?: string,\n};\n\ntype EnabledInputProps = BaseProps & {\n  disabled: false,\n  enableAutocompletion?: boolean,\n  onBlur?: (query: string) => void,\n  onChange: (query: string) => Promise,\n  onExecute: (editor: Editor) => void,\n};\ntype DisabledInputProps = BaseProps & { disabled: true };\ntype Props = EnabledInputProps | DisabledInputProps\n\nconst isEnabledInput = (props: Props): props is EnabledInputProps => !props.disabled;\nconst isDisabledInput = (props: Props): props is DisabledInputProps => props.disabled;\n\nconst getMarkers = (errors: QueryValidationState | undefined, warnings: QueryValidationState | undefined) => {\n  const markerClassName = 'ace_marker';\n  const createMarkers = (explanations = [], className = '') => explanations.map(({\n    beginLine,\n    beginColumn,\n    endLine,\n    endColumn,\n  }) => ({\n    startRow: beginLine,\n    startCol: beginColumn,\n    endRow: endLine,\n    endCol: endColumn,\n    type: 'background',\n    className,\n  }));\n\n  return [\n    ...createMarkers(errors?.explanations, `${markerClassName} ace_validation_error`),\n    ...createMarkers(warnings?.explanations, `${markerClassName} ace_validation_warning`),\n  ];\n};\n\n// Basic query input component which is being implemented by the `QueryInput` component.\n// This is just a very basic query input which can be implemented for example to display a read only query.\nconst BasicQueryInput = forwardRef((props, ref) => {\n  const {\n    className,\n    disabled,\n    error,\n    height,\n    maxLines,\n    placeholder,\n    value,\n    warning,\n    wrapEnabled,\n    onLoad,\n    inputId,\n  } = props;\n  const theme = useTheme();\n  const markers = useMemo(() => getMarkers(error, warning), [error, warning]);\n  const _onLoad = useCallback((editor) => {\n    if (editor) {\n      editor.renderer.setScrollMargin(7, 6);\n      editor.renderer.setPadding(12);\n\n      if (inputId) {\n        editor.textInput.getElement().setAttribute('id', inputId);\n      }\n\n      onLoad?.(editor);\n    }\n  }, [inputId, onLoad]);\n  const editorProps = useMemo(() => ({ $blockScrolling: Infinity, selectionStyle: 'line' }), []);\n  const setOptions = useMemo(() => ({ indentedSoftWrap: false }), []);\n\n  const commonProps = {\n    $height: height,\n    aceTheme: 'ace-queryinput', // NOTE: is usually just `theme` but we need that prop for styled-components\n    className,\n    disabled,\n    editorProps,\n    fontSize: theme.fonts.size.small,\n    highlightActiveLine: false,\n    markers,\n    maxLines,\n    minLines: 1,\n    mode: 'lucene',\n    name: 'QueryEditor',\n    placeholder,\n    readOnly: disabled,\n    ref,\n    setOptions,\n    showGutter: false,\n    showPrintMargin: false,\n    value,\n    wrapEnabled,\n    onLoad: _onLoad,\n  };\n\n  if (isDisabledInput(props)) {\n    return ;\n  }\n\n  if (isEnabledInput(props)) {\n    const {\n      onBlur,\n      onChange,\n      onExecute,\n      enableAutocompletion,\n    } = props;\n\n    return (\n      \n    );\n  }\n\n  return null;\n});\n\nBasicQueryInput.propTypes = {\n  className: PropTypes.string,\n  // @ts-ignore\n  disabled: PropTypes.bool,\n  enableAutocompletion: PropTypes.bool,\n  error: PropTypes.any,\n  height: PropTypes.number,\n  inputId: PropTypes.string,\n  maxLines: PropTypes.number,\n  onBlur: PropTypes.func,\n  onChange: PropTypes.func,\n  onExecute: PropTypes.func,\n  onLoad: PropTypes.func,\n  placeholder: PropTypes.string,\n  value: PropTypes.string,\n  warning: PropTypes.any,\n  wrapEnabled: PropTypes.bool,\n};\n\nBasicQueryInput.defaultProps = {\n  className: '',\n  disabled: false,\n  enableAutocompletion: false,\n  error: undefined,\n  height: undefined,\n  inputId: undefined,\n  maxLines: 4,\n  onBlur: undefined,\n  onChange: undefined,\n  onExecute: undefined,\n  onLoad: undefined,\n  placeholder: '',\n  value: '',\n  warning: undefined,\n  wrapEnabled: true,\n};\n\nexport default React.memo(BasicQueryInput);\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport { sortBy, uniqBy } from 'lodash';\n\nimport type { TimeRange, NoTimeRangeOverride } from 'views/logic/queries/Query';\nimport type FieldTypeMapping from 'views/logic/fieldtypes/FieldTypeMapping';\n\nimport type {\n  Editor,\n  ResultsCallback,\n  Session,\n  Position,\n  CompletionResult,\n  AutoCompleter,\n  Token,\n  Line,\n} from './queryinput/ace-types';\n\nexport type FieldTypes = { all: FieldIndex, query: FieldIndex };\ntype FieldIndex = { [fieldName: string]: FieldTypeMapping };\n\nexport type CompleterContext = Readonly<{\n  currentToken: Token | undefined | null,\n  lastToken: Token | undefined | null,\n  prefix: string,\n  tokens: Array,\n  currentTokenIdx: number,\n  timeRange?: TimeRange | NoTimeRangeOverride,\n  streams?: Array,\n  fieldTypes?: FieldTypes,\n  userTimezone: string,\n}>;\n\nexport interface Completer {\n  getCompletions(context: CompleterContext): Array | Promise>;\n  shouldShowCompletions?: (currentLine: number, lines: Array>) => boolean;\n  identifierRegexps?: RegExp[];\n}\n\nconst onCompleterError = (error: Error) => {\n  // eslint-disable-next-line no-console\n  console.warn('Exception thrown in completer: ', error);\n};\n\nexport default class SearchBarAutoCompletions implements AutoCompleter {\n  private readonly completers: Array;\n\n  private readonly timeRange: TimeRange | NoTimeRangeOverride | undefined;\n\n  private readonly streams: Array;\n\n  private readonly fieldTypes: FieldTypes;\n\n  private readonly userTimezone: string;\n\n  constructor(completers: Array, timeRange: TimeRange | NoTimeRangeOverride | undefined, streams: Array, fieldTypes: FieldTypes, userTimezone: string) {\n    this.completers = completers;\n    this.timeRange = timeRange;\n    this.streams = streams;\n    this.fieldTypes = fieldTypes;\n    this.userTimezone = userTimezone;\n  }\n\n  getCompletions = async (editor: Editor, _session: Session, pos: Position, prefix: string, callback: ResultsCallback) => {\n    const tokens = editor.session.getTokens(pos.row);\n    const currentToken = editor.session.getTokenAt(pos.row, pos.column);\n    const currentTokenIdx = tokens.findIndex((t) => (t === currentToken));\n\n    const lastToken: Token | undefined | null = currentTokenIdx > 0 ? tokens[currentTokenIdx - 1] : null;\n\n    const results = await Promise.all(\n      this.completers\n        .map(async (completer) => {\n          try {\n            return await completer.getCompletions({\n              currentToken,\n              lastToken,\n              prefix,\n              tokens,\n              currentTokenIdx,\n              timeRange: this.timeRange,\n              streams: this.streams,\n              fieldTypes: this.fieldTypes,\n              userTimezone: this.userTimezone,\n            });\n          } catch (e) {\n            onCompleterError(e);\n          }\n\n          return [];\n        }),\n    );\n    const uniqResults = uniqBy(sortBy(results.flat(), ['score', 'name']), 'name');\n\n    callback(null, uniqResults);\n  };\n\n  shouldShowCompletions = (currentLine: number, lines: Array>) => {\n    return this.completers.some((completer) => {\n      if (typeof completer.shouldShowCompletions === 'function') {\n        try {\n          return completer.shouldShowCompletions(currentLine, lines);\n        } catch (e) {\n          onCompleterError(e);\n        }\n      }\n\n      return false;\n    });\n  };\n\n  get identifierRegexps() { return this.completers.map((completer) => completer.identifierRegexps ?? []).flat(); }\n}\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport * as React from 'react';\nimport { useCallback, useMemo, useContext, useRef } from 'react';\nimport PropTypes from 'prop-types';\nimport { isEmpty } from 'lodash';\nimport type { FormikErrors } from 'formik';\n\nimport UserPreferencesContext from 'contexts/UserPreferencesContext';\nimport type { TimeRange, NoTimeRangeOverride } from 'views/logic/queries/Query';\nimport QueryValidationActions from 'views/actions/QueryValidationActions';\nimport type { QueryValidationState } from 'views/components/searchbar/queryvalidation/types';\nimport useFieldTypes from 'views/logic/fieldtypes/useFieldTypes';\nimport { DEFAULT_TIMERANGE } from 'views/Constants';\nimport { isNoTimeRangeOverride } from 'views/typeGuards/timeRange';\nimport usePluginEntities from 'hooks/usePluginEntities';\nimport useUserDateTime from 'hooks/useUserDateTime';\n\nimport type { AutoCompleter, Editor } from './ace-types';\nimport type { BaseProps } from './BasicQueryInput';\nimport BasicQueryInput from './BasicQueryInput';\n\nimport SearchBarAutoCompletions from '../SearchBarAutocompletions';\nimport type { Completer, FieldTypes } from '../SearchBarAutocompletions';\n\nconst defaultCompleterFactory = (...args: ConstructorParameters) => new SearchBarAutoCompletions(...args);\n\nconst displayValidationErrors = () => {\n  QueryValidationActions.displayValidationErrors();\n};\n\nconst handleExecution = ({\n  editor,\n  onExecute,\n  value,\n  error,\n  disableExecution,\n  isValidating,\n  validate,\n}: {\n  editor: Editor,\n  onExecute: (query: string) => void,\n  value: string,\n  error: QueryValidationState | undefined,\n  disableExecution: boolean,\n  isValidating: boolean,\n  validate: () => Promise>,\n}) => {\n  const execute = () => {\n    if (editor?.completer && editor.completer.popup) {\n      editor.completer.detach();\n    }\n\n    onExecute(value);\n  };\n\n  if (isValidating) {\n    validate().then((errors) => {\n      if (isEmpty(errors)) {\n        execute();\n      } else {\n        displayValidationErrors();\n      }\n    });\n\n    return;\n  }\n\n  if (error) {\n    displayValidationErrors();\n  }\n\n  if (disableExecution || error) {\n    return;\n  }\n\n  execute();\n};\n\n// This function takes care of all editor configuration options, which do not rely on external data.\n// It will only run once, on mount, which is important for e.g. the event listeners.\nconst _onLoadEditor = (editor, isInitialTokenizerUpdate: React.MutableRefObject) => {\n  if (editor) {\n    editor.commands.removeCommands(['find', 'indent', 'outdent']);\n\n    editor.session.on('tokenizerUpdate', (_input, { bgTokenizer: { currentLine, lines } }) => {\n      if (editor.isFocused() && !editor.completer?.activated && !isInitialTokenizerUpdate.current) {\n        editor.completers.forEach((completer) => {\n          if (completer?.shouldShowCompletions(currentLine, lines)) {\n            editor.execCommand('startAutocomplete');\n          }\n        });\n      }\n\n      if (isInitialTokenizerUpdate.current) {\n        // eslint-disable-next-line no-param-reassign\n        isInitialTokenizerUpdate.current = false;\n      }\n    });\n  }\n};\n\n// This function takes care of updating the editor config on every render.\n// This is necessary for configuration options which rely on external data.\n// Unfortunately it is not possible to configure for example the command once\n// with the `onLoad` or `commands` prop, because the reference for the related function will be outdated.\nconst _updateEditorConfiguration = (node, completer, onExecute) => {\n  const editor = node && node.editor;\n\n  if (editor) {\n    editor.commands.addCommand({\n      name: 'Execute',\n      bindKey: { win: 'Enter', mac: 'Enter' },\n      exec: onExecute,\n    });\n\n    editor.commands.on('afterExec', () => {\n      if (editor.completer?.autoSelect) {\n        editor.completer.autoSelect = false;\n      }\n\n      const completerCommandKeyBinding = editor.completer?.keyboardHandler?.commandKeyBinding;\n\n      if (completerCommandKeyBinding?.tab && completerCommandKeyBinding.tab.name !== 'improved-tab') {\n        editor.completer.keyboardHandler.addCommand({\n          name: 'improved-tab',\n          bindKey: { win: 'Tab', mac: 'Tab' },\n          exec: (currentEditor: Editor) => {\n            const result = currentEditor.completer.insertMatch();\n\n            if (!result && !currentEditor.tabstopManager) {\n              currentEditor.completer.goTo('down');\n\n              return currentEditor.completer.insertMatch();\n            }\n\n            return result;\n          },\n        });\n      }\n    });\n\n    editor.completers = [completer];\n  }\n};\n\nconst useCompleter = ({ streams, timeRange, completerFactory, userTimezone }: Pick & { userTimezone: string }) => {\n  const completers = usePluginEntities('views.completers') ?? [];\n  const { data: queryFields } = useFieldTypes(streams, isNoTimeRangeOverride(timeRange) ? DEFAULT_TIMERANGE : timeRange);\n  const { data: allFields } = useFieldTypes([], DEFAULT_TIMERANGE);\n  const fieldTypes = useMemo(() => {\n    const queryFieldsByName = Object.fromEntries((queryFields ?? []).map((field) => [field.name, field]));\n    const allFieldsByName = Object.fromEntries((allFields ?? []).map((field) => [field.name, field]));\n\n    return { all: allFieldsByName, query: queryFieldsByName };\n  }, [allFields, queryFields]);\n\n  // eslint-disable-next-line react-hooks/exhaustive-deps\n  return useMemo(() => completerFactory(completers, timeRange, streams, fieldTypes, userTimezone), [completerFactory, timeRange, streams, fieldTypes, userTimezone]);\n};\n\ntype Props = BaseProps & {\n  completerFactory?: (\n    completers: Array,\n    timeRange: TimeRange | NoTimeRangeOverride | undefined,\n    streams: Array,\n    fieldTypes: FieldTypes,\n    userTimezone: string,\n  ) => AutoCompleter,\n  disableExecution?: boolean,\n  isValidating?: boolean,\n  name: string,\n  onBlur?: (query: string) => void,\n  onChange: (changeEvent: { target: { value: string, name: string } }) => Promise,\n  onExecute: (query: string) => void,\n  streams?: Array | undefined,\n  timeRange?: TimeRange | NoTimeRangeOverride | undefined,\n  validate: () => Promise>,\n};\n\nconst QueryInput = ({\n  className,\n  completerFactory = defaultCompleterFactory,\n  disableExecution,\n  error,\n  height,\n  inputId,\n  isValidating,\n  maxLines,\n  onBlur,\n  onChange,\n  onExecute: onExecuteProp,\n  placeholder,\n  streams,\n  timeRange,\n  value,\n  validate,\n  warning,\n  wrapEnabled,\n  name,\n}: Props) => {\n  const { userTimezone } = useUserDateTime();\n  const isInitialTokenizerUpdate = useRef(true);\n  const { enableSmartSearch } = useContext(UserPreferencesContext);\n  const completer = useCompleter({ streams, timeRange, completerFactory, userTimezone });\n  const onLoadEditor = useCallback((editor: Editor) => _onLoadEditor(editor, isInitialTokenizerUpdate), []);\n  const onExecute = useCallback((editor: Editor) => handleExecution({\n    editor,\n    onExecute: onExecuteProp,\n    value,\n    error,\n    disableExecution,\n    isValidating,\n    validate,\n  }), [onExecuteProp, value, error, disableExecution, isValidating, validate]);\n  const updateEditorConfiguration = useCallback((node) => _updateEditorConfiguration(node, completer, onExecute), [onExecute, completer]);\n  const _onChange = useCallback((newQuery) => {\n    onChange({ target: { value: newQuery, name } });\n\n    return Promise.resolve(newQuery);\n  }, [name, onChange]);\n\n  return (\n    \n  );\n};\n\nQueryInput.propTypes = {\n  className: PropTypes.string,\n  completerFactory: PropTypes.func,\n  disableExecution: PropTypes.bool,\n  error: PropTypes.any,\n  inputId: PropTypes.string,\n  height: PropTypes.number,\n  isValidating: PropTypes.bool.isRequired,\n  maxLines: PropTypes.number,\n  onBlur: PropTypes.func,\n  onChange: PropTypes.func.isRequired,\n  onExecute: PropTypes.func.isRequired,\n  placeholder: PropTypes.string,\n  streams: PropTypes.array,\n  timeRange: PropTypes.object,\n  value: PropTypes.string,\n  warning: PropTypes.any,\n  wrapEnabled: PropTypes.bool,\n  validate: PropTypes.func.isRequired,\n};\n\nQueryInput.defaultProps = {\n  className: '',\n  completerFactory: defaultCompleterFactory,\n  disableExecution: false,\n  error: undefined,\n  height: undefined,\n  inputId: undefined,\n  maxLines: undefined,\n  onBlur: undefined,\n  placeholder: '',\n  streams: undefined,\n  timeRange: undefined,\n  value: '',\n  warning: undefined,\n  wrapEnabled: undefined,\n};\n\nexport default QueryInput;\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\n// eslint-disable-next-line no-undef\nace.define('ace/theme/ace-queryinput', ['require', 'exports', 'module', 'ace/lib/dom'], (acequire, exports) => {\n  /* eslint-disable no-param-reassign */\n  exports.isDark = false;\n\n  exports.cssClass = 'ace-queryinput';\n  /* eslint-enable no-param-reassign */\n\n  const dom = acequire('../lib/dom');\n\n  dom.importCssString(exports.cssText, exports.cssClass);\n});\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\n// eslint-disable-next-line no-undef\nace.define('ace/mode/lucene_highlight_rules', ['require', 'exports', 'module', 'ace/lib/oop', 'ace/mode/text_highlight_rules'], (require, exports) => {\n  const oop = require('../lib/oop');\n  const { TextHighlightRules } = require('./text_highlight_rules');\n\n  // eslint-disable-next-line func-names\n  const LuceneHighlightRules = function () {\n    this.$rules = {\n      start: [\n        {\n          token: 'constant.language.escape',\n          regex: /\\\\[-+&|!(){}[\\]^\"~*?:\\\\]/,\n        }, {\n          token: 'constant.character.negation',\n          regex: '\\\\-',\n        }, {\n          token: 'constant.character.interro',\n          regex: '\\\\?',\n        }, {\n          token: 'constant.character.required',\n          regex: '\\\\+',\n        }, {\n          token: 'constant.character.asterisk',\n          regex: '\\\\*',\n        }, {\n          token: 'constant.character.proximity',\n          regex: '~(?:0\\\\.[0-9]+|[0-9]+)?',\n        }, {\n          token: 'keyword.operator',\n          regex: '(AND|OR|NOT|TO)\\\\b',\n        }, {\n          token: 'paren.lparen',\n          regex: '[\\\\(\\\\{\\\\[]',\n        }, {\n          token: 'paren.rparen',\n          regex: '[\\\\)\\\\}\\\\]]',\n        }, {\n          token: 'keyword.operator',\n          regex: /[><=^]/,\n        }, {\n          token: 'constant.numeric',\n          regex: /\\d[\\d.-]*/,\n        }, {\n          token: 'string',\n          regex: /\"(?:\\\\\"|[^\"])*\"/,\n        }, {\n          token: 'keyword',\n          regex: /(?:\\\\.|[^\\s\\-+&|!(){}[\\]^\"~*?:\\\\])+:/,\n          next: 'maybeRegex',\n        }, {\n          token: 'term',\n          regex: /[\\w(\\\\/)]+/,\n        }, {\n          token: 'text',\n          regex: /\\s+/,\n        },\n      ],\n      maybeRegex: [{\n        token: 'text',\n        regex: /\\s+/,\n      }, {\n        token: 'string.regexp.start',\n        regex: '/',\n        next: 'regex',\n      }, {\n        regex: '',\n        next: 'start',\n      }],\n      regex: [\n        {\n          token: 'regexp.keyword.operator',\n          regex: '\\\\\\\\(?:u[\\\\da-fA-F]{4}|x[\\\\da-fA-F]{2}|.)',\n        }, {\n          token: 'string.regexp.end',\n          regex: '/[sxngimy]*',\n          next: 'no_regex',\n        }, {\n          token: 'invalid',\n          regex: /\\{\\d+\\b,?\\d*\\}[+*]|[+*$^?][+*]|[$^][?]|\\?{3,}/,\n        }, {\n          token: 'constant.language.escape',\n          regex: /\\(\\?[:=!]|\\)|\\{\\d+\\b,?\\d*\\}|[+*]\\?|[()$^+*?.]/,\n        }, {\n          token: 'constant.language.escape',\n          // eslint-disable-next-line no-useless-escape\n          regex: '<\\d+-\\d+>|[~&@]',\n        }, {\n          token: 'constant.language.delimiter',\n          regex: /\\|/,\n        }, {\n          token: 'constant.language.escape',\n          regex: /\\[\\^?/,\n          next: 'regex_character_class',\n        }, {\n          token: 'empty',\n          regex: '$',\n          next: 'no_regex',\n        }, {\n          defaultToken: 'string.regexp',\n        },\n      ],\n      regex_character_class: [\n        {\n          token: 'regexp.charclass.keyword.operator',\n          regex: '\\\\\\\\(?:u[\\\\da-fA-F]{4}|x[\\\\da-fA-F]{2}|.)',\n        }, {\n          token: 'constant.language.escape',\n          regex: ']',\n          next: 'regex',\n        }, {\n          token: 'constant.language.escape',\n          regex: '-',\n        }, {\n          token: 'empty',\n          regex: '$',\n          next: 'no_regex',\n        }, {\n          defaultToken: 'string.regexp.charachterclass',\n        },\n      ],\n    };\n  };\n\n  oop.inherits(LuceneHighlightRules, TextHighlightRules);\n\n  // eslint-disable-next-line no-param-reassign\n  exports.LuceneHighlightRules = LuceneHighlightRules;\n});\n\n// eslint-disable-next-line no-undef\nace.define('ace/mode/lucene', ['require', 'exports', 'module', 'ace/lib/oop', 'ace/mode/text', 'ace/mode/lucene_highlight_rules'], (require, exports) => {\n  const oop = require('../lib/oop');\n  const TextMode = require('./text').Mode;\n  const { LuceneHighlightRules } = require('./lucene_highlight_rules');\n\n  // eslint-disable-next-line func-names\n  const Mode = function () {\n    this.HighlightRules = LuceneHighlightRules;\n    this.$behaviour = this.$defaultBehaviour;\n  };\n\n  oop.inherits(Mode, TextMode);\n\n  // eslint-disable-next-line func-names\n  (function () {\n    this.$id = 'ace/mode/lucene';\n  }).call(Mode.prototype);\n\n  // eslint-disable-next-line no-param-reassign\n  exports.Mode = Mode;\n});\n\n// eslint-disable-next-line func-names\n(function () {\n  // eslint-disable-next-line no-undef\n  ace.require(['ace/mode/lucene'], (m) => {\n    if (typeof module === 'object' && typeof exports === 'object' && module) {\n      module.exports = m;\n    }\n  });\n}());\n"],"names":["AceEditor","styled","attrs","aceTheme","theme","$height","$scTheme","disabled","value","css","colors","input","background","utils","contrastingColor","variant","light","default","INPUT_BORDER_RADIUS","gray","lightest","warning","info","global","textDefault","dark","danger","readableColor","brand","primary","darker","success","fonts","family","monospace","size","body","placeholder","BasicQueryInput","forwardRef","props","ref","className","error","height","maxLines","wrapEnabled","onLoad","inputId","useTheme","markers","useMemo","errors","warnings","createMarkers","map","beginLine","beginColumn","endLine","endColumn","startRow","startCol","endRow","endCol","type","explanations","getMarkers","_onLoad","useCallback","editor","renderer","setScrollMargin","setPadding","textInput","getElement","setAttribute","editorProps","$blockScrolling","Infinity","selectionStyle","setOptions","indentedSoftWrap","commonProps","fontSize","small","highlightActiveLine","minLines","mode","name","readOnly","showGutter","showPrintMargin","isDisabledInput","isEnabledInput","onBlur","onChange","onExecute","enableAutocompletion","enableBasicAutocompletion","enableLiveAutocompletion","propTypes","PropTypes","defaultProps","undefined","React","onCompleterError","console","warn","SearchBarAutoCompletions","constructor","completers","timeRange","streams","fieldTypes","userTimezone","async","_session","pos","prefix","callback","tokens","session","getTokens","row","currentToken","getTokenAt","column","currentTokenIdx","findIndex","t","lastToken","results","Promise","all","this","completer","getCompletions","e","uniqBy","sortBy","flat","currentLine","lines","some","shouldShowCompletions","identifierRegexps","defaultCompleterFactory","args","displayValidationErrors","QueryValidationActions","QueryInput","completerFactory","disableExecution","isValidating","onExecuteProp","validate","useUserDateTime","isInitialTokenizerUpdate","useRef","enableSmartSearch","useContext","UserPreferencesContext","usePluginEntities","data","queryFields","useFieldTypes","isNoTimeRangeOverride","DEFAULT_TIMERANGE","allFields","queryFieldsByName","Object","fromEntries","field","query","useCompleter","onLoadEditor","commands","removeCommands","on","_input","bgTokenizer","isFocused","activated","current","forEach","execCommand","_onLoadEditor","execute","popup","detach","then","isEmpty","handleExecution","updateEditorConfiguration","node","addCommand","bindKey","win","mac","exec","autoSelect","completerCommandKeyBinding","keyboardHandler","commandKeyBinding","tab","currentEditor","result","insertMatch","tabstopManager","goTo","_updateEditorConfiguration","_onChange","newQuery","target","resolve","ace","define","acequire","exports","isDark","cssClass","importCssString","cssText","require","oop","TextHighlightRules","LuceneHighlightRules","$rules","start","token","regex","next","maybeRegex","defaultToken","regex_character_class","inherits","TextMode","Mode","HighlightRules","$behaviour","$defaultBehaviour","$id","call","prototype","m","module"],"sourceRoot":""}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy