Commit Graph

153 Commits

Author SHA1 Message Date
Andrew Kingston a041d8dcc7 Allow custom validation rules to use bindings or raw values 2021-08-10 14:36:00 +01:00
Andrew Kingston 67be24b524 Add validation drawer and simplify HOC's for different field types 2021-08-06 14:54:00 +01:00
Martin McKeaveney fd837117da 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 d98fcb33b8 Merge branch 'develop' of github.com:Budibase/budibase into default-field-values 2021-08-04 17:21:47 +01:00
Andrew Kingston b4da667e5a Use real dae object for default date value if already parsed 2021-08-04 15:33:33 +01:00
Andrew Kingston efe6fe15e2 Fix parsing of numbers when assigning a default value to a number field 2021-08-04 14:38:20 +01:00
Andrew Kingston 47d19ca9a1 Add default value for string field 2021-08-04 14:34:06 +01:00
Andrew Kingston 246d89b680 Add default options for options field 2021-08-04 14:33:51 +01:00
Andrew Kingston bbf9f42555 Add default value for number field 2021-08-04 14:33:37 +01:00
Andrew Kingston 12d5ccb3a7 Add default value for longform field 2021-08-04 14:33:23 +01:00
Andrew Kingston f1f08dd85d Add default value for date field 2021-08-04 14:33:09 +01:00
Andrew Kingston d8172faab6 Add default value for boolean field 2021-08-04 14:32:58 +01:00
Andrew Kingston be366b97e8 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 6a9358086c Merge pull request #2233 from Budibase/peek-screen
Open screen in modal
2021-08-04 12:08:49 +01:00
Maurits Lourens 40d28c3bd2 fix lint issues 2021-08-03 21:36:42 +02:00
Maurits Lourens 0d1ea39ae3 fix lint issues 2021-08-03 21:34:26 +02:00
Maurits Lourens f4dd196ed5 add radio buttons to standard components options picker 2021-08-03 21:30:06 +02:00
Maurits Lourens 9fb73b4eba add sizes to boolean field and checkbox component 2021-08-03 20:54:32 +02:00
Andrew Kingston e5418deb89 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 cd132ca057 fix lint issue 2021-07-26 17:47:53 +02:00
Maurits Lourens bb69f40a46 implement review comments 2021-07-26 17:01:29 +02:00
Maurits Lourens f2c26a90c3 fix lint issues 2021-07-26 15:22:14 +02:00
Maurits Lourens 07553b9937 clear form action - draft 2021-07-26 13:58:18 +02:00
Andrew Kingston a621ebe7b9 Remove built-in padding from forms to be consistent with every other component 2021-07-05 10:19:59 +01:00
Andrew Kingston f2be9501d3 Add global app theme picker and use it in client preview 2021-06-28 12:55:11 +01:00
Ikko Ashimine e6800de5c4 Fix typo in Form.svelte
targetting -> targeting
2021-06-25 20:15:45 +09:00
Andrew Kingston 32a3c2bbb6 Lint with prettier 2021-06-15 19:39:40 +01:00
Andrew Kingston 38e064fa0f Fix all eslint issues 2021-06-15 19:36:56 +01:00
Andrew Kingston 0feb03379d Improve empty states and placeholders 2021-06-11 11:37:05 +01:00
Andrew Kingston f4cb901f33 Fully remount update forms when initial values change 2021-06-10 11:17:14 +01:00
Andrew Kingston e5737987c5 Change form type setting to 'actionType' to avoid clashing with old settings 2021-06-09 12:55:17 +01:00
Andrew Kingston f586042267 Add type setting to forms and fix inheriting initial values 2021-06-09 12:53:12 +01:00
Andrew Kingston 8ab567e64c Correctly set initial values when registering fields in forms 2021-06-09 12:29:27 +01:00
Martin McKeaveney 65abd63744 lint 2021-06-08 17:14:46 +01:00
Martin McKeaveney feca6cc962 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 499583ff22 fixing attachments for public apps 2021-06-08 12:50:58 +01:00
Andrew Kingston 1eee2ccc04 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 9b7cbc9d01 Formatting. 2021-05-28 19:55:01 +01:00
mike12345567 d5431665e9 Fixing issue with min/max in numbers. 2021-05-28 19:52:30 +01:00
Andrew Kingston 34a2382b88 Fix two-tone spectrum background colours 2021-05-12 14:52:43 +01:00
Andrew Kingston 797e8a8b67 Add explicit prettier options 2021-05-04 11:32:22 +01:00
Andrew Kingston c010eeb314 Fix prettier and fix crash when using certain views as data sources 2021-05-04 11:04:42 +01:00
Keviin Åberg Kultalahti 0afbf1649e lint:fix 2021-05-03 09:31:09 +02:00
Andrew Kingston 1fb6cd0b4b Add dropzone component and update builder and standard components 2021-04-22 10:10:42 +01:00
Andrew Kingston 06b438d585 Add datepicker, centralise icon management and update builder styles 2021-04-20 20:06:27 +01:00
Andrew Kingston ac4e0b6986 Standardise text area updates 2021-04-16 16:11:11 +01:00
Andrew Kingston 2ab62dc935 Replace RichText editor with spectrum text area 2021-04-16 16:00:10 +01:00
Andrew Kingston 431abb53ce Add radio group spectrum component and update builder 2021-04-16 14:30:33 +01:00
Andrew Kingston 106b7b9ebd Use BBUI checkbox in standard components 2021-04-16 11:32:41 +01:00
Andrew Kingston cfa4b118c2 Update some standard components form components to use generic BBUI core components 2021-04-15 19:43:18 +01:00
Andrew Kingston 13e5c5ad61 Update StringField and OptionsField to use BBUI components 2021-04-15 11:51:18 +01:00
Andrew Kingston 694dab654d Fix form picker component styling 2021-03-29 15:34:18 +01:00
Andrew Kingston 85377d24ce Update form setting datasource type 2021-03-19 13:09:22 +00:00
Andrew Kingston 78865ddef4 Add password field component 2021-03-01 14:13:11 +00:00
Andrew Kingston c3a74c5006 Update picker to use null as default placeholder value 2021-02-25 11:34:11 +00:00
Andrew Kingston aab74cce1a Add support for new relationship objects in client apps 2021-02-25 11:06:16 +00:00
Martin McKeaveney 4223078a68 fix undefined 1:N dropdown selection 2021-02-24 19:05:17 +00:00
mike12345567 99d356a862 Formatting. 2021-02-22 11:40:24 +00:00
Keviin Åberg Kultalahti 78ee1edf40 merge develop 2021-02-19 13:55:17 +01:00
Andrew Kingston a35c34fd82 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 ec94aaa90b Merge branch 'develop' of github.com:Budibase/budibase into url-context 2021-02-16 15:35:05 +00:00
Andrew Kingston af1654a3c9 Ensure form doesn't inherit built in datasources 2021-02-16 15:30:20 +00:00
Andrew Kingston d8b28899b8 Make form always inherit closest datasource 2021-02-16 13:27:38 +00:00
Keviin Åberg Kultalahti a7db499544 initial work to switch toggle to radio button 2021-02-15 17:12:39 +01:00
Keviin Åberg Kultalahti ce382f88de fixes crash when options was empty 2021-02-15 13:31:16 +01:00
Keviin Åberg Kultalahti b3964dddbb initial standard-components relationship field component update 2021-02-12 16:47:20 +01:00
Andrew Kingston 41b1920b27 Avoid relationship picker making rows calls for empty string ID 2021-02-12 11:17:13 +00:00
Andrew Kingston fb79a78164 Make all form components use fill width of container 2021-02-10 19:23:53 +00:00
Andrew Kingston 1fb4203b3a Adding validation to forms to ensure custom fields can't be the wrong type 2021-02-05 10:53:25 +00:00
Andrew Kingston d1df8aca41 Fix form constraints not being applied correctly 2021-02-04 15:23:26 +00:00
Andrew Kingston c36ddceb7e Pull form bindable properties from field definitions rather than schema 2021-02-04 13:01:49 +00:00
Andrew Kingston 7efdff487e Update text field values on Enter press 2021-02-03 15:02:50 +00:00
Andrew Kingston b701416f7c Require spectrum css files from correct picker component 2021-02-03 14:56:37 +00:00
Andrew Kingston d85665d21c Allow forms to generate query schemas. Fix query execution action 2021-02-03 14:53:13 +00:00
Andrew Kingston ea2f5ebbf9 Add listener to clear date pickers on certain keystrokes 2021-02-03 11:10:47 +00:00
Andrew Kingston e700b99fcf Force number field to set numerical values only 2021-02-03 10:53:48 +00:00
Andrew Kingston ba8d8b5327 Ensure field ID's are always safe to be used as DOM ID's 2021-02-03 10:32:21 +00:00
Andrew Kingston fa20f5dec7 Fix form validation sometimes being applied erroneously 2021-02-03 10:05:32 +00:00
Andrew Kingston 48f49dd947 Ensure consistent size of form fields regardless of label position 2021-02-02 13:50:46 +00:00
Andrew Kingston 3faef71ff4 Fix presence validation for array values 2021-02-02 13:50:13 +00:00
Andrew Kingston 56dfaba624 Add error state styles to date picker field 2021-02-01 19:01:43 +00:00
Andrew Kingston 9c0e417408 Add custom component actions. Simplify client context. Add form validation action 2021-02-01 18:51:22 +00:00
Andrew Kingston 9214157ea4 Fix long form field width 2021-02-01 18:00:38 +00:00
Andrew Kingston 22cad32a2d Update date picker to fix horrible flatpickr event handling 2021-02-01 14:10:55 +00:00
Andrew Kingston 260cecb5e5 Update form field ID's to always be safe 2021-02-01 14:10:38 +00:00
Andrew Kingston abd99f859a Improve validation around loading options for relationship field 2021-02-01 13:23:18 +00:00
Andrew Kingston b1c2780a72 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 c9bf2700e3 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 0b64a81242 Automatically make forms use latest data context if it matches 2021-01-29 16:40:19 +00:00
Andrew Kingston 28fb04b31e Fix max string length validation 2021-01-29 13:24:43 +00:00
Andrew Kingston a4de9668ed Add attachment field to forms 2021-01-29 13:22:38 +00:00
Andrew Kingston acc8b77611 Fix validation on long form field 2021-01-29 10:28:13 +00:00
Andrew Kingston 95ca500bd5 Fix validation and focus styling on datepickers 2021-01-29 10:18:41 +00:00
Andrew Kingston 24a5b657bc Add date field validation 2021-01-28 19:41:46 +00:00
Andrew Kingston e72850b84d Integrate flatpickr with spectrum 2021-01-28 18:53:40 +00:00
Andrew Kingston 16c276aa9a Add rich text field to form components 2021-01-28 18:03:44 +00:00
Andrew Kingston 2c104396df Add boolean field, fix label alignment, fix picker z index 2021-01-28 16:31:55 +00:00
Andrew Kingston 8c90edf462 Add more functionality to core SpectrumField component to simplify other form components 2021-01-28 08:47:44 +00:00
Andrew Kingston e1f40ea066 Add FieldGroup component to allow easy mixing of fields and other content in forms 2021-01-27 18:25:57 +00:00
Andrew Kingston 6631fe2af8 Update builder preview to be interactive and improve builder preview experience 2021-01-27 15:52:12 +00:00