@budibase/bbui 2.1.40-alpha.4 → 2.1.41
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 +3 -3
- package/dist/bbui.es.js.map +1 -1
- package/package.json +3 -3
- package/src/Table/Table.svelte +6 -14
- package/src/index.js +0 -1
- package/src/Skeleton/Skeleton.svelte +0 -56
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": "2.1.
|
|
4
|
+
"version": "2.1.41",
|
|
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": "2.1.
|
|
41
|
+
"@budibase/string-templates": "^2.1.41",
|
|
42
42
|
"@spectrum-css/actionbutton": "^1.0.1",
|
|
43
43
|
"@spectrum-css/actiongroup": "^1.0.1",
|
|
44
44
|
"@spectrum-css/avatar": "^3.0.2",
|
|
@@ -88,5 +88,5 @@
|
|
|
88
88
|
"resolutions": {
|
|
89
89
|
"loader-utils": "1.4.1"
|
|
90
90
|
},
|
|
91
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "c7cd93439249256b85f1dbfa76dc2599799cb564"
|
|
92
92
|
}
|
package/src/Table/Table.svelte
CHANGED
|
@@ -71,8 +71,7 @@
|
|
|
71
71
|
visibleRowCount,
|
|
72
72
|
rowCount,
|
|
73
73
|
totalRowCount,
|
|
74
|
-
rowHeight
|
|
75
|
-
loading
|
|
74
|
+
rowHeight
|
|
76
75
|
)
|
|
77
76
|
$: sortedRows = sortRows(rows, sortColumn, sortOrder)
|
|
78
77
|
$: gridStyle = getGridStyle(fields, schema, showEditColumn)
|
|
@@ -121,12 +120,8 @@
|
|
|
121
120
|
visibleRowCount,
|
|
122
121
|
rowCount,
|
|
123
122
|
totalRowCount,
|
|
124
|
-
rowHeight
|
|
125
|
-
loading
|
|
123
|
+
rowHeight
|
|
126
124
|
) => {
|
|
127
|
-
if (loading) {
|
|
128
|
-
return `height: ${headerHeight + visibleRowCount * rowHeight}px;`
|
|
129
|
-
}
|
|
130
125
|
if (!rowCount || !visibleRowCount || totalRowCount <= rowCount) {
|
|
131
126
|
return ""
|
|
132
127
|
}
|
|
@@ -282,11 +277,9 @@
|
|
|
282
277
|
bind:offsetHeight={height}
|
|
283
278
|
style={`--row-height: ${rowHeight}px; --header-height: ${headerHeight}px;`}
|
|
284
279
|
>
|
|
285
|
-
{#if
|
|
280
|
+
{#if !loaded}
|
|
286
281
|
<div class="loading" style={heightStyle}>
|
|
287
|
-
<
|
|
288
|
-
<ProgressCircle />
|
|
289
|
-
</slot>
|
|
282
|
+
<ProgressCircle />
|
|
290
283
|
</div>
|
|
291
284
|
{:else}
|
|
292
285
|
<div class="spectrum-Table" style={`${heightStyle}${gridStyle}`}>
|
|
@@ -445,10 +438,9 @@
|
|
|
445
438
|
|
|
446
439
|
/* Loading */
|
|
447
440
|
.loading {
|
|
448
|
-
display:
|
|
449
|
-
|
|
441
|
+
display: grid;
|
|
442
|
+
place-items: center;
|
|
450
443
|
min-height: 100px;
|
|
451
|
-
justify-content: center;
|
|
452
444
|
}
|
|
453
445
|
|
|
454
446
|
/* Table */
|
package/src/index.js
CHANGED
|
@@ -4,7 +4,6 @@ import "./bbui.css"
|
|
|
4
4
|
import "@spectrum-css/icon/dist/index-vars.css"
|
|
5
5
|
|
|
6
6
|
// Components
|
|
7
|
-
export { default as Skeleton } from "./Skeleton/Skeleton.svelte"
|
|
8
7
|
export { default as Input } from "./Form/Input.svelte"
|
|
9
8
|
export { default as Stepper } from "./Form/Stepper.svelte"
|
|
10
9
|
export { default as TextArea } from "./Form/TextArea.svelte"
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
<div class="skeleton">
|
|
2
|
-
<div class="children">
|
|
3
|
-
<slot />
|
|
4
|
-
</div>
|
|
5
|
-
</div>
|
|
6
|
-
|
|
7
|
-
<style>
|
|
8
|
-
.skeleton {
|
|
9
|
-
height: 100%;
|
|
10
|
-
width: 100%;
|
|
11
|
-
opacity: 0;
|
|
12
|
-
background-color: var(--spectrum-global-color-gray-300) !important;
|
|
13
|
-
border-radius: 7px;
|
|
14
|
-
overflow: hidden;
|
|
15
|
-
position: relative;
|
|
16
|
-
animation: fadeIn 130ms ease 0s 1 normal forwards;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.children {
|
|
20
|
-
pointer-events: none;
|
|
21
|
-
opacity: 0;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.skeleton::after {
|
|
25
|
-
position: absolute;
|
|
26
|
-
top: 0;
|
|
27
|
-
right: 0;
|
|
28
|
-
bottom: 0;
|
|
29
|
-
left: 0;
|
|
30
|
-
transform: translateX(-100%);
|
|
31
|
-
background-image: linear-gradient(
|
|
32
|
-
90deg,
|
|
33
|
-
rgba(255, 255, 255, 0) 0,
|
|
34
|
-
rgba(255, 255, 255, 0.2) 20%,
|
|
35
|
-
rgba(255, 255, 255, 0.5) 60%,
|
|
36
|
-
rgba(255, 255, 255, 0)
|
|
37
|
-
);
|
|
38
|
-
animation: shimmer 2s infinite;
|
|
39
|
-
content: "";
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
@keyframes fadeIn {
|
|
43
|
-
0% {
|
|
44
|
-
opacity: 0;
|
|
45
|
-
}
|
|
46
|
-
100% {
|
|
47
|
-
opacity: 1;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
@keyframes shimmer {
|
|
52
|
-
100% {
|
|
53
|
-
transform: translateX(100%);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
</style>
|