@budibase/bbui 1.0.105-alpha.28 → 1.0.105-alpha.30
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,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.105-alpha.
|
|
4
|
+
"version": "1.0.105-alpha.30",
|
|
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.105-alpha.
|
|
41
|
+
"@budibase/string-templates": "^1.0.105-alpha.30",
|
|
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": "b42b6fa5a33ac0294bd68f725f2e46322f11bceb"
|
|
88
88
|
}
|
package/src/Table/Table.svelte
CHANGED
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
export let disableSorting = false
|
|
37
37
|
export let autoSortColumns = true
|
|
38
38
|
export let compact = false
|
|
39
|
+
export let customPlaceholder = false
|
|
39
40
|
|
|
40
41
|
const dispatch = createEventDispatcher()
|
|
41
42
|
|
|
@@ -387,13 +388,24 @@
|
|
|
387
388
|
</div>
|
|
388
389
|
{/each}
|
|
389
390
|
{:else}
|
|
390
|
-
<div
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
391
|
+
<div
|
|
392
|
+
class="placeholder"
|
|
393
|
+
class:placeholder--custom={customPlaceholder}
|
|
394
|
+
class:placeholder--no-fields={!fields?.length}
|
|
395
|
+
>
|
|
396
|
+
{#if customPlaceholder}
|
|
397
|
+
<slot name="placeholder" />
|
|
398
|
+
{:else}
|
|
399
|
+
<div class="placeholder-content">
|
|
400
|
+
<svg
|
|
401
|
+
class="spectrum-Icon spectrum-Icon--sizeXXL"
|
|
402
|
+
focusable="false"
|
|
403
|
+
>
|
|
404
|
+
<use xlink:href="#spectrum-icon-18-Table" />
|
|
405
|
+
</svg>
|
|
406
|
+
<div>No rows found</div>
|
|
407
|
+
</div>
|
|
408
|
+
{/if}
|
|
397
409
|
</div>
|
|
398
410
|
{/if}
|
|
399
411
|
</div>
|
|
@@ -458,6 +470,13 @@
|
|
|
458
470
|
justify-content: flex-start;
|
|
459
471
|
align-items: center;
|
|
460
472
|
user-select: none;
|
|
473
|
+
border-top: var(--table-border);
|
|
474
|
+
}
|
|
475
|
+
.spectrum-Table-headCell:first-of-type {
|
|
476
|
+
border-left: var(--table-border);
|
|
477
|
+
}
|
|
478
|
+
.spectrum-Table-headCell:last-of-type {
|
|
479
|
+
border-right: var(--table-border);
|
|
461
480
|
}
|
|
462
481
|
.spectrum-Table-headCell--alignCenter {
|
|
463
482
|
justify-content: center;
|
|
@@ -576,16 +595,19 @@
|
|
|
576
595
|
border-top: none;
|
|
577
596
|
grid-column: 1 / -1;
|
|
578
597
|
background-color: var(--table-bg);
|
|
598
|
+
padding: 40px;
|
|
579
599
|
}
|
|
580
600
|
.placeholder--no-fields {
|
|
581
601
|
border-top: var(--table-border);
|
|
582
602
|
}
|
|
603
|
+
.placeholder--custom {
|
|
604
|
+
justify-content: flex-start;
|
|
605
|
+
}
|
|
583
606
|
.wrapper--quiet .placeholder {
|
|
584
607
|
border-left: none;
|
|
585
608
|
border-right: none;
|
|
586
609
|
}
|
|
587
610
|
.placeholder-content {
|
|
588
|
-
padding: 40px;
|
|
589
611
|
display: flex;
|
|
590
612
|
flex-direction: column;
|
|
591
613
|
justify-content: center;
|