@molecule/app-data-table-ui-solid 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 +313 -2
- package/dist/DataTableCard.d.ts +34 -0
- package/dist/DataTableCard.d.ts.map +1 -0
- package/dist/DataTableCard.jsx +128 -0
- package/dist/DataTableCard.jsx.map +1 -0
- package/dist/RowWithActions.d.ts +21 -0
- package/dist/RowWithActions.d.ts.map +1 -0
- package/dist/RowWithActions.jsx +31 -0
- package/dist/RowWithActions.jsx.map +1 -0
- package/dist/TableEmpty.d.ts +20 -0
- package/dist/TableEmpty.d.ts.map +1 -0
- package/dist/TableEmpty.jsx +26 -0
- package/dist/TableEmpty.jsx.map +1 -0
- package/dist/TableFooter.d.ts +19 -0
- package/dist/TableFooter.d.ts.map +1 -0
- package/dist/TableFooter.jsx +24 -0
- package/dist/TableFooter.jsx.map +1 -0
- package/dist/TableToolbar.d.ts +20 -0
- package/dist/TableToolbar.d.ts.map +1 -0
- package/dist/TableToolbar.jsx +28 -0
- package/dist/TableToolbar.jsx.map +1 -0
- package/dist/index.d.ts +73 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +73 -0
- package/dist/index.js.map +1 -0
- package/dist/types.d.ts +90 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +9 -0
- package/dist/types.js.map +1 -0
- package/package.json +62 -4
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,314 @@
|
|
|
1
|
-
|
|
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-18T23:41:41.672Z
|
|
7
|
+
-->
|
|
2
8
|
|
|
3
|
-
|
|
9
|
+
# @molecule/app-data-table-ui-solid
|
|
10
|
+
|
|
11
|
+
Solid data-table UI primitives (standalone — they render plain table elements
|
|
12
|
+
and do not require a table component from a UI package).
|
|
13
|
+
|
|
14
|
+
Exports:
|
|
15
|
+
|
|
16
|
+
- `<DataTableCard>` — full polished-pattern data table (card wrapper +
|
|
17
|
+
title + uppercase headers + divided rows + loading skeleton + empty
|
|
18
|
+
state). Drop-in for the most common dashboard CRUD use case.
|
|
19
|
+
- `<TableToolbar>` — top chrome with left/right slots + optional filter row.
|
|
20
|
+
- `<TableEmpty>` — single full-width "no rows" cell for hand-rolled tables.
|
|
21
|
+
- `<TableFooter>` — bottom bar (left summary + right pagination).
|
|
22
|
+
- `<RowWithActions>` — `<tr>` wrapper with trailing actions cell and click handler.
|
|
23
|
+
|
|
24
|
+
Use `DataTableCard` for new screens; use the row-level primitives to compose
|
|
25
|
+
richer custom tables (group-by, expandable rows, etc.).
|
|
26
|
+
|
|
27
|
+
This package is the Solid counterpart of `@molecule/app-data-table-ui-react`:
|
|
28
|
+
the same export names, the same props (React's prop names), and the same DOM
|
|
29
|
+
for the same input, so an app swaps framework by changing only the package
|
|
30
|
+
name in its imports.
|
|
31
|
+
|
|
32
|
+
> **Auto-generated, AI-first package reference** for the [molecule.dev](https://molecule.dev) ecosystem.
|
|
33
|
+
> It is written to be read by coding agents as much as by people, and is generated from this
|
|
34
|
+
> package's source — edit `src/index.ts` JSDoc, not this file.
|
|
35
|
+
|
|
36
|
+
## Quick Start
|
|
37
|
+
|
|
38
|
+
```tsx
|
|
39
|
+
import { DataTableCard } from '@molecule/app-data-table-ui-solid'
|
|
40
|
+
|
|
41
|
+
interface Row {
|
|
42
|
+
id: string
|
|
43
|
+
name: string
|
|
44
|
+
email: string
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
const columns = [
|
|
48
|
+
{
|
|
49
|
+
key: 'name',
|
|
50
|
+
header: t('members.name', {}, { defaultValue: 'Name' }),
|
|
51
|
+
cell: (row: Row) => row.name,
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
key: 'email',
|
|
55
|
+
header: t('members.email', {}, { defaultValue: 'Email' }),
|
|
56
|
+
cell: (row: Row) => row.email,
|
|
57
|
+
},
|
|
58
|
+
]
|
|
59
|
+
|
|
60
|
+
export function MembersTable(props: { members: Row[] }) {
|
|
61
|
+
return (
|
|
62
|
+
<DataTableCard
|
|
63
|
+
title={t('members.title', {}, { defaultValue: 'Team members' })}
|
|
64
|
+
columns={columns}
|
|
65
|
+
rows={props.members}
|
|
66
|
+
rowKey={(row) => row.id}
|
|
67
|
+
onRowClick={(row) => navigate(`/members/${row.id}`)}
|
|
68
|
+
emptyMessage={t('members.empty', {}, { defaultValue: 'No members yet.' })}
|
|
69
|
+
/>
|
|
70
|
+
)
|
|
71
|
+
}
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Type
|
|
75
|
+
|
|
76
|
+
`feature`
|
|
77
|
+
|
|
78
|
+
## Installation
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
npm install @molecule/app-data-table-ui-solid @molecule/app-solid @molecule/app-ui @molecule/app-ui-solid solid-js
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## API
|
|
85
|
+
|
|
86
|
+
### Interfaces
|
|
87
|
+
|
|
88
|
+
#### `DataTableColumn`
|
|
89
|
+
|
|
90
|
+
Column definition for a {@link DataTableCard} — specifies key, header, and
|
|
91
|
+
cell renderer.
|
|
92
|
+
|
|
93
|
+
```typescript
|
|
94
|
+
interface DataTableColumn<Row> {
|
|
95
|
+
/** Stable key for the column. */
|
|
96
|
+
key: string
|
|
97
|
+
/** Header label (usually a translated string). */
|
|
98
|
+
header: JSX.Element
|
|
99
|
+
/** Render the cell for this column from a row. */
|
|
100
|
+
cell: (row: Row) => JSX.Element
|
|
101
|
+
/** Optional extra `<th>` / `<td>` classes (e.g. `cm.textCenter`). */
|
|
102
|
+
cellClassName?: string
|
|
103
|
+
/** Optional extra classes on this column's `<th>`. */
|
|
104
|
+
headerClassName?: string
|
|
105
|
+
}
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
#### `DataTableCardProps`
|
|
109
|
+
|
|
110
|
+
Props for {@link DataTableCard}.
|
|
111
|
+
|
|
112
|
+
```typescript
|
|
113
|
+
interface DataTableCardProps<Row> {
|
|
114
|
+
/** Optional title above the table chrome. */
|
|
115
|
+
title?: JSX.Element
|
|
116
|
+
/** Right-aligned action / "View all" / link in the title row. */
|
|
117
|
+
titleAction?: JSX.Element
|
|
118
|
+
/** Column definitions. */
|
|
119
|
+
columns: ReadonlyArray<DataTableColumn<Row>>
|
|
120
|
+
/** Rows to render. Falls back to `emptyMessage` if empty and not loading. */
|
|
121
|
+
rows: ReadonlyArray<Row>
|
|
122
|
+
/** Pull a stable key from a row. */
|
|
123
|
+
rowKey: (row: Row) => string
|
|
124
|
+
/** When true, renders 5 skeleton rows instead of `rows`. */
|
|
125
|
+
loading?: boolean
|
|
126
|
+
/** Optional click handler per row. */
|
|
127
|
+
onRowClick?: (row: Row) => void
|
|
128
|
+
/** Empty-state content shown inside the tbody when not loading and `rows` is empty. */
|
|
129
|
+
emptyMessage?: JSX.Element
|
|
130
|
+
/** Extra classes on the outer card. */
|
|
131
|
+
className?: string
|
|
132
|
+
/** `data-mol-id` for AI-agent selectors. */
|
|
133
|
+
dataMolId?: string
|
|
134
|
+
}
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
#### `RowWithActionsProps`
|
|
138
|
+
|
|
139
|
+
Props for {@link RowWithActions}.
|
|
140
|
+
|
|
141
|
+
```typescript
|
|
142
|
+
interface RowWithActionsProps {
|
|
143
|
+
/** Row cells (each wrapped in `<td>`). */
|
|
144
|
+
children?: JSX.Element
|
|
145
|
+
/** Action buttons/menu to render in the trailing "actions" cell. */
|
|
146
|
+
actions?: JSX.Element
|
|
147
|
+
/** Called when the row body is clicked (not the actions cell). */
|
|
148
|
+
onClick?: () => void
|
|
149
|
+
/** Whether the row should render in a "selected" visual state. */
|
|
150
|
+
selected?: boolean
|
|
151
|
+
/** Extra classes on the `<tr>`. */
|
|
152
|
+
className?: string
|
|
153
|
+
}
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
#### `TableEmptyProps`
|
|
157
|
+
|
|
158
|
+
Props for {@link TableEmpty}.
|
|
159
|
+
|
|
160
|
+
```typescript
|
|
161
|
+
interface TableEmptyProps {
|
|
162
|
+
/** Number of columns to span (for colspan on the td). */
|
|
163
|
+
colSpan: number
|
|
164
|
+
/** Empty-state content. */
|
|
165
|
+
children?: JSX.Element
|
|
166
|
+
/** Extra classes on the cell. */
|
|
167
|
+
className?: string
|
|
168
|
+
}
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
#### `TableFooterProps`
|
|
172
|
+
|
|
173
|
+
Props for {@link TableFooter}.
|
|
174
|
+
|
|
175
|
+
```typescript
|
|
176
|
+
interface TableFooterProps {
|
|
177
|
+
/** Left slot — typically a summary line ("5 rows selected"). */
|
|
178
|
+
left?: JSX.Element
|
|
179
|
+
/** Right slot — typically a pagination bar. */
|
|
180
|
+
right?: JSX.Element
|
|
181
|
+
/** Extra classes. */
|
|
182
|
+
className?: string
|
|
183
|
+
}
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
#### `TableToolbarProps`
|
|
187
|
+
|
|
188
|
+
Props for {@link TableToolbar}.
|
|
189
|
+
|
|
190
|
+
```typescript
|
|
191
|
+
interface TableToolbarProps {
|
|
192
|
+
/** Left-aligned content — usually a title or a results count. */
|
|
193
|
+
left?: JSX.Element
|
|
194
|
+
/** Right-aligned actions — search input, filter button, export, etc. */
|
|
195
|
+
right?: JSX.Element
|
|
196
|
+
/** Optional full-width filter / chip row rendered below the main row. */
|
|
197
|
+
below?: JSX.Element
|
|
198
|
+
/** Extra classes. */
|
|
199
|
+
className?: string
|
|
200
|
+
}
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
### Functions
|
|
204
|
+
|
|
205
|
+
#### `DataTableCard(props)`
|
|
206
|
+
|
|
207
|
+
Drop-in card-shaped data table matching the polished flagship pattern.
|
|
208
|
+
|
|
209
|
+
Renders:
|
|
210
|
+
|
|
211
|
+
1. Optional title + action row
|
|
212
|
+
2. Card-wrapped table with:
|
|
213
|
+
- `bg-surface-container-lowest rounded-xl overflow-hidden shadow-sm` outer
|
|
214
|
+
- `bg-surface-container-low border-b border-outline-variant/10` thead
|
|
215
|
+
- `text-[10px] font-black text-on-surface-variant uppercase tracking-widest` th
|
|
216
|
+
- `divide-y divide-surface-container` tbody
|
|
217
|
+
- `hover:bg-surface-container-low transition-colors` rows (when `onRowClick` provided)
|
|
218
|
+
- 5-row pulsing skeleton when `loading`
|
|
219
|
+
- Single full-width cell with `emptyMessage` when empty
|
|
220
|
+
|
|
221
|
+
Rows are keyed by `rowKey(row)` (React's `key={rowKey(row)}`): a row keeps its
|
|
222
|
+
DOM node while its key is unchanged, moves with it on a reorder, and a new key
|
|
223
|
+
builds a new node.
|
|
224
|
+
|
|
225
|
+
```typescript
|
|
226
|
+
function DataTableCard<T>(props: DataTableCardProps<T>): JSX.Element
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
- `props` — Component props (see {@link DataTableCardProps}).
|
|
230
|
+
|
|
231
|
+
**Returns:** The rendered data table.
|
|
232
|
+
|
|
233
|
+
#### `RowWithActions(props)`
|
|
234
|
+
|
|
235
|
+
`<tr>` wrapper that adds a trailing actions cell plus a click handler on the
|
|
236
|
+
body. Useful for data tables where each row has a trailing ellipsis-menu or a
|
|
237
|
+
row of action buttons.
|
|
238
|
+
|
|
239
|
+
```typescript
|
|
240
|
+
function RowWithActions(props: RowWithActionsProps): JSX.Element
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
- `props` — Component props (see {@link RowWithActionsProps}).
|
|
244
|
+
|
|
245
|
+
**Returns:** The rendered row.
|
|
246
|
+
|
|
247
|
+
#### `TableEmpty(props)`
|
|
248
|
+
|
|
249
|
+
Single full-width row shown when a table has no data. Typically wraps an
|
|
250
|
+
empty-state component.
|
|
251
|
+
|
|
252
|
+
```typescript
|
|
253
|
+
function TableEmpty(props: TableEmptyProps): JSX.Element
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
- `props` — Component props (see {@link TableEmptyProps}).
|
|
257
|
+
|
|
258
|
+
**Returns:** The rendered empty row.
|
|
259
|
+
|
|
260
|
+
#### `TableFooter(props)`
|
|
261
|
+
|
|
262
|
+
Footer bar rendered below a table. Pass a pagination bar in `right`.
|
|
263
|
+
|
|
264
|
+
```typescript
|
|
265
|
+
function TableFooter(props: TableFooterProps): JSX.Element
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
- `props` — Component props (see {@link TableFooterProps}).
|
|
269
|
+
|
|
270
|
+
**Returns:** The rendered footer.
|
|
271
|
+
|
|
272
|
+
#### `TableToolbar(props)`
|
|
273
|
+
|
|
274
|
+
Table top-chrome row with left/right slots and an optional bottom sub-row for
|
|
275
|
+
active filter chips or tabs. Sits above the table.
|
|
276
|
+
|
|
277
|
+
```typescript
|
|
278
|
+
function TableToolbar(props: TableToolbarProps): JSX.Element
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
- `props` — Component props (see {@link TableToolbarProps}).
|
|
282
|
+
|
|
283
|
+
**Returns:** The rendered toolbar.
|
|
284
|
+
|
|
285
|
+
## Injection Notes
|
|
286
|
+
|
|
287
|
+
### Requirements
|
|
288
|
+
|
|
289
|
+
Peer dependencies:
|
|
290
|
+
|
|
291
|
+
- `@molecule/app-solid` ^3.5.0
|
|
292
|
+
- `@molecule/app-ui` ^1.3.11
|
|
293
|
+
- `@molecule/app-ui-solid` ^1.1.0
|
|
294
|
+
- `solid-js` ^1.8.0
|
|
295
|
+
|
|
296
|
+
### Runtime Dependencies
|
|
297
|
+
|
|
298
|
+
- `@molecule/app-solid`
|
|
299
|
+
- `@molecule/app-ui`
|
|
300
|
+
- `@molecule/app-ui-solid`
|
|
301
|
+
- `solid-js`
|
|
302
|
+
|
|
303
|
+
All text (`title`, column `header`s, `emptyMessage`) is consumer-provided —
|
|
304
|
+
pass translated strings; there is no built-in copy and no locale bond.
|
|
305
|
+
`DataTableCard`'s chrome uses Tailwind classes with Material-3 theme tokens
|
|
306
|
+
(`bg-surface-container-lowest`, `divide-surface-container`,
|
|
307
|
+
`text-on-surface-variant`, …) — the app's Tailwind theme must define those
|
|
308
|
+
tokens (molecule's default Tailwind ClassMap bond does); with a non-Tailwind
|
|
309
|
+
ClassMap the card surface, dividers, and skeleton styling drop out.
|
|
310
|
+
`onRowClick` makes rows pointer-clickable only — add your own keyboard path
|
|
311
|
+
(e.g. a link/button in a cell) where accessibility matters.
|
|
312
|
+
|
|
313
|
+
Rows are keyed by `rowKey(row)` (React's `key={rowKey(row)}`), so a row keeps
|
|
314
|
+
its DOM node while its key is unchanged.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Solid card-shaped data table.
|
|
3
|
+
*
|
|
4
|
+
* Solid counterpart of `@molecule/app-data-table-ui-react`'s `DataTableCard` —
|
|
5
|
+
* the same props (React names), the same ClassMap tokens, and the same DOM for
|
|
6
|
+
* the same input.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
import { type JSX } from 'solid-js';
|
|
11
|
+
import type { DataTableCardProps } from './types.js';
|
|
12
|
+
/**
|
|
13
|
+
* Drop-in card-shaped data table matching the polished flagship pattern.
|
|
14
|
+
*
|
|
15
|
+
* Renders:
|
|
16
|
+
* 1. Optional title + action row
|
|
17
|
+
* 2. Card-wrapped table with:
|
|
18
|
+
* - `bg-surface-container-lowest rounded-xl overflow-hidden shadow-sm` outer
|
|
19
|
+
* - `bg-surface-container-low border-b border-outline-variant/10` thead
|
|
20
|
+
* - `text-[10px] font-black text-on-surface-variant uppercase tracking-widest` th
|
|
21
|
+
* - `divide-y divide-surface-container` tbody
|
|
22
|
+
* - `hover:bg-surface-container-low transition-colors` rows (when `onRowClick` provided)
|
|
23
|
+
* - 5-row pulsing skeleton when `loading`
|
|
24
|
+
* - Single full-width cell with `emptyMessage` when empty
|
|
25
|
+
*
|
|
26
|
+
* Rows are keyed by `rowKey(row)` (React's `key={rowKey(row)}`): a row keeps its
|
|
27
|
+
* DOM node while its key is unchanged, moves with it on a reorder, and a new key
|
|
28
|
+
* builds a new node.
|
|
29
|
+
*
|
|
30
|
+
* @param props - Component props (see {@link DataTableCardProps}).
|
|
31
|
+
* @returns The rendered data table.
|
|
32
|
+
*/
|
|
33
|
+
export declare function DataTableCard<T>(props: DataTableCardProps<T>): JSX.Element;
|
|
34
|
+
//# sourceMappingURL=DataTableCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataTableCard.d.ts","sourceRoot":"","sources":["../src/DataTableCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAO,KAAK,GAAG,EAAQ,MAAM,UAAU,CAAA;AAI9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAEpD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,KAAK,EAAE,kBAAkB,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,OAAO,CAmJ1E"}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Solid card-shaped data table.
|
|
3
|
+
*
|
|
4
|
+
* Solid counterpart of `@molecule/app-data-table-ui-react`'s `DataTableCard` —
|
|
5
|
+
* the same props (React names), the same ClassMap tokens, and the same DOM for
|
|
6
|
+
* the same input.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
import { For, Show } from 'solid-js';
|
|
11
|
+
import { getClassMap } from '@molecule/app-ui';
|
|
12
|
+
/**
|
|
13
|
+
* Drop-in card-shaped data table matching the polished flagship pattern.
|
|
14
|
+
*
|
|
15
|
+
* Renders:
|
|
16
|
+
* 1. Optional title + action row
|
|
17
|
+
* 2. Card-wrapped table with:
|
|
18
|
+
* - `bg-surface-container-lowest rounded-xl overflow-hidden shadow-sm` outer
|
|
19
|
+
* - `bg-surface-container-low border-b border-outline-variant/10` thead
|
|
20
|
+
* - `text-[10px] font-black text-on-surface-variant uppercase tracking-widest` th
|
|
21
|
+
* - `divide-y divide-surface-container` tbody
|
|
22
|
+
* - `hover:bg-surface-container-low transition-colors` rows (when `onRowClick` provided)
|
|
23
|
+
* - 5-row pulsing skeleton when `loading`
|
|
24
|
+
* - Single full-width cell with `emptyMessage` when empty
|
|
25
|
+
*
|
|
26
|
+
* Rows are keyed by `rowKey(row)` (React's `key={rowKey(row)}`): a row keeps its
|
|
27
|
+
* DOM node while its key is unchanged, moves with it on a reorder, and a new key
|
|
28
|
+
* builds a new node.
|
|
29
|
+
*
|
|
30
|
+
* @param props - Component props (see {@link DataTableCardProps}).
|
|
31
|
+
* @returns The rendered data table.
|
|
32
|
+
*/
|
|
33
|
+
export function DataTableCard(props) {
|
|
34
|
+
const cm = getClassMap();
|
|
35
|
+
/** One stable record per row key, so `<For>` keys rows by key like React. */
|
|
36
|
+
const records = new Map();
|
|
37
|
+
/**
|
|
38
|
+
* The current rows' stable records, in render order.
|
|
39
|
+
*
|
|
40
|
+
* @returns The records for the current `rows`, creating one per new key.
|
|
41
|
+
*/
|
|
42
|
+
const keyedRows = () => {
|
|
43
|
+
const seen = new Set();
|
|
44
|
+
const ordered = [];
|
|
45
|
+
for (const row of props.rows) {
|
|
46
|
+
const key = props.rowKey(row);
|
|
47
|
+
seen.add(key);
|
|
48
|
+
const existing = records.get(key);
|
|
49
|
+
if (existing) {
|
|
50
|
+
ordered.push(existing);
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
const record = { key };
|
|
54
|
+
records.set(key, record);
|
|
55
|
+
ordered.push(record);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
for (const key of [...records.keys()])
|
|
59
|
+
if (!seen.has(key))
|
|
60
|
+
records.delete(key);
|
|
61
|
+
return ordered;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* The row a record currently stands for (a row's content stays reactive
|
|
65
|
+
* while its DOM node is kept).
|
|
66
|
+
*
|
|
67
|
+
* @param key - The record's key.
|
|
68
|
+
* @returns The row, or undefined while it is leaving.
|
|
69
|
+
*/
|
|
70
|
+
const rowFor = (key) => props.rows.find((row) => props.rowKey(row) === key);
|
|
71
|
+
return (<section data-mol-id={props.dataMolId} class={cm.cn(cm.stack(4), cm.dataTableCardShell, props.className)}>
|
|
72
|
+
<Show when={props.title !== undefined || props.titleAction !== undefined}>
|
|
73
|
+
<div class={cm.cn(cm.flex({ justify: 'between', align: 'center' }), cm.sp('px', 8), cm.sp('pt', 8))}>
|
|
74
|
+
<Show when={props.title !== undefined}>
|
|
75
|
+
<h3 class={cm.cn(cm.textSize('xl'), cm.fontWeight('bold'), cm.dataTableCardTitle)}>
|
|
76
|
+
{props.title}
|
|
77
|
+
</h3>
|
|
78
|
+
</Show>
|
|
79
|
+
{props.titleAction}
|
|
80
|
+
</div>
|
|
81
|
+
</Show>
|
|
82
|
+
<div class={cm.dataTableCardScroller}>
|
|
83
|
+
<table class={cm.cn(cm.w('full'), cm.dataTableCardTable)}>
|
|
84
|
+
<thead>
|
|
85
|
+
<tr class={cm.dataTableCardHead}>
|
|
86
|
+
<For each={props.columns}>
|
|
87
|
+
{(column, index) => (<th class={cm.cn(index() === 0 ? cm.sp('px', 8) : cm.sp('px', 4), cm.sp('py', 4), cm.dataTableCardHeaderCell, column.headerClassName)}>
|
|
88
|
+
{column.header}
|
|
89
|
+
</th>)}
|
|
90
|
+
</For>
|
|
91
|
+
</tr>
|
|
92
|
+
</thead>
|
|
93
|
+
<tbody class={cm.dataTableCardBody}>
|
|
94
|
+
<Show when={props.loading}>
|
|
95
|
+
<For each={[0, 1, 2, 3, 4]}>
|
|
96
|
+
{() => (<tr aria-hidden="true">
|
|
97
|
+
<td colSpan={props.columns.length} class={cm.cn(cm.sp('px', 8), cm.sp('py', 5))}>
|
|
98
|
+
<div class={cm.cn(cm.h(4), cm.dataTableCardSkeletonBar)}/>
|
|
99
|
+
</td>
|
|
100
|
+
</tr>)}
|
|
101
|
+
</For>
|
|
102
|
+
</Show>
|
|
103
|
+
<Show when={!props.loading && props.rows.length === 0}>
|
|
104
|
+
<tr>
|
|
105
|
+
<td colSpan={props.columns.length} class={cm.cn(cm.sp('px', 8), cm.sp('py', 12), cm.textCenter, cm.dataTableCardEmptyCell)}>
|
|
106
|
+
{props.emptyMessage}
|
|
107
|
+
</td>
|
|
108
|
+
</tr>
|
|
109
|
+
</Show>
|
|
110
|
+
<Show when={!props.loading && props.rows.length > 0}>
|
|
111
|
+
<For each={keyedRows()}>
|
|
112
|
+
{(record) => (<Show when={rowFor(record.key)}>
|
|
113
|
+
{(row) => (<tr onClick={props.onRowClick ? () => props.onRowClick?.(row()) : undefined} class={cm.cn(props.onRowClick ? cm.cursorPointer : '', cm.dataTableCardRowHover)}>
|
|
114
|
+
<For each={props.columns}>
|
|
115
|
+
{(column, index) => (<td class={cm.cn(index() === 0 ? cm.sp('px', 8) : cm.sp('px', 4), cm.sp('py', 5), column.cellClassName)}>
|
|
116
|
+
{column.cell(row())}
|
|
117
|
+
</td>)}
|
|
118
|
+
</For>
|
|
119
|
+
</tr>)}
|
|
120
|
+
</Show>)}
|
|
121
|
+
</For>
|
|
122
|
+
</Show>
|
|
123
|
+
</tbody>
|
|
124
|
+
</table>
|
|
125
|
+
</div>
|
|
126
|
+
</section>);
|
|
127
|
+
}
|
|
128
|
+
//# sourceMappingURL=DataTableCard.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataTableCard.jsx","sourceRoot":"","sources":["../src/DataTableCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,GAAG,EAAY,IAAI,EAAE,MAAM,UAAU,CAAA;AAE9C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAI9C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,UAAU,aAAa,CAAI,KAA4B;IAC3D,MAAM,EAAE,GAAG,WAAW,EAAE,CAAA;IACxB,6EAA6E;IAC7E,MAAM,OAAO,GAAG,IAAI,GAAG,EAA2B,CAAA;IAElD;;;;OAIG;IACH,MAAM,SAAS,GAAG,GAAsB,EAAE;QACxC,MAAM,IAAI,GAAG,IAAI,GAAG,EAAU,CAAA;QAC9B,MAAM,OAAO,GAAsB,EAAE,CAAA;QACrC,KAAK,MAAM,GAAG,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC;YAC7B,MAAM,GAAG,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;YAC7B,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;YACb,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;YACjC,IAAI,QAAQ,EAAE,CAAC;gBACb,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;YACxB,CAAC;iBAAM,CAAC;gBACN,MAAM,MAAM,GAAG,EAAE,GAAG,EAAE,CAAA;gBACtB,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,CAAA;gBACxB,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;YACtB,CAAC;QACH,CAAC;QACD,KAAK,MAAM,GAAG,IAAI,CA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EF;8BAAA,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CACrB;4BAAA,EAAE,EAAE,CAAC,CACN,CACH;wBAAA,EAAE,GAAG,CACP;sBAAA,EAAE,EAAE,CAAC,CACN,CACH;kBAAA,EAAE,IAAI,CAAC,CACR,CACH;cAAA,EAAE,GAAG,CACP;YAAA,EAAE,IAAI,CACR;UAAA,EAAE,KAAK,CACT;QAAA,EAAE,KAAK,CACT;MAAA,EAAE,GAAG,CACP;IAAA,EAAE,OAAO,CAAC,CACX,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Solid `<tr>` wrapper with a trailing actions cell.
|
|
3
|
+
*
|
|
4
|
+
* Solid counterpart of `@molecule/app-data-table-ui-react`'s `RowWithActions` —
|
|
5
|
+
* the same props (React names), the same ClassMap tokens, and the same DOM for
|
|
6
|
+
* the same input.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
import type { JSX } from 'solid-js';
|
|
11
|
+
import type { RowWithActionsProps } from './types.js';
|
|
12
|
+
/**
|
|
13
|
+
* `<tr>` wrapper that adds a trailing actions cell plus a click handler on the
|
|
14
|
+
* body. Useful for data tables where each row has a trailing ellipsis-menu or a
|
|
15
|
+
* row of action buttons.
|
|
16
|
+
*
|
|
17
|
+
* @param props - Component props (see {@link RowWithActionsProps}).
|
|
18
|
+
* @returns The rendered row.
|
|
19
|
+
*/
|
|
20
|
+
export declare function RowWithActions(props: RowWithActionsProps): JSX.Element;
|
|
21
|
+
//# sourceMappingURL=RowWithActions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RowWithActions.d.ts","sourceRoot":"","sources":["../src/RowWithActions.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAKnC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAErD;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,GAAG,GAAG,CAAC,OAAO,CAgBtE"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Solid `<tr>` wrapper with a trailing actions cell.
|
|
3
|
+
*
|
|
4
|
+
* Solid counterpart of `@molecule/app-data-table-ui-react`'s `RowWithActions` —
|
|
5
|
+
* the same props (React names), the same ClassMap tokens, and the same DOM for
|
|
6
|
+
* the same input.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
import { Show } from 'solid-js';
|
|
11
|
+
import { getClassMap } from '@molecule/app-ui';
|
|
12
|
+
/**
|
|
13
|
+
* `<tr>` wrapper that adds a trailing actions cell plus a click handler on the
|
|
14
|
+
* body. Useful for data tables where each row has a trailing ellipsis-menu or a
|
|
15
|
+
* row of action buttons.
|
|
16
|
+
*
|
|
17
|
+
* @param props - Component props (see {@link RowWithActionsProps}).
|
|
18
|
+
* @returns The rendered row.
|
|
19
|
+
*/
|
|
20
|
+
export function RowWithActions(props) {
|
|
21
|
+
const cm = getClassMap();
|
|
22
|
+
return (<tr onClick={props.onClick} aria-selected={props.selected} class={cm.cn(props.onClick ? cm.cursorPointer : undefined, props.className)}>
|
|
23
|
+
{props.children}
|
|
24
|
+
<Show when={props.actions !== undefined}>
|
|
25
|
+
<td onClick={(event) => event.stopPropagation()} class={cm.cn(cm.textCenter)}>
|
|
26
|
+
{props.actions}
|
|
27
|
+
</td>
|
|
28
|
+
</Show>
|
|
29
|
+
</tr>);
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=RowWithActions.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RowWithActions.jsx","sourceRoot":"","sources":["../src/RowWithActions.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AAE/B,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAI9C;;;;;;;GAOG;AACH,MAAM,UAAU,cAAc,CAAC,KAA0B;IACvD,MAAM,EAAE,GAAG,WAAW,EAAE,CAAA;IACxB,OAAO,CACL,CAAC,EAAE,CACD,OAAO,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CACvB,aAAa,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAC9B,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAE5E;MAAA,CAAC,KAAK,CAAC,QAAQ,CACf;MAAA,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,OAAO,KAAK,SAAS,CAAC,CACtC;QAAA,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAC3E;UAAA,CAAC,KAAK,CAAC,OAAO,CAChB;QAAA,EAAE,EAAE,CACN;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,EAAE,CAAC,CACN,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Solid single full-width empty row.
|
|
3
|
+
*
|
|
4
|
+
* Solid counterpart of `@molecule/app-data-table-ui-react`'s `TableEmpty` — the
|
|
5
|
+
* same props (React names), the same ClassMap tokens, and the same DOM for the
|
|
6
|
+
* same input.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
import type { JSX } from 'solid-js';
|
|
11
|
+
import type { TableEmptyProps } from './types.js';
|
|
12
|
+
/**
|
|
13
|
+
* Single full-width row shown when a table has no data. Typically wraps an
|
|
14
|
+
* empty-state component.
|
|
15
|
+
*
|
|
16
|
+
* @param props - Component props (see {@link TableEmptyProps}).
|
|
17
|
+
* @returns The rendered empty row.
|
|
18
|
+
*/
|
|
19
|
+
export declare function TableEmpty(props: TableEmptyProps): JSX.Element;
|
|
20
|
+
//# sourceMappingURL=TableEmpty.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableEmpty.d.ts","sourceRoot":"","sources":["../src/TableEmpty.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAInC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAEjD;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,GAAG,GAAG,CAAC,OAAO,CAS9D"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Solid single full-width empty row.
|
|
3
|
+
*
|
|
4
|
+
* Solid counterpart of `@molecule/app-data-table-ui-react`'s `TableEmpty` — the
|
|
5
|
+
* same props (React names), the same ClassMap tokens, and the same DOM for the
|
|
6
|
+
* same input.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
import { getClassMap } from '@molecule/app-ui';
|
|
11
|
+
/**
|
|
12
|
+
* Single full-width row shown when a table has no data. Typically wraps an
|
|
13
|
+
* empty-state component.
|
|
14
|
+
*
|
|
15
|
+
* @param props - Component props (see {@link TableEmptyProps}).
|
|
16
|
+
* @returns The rendered empty row.
|
|
17
|
+
*/
|
|
18
|
+
export function TableEmpty(props) {
|
|
19
|
+
const cm = getClassMap();
|
|
20
|
+
return (<tr>
|
|
21
|
+
<td colSpan={props.colSpan} class={cm.cn(cm.sp('py', 10), cm.textCenter, props.className)}>
|
|
22
|
+
{props.children}
|
|
23
|
+
</td>
|
|
24
|
+
</tr>);
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=TableEmpty.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableEmpty.jsx","sourceRoot":"","sources":["../src/TableEmpty.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAI9C;;;;;;GAMG;AACH,MAAM,UAAU,UAAU,CAAC,KAAsB;IAC/C,MAAM,EAAE,GAAG,WAAW,EAAE,CAAA;IACxB,OAAO,CACL,CAAC,EAAE,CACD;MAAA,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CACxF;QAAA,CAAC,KAAK,CAAC,QAAQ,CACjB;MAAA,EAAE,EAAE,CACN;IAAA,EAAE,EAAE,CAAC,CACN,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Solid table footer bar.
|
|
3
|
+
*
|
|
4
|
+
* Solid counterpart of `@molecule/app-data-table-ui-react`'s `TableFooter` — the
|
|
5
|
+
* same props (React names), the same ClassMap tokens, and the same DOM for the
|
|
6
|
+
* same input.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
import type { JSX } from 'solid-js';
|
|
11
|
+
import type { TableFooterProps } from './types.js';
|
|
12
|
+
/**
|
|
13
|
+
* Footer bar rendered below a table. Pass a pagination bar in `right`.
|
|
14
|
+
*
|
|
15
|
+
* @param props - Component props (see {@link TableFooterProps}).
|
|
16
|
+
* @returns The rendered footer.
|
|
17
|
+
*/
|
|
18
|
+
export declare function TableFooter(props: TableFooterProps): JSX.Element;
|
|
19
|
+
//# sourceMappingURL=TableFooter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableFooter.d.ts","sourceRoot":"","sources":["../src/TableFooter.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAInC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAElD;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,GAAG,GAAG,CAAC,OAAO,CAchE"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Solid table footer bar.
|
|
3
|
+
*
|
|
4
|
+
* Solid counterpart of `@molecule/app-data-table-ui-react`'s `TableFooter` — the
|
|
5
|
+
* same props (React names), the same ClassMap tokens, and the same DOM for the
|
|
6
|
+
* same input.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
import { getClassMap } from '@molecule/app-ui';
|
|
11
|
+
/**
|
|
12
|
+
* Footer bar rendered below a table. Pass a pagination bar in `right`.
|
|
13
|
+
*
|
|
14
|
+
* @param props - Component props (see {@link TableFooterProps}).
|
|
15
|
+
* @returns The rendered footer.
|
|
16
|
+
*/
|
|
17
|
+
export function TableFooter(props) {
|
|
18
|
+
const cm = getClassMap();
|
|
19
|
+
return (<div class={cm.cn(cm.flex({ justify: 'between', align: 'center', gap: 'sm', wrap: 'wrap' }), cm.sp('pt', 3), props.className)}>
|
|
20
|
+
<div>{props.left}</div>
|
|
21
|
+
<div>{props.right}</div>
|
|
22
|
+
</div>);
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=TableFooter.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableFooter.jsx","sourceRoot":"","sources":["../src/TableFooter.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAI9C;;;;;GAKG;AACH,MAAM,UAAU,WAAW,CAAC,KAAuB;IACjD,MAAM,EAAE,GAAG,WAAW,EAAE,CAAA;IACxB,OAAO,CACL,CAAC,GAAG,CACF,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CACV,EAAE,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,EACzE,EAAE,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,EACd,KAAK,CAAC,SAAS,CAChB,CAAC,CAEF;MAAA,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,GAAG,CACtB;MAAA,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,GAAG,CACzB;IAAA,EAAE,GAAG,CAAC,CACP,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Solid table top-chrome toolbar.
|
|
3
|
+
*
|
|
4
|
+
* Solid counterpart of `@molecule/app-data-table-ui-react`'s `TableToolbar` — the
|
|
5
|
+
* same props (React names), the same ClassMap tokens, and the same DOM for the
|
|
6
|
+
* same input.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
import type { JSX } from 'solid-js';
|
|
11
|
+
import type { TableToolbarProps } from './types.js';
|
|
12
|
+
/**
|
|
13
|
+
* Table top-chrome row with left/right slots and an optional bottom sub-row for
|
|
14
|
+
* active filter chips or tabs. Sits above the table.
|
|
15
|
+
*
|
|
16
|
+
* @param props - Component props (see {@link TableToolbarProps}).
|
|
17
|
+
* @returns The rendered toolbar.
|
|
18
|
+
*/
|
|
19
|
+
export declare function TableToolbar(props: TableToolbarProps): JSX.Element;
|
|
20
|
+
//# sourceMappingURL=TableToolbar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableToolbar.d.ts","sourceRoot":"","sources":["../src/TableToolbar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAInC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEnD;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,GAAG,CAAC,OAAO,CAWlE"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Solid table top-chrome toolbar.
|
|
3
|
+
*
|
|
4
|
+
* Solid counterpart of `@molecule/app-data-table-ui-react`'s `TableToolbar` — the
|
|
5
|
+
* same props (React names), the same ClassMap tokens, and the same DOM for the
|
|
6
|
+
* same input.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
import { getClassMap } from '@molecule/app-ui';
|
|
11
|
+
/**
|
|
12
|
+
* Table top-chrome row with left/right slots and an optional bottom sub-row for
|
|
13
|
+
* active filter chips or tabs. Sits above the table.
|
|
14
|
+
*
|
|
15
|
+
* @param props - Component props (see {@link TableToolbarProps}).
|
|
16
|
+
* @returns The rendered toolbar.
|
|
17
|
+
*/
|
|
18
|
+
export function TableToolbar(props) {
|
|
19
|
+
const cm = getClassMap();
|
|
20
|
+
return (<div class={cm.cn(cm.stack(2), props.className)}>
|
|
21
|
+
<div class={cm.flex({ justify: 'between', align: 'center', gap: 'sm', wrap: 'wrap' })}>
|
|
22
|
+
<div class={cm.flex({ align: 'center', gap: 'sm' })}>{props.left}</div>
|
|
23
|
+
<div class={cm.flex({ align: 'center', gap: 'sm' })}>{props.right}</div>
|
|
24
|
+
</div>
|
|
25
|
+
{props.below}
|
|
26
|
+
</div>);
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=TableToolbar.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableToolbar.jsx","sourceRoot":"","sources":["../src/TableToolbar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAI9C;;;;;;GAMG;AACH,MAAM,UAAU,YAAY,CAAC,KAAwB;IACnD,MAAM,EAAE,GAAG,WAAW,EAAE,CAAA;IACxB,OAAO,CACL,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAC9C;MAAA,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC,CACpF;QAAA,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,GAAG,CACtE;QAAA,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,GAAG,CACzE;MAAA,EAAE,GAAG,CACL;MAAA,CAAC,KAAK,CAAC,KAAK,CACd;IAAA,EAAE,GAAG,CAAC,CACP,CAAA;AACH,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Solid data-table UI primitives (standalone — they render plain table elements
|
|
3
|
+
* and do not require a table component from a UI package).
|
|
4
|
+
*
|
|
5
|
+
* Exports:
|
|
6
|
+
* - `<DataTableCard>` — full polished-pattern data table (card wrapper +
|
|
7
|
+
* title + uppercase headers + divided rows + loading skeleton + empty
|
|
8
|
+
* state). Drop-in for the most common dashboard CRUD use case.
|
|
9
|
+
* - `<TableToolbar>` — top chrome with left/right slots + optional filter row.
|
|
10
|
+
* - `<TableEmpty>` — single full-width "no rows" cell for hand-rolled tables.
|
|
11
|
+
* - `<TableFooter>` — bottom bar (left summary + right pagination).
|
|
12
|
+
* - `<RowWithActions>` — `<tr>` wrapper with trailing actions cell and click handler.
|
|
13
|
+
*
|
|
14
|
+
* Use `DataTableCard` for new screens; use the row-level primitives to compose
|
|
15
|
+
* richer custom tables (group-by, expandable rows, etc.).
|
|
16
|
+
*
|
|
17
|
+
* This package is the Solid counterpart of `@molecule/app-data-table-ui-react`:
|
|
18
|
+
* the same export names, the same props (React's prop names), and the same DOM
|
|
19
|
+
* for the same input, so an app swaps framework by changing only the package
|
|
20
|
+
* name in its imports.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```tsx
|
|
24
|
+
* import { DataTableCard } from '@molecule/app-data-table-ui-solid'
|
|
25
|
+
*
|
|
26
|
+
* interface Row {
|
|
27
|
+
* id: string
|
|
28
|
+
* name: string
|
|
29
|
+
* email: string
|
|
30
|
+
* }
|
|
31
|
+
*
|
|
32
|
+
* const columns = [
|
|
33
|
+
* { key: 'name', header: t('members.name', {}, { defaultValue: 'Name' }), cell: (row: Row) => row.name },
|
|
34
|
+
* { key: 'email', header: t('members.email', {}, { defaultValue: 'Email' }), cell: (row: Row) => row.email },
|
|
35
|
+
* ]
|
|
36
|
+
*
|
|
37
|
+
* export function MembersTable(props: { members: Row[] }) {
|
|
38
|
+
* return (
|
|
39
|
+
* <DataTableCard
|
|
40
|
+
* title={t('members.title', {}, { defaultValue: 'Team members' })}
|
|
41
|
+
* columns={columns}
|
|
42
|
+
* rows={props.members}
|
|
43
|
+
* rowKey={(row) => row.id}
|
|
44
|
+
* onRowClick={(row) => navigate(`/members/${row.id}`)}
|
|
45
|
+
* emptyMessage={t('members.empty', {}, { defaultValue: 'No members yet.' })}
|
|
46
|
+
* />
|
|
47
|
+
* )
|
|
48
|
+
* }
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* @remarks
|
|
52
|
+
* All text (`title`, column `header`s, `emptyMessage`) is consumer-provided —
|
|
53
|
+
* pass translated strings; there is no built-in copy and no locale bond.
|
|
54
|
+
* `DataTableCard`'s chrome uses Tailwind classes with Material-3 theme tokens
|
|
55
|
+
* (`bg-surface-container-lowest`, `divide-surface-container`,
|
|
56
|
+
* `text-on-surface-variant`, …) — the app's Tailwind theme must define those
|
|
57
|
+
* tokens (molecule's default Tailwind ClassMap bond does); with a non-Tailwind
|
|
58
|
+
* ClassMap the card surface, dividers, and skeleton styling drop out.
|
|
59
|
+
* `onRowClick` makes rows pointer-clickable only — add your own keyboard path
|
|
60
|
+
* (e.g. a link/button in a cell) where accessibility matters.
|
|
61
|
+
*
|
|
62
|
+
* Rows are keyed by `rowKey(row)` (React's `key={rowKey(row)}`), so a row keeps
|
|
63
|
+
* its DOM node while its key is unchanged.
|
|
64
|
+
*
|
|
65
|
+
* @module
|
|
66
|
+
*/
|
|
67
|
+
export * from './DataTableCard.jsx';
|
|
68
|
+
export * from './RowWithActions.jsx';
|
|
69
|
+
export * from './TableEmpty.jsx';
|
|
70
|
+
export * from './TableFooter.jsx';
|
|
71
|
+
export * from './TableToolbar.jsx';
|
|
72
|
+
export * from './types.js';
|
|
73
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiEG;AAEH,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA;AACpC,cAAc,kBAAkB,CAAA;AAChC,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,YAAY,CAAA"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Solid data-table UI primitives (standalone — they render plain table elements
|
|
3
|
+
* and do not require a table component from a UI package).
|
|
4
|
+
*
|
|
5
|
+
* Exports:
|
|
6
|
+
* - `<DataTableCard>` — full polished-pattern data table (card wrapper +
|
|
7
|
+
* title + uppercase headers + divided rows + loading skeleton + empty
|
|
8
|
+
* state). Drop-in for the most common dashboard CRUD use case.
|
|
9
|
+
* - `<TableToolbar>` — top chrome with left/right slots + optional filter row.
|
|
10
|
+
* - `<TableEmpty>` — single full-width "no rows" cell for hand-rolled tables.
|
|
11
|
+
* - `<TableFooter>` — bottom bar (left summary + right pagination).
|
|
12
|
+
* - `<RowWithActions>` — `<tr>` wrapper with trailing actions cell and click handler.
|
|
13
|
+
*
|
|
14
|
+
* Use `DataTableCard` for new screens; use the row-level primitives to compose
|
|
15
|
+
* richer custom tables (group-by, expandable rows, etc.).
|
|
16
|
+
*
|
|
17
|
+
* This package is the Solid counterpart of `@molecule/app-data-table-ui-react`:
|
|
18
|
+
* the same export names, the same props (React's prop names), and the same DOM
|
|
19
|
+
* for the same input, so an app swaps framework by changing only the package
|
|
20
|
+
* name in its imports.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```tsx
|
|
24
|
+
* import { DataTableCard } from '@molecule/app-data-table-ui-solid'
|
|
25
|
+
*
|
|
26
|
+
* interface Row {
|
|
27
|
+
* id: string
|
|
28
|
+
* name: string
|
|
29
|
+
* email: string
|
|
30
|
+
* }
|
|
31
|
+
*
|
|
32
|
+
* const columns = [
|
|
33
|
+
* { key: 'name', header: t('members.name', {}, { defaultValue: 'Name' }), cell: (row: Row) => row.name },
|
|
34
|
+
* { key: 'email', header: t('members.email', {}, { defaultValue: 'Email' }), cell: (row: Row) => row.email },
|
|
35
|
+
* ]
|
|
36
|
+
*
|
|
37
|
+
* export function MembersTable(props: { members: Row[] }) {
|
|
38
|
+
* return (
|
|
39
|
+
* <DataTableCard
|
|
40
|
+
* title={t('members.title', {}, { defaultValue: 'Team members' })}
|
|
41
|
+
* columns={columns}
|
|
42
|
+
* rows={props.members}
|
|
43
|
+
* rowKey={(row) => row.id}
|
|
44
|
+
* onRowClick={(row) => navigate(`/members/${row.id}`)}
|
|
45
|
+
* emptyMessage={t('members.empty', {}, { defaultValue: 'No members yet.' })}
|
|
46
|
+
* />
|
|
47
|
+
* )
|
|
48
|
+
* }
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* @remarks
|
|
52
|
+
* All text (`title`, column `header`s, `emptyMessage`) is consumer-provided —
|
|
53
|
+
* pass translated strings; there is no built-in copy and no locale bond.
|
|
54
|
+
* `DataTableCard`'s chrome uses Tailwind classes with Material-3 theme tokens
|
|
55
|
+
* (`bg-surface-container-lowest`, `divide-surface-container`,
|
|
56
|
+
* `text-on-surface-variant`, …) — the app's Tailwind theme must define those
|
|
57
|
+
* tokens (molecule's default Tailwind ClassMap bond does); with a non-Tailwind
|
|
58
|
+
* ClassMap the card surface, dividers, and skeleton styling drop out.
|
|
59
|
+
* `onRowClick` makes rows pointer-clickable only — add your own keyboard path
|
|
60
|
+
* (e.g. a link/button in a cell) where accessibility matters.
|
|
61
|
+
*
|
|
62
|
+
* Rows are keyed by `rowKey(row)` (React's `key={rowKey(row)}`), so a row keeps
|
|
63
|
+
* its DOM node while its key is unchanged.
|
|
64
|
+
*
|
|
65
|
+
* @module
|
|
66
|
+
*/
|
|
67
|
+
export * from './DataTableCard.jsx';
|
|
68
|
+
export * from './RowWithActions.jsx';
|
|
69
|
+
export * from './TableEmpty.jsx';
|
|
70
|
+
export * from './TableFooter.jsx';
|
|
71
|
+
export * from './TableToolbar.jsx';
|
|
72
|
+
export * from './types.js';
|
|
73
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiEG;AAEH,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA;AACpC,cAAc,kBAAkB,CAAA;AAChC,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,YAAY,CAAA"}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Types for the Solid card data table and its table-chrome primitives — the
|
|
3
|
+
* same props `@molecule/app-data-table-ui-react` accepts (React's prop names),
|
|
4
|
+
* with node-valued props typed as Solid's JSX element.
|
|
5
|
+
*
|
|
6
|
+
* @module
|
|
7
|
+
*/
|
|
8
|
+
import type { JSX } from 'solid-js';
|
|
9
|
+
/**
|
|
10
|
+
* Column definition for a {@link DataTableCard} — specifies key, header, and
|
|
11
|
+
* cell renderer.
|
|
12
|
+
*/
|
|
13
|
+
export interface DataTableColumn<Row> {
|
|
14
|
+
/** Stable key for the column. */
|
|
15
|
+
key: string;
|
|
16
|
+
/** Header label (usually a translated string). */
|
|
17
|
+
header: JSX.Element;
|
|
18
|
+
/** Render the cell for this column from a row. */
|
|
19
|
+
cell: (row: Row) => JSX.Element;
|
|
20
|
+
/** Optional extra `<th>` / `<td>` classes (e.g. `cm.textCenter`). */
|
|
21
|
+
cellClassName?: string;
|
|
22
|
+
/** Optional extra classes on this column's `<th>`. */
|
|
23
|
+
headerClassName?: string;
|
|
24
|
+
}
|
|
25
|
+
/** Props for {@link DataTableCard}. */
|
|
26
|
+
export interface DataTableCardProps<Row> {
|
|
27
|
+
/** Optional title above the table chrome. */
|
|
28
|
+
title?: JSX.Element;
|
|
29
|
+
/** Right-aligned action / "View all" / link in the title row. */
|
|
30
|
+
titleAction?: JSX.Element;
|
|
31
|
+
/** Column definitions. */
|
|
32
|
+
columns: ReadonlyArray<DataTableColumn<Row>>;
|
|
33
|
+
/** Rows to render. Falls back to `emptyMessage` if empty and not loading. */
|
|
34
|
+
rows: ReadonlyArray<Row>;
|
|
35
|
+
/** Pull a stable key from a row. */
|
|
36
|
+
rowKey: (row: Row) => string;
|
|
37
|
+
/** When true, renders 5 skeleton rows instead of `rows`. */
|
|
38
|
+
loading?: boolean;
|
|
39
|
+
/** Optional click handler per row. */
|
|
40
|
+
onRowClick?: (row: Row) => void;
|
|
41
|
+
/** Empty-state content shown inside the tbody when not loading and `rows` is empty. */
|
|
42
|
+
emptyMessage?: JSX.Element;
|
|
43
|
+
/** Extra classes on the outer card. */
|
|
44
|
+
className?: string;
|
|
45
|
+
/** `data-mol-id` for AI-agent selectors. */
|
|
46
|
+
dataMolId?: string;
|
|
47
|
+
}
|
|
48
|
+
/** Props for {@link RowWithActions}. */
|
|
49
|
+
export interface RowWithActionsProps {
|
|
50
|
+
/** Row cells (each wrapped in `<td>`). */
|
|
51
|
+
children?: JSX.Element;
|
|
52
|
+
/** Action buttons/menu to render in the trailing "actions" cell. */
|
|
53
|
+
actions?: JSX.Element;
|
|
54
|
+
/** Called when the row body is clicked (not the actions cell). */
|
|
55
|
+
onClick?: () => void;
|
|
56
|
+
/** Whether the row should render in a "selected" visual state. */
|
|
57
|
+
selected?: boolean;
|
|
58
|
+
/** Extra classes on the `<tr>`. */
|
|
59
|
+
className?: string;
|
|
60
|
+
}
|
|
61
|
+
/** Props for {@link TableEmpty}. */
|
|
62
|
+
export interface TableEmptyProps {
|
|
63
|
+
/** Number of columns to span (for colspan on the td). */
|
|
64
|
+
colSpan: number;
|
|
65
|
+
/** Empty-state content. */
|
|
66
|
+
children?: JSX.Element;
|
|
67
|
+
/** Extra classes on the cell. */
|
|
68
|
+
className?: string;
|
|
69
|
+
}
|
|
70
|
+
/** Props for {@link TableFooter}. */
|
|
71
|
+
export interface TableFooterProps {
|
|
72
|
+
/** Left slot — typically a summary line ("5 rows selected"). */
|
|
73
|
+
left?: JSX.Element;
|
|
74
|
+
/** Right slot — typically a pagination bar. */
|
|
75
|
+
right?: JSX.Element;
|
|
76
|
+
/** Extra classes. */
|
|
77
|
+
className?: string;
|
|
78
|
+
}
|
|
79
|
+
/** Props for {@link TableToolbar}. */
|
|
80
|
+
export interface TableToolbarProps {
|
|
81
|
+
/** Left-aligned content — usually a title or a results count. */
|
|
82
|
+
left?: JSX.Element;
|
|
83
|
+
/** Right-aligned actions — search input, filter button, export, etc. */
|
|
84
|
+
right?: JSX.Element;
|
|
85
|
+
/** Optional full-width filter / chip row rendered below the main row. */
|
|
86
|
+
below?: JSX.Element;
|
|
87
|
+
/** Extra classes. */
|
|
88
|
+
className?: string;
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAEnC;;;GAGG;AACH,MAAM,WAAW,eAAe,CAAC,GAAG;IAClC,iCAAiC;IACjC,GAAG,EAAE,MAAM,CAAA;IACX,kDAAkD;IAClD,MAAM,EAAE,GAAG,CAAC,OAAO,CAAA;IACnB,kDAAkD;IAClD,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,GAAG,CAAC,OAAO,CAAA;IAC/B,qEAAqE;IACrE,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,sDAAsD;IACtD,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB;AAED,uCAAuC;AACvC,MAAM,WAAW,kBAAkB,CAAC,GAAG;IACrC,6CAA6C;IAC7C,KAAK,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;IACnB,iEAAiE;IACjE,WAAW,CAAC,EAAE,GAAG,CA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C,OAAO,CAAA;IACnB,qBAAqB;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,sCAAsC;AACtC,MAAM,WAAW,iBAAiB;IAChC,iEAAiE;IACjE,IAAI,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;IAClB,wEAAwE;IACxE,KAAK,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;IACnB,yEAAyE;IACzE,KAAK,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;IACnB,qBAAqB;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
|
package/dist/types.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Types for the Solid card data table and its table-chrome primitives — the
|
|
3
|
+
* same props `@molecule/app-data-table-ui-react` accepts (React's prop names),
|
|
4
|
+
* with node-valued props typed as Solid's JSX element.
|
|
5
|
+
*
|
|
6
|
+
* @module
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,64 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/app-data-table-ui-solid",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "Card data table + table chrome primitives (toolbar, footer, row-with-actions, empty row) — standalone, renders its own table elements",
|
|
5
|
+
"homepage": "https://www.molecule.dev/packages/app-data-table-ui-solid",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "dist/index.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"README.md"
|
|
18
|
+
],
|
|
19
|
+
"scripts": {
|
|
20
|
+
"build": "tsc",
|
|
21
|
+
"dev": "tsc --watch",
|
|
22
|
+
"test": "vitest run",
|
|
23
|
+
"test:watch": "vitest"
|
|
24
|
+
},
|
|
25
|
+
"keywords": [
|
|
26
|
+
"molecule",
|
|
27
|
+
"data-table-ui",
|
|
28
|
+
"solid"
|
|
29
|
+
],
|
|
30
|
+
"author": "Molecule Dev, Inc. (https://molecule.dev)",
|
|
31
|
+
"license": "Apache-2.0",
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "https://github.com/molecule-dev/molecule.git",
|
|
35
|
+
"directory": "packages/app/features/data-table-ui-solid"
|
|
36
|
+
},
|
|
37
|
+
"engines": {
|
|
38
|
+
"node": ">=20"
|
|
39
|
+
},
|
|
40
|
+
"bugs": "https://github.com/molecule-dev/molecule/issues",
|
|
41
|
+
"publishConfig": {
|
|
42
|
+
"access": "public"
|
|
43
|
+
},
|
|
44
|
+
"peerDependencies": {
|
|
45
|
+
"@molecule/app-solid": "^3.5.0",
|
|
46
|
+
"@molecule/app-ui": "^1.3.11",
|
|
47
|
+
"@molecule/app-ui-solid": "^1.1.0",
|
|
48
|
+
"solid-js": "^1.8.0"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@molecule/app-framework-conformance": "0.0.0",
|
|
52
|
+
"@molecule/app-i18n": "1.2.2",
|
|
53
|
+
"@molecule/app-icons": "1.0.4",
|
|
54
|
+
"@molecule/app-solid": "3.7.2",
|
|
55
|
+
"@molecule/app-ui": "1.4.0",
|
|
56
|
+
"@molecule/app-ui-solid": "1.1.5",
|
|
57
|
+
"@types/node": "26.6.5",
|
|
58
|
+
"jsdom": "30.1.3",
|
|
59
|
+
"solid-js": "1.9.17",
|
|
60
|
+
"typescript": "6.0.3",
|
|
61
|
+
"vite-plugin-solid": "2.11.15",
|
|
62
|
+
"vitest": "4.1.12"
|
|
63
|
+
}
|
|
64
|
+
}
|