Adds support for users to upload their own SVG icons for styling geo_points or clusters in Elastic Maps.
Because Elastic Maps uses WebGL, dynamic styling requires rendering SVG icons as monochromatic PNGs using a Signed Distance Function algorithm. As a result, highly detailed designs and any color definitions in SVGs uploaded to Maps are not retained. Monochromatic SVG icons work best.
Custom icons are appended to the map saved object and are not accessible in other maps. Using the custom icon in another map requires creating a copy of the existing map or uploading the icon to the new map. Custom icons can be added, edited, or deleted in Map Settings. Custom icons can also be added from within the Icon select menu.
* Updgraded EUI packages in package.json and src/dev/license_checker/config.js
* Resolved Jest test failures for Jest test suites 1 and 2. Updated snapshots, and updated equality conditions for specific test cases
* Resolve Jest test cases for Jest test suite 3. Updated snapshots for required tests
* Resolved failing Jest test cases in Jest suite 3. Updated tests checking for strict text equality to account for text coming from the EuiScreenReaderOnly component. Also updated tests to account for EuiIcon text that is now rendered when the icon is imported from .testenv (PR 5709 - https://github.com/elastic/eui/pull/5709/).
* type fixes
* eui to 52.2.0
* Resolved test cases for Jest test suites 1 and 2. Updated required snapshots.
Updated tests using getAllByLabelText and getByLabelText to getAllByText and getByText respectively as the former have been deprecated
* Updated Jest tests for Jest test suites 5 and 6. Updated required snapshots. Updated instances of getByLabelText and getAllByLabelText to getByText and getAllByText as the former are now deprecated.
* Updated Jest tests for Jest test suite 7. Updated required snapshots.
* Completed test case revisions for Jest test suites 1, 3, 6, 7, and 8. Updated required snapshots. Updated various tests to account for text rendering of the EuiIcon text.
* removed unused test utils
* use .contains for euiicon content
* storyshots updates
* linting
* Fix failing a11y violations tests
* Fix Jest failures caused by #eui/5709
- these changes should be reverted if we opt to revert the above PR
Co-authored-by: Bree Hall <briannajdhall@gmail.com>
Co-authored-by: Greg Thompson <thompson.glowe@gmail.com>
* Updgraded EUI packages in package.json and src/dev/license_checker/config.js
* Resolved Jest test failures for Jest test suites 1 and 2. Updated snapshots, and updated equality conditions for specific test cases
* Resolve Jest test cases for Jest test suite 3. Updated snapshots for required tests
* type fixes
* Resolved failing Jest test cases in Jest suite 3. Updated tests checking for strict text equality to account for text coming from the EuiScreenReaderOnly component. Also updated tests to account for EuiIcon text that is now rendered when the icon is imported from .testenv (PR 5709 - https://github.com/elastic/eui/pull/5709/).
* eui to 52.2.0
* Resolved test cases for Jest test suites 1 and 2. Updated required snapshots.
Updated tests using getAllByLabelText and getByLabelText to getAllByText and getByText respectively as the former have been deprecated
* Updated Jest tests for Jest test suites 5 and 6. Updated required snapshots. Updated instances of getByLabelText and getAllByLabelText to getByText and getAllByText as the former are now deprecated.
* Updated Jest tests for Jest test suite 7. Updated required snapshots.
* Completed test case revisions for Jest test suites 1, 3, 6, 7, and 8. Updated required snapshots. Updated various tests to account for text rendering of the EuiIcon text.
* eui back to v52.2.0
* removed unused test utils
* use .contains for euiicon content
* storyshots updates
* linting
Co-authored-by: Greg Thompson <thompson.glowe@gmail.com>
* [A11y] Added axe testing to testBed to be used in jest tests (CITs)
* [A11y] Refactored axe helpers to be outside of testBed for better separation of concerns. Also added tests for indices tab in Index Management.
* [A11y] Switched `axe_helpers` to use a Kibana wide axe config and rules that are now in kbn-test package
* [A11y] Switched `axe_helpers` to use a Kibana wide axe config and rules that are now in kbn-test package
* [A11y] Completed a11y tests in Index Management Indices tab. Also refactored http requests helper file.
* Removed import comment
* Reverted yarn.lock change
* Correct yarn.lock changes
* [IM] Updated the branch after merging main
* [IM] Reverted unrelated ResponseError interface changes
* [IM] Fixed eslint issue with kbn/test import
* eui to v50.0.0
* i18n tokens
* Deprecate EuiDataGrid's `popoverContents` prop for `renderCellPopover`
* [optional ML refactor] Use `renderCellValue.isDetails` to customize numeric popover content instead of `renderCellPopover`
- since no especially custom popover rendering is occuring, just conditional content
* onChangeItemsPerPage update
* storyshots updates
* snapshot updates
* snapshot updates
* snapshot updates
* snapshot updates
* EuiComboBox listbox -> combobox
* remove invalid combobox aria attr
* Revert "onChangeItemsPerPage update"
This reverts commit 127c9e5840.
* eui to v51.0.0
* WIP: schema
* WIP: schema
* EuiSelectable API changes
* WIP: schema
* hidePerPageOptions -> showPerpageOptions
* WIP: schema
* hidePerPageOptions -> showPerpageOptions
* WIP: schema
* breadcrumbs type
* clean up
* snapshot updates
* Fix E2E datagrid cell filter action test
- This changed in 50.0.0 because of https://github.com/elastic/eui/pull/5681
- `await testSubjects.click('filterForButton')` applies to both the cell action button icon and the cell popover button
- The test was trying to click the cell action button icon and not the popover button, which closed the popover and caused nothing to actually get clicked
- the solution I went with was to simply avoid opening the cell popover but instead click the cell action icon directly
* WIP: selectable search
* clean up
* eui to v51.1.0
* i18n tokens
* resolve SharedRenderCellElementProps.schema optionality
* i18n, snapshot updates
* shapshot update
* consolidate url-parse
Co-authored-by: Constance Chen <constance.chen@elastic.co>
* Fix chart breaking changes in Heatmap and small stylistic fixes
* Ping every team with non EUI themed chart
* Update charts to 45.0.1
* Updated donut chart snapshot
* Fix swimlane functional tests
* Fix new swimlane height and test x offset
* Add link to EUI theme README.md
Co-authored-by: Marco Vettorello <marco.vettorello@elastic.co>
* [ts] enable sourcemaps in summarized types of @kbn/crypto
* update snapshots
* remove unnecessary exports of @kbn/type-summarizer package
* remove tsc from the build process
* use `@kbn/type-summarizer` to summarize its own types
* add tests for interface and function
* switch to export type where necessary
* ignore __tmp__ in global jest preset
* ignore __tmp__ globally
* remove `@kbn/crypto` types path
* [main] update ES client version to 8.2.0-canary1
* fix type errors - batch 1
* fix more type errors
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* update renovate bot settings
* update es client to 8.1-canary3
* specify type explicitly when pass a serialized object
* attempt 1 in fleet.specify type explicitly when pass a serialized object
* fix the first batch of ts errors
* fix more violations
* fix unit test
* fix more violations 2
* fix more violations 3
* fix more violations 4
* review comments
Co-authored-by: pgayvallet <pierre.gayvallet@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Upgraded the version of EUI to 47.0.0 and react-beautiful-dnd (an EUI dependancy) to 13.1.0
* Update i18n mappings with required changes
* Fix all data grid types/tests missing the new `colIndex` prop passed by renderCellValue and cellActions
* Fix cellActions closePopover type to indicate conditionality (only passed when popover is open)
* Fix more datagrid colIndex errors
- pass more missing `colIndex`s
- pass RowAction colIndex, because it's inheriting types from EUI
- omit colIndex from the leading controls column renderer, because it doesn't need them
* Improve StatefulCell typing
- pass colIndex (which fixes EUI type match issue)
- DRY out ariaColIndex logic
- rename ariaRowindex passed to StatefulCell to rowIndex
* Updated i18n_eui_mapping tests to add euiSelectable.searchResults to the tokensToSkip array
* Fix failing ML datagrid FTR test
- `visibleRowIndex` is not a prop passed back by `popoverContents` (see `EuiDataGridCellValueElementProps`), but `rowIndex` is
* Revert attempted ML type change
- in actuality this is an EUI typing issue, children is a ReactElement, not a ReactNode. However we'll shortly be deprecationg popoverContents, so this isn't worth fixing right now
* Update test files to include up to date snapshots of code samples
* Updated a test snapshots to match the latest version of code samples
* Upgraded the version of EUI from 47.0.0 to 48.0.0 in package.json and license_checker config files
* Update the required i18n translation mapping file with additions and changes from EUI version 48.0.0
* Updated three security screen accessibility tests to check for the aria-checked attribute instead of the aria-selected attribute as part of an accessibility update to aria made in EUI PR 5581
* Updated two unit cases to that are responsible for checking strict equality of strings. These unit tests were for the EuiSelectable and EuiFilterGroup components. Both of these components contain and utilize EuiScreenReaderOnly which provides text that is used for screen readers, but can still be viewed and queried in the DOM. These tests have been updated with the EuiScreenReaderOnly text in mind.
* Code clean up and added a missing internationalization token
* Ran yarn kbn bootstrap to update the yarn lock file
* Fix failing ML FTR test
- EuiSelectable now relies on aria-checked to indicate selected state, per W3 spec
* Fix failing functional tests that click the datagrid cell expand button
.euiDataGridRowCell__expandButtonIcon was deprecated in favor of a shared .euiDataGridRowCell__actionButtonIcon class, but the expand action is always the last one
* Upgrade to 48.1.1
* Switch to data-test-subj for datagrid cell expansion selectors
* Switch to new `data-test-selected` attribute over `aria-checked`
* Update snapshots/Jest tests to account for EuiSelectable use in EuiFilter
Co-authored-by: Constance Chen <constance.chen@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* taking of PoC of worker_thread implementation
* initial version of pdf generation working, restored from PoC and using TS in worker
* remove duplicated consts
* update legacy pdf generation to also use updated PdfMaker api
* remove unnecessary tracker methods
* refactor name
* updated pdfmaker integration test to use new api
* added some tests for the pdfworker out of memory condition
* added missing memory leak files
* update pdf/common exports, fix types and add a comment explaining the heap size setting
* update v1 generate pdf code given new shared code and types
* update v2 generate pdf code given new shared code and types
* added shared util to get errors from screenshot results
* edited comment
* remove duplicated file license
* use shared assetPath constant
* separate setting of old and young heap regions
* revert refactor to shared extract messages for this pr
* revert use of optional chaining for this pr
* rename file "pdf_generate_errors" to "pdfmaker_errors"
* rather use Buffer.concat and remove concat-stream, also transfer ownwership of underlying ArrayBuffer rather than copying it
* remove non-existent import
* comment
* clarify comment
* remove explicit dependency on concat-stream
* refactor to use a single long-lived worker thread for PDF generation
* refactor for slightly more robust error handling and removal of the on error event listener
* go back to a new Worker per generation request
* added README about worker_threads findings for PDF buffer generation
* remove unnecessary i18n
* ensure worker is cleaned up before generating a new PDF
* remove unused import
* fix pdf generation in release builds
* ensure that the error messages from the worker is recorded on the resulting Report object for users to see
* organize imports
* clarify comment
* skip leaky worker test
* remove TODO
* updated comment
* do not use parentPort for comms with the worker
* actually send the message on the worker message port
* test if jest integration works with skipped test commented out? :doubt:
* test if jest integration works with skipped test commented out? :doubt: part ii
* revert test commits
* revert import and fix comment type
* [revert] comment out entire pdfmaker test file
* Revert "[revert] comment out entire pdfmaker test file"
This reverts commit e6256f1f5b.
* [revert] remove worker code
* Revert "[revert] remove worker code"
This reverts commit caf67a88b8.
* leave worker memory unset
* Revert "leave worker memory unset"
This reverts commit 0638a7af53.
* try moving only the worker dependencies out for bundling and do not bundle the entire worker file
* update comment
* added code to prevent worker thread from ever exiting with 1
* added some comments
* skip crashing worker test for now
* try skipping PdfMaker integration tests entirely
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>