@lowdefy/docs 4.0.0-alpha.7 → 4.0.0-alpha.8
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/dist/operators/client/filter_default_value.js +55 -0
- package/{public/modules/connectDocsearch.js → dist/operatorsClient.js} +1 -19
- package/{templates/blocks/schemaTransformer.js → dist/types.js} +5 -10
- package/package.json +19 -3
- package/404.yaml +0 -26
- package/CHANGELOG.md +0 -697
- package/actions/CallMethod.yaml +0 -57
- package/actions/JsAction.yaml +0 -281
- package/actions/Link.yaml +0 -120
- package/actions/Login.yaml +0 -123
- package/actions/Logout.yaml +0 -44
- package/actions/Message.yaml +0 -68
- package/actions/Notification.yaml +0 -84
- package/actions/Request.yaml +0 -70
- package/actions/Reset.yaml +0 -42
- package/actions/ResetValidation.yaml +0 -102
- package/actions/ScrollTo.yaml +0 -100
- package/actions/SetGlobal.yaml +0 -78
- package/actions/SetState.yaml +0 -85
- package/actions/Throw.yaml +0 -89
- package/actions/Validate.yaml +0 -104
- package/actions/Wait.yaml +0 -40
- package/blocks/all_icons.yaml +0 -803
- package/blocks/container/Affix.yaml +0 -26
- package/blocks/container/Alert.yaml +0 -27
- package/blocks/container/Badge.yaml +0 -27
- package/blocks/container/Box.yaml +0 -27
- package/blocks/container/Card.yaml +0 -29
- package/blocks/container/Collapse.yaml +0 -38
- package/blocks/container/Comment.yaml +0 -43
- package/blocks/container/ConfirmModal.yaml +0 -36
- package/blocks/container/Descriptions.yaml +0 -51
- package/blocks/container/Drawer.yaml +0 -46
- package/blocks/container/Label.yaml +0 -28
- package/blocks/container/Modal.yaml +0 -46
- package/blocks/container/PageHCF.yaml +0 -28
- package/blocks/container/PageHCSF.yaml +0 -29
- package/blocks/container/PageHSCF.yaml +0 -29
- package/blocks/container/PageHeaderMenu.yaml +0 -52
- package/blocks/container/PageSHCF.yaml +0 -29
- package/blocks/container/PageSiderMenu.yaml +0 -53
- package/blocks/container/Result.yaml +0 -34
- package/blocks/container/Span.yaml +0 -27
- package/blocks/container/Spin.yaml +0 -27
- package/blocks/container/Tabs.yaml +0 -41
- package/blocks/container/Tooltip.yaml +0 -38
- package/blocks/display/Anchor.yaml +0 -25
- package/blocks/display/Avatar.yaml +0 -23
- package/blocks/display/Breadcrumb.yaml +0 -28
- package/blocks/display/Button.yaml +0 -43
- package/blocks/display/DangerousHtml.yaml +0 -62
- package/blocks/display/DangerousMarkdown.yaml +0 -46
- package/blocks/display/Divider.yaml +0 -23
- package/blocks/display/EChart.yaml +0 -53
- package/blocks/display/Html.yaml +0 -50
- package/blocks/display/Icon.yaml +0 -23
- package/blocks/display/Img.yaml +0 -40
- package/blocks/display/Markdown.yaml +0 -31
- package/blocks/display/MarkdownWithCode.yaml +0 -46
- package/blocks/display/Menu.yaml +0 -48
- package/blocks/display/Message.yaml +0 -34
- package/blocks/display/MobileMenu.yaml +0 -47
- package/blocks/display/Notification.yaml +0 -34
- package/blocks/display/Paragraph.yaml +0 -30
- package/blocks/display/Progress.yaml +0 -52
- package/blocks/display/Skeleton.yaml +0 -27
- package/blocks/display/Statistic.yaml +0 -35
- package/blocks/display/Title.yaml +0 -32
- package/blocks/input/AutoComplete.yaml +0 -30
- package/blocks/input/ButtonSelector.yaml +0 -36
- package/blocks/input/CheckboxSelector.yaml +0 -36
- package/blocks/input/CheckboxSwitch.yaml +0 -56
- package/blocks/input/ChromeColorSelector.yaml +0 -24
- package/blocks/input/CircleColorSelector.yaml +0 -24
- package/blocks/input/ColorSelector.yaml +0 -24
- package/blocks/input/CompactColorSelector.yaml +0 -24
- package/blocks/input/DateRangeSelector.yaml +0 -26
- package/blocks/input/DateSelector.yaml +0 -26
- package/blocks/input/DateTimeSelector.yaml +0 -28
- package/blocks/input/GithubColorSelector.yaml +0 -24
- package/blocks/input/MonthSelector.yaml +0 -26
- package/blocks/input/MultipleSelector.yaml +0 -117
- package/blocks/input/NumberInput.yaml +0 -24
- package/blocks/input/Pagination.yaml +0 -33
- package/blocks/input/ParagraphInput.yaml +0 -32
- package/blocks/input/PasswordInput.yaml +0 -48
- package/blocks/input/RadioSelector.yaml +0 -36
- package/blocks/input/RatingSlider.yaml +0 -24
- package/blocks/input/S3UploadButton.yaml +0 -28
- package/blocks/input/Selector.yaml +0 -98
- package/blocks/input/SliderColorSelector.yaml +0 -24
- package/blocks/input/SwatchesColorSelector.yaml +0 -24
- package/blocks/input/Switch.yaml +0 -24
- package/blocks/input/TextArea.yaml +0 -27
- package/blocks/input/TextInput.yaml +0 -59
- package/blocks/input/TitleInput.yaml +0 -32
- package/blocks/input/TwitterColorSelector.yaml +0 -24
- package/blocks/input/WeekSelector.yaml +0 -26
- package/blocks/list/ControlledList.yaml +0 -191
- package/blocks/list/List.yaml +0 -157
- package/blocks/list/TimelineList.yaml +0 -136
- package/body.html +0 -1
- package/concepts/blocks.yaml +0 -249
- package/concepts/cli.yaml +0 -173
- package/concepts/connections-and-requests.yaml +0 -114
- package/concepts/context-and-state.yaml +0 -82
- package/concepts/custom-blocks.yaml +0 -190
- package/concepts/custom-code.yaml +0 -197
- package/concepts/events-and-actions.yaml +0 -224
- package/concepts/hosting-files.yaml +0 -50
- package/concepts/layout.yaml +0 -1464
- package/concepts/lists.yaml +0 -162
- package/concepts/lowdefy-schema.yaml +0 -245
- package/concepts/operators.yaml +0 -66
- package/concepts/overview.yaml +0 -48
- package/concepts/secrets.yaml +0 -56
- package/connections/AWSS3.yaml +0 -228
- package/connections/AmazonRedshift.yaml +0 -75
- package/connections/AxiosHttp.yaml +0 -194
- package/connections/Elasticsearch.yaml +0 -378
- package/connections/GoogleSheet.yaml +0 -332
- package/connections/Knex.yaml +0 -181
- package/connections/KnexRequests.md +0 -121
- package/connections/MSSQL.yaml +0 -90
- package/connections/MariaDB.yaml +0 -77
- package/connections/MongoDB.yaml +0 -581
- package/connections/MySQL.yaml +0 -92
- package/connections/OracleDB.yaml +0 -73
- package/connections/PostgreSQL.yaml +0 -99
- package/connections/Redis.yaml +0 -147
- package/connections/SQLite.yaml +0 -94
- package/connections/SendGridMail.yaml +0 -113
- package/connections/Stripe.yaml +0 -139
- package/deployment/aws-lambda.yaml +0 -128
- package/deployment/docker.yaml +0 -118
- package/deployment/netlify.yaml +0 -69
- package/deployment/node-server.yaml +0 -111
- package/head.html +0 -7
- package/howto/generate-csv.yaml.njk +0 -252
- package/howto/generate-pdf.yaml.njk +0 -651
- package/howto/generateCsv/lowdefy.yaml +0 -64
- package/howto/generateCsv/public/csvMake.js +0 -27
- package/howto/generatePdf/inv_template.yaml +0 -200
- package/howto/generatePdf/lowdefy.yaml +0 -117
- package/howto/generatePdf/my_header.html +0 -1
- package/howto/generatePdf/public/logo_example.png +0 -0
- package/howto/generatePdf/public/modules/importUmd.js +0 -7
- package/howto/generatePdf/public/modules/pdfMake.js +0 -7
- package/howto/generatePdf/public/modules/vfs_fonts.js +0 -12
- package/howto/use-refrences.md +0 -5
- package/introduction.yaml +0 -100
- package/lowdefy.yaml +0 -66
- package/menus.yaml +0 -832
- package/operators/_actions.yaml +0 -123
- package/operators/_and.yaml +0 -90
- package/operators/_args.yaml +0 -79
- package/operators/_array.yaml +0 -326
- package/operators/_base64.yaml +0 -56
- package/operators/_change_case.yaml +0 -347
- package/operators/_date.yaml +0 -71
- package/operators/_diff.yaml +0 -75
- package/operators/_divide.yaml +0 -46
- package/operators/_eq.yaml +0 -67
- package/operators/_event.yaml +0 -103
- package/operators/_format.yaml +0 -209
- package/operators/_function.yaml +0 -66
- package/operators/_get.yaml +0 -108
- package/operators/_global.yaml +0 -107
- package/operators/_gt.yaml +0 -65
- package/operators/_gte.yaml +0 -65
- package/operators/_hash.yaml +0 -109
- package/operators/_if.yaml +0 -44
- package/operators/_if_none.yaml +0 -61
- package/operators/_index.yaml +0 -65
- package/operators/_input.yaml +0 -114
- package/operators/_js.yaml +0 -189
- package/operators/_json.yaml +0 -128
- package/operators/_list_contexts.yaml +0 -37
- package/operators/_location.yaml +0 -59
- package/operators/_log.yaml +0 -36
- package/operators/_lt.yaml +0 -65
- package/operators/_lte.yaml +0 -65
- package/operators/_math.yaml +0 -374
- package/operators/_media.yaml +0 -86
- package/operators/_menu.yaml +0 -81
- package/operators/_mql.yaml +0 -101
- package/operators/_ne.yaml +0 -77
- package/operators/_not.yaml +0 -47
- package/operators/_number.yaml +0 -157
- package/operators/_nunjucks.yaml +0 -73
- package/operators/_object.yaml +0 -193
- package/operators/_operator.yaml +0 -47
- package/operators/_or.yaml +0 -81
- package/operators/_product.yaml +0 -59
- package/operators/_random.yaml +0 -104
- package/operators/_ref.yaml +0 -266
- package/operators/_regex.yaml +0 -83
- package/operators/_request.yaml +0 -50
- package/operators/_secret.yaml +0 -74
- package/operators/_state.yaml +0 -114
- package/operators/_string.yaml +0 -283
- package/operators/_subtract.yaml +0 -38
- package/operators/_sum.yaml +0 -59
- package/operators/_switch.yaml +0 -51
- package/operators/_type.yaml +0 -92
- package/operators/_uri.yaml +0 -56
- package/operators/_url_query.yaml +0 -120
- package/operators/_user.yaml +0 -107
- package/operators/_uuid.yaml +0 -114
- package/operators/_var.yaml +0 -105
- package/operators/_yaml.yaml +0 -107
- package/pages.yaml +0 -227
- package/public/images/authors/gervwyk.jpeg +0 -0
- package/public/images/authors/sandile.jpeg +0 -0
- package/public/images/howto/header_generate_csv.jpg +0 -0
- package/public/images/howto/header_generate_pdf.jpg +0 -0
- package/public/logo_example.png +0 -0
- package/public/lowdefy_app_schema.png +0 -0
- package/public/modules/csvMake.js +0 -27
- package/public/modules/filterDefaultValue.js +0 -48
- package/public/modules/importUmd.js +0 -7
- package/public/modules/index.js +0 -5
- package/public/modules/pdfMake.js +0 -7
- package/public/modules/test/filterDefaultValue.test.js +0 -91
- package/public/modules/vfs_fonts.js +0 -12
- package/public/sitemap.xml +0 -1024
- package/templates/actions.yaml.njk +0 -68
- package/templates/blocks/defaultValueTransformer.js +0 -53
- package/templates/blocks/exampleTransformer.js +0 -81
- package/templates/blocks/layout.yaml +0 -114
- package/templates/blocks/propertiesFormTransformer.js +0 -419
- package/templates/blocks/propertiesGetterTransformer.js +0 -132
- package/templates/blocks/schema.yaml.njk +0 -42
- package/templates/blocks/style.yaml +0 -26
- package/templates/blocks/template.yaml.njk +0 -495
- package/templates/blog.yaml.njk +0 -221
- package/templates/cli_command.yaml.njk +0 -37
- package/templates/footer.yaml.njk +0 -604
- package/templates/general.yaml.njk +0 -124
- package/templates/generateSitemap.js +0 -41
- package/templates/header.yaml +0 -138
- package/templates/navigation_buttons.yaml +0 -68
- package/templates/operators.yaml.njk +0 -82
- package/templates/operatorsMethodTransformer.js +0 -119
- package/templates/test/array.test.js +0 -1335
- package/templates/test/boolean.test.js +0 -98
- package/templates/test/button.test.js +0 -166
- package/templates/test/color.test.js +0 -126
- package/templates/test/enum.test.js +0 -105
- package/templates/test/icon.test.js +0 -109
- package/templates/test/integer.test.js +0 -99
- package/templates/test/manual.test.js +0 -238
- package/templates/test/number.test.js +0 -99
- package/templates/test/object.test.js +0 -434
- package/templates/test/oneOf.test.js +0 -794
- package/templates/test/string.test.js +0 -98
- package/templates/test/yaml.test.js +0 -605
- package/tutorial/next-steps.yaml +0 -83
- package/tutorial/tutorial-actions-operators-config.yaml +0 -142
- package/tutorial/tutorial-actions-operators.yaml +0 -436
- package/tutorial/tutorial-add-blocks-config.yaml +0 -109
- package/tutorial/tutorial-add-blocks.yaml +0 -195
- package/tutorial/tutorial-create-page-config.yaml +0 -77
- package/tutorial/tutorial-create-page.yaml +0 -196
- package/tutorial/tutorial-deploy.yaml +0 -146
- package/tutorial/tutorial-requests-config.yaml +0 -186
- package/tutorial/tutorial-requests.yaml +0 -338
- package/tutorial/tutorial-start.yaml +0 -282
- package/users/login-and-logout.yaml +0 -164
- package/users/openid-connect.yaml +0 -84
- package/users/protected-pages.yaml +0 -67
- package/users/roles.yaml +0 -70
- package/users/user-object.yaml +0 -73
- package/users/users-introduction.yaml +0 -80
- package/version.yaml +0 -1
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# Copyright 2020-2021 Lowdefy, Inc
|
|
2
|
-
|
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
# you may not use this file except in compliance with the License.
|
|
5
|
-
# You may obtain a copy of the License at
|
|
6
|
-
|
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
|
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
# See the License for the specific language governing permissions and
|
|
13
|
-
# limitations under the License.
|
|
14
|
-
|
|
15
|
-
_ref:
|
|
16
|
-
path: templates/blocks/template.yaml.njk
|
|
17
|
-
vars:
|
|
18
|
-
block_type: TextArea
|
|
19
|
-
value_type: string
|
|
20
|
-
category: input
|
|
21
|
-
schema: ../plugins/blocks/blocks-antd/src/blocks/TextArea/schema.json
|
|
22
|
-
filePath: blocks/input/TextArea.yaml
|
|
23
|
-
init_state_values:
|
|
24
|
-
__type_block.properties.autoSize: boolean
|
|
25
|
-
__boolean_block.properties.autoSize: true
|
|
26
|
-
description_content: |
|
|
27
|
-
The `TextArea` block is a text input that has multiple rows of input. It can be set to a fixed number of rows, or it can expand automatically as the user inputs more text.
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
# Copyright 2020-2021 Lowdefy, Inc
|
|
2
|
-
|
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
# you may not use this file except in compliance with the License.
|
|
5
|
-
# You may obtain a copy of the License at
|
|
6
|
-
|
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
|
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
# See the License for the specific language governing permissions and
|
|
13
|
-
# limitations under the License.
|
|
14
|
-
|
|
15
|
-
_ref:
|
|
16
|
-
path: templates/blocks/template.yaml.njk
|
|
17
|
-
vars:
|
|
18
|
-
block_type: TextInput
|
|
19
|
-
value_type: string
|
|
20
|
-
category: input
|
|
21
|
-
schema: ../plugins/blocks/blocks-antd/src/blocks/TextInput/schema.json
|
|
22
|
-
filePath: blocks/input/TextInput.yaml
|
|
23
|
-
description_content: |
|
|
24
|
-
The `TextInput` block is a single line text input.
|
|
25
|
-
|
|
26
|
-
examples:
|
|
27
|
-
- title: Required text input
|
|
28
|
-
block:
|
|
29
|
-
id: required_example
|
|
30
|
-
type: TextInput
|
|
31
|
-
required: true
|
|
32
|
-
properties:
|
|
33
|
-
title: Required text input
|
|
34
|
-
- title: Placeholder
|
|
35
|
-
block:
|
|
36
|
-
id: placeholder_example
|
|
37
|
-
type: TextInput
|
|
38
|
-
properties:
|
|
39
|
-
placeholder: Placeholder
|
|
40
|
-
- title: Prefix and suffix text
|
|
41
|
-
block:
|
|
42
|
-
id: prefix_suffix_example
|
|
43
|
-
type: TextInput
|
|
44
|
-
properties:
|
|
45
|
-
label:
|
|
46
|
-
extra: Prefix and suffix text
|
|
47
|
-
prefix: The cat
|
|
48
|
-
placeholder: chased
|
|
49
|
-
suffix: the rat
|
|
50
|
-
- title: User name
|
|
51
|
-
block:
|
|
52
|
-
id: username
|
|
53
|
-
type: TextInput
|
|
54
|
-
properties:
|
|
55
|
-
title: First Name
|
|
56
|
-
suffixIcon: AiOutlinedUser
|
|
57
|
-
placeholder: Your name
|
|
58
|
-
label:
|
|
59
|
-
span: 6
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# Copyright 2020-2021 Lowdefy, Inc
|
|
2
|
-
|
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
# you may not use this file except in compliance with the License.
|
|
5
|
-
# You may obtain a copy of the License at
|
|
6
|
-
|
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
|
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
# See the License for the specific language governing permissions and
|
|
13
|
-
# limitations under the License.
|
|
14
|
-
|
|
15
|
-
_ref:
|
|
16
|
-
path: templates/blocks/template.yaml.njk
|
|
17
|
-
vars:
|
|
18
|
-
block_type: TitleInput
|
|
19
|
-
value_type: string
|
|
20
|
-
category: input
|
|
21
|
-
schema: ../plugins/blocks/blocks-antd/src/blocks/TitleInput/schema.json
|
|
22
|
-
filePath: blocks/input/TitleInput.yaml
|
|
23
|
-
init_state_values:
|
|
24
|
-
__type_block.properties.copyable: boolean
|
|
25
|
-
__type_block.properties.ellipsis: boolean
|
|
26
|
-
__type_block.properties.editable: boolean
|
|
27
|
-
__boolean_block.properties.copyable: false
|
|
28
|
-
__boolean_block.properties.ellipsis: false
|
|
29
|
-
__boolean_block.properties.editable: true
|
|
30
|
-
block_id: Click edit to change the title.
|
|
31
|
-
description_content: |
|
|
32
|
-
The `TitleInput` block can display a title, yet allow the user to click a edit icon and change the title. This is useful when the UI renders an existing document with a title, which a user must be able to edit.
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# Copyright 2020-2021 Lowdefy, Inc
|
|
2
|
-
|
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
# you may not use this file except in compliance with the License.
|
|
5
|
-
# You may obtain a copy of the License at
|
|
6
|
-
|
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
|
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
# See the License for the specific language governing permissions and
|
|
13
|
-
# limitations under the License.
|
|
14
|
-
|
|
15
|
-
_ref:
|
|
16
|
-
path: templates/blocks/template.yaml.njk
|
|
17
|
-
vars:
|
|
18
|
-
block_type: TwitterColorSelector
|
|
19
|
-
value_type: string
|
|
20
|
-
category: input
|
|
21
|
-
schema: ../plugins/blocks/blocks-color-selectors/src/blocks/TwitterColorSelector/schema.json
|
|
22
|
-
filePath: blocks/input/TwitterColorSelector.yaml
|
|
23
|
-
description_content: |
|
|
24
|
-
A color selector component similar to the twitter color selector..
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# Copyright 2020-2021 Lowdefy, Inc
|
|
2
|
-
|
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
# you may not use this file except in compliance with the License.
|
|
5
|
-
# You may obtain a copy of the License at
|
|
6
|
-
|
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
|
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
# See the License for the specific language governing permissions and
|
|
13
|
-
# limitations under the License.
|
|
14
|
-
|
|
15
|
-
_ref:
|
|
16
|
-
path: templates/blocks/template.yaml.njk
|
|
17
|
-
vars:
|
|
18
|
-
block_type: WeekSelector
|
|
19
|
-
value_type: date
|
|
20
|
-
category: input
|
|
21
|
-
schema: ../plugins/blocks/blocks-antd/src/blocks/WeekSelector/schema.json
|
|
22
|
-
filePath: blocks/input/WeekSelector.yaml
|
|
23
|
-
description_content: |
|
|
24
|
-
The `WeekSelector` block allows a user to select a week. The value is a date object, with day and time values of midnight on the first monday of the week GMT.
|
|
25
|
-
|
|
26
|
-
> Other date type blocks are `DateRangeSelector`, `DateSelector`, `DateTimeSelector` and `MonthSelector`.
|
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
# Copyright 2020-2021 Lowdefy, Inc
|
|
2
|
-
|
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
# you may not use this file except in compliance with the License.
|
|
5
|
-
# You may obtain a copy of the License at
|
|
6
|
-
|
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
|
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
# See the License for the specific language governing permissions and
|
|
13
|
-
# limitations under the License.
|
|
14
|
-
|
|
15
|
-
_ref:
|
|
16
|
-
path: templates/blocks/template.yaml.njk
|
|
17
|
-
vars:
|
|
18
|
-
block_type: ControlledList
|
|
19
|
-
category: list
|
|
20
|
-
schema: ../plugins/blocks/blocks-antd/src/blocks/ControlledList/schema.json
|
|
21
|
-
filePath: blocks/ControlledList/ControlledList.yaml
|
|
22
|
-
description_content: |
|
|
23
|
-
The ControlledList block renders a content area for all items in the array into the list card and provides easy UI elements to add or remove items in the list. All list blocks create a array in state at their block `id`. The list content areas are rendered for each index in the array. See the [List Concept](/lists) page for a detailed description on how to work with lists.
|
|
24
|
-
areas:
|
|
25
|
-
- content
|
|
26
|
-
methods:
|
|
27
|
-
- name: pushItem
|
|
28
|
-
onClick:
|
|
29
|
-
- id: pushItem
|
|
30
|
-
type: CallMethod
|
|
31
|
-
params:
|
|
32
|
-
blockId: block_id
|
|
33
|
-
method: pushItem
|
|
34
|
-
- name: unshiftItem
|
|
35
|
-
onClick:
|
|
36
|
-
- id: unshiftItem
|
|
37
|
-
type: CallMethod
|
|
38
|
-
params:
|
|
39
|
-
blockId: block_id
|
|
40
|
-
method: unshiftItem
|
|
41
|
-
- name: removeItem at index 1
|
|
42
|
-
onClick:
|
|
43
|
-
- id: removeItem
|
|
44
|
-
type: CallMethod
|
|
45
|
-
params:
|
|
46
|
-
blockId: block_id
|
|
47
|
-
method: removeItem
|
|
48
|
-
args:
|
|
49
|
-
- 1
|
|
50
|
-
- name: for index 1 moveItemDown
|
|
51
|
-
onClick:
|
|
52
|
-
- id: moveItemDown
|
|
53
|
-
type: CallMethod
|
|
54
|
-
params:
|
|
55
|
-
blockId: block_id
|
|
56
|
-
method: moveItemDown
|
|
57
|
-
args:
|
|
58
|
-
- 1
|
|
59
|
-
- name: for index 1 moveItemUp
|
|
60
|
-
onClick:
|
|
61
|
-
- id: moveItemUp
|
|
62
|
-
type: CallMethod
|
|
63
|
-
params:
|
|
64
|
-
blockId: block_id
|
|
65
|
-
method: moveItemUp
|
|
66
|
-
args:
|
|
67
|
-
- 1
|
|
68
|
-
init_state_values:
|
|
69
|
-
todos:
|
|
70
|
-
- Add the noodles.
|
|
71
|
-
- Let it cook for a minute.
|
|
72
|
-
- Add some 🌶.
|
|
73
|
-
examples:
|
|
74
|
-
- title: Todo List
|
|
75
|
-
block:
|
|
76
|
-
id: todos
|
|
77
|
-
type: ControlledList
|
|
78
|
-
blocks:
|
|
79
|
-
- id: todos.$
|
|
80
|
-
type: TitleInput
|
|
81
|
-
properties:
|
|
82
|
-
level: 4
|
|
83
|
-
extra:
|
|
84
|
-
id: ex_state
|
|
85
|
-
type: MarkdownWithCode
|
|
86
|
-
style:
|
|
87
|
-
paddingTop: 16
|
|
88
|
-
properties:
|
|
89
|
-
content:
|
|
90
|
-
_nunjucks:
|
|
91
|
-
template: |
|
|
92
|
-
###### Todos State Value:
|
|
93
|
-
```yaml
|
|
94
|
-
{{ value | safe }}
|
|
95
|
-
```
|
|
96
|
-
on:
|
|
97
|
-
value:
|
|
98
|
-
_yaml.stringify:
|
|
99
|
-
on:
|
|
100
|
-
todos:
|
|
101
|
-
_state: todos
|
|
102
|
-
options:
|
|
103
|
-
sortKeys: false
|
|
104
|
-
- title: List of Contacts
|
|
105
|
-
block:
|
|
106
|
-
id: contacts
|
|
107
|
-
type: ControlledList
|
|
108
|
-
blocks:
|
|
109
|
-
- id: contacts.$.first_name
|
|
110
|
-
type: TextInput
|
|
111
|
-
layout:
|
|
112
|
-
span: 12
|
|
113
|
-
required: true
|
|
114
|
-
properties:
|
|
115
|
-
title: First Name
|
|
116
|
-
label:
|
|
117
|
-
span: 10
|
|
118
|
-
align: right
|
|
119
|
-
- id: contacts.$.last_name
|
|
120
|
-
type: TextInput
|
|
121
|
-
layout:
|
|
122
|
-
span: 12
|
|
123
|
-
required: true
|
|
124
|
-
properties:
|
|
125
|
-
title: Last Name
|
|
126
|
-
label:
|
|
127
|
-
span: 10
|
|
128
|
-
align: right
|
|
129
|
-
|
|
130
|
-
- id: contacts.$.date_of_birth
|
|
131
|
-
type: DateSelector
|
|
132
|
-
layout:
|
|
133
|
-
span: 12
|
|
134
|
-
required: true
|
|
135
|
-
properties:
|
|
136
|
-
title: Date of Birth
|
|
137
|
-
label:
|
|
138
|
-
span: 10
|
|
139
|
-
align: right
|
|
140
|
-
- id: contacts.$.email
|
|
141
|
-
type: TextInput
|
|
142
|
-
layout:
|
|
143
|
-
span: 12
|
|
144
|
-
required: true
|
|
145
|
-
properties:
|
|
146
|
-
title: Email address
|
|
147
|
-
label:
|
|
148
|
-
span: 10
|
|
149
|
-
align: right
|
|
150
|
-
- id: contacts.$.phone_number
|
|
151
|
-
type: TextInput
|
|
152
|
-
layout:
|
|
153
|
-
span: 12
|
|
154
|
-
properties:
|
|
155
|
-
title: Phone number
|
|
156
|
-
label:
|
|
157
|
-
span: 10
|
|
158
|
-
align: right
|
|
159
|
-
- id: contacts.$.preference
|
|
160
|
-
type: ButtonSelector
|
|
161
|
-
layout:
|
|
162
|
-
span: 12
|
|
163
|
-
properties:
|
|
164
|
-
title: Preference
|
|
165
|
-
label:
|
|
166
|
-
span: 10
|
|
167
|
-
align: right
|
|
168
|
-
options:
|
|
169
|
-
- Phone
|
|
170
|
-
- Email
|
|
171
|
-
extra:
|
|
172
|
-
id: ex_state
|
|
173
|
-
type: MarkdownWithCode
|
|
174
|
-
style:
|
|
175
|
-
paddingTop: 16
|
|
176
|
-
properties:
|
|
177
|
-
content:
|
|
178
|
-
_nunjucks:
|
|
179
|
-
template: |
|
|
180
|
-
###### Contacts State Value:
|
|
181
|
-
```yaml
|
|
182
|
-
{{ value | safe }}
|
|
183
|
-
```
|
|
184
|
-
on:
|
|
185
|
-
value:
|
|
186
|
-
_yaml.stringify:
|
|
187
|
-
on:
|
|
188
|
-
contacts:
|
|
189
|
-
_state: contacts
|
|
190
|
-
options:
|
|
191
|
-
sortKeys: false
|
package/blocks/list/List.yaml
DELETED
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
# Copyright 2020-2021 Lowdefy, Inc
|
|
2
|
-
|
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
# you may not use this file except in compliance with the License.
|
|
5
|
-
# You may obtain a copy of the License at
|
|
6
|
-
|
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
|
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
# See the License for the specific language governing permissions and
|
|
13
|
-
# limitations under the License.
|
|
14
|
-
|
|
15
|
-
_ref:
|
|
16
|
-
path: templates/blocks/template.yaml.njk
|
|
17
|
-
vars:
|
|
18
|
-
block_type: List
|
|
19
|
-
category: list
|
|
20
|
-
schema: ../plugins/blocks/blocks-basic/src/blocks/List/schema.json
|
|
21
|
-
filePath: blocks/list/List.yaml
|
|
22
|
-
description_content: |
|
|
23
|
-
The List block renders a content area for all items in the array. All list blocks create a array in state at their block `id`. The list content areas are rendered for each index in the array. See the [List Concept](/lists) page for a detailed description on how to work with lists.
|
|
24
|
-
areas:
|
|
25
|
-
- content
|
|
26
|
-
init_state_values:
|
|
27
|
-
todos:
|
|
28
|
-
- Bake a 🧁
|
|
29
|
-
- Eat a🍦
|
|
30
|
-
- Phone a 🦖
|
|
31
|
-
methods:
|
|
32
|
-
- name: pushItem
|
|
33
|
-
onClick:
|
|
34
|
-
- id: pushItem
|
|
35
|
-
type: CallMethod
|
|
36
|
-
params:
|
|
37
|
-
blockId: block_id
|
|
38
|
-
method: pushItem
|
|
39
|
-
- name: unshiftItem
|
|
40
|
-
onClick:
|
|
41
|
-
- id: unshiftItem
|
|
42
|
-
type: CallMethod
|
|
43
|
-
params:
|
|
44
|
-
blockId: block_id
|
|
45
|
-
method: unshiftItem
|
|
46
|
-
- name: removeItem at index 1
|
|
47
|
-
onClick:
|
|
48
|
-
- id: removeItem
|
|
49
|
-
type: CallMethod
|
|
50
|
-
params:
|
|
51
|
-
blockId: block_id
|
|
52
|
-
method: removeItem
|
|
53
|
-
args:
|
|
54
|
-
- 1
|
|
55
|
-
- name: for index 1 moveItemDown
|
|
56
|
-
onClick:
|
|
57
|
-
- id: moveItemDown
|
|
58
|
-
type: CallMethod
|
|
59
|
-
params:
|
|
60
|
-
blockId: block_id
|
|
61
|
-
method: moveItemDown
|
|
62
|
-
args:
|
|
63
|
-
- 1
|
|
64
|
-
- name: for index 1 moveItemUp
|
|
65
|
-
onClick:
|
|
66
|
-
- id: moveItemUp
|
|
67
|
-
type: CallMethod
|
|
68
|
-
params:
|
|
69
|
-
blockId: block_id
|
|
70
|
-
method: moveItemUp
|
|
71
|
-
args:
|
|
72
|
-
- 1
|
|
73
|
-
examples:
|
|
74
|
-
- title: Todo List
|
|
75
|
-
block:
|
|
76
|
-
id: todo_app
|
|
77
|
-
type: Box
|
|
78
|
-
layout:
|
|
79
|
-
contentGutter: 16
|
|
80
|
-
blocks:
|
|
81
|
-
- id: todo_input
|
|
82
|
-
type: TextInput
|
|
83
|
-
layout:
|
|
84
|
-
grow: 1
|
|
85
|
-
properties:
|
|
86
|
-
label:
|
|
87
|
-
disabled: true
|
|
88
|
-
placeholder: Write something todo...
|
|
89
|
-
- id: add_item
|
|
90
|
-
type: Button
|
|
91
|
-
layout:
|
|
92
|
-
shrink: 1
|
|
93
|
-
properties:
|
|
94
|
-
title: Add item
|
|
95
|
-
icon: AiOutlinedPlus
|
|
96
|
-
events:
|
|
97
|
-
onClick:
|
|
98
|
-
- id: add
|
|
99
|
-
type: SetState
|
|
100
|
-
params:
|
|
101
|
-
todos:
|
|
102
|
-
_array.concat:
|
|
103
|
-
- [_state: todo_input]
|
|
104
|
-
- _state: todos
|
|
105
|
-
todo_input: null
|
|
106
|
-
- id: todos
|
|
107
|
-
type: List
|
|
108
|
-
layout:
|
|
109
|
-
contentGutter: 16
|
|
110
|
-
blocks:
|
|
111
|
-
- id: todos.$
|
|
112
|
-
type: TitleInput
|
|
113
|
-
layout:
|
|
114
|
-
grow: 1
|
|
115
|
-
properties:
|
|
116
|
-
level: 4
|
|
117
|
-
- id: remove_item
|
|
118
|
-
type: Icon
|
|
119
|
-
layout:
|
|
120
|
-
shrink: 1
|
|
121
|
-
properties:
|
|
122
|
-
name: AiOutlinedMinusCircle
|
|
123
|
-
size: 18
|
|
124
|
-
events:
|
|
125
|
-
onClick:
|
|
126
|
-
- id: remove
|
|
127
|
-
type: CallMethod
|
|
128
|
-
messages:
|
|
129
|
-
loading: sd f sdfgsdfg
|
|
130
|
-
success: hi sdfg sdfgs g
|
|
131
|
-
params:
|
|
132
|
-
blockId: todos
|
|
133
|
-
method: removeItem
|
|
134
|
-
args:
|
|
135
|
-
- _index: 0
|
|
136
|
-
|
|
137
|
-
extra:
|
|
138
|
-
id: ex_state
|
|
139
|
-
type: MarkdownWithCode
|
|
140
|
-
style:
|
|
141
|
-
paddingTop: 16
|
|
142
|
-
properties:
|
|
143
|
-
content:
|
|
144
|
-
_nunjucks:
|
|
145
|
-
template: |
|
|
146
|
-
###### Todos State Value:
|
|
147
|
-
```yaml
|
|
148
|
-
{{ value | safe }}
|
|
149
|
-
```
|
|
150
|
-
on:
|
|
151
|
-
value:
|
|
152
|
-
_yaml.stringify:
|
|
153
|
-
on:
|
|
154
|
-
todos:
|
|
155
|
-
_state: todos
|
|
156
|
-
options:
|
|
157
|
-
sortKeys: false
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
# Copyright 2020-2021 Lowdefy, Inc
|
|
2
|
-
|
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
# you may not use this file except in compliance with the License.
|
|
5
|
-
# You may obtain a copy of the License at
|
|
6
|
-
|
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
|
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
# See the License for the specific language governing permissions and
|
|
13
|
-
# limitations under the License.
|
|
14
|
-
|
|
15
|
-
# TODO: Fix schema to add to docs
|
|
16
|
-
|
|
17
|
-
_ref:
|
|
18
|
-
path: templates/blocks/template.yaml.njk
|
|
19
|
-
vars:
|
|
20
|
-
block_type: TimelineList
|
|
21
|
-
category: list
|
|
22
|
-
schema: ../plugins/blocks/blocks-antd/src/blocks/TimelineList/schema.json
|
|
23
|
-
filePath: blocks/TimelineList/TimelineList.yaml
|
|
24
|
-
description_content: |
|
|
25
|
-
The TimelineList block renders a content area for all items in the array. All list blocks create a array in state at their block `id`. The list content areas are rendered for each index in the array. See the [List Concept](/lists) page for a detailed description on how to work with lists.
|
|
26
|
-
|
|
27
|
-
The timeline nodes can be customized based on the array data.
|
|
28
|
-
areas:
|
|
29
|
-
- content
|
|
30
|
-
init_state_values:
|
|
31
|
-
shipment_events:
|
|
32
|
-
- type: Order Placed
|
|
33
|
-
icon: AiTwoToneShoppingCart
|
|
34
|
-
color: '#2f54eb'
|
|
35
|
-
orderNumber: 2112
|
|
36
|
-
timestamp:
|
|
37
|
-
_date: '2021-02-10T20:30:00.000Z'
|
|
38
|
-
item:
|
|
39
|
-
code: ax2m-83kl9-ck
|
|
40
|
-
title: Useless Glue
|
|
41
|
-
- type: Shipped
|
|
42
|
-
icon: AiTwoToneGift
|
|
43
|
-
color: '#fa8c16'
|
|
44
|
-
orderNumber: 2112
|
|
45
|
-
timestamp:
|
|
46
|
-
_date: '2021-02-11T08:33:00.000Z'
|
|
47
|
-
- type: Cleared Customs
|
|
48
|
-
icon: AiTwoToneFileDone
|
|
49
|
-
color: '#13c2c2'
|
|
50
|
-
orderNumber: 2112
|
|
51
|
-
timestamp:
|
|
52
|
-
_date: '2021-02-11T16:12:00.000Z'
|
|
53
|
-
- type: Delivered
|
|
54
|
-
icon: AiTwoToneCheckCircle
|
|
55
|
-
color: '#52c41a'
|
|
56
|
-
orderNumber: 2112
|
|
57
|
-
timestamp:
|
|
58
|
-
_date: '2021-02-11T16:12:00.000Z'
|
|
59
|
-
|
|
60
|
-
methods:
|
|
61
|
-
- name: pushItem
|
|
62
|
-
onClick:
|
|
63
|
-
- id: pushItem
|
|
64
|
-
type: CallMethod
|
|
65
|
-
params:
|
|
66
|
-
blockId: block_id
|
|
67
|
-
method: pushItem
|
|
68
|
-
- name: unshiftItem
|
|
69
|
-
onClick:
|
|
70
|
-
- id: unshiftItem
|
|
71
|
-
type: CallMethod
|
|
72
|
-
params:
|
|
73
|
-
blockId: block_id
|
|
74
|
-
method: unshiftItem
|
|
75
|
-
- name: removeItem at index 1
|
|
76
|
-
onClick:
|
|
77
|
-
- id: removeItem
|
|
78
|
-
type: CallMethod
|
|
79
|
-
params:
|
|
80
|
-
blockId: block_id
|
|
81
|
-
method: removeItem
|
|
82
|
-
args:
|
|
83
|
-
- 1
|
|
84
|
-
- name: for index 1 moveItemDown
|
|
85
|
-
onClick:
|
|
86
|
-
- id: moveItemDown
|
|
87
|
-
type: CallMethod
|
|
88
|
-
params:
|
|
89
|
-
blockId: block_id
|
|
90
|
-
method: moveItemDown
|
|
91
|
-
args:
|
|
92
|
-
- 1
|
|
93
|
-
- name: for index 1 moveItemUp
|
|
94
|
-
onClick:
|
|
95
|
-
- id: moveItemUp
|
|
96
|
-
type: CallMethod
|
|
97
|
-
params:
|
|
98
|
-
blockId: block_id
|
|
99
|
-
method: moveItemUp
|
|
100
|
-
args:
|
|
101
|
-
- 1
|
|
102
|
-
examples:
|
|
103
|
-
- title: Shipment Event Log
|
|
104
|
-
block:
|
|
105
|
-
id: shipment_events
|
|
106
|
-
type: TimelineList
|
|
107
|
-
blocks:
|
|
108
|
-
- id: todo_input
|
|
109
|
-
type: TextInput
|
|
110
|
-
layout:
|
|
111
|
-
grow: 1
|
|
112
|
-
properties:
|
|
113
|
-
label:
|
|
114
|
-
disabled: true
|
|
115
|
-
placeholder: Write something todo...
|
|
116
|
-
extra:
|
|
117
|
-
id: ex_state
|
|
118
|
-
type: MarkdownWithCode
|
|
119
|
-
style:
|
|
120
|
-
paddingTop: 16
|
|
121
|
-
properties:
|
|
122
|
-
content:
|
|
123
|
-
_nunjucks:
|
|
124
|
-
template: |
|
|
125
|
-
###### Shipment Events State Value:
|
|
126
|
-
```yaml
|
|
127
|
-
{{ value | safe }}
|
|
128
|
-
```
|
|
129
|
-
on:
|
|
130
|
-
value:
|
|
131
|
-
_yaml.stringify:
|
|
132
|
-
on:
|
|
133
|
-
shipment_events:
|
|
134
|
-
_state: shipment_events
|
|
135
|
-
options:
|
|
136
|
-
sortKeys: false
|
package/body.html
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2.6.3/dist/cdn/docsearch.min.js"></script>
|