@budibase/frontend-core 2.20.6 → 2.20.11
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 +5 -6
- package/src/api/rows.js +12 -1
- package/src/components/grid/cells/AttachmentCell.svelte +2 -0
- package/src/components/grid/cells/GridCell.svelte +2 -0
- package/src/components/grid/cells/GutterCell.svelte +2 -0
- package/src/components/grid/cells/HeaderCell.svelte +2 -0
- package/src/components/grid/cells/LongFormCell.svelte +2 -0
- package/src/components/grid/cells/OptionsCell.svelte +2 -0
- package/src/components/grid/cells/RelationshipCell.svelte +2 -0
- package/src/components/grid/layout/ButtonColumn.svelte +1 -0
- package/src/components/grid/layout/Grid.svelte +1 -0
- package/src/components/grid/layout/GridBody.svelte +2 -0
- package/src/components/grid/layout/GridRow.svelte +2 -0
- package/src/components/grid/layout/GridScrollWrapper.svelte +2 -0
- package/src/components/grid/layout/NewColumnButton.svelte +2 -0
- package/src/components/grid/layout/NewRow.svelte +2 -0
- package/src/components/grid/layout/StickyColumn.svelte +2 -0
- package/src/components/grid/overlays/ResizeOverlay.svelte +1 -0
- package/src/components/grid/overlays/ScrollOverlay.svelte +2 -0
package/package.json
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/frontend-core",
|
|
3
|
-
"version": "2.20.
|
|
3
|
+
"version": "2.20.11",
|
|
4
4
|
"description": "Budibase frontend core libraries used in builder and client",
|
|
5
5
|
"author": "Budibase",
|
|
6
6
|
"license": "MPL-2.0",
|
|
7
7
|
"svelte": "src/index.js",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@budibase/bbui": "2.20.
|
|
10
|
-
"@budibase/shared-core": "2.20.
|
|
9
|
+
"@budibase/bbui": "2.20.11",
|
|
10
|
+
"@budibase/shared-core": "2.20.11",
|
|
11
11
|
"dayjs": "^1.10.8",
|
|
12
12
|
"lodash": "4.17.21",
|
|
13
|
-
"socket.io-client": "^4.6.1"
|
|
14
|
-
"svelte": "^3.49.0"
|
|
13
|
+
"socket.io-client": "^4.6.1"
|
|
15
14
|
},
|
|
16
|
-
"gitHead": "
|
|
15
|
+
"gitHead": "10a2470d89088ff359dfddf62b1af42cdf996002"
|
|
17
16
|
}
|
package/src/api/rows.js
CHANGED
|
@@ -89,13 +89,24 @@ export const buildRowEndpoints = API => ({
|
|
|
89
89
|
* @param rows the array of rows to export
|
|
90
90
|
* @param format the format to export (csv or json)
|
|
91
91
|
* @param columns which columns to export (all if undefined)
|
|
92
|
+
* @param delimiter how values should be separated in a CSV (default is comma)
|
|
92
93
|
*/
|
|
93
|
-
exportRows: async ({
|
|
94
|
+
exportRows: async ({
|
|
95
|
+
tableId,
|
|
96
|
+
rows,
|
|
97
|
+
format,
|
|
98
|
+
columns,
|
|
99
|
+
search,
|
|
100
|
+
delimiter,
|
|
101
|
+
customHeaders,
|
|
102
|
+
}) => {
|
|
94
103
|
return await API.post({
|
|
95
104
|
url: `/api/${tableId}/rows/exportRows?format=${format}`,
|
|
96
105
|
body: {
|
|
97
106
|
rows,
|
|
98
107
|
columns,
|
|
108
|
+
delimiter,
|
|
109
|
+
customHeaders,
|
|
99
110
|
...search,
|
|
100
111
|
},
|
|
101
112
|
parseResponse: async response => {
|
|
@@ -77,6 +77,8 @@
|
|
|
77
77
|
})
|
|
78
78
|
</script>
|
|
79
79
|
|
|
80
|
+
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
|
81
|
+
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
|
80
82
|
<div class="attachment-cell" class:editable on:click={editable ? open : null}>
|
|
81
83
|
{#each value || [] as attachment}
|
|
82
84
|
{#if isImage(attachment.extension)}
|
|
@@ -64,6 +64,8 @@
|
|
|
64
64
|
use:clickOutside={close}
|
|
65
65
|
/>
|
|
66
66
|
{:else}
|
|
67
|
+
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
|
68
|
+
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
|
67
69
|
<div class="long-form-cell" on:click={editable ? open : null} class:editable>
|
|
68
70
|
<div class="value">
|
|
69
71
|
{value || ""}
|
|
@@ -36,6 +36,8 @@
|
|
|
36
36
|
})
|
|
37
37
|
</script>
|
|
38
38
|
|
|
39
|
+
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
|
40
|
+
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
|
39
41
|
<div bind:this={body} class="grid-body">
|
|
40
42
|
<GridScrollWrapper scrollHorizontally scrollVertically attachHandlers>
|
|
41
43
|
{#each $renderedRows as row, idx}
|
|
@@ -153,6 +153,8 @@
|
|
|
153
153
|
</script>
|
|
154
154
|
|
|
155
155
|
<!-- New row FAB -->
|
|
156
|
+
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
|
157
|
+
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
|
156
158
|
<TempTooltip
|
|
157
159
|
text="Click here to create your first row"
|
|
158
160
|
condition={hasNoRows && $loaded && !$filter?.length && !$refreshing}
|
|
@@ -63,6 +63,8 @@
|
|
|
63
63
|
{/if}
|
|
64
64
|
</div>
|
|
65
65
|
|
|
66
|
+
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
|
67
|
+
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
|
66
68
|
<div class="content" on:mouseleave={() => ($hoveredRowId = null)}>
|
|
67
69
|
<GridScrollWrapper scrollVertically attachHandlers>
|
|
68
70
|
{#each $renderedRows as row, idx}
|
|
@@ -120,6 +120,7 @@
|
|
|
120
120
|
</script>
|
|
121
121
|
|
|
122
122
|
{#if $showVScrollbar}
|
|
123
|
+
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
|
123
124
|
<div
|
|
124
125
|
class="v-scrollbar"
|
|
125
126
|
style="--size:{ScrollBarSize}px; top:{barTop}px; height:{barHeight}px;"
|
|
@@ -129,6 +130,7 @@
|
|
|
129
130
|
/>
|
|
130
131
|
{/if}
|
|
131
132
|
{#if $showHScrollbar}
|
|
133
|
+
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
|
132
134
|
<div
|
|
133
135
|
class="h-scrollbar"
|
|
134
136
|
style="--size:{ScrollBarSize}px; left:{barLeft}px; width:{barWidth}px;"
|