Skip to content

Location inputs #4

Closed
Closed

Description

@n4ff4h

Country, atoll and island selects (cascading where relevant) for javaabu/forms, @javaabu/forms and stencil.

Activity

  1. added
    next-genNext-gen Javaabu packages
    featurePackage feature from the spec
    on Nov 4, 2026
  2. n4ff4h commented on Nov 5, 2026

    @n4ff4h
    CollaboratorAuthor

    Done. Country, state, city, atoll and island selects for all three:

    • Blade: <x-locations::*-select>, with parent/child/filters.
    • React: CountrySelect … IslandSelect from @javaabu/locations, with parent, filters and LocationsProvider.
    • Stencil: Stencil\\*Select::make()->dependsOn()->filters().

    Decisions:

    • Cascades: they use javaabu/forms' and @javaabu/forms' own select2 cascade (child + ajax-url + filter-field), loading from a read-only endpoint, Route::locationOptions(). No package script.
    • Country → atoll: an atoll select depending on a country lists every atoll for the Maldives and none otherwise, so forms' fallback can swap in a text field for foreign addresses.
    • Labels: options are labelled in the request's locale (HA. Haa Alifu / ހއ. ހާ އަލިފު).
    • Malé City: it has no Thaana code, so it's labelled just Malé City.

    Docs: docs/basic-usage/location-selects.md, docs/advanced-usage/options-endpoint.md.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurePackage feature from the specnext-genNext-gen Javaabu packages

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions