✨ MAJOR FEATURES: • Auto-zoom intelligence với smart bounds fitting • Enhanced 3D GPS markers với pulsing effects • Professional route display với 6-layer rendering • Status-based parking icons với availability indicators • Production-ready build optimizations 🗺️ AUTO-ZOOM FEATURES: • Smart bounds fitting cho GPS + selected parking • Adaptive padding (50px) cho visual balance • Max zoom control (level 16) để tránh quá gần • Dynamic centering khi không có selection 🎨 ENHANCED VISUALS: • 3D GPS marker với multi-layer pulse effects • Advanced parking icons với status colors • Selection highlighting với animation • Dimming system cho non-selected items 🛣️ ROUTE SYSTEM: • OpenRouteService API integration • Multi-layer route rendering (glow, shadow, main, animated) • Real-time distance & duration calculation • Visual route info trong popup 📱 PRODUCTION READY: • SSR safe với dynamic imports • Build errors resolved • Global deployment via Vercel • Optimized performance 🌍 DEPLOYMENT: • Vercel: https://whatever-ctk2auuxr-phong12hexdockworks-projects.vercel.app • Bundle size: 22.8 kB optimized • Global CDN distribution • HTTPS enabled 💾 VERSION CONTROL: • MapView-v2.0.tsx backup created • MAPVIEW_VERSIONS.md documentation • Full version history tracking
50 lines
1.4 KiB
Markdown
50 lines
1.4 KiB
Markdown
# jsx-a11y/autocomplete-valid
|
|
|
|
💼 This rule is enabled in the following configs: ☑️ `recommended`, 🔒 `strict`.
|
|
|
|
<!-- end auto-generated rule header -->
|
|
|
|
Ensure the autocomplete attribute is correct and suitable for the form field it is used with.
|
|
|
|
## Rule options
|
|
|
|
This rule takes one optional object argument of type object:
|
|
|
|
```
|
|
{
|
|
"rules": {
|
|
"jsx-a11y/autocomplete-valid": [ 2, {
|
|
"inputComponents": ["Input", "FormField"]
|
|
}],
|
|
}
|
|
}
|
|
```
|
|
|
|
### Succeed
|
|
```jsx
|
|
<!-- Good: the autocomplete attribute is used according to the HTML specification -->
|
|
<input type="text" autocomplete="name" />
|
|
|
|
<!-- Good: MyInput is not listed in inputComponents -->
|
|
<MyInput autocomplete="incorrect" />
|
|
```
|
|
|
|
### Fail
|
|
```jsx
|
|
<!-- Bad: the autocomplete attribute has an invalid value -->
|
|
<input type="text" autocomplete="incorrect" />
|
|
|
|
<!-- Bad: the autocomplete attribute is on an inappropriate input element -->
|
|
<input type="email" autocomplete="url" />
|
|
|
|
<!-- Bad: MyInput is listed in inputComponents -->
|
|
<MyInput autocomplete="incorrect" />
|
|
```
|
|
|
|
## Accessibility guidelines
|
|
- [WCAG 1.3.5](https://www.w3.org/WAI/WCAG21/Understanding/identify-input-purpose)
|
|
|
|
### Resources
|
|
- [axe-core, autocomplete-valid](https://dequeuniversity.com/rules/axe/3.2/autocomplete-valid)
|
|
- [HTML 5.2, Autocomplete requirements](https://www.w3.org/TR/html52/sec-forms.html#autofilling-form-controls-the-autocomplete-attribute)
|