-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Vis: Default editor] EUIficate coordinate map (tile map) options tab (…
…#42517) (#42671) * EUIficate tile_map_vis_options * Add basic options * Get rid of vislib_basic_options * Move wms_options directive to region_map * Get rid if TileMapVisParams directive * Update region_map namespaces * Support of injecting of any dependency
- Loading branch information
Showing
22 changed files
with
602 additions
and
249 deletions.
There are no files selected for viewing
50 changes: 50 additions & 0 deletions
50
src/legacy/core_plugins/kbn_vislib_vis_types/public/controls/range.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* | ||
* Licensed to Elasticsearch B.V. under one or more contributor | ||
* license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright | ||
* ownership. Elasticsearch B.V. licenses this file to you under | ||
* the Apache License, Version 2.0 (the "License"); you may | ||
* not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
import React from 'react'; | ||
import { EuiFormRow, EuiRange } from '@elastic/eui'; | ||
import { VisOptionsSetValue } from 'ui/vis/editors/default'; | ||
|
||
interface RangeOptionProps { | ||
label: string; | ||
max: number; | ||
min: number; | ||
paramName: string; | ||
step?: number; | ||
value: string | number; | ||
setValue: VisOptionsSetValue; | ||
} | ||
|
||
function RangeOption({ label, max, min, step, paramName, value, setValue }: RangeOptionProps) { | ||
return ( | ||
<EuiFormRow label={label} fullWidth={true} compressed> | ||
<EuiRange | ||
fullWidth | ||
showValue | ||
max={max} | ||
min={min} | ||
step={step} | ||
value={value} | ||
onChange={ev => setValue(paramName, ev.target.value)} | ||
/> | ||
</EuiFormRow> | ||
); | ||
} | ||
|
||
export { RangeOption }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 0 additions & 31 deletions
31
src/legacy/core_plugins/kbn_vislib_vis_types/public/controls/vislib_basic_options.html
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.