@webiny/app-admin 0.0.0-unstable.6f45466a1d → 0.0.0-unstable.7be00a75a9

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 (1090) hide show
  1. package/assets/icons/add-18px.js +20 -0
  2. package/assets/icons/add-18px.js.map +1 -0
  3. package/assets/icons/arrow_drop_down-24px.js +20 -0
  4. package/assets/icons/arrow_drop_down-24px.js.map +1 -0
  5. package/assets/icons/attach_file_black_24dp.js +20 -0
  6. package/assets/icons/attach_file_black_24dp.js.map +1 -0
  7. package/assets/icons/baseline-menu-24px.js +20 -0
  8. package/assets/icons/baseline-menu-24px.js.map +1 -0
  9. package/assets/icons/baseline-notification_important-24px.js +19 -0
  10. package/assets/icons/baseline-notification_important-24px.js.map +1 -0
  11. package/assets/icons/baseline-security-24px.js +19 -0
  12. package/assets/icons/baseline-security-24px.js.map +1 -0
  13. package/assets/icons/file_download.js +19 -0
  14. package/assets/icons/file_download.js.map +1 -0
  15. package/assets/icons/file_upload.js +19 -0
  16. package/assets/icons/file_upload.js.map +1 -0
  17. package/assets/icons/filter-24px.js +23 -0
  18. package/assets/icons/filter-24px.js.map +1 -0
  19. package/assets/icons/github-brands.js +19 -0
  20. package/assets/icons/github-brands.js.map +1 -0
  21. package/assets/icons/highlight-24px.js +19 -0
  22. package/assets/icons/highlight-24px.js.map +1 -0
  23. package/assets/icons/icon-community.js +18 -0
  24. package/assets/icons/icon-community.js.map +1 -0
  25. package/assets/icons/icon-documentation.js +18 -0
  26. package/assets/icons/icon-documentation.js.map +1 -0
  27. package/assets/icons/info.js +19 -0
  28. package/assets/icons/info.js.map +1 -0
  29. package/assets/icons/insert_drive_file-24px.js +19 -0
  30. package/assets/icons/insert_drive_file-24px.js.map +1 -0
  31. package/assets/icons/insert_photo-24px.js +19 -0
  32. package/assets/icons/insert_photo-24px.js.map +1 -0
  33. package/assets/icons/label-24px.js +19 -0
  34. package/assets/icons/label-24px.js.map +1 -0
  35. package/assets/icons/round-account_circle-24px.js +19 -0
  36. package/assets/icons/round-account_circle-24px.js.map +1 -0
  37. package/assets/icons/round-add-24px.js +20 -0
  38. package/assets/icons/round-add-24px.js.map +1 -0
  39. package/assets/icons/round-arrow_drop_down-24px.js +19 -0
  40. package/assets/icons/round-arrow_drop_down-24px.js.map +1 -0
  41. package/assets/icons/round-chevron_right-24px.js +20 -0
  42. package/assets/icons/round-chevron_right-24px.js.map +1 -0
  43. package/assets/icons/round-feedback-24px.js +20 -0
  44. package/assets/icons/round-feedback-24px.js.map +1 -0
  45. package/assets/icons/round-help-24px.js +19 -0
  46. package/assets/icons/round-help-24px.js.map +1 -0
  47. package/assets/icons/round-invert_colors-24px.js +20 -0
  48. package/assets/icons/round-invert_colors-24px.js.map +1 -0
  49. package/assets/icons/round-keyboard_arrow_down-24px.js +17 -0
  50. package/assets/icons/round-keyboard_arrow_down-24px.js.map +1 -0
  51. package/assets/icons/round-keyboard_arrow_up-24px.js +17 -0
  52. package/assets/icons/round-keyboard_arrow_up-24px.js.map +1 -0
  53. package/assets/icons/round-lock_open-24px.js +22 -0
  54. package/assets/icons/round-lock_open-24px.js.map +1 -0
  55. package/assets/icons/round-more_vert-24px.js +20 -0
  56. package/assets/icons/round-more_vert-24px.js.map +1 -0
  57. package/assets/icons/round-open_in_new-24px.js +20 -0
  58. package/assets/icons/round-open_in_new-24px.js.map +1 -0
  59. package/assets/icons/round-settings-24px.js +20 -0
  60. package/assets/icons/round-settings-24px.js.map +1 -0
  61. package/assets/icons/search-24px.js +21 -0
  62. package/assets/icons/search-24px.js.map +1 -0
  63. package/assets/icons/slack-logo.js +14 -0
  64. package/assets/icons/slack-logo.js.map +1 -0
  65. package/assets/icons/today-24px.js +19 -0
  66. package/assets/icons/today-24px.js.map +1 -0
  67. package/assets/icons/touch_app.js +20 -0
  68. package/assets/icons/touch_app.js.map +1 -0
  69. package/assets/images/webiny-logo.js +34 -0
  70. package/assets/images/webiny-logo.js.map +1 -0
  71. package/assets/images/webiny-orange-logo.js +34 -0
  72. package/assets/images/webiny-orange-logo.js.map +1 -0
  73. package/base/Admin.js +40 -25
  74. package/base/Admin.js.map +1 -1
  75. package/base/Base/DefaultFieldRenderers.d.ts +2 -0
  76. package/base/Base/DefaultFieldRenderers.js +102 -0
  77. package/base/Base/DefaultFieldRenderers.js.map +1 -0
  78. package/base/Base/DefaultLayoutRenderers.d.ts +2 -0
  79. package/base/Base/DefaultLayoutRenderers.js +14 -0
  80. package/base/Base/DefaultLayoutRenderers.js.map +1 -0
  81. package/base/Base/FieldRenderers/CheckboxesRenderer.d.ts +13 -0
  82. package/base/Base/FieldRenderers/CheckboxesRenderer.js +27 -0
  83. package/base/Base/FieldRenderers/CheckboxesRenderer.js.map +1 -0
  84. package/base/Base/FieldRenderers/CodeEditorRenderer.d.ts +15 -0
  85. package/base/Base/FieldRenderers/CodeEditorRenderer.js +14 -0
  86. package/base/Base/FieldRenderers/CodeEditorRenderer.js.map +1 -0
  87. package/base/Base/FieldRenderers/DateTimeInputsRenderer.d.ts +17 -0
  88. package/base/Base/FieldRenderers/DateTimeInputsRenderer.js +66 -0
  89. package/base/Base/FieldRenderers/DateTimeInputsRenderer.js.map +1 -0
  90. package/base/Base/FieldRenderers/DateTimeRenderer.d.ts +21 -0
  91. package/base/Base/FieldRenderers/DateTimeRenderer.js +45 -0
  92. package/base/Base/FieldRenderers/DateTimeRenderer.js.map +1 -0
  93. package/base/Base/FieldRenderers/FilePickerRenderer.d.ts +13 -0
  94. package/base/Base/FieldRenderers/FilePickerRenderer.js +44 -0
  95. package/base/Base/FieldRenderers/FilePickerRenderer.js.map +1 -0
  96. package/base/Base/FieldRenderers/FileUrlPickerRenderer.d.ts +12 -0
  97. package/base/Base/FieldRenderers/FileUrlPickerRenderer.js +20 -0
  98. package/base/Base/FieldRenderers/FileUrlPickerRenderer.js.map +1 -0
  99. package/base/Base/FieldRenderers/HiddenRenderer.d.ts +12 -0
  100. package/base/Base/FieldRenderers/HiddenRenderer.js +5 -0
  101. package/base/Base/FieldRenderers/HiddenRenderer.js.map +1 -0
  102. package/base/Base/FieldRenderers/HorizontalTabsRenderer.d.ts +5 -0
  103. package/base/Base/FieldRenderers/HorizontalTabsRenderer.js +26 -0
  104. package/base/Base/FieldRenderers/HorizontalTabsRenderer.js.map +1 -0
  105. package/base/Base/FieldRenderers/InputRenderer.d.ts +12 -0
  106. package/base/Base/FieldRenderers/InputRenderer.js +19 -0
  107. package/base/Base/FieldRenderers/InputRenderer.js.map +1 -0
  108. package/base/Base/FieldRenderers/LexicalRenderer.d.ts +12 -0
  109. package/base/Base/FieldRenderers/LexicalRenderer.js +48 -0
  110. package/base/Base/FieldRenderers/LexicalRenderer.js.map +1 -0
  111. package/base/Base/FieldRenderers/MultiFilePickerRenderer.d.ts +13 -0
  112. package/base/Base/FieldRenderers/MultiFilePickerRenderer.js +70 -0
  113. package/base/Base/FieldRenderers/MultiFilePickerRenderer.js.map +1 -0
  114. package/base/Base/FieldRenderers/NumberInputRenderer.d.ts +12 -0
  115. package/base/Base/FieldRenderers/NumberInputRenderer.js +20 -0
  116. package/base/Base/FieldRenderers/NumberInputRenderer.js.map +1 -0
  117. package/base/Base/FieldRenderers/NumberInputsRenderer.d.ts +14 -0
  118. package/base/Base/FieldRenderers/NumberInputsRenderer.js +50 -0
  119. package/base/Base/FieldRenderers/NumberInputsRenderer.js.map +1 -0
  120. package/base/Base/FieldRenderers/ObjectRenderer/DynamicZoneRenderer.d.ts +14 -0
  121. package/base/Base/FieldRenderers/ObjectRenderer/DynamicZoneRenderer.js +17 -0
  122. package/base/Base/FieldRenderers/ObjectRenderer/DynamicZoneRenderer.js.map +1 -0
  123. package/base/Base/FieldRenderers/ObjectRenderer/KeyValueTagsRenderer.d.ts +14 -0
  124. package/base/Base/FieldRenderers/ObjectRenderer/KeyValueTagsRenderer.js +59 -0
  125. package/base/Base/FieldRenderers/ObjectRenderer/KeyValueTagsRenderer.js.map +1 -0
  126. package/base/Base/FieldRenderers/ObjectRenderer/MultiValueDynamicZone.d.ts +10 -0
  127. package/base/Base/FieldRenderers/ObjectRenderer/MultiValueDynamicZone.js +97 -0
  128. package/base/Base/FieldRenderers/ObjectRenderer/MultiValueDynamicZone.js.map +1 -0
  129. package/base/Base/FieldRenderers/ObjectRenderer/ObjectAccordionMultipleRenderer.d.ts +17 -0
  130. package/base/Base/FieldRenderers/ObjectRenderer/ObjectAccordionMultipleRenderer.js +48 -0
  131. package/base/Base/FieldRenderers/ObjectRenderer/ObjectAccordionMultipleRenderer.js.map +1 -0
  132. package/base/Base/FieldRenderers/ObjectRenderer/ObjectFieldComponents.d.ts +28 -0
  133. package/base/Base/FieldRenderers/ObjectRenderer/ObjectFieldComponents.js +69 -0
  134. package/base/Base/FieldRenderers/ObjectRenderer/ObjectFieldComponents.js.map +1 -0
  135. package/base/Base/FieldRenderers/ObjectRenderer/ObjectRenderer.d.ts +14 -0
  136. package/base/Base/FieldRenderers/ObjectRenderer/ObjectRenderer.js +17 -0
  137. package/base/Base/FieldRenderers/ObjectRenderer/ObjectRenderer.js.map +1 -0
  138. package/base/Base/FieldRenderers/ObjectRenderer/SingleValueDynamicZone.d.ts +10 -0
  139. package/base/Base/FieldRenderers/ObjectRenderer/SingleValueDynamicZone.js +58 -0
  140. package/base/Base/FieldRenderers/ObjectRenderer/SingleValueDynamicZone.js.map +1 -0
  141. package/base/Base/FieldRenderers/ObjectRenderer/TemplatePicker.d.ts +10 -0
  142. package/base/Base/FieldRenderers/ObjectRenderer/TemplatePicker.js +68 -0
  143. package/base/Base/FieldRenderers/ObjectRenderer/TemplatePicker.js.map +1 -0
  144. package/base/Base/FieldRenderers/ObjectRenderer/resolveItemTitle.d.ts +4 -0
  145. package/base/Base/FieldRenderers/ObjectRenderer/resolveItemTitle.js +19 -0
  146. package/base/Base/FieldRenderers/ObjectRenderer/resolveItemTitle.js.map +1 -0
  147. package/base/Base/FieldRenderers/PassthroughRenderer.d.ts +12 -0
  148. package/base/Base/FieldRenderers/PassthroughRenderer.js +12 -0
  149. package/base/Base/FieldRenderers/PassthroughRenderer.js.map +1 -0
  150. package/base/Base/FieldRenderers/RadioButtonsRenderer.d.ts +13 -0
  151. package/base/Base/FieldRenderers/RadioButtonsRenderer.js +26 -0
  152. package/base/Base/FieldRenderers/RadioButtonsRenderer.js.map +1 -0
  153. package/base/Base/FieldRenderers/SelectRenderer.d.ts +13 -0
  154. package/base/Base/FieldRenderers/SelectRenderer.js +28 -0
  155. package/base/Base/FieldRenderers/SelectRenderer.js.map +1 -0
  156. package/base/Base/FieldRenderers/SwitchRenderer.d.ts +12 -0
  157. package/base/Base/FieldRenderers/SwitchRenderer.js +16 -0
  158. package/base/Base/FieldRenderers/SwitchRenderer.js.map +1 -0
  159. package/base/Base/FieldRenderers/TagsRenderer.d.ts +12 -0
  160. package/base/Base/FieldRenderers/TagsRenderer.js +20 -0
  161. package/base/Base/FieldRenderers/TagsRenderer.js.map +1 -0
  162. package/base/Base/FieldRenderers/TextInputsRenderer.d.ts +14 -0
  163. package/base/Base/FieldRenderers/TextInputsRenderer.js +49 -0
  164. package/base/Base/FieldRenderers/TextInputsRenderer.js.map +1 -0
  165. package/base/Base/FieldRenderers/TextareaRenderer.d.ts +14 -0
  166. package/base/Base/FieldRenderers/TextareaRenderer.js +20 -0
  167. package/base/Base/FieldRenderers/TextareaRenderer.js.map +1 -0
  168. package/base/Base/FieldRenderers/TextareasRenderer.d.ts +14 -0
  169. package/base/Base/FieldRenderers/TextareasRenderer.js +52 -0
  170. package/base/Base/FieldRenderers/TextareasRenderer.js.map +1 -0
  171. package/base/Base/FieldRenderers/VerticalTabsRenderer.d.ts +5 -0
  172. package/base/Base/FieldRenderers/VerticalTabsRenderer.js +40 -0
  173. package/base/Base/FieldRenderers/VerticalTabsRenderer.js.map +1 -0
  174. package/base/Base/LexicalPreset.js +59 -64
  175. package/base/Base/LexicalPreset.js.map +1 -1
  176. package/base/Base/Menus/SupportMenuItems.js +9 -13
  177. package/base/Base/Menus/SupportMenuItems.js.map +1 -1
  178. package/base/Base/Menus/WebinyVersion.js +19 -20
  179. package/base/Base/Menus/WebinyVersion.js.map +1 -1
  180. package/base/Base/Menus.js +51 -107
  181. package/base/Base/Menus.js.map +1 -1
  182. package/base/Base/RoutesConfig.js +22 -24
  183. package/base/Base/RoutesConfig.js.map +1 -1
  184. package/base/Base/Tenant/wby-horizontal.js +33 -0
  185. package/base/Base/Tenant/wby-horizontal.js.map +1 -0
  186. package/base/Base/Tenant/wby-square.js +20 -0
  187. package/base/Base/Tenant/wby-square.js.map +1 -0
  188. package/base/Base/Tenant.js +17 -19
  189. package/base/Base/Tenant.js.map +1 -1
  190. package/base/Base/UserMenu/ExitTenant.js +18 -29
  191. package/base/Base/UserMenu/ExitTenant.js.map +1 -1
  192. package/base/Base/UserMenu/SignOut.js +13 -14
  193. package/base/Base/UserMenu/SignOut.js.map +1 -1
  194. package/base/Base/UserMenu/UserInfo.js +23 -36
  195. package/base/Base/UserMenu/UserInfo.js.map +1 -1
  196. package/base/Base/UserMenu.js +12 -13
  197. package/base/Base/UserMenu.js.map +1 -1
  198. package/base/Base.js +7 -6
  199. package/base/Base.js.map +1 -1
  200. package/base/TelemetryAdminAppStart.js +9 -12
  201. package/base/TelemetryAdminAppStart.js.map +1 -1
  202. package/base/WebinyVersion.js +19 -20
  203. package/base/WebinyVersion.js.map +1 -1
  204. package/base/createRootContainer.js +45 -37
  205. package/base/createRootContainer.js.map +1 -1
  206. package/base/plugins/AddGraphQLQuerySelection.js +12 -11
  207. package/base/plugins/AddGraphQLQuerySelection.js.map +1 -1
  208. package/base/providers/AdminUiStateProvider.js +5 -10
  209. package/base/providers/AdminUiStateProvider.js.map +1 -1
  210. package/base/providers/ApolloProvider.js +8 -11
  211. package/base/providers/ApolloProvider.js.map +1 -1
  212. package/base/providers/UiProviders.js +25 -12
  213. package/base/providers/UiProviders.js.map +1 -1
  214. package/base/providers/UiStateProvider.js +5 -10
  215. package/base/providers/UiStateProvider.js.map +1 -1
  216. package/base/ui/Brand.d.ts +6 -6
  217. package/base/ui/Brand.js +4 -5
  218. package/base/ui/Brand.js.map +1 -1
  219. package/base/ui/CenteredView.d.ts +1 -1
  220. package/base/ui/CenteredView.js +9 -13
  221. package/base/ui/CenteredView.js.map +1 -1
  222. package/base/ui/Dashboard.d.ts +6 -6
  223. package/base/ui/Dashboard.js +4 -5
  224. package/base/ui/Dashboard.js.map +1 -1
  225. package/base/ui/FileManager.d.ts +16 -15
  226. package/base/ui/FileManager.js +41 -60
  227. package/base/ui/FileManager.js.map +1 -1
  228. package/base/ui/Layout.d.ts +6 -6
  229. package/base/ui/Layout.js +4 -8
  230. package/base/ui/Layout.js.map +1 -1
  231. package/base/ui/LoginScreen.d.ts +12 -12
  232. package/base/ui/LoginScreen.js +16 -21
  233. package/base/ui/LoginScreen.js.map +1 -1
  234. package/base/ui/Logo.d.ts +6 -6
  235. package/base/ui/Logo.js +4 -5
  236. package/base/ui/Logo.js.map +1 -1
  237. package/base/ui/Navigation.d.ts +6 -6
  238. package/base/ui/Navigation.js +11 -14
  239. package/base/ui/Navigation.js.map +1 -1
  240. package/base/ui/NotFound.d.ts +6 -6
  241. package/base/ui/NotFound.js +4 -5
  242. package/base/ui/NotFound.js.map +1 -1
  243. package/base/ui/Tags.js +12 -16
  244. package/base/ui/Tags.js.map +1 -1
  245. package/base/ui/TenantSelector.d.ts +6 -6
  246. package/base/ui/TenantSelector.js +4 -5
  247. package/base/ui/TenantSelector.js.map +1 -1
  248. package/base/ui/UserMenu/UserMenu.d.ts +6 -6
  249. package/base/ui/UserMenu/UserMenu.js +4 -5
  250. package/base/ui/UserMenu/UserMenu.js.map +1 -1
  251. package/base/ui/UserMenu/UserMenuHandle.d.ts +6 -6
  252. package/base/ui/UserMenu/UserMenuHandle.js +4 -5
  253. package/base/ui/UserMenu/UserMenuHandle.js.map +1 -1
  254. package/base/ui/UserMenu/UserMenuItem.d.ts +14 -14
  255. package/base/ui/UserMenu/UserMenuItem.js +5 -15
  256. package/base/ui/UserMenu/UserMenuItem.js.map +1 -1
  257. package/base/ui/UserMenu/UserMenuLink.d.ts +14 -14
  258. package/base/ui/UserMenu/UserMenuLink.js +5 -15
  259. package/base/ui/UserMenu/UserMenuLink.js.map +1 -1
  260. package/base/ui/UserMenu/UserMenuSeparator.d.ts +7 -7
  261. package/base/ui/UserMenu/UserMenuSeparator.js +3 -5
  262. package/base/ui/UserMenu/UserMenuSeparator.js.map +1 -1
  263. package/base/ui/UserMenu.d.ts +12 -12
  264. package/base/ui/UserMenu.js +6 -13
  265. package/base/ui/UserMenu.js.map +1 -1
  266. package/components/AdminLayout.js +6 -10
  267. package/components/AdminLayout.js.map +1 -1
  268. package/components/BulkActions/Worker.js +57 -120
  269. package/components/BulkActions/Worker.js.map +1 -1
  270. package/components/BulkActions/index.js +0 -2
  271. package/components/BulkActions/useDialogWithReport/DialogMessage.js +17 -21
  272. package/components/BulkActions/useDialogWithReport/DialogMessage.js.map +1 -1
  273. package/components/BulkActions/useDialogWithReport/index.js +0 -2
  274. package/components/BulkActions/useDialogWithReport/useDialogWithReport.js +33 -44
  275. package/components/BulkActions/useDialogWithReport/useDialogWithReport.js.map +1 -1
  276. package/components/Buttons/Buttons.js +44 -71
  277. package/components/Buttons/Buttons.js.map +1 -1
  278. package/components/Buttons/Buttons.styles.js +9 -15
  279. package/components/Buttons/Buttons.styles.js.map +1 -1
  280. package/components/Buttons/index.js +1 -3
  281. package/components/Buttons/useButtons.js +15 -20
  282. package/components/Buttons/useButtons.js.map +1 -1
  283. package/components/DeveloperMode/DeveloperMode.d.ts +11 -0
  284. package/components/DeveloperMode/DeveloperMode.js +8 -0
  285. package/components/DeveloperMode/DeveloperMode.js.map +1 -0
  286. package/components/DeveloperMode/index.d.ts +2 -0
  287. package/components/DeveloperMode/index.js +1 -0
  288. package/components/Dialogs/Dialog.d.ts +3 -2
  289. package/components/Dialogs/Dialog.js +46 -58
  290. package/components/Dialogs/Dialog.js.map +1 -1
  291. package/components/Dialogs/DialogParamsContext.d.ts +6 -0
  292. package/components/Dialogs/DialogParamsContext.js +10 -0
  293. package/components/Dialogs/DialogParamsContext.js.map +1 -0
  294. package/components/Dialogs/DialogsContext.d.ts +8 -5
  295. package/components/Dialogs/DialogsContext.js +133 -123
  296. package/components/Dialogs/DialogsContext.js.map +1 -1
  297. package/components/Dialogs/useDialogs.js +5 -6
  298. package/components/Dialogs/useDialogs.js.map +1 -1
  299. package/components/EmptyView.js +26 -31
  300. package/components/EmptyView.js.map +1 -1
  301. package/components/Filters/Filters.js +15 -16
  302. package/components/Filters/Filters.js.map +1 -1
  303. package/components/Filters/FiltersToggle.js +18 -23
  304. package/components/Filters/FiltersToggle.js.map +1 -1
  305. package/components/Filters/index.js +0 -2
  306. package/components/FloatingActionButton.js +13 -15
  307. package/components/FloatingActionButton.js.map +1 -1
  308. package/components/IconPicker/IconPicker.js +24 -26
  309. package/components/IconPicker/IconPicker.js.map +1 -1
  310. package/components/IconPicker/IconPickerComponent.js +56 -72
  311. package/components/IconPicker/IconPickerComponent.js.map +1 -1
  312. package/components/IconPicker/IconPickerPresenter.js +64 -70
  313. package/components/IconPicker/IconPickerPresenter.js.map +1 -1
  314. package/components/IconPicker/IconPickerPresenter.test.js +79 -105
  315. package/components/IconPicker/IconPickerPresenter.test.js.map +1 -1
  316. package/components/IconPicker/IconPickerPresenterProvider.js +10 -16
  317. package/components/IconPicker/IconPickerPresenterProvider.js.map +1 -1
  318. package/components/IconPicker/IconPickerTab.js +97 -140
  319. package/components/IconPicker/IconPickerTab.js.map +1 -1
  320. package/components/IconPicker/IconRenderer.d.ts +6 -6
  321. package/components/IconPicker/IconRenderer.js +15 -23
  322. package/components/IconPicker/IconRenderer.js.map +1 -1
  323. package/components/IconPicker/IconRepository.js +41 -40
  324. package/components/IconPicker/IconRepository.js.map +1 -1
  325. package/components/IconPicker/IconRepository.test.js +56 -63
  326. package/components/IconPicker/IconRepository.test.js.map +1 -1
  327. package/components/IconPicker/IconRepositoryFactory.js +15 -11
  328. package/components/IconPicker/IconRepositoryFactory.js.map +1 -1
  329. package/components/IconPicker/Loading.js +47 -46
  330. package/components/IconPicker/Loading.js.map +1 -1
  331. package/components/IconPicker/components/IconPickerCell.d.ts +1 -1
  332. package/components/IconPicker/components/IconPickerCell.js +18 -20
  333. package/components/IconPicker/components/IconPickerCell.js.map +1 -1
  334. package/components/IconPicker/components/IconPickerContent.js +27 -35
  335. package/components/IconPicker/components/IconPickerContent.js.map +1 -1
  336. package/components/IconPicker/components/IconPickerRow.js +5 -10
  337. package/components/IconPicker/components/IconPickerRow.js.map +1 -1
  338. package/components/IconPicker/components/IconPickerTrigger.d.ts +1 -1
  339. package/components/IconPicker/components/IconPickerTrigger.js +42 -44
  340. package/components/IconPicker/components/IconPickerTrigger.js.map +1 -1
  341. package/components/IconPicker/components/index.js +0 -2
  342. package/components/IconPicker/config/Emojis.js +19 -21
  343. package/components/IconPicker/config/Emojis.js.map +1 -1
  344. package/components/IconPicker/config/FontAwesomeIcons.js +54 -58
  345. package/components/IconPicker/config/FontAwesomeIcons.js.map +1 -1
  346. package/components/IconPicker/config/IconPackProvider.js +17 -19
  347. package/components/IconPicker/config/IconPackProvider.js.map +1 -1
  348. package/components/IconPicker/config/IconType.js +48 -80
  349. package/components/IconPicker/config/IconType.js.map +1 -1
  350. package/components/IconPicker/config/index.js +28 -31
  351. package/components/IconPicker/config/index.js.map +1 -1
  352. package/components/IconPicker/defaultIcon.js +6 -5
  353. package/components/IconPicker/defaultIcon.js.map +1 -1
  354. package/components/IconPicker/index.js +0 -2
  355. package/components/IconPicker/plugins/customPlugin.js +87 -110
  356. package/components/IconPicker/plugins/customPlugin.js.map +1 -1
  357. package/components/IconPicker/plugins/emojisPlugin.js +90 -115
  358. package/components/IconPicker/plugins/emojisPlugin.js.map +1 -1
  359. package/components/IconPicker/plugins/graphql.js +3 -8
  360. package/components/IconPicker/plugins/graphql.js.map +1 -1
  361. package/components/IconPicker/plugins/iconsPlugin.js +73 -104
  362. package/components/IconPicker/plugins/iconsPlugin.js.map +1 -1
  363. package/components/IconPicker/types.js +4 -7
  364. package/components/IconPicker/types.js.map +1 -1
  365. package/components/LexicalEditor/DefaultLexicalEditorConfig.d.ts +2 -0
  366. package/components/LexicalEditor/DefaultLexicalEditorConfig.js +81 -0
  367. package/components/LexicalEditor/DefaultLexicalEditorConfig.js.map +1 -0
  368. package/components/LexicalEditor/LexicalEditor.js +41 -33
  369. package/components/LexicalEditor/LexicalEditor.js.map +1 -1
  370. package/components/LexicalEditor/LexicalLinkForm.d.ts +6 -0
  371. package/components/LexicalEditor/LexicalLinkForm.js +88 -0
  372. package/components/LexicalEditor/LexicalLinkForm.js.map +1 -0
  373. package/components/LexicalEditor/TypographyDropDown.d.ts +8 -0
  374. package/components/LexicalEditor/TypographyDropDown.js +60 -0
  375. package/components/LexicalEditor/TypographyDropDown.js.map +1 -0
  376. package/components/LexicalEditor/index.d.ts +1 -0
  377. package/components/LexicalEditor/index.js +1 -2
  378. package/components/LexicalEditor/lexicalValueFromHtml.d.ts +7 -0
  379. package/components/LexicalEditor/lexicalValueFromHtml.js +28 -0
  380. package/components/LexicalEditor/lexicalValueFromHtml.js.map +1 -0
  381. package/components/LexicalEditor/lexicalValueWithHtml.js +24 -30
  382. package/components/LexicalEditor/lexicalValueWithHtml.js.map +1 -1
  383. package/components/MultiImageUpload.js +4 -13
  384. package/components/MultiImageUpload.js.map +1 -1
  385. package/components/NotAuthorizedError/NotAuthorizedError.js +16 -17
  386. package/components/NotAuthorizedError/NotAuthorizedError.js.map +1 -1
  387. package/components/NotAuthorizedError/SecureRouteError.js +297 -0
  388. package/components/NotAuthorizedError/SecureRouteError.js.map +1 -0
  389. package/components/NotAuthorizedError/index.js +0 -2
  390. package/components/OptionsMenu/OptionsMenu.d.ts +6 -0
  391. package/components/OptionsMenu/OptionsMenu.js +20 -19
  392. package/components/OptionsMenu/OptionsMenu.js.map +1 -1
  393. package/components/OptionsMenu/OptionsMenuItem.js +15 -14
  394. package/components/OptionsMenu/OptionsMenuItem.js.map +1 -1
  395. package/components/OptionsMenu/OptionsMenuLink.js +13 -14
  396. package/components/OptionsMenu/OptionsMenuLink.js.map +1 -1
  397. package/components/OptionsMenu/index.js +0 -2
  398. package/components/OptionsMenu/useOptionsMenuItem.js +13 -18
  399. package/components/OptionsMenu/useOptionsMenuItem.js.map +1 -1
  400. package/components/OverlayLayout/OverlayLayout.js +35 -38
  401. package/components/OverlayLayout/OverlayLayout.js.map +1 -1
  402. package/components/OverlayLayout/components/OverlayBackdrop.js +6 -11
  403. package/components/OverlayLayout/components/OverlayBackdrop.js.map +1 -1
  404. package/components/OverlayLayout/components/OverlayContent.js +18 -17
  405. package/components/OverlayLayout/components/OverlayContent.js.map +1 -1
  406. package/components/OverlayLayout/components/OverlayHeader.d.ts +1 -1
  407. package/components/OverlayLayout/components/OverlayHeader.js +30 -37
  408. package/components/OverlayLayout/components/OverlayHeader.js.map +1 -1
  409. package/components/OverlayLayout/components/OverlayRoot.js +13 -14
  410. package/components/OverlayLayout/components/OverlayRoot.js.map +1 -1
  411. package/components/OverlayLayout/components/index.js +0 -2
  412. package/components/OverlayLayout/index.js +0 -2
  413. package/components/Permissions/CannotUseAaclAlert.js +10 -11
  414. package/components/Permissions/CannotUseAaclAlert.js.map +1 -1
  415. package/components/Permissions/Permissions.d.ts +1 -3
  416. package/components/Permissions/Permissions.js +36 -39
  417. package/components/Permissions/Permissions.js.map +1 -1
  418. package/components/Permissions/PermissionsGroup.js +9 -15
  419. package/components/Permissions/PermissionsGroup.js.map +1 -1
  420. package/components/Permissions/StyledComponents.js +10 -11
  421. package/components/Permissions/StyledComponents.js.map +1 -1
  422. package/components/Permissions/index.js +1 -3
  423. package/components/RegisterFeature.js +16 -23
  424. package/components/RegisterFeature.js.map +1 -1
  425. package/components/ResizablePanels/index.d.ts +1 -1
  426. package/components/ResizablePanels/index.js +1 -3
  427. package/components/RoleAutocomplete/graphql.js +3 -2
  428. package/components/RoleAutocomplete/graphql.js.map +1 -1
  429. package/components/RoleAutocomplete/index.d.ts +5 -3
  430. package/components/RoleAutocomplete/index.js +21 -13
  431. package/components/RoleAutocomplete/index.js.map +1 -1
  432. package/components/RolesMultiAutocomplete/graphql.js +3 -2
  433. package/components/RolesMultiAutocomplete/graphql.js.map +1 -1
  434. package/components/RolesMultiAutocomplete/index.d.ts +5 -3
  435. package/components/RolesMultiAutocomplete/index.js +21 -14
  436. package/components/RolesMultiAutocomplete/index.js.map +1 -1
  437. package/components/SearchUI.js +18 -25
  438. package/components/SearchUI.js.map +1 -1
  439. package/components/SimpleForm/SimpleForm.d.ts +3 -3
  440. package/components/SimpleForm/SimpleForm.js +54 -73
  441. package/components/SimpleForm/SimpleForm.js.map +1 -1
  442. package/components/SimpleForm/index.js +1 -3
  443. package/components/SimpleUI/InputField.js +70 -86
  444. package/components/SimpleUI/InputField.js.map +1 -1
  445. package/components/SingleImageUpload.d.ts +2 -2
  446. package/components/SingleImageUpload.js +37 -58
  447. package/components/SingleImageUpload.js.map +1 -1
  448. package/components/SplitView/SplitView.d.ts +6 -6
  449. package/components/SplitView/SplitView.js +48 -50
  450. package/components/SplitView/SplitView.js.map +1 -1
  451. package/components/SplitView/index.js +1 -3
  452. package/components/TeamAutocomplete/graphql.js +3 -2
  453. package/components/TeamAutocomplete/graphql.js.map +1 -1
  454. package/components/TeamAutocomplete/index.d.ts +5 -3
  455. package/components/TeamAutocomplete/index.js +21 -13
  456. package/components/TeamAutocomplete/index.js.map +1 -1
  457. package/components/TeamsMultiAutocomplete/graphql.js +3 -2
  458. package/components/TeamsMultiAutocomplete/graphql.js.map +1 -1
  459. package/components/TeamsMultiAutocomplete/index.d.ts +5 -3
  460. package/components/TeamsMultiAutocomplete/index.js +21 -14
  461. package/components/TeamsMultiAutocomplete/index.js.map +1 -1
  462. package/components/Wcp.d.ts +4 -0
  463. package/components/Wcp.js +29 -26
  464. package/components/Wcp.js.map +1 -1
  465. package/components/index.d.ts +5 -6
  466. package/components/index.js +11 -16
  467. package/config/AdminConfig/Dashboard.js +3 -2
  468. package/config/AdminConfig/Dashboard.js.map +1 -1
  469. package/config/AdminConfig/Dialog.d.ts +10 -0
  470. package/config/AdminConfig/Dialog.js +19 -0
  471. package/config/AdminConfig/Dialog.js.map +1 -0
  472. package/config/AdminConfig/FieldRenderer.d.ts +11 -0
  473. package/config/AdminConfig/FieldRenderer.js +19 -0
  474. package/config/AdminConfig/FieldRenderer.js.map +1 -0
  475. package/config/AdminConfig/Form.d.ts +4 -0
  476. package/config/AdminConfig/Form.js +9 -0
  477. package/config/AdminConfig/Form.js.map +1 -0
  478. package/config/AdminConfig/LayoutRenderer.d.ts +10 -0
  479. package/config/AdminConfig/LayoutRenderer.js +19 -0
  480. package/config/AdminConfig/LayoutRenderer.js.map +1 -0
  481. package/config/AdminConfig/LexicalTheme/Color.js +34 -41
  482. package/config/AdminConfig/LexicalTheme/Color.js.map +1 -1
  483. package/config/AdminConfig/LexicalTheme/Typography.js +61 -74
  484. package/config/AdminConfig/LexicalTheme/Typography.js.map +1 -1
  485. package/config/AdminConfig/LexicalTheme.js +4 -3
  486. package/config/AdminConfig/LexicalTheme.js.map +1 -1
  487. package/config/AdminConfig/Logo.d.ts +1 -1
  488. package/config/AdminConfig/Logo.js +15 -17
  489. package/config/AdminConfig/Logo.js.map +1 -1
  490. package/config/AdminConfig/Menu/MenuGroup.d.ts +3 -3
  491. package/config/AdminConfig/Menu/MenuGroup.js +7 -9
  492. package/config/AdminConfig/Menu/MenuGroup.js.map +1 -1
  493. package/config/AdminConfig/Menu/MenuItem.d.ts +2 -2
  494. package/config/AdminConfig/Menu/MenuItem.js +5 -7
  495. package/config/AdminConfig/Menu/MenuItem.js.map +1 -1
  496. package/config/AdminConfig/Menu/MenuLink.d.ts +2 -2
  497. package/config/AdminConfig/Menu/MenuLink.js +12 -15
  498. package/config/AdminConfig/Menu/MenuLink.js.map +1 -1
  499. package/config/AdminConfig/Menu/SupportMenu/SupportMenuItem.d.ts +2 -2
  500. package/config/AdminConfig/Menu/SupportMenu/SupportMenuItem.js +6 -8
  501. package/config/AdminConfig/Menu/SupportMenu/SupportMenuItem.js.map +1 -1
  502. package/config/AdminConfig/Menu/SupportMenu/SupportMenuLink.d.ts +1 -1
  503. package/config/AdminConfig/Menu/SupportMenu/SupportMenuLink.js +4 -6
  504. package/config/AdminConfig/Menu/SupportMenu/SupportMenuLink.js.map +1 -1
  505. package/config/AdminConfig/Menu/SupportMenu.d.ts +3 -3
  506. package/config/AdminConfig/Menu/SupportMenu.js +30 -41
  507. package/config/AdminConfig/Menu/SupportMenu.js.map +1 -1
  508. package/config/AdminConfig/Menu/UserMenu/UserMenuItem.js +4 -4
  509. package/config/AdminConfig/Menu/UserMenu/UserMenuItem.js.map +1 -1
  510. package/config/AdminConfig/Menu/UserMenu/UserMenuLink.js +4 -4
  511. package/config/AdminConfig/Menu/UserMenu/UserMenuLink.js.map +1 -1
  512. package/config/AdminConfig/Menu/UserMenu/UserMenuSeparator.js +0 -2
  513. package/config/AdminConfig/Menu/UserMenu/types.js +0 -3
  514. package/config/AdminConfig/Menu/UserMenu.d.ts +31 -31
  515. package/config/AdminConfig/Menu/UserMenu.js +39 -52
  516. package/config/AdminConfig/Menu/UserMenu.js.map +1 -1
  517. package/config/AdminConfig/Menu/types.js +0 -3
  518. package/config/AdminConfig/Menu.d.ts +42 -42
  519. package/config/AdminConfig/Menu.js +57 -73
  520. package/config/AdminConfig/Menu.js.map +1 -1
  521. package/config/AdminConfig/Route.js +4 -5
  522. package/config/AdminConfig/Route.js.map +1 -1
  523. package/config/AdminConfig/Security.d.ts +3 -0
  524. package/config/AdminConfig/Security.js +7 -0
  525. package/config/AdminConfig/Security.js.map +1 -0
  526. package/config/AdminConfig/SecurityPermissions.d.ts +17 -0
  527. package/config/AdminConfig/SecurityPermissions.js +24 -0
  528. package/config/AdminConfig/SecurityPermissions.js.map +1 -0
  529. package/config/AdminConfig/Tenant/TenantLogo.d.ts +1 -1
  530. package/config/AdminConfig/Tenant/TenantLogo.js +18 -20
  531. package/config/AdminConfig/Tenant/TenantLogo.js.map +1 -1
  532. package/config/AdminConfig/Tenant/TenantName.d.ts +1 -1
  533. package/config/AdminConfig/Tenant/TenantName.js +14 -15
  534. package/config/AdminConfig/Tenant/TenantName.js.map +1 -1
  535. package/config/AdminConfig/Tenant.js +6 -9
  536. package/config/AdminConfig/Tenant.js.map +1 -1
  537. package/config/AdminConfig/Theme/assignColor.js +51 -18
  538. package/config/AdminConfig/Theme/assignColor.js.map +1 -1
  539. package/config/AdminConfig/Theme/consts.js +20 -2
  540. package/config/AdminConfig/Theme/consts.js.map +1 -1
  541. package/config/AdminConfig/Theme/types.js +0 -3
  542. package/config/AdminConfig/Theme.js +8 -15
  543. package/config/AdminConfig/Theme.js.map +1 -1
  544. package/config/AdminConfig/Title.d.ts +1 -1
  545. package/config/AdminConfig/Title.js +11 -12
  546. package/config/AdminConfig/Title.js.map +1 -1
  547. package/config/AdminConfig/Widget.js +24 -31
  548. package/config/AdminConfig/Widget.js.map +1 -1
  549. package/config/AdminConfig.d.ts +22 -1
  550. package/config/AdminConfig.js +52 -51
  551. package/config/AdminConfig.js.map +1 -1
  552. package/config/createAdminConfig.js +55 -86
  553. package/config/createAdminConfig.js.map +1 -1
  554. package/domain/Identity.js +79 -89
  555. package/domain/Identity.js.map +1 -1
  556. package/errors/ErrorOverlayNetworkErrorHandler.js +37 -52
  557. package/errors/ErrorOverlayNetworkErrorHandler.js.map +1 -1
  558. package/errors/TenantIsDisabled.js +19 -20
  559. package/errors/TenantIsDisabled.js.map +1 -1
  560. package/exports/admin/build-params.d.ts +4 -0
  561. package/exports/admin/build-params.js +2 -0
  562. package/exports/admin/configs.js +0 -2
  563. package/exports/admin/form.d.ts +16 -0
  564. package/exports/admin/form.js +5 -0
  565. package/exports/admin/security.d.ts +6 -0
  566. package/exports/admin/security.js +1 -2
  567. package/exports/admin/tenancy.js +0 -2
  568. package/exports/admin/ui/file-manager.d.ts +3 -0
  569. package/exports/admin/ui/file-manager.js +2 -0
  570. package/exports/admin/ui/lexical.d.ts +1 -0
  571. package/exports/admin/ui/lexical.js +1 -0
  572. package/exports/admin/ui.d.ts +5 -1
  573. package/exports/admin/ui.js +4 -3
  574. package/exports/admin.d.ts +6 -0
  575. package/exports/admin.js +5 -2
  576. package/features/apolloClient/abstraction.js +2 -1
  577. package/features/apolloClient/abstraction.js.map +1 -1
  578. package/features/apolloClient/feature.js +22 -30
  579. package/features/apolloClient/feature.js.map +1 -1
  580. package/features/buildParams/BuildParams.js +20 -14
  581. package/features/buildParams/BuildParams.js.map +1 -1
  582. package/features/buildParams/abstractions.js +3 -2
  583. package/features/buildParams/abstractions.js.map +1 -1
  584. package/features/buildParams/feature.d.ts +1 -1
  585. package/features/buildParams/feature.js +11 -6
  586. package/features/buildParams/feature.js.map +1 -1
  587. package/features/buildParams/index.js +0 -2
  588. package/features/fileUrlFormatter/abstractions.d.ts +6 -0
  589. package/features/fileUrlFormatter/abstractions.js +5 -0
  590. package/features/fileUrlFormatter/abstractions.js.map +1 -0
  591. package/features/formModel/ConditionRuleEvaluator.d.ts +9 -0
  592. package/features/formModel/ConditionRuleEvaluator.js +49 -0
  593. package/features/formModel/ConditionRuleEvaluator.js.map +1 -0
  594. package/features/formModel/Field.d.ts +99 -0
  595. package/features/formModel/Field.js +347 -0
  596. package/features/formModel/Field.js.map +1 -0
  597. package/features/formModel/FieldBuilder.d.ts +44 -0
  598. package/features/formModel/FieldBuilder.js +152 -0
  599. package/features/formModel/FieldBuilder.js.map +1 -0
  600. package/features/formModel/FieldBuilder.test.d.ts +1 -0
  601. package/features/formModel/FieldBuilder.test.js +236 -0
  602. package/features/formModel/FieldBuilder.test.js.map +1 -0
  603. package/features/formModel/FieldBuilderRegistry.d.ts +4 -0
  604. package/features/formModel/FieldBuilderRegistry.js +29 -0
  605. package/features/formModel/FieldBuilderRegistry.js.map +1 -0
  606. package/features/formModel/FocusManager.d.ts +14 -0
  607. package/features/formModel/FocusManager.js +83 -0
  608. package/features/formModel/FocusManager.js.map +1 -0
  609. package/features/formModel/FormErrors.d.ts +9 -0
  610. package/features/formModel/FormErrors.js +35 -0
  611. package/features/formModel/FormErrors.js.map +1 -0
  612. package/features/formModel/FormModel.d.ts +59 -0
  613. package/features/formModel/FormModel.js +410 -0
  614. package/features/formModel/FormModel.js.map +1 -0
  615. package/features/formModel/FormModel.test.d.ts +1 -0
  616. package/features/formModel/FormModel.test.js +3811 -0
  617. package/features/formModel/FormModel.test.js.map +1 -0
  618. package/features/formModel/FormModelFactory.d.ts +11 -0
  619. package/features/formModel/FormModelFactory.js +33 -0
  620. package/features/formModel/FormModelFactory.js.map +1 -0
  621. package/features/formModel/FormView.d.ts +46 -0
  622. package/features/formModel/FormView.js +187 -0
  623. package/features/formModel/FormView.js.map +1 -0
  624. package/features/formModel/LayoutBuilderFactory.d.ts +61 -0
  625. package/features/formModel/LayoutBuilderFactory.js +316 -0
  626. package/features/formModel/LayoutBuilderFactory.js.map +1 -0
  627. package/features/formModel/LayoutMutator.d.ts +11 -0
  628. package/features/formModel/LayoutMutator.js +129 -0
  629. package/features/formModel/LayoutMutator.js.map +1 -0
  630. package/features/formModel/LayoutResolver.d.ts +26 -0
  631. package/features/formModel/LayoutResolver.js +199 -0
  632. package/features/formModel/LayoutResolver.js.map +1 -0
  633. package/features/formModel/ObjectField.d.ts +97 -0
  634. package/features/formModel/ObjectField.js +563 -0
  635. package/features/formModel/ObjectField.js.map +1 -0
  636. package/features/formModel/PresenterErrors.d.ts +9 -0
  637. package/features/formModel/PresenterErrors.js +32 -0
  638. package/features/formModel/PresenterErrors.js.map +1 -0
  639. package/features/formModel/Rules.test.d.ts +1 -0
  640. package/features/formModel/Rules.test.js +324 -0
  641. package/features/formModel/Rules.test.js.map +1 -0
  642. package/features/formModel/abstractions.d.ts +715 -0
  643. package/features/formModel/abstractions.js +8 -0
  644. package/features/formModel/abstractions.js.map +1 -0
  645. package/features/formModel/createFieldRenderer.d.ts +20 -0
  646. package/features/formModel/createFieldRenderer.js +38 -0
  647. package/features/formModel/createFieldRenderer.js.map +1 -0
  648. package/features/formModel/demo/FieldRenderersDemoPresenter.d.ts +18 -0
  649. package/features/formModel/demo/FieldRenderersDemoPresenter.js +299 -0
  650. package/features/formModel/demo/FieldRenderersDemoPresenter.js.map +1 -0
  651. package/features/formModel/demo/FormModelDemo.d.ts +4 -0
  652. package/features/formModel/demo/FormModelDemo.js +206 -0
  653. package/features/formModel/demo/FormModelDemo.js.map +1 -0
  654. package/features/formModel/demo/FormModelDemoPresenter.d.ts +22 -0
  655. package/features/formModel/demo/FormModelDemoPresenter.js +140 -0
  656. package/features/formModel/demo/FormModelDemoPresenter.js.map +1 -0
  657. package/features/formModel/demo/FormModelPhase11Presenter.d.ts +25 -0
  658. package/features/formModel/demo/FormModelPhase11Presenter.js +107 -0
  659. package/features/formModel/demo/FormModelPhase11Presenter.js.map +1 -0
  660. package/features/formModel/demo/FormModelPhase8c1Presenter.d.ts +23 -0
  661. package/features/formModel/demo/FormModelPhase8c1Presenter.js +69 -0
  662. package/features/formModel/demo/FormModelPhase8c1Presenter.js.map +1 -0
  663. package/features/formModel/feature.d.ts +3 -0
  664. package/features/formModel/feature.js +30 -0
  665. package/features/formModel/feature.js.map +1 -0
  666. package/features/formModel/fieldTypes/BooleanFieldType.d.ts +19 -0
  667. package/features/formModel/fieldTypes/BooleanFieldType.js +26 -0
  668. package/features/formModel/fieldTypes/BooleanFieldType.js.map +1 -0
  669. package/features/formModel/fieldTypes/DateTimeFieldType.d.ts +173 -0
  670. package/features/formModel/fieldTypes/DateTimeFieldType.js +246 -0
  671. package/features/formModel/fieldTypes/DateTimeFieldType.js.map +1 -0
  672. package/features/formModel/fieldTypes/FileFieldType.d.ts +29 -0
  673. package/features/formModel/fieldTypes/FileFieldType.js +56 -0
  674. package/features/formModel/fieldTypes/FileFieldType.js.map +1 -0
  675. package/features/formModel/fieldTypes/FileUrlFieldType.d.ts +18 -0
  676. package/features/formModel/fieldTypes/FileUrlFieldType.js +23 -0
  677. package/features/formModel/fieldTypes/FileUrlFieldType.js.map +1 -0
  678. package/features/formModel/fieldTypes/LexicalFieldType.d.ts +19 -0
  679. package/features/formModel/fieldTypes/LexicalFieldType.js +23 -0
  680. package/features/formModel/fieldTypes/LexicalFieldType.js.map +1 -0
  681. package/features/formModel/fieldTypes/NumberFieldType.d.ts +19 -0
  682. package/features/formModel/fieldTypes/NumberFieldType.js +28 -0
  683. package/features/formModel/fieldTypes/NumberFieldType.js.map +1 -0
  684. package/features/formModel/fieldTypes/ObjectFieldType.d.ts +34 -0
  685. package/features/formModel/fieldTypes/ObjectFieldType.js +95 -0
  686. package/features/formModel/fieldTypes/ObjectFieldType.js.map +1 -0
  687. package/features/formModel/fieldTypes/TextFieldType.d.ts +18 -0
  688. package/features/formModel/fieldTypes/TextFieldType.js +23 -0
  689. package/features/formModel/fieldTypes/TextFieldType.js.map +1 -0
  690. package/features/formModel/fieldTypes/index.d.ts +8 -0
  691. package/features/formModel/fieldTypes/index.js +8 -0
  692. package/features/formModel/index.d.ts +24 -0
  693. package/features/formModel/index.js +22 -0
  694. package/features/formModel/renderers.d.ts +21 -0
  695. package/features/formModel/renderers.js +21 -0
  696. package/features/formModel/useFieldRenderers.d.ts +2 -0
  697. package/features/formModel/useFieldRenderers.js +15 -0
  698. package/features/formModel/useFieldRenderers.js.map +1 -0
  699. package/features/formModel/useLayoutRenderers.d.ts +2 -0
  700. package/features/formModel/useLayoutRenderers.js +15 -0
  701. package/features/formModel/useLayoutRenderers.js.map +1 -0
  702. package/features/listCache/ListCache.d.ts +28 -0
  703. package/features/listCache/ListCache.js +48 -0
  704. package/features/listCache/ListCache.js.map +1 -0
  705. package/features/listCache/index.d.ts +2 -0
  706. package/features/listCache/index.js +1 -0
  707. package/features/security/AuthenticationContext/AuthenticationContext.js +27 -26
  708. package/features/security/AuthenticationContext/AuthenticationContext.js.map +1 -1
  709. package/features/security/AuthenticationContext/GraphQLClientDecorator.js +23 -22
  710. package/features/security/AuthenticationContext/GraphQLClientDecorator.js.map +1 -1
  711. package/features/security/AuthenticationContext/InternalIdTokenProvider.js +15 -12
  712. package/features/security/AuthenticationContext/InternalIdTokenProvider.js.map +1 -1
  713. package/features/security/AuthenticationContext/abstractions.js +3 -2
  714. package/features/security/AuthenticationContext/abstractions.js.map +1 -1
  715. package/features/security/AuthenticationContext/feature.js +15 -14
  716. package/features/security/AuthenticationContext/feature.js.map +1 -1
  717. package/features/security/AuthenticationContext/index.js +0 -2
  718. package/features/security/AuthenticationContext/types.js +0 -3
  719. package/features/security/IdentityContext/IdentityContext.js +18 -17
  720. package/features/security/IdentityContext/IdentityContext.js.map +1 -1
  721. package/features/security/IdentityContext/abstractions.js +2 -1
  722. package/features/security/IdentityContext/abstractions.js.map +1 -1
  723. package/features/security/IdentityContext/feature.js +13 -12
  724. package/features/security/IdentityContext/feature.js.map +1 -1
  725. package/features/security/IdentityContext/index.js +0 -2
  726. package/features/security/LogIn/IdentityMapper.js +8 -7
  727. package/features/security/LogIn/IdentityMapper.js.map +1 -1
  728. package/features/security/LogIn/LogInGateway.d.ts +2 -2
  729. package/features/security/LogIn/LogInGateway.js +18 -20
  730. package/features/security/LogIn/LogInGateway.js.map +1 -1
  731. package/features/security/LogIn/LogInRepository.js +16 -14
  732. package/features/security/LogIn/LogInRepository.js.map +1 -1
  733. package/features/security/LogIn/LogInUseCase.js +23 -31
  734. package/features/security/LogIn/LogInUseCase.js.map +1 -1
  735. package/features/security/LogIn/abstractions.js +5 -16
  736. package/features/security/LogIn/abstractions.js.map +1 -1
  737. package/features/security/LogIn/createLoginMutation.js +2 -3
  738. package/features/security/LogIn/createLoginMutation.js.map +1 -1
  739. package/features/security/LogIn/feature.js +16 -15
  740. package/features/security/LogIn/feature.js.map +1 -1
  741. package/features/security/LogIn/index.js +0 -2
  742. package/features/security/LogOut/LogOutUseCase.js +18 -16
  743. package/features/security/LogOut/LogOutUseCase.js.map +1 -1
  744. package/features/security/LogOut/abstractions.js +2 -1
  745. package/features/security/LogOut/abstractions.js.map +1 -1
  746. package/features/security/LogOut/feature.js +12 -11
  747. package/features/security/LogOut/feature.js.map +1 -1
  748. package/features/security/LogOut/index.js +0 -2
  749. package/features/security/SecurityFeature.js +9 -8
  750. package/features/security/SecurityFeature.js.map +1 -1
  751. package/features/telemetry/TelemetryService.js +11 -12
  752. package/features/telemetry/TelemetryService.js.map +1 -1
  753. package/features/telemetry/abstractions.js +2 -1
  754. package/features/telemetry/abstractions.js.map +1 -1
  755. package/features/telemetry/feature.js +13 -12
  756. package/features/telemetry/feature.js.map +1 -1
  757. package/features/telemetry/index.js +0 -2
  758. package/features/tenancy/GraphQLClientDecorator.js +23 -20
  759. package/features/tenancy/GraphQLClientDecorator.js.map +1 -1
  760. package/features/tenancy/TenantContext.js +46 -50
  761. package/features/tenancy/TenantContext.js.map +1 -1
  762. package/features/tenancy/abstractions.js +2 -1
  763. package/features/tenancy/abstractions.js.map +1 -1
  764. package/features/tenancy/feature.js +25 -35
  765. package/features/tenancy/feature.js.map +1 -1
  766. package/features/tenancy/types.js +0 -3
  767. package/features/tools/LexicalContext/LexicalContext.d.ts +14 -0
  768. package/features/tools/LexicalContext/LexicalContext.js +25 -0
  769. package/features/tools/LexicalContext/LexicalContext.js.map +1 -0
  770. package/features/tools/LexicalContext/abstractions.d.ts +11 -0
  771. package/features/tools/LexicalContext/abstractions.js +5 -0
  772. package/features/tools/LexicalContext/abstractions.js.map +1 -0
  773. package/features/tools/LexicalContext/index.d.ts +2 -0
  774. package/features/tools/LexicalContext/index.js +1 -0
  775. package/features/tools/ToolPipelineRunner.d.ts +10 -0
  776. package/features/tools/ToolPipelineRunner.js +35 -0
  777. package/features/tools/ToolPipelineRunner.js.map +1 -0
  778. package/features/tools/ToolRegistry.d.ts +12 -0
  779. package/features/tools/ToolRegistry.js +38 -0
  780. package/features/tools/ToolRegistry.js.map +1 -0
  781. package/features/tools/abstractions.d.ts +28 -0
  782. package/features/tools/abstractions.js +7 -0
  783. package/features/tools/abstractions.js.map +1 -0
  784. package/features/tools/feature.d.ts +4 -0
  785. package/features/tools/feature.js +22 -0
  786. package/features/tools/feature.js.map +1 -0
  787. package/features/tools/index.d.ts +3 -0
  788. package/features/tools/index.js +3 -0
  789. package/features/wcp/ReactLicense.d.ts +4 -0
  790. package/features/wcp/ReactLicense.js +53 -40
  791. package/features/wcp/ReactLicense.js.map +1 -1
  792. package/features/wcp/WcpGateway.d.ts +2 -2
  793. package/features/wcp/WcpGateway.js +26 -21
  794. package/features/wcp/WcpGateway.js.map +1 -1
  795. package/features/wcp/WcpService.js +57 -67
  796. package/features/wcp/WcpService.js.map +1 -1
  797. package/features/wcp/abstractions.js +3 -2
  798. package/features/wcp/abstractions.js.map +1 -1
  799. package/features/wcp/feature.js +14 -13
  800. package/features/wcp/feature.js.map +1 -1
  801. package/features/wcp/types.js +0 -3
  802. package/features/webinySdk/WebinySdk.d.ts +11 -0
  803. package/features/webinySdk/WebinySdk.js +28 -0
  804. package/features/webinySdk/WebinySdk.js.map +1 -0
  805. package/features/webinySdk/abstractions.d.ts +6 -0
  806. package/features/webinySdk/abstractions.js +5 -0
  807. package/features/webinySdk/abstractions.js.map +1 -0
  808. package/features/webinySdk/feature.d.ts +3 -0
  809. package/features/webinySdk/feature.js +17 -0
  810. package/features/webinySdk/feature.js.map +1 -0
  811. package/features/webinySdk/index.d.ts +2 -0
  812. package/features/webinySdk/index.js +2 -0
  813. package/hooks/index.d.ts +2 -0
  814. package/hooks/index.js +2 -2
  815. package/hooks/useConfirmationDialog.d.ts +1 -1
  816. package/hooks/useConfirmationDialog.js +31 -38
  817. package/hooks/useConfirmationDialog.js.map +1 -1
  818. package/hooks/useDialog.d.ts +9 -29
  819. package/hooks/useDialog.js +16 -25
  820. package/hooks/useDialog.js.map +1 -1
  821. package/hooks/useHotkeys.d.ts +9 -0
  822. package/hooks/useHotkeys.js +66 -0
  823. package/hooks/useHotkeys.js.map +1 -0
  824. package/hooks/useIsMounted.js +12 -11
  825. package/hooks/useIsMounted.js.map +1 -1
  826. package/hooks/useKeyHandler.js +46 -54
  827. package/hooks/useKeyHandler.js.map +1 -1
  828. package/hooks/useModKey.js +21 -26
  829. package/hooks/useModKey.js.map +1 -1
  830. package/hooks/useOpenDialog.d.ts +7 -0
  831. package/hooks/useOpenDialog.js +18 -0
  832. package/hooks/useOpenDialog.js.map +1 -0
  833. package/hooks/useShiftKey.d.ts +5 -1
  834. package/hooks/useShiftKey.js +38 -29
  835. package/hooks/useShiftKey.js.map +1 -1
  836. package/hooks/useSnackbar.d.ts +3 -0
  837. package/hooks/useSnackbar.js +26 -28
  838. package/hooks/useSnackbar.js.map +1 -1
  839. package/hooks/useStateIfMounted.js +14 -12
  840. package/hooks/useStateIfMounted.js.map +1 -1
  841. package/hooks/useStateWithCallback.js +18 -14
  842. package/hooks/useStateWithCallback.js.map +1 -1
  843. package/hooks/useToggler.js +12 -11
  844. package/hooks/useToggler.js.map +1 -1
  845. package/index.d.ts +25 -2
  846. package/index.js +23 -20
  847. package/package.json +57 -52
  848. package/permissions/PermissionRenderer.d.ts +6 -0
  849. package/permissions/PermissionRenderer.js +205 -0
  850. package/permissions/PermissionRenderer.js.map +1 -0
  851. package/permissions/PermissionValueContext.d.ts +11 -0
  852. package/permissions/PermissionValueContext.js +16 -0
  853. package/permissions/PermissionValueContext.js.map +1 -0
  854. package/permissions/createHasPermission.d.ts +4 -0
  855. package/permissions/createHasPermission.js +39 -0
  856. package/permissions/createHasPermission.js.map +1 -0
  857. package/permissions/createPermissionSchema.d.ts +2 -0
  858. package/permissions/createPermissionSchema.js +9 -0
  859. package/permissions/createPermissionSchema.js.map +1 -0
  860. package/permissions/createPermissions.d.ts +6 -0
  861. package/permissions/createPermissions.js +141 -0
  862. package/permissions/createPermissions.js.map +1 -0
  863. package/permissions/createPermissions.test.d.ts +1 -0
  864. package/permissions/createPermissions.test.js +209 -0
  865. package/permissions/createPermissions.test.js.map +1 -0
  866. package/permissions/index.d.ts +9 -0
  867. package/permissions/index.js +7 -0
  868. package/permissions/types.d.ts +267 -0
  869. package/permissions/types.js +0 -0
  870. package/permissions/usePermissionForm.d.ts +17 -0
  871. package/permissions/usePermissionForm.js +157 -0
  872. package/permissions/usePermissionForm.js.map +1 -0
  873. package/permissions/usePermissions.d.ts +4 -0
  874. package/permissions/usePermissions.js +10 -0
  875. package/permissions/usePermissions.js.map +1 -0
  876. package/plugins/MenuPlugin.js +15 -14
  877. package/plugins/MenuPlugin.js.map +1 -1
  878. package/presentation/browserFilePicker/BrowserFilePicker.d.ts +3 -0
  879. package/presentation/browserFilePicker/BrowserFilePicker.js +88 -0
  880. package/presentation/browserFilePicker/BrowserFilePicker.js.map +1 -0
  881. package/presentation/browserFilePicker/BrowserFilePickerPresenter.d.ts +10 -0
  882. package/presentation/browserFilePicker/BrowserFilePickerPresenter.js +84 -0
  883. package/presentation/browserFilePicker/BrowserFilePickerPresenter.js.map +1 -0
  884. package/presentation/browserFilePicker/index.d.ts +3 -0
  885. package/presentation/browserFilePicker/index.js +2 -0
  886. package/presentation/browserFilePicker/types.d.ts +53 -0
  887. package/presentation/browserFilePicker/types.js +0 -0
  888. package/presentation/browserFilePicker/utils.d.ts +2 -0
  889. package/presentation/browserFilePicker/utils.js +16 -0
  890. package/presentation/browserFilePicker/utils.js.map +1 -0
  891. package/presentation/buildParams/useBuildParams.d.ts +1 -0
  892. package/presentation/buildParams/useBuildParams.js +6 -0
  893. package/presentation/buildParams/useBuildParams.js.map +1 -0
  894. package/presentation/installation/components/SystemInstaller/SystemInstaller.js +46 -53
  895. package/presentation/installation/components/SystemInstaller/SystemInstaller.js.map +1 -1
  896. package/presentation/installation/components/SystemInstaller/SystemInstallerProvider.js +9 -14
  897. package/presentation/installation/components/SystemInstaller/SystemInstallerProvider.js.map +1 -1
  898. package/presentation/installation/components/SystemInstaller/index.js +0 -2
  899. package/presentation/installation/components/SystemInstaller/steps/AdminUserStep/createPasswordValidator.js +14 -29
  900. package/presentation/installation/components/SystemInstaller/steps/AdminUserStep/createPasswordValidator.js.map +1 -1
  901. package/presentation/installation/components/SystemInstaller/steps/AdminUserStep/usePasswordValidator.js +11 -10
  902. package/presentation/installation/components/SystemInstaller/steps/AdminUserStep/usePasswordValidator.js.map +1 -1
  903. package/presentation/installation/components/SystemInstaller/steps/AdminUserStep.js +60 -60
  904. package/presentation/installation/components/SystemInstaller/steps/AdminUserStep.js.map +1 -1
  905. package/presentation/installation/components/SystemInstaller/steps/BasicInfoStep.js +75 -85
  906. package/presentation/installation/components/SystemInstaller/steps/BasicInfoStep.js.map +1 -1
  907. package/presentation/installation/components/SystemInstaller/steps/Center.js +5 -8
  908. package/presentation/installation/components/SystemInstaller/steps/Center.js.map +1 -1
  909. package/presentation/installation/components/SystemInstaller/steps/Container.js +18 -24
  910. package/presentation/installation/components/SystemInstaller/steps/Container.js.map +1 -1
  911. package/presentation/installation/components/SystemInstaller/steps/FinishSetup.js +48 -53
  912. package/presentation/installation/components/SystemInstaller/steps/FinishSetup.js.map +1 -1
  913. package/presentation/installation/components/SystemInstaller/steps/IntroductionStep.js +13 -16
  914. package/presentation/installation/components/SystemInstaller/steps/IntroductionStep.js.map +1 -1
  915. package/presentation/installation/components/SystemInstaller/steps/introduction.js +723 -0
  916. package/presentation/installation/components/SystemInstaller/steps/introduction.js.map +1 -0
  917. package/presentation/installation/components/SystemInstaller/steps/referralSources.js +14 -1
  918. package/presentation/installation/components/SystemInstaller/steps/referralSources.js.map +1 -1
  919. package/presentation/installation/presenters/SystemInstaller/SystemInstallerGateway.d.ts +2 -2
  920. package/presentation/installation/presenters/SystemInstaller/SystemInstallerGateway.js +28 -29
  921. package/presentation/installation/presenters/SystemInstaller/SystemInstallerGateway.js.map +1 -1
  922. package/presentation/installation/presenters/SystemInstaller/SystemInstallerPresenter.js +117 -124
  923. package/presentation/installation/presenters/SystemInstaller/SystemInstallerPresenter.js.map +1 -1
  924. package/presentation/installation/presenters/SystemInstaller/SystemInstallerRepository.js +23 -21
  925. package/presentation/installation/presenters/SystemInstaller/SystemInstallerRepository.js.map +1 -1
  926. package/presentation/installation/presenters/SystemInstaller/abstractions.js +4 -3
  927. package/presentation/installation/presenters/SystemInstaller/abstractions.js.map +1 -1
  928. package/presentation/installation/presenters/SystemInstaller/feature.js +15 -14
  929. package/presentation/installation/presenters/SystemInstaller/feature.js.map +1 -1
  930. package/presentation/installation/presenters/SystemInstaller/index.js +0 -2
  931. package/presentation/lexicalContext/useLexicalContext.d.ts +3 -0
  932. package/presentation/lexicalContext/useLexicalContext.js +17 -0
  933. package/presentation/lexicalContext/useLexicalContext.js.map +1 -0
  934. package/presentation/listPresenter/ListPresenter.d.ts +30 -0
  935. package/presentation/listPresenter/ListPresenter.js +216 -0
  936. package/presentation/listPresenter/ListPresenter.js.map +1 -0
  937. package/presentation/listPresenter/ListPresenter.test.d.ts +1 -0
  938. package/presentation/listPresenter/ListPresenter.test.js +816 -0
  939. package/presentation/listPresenter/ListPresenter.test.js.map +1 -0
  940. package/presentation/listPresenter/SelectionController.d.ts +21 -0
  941. package/presentation/listPresenter/SelectionController.js +74 -0
  942. package/presentation/listPresenter/SelectionController.js.map +1 -0
  943. package/presentation/listPresenter/abstractions.d.ts +107 -0
  944. package/presentation/listPresenter/abstractions.js +5 -0
  945. package/presentation/listPresenter/abstractions.js.map +1 -0
  946. package/presentation/listPresenter/feature.d.ts +3 -0
  947. package/presentation/listPresenter/feature.js +17 -0
  948. package/presentation/listPresenter/feature.js.map +1 -0
  949. package/presentation/listPresenter/index.d.ts +3 -0
  950. package/presentation/listPresenter/index.js +2 -0
  951. package/presentation/security/components/HasPermission.js +15 -25
  952. package/presentation/security/components/HasPermission.js.map +1 -1
  953. package/presentation/security/components/SecureRoute.js +6 -12
  954. package/presentation/security/components/SecureRoute.js.map +1 -1
  955. package/presentation/security/hooks/useAuthentication.js +11 -17
  956. package/presentation/security/hooks/useAuthentication.js.map +1 -1
  957. package/presentation/security/hooks/useIdentity.js +19 -18
  958. package/presentation/security/hooks/useIdentity.js.map +1 -1
  959. package/presentation/security/hooks/useSecurity.js +14 -24
  960. package/presentation/security/hooks/useSecurity.js.map +1 -1
  961. package/presentation/tenancy/TenancyProvider.js +23 -36
  962. package/presentation/tenancy/TenancyProvider.js.map +1 -1
  963. package/presentation/tenancy/createTenancyProvider.js +6 -11
  964. package/presentation/tenancy/createTenancyProvider.js.map +1 -1
  965. package/presentation/tenancy/useTenantContext.js +17 -18
  966. package/presentation/tenancy/useTenantContext.js.map +1 -1
  967. package/presentation/textToLexicalTool/TextToLexicalTool.d.ts +30 -0
  968. package/presentation/textToLexicalTool/TextToLexicalTool.js +31 -0
  969. package/presentation/textToLexicalTool/TextToLexicalTool.js.map +1 -0
  970. package/presentation/textToLexicalTool/feature.d.ts +1 -0
  971. package/presentation/textToLexicalTool/feature.js +11 -0
  972. package/presentation/textToLexicalTool/feature.js.map +1 -0
  973. package/presentation/textToLexicalTool/textToLexicalState.d.ts +6 -0
  974. package/presentation/textToLexicalTool/textToLexicalState.js +31 -0
  975. package/presentation/textToLexicalTool/textToLexicalState.js.map +1 -0
  976. package/presentation/wcp/WcpProvider.js +17 -20
  977. package/presentation/wcp/WcpProvider.js.map +1 -1
  978. package/presentation/wcp/useWcp.js +11 -12
  979. package/presentation/wcp/useWcp.js.map +1 -1
  980. package/routes.d.ts +1 -1
  981. package/routes.js +14 -13
  982. package/routes.js.map +1 -1
  983. package/static/svg/SecureRouteError.e8b15981.svg +1 -0
  984. package/static/svg/add-18px.b3062af6.svg +3 -0
  985. package/static/svg/arrow_drop_down-24px.da74d713.svg +4 -0
  986. package/static/svg/attach_file_black_24dp.7fb13a7e.svg +1 -0
  987. package/static/svg/baseline-menu-24px.071b179d.svg +4 -0
  988. package/static/svg/baseline-notification_important-24px.29277e73.svg +4 -0
  989. package/static/svg/baseline-security-24px.12e519cc.svg +4 -0
  990. package/static/svg/file_download.afe3fbec.svg +1 -0
  991. package/static/svg/file_upload.6865d820.svg +1 -0
  992. package/static/svg/filter-24px.886d9ff0.svg +8 -0
  993. package/static/svg/github-brands.6311f0fa.svg +1 -0
  994. package/static/svg/highlight-24px.959a97f7.svg +1 -0
  995. package/static/svg/icon-community.cd087355.svg +16 -0
  996. package/static/svg/icon-documentation.a189d24c.svg +16 -0
  997. package/static/svg/info.fe810b72.svg +1 -0
  998. package/static/svg/insert_drive_file-24px.39d490eb.svg +1 -0
  999. package/static/svg/insert_photo-24px.81a5f945.svg +1 -0
  1000. package/static/svg/introduction.108720aa.svg +154 -0
  1001. package/static/svg/label-24px.9deafa4f.svg +1 -0
  1002. package/static/svg/round-account_circle-24px.f0b48cb7.svg +1 -0
  1003. package/static/svg/round-add-24px.4a5219b4.svg +16 -0
  1004. package/static/svg/round-arrow_drop_down-24px.5fdf92d1.svg +1 -0
  1005. package/static/svg/round-chevron_right-24px.34936511.svg +12 -0
  1006. package/static/svg/round-feedback-24px.4dae7231.svg +54 -0
  1007. package/static/svg/round-help-24px.a61b1d66.svg +1 -0
  1008. package/static/svg/round-invert_colors-24px.a229a1dd.svg +52 -0
  1009. package/static/svg/round-keyboard_arrow_down-24px.6febe804.svg +16 -0
  1010. package/static/svg/round-keyboard_arrow_up-24px.b1f7db34.svg +16 -0
  1011. package/static/svg/round-lock_open-24px.d527f6a5.svg +60 -0
  1012. package/static/svg/round-more_vert-24px.68d41b07.svg +12 -0
  1013. package/static/svg/round-open_in_new-24px.be5b4ddd.svg +44 -0
  1014. package/static/svg/round-settings-24px.c0b3056f.svg +4 -0
  1015. package/static/svg/search-24px.3c0f88dd.svg +20 -0
  1016. package/static/svg/slack-logo.7ee35e7f.svg +1 -0
  1017. package/static/svg/today-24px.df206362.svg +1 -0
  1018. package/static/svg/touch_app.debf3744.svg +1 -0
  1019. package/static/svg/wby-horizontal.03327bf6.svg +23 -0
  1020. package/static/svg/wby-square.ff8f47c3.svg +3 -0
  1021. package/static/svg/webiny-logo.ef56725c.svg +20 -0
  1022. package/static/svg/webiny-orange-logo.4eccf0f2.svg +20 -0
  1023. package/types.d.ts +0 -7
  1024. package/types.js +0 -3
  1025. package/base/Base/LexicalPreset/LinkEditForm.d.ts +0 -6
  1026. package/base/Base/LexicalPreset/LinkEditForm.js +0 -63
  1027. package/base/Base/LexicalPreset/LinkEditForm.js.map +0 -1
  1028. package/components/BulkActions/index.js.map +0 -1
  1029. package/components/BulkActions/useDialogWithReport/index.js.map +0 -1
  1030. package/components/Buttons/index.js.map +0 -1
  1031. package/components/Filters/index.js.map +0 -1
  1032. package/components/FloatingPanel.d.ts +0 -13
  1033. package/components/FloatingPanel.js +0 -94
  1034. package/components/FloatingPanel.js.map +0 -1
  1035. package/components/IconPicker/components/index.js.map +0 -1
  1036. package/components/IconPicker/index.js.map +0 -1
  1037. package/components/LexicalEditor/index.js.map +0 -1
  1038. package/components/NavigationPrompt.d.ts +0 -27
  1039. package/components/NavigationPrompt.js +0 -39
  1040. package/components/NavigationPrompt.js.map +0 -1
  1041. package/components/NotAuthorizedError/index.js.map +0 -1
  1042. package/components/OptionsMenu/index.js.map +0 -1
  1043. package/components/OverlayLayout/components/index.js.map +0 -1
  1044. package/components/OverlayLayout/index.js.map +0 -1
  1045. package/components/Permissions/index.js.map +0 -1
  1046. package/components/ResizablePanels/index.js.map +0 -1
  1047. package/components/SimpleForm/index.js.map +0 -1
  1048. package/components/SplitView/index.js.map +0 -1
  1049. package/components/StateInspector.d.ts +0 -8
  1050. package/components/StateInspector.js +0 -36
  1051. package/components/StateInspector.js.map +0 -1
  1052. package/components/index.js.map +0 -1
  1053. package/config/AdminConfig/Menu/UserMenu/UserMenuSeparator.js.map +0 -1
  1054. package/config/AdminConfig/Menu/UserMenu/types.js.map +0 -1
  1055. package/config/AdminConfig/Menu/types.js.map +0 -1
  1056. package/config/AdminConfig/Theme/types.js.map +0 -1
  1057. package/exports/admin/buildParams.d.ts +0 -1
  1058. package/exports/admin/buildParams.js +0 -3
  1059. package/exports/admin/buildParams.js.map +0 -1
  1060. package/exports/admin/configs.js.map +0 -1
  1061. package/exports/admin/security.js.map +0 -1
  1062. package/exports/admin/tenancy.js.map +0 -1
  1063. package/exports/admin/ui.js.map +0 -1
  1064. package/exports/admin.js.map +0 -1
  1065. package/extensions/AdminBuildParam.d.ts +0 -11
  1066. package/extensions/AdminBuildParam.js +0 -184
  1067. package/extensions/AdminBuildParam.js.map +0 -1
  1068. package/extensions/AdminExtension.d.ts +0 -11
  1069. package/extensions/AdminExtension.js +0 -105
  1070. package/extensions/AdminExtension.js.map +0 -1
  1071. package/extensions/index.d.ts +0 -23
  1072. package/extensions/index.js +0 -7
  1073. package/extensions/index.js.map +0 -1
  1074. package/features/buildParams/index.js.map +0 -1
  1075. package/features/security/AuthenticationContext/index.js.map +0 -1
  1076. package/features/security/AuthenticationContext/types.js.map +0 -1
  1077. package/features/security/IdentityContext/index.js.map +0 -1
  1078. package/features/security/LogIn/index.js.map +0 -1
  1079. package/features/security/LogOut/index.js.map +0 -1
  1080. package/features/telemetry/index.js.map +0 -1
  1081. package/features/tenancy/types.js.map +0 -1
  1082. package/features/wcp/types.js.map +0 -1
  1083. package/hooks/index.js.map +0 -1
  1084. package/index.js.map +0 -1
  1085. package/plugins/PermissionRendererPlugin.d.ts +0 -22
  1086. package/plugins/PermissionRendererPlugin.js +0 -19
  1087. package/plugins/PermissionRendererPlugin.js.map +0 -1
  1088. package/presentation/installation/components/SystemInstaller/index.js.map +0 -1
  1089. package/presentation/installation/presenters/SystemInstaller/index.js.map +0 -1
  1090. package/types.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/formModel/ObjectField.js","sources":["../../../src/features/formModel/ObjectField.ts"],"sourcesContent":["import { makeAutoObservable, runInAction, toJS } from \"mobx\";\nimport { Field } from \"./Field.js\";\nimport { createTemplateBuilder } from \"./fieldTypes/ObjectFieldType.js\";\nimport type {\n IObjectFieldConfig,\n IObjectField,\n IObjectFieldTemplates,\n IListItemField,\n IField,\n IObjectFieldVM,\n IFieldValidation,\n IFormModel,\n IFieldBuilder,\n IFieldBuilderRegistry,\n IRule,\n ITemplateBuilder,\n ITemplateConfig,\n ITemplateVM,\n FieldTypeMap,\n LayoutNode,\n LayoutNodeVM,\n BeforeChangeCallback,\n AfterChangeCallback,\n AfterSetValueCallback,\n OnBlurCallback,\n ComputedFieldCallback\n} from \"./abstractions.js\";\n\n/** Reserved key used as the template discriminator in templated object data. */\nexport const TEMPLATE_DISCRIMINATOR = \"_templateId\";\n\nfunction createChildFields(\n childBuilders: Record<string, IFieldBuilder>,\n form: IFormModel | null,\n parentPath?: string\n): Map<string, IField> {\n const children = new Map<string, IField>();\n for (const [name, builder] of Object.entries(childBuilders)) {\n const config = builder.build(name);\n const field = createFieldFromConfig(config, form, parentPath);\n children.set(name, field);\n }\n return children;\n}\n\nfunction createFieldFromConfig(config: any, form: IFormModel | null, parentPath?: string): IField {\n if (config.childBuilders) {\n const objField = new ObjectField(config as IObjectFieldConfig);\n if (form) {\n objField.setForm(form, parentPath);\n }\n return objField;\n }\n const field = new Field(config);\n if (form) {\n field.setForm(form, parentPath);\n }\n return field;\n}\n\nfunction hydrateChildren(\n children: Map<string, IField>,\n data: Record<string, unknown> | null | undefined,\n options?: { clone?: boolean }\n): void {\n if (!data) {\n return;\n }\n for (const [name, field] of children) {\n if (name in data) {\n if (options?.clone && field.config.cloneValue) {\n field.setValueSilent(field.config.cloneValue(data[name]));\n } else {\n field.setValueSilent(data[name]);\n }\n }\n }\n}\n\nfunction getChildrenData(children: Map<string, IField>): Record<string, unknown> {\n const data: Record<string, unknown> = {};\n for (const [name, field] of children) {\n if (isObjectField(field)) {\n data[name] = toJS(field.getData());\n } else {\n data[name] = toJS(field.getValue());\n }\n }\n return data;\n}\n\nasync function validateChildren(\n children: Map<string, IField>,\n options?: { force?: boolean }\n): Promise<boolean> {\n let allValid = true;\n for (const [, field] of children) {\n const valid = await field.validate(options);\n if (!valid) {\n allValid = false;\n }\n }\n return allValid;\n}\n\nexport function isObjectField(field: IField): field is ObjectField {\n return field.type === \"object\";\n}\n\nlet itemKeyCounter = 0;\n\ninterface ListItem {\n key: string;\n children: Map<string, IField>;\n templateId?: string;\n}\n\n/**\n * ObjectField — hierarchical field with children, using composition.\n * Holds a `_base` Field for scalar behavior (callbacks, disabled/hidden, form ref).\n * Adds its own children/items management for object and list modes.\n */\nexport class ObjectField implements IObjectField {\n readonly config: IObjectFieldConfig;\n\n private _base: Field;\n private _form: IFormModel | null = null;\n private _children: Map<string, IField>;\n private _items: ListItem[] = [];\n private _templates: ITemplateConfig[] = [];\n private _isTemplated: boolean;\n private _activeTemplateId: string | null = null;\n /** Inner layout for non-templated objects (single layout, applied per item too). */\n private _ownLayout: LayoutNode[] | null = null;\n /** Per-template inner layouts for templated objects. */\n private _templateLayouts: Record<string, LayoutNode[]> = {};\n private _validating = false;\n\n constructor(config: IObjectFieldConfig) {\n this.config = config;\n this._base = new Field({\n ...config,\n type: \"object\",\n renderer:\n config.renderer ??\n (config.isList ? \"objectAccordionMultiple\" : \"objectAccordionSingle\")\n });\n this._templates = config.templates ?? [];\n this._isTemplated = this._templates.length > 0;\n\n if (this._isTemplated) {\n // Templated mode: children populated per-item (list) or when a template is picked (single).\n this._children = new Map();\n } else {\n this._children = createChildFields(config.childBuilders, null);\n }\n\n makeAutoObservable(this, {\n config: false\n });\n }\n\n private _findTemplate(id: string): ITemplateConfig | undefined {\n return this._templates.find(t => t.id === id);\n }\n\n private _rebuildChildrenForTemplate(templateId: string): void {\n const template = this._findTemplate(templateId);\n if (!template) {\n throw new Error(\n `Template \"${templateId}\" not found on field \"${this.config.name}\". ` +\n `Available: ${this._templates.map(t => t.id).join(\", \") || \"(none)\"}.`\n );\n }\n const children = createChildFields(template.childBuilders, this._form, this.qualifiedName);\n this._children = children;\n this._activeTemplateId = templateId;\n const inner = this._innerLayoutFor(templateId);\n if (inner) {\n this._applyNestedObjectLayouts(inner, children);\n }\n }\n\n // --- Forwarded from _base ---\n\n get name(): string {\n return this._base.name;\n }\n\n get type(): string {\n return \"object\";\n }\n\n get visible(): boolean {\n return this._base.visible;\n }\n\n get disabled(): boolean {\n return this._base.disabled;\n }\n\n setDisabled(value: boolean): void {\n this._base.setDisabled(value);\n }\n\n setVisible(value: boolean): void {\n this._base.setVisible(value);\n }\n\n setAncestorRules(rules: IRule[]): void {\n this._base.setAncestorRules(rules);\n }\n\n setForm(form: IFormModel, parentPath?: string): void {\n this._form = form;\n this._base.setForm(form, parentPath);\n const myPath = this._base.qualifiedName;\n for (const [, field] of this._children) {\n field.setForm(form, myPath);\n }\n for (const item of this._items) {\n for (const [, field] of item.children) {\n field.setForm(form, myPath);\n }\n }\n }\n\n setValidation(validation: IFieldValidation): void {\n this._base.setValidation(validation);\n }\n\n addBeforeChange(cb: BeforeChangeCallback): void {\n this._base.addBeforeChange(cb);\n }\n\n addAfterChange(cb: AfterChangeCallback): void {\n this._base.addAfterChange(cb);\n }\n\n addAfterSetValue(cb: AfterSetValueCallback): void {\n this._base.addAfterSetValue(cb);\n }\n\n addOnBlur(cb: OnBlurCallback): void {\n this._base.addOnBlur(cb);\n }\n\n addRequiredWhen(fn: (form: IFormModel) => boolean, message?: string): void {\n this._base.addRequiredWhen(fn, message);\n }\n\n setComputed(fn: ComputedFieldCallback): void {\n this._base.setComputed(fn);\n }\n\n setComputedUntilDirty(fn: ComputedFieldCallback): void {\n this._base.setComputedUntilDirty(fn);\n }\n\n blur(): void {\n this._base.blur();\n }\n\n remove(): void {\n this._base.remove();\n }\n\n get qualifiedName(): string {\n return this._base.qualifiedName;\n }\n\n focus(): void {\n this._base.focus();\n }\n\n requestFocus(): void {\n this._base.requestFocus();\n }\n\n clearFocusRequest(): void {\n this._base.clearFocusRequest();\n }\n\n getInnerLayout(): LayoutNode[] | null {\n if (this.isTemplated) {\n return this._activeTemplateId\n ? (this._templateLayouts[this._activeTemplateId] ?? null)\n : null;\n }\n return this._ownLayout;\n }\n\n // --- Object-specific ---\n\n get isList(): boolean {\n return this.config.isList;\n }\n\n get isTemplated(): boolean {\n return this._isTemplated;\n }\n\n get activeTemplateId(): string | null {\n return this._activeTemplateId;\n }\n\n get availableTemplates(): ITemplateVM[] {\n const result: ITemplateVM[] = [];\n for (const template of this._templates) {\n if (template.visible && this._form) {\n if (!template.visible(this._form)) {\n continue;\n }\n }\n result.push({ id: template.id, label: template.label, icon: template.icon });\n }\n return result;\n }\n\n setTemplate(templateId: string): void {\n if (this._activeTemplateId === templateId) {\n return;\n }\n this._rebuildChildrenForTemplate(templateId);\n }\n\n get templates(): IObjectFieldTemplates {\n return {\n add: (id: string, configure: (t: ITemplateBuilder) => void) =>\n this._addTemplate(id, configure),\n remove: (templateId: string) => this._removeTemplate(templateId)\n };\n }\n\n private _addTemplate(id: string, configure: (t: ITemplateBuilder) => void): void {\n if (!this.isTemplated) {\n throw new Error(\n `Object field \"${this.config.name}\" is not templated; templates.add() requires the field to be defined with .template().`\n );\n }\n if (id === TEMPLATE_DISCRIMINATOR) {\n throw new Error(\n `Template id \"${TEMPLATE_DISCRIMINATOR}\" is reserved. Choose a different id.`\n );\n }\n if (this._findTemplate(id)) {\n throw new Error(`Duplicate template id \"${id}\".`);\n }\n const tb = createTemplateBuilder();\n configure(tb);\n this._templates.push(tb._build(id, this._form!.registry));\n }\n\n private _removeTemplate(templateId: string): void {\n if (!this.isTemplated) {\n throw new Error(\n `Object field \"${this.config.name}\" is not templated; templates.remove() requires the field to be defined with .template().`\n );\n }\n const index = this._templates.findIndex(t => t.id === templateId);\n if (index === -1) {\n return;\n }\n this._templates.splice(index, 1);\n\n if (this.config.isList) {\n this._items = this._items.filter(item => item.templateId !== templateId);\n return;\n }\n if (this._activeTemplateId === templateId) {\n this._activeTemplateId = null;\n this._children = new Map();\n }\n }\n\n setInnerLayout(layout: LayoutNode[] | Record<string, LayoutNode[]>): void {\n if (Array.isArray(layout)) {\n if (this.isTemplated) {\n throw new Error(\n `Object field \"${this.config.name}\" is templated; layout.object() must pass a per-template map (Record<templateId, LayoutNode[]>), not a single LayoutNode[].`\n );\n }\n this._ownLayout = layout;\n this._templateLayouts = {};\n // Apply nested object layouts to children that already exist\n // (non-templated single + non-templated list items).\n this._applyNestedObjectLayouts(layout, this._children);\n for (const item of this._items) {\n this._applyNestedObjectLayouts(layout, item.children);\n }\n return;\n }\n if (!this.isTemplated) {\n throw new Error(\n `Object field \"${this.config.name}\" is not templated; layout.object() must pass a single LayoutNode[], not a per-template map.`\n );\n }\n this._templateLayouts = layout;\n this._ownLayout = null;\n // Apply nested object layouts to currently-active templated children\n // (templated single with active template + templated list items).\n if (this._activeTemplateId && layout[this._activeTemplateId]) {\n this._applyNestedObjectLayouts(layout[this._activeTemplateId], this._children);\n }\n for (const item of this._items) {\n if (item.templateId && layout[item.templateId]) {\n this._applyNestedObjectLayouts(layout[item.templateId], item.children);\n }\n }\n }\n\n /**\n * Walk an inner layout for nested `object` nodes and forward each one to\n * the matching child field. The recursion bottoms out naturally: each\n * matched child is itself an ObjectField and will run `_applyNestedObjectLayouts`\n * against its own children whenever they materialise.\n */\n private _applyNestedObjectLayouts(layout: LayoutNode[], children: Map<string, IField>): void {\n for (const node of layout) {\n if (node.type === \"object\") {\n const child = children.get(node.fieldName);\n if (child && isObjectField(child)) {\n child.setInnerLayout(node.inner);\n }\n } else if (node.type === \"tabs\") {\n for (const tab of node.tabs) {\n this._applyNestedObjectLayouts(tab.layout, children);\n }\n }\n }\n }\n\n /**\n * Returns the inner layout that should apply to a freshly-built children\n * Map for the given templateId (templated objects/lists) or for the\n * non-templated case. Used to seed nested object layouts on newly-created\n * children before they go live.\n */\n private _innerLayoutFor(templateId: string | undefined): LayoutNode[] | undefined {\n if (this.isTemplated) {\n if (templateId === undefined) {\n return undefined;\n }\n return this._templateLayouts[templateId];\n }\n return this._ownLayout ?? undefined;\n }\n\n private _resolveLayoutForChildren(\n children: Map<string, IField>,\n templateId: string | null\n ): LayoutNodeVM[] {\n const layoutNodes = this.isTemplated\n ? templateId !== null\n ? this._templateLayouts[templateId]\n : undefined\n : (this._ownLayout ?? undefined);\n if (layoutNodes && this._form?.resolveChildLayout) {\n return this._form.resolveChildLayout(layoutNodes, children);\n }\n // Default: one row per visible child, in insertion order.\n const fallback: LayoutNodeVM[] = [];\n for (const [, field] of children) {\n if (field.visible) {\n fallback.push({ type: \"row\", fields: [field.vm] });\n }\n }\n return fallback;\n }\n\n get children(): Map<string, IField> {\n return this._children;\n }\n\n get items(): IListItemField[] {\n return this._items.map(item => ({\n key: item.key,\n children: item.children,\n templateId: item.templateId,\n getData: () => this._getItemData(item)\n }));\n }\n\n private _getItemData(item: ListItem): Record<string, unknown> {\n const data = getChildrenData(item.children);\n if (item.templateId !== undefined) {\n return { [TEMPLATE_DISCRIMINATOR]: item.templateId, ...data };\n }\n return data;\n }\n\n getChild(name: string): IField | undefined {\n return this._children.get(name);\n }\n\n fields(\n factory: (registry: IFieldBuilderRegistry) => Record<string, IFieldBuilder | undefined>\n ): void {\n if (this.isTemplated) {\n throw new Error(\n `Object field \"${this.config.name}\" is templated; use templates.add()/remove() to manage children. Each template owns its own fields.`\n );\n }\n const builders = factory(this._form!.registry);\n\n for (const [name, builder] of Object.entries(builders)) {\n if (builder === undefined) {\n this._children.delete(name);\n this.config.childBuilders[name] = undefined as unknown as IFieldBuilder;\n delete this.config.childBuilders[name];\n if (this.config.isList) {\n for (const item of this._items) {\n item.children.delete(name);\n }\n }\n continue;\n }\n\n this.config.childBuilders[name] = builder;\n const built = builder.build(name);\n const newField = createFieldFromConfig(built, this._form, this.qualifiedName);\n this._children.set(name, newField);\n\n if (this.config.isList) {\n for (const item of this._items) {\n const itemField = createFieldFromConfig(built, this._form, this.qualifiedName);\n item.children.set(name, itemField);\n }\n }\n }\n\n // Re-apply nested object layouts so newly-added children pick up any\n // layout.object() entries already registered on this field.\n if (this._ownLayout) {\n this._applyNestedObjectLayouts(this._ownLayout, this._children);\n for (const item of this._items) {\n this._applyNestedObjectLayouts(this._ownLayout, item.children);\n }\n }\n }\n\n getListItemChild(index: number, name: string): IField | undefined {\n const item = this._items[index];\n return item?.children.get(name);\n }\n\n getData(): any {\n if (this.config.isList) {\n return this._items.map(item => this._getItemData(item));\n }\n if (this.isTemplated) {\n if (this._activeTemplateId === null) {\n return null;\n }\n return {\n [TEMPLATE_DISCRIMINATOR]: this._activeTemplateId,\n ...getChildrenData(this._children)\n };\n }\n return getChildrenData(this._children);\n }\n\n getValue<T = unknown>(): T {\n return this.getData() as T;\n }\n\n setValue(value: unknown): void {\n this.setValueSilent(value);\n }\n\n setValueSilent(value: unknown): void {\n if (this.config.isList) {\n this._items = [];\n if (Array.isArray(value)) {\n for (const itemData of value) {\n if (this.isTemplated) {\n if (!itemData || typeof itemData !== \"object\") {\n continue;\n }\n const data = itemData as Record<string, unknown>;\n const templateId = data[TEMPLATE_DISCRIMINATOR];\n if (typeof templateId !== \"string\") {\n continue;\n }\n if (!this._findTemplate(templateId)) {\n continue;\n }\n const { [TEMPLATE_DISCRIMINATOR]: _discarded, ...rest } = data;\n this._addItemInternal(rest, templateId);\n } else {\n this._addItemInternal(itemData);\n }\n }\n }\n return;\n }\n if (this.isTemplated) {\n if (value === null || value === undefined) {\n this._activeTemplateId = null;\n this._children = new Map();\n return;\n }\n const data = value as Record<string, unknown>;\n const templateId = data[TEMPLATE_DISCRIMINATOR];\n if (typeof templateId !== \"string\") {\n return;\n }\n if (!this._findTemplate(templateId)) {\n return;\n }\n this._rebuildChildrenForTemplate(templateId);\n const { [TEMPLATE_DISCRIMINATOR]: _discarded, ...rest } = data;\n hydrateChildren(this._children, rest);\n return;\n }\n hydrateChildren(this._children, value as Record<string, unknown>);\n }\n\n addItem(\n templateIdOrData?: string | Record<string, unknown>,\n data?: Record<string, unknown>\n ): void {\n if (this.isTemplated) {\n if (typeof templateIdOrData !== \"string\") {\n throw new Error(\n `Object field \"${this.config.name}\": templated list items require a template id. ` +\n `Call addItem(templateId) with one of: ${this._templates.map(t => t.id).join(\", \")}.`\n );\n }\n if (!this._findTemplate(templateIdOrData)) {\n throw new Error(\n `Template \"${templateIdOrData}\" not found on field \"${this.config.name}\". ` +\n `Available: ${this._templates.map(t => t.id).join(\", \") || \"(none)\"}.`\n );\n }\n this._addItemInternal(data, templateIdOrData);\n return;\n }\n if (typeof templateIdOrData === \"string\") {\n throw new Error(\n `Object field \"${this.config.name}\" is not templated; addItem() does not accept a template id.`\n );\n }\n this._addItemInternal(templateIdOrData);\n }\n\n removeItem(index: number): void {\n this._items.splice(index, 1);\n }\n\n moveItem(fromIndex: number, toIndex: number): void {\n if (\n fromIndex < 0 ||\n fromIndex >= this._items.length ||\n toIndex < 0 ||\n toIndex >= this._items.length ||\n fromIndex === toIndex\n ) {\n return;\n }\n const [item] = this._items.splice(fromIndex, 1);\n this._items.splice(toIndex, 0, item);\n }\n\n duplicateItem(index: number): void {\n const source = this._items[index];\n if (!source) {\n return;\n }\n const data = getChildrenData(source.children);\n const children = createChildFields(\n this._templateChildBuilders(source.templateId),\n this._form,\n this.qualifiedName\n );\n hydrateChildren(children, data, { clone: true });\n const key = `item_${++itemKeyCounter}`;\n this._items.splice(index + 1, 0, { key, children, templateId: source.templateId });\n const inner = this._innerLayoutFor(source.templateId);\n if (inner) {\n this._applyNestedObjectLayouts(inner, children);\n }\n }\n\n private _templateChildBuilders(templateId: string | undefined): Record<string, IFieldBuilder> {\n if (templateId === undefined) {\n return this.config.childBuilders;\n }\n const template = this._findTemplate(templateId);\n if (!template) {\n throw new Error(`Template \"${templateId}\" not found on field \"${this.config.name}\".`);\n }\n return template.childBuilders;\n }\n\n private _addItemInternal(data?: Record<string, unknown>, templateId?: string): void {\n const children = createChildFields(\n this._templateChildBuilders(templateId),\n this._form,\n this.qualifiedName\n );\n if (data) {\n hydrateChildren(children, data);\n }\n const key = `item_${++itemKeyCounter}`;\n this._items.push({ key, children, templateId });\n const inner = this._innerLayoutFor(templateId);\n if (inner) {\n this._applyNestedObjectLayouts(inner, children);\n }\n }\n\n resetValidation(): void {\n this._base.resetValidation();\n for (const [, field] of this._children) {\n field.resetValidation();\n }\n for (const item of this._items) {\n for (const [, field] of item.children) {\n field.resetValidation();\n }\n }\n }\n\n as<T extends keyof FieldTypeMap>(type: T): FieldTypeMap[T] {\n if (type !== \"object\") {\n throw new Error(`Field \"${this.config.name}\" is type \"object\", not \"${type}\".`);\n }\n return this as unknown as FieldTypeMap[T];\n }\n\n get vm(): IObjectFieldVM {\n const baseVm = this._base.vm;\n return {\n name: baseVm.name,\n type: \"object\",\n label: baseVm.label,\n help: baseVm.help,\n description: baseVm.description,\n note: baseVm.note,\n placeholder: baseVm.placeholder,\n value: this.getValue(),\n validation: baseVm.validation,\n validating: this._validating,\n required: baseVm.required,\n visible: baseVm.visible,\n disabled: baseVm.disabled,\n renderer: baseVm.renderer,\n rendererSettings: baseVm.rendererSettings,\n onChange: (value: unknown) => this.setValue(value),\n onBlur: () => {\n if (this._form?.submitted) {\n void this.validate();\n }\n this.blur();\n },\n focusRequested: baseVm.focusRequested,\n clearFocusRequest: baseVm.clearFocusRequest,\n isList: this.config.isList,\n fields: this.config.isList\n ? []\n : Array.from(this._children.values())\n .filter(f => f.visible)\n .map(f => f.vm),\n layout: this.config.isList\n ? []\n : this._resolveLayoutForChildren(this._children, this._activeTemplateId),\n items: this.config.isList\n ? this._items.map((item, index) => ({\n key: item.key,\n fields: Array.from(item.children.values())\n .filter(f => f.visible)\n .map(f => f.vm),\n layout: this._resolveLayoutForChildren(\n item.children,\n item.templateId ?? null\n ),\n templateId: item.templateId,\n remove: () => this.removeItem(index),\n moveUp: () => this.moveItem(index, index - 1),\n moveDown: () => this.moveItem(index, index + 1),\n duplicate: () => this.duplicateItem(index)\n }))\n : [],\n addItem: (value?: unknown) => {\n return value !== undefined ? this.addItem(value as string) : this.addItem();\n },\n removeItem: (index: number) => this.removeItem(index),\n moveItem: (from: number, to: number) => this.moveItem(from, to),\n duplicateItem: (index: number) => this.duplicateItem(index),\n isTemplated: this.isTemplated,\n availableTemplates: this.availableTemplates,\n activeTemplateId: this._activeTemplateId,\n setTemplate: (templateId: string) => this.setTemplate(templateId)\n };\n }\n\n get hasErrors(): boolean {\n const checkChildren = (children: Map<string, IField>): boolean => {\n for (const [, field] of children) {\n if (field.vm.validation.isValid === false) {\n return true;\n }\n if (isObjectField(field) && field.hasErrors) {\n return true;\n }\n }\n return false;\n };\n\n if (this.config.isList) {\n for (const item of this._items) {\n if (checkChildren(item.children)) {\n return true;\n }\n }\n } else {\n if (checkChildren(this._children)) {\n return true;\n }\n }\n return false;\n }\n\n async validate(options?: { force?: boolean }): Promise<boolean> {\n if (!this.visible) {\n this.setValidation({ isValid: null });\n return true;\n }\n\n runInAction(() => {\n this._validating = true;\n });\n\n try {\n const requiredState = this._base.resolveRequired();\n if (requiredState.required) {\n const message = requiredState.message || \"This field is required.\";\n if (this.config.isList && this._items.length === 0) {\n this.setValidation({ isValid: false, message });\n return false;\n }\n if (!this.config.isList) {\n if (this.isTemplated) {\n if (this._activeTemplateId === null) {\n this.setValidation({ isValid: false, message });\n return false;\n }\n } else {\n const data = this.getData();\n const hasAnyValue = Object.values(data).some(\n v => v !== null && v !== undefined && v !== \"\"\n );\n if (!hasAnyValue) {\n this.setValidation({ isValid: false, message });\n return false;\n }\n }\n }\n }\n\n if (this.config.isList && this.config.listSchema) {\n const listData = this.getData();\n const result = await this.config.listSchema.safeParseAsync(listData);\n if (!result.success) {\n const firstIssue = result.error.issues[0];\n runInAction(() => {\n this.setValidation({\n isValid: false,\n message: firstIssue?.message || \"Invalid value.\"\n });\n });\n return false;\n }\n }\n\n if (this.config.schema) {\n const data = this.getData();\n const result = await this.config.schema.safeParseAsync(data);\n if (!result.success) {\n const firstIssue = result.error.issues[0];\n runInAction(() => {\n this.setValidation({\n isValid: false,\n message: firstIssue?.message || \"Invalid value.\"\n });\n });\n return false;\n }\n }\n\n let allValid = true;\n\n if (this.config.isList) {\n for (const item of this._items) {\n const valid = await validateChildren(item.children, options);\n if (!valid) {\n allValid = false;\n }\n }\n } else {\n allValid = await validateChildren(this._children, options);\n }\n\n runInAction(() => {\n this.setValidation({ isValid: allValid });\n });\n\n return allValid;\n } finally {\n runInAction(() => {\n this._validating = false;\n });\n }\n }\n}\n"],"names":["TEMPLATE_DISCRIMINATOR","createChildFields","childBuilders","form","parentPath","children","Map","name","builder","Object","config","field","createFieldFromConfig","objField","ObjectField","Field","hydrateChildren","data","options","getChildrenData","isObjectField","toJS","validateChildren","allValid","valid","itemKeyCounter","makeAutoObservable","id","t","templateId","template","Error","inner","value","rules","myPath","item","validation","cb","fn","message","result","configure","tb","createTemplateBuilder","index","layout","Array","node","child","tab","undefined","layoutNodes","fallback","factory","builders","built","newField","itemField","itemData","_discarded","rest","templateIdOrData","fromIndex","toIndex","source","key","type","baseVm","f","from","to","checkChildren","runInAction","requiredState","hasAnyValue","v","listData","firstIssue"],"mappings":";;;AA6BO,MAAMA,yBAAyB;AAEtC,SAASC,kBACLC,aAA4C,EAC5CC,IAAuB,EACvBC,UAAmB;IAEnB,MAAMC,WAAW,IAAIC;IACrB,KAAK,MAAM,CAACC,MAAMC,QAAQ,IAAIC,OAAO,OAAO,CAACP,eAAgB;QACzD,MAAMQ,SAASF,QAAQ,KAAK,CAACD;QAC7B,MAAMI,QAAQC,sBAAsBF,QAAQP,MAAMC;QAClDC,SAAS,GAAG,CAACE,MAAMI;IACvB;IACA,OAAON;AACX;AAEA,SAASO,sBAAsBF,MAAW,EAAEP,IAAuB,EAAEC,UAAmB;IACpF,IAAIM,OAAO,aAAa,EAAE;QACtB,MAAMG,WAAW,IAAIC,YAAYJ;QACjC,IAAIP,MACAU,SAAS,OAAO,CAACV,MAAMC;QAE3B,OAAOS;IACX;IACA,MAAMF,QAAQ,IAAII,MAAML;IACxB,IAAIP,MACAQ,MAAM,OAAO,CAACR,MAAMC;IAExB,OAAOO;AACX;AAEA,SAASK,gBACLX,QAA6B,EAC7BY,IAAgD,EAChDC,OAA6B;IAE7B,IAAI,CAACD,MACD;IAEJ,KAAK,MAAM,CAACV,MAAMI,MAAM,IAAIN,SACxB,IAAIE,QAAQU,MACR,IAAIC,SAAS,SAASP,MAAM,MAAM,CAAC,UAAU,EACzCA,MAAM,cAAc,CAACA,MAAM,MAAM,CAAC,UAAU,CAACM,IAAI,C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O;gBAC7B,MAAMpC,SAAS,MAAM,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,cAAc,CAACoC;gBAC3D,IAAI,CAACpC,OAAO,OAAO,EAAE;oBACjB,MAAMqC,aAAarC,OAAO,KAAK,CAAC,MAAM,CAAC,EAAE;oBACzCgC,YAAY;wBACR,IAAI,CAAC,aAAa,CAAC;4BACf,SAAS;4BACT,SAASK,YAAY,WAAW;wBACpC;oBACJ;oBACA,OAAO;gBACX;YACJ;YAEA,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE;gBACpB,MAAM7D,OAAO,IAAI,CAAC,OAAO;gBACzB,MAAMwB,SAAS,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,cAAc,CAACxB;gBACvD,IAAI,CAACwB,OAAO,OAAO,EAAE;oBACjB,MAAMqC,aAAarC,OAAO,KAAK,CAAC,MAAM,CAAC,EAAE;oBACzCgC,YAAY;wBACR,IAAI,CAAC,aAAa,CAAC;4BACf,SAAS;4BACT,SAASK,YAAY,WAAW;wBACpC;oBACJ;oBACA,OAAO;gBACX;YACJ;YAEA,IAAIvD,WAAW;YAEf,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,EAClB,KAAK,MAAMa,QAAQ,IAAI,CAAC,MAAM,CAAE;gBAC5B,MAAMZ,QAAQ,MAAMF,iBAAiBc,KAAK,QAAQ,EAAElB;gBACpD,IAAI,CAACM,OACDD,WAAW;YAEnB;iBAEAA,WAAW,MAAMD,iBAAiB,IAAI,CAAC,SAAS,EAAEJ;YAGtDuD,YAAY;gBACR,IAAI,CAAC,aAAa,CAAC;oBAAE,SAASlD;gBAAS;YAC3C;YAEA,OAAOA;QACX,SAAU;YACNkD,YAAY;gBACR,IAAI,CAAC,WAAW,GAAG;YACvB;QACJ;IACJ;AACJ"}
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ interface PresenterErrorsProps {
3
+ title?: string;
4
+ errors: string[];
5
+ }
6
+ export declare const PresenterErrors: (({ errors, ...props }: PresenterErrorsProps) => React.JSX.Element | null) & {
7
+ displayName: string;
8
+ };
9
+ export {};
@@ -0,0 +1,32 @@
1
+ import react, { useEffect, useRef } from "react";
2
+ import { observer } from "mobx-react-lite";
3
+ import { Alert, Heading } from "@webiny/admin-ui";
4
+ const PresenterErrors = observer(({ errors, ...props })=>{
5
+ const ref = useRef(null);
6
+ const title = props.title ?? "Some issues need your attention";
7
+ useEffect(()=>{
8
+ if (errors.length > 0 && ref.current) ref.current.scrollIntoView({
9
+ behavior: "smooth",
10
+ block: "center"
11
+ });
12
+ }, [
13
+ errors
14
+ ]);
15
+ if (0 === errors.length) return null;
16
+ return /*#__PURE__*/ react.createElement("div", {
17
+ ref: ref
18
+ }, /*#__PURE__*/ react.createElement(Alert, {
19
+ type: "danger",
20
+ variant: "subtle"
21
+ }, /*#__PURE__*/ react.createElement(Heading, {
22
+ level: 6
23
+ }, title), /*#__PURE__*/ react.createElement("ul", {
24
+ className: "list-disc mt-sm"
25
+ }, errors.map((message, index)=>/*#__PURE__*/ react.createElement("li", {
26
+ key: index,
27
+ className: "my-xs"
28
+ }, message)))));
29
+ });
30
+ export { PresenterErrors };
31
+
32
+ //# sourceMappingURL=PresenterErrors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/formModel/PresenterErrors.js","sources":["../../../src/features/formModel/PresenterErrors.tsx"],"sourcesContent":["import React, { useEffect, useRef } from \"react\";\nimport { observer } from \"mobx-react-lite\";\nimport { Alert, Heading } from \"@webiny/admin-ui\";\n\ninterface PresenterErrorsProps {\n title?: string;\n errors: string[];\n}\n\nexport const PresenterErrors = observer(({ errors, ...props }: PresenterErrorsProps) => {\n const ref = useRef<HTMLDivElement>(null);\n const title = props.title ?? \"Some issues need your attention\";\n\n useEffect(() => {\n if (errors.length > 0 && ref.current) {\n ref.current.scrollIntoView({ behavior: \"smooth\", block: \"center\" });\n }\n }, [errors]);\n\n if (errors.length === 0) {\n return null;\n }\n\n return (\n <div ref={ref}>\n <Alert type=\"danger\" variant=\"subtle\">\n <Heading level={6}>{title}</Heading>\n <ul className=\"list-disc mt-sm\">\n {errors.map((message, index) => (\n <li key={index} className={\"my-xs\"}>\n {message}\n </li>\n ))}\n </ul>\n </Alert>\n </div>\n );\n});\n"],"names":["PresenterErrors","observer","errors","props","ref","useRef","title","useEffect","Alert","Heading","message","index"],"mappings":";;;AASO,MAAMA,kBAAkBC,SAAS,CAAC,EAAEC,MAAM,EAAE,GAAGC,OAA6B;IAC/E,MAAMC,MAAMC,OAAuB;IACnC,MAAMC,QAAQH,MAAM,KAAK,IAAI;IAE7BI,UAAU;QACN,IAAIL,OAAO,MAAM,GAAG,KAAKE,IAAI,OAAO,EAChCA,IAAI,OAAO,CAAC,cAAc,CAAC;YAAE,UAAU;YAAU,OAAO;QAAS;IAEzE,GAAG;QAACF;KAAO;IAEX,IAAIA,AAAkB,MAAlBA,OAAO,MAAM,EACb,OAAO;IAGX,OAAO,WAAP,GACI,oBAAC;QAAI,KAAKE;qBACN,oBAACI,OAAKA;QAAC,MAAK;QAAS,SAAQ;qBACzB,oBAACC,SAAOA;QAAC,OAAO;OAAIH,QAAAA,WAAAA,GACpB,oBAAC;QAAG,WAAU;OACTJ,OAAO,GAAG,CAAC,CAACQ,SAASC,QAAAA,WAAAA,GAClB,oBAAC;YAAG,KAAKA;YAAO,WAAW;WACtBD;AAO7B"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,324 @@
1
+ import { describe, expect, it } from "vitest";
2
+ import { Container } from "@webiny/di";
3
+ import { FormModelFeature } from "./feature.js";
4
+ import { ConditionRuleEvaluator } from "./ConditionRuleEvaluator.js";
5
+ import { FormModelFactory } from "./abstractions.js";
6
+ function createForm(config) {
7
+ const container = new Container();
8
+ FormModelFeature.register(container);
9
+ return container.resolve(FormModelFactory).create({
10
+ fields: config.fields,
11
+ layout: config.layout,
12
+ ruleEvaluators: config.extraEvaluators
13
+ });
14
+ }
15
+ describe("Rules system", ()=>{
16
+ describe("condition rule on a field", ()=>{
17
+ it("hides a field when its rule matches", ()=>{
18
+ const form = createForm({
19
+ fields: (fields)=>({
20
+ title: fields.text().label("Title"),
21
+ subtitle: fields.text().label("Subtitle").rules([
22
+ {
23
+ type: "condition",
24
+ target: "title",
25
+ operator: "isEmpty",
26
+ value: null,
27
+ action: "hide"
28
+ }
29
+ ])
30
+ })
31
+ });
32
+ expect(form.field("subtitle").visible).toBe(false);
33
+ expect(form.field("subtitle").vm.visible).toBe(false);
34
+ form.field("title").setValue("Hello");
35
+ expect(form.field("subtitle").visible).toBe(true);
36
+ expect(form.field("subtitle").vm.visible).toBe(true);
37
+ });
38
+ it("disables a field when its rule matches", ()=>{
39
+ const form = createForm({
40
+ fields: (fields)=>({
41
+ country: fields.text().label("Country"),
42
+ city: fields.text().label("City").rules([
43
+ {
44
+ type: "condition",
45
+ target: "country",
46
+ operator: "isEmpty",
47
+ value: null,
48
+ action: "disable"
49
+ }
50
+ ])
51
+ })
52
+ });
53
+ expect(form.field("city").vm.disabled).toBe(true);
54
+ form.field("country").setValue("US");
55
+ expect(form.field("city").vm.disabled).toBe(false);
56
+ });
57
+ it("supports eq operator", ()=>{
58
+ const form = createForm({
59
+ fields: (fields)=>({
60
+ plan: fields.text().label("Plan"),
61
+ enterpriseOnly: fields.text().label("Enterprise").rules([
62
+ {
63
+ type: "condition",
64
+ target: "plan",
65
+ operator: "eq",
66
+ value: "enterprise",
67
+ action: "hide"
68
+ }
69
+ ])
70
+ })
71
+ });
72
+ form.field("plan").setValue("starter");
73
+ expect(form.field("enterpriseOnly").visible).toBe(true);
74
+ form.field("plan").setValue("enterprise");
75
+ expect(form.field("enterpriseOnly").visible).toBe(false);
76
+ });
77
+ it("excludes hidden fields from validation", async ()=>{
78
+ const form = createForm({
79
+ fields: (fields)=>({
80
+ toggle: fields.text().label("Toggle"),
81
+ required: fields.text().label("Required").required("Must fill").rules([
82
+ {
83
+ type: "condition",
84
+ target: "toggle",
85
+ operator: "isEmpty",
86
+ value: null,
87
+ action: "hide"
88
+ }
89
+ ])
90
+ })
91
+ });
92
+ const valid = await form.validate();
93
+ expect(valid).toBe(true);
94
+ form.field("toggle").setValue("anything");
95
+ const valid2 = await form.validate();
96
+ expect(valid2).toBe(false);
97
+ expect(form.errors.some((e)=>"required" === e.path)).toBe(true);
98
+ });
99
+ });
100
+ describe("rules on layout elements", ()=>{
101
+ it("cascades disable from tabs container to contained fields", ()=>{
102
+ const form = createForm({
103
+ fields: (fields)=>({
104
+ trigger: fields.text().label("Trigger"),
105
+ general: fields.text().label("General"),
106
+ seo: fields.text().label("SEO")
107
+ }),
108
+ layout: (layout)=>[
109
+ layout.row("trigger"),
110
+ layout.tabs("settings").rules([
111
+ {
112
+ type: "condition",
113
+ target: "trigger",
114
+ operator: "isEmpty",
115
+ value: null,
116
+ action: "disable"
117
+ }
118
+ ]).tab("general", (tab)=>{
119
+ tab.label("General").layout((layout)=>[
120
+ layout.row("general")
121
+ ]);
122
+ }).tab("seo", (tab)=>{
123
+ tab.label("SEO").layout((layout)=>[
124
+ layout.row("seo")
125
+ ]);
126
+ })
127
+ ]
128
+ });
129
+ expect(form.field("general").vm.disabled).toBe(true);
130
+ expect(form.field("seo").vm.disabled).toBe(true);
131
+ const tabs = form.vm.layout[1];
132
+ expect(tabs.disabled).toBe(true);
133
+ expect(tabs.tabs[0].disabled).toBe(true);
134
+ form.field("trigger").setValue("go");
135
+ expect(form.field("general").vm.disabled).toBe(false);
136
+ expect(form.field("seo").vm.disabled).toBe(false);
137
+ });
138
+ it("cascades disable from a single tab to its fields only", ()=>{
139
+ const form = createForm({
140
+ fields: (fields)=>({
141
+ title: fields.text().label("Title"),
142
+ general: fields.text().label("General"),
143
+ seo: fields.text().label("SEO")
144
+ }),
145
+ layout: (layout)=>[
146
+ layout.tabs("settings").tab("general", (tab)=>{
147
+ tab.label("General").layout((layout)=>[
148
+ layout.row("general")
149
+ ]);
150
+ }).tab("seo", (tab)=>{
151
+ tab.label("SEO").rules([
152
+ {
153
+ type: "condition",
154
+ target: "title",
155
+ operator: "isEmpty",
156
+ value: null,
157
+ action: "disable"
158
+ }
159
+ ]).layout((layout)=>[
160
+ layout.row("seo")
161
+ ]);
162
+ })
163
+ ]
164
+ });
165
+ expect(form.field("general").vm.disabled).toBe(false);
166
+ expect(form.field("seo").vm.disabled).toBe(true);
167
+ const tabs = form.vm.layout[0];
168
+ expect(tabs.tabs[0].disabled).toBe(false);
169
+ expect(tabs.tabs[1].disabled).toBe(true);
170
+ });
171
+ it("hides a tab and its fields when the tab has a hide rule", async ()=>{
172
+ const form = createForm({
173
+ fields: (fields)=>({
174
+ trigger: fields.text().label("Trigger"),
175
+ hiddenField: fields.text().label("Hidden").required("needed")
176
+ }),
177
+ layout: (layout)=>[
178
+ layout.row("trigger"),
179
+ layout.tabs("settings").tab("secret", (tab)=>{
180
+ tab.label("Secret").rules([
181
+ {
182
+ type: "condition",
183
+ target: "trigger",
184
+ operator: "isEmpty",
185
+ value: null,
186
+ action: "hide"
187
+ }
188
+ ]).layout((layout)=>[
189
+ layout.row("hiddenField")
190
+ ]);
191
+ })
192
+ ]
193
+ });
194
+ const valid = await form.validate();
195
+ expect(valid).toBe(true);
196
+ const tabsVm = form.vm.layout.find((n)=>"tabs" === n.type);
197
+ expect(tabsVm).toBeUndefined();
198
+ });
199
+ it("hides the entire tabs container when its rule matches", ()=>{
200
+ const form = createForm({
201
+ fields: (fields)=>({
202
+ trigger: fields.text().label("Trigger"),
203
+ inner: fields.text().label("Inner")
204
+ }),
205
+ layout: (layout)=>[
206
+ layout.row("trigger"),
207
+ layout.tabs("settings").rules([
208
+ {
209
+ type: "condition",
210
+ target: "trigger",
211
+ operator: "isEmpty",
212
+ value: null,
213
+ action: "hide"
214
+ }
215
+ ]).tab("tab1", (tab)=>{
216
+ tab.label("Tab 1").layout((layout)=>[
217
+ layout.row("inner")
218
+ ]);
219
+ })
220
+ ]
221
+ });
222
+ expect(form.vm.layout.find((n)=>"tabs" === n.type)).toBeUndefined();
223
+ expect(form.field("inner").visible).toBe(false);
224
+ form.field("trigger").setValue("yes");
225
+ expect(form.field("inner").visible).toBe(true);
226
+ expect(form.vm.layout.find((n)=>"tabs" === n.type)).toBeDefined();
227
+ });
228
+ });
229
+ describe("custom rule evaluators", ()=>{
230
+ it("uses externally registered evaluators for custom rule types", ()=>{
231
+ class AccessControlEvaluator {
232
+ constructor(userTeams){
233
+ this.userTeams = userTeams;
234
+ }
235
+ canEvaluate(rule) {
236
+ return "accessControl" === rule.type;
237
+ }
238
+ evaluate(rule) {
239
+ if (!rule.value) return false;
240
+ const [scope, id] = rule.value.split(":");
241
+ return "team" === scope && this.userTeams.includes(id);
242
+ }
243
+ }
244
+ const form = createForm({
245
+ extraEvaluators: [
246
+ new AccessControlEvaluator([
247
+ "admins"
248
+ ])
249
+ ],
250
+ fields: (fields)=>({
251
+ adminField: fields.text().label("Admin Only").rules([
252
+ {
253
+ type: "accessControl",
254
+ target: "identity",
255
+ operator: "matches",
256
+ value: "team:admins",
257
+ action: "disable"
258
+ }
259
+ ])
260
+ })
261
+ });
262
+ expect(form.field("adminField").vm.disabled).toBe(true);
263
+ });
264
+ it("ignores rules with unknown types (no evaluator)", ()=>{
265
+ const form = createForm({
266
+ fields: (fields)=>({
267
+ weird: fields.text().label("Weird").rules([
268
+ {
269
+ type: "bogusType",
270
+ target: "x",
271
+ operator: "noop",
272
+ value: null,
273
+ action: "hide"
274
+ }
275
+ ])
276
+ })
277
+ });
278
+ expect(form.field("weird").visible).toBe(true);
279
+ expect(form.field("weird").vm.disabled).toBe(false);
280
+ });
281
+ });
282
+ describe("ConditionRuleEvaluator", ()=>{
283
+ it("canEvaluate returns true only for condition rules", ()=>{
284
+ const e = new ConditionRuleEvaluator();
285
+ expect(e.canEvaluate({
286
+ type: "condition",
287
+ target: "x",
288
+ operator: "eq",
289
+ value: "y",
290
+ action: "hide"
291
+ })).toBe(true);
292
+ expect(e.canEvaluate({
293
+ type: "accessControl",
294
+ target: "identity",
295
+ operator: "matches",
296
+ value: "team:x",
297
+ action: "hide"
298
+ })).toBe(false);
299
+ });
300
+ it("isEmpty matches null, undefined, empty string, empty array", ()=>{
301
+ const e = new ConditionRuleEvaluator();
302
+ const mkForm = (value)=>({
303
+ field: ()=>({
304
+ getValue: ()=>value
305
+ })
306
+ });
307
+ const rule = {
308
+ type: "condition",
309
+ target: "x",
310
+ operator: "isEmpty",
311
+ value: null,
312
+ action: "hide"
313
+ };
314
+ expect(e.evaluate(rule, mkForm(null))).toBe(true);
315
+ expect(e.evaluate(rule, mkForm(void 0))).toBe(true);
316
+ expect(e.evaluate(rule, mkForm(""))).toBe(true);
317
+ expect(e.evaluate(rule, mkForm([]))).toBe(true);
318
+ expect(e.evaluate(rule, mkForm("hello"))).toBe(false);
319
+ expect(e.evaluate(rule, mkForm(0))).toBe(false);
320
+ });
321
+ });
322
+ });
323
+
324
+ //# sourceMappingURL=Rules.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/formModel/Rules.test.js","sources":["../../../src/features/formModel/Rules.test.ts"],"sourcesContent":["import { describe, it, expect } from \"vitest\";\nimport { Container } from \"@webiny/di\";\nimport { FormModelFeature } from \"./feature.js\";\nimport { ConditionRuleEvaluator } from \"./ConditionRuleEvaluator.js\";\nimport {\n FormModelFactory,\n type IRule,\n type IRuleEvaluator,\n type ITabsNodeVM,\n type IFormModel,\n type IFormModelConfig\n} from \"./abstractions.js\";\n\nfunction createForm(config: {\n extraEvaluators?: IRuleEvaluator[];\n fields: IFormModelConfig[\"fields\"];\n layout?: IFormModelConfig[\"layout\"];\n}) {\n const container = new Container();\n FormModelFeature.register(container);\n return container.resolve(FormModelFactory).create({\n fields: config.fields,\n layout: config.layout,\n ruleEvaluators: config.extraEvaluators\n });\n}\n\ndescribe(\"Rules system\", () => {\n describe(\"condition rule on a field\", () => {\n it(\"hides a field when its rule matches\", () => {\n const form = createForm({\n fields: fields => ({\n title: fields.text().label(\"Title\"),\n subtitle: fields\n .text()\n .label(\"Subtitle\")\n .rules([\n {\n type: \"condition\",\n target: \"title\",\n operator: \"isEmpty\",\n value: null,\n action: \"hide\"\n }\n ])\n })\n });\n\n expect(form.field(\"subtitle\").visible).toBe(false);\n expect(form.field(\"subtitle\").vm.visible).toBe(false);\n\n form.field(\"title\").setValue(\"Hello\");\n expect(form.field(\"subtitle\").visible).toBe(true);\n expect(form.field(\"subtitle\").vm.visible).toBe(true);\n });\n\n it(\"disables a field when its rule matches\", () => {\n const form = createForm({\n fields: fields => ({\n country: fields.text().label(\"Country\"),\n city: fields\n .text()\n .label(\"City\")\n .rules([\n {\n type: \"condition\",\n target: \"country\",\n operator: \"isEmpty\",\n value: null,\n action: \"disable\"\n }\n ])\n })\n });\n\n expect(form.field(\"city\").vm.disabled).toBe(true);\n\n form.field(\"country\").setValue(\"US\");\n expect(form.field(\"city\").vm.disabled).toBe(false);\n });\n\n it(\"supports eq operator\", () => {\n const form = createForm({\n fields: fields => ({\n plan: fields.text().label(\"Plan\"),\n enterpriseOnly: fields\n .text()\n .label(\"Enterprise\")\n .rules([\n {\n type: \"condition\",\n target: \"plan\",\n operator: \"eq\",\n value: \"enterprise\",\n action: \"hide\"\n }\n ])\n })\n });\n\n form.field(\"plan\").setValue(\"starter\");\n expect(form.field(\"enterpriseOnly\").visible).toBe(true);\n\n form.field(\"plan\").setValue(\"enterprise\");\n expect(form.field(\"enterpriseOnly\").visible).toBe(false);\n });\n\n it(\"excludes hidden fields from validation\", async () => {\n const form = createForm({\n fields: fields => ({\n toggle: fields.text().label(\"Toggle\"),\n required: fields\n .text()\n .label(\"Required\")\n .required(\"Must fill\")\n .rules([\n {\n type: \"condition\",\n target: \"toggle\",\n operator: \"isEmpty\",\n value: null,\n action: \"hide\"\n }\n ])\n })\n });\n\n // toggle is empty → \"required\" is hidden → should not count as invalid\n const valid = await form.validate();\n expect(valid).toBe(true);\n\n // Fill toggle → \"required\" becomes visible → fails without a value\n form.field(\"toggle\").setValue(\"anything\");\n const valid2 = await form.validate();\n expect(valid2).toBe(false);\n expect(form.errors.some(e => e.path === \"required\")).toBe(true);\n });\n });\n\n describe(\"rules on layout elements\", () => {\n it(\"cascades disable from tabs container to contained fields\", () => {\n const form = createForm({\n fields: fields => ({\n trigger: fields.text().label(\"Trigger\"),\n general: fields.text().label(\"General\"),\n seo: fields.text().label(\"SEO\")\n }),\n layout: layout => [\n layout.row(\"trigger\"),\n layout\n .tabs(\"settings\")\n .rules([\n {\n type: \"condition\",\n target: \"trigger\",\n operator: \"isEmpty\",\n value: null,\n action: \"disable\"\n }\n ])\n .tab(\"general\", tab => {\n tab.label(\"General\").layout(layout => [layout.row(\"general\")]);\n })\n .tab(\"seo\", tab => {\n tab.label(\"SEO\").layout(layout => [layout.row(\"seo\")]);\n })\n ]\n });\n\n expect(form.field(\"general\").vm.disabled).toBe(true);\n expect(form.field(\"seo\").vm.disabled).toBe(true);\n\n const tabs = form.vm.layout[1] as ITabsNodeVM;\n expect(tabs.disabled).toBe(true);\n expect(tabs.tabs[0].disabled).toBe(true);\n\n form.field(\"trigger\").setValue(\"go\");\n expect(form.field(\"general\").vm.disabled).toBe(false);\n expect(form.field(\"seo\").vm.disabled).toBe(false);\n });\n\n it(\"cascades disable from a single tab to its fields only\", () => {\n const form = createForm({\n fields: fields => ({\n title: fields.text().label(\"Title\"),\n general: fields.text().label(\"General\"),\n seo: fields.text().label(\"SEO\")\n }),\n layout: layout => [\n layout\n .tabs(\"settings\")\n .tab(\"general\", tab => {\n tab.label(\"General\").layout(layout => [layout.row(\"general\")]);\n })\n .tab(\"seo\", tab => {\n tab.label(\"SEO\")\n .rules([\n {\n type: \"condition\",\n target: \"title\",\n operator: \"isEmpty\",\n value: null,\n action: \"disable\"\n }\n ])\n .layout(layout => [layout.row(\"seo\")]);\n })\n ]\n });\n\n expect(form.field(\"general\").vm.disabled).toBe(false);\n expect(form.field(\"seo\").vm.disabled).toBe(true);\n\n const tabs = form.vm.layout[0] as ITabsNodeVM;\n expect(tabs.tabs[0].disabled).toBe(false);\n expect(tabs.tabs[1].disabled).toBe(true);\n });\n\n it(\"hides a tab and its fields when the tab has a hide rule\", async () => {\n const form = createForm({\n fields: fields => ({\n trigger: fields.text().label(\"Trigger\"),\n hiddenField: fields.text().label(\"Hidden\").required(\"needed\")\n }),\n layout: layout => [\n layout.row(\"trigger\"),\n layout.tabs(\"settings\").tab(\"secret\", tab => {\n tab.label(\"Secret\")\n .rules([\n {\n type: \"condition\",\n target: \"trigger\",\n operator: \"isEmpty\",\n value: null,\n action: \"hide\"\n }\n ])\n .layout(layout => [layout.row(\"hiddenField\")]);\n })\n ]\n });\n\n // Tab is hidden → field inside is hidden → not validated\n const valid = await form.validate();\n expect(valid).toBe(true);\n\n // Form VM should not expose this tabs node (all tabs hidden = no tabs node)\n const tabsVm = form.vm.layout.find(n => n.type === \"tabs\");\n expect(tabsVm).toBeUndefined();\n });\n\n it(\"hides the entire tabs container when its rule matches\", () => {\n const form = createForm({\n fields: fields => ({\n trigger: fields.text().label(\"Trigger\"),\n inner: fields.text().label(\"Inner\")\n }),\n layout: layout => [\n layout.row(\"trigger\"),\n layout\n .tabs(\"settings\")\n .rules([\n {\n type: \"condition\",\n target: \"trigger\",\n operator: \"isEmpty\",\n value: null,\n action: \"hide\"\n }\n ])\n .tab(\"tab1\", tab => {\n tab.label(\"Tab 1\").layout(layout => [layout.row(\"inner\")]);\n })\n ]\n });\n\n expect(form.vm.layout.find(n => n.type === \"tabs\")).toBeUndefined();\n expect(form.field(\"inner\").visible).toBe(false);\n\n form.field(\"trigger\").setValue(\"yes\");\n expect(form.field(\"inner\").visible).toBe(true);\n expect(form.vm.layout.find(n => n.type === \"tabs\")).toBeDefined();\n });\n });\n\n describe(\"custom rule evaluators\", () => {\n it(\"uses externally registered evaluators for custom rule types\", () => {\n class AccessControlEvaluator implements IRuleEvaluator {\n constructor(private userTeams: string[]) {}\n canEvaluate(rule: IRule) {\n return rule.type === \"accessControl\";\n }\n evaluate(rule: IRule): boolean {\n if (!rule.value) {\n return false;\n }\n const [scope, id] = rule.value.split(\":\");\n return scope === \"team\" && this.userTeams.includes(id);\n }\n }\n\n const form = createForm({\n extraEvaluators: [new AccessControlEvaluator([\"admins\"])],\n fields: fields => ({\n adminField: fields\n .text()\n .label(\"Admin Only\")\n .rules([\n {\n type: \"accessControl\",\n target: \"identity\",\n operator: \"matches\",\n value: \"team:admins\",\n action: \"disable\"\n }\n ])\n })\n });\n\n expect(form.field(\"adminField\").vm.disabled).toBe(true);\n });\n\n it(\"ignores rules with unknown types (no evaluator)\", () => {\n const form = createForm({\n fields: fields => ({\n weird: fields\n .text()\n .label(\"Weird\")\n .rules([\n {\n type: \"bogusType\",\n target: \"x\",\n operator: \"noop\",\n value: null,\n action: \"hide\"\n }\n ])\n })\n });\n\n // Unknown rule types are ignored — field remains visible\n expect(form.field(\"weird\").visible).toBe(true);\n expect(form.field(\"weird\").vm.disabled).toBe(false);\n });\n });\n\n describe(\"ConditionRuleEvaluator\", () => {\n it(\"canEvaluate returns true only for condition rules\", () => {\n const e = new ConditionRuleEvaluator();\n expect(\n e.canEvaluate({\n type: \"condition\",\n target: \"x\",\n operator: \"eq\",\n value: \"y\",\n action: \"hide\"\n })\n ).toBe(true);\n expect(\n e.canEvaluate({\n type: \"accessControl\",\n target: \"identity\",\n operator: \"matches\",\n value: \"team:x\",\n action: \"hide\"\n })\n ).toBe(false);\n });\n\n it(\"isEmpty matches null, undefined, empty string, empty array\", () => {\n const e = new ConditionRuleEvaluator();\n const mkForm = (value: unknown): IFormModel =>\n ({\n field: () => ({ getValue: () => value })\n }) as unknown as IFormModel;\n\n const rule: IRule = {\n type: \"condition\",\n target: \"x\",\n operator: \"isEmpty\",\n value: null,\n action: \"hide\"\n };\n\n expect(e.evaluate(rule, mkForm(null))).toBe(true);\n expect(e.evaluate(rule, mkForm(undefined))).toBe(true);\n expect(e.evaluate(rule, mkForm(\"\"))).toBe(true);\n expect(e.evaluate(rule, mkForm([]))).toBe(true);\n expect(e.evaluate(rule, mkForm(\"hello\"))).toBe(false);\n expect(e.evaluate(rule, mkForm(0))).toBe(false);\n });\n });\n});\n"],"names":["createForm","config","container","Container","FormModelFeature","FormModelFactory","describe","it","form","fields","expect","valid","valid2","e","layout","tab","tabs","tabsVm","n","AccessControlEvaluator","userTeams","rule","scope","id","ConditionRuleEvaluator","mkForm","value","undefined"],"mappings":";;;;;AAaA,SAASA,WAAWC,MAInB;IACG,MAAMC,YAAY,IAAIC;IACtBC,iBAAiB,QAAQ,CAACF;IAC1B,OAAOA,UAAU,OAAO,CAACG,kBAAkB,MAAM,CAAC;QAC9C,QAAQJ,OAAO,MAAM;QACrB,QAAQA,OAAO,MAAM;QACrB,gBAAgBA,OAAO,eAAe;IAC1C;AACJ;AAEAK,SAAS,gBAAgB;IACrBA,SAAS,6BAA6B;QAClCC,GAAG,uCAAuC;YACtC,MAAMC,OAAOR,WAAW;gBACpB,QAAQS,CAAAA,SAAW;wBACf,OAAOA,OAAO,IAAI,GAAG,KAAK,CAAC;wBAC3B,UAAUA,OACL,IAAI,GACJ,KAAK,CAAC,YACN,KAAK,CAAC;4BACH;gCACI,MAAM;gCACN,QAAQ;gCACR,UAAU;gCACV,OAAO;gCACP,QAAQ;4BACZ;yBACH;oBACT;YACJ;YAEAC,OAAOF,KAAK,KAAK,CAAC,YAAY,OAAO,EAAE,IAAI,CAAC;YAC5CE,OAAOF,KAAK,KAAK,CAAC,YAAY,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC;YAE/CA,KAAK,KAAK,CAAC,SAAS,QAAQ,CAAC;YAC7BE,OAAOF,KAAK,KAAK,CAAC,YAAY,OAAO,EAAE,IAAI,CAAC;YAC5CE,OAAOF,KAAK,KAAK,CAAC,YAAY,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC;QACnD;QAEAD,GAAG,0CAA0C;YACzC,MAAMC,OAAOR,WAAW;gBACpB,QAAQS,CAAAA,SAAW;wBACf,SAASA,OAAO,IAAI,GAAG,KAAK,CAAC;wBAC7B,MAAMA,OACD,IAAI,GACJ,KAAK,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