vueless 1.3.6-beta.11 → 1.3.6-beta.13
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vueless",
|
|
3
|
-
"version": "1.3.6-beta.
|
|
3
|
+
"version": "1.3.6-beta.13",
|
|
4
4
|
"description": "Vue Styleless UI Component Library, powered by Tailwind CSS.",
|
|
5
5
|
"author": "Johnny Grid <hello@vueless.com> (https://vueless.com)",
|
|
6
6
|
"homepage": "https://vueless.com",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@vue/eslint-config-typescript": "^14.6.0",
|
|
58
58
|
"@vue/test-utils": "^2.4.6",
|
|
59
59
|
"@vue/tsconfig": "^0.7.0",
|
|
60
|
-
"@vueless/storybook": "^1.3.
|
|
60
|
+
"@vueless/storybook": "^1.3.15",
|
|
61
61
|
"eslint": "^9.32.0",
|
|
62
62
|
"eslint-plugin-storybook": "^10.0.2",
|
|
63
63
|
"eslint-plugin-vue": "^10.3.0",
|
|
@@ -6,7 +6,7 @@ import UTableRow from "../UTableRow.vue";
|
|
|
6
6
|
import UIcon from "../../ui.image-icon/UIcon.vue";
|
|
7
7
|
import UCheckbox from "../../ui.form-checkbox/UCheckbox.vue";
|
|
8
8
|
|
|
9
|
-
import type { FlatRow, ColumnObject, UTableRowAttrs, Config } from "../types";
|
|
9
|
+
import type { FlatRow, ColumnObject, UTableRowAttrs, Config, Row } from "../types";
|
|
10
10
|
|
|
11
11
|
describe("UTableRow.vue", () => {
|
|
12
12
|
const defaultColumns: ColumnObject[] = [
|
|
@@ -135,7 +135,7 @@ describe("UTableRow.vue", () => {
|
|
|
135
135
|
...defaultRow,
|
|
136
136
|
name: {
|
|
137
137
|
value: "John Doe",
|
|
138
|
-
class: (value, row) => `dynamic-${row.role}`,
|
|
138
|
+
class: (value: unknown, row: Row) => `dynamic-${row.role}`,
|
|
139
139
|
contentClass: (value: unknown) => `content-${value}`,
|
|
140
140
|
},
|
|
141
141
|
};
|
package/ui.data-table/types.ts
CHANGED
|
@@ -6,16 +6,15 @@ import type { Config as UDividerConfig } from "../ui.container-divider/types";
|
|
|
6
6
|
|
|
7
7
|
export type Config = typeof defaultConfig;
|
|
8
8
|
|
|
9
|
-
type RowKeys = number | string | boolean | undefined | Date | Row | Row[] | ((row: Row) => string);
|
|
10
|
-
|
|
11
9
|
export interface CellObject {
|
|
12
10
|
contentClass?: string | ((value: unknown | string, row: Row) => string);
|
|
13
11
|
class?: string | ((value: unknown | string, row: Row) => string);
|
|
14
|
-
[key: string]: unknown
|
|
12
|
+
[key: string]: unknown;
|
|
15
13
|
}
|
|
16
14
|
|
|
17
15
|
export type RowId = string | number;
|
|
18
|
-
|
|
16
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
17
|
+
export type Cell = CellObject & any;
|
|
19
18
|
|
|
20
19
|
export interface RowData {
|
|
21
20
|
[key: string]: Cell;
|
|
@@ -32,7 +31,7 @@ export interface Row {
|
|
|
32
31
|
rowDate?: string | Date;
|
|
33
32
|
row?: Row | Row[];
|
|
34
33
|
class?: string | ((row: Row) => string);
|
|
35
|
-
[key: string]:
|
|
34
|
+
[key: string]: unknown;
|
|
36
35
|
}
|
|
37
36
|
|
|
38
37
|
export interface FlatRow extends Row {
|