@molecule/app-job-listing-row-vue 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 +19 -10
- package/dist/JobListingRow.d.ts +5 -4
- package/dist/JobListingRow.d.ts.map +1 -1
- package/dist/JobListingRow.js +32 -10
- package/dist/JobListingRow.js.map +1 -1
- package/dist/index.d.ts +5 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +8 -1
- 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-16T23:56:19.345Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/app-job-listing-row-vue
|
|
@@ -85,7 +85,14 @@ interface JobListingRowProps {
|
|
|
85
85
|
actions?: VNodeChild
|
|
86
86
|
/** Tags / chips (Remote, React, Hybrid). */
|
|
87
87
|
tags?: VNodeChild
|
|
88
|
-
/**
|
|
88
|
+
/**
|
|
89
|
+
* Activates the row: while it is set, an empty, transparent native button
|
|
90
|
+
* covers the whole row and calls this on click — the whole row is the click
|
|
91
|
+
* target, and Enter / Space activate the button natively. The row is named
|
|
92
|
+
* by the title (the `<h3>` itself takes the id the button points at with
|
|
93
|
+
* `aria-labelledby`); the `actions` and `tags` slots sit above the button
|
|
94
|
+
* and keep their own clicks.
|
|
95
|
+
*/
|
|
89
96
|
onClick?: () => void
|
|
90
97
|
/** Extra classes. */
|
|
91
98
|
className?: string
|
|
@@ -101,10 +108,11 @@ with optional leading logo, tag chips, and right-side actions.
|
|
|
101
108
|
|
|
102
109
|
The location value is prefixed with the same hardcoded 📍 glyph React
|
|
103
110
|
renders, and the meta fields carry the same literal middle-dot separators
|
|
104
|
-
(there is no prop to change or localise them). `onClick`
|
|
105
|
-
row
|
|
106
|
-
|
|
107
|
-
|
|
111
|
+
(there is no prop to change or localise them). `onClick` covers the whole
|
|
112
|
+
row with an empty, transparent native button that activates it — the whole
|
|
113
|
+
row is the click target, named by the title (the `<h3>` itself takes the id
|
|
114
|
+
the button points at with `aria-labelledby`), with the inner controls above
|
|
115
|
+
it keeping their own clicks.
|
|
108
116
|
|
|
109
117
|
```typescript
|
|
110
118
|
const JobListingRow: DefineComponent<
|
|
@@ -186,10 +194,11 @@ The location value is prefixed with a hardcoded 📍 glyph and the meta
|
|
|
186
194
|
fields are joined with literal middle-dot separators; there is no prop to
|
|
187
195
|
change or localise those separators.
|
|
188
196
|
|
|
189
|
-
`onClick` makes the whole row clickable
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
197
|
+
`onClick` makes the whole row clickable through a transparent native button
|
|
198
|
+
over it — the row is named by the title (the `<h3>` itself takes the id the
|
|
199
|
+
button points at with `aria-labelledby`), and the inner controls sit above
|
|
200
|
+
it and keep their own clicks. Put a real link or button in `actions` for the
|
|
201
|
+
other row actions.
|
|
193
202
|
|
|
194
203
|
Node-valued props (`title`, `company`, `location`, `type`, `salary`,
|
|
195
204
|
`postedAt`, `leading`, `actions`, `tags`) arrive as a prop AND a same-named
|
package/dist/JobListingRow.d.ts
CHANGED
|
@@ -15,10 +15,11 @@ import type { JobListingRowProps } from './types.js';
|
|
|
15
15
|
*
|
|
16
16
|
* The location value is prefixed with the same hardcoded 📍 glyph React
|
|
17
17
|
* renders, and the meta fields carry the same literal middle-dot separators
|
|
18
|
-
* (there is no prop to change or localise them). `onClick`
|
|
19
|
-
* row
|
|
20
|
-
*
|
|
21
|
-
*
|
|
18
|
+
* (there is no prop to change or localise them). `onClick` covers the whole
|
|
19
|
+
* row with an empty, transparent native button that activates it — the whole
|
|
20
|
+
* row is the click target, named by the title (the `<h3>` itself takes the id
|
|
21
|
+
* the button points at with `aria-labelledby`), with the inner controls above
|
|
22
|
+
* it keeping their own clicks.
|
|
22
23
|
*
|
|
23
24
|
* @param props - Component props (see {@link JobListingRowProps}).
|
|
24
25
|
* @returns The job listing row component.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JobListingRow.d.ts","sourceRoot":"","sources":["../src/JobListingRow.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAsB,KAAK,QAAQ,
|
|
1
|
+
{"version":3,"file":"JobListingRow.d.ts","sourceRoot":"","sources":["../src/JobListingRow.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAsB,KAAK,QAAQ,EAAS,KAAK,KAAK,EAAmB,MAAM,KAAK,CAAA;AAI3F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAmBpD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;cAYO,QAAQ,CAAC,kBAAkB,CAAC,SAAS,CAAC,CAAC;;;;;;;UASzD,KAAK;;;;;;;;;;;cATa,QAAQ,CAAC,kBAAkB,CAAC,SAAS,CAAC,CAAC;;;;;;;;;;4EAkGtE,CAAA"}
|
package/dist/JobListingRow.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @module
|
|
9
9
|
*/
|
|
10
|
-
import { defineComponent, h } from 'vue';
|
|
10
|
+
import { defineComponent, h, useId } from 'vue';
|
|
11
11
|
import { getClassMap } from '@molecule/app-ui';
|
|
12
12
|
/**
|
|
13
13
|
* Resolves a node-valued prop that may also arrive as a same-named slot,
|
|
@@ -29,10 +29,11 @@ const slotOrTruthy = (slot, prop) => {
|
|
|
29
29
|
*
|
|
30
30
|
* The location value is prefixed with the same hardcoded 📍 glyph React
|
|
31
31
|
* renders, and the meta fields carry the same literal middle-dot separators
|
|
32
|
-
* (there is no prop to change or localise them). `onClick`
|
|
33
|
-
* row
|
|
34
|
-
*
|
|
35
|
-
*
|
|
32
|
+
* (there is no prop to change or localise them). `onClick` covers the whole
|
|
33
|
+
* row with an empty, transparent native button that activates it — the whole
|
|
34
|
+
* row is the click target, named by the title (the `<h3>` itself takes the id
|
|
35
|
+
* the button points at with `aria-labelledby`), with the inner controls above
|
|
36
|
+
* it keeping their own clicks.
|
|
36
37
|
*
|
|
37
38
|
* @param props - Component props (see {@link JobListingRowProps}).
|
|
38
39
|
* @returns The job listing row component.
|
|
@@ -54,6 +55,9 @@ export const JobListingRow = defineComponent({
|
|
|
54
55
|
},
|
|
55
56
|
setup(props, { slots }) {
|
|
56
57
|
const cm = getClassMap();
|
|
58
|
+
// The row's accessible name lives on the title, the way React's useId()
|
|
59
|
+
// names it: the open button points at the `<h3>` with aria-labelledby.
|
|
60
|
+
const nameId = useId();
|
|
57
61
|
return () => {
|
|
58
62
|
const title = slotOrTruthy(slots.title, props.title);
|
|
59
63
|
const company = slotOrTruthy(slots.company, props.company);
|
|
@@ -65,12 +69,26 @@ export const JobListingRow = defineComponent({
|
|
|
65
69
|
const actions = slotOrTruthy(slots.actions, props.actions);
|
|
66
70
|
const tags = slotOrTruthy(slots.tags, props.tags);
|
|
67
71
|
return h('div', {
|
|
68
|
-
|
|
69
|
-
class: cm.cn(cm.flex({ align: 'start', gap: 'md' }), cm.sp('p', 3), props.onClick ? cm.cursorPointer : undefined, props.className),
|
|
72
|
+
class: cm.cn(cm.flex({ align: 'start', gap: 'md' }), cm.sp('p', 3), props.onClick ? cm.position('relative') : undefined, props.className),
|
|
70
73
|
}, [
|
|
74
|
+
// The row's open control: an empty, transparent native button over
|
|
75
|
+
// the whole row (Enter / Space activate it natively), a SIBLING of
|
|
76
|
+
// the slot wrappers rather than their parent. mol-bespoke-button:
|
|
77
|
+
// the whole row is the hit area, not a CTA; the inline background/
|
|
78
|
+
// border/padding are native resets.
|
|
79
|
+
props.onClick
|
|
80
|
+
? h('button', {
|
|
81
|
+
type: 'button',
|
|
82
|
+
'aria-labelledby': nameId,
|
|
83
|
+
'data-mol-id': 'job-listing-row-open',
|
|
84
|
+
onClick: () => props.onClick?.(),
|
|
85
|
+
class: cm.cn(cm.position('absolute'), cm.inset0, cm.cursorPointer),
|
|
86
|
+
style: { background: 'transparent', border: 'none', padding: 0 },
|
|
87
|
+
})
|
|
88
|
+
: null,
|
|
71
89
|
leading.length > 0 ? h('div', { class: cm.shrink0 }, leading) : null,
|
|
72
90
|
h('div', { class: cm.cn(cm.flex1, cm.stack(1)) }, [
|
|
73
|
-
h('h3', { class: cm.cn(cm.textSize('base'), cm.fontWeight('semibold')) }, title),
|
|
91
|
+
h('h3', { id: nameId, class: cm.cn(cm.textSize('base'), cm.fontWeight('semibold')) }, title),
|
|
74
92
|
company.length > 0 ? h('span', { class: cm.textSize('sm') }, company) : null,
|
|
75
93
|
h('div', { class: cm.flex({ align: 'center', gap: 'sm', wrap: 'wrap' }) }, [
|
|
76
94
|
location.length > 0
|
|
@@ -88,11 +106,15 @@ export const JobListingRow = defineComponent({
|
|
|
88
106
|
: null,
|
|
89
107
|
]),
|
|
90
108
|
tags.length > 0
|
|
91
|
-
? h('div', {
|
|
109
|
+
? h('div', {
|
|
110
|
+
class: cm.cn(cm.flex({ align: 'center', gap: 'xs', wrap: 'wrap' }), cm.position('relative')),
|
|
111
|
+
}, tags)
|
|
92
112
|
: null,
|
|
93
113
|
]),
|
|
94
114
|
actions.length > 0
|
|
95
|
-
? h('div', {
|
|
115
|
+
? h('div', {
|
|
116
|
+
class: cm.cn(cm.flex({ align: 'center', gap: 'sm' }), cm.shrink0, cm.position('relative')),
|
|
117
|
+
}, actions)
|
|
96
118
|
: null,
|
|
97
119
|
]);
|
|
98
120
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JobListingRow.js","sourceRoot":"","sources":["../src/Job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AE,QAAQ,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,EACrD,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC,CACxB;yBACF,EACD,IAAI,CACL;wBACH,CAAC,CAAC,IAAI;iBACT,CAAC;gBACF,OAAO,CAAC,MAAM,GAAG,CAAC;oBAChB,CAAC,CAAC,CAAC,CACC,KAAK,EACL;wBACE,KAAK,EAAE,EAAE,CAAC,EAAE,CACV,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,EACvC,EAAE,CAAC,OAAO,EACV,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC,CACxB;qBACF,EACD,OAAO,CACR;oBACH,CAAC,CAAC,IAAI;aACT,CACF,CAAA;QACH,CAAC,CAAA;IACH,CAAC;CACF,CAAC,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -40,10 +40,11 @@
|
|
|
40
40
|
* fields are joined with literal middle-dot separators; there is no prop to
|
|
41
41
|
* change or localise those separators.
|
|
42
42
|
*
|
|
43
|
-
* `onClick` makes the whole row clickable
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
43
|
+
* `onClick` makes the whole row clickable through a transparent native button
|
|
44
|
+
* over it — the row is named by the title (the `<h3>` itself takes the id the
|
|
45
|
+
* button points at with `aria-labelledby`), and the inner controls sit above
|
|
46
|
+
* it and keep their own clicks. Put a real link or button in `actions` for the
|
|
47
|
+
* other row actions.
|
|
47
48
|
*
|
|
48
49
|
* Node-valued props (`title`, `company`, `location`, `type`, `salary`,
|
|
49
50
|
* `postedAt`, `leading`, `actions`, `tags`) arrive as a prop AND a same-named
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AAEH,cAAc,oBAAoB,CAAA;AAClC,cAAc,YAAY,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -40,10 +40,11 @@
|
|
|
40
40
|
* fields are joined with literal middle-dot separators; there is no prop to
|
|
41
41
|
* change or localise those separators.
|
|
42
42
|
*
|
|
43
|
-
* `onClick` makes the whole row clickable
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
43
|
+
* `onClick` makes the whole row clickable through a transparent native button
|
|
44
|
+
* over it — the row is named by the title (the `<h3>` itself takes the id the
|
|
45
|
+
* button points at with `aria-labelledby`), and the inner controls sit above
|
|
46
|
+
* it and keep their own clicks. Put a real link or button in `actions` for the
|
|
47
|
+
* other row actions.
|
|
47
48
|
*
|
|
48
49
|
* Node-valued props (`title`, `company`, `location`, `type`, `salary`,
|
|
49
50
|
* `postedAt`, `leading`, `actions`, `tags`) arrive as a prop AND a same-named
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AAEH,cAAc,oBAAoB,CAAA;AAClC,cAAc,YAAY,CAAA"}
|
package/dist/types.d.ts
CHANGED
|
@@ -24,7 +24,14 @@ export interface JobListingRowProps {
|
|
|
24
24
|
actions?: VNodeChild;
|
|
25
25
|
/** Tags / chips (Remote, React, Hybrid). */
|
|
26
26
|
tags?: VNodeChild;
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Activates the row: while it is set, an empty, transparent native button
|
|
29
|
+
* covers the whole row and calls this on click — the whole row is the click
|
|
30
|
+
* target, and Enter / Space activate the button natively. The row is named
|
|
31
|
+
* by the title (the `<h3>` itself takes the id the button points at with
|
|
32
|
+
* `aria-labelledby`); the `actions` and `tags` slots sit above the button
|
|
33
|
+
* and keep their own clicks.
|
|
34
|
+
*/
|
|
28
35
|
onClick?: () => void;
|
|
29
36
|
/** Extra classes. */
|
|
30
37
|
className?: string;
|
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,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAErC,uCAAuC;AACvC,MAAM,WAAW,kBAAkB;IACjC,yBAAyB;IACzB,KAAK,EAAE,UAAU,CAAA;IACjB,kCAAkC;IAClC,OAAO,CAAC,EAAE,UAAU,CAAA;IACpB,sDAAsD;IACtD,QAAQ,CAAC,EAAE,UAAU,CAAA;IACrB,+DAA+D;IAC/D,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,2CAA2C;IAC3C,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,UAAU,CAAA;IACrB,oCAAoC;IACpC,OAAO,CAAC,EAAE,UAAU,CAAA;IACpB,iDAAiD;IACjD,OAAO,CAAC,EAAE,UAAU,CAAA;IACpB,4CAA4C;IAC5C,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAErC,uCAAuC;AACvC,MAAM,WAAW,kBAAkB;IACjC,yBAAyB;IACzB,KAAK,EAAE,UAAU,CAAA;IACjB,kCAAkC;IAClC,OAAO,CAAC,EAAE,UAAU,CAAA;IACpB,sDAAsD;IACtD,QAAQ,CAAC,EAAE,UAAU,CAAA;IACrB,+DAA+D;IAC/D,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,2CAA2C;IAC3C,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,UAAU,CAAA;IACrB,oCAAoC;IACpC,OAAO,CAAC,EAAE,UAAU,CAAA;IACpB,iDAAiD;IACjD,OAAO,CAAC,EAAE,UAAU,CAAA;IACpB,4CAA4C;IAC5C,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,qBAAqB;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/app-job-listing-row-vue",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Job-board row with title, company, location, type, salary range, posted date",
|
|
5
5
|
"homepage": "https://www.molecule.dev/packages/app-job-listing-row-vue",
|
|
6
6
|
"type": "module",
|