From 4300a311f4bc63176e1ccbcfecf9e88c057160ed Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Thu, 25 Jun 2020 14:36:27 +0100 Subject: [PATCH 1/3] date field --- packages/builder/src/constants/backend/index.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/builder/src/constants/backend/index.js b/packages/builder/src/constants/backend/index.js index 89861b8ac7..44f44276ed 100644 --- a/packages/builder/src/constants/backend/index.js +++ b/packages/builder/src/constants/backend/index.js @@ -40,10 +40,10 @@ export const FIELDS = { DATETIME: { name: "Date/Time", icon: "ri-calendar-event-fill", - type: "datetime", + type: "string", constraints: { - type: "date", - datetime: {}, + type: "string", + length: {}, presence: false, }, }, @@ -119,10 +119,10 @@ export const BLOCKS = { END_DATE: { name: "End Date", icon: "ri-calendar-event-fill", - type: "datetime", + type: "string", constraints: { - type: "date", - datetime: {}, + type: "string", + length: {}, presence: false, }, }, From 7c98a466e45a79c3fb8e87d154e31088c28f0329 Mon Sep 17 00:00:00 2001 From: Joe <49767913+joebudi@users.noreply.github.com> Date: Thu, 25 Jun 2020 15:49:56 +0100 Subject: [PATCH 2/3] General UI fixing previous styling issues --- packages/builder/package.json | 2 +- packages/builder/src/budibase.css | 11 +- .../src/components/common/Block.svelte | 8 +- .../src/components/common/NumberBox.svelte | 8 +- .../src/components/common/ValuesList.svelte | 25 +- .../ModelDataTable/ModelDataTable.svelte | 5 - .../modals/CreateEditRecord.svelte | 27 ++- .../nav/ModelNavigator/BlockNavigator.svelte | 3 +- .../nav/ModelNavigator/ListItem.svelte | 11 +- .../nav/ModelNavigator/ModelNavigator.svelte | 2 +- .../nav/ModelSetupNav/ModelFieldEditor.svelte | 26 ++- .../nav/ModelSetupNav/ModelSetupNav.svelte | 11 +- .../userInterface/UserInterfaceRoot.svelte | 2 +- .../[application]/backend/_layout.svelte | 2 +- .../[application]/workflow/_layout.svelte | 1 + packages/server/yarn.lock | 221 +----------------- 16 files changed, 97 insertions(+), 268 deletions(-) diff --git a/packages/builder/package.json b/packages/builder/package.json index f6109b0c05..26d6ee3e61 100644 --- a/packages/builder/package.json +++ b/packages/builder/package.json @@ -50,7 +50,7 @@ ] }, "dependencies": { - "@budibase/bbui": "^1.10.2", + "@budibase/bbui": "^1.13.0", "@budibase/client": "^0.0.32", "@nx-js/compiler-util": "^2.0.0", "codemirror": "^5.51.0", diff --git a/packages/builder/src/budibase.css b/packages/builder/src/budibase.css index 134ec5a6a9..eed164131d 100644 --- a/packages/builder/src/budibase.css +++ b/packages/builder/src/budibase.css @@ -78,12 +78,17 @@ .budibase__input { height: 36px; - width: 220px; - border-radius: 3px; - border: 1px solid var(--grey-4); + background-color: var(--grey-2); + border: none; + border-radius: 5px; + width: 100%; text-align: left; color: var(--ink); font-size: 14px; + padding-left: 8px; + -moz-box-sizing: border-box; + -webkit-box-sizing: border-box; + box-sizing: border-box; } .uk-text-right { diff --git a/packages/builder/src/components/common/Block.svelte b/packages/builder/src/components/common/Block.svelte index c796f66f10..fc1958a211 100644 --- a/packages/builder/src/components/common/Block.svelte +++ b/packages/builder/src/components/common/Block.svelte @@ -15,16 +15,16 @@ diff --git a/packages/builder/src/components/common/ValuesList.svelte b/packages/builder/src/components/common/ValuesList.svelte index 53a16455cc..08c515ca71 100644 --- a/packages/builder/src/components/common/ValuesList.svelte +++ b/packages/builder/src/components/common/ValuesList.svelte @@ -15,16 +15,35 @@ $: valuesText = join("\n")(values) -
- +
+