@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,81 @@
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: basic_tree_selector
18
+ type: TreeSelector
19
+ properties:
20
+ title: Category
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: Store a value field
35
+ blocks:
36
+ - id: value_tree_selector
37
+ type: TreeSelector
38
+ properties:
39
+ title: Region
40
+ placeholder: Pick a region...
41
+ primaryKey: id
42
+ parentKey: parentId
43
+ valueKey: code
44
+ html: '{{ item.label }}'
45
+ treeDefaultExpandAll: true
46
+ data:
47
+ - { id: 1, label: Europe, code: eu }
48
+ - { id: 2, label: Germany, code: de, parentId: 1 }
49
+ - { id: 3, label: France, code: fr, parentId: 1 }
50
+ - { id: 4, label: Americas, code: am }
51
+ - { id: 5, label: United States, code: us, parentId: 4 }
52
+ events:
53
+ onChange:
54
+ - id: capture
55
+ type: SetState
56
+ params:
57
+ region:
58
+ _event: value
59
+ - id: value_tree_display
60
+ type: Paragraph
61
+ properties:
62
+ content:
63
+ _nunjucks:
64
+ template: 'Selected code: {{ region if region != null else "—" }}'
65
+ on:
66
+ _state: true
67
+
68
+ - title: Options (label/value)
69
+ blocks:
70
+ - id: options_tree_selector
71
+ type: TreeSelector
72
+ properties:
73
+ title: Department
74
+ primaryKey: value
75
+ parentKey: parent
76
+ treeDefaultExpandAll: true
77
+ options:
78
+ - { value: eng, label: Engineering }
79
+ - { value: fe, label: Frontend, parent: eng }
80
+ - { value: be, label: Backend, parent: eng }
81
+ - { value: ops, label: Operations }
@@ -0,0 +1,479 @@
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 Text Watermark
16
+ blocks:
17
+ - id: basic_single
18
+ type: Watermark
19
+ properties:
20
+ text: Lowdefy
21
+ blocks:
22
+ - id: basic_single_child
23
+ type: Box
24
+ style:
25
+ height: 200px
26
+
27
+ - id: basic_multiline
28
+ type: Watermark
29
+ properties:
30
+ text:
31
+ - Lowdefy
32
+ - Confidential
33
+ blocks:
34
+ - id: basic_multiline_child
35
+ type: Box
36
+ style:
37
+ height: 220px
38
+
39
+ - title: Image Watermark
40
+ blocks:
41
+ - id: img_logo
42
+ type: Watermark
43
+ properties:
44
+ image: https://lowdefy.com/favicon-32x32.png
45
+ width: 80
46
+ height: 80
47
+ blocks:
48
+ - id: img_logo_child
49
+ type: Box
50
+ style:
51
+ height: 240px
52
+
53
+ - id: img_small
54
+ type: Watermark
55
+ properties:
56
+ image: https://lowdefy.com/favicon-32x32.png
57
+ width: 40
58
+ height: 40
59
+ blocks:
60
+ - id: img_small_child
61
+ type: Box
62
+ style:
63
+ height: 200px
64
+
65
+ - title: Font Customization
66
+ blocks:
67
+ - id: font_red
68
+ type: Watermark
69
+ properties:
70
+ text: Rejected
71
+ font:
72
+ color: rgba(255, 0, 0, 0.15)
73
+ blocks:
74
+ - id: font_red_child
75
+ type: Box
76
+ style:
77
+ height: 180px
78
+
79
+ - id: font_large_bold
80
+ type: Watermark
81
+ properties:
82
+ text: DRAFT
83
+ font:
84
+ fontSize: 28
85
+ fontWeight: bold
86
+ color: rgba(255, 0, 0, 0.08)
87
+ blocks:
88
+ - id: font_large_bold_child
89
+ type: Box
90
+ style:
91
+ height: 220px
92
+
93
+ - id: font_serif_italic
94
+ type: Watermark
95
+ properties:
96
+ text: Elegant
97
+ font:
98
+ fontFamily: Georgia, serif
99
+ fontStyle: italic
100
+ fontSize: 20
101
+ color: rgba(139, 92, 246, 0.1)
102
+ blocks:
103
+ - id: font_serif_italic_child
104
+ type: Box
105
+ style:
106
+ height: 200px
107
+
108
+ - title: Text Alignment
109
+ blocks:
110
+ - id: align_left
111
+ type: Watermark
112
+ properties:
113
+ text:
114
+ - Left Aligned
115
+ - Second Line
116
+ font:
117
+ textAlign: left
118
+ color: rgba(0, 0, 0, 0.1)
119
+ blocks:
120
+ - id: align_left_child
121
+ type: Box
122
+ style:
123
+ height: 200px
124
+
125
+ - id: align_center
126
+ type: Watermark
127
+ properties:
128
+ text:
129
+ - Center Aligned
130
+ - Second Line
131
+ font:
132
+ textAlign: center
133
+ color: rgba(0, 0, 0, 0.1)
134
+ blocks:
135
+ - id: align_center_child
136
+ type: Box
137
+ style:
138
+ height: 200px
139
+
140
+ - id: align_right
141
+ type: Watermark
142
+ properties:
143
+ text:
144
+ - Right Aligned
145
+ - Second Line
146
+ font:
147
+ textAlign: right
148
+ color: rgba(0, 0, 0, 0.1)
149
+ blocks:
150
+ - id: align_right_child
151
+ type: Box
152
+ style:
153
+ height: 200px
154
+
155
+ - title: Rotation Angles
156
+ blocks:
157
+ - id: rotate_default
158
+ type: Watermark
159
+ properties:
160
+ text: Default (-22 degrees)
161
+ blocks:
162
+ - id: rotate_default_child
163
+ type: Box
164
+ style:
165
+ height: 180px
166
+
167
+ - id: rotate_horizontal
168
+ type: Watermark
169
+ properties:
170
+ text: Horizontal (0 degrees)
171
+ rotate: 0
172
+ blocks:
173
+ - id: rotate_horizontal_child
174
+ type: Box
175
+ style:
176
+ height: 180px
177
+
178
+ - id: rotate_steep
179
+ type: Watermark
180
+ properties:
181
+ text: Steep (-45 degrees)
182
+ rotate: -45
183
+ blocks:
184
+ - id: rotate_steep_child
185
+ type: Box
186
+ style:
187
+ height: 200px
188
+
189
+ - title: Gap and Offset
190
+ blocks:
191
+ - id: gap_tight
192
+ type: Watermark
193
+ properties:
194
+ text: Tight Gap
195
+ gap:
196
+ - 50
197
+ - 50
198
+ blocks:
199
+ - id: gap_tight_child
200
+ type: Box
201
+ style:
202
+ height: 200px
203
+
204
+ - id: gap_wide
205
+ type: Watermark
206
+ properties:
207
+ text: Wide Gap
208
+ gap:
209
+ - 200
210
+ - 200
211
+ blocks:
212
+ - id: gap_wide_child
213
+ type: Box
214
+ style:
215
+ height: 200px
216
+
217
+ - id: offset_shifted
218
+ type: Watermark
219
+ properties:
220
+ text: Offset (50, 40)
221
+ offset:
222
+ - 50
223
+ - 40
224
+ blocks:
225
+ - id: offset_shifted_child
226
+ type: Box
227
+ style:
228
+ height: 200px
229
+
230
+ - title: Z-Index and Inherit
231
+ blocks:
232
+ - id: zindex_high
233
+ type: Watermark
234
+ properties:
235
+ text: High zIndex (100)
236
+ zIndex: 100
237
+ blocks:
238
+ - id: zindex_high_child
239
+ type: Box
240
+ style:
241
+ height: 180px
242
+
243
+ - id: inherit_false
244
+ type: Watermark
245
+ properties:
246
+ text: Inherit disabled
247
+ inherit: false
248
+ blocks:
249
+ - id: inherit_false_child
250
+ type: Box
251
+ style:
252
+ height: 180px
253
+
254
+ - title: Theme Token Overrides
255
+ blocks:
256
+ - id: theme_color_fill
257
+ type: Watermark
258
+ properties:
259
+ text: Custom Fill Color
260
+ theme:
261
+ colorFill: rgba(22, 119, 255, 0.12)
262
+ blocks:
263
+ - id: theme_color_fill_child
264
+ type: Box
265
+ style:
266
+ height: 200px
267
+
268
+ - id: theme_font_size
269
+ type: Watermark
270
+ properties:
271
+ text: Large Default Font
272
+ theme:
273
+ fontSizeLG: 24
274
+ blocks:
275
+ - id: theme_font_size_child
276
+ type: Box
277
+ style:
278
+ height: 200px
279
+
280
+ - id: theme_font_family
281
+ type: Watermark
282
+ properties:
283
+ text: Serif Theme Font
284
+ theme:
285
+ fontFamily: 'Georgia, serif'
286
+ blocks:
287
+ - id: theme_font_family_child
288
+ type: Box
289
+ style:
290
+ height: 200px
291
+
292
+ - title: CSS Key Classes
293
+ blocks:
294
+ - id: css_gradient_bg
295
+ type: Watermark
296
+ class:
297
+ element: bg-gradient-to-br from-primary/10 to-primary/5 rounded-lg p-4
298
+ properties:
299
+ text: Preview
300
+ font:
301
+ color: rgba(79, 70, 229, 0.1)
302
+ fontSize: 18
303
+ blocks:
304
+ - id: css_gradient_bg_content
305
+ type: Paragraph
306
+ properties:
307
+ content: >
308
+ The element CSS key applies Tailwind classes to the Watermark wrapper.
309
+ Here a gradient background and rounded corners create a styled preview area.
310
+
311
+ - id: css_dark_surface
312
+ type: Watermark
313
+ class:
314
+ element: bg-bg-layout rounded-lg p-4
315
+ properties:
316
+ text: Dark Theme
317
+ font:
318
+ color: rgba(255, 255, 255, 0.08)
319
+ fontSize: 16
320
+ blocks:
321
+ - id: css_dark_surface_title
322
+ type: Title
323
+ style:
324
+ color: white
325
+ properties:
326
+ content: Dark Background
327
+ level: 5
328
+ - id: css_dark_surface_content
329
+ type: Paragraph
330
+ style:
331
+ color: rgba(255, 255, 255, 0.7)
332
+ properties:
333
+ content: >
334
+ White watermark text with low opacity stays subtle on a dark surface.
335
+ Useful for dark-mode interfaces and embedded viewers.
336
+
337
+ - id: css_bordered_area
338
+ type: Watermark
339
+ class:
340
+ element: border-2 border-dashed border-border rounded-xl p-6
341
+ properties:
342
+ text: Upload Area
343
+ font:
344
+ color: rgba(0, 0, 0, 0.06)
345
+ fontSize: 20
346
+ rotate: 0
347
+ gap:
348
+ - 120
349
+ - 80
350
+ blocks:
351
+ - id: css_bordered_area_text
352
+ type: Paragraph
353
+ style:
354
+ textAlign: center
355
+ color: '#999'
356
+ properties:
357
+ content: Drag and drop files here or click to browse
358
+
359
+ - title: Draft Financial Report
360
+ blocks:
361
+ - id: report_wrapper
362
+ type: Box
363
+ class: bg-bg-container rounded-lg shadow-sm
364
+ blocks:
365
+ - id: report_watermark
366
+ type: Watermark
367
+ properties:
368
+ text: DRAFT
369
+ font:
370
+ fontSize: 28
371
+ fontWeight: bold
372
+ color: rgba(255, 0, 0, 0.06)
373
+ gap:
374
+ - 150
375
+ - 150
376
+ rotate: -30
377
+ blocks:
378
+ - id: report_heading
379
+ type: Title
380
+ properties:
381
+ content: Quarterly Financial Report
382
+ level: 4
383
+ - id: report_subtitle
384
+ type: Paragraph
385
+ properties:
386
+ content: Prepared for the Board of Directors — Q1 2026
387
+ - id: report_divider
388
+ type: Divider
389
+ - id: report_body_1
390
+ type: Paragraph
391
+ properties:
392
+ content: >
393
+ Revenue for the first quarter reached $12.4M, representing a 15% increase
394
+ year-over-year. Operating margins improved to 23% driven by efficiency gains
395
+ across all business units.
396
+ - id: report_body_2
397
+ type: Paragraph
398
+ properties:
399
+ content: >
400
+ Customer acquisition costs decreased by 8% while customer lifetime value
401
+ increased by 12%, indicating strong unit economics. The sales pipeline
402
+ remains robust with $45M in qualified opportunities.
403
+
404
+ - title: Confidential Project Dashboard
405
+ blocks:
406
+ - id: dashboard_watermark
407
+ type: Watermark
408
+ properties:
409
+ text:
410
+ - CONFIDENTIAL
411
+ - Do Not Copy
412
+ font:
413
+ fontSize: 18
414
+ color: rgba(22, 119, 255, 0.06)
415
+ fontWeight: bold
416
+ gap:
417
+ - 120
418
+ - 120
419
+ blocks:
420
+ - id: dashboard_title
421
+ type: Title
422
+ properties:
423
+ content: Project Overview
424
+ level: 4
425
+ - id: dashboard_cards
426
+ type: Box
427
+ layout:
428
+ gap: 16
429
+ blocks:
430
+ - id: dashboard_card_alpha
431
+ type: Card
432
+ layout:
433
+ flex: 1 1 0
434
+ properties:
435
+ title: Project Alpha
436
+ slots:
437
+ extra:
438
+ blocks:
439
+ - id: dashboard_alpha_tag
440
+ type: Tag
441
+ layout:
442
+ flex: 0 0 auto
443
+ properties:
444
+ title: Active
445
+ color: success
446
+ blocks:
447
+ - id: dashboard_alpha_desc
448
+ type: Paragraph
449
+ properties:
450
+ content: A web application for managing team workflows and project timelines. Currently in active development with scheduled release next quarter.
451
+ - id: dashboard_alpha_progress
452
+ type: Progress
453
+ properties:
454
+ percent: 68
455
+ - id: dashboard_card_beta
456
+ type: Card
457
+ layout:
458
+ flex: 1 1 0
459
+ properties:
460
+ title: Project Beta
461
+ slots:
462
+ extra:
463
+ blocks:
464
+ - id: dashboard_beta_tag
465
+ type: Tag
466
+ layout:
467
+ flex: 0 0 auto
468
+ properties:
469
+ title: Planning
470
+ color: warning
471
+ blocks:
472
+ - id: dashboard_beta_desc
473
+ type: Paragraph
474
+ properties:
475
+ content: Mobile app for real-time inventory tracking across multiple warehouses. Integrates with existing ERP systems for seamless data sync.
476
+ - id: dashboard_beta_progress
477
+ type: Progress
478
+ properties:
479
+ percent: 25
@@ -0,0 +1,62 @@
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: watermark_block
16
+ type: Box
17
+
18
+ blocks:
19
+ # ============================================
20
+ # BASIC RENDERING
21
+ # ============================================
22
+
23
+ - id: wm_text
24
+ type: Watermark
25
+ properties:
26
+ text: Confidential
27
+ blocks:
28
+ - id: wm_text_content
29
+ type: Paragraph
30
+ properties:
31
+ content: Document content here
32
+
33
+ # ============================================
34
+ # MULTILINE TEXT
35
+ # ============================================
36
+
37
+ - id: wm_multi
38
+ type: Watermark
39
+ properties:
40
+ text:
41
+ - Draft
42
+ - Internal
43
+ blocks:
44
+ - id: wm_multi_content
45
+ type: Paragraph
46
+ properties:
47
+ content: Multi-line watermark content
48
+
49
+ # ============================================
50
+ # ROTATED WATERMARK
51
+ # ============================================
52
+
53
+ - id: wm_rotated
54
+ type: Watermark
55
+ properties:
56
+ text: Rotated
57
+ rotate: -30
58
+ blocks:
59
+ - id: wm_rotated_content
60
+ type: Paragraph
61
+ properties:
62
+ content: Rotated watermark content
@@ -0,0 +1,86 @@
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: Watermark
17
+ - id: properties.text
18
+ type: Watermark
19
+ properties:
20
+ text: Lowdefy
21
+ - id: properties.text array
22
+ type: Watermark
23
+ properties:
24
+ text:
25
+ - Lowdefy
26
+ - Confidential
27
+ - id: properties.font
28
+ type: Watermark
29
+ properties:
30
+ text: Lowdefy
31
+ font:
32
+ color: rgba(0, 0, 0, 0.15)
33
+ fontSize: 16
34
+ fontWeight: normal
35
+ fontFamily: Roboto
36
+ - id: properties.gap
37
+ type: Watermark
38
+ properties:
39
+ text: Lowdefy
40
+ gap:
41
+ - 100
42
+ - 100
43
+ - id: properties.offset
44
+ type: Watermark
45
+ properties:
46
+ text: Lowdefy
47
+ offset:
48
+ - 50
49
+ - 50
50
+ - id: 'properties.rotate: -30'
51
+ type: Watermark
52
+ properties:
53
+ text: Lowdefy
54
+ rotate: -30
55
+ - id: 'properties.zIndex: 10'
56
+ type: Watermark
57
+ properties:
58
+ text: Lowdefy
59
+ zIndex: 10
60
+ - id: 'properties.width: 120'
61
+ type: Watermark
62
+ properties:
63
+ text: Lowdefy
64
+ width: 120
65
+ - id: 'properties.height: 64'
66
+ type: Watermark
67
+ properties:
68
+ text: Lowdefy
69
+ height: 64
70
+ - id: properties.image
71
+ type: Watermark
72
+ properties:
73
+ image: https://via.placeholder.com/100
74
+ width: 100
75
+ height: 100
76
+ - id: 'properties.inherit: false'
77
+ type: Watermark
78
+ properties:
79
+ text: Lowdefy
80
+ inherit: false
81
+ - id: 'properties.font.textAlign: center'
82
+ type: Watermark
83
+ properties:
84
+ text: Lowdefy
85
+ font:
86
+ textAlign: center