@emamid/svelte-data-table 1.0.4 → 1.0.6
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/dist/DataTable.svelte +1 -1
- package/dist/DataTable.svelte.d.ts +1 -1
- package/dist/DataTableDataCell.svelte +1 -1
- package/dist/DataTableHeaderCell.svelte +1 -1
- package/dist/DataTableHeaderCell.svelte.d.ts +1 -1
- package/dist/DataTableIcon.svelte +1 -1
- package/dist/DataTableIcon.svelte.d.ts +1 -1
- package/dist/DataTableRow.svelte +1 -1
- package/dist/DataTableRow.svelte.d.ts +1 -1
- package/dist/cells/Actions.d.ts +1 -1
- package/dist/cells/ActionsCell.svelte +1 -1
- package/dist/cells/ActionsCell.svelte.d.ts +1 -1
- package/dist/cells/ButtonCell.svelte +1 -1
- package/dist/cells/ButtonCell.svelte.d.ts +1 -1
- package/dist/cells/CheckboxCell.svelte +1 -1
- package/dist/cells/CheckboxCell.svelte.d.ts +1 -1
- package/dist/cells/InputCell.svelte +1 -1
- package/dist/cells/InputCell.svelte.d.ts +1 -1
- package/dist/cells/MultiSelectCell.svelte +1 -1
- package/dist/cells/MultiSelectCell.svelte.d.ts +1 -1
- package/dist/cells/NumberInputCell.svelte +1 -1
- package/dist/cells/NumberInputCell.svelte.d.ts +1 -1
- package/dist/cells/RadioCell.svelte +1 -1
- package/dist/cells/RadioCell.svelte.d.ts +1 -1
- package/dist/cells/RangeCell.svelte +1 -1
- package/dist/cells/RangeCell.svelte.d.ts +1 -1
- package/dist/cells/SelectCell.svelte +1 -1
- package/dist/cells/SelectCell.svelte.d.ts +1 -1
- package/dist/cells/SpinCell.svelte +1 -1
- package/dist/cells/SpinCell.svelte.d.ts +1 -1
- package/dist/themes/daisyUI.js +9 -9
- package/dist/themes/default.js +43 -5
- package/package.json +1 -1
package/dist/DataTable.svelte
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ActionEvent, ColumnConfig, DataCellChangedEvent, DataCellDragEvent, DataCellDropEvent, DataCellEvent, DataTableTheme, EnterAction, HeaderEvent, RowBoolean, RowClassFunction, RowDragEvent, RowDropBoolean, RowDropEvent, RowEvent, SortFunction } from './common.
|
|
1
|
+
import type { ActionEvent, ColumnConfig, DataCellChangedEvent, DataCellDragEvent, DataCellDropEvent, DataCellEvent, DataTableTheme, EnterAction, HeaderEvent, RowBoolean, RowClassFunction, RowDragEvent, RowDropBoolean, RowDropEvent, RowEvent, SortFunction } from './common.js';
|
|
2
2
|
interface Props {
|
|
3
3
|
allowRowDrag?: RowBoolean;
|
|
4
4
|
allowRowDrop?: RowDropBoolean;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
getPartIcon,
|
|
5
5
|
joinPartClasses,
|
|
6
6
|
} from './common.js';
|
|
7
|
-
import type { ColumnConfig } from './common.
|
|
7
|
+
import type { ColumnConfig } from './common.js';
|
|
8
8
|
import { activeTheme } from './themes/active.js';
|
|
9
9
|
|
|
10
10
|
import DataTableIcon from './DataTableIcon.svelte';
|
package/dist/DataTableRow.svelte
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ActionEvent, ColumnConfig, DataCellChangedEvent, DataCellDragEvent, DataCellDropEvent, DataCellEvent, DataCellMouseEvent, RowBoolean, RowClassFunction, RowDragEvent, RowDropBoolean, RowDropEvent, RowEvent } from './common.
|
|
1
|
+
import type { ActionEvent, ColumnConfig, DataCellChangedEvent, DataCellDragEvent, DataCellDropEvent, DataCellEvent, DataCellMouseEvent, RowBoolean, RowClassFunction, RowDragEvent, RowDropBoolean, RowDropEvent, RowEvent } from './common.js';
|
|
2
2
|
interface Props {
|
|
3
3
|
allowRowDrag: RowBoolean;
|
|
4
4
|
allowRowDrop: RowDropBoolean;
|
package/dist/cells/Actions.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
getDataTableContext,
|
|
4
4
|
joinInputClasses,
|
|
5
5
|
} from '../common.js';
|
|
6
|
-
import type { ColumnConfig, DataCellChangedEvent, DataCellEvent } from '../common.
|
|
6
|
+
import type { ColumnConfig, DataCellChangedEvent, DataCellEvent } from '../common.js';
|
|
7
7
|
import { activeTheme } from '../themes/active.js';
|
|
8
8
|
|
|
9
9
|
import TabWrapper from './TabWrapper.svelte';
|
package/dist/themes/daisyUI.js
CHANGED
|
@@ -2,45 +2,45 @@ export const daisyUITheme = {
|
|
|
2
2
|
inputs: {
|
|
3
3
|
button: {
|
|
4
4
|
button: {
|
|
5
|
-
|
|
5
|
+
append: 'btn btn-primary',
|
|
6
6
|
}
|
|
7
7
|
},
|
|
8
8
|
checkbox: {
|
|
9
9
|
input: {
|
|
10
|
-
|
|
10
|
+
append: 'toggle',
|
|
11
11
|
},
|
|
12
12
|
},
|
|
13
13
|
input: {
|
|
14
14
|
input: {
|
|
15
|
-
|
|
15
|
+
append: 'input',
|
|
16
16
|
},
|
|
17
17
|
},
|
|
18
18
|
multiSelect: {
|
|
19
19
|
select: {
|
|
20
|
-
|
|
20
|
+
append: 'select',
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
numberInput: {
|
|
24
24
|
input: {
|
|
25
|
-
|
|
25
|
+
append: 'input',
|
|
26
26
|
},
|
|
27
27
|
},
|
|
28
28
|
radio: {
|
|
29
29
|
input: {
|
|
30
|
-
|
|
30
|
+
append: 'mask mask-star',
|
|
31
31
|
},
|
|
32
32
|
span: {
|
|
33
|
-
|
|
33
|
+
append: 'rating',
|
|
34
34
|
},
|
|
35
35
|
},
|
|
36
36
|
range: {
|
|
37
37
|
input: {
|
|
38
|
-
|
|
38
|
+
append: 'range',
|
|
39
39
|
},
|
|
40
40
|
},
|
|
41
41
|
select: {
|
|
42
42
|
select: {
|
|
43
|
-
|
|
43
|
+
append: 'select',
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
},
|
package/dist/themes/default.js
CHANGED
|
@@ -8,9 +8,45 @@ export const defaultTheme = {
|
|
|
8
8
|
override: 'w-4 h-4',
|
|
9
9
|
},
|
|
10
10
|
},
|
|
11
|
+
button: {
|
|
12
|
+
button: {
|
|
13
|
+
override: 'size-full',
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
checkbox: {
|
|
17
|
+
input: {
|
|
18
|
+
override: 'size-full',
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
input: {
|
|
22
|
+
input: {
|
|
23
|
+
override: 'size-full',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
multiSelect: {
|
|
27
|
+
select: {
|
|
28
|
+
override: 'size-full',
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
numberInput: {
|
|
32
|
+
input: {
|
|
33
|
+
override: 'size-full',
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
radio: {},
|
|
37
|
+
range: {
|
|
38
|
+
input: {
|
|
39
|
+
override: 'size-full',
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
select: {
|
|
43
|
+
select: {
|
|
44
|
+
override: 'size-full',
|
|
45
|
+
}
|
|
46
|
+
},
|
|
11
47
|
spinner: {
|
|
12
48
|
div: {
|
|
13
|
-
override: 'spinner',
|
|
49
|
+
override: 'size-full spinner',
|
|
14
50
|
},
|
|
15
51
|
minusButton: {
|
|
16
52
|
override: 'pr-1',
|
|
@@ -25,10 +61,10 @@ export const defaultTheme = {
|
|
|
25
61
|
parts: {
|
|
26
62
|
dataCell: {
|
|
27
63
|
td: {
|
|
28
|
-
override: 'px-
|
|
64
|
+
override: 'px-1',
|
|
29
65
|
},
|
|
30
66
|
tdFocused: {
|
|
31
|
-
override: 'px-
|
|
67
|
+
override: 'px-1',
|
|
32
68
|
},
|
|
33
69
|
},
|
|
34
70
|
headerCell: {
|
|
@@ -37,7 +73,9 @@ export const defaultTheme = {
|
|
|
37
73
|
span: {
|
|
38
74
|
override: 'inline-flex items-center',
|
|
39
75
|
},
|
|
40
|
-
th: {
|
|
76
|
+
th: {
|
|
77
|
+
override: 'px-1',
|
|
78
|
+
},
|
|
41
79
|
titleSpan: {},
|
|
42
80
|
},
|
|
43
81
|
row: {
|
|
@@ -49,7 +87,7 @@ export const defaultTheme = {
|
|
|
49
87
|
},
|
|
50
88
|
tbody: {},
|
|
51
89
|
thead: {
|
|
52
|
-
override: '
|
|
90
|
+
override: 'sticky top-0 z-10',
|
|
53
91
|
},
|
|
54
92
|
theadTR: {},
|
|
55
93
|
},
|