@lowdefy/docs-content 0.0.0-experimental-20260928120643 → 6.1.0
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/README.md +0 -1
- package/content/actions/link.md +0 -17
- package/content/actions/login.md +5 -23
- package/content/actions/logout.md +5 -5
- package/content/actions/pdfmake.md +2 -2
- package/content/actions/setdarkmode.md +2 -2
- package/content/agents/agent-properties.md +2 -4
- package/content/agents/agentchat.md +6 -21
- package/content/agents/agentconversations.md +2 -2
- package/content/concepts/ai-agent-docs.md +101 -313
- package/content/concepts/cli.md +3 -34
- package/content/concepts/connections-and-requests.md +0 -402
- package/content/concepts/custom-html.md +0 -40
- package/content/concepts/custom-styling.md +5 -50
- package/content/concepts/events-and-actions.md +2 -64
- package/content/concepts/i18n.md +2 -7
- package/content/concepts/keyboard-shortcuts.md +2 -2
- package/content/concepts/layout-overview.md +1 -1
- package/content/concepts/logger.md +0 -81
- package/content/concepts/lowdefy-schema.md +1 -4
- package/content/concepts/menus.md +7 -7
- package/content/concepts/module-authoring.md +2 -2
- package/content/connections/anthropic.md +2 -162
- package/content/connections/awss3.md +0 -54
- package/content/connections/google.md +2 -162
- package/content/connections/mongodb.md +3 -121
- package/content/connections/openai-connection.md +2 -162
- package/content/container-blocks/affix.md +7 -47
- package/content/container-blocks/alert.md +24 -76
- package/content/container-blocks/badge.md +24 -100
- package/content/container-blocks/box.md +9 -9
- package/content/container-blocks/card.md +25 -80
- package/content/container-blocks/carousel.md +7 -60
- package/content/container-blocks/collapse.md +9 -87
- package/content/container-blocks/configprovider.md +13 -35
- package/content/container-blocks/confirmmodal.md +23 -69
- package/content/container-blocks/content.md +98 -62
- package/content/container-blocks/descriptions.md +4 -45
- package/content/container-blocks/drawer.md +28 -92
- package/content/container-blocks/dropdownmenu.md +31 -119
- package/content/container-blocks/flex.md +62 -40
- package/content/container-blocks/footer.md +11 -15
- package/content/container-blocks/googlemapsheatmap.md +1 -1
- package/content/container-blocks/googlemapsscript.md +2 -2
- package/content/container-blocks/header.md +36 -71
- package/content/container-blocks/label.md +7 -34
- package/content/container-blocks/layout.md +34 -52
- package/content/container-blocks/masonry.md +71 -17
- package/content/container-blocks/mobilemenu.md +88 -131
- package/content/container-blocks/modal.md +26 -114
- package/content/container-blocks/pageheadermenu.md +31 -81
- package/content/container-blocks/pagesidebarlayout.md +26 -169
- package/content/container-blocks/pagesidermenu.md +42 -95
- package/content/container-blocks/popover.md +31 -34
- package/content/container-blocks/result.md +21 -32
- package/content/container-blocks/sider.md +122 -85
- package/content/container-blocks/span.md +7 -7
- package/content/container-blocks/spinner.md +3 -3
- package/content/container-blocks/splitter.md +68 -150
- package/content/container-blocks/tabs.md +12 -64
- package/content/container-blocks/tooltip.md +46 -22
- package/content/container-blocks/watermark.md +4 -22
- package/content/controls/reject.md +2 -4
- package/content/controls/throw.md +0 -1
- package/content/controls/try.md +2 -3
- package/content/deployment/deployment-environments.md +6 -8
- package/content/deployment/docker.md +7 -22
- package/content/deployment/node-server.md +0 -4
- package/content/deployment/vercel.md +6 -13
- package/content/display-blocks/aggrid.md +11 -26
- package/content/display-blocks/anchor.md +15 -15
- package/content/display-blocks/avatar.md +37 -57
- package/content/display-blocks/breadcrumb.md +21 -70
- package/content/display-blocks/button.md +18 -92
- package/content/display-blocks/calendar.md +0 -12
- package/content/display-blocks/dangeroushtml.md +1 -1
- package/content/display-blocks/difflist.md +1 -1
- package/content/display-blocks/difftimeline.md +1 -1
- package/content/display-blocks/divider.md +3 -64
- package/content/display-blocks/dropdownbutton.md +28 -79
- package/content/display-blocks/echart.md +1 -35
- package/content/display-blocks/floatbutton.md +42 -129
- package/content/display-blocks/html.md +1 -61
- package/content/display-blocks/icon.md +67 -250
- package/content/display-blocks/menu.md +73 -145
- package/content/display-blocks/message.md +124 -38
- package/content/display-blocks/notification.md +222 -94
- package/content/display-blocks/paragraph.md +9 -59
- package/content/display-blocks/progress.md +17 -96
- package/content/display-blocks/qrcode.md +4 -19
- package/content/display-blocks/s3download.md +1 -1
- package/content/display-blocks/search.md +7 -17
- package/content/display-blocks/skeletonbutton.md +0 -1
- package/content/display-blocks/skeletoninput.md +0 -1
- package/content/display-blocks/statistic.md +17 -75
- package/content/display-blocks/steps.md +25 -58
- package/content/display-blocks/tag.md +17 -102
- package/content/display-blocks/title.md +11 -50
- package/content/display-blocks/tour.md +23 -33
- package/content/input-blocks/autocomplete.md +9 -81
- package/content/input-blocks/buttonselector.md +8 -45
- package/content/input-blocks/checkboxselector.md +7 -97
- package/content/input-blocks/checkboxswitch.md +3 -33
- package/content/input-blocks/colorselector.md +14 -63
- package/content/input-blocks/daterangeselector.md +45 -165
- package/content/input-blocks/dateselector.md +41 -139
- package/content/input-blocks/datetimeselector.md +49 -158
- package/content/input-blocks/inputgallery.md +3 -3
- package/content/input-blocks/monthselector.md +52 -120
- package/content/input-blocks/multipleselector.md +39 -150
- package/content/input-blocks/numberinput.md +12 -98
- package/content/input-blocks/pagination.md +14 -70
- package/content/input-blocks/paragraphinput.md +37 -51
- package/content/input-blocks/passwordinput.md +6 -60
- package/content/input-blocks/phonenumberinput.md +26 -59
- package/content/input-blocks/radioselector.md +7 -83
- package/content/input-blocks/ratingslider.md +26 -57
- package/content/input-blocks/s3uploadbutton.md +24 -24
- package/content/input-blocks/s3uploaddragger.md +3 -3
- package/content/input-blocks/s3uploadphoto.md +5 -5
- package/content/input-blocks/segmentedselector.md +32 -72
- package/content/input-blocks/selector.md +21 -109
- package/content/input-blocks/switch.md +17 -65
- package/content/input-blocks/textarea.md +3 -32
- package/content/input-blocks/textinput.md +28 -69
- package/content/input-blocks/tiptapmentioninput.md +1 -1
- package/content/input-blocks/titleinput.md +12 -39
- package/content/input-blocks/treeinput.md +25 -49
- package/content/input-blocks/treemultipleselector.md +10 -127
- package/content/input-blocks/treeselector.md +9 -97
- package/content/input-blocks/upload.md +15 -64
- package/content/input-blocks/uploaddragger.md +1 -17
- package/content/input-blocks/uploadphoto.md +1 -18
- package/content/input-blocks/weekselector.md +55 -120
- package/content/list-blocks/controlledlist.md +15 -24
- package/content/list-blocks/list.md +11 -11
- package/content/list-blocks/masonrylist.md +34 -7
- package/content/migration/upgrade-guide.md +0 -1
- package/content/operators/_app.md +1 -2
- package/content/operators/_error.md +1 -23
- package/content/operators/_get.md +6 -6
- package/content/operators/_operator.md +3 -17
- package/content/operators/_ref.md +0 -258
- package/content/operators/_type.md +3 -14
- package/content/operators/_user.md +3 -3
- package/content/other/introduction.md +1 -1
- package/content/plugins/plugins-dev.md +0 -66
- package/content/plugins/plugins-introduction.md +1 -27
- package/content/testing/e2e-configuration.md +1 -8
- package/content/testing/e2e-getting-started.md +1 -1
- package/content/testing/e2e-introduction.md +1 -1
- package/content/tutorial/tutorial-actions-operators.md +2 -2
- package/content/tutorial/tutorial-add-blocks.md +2 -2
- package/content/tutorial/tutorial-create-page.md +2 -48
- package/content/tutorial/tutorial-display-data-page.md +3 -3
- package/content/tutorial/tutorial-requests-sql.md +0 -153
- package/content/tutorial/tutorial-start.md +1 -66
- package/content/user-authentication/login-and-logout.md +8 -158
- package/content/user-authentication/users-introduction.md +0 -8
- package/index.json +2 -6065
- package/package.json +1 -7
- package/scripts/extractAgentDocs.js +4 -36
- package/content/actions/emailotpsend.md +0 -58
- package/content/actions/emailotpverify.md +0 -77
- package/content/actions/getlocalstorage.md +0 -41
- package/content/actions/magiclinkverify.md +0 -113
- package/content/actions/posthogalias.md +0 -29
- package/content/actions/posthogcapture.md +0 -49
- package/content/actions/posthogcapturepageleave.md +0 -38
- package/content/actions/posthogfeatureflag.md +0 -50
- package/content/actions/posthoggroup.md +0 -37
- package/content/actions/posthogidentify.md +0 -54
- package/content/actions/posthoginit.md +0 -66
- package/content/actions/posthogoptin.md +0 -29
- package/content/actions/posthogoptout.md +0 -29
- package/content/actions/posthogpageview.md +0 -37
- package/content/actions/posthogreloadfeatureflags.md +0 -47
- package/content/actions/posthogreset.md +0 -28
- package/content/actions/posthogsetpersonproperties.md +0 -36
- package/content/actions/removelocalstorage.md +0 -26
- package/content/actions/setlocalstorage.md +0 -32
- package/content/adapter-reference/mongodbauthadapter.md +0 -46
- package/content/agents/agents-introduction.md +0 -107
- package/content/callback-reference/auth0logoutcallback.md +0 -54
- package/content/concepts/blocks.md +0 -150
- package/content/concepts/dynamic-page-content.md +0 -304
- package/content/concepts/html-attributes.md +0 -285
- package/content/concepts/lowdefy-api.md +0 -1110
- package/content/concepts/notifications.md +0 -155
- package/content/concepts/page-and-app-state.md +0 -244
- package/content/concepts/theming.md +0 -582
- package/content/connections/aigateway.md +0 -368
- package/content/connections/axioshttp.md +0 -181
- package/content/controls/while.md +0 -46
- package/content/display-blocks/clickablehtml.md +0 -239
- package/content/display-blocks/eventlog.md +0 -363
- package/content/display-blocks/pollingtimer.md +0 -263
- package/content/input-blocks/captcha.md +0 -40
- package/content/input-blocks/placesautocomplete.md +0 -319
- package/content/input-blocks/tagmultipleselector.md +0 -114
- package/content/input-blocks/tagselector.md +0 -114
- package/content/migration/auth-upgrade.md +0 -327
- package/content/migration/v3-to-v4.md +0 -417
- package/content/migration/v6-to-v7.md +0 -222
- package/content/operators/_cron.md +0 -292
- package/content/other/mongodbadapter.md +0 -3
- package/content/plugins/plugins-icon-sets.md +0 -267
- package/content/plugins/posthog.md +0 -275
- package/content/provider-reference/auth-js-providers.md +0 -107
- package/content/provider-reference/openidconnectprovider.md +0 -44
- package/content/testing/config-tests.md +0 -278
- package/content/tutorial/tutorial-requests-api.md +0 -155
- package/content/user-authentication/auth-configuration.md +0 -266
- package/content/user-authentication/auth-steps.md +0 -138
- package/content/user-authentication/mcp-oauth.md +0 -292
- package/content/user-authentication/organizations.md +0 -221
- package/content/user-authentication/protected-pages-apis.md +0 -97
- package/content/user-authentication/roles.md +0 -49
- package/content/user-authentication/two-factor.md +0 -229
- package/content/user-authentication/user-object.md +0 -58
- package/content/websockets/websocket-publish.md +0 -108
- package/content/websockets/websocket-subscriptions.md +0 -100
- package/content/websockets/websockets-introduction.md +0 -97
- package/hazards.json +0 -44
- package/scripts/hashDocSources.js +0 -38
- package/scripts/recordSourceHashes.js +0 -88
|
@@ -73,53 +73,6 @@ Searchable multiple-select tree dropdown (tags or checkboxes). Driven by flat `d
|
|
|
73
73
|
_state: true
|
|
74
74
|
```
|
|
75
75
|
|
|
76
|
-
```yaml
|
|
77
|
-
- id: check_strictly_tree_multiple
|
|
78
|
-
type: TreeMultipleSelector
|
|
79
|
-
properties:
|
|
80
|
-
title: Folders (parents check on their own)
|
|
81
|
-
checkable: true
|
|
82
|
-
checkStrictly: true
|
|
83
|
-
treeDefaultExpandAll: true
|
|
84
|
-
primaryKey: id
|
|
85
|
-
parentKey: parentId
|
|
86
|
-
valueKey: id
|
|
87
|
-
html: "{{ item.label }}"
|
|
88
|
-
data:
|
|
89
|
-
- id: 1
|
|
90
|
-
label: Projects
|
|
91
|
-
- id: 2
|
|
92
|
-
label: Website
|
|
93
|
-
parentId: 1
|
|
94
|
-
- id: 3
|
|
95
|
-
label: Mobile App
|
|
96
|
-
parentId: 1
|
|
97
|
-
- id: 4
|
|
98
|
-
label: Archive
|
|
99
|
-
- id: max_count_tree_multiple
|
|
100
|
-
type: TreeMultipleSelector
|
|
101
|
-
properties:
|
|
102
|
-
title: Pick Up to 2 Teams
|
|
103
|
-
maxCount: 2
|
|
104
|
-
maxTagCount: responsive
|
|
105
|
-
treeDefaultExpandAll: true
|
|
106
|
-
primaryKey: id
|
|
107
|
-
parentKey: parentId
|
|
108
|
-
valueKey: id
|
|
109
|
-
html: "{{ item.label }}"
|
|
110
|
-
data:
|
|
111
|
-
- id: 1
|
|
112
|
-
label: Engineering
|
|
113
|
-
- id: 2
|
|
114
|
-
label: Frontend
|
|
115
|
-
parentId: 1
|
|
116
|
-
- id: 3
|
|
117
|
-
label: Backend
|
|
118
|
-
parentId: 1
|
|
119
|
-
- id: 4
|
|
120
|
-
label: Sales
|
|
121
|
-
```
|
|
122
|
-
|
|
123
76
|
| Property | Type | Default | Description |
|
|
124
77
|
| --- | --- | --- | --- |
|
|
125
78
|
| `data` | array | - | Alternative to `options`: an array of raw rows. Each row is rendered to a label with the `html` template, and `valueKey` selects which field becomes the value. Use this to drive a selector directly from data without building label/value pairs in your request. |
|
|
@@ -129,108 +82,43 @@ Searchable multiple-select tree dropdown (tags or checkboxes). Driven by flat `d
|
|
|
129
82
|
| `parentKey` | string | - | Tree selectors only: names each row’s parent id. Build a flat `data`/`options` array where each row has a `primaryKey` (its own id) and a `parentKey` whose value equals the parent row’s `primaryKey`. Rows whose `parentKey` is empty or points at no row become tree roots. Supports dotted paths. |
|
|
130
83
|
| `options` | array | `[]` | Options can either be an array of primitive values, on an array of label, value pairs - supports html. |
|
|
131
84
|
| `options.$.label` | string | - | Value label shown to user - supports html. |
|
|
132
|
-
| `options.$.value` |
|
|
85
|
+
| `options.$.value` | string \| number \| boolean | - | Option value. |
|
|
133
86
|
| `options.$.disabled` | boolean | `false` | Disable the option if true. |
|
|
134
87
|
| `options.$.style` | object | - | Css style to apply to the option. |
|
|
135
88
|
| `options.$.color` | string | - | Color applied to this option when it is selected. Falls back to the block-level color when not set. |
|
|
136
89
|
| `label` | object | - | Label properties. |
|
|
137
|
-
| `label.xs` | object | - | Label width on extra small screens (below 576px) when the label is not inline. |
|
|
138
|
-
| `label.xs.span` | number | - | Label width in columns, out of 24. The content takes the remaining columns. |
|
|
139
|
-
| `label.sm` | object | - | Label width on small screens (576px and up) when the label is not inline. Also applies below 576px unless `xs` is set. |
|
|
140
|
-
| `label.sm.span` | number | - | Label width in columns, out of 24. The content takes the remaining columns. |
|
|
141
|
-
| `label.md` | object | - | Label width on medium screens (768px and up) when the label is not inline. Overrides `span`. |
|
|
142
|
-
| `label.md.span` | number | - | Label width in columns, out of 24. The content takes the remaining columns. |
|
|
143
|
-
| `label.lg` | object | - | Label width on large screens (992px and up) when the label is not inline. |
|
|
144
|
-
| `label.lg.span` | number | - | Label width in columns, out of 24. The content takes the remaining columns. |
|
|
145
|
-
| `label.xl` | object | - | Label width on extra large screens (1200px and up) when the label is not inline. |
|
|
146
|
-
| `label.xl.span` | number | - | Label width in columns, out of 24. The content takes the remaining columns. |
|
|
147
|
-
| `label.xxl` | object | - | Label width on extra extra large screens (1600px and up) when the label is not inline. |
|
|
148
|
-
| `label.xxl.span` | number | - | Label width in columns, out of 24. The content takes the remaining columns. |
|
|
149
90
|
| `label.align` | string | `"left"` | Align label left or right when inline. Enum: `left`, `right`. |
|
|
150
91
|
| `label.colon` | boolean | `true` | Append label with colon. |
|
|
151
92
|
| `label.extra` | string | - | Extra text to display beneath the content - supports html. |
|
|
152
93
|
| `label.title` | string | - | Label title - supports html. |
|
|
153
94
|
| `label.tooltip` | string \| object | - | Help tooltip shown via an icon beside the label. A string sets the tooltip text (supports html), or an object to also customize the icon and color. Use the block's onTooltipClick event to respond to clicks on the icon. |
|
|
154
95
|
| `label.tooltip.title` | string | - | Tooltip text shown on hover - supports html. |
|
|
155
|
-
| `label.tooltip.icon` | string | `"
|
|
96
|
+
| `label.tooltip.icon` | string | `"AiOutlineQuestionCircle"` | Name of the icon to show beside the label. |
|
|
156
97
|
| `label.tooltip.color` | string | - | Color of the tooltip icon. |
|
|
157
|
-
| `label.span` | number | - | Label
|
|
98
|
+
| `label.span` | number | - | Label inline span. |
|
|
158
99
|
| `label.disabled` | boolean | `false` | Hide input label. |
|
|
159
100
|
| `label.hasFeedback` | boolean | `true` | Display feedback extra from validation, this does not disable validation. |
|
|
160
101
|
| `label.inline` | boolean | `false` | Render input and label inline. |
|
|
161
|
-
| `label.wrap` | boolean | `false` | Wrap long label text onto multiple lines when the label is inline. Labels above their input always wrap. |
|
|
162
102
|
| `disabled` | boolean | `false` | Disable the block if true. |
|
|
163
103
|
| `autoFocus` | boolean | `false` | Autofocus to the block on page load. |
|
|
164
104
|
| `allowClear` | boolean | `true` | Allow the user to clear their input. |
|
|
165
105
|
| `bordered` | boolean | `true` | Whether or not the input has a border style. Deprecated, use variant instead. |
|
|
166
|
-
| `variant` | string | - | Input visual variant.
|
|
106
|
+
| `variant` | string | - | Input visual variant. When set, takes precedence over bordered. Enum: `outlined`, `filled`, `borderless`. |
|
|
167
107
|
| `size` | string | `"default"` | Size of the block. Enum: `small`, `default`, `large`. |
|
|
168
108
|
| `title` | string | - | Title to describe the input component, if no title is specified the block id is displayed - supports html. |
|
|
169
|
-
| `listHeight` | number | `256` | Height of the dropdown list in pixels. |
|
|
170
|
-
| `placement` | string | `"bottomLeft"` | Position of the dropdown relative to the selector. Enum: `bottomLeft`, `bottomRight`, `topLeft`, `topRight`. |
|
|
171
|
-
| `popupMatchSelectWidth` | boolean \| number | `true` | Make the dropdown the same width as the selector. Set a number of pixels for a fixed dropdown width, or false to size the dropdown to its options (this also turns off virtual scrolling). |
|
|
172
|
-
| `prefix` | string | - | Text shown inside the selector before the selected value. |
|
|
173
|
-
| `prefixIcon` | string \| object | - | Icon name (a semantic name like `edit`, a Lucide icon name like `Pencil`, or a set-qualified name like `tabler:Pencil`) or properties of an Icon block to show inside the selector before the selected value. Ignored when `prefix` is set. |
|
|
174
|
-
| `prefixIcon.name` | string | - | Icon name: a semantic name like `edit`, a Lucide icon name like `Pencil`, or a set-qualified name like `tabler:Pencil`. |
|
|
175
|
-
| `prefixIcon.color` | string | - | Icon color. |
|
|
176
|
-
| `prefixIcon.size` | string \| number | - | Size of the icon. Defaults to `theme.icons.size`. |
|
|
177
|
-
| `prefixIcon.rotate` | number | - | Number of degrees to rotate the icon. |
|
|
178
|
-
| `prefixIcon.spin` | boolean | - | Continuously spin the icon with animation. |
|
|
179
|
-
| `prefixIcon.strokeWidth` | number | - | Stroke width of the icon lines, in pixels of the 24px icon grid. Defaults to `theme.icons.strokeWidth` (2). |
|
|
180
|
-
| `prefixIcon.nonScalingStroke` | boolean | - | Keep the stroke width constant at any icon size. Defaults to `theme.icons.nonScalingStroke`. |
|
|
181
|
-
| `prefixIcon.title` | string | - | Icon hover title for accessibility. An empty string marks the icon as decorative. |
|
|
182
|
-
| `prefixIcon.disableLoadingIcon` | boolean | - | While loading after the icon has been clicked, don't render the loading icon. |
|
|
183
|
-
| `virtual` | boolean | `true` | Only render the dropdown options in view. Set to false when options have very different heights, or so screen readers can reach every option. |
|
|
184
109
|
| `placeholder` | string | `"Select items"` | Placeholder text inside the block before user types input. |
|
|
185
110
|
| `showSearch` | boolean | `true` | Make the tree searchable. |
|
|
186
111
|
| `treeDefaultExpandAll` | boolean | `false` | Expand all tree nodes by default. |
|
|
187
|
-
| `treeExpandAction` | string | - | Expand or collapse a node by clicking or double-clicking its title. When not set, nodes only expand with the switcher. Enum: `click`, `doubleClick`. |
|
|
188
|
-
| `treeLine` | boolean | `false` | Show connecting lines between tree nodes. |
|
|
189
|
-
| `autoClearSearchValue` | boolean | `true` | Whether the current search will be cleared on selecting an item. |
|
|
190
112
|
| `checkable` | boolean | `false` | Show checkboxes on the tree nodes instead of selectable tags. |
|
|
191
|
-
| `checkStrictly` | boolean | `false` | When `checkable` is true, check nodes independently: checking a parent does not check its children, and checking every child does not check the parent. |
|
|
192
113
|
| `showCheckedStrategy` | string | `"SHOW_CHILD"` | How checked nodes are shown when `checkable` is true: SHOW_ALL (all checked), SHOW_PARENT (parent only), SHOW_CHILD (leaf children only). Enum: `SHOW_ALL`, `SHOW_PARENT`, `SHOW_CHILD`. |
|
|
193
|
-
| `
|
|
194
|
-
| `maxTagCount` | number \| string | - | Maximum number of selected tags shown before the rest collapse into a count. Set to 'responsive' to fit as many tags as the input width allows. |
|
|
114
|
+
| `maxTagCount` | number | - | Maximum number of selected tags shown before collapsing into a count. |
|
|
195
115
|
| `notFoundContent` | string | `"Not found"` | Content shown when no nodes match the search. |
|
|
196
|
-
| `suffixIcon` | string \| object | `"
|
|
197
|
-
| `
|
|
198
|
-
| `suffixIcon.color` | string | - | Icon color. |
|
|
199
|
-
| `suffixIcon.size` | string \| number | - | Size of the icon. Defaults to `theme.icons.size`. |
|
|
200
|
-
| `suffixIcon.rotate` | number | - | Number of degrees to rotate the icon. |
|
|
201
|
-
| `suffixIcon.spin` | boolean | - | Continuously spin the icon with animation. |
|
|
202
|
-
| `suffixIcon.strokeWidth` | number | - | Stroke width of the icon lines, in pixels of the 24px icon grid. Defaults to `theme.icons.strokeWidth` (2). |
|
|
203
|
-
| `suffixIcon.nonScalingStroke` | boolean | - | Keep the stroke width constant at any icon size. Defaults to `theme.icons.nonScalingStroke`. |
|
|
204
|
-
| `suffixIcon.title` | string | - | Icon hover title for accessibility. An empty string marks the icon as decorative. |
|
|
205
|
-
| `suffixIcon.disableLoadingIcon` | boolean | - | While loading after the icon has been clicked, don't render the loading icon. |
|
|
206
|
-
| `clearIcon` | string \| object | `"clear"` | Clear icon. |
|
|
207
|
-
| `clearIcon.name` | string | - | Icon name: a semantic name like `edit`, a Lucide icon name like `Pencil`, or a set-qualified name like `tabler:Pencil`. |
|
|
208
|
-
| `clearIcon.color` | string | - | Icon color. |
|
|
209
|
-
| `clearIcon.size` | string \| number | - | Size of the icon. Defaults to `theme.icons.size`. |
|
|
210
|
-
| `clearIcon.rotate` | number | - | Number of degrees to rotate the icon. |
|
|
211
|
-
| `clearIcon.spin` | boolean | - | Continuously spin the icon with animation. |
|
|
212
|
-
| `clearIcon.strokeWidth` | number | - | Stroke width of the icon lines, in pixels of the 24px icon grid. Defaults to `theme.icons.strokeWidth` (2). |
|
|
213
|
-
| `clearIcon.nonScalingStroke` | boolean | - | Keep the stroke width constant at any icon size. Defaults to `theme.icons.nonScalingStroke`. |
|
|
214
|
-
| `clearIcon.title` | string | - | Icon hover title for accessibility. An empty string marks the icon as decorative. |
|
|
215
|
-
| `clearIcon.disableLoadingIcon` | boolean | - | While loading after the icon has been clicked, don't render the loading icon. |
|
|
216
|
-
| `removeIcon` | string \| object | `"close"` | Icon name (a semantic name like `edit`, a Lucide icon name like `Pencil`, or a set-qualified name like `tabler:Pencil`) or properties of an Icon block to customize the remove icon on each selected tag. |
|
|
217
|
-
| `removeIcon.name` | string | - | Icon name: a semantic name like `edit`, a Lucide icon name like `Pencil`, or a set-qualified name like `tabler:Pencil`. |
|
|
218
|
-
| `removeIcon.color` | string | - | Icon color. |
|
|
219
|
-
| `removeIcon.size` | string \| number | - | Size of the icon. Defaults to `theme.icons.size`. |
|
|
220
|
-
| `removeIcon.rotate` | number | - | Number of degrees to rotate the icon. |
|
|
221
|
-
| `removeIcon.spin` | boolean | - | Continuously spin the icon with animation. |
|
|
222
|
-
| `removeIcon.strokeWidth` | number | - | Stroke width of the icon lines, in pixels of the 24px icon grid. Defaults to `theme.icons.strokeWidth` (2). |
|
|
223
|
-
| `removeIcon.nonScalingStroke` | boolean | - | Keep the stroke width constant at any icon size. Defaults to `theme.icons.nonScalingStroke`. |
|
|
224
|
-
| `removeIcon.title` | string | - | Icon hover title for accessibility. An empty string marks the icon as decorative. |
|
|
225
|
-
| `removeIcon.disableLoadingIcon` | boolean | - | While loading after the icon has been clicked, don't render the loading icon. |
|
|
116
|
+
| `suffixIcon` | string \| object | `"AiOutlineDown"` | Dropdown suffix icon. |
|
|
117
|
+
| `clearIcon` | string \| object | `"AiOutlineCloseCircle"` | Clear icon. |
|
|
226
118
|
| `theme` | object | - | Antd design token overrides for this block. See [antd design tokens](https://ant.design/components/overview#design-token). See [Ant Design tree-select tokens](https://ant.design/components/tree-select#design-token). |
|
|
227
|
-
| `theme.
|
|
228
|
-
| `theme.nodeHoverBg` | string |
|
|
229
|
-
| `theme.
|
|
230
|
-
| `theme.nodeSelectedBg` | string | `"#e6f4ff"` | Background color of the selected tree node. |
|
|
231
|
-
| `theme.nodeSelectedColor` | string | `"rgba(0, 0, 0, 0.88)"` | Text color of the selected tree node. |
|
|
232
|
-
| `theme.switcherSize` | number | `24` | Width of the expand/collapse switcher. |
|
|
233
|
-
| `theme.titleHeight` | number | `24` | Height of a tree node title. |
|
|
119
|
+
| `theme.nodeSelectedBg` | string | - | Background color of selected tree node. |
|
|
120
|
+
| `theme.nodeHoverBg` | string | - | Background color of hovered tree node. |
|
|
121
|
+
| `theme.titleHeight` | number | `24` | Height of tree node title. |
|
|
234
122
|
| `theme.clearBg` | string | - | Background color of clear button. |
|
|
235
123
|
| `theme.selectorBg` | string | - | Background color of the selector. |
|
|
236
124
|
| `theme.hoverBorderColor` | string | - | Border color when hovered. |
|
|
@@ -258,7 +146,6 @@ Searchable multiple-select tree dropdown (tags or checkboxes). Driven by flat `d
|
|
|
258
146
|
| `onChange` | `{ value }` | Trigger action when selection is changed. |
|
|
259
147
|
| `onFocus` | \- | Trigger action when the selector gains focus. |
|
|
260
148
|
| `onClear` | \- | Trigger action when the selector is cleared. |
|
|
261
|
-
| `onOpenChange` | `{ open }` | Trigger actions when the dropdown opens or closes. |
|
|
262
149
|
| `onSearch` | `{ value }` | Trigger action when the search input changes. |
|
|
263
150
|
| `onTooltipClick` | \- | Trigger actions when the tooltip icon is clicked. |
|
|
264
151
|
|
|
@@ -271,9 +158,5 @@ Searchable multiple-select tree dropdown (tags or checkboxes). Driven by flat `d
|
|
|
271
158
|
| `/feedback` | The TreeMultipleSelector validation feedback. |
|
|
272
159
|
| `/suffixIcon` | The suffix icon in the TreeMultipleSelector. |
|
|
273
160
|
| `/clearIcon` | The clear icon in the TreeMultipleSelector. |
|
|
274
|
-
| `/popup` | The TreeMultipleSelector dropdown popup. |
|
|
275
|
-
| `/prefixIcon` | The prefix icon in the TreeMultipleSelector. |
|
|
276
|
-
| `/removeIcon` | The remove icon on each selected tag in the TreeMultipleSelector. |
|
|
277
|
-
| `/selector` | The inner value/tag container of the TreeMultipleSelector (antd `content` semantic slot). |
|
|
278
161
|
|
|
279
162
|
No slots defined.
|
|
@@ -99,38 +99,6 @@ Searchable single-select tree dropdown. Driven by flat `data`/`options` with `pr
|
|
|
99
99
|
label: Operations
|
|
100
100
|
```
|
|
101
101
|
|
|
102
|
-
```yaml
|
|
103
|
-
- id: tree_line_selector
|
|
104
|
-
type: TreeSelector
|
|
105
|
-
properties:
|
|
106
|
-
title: Location
|
|
107
|
-
treeLine: true
|
|
108
|
-
treeExpandAction: click
|
|
109
|
-
primaryKey: id
|
|
110
|
-
parentKey: parentId
|
|
111
|
-
valueKey: id
|
|
112
|
-
html: "{{ item.label }}"
|
|
113
|
-
data:
|
|
114
|
-
- id: eu
|
|
115
|
-
label: Europe
|
|
116
|
-
selectable: false
|
|
117
|
-
- id: de
|
|
118
|
-
label: Germany
|
|
119
|
-
parentId: eu
|
|
120
|
-
- id: fr
|
|
121
|
-
label: France
|
|
122
|
-
parentId: eu
|
|
123
|
-
- id: am
|
|
124
|
-
label: Americas
|
|
125
|
-
selectable: false
|
|
126
|
-
- id: us
|
|
127
|
-
label: United States
|
|
128
|
-
parentId: am
|
|
129
|
-
- id: br
|
|
130
|
-
label: Brazil
|
|
131
|
-
parentId: am
|
|
132
|
-
```
|
|
133
|
-
|
|
134
102
|
| Property | Type | Default | Description |
|
|
135
103
|
| --- | --- | --- | --- |
|
|
136
104
|
| `data` | array | - | Alternative to `options`: an array of raw rows. Each row is rendered to a label with the `html` template, and `valueKey` selects which field becomes the value. Use this to drive a selector directly from data without building label/value pairs in your request. |
|
|
@@ -140,92 +108,40 @@ Searchable single-select tree dropdown. Driven by flat `data`/`options` with `pr
|
|
|
140
108
|
| `parentKey` | string | - | Tree selectors only: names each row’s parent id. Build a flat `data`/`options` array where each row has a `primaryKey` (its own id) and a `parentKey` whose value equals the parent row’s `primaryKey`. Rows whose `parentKey` is empty or points at no row become tree roots. Supports dotted paths. |
|
|
141
109
|
| `options` | array | `[]` | Options can either be an array of primitive values, on an array of label, value pairs - supports html. |
|
|
142
110
|
| `options.$.label` | string | - | Value label shown to user - supports html. |
|
|
143
|
-
| `options.$.value` |
|
|
111
|
+
| `options.$.value` | string \| number \| boolean | - | Option value. |
|
|
144
112
|
| `options.$.disabled` | boolean | `false` | Disable the option if true. |
|
|
145
113
|
| `options.$.style` | object | - | Css style to apply to the option. |
|
|
146
114
|
| `options.$.color` | string | - | Color applied to this option when it is selected. Falls back to the block-level color when not set. |
|
|
147
115
|
| `label` | object | - | Label properties. |
|
|
148
|
-
| `label.xs` | object | - | Label width on extra small screens (below 576px) when the label is not inline. |
|
|
149
|
-
| `label.xs.span` | number | - | Label width in columns, out of 24. The content takes the remaining columns. |
|
|
150
|
-
| `label.sm` | object | - | Label width on small screens (576px and up) when the label is not inline. Also applies below 576px unless `xs` is set. |
|
|
151
|
-
| `label.sm.span` | number | - | Label width in columns, out of 24. The content takes the remaining columns. |
|
|
152
|
-
| `label.md` | object | - | Label width on medium screens (768px and up) when the label is not inline. Overrides `span`. |
|
|
153
|
-
| `label.md.span` | number | - | Label width in columns, out of 24. The content takes the remaining columns. |
|
|
154
|
-
| `label.lg` | object | - | Label width on large screens (992px and up) when the label is not inline. |
|
|
155
|
-
| `label.lg.span` | number | - | Label width in columns, out of 24. The content takes the remaining columns. |
|
|
156
|
-
| `label.xl` | object | - | Label width on extra large screens (1200px and up) when the label is not inline. |
|
|
157
|
-
| `label.xl.span` | number | - | Label width in columns, out of 24. The content takes the remaining columns. |
|
|
158
|
-
| `label.xxl` | object | - | Label width on extra extra large screens (1600px and up) when the label is not inline. |
|
|
159
|
-
| `label.xxl.span` | number | - | Label width in columns, out of 24. The content takes the remaining columns. |
|
|
160
116
|
| `label.align` | string | `"left"` | Align label left or right when inline. Enum: `left`, `right`. |
|
|
161
117
|
| `label.colon` | boolean | `true` | Append label with colon. |
|
|
162
118
|
| `label.extra` | string | - | Extra text to display beneath the content - supports html. |
|
|
163
119
|
| `label.title` | string | - | Label title - supports html. |
|
|
164
120
|
| `label.tooltip` | string \| object | - | Help tooltip shown via an icon beside the label. A string sets the tooltip text (supports html), or an object to also customize the icon and color. Use the block's onTooltipClick event to respond to clicks on the icon. |
|
|
165
121
|
| `label.tooltip.title` | string | - | Tooltip text shown on hover - supports html. |
|
|
166
|
-
| `label.tooltip.icon` | string | `"
|
|
122
|
+
| `label.tooltip.icon` | string | `"AiOutlineQuestionCircle"` | Name of the icon to show beside the label. |
|
|
167
123
|
| `label.tooltip.color` | string | - | Color of the tooltip icon. |
|
|
168
|
-
| `label.span` | number | - | Label
|
|
124
|
+
| `label.span` | number | - | Label inline span. |
|
|
169
125
|
| `label.disabled` | boolean | `false` | Hide input label. |
|
|
170
126
|
| `label.hasFeedback` | boolean | `true` | Display feedback extra from validation, this does not disable validation. |
|
|
171
127
|
| `label.inline` | boolean | `false` | Render input and label inline. |
|
|
172
|
-
| `label.wrap` | boolean | `false` | Wrap long label text onto multiple lines when the label is inline. Labels above their input always wrap. |
|
|
173
128
|
| `disabled` | boolean | `false` | Disable the block if true. |
|
|
174
129
|
| `autoFocus` | boolean | `false` | Autofocus to the block on page load. |
|
|
175
130
|
| `allowClear` | boolean | `true` | Allow the user to clear their input. |
|
|
176
131
|
| `bordered` | boolean | `true` | Whether or not the input has a border style. Deprecated, use variant instead. |
|
|
177
|
-
| `variant` | string | - | Input visual variant.
|
|
132
|
+
| `variant` | string | - | Input visual variant. When set, takes precedence over bordered. Enum: `outlined`, `filled`, `borderless`. |
|
|
178
133
|
| `size` | string | `"default"` | Size of the block. Enum: `small`, `default`, `large`. |
|
|
179
134
|
| `title` | string | - | Title to describe the input component, if no title is specified the block id is displayed - supports html. |
|
|
180
|
-
| `listHeight` | number | `256` | Height of the dropdown list in pixels. |
|
|
181
|
-
| `placement` | string | `"bottomLeft"` | Position of the dropdown relative to the selector. Enum: `bottomLeft`, `bottomRight`, `topLeft`, `topRight`. |
|
|
182
|
-
| `popupMatchSelectWidth` | boolean \| number | `true` | Make the dropdown the same width as the selector. Set a number of pixels for a fixed dropdown width, or false to size the dropdown to its options (this also turns off virtual scrolling). |
|
|
183
|
-
| `prefix` | string | - | Text shown inside the selector before the selected value. |
|
|
184
|
-
| `prefixIcon` | string \| object | - | Icon name (a semantic name like `edit`, a Lucide icon name like `Pencil`, or a set-qualified name like `tabler:Pencil`) or properties of an Icon block to show inside the selector before the selected value. Ignored when `prefix` is set. |
|
|
185
|
-
| `prefixIcon.name` | string | - | Icon name: a semantic name like `edit`, a Lucide icon name like `Pencil`, or a set-qualified name like `tabler:Pencil`. |
|
|
186
|
-
| `prefixIcon.color` | string | - | Icon color. |
|
|
187
|
-
| `prefixIcon.size` | string \| number | - | Size of the icon. Defaults to `theme.icons.size`. |
|
|
188
|
-
| `prefixIcon.rotate` | number | - | Number of degrees to rotate the icon. |
|
|
189
|
-
| `prefixIcon.spin` | boolean | - | Continuously spin the icon with animation. |
|
|
190
|
-
| `prefixIcon.strokeWidth` | number | - | Stroke width of the icon lines, in pixels of the 24px icon grid. Defaults to `theme.icons.strokeWidth` (2). |
|
|
191
|
-
| `prefixIcon.nonScalingStroke` | boolean | - | Keep the stroke width constant at any icon size. Defaults to `theme.icons.nonScalingStroke`. |
|
|
192
|
-
| `prefixIcon.title` | string | - | Icon hover title for accessibility. An empty string marks the icon as decorative. |
|
|
193
|
-
| `prefixIcon.disableLoadingIcon` | boolean | - | While loading after the icon has been clicked, don't render the loading icon. |
|
|
194
|
-
| `virtual` | boolean | `true` | Only render the dropdown options in view. Set to false when options have very different heights, or so screen readers can reach every option. |
|
|
195
135
|
| `placeholder` | string | `"Select item"` | Placeholder text inside the block before user types input. |
|
|
196
136
|
| `showSearch` | boolean | `true` | Make the tree searchable. |
|
|
197
137
|
| `treeDefaultExpandAll` | boolean | `false` | Expand all tree nodes by default. |
|
|
198
|
-
| `treeExpandAction` | string | - | Expand or collapse a node by clicking or double-clicking its title. When not set, nodes only expand with the switcher. Enum: `click`, `doubleClick`. |
|
|
199
|
-
| `treeLine` | boolean | `false` | Show connecting lines between tree nodes. |
|
|
200
138
|
| `notFoundContent` | string | `"Not found"` | Content shown when no nodes match the search. |
|
|
201
|
-
| `suffixIcon` | string \| object | `"
|
|
202
|
-
| `
|
|
203
|
-
| `suffixIcon.color` | string | - | Icon color. |
|
|
204
|
-
| `suffixIcon.size` | string \| number | - | Size of the icon. Defaults to `theme.icons.size`. |
|
|
205
|
-
| `suffixIcon.rotate` | number | - | Number of degrees to rotate the icon. |
|
|
206
|
-
| `suffixIcon.spin` | boolean | - | Continuously spin the icon with animation. |
|
|
207
|
-
| `suffixIcon.strokeWidth` | number | - | Stroke width of the icon lines, in pixels of the 24px icon grid. Defaults to `theme.icons.strokeWidth` (2). |
|
|
208
|
-
| `suffixIcon.nonScalingStroke` | boolean | - | Keep the stroke width constant at any icon size. Defaults to `theme.icons.nonScalingStroke`. |
|
|
209
|
-
| `suffixIcon.title` | string | - | Icon hover title for accessibility. An empty string marks the icon as decorative. |
|
|
210
|
-
| `suffixIcon.disableLoadingIcon` | boolean | - | While loading after the icon has been clicked, don't render the loading icon. |
|
|
211
|
-
| `clearIcon` | string \| object | `"clear"` | Clear icon. |
|
|
212
|
-
| `clearIcon.name` | string | - | Icon name: a semantic name like `edit`, a Lucide icon name like `Pencil`, or a set-qualified name like `tabler:Pencil`. |
|
|
213
|
-
| `clearIcon.color` | string | - | Icon color. |
|
|
214
|
-
| `clearIcon.size` | string \| number | - | Size of the icon. Defaults to `theme.icons.size`. |
|
|
215
|
-
| `clearIcon.rotate` | number | - | Number of degrees to rotate the icon. |
|
|
216
|
-
| `clearIcon.spin` | boolean | - | Continuously spin the icon with animation. |
|
|
217
|
-
| `clearIcon.strokeWidth` | number | - | Stroke width of the icon lines, in pixels of the 24px icon grid. Defaults to `theme.icons.strokeWidth` (2). |
|
|
218
|
-
| `clearIcon.nonScalingStroke` | boolean | - | Keep the stroke width constant at any icon size. Defaults to `theme.icons.nonScalingStroke`. |
|
|
219
|
-
| `clearIcon.title` | string | - | Icon hover title for accessibility. An empty string marks the icon as decorative. |
|
|
220
|
-
| `clearIcon.disableLoadingIcon` | boolean | - | While loading after the icon has been clicked, don't render the loading icon. |
|
|
139
|
+
| `suffixIcon` | string \| object | `"AiOutlineDown"` | Dropdown suffix icon. |
|
|
140
|
+
| `clearIcon` | string \| object | `"AiOutlineCloseCircle"` | Clear icon. |
|
|
221
141
|
| `theme` | object | - | Antd design token overrides for this block. See [antd design tokens](https://ant.design/components/overview#design-token). See [Ant Design tree-select tokens](https://ant.design/components/tree-select#design-token). |
|
|
222
|
-
| `theme.
|
|
223
|
-
| `theme.nodeHoverBg` | string |
|
|
224
|
-
| `theme.
|
|
225
|
-
| `theme.nodeSelectedBg` | string | `"#e6f4ff"` | Background color of the selected tree node. |
|
|
226
|
-
| `theme.nodeSelectedColor` | string | `"rgba(0, 0, 0, 0.88)"` | Text color of the selected tree node. |
|
|
227
|
-
| `theme.switcherSize` | number | `24` | Width of the expand/collapse switcher. |
|
|
228
|
-
| `theme.titleHeight` | number | `24` | Height of a tree node title. |
|
|
142
|
+
| `theme.nodeSelectedBg` | string | - | Background color of selected tree node. |
|
|
143
|
+
| `theme.nodeHoverBg` | string | - | Background color of hovered tree node. |
|
|
144
|
+
| `theme.titleHeight` | number | `24` | Height of tree node title. |
|
|
229
145
|
| `theme.clearBg` | string | - | Background color of clear button. |
|
|
230
146
|
| `theme.selectorBg` | string | - | Background color of the selector. |
|
|
231
147
|
| `theme.hoverBorderColor` | string | - | Border color when hovered. |
|
|
@@ -253,7 +169,6 @@ Searchable single-select tree dropdown. Driven by flat `data`/`options` with `pr
|
|
|
253
169
|
| `onChange` | `{ value }` | Trigger action when selection is changed. |
|
|
254
170
|
| `onFocus` | \- | Trigger action when the selector gains focus. |
|
|
255
171
|
| `onClear` | \- | Trigger action when the selector is cleared. |
|
|
256
|
-
| `onOpenChange` | `{ open }` | Trigger actions when the dropdown opens or closes. |
|
|
257
172
|
| `onSearch` | `{ value }` | Trigger action when the search input changes. |
|
|
258
173
|
| `onTooltipClick` | \- | Trigger actions when the tooltip icon is clicked. |
|
|
259
174
|
|
|
@@ -266,8 +181,5 @@ Searchable single-select tree dropdown. Driven by flat `data`/`options` with `pr
|
|
|
266
181
|
| `/feedback` | The TreeSelector validation feedback. |
|
|
267
182
|
| `/suffixIcon` | The suffix icon in the TreeSelector. |
|
|
268
183
|
| `/clearIcon` | The clear icon in the TreeSelector. |
|
|
269
|
-
| `/popup` | The TreeSelector dropdown popup. |
|
|
270
|
-
| `/prefixIcon` | The prefix icon in the TreeSelector. |
|
|
271
|
-
| `/selector` | The inner value/tag container of the TreeSelector (antd `content` semantic slot). |
|
|
272
184
|
|
|
273
185
|
No slots defined.
|
|
@@ -14,7 +14,7 @@ Upload files to any storage provider with a button trigger — AWS S3 (and S3-co
|
|
|
14
14
|
properties:
|
|
15
15
|
uploadPolicyRequestId: upload_policy_request
|
|
16
16
|
button:
|
|
17
|
-
icon:
|
|
17
|
+
icon: UploadOutlined
|
|
18
18
|
title: Choose File
|
|
19
19
|
type: default
|
|
20
20
|
- id: basic_custom_icon
|
|
@@ -22,18 +22,9 @@ Upload files to any storage provider with a button trigger — AWS S3 (and S3-co
|
|
|
22
22
|
properties:
|
|
23
23
|
uploadPolicyRequestId: upload_policy_request
|
|
24
24
|
button:
|
|
25
|
-
icon:
|
|
25
|
+
icon: AiOutlineCloudUpload
|
|
26
26
|
title: Upload to Cloud
|
|
27
27
|
type: default
|
|
28
|
-
- id: basic_icon_end
|
|
29
|
-
type: Upload
|
|
30
|
-
properties:
|
|
31
|
-
uploadPolicyRequestId: upload_policy_request
|
|
32
|
-
button:
|
|
33
|
-
icon: upload
|
|
34
|
-
iconPlacement: end
|
|
35
|
-
title: Attach
|
|
36
|
-
type: default
|
|
37
28
|
```
|
|
38
29
|
|
|
39
30
|
```yaml
|
|
@@ -43,7 +34,7 @@ Upload files to any storage provider with a button trigger — AWS S3 (and S3-co
|
|
|
43
34
|
uploadPolicyRequestId: upload_policy_request
|
|
44
35
|
accept: image/*
|
|
45
36
|
button:
|
|
46
|
-
icon:
|
|
37
|
+
icon: AiOutlinePicture
|
|
47
38
|
title: Upload Image
|
|
48
39
|
type: default
|
|
49
40
|
- id: accept_pdf
|
|
@@ -52,7 +43,7 @@ Upload files to any storage provider with a button trigger — AWS S3 (and S3-co
|
|
|
52
43
|
uploadPolicyRequestId: upload_policy_request
|
|
53
44
|
accept: .pdf
|
|
54
45
|
button:
|
|
55
|
-
icon:
|
|
46
|
+
icon: AiOutlineFilePdf
|
|
56
47
|
title: Upload PDF
|
|
57
48
|
type: default
|
|
58
49
|
```
|
|
@@ -64,7 +55,7 @@ Upload files to any storage provider with a button trigger — AWS S3 (and S3-co
|
|
|
64
55
|
uploadPolicyRequestId: upload_policy_request
|
|
65
56
|
singleFile: true
|
|
66
57
|
button:
|
|
67
|
-
icon:
|
|
58
|
+
icon: UploadOutlined
|
|
68
59
|
title: Upload Single File
|
|
69
60
|
type: default
|
|
70
61
|
- id: limit_max_three
|
|
@@ -73,7 +64,7 @@ Upload files to any storage provider with a button trigger — AWS S3 (and S3-co
|
|
|
73
64
|
uploadPolicyRequestId: upload_policy_request
|
|
74
65
|
maxCount: 3
|
|
75
66
|
button:
|
|
76
|
-
icon:
|
|
67
|
+
icon: UploadOutlined
|
|
77
68
|
title: Upload (Max 3)
|
|
78
69
|
type: default
|
|
79
70
|
```
|
|
@@ -85,37 +76,11 @@ Upload files to any storage provider with a button trigger — AWS S3 (and S3-co
|
|
|
85
76
|
emitFileContent: true
|
|
86
77
|
singleFile: true
|
|
87
78
|
button:
|
|
88
|
-
icon:
|
|
79
|
+
icon: UploadOutlined
|
|
89
80
|
title: Attach File
|
|
90
81
|
type: default
|
|
91
82
|
```
|
|
92
83
|
|
|
93
|
-
```yaml
|
|
94
|
-
- id: list_picture
|
|
95
|
-
type: Upload
|
|
96
|
-
properties:
|
|
97
|
-
uploadPolicyRequestId: upload_policy_request
|
|
98
|
-
accept: image/*
|
|
99
|
-
listType: picture
|
|
100
|
-
showUploadList:
|
|
101
|
-
showRemoveIcon: true
|
|
102
|
-
showDownloadIcon: false
|
|
103
|
-
button:
|
|
104
|
-
icon: image
|
|
105
|
-
title: Upload Images
|
|
106
|
-
type: default
|
|
107
|
-
- id: upload_directory
|
|
108
|
-
type: Upload
|
|
109
|
-
properties:
|
|
110
|
-
uploadPolicyRequestId: upload_policy_request
|
|
111
|
-
directory: true
|
|
112
|
-
pastable: true
|
|
113
|
-
button:
|
|
114
|
-
icon: folder
|
|
115
|
-
title: Upload Folder
|
|
116
|
-
type: default
|
|
117
|
-
```
|
|
118
|
-
|
|
119
84
|
```yaml
|
|
120
85
|
- id: disabled_default
|
|
121
86
|
type: Upload
|
|
@@ -126,48 +91,34 @@ Upload files to any storage provider with a button trigger — AWS S3 (and S3-co
|
|
|
126
91
|
|
|
127
92
|
```yaml
|
|
128
93
|
- id: label_default
|
|
129
|
-
type:
|
|
94
|
+
type: Upload
|
|
130
95
|
properties:
|
|
131
96
|
title: Upload Attachment
|
|
132
|
-
|
|
133
|
-
- id: label_default_upload
|
|
134
|
-
type: Upload
|
|
135
|
-
properties:
|
|
136
|
-
uploadPolicyRequestId: upload_policy_request
|
|
97
|
+
uploadPolicyRequestId: upload_policy_request
|
|
137
98
|
- id: label_extra
|
|
138
|
-
type:
|
|
99
|
+
type: Upload
|
|
139
100
|
properties:
|
|
140
101
|
title: Upload Document
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
type: Upload
|
|
145
|
-
properties:
|
|
146
|
-
uploadPolicyRequestId: upload_policy_request
|
|
102
|
+
uploadPolicyRequestId: upload_policy_request
|
|
103
|
+
label:
|
|
104
|
+
extra: Accepted formats are PDF, DOCX, and PNG. Max size 10MB.
|
|
147
105
|
```
|
|
148
106
|
|
|
149
107
|
| Property | Type | Default | Description |
|
|
150
108
|
| --- | --- | --- | --- |
|
|
151
109
|
| `accept` | string | - | File types accepted by the input. See html file type input accept property at https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept. |
|
|
152
|
-
| `button` | object | `{"icon":"
|
|
110
|
+
| `button` | object | `{"icon":"UploadOutlined","title":"Upload","type":"default"}` | Button block properties. See [Button](/Button) for all properties. |
|
|
153
111
|
| `button.title` | string | - | Button title text. |
|
|
154
112
|
| `button.icon` | string \| object | - | Button icon name or Icon block properties. |
|
|
155
|
-
| `button.iconPlacement` | string | `"start"` | Place the icon before (`start`) or after (`end`) the button title. Enum: `start`, `end`. |
|
|
156
113
|
| `button.type` | string | `"default"` | Button type. Enum: `default`, `primary`, `dashed`, `text`, `link`. |
|
|
157
114
|
| `button.danger` | boolean | `false` | Set button style to danger. |
|
|
158
115
|
| `button.disabled` | boolean | `false` | Disable the button. |
|
|
159
116
|
| `button.size` | string | `"default"` | Button size. Enum: `small`, `default`, `large`. |
|
|
160
|
-
| `directory` | boolean | `false` | Select a whole folder instead of files. Every file in the folder is uploaded. |
|
|
161
|
-
| `listType` | string | `"text"` | Style of the file list. `picture` shows a thumbnail for each image. Enum: `text`, `picture`. |
|
|
162
|
-
| `pastable` | boolean | `false` | Upload files pasted anywhere on the page. |
|
|
163
117
|
| `disabled` | boolean | - | Disable the file input. |
|
|
164
118
|
| `emitFileContent` | boolean | `false` | Instead of uploading, read the file and emit { name, size, type, content } — content a base64 string — as the block value and onChange event. Use with a CallAPI action to store the file with a server-side write request (e.g. AwsS3PutObject). Replaces uploadPolicyRequestId. |
|
|
165
119
|
| `maxCount` | number | - | Maximum number of files that can be uploaded. |
|
|
166
120
|
| `uploadPolicyRequestId` | string | - | Id of an upload-policy request (e.g. AwsS3PresignedPostPolicy, GcsSignedPostPolicy, AzureBlobUploadSas) that defines to which storage bucket and how the file should be uploaded. Required unless emitFileContent is true. |
|
|
167
|
-
| `showUploadList` | boolean
|
|
168
|
-
| `showUploadList.showPreviewIcon` | boolean | `true` | Show the preview action on picture list items. |
|
|
169
|
-
| `showUploadList.showRemoveIcon` | boolean | `true` | Show the remove action, so files can be removed from the list. |
|
|
170
|
-
| `showUploadList.showDownloadIcon` | boolean | `false` | Show the download action. |
|
|
121
|
+
| `showUploadList` | boolean | `true` | Whether to show default upload list. |
|
|
171
122
|
| `singleFile` | boolean | `false` | Only allow a single file to be uploaded. Only one file can be selected in the prompt. |
|
|
172
123
|
| `theme` | object | - | Antd design token overrides for this block. See [antd design tokens](https://ant.design/components/upload#design-token). See [Ant Design upload tokens](https://ant.design/components/upload#design-token). |
|
|
173
124
|
| `theme.actionsColor` | string | - | Color of action icons (download, preview, remove). |
|
|
@@ -37,16 +37,6 @@ Upload files to any storage provider with a drag-and-drop (and paste) area — A
|
|
|
37
37
|
singleFile: true
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
-
```yaml
|
|
41
|
-
- id: dragger_drop_only
|
|
42
|
-
type: UploadDragger
|
|
43
|
-
properties:
|
|
44
|
-
uploadPolicyRequestId: upload_policy_request
|
|
45
|
-
title: Drop files here, or paste them with Ctrl+V.
|
|
46
|
-
openFileDialogOnClick: false
|
|
47
|
-
listType: picture
|
|
48
|
-
```
|
|
49
|
-
|
|
50
40
|
```yaml
|
|
51
41
|
- id: disabled_default
|
|
52
42
|
type: UploadDragger
|
|
@@ -60,17 +50,11 @@ Upload files to any storage provider with a drag-and-drop (and paste) area — A
|
|
|
60
50
|
| `height` | number \| string | - | Height of the dragger area. A number is applied in pixels; a string is passed through as a CSS length (e.g. "300px", "50vh"). Defaults to the antd `controlHeight` theme token. If `style.element.height` is set, it overrides this. |
|
|
61
51
|
| `title` | string | - | Title of the file input to be displayed on the draggable area. |
|
|
62
52
|
| `accept` | string | - | File types accepted by the input. See html file type input accept property at https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept. |
|
|
63
|
-
| `directory` | boolean | `false` | Select a whole folder instead of files. Every file in the folder is uploaded. |
|
|
64
|
-
| `listType` | string | `"text"` | Style of the file list. `picture` shows a thumbnail for each image. Enum: `text`, `picture`. |
|
|
65
|
-
| `openFileDialogOnClick` | boolean | `true` | Whether clicking the drop area opens the file dialog. Set to false for a drop or paste only area. |
|
|
66
53
|
| `disabled` | boolean | - | Disable the file input. |
|
|
67
54
|
| `emitFileContent` | boolean | `false` | Instead of uploading, read the file and emit { name, size, type, content } — content a base64 string — as the block value and onChange event. Use with a CallAPI action to store the file with a server-side write request (e.g. AwsS3PutObject). Replaces uploadPolicyRequestId. |
|
|
68
55
|
| `maxCount` | number | - | Maximum number of files that can be uploaded. |
|
|
69
56
|
| `uploadPolicyRequestId` | string | - | Id of an upload-policy request (e.g. AwsS3PresignedPostPolicy, GcsSignedPostPolicy, AzureBlobUploadSas) that defines to which storage bucket and how the file should be uploaded. Required unless emitFileContent is true. |
|
|
70
|
-
| `showUploadList` | boolean
|
|
71
|
-
| `showUploadList.showPreviewIcon` | boolean | `true` | Show the preview action on picture list items. |
|
|
72
|
-
| `showUploadList.showRemoveIcon` | boolean | `true` | Show the remove action, so files can be removed from the list. |
|
|
73
|
-
| `showUploadList.showDownloadIcon` | boolean | `false` | Show the download action. |
|
|
57
|
+
| `showUploadList` | boolean | `true` | Whether to show default upload list. |
|
|
74
58
|
| `singleFile` | boolean | `false` | Only allow a single file to be uploaded. Only one file can be selected in the prompt. |
|
|
75
59
|
| `theme` | object | - | Antd design token overrides for this block. See [antd design tokens](https://ant.design/components/upload#design-token). See [Ant Design upload tokens](https://ant.design/components/upload#design-token). |
|
|
76
60
|
| `theme.actionsColor` | string | - | Color of action icons (download, preview, remove). |
|
|
@@ -37,17 +37,6 @@ Upload images to any storage provider with a picture-card interface — AWS S3 (
|
|
|
37
37
|
singleFile: true
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
-
```yaml
|
|
41
|
-
- id: photo_capture
|
|
42
|
-
type: UploadPhoto
|
|
43
|
-
properties:
|
|
44
|
-
uploadPolicyRequestId: upload_policy_request
|
|
45
|
-
title: Take photo
|
|
46
|
-
capture: environment
|
|
47
|
-
listType: picture-circle
|
|
48
|
-
singleFile: true
|
|
49
|
-
```
|
|
50
|
-
|
|
51
40
|
```yaml
|
|
52
41
|
- id: disabled_default
|
|
53
42
|
type: UploadPhoto
|
|
@@ -59,17 +48,11 @@ Upload images to any storage provider with a picture-card interface — AWS S3 (
|
|
|
59
48
|
| Property | Type | Default | Description |
|
|
60
49
|
| --- | --- | --- | --- |
|
|
61
50
|
| `title` | string | `"Upload image"` | Title of the file input to be displayed instead of 'Upload image'. |
|
|
62
|
-
| `pastable` | boolean | `false` | Upload files pasted anywhere on the page. |
|
|
63
|
-
| `capture` | string | - | On mobile devices, open the camera directly: `user` for the front camera, `environment` for the back camera. Enum: `user`, `environment`. |
|
|
64
|
-
| `listType` | string | `"picture-card"` | Shape of the photo tiles. Enum: `picture-card`, `picture-circle`. |
|
|
65
51
|
| `disabled` | boolean | - | Disable the file input. |
|
|
66
52
|
| `emitFileContent` | boolean | `false` | Instead of uploading, read the file and emit { name, size, type, content } — content a base64 string — as the block value and onChange event. Use with a CallAPI action to store the file with a server-side write request (e.g. AwsS3PutObject). Replaces uploadPolicyRequestId. |
|
|
67
53
|
| `maxCount` | number | - | Maximum number of files that can be uploaded. |
|
|
68
54
|
| `uploadPolicyRequestId` | string | - | Id of an upload-policy request (e.g. AwsS3PresignedPostPolicy, GcsSignedPostPolicy, AzureBlobUploadSas) that defines to which storage bucket and how the file should be uploaded. Required unless emitFileContent is true. |
|
|
69
|
-
| `showUploadList` | boolean
|
|
70
|
-
| `showUploadList.showPreviewIcon` | boolean | `true` | Show the preview action on picture list items. |
|
|
71
|
-
| `showUploadList.showRemoveIcon` | boolean | `true` | Show the remove action, so files can be removed from the list. |
|
|
72
|
-
| `showUploadList.showDownloadIcon` | boolean | `false` | Show the download action. |
|
|
55
|
+
| `showUploadList` | boolean | `true` | Whether to show default upload list. |
|
|
73
56
|
| `singleFile` | boolean | `false` | Only allow a single file to be uploaded. Only one file can be selected in the prompt. |
|
|
74
57
|
| `theme` | object | - | Antd design token overrides for this block. See [antd design tokens](https://ant.design/components/upload#design-token). See [Ant Design upload tokens](https://ant.design/components/upload#design-token). |
|
|
75
58
|
| `theme.actionsColor` | string | - | Color of action icons (download, preview, remove). |
|