@lowdefy/blocks-antd 5.6.0 → 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/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/Button.js +11 -2
- package/dist/blocks/Button/gallery.yaml +718 -0
- package/dist/blocks/Button/meta.js +4 -0
- package/dist/blocks/Button/tests/Button.e2e.yaml +246 -0
- package/dist/blocks/Button/tests.yaml +109 -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/gallery.yaml +781 -0
- 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 +1 -1
- package/dist/blocks/Label/gallery.yaml +762 -0
- 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/gallery.yaml +816 -0
- 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,189 @@
|
|
|
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: paragraphinput
|
|
16
|
+
type: Box
|
|
17
|
+
|
|
18
|
+
events:
|
|
19
|
+
onInit:
|
|
20
|
+
- id: set_defaults
|
|
21
|
+
type: SetState
|
|
22
|
+
params:
|
|
23
|
+
paragraphinput_with_value: Editable paragraph text
|
|
24
|
+
paragraphinput_editable: Click to edit this paragraph
|
|
25
|
+
paragraphinput_onchange: Change me
|
|
26
|
+
paragraphinput_copyable: Copy this paragraph text
|
|
27
|
+
paragraphinput_code: const x = 1;
|
|
28
|
+
paragraphinput_italic: Italic text
|
|
29
|
+
paragraphinput_strong: Bold text
|
|
30
|
+
paragraphinput_underline: Underlined text
|
|
31
|
+
paragraphinput_delete: Deleted text
|
|
32
|
+
paragraphinput_mark: Highlighted text
|
|
33
|
+
paragraphinput_disabled: Disabled text
|
|
34
|
+
paragraphinput_secondary: Secondary text
|
|
35
|
+
paragraphinput_warning: Warning text
|
|
36
|
+
paragraphinput_danger: Danger text
|
|
37
|
+
paragraphinput_success: Success text
|
|
38
|
+
|
|
39
|
+
blocks:
|
|
40
|
+
# ============================================
|
|
41
|
+
# BASIC RENDERING
|
|
42
|
+
# ============================================
|
|
43
|
+
|
|
44
|
+
- id: paragraphinput_basic
|
|
45
|
+
type: ParagraphInput
|
|
46
|
+
|
|
47
|
+
- id: paragraphinput_with_value
|
|
48
|
+
type: ParagraphInput
|
|
49
|
+
|
|
50
|
+
# ============================================
|
|
51
|
+
# PROPERTY TESTS - STYLES
|
|
52
|
+
# ============================================
|
|
53
|
+
|
|
54
|
+
- id: paragraphinput_code
|
|
55
|
+
type: ParagraphInput
|
|
56
|
+
properties:
|
|
57
|
+
code: true
|
|
58
|
+
|
|
59
|
+
- id: paragraphinput_italic
|
|
60
|
+
type: ParagraphInput
|
|
61
|
+
properties:
|
|
62
|
+
italic: true
|
|
63
|
+
|
|
64
|
+
- id: paragraphinput_strong
|
|
65
|
+
type: ParagraphInput
|
|
66
|
+
properties:
|
|
67
|
+
strong: true
|
|
68
|
+
|
|
69
|
+
- id: paragraphinput_underline
|
|
70
|
+
type: ParagraphInput
|
|
71
|
+
properties:
|
|
72
|
+
underline: true
|
|
73
|
+
|
|
74
|
+
- id: paragraphinput_delete
|
|
75
|
+
type: ParagraphInput
|
|
76
|
+
properties:
|
|
77
|
+
delete: true
|
|
78
|
+
|
|
79
|
+
- id: paragraphinput_mark
|
|
80
|
+
type: ParagraphInput
|
|
81
|
+
properties:
|
|
82
|
+
mark: true
|
|
83
|
+
|
|
84
|
+
- id: paragraphinput_disabled
|
|
85
|
+
type: ParagraphInput
|
|
86
|
+
properties:
|
|
87
|
+
disabled: true
|
|
88
|
+
|
|
89
|
+
# ============================================
|
|
90
|
+
# PROPERTY TESTS - TYPES
|
|
91
|
+
# ============================================
|
|
92
|
+
|
|
93
|
+
- id: paragraphinput_secondary
|
|
94
|
+
type: ParagraphInput
|
|
95
|
+
properties:
|
|
96
|
+
type: secondary
|
|
97
|
+
|
|
98
|
+
- id: paragraphinput_warning
|
|
99
|
+
type: ParagraphInput
|
|
100
|
+
properties:
|
|
101
|
+
type: warning
|
|
102
|
+
|
|
103
|
+
- id: paragraphinput_danger
|
|
104
|
+
type: ParagraphInput
|
|
105
|
+
properties:
|
|
106
|
+
type: danger
|
|
107
|
+
|
|
108
|
+
- id: paragraphinput_success
|
|
109
|
+
type: ParagraphInput
|
|
110
|
+
properties:
|
|
111
|
+
type: success
|
|
112
|
+
|
|
113
|
+
# ============================================
|
|
114
|
+
# COPYABLE TEST
|
|
115
|
+
# ============================================
|
|
116
|
+
|
|
117
|
+
- id: paragraphinput_copyable
|
|
118
|
+
type: ParagraphInput
|
|
119
|
+
properties:
|
|
120
|
+
copyable: true
|
|
121
|
+
|
|
122
|
+
# ============================================
|
|
123
|
+
# EDITABLE TEST
|
|
124
|
+
# ============================================
|
|
125
|
+
|
|
126
|
+
- id: paragraphinput_editable
|
|
127
|
+
type: ParagraphInput
|
|
128
|
+
properties:
|
|
129
|
+
editable: true
|
|
130
|
+
|
|
131
|
+
- id: paragraphinput_not_editable
|
|
132
|
+
type: ParagraphInput
|
|
133
|
+
properties:
|
|
134
|
+
editable: false
|
|
135
|
+
|
|
136
|
+
# ============================================
|
|
137
|
+
# EVENT TESTS
|
|
138
|
+
# ============================================
|
|
139
|
+
|
|
140
|
+
- id: paragraphinput_onchange
|
|
141
|
+
type: ParagraphInput
|
|
142
|
+
properties:
|
|
143
|
+
editable: true
|
|
144
|
+
events:
|
|
145
|
+
onChange:
|
|
146
|
+
- id: set_onchange
|
|
147
|
+
type: SetState
|
|
148
|
+
params:
|
|
149
|
+
paragraphinput_onchange_value:
|
|
150
|
+
_event: value
|
|
151
|
+
|
|
152
|
+
- id: onchange_display
|
|
153
|
+
type: Span
|
|
154
|
+
properties:
|
|
155
|
+
content:
|
|
156
|
+
_if:
|
|
157
|
+
test:
|
|
158
|
+
_ne:
|
|
159
|
+
- _state: paragraphinput_onchange_value
|
|
160
|
+
- null
|
|
161
|
+
then:
|
|
162
|
+
_string.concat:
|
|
163
|
+
- 'Value: '
|
|
164
|
+
- _state: paragraphinput_onchange_value
|
|
165
|
+
else: ''
|
|
166
|
+
|
|
167
|
+
- id: paragraphinput_oncopy
|
|
168
|
+
type: ParagraphInput
|
|
169
|
+
properties:
|
|
170
|
+
copyable:
|
|
171
|
+
text: Copy this text
|
|
172
|
+
events:
|
|
173
|
+
onCopy:
|
|
174
|
+
- id: set_oncopy
|
|
175
|
+
type: SetState
|
|
176
|
+
params:
|
|
177
|
+
paragraphinput_oncopy_fired: true
|
|
178
|
+
|
|
179
|
+
- id: oncopy_display
|
|
180
|
+
type: Span
|
|
181
|
+
properties:
|
|
182
|
+
content:
|
|
183
|
+
_if:
|
|
184
|
+
test:
|
|
185
|
+
_eq:
|
|
186
|
+
- _state: paragraphinput_oncopy_fired
|
|
187
|
+
- true
|
|
188
|
+
then: Copy fired
|
|
189
|
+
else: ''
|
|
@@ -0,0 +1,163 @@
|
|
|
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: ParagraphInput
|
|
17
|
+
# - id: 'properties.code: true'
|
|
18
|
+
# type: ParagraphInput
|
|
19
|
+
# properties:
|
|
20
|
+
# code: true
|
|
21
|
+
# - id: 'properties.delete: true'
|
|
22
|
+
# type: ParagraphInput
|
|
23
|
+
# properties:
|
|
24
|
+
# delete: true
|
|
25
|
+
# - id: 'properties.disabled: true'
|
|
26
|
+
# type: ParagraphInput
|
|
27
|
+
# properties:
|
|
28
|
+
# disabled: true
|
|
29
|
+
# - id: 'properties.mark: true'
|
|
30
|
+
# type: ParagraphInput
|
|
31
|
+
# properties:
|
|
32
|
+
# mark: true
|
|
33
|
+
# - id: 'properties.strong: true'
|
|
34
|
+
# type: ParagraphInput
|
|
35
|
+
# properties:
|
|
36
|
+
# strong: true
|
|
37
|
+
# - id: 'properties.italic: true'
|
|
38
|
+
# type: ParagraphInput
|
|
39
|
+
# properties:
|
|
40
|
+
# italic: true
|
|
41
|
+
# - id: 'properties.underline: true'
|
|
42
|
+
# type: ParagraphInput
|
|
43
|
+
# properties:
|
|
44
|
+
# underline: true
|
|
45
|
+
# - id: 'properties.type: secondary'
|
|
46
|
+
# type: ParagraphInput
|
|
47
|
+
# properties:
|
|
48
|
+
# type: secondary
|
|
49
|
+
# - id: 'properties.type: warning'
|
|
50
|
+
# type: ParagraphInput
|
|
51
|
+
# properties:
|
|
52
|
+
# type: warning
|
|
53
|
+
# - id: 'properties.type: danger'
|
|
54
|
+
# type: ParagraphInput
|
|
55
|
+
# properties:
|
|
56
|
+
# type: danger
|
|
57
|
+
# - id: 'properties.copyable: true'
|
|
58
|
+
# type: ParagraphInput
|
|
59
|
+
# properties:
|
|
60
|
+
# copyable: true
|
|
61
|
+
# - id: 'properties.copyable: text: one'
|
|
62
|
+
# type: ParagraphInput
|
|
63
|
+
# properties:
|
|
64
|
+
# copyable:
|
|
65
|
+
# text: one
|
|
66
|
+
# - id: 'properties.copyable: icon'
|
|
67
|
+
# type: ParagraphInput
|
|
68
|
+
# properties:
|
|
69
|
+
# copyable:
|
|
70
|
+
# icon: AiOutlineWarning
|
|
71
|
+
# - id: 'properties.copyable: icon: []'
|
|
72
|
+
# type: ParagraphInput
|
|
73
|
+
# properties:
|
|
74
|
+
# copyable:
|
|
75
|
+
# icon:
|
|
76
|
+
# - AiOutlineWarning
|
|
77
|
+
# - AiOutlineRocket
|
|
78
|
+
# - id: 'properties.copyable: tooltips: []'
|
|
79
|
+
# type: ParagraphInput
|
|
80
|
+
# properties:
|
|
81
|
+
# copyable:
|
|
82
|
+
# tooltips:
|
|
83
|
+
# - Click to copy
|
|
84
|
+
# - Copy done
|
|
85
|
+
# - id: 'properties.ellipsis: true'
|
|
86
|
+
# type: ParagraphInput
|
|
87
|
+
# style:
|
|
88
|
+
# width: 300
|
|
89
|
+
# properties:
|
|
90
|
+
# ellipsis: true
|
|
91
|
+
# - id: 'properties.ellipsis: rows'
|
|
92
|
+
# type: ParagraphInput
|
|
93
|
+
# style:
|
|
94
|
+
# width: 300
|
|
95
|
+
# properties:
|
|
96
|
+
# ellipsis:
|
|
97
|
+
# rows: 3
|
|
98
|
+
# - id: 'properties.ellipsis: expandable, rows'
|
|
99
|
+
# type: ParagraphInput
|
|
100
|
+
# style:
|
|
101
|
+
# width: 300
|
|
102
|
+
# properties:
|
|
103
|
+
# ellipsis:
|
|
104
|
+
# rows: 3
|
|
105
|
+
# expandable: true
|
|
106
|
+
# - id: 'properties.ellipsis: rows, suffix'
|
|
107
|
+
# type: ParagraphInput
|
|
108
|
+
# style:
|
|
109
|
+
# width: 300
|
|
110
|
+
# properties:
|
|
111
|
+
# ellipsis:
|
|
112
|
+
# rows: 3
|
|
113
|
+
# suffix: and other
|
|
114
|
+
# # FIX Jest: not working, might be and antd issue.
|
|
115
|
+
# # - id: 'properties.ellipsis: rows, symbol'
|
|
116
|
+
# # type: ParagraphInput
|
|
117
|
+
# # style:
|
|
118
|
+
# # width: 300
|
|
119
|
+
# # properties:
|
|
120
|
+
# # ellipsis:
|
|
121
|
+
# # symbol: '???'
|
|
122
|
+
|
|
123
|
+
# - id: 'properties.editable: true'
|
|
124
|
+
# type: ParagraphInput
|
|
125
|
+
# properties:
|
|
126
|
+
# editable: true
|
|
127
|
+
# - id: 'properties.editable: false'
|
|
128
|
+
# type: ParagraphInput
|
|
129
|
+
# properties:
|
|
130
|
+
# editable: false
|
|
131
|
+
# - id: 'properties.editable.icon'
|
|
132
|
+
# type: ParagraphInput
|
|
133
|
+
# properties:
|
|
134
|
+
# editable:
|
|
135
|
+
# icon: AiOutlinePlus
|
|
136
|
+
# - id: 'properties.editable.tooltip'
|
|
137
|
+
# type: ParagraphInput
|
|
138
|
+
# properties:
|
|
139
|
+
# editable:
|
|
140
|
+
# tooltip: Change the value
|
|
141
|
+
# # FIX: TypeError: Cannot read property 'focus' of null
|
|
142
|
+
# # - id: 'properties.editable.editing: true'
|
|
143
|
+
# # type: ParagraphInput
|
|
144
|
+
# # properties:
|
|
145
|
+
# # editable:
|
|
146
|
+
# # editing: true
|
|
147
|
+
# - id: 'properties.editable.maxLength: 10'
|
|
148
|
+
# type: ParagraphInput
|
|
149
|
+
# properties:
|
|
150
|
+
# editable:
|
|
151
|
+
# maxLength: 10
|
|
152
|
+
# # - id: 'properties.editable.autoSize: true'
|
|
153
|
+
# # type: ParagraphInput
|
|
154
|
+
# # properties:
|
|
155
|
+
# # editable:
|
|
156
|
+
# # autoSize: true
|
|
157
|
+
# # - id: 'properties.editable.autoSize: min max'
|
|
158
|
+
# # type: ParagraphInput
|
|
159
|
+
# # properties:
|
|
160
|
+
# # editable:
|
|
161
|
+
# # autoSize:
|
|
162
|
+
# # minRows: 2
|
|
163
|
+
# # maxRows: 4
|