Commit Graph

163 Commits

Author SHA1 Message Date
Andrew Kingston 175bde36d6 Ensure data binding generation doesn't crash if no asset is selected 2022-02-25 08:25:56 +00:00
Andrew Kingston e38cc1c079 Fix table row selection bindings not being generated, add row selection bindings for table blocks, update readable text for row selection bindings 2022-02-24 09:17:27 +00:00
Peter Clement dffdcd882f add ability to select rows from different tables and provide bindings 2022-02-22 15:18:08 +00:00
Peter Clement 87d001b66f Merge remote-tracking branch 'origin/develop' into feature/table-row-selection 2022-02-22 15:17:38 +00:00
Andrew Kingston c858b9341f Fix issue with schema generation when datasource is undefined 2022-02-17 09:25:02 +00:00
Peter Clement 1dd909c8c2 Merge remote-tracking branch 'origin/develop' into feature/table-row-selection 2022-02-16 14:35:42 +00:00
Andrew Kingston ee0bfa9ab0 Update datasource schema generation to take new flags, and update automation blocks to use core databinding utilities 2022-02-15 14:59:11 +00:00
Peter Clement 5a88c89baf changing bindings key 2022-02-11 15:37:43 +00:00
Peter Clement d45c107db7 add row selection functionality to tables 2022-02-11 11:55:35 +00:00
Andrew Kingston 1ec3a91cae Update usages of utils and helpers in the builder 2022-01-20 11:19:37 +00:00
Andrew Kingston ab1e5abd5e Refactor button definitions, rename button action components and add button manifest 2021-12-13 10:55:45 +00:00
Andrew Kingston dc7d22e5cb Add support for binding forms to deep json fields 2021-12-10 14:18:01 +00:00
Andrew Kingston 59ac6682ae Generate button context bindings for all button actions 2021-12-09 08:36:50 +00:00
Andrew Kingston 2da952af24 Fix bug where state variables were not always extracted, improve performance when determining bindable state values and add initial work on generating button context bindings 2021-12-08 15:31:06 +00:00
Andrew Kingston b1cc72c54a Add support for accessing unlimited levels of nested JSON arrays 2021-12-07 21:19:14 +00:00
Andrew Kingston ca0abba428 Add data bindings for top level properties within JSON fields 2021-12-06 19:55:21 +00:00
Andrew Kingston 8dd916afb9 Add more comments to clarify data binding behaviour 2021-12-06 12:14:06 +00:00
Andrew Kingston 7a0ee7aea6 Remove log statements 2021-12-06 12:04:55 +00:00
Andrew Kingston d10d332b9f Update client side lucene searching to work with nested JSON fields and fix bug with flattening nested JSON schema 2021-12-06 12:04:22 +00:00
Andrew Kingston cd5d370e7b Allow using JSON field arrays as a data provider source and add data bindings for nested JSON fields 2021-12-06 11:41:17 +00:00
Andrew Kingston e6741ce341 Ensuire the save row action determines the correct runtime bindings and only uses valid context types 2021-12-01 10:32:55 +00:00
Andrew Kingston 2c91b89f02 Prevent data providers from using arbitrary context-providing components as sources 2021-11-30 14:32:18 +00:00
Andrew Kingston 3470b1ea1b Update data sources to correctly include block context suffixes in provider IDs 2021-11-15 12:25:01 +00:00
Andrew Kingston df455c2719 Add data block component 2021-11-12 15:19:25 +00:00
Andrew Kingston 3db35d3af9 Enable data providers to use array and attachment fields as their source 2021-11-12 13:42:55 +00:00
Andrew Kingston fc6e531115 Merge pull request #3299 from Budibase/full-bindings
Full bindings for relationships and attachments
2021-11-11 11:01:27 +00:00
Andrew Kingston 2b59d44e06 Change bindable properties order 2021-11-10 14:57:46 +00:00
Andrew Kingston 4690ae827c Use full bindings for releationships and attachments 2021-11-09 15:45:32 +00:00
Andrew Kingston a7849eac7d Add card list with search block. Add concept of nested settings which can consume their own contexts and are not enriched at the top level 2021-11-08 14:35:58 +00:00
Andrew Kingston 117a7f7ce8 Fix issue getting bindable properties when selecting a screen 2021-11-05 12:37:42 +00:00
Andrew Kingston adda702588 Add button to table with search block and support defining multiple settings sections in component manifest entries 2021-11-04 11:30:43 +00:00
mike12345567 a1aaf00e41 Fixing two issues, not verifying a file has been uploaded for import app and fixing HBS visual issue where handlebars statement could get screwed up. 2021-10-20 18:37:07 +01:00
Andrew Kingston 43d546b2db Fix inserting bindings manually when using JS 2021-10-11 16:18:20 +01:00
Andrew Kingston 67a74ee327 Fix bug determining if a binding is JS or not 2021-10-11 15:51:47 +01:00
Andrew Kingston 8f1e536318 Enable binding replacements in JS bindings 2021-10-11 14:54:24 +01:00
mike12345567 4ecc92de3b Updating data bindings, there were instances where it could loop/iterate over already replaced bindings, used a search technique to be a bit more specific about the replacements and make sure each binding could only be replaced once. 2021-09-30 17:24:43 +01:00
Andrew Kingston 8b35405a85 Fix regex binding replacement issue due to not being escaped 2021-09-24 16:24:16 +01:00
Maurits Lourens 28e7ef2806 replace all handlebars bindings, not just the first 2021-09-21 09:57:14 +02:00
Andrew Kingston bf8975ec6d Hide state bindings if feature is not available 2021-09-02 11:39:41 +01:00
Andrew Kingston 0f6a7946b5 Automatically determine which state keys are available 2021-08-26 16:46:25 +01:00
Andrew Kingston 9369e8b375 Add client app state and button actions to control it 2021-08-26 11:28:44 +01:00
Andrew Kingston 32fe0ea072 Support multiple component context exports and export additional context from forms 2021-08-18 14:58:58 +01:00
Andrew Kingston 47ca925003 Add global data bindings for mobile and tablet device sizes 2021-08-13 11:24:47 +01:00
Andrew Kingston 61912fd7cd Fix crash when removing data bindings from an object which contains a null value 2021-06-14 12:18:54 +01:00
Andrew Kingston 1ae8264276 Allow data providers to inherit each other and add full client side lucene implementation 2021-05-27 15:11:08 +01:00
mike12345567 e5f3b3956c Merge branch 'next' of github.com:Budibase/budibase into labday/mike-formulas 2021-05-04 13:24:14 +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
mike12345567 d3ef4224a6 Merge branch 'labday/mike-formulas' of github.com:Budibase/budibase into labday/mike-formulas 2021-05-04 10:50:52 +01:00
mike12345567 dcf69b2181 Merge branch 'next' of github.com:Budibase/budibase into labday/mike-formulas 2021-05-04 10:34:30 +01:00
Keviin Åberg Kultalahti 0afbf1649e lint:fix 2021-05-03 09:31:09 +02:00
Michael Drury 48a0c66972 Fixing cypress tests. 2021-04-30 19:17:00 +01:00
mike12345567 a7022de9b5 Moving drawers around to be a common component as they are utilised in a few places, keep all the binding work together, as well as some fixing for readable/runtime binding detection and conversion. 2021-04-30 16:17:57 +01:00
mike12345567 b7a767a571 Linting. 2021-04-29 19:10:02 +01:00
mike12345567 a14c80bf6c Adding handlebars formulas to the system, it is now possible to set a formula at a column level which will always be applied on the way out with a relationship depth of one. 2021-04-29 19:06:58 +01:00
Michael Shanks a61c54f07e lint fix + remove electron.js 2021-04-13 16:57:22 +01:00
Martin McKeaveney 651b57fbb2 small fixes 2021-04-13 09:20:30 +01:00
Andrew Kingston 6c5129f8db Merge branch 'next' of github.com:Budibase/budibase into datasource-refactor 2021-04-01 17:58:10 +01:00
Andrew Kingston e15986a6a5 Remove unecessary escape in regex 2021-03-29 18:21:57 +01:00
Andrew Kingston c486a311b1 Update search component to work with new data bindings. Simplify manifest context entries for data bindings 2021-03-29 16:37:17 +01:00
Keviin Åberg Kultalahti 44e3f29a0b moves backend stores to "stores" in the root src directory 2021-03-26 09:50:37 +01:00
Andrew Kingston f17e2478e2 Fix crash generating bindable properties for an empty data provider ID 2021-03-25 16:17:56 +00:00
Andrew Kingston 14a4545874 Update cypress tests 2021-03-23 13:31:56 +00:00
Keviin Åberg Kultalahti d37778d809 lint fix 2021-03-23 13:31:18 +01:00
Keviin Åberg Kultalahti 45a2e5cf46 fix databindings 2021-03-23 12:48:54 +01:00
Keviin Åberg Kultalahti c77061f239 wip: converts components to use separate stores 2021-03-23 12:16:54 +01:00
Andrew Kingston 28e1688138 Don't add _id and _rev fields to form schemas 2021-03-22 17:59:54 +00:00
Andrew Kingston b9fe600a9b Fix data binding not generating bindable properties for components referencing a data provider ID wrapped for handlebars 2021-03-22 17:57:19 +00:00
Andrew Kingston e62a6b92b4 Update bindings to always ensure they are safely escaped 2021-03-22 12:10:43 +00:00
Andrew Kingston 12ea52f3b1 Update schema generation to automatically include _id and _rev fields 2021-03-19 14:04:00 +00:00
Andrew Kingston 6d7cb8d6ba Update bar chart to work with new data provider 2021-03-18 17:34:51 +00:00
Andrew Kingston 1368074f68 Update bindable properties to handle new data provider 2021-03-16 19:11:00 +00:00
Andrew Kingston 6e29423d4d Add data provider component and refactor component setting types 2021-03-16 13:54:34 +00:00
Andrew Kingston 1b5ac74150 Fix crash when schema doesnt exist for a datasource 2021-02-26 09:55:38 +00:00
mike12345567 2151709a9b Merge branch 'develop' of github.com:Budibase/budibase into bug/fix-binding-issue 2021-02-22 15:50:29 +00:00
mike12345567 afe70d1ba2 Fixing issue - this will replace any bindings when copying and pasting a stack of components with 'Invalid binding'. 2021-02-22 15:49:57 +00:00
Andrew Kingston 9c37fa8716 Merge branch 'develop' of github.com:Budibase/budibase into repeater-filtering 2021-02-22 12:23:46 +00:00
Andrew Kingston 7b4b22377d Display enriched relationship info in grids and bindings 2021-02-19 12:00:06 +00:00
Andrew Kingston 7f92c82298 Fix calc view schemas not being determined correctly 2021-02-17 16:01:11 +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 284018fefa Rename form data bindings to Fields instead of Schema 2021-02-16 13:17:13 +00:00
Andrew Kingston 8b23f603bd Update URL settigns to be bindable inputs and update navigate action 2021-02-15 20:03:29 +00:00
Andrew Kingston 24c3f3019f Fix automatic form generation from relationship and calculated view schemas 2021-02-11 09:17:36 +00:00
Andrew Kingston 4493a0896f Remove commented out lines 2021-02-09 16:55:59 +00:00
Andrew Kingston 1185756622 Fix forms not providing correct datasource object 2021-02-04 18:11:56 +00:00
Andrew Kingston d939acbd4f Fix typo in _rev schema field type 2021-02-04 15:48:32 +00:00
Andrew Kingston 4d9f4cc211 Update bindable properties to pull directly from form children 2021-02-04 15:11:05 +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 e87b384de5 Merge branch 'master' of github.com:Budibase/budibase into form-builder 2021-02-02 14:44:19 +00:00
Andrew Kingston 9c0e417408 Add custom component actions. Simplify client context. Add form validation action 2021-02-01 18:51:22 +00:00
Martin McKeaveney 0ea99cf85d Merge branch 'feature/handlebars-helpers' of github.com:Budibase/budibase into feature/handlebars-helpers 2021-02-01 11:52:40 +00:00
Martin McKeaveney 1738537ad8 binding panel options from helpers 2021-02-01 11:51:53 +00:00
mike12345567 9a94b61a72 Merge branch 'feature/handlebars-helpers' of github.com:Budibase/budibase into feature/handlebars-helpers 2021-02-01 11:00:41 +00:00
mike12345567 3f106d042a Merge branch 'master' of github.com:Budibase/budibase into feature/handlebars-helpers 2021-02-01 11:00:33 +00:00
Michael Drury a1f09b0a1a Some rollup fixes - the handlebars-helper library needs dynamic requires removed from it, likely best to fork it and do this. 2021-01-30 02:54:52 +00:00
mike12345567 41fbc39618 Work in progress, fixing issue with some helpers not getting translated, now running into rollup issue. 2021-01-29 20:03:09 +00:00
Andrew Kingston 9d870dbccc Add current user bindings, and current user relationships as data sources 2021-01-28 14:29:35 +00:00
mike12345567 0fabfccb19 Merge branch 'master' of github.com:Budibase/budibase into feature/handlebars-helpers 2021-01-26 16:22:38 +00:00
mike12345567 9e798158c2 Linting. 2021-01-26 15:59:58 +00:00
mike12345567 6219a66604 Fixing the transition between readable and runtime bindings. 2021-01-26 15:59:28 +00:00