4 Commits
Author SHA1 Message Date
Tsering Paljor 8c0d3bc373 Add more advanced formulas (#4297)
* Add replace()

* Add length()

* Add contains()

* Add reverse()

* Add join()

* Add split()

* Add is_empty()

* Add strip()

* Add sum()

* Add avg()

* Add at()

* Add changelog

* Small fixes

* Add tests for ensure_array()

* Improve error handling for RuntimeLength

* RuntimeContains should return None/null for the default case

* Improve array/object/int check for RuntimeIsEmpty

* Fix logic to only work on strings for RuntimeStrip

* Lint fix

* RuntimeSum backend validation shouldn't allow non-numbers.

* RuntimeAvg backend validation shouldn't allow non-numbers.

* Handle ValueError in literal array string

* Lint fix backend

* Fix frontend tests

* Add more test cases

* Refactor backend tests

* Remove allowLiteralArray/allow_literal_array

* Add new RuntimeToArray function and refactor existing functions that use Any type to avoid using ensurer. Update examples with usage of to_array.

* Refactor frontend tests

* Add RuntimeToArray in the backend + tests

* Refactor backend functions/tests to avoid using ensurer

* Improve frontend validation and tests

* Fix examples

* simplify

* Remove local debugging code

* Allow > to compare any type

* Allow < to compare any type

* Allow >= to compare any type

* Allow <= to compare any type

* lint fix

* is_empty should raise an error for unsupported types.

* Change arg type to text for strip

* split() should return a list with the same arg if the string has no spaces and no delimited is provided.

* Update avg() helper to allow a strict param

* Fix toArray description

* is_empty() should return false by default, and handle supported args correctly.

* Refactor at() to bubble up error

* Let join() bubble up errors

* Allow reverse() to bubble up errors

* Allow contains() to bubble up errors

* Allow length() to bubble up errors

* Update examples for comparison operators to include date examples
2025-12-19 15:33:54 +04:00
Bram Wiepjes 7ee43d7f4b Introduce reusable color picker 2023-08-10 11:14:07 +00:00
Bram Wiepjes b27f453050 Resolve "Upgrade python and js dependencies." 2020-03-31 14:15:27 +00:00
Bram Wiepjes be2c5c4d4f Resolve "Web frontend refactor" 2020-03-27 13:19:43 +00:00