Skip to main content
spaday-calcite logo, a faceted crystal inside a browser window

Typed Calcite Design System components and browser assets for spaday.

Build Status codecov License PyPI

Preview of Calcite components in spaday

Usage

from spaday import element
from spaday.backends.starlette import serve
from spaday_calcite import CalciteButton, CalciteNotice, package

page = element(
    "main",
    CalciteNotice(open=True, kind="success").child_in("title", "Ready"),
    CalciteButton("Open map", icon_start="map"),
)

app = serve(page, packages=[package], title="Calcite app")

Install the package with pip install spaday-calcite. Assets are loaded only when the exported package descriptor is passed to serve.

Generic controls

Passing package to serve also selects Calcite for spaday's generic controls. All 13 generic controls render as Calcite components, including typed number inputs, radio groups with child-owned selection, slotted notices, and progress normalized to Calcite's 0–100 range.

Use design="native" with serve to opt out, or set a control's Calcite-specific properties with control.for_design("calcite", ...).

Catalog coverage

Wrappers are generated from the Custom Elements Manifest published with @esri/calcite-components 5.1.2. The catalog covers its 104 public, declaratively usable elements. The upstream manifest also exposes calcite-date-picker-day and calcite-date-picker-month; these are undocumented private calendar renderers that require internal controller context and cannot be authored as standalone custom elements, so they are deliberately excluded.

Coverage is enforced at two layers:

  • Python tests require the exact tags in gallery.page.to_node() to match the generated wrapper catalog.
  • Playwright loads that Python page through Pyodide and requires every resulting host to be registered and hydrated with a shadow root.

The browser harness does not synthesize substitute components.

Browser examples

Both run Python locally through Pyodide; no install or server is required.

Run the examples locally

python -m pip install -e ".[examples]"
python -m spaday_calcite.example
python -m spaday_calcite.gallery

Open http://127.0.0.1:8026 for the field operations workspace or http://127.0.0.1:8027 for the complete component gallery.

Metadata

Release files for spaday-calcite 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spaday-calcite 0.3.0
File Size Uploaded
spaday_calcite-0.3.0.tar.gz 1.4 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for spaday-calcite 0.3.0
File Interpreter ABI Platform
spaday_calcite-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 2.8 MB

Release files / spaday_calcite-0.3.0.tar.gz

Download URL spaday_calcite-0.3.0.tar.gz
Size 1.4 MB
Tags Source
SHA-256 checksum
How to use checksums
50dd3d66f981488508dcb7e074d0cf8dc0431819f6d0321a7d1f3860176d1fef
BLAKE2b-256 checksum
How to use checksums
b26453de8309828a7cc2367b8e5bb3d74eb369ebdd141028ee83d7fc182996af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Release files / spaday_calcite-0.3.0-py3-none-any.whl

Download URL spaday_calcite-0.3.0-py3-none-any.whl
Size 1.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
82117e9b6e354676dfa93238693a584a94d3fbd05580231fc7c5e83a449d3dd0
BLAKE2b-256 checksum
How to use checksums
63fe323c3a03802481a29f867fc1c1e0a2bc154a53491401879f4276cbd628f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

0.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page