@lowdefy/docs 4.0.0-alpha.6 → 4.0.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +75 -104
- package/actions/JsAction.yaml +6 -6
- package/blocks/container/Affix.yaml +1 -1
- package/blocks/container/Alert.yaml +2 -2
- package/blocks/container/Badge.yaml +1 -1
- package/blocks/container/Box.yaml +1 -1
- package/blocks/container/Card.yaml +1 -1
- package/blocks/container/Collapse.yaml +1 -1
- package/blocks/container/Comment.yaml +4 -4
- package/blocks/container/ConfirmModal.yaml +1 -1
- package/blocks/container/Descriptions.yaml +2 -2
- package/blocks/container/Drawer.yaml +1 -1
- package/blocks/container/Label.yaml +1 -2
- package/blocks/container/Modal.yaml +1 -1
- package/blocks/container/PageHCF.yaml +1 -1
- package/blocks/container/PageHCSF.yaml +1 -1
- package/blocks/container/PageHSCF.yaml +1 -1
- package/blocks/container/PageHeaderMenu.yaml +3 -3
- package/blocks/container/PageSHCF.yaml +1 -1
- package/blocks/container/PageSiderMenu.yaml +3 -3
- package/blocks/container/Result.yaml +2 -2
- package/blocks/container/Span.yaml +1 -1
- package/blocks/container/Spin.yaml +2 -2
- package/blocks/container/Tabs.yaml +2 -2
- package/blocks/container/Tooltip.yaml +1 -1
- package/blocks/display/Anchor.yaml +1 -2
- package/blocks/display/Avatar.yaml +1 -2
- package/blocks/display/Breadcrumb.yaml +2 -3
- package/blocks/display/Button.yaml +7 -7
- package/blocks/display/DangerousHtml.yaml +1 -1
- package/blocks/display/DangerousMarkdown.yaml +1 -1
- package/blocks/display/Divider.yaml +1 -3
- package/blocks/display/EChart.yaml +1 -1
- package/blocks/display/Html.yaml +2 -2
- package/blocks/display/Icon.yaml +1 -3
- package/blocks/display/Img.yaml +1 -1
- package/blocks/display/Markdown.yaml +5 -6
- package/blocks/display/MarkdownWithCode.yaml +3 -5
- package/blocks/display/Menu.yaml +3 -3
- package/blocks/display/Message.yaml +1 -1
- package/blocks/display/MobileMenu.yaml +3 -4
- package/blocks/display/Notification.yaml +2 -2
- package/blocks/display/Paragraph.yaml +2 -4
- package/blocks/display/Progress.yaml +8 -9
- package/blocks/display/Skeleton.yaml +1 -2
- package/blocks/display/Statistic.yaml +3 -5
- package/blocks/display/Title.yaml +1 -1
- package/blocks/input/AutoComplete.yaml +1 -2
- package/blocks/input/ButtonSelector.yaml +1 -2
- package/blocks/input/CheckboxSelector.yaml +1 -2
- package/blocks/input/CheckboxSwitch.yaml +1 -1
- package/blocks/input/ChromeColorSelector.yaml +1 -2
- package/blocks/input/CircleColorSelector.yaml +1 -2
- package/blocks/input/ColorSelector.yaml +1 -2
- package/blocks/input/CompactColorSelector.yaml +1 -2
- package/blocks/input/DateRangeSelector.yaml +1 -2
- package/blocks/input/DateSelector.yaml +1 -2
- package/blocks/input/DateTimeSelector.yaml +1 -2
- package/blocks/input/GithubColorSelector.yaml +1 -2
- package/blocks/input/MonthSelector.yaml +1 -2
- package/blocks/input/MultipleSelector.yaml +1 -1
- package/blocks/input/NumberInput.yaml +1 -1
- package/blocks/input/Pagination.yaml +3 -3
- package/blocks/input/ParagraphInput.yaml +1 -1
- package/blocks/input/PasswordInput.yaml +1 -1
- package/blocks/input/RadioSelector.yaml +1 -1
- package/blocks/input/RatingSlider.yaml +1 -1
- package/blocks/input/S3UploadButton.yaml +1 -1
- package/blocks/input/Selector.yaml +1 -1
- package/blocks/input/SliderColorSelector.yaml +1 -1
- package/blocks/input/SwatchesColorSelector.yaml +1 -1
- package/blocks/input/Switch.yaml +1 -1
- package/blocks/input/TextArea.yaml +1 -2
- package/blocks/input/TextInput.yaml +7 -7
- package/blocks/input/TitleInput.yaml +1 -1
- package/blocks/input/TwitterColorSelector.yaml +1 -1
- package/blocks/input/WeekSelector.yaml +1 -1
- package/blocks/list/ControlledList.yaml +18 -18
- package/blocks/list/List.yaml +16 -17
- package/blocks/list/TimelineList.yaml +23 -22
- package/concepts/cli.yaml +7 -7
- package/concepts/custom-blocks.yaml +16 -2
- package/concepts/custom-code.yaml +5 -4
- package/concepts/lowdefy-schema.yaml +5 -4
- package/connections/AxiosHttp.yaml +1 -1
- package/connections/Knex.yaml +7 -7
- package/connections/MongoDB.yaml +176 -47
- package/deployment/aws-lambda.yaml +3 -3
- package/deployment/docker.yaml +4 -4
- package/deployment/node-server.yaml +1 -1
- package/howto/generate-csv.yaml.njk +7 -6
- package/howto/generate-pdf.yaml.njk +21 -21
- package/howto/generateCsv/lowdefy.yaml +32 -31
- package/howto/generatePdf/lowdefy.yaml +10 -9
- package/introduction.yaml +1 -1
- package/lowdefy.yaml +1 -1
- package/menus.yaml +26 -29
- package/operators/_actions.yaml +2 -2
- package/operators/_get.yaml +6 -6
- package/operators/_js.yaml +2 -2
- package/operators/_ref.yaml +40 -6
- package/operators/_yaml.yaml +39 -15
- package/package.json +6 -7
- package/pages.yaml +8 -8
- package/public/sitemap.xml +204 -204
- package/templates/blocks/defaultValueTransformer.js +4 -2
- package/templates/blocks/exampleTransformer.js +1 -1
- package/templates/blocks/propertiesFormTransformer.js +3 -3
- package/templates/blocks/propertiesGetterTransformer.js +2 -2
- package/templates/blocks/schemaTransformer.js +1 -1
- package/templates/blocks/template.yaml.njk +3 -4
- package/templates/blog.yaml.njk +5 -5
- package/templates/cli_command.yaml.njk +2 -2
- package/templates/footer.yaml.njk +18 -18
- package/templates/general.yaml.njk +4 -4
- package/templates/generateSitemap.js +1 -2
- package/templates/header.yaml +2 -2
- package/templates/navigation_buttons.yaml +2 -2
- package/templates/operatorsMethodTransformer.js +2 -2
- package/templates/test/array.test.js +146 -166
- package/templates/test/boolean.test.js +13 -17
- package/templates/test/button.test.js +21 -25
- package/templates/test/color.test.js +21 -23
- package/templates/test/enum.test.js +15 -19
- package/templates/test/icon.test.js +17 -21
- package/templates/test/integer.test.js +13 -17
- package/templates/test/manual.test.js +66 -74
- package/templates/test/number.test.js +13 -17
- package/templates/test/object.test.js +90 -98
- package/templates/test/oneOf.test.js +108 -120
- package/templates/test/string.test.js +13 -17
- package/templates/test/yaml.test.js +96 -112
- package/tutorial/tutorial-actions-operators-config.yaml +4 -4
- package/tutorial/tutorial-actions-operators.yaml +6 -6
- package/tutorial/tutorial-add-blocks-config.yaml +4 -4
- package/tutorial/tutorial-add-blocks.yaml +4 -4
- package/tutorial/tutorial-create-page-config.yaml +2 -2
- package/tutorial/tutorial-create-page.yaml +4 -4
- package/tutorial/tutorial-deploy.yaml +2 -2
- package/tutorial/tutorial-requests-config.yaml +4 -4
- package/tutorial/tutorial-requests.yaml +2 -2
- package/tutorial/tutorial-start.yaml +6 -6
- package/users/login-and-logout.yaml +2 -2
- package/users/protected-pages.yaml +2 -2
- package/users/roles.yaml +2 -2
- package/users/users-introduction.yaml +2 -2
|
@@ -17,7 +17,7 @@ _ref:
|
|
|
17
17
|
vars:
|
|
18
18
|
block_type: Tabs
|
|
19
19
|
category: container
|
|
20
|
-
schema: ../blocks/
|
|
20
|
+
schema: ../plugins/blocks/blocks-antd/src/blocks/Tabs/schema.json
|
|
21
21
|
description_content: |
|
|
22
22
|
Tabs to easily switch between different views.
|
|
23
23
|
The key of each tabs is the area keys of the container and there is an `extra` content area.
|
|
@@ -26,7 +26,7 @@ _ref:
|
|
|
26
26
|
block.properties.tabs:
|
|
27
27
|
- key: tab1
|
|
28
28
|
title: Tab 1
|
|
29
|
-
icon:
|
|
29
|
+
icon: AiOutlinedMenu
|
|
30
30
|
- key: tab2
|
|
31
31
|
title: Tab 2
|
|
32
32
|
- key: tab3
|
|
@@ -17,7 +17,7 @@ _ref:
|
|
|
17
17
|
vars:
|
|
18
18
|
block_type: Tooltip
|
|
19
19
|
category: container
|
|
20
|
-
schema: ../blocks/
|
|
20
|
+
schema: ../plugins/blocks/blocks-antd/src/blocks/Tooltip/schema.json
|
|
21
21
|
description_content: |
|
|
22
22
|
A simple text popup tip. Can be used to display extra information about its children blocks.
|
|
23
23
|
init_state_values:
|
|
@@ -17,10 +17,9 @@ _ref:
|
|
|
17
17
|
vars:
|
|
18
18
|
block_type: Anchor
|
|
19
19
|
category: display
|
|
20
|
-
schema: ../blocks/
|
|
20
|
+
schema: ../plugins/blocks/blocks-basic/src/blocks/Anchor/schema.json
|
|
21
21
|
filePath: blocks/display/Anchor.yaml
|
|
22
22
|
description_content: |
|
|
23
23
|
Anchor link block. Creates a clickable icon and/ or text.
|
|
24
24
|
|
|
25
25
|
> When changing the relationship (`rel`) property of the linked URL, make sure you understand the security implications. Read more about link types [here](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types).
|
|
26
|
-
|
|
@@ -17,8 +17,7 @@ _ref:
|
|
|
17
17
|
vars:
|
|
18
18
|
block_type: Avatar
|
|
19
19
|
category: display
|
|
20
|
-
schema: ../blocks/
|
|
20
|
+
schema: ../plugins/blocks/blocks-antd/src/blocks/Avatar/schema.json
|
|
21
21
|
filePath: blocks/display/Avatar.yaml
|
|
22
22
|
description_content: |
|
|
23
23
|
Avatars can be used to represent people or objects. It supports images, Icons, or letters.
|
|
24
|
-
|
|
@@ -17,13 +17,12 @@ _ref:
|
|
|
17
17
|
vars:
|
|
18
18
|
block_type: Breadcrumb
|
|
19
19
|
category: display
|
|
20
|
-
schema: ../blocks/
|
|
20
|
+
schema: ../plugins/blocks/blocks-antd/src/blocks/Breadcrumb/schema.json
|
|
21
21
|
filePath: blocks/display/Breadcrumb.yaml
|
|
22
22
|
init_state_values:
|
|
23
23
|
__type_block.properties.list: string[]
|
|
24
24
|
__string_arr_block.properties.list:
|
|
25
|
-
- First
|
|
25
|
+
- First
|
|
26
26
|
- Second
|
|
27
27
|
description_content: |
|
|
28
28
|
A breadcrumb displays the current location within a hierarchy. It allows going back to states higher up in the hierarchy with provided links.
|
|
29
|
-
|
|
@@ -17,7 +17,7 @@ _ref:
|
|
|
17
17
|
vars:
|
|
18
18
|
block_type: Button
|
|
19
19
|
category: display
|
|
20
|
-
schema: ../blocks/
|
|
20
|
+
schema: ../plugins/blocks/blocks-antd/src/blocks/Button/schema.json
|
|
21
21
|
filePath: blocks/display/Button.yaml
|
|
22
22
|
description_content: |
|
|
23
23
|
Button block.
|
|
@@ -31,13 +31,13 @@ _ref:
|
|
|
31
31
|
title: Get started
|
|
32
32
|
block: true
|
|
33
33
|
ghost: true
|
|
34
|
-
icon:
|
|
34
|
+
icon: AiOutlinedRocket
|
|
35
35
|
- title: Round and type danger
|
|
36
|
-
block:
|
|
36
|
+
block:
|
|
37
37
|
id: danger_example
|
|
38
38
|
type: Button
|
|
39
|
-
properties:
|
|
39
|
+
properties:
|
|
40
40
|
title: Delete Forever
|
|
41
|
-
shape: round
|
|
42
|
-
type: danger
|
|
43
|
-
icon:
|
|
41
|
+
shape: round
|
|
42
|
+
type: danger
|
|
43
|
+
icon: AiOutlinedWarning
|
|
@@ -17,7 +17,7 @@ _ref:
|
|
|
17
17
|
vars:
|
|
18
18
|
block_type: DangerousHtml
|
|
19
19
|
category: display
|
|
20
|
-
schema: ../blocks/
|
|
20
|
+
schema: ../plugins/blocks/blocks-basic/src/blocks/DangerousHtml/schema.json
|
|
21
21
|
filePath: blocks/display/DangerousHtml.yaml
|
|
22
22
|
init_property_values:
|
|
23
23
|
html: <a href="https://lowdefy.com">Lowdefy Website</a>
|
|
@@ -17,7 +17,7 @@ _ref:
|
|
|
17
17
|
vars:
|
|
18
18
|
block_type: DangerousMarkdown
|
|
19
19
|
category: display
|
|
20
|
-
schema: ../blocks/
|
|
20
|
+
schema: ../plugins/blocks/blocks-markdown/src/blocks/DangerousMarkdown/schema.json
|
|
21
21
|
filePath: blocks/display/DangerousMarkdown.yaml
|
|
22
22
|
init_property_values:
|
|
23
23
|
content: |
|
|
@@ -17,9 +17,7 @@ _ref:
|
|
|
17
17
|
vars:
|
|
18
18
|
block_type: Divider
|
|
19
19
|
category: display
|
|
20
|
-
schema: ../blocks/
|
|
20
|
+
schema: ../plugins/blocks/blocks-antd/src/blocks/Divider/schema.json
|
|
21
21
|
filePath: blocks/display/Divider.yaml
|
|
22
22
|
description_content: |
|
|
23
23
|
A divider line. Can be used horizontally or vertically.
|
|
24
|
-
|
|
25
|
-
|
|
@@ -17,7 +17,7 @@ _ref:
|
|
|
17
17
|
vars:
|
|
18
18
|
block_type: EChart
|
|
19
19
|
category: display
|
|
20
|
-
schema: ../blocks/
|
|
20
|
+
schema: ../plugins/blocks/blocks-echarts/src/blocks/EChart/schema.json
|
|
21
21
|
filePath: blocks/display/EChart.yaml
|
|
22
22
|
init_property_values:
|
|
23
23
|
option: |
|
package/blocks/display/Html.yaml
CHANGED
|
@@ -17,12 +17,12 @@ _ref:
|
|
|
17
17
|
vars:
|
|
18
18
|
block_type: Html
|
|
19
19
|
category: display
|
|
20
|
-
schema: ../blocks/
|
|
20
|
+
schema: ../plugins/blocks/blocks-basic/src/blocks/Html/schema.json
|
|
21
21
|
filePath: blocks/display/Html.yaml
|
|
22
22
|
init_property_values:
|
|
23
23
|
html: <a href="https://lowdefy.com">Lowdefy Website</a>
|
|
24
24
|
description_content: |
|
|
25
|
-
A block to render HTML.
|
|
25
|
+
A block to render HTML.
|
|
26
26
|
|
|
27
27
|
> The Html block sanitizes HTML using [DOMPurify's](https://github.com/cure53/DOMPurify) default configuration. This comes with some security considerations, please consider [DOMPurify's Security Goals and Threat Model](https://github.com/cure53/DOMPurify/wiki/Security-Goals-&-Threat-Model) for more details regarding the security impact of using the Html block. In short, it is strongly advised to never render any user input Html content, only render hardcoded or trusted HTML content.
|
|
28
28
|
|
package/blocks/display/Icon.yaml
CHANGED
|
@@ -17,9 +17,7 @@ _ref:
|
|
|
17
17
|
vars:
|
|
18
18
|
block_type: Icon
|
|
19
19
|
category: display
|
|
20
|
-
schema: ../blocks/
|
|
20
|
+
schema: ../plugins/blocks/blocks-basic/src/blocks/Icon/schema.json
|
|
21
21
|
filePath: blocks/display/Icon.yaml
|
|
22
22
|
description_content: |
|
|
23
23
|
A Icon component. Render Ant Design and other icons
|
|
24
|
-
|
|
25
|
-
|
package/blocks/display/Img.yaml
CHANGED
|
@@ -17,7 +17,7 @@ _ref:
|
|
|
17
17
|
vars:
|
|
18
18
|
block_type: Img
|
|
19
19
|
category: display
|
|
20
|
-
schema: ../blocks/
|
|
20
|
+
schema: ../plugins/blocks/blocks-basic/src/blocks/Img/schema.json
|
|
21
21
|
filePath: blocks/display/Img.yaml
|
|
22
22
|
init_property_values:
|
|
23
23
|
src: 'https://docs.lowdefy.com/public/logo-light-theme.png'
|
|
@@ -17,16 +17,15 @@ _ref:
|
|
|
17
17
|
vars:
|
|
18
18
|
block_type: Markdown
|
|
19
19
|
category: display
|
|
20
|
-
schema: ../blocks/
|
|
20
|
+
schema: ../plugins/blocks/blocks-markdown/src/blocks/Markdown/schema.json
|
|
21
21
|
filePath: blocks/display/Markdown.yaml
|
|
22
22
|
init_property_values:
|
|
23
23
|
content: |
|
|
24
|
-
### Welcome to Lowdefy
|
|
24
|
+
### Welcome to Lowdefy
|
|
25
25
|
|
|
26
26
|
Click [here](https://lowdefy.com) to learn more about Lowdefy.
|
|
27
|
-
|
|
27
|
+
|
|
28
28
|
description_content: |
|
|
29
|
-
Render markdown text content.
|
|
30
|
-
|
|
29
|
+
Render markdown text content.
|
|
30
|
+
|
|
31
31
|
> For more details on markdown syntax see: [Markdown cheat sheet](https://guides.github.com/features/mastering-markdown/).
|
|
32
|
-
|
|
@@ -17,7 +17,7 @@ _ref:
|
|
|
17
17
|
vars:
|
|
18
18
|
block_type: MarkdownWithCode
|
|
19
19
|
category: display
|
|
20
|
-
schema: ../blocks/
|
|
20
|
+
schema: ../plugins/blocks/blocks-markdown/src/blocks/MarkdownWithCode/schema.json
|
|
21
21
|
filePath: blocks/display/MarkdownWithCode.yaml
|
|
22
22
|
init_property_values:
|
|
23
23
|
content: |
|
|
@@ -29,7 +29,7 @@ _ref:
|
|
|
29
29
|
Hmmm… 🤔
|
|
30
30
|
|
|
31
31
|
Fine the explanation [here](https://github.com/denysdovhan/wtfjs#math-with-true-and-false)
|
|
32
|
-
|
|
32
|
+
|
|
33
33
|
description_content: |
|
|
34
34
|
Render markdown content with code highlighting support. Currently, the following languages are supported:
|
|
35
35
|
- HTML: `html`
|
|
@@ -42,7 +42,5 @@ _ref:
|
|
|
42
42
|
- Typescript: `typescript`, `ts`,
|
|
43
43
|
- XML: `xml`
|
|
44
44
|
- YAML: `yaml`
|
|
45
|
-
|
|
45
|
+
|
|
46
46
|
> For more details on markdown syntax see: [Markdown cheat sheet](https://guides.github.com/features/mastering-markdown/).
|
|
47
|
-
|
|
48
|
-
|
package/blocks/display/Menu.yaml
CHANGED
|
@@ -17,7 +17,7 @@ _ref:
|
|
|
17
17
|
vars:
|
|
18
18
|
block_type: Menu
|
|
19
19
|
category: display
|
|
20
|
-
schema: ../blocks/
|
|
20
|
+
schema: ../plugins/blocks/blocks-antd/src/blocks/Menu/schema.json
|
|
21
21
|
filePath: blocks/display/Menu.yaml
|
|
22
22
|
description_content: |
|
|
23
23
|
A menu block used to display page links.
|
|
@@ -27,13 +27,13 @@ _ref:
|
|
|
27
27
|
type: MenuLink
|
|
28
28
|
pageId: home
|
|
29
29
|
properties:
|
|
30
|
-
icon:
|
|
30
|
+
icon: AiOutlinedHome
|
|
31
31
|
title: Home
|
|
32
32
|
- id: pages
|
|
33
33
|
type: MenuGroup
|
|
34
34
|
properties:
|
|
35
35
|
title: Pages
|
|
36
|
-
icon:
|
|
36
|
+
icon: AiOutlinedLayout
|
|
37
37
|
links:
|
|
38
38
|
- id: page1
|
|
39
39
|
type: MenuLink
|
|
@@ -17,7 +17,7 @@ _ref:
|
|
|
17
17
|
vars:
|
|
18
18
|
block_type: Message
|
|
19
19
|
category: display
|
|
20
|
-
schema: ../blocks/
|
|
20
|
+
schema: ../plugins/blocks/blocks-antd/src/blocks/Message/schema.json
|
|
21
21
|
filePath: blocks/display/Message.yaml
|
|
22
22
|
description_content: |
|
|
23
23
|
Display a popup message on the page.
|
|
@@ -17,7 +17,7 @@ _ref:
|
|
|
17
17
|
vars:
|
|
18
18
|
block_type: MobileMenu
|
|
19
19
|
category: display
|
|
20
|
-
schema: ../blocks/
|
|
20
|
+
schema: ../plugins/blocks/blocks-antd/src/blocks/MobileMenu/schema.json
|
|
21
21
|
description_content: |
|
|
22
22
|
A menu designed for mobile devices. Renders a button that opens a Drawer with the menu inside. This menu is used by default in `PageHeaderMenu` and `PageSiderMenu` on mobile devices.
|
|
23
23
|
init_state_values:
|
|
@@ -26,13 +26,13 @@ _ref:
|
|
|
26
26
|
type: MenuLink
|
|
27
27
|
pageId: home
|
|
28
28
|
properties:
|
|
29
|
-
icon:
|
|
29
|
+
icon: AiOutlinedHome
|
|
30
30
|
title: Home
|
|
31
31
|
- id: pages
|
|
32
32
|
type: MenuGroup
|
|
33
33
|
properties:
|
|
34
34
|
title: Pages
|
|
35
|
-
icon:
|
|
35
|
+
icon: AiOutlinedLayout
|
|
36
36
|
links:
|
|
37
37
|
- id: page1
|
|
38
38
|
type: MenuLink
|
|
@@ -45,4 +45,3 @@ _ref:
|
|
|
45
45
|
- id: page3
|
|
46
46
|
type: MenuLink
|
|
47
47
|
pageId: page3
|
|
48
|
-
|
|
@@ -17,13 +17,13 @@ _ref:
|
|
|
17
17
|
vars:
|
|
18
18
|
block_type: Notification
|
|
19
19
|
category: display
|
|
20
|
-
schema: ../blocks/
|
|
20
|
+
schema: ../plugins/blocks/blocks-antd/src/blocks/Notification/schema.json
|
|
21
21
|
filePath: blocks/display/Notification.yaml
|
|
22
22
|
description_content: |
|
|
23
23
|
Display a popup notification on the page.
|
|
24
24
|
|
|
25
25
|
> To display a notification, invoke the open method.
|
|
26
|
-
|
|
26
|
+
|
|
27
27
|
methods:
|
|
28
28
|
- name: open
|
|
29
29
|
onClick:
|
|
@@ -17,7 +17,7 @@ _ref:
|
|
|
17
17
|
vars:
|
|
18
18
|
block_type: Paragraph
|
|
19
19
|
category: display
|
|
20
|
-
schema: ../blocks/
|
|
20
|
+
schema: ../plugins/blocks/blocks-antd/src/blocks/Paragraph/schema.json
|
|
21
21
|
filePath: blocks/display/Paragraph.yaml
|
|
22
22
|
init_state_values:
|
|
23
23
|
__type_block.properties.copyable: boolean
|
|
@@ -25,8 +25,6 @@ _ref:
|
|
|
25
25
|
__boolean_block.properties.copyable: false
|
|
26
26
|
__boolean_block.properties.ellipsis: false
|
|
27
27
|
init_property_values:
|
|
28
|
-
content:
|
|
28
|
+
content: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.'
|
|
29
29
|
description_content: |
|
|
30
30
|
A paragraph text component.
|
|
31
|
-
|
|
32
|
-
|
|
@@ -17,7 +17,7 @@ _ref:
|
|
|
17
17
|
vars:
|
|
18
18
|
block_type: Progress
|
|
19
19
|
category: display
|
|
20
|
-
schema: ../blocks/
|
|
20
|
+
schema: ../plugins/blocks/blocks-antd/src/blocks/Progress/schema.json
|
|
21
21
|
filePath: blocks/display/Progress.yaml
|
|
22
22
|
init_property_values:
|
|
23
23
|
percent: 30
|
|
@@ -29,25 +29,24 @@ _ref:
|
|
|
29
29
|
block:
|
|
30
30
|
id: line_example
|
|
31
31
|
type: Progress
|
|
32
|
-
properties:
|
|
32
|
+
properties:
|
|
33
33
|
type: line
|
|
34
34
|
percent: 60
|
|
35
|
-
strokeColor:
|
|
35
|
+
strokeColor: '#fcb900'
|
|
36
36
|
status: active
|
|
37
37
|
- title: Circle progress
|
|
38
38
|
block:
|
|
39
39
|
id: circle_example
|
|
40
40
|
type: Progress
|
|
41
|
-
properties:
|
|
42
|
-
type: circle
|
|
41
|
+
properties:
|
|
42
|
+
type: circle
|
|
43
43
|
percent: 60
|
|
44
|
-
strokeColor:
|
|
44
|
+
strokeColor: '#52c41a'
|
|
45
45
|
- title: Dashboard progress
|
|
46
46
|
block:
|
|
47
47
|
id: dashboard_example
|
|
48
48
|
type: Progress
|
|
49
|
-
properties:
|
|
49
|
+
properties:
|
|
50
50
|
type: dashboard
|
|
51
51
|
percent: 60
|
|
52
|
-
strokeColor:
|
|
53
|
-
|
|
52
|
+
strokeColor: '#1890ff'
|
|
@@ -17,7 +17,7 @@ _ref:
|
|
|
17
17
|
vars:
|
|
18
18
|
block_type: Skeleton
|
|
19
19
|
category: display
|
|
20
|
-
schema: ../blocks/
|
|
20
|
+
schema: ../plugins/blocks/blocks-antd/src/blocks/Skeleton/schema.json
|
|
21
21
|
filePath: blocks/display/Skeleton.yaml
|
|
22
22
|
description_content: |
|
|
23
23
|
Skeleton block to use as a loading place holder.
|
|
@@ -25,4 +25,3 @@ _ref:
|
|
|
25
25
|
examples:
|
|
26
26
|
- title: Basic skeleton
|
|
27
27
|
properties: '{}'
|
|
28
|
-
|
|
@@ -17,7 +17,7 @@ _ref:
|
|
|
17
17
|
vars:
|
|
18
18
|
block_type: Statistic
|
|
19
19
|
category: display
|
|
20
|
-
schema: ../blocks/
|
|
20
|
+
schema: ../plugins/blocks/blocks-antd/src/blocks/Statistic/schema.json
|
|
21
21
|
filePath: blocks/display/Statistic.yaml
|
|
22
22
|
init_state_values:
|
|
23
23
|
__type_block.properties.value: number
|
|
@@ -30,8 +30,6 @@ _ref:
|
|
|
30
30
|
block:
|
|
31
31
|
id: basic_example
|
|
32
32
|
type: Statistic
|
|
33
|
-
properties:
|
|
33
|
+
properties:
|
|
34
34
|
value: 99.5
|
|
35
|
-
prefixIcon:
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
prefixIcon: AiTwoToneAlert
|
|
@@ -17,7 +17,7 @@ _ref:
|
|
|
17
17
|
vars:
|
|
18
18
|
block_type: Title
|
|
19
19
|
category: display
|
|
20
|
-
schema: ../blocks/
|
|
20
|
+
schema: ../plugins/blocks/blocks-antd/src/blocks/Title/schema.json
|
|
21
21
|
filePath: blocks/display/Title.yaml
|
|
22
22
|
init_state_values:
|
|
23
23
|
__type_block.properties.copyable: boolean
|
|
@@ -18,7 +18,7 @@ _ref:
|
|
|
18
18
|
block_type: AutoComplete
|
|
19
19
|
value_type: string
|
|
20
20
|
category: input
|
|
21
|
-
schema: ../blocks/
|
|
21
|
+
schema: ../plugins/blocks/blocks-antd/src/blocks/AutoComplete/schema.json
|
|
22
22
|
filePath: blocks/input/AutoComplete.yaml
|
|
23
23
|
init_property_values:
|
|
24
24
|
options:
|
|
@@ -28,4 +28,3 @@ _ref:
|
|
|
28
28
|
The AutoComplete block is a text input that has a list of suggestions for the user. These suggestions are filtered as the user fills in the input. The user is also allowed to fill in an input not part of that list.
|
|
29
29
|
|
|
30
30
|
>If you need the user to select only from a list of options, use a block like the `Selector` block instead.
|
|
31
|
-
|
|
@@ -18,7 +18,7 @@ _ref:
|
|
|
18
18
|
block_type: ButtonSelector
|
|
19
19
|
value_type: any
|
|
20
20
|
category: input
|
|
21
|
-
schema: ../blocks/
|
|
21
|
+
schema: ../plugins/blocks/blocks-antd/src/blocks/ButtonSelector/schema.json
|
|
22
22
|
filePath: blocks/input/ButtonSelector.yaml
|
|
23
23
|
init_state_values:
|
|
24
24
|
__type_block.properties.options: object[]
|
|
@@ -34,4 +34,3 @@ _ref:
|
|
|
34
34
|
The options for the selector can be provides as either an array of primitive values (strings, numbers, booleans or dates), or as an array of label-value pairs, where the label is a string, and the value can be of any type, including objects like dates and arrays.
|
|
35
35
|
|
|
36
36
|
> Other selector blocks are `CheckboxSelector`, `MultipleSelector`, `RadioSelector` and `Selector`.
|
|
37
|
-
|
|
@@ -18,7 +18,7 @@ _ref:
|
|
|
18
18
|
block_type: CheckboxSelector
|
|
19
19
|
value_type: any[]
|
|
20
20
|
category: input
|
|
21
|
-
schema: ../blocks/
|
|
21
|
+
schema: ../plugins/blocks/blocks-antd/src/blocks/CheckboxSelector/schema.json
|
|
22
22
|
filePath: blocks/input/CheckboxSelector.yaml
|
|
23
23
|
init_state_values:
|
|
24
24
|
__type_block.properties.options: object[]
|
|
@@ -34,4 +34,3 @@ _ref:
|
|
|
34
34
|
The options for the selector can be provides as either an array of primitive values (strings, numbers, booleans, or dates), or as an array of label-value pairs, where the label is a string, and the value can be of any type, including objects like dates and arrays.
|
|
35
35
|
|
|
36
36
|
> Other selector blocks are `ButtonSelector`, `MultipleSelector`, `RadioSelector` and `Selector`.
|
|
37
|
-
|
|
@@ -18,7 +18,7 @@ _ref:
|
|
|
18
18
|
block_type: CheckboxSwitch
|
|
19
19
|
value_type: any[]
|
|
20
20
|
category: input
|
|
21
|
-
schema: ../blocks/
|
|
21
|
+
schema: ../plugins/blocks/blocks-antd/src/blocks/CheckboxSwitch/schema.json
|
|
22
22
|
filePath: blocks/input/CheckboxSwitch.yaml
|
|
23
23
|
description_content: |
|
|
24
24
|
The `CheckboxSwitch` block allows a user to select a boolean value between (true/false).
|
|
@@ -18,8 +18,7 @@ _ref:
|
|
|
18
18
|
block_type: ChromeColorSelector
|
|
19
19
|
value_type: string
|
|
20
20
|
category: input
|
|
21
|
-
schema: ../blocks/
|
|
21
|
+
schema: ../plugins/blocks/blocks-color-selectors/src/blocks/ChromeColorSelector/schema.json
|
|
22
22
|
filePath: blocks/input/ChromeColorSelector.yaml
|
|
23
23
|
description_content: |
|
|
24
24
|
A color selector component similar to the chrome developer tools color selector.
|
|
25
|
-
|
|
@@ -18,8 +18,7 @@ _ref:
|
|
|
18
18
|
block_type: CircleColorSelector
|
|
19
19
|
value_type: string
|
|
20
20
|
category: input
|
|
21
|
-
schema: ../blocks/
|
|
21
|
+
schema: ../plugins/blocks/blocks-color-selectors/src/blocks/CircleColorSelector/schema.json
|
|
22
22
|
filePath: blocks/input/CircleColorSelector.yaml
|
|
23
23
|
description_content: |
|
|
24
24
|
A color selector component which displays the colors in circles.
|
|
25
|
-
|
|
@@ -18,8 +18,7 @@ _ref:
|
|
|
18
18
|
block_type: ColorSelector
|
|
19
19
|
value_type: string
|
|
20
20
|
category: input
|
|
21
|
-
schema: ../blocks/
|
|
21
|
+
schema: ../plugins/blocks/blocks-color-selectors/src/blocks/ColorSelector/schema.json
|
|
22
22
|
filePath: blocks/input/ColorSelector.yaml
|
|
23
23
|
description_content: |
|
|
24
24
|
A color selector component.
|
|
25
|
-
|
|
@@ -18,8 +18,7 @@ _ref:
|
|
|
18
18
|
block_type: CompactColorSelector
|
|
19
19
|
value_type: string
|
|
20
20
|
category: input
|
|
21
|
-
schema: ../blocks/
|
|
21
|
+
schema: ../plugins/blocks/blocks-color-selectors/src/blocks/CompactColorSelector/schema.json
|
|
22
22
|
filePath: blocks/input/CompactColorSelector.yaml
|
|
23
23
|
description_content: |
|
|
24
24
|
A compact color selector component.
|
|
25
|
-
|
|
@@ -18,10 +18,9 @@ _ref:
|
|
|
18
18
|
block_type: DateRangeSelector
|
|
19
19
|
value_type: date[]
|
|
20
20
|
category: input
|
|
21
|
-
schema: ../blocks/
|
|
21
|
+
schema: ../plugins/blocks/blocks-antd/src/blocks/DateRangeSelector/schema.json
|
|
22
22
|
filePath: blocks/input/DateRangeSelector.yaml
|
|
23
23
|
description_content: |
|
|
24
24
|
The `DateRangeSelector` block allows the user to choose a start date and an end date for a date range. The selected range is saved as an array with two date elements, the start and end dates.
|
|
25
25
|
|
|
26
26
|
> Other date type blocks are `DateSelector`, `DateTimeSelector`, `MonthSelector` and `WeekSelector`.
|
|
27
|
-
|
|
@@ -18,10 +18,9 @@ _ref:
|
|
|
18
18
|
block_type: DateSelector
|
|
19
19
|
value_type: date
|
|
20
20
|
category: input
|
|
21
|
-
schema: ../blocks/
|
|
21
|
+
schema: ../plugins/blocks/blocks-antd/src/blocks/DateSelector/schema.json
|
|
22
22
|
filePath: blocks/input/DateSelector.yaml
|
|
23
23
|
description_content: |
|
|
24
24
|
The `DateSelector` block allows a user to select a date from a calender.
|
|
25
25
|
|
|
26
26
|
> Other date type blocks are `DateRangeSelector`, `DateTimeSelector`, `MonthSelector` and `WeekSelector`.
|
|
27
|
-
|
|
@@ -18,7 +18,7 @@ _ref:
|
|
|
18
18
|
block_type: DateTimeSelector
|
|
19
19
|
value_type: date
|
|
20
20
|
category: input
|
|
21
|
-
schema: ../blocks/
|
|
21
|
+
schema: ../plugins/blocks/blocks-antd/src/blocks/DateTimeSelector/schema.json
|
|
22
22
|
filePath: blocks/input/DateTimeSelector.yaml
|
|
23
23
|
description_content: |
|
|
24
24
|
The `DateTimeSelector` block allows a user to select a date and a time from a calender.
|
|
@@ -26,4 +26,3 @@ _ref:
|
|
|
26
26
|
By default, the time selected by the user is converted to GMT time, based on the timezone of the user. The selector will also display the selected time in the correct timezone for that user. If the `selectGMT` property is set to true, the value of the selector will be the time selected by the user as GMT time, and not in the timezone of the user.
|
|
27
27
|
|
|
28
28
|
> Other date type blocks are `DateRangeSelector`, `DateTimeSelector`, `MonthSelector` and `WeekSelector`.
|
|
29
|
-
|
|
@@ -18,8 +18,7 @@ _ref:
|
|
|
18
18
|
block_type: GithubColorSelector
|
|
19
19
|
value_type: string
|
|
20
20
|
category: input
|
|
21
|
-
schema: ../blocks/
|
|
21
|
+
schema: ../plugins/blocks/blocks-color-selectors/src/blocks/GithubColorSelector/schema.json
|
|
22
22
|
filePath: blocks/input/GithubColorSelector.yaml
|
|
23
23
|
description_content: |
|
|
24
24
|
A color selector component similar to the Github color selector.
|
|
25
|
-
|
|
@@ -18,10 +18,9 @@ _ref:
|
|
|
18
18
|
block_type: MonthSelector
|
|
19
19
|
value_type: date
|
|
20
20
|
category: input
|
|
21
|
-
schema: ../blocks/
|
|
21
|
+
schema: ../plugins/blocks/blocks-antd/src/blocks/MonthSelector/schema.json
|
|
22
22
|
filePath: blocks/input/MonthSelector.yaml
|
|
23
23
|
description_content: |
|
|
24
24
|
The `MonthSelector` block allows a user to select a month. The value is a date object, with day and time values of midnight on the first day of the month GMT.
|
|
25
25
|
|
|
26
26
|
> Other date type blocks are `DateRangeSelector`, `DateSelector`, `DateTimeSelector` and `WeekSelector`.
|
|
27
|
-
|
|
@@ -18,7 +18,7 @@ _ref:
|
|
|
18
18
|
block_type: MultipleSelector
|
|
19
19
|
value_type: any[]
|
|
20
20
|
category: input
|
|
21
|
-
schema: ../blocks/
|
|
21
|
+
schema: ../plugins/blocks/blocks-antd/src/blocks/MultipleSelector/schema.json
|
|
22
22
|
filePath: blocks/input/MultipleSelector.yaml
|
|
23
23
|
init_state_values:
|
|
24
24
|
__type_block.properties.options: object[]
|
|
@@ -18,7 +18,7 @@ _ref:
|
|
|
18
18
|
block_type: NumberInput
|
|
19
19
|
value_type: number
|
|
20
20
|
category: input
|
|
21
|
-
schema: ../blocks/
|
|
21
|
+
schema: ../plugins/blocks/blocks-antd/src/blocks/NumberInput/schema.json
|
|
22
22
|
filePath: blocks/input/NumberInput.yaml
|
|
23
23
|
description_content: |
|
|
24
24
|
The `NumberInput` allows a user to input a number.
|
|
@@ -18,16 +18,16 @@ _ref:
|
|
|
18
18
|
block_type: Pagination
|
|
19
19
|
value_type: object
|
|
20
20
|
category: input
|
|
21
|
-
schema: ../blocks/
|
|
21
|
+
schema: ../plugins/blocks/blocks-antd/src/blocks/Pagination/schema.json
|
|
22
22
|
filePath: blocks/input/Pagination.yaml
|
|
23
23
|
init_property_values:
|
|
24
24
|
pageSizeOptions: [10, 20, 30, 40]
|
|
25
25
|
init_state_values:
|
|
26
|
-
block_id:
|
|
26
|
+
block_id:
|
|
27
27
|
current: 0
|
|
28
28
|
pageSize: 10
|
|
29
29
|
skip: 0
|
|
30
30
|
description_content: |
|
|
31
31
|
The `Pagination` controls user input for pagination purposes.
|
|
32
|
-
|
|
32
|
+
|
|
33
33
|
> This block does not paginate requests, it only manage pagination parameters which can be used to control pagination requests.
|