@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.
Files changed (285) 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/Button.js +11 -2
  21. package/dist/blocks/Button/gallery.yaml +718 -0
  22. package/dist/blocks/Button/meta.js +4 -0
  23. package/dist/blocks/Button/tests/Button.e2e.yaml +246 -0
  24. package/dist/blocks/Button/tests.yaml +109 -0
  25. package/dist/blocks/ButtonSelector/gallery.yaml +891 -0
  26. package/dist/blocks/ButtonSelector/tests/ButtonSelector.e2e.yaml +188 -0
  27. package/dist/blocks/ButtonSelector/tests.yaml +167 -0
  28. package/dist/blocks/Calendar/gallery.yaml +128 -0
  29. package/dist/blocks/Calendar/tests/Calendar.e2e.yaml +136 -0
  30. package/dist/blocks/Calendar/tests.yaml +50 -0
  31. package/dist/blocks/Card/gallery.yaml +1035 -0
  32. package/dist/blocks/Card/tests/Card.e2e.yaml +209 -0
  33. package/dist/blocks/Card/tests.yaml +75 -0
  34. package/dist/blocks/Carousel/gallery.yaml +1971 -0
  35. package/dist/blocks/Carousel/tests/Carousel.e2e.yaml +211 -0
  36. package/dist/blocks/Carousel/tests.yaml +117 -0
  37. package/dist/blocks/CheckboxSelector/gallery.yaml +781 -0
  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 +1 -1
  106. package/dist/blocks/Label/gallery.yaml +762 -0
  107. package/dist/blocks/Label/{style.module.css → style.css} +28 -28
  108. package/dist/blocks/Label/tests/Label.e2e.yaml +247 -0
  109. package/dist/blocks/Label/tests.yaml +212 -0
  110. package/dist/blocks/Layout/gallery.yaml +548 -0
  111. package/dist/blocks/Layout/tests/Layout.e2e.yaml +86 -0
  112. package/dist/blocks/Layout/tests.yaml +28 -0
  113. package/dist/blocks/ListSelector/gallery.yaml +223 -0
  114. package/dist/blocks/Masonry/gallery.yaml +989 -0
  115. package/dist/blocks/Masonry/tests/Masonry.e2e.yaml +128 -0
  116. package/dist/blocks/Masonry/tests.yaml +42 -0
  117. package/dist/blocks/MasonryList/gallery.yaml +224 -0
  118. package/dist/blocks/MasonryList/tests/MasonryList.e2e.yaml +55 -0
  119. package/dist/blocks/MasonryList/tests.yaml +42 -0
  120. package/dist/blocks/Menu/gallery.yaml +974 -0
  121. package/dist/blocks/Menu/tests/Menu.e2e.yaml +484 -0
  122. package/dist/blocks/Menu/tests.yaml +1053 -0
  123. package/dist/blocks/Message/gallery.yaml +860 -0
  124. package/dist/blocks/Message/tests/Message.e2e.yaml +246 -0
  125. package/dist/blocks/Message/tests.yaml +54 -0
  126. package/dist/blocks/MobileMenu/gallery.yaml +1172 -0
  127. package/dist/blocks/MobileMenu/tests/MobileMenu.e2e.yaml +314 -0
  128. package/dist/blocks/MobileMenu/tests.yaml +359 -0
  129. package/dist/blocks/Modal/gallery.yaml +1039 -0
  130. package/dist/blocks/Modal/tests/Modal.e2e.yaml +493 -0
  131. package/dist/blocks/Modal/tests.yaml +75 -0
  132. package/dist/blocks/MonthSelector/MonthSelector.js +6 -0
  133. package/dist/blocks/MonthSelector/e2e.js +26 -2
  134. package/dist/blocks/MonthSelector/gallery.yaml +687 -0
  135. package/dist/blocks/MonthSelector/meta.js +6 -0
  136. package/dist/blocks/MonthSelector/tests/MonthSelector.e2e.yaml +167 -0
  137. package/dist/blocks/MonthSelector/tests.yaml +124 -0
  138. package/dist/blocks/MultipleSelector/gallery.yaml +1245 -0
  139. package/dist/blocks/MultipleSelector/tests/MultipleSelector.e2e.yaml +445 -0
  140. package/dist/blocks/MultipleSelector/tests.yaml +201 -0
  141. package/dist/blocks/Notification/gallery.yaml +1376 -0
  142. package/dist/blocks/Notification/tests/Notification.e2e.yaml +362 -0
  143. package/dist/blocks/Notification/tests.yaml +97 -0
  144. package/dist/blocks/NumberInput/gallery.yaml +753 -0
  145. package/dist/blocks/NumberInput/tests/NumberInput.e2e.yaml +228 -0
  146. package/dist/blocks/NumberInput/tests.yaml +116 -0
  147. package/dist/blocks/PageHeaderMenu/PageHeaderMenu.js +1 -1
  148. package/dist/blocks/PageHeaderMenu/gallery.yaml +480 -0
  149. package/dist/blocks/PageHeaderMenu/tests/PageHeaderMenu.e2e.yaml +110 -0
  150. package/dist/blocks/PageHeaderMenu/tests.yaml +173 -0
  151. package/dist/blocks/PageSidebarLayout/PageSidebarLayout.js +10 -1
  152. package/dist/blocks/PageSidebarLayout/gallery.yaml +302 -0
  153. package/dist/blocks/PageSidebarLayout/meta.js +1 -0
  154. package/dist/blocks/PageSidebarLayout/tests/PageSidebarLayout.e2e.yaml +216 -0
  155. package/dist/blocks/PageSidebarLayout/tests.yaml +174 -0
  156. package/dist/blocks/PageSiderMenu/PageSiderMenu.js +1 -1
  157. package/dist/blocks/PageSiderMenu/gallery.yaml +516 -0
  158. package/dist/blocks/PageSiderMenu/tests/PageSiderMenu.e2e.yaml +175 -0
  159. package/dist/blocks/PageSiderMenu/tests.yaml +211 -0
  160. package/dist/blocks/Pagination/gallery.yaml +503 -0
  161. package/dist/blocks/Pagination/tests/Pagination.e2e.yaml +159 -0
  162. package/dist/blocks/Pagination/tests.yaml +80 -0
  163. package/dist/blocks/Paragraph/gallery.yaml +458 -0
  164. package/dist/blocks/Paragraph/tests/Paragraph.e2e.yaml +153 -0
  165. package/dist/blocks/Paragraph/tests.yaml +176 -0
  166. package/dist/blocks/ParagraphInput/gallery.yaml +1483 -0
  167. package/dist/blocks/ParagraphInput/tests/ParagraphInput.e2e.yaml +189 -0
  168. package/dist/blocks/ParagraphInput/tests.yaml +163 -0
  169. package/dist/blocks/PasswordInput/gallery.yaml +420 -0
  170. package/dist/blocks/PasswordInput/tests/PasswordInput.e2e.yaml +188 -0
  171. package/dist/blocks/PasswordInput/tests.yaml +78 -0
  172. package/dist/blocks/PhoneNumberInput/gallery.yaml +677 -0
  173. package/dist/blocks/PhoneNumberInput/tests/PhoneNumberInput.e2e.yaml +279 -0
  174. package/dist/blocks/PhoneNumberInput/tests.yaml +25 -0
  175. package/dist/blocks/Popover/gallery.yaml +1301 -0
  176. package/dist/blocks/Popover/tests/Popover.e2e.yaml +249 -0
  177. package/dist/blocks/Popover/tests.yaml +105 -0
  178. package/dist/blocks/Progress/gallery.yaml +772 -0
  179. package/dist/blocks/Progress/tests/Progress.e2e.yaml +167 -0
  180. package/dist/blocks/Progress/tests.yaml +114 -0
  181. package/dist/blocks/QRCode/gallery.yaml +492 -0
  182. package/dist/blocks/QRCode/tests/QRCode.e2e.yaml +66 -0
  183. package/dist/blocks/QRCode/tests.yaml +113 -0
  184. package/dist/blocks/RadioSelector/gallery.yaml +816 -0
  185. package/dist/blocks/RadioSelector/tests/RadioSelector.e2e.yaml +269 -0
  186. package/dist/blocks/RadioSelector/tests.yaml +339 -0
  187. package/dist/blocks/RatingSlider/gallery.yaml +627 -0
  188. package/dist/blocks/RatingSlider/tests/RatingSlider.e2e.yaml +188 -0
  189. package/dist/blocks/RatingSlider/tests.yaml +116 -0
  190. package/dist/blocks/Result/gallery.yaml +925 -0
  191. package/dist/blocks/Result/tests/Result.e2e.yaml +126 -0
  192. package/dist/blocks/Result/tests.yaml +75 -0
  193. package/dist/blocks/Search/Search.js +1 -1
  194. package/dist/blocks/Search/SearchModal.js +18 -9
  195. package/dist/blocks/Search/gallery.yaml +170 -0
  196. package/dist/blocks/Search/meta.js +2 -1
  197. package/dist/blocks/Search/{style.module.css → style.css} +19 -12
  198. package/dist/blocks/Search/tests/Search.e2e.yaml +125 -0
  199. package/dist/blocks/Search/useSearchIndex.js +24 -2
  200. package/dist/blocks/SegmentedSelector/gallery.yaml +725 -0
  201. package/dist/blocks/SegmentedSelector/tests/SegmentedSelector.e2e.yaml +115 -0
  202. package/dist/blocks/SegmentedSelector/tests.yaml +141 -0
  203. package/dist/blocks/Selector/gallery.yaml +1055 -0
  204. package/dist/blocks/Selector/tests/Selector.e2e.yaml +427 -0
  205. package/dist/blocks/Selector/tests.yaml +196 -0
  206. package/dist/blocks/Sider/gallery.yaml +994 -0
  207. package/dist/blocks/Sider/tests/Sider.e2e.yaml +162 -0
  208. package/dist/blocks/Sider/tests.yaml +20 -0
  209. package/dist/blocks/Slider/gallery.yaml +600 -0
  210. package/dist/blocks/Slider/tests/Slider.e2e.yaml +190 -0
  211. package/dist/blocks/Slider/tests.yaml +68 -0
  212. package/dist/blocks/Splitter/gallery.yaml +1511 -0
  213. package/dist/blocks/Splitter/tests/Splitter.e2e.yaml +114 -0
  214. package/dist/blocks/Splitter/tests.yaml +79 -0
  215. package/dist/blocks/Statistic/gallery.yaml +460 -0
  216. package/dist/blocks/Statistic/tests/Statistic.e2e.yaml +137 -0
  217. package/dist/blocks/Statistic/tests.yaml +77 -0
  218. package/dist/blocks/Steps/gallery.yaml +550 -0
  219. package/dist/blocks/Switch/gallery.yaml +502 -0
  220. package/dist/blocks/Switch/tests/Switch.e2e.yaml +132 -0
  221. package/dist/blocks/Switch/tests.yaml +87 -0
  222. package/dist/blocks/Tabs/gallery.yaml +1353 -0
  223. package/dist/blocks/Tabs/tests/Tabs.e2e.yaml +370 -0
  224. package/dist/blocks/Tabs/tests.yaml +349 -0
  225. package/dist/blocks/Tag/gallery.yaml +598 -0
  226. package/dist/blocks/Tag/tests/Tag.e2e.yaml +173 -0
  227. package/dist/blocks/Tag/tests.yaml +51 -0
  228. package/dist/blocks/TagMultipleSelector/TagMultipleSelector.js +53 -0
  229. package/dist/blocks/TagMultipleSelector/e2e.js +36 -0
  230. package/dist/blocks/TagMultipleSelector/gallery.yaml +70 -0
  231. package/dist/blocks/TagMultipleSelector/meta.js +91 -0
  232. package/dist/blocks/TagMultipleSelector/tests/TagMultipleSelector.e2e.yaml +93 -0
  233. package/dist/blocks/TagSelector/TagSelector.js +49 -0
  234. package/dist/blocks/TagSelector/e2e.js +36 -0
  235. package/dist/blocks/TagSelector/gallery.yaml +70 -0
  236. package/dist/blocks/TagSelector/meta.js +91 -0
  237. package/dist/blocks/TagSelector/tests/TagSelector.e2e.yaml +93 -0
  238. package/dist/blocks/TextArea/gallery.yaml +618 -0
  239. package/dist/blocks/TextArea/tests/TextArea.e2e.yaml +218 -0
  240. package/dist/blocks/TextArea/tests.yaml +100 -0
  241. package/dist/blocks/TextInput/gallery.yaml +560 -0
  242. package/dist/blocks/TextInput/tests/TextInput.e2e.yaml +287 -0
  243. package/dist/blocks/TextInput/tests.yaml +114 -0
  244. package/dist/blocks/TimelineList/gallery.yaml +431 -0
  245. package/dist/blocks/TimelineList/tests/TimelineList.e2e.yaml +244 -0
  246. package/dist/blocks/TimelineList/tests.yaml +251 -0
  247. package/dist/blocks/Title/gallery.yaml +483 -0
  248. package/dist/blocks/Title/tests/Title.e2e.yaml +180 -0
  249. package/dist/blocks/Title/tests.yaml +175 -0
  250. package/dist/blocks/TitleInput/gallery.yaml +1006 -0
  251. package/dist/blocks/TitleInput/tests/TitleInput.e2e.yaml +195 -0
  252. package/dist/blocks/TitleInput/tests.yaml +181 -0
  253. package/dist/blocks/Tooltip/gallery.yaml +1214 -0
  254. package/dist/blocks/Tooltip/tests/Tooltip.e2e.yaml +195 -0
  255. package/dist/blocks/Tooltip/tests.yaml +92 -0
  256. package/dist/blocks/Tour/gallery.yaml +2305 -0
  257. package/dist/blocks/Tour/tests/Tour.e2e.yaml +90 -0
  258. package/dist/blocks/Tour/tests.yaml +151 -0
  259. package/dist/blocks/TreeInput/gallery.yaml +78 -0
  260. package/dist/blocks/TreeInput/tests/TreeInput.e2e.yaml +139 -0
  261. package/dist/blocks/TreeInput/tests.yaml +140 -0
  262. package/dist/blocks/TreeMultipleSelector/gallery.yaml +67 -0
  263. package/dist/blocks/TreeSelector/gallery.yaml +81 -0
  264. package/dist/blocks/Watermark/gallery.yaml +479 -0
  265. package/dist/blocks/Watermark/tests/Watermark.e2e.yaml +62 -0
  266. package/dist/blocks/Watermark/tests.yaml +86 -0
  267. package/dist/blocks/WeekSelector/WeekSelector.js +6 -0
  268. package/dist/blocks/WeekSelector/e2e.js +26 -2
  269. package/dist/blocks/WeekSelector/gallery.yaml +589 -0
  270. package/dist/blocks/WeekSelector/meta.js +6 -0
  271. package/dist/blocks/WeekSelector/tests/WeekSelector.e2e.yaml +154 -0
  272. package/dist/blocks/WeekSelector/tests.yaml +122 -0
  273. package/dist/blocks.js +2 -0
  274. package/dist/disabledDate.js +91 -19
  275. package/dist/e2e.js +2 -0
  276. package/dist/getPresets.js +151 -0
  277. package/dist/getTagColor.js +44 -0
  278. package/dist/getTagSelectorOptions.js +30 -0
  279. package/dist/metas.js +2 -0
  280. package/dist/pickerPresetsStyle.css +26 -0
  281. package/dist/schemas/disabledDates.js +6 -2
  282. package/dist/schemas/index.js +1 -0
  283. package/dist/schemas/presets.js +111 -0
  284. package/dist/tagSelectorStyle.css +68 -0
  285. package/package.json +13 -13
@@ -0,0 +1,314 @@
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: mobilemenu
16
+ type: Box
17
+
18
+ blocks:
19
+ # ============================================
20
+ # BASIC RENDERING
21
+ # ============================================
22
+
23
+ - id: mm_basic
24
+ type: MobileMenu
25
+ properties:
26
+ theme: light
27
+ links:
28
+ - id: mm_link1
29
+ type: MenuLink
30
+ properties:
31
+ title: Home
32
+ - id: mm_link2
33
+ type: MenuLink
34
+ properties:
35
+ title: About
36
+ - id: mm_link3
37
+ type: MenuLink
38
+ properties:
39
+ title: Contact
40
+
41
+ # ============================================
42
+ # THEME TESTS
43
+ # ============================================
44
+
45
+ - id: mm_dark
46
+ type: MobileMenu
47
+ properties:
48
+ theme: dark
49
+ links:
50
+ - id: mm_dark_link1
51
+ type: MenuLink
52
+ properties:
53
+ title: Dark Item 1
54
+ - id: mm_dark_link2
55
+ type: MenuLink
56
+ properties:
57
+ title: Dark Item 2
58
+
59
+ # ============================================
60
+ # PROPERTY TESTS
61
+ # ============================================
62
+
63
+ - id: mm_with_drawer
64
+ type: MobileMenu
65
+ properties:
66
+ theme: light
67
+ drawer:
68
+ title: Custom Drawer Title
69
+ placement: right
70
+ links:
71
+ - id: mm_drawer_link1
72
+ type: MenuLink
73
+ properties:
74
+ title: Drawer Item 1
75
+ - id: mm_drawer_link2
76
+ type: MenuLink
77
+ properties:
78
+ title: Drawer Item 2
79
+
80
+ - id: mm_with_groups
81
+ type: MobileMenu
82
+ properties:
83
+ theme: light
84
+ links:
85
+ - id: mm_group
86
+ type: MenuGroup
87
+ properties:
88
+ title: Settings
89
+ links:
90
+ - id: mm_sub1
91
+ type: MenuLink
92
+ properties:
93
+ title: General
94
+ - id: mm_sub2
95
+ type: MenuLink
96
+ properties:
97
+ title: Security
98
+
99
+ # ============================================
100
+ # METHOD TESTS
101
+ # ============================================
102
+
103
+ - id: mm_methods
104
+ type: MobileMenu
105
+ properties:
106
+ theme: light
107
+ links:
108
+ - id: mm_method_link1
109
+ type: MenuLink
110
+ properties:
111
+ title: Method Item
112
+
113
+ - id: open_mm_methods
114
+ type: Button
115
+ properties:
116
+ title: Open Menu
117
+ events:
118
+ onClick:
119
+ - id: open_menu
120
+ type: CallMethod
121
+ params:
122
+ blockId: mm_methods
123
+ method: setOpen
124
+ args:
125
+ - open: true
126
+
127
+ - id: close_mm_methods
128
+ type: Button
129
+ properties:
130
+ title: Close Menu
131
+ events:
132
+ onClick:
133
+ - id: close_menu
134
+ type: CallMethod
135
+ params:
136
+ blockId: mm_methods
137
+ method: setOpen
138
+ args:
139
+ - open: false
140
+
141
+ - id: toggle_mm_methods
142
+ type: Button
143
+ properties:
144
+ title: Toggle Menu
145
+ events:
146
+ onClick:
147
+ - id: toggle_menu
148
+ type: CallMethod
149
+ params:
150
+ blockId: mm_methods
151
+ method: toggleOpen
152
+
153
+ # ============================================
154
+ # EVENT TESTS
155
+ # ============================================
156
+
157
+ - id: mm_events
158
+ type: MobileMenu
159
+ properties:
160
+ theme: light
161
+ links:
162
+ - id: mm_event_link1
163
+ type: MenuLink
164
+ properties:
165
+ title: Event Item 1
166
+ - id: mm_event_link2
167
+ type: MenuLink
168
+ properties:
169
+ title: Event Item 2
170
+ events:
171
+ onToggleDrawer:
172
+ - id: set_toggle_fired
173
+ type: SetState
174
+ params:
175
+ mm_toggle_fired: true
176
+ onMenuItemClick:
177
+ - id: set_item_clicked
178
+ type: SetState
179
+ params:
180
+ mm_item_clicked:
181
+ _event: key
182
+
183
+ - id: ontoggle_display
184
+ type: Span
185
+ properties:
186
+ content:
187
+ _if:
188
+ test:
189
+ _eq:
190
+ - _state: mm_toggle_fired
191
+ - true
192
+ then: Toggle fired
193
+ else: ''
194
+
195
+ - id: onclick_display
196
+ type: Span
197
+ properties:
198
+ content:
199
+ _if:
200
+ test:
201
+ _ne:
202
+ - _state: mm_item_clicked
203
+ - null
204
+ then:
205
+ _string.concat:
206
+ - 'Clicked: '
207
+ - _state: mm_item_clicked
208
+ else: ''
209
+
210
+ # ============================================
211
+ # ITEM TARGETING TESTS
212
+ # ============================================
213
+
214
+ - id: mm_targeting
215
+ type: MobileMenu
216
+ properties:
217
+ theme: light
218
+ links:
219
+ - id: mm_target_home
220
+ type: MenuLink
221
+ properties:
222
+ title: Home
223
+ - id: mm_target_dashboard
224
+ pageId: mm_dashboard_page
225
+ type: MenuLink
226
+ properties:
227
+ title: Dashboard
228
+ - id: mm_target_users
229
+ type: MenuLink
230
+ properties:
231
+ title: Users
232
+ - id: mm_settings_group
233
+ type: MenuGroup
234
+ properties:
235
+ title: Settings
236
+ links:
237
+ - id: mm_general_settings
238
+ type: MenuLink
239
+ properties:
240
+ title: General
241
+ - id: mm_security_settings
242
+ type: MenuLink
243
+ properties:
244
+ title: Security
245
+ events:
246
+ onMenuItemClick:
247
+ - id: set_mm_targeting_clicked
248
+ type: SetState
249
+ params:
250
+ mm_targeting_clicked_key:
251
+ _event: key
252
+
253
+ - id: mm_targeting_display
254
+ type: Span
255
+ properties:
256
+ content:
257
+ _if:
258
+ test:
259
+ _ne:
260
+ - _state: mm_targeting_clicked_key
261
+ - null
262
+ then:
263
+ _string.concat:
264
+ - 'Clicked: '
265
+ - _state: mm_targeting_clicked_key
266
+ else: ''
267
+
268
+ # ============================================
269
+ # LOGO TESTS
270
+ # ============================================
271
+
272
+ - id: mm_with_logo
273
+ type: MobileMenu
274
+ properties:
275
+ theme: light
276
+ logo:
277
+ src: /test-logo.png
278
+ alt: Test Logo
279
+ links:
280
+ - id: mm_logo_link1
281
+ type: MenuLink
282
+ properties:
283
+ title: Home
284
+ - id: mm_logo_link2
285
+ type: MenuLink
286
+ properties:
287
+ title: About
288
+
289
+ # ============================================
290
+ # DRAWER CONTENT AND FOOTER SLOT TESTS
291
+ # ============================================
292
+
293
+ - id: mm_with_slots
294
+ type: MobileMenu
295
+ properties:
296
+ theme: light
297
+ links:
298
+ - id: mm_slot_link1
299
+ type: MenuLink
300
+ properties:
301
+ title: Item 1
302
+ slots:
303
+ drawerContent:
304
+ blocks:
305
+ - id: mm_drawer_content_text
306
+ type: Span
307
+ properties:
308
+ content: Drawer Content Below Menu
309
+ drawerFooter:
310
+ blocks:
311
+ - id: mm_drawer_footer_text
312
+ type: Span
313
+ properties:
314
+ content: Drawer Footer Text
@@ -0,0 +1,359 @@
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: MobileMenu
17
+ - id: properties.links
18
+ type: MobileMenu
19
+ properties:
20
+ links:
21
+ - id: Menu_item_one
22
+ type: MenuLink
23
+ pageId: page_1
24
+ - id: Menu Item two
25
+ type: MenuLink
26
+ pageId: page_2
27
+ - id: 'properties.icon'
28
+ type: MobileMenu
29
+ properties:
30
+ links:
31
+ - id: Menu_item_one
32
+ type: MenuLink
33
+ pageId: page_1
34
+ properties:
35
+ icon: AiFillRocket
36
+ - id: Menu Item two
37
+ type: MenuLink
38
+ pageId: page_2
39
+ properties:
40
+ icon: AiFillVideoCamera
41
+ - id: 'properties.title'
42
+ type: MobileMenu
43
+ properties:
44
+ links:
45
+ - id: Menu_item_one
46
+ type: MenuLink
47
+ pageId: page_1
48
+ properties:
49
+ title: Title Menu Item 1
50
+ icon: AiFillRocket
51
+ - id: Menu Item two
52
+ type: MenuLink
53
+ pageId: page_2
54
+ properties:
55
+ title: Title Menu Item 2
56
+ icon: AiFillVideoCamera
57
+ - id: 'properties.MenuGroup with MenuLInks'
58
+ type: MobileMenu
59
+ properties:
60
+ links:
61
+ - id: menu_group_1
62
+ type: MenuGroup
63
+ properties:
64
+ title: Menu Group 1
65
+ links:
66
+ - id: menu_item_1
67
+ type: MenuLink
68
+ PageId: page_1_1
69
+ properties:
70
+ title: Menu Item one
71
+ - id: menu_item_2
72
+ type: MenuLink
73
+ PageId: page_1_2
74
+ properties:
75
+ title: Menu Item two
76
+ - id: 'properties.subMenuOpenDelay: 3'
77
+ type: MobileMenu
78
+ properties:
79
+ subMenuOpenDelay: 3
80
+ links:
81
+ - id: menu_group_1
82
+ type: MenuGroup
83
+ properties:
84
+ title: Menu Group 1
85
+ links:
86
+ - id: menu_item_1
87
+ type: MenuLink
88
+ pageId: page_1_1
89
+ properties:
90
+ title: Menu Item one
91
+ - id: menu_item_2
92
+ type: MenuLink
93
+ PageId: page_1_2
94
+ properties:
95
+ title: Menu Item two
96
+ - id: 'properties.subMenuCloseDelay: 3'
97
+ type: MobileMenu
98
+ properties:
99
+ subMenuCloseDelay: 3
100
+ links:
101
+ - id: menu_group_1
102
+ type: MenuGroup
103
+ properties:
104
+ title: Menu Group 1
105
+ links:
106
+ - id: menu_item_1
107
+ type: MenuLink
108
+ pageId: page_1_1
109
+ properties:
110
+ title: Menu Item one
111
+ - id: menu_item_2
112
+ type: MenuLink
113
+ pageId: page_1_2
114
+ properties:
115
+ title: Menu Item two
116
+ - id: 'properties.danger: true'
117
+ type: MobileMenu
118
+ properties:
119
+ links:
120
+ - id: menu_group_1
121
+ type: MenuGroup
122
+ properties:
123
+ title: Menu Group 1
124
+ links:
125
+ - id: menu_item_1_1
126
+ type: MenuLink
127
+ pageId: page_1_1
128
+ properties:
129
+ title: Menu Item one
130
+ - id: menu_item_1_2
131
+ type: MenuLink
132
+ pageId: page_1_2
133
+ properties:
134
+ title: Menu Item two
135
+ - id: menu_item_2
136
+ type: MenuLink
137
+ pageId: page_2
138
+ properties:
139
+ title: Title Menu Item 2
140
+ icon: AiFillVideoCamera
141
+ danger: true
142
+
143
+ # mode inline
144
+ - id: 'theme: light'
145
+ type: MobileMenu
146
+ properties:
147
+ theme: light
148
+ selectedKeys:
149
+ - menu_item_1_1
150
+ - menu_item_3
151
+ - menu_item_1_2_2
152
+ links:
153
+ - id: menu_group_1
154
+ type: MenuGroup
155
+ properties:
156
+ title: Menu Group 1
157
+ links:
158
+ - id: menu_item_1_1
159
+ type: MenuLink
160
+ pageId: page_1_1
161
+ properties:
162
+ title: Menu Item one
163
+ - id: menu_item_1_2
164
+ type: MenuGroup
165
+ properties:
166
+ title: Menu Group
167
+ links:
168
+ - id: menu_item_1_2_1
169
+ type: MenuLink
170
+ pageId: page_1_2_1
171
+ properties:
172
+ title: Menu Group one
173
+ - id: menu_item_1_2_2
174
+ type: MenuLink
175
+ pageId: page_1_2_2
176
+ properties:
177
+ title: Menu Group two
178
+ - id: menu_item_2
179
+ type: MenuLink
180
+ pageId: page_2
181
+ properties:
182
+ title: Title Menu Item 2
183
+ icon: AiFillVideoCamera
184
+ - id: menu_item_3
185
+ type: MenuLink
186
+ pageId: page_3
187
+ properties:
188
+ title: Title Menu Item 3
189
+ icon: AiFillVideoCamera
190
+
191
+ - id: 'menus: links[0]'
192
+ type: MobileMenu
193
+ menus:
194
+ - id: menu_one
195
+ menuId: menu_one
196
+ links:
197
+ - id: menu_group_1
198
+ type: MenuGroup
199
+ properties:
200
+ title: Menu Group 1
201
+ links:
202
+ - id: menu_item_1_1
203
+ type: MenuLink
204
+ pageId: page_1_1
205
+ properties:
206
+ title: Menu Item one
207
+ - id: menu_item_2
208
+ type: MenuLink
209
+ pageId: page_2
210
+ properties:
211
+ title: Title Menu Item 2
212
+ icon: AiFillVideoCamera
213
+ - id: 'menus: default'
214
+ type: MobileMenu
215
+ menus:
216
+ - id: menu_one
217
+ menuId: menu_one
218
+ links:
219
+ - id: menu_group_1
220
+ type: MenuGroup
221
+ properties:
222
+ title: Menu Group 1
223
+ links:
224
+ - id: menu_item_1_1
225
+ type: MenuLink
226
+ pageId: page_1_1
227
+ properties:
228
+ title: Menu Item one
229
+ - id: menu_item_2
230
+ type: MenuLink
231
+ pageId: page_2
232
+ properties:
233
+ title: Title Menu Item 2
234
+ icon: AiFillVideoCamera
235
+ - id: menu_one
236
+ menuId: default
237
+ links:
238
+ - id: default_menu_group_1
239
+ type: MenuGroup
240
+ properties:
241
+ title: default Menu Group 1
242
+ links:
243
+ - id: default_menu_item_1_1
244
+ type: MenuLink
245
+ pageId: default_page_1_1
246
+ properties:
247
+ title: default Menu Item one
248
+
249
+ - id: 'menus: properties.menuId: menu_one'
250
+ type: MobileMenu
251
+ properties:
252
+ menuId: menu_one
253
+ menus:
254
+ - id: menu_one
255
+ menuId: menu_one
256
+ links:
257
+ - id: menu_group_1
258
+ type: MenuGroup
259
+ properties:
260
+ title: Menu Group 1
261
+ links:
262
+ - id: menu_item_1_1
263
+ type: MenuLink
264
+ pageId: page_1_1
265
+ properties:
266
+ title: Menu Item one
267
+ - id: menu_item_2
268
+ type: MenuLink
269
+ pageId: page_2
270
+ properties:
271
+ title: Title Menu Item 2
272
+ icon: AiFillVideoCamera
273
+ - id: menu_one
274
+ menuId: default
275
+ links:
276
+ - id: default_menu_group_1
277
+ type: MenuGroup
278
+ properties:
279
+ title: default Menu Group 1
280
+ links:
281
+ - id: default_menu_item_1_1
282
+ type: MenuLink
283
+ pageId: default_page_1_1
284
+ properties:
285
+ title: default Menu Item one
286
+
287
+ - id: 'menusTitle properties.title'
288
+ type: MobileMenu
289
+ menus:
290
+ - id: menu_one
291
+ menuId: menu_one
292
+ links:
293
+ - id: menu_item_2
294
+ type: MenuLink
295
+ pageId: page_2
296
+ properties:
297
+ title: Title Menu Item 2
298
+ icon: AiFillVideoCamera
299
+
300
+ - id: 'menusTitle pageId'
301
+ type: MobileMenu
302
+ menus:
303
+ - id: menu_one
304
+ menuId: menu_one
305
+ links:
306
+ - id: menu_item_2
307
+ type: MenuLink
308
+ pageId: pageId_page_2
309
+ properties:
310
+ icon: AiFillVideoCamera
311
+
312
+ - id: 'menusTitle url'
313
+ type: MobileMenu
314
+ menus:
315
+ - id: menu_one
316
+ menuId: menu_one
317
+ links:
318
+ - id: menu_item_2
319
+ type: MenuLink
320
+ url: http://page.com
321
+ properties:
322
+ icon: AiFillVideoCamera
323
+ - id: 'properties.logo'
324
+ type: MobileMenu
325
+ properties:
326
+ logo:
327
+ src: /logo.png
328
+ alt: My App
329
+ links:
330
+ - id: menu_item_1
331
+ type: MenuLink
332
+ properties:
333
+ title: Home
334
+ - id: 'areas.drawerContent:'
335
+ type: MobileMenu
336
+ properties:
337
+ links:
338
+ - id: menu_item_1
339
+ type: MenuLink
340
+ properties:
341
+ title: Home
342
+ areas:
343
+ drawerContent:
344
+ blocks:
345
+ - id: one
346
+ type: Test
347
+ - id: 'areas.drawerFooter:'
348
+ type: MobileMenu
349
+ properties:
350
+ links:
351
+ - id: menu_item_1
352
+ type: MenuLink
353
+ properties:
354
+ title: Home
355
+ areas:
356
+ drawerFooter:
357
+ blocks:
358
+ - id: one
359
+ type: Test