@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
package/pages.yaml
DELETED
|
@@ -1,227 +0,0 @@
|
|
|
1
|
-
- _ref: introduction.yaml
|
|
2
|
-
- _ref: tutorial/tutorial-start.yaml
|
|
3
|
-
- _ref: tutorial/tutorial-create-page.yaml
|
|
4
|
-
- _ref: tutorial/tutorial-create-page-config.yaml
|
|
5
|
-
- _ref: tutorial/tutorial-add-blocks.yaml
|
|
6
|
-
- _ref: tutorial/tutorial-add-blocks-config.yaml
|
|
7
|
-
- _ref: tutorial/tutorial-actions-operators.yaml
|
|
8
|
-
- _ref: tutorial/tutorial-actions-operators-config.yaml
|
|
9
|
-
- _ref: tutorial/tutorial-requests.yaml
|
|
10
|
-
- _ref: tutorial/tutorial-requests-config.yaml
|
|
11
|
-
- _ref: tutorial/tutorial-deploy.yaml
|
|
12
|
-
- _ref: tutorial/next-steps.yaml
|
|
13
|
-
|
|
14
|
-
- _ref:
|
|
15
|
-
path: howto/generate-csv.yaml.njk
|
|
16
|
-
vars:
|
|
17
|
-
version:
|
|
18
|
-
_ref: version.yaml
|
|
19
|
-
- _ref:
|
|
20
|
-
path: howto/generate-pdf.yaml.njk
|
|
21
|
-
vars:
|
|
22
|
-
version:
|
|
23
|
-
_ref: version.yaml
|
|
24
|
-
|
|
25
|
-
- _ref: concepts/overview.yaml
|
|
26
|
-
- _ref: concepts/cli.yaml
|
|
27
|
-
- _ref: concepts/lowdefy-schema.yaml
|
|
28
|
-
- _ref: concepts/context-and-state.yaml
|
|
29
|
-
- _ref: concepts/blocks.yaml
|
|
30
|
-
- _ref: concepts/layout.yaml
|
|
31
|
-
- _ref: concepts/connections-and-requests.yaml
|
|
32
|
-
- _ref: concepts/events-and-actions.yaml
|
|
33
|
-
- _ref: concepts/operators.yaml
|
|
34
|
-
- _ref: concepts/secrets.yaml
|
|
35
|
-
- _ref: concepts/lists.yaml
|
|
36
|
-
- _ref: concepts/hosting-files.yaml
|
|
37
|
-
- _ref: concepts/custom-code.yaml
|
|
38
|
-
- _ref: concepts/custom-blocks.yaml
|
|
39
|
-
|
|
40
|
-
- _ref: deployment/aws-lambda.yaml
|
|
41
|
-
- _ref: deployment/docker.yaml
|
|
42
|
-
- _ref: deployment/netlify.yaml
|
|
43
|
-
- _ref: deployment/node-server.yaml
|
|
44
|
-
|
|
45
|
-
- _ref: users/users-introduction.yaml
|
|
46
|
-
- _ref: users/openid-connect.yaml
|
|
47
|
-
- _ref: users/login-and-logout.yaml
|
|
48
|
-
- _ref: users/protected-pages.yaml
|
|
49
|
-
- _ref: users/user-object.yaml
|
|
50
|
-
- _ref: users/roles.yaml
|
|
51
|
-
|
|
52
|
-
- _ref: blocks/input/AutoComplete.yaml
|
|
53
|
-
- _ref: blocks/input/ButtonSelector.yaml
|
|
54
|
-
- _ref: blocks/input/CheckboxSelector.yaml
|
|
55
|
-
- _ref: blocks/input/CheckboxSwitch.yaml
|
|
56
|
-
- _ref: blocks/input/ChromeColorSelector.yaml
|
|
57
|
-
- _ref: blocks/input/CircleColorSelector.yaml
|
|
58
|
-
- _ref: blocks/input/ColorSelector.yaml
|
|
59
|
-
- _ref: blocks/input/CompactColorSelector.yaml
|
|
60
|
-
- _ref: blocks/input/DateRangeSelector.yaml
|
|
61
|
-
- _ref: blocks/input/DateSelector.yaml
|
|
62
|
-
- _ref: blocks/input/DateTimeSelector.yaml
|
|
63
|
-
- _ref: blocks/input/GithubColorSelector.yaml
|
|
64
|
-
- _ref: blocks/input/MonthSelector.yaml
|
|
65
|
-
- _ref: blocks/input/MultipleSelector.yaml
|
|
66
|
-
- _ref: blocks/input/NumberInput.yaml
|
|
67
|
-
- _ref: blocks/input/Pagination.yaml
|
|
68
|
-
- _ref: blocks/input/ParagraphInput.yaml
|
|
69
|
-
- _ref: blocks/input/PasswordInput.yaml
|
|
70
|
-
- _ref: blocks/input/RadioSelector.yaml
|
|
71
|
-
- _ref: blocks/input/RatingSlider.yaml
|
|
72
|
-
# - _ref: blocks/input/S3UploadButton.yaml # TODO: Add with custom plugin
|
|
73
|
-
- _ref: blocks/input/Selector.yaml
|
|
74
|
-
- _ref: blocks/input/SliderColorSelector.yaml
|
|
75
|
-
- _ref: blocks/input/SwatchesColorSelector.yaml
|
|
76
|
-
- _ref: blocks/input/Switch.yaml
|
|
77
|
-
- _ref: blocks/input/TextArea.yaml
|
|
78
|
-
- _ref: blocks/input/TextInput.yaml
|
|
79
|
-
- _ref: blocks/input/TitleInput.yaml
|
|
80
|
-
- _ref: blocks/input/TwitterColorSelector.yaml
|
|
81
|
-
- _ref: blocks/input/WeekSelector.yaml
|
|
82
|
-
|
|
83
|
-
- _ref: blocks/display/Anchor.yaml
|
|
84
|
-
- _ref: blocks/display/Avatar.yaml
|
|
85
|
-
- _ref: blocks/display/Breadcrumb.yaml
|
|
86
|
-
- _ref: blocks/display/Button.yaml
|
|
87
|
-
- _ref: blocks/display/DangerousHtml.yaml
|
|
88
|
-
- _ref: blocks/display/DangerousMarkdown.yaml
|
|
89
|
-
- _ref: blocks/display/Divider.yaml
|
|
90
|
-
- _ref: blocks/display/EChart.yaml
|
|
91
|
-
- _ref: blocks/display/Html.yaml
|
|
92
|
-
- _ref: blocks/display/Icon.yaml
|
|
93
|
-
- _ref: blocks/display/Img.yaml
|
|
94
|
-
- _ref: blocks/display/Markdown.yaml
|
|
95
|
-
- _ref: blocks/display/MarkdownWithCode.yaml
|
|
96
|
-
- _ref: blocks/display/Menu.yaml
|
|
97
|
-
- _ref: blocks/display/Message.yaml
|
|
98
|
-
- _ref: blocks/display/MobileMenu.yaml
|
|
99
|
-
- _ref: blocks/display/Notification.yaml
|
|
100
|
-
- _ref: blocks/display/Paragraph.yaml
|
|
101
|
-
- _ref: blocks/display/Progress.yaml
|
|
102
|
-
# - _ref: blocks/display/Skeleton.yaml # TODO:
|
|
103
|
-
- _ref: blocks/display/Statistic.yaml
|
|
104
|
-
- _ref: blocks/display/Title.yaml
|
|
105
|
-
|
|
106
|
-
- _ref: blocks/container/Alert.yaml
|
|
107
|
-
- _ref: blocks/container/Affix.yaml
|
|
108
|
-
- _ref: blocks/container/Badge.yaml
|
|
109
|
-
- _ref: blocks/container/Box.yaml
|
|
110
|
-
- _ref: blocks/container/Card.yaml
|
|
111
|
-
- _ref: blocks/container/Collapse.yaml
|
|
112
|
-
- _ref: blocks/container/Comment.yaml
|
|
113
|
-
- _ref: blocks/container/ConfirmModal.yaml
|
|
114
|
-
- _ref: blocks/container/Descriptions.yaml
|
|
115
|
-
- _ref: blocks/container/Drawer.yaml
|
|
116
|
-
- _ref: blocks/container/Label.yaml
|
|
117
|
-
- _ref: blocks/container/Modal.yaml
|
|
118
|
-
- _ref: blocks/container/PageHCF.yaml
|
|
119
|
-
- _ref: blocks/container/PageHCSF.yaml
|
|
120
|
-
- _ref: blocks/container/PageHeaderMenu.yaml
|
|
121
|
-
- _ref: blocks/container/PageHSCF.yaml
|
|
122
|
-
- _ref: blocks/container/PageSHCF.yaml
|
|
123
|
-
- _ref: blocks/container/PageSiderMenu.yaml
|
|
124
|
-
- _ref: blocks/container/Result.yaml
|
|
125
|
-
- _ref: blocks/container/Span.yaml
|
|
126
|
-
# - _ref: blocks/container/Spin.yaml # TODO:
|
|
127
|
-
- _ref: blocks/container/Tabs.yaml
|
|
128
|
-
- _ref: blocks/container/Tooltip.yaml
|
|
129
|
-
|
|
130
|
-
- _ref: blocks/list/ControlledList.yaml
|
|
131
|
-
- _ref: blocks/list/List.yaml
|
|
132
|
-
# - _ref: blocks/list/TimelineList.yaml # TODO:
|
|
133
|
-
|
|
134
|
-
- _ref: connections/AmazonRedshift.yaml
|
|
135
|
-
- _ref: connections/AWSS3.yaml
|
|
136
|
-
- _ref: connections/AxiosHttp.yaml
|
|
137
|
-
- _ref: connections/Elasticsearch.yaml
|
|
138
|
-
- _ref: connections/GoogleSheet.yaml
|
|
139
|
-
- _ref: connections/Knex.yaml
|
|
140
|
-
- _ref: connections/MariaDB.yaml
|
|
141
|
-
- _ref: connections/MongoDB.yaml
|
|
142
|
-
- _ref: connections/MSSQL.yaml
|
|
143
|
-
- _ref: connections/MySQL.yaml
|
|
144
|
-
# - _ref: connections/OracleDB.yaml
|
|
145
|
-
- _ref: connections/PostgreSQL.yaml
|
|
146
|
-
- _ref: connections/Redis.yaml
|
|
147
|
-
- _ref: connections/SendGridMail.yaml
|
|
148
|
-
- _ref: connections/SQLite.yaml
|
|
149
|
-
- _ref: connections/Stripe.yaml
|
|
150
|
-
|
|
151
|
-
- _ref: actions/CallMethod.yaml
|
|
152
|
-
# - _ref: actions/JsAction.yaml
|
|
153
|
-
- _ref: actions/Link.yaml
|
|
154
|
-
- _ref: actions/Login.yaml
|
|
155
|
-
- _ref: actions/Logout.yaml
|
|
156
|
-
- _ref: actions/Message.yaml
|
|
157
|
-
- _ref: actions/Notification.yaml
|
|
158
|
-
- _ref: actions/Request.yaml
|
|
159
|
-
- _ref: actions/Reset.yaml
|
|
160
|
-
- _ref: actions/ResetValidation.yaml
|
|
161
|
-
- _ref: actions/ScrollTo.yaml
|
|
162
|
-
- _ref: actions/SetGlobal.yaml
|
|
163
|
-
- _ref: actions/SetState.yaml
|
|
164
|
-
- _ref: actions/Throw.yaml
|
|
165
|
-
- _ref: actions/Validate.yaml
|
|
166
|
-
- _ref: actions/Wait.yaml
|
|
167
|
-
|
|
168
|
-
- _ref: operators/_actions.yaml
|
|
169
|
-
- _ref: operators/_and.yaml
|
|
170
|
-
- _ref: operators/_args.yaml
|
|
171
|
-
- _ref: operators/_array.yaml
|
|
172
|
-
- _ref: operators/_base64.yaml
|
|
173
|
-
- _ref: operators/_change_case.yaml
|
|
174
|
-
- _ref: operators/_date.yaml
|
|
175
|
-
- _ref: operators/_diff.yaml
|
|
176
|
-
- _ref: operators/_divide.yaml
|
|
177
|
-
- _ref: operators/_eq.yaml
|
|
178
|
-
- _ref: operators/_event.yaml
|
|
179
|
-
- _ref: operators/_format.yaml
|
|
180
|
-
- _ref: operators/_function.yaml
|
|
181
|
-
- _ref: operators/_get.yaml
|
|
182
|
-
- _ref: operators/_global.yaml
|
|
183
|
-
- _ref: operators/_gt.yaml
|
|
184
|
-
- _ref: operators/_gte.yaml
|
|
185
|
-
- _ref: operators/_hash.yaml
|
|
186
|
-
- _ref: operators/_if.yaml
|
|
187
|
-
- _ref: operators/_if_none.yaml
|
|
188
|
-
- _ref: operators/_index.yaml
|
|
189
|
-
- _ref: operators/_input.yaml
|
|
190
|
-
# - _ref: operators/_js.yaml
|
|
191
|
-
- _ref: operators/_json.yaml
|
|
192
|
-
- _ref: operators/_list_contexts.yaml
|
|
193
|
-
- _ref: operators/_location.yaml
|
|
194
|
-
- _ref: operators/_log.yaml
|
|
195
|
-
- _ref: operators/_lt.yaml
|
|
196
|
-
- _ref: operators/_lte.yaml
|
|
197
|
-
- _ref: operators/_math.yaml
|
|
198
|
-
- _ref: operators/_media.yaml
|
|
199
|
-
- _ref: operators/_menu.yaml
|
|
200
|
-
- _ref: operators/_mql.yaml
|
|
201
|
-
- _ref: operators/_ne.yaml
|
|
202
|
-
- _ref: operators/_not.yaml
|
|
203
|
-
- _ref: operators/_number.yaml
|
|
204
|
-
- _ref: operators/_nunjucks.yaml
|
|
205
|
-
- _ref: operators/_object.yaml
|
|
206
|
-
- _ref: operators/_operator.yaml
|
|
207
|
-
- _ref: operators/_or.yaml
|
|
208
|
-
- _ref: operators/_product.yaml
|
|
209
|
-
- _ref: operators/_random.yaml
|
|
210
|
-
- _ref: operators/_ref.yaml
|
|
211
|
-
- _ref: operators/_regex.yaml
|
|
212
|
-
- _ref: operators/_request.yaml
|
|
213
|
-
- _ref: operators/_secret.yaml
|
|
214
|
-
- _ref: operators/_state.yaml
|
|
215
|
-
- _ref: operators/_string.yaml
|
|
216
|
-
- _ref: operators/_subtract.yaml
|
|
217
|
-
- _ref: operators/_sum.yaml
|
|
218
|
-
- _ref: operators/_switch.yaml
|
|
219
|
-
- _ref: operators/_type.yaml
|
|
220
|
-
- _ref: operators/_uri.yaml
|
|
221
|
-
- _ref: operators/_url_query.yaml
|
|
222
|
-
- _ref: operators/_user.yaml
|
|
223
|
-
- _ref: operators/_uuid.yaml
|
|
224
|
-
- _ref: operators/_var.yaml
|
|
225
|
-
- _ref: operators/_yaml.yaml
|
|
226
|
-
|
|
227
|
-
- _ref: 404.yaml
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/public/logo_example.png
DELETED
|
Binary file
|
|
Binary file
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
const csvMakeFn = async (context, filename, data, fields) => {
|
|
2
|
-
if (!Array.isArray(data) || typeof data[0] !== 'object') {
|
|
3
|
-
throw new Error('csvMake data takes an array of objects');
|
|
4
|
-
}
|
|
5
|
-
if (!fields) {
|
|
6
|
-
fields = Object.keys(data[0]);
|
|
7
|
-
}
|
|
8
|
-
const arrays = [fields];
|
|
9
|
-
data.forEach((obj) => arrays.push(fields.map((field) => obj[field])));
|
|
10
|
-
const csv = arrays
|
|
11
|
-
.map((row) =>
|
|
12
|
-
row
|
|
13
|
-
.map((cell) => (typeof cell === 'undefined' || cell === null ? '' : cell))
|
|
14
|
-
.map(String)
|
|
15
|
-
.map((v) => v.replaceAll('"', '""'))
|
|
16
|
-
.map((v) => `"${v}"`)
|
|
17
|
-
.join(',')
|
|
18
|
-
)
|
|
19
|
-
.join('\r\n');
|
|
20
|
-
const blob = new Blob([csv], { type: 'text/csv;charset=utf-8;' });
|
|
21
|
-
const url = URL.createObjectURL(blob);
|
|
22
|
-
const el = document.createElement('a');
|
|
23
|
-
el.href = url;
|
|
24
|
-
el.setAttribute('download', filename);
|
|
25
|
-
el.click();
|
|
26
|
-
};
|
|
27
|
-
window.lowdefy.registerJsAction('csvMake', csvMakeFn);
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright 2020-2021 Lowdefy, Inc
|
|
3
|
-
|
|
4
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
you may not use this file except in compliance with the License.
|
|
6
|
-
You may obtain a copy of the License at
|
|
7
|
-
|
|
8
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
|
|
10
|
-
Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
See the License for the specific language governing permissions and
|
|
14
|
-
limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
function filterDefaultValue(value, defaultValue) {
|
|
18
|
-
const isObject = (obj) => typeof obj === 'object' && obj !== null && !Array.isArray(obj);
|
|
19
|
-
const isEmptyObject = (obj) => isObject(obj) && Object.keys(obj).length === 0;
|
|
20
|
-
|
|
21
|
-
const getNestedValue = (obj, path) => {
|
|
22
|
-
const keys = [...path];
|
|
23
|
-
const key = keys.shift();
|
|
24
|
-
const value = obj[key];
|
|
25
|
-
if (keys.length > 0 && isObject(value)) return getNestedValue(value, keys);
|
|
26
|
-
return value;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
const filterObject = ({ obj, path }) => {
|
|
30
|
-
Object.keys(obj).forEach((key) => {
|
|
31
|
-
const propPath = path.concat([key]);
|
|
32
|
-
if (isObject(obj[key])) {
|
|
33
|
-
filterObject({ obj: obj[key], path: propPath });
|
|
34
|
-
}
|
|
35
|
-
const dv = getNestedValue(defaultValue, propPath);
|
|
36
|
-
if (obj[key] === dv) {
|
|
37
|
-
delete obj[key];
|
|
38
|
-
}
|
|
39
|
-
if (obj[key] === null || isEmptyObject(obj[key])) {
|
|
40
|
-
delete obj[key];
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
return obj;
|
|
44
|
-
};
|
|
45
|
-
return filterObject({ obj: value, path: [] });
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export default filterDefaultValue;
|
package/public/modules/index.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import importUmd from './importUmd.js';
|
|
2
|
-
import vfs from './vfs_fonts.js';
|
|
3
|
-
const pdfMake = await importUmd(`https://unpkg.com/pdfmake@0.1.71/build/pdfmake.min.js`);
|
|
4
|
-
const pdfMakeFn = async (context, filename, docDefinition, tableLayouts, fonts) => {
|
|
5
|
-
await pdfMake.createPdf(docDefinition, tableLayouts, fonts, vfs).download(filename);
|
|
6
|
-
};
|
|
7
|
-
window.lowdefy.registerJsAction('pdfMake', pdfMakeFn);
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright 2020-2021 Lowdefy, Inc
|
|
3
|
-
|
|
4
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
you may not use this file except in compliance with the License.
|
|
6
|
-
You may obtain a copy of the License at
|
|
7
|
-
|
|
8
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
|
|
10
|
-
Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
See the License for the specific language governing permissions and
|
|
14
|
-
limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
import filterDefaultValue from '../filterDefaultValue';
|
|
18
|
-
|
|
19
|
-
test('no default value', () => {
|
|
20
|
-
const value = { a: 1 };
|
|
21
|
-
expect(filterDefaultValue(value, {})).toEqual({ a: 1 });
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
test('remove null, empty objects and empty objects with all properties null or empty', () => {
|
|
25
|
-
const value = {
|
|
26
|
-
a: null,
|
|
27
|
-
b: {},
|
|
28
|
-
c: { d: null },
|
|
29
|
-
e: { f: {} },
|
|
30
|
-
g: { h: { i: { j: null, k: { l: null } } } },
|
|
31
|
-
m: { n: null, o: null, p: null },
|
|
32
|
-
};
|
|
33
|
-
expect(filterDefaultValue(value, {})).toEqual({});
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
test('remove a default value', () => {
|
|
37
|
-
const value = {
|
|
38
|
-
a: 1,
|
|
39
|
-
b: 2,
|
|
40
|
-
};
|
|
41
|
-
const defaultValue = {
|
|
42
|
-
a: 1,
|
|
43
|
-
b: 1,
|
|
44
|
-
};
|
|
45
|
-
expect(filterDefaultValue(value, defaultValue)).toEqual({ b: 2 });
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
test('remove a default value but keep arrays', () => {
|
|
49
|
-
const value = {
|
|
50
|
-
a: {
|
|
51
|
-
b: 1,
|
|
52
|
-
c: false,
|
|
53
|
-
d: true,
|
|
54
|
-
},
|
|
55
|
-
e: ['1', '2'],
|
|
56
|
-
g: {
|
|
57
|
-
h: 4,
|
|
58
|
-
},
|
|
59
|
-
};
|
|
60
|
-
const defaultValue = {
|
|
61
|
-
a: {
|
|
62
|
-
b: 1,
|
|
63
|
-
c: true,
|
|
64
|
-
},
|
|
65
|
-
e: ['1', '2'],
|
|
66
|
-
};
|
|
67
|
-
expect(filterDefaultValue(value, defaultValue)).toEqual({
|
|
68
|
-
a: {
|
|
69
|
-
c: false,
|
|
70
|
-
d: true,
|
|
71
|
-
},
|
|
72
|
-
e: ['1', '2'],
|
|
73
|
-
g: {
|
|
74
|
-
h: 4,
|
|
75
|
-
},
|
|
76
|
-
});
|
|
77
|
-
});
|
|
78
|
-
|
|
79
|
-
test('only recurse getNestedValue on objects', () => {
|
|
80
|
-
const value = {
|
|
81
|
-
a: {
|
|
82
|
-
b: { c: 1 },
|
|
83
|
-
},
|
|
84
|
-
};
|
|
85
|
-
const defaultValue = {
|
|
86
|
-
a: {
|
|
87
|
-
b: null,
|
|
88
|
-
},
|
|
89
|
-
};
|
|
90
|
-
expect(filterDefaultValue(value, defaultValue)).toEqual({ a: { b: { c: 1 } } });
|
|
91
|
-
});
|