ochreui 0.0.0-stage → 0.0.2
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/LICENSE +21 -0
- package/README.md +153 -2
- package/cli/ochreui.mjs +601 -0
- package/mcp/core.mjs +126 -0
- package/mcp/docs.json +906 -0
- package/mcp/server.mjs +23 -0
- package/package.json +393 -3
- package/registry/agent-team.ts +350 -0
- package/registry/avatar.ts +300 -0
- package/registry/badge.ts +207 -0
- package/registry/breadcrumb.ts +435 -0
- package/registry/button.ts +238 -0
- package/registry/card.ts +221 -0
- package/registry/change-summary.ts +200 -0
- package/registry/checkbox.ts +204 -0
- package/registry/code-block.ts +332 -0
- package/registry/color-picker.ts +720 -0
- package/registry/comment-thread.ts +503 -0
- package/registry/context-menu.ts +281 -0
- package/registry/cover-flow.ts +623 -0
- package/registry/date-picker.ts +799 -0
- package/registry/decision-inbox.ts +340 -0
- package/registry/dialog.ts +577 -0
- package/registry/dropdown-menu.ts +864 -0
- package/registry/email-draft.ts +916 -0
- package/registry/empty-calendar.ts +199 -0
- package/registry/empty-state.ts +164 -0
- package/registry/enrichment-orbit.ts +164 -0
- package/registry/filter-menu.ts +541 -0
- package/registry/form-field.ts +308 -0
- package/registry/frost-cloud.ts +381 -0
- package/registry/ghosted-chat.ts +210 -0
- package/registry/glow-cloud.ts +402 -0
- package/registry/grid-background.ts +164 -0
- package/registry/hover-card.ts +401 -0
- package/registry/icon-button.ts +133 -0
- package/registry/index.json +2124 -0
- package/registry/integration-beam.ts +588 -0
- package/registry/integration-grid.ts +209 -0
- package/registry/kbd.ts +176 -0
- package/registry/layer-stack.ts +351 -0
- package/registry/lead-sourcing.ts +285 -0
- package/registry/logo-cluster.ts +239 -0
- package/registry/logo-marquee.ts +505 -0
- package/registry/message-actions.ts +833 -0
- package/registry/model-orbit.ts +583 -0
- package/registry/model-wheel.ts +372 -0
- package/registry/notification-stack.ts +301 -0
- package/registry/number-input.ts +552 -0
- package/registry/number-ticker.ts +261 -0
- package/registry/ochre.css +917 -0
- package/registry/otp-input.ts +704 -0
- package/registry/overlay.ts +312 -0
- package/registry/pagination.ts +362 -0
- package/registry/popover.ts +296 -0
- package/registry/profile-menu.ts +332 -0
- package/registry/progress-tracker.ts +291 -0
- package/registry/rating.ts +461 -0
- package/registry/reaction-bar.ts +322 -0
- package/registry/region-map.ts +537 -0
- package/registry/resizable.ts +489 -0
- package/registry/scroll-area.ts +271 -0
- package/registry/segmented-control.ts +433 -0
- package/registry/select.ts +769 -0
- package/registry/separator.ts +97 -0
- package/registry/shimmer-loader.ts +211 -0
- package/registry/side-folder.ts +152 -0
- package/registry/skeleton.ts +136 -0
- package/registry/skill/INSTRUCTIONS.md +11 -0
- package/registry/skill/SKILL.md +65 -0
- package/registry/skill/checklist.md +45 -0
- package/registry/skill/references/agent-team.md +105 -0
- package/registry/skill/references/avatar.md +88 -0
- package/registry/skill/references/badge.md +92 -0
- package/registry/skill/references/breadcrumb.md +99 -0
- package/registry/skill/references/button.md +82 -0
- package/registry/skill/references/card.md +111 -0
- package/registry/skill/references/catalog.md +114 -0
- package/registry/skill/references/change-summary.md +103 -0
- package/registry/skill/references/checkbox.md +105 -0
- package/registry/skill/references/code-block.md +109 -0
- package/registry/skill/references/color-picker.md +138 -0
- package/registry/skill/references/comment-thread.md +164 -0
- package/registry/skill/references/context-menu.md +205 -0
- package/registry/skill/references/cover-flow.md +128 -0
- package/registry/skill/references/date-picker.md +154 -0
- package/registry/skill/references/decision-inbox.md +126 -0
- package/registry/skill/references/dialog.md +155 -0
- package/registry/skill/references/dropdown-menu.md +144 -0
- package/registry/skill/references/email-draft.md +182 -0
- package/registry/skill/references/empty-calendar.md +74 -0
- package/registry/skill/references/empty-state.md +118 -0
- package/registry/skill/references/enrichment-orbit.md +71 -0
- package/registry/skill/references/filter-menu.md +143 -0
- package/registry/skill/references/form-field.md +118 -0
- package/registry/skill/references/frost-cloud.md +80 -0
- package/registry/skill/references/ghosted-chat.md +75 -0
- package/registry/skill/references/glow-cloud.md +84 -0
- package/registry/skill/references/grid-background.md +76 -0
- package/registry/skill/references/hover-card.md +125 -0
- package/registry/skill/references/icon-button.md +99 -0
- package/registry/skill/references/integration-beam.md +107 -0
- package/registry/skill/references/integration-grid.md +100 -0
- package/registry/skill/references/kbd.md +65 -0
- package/registry/skill/references/layer-stack.md +115 -0
- package/registry/skill/references/lead-sourcing.md +92 -0
- package/registry/skill/references/logo-cluster.md +92 -0
- package/registry/skill/references/logo-marquee.md +123 -0
- package/registry/skill/references/message-actions.md +146 -0
- package/registry/skill/references/model-orbit.md +106 -0
- package/registry/skill/references/model-wheel.md +84 -0
- package/registry/skill/references/notification-stack.md +138 -0
- package/registry/skill/references/number-input.md +117 -0
- package/registry/skill/references/number-ticker.md +73 -0
- package/registry/skill/references/otp-input.md +142 -0
- package/registry/skill/references/pagination.md +112 -0
- package/registry/skill/references/popover.md +143 -0
- package/registry/skill/references/profile-menu.md +123 -0
- package/registry/skill/references/progress-tracker.md +122 -0
- package/registry/skill/references/rating.md +111 -0
- package/registry/skill/references/reaction-bar.md +128 -0
- package/registry/skill/references/region-map.md +109 -0
- package/registry/skill/references/resizable.md +127 -0
- package/registry/skill/references/scroll-area.md +113 -0
- package/registry/skill/references/segmented-control.md +96 -0
- package/registry/skill/references/select.md +122 -0
- package/registry/skill/references/separator.md +69 -0
- package/registry/skill/references/shimmer-loader.md +83 -0
- package/registry/skill/references/side-folder.md +75 -0
- package/registry/skill/references/skeleton.md +95 -0
- package/registry/skill/references/smart-recommendation.md +132 -0
- package/registry/skill/references/spinner.md +84 -0
- package/registry/skill/references/switch.md +79 -0
- package/registry/skill/references/tab-overload.md +70 -0
- package/registry/skill/references/tag-input.md +126 -0
- package/registry/skill/references/team-invite.md +94 -0
- package/registry/skill/references/testimonial-wall.md +110 -0
- package/registry/skill/references/text-area.md +115 -0
- package/registry/skill/references/text-field.md +126 -0
- package/registry/skill/references/text-reveal.md +71 -0
- package/registry/skill/references/thinking-loader.md +87 -0
- package/registry/skill/references/time-picker.md +122 -0
- package/registry/skill/references/tips-panel.md +115 -0
- package/registry/skill/references/toggle-group.md +98 -0
- package/registry/skill/references/tool-call-card.md +151 -0
- package/registry/skill/references/tooltip.md +94 -0
- package/registry/skill/references/tree-view.md +172 -0
- package/registry/skill/theming.md +57 -0
- package/registry/smart-recommendation.ts +415 -0
- package/registry/spinner.ts +67 -0
- package/registry/switch.ts +146 -0
- package/registry/tab-overload.ts +211 -0
- package/registry/tag-input.ts +620 -0
- package/registry/team-invite.ts +248 -0
- package/registry/testimonial-wall.ts +521 -0
- package/registry/text-area.ts +432 -0
- package/registry/text-field.ts +415 -0
- package/registry/text-reveal.ts +175 -0
- package/registry/theme.ts +68 -0
- package/registry/thinking-loader.ts +302 -0
- package/registry/time-picker.ts +828 -0
- package/registry/tips-panel.ts +312 -0
- package/registry/toggle-group.ts +357 -0
- package/registry/tool-call-card.ts +578 -0
- package/registry/tooltip.ts +486 -0
- package/registry/tree-view.ts +454 -0
- package/styles/base.css +500 -0
- package/styles/tokens.css +415 -0
|
@@ -0,0 +1,537 @@
|
|
|
1
|
+
// Ochre (https://ochreui.dev), MIT License, Copyright (c) 2026 Ochre. Keep this notice in copies of this file.
|
|
2
|
+
/**
|
|
3
|
+
* Region Map, from Ochre (https://ochreui.dev).
|
|
4
|
+
* Needs ochre.css (the --ui-* tokens), added once by `npx ochreui init`.
|
|
5
|
+
*
|
|
6
|
+
* <ui-region-map /> · <ui-region-map [(region)]="market" /> · <ui-region-map region="jp" [showSwitcher]="false" />
|
|
7
|
+
* A territory map (Morocco, the United States, China, India, Brazil or Japan) among fading neighbours, with a
|
|
8
|
+
* band of light running around the border. A corner menu switches region. 540 : 440, 560px wide at most.
|
|
9
|
+
* Outlines: simplified from Natural Earth (public domain); Morocco from its Moroccan point-of-view data.
|
|
10
|
+
*
|
|
11
|
+
* Public styling hooks (set them on the element or any ancestor):
|
|
12
|
+
* --ui-region-map-fill region fill
|
|
13
|
+
* --ui-region-map-line region borders
|
|
14
|
+
* --ui-region-map-neighbor neighbour borders and coastlines (they fade away from the region)
|
|
15
|
+
* --ui-region-map-band-1 cool end of the band (lavender)
|
|
16
|
+
* --ui-region-map-band-2 middle of the band (pink)
|
|
17
|
+
* --ui-region-map-band-3 warm end of the band (peach)
|
|
18
|
+
* --ui-region-map-panel-radius corners of the open menu (default 16px)
|
|
19
|
+
* --ui-region-map-row-radius corners of a menu row and its highlight (default 10px)
|
|
20
|
+
*/
|
|
21
|
+
import {
|
|
22
|
+
Component,
|
|
23
|
+
DOCUMENT,
|
|
24
|
+
DestroyRef,
|
|
25
|
+
ElementRef,
|
|
26
|
+
afterNextRender,
|
|
27
|
+
afterRenderEffect,
|
|
28
|
+
booleanAttribute,
|
|
29
|
+
computed,
|
|
30
|
+
effect,
|
|
31
|
+
inject,
|
|
32
|
+
input,
|
|
33
|
+
isDevMode,
|
|
34
|
+
model,
|
|
35
|
+
output,
|
|
36
|
+
signal,
|
|
37
|
+
untracked,
|
|
38
|
+
viewChild,
|
|
39
|
+
} from '@angular/core';
|
|
40
|
+
|
|
41
|
+
export type RegionMapRegion = 'ma' | 'us' | 'cn' | 'in' | 'br' | 'jp';
|
|
42
|
+
|
|
43
|
+
export interface RegionMapLabels {
|
|
44
|
+
/** Menu text per region. */
|
|
45
|
+
regions: Record<RegionMapRegion, string>;
|
|
46
|
+
/** Accessible name of the map per region, used when `label` isn't set. */
|
|
47
|
+
maps: Record<RegionMapRegion, string>;
|
|
48
|
+
/** Name of the list of regions. */
|
|
49
|
+
list: string;
|
|
50
|
+
/** Name of the menu button; `{name}` becomes the current region. */
|
|
51
|
+
button: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export type RegionMapLabelsInput = Partial<Pick<RegionMapLabels, 'list' | 'button'>> & {
|
|
55
|
+
regions?: Partial<Record<RegionMapRegion, string>>;
|
|
56
|
+
maps?: Partial<Record<RegionMapRegion, string>>;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
const LABELS: RegionMapLabels = {
|
|
60
|
+
regions: { ma: 'Morocco', us: 'United States', cn: 'China', in: 'India', br: 'Brazil', jp: 'Japan' },
|
|
61
|
+
maps: {
|
|
62
|
+
ma: 'Map of Morocco',
|
|
63
|
+
us: 'Map of the United States',
|
|
64
|
+
cn: 'Map of China',
|
|
65
|
+
in: 'Map of India',
|
|
66
|
+
br: 'Map of Brazil',
|
|
67
|
+
jp: 'Map of Japan',
|
|
68
|
+
},
|
|
69
|
+
list: 'Choose a region',
|
|
70
|
+
button: 'Region: {name}',
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
const REGIONS: RegionMapRegion[] = ['ma', 'us', 'cn', 'in', 'br', 'jp'];
|
|
74
|
+
const ROW = 32;
|
|
75
|
+
const OUTSIDE = 'M-20-20h580v480H-20z';
|
|
76
|
+
|
|
77
|
+
interface MapShape {
|
|
78
|
+
/** Islands and other parts; the band ring is the main outline. */
|
|
79
|
+
land: string;
|
|
80
|
+
/** Outer outline, clockwise from where the band starts. */
|
|
81
|
+
band: string;
|
|
82
|
+
near: string[];
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
interface View {
|
|
86
|
+
region: RegionMapRegion;
|
|
87
|
+
key: number;
|
|
88
|
+
phase: 'idle' | 'enter' | 'exit';
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/** Simplified from Natural Earth (public domain), in viewBox units. */
|
|
92
|
+
const MAPS: Record<RegionMapRegion, MapShape> = {
|
|
93
|
+
ma: {
|
|
94
|
+
land: '',
|
|
95
|
+
band: 'M368.1 12.6l-.3 2.7 2 5.6 8.2 7.8 6.6 2.9 6.4 1.4 6.9-2.6 6.6-.3 1.9-1.5 7.2 2.4 6.1-2.8 2.9-4.5 1.5 7.4 2.2-.3 2.1 1.6 5.2.2 1.7-1.3 4 1.3 1.3 2.5 4.7 2.9 5.1 4.4-1.6 3.2 3.9 3.6-2.4 3.1 1.6 2.2 2.1 6.3-1.2 10.1 1.7 1.2 1.4 4.4-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 1.8 13.1-29.1 9.6-6 9.9.8 5-12.6 2.1-2.8 5.2 4.6 1.4 6.4 3.7.6.3 9-1.8 10.9-7.8 6.3-3.8 5 .3 10.1 5.7-2.1 6.5.7-1.3 3.4 1 6.8 5.7 1.8.5 1.6-3.7 8.6 8.2 2.3 1.3 4.9 6.3.9 4.8-2.5-11.3 15zM160.8 320.5l-26-1-4.1-8.3 8.3-6.8 3.5-1.2 3.6 1.6-.3 1.6 9.9 2.1 2.3 2.8zM118.4 343.8l6.8-6.9-6.1-9.3 11-3 5.4 11.6 19.8 5.4 2.1 9.2-8.1 2.6.1 11.8 7.7-6.8 2 20.6-4.6 9.4-2.6-14.9-11.2-14.2-6.7 17.5-11.9-4zM138.8 367.9l3 2.6-.9 3.5zM-5 146.2l3.6 21.5 16.2-3.9 12 6.7-4.7-.4-26.9.3zM38.1 196.8l3.8-.9-.9 3.1-1.3.4z'],
|
|
107
|
+
},
|
|
108
|
+
in: {
|
|
109
|
+
land: 'M442.3 428l-2.9-3.7.2-2.4 2.6-.6 1.3 3.3zM438.8 420.8l-.4-1.4 1-.8zM430.8 407.5l-1.6-.8.4-1.1zM434.1 412.2l-1-1.2 1-.9 1.2 1.6zM435.4 409.5l.2-2.5.3.9zM423.5 394.6l-.5-1.1.7-.6.7 1zM418 374.5l-1.7-3.9 1.9-1.7 1.1 2.8zM419.6 362l-.2-1 .8-.6 0 .8zM420.3 359.7l-2.9-5.1 1.3-3.7 2-1.8-1.3-4.6 1.9-14.2 1.9-1 .5 4.3-1.6 3 1.2 7.7-1.7 1.6.3 3.8-1.2 3.6.3 4.5zM425 353.6l-1.6-1.4.5-.5zM418.6 340.7l0-2.3.5.1z',
|
|
110
|
+
band: 'M212.1 12.3l.3 4.9 3.1 7.7 4.3 1.3 3.7 3.1-2.8 3.1.6 8.5 4 5.7 1.4 5.9-.9 3-3.2 2-2.2-3-4.1 0 .3 2.4 3 5.4.9 10.6 4.5-1.5 3.5 5 2.3 1.7 4.5.8 3 1.5.5 3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 6.9-11.7 14.6-3.6 3.6z'],
|
|
117
|
+
},
|
|
118
|
+
jp: {
|
|
119
|
+
land: 'M269.4 202.3l-2.2-1.4 1.8-2.1 1.3 1.9zM349.6 168.9l.6-2.4-1.2-.5.9-3.4 3.1-3.2-.6 3.9 1.8 1.2-1.2 3.3zM294.7 241.4l-1.8 1.7-2.3-1 3.8-5.4 1.6-.5-1.7 2.9zM217.6 320l-3.1-.2-.8-2.6 2-1.4 2.9 2.2zM223.7 317.7l-1.5-1.1 1.6-4.5 1.8-2.9.7.6zM209.6 280.1l.6-6.6 2.7-.2.2 4.1zM199.2 240.8l.4-4.9 1.8 2zM202 236.4l-1.5-1.4 1.3-4.2 2.3-2 .1 3-1.7 2.4zM188.4 267l1.7-.3 1.1 1.8-2.3 2-1.6-1.7zM214.8 275.9l-.8-.9 2.2-1.2.8 1.5zM387.3 17.4l-1.1-3.9 1.3.3.2 1zM390.2 20.5l-1.4-1.9 1.7-.6 1.1 1.6zM366.2 82.7l-.7-1.7 1.2-1.4.2 2.6zM283.5 238.4l-1.1-1.6 3.1-.4zM369.8 233.3l-1.3-.8.9-1.2zM194.4 266l-.7-2.6 2.2-3.5.4 3.9zM201.2 258.3l.9-1.9.7 1zM207.1 249.1l-.2-2.6 1.3.1zM254.8 244.4l-.8-1 .8-1 .2 1zM252.9 247.6l-1.5 1.3-2.5-.7.1-1.5zM203.3 291l2-2.9 0 .9zM423.6 394.9l-.9-2.2 1.4 1.5zM433.1 38.4l5.8 2.6 3.4.2 2.2-1.3 6.3-7.6.5 1-1.5 4.3-1.6 6.4 4.3 9 2.3.3 2.5-2.4 2.4-.2-3 2.2-1.5 2.5-2.3.2-6 4-4.3 1.5-4.9-.4-4.8 2.4-5.4 6.1-2.8 5.8-1 5.9-2.4.4-3.3-1.7-6.1-2.5-10.2-6-6.6 1-6.1 4.4-3.1-3.1-2.6-1.3-2 .3-1.9 2.6-.5 2 1.7 2.7 2.4 1.6 2.4-.1 5.8 5.3-.3 1.8-2.6.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482.6 16.8l3.1-6 11.1-7.3 1.7 3.8zM471.5 42.9l-1.2-1.5 3-1.6 1.2 1zM462.2 33l-8.9 8.4 8.4-13.5zM185.3 153.2l-14.2-.1-7.1 8.5-13.1-5.5-7.5 2-4.5-5.3 9.3-26.6-10-5.4-3.6-10.1 21.2-11.6 21.8-17.5 6.4 6.4 10.9 3-.2-9.2 17.6-7.3 10.4-11.8 9.7 7.9-12.7 15.9-.5 8.2-15.6 18.1-15.8 8-8.7 11.5 13.6 13.8zM60.5 274.1l2.6-1.9 5.2 5 .5.6zM67.2 308.7l4.7-.5.5.9zM68.6 316.1l-1.9-1.8 1.4-.8.6 1.8zM73.1 313l-.8-2 1.3-.1zM10.9 391.8l2-2.9.8 2-.4 1.6zM45.9 345.3l-.3-1.6 1.9-.6.2.8zM285-6l-6.2 13.9-12.1 12.9-12.4-4.9-8.6 7.3-1.5 29.2-10.9 17.6-10.2-8.8-4.6 10.5-24.2 9.6 1.4 8.9-17.4-8-6.3 1.4-6.4 9.6-43.6 21.2-12.5 3.1-27.4 13 7.5-8.1-4.3-5.5 16.5-16.1-3.9-13.2-14.3 3.6-10.1 8.2-17.9 8.1-7 8.6-14.3-3.7-9.6 9.3 5.2 11.5 13.9 5.6-1.9 11 4 8.1 9.9-1.4 15.6-8.5 10.8 8.4 12.9 4.2-3.6 9.3-24.3 5.9-18.5 14.2-13 15.6 16.3 14.9 4 29.7 13.9 21.8-17.3-7.2-7.8.3 15.5 12.2 7.2 12.8-18.6 7.8 18.9 13.8-12.6 11.9 1.2 8.9-6.6 10-10.3 2.7-16.9 22.4-8.9.5-2.5 13.3-8.8 14.2-8.4 4.7 0-406.3z'],
|
|
122
|
+
},
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
let nextId = 0;
|
|
126
|
+
|
|
127
|
+
/** The region menu in the map's top-left corner. Used by `UiRegionMap` only. */
|
|
128
|
+
@Component({
|
|
129
|
+
selector: 'ui-region-map-menu',
|
|
130
|
+
host: {
|
|
131
|
+
'[attr.data-open]': 'open() || null',
|
|
132
|
+
'(focusout)': 'left($event)',
|
|
133
|
+
},
|
|
134
|
+
template: `
|
|
135
|
+
<button #btn type="button" aria-haspopup="listbox" [attr.aria-expanded]="open()" [attr.aria-controls]="base() + 'l'"
|
|
136
|
+
[attr.aria-label]="name()" (click)="toggle()" (keydown)="buttonKey($event)">
|
|
137
|
+
<span>{{ t().regions[region()] }}</span>
|
|
138
|
+
<svg class="chev" viewBox="0 0 16 16" aria-hidden="true"><path d="M3.5 6.2 8 10.7l4.5-4.5" /></svg>
|
|
139
|
+
</button>
|
|
140
|
+
<div class="panel" [style.--_bw.px]="bw()">
|
|
141
|
+
<div #list role="listbox" tabindex="-1" [id]="base() + 'l'" [attr.aria-label]="t().list"
|
|
142
|
+
[attr.aria-activedescendant]="open() ? base() + current() : null" [attr.data-kbd]="kbd() || null"
|
|
143
|
+
(keydown)="listKey($event)" (pointerleave)="leave($event)">
|
|
144
|
+
<span class="hl" aria-hidden="true" [style.opacity]="active() < 0 ? 0 : 1" [attr.data-glide]="glide() || null"
|
|
145
|
+
[style.translate]="'0 ' + last() * row + 'px'"></span>
|
|
146
|
+
@for (r of regions; track r; let i = $index) {
|
|
147
|
+
<div role="option" [id]="base() + i" [attr.aria-selected]="r === region()" [attr.data-active]="active() === i || null"
|
|
148
|
+
(pointermove)="hover(i, $event)" (click)="pick(r)">
|
|
149
|
+
<span>{{ t().regions[r] }}</span>
|
|
150
|
+
<svg class="ck" viewBox="0 0 16 16" aria-hidden="true"><path d="M3.5 8.5l3 3 6-7" /></svg>
|
|
151
|
+
</div>
|
|
152
|
+
}
|
|
153
|
+
</div>
|
|
154
|
+
</div>
|
|
155
|
+
`,
|
|
156
|
+
styles: `
|
|
157
|
+
:host { position: absolute; top: 0; left: 0; z-index: 1; padding: var(--ui-space-3); transform-origin: 0 0; white-space: nowrap; scale: clamp(0.62, tan(atan2(100cqi, 540px)), 1); }
|
|
158
|
+
button {
|
|
159
|
+
position: relative;
|
|
160
|
+
display: flex;
|
|
161
|
+
align-items: center;
|
|
162
|
+
gap: var(--ui-space-1);
|
|
163
|
+
box-sizing: border-box;
|
|
164
|
+
block-size: 28px;
|
|
165
|
+
margin: 0;
|
|
166
|
+
padding: 0;
|
|
167
|
+
padding-inline: var(--ui-space-3) var(--ui-space-2);
|
|
168
|
+
border: 1px solid var(--ui-border);
|
|
169
|
+
border-radius: var(--ui-radius-full);
|
|
170
|
+
background: var(--ui-bg-surface);
|
|
171
|
+
box-shadow: 0 1px 3px var(--_s);
|
|
172
|
+
color: inherit;
|
|
173
|
+
font: inherit;
|
|
174
|
+
line-height: 1;
|
|
175
|
+
cursor: pointer;
|
|
176
|
+
touch-action: manipulation;
|
|
177
|
+
transition: scale calc(160ms * var(--_k)) var(--ui-ease-out);
|
|
178
|
+
}
|
|
179
|
+
button::before { content: ''; position: absolute; inset: -7px -3px; }
|
|
180
|
+
button:active { scale: 0.96; }
|
|
181
|
+
button:focus-visible { outline: var(--ui-focus-width) solid var(--ui-focus-ring); outline-offset: var(--ui-focus-offset); }
|
|
182
|
+
svg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
|
|
183
|
+
.chev { inline-size: 14px; block-size: 14px; color: var(--ui-text-muted); transition: rotate calc(220ms * var(--_k)) var(--ui-ease-out); }
|
|
184
|
+
.panel {
|
|
185
|
+
position: absolute;
|
|
186
|
+
top: 46px;
|
|
187
|
+
left: var(--ui-space-3);
|
|
188
|
+
box-sizing: border-box;
|
|
189
|
+
inline-size: var(--_bw, 76px);
|
|
190
|
+
block-size: 28px;
|
|
191
|
+
overflow: hidden;
|
|
192
|
+
border: 1px solid var(--ui-border);
|
|
193
|
+
border-radius: 14px;
|
|
194
|
+
background: var(--ui-bg-overlay);
|
|
195
|
+
box-shadow: 0 12px 30px -10px var(--_s);
|
|
196
|
+
visibility: hidden;
|
|
197
|
+
transition: calc(300ms * var(--_k)) var(--ui-ease-in-out), visibility 0s calc(300ms * var(--_k));
|
|
198
|
+
}
|
|
199
|
+
[role=listbox] { position: absolute; top: 0; left: 0; box-sizing: border-box; inline-size: 170px; padding: 5px; outline: 0; opacity: 0; translate: 0 -4px; transition: opacity calc(120ms * var(--_k)) var(--ui-ease-in), translate 0s calc(120ms * var(--_k)); }
|
|
200
|
+
:host([data-open]) .chev { rotate: 180deg; }
|
|
201
|
+
:host([data-open]) .panel { inline-size: 172px; block-size: 204px; border-radius: var(--ui-region-map-panel-radius, 16px); visibility: visible; transition: calc(420ms * var(--_k)) var(--ui-ease-out), visibility 0s; }
|
|
202
|
+
:host([data-open]) [role=listbox] { opacity: 1; translate: none; transition: translate calc(380ms * var(--_k)) var(--ui-ease-out) calc(60ms * var(--_k)), opacity calc(220ms * var(--_k)) var(--ui-ease-out) calc(110ms * var(--_k)); }
|
|
203
|
+
.hl, [role=option] { box-sizing: border-box; block-size: 32px; border-radius: var(--ui-region-map-row-radius, 10px); }
|
|
204
|
+
.hl { position: absolute; top: 5px; left: 5px; inline-size: 160px; background: color-mix(in srgb, var(--ui-text) 4%, var(--ui-bg-overlay)); transition: opacity calc(160ms * var(--_k)); }
|
|
205
|
+
.hl[data-glide] { transition: opacity calc(160ms * var(--_k)), translate calc(190ms * var(--_k)) cubic-bezier(0.1, 0.9, 0.2, 1); }
|
|
206
|
+
[data-kbd] .hl { box-shadow: inset 0 0 0 1px var(--ui-border-input); }
|
|
207
|
+
[role=option] { position: relative; display: flex; align-items: center; gap: var(--ui-space-2); padding-block: 7px; padding-inline: var(--ui-space-2-5) var(--ui-space-2); cursor: pointer; user-select: none; }
|
|
208
|
+
.ck { margin-inline-start: auto; inline-size: 15px; block-size: 15px; opacity: 0; scale: 0.6; transition: calc(160ms * var(--_k)) var(--ui-ease-out); transition-property: opacity, scale; }
|
|
209
|
+
[aria-selected=true] .ck { opacity: 1; scale: 1; transition-duration: calc(260ms * var(--_k)); }
|
|
210
|
+
@media (forced-colors: active) {
|
|
211
|
+
.hl { forced-color-adjust: none; background: Highlight; }
|
|
212
|
+
[data-active] { forced-color-adjust: none; color: HighlightText; }
|
|
213
|
+
}
|
|
214
|
+
`,
|
|
215
|
+
})
|
|
216
|
+
class UiRegionMapMenu {
|
|
217
|
+
readonly region = input.required<RegionMapRegion>();
|
|
218
|
+
readonly t = input.required<RegionMapLabels>();
|
|
219
|
+
readonly base = input.required<string>();
|
|
220
|
+
readonly picked = output<RegionMapRegion>();
|
|
221
|
+
|
|
222
|
+
protected readonly regions = REGIONS;
|
|
223
|
+
protected readonly row = ROW;
|
|
224
|
+
protected readonly name = computed(() => this.t().button.replace('{name}', this.t().regions[this.region()]));
|
|
225
|
+
protected readonly open = signal(false);
|
|
226
|
+
protected readonly kbd = signal(false);
|
|
227
|
+
protected readonly active = signal(-1);
|
|
228
|
+
protected readonly last = signal(0);
|
|
229
|
+
protected readonly glide = signal(false);
|
|
230
|
+
protected readonly bw = signal(76);
|
|
231
|
+
private readonly selected = computed(() => REGIONS.indexOf(this.region()));
|
|
232
|
+
protected readonly current = computed(() => (this.active() >= 0 ? this.active() : this.selected()));
|
|
233
|
+
|
|
234
|
+
private readonly btn = viewChild.required<ElementRef<HTMLButtonElement>>('btn');
|
|
235
|
+
private readonly list = viewChild.required<ElementRef<HTMLElement>>('list');
|
|
236
|
+
private readonly host = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;
|
|
237
|
+
|
|
238
|
+
constructor() {
|
|
239
|
+
const doc = inject(DOCUMENT);
|
|
240
|
+
afterRenderEffect(() => {
|
|
241
|
+
if (this.open()) this.list().nativeElement.focus({ preventScroll: true });
|
|
242
|
+
});
|
|
243
|
+
const outside = (e: Event) => {
|
|
244
|
+
if (this.open() && !this.host.contains(e.target as Node)) this.close(false);
|
|
245
|
+
};
|
|
246
|
+
afterNextRender(() => {
|
|
247
|
+
if (isDevMode() && !this.name().trim()) console.warn('ui-region-map: the region menu has no name; set labels.button.', this.host);
|
|
248
|
+
doc.addEventListener('pointerdown', outside, true);
|
|
249
|
+
});
|
|
250
|
+
inject(DestroyRef).onDestroy(() => doc.removeEventListener('pointerdown', outside, true));
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
protected toggle() {
|
|
254
|
+
if (this.open()) this.close(false);
|
|
255
|
+
else this.show(false);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
protected buttonKey(e: KeyboardEvent) {
|
|
259
|
+
if (!['Enter', ' ', 'ArrowDown', 'ArrowUp'].includes(e.key)) return;
|
|
260
|
+
e.preventDefault();
|
|
261
|
+
this.show(true);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
protected listKey(e: KeyboardEvent) {
|
|
265
|
+
const end = REGIONS.length - 1;
|
|
266
|
+
const go = (i: number) => {
|
|
267
|
+
e.preventDefault();
|
|
268
|
+
this.kbd.set(true);
|
|
269
|
+
this.move(Math.max(0, Math.min(end, i)));
|
|
270
|
+
};
|
|
271
|
+
switch (e.key) {
|
|
272
|
+
case 'ArrowDown':
|
|
273
|
+
return go(this.current() + 1);
|
|
274
|
+
case 'ArrowUp':
|
|
275
|
+
return go(this.current() - 1);
|
|
276
|
+
case 'Home':
|
|
277
|
+
return go(0);
|
|
278
|
+
case 'End':
|
|
279
|
+
return go(end);
|
|
280
|
+
case 'Enter':
|
|
281
|
+
case ' ':
|
|
282
|
+
e.preventDefault();
|
|
283
|
+
return this.pick(REGIONS[this.current()]);
|
|
284
|
+
case 'Escape':
|
|
285
|
+
e.preventDefault();
|
|
286
|
+
return this.close(true);
|
|
287
|
+
case 'Tab':
|
|
288
|
+
return this.close(false);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
protected hover(i: number, e: PointerEvent) {
|
|
293
|
+
if (e.pointerType === 'touch' || this.active() === i) return;
|
|
294
|
+
this.kbd.set(false);
|
|
295
|
+
this.move(i);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
protected leave(e: PointerEvent) {
|
|
299
|
+
if (e.pointerType !== 'touch' && !this.kbd()) this.active.set(-1);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
protected pick(r: RegionMapRegion) {
|
|
303
|
+
this.picked.emit(r);
|
|
304
|
+
this.close(true);
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
protected left(e: FocusEvent) {
|
|
308
|
+
const to = e.relatedTarget as Node | null;
|
|
309
|
+
if (this.open() && to && !this.host.contains(to)) this.close(false);
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
private show(keyboard: boolean) {
|
|
313
|
+
const i = this.selected();
|
|
314
|
+
this.bw.set(this.btn().nativeElement.offsetWidth);
|
|
315
|
+
this.kbd.set(keyboard);
|
|
316
|
+
this.glide.set(false);
|
|
317
|
+
this.last.set(i);
|
|
318
|
+
this.active.set(keyboard ? i : -1);
|
|
319
|
+
this.open.set(true);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
private close(refocus: boolean) {
|
|
323
|
+
if (!this.open()) return;
|
|
324
|
+
this.open.set(false);
|
|
325
|
+
this.kbd.set(false);
|
|
326
|
+
this.active.set(-1);
|
|
327
|
+
if (refocus) this.btn().nativeElement.focus();
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
private move(i: number) {
|
|
331
|
+
this.glide.set(this.active() >= 0);
|
|
332
|
+
this.last.set(i);
|
|
333
|
+
this.active.set(i);
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
@Component({
|
|
338
|
+
selector: 'ui-region-map',
|
|
339
|
+
imports: [UiRegionMapMenu],
|
|
340
|
+
host: {
|
|
341
|
+
'[style.--_p]': "awake() ? null : 'paused'",
|
|
342
|
+
},
|
|
343
|
+
template: `
|
|
344
|
+
<div class="q">
|
|
345
|
+
<div class="map" [attr.role]="name() ? 'img' : null" [attr.aria-label]="name() || null" [attr.aria-hidden]="name() ? null : 'true'">
|
|
346
|
+
<svg viewBox="0 0 540 440" aria-hidden="true" focusable="false">
|
|
347
|
+
<defs>
|
|
348
|
+
<linearGradient [id]="id + 'g'">
|
|
349
|
+
<stop offset=".12" class="s3" />
|
|
350
|
+
<stop offset=".5" class="s2" />
|
|
351
|
+
<stop offset=".8" class="s1" />
|
|
352
|
+
<stop offset="1" class="s0" />
|
|
353
|
+
</linearGradient>
|
|
354
|
+
<filter [id]="id + 'f'" filterUnits="userSpaceOnUse" x="-200" y="-200" width="940" height="840"><feGaussianBlur stdDeviation="45" /></filter>
|
|
355
|
+
<linearGradient [id]="id + 'h'"><stop offset="0" stop-opacity="0" /><stop offset=".07" /><stop offset=".93" /><stop offset="1" stop-opacity="0" /></linearGradient>
|
|
356
|
+
<linearGradient [id]="id + 'v'" x2="0" y2="1"><stop offset="0" stop-opacity="0" /><stop offset=".07" /><stop offset=".93" /><stop offset="1" stop-opacity="0" /></linearGradient>
|
|
357
|
+
<mask [id]="id + 'y'" maskUnits="userSpaceOnUse" x="0" y="0" width="540" height="440"><rect width="540" height="440" [attr.fill]="url('v')" /></mask>
|
|
358
|
+
<mask [id]="id + 'e'" maskUnits="userSpaceOnUse" x="0" y="0" width="540" height="440"><rect width="540" height="440" [attr.fill]="url('h')" [attr.mask]="url('y')" /></mask>
|
|
359
|
+
</defs>
|
|
360
|
+
@for (v of shown(); track v.key) {
|
|
361
|
+
<g class="view" [attr.data-phase]="v.phase" (animationend)="settle(v, $event)" (animationcancel)="settle(v, $event)">
|
|
362
|
+
<mask [id]="id + 'o' + v.key" maskUnits="userSpaceOnUse" x="-20" y="-20" width="580" height="480">
|
|
363
|
+
<path fill-rule="evenodd" [attr.d]="outside + maps[v.region].band" />
|
|
364
|
+
</mask>
|
|
365
|
+
<mask [id]="id + 'n' + v.key" maskUnits="userSpaceOnUse" x="-20" y="-20" width="580" height="480">
|
|
366
|
+
<g [attr.mask]="url('e')"><path class="fade" [attr.d]="maps[v.region].land + maps[v.region].band" [attr.filter]="url('f')" /></g>
|
|
367
|
+
</mask>
|
|
368
|
+
<g class="near" [attr.mask]="url('n' + v.key)">
|
|
369
|
+
@for (d of maps[v.region].near; track $index) {<path [attr.d]="d" />}
|
|
370
|
+
</g>
|
|
371
|
+
<path class="land" [attr.d]="maps[v.region].land + maps[v.region].band" />
|
|
372
|
+
<g class="band" [attr.stroke]="url('g')">
|
|
373
|
+
<path class="glow" pathLength="100" [attr.d]="maps[v.region].band" [attr.mask]="url('o' + v.key)" />
|
|
374
|
+
<path pathLength="100" [attr.d]="maps[v.region].band" />
|
|
375
|
+
<path class="b2" pathLength="100" [attr.d]="maps[v.region].band" />
|
|
376
|
+
<path class="b3" pathLength="100" [attr.d]="maps[v.region].band" />
|
|
377
|
+
</g>
|
|
378
|
+
</g>
|
|
379
|
+
}
|
|
380
|
+
</svg>
|
|
381
|
+
</div>
|
|
382
|
+
@if (showSwitcher()) {<ui-region-map-menu [region]="region()" [t]="t()" [base]="id" (picked)="region.set($event)" />}
|
|
383
|
+
</div>
|
|
384
|
+
`,
|
|
385
|
+
styles: `
|
|
386
|
+
@layer ui {
|
|
387
|
+
:host { display: block; position: relative; inline-size: min(560px, 100%); aspect-ratio: 540 / 440; }
|
|
388
|
+
}
|
|
389
|
+
:host {
|
|
390
|
+
--_k: var(--ui-motion-scale, 1);
|
|
391
|
+
--_s: light-dark(color-mix(in srgb, var(--ui-gray-1000) 9%, transparent), color-mix(in srgb, var(--ui-gray-1050) 70%, transparent));
|
|
392
|
+
--_b1: var(--ui-region-map-band-1, light-dark(color-mix(in srgb, var(--ui-purple-light) 80%, var(--ui-bg-surface)), color-mix(in srgb, var(--ui-purple-dark) 75%, var(--ui-text))));
|
|
393
|
+
box-sizing: border-box;
|
|
394
|
+
color: var(--ui-text);
|
|
395
|
+
font: var(--ui-weight-medium) 13px / 18px var(--ui-font-sans);
|
|
396
|
+
-webkit-tap-highlight-color: transparent;
|
|
397
|
+
}
|
|
398
|
+
:host::before { content: 'x x x x x x x x' / ''; display: block; block-size: 0; overflow: hidden; font-size: 0; word-spacing: calc(560px / 7); }
|
|
399
|
+
.q, .map { position: absolute; inset: 0; }
|
|
400
|
+
.q { container-type: inline-size; }
|
|
401
|
+
svg { display: block; inline-size: 100%; block-size: 100%; overflow: hidden; forced-color-adjust: none; }
|
|
402
|
+
mask { mask-type: alpha; }
|
|
403
|
+
.s0 { stop-color: color-mix(in srgb, var(--_b1), light-dark(var(--ui-indigo-light), var(--ui-indigo-dark)) 20%); }
|
|
404
|
+
.s1 { stop-color: var(--_b1); }
|
|
405
|
+
.s2 { stop-color: var(--ui-region-map-band-2, light-dark(color-mix(in srgb, var(--ui-pink-light) 70%, var(--ui-bg-surface)), color-mix(in srgb, var(--ui-pink-dark) 70%, var(--ui-text)))); }
|
|
406
|
+
.s3 { stop-color: var(--ui-region-map-band-3, light-dark(color-mix(in srgb, var(--ui-orange-light) 75%, var(--ui-bg-surface)), color-mix(in srgb, var(--ui-orange-dark) 65%, var(--ui-text)))); }
|
|
407
|
+
.fade { fill: #fff; stroke: #fff; stroke-width: 260; }
|
|
408
|
+
.near { fill: none; stroke: var(--ui-region-map-neighbor, light-dark(var(--ui-border-strong), color-mix(in srgb, var(--ui-text) 20%, transparent))); stroke-width: 0.7; }
|
|
409
|
+
.land {
|
|
410
|
+
fill: var(--ui-region-map-fill, light-dark(color-mix(in srgb, var(--ui-text) 5%, var(--ui-bg-canvas)), color-mix(in srgb, color-mix(in srgb, var(--ui-indigo-dark) 45%, var(--ui-text)) 16%, var(--ui-bg-canvas))));
|
|
411
|
+
fill-rule: evenodd;
|
|
412
|
+
stroke: var(--ui-region-map-line, light-dark(var(--ui-border-strong), color-mix(in srgb, var(--ui-text) 24%, transparent)));
|
|
413
|
+
stroke-width: 1.1;
|
|
414
|
+
stroke-linejoin: round;
|
|
415
|
+
filter: drop-shadow(0 2px 2px var(--_s));
|
|
416
|
+
}
|
|
417
|
+
.band path {
|
|
418
|
+
fill: none;
|
|
419
|
+
stroke-width: 1.8;
|
|
420
|
+
stroke-linecap: round;
|
|
421
|
+
stroke-linejoin: round;
|
|
422
|
+
stroke-dasharray: 16 84;
|
|
423
|
+
opacity: 0.95;
|
|
424
|
+
animation: ui-rm-band calc(14s * var(--_k)) linear infinite var(--_p, running);
|
|
425
|
+
}
|
|
426
|
+
.band .glow { stroke-width: 5; opacity: 0.9; filter: blur(3px); }
|
|
427
|
+
.band .b2 { animation-delay: calc(-0.42s * var(--_k)); }
|
|
428
|
+
.band .b3 { animation-delay: calc(-0.84s * var(--_k)); }
|
|
429
|
+
@keyframes ui-rm-band { to { stroke-dashoffset: -100; } }
|
|
430
|
+
.view { transform-box: view-box; transform-origin: 270px 220px; }
|
|
431
|
+
[data-phase='enter'] { animation: ui-rm-enter calc(520ms * var(--_k)) var(--ui-ease-out) both; }
|
|
432
|
+
[data-phase='exit'] { animation: ui-rm-exit calc(320ms * var(--_k)) var(--ui-ease-in) both; }
|
|
433
|
+
@keyframes ui-rm-enter { from { opacity: 0; transform: scale(0.94); } }
|
|
434
|
+
@keyframes ui-rm-exit { to { opacity: 0; transform: scale(1.04); } }
|
|
435
|
+
@container style(--ui-motion-scale: 0) { .band path, .view { animation: none; } }
|
|
436
|
+
@media (forced-colors: active) { .land { stroke: CanvasText; } .near { stroke: GrayText; } }
|
|
437
|
+
`,
|
|
438
|
+
})
|
|
439
|
+
export class UiRegionMap {
|
|
440
|
+
/** The region shown. Two-way: picking in the menu writes it. */
|
|
441
|
+
readonly region = model<RegionMapRegion>('ma');
|
|
442
|
+
/** Shows the region menu in the top-left corner. */
|
|
443
|
+
readonly showSwitcher = input(true, { transform: booleanAttribute });
|
|
444
|
+
/** Accessible name of the map, or a function of the region. Default: `labels.maps[region]`. Empty hides the map from assistive tech. */
|
|
445
|
+
readonly label = input<string | ((region: RegionMapRegion) => string) | undefined>(undefined);
|
|
446
|
+
/** Words to translate: menu names, map names, the list name and the button name. */
|
|
447
|
+
readonly labels = input<RegionMapLabelsInput>({});
|
|
448
|
+
|
|
449
|
+
protected readonly id = `ui-rm-${nextId++}-`;
|
|
450
|
+
protected readonly maps = MAPS;
|
|
451
|
+
protected readonly outside = OUTSIDE;
|
|
452
|
+
protected readonly t = computed<RegionMapLabels>(() => {
|
|
453
|
+
const l = this.labels();
|
|
454
|
+
return { ...LABELS, ...l, regions: { ...LABELS.regions, ...l.regions }, maps: { ...LABELS.maps, ...l.maps } };
|
|
455
|
+
});
|
|
456
|
+
protected readonly name = computed(() => {
|
|
457
|
+
const l = this.label();
|
|
458
|
+
const r = this.region();
|
|
459
|
+
return typeof l === 'function' ? l(r) : (l ?? this.t().maps[r]);
|
|
460
|
+
});
|
|
461
|
+
|
|
462
|
+
private readonly views = signal<View[]>([]);
|
|
463
|
+
/** The maps drawn: one at rest, or the old one leaving while the new one arrives. */
|
|
464
|
+
protected readonly shown = computed(() => {
|
|
465
|
+
const v = this.views();
|
|
466
|
+
return v.length ? v : [{ region: this.region(), key: 0, phase: 'idle' } as View];
|
|
467
|
+
});
|
|
468
|
+
private readonly seen = signal(true);
|
|
469
|
+
private readonly visible = signal(true);
|
|
470
|
+
protected readonly awake = computed(() => this.seen() && this.visible());
|
|
471
|
+
|
|
472
|
+
private readonly doc = inject(DOCUMENT);
|
|
473
|
+
private readonly host = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;
|
|
474
|
+
private keys = 0;
|
|
475
|
+
|
|
476
|
+
constructor() {
|
|
477
|
+
effect(() => {
|
|
478
|
+
const r = this.region();
|
|
479
|
+
untracked(() => this.swap(r));
|
|
480
|
+
});
|
|
481
|
+
|
|
482
|
+
let io: IntersectionObserver | undefined;
|
|
483
|
+
const update = (seen: boolean, visible: boolean) => {
|
|
484
|
+
this.seen.set(seen);
|
|
485
|
+
this.visible.set(visible);
|
|
486
|
+
};
|
|
487
|
+
const onVisibility = () => update(this.seen(), this.doc.visibilityState !== 'hidden');
|
|
488
|
+
afterNextRender(() => {
|
|
489
|
+
onVisibility();
|
|
490
|
+
this.doc.addEventListener('visibilitychange', onVisibility);
|
|
491
|
+
const Observer = this.doc.defaultView?.IntersectionObserver;
|
|
492
|
+
if (!Observer) return;
|
|
493
|
+
io = new Observer((entries) => update(entries[entries.length - 1].isIntersecting, this.visible()), { threshold: 0 });
|
|
494
|
+
io.observe(this.host);
|
|
495
|
+
});
|
|
496
|
+
inject(DestroyRef).onDestroy(() => {
|
|
497
|
+
io?.disconnect();
|
|
498
|
+
this.doc.removeEventListener('visibilitychange', onVisibility);
|
|
499
|
+
});
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
protected url(part: string) {
|
|
503
|
+
return `url(#${this.id}${part})`;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
/** Clears a finished switch: the old map leaves the DOM, the new one rests. */
|
|
507
|
+
protected settle(v: View, e: AnimationEvent) {
|
|
508
|
+
const el = e.currentTarget as SVGGElement;
|
|
509
|
+
if (e.target !== el) return;
|
|
510
|
+
if (e.type === 'animationcancel' && el.getAnimations?.().length) return;
|
|
511
|
+
if (v.phase === 'exit' && e.animationName.endsWith('exit')) this.views.update((l) => l.filter((x) => x.key !== v.key));
|
|
512
|
+
else if (v.phase === 'enter' && e.animationName.endsWith('enter')) {
|
|
513
|
+
this.views.update((l) => l.map((x) => (x.key === v.key ? { ...x, phase: 'idle' } : x)));
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
private swap(region: RegionMapRegion) {
|
|
518
|
+
const list = this.views();
|
|
519
|
+
const top = list[list.length - 1];
|
|
520
|
+
if (!top) return this.views.set([{ region, key: 0, phase: 'idle' }]);
|
|
521
|
+
if (top.region === region) return;
|
|
522
|
+
const key = ++this.keys;
|
|
523
|
+
this.views.set(
|
|
524
|
+
this.motion() && this.awake()
|
|
525
|
+
? [{ ...top, phase: 'exit' }, { region, key, phase: 'enter' }]
|
|
526
|
+
: [{ region, key, phase: 'idle' }],
|
|
527
|
+
);
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
/** 0 under reduced motion, otherwise the app's motion scale (1 by default). */
|
|
531
|
+
private motion() {
|
|
532
|
+
const view = this.doc.defaultView;
|
|
533
|
+
if (!view?.matchMedia || view.matchMedia('(prefers-reduced-motion: reduce)').matches) return 0;
|
|
534
|
+
const scale = parseFloat(view.getComputedStyle(this.host).getPropertyValue('--ui-motion-scale'));
|
|
535
|
+
return Number.isNaN(scale) ? 1 : scale;
|
|
536
|
+
}
|
|
537
|
+
}
|