@kws3/ui 4.2.5 → 4.3.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.mdx
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## 4.3.0
|
|
2
|
+
- `StickyColumnsTableWrapper` now includes a box shadow to compensate for the inner table's drop shadow being hidden due to overflow clipping.
|
|
3
|
+
- **[BREAKING]** `GridView` component now transitions each `GridCell` independently, previously used to transition each `GridRow`. This means all content in `GridCell` no includes an additional wrapper element for handling the transitions. This matches the behaviour in `TileView`.
|
|
4
|
+
|
|
1
5
|
## 4.2.5
|
|
2
6
|
- Fix z-index for sticky columns
|
|
3
7
|
- Allow `inner_class` in `InfiniteList` component
|
|
@@ -11,11 +11,14 @@
|
|
|
11
11
|
-->
|
|
12
12
|
|
|
13
13
|
<td class={classNames(column, row)} style={styles(column, row)}>
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
<Transition {transition} x={20} delay={20 * row_index}>
|
|
15
|
+
<!-- eslint-disable-next-line svelte/no-at-html-tags -->
|
|
16
|
+
{@html transforms(column, row)}
|
|
17
|
+
</Transition>
|
|
16
18
|
</td>
|
|
17
19
|
|
|
18
20
|
<script>
|
|
21
|
+
import { Transition } from "@kws3/ui";
|
|
19
22
|
/**
|
|
20
23
|
* Name of the column in the DB
|
|
21
24
|
*/
|
|
@@ -38,5 +41,7 @@
|
|
|
38
41
|
* Finds CSS styles for the column
|
|
39
42
|
* @type {object}
|
|
40
43
|
*/
|
|
41
|
-
styles = {}
|
|
44
|
+
styles = {},
|
|
45
|
+
row_index = 0,
|
|
46
|
+
transition = false;
|
|
42
47
|
</script>
|
|
@@ -28,7 +28,6 @@
|
|
|
28
28
|
-->
|
|
29
29
|
{#if transition}
|
|
30
30
|
<tr
|
|
31
|
-
in:fly|global={{ x: 20, delay: 25 * row_index }}
|
|
32
31
|
on:click|stopPropagation={rowClick}
|
|
33
32
|
class:is-selected={activated && visualActivationOnClick}
|
|
34
33
|
class:is-checked={checked}>
|
|
@@ -38,13 +37,15 @@
|
|
|
38
37
|
on:click={(e) => {
|
|
39
38
|
clickableRows && e.stopImmediatePropagation();
|
|
40
39
|
}}>
|
|
41
|
-
<
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
40
|
+
<div in:fly|global={{ x: 20, delay: 25 * row_index }}>
|
|
41
|
+
<Checkbox
|
|
42
|
+
size={selectCheckboxSize}
|
|
43
|
+
color={selectCheckboxColor}
|
|
44
|
+
style="margin:0;"
|
|
45
|
+
inverted={false}
|
|
46
|
+
bind:checked
|
|
47
|
+
on:change={changed} />
|
|
48
|
+
</div>
|
|
48
49
|
</td>
|
|
49
50
|
{/if}
|
|
50
51
|
{#each column_keys as column}
|
|
@@ -56,7 +57,9 @@
|
|
|
56
57
|
{row}
|
|
57
58
|
{transforms}
|
|
58
59
|
{classNames}
|
|
59
|
-
{styles}
|
|
60
|
+
{styles}
|
|
61
|
+
{row_index}
|
|
62
|
+
{transition} />
|
|
60
63
|
{/if}
|
|
61
64
|
{/each}
|
|
62
65
|
</tr>
|
|
@@ -67,13 +70,15 @@
|
|
|
67
70
|
class:is-checked={checked}>
|
|
68
71
|
{#if bulk_actions}
|
|
69
72
|
<td style="vertical-align:middle;">
|
|
70
|
-
<
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
73
|
+
<div>
|
|
74
|
+
<Checkbox
|
|
75
|
+
size={selectCheckboxSize}
|
|
76
|
+
color={selectCheckboxColor}
|
|
77
|
+
style="margin:0;"
|
|
78
|
+
inverted={false}
|
|
79
|
+
bind:checked
|
|
80
|
+
on:change={changed} />
|
|
81
|
+
</div>
|
|
77
82
|
</td>
|
|
78
83
|
{/if}
|
|
79
84
|
{#each column_keys as column}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kws3/ui",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"description": "UI components for use with Svelte v3 applications.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"svelte": "index.js",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"typescript": "^5.2.2"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "be0c7f1fb751590c95f9aad9ff240292e34d5386"
|
|
39
39
|
}
|
package/styles/Grid.scss
CHANGED
|
@@ -86,6 +86,7 @@ $kws-gridview-even-row-hover-background-color: $table-striped-row-even-hover-bac
|
|
|
86
86
|
}
|
|
87
87
|
.kws-sticky-columns-table-wrapper {
|
|
88
88
|
position: relative;
|
|
89
|
+
box-shadow: $kws-gridview-box-shadow;
|
|
89
90
|
|
|
90
91
|
.data-table {
|
|
91
92
|
margin-bottom: 1.5rem;
|
|
@@ -137,6 +138,7 @@ $kws-gridview-even-row-hover-background-color: $table-striped-row-even-hover-bac
|
|
|
137
138
|
}
|
|
138
139
|
td,
|
|
139
140
|
th {
|
|
141
|
+
overflow: hidden;
|
|
140
142
|
&.is-sticky-column {
|
|
141
143
|
position: sticky;
|
|
142
144
|
z-index: 2;
|