@lowdefy/blocks-antd 5.5.1 → 6.0.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/dist/TagPillRow.js +88 -0
- package/dist/blocks/Affix/gallery.yaml +399 -0
- package/dist/blocks/Affix/tests/Affix.e2e.yaml +72 -0
- package/dist/blocks/Affix/tests.yaml +29 -0
- package/dist/blocks/Alert/gallery.yaml +701 -0
- package/dist/blocks/Alert/tests/Alert.e2e.yaml +161 -0
- package/dist/blocks/Alert/tests.yaml +261 -0
- package/dist/blocks/AutoComplete/gallery.yaml +713 -0
- package/dist/blocks/AutoComplete/tests/AutoComplete.e2e.yaml +330 -0
- package/dist/blocks/AutoComplete/tests.yaml +178 -0
- package/dist/blocks/Avatar/gallery.yaml +1037 -0
- package/dist/blocks/Avatar/tests/Avatar.e2e.yaml +125 -0
- package/dist/blocks/Avatar/tests.yaml +76 -0
- package/dist/blocks/Badge/gallery.yaml +1090 -0
- package/dist/blocks/Badge/tests/Badge.e2e.yaml +195 -0
- package/dist/blocks/Badge/tests.yaml +91 -0
- package/dist/blocks/Breadcrumb/gallery.yaml +484 -0
- package/dist/blocks/Breadcrumb/tests/Breadcrumb.e2e.yaml +165 -0
- package/dist/blocks/Breadcrumb/tests.yaml +106 -0
- package/dist/blocks/Button/gallery.yaml +718 -0
- package/dist/blocks/Button/tests/Button.e2e.yaml +246 -0
- package/dist/blocks/Button/tests.yaml +104 -0
- package/dist/blocks/ButtonSelector/gallery.yaml +891 -0
- package/dist/blocks/ButtonSelector/tests/ButtonSelector.e2e.yaml +188 -0
- package/dist/blocks/ButtonSelector/tests.yaml +167 -0
- package/dist/blocks/Calendar/gallery.yaml +128 -0
- package/dist/blocks/Calendar/tests/Calendar.e2e.yaml +136 -0
- package/dist/blocks/Calendar/tests.yaml +50 -0
- package/dist/blocks/Card/gallery.yaml +1035 -0
- package/dist/blocks/Card/tests/Card.e2e.yaml +209 -0
- package/dist/blocks/Card/tests.yaml +75 -0
- package/dist/blocks/Carousel/gallery.yaml +1971 -0
- package/dist/blocks/Carousel/tests/Carousel.e2e.yaml +211 -0
- package/dist/blocks/Carousel/tests.yaml +117 -0
- package/dist/blocks/CheckboxSelector/CheckboxSelector.js +54 -29
- package/dist/blocks/CheckboxSelector/gallery.yaml +781 -0
- package/dist/blocks/CheckboxSelector/meta.js +24 -4
- package/dist/blocks/CheckboxSelector/tests/CheckboxSelector.e2e.yaml +272 -0
- package/dist/blocks/CheckboxSelector/tests.yaml +325 -0
- package/dist/blocks/CheckboxSwitch/gallery.yaml +457 -0
- package/dist/blocks/CheckboxSwitch/tests/CheckboxSwitch.e2e.yaml +126 -0
- package/dist/blocks/CheckboxSwitch/tests.yaml +96 -0
- package/dist/blocks/Collapse/gallery.yaml +1079 -0
- package/dist/blocks/Collapse/tests/Collapse.e2e.yaml +206 -0
- package/dist/blocks/Collapse/tests.yaml +265 -0
- package/dist/blocks/ColorSelector/gallery.yaml +807 -0
- package/dist/blocks/ColorSelector/tests/ColorSelector.e2e.yaml +77 -0
- package/dist/blocks/ColorSelector/tests.yaml +84 -0
- package/dist/blocks/ConfigProvider/gallery.yaml +1003 -0
- package/dist/blocks/ConfigProvider/tests.yaml +62 -0
- package/dist/blocks/ConfirmModal/gallery.yaml +1043 -0
- package/dist/blocks/ConfirmModal/tests/ConfirmModal.e2e.yaml +410 -0
- package/dist/blocks/ConfirmModal/tests.yaml +95 -0
- package/dist/blocks/Content/gallery.yaml +528 -0
- package/dist/blocks/Content/tests/Content.e2e.yaml +71 -0
- package/dist/blocks/Content/tests.yaml +42 -0
- package/dist/blocks/ControlledList/ControlledList.js +1 -1
- package/dist/blocks/ControlledList/gallery.yaml +481 -0
- package/dist/blocks/ControlledList/{style.module.css → style.css} +3 -3
- package/dist/blocks/ControlledList/tests/ControlledList.e2e.yaml +161 -0
- package/dist/blocks/ControlledList/tests.yaml +57 -0
- package/dist/blocks/DateRangeSelector/DateRangeSelector.js +7 -0
- package/dist/blocks/DateRangeSelector/e2e.js +28 -2
- package/dist/blocks/DateRangeSelector/gallery.yaml +858 -0
- package/dist/blocks/DateRangeSelector/meta.js +2 -0
- package/dist/blocks/DateRangeSelector/tests/DateRangeSelector.e2e.yaml +204 -0
- package/dist/blocks/DateRangeSelector/tests.yaml +129 -0
- package/dist/blocks/DateSelector/DateSelector.js +6 -0
- package/dist/blocks/DateSelector/e2e.js +28 -2
- package/dist/blocks/DateSelector/gallery.yaml +691 -0
- package/dist/blocks/DateSelector/meta.js +6 -0
- package/dist/blocks/DateSelector/tests/DateSelector.e2e.yaml +229 -0
- package/dist/blocks/DateSelector/tests.yaml +117 -0
- package/dist/blocks/DateTimeSelector/DateTimeSelector.js +7 -0
- package/dist/blocks/DateTimeSelector/e2e.js +26 -2
- package/dist/blocks/DateTimeSelector/gallery.yaml +770 -0
- package/dist/blocks/DateTimeSelector/meta.js +2 -0
- package/dist/blocks/DateTimeSelector/tests/DateTimeSelector.e2e.yaml +163 -0
- package/dist/blocks/DateTimeSelector/tests.yaml +140 -0
- package/dist/blocks/Descriptions/gallery.yaml +839 -0
- package/dist/blocks/Descriptions/tests/Descriptions.e2e.yaml +143 -0
- package/dist/blocks/Descriptions/tests.yaml +256 -0
- package/dist/blocks/Divider/gallery.yaml +375 -0
- package/dist/blocks/Divider/tests/Divider.e2e.yaml +107 -0
- package/dist/blocks/Divider/tests.yaml +58 -0
- package/dist/blocks/Drawer/gallery.yaml +1257 -0
- package/dist/blocks/Drawer/tests/Drawer.e2e.yaml +562 -0
- package/dist/blocks/Drawer/tests.yaml +80 -0
- package/dist/blocks/DropdownButton/gallery.yaml +606 -0
- package/dist/blocks/DropdownButton/tests/DropdownButton.e2e.yaml +243 -0
- package/dist/blocks/DropdownMenu/gallery.yaml +578 -0
- package/dist/blocks/DropdownMenu/tests/DropdownMenu.e2e.yaml +267 -0
- package/dist/blocks/Flex/gallery.yaml +1416 -0
- package/dist/blocks/Flex/tests/Flex.e2e.yaml +95 -0
- package/dist/blocks/Flex/tests.yaml +92 -0
- package/dist/blocks/FloatButton/gallery.yaml +518 -0
- package/dist/blocks/FloatButton/tests/FloatButton.e2e.yaml +73 -0
- package/dist/blocks/FloatButton/tests.yaml +59 -0
- package/dist/blocks/Footer/gallery.yaml +355 -0
- package/dist/blocks/Footer/tests/Footer.e2e.yaml +70 -0
- package/dist/blocks/Footer/tests.yaml +28 -0
- package/dist/blocks/Header/gallery.yaml +249 -0
- package/dist/blocks/Header/tests/Header.e2e.yaml +77 -0
- package/dist/blocks/Header/tests.yaml +36 -0
- package/dist/blocks/Label/Label.js +4 -4
- package/dist/blocks/Label/gallery.yaml +762 -0
- package/dist/blocks/Label/labelLogic.js +4 -1
- package/dist/blocks/Label/{style.module.css → style.css} +28 -28
- package/dist/blocks/Label/tests/Label.e2e.yaml +247 -0
- package/dist/blocks/Label/tests.yaml +212 -0
- package/dist/blocks/Layout/gallery.yaml +548 -0
- package/dist/blocks/Layout/tests/Layout.e2e.yaml +86 -0
- package/dist/blocks/Layout/tests.yaml +28 -0
- package/dist/blocks/ListSelector/gallery.yaml +223 -0
- package/dist/blocks/Masonry/gallery.yaml +989 -0
- package/dist/blocks/Masonry/tests/Masonry.e2e.yaml +128 -0
- package/dist/blocks/Masonry/tests.yaml +42 -0
- package/dist/blocks/MasonryList/gallery.yaml +224 -0
- package/dist/blocks/MasonryList/tests/MasonryList.e2e.yaml +55 -0
- package/dist/blocks/MasonryList/tests.yaml +42 -0
- package/dist/blocks/Menu/gallery.yaml +974 -0
- package/dist/blocks/Menu/tests/Menu.e2e.yaml +484 -0
- package/dist/blocks/Menu/tests.yaml +1053 -0
- package/dist/blocks/Message/gallery.yaml +860 -0
- package/dist/blocks/Message/tests/Message.e2e.yaml +246 -0
- package/dist/blocks/Message/tests.yaml +54 -0
- package/dist/blocks/MobileMenu/gallery.yaml +1172 -0
- package/dist/blocks/MobileMenu/tests/MobileMenu.e2e.yaml +314 -0
- package/dist/blocks/MobileMenu/tests.yaml +359 -0
- package/dist/blocks/Modal/gallery.yaml +1039 -0
- package/dist/blocks/Modal/tests/Modal.e2e.yaml +493 -0
- package/dist/blocks/Modal/tests.yaml +75 -0
- package/dist/blocks/MonthSelector/MonthSelector.js +6 -0
- package/dist/blocks/MonthSelector/e2e.js +26 -2
- package/dist/blocks/MonthSelector/gallery.yaml +687 -0
- package/dist/blocks/MonthSelector/meta.js +6 -0
- package/dist/blocks/MonthSelector/tests/MonthSelector.e2e.yaml +167 -0
- package/dist/blocks/MonthSelector/tests.yaml +124 -0
- package/dist/blocks/MultipleSelector/gallery.yaml +1245 -0
- package/dist/blocks/MultipleSelector/tests/MultipleSelector.e2e.yaml +445 -0
- package/dist/blocks/MultipleSelector/tests.yaml +201 -0
- package/dist/blocks/Notification/gallery.yaml +1376 -0
- package/dist/blocks/Notification/tests/Notification.e2e.yaml +362 -0
- package/dist/blocks/Notification/tests.yaml +97 -0
- package/dist/blocks/NumberInput/gallery.yaml +753 -0
- package/dist/blocks/NumberInput/tests/NumberInput.e2e.yaml +228 -0
- package/dist/blocks/NumberInput/tests.yaml +116 -0
- package/dist/blocks/PageHeaderMenu/PageHeaderMenu.js +1 -1
- package/dist/blocks/PageHeaderMenu/gallery.yaml +480 -0
- package/dist/blocks/PageHeaderMenu/tests/PageHeaderMenu.e2e.yaml +110 -0
- package/dist/blocks/PageHeaderMenu/tests.yaml +173 -0
- package/dist/blocks/PageSidebarLayout/PageSidebarLayout.js +10 -1
- package/dist/blocks/PageSidebarLayout/gallery.yaml +302 -0
- package/dist/blocks/PageSidebarLayout/meta.js +1 -0
- package/dist/blocks/PageSidebarLayout/tests/PageSidebarLayout.e2e.yaml +216 -0
- package/dist/blocks/PageSidebarLayout/tests.yaml +174 -0
- package/dist/blocks/PageSiderMenu/PageSiderMenu.js +1 -1
- package/dist/blocks/PageSiderMenu/gallery.yaml +516 -0
- package/dist/blocks/PageSiderMenu/tests/PageSiderMenu.e2e.yaml +175 -0
- package/dist/blocks/PageSiderMenu/tests.yaml +211 -0
- package/dist/blocks/Pagination/gallery.yaml +503 -0
- package/dist/blocks/Pagination/tests/Pagination.e2e.yaml +159 -0
- package/dist/blocks/Pagination/tests.yaml +80 -0
- package/dist/blocks/Paragraph/gallery.yaml +458 -0
- package/dist/blocks/Paragraph/tests/Paragraph.e2e.yaml +153 -0
- package/dist/blocks/Paragraph/tests.yaml +176 -0
- package/dist/blocks/ParagraphInput/gallery.yaml +1483 -0
- package/dist/blocks/ParagraphInput/tests/ParagraphInput.e2e.yaml +189 -0
- package/dist/blocks/ParagraphInput/tests.yaml +163 -0
- package/dist/blocks/PasswordInput/gallery.yaml +420 -0
- package/dist/blocks/PasswordInput/tests/PasswordInput.e2e.yaml +188 -0
- package/dist/blocks/PasswordInput/tests.yaml +78 -0
- package/dist/blocks/PhoneNumberInput/gallery.yaml +677 -0
- package/dist/blocks/PhoneNumberInput/tests/PhoneNumberInput.e2e.yaml +279 -0
- package/dist/blocks/PhoneNumberInput/tests.yaml +25 -0
- package/dist/blocks/Popover/gallery.yaml +1301 -0
- package/dist/blocks/Popover/tests/Popover.e2e.yaml +249 -0
- package/dist/blocks/Popover/tests.yaml +105 -0
- package/dist/blocks/Progress/gallery.yaml +772 -0
- package/dist/blocks/Progress/tests/Progress.e2e.yaml +167 -0
- package/dist/blocks/Progress/tests.yaml +114 -0
- package/dist/blocks/QRCode/gallery.yaml +492 -0
- package/dist/blocks/QRCode/tests/QRCode.e2e.yaml +66 -0
- package/dist/blocks/QRCode/tests.yaml +113 -0
- package/dist/blocks/RadioSelector/RadioSelector.js +50 -25
- package/dist/blocks/RadioSelector/gallery.yaml +816 -0
- package/dist/blocks/RadioSelector/meta.js +23 -3
- package/dist/blocks/RadioSelector/tests/RadioSelector.e2e.yaml +269 -0
- package/dist/blocks/RadioSelector/tests.yaml +339 -0
- package/dist/blocks/RatingSlider/gallery.yaml +627 -0
- package/dist/blocks/RatingSlider/tests/RatingSlider.e2e.yaml +188 -0
- package/dist/blocks/RatingSlider/tests.yaml +116 -0
- package/dist/blocks/Result/gallery.yaml +925 -0
- package/dist/blocks/Result/tests/Result.e2e.yaml +126 -0
- package/dist/blocks/Result/tests.yaml +75 -0
- package/dist/blocks/Search/Search.js +1 -1
- package/dist/blocks/Search/SearchModal.js +18 -9
- package/dist/blocks/Search/gallery.yaml +170 -0
- package/dist/blocks/Search/meta.js +2 -1
- package/dist/blocks/Search/{style.module.css → style.css} +19 -12
- package/dist/blocks/Search/tests/Search.e2e.yaml +125 -0
- package/dist/blocks/Search/useSearchIndex.js +24 -2
- package/dist/blocks/SegmentedSelector/gallery.yaml +725 -0
- package/dist/blocks/SegmentedSelector/tests/SegmentedSelector.e2e.yaml +115 -0
- package/dist/blocks/SegmentedSelector/tests.yaml +141 -0
- package/dist/blocks/Selector/gallery.yaml +1055 -0
- package/dist/blocks/Selector/tests/Selector.e2e.yaml +427 -0
- package/dist/blocks/Selector/tests.yaml +196 -0
- package/dist/blocks/Sider/gallery.yaml +994 -0
- package/dist/blocks/Sider/tests/Sider.e2e.yaml +162 -0
- package/dist/blocks/Sider/tests.yaml +20 -0
- package/dist/blocks/Slider/gallery.yaml +600 -0
- package/dist/blocks/Slider/tests/Slider.e2e.yaml +190 -0
- package/dist/blocks/Slider/tests.yaml +68 -0
- package/dist/blocks/Splitter/gallery.yaml +1511 -0
- package/dist/blocks/Splitter/tests/Splitter.e2e.yaml +114 -0
- package/dist/blocks/Splitter/tests.yaml +79 -0
- package/dist/blocks/Statistic/gallery.yaml +460 -0
- package/dist/blocks/Statistic/tests/Statistic.e2e.yaml +137 -0
- package/dist/blocks/Statistic/tests.yaml +77 -0
- package/dist/blocks/Steps/gallery.yaml +550 -0
- package/dist/blocks/Switch/gallery.yaml +502 -0
- package/dist/blocks/Switch/tests/Switch.e2e.yaml +132 -0
- package/dist/blocks/Switch/tests.yaml +87 -0
- package/dist/blocks/Tabs/gallery.yaml +1353 -0
- package/dist/blocks/Tabs/tests/Tabs.e2e.yaml +370 -0
- package/dist/blocks/Tabs/tests.yaml +349 -0
- package/dist/blocks/Tag/gallery.yaml +598 -0
- package/dist/blocks/Tag/tests/Tag.e2e.yaml +173 -0
- package/dist/blocks/Tag/tests.yaml +51 -0
- package/dist/blocks/TagMultipleSelector/TagMultipleSelector.js +53 -0
- package/dist/blocks/TagMultipleSelector/e2e.js +36 -0
- package/dist/blocks/TagMultipleSelector/gallery.yaml +70 -0
- package/dist/blocks/TagMultipleSelector/meta.js +91 -0
- package/dist/blocks/TagMultipleSelector/tests/TagMultipleSelector.e2e.yaml +93 -0
- package/dist/blocks/TagSelector/TagSelector.js +49 -0
- package/dist/blocks/TagSelector/e2e.js +36 -0
- package/dist/blocks/TagSelector/gallery.yaml +70 -0
- package/dist/blocks/TagSelector/meta.js +91 -0
- package/dist/blocks/TagSelector/tests/TagSelector.e2e.yaml +93 -0
- package/dist/blocks/TextArea/gallery.yaml +618 -0
- package/dist/blocks/TextArea/tests/TextArea.e2e.yaml +218 -0
- package/dist/blocks/TextArea/tests.yaml +100 -0
- package/dist/blocks/TextInput/gallery.yaml +560 -0
- package/dist/blocks/TextInput/tests/TextInput.e2e.yaml +287 -0
- package/dist/blocks/TextInput/tests.yaml +114 -0
- package/dist/blocks/TimelineList/gallery.yaml +431 -0
- package/dist/blocks/TimelineList/tests/TimelineList.e2e.yaml +244 -0
- package/dist/blocks/TimelineList/tests.yaml +251 -0
- package/dist/blocks/Title/gallery.yaml +483 -0
- package/dist/blocks/Title/tests/Title.e2e.yaml +180 -0
- package/dist/blocks/Title/tests.yaml +175 -0
- package/dist/blocks/TitleInput/gallery.yaml +1006 -0
- package/dist/blocks/TitleInput/tests/TitleInput.e2e.yaml +195 -0
- package/dist/blocks/TitleInput/tests.yaml +181 -0
- package/dist/blocks/Tooltip/gallery.yaml +1214 -0
- package/dist/blocks/Tooltip/tests/Tooltip.e2e.yaml +195 -0
- package/dist/blocks/Tooltip/tests.yaml +92 -0
- package/dist/blocks/Tour/gallery.yaml +2305 -0
- package/dist/blocks/Tour/tests/Tour.e2e.yaml +90 -0
- package/dist/blocks/Tour/tests.yaml +151 -0
- package/dist/blocks/TreeInput/gallery.yaml +78 -0
- package/dist/blocks/TreeInput/tests/TreeInput.e2e.yaml +139 -0
- package/dist/blocks/TreeInput/tests.yaml +140 -0
- package/dist/blocks/TreeMultipleSelector/gallery.yaml +67 -0
- package/dist/blocks/TreeSelector/gallery.yaml +81 -0
- package/dist/blocks/Watermark/gallery.yaml +479 -0
- package/dist/blocks/Watermark/tests/Watermark.e2e.yaml +62 -0
- package/dist/blocks/Watermark/tests.yaml +86 -0
- package/dist/blocks/WeekSelector/WeekSelector.js +6 -0
- package/dist/blocks/WeekSelector/e2e.js +26 -2
- package/dist/blocks/WeekSelector/gallery.yaml +589 -0
- package/dist/blocks/WeekSelector/meta.js +6 -0
- package/dist/blocks/WeekSelector/tests/WeekSelector.e2e.yaml +154 -0
- package/dist/blocks/WeekSelector/tests.yaml +122 -0
- package/dist/blocks.js +2 -0
- package/dist/disabledDate.js +91 -19
- package/dist/e2e.js +2 -0
- package/dist/getPresets.js +151 -0
- package/dist/getTagColor.js +44 -0
- package/dist/getTagSelectorOptions.js +30 -0
- package/dist/metas.js +2 -0
- package/dist/pickerPresetsStyle.css +26 -0
- package/dist/schemas/disabledDates.js +6 -2
- package/dist/schemas/index.js +1 -0
- package/dist/schemas/presets.js +111 -0
- package/dist/tagSelectorStyle.css +68 -0
- package/package.json +13 -13
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
# Copyright 2020-2026 Lowdefy, Inc
|
|
2
|
+
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
id: carousel
|
|
16
|
+
type: Box
|
|
17
|
+
|
|
18
|
+
blocks:
|
|
19
|
+
# ============================================
|
|
20
|
+
# BASIC RENDERING
|
|
21
|
+
# ============================================
|
|
22
|
+
|
|
23
|
+
- id: carousel_basic
|
|
24
|
+
type: Carousel
|
|
25
|
+
slots:
|
|
26
|
+
slide1:
|
|
27
|
+
blocks:
|
|
28
|
+
- id: carousel_basic_slide1
|
|
29
|
+
type: Span
|
|
30
|
+
properties:
|
|
31
|
+
content: Slide 1 Content
|
|
32
|
+
slide2:
|
|
33
|
+
blocks:
|
|
34
|
+
- id: carousel_basic_slide2
|
|
35
|
+
type: Span
|
|
36
|
+
properties:
|
|
37
|
+
content: Slide 2 Content
|
|
38
|
+
slide3:
|
|
39
|
+
blocks:
|
|
40
|
+
- id: carousel_basic_slide3
|
|
41
|
+
type: Span
|
|
42
|
+
properties:
|
|
43
|
+
content: Slide 3 Content
|
|
44
|
+
|
|
45
|
+
# ============================================
|
|
46
|
+
# DOT CONFIGURATION
|
|
47
|
+
# ============================================
|
|
48
|
+
|
|
49
|
+
- id: carousel_no_dots
|
|
50
|
+
type: Carousel
|
|
51
|
+
properties:
|
|
52
|
+
dots: false
|
|
53
|
+
slots:
|
|
54
|
+
slide1:
|
|
55
|
+
blocks:
|
|
56
|
+
- id: carousel_no_dots_slide1
|
|
57
|
+
type: Span
|
|
58
|
+
properties:
|
|
59
|
+
content: No Dots Slide
|
|
60
|
+
|
|
61
|
+
- id: carousel_dots_left
|
|
62
|
+
type: Carousel
|
|
63
|
+
properties:
|
|
64
|
+
dotPosition: left
|
|
65
|
+
slots:
|
|
66
|
+
slide1:
|
|
67
|
+
blocks:
|
|
68
|
+
- id: carousel_dots_left_slide1
|
|
69
|
+
type: Span
|
|
70
|
+
properties:
|
|
71
|
+
content: Left Dots
|
|
72
|
+
slide2:
|
|
73
|
+
blocks:
|
|
74
|
+
- id: carousel_dots_left_slide2
|
|
75
|
+
type: Span
|
|
76
|
+
properties:
|
|
77
|
+
content: Left Dots 2
|
|
78
|
+
|
|
79
|
+
- id: carousel_dots_top
|
|
80
|
+
type: Carousel
|
|
81
|
+
properties:
|
|
82
|
+
dotPosition: top
|
|
83
|
+
slots:
|
|
84
|
+
slide1:
|
|
85
|
+
blocks:
|
|
86
|
+
- id: carousel_dots_top_slide1
|
|
87
|
+
type: Span
|
|
88
|
+
properties:
|
|
89
|
+
content: Top Dots
|
|
90
|
+
slide2:
|
|
91
|
+
blocks:
|
|
92
|
+
- id: carousel_dots_top_slide2
|
|
93
|
+
type: Span
|
|
94
|
+
properties:
|
|
95
|
+
content: Top Dots 2
|
|
96
|
+
|
|
97
|
+
# ============================================
|
|
98
|
+
# ARROWS
|
|
99
|
+
# ============================================
|
|
100
|
+
|
|
101
|
+
- id: carousel_arrows
|
|
102
|
+
type: Carousel
|
|
103
|
+
properties:
|
|
104
|
+
arrows: true
|
|
105
|
+
slots:
|
|
106
|
+
slide1:
|
|
107
|
+
blocks:
|
|
108
|
+
- id: carousel_arrows_slide1
|
|
109
|
+
type: Span
|
|
110
|
+
properties:
|
|
111
|
+
content: Arrow Slide 1
|
|
112
|
+
slide2:
|
|
113
|
+
blocks:
|
|
114
|
+
- id: carousel_arrows_slide2
|
|
115
|
+
type: Span
|
|
116
|
+
properties:
|
|
117
|
+
content: Arrow Slide 2
|
|
118
|
+
slide3:
|
|
119
|
+
blocks:
|
|
120
|
+
- id: carousel_arrows_slide3
|
|
121
|
+
type: Span
|
|
122
|
+
properties:
|
|
123
|
+
content: Arrow Slide 3
|
|
124
|
+
|
|
125
|
+
# ============================================
|
|
126
|
+
# EFFECT
|
|
127
|
+
# ============================================
|
|
128
|
+
|
|
129
|
+
- id: carousel_fade
|
|
130
|
+
type: Carousel
|
|
131
|
+
properties:
|
|
132
|
+
effect: fade
|
|
133
|
+
slots:
|
|
134
|
+
slide1:
|
|
135
|
+
blocks:
|
|
136
|
+
- id: carousel_fade_slide1
|
|
137
|
+
type: Span
|
|
138
|
+
properties:
|
|
139
|
+
content: Fade Slide 1
|
|
140
|
+
slide2:
|
|
141
|
+
blocks:
|
|
142
|
+
- id: carousel_fade_slide2
|
|
143
|
+
type: Span
|
|
144
|
+
properties:
|
|
145
|
+
content: Fade Slide 2
|
|
146
|
+
|
|
147
|
+
# ============================================
|
|
148
|
+
# VERTICAL
|
|
149
|
+
# ============================================
|
|
150
|
+
|
|
151
|
+
- id: carousel_vertical
|
|
152
|
+
type: Carousel
|
|
153
|
+
properties:
|
|
154
|
+
vertical: true
|
|
155
|
+
slots:
|
|
156
|
+
slide1:
|
|
157
|
+
blocks:
|
|
158
|
+
- id: carousel_vertical_slide1
|
|
159
|
+
type: Span
|
|
160
|
+
properties:
|
|
161
|
+
content: Vertical Slide 1
|
|
162
|
+
slide2:
|
|
163
|
+
blocks:
|
|
164
|
+
- id: carousel_vertical_slide2
|
|
165
|
+
type: Span
|
|
166
|
+
properties:
|
|
167
|
+
content: Vertical Slide 2
|
|
168
|
+
|
|
169
|
+
# ============================================
|
|
170
|
+
# EVENT TESTS
|
|
171
|
+
# ============================================
|
|
172
|
+
|
|
173
|
+
- id: carousel_afterchange
|
|
174
|
+
type: Carousel
|
|
175
|
+
properties:
|
|
176
|
+
waitForAnimate: true
|
|
177
|
+
events:
|
|
178
|
+
afterChange:
|
|
179
|
+
- id: set_afterchange
|
|
180
|
+
type: SetState
|
|
181
|
+
params:
|
|
182
|
+
carousel_current_slide:
|
|
183
|
+
_event: current.key
|
|
184
|
+
slots:
|
|
185
|
+
slide1:
|
|
186
|
+
blocks:
|
|
187
|
+
- id: carousel_afterchange_slide1
|
|
188
|
+
type: Span
|
|
189
|
+
properties:
|
|
190
|
+
content: Slide A
|
|
191
|
+
slide2:
|
|
192
|
+
blocks:
|
|
193
|
+
- id: carousel_afterchange_slide2
|
|
194
|
+
type: Span
|
|
195
|
+
properties:
|
|
196
|
+
content: Slide B
|
|
197
|
+
|
|
198
|
+
- id: afterchange_display
|
|
199
|
+
type: Span
|
|
200
|
+
properties:
|
|
201
|
+
content:
|
|
202
|
+
_if:
|
|
203
|
+
test:
|
|
204
|
+
_ne:
|
|
205
|
+
- _state: carousel_current_slide
|
|
206
|
+
- null
|
|
207
|
+
then:
|
|
208
|
+
_string.concat:
|
|
209
|
+
- 'Current: '
|
|
210
|
+
- _state: carousel_current_slide
|
|
211
|
+
else: ''
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
# Copyright 2020-2026 Lowdefy, Inc
|
|
2
|
+
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
- id: default
|
|
16
|
+
type: Carousel
|
|
17
|
+
- id: basic_carousel
|
|
18
|
+
type: Carousel
|
|
19
|
+
properties:
|
|
20
|
+
draggable: true
|
|
21
|
+
slidesToShow: 1
|
|
22
|
+
slides:
|
|
23
|
+
- key: slide_one
|
|
24
|
+
- key: slide_two
|
|
25
|
+
- key: slide_three
|
|
26
|
+
areas:
|
|
27
|
+
slide_one:
|
|
28
|
+
blocks:
|
|
29
|
+
- id: side_1
|
|
30
|
+
type: Card
|
|
31
|
+
blocks:
|
|
32
|
+
- id: title_side_1
|
|
33
|
+
type: Title
|
|
34
|
+
properties:
|
|
35
|
+
content: Slide 1
|
|
36
|
+
slide_two:
|
|
37
|
+
blocks:
|
|
38
|
+
- id: side_2
|
|
39
|
+
type: Card
|
|
40
|
+
blocks:
|
|
41
|
+
- id: title_side_2
|
|
42
|
+
type: Title
|
|
43
|
+
properties:
|
|
44
|
+
content: Slide 2
|
|
45
|
+
slide_three:
|
|
46
|
+
blocks:
|
|
47
|
+
- id: side_3
|
|
48
|
+
type: Card
|
|
49
|
+
blocks:
|
|
50
|
+
- id: title_side_3
|
|
51
|
+
type: Title
|
|
52
|
+
properties:
|
|
53
|
+
content: Slide 3
|
|
54
|
+
- id: responsive_carousel
|
|
55
|
+
type: Carousel
|
|
56
|
+
properties:
|
|
57
|
+
autoplay: true
|
|
58
|
+
draggable: true
|
|
59
|
+
slidesToShow: 3
|
|
60
|
+
slides:
|
|
61
|
+
- key: slide_one
|
|
62
|
+
- key: slide_two
|
|
63
|
+
- key: slide_three
|
|
64
|
+
- key: slide_four
|
|
65
|
+
responsive:
|
|
66
|
+
- breakpoint: 1024
|
|
67
|
+
settings:
|
|
68
|
+
slidesToShow: 3
|
|
69
|
+
slidesToScroll: 3
|
|
70
|
+
infinite: true
|
|
71
|
+
dots: true
|
|
72
|
+
- breakpoint: 600
|
|
73
|
+
settings:
|
|
74
|
+
slidesToShow: 2
|
|
75
|
+
slidesToScroll: 2
|
|
76
|
+
initialSlide: 2
|
|
77
|
+
- breakpoint: 480
|
|
78
|
+
settings:
|
|
79
|
+
slidesToShow: 1
|
|
80
|
+
slidesToScroll: 1
|
|
81
|
+
areas:
|
|
82
|
+
slide_one:
|
|
83
|
+
blocks:
|
|
84
|
+
- id: side_1
|
|
85
|
+
type: Card
|
|
86
|
+
blocks:
|
|
87
|
+
- id: title_side_1
|
|
88
|
+
type: Title
|
|
89
|
+
properties:
|
|
90
|
+
content: Slide 1
|
|
91
|
+
slide_two:
|
|
92
|
+
blocks:
|
|
93
|
+
- id: side_2
|
|
94
|
+
type: Card
|
|
95
|
+
blocks:
|
|
96
|
+
- id: title_side_2
|
|
97
|
+
type: Title
|
|
98
|
+
properties:
|
|
99
|
+
content: Slide 2
|
|
100
|
+
slide_three:
|
|
101
|
+
blocks:
|
|
102
|
+
- id: side_3
|
|
103
|
+
type: Card
|
|
104
|
+
blocks:
|
|
105
|
+
- id: title_side_3
|
|
106
|
+
type: Title
|
|
107
|
+
properties:
|
|
108
|
+
content: Slide 3
|
|
109
|
+
slide_four:
|
|
110
|
+
blocks:
|
|
111
|
+
- id: side_4
|
|
112
|
+
type: Card
|
|
113
|
+
blocks:
|
|
114
|
+
- id: title_side_4
|
|
115
|
+
type: Title
|
|
116
|
+
properties:
|
|
117
|
+
content: Slide 4
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
See the License for the specific language governing permissions and
|
|
14
14
|
limitations under the License.
|
|
15
15
|
*/ import React from 'react';
|
|
16
|
-
import { Checkbox, ConfigProvider, Space } from 'antd';
|
|
16
|
+
import { Checkbox, Col, ConfigProvider, Row, Space, theme } from 'antd';
|
|
17
17
|
import { type } from '@lowdefy/helpers';
|
|
18
18
|
import { renderHtml, withBlockDefaults } from '@lowdefy/block-utils';
|
|
19
19
|
import Label from '../Label/Label.js';
|
|
@@ -21,6 +21,7 @@ import getSelectedIndex from '../../getSelectedIndex.js';
|
|
|
21
21
|
import useSelectorOptions from '../../useSelectorOptions.js';
|
|
22
22
|
import withTheme from '../withTheme.js';
|
|
23
23
|
const CheckboxSelector = ({ blockId, classNames = {}, components, events, loading, properties, required, styles = {}, validation, value, methods })=>{
|
|
24
|
+
const { token } = theme.useToken();
|
|
24
25
|
const uniqueValueOptions = useSelectorOptions({
|
|
25
26
|
properties,
|
|
26
27
|
methods
|
|
@@ -29,33 +30,17 @@ const CheckboxSelector = ({ blockId, classNames = {}, components, events, loadin
|
|
|
29
30
|
properties,
|
|
30
31
|
multiple: true
|
|
31
32
|
}));
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
methods.triggerEvent({
|
|
44
|
-
name: 'onChange',
|
|
45
|
-
event: {
|
|
46
|
-
value: val
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
},
|
|
50
|
-
value: getSelectedIndex(value, uniqueValueOptions, {
|
|
51
|
-
properties,
|
|
52
|
-
multiple: true
|
|
53
|
-
})
|
|
54
|
-
}, /*#__PURE__*/ React.createElement(Space, {
|
|
55
|
-
direction: properties.direction,
|
|
56
|
-
wrap: type.isNone(properties.wrap) ? true : properties.wrap,
|
|
57
|
-
align: type.isNone(properties.align) ? 'start' : properties.align
|
|
58
|
-
}, uniqueValueOptions.map((opt, i)=>{
|
|
33
|
+
const grid = !type.isNone(properties.columns);
|
|
34
|
+
// Col takes spans, not counts, so a breakpoint map of counts converts per key.
|
|
35
|
+
const colProps = type.isObject(properties.columns) ? Object.fromEntries(Object.entries(properties.columns).map(([breakpoint, columns])=>[
|
|
36
|
+
breakpoint,
|
|
37
|
+
{
|
|
38
|
+
span: 24 / columns
|
|
39
|
+
}
|
|
40
|
+
])) : {
|
|
41
|
+
span: 24 / properties.columns
|
|
42
|
+
};
|
|
43
|
+
const renderOption = (opt, i)=>{
|
|
59
44
|
if (type.isPrimitive(opt)) {
|
|
60
45
|
return /*#__PURE__*/ React.createElement(Checkbox, {
|
|
61
46
|
id: `${blockId}_${i}`,
|
|
@@ -95,7 +80,47 @@ const CheckboxSelector = ({ blockId, classNames = {}, components, events, loadin
|
|
|
95
80
|
}
|
|
96
81
|
}
|
|
97
82
|
}, checkbox);
|
|
98
|
-
}
|
|
83
|
+
};
|
|
84
|
+
const checkboxGroup = /*#__PURE__*/ React.createElement(Checkbox.Group, {
|
|
85
|
+
id: `${blockId}_input`,
|
|
86
|
+
className: classNames.element,
|
|
87
|
+
disabled: properties.disabled || loading,
|
|
88
|
+
// Checkbox.Group is inline-flex and shrink-wraps, so the Row inside it can
|
|
89
|
+
// only fill a group that has been given a width.
|
|
90
|
+
style: grid ? {
|
|
91
|
+
width: '100%',
|
|
92
|
+
...styles.element
|
|
93
|
+
} : styles.element,
|
|
94
|
+
onChange: (newVal)=>{
|
|
95
|
+
const val = [];
|
|
96
|
+
newVal.forEach((nv)=>{
|
|
97
|
+
val.push(type.isPrimitive(uniqueValueOptions[nv]) ? uniqueValueOptions[nv] : uniqueValueOptions[nv].value);
|
|
98
|
+
});
|
|
99
|
+
methods.setValue(val);
|
|
100
|
+
methods.triggerEvent({
|
|
101
|
+
name: 'onChange',
|
|
102
|
+
event: {
|
|
103
|
+
value: val
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
},
|
|
107
|
+
value: getSelectedIndex(value, uniqueValueOptions, {
|
|
108
|
+
properties,
|
|
109
|
+
multiple: true
|
|
110
|
+
})
|
|
111
|
+
}, grid ? /*#__PURE__*/ React.createElement(Row, {
|
|
112
|
+
gutter: type.isNone(properties.gutter) ? [
|
|
113
|
+
token.paddingXS,
|
|
114
|
+
0
|
|
115
|
+
] : properties.gutter
|
|
116
|
+
}, uniqueValueOptions.map((opt, i)=>/*#__PURE__*/ React.createElement(Col, {
|
|
117
|
+
key: i,
|
|
118
|
+
...colProps
|
|
119
|
+
}, renderOption(opt, i)))) : /*#__PURE__*/ React.createElement(Space, {
|
|
120
|
+
direction: properties.direction,
|
|
121
|
+
wrap: type.isNone(properties.wrap) ? true : properties.wrap,
|
|
122
|
+
align: type.isNone(properties.align) ? 'start' : properties.align
|
|
123
|
+
}, uniqueValueOptions.map(renderOption)));
|
|
99
124
|
return /*#__PURE__*/ React.createElement(Label, {
|
|
100
125
|
blockId: blockId,
|
|
101
126
|
methods: methods,
|