@budibase/frontend-core 3.2.4 → 3.2.6

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,18 +1,18 @@
1
1
  {
2
2
  "name": "@budibase/frontend-core",
3
- "version": "3.2.4",
3
+ "version": "3.2.6",
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": "3.2.4",
10
- "@budibase/shared-core": "3.2.4",
11
- "@budibase/types": "3.2.4",
9
+ "@budibase/bbui": "3.2.6",
10
+ "@budibase/shared-core": "3.2.6",
11
+ "@budibase/types": "3.2.6",
12
12
  "dayjs": "^1.10.8",
13
13
  "lodash": "4.17.21",
14
14
  "shortid": "2.2.15",
15
15
  "socket.io-client": "^4.7.5"
16
16
  },
17
- "gitHead": "16c33bbc03034d8a21c989f49bb9edb4e6aa8627"
17
+ "gitHead": "4b9c088e1a3550a500613b3f24a15d046689abe3"
18
18
  }
@@ -1,5 +1,21 @@
1
1
  <script>
2
2
  import TextCell from "./TextCell.svelte"
3
+ import DateCell from "./DateCell.svelte"
4
+ import NumberCell from "./NumberCell.svelte"
5
+ import BooleanCell from "./BooleanCell.svelte"
6
+ import { FieldType } from "@budibase/types"
7
+
8
+ export let schema
9
+
10
+ $: responseType = schema.responseType
3
11
  </script>
4
12
 
5
- <TextCell {...$$props} readonly />
13
+ {#if responseType === FieldType.NUMBER}
14
+ <NumberCell {...$$props} readonly />
15
+ {:else if responseType === FieldType.BOOLEAN}
16
+ <BooleanCell {...$$props} readonly />
17
+ {:else if responseType === FieldType.DATETIME}
18
+ <DateCell {...$$props} readonly />
19
+ {:else}
20
+ <TextCell {...$$props} readonly />
21
+ {/if}