@tsed/schema-formio 6.88.0 → 6.91.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 (318) hide show
  1. package/lib/{components → cjs/components}/anyToComponent.d.ts +0 -0
  2. package/lib/cjs/components/anyToComponent.js +29 -0
  3. package/lib/cjs/components/anyToComponent.js.map +1 -0
  4. package/lib/{components → cjs/components}/arrayToComponent.d.ts +0 -0
  5. package/lib/cjs/components/arrayToComponent.js +40 -0
  6. package/lib/cjs/components/arrayToComponent.js.map +1 -0
  7. package/lib/{components → cjs/components}/booleanToComponent.d.ts +0 -0
  8. package/lib/cjs/components/booleanToComponent.js +14 -0
  9. package/lib/cjs/components/booleanToComponent.js.map +1 -0
  10. package/lib/{components → cjs/components}/dateToComponent.d.ts +0 -0
  11. package/lib/cjs/components/dateToComponent.js +57 -0
  12. package/lib/cjs/components/dateToComponent.js.map +1 -0
  13. package/lib/{components → cjs/components}/defaultToComponent.d.ts +0 -0
  14. package/lib/cjs/components/defaultToComponent.js +18 -0
  15. package/lib/cjs/components/defaultToComponent.js.map +1 -0
  16. package/lib/{components → cjs/components}/enumToComponent.d.ts +0 -0
  17. package/lib/cjs/components/enumToComponent.js +34 -0
  18. package/lib/cjs/components/enumToComponent.js.map +1 -0
  19. package/lib/{components → cjs/components}/index.d.ts +0 -0
  20. package/lib/cjs/components/index.js +17 -0
  21. package/lib/cjs/components/index.js.map +1 -0
  22. package/lib/{components → cjs/components}/mapToComponent.d.ts +0 -0
  23. package/lib/cjs/components/mapToComponent.js +20 -0
  24. package/lib/cjs/components/mapToComponent.js.map +1 -0
  25. package/lib/{components → cjs/components}/nestedToComponent.d.ts +0 -0
  26. package/lib/cjs/components/nestedToComponent.js +25 -0
  27. package/lib/cjs/components/nestedToComponent.js.map +1 -0
  28. package/lib/{components → cjs/components}/numberToComponent.d.ts +0 -0
  29. package/lib/cjs/components/numberToComponent.js +21 -0
  30. package/lib/cjs/components/numberToComponent.js.map +1 -0
  31. package/lib/{components → cjs/components}/objectToEditGrid.d.ts +0 -0
  32. package/lib/cjs/components/objectToEditGrid.js +16 -0
  33. package/lib/cjs/components/objectToEditGrid.js.map +1 -0
  34. package/lib/{components → cjs/components}/panelToComponent.d.ts +0 -0
  35. package/lib/cjs/components/panelToComponent.js +16 -0
  36. package/lib/cjs/components/panelToComponent.js.map +1 -0
  37. package/lib/{components → cjs/components}/propertiesToComponents.d.ts +0 -0
  38. package/lib/cjs/components/propertiesToComponents.js +88 -0
  39. package/lib/cjs/components/propertiesToComponents.js.map +1 -0
  40. package/lib/{components → cjs/components}/stringToComponent.d.ts +0 -0
  41. package/lib/cjs/components/stringToComponent.js +43 -0
  42. package/lib/cjs/components/stringToComponent.js.map +1 -0
  43. package/lib/{decorators → cjs/decorators}/component.d.ts +0 -0
  44. package/lib/cjs/decorators/component.js +35 -0
  45. package/lib/cjs/decorators/component.js.map +1 -0
  46. package/lib/{decorators → cjs/decorators}/conditional.d.ts +0 -0
  47. package/lib/cjs/decorators/conditional.js +53 -0
  48. package/lib/cjs/decorators/conditional.js.map +1 -0
  49. package/lib/{decorators → cjs/decorators}/currency.d.ts +0 -0
  50. package/lib/cjs/decorators/currency.js +24 -0
  51. package/lib/cjs/decorators/currency.js.map +1 -0
  52. package/lib/{decorators → cjs/decorators}/customClass.d.ts +0 -0
  53. package/lib/cjs/decorators/customClass.js +18 -0
  54. package/lib/cjs/decorators/customClass.js.map +1 -0
  55. package/lib/{decorators → cjs/decorators}/customConditional.d.ts +0 -0
  56. package/lib/cjs/decorators/customConditional.js +33 -0
  57. package/lib/cjs/decorators/customConditional.js.map +1 -0
  58. package/lib/{decorators → cjs/decorators}/dataSourceJson.d.ts +0 -0
  59. package/lib/cjs/decorators/dataSourceJson.js +27 -0
  60. package/lib/cjs/decorators/dataSourceJson.js.map +1 -0
  61. package/lib/{decorators → cjs/decorators}/dataSourceUrl.d.ts +0 -0
  62. package/lib/cjs/decorators/dataSourceUrl.js +22 -0
  63. package/lib/cjs/decorators/dataSourceUrl.js.map +1 -0
  64. package/lib/{decorators → cjs/decorators}/errorLabel.d.ts +0 -0
  65. package/lib/cjs/decorators/errorLabel.js +18 -0
  66. package/lib/cjs/decorators/errorLabel.js.map +1 -0
  67. package/lib/{decorators → cjs/decorators}/errorMessage.d.ts +0 -0
  68. package/lib/cjs/decorators/errorMessage.js +17 -0
  69. package/lib/cjs/decorators/errorMessage.js.map +1 -0
  70. package/lib/{decorators → cjs/decorators}/form.d.ts +0 -0
  71. package/lib/cjs/decorators/form.js +21 -0
  72. package/lib/cjs/decorators/form.js.map +1 -0
  73. package/lib/{decorators → cjs/decorators}/hidden.d.ts +0 -0
  74. package/lib/cjs/decorators/hidden.js +22 -0
  75. package/lib/cjs/decorators/hidden.js.map +1 -0
  76. package/lib/{decorators → cjs/decorators}/index.d.ts +0 -0
  77. package/lib/cjs/decorators/index.js +34 -0
  78. package/lib/cjs/decorators/index.js.map +1 -0
  79. package/lib/{decorators → cjs/decorators}/inputTags.d.ts +0 -0
  80. package/lib/cjs/decorators/inputTags.js +23 -0
  81. package/lib/cjs/decorators/inputTags.js.map +1 -0
  82. package/lib/{decorators → cjs/decorators}/label.d.ts +0 -0
  83. package/lib/cjs/decorators/label.js +19 -0
  84. package/lib/cjs/decorators/label.js.map +1 -0
  85. package/lib/{decorators → cjs/decorators}/mask.d.ts +0 -0
  86. package/lib/cjs/decorators/mask.js +50 -0
  87. package/lib/cjs/decorators/mask.js.map +1 -0
  88. package/lib/{decorators → cjs/decorators}/maxWords.d.ts +0 -0
  89. package/lib/cjs/decorators/maxWords.js +17 -0
  90. package/lib/cjs/decorators/maxWords.js.map +1 -0
  91. package/lib/{decorators → cjs/decorators}/minWords.d.ts +0 -0
  92. package/lib/cjs/decorators/minWords.js +17 -0
  93. package/lib/cjs/decorators/minWords.js.map +1 -0
  94. package/lib/{decorators → cjs/decorators}/modalEdit.d.ts +0 -0
  95. package/lib/cjs/decorators/modalEdit.js +18 -0
  96. package/lib/cjs/decorators/modalEdit.js.map +1 -0
  97. package/lib/{decorators → cjs/decorators}/multiple.d.ts +0 -0
  98. package/lib/cjs/decorators/multiple.js +18 -0
  99. package/lib/cjs/decorators/multiple.js.map +1 -0
  100. package/lib/{decorators → cjs/decorators}/openWhenEmpty.d.ts +0 -0
  101. package/lib/cjs/decorators/openWhenEmpty.js +18 -0
  102. package/lib/cjs/decorators/openWhenEmpty.js.map +1 -0
  103. package/lib/{decorators → cjs/decorators}/password.d.ts +0 -0
  104. package/lib/cjs/decorators/password.js +20 -0
  105. package/lib/cjs/decorators/password.js.map +1 -0
  106. package/lib/{decorators → cjs/decorators}/placeholder.d.ts +0 -0
  107. package/lib/cjs/decorators/placeholder.js +19 -0
  108. package/lib/cjs/decorators/placeholder.js.map +1 -0
  109. package/lib/{decorators → cjs/decorators}/prefix.d.ts +0 -0
  110. package/lib/cjs/decorators/prefix.js +18 -0
  111. package/lib/cjs/decorators/prefix.js.map +1 -0
  112. package/lib/{decorators → cjs/decorators}/select.d.ts +0 -0
  113. package/lib/cjs/decorators/select.js +22 -0
  114. package/lib/cjs/decorators/select.js.map +1 -0
  115. package/lib/{decorators → cjs/decorators}/suffix.d.ts +0 -0
  116. package/lib/cjs/decorators/suffix.js +18 -0
  117. package/lib/cjs/decorators/suffix.js.map +1 -0
  118. package/lib/{decorators → cjs/decorators}/tableView.d.ts +0 -0
  119. package/lib/cjs/decorators/tableView.js +19 -0
  120. package/lib/cjs/decorators/tableView.js.map +1 -0
  121. package/lib/{decorators → cjs/decorators}/tabs.d.ts +0 -0
  122. package/lib/cjs/decorators/tabs.js +22 -0
  123. package/lib/cjs/decorators/tabs.js.map +1 -0
  124. package/lib/{decorators → cjs/decorators}/textCase.d.ts +0 -0
  125. package/lib/cjs/decorators/textCase.js +19 -0
  126. package/lib/cjs/decorators/textCase.js.map +1 -0
  127. package/lib/{decorators → cjs/decorators}/textarea.d.ts +0 -0
  128. package/lib/cjs/decorators/textarea.js +20 -0
  129. package/lib/cjs/decorators/textarea.js.map +1 -0
  130. package/lib/{decorators → cjs/decorators}/tooltip.d.ts +0 -0
  131. package/lib/cjs/decorators/tooltip.js +19 -0
  132. package/lib/cjs/decorators/tooltip.js.map +1 -0
  133. package/lib/{decorators → cjs/decorators}/validate.d.ts +0 -0
  134. package/lib/cjs/decorators/validate.js +22 -0
  135. package/lib/cjs/decorators/validate.js.map +1 -0
  136. package/lib/{domain → cjs/domain}/FormioDataResolver.d.ts +0 -0
  137. package/lib/cjs/domain/FormioDataResolver.js +3 -0
  138. package/lib/cjs/domain/FormioDataResolver.js.map +1 -0
  139. package/lib/{index.d.ts → cjs/index.d.ts} +0 -0
  140. package/lib/cjs/index.js +8 -0
  141. package/lib/cjs/index.js.map +1 -0
  142. package/lib/{registries → cjs/registries}/FormioMappersContainer.d.ts +0 -0
  143. package/lib/cjs/registries/FormioMappersContainer.js +21 -0
  144. package/lib/cjs/registries/FormioMappersContainer.js.map +1 -0
  145. package/lib/{registries → cjs/registries}/FormsContainer.d.ts +0 -0
  146. package/lib/cjs/registries/FormsContainer.js +6 -0
  147. package/lib/cjs/registries/FormsContainer.js.map +1 -0
  148. package/lib/{utils → cjs/utils}/getFormioProps.d.ts +0 -0
  149. package/lib/cjs/utils/getFormioProps.js +17 -0
  150. package/lib/cjs/utils/getFormioProps.js.map +1 -0
  151. package/lib/{utils → cjs/utils}/getFormioSchema.d.ts +0 -0
  152. package/lib/cjs/utils/getFormioSchema.js +42 -0
  153. package/lib/cjs/utils/getFormioSchema.js.map +1 -0
  154. package/lib/{utils → cjs/utils}/getRef.d.ts +0 -0
  155. package/lib/cjs/utils/getRef.js +12 -0
  156. package/lib/cjs/utils/getRef.js.map +1 -0
  157. package/lib/esm/components/anyToComponent.js +25 -0
  158. package/lib/esm/components/anyToComponent.js.map +1 -0
  159. package/lib/esm/components/arrayToComponent.js +36 -0
  160. package/lib/esm/components/arrayToComponent.js.map +1 -0
  161. package/lib/esm/components/booleanToComponent.js +12 -0
  162. package/lib/esm/components/booleanToComponent.js.map +1 -0
  163. package/lib/esm/components/dateToComponent.js +55 -0
  164. package/lib/esm/components/dateToComponent.js.map +1 -0
  165. package/lib/esm/components/defaultToComponent.js +14 -0
  166. package/lib/esm/components/defaultToComponent.js.map +1 -0
  167. package/lib/esm/components/enumToComponent.js +30 -0
  168. package/lib/esm/components/enumToComponent.js.map +1 -0
  169. package/lib/esm/components/index.js +14 -0
  170. package/lib/esm/components/index.js.map +1 -0
  171. package/lib/esm/components/mapToComponent.js +16 -0
  172. package/lib/esm/components/mapToComponent.js.map +1 -0
  173. package/lib/esm/components/nestedToComponent.js +21 -0
  174. package/lib/esm/components/nestedToComponent.js.map +1 -0
  175. package/lib/esm/components/numberToComponent.js +17 -0
  176. package/lib/esm/components/numberToComponent.js.map +1 -0
  177. package/lib/esm/components/objectToEditGrid.js +12 -0
  178. package/lib/esm/components/objectToEditGrid.js.map +1 -0
  179. package/lib/esm/components/panelToComponent.js +12 -0
  180. package/lib/esm/components/panelToComponent.js.map +1 -0
  181. package/lib/esm/components/propertiesToComponents.js +84 -0
  182. package/lib/esm/components/propertiesToComponents.js.map +1 -0
  183. package/lib/esm/components/stringToComponent.js +39 -0
  184. package/lib/esm/components/stringToComponent.js.map +1 -0
  185. package/lib/esm/decorators/component.js +31 -0
  186. package/lib/esm/decorators/component.js.map +1 -0
  187. package/lib/esm/decorators/conditional.js +47 -0
  188. package/lib/esm/decorators/conditional.js.map +1 -0
  189. package/lib/esm/decorators/currency.js +20 -0
  190. package/lib/esm/decorators/currency.js.map +1 -0
  191. package/lib/esm/decorators/customClass.js +14 -0
  192. package/lib/esm/decorators/customClass.js.map +1 -0
  193. package/lib/esm/decorators/customConditional.js +29 -0
  194. package/lib/esm/decorators/customConditional.js.map +1 -0
  195. package/lib/esm/decorators/dataSourceJson.js +23 -0
  196. package/lib/esm/decorators/dataSourceJson.js.map +1 -0
  197. package/lib/esm/decorators/dataSourceUrl.js +18 -0
  198. package/lib/esm/decorators/dataSourceUrl.js.map +1 -0
  199. package/lib/esm/decorators/errorLabel.js +14 -0
  200. package/lib/esm/decorators/errorLabel.js.map +1 -0
  201. package/lib/esm/decorators/errorMessage.js +13 -0
  202. package/lib/esm/decorators/errorMessage.js.map +1 -0
  203. package/lib/esm/decorators/form.js +17 -0
  204. package/lib/esm/decorators/form.js.map +1 -0
  205. package/lib/esm/decorators/hidden.js +18 -0
  206. package/lib/esm/decorators/hidden.js.map +1 -0
  207. package/lib/esm/decorators/index.js +31 -0
  208. package/lib/esm/decorators/index.js.map +1 -0
  209. package/lib/esm/decorators/inputTags.js +19 -0
  210. package/lib/esm/decorators/inputTags.js.map +1 -0
  211. package/lib/esm/decorators/label.js +15 -0
  212. package/lib/esm/decorators/label.js.map +1 -0
  213. package/lib/esm/decorators/mask.js +45 -0
  214. package/lib/esm/decorators/mask.js.map +1 -0
  215. package/lib/esm/decorators/maxWords.js +13 -0
  216. package/lib/esm/decorators/maxWords.js.map +1 -0
  217. package/lib/esm/decorators/minWords.js +13 -0
  218. package/lib/esm/decorators/minWords.js.map +1 -0
  219. package/lib/esm/decorators/modalEdit.js +14 -0
  220. package/lib/esm/decorators/modalEdit.js.map +1 -0
  221. package/lib/esm/decorators/multiple.js +14 -0
  222. package/lib/esm/decorators/multiple.js.map +1 -0
  223. package/lib/esm/decorators/openWhenEmpty.js +14 -0
  224. package/lib/esm/decorators/openWhenEmpty.js.map +1 -0
  225. package/lib/esm/decorators/password.js +16 -0
  226. package/lib/esm/decorators/password.js.map +1 -0
  227. package/lib/esm/decorators/placeholder.js +15 -0
  228. package/lib/esm/decorators/placeholder.js.map +1 -0
  229. package/lib/esm/decorators/prefix.js +14 -0
  230. package/lib/esm/decorators/prefix.js.map +1 -0
  231. package/lib/esm/decorators/select.js +18 -0
  232. package/lib/esm/decorators/select.js.map +1 -0
  233. package/lib/esm/decorators/suffix.js +14 -0
  234. package/lib/esm/decorators/suffix.js.map +1 -0
  235. package/lib/esm/decorators/tableView.js +15 -0
  236. package/lib/esm/decorators/tableView.js.map +1 -0
  237. package/lib/esm/decorators/tabs.js +18 -0
  238. package/lib/esm/decorators/tabs.js.map +1 -0
  239. package/lib/esm/decorators/textCase.js +15 -0
  240. package/lib/esm/decorators/textCase.js.map +1 -0
  241. package/lib/esm/decorators/textarea.js +16 -0
  242. package/lib/esm/decorators/textarea.js.map +1 -0
  243. package/lib/esm/decorators/tooltip.js +15 -0
  244. package/lib/esm/decorators/tooltip.js.map +1 -0
  245. package/lib/esm/decorators/validate.js +18 -0
  246. package/lib/esm/decorators/validate.js.map +1 -0
  247. package/lib/esm/domain/FormioDataResolver.js +2 -0
  248. package/lib/esm/domain/FormioDataResolver.js.map +1 -0
  249. package/lib/esm/index.js +5 -0
  250. package/lib/esm/index.js.map +1 -0
  251. package/lib/esm/registries/FormioMappersContainer.js +15 -0
  252. package/lib/esm/registries/FormioMappersContainer.js.map +1 -0
  253. package/lib/esm/registries/FormsContainer.js +3 -0
  254. package/lib/esm/registries/FormsContainer.js.map +1 -0
  255. package/lib/esm/utils/getFormioProps.js +13 -0
  256. package/lib/esm/utils/getFormioProps.js.map +1 -0
  257. package/lib/esm/utils/getFormioSchema.js +38 -0
  258. package/lib/esm/utils/getFormioSchema.js.map +1 -0
  259. package/lib/esm/utils/getRef.js +8 -0
  260. package/lib/esm/utils/getRef.js.map +1 -0
  261. package/lib/types/components/anyToComponent.d.ts +1 -0
  262. package/lib/types/components/arrayToComponent.d.ts +1 -0
  263. package/lib/types/components/booleanToComponent.d.ts +1 -0
  264. package/lib/types/components/dateToComponent.d.ts +1 -0
  265. package/lib/types/components/defaultToComponent.d.ts +1 -0
  266. package/lib/types/components/enumToComponent.d.ts +1 -0
  267. package/lib/types/components/index.d.ts +13 -0
  268. package/lib/types/components/mapToComponent.d.ts +1 -0
  269. package/lib/types/components/nestedToComponent.d.ts +1 -0
  270. package/lib/types/components/numberToComponent.d.ts +1 -0
  271. package/lib/types/components/objectToEditGrid.d.ts +1 -0
  272. package/lib/types/components/panelToComponent.d.ts +1 -0
  273. package/lib/types/components/propertiesToComponents.d.ts +1 -0
  274. package/lib/types/components/stringToComponent.d.ts +1 -0
  275. package/lib/types/decorators/component.d.ts +8 -0
  276. package/lib/types/decorators/conditional.d.ts +33 -0
  277. package/lib/types/decorators/currency.d.ts +8 -0
  278. package/lib/types/decorators/customClass.d.ts +8 -0
  279. package/lib/types/decorators/customConditional.d.ts +59 -0
  280. package/lib/types/decorators/dataSourceJson.d.ts +8 -0
  281. package/lib/types/decorators/dataSourceUrl.d.ts +8 -0
  282. package/lib/types/decorators/errorLabel.d.ts +8 -0
  283. package/lib/types/decorators/errorMessage.d.ts +9 -0
  284. package/lib/types/decorators/form.d.ts +6 -0
  285. package/lib/types/decorators/hidden.d.ts +12 -0
  286. package/lib/types/decorators/index.d.ts +30 -0
  287. package/lib/types/decorators/inputTags.d.ts +8 -0
  288. package/lib/types/decorators/label.d.ts +9 -0
  289. package/lib/types/decorators/mask.d.ts +37 -0
  290. package/lib/types/decorators/maxWords.d.ts +9 -0
  291. package/lib/types/decorators/minWords.d.ts +9 -0
  292. package/lib/types/decorators/modalEdit.d.ts +8 -0
  293. package/lib/types/decorators/multiple.d.ts +8 -0
  294. package/lib/types/decorators/openWhenEmpty.d.ts +8 -0
  295. package/lib/types/decorators/password.d.ts +12 -0
  296. package/lib/types/decorators/placeholder.d.ts +9 -0
  297. package/lib/types/decorators/prefix.d.ts +8 -0
  298. package/lib/types/decorators/select.d.ts +14 -0
  299. package/lib/types/decorators/suffix.d.ts +8 -0
  300. package/lib/types/decorators/tableView.d.ts +9 -0
  301. package/lib/types/decorators/tabs.d.ts +8 -0
  302. package/lib/types/decorators/textCase.d.ts +9 -0
  303. package/lib/types/decorators/textarea.d.ts +12 -0
  304. package/lib/types/decorators/tooltip.d.ts +9 -0
  305. package/lib/types/decorators/validate.d.ts +10 -0
  306. package/lib/types/domain/FormioDataResolver.d.ts +7 -0
  307. package/lib/types/index.d.ts +4 -0
  308. package/lib/types/registries/FormioMappersContainer.d.ts +6 -0
  309. package/lib/types/registries/FormsContainer.d.ts +2 -0
  310. package/lib/types/utils/getFormioProps.d.ts +1 -0
  311. package/lib/types/utils/getFormioSchema.d.ts +4 -0
  312. package/lib/types/utils/getRef.d.ts +1 -0
  313. package/package.json +20 -16
  314. package/tsconfig.compile.esm.json +23 -0
  315. package/lib/index.js +0 -1070
  316. package/lib/index.js.map +0 -1
  317. package/lib/index.modern.js +0 -1025
  318. package/lib/index.modern.js.map +0 -1
@@ -1,1025 +0,0 @@
1
- import { getValue, cleanObject, isFunction, useDecorators, nameOf, StoreSet, isArrowFn, isString } from '@tsed/core';
2
- import { sentenceCase, paramCase, camelCase } from 'change-case';
3
- import { JsonEntityFn, CollectionOf, Name, JsonEntityStore, getJsonSchema } from '@tsed/schema';
4
-
5
- const FormioMappersContainer = new Map();
6
- function registerFormioMapper(type, mapper) {
7
- return FormioMappersContainer.set(type, mapper);
8
- }
9
- function getFormioMapper(type) {
10
- // istanbul ignore next
11
- if (!FormioMappersContainer.has(type)) {
12
- throw new Error(`Formio ${type} mapper doesn't exists`);
13
- }
14
-
15
- return FormioMappersContainer.get(type);
16
- }
17
- function execMapper(type, schema, options) {
18
- return getFormioMapper(type)(schema, options);
19
- }
20
-
21
- function getRef(schema, options) {
22
- if (schema.$ref) {
23
- return getValue(options, schema.$ref.replace("#/", "").replace(/\//g, "."));
24
- }
25
-
26
- return schema;
27
- }
28
-
29
- function anyToComponent(schema, options) {
30
- schema = getRef(schema, options);
31
-
32
- switch (schema.type) {
33
- case "object":
34
- if (!schema.properties && !schema.$ref) {
35
- return execMapper("map", schema, options);
36
- }
37
-
38
- return execMapper("nested", schema, options);
39
-
40
- case "array":
41
- return execMapper("array", schema, options);
42
-
43
- case "string":
44
- return execMapper("string", schema, options);
45
-
46
- case "boolean":
47
- return execMapper("boolean", schema, options);
48
-
49
- case "integer":
50
- case "number":
51
- return execMapper("number", schema, options);
52
- // default:
53
- // return execMapper("default", schema, options);
54
- }
55
- }
56
- registerFormioMapper("any", anyToComponent);
57
-
58
- function _extends() {
59
- _extends = Object.assign || function (target) {
60
- for (var i = 1; i < arguments.length; i++) {
61
- var source = arguments[i];
62
-
63
- for (var key in source) {
64
- if (Object.prototype.hasOwnProperty.call(source, key)) {
65
- target[key] = source[key];
66
- }
67
- }
68
- }
69
-
70
- return target;
71
- };
72
-
73
- return _extends.apply(this, arguments);
74
- }
75
-
76
- function arrayToComponent(schema, options) {
77
- const itemSchema = schema.items.$ref ? getRef(schema.items, options) : schema.items;
78
- const {
79
- type
80
- } = itemSchema;
81
-
82
- switch (type) {
83
- case "object":
84
- // editgrid
85
- return _extends({}, execMapper("default", schema, options), execMapper("editgrid", itemSchema, options));
86
-
87
- case "string":
88
- // tag or enum?
89
- if (itemSchema.enum) {
90
- const _component = execMapper("enum", itemSchema, options);
91
-
92
- return _extends({}, _component, {
93
- inline: false,
94
- type: "selectboxes"
95
- });
96
- }
97
-
98
- const component = execMapper(type, itemSchema, options);
99
- return cleanObject(_extends({}, component, {
100
- multiple: component.type === "tags" ? undefined : true
101
- }));
102
-
103
- default:
104
- case "number":
105
- return _extends({}, execMapper(type, itemSchema, options), {
106
- multiple: true
107
- });
108
- }
109
- }
110
- registerFormioMapper("array", arrayToComponent);
111
-
112
- function booleanToComponent(schema, options) {
113
- const component = execMapper("default", schema, options);
114
- return cleanObject(_extends({}, component, {
115
- input: true,
116
- type: component.type || "checkbox"
117
- }));
118
- }
119
-
120
- registerFormioMapper("boolean", booleanToComponent);
121
-
122
- function dateToComponent(schema, options) {
123
- const component = execMapper("default", schema, options);
124
-
125
- const base = _extends({}, component, {
126
- enableMinDateInput: false,
127
- datePicker: {
128
- disableWeekends: false,
129
- disableWeekdays: false
130
- },
131
- enableMaxDateInput: false,
132
- enableTime: false,
133
- type: "datetime",
134
- input: true,
135
- widget: {
136
- type: "calendar",
137
- displayInTimezone: "viewer",
138
- locale: "en",
139
- useLocaleSettings: false,
140
- allowInput: true,
141
- mode: "single",
142
- noCalendar: false,
143
- hourIncrement: 1,
144
- minuteIncrement: 1,
145
- minDate: null,
146
- disableWeekends: false,
147
- disableWeekdays: false,
148
- maxDate: null
149
- }
150
- });
151
-
152
- if (schema.format === "date") {
153
- return _extends({}, base, {
154
- format: "yyyy-MM-dd",
155
- enableTime: false,
156
- widget: _extends({}, base.widget, {
157
- enableTime: false,
158
- format: "yyyy-MM-dd"
159
- })
160
- });
161
- }
162
-
163
- return _extends({}, base, {
164
- timePicker: {
165
- showMeridian: false
166
- },
167
- widget: {
168
- enableTime: true,
169
- time_24hr: true
170
- }
171
- });
172
- }
173
-
174
- registerFormioMapper("date", dateToComponent);
175
-
176
- function getFormioProps(schema) {
177
- const formioProps = Object.entries(schema).reduce((props, [key, value]) => {
178
- if (key.startsWith("x-formio-")) {
179
- return _extends({}, props, {
180
- [key.replace("x-formio-", "")]: value
181
- });
182
- }
183
-
184
- return props;
185
- }, {});
186
- return formioProps;
187
- }
188
-
189
- function defaultToComponent(schema, options) {
190
- const formioProps = getFormioProps(schema);
191
- return cleanObject(_extends({}, formioProps, {
192
- disabled: !!schema.readOnly,
193
- description: schema.description,
194
- defaultValue: schema.default
195
- }));
196
- }
197
- registerFormioMapper("default", defaultToComponent);
198
-
199
- function enumToComponent(schema, options) {
200
- const component = execMapper("default", schema, options);
201
- const values = schema.enum.map(value => {
202
- return {
203
- label: sentenceCase(value),
204
- value
205
- };
206
- });
207
-
208
- if (component.type === "select") {
209
- return cleanObject(_extends({}, component, {
210
- data: {
211
- json: JSON.stringify(values)
212
- },
213
- dataSrc: "json",
214
- idPath: "value",
215
- valueProperty: "value",
216
- template: "<span>{{ item.label }}</span>"
217
- }));
218
- }
219
-
220
- return cleanObject(_extends({}, component, {
221
- values: schema["x-values"] || values.map(value => _extends({}, value, {
222
- shortcut: ""
223
- }))
224
- }));
225
- }
226
- registerFormioMapper("enum", enumToComponent);
227
-
228
- function mapToComponent(schema, options) {
229
- return _extends({}, execMapper("default", schema, options), {
230
- type: "datamap",
231
- tableView: false,
232
- input: true,
233
- valueComponent: _extends({}, schema.additionalProperties ? execMapper("any", schema.additionalProperties, options) : {}, {
234
- hideLabel: true,
235
- tableView: true
236
- })
237
- });
238
- }
239
- registerFormioMapper("map", mapToComponent);
240
-
241
- function nestedToComponent(schema, options) {
242
- return _extends({}, execMapper("default", schema, options), {
243
- label: false,
244
- tableView: false,
245
- type: "form",
246
- display: "form",
247
- input: true,
248
- components: [_extends({
249
- key: "panel",
250
- label: options.parentKey && sentenceCase(options.parentKey)
251
- }, execMapper("panel", schema, options))]
252
- });
253
- }
254
- registerFormioMapper("nested", nestedToComponent);
255
-
256
- function numberToComponent(schema, options) {
257
- const component = execMapper("default", schema, options);
258
- return cleanObject(_extends({}, component, {
259
- input: true,
260
- delimiter: getValue(component, "delimiter", false),
261
- inputFormat: getValue(component, "inputFormat", "plain"),
262
- mask: getValue(component, "mask", false),
263
- requireDecimal: false,
264
- type: "number"
265
- }));
266
- }
267
- registerFormioMapper("number", numberToComponent);
268
- registerFormioMapper("integer", numberToComponent);
269
-
270
- function objectToEditGrid(schema, options) {
271
- return _extends({}, execMapper("default", schema, options), {
272
- rowDrafts: false,
273
- type: "editgrid",
274
- input: true,
275
- components: execMapper("properties", schema, options)
276
- });
277
- }
278
- registerFormioMapper("editgrid", objectToEditGrid);
279
-
280
- function panelToComponent(schema, options) {
281
- return _extends({}, execMapper("default", schema, options), {
282
- collapsible: false,
283
- input: false,
284
- tableView: false,
285
- components: execMapper("properties", schema, options)
286
- });
287
- }
288
- registerFormioMapper("panel", panelToComponent);
289
-
290
- function bindResolvers(component, options) {
291
- if (component.data) {
292
- const data = component.data;
293
- Object.entries(data).forEach(([key, resolver]) => {
294
- if (isFunction(resolver)) {
295
- options.resolvers.push(async form => {
296
- data[key] = await resolver(_extends({}, options, {
297
- component,
298
- form
299
- }));
300
- });
301
- }
302
- });
303
- }
304
- }
305
-
306
- function mapValidation(key, base, schema, propSchema) {
307
- const required = (schema.required || []).includes(key);
308
-
309
- const validate = _extends({}, base.validate || {}, {
310
- required,
311
- pattern: propSchema.pattern,
312
- minLength: !required || required && propSchema.minLength > 1 ? propSchema.minLength : undefined,
313
- maxLength: propSchema.maxLength,
314
- min: propSchema.minimum,
315
- max: propSchema.maximum
316
- });
317
-
318
- switch (propSchema.type) {
319
- case "string":
320
- if (propSchema.minLength === 0 && validate.required) {
321
- validate.minLength = undefined;
322
- validate.required = false;
323
- }
324
-
325
- break;
326
-
327
- case "boolean":
328
- validate.required = false;
329
- break;
330
- }
331
-
332
- return cleanObject(validate);
333
- }
334
-
335
- function propertiesToComponents(schema, options) {
336
- const tabs = {
337
- label: "Tabs",
338
- key: "tabs",
339
- type: "tabs",
340
- input: false,
341
- tableView: false,
342
- components: new Map(),
343
- pushed: false
344
- };
345
- const components = [];
346
- Object.entries(schema.properties).forEach(([key, propSchema]) => {
347
- const tabsOptions = propSchema["x-formiotabs"];
348
- const base = execMapper("any", propSchema, _extends({
349
- parentKey: key
350
- }, options));
351
- const component = cleanObject(_extends({
352
- key
353
- }, base, {
354
- label: base.label == false ? undefined : base.label || propSchema.title || sentenceCase(key),
355
- validate: mapValidation(key, base, schema, propSchema)
356
- }));
357
- bindResolvers(component, options);
358
-
359
- if (tabsOptions) {
360
- if (!tabs.pushed) {
361
- components.push(tabs);
362
- tabs.pushed = true;
363
- }
364
-
365
- if (!tabs.components.has(tabsOptions.key)) {
366
- tabs.components.set(tabsOptions.key, _extends({}, tabsOptions, {
367
- components: []
368
- }));
369
- }
370
-
371
- tabs.components.get(tabsOptions.key).components.push(component);
372
- } else {
373
- components.push(component);
374
- }
375
- });
376
-
377
- if (tabs.components.size) {
378
- tabs.components = [...tabs.components.values()];
379
- }
380
-
381
- return components;
382
- }
383
- registerFormioMapper("properties", propertiesToComponents);
384
-
385
- function stringToComponent(schema, options) {
386
- if (schema.format) {
387
- const _component = execMapper("default", schema, options);
388
-
389
- switch (schema.format) {
390
- case "date":
391
- case "date-time":
392
- return execMapper("date", schema, options);
393
-
394
- case "uri":
395
- return cleanObject(_extends({
396
- input: true
397
- }, _component, {
398
- type: _component.type || "url"
399
- }));
400
-
401
- default:
402
- return cleanObject(_extends({
403
- input: true
404
- }, _component, {
405
- type: _component.type || schema.format
406
- }));
407
- }
408
- }
409
-
410
- if (schema.enum) {
411
- const _component2 = execMapper("enum", schema, options);
412
-
413
- return _extends({}, _component2, {
414
- type: _component2.type || "radio"
415
- });
416
- }
417
-
418
- const component = execMapper("default", schema, options);
419
- return cleanObject(_extends({
420
- input: true,
421
- type: component.type || "textfield"
422
- }, component));
423
- }
424
- registerFormioMapper("string", stringToComponent);
425
-
426
- /**
427
- * Declare a formio Component schema on the decorated propertyKey.
428
- * @decorator
429
- * @formio
430
- * @property
431
- * @schema
432
- */
433
-
434
- function Component(component) {
435
- component = Object.entries(component).reduce((component, [key, value]) => {
436
- if (key === "validate") {
437
- component["x-formio-validate"] = _extends({}, component["x-formio-validate"] || {}, value);
438
- }
439
-
440
- return _extends({}, component, {
441
- [`x-formio-${key}`]: value
442
- });
443
- }, {});
444
- return JsonEntityFn(store => {
445
- Object.entries(component).forEach(([key, value]) => {
446
- store.itemSchema.customKey(key, value);
447
-
448
- if (store.isCollection) {
449
- store.schema.customKey(key, value);
450
- }
451
- });
452
- });
453
- }
454
-
455
- /**
456
- * Configure the property as Currency component.
457
- * @decorator
458
- * @formio
459
- * @property
460
- * @schema
461
- */
462
-
463
- function Currency(props = {}) {
464
- return Component(_extends({
465
- currency: "USD",
466
- inputFormat: "plain",
467
- mask: false,
468
- spellcheck: true,
469
- delimiter: true
470
- }, props, {
471
- type: "currency"
472
- }));
473
- }
474
-
475
- const wrap = resolver => async opts => {
476
- const result = await resolver(opts);
477
- return JSON.stringify(result);
478
- };
479
- /**
480
- * Set custom json data source
481
- * @param data
482
- * @param props
483
- * @constructor
484
- */
485
-
486
-
487
- function DataSourceJson(data, props = {}) {
488
- return Component(_extends({}, props, {
489
- dataSrc: "json",
490
- data: _extends({}, props.data, {
491
- json: isFunction(data) ? wrap(data) : JSON.stringify(data)
492
- })
493
- }));
494
- }
495
-
496
- /**
497
- * Set URL data on the current component.
498
- * @param url
499
- * @param props
500
- * @constructor
501
- */
502
-
503
- function DataSourceUrl(url, props = {}) {
504
- return Component(_extends({}, props, {
505
- dataSrc: "url",
506
- data: _extends({}, props.data, {
507
- url
508
- })
509
- }));
510
- }
511
-
512
- /**
513
- * Set hidden field.
514
- *
515
- * A hidden field is still a part of the form, but is hidden from view.
516
- *
517
- * @param bool
518
- * @decorator
519
- * @formio
520
- * @property
521
- * @schema
522
- */
523
-
524
- function Hidden(bool = true) {
525
- return Component({
526
- hidden: bool
527
- });
528
- }
529
-
530
- /**
531
- * Configure the property as Tags component.
532
- * @decorator
533
- * @formio
534
- * @property
535
- * @schema
536
- */
537
-
538
- function InputTags(props = {}) {
539
- return useDecorators(CollectionOf(String), Component(_extends({}, props, {
540
- tableView: false,
541
- storeas: "array",
542
- type: "tags"
543
- })));
544
- }
545
-
546
- /**
547
- * Change the multiple value on the decorated property.
548
- * @decorator
549
- * @formio
550
- * @property
551
- * @schema
552
- */
553
-
554
- function Multiple(multiple = false) {
555
- return Component({
556
- multiple
557
- });
558
- }
559
-
560
- /**
561
- * Configure the property as Password component.
562
- * @decorator
563
- * @formio
564
- * @property
565
- * @schema
566
- */
567
-
568
- function Password(props = {}) {
569
- return Component(_extends({}, props, {
570
- type: "password",
571
- protected: true
572
- }));
573
- }
574
-
575
- /**
576
- * Configure the property as Select component.
577
- * @decorator
578
- * @formio
579
- * @property
580
- * @schema
581
- */
582
-
583
- function Select(props = {}) {
584
- return Component(_extends({
585
- selectThreshold: 0.3,
586
- input: true,
587
- widget: "choicesjs"
588
- }, props, {
589
- type: "select"
590
- }));
591
- }
592
-
593
- /**
594
- * Change the visibility of the current property on a table.
595
- * @param bool
596
- * @decorator
597
- * @formio
598
- * @property
599
- * @schema
600
- */
601
-
602
- function TableView(bool) {
603
- return Component({
604
- tableView: bool
605
- });
606
- }
607
-
608
- /**
609
- * Configure the property as Textarea component.
610
- * @decorator
611
- * @formio
612
- * @property
613
- * @schema
614
- */
615
-
616
- function Textarea(props = {}) {
617
- return Component(_extends({
618
- autoExpand: false
619
- }, props, {
620
- type: "textarea"
621
- }));
622
- }
623
-
624
- /**
625
- * Add validation rules.
626
- * @decorator
627
- * @formio
628
- * @property
629
- * @schema
630
- * @param key
631
- * @param value
632
- */
633
-
634
- function Validate(key, value) {
635
- return Component({
636
- validate: {
637
- [key]: value
638
- }
639
- });
640
- }
641
-
642
- /**
643
- * Add error message when an error occur.
644
- * @decorator
645
- * @formio
646
- * @property
647
- * @schema
648
- * @param message
649
- */
650
-
651
- function ErrorMessage(message) {
652
- return Validate("customMessage", message);
653
- }
654
-
655
- /**
656
- * Set the error label when an error occur.
657
- * @decorator
658
- * @formio
659
- * @property
660
- * @schema
661
- */
662
-
663
- function ErrorLabel(message) {
664
- return Component({
665
- errorLabel: message
666
- });
667
- }
668
-
669
- /**
670
- * Add the maximum amount of words that can be added to this field.
671
- * @decorator
672
- * @formio
673
- * @property
674
- * @schema
675
- * @param value
676
- */
677
-
678
- function MinWords(value) {
679
- return Validate("minWords", value);
680
- }
681
-
682
- /**
683
- * Add the minimum amount of words that can be added to this field.
684
- * @decorator
685
- * @formio
686
- * @property
687
- * @schema
688
- * @param value
689
- */
690
-
691
- function MaxWords(value) {
692
- return Validate("maxWords", value);
693
- }
694
-
695
- // tslint:disable-next-line:variable-name
696
- const FormsContainer = new Map();
697
-
698
- /**
699
- * Expose the model as Formio Form.
700
- * @param form
701
- */
702
-
703
- function Form(form = {}) {
704
- return useDecorators(target => {
705
- const name = form.name || nameOf(target);
706
- const machineName = paramCase(name);
707
- FormsContainer.set(name, target);
708
- FormsContainer.set(machineName, target);
709
- }, form.name && Name(form.name), form && StoreSet("formio:form", form));
710
- }
711
-
712
- /**
713
- * Group the current property in tabs components.
714
- * @decorator
715
- * @formio
716
- * @property
717
- * @schema
718
- */
719
-
720
- function Tabs(label) {
721
- return JsonEntityFn(store => {
722
- store.schema.customKey("x-formiotabs", {
723
- key: camelCase(label),
724
- label
725
- });
726
- });
727
- }
728
-
729
- /**
730
- * The placeholder text that will appear when this field is empty.
731
- * @decorator
732
- * @formio
733
- * @property
734
- * @schema
735
- * @param placeholder
736
- */
737
-
738
- function Placeholder(placeholder) {
739
- return Component({
740
- placeholder
741
- });
742
- }
743
-
744
- /**
745
- * Adds a tooltip to the side of this field.
746
- * @decorator
747
- * @formio
748
- * @property
749
- * @schema
750
- * @param tooltip
751
- */
752
-
753
- function Tooltip(tooltip) {
754
- return Component({
755
- tooltip
756
- });
757
- }
758
-
759
- /**
760
- * Change the label field
761
- * @decorator
762
- * @formio
763
- * @property
764
- * @schema
765
- * @param label
766
- */
767
-
768
- function Label(label) {
769
- return Component({
770
- label
771
- });
772
- }
773
-
774
- /**
775
- * Add a custom css class.
776
- * @decorator
777
- * @formio
778
- * @property
779
- * @schema
780
- */
781
-
782
- function CustomClass(customClass) {
783
- return Component({
784
- customClass
785
- });
786
- }
787
-
788
- /**
789
- * Opens up a modal to edit the value of this component.
790
- * @decorator
791
- * @formio
792
- * @property
793
- * @schema
794
- */
795
-
796
- function ModalEdit(modalEdit = true) {
797
- return Component({
798
- modalEdit
799
- });
800
- }
801
-
802
- /**
803
- * An input mask helps the user with input by ensuring a predefined format.
804
- *
805
- * - 9: numeric
806
- * - a: alphabetical
807
- * - *: alphanumeric
808
- *
809
- * Example telephone mask: (999) 999-9999
810
- *
811
- * See the [jquery.inputmask](https://github.com/RobinHerbots/Inputmask) documentation for more information.
812
- *
813
- * @decorator
814
- * @formio
815
- * @property
816
- * @schema
817
- */
818
-
819
- function Mask(inputMask, inputMaskPlaceholderChar = "") {
820
- return Component({
821
- inputMask,
822
- inputMaskPlaceholderChar
823
- });
824
- }
825
- /**
826
- * An input mask helps the user with input by ensuring a predefined format.
827
- *
828
- * - 9: numeric
829
- * - a: alphabetical
830
- * - *: alphanumeric
831
- *
832
- * Example telephone mask: (999) 999-9999
833
- *
834
- * See the [jquery.inputmask](https://github.com/RobinHerbots/Inputmask) documentation for more information.
835
- *
836
- * @decorator
837
- * @formio
838
- * @property
839
- * @schema
840
- */
841
-
842
- function Masks(...inputMasks) {
843
- return Component({
844
- inputMasks
845
- });
846
- }
847
-
848
- /**
849
- * Add prefix word on the decorated field.
850
- * @decorator
851
- * @formio
852
- * @property
853
- * @schema
854
- */
855
-
856
- function Prefix(prefix) {
857
- return Component({
858
- prefix
859
- });
860
- }
861
-
862
- /**
863
- * Add suffix word on the decorated field.
864
- * @decorator
865
- * @formio
866
- * @property
867
- * @schema
868
- */
869
-
870
- function Suffix(suffix) {
871
- return Component({
872
- suffix
873
- });
874
- }
875
-
876
- /**
877
- * Force the output of this field to be sanitized in a specific format.
878
- * @decorator
879
- * @formio
880
- * @property
881
- * @schema
882
- * @param textCase
883
- */
884
-
885
- function TextCase(textCase) {
886
- return Component({
887
- case: textCase
888
- });
889
- }
890
-
891
- /**
892
- * Adds a conditional display rule on the input form.
893
- * @decorator
894
- * @formio
895
- * @property
896
- * @schema
897
- * @param conditional
898
- */
899
-
900
- function Conditional(conditional) {
901
- return Component({
902
- conditional
903
- });
904
- }
905
- /**
906
- * Adds a conditional display rule on the input form.
907
- * @decorator
908
- * @formio
909
- * @property
910
- * @schema
911
- * @param property
912
- * @param eq
913
- */
914
-
915
- function ShowWhen(property, eq) {
916
- return Conditional({
917
- show: true,
918
- when: property,
919
- eq
920
- });
921
- }
922
- /**
923
- * Adds a conditional display rule on the input form.
924
- * @decorator
925
- * @formio
926
- * @property
927
- * @schema
928
- * @param property
929
- * @param eq
930
- */
931
-
932
- function HideWhen(property, eq) {
933
- return Conditional({
934
- show: false,
935
- when: property,
936
- eq
937
- });
938
- }
939
-
940
- function sanitize(customConditional) {
941
- const str = customConditional.toString();
942
- const [signature, ...fn] = str.split("=>");
943
- let content = fn.join("=>");
944
-
945
- if (!signature.includes("{")) {
946
- const reg = `${signature.trim()}\.`;
947
- content = content.replace(new RegExp(reg, "gi"), "");
948
- }
949
-
950
- return `show = ${content.trim()}`;
951
- }
952
- /**
953
- * Adds custom conditional rule to display or not the input form.
954
- * @decorator
955
- * @formio
956
- * @property
957
- * @schema
958
- * @param customConditional
959
- */
960
-
961
-
962
- function CustomConditional(customConditional) {
963
- if (isArrowFn(customConditional)) {
964
- customConditional = sanitize(customConditional);
965
- }
966
-
967
- return Component({
968
- customConditional
969
- });
970
- }
971
-
972
- /**
973
- * Open automatically the editgrid when the list is empty.
974
- * @decorator
975
- * @formio
976
- * @property
977
- * @schema
978
- */
979
-
980
- function OpenWhenEmpty(openWhenEmpty = true) {
981
- return Component({
982
- openWhenEmpty
983
- });
984
- }
985
-
986
- async function getFormioSchema(model, options = {}) {
987
- if (!model) {
988
- return undefined;
989
- }
990
-
991
- if (isString(model)) {
992
- return getFormioSchema(FormsContainer.get(model), options);
993
- }
994
-
995
- const entity = JsonEntityStore.from(model);
996
- const schema = getJsonSchema(entity, _extends({}, options, {
997
- customKeys: true
998
- }));
999
- const name = entity.schema.getName();
1000
- const machineName = paramCase(name);
1001
- const resolvers = [];
1002
- const components = execMapper("properties", schema, _extends({}, options, {
1003
- definitions: schema.definitions,
1004
- resolvers
1005
- }));
1006
-
1007
- const form = _extends({
1008
- title: name,
1009
- type: "form",
1010
- display: "form",
1011
- tags: [],
1012
- access: [],
1013
- submissionAccess: []
1014
- }, entity.store.get("formio:form", {}), {
1015
- name: machineName,
1016
- machineName,
1017
- components
1018
- });
1019
-
1020
- await Promise.all(resolvers.map(resolver => resolver(form, options)));
1021
- return form;
1022
- }
1023
-
1024
- export { Component, Conditional, Currency, CustomClass, CustomConditional, DataSourceJson, DataSourceUrl, ErrorLabel, ErrorMessage, Form, Hidden, HideWhen, InputTags, Label, Mask, Masks, MaxWords, MinWords, ModalEdit, Multiple, OpenWhenEmpty, Password, Placeholder, Prefix, Select, ShowWhen, Suffix, TableView, Tabs, TextCase, Textarea, Tooltip, Validate, anyToComponent, arrayToComponent, defaultToComponent, enumToComponent, execMapper, getFormioMapper, getFormioSchema, mapToComponent, nestedToComponent, numberToComponent, objectToEditGrid, panelToComponent, propertiesToComponents, registerFormioMapper, stringToComponent };
1025
- //# sourceMappingURL=index.modern.js.map