@molecule/app-data-table-ui-vue 0.0.0-stage → 0.0.1-stage

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,60 @@
1
+ /**
2
+ * Vue table top-chrome toolbar.
3
+ *
4
+ * Vue 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 { defineComponent, h } from 'vue';
11
+ import { getClassMap } from '@molecule/app-ui';
12
+ /** The props a node-valued field accepts as a plain string, so text is not type-checked away. */
13
+ const NODE_PROP = [Object, String];
14
+ /**
15
+ * Resolves a node-valued prop that may also arrive as a same-named slot: the
16
+ * slot wins, and a value Vue renders as nothing (`undefined`, `null`, `''`,
17
+ * `false`) contributes no node.
18
+ *
19
+ * @param slot - The slot render function, when the caller passed the slot.
20
+ * @param prop - The prop value, when the caller passed the prop.
21
+ * @returns The children to render.
22
+ */
23
+ const slotOrProp = (slot, prop) => {
24
+ if (slot)
25
+ return slot();
26
+ if (prop === undefined || prop === null || prop === '' || prop === false)
27
+ return [];
28
+ return [prop];
29
+ };
30
+ /**
31
+ * Table top-chrome row with left/right slots and an optional bottom sub-row for
32
+ * active filter chips or tabs. Sits above the table.
33
+ *
34
+ * @param props - Component props (see `TableToolbarProps`).
35
+ * @returns The toolbar component.
36
+ */
37
+ export const TableToolbar = defineComponent({
38
+ name: 'TableToolbar',
39
+ props: {
40
+ /** Left-aligned content (a node may arrive as the `left` slot). */
41
+ left: { type: NODE_PROP, default: undefined },
42
+ /** Right-aligned actions (a node may arrive as the `right` slot). */
43
+ right: { type: NODE_PROP, default: undefined },
44
+ /** Optional full-width filter row below the main row (a node may arrive as the `below` slot). */
45
+ below: { type: NODE_PROP, default: undefined },
46
+ /** Extra classes. */
47
+ className: { type: String, default: undefined },
48
+ },
49
+ setup(props, { slots }) {
50
+ const cm = getClassMap();
51
+ return () => h('div', { class: cm.cn(cm.stack(2), props.className) }, [
52
+ h('div', { class: cm.flex({ justify: 'between', align: 'center', gap: 'sm', wrap: 'wrap' }) }, [
53
+ h('div', { class: cm.flex({ align: 'center', gap: 'sm' }) }, slotOrProp(slots.left, props.left)),
54
+ h('div', { class: cm.flex({ align: 'center', gap: 'sm' }) }, slotOrProp(slots.right, props.right)),
55
+ ]),
56
+ ...slotOrProp(slots.below, props.below),
57
+ ]);
58
+ },
59
+ });
60
+ //# sourceMappingURL=TableToolbar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableToolbar.js","sourceRoot":"","sources":["../src/TableToolbar.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,eAAe,EAAE,CAAC,EAA8C,MAAM,KAAK,CAAA;AAEpF,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,iGAAiG;AACjG,MAAM,SAAS,GAAG,CAAC,MAAM,EAAE,MAAM,CAAyB,CAAA;AAE1D;;;;;;;;GAQG;AACH,MAAM,UAAU,GAAG,CACjB,IAAsC,EACtC,IAAmC,EACrB,EAAE;IAChB,IAAI,IAAI;QAAE,OAAO,IAAI,EAAE,CAAA;IACvB,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,EAAE,IAAI,IAAI,KAAK,KAAK;QAAE,OAAO,EAAE,CAAA;IACnF,OAAO,CAAC,IAAI,CAAC,CAAA;AACf,CAAC,CAAA;AAED;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,eAAe,CAAC;IAC1C,IAAI,EAAE,cAAc;IACpB,KAAK,EAAE;QACL,mEAAmE;QACnE,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE;QAC7C,qEAAqE;QACrE,KAAK,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE;QAC9C,iG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ain 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 Vue 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
+ * ```ts
24
+ * import { createApp, defineComponent, h } from 'vue'
25
+ * import { DataTableCard } from '@molecule/app-data-table-ui-vue'
26
+ *
27
+ * interface Row {
28
+ * id: string
29
+ * name: string
30
+ * email: string
31
+ * }
32
+ *
33
+ * const columns = [
34
+ * { key: 'name', header: t('members.name', {}, { defaultValue: 'Name' }), cell: (row: Row) => row.name },
35
+ * { key: 'email', header: t('members.email', {}, { defaultValue: 'Email' }), cell: (row: Row) => row.email },
36
+ * ]
37
+ *
38
+ * const MembersTable = defineComponent({
39
+ * props: { members: { type: Array as () => Row[], required: true } },
40
+ * setup(props) {
41
+ * return () =>
42
+ * h(DataTableCard, {
43
+ * title: t('members.title', {}, { defaultValue: 'Team members' }),
44
+ * columns,
45
+ * rows: props.members,
46
+ * rowKey: (row: Row) => row.id,
47
+ * onRowClick: (row: Row) => navigate(`/members/${row.id}`),
48
+ * emptyMessage: t('members.empty', {}, { defaultValue: 'No members yet.' }),
49
+ * })
50
+ * },
51
+ * })
52
+ *
53
+ * createApp(MembersTable).mount('#app')
54
+ * ```
55
+ *
56
+ * @remarks
57
+ * All text (`title`, column `header`s, `emptyMessage`) is consumer-provided —
58
+ * pass translated strings; there is no built-in copy and no locale bond.
59
+ * `DataTableCard`'s chrome uses Tailwind classes with Material-3 theme tokens
60
+ * (`bg-surface-container-lowest`, `divide-surface-container`,
61
+ * `text-on-surface-variant`, …) — the app's Tailwind theme must define those
62
+ * tokens (molecule's default Tailwind ClassMap bond does); with a non-Tailwind
63
+ * ClassMap the card surface, dividers, and skeleton styling drop out.
64
+ * `onRowClick` makes rows pointer-clickable only — add your own keyboard path
65
+ * (e.g. a link/button in a cell) where accessibility matters.
66
+ *
67
+ * Node-valued props (`title`, `titleAction`, `emptyMessage`, `left`, `right`,
68
+ * `below`, `actions`) accept either a prop or a same-named slot.
69
+ *
70
+ * @module
71
+ */
72
+ export * from './DataTableCard.js';
73
+ export * from './RowWithActions.js';
74
+ export * from './TableEmpty.js';
75
+ export * from './TableFooter.js';
76
+ export * from './TableToolbar.js';
77
+ export * from './types.js';
78
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsEG;AAEH,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,mBAAmB,CAAA;AACjC,cAAc,YAAY,CAAA"}
package/dist/index.js ADDED
@@ -0,0 +1,78 @@
1
+ /**
2
+ * Vue 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 Vue 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
+ * ```ts
24
+ * import { createApp, defineComponent, h } from 'vue'
25
+ * import { DataTableCard } from '@molecule/app-data-table-ui-vue'
26
+ *
27
+ * interface Row {
28
+ * id: string
29
+ * name: string
30
+ * email: string
31
+ * }
32
+ *
33
+ * const columns = [
34
+ * { key: 'name', header: t('members.name', {}, { defaultValue: 'Name' }), cell: (row: Row) => row.name },
35
+ * { key: 'email', header: t('members.email', {}, { defaultValue: 'Email' }), cell: (row: Row) => row.email },
36
+ * ]
37
+ *
38
+ * const MembersTable = defineComponent({
39
+ * props: { members: { type: Array as () => Row[], required: true } },
40
+ * setup(props) {
41
+ * return () =>
42
+ * h(DataTableCard, {
43
+ * title: t('members.title', {}, { defaultValue: 'Team members' }),
44
+ * columns,
45
+ * rows: props.members,
46
+ * rowKey: (row: Row) => row.id,
47
+ * onRowClick: (row: Row) => navigate(`/members/${row.id}`),
48
+ * emptyMessage: t('members.empty', {}, { defaultValue: 'No members yet.' }),
49
+ * })
50
+ * },
51
+ * })
52
+ *
53
+ * createApp(MembersTable).mount('#app')
54
+ * ```
55
+ *
56
+ * @remarks
57
+ * All text (`title`, column `header`s, `emptyMessage`) is consumer-provided —
58
+ * pass translated strings; there is no built-in copy and no locale bond.
59
+ * `DataTableCard`'s chrome uses Tailwind classes with Material-3 theme tokens
60
+ * (`bg-surface-container-lowest`, `divide-surface-container`,
61
+ * `text-on-surface-variant`, …) — the app's Tailwind theme must define those
62
+ * tokens (molecule's default Tailwind ClassMap bond does); with a non-Tailwind
63
+ * ClassMap the card surface, dividers, and skeleton styling drop out.
64
+ * `onRowClick` makes rows pointer-clickable only — add your own keyboard path
65
+ * (e.g. a link/button in a cell) where accessibility matters.
66
+ *
67
+ * Node-valued props (`title`, `titleAction`, `emptyMessage`, `left`, `right`,
68
+ * `below`, `actions`) accept either a prop or a same-named slot.
69
+ *
70
+ * @module
71
+ */
72
+ export * from './DataTableCard.js';
73
+ export * from './RowWithActions.js';
74
+ export * from './TableEmpty.js';
75
+ export * from './TableFooter.js';
76
+ export * from './TableToolbar.js';
77
+ export * from './types.js';
78
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsEG;AAEH,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,mBAAmB,CAAA;AACjC,cAAc,YAAY,CAAA"}
@@ -0,0 +1,96 @@
1
+ /**
2
+ * Types for the Vue 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 Vue's node type.
5
+ *
6
+ * @module
7
+ */
8
+ import type { VNodeChild } from 'vue';
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: VNodeChild;
18
+ /** Render the cell for this column from a row. */
19
+ cell: (row: Row) => VNodeChild;
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
+ /**
28
+ * Optional title above the table chrome. Passed as a prop or as the
29
+ * same-named slot — both work.
30
+ */
31
+ title?: VNodeChild;
32
+ /** Right-aligned action / "View all" / link in the title row (prop or `titleAction` slot). */
33
+ titleAction?: VNodeChild;
34
+ /** Column definitions. */
35
+ columns: ReadonlyArray<DataTableColumn<Row>>;
36
+ /** Rows to render. Falls back to `emptyMessage` if empty and not loading. */
37
+ rows: ReadonlyArray<Row>;
38
+ /** Pull a stable key from a row. */
39
+ rowKey: (row: Row) => string;
40
+ /** When true, renders 5 skeleton rows instead of `rows`. */
41
+ loading?: boolean;
42
+ /** Optional click handler per row. */
43
+ onRowClick?: (row: Row) => void;
44
+ /**
45
+ * Empty-state content shown inside the tbody when not loading and `rows` is
46
+ * empty. Passed as a prop or as the same-named slot — both work.
47
+ */
48
+ emptyMessage?: VNodeChild;
49
+ /** Extra classes on the outer card. */
50
+ className?: string;
51
+ /** `data-mol-id` for AI-agent selectors. */
52
+ dataMolId?: string;
53
+ }
54
+ /** Props for {@link RowWithActions}. */
55
+ export interface RowWithActionsProps {
56
+ /** Row cells (each wrapped in `<td>`) — the default slot. */
57
+ children?: VNodeChild;
58
+ /** Action buttons/menu to render in the trailing "actions" cell (prop or `actions` slot). */
59
+ actions?: VNodeChild;
60
+ /** Called when the row body is clicked (not the actions cell). */
61
+ onClick?: () => void;
62
+ /** Whether the row should render in a "selected" visual state. */
63
+ selected?: boolean;
64
+ /** Extra classes on the `<tr>`. */
65
+ className?: string;
66
+ }
67
+ /** Props for {@link TableEmpty}. */
68
+ export interface TableEmptyProps {
69
+ /** Number of columns to span (for colspan on the td). */
70
+ colSpan: number;
71
+ /** Empty-state content — the default slot. */
72
+ children?: VNodeChild;
73
+ /** Extra classes on the cell. */
74
+ className?: string;
75
+ }
76
+ /** Props for {@link TableFooter}. */
77
+ export interface TableFooterProps {
78
+ /** Left slot — typically a summary line ("5 rows selected"); prop or `left` slot. */
79
+ left?: VNodeChild;
80
+ /** Right slot — typically a pagination bar; prop or `right` slot. */
81
+ right?: VNodeChild;
82
+ /** Extra classes. */
83
+ className?: string;
84
+ }
85
+ /** Props for {@link TableToolbar}. */
86
+ export interface TableToolbarProps {
87
+ /** Left-aligned content — usually a title or a results count (prop or `left` slot). */
88
+ left?: VNodeChild;
89
+ /** Right-aligned actions — search input, filter button, export, etc. (prop or `right` slot). */
90
+ right?: VNodeChild;
91
+ /** Optional full-width filter / chip row rendered below the main row (prop or `below` slot). */
92
+ below?: VNodeChild;
93
+ /** Extra classes. */
94
+ className?: string;
95
+ }
96
+ //# 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,UAAU,EAAE,MAAM,KAAK,CAAA;AAErC;;;GAGG;AACH,MAAM,WAAW,eAAe,CAAC,GAAG;IAClC,iCAAiC;IACjC,GAAG,EAAE,MAAM,CAAA;IACX,kDAAkD;IAClD,MAAM,EAAE,UAAU,CAAA;IAClB,kDAAkD;IAClD,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,UAAU,CAAA;IAC9B,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;;;OAGG;IACH,KAAK,CAAC,EAAE,UAAU,CAAA;IAClB,8FAA8F;IAC9F,WAAW,CAAC,EAAE,UAAU,CAAA;IACxB,0BAA0B;IAC1B,OAAO,EAAE,aAAa,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,CAAA;IAC5C,6EAA6E;IAC7E,IAAI,EAAE,aAAa,CAAC,GAAG,CAA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ChG,KAAK,CAAC,EAAE,UAAU,CAAA;IAClB,qBAAqB;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
package/dist/types.js ADDED
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Types for the Vue 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 Vue's node type.
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,65 @@
1
1
  {
2
2
  "name": "@molecule/app-data-table-ui-vue",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.0.1-stage",
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-vue",
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": "vue-tsc --watch",
22
+ "test": "vitest run",
23
+ "test:watch": "vitest"
24
+ },
25
+ "keywords": [
26
+ "molecule",
27
+ "data-table-ui",
28
+ "vue"
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-vue"
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-ui": "^1.3.11",
46
+ "@molecule/app-ui-vue": "^1.1.0",
47
+ "@molecule/app-vue": "^3.5.0",
48
+ "vue": "^3.4.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-ui": "1.4.0",
55
+ "@molecule/app-ui-vue": "1.1.4",
56
+ "@molecule/app-vue": "3.7.1",
57
+ "@types/node": "26.6.5",
58
+ "jsdom": "30.1.3",
59
+ "typescript": "6.0.3",
60
+ "vite": "8.3.5",
61
+ "vitest": "4.1.12",
62
+ "vue": "3.5.44",
63
+ "vue-tsc": "3.3.13"
64
+ }
65
+ }