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

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 (1340) hide show
  1. package/es/api-client/APIClient.mjs +131 -0
  2. package/es/api-client/APIClientProvider.mjs +11 -0
  3. package/es/api-client/__tests__/APIClient.test.mjs +55 -0
  4. package/es/api-client/context.mjs +5 -0
  5. package/es/api-client/demos/demo1.mjs +32 -0
  6. package/es/api-client/demos/demo2.mjs +31 -0
  7. package/es/api-client/demos/demo3.mjs +74 -0
  8. package/es/api-client/hooks/assign.mjs +61 -0
  9. package/es/api-client/hooks/index.mjs +3 -0
  10. package/es/api-client/hooks/useAPIClient.mjs +6 -0
  11. package/es/api-client/hooks/useRequest.mjs +38 -0
  12. package/es/api-client/hooks/useResource.mjs +6 -0
  13. package/es/api-client/index.mjs +4 -0
  14. package/es/application/AppSchemaComponentProvider.mjs +29 -0
  15. package/es/application/Application.mjs +312 -0
  16. package/es/application/AttachmentPreviewManager.mjs +31 -0
  17. package/es/application/NoticesManager.mjs +99 -0
  18. package/es/application/Plugin.mjs +60 -0
  19. package/es/application/PluginContextMenu.mjs +29 -0
  20. package/es/application/PluginManager.mjs +83 -0
  21. package/es/application/RouterManager.mjs +101 -0
  22. package/es/application/SystemSettingsManager.mjs +108 -0
  23. package/es/application/UserSettingsManager.mjs +110 -0
  24. package/es/application/WebSocketClient.mjs +156 -0
  25. package/es/application/__tests__/Application.test.mjs +481 -0
  26. package/es/application/__tests__/Plugin.test.mjs +197 -0
  27. package/es/application/__tests__/PluginSettingsManager.test.mjs +156 -0
  28. package/es/application/__tests__/RouterManager.test.mjs +311 -0
  29. package/es/application/__tests__/SchemaInitializer.test.mjs +163 -0
  30. package/es/application/__tests__/SchemaToolbar.test.mjs +143 -0
  31. package/es/application/__tests__/hoc/withDynamicSchemaProps.test.mjs +187 -0
  32. package/es/application/__tests__/hooks.test.mjs +85 -0
  33. package/es/application/__tests__/utils/remotePlugins.test.mjs +318 -0
  34. package/es/application/__tests__/utils.test.mjs +99 -0
  35. package/es/application/components/AppComponent.mjs +55 -0
  36. package/es/application/components/BlankComponent.mjs +9 -0
  37. package/es/application/components/MainComponent.mjs +17 -0
  38. package/es/application/components/RouterContextCleaner.mjs +16 -0
  39. package/es/application/components/defaultComponents.mjs +25 -0
  40. package/es/application/components/index.mjs +4 -0
  41. package/es/application/context.mjs +4 -0
  42. package/es/application/demos/demo1.mjs +110 -0
  43. package/es/application/demos/demo2.mjs +126 -0
  44. package/es/application/demos/demo3.mjs +11 -0
  45. package/es/application/hoc/index.mjs +1 -0
  46. package/es/application/hoc/withDynamicSchemaProps.mjs +115 -0
  47. package/es/application/hooks/index.mjs +3 -0
  48. package/es/application/hooks/useApp.mjs +4 -0
  49. package/es/application/hooks/usePlugin.mjs +6 -0
  50. package/es/application/hooks/useRouter.mjs +6 -0
  51. package/es/application/index.mjs +17 -0
  52. package/es/application/schema-initializer/SchemaInitializer.mjs +76 -0
  53. package/es/application/schema-initializer/SchemaInitializerManager.mjs +72 -0
  54. package/es/application/schema-initializer/components/SchemaInitializerActionModal.mjs +110 -0
  55. package/es/application/schema-initializer/components/SchemaInitializerButton.mjs +39 -0
  56. package/es/application/schema-initializer/components/SchemaInitializerChildren.mjs +69 -0
  57. package/es/application/schema-initializer/components/SchemaInitializerDivider.mjs +13 -0
  58. package/es/application/schema-initializer/components/SchemaInitializerItem.mjs +89 -0
  59. package/es/application/schema-initializer/components/SchemaInitializerItemGroup.mjs +36 -0
  60. package/es/application/schema-initializer/components/SchemaInitializerItems.mjs +11 -0
  61. package/es/application/schema-initializer/components/SchemaInitializerSelect.mjs +63 -0
  62. package/es/application/schema-initializer/components/SchemaInitializerSubMenu.mjs +105 -0
  63. package/es/application/schema-initializer/components/SchemaInitializerSwitch.mjs +38 -0
  64. package/es/application/schema-initializer/components/index.mjs +10 -0
  65. package/es/application/schema-initializer/components/style.mjs +41 -0
  66. package/es/application/schema-initializer/context/index.mjs +8 -0
  67. package/es/application/schema-initializer/hoc/index.mjs +117 -0
  68. package/es/application/schema-initializer/hooks/index.mjs +153 -0
  69. package/es/application/schema-initializer/hooks/useAriaAttributeOfMenuItem.mjs +17 -0
  70. package/es/application/schema-initializer/index.mjs +7 -0
  71. package/es/application/schema-initializer/types.mjs +0 -0
  72. package/es/application/schema-settings/SchemaSettings.mjs +71 -0
  73. package/es/application/schema-settings/SchemaSettingsDefaults.mjs +215 -0
  74. package/es/application/schema-settings/SchemaSettingsManager.mjs +72 -0
  75. package/es/application/schema-settings/components/SchemaSettingsChildren.mjs +90 -0
  76. package/es/application/schema-settings/components/SchemaSettingsIcon.mjs +19 -0
  77. package/es/application/schema-settings/components/SchemaSettingsWrapper.mjs +33 -0
  78. package/es/application/schema-settings/components/index.mjs +2 -0
  79. package/es/application/schema-settings/context/index.mjs +7 -0
  80. package/es/application/schema-settings/hooks/index.mjs +44 -0
  81. package/es/application/schema-settings/index.mjs +6 -0
  82. package/es/application/schema-settings/types.mjs +0 -0
  83. package/es/application/schema-toolbar/context/index.mjs +15 -0
  84. package/es/application/schema-toolbar/hooks/index.mjs +25 -0
  85. package/es/application/schema-toolbar/index.mjs +2 -0
  86. package/es/application/utils/globalDeps.mjs +60 -0
  87. package/es/application/utils/index.mjs +39 -0
  88. package/es/application/utils/remotePlugins.mjs +102 -0
  89. package/es/async-data-provider/index.mjs +21 -0
  90. package/es/block-provider/BlockProvider.mjs +308 -0
  91. package/es/block-provider/DetailsBlockProvider.mjs +98 -0
  92. package/es/block-provider/FilterFormBlockProvider.mjs +19 -0
  93. package/es/block-provider/FormBlockProvider.mjs +166 -0
  94. package/es/block-provider/FormFieldProvider.mjs +84 -0
  95. package/es/block-provider/MobileProvider.mjs +15 -0
  96. package/es/block-provider/PageLayout.mjs +9 -0
  97. package/es/block-provider/TableBlockProvider.mjs +110 -0
  98. package/es/block-provider/TableFieldProvider.mjs +163 -0
  99. package/es/block-provider/TableSelectorProvider.mjs +285 -0
  100. package/es/block-provider/TreeBlockProvider.mjs +117 -0
  101. package/es/block-provider/hooks/index.mjs +1206 -0
  102. package/es/block-provider/hooks/useDataBlockSourceId.mjs +14 -0
  103. package/es/block-provider/hooks/useFormActiveFields.mjs +34 -0
  104. package/es/block-provider/hooks/useIsMobile.mjs +7 -0
  105. package/es/block-provider/hooks/useParsedFilter.mjs +48 -0
  106. package/es/block-provider/index.mjs +11 -0
  107. package/es/built-in/acl/ACLPlugin.mjs +13 -0
  108. package/es/built-in/acl/ACLProvider.mjs +280 -0
  109. package/es/built-in/acl/ACLShortcut.mjs +23 -0
  110. package/es/built-in/acl/Configuration/ConfigureCenter.mjs +123 -0
  111. package/es/built-in/acl/Configuration/MenuConfigure.mjs +147 -0
  112. package/es/built-in/acl/Configuration/MenuItemsProvider.mjs +40 -0
  113. package/es/built-in/acl/Configuration/PermisionProvider.mjs +69 -0
  114. package/es/built-in/acl/Configuration/RoleConfigure.mjs +127 -0
  115. package/es/built-in/acl/Configuration/RoleTable.mjs +40 -0
  116. package/es/built-in/acl/Configuration/RolesResourcesActions.mjs +216 -0
  117. package/es/built-in/acl/Configuration/ScopeSelect.mjs +41 -0
  118. package/es/built-in/acl/Configuration/StrategyActions.mjs +109 -0
  119. package/es/built-in/acl/Configuration/index.mjs +17 -0
  120. package/es/built-in/acl/Configuration/schemas/roles.mjs +395 -0
  121. package/es/built-in/acl/Configuration/schemas/scopes.mjs +362 -0
  122. package/es/built-in/acl/Configuration/schemas/useRoleResourceValues.mjs +35 -0
  123. package/es/built-in/acl/Configuration/schemas/useSaveRoleResourceAction.mjs +23 -0
  124. package/es/built-in/acl/index.mjs +4 -0
  125. package/es/built-in/acl/style.mjs +23 -0
  126. package/es/built-in/admin-layout/AdminContent.mjs +13 -0
  127. package/es/built-in/admin-layout/AdminTabs.mjs +9 -0
  128. package/es/built-in/admin-layout/NoticeArea.mjs +16 -0
  129. package/es/built-in/admin-layout/components/AddNewButton.mjs +55 -0
  130. package/es/built-in/admin-layout/components/WelcomeCard.mjs +81 -0
  131. package/es/built-in/admin-layout/index.mjs +233 -0
  132. package/es/built-in/admin-layout/style.mjs +142 -0
  133. package/es/built-in/assistant/Assistant.provider.mjs +77 -0
  134. package/es/built-in/assistant/ai-chat/index.mjs +330 -0
  135. package/es/built-in/assistant/ai-chat/index.module.mjs +30 -0
  136. package/es/built-in/assistant/ai-chat/index_module.css +257 -0
  137. package/es/built-in/assistant/calculator/AutoScalingText.mjs +33 -0
  138. package/es/built-in/assistant/calculator/Calculator.mjs +235 -0
  139. package/es/built-in/assistant/calculator/CalculatorDisplay.mjs +21 -0
  140. package/es/built-in/assistant/calculator/CalculatorKey.mjs +11 -0
  141. package/es/built-in/assistant/calculator/CalculatorProvider.mjs +29 -0
  142. package/es/built-in/assistant/calculator/Draggable.mjs +54 -0
  143. package/es/built-in/assistant/calculator/style.mjs +25 -0
  144. package/es/built-in/assistant/index.mjs +12 -0
  145. package/es/built-in/assistant/search-and-jump/index.mjs +59 -0
  146. package/es/built-in/attachment-preview/index.mjs +15 -0
  147. package/es/built-in/attachment-preview/interface.mjs +0 -0
  148. package/es/built-in/attachment-preview/previewers/file-default.mjs +83 -0
  149. package/es/built-in/attachment-preview/previewers/file-pdf.mjs +109 -0
  150. package/es/built-in/attachment-preview/previewers/file-pdf.style.mjs +45 -0
  151. package/es/built-in/attachment-preview/previewers/file-sheet.mjs +103 -0
  152. package/es/built-in/attachment-preview/previewers/file-sheet.style.mjs +45 -0
  153. package/es/built-in/attachment-preview/previewers/image-jpeg.mjs +34 -0
  154. package/es/built-in/attachment-preview/previewers/image-png.mjs +34 -0
  155. package/es/built-in/attachment-preview/previewers/image-svg.mjs +20 -0
  156. package/es/built-in/attachment-preview/previewers/index.mjs +6 -0
  157. package/es/built-in/block-schema-component/index.mjs +87 -0
  158. package/es/built-in/built-in-collections/index.mjs +59 -0
  159. package/es/built-in/context-menu/ContextMenu.provider.mjs +68 -0
  160. package/es/built-in/context-menu/ContextMenuItemsProps.mjs +146 -0
  161. package/es/built-in/context-menu/index.mjs +18 -0
  162. package/es/built-in/context-menu/useContextMenu.mjs +4 -0
  163. package/es/built-in/document-title/index.mjs +52 -0
  164. package/es/built-in/dynamic-page/DynamicPage.mjs +36 -0
  165. package/es/built-in/dynamic-page/index.mjs +58 -0
  166. package/es/built-in/dynamic-page/style.mjs +52 -0
  167. package/es/built-in/dynamic-page/utils.mjs +61 -0
  168. package/es/built-in/index.mjs +454 -0
  169. package/es/built-in/locale/LocalePlugin.mjs +70 -0
  170. package/es/built-in/locale/loadConstrueLocale.mjs +185 -0
  171. package/es/built-in/page-style/CustomAdminHeader.mjs +9 -0
  172. package/es/built-in/page-style/PageStyle.provider.mjs +32 -0
  173. package/es/built-in/page-style/TabContent.mjs +65 -0
  174. package/es/built-in/page-style/TabHeader.mjs +80 -0
  175. package/es/built-in/page-style/index.mjs +14 -0
  176. package/es/built-in/page-style/usePageStyle.mjs +4 -0
  177. package/es/built-in/page-style/useTabSettings.mjs +69 -0
  178. package/es/built-in/pinned-list/PinnedPluginListProvider.mjs +61 -0
  179. package/es/built-in/pinned-list/PluginPinnedList.mjs +8 -0
  180. package/es/built-in/pinned-list/context.mjs +6 -0
  181. package/es/built-in/pinned-list/index.mjs +2 -0
  182. package/es/built-in/pm/PluginCard.mjs +256 -0
  183. package/es/built-in/pm/PluginDetail.mjs +320 -0
  184. package/es/built-in/pm/PluginDocument.mjs +71 -0
  185. package/es/built-in/pm/PluginForm/form/PluginNpmForm.mjs +140 -0
  186. package/es/built-in/pm/PluginForm/form/PluginUploadForm.mjs +107 -0
  187. package/es/built-in/pm/PluginForm/form/PluginUrlForm.mjs +101 -0
  188. package/es/built-in/pm/PluginForm/modal/PluginAddModal.mjs +61 -0
  189. package/es/built-in/pm/PluginForm/modal/PluginUpgradeModal.mjs +65 -0
  190. package/es/built-in/pm/PluginManager.mjs +271 -0
  191. package/es/built-in/pm/index.mjs +55 -0
  192. package/es/built-in/pm/style.mjs +72 -0
  193. package/es/built-in/pm/types.mjs +0 -0
  194. package/es/built-in/quick-access/Action.mjs +90 -0
  195. package/es/built-in/quick-access/Block.mjs +128 -0
  196. package/es/built-in/quick-access/CustomRequestActionSchemaInitializerItem.mjs +90 -0
  197. package/es/built-in/quick-access/LinkActionSchemaInitializerItem.mjs +83 -0
  198. package/es/built-in/quick-access/ModalActionSchemaInitializerItem.mjs +92 -0
  199. package/es/built-in/quick-access/PopupActionSchemaInitializerItem.mjs +118 -0
  200. package/es/built-in/quick-access/SchemaSettingsBlockTitleItem.mjs +45 -0
  201. package/es/built-in/quick-access/blockInitializerItem.mjs +19 -0
  202. package/es/built-in/quick-access/blockSchema.mjs +17 -0
  203. package/es/built-in/quick-access/blockSettings.mjs +65 -0
  204. package/es/built-in/quick-access/configureActions.mjs +15 -0
  205. package/es/built-in/quick-access/index.mjs +31 -0
  206. package/es/built-in/scroll-assistant/ScrollAssistant.provider.mjs +42 -0
  207. package/es/built-in/scroll-assistant/ScrollAssistantStatus.provider.mjs +22 -0
  208. package/es/built-in/scroll-assistant/index.mjs +26 -0
  209. package/es/built-in/scroll-assistant/useJoystick.mjs +167 -0
  210. package/es/built-in/setting-layout/AdminSettings.mjs +126 -0
  211. package/es/built-in/setting-layout/SettingLayout.mjs +136 -0
  212. package/es/built-in/setting-layout/SettingsCenterDropdown.mjs +75 -0
  213. package/es/built-in/system-settings/SystemSettingsProvider.mjs +17 -0
  214. package/es/built-in/system-settings/SystemSettingsShortcut.mjs +148 -0
  215. package/es/built-in/system-settings/index.mjs +12 -0
  216. package/es/built-in/system-version/SystemVersion.provider.mjs +34 -0
  217. package/es/built-in/system-version/index.mjs +8 -0
  218. package/es/built-in/user-settings/UserSettingsLayout.mjs +169 -0
  219. package/es/built-in/user-settings/index.mjs +17 -0
  220. package/es/built-in/user-settings/style.mjs +72 -0
  221. package/es/collection-manager/CollectionHistoryProvider.mjs +58 -0
  222. package/es/collection-manager/CollectionManagerProvider.mjs +57 -0
  223. package/es/collection-manager/CollectionManagerSchemaComponentProvider.mjs +23 -0
  224. package/es/collection-manager/CollectionProvider_deprecated.mjs +21 -0
  225. package/es/collection-manager/Configuration/AddCollectionAction.mjs +224 -0
  226. package/es/collection-manager/Configuration/AddFieldAction.mjs +359 -0
  227. package/es/collection-manager/Configuration/AddSubFieldAction.mjs +140 -0
  228. package/es/collection-manager/Configuration/DeleteCollectionAction.mjs +218 -0
  229. package/es/collection-manager/Configuration/EditCollectionAction.mjs +171 -0
  230. package/es/collection-manager/Configuration/EditFieldAction.mjs +245 -0
  231. package/es/collection-manager/Configuration/EditSubFieldAction.mjs +115 -0
  232. package/es/collection-manager/Configuration/ImportCollectionMetaAction.mjs +128 -0
  233. package/es/collection-manager/Configuration/OverridingCollectionField.mjs +216 -0
  234. package/es/collection-manager/Configuration/SyncFieldsAction.mjs +198 -0
  235. package/es/collection-manager/Configuration/SyncSQLFieldsAction.mjs +166 -0
  236. package/es/collection-manager/Configuration/ViewInheritedField.mjs +138 -0
  237. package/es/collection-manager/Configuration/components/CollectionCategory.mjs +18 -0
  238. package/es/collection-manager/Configuration/components/CollectionFieldInterfaceTag.mjs +19 -0
  239. package/es/collection-manager/Configuration/components/CollectionTemplateTag.mjs +18 -0
  240. package/es/collection-manager/Configuration/components/FieldSummary.mjs +19 -0
  241. package/es/collection-manager/Configuration/components/Summary.mjs +61 -0
  242. package/es/collection-manager/Configuration/components/TemplateSummary.mjs +19 -0
  243. package/es/collection-manager/Configuration/components/index.mjs +319 -0
  244. package/es/collection-manager/Configuration/index.mjs +22 -0
  245. package/es/collection-manager/Configuration/interfaces.mjs +35 -0
  246. package/es/collection-manager/ResourceActionProvider.mjs +136 -0
  247. package/es/collection-manager/action-hooks.mjs +538 -0
  248. package/es/collection-manager/collectionPlugin.mjs +129 -0
  249. package/es/collection-manager/context.mjs +7 -0
  250. package/es/collection-manager/demos/demo2.mjs +106 -0
  251. package/es/collection-manager/demos/demo3.mjs +76 -0
  252. package/es/collection-manager/demos/demo4.mjs +168 -0
  253. package/es/collection-manager/demos/demo5.mjs +152 -0
  254. package/es/collection-manager/hooks/index.mjs +4 -0
  255. package/es/collection-manager/hooks/useCollectionDataSource.mjs +17 -0
  256. package/es/collection-manager/hooks/useCollectionField_deprecated.mjs +21 -0
  257. package/es/collection-manager/hooks/useCollectionManager_deprecated.mjs +224 -0
  258. package/es/collection-manager/hooks/useCollection_deprecated.mjs +54 -0
  259. package/es/collection-manager/hooks/useDialect.mjs +11 -0
  260. package/es/collection-manager/index.mjs +30 -0
  261. package/es/collection-manager/interfaces/__tests__/json.mjs +40 -0
  262. package/es/collection-manager/interfaces/checkbox.mjs +49 -0
  263. package/es/collection-manager/interfaces/checkboxGroup.mjs +43 -0
  264. package/es/collection-manager/interfaces/chinaRegion.mjs +102 -0
  265. package/es/collection-manager/interfaces/collection.mjs +43 -0
  266. package/es/collection-manager/interfaces/color.mjs +31 -0
  267. package/es/collection-manager/interfaces/components/index.mjs +49 -0
  268. package/es/collection-manager/interfaces/createdAt.mjs +35 -0
  269. package/es/collection-manager/interfaces/createdBy.mjs +55 -0
  270. package/es/collection-manager/interfaces/datetime.mjs +44 -0
  271. package/es/collection-manager/interfaces/email.mjs +42 -0
  272. package/es/collection-manager/interfaces/icon.mjs +28 -0
  273. package/es/collection-manager/interfaces/id.mjs +54 -0
  274. package/es/collection-manager/interfaces/index.mjs +39 -0
  275. package/es/collection-manager/interfaces/input.mjs +182 -0
  276. package/es/collection-manager/interfaces/integer.mjs +118 -0
  277. package/es/collection-manager/interfaces/json.mjs +75 -0
  278. package/es/collection-manager/interfaces/linkTo.mjs +92 -0
  279. package/es/collection-manager/interfaces/m2m.mjs +217 -0
  280. package/es/collection-manager/interfaces/m2o.mjs +159 -0
  281. package/es/collection-manager/interfaces/markdown.mjs +77 -0
  282. package/es/collection-manager/interfaces/multipleSelect.mjs +48 -0
  283. package/es/collection-manager/interfaces/nanoid.mjs +60 -0
  284. package/es/collection-manager/interfaces/number.mjs +131 -0
  285. package/es/collection-manager/interfaces/o2m.mjs +191 -0
  286. package/es/collection-manager/interfaces/o2o.mjs +452 -0
  287. package/es/collection-manager/interfaces/password.mjs +63 -0
  288. package/es/collection-manager/interfaces/percent.mjs +162 -0
  289. package/es/collection-manager/interfaces/phone.mjs +34 -0
  290. package/es/collection-manager/interfaces/properties/index.mjs +493 -0
  291. package/es/collection-manager/interfaces/properties/operators.mjs +367 -0
  292. package/es/collection-manager/interfaces/radioGroup.mjs +34 -0
  293. package/es/collection-manager/interfaces/richText.mjs +75 -0
  294. package/es/collection-manager/interfaces/select.mjs +46 -0
  295. package/es/collection-manager/interfaces/sort.mjs +106 -0
  296. package/es/collection-manager/interfaces/subTable.mjs +197 -0
  297. package/es/collection-manager/interfaces/tableoid.mjs +48 -0
  298. package/es/collection-manager/interfaces/textarea.mjs +75 -0
  299. package/es/collection-manager/interfaces/time.mjs +47 -0
  300. package/es/collection-manager/interfaces/types.mjs +0 -0
  301. package/es/collection-manager/interfaces/unixTimestamp.mjs +52 -0
  302. package/es/collection-manager/interfaces/updatedAt.mjs +35 -0
  303. package/es/collection-manager/interfaces/updatedBy.mjs +55 -0
  304. package/es/collection-manager/interfaces/url.mjs +34 -0
  305. package/es/collection-manager/interfaces/uuid.mjs +48 -0
  306. package/es/collection-manager/mixins/InheritanceCollectionMixin.mjs +187 -0
  307. package/es/collection-manager/sub-table.mjs +238 -0
  308. package/es/collection-manager/templates/components/PresetFields.mjs +228 -0
  309. package/es/collection-manager/templates/components/PreviewFields.mjs +309 -0
  310. package/es/collection-manager/templates/components/PreviewTable.mjs +140 -0
  311. package/es/collection-manager/templates/components/sql-collection/FieldsConfigure.mjs +280 -0
  312. package/es/collection-manager/templates/components/sql-collection/PreviewTable.mjs +60 -0
  313. package/es/collection-manager/templates/components/sql-collection/SQLInput.mjs +90 -0
  314. package/es/collection-manager/templates/components/sql-collection/SQLRequestProvider.mjs +51 -0
  315. package/es/collection-manager/templates/components/sql-collection/index.mjs +4 -0
  316. package/es/collection-manager/templates/expression.mjs +62 -0
  317. package/es/collection-manager/templates/general.mjs +20 -0
  318. package/es/collection-manager/templates/import.mjs +19 -0
  319. package/es/collection-manager/templates/index.mjs +6 -0
  320. package/es/collection-manager/templates/properties/index.mjs +69 -0
  321. package/es/collection-manager/templates/sql.mjs +85 -0
  322. package/es/collection-manager/templates/tree.mjs +78 -0
  323. package/es/collection-manager/templates/types.mjs +0 -0
  324. package/es/collection-manager/templates/view.mjs +159 -0
  325. package/es/collection-manager/types.mjs +0 -0
  326. package/es/collection-manager/utils.mjs +16 -0
  327. package/es/common/SelectWithTitle.mjs +44 -0
  328. package/es/common/appInfo/CurrentAppInfoProvider.mjs +17 -0
  329. package/es/common/appInfo/index.mjs +1 -0
  330. package/es/common/index.mjs +3 -0
  331. package/es/common/useFieldComponentName.mjs +23 -0
  332. package/es/common/useNiceDropdownHeight.mjs +18 -0
  333. package/es/data-source/__tests__/collection/AssociationProvider.test.mjs +113 -0
  334. package/es/data-source/__tests__/collection/Collection.test.mjs +297 -0
  335. package/es/data-source/__tests__/collection/CollectionManager.test.mjs +297 -0
  336. package/es/data-source/__tests__/collection/CollectionManagerProvider.test.mjs +114 -0
  337. package/es/data-source/__tests__/collection/CollectionProvider.test.mjs +106 -0
  338. package/es/data-source/__tests__/collection/ExtendCollectionsProvider.test.mjs +87 -0
  339. package/es/data-source/__tests__/collection-field/CollectionField.test.mjs +67 -0
  340. package/es/data-source/__tests__/collection-field/CollectionFieldProvider.test.mjs +51 -0
  341. package/es/data-source/__tests__/collection-field-interface/CollectionFieldInterfaceManager.test.mjs +162 -0
  342. package/es/data-source/__tests__/collection-record/CollectionRecord.test.mjs +21 -0
  343. package/es/data-source/__tests__/collection-record/CollectionRecordProvider.test.mjs +253 -0
  344. package/es/data-source/__tests__/collection-record/isNewRecord.test.mjs +45 -0
  345. package/es/data-source/__tests__/collection-template/CollectionTemplateManager.test.mjs +123 -0
  346. package/es/data-source/__tests__/components/CollectionDeletedPlaceholder.test.mjs +43 -0
  347. package/es/data-source/__tests__/data-block/DataBlockProvider.test.mjs +114 -0
  348. package/es/data-source/__tests__/data-block/data-block-demos/association-table-list-and-parent-record.mjs +88 -0
  349. package/es/data-source/__tests__/data-block/data-block-demos/association-table-list-and-source-id.mjs +139 -0
  350. package/es/data-source/__tests__/data-block/data-block-demos/collection-form-create.mjs +109 -0
  351. package/es/data-source/__tests__/data-block/data-block-demos/collection-form-get-and-update.mjs +174 -0
  352. package/es/data-source/__tests__/data-block/data-block-demos/collection-form-record-and-update.mjs +138 -0
  353. package/es/data-source/__tests__/data-block/data-block-demos/collection-table-list.mjs +94 -0
  354. package/es/data-source/__tests__/data-block/data-block-demos/createApp.mjs +55 -0
  355. package/es/data-source/__tests__/data-source/CollectionDataSourceProvider.test.mjs +35 -0
  356. package/es/data-source/__tests__/data-source/DataSource.test.mjs +75 -0
  357. package/es/data-source/__tests__/data-source/DataSourceManager.test.mjs +166 -0
  358. package/es/data-source/__tests__/data-source/DataSourceManagerProvider.test.mjs +30 -0
  359. package/es/data-source/__tests__/data-source/DataSourceProvider.test.mjs +79 -0
  360. package/es/data-source/__tests__/utils.test.mjs +55 -0
  361. package/es/data-source/collection/AssociationProvider.mjs +42 -0
  362. package/es/data-source/collection/Collection.mjs +177 -0
  363. package/es/data-source/collection/CollectionManager.mjs +119 -0
  364. package/es/data-source/collection/CollectionManagerProvider.mjs +47 -0
  365. package/es/data-source/collection/CollectionProvider.mjs +38 -0
  366. package/es/data-source/collection/ExtendCollectionsProvider.mjs +30 -0
  367. package/es/data-source/collection/index.mjs +6 -0
  368. package/es/data-source/collection/utils.mjs +46 -0
  369. package/es/data-source/collection-field/CollectionField.mjs +73 -0
  370. package/es/data-source/collection-field/CollectionFieldProvider.mjs +40 -0
  371. package/es/data-source/collection-field/index.mjs +2 -0
  372. package/es/data-source/collection-field-interface/CollectionFieldInterface.mjs +33 -0
  373. package/es/data-source/collection-field-interface/CollectionFieldInterfaceManager.mjs +59 -0
  374. package/es/data-source/collection-field-interface/index.mjs +2 -0
  375. package/es/data-source/collection-record/CollectionRecord.mjs +28 -0
  376. package/es/data-source/collection-record/CollectionRecordProvider.mjs +62 -0
  377. package/es/data-source/collection-record/index.mjs +2 -0
  378. package/es/data-source/collection-record/isNewRecord.mjs +9 -0
  379. package/es/data-source/collection-template/CollectionTemplate.mjs +32 -0
  380. package/es/data-source/collection-template/CollectionTemplateManager.mjs +52 -0
  381. package/es/data-source/collection-template/index.mjs +2 -0
  382. package/es/data-source/commonsSettingsItem/fieldComponent.mjs +57 -0
  383. package/es/data-source/commonsSettingsItem/index.mjs +1 -0
  384. package/es/data-source/components/CollectionDeletedPlaceholder.mjs +81 -0
  385. package/es/data-source/components/DataSourceApplicationProvider.mjs +15 -0
  386. package/es/data-source/components/index.mjs +2 -0
  387. package/es/data-source/data-block/DataBlockProvider.mjs +79 -0
  388. package/es/data-source/data-block/DataBlockRequestProvider.mjs +124 -0
  389. package/es/data-source/data-block/DataBlockResourceProvider.mjs +54 -0
  390. package/es/data-source/data-block/context/ConfigSetting.provider.mjs +10 -0
  391. package/es/data-source/data-block/index.mjs +4 -0
  392. package/es/data-source/data-source/DataSource.mjs +72 -0
  393. package/es/data-source/data-source/DataSourceManager.mjs +108 -0
  394. package/es/data-source/data-source/DataSourceManagerProvider.mjs +16 -0
  395. package/es/data-source/data-source/DataSourceProvider.mjs +54 -0
  396. package/es/data-source/data-source/index.mjs +4 -0
  397. package/es/data-source/index.mjs +10 -0
  398. package/es/data-source/utils.mjs +17 -0
  399. package/es/env.d.mjs +0 -0
  400. package/es/filter-provider/FilterProvider.mjs +127 -0
  401. package/es/filter-provider/__tests__/transformToFilter.mjs +65 -0
  402. package/es/filter-provider/__tests__/useFilter.mjs +41 -0
  403. package/es/filter-provider/__tests__/utiles.test.mjs +265 -0
  404. package/es/filter-provider/index.mjs +2 -0
  405. package/es/filter-provider/utils.mjs +180 -0
  406. package/es/flag-provider/FlagProvider.mjs +8 -0
  407. package/es/flag-provider/__tests__/flag-provider.test.mjs +19 -0
  408. package/es/flag-provider/hooks/useFlag.mjs +4 -0
  409. package/es/flag-provider/index.mjs +2 -0
  410. package/es/global.css +34 -0
  411. package/es/hooks/index.mjs +2 -0
  412. package/es/hooks/useAdminSchemaUid.mjs +2 -0
  413. package/es/hooks/useMenuItem.mjs +70 -0
  414. package/es/hooks/useViewport.mjs +35 -0
  415. package/es/i18n/i18n.mjs +23 -0
  416. package/es/i18n/index.mjs +1 -0
  417. package/es/icon/Icon.mjs +56 -0
  418. package/es/icon/__tests__/icon.test.mjs +25 -0
  419. package/es/icon/demos/antd-icon.mjs +7 -0
  420. package/es/icon/demos/custom-icon.mjs +16 -0
  421. package/es/icon/demos/iconfont.mjs +10 -0
  422. package/es/icon/demos/register-icon.mjs +23 -0
  423. package/es/icon/index.mjs +1 -0
  424. package/es/icon/preloaded.mjs +122 -0
  425. package/es/index.mjs +50 -0
  426. package/es/locale/index.mjs +269 -0
  427. package/es/modules/actions/ActionSchemaToolbar.mjs +10 -0
  428. package/es/modules/actions/add-child/CreateChildInitializer.mjs +64 -0
  429. package/es/modules/actions/add-child/addChildActionSettings.mjs +64 -0
  430. package/es/modules/actions/add-new/CreateActionInitializer.mjs +67 -0
  431. package/es/modules/actions/add-new/addNewActionSettings.mjs +57 -0
  432. package/es/modules/actions/add-new/createFormBlockInitializers.mjs +56 -0
  433. package/es/modules/actions/add-record/CustomizeAddRecordActionInitializer.mjs +63 -0
  434. package/es/modules/actions/add-record/customizeAddRecordActionSettings.mjs +35 -0
  435. package/es/modules/actions/add-record/customizeCreateFormBlockInitializers.mjs +36 -0
  436. package/es/modules/actions/bulk-destroy/BulkDestroyActionInitializer.mjs +35 -0
  437. package/es/modules/actions/bulk-destroy/bulkDeleteActionSettings.mjs +30 -0
  438. package/es/modules/actions/delete/DestroyActionInitializer.mjs +28 -0
  439. package/es/modules/actions/delete/deleteActionSettings.mjs +39 -0
  440. package/es/modules/actions/disassociate/DisassociateActionInitializer.mjs +28 -0
  441. package/es/modules/actions/disassociate/__e2e__/disassociate.test.mjs +39 -0
  442. package/es/modules/actions/disassociate/__e2e__/templatesOfPage.mjs +383 -0
  443. package/es/modules/actions/disassociate/disassociateActionSettings.mjs +39 -0
  444. package/es/modules/actions/expand-collapse/ExpandableActionInitializer.mjs +26 -0
  445. package/es/modules/actions/expand-collapse/expendableActionSettings.mjs +118 -0
  446. package/es/modules/actions/filter/FilterActionInitializer.mjs +22 -0
  447. package/es/modules/actions/filter/filterActionSettings.mjs +83 -0
  448. package/es/modules/actions/link/customizeLinkActionSettings.mjs +107 -0
  449. package/es/modules/actions/link/hooks.mjs +199 -0
  450. package/es/modules/actions/refresh/RefreshActionInitializer.mjs +21 -0
  451. package/es/modules/actions/refresh/refreshActionSettings.mjs +30 -0
  452. package/es/modules/actions/save-record/SaveRecordActionInitializer.mjs +34 -0
  453. package/es/modules/actions/save-record/customizeSaveRecordActionSettings.mjs +52 -0
  454. package/es/modules/actions/submit/CreateSubmitActionInitializer.mjs +27 -0
  455. package/es/modules/actions/submit/UpdateSubmitActionInitializer.mjs +31 -0
  456. package/es/modules/actions/submit/createSubmitActionSettings.mjs +210 -0
  457. package/es/modules/actions/submit/updateSubmitActionSettings.mjs +89 -0
  458. package/es/modules/actions/update-record/UpdateRecordActionInitializer.mjs +32 -0
  459. package/es/modules/actions/update-record/customizeUpdateRecordActionSettings.mjs +62 -0
  460. package/es/modules/actions/view-edit-popup/PopupActionInitializer.mjs +59 -0
  461. package/es/modules/actions/view-edit-popup/RecordFormBlockInitializers.mjs +35 -0
  462. package/es/modules/actions/view-edit-popup/UpdateActionInitializer.mjs +57 -0
  463. package/es/modules/actions/view-edit-popup/ViewActionInitializer.mjs +56 -0
  464. package/es/modules/actions/view-edit-popup/customizePopupActionSettings.mjs +49 -0
  465. package/es/modules/actions/view-edit-popup/editActionSettings.mjs +44 -0
  466. package/es/modules/actions/view-edit-popup/viewActionSettings.mjs +49 -0
  467. package/es/modules/blocks/BlockSchemaToolbar.mjs +56 -0
  468. package/es/modules/blocks/data-blocks/details-multi/DetailsActionInitializers.mjs +40 -0
  469. package/es/modules/blocks/data-blocks/details-multi/DetailsBlockInitializer.mjs +49 -0
  470. package/es/modules/blocks/data-blocks/details-multi/__e2e__/schemaInitializer.test.mjs +112 -0
  471. package/es/modules/blocks/data-blocks/details-multi/__e2e__/schemaSettings.test.mjs +72 -0
  472. package/es/modules/blocks/data-blocks/details-multi/__e2e__/templatesOfBug.mjs +0 -0
  473. package/es/modules/blocks/data-blocks/details-multi/__tests__/createDetailsBlockWithPagingUISchema.test.mjs +14 -0
  474. package/es/modules/blocks/data-blocks/details-multi/createDetailsWithPaginationUISchema.mjs +58 -0
  475. package/es/modules/blocks/data-blocks/details-multi/detailsWithPaginationSettings.mjs +216 -0
  476. package/es/modules/blocks/data-blocks/details-multi/hooks/useDetailsWithPaginationDecoratorProps.mjs +9 -0
  477. package/es/modules/blocks/data-blocks/details-multi/hooks/useDetailsWithPaginationProps.mjs +5 -0
  478. package/es/modules/blocks/data-blocks/details-multi/setDataLoadingModeSettingsItem.mjs +73 -0
  479. package/es/modules/blocks/data-blocks/details-single/ReadPrettyFormActionInitializers.mjs +85 -0
  480. package/es/modules/blocks/data-blocks/details-single/ReadPrettyFormItemInitializers.mjs +86 -0
  481. package/es/modules/blocks/data-blocks/details-single/RecordReadPrettyFormBlockInitializer.mjs +73 -0
  482. package/es/modules/blocks/data-blocks/details-single/__e2e__/schemaInitializer.test.mjs +98 -0
  483. package/es/modules/blocks/data-blocks/details-single/__e2e__/schemaSettings.test.mjs +24 -0
  484. package/es/modules/blocks/data-blocks/details-single/__e2e__/templatesOfBug.mjs +0 -0
  485. package/es/modules/blocks/data-blocks/details-single/__tests__/createDetailsBlockWithoutPagingUISchema.test.mjs +14 -0
  486. package/es/modules/blocks/data-blocks/details-single/createDetailsUISchema.mjs +54 -0
  487. package/es/modules/blocks/data-blocks/details-single/detailsBlockSettings.mjs +49 -0
  488. package/es/modules/blocks/data-blocks/details-single/hooks/useDetailsDecoratorProps.mjs +21 -0
  489. package/es/modules/blocks/data-blocks/details-single/hooks/useDetailsProps.mjs +5 -0
  490. package/es/modules/blocks/data-blocks/form/CreateFormBlockInitializer.mjs +48 -0
  491. package/es/modules/blocks/data-blocks/form/FilterItemCustomSettings.mjs +279 -0
  492. package/es/modules/blocks/data-blocks/form/FormBlockInitializer.mjs +79 -0
  493. package/es/modules/blocks/data-blocks/form/FormItemSchemaToolbar.mjs +9 -0
  494. package/es/modules/blocks/data-blocks/form/RecordFormBlockInitializer.mjs +84 -0
  495. package/es/modules/blocks/data-blocks/form/__e2e__/form-create/associationForm.test.mjs +14 -0
  496. package/es/modules/blocks/data-blocks/form/__e2e__/form-create/dragAndDrop.test.mjs +26 -0
  497. package/es/modules/blocks/data-blocks/form/__e2e__/form-create/lazyLoadAssociationFields.test.mjs +168 -0
  498. package/es/modules/blocks/data-blocks/form/__e2e__/form-create/lazyLoadVariables.test.mjs +28 -0
  499. package/es/modules/blocks/data-blocks/form/__e2e__/form-create/schemaInitializer.test.mjs +141 -0
  500. package/es/modules/blocks/data-blocks/form/__e2e__/form-create/schemaSettings.test.mjs +1254 -0
  501. package/es/modules/blocks/data-blocks/form/__e2e__/form-create/templatesOfBug.mjs +6002 -0
  502. package/es/modules/blocks/data-blocks/form/__e2e__/form-edit/schemaInitializer.test.mjs +16 -0
  503. package/es/modules/blocks/data-blocks/form/__e2e__/form-edit/schemaSettings.test.mjs +212 -0
  504. package/es/modules/blocks/data-blocks/form/__e2e__/form-edit/templatesOfBug.mjs +0 -0
  505. package/es/modules/blocks/data-blocks/form/__tests__/createCreateFormBlockUISchema.test.mjs +19 -0
  506. package/es/modules/blocks/data-blocks/form/__tests__/createEditFormBlockUISchema.test.mjs +18 -0
  507. package/es/modules/blocks/data-blocks/form/createCreateFormBlockUISchema.mjs +51 -0
  508. package/es/modules/blocks/data-blocks/form/createEditFormBlockUISchema.mjs +54 -0
  509. package/es/modules/blocks/data-blocks/form/createFormActionInitializers.mjs +45 -0
  510. package/es/modules/blocks/data-blocks/form/createFormBlockSettings.mjs +138 -0
  511. package/es/modules/blocks/data-blocks/form/editFormBlockSettings.mjs +72 -0
  512. package/es/modules/blocks/data-blocks/form/fieldSettingsFormItem.mjs +525 -0
  513. package/es/modules/blocks/data-blocks/form/formActionInitializers.mjs +45 -0
  514. package/es/modules/blocks/data-blocks/form/formItemInitializers.mjs +39 -0
  515. package/es/modules/blocks/data-blocks/form/hooks/useCreateFormBlockDecoratorProps.mjs +9 -0
  516. package/es/modules/blocks/data-blocks/form/hooks/useCreateFormBlockProps.mjs +5 -0
  517. package/es/modules/blocks/data-blocks/form/hooks/useEditFormBlockDecoratorProps.mjs +15 -0
  518. package/es/modules/blocks/data-blocks/form/hooks/useEditFormBlockProps.mjs +5 -0
  519. package/es/modules/blocks/data-blocks/form/index.mjs +14 -0
  520. package/es/modules/blocks/data-blocks/form/updateFormActionInitializers.mjs +56 -0
  521. package/es/modules/blocks/data-blocks/grid-card/GridCardActionInitializers.mjs +85 -0
  522. package/es/modules/blocks/data-blocks/grid-card/GridCardBlockInitializer.mjs +43 -0
  523. package/es/modules/blocks/data-blocks/grid-card/__e2e__/schemaInitializer.test.mjs +220 -0
  524. package/es/modules/blocks/data-blocks/grid-card/__e2e__/schemaSettings.test.mjs +48 -0
  525. package/es/modules/blocks/data-blocks/grid-card/__e2e__/templatesOfBug.mjs +0 -0
  526. package/es/modules/blocks/data-blocks/grid-card/__tests__/createGridCardBlockSchema.test.mjs +26 -0
  527. package/es/modules/blocks/data-blocks/grid-card/createGridCardBlockUISchema.mjs +73 -0
  528. package/es/modules/blocks/data-blocks/grid-card/gridCardBlockSettings.mjs +431 -0
  529. package/es/modules/blocks/data-blocks/grid-card/gridCardItemActionInitializers.mjs +100 -0
  530. package/es/modules/blocks/data-blocks/grid-card/hooks/useGridCardBlockDecoratorProps.mjs +12 -0
  531. package/es/modules/blocks/data-blocks/grid-card/hooks/useGridCardBlockParams.mjs +17 -0
  532. package/es/modules/blocks/data-blocks/grid-card/utils.mjs +14 -0
  533. package/es/modules/blocks/data-blocks/list/ListActionInitializers.mjs +81 -0
  534. package/es/modules/blocks/data-blocks/list/ListBlockInitializer.mjs +43 -0
  535. package/es/modules/blocks/data-blocks/list/__e2e__/schemaInitializer.test.mjs +211 -0
  536. package/es/modules/blocks/data-blocks/list/__e2e__/schemaSettings.test.mjs +23 -0
  537. package/es/modules/blocks/data-blocks/list/__e2e__/templatesOfBug.mjs +0 -0
  538. package/es/modules/blocks/data-blocks/list/__tests__/createListBlockSchema.test.mjs +24 -0
  539. package/es/modules/blocks/data-blocks/list/createListBlockUISchema.mjs +68 -0
  540. package/es/modules/blocks/data-blocks/list/hooks/useListBlockDecoratorProps.mjs +9 -0
  541. package/es/modules/blocks/data-blocks/list/listBlockSettings.mjs +249 -0
  542. package/es/modules/blocks/data-blocks/list/listItemActionInitializers.mjs +100 -0
  543. package/es/modules/blocks/data-blocks/table/TableActionColumnInitializers.mjs +238 -0
  544. package/es/modules/blocks/data-blocks/table/TableActionInitializers.mjs +131 -0
  545. package/es/modules/blocks/data-blocks/table/TableBlockInitializer.mjs +43 -0
  546. package/es/modules/blocks/data-blocks/table/TableColumnInitializers.mjs +105 -0
  547. package/es/modules/blocks/data-blocks/table/TableColumnSchemaToolbar.mjs +15 -0
  548. package/es/modules/blocks/data-blocks/table/__e2e__/actions/duplicate.test.mjs +9 -0
  549. package/es/modules/blocks/data-blocks/table/__e2e__/actions/filter.test.mjs +33 -0
  550. package/es/modules/blocks/data-blocks/table/__e2e__/checkboxForTableRow.test.mjs +19 -0
  551. package/es/modules/blocks/data-blocks/table/__e2e__/dragAndDrop.test.mjs +31 -0
  552. package/es/modules/blocks/data-blocks/table/__e2e__/schemaInitializer.test.mjs +419 -0
  553. package/es/modules/blocks/data-blocks/table/__e2e__/schemaSettings.test.mjs +869 -0
  554. package/es/modules/blocks/data-blocks/table/__e2e__/templatesOfBug.mjs +934 -0
  555. package/es/modules/blocks/data-blocks/table/__e2e__/tree/schemaSettings.test.mjs +42 -0
  556. package/es/modules/blocks/data-blocks/table/__tests__/createTableBLockSchema.test.mjs +16 -0
  557. package/es/modules/blocks/data-blocks/table/createTableBlockUISchema.mjs +82 -0
  558. package/es/modules/blocks/data-blocks/table/hooks/useTableBlockDecoratorProps.mjs +35 -0
  559. package/es/modules/blocks/data-blocks/table/hooks/useTableBlockProps.mjs +137 -0
  560. package/es/modules/blocks/data-blocks/table/index.mjs +9 -0
  561. package/es/modules/blocks/data-blocks/table/tableBlockSettings.mjs +416 -0
  562. package/es/modules/blocks/data-blocks/table/tableColumnSettings.mjs +333 -0
  563. package/es/modules/blocks/data-blocks/table/utils.mjs +17 -0
  564. package/es/modules/blocks/data-blocks/table-selector/TableSelectorInitializer.mjs +24 -0
  565. package/es/modules/blocks/data-blocks/table-selector/__e2e__/schemaInitializer.test.mjs +159 -0
  566. package/es/modules/blocks/data-blocks/table-selector/__e2e__/schemaSettings.test.mjs +146 -0
  567. package/es/modules/blocks/data-blocks/table-selector/__e2e__/templatesOfBug.mjs +692 -0
  568. package/es/modules/blocks/data-blocks/table-selector/__e2e__/utils.mjs +12 -0
  569. package/es/modules/blocks/data-blocks/table-selector/__tests__/createTableSelectorSchema.test.mjs +14 -0
  570. package/es/modules/blocks/data-blocks/table-selector/createTableSelectorUISchema.mjs +47 -0
  571. package/es/modules/blocks/data-blocks/table-selector/hooks/useTableSelectorDecoratorProps.mjs +2 -0
  572. package/es/modules/blocks/data-blocks/table-selector/index.mjs +2 -0
  573. package/es/modules/blocks/data-blocks/table-selector/tableSelectorBlockSettings.mjs +310 -0
  574. package/es/modules/blocks/filter-blocks/collapse/CollapseItemSchemaToolbar.mjs +8 -0
  575. package/es/modules/blocks/filter-blocks/collapse/FilterCollapseBlockInitializer.mjs +29 -0
  576. package/es/modules/blocks/filter-blocks/collapse/__e2e__/schemaInitializer.test.mjs +59 -0
  577. package/es/modules/blocks/filter-blocks/collapse/__e2e__/schemaSettings.test.mjs +62 -0
  578. package/es/modules/blocks/filter-blocks/collapse/__e2e__/templatesOfBug.mjs +0 -0
  579. package/es/modules/blocks/filter-blocks/collapse/__tests__/createCollapseBlockSchema.test.mjs +40 -0
  580. package/es/modules/blocks/filter-blocks/collapse/createFilterCollapseBlockSchema.mjs +31 -0
  581. package/es/modules/blocks/filter-blocks/collapse/filterCollapseBlockSettings.mjs +58 -0
  582. package/es/modules/blocks/filter-blocks/collapse/filterCollapseItemFieldSettings.mjs +213 -0
  583. package/es/modules/blocks/filter-blocks/collapse/filterCollapseItemInitializer.mjs +153 -0
  584. package/es/modules/blocks/filter-blocks/collapse/hooks/useCollapseBlockDecoratorProps.mjs +2 -0
  585. package/es/modules/blocks/filter-blocks/form/FilterFormActionInitializers.mjs +32 -0
  586. package/es/modules/blocks/filter-blocks/form/FilterFormBlockInitializer.mjs +37 -0
  587. package/es/modules/blocks/filter-blocks/form/__e2e__/schemaInitializer.test.mjs +115 -0
  588. package/es/modules/blocks/filter-blocks/form/__e2e__/schemaSettings.test.mjs +98 -0
  589. package/es/modules/blocks/filter-blocks/form/__e2e__/templatesOfBug.mjs +0 -0
  590. package/es/modules/blocks/filter-blocks/form/__tests__/createFilterFormBlockSchema.test.mjs +23 -0
  591. package/es/modules/blocks/filter-blocks/form/createFilterFormBlockSchema.mjs +46 -0
  592. package/es/modules/blocks/filter-blocks/form/filterFormBlockSettings.mjs +66 -0
  593. package/es/modules/blocks/filter-blocks/form/filterFormItemFieldSettings.mjs +355 -0
  594. package/es/modules/blocks/filter-blocks/form/filterFormItemInitializers.mjs +41 -0
  595. package/es/modules/blocks/filter-blocks/form/hooks/useFilterFormBlockDecoratorProps.mjs +2 -0
  596. package/es/modules/blocks/filter-blocks/form/hooks/useFilterFormBlockProps.mjs +5 -0
  597. package/es/modules/blocks/filter-blocks/tree/FilterTreeActionInitializers.mjs +32 -0
  598. package/es/modules/blocks/filter-blocks/tree/FilterTreeBlockInitializer.mjs +73 -0
  599. package/es/modules/blocks/filter-blocks/tree/filterTreeBlockSettings.mjs +66 -0
  600. package/es/modules/blocks/filter-blocks/tree/filterTreeItemFieldSettings.mjs +355 -0
  601. package/es/modules/blocks/filter-blocks/tree/filterTreeItemInitializers.mjs +41 -0
  602. package/es/modules/blocks/other-blocks/markdown/MarkdownBlockInitializer.mjs +30 -0
  603. package/es/modules/blocks/other-blocks/markdown/MarkdownFormItemInitializer.mjs +26 -0
  604. package/es/modules/blocks/other-blocks/markdown/__e2e__/schemaInitializer.test.mjs +10 -0
  605. package/es/modules/blocks/other-blocks/markdown/__e2e__/schemaSettings.test.mjs +33 -0
  606. package/es/modules/blocks/other-blocks/markdown/__e2e__/templatesOfBug.mjs +0 -0
  607. package/es/modules/blocks/other-blocks/markdown/markdownBlockSettings.mjs +39 -0
  608. package/es/modules/blocks/useParentRecordCommon.mjs +7 -0
  609. package/es/modules/blocks/useSourceId.mjs +12 -0
  610. package/es/modules/blocks/useSourceKey.mjs +6 -0
  611. package/es/modules/dialog/__e2e__/schemaInitializer.test.mjs +388 -0
  612. package/es/modules/dialog/__e2e__/schemaSettings.test.mjs +59 -0
  613. package/es/modules/dialog/__e2e__/templatesOfBug.mjs +2122 -0
  614. package/es/modules/dialog/__e2e__/zIndex.test.mjs +35 -0
  615. package/es/modules/fields/component/CascadeSelect/cascadeSelectComponentFieldSettings.mjs +91 -0
  616. package/es/modules/fields/component/Cascader/cascaderComponentFieldSettings.mjs +380 -0
  617. package/es/modules/fields/component/Checkbox/checkboxComponentFieldSettings.mjs +53 -0
  618. package/es/modules/fields/component/DatePicker/__e2e__/schemaSettings.test.mjs +74 -0
  619. package/es/modules/fields/component/DatePicker/__e2e__/utils.mjs +323 -0
  620. package/es/modules/fields/component/DatePicker/datePickerComponentFieldSettings.mjs +22 -0
  621. package/es/modules/fields/component/DrawerSubTable/drawerSubTableComponentFieldSettings.mjs +149 -0
  622. package/es/modules/fields/component/FileManager/fileManagerComponentFieldSettings.mjs +190 -0
  623. package/es/modules/fields/component/FileManager/uploadAttachmentComponentFieldSettings.mjs +102 -0
  624. package/es/modules/fields/component/InputNumber/inputNumberComponentFieldSettings.mjs +27 -0
  625. package/es/modules/fields/component/Nester/subformComponentFieldSettings.mjs +125 -0
  626. package/es/modules/fields/component/Picker/TableSelectorInitializers.mjs +86 -0
  627. package/es/modules/fields/component/Picker/recordPickerComponentFieldSettings.mjs +190 -0
  628. package/es/modules/fields/component/PopoverNester/subformPopoverComponentFieldSettings.mjs +99 -0
  629. package/es/modules/fields/component/Radio/radioComponentFieldSettings.mjs +53 -0
  630. package/es/modules/fields/component/Select/selectComponentFieldSettings.mjs +378 -0
  631. package/es/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.mjs +404 -0
  632. package/es/modules/fields/component/Tag/tagComponentFieldSettings.mjs +172 -0
  633. package/es/modules/fields/component/UnixTimestamp/unixTimestampComponentFieldSettings.mjs +22 -0
  634. package/es/modules/fields/initializer/CollectionFieldInitializer.mjs +15 -0
  635. package/es/modules/fields/initializer/TableCollectionFieldInitializer.mjs +15 -0
  636. package/es/modules/menu/GroupItem.mjs +78 -0
  637. package/es/modules/menu/LinkMenuItem.mjs +84 -0
  638. package/es/modules/menu/PageMenuItem.mjs +93 -0
  639. package/es/modules/menu/__e2e__/dragAndDrop.test.mjs +27 -0
  640. package/es/modules/menu/__e2e__/schemaInitializer.test.mjs +101 -0
  641. package/es/modules/menu/__e2e__/schemaSettings.test.mjs +347 -0
  642. package/es/modules/menu/__e2e__/templatesOfBug.mjs +0 -0
  643. package/es/modules/menu/menuItemInitializer.mjs +48 -0
  644. package/es/modules/page/BlockInitializers.mjs +77 -0
  645. package/es/modules/page/__e2e__/blockInitializers.test.mjs +17 -0
  646. package/es/modules/page/__e2e__/dragAndDrop.test.mjs +16 -0
  647. package/es/modules/page/__e2e__/schemaInitailizer.test.mjs +15 -0
  648. package/es/modules/page/__e2e__/schemaSettings.test.mjs +134 -0
  649. package/es/modules/page/__e2e__/templatesOfBug.mjs +0 -0
  650. package/es/modules/plugin-manager/__e2e__/pluginManager.test.mjs +113 -0
  651. package/es/modules/plugin-manager/__e2e__/templatesOfBug.mjs +0 -0
  652. package/es/modules/user-center/__e2e__/settings.test.mjs +12 -0
  653. package/es/modules/variable/DeclareVariable.mjs +16 -0
  654. package/es/modules/variable/useVariable.mjs +12 -0
  655. package/es/powered-by/index.mjs +43 -0
  656. package/es/record-provider/index.mjs +51 -0
  657. package/es/route-switch/RouteSchemaComponent.mjs +12 -0
  658. package/es/route-switch/index.mjs +1 -0
  659. package/es/schema-component/antd/AntdSchemaComponentProvider.mjs +39 -0
  660. package/es/schema-component/antd/__builtins__/hooks/index.mjs +3 -0
  661. package/es/schema-component/antd/__builtins__/hooks/useConfig.mjs +5 -0
  662. package/es/schema-component/antd/__builtins__/hooks/usePrefixCls.mjs +12 -0
  663. package/es/schema-component/antd/__builtins__/hooks/useToken.mjs +6 -0
  664. package/es/schema-component/antd/__builtins__/index.mjs +4 -0
  665. package/es/schema-component/antd/__builtins__/loading.mjs +15 -0
  666. package/es/schema-component/antd/__builtins__/portal.mjs +51 -0
  667. package/es/schema-component/antd/__builtins__/render.mjs +47 -0
  668. package/es/schema-component/antd/__builtins__/style.mjs +65 -0
  669. package/es/schema-component/antd/action/Action.Area.mjs +102 -0
  670. package/es/schema-component/antd/action/Action.Area.style.mjs +40 -0
  671. package/es/schema-component/antd/action/Action.Container.mjs +42 -0
  672. package/es/schema-component/antd/action/Action.Designer.mjs +906 -0
  673. package/es/schema-component/antd/action/Action.Drawer.mjs +136 -0
  674. package/es/schema-component/antd/action/Action.Drawer.style.mjs +46 -0
  675. package/es/schema-component/antd/action/Action.Link.mjs +14 -0
  676. package/es/schema-component/antd/action/Action.Modal.mjs +172 -0
  677. package/es/schema-component/antd/action/Action.Page.mjs +83 -0
  678. package/es/schema-component/antd/action/Action.Popover.mjs +0 -0
  679. package/es/schema-component/antd/action/Action.Sheet.mjs +81 -0
  680. package/es/schema-component/antd/action/Action.mjs +228 -0
  681. package/es/schema-component/antd/action/Action.style.mjs +47 -0
  682. package/es/schema-component/antd/action/ActionBar.mjs +128 -0
  683. package/es/schema-component/antd/action/__tests__/action.test.mjs +116 -0
  684. package/es/schema-component/antd/action/context.mjs +17 -0
  685. package/es/schema-component/antd/action/demos/demo1.mjs +70 -0
  686. package/es/schema-component/antd/action/demos/demo2.mjs +75 -0
  687. package/es/schema-component/antd/action/demos/demo3.mjs +127 -0
  688. package/es/schema-component/antd/action/demos/demo4.mjs +58 -0
  689. package/es/schema-component/antd/action/demos/demo5.mjs +211 -0
  690. package/es/schema-component/antd/action/demos/demo6.mjs +95 -0
  691. package/es/schema-component/antd/action/hooks/useGetAriaLabelOfAction.mjs +37 -0
  692. package/es/schema-component/antd/action/hooks/useGetAriaLabelOfDrawer.mjs +25 -0
  693. package/es/schema-component/antd/action/hooks/useGetAriaLabelOfModal.mjs +25 -0
  694. package/es/schema-component/antd/action/hooks/useGetAriaLabelOfPopover.mjs +25 -0
  695. package/es/schema-component/antd/action/hooks/useSetAriaLabelForDrawer.mjs +30 -0
  696. package/es/schema-component/antd/action/hooks/useSetAriaLabelForModal.mjs +30 -0
  697. package/es/schema-component/antd/action/hooks/useSetAriaLabelForPopover.mjs +22 -0
  698. package/es/schema-component/antd/action/hooks.mjs +60 -0
  699. package/es/schema-component/antd/action/index.mjs +10 -0
  700. package/es/schema-component/antd/action/types.mjs +0 -0
  701. package/es/schema-component/antd/action/utils.mjs +213 -0
  702. package/es/schema-component/antd/appends-tree-select/AppendsTreeSelect.mjs +216 -0
  703. package/es/schema-component/antd/appends-tree-select/AppendsTreeSelectV2.mjs +215 -0
  704. package/es/schema-component/antd/appends-tree-select/index.mjs +2 -0
  705. package/es/schema-component/antd/association-cascader/AssociationCascader.mjs +135 -0
  706. package/es/schema-component/antd/association-cascader/index.mjs +1 -0
  707. package/es/schema-component/antd/association-field/AssociationFieldProvider.mjs +125 -0
  708. package/es/schema-component/antd/association-field/AssociationSelect.mjs +172 -0
  709. package/es/schema-component/antd/association-field/Editable.mjs +103 -0
  710. package/es/schema-component/antd/association-field/FileManager.mjs +201 -0
  711. package/es/schema-component/antd/association-field/InternalCascadeSelect.mjs +394 -0
  712. package/es/schema-component/antd/association-field/InternalCascader.mjs +365 -0
  713. package/es/schema-component/antd/association-field/InternalDrawerSubTable.mjs +99 -0
  714. package/es/schema-component/antd/association-field/InternalNester.mjs +80 -0
  715. package/es/schema-component/antd/association-field/InternalPicker.mjs +228 -0
  716. package/es/schema-component/antd/association-field/InternalPopoverNester.mjs +131 -0
  717. package/es/schema-component/antd/association-field/InternalSubTable.mjs +91 -0
  718. package/es/schema-component/antd/association-field/InternalTag.mjs +122 -0
  719. package/es/schema-component/antd/association-field/InternalViewer.mjs +136 -0
  720. package/es/schema-component/antd/association-field/Nester.mjs +247 -0
  721. package/es/schema-component/antd/association-field/ReadPretty.mjs +47 -0
  722. package/es/schema-component/antd/association-field/SubTable.mjs +278 -0
  723. package/es/schema-component/antd/association-field/SubTabs/InternalCollapse.mjs +321 -0
  724. package/es/schema-component/antd/association-field/SubTabs/hook.mjs +53 -0
  725. package/es/schema-component/antd/association-field/SubTabs/index.mjs +1 -0
  726. package/es/schema-component/antd/association-field/SubTabs/styles.mjs +25 -0
  727. package/es/schema-component/antd/association-field/components/CreateRecordAction.mjs +55 -0
  728. package/es/schema-component/antd/association-field/context.mjs +4 -0
  729. package/es/schema-component/antd/association-field/hooks.mjs +150 -0
  730. package/es/schema-component/antd/association-field/index.mjs +17 -0
  731. package/es/schema-component/antd/association-field/schema.mjs +131 -0
  732. package/es/schema-component/antd/association-field/util.mjs +103 -0
  733. package/es/schema-component/antd/association-filter/ActionBarAssociationFilterAction.mjs +54 -0
  734. package/es/schema-component/antd/association-filter/AssociationFilter.BlockDesigner.mjs +40 -0
  735. package/es/schema-component/antd/association-filter/AssociationFilter.Initializer.mjs +55 -0
  736. package/es/schema-component/antd/association-filter/AssociationFilter.Item.Designer.mjs +134 -0
  737. package/es/schema-component/antd/association-filter/AssociationFilter.Item.mjs +131 -0
  738. package/es/schema-component/antd/association-filter/AssociationFilter.Item.style.mjs +101 -0
  739. package/es/schema-component/antd/association-filter/AssociationFilter.mjs +75 -0
  740. package/es/schema-component/antd/association-filter/AssociationFilterDesignerDelete.mjs +31 -0
  741. package/es/schema-component/antd/association-filter/AssociationFilterDesignerDisplayField.mjs +23 -0
  742. package/es/schema-component/antd/association-filter/utilts.mjs +2 -0
  743. package/es/schema-component/antd/association-select/AssociationSelect.mjs +865 -0
  744. package/es/schema-component/antd/association-select/ReadPretty.mjs +17 -0
  745. package/es/schema-component/antd/association-select/__tests__/association-select.test.mjs +16 -0
  746. package/es/schema-component/antd/association-select/demos/demo1.mjs +55 -0
  747. package/es/schema-component/antd/association-select/index.mjs +1 -0
  748. package/es/schema-component/antd/association-select/useServiceOptions.mjs +82 -0
  749. package/es/schema-component/antd/auto-complete/AutoComplete.mjs +58 -0
  750. package/es/schema-component/antd/auto-complete/index.mjs +1 -0
  751. package/es/schema-component/antd/block-item/BlockItem.mjs +49 -0
  752. package/es/schema-component/antd/block-item/BlockToolbar.mjs +88 -0
  753. package/es/schema-component/antd/block-item/__tests__/block-item.test.mjs +14 -0
  754. package/es/schema-component/antd/block-item/demos/demo1.mjs +60 -0
  755. package/es/schema-component/antd/block-item/hooks/useGetAriaLabelOfBlockItem.mjs +39 -0
  756. package/es/schema-component/antd/block-item/index.mjs +1 -0
  757. package/es/schema-component/antd/block-item/useBlockToolbar.mjs +81 -0
  758. package/es/schema-component/antd/card-item/CardItem.mjs +25 -0
  759. package/es/schema-component/antd/card-item/__tests__/card-item.test.mjs +11 -0
  760. package/es/schema-component/antd/card-item/demos/demo1.mjs +31 -0
  761. package/es/schema-component/antd/card-item/index.mjs +1 -0
  762. package/es/schema-component/antd/card-item/style.mjs +25 -0
  763. package/es/schema-component/antd/cascader/Cascader.mjs +73 -0
  764. package/es/schema-component/antd/cascader/ReadPretty.mjs +30 -0
  765. package/es/schema-component/antd/cascader/__tests__/cascader.test.mjs +29 -0
  766. package/es/schema-component/antd/cascader/defaultFieldNames.mjs +6 -0
  767. package/es/schema-component/antd/cascader/demos/demo1.mjs +82 -0
  768. package/es/schema-component/antd/cascader/demos/demo2.mjs +115 -0
  769. package/es/schema-component/antd/cascader/index.mjs +1 -0
  770. package/es/schema-component/antd/checkbox/Checkbox.mjs +83 -0
  771. package/es/schema-component/antd/checkbox/__tests__/checkbox.test.mjs +40 -0
  772. package/es/schema-component/antd/checkbox/demos/checkbox.group.mjs +54 -0
  773. package/es/schema-component/antd/checkbox/demos/checkbox.mjs +40 -0
  774. package/es/schema-component/antd/checkbox/index.mjs +1 -0
  775. package/es/schema-component/antd/collection-select/CollectionSelect.mjs +146 -0
  776. package/es/schema-component/antd/collection-select/__tests__/collection-select.test.mjs +16 -0
  777. package/es/schema-component/antd/collection-select/demos/demo1.mjs +36 -0
  778. package/es/schema-component/antd/collection-select/index.mjs +1 -0
  779. package/es/schema-component/antd/color-picker/ColorPicker.mjs +86 -0
  780. package/es/schema-component/antd/color-picker/ReadPretty.mjs +19 -0
  781. package/es/schema-component/antd/color-picker/demos/demo1.mjs +49 -0
  782. package/es/schema-component/antd/color-picker/index.mjs +1 -0
  783. package/es/schema-component/antd/color-picker/util.mjs +158 -0
  784. package/es/schema-component/antd/color-select/ColorSelect.mjs +48 -0
  785. package/es/schema-component/antd/color-select/__tests__/color-select.test.mjs +16 -0
  786. package/es/schema-component/antd/color-select/demos/demo1.mjs +40 -0
  787. package/es/schema-component/antd/color-select/index.mjs +1 -0
  788. package/es/schema-component/antd/cron/Cron.mjs +68 -0
  789. package/es/schema-component/antd/cron/CronSet.mjs +106 -0
  790. package/es/schema-component/antd/cron/__tests__/cron-set.test.mjs +30 -0
  791. package/es/schema-component/antd/cron/demos/demo1.mjs +32 -0
  792. package/es/schema-component/antd/cron/demos/demo2.mjs +51 -0
  793. package/es/schema-component/antd/cron/index.mjs +2 -0
  794. package/es/schema-component/antd/custom-cascader/CustomCascader.mjs +34 -0
  795. package/es/schema-component/antd/custom-cascader/ReadPretty.mjs +30 -0
  796. package/es/schema-component/antd/custom-cascader/defaultFieldNames.mjs +6 -0
  797. package/es/schema-component/antd/custom-cascader/index.mjs +1 -0
  798. package/es/schema-component/antd/date-picker/DatePicker.mjs +144 -0
  799. package/es/schema-component/antd/date-picker/ReadPretty.mjs +38 -0
  800. package/es/schema-component/antd/date-picker/__tests__/date-picker.test.mjs +178 -0
  801. package/es/schema-component/antd/date-picker/__tests__/getDateRanges.test.mjs +110 -0
  802. package/es/schema-component/antd/date-picker/__tests__/mapDatePicker.test.mjs +200 -0
  803. package/es/schema-component/antd/date-picker/__tests__/mapRangePicker.test.mjs +59 -0
  804. package/es/schema-component/antd/date-picker/__tests__/util.test.mjs +166 -0
  805. package/es/schema-component/antd/date-picker/demos/demo1.mjs +57 -0
  806. package/es/schema-component/antd/date-picker/demos/demo10.mjs +61 -0
  807. package/es/schema-component/antd/date-picker/demos/demo11.mjs +65 -0
  808. package/es/schema-component/antd/date-picker/demos/demo2.mjs +60 -0
  809. package/es/schema-component/antd/date-picker/demos/demo3.mjs +58 -0
  810. package/es/schema-component/antd/date-picker/demos/demo4.mjs +72 -0
  811. package/es/schema-component/antd/date-picker/demos/demo5.mjs +71 -0
  812. package/es/schema-component/antd/date-picker/demos/demo6.mjs +71 -0
  813. package/es/schema-component/antd/date-picker/demos/demo7.mjs +61 -0
  814. package/es/schema-component/antd/date-picker/demos/demo8.mjs +61 -0
  815. package/es/schema-component/antd/date-picker/demos/demo9.mjs +61 -0
  816. package/es/schema-component/antd/date-picker/index.mjs +1 -0
  817. package/es/schema-component/antd/date-picker/util.mjs +179 -0
  818. package/es/schema-component/antd/details/Details.mjs +18 -0
  819. package/es/schema-component/antd/details/__tests__/details.test.mjs +10 -0
  820. package/es/schema-component/antd/details/demos/demo1.mjs +42 -0
  821. package/es/schema-component/antd/details/index.mjs +1 -0
  822. package/es/schema-component/antd/error-fallback/ErrorFallback.mjs +59 -0
  823. package/es/schema-component/antd/error-fallback/__tests__/error-fallback.test.mjs +17 -0
  824. package/es/schema-component/antd/error-fallback/demos/demo1.mjs +13 -0
  825. package/es/schema-component/antd/error-fallback/index.mjs +1 -0
  826. package/es/schema-component/antd/expand-action/Expand.Action.Design.mjs +107 -0
  827. package/es/schema-component/antd/expand-action/Expand.Action.mjs +70 -0
  828. package/es/schema-component/antd/expand-action/index.mjs +6 -0
  829. package/es/schema-component/antd/filter/DynamicComponent.mjs +58 -0
  830. package/es/schema-component/antd/filter/Filter.Action.Designer.mjs +121 -0
  831. package/es/schema-component/antd/filter/Filter.mjs +56 -0
  832. package/es/schema-component/antd/filter/FilterAction.mjs +164 -0
  833. package/es/schema-component/antd/filter/FilterGroup.mjs +134 -0
  834. package/es/schema-component/antd/filter/FilterItem.mjs +85 -0
  835. package/es/schema-component/antd/filter/FilterItems.mjs +24 -0
  836. package/es/schema-component/antd/filter/SaveDefaultValue.mjs +36 -0
  837. package/es/schema-component/antd/filter/__tests__/filter.test.mjs +113 -0
  838. package/es/schema-component/antd/filter/context.mjs +8 -0
  839. package/es/schema-component/antd/filter/demos/demo2.mjs +129 -0
  840. package/es/schema-component/antd/filter/demos/demo3.mjs +196 -0
  841. package/es/schema-component/antd/filter/demos/demo4.mjs +184 -0
  842. package/es/schema-component/antd/filter/demos/demo5.mjs +131 -0
  843. package/es/schema-component/antd/filter/demos/demo6.mjs +118 -0
  844. package/es/schema-component/antd/filter/index.mjs +3 -0
  845. package/es/schema-component/antd/filter/useFilterActionProps.mjs +213 -0
  846. package/es/schema-component/antd/filter/useOperators.mjs +23 -0
  847. package/es/schema-component/antd/filter/useValues.mjs +122 -0
  848. package/es/schema-component/antd/filter/utils.mjs +13 -0
  849. package/es/schema-component/antd/form/Form.Designer.mjs +12 -0
  850. package/es/schema-component/antd/form/Form.Settings.mjs +34 -0
  851. package/es/schema-component/antd/form/Form.mjs +148 -0
  852. package/es/schema-component/antd/form/__tests__/form.test.mjs +113 -0
  853. package/es/schema-component/antd/form/demos/apiClient.mjs +17 -0
  854. package/es/schema-component/antd/form/demos/demo1.mjs +73 -0
  855. package/es/schema-component/antd/form/demos/demo2.mjs +73 -0
  856. package/es/schema-component/antd/form/demos/demo3.mjs +72 -0
  857. package/es/schema-component/antd/form/demos/demo4.mjs +80 -0
  858. package/es/schema-component/antd/form/demos/demo5.mjs +114 -0
  859. package/es/schema-component/antd/form/demos/demo6.mjs +71 -0
  860. package/es/schema-component/antd/form/demos/demo7.mjs +75 -0
  861. package/es/schema-component/antd/form/demos/demo8.mjs +86 -0
  862. package/es/schema-component/antd/form/index.mjs +2 -0
  863. package/es/schema-component/antd/form-dialog/index.mjs +154 -0
  864. package/es/schema-component/antd/form-item/FormItem.FilterFormDesigner.mjs +7 -0
  865. package/es/schema-component/antd/form-item/FormItem.FilterFormSettings.mjs +128 -0
  866. package/es/schema-component/antd/form-item/FormItem.Settings.mjs +1204 -0
  867. package/es/schema-component/antd/form-item/FormItem.mjs +133 -0
  868. package/es/schema-component/antd/form-item/SchemaSettingOptions.mjs +562 -0
  869. package/es/schema-component/antd/form-item/__tests__/form-item.test.mjs +12 -0
  870. package/es/schema-component/antd/form-item/__tests__/hooks/useSpecialCase.test.mjs +27 -0
  871. package/es/schema-component/antd/form-item/__tests__/utils.test.mjs +65 -0
  872. package/es/schema-component/antd/form-item/demos/demo1.mjs +37 -0
  873. package/es/schema-component/antd/form-item/hooks/useLazyLoadDisplayAssociationFieldsOfForm.mjs +69 -0
  874. package/es/schema-component/antd/form-item/hooks/useParseDefaultValue.mjs +84 -0
  875. package/es/schema-component/antd/form-item/hooks/useSpecialCase.mjs +106 -0
  876. package/es/schema-component/antd/form-item/index.mjs +4 -0
  877. package/es/schema-component/antd/form-item/utils.mjs +7 -0
  878. package/es/schema-component/antd/form-tab/index.mjs +140 -0
  879. package/es/schema-component/antd/form-v2/Form.Designer.mjs +33 -0
  880. package/es/schema-component/antd/form-v2/Form.FilterDesigner.mjs +15 -0
  881. package/es/schema-component/antd/form-v2/Form.Settings.mjs +315 -0
  882. package/es/schema-component/antd/form-v2/Form.mjs +330 -0
  883. package/es/schema-component/antd/form-v2/FormField.mjs +30 -0
  884. package/es/schema-component/antd/form-v2/Templates.mjs +191 -0
  885. package/es/schema-component/antd/form-v2/__tests__/form-v2.test.mjs +47 -0
  886. package/es/schema-component/antd/form-v2/demos/collections.mjs +1565 -0
  887. package/es/schema-component/antd/form-v2/demos/demo1.mjs +108 -0
  888. package/es/schema-component/antd/form-v2/demos/demo2.mjs +131 -0
  889. package/es/schema-component/antd/form-v2/demos/demo3.mjs +117 -0
  890. package/es/schema-component/antd/form-v2/index.mjs +14 -0
  891. package/es/schema-component/antd/form-v2/utils.mjs +143 -0
  892. package/es/schema-component/antd/grid/Block.mjs +24 -0
  893. package/es/schema-component/antd/grid/Grid.mjs +479 -0
  894. package/es/schema-component/antd/grid/Grid.style.mjs +45 -0
  895. package/es/schema-component/antd/grid/__tests__/grid.test.mjs +26 -0
  896. package/es/schema-component/antd/grid/demos/demo1.mjs +194 -0
  897. package/es/schema-component/antd/grid/demos/demo2.mjs +97 -0
  898. package/es/schema-component/antd/grid/demos/demo3.mjs +83 -0
  899. package/es/schema-component/antd/grid/index.mjs +2 -0
  900. package/es/schema-component/antd/grid-card/GridCard.Decorator.mjs +67 -0
  901. package/es/schema-component/antd/grid-card/GridCard.Decorator.style.mjs +24 -0
  902. package/es/schema-component/antd/grid-card/GridCard.Designer.mjs +252 -0
  903. package/es/schema-component/antd/grid-card/GridCard.Item.mjs +77 -0
  904. package/es/schema-component/antd/grid-card/GridCard.mjs +156 -0
  905. package/es/schema-component/antd/grid-card/__tests__/grid-card.test.mjs +9 -0
  906. package/es/schema-component/antd/grid-card/demos/demo1.mjs +6 -0
  907. package/es/schema-component/antd/grid-card/hooks.mjs +32 -0
  908. package/es/schema-component/antd/grid-card/index.mjs +1 -0
  909. package/es/schema-component/antd/grid-card/options.mjs +35 -0
  910. package/es/schema-component/antd/icon-picker/IconFilterInput.mjs +17 -0
  911. package/es/schema-component/antd/icon-picker/IconList.mjs +50 -0
  912. package/es/schema-component/antd/icon-picker/IconPicker.mjs +74 -0
  913. package/es/schema-component/antd/icon-picker/__tests__/icon-picker.test.mjs +25 -0
  914. package/es/schema-component/antd/icon-picker/demos/icon-picker.mjs +40 -0
  915. package/es/schema-component/antd/icon-picker/index.mjs +1 -0
  916. package/es/schema-component/antd/index.css +30 -0
  917. package/es/schema-component/antd/index.mjs +65 -0
  918. package/es/schema-component/antd/input/EllipsisWithTooltip.mjs +64 -0
  919. package/es/schema-component/antd/input/Input.mjs +27 -0
  920. package/es/schema-component/antd/input/Json.mjs +60 -0
  921. package/es/schema-component/antd/input/ReadPretty.mjs +153 -0
  922. package/es/schema-component/antd/input/__tests__/Input.test.mjs +115 -0
  923. package/es/schema-component/antd/input/demos/input.mjs +40 -0
  924. package/es/schema-component/antd/input/demos/json.mjs +46 -0
  925. package/es/schema-component/antd/input/demos/textarea.mjs +68 -0
  926. package/es/schema-component/antd/input/demos/url.mjs +42 -0
  927. package/es/schema-component/antd/input/index.mjs +5 -0
  928. package/es/schema-component/antd/input/shared.mjs +8 -0
  929. package/es/schema-component/antd/input-number/InputNumber.mjs +19 -0
  930. package/es/schema-component/antd/input-number/ReadPretty.mjs +115 -0
  931. package/es/schema-component/antd/input-number/__tests__/input-number.test.mjs +116 -0
  932. package/es/schema-component/antd/input-number/demos/addonBefore&addonAfter.mjs +48 -0
  933. package/es/schema-component/antd/input-number/demos/highPrecisionDecimals.mjs +50 -0
  934. package/es/schema-component/antd/input-number/demos/inputNumber.mjs +40 -0
  935. package/es/schema-component/antd/input-number/index.mjs +1 -0
  936. package/es/schema-component/antd/list/List.Decorator.mjs +94 -0
  937. package/es/schema-component/antd/list/List.Designer.mjs +206 -0
  938. package/es/schema-component/antd/list/List.Item.mjs +53 -0
  939. package/es/schema-component/antd/list/List.mjs +80 -0
  940. package/es/schema-component/antd/list/List.style.mjs +55 -0
  941. package/es/schema-component/antd/list/__tests__/list.test.mjs +9 -0
  942. package/es/schema-component/antd/list/demos/demo1.mjs +6 -0
  943. package/es/schema-component/antd/list/hooks.mjs +11 -0
  944. package/es/schema-component/antd/list/index.mjs +1 -0
  945. package/es/schema-component/antd/markdown/Markdown.Void.Designer.mjs +27 -0
  946. package/es/schema-component/antd/markdown/Markdown.Void.mjs +110 -0
  947. package/es/schema-component/antd/markdown/Markdown.mjs +46 -0
  948. package/es/schema-component/antd/markdown/__tests__/markdown.test.mjs +27 -0
  949. package/es/schema-component/antd/markdown/demos/demo1.mjs +40 -0
  950. package/es/schema-component/antd/markdown/demos/demo2.mjs +51 -0
  951. package/es/schema-component/antd/markdown/index.mjs +1 -0
  952. package/es/schema-component/antd/markdown/markdown-it-plugins/mermaidPlugin.mjs +51 -0
  953. package/es/schema-component/antd/markdown/md.mjs +13 -0
  954. package/es/schema-component/antd/markdown/style.mjs +220 -0
  955. package/es/schema-component/antd/markdown/util.mjs +38 -0
  956. package/es/schema-component/antd/menu/Menu.Designer.mjs +435 -0
  957. package/es/schema-component/antd/menu/Menu.mjs +591 -0
  958. package/es/schema-component/antd/menu/Menu.styles.mjs +77 -0
  959. package/es/schema-component/antd/menu/MenuItemInitializers/index.mjs +11 -0
  960. package/es/schema-component/antd/menu/__tests__/menu.test.mjs +38 -0
  961. package/es/schema-component/antd/menu/demos/demo1.mjs +93 -0
  962. package/es/schema-component/antd/menu/demos/demo2.mjs +96 -0
  963. package/es/schema-component/antd/menu/demos/demo3.mjs +135 -0
  964. package/es/schema-component/antd/menu/index.mjs +3 -0
  965. package/es/schema-component/antd/menu/locale.mjs +3 -0
  966. package/es/schema-component/antd/menu/util.mjs +34 -0
  967. package/es/schema-component/antd/nanoIDInput/NanoIDInput.mjs +33 -0
  968. package/es/schema-component/antd/nanoIDInput/index.mjs +1 -0
  969. package/es/schema-component/antd/page/FixedBlock.mjs +96 -0
  970. package/es/schema-component/antd/page/FixedBlockDesignerItem.mjs +40 -0
  971. package/es/schema-component/antd/page/Page.Settings.mjs +147 -0
  972. package/es/schema-component/antd/page/Page.mjs +220 -0
  973. package/es/schema-component/antd/page/PageTab.Settings.mjs +88 -0
  974. package/es/schema-component/antd/page/PageTabDesigner.mjs +64 -0
  975. package/es/schema-component/antd/page/__tests__/page.test.mjs +18 -0
  976. package/es/schema-component/antd/page/demos/demo1.mjs +38 -0
  977. package/es/schema-component/antd/page/hooks/useIsBlockInPage.mjs +12 -0
  978. package/es/schema-component/antd/page/index.mjs +5 -0
  979. package/es/schema-component/antd/page/style.mjs +143 -0
  980. package/es/schema-component/antd/pagination/index.mjs +22 -0
  981. package/es/schema-component/antd/password/Password.mjs +80 -0
  982. package/es/schema-component/antd/password/PasswordStrength.mjs +11 -0
  983. package/es/schema-component/antd/password/__tests__/password.test.mjs +28 -0
  984. package/es/schema-component/antd/password/__tests__/utils.test.mjs +21 -0
  985. package/es/schema-component/antd/password/demos/demo1.mjs +40 -0
  986. package/es/schema-component/antd/password/demos/demo2.mjs +43 -0
  987. package/es/schema-component/antd/password/index.mjs +1 -0
  988. package/es/schema-component/antd/password/utils.mjs +104 -0
  989. package/es/schema-component/antd/percent/Percent.mjs +34 -0
  990. package/es/schema-component/antd/percent/__tests__/percent.test.mjs +16 -0
  991. package/es/schema-component/antd/percent/demos/percent.mjs +40 -0
  992. package/es/schema-component/antd/percent/index.mjs +1 -0
  993. package/es/schema-component/antd/popover/Popover.mjs +39 -0
  994. package/es/schema-component/antd/popover/index.mjs +1 -0
  995. package/es/schema-component/antd/preview/Preview.mjs +273 -0
  996. package/es/schema-component/antd/preview/__tests__/preview.test.mjs +11 -0
  997. package/es/schema-component/antd/preview/demos/demo1.mjs +81 -0
  998. package/es/schema-component/antd/preview/index.mjs +1 -0
  999. package/es/schema-component/antd/quick-edit/QuickEdit.mjs +115 -0
  1000. package/es/schema-component/antd/quick-edit/index.mjs +1 -0
  1001. package/es/schema-component/antd/radio/Radio.mjs +40 -0
  1002. package/es/schema-component/antd/radio/__tests__/radio.test.mjs +43 -0
  1003. package/es/schema-component/antd/radio/demos/demo1.mjs +40 -0
  1004. package/es/schema-component/antd/radio/demos/demo2.mjs +52 -0
  1005. package/es/schema-component/antd/radio/demos/demo3.mjs +54 -0
  1006. package/es/schema-component/antd/radio/index.mjs +1 -0
  1007. package/es/schema-component/antd/record-picker/InputRecordPicker.mjs +252 -0
  1008. package/es/schema-component/antd/record-picker/ReadPrettyRecordPicker.mjs +120 -0
  1009. package/es/schema-component/antd/record-picker/RecordPicker.mjs +5 -0
  1010. package/es/schema-component/antd/record-picker/__tests__/record-picker.test.mjs +27 -0
  1011. package/es/schema-component/antd/record-picker/demos/demo1.mjs +175 -0
  1012. package/es/schema-component/antd/record-picker/demos/mockData.mjs +211 -0
  1013. package/es/schema-component/antd/record-picker/index.mjs +10 -0
  1014. package/es/schema-component/antd/record-picker/useFieldNames.mjs +12 -0
  1015. package/es/schema-component/antd/record-picker/util.mjs +37 -0
  1016. package/es/schema-component/antd/remote-select/ReadPretty.mjs +44 -0
  1017. package/es/schema-component/antd/remote-select/RemoteSelect.mjs +224 -0
  1018. package/es/schema-component/antd/remote-select/__tests__/remote-select.test.mjs +16 -0
  1019. package/es/schema-component/antd/remote-select/demos/demo1.mjs +55 -0
  1020. package/es/schema-component/antd/remote-select/index.mjs +1 -0
  1021. package/es/schema-component/antd/remote-select/shared.mjs +3 -0
  1022. package/es/schema-component/antd/rich-text/RichText.mjs +59 -0
  1023. package/es/schema-component/antd/rich-text/__tests__/rich-text.test.mjs +13 -0
  1024. package/es/schema-component/antd/rich-text/demos/demo1.mjs +41 -0
  1025. package/es/schema-component/antd/rich-text/index.mjs +1 -0
  1026. package/es/schema-component/antd/rich-text/style.mjs +813 -0
  1027. package/es/schema-component/antd/rich-text/style.mjs.LICENSE.txt +6 -0
  1028. package/es/schema-component/antd/scroll-area/ScrollArea.mjs +43 -0
  1029. package/es/schema-component/antd/scroll-area/index.mjs +1 -0
  1030. package/es/schema-component/antd/select/FormulaSelect.mjs +196 -0
  1031. package/es/schema-component/antd/select/ReadPretty.mjs +33 -0
  1032. package/es/schema-component/antd/select/Select.mjs +155 -0
  1033. package/es/schema-component/antd/select/__tests__/select.test.mjs +41 -0
  1034. package/es/schema-component/antd/select/__tests__/utils.test.mjs +129 -0
  1035. package/es/schema-component/antd/select/demos/demo1.mjs +72 -0
  1036. package/es/schema-component/antd/select/demos/demo2.mjs +76 -0
  1037. package/es/schema-component/antd/select/demos/demo3.mjs +84 -0
  1038. package/es/schema-component/antd/select/index.mjs +2 -0
  1039. package/es/schema-component/antd/select/utils.mjs +38 -0
  1040. package/es/schema-component/antd/space/index.mjs +19 -0
  1041. package/es/schema-component/antd/table/Table.Array.Designer.mjs +12 -0
  1042. package/es/schema-component/antd/table/Table.Array.mjs +293 -0
  1043. package/es/schema-component/antd/table/Table.Column.ActionBar.mjs +42 -0
  1044. package/es/schema-component/antd/table/Table.Column.Decorator.mjs +49 -0
  1045. package/es/schema-component/antd/table/Table.Column.Designer.mjs +144 -0
  1046. package/es/schema-component/antd/table/Table.Column.mjs +10 -0
  1047. package/es/schema-component/antd/table/Table.Designer.mjs +17 -0
  1048. package/es/schema-component/antd/table/Table.RowActionDesigner.mjs +33 -0
  1049. package/es/schema-component/antd/table/Table.RowSelection.mjs +29 -0
  1050. package/es/schema-component/antd/table/Table.Void.Designer.mjs +241 -0
  1051. package/es/schema-component/antd/table/Table.Void.mjs +119 -0
  1052. package/es/schema-component/antd/table/__tests__/table.test.mjs +21 -0
  1053. package/es/schema-component/antd/table/demos/demo1.mjs +63 -0
  1054. package/es/schema-component/antd/table/demos/demo2.mjs +63 -0
  1055. package/es/schema-component/antd/table/demos/demo3.mjs +63 -0
  1056. package/es/schema-component/antd/table/demos/demo4.mjs +217 -0
  1057. package/es/schema-component/antd/table/index.mjs +24 -0
  1058. package/es/schema-component/antd/table-v2/Table.ActionColumnDesigner.mjs +33 -0
  1059. package/es/schema-component/antd/table-v2/Table.Column.ActionBar.mjs +49 -0
  1060. package/es/schema-component/antd/table-v2/Table.Column.Decorator.mjs +60 -0
  1061. package/es/schema-component/antd/table-v2/Table.Column.Designer.mjs +445 -0
  1062. package/es/schema-component/antd/table-v2/Table.Column.mjs +11 -0
  1063. package/es/schema-component/antd/table-v2/Table.Designer.mjs +17 -0
  1064. package/es/schema-component/antd/table-v2/Table.Index.mjs +10 -0
  1065. package/es/schema-component/antd/table-v2/Table.mjs +445 -0
  1066. package/es/schema-component/antd/table-v2/Table.styles.mjs +135 -0
  1067. package/es/schema-component/antd/table-v2/TableBlockDesigner.mjs +328 -0
  1068. package/es/schema-component/antd/table-v2/TableField.mjs +51 -0
  1069. package/es/schema-component/antd/table-v2/TableSelector.mjs +3 -0
  1070. package/es/schema-component/antd/table-v2/TableSelectorDesigner.mjs +272 -0
  1071. package/es/schema-component/antd/table-v2/__tests__/table-v2.test.mjs +13 -0
  1072. package/es/schema-component/antd/table-v2/components/ColumnFieldProvider.mjs +39 -0
  1073. package/es/schema-component/antd/table-v2/demos/collections.mjs +1560 -0
  1074. package/es/schema-component/antd/table-v2/demos/demo1.mjs +220 -0
  1075. package/es/schema-component/antd/table-v2/demos/demo2.mjs +117 -0
  1076. package/es/schema-component/antd/table-v2/index.mjs +21 -0
  1077. package/es/schema-component/antd/table-v2/utils.mjs +13 -0
  1078. package/es/schema-component/antd/tabs/Tabs.Designer.mjs +132 -0
  1079. package/es/schema-component/antd/tabs/Tabs.mjs +98 -0
  1080. package/es/schema-component/antd/tabs/__tests__/tabs.test.mjs +14 -0
  1081. package/es/schema-component/antd/tabs/context.mjs +12 -0
  1082. package/es/schema-component/antd/tabs/demos/demo1.mjs +67 -0
  1083. package/es/schema-component/antd/tabs/index.mjs +2 -0
  1084. package/es/schema-component/antd/time-picker/ReadPretty.mjs +21 -0
  1085. package/es/schema-component/antd/time-picker/TimePicker.mjs +22 -0
  1086. package/es/schema-component/antd/time-picker/__tests__/time-picker.test.mjs +45 -0
  1087. package/es/schema-component/antd/time-picker/demos/demo1.mjs +40 -0
  1088. package/es/schema-component/antd/time-picker/demos/demo2.mjs +40 -0
  1089. package/es/schema-component/antd/time-picker/index.mjs +1 -0
  1090. package/es/schema-component/antd/tree/Tree.mjs +82 -0
  1091. package/es/schema-component/antd/tree/index.mjs +3 -0
  1092. package/es/schema-component/antd/tree-select/ReadPretty.mjs +62 -0
  1093. package/es/schema-component/antd/tree-select/TreeSelect.mjs +14 -0
  1094. package/es/schema-component/antd/tree-select/__tests__/tree-select.test.mjs +14 -0
  1095. package/es/schema-component/antd/tree-select/demos/demo1.mjs +84 -0
  1096. package/es/schema-component/antd/tree-select/index.mjs +1 -0
  1097. package/es/schema-component/antd/unixTimestamp/UnixTimestamp.mjs +42 -0
  1098. package/es/schema-component/antd/unixTimestamp/index.mjs +1 -0
  1099. package/es/schema-component/antd/upload/ReadPretty.mjs +199 -0
  1100. package/es/schema-component/antd/upload/Upload.mjs +330 -0
  1101. package/es/schema-component/antd/upload/__tests__/upload.test.mjs +13 -0
  1102. package/es/schema-component/antd/upload/demos/apiClient.mjs +43 -0
  1103. package/es/schema-component/antd/upload/demos/demo1.mjs +48 -0
  1104. package/es/schema-component/antd/upload/demos/demo2.mjs +115 -0
  1105. package/es/schema-component/antd/upload/index.mjs +1 -0
  1106. package/es/schema-component/antd/upload/placeholder.mjs +63 -0
  1107. package/es/schema-component/antd/upload/shared.mjs +185 -0
  1108. package/es/schema-component/antd/upload/style.mjs +75 -0
  1109. package/es/schema-component/antd/upload/type.d.mjs +1 -0
  1110. package/es/schema-component/antd/variable/CodeMirror.mjs +98 -0
  1111. package/es/schema-component/antd/variable/Input.mjs +310 -0
  1112. package/es/schema-component/antd/variable/JSONInput.mjs +37 -0
  1113. package/es/schema-component/antd/variable/RawTextArea.mjs +99 -0
  1114. package/es/schema-component/antd/variable/TextArea.mjs +387 -0
  1115. package/es/schema-component/antd/variable/Variable.mjs +30 -0
  1116. package/es/schema-component/antd/variable/VariableSelect.mjs +66 -0
  1117. package/es/schema-component/antd/variable/VariableSelect.style.mjs +30 -0
  1118. package/es/schema-component/antd/variable/XButton.mjs +21 -0
  1119. package/es/schema-component/antd/variable/__tests__/variable.test.mjs +45 -0
  1120. package/es/schema-component/antd/variable/demos/demo1.mjs +44 -0
  1121. package/es/schema-component/antd/variable/demos/demo2.mjs +44 -0
  1122. package/es/schema-component/antd/variable/demos/demo3.mjs +44 -0
  1123. package/es/schema-component/antd/variable/index.mjs +1 -0
  1124. package/es/schema-component/antd/variable/style.mjs +175 -0
  1125. package/es/schema-component/common/dnd-context/index.mjs +100 -0
  1126. package/es/schema-component/common/index.mjs +2 -0
  1127. package/es/schema-component/common/infinite-scroll/infinite-scroll.mjs +123 -0
  1128. package/es/schema-component/common/infinite-scroll/style.mjs +28 -0
  1129. package/es/schema-component/common/sortable-item/SortableItem.mjs +131 -0
  1130. package/es/schema-component/common/sortable-item/index.mjs +1 -0
  1131. package/es/schema-component/common/utils/logic.mjs +386 -0
  1132. package/es/schema-component/common/utils/uitls.mjs +111 -0
  1133. package/es/schema-component/context.mjs +4 -0
  1134. package/es/schema-component/core/DesignableSwitch.mjs +37 -0
  1135. package/es/schema-component/core/FormProvider.mjs +53 -0
  1136. package/es/schema-component/core/RemoteSchemaComponent.mjs +44 -0
  1137. package/es/schema-component/core/SchemaComponent.mjs +60 -0
  1138. package/es/schema-component/core/SchemaComponentOptions.mjs +44 -0
  1139. package/es/schema-component/core/SchemaComponentPlugin.d.ts +1 -1
  1140. package/es/schema-component/core/SchemaComponentPlugin.mjs +13 -0
  1141. package/es/schema-component/core/SchemaComponentProvider.mjs +84 -0
  1142. package/es/schema-component/core/index.mjs +7 -0
  1143. package/es/schema-component/demos/demo1.mjs +89 -0
  1144. package/es/schema-component/demos/demo2.mjs +23 -0
  1145. package/es/schema-component/demos/demo3.mjs +24 -0
  1146. package/es/schema-component/demos/demo4.mjs +24 -0
  1147. package/es/schema-component/hooks/__tests__/designable.test.mjs +548 -0
  1148. package/es/schema-component/hooks/__tests__/splitWrapSchema.test.mjs +89 -0
  1149. package/es/schema-component/hooks/index.mjs +12 -0
  1150. package/es/schema-component/hooks/useAttach.mjs +16 -0
  1151. package/es/schema-component/hooks/useCompile.mjs +40 -0
  1152. package/es/schema-component/hooks/useComponent.mjs +10 -0
  1153. package/es/schema-component/hooks/useDesignable.mjs +675 -0
  1154. package/es/schema-component/hooks/useDesigner.mjs +19 -0
  1155. package/es/schema-component/hooks/useFieldComponentOptions.mjs +87 -0
  1156. package/es/schema-component/hooks/useFieldModeOptions.mjs +283 -0
  1157. package/es/schema-component/hooks/useFieldProps.mjs +18 -0
  1158. package/es/schema-component/hooks/useFieldTitle.mjs +22 -0
  1159. package/es/schema-component/hooks/useProps.mjs +13 -0
  1160. package/es/schema-component/hooks/useSchemaComponentContext.mjs +6 -0
  1161. package/es/schema-component/hooks/useTableSize.mjs +31 -0
  1162. package/es/schema-component/index.mjs +6 -0
  1163. package/es/schema-component/types.mjs +1 -0
  1164. package/es/schema-initializer/SchemaInitializerPlugin.d.ts +1 -1
  1165. package/es/schema-initializer/SchemaInitializerPlugin.mjs +126 -0
  1166. package/es/schema-initializer/buttons/CustomFormItemInitializers.mjs +46 -0
  1167. package/es/schema-initializer/buttons/FormItemInitializers.mjs +152 -0
  1168. package/es/schema-initializer/buttons/RecordBlockInitializers.mjs +375 -0
  1169. package/es/schema-initializer/buttons/SubTableActionInitializers.mjs +35 -0
  1170. package/es/schema-initializer/buttons/TabPaneInitializers.mjs +162 -0
  1171. package/es/schema-initializer/buttons/index.mjs +6 -0
  1172. package/es/schema-initializer/components/CreateRecordAction.mjs +340 -0
  1173. package/es/schema-initializer/components/DeletedField.mjs +13 -0
  1174. package/es/schema-initializer/components/assigned-field/AssignedField.mjs +119 -0
  1175. package/es/schema-initializer/components/assigned-field/index.mjs +1 -0
  1176. package/es/schema-initializer/components/index.mjs +2 -0
  1177. package/es/schema-initializer/demos/basic.mjs +62 -0
  1178. package/es/schema-initializer/demos/build-type.mjs +83 -0
  1179. package/es/schema-initializer/demos/custom-button.mjs +94 -0
  1180. package/es/schema-initializer/demos/custom-items-component.mjs +100 -0
  1181. package/es/schema-initializer/demos/dynamic-visible-children.mjs +81 -0
  1182. package/es/schema-initializer/demos/insert-schema-action.mjs +92 -0
  1183. package/es/schema-initializer/demos/insert-schema-basic.mjs +112 -0
  1184. package/es/schema-initializer/demos/insert-schema-form-item.mjs +136 -0
  1185. package/es/schema-initializer/demos/nested-items.mjs +148 -0
  1186. package/es/schema-initializer/hooks/useGetAriaLabelOfSchemaInitializer.mjs +21 -0
  1187. package/es/schema-initializer/index.mjs +20 -0
  1188. package/es/schema-initializer/items/ActionInitializer.mjs +14 -0
  1189. package/es/schema-initializer/items/BlockInitializer.mjs +27 -0
  1190. package/es/schema-initializer/items/CreateFilterActionInitializer.mjs +21 -0
  1191. package/es/schema-initializer/items/CreateResetActionInitializer.mjs +16 -0
  1192. package/es/schema-initializer/items/CustomFilterFormItemInitializer.mjs +461 -0
  1193. package/es/schema-initializer/items/CustomizeActionInitializer.mjs +12 -0
  1194. package/es/schema-initializer/items/DataBlockInitializer.mjs +310 -0
  1195. package/es/schema-initializer/items/DeleteEventActionInitializer.mjs +24 -0
  1196. package/es/schema-initializer/items/FilterBlockInitializer.mjs +3 -0
  1197. package/es/schema-initializer/items/G2PlotInitializer.mjs +16 -0
  1198. package/es/schema-initializer/items/InitializerWithSwitch.mjs +25 -0
  1199. package/es/schema-initializer/items/RecordAssociationBlockInitializer.mjs +55 -0
  1200. package/es/schema-initializer/items/RecordAssociationDetailsBlockInitializer.mjs +55 -0
  1201. package/es/schema-initializer/items/RecordAssociationFormBlockInitializer.mjs +81 -0
  1202. package/es/schema-initializer/items/RecordAssociationGridCardBlockInitializer.mjs +55 -0
  1203. package/es/schema-initializer/items/RecordAssociationListBlockInitializer.mjs +55 -0
  1204. package/es/schema-initializer/items/RecordReadPrettyAssociationFormBlockInitializer.mjs +80 -0
  1205. package/es/schema-initializer/items/SelectActionInitializer.mjs +63 -0
  1206. package/es/schema-initializer/items/SubmitActionInitializer.mjs +21 -0
  1207. package/es/schema-initializer/items/TableActionColumnInitializer.mjs +39 -0
  1208. package/es/schema-initializer/items/index.mjs +23 -0
  1209. package/es/schema-initializer/style.mjs +17 -0
  1210. package/es/schema-initializer/utils.mjs +1368 -0
  1211. package/es/schema-items/GeneralSchemaItems.mjs +150 -0
  1212. package/es/schema-items/GeneralSettings.mjs +207 -0
  1213. package/es/schema-items/OpenModeSchemaItems.mjs +186 -0
  1214. package/es/schema-items/index.mjs +2 -0
  1215. package/es/schema-settings/DataTemplates/FormDataTemplates.mjs +274 -0
  1216. package/es/schema-settings/DataTemplates/TreeLabel.mjs +30 -0
  1217. package/es/schema-settings/DataTemplates/components/AsDefaultTemplate.mjs +46 -0
  1218. package/es/schema-settings/DataTemplates/components/DataTemplateTitle.mjs +256 -0
  1219. package/es/schema-settings/DataTemplates/components/DataTemplateTitle.style.mjs +7 -0
  1220. package/es/schema-settings/DataTemplates/components/Designer.mjs +159 -0
  1221. package/es/schema-settings/DataTemplates/hooks/useCollectionState.mjs +270 -0
  1222. package/es/schema-settings/DataTemplates/index.mjs +1 -0
  1223. package/es/schema-settings/DataTemplates/utils.mjs +233 -0
  1224. package/es/schema-settings/DateFormat/ExpiresRadio.mjs +122 -0
  1225. package/es/schema-settings/EditCustomDefaultValue.mjs +108 -0
  1226. package/es/schema-settings/EditFormulaTitleField.mjs +97 -0
  1227. package/es/schema-settings/EnableChildCollections/DynamicComponent.mjs +64 -0
  1228. package/es/schema-settings/EnableChildCollections/index.mjs +101 -0
  1229. package/es/schema-settings/GeneralSchemaDesigner.mjs +264 -0
  1230. package/es/schema-settings/LinkageRules/DynamicComponent.mjs +56 -0
  1231. package/es/schema-settings/LinkageRules/LinkageRuleAction.mjs +223 -0
  1232. package/es/schema-settings/LinkageRules/LinkageRuleActionGroup.mjs +83 -0
  1233. package/es/schema-settings/LinkageRules/ValueDynamicComponent.mjs +156 -0
  1234. package/es/schema-settings/LinkageRules/Variables.mjs +98 -0
  1235. package/es/schema-settings/LinkageRules/action-hooks.mjs +103 -0
  1236. package/es/schema-settings/LinkageRules/components/EnableLinkage.mjs +38 -0
  1237. package/es/schema-settings/LinkageRules/components/LinkageHeader.mjs +254 -0
  1238. package/es/schema-settings/LinkageRules/components/LinkageHeader.style.mjs +7 -0
  1239. package/es/schema-settings/LinkageRules/context.mjs +8 -0
  1240. package/es/schema-settings/LinkageRules/index.mjs +194 -0
  1241. package/es/schema-settings/LinkageRules/type.mjs +15 -0
  1242. package/es/schema-settings/LinkageRules/useValues.mjs +68 -0
  1243. package/es/schema-settings/SchemaSettingCollection.mjs +50 -0
  1244. package/es/schema-settings/SchemaSettingComponent.mjs +38 -0
  1245. package/es/schema-settings/SchemaSettings.mjs +1334 -0
  1246. package/es/schema-settings/SchemaSettingsDataScope.mjs +100 -0
  1247. package/es/schema-settings/SchemaSettingsDateFormat.mjs +199 -0
  1248. package/es/schema-settings/SchemaSettingsDefaultValue.mjs +204 -0
  1249. package/es/schema-settings/SchemaSettingsNumberFormat.mjs +178 -0
  1250. package/es/schema-settings/SchemaSettingsPlugin.mjs +108 -0
  1251. package/es/schema-settings/SchemaSettingsSortingRule.mjs +123 -0
  1252. package/es/schema-settings/VariableInput/VariableInput.mjs +164 -0
  1253. package/es/schema-settings/VariableInput/hooks/index.mjs +3 -0
  1254. package/es/schema-settings/VariableInput/hooks/useBaseVariable.mjs +160 -0
  1255. package/es/schema-settings/VariableInput/hooks/useBlockCollection.mjs +10 -0
  1256. package/es/schema-settings/VariableInput/hooks/useContextAssociationFields.mjs +97 -0
  1257. package/es/schema-settings/VariableInput/hooks/useDateVariable.mjs +163 -0
  1258. package/es/schema-settings/VariableInput/hooks/useFilterVariable.mjs +52 -0
  1259. package/es/schema-settings/VariableInput/hooks/useFormVariable.mjs +42 -0
  1260. package/es/schema-settings/VariableInput/hooks/useIterationVariable.mjs +45 -0
  1261. package/es/schema-settings/VariableInput/hooks/useParentRecordVariable.mjs +43 -0
  1262. package/es/schema-settings/VariableInput/hooks/usePopupVariable.mjs +24 -0
  1263. package/es/schema-settings/VariableInput/hooks/useRecordVariable.mjs +38 -0
  1264. package/es/schema-settings/VariableInput/hooks/useRoleVariable.mjs +41 -0
  1265. package/es/schema-settings/VariableInput/hooks/useUserVariable.mjs +41 -0
  1266. package/es/schema-settings/VariableInput/hooks/useVariableOptions.mjs +102 -0
  1267. package/es/schema-settings/VariableInput/index.mjs +2 -0
  1268. package/es/schema-settings/VariableInput/type.mjs +0 -0
  1269. package/es/schema-settings/VariableInput/utils/formatVariableScop.mjs +11 -0
  1270. package/es/schema-settings/demos/basic.mjs +60 -0
  1271. package/es/schema-settings/demos/built-type.mjs +142 -0
  1272. package/es/schema-settings/demos/custom-component.mjs +42 -0
  1273. package/es/schema-settings/demos/demo3.mjs +100 -0
  1274. package/es/schema-settings/demos/schema-basic.mjs +64 -0
  1275. package/es/schema-settings/filter-form/FormFilterScope.mjs +109 -0
  1276. package/es/schema-settings/filter-form/context.mjs +6 -0
  1277. package/es/schema-settings/hooks/useFilterFormCustomProps.mjs +16 -0
  1278. package/es/schema-settings/hooks/useGetAriaLabelOfDesigner.mjs +24 -0
  1279. package/es/schema-settings/hooks/useIsAllowToSetDefaultValue.mjs +67 -0
  1280. package/es/schema-settings/hooks/useIsShowMultipleSwitch.mjs +16 -0
  1281. package/es/schema-settings/hooks/useParseDataScopeFilter.mjs +54 -0
  1282. package/es/schema-settings/index.mjs +18 -0
  1283. package/es/schema-settings/isPatternDisabled.mjs +5 -0
  1284. package/es/schema-settings/styles.mjs +84 -0
  1285. package/es/schema-settings/types.mjs +0 -0
  1286. package/es/schema-templates/BlockTemplate.mjs +41 -0
  1287. package/es/schema-templates/BlockTemplateDetails.mjs +100 -0
  1288. package/es/schema-templates/BlockTemplatePage.mjs +32 -0
  1289. package/es/schema-templates/SchemaTemplateManagerProvider.mjs +74 -0
  1290. package/es/schema-templates/collections/uiSchemaTemplates.mjs +19 -0
  1291. package/es/schema-templates/index.mjs +4 -0
  1292. package/es/schema-templates/schemas/CollectionTitle.mjs +37 -0
  1293. package/es/schema-templates/schemas/uiSchemaTemplates.mjs +231 -0
  1294. package/es/schema-templates/useSchemaTemplateManager.mjs +88 -0
  1295. package/es/style/css-variable/CSSVariableProvider.mjs +74 -0
  1296. package/es/style/css-variable/index.mjs +3 -0
  1297. package/es/style/index.mjs +11 -0
  1298. package/es/style/theme/AntdAppProvider.mjs +35 -0
  1299. package/es/style/theme/defaultTheme.mjs +19 -0
  1300. package/es/style/theme/index.mjs +63 -0
  1301. package/es/style/theme/type.mjs +0 -0
  1302. package/es/style/useToken.mjs +6 -0
  1303. package/es/testUtils/index.mjs +1 -0
  1304. package/es/testUtils/mockAPIClient.mjs +32 -0
  1305. package/es/user/ChangePassword.mjs +157 -0
  1306. package/es/user/CurrentUser.mjs +222 -0
  1307. package/es/user/CurrentUserProvider.mjs +59 -0
  1308. package/es/user/CurrentUserSettingsMenuProvider.mjs +69 -0
  1309. package/es/user/EditProfile.mjs +149 -0
  1310. package/es/user/LanguageSettings.mjs +46 -0
  1311. package/es/user/SwitchRole.mjs +41 -0
  1312. package/es/user/VerificationCode.mjs +83 -0
  1313. package/es/user/__tests__/current-user-settings-menu-provider.test.mjs +36 -0
  1314. package/es/user/index.mjs +3 -0
  1315. package/es/variables/VariablesProvider.mjs +214 -0
  1316. package/es/variables/__tests__/useVariables.test.mjs +406 -0
  1317. package/es/variables/__tests__/utils/filterEmptyValues.test.mjs +46 -0
  1318. package/es/variables/__tests__/utils/getPath.test.mjs +4 -0
  1319. package/es/variables/__tests__/utils/getVariableName.test.mjs +4 -0
  1320. package/es/variables/__tests__/utils/isVariable.test.mjs +22 -0
  1321. package/es/variables/__tests__/utils/transformVariableValue.test.mjs +136 -0
  1322. package/es/variables/__tests__/utils/uniq.test.mjs +77 -0
  1323. package/es/variables/constants.mjs +2 -0
  1324. package/es/variables/hooks/useBuiltinVariables.mjs +51 -0
  1325. package/es/variables/hooks/useContextVariable.mjs +27 -0
  1326. package/es/variables/hooks/useLocalVariables.mjs +68 -0
  1327. package/es/variables/hooks/useVariables.mjs +5 -0
  1328. package/es/variables/index.mjs +15 -0
  1329. package/es/variables/types.mjs +0 -0
  1330. package/es/variables/utils/filterEmptyValues.mjs +5 -0
  1331. package/es/variables/utils/getAction.mjs +8 -0
  1332. package/es/variables/utils/getPath.mjs +7 -0
  1333. package/es/variables/utils/getVariableName.mjs +10 -0
  1334. package/es/variables/utils/hasRequested.mjs +13 -0
  1335. package/es/variables/utils/isVariable.mjs +8 -0
  1336. package/es/variables/utils/transformVariableValue.mjs +30 -0
  1337. package/es/variables/utils/uniq.mjs +10 -0
  1338. package/lib/index.mjs +106 -104
  1339. package/package.json +4 -4
  1340. package/LICENSE +0 -201
@@ -0,0 +1,278 @@
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_schema__ from "@tachybase/schema";
4
+ import * as __WEBPACK_EXTERNAL_MODULE_antd__ from "antd";
5
+ import * as __WEBPACK_EXTERNAL_MODULE_antd_style__ from "antd-style";
6
+ import * as __WEBPACK_EXTERNAL_MODULE_lodash__ from "lodash";
7
+ import * as __WEBPACK_EXTERNAL_MODULE_react_i18next__ from "react-i18next";
8
+ import * as __WEBPACK_EXTERNAL_MODULE__index_mjs__ from "../../index.mjs";
9
+ import * as __WEBPACK_EXTERNAL_MODULE__block_provider_hooks_index_mjs__ from "../../../block-provider/hooks/index.mjs";
10
+ import * as __WEBPACK_EXTERNAL_MODULE__block_provider_hooks_useFormActiveFields_mjs__ from "../../../block-provider/hooks/useFormActiveFields.mjs";
11
+ import * as __WEBPACK_EXTERNAL_MODULE__block_provider_TableSelectorProvider_mjs__ from "../../../block-provider/TableSelectorProvider.mjs";
12
+ import * as __WEBPACK_EXTERNAL_MODULE__collection_manager_index_mjs__ from "../../../collection-manager/index.mjs";
13
+ import * as __WEBPACK_EXTERNAL_MODULE__data_source_index_mjs__ from "../../../data-source/index.mjs";
14
+ import * as __WEBPACK_EXTERNAL_MODULE__data_source_collection_record_isNewRecord_mjs__ from "../../../data-source/collection-record/isNewRecord.mjs";
15
+ import * as __WEBPACK_EXTERNAL_MODULE__flag_provider_index_mjs__ from "../../../flag-provider/index.mjs";
16
+ import * as __WEBPACK_EXTERNAL_MODULE__hooks_index_mjs__ from "../../hooks/index.mjs";
17
+ import * as __WEBPACK_EXTERNAL_MODULE__action_index_mjs__ from "../action/index.mjs";
18
+ import * as __WEBPACK_EXTERNAL_MODULE__table_v2_Table_mjs__ from "../table-v2/Table.mjs";
19
+ import * as __WEBPACK_EXTERNAL_MODULE__hooks_mjs__ from "./hooks.mjs";
20
+ import * as __WEBPACK_EXTERNAL_MODULE__InternalPicker_mjs__ from "./InternalPicker.mjs";
21
+ import * as __WEBPACK_EXTERNAL_MODULE__SubTabs_InternalCollapse_mjs__ from "./SubTabs/InternalCollapse.mjs";
22
+ import * as __WEBPACK_EXTERNAL_MODULE__util_mjs__ from "./util.mjs";
23
+ function _tagged_template_literal(strings, raw) {
24
+ if (!raw) raw = strings.slice(0);
25
+ return Object.freeze(Object.defineProperties(strings, {
26
+ raw: {
27
+ value: Object.freeze(raw)
28
+ }
29
+ }));
30
+ }
31
+ function _templateObject() {
32
+ const data = _tagged_template_literal([
33
+ "\n display: block;\n border-radius: 0px;\n border-right: 1px solid rgba(0, 0, 0, 0.06);\n "
34
+ ]);
35
+ _templateObject = function() {
36
+ return data;
37
+ };
38
+ return data;
39
+ }
40
+ function _templateObject1() {
41
+ const data = _tagged_template_literal([
42
+ "\n display: block;\n border-radius: 0px;\n "
43
+ ]);
44
+ _templateObject1 = function() {
45
+ return data;
46
+ };
47
+ return data;
48
+ }
49
+ function _templateObject2() {
50
+ const data = _tagged_template_literal([
51
+ "\n .ant-formily-item.ant-formily-item-feedback-layout-loose {\n margin-bottom: 0px !important;\n }\n .ant-formily-editable {\n vertical-align: sub;\n }\n .ant-table-footer {\n display: flex;\n }\n "
52
+ ]);
53
+ _templateObject2 = function() {
54
+ return data;
55
+ };
56
+ return data;
57
+ }
58
+ function _templateObject3() {
59
+ const data = _tagged_template_literal([
60
+ "\n .ant-table-footer {\n padding: 0 !important;\n }\n .ant-formily-item-error-help {\n display: none;\n }\n .ant-description-textarea {\n line-height: 34px;\n }\n .ant-table-cell .ant-formily-item-error-help {\n display: block;\n position: absolute;\n font-size: 12px;\n top: 100%;\n background: #fff;\n width: 100%;\n margin-top: -15px;\n padding: 3px;\n z-index: 1;\n border-radius: 3px;\n box-shadow: 0 0 10px #eee;\n animation: none;\n transform: translateY(0);\n opacity: 1;\n }\n "
61
+ ]);
62
+ _templateObject3 = function() {
63
+ return data;
64
+ };
65
+ return data;
66
+ }
67
+ function _templateObject4() {
68
+ const data = _tagged_template_literal([
69
+ "\n position: relative;\n .ant-input {\n width: 100%;\n }\n "
70
+ ]);
71
+ _templateObject4 = function() {
72
+ return data;
73
+ };
74
+ return data;
75
+ }
76
+ const useStyles = (0, __WEBPACK_EXTERNAL_MODULE_antd_style__.createStyles)((param)=>{
77
+ let { css } = param;
78
+ return {
79
+ addNew: css(_templateObject()),
80
+ select: css(_templateObject1()),
81
+ table: css(_templateObject2()),
82
+ container: css(_templateObject3()),
83
+ input: css(_templateObject4())
84
+ };
85
+ });
86
+ const SubTable = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.observer)((props)=>{
87
+ const { openSize } = props;
88
+ const { styles } = useStyles();
89
+ const { field, options: collectionField } = (0, __WEBPACK_EXTERNAL_MODULE__hooks_mjs__.useAssociationFieldContext)();
90
+ const { t } = (0, __WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
91
+ const [visibleSelector, setVisibleSelector] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(false);
92
+ const [selectedRows, setSelectedRows] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)([]);
93
+ const fieldNames = (0, __WEBPACK_EXTERNAL_MODULE__hooks_mjs__.useFieldNames)(props);
94
+ const fieldSchema = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
95
+ const compile = (0, __WEBPACK_EXTERNAL_MODULE__hooks_index_mjs__.useCompile)();
96
+ const labelUiSchema = (0, __WEBPACK_EXTERNAL_MODULE__util_mjs__.useLabelUiSchema)(collectionField, (null == fieldNames ? void 0 : fieldNames.label) || 'label');
97
+ const recordV2 = (0, __WEBPACK_EXTERNAL_MODULE__data_source_index_mjs__.useCollectionRecord)();
98
+ const [fieldValue, setFieldValue] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)([]);
99
+ const move = (fromIndex, toIndex)=>{
100
+ if (void 0 === toIndex) return;
101
+ if (!(0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.isArr)(field.value)) return;
102
+ if (fromIndex === toIndex) return;
103
+ return (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.action)(()=>{
104
+ const fromItem = field.value[fromIndex];
105
+ field.value.splice(fromIndex, 1);
106
+ field.value.splice(toIndex, 0, fromItem);
107
+ (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.exchangeArrayState)(field, {
108
+ fromIndex,
109
+ toIndex
110
+ });
111
+ return field.onInput(field.value);
112
+ });
113
+ };
114
+ field.move = move;
115
+ const options = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>{
116
+ if (field.value && Object.keys(field.value).length > 0) {
117
+ const opts = (Array.isArray(field.value) ? field.value : field.value ? [
118
+ field.value
119
+ ] : []).filter(Boolean).map((option)=>{
120
+ const label = null == option ? void 0 : option[fieldNames.label];
121
+ return {
122
+ ...option,
123
+ [fieldNames.label]: (0, __WEBPACK_EXTERNAL_MODULE__util_mjs__.getLabelFormatValue)(compile(labelUiSchema), compile(label))
124
+ };
125
+ });
126
+ return opts;
127
+ }
128
+ return [];
129
+ }, [
130
+ field.value,
131
+ null == fieldNames ? void 0 : fieldNames.label
132
+ ]);
133
+ const pickerProps = {
134
+ size: 'small',
135
+ fieldNames: field.componentProps.fieldNames,
136
+ multiple: true,
137
+ association: {
138
+ target: null == collectionField ? void 0 : collectionField.target
139
+ },
140
+ options,
141
+ onChange: null == props ? void 0 : props.onChange,
142
+ selectedRows,
143
+ setSelectedRows,
144
+ collectionField
145
+ };
146
+ const usePickActionProps = ()=>{
147
+ const { setVisible } = (0, __WEBPACK_EXTERNAL_MODULE__index_mjs__.useActionContext)();
148
+ const { selectedRows, options, collectionField } = (0, __WEBPACK_EXTERNAL_MODULE_react__.useContext)(__WEBPACK_EXTERNAL_MODULE__index_mjs__.RecordPickerContext);
149
+ return {
150
+ onClick () {
151
+ const selectData = (0, __WEBPACK_EXTERNAL_MODULE_lodash__.unionBy)(selectedRows, options, (null == collectionField ? void 0 : collectionField.targetKey) || 'id');
152
+ const data = field.value || [];
153
+ field.value = (0, __WEBPACK_EXTERNAL_MODULE_lodash__.uniqBy)(data.concat(selectData), (null == collectionField ? void 0 : collectionField.targetKey) || 'id');
154
+ field.onInput(field.value);
155
+ setVisible(false);
156
+ }
157
+ };
158
+ };
159
+ const getFilter = ()=>{
160
+ const targetKey = (null == collectionField ? void 0 : collectionField.targetKey) || 'id';
161
+ const list = options.map((option)=>option[targetKey]).filter(Boolean);
162
+ const filter = list.length ? {
163
+ $and: [
164
+ {
165
+ ["".concat(targetKey, ".$ne")]: list
166
+ }
167
+ ]
168
+ } : {};
169
+ return filter;
170
+ };
171
+ const tabsProps = {
172
+ ...props,
173
+ fieldValue,
174
+ setFieldValue
175
+ };
176
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)("div", {
177
+ className: styles.container,
178
+ children: [
179
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__flag_provider_index_mjs__.FlagProvider, {
180
+ isInSubTable: true,
181
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__data_source_index_mjs__.CollectionRecordProvider, {
182
+ record: null,
183
+ parentRecord: recordV2,
184
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)(__WEBPACK_EXTERNAL_MODULE__block_provider_hooks_useFormActiveFields_mjs__.FormActiveFieldsProvider, {
185
+ name: "nester",
186
+ children: [
187
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__SubTabs_InternalCollapse_mjs__.InternalCollapse, {
188
+ ...tabsProps
189
+ }),
190
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__table_v2_Table_mjs__.Table, {
191
+ className: styles.table,
192
+ bordered: true,
193
+ size: 'small',
194
+ field: field,
195
+ showIndex: true,
196
+ dragSort: field.editable,
197
+ showDel: field.editable,
198
+ setFieldValue: setFieldValue,
199
+ pagination: !!field.componentProps.pagination,
200
+ rowSelection: {
201
+ type: 'none',
202
+ hideSelectAll: true
203
+ },
204
+ footer: ()=>{
205
+ var _field_componentProps, _field_componentProps1;
206
+ return field.editable && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.Fragment, {
207
+ children: [
208
+ (null === (_field_componentProps = field.componentProps) || void 0 === _field_componentProps ? void 0 : _field_componentProps.allowAddnew) !== false && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_antd__.Button, {
209
+ type: 'text',
210
+ block: true,
211
+ className: styles.addNew,
212
+ onClick: ()=>{
213
+ field.value = field.value || [];
214
+ field.value.push((0, __WEBPACK_EXTERNAL_MODULE__data_source_collection_record_isNewRecord_mjs__.markRecordAsNew)({}));
215
+ setFieldValue([
216
+ ...field.value
217
+ ]);
218
+ },
219
+ children: t('Add new')
220
+ }),
221
+ (null === (_field_componentProps1 = field.componentProps) || void 0 === _field_componentProps1 ? void 0 : _field_componentProps1.allowSelectExistingRecord) && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_antd__.Button, {
222
+ type: 'text',
223
+ block: true,
224
+ className: styles.select,
225
+ onClick: ()=>{
226
+ setVisibleSelector(true);
227
+ },
228
+ children: t('Select')
229
+ })
230
+ ]
231
+ });
232
+ },
233
+ isSubTable: true
234
+ })
235
+ ]
236
+ })
237
+ })
238
+ }),
239
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__action_index_mjs__.ActionContextProvider, {
240
+ value: {
241
+ openSize,
242
+ openMode: 'drawer',
243
+ visible: visibleSelector,
244
+ setVisible: setVisibleSelector
245
+ },
246
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__index_mjs__.RecordPickerProvider, {
247
+ ...pickerProps,
248
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__collection_manager_index_mjs__.CollectionProvider_deprecated, {
249
+ name: null == collectionField ? void 0 : collectionField.target,
250
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__index_mjs__.FormProvider, {
251
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__block_provider_TableSelectorProvider_mjs__.TableSelectorParamsProvider, {
252
+ params: {
253
+ filter: getFilter()
254
+ },
255
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__index_mjs__.SchemaComponentOptions, {
256
+ scope: {
257
+ usePickActionProps,
258
+ useTableSelectorProps: __WEBPACK_EXTERNAL_MODULE__InternalPicker_mjs__.useTableSelectorProps,
259
+ useCreateActionProps: __WEBPACK_EXTERNAL_MODULE__block_provider_hooks_index_mjs__.useCreateActionProps
260
+ },
261
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.RecursionField, {
262
+ onlyRenderProperties: true,
263
+ basePath: field.address,
264
+ schema: fieldSchema.parent,
265
+ filterProperties: (s)=>'AssociationField.Selector' === s['x-component']
266
+ })
267
+ })
268
+ })
269
+ })
270
+ })
271
+ })
272
+ })
273
+ ]
274
+ });
275
+ }, {
276
+ displayName: 'SubTable'
277
+ });
278
+ export { SubTable };
@@ -0,0 +1,321 @@
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_schema__ from "@tachybase/schema";
4
+ import * as __WEBPACK_EXTERNAL_MODULE__tachybase_utils_client__ from "@tachybase/utils/client";
5
+ import * as __WEBPACK_EXTERNAL_MODULE__ant_design_icons__ from "@ant-design/icons";
6
+ import * as __WEBPACK_EXTERNAL_MODULE_ahooks__ from "ahooks";
7
+ import * as __WEBPACK_EXTERNAL_MODULE_antd__ from "antd";
8
+ import * as __WEBPACK_EXTERNAL_MODULE_flat__ from "flat";
9
+ import * as __WEBPACK_EXTERNAL_MODULE_react_i18next__ from "react-i18next";
10
+ import * as __WEBPACK_EXTERNAL_MODULE_react_intersection_observer__ from "react-intersection-observer";
11
+ import * as __WEBPACK_EXTERNAL_MODULE__api_client_index_mjs__ from "../../../../api-client/index.mjs";
12
+ import * as __WEBPACK_EXTERNAL_MODULE__data_source_index_mjs__ from "../../../../data-source/index.mjs";
13
+ import * as __WEBPACK_EXTERNAL_MODULE__data_source_collection_record_isNewRecord_mjs__ from "../../../../data-source/collection-record/isNewRecord.mjs";
14
+ import * as __WEBPACK_EXTERNAL_MODULE__hooks_mjs__ from "../hooks.mjs";
15
+ import * as __WEBPACK_EXTERNAL_MODULE__hook_mjs__ from "./hook.mjs";
16
+ import * as __WEBPACK_EXTERNAL_MODULE__styles_mjs__ from "./styles.mjs";
17
+ const ObservableItem = (param)=>{
18
+ let { item, onChange, leftRef } = param;
19
+ var _item_childrenItems;
20
+ const { ref } = (0, __WEBPACK_EXTERNAL_MODULE_react_intersection_observer__.useInView)({
21
+ threshold: 0.1,
22
+ onChange: (inView)=>{
23
+ if (inView && leftRef.current) {
24
+ const currentId = '#parent-item-' + item.id;
25
+ leftRef.current.querySelector(currentId).scrollIntoView({
26
+ behavior: 'auto',
27
+ block: 'nearest',
28
+ inline: 'start'
29
+ });
30
+ }
31
+ }
32
+ });
33
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("div", {
34
+ id: 'item-' + item.id,
35
+ ref: ref,
36
+ children: null == item ? void 0 : null === (_item_childrenItems = item.childrenItems) || void 0 === _item_childrenItems ? void 0 : _item_childrenItems.sort((a, b)=>null != a.sort ? a.sort - b.sort : a.id - b.id).map((childrenitem, index)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_antd__.Button, {
37
+ onClick: ()=>{
38
+ onChange(childrenitem);
39
+ },
40
+ icon: childrenitem.checked ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__ant_design_icons__.CheckOutlined, {}) : null,
41
+ children: childrenitem.label
42
+ }, index))
43
+ }, item.id);
44
+ };
45
+ const InternalTabs = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.observer)((props)=>{
46
+ var _fieldSchema_parent_xcomponentprops, _quickAddSchema_xcomponentprops_service, _quickAddSchema_xcomponentprops, _Object_values;
47
+ const ref = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)();
48
+ const { styles } = (0, __WEBPACK_EXTERNAL_MODULE__styles_mjs__.useStyles)();
49
+ const { fieldValue, setFieldValue } = props;
50
+ const fieldSchema = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
51
+ const cm = (0, __WEBPACK_EXTERNAL_MODULE__data_source_index_mjs__.useCollectionManager)();
52
+ const api = (0, __WEBPACK_EXTERNAL_MODULE__api_client_index_mjs__.useAPIClient)();
53
+ const [filter, setFilter] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)('');
54
+ const isQuickAdd = fieldSchema['parent']['x-component-props']['isQuickAdd'];
55
+ const { value: quickAddField, fieldInterface } = (null === (_fieldSchema_parent_xcomponentprops = fieldSchema['parent']['x-component-props']) || void 0 === _fieldSchema_parent_xcomponentprops ? void 0 : _fieldSchema_parent_xcomponentprops['quickAddField']) || {};
56
+ const quickAddParentField = fieldSchema['parent']['x-component-props']['quickAddParentCollection'];
57
+ const [defOptions, setDefOptions] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)([]);
58
+ const { field } = (0, __WEBPACK_EXTERNAL_MODULE__hooks_mjs__.useAssociationFieldContext)();
59
+ const { t } = (0, __WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
60
+ const [changeForm, setChangeForm] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)();
61
+ const quickAddSchema = fieldSchema.reduceProperties((buf, schema)=>{
62
+ const found = schema.reduceProperties((buf, schema)=>{
63
+ if (schema.name === quickAddField) return schema;
64
+ return buf;
65
+ });
66
+ if (found) return found;
67
+ return buf;
68
+ }, new __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.Schema({}));
69
+ const tabparams = null === (_quickAddSchema_xcomponentprops = quickAddSchema['x-component-props']) || void 0 === _quickAddSchema_xcomponentprops ? void 0 : null === (_quickAddSchema_xcomponentprops_service = _quickAddSchema_xcomponentprops['service']) || void 0 === _quickAddSchema_xcomponentprops_service ? void 0 : _quickAddSchema_xcomponentprops_service['params'];
70
+ const [fieldServiceFilter] = (0, __WEBPACK_EXTERNAL_MODULE__hook_mjs__.useFieldServiceFilter)(null == tabparams ? void 0 : tabparams.filter);
71
+ const formFilter = (0, __WEBPACK_EXTERNAL_MODULE_flat__["default"])((null == tabparams ? void 0 : tabparams.filter) || {});
72
+ const formFieldFilter = null === (_Object_values = Object.values(formFilter)) || void 0 === _Object_values ? void 0 : _Object_values.map((item)=>{
73
+ const field = item;
74
+ const match = field.match(/^{{\$nForm\.(.*?)\./);
75
+ if (match) return match[1];
76
+ }).filter(Boolean);
77
+ (0, __WEBPACK_EXTERNAL_MODULE_ahooks__.useAsyncEffect)(async ()=>{
78
+ const itemParams = {};
79
+ const optionsItem = [];
80
+ if ((null == tabparams ? void 0 : tabparams.filter) && !fieldServiceFilter) return;
81
+ if ((quickAddField || 'none' !== quickAddField || !isQuickAdd) && fieldSchema.properties) {
82
+ const params = {
83
+ pageSize: 99999,
84
+ filter: JSON.stringify(fieldServiceFilter)
85
+ };
86
+ if (quickAddParentField && (null == quickAddParentField ? void 0 : quickAddParentField.value) !== 'none') {
87
+ var _parentItem_data;
88
+ params['appends'] = [
89
+ quickAddParentField.value
90
+ ];
91
+ const collection = cm.getCollection(quickAddParentField.collectionField);
92
+ const parentItem = await api.request({
93
+ url: collection.name + ':list',
94
+ params: {
95
+ pageSize: 99999
96
+ }
97
+ });
98
+ itemParams['parentTitleField'] = collection.titleField;
99
+ itemParams['parentOptions'] = null == parentItem ? void 0 : null === (_parentItem_data = parentItem.data) || void 0 === _parentItem_data ? void 0 : _parentItem_data.data;
100
+ }
101
+ if (quickAddSchema && 'm2o' === fieldInterface) {
102
+ var _childrenItem_data, _itemParams_parentOptions, _itemParams_childrenOptions, _itemParams_childrenOptions1;
103
+ itemParams['service'] = quickAddSchema['x-component-props'].service;
104
+ itemParams['collectionName'] = cm.getCollection(quickAddSchema['x-collection-field']).name;
105
+ const childrenItem = await api.request({
106
+ url: itemParams['collectionName'] + ':list',
107
+ params
108
+ });
109
+ itemParams['childrenTitleField'] = cm.getCollection(itemParams['collectionName']).titleField;
110
+ itemParams['childrenOptions'] = null == childrenItem ? void 0 : null === (_childrenItem_data = childrenItem.data) || void 0 === _childrenItem_data ? void 0 : _childrenItem_data.data;
111
+ if ((null === (_itemParams_parentOptions = itemParams['parentOptions']) || void 0 === _itemParams_parentOptions ? void 0 : _itemParams_parentOptions.length) && (null === (_itemParams_childrenOptions = itemParams['childrenOptions']) || void 0 === _itemParams_childrenOptions ? void 0 : _itemParams_childrenOptions.length) && (null == quickAddParentField ? void 0 : quickAddParentField.value) !== 'none') itemParams['parentOptions'].forEach((parentItem)=>{
112
+ const items = itemParams['childrenOptions'].map((item)=>{
113
+ var _item_quickAddParentField_value;
114
+ if ((null === (_item_quickAddParentField_value = item[null == quickAddParentField ? void 0 : quickAddParentField.value]) || void 0 === _item_quickAddParentField_value ? void 0 : _item_quickAddParentField_value.id) === parentItem.id) return {
115
+ ...item,
116
+ label: item[itemParams['childrenTitleField']],
117
+ keys: item.id,
118
+ value: item.id,
119
+ checked: false
120
+ };
121
+ }).filter(Boolean);
122
+ if (!items.length) return;
123
+ optionsItem.push({
124
+ ...parentItem,
125
+ value: null == parentItem ? void 0 : parentItem.id,
126
+ label: parentItem[itemParams['parentTitleField']],
127
+ key: parentItem.id,
128
+ childrenItems: items
129
+ });
130
+ });
131
+ else if ((null === (_itemParams_childrenOptions1 = itemParams['childrenOptions']) || void 0 === _itemParams_childrenOptions1 ? void 0 : _itemParams_childrenOptions1.length) && (!quickAddParentField || (null == quickAddParentField ? void 0 : quickAddParentField.value) === 'none')) itemParams['childrenOptions'].forEach((item)=>{
132
+ optionsItem.push({
133
+ ...item,
134
+ label: item[itemParams['childrenTitleField']],
135
+ value: null == item ? void 0 : item.id,
136
+ key: null == item ? void 0 : item.id,
137
+ checked: false
138
+ });
139
+ });
140
+ setDefOptions(optionsItem);
141
+ } else if (quickAddSchema) {
142
+ const fieldItem = cm.getCollectionField(quickAddSchema['x-collection-field']);
143
+ if (!(null == fieldItem ? void 0 : fieldItem.uiSchema) || !(null == fieldItem ? void 0 : fieldItem.uiSchema.enum)) return;
144
+ fieldItem.uiSchema.enum.forEach((item)=>{
145
+ optionsItem.push(item);
146
+ });
147
+ setDefOptions(optionsItem);
148
+ }
149
+ }
150
+ }, [
151
+ fieldServiceFilter,
152
+ null == tabparams ? void 0 : tabparams.filter,
153
+ changeForm,
154
+ isQuickAdd,
155
+ quickAddField,
156
+ quickAddParentField
157
+ ]);
158
+ (0, __WEBPACK_EXTERNAL_MODULE_ahooks__.useDeepCompareEffect)(()=>{
159
+ if (!defOptions.length) return;
160
+ const fieldTabs = field.value;
161
+ if (quickAddParentField && (null == quickAddParentField ? void 0 : quickAddParentField.value) !== 'none') {
162
+ const filterParantOptions = tabsParantFilterOptions(defOptions, fieldTabs, quickAddField);
163
+ setDefOptions(filterParantOptions);
164
+ } else {
165
+ const filterDefOptions = tabsFilterOptions(defOptions, fieldTabs, quickAddField);
166
+ setDefOptions(filterDefOptions);
167
+ }
168
+ }, [
169
+ quickAddField,
170
+ fieldValue
171
+ ]);
172
+ (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFormEffects)(()=>{
173
+ (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.onFieldChange)(formFieldFilter, (field)=>{
174
+ setChangeForm(field);
175
+ });
176
+ });
177
+ let options = defOptions;
178
+ if (quickAddParentField && 'none' !== quickAddParentField.value) {
179
+ const filterOption = null == defOptions ? void 0 : defOptions.map((item)=>{
180
+ var _item_childrenItems;
181
+ const filterItem = null == item ? void 0 : null === (_item_childrenItems = item.childrenItems) || void 0 === _item_childrenItems ? void 0 : _item_childrenItems.filter((childrenItem)=>(0, __WEBPACK_EXTERNAL_MODULE__tachybase_utils_client__.fuzzysearch)(filter, null == childrenItem ? void 0 : childrenItem.label));
182
+ if ((0, __WEBPACK_EXTERNAL_MODULE__tachybase_utils_client__.fuzzysearch)(filter, null == item ? void 0 : item.label) || (null == filterItem ? void 0 : filterItem.length)) return {
183
+ ...item,
184
+ childrenItems: (null == filterItem ? void 0 : filterItem.length) ? filterItem : item.childrenItems
185
+ };
186
+ }).filter(Boolean);
187
+ options = filterOption;
188
+ } else {
189
+ const filterOption = defOptions.filter((item)=>(0, __WEBPACK_EXTERNAL_MODULE__tachybase_utils_client__.fuzzysearch)(filter, null == item ? void 0 : item.label));
190
+ options = filterOption;
191
+ }
192
+ const onChange = (item)=>{
193
+ field.value = field.value || [];
194
+ const addItem = {};
195
+ addItem[quickAddField] = item;
196
+ field.value.push((0, __WEBPACK_EXTERNAL_MODULE__data_source_collection_record_isNewRecord_mjs__.markRecordAsNew)(addItem));
197
+ setFieldValue([
198
+ ...field.value
199
+ ]);
200
+ };
201
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)("div", {
202
+ children: [
203
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_antd__.Input, {
204
+ placeholder: t('Please enter search content'),
205
+ prefix: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__ant_design_icons__.SearchOutlined, {}),
206
+ value: filter,
207
+ onChange: (e)=>{
208
+ setFilter(e.target.value);
209
+ }
210
+ }),
211
+ quickAddParentField && (null == quickAddParentField ? void 0 : quickAddParentField.value) !== 'none' ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)("div", {
212
+ className: styles.container,
213
+ ref: ref,
214
+ children: [
215
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("div", {
216
+ className: "left-pane",
217
+ children: options.sort((a, b)=>null != a.sort ? a.sort - b.sort : a.id - b.id).map((item)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("div", {
218
+ id: 'parent-item-' + item.id,
219
+ onClick: ()=>{
220
+ var _ref_current;
221
+ null === (_ref_current = ref.current) || void 0 === _ref_current || _ref_current.querySelector('#item-' + item.id).scrollIntoView({
222
+ behavior: 'auto',
223
+ block: 'nearest',
224
+ inline: 'start'
225
+ });
226
+ const currentId = '#parent-item-' + item.id;
227
+ ref.current.querySelector(currentId).scrollIntoView({
228
+ behavior: 'auto',
229
+ block: 'nearest',
230
+ inline: 'start'
231
+ });
232
+ ref.current.querySelector(currentId).style.color = '#166cff';
233
+ const allElements = ref.current.querySelectorAll('div:not(' + currentId + ')');
234
+ null == allElements || allElements.forEach(function(element) {
235
+ element.style.color = '#1e1e1e';
236
+ });
237
+ },
238
+ children: item.label
239
+ }, item.id))
240
+ }),
241
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("div", {
242
+ className: "right-pane",
243
+ children: options.sort((a, b)=>null != a.sort ? a.sort - b.sort : a.id - b.id).map((item)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(ObservableItem, {
244
+ item: item,
245
+ onChange: onChange,
246
+ leftRef: ref
247
+ }, item.id))
248
+ })
249
+ ]
250
+ }) : /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_antd__.Space, {
251
+ style: {
252
+ maxHeight: '30vh',
253
+ overflow: 'auto',
254
+ padding: '10px'
255
+ },
256
+ children: options.map((item, index)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_antd__.Button, {
257
+ onClick: ()=>{
258
+ onChange(item);
259
+ },
260
+ icon: item.checked ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__ant_design_icons__.CheckOutlined, {}) : null,
261
+ children: item.label
262
+ }, index))
263
+ })
264
+ ]
265
+ });
266
+ });
267
+ const tabsParantFilterOptions = (options, fieldTabs, arrayField)=>{
268
+ const filterOptions = null == options ? void 0 : options.map((oItem)=>{
269
+ const filterItem = oItem.childrenItems.map((childrenItem)=>{
270
+ const fieldTabsValue = fieldTabs.find((item)=>{
271
+ var _item_arrayField;
272
+ return (null === (_item_arrayField = item[arrayField]) || void 0 === _item_arrayField ? void 0 : _item_arrayField.value) === childrenItem.value;
273
+ });
274
+ return {
275
+ ...childrenItem,
276
+ checked: !!fieldTabsValue || false
277
+ };
278
+ });
279
+ return {
280
+ ...oItem,
281
+ childrenItems: filterItem
282
+ };
283
+ });
284
+ return filterOptions;
285
+ };
286
+ const tabsFilterOptions = (optitons, filterTabs, arrayField)=>{
287
+ const filterOptions = optitons.map((item)=>{
288
+ const filterValue = filterTabs.find((filterTabsItem)=>{
289
+ var _filterTabsItem_arrayField;
290
+ return (null === (_filterTabsItem_arrayField = filterTabsItem[arrayField]) || void 0 === _filterTabsItem_arrayField ? void 0 : _filterTabsItem_arrayField.value) === item.value;
291
+ });
292
+ return {
293
+ ...item,
294
+ checked: !!filterValue || false
295
+ };
296
+ });
297
+ return filterOptions;
298
+ };
299
+ const InternalCollapse = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.observer)((props)=>{
300
+ var _fieldSchema_parent_xcomponentprops;
301
+ const { t } = (0, __WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
302
+ const fieldSchema = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
303
+ const isQuickAdd = fieldSchema['parent']['x-component-props']['isQuickAdd'];
304
+ const { value: quickAddField } = (null === (_fieldSchema_parent_xcomponentprops = fieldSchema['parent']['x-component-props']) || void 0 === _fieldSchema_parent_xcomponentprops ? void 0 : _fieldSchema_parent_xcomponentprops['quickAddField']) || {};
305
+ const items = [
306
+ {
307
+ key: '1',
308
+ label: t('Quick create'),
309
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(InternalTabs, {
310
+ ...props
311
+ })
312
+ }
313
+ ];
314
+ return isQuickAdd && quickAddField && 'none' !== quickAddField ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_antd__.Collapse, {
315
+ items: items,
316
+ defaultActiveKey: [
317
+ '1'
318
+ ]
319
+ }) : null;
320
+ });
321
+ export { InternalCollapse, InternalTabs, ObservableItem };
@@ -0,0 +1,53 @@
1
+ import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
2
+ import * as __WEBPACK_EXTERNAL_MODULE__tachybase_schema__ from "@tachybase/schema";
3
+ import * as __WEBPACK_EXTERNAL_MODULE__tachybase_utils_client__ from "@tachybase/utils/client";
4
+ import * as __WEBPACK_EXTERNAL_MODULE_lodash__ from "lodash";
5
+ import * as __WEBPACK_EXTERNAL_MODULE__filter_provider_index_mjs__ from "../../../../filter-provider/index.mjs";
6
+ import * as __WEBPACK_EXTERNAL_MODULE__schema_settings_index_mjs__ from "../../../../schema-settings/index.mjs";
7
+ import * as __WEBPACK_EXTERNAL_MODULE__variables_index_mjs__ from "../../../../variables/index.mjs";
8
+ import * as __WEBPACK_EXTERNAL_MODULE__variables_utils_getPath_mjs__ from "../../../../variables/utils/getPath.mjs";
9
+ import * as __WEBPACK_EXTERNAL_MODULE__variables_utils_getVariableName_mjs__ from "../../../../variables/utils/getVariableName.mjs";
10
+ const useFieldServiceFilter = (filter, originalFilter)=>{
11
+ const [fieldServiceFilter, setFieldServiceFilter] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(null);
12
+ const { parseFilter, findVariable } = (0, __WEBPACK_EXTERNAL_MODULE__schema_settings_index_mjs__.useParseDataScopeFilter)();
13
+ (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
14
+ const filterFromSchema = filter;
15
+ const _run = async ()=>{
16
+ const result = await parseFilter((0, __WEBPACK_EXTERNAL_MODULE__filter_provider_index_mjs__.mergeFilter)([
17
+ filterFromSchema || originalFilter
18
+ ]));
19
+ setFieldServiceFilter(result);
20
+ };
21
+ const run = __WEBPACK_EXTERNAL_MODULE_lodash__["default"].debounce(_run, __WEBPACK_EXTERNAL_MODULE__variables_index_mjs__.DEBOUNCE_WAIT);
22
+ _run();
23
+ const dispose = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.reaction)(()=>{
24
+ const flat = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_utils_client__.flatten)(filterFromSchema, {
25
+ breakOn (param) {
26
+ let { key } = param;
27
+ return key.startsWith('$') && '$and' !== key && '$or' !== key;
28
+ },
29
+ transformValue (value) {
30
+ if (!(0, __WEBPACK_EXTERNAL_MODULE__variables_index_mjs__.isVariable)(value)) return value;
31
+ const variableName = (0, __WEBPACK_EXTERNAL_MODULE__variables_utils_getVariableName_mjs__.getVariableName)(value);
32
+ const variable = findVariable(variableName);
33
+ const result = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_utils_client__.getValuesByPath)({
34
+ [variableName]: (null == variable ? void 0 : variable.ctx) || {}
35
+ }, (0, __WEBPACK_EXTERNAL_MODULE__variables_utils_getPath_mjs__.getPath)(value));
36
+ return result;
37
+ }
38
+ });
39
+ return flat;
40
+ }, run);
41
+ return dispose;
42
+ }, [
43
+ filter,
44
+ findVariable,
45
+ originalFilter,
46
+ parseFilter
47
+ ]);
48
+ return [
49
+ fieldServiceFilter,
50
+ setFieldServiceFilter
51
+ ];
52
+ };
53
+ export { useFieldServiceFilter };
@@ -0,0 +1 @@
1
+ export * from "./hook.mjs";