@tachybase/client 0.23.8-alpha.21 → 0.23.8-alpha.22

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 (1331) hide show
  1. package/lib/api-client/APIClient.mjs +176 -0
  2. package/lib/api-client/APIClientProvider.mjs +23 -0
  3. package/lib/api-client/__tests__/APIClient.test.mjs +64 -0
  4. package/lib/api-client/context.mjs +14 -0
  5. package/lib/api-client/demos/demo1.mjs +47 -0
  6. package/lib/api-client/demos/demo2.mjs +46 -0
  7. package/lib/api-client/demos/demo3.mjs +97 -0
  8. package/lib/api-client/hooks/assign.mjs +106 -0
  9. package/lib/api-client/hooks/index.mjs +9 -0
  10. package/lib/api-client/hooks/useAPIClient.mjs +15 -0
  11. package/lib/api-client/hooks/useRequest.mjs +70 -0
  12. package/lib/api-client/hooks/useResource.mjs +12 -0
  13. package/lib/api-client/index.mjs +11 -0
  14. package/lib/application/AppSchemaComponentProvider.mjs +48 -0
  15. package/lib/application/Application.mjs +431 -0
  16. package/lib/application/AttachmentPreviewManager.mjs +37 -0
  17. package/lib/application/NoticesManager.mjs +132 -0
  18. package/lib/application/Plugin.mjs +66 -0
  19. package/lib/application/PluginContextMenu.mjs +35 -0
  20. package/lib/application/PluginManager.mjs +113 -0
  21. package/lib/application/RouterManager.mjs +148 -0
  22. package/lib/application/SystemSettingsManager.mjs +133 -0
  23. package/lib/application/UserSettingsManager.mjs +135 -0
  24. package/lib/application/WebSocketClient.mjs +202 -0
  25. package/lib/application/__tests__/Application.test.mjs +518 -0
  26. package/lib/application/__tests__/Plugin.test.mjs +213 -0
  27. package/lib/application/__tests__/PluginSettingsManager.test.mjs +168 -0
  28. package/lib/application/__tests__/RouterManager.test.mjs +345 -0
  29. package/lib/application/__tests__/SchemaInitializer.test.mjs +169 -0
  30. package/lib/application/__tests__/SchemaToolbar.test.mjs +171 -0
  31. package/lib/application/__tests__/hoc/withDynamicSchemaProps.test.mjs +207 -0
  32. package/lib/application/__tests__/hooks.test.mjs +112 -0
  33. package/lib/application/__tests__/utils/remotePlugins.test.mjs +331 -0
  34. package/lib/application/__tests__/utils.test.mjs +117 -0
  35. package/lib/application/components/AppComponent.mjs +78 -0
  36. package/lib/application/components/BlankComponent.mjs +18 -0
  37. package/lib/application/components/MainComponent.mjs +29 -0
  38. package/lib/application/components/RouterContextCleaner.mjs +30 -0
  39. package/lib/application/components/defaultComponents.mjs +37 -0
  40. package/lib/application/components/index.mjs +11 -0
  41. package/lib/application/context.mjs +10 -0
  42. package/lib/application/demos/demo1.mjs +136 -0
  43. package/lib/application/demos/demo2.mjs +149 -0
  44. package/lib/application/demos/demo3.mjs +17 -0
  45. package/lib/application/hoc/index.mjs +5 -0
  46. package/lib/application/hoc/withDynamicSchemaProps.mjs +165 -0
  47. package/lib/application/hooks/index.mjs +9 -0
  48. package/lib/application/hooks/useApp.mjs +15 -0
  49. package/lib/application/hooks/usePlugin.mjs +12 -0
  50. package/lib/application/hooks/useRouter.mjs +12 -0
  51. package/lib/application/index.mjs +37 -0
  52. package/lib/application/schema-initializer/SchemaInitializer.mjs +103 -0
  53. package/lib/application/schema-initializer/SchemaInitializerManager.mjs +86 -0
  54. package/lib/application/schema-initializer/components/SchemaInitializerActionModal.mjs +134 -0
  55. package/lib/application/schema-initializer/components/SchemaInitializerButton.mjs +60 -0
  56. package/lib/application/schema-initializer/components/SchemaInitializerChildren.mjs +91 -0
  57. package/lib/application/schema-initializer/components/SchemaInitializerDivider.mjs +25 -0
  58. package/lib/application/schema-initializer/components/SchemaInitializerItem.mjs +124 -0
  59. package/lib/application/schema-initializer/components/SchemaInitializerItemGroup.mjs +63 -0
  60. package/lib/application/schema-initializer/components/SchemaInitializerItems.mjs +23 -0
  61. package/lib/application/schema-initializer/components/SchemaInitializerSelect.mjs +86 -0
  62. package/lib/application/schema-initializer/components/SchemaInitializerSubMenu.mjs +147 -0
  63. package/lib/application/schema-initializer/components/SchemaInitializerSwitch.mjs +59 -0
  64. package/lib/application/schema-initializer/components/index.mjs +23 -0
  65. package/lib/application/schema-initializer/components/style.mjs +47 -0
  66. package/lib/application/schema-initializer/context/index.mjs +18 -0
  67. package/lib/application/schema-initializer/hoc/index.mjs +159 -0
  68. package/lib/application/schema-initializer/hooks/index.mjs +193 -0
  69. package/lib/application/schema-initializer/hooks/useAriaAttributeOfMenuItem.mjs +32 -0
  70. package/lib/application/schema-initializer/index.mjs +17 -0
  71. package/lib/application/schema-initializer/types.mjs +4 -0
  72. package/lib/application/schema-settings/SchemaSettings.mjs +94 -0
  73. package/lib/application/schema-settings/SchemaSettingsDefaults.mjs +241 -0
  74. package/lib/application/schema-settings/SchemaSettingsManager.mjs +86 -0
  75. package/lib/application/schema-settings/components/SchemaSettingsChildren.mjs +123 -0
  76. package/lib/application/schema-settings/components/SchemaSettingsIcon.mjs +34 -0
  77. package/lib/application/schema-settings/components/SchemaSettingsWrapper.mjs +59 -0
  78. package/lib/application/schema-settings/components/index.mjs +7 -0
  79. package/lib/application/schema-settings/context/index.mjs +13 -0
  80. package/lib/application/schema-settings/hooks/index.mjs +63 -0
  81. package/lib/application/schema-settings/index.mjs +15 -0
  82. package/lib/application/schema-settings/types.mjs +4 -0
  83. package/lib/application/schema-toolbar/context/index.mjs +24 -0
  84. package/lib/application/schema-toolbar/hooks/index.mjs +46 -0
  85. package/lib/application/schema-toolbar/index.mjs +7 -0
  86. package/lib/application/utils/globalDeps.mjs +162 -0
  87. package/lib/application/utils/index.mjs +59 -0
  88. package/lib/application/utils/remotePlugins.mjs +129 -0
  89. package/lib/async-data-provider/index.mjs +37 -0
  90. package/lib/block-provider/BlockProvider.mjs +401 -0
  91. package/lib/block-provider/DetailsBlockProvider.mjs +145 -0
  92. package/lib/block-provider/FilterFormBlockProvider.mjs +42 -0
  93. package/lib/block-provider/FormBlockProvider.mjs +222 -0
  94. package/lib/block-provider/FormFieldProvider.mjs +124 -0
  95. package/lib/block-provider/MobileProvider.mjs +24 -0
  96. package/lib/block-provider/PageLayout.mjs +25 -0
  97. package/lib/block-provider/TableBlockProvider.mjs +155 -0
  98. package/lib/block-provider/TableFieldProvider.mjs +197 -0
  99. package/lib/block-provider/TableSelectorProvider.mjs +372 -0
  100. package/lib/block-provider/TreeBlockProvider.mjs +158 -0
  101. package/lib/block-provider/hooks/index.mjs +1465 -0
  102. package/lib/block-provider/hooks/useDataBlockSourceId.mjs +33 -0
  103. package/lib/block-provider/hooks/useFormActiveFields.mjs +56 -0
  104. package/lib/block-provider/hooks/useIsMobile.mjs +16 -0
  105. package/lib/block-provider/hooks/useParsedFilter.mjs +85 -0
  106. package/lib/block-provider/index.mjs +25 -0
  107. package/lib/built-in/acl/ACLProvider.mjs +396 -0
  108. package/lib/built-in/acl/ACLShortcut.mjs +46 -0
  109. package/lib/built-in/acl/Configuration/ConfigureCenter.mjs +182 -0
  110. package/lib/built-in/acl/Configuration/MenuConfigure.mjs +188 -0
  111. package/lib/built-in/acl/Configuration/MenuItemsProvider.mjs +66 -0
  112. package/lib/built-in/acl/Configuration/PermisionProvider.mjs +95 -0
  113. package/lib/built-in/acl/Configuration/RoleConfigure.mjs +173 -0
  114. package/lib/built-in/acl/Configuration/RoleTable.mjs +73 -0
  115. package/lib/built-in/acl/Configuration/RolesResourcesActions.mjs +265 -0
  116. package/lib/built-in/acl/Configuration/ScopeSelect.mjs +61 -0
  117. package/lib/built-in/acl/Configuration/StrategyActions.mjs +143 -0
  118. package/lib/built-in/acl/Configuration/index.mjs +41 -0
  119. package/lib/built-in/acl/Configuration/schemas/roles.mjs +427 -0
  120. package/lib/built-in/acl/Configuration/schemas/scopes.mjs +384 -0
  121. package/lib/built-in/acl/Configuration/schemas/useRoleResourceValues.mjs +46 -0
  122. package/lib/built-in/acl/Configuration/schemas/useSaveRoleResourceAction.mjs +32 -0
  123. package/lib/built-in/acl/index.mjs +25 -0
  124. package/lib/built-in/acl/style.mjs +31 -0
  125. package/lib/built-in/admin-layout/AdminContent.mjs +34 -0
  126. package/lib/built-in/admin-layout/AdminTabs.mjs +21 -0
  127. package/lib/built-in/admin-layout/NoticeArea.mjs +37 -0
  128. package/lib/built-in/admin-layout/components/AddNewButton.mjs +89 -0
  129. package/lib/built-in/admin-layout/components/WelcomeCard.mjs +114 -0
  130. package/lib/built-in/admin-layout/index.mjs +299 -0
  131. package/lib/built-in/admin-layout/style.mjs +150 -0
  132. package/lib/built-in/assistant/Assistant.provider.mjs +114 -0
  133. package/lib/built-in/assistant/ai-chat/index.mjs +359 -0
  134. package/lib/built-in/assistant/ai-chat/index.module.mjs +9 -0
  135. package/lib/{index.css → built-in/assistant/ai-chat/index_module.css} +0 -64
  136. package/lib/built-in/assistant/calculator/AutoScalingText.mjs +45 -0
  137. package/lib/built-in/assistant/calculator/Calculator.mjs +259 -0
  138. package/lib/built-in/assistant/calculator/CalculatorDisplay.mjs +34 -0
  139. package/lib/built-in/assistant/calculator/CalculatorKey.mjs +20 -0
  140. package/lib/built-in/assistant/calculator/CalculatorProvider.mjs +52 -0
  141. package/lib/built-in/assistant/calculator/Draggable.mjs +66 -0
  142. package/lib/built-in/assistant/calculator/style.mjs +33 -0
  143. package/lib/built-in/assistant/index.mjs +27 -0
  144. package/lib/built-in/assistant/search-and-jump/index.mjs +75 -0
  145. package/lib/built-in/attachment-preview/index.mjs +24 -0
  146. package/lib/built-in/attachment-preview/interface.mjs +4 -0
  147. package/lib/built-in/attachment-preview/previewers/file-default.mjs +97 -0
  148. package/lib/built-in/attachment-preview/previewers/file-pdf.mjs +142 -0
  149. package/lib/built-in/attachment-preview/previewers/file-pdf.style.mjs +53 -0
  150. package/lib/built-in/attachment-preview/previewers/file-sheet.mjs +132 -0
  151. package/lib/built-in/attachment-preview/previewers/file-sheet.style.mjs +53 -0
  152. package/lib/built-in/attachment-preview/previewers/image-jpeg.mjs +43 -0
  153. package/lib/built-in/attachment-preview/previewers/image-png.mjs +43 -0
  154. package/lib/built-in/attachment-preview/previewers/image-svg.mjs +29 -0
  155. package/lib/built-in/attachment-preview/previewers/index.mjs +15 -0
  156. package/lib/built-in/block-schema-component/index.mjs +186 -0
  157. package/lib/built-in/built-in-collections/index.mjs +74 -0
  158. package/lib/built-in/context-menu/ContextMenu.provider.mjs +89 -0
  159. package/lib/built-in/context-menu/ContextMenuItemsProps.mjs +176 -0
  160. package/lib/built-in/context-menu/index.mjs +33 -0
  161. package/lib/built-in/context-menu/useContextMenu.mjs +12 -0
  162. package/lib/built-in/document-title/index.mjs +75 -0
  163. package/lib/built-in/dynamic-page/DynamicPage.mjs +67 -0
  164. package/lib/built-in/dynamic-page/index.mjs +79 -0
  165. package/lib/built-in/dynamic-page/style.mjs +60 -0
  166. package/lib/built-in/dynamic-page/utils.mjs +84 -0
  167. package/lib/built-in/index.mjs +591 -0
  168. package/lib/built-in/locale/LocalePlugin.mjs +96 -0
  169. package/lib/built-in/locale/loadConstrueLocale.mjs +193 -0
  170. package/lib/built-in/page-style/CustomAdminHeader.mjs +24 -0
  171. package/lib/built-in/page-style/PageStyle.provider.mjs +47 -0
  172. package/lib/built-in/page-style/TabContent.mjs +97 -0
  173. package/lib/built-in/page-style/TabHeader.mjs +114 -0
  174. package/lib/built-in/page-style/index.mjs +29 -0
  175. package/lib/built-in/page-style/usePageStyle.mjs +15 -0
  176. package/lib/built-in/page-style/useTabSettings.mjs +97 -0
  177. package/lib/built-in/pinned-list/PinnedPluginListProvider.mjs +87 -0
  178. package/lib/built-in/pinned-list/context.mjs +12 -0
  179. package/lib/built-in/pinned-list/index.mjs +18 -0
  180. package/lib/built-in/pm/PluginCard.mjs +306 -0
  181. package/lib/built-in/pm/PluginDetail.mjs +350 -0
  182. package/lib/built-in/pm/PluginDocument.mjs +99 -0
  183. package/lib/built-in/pm/PluginForm/form/PluginNpmForm.mjs +189 -0
  184. package/lib/built-in/pm/PluginForm/form/PluginUploadForm.mjs +142 -0
  185. package/lib/built-in/pm/PluginForm/form/PluginUrlForm.mjs +133 -0
  186. package/lib/built-in/pm/PluginForm/modal/PluginAddModal.mjs +88 -0
  187. package/lib/built-in/pm/PluginForm/modal/PluginUpgradeModal.mjs +92 -0
  188. package/lib/built-in/pm/PluginManager.mjs +341 -0
  189. package/lib/built-in/pm/index.mjs +78 -0
  190. package/lib/built-in/pm/style.mjs +86 -0
  191. package/lib/built-in/pm/types.mjs +4 -0
  192. package/lib/built-in/quick-access/Action.mjs +125 -0
  193. package/lib/built-in/quick-access/Block.mjs +170 -0
  194. package/lib/built-in/quick-access/CustomRequestActionSchemaInitializerItem.mjs +115 -0
  195. package/lib/built-in/quick-access/LinkActionSchemaInitializerItem.mjs +108 -0
  196. package/lib/built-in/quick-access/ModalActionSchemaInitializerItem.mjs +118 -0
  197. package/lib/built-in/quick-access/PopupActionSchemaInitializerItem.mjs +143 -0
  198. package/lib/built-in/quick-access/SchemaSettingsBlockTitleItem.mjs +66 -0
  199. package/lib/built-in/quick-access/blockInitializerItem.mjs +31 -0
  200. package/lib/built-in/quick-access/blockSchema.mjs +20 -0
  201. package/lib/built-in/quick-access/blockSettings.mjs +92 -0
  202. package/lib/built-in/quick-access/configureActions.mjs +25 -0
  203. package/lib/built-in/quick-access/index.mjs +66 -0
  204. package/lib/built-in/scroll-assistant/ScrollAssistant.provider.mjs +62 -0
  205. package/lib/built-in/scroll-assistant/ScrollAssistantStatus.provider.mjs +31 -0
  206. package/lib/built-in/scroll-assistant/index.mjs +41 -0
  207. package/lib/built-in/scroll-assistant/useJoystick.mjs +216 -0
  208. package/lib/built-in/setting-layout/AdminSettings.mjs +174 -0
  209. package/lib/built-in/setting-layout/SettingLayout.mjs +171 -0
  210. package/lib/built-in/setting-layout/SettingsCenterDropdown.mjs +104 -0
  211. package/lib/built-in/system-settings/SystemSettingsProvider.mjs +33 -0
  212. package/lib/built-in/system-settings/SystemSettingsShortcut.mjs +189 -0
  213. package/lib/built-in/system-settings/index.mjs +18 -0
  214. package/lib/built-in/system-version/SystemVersion.provider.mjs +52 -0
  215. package/lib/built-in/system-version/index.mjs +17 -0
  216. package/lib/built-in/user-settings/UserSettingsLayout.mjs +221 -0
  217. package/lib/built-in/user-settings/index.mjs +38 -0
  218. package/lib/built-in/user-settings/style.mjs +86 -0
  219. package/lib/collection-manager/CollectionHistoryProvider.mjs +81 -0
  220. package/lib/collection-manager/CollectionManagerProvider.mjs +92 -0
  221. package/lib/collection-manager/CollectionManagerSchemaComponentProvider.mjs +46 -0
  222. package/lib/collection-manager/CollectionProvider_deprecated.mjs +40 -0
  223. package/lib/collection-manager/Configuration/AddCollectionAction.mjs +292 -0
  224. package/lib/collection-manager/Configuration/AddFieldAction.mjs +457 -0
  225. package/lib/collection-manager/Configuration/AddSubFieldAction.mjs +211 -0
  226. package/lib/collection-manager/Configuration/DeleteCollectionAction.mjs +268 -0
  227. package/lib/collection-manager/Configuration/EditCollectionAction.mjs +221 -0
  228. package/lib/collection-manager/Configuration/EditFieldAction.mjs +315 -0
  229. package/lib/collection-manager/Configuration/EditSubFieldAction.mjs +163 -0
  230. package/lib/collection-manager/Configuration/ImportCollectionMetaAction.mjs +210 -0
  231. package/lib/collection-manager/Configuration/OverridingCollectionField.mjs +274 -0
  232. package/lib/collection-manager/Configuration/SyncFieldsAction.mjs +257 -0
  233. package/lib/collection-manager/Configuration/SyncSQLFieldsAction.mjs +214 -0
  234. package/lib/collection-manager/Configuration/ViewInheritedField.mjs +187 -0
  235. package/lib/collection-manager/Configuration/components/CollectionCategory.mjs +38 -0
  236. package/lib/collection-manager/Configuration/components/CollectionFieldInterfaceTag.mjs +40 -0
  237. package/lib/collection-manager/Configuration/components/CollectionTemplateTag.mjs +39 -0
  238. package/lib/collection-manager/Configuration/components/FieldSummary.mjs +39 -0
  239. package/lib/collection-manager/Configuration/components/Summary.mjs +84 -0
  240. package/lib/collection-manager/Configuration/components/TemplateSummary.mjs +39 -0
  241. package/lib/collection-manager/Configuration/components/index.mjs +359 -0
  242. package/lib/collection-manager/Configuration/index.mjs +46 -0
  243. package/lib/collection-manager/Configuration/interfaces.mjs +48 -0
  244. package/lib/collection-manager/ResourceActionProvider.mjs +168 -0
  245. package/lib/collection-manager/action-hooks.mjs +658 -0
  246. package/lib/collection-manager/collectionPlugin.mjs +151 -0
  247. package/lib/collection-manager/context.mjs +13 -0
  248. package/lib/collection-manager/demos/demo2.mjs +143 -0
  249. package/lib/collection-manager/demos/demo3.mjs +96 -0
  250. package/lib/collection-manager/demos/demo4.mjs +183 -0
  251. package/lib/collection-manager/demos/demo5.mjs +187 -0
  252. package/lib/collection-manager/hooks/index.mjs +11 -0
  253. package/lib/collection-manager/hooks/useCollectionDataSource.mjs +29 -0
  254. package/lib/collection-manager/hooks/useCollectionField_deprecated.mjs +43 -0
  255. package/lib/collection-manager/hooks/useCollectionManager_deprecated.mjs +272 -0
  256. package/lib/collection-manager/hooks/useCollection_deprecated.mjs +70 -0
  257. package/lib/collection-manager/hooks/useDialect.mjs +17 -0
  258. package/lib/collection-manager/index.mjs +63 -0
  259. package/lib/collection-manager/interfaces/__tests__/json.mjs +73 -0
  260. package/lib/collection-manager/interfaces/checkbox.mjs +61 -0
  261. package/lib/collection-manager/interfaces/checkboxGroup.mjs +55 -0
  262. package/lib/collection-manager/interfaces/chinaRegion.mjs +127 -0
  263. package/lib/collection-manager/interfaces/collection.mjs +57 -0
  264. package/lib/collection-manager/interfaces/color.mjs +43 -0
  265. package/lib/collection-manager/interfaces/components/index.mjs +73 -0
  266. package/lib/collection-manager/interfaces/createdAt.mjs +47 -0
  267. package/lib/collection-manager/interfaces/createdBy.mjs +70 -0
  268. package/lib/collection-manager/interfaces/datetime.mjs +56 -0
  269. package/lib/collection-manager/interfaces/email.mjs +54 -0
  270. package/lib/collection-manager/interfaces/icon.mjs +40 -0
  271. package/lib/collection-manager/interfaces/id.mjs +66 -0
  272. package/lib/collection-manager/interfaces/index.mjs +81 -0
  273. package/lib/collection-manager/interfaces/input.mjs +200 -0
  274. package/lib/collection-manager/interfaces/integer.mjs +138 -0
  275. package/lib/collection-manager/interfaces/json.mjs +102 -0
  276. package/lib/collection-manager/interfaces/linkTo.mjs +119 -0
  277. package/lib/collection-manager/interfaces/m2m.mjs +253 -0
  278. package/lib/collection-manager/interfaces/m2o.mjs +182 -0
  279. package/lib/collection-manager/interfaces/markdown.mjs +94 -0
  280. package/lib/collection-manager/interfaces/multipleSelect.mjs +62 -0
  281. package/lib/collection-manager/interfaces/nanoid.mjs +72 -0
  282. package/lib/collection-manager/interfaces/number.mjs +146 -0
  283. package/lib/collection-manager/interfaces/o2m.mjs +211 -0
  284. package/lib/collection-manager/interfaces/o2o.mjs +493 -0
  285. package/lib/collection-manager/interfaces/password.mjs +80 -0
  286. package/lib/collection-manager/interfaces/percent.mjs +193 -0
  287. package/lib/collection-manager/interfaces/phone.mjs +46 -0
  288. package/lib/collection-manager/interfaces/properties/index.mjs +506 -0
  289. package/lib/collection-manager/interfaces/properties/operators.mjs +370 -0
  290. package/lib/collection-manager/interfaces/radioGroup.mjs +46 -0
  291. package/lib/collection-manager/interfaces/richText.mjs +92 -0
  292. package/lib/collection-manager/interfaces/select.mjs +60 -0
  293. package/lib/collection-manager/interfaces/sort.mjs +123 -0
  294. package/lib/collection-manager/interfaces/subTable.mjs +218 -0
  295. package/lib/collection-manager/interfaces/tableoid.mjs +60 -0
  296. package/lib/collection-manager/interfaces/textarea.mjs +92 -0
  297. package/lib/collection-manager/interfaces/time.mjs +59 -0
  298. package/lib/collection-manager/interfaces/types.mjs +4 -0
  299. package/lib/collection-manager/interfaces/unixTimestamp.mjs +64 -0
  300. package/lib/collection-manager/interfaces/updatedAt.mjs +47 -0
  301. package/lib/collection-manager/interfaces/updatedBy.mjs +70 -0
  302. package/lib/collection-manager/interfaces/url.mjs +46 -0
  303. package/lib/collection-manager/interfaces/uuid.mjs +60 -0
  304. package/lib/collection-manager/mixins/InheritanceCollectionMixin.mjs +249 -0
  305. package/lib/collection-manager/sub-table.mjs +270 -0
  306. package/lib/collection-manager/templates/components/PresetFields.mjs +271 -0
  307. package/lib/collection-manager/templates/components/PreviewFields.mjs +345 -0
  308. package/lib/collection-manager/templates/components/PreviewTable.mjs +171 -0
  309. package/lib/collection-manager/templates/components/sql-collection/FieldsConfigure.mjs +348 -0
  310. package/lib/collection-manager/templates/components/sql-collection/PreviewTable.mjs +81 -0
  311. package/lib/collection-manager/templates/components/sql-collection/SQLInput.mjs +130 -0
  312. package/lib/collection-manager/templates/components/sql-collection/SQLRequestProvider.mjs +74 -0
  313. package/lib/collection-manager/templates/components/sql-collection/index.mjs +11 -0
  314. package/lib/collection-manager/templates/expression.mjs +78 -0
  315. package/lib/collection-manager/templates/general.mjs +32 -0
  316. package/lib/collection-manager/templates/import.mjs +28 -0
  317. package/lib/collection-manager/templates/index.mjs +15 -0
  318. package/lib/collection-manager/templates/properties/index.mjs +81 -0
  319. package/lib/collection-manager/templates/sql.mjs +105 -0
  320. package/lib/collection-manager/templates/tree.mjs +94 -0
  321. package/lib/collection-manager/templates/types.mjs +4 -0
  322. package/lib/collection-manager/templates/view.mjs +177 -0
  323. package/lib/collection-manager/types.mjs +4 -0
  324. package/lib/collection-manager/utils.mjs +23 -0
  325. package/lib/common/SelectWithTitle.mjs +56 -0
  326. package/lib/common/appInfo/CurrentAppInfoProvider.mjs +33 -0
  327. package/lib/common/appInfo/index.mjs +5 -0
  328. package/lib/common/index.mjs +9 -0
  329. package/lib/common/useFieldComponentName.mjs +39 -0
  330. package/lib/common/useNiceDropdownHeight.mjs +28 -0
  331. package/lib/data-source/__tests__/collection/AssociationProvider.test.mjs +132 -0
  332. package/lib/data-source/__tests__/collection/Collection.test.mjs +308 -0
  333. package/lib/data-source/__tests__/collection/CollectionManager.test.mjs +308 -0
  334. package/lib/data-source/__tests__/collection/CollectionManagerProvider.test.mjs +135 -0
  335. package/lib/data-source/__tests__/collection/CollectionProvider.test.mjs +123 -0
  336. package/lib/data-source/__tests__/collection/ExtendCollectionsProvider.test.mjs +105 -0
  337. package/lib/data-source/__tests__/collection-field/CollectionField.test.mjs +84 -0
  338. package/lib/data-source/__tests__/collection-field/CollectionFieldProvider.test.mjs +70 -0
  339. package/lib/data-source/__tests__/collection-field-interface/CollectionFieldInterfaceManager.test.mjs +171 -0
  340. package/lib/data-source/__tests__/collection-record/CollectionRecord.test.mjs +27 -0
  341. package/lib/data-source/__tests__/collection-record/CollectionRecordProvider.test.mjs +268 -0
  342. package/lib/data-source/__tests__/collection-record/isNewRecord.test.mjs +55 -0
  343. package/lib/data-source/__tests__/collection-template/CollectionTemplateManager.test.mjs +132 -0
  344. package/lib/data-source/__tests__/components/CollectionDeletedPlaceholder.test.mjs +58 -0
  345. package/lib/data-source/__tests__/data-block/DataBlockProvider.test.mjs +151 -0
  346. package/lib/data-source/__tests__/data-block/data-block-demos/association-table-list-and-parent-record.mjs +108 -0
  347. package/lib/data-source/__tests__/data-block/data-block-demos/association-table-list-and-source-id.mjs +160 -0
  348. package/lib/data-source/__tests__/data-block/data-block-demos/collection-form-create.mjs +131 -0
  349. package/lib/data-source/__tests__/data-block/data-block-demos/collection-form-get-and-update.mjs +197 -0
  350. package/lib/data-source/__tests__/data-block/data-block-demos/collection-form-record-and-update.mjs +160 -0
  351. package/lib/data-source/__tests__/data-block/data-block-demos/collection-table-list.mjs +114 -0
  352. package/lib/data-source/__tests__/data-block/data-block-demos/createApp.mjs +66 -0
  353. package/lib/data-source/__tests__/data-source/CollectionDataSourceProvider.test.mjs +56 -0
  354. package/lib/data-source/__tests__/data-source/DataSource.test.mjs +81 -0
  355. package/lib/data-source/__tests__/data-source/DataSourceManager.test.mjs +174 -0
  356. package/lib/data-source/__tests__/data-source/DataSourceManagerProvider.test.mjs +45 -0
  357. package/lib/data-source/__tests__/data-source/DataSourceProvider.test.mjs +100 -0
  358. package/lib/data-source/__tests__/utils.test.mjs +66 -0
  359. package/lib/data-source/collection/AssociationProvider.mjs +68 -0
  360. package/lib/data-source/collection/Collection.mjs +200 -0
  361. package/lib/data-source/collection/CollectionManager.mjs +165 -0
  362. package/lib/data-source/collection/CollectionManagerProvider.mjs +64 -0
  363. package/lib/data-source/collection/CollectionProvider.mjs +53 -0
  364. package/lib/data-source/collection/ExtendCollectionsProvider.mjs +47 -0
  365. package/lib/data-source/collection/index.mjs +15 -0
  366. package/lib/data-source/collection/utils.mjs +62 -0
  367. package/lib/data-source/collection-field/CollectionField.mjs +116 -0
  368. package/lib/data-source/collection-field/CollectionFieldProvider.mjs +65 -0
  369. package/lib/data-source/collection-field/index.mjs +7 -0
  370. package/lib/data-source/collection-field-interface/CollectionFieldInterface.mjs +42 -0
  371. package/lib/data-source/collection-field-interface/CollectionFieldInterfaceManager.mjs +65 -0
  372. package/lib/data-source/collection-field-interface/index.mjs +7 -0
  373. package/lib/data-source/collection-record/CollectionRecord.mjs +34 -0
  374. package/lib/data-source/collection-record/CollectionRecordProvider.mjs +78 -0
  375. package/lib/data-source/collection-record/index.mjs +7 -0
  376. package/lib/data-source/collection-record/isNewRecord.mjs +26 -0
  377. package/lib/data-source/collection-template/CollectionTemplate.mjs +39 -0
  378. package/lib/data-source/collection-template/CollectionTemplateManager.mjs +61 -0
  379. package/lib/data-source/collection-template/index.mjs +7 -0
  380. package/lib/data-source/commonsSettingsItem/fieldComponent.mjs +80 -0
  381. package/lib/data-source/commonsSettingsItem/index.mjs +5 -0
  382. package/lib/data-source/components/CollectionDeletedPlaceholder.mjs +125 -0
  383. package/lib/data-source/components/DataSourceApplicationProvider.mjs +32 -0
  384. package/lib/data-source/components/index.mjs +7 -0
  385. package/lib/data-source/data-block/DataBlockProvider.mjs +115 -0
  386. package/lib/data-source/data-block/DataBlockRequestProvider.mjs +168 -0
  387. package/lib/data-source/data-block/DataBlockResourceProvider.mjs +84 -0
  388. package/lib/data-source/data-block/context/ConfigSetting.provider.mjs +18 -0
  389. package/lib/data-source/data-block/index.mjs +11 -0
  390. package/lib/data-source/data-source/DataSource.mjs +83 -0
  391. package/lib/data-source/data-source/DataSourceManager.mjs +127 -0
  392. package/lib/data-source/data-source/DataSourceManagerProvider.mjs +25 -0
  393. package/lib/data-source/data-source/DataSourceProvider.mjs +87 -0
  394. package/lib/data-source/data-source/index.mjs +11 -0
  395. package/lib/data-source/index.mjs +23 -0
  396. package/lib/data-source/utils.mjs +28 -0
  397. package/lib/env.d.mjs +1 -0
  398. package/lib/filter-provider/FilterProvider.mjs +182 -0
  399. package/lib/filter-provider/__tests__/transformToFilter.mjs +74 -0
  400. package/lib/filter-provider/__tests__/useFilter.mjs +61 -0
  401. package/lib/filter-provider/__tests__/utiles.test.mjs +271 -0
  402. package/lib/filter-provider/index.mjs +7 -0
  403. package/lib/filter-provider/utils.mjs +262 -0
  404. package/lib/flag-provider/FlagProvider.mjs +19 -0
  405. package/lib/flag-provider/__tests__/flag-provider.test.mjs +37 -0
  406. package/lib/flag-provider/hooks/useFlag.mjs +15 -0
  407. package/lib/flag-provider/index.mjs +7 -0
  408. package/lib/global.css +34 -0
  409. package/lib/hooks/index.mjs +7 -0
  410. package/lib/hooks/useAdminSchemaUid.mjs +7 -0
  411. package/lib/hooks/useMenuItem.mjs +101 -0
  412. package/lib/hooks/useViewport.mjs +47 -0
  413. package/lib/i18n/i18n.mjs +37 -0
  414. package/lib/i18n/index.mjs +5 -0
  415. package/lib/icon/Icon.mjs +80 -0
  416. package/lib/icon/__tests__/icon.test.mjs +49 -0
  417. package/lib/icon/demos/antd-icon.mjs +19 -0
  418. package/lib/icon/demos/custom-icon.mjs +28 -0
  419. package/lib/icon/demos/iconfont.mjs +22 -0
  420. package/lib/icon/demos/register-icon.mjs +35 -0
  421. package/lib/icon/index.mjs +5 -0
  422. package/lib/icon/preloaded.mjs +139 -0
  423. package/lib/index.mjs +53 -102387
  424. package/lib/locale/index.mjs +274 -0
  425. package/lib/modules/actions/ActionSchemaToolbar.mjs +24 -0
  426. package/lib/modules/actions/add-child/CreateChildInitializer.mjs +76 -0
  427. package/lib/modules/actions/add-child/addChildActionSettings.mjs +88 -0
  428. package/lib/modules/actions/add-new/CreateActionInitializer.mjs +82 -0
  429. package/lib/modules/actions/add-new/addNewActionSettings.mjs +81 -0
  430. package/lib/modules/actions/add-new/createFormBlockInitializers.mjs +75 -0
  431. package/lib/modules/actions/add-record/CustomizeAddRecordActionInitializer.mjs +78 -0
  432. package/lib/modules/actions/add-record/customizeAddRecordActionSettings.mjs +50 -0
  433. package/lib/modules/actions/add-record/customizeCreateFormBlockInitializers.mjs +45 -0
  434. package/lib/modules/actions/bulk-destroy/BulkDestroyActionInitializer.mjs +52 -0
  435. package/lib/modules/actions/bulk-destroy/bulkDeleteActionSettings.mjs +42 -0
  436. package/lib/modules/actions/delete/DestroyActionInitializer.mjs +40 -0
  437. package/lib/modules/actions/delete/deleteActionSettings.mjs +57 -0
  438. package/lib/modules/actions/disassociate/DisassociateActionInitializer.mjs +40 -0
  439. package/lib/modules/actions/disassociate/__e2e__/disassociate.test.mjs +53 -0
  440. package/lib/modules/actions/disassociate/__e2e__/templatesOfPage.mjs +386 -0
  441. package/lib/modules/actions/disassociate/disassociateActionSettings.mjs +57 -0
  442. package/lib/modules/actions/expand-collapse/ExpandableActionInitializer.mjs +40 -0
  443. package/lib/modules/actions/expand-collapse/expendableActionSettings.mjs +148 -0
  444. package/lib/modules/actions/filter/FilterActionInitializer.mjs +34 -0
  445. package/lib/modules/actions/filter/filterActionSettings.mjs +103 -0
  446. package/lib/modules/actions/link/customizeLinkActionSettings.mjs +149 -0
  447. package/lib/modules/actions/link/hooks.mjs +243 -0
  448. package/lib/modules/actions/refresh/RefreshActionInitializer.mjs +33 -0
  449. package/lib/modules/actions/refresh/refreshActionSettings.mjs +42 -0
  450. package/lib/modules/actions/save-record/SaveRecordActionInitializer.mjs +49 -0
  451. package/lib/modules/actions/save-record/customizeSaveRecordActionSettings.mjs +67 -0
  452. package/lib/modules/actions/submit/CreateSubmitActionInitializer.mjs +39 -0
  453. package/lib/modules/actions/submit/UpdateSubmitActionInitializer.mjs +44 -0
  454. package/lib/modules/actions/submit/createSubmitActionSettings.mjs +250 -0
  455. package/lib/modules/actions/submit/updateSubmitActionSettings.mjs +107 -0
  456. package/lib/modules/actions/update-record/UpdateRecordActionInitializer.mjs +48 -0
  457. package/lib/modules/actions/update-record/customizeUpdateRecordActionSettings.mjs +83 -0
  458. package/lib/modules/actions/view-edit-popup/PopupActionInitializer.mjs +74 -0
  459. package/lib/modules/actions/view-edit-popup/RecordFormBlockInitializers.mjs +46 -0
  460. package/lib/modules/actions/view-edit-popup/UpdateActionInitializer.mjs +69 -0
  461. package/lib/modules/actions/view-edit-popup/ViewActionInitializer.mjs +68 -0
  462. package/lib/modules/actions/view-edit-popup/customizePopupActionSettings.mjs +70 -0
  463. package/lib/modules/actions/view-edit-popup/editActionSettings.mjs +65 -0
  464. package/lib/modules/actions/view-edit-popup/viewActionSettings.mjs +70 -0
  465. package/lib/modules/blocks/BlockSchemaToolbar.mjs +85 -0
  466. package/lib/modules/blocks/data-blocks/details-multi/DetailsActionInitializers.mjs +49 -0
  467. package/lib/modules/blocks/data-blocks/details-multi/DetailsBlockInitializer.mjs +76 -0
  468. package/lib/modules/blocks/data-blocks/details-multi/__e2e__/schemaInitializer.test.mjs +123 -0
  469. package/lib/modules/blocks/data-blocks/details-multi/__e2e__/schemaSettings.test.mjs +81 -0
  470. package/lib/modules/blocks/data-blocks/details-multi/__e2e__/templatesOfBug.mjs +1 -0
  471. package/lib/modules/blocks/data-blocks/details-multi/__tests__/createDetailsBlockWithPagingUISchema.test.mjs +20 -0
  472. package/lib/modules/blocks/data-blocks/details-multi/createDetailsWithPaginationUISchema.mjs +66 -0
  473. package/lib/modules/blocks/data-blocks/details-multi/detailsWithPaginationSettings.mjs +256 -0
  474. package/lib/modules/blocks/data-blocks/details-multi/hooks/useDetailsWithPaginationDecoratorProps.mjs +19 -0
  475. package/lib/modules/blocks/data-blocks/details-multi/hooks/useDetailsWithPaginationProps.mjs +11 -0
  476. package/lib/modules/blocks/data-blocks/details-multi/setDataLoadingModeSettingsItem.mjs +106 -0
  477. package/lib/modules/blocks/data-blocks/details-single/ReadPrettyFormActionInitializers.mjs +94 -0
  478. package/lib/modules/blocks/data-blocks/details-single/ReadPrettyFormItemInitializers.mjs +110 -0
  479. package/lib/modules/blocks/data-blocks/details-single/RecordReadPrettyFormBlockInitializer.mjs +108 -0
  480. package/lib/modules/blocks/data-blocks/details-single/__e2e__/schemaInitializer.test.mjs +110 -0
  481. package/lib/modules/blocks/data-blocks/details-single/__e2e__/schemaSettings.test.mjs +31 -0
  482. package/lib/modules/blocks/data-blocks/details-single/__e2e__/templatesOfBug.mjs +1 -0
  483. package/lib/modules/blocks/data-blocks/details-single/__tests__/createDetailsBlockWithoutPagingUISchema.test.mjs +21 -0
  484. package/lib/modules/blocks/data-blocks/details-single/createDetailsUISchema.mjs +62 -0
  485. package/lib/modules/blocks/data-blocks/details-single/detailsBlockSettings.mjs +67 -0
  486. package/lib/modules/blocks/data-blocks/details-single/hooks/useDetailsDecoratorProps.mjs +43 -0
  487. package/lib/modules/blocks/data-blocks/details-single/hooks/useDetailsProps.mjs +11 -0
  488. package/lib/modules/blocks/data-blocks/form/CreateFormBlockInitializer.mjs +85 -0
  489. package/lib/modules/blocks/data-blocks/form/FilterItemCustomSettings.mjs +321 -0
  490. package/lib/modules/blocks/data-blocks/form/FormBlockInitializer.mjs +113 -0
  491. package/lib/modules/blocks/data-blocks/form/FormItemSchemaToolbar.mjs +23 -0
  492. package/lib/modules/blocks/data-blocks/form/RecordFormBlockInitializer.mjs +123 -0
  493. package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/associationForm.test.mjs +27 -0
  494. package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/dragAndDrop.test.mjs +33 -0
  495. package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/lazyLoadAssociationFields.test.mjs +207 -0
  496. package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/lazyLoadVariables.test.mjs +36 -0
  497. package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/schemaInitializer.test.mjs +167 -0
  498. package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/schemaSettings.test.mjs +1367 -0
  499. package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/templatesOfBug.mjs +6009 -0
  500. package/lib/modules/blocks/data-blocks/form/__e2e__/form-edit/schemaInitializer.test.mjs +22 -0
  501. package/lib/modules/blocks/data-blocks/form/__e2e__/form-edit/schemaSettings.test.mjs +235 -0
  502. package/lib/modules/blocks/data-blocks/form/__e2e__/form-edit/templatesOfBug.mjs +1 -0
  503. package/lib/modules/blocks/data-blocks/form/__tests__/createCreateFormBlockUISchema.test.mjs +27 -0
  504. package/lib/modules/blocks/data-blocks/form/__tests__/createEditFormBlockUISchema.test.mjs +27 -0
  505. package/lib/modules/blocks/data-blocks/form/createCreateFormBlockUISchema.mjs +63 -0
  506. package/lib/modules/blocks/data-blocks/form/createEditFormBlockUISchema.mjs +62 -0
  507. package/lib/modules/blocks/data-blocks/form/createFormActionInitializers.mjs +51 -0
  508. package/lib/modules/blocks/data-blocks/form/createFormBlockSettings.mjs +157 -0
  509. package/lib/modules/blocks/data-blocks/form/editFormBlockSettings.mjs +90 -0
  510. package/lib/modules/blocks/data-blocks/form/fieldSettingsFormItem.mjs +598 -0
  511. package/lib/modules/blocks/data-blocks/form/formActionInitializers.mjs +54 -0
  512. package/lib/modules/blocks/data-blocks/form/formItemInitializers.mjs +51 -0
  513. package/lib/modules/blocks/data-blocks/form/hooks/useCreateFormBlockDecoratorProps.mjs +19 -0
  514. package/lib/modules/blocks/data-blocks/form/hooks/useCreateFormBlockProps.mjs +11 -0
  515. package/lib/modules/blocks/data-blocks/form/hooks/useEditFormBlockDecoratorProps.mjs +29 -0
  516. package/lib/modules/blocks/data-blocks/form/hooks/useEditFormBlockProps.mjs +11 -0
  517. package/lib/modules/blocks/data-blocks/form/index.mjs +31 -0
  518. package/lib/modules/blocks/data-blocks/form/updateFormActionInitializers.mjs +62 -0
  519. package/lib/modules/blocks/data-blocks/grid-card/GridCardActionInitializers.mjs +94 -0
  520. package/lib/modules/blocks/data-blocks/grid-card/GridCardBlockInitializer.mjs +69 -0
  521. package/lib/modules/blocks/data-blocks/grid-card/__e2e__/schemaInitializer.test.mjs +231 -0
  522. package/lib/modules/blocks/data-blocks/grid-card/__e2e__/schemaSettings.test.mjs +58 -0
  523. package/lib/modules/blocks/data-blocks/grid-card/__e2e__/templatesOfBug.mjs +1 -0
  524. package/lib/modules/blocks/data-blocks/grid-card/__tests__/createGridCardBlockSchema.test.mjs +32 -0
  525. package/lib/modules/blocks/data-blocks/grid-card/createGridCardBlockUISchema.mjs +78 -0
  526. package/lib/modules/blocks/data-blocks/grid-card/gridCardBlockSettings.mjs +484 -0
  527. package/lib/modules/blocks/data-blocks/grid-card/gridCardItemActionInitializers.mjs +109 -0
  528. package/lib/modules/blocks/data-blocks/grid-card/hooks/useGridCardBlockDecoratorProps.mjs +25 -0
  529. package/lib/modules/blocks/data-blocks/grid-card/hooks/useGridCardBlockParams.mjs +28 -0
  530. package/lib/modules/blocks/data-blocks/grid-card/utils.mjs +17 -0
  531. package/lib/modules/blocks/data-blocks/list/ListActionInitializers.mjs +90 -0
  532. package/lib/modules/blocks/data-blocks/list/ListBlockInitializer.mjs +69 -0
  533. package/lib/modules/blocks/data-blocks/list/__e2e__/schemaInitializer.test.mjs +224 -0
  534. package/lib/modules/blocks/data-blocks/list/__e2e__/schemaSettings.test.mjs +29 -0
  535. package/lib/modules/blocks/data-blocks/list/__e2e__/templatesOfBug.mjs +1 -0
  536. package/lib/modules/blocks/data-blocks/list/__tests__/createListBlockSchema.test.mjs +30 -0
  537. package/lib/modules/blocks/data-blocks/list/createListBlockUISchema.mjs +71 -0
  538. package/lib/modules/blocks/data-blocks/list/hooks/useListBlockDecoratorProps.mjs +19 -0
  539. package/lib/modules/blocks/data-blocks/list/listBlockSettings.mjs +286 -0
  540. package/lib/modules/blocks/data-blocks/list/listItemActionInitializers.mjs +109 -0
  541. package/lib/modules/blocks/data-blocks/table/TableActionColumnInitializers.mjs +287 -0
  542. package/lib/modules/blocks/data-blocks/table/TableActionInitializers.mjs +143 -0
  543. package/lib/modules/blocks/data-blocks/table/TableBlockInitializer.mjs +69 -0
  544. package/lib/modules/blocks/data-blocks/table/TableColumnInitializers.mjs +135 -0
  545. package/lib/modules/blocks/data-blocks/table/TableColumnSchemaToolbar.mjs +35 -0
  546. package/lib/modules/blocks/data-blocks/table/__e2e__/actions/duplicate.test.mjs +19 -0
  547. package/lib/modules/blocks/data-blocks/table/__e2e__/actions/filter.test.mjs +46 -0
  548. package/lib/modules/blocks/data-blocks/table/__e2e__/checkboxForTableRow.test.mjs +28 -0
  549. package/lib/modules/blocks/data-blocks/table/__e2e__/dragAndDrop.test.mjs +40 -0
  550. package/lib/modules/blocks/data-blocks/table/__e2e__/schemaInitializer.test.mjs +450 -0
  551. package/lib/modules/blocks/data-blocks/table/__e2e__/schemaSettings.test.mjs +922 -0
  552. package/lib/modules/blocks/data-blocks/table/__e2e__/templatesOfBug.mjs +937 -0
  553. package/lib/modules/blocks/data-blocks/table/__e2e__/tree/schemaSettings.test.mjs +53 -0
  554. package/lib/modules/blocks/data-blocks/table/__tests__/createTableBLockSchema.test.mjs +24 -0
  555. package/lib/modules/blocks/data-blocks/table/createTableBlockUISchema.mjs +90 -0
  556. package/lib/modules/blocks/data-blocks/table/hooks/useTableBlockDecoratorProps.mjs +54 -0
  557. package/lib/modules/blocks/data-blocks/table/hooks/useTableBlockProps.mjs +176 -0
  558. package/lib/modules/blocks/data-blocks/table/index.mjs +21 -0
  559. package/lib/modules/blocks/data-blocks/table/tableBlockSettings.mjs +461 -0
  560. package/lib/modules/blocks/data-blocks/table/tableColumnSettings.mjs +388 -0
  561. package/lib/modules/blocks/data-blocks/table/utils.mjs +30 -0
  562. package/lib/modules/blocks/data-blocks/table-selector/TableSelectorInitializer.mjs +45 -0
  563. package/lib/modules/blocks/data-blocks/table-selector/__e2e__/schemaInitializer.test.mjs +174 -0
  564. package/lib/modules/blocks/data-blocks/table-selector/__e2e__/schemaSettings.test.mjs +169 -0
  565. package/lib/modules/blocks/data-blocks/table-selector/__e2e__/templatesOfBug.mjs +695 -0
  566. package/lib/modules/blocks/data-blocks/table-selector/__e2e__/utils.mjs +20 -0
  567. package/lib/modules/blocks/data-blocks/table-selector/__tests__/createTableSelectorSchema.test.mjs +22 -0
  568. package/lib/modules/blocks/data-blocks/table-selector/createTableSelectorUISchema.mjs +55 -0
  569. package/lib/modules/blocks/data-blocks/table-selector/hooks/useTableSelectorDecoratorProps.mjs +5 -0
  570. package/lib/modules/blocks/data-blocks/table-selector/index.mjs +7 -0
  571. package/lib/modules/blocks/data-blocks/table-selector/tableSelectorBlockSettings.mjs +353 -0
  572. package/lib/modules/blocks/filter-blocks/collapse/CollapseItemSchemaToolbar.mjs +22 -0
  573. package/lib/modules/blocks/filter-blocks/collapse/FilterCollapseBlockInitializer.mjs +51 -0
  574. package/lib/modules/blocks/filter-blocks/collapse/__e2e__/schemaInitializer.test.mjs +67 -0
  575. package/lib/modules/blocks/filter-blocks/collapse/__e2e__/schemaSettings.test.mjs +72 -0
  576. package/lib/modules/blocks/filter-blocks/collapse/__e2e__/templatesOfBug.mjs +1 -0
  577. package/lib/modules/blocks/filter-blocks/collapse/__tests__/createCollapseBlockSchema.test.mjs +46 -0
  578. package/lib/modules/blocks/filter-blocks/collapse/createFilterCollapseBlockSchema.mjs +37 -0
  579. package/lib/modules/blocks/filter-blocks/collapse/filterCollapseBlockSettings.mjs +79 -0
  580. package/lib/modules/blocks/filter-blocks/collapse/filterCollapseItemFieldSettings.mjs +244 -0
  581. package/lib/modules/blocks/filter-blocks/collapse/filterCollapseItemInitializer.mjs +170 -0
  582. package/lib/modules/blocks/filter-blocks/collapse/hooks/useCollapseBlockDecoratorProps.mjs +5 -0
  583. package/lib/modules/blocks/filter-blocks/form/FilterFormActionInitializers.mjs +38 -0
  584. package/lib/modules/blocks/filter-blocks/form/FilterFormBlockInitializer.mjs +60 -0
  585. package/lib/modules/blocks/filter-blocks/form/__e2e__/schemaInitializer.test.mjs +127 -0
  586. package/lib/modules/blocks/filter-blocks/form/__e2e__/schemaSettings.test.mjs +111 -0
  587. package/lib/modules/blocks/filter-blocks/form/__e2e__/templatesOfBug.mjs +1 -0
  588. package/lib/modules/blocks/filter-blocks/form/__tests__/createFilterFormBlockSchema.test.mjs +31 -0
  589. package/lib/modules/blocks/filter-blocks/form/createFilterFormBlockSchema.mjs +56 -0
  590. package/lib/modules/blocks/filter-blocks/form/filterFormBlockSettings.mjs +87 -0
  591. package/lib/modules/blocks/filter-blocks/form/filterFormItemFieldSettings.mjs +394 -0
  592. package/lib/modules/blocks/filter-blocks/form/filterFormItemInitializers.mjs +53 -0
  593. package/lib/modules/blocks/filter-blocks/form/hooks/useFilterFormBlockDecoratorProps.mjs +5 -0
  594. package/lib/modules/blocks/filter-blocks/form/hooks/useFilterFormBlockProps.mjs +11 -0
  595. package/lib/modules/blocks/filter-blocks/tree/FilterTreeActionInitializers.mjs +38 -0
  596. package/lib/modules/blocks/filter-blocks/tree/FilterTreeBlockInitializer.mjs +101 -0
  597. package/lib/modules/blocks/filter-blocks/tree/filterTreeBlockSettings.mjs +87 -0
  598. package/lib/modules/blocks/filter-blocks/tree/filterTreeItemFieldSettings.mjs +394 -0
  599. package/lib/modules/blocks/filter-blocks/tree/filterTreeItemInitializers.mjs +53 -0
  600. package/lib/modules/blocks/other-blocks/markdown/MarkdownBlockInitializer.mjs +48 -0
  601. package/lib/modules/blocks/other-blocks/markdown/MarkdownFormItemInitializer.mjs +42 -0
  602. package/lib/modules/blocks/other-blocks/markdown/__e2e__/schemaInitializer.test.mjs +16 -0
  603. package/lib/modules/blocks/other-blocks/markdown/__e2e__/schemaSettings.test.mjs +40 -0
  604. package/lib/modules/blocks/other-blocks/markdown/__e2e__/templatesOfBug.mjs +1 -0
  605. package/lib/modules/blocks/other-blocks/markdown/markdownBlockSettings.mjs +51 -0
  606. package/lib/modules/blocks/useParentRecordCommon.mjs +18 -0
  607. package/lib/modules/blocks/useSourceId.mjs +23 -0
  608. package/lib/modules/blocks/useSourceKey.mjs +16 -0
  609. package/lib/modules/dialog/__e2e__/schemaInitializer.test.mjs +435 -0
  610. package/lib/modules/dialog/__e2e__/schemaSettings.test.mjs +65 -0
  611. package/lib/modules/dialog/__e2e__/templatesOfBug.mjs +2128 -0
  612. package/lib/modules/dialog/__e2e__/zIndex.test.mjs +46 -0
  613. package/lib/modules/fields/component/CascadeSelect/cascadeSelectComponentFieldSettings.mjs +120 -0
  614. package/lib/modules/fields/component/Cascader/cascaderComponentFieldSettings.mjs +457 -0
  615. package/lib/modules/fields/component/Checkbox/checkboxComponentFieldSettings.mjs +71 -0
  616. package/lib/modules/fields/component/DatePicker/__e2e__/schemaSettings.test.mjs +86 -0
  617. package/lib/modules/fields/component/DatePicker/__e2e__/utils.mjs +335 -0
  618. package/lib/modules/fields/component/DatePicker/datePickerComponentFieldSettings.mjs +37 -0
  619. package/lib/modules/fields/component/DrawerSubTable/drawerSubTableComponentFieldSettings.mjs +184 -0
  620. package/lib/modules/fields/component/FileManager/fileManagerComponentFieldSettings.mjs +225 -0
  621. package/lib/modules/fields/component/FileManager/uploadAttachmentComponentFieldSettings.mjs +123 -0
  622. package/lib/modules/fields/component/InputNumber/inputNumberComponentFieldSettings.mjs +45 -0
  623. package/lib/modules/fields/component/Nester/subformComponentFieldSettings.mjs +157 -0
  624. package/lib/modules/fields/component/Picker/TableSelectorInitializers.mjs +98 -0
  625. package/lib/modules/fields/component/Picker/recordPickerComponentFieldSettings.mjs +222 -0
  626. package/lib/modules/fields/component/PopoverNester/subformPopoverComponentFieldSettings.mjs +134 -0
  627. package/lib/modules/fields/component/Radio/radioComponentFieldSettings.mjs +71 -0
  628. package/lib/modules/fields/component/Select/selectComponentFieldSettings.mjs +453 -0
  629. package/lib/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.mjs +447 -0
  630. package/lib/modules/fields/component/Tag/tagComponentFieldSettings.mjs +207 -0
  631. package/lib/modules/fields/component/UnixTimestamp/unixTimestampComponentFieldSettings.mjs +37 -0
  632. package/lib/modules/fields/initializer/CollectionFieldInitializer.mjs +30 -0
  633. package/lib/modules/fields/initializer/TableCollectionFieldInitializer.mjs +30 -0
  634. package/lib/modules/menu/GroupItem.mjs +110 -0
  635. package/lib/modules/menu/LinkMenuItem.mjs +116 -0
  636. package/lib/modules/menu/PageMenuItem.mjs +125 -0
  637. package/lib/modules/menu/__e2e__/dragAndDrop.test.mjs +34 -0
  638. package/lib/modules/menu/__e2e__/schemaInitializer.test.mjs +114 -0
  639. package/lib/modules/menu/__e2e__/schemaSettings.test.mjs +366 -0
  640. package/lib/modules/menu/__e2e__/templatesOfBug.mjs +1 -0
  641. package/lib/modules/menu/menuItemInitializer.mjs +65 -0
  642. package/lib/modules/page/BlockInitializers.mjs +86 -0
  643. package/lib/modules/page/__e2e__/blockInitializers.test.mjs +23 -0
  644. package/lib/modules/page/__e2e__/dragAndDrop.test.mjs +24 -0
  645. package/lib/modules/page/__e2e__/schemaInitailizer.test.mjs +22 -0
  646. package/lib/modules/page/__e2e__/schemaSettings.test.mjs +154 -0
  647. package/lib/modules/page/__e2e__/templatesOfBug.mjs +1 -0
  648. package/lib/modules/plugin-manager/__e2e__/pluginManager.test.mjs +132 -0
  649. package/lib/modules/plugin-manager/__e2e__/templatesOfBug.mjs +1 -0
  650. package/lib/modules/user-center/__e2e__/settings.test.mjs +18 -0
  651. package/lib/modules/variable/DeclareVariable.mjs +27 -0
  652. package/lib/modules/variable/useVariable.mjs +27 -0
  653. package/lib/powered-by/index.mjs +57 -0
  654. package/lib/record-provider/index.mjs +77 -0
  655. package/lib/route-switch/RouteSchemaComponent.mjs +27 -0
  656. package/lib/route-switch/index.mjs +5 -0
  657. package/lib/schema-component/antd/AntdSchemaComponentProvider.mjs +74 -0
  658. package/lib/schema-component/antd/__builtins__/hooks/index.mjs +9 -0
  659. package/lib/schema-component/antd/__builtins__/hooks/useConfig.mjs +14 -0
  660. package/lib/schema-component/antd/__builtins__/hooks/usePrefixCls.mjs +22 -0
  661. package/lib/schema-component/antd/__builtins__/hooks/useToken.mjs +13 -0
  662. package/lib/schema-component/antd/__builtins__/index.mjs +11 -0
  663. package/lib/schema-component/antd/__builtins__/loading.mjs +21 -0
  664. package/lib/schema-component/antd/__builtins__/portal.mjs +76 -0
  665. package/lib/schema-component/antd/__builtins__/render.mjs +65 -0
  666. package/lib/schema-component/antd/__builtins__/style.mjs +79 -0
  667. package/lib/schema-component/antd/action/Action.Area.mjs +130 -0
  668. package/lib/schema-component/antd/action/Action.Area.style.mjs +48 -0
  669. package/lib/schema-component/antd/action/Action.Container.mjs +75 -0
  670. package/lib/schema-component/antd/action/Action.Designer.mjs +1053 -0
  671. package/lib/schema-component/antd/action/Action.Drawer.mjs +179 -0
  672. package/lib/schema-component/antd/action/Action.Drawer.style.mjs +52 -0
  673. package/lib/schema-component/antd/action/Action.Link.mjs +37 -0
  674. package/lib/schema-component/antd/action/Action.Modal.mjs +214 -0
  675. package/lib/schema-component/antd/action/Action.Page.mjs +112 -0
  676. package/lib/schema-component/antd/action/Action.Popover.mjs +1 -0
  677. package/lib/schema-component/antd/action/Action.Sheet.mjs +115 -0
  678. package/lib/schema-component/antd/action/Action.mjs +349 -0
  679. package/lib/schema-component/antd/action/Action.style.mjs +53 -0
  680. package/lib/schema-component/antd/action/ActionBar.mjs +172 -0
  681. package/lib/schema-component/antd/action/__tests__/action.test.mjs +161 -0
  682. package/lib/schema-component/antd/action/context.mjs +29 -0
  683. package/lib/schema-component/antd/action/demos/demo1.mjs +87 -0
  684. package/lib/schema-component/antd/action/demos/demo2.mjs +90 -0
  685. package/lib/schema-component/antd/action/demos/demo3.mjs +148 -0
  686. package/lib/schema-component/antd/action/demos/demo4.mjs +75 -0
  687. package/lib/schema-component/antd/action/demos/demo5.mjs +237 -0
  688. package/lib/schema-component/antd/action/demos/demo6.mjs +114 -0
  689. package/lib/schema-component/antd/action/hooks/useGetAriaLabelOfAction.mjs +62 -0
  690. package/lib/schema-component/antd/action/hooks/useGetAriaLabelOfDrawer.mjs +43 -0
  691. package/lib/schema-component/antd/action/hooks/useGetAriaLabelOfModal.mjs +43 -0
  692. package/lib/schema-component/antd/action/hooks/useGetAriaLabelOfPopover.mjs +43 -0
  693. package/lib/schema-component/antd/action/hooks/useSetAriaLabelForDrawer.mjs +42 -0
  694. package/lib/schema-component/antd/action/hooks/useSetAriaLabelForModal.mjs +44 -0
  695. package/lib/schema-component/antd/action/hooks/useSetAriaLabelForPopover.mjs +33 -0
  696. package/lib/schema-component/antd/action/hooks.mjs +86 -0
  697. package/lib/schema-component/antd/action/index.mjs +23 -0
  698. package/lib/schema-component/antd/action/types.mjs +4 -0
  699. package/lib/schema-component/antd/action/utils.mjs +229 -0
  700. package/lib/schema-component/antd/appends-tree-select/AppendsTreeSelect.mjs +268 -0
  701. package/lib/schema-component/antd/appends-tree-select/AppendsTreeSelectV2.mjs +267 -0
  702. package/lib/schema-component/antd/appends-tree-select/index.mjs +7 -0
  703. package/lib/schema-component/antd/association-cascader/AssociationCascader.mjs +173 -0
  704. package/lib/schema-component/antd/association-cascader/index.mjs +5 -0
  705. package/lib/schema-component/antd/association-field/AssociationFieldProvider.mjs +166 -0
  706. package/lib/schema-component/antd/association-field/AssociationSelect.mjs +229 -0
  707. package/lib/schema-component/antd/association-field/Editable.mjs +165 -0
  708. package/lib/schema-component/antd/association-field/FileManager.mjs +261 -0
  709. package/lib/schema-component/antd/association-field/InternalCascadeSelect.mjs +463 -0
  710. package/lib/schema-component/antd/association-field/InternalCascader.mjs +443 -0
  711. package/lib/schema-component/antd/association-field/InternalDrawerSubTable.mjs +138 -0
  712. package/lib/schema-component/antd/association-field/InternalNester.mjs +117 -0
  713. package/lib/schema-component/antd/association-field/InternalPicker.mjs +276 -0
  714. package/lib/schema-component/antd/association-field/InternalPopoverNester.mjs +176 -0
  715. package/lib/schema-component/antd/association-field/InternalSubTable.mjs +133 -0
  716. package/lib/schema-component/antd/association-field/InternalTag.mjs +180 -0
  717. package/lib/schema-component/antd/association-field/InternalViewer.mjs +197 -0
  718. package/lib/schema-component/antd/association-field/Nester.mjs +330 -0
  719. package/lib/schema-component/antd/association-field/ReadPretty.mjs +82 -0
  720. package/lib/schema-component/antd/association-field/SubTable.mjs +351 -0
  721. package/lib/schema-component/antd/association-field/SubTabs/InternalCollapse.mjs +384 -0
  722. package/lib/schema-component/antd/association-field/SubTabs/hook.mjs +87 -0
  723. package/lib/schema-component/antd/association-field/SubTabs/index.mjs +5 -0
  724. package/lib/schema-component/antd/association-field/SubTabs/styles.mjs +33 -0
  725. package/lib/schema-component/antd/association-field/components/CreateRecordAction.mjs +84 -0
  726. package/lib/schema-component/antd/association-field/context.mjs +10 -0
  727. package/lib/schema-component/antd/association-field/hooks.mjs +221 -0
  728. package/lib/schema-component/antd/association-field/index.mjs +42 -0
  729. package/lib/schema-component/antd/association-field/schema.mjs +135 -0
  730. package/lib/schema-component/antd/association-field/util.mjs +133 -0
  731. package/lib/schema-component/antd/association-filter/ActionBarAssociationFilterAction.mjs +88 -0
  732. package/lib/schema-component/antd/association-filter/AssociationFilter.BlockDesigner.mjs +67 -0
  733. package/lib/schema-component/antd/association-filter/AssociationFilter.Initializer.mjs +67 -0
  734. package/lib/schema-component/antd/association-filter/AssociationFilter.Item.Designer.mjs +168 -0
  735. package/lib/schema-component/antd/association-filter/AssociationFilter.Item.mjs +183 -0
  736. package/lib/schema-component/antd/association-filter/AssociationFilter.Item.style.mjs +107 -0
  737. package/lib/schema-component/antd/association-filter/AssociationFilter.mjs +128 -0
  738. package/lib/schema-component/antd/association-filter/AssociationFilterDesignerDelete.mjs +55 -0
  739. package/lib/schema-component/antd/association-filter/AssociationFilterDesignerDisplayField.mjs +43 -0
  740. package/lib/schema-component/antd/association-filter/utilts.mjs +7 -0
  741. package/lib/schema-component/antd/association-select/AssociationSelect.mjs +1010 -0
  742. package/lib/schema-component/antd/association-select/ReadPretty.mjs +38 -0
  743. package/lib/schema-component/antd/association-select/__tests__/association-select.test.mjs +33 -0
  744. package/lib/schema-component/antd/association-select/demos/demo1.mjs +75 -0
  745. package/lib/schema-component/antd/association-select/index.mjs +5 -0
  746. package/lib/schema-component/antd/association-select/useServiceOptions.mjs +114 -0
  747. package/lib/schema-component/antd/auto-complete/AutoComplete.mjs +92 -0
  748. package/lib/schema-component/antd/auto-complete/index.mjs +5 -0
  749. package/lib/schema-component/antd/block-item/BlockItem.mjs +93 -0
  750. package/lib/schema-component/antd/block-item/BlockToolbar.mjs +114 -0
  751. package/lib/schema-component/antd/block-item/__tests__/block-item.test.mjs +29 -0
  752. package/lib/schema-component/antd/block-item/demos/demo1.mjs +75 -0
  753. package/lib/schema-component/antd/block-item/hooks/useGetAriaLabelOfBlockItem.mjs +63 -0
  754. package/lib/schema-component/antd/block-item/index.mjs +5 -0
  755. package/lib/schema-component/antd/block-item/useBlockToolbar.mjs +107 -0
  756. package/lib/schema-component/antd/card-item/CardItem.mjs +49 -0
  757. package/lib/schema-component/antd/card-item/__tests__/card-item.test.mjs +28 -0
  758. package/lib/schema-component/antd/card-item/demos/demo1.mjs +45 -0
  759. package/lib/schema-component/antd/card-item/index.mjs +5 -0
  760. package/lib/schema-component/antd/card-item/style.mjs +33 -0
  761. package/lib/schema-component/antd/cascader/Cascader.mjs +123 -0
  762. package/lib/schema-component/antd/cascader/ReadPretty.mjs +50 -0
  763. package/lib/schema-component/antd/cascader/__tests__/cascader.test.mjs +56 -0
  764. package/lib/schema-component/antd/cascader/defaultFieldNames.mjs +9 -0
  765. package/lib/schema-component/antd/cascader/demos/demo1.mjs +100 -0
  766. package/lib/schema-component/antd/cascader/demos/demo2.mjs +140 -0
  767. package/lib/schema-component/antd/cascader/index.mjs +5 -0
  768. package/lib/schema-component/antd/checkbox/Checkbox.mjs +120 -0
  769. package/lib/schema-component/antd/checkbox/__tests__/checkbox.test.mjs +60 -0
  770. package/lib/schema-component/antd/checkbox/demos/checkbox.group.mjs +73 -0
  771. package/lib/schema-component/antd/checkbox/demos/checkbox.mjs +59 -0
  772. package/lib/schema-component/antd/checkbox/index.mjs +5 -0
  773. package/lib/schema-component/antd/collection-select/CollectionSelect.mjs +194 -0
  774. package/lib/schema-component/antd/collection-select/__tests__/collection-select.test.mjs +33 -0
  775. package/lib/schema-component/antd/collection-select/demos/demo1.mjs +54 -0
  776. package/lib/schema-component/antd/collection-select/index.mjs +5 -0
  777. package/lib/schema-component/antd/color-picker/ColorPicker.mjs +114 -0
  778. package/lib/schema-component/antd/color-picker/ReadPretty.mjs +36 -0
  779. package/lib/schema-component/antd/color-picker/demos/demo1.mjs +68 -0
  780. package/lib/schema-component/antd/color-picker/index.mjs +5 -0
  781. package/lib/schema-component/antd/color-picker/util.mjs +196 -0
  782. package/lib/schema-component/antd/color-select/ColorSelect.mjs +73 -0
  783. package/lib/schema-component/antd/color-select/__tests__/color-select.test.mjs +32 -0
  784. package/lib/schema-component/antd/color-select/demos/demo1.mjs +59 -0
  785. package/lib/schema-component/antd/color-select/index.mjs +5 -0
  786. package/lib/schema-component/antd/cron/Cron.mjs +100 -0
  787. package/lib/schema-component/antd/cron/CronSet.mjs +147 -0
  788. package/lib/schema-component/antd/cron/__tests__/cron-set.test.mjs +50 -0
  789. package/lib/schema-component/antd/cron/demos/demo1.mjs +50 -0
  790. package/lib/schema-component/antd/cron/demos/demo2.mjs +69 -0
  791. package/lib/schema-component/antd/cron/index.mjs +7 -0
  792. package/lib/schema-component/antd/custom-cascader/CustomCascader.mjs +63 -0
  793. package/lib/schema-component/antd/custom-cascader/ReadPretty.mjs +50 -0
  794. package/lib/schema-component/antd/custom-cascader/defaultFieldNames.mjs +9 -0
  795. package/lib/schema-component/antd/custom-cascader/index.mjs +5 -0
  796. package/lib/schema-component/antd/date-picker/DatePicker.mjs +176 -0
  797. package/lib/schema-component/antd/date-picker/ReadPretty.mjs +66 -0
  798. package/lib/schema-component/antd/date-picker/__tests__/date-picker.test.mjs +250 -0
  799. package/lib/schema-component/antd/date-picker/__tests__/getDateRanges.test.mjs +119 -0
  800. package/lib/schema-component/antd/date-picker/__tests__/mapDatePicker.test.mjs +212 -0
  801. package/lib/schema-component/antd/date-picker/__tests__/mapRangePicker.test.mjs +71 -0
  802. package/lib/schema-component/antd/date-picker/__tests__/util.test.mjs +182 -0
  803. package/lib/schema-component/antd/date-picker/demos/demo1.mjs +76 -0
  804. package/lib/schema-component/antd/date-picker/demos/demo10.mjs +80 -0
  805. package/lib/schema-component/antd/date-picker/demos/demo11.mjs +84 -0
  806. package/lib/schema-component/antd/date-picker/demos/demo2.mjs +79 -0
  807. package/lib/schema-component/antd/date-picker/demos/demo3.mjs +77 -0
  808. package/lib/schema-component/antd/date-picker/demos/demo4.mjs +94 -0
  809. package/lib/schema-component/antd/date-picker/demos/demo5.mjs +93 -0
  810. package/lib/schema-component/antd/date-picker/demos/demo6.mjs +93 -0
  811. package/lib/schema-component/antd/date-picker/demos/demo7.mjs +80 -0
  812. package/lib/schema-component/antd/date-picker/demos/demo8.mjs +80 -0
  813. package/lib/schema-component/antd/date-picker/demos/demo9.mjs +80 -0
  814. package/lib/schema-component/antd/date-picker/index.mjs +5 -0
  815. package/lib/schema-component/antd/date-picker/util.mjs +217 -0
  816. package/lib/schema-component/antd/details/Details.mjs +44 -0
  817. package/lib/schema-component/antd/details/__tests__/details.test.mjs +25 -0
  818. package/lib/schema-component/antd/details/demos/demo1.mjs +59 -0
  819. package/lib/schema-component/antd/details/index.mjs +5 -0
  820. package/lib/schema-component/antd/error-fallback/ErrorFallback.mjs +77 -0
  821. package/lib/schema-component/antd/error-fallback/__tests__/error-fallback.test.mjs +33 -0
  822. package/lib/schema-component/antd/error-fallback/demos/demo1.mjs +30 -0
  823. package/lib/schema-component/antd/error-fallback/index.mjs +5 -0
  824. package/lib/schema-component/antd/expand-action/Expand.Action.Design.mjs +134 -0
  825. package/lib/schema-component/antd/expand-action/Expand.Action.mjs +103 -0
  826. package/lib/schema-component/antd/expand-action/index.mjs +15 -0
  827. package/lib/schema-component/antd/filter/DynamicComponent.mjs +81 -0
  828. package/lib/schema-component/antd/filter/Filter.Action.Designer.mjs +156 -0
  829. package/lib/schema-component/antd/filter/Filter.mjs +95 -0
  830. package/lib/schema-component/antd/filter/FilterAction.mjs +218 -0
  831. package/lib/schema-component/antd/filter/FilterGroup.mjs +166 -0
  832. package/lib/schema-component/antd/filter/FilterItem.mjs +120 -0
  833. package/lib/schema-component/antd/filter/FilterItems.mjs +47 -0
  834. package/lib/schema-component/antd/filter/SaveDefaultValue.mjs +61 -0
  835. package/lib/schema-component/antd/filter/__tests__/filter.test.mjs +152 -0
  836. package/lib/schema-component/antd/filter/context.mjs +14 -0
  837. package/lib/schema-component/antd/filter/demos/demo2.mjs +143 -0
  838. package/lib/schema-component/antd/filter/demos/demo3.mjs +213 -0
  839. package/lib/schema-component/antd/filter/demos/demo4.mjs +203 -0
  840. package/lib/schema-component/antd/filter/demos/demo5.mjs +145 -0
  841. package/lib/schema-component/antd/filter/demos/demo6.mjs +140 -0
  842. package/lib/schema-component/antd/filter/index.mjs +9 -0
  843. package/lib/schema-component/antd/filter/useFilterActionProps.mjs +298 -0
  844. package/lib/schema-component/antd/filter/useOperators.mjs +38 -0
  845. package/lib/schema-component/antd/filter/useValues.mjs +155 -0
  846. package/lib/schema-component/antd/filter/utils.mjs +20 -0
  847. package/lib/schema-component/antd/form/Form.Designer.mjs +27 -0
  848. package/lib/schema-component/antd/form/Form.Settings.mjs +48 -0
  849. package/lib/schema-component/antd/form/Form.mjs +187 -0
  850. package/lib/schema-component/antd/form/__tests__/form.test.mjs +155 -0
  851. package/lib/schema-component/antd/form/demos/apiClient.mjs +26 -0
  852. package/lib/schema-component/antd/form/demos/demo1.mjs +93 -0
  853. package/lib/schema-component/antd/form/demos/demo2.mjs +95 -0
  854. package/lib/schema-component/antd/form/demos/demo3.mjs +94 -0
  855. package/lib/schema-component/antd/form/demos/demo4.mjs +98 -0
  856. package/lib/schema-component/antd/form/demos/demo5.mjs +142 -0
  857. package/lib/schema-component/antd/form/demos/demo6.mjs +95 -0
  858. package/lib/schema-component/antd/form/demos/demo7.mjs +103 -0
  859. package/lib/schema-component/antd/form/demos/demo8.mjs +110 -0
  860. package/lib/schema-component/antd/form/index.mjs +7 -0
  861. package/lib/schema-component/antd/form-dialog/index.mjs +199 -0
  862. package/lib/schema-component/antd/form-item/FormItem.FilterFormDesigner.mjs +21 -0
  863. package/lib/schema-component/antd/form-item/FormItem.FilterFormSettings.mjs +183 -0
  864. package/lib/schema-component/antd/form-item/FormItem.Settings.mjs +1326 -0
  865. package/lib/schema-component/antd/form-item/FormItem.mjs +200 -0
  866. package/lib/schema-component/antd/form-item/SchemaSettingOptions.mjs +638 -0
  867. package/lib/schema-component/antd/form-item/__tests__/form-item.test.mjs +27 -0
  868. package/lib/schema-component/antd/form-item/__tests__/hooks/useSpecialCase.test.mjs +33 -0
  869. package/lib/schema-component/antd/form-item/__tests__/utils.test.mjs +71 -0
  870. package/lib/schema-component/antd/form-item/demos/demo1.mjs +56 -0
  871. package/lib/schema-component/antd/form-item/hooks/useLazyLoadDisplayAssociationFieldsOfForm.mjs +135 -0
  872. package/lib/schema-component/antd/form-item/hooks/useParseDefaultValue.mjs +164 -0
  873. package/lib/schema-component/antd/form-item/hooks/useSpecialCase.mjs +182 -0
  874. package/lib/schema-component/antd/form-item/index.mjs +11 -0
  875. package/lib/schema-component/antd/form-item/utils.mjs +22 -0
  876. package/lib/schema-component/antd/form-tab/index.mjs +168 -0
  877. package/lib/schema-component/antd/form-v2/Form.Designer.mjs +51 -0
  878. package/lib/schema-component/antd/form-v2/Form.FilterDesigner.mjs +36 -0
  879. package/lib/schema-component/antd/form-v2/Form.Settings.mjs +364 -0
  880. package/lib/schema-component/antd/form-v2/Form.mjs +432 -0
  881. package/lib/schema-component/antd/form-v2/FormField.mjs +51 -0
  882. package/lib/schema-component/antd/form-v2/Templates.mjs +257 -0
  883. package/lib/schema-component/antd/form-v2/__tests__/form-v2.test.mjs +69 -0
  884. package/lib/schema-component/antd/form-v2/demos/collections.mjs +1568 -0
  885. package/lib/schema-component/antd/form-v2/demos/demo1.mjs +139 -0
  886. package/lib/schema-component/antd/form-v2/demos/demo2.mjs +162 -0
  887. package/lib/schema-component/antd/form-v2/demos/demo3.mjs +139 -0
  888. package/lib/schema-component/antd/form-v2/index.mjs +30 -0
  889. package/lib/schema-component/antd/form-v2/utils.mjs +182 -0
  890. package/lib/schema-component/antd/grid/Block.mjs +39 -0
  891. package/lib/schema-component/antd/grid/Grid.mjs +562 -0
  892. package/lib/schema-component/antd/grid/Grid.style.mjs +51 -0
  893. package/lib/schema-component/antd/grid/__tests__/grid.test.mjs +47 -0
  894. package/lib/schema-component/antd/grid/demos/demo1.mjs +211 -0
  895. package/lib/schema-component/antd/grid/demos/demo2.mjs +119 -0
  896. package/lib/schema-component/antd/grid/demos/demo3.mjs +101 -0
  897. package/lib/schema-component/antd/grid/index.mjs +7 -0
  898. package/lib/schema-component/antd/grid-card/GridCard.Decorator.mjs +108 -0
  899. package/lib/schema-component/antd/grid-card/GridCard.Decorator.style.mjs +30 -0
  900. package/lib/schema-component/antd/grid-card/GridCard.Designer.mjs +317 -0
  901. package/lib/schema-component/antd/grid-card/GridCard.Item.mjs +120 -0
  902. package/lib/schema-component/antd/grid-card/GridCard.mjs +215 -0
  903. package/lib/schema-component/antd/grid-card/__tests__/grid-card.test.mjs +24 -0
  904. package/lib/schema-component/antd/grid-card/demos/demo1.mjs +17 -0
  905. package/lib/schema-component/antd/grid-card/hooks.mjs +37 -0
  906. package/lib/schema-component/antd/grid-card/index.mjs +5 -0
  907. package/lib/schema-component/antd/grid-card/options.mjs +38 -0
  908. package/lib/schema-component/antd/icon-picker/IconFilterInput.mjs +32 -0
  909. package/lib/schema-component/antd/icon-picker/IconList.mjs +71 -0
  910. package/lib/schema-component/antd/icon-picker/IconPicker.mjs +116 -0
  911. package/lib/schema-component/antd/icon-picker/__tests__/icon-picker.test.mjs +43 -0
  912. package/lib/schema-component/antd/icon-picker/demos/icon-picker.mjs +57 -0
  913. package/lib/schema-component/antd/icon-picker/index.mjs +5 -0
  914. package/lib/schema-component/antd/index.css +30 -0
  915. package/lib/schema-component/antd/index.mjs +137 -0
  916. package/lib/schema-component/antd/input/EllipsisWithTooltip.mjs +82 -0
  917. package/lib/schema-component/antd/input/Input.mjs +56 -0
  918. package/lib/schema-component/antd/input/Json.mjs +83 -0
  919. package/lib/schema-component/antd/input/ReadPretty.mjs +186 -0
  920. package/lib/schema-component/antd/input/__tests__/Input.test.mjs +141 -0
  921. package/lib/schema-component/antd/input/demos/input.mjs +57 -0
  922. package/lib/schema-component/antd/input/demos/json.mjs +63 -0
  923. package/lib/schema-component/antd/input/demos/textarea.mjs +85 -0
  924. package/lib/schema-component/antd/input/demos/url.mjs +59 -0
  925. package/lib/schema-component/antd/input/index.mjs +13 -0
  926. package/lib/schema-component/antd/input/shared.mjs +11 -0
  927. package/lib/schema-component/antd/input-number/InputNumber.mjs +37 -0
  928. package/lib/schema-component/antd/input-number/ReadPretty.mjs +161 -0
  929. package/lib/schema-component/antd/input-number/__tests__/input-number.test.mjs +152 -0
  930. package/lib/schema-component/antd/input-number/demos/addonBefore&addonAfter.mjs +65 -0
  931. package/lib/schema-component/antd/input-number/demos/highPrecisionDecimals.mjs +67 -0
  932. package/lib/schema-component/antd/input-number/demos/inputNumber.mjs +57 -0
  933. package/lib/schema-component/antd/input-number/index.mjs +5 -0
  934. package/lib/schema-component/antd/list/List.Decorator.mjs +135 -0
  935. package/lib/schema-component/antd/list/List.Designer.mjs +260 -0
  936. package/lib/schema-component/antd/list/List.Item.mjs +85 -0
  937. package/lib/schema-component/antd/list/List.mjs +129 -0
  938. package/lib/schema-component/antd/list/List.style.mjs +62 -0
  939. package/lib/schema-component/antd/list/__tests__/list.test.mjs +24 -0
  940. package/lib/schema-component/antd/list/demos/demo1.mjs +17 -0
  941. package/lib/schema-component/antd/list/hooks.mjs +16 -0
  942. package/lib/schema-component/antd/list/index.mjs +5 -0
  943. package/lib/schema-component/antd/markdown/Markdown.Void.Designer.mjs +45 -0
  944. package/lib/schema-component/antd/markdown/Markdown.Void.mjs +148 -0
  945. package/lib/schema-component/antd/markdown/Markdown.mjs +83 -0
  946. package/lib/schema-component/antd/markdown/__tests__/markdown.test.mjs +48 -0
  947. package/lib/schema-component/antd/markdown/demos/demo1.mjs +59 -0
  948. package/lib/schema-component/antd/markdown/demos/demo2.mjs +78 -0
  949. package/lib/schema-component/antd/markdown/index.mjs +5 -0
  950. package/lib/schema-component/antd/markdown/markdown-it-plugins/mermaidPlugin.mjs +73 -0
  951. package/lib/schema-component/antd/markdown/md.mjs +25 -0
  952. package/lib/schema-component/antd/markdown/style.mjs +233 -0
  953. package/lib/schema-component/antd/markdown/util.mjs +49 -0
  954. package/lib/schema-component/antd/menu/Menu.Designer.mjs +478 -0
  955. package/lib/schema-component/antd/menu/Menu.mjs +686 -0
  956. package/lib/schema-component/antd/menu/Menu.styles.mjs +85 -0
  957. package/lib/schema-component/antd/menu/MenuItemInitializers/index.mjs +17 -0
  958. package/lib/schema-component/antd/menu/__tests__/menu.test.mjs +65 -0
  959. package/lib/schema-component/antd/menu/demos/demo1.mjs +109 -0
  960. package/lib/schema-component/antd/menu/demos/demo2.mjs +112 -0
  961. package/lib/schema-component/antd/menu/demos/demo3.mjs +152 -0
  962. package/lib/schema-component/antd/menu/index.mjs +9 -0
  963. package/lib/schema-component/antd/menu/locale.mjs +11 -0
  964. package/lib/schema-component/antd/menu/util.mjs +56 -0
  965. package/lib/schema-component/antd/nanoIDInput/NanoIDInput.mjs +71 -0
  966. package/lib/schema-component/antd/nanoIDInput/index.mjs +5 -0
  967. package/lib/schema-component/antd/page/FixedBlock.mjs +118 -0
  968. package/lib/schema-component/antd/page/FixedBlockDesignerItem.mjs +72 -0
  969. package/lib/schema-component/antd/page/Page.Settings.mjs +167 -0
  970. package/lib/schema-component/antd/page/Page.mjs +317 -0
  971. package/lib/schema-component/antd/page/PageTab.Settings.mjs +108 -0
  972. package/lib/schema-component/antd/page/PageTabDesigner.mjs +98 -0
  973. package/lib/schema-component/antd/page/__tests__/page.test.mjs +33 -0
  974. package/lib/schema-component/antd/page/demos/demo1.mjs +52 -0
  975. package/lib/schema-component/antd/page/hooks/useIsBlockInPage.mjs +25 -0
  976. package/lib/schema-component/antd/page/index.mjs +13 -0
  977. package/lib/schema-component/antd/page/style.mjs +149 -0
  978. package/lib/schema-component/antd/pagination/index.mjs +48 -0
  979. package/lib/schema-component/antd/password/Password.mjs +102 -0
  980. package/lib/schema-component/antd/password/PasswordStrength.mjs +29 -0
  981. package/lib/schema-component/antd/password/__tests__/password.test.mjs +46 -0
  982. package/lib/schema-component/antd/password/__tests__/utils.test.mjs +27 -0
  983. package/lib/schema-component/antd/password/demos/demo1.mjs +59 -0
  984. package/lib/schema-component/antd/password/demos/demo2.mjs +62 -0
  985. package/lib/schema-component/antd/password/index.mjs +5 -0
  986. package/lib/schema-component/antd/password/utils.mjs +146 -0
  987. package/lib/schema-component/antd/percent/Percent.mjs +59 -0
  988. package/lib/schema-component/antd/percent/__tests__/percent.test.mjs +31 -0
  989. package/lib/schema-component/antd/percent/demos/percent.mjs +57 -0
  990. package/lib/schema-component/antd/percent/index.mjs +5 -0
  991. package/lib/schema-component/antd/popover/Popover.mjs +67 -0
  992. package/lib/schema-component/antd/popover/index.mjs +5 -0
  993. package/lib/schema-component/antd/preview/Preview.mjs +324 -0
  994. package/lib/schema-component/antd/preview/__tests__/preview.test.mjs +26 -0
  995. package/lib/schema-component/antd/preview/demos/demo1.mjs +103 -0
  996. package/lib/schema-component/antd/preview/index.mjs +5 -0
  997. package/lib/schema-component/antd/quick-edit/QuickEdit.mjs +148 -0
  998. package/lib/schema-component/antd/quick-edit/index.mjs +5 -0
  999. package/lib/schema-component/antd/radio/Radio.mjs +62 -0
  1000. package/lib/schema-component/antd/radio/__tests__/radio.test.mjs +64 -0
  1001. package/lib/schema-component/antd/radio/demos/demo1.mjs +60 -0
  1002. package/lib/schema-component/antd/radio/demos/demo2.mjs +72 -0
  1003. package/lib/schema-component/antd/radio/demos/demo3.mjs +73 -0
  1004. package/lib/schema-component/antd/radio/index.mjs +5 -0
  1005. package/lib/schema-component/antd/record-picker/InputRecordPicker.mjs +308 -0
  1006. package/lib/schema-component/antd/record-picker/ReadPrettyRecordPicker.mjs +177 -0
  1007. package/lib/schema-component/antd/record-picker/RecordPicker.mjs +17 -0
  1008. package/lib/schema-component/antd/record-picker/__tests__/record-picker.test.mjs +44 -0
  1009. package/lib/schema-component/antd/record-picker/demos/demo1.mjs +198 -0
  1010. package/lib/schema-component/antd/record-picker/demos/mockData.mjs +214 -0
  1011. package/lib/schema-component/antd/record-picker/index.mjs +24 -0
  1012. package/lib/schema-component/antd/record-picker/useFieldNames.mjs +18 -0
  1013. package/lib/schema-component/antd/record-picker/util.mjs +59 -0
  1014. package/lib/schema-component/antd/remote-select/ReadPretty.mjs +71 -0
  1015. package/lib/schema-component/antd/remote-select/RemoteSelect.mjs +291 -0
  1016. package/lib/schema-component/antd/remote-select/__tests__/remote-select.test.mjs +33 -0
  1017. package/lib/schema-component/antd/remote-select/demos/demo1.mjs +75 -0
  1018. package/lib/schema-component/antd/remote-select/index.mjs +5 -0
  1019. package/lib/schema-component/antd/remote-select/shared.mjs +11 -0
  1020. package/lib/schema-component/antd/rich-text/RichText.mjs +85 -0
  1021. package/lib/schema-component/antd/rich-text/__tests__/rich-text.test.mjs +28 -0
  1022. package/lib/schema-component/antd/rich-text/demos/demo1.mjs +61 -0
  1023. package/lib/schema-component/antd/rich-text/index.mjs +5 -0
  1024. package/lib/schema-component/antd/rich-text/style.mjs +818 -0
  1025. package/lib/schema-component/antd/scroll-area/ScrollArea.mjs +63 -0
  1026. package/lib/schema-component/antd/scroll-area/index.mjs +5 -0
  1027. package/lib/schema-component/antd/select/FormulaSelect.mjs +263 -0
  1028. package/lib/schema-component/antd/select/ReadPretty.mjs +61 -0
  1029. package/lib/schema-component/antd/select/Select.mjs +214 -0
  1030. package/lib/schema-component/antd/select/__tests__/select.test.mjs +63 -0
  1031. package/lib/schema-component/antd/select/__tests__/utils.test.mjs +135 -0
  1032. package/lib/schema-component/antd/select/demos/demo1.mjs +91 -0
  1033. package/lib/schema-component/antd/select/demos/demo2.mjs +95 -0
  1034. package/lib/schema-component/antd/select/demos/demo3.mjs +105 -0
  1035. package/lib/schema-component/antd/select/index.mjs +7 -0
  1036. package/lib/schema-component/antd/select/utils.mjs +49 -0
  1037. package/lib/schema-component/antd/space/index.mjs +36 -0
  1038. package/lib/schema-component/antd/table/Table.Array.Designer.mjs +26 -0
  1039. package/lib/schema-component/antd/table/Table.Array.mjs +358 -0
  1040. package/lib/schema-component/antd/table/Table.Column.ActionBar.mjs +62 -0
  1041. package/lib/schema-component/antd/table/Table.Column.Decorator.mjs +77 -0
  1042. package/lib/schema-component/antd/table/Table.Column.Designer.mjs +173 -0
  1043. package/lib/schema-component/antd/table/Table.Column.mjs +22 -0
  1044. package/lib/schema-component/antd/table/Table.Designer.mjs +32 -0
  1045. package/lib/schema-component/antd/table/Table.RowActionDesigner.mjs +60 -0
  1046. package/lib/schema-component/antd/table/Table.RowSelection.mjs +47 -0
  1047. package/lib/schema-component/antd/table/Table.Void.Designer.mjs +278 -0
  1048. package/lib/schema-component/antd/table/Table.Void.mjs +155 -0
  1049. package/lib/schema-component/antd/table/__tests__/table.test.mjs +45 -0
  1050. package/lib/schema-component/antd/table/demos/demo1.mjs +77 -0
  1051. package/lib/schema-component/antd/table/demos/demo2.mjs +77 -0
  1052. package/lib/schema-component/antd/table/demos/demo3.mjs +77 -0
  1053. package/lib/schema-component/antd/table/demos/demo4.mjs +242 -0
  1054. package/lib/schema-component/antd/table/index.mjs +60 -0
  1055. package/lib/schema-component/antd/table-v2/Table.ActionColumnDesigner.mjs +60 -0
  1056. package/lib/schema-component/antd/table-v2/Table.Column.ActionBar.mjs +72 -0
  1057. package/lib/schema-component/antd/table-v2/Table.Column.Decorator.mjs +91 -0
  1058. package/lib/schema-component/antd/table-v2/Table.Column.Designer.mjs +514 -0
  1059. package/lib/schema-component/antd/table-v2/Table.Column.mjs +23 -0
  1060. package/lib/schema-component/antd/table-v2/Table.Designer.mjs +32 -0
  1061. package/lib/schema-component/antd/table-v2/Table.Index.mjs +22 -0
  1062. package/lib/schema-component/antd/table-v2/Table.mjs +574 -0
  1063. package/lib/schema-component/antd/table-v2/Table.styles.mjs +146 -0
  1064. package/lib/schema-component/antd/table-v2/TableBlockDesigner.mjs +392 -0
  1065. package/lib/schema-component/antd/table-v2/TableField.mjs +77 -0
  1066. package/lib/schema-component/antd/table-v2/TableSelector.mjs +9 -0
  1067. package/lib/schema-component/antd/table-v2/TableSelectorDesigner.mjs +347 -0
  1068. package/lib/schema-component/antd/table-v2/__tests__/table-v2.test.mjs +31 -0
  1069. package/lib/schema-component/antd/table-v2/components/ColumnFieldProvider.mjs +59 -0
  1070. package/lib/schema-component/antd/table-v2/demos/collections.mjs +1563 -0
  1071. package/lib/schema-component/antd/table-v2/demos/demo1.mjs +251 -0
  1072. package/lib/schema-component/antd/table-v2/demos/demo2.mjs +145 -0
  1073. package/lib/schema-component/antd/table-v2/index.mjs +52 -0
  1074. package/lib/schema-component/antd/table-v2/utils.mjs +20 -0
  1075. package/lib/schema-component/antd/tabs/Tabs.Designer.mjs +159 -0
  1076. package/lib/schema-component/antd/tabs/Tabs.mjs +141 -0
  1077. package/lib/schema-component/antd/tabs/__tests__/tabs.test.mjs +29 -0
  1078. package/lib/schema-component/antd/tabs/context.mjs +23 -0
  1079. package/lib/schema-component/antd/tabs/demos/demo1.mjs +86 -0
  1080. package/lib/schema-component/antd/tabs/index.mjs +7 -0
  1081. package/lib/schema-component/antd/time-picker/ReadPretty.mjs +42 -0
  1082. package/lib/schema-component/antd/time-picker/TimePicker.mjs +40 -0
  1083. package/lib/schema-component/antd/time-picker/__tests__/time-picker.test.mjs +68 -0
  1084. package/lib/schema-component/antd/time-picker/demos/demo1.mjs +59 -0
  1085. package/lib/schema-component/antd/time-picker/demos/demo2.mjs +59 -0
  1086. package/lib/schema-component/antd/time-picker/index.mjs +5 -0
  1087. package/lib/schema-component/antd/tree/Tree.mjs +115 -0
  1088. package/lib/schema-component/antd/tree/index.mjs +10 -0
  1089. package/lib/schema-component/antd/tree-select/ReadPretty.mjs +91 -0
  1090. package/lib/schema-component/antd/tree-select/TreeSelect.mjs +37 -0
  1091. package/lib/schema-component/antd/tree-select/__tests__/tree-select.test.mjs +29 -0
  1092. package/lib/schema-component/antd/tree-select/demos/demo1.mjs +103 -0
  1093. package/lib/schema-component/antd/tree-select/index.mjs +5 -0
  1094. package/lib/schema-component/antd/unixTimestamp/UnixTimestamp.mjs +69 -0
  1095. package/lib/schema-component/antd/unixTimestamp/index.mjs +5 -0
  1096. package/lib/schema-component/antd/upload/ReadPretty.mjs +249 -0
  1097. package/lib/schema-component/antd/upload/Upload.mjs +394 -0
  1098. package/lib/schema-component/antd/upload/__tests__/upload.test.mjs +31 -0
  1099. package/lib/schema-component/antd/upload/demos/apiClient.mjs +51 -0
  1100. package/lib/schema-component/antd/upload/demos/demo1.mjs +71 -0
  1101. package/lib/schema-component/antd/upload/demos/demo2.mjs +137 -0
  1102. package/lib/schema-component/antd/upload/index.mjs +5 -0
  1103. package/lib/schema-component/antd/upload/placeholder.mjs +66 -0
  1104. package/lib/schema-component/antd/upload/shared.mjs +254 -0
  1105. package/lib/schema-component/antd/upload/style.mjs +81 -0
  1106. package/lib/schema-component/antd/upload/type.d.mjs +7 -0
  1107. package/lib/schema-component/antd/variable/CodeMirror.mjs +124 -0
  1108. package/lib/schema-component/antd/variable/Input.mjs +384 -0
  1109. package/lib/schema-component/antd/variable/JSONInput.mjs +57 -0
  1110. package/lib/schema-component/antd/variable/RawTextArea.mjs +125 -0
  1111. package/lib/schema-component/antd/variable/TextArea.mjs +504 -0
  1112. package/lib/schema-component/antd/variable/Variable.mjs +57 -0
  1113. package/lib/schema-component/antd/variable/VariableSelect.mjs +101 -0
  1114. package/lib/schema-component/antd/variable/VariableSelect.style.mjs +36 -0
  1115. package/lib/schema-component/antd/variable/XButton.mjs +35 -0
  1116. package/lib/schema-component/antd/variable/__tests__/variable.test.mjs +66 -0
  1117. package/lib/schema-component/antd/variable/demos/demo1.mjs +63 -0
  1118. package/lib/schema-component/antd/variable/demos/demo2.mjs +63 -0
  1119. package/lib/schema-component/antd/variable/demos/demo3.mjs +63 -0
  1120. package/lib/schema-component/antd/variable/index.mjs +5 -0
  1121. package/lib/schema-component/antd/variable/style.mjs +186 -0
  1122. package/lib/schema-component/common/dnd-context/index.mjs +124 -0
  1123. package/lib/schema-component/common/index.mjs +7 -0
  1124. package/lib/schema-component/common/infinite-scroll/infinite-scroll.mjs +153 -0
  1125. package/lib/schema-component/common/infinite-scroll/style.mjs +36 -0
  1126. package/lib/schema-component/common/sortable-item/SortableItem.mjs +166 -0
  1127. package/lib/schema-component/common/sortable-item/index.mjs +5 -0
  1128. package/lib/schema-component/common/utils/logic.mjs +578 -0
  1129. package/lib/schema-component/common/utils/uitls.mjs +155 -0
  1130. package/lib/schema-component/context.mjs +10 -0
  1131. package/lib/schema-component/core/DesignableSwitch.mjs +67 -0
  1132. package/lib/schema-component/core/FormProvider.mjs +70 -0
  1133. package/lib/schema-component/core/RemoteSchemaComponent.mjs +72 -0
  1134. package/lib/schema-component/core/SchemaComponent.mjs +86 -0
  1135. package/lib/schema-component/core/SchemaComponentOptions.mjs +62 -0
  1136. package/lib/schema-component/core/SchemaComponentProvider.mjs +116 -0
  1137. package/lib/schema-component/core/index.mjs +32 -0
  1138. package/lib/schema-component/demos/demo1.mjs +111 -0
  1139. package/lib/schema-component/demos/demo2.mjs +40 -0
  1140. package/lib/schema-component/demos/demo3.mjs +41 -0
  1141. package/lib/schema-component/demos/demo4.mjs +41 -0
  1142. package/lib/schema-component/hooks/__tests__/designable.test.mjs +564 -0
  1143. package/lib/schema-component/hooks/__tests__/splitWrapSchema.test.mjs +98 -0
  1144. package/lib/schema-component/hooks/index.mjs +27 -0
  1145. package/lib/schema-component/hooks/useAttach.mjs +24 -0
  1146. package/lib/schema-component/hooks/useCompile.mjs +59 -0
  1147. package/lib/schema-component/hooks/useComponent.mjs +26 -0
  1148. package/lib/schema-component/hooks/useDesignable.mjs +858 -0
  1149. package/lib/schema-component/hooks/useDesigner.mjs +36 -0
  1150. package/lib/schema-component/hooks/useFieldComponentOptions.mjs +106 -0
  1151. package/lib/schema-component/hooks/useFieldModeOptions.mjs +304 -0
  1152. package/lib/schema-component/hooks/useFieldProps.mjs +27 -0
  1153. package/lib/schema-component/hooks/useFieldTitle.mjs +37 -0
  1154. package/lib/schema-component/hooks/useProps.mjs +22 -0
  1155. package/lib/schema-component/hooks/useSchemaComponentContext.mjs +15 -0
  1156. package/lib/schema-component/hooks/useTableSize.mjs +40 -0
  1157. package/lib/schema-component/index.mjs +15 -0
  1158. package/lib/schema-component/types.mjs +7 -0
  1159. package/lib/schema-initializer/buttons/CustomFormItemInitializers.mjs +71 -0
  1160. package/lib/schema-initializer/buttons/FormItemInitializers.mjs +187 -0
  1161. package/lib/schema-initializer/buttons/RecordBlockInitializers.mjs +460 -0
  1162. package/lib/schema-initializer/buttons/SubTableActionInitializers.mjs +41 -0
  1163. package/lib/schema-initializer/buttons/TabPaneInitializers.mjs +232 -0
  1164. package/lib/schema-initializer/buttons/index.mjs +16 -0
  1165. package/lib/schema-initializer/components/CreateRecordAction.mjs +414 -0
  1166. package/lib/schema-initializer/components/DeletedField.mjs +25 -0
  1167. package/lib/schema-initializer/components/assigned-field/AssignedField.mjs +177 -0
  1168. package/lib/schema-initializer/components/assigned-field/index.mjs +5 -0
  1169. package/lib/schema-initializer/components/index.mjs +7 -0
  1170. package/lib/schema-initializer/demos/basic.mjs +81 -0
  1171. package/lib/schema-initializer/demos/build-type.mjs +96 -0
  1172. package/lib/schema-initializer/demos/custom-button.mjs +114 -0
  1173. package/lib/schema-initializer/demos/custom-items-component.mjs +116 -0
  1174. package/lib/schema-initializer/demos/dynamic-visible-children.mjs +94 -0
  1175. package/lib/schema-initializer/demos/insert-schema-action.mjs +111 -0
  1176. package/lib/schema-initializer/demos/insert-schema-basic.mjs +133 -0
  1177. package/lib/schema-initializer/demos/insert-schema-form-item.mjs +153 -0
  1178. package/lib/schema-initializer/demos/nested-items.mjs +170 -0
  1179. package/lib/schema-initializer/hooks/useGetAriaLabelOfSchemaInitializer.mjs +36 -0
  1180. package/lib/schema-initializer/index.mjs +329 -0
  1181. package/lib/schema-initializer/items/ActionInitializer.mjs +29 -0
  1182. package/lib/schema-initializer/items/BlockInitializer.mjs +43 -0
  1183. package/lib/schema-initializer/items/CreateFilterActionInitializer.mjs +33 -0
  1184. package/lib/schema-initializer/items/CreateResetActionInitializer.mjs +28 -0
  1185. package/lib/schema-initializer/items/CustomFilterFormItemInitializer.mjs +540 -0
  1186. package/lib/schema-initializer/items/CustomizeActionInitializer.mjs +27 -0
  1187. package/lib/schema-initializer/items/DataBlockInitializer.mjs +393 -0
  1188. package/lib/schema-initializer/items/DeleteEventActionInitializer.mjs +36 -0
  1189. package/lib/schema-initializer/items/FilterBlockInitializer.mjs +9 -0
  1190. package/lib/schema-initializer/items/G2PlotInitializer.mjs +28 -0
  1191. package/lib/schema-initializer/items/InitializerWithSwitch.mjs +47 -0
  1192. package/lib/schema-initializer/items/RecordAssociationBlockInitializer.mjs +86 -0
  1193. package/lib/schema-initializer/items/RecordAssociationDetailsBlockInitializer.mjs +84 -0
  1194. package/lib/schema-initializer/items/RecordAssociationFormBlockInitializer.mjs +119 -0
  1195. package/lib/schema-initializer/items/RecordAssociationGridCardBlockInitializer.mjs +86 -0
  1196. package/lib/schema-initializer/items/RecordAssociationListBlockInitializer.mjs +84 -0
  1197. package/lib/schema-initializer/items/RecordReadPrettyAssociationFormBlockInitializer.mjs +118 -0
  1198. package/lib/schema-initializer/items/SelectActionInitializer.mjs +76 -0
  1199. package/lib/schema-initializer/items/SubmitActionInitializer.mjs +34 -0
  1200. package/lib/schema-initializer/items/TableActionColumnInitializer.mjs +57 -0
  1201. package/lib/schema-initializer/items/index.mjs +50 -0
  1202. package/lib/schema-initializer/style.mjs +23 -0
  1203. package/lib/schema-initializer/utils.mjs +1535 -0
  1204. package/lib/schema-items/GeneralSchemaItems.mjs +181 -0
  1205. package/lib/schema-items/GeneralSettings.mjs +226 -0
  1206. package/lib/schema-items/OpenModeSchemaItems.mjs +215 -0
  1207. package/lib/schema-items/index.mjs +7 -0
  1208. package/lib/schema-settings/DataTemplates/FormDataTemplates.mjs +332 -0
  1209. package/lib/schema-settings/DataTemplates/TreeLabel.mjs +42 -0
  1210. package/lib/schema-settings/DataTemplates/components/AsDefaultTemplate.mjs +64 -0
  1211. package/lib/schema-settings/DataTemplates/components/DataTemplateTitle.mjs +305 -0
  1212. package/lib/schema-settings/DataTemplates/components/DataTemplateTitle.style.mjs +15 -0
  1213. package/lib/schema-settings/DataTemplates/components/Designer.mjs +208 -0
  1214. package/lib/schema-settings/DataTemplates/hooks/useCollectionState.mjs +348 -0
  1215. package/lib/schema-settings/DataTemplates/index.mjs +5 -0
  1216. package/lib/schema-settings/DataTemplates/utils.mjs +300 -0
  1217. package/lib/schema-settings/DateFormat/ExpiresRadio.mjs +160 -0
  1218. package/lib/schema-settings/EditCustomDefaultValue.mjs +137 -0
  1219. package/lib/schema-settings/EditFormulaTitleField.mjs +127 -0
  1220. package/lib/schema-settings/EnableChildCollections/DynamicComponent.mjs +91 -0
  1221. package/lib/schema-settings/EnableChildCollections/index.mjs +129 -0
  1222. package/lib/schema-settings/GeneralSchemaDesigner.mjs +328 -0
  1223. package/lib/schema-settings/LinkageRules/DynamicComponent.mjs +79 -0
  1224. package/lib/schema-settings/LinkageRules/LinkageRuleAction.mjs +272 -0
  1225. package/lib/schema-settings/LinkageRules/LinkageRuleActionGroup.mjs +116 -0
  1226. package/lib/schema-settings/LinkageRules/ValueDynamicComponent.mjs +200 -0
  1227. package/lib/schema-settings/LinkageRules/Variables.mjs +119 -0
  1228. package/lib/schema-settings/LinkageRules/action-hooks.mjs +128 -0
  1229. package/lib/schema-settings/LinkageRules/components/EnableLinkage.mjs +56 -0
  1230. package/lib/schema-settings/LinkageRules/components/LinkageHeader.mjs +304 -0
  1231. package/lib/schema-settings/LinkageRules/components/LinkageHeader.style.mjs +15 -0
  1232. package/lib/schema-settings/LinkageRules/context.mjs +14 -0
  1233. package/lib/schema-settings/LinkageRules/index.mjs +247 -0
  1234. package/lib/schema-settings/LinkageRules/type.mjs +18 -0
  1235. package/lib/schema-settings/LinkageRules/useValues.mjs +84 -0
  1236. package/lib/schema-settings/SchemaSettingCollection.mjs +73 -0
  1237. package/lib/schema-settings/SchemaSettingComponent.mjs +62 -0
  1238. package/lib/schema-settings/SchemaSettings.mjs +1517 -0
  1239. package/lib/schema-settings/SchemaSettingsDataScope.mjs +152 -0
  1240. package/lib/schema-settings/SchemaSettingsDateFormat.mjs +231 -0
  1241. package/lib/schema-settings/SchemaSettingsDefaultValue.mjs +274 -0
  1242. package/lib/schema-settings/SchemaSettingsNumberFormat.mjs +205 -0
  1243. package/lib/schema-settings/SchemaSettingsPlugin.mjs +265 -0
  1244. package/lib/schema-settings/SchemaSettingsSortingRule.mjs +155 -0
  1245. package/lib/schema-settings/VariableInput/VariableInput.mjs +260 -0
  1246. package/lib/schema-settings/VariableInput/hooks/index.mjs +9 -0
  1247. package/lib/schema-settings/VariableInput/hooks/useBaseVariable.mjs +228 -0
  1248. package/lib/schema-settings/VariableInput/hooks/useBlockCollection.mjs +16 -0
  1249. package/lib/schema-settings/VariableInput/hooks/useContextAssociationFields.mjs +126 -0
  1250. package/lib/schema-settings/VariableInput/hooks/useDateVariable.mjs +179 -0
  1251. package/lib/schema-settings/VariableInput/hooks/useFilterVariable.mjs +77 -0
  1252. package/lib/schema-settings/VariableInput/hooks/useFormVariable.mjs +85 -0
  1253. package/lib/schema-settings/VariableInput/hooks/useIterationVariable.mjs +94 -0
  1254. package/lib/schema-settings/VariableInput/hooks/useParentRecordVariable.mjs +71 -0
  1255. package/lib/schema-settings/VariableInput/hooks/usePopupVariable.mjs +37 -0
  1256. package/lib/schema-settings/VariableInput/hooks/useRecordVariable.mjs +64 -0
  1257. package/lib/schema-settings/VariableInput/hooks/useRoleVariable.mjs +64 -0
  1258. package/lib/schema-settings/VariableInput/hooks/useUserVariable.mjs +67 -0
  1259. package/lib/schema-settings/VariableInput/hooks/useVariableOptions.mjs +140 -0
  1260. package/lib/schema-settings/VariableInput/index.mjs +7 -0
  1261. package/lib/schema-settings/VariableInput/type.mjs +4 -0
  1262. package/lib/schema-settings/VariableInput/utils/formatVariableScop.mjs +16 -0
  1263. package/lib/schema-settings/demos/basic.mjs +75 -0
  1264. package/lib/schema-settings/demos/built-type.mjs +157 -0
  1265. package/lib/schema-settings/demos/custom-component.mjs +58 -0
  1266. package/lib/schema-settings/demos/demo3.mjs +120 -0
  1267. package/lib/schema-settings/demos/schema-basic.mjs +84 -0
  1268. package/lib/schema-settings/filter-form/FormFilterScope.mjs +147 -0
  1269. package/lib/schema-settings/filter-form/context.mjs +14 -0
  1270. package/lib/schema-settings/hooks/useFilterFormCustomProps.mjs +22 -0
  1271. package/lib/schema-settings/hooks/useGetAriaLabelOfDesigner.mjs +39 -0
  1272. package/lib/schema-settings/hooks/useIsAllowToSetDefaultValue.mjs +109 -0
  1273. package/lib/schema-settings/hooks/useIsShowMultipleSwitch.mjs +27 -0
  1274. package/lib/schema-settings/hooks/useParseDataScopeFilter.mjs +84 -0
  1275. package/lib/schema-settings/index.mjs +46 -0
  1276. package/lib/schema-settings/isPatternDisabled.mjs +8 -0
  1277. package/lib/schema-settings/styles.mjs +92 -0
  1278. package/lib/schema-settings/types.mjs +4 -0
  1279. package/lib/schema-templates/BlockTemplate.mjs +63 -0
  1280. package/lib/schema-templates/BlockTemplateDetails.mjs +126 -0
  1281. package/lib/schema-templates/BlockTemplatePage.mjs +55 -0
  1282. package/lib/schema-templates/SchemaTemplateManagerProvider.mjs +103 -0
  1283. package/lib/schema-templates/collections/uiSchemaTemplates.mjs +22 -0
  1284. package/lib/schema-templates/index.mjs +11 -0
  1285. package/lib/schema-templates/schemas/CollectionTitle.mjs +52 -0
  1286. package/lib/schema-templates/schemas/uiSchemaTemplates.mjs +249 -0
  1287. package/lib/schema-templates/useSchemaTemplateManager.mjs +119 -0
  1288. package/lib/style/css-variable/CSSVariableProvider.mjs +90 -0
  1289. package/lib/style/css-variable/index.mjs +9 -0
  1290. package/lib/style/index.mjs +16 -0
  1291. package/lib/style/theme/AntdAppProvider.mjs +54 -0
  1292. package/lib/style/theme/defaultTheme.mjs +24 -0
  1293. package/lib/style/theme/index.mjs +96 -0
  1294. package/lib/style/theme/type.mjs +4 -0
  1295. package/lib/style/useToken.mjs +13 -0
  1296. package/lib/testUtils/index.mjs +5 -0
  1297. package/lib/testUtils/mockAPIClient.mjs +57 -0
  1298. package/lib/user/ChangePassword.mjs +180 -0
  1299. package/lib/user/CurrentUser.mjs +282 -0
  1300. package/lib/user/CurrentUserProvider.mjs +89 -0
  1301. package/lib/user/CurrentUserSettingsMenuProvider.mjs +88 -0
  1302. package/lib/user/EditProfile.mjs +172 -0
  1303. package/lib/user/LanguageSettings.mjs +70 -0
  1304. package/lib/user/SwitchRole.mjs +66 -0
  1305. package/lib/user/VerificationCode.mjs +115 -0
  1306. package/lib/user/__tests__/current-user-settings-menu-provider.test.mjs +64 -0
  1307. package/lib/user/index.mjs +9 -0
  1308. package/lib/variables/VariablesProvider.mjs +319 -0
  1309. package/lib/variables/__tests__/useVariables.test.mjs +473 -0
  1310. package/lib/variables/__tests__/utils/filterEmptyValues.test.mjs +52 -0
  1311. package/lib/variables/__tests__/utils/getPath.test.mjs +10 -0
  1312. package/lib/variables/__tests__/utils/getVariableName.test.mjs +10 -0
  1313. package/lib/variables/__tests__/utils/isVariable.test.mjs +28 -0
  1314. package/lib/variables/__tests__/utils/transformVariableValue.test.mjs +142 -0
  1315. package/lib/variables/__tests__/utils/uniq.test.mjs +83 -0
  1316. package/lib/variables/constants.mjs +5 -0
  1317. package/lib/variables/hooks/useBuiltinVariables.mjs +80 -0
  1318. package/lib/variables/hooks/useContextVariable.mjs +38 -0
  1319. package/lib/variables/hooks/useLocalVariables.mjs +102 -0
  1320. package/lib/variables/hooks/useVariables.mjs +16 -0
  1321. package/lib/variables/index.mjs +36 -0
  1322. package/lib/variables/types.mjs +4 -0
  1323. package/lib/variables/utils/filterEmptyValues.mjs +12 -0
  1324. package/lib/variables/utils/getAction.mjs +14 -0
  1325. package/lib/variables/utils/getPath.mjs +19 -0
  1326. package/lib/variables/utils/getVariableName.mjs +25 -0
  1327. package/lib/variables/utils/hasRequested.mjs +24 -0
  1328. package/lib/variables/utils/isVariable.mjs +15 -0
  1329. package/lib/variables/utils/transformVariableValue.mjs +55 -0
  1330. package/lib/variables/utils/uniq.mjs +26 -0
  1331. package/package.json +4 -4
@@ -0,0 +1,1326 @@
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_lodash__ from "lodash";
6
+ import * as __WEBPACK_EXTERNAL_MODULE_react_i18next__ from "react-i18next";
7
+ import * as __WEBPACK_EXTERNAL_MODULE__application_schema_settings_index_mjs__ from "../../../application/schema-settings/index.mjs";
8
+ import * as __WEBPACK_EXTERNAL_MODULE__block_provider_FormBlockProvider_mjs__ from "../../../block-provider/FormBlockProvider.mjs";
9
+ import * as __WEBPACK_EXTERNAL_MODULE__collection_manager_index_mjs__ from "../../../collection-manager/index.mjs";
10
+ import * as __WEBPACK_EXTERNAL_MODULE__data_source_index_mjs__ from "../../../data-source/index.mjs";
11
+ import * as __WEBPACK_EXTERNAL_MODULE__record_provider_index_mjs__ from "../../../record-provider/index.mjs";
12
+ import * as __WEBPACK_EXTERNAL_MODULE__table_v2_Table_Column_Decorator_mjs__ from "../table-v2/Table.Column.Decorator.mjs";
13
+ import * as __WEBPACK_EXTERNAL_MODULE__schema_items_GeneralSettings_mjs__ from "../../../schema-items/GeneralSettings.mjs";
14
+ import * as __WEBPACK_EXTERNAL_MODULE__schema_settings_hooks_useIsAllowToSetDefaultValue_mjs__ from "../../../schema-settings/hooks/useIsAllowToSetDefaultValue.mjs";
15
+ import * as __WEBPACK_EXTERNAL_MODULE__schema_settings_hooks_useIsShowMultipleSwitch_mjs__ from "../../../schema-settings/hooks/useIsShowMultipleSwitch.mjs";
16
+ import * as __WEBPACK_EXTERNAL_MODULE__schema_settings_isPatternDisabled_mjs__ from "../../../schema-settings/isPatternDisabled.mjs";
17
+ import * as __WEBPACK_EXTERNAL_MODULE__schema_settings_LinkageRules_type_mjs__ from "../../../schema-settings/LinkageRules/type.mjs";
18
+ import * as __WEBPACK_EXTERNAL_MODULE__schema_settings_SchemaSettingsDataScope_mjs__ from "../../../schema-settings/SchemaSettingsDataScope.mjs";
19
+ import * as __WEBPACK_EXTERNAL_MODULE__schema_settings_SchemaSettingsDateFormat_mjs__ from "../../../schema-settings/SchemaSettingsDateFormat.mjs";
20
+ import * as __WEBPACK_EXTERNAL_MODULE__schema_settings_SchemaSettingsDefaultValue_mjs__ from "../../../schema-settings/SchemaSettingsDefaultValue.mjs";
21
+ import * as __WEBPACK_EXTERNAL_MODULE__schema_settings_SchemaSettingsSortingRule_mjs__ from "../../../schema-settings/SchemaSettingsSortingRule.mjs";
22
+ import * as __WEBPACK_EXTERNAL_MODULE__schema_settings_VariableInput_VariableInput_mjs__ from "../../../schema-settings/VariableInput/VariableInput.mjs";
23
+ import * as __WEBPACK_EXTERNAL_MODULE__variables_index_mjs__ from "../../../variables/index.mjs";
24
+ import * as __WEBPACK_EXTERNAL_MODULE__hooks_index_mjs__ from "../../hooks/index.mjs";
25
+ import * as __WEBPACK_EXTERNAL_MODULE__association_field_util_mjs__ from "../association-field/util.mjs";
26
+ import * as __WEBPACK_EXTERNAL_MODULE__filter_index_mjs__ from "../filter/index.mjs";
27
+ import * as __WEBPACK_EXTERNAL_MODULE__form_v2_utils_mjs__ from "../form-v2/utils.mjs";
28
+ import * as __WEBPACK_EXTERNAL_MODULE__table_v2_Table_Column_Designer_mjs__ from "../table-v2/Table.Column.Designer.mjs";
29
+
30
+ ;// CONCATENATED MODULE: external "react/jsx-runtime"
31
+
32
+ ;// CONCATENATED MODULE: external "react"
33
+
34
+ ;// CONCATENATED MODULE: external "@tachybase/components"
35
+
36
+ ;// CONCATENATED MODULE: external "@tachybase/schema"
37
+
38
+ ;// CONCATENATED MODULE: external "lodash"
39
+
40
+ ;// CONCATENATED MODULE: external "react-i18next"
41
+
42
+ ;// CONCATENATED MODULE: external "../../../application/schema-settings/index.mjs"
43
+
44
+ ;// CONCATENATED MODULE: external "../../../block-provider/FormBlockProvider.mjs"
45
+
46
+ ;// CONCATENATED MODULE: external "../../../collection-manager/index.mjs"
47
+
48
+ ;// CONCATENATED MODULE: external "../../../data-source/index.mjs"
49
+
50
+ ;// CONCATENATED MODULE: external "../../../record-provider/index.mjs"
51
+
52
+ ;// CONCATENATED MODULE: external "../table-v2/Table.Column.Decorator.mjs"
53
+
54
+ ;// CONCATENATED MODULE: external "../../../schema-items/GeneralSettings.mjs"
55
+
56
+ ;// CONCATENATED MODULE: external "../../../schema-settings/hooks/useIsAllowToSetDefaultValue.mjs"
57
+
58
+ ;// CONCATENATED MODULE: external "../../../schema-settings/hooks/useIsShowMultipleSwitch.mjs"
59
+
60
+ ;// CONCATENATED MODULE: external "../../../schema-settings/isPatternDisabled.mjs"
61
+
62
+ ;// CONCATENATED MODULE: external "../../../schema-settings/LinkageRules/type.mjs"
63
+
64
+ ;// CONCATENATED MODULE: external "../../../schema-settings/SchemaSettingsDataScope.mjs"
65
+
66
+ ;// CONCATENATED MODULE: external "../../../schema-settings/SchemaSettingsDateFormat.mjs"
67
+
68
+ ;// CONCATENATED MODULE: external "../../../schema-settings/SchemaSettingsDefaultValue.mjs"
69
+
70
+ ;// CONCATENATED MODULE: external "../../../schema-settings/SchemaSettingsSortingRule.mjs"
71
+
72
+ ;// CONCATENATED MODULE: external "../../../schema-settings/VariableInput/VariableInput.mjs"
73
+
74
+ ;// CONCATENATED MODULE: external "../../../variables/index.mjs"
75
+
76
+ ;// CONCATENATED MODULE: external "../../hooks/index.mjs"
77
+
78
+ ;// CONCATENATED MODULE: external "../association-field/util.mjs"
79
+
80
+ ;// CONCATENATED MODULE: external "../filter/index.mjs"
81
+
82
+ ;// CONCATENATED MODULE: external "../form-v2/utils.mjs"
83
+
84
+ ;// CONCATENATED MODULE: external "../table-v2/Table.Column.Designer.mjs"
85
+
86
+ ;// CONCATENATED MODULE: ./packages/client/src/schema-component/antd/form-item/FormItem.Settings.tsx?__rslib_entry__
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+ /**
116
+ * @deprecated
117
+ */ const formItemSettings = new __WEBPACK_EXTERNAL_MODULE__application_schema_settings_index_mjs__.SchemaSettings({
118
+ name: 'FormItemSettings',
119
+ items: [
120
+ ...__WEBPACK_EXTERNAL_MODULE__schema_items_GeneralSettings_mjs__.generalSettingsItems,
121
+ {
122
+ name: 'allowAddNewData',
123
+ type: 'switch',
124
+ useVisible () {
125
+ const readPretty = useIsFieldReadPretty();
126
+ const isAssociationField = useIsAssociationField();
127
+ const fieldMode = useFieldMode();
128
+ return !readPretty && isAssociationField && [
129
+ 'SubTable'
130
+ ].includes(fieldMode);
131
+ },
132
+ useComponentProps () {
133
+ var _fieldSchema_xcomponentprops;
134
+ const { t } = (0,__WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
135
+ const field = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useField)();
136
+ const fieldSchema = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
137
+ const { dn, refresh } = (0,__WEBPACK_EXTERNAL_MODULE__hooks_index_mjs__.useDesignable)();
138
+ return {
139
+ title: t('Allow add new'),
140
+ checked: ((_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) === null || _fieldSchema_xcomponentprops === void 0 ? void 0 : _fieldSchema_xcomponentprops.allowAddnew) !== false,
141
+ onChange (value) {
142
+ const schema = {
143
+ ['x-uid']: fieldSchema['x-uid']
144
+ };
145
+ field.componentProps.allowAddnew = value;
146
+ fieldSchema['x-component-props'] = fieldSchema['x-component-props'] || {};
147
+ fieldSchema['x-component-props'].allowAddnew = value;
148
+ schema['x-component-props'] = fieldSchema['x-component-props'];
149
+ dn.emit('patch', {
150
+ schema
151
+ });
152
+ refresh();
153
+ }
154
+ };
155
+ }
156
+ },
157
+ {
158
+ name: 'allowSelectExistingRecord',
159
+ type: 'switch',
160
+ useVisible () {
161
+ const readPretty = useIsFieldReadPretty();
162
+ const isAssociationField = useIsAssociationField();
163
+ const fieldMode = useFieldMode();
164
+ return !readPretty && isAssociationField && [
165
+ 'SubTable'
166
+ ].includes(fieldMode);
167
+ },
168
+ useComponentProps () {
169
+ var _fieldSchema_xcomponentprops;
170
+ const { t } = (0,__WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
171
+ const field = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useField)();
172
+ const fieldSchema = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
173
+ const { dn, refresh } = (0,__WEBPACK_EXTERNAL_MODULE__hooks_index_mjs__.useDesignable)();
174
+ return {
175
+ title: t('Allow selection of existing records'),
176
+ checked: (_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) === null || _fieldSchema_xcomponentprops === void 0 ? void 0 : _fieldSchema_xcomponentprops.allowSelectExistingRecord,
177
+ onChange (value) {
178
+ const schema = {
179
+ ['x-uid']: fieldSchema['x-uid']
180
+ };
181
+ field.componentProps.allowSelectExistingRecord = value;
182
+ fieldSchema['x-component-props'] = fieldSchema['x-component-props'] || {};
183
+ fieldSchema['x-component-props'].allowSelectExistingRecord = value;
184
+ schema['x-component-props'] = fieldSchema['x-component-props'];
185
+ dn.emit('patch', {
186
+ schema
187
+ });
188
+ refresh();
189
+ }
190
+ };
191
+ }
192
+ },
193
+ {
194
+ name: 'quickUpload',
195
+ type: 'switch',
196
+ useVisible () {
197
+ const isFileField = useIsFileField();
198
+ const isFormReadPretty = useIsFormReadPretty();
199
+ return !isFormReadPretty && isFileField;
200
+ },
201
+ useComponentProps () {
202
+ var _fieldSchema_xcomponentprops;
203
+ const { t } = (0,__WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
204
+ const field = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useField)();
205
+ const fieldSchema = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
206
+ const { dn, refresh } = (0,__WEBPACK_EXTERNAL_MODULE__hooks_index_mjs__.useDesignable)();
207
+ return {
208
+ title: t('Quick upload'),
209
+ checked: ((_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) === null || _fieldSchema_xcomponentprops === void 0 ? void 0 : _fieldSchema_xcomponentprops.quickUpload) !== false,
210
+ onChange (value) {
211
+ const schema = {
212
+ ['x-uid']: fieldSchema['x-uid']
213
+ };
214
+ field.componentProps.quickUpload = value;
215
+ fieldSchema['x-component-props'] = fieldSchema['x-component-props'] || {};
216
+ fieldSchema['x-component-props'].quickUpload = value;
217
+ schema['x-component-props'] = fieldSchema['x-component-props'];
218
+ dn.emit('patch', {
219
+ schema
220
+ });
221
+ refresh();
222
+ }
223
+ };
224
+ }
225
+ },
226
+ {
227
+ name: 'selectFile',
228
+ type: 'switch',
229
+ useVisible () {
230
+ const isFileField = useIsFileField();
231
+ const isFormReadPretty = useIsFormReadPretty();
232
+ return !isFormReadPretty && isFileField;
233
+ },
234
+ useComponentProps () {
235
+ var _fieldSchema_xcomponentprops;
236
+ const { t } = (0,__WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
237
+ const field = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useField)();
238
+ const fieldSchema = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
239
+ const { dn, refresh } = (0,__WEBPACK_EXTERNAL_MODULE__hooks_index_mjs__.useDesignable)();
240
+ return {
241
+ title: t('Select file'),
242
+ checked: ((_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) === null || _fieldSchema_xcomponentprops === void 0 ? void 0 : _fieldSchema_xcomponentprops.selectFile) !== false,
243
+ onChange (value) {
244
+ const schema = {
245
+ ['x-uid']: fieldSchema['x-uid']
246
+ };
247
+ field.componentProps.selectFile = value;
248
+ fieldSchema['x-component-props'] = fieldSchema['x-component-props'] || {};
249
+ fieldSchema['x-component-props'].selectFile = value;
250
+ schema['x-component-props'] = fieldSchema['x-component-props'];
251
+ dn.emit('patch', {
252
+ schema
253
+ });
254
+ refresh();
255
+ }
256
+ };
257
+ }
258
+ },
259
+ {
260
+ name: 'validationRules',
261
+ type: 'modal',
262
+ useComponentProps () {
263
+ const { t } = (0,__WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
264
+ const field = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useField)();
265
+ const fieldSchema = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
266
+ const { dn, refresh } = (0,__WEBPACK_EXTERNAL_MODULE__hooks_index_mjs__.useDesignable)();
267
+ const validateSchema = useValidateSchema();
268
+ const { getCollectionJoinField } = (0,__WEBPACK_EXTERNAL_MODULE__collection_manager_index_mjs__.useCollectionManager_deprecated)();
269
+ const { getField } = (0,__WEBPACK_EXTERNAL_MODULE__collection_manager_index_mjs__.useCollection_deprecated)();
270
+ const collectionField = getField(fieldSchema['name']) || getCollectionJoinField(fieldSchema['x-collection-field']);
271
+ return {
272
+ title: t('Set validation rules'),
273
+ components: {
274
+ ArrayCollapse: __WEBPACK_EXTERNAL_MODULE__tachybase_components__.ArrayCollapse,
275
+ FormLayout: __WEBPACK_EXTERNAL_MODULE__tachybase_components__.FormLayout
276
+ },
277
+ schema: {
278
+ type: 'object',
279
+ title: t('Set validation rules'),
280
+ properties: {
281
+ rules: {
282
+ type: 'array',
283
+ default: fieldSchema === null || fieldSchema === void 0 ? void 0 : fieldSchema['x-validator'],
284
+ 'x-component': 'ArrayCollapse',
285
+ 'x-decorator': 'FormItem',
286
+ 'x-component-props': {
287
+ accordion: true
288
+ },
289
+ maxItems: 3,
290
+ items: {
291
+ type: 'object',
292
+ 'x-component': 'ArrayCollapse.CollapsePanel',
293
+ 'x-component-props': {
294
+ header: '{{ t("Validation rule") }}'
295
+ },
296
+ properties: {
297
+ index: {
298
+ type: 'void',
299
+ 'x-component': 'ArrayCollapse.Index'
300
+ },
301
+ layout: {
302
+ type: 'void',
303
+ 'x-component': 'FormLayout',
304
+ 'x-component-props': {
305
+ labelStyle: {
306
+ marginTop: '6px'
307
+ },
308
+ labelCol: 8,
309
+ wrapperCol: 16
310
+ },
311
+ properties: {
312
+ ...validateSchema,
313
+ message: {
314
+ type: 'string',
315
+ title: '{{ t("Error message") }}',
316
+ 'x-decorator': 'FormItem',
317
+ 'x-component': 'Input.TextArea',
318
+ 'x-component-props': {
319
+ autoSize: {
320
+ minRows: 2,
321
+ maxRows: 2
322
+ }
323
+ }
324
+ }
325
+ }
326
+ },
327
+ remove: {
328
+ type: 'void',
329
+ 'x-component': 'ArrayCollapse.Remove'
330
+ },
331
+ moveUp: {
332
+ type: 'void',
333
+ 'x-component': 'ArrayCollapse.MoveUp'
334
+ },
335
+ moveDown: {
336
+ type: 'void',
337
+ 'x-component': 'ArrayCollapse.MoveDown'
338
+ }
339
+ }
340
+ },
341
+ properties: {
342
+ add: {
343
+ type: 'void',
344
+ title: '{{ t("Add validation rule") }}',
345
+ 'x-component': 'ArrayCollapse.Addition',
346
+ 'x-reactions': {
347
+ dependencies: [
348
+ 'rules'
349
+ ],
350
+ fulfill: {
351
+ state: {
352
+ disabled: '{{$deps[0].length >= 3}}'
353
+ }
354
+ }
355
+ }
356
+ }
357
+ }
358
+ }
359
+ }
360
+ },
361
+ onSubmit (v) {
362
+ var _collectionField_uiSchema;
363
+ const rules = [];
364
+ for (const rule of v.rules){
365
+ rules.push(__WEBPACK_EXTERNAL_MODULE_lodash__["default"].pickBy(rule, __WEBPACK_EXTERNAL_MODULE_lodash__["default"].identity));
366
+ }
367
+ const schema = {
368
+ ['x-uid']: fieldSchema['x-uid']
369
+ };
370
+ if ([
371
+ 'percent'
372
+ ].includes(collectionField === null || collectionField === void 0 ? void 0 : collectionField.interface)) {
373
+ for (const rule of rules){
374
+ if (!!rule.maxValue || !!rule.minValue) {
375
+ rule['percentMode'] = true;
376
+ }
377
+ if (rule.percentFormat) {
378
+ rule['percentFormats'] = true;
379
+ }
380
+ }
381
+ }
382
+ const concatValidator = __WEBPACK_EXTERNAL_MODULE_lodash__["default"].concat([], (collectionField === null || collectionField === void 0 ? void 0 : (_collectionField_uiSchema = collectionField.uiSchema) === null || _collectionField_uiSchema === void 0 ? void 0 : _collectionField_uiSchema['x-validator']) || [], rules);
383
+ field.validator = concatValidator;
384
+ fieldSchema['x-validator'] = rules;
385
+ schema['x-validator'] = rules;
386
+ dn.emit('patch', {
387
+ schema
388
+ });
389
+ refresh();
390
+ }
391
+ };
392
+ },
393
+ useVisible () {
394
+ const { form } = (0,__WEBPACK_EXTERNAL_MODULE__block_provider_FormBlockProvider_mjs__.useFormBlockContext)();
395
+ const isFormReadPretty = useIsFormReadPretty();
396
+ const validateSchema = useValidateSchema();
397
+ return form && !isFormReadPretty && validateSchema;
398
+ }
399
+ },
400
+ {
401
+ name: 'isquickaddtabs',
402
+ type: 'switch',
403
+ useVisible () {
404
+ const readPretty = useIsFieldReadPretty();
405
+ const isAssociationField = useIsAssociationField();
406
+ const fieldMode = useFieldMode();
407
+ return !readPretty && isAssociationField && [
408
+ 'SubTable'
409
+ ].includes(fieldMode);
410
+ },
411
+ useComponentProps () {
412
+ var _fieldSchema_xcomponentprops;
413
+ const { t } = (0,__WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
414
+ const field = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useField)();
415
+ const fieldSchema = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
416
+ const { dn, refresh } = (0,__WEBPACK_EXTERNAL_MODULE__hooks_index_mjs__.useDesignable)();
417
+ return {
418
+ title: t('Is Quick Add Tabs'),
419
+ checked: ((_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) === null || _fieldSchema_xcomponentprops === void 0 ? void 0 : _fieldSchema_xcomponentprops.isQuickAdd) || false,
420
+ onChange (value) {
421
+ const schema = {
422
+ ['x-uid']: fieldSchema['x-uid']
423
+ };
424
+ field.componentProps['isQuickAdd'] = value;
425
+ fieldSchema['x-component-props'] = fieldSchema['x-component-props'] || {};
426
+ fieldSchema['x-component-props']['isQuickAdd'] = value;
427
+ schema['x-component-props'] = fieldSchema['x-component-props'];
428
+ dn.emit('patch', {
429
+ schema
430
+ });
431
+ refresh();
432
+ }
433
+ };
434
+ }
435
+ },
436
+ {
437
+ name: 'setquickaddtabs',
438
+ type: 'select',
439
+ useComponentProps () {
440
+ const { t } = (0,__WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
441
+ const field = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useField)();
442
+ const compile = (0,__WEBPACK_EXTERNAL_MODULE__hooks_index_mjs__.useCompile)();
443
+ const fieldSchema = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
444
+ const cm = (0,__WEBPACK_EXTERNAL_MODULE__data_source_index_mjs__.useCollectionManager)();
445
+ const options = cm.getCollection(fieldSchema['x-collection-field']);
446
+ const defVal = fieldSchema['x-component-props']['quickAddField'] || 'none';
447
+ const { dn } = (0,__WEBPACK_EXTERNAL_MODULE__hooks_index_mjs__.useDesignable)();
448
+ const isAddNewForm = useIsAddNewForm();
449
+ const fieldTabsOptions = options.fields.map((item)=>{
450
+ if (item.interface === 'm2o' || item.interface === 'select') {
451
+ var _item_uiSchema;
452
+ return {
453
+ ...item,
454
+ label: compile((_item_uiSchema = item.uiSchema) === null || _item_uiSchema === void 0 ? void 0 : _item_uiSchema.title),
455
+ value: item.name
456
+ };
457
+ }
458
+ }).filter(Boolean);
459
+ fieldTabsOptions.unshift({
460
+ label: 'none',
461
+ value: 'none'
462
+ });
463
+ return {
464
+ title: t('Set Quick Add Tabs'),
465
+ options: fieldTabsOptions,
466
+ value: defVal,
467
+ onChange (mode) {
468
+ const schema = {
469
+ ['x-uid']: fieldSchema['x-uid']
470
+ };
471
+ fieldSchema['x-component-props'] = fieldSchema['x-component-props'] || {};
472
+ fieldSchema['x-component-props']['quickAddField'] = {
473
+ fieldInterface: fieldTabsOptions.find((item)=>item.value === mode)['interface'] || 'none',
474
+ value: mode
475
+ };
476
+ schema['x-component-props'] = fieldSchema['x-component-props'];
477
+ field.componentProps = field.componentProps || {};
478
+ field.componentProps['quickAddField'] = fieldSchema['x-component-props']['quickAddField'];
479
+ // 子表单状态不允许设置默认值
480
+ if ((0,__WEBPACK_EXTERNAL_MODULE__association_field_util_mjs__.isSubMode)(fieldSchema) && isAddNewForm) {
481
+ // @ts-ignore
482
+ schema.default = null;
483
+ fieldSchema.default = null;
484
+ field.setInitialValue(null);
485
+ field.setValue(null);
486
+ }
487
+ void dn.emit('patch', {
488
+ schema
489
+ });
490
+ dn.refresh();
491
+ }
492
+ };
493
+ },
494
+ useVisible () {
495
+ const fieldSchema = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
496
+ return fieldSchema['x-component-props']['isQuickAdd'];
497
+ }
498
+ },
499
+ {
500
+ name: 'setquickaddparenttabs',
501
+ type: 'select',
502
+ useComponentProps () {
503
+ var _fieldSchema_xcomponentprops, _fieldSchema_xcomponentprops_quickAddParentCollection, _fieldSchema_xcomponentprops1;
504
+ const { t } = (0,__WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
505
+ const field = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useField)();
506
+ const compile = (0,__WEBPACK_EXTERNAL_MODULE__hooks_index_mjs__.useCompile)();
507
+ const fieldSchema = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
508
+ const cm = (0,__WEBPACK_EXTERNAL_MODULE__data_source_index_mjs__.useCollectionManager)();
509
+ const { value: quickField } = ((_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) === null || _fieldSchema_xcomponentprops === void 0 ? void 0 : _fieldSchema_xcomponentprops['quickAddField']) || {};
510
+ const options = cm.getCollectionFields("".concat(fieldSchema['x-collection-field'], ".").concat(quickField));
511
+ const { dn } = (0,__WEBPACK_EXTERNAL_MODULE__hooks_index_mjs__.useDesignable)();
512
+ const isAddNewForm = useIsAddNewForm();
513
+ const fieldTabsOptions = options.map((item)=>{
514
+ if (item.interface === 'm2o') return {
515
+ ...item,
516
+ label: compile(item.uiSchema.title),
517
+ value: item.name
518
+ };
519
+ }).filter(Boolean);
520
+ fieldTabsOptions.unshift({
521
+ label: t('none'),
522
+ value: 'none'
523
+ });
524
+ const defValue = ((_fieldSchema_xcomponentprops1 = fieldSchema['x-component-props']) === null || _fieldSchema_xcomponentprops1 === void 0 ? void 0 : (_fieldSchema_xcomponentprops_quickAddParentCollection = _fieldSchema_xcomponentprops1['quickAddParentCollection']) === null || _fieldSchema_xcomponentprops_quickAddParentCollection === void 0 ? void 0 : _fieldSchema_xcomponentprops_quickAddParentCollection.value) || 'none';
525
+ return {
526
+ title: t('Set Quick Add Parent Tabs'),
527
+ options: fieldTabsOptions,
528
+ value: defValue,
529
+ onChange (mode) {
530
+ const schema = {
531
+ ['x-uid']: fieldSchema['x-uid']
532
+ };
533
+ fieldSchema['x-component-props'] = fieldSchema['x-component-props'] || {};
534
+ fieldSchema['x-component-props']['quickAddParentCollection'] = {
535
+ collectionField: "".concat(fieldSchema['x-collection-field'], ".").concat(quickField, ".").concat(mode),
536
+ value: mode
537
+ };
538
+ schema['x-component-props'] = fieldSchema['x-component-props'];
539
+ field.componentProps = field.componentProps || {};
540
+ field.componentProps['quickAddParentCollection'] = {
541
+ collectionField: "".concat(fieldSchema['x-collection-field'], ".").concat(quickField, ".").concat(mode),
542
+ value: mode
543
+ };
544
+ // 子表单状态不允许设置默认值
545
+ if ((0,__WEBPACK_EXTERNAL_MODULE__association_field_util_mjs__.isSubMode)(fieldSchema) && isAddNewForm) {
546
+ // @ts-ignore
547
+ schema.default = null;
548
+ fieldSchema.default = null;
549
+ field.setInitialValue(null);
550
+ field.setValue(null);
551
+ }
552
+ void dn.emit('patch', {
553
+ schema
554
+ });
555
+ dn.refresh();
556
+ }
557
+ };
558
+ },
559
+ useVisible () {
560
+ const fieldSchema = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
561
+ return fieldSchema['x-component-props']['isQuickAdd'] && fieldSchema['x-component-props']['quickAddField'] && fieldSchema['x-component-props']['quickAddField'] !== 'none';
562
+ }
563
+ },
564
+ {
565
+ name: 'defaultValue',
566
+ Component: __WEBPACK_EXTERNAL_MODULE__schema_settings_SchemaSettingsDefaultValue_mjs__.SchemaSettingsDefaultValue,
567
+ useVisible () {
568
+ const { isAllowToSetDefaultValue } = (0,__WEBPACK_EXTERNAL_MODULE__schema_settings_hooks_useIsAllowToSetDefaultValue_mjs__.useIsAllowToSetDefaultValue)();
569
+ return isAllowToSetDefaultValue();
570
+ }
571
+ },
572
+ {
573
+ name: 'dataScope',
574
+ Component: __WEBPACK_EXTERNAL_MODULE__schema_settings_SchemaSettingsDataScope_mjs__.SchemaSettingsDataScope,
575
+ useVisible () {
576
+ const isSelectFieldMode = useIsSelectFieldMode();
577
+ const isFormReadPretty = useIsFormReadPretty();
578
+ return isSelectFieldMode && !isFormReadPretty;
579
+ },
580
+ useComponentProps () {
581
+ var _fieldSchema_xcomponentprops_service_params, _fieldSchema_xcomponentprops_service, _fieldSchema_xcomponentprops;
582
+ const { getCollectionJoinField, getAllCollectionsInheritChain } = (0,__WEBPACK_EXTERNAL_MODULE__collection_manager_index_mjs__.useCollectionManager_deprecated)();
583
+ const { getField } = (0,__WEBPACK_EXTERNAL_MODULE__collection_manager_index_mjs__.useCollection_deprecated)();
584
+ const { form } = (0,__WEBPACK_EXTERNAL_MODULE__block_provider_FormBlockProvider_mjs__.useFormBlockContext)();
585
+ const record = (0,__WEBPACK_EXTERNAL_MODULE__record_provider_index_mjs__.useRecord)();
586
+ const field = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useField)();
587
+ const fieldSchema = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
588
+ const collectionField = getField(fieldSchema['name']) || getCollectionJoinField(fieldSchema['x-collection-field']);
589
+ const variables = (0,__WEBPACK_EXTERNAL_MODULE__variables_index_mjs__.useVariables)();
590
+ const localVariables = (0,__WEBPACK_EXTERNAL_MODULE__variables_index_mjs__.useLocalVariables)();
591
+ const { dn } = (0,__WEBPACK_EXTERNAL_MODULE__hooks_index_mjs__.useDesignable)();
592
+ return {
593
+ collectionName: collectionField === null || collectionField === void 0 ? void 0 : collectionField.target,
594
+ defaultFilter: (fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) === null || _fieldSchema_xcomponentprops === void 0 ? void 0 : (_fieldSchema_xcomponentprops_service = _fieldSchema_xcomponentprops.service) === null || _fieldSchema_xcomponentprops_service === void 0 ? void 0 : (_fieldSchema_xcomponentprops_service_params = _fieldSchema_xcomponentprops_service.params) === null || _fieldSchema_xcomponentprops_service_params === void 0 ? void 0 : _fieldSchema_xcomponentprops_service_params.filter) || {},
595
+ form,
596
+ dynamicComponent: (props)=>{
597
+ return /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__schema_settings_VariableInput_VariableInput_mjs__.VariableInput, {
598
+ ...props,
599
+ form: form,
600
+ collectionField: props.collectionField,
601
+ record: record,
602
+ shouldChange: (0,__WEBPACK_EXTERNAL_MODULE__schema_settings_VariableInput_VariableInput_mjs__.getShouldChange)({
603
+ collectionField: props.collectionField,
604
+ variables,
605
+ localVariables,
606
+ getAllCollectionsInheritChain
607
+ })
608
+ });
609
+ },
610
+ onSubmit: (param)=>{
611
+ let { filter } = param;
612
+ filter = (0,__WEBPACK_EXTERNAL_MODULE__filter_index_mjs__.removeNullCondition)(filter);
613
+ __WEBPACK_EXTERNAL_MODULE_lodash__["default"].set(field.componentProps, 'service.params.filter', filter);
614
+ fieldSchema['x-component-props'] = field.componentProps;
615
+ dn.emit('patch', {
616
+ schema: {
617
+ ['x-uid']: fieldSchema['x-uid'],
618
+ 'x-component-props': field.componentProps
619
+ }
620
+ });
621
+ }
622
+ };
623
+ }
624
+ },
625
+ {
626
+ name: 'sortingRule',
627
+ Component: __WEBPACK_EXTERNAL_MODULE__schema_settings_SchemaSettingsSortingRule_mjs__.SchemaSettingsSortingRule,
628
+ useVisible () {
629
+ const isSelectFieldMode = useIsSelectFieldMode();
630
+ const isFormReadPretty = useIsFormReadPretty();
631
+ return isSelectFieldMode && !isFormReadPretty;
632
+ }
633
+ },
634
+ {
635
+ name: 'fieldMode',
636
+ type: 'select',
637
+ useComponentProps () {
638
+ const { t } = (0,__WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
639
+ const field = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useField)();
640
+ const fieldSchema = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
641
+ const { dn } = (0,__WEBPACK_EXTERNAL_MODULE__hooks_index_mjs__.useDesignable)();
642
+ const fieldModeOptions = (0,__WEBPACK_EXTERNAL_MODULE__hooks_index_mjs__.useFieldModeOptions)();
643
+ const isAddNewForm = useIsAddNewForm();
644
+ const fieldMode = useFieldMode();
645
+ return {
646
+ title: t('Field component'),
647
+ options: fieldModeOptions,
648
+ value: fieldMode,
649
+ onChange (mode) {
650
+ const schema = {
651
+ ['x-uid']: fieldSchema['x-uid']
652
+ };
653
+ fieldSchema['x-component-props'] = fieldSchema['x-component-props'] || {};
654
+ fieldSchema['x-component-props']['mode'] = mode;
655
+ schema['x-component-props'] = fieldSchema['x-component-props'];
656
+ field.componentProps = field.componentProps || {};
657
+ field.componentProps.mode = mode;
658
+ // 子表单状态不允许设置默认值
659
+ if ((0,__WEBPACK_EXTERNAL_MODULE__association_field_util_mjs__.isSubMode)(fieldSchema) && isAddNewForm) {
660
+ // @ts-ignore
661
+ schema.default = null;
662
+ fieldSchema.default = null;
663
+ field.setInitialValue(null);
664
+ field.setValue(null);
665
+ }
666
+ void dn.emit('patch', {
667
+ schema
668
+ });
669
+ dn.refresh();
670
+ }
671
+ };
672
+ },
673
+ useVisible: useShowFieldMode
674
+ },
675
+ {
676
+ name: 'popupSize',
677
+ type: 'select',
678
+ useComponentProps () {
679
+ var _fieldSchema_xcomponentprops;
680
+ const { t } = (0,__WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
681
+ const field = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useField)();
682
+ const fieldSchema = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
683
+ const { dn } = (0,__WEBPACK_EXTERNAL_MODULE__hooks_index_mjs__.useDesignable)();
684
+ var _fieldSchema_xcomponentprops_openSize;
685
+ return {
686
+ title: t('Popup size'),
687
+ options: [
688
+ {
689
+ label: t('Small'),
690
+ value: 'small'
691
+ },
692
+ {
693
+ label: t('Middle'),
694
+ value: 'middle'
695
+ },
696
+ {
697
+ label: t('Large'),
698
+ value: 'large'
699
+ }
700
+ ],
701
+ value: (_fieldSchema_xcomponentprops_openSize = fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) === null || _fieldSchema_xcomponentprops === void 0 ? void 0 : _fieldSchema_xcomponentprops['openSize']) !== null && _fieldSchema_xcomponentprops_openSize !== void 0 ? _fieldSchema_xcomponentprops_openSize : 'middle',
702
+ onChange: (value)=>{
703
+ field.componentProps.openSize = value;
704
+ fieldSchema['x-component-props'] = field.componentProps;
705
+ dn.emit('patch', {
706
+ schema: {
707
+ 'x-uid': fieldSchema['x-uid'],
708
+ 'x-component-props': fieldSchema['x-component-props']
709
+ }
710
+ });
711
+ dn.refresh();
712
+ }
713
+ };
714
+ },
715
+ useVisible () {
716
+ var _fieldSchema_xcomponentprops;
717
+ const showFieldMode = useShowFieldMode();
718
+ const fieldSchema = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
719
+ const isPickerMode = ((_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) === null || _fieldSchema_xcomponentprops === void 0 ? void 0 : _fieldSchema_xcomponentprops.mode) === 'Picker';
720
+ const showModeSelect = showFieldMode && isPickerMode;
721
+ return showModeSelect;
722
+ }
723
+ },
724
+ {
725
+ name: 'allowAddNew',
726
+ type: 'switch',
727
+ useVisible () {
728
+ const readPretty = useIsFieldReadPretty();
729
+ const isAssociationField = useIsAssociationField();
730
+ const fieldMode = useFieldMode();
731
+ return !readPretty && isAssociationField && [
732
+ 'Picker'
733
+ ].includes(fieldMode);
734
+ },
735
+ useComponentProps () {
736
+ const { t } = (0,__WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
737
+ const field = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useField)();
738
+ const fieldSchema = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
739
+ const { dn, refresh, insertAdjacent } = (0,__WEBPACK_EXTERNAL_MODULE__hooks_index_mjs__.useDesignable)();
740
+ return {
741
+ title: t('Allow add new data'),
742
+ checked: fieldSchema['x-add-new'],
743
+ onChange (allowAddNew) {
744
+ const hasAddNew = fieldSchema.reduceProperties((buf, schema)=>{
745
+ if (schema['x-component'] === 'Action') {
746
+ return schema;
747
+ }
748
+ return buf;
749
+ }, null);
750
+ if (!hasAddNew) {
751
+ const addNewActionschema = {
752
+ 'x-action': 'create',
753
+ 'x-acl-action': 'create',
754
+ title: "{{t('Add new')}}",
755
+ 'x-toolbar': 'ActionSchemaToolbar',
756
+ 'x-settings': 'actonSettings:addNew',
757
+ 'x-component': 'Action',
758
+ 'x-decorator': 'ACLActionProvider',
759
+ 'x-component-props': {
760
+ openMode: 'drawer',
761
+ type: 'default',
762
+ component: 'CreateRecordAction'
763
+ }
764
+ };
765
+ insertAdjacent('afterBegin', addNewActionschema);
766
+ }
767
+ const schema = {
768
+ ['x-uid']: fieldSchema['x-uid']
769
+ };
770
+ field['x-add-new'] = allowAddNew;
771
+ fieldSchema['x-add-new'] = allowAddNew;
772
+ schema['x-add-new'] = allowAddNew;
773
+ dn.emit('patch', {
774
+ schema
775
+ });
776
+ refresh();
777
+ }
778
+ };
779
+ }
780
+ },
781
+ {
782
+ name: 'addMode',
783
+ type: 'select',
784
+ useVisible () {
785
+ const readPretty = useIsFieldReadPretty();
786
+ const isAssociationField = useIsAssociationField();
787
+ const fieldMode = useFieldMode();
788
+ return !readPretty && isAssociationField && [
789
+ 'Select'
790
+ ].includes(fieldMode);
791
+ },
792
+ useComponentProps () {
793
+ var _field_componentProps;
794
+ const { t } = (0,__WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
795
+ const field = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useField)();
796
+ const fieldSchema = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
797
+ const { dn, insertAdjacent } = (0,__WEBPACK_EXTERNAL_MODULE__hooks_index_mjs__.useDesignable)();
798
+ return {
799
+ title: t('Quick create'),
800
+ options: [
801
+ {
802
+ label: t('None'),
803
+ value: 'none'
804
+ },
805
+ {
806
+ label: t('Dropdown'),
807
+ value: 'quickAdd'
808
+ },
809
+ {
810
+ label: t('Pop-up'),
811
+ value: 'modalAdd'
812
+ }
813
+ ],
814
+ value: ((_field_componentProps = field.componentProps) === null || _field_componentProps === void 0 ? void 0 : _field_componentProps.addMode) || 'none',
815
+ onChange (mode) {
816
+ if (mode === 'modalAdd') {
817
+ const hasAddNew = fieldSchema.reduceProperties((buf, schema)=>{
818
+ if (schema['x-component'] === 'Action') {
819
+ return schema;
820
+ }
821
+ return buf;
822
+ }, null);
823
+ if (!hasAddNew) {
824
+ const addNewActionschema = {
825
+ 'x-action': 'create',
826
+ 'x-acl-action': 'create',
827
+ title: "{{t('Add new')}}",
828
+ 'x-toolbar': 'ActionSchemaToolbar',
829
+ 'x-settings': 'actonSettings:addNew',
830
+ 'x-component': 'Action',
831
+ 'x-decorator': 'ACLActionProvider',
832
+ 'x-component-props': {
833
+ openMode: 'drawer',
834
+ type: 'default',
835
+ component: 'CreateRecordAction'
836
+ }
837
+ };
838
+ insertAdjacent('afterBegin', addNewActionschema);
839
+ }
840
+ }
841
+ const schema = {
842
+ ['x-uid']: fieldSchema['x-uid']
843
+ };
844
+ fieldSchema['x-component-props'] = fieldSchema['x-component-props'] || {};
845
+ fieldSchema['x-component-props']['addMode'] = mode;
846
+ schema['x-component-props'] = fieldSchema['x-component-props'];
847
+ field.componentProps = field.componentProps || {};
848
+ field.componentProps.addMode = mode;
849
+ dn.emit('patch', {
850
+ schema
851
+ });
852
+ dn.refresh();
853
+ }
854
+ };
855
+ }
856
+ },
857
+ {
858
+ name: 'multiple',
859
+ type: 'switch',
860
+ useVisible () {
861
+ const isAssociationField = useIsAssociationField();
862
+ const IsShowMultipleSwitch = (0,__WEBPACK_EXTERNAL_MODULE__schema_settings_hooks_useIsShowMultipleSwitch_mjs__.useIsShowMultipleSwitch)();
863
+ return isAssociationField && IsShowMultipleSwitch();
864
+ },
865
+ useComponentProps () {
866
+ var _fieldSchema_xcomponentprops;
867
+ const { t } = (0,__WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
868
+ const field = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useField)();
869
+ const fieldSchema = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
870
+ const { dn, refresh } = (0,__WEBPACK_EXTERNAL_MODULE__hooks_index_mjs__.useDesignable)();
871
+ return {
872
+ title: t('Allow multiple'),
873
+ checked: ((_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) === null || _fieldSchema_xcomponentprops === void 0 ? void 0 : _fieldSchema_xcomponentprops.multiple) === undefined ? true : fieldSchema['x-component-props'].multiple,
874
+ onChange (value) {
875
+ const schema = {
876
+ ['x-uid']: fieldSchema['x-uid']
877
+ };
878
+ fieldSchema['x-component-props'] = fieldSchema['x-component-props'] || {};
879
+ field.componentProps = field.componentProps || {};
880
+ fieldSchema['x-component-props'].multiple = value;
881
+ field.componentProps.multiple = value;
882
+ schema['x-component-props'] = fieldSchema['x-component-props'];
883
+ dn.emit('patch', {
884
+ schema
885
+ });
886
+ refresh();
887
+ }
888
+ };
889
+ }
890
+ },
891
+ {
892
+ name: 'allowDissociate',
893
+ type: 'switch',
894
+ useVisible () {
895
+ var _fieldSchema_xcomponentprops;
896
+ const IsShowMultipleSwitch = (0,__WEBPACK_EXTERNAL_MODULE__schema_settings_hooks_useIsShowMultipleSwitch_mjs__.useIsShowMultipleSwitch)();
897
+ const fieldSchema = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
898
+ const isSubFormMode = ((_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) === null || _fieldSchema_xcomponentprops === void 0 ? void 0 : _fieldSchema_xcomponentprops.mode) === 'Nester';
899
+ return isSubFormMode && IsShowMultipleSwitch();
900
+ },
901
+ useComponentProps () {
902
+ var _fieldSchema_xcomponentprops;
903
+ const { t } = (0,__WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
904
+ const field = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useField)();
905
+ const fieldSchema = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
906
+ const { dn, refresh } = (0,__WEBPACK_EXTERNAL_MODULE__hooks_index_mjs__.useDesignable)();
907
+ return {
908
+ title: t('Allow dissociate'),
909
+ checked: ((_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) === null || _fieldSchema_xcomponentprops === void 0 ? void 0 : _fieldSchema_xcomponentprops.allowDissociate) !== false,
910
+ onChange (value) {
911
+ const schema = {
912
+ ['x-uid']: fieldSchema['x-uid']
913
+ };
914
+ fieldSchema['x-component-props'] = fieldSchema['x-component-props'] || {};
915
+ field.componentProps = field.componentProps || {};
916
+ fieldSchema['x-component-props'].allowDissociate = value;
917
+ field.componentProps.allowDissociate = value;
918
+ schema['x-component-props'] = fieldSchema['x-component-props'];
919
+ dn.emit('patch', {
920
+ schema
921
+ });
922
+ refresh();
923
+ }
924
+ };
925
+ }
926
+ },
927
+ {
928
+ name: 'enableLink',
929
+ type: 'switch',
930
+ useVisible () {
931
+ const options = useTitleFieldOptions();
932
+ const readPretty = useIsFieldReadPretty();
933
+ const isFileField = useIsFileField();
934
+ const fieldSchema = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
935
+ return readPretty && options.length > 0 && !isFileField && fieldSchema['x-component'] === 'CollectionField';
936
+ },
937
+ useComponentProps () {
938
+ var _fieldSchema_xcomponentprops;
939
+ const { t } = (0,__WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
940
+ const field = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useField)();
941
+ const fieldSchema = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
942
+ const { dn } = (0,__WEBPACK_EXTERNAL_MODULE__hooks_index_mjs__.useDesignable)();
943
+ return {
944
+ title: t('Enable link'),
945
+ checked: ((_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) === null || _fieldSchema_xcomponentprops === void 0 ? void 0 : _fieldSchema_xcomponentprops.enableLink) !== false,
946
+ onChange (flag) {
947
+ fieldSchema['x-component-props'] = {
948
+ ...fieldSchema === null || fieldSchema === void 0 ? void 0 : fieldSchema['x-component-props'],
949
+ enableLink: flag
950
+ };
951
+ field.componentProps['enableLink'] = flag;
952
+ dn.emit('patch', {
953
+ schema: {
954
+ 'x-uid': fieldSchema['x-uid'],
955
+ 'x-component-props': {
956
+ ...fieldSchema === null || fieldSchema === void 0 ? void 0 : fieldSchema['x-component-props']
957
+ }
958
+ }
959
+ });
960
+ dn.refresh();
961
+ }
962
+ };
963
+ }
964
+ },
965
+ {
966
+ name: 'pattern',
967
+ type: 'select',
968
+ useVisible () {
969
+ const { form } = (0,__WEBPACK_EXTERNAL_MODULE__block_provider_FormBlockProvider_mjs__.useFormBlockContext)();
970
+ const fieldSchema = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
971
+ return form && !(form === null || form === void 0 ? void 0 : form.readPretty) && !(0,__WEBPACK_EXTERNAL_MODULE__schema_settings_isPatternDisabled_mjs__.isPatternDisabled)(fieldSchema);
972
+ },
973
+ useComponentProps () {
974
+ const { t } = (0,__WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
975
+ const field = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useField)();
976
+ const fieldSchema = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
977
+ const { dn } = (0,__WEBPACK_EXTERNAL_MODULE__hooks_index_mjs__.useDesignable)();
978
+ let readOnlyMode = 'editable';
979
+ if (fieldSchema['x-disabled'] === true) {
980
+ readOnlyMode = 'readonly';
981
+ }
982
+ if (fieldSchema['x-read-pretty'] === true) {
983
+ readOnlyMode = 'read-pretty';
984
+ }
985
+ return {
986
+ title: t('Pattern'),
987
+ options: [
988
+ {
989
+ label: t('Editable'),
990
+ value: 'editable'
991
+ },
992
+ {
993
+ label: t('Readonly'),
994
+ value: 'readonly'
995
+ },
996
+ {
997
+ label: t('Easy-reading'),
998
+ value: 'read-pretty'
999
+ }
1000
+ ],
1001
+ value: readOnlyMode,
1002
+ onChange (v) {
1003
+ const schema = {
1004
+ ['x-uid']: fieldSchema['x-uid']
1005
+ };
1006
+ switch(v){
1007
+ case 'readonly':
1008
+ {
1009
+ fieldSchema['x-read-pretty'] = false;
1010
+ fieldSchema['x-disabled'] = true;
1011
+ schema['x-read-pretty'] = false;
1012
+ schema['x-disabled'] = true;
1013
+ field.readPretty = false;
1014
+ field.disabled = true;
1015
+ __WEBPACK_EXTERNAL_MODULE_lodash__["default"].set(field, 'initStateOfLinkageRules.pattern', (0,__WEBPACK_EXTERNAL_MODULE__form_v2_utils_mjs__.getTempFieldState)(true, __WEBPACK_EXTERNAL_MODULE__schema_settings_LinkageRules_type_mjs__.ActionType.ReadOnly));
1016
+ break;
1017
+ }
1018
+ case 'read-pretty':
1019
+ {
1020
+ fieldSchema['x-read-pretty'] = true;
1021
+ fieldSchema['x-disabled'] = false;
1022
+ schema['x-read-pretty'] = true;
1023
+ schema['x-disabled'] = false;
1024
+ field.readPretty = true;
1025
+ __WEBPACK_EXTERNAL_MODULE_lodash__["default"].set(field, 'initStateOfLinkageRules.pattern', (0,__WEBPACK_EXTERNAL_MODULE__form_v2_utils_mjs__.getTempFieldState)(true, __WEBPACK_EXTERNAL_MODULE__schema_settings_LinkageRules_type_mjs__.ActionType.ReadPretty));
1026
+ break;
1027
+ }
1028
+ default:
1029
+ {
1030
+ fieldSchema['x-read-pretty'] = false;
1031
+ fieldSchema['x-disabled'] = false;
1032
+ schema['x-read-pretty'] = false;
1033
+ schema['x-disabled'] = false;
1034
+ field.readPretty = false;
1035
+ field.disabled = false;
1036
+ __WEBPACK_EXTERNAL_MODULE_lodash__["default"].set(field, 'initStateOfLinkageRules.pattern', (0,__WEBPACK_EXTERNAL_MODULE__form_v2_utils_mjs__.getTempFieldState)(true, __WEBPACK_EXTERNAL_MODULE__schema_settings_LinkageRules_type_mjs__.ActionType.Editable));
1037
+ break;
1038
+ }
1039
+ }
1040
+ dn.emit('patch', {
1041
+ schema
1042
+ });
1043
+ dn.refresh();
1044
+ }
1045
+ };
1046
+ }
1047
+ },
1048
+ {
1049
+ name: 'titleField',
1050
+ type: 'select',
1051
+ useVisible () {
1052
+ const options = useTitleFieldOptions();
1053
+ const isAssociationField = useIsAssociationField();
1054
+ const fieldMode = useFieldMode();
1055
+ return options.length > 0 && isAssociationField && fieldMode !== 'SubTable';
1056
+ },
1057
+ useComponentProps () {
1058
+ var _field_componentProps_fieldNames, _field_componentProps;
1059
+ const { t } = (0,__WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
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__hooks_index_mjs__.useDesignable)();
1063
+ const options = useTitleFieldOptions();
1064
+ const collectionField = (0,__WEBPACK_EXTERNAL_MODULE__collection_manager_index_mjs__.useCollectionField_deprecated)();
1065
+ return {
1066
+ title: t('Title field'),
1067
+ options,
1068
+ value: field === null || field === void 0 ? void 0 : (_field_componentProps = field.componentProps) === null || _field_componentProps === void 0 ? void 0 : (_field_componentProps_fieldNames = _field_componentProps.fieldNames) === null || _field_componentProps_fieldNames === void 0 ? void 0 : _field_componentProps_fieldNames.label,
1069
+ onChange (label) {
1070
+ var _collectionField_uiSchema_xcomponentprops, _collectionField_uiSchema;
1071
+ const schema = {
1072
+ ['x-uid']: fieldSchema['x-uid']
1073
+ };
1074
+ const fieldNames = {
1075
+ ...collectionField === null || collectionField === void 0 ? void 0 : (_collectionField_uiSchema = collectionField.uiSchema) === null || _collectionField_uiSchema === void 0 ? void 0 : (_collectionField_uiSchema_xcomponentprops = _collectionField_uiSchema['x-component-props']) === null || _collectionField_uiSchema_xcomponentprops === void 0 ? void 0 : _collectionField_uiSchema_xcomponentprops['fieldNames'],
1076
+ ...field.componentProps.fieldNames,
1077
+ label
1078
+ };
1079
+ fieldSchema['x-component-props'] = fieldSchema['x-component-props'] || {};
1080
+ fieldSchema['x-component-props']['fieldNames'] = fieldNames;
1081
+ schema['x-component-props'] = fieldSchema['x-component-props'];
1082
+ field.componentProps.fieldNames = fieldSchema['x-component-props'].fieldNames;
1083
+ dn.emit('patch', {
1084
+ schema
1085
+ });
1086
+ dn.refresh();
1087
+ }
1088
+ };
1089
+ }
1090
+ },
1091
+ {
1092
+ name: 'dateFormat',
1093
+ Component: __WEBPACK_EXTERNAL_MODULE__schema_settings_SchemaSettingsDateFormat_mjs__.SchemaSettingsDateFormat,
1094
+ useVisible () {
1095
+ const collectionField = useFormItemCollectionField();
1096
+ const isDateField = [
1097
+ 'datetime',
1098
+ 'createdAt',
1099
+ 'updatedAt'
1100
+ ].includes(collectionField === null || collectionField === void 0 ? void 0 : collectionField.interface);
1101
+ return isDateField;
1102
+ },
1103
+ useComponentProps () {
1104
+ const fieldSchema = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
1105
+ return {
1106
+ fieldSchema
1107
+ };
1108
+ }
1109
+ },
1110
+ {
1111
+ name: 'size',
1112
+ type: 'select',
1113
+ useVisible () {
1114
+ const readPretty = useIsFieldReadPretty();
1115
+ const collectionField = useFormItemCollectionField();
1116
+ const { getCollection } = (0,__WEBPACK_EXTERNAL_MODULE__collection_manager_index_mjs__.useCollectionManager_deprecated)();
1117
+ const targetCollection = getCollection(collectionField === null || collectionField === void 0 ? void 0 : collectionField.target);
1118
+ const isAttachmentField = [
1119
+ 'attachment'
1120
+ ].includes(collectionField === null || collectionField === void 0 ? void 0 : collectionField.interface) || (targetCollection === null || targetCollection === void 0 ? void 0 : targetCollection.template) === 'file';
1121
+ return readPretty && isAttachmentField;
1122
+ },
1123
+ useComponentProps () {
1124
+ var _field_componentProps;
1125
+ const { t } = (0,__WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
1126
+ const field = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useField)();
1127
+ const fieldSchema = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
1128
+ const { dn } = (0,__WEBPACK_EXTERNAL_MODULE__hooks_index_mjs__.useDesignable)();
1129
+ return {
1130
+ title: t('Size'),
1131
+ options: [
1132
+ {
1133
+ label: t('Large'),
1134
+ value: 'large'
1135
+ },
1136
+ {
1137
+ label: t('Default'),
1138
+ value: 'default'
1139
+ },
1140
+ {
1141
+ label: t('Small'),
1142
+ value: 'small'
1143
+ }
1144
+ ],
1145
+ value: (field === null || field === void 0 ? void 0 : (_field_componentProps = field.componentProps) === null || _field_componentProps === void 0 ? void 0 : _field_componentProps.size) || 'default',
1146
+ onChange (size) {
1147
+ const schema = {
1148
+ ['x-uid']: fieldSchema['x-uid']
1149
+ };
1150
+ fieldSchema['x-component-props'] = fieldSchema['x-component-props'] || {};
1151
+ fieldSchema['x-component-props']['size'] = size;
1152
+ schema['x-component-props'] = fieldSchema['x-component-props'];
1153
+ field.componentProps = field.componentProps || {};
1154
+ field.componentProps.size = size;
1155
+ dn.emit('patch', {
1156
+ schema
1157
+ });
1158
+ dn.refresh();
1159
+ }
1160
+ };
1161
+ }
1162
+ },
1163
+ {
1164
+ name: 'tagColor',
1165
+ type: 'select',
1166
+ useVisible () {
1167
+ const isAssociationField = useIsAssociationField();
1168
+ const fieldMode = useFieldMode();
1169
+ return isAssociationField && [
1170
+ 'Tag'
1171
+ ].includes(fieldMode);
1172
+ },
1173
+ useComponentProps () {
1174
+ var _field_componentProps;
1175
+ const { t } = (0,__WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
1176
+ const field = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useField)();
1177
+ const fieldSchema = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
1178
+ const { dn } = (0,__WEBPACK_EXTERNAL_MODULE__hooks_index_mjs__.useDesignable)();
1179
+ const collectionField = useFormItemCollectionField();
1180
+ var _collectionField_target;
1181
+ const colorFieldOptions = (0,__WEBPACK_EXTERNAL_MODULE__table_v2_Table_Column_Designer_mjs__.useColorFields)((_collectionField_target = collectionField === null || collectionField === void 0 ? void 0 : collectionField.target) !== null && _collectionField_target !== void 0 ? _collectionField_target : collectionField === null || collectionField === void 0 ? void 0 : collectionField.targetCollection);
1182
+ return {
1183
+ title: t('Tag color field'),
1184
+ options: colorFieldOptions,
1185
+ value: field === null || field === void 0 ? void 0 : (_field_componentProps = field.componentProps) === null || _field_componentProps === void 0 ? void 0 : _field_componentProps.tagColorField,
1186
+ onChange (tagColorField) {
1187
+ const schema = {
1188
+ ['x-uid']: fieldSchema['x-uid']
1189
+ };
1190
+ fieldSchema['x-component-props'] = fieldSchema['x-component-props'] || {};
1191
+ fieldSchema['x-component-props']['tagColorField'] = tagColorField;
1192
+ schema['x-component-props'] = fieldSchema['x-component-props'];
1193
+ field.componentProps.tagColorField = tagColorField;
1194
+ dn.emit('patch', {
1195
+ schema
1196
+ });
1197
+ dn.refresh();
1198
+ }
1199
+ };
1200
+ }
1201
+ },
1202
+ {
1203
+ name: 'divider',
1204
+ type: 'divider',
1205
+ useVisible () {
1206
+ const collectionField = useFormItemCollectionField();
1207
+ return !!collectionField;
1208
+ }
1209
+ },
1210
+ {
1211
+ name: 'remove',
1212
+ type: 'remove',
1213
+ useComponentProps () {
1214
+ const { t } = (0,__WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
1215
+ return {
1216
+ removeParentsIfNoChildren: true,
1217
+ confirm: {
1218
+ title: t('Delete field')
1219
+ },
1220
+ breakRemoveOn: {
1221
+ 'x-component': 'Grid'
1222
+ }
1223
+ };
1224
+ }
1225
+ }
1226
+ ]
1227
+ });
1228
+ function useIsAddNewForm() {
1229
+ const record = (0,__WEBPACK_EXTERNAL_MODULE__record_provider_index_mjs__.useRecord)();
1230
+ const isAddNewForm = __WEBPACK_EXTERNAL_MODULE_lodash__["default"].isEmpty(__WEBPACK_EXTERNAL_MODULE_lodash__["default"].omit(record, [
1231
+ '__parent',
1232
+ '__collectionName'
1233
+ ]));
1234
+ return isAddNewForm;
1235
+ }
1236
+ function isFileCollection(collection) {
1237
+ return (collection === null || collection === void 0 ? void 0 : collection.template) === 'file';
1238
+ }
1239
+ function useIsFormReadPretty() {
1240
+ const { form } = (0,__WEBPACK_EXTERNAL_MODULE__block_provider_FormBlockProvider_mjs__.useFormBlockContext)();
1241
+ return !!(form === null || form === void 0 ? void 0 : form.readPretty);
1242
+ }
1243
+ function useIsFieldReadPretty() {
1244
+ const { fieldSchema: tableColumnSchema } = (0,__WEBPACK_EXTERNAL_MODULE__table_v2_Table_Column_Decorator_mjs__.useColumnSchema)();
1245
+ const field = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useField)();
1246
+ return field.readPretty || (tableColumnSchema === null || tableColumnSchema === void 0 ? void 0 : tableColumnSchema['x-read-pretty']);
1247
+ }
1248
+ /**
1249
+ * 获取字段相关的配置信息
1250
+ * @returns
1251
+ */ function useFormItemCollectionField() {
1252
+ const { getCollectionJoinField } = (0,__WEBPACK_EXTERNAL_MODULE__collection_manager_index_mjs__.useCollectionManager_deprecated)();
1253
+ const { getField } = (0,__WEBPACK_EXTERNAL_MODULE__collection_manager_index_mjs__.useCollection_deprecated)();
1254
+ const fieldSchema = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
1255
+ const collectionField = getField(fieldSchema['name']) || getCollectionJoinField(fieldSchema['x-collection-field']);
1256
+ const { collectionField: columnCollectionField } = (0,__WEBPACK_EXTERNAL_MODULE__table_v2_Table_Column_Decorator_mjs__.useColumnSchema)();
1257
+ return collectionField || columnCollectionField;
1258
+ }
1259
+ function useIsAssociationField() {
1260
+ const collectionField = useFormItemCollectionField();
1261
+ const isAssociationField = [
1262
+ 'obo',
1263
+ 'oho',
1264
+ 'o2o',
1265
+ 'o2m',
1266
+ 'm2m',
1267
+ 'm2o',
1268
+ 'updatedBy',
1269
+ 'createdBy'
1270
+ ].includes(collectionField === null || collectionField === void 0 ? void 0 : collectionField.interface);
1271
+ return isAssociationField;
1272
+ }
1273
+ function useIsFileField() {
1274
+ const { getCollection } = (0,__WEBPACK_EXTERNAL_MODULE__collection_manager_index_mjs__.useCollectionManager_deprecated)();
1275
+ const collectionField = useFormItemCollectionField();
1276
+ const targetCollection = getCollection(collectionField === null || collectionField === void 0 ? void 0 : collectionField.target);
1277
+ const isFileField = isFileCollection(targetCollection);
1278
+ return isFileField;
1279
+ }
1280
+ function useFieldMode() {
1281
+ var _field_componentProps;
1282
+ const field = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useField)();
1283
+ const isFileField = useIsFileField();
1284
+ const fieldMode = (field === null || field === void 0 ? void 0 : (_field_componentProps = field.componentProps) === null || _field_componentProps === void 0 ? void 0 : _field_componentProps['mode']) || (isFileField ? 'FileManager' : 'Select');
1285
+ return fieldMode;
1286
+ }
1287
+ function useIsSelectFieldMode() {
1288
+ const fieldMode = useFieldMode();
1289
+ const isAssociationField = useIsAssociationField();
1290
+ const isSelectFieldMode = isAssociationField && fieldMode === 'Select';
1291
+ return isSelectFieldMode;
1292
+ }
1293
+ function useValidateSchema() {
1294
+ var _interfaceConfig_validateSchema;
1295
+ const { getInterface } = (0,__WEBPACK_EXTERNAL_MODULE__collection_manager_index_mjs__.useCollectionManager_deprecated)();
1296
+ const fieldSchema = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
1297
+ const collectionField = useFormItemCollectionField();
1298
+ const interfaceConfig = getInterface(collectionField === null || collectionField === void 0 ? void 0 : collectionField.interface);
1299
+ const validateSchema = interfaceConfig === null || interfaceConfig === void 0 ? void 0 : (_interfaceConfig_validateSchema = interfaceConfig['validateSchema']) === null || _interfaceConfig_validateSchema === void 0 ? void 0 : _interfaceConfig_validateSchema.call(interfaceConfig, fieldSchema);
1300
+ return validateSchema;
1301
+ }
1302
+ function useShowFieldMode() {
1303
+ const fieldSchema = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
1304
+ const fieldModeOptions = (0,__WEBPACK_EXTERNAL_MODULE__hooks_index_mjs__.useFieldModeOptions)();
1305
+ const isTableField = fieldSchema['x-component'] === 'TableField';
1306
+ const isAssociationField = useIsAssociationField();
1307
+ const showFieldMode = isAssociationField && fieldModeOptions && !isTableField;
1308
+ return showFieldMode;
1309
+ }
1310
+ function useTitleFieldOptions() {
1311
+ const { getCollectionFields, isTitleField } = (0,__WEBPACK_EXTERNAL_MODULE__collection_manager_index_mjs__.useCollectionManager_deprecated)();
1312
+ const compile = (0,__WEBPACK_EXTERNAL_MODULE__hooks_index_mjs__.useCompile)();
1313
+ const collectionField = useFormItemCollectionField();
1314
+ var _getCollectionFields;
1315
+ const targetFields = (collectionField === null || collectionField === void 0 ? void 0 : collectionField.target) ? getCollectionFields(collectionField === null || collectionField === void 0 ? void 0 : collectionField.target) : (_getCollectionFields = getCollectionFields(collectionField === null || collectionField === void 0 ? void 0 : collectionField.targetCollection)) !== null && _getCollectionFields !== void 0 ? _getCollectionFields : [];
1316
+ const options = targetFields.map((field)=>{
1317
+ var _field_uiSchema;
1318
+ return {
1319
+ value: field === null || field === void 0 ? void 0 : field.name,
1320
+ 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)
1321
+ };
1322
+ });
1323
+ return options;
1324
+ }
1325
+
1326
+ export { formItemSettings, useFieldMode, useIsAddNewForm, useIsAssociationField, useIsFieldReadPretty, useIsFileField, useIsFormReadPretty, useIsSelectFieldMode, useTitleFieldOptions, useValidateSchema };