@splunk/dynamic-editors 0.36.1

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.
Files changed (113) hide show
  1. package/CHANGELOG.md +805 -0
  2. package/DynamicEditor.js +498 -0
  3. package/DynamicEditor.js.map +1 -0
  4. package/LICENSE.md +14 -0
  5. package/containers/EditorItem.js +493 -0
  6. package/containers/EditorItem.js.map +1 -0
  7. package/containers/EditorLayout.js +493 -0
  8. package/containers/EditorLayout.js.map +1 -0
  9. package/containers/EditorLayoutItem.js +493 -0
  10. package/containers/EditorLayoutItem.js.map +1 -0
  11. package/containers/EncodingItem.js +6 -0
  12. package/containers/EncodingItem.js.map +1 -0
  13. package/editors/AdvancedConfigCard.js +78 -0
  14. package/editors/AdvancedConfigCard.js.map +1 -0
  15. package/editors/ArrayOfStringsEditor.js +37 -0
  16. package/editors/ArrayOfStringsEditor.js.map +1 -0
  17. package/editors/CheckboxEditor.js +57 -0
  18. package/editors/CheckboxEditor.js.map +1 -0
  19. package/editors/ColorEditor.js +43 -0
  20. package/editors/ColorEditor.js.map +1 -0
  21. package/editors/ColumnMultiSelectionByFieldNameEditor.js +37 -0
  22. package/editors/ColumnMultiSelectionByFieldNameEditor.js.map +1 -0
  23. package/editors/ColumnMultiSelectionEditor.js +37 -0
  24. package/editors/ColumnMultiSelectionEditor.js.map +1 -0
  25. package/editors/ColumnSelectionEditor.js +37 -0
  26. package/editors/ColumnSelectionEditor.js.map +1 -0
  27. package/editors/CustomizedInSourceEditor.js +15 -0
  28. package/editors/CustomizedInSourceEditor.js.map +1 -0
  29. package/editors/DynamicColorEditor.js +193 -0
  30. package/editors/DynamicColorEditor.js.map +1 -0
  31. package/editors/DynamicColorEditorWithPrecedence.js +213 -0
  32. package/editors/DynamicColorEditorWithPrecedence.js.map +1 -0
  33. package/editors/DynamicItemEditor.js +46 -0
  34. package/editors/DynamicItemEditor.js.map +1 -0
  35. package/editors/ImageEditor.js +81 -0
  36. package/editors/ImageEditor.js.map +1 -0
  37. package/editors/MarkdownEditor.js +25 -0
  38. package/editors/MarkdownEditor.js.map +1 -0
  39. package/editors/MultiColorPickerEditor.js +76 -0
  40. package/editors/MultiColorPickerEditor.js.map +1 -0
  41. package/editors/NumberEditor.js +37 -0
  42. package/editors/NumberEditor.js.map +1 -0
  43. package/editors/PercentEditor.js +37 -0
  44. package/editors/PercentEditor.js.map +1 -0
  45. package/editors/PresetSelectorEditor.js +81 -0
  46. package/editors/PresetSelectorEditor.js.map +1 -0
  47. package/editors/RadioBarEditor.js +37 -0
  48. package/editors/RadioBarEditor.js.map +1 -0
  49. package/editors/SelectEditor.js +37 -0
  50. package/editors/SelectEditor.js.map +1 -0
  51. package/editors/SeriesColorsByFieldEditor.js +76 -0
  52. package/editors/SeriesColorsByFieldEditor.js.map +1 -0
  53. package/editors/SeriesColorsEditor.js +104 -0
  54. package/editors/SeriesColorsEditor.js.map +1 -0
  55. package/editors/SliderEditor.js +41 -0
  56. package/editors/SliderEditor.js.map +1 -0
  57. package/editors/StaticItemEditor.js +46 -0
  58. package/editors/StaticItemEditor.js.map +1 -0
  59. package/editors/TableColumnFormatterEditor.js +493 -0
  60. package/editors/TableColumnFormatterEditor.js.map +1 -0
  61. package/editors/TextAreaEditor.js +45 -0
  62. package/editors/TextAreaEditor.js.map +1 -0
  63. package/editors/TextEditor.js +37 -0
  64. package/editors/TextEditor.js.map +1 -0
  65. package/editors/ThresholdEditor.js +87 -0
  66. package/editors/ThresholdEditor.js.map +1 -0
  67. package/editors/ToggleEditor.js +57 -0
  68. package/editors/ToggleEditor.js.map +1 -0
  69. package/editors/useColumnSelectorFooterMessage.js +6 -0
  70. package/editors/useColumnSelectorFooterMessage.js.map +1 -0
  71. package/fonts/SplunkDataSans_W_Bd.woff +0 -0
  72. package/fonts/SplunkDataSans_W_Bd.woff2 +0 -0
  73. package/fonts/SplunkDataSans_W_Blk.woff +0 -0
  74. package/fonts/SplunkDataSans_W_Blk.woff2 +0 -0
  75. package/fonts/SplunkDataSans_W_Lt.woff +0 -0
  76. package/fonts/SplunkDataSans_W_Lt.woff2 +0 -0
  77. package/fonts/SplunkDataSans_W_Md.woff +0 -0
  78. package/fonts/SplunkDataSans_W_Md.woff2 +0 -0
  79. package/fonts/SplunkDataSans_W_Rg.woff +0 -0
  80. package/fonts/SplunkDataSans_W_Rg.woff2 +0 -0
  81. package/fonts/SplunkDataSans_W_XBd.woff +0 -0
  82. package/fonts/SplunkDataSans_W_XBd.woff2 +0 -0
  83. package/fonts/inconsolata-regular.woff +0 -0
  84. package/fonts/proxima-bold-webfont.woff +0 -0
  85. package/fonts/proxima-regular-webfont.woff +0 -0
  86. package/fonts/proxima-semibold-webfont.woff +0 -0
  87. package/package.json +104 -0
  88. package/shared/AdvancedControlGroup.js +37 -0
  89. package/shared/AdvancedControlGroup.js.map +1 -0
  90. package/shared/ArrowLayer.js +23 -0
  91. package/shared/ArrowLayer.js.map +1 -0
  92. package/shared/CSPMessage.js +6 -0
  93. package/shared/CSPMessage.js.map +1 -0
  94. package/shared/ClickableIcon.js +18 -0
  95. package/shared/ClickableIcon.js.map +1 -0
  96. package/shared/CollapsiblePanel.js +8 -0
  97. package/shared/CollapsiblePanel.js.map +1 -0
  98. package/shared/ColumnSelectorFooterMessage.js +6 -0
  99. package/shared/ColumnSelectorFooterMessage.js.map +1 -0
  100. package/shared/CustomizedInSourceMessage.js +15 -0
  101. package/shared/CustomizedInSourceMessage.js.map +1 -0
  102. package/shared/FormatFieldName.js +6 -0
  103. package/shared/FormatFieldName.js.map +1 -0
  104. package/shared/Header.js +12 -0
  105. package/shared/Header.js.map +1 -0
  106. package/shared/MessageContainer.js +8 -0
  107. package/shared/MessageContainer.js.map +1 -0
  108. package/shared/PreviewWrapper.js +12 -0
  109. package/shared/PreviewWrapper.js.map +1 -0
  110. package/shared/Separator.js +8 -0
  111. package/shared/Separator.js.map +1 -0
  112. package/shared/dimensionConstants.js +6 -0
  113. package/shared/dimensionConstants.js.map +1 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToggleEditor.js","mappings":";;;;4EAAA,MAOMA,EAAc,IAAIC,OAFF,KAAKC,OALY,UAAUA,OAGhB,wBAAwBA,OAEuC,KAAKA,QAIxFC,EAAYC,GAA0B,iBAAVA,GAAsBJ,EAAYK,KAAKD,E,gyBCThF,mBACA,YACA,aACA,aACA,aACA,UACA,YACA,UACA,aAEME,GAAgB,aAAO,UAAQ;;;;;EAW/BC,GAAe,aAAO,UAA0B;;;MAGhD,EAAGC,aACDA,GACA;EAWFC,EAAe,UAAOC,GAAG;kBACb,EAAAC,UAAUC;aACf,EAAAD,UAAUE;iBACN,EAAAF,UAAUG;EAGrBC,GAAa,aAAO,UAAK;;EAIzBC,EAAgB,UAAOC,IAAI;;;kBAGf,EAAAN,UAAUO;;EAItBC,EAAa,CAACC,EAAQC,IACpBA,EACO,CAACD,EAAOE,MAAKC,GAAKA,IAAMF,IAA0BA,GAGtDD,EAqKX,UAvFuB,EACnBI,OACAC,aAAa,UACbC,WACAC,OACAvB,QACAgB,SACAQ,aACAP,0BACAQ,gBAAgB,QAChBC,aACAC,QACAC,aAAa,WACbC,cAAa,EACbC,eACAC,eAEA,MAAMC,GAAW,IAAAjC,WAAUC,IAAU6B,EACrC,IAAII,EAGJ,GAAIC,MAAMC,QAAQnB,IAA6B,IAAlBA,EAAOoB,OAChCH,EAAUlB,EACNC,EAAOqB,KAAIlB,GAAKA,EAAEnB,QAClBiB,QAED,GAAIiB,MAAMC,QAAQX,EAAWc,OAAoC,IAA3Bd,EAAWc,KAAKF,OACzDH,EAAUlB,EAAWS,EAAWc,KAAMrB,OACnC,IAAwB,YAApBO,EAAWe,KAGlB,MAAMC,MAAM,+CAA+CC,KAAKC,UAAUlB,MAF1ES,EAAU,EAAC,GAAO,EAGtB,CAEA,MAAMU,GAAc,IAAAC,cAChBC,GAASvB,EAASuB,EAAOtB,EAAMvB,IAAUiC,EAAQ,GAAKA,EAAQ,GAAKA,EAAQ,KAC3E,CAACX,EAAUW,EAASV,EAAMvB,IAG9B,MAAsB,UAAlByB,EAEI,gDACI,wBAACtB,EAAY,aACEoB,EACXS,SAAUA,EACVhC,MAAOuB,EACPuB,QAASH,EACTI,SAAU/C,IAAUiC,EAAQ,GAC5BL,WAAYA,EACZxB,UAAW2B,GAEX,wBAACnB,EAAa,KAAEe,GACfI,GAAY,wBAACpB,EAAU,aAAW,aAAaoB,GAC/CX,GAAuB,YAAfC,GAA4B,wBAACnB,EAAa,CAAC8C,QAAS5B,KAEhEA,GAAuB,UAAfC,GACL,wBAAChB,EAAY,KACRe,EACA,KACAU,aAAY,EAAZA,EAAcH,QACX,gDACI,mCACA,wBAAC,UAAI,aAAW,iBAAiBsB,IAAInB,aAAY,EAAZA,EAAcoB,OAAQ,MACtDpB,EAAaH,UAW1C,wBAAC,UAAY,CAACA,MAAOA,EAAOF,cAAeA,EAAeC,WAAYA,EAAYyB,QAAS/B,GACvF,wBAACjB,EAAY,aACEoB,EACXS,SAAUA,EACVhC,MAAOuB,EACPuB,QAASH,EACTI,SAAU/C,IAAUiC,EAAQ,GAC5BL,WAAYA,IAGvB,C,8zBC7NL,mBACA,WACA,YACA,UACA,aACA,UACA,aACA,aACA,aAgBMwB,GAAwB,aAAO,UAAgB;;;;qBAIhC,EAAA7C,UAAU8C;;;;;;;;;;;;;;;;EAmBzBC,GAAgB,aAAO,UAAQ;;;;;;EAQ/BC,GAA6B,aAAO,UAAoB;aACjD,EAAAhD,UAAUiD;;4BAEK,EAAAjD,UAAUkD;;EAIzB,EAAAC,qBAAuB,EAChC/B,QAAQ,GACRmB,aAGI,wBAACQ,EAAa,aACC,GAAG3B,mCACdqB,SAAS,IAAAW,GAAE,4BAEX,wBAACJ,EAA0B,aACZ,GAAG5B,2BACdiC,KAAM,wBAAC,UAAkB,aAAY,GAAGjC,kCACxCC,WAAW,SACXkB,QAASA,KAMzB,MAAMe,EAAuB,EACzB,YAAaC,EACbC,WACAC,aACArC,QACAsC,YACAxC,gBACAC,aACAyB,UACA/B,OACA8C,QACAC,QACAC,iBACAtB,UACAuB,iCAEA,wBAACjB,EAAqB,aACPU,QAAAA,EAAY,gBACvBnC,MAAOA,EACPsC,UAAWA,EACXxC,cAAeA,EACfC,WAAYA,EACZyB,QAASA,EACT/B,KAAMA,EACN+C,MAAOA,EACPD,MAAOA,EACPpB,QAASA,EACTsB,eAAgBA,GAEfJ,EACK,EAAAM,SAASC,QAAQR,GACZS,OAAOC,SACPpC,KAAIqC,IACD,IAAAC,cAAaD,EAAuB,CAChCR,MAAO,CAAEU,KAAM,OAG3Bb,EACLC,EAAa,wBAAC,EAAAN,qBAAoB,CAAC/B,MAAOA,EAAOmB,QAASuB,IAAkC,MAIrGR,EAAqBgB,UAAY,CAI7BX,MAAOY,EAAEC,OAITf,WAAYc,EAAEE,KAIdlC,QAASgC,EAAEG,KAIXZ,4BAA6BS,EAAEG,MAGnCpB,EAAqBqB,aAAe,CAChClB,YAAY,GAGhB,UAAeH,C,WClJfsB,EAAOC,QAAUC,QAAQ,iC,WCAzBF,EAAOC,QAAUC,QAAQ,8C,WCAzBF,EAAOC,QAAUC,QAAQ,0B,WCAzBF,EAAOC,QAAUC,QAAQ,wB,WCAzBF,EAAOC,QAAUC,QAAQ,gC,UCAzBF,EAAOC,QAAUC,QAAQ,wB,WCAzBF,EAAOC,QAAUC,QAAQ,0B,WCAzBF,EAAOC,QAAUC,QAAQ,2B,WCAzBF,EAAOC,QAAUC,QAAQ,iB,WCAzBF,EAAOC,QAAUC,QAAQ,wB,SCAzBF,EAAOC,QAAUC,QAAQ,a,WCAzBF,EAAOC,QAAUC,QAAQ,Q,UCAzBF,EAAOC,QAAUC,QAAQ,oB,GCCrBC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaL,QAGrB,IAAID,EAASG,EAAyBE,GAAY,CAGjDJ,QAAS,CAAC,GAOX,OAHAO,EAAoBH,GAAUI,KAAKT,EAAOC,QAASD,EAAQA,EAAOC,QAASG,GAGpEJ,EAAOC,OACf,CCrBAG,EAAoBM,EAAKV,IACxB,IAAIW,EAASX,GAAUA,EAAOY,WAC7B,IAAOZ,EAAiB,QACxB,IAAM,EAEP,OADAI,EAAoBS,EAAEF,EAAQ,CAAEG,EAAGH,IAC5BA,CAAM,ECLdP,EAAoBS,EAAI,CAACZ,EAASc,KACjC,IAAI,IAAIC,KAAOD,EACXX,EAAoBa,EAAEF,EAAYC,KAASZ,EAAoBa,EAAEhB,EAASe,IAC5EE,OAAOC,eAAelB,EAASe,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAE1E,ECNDZ,EAAoBa,EAAI,CAACK,EAAKC,IAAUL,OAAOM,UAAUC,eAAehB,KAAKa,EAAKC,GCClFnB,EAAoBsB,EAAKzB,IACH,oBAAX0B,QAA0BA,OAAOC,aAC1CV,OAAOC,eAAelB,EAAS0B,OAAOC,YAAa,CAAE/G,MAAO,WAE7DqG,OAAOC,eAAelB,EAAS,aAAc,CAAEpF,OAAO,GAAO,E,0GCF9D,MAKA,EALqBgH,GAASC,IAAAA,cAACC,IAAcC,IAAA,GAAKH,EAAK,CAAEpF,WAAW,W","sources":["webpack://@splunk/dynamic-editors/./src/utils/token.js","webpack://@splunk/dynamic-editors/./src/editors/CheckboxEditor.tsx","webpack://@splunk/dynamic-editors/./src/shared/AdvancedControlGroup.tsx","webpack://@splunk/dynamic-editors/external commonjs2 \"@babel/runtime/helpers/extends\"","webpack://@splunk/dynamic-editors/external commonjs2 \"@splunk/react-icons/SlidersDoubleHorizontal\"","webpack://@splunk/dynamic-editors/external commonjs2 \"@splunk/react-ui/Button\"","webpack://@splunk/dynamic-editors/external commonjs2 \"@splunk/react-ui/Chip\"","webpack://@splunk/dynamic-editors/external commonjs2 \"@splunk/react-ui/ControlGroup\"","webpack://@splunk/dynamic-editors/external commonjs2 \"@splunk/react-ui/Link\"","webpack://@splunk/dynamic-editors/external commonjs2 \"@splunk/react-ui/Switch\"","webpack://@splunk/dynamic-editors/external commonjs2 \"@splunk/react-ui/Tooltip\"","webpack://@splunk/dynamic-editors/external commonjs2 \"@splunk/themes\"","webpack://@splunk/dynamic-editors/external commonjs2 \"@splunk/ui-utils/i18n\"","webpack://@splunk/dynamic-editors/external commonjs2 \"prop-types\"","webpack://@splunk/dynamic-editors/external commonjs2 \"react\"","webpack://@splunk/dynamic-editors/external commonjs2 \"styled-components\"","webpack://@splunk/dynamic-editors/webpack/bootstrap","webpack://@splunk/dynamic-editors/webpack/runtime/compat get default export","webpack://@splunk/dynamic-editors/webpack/runtime/define property getters","webpack://@splunk/dynamic-editors/webpack/runtime/hasOwnProperty shorthand","webpack://@splunk/dynamic-editors/webpack/runtime/make namespace object","webpack://@splunk/dynamic-editors/./src/editors/ToggleEditor.jsx"],"sourcesContent":["const TOKEN_NAMESPACE_PREFIX_PATTERN = /(\\w+:)?/.source;\n// ex: token.name|suh (old-style filter chain)\n// ex: token.name|lower|capitalize (new-style filter chain)\nconst TOKEN_NAME_CHARS_PATTERN = /([^$|:]+?)(\\|[|\\w]+)?/.source;\n// ex: $ns:token.name|suh$\nconst TOKEN_PATTERN = /\\$/.source + TOKEN_NAMESPACE_PREFIX_PATTERN + TOKEN_NAME_CHARS_PATTERN + /\\$/.source;\n\nconst TokenRegExp = new RegExp(TOKEN_PATTERN);\n\nexport const hasTokens = value => typeof value === 'string' && TokenRegExp.test(value);\n","import React, { useCallback } from 'react';\nimport styled from 'styled-components';\nimport Switch, { type SwitchClickHandler } from '@splunk/react-ui/Switch';\nimport Chip from '@splunk/react-ui/Chip';\nimport Tooltip from '@splunk/react-ui/Tooltip';\nimport { variables } from '@splunk/themes';\nimport Link from '@splunk/react-ui/Link';\nimport { hasTokens } from '../utils/token';\nimport ControlGroup from '../shared/AdvancedControlGroup';\n\nconst StyledTooltip = styled(Tooltip)`\n float: right;\n [data-test='clickable'] {\n padding-block: 0;\n }\n`;\n\ninterface StyledSwitchProps {\n hasChip?: boolean;\n}\n\nconst StyledSwitch = styled(Switch)<StyledSwitchProps>`\n padding-block: 0;\n\n ${({ hasChip }) =>\n hasChip &&\n `\n display: inline-flex;\n align-items: center;\n label {\n display: inline-flex;\n align-items: center;\n vertical-align: middle;\n }\n `}\n`;\n\nconst CheckboxInfo = styled.div`\n margin-top: ${variables.spacingXSmall};\n color: ${variables.contentColorDefault};\n font-size: ${variables.fontSizeSmall};\n`;\n\nconst StyledChip = styled(Chip)`\n margin-left: auto;\n`;\n\nconst CenteredLabel = styled.span`\n display: inline-flex;\n align-items: center;\n min-height: ${variables.inputHeight};\n line-height: 0;\n`;\n\nconst sortValues = (values, variantForSelectedState) => {\n if (variantForSelectedState) {\n return [values.find(v => v !== variantForSelectedState), variantForSelectedState];\n }\n\n return values;\n};\n\nexport interface CheckboxEditorProps {\n /**\n * Callback when checking or unchecking the box\n *\n * @param {SyntheticEvent} event The React `SyntheticEvent`\n * @param {string} name The option name\n * @param {string|boolean} value The option value\n */\n onChange: (evt: React.MouseEvent, name: string, value: string | boolean) => void;\n /**\n * The option name\n */\n name: string;\n /**\n * The item JSON schema, note it needs to be either boolean type or enum that has exactly two variants\n *\n * @type {Object} itemSchema\n */\n itemSchema: { enum?: string[]; type: string };\n /**\n * This indicates how to map the enum variants to selected/unselected state.\n * For example, `variantForSelectedState=\"show\"` means the checkbox will be in selected state when value is `\"show\"`,\n * and will be in unselected state when value is `\"hide\"`.\n * If this prop is unspecified, the first variant in the enum will be used to represent unselected state.\n *\n * Note this prop is only used when itemSchema is enum type and has exactly two variants.\n */\n variantForSelectedState?: string;\n /**\n * A human readable label for the option\n */\n label: string;\n /**\n * The option value\n */\n value: string | boolean;\n /**\n * The option values that can be selected\n */\n values?: { label?: string; value: string }[];\n /**\n * Label position\n */\n labelPosition?: 'left' | 'top' | 'right';\n /**\n * Label width\n */\n labelWidth?: number;\n /**\n * Appearance of the component\n */\n appearance?: 'checkbox' | 'toggle';\n /**\n * Disabled state of component\n */\n isDisabled?: boolean;\n /**\n * help text\n */\n help?: string;\n /**\n * help text format\n */\n helpFormat?: 'tooltip' | 'under';\n /**\n *\n * @type {Object}\n */\n helpTextLink?: { label: string; href?: string };\n /**\n * show chip with text\n */\n chipText?: string;\n}\n\nconst CheckboxEditor = ({\n help,\n helpFormat = 'tooltip',\n onChange,\n name,\n value,\n values,\n itemSchema,\n variantForSelectedState,\n labelPosition = 'right',\n labelWidth,\n label,\n appearance = 'checkbox',\n isDisabled = false,\n helpTextLink,\n chipText,\n}: CheckboxEditorProps) => {\n const disabled = hasTokens(value) || isDisabled;\n let options;\n\n // Note: by default the first value will be mapped to unselected state\n if (Array.isArray(values) && values.length === 2) {\n options = sortValues(\n values.map(v => v.value),\n variantForSelectedState\n );\n } else if (Array.isArray(itemSchema.enum) && itemSchema.enum.length === 2) {\n options = sortValues(itemSchema.enum, variantForSelectedState);\n } else if (itemSchema.type === 'boolean') {\n options = [false, true];\n } else {\n throw Error(`No valid values provided to CheckboxEditor: ${JSON.stringify(itemSchema)}`);\n }\n\n const handleClick = useCallback<SwitchClickHandler>(\n event => onChange(event, name, value === options[1] ? options[0] : options[1]),\n [onChange, options, name, value]\n );\n\n if (labelPosition === 'right') {\n return (\n <>\n <StyledSwitch\n data-test={name}\n disabled={disabled}\n value={name}\n onClick={handleClick}\n selected={value === options[1]}\n appearance={appearance}\n hasChip={!!chipText}\n >\n <CenteredLabel>{label}</CenteredLabel>\n {chipText && <StyledChip data-test=\"beta-chip\">{chipText}</StyledChip>}\n {help && helpFormat === 'tooltip' && <StyledTooltip content={help} />}\n </StyledSwitch>\n {help && helpFormat === 'under' && (\n <CheckboxInfo>\n {help}\n {` `}\n {helpTextLink?.label && (\n <>\n <br />\n <Link data-test=\"help-text-link\" to={helpTextLink?.href || null}>\n {helpTextLink.label}\n </Link>\n </>\n )}\n </CheckboxInfo>\n )}\n </>\n );\n }\n\n return (\n <ControlGroup label={label} labelPosition={labelPosition} labelWidth={labelWidth} tooltip={help}>\n <StyledSwitch\n data-test={name}\n disabled={disabled}\n value={name}\n onClick={handleClick}\n selected={value === options[1]}\n appearance={appearance}\n />\n </ControlGroup>\n );\n};\n\nexport default CheckboxEditor;\n","import React, { Children, cloneElement, ReactElement } from 'react';\nimport * as T from 'prop-types';\nimport styled from 'styled-components';\nimport { _ } from '@splunk/ui-utils/i18n';\nimport AdvancedConfigIcon from '@splunk/react-icons/SlidersDoubleHorizontal';\nimport { variables } from '@splunk/themes';\nimport Tooltip from '@splunk/react-ui/Tooltip';\nimport Button, { ButtonClickHandler, ButtonProps } from '@splunk/react-ui/Button';\nimport SUIControlGroup, { ControlGroupPropsBase } from '@splunk/react-ui/ControlGroup';\n\ninterface AdvancedControlGroupProps extends Omit<ControlGroupPropsBase, 'splunkTheme'> {\n 'data-test'?: string;\n style?: Record<string, string | number>;\n isAdvanced?: boolean;\n onClick?: React.MouseEventHandler<HTMLDivElement>;\n onAdvancedConfigButtonClick?: ButtonClickHandler;\n}\n\ninterface AdvancedConfigButtonProps {\n label?: string;\n onClick?: ButtonClickHandler;\n}\n\n// remove all surrounding margins. let parent add padding\nconst ControlGroupContainer = styled(SUIControlGroup)`\n margin-top: 0;\n padding: 0;\n // adjust bottom margin according to theme\n margin-bottom: ${variables.spacingMedium};\n width: 100%;\n\n // remove top margin of the first component in control group\n &:first-child {\n margin-top: 0;\n }\n\n // remove bottom margin of the last component in control group\n &:last-child {\n margin-bottom: 0;\n }\n // remove top padding on label of the first control group\n [data-test='label']:first-of-type {\n padding-top: 0;\n }\n`;\n\n// override tooltip to set desired config button style\nconst StyledToolTip = styled(Tooltip)`\n display: flex;\n > span {\n display: flex;\n width: 35px;\n }\n`;\n\nconst StyledAdvancedConfigButton = styled(Button)<ButtonProps>`\n color: ${variables.contentColorActive} !important;\n &:hover {\n background-color: ${variables.interactiveColorOverlayDrag} !important;\n }\n`;\n\nexport const AdvancedConfigButton = ({\n label = '',\n onClick,\n}: AdvancedConfigButtonProps): React.ReactElement => {\n return (\n <StyledToolTip\n data-test={`${label}-advanced-config-button-tooltip`}\n content={_('Advanced configurations')}\n >\n <StyledAdvancedConfigButton\n data-test={`${label}-advanced-config-button`}\n icon={<AdvancedConfigIcon data-test={`${label}-advanced-config-button-icon`} />}\n appearance=\"subtle\"\n onClick={onClick}\n />\n </StyledToolTip>\n );\n};\n\nconst AdvancedControlGroup = ({\n 'data-test': dataTest,\n children,\n isAdvanced,\n label,\n hideLabel,\n labelPosition,\n labelWidth,\n tooltip,\n help,\n style,\n error,\n controlsLayout,\n onClick,\n onAdvancedConfigButtonClick,\n}: AdvancedControlGroupProps): React.ReactElement => (\n <ControlGroupContainer\n data-test={dataTest ?? 'control-group'}\n label={label}\n hideLabel={hideLabel}\n labelPosition={labelPosition}\n labelWidth={labelWidth}\n tooltip={tooltip}\n help={help}\n error={error}\n style={style}\n onClick={onClick}\n controlsLayout={controlsLayout}\n >\n {isAdvanced\n ? Children.toArray(children)\n .filter(Boolean)\n .map(child =>\n cloneElement(child as ReactElement, {\n style: { flex: 1 },\n })\n )\n : children}\n {isAdvanced ? <AdvancedConfigButton label={label} onClick={onAdvancedConfigButtonClick} /> : null}\n </ControlGroupContainer>\n);\n\nAdvancedControlGroup.propTypes = {\n /**\n * Style overriding SUI ControlGroup\n */\n style: T.object,\n /**\n * Whether the current editor is enabled with advanced configurations\n */\n isAdvanced: T.bool,\n /**\n * Callback for editor click\n */\n onClick: T.func,\n /**\n * Callback for advanced config button click\n */\n onAdvancedConfigButtonClick: T.func,\n};\n\nAdvancedControlGroup.defaultProps = {\n isAdvanced: false,\n};\n\nexport default AdvancedControlGroup;\n","module.exports = require(\"@babel/runtime/helpers/extends\");","module.exports = require(\"@splunk/react-icons/SlidersDoubleHorizontal\");","module.exports = require(\"@splunk/react-ui/Button\");","module.exports = require(\"@splunk/react-ui/Chip\");","module.exports = require(\"@splunk/react-ui/ControlGroup\");","module.exports = require(\"@splunk/react-ui/Link\");","module.exports = require(\"@splunk/react-ui/Switch\");","module.exports = require(\"@splunk/react-ui/Tooltip\");","module.exports = require(\"@splunk/themes\");","module.exports = require(\"@splunk/ui-utils/i18n\");","module.exports = require(\"prop-types\");","module.exports = require(\"react\");","module.exports = require(\"styled-components\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import React from 'react';\nimport CheckboxEditor from './CheckboxEditor';\n\nconst ToggleEditor = props => <CheckboxEditor {...props} appearance=\"toggle\" />;\n\n/**\n * @see {@link CheckboxEditor} for all the props information\n */\nexport default ToggleEditor;\n"],"names":["TokenRegExp","RegExp","source","hasTokens","value","test","StyledTooltip","StyledSwitch","hasChip","CheckboxInfo","div","variables","spacingXSmall","contentColorDefault","fontSizeSmall","StyledChip","CenteredLabel","span","inputHeight","sortValues","values","variantForSelectedState","find","v","help","helpFormat","onChange","name","itemSchema","labelPosition","labelWidth","label","appearance","isDisabled","helpTextLink","chipText","disabled","options","Array","isArray","length","map","enum","type","Error","JSON","stringify","handleClick","useCallback","event","onClick","selected","content","to","href","tooltip","ControlGroupContainer","spacingMedium","StyledToolTip","StyledAdvancedConfigButton","contentColorActive","interactiveColorOverlayDrag","AdvancedConfigButton","_","icon","AdvancedControlGroup","dataTest","children","isAdvanced","hideLabel","style","error","controlsLayout","onAdvancedConfigButtonClick","Children","toArray","filter","Boolean","child","cloneElement","flex","propTypes","T","object","bool","func","defaultProps","module","exports","require","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","call","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","r","Symbol","toStringTag","props","React","CheckboxEditor","_extends"],"sourceRoot":""}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Copyright © 2018 Splunk Inc.
3
+ * SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
4
+ * in part without a valid written license from Splunk Inc. is PROHIBITED.
5
+ */(()=>{"use strict";var e={8999:function(e,t,r){var l=this&&this.__createBinding||(Object.create?function(e,t,r,l){void 0===l&&(l=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,l,i)}:function(e,t,r,l){void 0===l&&(l=r),e[l]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&l(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.useColumnSelectorFooterMessage=void 0;const o=n(r(9497)),a=r(3620);t.useColumnSelectorFooterMessage=({filter:e,availableFields:t,selectedFields:r,filteredFields:l,noSelectedFieldsInfo:i=!1})=>{const n=(0,o.useMemo)((()=>{if(!r||!l)return[];const e=new Set(r.filter((e=>""!==e&&void 0!==e)));return l.filter((t=>e.has(t.name)))}),[r,l]);return e&&!l.length?null:o.default.createElement(a.ColumnSelectorFooterMessage,{noSelectedFieldsInfo:i,numSelected:null==n?void 0:n.length,numFiltered:l.length,numAvailable:t.length,filter:e})}},3620:function(e,t,r){var l=this&&this.__createBinding||(Object.create?function(e,t,r,l){void 0===l&&(l=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,l,i)}:function(e,t,r,l){void 0===l&&(l=r),e[l]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&l(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ColumnSelectorFooterMessage=void 0;const o=n(r(9497)),a=r(3773),u=r(6649),s=r(9497);t.ColumnSelectorFooterMessage=({numSelected:e,numFiltered:t,numAvailable:r,filter:l,noSelectedFieldsInfo:i})=>{const n=(0,s.useMemo)((()=>l?i?(0,a.sprintf)((0,u._)("%(filtered)d filtered from %(available)d fields"),{filtered:t,available:r}):(0,a.sprintf)((0,u._)("%(selected)d selected from %(filtered)d filtered"),{selected:e,filtered:t}):i?(0,a.sprintf)((0,u._)("%(shown)d of %(available)d fields"),{shown:t,available:r}):(0,a.sprintf)((0,u._)("%(selected)d selected from %(available)d"),{selected:e,available:r})),[l,i,t,r,e]);return o.createElement("span",{"data-test":"footer-message","aria-live":"polite","aria-atomic":"true"},n)}},3773:e=>{e.exports=require("@splunk/ui-utils/format")},6649:e=>{e.exports=require("@splunk/ui-utils/i18n")},9497:e=>{e.exports=require("react")}},t={};var r=function r(l){var i=t[l];if(void 0!==i)return i.exports;var n=t[l]={exports:{}};return e[l].call(n.exports,n,n.exports,r),n.exports}(8999);module.exports=r})();
6
+ //# sourceMappingURL=useColumnSelectorFooterMessage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useColumnSelectorFooterMessage.js","mappings":";;;;mxBAAA,mBACA,UAkBa,EAAAA,+BAAiC,EAC1CC,SACAC,kBACAC,iBACAC,iBACAC,wBAAuB,MAEvB,MAAMC,GAAyB,IAAAC,UAAQ,KACnC,IAAKJ,IAAmBC,EAAgB,MAAO,GAE/C,MAAMI,EAAsB,IAAIC,IAC5BN,EAAeF,QAAOS,GAAmB,KAAVA,QAA0BC,IAAVD,KAGnD,OAAON,EAAeH,QAAOW,GAAQJ,EAAoBK,IAAID,EAAKE,OAAM,GACzE,CAACX,EAAgBC,IAGpB,OAAIH,IAAWG,EAAeW,OACnB,KAIP,wBAAC,EAAAC,4BAA2B,CACxBX,qBAAsBA,EACtBY,YAAaX,aAAsB,EAAtBA,EAAwBS,OACrCG,YAAad,EAAeW,OAC5BI,aAAcjB,EAAgBa,OAC9Bd,OAAQA,GAEf,C,qvBCjDL,mBACA,UACA,UACA,UAUa,EAAAe,4BAA8B,EACvCC,cACAC,cACAC,eACAlB,SACAI,2BAEA,MAAMe,GAAoB,IAAAb,UAAQ,IAC1BN,EACII,GACO,IAAAgB,UAAQ,IAAAC,GAAE,mDAAoD,CACjEC,SAAUL,EACVM,UAAWL,KAGZ,IAAAE,UAAQ,IAAAC,GAAE,oDAAqD,CAClEG,SAAUR,EACVM,SAAUL,IAGXb,GACD,IAAAgB,UAAQ,IAAAC,GAAE,qCAAsC,CAC5CI,MAAOR,EACPM,UAAWL,KAEf,IAAAE,UAAQ,IAAAC,GAAE,4CAA6C,CACnDG,SAAUR,EACVO,UAAWL,KAEtB,CAAClB,EAAQI,EAAsBa,EAAaC,EAAcF,IAE7D,OACI,oCAAgB,iBAAgB,YAAW,SAAQ,cAAa,QAC3DG,EAER,C,WChDLO,EAAOC,QAAUC,QAAQ,0B,WCAzBF,EAAOC,QAAUC,QAAQ,wB,WCAzBF,EAAOC,QAAUC,QAAQ,Q,GCCrBC,EAA2B,CAAC,ECEhC,IAAIC,EDCJ,SAASC,EAAoBC,GAE5B,IAAIC,EAAeJ,EAAyBG,GAC5C,QAAqBtB,IAAjBuB,EACH,OAAOA,EAAaN,QAGrB,IAAID,EAASG,EAAyBG,GAAY,CAGjDL,QAAS,CAAC,GAOX,OAHAO,EAAoBF,GAAUG,KAAKT,EAAOC,QAASD,EAAQA,EAAOC,QAASI,GAGpEL,EAAOC,OACf,CCnB0BI,CAAoB,M","sources":["webpack://@splunk/dynamic-editors/./src/editors/useColumnSelectorFooterMessage.tsx","webpack://@splunk/dynamic-editors/./src/shared/ColumnSelectorFooterMessage.tsx","webpack://@splunk/dynamic-editors/external commonjs2 \"@splunk/ui-utils/format\"","webpack://@splunk/dynamic-editors/external commonjs2 \"@splunk/ui-utils/i18n\"","webpack://@splunk/dynamic-editors/external commonjs2 \"react\"","webpack://@splunk/dynamic-editors/webpack/bootstrap","webpack://@splunk/dynamic-editors/webpack/startup"],"sourcesContent":["import React, { useMemo } from 'react';\nimport { ColumnSelectorFooterMessage } from '../shared/ColumnSelectorFooterMessage';\nimport { FieldTuple } from '../utils/columnSelectionUtils';\n\ntype ObjectWithName = {\n name: string;\n [key: string]: string;\n};\n\ntype Fields = FieldTuple[] | ObjectWithName[];\n\ninterface FooterMessageProps {\n noSelectedFieldsInfo?: boolean;\n filter: string;\n availableFields: Fields;\n selectedFields?: string[];\n filteredFields: Fields;\n}\n\nexport const useColumnSelectorFooterMessage = ({\n filter,\n availableFields,\n selectedFields,\n filteredFields,\n noSelectedFieldsInfo = false,\n}: FooterMessageProps) => {\n const selectedFilteredFields = useMemo(() => {\n if (!selectedFields || !filteredFields) return [];\n\n const validSelectedFields = new Set(\n selectedFields.filter(field => field !== '' && field !== undefined)\n );\n\n return filteredFields.filter(item => validSelectedFields.has(item.name));\n }, [selectedFields, filteredFields]);\n\n // make sure to display only 'No matches' text when there is no result of filtering\n if (filter && !filteredFields.length) {\n return null;\n }\n\n return (\n <ColumnSelectorFooterMessage\n noSelectedFieldsInfo={noSelectedFieldsInfo}\n numSelected={selectedFilteredFields?.length} // if no filter is applied filteredFields equal availableFields\n numFiltered={filteredFields.length}\n numAvailable={availableFields.length}\n filter={filter}\n />\n );\n};\n","import * as React from 'react';\nimport { sprintf } from '@splunk/ui-utils/format';\nimport { _ } from '@splunk/ui-utils/i18n';\nimport { useMemo } from 'react';\n\ninterface FooterProps {\n filter: string;\n numSelected?: number;\n numFiltered: number;\n numAvailable: number;\n noSelectedFieldsInfo?: boolean; // it is needed for AddColumn component which has different logic than other selection editors\n}\n\nexport const ColumnSelectorFooterMessage = ({\n numSelected,\n numFiltered,\n numAvailable,\n filter,\n noSelectedFieldsInfo,\n}: FooterProps) => {\n const footerMessageText = useMemo(() => {\n if (filter) {\n if (noSelectedFieldsInfo) {\n return sprintf(_('%(filtered)d filtered from %(available)d fields'), {\n filtered: numFiltered,\n available: numAvailable,\n });\n }\n return sprintf(_('%(selected)d selected from %(filtered)d filtered'), {\n selected: numSelected,\n filtered: numFiltered,\n });\n }\n return noSelectedFieldsInfo\n ? sprintf(_('%(shown)d of %(available)d fields'), {\n shown: numFiltered,\n available: numAvailable,\n })\n : sprintf(_('%(selected)d selected from %(available)d'), {\n selected: numSelected,\n available: numAvailable,\n });\n }, [filter, noSelectedFieldsInfo, numFiltered, numAvailable, numSelected]);\n\n return (\n <span data-test=\"footer-message\" aria-live=\"polite\" aria-atomic=\"true\">\n {footerMessageText}\n </span>\n );\n};\n","module.exports = require(\"@splunk/ui-utils/format\");","module.exports = require(\"@splunk/ui-utils/i18n\");","module.exports = require(\"react\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(8999);\n"],"names":["useColumnSelectorFooterMessage","filter","availableFields","selectedFields","filteredFields","noSelectedFieldsInfo","selectedFilteredFields","useMemo","validSelectedFields","Set","field","undefined","item","has","name","length","ColumnSelectorFooterMessage","numSelected","numFiltered","numAvailable","footerMessageText","sprintf","_","filtered","available","selected","shown","module","exports","require","__webpack_module_cache__","__webpack_exports__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","call"],"sourceRoot":""}
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json ADDED
@@ -0,0 +1,104 @@
1
+ {
2
+ "name": "@splunk/dynamic-editors",
3
+ "description": "Dynamic Editors",
4
+ "license": "SEE LICENSE IN LICENSE.md",
5
+ "author": "Splunk",
6
+ "//": "actual package version is maintained by git tag",
7
+ "version": "0.36.1",
8
+ "scripts": {
9
+ "build": "NODE_ENV=production webpack --config ./webpack.config.js --bail",
10
+ "build-storybook": "sb build -c .storybook -s fonts -o .storybook-bundle",
11
+ "clean": "yarn clean:storybook && yarn clean:webpack && yarn clean:test-reports",
12
+ "clean:storybook": "rm -rf .storybook-bundle",
13
+ "clean:webpack": "git ls-files --others -i --exclude-standard *.js *.map | xargs rm && rm -rf ./containers ./editors ./shared",
14
+ "clean:test-reports": "rm -rf ./test-reports",
15
+ "dev": "NODE_ENV=development webpack --config ./webpack.config.js --watch",
16
+ "storybook": "sb dev -p 6006 -c .storybook -s ../fonts",
17
+ "lint": "yarn run lint:js",
18
+ "lint:ci": "eslint src --ext \".js,.jsx,.es,.ts,.tsx\" -f junit -o test-reports/lint-results.xml",
19
+ "lint:fix": "yarn run lint:js --fix",
20
+ "lint:js": "eslint src --ext \".js,.jsx,.es,.ts,.tsx\"",
21
+ "format:fix": "git ls-files | grep -E '\\.(es|jsx?|tsx?|css|md)$' | xargs prettier --write",
22
+ "test": "yarn run test:unit",
23
+ "test:ci": "yarn run test:unit:ci",
24
+ "test:unit": "jest src/.*",
25
+ "test:unit:ci": "yarn run test:unit --ci",
26
+ "test:unit:ci:watch": "yarn run test:unit --ci --watchAll",
27
+ "test:unit:watch": "yarn run test:unit --watchAll",
28
+ "test:visual": "yarn build-storybook --quiet && yarn loki test --reactUri=file:.storybook-bundle",
29
+ "test:visual:update": "yarn build-storybook --quiet && yarn loki update --reactUri=file:.storybook-bundle",
30
+ "test:visual:ci": "yarn test:visual --requireReference --verboseRenderer --chromeRetries=3",
31
+ "update-snapshots": "node ../../tools/update-loki-snapshots.js"
32
+ },
33
+ "dependencies": {
34
+ "@splunk/react-icons": "^5.1.0",
35
+ "@splunk/react-ui": "^5.1.0",
36
+ "@splunk/themes": "^1.1.0",
37
+ "@splunk/ui-utils": "^1.10.0",
38
+ "lodash": "^4.17.21",
39
+ "prop-types": "^15.7.2",
40
+ "react-mde": "^11.5.0"
41
+ },
42
+ "peerDependencies": {
43
+ "@splunk/visualization-color-palettes": "^28.0.0",
44
+ "@splunk/visualization-context": "^28.0.0",
45
+ "@splunk/visualization-encoding": "^28.0.0",
46
+ "@splunk/visualization-icons": "^28.0.0",
47
+ "@splunk/visualization-themes": "^28.0.0",
48
+ "@splunk/visualizations-shared": "^28.0.0",
49
+ "react": "^18.3.1",
50
+ "react-dom": "^18.3.1",
51
+ "styled-components": "^5.3.10"
52
+ },
53
+ "devDependencies": {
54
+ "@babel/cli": "^7.28.0",
55
+ "@babel/core": "^7.28.0",
56
+ "@babel/plugin-proposal-class-properties": "^7.18.6",
57
+ "@babel/plugin-proposal-logical-assignment-operators": "^7.20.7",
58
+ "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
59
+ "@babel/plugin-proposal-object-rest-spread": "^7.20.7",
60
+ "@babel/plugin-proposal-optional-chaining": "^7.21.0",
61
+ "@babel/plugin-transform-runtime": "^7.28.0",
62
+ "@loki/create-async-callback": "^0.35.1",
63
+ "@splunk/dynamic-editors-build-tools": "^0.36.0",
64
+ "@splunk/jsdoc-loader": "^3.0.1",
65
+ "@splunk/visualization-color-palettes": "^28.0.0",
66
+ "@splunk/visualization-context": "^28.0.0",
67
+ "@splunk/visualization-encoding": "^28.0.0",
68
+ "@splunk/visualization-icons": "^28.0.0",
69
+ "@splunk/visualization-themes": "^28.0.0",
70
+ "@splunk/visualizations-shared": "^28.0.0",
71
+ "@storybook/addon-actions": "^7.0.24",
72
+ "@storybook/addons": "^7.0.24",
73
+ "@storybook/cli": "^7.0.24",
74
+ "@storybook/react": "^7.0.24",
75
+ "@storybook/react-webpack5": "^7.0.24",
76
+ "@storybook/testing-library": "^0.2.2",
77
+ "@testing-library/dom": "^10.4.0",
78
+ "@testing-library/jest-dom": "^6.4.8",
79
+ "@testing-library/react": "^16.2.0",
80
+ "@testing-library/user-event": "^14.6.1",
81
+ "@types/enzyme": "^3.10.13",
82
+ "@types/jest": "^28.1.1",
83
+ "@types/react": "^18.3.1",
84
+ "@types/styled-components": "^5.1.34",
85
+ "@types/testing-library__jest-dom": "^5.14.5",
86
+ "babel-loader": "^8.2.1",
87
+ "babel-plugin-styled-components": "^2.1.4",
88
+ "jest": "^29.0.0",
89
+ "jest-styled-components": "^7.1.1",
90
+ "raf": "^3.4.0",
91
+ "react": "^18.3.1",
92
+ "react-dom": "^18.3.1",
93
+ "react-test-renderer": "^18.3.1",
94
+ "styled-components": "^5.3.10",
95
+ "terser-webpack-plugin": "^5.3.9",
96
+ "testing-library-selector": "^0.2.1",
97
+ "ts-jest": "^29.1.0",
98
+ "ts-loader": "^9.4.3",
99
+ "typescript": "^5.1.5",
100
+ "webpack": "^5.88.0",
101
+ "webpack-cli": "^5.1.4"
102
+ },
103
+ "gitHead": "277f177385d92cd96fb2eac64c63382c1408697c"
104
+ }
@@ -0,0 +1,37 @@
1
+ /*!
2
+ * Copyright © 2018 Splunk Inc.
3
+ * SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
4
+ * in part without a valid written license from Splunk Inc. is PROHIBITED.
5
+ */(()=>{"use strict";var e={8:function(e,t,o){var r=this&&this.__createBinding||(Object.create?function(e,t,o,r){void 0===r&&(r=o);var n=Object.getOwnPropertyDescriptor(t,o);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[o]}}),Object.defineProperty(e,r,n)}:function(e,t,o,r){void 0===r&&(r=o),e[r]=t[o]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&r(t,e,o);return n(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AdvancedConfigButton=void 0;const i=a(o(497)),u=a(o(23)),c=l(o(232)),d=o(649),s=l(o(643)),p=o(563),f=l(o(379)),b=l(o(20)),v=l(o(250)),m=(0,c.default)(v.default)`
6
+ margin-top: 0;
7
+ padding: 0;
8
+ // adjust bottom margin according to theme
9
+ margin-bottom: ${p.variables.spacingMedium};
10
+ width: 100%;
11
+
12
+ // remove top margin of the first component in control group
13
+ &:first-child {
14
+ margin-top: 0;
15
+ }
16
+
17
+ // remove bottom margin of the last component in control group
18
+ &:last-child {
19
+ margin-bottom: 0;
20
+ }
21
+ // remove top padding on label of the first control group
22
+ [data-test='label']:first-of-type {
23
+ padding-top: 0;
24
+ }
25
+ `,g=(0,c.default)(f.default)`
26
+ display: flex;
27
+ > span {
28
+ display: flex;
29
+ width: 35px;
30
+ }
31
+ `,h=(0,c.default)(b.default)`
32
+ color: ${p.variables.contentColorActive} !important;
33
+ &:hover {
34
+ background-color: ${p.variables.interactiveColorOverlayDrag} !important;
35
+ }
36
+ `;t.AdvancedConfigButton=({label:e="",onClick:t})=>i.default.createElement(g,{"data-test":`${e}-advanced-config-button-tooltip`,content:(0,d._)("Advanced configurations")},i.default.createElement(h,{"data-test":`${e}-advanced-config-button`,icon:i.default.createElement(s.default,{"data-test":`${e}-advanced-config-button-icon`}),appearance:"subtle",onClick:t}));const y=({"data-test":e,children:o,isAdvanced:r,label:n,hideLabel:a,labelPosition:l,labelWidth:u,tooltip:c,help:d,style:s,error:p,controlsLayout:f,onClick:b,onAdvancedConfigButtonClick:v})=>i.default.createElement(m,{"data-test":null!=e?e:"control-group",label:n,hideLabel:a,labelPosition:l,labelWidth:u,tooltip:c,help:d,error:p,style:s,onClick:b,controlsLayout:f},r?i.Children.toArray(o).filter(Boolean).map((e=>(0,i.cloneElement)(e,{style:{flex:1}}))):o,r?i.default.createElement(t.AdvancedConfigButton,{label:n,onClick:v}):null);y.propTypes={style:u.object,isAdvanced:u.bool,onClick:u.func,onAdvancedConfigButtonClick:u.func},y.defaultProps={isAdvanced:!1},t.default=y},643:e=>{e.exports=require("@splunk/react-icons/SlidersDoubleHorizontal")},20:e=>{e.exports=require("@splunk/react-ui/Button")},250:e=>{e.exports=require("@splunk/react-ui/ControlGroup")},379:e=>{e.exports=require("@splunk/react-ui/Tooltip")},563:e=>{e.exports=require("@splunk/themes")},649:e=>{e.exports=require("@splunk/ui-utils/i18n")},23:e=>{e.exports=require("prop-types")},497:e=>{e.exports=require("react")},232:e=>{e.exports=require("styled-components")}},t={};var o=function o(r){var n=t[r];if(void 0!==n)return n.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,o),a.exports}(8);module.exports=o})();
37
+ //# sourceMappingURL=AdvancedControlGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AdvancedControlGroup.js","mappings":";;;;s1BAAA,kBACA,WACA,YACA,SACA,YACA,SACA,YACA,WACA,YAgBMA,GAAwB,aAAO,UAAgB;;;;qBAIhC,EAAAC,UAAUC;;;;;;;;;;;;;;;;EAmBzBC,GAAgB,aAAO,UAAQ;;;;;;EAQ/BC,GAA6B,aAAO,UAAoB;aACjD,EAAAH,UAAUI;;4BAEK,EAAAJ,UAAUK;;EAIzB,EAAAC,qBAAuB,EAChCC,QAAQ,GACRC,aAGI,wBAACN,EAAa,aACC,GAAGK,mCACdE,SAAS,IAAAC,GAAE,4BAEX,wBAACP,EAA0B,aACZ,GAAGI,2BACdI,KAAM,wBAAC,UAAkB,aAAY,GAAGJ,kCACxCK,WAAW,SACXJ,QAASA,KAMzB,MAAMK,EAAuB,EACzB,YAAaC,EACbC,WACAC,aACAT,QACAU,YACAC,gBACAC,aACAC,UACAC,OACAC,QACAC,QACAC,iBACAhB,UACAiB,iCAEA,wBAAC1B,EAAqB,aACPe,QAAAA,EAAY,gBACvBP,MAAOA,EACPU,UAAWA,EACXC,cAAeA,EACfC,WAAYA,EACZC,QAASA,EACTC,KAAMA,EACNE,MAAOA,EACPD,MAAOA,EACPd,QAASA,EACTgB,eAAgBA,GAEfR,EACK,EAAAU,SAASC,QAAQZ,GACZa,OAAOC,SACPC,KAAIC,IACD,IAAAC,cAAaD,EAAuB,CAChCT,MAAO,CAAEW,KAAM,OAG3BlB,EACLC,EAAa,wBAAC,EAAAV,qBAAoB,CAACC,MAAOA,EAAOC,QAASiB,IAAkC,MAIrGZ,EAAqBqB,UAAY,CAI7BZ,MAAOa,EAAEC,OAITpB,WAAYmB,EAAEE,KAId7B,QAAS2B,EAAEG,KAIXb,4BAA6BU,EAAEG,MAGnCzB,EAAqB0B,aAAe,CAChCvB,YAAY,GAGhB,UAAeH,C,UClJf2B,EAAOC,QAAUC,QAAQ,8C,SCAzBF,EAAOC,QAAUC,QAAQ,0B,UCAzBF,EAAOC,QAAUC,QAAQ,gC,UCAzBF,EAAOC,QAAUC,QAAQ,2B,UCAzBF,EAAOC,QAAUC,QAAQ,iB,UCAzBF,EAAOC,QAAUC,QAAQ,wB,SCAzBF,EAAOC,QAAUC,QAAQ,a,UCAzBF,EAAOC,QAAUC,QAAQ,Q,UCAzBF,EAAOC,QAAUC,QAAQ,oB,GCCrBC,EAA2B,CAAC,ECEhC,IAAIC,EDCJ,SAASC,EAAoBC,GAE5B,IAAIC,EAAeJ,EAAyBG,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaN,QAGrB,IAAID,EAASG,EAAyBG,GAAY,CAGjDL,QAAS,CAAC,GAOX,OAHAQ,EAAoBH,GAAUI,KAAKV,EAAOC,QAASD,EAAQA,EAAOC,QAASI,GAGpEL,EAAOC,OACf,CCnB0BI,CAAoB,G","sources":["webpack://@splunk/dynamic-editors/./src/shared/AdvancedControlGroup.tsx","webpack://@splunk/dynamic-editors/external commonjs2 \"@splunk/react-icons/SlidersDoubleHorizontal\"","webpack://@splunk/dynamic-editors/external commonjs2 \"@splunk/react-ui/Button\"","webpack://@splunk/dynamic-editors/external commonjs2 \"@splunk/react-ui/ControlGroup\"","webpack://@splunk/dynamic-editors/external commonjs2 \"@splunk/react-ui/Tooltip\"","webpack://@splunk/dynamic-editors/external commonjs2 \"@splunk/themes\"","webpack://@splunk/dynamic-editors/external commonjs2 \"@splunk/ui-utils/i18n\"","webpack://@splunk/dynamic-editors/external commonjs2 \"prop-types\"","webpack://@splunk/dynamic-editors/external commonjs2 \"react\"","webpack://@splunk/dynamic-editors/external commonjs2 \"styled-components\"","webpack://@splunk/dynamic-editors/webpack/bootstrap","webpack://@splunk/dynamic-editors/webpack/startup"],"sourcesContent":["import React, { Children, cloneElement, ReactElement } from 'react';\nimport * as T from 'prop-types';\nimport styled from 'styled-components';\nimport { _ } from '@splunk/ui-utils/i18n';\nimport AdvancedConfigIcon from '@splunk/react-icons/SlidersDoubleHorizontal';\nimport { variables } from '@splunk/themes';\nimport Tooltip from '@splunk/react-ui/Tooltip';\nimport Button, { ButtonClickHandler, ButtonProps } from '@splunk/react-ui/Button';\nimport SUIControlGroup, { ControlGroupPropsBase } from '@splunk/react-ui/ControlGroup';\n\ninterface AdvancedControlGroupProps extends Omit<ControlGroupPropsBase, 'splunkTheme'> {\n 'data-test'?: string;\n style?: Record<string, string | number>;\n isAdvanced?: boolean;\n onClick?: React.MouseEventHandler<HTMLDivElement>;\n onAdvancedConfigButtonClick?: ButtonClickHandler;\n}\n\ninterface AdvancedConfigButtonProps {\n label?: string;\n onClick?: ButtonClickHandler;\n}\n\n// remove all surrounding margins. let parent add padding\nconst ControlGroupContainer = styled(SUIControlGroup)`\n margin-top: 0;\n padding: 0;\n // adjust bottom margin according to theme\n margin-bottom: ${variables.spacingMedium};\n width: 100%;\n\n // remove top margin of the first component in control group\n &:first-child {\n margin-top: 0;\n }\n\n // remove bottom margin of the last component in control group\n &:last-child {\n margin-bottom: 0;\n }\n // remove top padding on label of the first control group\n [data-test='label']:first-of-type {\n padding-top: 0;\n }\n`;\n\n// override tooltip to set desired config button style\nconst StyledToolTip = styled(Tooltip)`\n display: flex;\n > span {\n display: flex;\n width: 35px;\n }\n`;\n\nconst StyledAdvancedConfigButton = styled(Button)<ButtonProps>`\n color: ${variables.contentColorActive} !important;\n &:hover {\n background-color: ${variables.interactiveColorOverlayDrag} !important;\n }\n`;\n\nexport const AdvancedConfigButton = ({\n label = '',\n onClick,\n}: AdvancedConfigButtonProps): React.ReactElement => {\n return (\n <StyledToolTip\n data-test={`${label}-advanced-config-button-tooltip`}\n content={_('Advanced configurations')}\n >\n <StyledAdvancedConfigButton\n data-test={`${label}-advanced-config-button`}\n icon={<AdvancedConfigIcon data-test={`${label}-advanced-config-button-icon`} />}\n appearance=\"subtle\"\n onClick={onClick}\n />\n </StyledToolTip>\n );\n};\n\nconst AdvancedControlGroup = ({\n 'data-test': dataTest,\n children,\n isAdvanced,\n label,\n hideLabel,\n labelPosition,\n labelWidth,\n tooltip,\n help,\n style,\n error,\n controlsLayout,\n onClick,\n onAdvancedConfigButtonClick,\n}: AdvancedControlGroupProps): React.ReactElement => (\n <ControlGroupContainer\n data-test={dataTest ?? 'control-group'}\n label={label}\n hideLabel={hideLabel}\n labelPosition={labelPosition}\n labelWidth={labelWidth}\n tooltip={tooltip}\n help={help}\n error={error}\n style={style}\n onClick={onClick}\n controlsLayout={controlsLayout}\n >\n {isAdvanced\n ? Children.toArray(children)\n .filter(Boolean)\n .map(child =>\n cloneElement(child as ReactElement, {\n style: { flex: 1 },\n })\n )\n : children}\n {isAdvanced ? <AdvancedConfigButton label={label} onClick={onAdvancedConfigButtonClick} /> : null}\n </ControlGroupContainer>\n);\n\nAdvancedControlGroup.propTypes = {\n /**\n * Style overriding SUI ControlGroup\n */\n style: T.object,\n /**\n * Whether the current editor is enabled with advanced configurations\n */\n isAdvanced: T.bool,\n /**\n * Callback for editor click\n */\n onClick: T.func,\n /**\n * Callback for advanced config button click\n */\n onAdvancedConfigButtonClick: T.func,\n};\n\nAdvancedControlGroup.defaultProps = {\n isAdvanced: false,\n};\n\nexport default AdvancedControlGroup;\n","module.exports = require(\"@splunk/react-icons/SlidersDoubleHorizontal\");","module.exports = require(\"@splunk/react-ui/Button\");","module.exports = require(\"@splunk/react-ui/ControlGroup\");","module.exports = require(\"@splunk/react-ui/Tooltip\");","module.exports = require(\"@splunk/themes\");","module.exports = require(\"@splunk/ui-utils/i18n\");","module.exports = require(\"prop-types\");","module.exports = require(\"react\");","module.exports = require(\"styled-components\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(8);\n"],"names":["ControlGroupContainer","variables","spacingMedium","StyledToolTip","StyledAdvancedConfigButton","contentColorActive","interactiveColorOverlayDrag","AdvancedConfigButton","label","onClick","content","_","icon","appearance","AdvancedControlGroup","dataTest","children","isAdvanced","hideLabel","labelPosition","labelWidth","tooltip","help","style","error","controlsLayout","onAdvancedConfigButtonClick","Children","toArray","filter","Boolean","map","child","cloneElement","flex","propTypes","T","object","bool","func","defaultProps","module","exports","require","__webpack_module_cache__","__webpack_exports__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","call"],"sourceRoot":""}
@@ -0,0 +1,23 @@
1
+ /*!
2
+ * Copyright © 2018 Splunk Inc.
3
+ * SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
4
+ * in part without a valid written license from Splunk Inc. is PROHIBITED.
5
+ */(()=>{"use strict";var e={212:function(e,t,r){var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return n(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const l=o(r(497)),u=a(r(232)),s=r(649),c=a(r(597)),f=a(r(267)),p=u.default.div`
6
+ position: absolute;
7
+ left: 0;
8
+ right: 0;
9
+ top: 0;
10
+ bottom: 0;
11
+ display: flex;
12
+ align-items: center;
13
+ justify-content: flex-end;
14
+ color: white;
15
+ /* this aligns the first item on the far left and the other item is aligned to flex end */
16
+ & :first-child {
17
+ margin-right: auto;
18
+ }
19
+ & {
20
+ padding: 4px 1px;
21
+ }
22
+ `;t.default=()=>l.createElement(p,null,l.createElement(c.default,{"aria-label":(0,s._)("Bottom range")}),l.createElement(f.default,{"aria-label":(0,s._)("Top range")}))},597:e=>{e.exports=require("@splunk/react-icons/ArrowDown")},267:e=>{e.exports=require("@splunk/react-icons/ArrowUp")},649:e=>{e.exports=require("@splunk/ui-utils/i18n")},497:e=>{e.exports=require("react")},232:e=>{e.exports=require("styled-components")}},t={};var r=function r(i){var n=t[i];if(void 0!==n)return n.exports;var o=t[i]={exports:{}};return e[i].call(o.exports,o,o.exports,r),o.exports}(212);module.exports=r})();
23
+ //# sourceMappingURL=ArrowLayer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ArrowLayer.js","mappings":";;;;0zBAAA,kBACA,YACA,SACA,YACA,YAEMA,EAAU,UAAOC,GAAG;;;;;;;;;;;;;;;;;EA0B1B,UAPmB,IACf,gBAACD,EAAO,KACJ,gBAAC,UAAS,eAAa,IAAAE,GAAE,kBACzB,gBAAC,UAAO,eAAa,IAAAA,GAAE,e,UC5B/BC,EAAOC,QAAUC,QAAQ,gC,UCAzBF,EAAOC,QAAUC,QAAQ,8B,UCAzBF,EAAOC,QAAUC,QAAQ,wB,UCAzBF,EAAOC,QAAUC,QAAQ,Q,UCAzBF,EAAOC,QAAUC,QAAQ,oB,GCCrBC,EAA2B,CAAC,ECEhC,IAAIC,EDCJ,SAASC,EAAoBC,GAE5B,IAAIC,EAAeJ,EAAyBG,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaN,QAGrB,IAAID,EAASG,EAAyBG,GAAY,CAGjDL,QAAS,CAAC,GAOX,OAHAQ,EAAoBH,GAAUI,KAAKV,EAAOC,QAASD,EAAQA,EAAOC,QAASI,GAGpEL,EAAOC,OACf,CCnB0BI,CAAoB,K","sources":["webpack://@splunk/dynamic-editors/./src/shared/ArrowLayer.tsx","webpack://@splunk/dynamic-editors/external commonjs2 \"@splunk/react-icons/ArrowDown\"","webpack://@splunk/dynamic-editors/external commonjs2 \"@splunk/react-icons/ArrowUp\"","webpack://@splunk/dynamic-editors/external commonjs2 \"@splunk/ui-utils/i18n\"","webpack://@splunk/dynamic-editors/external commonjs2 \"react\"","webpack://@splunk/dynamic-editors/external commonjs2 \"styled-components\"","webpack://@splunk/dynamic-editors/webpack/bootstrap","webpack://@splunk/dynamic-editors/webpack/startup"],"sourcesContent":["import * as React from 'react';\nimport styled from 'styled-components';\nimport { _ } from '@splunk/ui-utils/i18n';\nimport ArrowDown from '@splunk/react-icons/ArrowDown';\nimport ArrowUp from '@splunk/react-icons/ArrowUp';\n\nconst Wrapper = styled.div`\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n color: white;\n /* this aligns the first item on the far left and the other item is aligned to flex end */\n & :first-child {\n margin-right: auto;\n }\n & {\n padding: 4px 1px;\n }\n`;\n\nconst ArrowLayer = (): React.ReactElement => (\n <Wrapper>\n <ArrowDown aria-label={_('Bottom range')} />\n <ArrowUp aria-label={_('Top range')} />\n </Wrapper>\n);\n\nexport default ArrowLayer;\n","module.exports = require(\"@splunk/react-icons/ArrowDown\");","module.exports = require(\"@splunk/react-icons/ArrowUp\");","module.exports = require(\"@splunk/ui-utils/i18n\");","module.exports = require(\"react\");","module.exports = require(\"styled-components\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(212);\n"],"names":["Wrapper","div","_","module","exports","require","__webpack_module_cache__","__webpack_exports__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","call"],"sourceRoot":""}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Copyright © 2018 Splunk Inc.
3
+ * SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
4
+ * in part without a valid written license from Splunk Inc. is PROHIBITED.
5
+ */(()=>{"use strict";var e={962:function(e,t,r){var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return n(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CSPMessage=void 0;const s=a(r(497)),u=r(649),l=o(r(447)),c=o(r(451)),p=o(r(711));t.CSPMessage=({type:e})=>{const{cspMessageLink:t}=s.useContext(p.default);return s.createElement(l.default,{appearance:"fill",type:e,"data-test":`csp-message-${e}`},(0,u._)("External image URLs must now have their domains listed in the Dashboards Trusted Domains List by working with your administrator. Alternatively, you can upload the image directly into the dashboard. "),t&&s.createElement(c.default,{to:t,openInNewContext:!0},(0,u._)("Learn more")))}},451:e=>{e.exports=require("@splunk/react-ui/Link")},447:e=>{e.exports=require("@splunk/react-ui/Message")},649:e=>{e.exports=require("@splunk/ui-utils/i18n")},711:e=>{e.exports=require("@splunk/visualization-context/MessageContext")},497:e=>{e.exports=require("react")}},t={};var r=function r(i){var n=t[i];if(void 0!==n)return n.exports;var a=t[i]={exports:{}};return e[i].call(a.exports,a,a.exports,r),a.exports}(962);module.exports=r})();
6
+ //# sourceMappingURL=CSPMessage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CSPMessage.js","mappings":";;;;80BAAA,kBACA,SACA,YACA,YACA,YAIa,EAAAA,WAAa,EAAGC,WACzB,MAAM,eAAEC,GAAmBC,EAAMC,WAAW,WAC5C,OACI,gBAAC,UAAO,CAACC,WAAW,OAAOJ,KAAMA,EAAI,YAAa,eAAeA,MAC5D,IAAAK,GACG,2MAEHJ,GACG,gBAAC,UAAI,CAACK,GAAIL,EAAgBM,kBAAgB,IACrC,IAAAF,GAAE,eAIlB,C,UCrBLG,EAAOC,QAAUC,QAAQ,wB,UCAzBF,EAAOC,QAAUC,QAAQ,2B,UCAzBF,EAAOC,QAAUC,QAAQ,wB,UCAzBF,EAAOC,QAAUC,QAAQ,+C,UCAzBF,EAAOC,QAAUC,QAAQ,Q,GCCrBC,EAA2B,CAAC,ECEhC,IAAIC,EDCJ,SAASC,EAAoBC,GAE5B,IAAIC,EAAeJ,EAAyBG,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaN,QAGrB,IAAID,EAASG,EAAyBG,GAAY,CAGjDL,QAAS,CAAC,GAOX,OAHAQ,EAAoBH,GAAUI,KAAKV,EAAOC,QAASD,EAAQA,EAAOC,QAASI,GAGpEL,EAAOC,OACf,CCnB0BI,CAAoB,K","sources":["webpack://@splunk/dynamic-editors/./src/shared/CSPMessage.tsx","webpack://@splunk/dynamic-editors/external commonjs2 \"@splunk/react-ui/Link\"","webpack://@splunk/dynamic-editors/external commonjs2 \"@splunk/react-ui/Message\"","webpack://@splunk/dynamic-editors/external commonjs2 \"@splunk/ui-utils/i18n\"","webpack://@splunk/dynamic-editors/external commonjs2 \"@splunk/visualization-context/MessageContext\"","webpack://@splunk/dynamic-editors/external commonjs2 \"react\"","webpack://@splunk/dynamic-editors/webpack/bootstrap","webpack://@splunk/dynamic-editors/webpack/startup"],"sourcesContent":["import * as React from 'react';\nimport { _ } from '@splunk/ui-utils/i18n';\nimport Message from '@splunk/react-ui/Message';\nimport Link from '@splunk/react-ui/Link';\nimport MessageContext from '@splunk/visualization-context/MessageContext';\n\nexport type CSPMessageProps = { type: 'warning' | 'error' };\n\nexport const CSPMessage = ({ type }: CSPMessageProps) => {\n const { cspMessageLink } = React.useContext(MessageContext) as Record<string, string>; // NOSONAR\n return (\n <Message appearance=\"fill\" type={type} data-test={`csp-message-${type}`}>\n {_(\n 'External image URLs must now have their domains listed in the Dashboards Trusted Domains List by working with your administrator. Alternatively, you can upload the image directly into the dashboard. '\n )}\n {cspMessageLink && (\n <Link to={cspMessageLink} openInNewContext>\n {_('Learn more')}\n </Link>\n )}\n </Message>\n );\n};\n","module.exports = require(\"@splunk/react-ui/Link\");","module.exports = require(\"@splunk/react-ui/Message\");","module.exports = require(\"@splunk/ui-utils/i18n\");","module.exports = require(\"@splunk/visualization-context/MessageContext\");","module.exports = require(\"react\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(962);\n"],"names":["CSPMessage","type","cspMessageLink","React","useContext","appearance","_","to","openInNewContext","module","exports","require","__webpack_module_cache__","__webpack_exports__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","call"],"sourceRoot":""}
@@ -0,0 +1,18 @@
1
+ /*!
2
+ * Copyright © 2018 Splunk Inc.
3
+ * SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
4
+ * in part without a valid written license from Splunk Inc. is PROHIBITED.
5
+ */(()=>{"use strict";var e={251:function(e,t,r){var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&o(t,e,r);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const u=n(r(497)),s=n(r(23)),l=a(r(232)),c=a(r(566)),d=l.default.div.attrs((e=>({"data-test":e["data-test"]})))`
6
+ display: flex;
7
+ height: 35px;
8
+ width: 35px;
9
+ align-items: center;
10
+ justify-content: center;
11
+ color: ${c.default.contentColorActive};
12
+ border-radius: ${c.default.borderRadius};
13
+ &:hover {
14
+ background-color: ${c.default.interactiveColorOverlayHover};
15
+ cursor: pointer;
16
+ }
17
+ `,p={dataTestKey:s.string,children:s.node,onClick:s.func},f=({children:e,dataTestKey:t,onClick:r})=>u.createElement(d,{"data-test":t,onClick:r},e);f.propTypes=p,t.default=f},566:e=>{e.exports=require("@splunk/themes/variables")},23:e=>{e.exports=require("prop-types")},497:e=>{e.exports=require("react")},232:e=>{e.exports=require("styled-components")}},t={};var r=function r(o){var i=t[o];if(void 0!==i)return i.exports;var n=t[o]={exports:{}};return e[o].call(n.exports,n,n.exports,r),n.exports}(251);module.exports=r})();
18
+ //# sourceMappingURL=ClickableIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClickableIcon.js","mappings":";;;;0zBAAA,kBACA,WACA,YACA,YAEMA,EAAO,UAAOC,IAAIC,OACnBC,IAAmC,CAChC,YAAaA,EAAM,gBAED;;;;;;aAMb,UAAUC;qBACF,UAAUC;;4BAEH,UAAUC;;;EAWhCC,EAAgE,CAClEC,YAAaC,EAAEC,OACfC,SAAUF,EAAEG,KACZC,QAASJ,EAAEK,MAGTC,EAA6D,EAC/DJ,WACAH,cACAK,aAEA,gBAACb,EAAI,aAAYQ,EAAaK,QAASA,GAClCF,GAITI,EAAcR,UAAYA,EAE1B,UAAeQ,C,UC/CfC,EAAOC,QAAUC,QAAQ,2B,SCAzBF,EAAOC,QAAUC,QAAQ,a,UCAzBF,EAAOC,QAAUC,QAAQ,Q,UCAzBF,EAAOC,QAAUC,QAAQ,oB,GCCrBC,EAA2B,CAAC,ECEhC,IAAIC,EDCJ,SAASC,EAAoBC,GAE5B,IAAIC,EAAeJ,EAAyBG,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaN,QAGrB,IAAID,EAASG,EAAyBG,GAAY,CAGjDL,QAAS,CAAC,GAOX,OAHAQ,EAAoBH,GAAUI,KAAKV,EAAOC,QAASD,EAAQA,EAAOC,QAASI,GAGpEL,EAAOC,OACf,CCnB0BI,CAAoB,K","sources":["webpack://@splunk/dynamic-editors/./src/shared/ClickableIcon.tsx","webpack://@splunk/dynamic-editors/external commonjs2 \"@splunk/themes/variables\"","webpack://@splunk/dynamic-editors/external commonjs2 \"prop-types\"","webpack://@splunk/dynamic-editors/external commonjs2 \"react\"","webpack://@splunk/dynamic-editors/external commonjs2 \"styled-components\"","webpack://@splunk/dynamic-editors/webpack/bootstrap","webpack://@splunk/dynamic-editors/webpack/startup"],"sourcesContent":["import * as React from 'react';\nimport * as T from 'prop-types';\nimport styled from 'styled-components';\nimport variables from '@splunk/themes/variables';\n\nconst Icon = styled.div.attrs<{ 'data-test': string; onClick: React.MouseEventHandler<HTMLDivElement> }>(\n (props): { 'data-test': string } => ({\n 'data-test': props['data-test'],\n })\n)<{ 'data-test': string }>`\n display: flex;\n height: 35px;\n width: 35px;\n align-items: center;\n justify-content: center;\n color: ${variables.contentColorActive};\n border-radius: ${variables.borderRadius};\n &:hover {\n background-color: ${variables.interactiveColorOverlayHover};\n cursor: pointer;\n }\n`;\n\ninterface ClickableIconProps {\n dataTestKey?: string;\n children: React.ReactNode;\n onClick: React.MouseEventHandler<HTMLDivElement>;\n}\n\nconst propTypes: Record<keyof ClickableIconProps, T.Validator<any>> = {\n dataTestKey: T.string,\n children: T.node,\n onClick: T.func,\n};\n\nconst ClickableIcon: React.FunctionComponent<ClickableIconProps> = ({\n children,\n dataTestKey,\n onClick,\n}): React.ReactElement => (\n <Icon data-test={dataTestKey} onClick={onClick}>\n {children}\n </Icon>\n);\n\nClickableIcon.propTypes = propTypes;\n\nexport default ClickableIcon;\n","module.exports = require(\"@splunk/themes/variables\");","module.exports = require(\"prop-types\");","module.exports = require(\"react\");","module.exports = require(\"styled-components\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(251);\n"],"names":["Icon","div","attrs","props","contentColorActive","borderRadius","interactiveColorOverlayHover","propTypes","dataTestKey","T","string","children","node","onClick","func","ClickableIcon","module","exports","require","__webpack_module_cache__","__webpack_exports__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","call"],"sourceRoot":""}
@@ -0,0 +1,8 @@
1
+ /*!
2
+ * Copyright © 2018 Splunk Inc.
3
+ * SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
4
+ * in part without a valid written license from Splunk Inc. is PROHIBITED.
5
+ */(()=>{"use strict";var e={835:function(e,r,t){var o=this&&this.__rest||function(e,r){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(o=Object.getOwnPropertySymbols(e);l<o.length;l++)r.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(e,o[l])&&(t[o[l]]=e[o[l]])}return t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.DECollapsiblePanel=void 0;const a=l(t(497)),n=l(t(232)),s=l(t(855)),i=t(563),p=(0,n.default)(s.default)`
6
+ background-color: ${(0,i.pick)({enterprise:{light:i.variables.white,dark:i.variables.black},prisma:i.variables.backgroundColorSidebar})};
7
+ `;r.DECollapsiblePanel=e=>{var{children:r}=e,t=o(e,["children"]);return a.default.createElement(p,Object.assign({"data-test-open":t.open},t),r)}},855:e=>{e.exports=require("@splunk/react-ui/CollapsiblePanel")},563:e=>{e.exports=require("@splunk/themes")},497:e=>{e.exports=require("react")},232:e=>{e.exports=require("styled-components")}},r={};var t=function t(o){var l=r[o];if(void 0!==l)return l.exports;var a=r[o]={exports:{}};return e[o].call(a.exports,a,a.exports,t),a.exports}(835);module.exports=t})();
8
+ //# sourceMappingURL=CollapsiblePanel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CollapsiblePanel.js","mappings":";;;;ijBAAA,kBACA,YAEA,YACA,SAQMA,GAAW,aAAO,UAAoB;yBACpB,IAAAC,MAAK,CACrBC,WAAY,CACRC,MAAO,EAAAC,UAAUC,MACjBC,KAAM,EAAAF,UAAUG,OAEpBC,OAAQ,EAAAJ,UAAUK;EAeb,EAAAC,mBAAsB,I,IAAA,SAAEC,GAAQ,EAAKC,EAAI,IAAnB,cAA8D,OAC7F,wBAACZ,EAAQ,gCAAiBY,EAAKC,MAAUD,GACpCD,EAER,C,UCrCDG,EAAOC,QAAUC,QAAQ,oC,UCAzBF,EAAOC,QAAUC,QAAQ,iB,UCAzBF,EAAOC,QAAUC,QAAQ,Q,UCAzBF,EAAOC,QAAUC,QAAQ,oB,GCCrBC,EAA2B,CAAC,ECEhC,IAAIC,EDCJ,SAASC,EAAoBC,GAE5B,IAAIC,EAAeJ,EAAyBG,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaN,QAGrB,IAAID,EAASG,EAAyBG,GAAY,CAGjDL,QAAS,CAAC,GAOX,OAHAQ,EAAoBH,GAAUI,KAAKV,EAAOC,QAASD,EAAQA,EAAOC,QAASI,GAGpEL,EAAOC,OACf,CCnB0BI,CAAoB,K","sources":["webpack://@splunk/dynamic-editors/./src/shared/CollapsiblePanel.tsx","webpack://@splunk/dynamic-editors/external commonjs2 \"@splunk/react-ui/CollapsiblePanel\"","webpack://@splunk/dynamic-editors/external commonjs2 \"@splunk/themes\"","webpack://@splunk/dynamic-editors/external commonjs2 \"react\"","webpack://@splunk/dynamic-editors/external commonjs2 \"styled-components\"","webpack://@splunk/dynamic-editors/webpack/bootstrap","webpack://@splunk/dynamic-editors/webpack/startup"],"sourcesContent":["import React from 'react';\nimport styled from 'styled-components';\n\nimport SUICollapsiblePanel from '@splunk/react-ui/CollapsiblePanel';\nimport { pick, variables } from '@splunk/themes';\n\n// export type CollapsiblePanelProps = ComponentProps<typeof SUICollapsiblePanel>;\n// See if ComponentProps works now, the custom ComponentProps function is returning CollapsiblePanelProps = never\nexport type CollapsiblePanelProps = React.ComponentProps<typeof SUICollapsiblePanel>;\n\n// Adding a border to the bottom of the collapsible panel when it is open\n// Make sure the panel has the expected background colors\nconst StyledCP = styled(SUICollapsiblePanel)`\n background-color: ${pick({\n enterprise: {\n light: variables.white,\n dark: variables.black,\n },\n prisma: variables.backgroundColorSidebar,\n })};\n`;\n\n/**\n * NOTE: SUICollapsiblePanel adds a 2px margin to the top of the panel. This is what adds gaps between sections when closed.\n * This can NOT removed through the StyledCP styled component css, but it CAN be removed through passing a style attribute to that component (why?)\n * This makes it complicated if you want the margin to exist in one case (closed) and not another (open)\n *\n * For the present, settling with the margin always existing and a border only when the panel is open, with a 2px gap between the border and the header.\n * The margin is visible on mouseover of the header, as the button highlight is noticeably 2px off from the border above\n * Removing/Adding the margin based on open state may just cause the section to appear to jump around, so it's probably best to stay consistent\n */\n\n// Providing a slightly different name because the tests look for CollapsiblePanel, and we don't want it to find twice as many\nexport const DECollapsiblePanel = ({ children, ...rest }: CollapsiblePanelProps): JSX.Element => (\n <StyledCP data-test-open={rest.open} {...rest}>\n {children}\n </StyledCP>\n);\n","module.exports = require(\"@splunk/react-ui/CollapsiblePanel\");","module.exports = require(\"@splunk/themes\");","module.exports = require(\"react\");","module.exports = require(\"styled-components\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(835);\n"],"names":["StyledCP","pick","enterprise","light","variables","white","dark","black","prisma","backgroundColorSidebar","DECollapsiblePanel","children","rest","open","module","exports","require","__webpack_module_cache__","__webpack_exports__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","call"],"sourceRoot":""}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Copyright © 2018 Splunk Inc.
3
+ * SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
4
+ * in part without a valid written license from Splunk Inc. is PROHIBITED.
5
+ */(()=>{"use strict";var e={620:function(e,t,r){var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var l=Object.getOwnPropertyDescriptor(t,r);l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,l)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return l(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ColumnSelectorFooterMessage=void 0;const a=o(r(497)),n=r(773),s=r(649),u=r(497);t.ColumnSelectorFooterMessage=({numSelected:e,numFiltered:t,numAvailable:r,filter:i,noSelectedFieldsInfo:l})=>{const o=(0,u.useMemo)((()=>i?l?(0,n.sprintf)((0,s._)("%(filtered)d filtered from %(available)d fields"),{filtered:t,available:r}):(0,n.sprintf)((0,s._)("%(selected)d selected from %(filtered)d filtered"),{selected:e,filtered:t}):l?(0,n.sprintf)((0,s._)("%(shown)d of %(available)d fields"),{shown:t,available:r}):(0,n.sprintf)((0,s._)("%(selected)d selected from %(available)d"),{selected:e,available:r})),[i,l,t,r,e]);return a.createElement("span",{"data-test":"footer-message","aria-live":"polite","aria-atomic":"true"},o)}},773:e=>{e.exports=require("@splunk/ui-utils/format")},649:e=>{e.exports=require("@splunk/ui-utils/i18n")},497:e=>{e.exports=require("react")}},t={};var r=function r(i){var l=t[i];if(void 0!==l)return l.exports;var o=t[i]={exports:{}};return e[i].call(o.exports,o,o.exports,r),o.exports}(620);module.exports=r})();
6
+ //# sourceMappingURL=ColumnSelectorFooterMessage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ColumnSelectorFooterMessage.js","mappings":";;;;+wBAAA,kBACA,SACA,SACA,SAUa,EAAAA,4BAA8B,EACvCC,cACAC,cACAC,eACAC,SACAC,2BAEA,MAAMC,GAAoB,IAAAC,UAAQ,IAC1BH,EACIC,GACO,IAAAG,UAAQ,IAAAC,GAAE,mDAAoD,CACjEC,SAAUR,EACVS,UAAWR,KAGZ,IAAAK,UAAQ,IAAAC,GAAE,oDAAqD,CAClEG,SAAUX,EACVS,SAAUR,IAGXG,GACD,IAAAG,UAAQ,IAAAC,GAAE,qCAAsC,CAC5CI,MAAOX,EACPS,UAAWR,KAEf,IAAAK,UAAQ,IAAAC,GAAE,4CAA6C,CACnDG,SAAUX,EACVU,UAAWR,KAEtB,CAACC,EAAQC,EAAsBH,EAAaC,EAAcF,IAE7D,OACI,oCAAgB,iBAAgB,YAAW,SAAQ,cAAa,QAC3DK,EAER,C,UChDLQ,EAAOC,QAAUC,QAAQ,0B,UCAzBF,EAAOC,QAAUC,QAAQ,wB,UCAzBF,EAAOC,QAAUC,QAAQ,Q,GCCrBC,EAA2B,CAAC,ECEhC,IAAIC,EDCJ,SAASC,EAAoBC,GAE5B,IAAIC,EAAeJ,EAAyBG,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaN,QAGrB,IAAID,EAASG,EAAyBG,GAAY,CAGjDL,QAAS,CAAC,GAOX,OAHAQ,EAAoBH,GAAUI,KAAKV,EAAOC,QAASD,EAAQA,EAAOC,QAASI,GAGpEL,EAAOC,OACf,CCnB0BI,CAAoB,K","sources":["webpack://@splunk/dynamic-editors/./src/shared/ColumnSelectorFooterMessage.tsx","webpack://@splunk/dynamic-editors/external commonjs2 \"@splunk/ui-utils/format\"","webpack://@splunk/dynamic-editors/external commonjs2 \"@splunk/ui-utils/i18n\"","webpack://@splunk/dynamic-editors/external commonjs2 \"react\"","webpack://@splunk/dynamic-editors/webpack/bootstrap","webpack://@splunk/dynamic-editors/webpack/startup"],"sourcesContent":["import * as React from 'react';\nimport { sprintf } from '@splunk/ui-utils/format';\nimport { _ } from '@splunk/ui-utils/i18n';\nimport { useMemo } from 'react';\n\ninterface FooterProps {\n filter: string;\n numSelected?: number;\n numFiltered: number;\n numAvailable: number;\n noSelectedFieldsInfo?: boolean; // it is needed for AddColumn component which has different logic than other selection editors\n}\n\nexport const ColumnSelectorFooterMessage = ({\n numSelected,\n numFiltered,\n numAvailable,\n filter,\n noSelectedFieldsInfo,\n}: FooterProps) => {\n const footerMessageText = useMemo(() => {\n if (filter) {\n if (noSelectedFieldsInfo) {\n return sprintf(_('%(filtered)d filtered from %(available)d fields'), {\n filtered: numFiltered,\n available: numAvailable,\n });\n }\n return sprintf(_('%(selected)d selected from %(filtered)d filtered'), {\n selected: numSelected,\n filtered: numFiltered,\n });\n }\n return noSelectedFieldsInfo\n ? sprintf(_('%(shown)d of %(available)d fields'), {\n shown: numFiltered,\n available: numAvailable,\n })\n : sprintf(_('%(selected)d selected from %(available)d'), {\n selected: numSelected,\n available: numAvailable,\n });\n }, [filter, noSelectedFieldsInfo, numFiltered, numAvailable, numSelected]);\n\n return (\n <span data-test=\"footer-message\" aria-live=\"polite\" aria-atomic=\"true\">\n {footerMessageText}\n </span>\n );\n};\n","module.exports = require(\"@splunk/ui-utils/format\");","module.exports = require(\"@splunk/ui-utils/i18n\");","module.exports = require(\"react\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(620);\n"],"names":["ColumnSelectorFooterMessage","numSelected","numFiltered","numAvailable","filter","noSelectedFieldsInfo","footerMessageText","useMemo","sprintf","_","filtered","available","selected","shown","module","exports","require","__webpack_module_cache__","__webpack_exports__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","call"],"sourceRoot":""}
@@ -0,0 +1,15 @@
1
+ /*!
2
+ * Copyright © 2018 Splunk Inc.
3
+ * SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
4
+ * in part without a valid written license from Splunk Inc. is PROHIBITED.
5
+ */(()=>{"use strict";var e={151:function(e,t,r){var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,n)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const u=i(r(497)),a=i(r(23)),l=r(649),p=s(r(232)),c=s(r(566)),d=s(r(447)),f=s(r(20)),h=(0,l._)("Dynamic Option: Customized in source"),x=(0,l._)("Configured in source code beyond what can be shown here. Resetting to default will overwrite this custom configurations."),v=(0,l._)("Reset to default"),_=p.default.div`
6
+ padding: ${({padding:e})=>null!=e?e:"20px"};
7
+ width: ${({width:e})=>null!=e?e:"300px"};
8
+ color: ${c.default.contentColorActive};
9
+ `,g=p.default.div`
10
+ font-weight: 600;
11
+ font-size: 14px;
12
+ line-height: 20px;
13
+ margin-bottom: 10px;
14
+ `,m={headerText:a.string,info:a.string,resetButtonText:a.string,onResetToDefault:a.func,style:a.object},b=({headerText:e=h,info:t=x,resetButtonText:r=v,onResetToDefault:o=(()=>{}),style:n={}})=>u.createElement(_,{style:n},u.createElement(g,{"data-test":"popover-header"},e),u.createElement(d.default,{"data-test":"customized-source-popover-message",type:"info"},t),u.createElement(f.default,{"data-test":"popover-reset",appearance:"secondary",onClick:o,label:r}));b.propTypes=m,t.default=b},20:e=>{e.exports=require("@splunk/react-ui/Button")},447:e=>{e.exports=require("@splunk/react-ui/Message")},566:e=>{e.exports=require("@splunk/themes/variables")},649:e=>{e.exports=require("@splunk/ui-utils/i18n")},23:e=>{e.exports=require("prop-types")},497:e=>{e.exports=require("react")},232:e=>{e.exports=require("styled-components")}},t={};var r=function r(o){var n=t[o];if(void 0!==n)return n.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,r),i.exports}(151);module.exports=r})();
15
+ //# sourceMappingURL=CustomizedInSourceMessage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomizedInSourceMessage.js","mappings":";;;;0zBAAA,kBACA,WACA,SACA,YACA,YACA,YACA,WAEMA,GAAoB,IAAAC,GAAE,wCACtBC,GAAc,IAAAD,GAChB,4HAEEE,GAAyB,IAAAF,GAAE,oBAE3BG,EAAiB,UAAOC,GAG5B;eACa,EAAGC,aAAmBA,QAAAA,EAAW;aACnC,EAAGC,WAAiBA,QAAAA,EAAS;aAC7B,UAAUC;EAGjBC,EAAgB,UAAOJ,GAAG;;;;;EAe1BK,EAA4E,CAC9EC,WAAYC,EAAEC,OACdC,KAAMF,EAAEC,OACRE,gBAAiBH,EAAEC,OACnBG,iBAAkBJ,EAAEK,KACpBC,MAAON,EAAEO,QAGPC,EAA4B,EAC9BT,aAAaX,EACbc,OAAOZ,EACPa,kBAAkBZ,EAClBa,mBAAmB,MAAqB,GACxCE,QAAQ,CAAC,KAET,gBAACd,EAAc,CAACc,MAAOA,GACnB,gBAACT,EAAa,aAAW,kBAAkBE,GAC3C,gBAAC,UAAO,aAAW,oCAAoCU,KAAK,QACvDP,GAEL,gBAAC,UAAM,aACO,gBACVQ,WAAW,YACXC,QAASP,EACTQ,MAAOT,KAKnBK,EAA0BV,UAAYA,EAEtC,UAAeU,C,SCrEfK,EAAOC,QAAUC,QAAQ,0B,UCAzBF,EAAOC,QAAUC,QAAQ,2B,UCAzBF,EAAOC,QAAUC,QAAQ,2B,UCAzBF,EAAOC,QAAUC,QAAQ,wB,SCAzBF,EAAOC,QAAUC,QAAQ,a,UCAzBF,EAAOC,QAAUC,QAAQ,Q,UCAzBF,EAAOC,QAAUC,QAAQ,oB,GCCrBC,EAA2B,CAAC,ECEhC,IAAIC,EDCJ,SAASC,EAAoBC,GAE5B,IAAIC,EAAeJ,EAAyBG,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaN,QAGrB,IAAID,EAASG,EAAyBG,GAAY,CAGjDL,QAAS,CAAC,GAOX,OAHAQ,EAAoBH,GAAUI,KAAKV,EAAOC,QAASD,EAAQA,EAAOC,QAASI,GAGpEL,EAAOC,OACf,CCnB0BI,CAAoB,K","sources":["webpack://@splunk/dynamic-editors/./src/shared/CustomizedInSourceMessage.tsx","webpack://@splunk/dynamic-editors/external commonjs2 \"@splunk/react-ui/Button\"","webpack://@splunk/dynamic-editors/external commonjs2 \"@splunk/react-ui/Message\"","webpack://@splunk/dynamic-editors/external commonjs2 \"@splunk/themes/variables\"","webpack://@splunk/dynamic-editors/external commonjs2 \"@splunk/ui-utils/i18n\"","webpack://@splunk/dynamic-editors/external commonjs2 \"prop-types\"","webpack://@splunk/dynamic-editors/external commonjs2 \"react\"","webpack://@splunk/dynamic-editors/external commonjs2 \"styled-components\"","webpack://@splunk/dynamic-editors/webpack/bootstrap","webpack://@splunk/dynamic-editors/webpack/startup"],"sourcesContent":["import * as React from 'react';\nimport * as T from 'prop-types';\nimport { _ } from '@splunk/ui-utils/i18n';\nimport styled from 'styled-components';\nimport variables from '@splunk/themes/variables';\nimport Message from '@splunk/react-ui/Message';\nimport Button from '@splunk/react-ui/Button';\n\nconst defaultHeaderText = _('Dynamic Option: Customized in source');\nconst defaultInfo = _(\n 'Configured in source code beyond what can be shown here. Resetting to default will overwrite this custom configurations.'\n);\nconst defaultResetButtonText = _('Reset to default');\n\nconst PopoverContent = styled.div<{\n padding?: number | string;\n width?: number | string;\n}>`\n padding: ${({ padding }: any) => padding ?? '20px'};\n width: ${({ width }: any) => width ?? '300px'};\n color: ${variables.contentColorActive};\n`;\n\nconst PopoverHeader = styled.div`\n font-weight: 600;\n font-size: 14px;\n line-height: 20px;\n margin-bottom: 10px;\n`;\n\nexport interface CustomizedInSourceMessageProps {\n headerText?: string;\n info?: string;\n resetButtonText?: string;\n onResetToDefault?: (...args: any[]) => void;\n style?: Record<string, any>;\n}\n\nconst propTypes: Record<keyof CustomizedInSourceMessageProps, T.Validator<any>> = {\n headerText: T.string,\n info: T.string,\n resetButtonText: T.string,\n onResetToDefault: T.func,\n style: T.object,\n};\n\nconst CustomizedInSourceMessage = ({\n headerText = defaultHeaderText,\n info = defaultInfo,\n resetButtonText = defaultResetButtonText,\n onResetToDefault = (): void => undefined,\n style = {},\n}: CustomizedInSourceMessageProps): React.ReactElement => (\n <PopoverContent style={style}>\n <PopoverHeader data-test=\"popover-header\">{headerText}</PopoverHeader>\n <Message data-test=\"customized-source-popover-message\" type=\"info\">\n {info}\n </Message>\n <Button\n data-test=\"popover-reset\"\n appearance=\"secondary\"\n onClick={onResetToDefault}\n label={resetButtonText}\n />\n </PopoverContent>\n);\n\nCustomizedInSourceMessage.propTypes = propTypes;\n\nexport default CustomizedInSourceMessage;\n","module.exports = require(\"@splunk/react-ui/Button\");","module.exports = require(\"@splunk/react-ui/Message\");","module.exports = require(\"@splunk/themes/variables\");","module.exports = require(\"@splunk/ui-utils/i18n\");","module.exports = require(\"prop-types\");","module.exports = require(\"react\");","module.exports = require(\"styled-components\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(151);\n"],"names":["defaultHeaderText","_","defaultInfo","defaultResetButtonText","PopoverContent","div","padding","width","contentColorActive","PopoverHeader","propTypes","headerText","T","string","info","resetButtonText","onResetToDefault","func","style","object","CustomizedInSourceMessage","type","appearance","onClick","label","module","exports","require","__webpack_module_cache__","__webpack_exports__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","call"],"sourceRoot":""}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Copyright © 2018 Splunk Inc.
3
+ * SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
4
+ * in part without a valid written license from Splunk Inc. is PROHIBITED.
5
+ */(()=>{"use strict";var e={909:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});const i=o(r(497)),u=o(r(23)),l=({columnName:e,dataType:t})=>"_time"===e?i.createElement("span",null,"_time"):i.createElement("span",{"data-test":`format-field-name-${e}`},`${e} - `,i.createElement("span",{style:{fontStyle:"italic"}},t));l.propTypes={columnName:u.string,dataType:u.string},t.default=l},23:e=>{e.exports=require("prop-types")},497:e=>{e.exports=require("react")}},t={};var r=function r(n){var a=t[n];if(void 0!==a)return a.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}(909);module.exports=r})();
6
+ //# sourceMappingURL=FormatFieldName.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormatFieldName.js","mappings":";;;;0uBAAA,kBACA,WAEMA,EAAkB,EACpBC,aACAC,cAMmB,UAAfD,EACO,qCAGP,oCAAiB,qBAAqBA,KACjC,GAAGA,OACJ,wBAAME,MAAO,CAAEC,UAAW,WAAaF,IAKnDF,EAAgBK,UAAY,CACxBJ,WAAYK,EAAEC,OACdL,SAAUI,EAAEC,QAGhB,UAAeP,C,SC3BfQ,EAAOC,QAAUC,QAAQ,a,UCAzBF,EAAOC,QAAUC,QAAQ,Q,GCCrBC,EAA2B,CAAC,ECEhC,IAAIC,EDCJ,SAASC,EAAoBC,GAE5B,IAAIC,EAAeJ,EAAyBG,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaN,QAGrB,IAAID,EAASG,EAAyBG,GAAY,CAGjDL,QAAS,CAAC,GAOX,OAHAQ,EAAoBH,GAAUI,KAAKV,EAAOC,QAASD,EAAQA,EAAOC,QAASI,GAGpEL,EAAOC,OACf,CCnB0BI,CAAoB,K","sources":["webpack://@splunk/dynamic-editors/./src/shared/FormatFieldName.tsx","webpack://@splunk/dynamic-editors/external commonjs2 \"prop-types\"","webpack://@splunk/dynamic-editors/external commonjs2 \"react\"","webpack://@splunk/dynamic-editors/webpack/bootstrap","webpack://@splunk/dynamic-editors/webpack/startup"],"sourcesContent":["import * as React from 'react';\nimport * as T from 'prop-types';\n\nconst FormatFieldName = ({\n columnName,\n dataType,\n}: {\n columnName: string;\n dataType: string;\n}): React.ReactElement => {\n // as per design, `_time` column name doesn't have dataType appended\n if (columnName === '_time') {\n return <span>_time</span>;\n }\n return (\n <span data-test={`format-field-name-${columnName}`}>\n {`${columnName} - `}\n <span style={{ fontStyle: 'italic' }}>{dataType}</span>\n </span>\n );\n};\n\nFormatFieldName.propTypes = {\n columnName: T.string,\n dataType: T.string,\n};\n\nexport default FormatFieldName;\n","module.exports = require(\"prop-types\");","module.exports = require(\"react\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(909);\n"],"names":["FormatFieldName","columnName","dataType","style","fontStyle","propTypes","T","string","module","exports","require","__webpack_module_cache__","__webpack_exports__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","call"],"sourceRoot":""}
@@ -0,0 +1,12 @@
1
+ /*!
2
+ * Copyright © 2018 Splunk Inc.
3
+ * SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
4
+ * in part without a valid written license from Splunk Inc. is PROHIBITED.
5
+ */(()=>{"use strict";var e={n:t=>{var o=t&&t.__esModule?()=>t.default:()=>t;return e.d(o,{a:o}),o},d:(t,o)=>{for(var r in o)e.o(o,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:o[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{default:()=>r});const o=require("styled-components");const r=e.n(o)().div`
6
+ padding: 10px 15px 0px 15px;
7
+ display: flex;
8
+ align-items: center;
9
+ justify-content: space-between;
10
+ cursor: pointer;
11
+ `;module.exports=t})();
12
+ //# sourceMappingURL=Header.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Header.js","mappings":";;;;sBACA,IAAIA,EAAsB,CCA1BA,EAAyBC,IACxB,IAAIC,EAASD,GAAUA,EAAOE,WAC7B,IAAOF,EAAiB,QACxB,IAAM,EAEP,OADAD,EAAoBI,EAAEF,EAAQ,CAAEG,EAAGH,IAC5BA,CAAM,ECLdF,EAAwB,CAACM,EAASC,KACjC,IAAI,IAAIC,KAAOD,EACXP,EAAoBS,EAAEF,EAAYC,KAASR,EAAoBS,EAAEH,EAASE,IAC5EE,OAAOC,eAAeL,EAASE,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAE1E,ECNDR,EAAwB,CAACc,EAAKC,IAAUL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,GCClFf,EAAyBM,IACH,oBAAXa,QAA0BA,OAAOC,aAC1CV,OAAOC,eAAeL,EAASa,OAAOC,YAAa,CAAEC,MAAO,WAE7DX,OAAOC,eAAeL,EAAS,aAAc,CAAEe,OAAO,GAAO,G,mCCL9D,MAAM,EAA+BC,QAAQ,qBCE7C,Q,MAAeC,GAAAA,GAAU","sources":["webpack://@splunk/dynamic-editors/webpack/bootstrap","webpack://@splunk/dynamic-editors/webpack/runtime/compat get default export","webpack://@splunk/dynamic-editors/webpack/runtime/define property getters","webpack://@splunk/dynamic-editors/webpack/runtime/hasOwnProperty shorthand","webpack://@splunk/dynamic-editors/webpack/runtime/make namespace object","webpack://@splunk/dynamic-editors/external commonjs2 \"styled-components\"","webpack://@splunk/dynamic-editors/./src/shared/Header.jsx"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"styled-components\");","import styled from 'styled-components';\n\nexport default styled.div`\n padding: 10px 15px 0px 15px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n cursor: pointer;\n`;\n"],"names":["__webpack_require__","module","getter","__esModule","d","a","exports","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","require","styled"],"sourceRoot":""}
@@ -0,0 +1,8 @@
1
+ /*!
2
+ * Copyright © 2018 Splunk Inc.
3
+ * SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
4
+ * in part without a valid written license from Splunk Inc. is PROHIBITED.
5
+ */(()=>{"use strict";var e={137:function(e,t,r){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MessageContainer=void 0;const s=o(r(232));t.MessageContainer=s.default.div`
6
+ margin-top: 10px;
7
+ `},232:e=>{e.exports=require("styled-components")}},t={};var r=function r(o){var s=t[o];if(void 0!==s)return s.exports;var n=t[o]={exports:{}};return e[o].call(n.exports,n,n.exports,r),n.exports}(137);module.exports=r})();
8
+ //# sourceMappingURL=MessageContainer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MessageContainer.js","mappings":";;;;gNAAA,kBAEa,EAAAA,iBAAmB,UAAOC,GAAG;;WCF1CC,EAAOC,QAAUC,QAAQ,oB,GCCrBC,EAA2B,CAAC,ECEhC,IAAIC,EDCJ,SAASC,EAAoBC,GAE5B,IAAIC,EAAeJ,EAAyBG,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaN,QAGrB,IAAID,EAASG,EAAyBG,GAAY,CAGjDL,QAAS,CAAC,GAOX,OAHAQ,EAAoBH,GAAUI,KAAKV,EAAOC,QAASD,EAAQA,EAAOC,QAASI,GAGpEL,EAAOC,OACf,CCnB0BI,CAAoB,K","sources":["webpack://@splunk/dynamic-editors/./src/shared/MessageContainer.tsx","webpack://@splunk/dynamic-editors/external commonjs2 \"styled-components\"","webpack://@splunk/dynamic-editors/webpack/bootstrap","webpack://@splunk/dynamic-editors/webpack/startup"],"sourcesContent":["import styled from 'styled-components';\n\nexport const MessageContainer = styled.div`\n margin-top: 10px;\n`;\n","module.exports = require(\"styled-components\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(137);\n"],"names":["MessageContainer","div","module","exports","require","__webpack_module_cache__","__webpack_exports__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","call"],"sourceRoot":""}
@@ -0,0 +1,12 @@
1
+ /*!
2
+ * Copyright © 2018 Splunk Inc.
3
+ * SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
4
+ * in part without a valid written license from Splunk Inc. is PROHIBITED.
5
+ */(()=>{"use strict";var e={494:function(e,t,r){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=o(r(232));t.default=i.default.div`
6
+ border-radius: 3px; /* @TODO(pwied): should this be imported from SUI variables? */
7
+ overflow: hidden;
8
+ position: relative;
9
+ width: 100%;
10
+ height: 20px;
11
+ `},232:e=>{e.exports=require("styled-components")}},t={};var r=function r(o){var i=t[o];if(void 0!==i)return i.exports;var s=t[o]={exports:{}};return e[o].call(s.exports,s,s.exports,r),s.exports}(494);module.exports=r})();
12
+ //# sourceMappingURL=PreviewWrapper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PreviewWrapper.js","mappings":";;;;sLAAA,kBAEA,UAAe,UAAOA,GAAG;;;;;;WCFzBC,EAAOC,QAAUC,QAAQ,oB,GCCrBC,EAA2B,CAAC,ECEhC,IAAIC,EDCJ,SAASC,EAAoBC,GAE5B,IAAIC,EAAeJ,EAAyBG,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaN,QAGrB,IAAID,EAASG,EAAyBG,GAAY,CAGjDL,QAAS,CAAC,GAOX,OAHAQ,EAAoBH,GAAUI,KAAKV,EAAOC,QAASD,EAAQA,EAAOC,QAASI,GAGpEL,EAAOC,OACf,CCnB0BI,CAAoB,K","sources":["webpack://@splunk/dynamic-editors/./src/shared/PreviewWrapper.tsx","webpack://@splunk/dynamic-editors/external commonjs2 \"styled-components\"","webpack://@splunk/dynamic-editors/webpack/bootstrap","webpack://@splunk/dynamic-editors/webpack/startup"],"sourcesContent":["import styled from 'styled-components';\n\nexport default styled.div`\n border-radius: 3px; /* @TODO(pwied): should this be imported from SUI variables? */\n overflow: hidden;\n position: relative;\n width: 100%;\n height: 20px;\n`;\n","module.exports = require(\"styled-components\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(494);\n"],"names":["div","module","exports","require","__webpack_module_cache__","__webpack_exports__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","call"],"sourceRoot":""}