@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
|
@@ -703,92 +703,16 @@ Checkbox group for selecting multiple options.
|
|
|
703
703
|
valueKey: id
|
|
704
704
|
```
|
|
705
705
|
|
|
706
|
-
```yaml
|
|
707
|
-
- id: columns_two
|
|
708
|
-
type: CheckboxSelector
|
|
709
|
-
properties:
|
|
710
|
-
title: Two columns
|
|
711
|
-
columns: 2
|
|
712
|
-
options:
|
|
713
|
-
- Weekday mornings
|
|
714
|
-
- Weekday afternoons
|
|
715
|
-
- Weekday evenings
|
|
716
|
-
- Weekend mornings
|
|
717
|
-
- Weekend afternoons
|
|
718
|
-
- Weekend evenings
|
|
719
|
-
- id: columns_four
|
|
720
|
-
type: CheckboxSelector
|
|
721
|
-
properties:
|
|
722
|
-
title: Four columns
|
|
723
|
-
columns: 4
|
|
724
|
-
options:
|
|
725
|
-
- January
|
|
726
|
-
- February
|
|
727
|
-
- March
|
|
728
|
-
- April
|
|
729
|
-
- May
|
|
730
|
-
- June
|
|
731
|
-
- July
|
|
732
|
-
- August
|
|
733
|
-
- id: columns_responsive
|
|
734
|
-
type: CheckboxSelector
|
|
735
|
-
properties:
|
|
736
|
-
title: One column below md, three from md up
|
|
737
|
-
columns:
|
|
738
|
-
xs: 1
|
|
739
|
-
md: 3
|
|
740
|
-
options:
|
|
741
|
-
- Email
|
|
742
|
-
- SMS
|
|
743
|
-
- Push notification
|
|
744
|
-
- Webhook
|
|
745
|
-
- In-app message
|
|
746
|
-
- Weekly digest
|
|
747
|
-
- id: columns_gutter
|
|
748
|
-
type: CheckboxSelector
|
|
749
|
-
properties:
|
|
750
|
-
title: Wider gutter
|
|
751
|
-
columns: 2
|
|
752
|
-
gutter:
|
|
753
|
-
- 24
|
|
754
|
-
- 12
|
|
755
|
-
options:
|
|
756
|
-
- Read
|
|
757
|
-
- Write
|
|
758
|
-
- Delete
|
|
759
|
-
- Administer
|
|
760
|
-
- id: columns_per_option_color
|
|
761
|
-
type: CheckboxSelector
|
|
762
|
-
properties:
|
|
763
|
-
title: Coloured options in a grid
|
|
764
|
-
columns: 2
|
|
765
|
-
options:
|
|
766
|
-
- label: Low
|
|
767
|
-
value: low
|
|
768
|
-
color: "#16a34a"
|
|
769
|
-
- label: Medium
|
|
770
|
-
value: medium
|
|
771
|
-
color: "#d97706"
|
|
772
|
-
- label: High
|
|
773
|
-
value: high
|
|
774
|
-
color: "#dc2626"
|
|
775
|
-
- label: Critical
|
|
776
|
-
value: critical
|
|
777
|
-
color: "#7e22ce"
|
|
778
|
-
```
|
|
779
|
-
|
|
780
706
|
| Property | Type | Default | Description |
|
|
781
707
|
| --- | --- | --- | --- |
|
|
782
|
-
| `align` | string | `"start"` | Align options.
|
|
708
|
+
| `align` | string | `"start"` | Align options. Enum: `start`, `end`, `center`, `baseline`. |
|
|
783
709
|
| `color` | string | - | Selected checkbox color. |
|
|
784
|
-
| `columns` | integer \| object | - | Number of columns to lay the options out in, or a responsive breakpoint object. Use a count that divides 24 evenly. |
|
|
785
710
|
| `disabled` | boolean | `false` | Disable the block if true. |
|
|
786
|
-
| `direction` | string | `"horizontal"` | List options horizontally or vertical.
|
|
787
|
-
| `
|
|
788
|
-
| `wrap` | boolean | `true` | Specifies wrapping of options. Applies when 'direction' is 'horizontal'. Ignored when 'columns' is set. |
|
|
711
|
+
| `direction` | string | `"horizontal"` | List options horizontally or vertical. Enum: `horizontal`, `vertical`. |
|
|
712
|
+
| `wrap` | boolean | `true` | Specifies wrapping of options. Applies when 'direction' is 'horizontal'. |
|
|
789
713
|
| `options` | array | `[]` | Options can either be an array of primitive values, on an array of label, value pairs - supports html. |
|
|
790
714
|
| `options.$.label` | string | - | Value label shown to user - supports html. |
|
|
791
|
-
| `options.$.value` |
|
|
715
|
+
| `options.$.value` | string \| number \| boolean | - | Option value. |
|
|
792
716
|
| `options.$.disabled` | boolean | `false` | Disable the option if true. |
|
|
793
717
|
| `options.$.style` | object | - | Css style to apply to the option. |
|
|
794
718
|
| `options.$.color` | string | - | Color applied to this option when it is selected. Falls back to the block-level color when not set. |
|
|
@@ -797,31 +721,18 @@ Checkbox group for selecting multiple options.
|
|
|
797
721
|
| `valueKey` | string | - | Field used as the selected value. With `options` it names the value field (defaults to "value"). With `data` it names the field stored when an option is selected; omit it to store the whole row. Supports dotted paths (e.g. "user.id"). |
|
|
798
722
|
| `primaryKey` | string | - | Field used to match the current value (e.g. set with SetState) back to an option for highlighting. Defaults to `valueKey`. Set this when the stored value is the whole row but a single field (e.g. "id") uniquely identifies it. In the tree selectors it also serves as each node’s id, referenced by `parentKey`. Supports dotted paths. |
|
|
799
723
|
| `label` | object | - | Label properties. |
|
|
800
|
-
| `label.xs` | object | - | Label width on extra small screens (below 576px) when the label is not inline. |
|
|
801
|
-
| `label.xs.span` | number | - | Label width in columns, out of 24. The content takes the remaining columns. |
|
|
802
|
-
| `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. |
|
|
803
|
-
| `label.sm.span` | number | - | Label width in columns, out of 24. The content takes the remaining columns. |
|
|
804
|
-
| `label.md` | object | - | Label width on medium screens (768px and up) when the label is not inline. Overrides `span`. |
|
|
805
|
-
| `label.md.span` | number | - | Label width in columns, out of 24. The content takes the remaining columns. |
|
|
806
|
-
| `label.lg` | object | - | Label width on large screens (992px and up) when the label is not inline. |
|
|
807
|
-
| `label.lg.span` | number | - | Label width in columns, out of 24. The content takes the remaining columns. |
|
|
808
|
-
| `label.xl` | object | - | Label width on extra large screens (1200px and up) when the label is not inline. |
|
|
809
|
-
| `label.xl.span` | number | - | Label width in columns, out of 24. The content takes the remaining columns. |
|
|
810
|
-
| `label.xxl` | object | - | Label width on extra extra large screens (1600px and up) when the label is not inline. |
|
|
811
|
-
| `label.xxl.span` | number | - | Label width in columns, out of 24. The content takes the remaining columns. |
|
|
812
724
|
| `label.align` | string | `"left"` | Align label left or right when inline. Enum: `left`, `right`. |
|
|
813
725
|
| `label.colon` | boolean | `true` | Append label with colon. |
|
|
814
726
|
| `label.extra` | string | - | Extra text to display beneath the content - supports html. |
|
|
815
727
|
| `label.title` | string | - | Label title - supports html. |
|
|
816
728
|
| `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. |
|
|
817
729
|
| `label.tooltip.title` | string | - | Tooltip text shown on hover - supports html. |
|
|
818
|
-
| `label.tooltip.icon` | string | `"
|
|
730
|
+
| `label.tooltip.icon` | string | `"AiOutlineQuestionCircle"` | Name of the icon to show beside the label. |
|
|
819
731
|
| `label.tooltip.color` | string | - | Color of the tooltip icon. |
|
|
820
|
-
| `label.span` | number | - | Label
|
|
732
|
+
| `label.span` | number | - | Label inline span. |
|
|
821
733
|
| `label.disabled` | boolean | `false` | Hide input label. |
|
|
822
734
|
| `label.hasFeedback` | boolean | `true` | Display feedback extra from validation, this does not disable validation. |
|
|
823
735
|
| `label.inline` | boolean | `false` | Render input and label inline. |
|
|
824
|
-
| `label.wrap` | boolean | `false` | Wrap long label text onto multiple lines when the label is inline. Labels above their input always wrap. |
|
|
825
736
|
| `title` | string | - | Title to describe the input component, if no title is specified the block id is displayed - supports html. |
|
|
826
737
|
| `theme` | object | - | Antd design token overrides for this block. See [antd design tokens](https://ant.design/components/overview#design-token). See [Ant Design checkbox tokens](https://ant.design/components/checkbox#design-token). |
|
|
827
738
|
| `theme.colorPrimary` | string | - | Primary color for checked checkboxes. |
|
|
@@ -835,7 +746,7 @@ Checkbox group for selecting multiple options.
|
|
|
835
746
|
| `theme.lineWidth` | number | `1` | Border width of the checkbox. |
|
|
836
747
|
| `theme.lineType` | string | `"solid"` | Border style of the checkbox. |
|
|
837
748
|
| `theme.fontSize` | number | `14` | Font size for checkbox labels. |
|
|
838
|
-
| `theme.marginXS` | number | `8` |
|
|
749
|
+
| `theme.marginXS` | number | `8` | Horizontal gap between checkboxes in a group. |
|
|
839
750
|
| `theme.paddingXS` | number | `8` | Inline padding between the checkbox and its label text. |
|
|
840
751
|
|
|
841
752
|
| Event | Event Data | Description |
|
|
@@ -850,6 +761,5 @@ Checkbox group for selecting multiple options.
|
|
|
850
761
|
| `/label` | The CheckboxSelector label. |
|
|
851
762
|
| `/extra` | The CheckboxSelector extra content. |
|
|
852
763
|
| `/feedback` | The CheckboxSelector validation feedback. |
|
|
853
|
-
| `/options` | Each CheckboxSelector option. |
|
|
854
764
|
|
|
855
765
|
No slots defined.
|
|
@@ -19,34 +19,6 @@ Single checkbox for boolean input.
|
|
|
19
19
|
description: Keep me signed in on this device
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
```yaml
|
|
23
|
-
- id: select_all
|
|
24
|
-
type: CheckboxSwitch
|
|
25
|
-
properties:
|
|
26
|
-
title: Recipients
|
|
27
|
-
description: Select all
|
|
28
|
-
indeterminate:
|
|
29
|
-
_ne:
|
|
30
|
-
- _if_none:
|
|
31
|
-
- _state: recipient_alice
|
|
32
|
-
- false
|
|
33
|
-
- _if_none:
|
|
34
|
-
- _state: recipient_bob
|
|
35
|
-
- false
|
|
36
|
-
- id: recipient_alice
|
|
37
|
-
type: CheckboxSwitch
|
|
38
|
-
properties:
|
|
39
|
-
description: Alice
|
|
40
|
-
label:
|
|
41
|
-
disabled: true
|
|
42
|
-
- id: recipient_bob
|
|
43
|
-
type: CheckboxSwitch
|
|
44
|
-
properties:
|
|
45
|
-
description: Bob
|
|
46
|
-
label:
|
|
47
|
-
disabled: true
|
|
48
|
-
```
|
|
49
|
-
|
|
50
22
|
```yaml
|
|
51
23
|
- id: desc_terms
|
|
52
24
|
type: CheckboxSwitch
|
|
@@ -397,7 +369,7 @@ Single checkbox for boolean input.
|
|
|
397
369
|
properties:
|
|
398
370
|
title: Create Account
|
|
399
371
|
type: primary
|
|
400
|
-
icon:
|
|
372
|
+
icon: AiOutlineUserAdd
|
|
401
373
|
block: true
|
|
402
374
|
events:
|
|
403
375
|
onClick:
|
|
@@ -464,7 +436,7 @@ Single checkbox for boolean input.
|
|
|
464
436
|
properties:
|
|
465
437
|
title: Save Preferences
|
|
466
438
|
type: primary
|
|
467
|
-
icon:
|
|
439
|
+
icon: AiOutlineSave
|
|
468
440
|
events:
|
|
469
441
|
onClick:
|
|
470
442
|
- id: save_notif
|
|
@@ -476,11 +448,9 @@ Single checkbox for boolean input.
|
|
|
476
448
|
|
|
477
449
|
| Property | Type | Default | Description |
|
|
478
450
|
| --- | --- | --- | --- |
|
|
479
|
-
| `autoFocus` | boolean | `false` | Autofocus to the block on page load. |
|
|
480
451
|
| `color` | string | - | Selected checkbox color. |
|
|
481
452
|
| `disabled` | boolean | `false` | Disable the block if true. |
|
|
482
453
|
| `description` | string | - | Text to display next to the checkbox - supports html. |
|
|
483
|
-
| `indeterminate` | boolean | `false` | Show the checkbox as partly checked, eg. for a select all checkbox when only some items are selected. Only changes how the checkbox looks, not its value. |
|
|
484
454
|
| `label` | object | - | Label properties. |
|
|
485
455
|
| `label.align` | string | `"left"` | Align label left or right when inline. Enum: `left`, `right`. |
|
|
486
456
|
| `label.colon` | boolean | `true` | Append label with colon. |
|
|
@@ -488,7 +458,7 @@ Single checkbox for boolean input.
|
|
|
488
458
|
| `label.title` | string | - | Label title - supports html. |
|
|
489
459
|
| `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. |
|
|
490
460
|
| `label.tooltip.title` | string | - | Tooltip text shown on hover - supports html. |
|
|
491
|
-
| `label.tooltip.icon` | string | `"
|
|
461
|
+
| `label.tooltip.icon` | string | `"AiOutlineQuestionCircle"` | Name of the icon to show beside the label. |
|
|
492
462
|
| `label.tooltip.color` | string | - | Color of the tooltip icon. |
|
|
493
463
|
| `label.span` | number | - | Label inline span. |
|
|
494
464
|
| `label.disabled` | boolean | `false` | Hide input label. |
|
|
@@ -195,33 +195,6 @@ ColorSelector is externally controlled — use an `onMount` event with `SetState
|
|
|
195
195
|
properties:
|
|
196
196
|
mode: gradient
|
|
197
197
|
showText: true
|
|
198
|
-
events:
|
|
199
|
-
onMount:
|
|
200
|
-
- id: set_default
|
|
201
|
-
type: SetState
|
|
202
|
-
params:
|
|
203
|
-
mode_gradient: linear-gradient(90deg, rgb(22,119,255) 0%, rgb(114,46,209) 100%)
|
|
204
|
-
- id: mode_both
|
|
205
|
-
type: ColorSelector
|
|
206
|
-
layout:
|
|
207
|
-
flex: 0 0 auto
|
|
208
|
-
properties:
|
|
209
|
-
mode:
|
|
210
|
-
- single
|
|
211
|
-
- gradient
|
|
212
|
-
showText: true
|
|
213
|
-
- id: mode_gradient_preview
|
|
214
|
-
type: Box
|
|
215
|
-
layout:
|
|
216
|
-
flex: 1 1 auto
|
|
217
|
-
style:
|
|
218
|
-
.element:
|
|
219
|
-
height: 32
|
|
220
|
-
borderRadius: 6
|
|
221
|
-
background:
|
|
222
|
-
_if_none:
|
|
223
|
-
- _state: mode_gradient
|
|
224
|
-
- "#f0f0f0"
|
|
225
198
|
```
|
|
226
199
|
|
|
227
200
|
**Top:**
|
|
@@ -473,7 +446,7 @@ ColorSelector is externally controlled — use an `onMount` event with `SetState
|
|
|
473
446
|
flex: 0 0 auto
|
|
474
447
|
style:
|
|
475
448
|
.element:
|
|
476
|
-
border:
|
|
449
|
+
border: 2px solid
|
|
477
450
|
borderRadius: 8px
|
|
478
451
|
properties:
|
|
479
452
|
showText: true
|
|
@@ -491,9 +464,9 @@ ColorSelector is externally controlled — use an `onMount` event with `SetState
|
|
|
491
464
|
type: ColorSelector
|
|
492
465
|
layout:
|
|
493
466
|
flex: 0 0 auto
|
|
494
|
-
class: rounded-lg shadow-sm
|
|
495
467
|
properties:
|
|
496
468
|
showText: true
|
|
469
|
+
class: rounded-lg shadow-sm
|
|
497
470
|
- id: style_large_swatch
|
|
498
471
|
type: ColorSelector
|
|
499
472
|
layout:
|
|
@@ -752,7 +725,7 @@ ColorSelector is externally controlled — use an `onMount` event with `SetState
|
|
|
752
725
|
properties:
|
|
753
726
|
title: Save Theme
|
|
754
727
|
type: primary
|
|
755
|
-
icon:
|
|
728
|
+
icon: AiOutlineSave
|
|
756
729
|
events:
|
|
757
730
|
onClick:
|
|
758
731
|
- id: theme_save_action
|
|
@@ -841,7 +814,7 @@ ColorSelector is externally controlled — use an `onMount` event with `SetState
|
|
|
841
814
|
properties:
|
|
842
815
|
title: Add to Cart
|
|
843
816
|
type: primary
|
|
844
|
-
icon:
|
|
817
|
+
icon: AiOutlineShoppingCart
|
|
845
818
|
events:
|
|
846
819
|
onClick:
|
|
847
820
|
- id: add_to_cart_action
|
|
@@ -861,47 +834,26 @@ ColorSelector is externally controlled — use an `onMount` event with `SetState
|
|
|
861
834
|
| `format` | string | - | Color format. Enum: `rgb`, `hex`, `hsb`. |
|
|
862
835
|
| `showText` | boolean | - | Show color text. |
|
|
863
836
|
| `size` | string | - | Size of the color picker. Enum: `small`, `middle`, `large`. |
|
|
864
|
-
| `label` | object | - | Label properties. |
|
|
865
|
-
| `label.xs` | object | - | Label width on extra small screens (below 576px) when the label is not inline. |
|
|
866
|
-
| `label.xs.span` | number | - | Label width in columns, out of 24. The content takes the remaining columns. |
|
|
867
|
-
| `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. |
|
|
868
|
-
| `label.sm.span` | number | - | Label width in columns, out of 24. The content takes the remaining columns. |
|
|
869
|
-
| `label.md` | object | - | Label width on medium screens (768px and up) when the label is not inline. Overrides `span`. |
|
|
870
|
-
| `label.md.span` | number | - | Label width in columns, out of 24. The content takes the remaining columns. |
|
|
871
|
-
| `label.lg` | object | - | Label width on large screens (992px and up) when the label is not inline. |
|
|
872
|
-
| `label.lg.span` | number | - | Label width in columns, out of 24. The content takes the remaining columns. |
|
|
873
|
-
| `label.xl` | object | - | Label width on extra large screens (1200px and up) when the label is not inline. |
|
|
874
|
-
| `label.xl.span` | number | - | Label width in columns, out of 24. The content takes the remaining columns. |
|
|
875
|
-
| `label.xxl` | object | - | Label width on extra extra large screens (1600px and up) when the label is not inline. |
|
|
876
|
-
| `label.xxl.span` | number | - | Label width in columns, out of 24. The content takes the remaining columns. |
|
|
877
|
-
| `label.align` | string | `"left"` | Align label left or right when inline. Enum: `left`, `right`. |
|
|
878
|
-
| `label.colon` | boolean | `true` | Append label with colon. |
|
|
879
|
-
| `label.extra` | string | - | Extra text to display beneath the content - supports html. |
|
|
880
|
-
| `label.title` | string | - | Label title - supports html. |
|
|
881
|
-
| `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. |
|
|
882
|
-
| `label.tooltip.title` | string | - | Tooltip text shown on hover - supports html. |
|
|
883
|
-
| `label.tooltip.icon` | string | `"help"` | Icon name to show beside the label: a semantic name like `help`, a Lucide icon name like `CircleQuestionMark`, or a set-qualified name like `tabler:HelpCircle`. |
|
|
884
|
-
| `label.tooltip.color` | string | - | Color of the tooltip icon. |
|
|
885
|
-
| `label.span` | number | - | Label width in columns, out of 24, on medium screens (768px) and up when the label is not inline. The content takes the remaining columns. |
|
|
886
|
-
| `label.disabled` | boolean | `false` | Hide input label. |
|
|
887
|
-
| `label.hasFeedback` | boolean | `true` | Display feedback extra from validation, this does not disable validation. |
|
|
888
|
-
| `label.inline` | boolean | `false` | Render input and label inline. |
|
|
889
|
-
| `label.wrap` | boolean | `false` | Wrap long label text onto multiple lines when the label is inline. Labels above their input always wrap. |
|
|
890
|
-
| `title` | string | - | Title to describe the input component, if no title is specified the block id is displayed - supports html. |
|
|
891
837
|
| `disabled` | boolean | `false` | Disable the color picker. |
|
|
892
838
|
| `allowClear` | boolean | `false` | Allow the user to clear their input. |
|
|
893
839
|
| `arrow` | boolean | `true` | Show arrow on the color picker popup. |
|
|
894
840
|
| `disabledAlpha` | boolean | `false` | Disable the alpha channel slider. |
|
|
895
841
|
| `disabledFormat` | boolean | `false` | Disable the format selector. |
|
|
896
|
-
| `mode` | string
|
|
842
|
+
| `mode` | string | `"single"` | Color picker mode. Enum: `single`, `gradient`. |
|
|
897
843
|
| `open` | boolean | - | Controlled open state of the color picker popup. |
|
|
898
844
|
| `placement` | string | - | Placement of the color picker popup. Enum: `top`, `topLeft`, `topRight`, `bottom`, `bottomLeft`, `bottomRight`, `left`, `leftTop`, `leftBottom`, `right`, `rightTop`, `rightBottom`. |
|
|
899
845
|
| `presets` | array | - | Preset color palettes. |
|
|
900
|
-
| `presets.$.label` | string | - | Title of the palette. |
|
|
901
|
-
| `presets.$.colors` | array | - | Colors in the palette. |
|
|
902
|
-
| `presets.$.defaultOpen` | boolean | `true` | Whether the palette is expanded when the popup opens. |
|
|
903
846
|
| `trigger` | string | `"click"` | Trigger mode for the color picker popup. Enum: `hover`, `click`. |
|
|
904
847
|
| `theme` | object | - | Antd design token overrides for this block. See [antd design tokens](https://ant.design/components/overview#design-token). See [Ant Design color-picker tokens](https://ant.design/components/color-picker#design-token). |
|
|
848
|
+
| `theme.colorPickerWidth` | number | `234` | Width of the color picker panel. |
|
|
849
|
+
| `theme.colorPickerHandlerSize` | number | `16` | Size of the color picker handler (drag handle). |
|
|
850
|
+
| `theme.colorPickerHandlerSizeSM` | number | `12` | Size of the color picker handler for small size. |
|
|
851
|
+
| `theme.colorPickerSliderHeight` | number | `8` | Height of the color slider bar. |
|
|
852
|
+
| `theme.colorPickerPreviewSize` | number | - | Size of the color preview circle. Defaults to a calculated value based on slider height. |
|
|
853
|
+
| `theme.colorPickerAlphaInputWidth` | number | `44` | Width of the alpha input field. |
|
|
854
|
+
| `theme.colorPickerInputNumberHandleWidth` | number | `16` | Width of the input number handle in the color picker. |
|
|
855
|
+
| `theme.colorPickerPresetColorSize` | number | `24` | Size of preset color swatches. |
|
|
856
|
+
| `theme.colorPickerInsetShadow` | string | - | Inset shadow style for the color picker. |
|
|
905
857
|
| `theme.borderRadius` | number | `6` | Border radius of the color picker trigger. |
|
|
906
858
|
| `theme.colorPrimary` | string | - | Primary color used in the color picker panel. |
|
|
907
859
|
| `theme.colorText` | string | - | Text color in the color picker panel. |
|
|
@@ -928,6 +880,5 @@ ColorSelector is externally controlled — use an `onMount` event with `SetState
|
|
|
928
880
|
| `/label` | The ColorSelector label. |
|
|
929
881
|
| `/extra` | The ColorSelector extra content. |
|
|
930
882
|
| `/feedback` | The ColorSelector validation feedback. |
|
|
931
|
-
| `/popup` | The ColorSelector popup. |
|
|
932
883
|
|
|
933
884
|
No slots defined.
|