Esri / calcite-design-system

A monorepo containing the packages for Esri's Calcite Design System
https://developers.arcgis.com/calcite-design-system/
Other
295 stars 76 forks source link

Update form components to leverage ElementInternals API #8126

Open jcfranco opened 1 year ago

jcfranco commented 1 year ago

Description

Stencil v4.5.0 added support for ElementInternals, allowing our form components to use this API instead of our custom solution.

cc @eriklharper @benelan

Blocked issues: #9319, #4681, #5026

Proposed Advantages

Improved form integration and leaner components.

Which Component

All components implementing FormComponent:

Relevant Info

Safari added support for ElementInternals at 16.4, so we may have to consider the following if we update form components to use this API:

  1. waiting until Safari 18 to ensure last 2 base versions support this API
  2. consider a polyfill to handle Safari 16.0 – 16.3 (requires a lot testing)
  3. moving forward and document form integration won't work for 16.0 – 16.3 (nonstarter option as it introduces a regression for this version)

Calcite package

Related issues

geospatialem commented 1 week ago

With the transition to Lit from Stencil, Calcite is ensuring stability before proceeding with ElementInternals support, targeting the above in the next upcoming milestone (December 2024).

jcfranco commented 13 hours ago

This is blocked by https://github.com/lit/rfcs/pull/45.