@kws3/ui 4.2.5 → 4.3.1

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,11 @@
1
+ ## 4.3.1
2
+ - Include bulma 0.9 as peer dependency
3
+ - Include svelte 4 as peer dependency
4
+
5
+ ## 4.3.0
6
+ - `StickyColumnsTableWrapper` now includes a box shadow to compensate for the inner table's drop shadow being hidden due to overflow clipping.
7
+ - **[BREAKING]** `GridView` component now transitions each `GridCell` independently, previously used to transition each `GridRow`. This means all content in `GridCell` now includes an additional wrapper element for handling the transitions. This matches the behaviour in `TileView`.
8
+
1
9
  ## 4.2.5
2
10
  - Fix z-index for sticky columns
3
11
  - 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
- <!-- eslint-disable-next-line svelte/no-at-html-tags -->
15
- {@html transforms(column, row)}
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
- <Checkbox
42
- size={selectCheckboxSize}
43
- color={selectCheckboxColor}
44
- style="margin:0;"
45
- inverted={false}
46
- bind:checked
47
- on:change={changed} />
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
- <Checkbox
71
- size={selectCheckboxSize}
72
- color={selectCheckboxColor}
73
- style="margin:0;"
74
- inverted={false}
75
- bind:checked
76
- on:change={changed} />
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.2.5",
3
+ "version": "4.3.1",
4
4
  "description": "UI components for use with Svelte v3 applications.",
5
5
  "main": "index.js",
6
6
  "svelte": "index.js",
@@ -25,6 +25,10 @@
25
25
  "access": "public"
26
26
  },
27
27
  "types": "./index.d.ts",
28
+ "peerDependencies": {
29
+ "bulma": "^0.9.3",
30
+ "svelte": "^4.2.10"
31
+ },
28
32
  "dependencies": {
29
33
  "@kws3/text-mask-core": "^5.1.3",
30
34
  "apexcharts": "3.33.2",
@@ -35,5 +39,5 @@
35
39
  "devDependencies": {
36
40
  "typescript": "^5.2.2"
37
41
  },
38
- "gitHead": "7d10812e05c4c494448396ff158fb3b70512cca8"
42
+ "gitHead": "e21174fbfbe5370abdfcf4862b3978cffc35659f"
39
43
  }
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;