@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.
Files changed (288) hide show
  1. package/dist/TagPillRow.js +88 -0
  2. package/dist/blocks/Affix/gallery.yaml +399 -0
  3. package/dist/blocks/Affix/tests/Affix.e2e.yaml +72 -0
  4. package/dist/blocks/Affix/tests.yaml +29 -0
  5. package/dist/blocks/Alert/gallery.yaml +701 -0
  6. package/dist/blocks/Alert/tests/Alert.e2e.yaml +161 -0
  7. package/dist/blocks/Alert/tests.yaml +261 -0
  8. package/dist/blocks/AutoComplete/gallery.yaml +713 -0
  9. package/dist/blocks/AutoComplete/tests/AutoComplete.e2e.yaml +330 -0
  10. package/dist/blocks/AutoComplete/tests.yaml +178 -0
  11. package/dist/blocks/Avatar/gallery.yaml +1037 -0
  12. package/dist/blocks/Avatar/tests/Avatar.e2e.yaml +125 -0
  13. package/dist/blocks/Avatar/tests.yaml +76 -0
  14. package/dist/blocks/Badge/gallery.yaml +1090 -0
  15. package/dist/blocks/Badge/tests/Badge.e2e.yaml +195 -0
  16. package/dist/blocks/Badge/tests.yaml +91 -0
  17. package/dist/blocks/Breadcrumb/gallery.yaml +484 -0
  18. package/dist/blocks/Breadcrumb/tests/Breadcrumb.e2e.yaml +165 -0
  19. package/dist/blocks/Breadcrumb/tests.yaml +106 -0
  20. package/dist/blocks/Button/gallery.yaml +718 -0
  21. package/dist/blocks/Button/tests/Button.e2e.yaml +246 -0
  22. package/dist/blocks/Button/tests.yaml +104 -0
  23. package/dist/blocks/ButtonSelector/gallery.yaml +891 -0
  24. package/dist/blocks/ButtonSelector/tests/ButtonSelector.e2e.yaml +188 -0
  25. package/dist/blocks/ButtonSelector/tests.yaml +167 -0
  26. package/dist/blocks/Calendar/gallery.yaml +128 -0
  27. package/dist/blocks/Calendar/tests/Calendar.e2e.yaml +136 -0
  28. package/dist/blocks/Calendar/tests.yaml +50 -0
  29. package/dist/blocks/Card/gallery.yaml +1035 -0
  30. package/dist/blocks/Card/tests/Card.e2e.yaml +209 -0
  31. package/dist/blocks/Card/tests.yaml +75 -0
  32. package/dist/blocks/Carousel/gallery.yaml +1971 -0
  33. package/dist/blocks/Carousel/tests/Carousel.e2e.yaml +211 -0
  34. package/dist/blocks/Carousel/tests.yaml +117 -0
  35. package/dist/blocks/CheckboxSelector/CheckboxSelector.js +54 -29
  36. package/dist/blocks/CheckboxSelector/gallery.yaml +781 -0
  37. package/dist/blocks/CheckboxSelector/meta.js +24 -4
  38. package/dist/blocks/CheckboxSelector/tests/CheckboxSelector.e2e.yaml +272 -0
  39. package/dist/blocks/CheckboxSelector/tests.yaml +325 -0
  40. package/dist/blocks/CheckboxSwitch/gallery.yaml +457 -0
  41. package/dist/blocks/CheckboxSwitch/tests/CheckboxSwitch.e2e.yaml +126 -0
  42. package/dist/blocks/CheckboxSwitch/tests.yaml +96 -0
  43. package/dist/blocks/Collapse/gallery.yaml +1079 -0
  44. package/dist/blocks/Collapse/tests/Collapse.e2e.yaml +206 -0
  45. package/dist/blocks/Collapse/tests.yaml +265 -0
  46. package/dist/blocks/ColorSelector/gallery.yaml +807 -0
  47. package/dist/blocks/ColorSelector/tests/ColorSelector.e2e.yaml +77 -0
  48. package/dist/blocks/ColorSelector/tests.yaml +84 -0
  49. package/dist/blocks/ConfigProvider/gallery.yaml +1003 -0
  50. package/dist/blocks/ConfigProvider/tests.yaml +62 -0
  51. package/dist/blocks/ConfirmModal/gallery.yaml +1043 -0
  52. package/dist/blocks/ConfirmModal/tests/ConfirmModal.e2e.yaml +410 -0
  53. package/dist/blocks/ConfirmModal/tests.yaml +95 -0
  54. package/dist/blocks/Content/gallery.yaml +528 -0
  55. package/dist/blocks/Content/tests/Content.e2e.yaml +71 -0
  56. package/dist/blocks/Content/tests.yaml +42 -0
  57. package/dist/blocks/ControlledList/ControlledList.js +1 -1
  58. package/dist/blocks/ControlledList/gallery.yaml +481 -0
  59. package/dist/blocks/ControlledList/{style.module.css → style.css} +3 -3
  60. package/dist/blocks/ControlledList/tests/ControlledList.e2e.yaml +161 -0
  61. package/dist/blocks/ControlledList/tests.yaml +57 -0
  62. package/dist/blocks/DateRangeSelector/DateRangeSelector.js +7 -0
  63. package/dist/blocks/DateRangeSelector/e2e.js +28 -2
  64. package/dist/blocks/DateRangeSelector/gallery.yaml +858 -0
  65. package/dist/blocks/DateRangeSelector/meta.js +2 -0
  66. package/dist/blocks/DateRangeSelector/tests/DateRangeSelector.e2e.yaml +204 -0
  67. package/dist/blocks/DateRangeSelector/tests.yaml +129 -0
  68. package/dist/blocks/DateSelector/DateSelector.js +6 -0
  69. package/dist/blocks/DateSelector/e2e.js +28 -2
  70. package/dist/blocks/DateSelector/gallery.yaml +691 -0
  71. package/dist/blocks/DateSelector/meta.js +6 -0
  72. package/dist/blocks/DateSelector/tests/DateSelector.e2e.yaml +229 -0
  73. package/dist/blocks/DateSelector/tests.yaml +117 -0
  74. package/dist/blocks/DateTimeSelector/DateTimeSelector.js +7 -0
  75. package/dist/blocks/DateTimeSelector/e2e.js +26 -2
  76. package/dist/blocks/DateTimeSelector/gallery.yaml +770 -0
  77. package/dist/blocks/DateTimeSelector/meta.js +2 -0
  78. package/dist/blocks/DateTimeSelector/tests/DateTimeSelector.e2e.yaml +163 -0
  79. package/dist/blocks/DateTimeSelector/tests.yaml +140 -0
  80. package/dist/blocks/Descriptions/gallery.yaml +839 -0
  81. package/dist/blocks/Descriptions/tests/Descriptions.e2e.yaml +143 -0
  82. package/dist/blocks/Descriptions/tests.yaml +256 -0
  83. package/dist/blocks/Divider/gallery.yaml +375 -0
  84. package/dist/blocks/Divider/tests/Divider.e2e.yaml +107 -0
  85. package/dist/blocks/Divider/tests.yaml +58 -0
  86. package/dist/blocks/Drawer/gallery.yaml +1257 -0
  87. package/dist/blocks/Drawer/tests/Drawer.e2e.yaml +562 -0
  88. package/dist/blocks/Drawer/tests.yaml +80 -0
  89. package/dist/blocks/DropdownButton/gallery.yaml +606 -0
  90. package/dist/blocks/DropdownButton/tests/DropdownButton.e2e.yaml +243 -0
  91. package/dist/blocks/DropdownMenu/gallery.yaml +578 -0
  92. package/dist/blocks/DropdownMenu/tests/DropdownMenu.e2e.yaml +267 -0
  93. package/dist/blocks/Flex/gallery.yaml +1416 -0
  94. package/dist/blocks/Flex/tests/Flex.e2e.yaml +95 -0
  95. package/dist/blocks/Flex/tests.yaml +92 -0
  96. package/dist/blocks/FloatButton/gallery.yaml +518 -0
  97. package/dist/blocks/FloatButton/tests/FloatButton.e2e.yaml +73 -0
  98. package/dist/blocks/FloatButton/tests.yaml +59 -0
  99. package/dist/blocks/Footer/gallery.yaml +355 -0
  100. package/dist/blocks/Footer/tests/Footer.e2e.yaml +70 -0
  101. package/dist/blocks/Footer/tests.yaml +28 -0
  102. package/dist/blocks/Header/gallery.yaml +249 -0
  103. package/dist/blocks/Header/tests/Header.e2e.yaml +77 -0
  104. package/dist/blocks/Header/tests.yaml +36 -0
  105. package/dist/blocks/Label/Label.js +4 -4
  106. package/dist/blocks/Label/gallery.yaml +762 -0
  107. package/dist/blocks/Label/labelLogic.js +4 -1
  108. package/dist/blocks/Label/{style.module.css → style.css} +28 -28
  109. package/dist/blocks/Label/tests/Label.e2e.yaml +247 -0
  110. package/dist/blocks/Label/tests.yaml +212 -0
  111. package/dist/blocks/Layout/gallery.yaml +548 -0
  112. package/dist/blocks/Layout/tests/Layout.e2e.yaml +86 -0
  113. package/dist/blocks/Layout/tests.yaml +28 -0
  114. package/dist/blocks/ListSelector/gallery.yaml +223 -0
  115. package/dist/blocks/Masonry/gallery.yaml +989 -0
  116. package/dist/blocks/Masonry/tests/Masonry.e2e.yaml +128 -0
  117. package/dist/blocks/Masonry/tests.yaml +42 -0
  118. package/dist/blocks/MasonryList/gallery.yaml +224 -0
  119. package/dist/blocks/MasonryList/tests/MasonryList.e2e.yaml +55 -0
  120. package/dist/blocks/MasonryList/tests.yaml +42 -0
  121. package/dist/blocks/Menu/gallery.yaml +974 -0
  122. package/dist/blocks/Menu/tests/Menu.e2e.yaml +484 -0
  123. package/dist/blocks/Menu/tests.yaml +1053 -0
  124. package/dist/blocks/Message/gallery.yaml +860 -0
  125. package/dist/blocks/Message/tests/Message.e2e.yaml +246 -0
  126. package/dist/blocks/Message/tests.yaml +54 -0
  127. package/dist/blocks/MobileMenu/gallery.yaml +1172 -0
  128. package/dist/blocks/MobileMenu/tests/MobileMenu.e2e.yaml +314 -0
  129. package/dist/blocks/MobileMenu/tests.yaml +359 -0
  130. package/dist/blocks/Modal/gallery.yaml +1039 -0
  131. package/dist/blocks/Modal/tests/Modal.e2e.yaml +493 -0
  132. package/dist/blocks/Modal/tests.yaml +75 -0
  133. package/dist/blocks/MonthSelector/MonthSelector.js +6 -0
  134. package/dist/blocks/MonthSelector/e2e.js +26 -2
  135. package/dist/blocks/MonthSelector/gallery.yaml +687 -0
  136. package/dist/blocks/MonthSelector/meta.js +6 -0
  137. package/dist/blocks/MonthSelector/tests/MonthSelector.e2e.yaml +167 -0
  138. package/dist/blocks/MonthSelector/tests.yaml +124 -0
  139. package/dist/blocks/MultipleSelector/gallery.yaml +1245 -0
  140. package/dist/blocks/MultipleSelector/tests/MultipleSelector.e2e.yaml +445 -0
  141. package/dist/blocks/MultipleSelector/tests.yaml +201 -0
  142. package/dist/blocks/Notification/gallery.yaml +1376 -0
  143. package/dist/blocks/Notification/tests/Notification.e2e.yaml +362 -0
  144. package/dist/blocks/Notification/tests.yaml +97 -0
  145. package/dist/blocks/NumberInput/gallery.yaml +753 -0
  146. package/dist/blocks/NumberInput/tests/NumberInput.e2e.yaml +228 -0
  147. package/dist/blocks/NumberInput/tests.yaml +116 -0
  148. package/dist/blocks/PageHeaderMenu/PageHeaderMenu.js +1 -1
  149. package/dist/blocks/PageHeaderMenu/gallery.yaml +480 -0
  150. package/dist/blocks/PageHeaderMenu/tests/PageHeaderMenu.e2e.yaml +110 -0
  151. package/dist/blocks/PageHeaderMenu/tests.yaml +173 -0
  152. package/dist/blocks/PageSidebarLayout/PageSidebarLayout.js +10 -1
  153. package/dist/blocks/PageSidebarLayout/gallery.yaml +302 -0
  154. package/dist/blocks/PageSidebarLayout/meta.js +1 -0
  155. package/dist/blocks/PageSidebarLayout/tests/PageSidebarLayout.e2e.yaml +216 -0
  156. package/dist/blocks/PageSidebarLayout/tests.yaml +174 -0
  157. package/dist/blocks/PageSiderMenu/PageSiderMenu.js +1 -1
  158. package/dist/blocks/PageSiderMenu/gallery.yaml +516 -0
  159. package/dist/blocks/PageSiderMenu/tests/PageSiderMenu.e2e.yaml +175 -0
  160. package/dist/blocks/PageSiderMenu/tests.yaml +211 -0
  161. package/dist/blocks/Pagination/gallery.yaml +503 -0
  162. package/dist/blocks/Pagination/tests/Pagination.e2e.yaml +159 -0
  163. package/dist/blocks/Pagination/tests.yaml +80 -0
  164. package/dist/blocks/Paragraph/gallery.yaml +458 -0
  165. package/dist/blocks/Paragraph/tests/Paragraph.e2e.yaml +153 -0
  166. package/dist/blocks/Paragraph/tests.yaml +176 -0
  167. package/dist/blocks/ParagraphInput/gallery.yaml +1483 -0
  168. package/dist/blocks/ParagraphInput/tests/ParagraphInput.e2e.yaml +189 -0
  169. package/dist/blocks/ParagraphInput/tests.yaml +163 -0
  170. package/dist/blocks/PasswordInput/gallery.yaml +420 -0
  171. package/dist/blocks/PasswordInput/tests/PasswordInput.e2e.yaml +188 -0
  172. package/dist/blocks/PasswordInput/tests.yaml +78 -0
  173. package/dist/blocks/PhoneNumberInput/gallery.yaml +677 -0
  174. package/dist/blocks/PhoneNumberInput/tests/PhoneNumberInput.e2e.yaml +279 -0
  175. package/dist/blocks/PhoneNumberInput/tests.yaml +25 -0
  176. package/dist/blocks/Popover/gallery.yaml +1301 -0
  177. package/dist/blocks/Popover/tests/Popover.e2e.yaml +249 -0
  178. package/dist/blocks/Popover/tests.yaml +105 -0
  179. package/dist/blocks/Progress/gallery.yaml +772 -0
  180. package/dist/blocks/Progress/tests/Progress.e2e.yaml +167 -0
  181. package/dist/blocks/Progress/tests.yaml +114 -0
  182. package/dist/blocks/QRCode/gallery.yaml +492 -0
  183. package/dist/blocks/QRCode/tests/QRCode.e2e.yaml +66 -0
  184. package/dist/blocks/QRCode/tests.yaml +113 -0
  185. package/dist/blocks/RadioSelector/RadioSelector.js +50 -25
  186. package/dist/blocks/RadioSelector/gallery.yaml +816 -0
  187. package/dist/blocks/RadioSelector/meta.js +23 -3
  188. package/dist/blocks/RadioSelector/tests/RadioSelector.e2e.yaml +269 -0
  189. package/dist/blocks/RadioSelector/tests.yaml +339 -0
  190. package/dist/blocks/RatingSlider/gallery.yaml +627 -0
  191. package/dist/blocks/RatingSlider/tests/RatingSlider.e2e.yaml +188 -0
  192. package/dist/blocks/RatingSlider/tests.yaml +116 -0
  193. package/dist/blocks/Result/gallery.yaml +925 -0
  194. package/dist/blocks/Result/tests/Result.e2e.yaml +126 -0
  195. package/dist/blocks/Result/tests.yaml +75 -0
  196. package/dist/blocks/Search/Search.js +1 -1
  197. package/dist/blocks/Search/SearchModal.js +18 -9
  198. package/dist/blocks/Search/gallery.yaml +170 -0
  199. package/dist/blocks/Search/meta.js +2 -1
  200. package/dist/blocks/Search/{style.module.css → style.css} +19 -12
  201. package/dist/blocks/Search/tests/Search.e2e.yaml +125 -0
  202. package/dist/blocks/Search/useSearchIndex.js +24 -2
  203. package/dist/blocks/SegmentedSelector/gallery.yaml +725 -0
  204. package/dist/blocks/SegmentedSelector/tests/SegmentedSelector.e2e.yaml +115 -0
  205. package/dist/blocks/SegmentedSelector/tests.yaml +141 -0
  206. package/dist/blocks/Selector/gallery.yaml +1055 -0
  207. package/dist/blocks/Selector/tests/Selector.e2e.yaml +427 -0
  208. package/dist/blocks/Selector/tests.yaml +196 -0
  209. package/dist/blocks/Sider/gallery.yaml +994 -0
  210. package/dist/blocks/Sider/tests/Sider.e2e.yaml +162 -0
  211. package/dist/blocks/Sider/tests.yaml +20 -0
  212. package/dist/blocks/Slider/gallery.yaml +600 -0
  213. package/dist/blocks/Slider/tests/Slider.e2e.yaml +190 -0
  214. package/dist/blocks/Slider/tests.yaml +68 -0
  215. package/dist/blocks/Splitter/gallery.yaml +1511 -0
  216. package/dist/blocks/Splitter/tests/Splitter.e2e.yaml +114 -0
  217. package/dist/blocks/Splitter/tests.yaml +79 -0
  218. package/dist/blocks/Statistic/gallery.yaml +460 -0
  219. package/dist/blocks/Statistic/tests/Statistic.e2e.yaml +137 -0
  220. package/dist/blocks/Statistic/tests.yaml +77 -0
  221. package/dist/blocks/Steps/gallery.yaml +550 -0
  222. package/dist/blocks/Switch/gallery.yaml +502 -0
  223. package/dist/blocks/Switch/tests/Switch.e2e.yaml +132 -0
  224. package/dist/blocks/Switch/tests.yaml +87 -0
  225. package/dist/blocks/Tabs/gallery.yaml +1353 -0
  226. package/dist/blocks/Tabs/tests/Tabs.e2e.yaml +370 -0
  227. package/dist/blocks/Tabs/tests.yaml +349 -0
  228. package/dist/blocks/Tag/gallery.yaml +598 -0
  229. package/dist/blocks/Tag/tests/Tag.e2e.yaml +173 -0
  230. package/dist/blocks/Tag/tests.yaml +51 -0
  231. package/dist/blocks/TagMultipleSelector/TagMultipleSelector.js +53 -0
  232. package/dist/blocks/TagMultipleSelector/e2e.js +36 -0
  233. package/dist/blocks/TagMultipleSelector/gallery.yaml +70 -0
  234. package/dist/blocks/TagMultipleSelector/meta.js +91 -0
  235. package/dist/blocks/TagMultipleSelector/tests/TagMultipleSelector.e2e.yaml +93 -0
  236. package/dist/blocks/TagSelector/TagSelector.js +49 -0
  237. package/dist/blocks/TagSelector/e2e.js +36 -0
  238. package/dist/blocks/TagSelector/gallery.yaml +70 -0
  239. package/dist/blocks/TagSelector/meta.js +91 -0
  240. package/dist/blocks/TagSelector/tests/TagSelector.e2e.yaml +93 -0
  241. package/dist/blocks/TextArea/gallery.yaml +618 -0
  242. package/dist/blocks/TextArea/tests/TextArea.e2e.yaml +218 -0
  243. package/dist/blocks/TextArea/tests.yaml +100 -0
  244. package/dist/blocks/TextInput/gallery.yaml +560 -0
  245. package/dist/blocks/TextInput/tests/TextInput.e2e.yaml +287 -0
  246. package/dist/blocks/TextInput/tests.yaml +114 -0
  247. package/dist/blocks/TimelineList/gallery.yaml +431 -0
  248. package/dist/blocks/TimelineList/tests/TimelineList.e2e.yaml +244 -0
  249. package/dist/blocks/TimelineList/tests.yaml +251 -0
  250. package/dist/blocks/Title/gallery.yaml +483 -0
  251. package/dist/blocks/Title/tests/Title.e2e.yaml +180 -0
  252. package/dist/blocks/Title/tests.yaml +175 -0
  253. package/dist/blocks/TitleInput/gallery.yaml +1006 -0
  254. package/dist/blocks/TitleInput/tests/TitleInput.e2e.yaml +195 -0
  255. package/dist/blocks/TitleInput/tests.yaml +181 -0
  256. package/dist/blocks/Tooltip/gallery.yaml +1214 -0
  257. package/dist/blocks/Tooltip/tests/Tooltip.e2e.yaml +195 -0
  258. package/dist/blocks/Tooltip/tests.yaml +92 -0
  259. package/dist/blocks/Tour/gallery.yaml +2305 -0
  260. package/dist/blocks/Tour/tests/Tour.e2e.yaml +90 -0
  261. package/dist/blocks/Tour/tests.yaml +151 -0
  262. package/dist/blocks/TreeInput/gallery.yaml +78 -0
  263. package/dist/blocks/TreeInput/tests/TreeInput.e2e.yaml +139 -0
  264. package/dist/blocks/TreeInput/tests.yaml +140 -0
  265. package/dist/blocks/TreeMultipleSelector/gallery.yaml +67 -0
  266. package/dist/blocks/TreeSelector/gallery.yaml +81 -0
  267. package/dist/blocks/Watermark/gallery.yaml +479 -0
  268. package/dist/blocks/Watermark/tests/Watermark.e2e.yaml +62 -0
  269. package/dist/blocks/Watermark/tests.yaml +86 -0
  270. package/dist/blocks/WeekSelector/WeekSelector.js +6 -0
  271. package/dist/blocks/WeekSelector/e2e.js +26 -2
  272. package/dist/blocks/WeekSelector/gallery.yaml +589 -0
  273. package/dist/blocks/WeekSelector/meta.js +6 -0
  274. package/dist/blocks/WeekSelector/tests/WeekSelector.e2e.yaml +154 -0
  275. package/dist/blocks/WeekSelector/tests.yaml +122 -0
  276. package/dist/blocks.js +2 -0
  277. package/dist/disabledDate.js +91 -19
  278. package/dist/e2e.js +2 -0
  279. package/dist/getPresets.js +151 -0
  280. package/dist/getTagColor.js +44 -0
  281. package/dist/getTagSelectorOptions.js +30 -0
  282. package/dist/metas.js +2 -0
  283. package/dist/pickerPresetsStyle.css +26 -0
  284. package/dist/schemas/disabledDates.js +6 -2
  285. package/dist/schemas/index.js +1 -0
  286. package/dist/schemas/presets.js +111 -0
  287. package/dist/tagSelectorStyle.css +68 -0
  288. package/package.json +13 -13
@@ -0,0 +1,90 @@
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: tour_block
16
+ type: Box
17
+
18
+ blocks:
19
+ # ============================================
20
+ # TOUR TARGETS
21
+ # ============================================
22
+
23
+ - id: tour_target_1
24
+ type: Button
25
+ properties:
26
+ title: Step 1 Target
27
+
28
+ - id: tour_target_2
29
+ type: Button
30
+ properties:
31
+ title: Step 2 Target
32
+
33
+ # ============================================
34
+ # TOUR TRIGGER
35
+ # ============================================
36
+
37
+ - id: tour_trigger
38
+ type: Button
39
+ properties:
40
+ title: Start Tour
41
+ events:
42
+ onClick:
43
+ - id: open_tour
44
+ type: SetState
45
+ params:
46
+ tour_open: true
47
+
48
+ # ============================================
49
+ # TOUR BLOCK
50
+ # ============================================
51
+
52
+ - id: tour_component
53
+ type: Tour
54
+ properties:
55
+ open:
56
+ _state: tour_open
57
+ steps:
58
+ - target: tour_target_1
59
+ title: First Step
60
+ description: This is step one
61
+ - target: tour_target_2
62
+ title: Second Step
63
+ description: This is step two
64
+ events:
65
+ onClose:
66
+ - id: close_tour
67
+ type: SetState
68
+ params:
69
+ tour_open: false
70
+ onChange:
71
+ - id: set_step_changed
72
+ type: SetState
73
+ params:
74
+ tour_step_changed: true
75
+
76
+ # ============================================
77
+ # DISPLAY BLOCKS
78
+ # ============================================
79
+
80
+ - id: tour_close_display
81
+ type: Paragraph
82
+ properties:
83
+ content:
84
+ _if:
85
+ test:
86
+ _eq:
87
+ - _state: tour_open
88
+ - false
89
+ then: Tour closed
90
+ else: ''
@@ -0,0 +1,151 @@
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: Tour
17
+ - id: 'properties.open: true'
18
+ type: Tour
19
+ properties:
20
+ open: true
21
+ steps:
22
+ - title: Step 1
23
+ description: Welcome to the tour.
24
+ - title: Step 2
25
+ description: This is the second step.
26
+ - id: properties.steps
27
+ type: Tour
28
+ properties:
29
+ open: true
30
+ steps:
31
+ - title: Welcome
32
+ description: This is the first step.
33
+ target: my_block_id
34
+ placement: bottom
35
+ - title: Next Feature
36
+ description: Here is the next feature.
37
+ - id: 'properties.current: 1'
38
+ type: Tour
39
+ properties:
40
+ open: true
41
+ current: 1
42
+ steps:
43
+ - title: Step 1
44
+ description: First step.
45
+ - title: Step 2
46
+ description: Second step.
47
+ - id: 'properties.type: default'
48
+ type: Tour
49
+ properties:
50
+ open: true
51
+ type: default
52
+ steps:
53
+ - title: Step 1
54
+ description: Default type tour.
55
+ - id: 'properties.type: primary'
56
+ type: Tour
57
+ properties:
58
+ open: true
59
+ type: primary
60
+ steps:
61
+ - title: Step 1
62
+ description: Primary type tour.
63
+ - id: 'properties.mask: false'
64
+ type: Tour
65
+ properties:
66
+ open: true
67
+ mask: false
68
+ steps:
69
+ - title: Step 1
70
+ description: No mask tour.
71
+ - id: 'properties.arrow: false'
72
+ type: Tour
73
+ properties:
74
+ open: true
75
+ arrow: false
76
+ steps:
77
+ - title: Step 1
78
+ description: No arrow tour.
79
+ - id: 'properties.closable: false'
80
+ type: Tour
81
+ properties:
82
+ open: true
83
+ closable: false
84
+ steps:
85
+ - title: Step 1
86
+ description: Tour without close button.
87
+ - id: 'properties.keyboard: false'
88
+ type: Tour
89
+ properties:
90
+ open: true
91
+ keyboard: false
92
+ steps:
93
+ - title: Step 1
94
+ description: Tour without keyboard navigation.
95
+ - id: 'properties.animated: false'
96
+ type: Tour
97
+ properties:
98
+ open: true
99
+ animated: false
100
+ steps:
101
+ - title: Step 1
102
+ description: Tour without animation.
103
+ - id: 'properties.zIndex: 1001'
104
+ type: Tour
105
+ properties:
106
+ open: true
107
+ zIndex: 1001
108
+ steps:
109
+ - title: Step 1
110
+ description: Tour with custom z-index.
111
+ - id: properties.gap
112
+ type: Tour
113
+ properties:
114
+ open: true
115
+ gap:
116
+ x: 10
117
+ y: 10
118
+ steps:
119
+ - title: Step 1
120
+ description: Tour with gap offset.
121
+ - id: 'properties.disabledInteraction: true'
122
+ type: Tour
123
+ properties:
124
+ open: true
125
+ disabledInteraction: true
126
+ steps:
127
+ - title: Step 1
128
+ description: Tour with disabled interaction.
129
+ - id: properties.steps with cover
130
+ type: Tour
131
+ properties:
132
+ open: true
133
+ steps:
134
+ - title: Step 1
135
+ description: Step with a cover image.
136
+ cover: https://via.placeholder.com/300x150
137
+ - title: Step 2
138
+ description: Step without a cover image.
139
+ - id: properties.steps with per-step closable and mask
140
+ type: Tour
141
+ properties:
142
+ open: true
143
+ steps:
144
+ - title: Step 1
145
+ description: Step with close button hidden.
146
+ closable: false
147
+ mask: false
148
+ - title: Step 2
149
+ description: Step with close button visible.
150
+ closable: true
151
+ mask: true
@@ -0,0 +1,78 @@
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
+ - title: Basic (flat data)
16
+ blocks:
17
+ - id: tree_basic
18
+ type: TreeInput
19
+ properties:
20
+ primaryKey: id
21
+ parentKey: parentId
22
+ valueKey: id
23
+ html: '{{ item.label }}'
24
+ defaultExpandAll: true
25
+ data:
26
+ - { id: 1, label: Engineering }
27
+ - { id: 2, label: Frontend, parentId: 1 }
28
+ - { id: 3, label: Backend, parentId: 1 }
29
+ - { id: 4, label: Operations }
30
+ - { id: 5, label: SRE, parentId: 4 }
31
+ events:
32
+ onChange:
33
+ - id: capture
34
+ type: SetState
35
+ params:
36
+ dept:
37
+ _event: value
38
+ - id: tree_basic_display
39
+ type: Paragraph
40
+ properties:
41
+ content:
42
+ _nunjucks:
43
+ template: 'Selected: {{ dept if dept != null else "—" }}'
44
+ on:
45
+ _state: true
46
+
47
+ - title: Show line + checkboxes
48
+ blocks:
49
+ - id: tree_line
50
+ type: TreeInput
51
+ properties:
52
+ showLine: true
53
+ checkable: true
54
+ primaryKey: id
55
+ parentKey: parentId
56
+ valueKey: id
57
+ html: '{{ item.label }}'
58
+ defaultExpandAll: true
59
+ data:
60
+ - { id: 1, label: Fruits }
61
+ - { id: 2, label: Apple, parentId: 1 }
62
+ - { id: 3, label: Banana, parentId: 1 }
63
+ - { id: 4, label: Vegetables }
64
+ - { id: 5, label: Carrot, parentId: 4 }
65
+
66
+ - title: Options (label/value)
67
+ blocks:
68
+ - id: tree_options
69
+ type: TreeInput
70
+ properties:
71
+ primaryKey: value
72
+ parentKey: parent
73
+ defaultExpandAll: true
74
+ options:
75
+ - { value: eng, label: Engineering }
76
+ - { value: fe, label: Frontend, parent: eng }
77
+ - { value: be, label: Backend, parent: eng }
78
+ - { value: ops, label: Operations }
@@ -0,0 +1,139 @@
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: treeinput
16
+ type: Box
17
+
18
+ events:
19
+ onInit:
20
+ - id: set_defaults
21
+ type: SetState
22
+ params:
23
+ ts_with_value: child1
24
+
25
+ blocks:
26
+ - id: ts_basic
27
+ type: TreeInput
28
+ properties:
29
+ primaryKey: id
30
+ parentKey: parentId
31
+ valueKey: id
32
+ html: '{{ item.label }}'
33
+ defaultExpandAll: true
34
+ data:
35
+ - { id: parent1, label: Parent 1 }
36
+ - { id: child1, label: Child 1, parentId: parent1 }
37
+ - { id: child2, label: Child 2, parentId: parent1 }
38
+ - { id: parent2, label: Parent 2 }
39
+
40
+ - id: ts_with_value
41
+ type: TreeInput
42
+ properties:
43
+ primaryKey: id
44
+ parentKey: parentId
45
+ valueKey: id
46
+ html: '{{ item.label }}'
47
+ defaultExpandAll: true
48
+ data:
49
+ - { id: parent1, label: Parent 1 }
50
+ - { id: child1, label: Child 1, parentId: parent1 }
51
+ - { id: child2, label: Child 2, parentId: parent1 }
52
+
53
+ - id: ts_disabled
54
+ type: TreeInput
55
+ properties:
56
+ disabled: true
57
+ primaryKey: id
58
+ parentKey: parentId
59
+ valueKey: id
60
+ html: '{{ item.label }}'
61
+ data:
62
+ - { id: item1, label: Item 1 }
63
+ - { id: item2, label: Item 2 }
64
+
65
+ - id: ts_show_line
66
+ type: TreeInput
67
+ properties:
68
+ showLine: true
69
+ primaryKey: id
70
+ parentKey: parentId
71
+ valueKey: id
72
+ html: '{{ item.label }}'
73
+ defaultExpandAll: true
74
+ data:
75
+ - { id: parent, label: Parent }
76
+ - { id: child1, label: Child 1, parentId: parent }
77
+ - { id: child2, label: Child 2, parentId: parent }
78
+
79
+ - id: ts_checkable
80
+ type: TreeInput
81
+ properties:
82
+ checkable: true
83
+ primaryKey: id
84
+ parentKey: parentId
85
+ valueKey: id
86
+ html: '{{ item.label }}'
87
+ data:
88
+ - { id: item1, label: Item 1 }
89
+ - { id: item2, label: Item 2 }
90
+ - { id: item3, label: Item 3 }
91
+
92
+ - id: ts_onchange
93
+ type: TreeInput
94
+ properties:
95
+ primaryKey: id
96
+ parentKey: parentId
97
+ valueKey: id
98
+ html: '{{ item.label }}'
99
+ data:
100
+ - { id: parent, label: Parent }
101
+ - { id: apple, label: Apple, parentId: parent }
102
+ - { id: banana, label: Banana, parentId: parent }
103
+ events:
104
+ onChange:
105
+ - id: set_onchange
106
+ type: SetState
107
+ params:
108
+ ts_onchange_value:
109
+ _state: ts_onchange
110
+
111
+ - id: ts_onchange_display
112
+ type: Span
113
+ properties:
114
+ content:
115
+ _if:
116
+ test:
117
+ _ne:
118
+ - _state: ts_onchange_value
119
+ - null
120
+ then:
121
+ _string.concat:
122
+ - 'Selected: '
123
+ - _json.stringify:
124
+ - _state: ts_onchange_value
125
+ else: ''
126
+
127
+ - id: ts_interaction
128
+ type: TreeInput
129
+ properties:
130
+ primaryKey: id
131
+ parentKey: parentId
132
+ valueKey: id
133
+ html: '{{ item.label }}'
134
+ data:
135
+ - { id: fruits, label: Fruits }
136
+ - { id: apple, label: Apple, parentId: fruits }
137
+ - { id: banana, label: Banana, parentId: fruits }
138
+ - { id: vegetables, label: Vegetables }
139
+ - { id: carrot, label: Carrot, parentId: vegetables }
@@ -0,0 +1,140 @@
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: TreeInput
17
+ properties:
18
+ options:
19
+ - label: Node 1
20
+ value: '1'
21
+ children:
22
+ - label: Node 1.1
23
+ value: '1.1'
24
+ - label: Node 1.2
25
+ value: '1.2'
26
+ - label: Node 2
27
+ value: '2'
28
+ - id: 'properties.title: My Tree'
29
+ type: TreeInput
30
+ properties:
31
+ title: My Tree
32
+ options:
33
+ - label: Node 1
34
+ value: '1'
35
+ - id: 'properties.showLine: true'
36
+ type: TreeInput
37
+ properties:
38
+ showLine: true
39
+ options:
40
+ - label: Node 1
41
+ value: '1'
42
+ children:
43
+ - label: Node 1.1
44
+ value: '1.1'
45
+ - label: Node 2
46
+ value: '2'
47
+ - id: 'properties.defaultExpandAll: true'
48
+ type: TreeInput
49
+ properties:
50
+ defaultExpandAll: true
51
+ options:
52
+ - label: Parent
53
+ value: parent
54
+ children:
55
+ - label: Child 1
56
+ value: child1
57
+ - label: Child 2
58
+ value: child2
59
+ - id: 'properties.checkable: true'
60
+ type: TreeInput
61
+ properties:
62
+ checkable: true
63
+ options:
64
+ - label: Node 1
65
+ value: '1'
66
+ children:
67
+ - label: Node 1.1
68
+ value: '1.1'
69
+ - label: Node 2
70
+ value: '2'
71
+ - id: 'properties.disabled: true'
72
+ type: TreeInput
73
+ properties:
74
+ disabled: true
75
+ options:
76
+ - label: Node 1
77
+ value: '1'
78
+ - id: 'properties.selectable: false'
79
+ type: TreeInput
80
+ properties:
81
+ selectable: false
82
+ options:
83
+ - label: Node 1
84
+ value: '1'
85
+ - id: 'properties.label title: My Tree Title'
86
+ type: TreeInput
87
+ properties:
88
+ label:
89
+ title: My Tree Title
90
+ options:
91
+ - label: Node 1
92
+ value: '1'
93
+ - id: 'properties.label span: 12'
94
+ type: TreeInput
95
+ properties:
96
+ label:
97
+ span: 12
98
+ options:
99
+ - label: Node 1
100
+ value: '1'
101
+ - id: 'properties.label align: right'
102
+ type: TreeInput
103
+ properties:
104
+ label:
105
+ align: right
106
+ options:
107
+ - label: Node 1
108
+ value: '1'
109
+ - id: 'properties.label inline: true'
110
+ type: TreeInput
111
+ properties:
112
+ label:
113
+ inline: true
114
+ options:
115
+ - label: Node 1
116
+ value: '1'
117
+ - id: 'properties.label disabled: true'
118
+ type: TreeInput
119
+ properties:
120
+ label:
121
+ disabled: true
122
+ options:
123
+ - label: Node 1
124
+ value: '1'
125
+ - id: 'properties.label colon: false'
126
+ type: TreeInput
127
+ properties:
128
+ label:
129
+ colon: false
130
+ options:
131
+ - label: Node 1
132
+ value: '1'
133
+ - id: 'properties.label extra: showing extra'
134
+ type: TreeInput
135
+ properties:
136
+ label:
137
+ extra: showing extra
138
+ options:
139
+ - label: Node 1
140
+ value: '1'
@@ -0,0 +1,67 @@
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
+ - title: Basic (flat data, tags)
16
+ blocks:
17
+ - id: basic_tree_multiple
18
+ type: TreeMultipleSelector
19
+ properties:
20
+ title: Categories
21
+ primaryKey: id
22
+ parentKey: parentId
23
+ valueKey: id
24
+ html: '{{ item.label }}'
25
+ treeDefaultExpandAll: true
26
+ data:
27
+ - { id: 1, label: Electronics }
28
+ - { id: 2, label: Phones, parentId: 1 }
29
+ - { id: 3, label: Laptops, parentId: 1 }
30
+ - { id: 4, label: Clothing }
31
+ - { id: 5, label: Shirts, parentId: 4 }
32
+ - { id: 6, label: Shoes, parentId: 4 }
33
+
34
+ - title: Checkable
35
+ blocks:
36
+ - id: checkable_tree_multiple
37
+ type: TreeMultipleSelector
38
+ properties:
39
+ title: Permissions
40
+ checkable: true
41
+ showCheckedStrategy: SHOW_CHILD
42
+ primaryKey: id
43
+ parentKey: parentId
44
+ valueKey: id
45
+ html: '{{ item.label }}'
46
+ treeDefaultExpandAll: true
47
+ data:
48
+ - { id: 1, label: Read }
49
+ - { id: 2, label: Write }
50
+ - { id: 3, label: Create, parentId: 2 }
51
+ - { id: 4, label: Update, parentId: 2 }
52
+ - { id: 5, label: Admin }
53
+ events:
54
+ onChange:
55
+ - id: capture
56
+ type: SetState
57
+ params:
58
+ perms:
59
+ _event: value
60
+ - id: checkable_tree_display
61
+ type: Paragraph
62
+ properties:
63
+ content:
64
+ _nunjucks:
65
+ template: 'Selected: {{ perms }}'
66
+ on:
67
+ _state: true