@molecule/app-contact-display-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 +432 -2
- package/dist/contact-display.component.d.ts +181 -0
- package/dist/contact-display.component.d.ts.map +1 -0
- package/dist/contact-display.component.js +446 -0
- package/dist/contact-display.component.js.map +1 -0
- package/dist/index.d.ts +52 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +52 -0
- package/dist/index.js.map +1 -0
- package/dist/types.d.ts +44 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +10 -0
- package/dist/types.js.map +1 -0
- package/package.json +69 -4
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ContactDisplay component (React parity).
|
|
3
|
+
*
|
|
4
|
+
* @module
|
|
5
|
+
*/
|
|
6
|
+
import { type TemplateRef } from '@angular/core';
|
|
7
|
+
import type { UIClassMap } from '@molecule/app-ui';
|
|
8
|
+
import type { ContactFields } from './types.js';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
/**
|
|
11
|
+
* ContactDisplay component.
|
|
12
|
+
*
|
|
13
|
+
* Formatted contact display — avatar + name + role + email/phone with leading
|
|
14
|
+
* glyphs + optional address and company. Three layouts for different
|
|
15
|
+
* densities. The host IS the root `<div>` (`div[mol-contact-display]`),
|
|
16
|
+
* matching React's root exactly. The optional right-side actions are projected
|
|
17
|
+
* (`[slot=actions]`); the node-valued `contact.role`, `contact.address` and
|
|
18
|
+
* `contact.company` arrive as `TemplateRef`s and render through
|
|
19
|
+
* {@link ContactNodeOutlet}, or as text. Same props, same DOM as
|
|
20
|
+
* `@molecule/app-contact-display-react`'s `ContactDisplay`.
|
|
21
|
+
*/
|
|
22
|
+
export declare class ContactDisplay {
|
|
23
|
+
/** The contact to display. */
|
|
24
|
+
contact?: ContactFields;
|
|
25
|
+
/** Layout preset. Defaults to `'card'` at read time. */
|
|
26
|
+
layout?: 'card' | 'row' | 'compact';
|
|
27
|
+
/** Click handler on the row, called with the native click event. */
|
|
28
|
+
onClick?: (event: MouseEvent) => void;
|
|
29
|
+
/** Extra classes on the outer wrapper. */
|
|
30
|
+
className?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The current class map.
|
|
33
|
+
* @returns The UIClassMap.
|
|
34
|
+
*/
|
|
35
|
+
cm(): UIClassMap;
|
|
36
|
+
/**
|
|
37
|
+
* The active layout (React's `layout = 'card'` default).
|
|
38
|
+
* @returns The layout.
|
|
39
|
+
*/
|
|
40
|
+
activeLayout(): 'card' | 'row' | 'compact';
|
|
41
|
+
/**
|
|
42
|
+
* Whether the compact layout hides the contact details.
|
|
43
|
+
* @returns True for `layout: 'compact'`.
|
|
44
|
+
*/
|
|
45
|
+
isCompact(): boolean;
|
|
46
|
+
/**
|
|
47
|
+
* The contact's display name.
|
|
48
|
+
* @returns The name, or the empty string.
|
|
49
|
+
*/
|
|
50
|
+
contactName(): string;
|
|
51
|
+
/**
|
|
52
|
+
* The contact's email address.
|
|
53
|
+
* @returns The email, or the empty string.
|
|
54
|
+
*/
|
|
55
|
+
contactEmail(): string;
|
|
56
|
+
/**
|
|
57
|
+
* The contact's phone number.
|
|
58
|
+
* @returns The phone, or the empty string.
|
|
59
|
+
*/
|
|
60
|
+
contactPhone(): string;
|
|
61
|
+
/**
|
|
62
|
+
* The avatar image URL, when the contact has one.
|
|
63
|
+
* @returns The URL, or undefined.
|
|
64
|
+
*/
|
|
65
|
+
avatarSrc(): string | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* The avatar size preset for the layout.
|
|
68
|
+
* @returns `'sm'` in the compact layout, else `'md'`.
|
|
69
|
+
*/
|
|
70
|
+
avatarSize(): 'sm' | 'md';
|
|
71
|
+
/**
|
|
72
|
+
* Whether the role renders (React's `role && …` truthiness).
|
|
73
|
+
* @returns True for a node or non-empty text.
|
|
74
|
+
*/
|
|
75
|
+
hasRole(): boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Whether the company renders.
|
|
78
|
+
* @returns True for a node or non-empty text.
|
|
79
|
+
*/
|
|
80
|
+
hasCompany(): boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Whether the email line renders (React's `!isCompact && email`).
|
|
83
|
+
* @returns True when the email shows.
|
|
84
|
+
*/
|
|
85
|
+
showEmail(): boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Whether the phone line renders.
|
|
88
|
+
* @returns True when the phone shows.
|
|
89
|
+
*/
|
|
90
|
+
showPhone(): boolean;
|
|
91
|
+
/**
|
|
92
|
+
* Whether the address line renders.
|
|
93
|
+
* @returns True when the address shows.
|
|
94
|
+
*/
|
|
95
|
+
showAddress(): boolean;
|
|
96
|
+
/**
|
|
97
|
+
* The role as a template, when the caller passed a node.
|
|
98
|
+
* @returns The template, or null for text or an absent role.
|
|
99
|
+
*/
|
|
100
|
+
roleTemplate(): TemplateRef<unknown> | null;
|
|
101
|
+
/**
|
|
102
|
+
* The role's text (React renders a string role as text).
|
|
103
|
+
* @returns The text, or the empty string for a node or an absent role.
|
|
104
|
+
*/
|
|
105
|
+
get roleText(): string;
|
|
106
|
+
/**
|
|
107
|
+
* The company as a template, when the caller passed a node.
|
|
108
|
+
* @returns The template, or null for text or an absent company.
|
|
109
|
+
*/
|
|
110
|
+
companyTemplate(): TemplateRef<unknown> | null;
|
|
111
|
+
/**
|
|
112
|
+
* The company's text.
|
|
113
|
+
* @returns The text, or the empty string for a node or an absent company.
|
|
114
|
+
*/
|
|
115
|
+
get companyText(): string;
|
|
116
|
+
/**
|
|
117
|
+
* The address as a template, when the caller passed a node.
|
|
118
|
+
* @returns The template, or null for text or an absent address.
|
|
119
|
+
*/
|
|
120
|
+
addressTemplate(): TemplateRef<unknown> | null;
|
|
121
|
+
/**
|
|
122
|
+
* The address's text.
|
|
123
|
+
* @returns The text, or the empty string for a node or an absent address.
|
|
124
|
+
*/
|
|
125
|
+
get addressText(): string;
|
|
126
|
+
/**
|
|
127
|
+
* Computes the root class list (`cm.flex(…)` + `cm.cursorPointer` only when
|
|
128
|
+
* clickable + `className`).
|
|
129
|
+
* @returns The class string.
|
|
130
|
+
*/
|
|
131
|
+
classes(): string;
|
|
132
|
+
/**
|
|
133
|
+
* The avatar wrapper's class (`cm.shrink0`).
|
|
134
|
+
* @returns The class string.
|
|
135
|
+
*/
|
|
136
|
+
avatarWrapClass(): string;
|
|
137
|
+
/**
|
|
138
|
+
* The avatar column's class (`cm.flex1` + `cm.stack(1)`).
|
|
139
|
+
* @returns The class string.
|
|
140
|
+
*/
|
|
141
|
+
detailWrapClass(): string;
|
|
142
|
+
/**
|
|
143
|
+
* The name line's class (`cm.flex({ align: 'baseline', gap: 'sm' })`).
|
|
144
|
+
* @returns The class string.
|
|
145
|
+
*/
|
|
146
|
+
nameRowClass(): string;
|
|
147
|
+
/**
|
|
148
|
+
* The name span's class (size by layout + semibold).
|
|
149
|
+
* @returns The class string.
|
|
150
|
+
*/
|
|
151
|
+
nameClass(): string;
|
|
152
|
+
/**
|
|
153
|
+
* The role span's class (`cm.textSize('xs')`).
|
|
154
|
+
* @returns The class string.
|
|
155
|
+
*/
|
|
156
|
+
roleClass(): string;
|
|
157
|
+
/**
|
|
158
|
+
* The company line's class (`cm.textSize('sm')`).
|
|
159
|
+
* @returns The class string.
|
|
160
|
+
*/
|
|
161
|
+
companyClass(): string;
|
|
162
|
+
/**
|
|
163
|
+
* One detail line's class (`cm.flex({ align: 'center', gap: 'xs' })` +
|
|
164
|
+
* `cm.textSize('sm')`).
|
|
165
|
+
* @returns The class string.
|
|
166
|
+
*/
|
|
167
|
+
detailRowClass(): string;
|
|
168
|
+
/**
|
|
169
|
+
* The mailto/tel link's class (`cm.link`).
|
|
170
|
+
* @returns The class string.
|
|
171
|
+
*/
|
|
172
|
+
linkClass(): string;
|
|
173
|
+
/**
|
|
174
|
+
* Runs the click handler the way React forwards the DOM event.
|
|
175
|
+
* @param event - The native click event.
|
|
176
|
+
*/
|
|
177
|
+
handleClick(event: Event): void;
|
|
178
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContactDisplay, never>;
|
|
179
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContactDisplay, "div[mol-contact-display]", never, { "contact": { "alias": "contact"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "onClick": { "alias": "onClick"; "required": false; }; "className": { "alias": "className"; "required": false; }; }, {}, never, ["[slot=actions]"], true, never>;
|
|
180
|
+
}
|
|
181
|
+
//# sourceMappingURL=contact-display.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contact-display.component.d.ts","sourceRoot":"","sources":["../src/contact-display.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAML,KAAK,WAAW,EAEjB,MAAM,eAAe,CAAA;AAEtB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAIlD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;;AAyD/C;;;;;;;;;;;GAWG;AACH,qBAmBa,cAAc;IACzB,8BAA8B;IAC9B,OAAO,CAAC,EAAE,aAAa,CAAA;IACvB,wDAAwD;IACxD,MAAM,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,SAAS,CAAA;IACnC,oEAAoE;IACpE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAA;IACrC,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;OAGG;IACH,EAAE,IAAI,UAAU;IAIhB;;;OAGG;IACH,YAAY,IAAI,MAAM,GAAG,KAAK,GAAG,SAAS;IAI1C;;;OAGG;IACH,SAAS,IAAI,OAAO;IAIpB;;;OAGG;IACH,WAAW,IAAI,MAAM;IAIrB;;;OAGG;IACH,YAAY,IAAI,MAAM;IAItB;;;OAGG;IACH,YAAY,IAAI,MAAM;IAItB;;;OAGG;IACH,SAAS,IAAI,MAAM,GAAG,SAAS;IAI/B;;;OAGG;IACH,UAAU,IAAI,IAAI,GAAG,IAAI;IAIzB;;;OAGG;IACH,OAAO,IAAI,OAAO;IAIlB;;;OAGG;IACH,UAAU,IAAI,OAAO;IAIrB;;;OAGG;IACH,SAAS,IAAI,OAAO;IAIpB;;;OAGG;IACH,SAAS,IAAI,OAAO;IAIpB;;;OAGG;IACH,WAAW,IAAI,OAAO;IAItB;;;OAGG;IACH,YAAY,IAAI,WAAW,CAAC,OAAO,CAAC,GAAG,IAAI;IAI3C;;;OAGG;IACH,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED;;;OAGG;IACH,eAAe,IAAI,WAAW,CAAC,OAAO,CAAC,GAAG,IAAI;IAI9C;;;OAGG;IACH,IAAI,WAAW,IAAI,MAAM,CAExB;IAED;;;OAGG;IACH,eAAe,IAAI,WAAW,CAAC,OAAO,CAAC,GAAG,IAAI;IAI9C;;;OAGG;IACH,IAAI,WAAW,IAAI,MAAM,CAExB;IAED;;;;OAIG;IACH,OAAO,IAAI,MAAM;IAYjB;;;OAGG;IACH,eAAe,IAAI,MAAM;IAIzB;;;OAGG;IACH,eAAe,IAAI,MAAM;IAIzB;;;OAGG;IACH,YAAY,IAAI,MAAM;IAItB;;;OAGG;IACH,SAAS,IAAI,MAAM;IAOnB;;;OAGG;IACH,SAAS,IAAI,MAAM;IAInB;;;OAGG;IACH,YAAY,IAAI,MAAM;IAItB;;;;OAIG;IACH,cAAc,IAAI,MAAM;IAIxB;;;OAGG;IACH,SAAS,IAAI,MAAM;IAInB;;;OAGG;IACH,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;yCA3PpB,cAAc;2CAAd,cAAc;CA8P1B"}
|
|
@@ -0,0 +1,446 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ContactDisplay component (React parity).
|
|
3
|
+
*
|
|
4
|
+
* @module
|
|
5
|
+
*/
|
|
6
|
+
import { Component, Directive, inject, Input, ViewContainerRef, } from '@angular/core';
|
|
7
|
+
import { getClassMap } from '@molecule/app-ui';
|
|
8
|
+
import { asTemplate, Avatar } from '@molecule/app-ui-angular';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
const _c0 = [[["", "slot", "actions"]]];
|
|
11
|
+
const _c1 = ["[slot=actions]"];
|
|
12
|
+
function ContactDisplay_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
13
|
+
i0.ɵɵelementStart(0, "span");
|
|
14
|
+
i0.ɵɵtext(1);
|
|
15
|
+
i0.ɵɵelementContainer(2, 2);
|
|
16
|
+
i0.ɵɵelementEnd();
|
|
17
|
+
} if (rf & 2) {
|
|
18
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
19
|
+
i0.ɵɵclassMap(ctx_r0.roleClass());
|
|
20
|
+
i0.ɵɵadvance();
|
|
21
|
+
i0.ɵɵtextInterpolate(ctx_r0.roleText);
|
|
22
|
+
i0.ɵɵadvance();
|
|
23
|
+
i0.ɵɵproperty("molContactNode", ctx_r0.roleTemplate());
|
|
24
|
+
} }
|
|
25
|
+
function ContactDisplay_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
26
|
+
i0.ɵɵelementStart(0, "div");
|
|
27
|
+
i0.ɵɵtext(1);
|
|
28
|
+
i0.ɵɵelementContainer(2, 2);
|
|
29
|
+
i0.ɵɵelementEnd();
|
|
30
|
+
} if (rf & 2) {
|
|
31
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
32
|
+
i0.ɵɵclassMap(ctx_r0.companyClass());
|
|
33
|
+
i0.ɵɵadvance();
|
|
34
|
+
i0.ɵɵtextInterpolate(ctx_r0.companyText);
|
|
35
|
+
i0.ɵɵadvance();
|
|
36
|
+
i0.ɵɵproperty("molContactNode", ctx_r0.companyTemplate());
|
|
37
|
+
} }
|
|
38
|
+
function ContactDisplay_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
39
|
+
i0.ɵɵelementStart(0, "div")(1, "span", 3);
|
|
40
|
+
i0.ɵɵtext(2, "\u2709");
|
|
41
|
+
i0.ɵɵelementEnd();
|
|
42
|
+
i0.ɵɵelementStart(3, "a");
|
|
43
|
+
i0.ɵɵtext(4);
|
|
44
|
+
i0.ɵɵelementEnd()();
|
|
45
|
+
} if (rf & 2) {
|
|
46
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
47
|
+
i0.ɵɵclassMap(ctx_r0.detailRowClass());
|
|
48
|
+
i0.ɵɵadvance(3);
|
|
49
|
+
i0.ɵɵclassMap(ctx_r0.linkClass());
|
|
50
|
+
i0.ɵɵattribute("href", "mailto:" + ctx_r0.contactEmail(), i0.ɵɵsanitizeUrl);
|
|
51
|
+
i0.ɵɵadvance();
|
|
52
|
+
i0.ɵɵtextInterpolate(ctx_r0.contactEmail());
|
|
53
|
+
} }
|
|
54
|
+
function ContactDisplay_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
55
|
+
i0.ɵɵelementStart(0, "div")(1, "span", 3);
|
|
56
|
+
i0.ɵɵtext(2, "\u260E");
|
|
57
|
+
i0.ɵɵelementEnd();
|
|
58
|
+
i0.ɵɵelementStart(3, "a");
|
|
59
|
+
i0.ɵɵtext(4);
|
|
60
|
+
i0.ɵɵelementEnd()();
|
|
61
|
+
} if (rf & 2) {
|
|
62
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
63
|
+
i0.ɵɵclassMap(ctx_r0.detailRowClass());
|
|
64
|
+
i0.ɵɵadvance(3);
|
|
65
|
+
i0.ɵɵclassMap(ctx_r0.linkClass());
|
|
66
|
+
i0.ɵɵattribute("href", "tel:" + ctx_r0.contactPhone(), i0.ɵɵsanitizeUrl);
|
|
67
|
+
i0.ɵɵadvance();
|
|
68
|
+
i0.ɵɵtextInterpolate(ctx_r0.contactPhone());
|
|
69
|
+
} }
|
|
70
|
+
function ContactDisplay_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
71
|
+
i0.ɵɵelementStart(0, "div")(1, "span", 3);
|
|
72
|
+
i0.ɵɵtext(2, "\u2302");
|
|
73
|
+
i0.ɵɵelementEnd();
|
|
74
|
+
i0.ɵɵelementStart(3, "span");
|
|
75
|
+
i0.ɵɵtext(4);
|
|
76
|
+
i0.ɵɵelementContainer(5, 2);
|
|
77
|
+
i0.ɵɵelementEnd()();
|
|
78
|
+
} if (rf & 2) {
|
|
79
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
80
|
+
i0.ɵɵclassMap(ctx_r0.detailRowClass());
|
|
81
|
+
i0.ɵɵadvance(4);
|
|
82
|
+
i0.ɵɵtextInterpolate(ctx_r0.addressText);
|
|
83
|
+
i0.ɵɵadvance();
|
|
84
|
+
i0.ɵɵproperty("molContactNode", ctx_r0.addressTemplate());
|
|
85
|
+
} }
|
|
86
|
+
/**
|
|
87
|
+
* The text of a node-valued field (React renders a string, or a number, as
|
|
88
|
+
* text; a node renders through {@link ContactNodeOutlet} instead).
|
|
89
|
+
*
|
|
90
|
+
* @param value - The field value.
|
|
91
|
+
* @returns The text, or the empty string for a node or an absent value.
|
|
92
|
+
*/
|
|
93
|
+
function fieldText(value) {
|
|
94
|
+
if (typeof value === 'string')
|
|
95
|
+
return value;
|
|
96
|
+
if (typeof value === 'number')
|
|
97
|
+
return String(value);
|
|
98
|
+
return '';
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Renders a `TemplateRef` where the host `<ng-container>` sits.
|
|
102
|
+
*
|
|
103
|
+
* A node-valued field inside a data prop (`contact.role`) is a `TemplateRef`
|
|
104
|
+
* rather than projected content, so the component instantiates it here. Angular
|
|
105
|
+
* 22's own `NgTemplateOutlet` lives in `@angular/common`; this directive
|
|
106
|
+
* re-instantiates the view when the template changes and needs nothing else.
|
|
107
|
+
*
|
|
108
|
+
* Not exported: it is this package's internal rendering detail, and the
|
|
109
|
+
* package's public surface is exactly React's.
|
|
110
|
+
*/
|
|
111
|
+
class ContactNodeOutlet {
|
|
112
|
+
vcr = inject(ViewContainerRef);
|
|
113
|
+
current = null;
|
|
114
|
+
view;
|
|
115
|
+
/**
|
|
116
|
+
* The template to render (React's node value in template form).
|
|
117
|
+
*
|
|
118
|
+
* @param template - The template, or null/undefined to render nothing.
|
|
119
|
+
*/
|
|
120
|
+
set molContactNode(template) {
|
|
121
|
+
if (template === this.current)
|
|
122
|
+
return;
|
|
123
|
+
this.current = template ?? null;
|
|
124
|
+
this.view?.destroy();
|
|
125
|
+
this.view = undefined;
|
|
126
|
+
if (this.current)
|
|
127
|
+
this.view = this.vcr.createEmbeddedView(this.current, {});
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* The template currently rendered.
|
|
131
|
+
* @returns The template, or null.
|
|
132
|
+
*/
|
|
133
|
+
get molContactNode() {
|
|
134
|
+
return this.current;
|
|
135
|
+
}
|
|
136
|
+
static ɵfac = function ContactNodeOutlet_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ContactNodeOutlet)(); };
|
|
137
|
+
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: ContactNodeOutlet, selectors: [["", "molContactNode", ""]], inputs: { molContactNode: "molContactNode" } });
|
|
138
|
+
}
|
|
139
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContactNodeOutlet, [{
|
|
140
|
+
type: Directive,
|
|
141
|
+
args: [{
|
|
142
|
+
selector: '[molContactNode]',
|
|
143
|
+
standalone: true,
|
|
144
|
+
}]
|
|
145
|
+
}], null, { molContactNode: [{
|
|
146
|
+
type: Input
|
|
147
|
+
}] }); })();
|
|
148
|
+
/**
|
|
149
|
+
* ContactDisplay component.
|
|
150
|
+
*
|
|
151
|
+
* Formatted contact display — avatar + name + role + email/phone with leading
|
|
152
|
+
* glyphs + optional address and company. Three layouts for different
|
|
153
|
+
* densities. The host IS the root `<div>` (`div[mol-contact-display]`),
|
|
154
|
+
* matching React's root exactly. The optional right-side actions are projected
|
|
155
|
+
* (`[slot=actions]`); the node-valued `contact.role`, `contact.address` and
|
|
156
|
+
* `contact.company` arrive as `TemplateRef`s and render through
|
|
157
|
+
* {@link ContactNodeOutlet}, or as text. Same props, same DOM as
|
|
158
|
+
* `@molecule/app-contact-display-react`'s `ContactDisplay`.
|
|
159
|
+
*/
|
|
160
|
+
export class ContactDisplay {
|
|
161
|
+
/** The contact to display. */
|
|
162
|
+
contact;
|
|
163
|
+
/** Layout preset. Defaults to `'card'` at read time. */
|
|
164
|
+
layout;
|
|
165
|
+
/** Click handler on the row, called with the native click event. */
|
|
166
|
+
onClick;
|
|
167
|
+
/** Extra classes on the outer wrapper. */
|
|
168
|
+
className;
|
|
169
|
+
/**
|
|
170
|
+
* The current class map.
|
|
171
|
+
* @returns The UIClassMap.
|
|
172
|
+
*/
|
|
173
|
+
cm() {
|
|
174
|
+
return getClassMap();
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* The active layout (React's `layout = 'card'` default).
|
|
178
|
+
* @returns The layout.
|
|
179
|
+
*/
|
|
180
|
+
activeLayout() {
|
|
181
|
+
return this.layout ?? 'card';
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Whether the compact layout hides the contact details.
|
|
185
|
+
* @returns True for `layout: 'compact'`.
|
|
186
|
+
*/
|
|
187
|
+
isCompact() {
|
|
188
|
+
return this.activeLayout() === 'compact';
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* The contact's display name.
|
|
192
|
+
* @returns The name, or the empty string.
|
|
193
|
+
*/
|
|
194
|
+
contactName() {
|
|
195
|
+
return fieldText(this.contact?.name);
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* The contact's email address.
|
|
199
|
+
* @returns The email, or the empty string.
|
|
200
|
+
*/
|
|
201
|
+
contactEmail() {
|
|
202
|
+
return fieldText(this.contact?.email);
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* The contact's phone number.
|
|
206
|
+
* @returns The phone, or the empty string.
|
|
207
|
+
*/
|
|
208
|
+
contactPhone() {
|
|
209
|
+
return fieldText(this.contact?.phone);
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* The avatar image URL, when the contact has one.
|
|
213
|
+
* @returns The URL, or undefined.
|
|
214
|
+
*/
|
|
215
|
+
avatarSrc() {
|
|
216
|
+
return this.contact?.avatarSrc;
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* The avatar size preset for the layout.
|
|
220
|
+
* @returns `'sm'` in the compact layout, else `'md'`.
|
|
221
|
+
*/
|
|
222
|
+
avatarSize() {
|
|
223
|
+
return this.isCompact() ? 'sm' : 'md';
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Whether the role renders (React's `role && …` truthiness).
|
|
227
|
+
* @returns True for a node or non-empty text.
|
|
228
|
+
*/
|
|
229
|
+
hasRole() {
|
|
230
|
+
return Boolean(this.contact?.role);
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* Whether the company renders.
|
|
234
|
+
* @returns True for a node or non-empty text.
|
|
235
|
+
*/
|
|
236
|
+
hasCompany() {
|
|
237
|
+
return Boolean(this.contact?.company);
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* Whether the email line renders (React's `!isCompact && email`).
|
|
241
|
+
* @returns True when the email shows.
|
|
242
|
+
*/
|
|
243
|
+
showEmail() {
|
|
244
|
+
return !this.isCompact() && Boolean(this.contactEmail());
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Whether the phone line renders.
|
|
248
|
+
* @returns True when the phone shows.
|
|
249
|
+
*/
|
|
250
|
+
showPhone() {
|
|
251
|
+
return !this.isCompact() && Boolean(this.contactPhone());
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* Whether the address line renders.
|
|
255
|
+
* @returns True when the address shows.
|
|
256
|
+
*/
|
|
257
|
+
showAddress() {
|
|
258
|
+
return !this.isCompact() && Boolean(this.contact?.address);
|
|
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() {
|
|
265
|
+
return asTemplate(this.contact?.role);
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* The role's text (React renders a string role as text).
|
|
269
|
+
* @returns The text, or the empty string for a node or an absent role.
|
|
270
|
+
*/
|
|
271
|
+
get roleText() {
|
|
272
|
+
return fieldText(this.contact?.role);
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* The company as a template, when the caller passed a node.
|
|
276
|
+
* @returns The template, or null for text or an absent company.
|
|
277
|
+
*/
|
|
278
|
+
companyTemplate() {
|
|
279
|
+
return asTemplate(this.contact?.company);
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* The company's text.
|
|
283
|
+
* @returns The text, or the empty string for a node or an absent company.
|
|
284
|
+
*/
|
|
285
|
+
get companyText() {
|
|
286
|
+
return fieldText(this.contact?.company);
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* The address as a template, when the caller passed a node.
|
|
290
|
+
* @returns The template, or null for text or an absent address.
|
|
291
|
+
*/
|
|
292
|
+
addressTemplate() {
|
|
293
|
+
return asTemplate(this.contact?.address);
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* The address's text.
|
|
297
|
+
* @returns The text, or the empty string for a node or an absent address.
|
|
298
|
+
*/
|
|
299
|
+
get addressText() {
|
|
300
|
+
return fieldText(this.contact?.address);
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* Computes the root class list (`cm.flex(…)` + `cm.cursorPointer` only when
|
|
304
|
+
* clickable + `className`).
|
|
305
|
+
* @returns The class string.
|
|
306
|
+
*/
|
|
307
|
+
classes() {
|
|
308
|
+
return this.cm().cn(this.cm().flex({
|
|
309
|
+
align: this.activeLayout() === 'card' ? 'start' : 'center',
|
|
310
|
+
gap: this.isCompact() ? 'sm' : 'md',
|
|
311
|
+
direction: this.activeLayout() === 'card' ? 'col' : 'row',
|
|
312
|
+
}), this.onClick ? this.cm().cursorPointer : undefined, this.className);
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
* The avatar wrapper's class (`cm.shrink0`).
|
|
316
|
+
* @returns The class string.
|
|
317
|
+
*/
|
|
318
|
+
avatarWrapClass() {
|
|
319
|
+
return this.cm().cn(this.cm().shrink0);
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* The avatar column's class (`cm.flex1` + `cm.stack(1)`).
|
|
323
|
+
* @returns The class string.
|
|
324
|
+
*/
|
|
325
|
+
detailWrapClass() {
|
|
326
|
+
return this.cm().cn(this.cm().flex1, this.cm().stack(1));
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* The name line's class (`cm.flex({ align: 'baseline', gap: 'sm' })`).
|
|
330
|
+
* @returns The class string.
|
|
331
|
+
*/
|
|
332
|
+
nameRowClass() {
|
|
333
|
+
return this.cm().flex({ align: 'baseline', gap: 'sm' });
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
336
|
+
* The name span's class (size by layout + semibold).
|
|
337
|
+
* @returns The class string.
|
|
338
|
+
*/
|
|
339
|
+
nameClass() {
|
|
340
|
+
return this.cm().cn(this.cm().textSize(this.isCompact() ? 'sm' : 'base'), this.cm().fontWeight('semibold'));
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* The role span's class (`cm.textSize('xs')`).
|
|
344
|
+
* @returns The class string.
|
|
345
|
+
*/
|
|
346
|
+
roleClass() {
|
|
347
|
+
return this.cm().textSize('xs');
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* The company line's class (`cm.textSize('sm')`).
|
|
351
|
+
* @returns The class string.
|
|
352
|
+
*/
|
|
353
|
+
companyClass() {
|
|
354
|
+
return this.cm().textSize('sm');
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* One detail line's class (`cm.flex({ align: 'center', gap: 'xs' })` +
|
|
358
|
+
* `cm.textSize('sm')`).
|
|
359
|
+
* @returns The class string.
|
|
360
|
+
*/
|
|
361
|
+
detailRowClass() {
|
|
362
|
+
return this.cm().cn(this.cm().flex({ align: 'center', gap: 'xs' }), this.cm().textSize('sm'));
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* The mailto/tel link's class (`cm.link`).
|
|
366
|
+
* @returns The class string.
|
|
367
|
+
*/
|
|
368
|
+
linkClass() {
|
|
369
|
+
return this.cm().cn(this.cm().link);
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
* Runs the click handler the way React forwards the DOM event.
|
|
373
|
+
* @param event - The native click event.
|
|
374
|
+
*/
|
|
375
|
+
handleClick(event) {
|
|
376
|
+
this.onClick?.(event);
|
|
377
|
+
}
|
|
378
|
+
static ɵfac = function ContactDisplay_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ContactDisplay)(); };
|
|
379
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ContactDisplay, selectors: [["div", "mol-contact-display", ""]], hostVars: 2, hostBindings: function ContactDisplay_HostBindings(rf, ctx) { if (rf & 1) {
|
|
380
|
+
i0.ɵɵlistener("click", function ContactDisplay_click_HostBindingHandler($event) { return ctx.handleClick($event); });
|
|
381
|
+
} if (rf & 2) {
|
|
382
|
+
i0.ɵɵclassMap(ctx.classes());
|
|
383
|
+
} }, inputs: { contact: "contact", layout: "layout", onClick: "onClick", className: "className" }, ngContentSelectors: _c1, decls: 12, vars: 18, consts: [["mol-avatar", "", 3, "src", "alt", "name", "size"], [3, "class"], [3, "molContactNode"], ["aria-hidden", "true"]], template: function ContactDisplay_Template(rf, ctx) { if (rf & 1) {
|
|
384
|
+
i0.ɵɵprojectionDef(_c0);
|
|
385
|
+
i0.ɵɵelementStart(0, "div");
|
|
386
|
+
i0.ɵɵelement(1, "div", 0);
|
|
387
|
+
i0.ɵɵelementEnd();
|
|
388
|
+
i0.ɵɵelementStart(2, "div")(3, "div")(4, "span");
|
|
389
|
+
i0.ɵɵtext(5);
|
|
390
|
+
i0.ɵɵelementEnd();
|
|
391
|
+
i0.ɵɵconditionalCreate(6, ContactDisplay_Conditional_6_Template, 3, 4, "span", 1);
|
|
392
|
+
i0.ɵɵelementEnd();
|
|
393
|
+
i0.ɵɵconditionalCreate(7, ContactDisplay_Conditional_7_Template, 3, 4, "div", 1);
|
|
394
|
+
i0.ɵɵconditionalCreate(8, ContactDisplay_Conditional_8_Template, 5, 6, "div", 1);
|
|
395
|
+
i0.ɵɵconditionalCreate(9, ContactDisplay_Conditional_9_Template, 5, 6, "div", 1);
|
|
396
|
+
i0.ɵɵconditionalCreate(10, ContactDisplay_Conditional_10_Template, 6, 4, "div", 1);
|
|
397
|
+
i0.ɵɵelementEnd();
|
|
398
|
+
i0.ɵɵprojection(11);
|
|
399
|
+
} if (rf & 2) {
|
|
400
|
+
i0.ɵɵclassMap(ctx.avatarWrapClass());
|
|
401
|
+
i0.ɵɵadvance();
|
|
402
|
+
i0.ɵɵproperty("src", ctx.avatarSrc())("alt", ctx.contactName())("name", ctx.contactName())("size", ctx.avatarSize());
|
|
403
|
+
i0.ɵɵadvance();
|
|
404
|
+
i0.ɵɵclassMap(ctx.detailWrapClass());
|
|
405
|
+
i0.ɵɵadvance();
|
|
406
|
+
i0.ɵɵclassMap(ctx.nameRowClass());
|
|
407
|
+
i0.ɵɵadvance();
|
|
408
|
+
i0.ɵɵclassMap(ctx.nameClass());
|
|
409
|
+
i0.ɵɵadvance();
|
|
410
|
+
i0.ɵɵtextInterpolate(ctx.contactName());
|
|
411
|
+
i0.ɵɵadvance();
|
|
412
|
+
i0.ɵɵconditional(ctx.hasRole() ? 6 : -1);
|
|
413
|
+
i0.ɵɵadvance();
|
|
414
|
+
i0.ɵɵconditional(ctx.hasCompany() ? 7 : -1);
|
|
415
|
+
i0.ɵɵadvance();
|
|
416
|
+
i0.ɵɵconditional(ctx.showEmail() ? 8 : -1);
|
|
417
|
+
i0.ɵɵadvance();
|
|
418
|
+
i0.ɵɵconditional(ctx.showPhone() ? 9 : -1);
|
|
419
|
+
i0.ɵɵadvance();
|
|
420
|
+
i0.ɵɵconditional(ctx.showAddress() ? 10 : -1);
|
|
421
|
+
} }, dependencies: [Avatar, ContactNodeOutlet], encapsulation: 2 });
|
|
422
|
+
}
|
|
423
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContactDisplay, [{
|
|
424
|
+
type: Component,
|
|
425
|
+
args: [{
|
|
426
|
+
selector: 'div[mol-contact-display]',
|
|
427
|
+
standalone: true,
|
|
428
|
+
imports: [Avatar, ContactNodeOutlet],
|
|
429
|
+
inputs: ['contact', 'layout', 'onClick', 'className'],
|
|
430
|
+
host: {
|
|
431
|
+
'[class]': 'classes()',
|
|
432
|
+
'(click)': 'handleClick($event)',
|
|
433
|
+
},
|
|
434
|
+
// prettier-ignore
|
|
435
|
+
template: `<div [class]="avatarWrapClass()"><div mol-avatar [src]="avatarSrc()" [alt]="contactName()" [name]="contactName()" [size]="avatarSize()"></div></div>
|
|
436
|
+
<div [class]="detailWrapClass()">
|
|
437
|
+
<div [class]="nameRowClass()"><span [class]="nameClass()">{{ contactName() }}</span>@if (hasRole()) {<span [class]="roleClass()">{{ roleText }}<ng-container [molContactNode]="roleTemplate()"></ng-container></span>}</div>
|
|
438
|
+
@if (hasCompany()) {<div [class]="companyClass()">{{ companyText }}<ng-container [molContactNode]="companyTemplate()"></ng-container></div>}
|
|
439
|
+
@if (showEmail()) {<div [class]="detailRowClass()"><span aria-hidden="true">✉</span><a [attr.href]="'mailto:' + contactEmail()" [class]="linkClass()">{{ contactEmail() }}</a></div>}
|
|
440
|
+
@if (showPhone()) {<div [class]="detailRowClass()"><span aria-hidden="true">☎</span><a [attr.href]="'tel:' + contactPhone()" [class]="linkClass()">{{ contactPhone() }}</a></div>}
|
|
441
|
+
@if (showAddress()) {<div [class]="detailRowClass()"><span aria-hidden="true">⌂</span><span>{{ addressText }}<ng-container [molContactNode]="addressTemplate()"></ng-container></span></div>}
|
|
442
|
+
</div><ng-content select="[slot=actions]"></ng-content>`,
|
|
443
|
+
}]
|
|
444
|
+
}], null, null); })();
|
|
445
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ContactDisplay, { className: "ContactDisplay", filePath: "contact-display.component.ts", lineNumber: 109 }); })();
|
|
446
|
+
//# sourceMappingURL=contact-display.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contact-display.component.js","sourceRoot":"","sources":["../src/contact-display.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,SAAS,EACT,SAAS,EAET,MAAM,EACN,KAAK,EAEL,gBAAgB,GACjB,MAAM,eAAe,CAAA;AAGtB,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAA;;;;;IAmF8C,4BAA4B;IAAA,YAAc;IAAA,2BAA+D;IAAA,iBAAO;;;IAA1G,iCAAqB;IAAC,cAAc;IAAd,qCAAc;IAAc,cAAiC;IAAjC,sDAAiC;;;IAC1K,2BAA8B;IAAA,YAAiB;IAAA,2BAAkE;IAAA,iBAAM;;;IAAlH,oCAAwB;IAAC,cAAiB;IAAjB,wCAAiB;IAAc,cAAoC;IAApC,yDAAoC;;;IAClE,AAAhC,2BAAgC,cAAyB;IAAA,sBAAC;IAAA,iBAAO;IAAA,yBAAkE;IAAA,YAAoB;IAAI,AAAJ,iBAAI,EAAM;;;IAA5J,sCAA0B;IAA8E,eAAqB;IAArB,iCAAqB;;IAAC,cAAoB;IAApB,2CAAoB;;;IACvH,AAAhC,2BAAgC,cAAyB;IAAA,sBAAC;IAAA,iBAAO;IAAA,yBAA+D;IAAA,YAAoB;IAAI,AAAJ,iBAAI,EAAM;;;IAAzJ,sCAA0B;IAA2E,eAAqB;IAArB,iCAAqB;;IAAC,cAAoB;IAApB,2CAAoB;;;IAClH,AAAhC,2BAAgC,cAAyB;IAAA,sBAA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