@db-ux/v-core-components 4.5.4-mcp-e4cd7e6 → 4.5.4-table-c758ae7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -0
- package/dist/components/table/examples/data.d.ts +9 -0
- package/dist/components/table/index.d.ts +1 -0
- package/dist/components/table/model.d.ts +74 -0
- package/dist/components/table/table.vue.d.ts +30 -0
- package/dist/components/table-body/index.d.ts +1 -0
- package/dist/components/table-body/model.d.ts +8 -0
- package/dist/components/table-body/table-body.vue.d.ts +20 -0
- package/dist/components/table-caption/index.d.ts +1 -0
- package/dist/components/table-caption/model.d.ts +5 -0
- package/dist/components/table-caption/table-caption.vue.d.ts +17 -0
- package/dist/components/table-data-cell/index.d.ts +1 -0
- package/dist/components/table-data-cell/model.d.ts +5 -0
- package/dist/components/table-data-cell/table-data-cell.vue.d.ts +25 -0
- package/dist/components/table-footer/index.d.ts +1 -0
- package/dist/components/table-footer/model.d.ts +8 -0
- package/dist/components/table-footer/table-footer.vue.d.ts +20 -0
- package/dist/components/table-head/index.d.ts +1 -0
- package/dist/components/table-head/model.d.ts +10 -0
- package/dist/components/table-head/table-head.vue.d.ts +20 -0
- package/dist/components/table-header-cell/index.d.ts +1 -0
- package/dist/components/table-header-cell/model.d.ts +24 -0
- package/dist/components/table-header-cell/table-header-cell.vue.d.ts +28 -0
- package/dist/components/table-row/index.d.ts +1 -0
- package/dist/components/table-row/model.d.ts +30 -0
- package/dist/components/table-row/table-row.vue.d.ts +21 -0
- package/dist/db-ux.es.js +2262 -1826
- package/dist/db-ux.umd.js +1 -1
- package/dist/index.d.ts +16 -0
- package/dist/shared/model.d.ts +42 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -49,6 +49,36 @@ import "@db-ux/core-components/build/styles/rollup.css";
|
|
|
49
49
|
|
|
50
50
|
</details>
|
|
51
51
|
|
|
52
|
+
> **Vite 8 Note:** Starting with Vite 8, the default CSS minifier was changed to [LightningCSS](https://lightningcss.dev/), which provides buggy transformations for modern CSS features used by the DB UX Design System (e.g. `light-dark()` CSS function). We might provide a specific configuration necessary to mitigate those problems in the near future. To keep CSS output stable in the meantime, configure `vite.config.ts` like this:
|
|
53
|
+
|
|
54
|
+
```ts
|
|
55
|
+
// vite.config.ts
|
|
56
|
+
export default defineConfig({
|
|
57
|
+
build: {
|
|
58
|
+
cssMinify: "esbuild"
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
> Alternatively, you could define a [browserslist](https://browsersl.ist/) based on your individual browser support strategy — which might be totally different from the list Vite 8 defines by default (targeting browsers from the early 2020s):
|
|
64
|
+
|
|
65
|
+
```ts
|
|
66
|
+
// Note: You need to install the required packages first:
|
|
67
|
+
// npm install -D lightningcss browserslist
|
|
68
|
+
|
|
69
|
+
// vite.config.ts
|
|
70
|
+
import { browserslistToTargets } from "lightningcss";
|
|
71
|
+
import browserslist from "browserslist";
|
|
72
|
+
|
|
73
|
+
export default defineConfig({
|
|
74
|
+
css: {
|
|
75
|
+
lightningcss: {
|
|
76
|
+
targets: browserslistToTargets(browserslist(">= 0.5%, last 2 major versions, Firefox ESR, not dead"))
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
```
|
|
81
|
+
|
|
52
82
|
> **Note:** The `@db-ux/core-components/build/styles/relative` file contains optional and all components styles. If you consider performance issues see [@db-ux/core-components](https://www.npmjs.com/package/@db-ux/core-components) for more information.
|
|
53
83
|
|
|
54
84
|
### DB Theme
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DBTableData } from '../model';
|
|
2
|
+
export declare const defaultTable: DBTableData;
|
|
3
|
+
export declare const horizontalAlignmentStartTable: DBTableData;
|
|
4
|
+
export declare const horizontalAlignmentCenterTable: DBTableData;
|
|
5
|
+
export declare const horizontalAlignmentEndTable: DBTableData;
|
|
6
|
+
export declare const subHeaderEmphasisNoneTable: DBTableData;
|
|
7
|
+
export declare const subHeaderEmphasisWeakTable: DBTableData;
|
|
8
|
+
export declare const subHeaderEmphasisStrongTable: DBTableData;
|
|
9
|
+
export declare const overflowTable: DBTableData;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DBTable } from "./table.vue";
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { GlobalProps, GlobalState, WidthProps } from '../../shared/model';
|
|
2
|
+
import { DBTableRowDefaultProps } from '../table-row/model';
|
|
3
|
+
export declare const DBTableRowSizeList: readonly ["x-small", "small", "medium", "large"];
|
|
4
|
+
export type DBTableRowSizeType = (typeof DBTableRowSizeList)[number];
|
|
5
|
+
export declare const DBTableVariantList: readonly ["joined", "zebra", "floating"];
|
|
6
|
+
export type DBTableVariantType = (typeof DBTableVariantList)[number];
|
|
7
|
+
export declare const DBTableDividerList: readonly ["none", "both", "horizontal", "vertical"];
|
|
8
|
+
export type DBTableDividerType = (typeof DBTableDividerList)[number];
|
|
9
|
+
export declare const DBTableMobileVariantList: readonly ["table", "list"];
|
|
10
|
+
export type DBTableMobileVariantType = (typeof DBTableMobileVariantList)[number];
|
|
11
|
+
export declare const DBTableStickHeaderList: readonly ["none", "both", "horizontal", "vertical"];
|
|
12
|
+
export type DBTableStickHederType = (typeof DBTableStickHeaderList)[number];
|
|
13
|
+
export type DBTableData = {
|
|
14
|
+
header?: DBTableRowDefaultProps[];
|
|
15
|
+
body?: DBTableRowDefaultProps[];
|
|
16
|
+
footer?: DBTableRowDefaultProps[];
|
|
17
|
+
};
|
|
18
|
+
export declare const DBTableColumnsSizeList: readonly ["auto", "1fr", "min-content", "max-content"];
|
|
19
|
+
export type DBTableColumnsSizeType = (typeof DBTableColumnsSizeList)[number];
|
|
20
|
+
export type DBTableDefaultProps = {
|
|
21
|
+
/**
|
|
22
|
+
* Slot for table caption
|
|
23
|
+
*/
|
|
24
|
+
caption?: any;
|
|
25
|
+
/**
|
|
26
|
+
* String alternative for table caption slot
|
|
27
|
+
*/
|
|
28
|
+
captionPlain?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Table data if you don't use default slot/children
|
|
31
|
+
*/
|
|
32
|
+
data?: DBTableData | string;
|
|
33
|
+
/**
|
|
34
|
+
* Show the divider between the rows and cells
|
|
35
|
+
*/
|
|
36
|
+
divider?: DBTableDividerType;
|
|
37
|
+
/**
|
|
38
|
+
* Show caption above table default is hidden
|
|
39
|
+
*/
|
|
40
|
+
showCaption?: boolean | string;
|
|
41
|
+
/**
|
|
42
|
+
* Size of the table rows
|
|
43
|
+
*/
|
|
44
|
+
size?: DBTableRowSizeType;
|
|
45
|
+
/**
|
|
46
|
+
* Change the layout of the table
|
|
47
|
+
* floating: card style table
|
|
48
|
+
* joined: classic table
|
|
49
|
+
*/
|
|
50
|
+
variant?: DBTableVariantType;
|
|
51
|
+
/**
|
|
52
|
+
* Change the layout of the table on mobile
|
|
53
|
+
* list: list style
|
|
54
|
+
* table: classic table
|
|
55
|
+
*/
|
|
56
|
+
mobileVariant?: DBTableMobileVariantType;
|
|
57
|
+
/**
|
|
58
|
+
* Change the header cells to be sticky when scrolling the table
|
|
59
|
+
*/
|
|
60
|
+
stickyHeader?: DBTableStickHederType;
|
|
61
|
+
/**
|
|
62
|
+
* Set the width of the columns based in their index.
|
|
63
|
+
* Alternative: Use `--db-table-column-size-$index` inside CSS to control it.
|
|
64
|
+
* See: https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/grid-template-columns
|
|
65
|
+
*/
|
|
66
|
+
columnSizes?: Record<number, DBTableColumnsSizeType | string>;
|
|
67
|
+
};
|
|
68
|
+
export type DBTableProps = DBTableDefaultProps & GlobalProps & WidthProps;
|
|
69
|
+
export type DBTableDefaultState = {
|
|
70
|
+
_data?: DBTableData;
|
|
71
|
+
_style?: any;
|
|
72
|
+
convertData: () => DBTableData;
|
|
73
|
+
};
|
|
74
|
+
export type DBTableState = DBTableDefaultState & GlobalState;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { DBTableData, DBTableProps } from "./model";
|
|
2
|
+
declare var __VLS_1: {}, __VLS_18: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
caption?: (props: typeof __VLS_1) => any;
|
|
5
|
+
} & {
|
|
6
|
+
default?: (props: typeof __VLS_18) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_base: import("vue").DefineComponent<DBTableProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBTableProps> & Readonly<{}>, {
|
|
9
|
+
id: string;
|
|
10
|
+
children: any;
|
|
11
|
+
className: string;
|
|
12
|
+
data: DBTableData | string;
|
|
13
|
+
divider: import("./model").DBTableDividerType;
|
|
14
|
+
variant: import("./model").DBTableVariantType;
|
|
15
|
+
size: import("./model").DBTableRowSizeType;
|
|
16
|
+
width: import("../..").WidthType | string;
|
|
17
|
+
captionPlain: string;
|
|
18
|
+
showCaption: boolean | string;
|
|
19
|
+
mobileVariant: import("./model").DBTableMobileVariantType;
|
|
20
|
+
stickyHeader: import("./model").DBTableStickHederType;
|
|
21
|
+
columnSizes: Record<number, import("./model").DBTableColumnsSizeType | string>;
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DBTableBody } from "./table-body.vue";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { GlobalProps, GlobalState } from '../../shared/model';
|
|
2
|
+
import { DBTableRowProps } from '../table-row/model';
|
|
3
|
+
export type DBTableBodyDefaultProps = {
|
|
4
|
+
rows?: DBTableRowProps[];
|
|
5
|
+
};
|
|
6
|
+
export type DBTableBodyProps = DBTableBodyDefaultProps & GlobalProps;
|
|
7
|
+
export type DBTableBodyDefaultState = {};
|
|
8
|
+
export type DBTableBodyState = DBTableBodyDefaultState & GlobalState;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DBTableRowProps } from "../table-row/model";
|
|
2
|
+
import { DBTableBodyProps } from "./model";
|
|
3
|
+
declare var __VLS_6: {};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
default?: (props: typeof __VLS_6) => any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_base: import("vue").DefineComponent<DBTableBodyProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBTableBodyProps> & Readonly<{}>, {
|
|
8
|
+
id: string;
|
|
9
|
+
children: any;
|
|
10
|
+
className: string;
|
|
11
|
+
rows: DBTableRowProps[];
|
|
12
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DBTableCaption } from "./table-caption.vue";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { GlobalProps, GlobalState } from '../../shared/model';
|
|
2
|
+
export type DBTableCaptionDefaultProps = {};
|
|
3
|
+
export type DBTableCaptionProps = DBTableCaptionDefaultProps & GlobalProps;
|
|
4
|
+
export type DBTableCaptionDefaultState = {};
|
|
5
|
+
export type DBTableCaptionState = DBTableCaptionDefaultState & GlobalState;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<import("../..").GlobalProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("../..").GlobalProps> & Readonly<{}>, {
|
|
6
|
+
id: string;
|
|
7
|
+
children: any;
|
|
8
|
+
className: string;
|
|
9
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DBTableDataCell } from "./table-data-cell.vue";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DBTableCellProps, GlobalProps, GlobalState } from '../../shared/model';
|
|
2
|
+
export type DBTableDataCellDefaultProps = {};
|
|
3
|
+
export type DBTableDataCellProps = DBTableDataCellDefaultProps & GlobalProps & DBTableCellProps;
|
|
4
|
+
export type DBTableDataCellDefaultState = {};
|
|
5
|
+
export type DBTableDataCellState = DBTableDataCellDefaultState & GlobalState;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DBTableDataCellProps } from "./model";
|
|
2
|
+
declare var __VLS_1: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_1) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<DBTableDataCellProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBTableDataCellProps> & Readonly<{}>, {
|
|
7
|
+
id: string;
|
|
8
|
+
children: any;
|
|
9
|
+
className: string;
|
|
10
|
+
colSpan: number | string;
|
|
11
|
+
colspan: number | string;
|
|
12
|
+
headers: string;
|
|
13
|
+
rowSpan: number | string;
|
|
14
|
+
rowspan: number | string;
|
|
15
|
+
horizontalAlignment: import("../..").AlignmentType;
|
|
16
|
+
verticalAlignment: import("../..").AlignmentType;
|
|
17
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DBTableFooter } from "./table-footer.vue";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { GlobalProps, GlobalState } from '../../shared/model';
|
|
2
|
+
import { DBTableRowProps } from '../table-row/model';
|
|
3
|
+
export type DBTableFooterDefaultProps = {
|
|
4
|
+
rows?: DBTableRowProps[];
|
|
5
|
+
};
|
|
6
|
+
export type DBTableFooterProps = DBTableFooterDefaultProps & GlobalProps;
|
|
7
|
+
export type DBTableFooterDefaultState = {};
|
|
8
|
+
export type DBTableFooterState = DBTableFooterDefaultState & GlobalState;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DBTableRowProps } from "../table-row/model";
|
|
2
|
+
import { DBTableFooterProps } from "./model";
|
|
3
|
+
declare var __VLS_6: {};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
default?: (props: typeof __VLS_6) => any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_base: import("vue").DefineComponent<DBTableFooterProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBTableFooterProps> & Readonly<{}>, {
|
|
8
|
+
id: string;
|
|
9
|
+
children: any;
|
|
10
|
+
className: string;
|
|
11
|
+
rows: DBTableRowProps[];
|
|
12
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DBTableHead } from "./table-head.vue";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GlobalProps, GlobalState } from '../../shared/model';
|
|
2
|
+
import { DBTableRowCell, DBTableRowProps } from '../table-row/model';
|
|
3
|
+
export type DBTableHeadDefaultProps = {
|
|
4
|
+
rows?: DBTableRowProps[];
|
|
5
|
+
};
|
|
6
|
+
export type DBTableHeadProps = DBTableHeadDefaultProps & GlobalProps;
|
|
7
|
+
export type DBTableHeadDefaultState = {
|
|
8
|
+
getCells: (cells?: DBTableRowCell[]) => DBTableRowCell[] | undefined;
|
|
9
|
+
};
|
|
10
|
+
export type DBTableHeadState = DBTableHeadDefaultState & GlobalState;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DBTableRowProps } from "../table-row/model";
|
|
2
|
+
import { DBTableHeadProps } from "./model";
|
|
3
|
+
declare var __VLS_6: {};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
default?: (props: typeof __VLS_6) => any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_base: import("vue").DefineComponent<DBTableHeadProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBTableHeadProps> & Readonly<{}>, {
|
|
8
|
+
id: string;
|
|
9
|
+
children: any;
|
|
10
|
+
className: string;
|
|
11
|
+
rows: DBTableRowProps[];
|
|
12
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DBTableHeaderCell } from "./table-header-cell.vue";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { DBTableCellProps, GlobalProps, GlobalState } from '../../shared/model';
|
|
2
|
+
export declare const DBTableHeaderCellScopeList: readonly ["row", "col", "rowgroup", "colgroup"];
|
|
3
|
+
export type DBTableHeaderCellScopeType = (typeof DBTableHeaderCellScopeList)[number];
|
|
4
|
+
export type DBTableHeaderCellDefaultProps = {
|
|
5
|
+
/**
|
|
6
|
+
* The **`abbr`** property of the HTMLTableCellElement interface indicates an abbreviation associated with the cell.
|
|
7
|
+
*
|
|
8
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/abbr)
|
|
9
|
+
*/
|
|
10
|
+
abbr?: string;
|
|
11
|
+
/**
|
|
12
|
+
* The **`scope`** property of the HTMLTableCellElement interface indicates the scope of a th cell.
|
|
13
|
+
*
|
|
14
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/scope)
|
|
15
|
+
*/
|
|
16
|
+
scope?: DBTableHeaderCellScopeType;
|
|
17
|
+
/**
|
|
18
|
+
* Hide the text content of the cell.
|
|
19
|
+
*/
|
|
20
|
+
noText?: boolean | string;
|
|
21
|
+
};
|
|
22
|
+
export type DBTableHeaderCellProps = DBTableHeaderCellDefaultProps & GlobalProps & DBTableCellProps;
|
|
23
|
+
export type DBTableHeaderCellDefaultState = {};
|
|
24
|
+
export type DBTableHeaderCellState = DBTableHeaderCellDefaultState & GlobalState;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { DBTableHeaderCellProps } from "./model";
|
|
2
|
+
declare var __VLS_1: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_1) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<DBTableHeaderCellProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBTableHeaderCellProps> & Readonly<{}>, {
|
|
7
|
+
id: string;
|
|
8
|
+
children: any;
|
|
9
|
+
className: string;
|
|
10
|
+
abbr: string;
|
|
11
|
+
noText: boolean | string;
|
|
12
|
+
colSpan: number | string;
|
|
13
|
+
colspan: number | string;
|
|
14
|
+
headers: string;
|
|
15
|
+
rowSpan: number | string;
|
|
16
|
+
rowspan: number | string;
|
|
17
|
+
horizontalAlignment: import("../..").AlignmentType;
|
|
18
|
+
verticalAlignment: import("../..").AlignmentType;
|
|
19
|
+
scope: import("./model").DBTableHeaderCellScopeType;
|
|
20
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DBTableRow } from "./table-row.vue";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { GlobalProps, GlobalState } from '../../shared/model';
|
|
2
|
+
import { DBLinkProps } from '../link/model';
|
|
3
|
+
import { DBTableDataCellProps } from '../table-data-cell/model';
|
|
4
|
+
import { DBTableHeaderCellProps } from '../table-header-cell/model';
|
|
5
|
+
export declare const DBTableRowSubHeaderEmphasisList: readonly ["none", "weak", "strong"];
|
|
6
|
+
export type DBTableRowSubHeaderEmphasisType = (typeof DBTableRowSubHeaderEmphasisList)[number];
|
|
7
|
+
export type DBTableRowCell = (DBTableHeaderCellProps | DBTableDataCellProps) & {
|
|
8
|
+
headerCell?: boolean;
|
|
9
|
+
content?: any;
|
|
10
|
+
link?: DBLinkProps;
|
|
11
|
+
};
|
|
12
|
+
export type DBTableRowDefaultProps = {
|
|
13
|
+
/**
|
|
14
|
+
* All cells of the row
|
|
15
|
+
*/
|
|
16
|
+
cells?: DBTableRowCell[];
|
|
17
|
+
/**
|
|
18
|
+
* Change styling of row only if it is inside thead
|
|
19
|
+
*/
|
|
20
|
+
subHeaderEmphasis?: DBTableRowSubHeaderEmphasisType;
|
|
21
|
+
/**
|
|
22
|
+
* If true marks the row as interactive, which checks for child with data-table-row-action="true"
|
|
23
|
+
*/
|
|
24
|
+
interactive?: boolean | string;
|
|
25
|
+
};
|
|
26
|
+
export type DBTableRowProps = DBTableRowDefaultProps & GlobalProps;
|
|
27
|
+
export type DBTableRowDefaultState = {
|
|
28
|
+
getHeaderCell: (cell: DBTableRowCell) => DBTableHeaderCellProps | undefined;
|
|
29
|
+
};
|
|
30
|
+
export type DBTableRowState = DBTableRowDefaultState & GlobalState;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DBTableRowCell, DBTableRowProps } from "./model";
|
|
2
|
+
declare var __VLS_25: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_25) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<DBTableRowProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBTableRowProps> & Readonly<{}>, {
|
|
7
|
+
id: string;
|
|
8
|
+
children: any;
|
|
9
|
+
className: string;
|
|
10
|
+
interactive: boolean | string;
|
|
11
|
+
cells: DBTableRowCell[];
|
|
12
|
+
subHeaderEmphasis: import("./model").DBTableRowSubHeaderEmphasisType;
|
|
13
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|