@lowdefy/blocks-antd 5.6.0 → 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 (283) 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/gallery.yaml +781 -0
  36. package/dist/blocks/CheckboxSelector/tests/CheckboxSelector.e2e.yaml +272 -0
  37. package/dist/blocks/CheckboxSelector/tests.yaml +325 -0
  38. package/dist/blocks/CheckboxSwitch/gallery.yaml +457 -0
  39. package/dist/blocks/CheckboxSwitch/tests/CheckboxSwitch.e2e.yaml +126 -0
  40. package/dist/blocks/CheckboxSwitch/tests.yaml +96 -0
  41. package/dist/blocks/Collapse/gallery.yaml +1079 -0
  42. package/dist/blocks/Collapse/tests/Collapse.e2e.yaml +206 -0
  43. package/dist/blocks/Collapse/tests.yaml +265 -0
  44. package/dist/blocks/ColorSelector/gallery.yaml +807 -0
  45. package/dist/blocks/ColorSelector/tests/ColorSelector.e2e.yaml +77 -0
  46. package/dist/blocks/ColorSelector/tests.yaml +84 -0
  47. package/dist/blocks/ConfigProvider/gallery.yaml +1003 -0
  48. package/dist/blocks/ConfigProvider/tests.yaml +62 -0
  49. package/dist/blocks/ConfirmModal/gallery.yaml +1043 -0
  50. package/dist/blocks/ConfirmModal/tests/ConfirmModal.e2e.yaml +410 -0
  51. package/dist/blocks/ConfirmModal/tests.yaml +95 -0
  52. package/dist/blocks/Content/gallery.yaml +528 -0
  53. package/dist/blocks/Content/tests/Content.e2e.yaml +71 -0
  54. package/dist/blocks/Content/tests.yaml +42 -0
  55. package/dist/blocks/ControlledList/ControlledList.js +1 -1
  56. package/dist/blocks/ControlledList/gallery.yaml +481 -0
  57. package/dist/blocks/ControlledList/{style.module.css → style.css} +3 -3
  58. package/dist/blocks/ControlledList/tests/ControlledList.e2e.yaml +161 -0
  59. package/dist/blocks/ControlledList/tests.yaml +57 -0
  60. package/dist/blocks/DateRangeSelector/DateRangeSelector.js +7 -0
  61. package/dist/blocks/DateRangeSelector/e2e.js +28 -2
  62. package/dist/blocks/DateRangeSelector/gallery.yaml +858 -0
  63. package/dist/blocks/DateRangeSelector/meta.js +2 -0
  64. package/dist/blocks/DateRangeSelector/tests/DateRangeSelector.e2e.yaml +204 -0
  65. package/dist/blocks/DateRangeSelector/tests.yaml +129 -0
  66. package/dist/blocks/DateSelector/DateSelector.js +6 -0
  67. package/dist/blocks/DateSelector/e2e.js +28 -2
  68. package/dist/blocks/DateSelector/gallery.yaml +691 -0
  69. package/dist/blocks/DateSelector/meta.js +6 -0
  70. package/dist/blocks/DateSelector/tests/DateSelector.e2e.yaml +229 -0
  71. package/dist/blocks/DateSelector/tests.yaml +117 -0
  72. package/dist/blocks/DateTimeSelector/DateTimeSelector.js +7 -0
  73. package/dist/blocks/DateTimeSelector/e2e.js +26 -2
  74. package/dist/blocks/DateTimeSelector/gallery.yaml +770 -0
  75. package/dist/blocks/DateTimeSelector/meta.js +2 -0
  76. package/dist/blocks/DateTimeSelector/tests/DateTimeSelector.e2e.yaml +163 -0
  77. package/dist/blocks/DateTimeSelector/tests.yaml +140 -0
  78. package/dist/blocks/Descriptions/gallery.yaml +839 -0
  79. package/dist/blocks/Descriptions/tests/Descriptions.e2e.yaml +143 -0
  80. package/dist/blocks/Descriptions/tests.yaml +256 -0
  81. package/dist/blocks/Divider/gallery.yaml +375 -0
  82. package/dist/blocks/Divider/tests/Divider.e2e.yaml +107 -0
  83. package/dist/blocks/Divider/tests.yaml +58 -0
  84. package/dist/blocks/Drawer/gallery.yaml +1257 -0
  85. package/dist/blocks/Drawer/tests/Drawer.e2e.yaml +562 -0
  86. package/dist/blocks/Drawer/tests.yaml +80 -0
  87. package/dist/blocks/DropdownButton/gallery.yaml +606 -0
  88. package/dist/blocks/DropdownButton/tests/DropdownButton.e2e.yaml +243 -0
  89. package/dist/blocks/DropdownMenu/gallery.yaml +578 -0
  90. package/dist/blocks/DropdownMenu/tests/DropdownMenu.e2e.yaml +267 -0
  91. package/dist/blocks/Flex/gallery.yaml +1416 -0
  92. package/dist/blocks/Flex/tests/Flex.e2e.yaml +95 -0
  93. package/dist/blocks/Flex/tests.yaml +92 -0
  94. package/dist/blocks/FloatButton/gallery.yaml +518 -0
  95. package/dist/blocks/FloatButton/tests/FloatButton.e2e.yaml +73 -0
  96. package/dist/blocks/FloatButton/tests.yaml +59 -0
  97. package/dist/blocks/Footer/gallery.yaml +355 -0
  98. package/dist/blocks/Footer/tests/Footer.e2e.yaml +70 -0
  99. package/dist/blocks/Footer/tests.yaml +28 -0
  100. package/dist/blocks/Header/gallery.yaml +249 -0
  101. package/dist/blocks/Header/tests/Header.e2e.yaml +77 -0
  102. package/dist/blocks/Header/tests.yaml +36 -0
  103. package/dist/blocks/Label/Label.js +1 -1
  104. package/dist/blocks/Label/gallery.yaml +762 -0
  105. package/dist/blocks/Label/{style.module.css → style.css} +28 -28
  106. package/dist/blocks/Label/tests/Label.e2e.yaml +247 -0
  107. package/dist/blocks/Label/tests.yaml +212 -0
  108. package/dist/blocks/Layout/gallery.yaml +548 -0
  109. package/dist/blocks/Layout/tests/Layout.e2e.yaml +86 -0
  110. package/dist/blocks/Layout/tests.yaml +28 -0
  111. package/dist/blocks/ListSelector/gallery.yaml +223 -0
  112. package/dist/blocks/Masonry/gallery.yaml +989 -0
  113. package/dist/blocks/Masonry/tests/Masonry.e2e.yaml +128 -0
  114. package/dist/blocks/Masonry/tests.yaml +42 -0
  115. package/dist/blocks/MasonryList/gallery.yaml +224 -0
  116. package/dist/blocks/MasonryList/tests/MasonryList.e2e.yaml +55 -0
  117. package/dist/blocks/MasonryList/tests.yaml +42 -0
  118. package/dist/blocks/Menu/gallery.yaml +974 -0
  119. package/dist/blocks/Menu/tests/Menu.e2e.yaml +484 -0
  120. package/dist/blocks/Menu/tests.yaml +1053 -0
  121. package/dist/blocks/Message/gallery.yaml +860 -0
  122. package/dist/blocks/Message/tests/Message.e2e.yaml +246 -0
  123. package/dist/blocks/Message/tests.yaml +54 -0
  124. package/dist/blocks/MobileMenu/gallery.yaml +1172 -0
  125. package/dist/blocks/MobileMenu/tests/MobileMenu.e2e.yaml +314 -0
  126. package/dist/blocks/MobileMenu/tests.yaml +359 -0
  127. package/dist/blocks/Modal/gallery.yaml +1039 -0
  128. package/dist/blocks/Modal/tests/Modal.e2e.yaml +493 -0
  129. package/dist/blocks/Modal/tests.yaml +75 -0
  130. package/dist/blocks/MonthSelector/MonthSelector.js +6 -0
  131. package/dist/blocks/MonthSelector/e2e.js +26 -2
  132. package/dist/blocks/MonthSelector/gallery.yaml +687 -0
  133. package/dist/blocks/MonthSelector/meta.js +6 -0
  134. package/dist/blocks/MonthSelector/tests/MonthSelector.e2e.yaml +167 -0
  135. package/dist/blocks/MonthSelector/tests.yaml +124 -0
  136. package/dist/blocks/MultipleSelector/gallery.yaml +1245 -0
  137. package/dist/blocks/MultipleSelector/tests/MultipleSelector.e2e.yaml +445 -0
  138. package/dist/blocks/MultipleSelector/tests.yaml +201 -0
  139. package/dist/blocks/Notification/gallery.yaml +1376 -0
  140. package/dist/blocks/Notification/tests/Notification.e2e.yaml +362 -0
  141. package/dist/blocks/Notification/tests.yaml +97 -0
  142. package/dist/blocks/NumberInput/gallery.yaml +753 -0
  143. package/dist/blocks/NumberInput/tests/NumberInput.e2e.yaml +228 -0
  144. package/dist/blocks/NumberInput/tests.yaml +116 -0
  145. package/dist/blocks/PageHeaderMenu/PageHeaderMenu.js +1 -1
  146. package/dist/blocks/PageHeaderMenu/gallery.yaml +480 -0
  147. package/dist/blocks/PageHeaderMenu/tests/PageHeaderMenu.e2e.yaml +110 -0
  148. package/dist/blocks/PageHeaderMenu/tests.yaml +173 -0
  149. package/dist/blocks/PageSidebarLayout/PageSidebarLayout.js +10 -1
  150. package/dist/blocks/PageSidebarLayout/gallery.yaml +302 -0
  151. package/dist/blocks/PageSidebarLayout/meta.js +1 -0
  152. package/dist/blocks/PageSidebarLayout/tests/PageSidebarLayout.e2e.yaml +216 -0
  153. package/dist/blocks/PageSidebarLayout/tests.yaml +174 -0
  154. package/dist/blocks/PageSiderMenu/PageSiderMenu.js +1 -1
  155. package/dist/blocks/PageSiderMenu/gallery.yaml +516 -0
  156. package/dist/blocks/PageSiderMenu/tests/PageSiderMenu.e2e.yaml +175 -0
  157. package/dist/blocks/PageSiderMenu/tests.yaml +211 -0
  158. package/dist/blocks/Pagination/gallery.yaml +503 -0
  159. package/dist/blocks/Pagination/tests/Pagination.e2e.yaml +159 -0
  160. package/dist/blocks/Pagination/tests.yaml +80 -0
  161. package/dist/blocks/Paragraph/gallery.yaml +458 -0
  162. package/dist/blocks/Paragraph/tests/Paragraph.e2e.yaml +153 -0
  163. package/dist/blocks/Paragraph/tests.yaml +176 -0
  164. package/dist/blocks/ParagraphInput/gallery.yaml +1483 -0
  165. package/dist/blocks/ParagraphInput/tests/ParagraphInput.e2e.yaml +189 -0
  166. package/dist/blocks/ParagraphInput/tests.yaml +163 -0
  167. package/dist/blocks/PasswordInput/gallery.yaml +420 -0
  168. package/dist/blocks/PasswordInput/tests/PasswordInput.e2e.yaml +188 -0
  169. package/dist/blocks/PasswordInput/tests.yaml +78 -0
  170. package/dist/blocks/PhoneNumberInput/gallery.yaml +677 -0
  171. package/dist/blocks/PhoneNumberInput/tests/PhoneNumberInput.e2e.yaml +279 -0
  172. package/dist/blocks/PhoneNumberInput/tests.yaml +25 -0
  173. package/dist/blocks/Popover/gallery.yaml +1301 -0
  174. package/dist/blocks/Popover/tests/Popover.e2e.yaml +249 -0
  175. package/dist/blocks/Popover/tests.yaml +105 -0
  176. package/dist/blocks/Progress/gallery.yaml +772 -0
  177. package/dist/blocks/Progress/tests/Progress.e2e.yaml +167 -0
  178. package/dist/blocks/Progress/tests.yaml +114 -0
  179. package/dist/blocks/QRCode/gallery.yaml +492 -0
  180. package/dist/blocks/QRCode/tests/QRCode.e2e.yaml +66 -0
  181. package/dist/blocks/QRCode/tests.yaml +113 -0
  182. package/dist/blocks/RadioSelector/gallery.yaml +816 -0
  183. package/dist/blocks/RadioSelector/tests/RadioSelector.e2e.yaml +269 -0
  184. package/dist/blocks/RadioSelector/tests.yaml +339 -0
  185. package/dist/blocks/RatingSlider/gallery.yaml +627 -0
  186. package/dist/blocks/RatingSlider/tests/RatingSlider.e2e.yaml +188 -0
  187. package/dist/blocks/RatingSlider/tests.yaml +116 -0
  188. package/dist/blocks/Result/gallery.yaml +925 -0
  189. package/dist/blocks/Result/tests/Result.e2e.yaml +126 -0
  190. package/dist/blocks/Result/tests.yaml +75 -0
  191. package/dist/blocks/Search/Search.js +1 -1
  192. package/dist/blocks/Search/SearchModal.js +18 -9
  193. package/dist/blocks/Search/gallery.yaml +170 -0
  194. package/dist/blocks/Search/meta.js +2 -1
  195. package/dist/blocks/Search/{style.module.css → style.css} +19 -12
  196. package/dist/blocks/Search/tests/Search.e2e.yaml +125 -0
  197. package/dist/blocks/Search/useSearchIndex.js +24 -2
  198. package/dist/blocks/SegmentedSelector/gallery.yaml +725 -0
  199. package/dist/blocks/SegmentedSelector/tests/SegmentedSelector.e2e.yaml +115 -0
  200. package/dist/blocks/SegmentedSelector/tests.yaml +141 -0
  201. package/dist/blocks/Selector/gallery.yaml +1055 -0
  202. package/dist/blocks/Selector/tests/Selector.e2e.yaml +427 -0
  203. package/dist/blocks/Selector/tests.yaml +196 -0
  204. package/dist/blocks/Sider/gallery.yaml +994 -0
  205. package/dist/blocks/Sider/tests/Sider.e2e.yaml +162 -0
  206. package/dist/blocks/Sider/tests.yaml +20 -0
  207. package/dist/blocks/Slider/gallery.yaml +600 -0
  208. package/dist/blocks/Slider/tests/Slider.e2e.yaml +190 -0
  209. package/dist/blocks/Slider/tests.yaml +68 -0
  210. package/dist/blocks/Splitter/gallery.yaml +1511 -0
  211. package/dist/blocks/Splitter/tests/Splitter.e2e.yaml +114 -0
  212. package/dist/blocks/Splitter/tests.yaml +79 -0
  213. package/dist/blocks/Statistic/gallery.yaml +460 -0
  214. package/dist/blocks/Statistic/tests/Statistic.e2e.yaml +137 -0
  215. package/dist/blocks/Statistic/tests.yaml +77 -0
  216. package/dist/blocks/Steps/gallery.yaml +550 -0
  217. package/dist/blocks/Switch/gallery.yaml +502 -0
  218. package/dist/blocks/Switch/tests/Switch.e2e.yaml +132 -0
  219. package/dist/blocks/Switch/tests.yaml +87 -0
  220. package/dist/blocks/Tabs/gallery.yaml +1353 -0
  221. package/dist/blocks/Tabs/tests/Tabs.e2e.yaml +370 -0
  222. package/dist/blocks/Tabs/tests.yaml +349 -0
  223. package/dist/blocks/Tag/gallery.yaml +598 -0
  224. package/dist/blocks/Tag/tests/Tag.e2e.yaml +173 -0
  225. package/dist/blocks/Tag/tests.yaml +51 -0
  226. package/dist/blocks/TagMultipleSelector/TagMultipleSelector.js +53 -0
  227. package/dist/blocks/TagMultipleSelector/e2e.js +36 -0
  228. package/dist/blocks/TagMultipleSelector/gallery.yaml +70 -0
  229. package/dist/blocks/TagMultipleSelector/meta.js +91 -0
  230. package/dist/blocks/TagMultipleSelector/tests/TagMultipleSelector.e2e.yaml +93 -0
  231. package/dist/blocks/TagSelector/TagSelector.js +49 -0
  232. package/dist/blocks/TagSelector/e2e.js +36 -0
  233. package/dist/blocks/TagSelector/gallery.yaml +70 -0
  234. package/dist/blocks/TagSelector/meta.js +91 -0
  235. package/dist/blocks/TagSelector/tests/TagSelector.e2e.yaml +93 -0
  236. package/dist/blocks/TextArea/gallery.yaml +618 -0
  237. package/dist/blocks/TextArea/tests/TextArea.e2e.yaml +218 -0
  238. package/dist/blocks/TextArea/tests.yaml +100 -0
  239. package/dist/blocks/TextInput/gallery.yaml +560 -0
  240. package/dist/blocks/TextInput/tests/TextInput.e2e.yaml +287 -0
  241. package/dist/blocks/TextInput/tests.yaml +114 -0
  242. package/dist/blocks/TimelineList/gallery.yaml +431 -0
  243. package/dist/blocks/TimelineList/tests/TimelineList.e2e.yaml +244 -0
  244. package/dist/blocks/TimelineList/tests.yaml +251 -0
  245. package/dist/blocks/Title/gallery.yaml +483 -0
  246. package/dist/blocks/Title/tests/Title.e2e.yaml +180 -0
  247. package/dist/blocks/Title/tests.yaml +175 -0
  248. package/dist/blocks/TitleInput/gallery.yaml +1006 -0
  249. package/dist/blocks/TitleInput/tests/TitleInput.e2e.yaml +195 -0
  250. package/dist/blocks/TitleInput/tests.yaml +181 -0
  251. package/dist/blocks/Tooltip/gallery.yaml +1214 -0
  252. package/dist/blocks/Tooltip/tests/Tooltip.e2e.yaml +195 -0
  253. package/dist/blocks/Tooltip/tests.yaml +92 -0
  254. package/dist/blocks/Tour/gallery.yaml +2305 -0
  255. package/dist/blocks/Tour/tests/Tour.e2e.yaml +90 -0
  256. package/dist/blocks/Tour/tests.yaml +151 -0
  257. package/dist/blocks/TreeInput/gallery.yaml +78 -0
  258. package/dist/blocks/TreeInput/tests/TreeInput.e2e.yaml +139 -0
  259. package/dist/blocks/TreeInput/tests.yaml +140 -0
  260. package/dist/blocks/TreeMultipleSelector/gallery.yaml +67 -0
  261. package/dist/blocks/TreeSelector/gallery.yaml +81 -0
  262. package/dist/blocks/Watermark/gallery.yaml +479 -0
  263. package/dist/blocks/Watermark/tests/Watermark.e2e.yaml +62 -0
  264. package/dist/blocks/Watermark/tests.yaml +86 -0
  265. package/dist/blocks/WeekSelector/WeekSelector.js +6 -0
  266. package/dist/blocks/WeekSelector/e2e.js +26 -2
  267. package/dist/blocks/WeekSelector/gallery.yaml +589 -0
  268. package/dist/blocks/WeekSelector/meta.js +6 -0
  269. package/dist/blocks/WeekSelector/tests/WeekSelector.e2e.yaml +154 -0
  270. package/dist/blocks/WeekSelector/tests.yaml +122 -0
  271. package/dist/blocks.js +2 -0
  272. package/dist/disabledDate.js +91 -19
  273. package/dist/e2e.js +2 -0
  274. package/dist/getPresets.js +151 -0
  275. package/dist/getTagColor.js +44 -0
  276. package/dist/getTagSelectorOptions.js +30 -0
  277. package/dist/metas.js +2 -0
  278. package/dist/pickerPresetsStyle.css +26 -0
  279. package/dist/schemas/disabledDates.js +6 -2
  280. package/dist/schemas/index.js +1 -0
  281. package/dist/schemas/presets.js +111 -0
  282. package/dist/tagSelectorStyle.css +68 -0
  283. package/package.json +13 -13
@@ -0,0 +1,1043 @@
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 Confirm Modal
16
+ blocks:
17
+ - id: confirm_basic_trigger
18
+ type: Button
19
+ layout:
20
+ flex: 0 0 auto
21
+ properties:
22
+ title: Open Confirm
23
+ color: primary
24
+ variant: solid
25
+ events:
26
+ onClick:
27
+ - id: confirm_basic_open
28
+ type: CallMethod
29
+ params:
30
+ blockId: confirm_basic
31
+ method: open
32
+ - id: confirm_basic
33
+ type: ConfirmModal
34
+ properties:
35
+ title: Are you sure?
36
+ content: This action cannot be undone.
37
+
38
+ - title: Status Types
39
+ blocks:
40
+ - id: confirm_status_confirm_btn
41
+ type: Button
42
+ layout:
43
+ flex: 0 0 auto
44
+ properties:
45
+ title: Confirm
46
+ color: primary
47
+ variant: outlined
48
+ events:
49
+ onClick:
50
+ - id: confirm_status_confirm_open
51
+ type: CallMethod
52
+ params:
53
+ blockId: confirm_status_confirm
54
+ method: open
55
+ - id: confirm_status_info_btn
56
+ type: Button
57
+ layout:
58
+ flex: 0 0 auto
59
+ properties:
60
+ title: Info
61
+ color: blue
62
+ variant: outlined
63
+ events:
64
+ onClick:
65
+ - id: confirm_status_info_open
66
+ type: CallMethod
67
+ params:
68
+ blockId: confirm_status_info
69
+ method: open
70
+ - id: confirm_status_success_btn
71
+ type: Button
72
+ layout:
73
+ flex: 0 0 auto
74
+ properties:
75
+ title: Success
76
+ color: green
77
+ variant: outlined
78
+ events:
79
+ onClick:
80
+ - id: confirm_status_success_open
81
+ type: CallMethod
82
+ params:
83
+ blockId: confirm_status_success
84
+ method: open
85
+ - id: confirm_status_warning_btn
86
+ type: Button
87
+ layout:
88
+ flex: 0 0 auto
89
+ properties:
90
+ title: Warning
91
+ color: orange
92
+ variant: outlined
93
+ events:
94
+ onClick:
95
+ - id: confirm_status_warning_open
96
+ type: CallMethod
97
+ params:
98
+ blockId: confirm_status_warning
99
+ method: open
100
+ - id: confirm_status_error_btn
101
+ type: Button
102
+ layout:
103
+ flex: 0 0 auto
104
+ properties:
105
+ title: Error
106
+ color: danger
107
+ variant: outlined
108
+ events:
109
+ onClick:
110
+ - id: confirm_status_error_open
111
+ type: CallMethod
112
+ params:
113
+ blockId: confirm_status_error
114
+ method: open
115
+ - id: confirm_status_confirm
116
+ type: ConfirmModal
117
+ properties:
118
+ title: Confirm Action
119
+ content: Do you want to proceed with this action?
120
+ status: confirm
121
+ - id: confirm_status_info
122
+ type: ConfirmModal
123
+ properties:
124
+ title: Information
125
+ content: Your account has been updated successfully.
126
+ status: info
127
+ - id: confirm_status_success
128
+ type: ConfirmModal
129
+ properties:
130
+ title: Success
131
+ content: The operation completed successfully.
132
+ status: success
133
+ - id: confirm_status_warning
134
+ type: ConfirmModal
135
+ properties:
136
+ title: Warning
137
+ content: This will overwrite existing data. Are you sure you want to continue?
138
+ status: warning
139
+ - id: confirm_status_error
140
+ type: ConfirmModal
141
+ properties:
142
+ title: Error
143
+ content: An error occurred while processing your request. Do you want to retry?
144
+ status: error
145
+
146
+ - title: Override Status at Open Time
147
+ blocks:
148
+ - id: confirm_override_info_btn
149
+ type: Button
150
+ layout:
151
+ flex: 0 0 auto
152
+ properties:
153
+ title: Open as Info
154
+ color: blue
155
+ variant: outlined
156
+ events:
157
+ onClick:
158
+ - id: confirm_override_info_open
159
+ type: CallMethod
160
+ params:
161
+ blockId: confirm_override
162
+ method: open
163
+ args:
164
+ status: info
165
+ - id: confirm_override_error_btn
166
+ type: Button
167
+ layout:
168
+ flex: 0 0 auto
169
+ properties:
170
+ title: Open as Error
171
+ color: danger
172
+ variant: outlined
173
+ events:
174
+ onClick:
175
+ - id: confirm_override_error_open
176
+ type: CallMethod
177
+ params:
178
+ blockId: confirm_override
179
+ method: open
180
+ args:
181
+ status: error
182
+ - id: confirm_override_success_btn
183
+ type: Button
184
+ layout:
185
+ flex: 0 0 auto
186
+ properties:
187
+ title: Open as Success
188
+ color: green
189
+ variant: outlined
190
+ events:
191
+ onClick:
192
+ - id: confirm_override_success_open
193
+ type: CallMethod
194
+ params:
195
+ blockId: confirm_override
196
+ method: open
197
+ args:
198
+ status: success
199
+ - id: confirm_override
200
+ type: ConfirmModal
201
+ properties:
202
+ title: Dynamic Status
203
+ content: The status of this modal was set at open time via the method args, overriding the default.
204
+ status: confirm
205
+
206
+ - title: Custom Button Text
207
+ blocks:
208
+ - id: confirm_btn_text_trigger
209
+ type: Button
210
+ layout:
211
+ flex: 0 0 auto
212
+ properties:
213
+ title: Open Custom Buttons
214
+ color: primary
215
+ variant: outlined
216
+ events:
217
+ onClick:
218
+ - id: confirm_btn_text_open
219
+ type: CallMethod
220
+ params:
221
+ blockId: confirm_btn_text
222
+ method: open
223
+ - id: confirm_btn_text
224
+ type: ConfirmModal
225
+ properties:
226
+ title: Save Changes?
227
+ content: You have unsaved changes. Do you want to save before leaving?
228
+ okText: Save
229
+ cancelText: Discard
230
+
231
+ - title: Custom Icon
232
+ blocks:
233
+ - id: confirm_icon_trigger
234
+ type: Button
235
+ layout:
236
+ flex: 0 0 auto
237
+ properties:
238
+ title: Open with Custom Icon
239
+ color: primary
240
+ variant: outlined
241
+ events:
242
+ onClick:
243
+ - id: confirm_icon_open
244
+ type: CallMethod
245
+ params:
246
+ blockId: confirm_icon
247
+ method: open
248
+ - id: confirm_icon_colored_trigger
249
+ type: Button
250
+ layout:
251
+ flex: 0 0 auto
252
+ properties:
253
+ title: Open with Colored Icon
254
+ color: danger
255
+ variant: outlined
256
+ events:
257
+ onClick:
258
+ - id: confirm_icon_colored_open
259
+ type: CallMethod
260
+ params:
261
+ blockId: confirm_icon_colored
262
+ method: open
263
+ - id: confirm_icon
264
+ type: ConfirmModal
265
+ properties:
266
+ title: Delete Item?
267
+ content: This item will be permanently removed from the system.
268
+ icon: AiOutlineDelete
269
+ - id: confirm_icon_colored
270
+ type: ConfirmModal
271
+ properties:
272
+ title: Danger Zone
273
+ content: Are you absolutely sure you want to delete this project and all its data?
274
+ icon:
275
+ name: AiOutlineWarning
276
+ color: '#ff4d4f'
277
+ size: 22
278
+
279
+ - title: Closable and Mask Options
280
+ blocks:
281
+ - id: confirm_closable_trigger
282
+ type: Button
283
+ layout:
284
+ flex: 0 0 auto
285
+ properties:
286
+ title: Closable
287
+ color: primary
288
+ variant: outlined
289
+ events:
290
+ onClick:
291
+ - id: confirm_closable_open
292
+ type: CallMethod
293
+ params:
294
+ blockId: confirm_closable
295
+ method: open
296
+ - id: confirm_mask_closable_trigger
297
+ type: Button
298
+ layout:
299
+ flex: 0 0 auto
300
+ properties:
301
+ title: Mask Closable
302
+ color: primary
303
+ variant: outlined
304
+ events:
305
+ onClick:
306
+ - id: confirm_mask_closable_open
307
+ type: CallMethod
308
+ params:
309
+ blockId: confirm_mask_closable
310
+ method: open
311
+ - id: confirm_no_mask_trigger
312
+ type: Button
313
+ layout:
314
+ flex: 0 0 auto
315
+ properties:
316
+ title: No Mask
317
+ color: primary
318
+ variant: outlined
319
+ events:
320
+ onClick:
321
+ - id: confirm_no_mask_open
322
+ type: CallMethod
323
+ params:
324
+ blockId: confirm_no_mask
325
+ method: open
326
+ - id: confirm_closable
327
+ type: ConfirmModal
328
+ properties:
329
+ title: Closable Confirm
330
+ content: This confirm modal shows a close (x) button in the top right.
331
+ closable: true
332
+ - id: confirm_mask_closable
333
+ type: ConfirmModal
334
+ properties:
335
+ title: Mask Closable
336
+ content: Click the mask area outside the modal to dismiss it.
337
+ maskClosable: true
338
+ - id: confirm_no_mask
339
+ type: ConfirmModal
340
+ properties:
341
+ title: No Mask
342
+ content: This confirm modal has no mask overlay behind it.
343
+ mask: false
344
+
345
+ - title: Centered and Custom Width
346
+ blocks:
347
+ - id: confirm_centered_trigger
348
+ type: Button
349
+ layout:
350
+ flex: 0 0 auto
351
+ properties:
352
+ title: Centered
353
+ color: primary
354
+ variant: outlined
355
+ events:
356
+ onClick:
357
+ - id: confirm_centered_open
358
+ type: CallMethod
359
+ params:
360
+ blockId: confirm_centered
361
+ method: open
362
+ - id: confirm_narrow_trigger
363
+ type: Button
364
+ layout:
365
+ flex: 0 0 auto
366
+ properties:
367
+ title: Narrow (300px)
368
+ color: primary
369
+ variant: outlined
370
+ events:
371
+ onClick:
372
+ - id: confirm_narrow_open
373
+ type: CallMethod
374
+ params:
375
+ blockId: confirm_narrow
376
+ method: open
377
+ - id: confirm_wide_trigger
378
+ type: Button
379
+ layout:
380
+ flex: 0 0 auto
381
+ properties:
382
+ title: Wide (600px)
383
+ color: primary
384
+ variant: outlined
385
+ events:
386
+ onClick:
387
+ - id: confirm_wide_open
388
+ type: CallMethod
389
+ params:
390
+ blockId: confirm_wide
391
+ method: open
392
+ - id: confirm_centered
393
+ type: ConfirmModal
394
+ properties:
395
+ title: Centered Confirm
396
+ content: This confirm modal is vertically centered in the viewport.
397
+ centered: true
398
+ - id: confirm_narrow
399
+ type: ConfirmModal
400
+ properties:
401
+ title: Narrow Confirm
402
+ content: A compact 300px confirm modal.
403
+ width: 300
404
+ - id: confirm_wide
405
+ type: ConfirmModal
406
+ properties:
407
+ title: Wide Confirm
408
+ content: A wider 600px confirm modal with more room for content. Useful for complex messages or forms.
409
+ width: 600
410
+
411
+ - title: Custom Z-Index
412
+ blocks:
413
+ - id: confirm_zindex_trigger
414
+ type: Button
415
+ layout:
416
+ flex: 0 0 auto
417
+ properties:
418
+ title: Open Confirm (z-index 2000)
419
+ color: primary
420
+ variant: outlined
421
+ events:
422
+ onClick:
423
+ - id: confirm_zindex_open
424
+ type: CallMethod
425
+ params:
426
+ blockId: confirm_zindex
427
+ method: open
428
+ - id: confirm_zindex
429
+ type: ConfirmModal
430
+ properties:
431
+ title: High Z-Index Confirm
432
+ content: This confirm modal uses a custom z-index of 2000, ensuring it appears above other overlays.
433
+ zIndex: 2000
434
+
435
+ - title: Custom Button Properties
436
+ blocks:
437
+ - id: confirm_ok_btn_trigger
438
+ type: Button
439
+ layout:
440
+ flex: 0 0 auto
441
+ properties:
442
+ title: Open with Danger Ok
443
+ color: danger
444
+ variant: outlined
445
+ events:
446
+ onClick:
447
+ - id: confirm_ok_btn_open
448
+ type: CallMethod
449
+ params:
450
+ blockId: confirm_ok_btn
451
+ method: open
452
+ - id: confirm_icon_btns_trigger
453
+ type: Button
454
+ layout:
455
+ flex: 0 0 auto
456
+ properties:
457
+ title: Open with Icon Buttons
458
+ color: primary
459
+ variant: outlined
460
+ events:
461
+ onClick:
462
+ - id: confirm_icon_btns_open
463
+ type: CallMethod
464
+ params:
465
+ blockId: confirm_icon_btns
466
+ method: open
467
+ - id: confirm_ok_btn
468
+ type: ConfirmModal
469
+ properties:
470
+ title: Delete Permanently?
471
+ content: This action will permanently delete the selected items and cannot be undone.
472
+ status: error
473
+ okText: Delete
474
+ okButton:
475
+ danger: true
476
+ cancelText: Keep Items
477
+ - id: confirm_icon_btns
478
+ type: ConfirmModal
479
+ properties:
480
+ title: Export Data?
481
+ content: Your data will be exported to a CSV file and downloaded.
482
+ status: confirm
483
+ okText: Export
484
+ okButton:
485
+ icon: AiOutlineDownload
486
+ cancelText: Cancel
487
+ cancelButton:
488
+ icon: AiOutlineClose
489
+
490
+ - title: Modal Style
491
+ blocks:
492
+ - id: confirm_modal_style_trigger
493
+ type: Button
494
+ layout:
495
+ flex: 0 0 auto
496
+ properties:
497
+ title: Open Styled Modal
498
+ color: primary
499
+ variant: outlined
500
+ events:
501
+ onClick:
502
+ - id: confirm_modal_style_open
503
+ type: CallMethod
504
+ params:
505
+ blockId: confirm_modal_style
506
+ method: open
507
+ - id: confirm_modal_style
508
+ type: ConfirmModal
509
+ properties:
510
+ title: Styled Modal
511
+ content: This modal uses style to apply custom CSS directly to the modal element.
512
+ style:
513
+ .element:
514
+ borderRadius: 16
515
+ boxShadow: 0 8px 32px rgba(0, 0, 0, 0.2)
516
+
517
+ - title: Content Slot
518
+ blocks:
519
+ - id: confirm_content_slot_trigger
520
+ type: Button
521
+ layout:
522
+ flex: 0 0 auto
523
+ properties:
524
+ title: Open with Rich Content
525
+ color: primary
526
+ variant: solid
527
+ events:
528
+ onClick:
529
+ - id: confirm_content_slot_open
530
+ type: CallMethod
531
+ params:
532
+ blockId: confirm_content_slot
533
+ method: open
534
+ - id: confirm_content_slot
535
+ type: ConfirmModal
536
+ properties:
537
+ title: Review Changes
538
+ status: confirm
539
+ width: 500
540
+ blocks:
541
+ - id: confirm_content_slot_desc
542
+ type: Descriptions
543
+ properties:
544
+ size: small
545
+ column: 1
546
+ items:
547
+ - label: File
548
+ value: report-2026-Q1.xlsx
549
+ - label: Size
550
+ value: 2.4 MB
551
+ - label: Modified
552
+ value: March 10, 2026
553
+ - label: Author
554
+ value: Jane Cooper
555
+
556
+ - title: HTML Content
557
+ blocks:
558
+ - id: confirm_html_trigger
559
+ type: Button
560
+ layout:
561
+ flex: 0 0 auto
562
+ properties:
563
+ title: Open with HTML Content
564
+ color: primary
565
+ variant: outlined
566
+ events:
567
+ onClick:
568
+ - id: confirm_html_open
569
+ type: CallMethod
570
+ params:
571
+ blockId: confirm_html
572
+ method: open
573
+ - id: confirm_html
574
+ type: ConfirmModal
575
+ properties:
576
+ title: '<b>Important</b> Notice'
577
+ content: 'Your subscription will expire on <b>March 31, 2026</b>. Please <em>renew</em> to avoid service interruption.'
578
+ status: warning
579
+
580
+ - title: Events with Actions
581
+ blocks:
582
+ - id: confirm_events_trigger
583
+ type: Button
584
+ layout:
585
+ flex: 0 0 auto
586
+ properties:
587
+ title: Open with Event Actions
588
+ color: primary
589
+ variant: solid
590
+ events:
591
+ onClick:
592
+ - id: confirm_events_open
593
+ type: CallMethod
594
+ params:
595
+ blockId: confirm_events
596
+ method: open
597
+ - id: confirm_events_result
598
+ type: Paragraph
599
+ properties:
600
+ content:
601
+ _if:
602
+ test:
603
+ _not:
604
+ _not:
605
+ _state: confirm_events_action
606
+ then:
607
+ _string.concat:
608
+ - 'Last action: '
609
+ - _state: confirm_events_action
610
+ else: Click the button above and choose Ok or Cancel.
611
+ - id: confirm_events
612
+ type: ConfirmModal
613
+ properties:
614
+ title: Confirm with Events
615
+ content: Clicking Ok or Cancel will update the state and show a message.
616
+ okText: Confirm
617
+ events:
618
+ onOpen:
619
+ - id: confirm_events_on_open_set
620
+ type: SetState
621
+ params:
622
+ confirm_events_action: Modal opened...
623
+ onOk:
624
+ - id: confirm_events_on_ok_set
625
+ type: SetState
626
+ params:
627
+ confirm_events_action: Confirmed
628
+ - id: confirm_events_on_ok_msg
629
+ type: DisplayMessage
630
+ params:
631
+ content: Action confirmed successfully.
632
+ status: success
633
+ onCancel:
634
+ - id: confirm_events_on_cancel_set
635
+ type: SetState
636
+ params:
637
+ confirm_events_action: Cancelled
638
+ - id: confirm_events_on_cancel_msg
639
+ type: DisplayMessage
640
+ params:
641
+ content: Action was cancelled.
642
+ status: info
643
+
644
+ - title: CSS Key Classes
645
+ blocks:
646
+ - id: confirm_css_element_trigger
647
+ type: Button
648
+ layout:
649
+ flex: 0 0 auto
650
+ properties:
651
+ title: Styled Element
652
+ color: primary
653
+ variant: outlined
654
+ events:
655
+ onClick:
656
+ - id: confirm_css_element_open
657
+ type: CallMethod
658
+ params:
659
+ blockId: confirm_css_element
660
+ method: open
661
+ - id: confirm_css_body_trigger
662
+ type: Button
663
+ layout:
664
+ flex: 0 0 auto
665
+ properties:
666
+ title: Styled Body
667
+ color: primary
668
+ variant: outlined
669
+ events:
670
+ onClick:
671
+ - id: confirm_css_body_open
672
+ type: CallMethod
673
+ params:
674
+ blockId: confirm_css_body
675
+ method: open
676
+ - id: confirm_css_element
677
+ type: ConfirmModal
678
+ class:
679
+ element: rounded-2xl shadow-2xl
680
+ properties:
681
+ title: Styled Element
682
+ content: 'The element CSS key applies Tailwind classes to the modal wrapper. This modal uses rounded-2xl and shadow-2xl on the element key.'
683
+ - id: confirm_css_body
684
+ type: ConfirmModal
685
+ class:
686
+ body: bg-bg-layout p-6
687
+ properties:
688
+ title: Styled Body
689
+ content: 'The body CSS key targets the modal body area. This modal uses bg-bg-layout and p-6 on the body key for a tinted content area.'
690
+
691
+ - title: Theme Token Overrides
692
+ blocks:
693
+ - id: confirm_theme_colors_trigger
694
+ type: Button
695
+ layout:
696
+ flex: 0 0 auto
697
+ properties:
698
+ title: Custom Colors
699
+ color: primary
700
+ variant: outlined
701
+ events:
702
+ onClick:
703
+ - id: confirm_theme_colors_open
704
+ type: CallMethod
705
+ params:
706
+ blockId: confirm_theme_colors
707
+ method: open
708
+ - id: confirm_theme_padding_trigger
709
+ type: Button
710
+ layout:
711
+ flex: 0 0 auto
712
+ properties:
713
+ title: Custom Padding
714
+ color: primary
715
+ variant: outlined
716
+ events:
717
+ onClick:
718
+ - id: confirm_theme_padding_open
719
+ type: CallMethod
720
+ params:
721
+ blockId: confirm_theme_padding
722
+ method: open
723
+ - id: confirm_theme_radius_trigger
724
+ type: Button
725
+ layout:
726
+ flex: 0 0 auto
727
+ properties:
728
+ title: Custom Radius and Mask
729
+ color: primary
730
+ variant: outlined
731
+ events:
732
+ onClick:
733
+ - id: confirm_theme_radius_open
734
+ type: CallMethod
735
+ params:
736
+ blockId: confirm_theme_radius
737
+ method: open
738
+ - id: confirm_theme_colors
739
+ type: ConfirmModal
740
+ properties:
741
+ title: Custom Color Theme
742
+ content: This modal uses theme tokens to set a custom header background, title color, content background, and footer background.
743
+ theme:
744
+ titleColor: '#0958d9'
745
+ titleFontSize: 18
746
+ - id: confirm_theme_padding
747
+ type: ConfirmModal
748
+ properties:
749
+ title: Custom Padding
750
+ content: This modal uses confirmBodyPadding and confirmBtnsMarginTop tokens for tighter spacing. The confirmIconMarginInlineEnd adjusts icon-to-text distance.
751
+ theme:
752
+ confirmBodyPadding: '16px 24px'
753
+ confirmBtnsMarginTop: 16
754
+ confirmIconMarginInlineEnd: 12
755
+ - id: confirm_theme_radius
756
+ type: ConfirmModal
757
+ properties:
758
+ title: Rounded with Tinted Mask
759
+ content: This modal uses borderRadiusLG for extra-rounded corners and colorBgMask for a tinted overlay backdrop.
760
+ theme:
761
+ borderRadiusLG: 20
762
+ colorBgMask: 'rgba(0, 0, 100, 0.3)'
763
+ titleLineHeight: 2
764
+
765
+ - title: ConfirmModal in Delete Flow
766
+ blocks:
767
+ - id: delete_flow_card
768
+ type: Card
769
+ properties:
770
+ title: Team Members
771
+ size: small
772
+ blocks:
773
+ - id: delete_flow_list_item_1
774
+ type: Box
775
+ layout:
776
+ gap: 12
777
+ align: center
778
+ blocks:
779
+ - id: delete_flow_avatar_1
780
+ type: Avatar
781
+ layout:
782
+ flex: 0 0 auto
783
+ properties:
784
+ icon: AiOutlineUser
785
+ size: 32
786
+ color: '#fff'
787
+ backgroundColor: '#1677ff'
788
+ - id: delete_flow_name_1
789
+ type: Paragraph
790
+ layout:
791
+ flex: 1 1 0
792
+ properties:
793
+ content: Sarah Chen - Product Manager
794
+ - id: delete_flow_remove_btn_1
795
+ type: Button
796
+ layout:
797
+ flex: 0 0 auto
798
+ properties:
799
+ title: Remove
800
+ icon: AiOutlineDelete
801
+ color: danger
802
+ variant: text
803
+ size: small
804
+ events:
805
+ onClick:
806
+ - id: delete_flow_set_member
807
+ type: SetState
808
+ params:
809
+ member_to_remove: Sarah Chen
810
+ - id: delete_flow_open_confirm
811
+ type: CallMethod
812
+ params:
813
+ blockId: delete_flow_confirm
814
+ method: open
815
+ - id: delete_flow_divider
816
+ type: Divider
817
+ - id: delete_flow_list_item_2
818
+ type: Box
819
+ layout:
820
+ gap: 12
821
+ align: center
822
+ blocks:
823
+ - id: delete_flow_avatar_2
824
+ type: Avatar
825
+ layout:
826
+ flex: 0 0 auto
827
+ properties:
828
+ icon: AiOutlineUser
829
+ size: 32
830
+ color: '#fff'
831
+ backgroundColor: '#52c41a'
832
+ - id: delete_flow_name_2
833
+ type: Paragraph
834
+ layout:
835
+ flex: 1 1 0
836
+ properties:
837
+ content: James Park - Engineering Lead
838
+ - id: delete_flow_remove_btn_2
839
+ type: Button
840
+ layout:
841
+ flex: 0 0 auto
842
+ properties:
843
+ title: Remove
844
+ icon: AiOutlineDelete
845
+ color: danger
846
+ variant: text
847
+ size: small
848
+ events:
849
+ onClick:
850
+ - id: delete_flow_set_member_2
851
+ type: SetState
852
+ params:
853
+ member_to_remove: James Park
854
+ - id: delete_flow_open_confirm_2
855
+ type: CallMethod
856
+ params:
857
+ blockId: delete_flow_confirm
858
+ method: open
859
+ - id: delete_flow_confirm
860
+ type: ConfirmModal
861
+ properties:
862
+ title: Remove Team Member
863
+ status: error
864
+ icon:
865
+ name: AiOutlineUserDelete
866
+ color: '#ff4d4f'
867
+ okText: Remove
868
+ okButton:
869
+ danger: true
870
+ cancelText: Keep Member
871
+ content:
872
+ _string.concat:
873
+ - 'Are you sure you want to remove '
874
+ - _state: member_to_remove
875
+ - ' from the team? They will lose access to all project resources.'
876
+ events:
877
+ onOk:
878
+ - id: delete_flow_ok_msg
879
+ type: DisplayMessage
880
+ params:
881
+ content:
882
+ _string.concat:
883
+ - _state: member_to_remove
884
+ - ' has been removed from the team.'
885
+ status: success
886
+
887
+ - title: ConfirmModal in Form Submission
888
+ blocks:
889
+ - id: form_submit_card
890
+ type: Card
891
+ properties:
892
+ title: Submit Support Ticket
893
+ blocks:
894
+ - id: form_submit_subject
895
+ type: TextInput
896
+ properties:
897
+ title: Subject
898
+ placeholder: Brief description of the issue
899
+ - id: form_submit_priority
900
+ type: Selector
901
+ properties:
902
+ title: Priority
903
+ options:
904
+ - label: Low
905
+ value: low
906
+ - label: Medium
907
+ value: medium
908
+ - label: High
909
+ value: high
910
+ - label: Critical
911
+ value: critical
912
+ - id: form_submit_description
913
+ type: TextArea
914
+ properties:
915
+ title: Description
916
+ placeholder: Describe your issue in detail...
917
+ rows: 4
918
+ - id: form_submit_btn
919
+ type: Button
920
+ layout:
921
+ flex: 0 0 auto
922
+ properties:
923
+ title: Submit Ticket
924
+ icon: AiOutlineSend
925
+ color: primary
926
+ variant: solid
927
+ events:
928
+ onClick:
929
+ - id: form_submit_open_confirm
930
+ type: CallMethod
931
+ params:
932
+ blockId: form_submit_confirm
933
+ method: open
934
+ - id: form_submit_confirm
935
+ type: ConfirmModal
936
+ properties:
937
+ title: Submit Support Ticket?
938
+ content: Please verify your ticket details before submitting. You will receive a confirmation email once the ticket is created.
939
+ status: confirm
940
+ okText: Submit
941
+ cancelText: Review Again
942
+ centered: true
943
+ width: 480
944
+ icon: AiOutlineCheckCircle
945
+ events:
946
+ onOk:
947
+ - id: form_submit_ok_msg
948
+ type: DisplayMessage
949
+ params:
950
+ content: Support ticket submitted successfully. Check your email for confirmation.
951
+ status: success
952
+ - id: form_submit_ok_reset
953
+ type: SetState
954
+ params:
955
+ form_submit_subject: null
956
+ form_submit_priority: null
957
+ form_submit_description: null
958
+ onCancel:
959
+ - id: form_submit_cancel_msg
960
+ type: DisplayMessage
961
+ params:
962
+ content: Take your time to review the details.
963
+ status: info
964
+
965
+ - title: ConfirmModal in Navigation Guard
966
+ blocks:
967
+ - id: nav_guard_card
968
+ type: Card
969
+ properties:
970
+ title: Edit Profile
971
+ blocks:
972
+ - id: nav_guard_name
973
+ type: TextInput
974
+ properties:
975
+ title: Display Name
976
+ placeholder: Enter your display name
977
+ - id: nav_guard_email
978
+ type: TextInput
979
+ properties:
980
+ title: Email Address
981
+ placeholder: name@example.com
982
+ - id: nav_guard_actions
983
+ type: Box
984
+ layout:
985
+ gap: 8
986
+ justify: end
987
+ blocks:
988
+ - id: nav_guard_save_btn
989
+ type: Button
990
+ layout:
991
+ flex: 0 0 auto
992
+ properties:
993
+ title: Save Changes
994
+ color: primary
995
+ variant: solid
996
+ events:
997
+ onClick:
998
+ - id: nav_guard_save_msg
999
+ type: DisplayMessage
1000
+ params:
1001
+ content: Profile saved successfully.
1002
+ status: success
1003
+ - id: nav_guard_leave_btn
1004
+ type: Button
1005
+ layout:
1006
+ flex: 0 0 auto
1007
+ properties:
1008
+ title: Leave Page
1009
+ color: default
1010
+ variant: outlined
1011
+ events:
1012
+ onClick:
1013
+ - id: nav_guard_open_confirm
1014
+ type: CallMethod
1015
+ params:
1016
+ blockId: nav_guard_confirm
1017
+ method: open
1018
+ - id: nav_guard_confirm
1019
+ type: ConfirmModal
1020
+ properties:
1021
+ title: Unsaved Changes
1022
+ content: You have unsaved changes that will be lost if you leave this page. Do you want to save your changes before leaving?
1023
+ status: warning
1024
+ icon: AiOutlineWarning
1025
+ okText: Save & Leave
1026
+ cancelText: Discard Changes
1027
+ closable: true
1028
+ events:
1029
+ onOk:
1030
+ - id: nav_guard_ok_msg
1031
+ type: DisplayMessage
1032
+ params:
1033
+ content: Changes saved. Navigating away...
1034
+ status: success
1035
+ - id: nav_guard_ok_link
1036
+ type: Link
1037
+ params:
1038
+ home: true
1039
+ onCancel:
1040
+ - id: nav_guard_cancel_link
1041
+ type: Link
1042
+ params:
1043
+ home: true