diff --git a/CHANGELOG.md b/CHANGELOG.md index ffec2f2b6..5d64602cf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,84 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.23.1](https://github.com/lowdefy/lowdefy/compare/v3.23.0...v3.23.1) (2021-11-20) + +### Fixes +- Release to fix Docker builds. + + + + + +# [3.23.0](https://github.com/lowdefy/lowdefy/compare/v3.23.0-alpha.0...v3.23.0) (2021-11-19) + +## Changes + +### Blocks + +- Added onSearch event to `MultipleSelector` and `Selector`. + +### Build + +- Better error messages on build. + +### Operators + +- Added `_switch` operator. + +### General + +- Added experimental feature `config.experimental_initPageId`. +- Added `auth.jwt.loginStateExpiresIn` parameter to configure OpenID connect state token expiry. + +## Commits + +### Bug Fixes + +* **blocksAntd:** Update test snapshots for Selector and MultipleSelector. ([67202c4](https://github.com/lowdefy/lowdefy/commit/67202c452e2187d6c342cd1e5487c8d28b050004)) +* **docs:** Included onSearch event example in MultipleSelector and Selector docs. ([0e53cb8](https://github.com/lowdefy/lowdefy/commit/0e53cb8f93ed49e0122ac038113d7378f67501f7)) +* Updated MultipleSelector block to include onSearch event. ([0339e63](https://github.com/lowdefy/lowdefy/commit/0339e63ab6ce3fb1c8c95d203e341cbec1eb4660)) +* **blocksAntd:** Updated Selector block to include onSearch event. ([5e9ec14](https://github.com/lowdefy/lowdefy/commit/5e9ec1470d9920b8340247ac1ff8d9a681798f1d)) +* **docs:** Fix _ref resolver function example. ([0903094](https://github.com/lowdefy/lowdefy/commit/0903094ce531f4d8ab7849deb91ab3d6b7e5fd82)) + + +### Features + +* **build:** Better error messages on build. ([9934d07](https://github.com/lowdefy/lowdefy/commit/9934d07430aef93d4f992c048b3f7101b4934217)) + + + + + +# [3.23.0-alpha.0](https://github.com/lowdefy/lowdefy/compare/v3.22.0...v3.23.0-alpha.0) (2021-11-09) + + +### Bug Fixes + +* Add _switch operator to docs. ([c5c6f0c](https://github.com/lowdefy/lowdefy/commit/c5c6f0c9a5b0dfc89e09835d3ab940195a077504)) +* Support .yml in lowdefy.yaml file. ([0f7cc2a](https://github.com/lowdefy/lowdefy/commit/0f7cc2a7612a5ad9a8164d5a5437dde5c6d7da49)), closes [#902](https://github.com/lowdefy/lowdefy/issues/902) +* **docs:** Add avatar and links to blog template. ([d855599](https://github.com/lowdefy/lowdefy/commit/d855599398cae041933dd8b11aaf77648f87d4c2)) +* **docs:** Fix the iframe videos in the docs. ([c4a957a](https://github.com/lowdefy/lowdefy/commit/c4a957a12ea5adf018b373d8da8c5116e064205f)) +* improvements on blog template. ([30e2291](https://github.com/lowdefy/lowdefy/commit/30e22917fed9932e43cde942532654aa4a6aeac6)) +* **docs:** Add how to generate CSVs. ([2cc8e45](https://github.com/lowdefy/lowdefy/commit/2cc8e45b165aa755dceb9e40525f8a0511fb3485)) +* **docs:** Add how to generate pdfs. ([7b35550](https://github.com/lowdefy/lowdefy/commit/7b35550fa944995be8f8a9d0e809971cabcf12af)) +* **operators:** Added tests for switch operator to Node and Web Parsers. ([249ab6b](https://github.com/lowdefy/lowdefy/commit/249ab6bb475bb0d945e48d4f5b90d2308fd00e16)) +* **operators:** Added tests for switch operator. ([ce31fa3](https://github.com/lowdefy/lowdefy/commit/ce31fa30c05023f7a15c944abfc93a7ecb9f6b56)) +* **operators:** Updated switch operator to for... ...of syntax. ([cdbd0e0](https://github.com/lowdefy/lowdefy/commit/cdbd0e0d229933d6b0e497f90cf755ccd04b89c9)) + + +### Features + +* **docs:** Add how to generate csv. ([3257f51](https://github.com/lowdefy/lowdefy/commit/3257f514b95f7cafb8ac30998194e7ae0a327862)) +* **docs:** Add videos to how tos. ([57c7779](https://github.com/lowdefy/lowdefy/commit/57c77798f0356c606cf90bfd36a4f63ab8d0ff36)) +* Add generate pdf how to. ([5bde460](https://github.com/lowdefy/lowdefy/commit/5bde460934e2dc94d677af5f287e3c85c0ff4c34)) +* **docs:** Added switch operator documentation. ([7c42c78](https://github.com/lowdefy/lowdefy/commit/7c42c7882422ea89332b32bcef985b5bc5059ec8)) +* **operators:** Added switch operator. ([436170c](https://github.com/lowdefy/lowdefy/commit/436170c2ec88e6a8ddbd5a34c791cd7eacc5f72b)) + + + + + # [3.22.0](https://github.com/lowdefy/lowdefy/compare/v3.22.0-alpha.1...v3.22.0) (2021-09-27) ## Changes diff --git a/lerna.json b/lerna.json index 5e285983f..2c60da0c7 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { - "version": "3.22.0", + "version": "3.23.1", "packages": [ "src/packages/*", "src/packages/blocks/*", diff --git a/package.json b/package.json index 33ee5b748..3a71cc045 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lowdefy/lowdefy", - "version": "3.22.0", + "version": "3.23.1", "license": "Apache-2.0", "private": true, "description": "Lowdefy monorepo", diff --git a/packages/ajv/CHANGELOG.md b/packages/ajv/CHANGELOG.md index 097e79521..c3bc9af13 100644 --- a/packages/ajv/CHANGELOG.md +++ b/packages/ajv/CHANGELOG.md @@ -3,6 +3,30 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.23.1](https://github.com/lowdefy/lowdefy/compare/v3.23.0...v3.23.1) (2021-11-20) + +**Note:** Version bump only for package @lowdefy/ajv + + + + + +# [3.23.0](https://github.com/lowdefy/lowdefy/compare/v3.23.0-alpha.0...v3.23.0) (2021-11-19) + +**Note:** Version bump only for package @lowdefy/ajv + + + + + +# [3.23.0-alpha.0](https://github.com/lowdefy/lowdefy/compare/v3.22.0...v3.23.0-alpha.0) (2021-11-09) + +**Note:** Version bump only for package @lowdefy/ajv + + + + + # [3.22.0](https://github.com/lowdefy/lowdefy/compare/v3.22.0-alpha.1...v3.22.0) (2021-09-27) **Note:** Version bump only for package @lowdefy/ajv diff --git a/packages/block-utils/CHANGELOG.md b/packages/block-utils/CHANGELOG.md index 594c3dac7..102724e88 100644 --- a/packages/block-utils/CHANGELOG.md +++ b/packages/block-utils/CHANGELOG.md @@ -3,6 +3,30 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.23.1](https://github.com/lowdefy/lowdefy/compare/v3.23.0...v3.23.1) (2021-11-20) + +**Note:** Version bump only for package @lowdefy/block-tools + + + + + +# [3.23.0](https://github.com/lowdefy/lowdefy/compare/v3.23.0-alpha.0...v3.23.0) (2021-11-19) + +**Note:** Version bump only for package @lowdefy/block-tools + + + + + +# [3.23.0-alpha.0](https://github.com/lowdefy/lowdefy/compare/v3.22.0...v3.23.0-alpha.0) (2021-11-09) + +**Note:** Version bump only for package @lowdefy/block-tools + + + + + # [3.22.0](https://github.com/lowdefy/lowdefy/compare/v3.22.0-alpha.1...v3.22.0) (2021-09-27) **Note:** Version bump only for package @lowdefy/block-tools diff --git a/packages/blocks/blocks-antd/CHANGELOG.md b/packages/blocks/blocks-antd/CHANGELOG.md index 5a1b22b2b..4c85e2612 100644 --- a/packages/blocks/blocks-antd/CHANGELOG.md +++ b/packages/blocks/blocks-antd/CHANGELOG.md @@ -3,6 +3,35 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.23.1](https://github.com/lowdefy/lowdefy/compare/v3.23.0...v3.23.1) (2021-11-20) + +**Note:** Version bump only for package @lowdefy/blocks-antd + + + + + +# [3.23.0](https://github.com/lowdefy/lowdefy/compare/v3.23.0-alpha.0...v3.23.0) (2021-11-19) + + +### Bug Fixes + +* **blocksAntd:** Update test snapshots for Selector and MultipleSelector. ([67202c4](https://github.com/lowdefy/lowdefy/commit/67202c452e2187d6c342cd1e5487c8d28b050004)) +* Updated MultipleSelector block to include onSearch event. ([0339e63](https://github.com/lowdefy/lowdefy/commit/0339e63ab6ce3fb1c8c95d203e341cbec1eb4660)) +* **blocksAntd:** Updated Selector block to include onSearch event. ([5e9ec14](https://github.com/lowdefy/lowdefy/commit/5e9ec1470d9920b8340247ac1ff8d9a681798f1d)) + + + + + +# [3.23.0-alpha.0](https://github.com/lowdefy/lowdefy/compare/v3.22.0...v3.23.0-alpha.0) (2021-11-09) + +**Note:** Version bump only for package @lowdefy/blocks-antd + + + + + # [3.22.0](https://github.com/lowdefy/lowdefy/compare/v3.22.0-alpha.1...v3.22.0) (2021-09-27) diff --git a/packages/blocks/blocks-basic/CHANGELOG.md b/packages/blocks/blocks-basic/CHANGELOG.md index cd8cdd56a..307f92f7a 100644 --- a/packages/blocks/blocks-basic/CHANGELOG.md +++ b/packages/blocks/blocks-basic/CHANGELOG.md @@ -3,6 +3,30 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.23.1](https://github.com/lowdefy/lowdefy/compare/v3.23.0...v3.23.1) (2021-11-20) + +**Note:** Version bump only for package @lowdefy/blocks-basic + + + + + +# [3.23.0](https://github.com/lowdefy/lowdefy/compare/v3.23.0-alpha.0...v3.23.0) (2021-11-19) + +**Note:** Version bump only for package @lowdefy/blocks-basic + + + + + +# [3.23.0-alpha.0](https://github.com/lowdefy/lowdefy/compare/v3.22.0...v3.23.0-alpha.0) (2021-11-09) + +**Note:** Version bump only for package @lowdefy/blocks-basic + + + + + # [3.22.0](https://github.com/lowdefy/lowdefy/compare/v3.22.0-alpha.1...v3.22.0) (2021-09-27) **Note:** Version bump only for package @lowdefy/blocks-basic diff --git a/packages/blocks/blocks-color-selectors/CHANGELOG.md b/packages/blocks/blocks-color-selectors/CHANGELOG.md index 8d76fca7f..884e86f82 100644 --- a/packages/blocks/blocks-color-selectors/CHANGELOG.md +++ b/packages/blocks/blocks-color-selectors/CHANGELOG.md @@ -3,6 +3,30 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.23.1](https://github.com/lowdefy/lowdefy/compare/v3.23.0...v3.23.1) (2021-11-20) + +**Note:** Version bump only for package @lowdefy/blocks-color-selectors + + + + + +# [3.23.0](https://github.com/lowdefy/lowdefy/compare/v3.23.0-alpha.0...v3.23.0) (2021-11-19) + +**Note:** Version bump only for package @lowdefy/blocks-color-selectors + + + + + +# [3.23.0-alpha.0](https://github.com/lowdefy/lowdefy/compare/v3.22.0...v3.23.0-alpha.0) (2021-11-09) + +**Note:** Version bump only for package @lowdefy/blocks-color-selectors + + + + + # [3.22.0](https://github.com/lowdefy/lowdefy/compare/v3.22.0-alpha.1...v3.22.0) (2021-09-27) **Note:** Version bump only for package @lowdefy/blocks-color-selectors diff --git a/packages/blocks/blocks-echarts/CHANGELOG.md b/packages/blocks/blocks-echarts/CHANGELOG.md index 8908f430e..afef09c9f 100644 --- a/packages/blocks/blocks-echarts/CHANGELOG.md +++ b/packages/blocks/blocks-echarts/CHANGELOG.md @@ -3,6 +3,30 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.23.1](https://github.com/lowdefy/lowdefy/compare/v3.23.0...v3.23.1) (2021-11-20) + +**Note:** Version bump only for package @lowdefy/blocks-echarts + + + + + +# [3.23.0](https://github.com/lowdefy/lowdefy/compare/v3.23.0-alpha.0...v3.23.0) (2021-11-19) + +**Note:** Version bump only for package @lowdefy/blocks-echarts + + + + + +# [3.23.0-alpha.0](https://github.com/lowdefy/lowdefy/compare/v3.22.0...v3.23.0-alpha.0) (2021-11-09) + +**Note:** Version bump only for package @lowdefy/blocks-echarts + + + + + # [3.22.0](https://github.com/lowdefy/lowdefy/compare/v3.22.0-alpha.1...v3.22.0) (2021-09-27) **Note:** Version bump only for package @lowdefy/blocks-echarts diff --git a/packages/blocks/blocks-markdown/CHANGELOG.md b/packages/blocks/blocks-markdown/CHANGELOG.md index ad51b7bf3..0fa7ff128 100644 --- a/packages/blocks/blocks-markdown/CHANGELOG.md +++ b/packages/blocks/blocks-markdown/CHANGELOG.md @@ -3,6 +3,30 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.23.1](https://github.com/lowdefy/lowdefy/compare/v3.23.0...v3.23.1) (2021-11-20) + +**Note:** Version bump only for package @lowdefy/blocks-markdown + + + + + +# [3.23.0](https://github.com/lowdefy/lowdefy/compare/v3.23.0-alpha.0...v3.23.0) (2021-11-19) + +**Note:** Version bump only for package @lowdefy/blocks-markdown + + + + + +# [3.23.0-alpha.0](https://github.com/lowdefy/lowdefy/compare/v3.22.0...v3.23.0-alpha.0) (2021-11-09) + +**Note:** Version bump only for package @lowdefy/blocks-markdown + + + + + # [3.22.0](https://github.com/lowdefy/lowdefy/compare/v3.22.0-alpha.1...v3.22.0) (2021-09-27) **Note:** Version bump only for package @lowdefy/blocks-markdown diff --git a/packages/blocks/blocksAntd/src/blocks/MultipleSelector/MultipleSelector.js b/packages/blocks/blocksAntd/src/blocks/MultipleSelector/MultipleSelector.js new file mode 100644 index 000000000..ee2ae0a35 --- /dev/null +++ b/packages/blocks/blocksAntd/src/blocks/MultipleSelector/MultipleSelector.js @@ -0,0 +1,149 @@ +/* + Copyright 2020-2021 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import React, { useState } from 'react'; +import { Select } from 'antd'; +import { blockDefaultProps, renderHtml } from '@lowdefy/block-tools'; +import { get, type } from '@lowdefy/helpers'; +import Label from '../Label/Label'; +import Icon from '../Icon/Icon'; +import getValueIndex from '../../getValueIndex'; +import getUniqueValues from '../../getUniqueValues'; + +const Option = Select.Option; + +const MultipleSelector = ({ + blockId, + events, + loading, + methods, + properties, + required, + validation, + value, +}) => { + const [fetchState, setFetch] = useState(false); + const uniqueValueOptions = getUniqueValues(properties.options || []); + return ( +