@molecule/app-data-table-ui-vue 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.
@@ -0,0 +1,156 @@
1
+ /**
2
+ * Vue card-shaped data table.
3
+ *
4
+ * Vue 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 { 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
+ * Calls the caller's row-key function with the row it belongs to.
16
+ *
17
+ * @param rowKey - The caller's function.
18
+ * @param row - The row.
19
+ * @returns The row's key.
20
+ */
21
+ const keyOf = (rowKey, row) => rowKey(row);
22
+ /**
23
+ * Calls the caller's row-click handler with the clicked row.
24
+ *
25
+ * @param onRowClick - The caller's handler.
26
+ * @param row - The row.
27
+ */
28
+ const clickRow = (onRowClick, row) => onRowClick(row);
29
+ /**
30
+ * Resolves a node-valued prop that may also arrive as a same-named slot: the
31
+ * slot wins, and a value Vue renders as nothing (`undefined`, `null`, `''`,
32
+ * `false`) contributes no node.
33
+ *
34
+ * @param slot - The slot render function, when the caller passed the slot.
35
+ * @param prop - The prop value, when the caller passed the prop.
36
+ * @returns The children to render.
37
+ */
38
+ const slotOrProp = (slot, prop) => {
39
+ if (slot)
40
+ return slot();
41
+ if (prop === undefined || prop === null || prop === '' || prop === false)
42
+ return [];
43
+ return [prop];
44
+ };
45
+ /**
46
+ * Drop-in card-shaped data table matching the polished flagship pattern.
47
+ *
48
+ * Renders:
49
+ * 1. Optional title + action row
50
+ * 2. Card-wrapped table with:
51
+ * - `bg-surface-container-lowest rounded-xl overflow-hidden shadow-sm` outer
52
+ * - `bg-surface-container-low border-b border-outline-variant/10` thead
53
+ * - `text-[10px] font-black text-on-surface-variant uppercase tracking-widest` th
54
+ * - `divide-y divide-surface-container` tbody
55
+ * - `hover:bg-surface-container-low transition-colors` rows (when `onRowClick` provided)
56
+ * - 5-row pulsing skeleton when `loading`
57
+ * - Single full-width cell with `emptyMessage` when empty
58
+ *
59
+ * For complex per-column rendering, pass cells that compose a status badge, an
60
+ * avatar, and so on.
61
+ *
62
+ * @param props - Component props (see `DataTableCardProps`).
63
+ * @returns The data table component.
64
+ */
65
+ export const DataTableCard = defineComponent({
66
+ name: 'DataTableCard',
67
+ props: {
68
+ /** Optional title above the table chrome (a node may arrive as the `title` slot). */
69
+ title: { type: NODE_PROP, default: undefined },
70
+ /** Right-aligned action in the title row (a node may arrive as the `titleAction` slot). */
71
+ titleAction: { type: NODE_PROP, default: undefined },
72
+ /** Column definitions. */
73
+ columns: {
74
+ type: Array,
75
+ required: true,
76
+ },
77
+ /** Rows to render. */
78
+ rows: { type: Array, required: true },
79
+ /** Pull a stable key from a row. */
80
+ rowKey: { type: Function, required: true },
81
+ /** When true, renders 5 skeleton rows instead of `rows`. */
82
+ loading: { type: Boolean, default: false },
83
+ /** Optional click handler per row. */
84
+ onRowClick: { type: Function, default: undefined },
85
+ /** Empty-state content (a node may arrive as the `emptyMessage` slot). */
86
+ emptyMessage: { type: NODE_PROP, default: undefined },
87
+ /** Extra classes on the outer card. */
88
+ className: { type: String, default: undefined },
89
+ /** `data-mol-id` for AI-agent selectors. */
90
+ dataMolId: { type: String, default: undefined },
91
+ },
92
+ setup(props, { slots }) {
93
+ const cm = getClassMap();
94
+ return () => {
95
+ const onRowClick = props.onRowClick;
96
+ const titleShown = props.title !== undefined || Boolean(slots.title);
97
+ const headerShown = titleShown || props.titleAction !== undefined || Boolean(slots.titleAction);
98
+ const headerRow = headerShown
99
+ ? h('div', {
100
+ class: cm.cn(cm.flex({ justify: 'between', align: 'center' }), cm.sp('px', 8), cm.sp('pt', 8)),
101
+ }, [
102
+ ...(titleShown
103
+ ? [
104
+ h('h3', {
105
+ class: cm.cn(cm.textSize('xl'), cm.fontWeight('bold'), cm.dataTableCardTitle),
106
+ }, slotOrProp(slots.title, props.title)),
107
+ ]
108
+ : []),
109
+ ...slotOrProp(slots.titleAction, props.titleAction),
110
+ ])
111
+ : undefined;
112
+ const body = props.loading
113
+ ? Array.from({ length: 5 }, (_unused, index) => h('tr', { key: `skeleton-${index}`, 'aria-hidden': 'true' }, [
114
+ h('td', {
115
+ colSpan: props.columns.length,
116
+ class: cm.cn(cm.sp('px', 8), cm.sp('py', 5)),
117
+ }, [h('div', { class: cm.cn(cm.h(4), cm.dataTableCardSkeletonBar) })]),
118
+ ]))
119
+ : props.rows.length === 0
120
+ ? [
121
+ h('tr', null, [
122
+ h('td', {
123
+ colSpan: props.columns.length,
124
+ class: cm.cn(cm.sp('px', 8), cm.sp('py', 12), cm.textCenter, cm.dataTableCardEmptyCell),
125
+ }, slotOrProp(slots.emptyMessage, props.emptyMessage)),
126
+ ]),
127
+ ]
128
+ : props.rows.map((row) => h('tr', {
129
+ key: keyOf(props.rowKey, row),
130
+ onClick: onRowClick ? () => clickRow(onRowClick, row) : undefined,
131
+ class: cm.cn(onRowClick ? cm.cursorPointer : '', cm.dataTableCardRowHover),
132
+ }, props.columns.map((column, index) => h('td', {
133
+ key: column.key,
134
+ class: cm.cn(index === 0 ? cm.sp('px', 8) : cm.sp('px', 4), cm.sp('py', 5), column.cellClassName),
135
+ }, [column.cell(row)]))));
136
+ return h('section', {
137
+ 'data-mol-id': props.dataMolId,
138
+ class: cm.cn(cm.stack(4), cm.dataTableCardShell, props.className),
139
+ }, [
140
+ ...(headerRow ? [headerRow] : []),
141
+ h('div', { class: cm.dataTableCardScroller }, [
142
+ h('table', { class: cm.cn(cm.w('full'), cm.dataTableCardTable) }, [
143
+ h('thead', null, [
144
+ h('tr', { class: cm.dataTableCardHead }, props.columns.map((column, index) => h('th', {
145
+ key: column.key,
146
+ class: cm.cn(index === 0 ? cm.sp('px', 8) : cm.sp('px', 4), cm.sp('py', 4), cm.dataTableCardHeaderCell, column.headerClassName),
147
+ }, [column.header]))),
148
+ ]),
149
+ h('tbody', { class: cm.dataTableCardBody }, body),
150
+ ]),
151
+ ]),
152
+ ]);
153
+ };
154
+ },
155
+ });
156
+ //# sourceMappingURL=DataTableCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataTableCard.js","sourceRoot":"","sources":["../src/DataTableCard.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,eAAe,EAAE,CAAC,EAA8C,MAAM,KAAK,CAAA;AAEpF,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAU9C,iGAAiG;AACjG,MAAM,SAAS,GAAG,CAAC,MAAM,EAAE,MAAM,CAAyB,CAAA;AAE1D;;;;;;GAMG;AACH,MAAM,KAAK,GAAG,CAAC,MAAc,EAAE,GAAY,EAAU,EAAE,CAAE,MAAqC,CAAC,GAAG,CAAC,CAAA;AAEnG;;;;;GAKG;AACH,MAAM,QAAQ,GAAG,CAAC,UAAoB,EAAE,GAAY,EAAQ,EAAE,CAC3D,UAAuC,CAAC,GAAG,CAAC,CAAA;AAE/C;;;;;;;;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;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,eAAe,CAAC;IAC3C,IAAI,EAAE,eAAe;IACrB,KAAK,EAAE;QACL,qFAAqF;QACrF,KAAK,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE;QAC9C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V,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,EAC7C,EAAE,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,EACd,EAAE,CAAC,uBAAuB,EAC1B,MAAM,CAAC,eAAe,CACvB;6BACF,EACD,CAAC,MAAM,CAAC,MAAM,CAAC,CAChB,CACF,CACF;yBACF,CAAC;wBACF,CAAC,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,EAAE,CAAC,iBAAiB,EAAE,EAAE,IAAI,CAAC;qBAClD,CAAC;iBACH,CAAC;aACH,CACF,CAAA;QACH,CAAC,CAAA;IACH,CAAC;CACF,CAAC,CAAA"}
@@ -0,0 +1,78 @@
1
+ /**
2
+ * Vue `<tr>` wrapper with a trailing actions cell.
3
+ *
4
+ * Vue 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 PropType, type VNode, type VNodeChild } from 'vue';
11
+ /**
12
+ * `<tr>` wrapper that adds a trailing actions cell plus a click handler on the
13
+ * body. Useful for data tables where each row has a trailing ellipsis-menu or a
14
+ * row of action buttons.
15
+ *
16
+ * @param props - Component props (see `RowWithActionsProps`).
17
+ * @returns The row component.
18
+ */
19
+ export declare const RowWithActions: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
20
+ /** Row cells — the default slot. */
21
+ children: {
22
+ type: PropType<VNodeChild>;
23
+ default: undefined;
24
+ };
25
+ /** Action buttons/menu for the trailing cell (a node may arrive as the `actions` slot). */
26
+ actions: {
27
+ type: PropType<VNodeChild>;
28
+ default: undefined;
29
+ };
30
+ /** Called when the row body is clicked. */
31
+ onClick: {
32
+ type: PropType<(() => void) | undefined>;
33
+ default: undefined;
34
+ };
35
+ /** Whether the row renders in a "selected" visual state. */
36
+ selected: {
37
+ type: PropType<boolean | undefined>;
38
+ default: undefined;
39
+ };
40
+ /** Extra classes on the `<tr>`. */
41
+ className: {
42
+ type: PropType<string | undefined>;
43
+ default: undefined;
44
+ };
45
+ }>, () => VNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
46
+ /** Row cells — the default slot. */
47
+ children: {
48
+ type: PropType<VNodeChild>;
49
+ default: undefined;
50
+ };
51
+ /** Action buttons/menu for the trailing cell (a node may arrive as the `actions` slot). */
52
+ actions: {
53
+ type: PropType<VNodeChild>;
54
+ default: undefined;
55
+ };
56
+ /** Called when the row body is clicked. */
57
+ onClick: {
58
+ type: PropType<(() => void) | undefined>;
59
+ default: undefined;
60
+ };
61
+ /** Whether the row renders in a "selected" visual state. */
62
+ selected: {
63
+ type: PropType<boolean | undefined>;
64
+ default: undefined;
65
+ };
66
+ /** Extra classes on the `<tr>`. */
67
+ className: {
68
+ type: PropType<string | undefined>;
69
+ default: undefined;
70
+ };
71
+ }>> & Readonly<{}>, {
72
+ className: string | undefined;
73
+ onClick: (() => void) | undefined;
74
+ children: VNodeChild;
75
+ actions: VNodeChild;
76
+ selected: boolean | undefined;
77
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
78
+ //# sourceMappingURL=RowWithActions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RowWithActions.d.ts","sourceRoot":"","sources":["../src/RowWithActions.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAsB,KAAK,QAAQ,EAAE,KAAK,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,KAAK,CAAA;AAyBpF;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc;IAGvB,oCAAoC;;;;;IAEpC,2FAA2F;;;;;IAE3F,2CAA2C;;cACd,QAAQ,CAAC,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;;;IAC/D,4DAA4D;;cAC/B,QAAQ,CAAC,OAAO,GAAG,SAAS,CAAC;;;IAC1D,mCAAmC;;cACN,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC;;;UAK9C,KAAK;IAdhB,oCAAoC;;;;;IAEpC,2FAA2F;;;;;IAE3F,2CAA2C;;cACd,QAAQ,CAAC,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;;;IAC/D,4DAA4D;;cAC/B,QAAQ,CAAC,OAAO,GAAG,SAAS,CAAC;;;IAC1D,mCAAmC;;cACN,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC;;;;;oBAJZ,IAAI;;;;4EAkCnD,CAAA"}
@@ -0,0 +1,71 @@
1
+ /**
2
+ * Vue `<tr>` wrapper with a trailing actions cell.
3
+ *
4
+ * Vue 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 { 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
+ * `<tr>` wrapper that adds a trailing actions cell plus a click handler on the
32
+ * body. Useful for data tables where each row has a trailing ellipsis-menu or a
33
+ * row of action buttons.
34
+ *
35
+ * @param props - Component props (see `RowWithActionsProps`).
36
+ * @returns The row component.
37
+ */
38
+ export const RowWithActions = defineComponent({
39
+ name: 'RowWithActions',
40
+ props: {
41
+ /** Row cells — the default slot. */
42
+ children: { type: NODE_PROP, default: undefined },
43
+ /** Action buttons/menu for the trailing cell (a node may arrive as the `actions` slot). */
44
+ actions: { type: NODE_PROP, default: undefined },
45
+ /** Called when the row body is clicked. */
46
+ onClick: { type: Function, default: undefined },
47
+ /** Whether the row renders in a "selected" visual state. */
48
+ selected: { type: Boolean, default: undefined },
49
+ /** Extra classes on the `<tr>`. */
50
+ className: { type: String, default: undefined },
51
+ },
52
+ setup(props, { slots }) {
53
+ const cm = getClassMap();
54
+ return () => h('tr', {
55
+ onClick: props.onClick,
56
+ 'aria-selected': props.selected,
57
+ class: cm.cn(props.onClick ? cm.cursorPointer : undefined, props.className),
58
+ }, [
59
+ ...slotOrProp(slots.default, props.children),
60
+ ...(props.actions !== undefined || slots.actions
61
+ ? [
62
+ h('td', {
63
+ onClick: (event) => event.stopPropagation(),
64
+ class: cm.cn(cm.textCenter),
65
+ }, slotOrProp(slots.actions, props.actions)),
66
+ ]
67
+ : []),
68
+ ]);
69
+ },
70
+ });
71
+ //# sourceMappingURL=RowWithActions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RowWithActions.js","sourceRoot":"","sources":["../src/RowWithActions.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,IA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BACE,CAAC,CACC,IAAI,EACJ;wBACE,OAAO,EAAE,CAAC,KAAY,EAAQ,EAAE,CAAC,KAAK,CAAC,eAAe,EAAE;wBACxD,KAAK,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,UAAU,CAAC;qBAC5B,EACD,UAAU,CAAC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CACzC;iBACF;gBACH,CAAC,CAAC,EAAE,CAAC;SACR,CACF,CAAA;IACL,CAAC;CACF,CAAC,CAAA"}
@@ -0,0 +1,54 @@
1
+ /**
2
+ * Vue single full-width empty row.
3
+ *
4
+ * Vue 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 PropType, type VNode, type VNodeChild } from 'vue';
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 `TableEmptyProps`).
16
+ * @returns The empty row component.
17
+ */
18
+ export declare const TableEmpty: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
19
+ /** Number of columns to span. */
20
+ colSpan: {
21
+ type: NumberConstructor;
22
+ required: true;
23
+ };
24
+ /** Empty-state content — the default slot. */
25
+ children: {
26
+ type: PropType<VNodeChild>;
27
+ default: undefined;
28
+ };
29
+ /** Extra classes on the cell. */
30
+ className: {
31
+ type: PropType<string | undefined>;
32
+ default: undefined;
33
+ };
34
+ }>, () => VNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
35
+ /** Number of columns to span. */
36
+ colSpan: {
37
+ type: NumberConstructor;
38
+ required: true;
39
+ };
40
+ /** Empty-state content — the default slot. */
41
+ children: {
42
+ type: PropType<VNodeChild>;
43
+ default: undefined;
44
+ };
45
+ /** Extra classes on the cell. */
46
+ className: {
47
+ type: PropType<string | undefined>;
48
+ default: undefined;
49
+ };
50
+ }>> & Readonly<{}>, {
51
+ className: string | undefined;
52
+ children: VNodeChild;
53
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
54
+ //# sourceMappingURL=TableEmpty.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableEmpty.d.ts","sourceRoot":"","sources":["../src/TableEmpty.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAsB,KAAK,QAAQ,EAAE,KAAK,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,KAAK,CAAA;AAyBpF;;;;;;GAMG;AACH,eAAO,MAAM,UAAU;IAGnB,iCAAiC;;;;;IAEjC,8CAA8C;;;;;IAE9C,iCAAiC;;cACJ,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC;;;UAK9C,KAAK;IAVhB,iCAAiC;;;;;IAEjC,8CAA8C;;;;;IAE9C,iCAAiC;;cACJ,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC;;;;;;4EAiB3D,CAAA"}
@@ -0,0 +1,57 @@
1
+ /**
2
+ * Vue single full-width empty row.
3
+ *
4
+ * Vue 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 { 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
+ * Single full-width row shown when a table has no data. Typically wraps an
32
+ * empty-state component.
33
+ *
34
+ * @param props - Component props (see `TableEmptyProps`).
35
+ * @returns The empty row component.
36
+ */
37
+ export const TableEmpty = defineComponent({
38
+ name: 'TableEmpty',
39
+ props: {
40
+ /** Number of columns to span. */
41
+ colSpan: { type: Number, required: true },
42
+ /** Empty-state content — the default slot. */
43
+ children: { type: NODE_PROP, default: undefined },
44
+ /** Extra classes on the cell. */
45
+ className: { type: String, default: undefined },
46
+ },
47
+ setup(props, { slots }) {
48
+ const cm = getClassMap();
49
+ return () => h('tr', null, [
50
+ h('td', {
51
+ colSpan: props.colSpan,
52
+ class: cm.cn(cm.sp('py', 10), cm.textCenter, props.className),
53
+ }, slotOrProp(slots.default, props.children)),
54
+ ]);
55
+ },
56
+ });
57
+ //# sourceMappingURL=TableEmpty.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableEmpty.js","sourceRoot":"","sources":["../src/TableEmpty.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,UAAU,GAAG,eAAe,CAAC;IACxC,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE;QACL,iCAAiC;QACjC,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;QACzC,8CAA8C;QAC9C,QAAQ,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE;QACjD,iCAAiC;QACjC,SAAS,EAAE,EAAE,IAAI,EAAE,MAAsC,EAAE,OAAO,EAAE,SAAS,EAAE;KAChF;IACD,KAAK,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE;QACpB,MAAM,EAAE,GAAG,WAAW,EAAE,CAAA;QAExB,OAAO,GAAU,EAAE,CACjB,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE;YACZ,CAAC,CACC,IAAI,EACJ;gBACE,OAAO,EAAE,KAAK,CAAC,OAAO;gBACtB,KAAK,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC;aAC9D,EACD,UAAU,CAAC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,CAC1C;SACF,CAAC,CAAA;IACN,CAAC;CACF,CAAC,CAAA"}
@@ -0,0 +1,54 @@
1
+ /**
2
+ * Vue table footer bar.
3
+ *
4
+ * Vue 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 PropType, type VNode, type VNodeChild } from 'vue';
11
+ /**
12
+ * Footer bar rendered below a table. Pass a pagination bar in `right`.
13
+ *
14
+ * @param props - Component props (see `TableFooterProps`).
15
+ * @returns The footer component.
16
+ */
17
+ export declare const TableFooter: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
18
+ /** Left slot — typically a summary line (a node may arrive as the `left` slot). */
19
+ left: {
20
+ type: PropType<VNodeChild>;
21
+ default: undefined;
22
+ };
23
+ /** Right slot — typically a pagination bar (a node may arrive as the `right` slot). */
24
+ right: {
25
+ type: PropType<VNodeChild>;
26
+ default: undefined;
27
+ };
28
+ /** Extra classes. */
29
+ className: {
30
+ type: PropType<string | undefined>;
31
+ default: undefined;
32
+ };
33
+ }>, () => VNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
34
+ /** Left slot — typically a summary line (a node may arrive as the `left` slot). */
35
+ left: {
36
+ type: PropType<VNodeChild>;
37
+ default: undefined;
38
+ };
39
+ /** Right slot — typically a pagination bar (a node may arrive as the `right` slot). */
40
+ right: {
41
+ type: PropType<VNodeChild>;
42
+ default: undefined;
43
+ };
44
+ /** Extra classes. */
45
+ className: {
46
+ type: PropType<string | undefined>;
47
+ default: undefined;
48
+ };
49
+ }>> & Readonly<{}>, {
50
+ className: string | undefined;
51
+ left: VNodeChild;
52
+ right: VNodeChild;
53
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
54
+ //# sourceMappingURL=TableFooter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableFooter.d.ts","sourceRoot":"","sources":["../src/TableFooter.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAsB,KAAK,QAAQ,EAAE,KAAK,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,KAAK,CAAA;AAyBpF;;;;;GAKG;AACH,eAAO,MAAM,WAAW;IAGpB,mFAAmF;;;;;IAEnF,uFAAuF;;;;;IAEvF,qBAAqB;;cACQ,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC;;;UAK9C,KAAK;IAVhB,mFAAmF;;;;;IAEnF,uFAAuF;;;;;IAEvF,qBAAqB;;cACQ,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC;;;;;;;4EAqB3D,CAAA"}
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Vue table footer bar.
3
+ *
4
+ * Vue 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 { 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
+ * Footer bar rendered below a table. Pass a pagination bar in `right`.
32
+ *
33
+ * @param props - Component props (see `TableFooterProps`).
34
+ * @returns The footer component.
35
+ */
36
+ export const TableFooter = defineComponent({
37
+ name: 'TableFooter',
38
+ props: {
39
+ /** Left slot — typically a summary line (a node may arrive as the `left` slot). */
40
+ left: { type: NODE_PROP, default: undefined },
41
+ /** Right slot — typically a pagination bar (a node may arrive as the `right` slot). */
42
+ right: { type: NODE_PROP, default: undefined },
43
+ /** Extra classes. */
44
+ className: { type: String, default: undefined },
45
+ },
46
+ setup(props, { slots }) {
47
+ const cm = getClassMap();
48
+ return () => h('div', {
49
+ class: cm.cn(cm.flex({ justify: 'between', align: 'center', gap: 'sm', wrap: 'wrap' }), cm.sp('pt', 3), props.className),
50
+ }, [
51
+ h('div', null, slotOrProp(slots.left, props.left)),
52
+ h('div', null, slotOrProp(slots.right, props.right)),
53
+ ]);
54
+ },
55
+ });
56
+ //# sourceMappingURL=TableFooter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableFooter.js","sourceRoot":"","sources":["../src/TableFooter.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;;;;;GAKG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,eAAe,CAAC;IACzC,IAAI,EAAE,aAAa;IACnB,KAAK,EAAE;QACL,mFAAmF;QACnF,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE;QAC7C,uFAAuF;QACvF,KAAK,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE;QAC9C,qBAAqB;QACrB,SAAS,EAAE,EAAE,IAAI,EAAE,MAAsC,EAAE,OAAO,EAAE,SAAS,EAAE;KAChF;IACD,KAAK,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE;QACpB,MAAM,EAAE,GAAG,WAAW,EAAE,CAAA;QAExB,OAAO,GAAU,EAAE,CACjB,CAAC,CACC,KAAK,EACL;YACE,KAAK,EAAE,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;SACF,EACD;YACE,CAAC,CAAC,KAAK,EAAE,IAAI,EAAE,UAAU,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;YAClD,CAAC,CAAC,KAAK,EAAE,IAAI,EAAE,UAAU,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;SACrD,CACF,CAAA;IACL,CAAC;CACF,CAAC,CAAA"}
@@ -0,0 +1,66 @@
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 { type PropType, type VNode, type VNodeChild } from 'vue';
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 `TableToolbarProps`).
16
+ * @returns The toolbar component.
17
+ */
18
+ export declare const TableToolbar: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
19
+ /** Left-aligned content (a node may arrive as the `left` slot). */
20
+ left: {
21
+ type: PropType<VNodeChild>;
22
+ default: undefined;
23
+ };
24
+ /** Right-aligned actions (a node may arrive as the `right` slot). */
25
+ right: {
26
+ type: PropType<VNodeChild>;
27
+ default: undefined;
28
+ };
29
+ /** Optional full-width filter row below the main row (a node may arrive as the `below` slot). */
30
+ below: {
31
+ type: PropType<VNodeChild>;
32
+ default: undefined;
33
+ };
34
+ /** Extra classes. */
35
+ className: {
36
+ type: PropType<string | undefined>;
37
+ default: undefined;
38
+ };
39
+ }>, () => VNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
40
+ /** Left-aligned content (a node may arrive as the `left` slot). */
41
+ left: {
42
+ type: PropType<VNodeChild>;
43
+ default: undefined;
44
+ };
45
+ /** Right-aligned actions (a node may arrive as the `right` slot). */
46
+ right: {
47
+ type: PropType<VNodeChild>;
48
+ default: undefined;
49
+ };
50
+ /** Optional full-width filter row below the main row (a node may arrive as the `below` slot). */
51
+ below: {
52
+ type: PropType<VNodeChild>;
53
+ default: undefined;
54
+ };
55
+ /** Extra classes. */
56
+ className: {
57
+ type: PropType<string | undefined>;
58
+ default: undefined;
59
+ };
60
+ }>> & Readonly<{}>, {
61
+ className: string | undefined;
62
+ left: VNodeChild;
63
+ right: VNodeChild;
64
+ below: VNodeChild;
65
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
66
+ //# sourceMappingURL=TableToolbar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableToolbar.d.ts","sourceRoot":"","sources":["../src/TableToolbar.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAsB,KAAK,QAAQ,EAAE,KAAK,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,KAAK,CAAA;AAyBpF;;;;;;GAMG;AACH,eAAO,MAAM,YAAY;IAGrB,mEAAmE;;;;;IAEnE,qEAAqE;;;;;IAErE,iGAAiG;;;;;IAEjG,qBAAqB;;cACQ,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC;;;UAK9C,KAAK;IAZhB,mEAAmE;;;;;IAEnE,qEAAqE;;;;;IAErE,iGAAiG;;;;;IAEjG,qBAAqB;;cACQ,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC;;;;;;;;4EA0B3D,CAAA"}