@uipath/apollo-wind 0.7.2-pr188.4865fad

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 (254) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +188 -0
  3. package/dist/components/forms/data-fetcher.cjs +250 -0
  4. package/dist/components/forms/data-fetcher.d.ts +173 -0
  5. package/dist/components/forms/data-fetcher.js +207 -0
  6. package/dist/components/forms/demo-mocks.cjs +1031 -0
  7. package/dist/components/forms/demo-mocks.d.ts +10 -0
  8. package/dist/components/forms/demo-mocks.js +997 -0
  9. package/dist/components/forms/field-renderer.cjs +595 -0
  10. package/dist/components/forms/field-renderer.d.ts +14 -0
  11. package/dist/components/forms/field-renderer.js +561 -0
  12. package/dist/components/forms/form-designer.cjs +2314 -0
  13. package/dist/components/forms/form-designer.d.ts +1 -0
  14. package/dist/components/forms/form-designer.js +2280 -0
  15. package/dist/components/forms/form-examples.cjs +962 -0
  16. package/dist/components/forms/form-examples.d.ts +46 -0
  17. package/dist/components/forms/form-examples.js +907 -0
  18. package/dist/components/forms/form-plugins.cjs +225 -0
  19. package/dist/components/forms/form-plugins.d.ts +11 -0
  20. package/dist/components/forms/form-plugins.js +176 -0
  21. package/dist/components/forms/form-schema.cjs +56 -0
  22. package/dist/components/forms/form-schema.d.ts +324 -0
  23. package/dist/components/forms/form-schema.js +13 -0
  24. package/dist/components/forms/form-state-viewer.cjs +498 -0
  25. package/dist/components/forms/form-state-viewer.d.ts +15 -0
  26. package/dist/components/forms/form-state-viewer.js +464 -0
  27. package/dist/components/forms/index.cjs +103 -0
  28. package/dist/components/forms/index.d.ts +13 -0
  29. package/dist/components/forms/index.js +9 -0
  30. package/dist/components/forms/metadata-form.cjs +400 -0
  31. package/dist/components/forms/metadata-form.d.ts +16 -0
  32. package/dist/components/forms/metadata-form.js +366 -0
  33. package/dist/components/forms/rules-engine.cjs +343 -0
  34. package/dist/components/forms/rules-engine.d.ts +99 -0
  35. package/dist/components/forms/rules-engine.js +293 -0
  36. package/dist/components/forms/schema-serializer.cjs +250 -0
  37. package/dist/components/forms/schema-serializer.d.ts +27 -0
  38. package/dist/components/forms/schema-serializer.js +213 -0
  39. package/dist/components/forms/schema-viewer.cjs +157 -0
  40. package/dist/components/forms/schema-viewer.d.ts +29 -0
  41. package/dist/components/forms/schema-viewer.js +117 -0
  42. package/dist/components/forms/validation-converter.cjs +154 -0
  43. package/dist/components/forms/validation-converter.d.ts +42 -0
  44. package/dist/components/forms/validation-converter.js +114 -0
  45. package/dist/components/ui/accordion.cjs +82 -0
  46. package/dist/components/ui/accordion.d.ts +7 -0
  47. package/dist/components/ui/accordion.js +39 -0
  48. package/dist/components/ui/alert-dialog.cjs +126 -0
  49. package/dist/components/ui/alert-dialog.d.ts +20 -0
  50. package/dist/components/ui/alert-dialog.js +62 -0
  51. package/dist/components/ui/alert.cjs +77 -0
  52. package/dist/components/ui/alert.d.ts +8 -0
  53. package/dist/components/ui/alert.js +37 -0
  54. package/dist/components/ui/aspect-ratio.cjs +38 -0
  55. package/dist/components/ui/aspect-ratio.d.ts +3 -0
  56. package/dist/components/ui/aspect-ratio.js +4 -0
  57. package/dist/components/ui/avatar.cjs +63 -0
  58. package/dist/components/ui/avatar.d.ts +6 -0
  59. package/dist/components/ui/avatar.js +23 -0
  60. package/dist/components/ui/badge.cjs +63 -0
  61. package/dist/components/ui/badge.d.ts +9 -0
  62. package/dist/components/ui/badge.js +26 -0
  63. package/dist/components/ui/breadcrumb.cjs +118 -0
  64. package/dist/components/ui/breadcrumb.d.ts +19 -0
  65. package/dist/components/ui/breadcrumb.js +66 -0
  66. package/dist/components/ui/button-group.cjs +68 -0
  67. package/dist/components/ui/button-group.d.ts +14 -0
  68. package/dist/components/ui/button-group.js +28 -0
  69. package/dist/components/ui/button.cjs +78 -0
  70. package/dist/components/ui/button.d.ts +11 -0
  71. package/dist/components/ui/button.js +41 -0
  72. package/dist/components/ui/calendar.cjs +144 -0
  73. package/dist/components/ui/calendar.d.ts +8 -0
  74. package/dist/components/ui/calendar.js +107 -0
  75. package/dist/components/ui/card.cjs +89 -0
  76. package/dist/components/ui/card.d.ts +8 -0
  77. package/dist/components/ui/card.js +40 -0
  78. package/dist/components/ui/checkbox.cjs +52 -0
  79. package/dist/components/ui/checkbox.d.ts +6 -0
  80. package/dist/components/ui/checkbox.js +18 -0
  81. package/dist/components/ui/collapsible.cjs +45 -0
  82. package/dist/components/ui/collapsible.d.ts +5 -0
  83. package/dist/components/ui/collapsible.js +5 -0
  84. package/dist/components/ui/combobox.cjs +102 -0
  85. package/dist/components/ui/combobox.d.ts +15 -0
  86. package/dist/components/ui/combobox.js +68 -0
  87. package/dist/components/ui/command.cjs +131 -0
  88. package/dist/components/ui/command.d.ts +80 -0
  89. package/dist/components/ui/command.js +73 -0
  90. package/dist/components/ui/context-menu.cjs +173 -0
  91. package/dist/components/ui/context-menu.d.ts +27 -0
  92. package/dist/components/ui/context-menu.js +97 -0
  93. package/dist/components/ui/data-table.cjs +292 -0
  94. package/dist/components/ui/data-table.d.ts +23 -0
  95. package/dist/components/ui/data-table.js +252 -0
  96. package/dist/components/ui/date-picker.cjs +118 -0
  97. package/dist/components/ui/date-picker.d.ts +21 -0
  98. package/dist/components/ui/date-picker.js +81 -0
  99. package/dist/components/ui/datetime-picker.cjs +154 -0
  100. package/dist/components/ui/datetime-picker.d.ts +9 -0
  101. package/dist/components/ui/datetime-picker.js +120 -0
  102. package/dist/components/ui/dialog.cjs +159 -0
  103. package/dist/components/ui/dialog.d.ts +15 -0
  104. package/dist/components/ui/dialog.js +98 -0
  105. package/dist/components/ui/drawer.cjs +116 -0
  106. package/dist/components/ui/drawer.d.ts +18 -0
  107. package/dist/components/ui/drawer.js +55 -0
  108. package/dist/components/ui/dropdown-menu.cjs +174 -0
  109. package/dist/components/ui/dropdown-menu.d.ts +27 -0
  110. package/dist/components/ui/dropdown-menu.js +98 -0
  111. package/dist/components/ui/editable-cell.cjs +256 -0
  112. package/dist/components/ui/editable-cell.d.ts +24 -0
  113. package/dist/components/ui/editable-cell.js +219 -0
  114. package/dist/components/ui/empty-state.cjs +73 -0
  115. package/dist/components/ui/empty-state.d.ts +16 -0
  116. package/dist/components/ui/empty-state.js +39 -0
  117. package/dist/components/ui/file-upload.cjs +236 -0
  118. package/dist/components/ui/file-upload.d.ts +10 -0
  119. package/dist/components/ui/file-upload.js +202 -0
  120. package/dist/components/ui/hover-card.cjs +55 -0
  121. package/dist/components/ui/hover-card.d.ts +6 -0
  122. package/dist/components/ui/hover-card.js +15 -0
  123. package/dist/components/ui/index.cjs +546 -0
  124. package/dist/components/ui/index.d.ts +55 -0
  125. package/dist/components/ui/index.js +55 -0
  126. package/dist/components/ui/input.cjs +45 -0
  127. package/dist/components/ui/input.d.ts +5 -0
  128. package/dist/components/ui/input.js +11 -0
  129. package/dist/components/ui/label.cjs +47 -0
  130. package/dist/components/ui/label.d.ts +7 -0
  131. package/dist/components/ui/label.js +13 -0
  132. package/dist/components/ui/layout/column.cjs +84 -0
  133. package/dist/components/ui/layout/column.d.ts +21 -0
  134. package/dist/components/ui/layout/column.js +50 -0
  135. package/dist/components/ui/layout/grid.cjs +101 -0
  136. package/dist/components/ui/layout/grid.d.ts +22 -0
  137. package/dist/components/ui/layout/grid.js +67 -0
  138. package/dist/components/ui/layout/index.cjs +44 -0
  139. package/dist/components/ui/layout/index.d.ts +7 -0
  140. package/dist/components/ui/layout/index.js +4 -0
  141. package/dist/components/ui/layout/row.cjs +84 -0
  142. package/dist/components/ui/layout/row.d.ts +21 -0
  143. package/dist/components/ui/layout/row.js +50 -0
  144. package/dist/components/ui/layout/types.cjs +18 -0
  145. package/dist/components/ui/layout/types.d.ts +149 -0
  146. package/dist/components/ui/layout/types.js +0 -0
  147. package/dist/components/ui/layout/utils.cjs +324 -0
  148. package/dist/components/ui/layout/utils.d.ts +76 -0
  149. package/dist/components/ui/layout/utils.js +239 -0
  150. package/dist/components/ui/menubar.cjs +210 -0
  151. package/dist/components/ui/menubar.d.ts +28 -0
  152. package/dist/components/ui/menubar.js +131 -0
  153. package/dist/components/ui/multi-select.cjs +187 -0
  154. package/dist/components/ui/multi-select.d.ts +18 -0
  155. package/dist/components/ui/multi-select.js +153 -0
  156. package/dist/components/ui/navigation-menu.cjs +122 -0
  157. package/dist/components/ui/navigation-menu.d.ts +12 -0
  158. package/dist/components/ui/navigation-menu.js +64 -0
  159. package/dist/components/ui/pagination.cjs +131 -0
  160. package/dist/components/ui/pagination.d.ts +28 -0
  161. package/dist/components/ui/pagination.js +79 -0
  162. package/dist/components/ui/popover.cjs +61 -0
  163. package/dist/components/ui/popover.d.ts +7 -0
  164. package/dist/components/ui/popover.js +18 -0
  165. package/dist/components/ui/progress.cjs +51 -0
  166. package/dist/components/ui/progress.d.ts +4 -0
  167. package/dist/components/ui/progress.js +17 -0
  168. package/dist/components/ui/radio-group.cjs +61 -0
  169. package/dist/components/ui/radio-group.d.ts +5 -0
  170. package/dist/components/ui/radio-group.js +24 -0
  171. package/dist/components/ui/resizable.cjs +60 -0
  172. package/dist/components/ui/resizable.d.ts +23 -0
  173. package/dist/components/ui/resizable.js +20 -0
  174. package/dist/components/ui/scroll-area.cjs +67 -0
  175. package/dist/components/ui/scroll-area.d.ts +5 -0
  176. package/dist/components/ui/scroll-area.js +30 -0
  177. package/dist/components/ui/search.cjs +153 -0
  178. package/dist/components/ui/search.d.ts +19 -0
  179. package/dist/components/ui/search.js +116 -0
  180. package/dist/components/ui/select.cjs +151 -0
  181. package/dist/components/ui/select.d.ts +13 -0
  182. package/dist/components/ui/select.js +90 -0
  183. package/dist/components/ui/separator.cjs +47 -0
  184. package/dist/components/ui/separator.d.ts +4 -0
  185. package/dist/components/ui/separator.js +13 -0
  186. package/dist/components/ui/sheet.cjs +142 -0
  187. package/dist/components/ui/sheet.d.ts +25 -0
  188. package/dist/components/ui/sheet.js +81 -0
  189. package/dist/components/ui/skeleton.cjs +43 -0
  190. package/dist/components/ui/skeleton.d.ts +2 -0
  191. package/dist/components/ui/skeleton.js +9 -0
  192. package/dist/components/ui/slider.cjs +63 -0
  193. package/dist/components/ui/slider.d.ts +4 -0
  194. package/dist/components/ui/slider.js +29 -0
  195. package/dist/components/ui/sonner.cjs +76 -0
  196. package/dist/components/ui/sonner.d.ts +4 -0
  197. package/dist/components/ui/sonner.js +39 -0
  198. package/dist/components/ui/spinner.cjs +78 -0
  199. package/dist/components/ui/spinner.d.ts +11 -0
  200. package/dist/components/ui/spinner.js +41 -0
  201. package/dist/components/ui/stats-card.cjs +102 -0
  202. package/dist/components/ui/stats-card.d.ts +15 -0
  203. package/dist/components/ui/stats-card.js +68 -0
  204. package/dist/components/ui/stepper.cjs +99 -0
  205. package/dist/components/ui/stepper.d.ts +14 -0
  206. package/dist/components/ui/stepper.js +65 -0
  207. package/dist/components/ui/switch.cjs +48 -0
  208. package/dist/components/ui/switch.d.ts +4 -0
  209. package/dist/components/ui/switch.js +14 -0
  210. package/dist/components/ui/table.cjs +110 -0
  211. package/dist/components/ui/table.d.ts +10 -0
  212. package/dist/components/ui/table.js +55 -0
  213. package/dist/components/ui/tabs.cjs +67 -0
  214. package/dist/components/ui/tabs.d.ts +7 -0
  215. package/dist/components/ui/tabs.js +24 -0
  216. package/dist/components/ui/textarea.cjs +44 -0
  217. package/dist/components/ui/textarea.d.ts +4 -0
  218. package/dist/components/ui/textarea.js +10 -0
  219. package/dist/components/ui/toggle-group.cjs +73 -0
  220. package/dist/components/ui/toggle-group.d.ts +12 -0
  221. package/dist/components/ui/toggle-group.js +36 -0
  222. package/dist/components/ui/toggle.cjs +71 -0
  223. package/dist/components/ui/toggle.d.ts +12 -0
  224. package/dist/components/ui/toggle.js +34 -0
  225. package/dist/components/ui/tooltip.cjs +58 -0
  226. package/dist/components/ui/tooltip.d.ts +7 -0
  227. package/dist/components/ui/tooltip.js +15 -0
  228. package/dist/examples/admin-layout-example.d.ts +92 -0
  229. package/dist/examples/app-shell-example.d.ts +52 -0
  230. package/dist/examples/dashboard-example.d.ts +11 -0
  231. package/dist/examples/data-management-example.d.ts +1 -0
  232. package/dist/examples/flow-editor-layout-example.d.ts +22 -0
  233. package/dist/examples/flow-start-example.d.ts +30 -0
  234. package/dist/examples/form-builder-example.d.ts +1 -0
  235. package/dist/examples/new-project-example.d.ts +30 -0
  236. package/dist/examples/settings-example.d.ts +1 -0
  237. package/dist/examples/vscode-example.d.ts +80 -0
  238. package/dist/index.cjs +830 -0
  239. package/dist/index.d.ts +86 -0
  240. package/dist/index.js +67 -0
  241. package/dist/lib/index.cjs +42 -0
  242. package/dist/lib/index.d.ts +1 -0
  243. package/dist/lib/index.js +2 -0
  244. package/dist/lib/utils.cjs +70 -0
  245. package/dist/lib/utils.d.ts +14 -0
  246. package/dist/lib/utils.js +30 -0
  247. package/dist/postcss.config.export.cjs +43 -0
  248. package/dist/postcss.config.export.js +9 -0
  249. package/dist/styles.css +6868 -0
  250. package/dist/tailwind.css +239 -0
  251. package/dist/tailwind.preset.cjs +77 -0
  252. package/dist/tailwind.preset.js +43 -0
  253. package/package.json +157 -0
  254. package/postcss.config.export.js +9 -0
@@ -0,0 +1,962 @@
1
+ "use strict";
2
+ var __webpack_require__ = {};
3
+ (()=>{
4
+ __webpack_require__.d = (exports1, definition)=>{
5
+ for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
6
+ enumerable: true,
7
+ get: definition[key]
8
+ });
9
+ };
10
+ })();
11
+ (()=>{
12
+ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
13
+ })();
14
+ (()=>{
15
+ __webpack_require__.r = (exports1)=>{
16
+ if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
17
+ value: 'Module'
18
+ });
19
+ Object.defineProperty(exports1, '__esModule', {
20
+ value: true
21
+ });
22
+ };
23
+ })();
24
+ var __webpack_exports__ = {};
25
+ __webpack_require__.r(__webpack_exports__);
26
+ __webpack_require__.d(__webpack_exports__, {
27
+ automationJobSchema: ()=>automationJobSchema,
28
+ cascadingDropdownsSchema: ()=>cascadingDropdownsSchema,
29
+ fileUploadSchema: ()=>fileUploadSchema,
30
+ computedFieldsSchema: ()=>computedFieldsSchema,
31
+ multiStepSchema: ()=>multiStepSchema,
32
+ conditionalQuestionsSchema: ()=>conditionalQuestionsSchema,
33
+ conditionalSectionsSchema: ()=>conditionalSectionsSchema,
34
+ FileUploadExample: ()=>FileUploadExample
35
+ });
36
+ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
37
+ const external_react_namespaceObject = require("react");
38
+ const external_sonner_namespaceObject = require("sonner");
39
+ const external_metadata_form_cjs_namespaceObject = require("./metadata-form.cjs");
40
+ const external_rules_engine_cjs_namespaceObject = require("./rules-engine.cjs");
41
+ const card_cjs_namespaceObject = require("../ui/card.cjs");
42
+ const badge_cjs_namespaceObject = require("../ui/badge.cjs");
43
+ const cascadingDropdownsSchema = {
44
+ id: 'user-registration',
45
+ title: 'User Registration',
46
+ description: 'Create your account with location details',
47
+ sections: [
48
+ {
49
+ id: 'personal',
50
+ title: 'Personal Information',
51
+ fields: [
52
+ {
53
+ name: 'fullName',
54
+ type: 'text',
55
+ label: 'Full Name',
56
+ placeholder: 'John Doe',
57
+ validation: {
58
+ required: true,
59
+ minLength: 2,
60
+ messages: {
61
+ minLength: 'Name must be at least 2 characters'
62
+ }
63
+ }
64
+ },
65
+ {
66
+ name: 'email',
67
+ type: 'email',
68
+ label: 'Email Address',
69
+ placeholder: 'john@example.com',
70
+ validation: {
71
+ required: true,
72
+ email: true,
73
+ messages: {
74
+ email: 'Invalid email address'
75
+ }
76
+ }
77
+ }
78
+ ]
79
+ },
80
+ {
81
+ id: 'location',
82
+ title: 'Location Details',
83
+ description: 'Select your country, state, and city',
84
+ fields: [
85
+ {
86
+ name: 'country',
87
+ type: 'select',
88
+ label: 'Country',
89
+ placeholder: 'Select your country',
90
+ dataSource: {
91
+ type: 'fetch',
92
+ url: '/api/countries',
93
+ method: 'GET',
94
+ transform: 'data.map(c => ({ label: c.name, value: c.code }))'
95
+ },
96
+ validation: {
97
+ required: true,
98
+ messages: {
99
+ required: 'Country is required'
100
+ }
101
+ }
102
+ },
103
+ {
104
+ name: 'state',
105
+ type: 'select',
106
+ label: 'State/Province',
107
+ placeholder: 'Select your state',
108
+ dataSource: {
109
+ type: 'remote',
110
+ endpoint: '/api/states',
111
+ params: {
112
+ countryCode: '$country'
113
+ }
114
+ },
115
+ rules: [
116
+ new external_rules_engine_cjs_namespaceObject.RuleBuilder('show-state-when-country-selected').when('country').isNot('').show().require().build()
117
+ ]
118
+ },
119
+ {
120
+ name: 'city',
121
+ type: 'select',
122
+ label: 'City',
123
+ placeholder: 'Select your city',
124
+ dataSource: {
125
+ type: 'remote',
126
+ endpoint: '/api/cities',
127
+ params: {
128
+ countryCode: '$country',
129
+ stateCode: '$state'
130
+ }
131
+ },
132
+ rules: [
133
+ new external_rules_engine_cjs_namespaceObject.RuleBuilder('show-city-when-state-selected').when('state').isNot('').show().require().build()
134
+ ]
135
+ }
136
+ ]
137
+ }
138
+ ]
139
+ };
140
+ const computedFieldsSchema = {
141
+ id: 'product-configurator',
142
+ title: 'Product Configuration',
143
+ description: 'Customize your product',
144
+ sections: [
145
+ {
146
+ id: 'product-selection',
147
+ title: 'Select Your Product',
148
+ fields: [
149
+ {
150
+ name: 'category',
151
+ type: 'select',
152
+ label: 'Product Category',
153
+ dataSource: {
154
+ type: 'fetch',
155
+ url: '/api/product-categories',
156
+ method: 'GET',
157
+ transform: 'data.categories.map(c => ({ label: c.name, value: c.id }))'
158
+ }
159
+ },
160
+ {
161
+ name: 'product',
162
+ type: 'select',
163
+ label: 'Select Product',
164
+ dataSource: {
165
+ type: 'remote',
166
+ endpoint: '/api/products',
167
+ params: {
168
+ categoryId: '$category'
169
+ }
170
+ },
171
+ rules: [
172
+ new external_rules_engine_cjs_namespaceObject.RuleBuilder('show-product-when-category-selected').when('category').isNot('').show().require().build()
173
+ ]
174
+ },
175
+ {
176
+ name: 'variant',
177
+ type: 'select',
178
+ label: 'Product Variant (includes price)',
179
+ dataSource: {
180
+ type: 'remote',
181
+ endpoint: '/api/product-variants',
182
+ params: {
183
+ productId: '$product'
184
+ }
185
+ },
186
+ rules: [
187
+ new external_rules_engine_cjs_namespaceObject.RuleBuilder('show-variant-when-product-selected').when('product').isNot('').show().require().build()
188
+ ]
189
+ }
190
+ ]
191
+ },
192
+ {
193
+ id: 'order',
194
+ title: 'Order Details',
195
+ fields: [
196
+ {
197
+ name: 'quantity',
198
+ type: 'number',
199
+ label: 'Quantity',
200
+ placeholder: '1',
201
+ min: 1,
202
+ max: 100,
203
+ defaultValue: 1,
204
+ validation: {
205
+ required: true,
206
+ min: 1,
207
+ max: 100
208
+ }
209
+ },
210
+ {
211
+ name: 'notes',
212
+ type: 'textarea',
213
+ label: 'Order Notes',
214
+ placeholder: 'Any special instructions...'
215
+ }
216
+ ]
217
+ }
218
+ ]
219
+ };
220
+ const conditionalSectionsSchema = {
221
+ id: 'job-application',
222
+ title: 'Job Application',
223
+ description: 'Apply for a position at our company',
224
+ sections: [
225
+ {
226
+ id: 'basic-info',
227
+ title: 'Basic Information',
228
+ fields: [
229
+ {
230
+ name: 'firstName',
231
+ type: 'text',
232
+ label: 'First Name',
233
+ validation: {
234
+ required: true
235
+ }
236
+ },
237
+ {
238
+ name: 'lastName',
239
+ type: 'text',
240
+ label: 'Last Name',
241
+ validation: {
242
+ required: true
243
+ }
244
+ },
245
+ {
246
+ name: 'email',
247
+ type: 'email',
248
+ label: 'Email',
249
+ validation: {
250
+ required: true,
251
+ email: true
252
+ }
253
+ }
254
+ ]
255
+ },
256
+ {
257
+ id: 'position',
258
+ title: 'Position Details',
259
+ fields: [
260
+ {
261
+ name: 'department',
262
+ type: 'select',
263
+ label: 'Department',
264
+ dataSource: {
265
+ type: 'fetch',
266
+ url: '/api/departments',
267
+ method: 'GET',
268
+ transform: 'data.map(d => ({ label: d.name, value: d.id }))'
269
+ }
270
+ },
271
+ {
272
+ name: 'position',
273
+ type: 'select',
274
+ label: 'Position',
275
+ dataSource: {
276
+ type: 'remote',
277
+ endpoint: '/api/positions',
278
+ params: {
279
+ departmentId: '$department'
280
+ }
281
+ },
282
+ rules: [
283
+ new external_rules_engine_cjs_namespaceObject.RuleBuilder('show-position').when('department').isNot('').show().require().build()
284
+ ]
285
+ },
286
+ {
287
+ name: 'experienceLevel',
288
+ type: 'select',
289
+ label: 'Experience Level',
290
+ options: [
291
+ {
292
+ label: 'Entry Level (0-2 years)',
293
+ value: 'entry'
294
+ },
295
+ {
296
+ label: 'Mid Level (3-5 years)',
297
+ value: 'mid'
298
+ },
299
+ {
300
+ label: 'Senior Level (6+ years)',
301
+ value: 'senior'
302
+ }
303
+ ]
304
+ }
305
+ ]
306
+ },
307
+ {
308
+ id: 'skills',
309
+ title: 'Technical Skills',
310
+ description: 'Select your relevant skills',
311
+ fields: [
312
+ {
313
+ name: 'primarySkills',
314
+ type: 'multiselect',
315
+ label: 'Primary Skills',
316
+ placeholder: 'Select your primary skills...',
317
+ validation: {
318
+ required: true,
319
+ minItems: 1,
320
+ messages: {
321
+ minItems: 'Select at least one skill'
322
+ }
323
+ },
324
+ options: [
325
+ {
326
+ label: 'JavaScript',
327
+ value: "javascript"
328
+ },
329
+ {
330
+ label: 'TypeScript',
331
+ value: "typescript"
332
+ },
333
+ {
334
+ label: 'Python',
335
+ value: 'python'
336
+ },
337
+ {
338
+ label: 'Java',
339
+ value: 'java'
340
+ },
341
+ {
342
+ label: 'C#',
343
+ value: 'csharp'
344
+ },
345
+ {
346
+ label: 'Go',
347
+ value: 'go'
348
+ },
349
+ {
350
+ label: 'React',
351
+ value: 'react'
352
+ },
353
+ {
354
+ label: 'Node.js',
355
+ value: 'nodejs'
356
+ }
357
+ ]
358
+ }
359
+ ]
360
+ },
361
+ {
362
+ id: 'experience',
363
+ title: 'Work Experience',
364
+ conditions: [
365
+ {
366
+ when: 'experienceLevel',
367
+ in: [
368
+ 'mid',
369
+ 'senior'
370
+ ]
371
+ }
372
+ ],
373
+ fields: [
374
+ {
375
+ name: 'currentCompany',
376
+ type: 'text',
377
+ label: 'Current Company'
378
+ },
379
+ {
380
+ name: 'yearsExperience',
381
+ type: 'number',
382
+ label: 'Years of Experience',
383
+ min: 0,
384
+ max: 50
385
+ },
386
+ {
387
+ name: 'references',
388
+ type: 'textarea',
389
+ label: 'Professional References',
390
+ placeholder: 'List 2-3 professional references',
391
+ rules: [
392
+ new external_rules_engine_cjs_namespaceObject.RuleBuilder('require-references-senior').when('experienceLevel').is('senior').require().build()
393
+ ]
394
+ }
395
+ ]
396
+ }
397
+ ]
398
+ };
399
+ const conditionalQuestionsSchema = {
400
+ id: 'dynamic-survey',
401
+ title: 'Customer Satisfaction Survey',
402
+ description: 'Help us improve our service',
403
+ sections: [
404
+ {
405
+ id: 'satisfaction',
406
+ title: 'Overall Satisfaction',
407
+ fields: [
408
+ {
409
+ name: 'overallRating',
410
+ type: 'slider',
411
+ label: 'How satisfied are you with our service?',
412
+ min: 1,
413
+ max: 10,
414
+ step: 1,
415
+ defaultValue: 5
416
+ },
417
+ {
418
+ name: 'feedbackReason',
419
+ type: 'textarea',
420
+ label: 'What is the main reason for your rating?',
421
+ placeholder: 'Please tell us more...',
422
+ rules: [
423
+ new external_rules_engine_cjs_namespaceObject.RuleBuilder('show-feedback-low').withCustomExpression('overallRating <= 6').show().require().build()
424
+ ]
425
+ }
426
+ ]
427
+ },
428
+ {
429
+ id: 'recommendations',
430
+ title: 'Recommendations',
431
+ fields: [
432
+ {
433
+ name: 'wouldRecommend',
434
+ type: 'radio',
435
+ label: 'Would you recommend us to others?',
436
+ options: [
437
+ {
438
+ label: 'Definitely Yes',
439
+ value: 'yes'
440
+ },
441
+ {
442
+ label: 'Probably Yes',
443
+ value: 'maybe-yes'
444
+ },
445
+ {
446
+ label: 'Not Sure',
447
+ value: 'unsure'
448
+ },
449
+ {
450
+ label: 'Probably Not',
451
+ value: 'maybe-no'
452
+ },
453
+ {
454
+ label: 'Definitely Not',
455
+ value: 'no'
456
+ }
457
+ ]
458
+ },
459
+ {
460
+ name: 'improvementSuggestions',
461
+ type: 'textarea',
462
+ label: 'How can we improve?',
463
+ placeholder: 'Your suggestions are valuable to us...',
464
+ rules: [
465
+ new external_rules_engine_cjs_namespaceObject.RuleBuilder('show-improvements').when('wouldRecommend').in([
466
+ 'unsure',
467
+ 'maybe-no',
468
+ 'no'
469
+ ]).show().require().build()
470
+ ]
471
+ }
472
+ ]
473
+ }
474
+ ]
475
+ };
476
+ const automationJobSchema = {
477
+ id: 'automation-job-config',
478
+ title: 'Configure Automation Job',
479
+ description: 'Set up an automation process execution',
480
+ sections: [
481
+ {
482
+ id: 'process',
483
+ title: 'Process Selection',
484
+ fields: [
485
+ {
486
+ name: 'folder',
487
+ type: 'select',
488
+ label: 'Orchestrator Folder',
489
+ dataSource: {
490
+ type: 'fetch',
491
+ url: '/api/orchestrator/folders',
492
+ method: 'GET',
493
+ transform: 'data.value.map(f => ({ label: f.DisplayName, value: f.Id }))'
494
+ }
495
+ },
496
+ {
497
+ name: 'process',
498
+ type: 'select',
499
+ label: 'Process Package',
500
+ dataSource: {
501
+ type: 'remote',
502
+ endpoint: '/api/orchestrator/processes',
503
+ params: {
504
+ folderId: '$folder'
505
+ }
506
+ },
507
+ rules: [
508
+ new external_rules_engine_cjs_namespaceObject.RuleBuilder('show-process').when('folder').isNot('').show().require().build()
509
+ ]
510
+ },
511
+ {
512
+ name: 'version',
513
+ type: 'select',
514
+ label: 'Package Version',
515
+ dataSource: {
516
+ type: 'remote',
517
+ endpoint: '/api/orchestrator/package-versions',
518
+ params: {
519
+ processKey: '$process'
520
+ }
521
+ },
522
+ rules: [
523
+ new external_rules_engine_cjs_namespaceObject.RuleBuilder('show-version').when('process').isNot('').show().require().build()
524
+ ]
525
+ }
526
+ ]
527
+ },
528
+ {
529
+ id: 'execution',
530
+ title: 'Execution Settings',
531
+ fields: [
532
+ {
533
+ name: 'robot',
534
+ type: 'select',
535
+ label: 'Robot',
536
+ dataSource: {
537
+ type: 'remote',
538
+ endpoint: '/api/orchestrator/robots',
539
+ params: {
540
+ folderId: '$folder'
541
+ }
542
+ },
543
+ rules: [
544
+ new external_rules_engine_cjs_namespaceObject.RuleBuilder('show-robot').when('folder').isNot('').show().require().build()
545
+ ]
546
+ },
547
+ {
548
+ name: 'priority',
549
+ type: 'select',
550
+ label: 'Priority',
551
+ options: [
552
+ {
553
+ label: 'Low',
554
+ value: 'Low'
555
+ },
556
+ {
557
+ label: 'Normal',
558
+ value: 'Normal'
559
+ },
560
+ {
561
+ label: 'High',
562
+ value: 'High'
563
+ }
564
+ ],
565
+ defaultValue: 'Normal'
566
+ },
567
+ {
568
+ name: 'inputArguments',
569
+ type: 'textarea',
570
+ label: 'Input Arguments (JSON)',
571
+ placeholder: '{"argument1": "value1"}'
572
+ }
573
+ ]
574
+ }
575
+ ]
576
+ };
577
+ const multiStepSchema = {
578
+ id: 'user-onboarding',
579
+ title: "Welcome! Let's set up your account",
580
+ description: 'Complete these steps to get started',
581
+ initialData: {
582
+ firstName: '',
583
+ lastName: '',
584
+ timezone: '',
585
+ emailNotifications: true,
586
+ notificationFrequency: 'daily',
587
+ acceptTerms: false
588
+ },
589
+ steps: [
590
+ {
591
+ id: 'personal',
592
+ title: 'Personal Information',
593
+ description: 'Tell us about yourself',
594
+ sections: [
595
+ {
596
+ id: 'basic',
597
+ fields: [
598
+ {
599
+ name: 'firstName',
600
+ type: 'text',
601
+ label: 'First Name',
602
+ validation: {
603
+ required: true
604
+ }
605
+ },
606
+ {
607
+ name: 'lastName',
608
+ type: 'text',
609
+ label: 'Last Name',
610
+ validation: {
611
+ required: true
612
+ }
613
+ },
614
+ {
615
+ name: 'timezone',
616
+ type: 'select',
617
+ label: 'Timezone',
618
+ dataSource: {
619
+ type: 'fetch',
620
+ url: '/api/timezones',
621
+ method: 'GET',
622
+ transform: 'data.map(tz => ({ label: tz.label, value: tz.value }))'
623
+ }
624
+ }
625
+ ]
626
+ }
627
+ ]
628
+ },
629
+ {
630
+ id: 'preferences',
631
+ title: 'Preferences',
632
+ description: 'Customize your experience',
633
+ sections: [
634
+ {
635
+ id: 'notifications',
636
+ fields: [
637
+ {
638
+ name: 'emailNotifications',
639
+ type: 'switch',
640
+ label: 'Email Notifications',
641
+ description: 'Receive updates via email',
642
+ defaultValue: true
643
+ },
644
+ {
645
+ name: 'notificationFrequency',
646
+ type: 'select',
647
+ label: 'Notification Frequency',
648
+ options: [
649
+ {
650
+ label: 'Real-time',
651
+ value: 'realtime'
652
+ },
653
+ {
654
+ label: 'Daily Digest',
655
+ value: 'daily'
656
+ },
657
+ {
658
+ label: 'Weekly Digest',
659
+ value: 'weekly'
660
+ }
661
+ ],
662
+ rules: [
663
+ new external_rules_engine_cjs_namespaceObject.RuleBuilder('show-frequency').when('emailNotifications').is(true).show().require().build()
664
+ ]
665
+ }
666
+ ]
667
+ }
668
+ ]
669
+ },
670
+ {
671
+ id: 'complete',
672
+ title: 'All Set!',
673
+ description: 'Review and confirm your settings',
674
+ sections: [
675
+ {
676
+ id: 'summary',
677
+ fields: [
678
+ {
679
+ name: 'acceptTerms',
680
+ type: 'checkbox',
681
+ label: 'I accept the Terms of Service and Privacy Policy',
682
+ validation: {
683
+ required: true,
684
+ messages: {
685
+ required: 'You must accept the terms'
686
+ }
687
+ }
688
+ }
689
+ ]
690
+ }
691
+ ]
692
+ }
693
+ ]
694
+ };
695
+ const fileUploadSchema = {
696
+ id: 'document-upload',
697
+ title: 'Document Upload',
698
+ description: 'Upload your documents for processing',
699
+ sections: [
700
+ {
701
+ id: 'uploader-info',
702
+ title: 'Your Information',
703
+ fields: [
704
+ {
705
+ name: 'name',
706
+ type: 'text',
707
+ label: 'Full Name',
708
+ validation: {
709
+ required: true,
710
+ minLength: 2
711
+ }
712
+ },
713
+ {
714
+ name: 'email',
715
+ type: 'email',
716
+ label: 'Email',
717
+ validation: {
718
+ required: true,
719
+ email: true
720
+ }
721
+ },
722
+ {
723
+ name: 'department',
724
+ type: 'select',
725
+ label: 'Department',
726
+ options: [
727
+ {
728
+ label: 'Engineering',
729
+ value: 'engineering'
730
+ },
731
+ {
732
+ label: 'Design',
733
+ value: 'design'
734
+ },
735
+ {
736
+ label: 'Marketing',
737
+ value: 'marketing'
738
+ },
739
+ {
740
+ label: 'Sales',
741
+ value: 'sales'
742
+ },
743
+ {
744
+ label: 'HR',
745
+ value: 'hr'
746
+ }
747
+ ],
748
+ validation: {
749
+ required: true
750
+ }
751
+ }
752
+ ]
753
+ },
754
+ {
755
+ id: 'documents',
756
+ title: 'Documents',
757
+ fields: [
758
+ {
759
+ name: 'documentType',
760
+ type: 'select',
761
+ label: 'Document Type',
762
+ options: [
763
+ {
764
+ label: 'Invoice',
765
+ value: 'invoice'
766
+ },
767
+ {
768
+ label: 'Receipt',
769
+ value: 'receipt'
770
+ },
771
+ {
772
+ label: 'Contract',
773
+ value: 'contract'
774
+ },
775
+ {
776
+ label: 'Report',
777
+ value: 'report'
778
+ },
779
+ {
780
+ label: 'Other',
781
+ value: 'other'
782
+ }
783
+ ],
784
+ validation: {
785
+ required: true,
786
+ messages: {
787
+ required: 'Please select a document type'
788
+ }
789
+ }
790
+ },
791
+ {
792
+ name: 'files',
793
+ type: 'file',
794
+ label: 'Upload Files',
795
+ accept: '.pdf,.doc,.docx,.xls,.xlsx',
796
+ multiple: true,
797
+ maxSize: 10485760
798
+ },
799
+ {
800
+ name: 'notes',
801
+ type: 'textarea',
802
+ label: 'Additional Notes',
803
+ placeholder: 'Any special instructions or comments...'
804
+ }
805
+ ]
806
+ }
807
+ ]
808
+ };
809
+ function FileUploadExample() {
810
+ const [uploadProgress, setUploadProgress] = (0, external_react_namespaceObject.useState)({});
811
+ const [uploadedFiles, setUploadedFiles] = (0, external_react_namespaceObject.useState)([]);
812
+ const simulateFileUpload = async (file)=>{
813
+ const fileName = file.name;
814
+ const chunks = 20;
815
+ for(let i = 0; i <= chunks; i++){
816
+ await new Promise((resolve)=>setTimeout(resolve, 100));
817
+ setUploadProgress((prev)=>({
818
+ ...prev,
819
+ [fileName]: i / chunks * 100
820
+ }));
821
+ }
822
+ setUploadedFiles((prev)=>[
823
+ ...prev,
824
+ fileName
825
+ ]);
826
+ external_sonner_namespaceObject.toast.success(`Uploaded ${fileName}`);
827
+ };
828
+ const handleSubmit = async (data)=>{
829
+ try {
830
+ const formData = data;
831
+ const files = formData.files;
832
+ if (files) {
833
+ const fileList = files instanceof FileList ? Array.from(files) : [
834
+ files
835
+ ];
836
+ const oversizedFiles = fileList.filter((f)=>f.size > 10485760);
837
+ if (oversizedFiles.length > 0) return void external_sonner_namespaceObject.toast.error('Some files are too large', {
838
+ description: `Maximum size is 10MB. Remove: ${oversizedFiles.map((f)=>f.name).join(', ')}`
839
+ });
840
+ external_sonner_namespaceObject.toast.info(`Uploading ${fileList.length} file(s)...`);
841
+ for (const file of fileList)await simulateFileUpload(file);
842
+ external_sonner_namespaceObject.toast.success('All files uploaded successfully!', {
843
+ description: `${fileList.length} document(s) processed`
844
+ });
845
+ console.log('Upload complete:', {
846
+ ...formData,
847
+ fileNames: fileList.map((f)=>f.name)
848
+ });
849
+ setTimeout(()=>{
850
+ setUploadProgress({});
851
+ setUploadedFiles([]);
852
+ }, 3000);
853
+ }
854
+ } catch (error) {
855
+ external_sonner_namespaceObject.toast.error('Upload failed', {
856
+ description: error instanceof Error ? error.message : 'Please try again'
857
+ });
858
+ }
859
+ };
860
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
861
+ className: "max-w-2xl mx-auto p-6",
862
+ children: [
863
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_metadata_form_cjs_namespaceObject.MetadataForm, {
864
+ schema: fileUploadSchema,
865
+ onSubmit: handleSubmit
866
+ }),
867
+ Object.keys(uploadProgress).length > 0 && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.Card, {
868
+ className: "mt-6",
869
+ children: [
870
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardHeader, {
871
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardTitle, {
872
+ className: "text-sm",
873
+ children: "Upload Progress"
874
+ })
875
+ }),
876
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardContent, {
877
+ className: "space-y-3",
878
+ children: Object.entries(uploadProgress).map(([fileName, progress])=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
879
+ children: [
880
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
881
+ className: "flex items-center justify-between text-sm mb-1",
882
+ children: [
883
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
884
+ className: "truncate flex-1",
885
+ children: fileName
886
+ }),
887
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("span", {
888
+ className: "ml-2 text-muted-foreground",
889
+ children: [
890
+ Math.round(progress),
891
+ "%"
892
+ ]
893
+ })
894
+ ]
895
+ }),
896
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
897
+ className: "h-2 bg-secondary rounded-full overflow-hidden",
898
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
899
+ className: "h-full bg-primary transition-all duration-300",
900
+ style: {
901
+ width: `${progress}%`
902
+ }
903
+ })
904
+ })
905
+ ]
906
+ }, fileName))
907
+ })
908
+ ]
909
+ }),
910
+ uploadedFiles.length > 0 && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.Card, {
911
+ className: "mt-6",
912
+ children: [
913
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardHeader, {
914
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardTitle, {
915
+ className: "text-sm",
916
+ children: "Uploaded Files"
917
+ })
918
+ }),
919
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardContent, {
920
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("ul", {
921
+ className: "space-y-2",
922
+ children: uploadedFiles.map((fileName, index)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("li", {
923
+ className: "flex items-center gap-2 text-sm",
924
+ children: [
925
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(badge_cjs_namespaceObject.Badge, {
926
+ variant: "outline",
927
+ className: "bg-green-50 text-green-700 border-green-200",
928
+ children: "✓"
929
+ }),
930
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
931
+ children: fileName
932
+ })
933
+ ]
934
+ }, index))
935
+ })
936
+ })
937
+ ]
938
+ })
939
+ ]
940
+ });
941
+ }
942
+ exports.FileUploadExample = __webpack_exports__.FileUploadExample;
943
+ exports.automationJobSchema = __webpack_exports__.automationJobSchema;
944
+ exports.cascadingDropdownsSchema = __webpack_exports__.cascadingDropdownsSchema;
945
+ exports.computedFieldsSchema = __webpack_exports__.computedFieldsSchema;
946
+ exports.conditionalQuestionsSchema = __webpack_exports__.conditionalQuestionsSchema;
947
+ exports.conditionalSectionsSchema = __webpack_exports__.conditionalSectionsSchema;
948
+ exports.fileUploadSchema = __webpack_exports__.fileUploadSchema;
949
+ exports.multiStepSchema = __webpack_exports__.multiStepSchema;
950
+ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
951
+ "FileUploadExample",
952
+ "automationJobSchema",
953
+ "cascadingDropdownsSchema",
954
+ "computedFieldsSchema",
955
+ "conditionalQuestionsSchema",
956
+ "conditionalSectionsSchema",
957
+ "fileUploadSchema",
958
+ "multiStepSchema"
959
+ ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
960
+ Object.defineProperty(exports, '__esModule', {
961
+ value: true
962
+ });