@budibase/bbui 1.0.196 → 1.0.199
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/bbui.es.js +1 -1
- package/dist/bbui.es.js.map +1 -1
- package/package.json +3 -3
- package/src/Table/Table.svelte +8 -6
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/bbui",
|
|
3
3
|
"description": "A UI solution used in the different Budibase projects.",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.199",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
6
|
"svelte": "src/index.js",
|
|
7
7
|
"module": "dist/bbui.es.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@adobe/spectrum-css-workflow-icons": "^1.2.1",
|
|
41
|
-
"@budibase/string-templates": "^1.0.
|
|
41
|
+
"@budibase/string-templates": "^1.0.199",
|
|
42
42
|
"@spectrum-css/actionbutton": "^1.0.1",
|
|
43
43
|
"@spectrum-css/actiongroup": "^1.0.1",
|
|
44
44
|
"@spectrum-css/avatar": "^3.0.2",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
"svelte-flatpickr": "^3.2.3",
|
|
85
85
|
"svelte-portal": "^1.0.0"
|
|
86
86
|
},
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "2c737c1a615123b11482a239e7044356b27a268a"
|
|
88
88
|
}
|
package/src/Table/Table.svelte
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
export let rowCount = 0
|
|
29
29
|
export let quiet = false
|
|
30
30
|
export let loading = false
|
|
31
|
-
export let allowSelectRows
|
|
31
|
+
export let allowSelectRows
|
|
32
32
|
export let allowEditRows = true
|
|
33
33
|
export let allowEditColumns = true
|
|
34
34
|
export let selectedRows = []
|
|
@@ -344,11 +344,7 @@
|
|
|
344
344
|
{/if}
|
|
345
345
|
{#if sortedRows?.length}
|
|
346
346
|
{#each sortedRows as row, idx}
|
|
347
|
-
<div
|
|
348
|
-
class="spectrum-Table-row"
|
|
349
|
-
on:click={() => dispatch("click", row)}
|
|
350
|
-
on:click={() => toggleSelectRow(row)}
|
|
351
|
-
>
|
|
347
|
+
<div class="spectrum-Table-row">
|
|
352
348
|
{#if showEditColumn}
|
|
353
349
|
<div
|
|
354
350
|
class="spectrum-Table-cell spectrum-Table-cell--divider spectrum-Table-cell--edit"
|
|
@@ -373,6 +369,12 @@
|
|
|
373
369
|
class="spectrum-Table-cell"
|
|
374
370
|
class:spectrum-Table-cell--divider={!!schema[field].divider}
|
|
375
371
|
style={cellStyles[field]}
|
|
372
|
+
on:click={() => {
|
|
373
|
+
if (!schema[field]?.preventSelectRow) {
|
|
374
|
+
dispatch("click", row)
|
|
375
|
+
toggleSelectRow(row)
|
|
376
|
+
}
|
|
377
|
+
}}
|
|
376
378
|
>
|
|
377
379
|
<CellRenderer
|
|
378
380
|
{customRenderers}
|