@db-ux/v-core-components 4.10.1 → 4.11.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/CHANGELOG.md +16 -0
- package/README.md +1 -1
- 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/components/textarea/textarea.vue.d.ts +1 -1
- package/dist/db-ux.es.js +1538 -1012
- package/dist/db-ux.umd.js +1 -1
- package/dist/index.d.ts +16 -0
- package/dist/shared/figma.d.ts +70 -18
- package/dist/shared/model.d.ts +44 -2
- package/dist/utils/index.d.ts +9 -4
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @db-ux/v-core-components
|
|
2
2
|
|
|
3
|
+
## 4.11.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- feat: add DBTable, DBTableHead, DBTableBody, DBTableFooter, DBTableRow, DBTableHeaderCell, and DBTableDataCell components - [see commit f64b6e0](https://github.com/db-ux-design-system/core-web/commit/f64b6e0f4b36ea4987c1d9ac7a0328bf317cdcad)
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- fix: Add missing `propertyName` parameter to all `getBooleanAsString` calls across components for consistent string-based boolean parsing. - [see commit 6c11be5](https://github.com/db-ux-design-system/core-web/commit/6c11be54397c425607103f44b987b752efffb6d5)
|
|
12
|
+
|
|
13
|
+
- fix: Remove unwanted whitespace characters from rendered output to prevent layout shifts - [see commit a0f23a4](https://github.com/db-ux-design-system/core-web/commit/a0f23a4a3e715414de3d045b59b88dc3ac28d5e7)
|
|
14
|
+
|
|
15
|
+
## 4.10.2
|
|
16
|
+
|
|
17
|
+
_version bump_
|
|
18
|
+
|
|
3
19
|
## 4.10.1
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -269,7 +269,7 @@ Contributions are very welcome, please refer to the [contribution guide](https:/
|
|
|
269
269
|
## Code of conduct
|
|
270
270
|
|
|
271
271
|
We as members, contributors, and leaders pledge to make participation in our
|
|
272
|
-
community a harassment-free experience for everyone – have a look at our [Contributor Covenant Code of Conduct](https://github.com/db-ux-design-system/
|
|
272
|
+
community a harassment-free experience for everyone – have a look at our [Contributor Covenant Code of Conduct](https://github.com/db-ux-design-system/.github/blob/main/CODE-OF-CONDUCT.md).
|
|
273
273
|
|
|
274
274
|
## License
|
|
275
275
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { 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 type { GlobalProps, GlobalState, WidthProps } from '../../shared/model';
|
|
2
|
+
import type { 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 ["flat", "zebra", "spaced"];
|
|
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 DBTableStickyHeaderList: readonly ["none", "both", "horizontal", "vertical"];
|
|
12
|
+
export type DBTableStickyHeaderType = (typeof DBTableStickyHeaderList)[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
|
+
* spaced: card style table
|
|
48
|
+
* flat: 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?: DBTableStickyHeaderType;
|
|
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").DBTableStickyHeaderType;
|
|
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 type { GlobalProps, GlobalState } from '../../shared/model';
|
|
2
|
+
import type { 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 type { 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 type { 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 type { GlobalProps, GlobalState } from '../../shared/model';
|
|
2
|
+
import type { 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 type { GlobalProps, GlobalState } from '../../shared/model';
|
|
2
|
+
import type { 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 type { 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 type { GlobalProps, GlobalState } from '../../shared/model';
|
|
2
|
+
import type { DBLinkProps } from '../link/model';
|
|
3
|
+
import type { DBTableDataCellProps } from '../table-data-cell/model';
|
|
4
|
+
import type { 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-trigger="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
|
+
};
|
|
@@ -40,9 +40,9 @@ declare const __VLS_export: import("vue").DefineComponent<DBTextareaProps, {}, {
|
|
|
40
40
|
readOnly: boolean | string;
|
|
41
41
|
readonly: boolean | string;
|
|
42
42
|
fieldSizing: import("../../shared/model").FieldSizingType;
|
|
43
|
+
rows: number | string;
|
|
43
44
|
cols: number | string;
|
|
44
45
|
showResizer: boolean | string;
|
|
45
|
-
rows: number | string;
|
|
46
46
|
spellCheck: boolean;
|
|
47
47
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
48
48
|
declare const _default: typeof __VLS_export;
|