@molecule/app-annotation-pin-angular 0.0.0-stage → 1.1.0
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 +202 -0
- package/README.md +635 -2
- package/dist/annotation-layer.component.d.ts +120 -0
- package/dist/annotation-layer.component.d.ts.map +1 -0
- package/dist/annotation-layer.component.js +222 -0
- package/dist/annotation-layer.component.js.map +1 -0
- package/dist/annotation-pin.component.d.ts +183 -0
- package/dist/annotation-pin.component.d.ts.map +1 -0
- package/dist/annotation-pin.component.js +422 -0
- package/dist/annotation-pin.component.js.map +1 -0
- package/dist/css.d.ts +31 -0
- package/dist/css.d.ts.map +1 -0
- package/dist/css.js +90 -0
- package/dist/css.js.map +1 -0
- package/dist/index.d.ts +64 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +64 -0
- package/dist/index.js.map +1 -0
- package/dist/slot-dom.d.ts +51 -0
- package/dist/slot-dom.d.ts.map +1 -0
- package/dist/slot-dom.js +89 -0
- package/dist/slot-dom.js.map +1 -0
- package/dist/types.d.ts +105 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +8 -0
- package/dist/types.js.map +1 -0
- package/package.json +72 -4
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import type { UIClassMap } from '@molecule/app-ui';
|
|
2
|
+
import type { Pin } from './types.js';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Wrapper that manages multiple pins on a parent surface. Renders its
|
|
6
|
+
* projected content (the surface — typically an `<img>`, `<canvas>`, or
|
|
7
|
+
* map-tile element) and overlays each `pins[]` entry as a clickable
|
|
8
|
+
* `<AnnotationPin>` marker.
|
|
9
|
+
*
|
|
10
|
+
* The host IS the outer `<div>` (`div[mol-annotation-layer]`), matching
|
|
11
|
+
* React's root exactly; the annotated surface is projected as the host's
|
|
12
|
+
* default content. The layer itself carries `position: relative` so absolute
|
|
13
|
+
* pin positioning works without the caller providing a wrapper.
|
|
14
|
+
*
|
|
15
|
+
* Click behaviour:
|
|
16
|
+
* - clicking a pin marker fires `onPinClick(pinId)`
|
|
17
|
+
* - clicking empty space on the layer fires `onSurfaceClick({ x, y })`,
|
|
18
|
+
* which callers typically use to add a new pin. That action lives on an
|
|
19
|
+
* invisible "add annotation pin" button covering the surface: pointer
|
|
20
|
+
* clicks place a pin at the click position; activating the button with a
|
|
21
|
+
* keyboard (Tab to it, then Enter / Space) or assistive tech places a pin
|
|
22
|
+
* at the surface centre.
|
|
23
|
+
*
|
|
24
|
+
* This is the Angular counterpart of `@molecule/app-annotation-pin-react`.
|
|
25
|
+
*/
|
|
26
|
+
export declare class AnnotationLayer {
|
|
27
|
+
/** Pins to render on the layer. */
|
|
28
|
+
pins: Pin[];
|
|
29
|
+
/** The currently active (popup-open) pin id, or `null` for none. */
|
|
30
|
+
activePinId?: string | null;
|
|
31
|
+
/** Called with the clicked pin id when a pin marker is clicked. */
|
|
32
|
+
onPinClick?: (pinId: string) => void;
|
|
33
|
+
/** Called with the clicked position when an empty area of the layer is clicked. */
|
|
34
|
+
onSurfaceClick?: (position: {
|
|
35
|
+
x: number;
|
|
36
|
+
y: number;
|
|
37
|
+
}) => void;
|
|
38
|
+
/** Whether positions are normalised (defaults to `true` at read time). */
|
|
39
|
+
normalised?: boolean;
|
|
40
|
+
/** Side the popup renders on, relative to its marker (defaults to `'right'`). */
|
|
41
|
+
popupSide?: 'top' | 'bottom' | 'left' | 'right';
|
|
42
|
+
/** Extra classes merged onto the layer root. */
|
|
43
|
+
className?: string;
|
|
44
|
+
/** Inline style for the layer root, merged over the layer's own. */
|
|
45
|
+
style?: Record<string, string | number>;
|
|
46
|
+
/**
|
|
47
|
+
* Reactive translation, read in the injection context. Its `t` reads the
|
|
48
|
+
* locale, so the view re-renders the text on a locale switch.
|
|
49
|
+
*/
|
|
50
|
+
private readonly i18n;
|
|
51
|
+
/**
|
|
52
|
+
* The current class map.
|
|
53
|
+
* @returns The UIClassMap.
|
|
54
|
+
*/
|
|
55
|
+
cm(): UIClassMap;
|
|
56
|
+
/**
|
|
57
|
+
* Whether positions are normalised (React's `normalised = true` default).
|
|
58
|
+
* @returns The normalised flag.
|
|
59
|
+
*/
|
|
60
|
+
normalisedValue(): boolean;
|
|
61
|
+
/**
|
|
62
|
+
* The layer root's class list (React's `cm.cn(className)`).
|
|
63
|
+
* @returns The class string.
|
|
64
|
+
*/
|
|
65
|
+
classes(): string;
|
|
66
|
+
/**
|
|
67
|
+
* The layer root's inline style (React's `rootStyle`: the caller's style wins).
|
|
68
|
+
* @returns The serialised style attribute.
|
|
69
|
+
*/
|
|
70
|
+
rootStyle(): string;
|
|
71
|
+
/**
|
|
72
|
+
* The add-pin target's class list (React's
|
|
73
|
+
* `cm.cn(cm.position('absolute'), cm.inset0, cm.cursorPointer)`).
|
|
74
|
+
* @returns The class string.
|
|
75
|
+
*/
|
|
76
|
+
addPinClasses(): string;
|
|
77
|
+
/**
|
|
78
|
+
* The add-pin target's inline style — the browser's default button chrome
|
|
79
|
+
* reset (the target is invisible, not a visible control), as a style map so
|
|
80
|
+
* the CSSOM normalises it exactly as React's own inline styles do.
|
|
81
|
+
* @returns The style map.
|
|
82
|
+
*/
|
|
83
|
+
addPinStyles(): Record<string, string>;
|
|
84
|
+
/**
|
|
85
|
+
* The layer's accessible label (React's `annotationPin.aria.layer`).
|
|
86
|
+
* @returns The label text.
|
|
87
|
+
*/
|
|
88
|
+
regionLabel(): string;
|
|
89
|
+
/**
|
|
90
|
+
* The add-pin target's accessible label (React's `annotationPin.aria.addPin`).
|
|
91
|
+
* @returns The label text.
|
|
92
|
+
*/
|
|
93
|
+
addPinLabel(): string;
|
|
94
|
+
/**
|
|
95
|
+
* The click handler a pin marker receives (React's
|
|
96
|
+
* `() => onPinClick?.(pin.id)`).
|
|
97
|
+
*
|
|
98
|
+
* @param pin - The pin the marker belongs to.
|
|
99
|
+
* @returns The handler.
|
|
100
|
+
*/
|
|
101
|
+
clickFor(pin: Pin): () => void;
|
|
102
|
+
/**
|
|
103
|
+
* Computes the clicked position relative to the add-pin button's box (which
|
|
104
|
+
* covers the layer) and forwards to `onSurfaceClick`. If `normalised` is
|
|
105
|
+
* `true`, the returned coordinates are 0..1 fractions; otherwise they are
|
|
106
|
+
* raw pixel offsets.
|
|
107
|
+
*
|
|
108
|
+
* Clicks produced by keyboard activation (Enter / Space on the focused
|
|
109
|
+
* button) or assistive tech carry `detail === 0` and no pointer position —
|
|
110
|
+
* such clicks place the pin at the surface centre. Pin markers and popups
|
|
111
|
+
* never reach this handler: they stack above the button and are its
|
|
112
|
+
* siblings, so their clicks do not hit it.
|
|
113
|
+
*
|
|
114
|
+
* @param event - The originating mouse event.
|
|
115
|
+
*/
|
|
116
|
+
handleSurfaceClick(event: MouseEvent): void;
|
|
117
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AnnotationLayer, never>;
|
|
118
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AnnotationLayer, "div[mol-annotation-layer]", never, { "pins": { "alias": "pins"; "required": false; }; "activePinId": { "alias": "activePinId"; "required": false; }; "onPinClick": { "alias": "onPinClick"; "required": false; }; "onSurfaceClick": { "alias": "onSurfaceClick"; "required": false; }; "normalised": { "alias": "normalised"; "required": false; }; "popupSide": { "alias": "popupSide"; "required": false; }; "className": { "alias": "className"; "required": false; }; "style": { "alias": "style"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
119
|
+
}
|
|
120
|
+
//# sourceMappingURL=annotation-layer.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"annotation-layer.component.d.ts","sourceRoot":"","sources":["../src/annotation-layer.component.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAKlD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAA;;AAErC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,qBAwBa,eAAe;IAC1B,mCAAmC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+
/**
|
|
2
|
+
* AnnotationLayer component (React parity).
|
|
3
|
+
*
|
|
4
|
+
* @module
|
|
5
|
+
*/
|
|
6
|
+
import { NgStyle } from '@angular/common';
|
|
7
|
+
import { Component } from '@angular/core';
|
|
8
|
+
import { useTranslation } from '@molecule/app-angular';
|
|
9
|
+
import { getClassMap } from '@molecule/app-ui';
|
|
10
|
+
import { AnnotationPin } from './annotation-pin.component.js';
|
|
11
|
+
import { styleObject, styleString } from './css.js';
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
const _c0 = ["*"];
|
|
14
|
+
const _forTrack0 = ($index, $item) => $item.id;
|
|
15
|
+
function AnnotationLayer_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
16
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
17
|
+
i0.ɵɵelementStart(0, "button", 2);
|
|
18
|
+
i0.ɵɵlistener("click", function AnnotationLayer_Conditional_1_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.handleSurfaceClick($event)); });
|
|
19
|
+
i0.ɵɵelementEnd();
|
|
20
|
+
} if (rf & 2) {
|
|
21
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
22
|
+
i0.ɵɵclassMap(ctx_r1.addPinClasses());
|
|
23
|
+
i0.ɵɵproperty("ngStyle", ctx_r1.addPinStyles());
|
|
24
|
+
i0.ɵɵattribute("aria-label", ctx_r1.addPinLabel());
|
|
25
|
+
} }
|
|
26
|
+
function AnnotationLayer_For_3_Template(rf, ctx) { if (rf & 1) {
|
|
27
|
+
i0.ɵɵelement(0, "div", 1);
|
|
28
|
+
} if (rf & 2) {
|
|
29
|
+
const pin_r3 = ctx.$implicit;
|
|
30
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
31
|
+
i0.ɵɵproperty("position", pin_r3.position)("label", pin_r3.label)("note", pin_r3.note)("selected", ctx_r1.activePinId === pin_r3.id)("popupSide", ctx_r1.popupSide ?? "right")("normalised", ctx_r1.normalisedValue())("onClick", ctx_r1.clickFor(pin_r3));
|
|
32
|
+
} }
|
|
33
|
+
/**
|
|
34
|
+
* Wrapper that manages multiple pins on a parent surface. Renders its
|
|
35
|
+
* projected content (the surface — typically an `<img>`, `<canvas>`, or
|
|
36
|
+
* map-tile element) and overlays each `pins[]` entry as a clickable
|
|
37
|
+
* `<AnnotationPin>` marker.
|
|
38
|
+
*
|
|
39
|
+
* The host IS the outer `<div>` (`div[mol-annotation-layer]`), matching
|
|
40
|
+
* React's root exactly; the annotated surface is projected as the host's
|
|
41
|
+
* default content. The layer itself carries `position: relative` so absolute
|
|
42
|
+
* pin positioning works without the caller providing a wrapper.
|
|
43
|
+
*
|
|
44
|
+
* Click behaviour:
|
|
45
|
+
* - clicking a pin marker fires `onPinClick(pinId)`
|
|
46
|
+
* - clicking empty space on the layer fires `onSurfaceClick({ x, y })`,
|
|
47
|
+
* which callers typically use to add a new pin. That action lives on an
|
|
48
|
+
* invisible "add annotation pin" button covering the surface: pointer
|
|
49
|
+
* clicks place a pin at the click position; activating the button with a
|
|
50
|
+
* keyboard (Tab to it, then Enter / Space) or assistive tech places a pin
|
|
51
|
+
* at the surface centre.
|
|
52
|
+
*
|
|
53
|
+
* This is the Angular counterpart of `@molecule/app-annotation-pin-react`.
|
|
54
|
+
*/
|
|
55
|
+
export class AnnotationLayer {
|
|
56
|
+
/** Pins to render on the layer. */
|
|
57
|
+
pins = [];
|
|
58
|
+
/** The currently active (popup-open) pin id, or `null` for none. */
|
|
59
|
+
activePinId;
|
|
60
|
+
/** Called with the clicked pin id when a pin marker is clicked. */
|
|
61
|
+
onPinClick;
|
|
62
|
+
/** Called with the clicked position when an empty area of the layer is clicked. */
|
|
63
|
+
onSurfaceClick;
|
|
64
|
+
/** Whether positions are normalised (defaults to `true` at read time). */
|
|
65
|
+
normalised;
|
|
66
|
+
/** Side the popup renders on, relative to its marker (defaults to `'right'`). */
|
|
67
|
+
popupSide;
|
|
68
|
+
/** Extra classes merged onto the layer root. */
|
|
69
|
+
className;
|
|
70
|
+
/** Inline style for the layer root, merged over the layer's own. */
|
|
71
|
+
style;
|
|
72
|
+
/**
|
|
73
|
+
* Reactive translation, read in the injection context. Its `t` reads the
|
|
74
|
+
* locale, so the view re-renders the text on a locale switch.
|
|
75
|
+
*/
|
|
76
|
+
i18n = useTranslation();
|
|
77
|
+
/**
|
|
78
|
+
* The current class map.
|
|
79
|
+
* @returns The UIClassMap.
|
|
80
|
+
*/
|
|
81
|
+
cm() {
|
|
82
|
+
return getClassMap();
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Whether positions are normalised (React's `normalised = true` default).
|
|
86
|
+
* @returns The normalised flag.
|
|
87
|
+
*/
|
|
88
|
+
normalisedValue() {
|
|
89
|
+
return this.normalised ?? true;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* The layer root's class list (React's `cm.cn(className)`).
|
|
93
|
+
* @returns The class string.
|
|
94
|
+
*/
|
|
95
|
+
classes() {
|
|
96
|
+
return this.cm().cn(this.className);
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* The layer root's inline style (React's `rootStyle`: the caller's style wins).
|
|
100
|
+
* @returns The serialised style attribute.
|
|
101
|
+
*/
|
|
102
|
+
rootStyle() {
|
|
103
|
+
return styleString({
|
|
104
|
+
position: 'relative',
|
|
105
|
+
width: '100%',
|
|
106
|
+
height: '100%',
|
|
107
|
+
...(this.style ?? {}),
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* The add-pin target's class list (React's
|
|
112
|
+
* `cm.cn(cm.position('absolute'), cm.inset0, cm.cursorPointer)`).
|
|
113
|
+
* @returns The class string.
|
|
114
|
+
*/
|
|
115
|
+
addPinClasses() {
|
|
116
|
+
return this.cm().cn(this.cm().position('absolute'), this.cm().inset0, this.cm().cursorPointer);
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* The add-pin target's inline style — the browser's default button chrome
|
|
120
|
+
* reset (the target is invisible, not a visible control), as a style map so
|
|
121
|
+
* the CSSOM normalises it exactly as React's own inline styles do.
|
|
122
|
+
* @returns The style map.
|
|
123
|
+
*/
|
|
124
|
+
addPinStyles() {
|
|
125
|
+
return styleObject({ border: 'none', padding: 0, background: 'transparent' });
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* The layer's accessible label (React's `annotationPin.aria.layer`).
|
|
129
|
+
* @returns The label text.
|
|
130
|
+
*/
|
|
131
|
+
regionLabel() {
|
|
132
|
+
return this.i18n.t('annotationPin.aria.layer', {}, { defaultValue: 'Annotation layer' });
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* The add-pin target's accessible label (React's `annotationPin.aria.addPin`).
|
|
136
|
+
* @returns The label text.
|
|
137
|
+
*/
|
|
138
|
+
addPinLabel() {
|
|
139
|
+
return this.i18n.t('annotationPin.aria.addPin', {}, { defaultValue: 'Add annotation pin' });
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* The click handler a pin marker receives (React's
|
|
143
|
+
* `() => onPinClick?.(pin.id)`).
|
|
144
|
+
*
|
|
145
|
+
* @param pin - The pin the marker belongs to.
|
|
146
|
+
* @returns The handler.
|
|
147
|
+
*/
|
|
148
|
+
clickFor(pin) {
|
|
149
|
+
return () => this.onPinClick?.(pin.id);
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Computes the clicked position relative to the add-pin button's box (which
|
|
153
|
+
* covers the layer) and forwards to `onSurfaceClick`. If `normalised` is
|
|
154
|
+
* `true`, the returned coordinates are 0..1 fractions; otherwise they are
|
|
155
|
+
* raw pixel offsets.
|
|
156
|
+
*
|
|
157
|
+
* Clicks produced by keyboard activation (Enter / Space on the focused
|
|
158
|
+
* button) or assistive tech carry `detail === 0` and no pointer position —
|
|
159
|
+
* such clicks place the pin at the surface centre. Pin markers and popups
|
|
160
|
+
* never reach this handler: they stack above the button and are its
|
|
161
|
+
* siblings, so their clicks do not hit it.
|
|
162
|
+
*
|
|
163
|
+
* @param event - The originating mouse event.
|
|
164
|
+
*/
|
|
165
|
+
handleSurfaceClick(event) {
|
|
166
|
+
if (!this.onSurfaceClick)
|
|
167
|
+
return;
|
|
168
|
+
const rect = event.currentTarget.getBoundingClientRect();
|
|
169
|
+
const keyboardActivated = event.detail === 0;
|
|
170
|
+
const px = keyboardActivated ? rect.width / 2 : event.clientX - rect.left;
|
|
171
|
+
const py = keyboardActivated ? rect.height / 2 : event.clientY - rect.top;
|
|
172
|
+
const safeRectWidth = rect.width || 1;
|
|
173
|
+
const safeRectHeight = rect.height || 1;
|
|
174
|
+
const x = this.normalisedValue() ? px / safeRectWidth : px;
|
|
175
|
+
const y = this.normalisedValue() ? py / safeRectHeight : py;
|
|
176
|
+
this.onSurfaceClick({ x, y });
|
|
177
|
+
}
|
|
178
|
+
static ɵfac = function AnnotationLayer_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AnnotationLayer)(); };
|
|
179
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AnnotationLayer, selectors: [["div", "mol-annotation-layer", ""]], hostAttrs: ["role", "region", "data-mol-id", "annotation-layer"], hostVars: 4, hostBindings: function AnnotationLayer_HostBindings(rf, ctx) { if (rf & 2) {
|
|
180
|
+
i0.ɵɵattribute("aria-label", ctx.regionLabel())("style", ctx.rootStyle(), i0.ɵɵsanitizeStyle);
|
|
181
|
+
i0.ɵɵclassMap(ctx.classes());
|
|
182
|
+
} }, inputs: { pins: "pins", activePinId: "activePinId", onPinClick: "onPinClick", onSurfaceClick: "onSurfaceClick", normalised: "normalised", popupSide: "popupSide", className: "className", style: "style" }, ngContentSelectors: _c0, decls: 4, vars: 1, consts: [["type", "button", "data-mol-id", "annotation-layer-add-pin", 3, "class", "ngStyle"], ["mol-annotation-pin", "", 3, "position", "label", "note", "selected", "popupSide", "normalised", "onClick"], ["type", "button", "data-mol-id", "annotation-layer-add-pin", 3, "click", "ngStyle"]], template: function AnnotationLayer_Template(rf, ctx) { if (rf & 1) {
|
|
183
|
+
i0.ɵɵprojectionDef();
|
|
184
|
+
i0.ɵɵprojection(0);
|
|
185
|
+
i0.ɵɵconditionalCreate(1, AnnotationLayer_Conditional_1_Template, 1, 4, "button", 0);
|
|
186
|
+
i0.ɵɵrepeaterCreate(2, AnnotationLayer_For_3_Template, 1, 7, "div", 1, _forTrack0);
|
|
187
|
+
} if (rf & 2) {
|
|
188
|
+
i0.ɵɵadvance();
|
|
189
|
+
i0.ɵɵconditional(ctx.onSurfaceClick ? 1 : -1);
|
|
190
|
+
i0.ɵɵadvance();
|
|
191
|
+
i0.ɵɵrepeater(ctx.pins);
|
|
192
|
+
} }, dependencies: [AnnotationPin, NgStyle], encapsulation: 2 });
|
|
193
|
+
}
|
|
194
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AnnotationLayer, [{
|
|
195
|
+
type: Component,
|
|
196
|
+
args: [{
|
|
197
|
+
selector: 'div[mol-annotation-layer]',
|
|
198
|
+
standalone: true,
|
|
199
|
+
imports: [AnnotationPin, NgStyle],
|
|
200
|
+
inputs: [
|
|
201
|
+
'pins',
|
|
202
|
+
'activePinId',
|
|
203
|
+
'onPinClick',
|
|
204
|
+
'onSurfaceClick',
|
|
205
|
+
'normalised',
|
|
206
|
+
'popupSide',
|
|
207
|
+
'className',
|
|
208
|
+
'style',
|
|
209
|
+
],
|
|
210
|
+
host: {
|
|
211
|
+
role: 'region',
|
|
212
|
+
'[attr.aria-label]': 'regionLabel()',
|
|
213
|
+
'data-mol-id': 'annotation-layer',
|
|
214
|
+
'[class]': 'classes()',
|
|
215
|
+
'[attr.style]': 'rootStyle()',
|
|
216
|
+
},
|
|
217
|
+
// prettier-ignore
|
|
218
|
+
template: `<ng-content></ng-content>@if (onSurfaceClick) {<button type="button" [attr.aria-label]="addPinLabel()" data-mol-id="annotation-layer-add-pin" (click)="handleSurfaceClick($event)" [class]="addPinClasses()" [ngStyle]="addPinStyles()"></button>}@for (pin of pins; track pin.id) {<div mol-annotation-pin [position]="pin.position" [label]="pin.label" [note]="pin.note" [selected]="activePinId === pin.id" [popupSide]="popupSide ?? 'right'" [normalised]="normalisedValue()" [onClick]="clickFor(pin)"></div>}`,
|
|
219
|
+
}]
|
|
220
|
+
}], null, null); })();
|
|
221
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AnnotationLayer, { className: "AnnotationLayer", filePath: "annotation-layer.component.ts", lineNumber: 64 }); })();
|
|
222
|
+
//# sourceMappingURL=annotation-layer.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"annotation-layer.component.js","sourceRoot":"","sources":["../src/annotation-layer.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAEzC,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAA;AAC7D,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;;;;;;IA+CS,iCAAyL;IAA1F,yLAAS,iCAA0B,KAAC;IAAsD,iBAAS;;;IAA9D,qCAAyB;IAAC,+CAA0B;;;;IAA6C,yBAAgO;;;;IAAhC,AAAjC,AAAnC,AAApC,AAAlB,AAApB,AAA1B,0CAAyB,uBAAoB,qBAAkB,8CAAoC,0CAAmC,wCAAiC,oCAA0B;;AA5C1f;;;;;;;;;;;;;;;;;;;;;GAqBG;AAyBH,MAAM,OAAO,eAAe;IAC1B,mCAAmC;IACnC,IAAI,GAAU,EAAE,CAAA;IAChB,oEAAoE;IACpE,WAAW,CAAgB;IAC3B,mEAAmE;IACnE,UAA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CAAC,EAAE,CAAC,EAAE,CAAC,CAAA;IAC/B,CAAC;yGApIU,eAAe;6DAAf,eAAe;yCAAf,iBAAa,WAAb,eAAW;YAAX,cAAA,aAAS,CAAM;;;YAFf,kBAAyB;YAAA,oFAAsB;YAAmM,kFAAmQ;;YAA5d,cAAyN;YAAzN,6CAAyN;YAAA,cAAmQ;YAAnQ,uBAAmQ;4BAnBtf,aAAa,EAAE,OAAO;;iFAqBrB,eAAe;cAxB3B,SAAS;eAAC;gBACT,QAAQ,EAAE,2BAA2B;gBACrC,UAAU,EAAE,IAAI;gBAChB,OAAO,EAAE,CAAC,aAAa,EAAE,OAAO,CAAC;gBACjC,MAAM,EAAE;oBACN,MAAM;oBACN,aAAa;oBACb,YAAY;oBACZ,gBAAgB;oBAChB,YAAY;oBACZ,WAAW;oBACX,WAAW;oBACX,OAAO;iBACR;gBACD,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;oBACd,mBAAmB,EAAE,eAAe;oBACpC,aAAa,EAAE,kBAAkB;oBACjC,SAAS,EAAE,WAAW;oBACtB,cAAc,EAAE,aAAa;iBAC9B;gBACD,kBAAkB;gBAClB,QAAQ,EAAE,ufAAuf;aAClgB;;kFACY,eAAe"}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { type AfterViewInit, type DoCheck, type TemplateRef } from '@angular/core';
|
|
2
|
+
import type { UIClassMap } from '@molecule/app-ui';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* A single pin marker (small circle with optional `label`) rendered at an
|
|
6
|
+
* absolute position on its parent. Clicking the marker toggles its popup
|
|
7
|
+
* (which shows the `note` body) via the `onClick` handler.
|
|
8
|
+
*
|
|
9
|
+
* The host IS the outer `<div>` (`div[mol-annotation-pin]`), matching React's
|
|
10
|
+
* root exactly. Node props are an input (a string or a `TemplateRef`) or
|
|
11
|
+
* projected content (`[slot=label]`, `[slot=note]`).
|
|
12
|
+
*
|
|
13
|
+
* This is the Angular counterpart of `@molecule/app-annotation-pin-react`.
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* Angular projection needs the `<ng-content>` capture points mounted, and an
|
|
17
|
+
* `ng-content` created later never receives the projection, so the popup and
|
|
18
|
+
* the two capture points live in the template unconditionally and
|
|
19
|
+
* {@link AnnotationPin.ngDoCheck} detaches the ones React would not render.
|
|
20
|
+
*/
|
|
21
|
+
export declare class AnnotationPin implements AfterViewInit, DoCheck {
|
|
22
|
+
/** Position in the parent surface's coordinate space (typically normalised 0..1). */
|
|
23
|
+
position: {
|
|
24
|
+
x: number;
|
|
25
|
+
y: number;
|
|
26
|
+
};
|
|
27
|
+
/** Short label inside the marker — text, a template, or `[slot=label]` content. */
|
|
28
|
+
label?: TemplateRef<unknown> | string | number | null;
|
|
29
|
+
/** Popup body when selected — text, a template, or `[slot=note]` content. */
|
|
30
|
+
note?: TemplateRef<unknown> | string | number | null;
|
|
31
|
+
/** Whether the popup is rendered (React's `selected`). */
|
|
32
|
+
selected?: boolean;
|
|
33
|
+
/** Click handler — fires when the pin marker is clicked. */
|
|
34
|
+
onClick?: () => void;
|
|
35
|
+
/** Side the popup renders on (defaults to `'right'` at read time). */
|
|
36
|
+
popupSide?: 'top' | 'bottom' | 'left' | 'right';
|
|
37
|
+
/** Extra classes merged onto the root wrapper. */
|
|
38
|
+
className?: string;
|
|
39
|
+
/** Whether positions are normalised (defaults to `true` at read time). */
|
|
40
|
+
normalised?: boolean;
|
|
41
|
+
/** The popup element, in the template unconditionally (see the class remarks). */
|
|
42
|
+
private popupEl?;
|
|
43
|
+
/** The `[slot=label]` capture point. */
|
|
44
|
+
private labelSlot?;
|
|
45
|
+
/** The `[slot=note]` capture point. */
|
|
46
|
+
private noteSlot?;
|
|
47
|
+
/** The empty-state line, rendered in the template and detached when a note is present. */
|
|
48
|
+
private emptyNoteEl?;
|
|
49
|
+
/** The DOM renderer, for the attach/detach reconciliation. */
|
|
50
|
+
private readonly renderer;
|
|
51
|
+
/** Reconciles the popup against React's DOM. */
|
|
52
|
+
private readonly popupToggle;
|
|
53
|
+
/** Reconciles the label capture point. */
|
|
54
|
+
private readonly labelToggle;
|
|
55
|
+
/** Reconciles the note capture point. */
|
|
56
|
+
private readonly noteToggle;
|
|
57
|
+
/** Reconciles the empty-state line. */
|
|
58
|
+
private readonly emptyToggle;
|
|
59
|
+
/** Whether a `[slot=note]` projection landed. */
|
|
60
|
+
private noteProjected;
|
|
61
|
+
/**
|
|
62
|
+
* Reactive translation, read in the injection context. Its `t` reads the
|
|
63
|
+
* locale, so the view re-renders the text on a locale switch.
|
|
64
|
+
*/
|
|
65
|
+
private readonly i18n;
|
|
66
|
+
/**
|
|
67
|
+
* The current class map.
|
|
68
|
+
* @returns The UIClassMap.
|
|
69
|
+
*/
|
|
70
|
+
cm(): UIClassMap;
|
|
71
|
+
/**
|
|
72
|
+
* The wrapper's class list (React's `cm.cn(className)`).
|
|
73
|
+
* @returns The class string.
|
|
74
|
+
*/
|
|
75
|
+
classes(): string;
|
|
76
|
+
/**
|
|
77
|
+
* The marker button's class list (React's `cm.cn(cm.roundedFull, cm.cursorPointer)`).
|
|
78
|
+
* @returns The class string.
|
|
79
|
+
*/
|
|
80
|
+
markerClasses(): string;
|
|
81
|
+
/**
|
|
82
|
+
* The marker label's class list (React's `cm.cn(cm.textSize('xs'), cm.fontWeight('bold'))`).
|
|
83
|
+
* @returns The class string.
|
|
84
|
+
*/
|
|
85
|
+
labelClasses(): string;
|
|
86
|
+
/**
|
|
87
|
+
* The popup's class list (React's `cm.cn(cm.surface, cm.borderAll, cm.textSize('sm'))`).
|
|
88
|
+
* @returns The class string.
|
|
89
|
+
*/
|
|
90
|
+
popupClasses(): string;
|
|
91
|
+
/**
|
|
92
|
+
* The wrapper's inline style (React's `wrapperStyle`).
|
|
93
|
+
* @returns The serialised style attribute.
|
|
94
|
+
*/
|
|
95
|
+
wrapperStyle(): string;
|
|
96
|
+
/**
|
|
97
|
+
* The marker button's inline style (React's `markerStyle`), as a style map
|
|
98
|
+
* so the CSSOM normalises it exactly as React's own inline styles do.
|
|
99
|
+
* @returns The style map.
|
|
100
|
+
*/
|
|
101
|
+
markerStyles(): Record<string, string>;
|
|
102
|
+
/**
|
|
103
|
+
* The marker label's inline style (React's `{ lineHeight: 1, pointerEvents: 'none' }`).
|
|
104
|
+
* @returns The serialised style attribute.
|
|
105
|
+
*/
|
|
106
|
+
labelStyle(): string;
|
|
107
|
+
/**
|
|
108
|
+
* The popup's inline style (React's `popupStyle`, side-specific).
|
|
109
|
+
* @returns The serialised style attribute.
|
|
110
|
+
*/
|
|
111
|
+
popupStyle(): string;
|
|
112
|
+
/**
|
|
113
|
+
* The label as a template, when the caller passed a node.
|
|
114
|
+
* @returns The template, or null.
|
|
115
|
+
*/
|
|
116
|
+
labelTemplate(): TemplateRef<unknown> | null;
|
|
117
|
+
/**
|
|
118
|
+
* The label as text, when the caller passed one.
|
|
119
|
+
* @returns The text, or null.
|
|
120
|
+
*/
|
|
121
|
+
labelText(): string | null;
|
|
122
|
+
/**
|
|
123
|
+
* The note as a template, when the caller passed a node.
|
|
124
|
+
* @returns The template, or null.
|
|
125
|
+
*/
|
|
126
|
+
noteTemplate(): TemplateRef<unknown> | null;
|
|
127
|
+
/**
|
|
128
|
+
* The note as text, when the caller passed one.
|
|
129
|
+
* @returns The text, or null.
|
|
130
|
+
*/
|
|
131
|
+
noteText(): string | null;
|
|
132
|
+
/**
|
|
133
|
+
* Whether a label prop was given (any value React would render, `''`
|
|
134
|
+
* included).
|
|
135
|
+
* @returns True when the label prop is present.
|
|
136
|
+
*/
|
|
137
|
+
hasLabelProp(): boolean;
|
|
138
|
+
/**
|
|
139
|
+
* Whether a note prop was given (any value React would render, `''` included).
|
|
140
|
+
* @returns True when the note prop is present.
|
|
141
|
+
*/
|
|
142
|
+
hasNoteProp(): boolean;
|
|
143
|
+
/**
|
|
144
|
+
* Whether the popup body holds the caller's note (React's `note ?? …`):
|
|
145
|
+
* a note prop of any value, or `[slot=note]` content.
|
|
146
|
+
* @returns True when the note renders instead of the empty state.
|
|
147
|
+
*/
|
|
148
|
+
hasNote(): boolean;
|
|
149
|
+
/**
|
|
150
|
+
* The marker button's accessible label (React's `annotationPin.aria.marker`).
|
|
151
|
+
* @returns The label text.
|
|
152
|
+
*/
|
|
153
|
+
markerLabel(): string;
|
|
154
|
+
/**
|
|
155
|
+
* The popup's accessible label (React's `annotationPin.aria.popup`).
|
|
156
|
+
* @returns The label text.
|
|
157
|
+
*/
|
|
158
|
+
popupLabel(): string;
|
|
159
|
+
/**
|
|
160
|
+
* The popup's empty-state text (React's `annotationPin.empty`).
|
|
161
|
+
* @returns The text.
|
|
162
|
+
*/
|
|
163
|
+
emptyNote(): string;
|
|
164
|
+
/**
|
|
165
|
+
* Stops the marker click from bubbling to arbitrary ancestor click handlers
|
|
166
|
+
* and forwards it to `onClick`.
|
|
167
|
+
*
|
|
168
|
+
* @param event - The originating mouse event.
|
|
169
|
+
*/
|
|
170
|
+
handleMarkerClick(event: MouseEvent): void;
|
|
171
|
+
/**
|
|
172
|
+
* Reads the projected capture points and reconciles the popup and the two
|
|
173
|
+
* capture wrappers against what React renders.
|
|
174
|
+
*/
|
|
175
|
+
reconcile(): void;
|
|
176
|
+
/** Reconciles once the view (and its projections) exist. */
|
|
177
|
+
ngAfterViewInit(): void;
|
|
178
|
+
/** Reconciles after input writes, as React re-renders on a prop change. */
|
|
179
|
+
ngDoCheck(): void;
|
|
180
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AnnotationPin, never>;
|
|
181
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AnnotationPin, "div[mol-annotation-pin]", never, { "position": { "alias": "position"; "required": false; }; "label": { "alias": "label"; "required": false; }; "note": { "alias": "note"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "onClick": { "alias": "onClick"; "required": false; }; "popupSide": { "alias": "popupSide"; "required": false; }; "className": { "alias": "className"; "required": false; }; "normalised": { "alias": "normalised"; "required": false; }; }, {}, never, ["[slot=label]", "[slot=note]"], true, never>;
|
|
182
|
+
}
|
|
183
|
+
//# sourceMappingURL=annotation-pin.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"annotation-pin.component.d.ts","sourceRoot":"","sources":["../src/annotation-pin.component.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,OAAO,EAKZ,KAAK,WAAW,EAEjB,MAAM,eAAe,CAAA;AAGtB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;;AA4BlD;;;;;;;;;;;;;;;;GAgBG;AACH,qBAuBa,aAAc,YAAW,aAAa,EAAE,OAAO;IAC1D,qFAAqF;IACrF,QAAQ,EAAG;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;IACnC,mFAAmF;IACnF,KAAK,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAA;IACrD,6EAA6E;IAC7E,IAAI,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAA;IACpD,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,4DAA4D;IAC5D,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,sEAAsE;IACtE,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAA;IAC/C,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,0EAA0E;IAC1E,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB,kFAAkF;IAC5D,OAAO,CAAC,OAAO,CAAC,CAAyB;IAC/D,wCAAwC;IAChB,OAAO,CAAC,SAAS,CAAC,CAAyB;IACnE,uCAAuC;IAChB,OAAO,CAAC,QAAQ,CAAC,CAAyB;IACjE,0FAA0F;IAChE,OAAO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