Commit Graph

153 Commits

Author SHA1 Message Date
Andrew Kingston d79748bfd9 Allow custom validation rules to use bindings or raw values 2021-08-10 14:36:00 +01:00
Andrew Kingston b7af4ed65f Add validation drawer and simplify HOC's for different field types 2021-08-06 14:54:00 +01:00
Martin McKeaveney 04e1399eec
Merge pull request #2239 from mslourens/checkbox_sizes
add sizes to boolean field and checkbox component
2021-08-05 16:43:20 +01:00
Andrew Kingston c3dde3e5f4 Merge branch 'develop' of github.com:Budibase/budibase into default-field-values 2021-08-04 17:21:47 +01:00
Andrew Kingston 25ae109e72 Use real dae object for default date value if already parsed 2021-08-04 15:33:33 +01:00
Andrew Kingston c0ca68cb83 Fix parsing of numbers when assigning a default value to a number field 2021-08-04 14:38:20 +01:00
Andrew Kingston eaaee33906 Add default value for string field 2021-08-04 14:34:06 +01:00
Andrew Kingston 5835c1591f Add default options for options field 2021-08-04 14:33:51 +01:00
Andrew Kingston 0fcc182f3b Add default value for number field 2021-08-04 14:33:37 +01:00
Andrew Kingston 1af0b1533b Add default value for longform field 2021-08-04 14:33:23 +01:00
Andrew Kingston 6d27bcd22f Add default value for date field 2021-08-04 14:33:09 +01:00
Andrew Kingston 88c22aa927 Add default value for boolean field 2021-08-04 14:32:58 +01:00
Andrew Kingston 9f2451e829 Don't treat nullish values as default values, to allow clearing fields even when a default value is set 2021-08-04 14:32:46 +01:00
Andrew Kingston e865a5d363
Merge pull request #2233 from Budibase/peek-screen
Open screen in modal
2021-08-04 12:08:49 +01:00
Maurits Lourens ea2efe6c69 fix lint issues 2021-08-03 21:36:42 +02:00
Maurits Lourens 78a9256695 fix lint issues 2021-08-03 21:34:26 +02:00
Maurits Lourens acd31618f2 add radio buttons to standard components options picker 2021-08-03 21:30:06 +02:00
Maurits Lourens 2d5a747803 add sizes to boolean field and checkbox component 2021-08-03 20:54:32 +02:00
Andrew Kingston 7fef963067 Add initial work on peeking screens, only show one notification at a time, use spectrum notifications 2021-07-30 14:01:01 +01:00
Maurits Lourens 01d9a86946 fix lint issue 2021-07-26 17:47:53 +02:00
Maurits Lourens e2de45db23 implement review comments 2021-07-26 17:01:29 +02:00
Maurits Lourens d485e95e7b fix lint issues 2021-07-26 15:22:14 +02:00
Maurits Lourens 35d5a2d082 clear form action - draft 2021-07-26 13:58:18 +02:00
Andrew Kingston af8f616624 Remove built-in padding from forms to be consistent with every other component 2021-07-05 10:19:59 +01:00
Andrew Kingston d28c48ccad Add global app theme picker and use it in client preview 2021-06-28 12:55:11 +01:00
Ikko Ashimine 1e1ddae2c2
Fix typo in Form.svelte
targetting -> targeting
2021-06-25 20:15:45 +09:00
Andrew Kingston abb1d33948 Lint with prettier 2021-06-15 19:39:40 +01:00
Andrew Kingston d9d0cc9be3 Fix all eslint issues 2021-06-15 19:36:56 +01:00
Andrew Kingston 4cf9a7827b Improve empty states and placeholders 2021-06-11 11:37:05 +01:00
Andrew Kingston a1debf402f Fully remount update forms when initial values change 2021-06-10 11:17:14 +01:00
Andrew Kingston e027e34c69 Change form type setting to 'actionType' to avoid clashing with old settings 2021-06-09 12:55:17 +01:00
Andrew Kingston d47b871e9e Add type setting to forms and fix inheriting initial values 2021-06-09 12:53:12 +01:00
Andrew Kingston 7f468c0701 Correctly set initial values when registering fields in forms 2021-06-09 12:29:27 +01:00
Martin McKeaveney a12a59e869 lint 2021-06-08 17:14:46 +01:00
Martin McKeaveney f33c570b1d remove builder role from google auth, only allow google sign in if local account exists 2021-06-08 14:46:18 +01:00
Martin McKeaveney 536c2c317c fixing attachments for public apps 2021-06-08 12:50:58 +01:00
Andrew Kingston 928b457200 Disable inputs in client apps updating on change, causing far too many API requests when linked to a filtered data provider 2021-06-03 09:43:45 +01:00
mike12345567 71834d01c6 Formatting. 2021-05-28 19:55:01 +01:00
mike12345567 8b32c7073d Fixing issue with min/max in numbers. 2021-05-28 19:52:30 +01:00
Andrew Kingston 4147b7203c Fix two-tone spectrum background colours 2021-05-12 14:52:43 +01:00
Andrew Kingston 556236ebce Add explicit prettier options 2021-05-04 11:32:22 +01:00
Andrew Kingston 1c3d477523 Fix prettier and fix crash when using certain views as data sources 2021-05-04 11:04:42 +01:00
Keviin Åberg Kultalahti 4ec2e7d01f lint:fix 2021-05-03 09:31:09 +02:00
Andrew Kingston a0304d7945 Add dropzone component and update builder and standard components 2021-04-22 10:10:42 +01:00
Andrew Kingston b2fc4e56eb Add datepicker, centralise icon management and update builder styles 2021-04-20 20:06:27 +01:00
Andrew Kingston 95bef3e90a Standardise text area updates 2021-04-16 16:11:11 +01:00
Andrew Kingston 691c9a9bd1 Replace RichText editor with spectrum text area 2021-04-16 16:00:10 +01:00
Andrew Kingston 7ba5ff7b34 Add radio group spectrum component and update builder 2021-04-16 14:30:33 +01:00
Andrew Kingston 9a2385e4b2 Use BBUI checkbox in standard components 2021-04-16 11:32:41 +01:00
Andrew Kingston d19e15c1e7 Update some standard components form components to use generic BBUI core components 2021-04-15 19:43:18 +01:00
Andrew Kingston c94bbf9571 Update StringField and OptionsField to use BBUI components 2021-04-15 11:51:18 +01:00
Andrew Kingston 0c4687c502 Fix form picker component styling 2021-03-29 15:34:18 +01:00
Andrew Kingston aef82e29a6 Update form setting datasource type 2021-03-19 13:09:22 +00:00
Andrew Kingston 736259f371 Add password field component 2021-03-01 14:13:11 +00:00
Andrew Kingston 45d9845806 Update picker to use null as default placeholder value 2021-02-25 11:34:11 +00:00
Andrew Kingston 6d9c5cdf46 Add support for new relationship objects in client apps 2021-02-25 11:06:16 +00:00
Martin McKeaveney 2a3e4d8a42 fix undefined 1:N dropdown selection 2021-02-24 19:05:17 +00:00
mike12345567 a81b44ccaf Formatting. 2021-02-22 11:40:24 +00:00
Keviin Åberg Kultalahti c6ad951fe5 merge develop 2021-02-19 13:55:17 +01:00
Andrew Kingston d92c0b770b Add disabled setting for forms and fields, and force autocolumns in forms to be disabled 2021-02-17 15:16:44 +00:00
Andrew Kingston f0a48ea341 Merge branch 'develop' of github.com:Budibase/budibase into url-context 2021-02-16 15:35:05 +00:00
Andrew Kingston e0d1513af4 Ensure form doesn't inherit built in datasources 2021-02-16 15:30:20 +00:00
Andrew Kingston 6603e504b4 Make form always inherit closest datasource 2021-02-16 13:27:38 +00:00
Keviin Åberg Kultalahti a42aecbfbe initial work to switch toggle to radio button 2021-02-15 17:12:39 +01:00
Keviin Åberg Kultalahti 9b13879b27 fixes crash when options was empty 2021-02-15 13:31:16 +01:00
Keviin Åberg Kultalahti 8539a6dcbe initial standard-components relationship field component update 2021-02-12 16:47:20 +01:00
Andrew Kingston bd7d95aabc Avoid relationship picker making rows calls for empty string ID 2021-02-12 11:17:13 +00:00
Andrew Kingston 544f94954c Make all form components use fill width of container 2021-02-10 19:23:53 +00:00
Andrew Kingston 53491c400d Adding validation to forms to ensure custom fields can't be the wrong type 2021-02-05 10:53:25 +00:00
Andrew Kingston 725d13cad3 Fix form constraints not being applied correctly 2021-02-04 15:23:26 +00:00
Andrew Kingston e3e22da303 Pull form bindable properties from field definitions rather than schema 2021-02-04 13:01:49 +00:00
Andrew Kingston 019316e508 Update text field values on Enter press 2021-02-03 15:02:50 +00:00
Andrew Kingston 81adaecd47 Require spectrum css files from correct picker component 2021-02-03 14:56:37 +00:00
Andrew Kingston d921cfedf8 Allow forms to generate query schemas. Fix query execution action 2021-02-03 14:53:13 +00:00
Andrew Kingston 6b6699c857 Add listener to clear date pickers on certain keystrokes 2021-02-03 11:10:47 +00:00
Andrew Kingston 181143935e Force number field to set numerical values only 2021-02-03 10:53:48 +00:00
Andrew Kingston 44cfd430c6 Ensure field ID's are always safe to be used as DOM ID's 2021-02-03 10:32:21 +00:00
Andrew Kingston 9ff40cc288 Fix form validation sometimes being applied erroneously 2021-02-03 10:05:32 +00:00
Andrew Kingston 79ae7dae91 Ensure consistent size of form fields regardless of label position 2021-02-02 13:50:46 +00:00
Andrew Kingston 7984382552 Fix presence validation for array values 2021-02-02 13:50:13 +00:00
Andrew Kingston 8789d576af Add error state styles to date picker field 2021-02-01 19:01:43 +00:00
Andrew Kingston cf43cf765c Add custom component actions. Simplify client context. Add form validation action 2021-02-01 18:51:22 +00:00
Andrew Kingston dbe7e8d4b7 Fix long form field width 2021-02-01 18:00:38 +00:00
Andrew Kingston 876ec44d11 Update date picker to fix horrible flatpickr event handling 2021-02-01 14:10:55 +00:00
Andrew Kingston f59e39931b Update form field ID's to always be safe 2021-02-01 14:10:38 +00:00
Andrew Kingston b1c82626d9 Improve validation around loading options for relationship field 2021-02-01 13:23:18 +00:00
Andrew Kingston b65673b77a Add reltationship field. Add common picker component to dedupe options and relationship fields. Add better animation and position to picker dropdowns 2021-02-01 13:15:35 +00:00
Andrew Kingston ad86c40de6 Add form support for fields which can only use bindings rather than explicit onchange handlers 2021-02-01 11:14:24 +00:00
Andrew Kingston 4e9fe01ef6 Automatically make forms use latest data context if it matches 2021-01-29 16:40:19 +00:00
Andrew Kingston 8be1d1e530 Fix max string length validation 2021-01-29 13:24:43 +00:00
Andrew Kingston deccd11def Add attachment field to forms 2021-01-29 13:22:38 +00:00
Andrew Kingston 6c6542c0c5 Fix validation on long form field 2021-01-29 10:28:13 +00:00
Andrew Kingston af4f902e10 Fix validation and focus styling on datepickers 2021-01-29 10:18:41 +00:00
Andrew Kingston 2db5e62e35 Add date field validation 2021-01-28 19:41:46 +00:00
Andrew Kingston 58fdabe96b Integrate flatpickr with spectrum 2021-01-28 18:53:40 +00:00
Andrew Kingston c9ab20726d Add rich text field to form components 2021-01-28 18:03:44 +00:00
Andrew Kingston 9791e52a10 Add boolean field, fix label alignment, fix picker z index 2021-01-28 16:31:55 +00:00
Andrew Kingston 32ad2b6a08 Add more functionality to core SpectrumField component to simplify other form components 2021-01-28 08:47:44 +00:00
Andrew Kingston 8df4de0ddb Add FieldGroup component to allow easy mixing of fields and other content in forms 2021-01-27 18:25:57 +00:00
Andrew Kingston bfebf0226a Update builder preview to be interactive and improve builder preview experience 2021-01-27 15:52:12 +00:00