* Step 2: Update client code to use resolve() method instead of get()
Following sharing Saved Objects developer guide: Step 2
This step demonstrates the changes to update client code to use the new
SavedObjectsClient `resolve()` method instead of `get()`.
* Step 3 Lens
* [eslint] add rule to prevent export* in plugin index files
* deduplicate export names for types/instances with the same name
* attempt to auto-fix duplicate exports too
* capture exported enums too
* enforce no_export_all for core too
* disable rule by default, allow opting-in for help fixing
* update tests
* reduce yarn.lock duplication
* add rule but no fixes
* disable all existing violations
* update api docs with new line numbers
* revert unnecessary changes to yarn.lock which only had drawbacks
* remove unnecessary eslint-disable
* rework codegen to split type exports and use babel to generate valid code
* check for "export types" deeply
* improve test by using fixtures
* add comments to some helper functions
* disable fix for namespace exports including types
* label all eslint-disable comments with related team-specific issue
* ensure that child exports of `export type` are always tracked as types
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* [Lens] Inspect flyout should be available in editor mode.
* fix typo
* add test
* add functional tests for inspector
* toMatchInlineSnapshot -> toMatchSnapshot
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Update dependency @elastic/charts to v34
* tentative fix for heatmap legend items, to be fixed in patch before `7.15`
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com>
Co-authored-by: nickofthyme <nick.ryan.partridge@gmail.com>
* [build_ts_refs] improve caches, allow building a subset of projects
* cleanup project def script and update refs in type check script
* rename browser_bazel config to avoid kebab-case
* remove execInProjects() helper
* list references for tsconfig.types.json for api-extractor workload
* disable composite features of tsconfig.types.json for api-extractor
* set declaration: true to avoid weird debug error
* fix jest tests
Co-authored-by: spalger <spalger@users.noreply.github.com>
* Use Serializable from package
* Rename to align with core
* fix
* more replacements
* docssss
* fix
* Move it to @kbn/utility-types and remove core export
* buildy build
* tests
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Add nested context support
* remove execution context service on the client side
ExecutionContextContaier is not compatible with SerializableState, so I had to fall back to passing context as POJO. With this change, using a service looks like overhead.
* update docs
* fix test
* address comments from Josh
* put export back
* update docs
* remove outdated export
* use input.title for unsaved vis
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* [Lens] Synchronize cursor position for X-axis across all Lens visualizations in a dashboard
Closes: #77530
* add mocks for active_cursor service
* fix jest tests
* fix jest tests
* apply PR comments
* fix cursor style
* update heatmap, jest
* add tests
* fix wrong import
* replace cursor for timelion
* update tsvb_dashboard baseline
* fix CI
* update baseline
* Update active_cursor_utils.ts
* add debounce
* remove cursor from heatmap and pie
* add tests for debounce
* return theme order back
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* [Lens] Formats correctly the falsy values on the x axis
* Address PR comments
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* set correct focus ring for each theme
* fix field and dimension button span faux focus
* fix dimension button focus
* add mixin to remove euiFocusRing
* clean up the mess
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* [Lens] Allows the users to change the axis orientation
* Disable orientation if ticklabels are off
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* 🚚 First move batch to common
* 🚚 Second batch of move
* 🏷️ Import types only
* 🚚 Third batch
* 🚚 Fourth batch move
* 🚚 Another module moved
* 🚚 More function moved
* 🚚 Last bit of move
* ⚡ Reduce page load bundle size
* 🐛 Fix import issue
* 🐛 More import fix
* ✨ Registered functions on the server
* 🐛 Expose datatable_column as well
* ✅ Add server side expression test
* 🚚 Moved back render functions to public
* ✨ Add a timezone arg to time_scale
* 🔥 Remove timezone arg
* 🔥 Remove server side code for now
* 👌 Integrated feedback
* 🚚 Move back datatable render function
* 🏷️ Fix imports
* 🏷️ Fix missing export
* 🚚 Move render functions back!
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* [Lens] Truncate field dropdown in the middle
* implementation
* aligning width of the elements, calculating width in canvas, serving edgecases like selected element, tests update
* revert selectedField as it doesn't solve all cases
* code review
* cr
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>