@tachybase/client 0.23.8-alpha.30 → 0.23.8-alpha.31

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 (1339) hide show
  1. package/es/modules/blocks/data-blocks/form/index.d.ts +2 -2
  2. package/es/schema-component/antd/block-item/BlockToolbar.d.ts +48 -3
  3. package/es/schema-settings/EditFormulaTitleField.d.ts +2 -2
  4. package/es/schema-settings/SchemaSettingComponent.d.ts +1 -1
  5. package/lib/{built-in/assistant/ai-chat/index_module.css → index.css} +64 -0
  6. package/lib/index.mjs +94745 -48
  7. package/package.json +3 -5
  8. package/lib/api-client/APIClient.mjs +0 -176
  9. package/lib/api-client/APIClientProvider.mjs +0 -23
  10. package/lib/api-client/__tests__/APIClient.test.mjs +0 -64
  11. package/lib/api-client/context.mjs +0 -14
  12. package/lib/api-client/demos/demo1.mjs +0 -47
  13. package/lib/api-client/demos/demo2.mjs +0 -46
  14. package/lib/api-client/demos/demo3.mjs +0 -97
  15. package/lib/api-client/hooks/assign.mjs +0 -106
  16. package/lib/api-client/hooks/index.mjs +0 -9
  17. package/lib/api-client/hooks/useAPIClient.mjs +0 -15
  18. package/lib/api-client/hooks/useRequest.mjs +0 -70
  19. package/lib/api-client/hooks/useResource.mjs +0 -12
  20. package/lib/api-client/index.mjs +0 -11
  21. package/lib/application/AppSchemaComponentProvider.mjs +0 -48
  22. package/lib/application/Application.mjs +0 -431
  23. package/lib/application/AttachmentPreviewManager.mjs +0 -37
  24. package/lib/application/NoticesManager.mjs +0 -132
  25. package/lib/application/Plugin.mjs +0 -66
  26. package/lib/application/PluginContextMenu.mjs +0 -35
  27. package/lib/application/PluginManager.mjs +0 -113
  28. package/lib/application/RouterManager.mjs +0 -148
  29. package/lib/application/SystemSettingsManager.mjs +0 -133
  30. package/lib/application/UserSettingsManager.mjs +0 -135
  31. package/lib/application/WebSocketClient.mjs +0 -202
  32. package/lib/application/__tests__/Application.test.mjs +0 -518
  33. package/lib/application/__tests__/Plugin.test.mjs +0 -213
  34. package/lib/application/__tests__/PluginSettingsManager.test.mjs +0 -168
  35. package/lib/application/__tests__/RouterManager.test.mjs +0 -345
  36. package/lib/application/__tests__/SchemaInitializer.test.mjs +0 -169
  37. package/lib/application/__tests__/SchemaToolbar.test.mjs +0 -171
  38. package/lib/application/__tests__/hoc/withDynamicSchemaProps.test.mjs +0 -207
  39. package/lib/application/__tests__/hooks.test.mjs +0 -112
  40. package/lib/application/__tests__/utils/remotePlugins.test.mjs +0 -331
  41. package/lib/application/__tests__/utils.test.mjs +0 -117
  42. package/lib/application/components/AppComponent.mjs +0 -78
  43. package/lib/application/components/BlankComponent.mjs +0 -18
  44. package/lib/application/components/MainComponent.mjs +0 -29
  45. package/lib/application/components/RouterContextCleaner.mjs +0 -30
  46. package/lib/application/components/defaultComponents.mjs +0 -37
  47. package/lib/application/components/index.mjs +0 -11
  48. package/lib/application/context.mjs +0 -10
  49. package/lib/application/demos/demo1.mjs +0 -136
  50. package/lib/application/demos/demo2.mjs +0 -149
  51. package/lib/application/demos/demo3.mjs +0 -17
  52. package/lib/application/hoc/index.mjs +0 -5
  53. package/lib/application/hoc/withDynamicSchemaProps.mjs +0 -165
  54. package/lib/application/hooks/index.mjs +0 -9
  55. package/lib/application/hooks/useApp.mjs +0 -15
  56. package/lib/application/hooks/usePlugin.mjs +0 -12
  57. package/lib/application/hooks/useRouter.mjs +0 -12
  58. package/lib/application/index.mjs +0 -37
  59. package/lib/application/schema-initializer/SchemaInitializer.mjs +0 -103
  60. package/lib/application/schema-initializer/SchemaInitializerManager.mjs +0 -86
  61. package/lib/application/schema-initializer/components/SchemaInitializerActionModal.mjs +0 -134
  62. package/lib/application/schema-initializer/components/SchemaInitializerButton.mjs +0 -60
  63. package/lib/application/schema-initializer/components/SchemaInitializerChildren.mjs +0 -91
  64. package/lib/application/schema-initializer/components/SchemaInitializerDivider.mjs +0 -25
  65. package/lib/application/schema-initializer/components/SchemaInitializerItem.mjs +0 -124
  66. package/lib/application/schema-initializer/components/SchemaInitializerItemGroup.mjs +0 -63
  67. package/lib/application/schema-initializer/components/SchemaInitializerItems.mjs +0 -23
  68. package/lib/application/schema-initializer/components/SchemaInitializerSelect.mjs +0 -86
  69. package/lib/application/schema-initializer/components/SchemaInitializerSubMenu.mjs +0 -147
  70. package/lib/application/schema-initializer/components/SchemaInitializerSwitch.mjs +0 -59
  71. package/lib/application/schema-initializer/components/index.mjs +0 -23
  72. package/lib/application/schema-initializer/components/style.mjs +0 -47
  73. package/lib/application/schema-initializer/context/index.mjs +0 -18
  74. package/lib/application/schema-initializer/hoc/index.mjs +0 -159
  75. package/lib/application/schema-initializer/hooks/index.mjs +0 -193
  76. package/lib/application/schema-initializer/hooks/useAriaAttributeOfMenuItem.mjs +0 -32
  77. package/lib/application/schema-initializer/index.mjs +0 -17
  78. package/lib/application/schema-initializer/types.mjs +0 -4
  79. package/lib/application/schema-settings/SchemaSettings.mjs +0 -94
  80. package/lib/application/schema-settings/SchemaSettingsDefaults.mjs +0 -241
  81. package/lib/application/schema-settings/SchemaSettingsManager.mjs +0 -86
  82. package/lib/application/schema-settings/components/SchemaSettingsChildren.mjs +0 -123
  83. package/lib/application/schema-settings/components/SchemaSettingsIcon.mjs +0 -34
  84. package/lib/application/schema-settings/components/SchemaSettingsWrapper.mjs +0 -59
  85. package/lib/application/schema-settings/components/index.mjs +0 -7
  86. package/lib/application/schema-settings/context/index.mjs +0 -13
  87. package/lib/application/schema-settings/hooks/index.mjs +0 -63
  88. package/lib/application/schema-settings/index.mjs +0 -15
  89. package/lib/application/schema-settings/types.mjs +0 -4
  90. package/lib/application/schema-toolbar/context/index.mjs +0 -24
  91. package/lib/application/schema-toolbar/hooks/index.mjs +0 -46
  92. package/lib/application/schema-toolbar/index.mjs +0 -7
  93. package/lib/application/utils/globalDeps.mjs +0 -162
  94. package/lib/application/utils/index.mjs +0 -59
  95. package/lib/application/utils/remotePlugins.mjs +0 -129
  96. package/lib/async-data-provider/index.mjs +0 -37
  97. package/lib/block-provider/BlockProvider.mjs +0 -401
  98. package/lib/block-provider/DetailsBlockProvider.mjs +0 -145
  99. package/lib/block-provider/FilterFormBlockProvider.mjs +0 -42
  100. package/lib/block-provider/FormBlockProvider.mjs +0 -222
  101. package/lib/block-provider/FormFieldProvider.mjs +0 -124
  102. package/lib/block-provider/MobileProvider.mjs +0 -24
  103. package/lib/block-provider/PageLayout.mjs +0 -25
  104. package/lib/block-provider/TableBlockProvider.mjs +0 -155
  105. package/lib/block-provider/TableFieldProvider.mjs +0 -197
  106. package/lib/block-provider/TableSelectorProvider.mjs +0 -372
  107. package/lib/block-provider/TreeBlockProvider.mjs +0 -158
  108. package/lib/block-provider/hooks/index.mjs +0 -1465
  109. package/lib/block-provider/hooks/useDataBlockSourceId.mjs +0 -33
  110. package/lib/block-provider/hooks/useFormActiveFields.mjs +0 -56
  111. package/lib/block-provider/hooks/useIsMobile.mjs +0 -16
  112. package/lib/block-provider/hooks/useParsedFilter.mjs +0 -85
  113. package/lib/block-provider/index.mjs +0 -25
  114. package/lib/built-in/acl/ACLPlugin.mjs +0 -22
  115. package/lib/built-in/acl/ACLProvider.mjs +0 -396
  116. package/lib/built-in/acl/ACLShortcut.mjs +0 -46
  117. package/lib/built-in/acl/Configuration/ConfigureCenter.mjs +0 -182
  118. package/lib/built-in/acl/Configuration/MenuConfigure.mjs +0 -188
  119. package/lib/built-in/acl/Configuration/MenuItemsProvider.mjs +0 -66
  120. package/lib/built-in/acl/Configuration/PermisionProvider.mjs +0 -95
  121. package/lib/built-in/acl/Configuration/RoleConfigure.mjs +0 -173
  122. package/lib/built-in/acl/Configuration/RoleTable.mjs +0 -73
  123. package/lib/built-in/acl/Configuration/RolesResourcesActions.mjs +0 -265
  124. package/lib/built-in/acl/Configuration/ScopeSelect.mjs +0 -61
  125. package/lib/built-in/acl/Configuration/StrategyActions.mjs +0 -143
  126. package/lib/built-in/acl/Configuration/index.mjs +0 -41
  127. package/lib/built-in/acl/Configuration/schemas/roles.mjs +0 -427
  128. package/lib/built-in/acl/Configuration/schemas/scopes.mjs +0 -384
  129. package/lib/built-in/acl/Configuration/schemas/useRoleResourceValues.mjs +0 -46
  130. package/lib/built-in/acl/Configuration/schemas/useSaveRoleResourceAction.mjs +0 -32
  131. package/lib/built-in/acl/index.mjs +0 -11
  132. package/lib/built-in/acl/style.mjs +0 -31
  133. package/lib/built-in/admin-layout/AdminContent.mjs +0 -34
  134. package/lib/built-in/admin-layout/AdminTabs.mjs +0 -21
  135. package/lib/built-in/admin-layout/NoticeArea.mjs +0 -37
  136. package/lib/built-in/admin-layout/components/AddNewButton.mjs +0 -89
  137. package/lib/built-in/admin-layout/components/WelcomeCard.mjs +0 -114
  138. package/lib/built-in/admin-layout/index.mjs +0 -299
  139. package/lib/built-in/admin-layout/style.mjs +0 -150
  140. package/lib/built-in/assistant/Assistant.provider.mjs +0 -114
  141. package/lib/built-in/assistant/ai-chat/index.mjs +0 -359
  142. package/lib/built-in/assistant/ai-chat/index.module.mjs +0 -9
  143. package/lib/built-in/assistant/calculator/AutoScalingText.mjs +0 -45
  144. package/lib/built-in/assistant/calculator/Calculator.mjs +0 -259
  145. package/lib/built-in/assistant/calculator/CalculatorDisplay.mjs +0 -34
  146. package/lib/built-in/assistant/calculator/CalculatorKey.mjs +0 -20
  147. package/lib/built-in/assistant/calculator/CalculatorProvider.mjs +0 -52
  148. package/lib/built-in/assistant/calculator/Draggable.mjs +0 -66
  149. package/lib/built-in/assistant/calculator/style.mjs +0 -33
  150. package/lib/built-in/assistant/index.mjs +0 -27
  151. package/lib/built-in/assistant/search-and-jump/index.mjs +0 -75
  152. package/lib/built-in/attachment-preview/index.mjs +0 -24
  153. package/lib/built-in/attachment-preview/interface.mjs +0 -4
  154. package/lib/built-in/attachment-preview/previewers/file-default.mjs +0 -97
  155. package/lib/built-in/attachment-preview/previewers/file-pdf.mjs +0 -142
  156. package/lib/built-in/attachment-preview/previewers/file-pdf.style.mjs +0 -53
  157. package/lib/built-in/attachment-preview/previewers/file-sheet.mjs +0 -132
  158. package/lib/built-in/attachment-preview/previewers/file-sheet.style.mjs +0 -53
  159. package/lib/built-in/attachment-preview/previewers/image-jpeg.mjs +0 -43
  160. package/lib/built-in/attachment-preview/previewers/image-png.mjs +0 -43
  161. package/lib/built-in/attachment-preview/previewers/image-svg.mjs +0 -29
  162. package/lib/built-in/attachment-preview/previewers/index.mjs +0 -15
  163. package/lib/built-in/block-schema-component/index.mjs +0 -186
  164. package/lib/built-in/built-in-collections/index.mjs +0 -74
  165. package/lib/built-in/context-menu/ContextMenu.provider.mjs +0 -89
  166. package/lib/built-in/context-menu/ContextMenuItemsProps.mjs +0 -176
  167. package/lib/built-in/context-menu/index.mjs +0 -37
  168. package/lib/built-in/context-menu/useContextMenu.mjs +0 -12
  169. package/lib/built-in/document-title/index.mjs +0 -75
  170. package/lib/built-in/dynamic-page/DynamicPage.mjs +0 -67
  171. package/lib/built-in/dynamic-page/index.mjs +0 -79
  172. package/lib/built-in/dynamic-page/style.mjs +0 -60
  173. package/lib/built-in/dynamic-page/utils.mjs +0 -84
  174. package/lib/built-in/index.mjs +0 -595
  175. package/lib/built-in/locale/LocalePlugin.mjs +0 -96
  176. package/lib/built-in/locale/loadConstrueLocale.mjs +0 -194
  177. package/lib/built-in/page-style/CustomAdminHeader.mjs +0 -24
  178. package/lib/built-in/page-style/PageStyle.provider.mjs +0 -47
  179. package/lib/built-in/page-style/TabContent.mjs +0 -97
  180. package/lib/built-in/page-style/TabHeader.mjs +0 -114
  181. package/lib/built-in/page-style/index.mjs +0 -29
  182. package/lib/built-in/page-style/usePageStyle.mjs +0 -15
  183. package/lib/built-in/page-style/useTabSettings.mjs +0 -97
  184. package/lib/built-in/pinned-list/PinnedPluginListProvider.mjs +0 -87
  185. package/lib/built-in/pinned-list/PluginPinnedList.mjs +0 -17
  186. package/lib/built-in/pinned-list/context.mjs +0 -12
  187. package/lib/built-in/pinned-list/index.mjs +0 -7
  188. package/lib/built-in/pm/PluginCard.mjs +0 -306
  189. package/lib/built-in/pm/PluginDetail.mjs +0 -350
  190. package/lib/built-in/pm/PluginDocument.mjs +0 -99
  191. package/lib/built-in/pm/PluginForm/form/PluginNpmForm.mjs +0 -189
  192. package/lib/built-in/pm/PluginForm/form/PluginUploadForm.mjs +0 -142
  193. package/lib/built-in/pm/PluginForm/form/PluginUrlForm.mjs +0 -133
  194. package/lib/built-in/pm/PluginForm/modal/PluginAddModal.mjs +0 -88
  195. package/lib/built-in/pm/PluginForm/modal/PluginUpgradeModal.mjs +0 -92
  196. package/lib/built-in/pm/PluginManager.mjs +0 -341
  197. package/lib/built-in/pm/index.mjs +0 -88
  198. package/lib/built-in/pm/style.mjs +0 -86
  199. package/lib/built-in/pm/types.mjs +0 -4
  200. package/lib/built-in/quick-access/Action.mjs +0 -125
  201. package/lib/built-in/quick-access/Block.mjs +0 -170
  202. package/lib/built-in/quick-access/CustomRequestActionSchemaInitializerItem.mjs +0 -115
  203. package/lib/built-in/quick-access/LinkActionSchemaInitializerItem.mjs +0 -108
  204. package/lib/built-in/quick-access/ModalActionSchemaInitializerItem.mjs +0 -118
  205. package/lib/built-in/quick-access/PopupActionSchemaInitializerItem.mjs +0 -143
  206. package/lib/built-in/quick-access/SchemaSettingsBlockTitleItem.mjs +0 -66
  207. package/lib/built-in/quick-access/blockInitializerItem.mjs +0 -31
  208. package/lib/built-in/quick-access/blockSchema.mjs +0 -20
  209. package/lib/built-in/quick-access/blockSettings.mjs +0 -92
  210. package/lib/built-in/quick-access/configureActions.mjs +0 -25
  211. package/lib/built-in/quick-access/index.mjs +0 -66
  212. package/lib/built-in/scroll-assistant/ScrollAssistant.provider.mjs +0 -62
  213. package/lib/built-in/scroll-assistant/ScrollAssistantStatus.provider.mjs +0 -31
  214. package/lib/built-in/scroll-assistant/index.mjs +0 -41
  215. package/lib/built-in/scroll-assistant/useJoystick.mjs +0 -216
  216. package/lib/built-in/setting-layout/AdminSettings.mjs +0 -174
  217. package/lib/built-in/setting-layout/SettingLayout.mjs +0 -171
  218. package/lib/built-in/setting-layout/SettingsCenterDropdown.mjs +0 -104
  219. package/lib/built-in/system-settings/SystemSettingsProvider.mjs +0 -33
  220. package/lib/built-in/system-settings/SystemSettingsShortcut.mjs +0 -189
  221. package/lib/built-in/system-settings/index.mjs +0 -23
  222. package/lib/built-in/system-version/SystemVersion.provider.mjs +0 -52
  223. package/lib/built-in/system-version/index.mjs +0 -17
  224. package/lib/built-in/user-settings/UserSettingsLayout.mjs +0 -221
  225. package/lib/built-in/user-settings/index.mjs +0 -38
  226. package/lib/built-in/user-settings/style.mjs +0 -86
  227. package/lib/collection-manager/CollectionHistoryProvider.mjs +0 -81
  228. package/lib/collection-manager/CollectionManagerProvider.mjs +0 -92
  229. package/lib/collection-manager/CollectionManagerSchemaComponentProvider.mjs +0 -46
  230. package/lib/collection-manager/CollectionProvider_deprecated.mjs +0 -40
  231. package/lib/collection-manager/Configuration/AddCollectionAction.mjs +0 -292
  232. package/lib/collection-manager/Configuration/AddFieldAction.mjs +0 -457
  233. package/lib/collection-manager/Configuration/AddSubFieldAction.mjs +0 -211
  234. package/lib/collection-manager/Configuration/DeleteCollectionAction.mjs +0 -268
  235. package/lib/collection-manager/Configuration/EditCollectionAction.mjs +0 -221
  236. package/lib/collection-manager/Configuration/EditFieldAction.mjs +0 -315
  237. package/lib/collection-manager/Configuration/EditSubFieldAction.mjs +0 -163
  238. package/lib/collection-manager/Configuration/ImportCollectionMetaAction.mjs +0 -210
  239. package/lib/collection-manager/Configuration/OverridingCollectionField.mjs +0 -274
  240. package/lib/collection-manager/Configuration/SyncFieldsAction.mjs +0 -257
  241. package/lib/collection-manager/Configuration/SyncSQLFieldsAction.mjs +0 -214
  242. package/lib/collection-manager/Configuration/ViewInheritedField.mjs +0 -187
  243. package/lib/collection-manager/Configuration/components/CollectionCategory.mjs +0 -38
  244. package/lib/collection-manager/Configuration/components/CollectionFieldInterfaceTag.mjs +0 -40
  245. package/lib/collection-manager/Configuration/components/CollectionTemplateTag.mjs +0 -39
  246. package/lib/collection-manager/Configuration/components/FieldSummary.mjs +0 -39
  247. package/lib/collection-manager/Configuration/components/Summary.mjs +0 -84
  248. package/lib/collection-manager/Configuration/components/TemplateSummary.mjs +0 -39
  249. package/lib/collection-manager/Configuration/components/index.mjs +0 -359
  250. package/lib/collection-manager/Configuration/index.mjs +0 -46
  251. package/lib/collection-manager/Configuration/interfaces.mjs +0 -48
  252. package/lib/collection-manager/ResourceActionProvider.mjs +0 -168
  253. package/lib/collection-manager/action-hooks.mjs +0 -658
  254. package/lib/collection-manager/collectionPlugin.mjs +0 -151
  255. package/lib/collection-manager/context.mjs +0 -13
  256. package/lib/collection-manager/demos/demo2.mjs +0 -143
  257. package/lib/collection-manager/demos/demo3.mjs +0 -96
  258. package/lib/collection-manager/demos/demo4.mjs +0 -183
  259. package/lib/collection-manager/demos/demo5.mjs +0 -187
  260. package/lib/collection-manager/hooks/index.mjs +0 -11
  261. package/lib/collection-manager/hooks/useCollectionDataSource.mjs +0 -29
  262. package/lib/collection-manager/hooks/useCollectionField_deprecated.mjs +0 -43
  263. package/lib/collection-manager/hooks/useCollectionManager_deprecated.mjs +0 -272
  264. package/lib/collection-manager/hooks/useCollection_deprecated.mjs +0 -70
  265. package/lib/collection-manager/hooks/useDialect.mjs +0 -17
  266. package/lib/collection-manager/index.mjs +0 -63
  267. package/lib/collection-manager/interfaces/__tests__/json.mjs +0 -73
  268. package/lib/collection-manager/interfaces/checkbox.mjs +0 -61
  269. package/lib/collection-manager/interfaces/checkboxGroup.mjs +0 -55
  270. package/lib/collection-manager/interfaces/chinaRegion.mjs +0 -127
  271. package/lib/collection-manager/interfaces/collection.mjs +0 -57
  272. package/lib/collection-manager/interfaces/color.mjs +0 -43
  273. package/lib/collection-manager/interfaces/components/index.mjs +0 -73
  274. package/lib/collection-manager/interfaces/createdAt.mjs +0 -47
  275. package/lib/collection-manager/interfaces/createdBy.mjs +0 -70
  276. package/lib/collection-manager/interfaces/datetime.mjs +0 -56
  277. package/lib/collection-manager/interfaces/email.mjs +0 -54
  278. package/lib/collection-manager/interfaces/icon.mjs +0 -40
  279. package/lib/collection-manager/interfaces/id.mjs +0 -66
  280. package/lib/collection-manager/interfaces/index.mjs +0 -81
  281. package/lib/collection-manager/interfaces/input.mjs +0 -200
  282. package/lib/collection-manager/interfaces/integer.mjs +0 -138
  283. package/lib/collection-manager/interfaces/json.mjs +0 -102
  284. package/lib/collection-manager/interfaces/linkTo.mjs +0 -119
  285. package/lib/collection-manager/interfaces/m2m.mjs +0 -253
  286. package/lib/collection-manager/interfaces/m2o.mjs +0 -182
  287. package/lib/collection-manager/interfaces/markdown.mjs +0 -94
  288. package/lib/collection-manager/interfaces/multipleSelect.mjs +0 -62
  289. package/lib/collection-manager/interfaces/nanoid.mjs +0 -72
  290. package/lib/collection-manager/interfaces/number.mjs +0 -146
  291. package/lib/collection-manager/interfaces/o2m.mjs +0 -211
  292. package/lib/collection-manager/interfaces/o2o.mjs +0 -493
  293. package/lib/collection-manager/interfaces/password.mjs +0 -80
  294. package/lib/collection-manager/interfaces/percent.mjs +0 -193
  295. package/lib/collection-manager/interfaces/phone.mjs +0 -46
  296. package/lib/collection-manager/interfaces/properties/index.mjs +0 -506
  297. package/lib/collection-manager/interfaces/properties/operators.mjs +0 -370
  298. package/lib/collection-manager/interfaces/radioGroup.mjs +0 -46
  299. package/lib/collection-manager/interfaces/richText.mjs +0 -92
  300. package/lib/collection-manager/interfaces/select.mjs +0 -60
  301. package/lib/collection-manager/interfaces/sort.mjs +0 -123
  302. package/lib/collection-manager/interfaces/subTable.mjs +0 -218
  303. package/lib/collection-manager/interfaces/tableoid.mjs +0 -60
  304. package/lib/collection-manager/interfaces/textarea.mjs +0 -92
  305. package/lib/collection-manager/interfaces/time.mjs +0 -59
  306. package/lib/collection-manager/interfaces/types.mjs +0 -4
  307. package/lib/collection-manager/interfaces/unixTimestamp.mjs +0 -64
  308. package/lib/collection-manager/interfaces/updatedAt.mjs +0 -47
  309. package/lib/collection-manager/interfaces/updatedBy.mjs +0 -70
  310. package/lib/collection-manager/interfaces/url.mjs +0 -46
  311. package/lib/collection-manager/interfaces/uuid.mjs +0 -60
  312. package/lib/collection-manager/mixins/InheritanceCollectionMixin.mjs +0 -249
  313. package/lib/collection-manager/sub-table.mjs +0 -270
  314. package/lib/collection-manager/templates/components/PresetFields.mjs +0 -271
  315. package/lib/collection-manager/templates/components/PreviewFields.mjs +0 -345
  316. package/lib/collection-manager/templates/components/PreviewTable.mjs +0 -171
  317. package/lib/collection-manager/templates/components/sql-collection/FieldsConfigure.mjs +0 -348
  318. package/lib/collection-manager/templates/components/sql-collection/PreviewTable.mjs +0 -81
  319. package/lib/collection-manager/templates/components/sql-collection/SQLInput.mjs +0 -130
  320. package/lib/collection-manager/templates/components/sql-collection/SQLRequestProvider.mjs +0 -74
  321. package/lib/collection-manager/templates/components/sql-collection/index.mjs +0 -11
  322. package/lib/collection-manager/templates/expression.mjs +0 -78
  323. package/lib/collection-manager/templates/general.mjs +0 -32
  324. package/lib/collection-manager/templates/import.mjs +0 -28
  325. package/lib/collection-manager/templates/index.mjs +0 -15
  326. package/lib/collection-manager/templates/properties/index.mjs +0 -81
  327. package/lib/collection-manager/templates/sql.mjs +0 -105
  328. package/lib/collection-manager/templates/tree.mjs +0 -94
  329. package/lib/collection-manager/templates/types.mjs +0 -4
  330. package/lib/collection-manager/templates/view.mjs +0 -177
  331. package/lib/collection-manager/types.mjs +0 -4
  332. package/lib/collection-manager/utils.mjs +0 -23
  333. package/lib/common/SelectWithTitle.mjs +0 -56
  334. package/lib/common/appInfo/CurrentAppInfoProvider.mjs +0 -33
  335. package/lib/common/appInfo/index.mjs +0 -5
  336. package/lib/common/index.mjs +0 -9
  337. package/lib/common/useFieldComponentName.mjs +0 -39
  338. package/lib/common/useNiceDropdownHeight.mjs +0 -28
  339. package/lib/data-source/__tests__/collection/AssociationProvider.test.mjs +0 -132
  340. package/lib/data-source/__tests__/collection/Collection.test.mjs +0 -308
  341. package/lib/data-source/__tests__/collection/CollectionManager.test.mjs +0 -308
  342. package/lib/data-source/__tests__/collection/CollectionManagerProvider.test.mjs +0 -135
  343. package/lib/data-source/__tests__/collection/CollectionProvider.test.mjs +0 -123
  344. package/lib/data-source/__tests__/collection/ExtendCollectionsProvider.test.mjs +0 -105
  345. package/lib/data-source/__tests__/collection-field/CollectionField.test.mjs +0 -84
  346. package/lib/data-source/__tests__/collection-field/CollectionFieldProvider.test.mjs +0 -70
  347. package/lib/data-source/__tests__/collection-field-interface/CollectionFieldInterfaceManager.test.mjs +0 -171
  348. package/lib/data-source/__tests__/collection-record/CollectionRecord.test.mjs +0 -27
  349. package/lib/data-source/__tests__/collection-record/CollectionRecordProvider.test.mjs +0 -268
  350. package/lib/data-source/__tests__/collection-record/isNewRecord.test.mjs +0 -55
  351. package/lib/data-source/__tests__/collection-template/CollectionTemplateManager.test.mjs +0 -132
  352. package/lib/data-source/__tests__/components/CollectionDeletedPlaceholder.test.mjs +0 -58
  353. package/lib/data-source/__tests__/data-block/DataBlockProvider.test.mjs +0 -151
  354. package/lib/data-source/__tests__/data-block/data-block-demos/association-table-list-and-parent-record.mjs +0 -108
  355. package/lib/data-source/__tests__/data-block/data-block-demos/association-table-list-and-source-id.mjs +0 -160
  356. package/lib/data-source/__tests__/data-block/data-block-demos/collection-form-create.mjs +0 -131
  357. package/lib/data-source/__tests__/data-block/data-block-demos/collection-form-get-and-update.mjs +0 -197
  358. package/lib/data-source/__tests__/data-block/data-block-demos/collection-form-record-and-update.mjs +0 -160
  359. package/lib/data-source/__tests__/data-block/data-block-demos/collection-table-list.mjs +0 -114
  360. package/lib/data-source/__tests__/data-block/data-block-demos/createApp.mjs +0 -66
  361. package/lib/data-source/__tests__/data-source/CollectionDataSourceProvider.test.mjs +0 -56
  362. package/lib/data-source/__tests__/data-source/DataSource.test.mjs +0 -81
  363. package/lib/data-source/__tests__/data-source/DataSourceManager.test.mjs +0 -174
  364. package/lib/data-source/__tests__/data-source/DataSourceManagerProvider.test.mjs +0 -45
  365. package/lib/data-source/__tests__/data-source/DataSourceProvider.test.mjs +0 -100
  366. package/lib/data-source/__tests__/utils.test.mjs +0 -66
  367. package/lib/data-source/collection/AssociationProvider.mjs +0 -68
  368. package/lib/data-source/collection/Collection.mjs +0 -200
  369. package/lib/data-source/collection/CollectionManager.mjs +0 -165
  370. package/lib/data-source/collection/CollectionManagerProvider.mjs +0 -64
  371. package/lib/data-source/collection/CollectionProvider.mjs +0 -53
  372. package/lib/data-source/collection/ExtendCollectionsProvider.mjs +0 -47
  373. package/lib/data-source/collection/index.mjs +0 -15
  374. package/lib/data-source/collection/utils.mjs +0 -62
  375. package/lib/data-source/collection-field/CollectionField.mjs +0 -116
  376. package/lib/data-source/collection-field/CollectionFieldProvider.mjs +0 -65
  377. package/lib/data-source/collection-field/index.mjs +0 -7
  378. package/lib/data-source/collection-field-interface/CollectionFieldInterface.mjs +0 -42
  379. package/lib/data-source/collection-field-interface/CollectionFieldInterfaceManager.mjs +0 -65
  380. package/lib/data-source/collection-field-interface/index.mjs +0 -7
  381. package/lib/data-source/collection-record/CollectionRecord.mjs +0 -34
  382. package/lib/data-source/collection-record/CollectionRecordProvider.mjs +0 -78
  383. package/lib/data-source/collection-record/index.mjs +0 -7
  384. package/lib/data-source/collection-record/isNewRecord.mjs +0 -26
  385. package/lib/data-source/collection-template/CollectionTemplate.mjs +0 -39
  386. package/lib/data-source/collection-template/CollectionTemplateManager.mjs +0 -61
  387. package/lib/data-source/collection-template/index.mjs +0 -7
  388. package/lib/data-source/commonsSettingsItem/fieldComponent.mjs +0 -80
  389. package/lib/data-source/commonsSettingsItem/index.mjs +0 -5
  390. package/lib/data-source/components/CollectionDeletedPlaceholder.mjs +0 -125
  391. package/lib/data-source/components/DataSourceApplicationProvider.mjs +0 -32
  392. package/lib/data-source/components/index.mjs +0 -7
  393. package/lib/data-source/data-block/DataBlockProvider.mjs +0 -115
  394. package/lib/data-source/data-block/DataBlockRequestProvider.mjs +0 -168
  395. package/lib/data-source/data-block/DataBlockResourceProvider.mjs +0 -84
  396. package/lib/data-source/data-block/context/ConfigSetting.provider.mjs +0 -18
  397. package/lib/data-source/data-block/index.mjs +0 -11
  398. package/lib/data-source/data-source/DataSource.mjs +0 -83
  399. package/lib/data-source/data-source/DataSourceManager.mjs +0 -127
  400. package/lib/data-source/data-source/DataSourceManagerProvider.mjs +0 -25
  401. package/lib/data-source/data-source/DataSourceProvider.mjs +0 -87
  402. package/lib/data-source/data-source/index.mjs +0 -11
  403. package/lib/data-source/index.mjs +0 -23
  404. package/lib/data-source/utils.mjs +0 -28
  405. package/lib/env.d.mjs +0 -1
  406. package/lib/filter-provider/FilterProvider.mjs +0 -182
  407. package/lib/filter-provider/__tests__/transformToFilter.mjs +0 -74
  408. package/lib/filter-provider/__tests__/useFilter.mjs +0 -61
  409. package/lib/filter-provider/__tests__/utiles.test.mjs +0 -271
  410. package/lib/filter-provider/index.mjs +0 -7
  411. package/lib/filter-provider/utils.mjs +0 -262
  412. package/lib/flag-provider/FlagProvider.mjs +0 -19
  413. package/lib/flag-provider/__tests__/flag-provider.test.mjs +0 -37
  414. package/lib/flag-provider/hooks/useFlag.mjs +0 -15
  415. package/lib/flag-provider/index.mjs +0 -7
  416. package/lib/global.css +0 -34
  417. package/lib/hooks/index.mjs +0 -7
  418. package/lib/hooks/useAdminSchemaUid.mjs +0 -7
  419. package/lib/hooks/useMenuItem.mjs +0 -101
  420. package/lib/hooks/useViewport.mjs +0 -47
  421. package/lib/i18n/i18n.mjs +0 -37
  422. package/lib/i18n/index.mjs +0 -5
  423. package/lib/icon/Icon.mjs +0 -80
  424. package/lib/icon/__tests__/icon.test.mjs +0 -49
  425. package/lib/icon/demos/antd-icon.mjs +0 -19
  426. package/lib/icon/demos/custom-icon.mjs +0 -28
  427. package/lib/icon/demos/iconfont.mjs +0 -22
  428. package/lib/icon/demos/register-icon.mjs +0 -35
  429. package/lib/icon/index.mjs +0 -5
  430. package/lib/icon/preloaded.mjs +0 -139
  431. package/lib/locale/index.mjs +0 -274
  432. package/lib/modules/actions/ActionSchemaToolbar.mjs +0 -24
  433. package/lib/modules/actions/add-child/CreateChildInitializer.mjs +0 -76
  434. package/lib/modules/actions/add-child/addChildActionSettings.mjs +0 -88
  435. package/lib/modules/actions/add-new/CreateActionInitializer.mjs +0 -82
  436. package/lib/modules/actions/add-new/addNewActionSettings.mjs +0 -81
  437. package/lib/modules/actions/add-new/createFormBlockInitializers.mjs +0 -75
  438. package/lib/modules/actions/add-record/CustomizeAddRecordActionInitializer.mjs +0 -78
  439. package/lib/modules/actions/add-record/customizeAddRecordActionSettings.mjs +0 -50
  440. package/lib/modules/actions/add-record/customizeCreateFormBlockInitializers.mjs +0 -45
  441. package/lib/modules/actions/bulk-destroy/BulkDestroyActionInitializer.mjs +0 -52
  442. package/lib/modules/actions/bulk-destroy/bulkDeleteActionSettings.mjs +0 -42
  443. package/lib/modules/actions/delete/DestroyActionInitializer.mjs +0 -40
  444. package/lib/modules/actions/delete/deleteActionSettings.mjs +0 -57
  445. package/lib/modules/actions/disassociate/DisassociateActionInitializer.mjs +0 -40
  446. package/lib/modules/actions/disassociate/__e2e__/disassociate.test.mjs +0 -53
  447. package/lib/modules/actions/disassociate/__e2e__/templatesOfPage.mjs +0 -386
  448. package/lib/modules/actions/disassociate/disassociateActionSettings.mjs +0 -57
  449. package/lib/modules/actions/expand-collapse/ExpandableActionInitializer.mjs +0 -40
  450. package/lib/modules/actions/expand-collapse/expendableActionSettings.mjs +0 -148
  451. package/lib/modules/actions/filter/FilterActionInitializer.mjs +0 -34
  452. package/lib/modules/actions/filter/filterActionSettings.mjs +0 -103
  453. package/lib/modules/actions/link/customizeLinkActionSettings.mjs +0 -149
  454. package/lib/modules/actions/link/hooks.mjs +0 -243
  455. package/lib/modules/actions/refresh/RefreshActionInitializer.mjs +0 -33
  456. package/lib/modules/actions/refresh/refreshActionSettings.mjs +0 -42
  457. package/lib/modules/actions/save-record/SaveRecordActionInitializer.mjs +0 -49
  458. package/lib/modules/actions/save-record/customizeSaveRecordActionSettings.mjs +0 -67
  459. package/lib/modules/actions/submit/CreateSubmitActionInitializer.mjs +0 -39
  460. package/lib/modules/actions/submit/UpdateSubmitActionInitializer.mjs +0 -44
  461. package/lib/modules/actions/submit/createSubmitActionSettings.mjs +0 -250
  462. package/lib/modules/actions/submit/updateSubmitActionSettings.mjs +0 -107
  463. package/lib/modules/actions/update-record/UpdateRecordActionInitializer.mjs +0 -48
  464. package/lib/modules/actions/update-record/customizeUpdateRecordActionSettings.mjs +0 -83
  465. package/lib/modules/actions/view-edit-popup/PopupActionInitializer.mjs +0 -74
  466. package/lib/modules/actions/view-edit-popup/RecordFormBlockInitializers.mjs +0 -46
  467. package/lib/modules/actions/view-edit-popup/UpdateActionInitializer.mjs +0 -69
  468. package/lib/modules/actions/view-edit-popup/ViewActionInitializer.mjs +0 -68
  469. package/lib/modules/actions/view-edit-popup/customizePopupActionSettings.mjs +0 -70
  470. package/lib/modules/actions/view-edit-popup/editActionSettings.mjs +0 -65
  471. package/lib/modules/actions/view-edit-popup/viewActionSettings.mjs +0 -70
  472. package/lib/modules/blocks/BlockSchemaToolbar.mjs +0 -85
  473. package/lib/modules/blocks/data-blocks/details-multi/DetailsActionInitializers.mjs +0 -49
  474. package/lib/modules/blocks/data-blocks/details-multi/DetailsBlockInitializer.mjs +0 -76
  475. package/lib/modules/blocks/data-blocks/details-multi/__e2e__/schemaInitializer.test.mjs +0 -123
  476. package/lib/modules/blocks/data-blocks/details-multi/__e2e__/schemaSettings.test.mjs +0 -81
  477. package/lib/modules/blocks/data-blocks/details-multi/__e2e__/templatesOfBug.mjs +0 -1
  478. package/lib/modules/blocks/data-blocks/details-multi/__tests__/createDetailsBlockWithPagingUISchema.test.mjs +0 -20
  479. package/lib/modules/blocks/data-blocks/details-multi/createDetailsWithPaginationUISchema.mjs +0 -66
  480. package/lib/modules/blocks/data-blocks/details-multi/detailsWithPaginationSettings.mjs +0 -256
  481. package/lib/modules/blocks/data-blocks/details-multi/hooks/useDetailsWithPaginationDecoratorProps.mjs +0 -19
  482. package/lib/modules/blocks/data-blocks/details-multi/hooks/useDetailsWithPaginationProps.mjs +0 -11
  483. package/lib/modules/blocks/data-blocks/details-multi/setDataLoadingModeSettingsItem.mjs +0 -106
  484. package/lib/modules/blocks/data-blocks/details-single/ReadPrettyFormActionInitializers.mjs +0 -94
  485. package/lib/modules/blocks/data-blocks/details-single/ReadPrettyFormItemInitializers.mjs +0 -110
  486. package/lib/modules/blocks/data-blocks/details-single/RecordReadPrettyFormBlockInitializer.mjs +0 -108
  487. package/lib/modules/blocks/data-blocks/details-single/__e2e__/schemaInitializer.test.mjs +0 -110
  488. package/lib/modules/blocks/data-blocks/details-single/__e2e__/schemaSettings.test.mjs +0 -31
  489. package/lib/modules/blocks/data-blocks/details-single/__e2e__/templatesOfBug.mjs +0 -1
  490. package/lib/modules/blocks/data-blocks/details-single/__tests__/createDetailsBlockWithoutPagingUISchema.test.mjs +0 -21
  491. package/lib/modules/blocks/data-blocks/details-single/createDetailsUISchema.mjs +0 -62
  492. package/lib/modules/blocks/data-blocks/details-single/detailsBlockSettings.mjs +0 -67
  493. package/lib/modules/blocks/data-blocks/details-single/hooks/useDetailsDecoratorProps.mjs +0 -43
  494. package/lib/modules/blocks/data-blocks/details-single/hooks/useDetailsProps.mjs +0 -11
  495. package/lib/modules/blocks/data-blocks/form/CreateFormBlockInitializer.mjs +0 -85
  496. package/lib/modules/blocks/data-blocks/form/FilterItemCustomSettings.mjs +0 -321
  497. package/lib/modules/blocks/data-blocks/form/FormBlockInitializer.mjs +0 -113
  498. package/lib/modules/blocks/data-blocks/form/FormItemSchemaToolbar.mjs +0 -23
  499. package/lib/modules/blocks/data-blocks/form/RecordFormBlockInitializer.mjs +0 -123
  500. package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/associationForm.test.mjs +0 -27
  501. package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/dragAndDrop.test.mjs +0 -33
  502. package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/lazyLoadAssociationFields.test.mjs +0 -207
  503. package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/lazyLoadVariables.test.mjs +0 -36
  504. package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/schemaInitializer.test.mjs +0 -167
  505. package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/schemaSettings.test.mjs +0 -1367
  506. package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/templatesOfBug.mjs +0 -6009
  507. package/lib/modules/blocks/data-blocks/form/__e2e__/form-edit/schemaInitializer.test.mjs +0 -22
  508. package/lib/modules/blocks/data-blocks/form/__e2e__/form-edit/schemaSettings.test.mjs +0 -235
  509. package/lib/modules/blocks/data-blocks/form/__e2e__/form-edit/templatesOfBug.mjs +0 -1
  510. package/lib/modules/blocks/data-blocks/form/__tests__/createCreateFormBlockUISchema.test.mjs +0 -27
  511. package/lib/modules/blocks/data-blocks/form/__tests__/createEditFormBlockUISchema.test.mjs +0 -27
  512. package/lib/modules/blocks/data-blocks/form/createCreateFormBlockUISchema.mjs +0 -63
  513. package/lib/modules/blocks/data-blocks/form/createEditFormBlockUISchema.mjs +0 -62
  514. package/lib/modules/blocks/data-blocks/form/createFormActionInitializers.mjs +0 -51
  515. package/lib/modules/blocks/data-blocks/form/createFormBlockSettings.mjs +0 -157
  516. package/lib/modules/blocks/data-blocks/form/editFormBlockSettings.mjs +0 -90
  517. package/lib/modules/blocks/data-blocks/form/fieldSettingsFormItem.mjs +0 -598
  518. package/lib/modules/blocks/data-blocks/form/formActionInitializers.mjs +0 -54
  519. package/lib/modules/blocks/data-blocks/form/formItemInitializers.mjs +0 -51
  520. package/lib/modules/blocks/data-blocks/form/hooks/useCreateFormBlockDecoratorProps.mjs +0 -19
  521. package/lib/modules/blocks/data-blocks/form/hooks/useCreateFormBlockProps.mjs +0 -11
  522. package/lib/modules/blocks/data-blocks/form/hooks/useEditFormBlockDecoratorProps.mjs +0 -29
  523. package/lib/modules/blocks/data-blocks/form/hooks/useEditFormBlockProps.mjs +0 -11
  524. package/lib/modules/blocks/data-blocks/form/index.mjs +0 -31
  525. package/lib/modules/blocks/data-blocks/form/updateFormActionInitializers.mjs +0 -62
  526. package/lib/modules/blocks/data-blocks/grid-card/GridCardActionInitializers.mjs +0 -94
  527. package/lib/modules/blocks/data-blocks/grid-card/GridCardBlockInitializer.mjs +0 -69
  528. package/lib/modules/blocks/data-blocks/grid-card/__e2e__/schemaInitializer.test.mjs +0 -231
  529. package/lib/modules/blocks/data-blocks/grid-card/__e2e__/schemaSettings.test.mjs +0 -58
  530. package/lib/modules/blocks/data-blocks/grid-card/__e2e__/templatesOfBug.mjs +0 -1
  531. package/lib/modules/blocks/data-blocks/grid-card/__tests__/createGridCardBlockSchema.test.mjs +0 -32
  532. package/lib/modules/blocks/data-blocks/grid-card/createGridCardBlockUISchema.mjs +0 -78
  533. package/lib/modules/blocks/data-blocks/grid-card/gridCardBlockSettings.mjs +0 -484
  534. package/lib/modules/blocks/data-blocks/grid-card/gridCardItemActionInitializers.mjs +0 -109
  535. package/lib/modules/blocks/data-blocks/grid-card/hooks/useGridCardBlockDecoratorProps.mjs +0 -25
  536. package/lib/modules/blocks/data-blocks/grid-card/hooks/useGridCardBlockParams.mjs +0 -28
  537. package/lib/modules/blocks/data-blocks/grid-card/utils.mjs +0 -17
  538. package/lib/modules/blocks/data-blocks/list/ListActionInitializers.mjs +0 -90
  539. package/lib/modules/blocks/data-blocks/list/ListBlockInitializer.mjs +0 -69
  540. package/lib/modules/blocks/data-blocks/list/__e2e__/schemaInitializer.test.mjs +0 -224
  541. package/lib/modules/blocks/data-blocks/list/__e2e__/schemaSettings.test.mjs +0 -29
  542. package/lib/modules/blocks/data-blocks/list/__e2e__/templatesOfBug.mjs +0 -1
  543. package/lib/modules/blocks/data-blocks/list/__tests__/createListBlockSchema.test.mjs +0 -30
  544. package/lib/modules/blocks/data-blocks/list/createListBlockUISchema.mjs +0 -71
  545. package/lib/modules/blocks/data-blocks/list/hooks/useListBlockDecoratorProps.mjs +0 -19
  546. package/lib/modules/blocks/data-blocks/list/listBlockSettings.mjs +0 -286
  547. package/lib/modules/blocks/data-blocks/list/listItemActionInitializers.mjs +0 -109
  548. package/lib/modules/blocks/data-blocks/table/TableActionColumnInitializers.mjs +0 -287
  549. package/lib/modules/blocks/data-blocks/table/TableActionInitializers.mjs +0 -143
  550. package/lib/modules/blocks/data-blocks/table/TableBlockInitializer.mjs +0 -69
  551. package/lib/modules/blocks/data-blocks/table/TableColumnInitializers.mjs +0 -135
  552. package/lib/modules/blocks/data-blocks/table/TableColumnSchemaToolbar.mjs +0 -35
  553. package/lib/modules/blocks/data-blocks/table/__e2e__/actions/duplicate.test.mjs +0 -19
  554. package/lib/modules/blocks/data-blocks/table/__e2e__/actions/filter.test.mjs +0 -46
  555. package/lib/modules/blocks/data-blocks/table/__e2e__/checkboxForTableRow.test.mjs +0 -28
  556. package/lib/modules/blocks/data-blocks/table/__e2e__/dragAndDrop.test.mjs +0 -40
  557. package/lib/modules/blocks/data-blocks/table/__e2e__/schemaInitializer.test.mjs +0 -450
  558. package/lib/modules/blocks/data-blocks/table/__e2e__/schemaSettings.test.mjs +0 -922
  559. package/lib/modules/blocks/data-blocks/table/__e2e__/templatesOfBug.mjs +0 -937
  560. package/lib/modules/blocks/data-blocks/table/__e2e__/tree/schemaSettings.test.mjs +0 -53
  561. package/lib/modules/blocks/data-blocks/table/__tests__/createTableBLockSchema.test.mjs +0 -24
  562. package/lib/modules/blocks/data-blocks/table/createTableBlockUISchema.mjs +0 -90
  563. package/lib/modules/blocks/data-blocks/table/hooks/useTableBlockDecoratorProps.mjs +0 -54
  564. package/lib/modules/blocks/data-blocks/table/hooks/useTableBlockProps.mjs +0 -176
  565. package/lib/modules/blocks/data-blocks/table/index.mjs +0 -21
  566. package/lib/modules/blocks/data-blocks/table/tableBlockSettings.mjs +0 -461
  567. package/lib/modules/blocks/data-blocks/table/tableColumnSettings.mjs +0 -388
  568. package/lib/modules/blocks/data-blocks/table/utils.mjs +0 -30
  569. package/lib/modules/blocks/data-blocks/table-selector/TableSelectorInitializer.mjs +0 -45
  570. package/lib/modules/blocks/data-blocks/table-selector/__e2e__/schemaInitializer.test.mjs +0 -174
  571. package/lib/modules/blocks/data-blocks/table-selector/__e2e__/schemaSettings.test.mjs +0 -169
  572. package/lib/modules/blocks/data-blocks/table-selector/__e2e__/templatesOfBug.mjs +0 -695
  573. package/lib/modules/blocks/data-blocks/table-selector/__e2e__/utils.mjs +0 -20
  574. package/lib/modules/blocks/data-blocks/table-selector/__tests__/createTableSelectorSchema.test.mjs +0 -22
  575. package/lib/modules/blocks/data-blocks/table-selector/createTableSelectorUISchema.mjs +0 -55
  576. package/lib/modules/blocks/data-blocks/table-selector/hooks/useTableSelectorDecoratorProps.mjs +0 -5
  577. package/lib/modules/blocks/data-blocks/table-selector/index.mjs +0 -7
  578. package/lib/modules/blocks/data-blocks/table-selector/tableSelectorBlockSettings.mjs +0 -353
  579. package/lib/modules/blocks/filter-blocks/collapse/CollapseItemSchemaToolbar.mjs +0 -22
  580. package/lib/modules/blocks/filter-blocks/collapse/FilterCollapseBlockInitializer.mjs +0 -51
  581. package/lib/modules/blocks/filter-blocks/collapse/__e2e__/schemaInitializer.test.mjs +0 -67
  582. package/lib/modules/blocks/filter-blocks/collapse/__e2e__/schemaSettings.test.mjs +0 -72
  583. package/lib/modules/blocks/filter-blocks/collapse/__e2e__/templatesOfBug.mjs +0 -1
  584. package/lib/modules/blocks/filter-blocks/collapse/__tests__/createCollapseBlockSchema.test.mjs +0 -46
  585. package/lib/modules/blocks/filter-blocks/collapse/createFilterCollapseBlockSchema.mjs +0 -37
  586. package/lib/modules/blocks/filter-blocks/collapse/filterCollapseBlockSettings.mjs +0 -79
  587. package/lib/modules/blocks/filter-blocks/collapse/filterCollapseItemFieldSettings.mjs +0 -244
  588. package/lib/modules/blocks/filter-blocks/collapse/filterCollapseItemInitializer.mjs +0 -170
  589. package/lib/modules/blocks/filter-blocks/collapse/hooks/useCollapseBlockDecoratorProps.mjs +0 -5
  590. package/lib/modules/blocks/filter-blocks/form/FilterFormActionInitializers.mjs +0 -38
  591. package/lib/modules/blocks/filter-blocks/form/FilterFormBlockInitializer.mjs +0 -60
  592. package/lib/modules/blocks/filter-blocks/form/__e2e__/schemaInitializer.test.mjs +0 -127
  593. package/lib/modules/blocks/filter-blocks/form/__e2e__/schemaSettings.test.mjs +0 -111
  594. package/lib/modules/blocks/filter-blocks/form/__e2e__/templatesOfBug.mjs +0 -1
  595. package/lib/modules/blocks/filter-blocks/form/__tests__/createFilterFormBlockSchema.test.mjs +0 -31
  596. package/lib/modules/blocks/filter-blocks/form/createFilterFormBlockSchema.mjs +0 -56
  597. package/lib/modules/blocks/filter-blocks/form/filterFormBlockSettings.mjs +0 -87
  598. package/lib/modules/blocks/filter-blocks/form/filterFormItemFieldSettings.mjs +0 -394
  599. package/lib/modules/blocks/filter-blocks/form/filterFormItemInitializers.mjs +0 -53
  600. package/lib/modules/blocks/filter-blocks/form/hooks/useFilterFormBlockDecoratorProps.mjs +0 -5
  601. package/lib/modules/blocks/filter-blocks/form/hooks/useFilterFormBlockProps.mjs +0 -11
  602. package/lib/modules/blocks/filter-blocks/tree/FilterTreeActionInitializers.mjs +0 -38
  603. package/lib/modules/blocks/filter-blocks/tree/FilterTreeBlockInitializer.mjs +0 -101
  604. package/lib/modules/blocks/filter-blocks/tree/filterTreeBlockSettings.mjs +0 -87
  605. package/lib/modules/blocks/filter-blocks/tree/filterTreeItemFieldSettings.mjs +0 -394
  606. package/lib/modules/blocks/filter-blocks/tree/filterTreeItemInitializers.mjs +0 -53
  607. package/lib/modules/blocks/other-blocks/markdown/MarkdownBlockInitializer.mjs +0 -48
  608. package/lib/modules/blocks/other-blocks/markdown/MarkdownFormItemInitializer.mjs +0 -42
  609. package/lib/modules/blocks/other-blocks/markdown/__e2e__/schemaInitializer.test.mjs +0 -16
  610. package/lib/modules/blocks/other-blocks/markdown/__e2e__/schemaSettings.test.mjs +0 -40
  611. package/lib/modules/blocks/other-blocks/markdown/__e2e__/templatesOfBug.mjs +0 -1
  612. package/lib/modules/blocks/other-blocks/markdown/markdownBlockSettings.mjs +0 -51
  613. package/lib/modules/blocks/useParentRecordCommon.mjs +0 -18
  614. package/lib/modules/blocks/useSourceId.mjs +0 -23
  615. package/lib/modules/blocks/useSourceKey.mjs +0 -16
  616. package/lib/modules/dialog/__e2e__/schemaInitializer.test.mjs +0 -435
  617. package/lib/modules/dialog/__e2e__/schemaSettings.test.mjs +0 -65
  618. package/lib/modules/dialog/__e2e__/templatesOfBug.mjs +0 -2128
  619. package/lib/modules/dialog/__e2e__/zIndex.test.mjs +0 -46
  620. package/lib/modules/fields/component/CascadeSelect/cascadeSelectComponentFieldSettings.mjs +0 -120
  621. package/lib/modules/fields/component/Cascader/cascaderComponentFieldSettings.mjs +0 -457
  622. package/lib/modules/fields/component/Checkbox/checkboxComponentFieldSettings.mjs +0 -71
  623. package/lib/modules/fields/component/DatePicker/__e2e__/schemaSettings.test.mjs +0 -86
  624. package/lib/modules/fields/component/DatePicker/__e2e__/utils.mjs +0 -335
  625. package/lib/modules/fields/component/DatePicker/datePickerComponentFieldSettings.mjs +0 -37
  626. package/lib/modules/fields/component/DrawerSubTable/drawerSubTableComponentFieldSettings.mjs +0 -184
  627. package/lib/modules/fields/component/FileManager/fileManagerComponentFieldSettings.mjs +0 -225
  628. package/lib/modules/fields/component/FileManager/uploadAttachmentComponentFieldSettings.mjs +0 -123
  629. package/lib/modules/fields/component/InputNumber/inputNumberComponentFieldSettings.mjs +0 -45
  630. package/lib/modules/fields/component/Nester/subformComponentFieldSettings.mjs +0 -157
  631. package/lib/modules/fields/component/Picker/TableSelectorInitializers.mjs +0 -98
  632. package/lib/modules/fields/component/Picker/recordPickerComponentFieldSettings.mjs +0 -222
  633. package/lib/modules/fields/component/PopoverNester/subformPopoverComponentFieldSettings.mjs +0 -134
  634. package/lib/modules/fields/component/Radio/radioComponentFieldSettings.mjs +0 -71
  635. package/lib/modules/fields/component/Select/selectComponentFieldSettings.mjs +0 -453
  636. package/lib/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.mjs +0 -447
  637. package/lib/modules/fields/component/Tag/tagComponentFieldSettings.mjs +0 -207
  638. package/lib/modules/fields/component/UnixTimestamp/unixTimestampComponentFieldSettings.mjs +0 -37
  639. package/lib/modules/fields/initializer/CollectionFieldInitializer.mjs +0 -30
  640. package/lib/modules/fields/initializer/TableCollectionFieldInitializer.mjs +0 -30
  641. package/lib/modules/menu/GroupItem.mjs +0 -110
  642. package/lib/modules/menu/LinkMenuItem.mjs +0 -116
  643. package/lib/modules/menu/PageMenuItem.mjs +0 -125
  644. package/lib/modules/menu/__e2e__/dragAndDrop.test.mjs +0 -34
  645. package/lib/modules/menu/__e2e__/schemaInitializer.test.mjs +0 -114
  646. package/lib/modules/menu/__e2e__/schemaSettings.test.mjs +0 -366
  647. package/lib/modules/menu/__e2e__/templatesOfBug.mjs +0 -1
  648. package/lib/modules/menu/menuItemInitializer.mjs +0 -65
  649. package/lib/modules/page/BlockInitializers.mjs +0 -86
  650. package/lib/modules/page/__e2e__/blockInitializers.test.mjs +0 -23
  651. package/lib/modules/page/__e2e__/dragAndDrop.test.mjs +0 -24
  652. package/lib/modules/page/__e2e__/schemaInitailizer.test.mjs +0 -22
  653. package/lib/modules/page/__e2e__/schemaSettings.test.mjs +0 -154
  654. package/lib/modules/page/__e2e__/templatesOfBug.mjs +0 -1
  655. package/lib/modules/plugin-manager/__e2e__/pluginManager.test.mjs +0 -132
  656. package/lib/modules/plugin-manager/__e2e__/templatesOfBug.mjs +0 -1
  657. package/lib/modules/user-center/__e2e__/settings.test.mjs +0 -18
  658. package/lib/modules/variable/DeclareVariable.mjs +0 -27
  659. package/lib/modules/variable/useVariable.mjs +0 -27
  660. package/lib/powered-by/index.mjs +0 -57
  661. package/lib/record-provider/index.mjs +0 -77
  662. package/lib/route-switch/RouteSchemaComponent.mjs +0 -27
  663. package/lib/route-switch/index.mjs +0 -5
  664. package/lib/schema-component/antd/AntdSchemaComponentProvider.mjs +0 -74
  665. package/lib/schema-component/antd/__builtins__/hooks/index.mjs +0 -9
  666. package/lib/schema-component/antd/__builtins__/hooks/useConfig.mjs +0 -14
  667. package/lib/schema-component/antd/__builtins__/hooks/usePrefixCls.mjs +0 -22
  668. package/lib/schema-component/antd/__builtins__/hooks/useToken.mjs +0 -13
  669. package/lib/schema-component/antd/__builtins__/index.mjs +0 -11
  670. package/lib/schema-component/antd/__builtins__/loading.mjs +0 -21
  671. package/lib/schema-component/antd/__builtins__/portal.mjs +0 -76
  672. package/lib/schema-component/antd/__builtins__/render.mjs +0 -65
  673. package/lib/schema-component/antd/__builtins__/style.mjs +0 -79
  674. package/lib/schema-component/antd/action/Action.Area.mjs +0 -130
  675. package/lib/schema-component/antd/action/Action.Area.style.mjs +0 -48
  676. package/lib/schema-component/antd/action/Action.Container.mjs +0 -75
  677. package/lib/schema-component/antd/action/Action.Designer.mjs +0 -1053
  678. package/lib/schema-component/antd/action/Action.Drawer.mjs +0 -179
  679. package/lib/schema-component/antd/action/Action.Drawer.style.mjs +0 -52
  680. package/lib/schema-component/antd/action/Action.Link.mjs +0 -37
  681. package/lib/schema-component/antd/action/Action.Modal.mjs +0 -214
  682. package/lib/schema-component/antd/action/Action.Page.mjs +0 -112
  683. package/lib/schema-component/antd/action/Action.Popover.mjs +0 -1
  684. package/lib/schema-component/antd/action/Action.Sheet.mjs +0 -115
  685. package/lib/schema-component/antd/action/Action.mjs +0 -349
  686. package/lib/schema-component/antd/action/Action.style.mjs +0 -53
  687. package/lib/schema-component/antd/action/ActionBar.mjs +0 -172
  688. package/lib/schema-component/antd/action/__tests__/action.test.mjs +0 -161
  689. package/lib/schema-component/antd/action/context.mjs +0 -29
  690. package/lib/schema-component/antd/action/demos/demo1.mjs +0 -87
  691. package/lib/schema-component/antd/action/demos/demo2.mjs +0 -90
  692. package/lib/schema-component/antd/action/demos/demo3.mjs +0 -148
  693. package/lib/schema-component/antd/action/demos/demo4.mjs +0 -75
  694. package/lib/schema-component/antd/action/demos/demo5.mjs +0 -237
  695. package/lib/schema-component/antd/action/demos/demo6.mjs +0 -114
  696. package/lib/schema-component/antd/action/hooks/useGetAriaLabelOfAction.mjs +0 -62
  697. package/lib/schema-component/antd/action/hooks/useGetAriaLabelOfDrawer.mjs +0 -43
  698. package/lib/schema-component/antd/action/hooks/useGetAriaLabelOfModal.mjs +0 -43
  699. package/lib/schema-component/antd/action/hooks/useGetAriaLabelOfPopover.mjs +0 -43
  700. package/lib/schema-component/antd/action/hooks/useSetAriaLabelForDrawer.mjs +0 -42
  701. package/lib/schema-component/antd/action/hooks/useSetAriaLabelForModal.mjs +0 -44
  702. package/lib/schema-component/antd/action/hooks/useSetAriaLabelForPopover.mjs +0 -33
  703. package/lib/schema-component/antd/action/hooks.mjs +0 -86
  704. package/lib/schema-component/antd/action/index.mjs +0 -23
  705. package/lib/schema-component/antd/action/types.mjs +0 -4
  706. package/lib/schema-component/antd/action/utils.mjs +0 -229
  707. package/lib/schema-component/antd/appends-tree-select/AppendsTreeSelect.mjs +0 -268
  708. package/lib/schema-component/antd/appends-tree-select/AppendsTreeSelectV2.mjs +0 -267
  709. package/lib/schema-component/antd/appends-tree-select/index.mjs +0 -7
  710. package/lib/schema-component/antd/association-cascader/AssociationCascader.mjs +0 -173
  711. package/lib/schema-component/antd/association-cascader/index.mjs +0 -5
  712. package/lib/schema-component/antd/association-field/AssociationFieldProvider.mjs +0 -166
  713. package/lib/schema-component/antd/association-field/AssociationSelect.mjs +0 -229
  714. package/lib/schema-component/antd/association-field/Editable.mjs +0 -165
  715. package/lib/schema-component/antd/association-field/FileManager.mjs +0 -261
  716. package/lib/schema-component/antd/association-field/InternalCascadeSelect.mjs +0 -467
  717. package/lib/schema-component/antd/association-field/InternalCascader.mjs +0 -443
  718. package/lib/schema-component/antd/association-field/InternalDrawerSubTable.mjs +0 -138
  719. package/lib/schema-component/antd/association-field/InternalNester.mjs +0 -117
  720. package/lib/schema-component/antd/association-field/InternalPicker.mjs +0 -276
  721. package/lib/schema-component/antd/association-field/InternalPopoverNester.mjs +0 -176
  722. package/lib/schema-component/antd/association-field/InternalSubTable.mjs +0 -133
  723. package/lib/schema-component/antd/association-field/InternalTag.mjs +0 -180
  724. package/lib/schema-component/antd/association-field/InternalViewer.mjs +0 -197
  725. package/lib/schema-component/antd/association-field/Nester.mjs +0 -330
  726. package/lib/schema-component/antd/association-field/ReadPretty.mjs +0 -82
  727. package/lib/schema-component/antd/association-field/SubTable.mjs +0 -351
  728. package/lib/schema-component/antd/association-field/SubTabs/InternalCollapse.mjs +0 -384
  729. package/lib/schema-component/antd/association-field/SubTabs/hook.mjs +0 -87
  730. package/lib/schema-component/antd/association-field/SubTabs/index.mjs +0 -5
  731. package/lib/schema-component/antd/association-field/SubTabs/styles.mjs +0 -33
  732. package/lib/schema-component/antd/association-field/components/CreateRecordAction.mjs +0 -84
  733. package/lib/schema-component/antd/association-field/context.mjs +0 -10
  734. package/lib/schema-component/antd/association-field/hooks.mjs +0 -221
  735. package/lib/schema-component/antd/association-field/index.mjs +0 -42
  736. package/lib/schema-component/antd/association-field/schema.mjs +0 -135
  737. package/lib/schema-component/antd/association-field/util.mjs +0 -133
  738. package/lib/schema-component/antd/association-filter/ActionBarAssociationFilterAction.mjs +0 -88
  739. package/lib/schema-component/antd/association-filter/AssociationFilter.BlockDesigner.mjs +0 -67
  740. package/lib/schema-component/antd/association-filter/AssociationFilter.Initializer.mjs +0 -67
  741. package/lib/schema-component/antd/association-filter/AssociationFilter.Item.Designer.mjs +0 -168
  742. package/lib/schema-component/antd/association-filter/AssociationFilter.Item.mjs +0 -183
  743. package/lib/schema-component/antd/association-filter/AssociationFilter.Item.style.mjs +0 -107
  744. package/lib/schema-component/antd/association-filter/AssociationFilter.mjs +0 -128
  745. package/lib/schema-component/antd/association-filter/AssociationFilterDesignerDelete.mjs +0 -55
  746. package/lib/schema-component/antd/association-filter/AssociationFilterDesignerDisplayField.mjs +0 -43
  747. package/lib/schema-component/antd/association-filter/utilts.mjs +0 -7
  748. package/lib/schema-component/antd/association-select/AssociationSelect.mjs +0 -1010
  749. package/lib/schema-component/antd/association-select/ReadPretty.mjs +0 -38
  750. package/lib/schema-component/antd/association-select/__tests__/association-select.test.mjs +0 -33
  751. package/lib/schema-component/antd/association-select/demos/demo1.mjs +0 -75
  752. package/lib/schema-component/antd/association-select/index.mjs +0 -5
  753. package/lib/schema-component/antd/association-select/useServiceOptions.mjs +0 -114
  754. package/lib/schema-component/antd/auto-complete/AutoComplete.mjs +0 -92
  755. package/lib/schema-component/antd/auto-complete/index.mjs +0 -5
  756. package/lib/schema-component/antd/block-item/BlockItem.mjs +0 -93
  757. package/lib/schema-component/antd/block-item/BlockToolbar.mjs +0 -114
  758. package/lib/schema-component/antd/block-item/__tests__/block-item.test.mjs +0 -29
  759. package/lib/schema-component/antd/block-item/demos/demo1.mjs +0 -75
  760. package/lib/schema-component/antd/block-item/hooks/useGetAriaLabelOfBlockItem.mjs +0 -63
  761. package/lib/schema-component/antd/block-item/index.mjs +0 -5
  762. package/lib/schema-component/antd/block-item/useBlockToolbar.mjs +0 -107
  763. package/lib/schema-component/antd/card-item/CardItem.mjs +0 -49
  764. package/lib/schema-component/antd/card-item/__tests__/card-item.test.mjs +0 -28
  765. package/lib/schema-component/antd/card-item/demos/demo1.mjs +0 -45
  766. package/lib/schema-component/antd/card-item/index.mjs +0 -5
  767. package/lib/schema-component/antd/card-item/style.mjs +0 -33
  768. package/lib/schema-component/antd/cascader/Cascader.mjs +0 -123
  769. package/lib/schema-component/antd/cascader/ReadPretty.mjs +0 -50
  770. package/lib/schema-component/antd/cascader/__tests__/cascader.test.mjs +0 -56
  771. package/lib/schema-component/antd/cascader/defaultFieldNames.mjs +0 -9
  772. package/lib/schema-component/antd/cascader/demos/demo1.mjs +0 -100
  773. package/lib/schema-component/antd/cascader/demos/demo2.mjs +0 -140
  774. package/lib/schema-component/antd/cascader/index.mjs +0 -5
  775. package/lib/schema-component/antd/checkbox/Checkbox.mjs +0 -120
  776. package/lib/schema-component/antd/checkbox/__tests__/checkbox.test.mjs +0 -60
  777. package/lib/schema-component/antd/checkbox/demos/checkbox.group.mjs +0 -73
  778. package/lib/schema-component/antd/checkbox/demos/checkbox.mjs +0 -59
  779. package/lib/schema-component/antd/checkbox/index.mjs +0 -5
  780. package/lib/schema-component/antd/collection-select/CollectionSelect.mjs +0 -194
  781. package/lib/schema-component/antd/collection-select/__tests__/collection-select.test.mjs +0 -33
  782. package/lib/schema-component/antd/collection-select/demos/demo1.mjs +0 -54
  783. package/lib/schema-component/antd/collection-select/index.mjs +0 -5
  784. package/lib/schema-component/antd/color-picker/ColorPicker.mjs +0 -114
  785. package/lib/schema-component/antd/color-picker/ReadPretty.mjs +0 -36
  786. package/lib/schema-component/antd/color-picker/demos/demo1.mjs +0 -68
  787. package/lib/schema-component/antd/color-picker/index.mjs +0 -5
  788. package/lib/schema-component/antd/color-picker/util.mjs +0 -196
  789. package/lib/schema-component/antd/color-select/ColorSelect.mjs +0 -73
  790. package/lib/schema-component/antd/color-select/__tests__/color-select.test.mjs +0 -32
  791. package/lib/schema-component/antd/color-select/demos/demo1.mjs +0 -59
  792. package/lib/schema-component/antd/color-select/index.mjs +0 -5
  793. package/lib/schema-component/antd/cron/Cron.mjs +0 -100
  794. package/lib/schema-component/antd/cron/CronSet.mjs +0 -147
  795. package/lib/schema-component/antd/cron/__tests__/cron-set.test.mjs +0 -50
  796. package/lib/schema-component/antd/cron/demos/demo1.mjs +0 -50
  797. package/lib/schema-component/antd/cron/demos/demo2.mjs +0 -69
  798. package/lib/schema-component/antd/cron/index.mjs +0 -7
  799. package/lib/schema-component/antd/custom-cascader/CustomCascader.mjs +0 -63
  800. package/lib/schema-component/antd/custom-cascader/ReadPretty.mjs +0 -50
  801. package/lib/schema-component/antd/custom-cascader/defaultFieldNames.mjs +0 -9
  802. package/lib/schema-component/antd/custom-cascader/index.mjs +0 -5
  803. package/lib/schema-component/antd/date-picker/DatePicker.mjs +0 -176
  804. package/lib/schema-component/antd/date-picker/ReadPretty.mjs +0 -66
  805. package/lib/schema-component/antd/date-picker/__tests__/date-picker.test.mjs +0 -250
  806. package/lib/schema-component/antd/date-picker/__tests__/getDateRanges.test.mjs +0 -119
  807. package/lib/schema-component/antd/date-picker/__tests__/mapDatePicker.test.mjs +0 -212
  808. package/lib/schema-component/antd/date-picker/__tests__/mapRangePicker.test.mjs +0 -71
  809. package/lib/schema-component/antd/date-picker/__tests__/util.test.mjs +0 -182
  810. package/lib/schema-component/antd/date-picker/demos/demo1.mjs +0 -76
  811. package/lib/schema-component/antd/date-picker/demos/demo10.mjs +0 -80
  812. package/lib/schema-component/antd/date-picker/demos/demo11.mjs +0 -84
  813. package/lib/schema-component/antd/date-picker/demos/demo2.mjs +0 -79
  814. package/lib/schema-component/antd/date-picker/demos/demo3.mjs +0 -77
  815. package/lib/schema-component/antd/date-picker/demos/demo4.mjs +0 -94
  816. package/lib/schema-component/antd/date-picker/demos/demo5.mjs +0 -93
  817. package/lib/schema-component/antd/date-picker/demos/demo6.mjs +0 -93
  818. package/lib/schema-component/antd/date-picker/demos/demo7.mjs +0 -80
  819. package/lib/schema-component/antd/date-picker/demos/demo8.mjs +0 -80
  820. package/lib/schema-component/antd/date-picker/demos/demo9.mjs +0 -80
  821. package/lib/schema-component/antd/date-picker/index.mjs +0 -5
  822. package/lib/schema-component/antd/date-picker/util.mjs +0 -217
  823. package/lib/schema-component/antd/details/Details.mjs +0 -44
  824. package/lib/schema-component/antd/details/__tests__/details.test.mjs +0 -25
  825. package/lib/schema-component/antd/details/demos/demo1.mjs +0 -59
  826. package/lib/schema-component/antd/details/index.mjs +0 -5
  827. package/lib/schema-component/antd/error-fallback/ErrorFallback.mjs +0 -77
  828. package/lib/schema-component/antd/error-fallback/__tests__/error-fallback.test.mjs +0 -33
  829. package/lib/schema-component/antd/error-fallback/demos/demo1.mjs +0 -30
  830. package/lib/schema-component/antd/error-fallback/index.mjs +0 -5
  831. package/lib/schema-component/antd/expand-action/Expand.Action.Design.mjs +0 -134
  832. package/lib/schema-component/antd/expand-action/Expand.Action.mjs +0 -103
  833. package/lib/schema-component/antd/expand-action/index.mjs +0 -15
  834. package/lib/schema-component/antd/filter/DynamicComponent.mjs +0 -81
  835. package/lib/schema-component/antd/filter/Filter.Action.Designer.mjs +0 -156
  836. package/lib/schema-component/antd/filter/Filter.mjs +0 -95
  837. package/lib/schema-component/antd/filter/FilterAction.mjs +0 -218
  838. package/lib/schema-component/antd/filter/FilterGroup.mjs +0 -166
  839. package/lib/schema-component/antd/filter/FilterItem.mjs +0 -120
  840. package/lib/schema-component/antd/filter/FilterItems.mjs +0 -47
  841. package/lib/schema-component/antd/filter/SaveDefaultValue.mjs +0 -61
  842. package/lib/schema-component/antd/filter/__tests__/filter.test.mjs +0 -152
  843. package/lib/schema-component/antd/filter/context.mjs +0 -14
  844. package/lib/schema-component/antd/filter/demos/demo2.mjs +0 -143
  845. package/lib/schema-component/antd/filter/demos/demo3.mjs +0 -213
  846. package/lib/schema-component/antd/filter/demos/demo4.mjs +0 -203
  847. package/lib/schema-component/antd/filter/demos/demo5.mjs +0 -145
  848. package/lib/schema-component/antd/filter/demos/demo6.mjs +0 -140
  849. package/lib/schema-component/antd/filter/index.mjs +0 -9
  850. package/lib/schema-component/antd/filter/useFilterActionProps.mjs +0 -298
  851. package/lib/schema-component/antd/filter/useOperators.mjs +0 -38
  852. package/lib/schema-component/antd/filter/useValues.mjs +0 -155
  853. package/lib/schema-component/antd/filter/utils.mjs +0 -20
  854. package/lib/schema-component/antd/form/Form.Designer.mjs +0 -27
  855. package/lib/schema-component/antd/form/Form.Settings.mjs +0 -48
  856. package/lib/schema-component/antd/form/Form.mjs +0 -187
  857. package/lib/schema-component/antd/form/__tests__/form.test.mjs +0 -155
  858. package/lib/schema-component/antd/form/demos/apiClient.mjs +0 -26
  859. package/lib/schema-component/antd/form/demos/demo1.mjs +0 -93
  860. package/lib/schema-component/antd/form/demos/demo2.mjs +0 -95
  861. package/lib/schema-component/antd/form/demos/demo3.mjs +0 -94
  862. package/lib/schema-component/antd/form/demos/demo4.mjs +0 -98
  863. package/lib/schema-component/antd/form/demos/demo5.mjs +0 -142
  864. package/lib/schema-component/antd/form/demos/demo6.mjs +0 -95
  865. package/lib/schema-component/antd/form/demos/demo7.mjs +0 -103
  866. package/lib/schema-component/antd/form/demos/demo8.mjs +0 -110
  867. package/lib/schema-component/antd/form/index.mjs +0 -7
  868. package/lib/schema-component/antd/form-dialog/index.mjs +0 -199
  869. package/lib/schema-component/antd/form-item/FormItem.FilterFormDesigner.mjs +0 -21
  870. package/lib/schema-component/antd/form-item/FormItem.FilterFormSettings.mjs +0 -183
  871. package/lib/schema-component/antd/form-item/FormItem.Settings.mjs +0 -1326
  872. package/lib/schema-component/antd/form-item/FormItem.mjs +0 -200
  873. package/lib/schema-component/antd/form-item/SchemaSettingOptions.mjs +0 -638
  874. package/lib/schema-component/antd/form-item/__tests__/form-item.test.mjs +0 -27
  875. package/lib/schema-component/antd/form-item/__tests__/hooks/useSpecialCase.test.mjs +0 -33
  876. package/lib/schema-component/antd/form-item/__tests__/utils.test.mjs +0 -71
  877. package/lib/schema-component/antd/form-item/demos/demo1.mjs +0 -56
  878. package/lib/schema-component/antd/form-item/hooks/useLazyLoadDisplayAssociationFieldsOfForm.mjs +0 -135
  879. package/lib/schema-component/antd/form-item/hooks/useParseDefaultValue.mjs +0 -164
  880. package/lib/schema-component/antd/form-item/hooks/useSpecialCase.mjs +0 -182
  881. package/lib/schema-component/antd/form-item/index.mjs +0 -11
  882. package/lib/schema-component/antd/form-item/utils.mjs +0 -22
  883. package/lib/schema-component/antd/form-tab/index.mjs +0 -168
  884. package/lib/schema-component/antd/form-v2/Form.Designer.mjs +0 -51
  885. package/lib/schema-component/antd/form-v2/Form.FilterDesigner.mjs +0 -36
  886. package/lib/schema-component/antd/form-v2/Form.Settings.mjs +0 -364
  887. package/lib/schema-component/antd/form-v2/Form.mjs +0 -432
  888. package/lib/schema-component/antd/form-v2/FormField.mjs +0 -51
  889. package/lib/schema-component/antd/form-v2/Templates.mjs +0 -257
  890. package/lib/schema-component/antd/form-v2/__tests__/form-v2.test.mjs +0 -69
  891. package/lib/schema-component/antd/form-v2/demos/collections.mjs +0 -1568
  892. package/lib/schema-component/antd/form-v2/demos/demo1.mjs +0 -139
  893. package/lib/schema-component/antd/form-v2/demos/demo2.mjs +0 -162
  894. package/lib/schema-component/antd/form-v2/demos/demo3.mjs +0 -139
  895. package/lib/schema-component/antd/form-v2/index.mjs +0 -32
  896. package/lib/schema-component/antd/form-v2/utils.mjs +0 -182
  897. package/lib/schema-component/antd/grid/Block.mjs +0 -39
  898. package/lib/schema-component/antd/grid/Grid.mjs +0 -562
  899. package/lib/schema-component/antd/grid/Grid.style.mjs +0 -51
  900. package/lib/schema-component/antd/grid/__tests__/grid.test.mjs +0 -47
  901. package/lib/schema-component/antd/grid/demos/demo1.mjs +0 -211
  902. package/lib/schema-component/antd/grid/demos/demo2.mjs +0 -119
  903. package/lib/schema-component/antd/grid/demos/demo3.mjs +0 -101
  904. package/lib/schema-component/antd/grid/index.mjs +0 -7
  905. package/lib/schema-component/antd/grid-card/GridCard.Decorator.mjs +0 -108
  906. package/lib/schema-component/antd/grid-card/GridCard.Decorator.style.mjs +0 -30
  907. package/lib/schema-component/antd/grid-card/GridCard.Designer.mjs +0 -317
  908. package/lib/schema-component/antd/grid-card/GridCard.Item.mjs +0 -120
  909. package/lib/schema-component/antd/grid-card/GridCard.mjs +0 -215
  910. package/lib/schema-component/antd/grid-card/__tests__/grid-card.test.mjs +0 -24
  911. package/lib/schema-component/antd/grid-card/demos/demo1.mjs +0 -17
  912. package/lib/schema-component/antd/grid-card/hooks.mjs +0 -37
  913. package/lib/schema-component/antd/grid-card/index.mjs +0 -5
  914. package/lib/schema-component/antd/grid-card/options.mjs +0 -38
  915. package/lib/schema-component/antd/icon-picker/IconFilterInput.mjs +0 -32
  916. package/lib/schema-component/antd/icon-picker/IconList.mjs +0 -71
  917. package/lib/schema-component/antd/icon-picker/IconPicker.mjs +0 -116
  918. package/lib/schema-component/antd/icon-picker/__tests__/icon-picker.test.mjs +0 -43
  919. package/lib/schema-component/antd/icon-picker/demos/icon-picker.mjs +0 -57
  920. package/lib/schema-component/antd/icon-picker/index.mjs +0 -5
  921. package/lib/schema-component/antd/index.css +0 -30
  922. package/lib/schema-component/antd/index.mjs +0 -137
  923. package/lib/schema-component/antd/input/EllipsisWithTooltip.mjs +0 -82
  924. package/lib/schema-component/antd/input/Input.mjs +0 -56
  925. package/lib/schema-component/antd/input/Json.mjs +0 -83
  926. package/lib/schema-component/antd/input/ReadPretty.mjs +0 -186
  927. package/lib/schema-component/antd/input/__tests__/Input.test.mjs +0 -141
  928. package/lib/schema-component/antd/input/demos/input.mjs +0 -57
  929. package/lib/schema-component/antd/input/demos/json.mjs +0 -63
  930. package/lib/schema-component/antd/input/demos/textarea.mjs +0 -85
  931. package/lib/schema-component/antd/input/demos/url.mjs +0 -59
  932. package/lib/schema-component/antd/input/index.mjs +0 -13
  933. package/lib/schema-component/antd/input/shared.mjs +0 -11
  934. package/lib/schema-component/antd/input-number/InputNumber.mjs +0 -37
  935. package/lib/schema-component/antd/input-number/ReadPretty.mjs +0 -161
  936. package/lib/schema-component/antd/input-number/__tests__/input-number.test.mjs +0 -152
  937. package/lib/schema-component/antd/input-number/demos/addonBefore&addonAfter.mjs +0 -65
  938. package/lib/schema-component/antd/input-number/demos/highPrecisionDecimals.mjs +0 -67
  939. package/lib/schema-component/antd/input-number/demos/inputNumber.mjs +0 -57
  940. package/lib/schema-component/antd/input-number/index.mjs +0 -5
  941. package/lib/schema-component/antd/list/List.Decorator.mjs +0 -135
  942. package/lib/schema-component/antd/list/List.Designer.mjs +0 -260
  943. package/lib/schema-component/antd/list/List.Item.mjs +0 -85
  944. package/lib/schema-component/antd/list/List.mjs +0 -129
  945. package/lib/schema-component/antd/list/List.style.mjs +0 -62
  946. package/lib/schema-component/antd/list/__tests__/list.test.mjs +0 -24
  947. package/lib/schema-component/antd/list/demos/demo1.mjs +0 -17
  948. package/lib/schema-component/antd/list/hooks.mjs +0 -16
  949. package/lib/schema-component/antd/list/index.mjs +0 -5
  950. package/lib/schema-component/antd/markdown/Markdown.Void.Designer.mjs +0 -45
  951. package/lib/schema-component/antd/markdown/Markdown.Void.mjs +0 -148
  952. package/lib/schema-component/antd/markdown/Markdown.mjs +0 -83
  953. package/lib/schema-component/antd/markdown/__tests__/markdown.test.mjs +0 -48
  954. package/lib/schema-component/antd/markdown/demos/demo1.mjs +0 -59
  955. package/lib/schema-component/antd/markdown/demos/demo2.mjs +0 -78
  956. package/lib/schema-component/antd/markdown/index.mjs +0 -5
  957. package/lib/schema-component/antd/markdown/markdown-it-plugins/mermaidPlugin.mjs +0 -73
  958. package/lib/schema-component/antd/markdown/md.mjs +0 -25
  959. package/lib/schema-component/antd/markdown/style.mjs +0 -233
  960. package/lib/schema-component/antd/markdown/util.mjs +0 -49
  961. package/lib/schema-component/antd/menu/Menu.Designer.mjs +0 -478
  962. package/lib/schema-component/antd/menu/Menu.mjs +0 -686
  963. package/lib/schema-component/antd/menu/Menu.styles.mjs +0 -85
  964. package/lib/schema-component/antd/menu/MenuItemInitializers/index.mjs +0 -17
  965. package/lib/schema-component/antd/menu/__tests__/menu.test.mjs +0 -65
  966. package/lib/schema-component/antd/menu/demos/demo1.mjs +0 -109
  967. package/lib/schema-component/antd/menu/demos/demo2.mjs +0 -112
  968. package/lib/schema-component/antd/menu/demos/demo3.mjs +0 -152
  969. package/lib/schema-component/antd/menu/index.mjs +0 -9
  970. package/lib/schema-component/antd/menu/locale.mjs +0 -11
  971. package/lib/schema-component/antd/menu/util.mjs +0 -56
  972. package/lib/schema-component/antd/nanoIDInput/NanoIDInput.mjs +0 -71
  973. package/lib/schema-component/antd/nanoIDInput/index.mjs +0 -5
  974. package/lib/schema-component/antd/page/FixedBlock.mjs +0 -118
  975. package/lib/schema-component/antd/page/FixedBlockDesignerItem.mjs +0 -72
  976. package/lib/schema-component/antd/page/Page.Settings.mjs +0 -167
  977. package/lib/schema-component/antd/page/Page.mjs +0 -317
  978. package/lib/schema-component/antd/page/PageTab.Settings.mjs +0 -108
  979. package/lib/schema-component/antd/page/PageTabDesigner.mjs +0 -98
  980. package/lib/schema-component/antd/page/__tests__/page.test.mjs +0 -33
  981. package/lib/schema-component/antd/page/demos/demo1.mjs +0 -52
  982. package/lib/schema-component/antd/page/hooks/useIsBlockInPage.mjs +0 -25
  983. package/lib/schema-component/antd/page/index.mjs +0 -13
  984. package/lib/schema-component/antd/page/style.mjs +0 -149
  985. package/lib/schema-component/antd/pagination/index.mjs +0 -48
  986. package/lib/schema-component/antd/password/Password.mjs +0 -102
  987. package/lib/schema-component/antd/password/PasswordStrength.mjs +0 -29
  988. package/lib/schema-component/antd/password/__tests__/password.test.mjs +0 -46
  989. package/lib/schema-component/antd/password/__tests__/utils.test.mjs +0 -27
  990. package/lib/schema-component/antd/password/demos/demo1.mjs +0 -59
  991. package/lib/schema-component/antd/password/demos/demo2.mjs +0 -62
  992. package/lib/schema-component/antd/password/index.mjs +0 -5
  993. package/lib/schema-component/antd/password/utils.mjs +0 -146
  994. package/lib/schema-component/antd/percent/Percent.mjs +0 -59
  995. package/lib/schema-component/antd/percent/__tests__/percent.test.mjs +0 -31
  996. package/lib/schema-component/antd/percent/demos/percent.mjs +0 -57
  997. package/lib/schema-component/antd/percent/index.mjs +0 -5
  998. package/lib/schema-component/antd/popover/Popover.mjs +0 -67
  999. package/lib/schema-component/antd/popover/index.mjs +0 -5
  1000. package/lib/schema-component/antd/preview/Preview.mjs +0 -324
  1001. package/lib/schema-component/antd/preview/__tests__/preview.test.mjs +0 -26
  1002. package/lib/schema-component/antd/preview/demos/demo1.mjs +0 -103
  1003. package/lib/schema-component/antd/preview/index.mjs +0 -5
  1004. package/lib/schema-component/antd/quick-edit/QuickEdit.mjs +0 -148
  1005. package/lib/schema-component/antd/quick-edit/index.mjs +0 -5
  1006. package/lib/schema-component/antd/radio/Radio.mjs +0 -62
  1007. package/lib/schema-component/antd/radio/__tests__/radio.test.mjs +0 -64
  1008. package/lib/schema-component/antd/radio/demos/demo1.mjs +0 -60
  1009. package/lib/schema-component/antd/radio/demos/demo2.mjs +0 -72
  1010. package/lib/schema-component/antd/radio/demos/demo3.mjs +0 -73
  1011. package/lib/schema-component/antd/radio/index.mjs +0 -5
  1012. package/lib/schema-component/antd/record-picker/InputRecordPicker.mjs +0 -308
  1013. package/lib/schema-component/antd/record-picker/ReadPrettyRecordPicker.mjs +0 -177
  1014. package/lib/schema-component/antd/record-picker/RecordPicker.mjs +0 -17
  1015. package/lib/schema-component/antd/record-picker/__tests__/record-picker.test.mjs +0 -44
  1016. package/lib/schema-component/antd/record-picker/demos/demo1.mjs +0 -198
  1017. package/lib/schema-component/antd/record-picker/demos/mockData.mjs +0 -214
  1018. package/lib/schema-component/antd/record-picker/index.mjs +0 -24
  1019. package/lib/schema-component/antd/record-picker/useFieldNames.mjs +0 -18
  1020. package/lib/schema-component/antd/record-picker/util.mjs +0 -59
  1021. package/lib/schema-component/antd/remote-select/ReadPretty.mjs +0 -71
  1022. package/lib/schema-component/antd/remote-select/RemoteSelect.mjs +0 -291
  1023. package/lib/schema-component/antd/remote-select/__tests__/remote-select.test.mjs +0 -33
  1024. package/lib/schema-component/antd/remote-select/demos/demo1.mjs +0 -75
  1025. package/lib/schema-component/antd/remote-select/index.mjs +0 -5
  1026. package/lib/schema-component/antd/remote-select/shared.mjs +0 -11
  1027. package/lib/schema-component/antd/rich-text/RichText.mjs +0 -85
  1028. package/lib/schema-component/antd/rich-text/__tests__/rich-text.test.mjs +0 -28
  1029. package/lib/schema-component/antd/rich-text/demos/demo1.mjs +0 -61
  1030. package/lib/schema-component/antd/rich-text/index.mjs +0 -5
  1031. package/lib/schema-component/antd/rich-text/style.mjs +0 -818
  1032. package/lib/schema-component/antd/scroll-area/ScrollArea.mjs +0 -63
  1033. package/lib/schema-component/antd/scroll-area/index.mjs +0 -5
  1034. package/lib/schema-component/antd/select/FormulaSelect.mjs +0 -263
  1035. package/lib/schema-component/antd/select/ReadPretty.mjs +0 -61
  1036. package/lib/schema-component/antd/select/Select.mjs +0 -214
  1037. package/lib/schema-component/antd/select/__tests__/select.test.mjs +0 -63
  1038. package/lib/schema-component/antd/select/__tests__/utils.test.mjs +0 -135
  1039. package/lib/schema-component/antd/select/demos/demo1.mjs +0 -91
  1040. package/lib/schema-component/antd/select/demos/demo2.mjs +0 -95
  1041. package/lib/schema-component/antd/select/demos/demo3.mjs +0 -105
  1042. package/lib/schema-component/antd/select/index.mjs +0 -7
  1043. package/lib/schema-component/antd/select/utils.mjs +0 -49
  1044. package/lib/schema-component/antd/space/index.mjs +0 -36
  1045. package/lib/schema-component/antd/table/Table.Array.Designer.mjs +0 -26
  1046. package/lib/schema-component/antd/table/Table.Array.mjs +0 -358
  1047. package/lib/schema-component/antd/table/Table.Column.ActionBar.mjs +0 -62
  1048. package/lib/schema-component/antd/table/Table.Column.Decorator.mjs +0 -77
  1049. package/lib/schema-component/antd/table/Table.Column.Designer.mjs +0 -173
  1050. package/lib/schema-component/antd/table/Table.Column.mjs +0 -22
  1051. package/lib/schema-component/antd/table/Table.Designer.mjs +0 -32
  1052. package/lib/schema-component/antd/table/Table.RowActionDesigner.mjs +0 -60
  1053. package/lib/schema-component/antd/table/Table.RowSelection.mjs +0 -47
  1054. package/lib/schema-component/antd/table/Table.Void.Designer.mjs +0 -278
  1055. package/lib/schema-component/antd/table/Table.Void.mjs +0 -155
  1056. package/lib/schema-component/antd/table/__tests__/table.test.mjs +0 -45
  1057. package/lib/schema-component/antd/table/demos/demo1.mjs +0 -77
  1058. package/lib/schema-component/antd/table/demos/demo2.mjs +0 -77
  1059. package/lib/schema-component/antd/table/demos/demo3.mjs +0 -77
  1060. package/lib/schema-component/antd/table/demos/demo4.mjs +0 -242
  1061. package/lib/schema-component/antd/table/index.mjs +0 -60
  1062. package/lib/schema-component/antd/table-v2/Table.ActionColumnDesigner.mjs +0 -60
  1063. package/lib/schema-component/antd/table-v2/Table.Column.ActionBar.mjs +0 -72
  1064. package/lib/schema-component/antd/table-v2/Table.Column.Decorator.mjs +0 -91
  1065. package/lib/schema-component/antd/table-v2/Table.Column.Designer.mjs +0 -514
  1066. package/lib/schema-component/antd/table-v2/Table.Column.mjs +0 -23
  1067. package/lib/schema-component/antd/table-v2/Table.Designer.mjs +0 -32
  1068. package/lib/schema-component/antd/table-v2/Table.Index.mjs +0 -22
  1069. package/lib/schema-component/antd/table-v2/Table.mjs +0 -574
  1070. package/lib/schema-component/antd/table-v2/Table.styles.mjs +0 -146
  1071. package/lib/schema-component/antd/table-v2/TableBlockDesigner.mjs +0 -392
  1072. package/lib/schema-component/antd/table-v2/TableField.mjs +0 -77
  1073. package/lib/schema-component/antd/table-v2/TableSelector.mjs +0 -9
  1074. package/lib/schema-component/antd/table-v2/TableSelectorDesigner.mjs +0 -347
  1075. package/lib/schema-component/antd/table-v2/__tests__/table-v2.test.mjs +0 -31
  1076. package/lib/schema-component/antd/table-v2/components/ColumnFieldProvider.mjs +0 -59
  1077. package/lib/schema-component/antd/table-v2/demos/collections.mjs +0 -1563
  1078. package/lib/schema-component/antd/table-v2/demos/demo1.mjs +0 -251
  1079. package/lib/schema-component/antd/table-v2/demos/demo2.mjs +0 -145
  1080. package/lib/schema-component/antd/table-v2/index.mjs +0 -52
  1081. package/lib/schema-component/antd/table-v2/utils.mjs +0 -20
  1082. package/lib/schema-component/antd/tabs/Tabs.Designer.mjs +0 -159
  1083. package/lib/schema-component/antd/tabs/Tabs.mjs +0 -141
  1084. package/lib/schema-component/antd/tabs/__tests__/tabs.test.mjs +0 -29
  1085. package/lib/schema-component/antd/tabs/context.mjs +0 -23
  1086. package/lib/schema-component/antd/tabs/demos/demo1.mjs +0 -86
  1087. package/lib/schema-component/antd/tabs/index.mjs +0 -7
  1088. package/lib/schema-component/antd/time-picker/ReadPretty.mjs +0 -42
  1089. package/lib/schema-component/antd/time-picker/TimePicker.mjs +0 -40
  1090. package/lib/schema-component/antd/time-picker/__tests__/time-picker.test.mjs +0 -68
  1091. package/lib/schema-component/antd/time-picker/demos/demo1.mjs +0 -59
  1092. package/lib/schema-component/antd/time-picker/demos/demo2.mjs +0 -59
  1093. package/lib/schema-component/antd/time-picker/index.mjs +0 -5
  1094. package/lib/schema-component/antd/tree/Tree.mjs +0 -115
  1095. package/lib/schema-component/antd/tree/index.mjs +0 -10
  1096. package/lib/schema-component/antd/tree-select/ReadPretty.mjs +0 -91
  1097. package/lib/schema-component/antd/tree-select/TreeSelect.mjs +0 -37
  1098. package/lib/schema-component/antd/tree-select/__tests__/tree-select.test.mjs +0 -29
  1099. package/lib/schema-component/antd/tree-select/demos/demo1.mjs +0 -103
  1100. package/lib/schema-component/antd/tree-select/index.mjs +0 -5
  1101. package/lib/schema-component/antd/unixTimestamp/UnixTimestamp.mjs +0 -69
  1102. package/lib/schema-component/antd/unixTimestamp/index.mjs +0 -5
  1103. package/lib/schema-component/antd/upload/ReadPretty.mjs +0 -249
  1104. package/lib/schema-component/antd/upload/Upload.mjs +0 -394
  1105. package/lib/schema-component/antd/upload/__tests__/upload.test.mjs +0 -31
  1106. package/lib/schema-component/antd/upload/demos/apiClient.mjs +0 -51
  1107. package/lib/schema-component/antd/upload/demos/demo1.mjs +0 -71
  1108. package/lib/schema-component/antd/upload/demos/demo2.mjs +0 -137
  1109. package/lib/schema-component/antd/upload/index.mjs +0 -5
  1110. package/lib/schema-component/antd/upload/placeholder.mjs +0 -66
  1111. package/lib/schema-component/antd/upload/shared.mjs +0 -254
  1112. package/lib/schema-component/antd/upload/style.mjs +0 -81
  1113. package/lib/schema-component/antd/upload/type.d.mjs +0 -7
  1114. package/lib/schema-component/antd/variable/CodeMirror.mjs +0 -124
  1115. package/lib/schema-component/antd/variable/Input.mjs +0 -384
  1116. package/lib/schema-component/antd/variable/JSONInput.mjs +0 -57
  1117. package/lib/schema-component/antd/variable/RawTextArea.mjs +0 -125
  1118. package/lib/schema-component/antd/variable/TextArea.mjs +0 -504
  1119. package/lib/schema-component/antd/variable/Variable.mjs +0 -57
  1120. package/lib/schema-component/antd/variable/VariableSelect.mjs +0 -101
  1121. package/lib/schema-component/antd/variable/VariableSelect.style.mjs +0 -36
  1122. package/lib/schema-component/antd/variable/XButton.mjs +0 -35
  1123. package/lib/schema-component/antd/variable/__tests__/variable.test.mjs +0 -66
  1124. package/lib/schema-component/antd/variable/demos/demo1.mjs +0 -63
  1125. package/lib/schema-component/antd/variable/demos/demo2.mjs +0 -63
  1126. package/lib/schema-component/antd/variable/demos/demo3.mjs +0 -63
  1127. package/lib/schema-component/antd/variable/index.mjs +0 -5
  1128. package/lib/schema-component/antd/variable/style.mjs +0 -186
  1129. package/lib/schema-component/common/dnd-context/index.mjs +0 -124
  1130. package/lib/schema-component/common/index.mjs +0 -7
  1131. package/lib/schema-component/common/infinite-scroll/infinite-scroll.mjs +0 -153
  1132. package/lib/schema-component/common/infinite-scroll/style.mjs +0 -36
  1133. package/lib/schema-component/common/sortable-item/SortableItem.mjs +0 -166
  1134. package/lib/schema-component/common/sortable-item/index.mjs +0 -5
  1135. package/lib/schema-component/common/utils/logic.mjs +0 -578
  1136. package/lib/schema-component/common/utils/uitls.mjs +0 -155
  1137. package/lib/schema-component/context.mjs +0 -10
  1138. package/lib/schema-component/core/DesignableSwitch.mjs +0 -67
  1139. package/lib/schema-component/core/FormProvider.mjs +0 -70
  1140. package/lib/schema-component/core/RemoteSchemaComponent.mjs +0 -72
  1141. package/lib/schema-component/core/SchemaComponent.mjs +0 -86
  1142. package/lib/schema-component/core/SchemaComponentOptions.mjs +0 -62
  1143. package/lib/schema-component/core/SchemaComponentPlugin.mjs +0 -22
  1144. package/lib/schema-component/core/SchemaComponentProvider.mjs +0 -116
  1145. package/lib/schema-component/core/index.mjs +0 -17
  1146. package/lib/schema-component/demos/demo1.mjs +0 -111
  1147. package/lib/schema-component/demos/demo2.mjs +0 -40
  1148. package/lib/schema-component/demos/demo3.mjs +0 -41
  1149. package/lib/schema-component/demos/demo4.mjs +0 -41
  1150. package/lib/schema-component/hooks/__tests__/designable.test.mjs +0 -564
  1151. package/lib/schema-component/hooks/__tests__/splitWrapSchema.test.mjs +0 -98
  1152. package/lib/schema-component/hooks/index.mjs +0 -27
  1153. package/lib/schema-component/hooks/useAttach.mjs +0 -24
  1154. package/lib/schema-component/hooks/useCompile.mjs +0 -59
  1155. package/lib/schema-component/hooks/useComponent.mjs +0 -26
  1156. package/lib/schema-component/hooks/useDesignable.mjs +0 -858
  1157. package/lib/schema-component/hooks/useDesigner.mjs +0 -36
  1158. package/lib/schema-component/hooks/useFieldComponentOptions.mjs +0 -106
  1159. package/lib/schema-component/hooks/useFieldModeOptions.mjs +0 -304
  1160. package/lib/schema-component/hooks/useFieldProps.mjs +0 -27
  1161. package/lib/schema-component/hooks/useFieldTitle.mjs +0 -37
  1162. package/lib/schema-component/hooks/useProps.mjs +0 -22
  1163. package/lib/schema-component/hooks/useSchemaComponentContext.mjs +0 -15
  1164. package/lib/schema-component/hooks/useTableSize.mjs +0 -40
  1165. package/lib/schema-component/index.mjs +0 -15
  1166. package/lib/schema-component/types.mjs +0 -7
  1167. package/lib/schema-initializer/SchemaInitializerPlugin.mjs +0 -292
  1168. package/lib/schema-initializer/buttons/CustomFormItemInitializers.mjs +0 -71
  1169. package/lib/schema-initializer/buttons/FormItemInitializers.mjs +0 -187
  1170. package/lib/schema-initializer/buttons/RecordBlockInitializers.mjs +0 -460
  1171. package/lib/schema-initializer/buttons/SubTableActionInitializers.mjs +0 -41
  1172. package/lib/schema-initializer/buttons/TabPaneInitializers.mjs +0 -232
  1173. package/lib/schema-initializer/buttons/index.mjs +0 -16
  1174. package/lib/schema-initializer/components/CreateRecordAction.mjs +0 -414
  1175. package/lib/schema-initializer/components/DeletedField.mjs +0 -25
  1176. package/lib/schema-initializer/components/assigned-field/AssignedField.mjs +0 -177
  1177. package/lib/schema-initializer/components/assigned-field/index.mjs +0 -5
  1178. package/lib/schema-initializer/components/index.mjs +0 -7
  1179. package/lib/schema-initializer/demos/basic.mjs +0 -81
  1180. package/lib/schema-initializer/demos/build-type.mjs +0 -96
  1181. package/lib/schema-initializer/demos/custom-button.mjs +0 -114
  1182. package/lib/schema-initializer/demos/custom-items-component.mjs +0 -116
  1183. package/lib/schema-initializer/demos/dynamic-visible-children.mjs +0 -94
  1184. package/lib/schema-initializer/demos/insert-schema-action.mjs +0 -111
  1185. package/lib/schema-initializer/demos/insert-schema-basic.mjs +0 -133
  1186. package/lib/schema-initializer/demos/insert-schema-form-item.mjs +0 -153
  1187. package/lib/schema-initializer/demos/nested-items.mjs +0 -170
  1188. package/lib/schema-initializer/hooks/useGetAriaLabelOfSchemaInitializer.mjs +0 -36
  1189. package/lib/schema-initializer/index.mjs +0 -29
  1190. package/lib/schema-initializer/items/ActionInitializer.mjs +0 -29
  1191. package/lib/schema-initializer/items/BlockInitializer.mjs +0 -43
  1192. package/lib/schema-initializer/items/CreateFilterActionInitializer.mjs +0 -33
  1193. package/lib/schema-initializer/items/CreateResetActionInitializer.mjs +0 -28
  1194. package/lib/schema-initializer/items/CustomFilterFormItemInitializer.mjs +0 -540
  1195. package/lib/schema-initializer/items/CustomizeActionInitializer.mjs +0 -27
  1196. package/lib/schema-initializer/items/DataBlockInitializer.mjs +0 -393
  1197. package/lib/schema-initializer/items/DeleteEventActionInitializer.mjs +0 -36
  1198. package/lib/schema-initializer/items/FilterBlockInitializer.mjs +0 -9
  1199. package/lib/schema-initializer/items/G2PlotInitializer.mjs +0 -28
  1200. package/lib/schema-initializer/items/InitializerWithSwitch.mjs +0 -47
  1201. package/lib/schema-initializer/items/RecordAssociationBlockInitializer.mjs +0 -86
  1202. package/lib/schema-initializer/items/RecordAssociationDetailsBlockInitializer.mjs +0 -84
  1203. package/lib/schema-initializer/items/RecordAssociationFormBlockInitializer.mjs +0 -119
  1204. package/lib/schema-initializer/items/RecordAssociationGridCardBlockInitializer.mjs +0 -86
  1205. package/lib/schema-initializer/items/RecordAssociationListBlockInitializer.mjs +0 -84
  1206. package/lib/schema-initializer/items/RecordReadPrettyAssociationFormBlockInitializer.mjs +0 -118
  1207. package/lib/schema-initializer/items/SelectActionInitializer.mjs +0 -76
  1208. package/lib/schema-initializer/items/SubmitActionInitializer.mjs +0 -34
  1209. package/lib/schema-initializer/items/TableActionColumnInitializer.mjs +0 -57
  1210. package/lib/schema-initializer/items/index.mjs +0 -50
  1211. package/lib/schema-initializer/style.mjs +0 -23
  1212. package/lib/schema-initializer/utils.mjs +0 -1535
  1213. package/lib/schema-items/GeneralSchemaItems.mjs +0 -181
  1214. package/lib/schema-items/GeneralSettings.mjs +0 -226
  1215. package/lib/schema-items/OpenModeSchemaItems.mjs +0 -215
  1216. package/lib/schema-items/index.mjs +0 -7
  1217. package/lib/schema-settings/DataTemplates/FormDataTemplates.mjs +0 -332
  1218. package/lib/schema-settings/DataTemplates/TreeLabel.mjs +0 -42
  1219. package/lib/schema-settings/DataTemplates/components/AsDefaultTemplate.mjs +0 -64
  1220. package/lib/schema-settings/DataTemplates/components/DataTemplateTitle.mjs +0 -305
  1221. package/lib/schema-settings/DataTemplates/components/DataTemplateTitle.style.mjs +0 -15
  1222. package/lib/schema-settings/DataTemplates/components/Designer.mjs +0 -208
  1223. package/lib/schema-settings/DataTemplates/hooks/useCollectionState.mjs +0 -348
  1224. package/lib/schema-settings/DataTemplates/index.mjs +0 -5
  1225. package/lib/schema-settings/DataTemplates/utils.mjs +0 -300
  1226. package/lib/schema-settings/DateFormat/ExpiresRadio.mjs +0 -160
  1227. package/lib/schema-settings/EditCustomDefaultValue.mjs +0 -137
  1228. package/lib/schema-settings/EditFormulaTitleField.mjs +0 -127
  1229. package/lib/schema-settings/EnableChildCollections/DynamicComponent.mjs +0 -91
  1230. package/lib/schema-settings/EnableChildCollections/index.mjs +0 -129
  1231. package/lib/schema-settings/GeneralSchemaDesigner.mjs +0 -328
  1232. package/lib/schema-settings/LinkageRules/DynamicComponent.mjs +0 -79
  1233. package/lib/schema-settings/LinkageRules/LinkageRuleAction.mjs +0 -272
  1234. package/lib/schema-settings/LinkageRules/LinkageRuleActionGroup.mjs +0 -116
  1235. package/lib/schema-settings/LinkageRules/ValueDynamicComponent.mjs +0 -200
  1236. package/lib/schema-settings/LinkageRules/Variables.mjs +0 -119
  1237. package/lib/schema-settings/LinkageRules/action-hooks.mjs +0 -128
  1238. package/lib/schema-settings/LinkageRules/components/EnableLinkage.mjs +0 -56
  1239. package/lib/schema-settings/LinkageRules/components/LinkageHeader.mjs +0 -304
  1240. package/lib/schema-settings/LinkageRules/components/LinkageHeader.style.mjs +0 -15
  1241. package/lib/schema-settings/LinkageRules/context.mjs +0 -14
  1242. package/lib/schema-settings/LinkageRules/index.mjs +0 -247
  1243. package/lib/schema-settings/LinkageRules/type.mjs +0 -18
  1244. package/lib/schema-settings/LinkageRules/useValues.mjs +0 -84
  1245. package/lib/schema-settings/SchemaSettingCollection.mjs +0 -73
  1246. package/lib/schema-settings/SchemaSettingComponent.mjs +0 -62
  1247. package/lib/schema-settings/SchemaSettings.mjs +0 -1517
  1248. package/lib/schema-settings/SchemaSettingsDataScope.mjs +0 -152
  1249. package/lib/schema-settings/SchemaSettingsDateFormat.mjs +0 -231
  1250. package/lib/schema-settings/SchemaSettingsDefaultValue.mjs +0 -274
  1251. package/lib/schema-settings/SchemaSettingsNumberFormat.mjs +0 -205
  1252. package/lib/schema-settings/SchemaSettingsPlugin.mjs +0 -265
  1253. package/lib/schema-settings/SchemaSettingsSortingRule.mjs +0 -155
  1254. package/lib/schema-settings/VariableInput/VariableInput.mjs +0 -260
  1255. package/lib/schema-settings/VariableInput/hooks/index.mjs +0 -9
  1256. package/lib/schema-settings/VariableInput/hooks/useBaseVariable.mjs +0 -228
  1257. package/lib/schema-settings/VariableInput/hooks/useBlockCollection.mjs +0 -16
  1258. package/lib/schema-settings/VariableInput/hooks/useContextAssociationFields.mjs +0 -126
  1259. package/lib/schema-settings/VariableInput/hooks/useDateVariable.mjs +0 -179
  1260. package/lib/schema-settings/VariableInput/hooks/useFilterVariable.mjs +0 -77
  1261. package/lib/schema-settings/VariableInput/hooks/useFormVariable.mjs +0 -85
  1262. package/lib/schema-settings/VariableInput/hooks/useIterationVariable.mjs +0 -94
  1263. package/lib/schema-settings/VariableInput/hooks/useParentRecordVariable.mjs +0 -71
  1264. package/lib/schema-settings/VariableInput/hooks/usePopupVariable.mjs +0 -37
  1265. package/lib/schema-settings/VariableInput/hooks/useRecordVariable.mjs +0 -64
  1266. package/lib/schema-settings/VariableInput/hooks/useRoleVariable.mjs +0 -64
  1267. package/lib/schema-settings/VariableInput/hooks/useUserVariable.mjs +0 -67
  1268. package/lib/schema-settings/VariableInput/hooks/useVariableOptions.mjs +0 -140
  1269. package/lib/schema-settings/VariableInput/index.mjs +0 -7
  1270. package/lib/schema-settings/VariableInput/type.mjs +0 -4
  1271. package/lib/schema-settings/VariableInput/utils/formatVariableScop.mjs +0 -16
  1272. package/lib/schema-settings/demos/basic.mjs +0 -75
  1273. package/lib/schema-settings/demos/built-type.mjs +0 -157
  1274. package/lib/schema-settings/demos/custom-component.mjs +0 -58
  1275. package/lib/schema-settings/demos/demo3.mjs +0 -120
  1276. package/lib/schema-settings/demos/schema-basic.mjs +0 -84
  1277. package/lib/schema-settings/filter-form/FormFilterScope.mjs +0 -147
  1278. package/lib/schema-settings/filter-form/context.mjs +0 -14
  1279. package/lib/schema-settings/hooks/useFilterFormCustomProps.mjs +0 -22
  1280. package/lib/schema-settings/hooks/useGetAriaLabelOfDesigner.mjs +0 -39
  1281. package/lib/schema-settings/hooks/useIsAllowToSetDefaultValue.mjs +0 -109
  1282. package/lib/schema-settings/hooks/useIsShowMultipleSwitch.mjs +0 -27
  1283. package/lib/schema-settings/hooks/useParseDataScopeFilter.mjs +0 -83
  1284. package/lib/schema-settings/index.mjs +0 -39
  1285. package/lib/schema-settings/isPatternDisabled.mjs +0 -8
  1286. package/lib/schema-settings/styles.mjs +0 -92
  1287. package/lib/schema-settings/types.mjs +0 -4
  1288. package/lib/schema-templates/BlockTemplate.mjs +0 -63
  1289. package/lib/schema-templates/BlockTemplateDetails.mjs +0 -126
  1290. package/lib/schema-templates/BlockTemplatePage.mjs +0 -55
  1291. package/lib/schema-templates/SchemaTemplateManagerProvider.mjs +0 -103
  1292. package/lib/schema-templates/collections/uiSchemaTemplates.mjs +0 -22
  1293. package/lib/schema-templates/index.mjs +0 -11
  1294. package/lib/schema-templates/schemas/CollectionTitle.mjs +0 -52
  1295. package/lib/schema-templates/schemas/uiSchemaTemplates.mjs +0 -249
  1296. package/lib/schema-templates/useSchemaTemplateManager.mjs +0 -119
  1297. package/lib/style/css-variable/CSSVariableProvider.mjs +0 -90
  1298. package/lib/style/css-variable/index.mjs +0 -9
  1299. package/lib/style/index.mjs +0 -23
  1300. package/lib/style/theme/AntdAppProvider.mjs +0 -54
  1301. package/lib/style/theme/defaultTheme.mjs +0 -24
  1302. package/lib/style/theme/index.mjs +0 -96
  1303. package/lib/style/theme/type.mjs +0 -4
  1304. package/lib/style/useToken.mjs +0 -13
  1305. package/lib/testUtils/index.mjs +0 -5
  1306. package/lib/testUtils/mockAPIClient.mjs +0 -57
  1307. package/lib/user/ChangePassword.mjs +0 -180
  1308. package/lib/user/CurrentUser.mjs +0 -282
  1309. package/lib/user/CurrentUserProvider.mjs +0 -89
  1310. package/lib/user/CurrentUserSettingsMenuProvider.mjs +0 -88
  1311. package/lib/user/EditProfile.mjs +0 -172
  1312. package/lib/user/LanguageSettings.mjs +0 -70
  1313. package/lib/user/SwitchRole.mjs +0 -66
  1314. package/lib/user/VerificationCode.mjs +0 -115
  1315. package/lib/user/__tests__/current-user-settings-menu-provider.test.mjs +0 -64
  1316. package/lib/user/index.mjs +0 -9
  1317. package/lib/variables/VariablesProvider.mjs +0 -319
  1318. package/lib/variables/__tests__/useVariables.test.mjs +0 -473
  1319. package/lib/variables/__tests__/utils/filterEmptyValues.test.mjs +0 -52
  1320. package/lib/variables/__tests__/utils/getPath.test.mjs +0 -10
  1321. package/lib/variables/__tests__/utils/getVariableName.test.mjs +0 -10
  1322. package/lib/variables/__tests__/utils/isVariable.test.mjs +0 -28
  1323. package/lib/variables/__tests__/utils/transformVariableValue.test.mjs +0 -142
  1324. package/lib/variables/__tests__/utils/uniq.test.mjs +0 -83
  1325. package/lib/variables/constants.mjs +0 -5
  1326. package/lib/variables/hooks/useBuiltinVariables.mjs +0 -80
  1327. package/lib/variables/hooks/useContextVariable.mjs +0 -38
  1328. package/lib/variables/hooks/useLocalVariables.mjs +0 -102
  1329. package/lib/variables/hooks/useVariables.mjs +0 -16
  1330. package/lib/variables/index.mjs +0 -36
  1331. package/lib/variables/types.mjs +0 -4
  1332. package/lib/variables/utils/filterEmptyValues.mjs +0 -12
  1333. package/lib/variables/utils/getAction.mjs +0 -14
  1334. package/lib/variables/utils/getPath.mjs +0 -19
  1335. package/lib/variables/utils/getVariableName.mjs +0 -25
  1336. package/lib/variables/utils/hasRequested.mjs +0 -24
  1337. package/lib/variables/utils/isVariable.mjs +0 -15
  1338. package/lib/variables/utils/transformVariableValue.mjs +0 -55
  1339. package/lib/variables/utils/uniq.mjs +0 -26
@@ -1,1517 +0,0 @@
1
- import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__ from "react/jsx-runtime";
2
- import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
3
- import * as __WEBPACK_EXTERNAL_MODULE__tachybase_components__ from "@tachybase/components";
4
- import * as __WEBPACK_EXTERNAL_MODULE__tachybase_schema__ from "@tachybase/schema";
5
- import * as __WEBPACK_EXTERNAL_MODULE__tachybase_utils_client__ from "@tachybase/utils/client";
6
- import * as __WEBPACK_EXTERNAL_MODULE_antd__ from "antd";
7
- import * as __WEBPACK_EXTERNAL_MODULE_antd_style__ from "antd-style";
8
- import * as __WEBPACK_EXTERNAL_MODULE_lodash__ from "lodash";
9
- import * as __WEBPACK_EXTERNAL_MODULE_react_dom__ from "react-dom";
10
- import * as __WEBPACK_EXTERNAL_MODULE_react_i18next__ from "react-i18next";
11
- import * as __WEBPACK_EXTERNAL_MODULE_react_router_dom__ from "react-router-dom";
12
- import * as __WEBPACK_EXTERNAL_MODULE__index_mjs__ from "../index.mjs";
13
- import * as __WEBPACK_EXTERNAL_MODULE__block_provider_index_mjs__ from "../block-provider/index.mjs";
14
- import * as __WEBPACK_EXTERNAL_MODULE__block_provider_hooks_index_mjs__ from "../block-provider/hooks/index.mjs";
15
- import * as __WEBPACK_EXTERNAL_MODULE__common_SelectWithTitle_mjs__ from "../common/SelectWithTitle.mjs";
16
- import * as __WEBPACK_EXTERNAL_MODULE__common_useNiceDropdownHeight_mjs__ from "../common/useNiceDropdownHeight.mjs";
17
- import * as __WEBPACK_EXTERNAL_MODULE__data_source_data_source_DataSourceManagerProvider_mjs__ from "../data-source/data-source/DataSourceManagerProvider.mjs";
18
- import * as __WEBPACK_EXTERNAL_MODULE__data_source_data_source_DataSourceProvider_mjs__ from "../data-source/data-source/DataSourceProvider.mjs";
19
- import * as __WEBPACK_EXTERNAL_MODULE__filter_provider_utils_mjs__ from "../filter-provider/utils.mjs";
20
- import * as __WEBPACK_EXTERNAL_MODULE__flag_provider_index_mjs__ from "../flag-provider/index.mjs";
21
- import * as __WEBPACK_EXTERNAL_MODULE__hooks_useMenuItem_mjs__ from "../hooks/useMenuItem.mjs";
22
- import * as __WEBPACK_EXTERNAL_MODULE__modules_variable_DeclareVariable_mjs__ from "../modules/variable/DeclareVariable.mjs";
23
- import * as __WEBPACK_EXTERNAL_MODULE__modules_variable_useVariable_mjs__ from "../modules/variable/useVariable.mjs";
24
- import * as __WEBPACK_EXTERNAL_MODULE__schema_component_antd_association_field_hooks_mjs__ from "../schema-component/antd/association-field/hooks.mjs";
25
- import * as __WEBPACK_EXTERNAL_MODULE__schema_component_antd_association_filter_utilts_mjs__ from "../schema-component/antd/association-filter/utilts.mjs";
26
- import * as __WEBPACK_EXTERNAL_MODULE__schema_templates_index_mjs__ from "../schema-templates/index.mjs";
27
- import * as __WEBPACK_EXTERNAL_MODULE__schema_templates_BlockTemplate_mjs__ from "../schema-templates/BlockTemplate.mjs";
28
- import * as __WEBPACK_EXTERNAL_MODULE__variables_index_mjs__ from "../variables/index.mjs";
29
- import * as __WEBPACK_EXTERNAL_MODULE__DataTemplates_index_mjs__ from "./DataTemplates/index.mjs";
30
- import * as __WEBPACK_EXTERNAL_MODULE__EnableChildCollections_index_mjs__ from "./EnableChildCollections/index.mjs";
31
- import * as __WEBPACK_EXTERNAL_MODULE__EnableChildCollections_DynamicComponent_mjs__ from "./EnableChildCollections/DynamicComponent.mjs";
32
- import * as __WEBPACK_EXTERNAL_MODULE__LinkageRules_index_mjs__ from "./LinkageRules/index.mjs";
33
- import * as __WEBPACK_EXTERNAL_MODULE__LinkageRules_action_hooks_mjs__ from "./LinkageRules/action-hooks.mjs";
34
-
35
- ;// CONCATENATED MODULE: external "react/jsx-runtime"
36
-
37
- ;// CONCATENATED MODULE: external "react"
38
-
39
- ;// CONCATENATED MODULE: external "@tachybase/components"
40
-
41
- ;// CONCATENATED MODULE: external "@tachybase/schema"
42
-
43
- ;// CONCATENATED MODULE: external "@tachybase/utils/client"
44
-
45
- ;// CONCATENATED MODULE: external "antd"
46
-
47
- ;// CONCATENATED MODULE: external "antd-style"
48
-
49
- ;// CONCATENATED MODULE: external "lodash"
50
-
51
- ;// CONCATENATED MODULE: external "react-dom"
52
-
53
- ;// CONCATENATED MODULE: external "react-i18next"
54
-
55
- ;// CONCATENATED MODULE: external "react-router-dom"
56
-
57
- ;// CONCATENATED MODULE: external "../index.mjs"
58
-
59
- ;// CONCATENATED MODULE: external "../block-provider/index.mjs"
60
-
61
- ;// CONCATENATED MODULE: external "../block-provider/hooks/index.mjs"
62
-
63
- ;// CONCATENATED MODULE: external "../common/SelectWithTitle.mjs"
64
-
65
- ;// CONCATENATED MODULE: external "../common/useNiceDropdownHeight.mjs"
66
-
67
- ;// CONCATENATED MODULE: external "../data-source/data-source/DataSourceManagerProvider.mjs"
68
-
69
- ;// CONCATENATED MODULE: external "../data-source/data-source/DataSourceProvider.mjs"
70
-
71
- ;// CONCATENATED MODULE: external "../filter-provider/utils.mjs"
72
-
73
- ;// CONCATENATED MODULE: external "../flag-provider/index.mjs"
74
-
75
- ;// CONCATENATED MODULE: external "../hooks/useMenuItem.mjs"
76
-
77
- ;// CONCATENATED MODULE: external "../modules/variable/DeclareVariable.mjs"
78
-
79
- ;// CONCATENATED MODULE: external "../modules/variable/useVariable.mjs"
80
-
81
- ;// CONCATENATED MODULE: external "../schema-component/antd/association-field/hooks.mjs"
82
-
83
- ;// CONCATENATED MODULE: external "../schema-component/antd/association-filter/utilts.mjs"
84
-
85
- ;// CONCATENATED MODULE: external "../schema-templates/index.mjs"
86
-
87
- ;// CONCATENATED MODULE: external "../schema-templates/BlockTemplate.mjs"
88
-
89
- ;// CONCATENATED MODULE: external "../variables/index.mjs"
90
-
91
- ;// CONCATENATED MODULE: external "./DataTemplates/index.mjs"
92
-
93
- ;// CONCATENATED MODULE: external "./EnableChildCollections/index.mjs"
94
-
95
- ;// CONCATENATED MODULE: external "./EnableChildCollections/DynamicComponent.mjs"
96
-
97
- ;// CONCATENATED MODULE: external "./LinkageRules/index.mjs"
98
-
99
- ;// CONCATENATED MODULE: external "./LinkageRules/action-hooks.mjs"
100
-
101
- ;// CONCATENATED MODULE: ./packages/client/src/schema-settings/SchemaSettings.tsx?__rslib_entry__
102
- function _tagged_template_literal(strings, raw) {
103
- if (!raw) {
104
- raw = strings.slice(0);
105
- }
106
- return Object.freeze(Object.defineProperties(strings, {
107
- raw: {
108
- value: Object.freeze(raw)
109
- }
110
- }));
111
- }
112
- function _templateObject() {
113
- const data = _tagged_template_literal([
114
- "\n .ant-dropdown-menu-item-group-list {\n max-height: 300px;\n overflow-y: auto;\n }\n "
115
- ]);
116
- _templateObject = function() {
117
- return data;
118
- };
119
- return data;
120
- }
121
- function _templateObject1() {
122
- const data = _tagged_template_literal([
123
- "\n // screen > 576px\n @media (min-width: 576px) {\n min-width: 520px;\n }\n\n // screen <= 576px\n @media (max-width: 576px) {\n min-width: 320px;\n }\n "
124
- ]);
125
- _templateObject1 = function() {
126
- return data;
127
- };
128
- return data;
129
- }
130
-
131
-
132
-
133
-
134
-
135
-
136
-
137
-
138
-
139
-
140
-
141
-
142
-
143
-
144
-
145
-
146
-
147
-
148
-
149
-
150
-
151
-
152
-
153
-
154
-
155
-
156
-
157
-
158
-
159
-
160
-
161
-
162
-
163
- const SchemaSettingsContext = /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react__.createContext)(null);
164
- SchemaSettingsContext.displayName = 'SchemaSettingsContext';
165
- function useSchemaSettings() {
166
- return (0,__WEBPACK_EXTERNAL_MODULE_react__.useContext)(SchemaSettingsContext);
167
- }
168
- const useStyles = (0,__WEBPACK_EXTERNAL_MODULE_antd_style__.createStyles)((param)=>{
169
- let { css } = param;
170
- return {
171
- menu: css(_templateObject()),
172
- modal: css(_templateObject1())
173
- };
174
- });
175
- const SchemaSettingsProvider = (props)=>{
176
- const { children, fieldSchema, ...others } = props;
177
- const { getTemplateBySchema } = (0,__WEBPACK_EXTERNAL_MODULE__schema_templates_index_mjs__.useSchemaTemplateManager)();
178
- const { name } = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useCollection_deprecated)();
179
- const template = getTemplateBySchema(fieldSchema);
180
- return /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(SchemaSettingsContext.Provider, {
181
- value: {
182
- collectionName: name,
183
- template,
184
- fieldSchema,
185
- ...others
186
- },
187
- children: children
188
- });
189
- };
190
- const SchemaSettingsDropdown = (props)=>{
191
- const { title, dn, ...others } = props;
192
- const { styles } = useStyles();
193
- const [visible, setVisible] = (0,__WEBPACK_EXTERNAL_MODULE_react__.useState)(false);
194
- const { Component, getMenuItems } = (0,__WEBPACK_EXTERNAL_MODULE__hooks_useMenuItem_mjs__.useMenuItem)();
195
- const [, startTransition] = (0,__WEBPACK_EXTERNAL_MODULE_react__.useTransition)();
196
- const dropdownMaxHeight = (0,__WEBPACK_EXTERNAL_MODULE__common_useNiceDropdownHeight_mjs__.useNiceDropdownMaxHeight)([
197
- visible
198
- ]);
199
- const changeMenu = (0,__WEBPACK_EXTERNAL_MODULE_react__.useCallback)((nextOpen, info)=>{
200
- if (info.source === 'trigger' || nextOpen) {
201
- // 当鼠标快速滑过时,终止菜单的渲染,防止卡顿
202
- startTransition(()=>{
203
- setVisible(nextOpen);
204
- });
205
- }
206
- }, []);
207
- const items = getMenuItems(()=>props.children);
208
- return /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)(SchemaSettingsProvider, {
209
- visible: visible,
210
- setVisible: setVisible,
211
- dn: dn,
212
- ...others,
213
- children: [
214
- /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(Component, {}),
215
- /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_antd__.Dropdown, {
216
- open: visible,
217
- onOpenChange: changeMenu,
218
- overlayClassName: styles.menu,
219
- menu: {
220
- items,
221
- style: {
222
- maxHeight: dropdownMaxHeight,
223
- overflowY: 'auto'
224
- }
225
- },
226
- children: /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("div", {
227
- "data-testid": props['data-testid'],
228
- children: typeof title === 'string' ? /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("span", {
229
- children: title
230
- }) : title
231
- })
232
- })
233
- ]
234
- });
235
- };
236
- const SchemaSettingsTemplate = function Template(props) {
237
- const { componentName, collectionName, resourceName, needRender } = props;
238
- const { t } = (0,__WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
239
- const { getCollection } = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useCollectionManager_deprecated)();
240
- const { dn, setVisible, template, fieldSchema } = useSchemaSettings();
241
- const compile = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useCompile)();
242
- const api = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useAPIClient)();
243
- const { dn: tdn } = (0,__WEBPACK_EXTERNAL_MODULE__schema_templates_BlockTemplate_mjs__.useBlockTemplateContext)();
244
- const { saveAsTemplate, copyTemplateSchema } = (0,__WEBPACK_EXTERNAL_MODULE__schema_templates_index_mjs__.useSchemaTemplateManager)();
245
- const { theme } = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useGlobalTheme)();
246
- if (!collectionName && !needRender) {
247
- return null;
248
- }
249
- if (template) {
250
- return /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(SchemaSettingsItem, {
251
- title: "Convert reference to duplicate",
252
- onClick: async ()=>{
253
- const schema = await copyTemplateSchema(template);
254
- const removed = tdn.removeWithoutEmit();
255
- tdn.insertAfterEnd(schema, {
256
- async onSuccess () {
257
- await api.request({
258
- url: "/uiSchemas:remove/".concat(removed['x-uid'])
259
- });
260
- }
261
- });
262
- },
263
- children: t('Convert reference to duplicate')
264
- });
265
- }
266
- return /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(SchemaSettingsItem, {
267
- title: "Save as template",
268
- onClick: async ()=>{
269
- setVisible(false);
270
- const collection = collectionName && getCollection(collectionName);
271
- const values = await (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.FormDialog)(t('Save as template'), ()=>{
272
- return /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__tachybase_components__.FormLayout, {
273
- layout: 'vertical',
274
- children: /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__index_mjs__.SchemaComponent, {
275
- components: {
276
- Input: __WEBPACK_EXTERNAL_MODULE__tachybase_components__.Input,
277
- FormItem: __WEBPACK_EXTERNAL_MODULE__tachybase_components__.FormItem
278
- },
279
- schema: {
280
- type: 'object',
281
- properties: {
282
- name: {
283
- title: t('Template name'),
284
- required: true,
285
- default: collection ? "".concat(compile((collection === null || collection === void 0 ? void 0 : collection.title) || (collection === null || collection === void 0 ? void 0 : collection.name)), "_").concat(t(componentName)) : t(componentName),
286
- 'x-decorator': 'FormItem',
287
- 'x-component': 'Input'
288
- }
289
- }
290
- }
291
- })
292
- });
293
- }, theme).open({});
294
- const sdn = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.createDesignable)({
295
- t,
296
- api,
297
- refresh: dn.refresh.bind(dn),
298
- current: fieldSchema.parent
299
- });
300
- sdn.loadAPIClientEvents();
301
- const { key } = await saveAsTemplate({
302
- collectionName,
303
- resourceName,
304
- componentName,
305
- dataSourceKey: collection.dataSource,
306
- name: values.name,
307
- uid: fieldSchema['x-uid']
308
- });
309
- sdn.removeWithoutEmit(fieldSchema);
310
- sdn.insertBeforeEnd({
311
- type: 'void',
312
- 'x-component': 'BlockTemplate',
313
- 'x-component-props': {
314
- templateId: key
315
- }
316
- });
317
- },
318
- children: t('Save as template')
319
- });
320
- };
321
- const findGridSchema = (fieldSchema)=>{
322
- return fieldSchema.reduceProperties((buf, s)=>{
323
- if (s['x-component'] === 'FormV2' || s['x-component'] === 'Details') {
324
- const f = s.reduceProperties((buf, s)=>{
325
- if (s['x-component'] === 'Grid' || s['x-component'] === 'BlockTemplate') {
326
- return s;
327
- }
328
- return buf;
329
- }, null);
330
- if (f) {
331
- return f;
332
- }
333
- }
334
- return buf;
335
- }, null);
336
- };
337
- const findBlockTemplateSchema = (fieldSchema)=>{
338
- return fieldSchema.reduceProperties((buf, s)=>{
339
- if (s['x-component'] === 'FormV2' || s['x-component'] === 'Details') {
340
- const f = s.reduceProperties((buf, s)=>{
341
- if (s['x-component'] === 'BlockTemplate') {
342
- return s;
343
- }
344
- return buf;
345
- }, null);
346
- if (f) {
347
- return f;
348
- }
349
- }
350
- return buf;
351
- }, null);
352
- };
353
- const SchemaSettingsFormItemTemplate = function FormItemTemplate(props) {
354
- const { insertAdjacentPosition = 'beforeEnd', componentName, collectionName, resourceName } = props;
355
- const { t } = (0,__WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
356
- const compile = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useCompile)();
357
- const { getCollection } = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useCollectionManager_deprecated)();
358
- const { dn, setVisible, template, fieldSchema } = useSchemaSettings();
359
- const api = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useAPIClient)();
360
- const { saveAsTemplate, copyTemplateSchema } = (0,__WEBPACK_EXTERNAL_MODULE__schema_templates_index_mjs__.useSchemaTemplateManager)();
361
- const { theme } = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useGlobalTheme)();
362
- if (!collectionName) {
363
- return null;
364
- }
365
- if (template) {
366
- return /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(SchemaSettingsItem, {
367
- title: "Convert reference to duplicate",
368
- onClick: async ()=>{
369
- const schema = await copyTemplateSchema(template);
370
- const templateSchema = findBlockTemplateSchema(fieldSchema);
371
- const sdn = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.createDesignable)({
372
- t,
373
- api,
374
- refresh: dn.refresh.bind(dn),
375
- current: templateSchema.parent
376
- });
377
- sdn.loadAPIClientEvents();
378
- sdn.removeWithoutEmit(templateSchema);
379
- sdn.insertAdjacent(insertAdjacentPosition, schema, {
380
- async onSuccess () {
381
- await api.request({
382
- url: "/uiSchemas:remove/".concat(templateSchema['x-uid'])
383
- });
384
- }
385
- });
386
- fieldSchema['x-template-key'] = null;
387
- await api.request({
388
- url: "uiSchemas:patch",
389
- method: 'post',
390
- data: {
391
- 'x-uid': fieldSchema['x-uid'],
392
- 'x-template-key': null
393
- }
394
- });
395
- dn.refresh();
396
- },
397
- children: t('Convert reference to duplicate')
398
- });
399
- }
400
- return /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(SchemaSettingsItem, {
401
- title: "Save as block template",
402
- onClick: async ()=>{
403
- setVisible(false);
404
- const collection = collectionName && getCollection(collectionName);
405
- const gridSchema = findGridSchema(fieldSchema);
406
- const values = await (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.FormDialog)(t('Save as template'), ()=>{
407
- const componentTitle = {
408
- FormItem: t('Form'),
409
- ReadPrettyFormItem: t('Details')
410
- };
411
- return /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__tachybase_components__.FormLayout, {
412
- layout: 'vertical',
413
- children: /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__index_mjs__.SchemaComponent, {
414
- components: {
415
- Input: __WEBPACK_EXTERNAL_MODULE__tachybase_components__.Input,
416
- FormItem: __WEBPACK_EXTERNAL_MODULE__tachybase_components__.FormItem
417
- },
418
- schema: {
419
- type: 'object',
420
- properties: {
421
- name: {
422
- title: t('Template name'),
423
- required: true,
424
- default: collection ? "".concat(compile((collection === null || collection === void 0 ? void 0 : collection.title) || (collection === null || collection === void 0 ? void 0 : collection.name)), "_").concat(t(componentTitle[componentName] || componentName)) : t(componentTitle[componentName] || componentName),
425
- 'x-decorator': 'FormItem',
426
- 'x-component': 'Input'
427
- }
428
- }
429
- }
430
- })
431
- });
432
- }, theme).open({});
433
- const sdn = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.createDesignable)({
434
- t,
435
- api,
436
- refresh: dn.refresh.bind(dn),
437
- current: gridSchema.parent
438
- });
439
- sdn.loadAPIClientEvents();
440
- const { key } = await saveAsTemplate({
441
- collectionName,
442
- resourceName,
443
- componentName,
444
- dataSourceKey: collection.dataSource,
445
- name: values.name,
446
- uid: gridSchema['x-uid']
447
- });
448
- sdn.removeWithoutEmit(gridSchema);
449
- sdn.insertAdjacent(insertAdjacentPosition, {
450
- type: 'void',
451
- 'x-component': 'BlockTemplate',
452
- 'x-component-props': {
453
- templateId: key
454
- }
455
- });
456
- fieldSchema['x-template-key'] = key;
457
- await api.request({
458
- url: "uiSchemas:patch",
459
- method: 'post',
460
- data: {
461
- 'x-uid': fieldSchema['x-uid'],
462
- 'x-template-key': key
463
- }
464
- });
465
- },
466
- children: t('Save as block template')
467
- });
468
- };
469
- const SchemaSettingsItem = (props)=>{
470
- const { pushMenuItem } = (0,__WEBPACK_EXTERNAL_MODULE__hooks_useMenuItem_mjs__.useCollectMenuItems)();
471
- const { collectMenuItem } = (0,__WEBPACK_EXTERNAL_MODULE__hooks_useMenuItem_mjs__.useCollectMenuItem)();
472
- const { eventKey, title } = props;
473
- const { name } = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useSchemaSettingsItem)();
474
- if (false) {}
475
- const item = {
476
- key: title,
477
- ...__WEBPACK_EXTERNAL_MODULE_lodash__["default"].omit(props, [
478
- 'children',
479
- 'name'
480
- ]),
481
- eventKey: eventKey,
482
- onClick: (info)=>{
483
- var _props_onClick;
484
- info.domEvent.preventDefault();
485
- info.domEvent.stopPropagation();
486
- props === null || props === void 0 ? void 0 : (_props_onClick = props.onClick) === null || _props_onClick === void 0 ? void 0 : _props_onClick.call(props, info);
487
- },
488
- style: {
489
- minWidth: 120
490
- },
491
- label: props.children || props.title,
492
- title: props.title
493
- };
494
- pushMenuItem === null || pushMenuItem === void 0 ? void 0 : pushMenuItem(item);
495
- collectMenuItem === null || collectMenuItem === void 0 ? void 0 : collectMenuItem(item);
496
- return null;
497
- };
498
- const SchemaSettingsItemGroup = (props)=>{
499
- const { Component, getMenuItems } = (0,__WEBPACK_EXTERNAL_MODULE__hooks_useMenuItem_mjs__.useMenuItem)();
500
- const { pushMenuItem } = (0,__WEBPACK_EXTERNAL_MODULE__hooks_useMenuItem_mjs__.useCollectMenuItems)();
501
- const key = (0,__WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>(0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.uid)(), []);
502
- const item = {
503
- key,
504
- type: 'group',
505
- title: props.title,
506
- label: props.title,
507
- children: getMenuItems(()=>props.children)
508
- };
509
- pushMenuItem(item);
510
- return /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(Component, {});
511
- };
512
- const SchemaSettingsSubMenu = function SubMenu(props) {
513
- const { Component, getMenuItems } = (0,__WEBPACK_EXTERNAL_MODULE__hooks_useMenuItem_mjs__.useMenuItem)();
514
- const { pushMenuItem } = (0,__WEBPACK_EXTERNAL_MODULE__hooks_useMenuItem_mjs__.useCollectMenuItems)();
515
- const key = (0,__WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>(0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.uid)(), []);
516
- const item = {
517
- key,
518
- label: props.title,
519
- title: props.title,
520
- children: getMenuItems(()=>props.children)
521
- };
522
- pushMenuItem(item);
523
- return /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(Component, {});
524
- };
525
- const SchemaSettingsDivider = function Divider() {
526
- const { pushMenuItem } = (0,__WEBPACK_EXTERNAL_MODULE__hooks_useMenuItem_mjs__.useCollectMenuItems)();
527
- const key = (0,__WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>(0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.uid)(), []);
528
- const item = {
529
- key,
530
- type: 'divider'
531
- };
532
- pushMenuItem(item);
533
- return null;
534
- };
535
- const SchemaSettingsRemove = (props)=>{
536
- const { confirm, removeParentsIfNoChildren, breakRemoveOn } = props;
537
- const { dn, template } = useSchemaSettings();
538
- const { t } = (0,__WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
539
- const field = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useField)();
540
- const fieldSchema = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
541
- const ctx = (0,__WEBPACK_EXTERNAL_MODULE__schema_templates_BlockTemplate_mjs__.useBlockTemplateContext)();
542
- const form = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useForm)();
543
- const { modal } = __WEBPACK_EXTERNAL_MODULE_antd__.App.useApp();
544
- const { removeActiveFieldName } = (0,__WEBPACK_EXTERNAL_MODULE__block_provider_hooks_index_mjs__.useFormActiveFields)() || {};
545
- return /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(SchemaSettingsItem, {
546
- title: "Delete",
547
- eventKey: "remove",
548
- onClick: ()=>{
549
- modal.confirm({
550
- title: t('Delete block'),
551
- content: t('Are you sure you want to delete it?'),
552
- ...confirm,
553
- async onOk () {
554
- var _confirm_onOk;
555
- const options = {
556
- removeParentsIfNoChildren,
557
- breakRemoveOn
558
- };
559
- if (field === null || field === void 0 ? void 0 : field.required) {
560
- field.required = false;
561
- fieldSchema['required'] = false;
562
- }
563
- if (template && template.uid === fieldSchema['x-uid'] && (ctx === null || ctx === void 0 ? void 0 : ctx.dn)) {
564
- await (ctx === null || ctx === void 0 ? void 0 : ctx.dn.remove(null, options));
565
- } else {
566
- await dn.remove(null, options);
567
- }
568
- await (confirm === null || confirm === void 0 ? void 0 : (_confirm_onOk = confirm.onOk) === null || _confirm_onOk === void 0 ? void 0 : _confirm_onOk.call(confirm));
569
- delete form.values[fieldSchema.name];
570
- removeActiveFieldName === null || removeActiveFieldName === void 0 ? void 0 : removeActiveFieldName(fieldSchema.name);
571
- if ((field === null || field === void 0 ? void 0 : field.setInitialValue) && (field === null || field === void 0 ? void 0 : field.reset)) {
572
- field.setInitialValue(null);
573
- field.reset();
574
- }
575
- }
576
- });
577
- },
578
- children: t('Delete')
579
- });
580
- };
581
- const SchemaSettingsConnectDataBlocks = (props)=>{
582
- const { type, emptyDescription } = props;
583
- const fieldSchema = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
584
- const { dn } = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useDesignable)();
585
- const { t } = (0,__WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
586
- const collection = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useCollection_deprecated)();
587
- const { inProvider } = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useFilterBlock)();
588
- const dataBlocks = (0,__WEBPACK_EXTERNAL_MODULE__filter_provider_utils_mjs__.useSupportedBlocks)(type);
589
- // eslint-disable-next-line prefer-const
590
- let { targets = [], uid } = (0,__WEBPACK_EXTERNAL_MODULE__block_provider_hooks_index_mjs__.findFilterTargets)(fieldSchema);
591
- const compile = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useCompile)();
592
- const { getAllCollectionsInheritChain } = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useCollectionManager_deprecated)();
593
- if (!inProvider) {
594
- return null;
595
- }
596
- const Content = dataBlocks.map((block)=>{
597
- const title = "".concat(compile(block.collection.title), " #").concat(block.uid.slice(0, 4));
598
- const onHover = ()=>{
599
- // 保存当前的滚动位置
600
- const originalScrollPosition = window.scrollY || window.pageYOffset || document.documentElement.scrollTop;
601
- const dom = block.dom;
602
- const designer = dom.querySelector('.general-schema-designer');
603
- if (designer) {
604
- designer.style.display = 'block';
605
- }
606
- dom.style.boxShadow = '0 0 10px rgba(0, 0, 0, 0.2)';
607
- setTimeout(()=>{
608
- // 使用平滑滚动滚回到原始位置
609
- dom.scrollIntoView({
610
- behavior: 'smooth',
611
- block: 'center'
612
- });
613
- }, 1000);
614
- setTimeout(()=>{
615
- // 使用平滑滚动滚回到原始位置
616
- window.scrollTo({
617
- top: originalScrollPosition,
618
- behavior: 'smooth'
619
- });
620
- }, 2000);
621
- };
622
- const onLeave = ()=>{
623
- const dom = block.dom;
624
- const designer = dom.querySelector('.general-schema-designer');
625
- if (designer) {
626
- designer.style.display = null;
627
- }
628
- dom.style.boxShadow = 'none';
629
- };
630
- if ((0,__WEBPACK_EXTERNAL_MODULE__filter_provider_utils_mjs__.isSameCollection)(block.collection, collection)) {
631
- return /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(SchemaSettingsSwitchItem, {
632
- title: title,
633
- checked: targets.some((target)=>target.uid === block.uid),
634
- onChange: (checked)=>{
635
- if (checked) {
636
- targets.push({
637
- uid: block.uid
638
- });
639
- } else {
640
- targets = targets.filter((target)=>target.uid !== block.uid);
641
- block.clearFilter(uid);
642
- }
643
- (0,__WEBPACK_EXTERNAL_MODULE__block_provider_hooks_index_mjs__.updateFilterTargets)(fieldSchema, targets);
644
- dn.emit('patch', {
645
- schema: {
646
- ['x-uid']: uid,
647
- 'x-filter-targets': targets
648
- }
649
- }).catch(__WEBPACK_EXTERNAL_MODULE__tachybase_utils_client__.error);
650
- dn.refresh();
651
- },
652
- // onMouseEnter={onHover}
653
- onMouseLeave: onLeave,
654
- onMouseUp: onHover
655
- }, block.uid);
656
- }
657
- const target = targets.find((target)=>target.uid === block.uid);
658
- // 与筛选卡片的数据表具有关系的表
659
- return /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(SchemaSettingsSelectItem, {
660
- title: title,
661
- value: (target === null || target === void 0 ? void 0 : target.field) || '',
662
- options: [
663
- ...(0,__WEBPACK_EXTERNAL_MODULE__filter_provider_utils_mjs__.getSupportFieldsByAssociation)(getAllCollectionsInheritChain(collection.name), block).map((field)=>{
664
- return {
665
- label: compile(field.uiSchema.title) || field.name,
666
- value: "".concat(field.name, ".").concat((0,__WEBPACK_EXTERNAL_MODULE__schema_component_antd_association_filter_utilts_mjs__.getTargetKey)(field))
667
- };
668
- }),
669
- ...(0,__WEBPACK_EXTERNAL_MODULE__filter_provider_utils_mjs__.getSupportFieldsByForeignKey)(collection, block).map((field)=>{
670
- return {
671
- label: "".concat(compile(field.uiSchema.title) || field.name, " [").concat(t('Foreign key'), "]"),
672
- value: field.name
673
- };
674
- }),
675
- {
676
- label: t('Unconnected'),
677
- value: ''
678
- }
679
- ],
680
- onChange: (value)=>{
681
- if (value === '') {
682
- targets = targets.filter((target)=>target.uid !== block.uid);
683
- block.clearFilter(uid);
684
- } else {
685
- targets = targets.filter((target)=>target.uid !== block.uid);
686
- targets.push({
687
- uid: block.uid,
688
- field: value
689
- });
690
- }
691
- (0,__WEBPACK_EXTERNAL_MODULE__block_provider_hooks_index_mjs__.updateFilterTargets)(fieldSchema, targets);
692
- dn.emit('patch', {
693
- schema: {
694
- ['x-uid']: uid,
695
- 'x-filter-targets': targets
696
- }
697
- });
698
- dn.refresh();
699
- },
700
- onMouseEnter: onHover,
701
- onMouseLeave: onLeave
702
- }, block.uid);
703
- });
704
- return /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(SchemaSettingsSubMenu, {
705
- title: t('Connect data blocks'),
706
- children: Content.length ? Content : /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(SchemaSettingsItem, {
707
- title: "empty",
708
- children: /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_antd__.Empty, {
709
- style: {
710
- width: 160,
711
- padding: '0 1em'
712
- },
713
- description: emptyDescription,
714
- image: __WEBPACK_EXTERNAL_MODULE_antd__.Empty.PRESENTED_IMAGE_SIMPLE
715
- })
716
- })
717
- });
718
- };
719
- const SchemaSettingsSelectItem = (props)=>{
720
- const { title, options, value, onChange, ...others } = props;
721
- return /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(SchemaSettingsItem, {
722
- title: title,
723
- ...others,
724
- children: /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__common_SelectWithTitle_mjs__.SelectWithTitle, {
725
- title,
726
- defaultValue: value,
727
- onChange,
728
- options
729
- })
730
- });
731
- };
732
- const SchemaSettingsCascaderItem = (props)=>{
733
- const { title, options, value, onChange, ...others } = props;
734
- return /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(SchemaSettingsItem, {
735
- title: title,
736
- ...others,
737
- children: /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)("div", {
738
- style: {
739
- alignItems: 'center',
740
- display: 'flex',
741
- justifyContent: 'space-between'
742
- },
743
- children: [
744
- title,
745
- /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_antd__.Cascader, {
746
- variant: "borderless",
747
- defaultValue: value,
748
- onChange: onChange,
749
- options: options,
750
- style: {
751
- textAlign: 'right',
752
- minWidth: 100
753
- },
754
- multiple: !!props.multiple,
755
- ...props
756
- })
757
- ]
758
- })
759
- });
760
- };
761
- const SchemaSettingsSwitchItem = (props)=>{
762
- const { title, onChange, ...others } = props;
763
- const [checked, setChecked] = (0,__WEBPACK_EXTERNAL_MODULE_react__.useState)(!!props.checked);
764
- return /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(SchemaSettingsItem, {
765
- title: title,
766
- ...others,
767
- onClick: ()=>{
768
- onChange === null || onChange === void 0 ? void 0 : onChange(!checked);
769
- setChecked(!checked);
770
- },
771
- children: /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)("div", {
772
- style: {
773
- alignItems: 'center',
774
- display: 'flex',
775
- justifyContent: 'space-between'
776
- },
777
- children: [
778
- title,
779
- /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_antd__.Switch, {
780
- size: 'small',
781
- checked: checked,
782
- style: {
783
- marginLeft: 32
784
- }
785
- })
786
- ]
787
- })
788
- });
789
- };
790
- const SchemaSettingsPopupItem = (props)=>{
791
- const { schema, ...others } = props;
792
- const [visible, setVisible] = (0,__WEBPACK_EXTERNAL_MODULE_react__.useState)(false);
793
- const ctx = (0,__WEBPACK_EXTERNAL_MODULE_react__.useContext)(SchemaSettingsContext);
794
- return /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)(__WEBPACK_EXTERNAL_MODULE__index_mjs__.ActionContextProvider, {
795
- value: {
796
- visible,
797
- setVisible
798
- },
799
- children: [
800
- /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(SchemaSettingsItem, {
801
- title: props.title,
802
- ...others,
803
- onClick: ()=>{
804
- // actx.setVisible(false);
805
- ctx.setVisible(false);
806
- setVisible(true);
807
- },
808
- children: props.children || props.title
809
- }),
810
- /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__index_mjs__.SchemaComponent, {
811
- schema: {
812
- name: (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.uid)(),
813
- ...schema
814
- }
815
- })
816
- ]
817
- });
818
- };
819
- const SchemaSettingsActionModalItem = /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].memo((props)=>{
820
- const { title, onSubmit, initialValues, beforeOpen, initialSchema, schema, modalTip, components, scope, ...others } = props;
821
- const [visible, setVisible] = (0,__WEBPACK_EXTERNAL_MODULE_react__.useState)(false);
822
- const [schemaUid, setSchemaUid] = (0,__WEBPACK_EXTERNAL_MODULE_react__.useState)(props.uid);
823
- const { t } = (0,__WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
824
- const fieldSchema = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
825
- const ctx = (0,__WEBPACK_EXTERNAL_MODULE_react__.useContext)(SchemaSettingsContext);
826
- const { dn } = useSchemaSettings();
827
- const compile = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useCompile)();
828
- const api = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useAPIClient)();
829
- const upLevelActiveFields = (0,__WEBPACK_EXTERNAL_MODULE__block_provider_hooks_index_mjs__.useFormActiveFields)();
830
- const form = (0,__WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>(0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.createForm)({
831
- initialValues: (0,__WEBPACK_EXTERNAL_MODULE_lodash__.cloneDeep)(initialValues),
832
- values: (0,__WEBPACK_EXTERNAL_MODULE_lodash__.cloneDeep)(initialValues)
833
- }), [
834
- initialValues
835
- ]);
836
- (0,__WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
837
- form.setInitialValues((0,__WEBPACK_EXTERNAL_MODULE_lodash__.cloneDeep)(initialValues));
838
- }, [
839
- JSON.stringify(initialValues || {})
840
- ]);
841
- const cancelHandler = (0,__WEBPACK_EXTERNAL_MODULE_react__.useCallback)(()=>{
842
- setVisible(false);
843
- form.reset();
844
- }, [
845
- form
846
- ]);
847
- const submitHandler = (0,__WEBPACK_EXTERNAL_MODULE_react__.useCallback)(async ()=>{
848
- await form.submit();
849
- onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit((0,__WEBPACK_EXTERNAL_MODULE_lodash__.cloneDeep)(form.values));
850
- setVisible(false);
851
- }, [
852
- form,
853
- onSubmit
854
- ]);
855
- const openAssignedFieldValueHandler = (0,__WEBPACK_EXTERNAL_MODULE_react__.useCallback)(async ()=>{
856
- if (!schemaUid && (initialSchema === null || initialSchema === void 0 ? void 0 : initialSchema['x-uid'])) {
857
- fieldSchema['x-action-settings'].schemaUid = initialSchema['x-uid'];
858
- dn.emit('patch', {
859
- schema: fieldSchema
860
- });
861
- await api.resource('uiSchemas').insert({
862
- values: initialSchema
863
- });
864
- setSchemaUid(initialSchema['x-uid']);
865
- }
866
- if (typeof beforeOpen === 'function') {
867
- beforeOpen === null || beforeOpen === void 0 ? void 0 : beforeOpen();
868
- }
869
- ctx.setVisible(false);
870
- setVisible(true);
871
- }, [
872
- api,
873
- ctx,
874
- dn,
875
- fieldSchema,
876
- initialSchema,
877
- schemaUid
878
- ]);
879
- const onKeyDown = (0,__WEBPACK_EXTERNAL_MODULE_react__.useCallback)((e)=>e.stopPropagation(), []);
880
- return /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.Fragment, {
881
- children: [
882
- /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(SchemaSettingsItem, {
883
- title: compile(title),
884
- ...others,
885
- onClick: openAssignedFieldValueHandler,
886
- onKeyDown: onKeyDown,
887
- children: props.children || props.title
888
- }),
889
- /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_dom__.createPortal)(/*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_antd__.Modal, {
890
- width: '50%',
891
- title: compile(title),
892
- ...others,
893
- destroyOnClose: true,
894
- open: visible,
895
- onCancel: cancelHandler,
896
- footer: /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)(__WEBPACK_EXTERNAL_MODULE_antd__.Space, {
897
- children: [
898
- /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_antd__.Button, {
899
- onClick: cancelHandler,
900
- children: t('Cancel')
901
- }),
902
- /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_antd__.Button, {
903
- type: "primary",
904
- onClick: submitHandler,
905
- children: t('Submit')
906
- })
907
- ]
908
- }),
909
- children: /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__block_provider_hooks_index_mjs__.FormActiveFieldsProvider, {
910
- name: "form",
911
- getActiveFieldsName: upLevelActiveFields === null || upLevelActiveFields === void 0 ? void 0 : upLevelActiveFields.getActiveFieldsName,
912
- children: /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__index_mjs__.FormProvider, {
913
- form: form,
914
- children: /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)(__WEBPACK_EXTERNAL_MODULE__tachybase_components__.FormLayout, {
915
- layout: 'vertical',
916
- children: [
917
- modalTip && /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_antd__.Alert, {
918
- message: modalTip
919
- }),
920
- modalTip && /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("br", {}),
921
- visible && schemaUid && /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__index_mjs__.RemoteSchemaComponent, {
922
- noForm: true,
923
- components: components,
924
- scope: scope,
925
- uid: schemaUid
926
- }),
927
- visible && schema && /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__index_mjs__.SchemaComponent, {
928
- components: components,
929
- scope: scope,
930
- schema: schema
931
- })
932
- ]
933
- })
934
- })
935
- })
936
- }), document.body)
937
- ]
938
- });
939
- });
940
- SchemaSettingsActionModalItem.displayName = 'SchemaSettingsActionModalItem';
941
- const SchemaSettingsModalItem = (props)=>{
942
- const { hidden, title, components, scope, effects, onSubmit, asyncGetInitialValues, initialValues, width = 'fit-content', ...others } = props;
943
- const options = (0,__WEBPACK_EXTERNAL_MODULE_react__.useContext)(__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.SchemaOptionsContext);
944
- options.components = {
945
- ...options.components,
946
- Input: __WEBPACK_EXTERNAL_MODULE__index_mjs__.Input,
947
- 'Input.TextArea': __WEBPACK_EXTERNAL_MODULE__index_mjs__.Input.TextArea,
948
- 'Radio.Group': __WEBPACK_EXTERNAL_MODULE__index_mjs__.Radio.Group,
949
- 'Checkbox.Group': __WEBPACK_EXTERNAL_MODULE__index_mjs__.Checkbox.Group,
950
- DatePicker: __WEBPACK_EXTERNAL_MODULE__index_mjs__.DatePicker,
951
- Select: __WEBPACK_EXTERNAL_MODULE__index_mjs__.Select,
952
- AlternativeAssociationSelect: undefined,
953
- Cascader: __WEBPACK_EXTERNAL_MODULE__index_mjs__.Cascader
954
- };
955
- const { styles } = useStyles();
956
- const collection = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useCollection_deprecated)();
957
- const apiClient = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useAPIClient)();
958
- const { theme } = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useGlobalTheme)();
959
- const ctx = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useBlockRequestContext)();
960
- const upLevelActiveFields = (0,__WEBPACK_EXTERNAL_MODULE__block_provider_hooks_index_mjs__.useFormActiveFields)();
961
- const { locale } = (0,__WEBPACK_EXTERNAL_MODULE_react__.useContext)(__WEBPACK_EXTERNAL_MODULE_antd__.ConfigProvider.ConfigContext);
962
- const dm = (0,__WEBPACK_EXTERNAL_MODULE__data_source_data_source_DataSourceManagerProvider_mjs__.useDataSourceManager)();
963
- const dataSourceKey = (0,__WEBPACK_EXTERNAL_MODULE__data_source_data_source_DataSourceProvider_mjs__.useDataSourceKey)();
964
- const record = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useCollectionRecord)();
965
- const { association } = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useDataBlockProps)() || {};
966
- const formCtx = (0,__WEBPACK_EXTERNAL_MODULE__block_provider_index_mjs__.useFormBlockContext)();
967
- const app = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useApp)();
968
- // 解决变量`当前对象`值在弹窗中丢失的问题
969
- const { formValue: subFormValue, collection: subFormCollection } = (0,__WEBPACK_EXTERNAL_MODULE__schema_component_antd_association_field_hooks_mjs__.useSubFormValue)();
970
- // 解决变量`$nPopupRecord`值在弹窗中丢失的问题
971
- const popupRecordVariable = (0,__WEBPACK_EXTERNAL_MODULE__modules_variable_useVariable_mjs__.useVariable)('$nPopupRecord');
972
- if (hidden) {
973
- return null;
974
- }
975
- return /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(SchemaSettingsItem, {
976
- title: title,
977
- ...others,
978
- onClick: async ()=>{
979
- const values = asyncGetInitialValues ? await asyncGetInitialValues() : initialValues;
980
- const schema = __WEBPACK_EXTERNAL_MODULE_lodash__["default"].isFunction(props.schema) ? props.schema() : props.schema;
981
- (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.FormDialog)({
982
- title: schema.title || title,
983
- width
984
- }, ()=>{
985
- return /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__modules_variable_DeclareVariable_mjs__.DeclareVariable, {
986
- name: "$nPopupRecord",
987
- title: popupRecordVariable.title,
988
- value: popupRecordVariable.value,
989
- collection: popupRecordVariable.collection,
990
- children: /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__index_mjs__.ApplicationContext.Provider, {
991
- value: app,
992
- children: /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__index_mjs__.CollectionRecordProvider, {
993
- record: record,
994
- children: /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__block_provider_index_mjs__.FormBlockContext.Provider, {
995
- value: formCtx,
996
- children: /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__schema_component_antd_association_field_hooks_mjs__.SubFormProvider, {
997
- value: {
998
- value: subFormValue,
999
- collection: subFormCollection
1000
- },
1001
- children: /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__block_provider_hooks_index_mjs__.FormActiveFieldsProvider, {
1002
- name: "form",
1003
- getActiveFieldsName: upLevelActiveFields === null || upLevelActiveFields === void 0 ? void 0 : upLevelActiveFields.getActiveFieldsName,
1004
- children: /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_react_router_dom__.Router, {
1005
- location: location,
1006
- navigator: null,
1007
- children: /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__block_provider_index_mjs__.BlockRequestContext_deprecated.Provider, {
1008
- value: ctx,
1009
- children: /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__index_mjs__.DataSourceApplicationProvider, {
1010
- dataSourceManager: dm,
1011
- dataSource: dataSourceKey,
1012
- children: /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__index_mjs__.AssociationOrCollectionProvider, {
1013
- allowNull: true,
1014
- collection: collection.name,
1015
- association: association,
1016
- children: /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__index_mjs__.SchemaComponentOptions, {
1017
- scope: options.scope,
1018
- components: options.components,
1019
- children: /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__tachybase_components__.FormLayout, {
1020
- layout: 'vertical',
1021
- className: styles.modal,
1022
- children: /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__index_mjs__.APIClientProvider, {
1023
- apiClient: apiClient,
1024
- children: /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_antd__.ConfigProvider, {
1025
- locale: locale,
1026
- children: /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__index_mjs__.SchemaComponent, {
1027
- components: components,
1028
- scope: scope,
1029
- schema: schema
1030
- })
1031
- })
1032
- })
1033
- })
1034
- })
1035
- })
1036
- })
1037
- })
1038
- })
1039
- })
1040
- })
1041
- })
1042
- })
1043
- })
1044
- });
1045
- }, theme).open({
1046
- initialValues: values,
1047
- effects
1048
- }).then((values)=>{
1049
- onSubmit(values);
1050
- return values;
1051
- }).catch((err)=>{
1052
- console.error(err);
1053
- });
1054
- },
1055
- children: props.children || props.title
1056
- });
1057
- };
1058
- const SchemaSettingsBlockTitleItem = function BlockTitleItem() {
1059
- var _fieldSchema_xcomponentprops;
1060
- const field = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useField)();
1061
- const fieldSchema = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
1062
- const { dn } = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useDesignable)();
1063
- const { t } = (0,__WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
1064
- return /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(SchemaSettingsModalItem, {
1065
- title: t('Edit block title'),
1066
- schema: {
1067
- type: 'object',
1068
- title: t('Edit block title'),
1069
- properties: {
1070
- title: {
1071
- title: t('Block title'),
1072
- type: 'string',
1073
- default: fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) === null || _fieldSchema_xcomponentprops === void 0 ? void 0 : _fieldSchema_xcomponentprops['title'],
1074
- 'x-decorator': 'FormItem',
1075
- 'x-component': 'Input'
1076
- }
1077
- }
1078
- },
1079
- onSubmit: (param)=>{
1080
- let { title } = param;
1081
- const componentProps = fieldSchema['x-component-props'] || {};
1082
- componentProps.title = title;
1083
- fieldSchema['x-component-props'] = componentProps;
1084
- field.componentProps.title = title;
1085
- dn.emit('patch', {
1086
- schema: {
1087
- ['x-uid']: fieldSchema['x-uid'],
1088
- 'x-component-props': fieldSchema['x-component-props']
1089
- }
1090
- });
1091
- dn.refresh();
1092
- }
1093
- });
1094
- };
1095
- const SchemaSettingsDefaultSortingRules = function DefaultSortingRules(props) {
1096
- const { path = 'x-component-props.params.sort' } = props;
1097
- const { t } = (0,__WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
1098
- const { dn } = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useDesignable)();
1099
- const fieldSchema = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
1100
- const field = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useField)();
1101
- const title = props.title || t('Set default sorting rules');
1102
- const { name } = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useCollection_deprecated)();
1103
- const defaultSort = (0,__WEBPACK_EXTERNAL_MODULE_lodash__.get)(fieldSchema, path) || [];
1104
- const sort = defaultSort === null || defaultSort === void 0 ? void 0 : defaultSort.map((item)=>{
1105
- return item.startsWith('-') ? {
1106
- field: item.substring(1),
1107
- direction: 'desc'
1108
- } : {
1109
- field: item,
1110
- direction: 'asc'
1111
- };
1112
- });
1113
- const sortFields = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useSortFields)(props.name || name);
1114
- const onSubmit = async (param)=>{
1115
- let { sort } = param;
1116
- var _props_onSubmitAfter;
1117
- if (props === null || props === void 0 ? void 0 : props.onSubmit) {
1118
- return props.onSubmit({
1119
- sort
1120
- });
1121
- }
1122
- const value = sort.map((item)=>{
1123
- return item.direction === 'desc' ? "-".concat(item.field) : item.field;
1124
- });
1125
- (0,__WEBPACK_EXTERNAL_MODULE_lodash__.set)(field, path.replace('x-component-props', 'componentProps').replace('x-decorator-props', 'decoratorProps'), value);
1126
- (0,__WEBPACK_EXTERNAL_MODULE_lodash__.set)(fieldSchema, path, value);
1127
- await dn.emit('patch', {
1128
- schema: fieldSchema
1129
- });
1130
- return (_props_onSubmitAfter = props.onSubmitAfter) === null || _props_onSubmitAfter === void 0 ? void 0 : _props_onSubmitAfter.call(props);
1131
- };
1132
- return /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(SchemaSettingsModalItem, {
1133
- title: title,
1134
- components: {
1135
- ArrayItems: __WEBPACK_EXTERNAL_MODULE__tachybase_components__.ArrayItems
1136
- },
1137
- schema: {
1138
- type: 'object',
1139
- title,
1140
- properties: {
1141
- sort: {
1142
- type: 'array',
1143
- default: sort,
1144
- 'x-component': 'ArrayItems',
1145
- 'x-decorator': 'FormItem',
1146
- items: {
1147
- type: 'object',
1148
- properties: {
1149
- space: {
1150
- type: 'void',
1151
- 'x-component': 'Space',
1152
- properties: {
1153
- sort: {
1154
- type: 'void',
1155
- 'x-decorator': 'FormItem',
1156
- 'x-component': 'ArrayItems.SortHandle'
1157
- },
1158
- field: {
1159
- type: 'string',
1160
- enum: sortFields,
1161
- required: true,
1162
- 'x-decorator': 'FormItem',
1163
- 'x-component': 'Select',
1164
- 'x-component-props': {
1165
- style: {
1166
- width: 260
1167
- }
1168
- }
1169
- },
1170
- direction: {
1171
- type: 'string',
1172
- 'x-decorator': 'FormItem',
1173
- 'x-component': 'Radio.Group',
1174
- 'x-component-props': {
1175
- optionType: 'button'
1176
- },
1177
- enum: [
1178
- {
1179
- label: t('ASC'),
1180
- value: 'asc'
1181
- },
1182
- {
1183
- label: t('DESC'),
1184
- value: 'desc'
1185
- }
1186
- ]
1187
- },
1188
- remove: {
1189
- type: 'void',
1190
- 'x-decorator': 'FormItem',
1191
- 'x-component': 'ArrayItems.Remove'
1192
- }
1193
- }
1194
- }
1195
- }
1196
- },
1197
- properties: {
1198
- add: {
1199
- type: 'void',
1200
- title: t('Add sort field'),
1201
- 'x-component': 'ArrayItems.Addition'
1202
- }
1203
- }
1204
- }
1205
- }
1206
- },
1207
- onSubmit: onSubmit
1208
- });
1209
- };
1210
- const SchemaSettingsLinkageRules = function LinkageRules(props) {
1211
- const { collectionName } = props;
1212
- const fieldSchema = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
1213
- const { form } = (0,__WEBPACK_EXTERNAL_MODULE__block_provider_index_mjs__.useFormBlockContext)();
1214
- const { dn } = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useDesignable)();
1215
- const { t } = (0,__WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
1216
- const { getTemplateById } = (0,__WEBPACK_EXTERNAL_MODULE__schema_templates_index_mjs__.useSchemaTemplateManager)();
1217
- const variables = (0,__WEBPACK_EXTERNAL_MODULE__variables_index_mjs__.useVariables)();
1218
- const localVariables = (0,__WEBPACK_EXTERNAL_MODULE__variables_index_mjs__.useLocalVariables)();
1219
- const record = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useRecord)();
1220
- const { type: formBlockType } = (0,__WEBPACK_EXTERNAL_MODULE__block_provider_index_mjs__.useFormBlockType)();
1221
- const type = (props === null || props === void 0 ? void 0 : props.type) || [
1222
- 'Action',
1223
- 'Action.Link'
1224
- ].includes(fieldSchema['x-component']) ? 'button' : 'field';
1225
- const gridSchema = findGridSchema(fieldSchema) || fieldSchema;
1226
- const schema = (0,__WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>({
1227
- type: 'object',
1228
- title: t('Linkage rules'),
1229
- properties: {
1230
- fieldReaction: {
1231
- 'x-component': __WEBPACK_EXTERNAL_MODULE__LinkageRules_index_mjs__.FormLinkageRules,
1232
- 'x-use-component-props': ()=>{
1233
- // eslint-disable-next-line react-hooks/rules-of-hooks
1234
- const options = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useLinkageCollectionFilterOptions)(collectionName);
1235
- const result = {
1236
- options,
1237
- defaultValues: (gridSchema === null || gridSchema === void 0 ? void 0 : gridSchema['x-linkage-rules']) || (fieldSchema === null || fieldSchema === void 0 ? void 0 : fieldSchema['x-linkage-rules']),
1238
- type,
1239
- // eslint-disable-next-line react-hooks/rules-of-hooks
1240
- linkageOptions: (0,__WEBPACK_EXTERNAL_MODULE__LinkageRules_action_hooks_mjs__.useLinkageCollectionFieldOptions)(collectionName),
1241
- collectionName,
1242
- form,
1243
- variables,
1244
- localVariables,
1245
- record,
1246
- formBlockType
1247
- };
1248
- return result;
1249
- }
1250
- }
1251
- }
1252
- }), [
1253
- collectionName,
1254
- fieldSchema,
1255
- form,
1256
- gridSchema,
1257
- localVariables,
1258
- record,
1259
- t,
1260
- type,
1261
- variables
1262
- ]);
1263
- const components = (0,__WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>({
1264
- ArrayCollapse: __WEBPACK_EXTERNAL_MODULE__tachybase_components__.ArrayCollapse,
1265
- FormLayout: __WEBPACK_EXTERNAL_MODULE__tachybase_components__.FormLayout
1266
- }), []);
1267
- const onSubmit = (0,__WEBPACK_EXTERNAL_MODULE_react__.useCallback)((v)=>{
1268
- var _gridSchema_xcomponentprops;
1269
- const rules = [];
1270
- for (const rule of v.fieldReaction.rules){
1271
- rules.push(__WEBPACK_EXTERNAL_MODULE_lodash__["default"].pickBy(rule, __WEBPACK_EXTERNAL_MODULE_lodash__["default"].identity));
1272
- }
1273
- const templateId = gridSchema['x-component'] === 'BlockTemplate' && ((_gridSchema_xcomponentprops = gridSchema['x-component-props']) === null || _gridSchema_xcomponentprops === void 0 ? void 0 : _gridSchema_xcomponentprops.templateId);
1274
- const uid = templateId && getTemplateById(templateId).uid || gridSchema['x-uid'];
1275
- const schema = {
1276
- ['x-uid']: uid
1277
- };
1278
- gridSchema['x-linkage-rules'] = rules;
1279
- schema['x-linkage-rules'] = rules;
1280
- dn.emit('patch', {
1281
- schema
1282
- });
1283
- dn.refresh();
1284
- }, [
1285
- dn,
1286
- getTemplateById,
1287
- gridSchema
1288
- ]);
1289
- return /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(SchemaSettingsModalItem, {
1290
- title: t('Linkage rules'),
1291
- components: components,
1292
- width: 770,
1293
- schema: schema,
1294
- onSubmit: onSubmit
1295
- });
1296
- };
1297
- const useDataTemplates = (schema)=>{
1298
- const fieldSchema = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
1299
- if (schema) {
1300
- return {
1301
- templateData: __WEBPACK_EXTERNAL_MODULE_lodash__["default"].cloneDeep(schema['x-data-templates'])
1302
- };
1303
- }
1304
- const formSchema = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.findFormBlock)(fieldSchema) || fieldSchema;
1305
- return {
1306
- templateData: __WEBPACK_EXTERNAL_MODULE_lodash__["default"].cloneDeep(formSchema === null || formSchema === void 0 ? void 0 : formSchema['x-data-templates'])
1307
- };
1308
- };
1309
- const SchemaSettingsDataTemplates = function DataTemplates(props) {
1310
- const designerCtx = (0,__WEBPACK_EXTERNAL_MODULE_react__.useContext)(__WEBPACK_EXTERNAL_MODULE__index_mjs__.SchemaComponentContext);
1311
- const { collectionName } = props;
1312
- const fieldSchema = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
1313
- const { dn } = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useDesignable)();
1314
- const { t } = (0,__WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
1315
- const formSchema = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.findFormBlock)(fieldSchema) || fieldSchema;
1316
- const { templateData } = useDataTemplates();
1317
- const schema = (0,__WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>({
1318
- type: 'object',
1319
- title: t('Form data templates'),
1320
- properties: {
1321
- fieldReaction: {
1322
- 'x-decorator': (props)=>/*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__flag_provider_index_mjs__.FlagProvider, {
1323
- ...props,
1324
- isInFormDataTemplate: true
1325
- }),
1326
- 'x-component': __WEBPACK_EXTERNAL_MODULE__DataTemplates_index_mjs__.FormDataTemplates,
1327
- 'x-use-component-props': ()=>{
1328
- return {
1329
- defaultValues: templateData,
1330
- collectionName
1331
- };
1332
- },
1333
- 'x-component-props': {
1334
- designerCtx,
1335
- formSchema
1336
- }
1337
- }
1338
- }
1339
- }), [
1340
- templateData
1341
- ]);
1342
- const onSubmit = (0,__WEBPACK_EXTERNAL_MODULE_react__.useCallback)((v)=>{
1343
- const data = {
1344
- ...formSchema['x-data-templates'] || {},
1345
- ...v.fieldReaction
1346
- };
1347
- // 当 Tree 组件开启 checkStrictly 属性时,会导致 checkedKeys 的值是一个对象,而不是数组,所以这里需要转换一下以支持旧版本
1348
- data.items.forEach((item)=>{
1349
- item.fields = Array.isArray(item.fields) ? item.fields : item.fields.checked;
1350
- });
1351
- const schema = {
1352
- ['x-uid']: formSchema['x-uid'],
1353
- ['x-data-templates']: data
1354
- };
1355
- formSchema['x-data-templates'] = data;
1356
- dn.emit('patch', {
1357
- schema
1358
- });
1359
- dn.refresh();
1360
- }, []);
1361
- const title = (0,__WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>t('Form data templates'), []);
1362
- const components = (0,__WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>({
1363
- ArrayCollapse: __WEBPACK_EXTERNAL_MODULE__tachybase_components__.ArrayCollapse,
1364
- FormLayout: __WEBPACK_EXTERNAL_MODULE__tachybase_components__.FormLayout
1365
- }), []);
1366
- return /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(SchemaSettingsModalItem, {
1367
- title: title,
1368
- components: components,
1369
- width: 770,
1370
- schema: schema,
1371
- onSubmit: onSubmit
1372
- });
1373
- };
1374
- function SchemaSettingsEnableChildCollections(props) {
1375
- var _fieldSchema_parent, _fieldSchema_parent1, _fieldSchema_xcomponentprops;
1376
- const { collectionName } = props;
1377
- const fieldSchema = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
1378
- const field = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useField)();
1379
- const { dn } = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useDesignable)();
1380
- const { t } = (0,__WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
1381
- const allowAddToCurrent = fieldSchema === null || fieldSchema === void 0 ? void 0 : fieldSchema['x-allow-add-to-current'];
1382
- const { getCollectionJoinField } = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useCollectionManager_deprecated)();
1383
- const ctx = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useBlockRequestContext)();
1384
- const collectionField = getCollectionJoinField(fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema_parent = fieldSchema.parent) === null || _fieldSchema_parent === void 0 ? void 0 : _fieldSchema_parent['x-collection-field']) || {};
1385
- const isAssocationAdd = (fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema_parent1 = fieldSchema.parent) === null || _fieldSchema_parent1 === void 0 ? void 0 : _fieldSchema_parent1['x-component']) === 'CollectionField';
1386
- return /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(SchemaSettingsModalItem, {
1387
- title: t('Enable child collections'),
1388
- components: {
1389
- ArrayItems: __WEBPACK_EXTERNAL_MODULE__tachybase_components__.ArrayItems,
1390
- FormLayout: __WEBPACK_EXTERNAL_MODULE__tachybase_components__.FormLayout
1391
- },
1392
- scope: {
1393
- isAssocationAdd
1394
- },
1395
- schema: {
1396
- type: 'object',
1397
- title: t('Enable child collections'),
1398
- properties: {
1399
- enableChildren: {
1400
- 'x-component': __WEBPACK_EXTERNAL_MODULE__EnableChildCollections_index_mjs__.EnableChildCollections,
1401
- 'x-use-component-props': ()=>{
1402
- return {
1403
- defaultValues: fieldSchema === null || fieldSchema === void 0 ? void 0 : fieldSchema['x-enable-children'],
1404
- collectionName
1405
- };
1406
- }
1407
- },
1408
- allowAddToCurrent: {
1409
- type: 'boolean',
1410
- 'x-content': "{{t('Allow adding records to the current collection')}}",
1411
- 'x-decorator': 'FormItem',
1412
- 'x-component': 'Checkbox',
1413
- default: allowAddToCurrent === undefined ? true : allowAddToCurrent
1414
- },
1415
- linkageFromForm: {
1416
- type: 'string',
1417
- title: "{{t('Linkage with form fields')}}",
1418
- 'x-visible': '{{isAssocationAdd}}',
1419
- 'x-decorator': 'FormItem',
1420
- 'x-component': __WEBPACK_EXTERNAL_MODULE__EnableChildCollections_DynamicComponent_mjs__.ChildDynamicComponent,
1421
- 'x-component-props': {
1422
- rootCollection: ctx.props.collection || ctx.props.resource,
1423
- collectionField
1424
- },
1425
- default: fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) === null || _fieldSchema_xcomponentprops === void 0 ? void 0 : _fieldSchema_xcomponentprops['linkageFromForm']
1426
- }
1427
- }
1428
- },
1429
- onSubmit: (v)=>{
1430
- const enableChildren = [];
1431
- for (const item of v.enableChildren.childrenCollections){
1432
- enableChildren.push(__WEBPACK_EXTERNAL_MODULE_lodash__["default"].pickBy(item, __WEBPACK_EXTERNAL_MODULE_lodash__["default"].identity));
1433
- }
1434
- const uid = fieldSchema['x-uid'];
1435
- const schema = {
1436
- ['x-uid']: uid
1437
- };
1438
- fieldSchema['x-enable-children'] = enableChildren;
1439
- fieldSchema['x-allow-add-to-current'] = v.allowAddToCurrent;
1440
- fieldSchema['x-component-props'] = {
1441
- ...fieldSchema['x-component-props'],
1442
- component: 'CreateRecordAction',
1443
- linkageFromForm: v === null || v === void 0 ? void 0 : v.linkageFromForm
1444
- };
1445
- schema['x-enable-children'] = enableChildren;
1446
- schema['x-allow-add-to-current'] = v.allowAddToCurrent;
1447
- schema['x-component-props'] = {
1448
- ...fieldSchema['x-component-props'],
1449
- component: 'CreateRecordAction',
1450
- linkageFromForm: v === null || v === void 0 ? void 0 : v.linkageFromForm
1451
- };
1452
- field.componentProps['linkageFromForm'] = v.linkageFromForm;
1453
- dn.emit('patch', {
1454
- schema
1455
- });
1456
- dn.refresh();
1457
- }
1458
- });
1459
- }
1460
- const findParentFieldSchema = (fieldSchema)=>{
1461
- let parent = fieldSchema.parent;
1462
- while(parent){
1463
- if (parent['x-component'] === 'CollectionField') {
1464
- return parent;
1465
- }
1466
- parent = parent.parent;
1467
- }
1468
- };
1469
- const SchemaSettingsSortField = ()=>{
1470
- const { fields } = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useCollection_deprecated)();
1471
- const field = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useField)();
1472
- const fieldSchema = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
1473
- const { t } = (0,__WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
1474
- const { dn } = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useDesignable)();
1475
- const compile = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useCompile)();
1476
- const { service } = (0,__WEBPACK_EXTERNAL_MODULE__block_provider_index_mjs__.useTableBlockContext)();
1477
- const options = fields.filter((field)=>!(field === null || field === void 0 ? void 0 : field.target) && field.interface === 'sort').map((field)=>{
1478
- var _field_uiSchema;
1479
- return {
1480
- value: field === null || field === void 0 ? void 0 : field.name,
1481
- label: compile(field === null || field === void 0 ? void 0 : (_field_uiSchema = field.uiSchema) === null || _field_uiSchema === void 0 ? void 0 : _field_uiSchema.title) || (field === null || field === void 0 ? void 0 : field.name)
1482
- };
1483
- });
1484
- return /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(SchemaSettingsSelectItem, {
1485
- title: t('Drag and drop sorting field'),
1486
- options: options,
1487
- value: field.decoratorProps.dragSortBy,
1488
- onChange: (dragSortBy)=>{
1489
- var _service_params;
1490
- fieldSchema['x-decorator-props'].dragSortBy = dragSortBy;
1491
- service.run({
1492
- ...(_service_params = service.params) === null || _service_params === void 0 ? void 0 : _service_params[0],
1493
- sort: dragSortBy
1494
- });
1495
- field.decoratorProps.dragSortBy = dragSortBy;
1496
- dn.emit('patch', {
1497
- schema: {
1498
- ['x-uid']: fieldSchema['x-uid'],
1499
- 'x-decorator-props': fieldSchema['x-decorator-props']
1500
- }
1501
- });
1502
- dn.refresh();
1503
- }
1504
- }, "sort-field");
1505
- };
1506
- // 是否是系统字段
1507
- const isSystemField = (collectionField, getInterface)=>{
1508
- const i = getInterface === null || getInterface === void 0 ? void 0 : getInterface(collectionField === null || collectionField === void 0 ? void 0 : collectionField.interface);
1509
- return (i === null || i === void 0 ? void 0 : i.group) === 'systemInfo';
1510
- };
1511
- function getFieldDefaultValue(fieldSchema, collectionField) {
1512
- var _fieldSchema_default;
1513
- const result = (_fieldSchema_default = fieldSchema === null || fieldSchema === void 0 ? void 0 : fieldSchema.default) !== null && _fieldSchema_default !== void 0 ? _fieldSchema_default : collectionField === null || collectionField === void 0 ? void 0 : collectionField.defaultValue;
1514
- return result;
1515
- }
1516
-
1517
- export { SchemaSettingsActionModalItem, SchemaSettingsBlockTitleItem, SchemaSettingsCascaderItem, SchemaSettingsConnectDataBlocks, SchemaSettingsDataTemplates, SchemaSettingsDefaultSortingRules, SchemaSettingsDivider, SchemaSettingsDropdown, SchemaSettingsEnableChildCollections, SchemaSettingsFormItemTemplate, SchemaSettingsItem, SchemaSettingsItemGroup, SchemaSettingsLinkageRules, SchemaSettingsModalItem, SchemaSettingsPopupItem, SchemaSettingsProvider, SchemaSettingsRemove, SchemaSettingsSelectItem, SchemaSettingsSortField, SchemaSettingsSubMenu, SchemaSettingsSwitchItem, SchemaSettingsTemplate, findParentFieldSchema, getFieldDefaultValue, isSystemField, useDataTemplates, useSchemaSettings };