@molecule/app-list-item-row-angular 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +75 -36
- package/dist/index.d.ts +16 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -9
- package/dist/index.js.map +1 -1
- package/dist/list-item-row.component.d.ts +49 -23
- package/dist/list-item-row.component.d.ts.map +1 -1
- package/dist/list-item-row.component.js +131 -74
- package/dist/list-item-row.component.js.map +1 -1
- package/dist/types.d.ts +8 -3
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
|
|
|
3
3
|
Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
|
|
4
4
|
Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
|
|
5
5
|
To change this document, edit the module-level JSDoc in src/index.ts.
|
|
6
|
-
Generated: 2026-11-
|
|
6
|
+
Generated: 2026-11-17T04:21:39.265Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/app-list-item-row-angular
|
|
@@ -41,13 +41,17 @@ import { ListItemRow } from '@molecule/app-list-item-row-angular'
|
|
|
41
41
|
subtitle="Last edited 2 hours ago"
|
|
42
42
|
metadata="3 collaborators · 12 files"
|
|
43
43
|
[selected]="true"
|
|
44
|
-
|
|
44
|
+
[onClick]="openProject"
|
|
45
45
|
>
|
|
46
46
|
<img slot="leading" src="/icons/folder.svg" alt="" width="32" height="32" />
|
|
47
47
|
</div>
|
|
48
48
|
`,
|
|
49
49
|
})
|
|
50
|
-
export class ProjectList {
|
|
50
|
+
export class ProjectList {
|
|
51
|
+
openProject(): void {
|
|
52
|
+
// navigate('/projects/alpha')
|
|
53
|
+
}
|
|
54
|
+
}
|
|
51
55
|
```
|
|
52
56
|
|
|
53
57
|
## Type
|
|
@@ -80,9 +84,14 @@ interface ListItemRowProps {
|
|
|
80
84
|
leading?: string | number
|
|
81
85
|
/** Optional right-side actions (buttons, action menu; `[slot=actions]` content, or text). */
|
|
82
86
|
actions?: string | number
|
|
83
|
-
/**
|
|
84
|
-
|
|
85
|
-
|
|
87
|
+
/**
|
|
88
|
+
* Called when the row is activated (called bare, the way React forwards the
|
|
89
|
+
* open button's click). The whole row is clickable through a transparent
|
|
90
|
+
* native button over it, named by the title; the inner controls (the
|
|
91
|
+
* `actions` slot) sit above it and keep their own clicks.
|
|
92
|
+
*/
|
|
93
|
+
onClick?: () => void
|
|
94
|
+
/** When true, sets `aria-current="true"` on the row — no built-in visual highlight; style it via `className` or host CSS. */
|
|
86
95
|
selected?: boolean
|
|
87
96
|
/** When true, renders in a disabled visual state. */
|
|
88
97
|
disabled?: boolean
|
|
@@ -105,13 +114,21 @@ bookmark lists, etc. The host IS the root `<div>` (`div[mol-list-item-row]`),
|
|
|
105
114
|
matching React's root exactly; the disabled row's dimmed opacity is applied
|
|
106
115
|
inline through a host style binding (the CSSOM, as react-dom does).
|
|
107
116
|
|
|
117
|
+
The row's open action lives on a native open button — an empty, transparent
|
|
118
|
+
`<button type="button">` stretched over the whole row
|
|
119
|
+
(`data-mol-id="list-item-row-open"`, `aria-labelledby` the title), the way
|
|
120
|
+
React renders it while the row has an `onClick`; Enter / Space on it run the
|
|
121
|
+
same handler mouse clicks run. An `@if` in the template puts it in the DOM
|
|
122
|
+
only while the row has an `onClick` (React renders no button at all
|
|
123
|
+
otherwise), and the actions wrapper sits above it and keeps its own clicks.
|
|
124
|
+
The projected body renders directly in the host, so the wrappers never move.
|
|
125
|
+
|
|
108
126
|
The node props are projected slots: `title` renders inside the title line,
|
|
109
127
|
`subtitle` inside its line, `metadata` inside its line, `leading` inside the
|
|
110
|
-
leading `<div>` and `actions` inside the right-side `<div
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
reconcile against that in {@link ListItemRow.ngAfterViewInit}.
|
|
128
|
+
leading `<div>` and `actions` inside the right-side `<div>`. String inputs
|
|
129
|
+
render as text instead — React's truthiness branch applies: an empty string
|
|
130
|
+
renders nothing. The conditionally-rendered wrappers reconcile against that
|
|
131
|
+
in {@link ListItemRow.ngAfterViewInit}.
|
|
115
132
|
|
|
116
133
|
```typescript
|
|
117
134
|
@Component({
|
|
@@ -131,21 +148,29 @@ reconcile against that in {@link ListItemRow.ngAfterViewInit}.
|
|
|
131
148
|
],
|
|
132
149
|
host: {
|
|
133
150
|
'[class]': 'classes()',
|
|
134
|
-
'[attr.
|
|
135
|
-
'[attr.tabindex]': 'this.clickable() ? 0 : null',
|
|
136
|
-
'[attr.aria-selected]': 'this.selected ?? null',
|
|
151
|
+
'[attr.aria-current]': 'this.selected ? "true" : null',
|
|
137
152
|
'[attr.aria-disabled]': 'this.disabled ?? null',
|
|
138
153
|
'[style.opacity]': 'this.disabled ? 0.5 : null',
|
|
139
|
-
'(click)': 'handleClick($event)',
|
|
140
154
|
},
|
|
141
|
-
template:
|
|
155
|
+
template: `@if (onClick) {
|
|
156
|
+
<button
|
|
157
|
+
type="button"
|
|
158
|
+
[attr.aria-labelledby]="nameId"
|
|
159
|
+
[attr.disabled]="disabled ? '' : null"
|
|
160
|
+
data-mol-id="list-item-row-open"
|
|
161
|
+
(click)="handleClick()"
|
|
162
|
+
[class]="openButtonClasses()"
|
|
163
|
+
style="background: transparent; border: medium; padding: 0px"
|
|
164
|
+
></button>
|
|
165
|
+
}
|
|
166
|
+
<div #leadingWrap [class]="leadingClass()">
|
|
142
167
|
@if (leadingText()) {
|
|
143
168
|
{{ leadingText() }}
|
|
144
169
|
}
|
|
145
170
|
<ng-content select="[slot=leading]"></ng-content>
|
|
146
171
|
</div>
|
|
147
172
|
<div [class]="stackClass()">
|
|
148
|
-
<div [class]="titleClass()">
|
|
173
|
+
<div [attr.id]="onClick ? nameId : null" [class]="titleClass()">
|
|
149
174
|
@if (titleText()) {
|
|
150
175
|
{{ titleText() }}
|
|
151
176
|
}
|
|
@@ -164,7 +189,10 @@ reconcile against that in {@link ListItemRow.ngAfterViewInit}.
|
|
|
164
189
|
<ng-content select="[slot=metadata]"></ng-content>
|
|
165
190
|
</div>
|
|
166
191
|
</div>
|
|
167
|
-
<div #actionsWrap [class]="actionsClass()"
|
|
192
|
+
<div #actionsWrap [class]="actionsClass()">
|
|
193
|
+
@if (actionsText()) {
|
|
194
|
+
{{ actionsText() }}
|
|
195
|
+
}
|
|
168
196
|
<ng-content select="[slot=actions]"></ng-content>
|
|
169
197
|
</div>`,
|
|
170
198
|
})
|
|
@@ -174,12 +202,16 @@ export class ListItemRow implements AfterViewInit, AfterViewChecked {
|
|
|
174
202
|
metadata?: unknown
|
|
175
203
|
leading?: unknown
|
|
176
204
|
actions?: unknown
|
|
177
|
-
onClick?: (
|
|
205
|
+
onClick?: () => void
|
|
178
206
|
selected?: boolean
|
|
179
207
|
disabled?: boolean
|
|
180
208
|
density?: 'comfortable' | 'compact'
|
|
181
209
|
className?: string
|
|
182
210
|
|
|
211
|
+
private static nextNameId = 0
|
|
212
|
+
|
|
213
|
+
readonly nameId = `list-item-row-title-${ListItemRow.nextNameId++}`
|
|
214
|
+
|
|
183
215
|
@ViewChild('leadingWrap') leadingWrap?: ElementRef<HTMLElement>
|
|
184
216
|
@ViewChild('subtitleWrap') subtitleWrap?: ElementRef<HTMLElement>
|
|
185
217
|
@ViewChild('metadataWrap') metadataWrap?: ElementRef<HTMLElement>
|
|
@@ -202,11 +234,19 @@ export class ListItemRow implements AfterViewInit, AfterViewChecked {
|
|
|
202
234
|
this.cm().flex({ align: 'center', gap: 'sm' }),
|
|
203
235
|
this.cm().sp('px', 3),
|
|
204
236
|
this.cm().sp('py', this.padY()),
|
|
205
|
-
this.
|
|
237
|
+
this.hasOpenAction() ? this.cm().position('relative') : undefined,
|
|
206
238
|
this.className,
|
|
207
239
|
)
|
|
208
240
|
}
|
|
209
241
|
|
|
242
|
+
openButtonClasses(): string {
|
|
243
|
+
return this.cm().cn(
|
|
244
|
+
this.cm().position('absolute'),
|
|
245
|
+
this.cm().inset0,
|
|
246
|
+
this.disabled ? undefined : this.cm().cursorPointer,
|
|
247
|
+
)
|
|
248
|
+
}
|
|
249
|
+
|
|
210
250
|
stackClass(): string {
|
|
211
251
|
return this.cm().cn(this.cm().flex1, this.cm().stack(0))
|
|
212
252
|
}
|
|
@@ -224,15 +264,15 @@ export class ListItemRow implements AfterViewInit, AfterViewChecked {
|
|
|
224
264
|
}
|
|
225
265
|
|
|
226
266
|
actionsClass(): string {
|
|
227
|
-
return this.cm().cn(this.cm().shrink0)
|
|
267
|
+
return this.cm().cn(this.cm().shrink0, this.cm().position('relative'))
|
|
228
268
|
}
|
|
229
269
|
|
|
230
270
|
titleClass(): string {
|
|
231
271
|
return this.cm().cn(this.cm().textSize('sm'), this.cm().fontWeight('semibold'))
|
|
232
272
|
}
|
|
233
273
|
|
|
234
|
-
|
|
235
|
-
return Boolean(this.onClick)
|
|
274
|
+
hasOpenAction(): boolean {
|
|
275
|
+
return Boolean(this.onClick)
|
|
236
276
|
}
|
|
237
277
|
|
|
238
278
|
padY(): 2 | 3 {
|
|
@@ -269,13 +309,9 @@ export class ListItemRow implements AfterViewInit, AfterViewChecked {
|
|
|
269
309
|
: ''
|
|
270
310
|
}
|
|
271
311
|
|
|
272
|
-
handleClick(
|
|
312
|
+
handleClick(): void {
|
|
273
313
|
if (this.disabled) return
|
|
274
|
-
this.onClick?.(
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
stopPropagation(event: Event): void {
|
|
278
|
-
event.stopPropagation()
|
|
314
|
+
this.onClick?.()
|
|
279
315
|
}
|
|
280
316
|
|
|
281
317
|
ngAfterViewInit(): void {
|
|
@@ -331,13 +367,16 @@ Peer dependencies:
|
|
|
331
367
|
- `@molecule/app-ui`
|
|
332
368
|
- `@molecule/app-ui-angular`
|
|
333
369
|
|
|
334
|
-
- `selected` only sets the `aria-
|
|
335
|
-
Pass a highlight class via `className` (or target
|
|
336
|
-
host CSS) to make selection visible.
|
|
337
|
-
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
`
|
|
370
|
+
- `selected` only sets the `aria-current="true"` attribute — no built-in
|
|
371
|
+
highlight. Pass a highlight class via `className` (or target
|
|
372
|
+
`[aria-current="true"]` in host CSS) to make selection visible.
|
|
373
|
+
- With `onClick` the whole row is clickable through a transparent native
|
|
374
|
+
button over it, named by the title (`aria-labelledby`); Enter / Space on
|
|
375
|
+
that button run the same handler a click anywhere on the row runs, and the
|
|
376
|
+
inner controls (the `actions` slot) sit above the button and keep their
|
|
377
|
+
own clicks.
|
|
378
|
+
- `disabled` halves the opacity and disables the open button (no pointer
|
|
379
|
+
cursor, no activation); there is no `data-mol-id` input.
|
|
341
380
|
- Styling resolves through `getClassMap()` — wire a ClassMap bond first.
|
|
342
381
|
- The host element IS React's root `<div>` (`div[mol-list-item-row]`); node
|
|
343
382
|
props are projected slots (`[slot=title]`, `[slot=leading]`, …), and string
|
package/dist/index.d.ts
CHANGED
|
@@ -26,22 +26,29 @@
|
|
|
26
26
|
* subtitle="Last edited 2 hours ago"
|
|
27
27
|
* metadata="3 collaborators · 12 files"
|
|
28
28
|
* [selected]="true"
|
|
29
|
-
*
|
|
29
|
+
* [onClick]="openProject">
|
|
30
30
|
* <img slot="leading" src="/icons/folder.svg" alt="" width="32" height="32" />
|
|
31
31
|
* </div>
|
|
32
32
|
* `,
|
|
33
33
|
* })
|
|
34
|
-
* export class ProjectList {
|
|
34
|
+
* export class ProjectList {
|
|
35
|
+
* openProject(): void {
|
|
36
|
+
* // navigate('/projects/alpha')
|
|
37
|
+
* }
|
|
38
|
+
* }
|
|
35
39
|
* ```
|
|
36
40
|
*
|
|
37
41
|
* @remarks
|
|
38
|
-
* - `selected` only sets the `aria-
|
|
39
|
-
* Pass a highlight class via `className` (or target
|
|
40
|
-
* host CSS) to make selection visible.
|
|
41
|
-
* -
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
* `
|
|
42
|
+
* - `selected` only sets the `aria-current="true"` attribute — no built-in
|
|
43
|
+
* highlight. Pass a highlight class via `className` (or target
|
|
44
|
+
* `[aria-current="true"]` in host CSS) to make selection visible.
|
|
45
|
+
* - With `onClick` the whole row is clickable through a transparent native
|
|
46
|
+
* button over it, named by the title (`aria-labelledby`); Enter / Space on
|
|
47
|
+
* that button run the same handler a click anywhere on the row runs, and the
|
|
48
|
+
* inner controls (the `actions` slot) sit above the button and keep their
|
|
49
|
+
* own clicks.
|
|
50
|
+
* - `disabled` halves the opacity and disables the open button (no pointer
|
|
51
|
+
* cursor, no activation); there is no `data-mol-id` input.
|
|
45
52
|
* - Styling resolves through `getClassMap()` — wire a ClassMap bond first.
|
|
46
53
|
* - The host element IS React's root `<div>` (`div[mol-list-item-row]`); node
|
|
47
54
|
* props are projected slots (`[slot=title]`, `[slot=leading]`, …), and string
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AAEH,cAAc,8BAA8B,CAAA;AAC5C,cAAc,YAAY,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -26,22 +26,29 @@
|
|
|
26
26
|
* subtitle="Last edited 2 hours ago"
|
|
27
27
|
* metadata="3 collaborators · 12 files"
|
|
28
28
|
* [selected]="true"
|
|
29
|
-
*
|
|
29
|
+
* [onClick]="openProject">
|
|
30
30
|
* <img slot="leading" src="/icons/folder.svg" alt="" width="32" height="32" />
|
|
31
31
|
* </div>
|
|
32
32
|
* `,
|
|
33
33
|
* })
|
|
34
|
-
* export class ProjectList {
|
|
34
|
+
* export class ProjectList {
|
|
35
|
+
* openProject(): void {
|
|
36
|
+
* // navigate('/projects/alpha')
|
|
37
|
+
* }
|
|
38
|
+
* }
|
|
35
39
|
* ```
|
|
36
40
|
*
|
|
37
41
|
* @remarks
|
|
38
|
-
* - `selected` only sets the `aria-
|
|
39
|
-
* Pass a highlight class via `className` (or target
|
|
40
|
-
* host CSS) to make selection visible.
|
|
41
|
-
* -
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
* `
|
|
42
|
+
* - `selected` only sets the `aria-current="true"` attribute — no built-in
|
|
43
|
+
* highlight. Pass a highlight class via `className` (or target
|
|
44
|
+
* `[aria-current="true"]` in host CSS) to make selection visible.
|
|
45
|
+
* - With `onClick` the whole row is clickable through a transparent native
|
|
46
|
+
* button over it, named by the title (`aria-labelledby`); Enter / Space on
|
|
47
|
+
* that button run the same handler a click anywhere on the row runs, and the
|
|
48
|
+
* inner controls (the `actions` slot) sit above the button and keep their
|
|
49
|
+
* own clicks.
|
|
50
|
+
* - `disabled` halves the opacity and disables the open button (no pointer
|
|
51
|
+
* cursor, no activation); there is no `data-mol-id` input.
|
|
45
52
|
* - Styling resolves through `getClassMap()` — wire a ClassMap bond first.
|
|
46
53
|
* - The host element IS React's root `<div>` (`div[mol-list-item-row]`); node
|
|
47
54
|
* props are projected slots (`[slot=title]`, `[slot=leading]`, …), and string
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AAEH,cAAc,8BAA8B,CAAA;AAC5C,cAAc,YAAY,CAAA"}
|
|
@@ -15,13 +15,21 @@ import * as i0 from "@angular/core";
|
|
|
15
15
|
* matching React's root exactly; the disabled row's dimmed opacity is applied
|
|
16
16
|
* inline through a host style binding (the CSSOM, as react-dom does).
|
|
17
17
|
*
|
|
18
|
+
* The row's open action lives on a native open button — an empty, transparent
|
|
19
|
+
* `<button type="button">` stretched over the whole row
|
|
20
|
+
* (`data-mol-id="list-item-row-open"`, `aria-labelledby` the title), the way
|
|
21
|
+
* React renders it while the row has an `onClick`; Enter / Space on it run the
|
|
22
|
+
* same handler mouse clicks run. An `@if` in the template puts it in the DOM
|
|
23
|
+
* only while the row has an `onClick` (React renders no button at all
|
|
24
|
+
* otherwise), and the actions wrapper sits above it and keeps its own clicks.
|
|
25
|
+
* The projected body renders directly in the host, so the wrappers never move.
|
|
26
|
+
*
|
|
18
27
|
* The node props are projected slots: `title` renders inside the title line,
|
|
19
28
|
* `subtitle` inside its line, `metadata` inside its line, `leading` inside the
|
|
20
|
-
* leading `<div>` and `actions` inside the right-side `<div
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* reconcile against that in {@link ListItemRow.ngAfterViewInit}.
|
|
29
|
+
* leading `<div>` and `actions` inside the right-side `<div>`. String inputs
|
|
30
|
+
* render as text instead — React's truthiness branch applies: an empty string
|
|
31
|
+
* renders nothing. The conditionally-rendered wrappers reconcile against that
|
|
32
|
+
* in {@link ListItemRow.ngAfterViewInit}.
|
|
25
33
|
*/
|
|
26
34
|
export declare class ListItemRow implements AfterViewInit, AfterViewChecked {
|
|
27
35
|
/** Title — first line (string/number renders as text; nodes are `[slot=title]` content). */
|
|
@@ -34,16 +42,24 @@ export declare class ListItemRow implements AfterViewInit, AfterViewChecked {
|
|
|
34
42
|
leading?: unknown;
|
|
35
43
|
/** Optional right-side actions (`[slot=actions]` content, or text). */
|
|
36
44
|
actions?: unknown;
|
|
37
|
-
/**
|
|
38
|
-
|
|
39
|
-
|
|
45
|
+
/**
|
|
46
|
+
* Called when the row is activated (React's `onClick`, called bare). The
|
|
47
|
+
* whole row is clickable through a transparent native button over it, named
|
|
48
|
+
* by the title; the inner controls sit above it and keep their own clicks.
|
|
49
|
+
*/
|
|
50
|
+
onClick?: () => void;
|
|
51
|
+
/** When true, sets `aria-current="true"` on the row — no built-in visual highlight. */
|
|
40
52
|
selected?: boolean;
|
|
41
|
-
/** When true, renders in a disabled visual state and
|
|
53
|
+
/** When true, renders in a disabled visual state and disables the open button. */
|
|
42
54
|
disabled?: boolean;
|
|
43
55
|
/** Dense vs comfortable spacing. Defaults to `'comfortable'` at read time. */
|
|
44
56
|
density?: 'comfortable' | 'compact';
|
|
45
57
|
/** Extra classes. */
|
|
46
58
|
className?: string;
|
|
59
|
+
/** Next value of the module-wide instance counter (React `useId()`'s counterpart). */
|
|
60
|
+
private static nextNameId;
|
|
61
|
+
/** The title line's id — the open button's `aria-labelledby` (React's `useId`). */
|
|
62
|
+
readonly nameId: string;
|
|
47
63
|
/** The leading wrapper (detached when no leading value and the slot is empty). */
|
|
48
64
|
leadingWrap?: ElementRef<HTMLElement>;
|
|
49
65
|
/** The subtitle line (detached when no subtitle value and the slot is empty). */
|
|
@@ -70,11 +86,19 @@ export declare class ListItemRow implements AfterViewInit, AfterViewChecked {
|
|
|
70
86
|
cm(): UIClassMap;
|
|
71
87
|
/**
|
|
72
88
|
* Computes the row's class list (`cm.flex({ align: 'center', gap: 'sm' })` +
|
|
73
|
-
* `cm.sp('px', 3)` + `cm.sp('py', padY)` + `
|
|
74
|
-
*
|
|
89
|
+
* `cm.sp('px', 3)` + `cm.sp('py', padY)` + `className` — plus
|
|
90
|
+
* `cm.position('relative')` while the row has an `onClick`, so the absolute
|
|
91
|
+
* open button anchors to the row like React's).
|
|
75
92
|
* @returns The class string.
|
|
76
93
|
*/
|
|
77
94
|
classes(): string;
|
|
95
|
+
/**
|
|
96
|
+
* Computes the open button's class (`cm.position('absolute')` + `cm.inset0`,
|
|
97
|
+
* plus `cm.cursorPointer` unless the row is disabled — the whole row is the
|
|
98
|
+
* hit area).
|
|
99
|
+
* @returns The class string.
|
|
100
|
+
*/
|
|
101
|
+
openButtonClasses(): string;
|
|
78
102
|
/**
|
|
79
103
|
* Computes the middle stack's class (`cm.flex1` + `cm.stack(0)`).
|
|
80
104
|
* @returns The class string.
|
|
@@ -96,7 +120,8 @@ export declare class ListItemRow implements AfterViewInit, AfterViewChecked {
|
|
|
96
120
|
*/
|
|
97
121
|
metadataClass(): string;
|
|
98
122
|
/**
|
|
99
|
-
* The actions wrapper's class (`cm.shrink0`)
|
|
123
|
+
* The actions wrapper's class (`cm.shrink0` + `cm.position('relative')` —
|
|
124
|
+
* the actions sit above the open button and keep their own clicks).
|
|
100
125
|
* @returns The class string.
|
|
101
126
|
*/
|
|
102
127
|
actionsClass(): string;
|
|
@@ -106,11 +131,12 @@ export declare class ListItemRow implements AfterViewInit, AfterViewChecked {
|
|
|
106
131
|
*/
|
|
107
132
|
titleClass(): string;
|
|
108
133
|
/**
|
|
109
|
-
* Whether the row
|
|
110
|
-
* `
|
|
111
|
-
*
|
|
134
|
+
* Whether the row has an open action: an `onClick` (React renders the open
|
|
135
|
+
* button and the root's `position: relative` while it does — `disabled`
|
|
136
|
+
* only disables the button, it does not remove it).
|
|
137
|
+
* @returns True when the row renders the open button.
|
|
112
138
|
*/
|
|
113
|
-
|
|
139
|
+
hasOpenAction(): boolean;
|
|
114
140
|
/**
|
|
115
141
|
* The vertical padding token argument (`2` for `'compact'`, else `3` —
|
|
116
142
|
* React's default parameter).
|
|
@@ -143,19 +169,19 @@ export declare class ListItemRow implements AfterViewInit, AfterViewChecked {
|
|
|
143
169
|
* @returns The text, or `''` for a node value.
|
|
144
170
|
*/
|
|
145
171
|
actionsText(): string;
|
|
146
|
-
/** Runs the click handler the way React forwards the DOM event, unless disabled. */
|
|
147
|
-
handleClick(event: Event): void;
|
|
148
172
|
/**
|
|
149
|
-
*
|
|
150
|
-
*
|
|
173
|
+
* Runs the row's open action, the way React forwards the open button's
|
|
174
|
+
* click (bare, no event). A disabled row never calls it: the button carries
|
|
175
|
+
* `disabled`, so browsers raise no click from it, and the guard holds for a
|
|
176
|
+
* synthetic one.
|
|
151
177
|
*/
|
|
152
|
-
|
|
178
|
+
handleClick(): void;
|
|
153
179
|
/** Reads slot presence (view queries resolve only at view init) and reconciles the wrappers. */
|
|
154
180
|
ngAfterViewInit(): void;
|
|
155
181
|
/**
|
|
156
182
|
* Re-reconciles after every view refresh (a props step may add or remove a
|
|
157
|
-
* value): the wrappers are toggled on the values the template just
|
|
158
|
-
* so a later props step lands in one pass.
|
|
183
|
+
* value): the wrappers are toggled on the values the template just
|
|
184
|
+
* rendered, so a later props step lands in one pass.
|
|
159
185
|
*/
|
|
160
186
|
ngAfterViewChecked(): void;
|
|
161
187
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-item-row.component.d.ts","sourceRoot":"","sources":["../src/list-item-row.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAElB,UAAU,EAIX,MAAM,eAAe,CAAA;AAEtB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;;AAKlD
|
|
1
|
+
{"version":3,"file":"list-item-row.component.d.ts","sourceRoot":"","sources":["../src/list-item-row.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAElB,UAAU,EAIX,MAAM,eAAe,CAAA;AAEtB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;;AAKlD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,qBAiEa,WAAY,YAAW,aAAa,EAAE,gBAAgB;IACjE,4FAA4F;IAC5F,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,yFAAyF;IACzF,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,wFAAwF;IACxF,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,2FAA2F;IAC3F,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,uEAAuE;IACvE,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;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AAY,IAAI,MAAM;IAItB;;;OAGG;IACH,UAAU,IAAI,MAAM;IAIpB;;;;;OAKG;IACH,aAAa,IAAI,OAAO;IAIxB;;;;OAIG;IACH,IAAI,IAAI,CAAC,GAAG,CAAC;IAIb;;;;OAIG;IACH,SAAS,IAAI,MAAM;IAMnB;;;OAGG;IACH,YAAY,IAAI,MAAM;IAMtB;;;OAGG;IACH,YAAY,IAAI,MAAM;IAMtB;;;OAGG;IACH,WAAW,IAAI,MAAM;IAMrB;;;OAGG;IACH,WAAW,IAAI,MAAM;IAMrB;;;;;OAKG;IACH,WAAW,IAAI,IAAI;IAKnB,gGAAgG;IAChG,eAAe,IAAI,IAAI;IAIvB;;;;OAIG;IACH,kBAAkB,IAAI,IAAI;IAI1B;;;;;OAKG;IACH,OAAO,CAAC,SAAS;yCAnPN,WAAW;2CAAX,WAAW;CAqQvB"}
|
|
@@ -13,29 +13,45 @@ const _c2 = ["metadataWrap"];
|
|
|
13
13
|
const _c3 = ["actionsWrap"];
|
|
14
14
|
const _c4 = [[["", "slot", "leading"]], [["", "slot", "title"]], [["", "slot", "subtitle"]], [["", "slot", "metadata"]], [["", "slot", "actions"]]];
|
|
15
15
|
const _c5 = ["[slot=leading]", "[slot=title]", "[slot=subtitle]", "[slot=metadata]", "[slot=actions]"];
|
|
16
|
-
function
|
|
16
|
+
function ListItemRow_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
17
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
18
|
+
i0.ɵɵdomElementStart(0, "button", 5);
|
|
19
|
+
i0.ɵɵdomListener("click", function ListItemRow_Conditional_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.handleClick()); });
|
|
20
|
+
i0.ɵɵdomElementEnd();
|
|
21
|
+
} if (rf & 2) {
|
|
22
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
23
|
+
i0.ɵɵclassMap(ctx_r1.openButtonClasses());
|
|
24
|
+
i0.ɵɵattribute("aria-labelledby", ctx_r1.nameId)("disabled", ctx_r1.disabled ? "" : null);
|
|
25
|
+
} }
|
|
26
|
+
function ListItemRow_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
27
|
+
i0.ɵɵtext(0);
|
|
28
|
+
} if (rf & 2) {
|
|
29
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
30
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.leadingText(), " ");
|
|
31
|
+
} }
|
|
32
|
+
function ListItemRow_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
17
33
|
i0.ɵɵtext(0);
|
|
18
34
|
} if (rf & 2) {
|
|
19
|
-
const
|
|
20
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
35
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
36
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.titleText(), " ");
|
|
21
37
|
} }
|
|
22
|
-
function
|
|
38
|
+
function ListItemRow_Conditional_11_Template(rf, ctx) { if (rf & 1) {
|
|
23
39
|
i0.ɵɵtext(0);
|
|
24
40
|
} if (rf & 2) {
|
|
25
|
-
const
|
|
26
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
41
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
42
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.subtitleText(), " ");
|
|
27
43
|
} }
|
|
28
|
-
function
|
|
44
|
+
function ListItemRow_Conditional_15_Template(rf, ctx) { if (rf & 1) {
|
|
29
45
|
i0.ɵɵtext(0);
|
|
30
46
|
} if (rf & 2) {
|
|
31
|
-
const
|
|
32
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
47
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
48
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.metadataText(), " ");
|
|
33
49
|
} }
|
|
34
|
-
function
|
|
50
|
+
function ListItemRow_Conditional_19_Template(rf, ctx) { if (rf & 1) {
|
|
35
51
|
i0.ɵɵtext(0);
|
|
36
52
|
} if (rf & 2) {
|
|
37
|
-
const
|
|
38
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
53
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
54
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.actionsText(), " ");
|
|
39
55
|
} }
|
|
40
56
|
/**
|
|
41
57
|
* ListItemRow component.
|
|
@@ -46,13 +62,21 @@ function ListItemRow_Conditional_14_Template(rf, ctx) { if (rf & 1) {
|
|
|
46
62
|
* matching React's root exactly; the disabled row's dimmed opacity is applied
|
|
47
63
|
* inline through a host style binding (the CSSOM, as react-dom does).
|
|
48
64
|
*
|
|
65
|
+
* The row's open action lives on a native open button — an empty, transparent
|
|
66
|
+
* `<button type="button">` stretched over the whole row
|
|
67
|
+
* (`data-mol-id="list-item-row-open"`, `aria-labelledby` the title), the way
|
|
68
|
+
* React renders it while the row has an `onClick`; Enter / Space on it run the
|
|
69
|
+
* same handler mouse clicks run. An `@if` in the template puts it in the DOM
|
|
70
|
+
* only while the row has an `onClick` (React renders no button at all
|
|
71
|
+
* otherwise), and the actions wrapper sits above it and keeps its own clicks.
|
|
72
|
+
* The projected body renders directly in the host, so the wrappers never move.
|
|
73
|
+
*
|
|
49
74
|
* The node props are projected slots: `title` renders inside the title line,
|
|
50
75
|
* `subtitle` inside its line, `metadata` inside its line, `leading` inside the
|
|
51
|
-
* leading `<div>` and `actions` inside the right-side `<div
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
* reconcile against that in {@link ListItemRow.ngAfterViewInit}.
|
|
76
|
+
* leading `<div>` and `actions` inside the right-side `<div>`. String inputs
|
|
77
|
+
* render as text instead — React's truthiness branch applies: an empty string
|
|
78
|
+
* renders nothing. The conditionally-rendered wrappers reconcile against that
|
|
79
|
+
* in {@link ListItemRow.ngAfterViewInit}.
|
|
56
80
|
*/
|
|
57
81
|
export class ListItemRow {
|
|
58
82
|
/** Title — first line (string/number renders as text; nodes are `[slot=title]` content). */
|
|
@@ -65,16 +89,24 @@ export class ListItemRow {
|
|
|
65
89
|
leading;
|
|
66
90
|
/** Optional right-side actions (`[slot=actions]` content, or text). */
|
|
67
91
|
actions;
|
|
68
|
-
/**
|
|
92
|
+
/**
|
|
93
|
+
* Called when the row is activated (React's `onClick`, called bare). The
|
|
94
|
+
* whole row is clickable through a transparent native button over it, named
|
|
95
|
+
* by the title; the inner controls sit above it and keep their own clicks.
|
|
96
|
+
*/
|
|
69
97
|
onClick;
|
|
70
|
-
/** When true, sets `aria-
|
|
98
|
+
/** When true, sets `aria-current="true"` on the row — no built-in visual highlight. */
|
|
71
99
|
selected;
|
|
72
|
-
/** When true, renders in a disabled visual state and
|
|
100
|
+
/** When true, renders in a disabled visual state and disables the open button. */
|
|
73
101
|
disabled;
|
|
74
102
|
/** Dense vs comfortable spacing. Defaults to `'comfortable'` at read time. */
|
|
75
103
|
density;
|
|
76
104
|
/** Extra classes. */
|
|
77
105
|
className;
|
|
106
|
+
/** Next value of the module-wide instance counter (React `useId()`'s counterpart). */
|
|
107
|
+
static nextNameId = 0;
|
|
108
|
+
/** The title line's id — the open button's `aria-labelledby` (React's `useId`). */
|
|
109
|
+
nameId = `list-item-row-title-${ListItemRow.nextNameId++}`;
|
|
78
110
|
/** The leading wrapper (detached when no leading value and the slot is empty). */
|
|
79
111
|
leadingWrap;
|
|
80
112
|
/** The subtitle line (detached when no subtitle value and the slot is empty). */
|
|
@@ -103,12 +135,22 @@ export class ListItemRow {
|
|
|
103
135
|
}
|
|
104
136
|
/**
|
|
105
137
|
* Computes the row's class list (`cm.flex({ align: 'center', gap: 'sm' })` +
|
|
106
|
-
* `cm.sp('px', 3)` + `cm.sp('py', padY)` + `
|
|
107
|
-
*
|
|
138
|
+
* `cm.sp('px', 3)` + `cm.sp('py', padY)` + `className` — plus
|
|
139
|
+
* `cm.position('relative')` while the row has an `onClick`, so the absolute
|
|
140
|
+
* open button anchors to the row like React's).
|
|
108
141
|
* @returns The class string.
|
|
109
142
|
*/
|
|
110
143
|
classes() {
|
|
111
|
-
return this.cm().cn(this.cm().flex({ align: 'center', gap: 'sm' }), this.cm().sp('px', 3), this.cm().sp('py', this.padY()), this.
|
|
144
|
+
return this.cm().cn(this.cm().flex({ align: 'center', gap: 'sm' }), this.cm().sp('px', 3), this.cm().sp('py', this.padY()), this.hasOpenAction() ? this.cm().position('relative') : undefined, this.className);
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Computes the open button's class (`cm.position('absolute')` + `cm.inset0`,
|
|
148
|
+
* plus `cm.cursorPointer` unless the row is disabled — the whole row is the
|
|
149
|
+
* hit area).
|
|
150
|
+
* @returns The class string.
|
|
151
|
+
*/
|
|
152
|
+
openButtonClasses() {
|
|
153
|
+
return this.cm().cn(this.cm().position('absolute'), this.cm().inset0, this.disabled ? undefined : this.cm().cursorPointer);
|
|
112
154
|
}
|
|
113
155
|
/**
|
|
114
156
|
* Computes the middle stack's class (`cm.flex1` + `cm.stack(0)`).
|
|
@@ -139,11 +181,12 @@ export class ListItemRow {
|
|
|
139
181
|
return this.cm().cn(this.cm().textSize('xs'));
|
|
140
182
|
}
|
|
141
183
|
/**
|
|
142
|
-
* The actions wrapper's class (`cm.shrink0`)
|
|
184
|
+
* The actions wrapper's class (`cm.shrink0` + `cm.position('relative')` —
|
|
185
|
+
* the actions sit above the open button and keep their own clicks).
|
|
143
186
|
* @returns The class string.
|
|
144
187
|
*/
|
|
145
188
|
actionsClass() {
|
|
146
|
-
return this.cm().cn(this.cm().shrink0);
|
|
189
|
+
return this.cm().cn(this.cm().shrink0, this.cm().position('relative'));
|
|
147
190
|
}
|
|
148
191
|
/**
|
|
149
192
|
* Computes the title line's class (`cm.textSize('sm')` + `cm.fontWeight('semibold')`).
|
|
@@ -153,12 +196,13 @@ export class ListItemRow {
|
|
|
153
196
|
return this.cm().cn(this.cm().textSize('sm'), this.cm().fontWeight('semibold'));
|
|
154
197
|
}
|
|
155
198
|
/**
|
|
156
|
-
* Whether the row
|
|
157
|
-
* `
|
|
158
|
-
*
|
|
199
|
+
* Whether the row has an open action: an `onClick` (React renders the open
|
|
200
|
+
* button and the root's `position: relative` while it does — `disabled`
|
|
201
|
+
* only disables the button, it does not remove it).
|
|
202
|
+
* @returns True when the row renders the open button.
|
|
159
203
|
*/
|
|
160
|
-
|
|
161
|
-
return Boolean(this.onClick)
|
|
204
|
+
hasOpenAction() {
|
|
205
|
+
return Boolean(this.onClick);
|
|
162
206
|
}
|
|
163
207
|
/**
|
|
164
208
|
* The vertical padding token argument (`2` for `'compact'`, else `3` —
|
|
@@ -214,18 +258,16 @@ export class ListItemRow {
|
|
|
214
258
|
? String(this.actions)
|
|
215
259
|
: '';
|
|
216
260
|
}
|
|
217
|
-
/** Runs the click handler the way React forwards the DOM event, unless disabled. */
|
|
218
|
-
handleClick(event) {
|
|
219
|
-
if (this.disabled)
|
|
220
|
-
return;
|
|
221
|
-
this.onClick?.(event);
|
|
222
|
-
}
|
|
223
261
|
/**
|
|
224
|
-
*
|
|
225
|
-
*
|
|
262
|
+
* Runs the row's open action, the way React forwards the open button's
|
|
263
|
+
* click (bare, no event). A disabled row never calls it: the button carries
|
|
264
|
+
* `disabled`, so browsers raise no click from it, and the guard holds for a
|
|
265
|
+
* synthetic one.
|
|
226
266
|
*/
|
|
227
|
-
|
|
228
|
-
|
|
267
|
+
handleClick() {
|
|
268
|
+
if (this.disabled)
|
|
269
|
+
return;
|
|
270
|
+
this.onClick?.();
|
|
229
271
|
}
|
|
230
272
|
/** Reads slot presence (view queries resolve only at view init) and reconciles the wrappers. */
|
|
231
273
|
ngAfterViewInit() {
|
|
@@ -233,8 +275,8 @@ export class ListItemRow {
|
|
|
233
275
|
}
|
|
234
276
|
/**
|
|
235
277
|
* Re-reconciles after every view refresh (a props step may add or remove a
|
|
236
|
-
* value): the wrappers are toggled on the values the template just
|
|
237
|
-
* so a later props step lands in one pass.
|
|
278
|
+
* value): the wrappers are toggled on the values the template just
|
|
279
|
+
* rendered, so a later props step lands in one pass.
|
|
238
280
|
*/
|
|
239
281
|
ngAfterViewChecked() {
|
|
240
282
|
this.reconcile();
|
|
@@ -271,54 +313,58 @@ export class ListItemRow {
|
|
|
271
313
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.subtitleWrap = _t.first);
|
|
272
314
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.metadataWrap = _t.first);
|
|
273
315
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.actionsWrap = _t.first);
|
|
274
|
-
} }, hostVars:
|
|
275
|
-
i0.ɵɵ
|
|
276
|
-
} if (rf & 2) {
|
|
277
|
-
i0.ɵɵattribute("role", ctx.onClick ? "button" : null)("tabindex", ctx.clickable() ? 0 : null)("aria-selected", ctx.selected ?? null)("aria-disabled", ctx.disabled ?? null);
|
|
316
|
+
} }, hostVars: 6, hostBindings: function ListItemRow_HostBindings(rf, ctx) { if (rf & 2) {
|
|
317
|
+
i0.ɵɵattribute("aria-current", ctx.selected ? "true" : null)("aria-disabled", ctx.disabled ?? null);
|
|
278
318
|
i0.ɵɵclassMap(ctx.classes());
|
|
279
319
|
i0.ɵɵstyleProp("opacity", ctx.disabled ? 0.5 : null);
|
|
280
|
-
} }, inputs: { title: "title", subtitle: "subtitle", metadata: "metadata", leading: "leading", actions: "actions", onClick: "onClick", selected: "selected", disabled: "disabled", density: "density", className: "className" }, ngContentSelectors: _c5, decls:
|
|
320
|
+
} }, inputs: { title: "title", subtitle: "subtitle", metadata: "metadata", leading: "leading", actions: "actions", onClick: "onClick", selected: "selected", disabled: "disabled", density: "density", className: "className" }, ngContentSelectors: _c5, decls: 21, vars: 19, consts: [["leadingWrap", ""], ["subtitleWrap", ""], ["metadataWrap", ""], ["actionsWrap", ""], ["type", "button", "data-mol-id", "list-item-row-open", 2, "background", "transparent", "border", "medium", "padding", "0px", 3, "class"], ["type", "button", "data-mol-id", "list-item-row-open", 2, "background", "transparent", "border", "medium", "padding", "0px", 3, "click"]], template: function ListItemRow_Template(rf, ctx) { if (rf & 1) {
|
|
281
321
|
i0.ɵɵprojectionDef(_c4);
|
|
282
|
-
i0.ɵɵ
|
|
283
|
-
i0.ɵɵ
|
|
284
|
-
i0.ɵɵ
|
|
322
|
+
i0.ɵɵconditionalCreate(0, ListItemRow_Conditional_0_Template, 1, 4, "button", 4);
|
|
323
|
+
i0.ɵɵdomElementStart(1, "div", null, 0);
|
|
324
|
+
i0.ɵɵconditionalCreate(3, ListItemRow_Conditional_3_Template, 1, 1);
|
|
325
|
+
i0.ɵɵprojection(4);
|
|
285
326
|
i0.ɵɵdomElementEnd();
|
|
286
|
-
i0.ɵɵdomElementStart(
|
|
287
|
-
i0.ɵɵconditionalCreate(
|
|
288
|
-
i0.ɵɵprojection(
|
|
327
|
+
i0.ɵɵdomElementStart(5, "div")(6, "div");
|
|
328
|
+
i0.ɵɵconditionalCreate(7, ListItemRow_Conditional_7_Template, 1, 1);
|
|
329
|
+
i0.ɵɵprojection(8, 1);
|
|
289
330
|
i0.ɵɵdomElementEnd();
|
|
290
|
-
i0.ɵɵdomElementStart(
|
|
291
|
-
i0.ɵɵconditionalCreate(
|
|
292
|
-
i0.ɵɵprojection(
|
|
331
|
+
i0.ɵɵdomElementStart(9, "div", null, 1);
|
|
332
|
+
i0.ɵɵconditionalCreate(11, ListItemRow_Conditional_11_Template, 1, 1);
|
|
333
|
+
i0.ɵɵprojection(12, 2);
|
|
293
334
|
i0.ɵɵdomElementEnd();
|
|
294
|
-
i0.ɵɵdomElementStart(
|
|
295
|
-
i0.ɵɵconditionalCreate(
|
|
296
|
-
i0.ɵɵprojection(
|
|
335
|
+
i0.ɵɵdomElementStart(13, "div", null, 2);
|
|
336
|
+
i0.ɵɵconditionalCreate(15, ListItemRow_Conditional_15_Template, 1, 1);
|
|
337
|
+
i0.ɵɵprojection(16, 3);
|
|
297
338
|
i0.ɵɵdomElementEnd()();
|
|
298
|
-
i0.ɵɵdomElementStart(
|
|
299
|
-
i0.ɵɵ
|
|
300
|
-
i0.ɵɵprojection(
|
|
339
|
+
i0.ɵɵdomElementStart(17, "div", null, 3);
|
|
340
|
+
i0.ɵɵconditionalCreate(19, ListItemRow_Conditional_19_Template, 1, 1);
|
|
341
|
+
i0.ɵɵprojection(20, 4);
|
|
301
342
|
i0.ɵɵdomElementEnd();
|
|
302
343
|
} if (rf & 2) {
|
|
344
|
+
i0.ɵɵconditional(ctx.onClick ? 0 : -1);
|
|
345
|
+
i0.ɵɵadvance();
|
|
303
346
|
i0.ɵɵclassMap(ctx.leadingClass());
|
|
304
347
|
i0.ɵɵadvance(2);
|
|
305
|
-
i0.ɵɵconditional(ctx.leadingText() ?
|
|
348
|
+
i0.ɵɵconditional(ctx.leadingText() ? 3 : -1);
|
|
306
349
|
i0.ɵɵadvance(2);
|
|
307
350
|
i0.ɵɵclassMap(ctx.stackClass());
|
|
308
351
|
i0.ɵɵadvance();
|
|
309
352
|
i0.ɵɵclassMap(ctx.titleClass());
|
|
353
|
+
i0.ɵɵattribute("id", ctx.onClick ? ctx.nameId : null);
|
|
310
354
|
i0.ɵɵadvance();
|
|
311
|
-
i0.ɵɵconditional(ctx.titleText() ?
|
|
355
|
+
i0.ɵɵconditional(ctx.titleText() ? 7 : -1);
|
|
312
356
|
i0.ɵɵadvance(2);
|
|
313
357
|
i0.ɵɵclassMap(ctx.subtitleClass());
|
|
314
358
|
i0.ɵɵadvance(2);
|
|
315
|
-
i0.ɵɵconditional(ctx.subtitleText() ?
|
|
359
|
+
i0.ɵɵconditional(ctx.subtitleText() ? 11 : -1);
|
|
316
360
|
i0.ɵɵadvance(2);
|
|
317
361
|
i0.ɵɵclassMap(ctx.metadataClass());
|
|
318
362
|
i0.ɵɵadvance(2);
|
|
319
|
-
i0.ɵɵconditional(ctx.metadataText() ?
|
|
363
|
+
i0.ɵɵconditional(ctx.metadataText() ? 15 : -1);
|
|
320
364
|
i0.ɵɵadvance(2);
|
|
321
365
|
i0.ɵɵclassMap(ctx.actionsClass());
|
|
366
|
+
i0.ɵɵadvance(2);
|
|
367
|
+
i0.ɵɵconditional(ctx.actionsText() ? 19 : -1);
|
|
322
368
|
} }, encapsulation: 2 });
|
|
323
369
|
}
|
|
324
370
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ListItemRow, [{
|
|
@@ -340,21 +386,29 @@ export class ListItemRow {
|
|
|
340
386
|
],
|
|
341
387
|
host: {
|
|
342
388
|
'[class]': 'classes()',
|
|
343
|
-
'[attr.
|
|
344
|
-
'[attr.tabindex]': 'this.clickable() ? 0 : null',
|
|
345
|
-
'[attr.aria-selected]': 'this.selected ?? null',
|
|
389
|
+
'[attr.aria-current]': 'this.selected ? "true" : null',
|
|
346
390
|
'[attr.aria-disabled]': 'this.disabled ?? null',
|
|
347
391
|
'[style.opacity]': 'this.disabled ? 0.5 : null',
|
|
348
|
-
'(click)': 'handleClick($event)',
|
|
349
392
|
},
|
|
350
|
-
template:
|
|
393
|
+
template: `@if (onClick) {
|
|
394
|
+
<button
|
|
395
|
+
type="button"
|
|
396
|
+
[attr.aria-labelledby]="nameId"
|
|
397
|
+
[attr.disabled]="disabled ? '' : null"
|
|
398
|
+
data-mol-id="list-item-row-open"
|
|
399
|
+
(click)="handleClick()"
|
|
400
|
+
[class]="openButtonClasses()"
|
|
401
|
+
style="background: transparent; border: medium; padding: 0px"
|
|
402
|
+
></button>
|
|
403
|
+
}
|
|
404
|
+
<div #leadingWrap [class]="leadingClass()">
|
|
351
405
|
@if (leadingText()) {
|
|
352
406
|
{{ leadingText() }}
|
|
353
407
|
}
|
|
354
408
|
<ng-content select="[slot=leading]"></ng-content>
|
|
355
409
|
</div>
|
|
356
410
|
<div [class]="stackClass()">
|
|
357
|
-
<div [class]="titleClass()">
|
|
411
|
+
<div [attr.id]="onClick ? nameId : null" [class]="titleClass()">
|
|
358
412
|
@if (titleText()) {
|
|
359
413
|
{{ titleText() }}
|
|
360
414
|
}
|
|
@@ -373,7 +427,10 @@ export class ListItemRow {
|
|
|
373
427
|
<ng-content select="[slot=metadata]"></ng-content>
|
|
374
428
|
</div>
|
|
375
429
|
</div>
|
|
376
|
-
<div #actionsWrap [class]="actionsClass()"
|
|
430
|
+
<div #actionsWrap [class]="actionsClass()">
|
|
431
|
+
@if (actionsText()) {
|
|
432
|
+
{{ actionsText() }}
|
|
433
|
+
}
|
|
377
434
|
<ng-content select="[slot=actions]"></ng-content>
|
|
378
435
|
</div>`,
|
|
379
436
|
}]
|
|
@@ -390,5 +447,5 @@ export class ListItemRow {
|
|
|
390
447
|
type: ViewChild,
|
|
391
448
|
args: ['actionsWrap']
|
|
392
449
|
}] }); })();
|
|
393
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ListItemRow, { className: "ListItemRow", filePath: "list-item-row.component.ts", lineNumber:
|
|
450
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ListItemRow, { className: "ListItemRow", filePath: "list-item-row.component.ts", lineNumber: 112 }); })();
|
|
394
451
|
//# sourceMappingURL=list-item-row.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-item-row.component.js","sourceRoot":"","sources":["../src/list-item-row.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAGL,SAAS,EACT,UAAU,EACV,MAAM,EACN,SAAS,EACT,SAAS,GACV,MAAM,eAAe,CAAA;AAGtB,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA
|
|
1
|
+
{"version":3,"file":"list-item-row.component.js","sourceRoot":"","sources":["../src/list-item-row.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAGL,SAAS,EACT,UAAU,EACV,MAAM,EACN,SAAS,EACT,SAAS,GACV,M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AS;mBAAC,cAAc;;kBAExB,SAAS;mBAAC,aAAa;;kFAvCb,WAAW"}
|
package/dist/types.d.ts
CHANGED
|
@@ -15,9 +15,14 @@ export interface ListItemRowProps {
|
|
|
15
15
|
leading?: string | number;
|
|
16
16
|
/** Optional right-side actions (buttons, action menu; `[slot=actions]` content, or text). */
|
|
17
17
|
actions?: string | number;
|
|
18
|
-
/**
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Called when the row is activated (called bare, the way React forwards the
|
|
20
|
+
* open button's click). The whole row is clickable through a transparent
|
|
21
|
+
* native button over it, named by the title; the inner controls (the
|
|
22
|
+
* `actions` slot) sit above it and keep their own clicks.
|
|
23
|
+
*/
|
|
24
|
+
onClick?: () => void;
|
|
25
|
+
/** When true, sets `aria-current="true"` on the row — no built-in visual highlight; style it via `className` or host CSS. */
|
|
21
26
|
selected?: boolean;
|
|
22
27
|
/** When true, renders in a disabled visual state. */
|
|
23
28
|
disabled?: boolean;
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,wEAAwE;AACxE,MAAM,WAAW,gBAAgB;IAC/B,uGAAuG;IACvG,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,yHAAyH;IACzH,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC1B,uIAAuI;IACvI,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC1B,iGAAiG;IACjG,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACzB,6FAA6F;IAC7F,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACzB
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,wEAAwE;AACxE,MAAM,WAAW,gBAAgB;IAC/B,uGAAuG;IACvG,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,yHAAyH;IACzH,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC1B,uIAAuI;IACvI,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC1B,iGAAiG;IACjG,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACzB,6FAA6F;IAC7F,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACzB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,6HAA6H;IAC7H,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,qDAAqD;IACrD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,iEAAiE;IACjE,OAAO,CAAC,EAAE,aAAa,GAAG,SAAS,CAAA;IACnC,qBAAqB;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/app-list-item-row-angular",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Thumbnail + title + subtitle + metadata + actions row (nav lists, mobile menus)",
|
|
5
5
|
"homepage": "https://www.molecule.dev/packages/app-list-item-row-angular",
|
|
6
6
|
"type": "module",
|