Closed SalihuDickson closed 1 month ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
elixir-cloud-components | 🔄 Building (Inspect) | Visit Preview | 💬 Add feedback | Oct 12, 2024 6:49pm |
Latest commit: 6e9dfd5c2651a76ccd9a5858ec29edae8cf58b07
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
This pull request refactors and improves the form change events in the EccUtilsDesignForm component. It introduces a new method for dispatching change events, removes redundant code, and updates the handling of various form field types. Additionally, it removes utilities-related files and references.
sequenceDiagram
participant User
participant Form as EccUtilsDesignForm
participant Event as CustomEvent
User->>Form: Change form field
Form->>Form: alertFieldChange(key, value)
Form->>Event: Dispatch "ecc-utils-change" event
Event-->>Form: Event bubbles up
Event-->>User: Notify change event
classDiagram
class EccUtilsDesignForm {
+alertFieldChange(key: string, value: any)
+renderSwitchTemplate(field: Field, path: string): TemplateResult
+requestUpdate()
-form: any
}
note for EccUtilsDesignForm "Refactored to use alertFieldChange for event dispatching"
Change | Details | Files |
---|---|---|
Introduced a new method for dispatching form change events |
|
packages/ecc-utils-design/src/components/form/form.ts |
Improved handling of select field changes |
|
packages/ecc-utils-design/src/components/form/form.ts |
Removed utilities-related files and references |
|
apps/documentation/pages/design/_meta.json packages/ecc-utils-design/src/index.ts scripts/build.js apps/documentation/pages/design/utilities.mdx packages/ecc-utils-design/src/utilities/general.ts packages/ecc-utils-design/src/utilities/index.ts |
Description
Fixes #(issue)
Checklist
Comments
Summary by Sourcery
Refactor the form component to improve change event handling by centralizing event dispatch logic into a new method. Remove unused utility files and update the build script and documentation to reflect these deletions.
Enhancements:
alertFieldChange
to streamline event dispatching.Build:
utilities
directory from the build script.Documentation:
Chores:
utilities.mdx
,general.ts
, andindex.ts
.