airport-one-widgets 0.2.89 → 0.2.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -15
- package/dist/airport-one-widgets.iife.js +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -192,22 +192,23 @@ MapLibre is loaded from unpkg (jsDelivr fallback) on first mount rather than bun
|
|
|
192
192
|
|
|
193
193
|
Attributes (each overrides the saved instance, which overrides `window.__A1_WIDGET_CONFIG__` brand colors):
|
|
194
194
|
|
|
195
|
-
| Attribute | Default
|
|
196
|
-
| ------------------------------------ |
|
|
197
|
-
| `primary-color` | `#0b3d91`
|
|
198
|
-
| `secondary-color` | `#f26430`
|
|
195
|
+
| Attribute | Default | Purpose |
|
|
196
|
+
| ------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
197
|
+
| `primary-color` | `#0b3d91` | One-stop routes, tabs, controls |
|
|
198
|
+
| `secondary-color` | `#f26430` | Nonstop routes, badges, origin |
|
|
199
199
|
| `heading` / `kicker` / `description` | `Your next trip starts here` / `Interactive route map` / generated | Header copy (`kicker=""` hides the kicker) |
|
|
200
|
-
| `hide-header` | off
|
|
201
|
-
| `map-only` | off
|
|
202
|
-
| `hide-filters` | off
|
|
203
|
-
| `
|
|
204
|
-
| `default-
|
|
205
|
-
| `default-
|
|
206
|
-
| `default-
|
|
207
|
-
| `default-
|
|
208
|
-
| `default-
|
|
209
|
-
| `
|
|
210
|
-
| `
|
|
200
|
+
| `hide-header` | off | Omit the title block (kicker / heading / description) and the padded bluish container around the widget |
|
|
201
|
+
| `map-only` | off | Hide the destination list; tapping a pin opens the FlyMyAirport destination page |
|
|
202
|
+
| `hide-filters` | off | Hide the filter bar (stops, airline, months, hub, full screen), so the `default-*` starting view is fixed |
|
|
203
|
+
| `map-height` | 496 | Map and list height in px on wide screens (`600` or `600px`), clamped to 320–1200. Narrow layouts keep their stacked heights |
|
|
204
|
+
| `default-region` | `north-america` | `north-america` or `world` |
|
|
205
|
+
| `default-stops` | `all` | Starting tab: `all`, `nonstop`, or `one-stop` |
|
|
206
|
+
| `default-airline` | all airlines | Starting airline, by code (`UA`) or name (`United`) |
|
|
207
|
+
| `default-months` | any time | Starting travel months, comma-separated: names (`dec,jan`), numbers (`12`), or `YYYY-MM`. Names and numbers mean their next occurrence, so `dec` keeps meaning "this coming December" |
|
|
208
|
+
| `default-hub` | all hubs | Starting connecting hub (`ORD`) |
|
|
209
|
+
| `default-sort` | `recommended` | `recommended`, `nearest`, `farthest`, or `name` |
|
|
210
|
+
| `theme` | `light` | `dark` switches to a dark basemap |
|
|
211
|
+
| `map-style` | OpenFreeMap Liberty | MapLibre style URL |
|
|
211
212
|
|
|
212
213
|
The `default-*` controls only set the starting view; travelers can still change every filter (unless `hide-filters` is on), and a **Reset** button (shown once anything changes) returns to that starting view. Each filter panel (Airline, Traveling, Connect via) also has its own Reset that restores just that filter. Values the airport's routes don't support (an airline or hub with no service) are ignored. Example, United nonstops for December and January:
|
|
213
214
|
|