@molecule/app-contact-display-angular 0.0.0-stage → 0.0.1-stage

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 ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/README.md CHANGED
@@ -1,3 +1,433 @@
1
- # Temporary Holding Version
1
+ <!--
2
+ AUTO-GENERATED — DO NOT EDIT THIS FILE.
3
+ Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
4
+ Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
5
+ To change this document, edit the module-level JSDoc in src/index.ts.
6
+ Generated: 2026-11-15T09:11:16.728Z
7
+ -->
2
8
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
9
+ # @molecule/app-contact-display-angular
10
+
11
+ Angular formatted contact display — the counterpart of
12
+ `@molecule/app-contact-display-react`: the same props and the same DOM for
13
+ the same input.
14
+
15
+ Exports `<ContactDisplay>` — avatar + name + role + email/phone/address with
16
+ card/row/compact layouts.
17
+
18
+ > **Auto-generated, AI-first package reference** for the [molecule.dev](https://molecule.dev) ecosystem.
19
+ > It is written to be read by coding agents as much as by people, and is generated from this
20
+ > package's source — edit `src/index.ts` JSDoc, not this file.
21
+
22
+ ## Quick Start
23
+
24
+ ```ts
25
+ import { Component } from '@angular/core'
26
+ import { ContactDisplay } from '@molecule/app-contact-display-angular'
27
+
28
+ @Component({
29
+ selector: 'app-profile',
30
+ standalone: true,
31
+ imports: [ContactDisplay],
32
+ template: `
33
+ <div
34
+ mol-contact-display
35
+ layout="row"
36
+ [contact]="{
37
+ name: 'Jane Smith',
38
+ email: 'jane@example.com',
39
+ phone: '+1 555 0100',
40
+ role: 'Product Designer',
41
+ company: 'Acme Corp',
42
+ }"
43
+ (click)="openProfile('jane')"
44
+ ></div>
45
+ `,
46
+ })
47
+ export class Profile {
48
+ openProfile(id: string): void {}
49
+ }
50
+ ```
51
+
52
+ ## Type
53
+
54
+ `feature`
55
+
56
+ ## Installation
57
+
58
+ ```bash
59
+ npm install @molecule/app-contact-display-angular @angular/common @angular/core @angular/platform-browser @molecule/app-angular @molecule/app-ui @molecule/app-ui-angular
60
+ ```
61
+
62
+ ## API
63
+
64
+ ### Interfaces
65
+
66
+ #### `ContactFields`
67
+
68
+ Fields describing a contact rendered by {@link ContactDisplay}.
69
+
70
+ `role`, `address` and `company` are node-valued in React: pass a
71
+ `TemplateRef` (the kit's form) or plain text.
72
+
73
+ ```typescript
74
+ interface ContactFields {
75
+ /** Display name. */
76
+ name: string
77
+ /** Email address, rendered as a `mailto:` link in the card and row layouts. */
78
+ email?: string
79
+ /** Phone number, rendered as a `tel:` link in the card and row layouts. */
80
+ phone?: string
81
+ /** Role / title, shown beside the name: a `TemplateRef` or text. */
82
+ role?: unknown
83
+ /** Avatar image URL; without one the name's initials are shown. */
84
+ avatarSrc?: string
85
+ /** Postal address, shown under the phone line: a `TemplateRef` or text. */
86
+ address?: unknown
87
+ /** Company name, shown under the name line: a `TemplateRef` or text. */
88
+ company?: unknown
89
+ }
90
+ ```
91
+
92
+ #### `ContactDisplayProps`
93
+
94
+ Props accepted by the {@link ContactDisplay} component.
95
+
96
+ ```typescript
97
+ interface ContactDisplayProps {
98
+ /** The contact to display. */
99
+ contact: ContactFields
100
+ /** Layout preset. Defaults to `'card'`. */
101
+ layout?: 'card' | 'row' | 'compact'
102
+ /** Optional right-side actions, projected as `[slot=actions]` content. */
103
+ actions?: unknown
104
+ /** Click handler on the row, called with the native click event. */
105
+ onClick?: (event: MouseEvent) => void
106
+ /** Extra classes. */
107
+ className?: string
108
+ }
109
+ ```
110
+
111
+ ### Classes
112
+
113
+ #### `ContactDisplay`
114
+
115
+ ContactDisplay component.
116
+
117
+ Formatted contact display — avatar + name + role + email/phone with leading
118
+ glyphs + optional address and company. Three layouts for different
119
+ densities. The host IS the root `<div>` (`div[mol-contact-display]`),
120
+ matching React's root exactly. The optional right-side actions are projected
121
+ (`[slot=actions]`); the node-valued `contact.role`, `contact.address` and
122
+ `contact.company` arrive as `TemplateRef`s and render through
123
+ {@link ContactNodeOutlet}, or as text. Same props, same DOM as
124
+ `@molecule/app-contact-display-react`'s `ContactDisplay`.
125
+
126
+ ```typescript
127
+ @Component({
128
+ selector: 'div[mol-contact-display]',
129
+ standalone: true,
130
+ imports: [Avatar, ContactNodeOutlet],
131
+ inputs: ['contact', 'layout', 'onClick', 'className'],
132
+ host: {
133
+ '[class]': 'classes()',
134
+ '(click)': 'handleClick($event)',
135
+ },
136
+ // prettier-ignore
137
+ template: `<div [class]="avatarWrapClass()"><div mol-avatar [src]="avatarSrc()" [alt]="contactName()" [name]="contactName()" [size]="avatarSize()"></div></div>
138
+ <div [class]="detailWrapClass()">
139
+ <div [class]="nameRowClass()"><span [class]="nameClass()">{{ contactName() }}</span>@if (hasRole()) {<span [class]="roleClass()">{{ roleText }}<ng-container [molContactNode]="roleTemplate()"></ng-container></span>}</div>
140
+ @if (hasCompany()) {<div [class]="companyClass()">{{ companyText }}<ng-container [molContactNode]="companyTemplate()"></ng-container></div>}
141
+ @if (showEmail()) {<div [class]="detailRowClass()"><span aria-hidden="true">✉</span><a [attr.href]="'mailto:' + contactEmail()" [class]="linkClass()">{{ contactEmail() }}</a></div>}
142
+ @if (showPhone()) {<div [class]="detailRowClass()"><span aria-hidden="true">☎</span><a [attr.href]="'tel:' + contactPhone()" [class]="linkClass()">{{ contactPhone() }}</a></div>}
143
+ @if (showAddress()) {<div [class]="detailRowClass()"><span aria-hidden="true">⌂</span><span>{{ addressText }}<ng-container [molContactNode]="addressTemplate()"></ng-container></span></div>}
144
+ </div><ng-content select="[slot=actions]"></ng-content>`,
145
+ })
146
+ export class ContactDisplay {
147
+ /** The contact to display. */
148
+ contact?: ContactFields
149
+ /** Layout preset. Defaults to `'card'` at read time. */
150
+ layout?: 'card' | 'row' | 'compact'
151
+ /** Click handler on the row, called with the native click event. */
152
+ onClick?: (event: MouseEvent) => void
153
+ /** Extra classes on the outer wrapper. */
154
+ className?: string
155
+
156
+ /**
157
+ * The current class map.
158
+ * @returns The UIClassMap.
159
+ */
160
+ cm(): UIClassMap {
161
+ return getClassMap()
162
+ }
163
+
164
+ /**
165
+ * The active layout (React's `layout = 'card'` default).
166
+ * @returns The layout.
167
+ */
168
+ activeLayout(): 'card' | 'row' | 'compact' {
169
+ return this.layout ?? 'card'
170
+ }
171
+
172
+ /**
173
+ * Whether the compact layout hides the contact details.
174
+ * @returns True for `layout: 'compact'`.
175
+ */
176
+ isCompact(): boolean {
177
+ return this.activeLayout() === 'compact'
178
+ }
179
+
180
+ /**
181
+ * The contact's display name.
182
+ * @returns The name, or the empty string.
183
+ */
184
+ contactName(): string {
185
+ return fieldText(this.contact?.name)
186
+ }
187
+
188
+ /**
189
+ * The contact's email address.
190
+ * @returns The email, or the empty string.
191
+ */
192
+ contactEmail(): string {
193
+ return fieldText(this.contact?.email)
194
+ }
195
+
196
+ /**
197
+ * The contact's phone number.
198
+ * @returns The phone, or the empty string.
199
+ */
200
+ contactPhone(): string {
201
+ return fieldText(this.contact?.phone)
202
+ }
203
+
204
+ /**
205
+ * The avatar image URL, when the contact has one.
206
+ * @returns The URL, or undefined.
207
+ */
208
+ avatarSrc(): string | undefined {
209
+ return this.contact?.avatarSrc
210
+ }
211
+
212
+ /**
213
+ * The avatar size preset for the layout.
214
+ * @returns `'sm'` in the compact layout, else `'md'`.
215
+ */
216
+ avatarSize(): 'sm' | 'md' {
217
+ return this.isCompact() ? 'sm' : 'md'
218
+ }
219
+
220
+ /**
221
+ * Whether the role renders (React's `role && …` truthiness).
222
+ * @returns True for a node or non-empty text.
223
+ */
224
+ hasRole(): boolean {
225
+ return Boolean(this.contact?.role)
226
+ }
227
+
228
+ /**
229
+ * Whether the company renders.
230
+ * @returns True for a node or non-empty text.
231
+ */
232
+ hasCompany(): boolean {
233
+ return Boolean(this.contact?.company)
234
+ }
235
+
236
+ /**
237
+ * Whether the email line renders (React's `!isCompact && email`).
238
+ * @returns True when the email shows.
239
+ */
240
+ showEmail(): boolean {
241
+ return !this.isCompact() && Boolean(this.contactEmail())
242
+ }
243
+
244
+ /**
245
+ * Whether the phone line renders.
246
+ * @returns True when the phone shows.
247
+ */
248
+ showPhone(): boolean {
249
+ return !this.isCompact() && Boolean(this.contactPhone())
250
+ }
251
+
252
+ /**
253
+ * Whether the address line renders.
254
+ * @returns True when the address shows.
255
+ */
256
+ showAddress(): boolean {
257
+ return !this.isCompact() && Boolean(this.contact?.address)
258
+ }
259
+
260
+ /**
261
+ * The role as a template, when the caller passed a node.
262
+ * @returns The template, or null for text or an absent role.
263
+ */
264
+ roleTemplate(): TemplateRef<unknown> | null {
265
+ return asTemplate(this.contact?.role)
266
+ }
267
+
268
+ /**
269
+ * The role's text (React renders a string role as text).
270
+ * @returns The text, or the empty string for a node or an absent role.
271
+ */
272
+ get roleText(): string {
273
+ return fieldText(this.contact?.role)
274
+ }
275
+
276
+ /**
277
+ * The company as a template, when the caller passed a node.
278
+ * @returns The template, or null for text or an absent company.
279
+ */
280
+ companyTemplate(): TemplateRef<unknown> | null {
281
+ return asTemplate(this.contact?.company)
282
+ }
283
+
284
+ /**
285
+ * The company's text.
286
+ * @returns The text, or the empty string for a node or an absent company.
287
+ */
288
+ get companyText(): string {
289
+ return fieldText(this.contact?.company)
290
+ }
291
+
292
+ /**
293
+ * The address as a template, when the caller passed a node.
294
+ * @returns The template, or null for text or an absent address.
295
+ */
296
+ addressTemplate(): TemplateRef<unknown> | null {
297
+ return asTemplate(this.contact?.address)
298
+ }
299
+
300
+ /**
301
+ * The address's text.
302
+ * @returns The text, or the empty string for a node or an absent address.
303
+ */
304
+ get addressText(): string {
305
+ return fieldText(this.contact?.address)
306
+ }
307
+
308
+ /**
309
+ * Computes the root class list (`cm.flex(…)` + `cm.cursorPointer` only when
310
+ * clickable + `className`).
311
+ * @returns The class string.
312
+ */
313
+ classes(): string {
314
+ return this.cm().cn(
315
+ this.cm().flex({
316
+ align: this.activeLayout() === 'card' ? 'start' : 'center',
317
+ gap: this.isCompact() ? 'sm' : 'md',
318
+ direction: this.activeLayout() === 'card' ? 'col' : 'row',
319
+ }),
320
+ this.onClick ? this.cm().cursorPointer : undefined,
321
+ this.className,
322
+ )
323
+ }
324
+
325
+ /**
326
+ * The avatar wrapper's class (`cm.shrink0`).
327
+ * @returns The class string.
328
+ */
329
+ avatarWrapClass(): string {
330
+ return this.cm().cn(this.cm().shrink0)
331
+ }
332
+
333
+ /**
334
+ * The avatar column's class (`cm.flex1` + `cm.stack(1)`).
335
+ * @returns The class string.
336
+ */
337
+ detailWrapClass(): string {
338
+ return this.cm().cn(this.cm().flex1, this.cm().stack(1))
339
+ }
340
+
341
+ /**
342
+ * The name line's class (`cm.flex({ align: 'baseline', gap: 'sm' })`).
343
+ * @returns The class string.
344
+ */
345
+ nameRowClass(): string {
346
+ return this.cm().flex({ align: 'baseline', gap: 'sm' })
347
+ }
348
+
349
+ /**
350
+ * The name span's class (size by layout + semibold).
351
+ * @returns The class string.
352
+ */
353
+ nameClass(): string {
354
+ return this.cm().cn(
355
+ this.cm().textSize(this.isCompact() ? 'sm' : 'base'),
356
+ this.cm().fontWeight('semibold'),
357
+ )
358
+ }
359
+
360
+ /**
361
+ * The role span's class (`cm.textSize('xs')`).
362
+ * @returns The class string.
363
+ */
364
+ roleClass(): string {
365
+ return this.cm().textSize('xs')
366
+ }
367
+
368
+ /**
369
+ * The company line's class (`cm.textSize('sm')`).
370
+ * @returns The class string.
371
+ */
372
+ companyClass(): string {
373
+ return this.cm().textSize('sm')
374
+ }
375
+
376
+ /**
377
+ * One detail line's class (`cm.flex({ align: 'center', gap: 'xs' })` +
378
+ * `cm.textSize('sm')`).
379
+ * @returns The class string.
380
+ */
381
+ detailRowClass(): string {
382
+ return this.cm().cn(this.cm().flex({ align: 'center', gap: 'xs' }), this.cm().textSize('sm'))
383
+ }
384
+
385
+ /**
386
+ * The mailto/tel link's class (`cm.link`).
387
+ * @returns The class string.
388
+ */
389
+ linkClass(): string {
390
+ return this.cm().cn(this.cm().link)
391
+ }
392
+
393
+ /**
394
+ * Runs the click handler the way React forwards the DOM event.
395
+ * @param event - The native click event.
396
+ */
397
+ handleClick(event: Event): void {
398
+ this.onClick?.(event as MouseEvent)
399
+ }
400
+ }
401
+ ```
402
+
403
+ ## Injection Notes
404
+
405
+ ### Requirements
406
+
407
+ Peer dependencies:
408
+
409
+ - `@angular/common` ^22.0.0
410
+ - `@angular/core` ^22.0.0
411
+ - `@angular/platform-browser` ^22.0.0
412
+ - `@molecule/app-angular` ^3.5.0
413
+ - `@molecule/app-ui` ^1.0.1
414
+ - `@molecule/app-ui-angular` ^1.1.0
415
+
416
+ ### Runtime Dependencies
417
+
418
+ - `@angular/common`
419
+ - `@angular/core`
420
+ - `@angular/platform-browser`
421
+ - `@molecule/app-angular`
422
+ - `@molecule/app-ui`
423
+ - `@molecule/app-ui-angular`
424
+
425
+ `contact` fields are display-only data — `email`/`phone` render as
426
+ `mailto:`/`tel:` links; there is no formatting/validation. The email/phone/
427
+ address markers are text glyphs (✉ ☎ ⌂), not themed SVG icons. `role`,
428
+ `address`, and `company` are node-valued in React: in Angular pass a
429
+ `TemplateRef` (rendered through the package's `[molContactNode]` outlet) or
430
+ plain text. The right-side actions are projected as `[slot=actions]`
431
+ content. When `onClick` is provided the whole row becomes clickable; supply
432
+ your own keyboard affordance (e.g. wrap in a button/link) for
433
+ accessibility-critical surfaces.