@tachybase/client 1.3.21 → 1.3.23

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 (425) hide show
  1. package/es/api-client/APIClient.d.ts +1 -1
  2. package/es/api-client/APIClient.mjs +1 -1
  3. package/es/api-client/hooks/assign.mjs +1 -1
  4. package/es/api-client/hooks/useResource.d.ts +1 -1
  5. package/es/application/Application.d.ts +1 -2
  6. package/es/application/Application.mjs +1 -2
  7. package/es/application/WebSocketClient.mjs +1 -1
  8. package/es/application/schema-settings/SchemaSettings.d.ts +1 -1
  9. package/es/application/schema-settings/SchemaSettings.mjs +5 -3
  10. package/es/application/schema-settings/SchemaSettingsManager.d.ts +6 -0
  11. package/es/application/schema-settings/SchemaSettingsManager.mjs +15 -0
  12. package/es/application/utils/globalDeps.d.ts +1 -1
  13. package/es/application/utils/globalDeps.mjs +4 -11
  14. package/es/application/utils/remotePlugins.d.ts +1 -1
  15. package/es/block-provider/FormFieldProvider.mjs +1 -1
  16. package/es/block-provider/hooks/index.mjs +1 -1
  17. package/es/block-provider/hooks/useParsedFilter.mjs +1 -1
  18. package/es/built-in/acl/Configuration/RolesResourcesActions.mjs +1 -1
  19. package/es/built-in/attachment-preview/previewers/file-pdf.mjs +1 -1
  20. package/es/built-in/context-menu/ContextMenuItemsProps.mjs +1 -1
  21. package/es/built-in/index.mjs +1 -1
  22. package/es/built-in/locale/LocalePlugin.mjs +0 -2
  23. package/es/built-in/page-style/useTabSettings.mjs +3 -3
  24. package/es/built-in/pm/PluginDetail.mjs +0 -2
  25. package/es/built-in/pm/PluginManager.mjs +1 -1
  26. package/es/built-in/quick-access/ModalActionSchemaInitializerItem.mjs +1 -1
  27. package/es/collection-manager/Configuration/AddCollectionAction.mjs +1 -1
  28. package/es/collection-manager/Configuration/AddFieldAction.mjs +1 -1
  29. package/es/collection-manager/Configuration/AddSubFieldAction.mjs +1 -1
  30. package/es/collection-manager/Configuration/EditCollectionAction.mjs +1 -1
  31. package/es/collection-manager/Configuration/EditFieldAction.mjs +1 -1
  32. package/es/collection-manager/Configuration/EditSubFieldAction.mjs +1 -1
  33. package/es/collection-manager/Configuration/ImportXlsx/xlsxImportAction.mjs +1 -1
  34. package/es/collection-manager/Configuration/OverridingCollectionField.mjs +1 -1
  35. package/es/collection-manager/Configuration/SyncFieldsAction.mjs +1 -1
  36. package/es/collection-manager/Configuration/SyncSQLFieldsAction.mjs +1 -1
  37. package/es/collection-manager/Configuration/ViewInheritedField.mjs +1 -1
  38. package/es/collection-manager/Configuration/components/index.mjs +1 -1
  39. package/es/collection-manager/Configuration/index.d.ts +1 -0
  40. package/es/collection-manager/Configuration/index.mjs +2 -0
  41. package/es/collection-manager/hooks/index.d.ts +1 -0
  42. package/es/collection-manager/hooks/index.mjs +2 -0
  43. package/es/collection-manager/hooks/useCollection_deprecated.d.ts +1 -1
  44. package/es/collection-manager/index.d.ts +1 -1
  45. package/es/collection-manager/index.mjs +2 -2
  46. package/es/collection-manager/interfaces/checkbox.d.ts +1 -0
  47. package/es/collection-manager/interfaces/checkbox.mjs +1 -1
  48. package/es/collection-manager/interfaces/checkboxGroup.d.ts +1 -0
  49. package/es/collection-manager/interfaces/checkboxGroup.mjs +1 -1
  50. package/es/collection-manager/interfaces/chinaRegion.d.ts +1 -0
  51. package/es/collection-manager/interfaces/chinaRegion.mjs +1 -1
  52. package/es/collection-manager/interfaces/collection.d.ts +1 -0
  53. package/es/collection-manager/interfaces/collection.mjs +2 -2
  54. package/es/collection-manager/interfaces/color.d.ts +1 -0
  55. package/es/collection-manager/interfaces/color.mjs +1 -1
  56. package/es/collection-manager/interfaces/createdAt.d.ts +1 -0
  57. package/es/collection-manager/interfaces/createdAt.mjs +1 -1
  58. package/es/collection-manager/interfaces/createdBy.d.ts +1 -0
  59. package/es/collection-manager/interfaces/createdBy.mjs +1 -1
  60. package/es/collection-manager/interfaces/datetime.d.ts +1 -0
  61. package/es/collection-manager/interfaces/datetime.mjs +1 -1
  62. package/es/collection-manager/interfaces/email.d.ts +1 -0
  63. package/es/collection-manager/interfaces/email.mjs +1 -1
  64. package/es/collection-manager/interfaces/icon.d.ts +1 -0
  65. package/es/collection-manager/interfaces/icon.mjs +1 -1
  66. package/es/collection-manager/interfaces/input.d.ts +1 -0
  67. package/es/collection-manager/interfaces/input.mjs +1 -1
  68. package/es/collection-manager/interfaces/integer.d.ts +1 -0
  69. package/es/collection-manager/interfaces/integer.mjs +1 -1
  70. package/es/collection-manager/interfaces/json.d.ts +1 -0
  71. package/es/collection-manager/interfaces/json.mjs +2 -2
  72. package/es/collection-manager/interfaces/m2m.d.ts +1 -0
  73. package/es/collection-manager/interfaces/m2m.mjs +1 -1
  74. package/es/collection-manager/interfaces/m2o.d.ts +1 -0
  75. package/es/collection-manager/interfaces/m2o.mjs +1 -1
  76. package/es/collection-manager/interfaces/markdown.d.ts +1 -0
  77. package/es/collection-manager/interfaces/markdown.mjs +1 -1
  78. package/es/collection-manager/interfaces/multipleSelect.d.ts +1 -0
  79. package/es/collection-manager/interfaces/multipleSelect.mjs +2 -2
  80. package/es/collection-manager/interfaces/nanoid.d.ts +1 -0
  81. package/es/collection-manager/interfaces/nanoid.mjs +1 -1
  82. package/es/collection-manager/interfaces/number.d.ts +1 -0
  83. package/es/collection-manager/interfaces/number.mjs +1 -1
  84. package/es/collection-manager/interfaces/o2m.d.ts +1 -0
  85. package/es/collection-manager/interfaces/o2m.mjs +1 -1
  86. package/es/collection-manager/interfaces/o2o.d.ts +1 -0
  87. package/es/collection-manager/interfaces/o2o.mjs +1 -1
  88. package/es/collection-manager/interfaces/password.d.ts +1 -0
  89. package/es/collection-manager/interfaces/password.mjs +1 -1
  90. package/es/collection-manager/interfaces/percent.d.ts +1 -0
  91. package/es/collection-manager/interfaces/percent.mjs +2 -2
  92. package/es/collection-manager/interfaces/phone.d.ts +1 -0
  93. package/es/collection-manager/interfaces/phone.mjs +1 -1
  94. package/es/collection-manager/interfaces/radioGroup.d.ts +12 -11
  95. package/es/collection-manager/interfaces/radioGroup.mjs +1 -1
  96. package/es/collection-manager/interfaces/richText.d.ts +1 -0
  97. package/es/collection-manager/interfaces/richText.mjs +1 -1
  98. package/es/collection-manager/interfaces/select.d.ts +1 -0
  99. package/es/collection-manager/interfaces/select.mjs +2 -2
  100. package/es/collection-manager/interfaces/sort.d.ts +1 -0
  101. package/es/collection-manager/interfaces/sort.mjs +1 -1
  102. package/es/collection-manager/interfaces/subTable.d.ts +1 -0
  103. package/es/collection-manager/interfaces/subTable.mjs +1 -1
  104. package/es/collection-manager/interfaces/tableoid.d.ts +1 -0
  105. package/es/collection-manager/interfaces/tableoid.mjs +1 -1
  106. package/es/collection-manager/interfaces/textarea.d.ts +1 -0
  107. package/es/collection-manager/interfaces/textarea.mjs +1 -1
  108. package/es/collection-manager/interfaces/time.d.ts +1 -0
  109. package/es/collection-manager/interfaces/time.mjs +1 -1
  110. package/es/collection-manager/interfaces/unixTimestamp.d.ts +1 -0
  111. package/es/collection-manager/interfaces/unixTimestamp.mjs +1 -1
  112. package/es/collection-manager/interfaces/updatedAt.d.ts +1 -0
  113. package/es/collection-manager/interfaces/updatedAt.mjs +1 -1
  114. package/es/collection-manager/interfaces/updatedBy.d.ts +1 -0
  115. package/es/collection-manager/interfaces/updatedBy.mjs +1 -1
  116. package/es/collection-manager/interfaces/url.d.ts +1 -0
  117. package/es/collection-manager/interfaces/url.mjs +1 -1
  118. package/es/collection-manager/interfaces/uuid.d.ts +1 -0
  119. package/es/collection-manager/interfaces/uuid.mjs +1 -1
  120. package/es/collection-manager/templates/expression.mjs +1 -1
  121. package/es/collection-manager/templates/properties/index.d.ts +1 -1
  122. package/es/data-source/collection-field-interface/CollectionFieldInterface.d.ts +1 -0
  123. package/es/data-source/collection-field-interface/CollectionFieldInterface.mjs +1 -0
  124. package/es/data-source/data-block/DataBlockResourceProvider.d.ts +1 -1
  125. package/es/filter-provider/utils.mjs +2 -1
  126. package/es/icon/preloaded.mjs +0 -1
  127. package/es/index.d.ts +3 -0
  128. package/es/index.mjs +4 -1
  129. package/es/modules/actions/link/customizeLinkActionSettings.mjs +1 -1
  130. package/es/modules/blocks/data-blocks/details-multi/detailsWithPaginationSettings.mjs +1 -1
  131. package/es/modules/blocks/data-blocks/form/FormBlockInitializer.d.ts +11 -11
  132. package/es/modules/blocks/data-blocks/form/fieldSettingsFormItem.mjs +1 -1
  133. package/es/modules/blocks/data-blocks/grid-card/gridCardBlockSettings.mjs +1 -1
  134. package/es/modules/blocks/data-blocks/list/listBlockSettings.mjs +1 -1
  135. package/es/modules/blocks/data-blocks/table/tableBlockSettings.mjs +1 -1
  136. package/es/modules/blocks/data-blocks/table-selector/tableSelectorBlockSettings.mjs +1 -1
  137. package/es/modules/blocks/filter-blocks/form/filterFormItemFieldSettings.mjs +1 -1
  138. package/es/modules/blocks/filter-blocks/tree/filterTreeItemFieldSettings.mjs +1 -1
  139. package/es/modules/fields/component/Cascader/cascaderComponentFieldSettings.mjs +1 -1
  140. package/es/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.d.ts +1 -1
  141. package/es/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.mjs +1 -1
  142. package/es/modules/menu/GroupItem.mjs +1 -1
  143. package/es/modules/menu/LinkMenuItem.mjs +1 -1
  144. package/es/modules/menu/PageMenuItem.mjs +1 -1
  145. package/es/modules/menu/UploadMenuItem.mjs +1 -1
  146. package/es/preload.d.ts +16 -0
  147. package/es/preload.mjs +33 -0
  148. package/es/schema-component/antd/action/Action.Designer.mjs +1 -1
  149. package/es/schema-component/antd/action/Action.mjs +1 -1
  150. package/es/schema-component/antd/association-field/InternalCascadeSelect.mjs +1 -1
  151. package/es/schema-component/antd/association-field/InternalCascader.mjs +1 -2
  152. package/es/schema-component/antd/association-field/InternalNester.mjs +1 -1
  153. package/es/schema-component/antd/association-field/InternalSubTable.mjs +1 -1
  154. package/es/schema-component/antd/association-field/SubTabs/InternalCollapse.mjs +1 -1
  155. package/es/schema-component/antd/association-field/SubTabs/hook.mjs +1 -1
  156. package/es/schema-component/antd/association-field/hooks.mjs +1 -1
  157. package/es/schema-component/antd/association-field/index.d.ts +1 -0
  158. package/es/schema-component/antd/association-field/index.mjs +2 -1
  159. package/es/schema-component/antd/association-field/util.mjs +1 -1
  160. package/es/schema-component/antd/association-select/AssociationSelect.mjs +2 -2
  161. package/es/schema-component/antd/auto-complete/AutoComplete.mjs +1 -1
  162. package/es/schema-component/antd/color-picker/ColorPicker.mjs +1 -1
  163. package/es/schema-component/antd/color-picker/util.d.ts +1 -1
  164. package/es/schema-component/antd/color-picker/util.mjs +2 -1
  165. package/es/schema-component/antd/cron/Cron.mjs +1 -1
  166. package/es/schema-component/antd/date-picker/ReadPretty.mjs +1 -1
  167. package/es/schema-component/antd/date-picker/util.d.ts +1 -1
  168. package/es/schema-component/antd/date-picker/util.mjs +2 -1
  169. package/es/schema-component/antd/filter/FilterAction.mjs +1 -1
  170. package/es/schema-component/antd/filter/index.d.ts +1 -0
  171. package/es/schema-component/antd/filter/index.mjs +1 -0
  172. package/es/schema-component/antd/form/Form.mjs +1 -1
  173. package/es/schema-component/antd/form-item/FormItem.Settings.mjs +1 -1
  174. package/es/schema-component/antd/form-item/FormItem.mjs +1 -1
  175. package/es/schema-component/antd/form-item/SchemaSettingOptions.mjs +1 -1
  176. package/es/schema-component/antd/form-item/hooks/useLazyLoadDisplayAssociationFieldsOfForm.mjs +1 -1
  177. package/es/schema-component/antd/form-item/hooks/useParseDefaultValue.mjs +1 -1
  178. package/es/schema-component/antd/form-v2/Form.Settings.mjs +1 -1
  179. package/es/schema-component/antd/form-v2/Form.mjs +1 -2
  180. package/es/schema-component/antd/form-v2/Templates.mjs +1 -1
  181. package/es/schema-component/antd/form-v2/index.d.ts +1 -0
  182. package/es/schema-component/antd/form-v2/index.mjs +1 -0
  183. package/es/schema-component/antd/form-v2/utils.mjs +1 -2
  184. package/es/schema-component/antd/grid-card/GridCard.Decorator.mjs +1 -1
  185. package/es/schema-component/antd/grid-card/GridCard.Designer.mjs +1 -1
  186. package/es/schema-component/antd/icon-picker/IconPicker.mjs +1 -1
  187. package/es/schema-component/antd/index.d.ts +0 -1
  188. package/es/schema-component/antd/index.mjs +1 -2
  189. package/es/schema-component/antd/input/ReadPretty.mjs +1 -1
  190. package/es/schema-component/antd/input-number/ReadPretty.mjs +1 -1
  191. package/es/schema-component/antd/list/List.Decorator.mjs +1 -1
  192. package/es/schema-component/antd/list/List.Designer.mjs +1 -1
  193. package/es/schema-component/antd/menu/Menu.Designer.mjs +1 -1
  194. package/es/schema-component/antd/menu/Menu.mjs +1 -1
  195. package/es/schema-component/antd/page/Page.mjs +1 -1
  196. package/es/schema-component/antd/preview/Preview.mjs +1 -1
  197. package/es/schema-component/antd/quick-edit/QuickEdit.mjs +1 -1
  198. package/es/schema-component/antd/record-picker/util.mjs +1 -1
  199. package/es/schema-component/antd/select/FormulaSelect.mjs +1 -1
  200. package/es/schema-component/antd/select/ReadPretty.mjs +2 -2
  201. package/es/schema-component/antd/select/Select.mjs +1 -1
  202. package/es/schema-component/antd/select/utils.mjs +2 -2
  203. package/es/schema-component/antd/space/index.mjs +1 -1
  204. package/es/schema-component/antd/table/Table.Void.Designer.mjs +1 -1
  205. package/es/schema-component/antd/table-v2/Table.mjs +1 -1
  206. package/es/schema-component/antd/table-v2/TableBlockDesigner.mjs +1 -1
  207. package/es/schema-component/antd/table-v2/TableSelectorDesigner.mjs +1 -1
  208. package/es/schema-component/antd/table-v2/index.d.ts +1 -0
  209. package/es/schema-component/antd/table-v2/index.mjs +1 -0
  210. package/es/schema-component/antd/time-picker/ReadPretty.mjs +1 -1
  211. package/es/schema-component/antd/time-picker/TimePicker.mjs +1 -1
  212. package/es/schema-component/antd/tree-select/ReadPretty.mjs +1 -1
  213. package/es/schema-component/antd/upload/ReadPretty.mjs +1 -2
  214. package/es/schema-component/antd/upload/Upload.mjs +1 -1
  215. package/es/schema-component/antd/variable/CodeMirror.mjs +1 -1
  216. package/es/schema-component/antd/variable/Input.mjs +1 -1
  217. package/es/schema-component/antd/variable/TextArea.mjs +1 -1
  218. package/es/schema-component/common/infinite-scroll/infinite-scroll.mjs +1 -1
  219. package/es/schema-component/common/sortable-item/DragHandlePageTab.mjs +6 -7
  220. package/es/schema-initializer/items/CustomFilterFormItemInitializer.mjs +2 -2
  221. package/es/schema-settings/DataTemplates/components/AsDefaultTemplate.mjs +1 -1
  222. package/es/schema-settings/DataTemplates/components/DataTemplateTitle.mjs +1 -1
  223. package/es/schema-settings/DataTemplates/components/Designer.mjs +1 -1
  224. package/es/schema-settings/DataTemplates/utils.mjs +1 -1
  225. package/es/schema-settings/LinkageRules/LinkageRuleAction.mjs +1 -1
  226. package/es/schema-settings/LinkageRules/components/EnableLinkage.mjs +1 -1
  227. package/es/schema-settings/LinkageRules/components/LinkageHeader.mjs +1 -1
  228. package/es/schema-settings/LinkageRules/index.d.ts +2 -0
  229. package/es/schema-settings/LinkageRules/index.mjs +2 -0
  230. package/es/schema-settings/SchemaSettings.mjs +2 -3
  231. package/es/schema-settings/SchemaSettingsDefaultValue.mjs +1 -1
  232. package/es/schema-settings/SchemaSettingsSortingRule.mjs +1 -1
  233. package/es/schema-settings/VariableInput/hooks/useContextAssociationFields.mjs +1 -1
  234. package/es/schema-settings/VariableInput/index.d.ts +1 -0
  235. package/es/schema-settings/VariableInput/index.mjs +1 -0
  236. package/es/schema-settings/filter-form/FormFilterScope.mjs +1 -1
  237. package/es/schema-settings/hooks/useParseDataScopeFilter.mjs +1 -1
  238. package/es/schema-settings/index.d.ts +3 -0
  239. package/es/schema-settings/index.mjs +3 -0
  240. package/es/user/ChangePassword.mjs +2 -2
  241. package/es/user/CurrentUser.mjs +1 -1
  242. package/es/user/CurrentUserSettingsMenuProvider.mjs +1 -1
  243. package/es/variables/VariablesProvider.mjs +2 -2
  244. package/es/variables/hooks/useBuiltinVariables.mjs +1 -1
  245. package/lib/api-client/APIClient.js +2 -2
  246. package/lib/api-client/hooks/assign.js +1 -1
  247. package/lib/application/Application.js +6 -7
  248. package/lib/application/WebSocketClient.js +2 -2
  249. package/lib/application/schema-settings/SchemaSettings.js +5 -3
  250. package/lib/application/schema-settings/SchemaSettingsManager.js +15 -0
  251. package/lib/application/utils/globalDeps.js +5 -11
  252. package/lib/block-provider/FormFieldProvider.js +1 -1
  253. package/lib/block-provider/hooks/index.js +13 -13
  254. package/lib/block-provider/hooks/useParsedFilter.js +1 -1
  255. package/lib/built-in/acl/Configuration/RolesResourcesActions.js +4 -4
  256. package/lib/built-in/attachment-preview/previewers/file-pdf.js +1 -1
  257. package/lib/built-in/context-menu/ContextMenuItemsProps.js +1 -1
  258. package/lib/built-in/index.js +12 -12
  259. package/lib/built-in/locale/LocalePlugin.js +72 -92
  260. package/lib/built-in/page-style/useTabSettings.js +3 -3
  261. package/lib/built-in/pm/PluginDetail.js +0 -3
  262. package/lib/built-in/pm/PluginManager.js +1 -1
  263. package/lib/built-in/quick-access/ModalActionSchemaInitializerItem.js +1 -1
  264. package/lib/collection-manager/Configuration/AddCollectionAction.js +2 -2
  265. package/lib/collection-manager/Configuration/AddFieldAction.js +2 -2
  266. package/lib/collection-manager/Configuration/AddSubFieldAction.js +2 -2
  267. package/lib/collection-manager/Configuration/EditCollectionAction.js +2 -2
  268. package/lib/collection-manager/Configuration/EditFieldAction.js +2 -2
  269. package/lib/collection-manager/Configuration/EditSubFieldAction.js +2 -2
  270. package/lib/collection-manager/Configuration/ImportXlsx/xlsxImportAction.js +2 -2
  271. package/lib/collection-manager/Configuration/OverridingCollectionField.js +2 -2
  272. package/lib/collection-manager/Configuration/SyncFieldsAction.js +2 -2
  273. package/lib/collection-manager/Configuration/SyncSQLFieldsAction.js +2 -2
  274. package/lib/collection-manager/Configuration/ViewInheritedField.js +2 -2
  275. package/lib/collection-manager/Configuration/components/index.js +1 -1
  276. package/lib/collection-manager/Configuration/index.js +79 -19
  277. package/lib/collection-manager/hooks/index.js +28 -5
  278. package/lib/collection-manager/index.js +37 -17
  279. package/lib/collection-manager/interfaces/checkbox.js +1 -1
  280. package/lib/collection-manager/interfaces/checkboxGroup.js +1 -1
  281. package/lib/collection-manager/interfaces/chinaRegion.js +1 -1
  282. package/lib/collection-manager/interfaces/collection.js +2 -2
  283. package/lib/collection-manager/interfaces/color.js +1 -1
  284. package/lib/collection-manager/interfaces/createdAt.js +1 -1
  285. package/lib/collection-manager/interfaces/createdBy.js +1 -1
  286. package/lib/collection-manager/interfaces/datetime.js +1 -1
  287. package/lib/collection-manager/interfaces/email.js +1 -1
  288. package/lib/collection-manager/interfaces/icon.js +1 -1
  289. package/lib/collection-manager/interfaces/input.js +1 -1
  290. package/lib/collection-manager/interfaces/integer.js +1 -1
  291. package/lib/collection-manager/interfaces/json.js +4 -4
  292. package/lib/collection-manager/interfaces/m2m.js +1 -1
  293. package/lib/collection-manager/interfaces/m2o.js +1 -1
  294. package/lib/collection-manager/interfaces/markdown.js +1 -1
  295. package/lib/collection-manager/interfaces/multipleSelect.js +2 -2
  296. package/lib/collection-manager/interfaces/nanoid.js +1 -1
  297. package/lib/collection-manager/interfaces/number.js +1 -1
  298. package/lib/collection-manager/interfaces/o2m.js +1 -1
  299. package/lib/collection-manager/interfaces/o2o.js +1 -1
  300. package/lib/collection-manager/interfaces/password.js +1 -1
  301. package/lib/collection-manager/interfaces/percent.js +2 -2
  302. package/lib/collection-manager/interfaces/phone.js +1 -1
  303. package/lib/collection-manager/interfaces/radioGroup.js +1 -1
  304. package/lib/collection-manager/interfaces/richText.js +1 -1
  305. package/lib/collection-manager/interfaces/select.js +2 -2
  306. package/lib/collection-manager/interfaces/sort.js +1 -1
  307. package/lib/collection-manager/interfaces/subTable.js +1 -1
  308. package/lib/collection-manager/interfaces/tableoid.js +1 -1
  309. package/lib/collection-manager/interfaces/textarea.js +1 -1
  310. package/lib/collection-manager/interfaces/time.js +1 -1
  311. package/lib/collection-manager/interfaces/unixTimestamp.js +1 -1
  312. package/lib/collection-manager/interfaces/updatedAt.js +1 -1
  313. package/lib/collection-manager/interfaces/updatedBy.js +1 -1
  314. package/lib/collection-manager/interfaces/url.js +1 -1
  315. package/lib/collection-manager/interfaces/uuid.js +1 -1
  316. package/lib/collection-manager/templates/expression.js +1 -1
  317. package/lib/data-source/collection-field-interface/CollectionFieldInterface.js +1 -0
  318. package/lib/filter-provider/utils.js +4 -2
  319. package/lib/icon/preloaded.js +0 -1
  320. package/lib/index.js +234 -125
  321. package/lib/locale/zh-CN.js +3 -0
  322. package/lib/modules/actions/link/customizeLinkActionSettings.js +2 -2
  323. package/lib/modules/blocks/data-blocks/details-multi/detailsWithPaginationSettings.js +2 -2
  324. package/lib/modules/blocks/data-blocks/form/fieldSettingsFormItem.js +3 -3
  325. package/lib/modules/blocks/data-blocks/grid-card/gridCardBlockSettings.js +2 -2
  326. package/lib/modules/blocks/data-blocks/list/listBlockSettings.js +2 -2
  327. package/lib/modules/blocks/data-blocks/table/tableBlockSettings.js +2 -2
  328. package/lib/modules/blocks/data-blocks/table-selector/tableSelectorBlockSettings.js +2 -2
  329. package/lib/modules/blocks/filter-blocks/form/filterFormItemFieldSettings.js +3 -3
  330. package/lib/modules/blocks/filter-blocks/tree/filterTreeItemFieldSettings.js +3 -3
  331. package/lib/modules/fields/component/Cascader/cascaderComponentFieldSettings.js +2 -2
  332. package/lib/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.js +3 -3
  333. package/lib/modules/menu/GroupItem.js +2 -2
  334. package/lib/modules/menu/LinkMenuItem.js +2 -2
  335. package/lib/modules/menu/PageMenuItem.js +2 -2
  336. package/lib/modules/menu/UploadMenuItem.js +2 -2
  337. package/lib/preload.js +77 -0
  338. package/lib/schema-component/antd/action/Action.Designer.js +3 -3
  339. package/lib/schema-component/antd/action/Action.js +1 -1
  340. package/lib/schema-component/antd/association-field/InternalCascadeSelect.js +4 -4
  341. package/lib/schema-component/antd/association-field/InternalCascader.js +4 -5
  342. package/lib/schema-component/antd/association-field/InternalNester.js +2 -2
  343. package/lib/schema-component/antd/association-field/InternalSubTable.js +2 -2
  344. package/lib/schema-component/antd/association-field/SubTabs/InternalCollapse.js +1 -1
  345. package/lib/schema-component/antd/association-field/SubTabs/hook.js +1 -1
  346. package/lib/schema-component/antd/association-field/hooks.js +1 -1
  347. package/lib/schema-component/antd/association-field/index.js +10 -2
  348. package/lib/schema-component/antd/association-field/util.js +1 -1
  349. package/lib/schema-component/antd/association-select/AssociationSelect.js +12 -12
  350. package/lib/schema-component/antd/auto-complete/AutoComplete.js +1 -1
  351. package/lib/schema-component/antd/color-picker/ColorPicker.js +2 -2
  352. package/lib/schema-component/antd/color-picker/util.js +18 -7
  353. package/lib/schema-component/antd/cron/Cron.js +1 -1
  354. package/lib/schema-component/antd/date-picker/ReadPretty.js +1 -1
  355. package/lib/schema-component/antd/date-picker/util.js +30 -19
  356. package/lib/schema-component/antd/filter/FilterAction.js +1 -1
  357. package/lib/schema-component/antd/filter/index.js +9 -0
  358. package/lib/schema-component/antd/form/Form.js +3 -3
  359. package/lib/schema-component/antd/form-item/FormItem.Settings.js +3 -3
  360. package/lib/schema-component/antd/form-item/FormItem.js +2 -2
  361. package/lib/schema-component/antd/form-item/SchemaSettingOptions.js +5 -5
  362. package/lib/schema-component/antd/form-item/hooks/useLazyLoadDisplayAssociationFieldsOfForm.js +1 -1
  363. package/lib/schema-component/antd/form-item/hooks/useParseDefaultValue.js +1 -1
  364. package/lib/schema-component/antd/form-v2/Form.Settings.js +2 -2
  365. package/lib/schema-component/antd/form-v2/Form.js +3 -4
  366. package/lib/schema-component/antd/form-v2/Templates.js +1 -1
  367. package/lib/schema-component/antd/form-v2/index.js +14 -0
  368. package/lib/schema-component/antd/form-v2/utils.js +2 -3
  369. package/lib/schema-component/antd/grid-card/GridCard.Decorator.js +2 -2
  370. package/lib/schema-component/antd/grid-card/GridCard.Designer.js +2 -2
  371. package/lib/schema-component/antd/icon-picker/IconPicker.js +2 -2
  372. package/lib/schema-component/antd/index.js +120 -187
  373. package/lib/schema-component/antd/input/ReadPretty.js +6 -6
  374. package/lib/schema-component/antd/input-number/ReadPretty.js +1 -1
  375. package/lib/schema-component/antd/list/List.Decorator.js +2 -2
  376. package/lib/schema-component/antd/list/List.Designer.js +2 -2
  377. package/lib/schema-component/antd/menu/Menu.Designer.js +2 -2
  378. package/lib/schema-component/antd/menu/Menu.js +1 -1
  379. package/lib/schema-component/antd/page/Page.js +2 -2
  380. package/lib/schema-component/antd/preview/Preview.js +2 -2
  381. package/lib/schema-component/antd/quick-edit/QuickEdit.js +3 -3
  382. package/lib/schema-component/antd/record-picker/util.js +1 -1
  383. package/lib/schema-component/antd/select/FormulaSelect.js +1 -1
  384. package/lib/schema-component/antd/select/ReadPretty.js +2 -2
  385. package/lib/schema-component/antd/select/Select.js +1 -1
  386. package/lib/schema-component/antd/select/utils.js +2 -2
  387. package/lib/schema-component/antd/space/index.js +2 -2
  388. package/lib/schema-component/antd/table/Table.Void.Designer.js +2 -2
  389. package/lib/schema-component/antd/table-v2/Table.js +1 -1
  390. package/lib/schema-component/antd/table-v2/TableBlockDesigner.js +2 -2
  391. package/lib/schema-component/antd/table-v2/TableSelectorDesigner.js +2 -2
  392. package/lib/schema-component/antd/table-v2/index.js +9 -0
  393. package/lib/schema-component/antd/time-picker/ReadPretty.js +2 -2
  394. package/lib/schema-component/antd/time-picker/TimePicker.js +3 -3
  395. package/lib/schema-component/antd/tree-select/ReadPretty.js +2 -2
  396. package/lib/schema-component/antd/upload/ReadPretty.js +2 -3
  397. package/lib/schema-component/antd/upload/Upload.js +2 -2
  398. package/lib/schema-component/antd/variable/CodeMirror.js +2 -2
  399. package/lib/schema-component/antd/variable/Input.js +1 -1
  400. package/lib/schema-component/antd/variable/TextArea.js +1 -1
  401. package/lib/schema-component/common/infinite-scroll/infinite-scroll.js +1 -1
  402. package/lib/schema-component/common/sortable-item/DragHandlePageTab.js +6 -7
  403. package/lib/schema-initializer/items/CustomFilterFormItemInitializer.js +4 -4
  404. package/lib/schema-settings/DataTemplates/components/AsDefaultTemplate.js +3 -3
  405. package/lib/schema-settings/DataTemplates/components/DataTemplateTitle.js +10 -10
  406. package/lib/schema-settings/DataTemplates/components/Designer.js +1 -1
  407. package/lib/schema-settings/DataTemplates/utils.js +4 -4
  408. package/lib/schema-settings/LinkageRules/LinkageRuleAction.js +2 -2
  409. package/lib/schema-settings/LinkageRules/components/EnableLinkage.js +3 -3
  410. package/lib/schema-settings/LinkageRules/components/LinkageHeader.js +10 -10
  411. package/lib/schema-settings/LinkageRules/index.js +271 -180
  412. package/lib/schema-settings/SchemaSettings.js +17 -18
  413. package/lib/schema-settings/SchemaSettingsDefaultValue.js +3 -3
  414. package/lib/schema-settings/SchemaSettingsSortingRule.js +2 -2
  415. package/lib/schema-settings/VariableInput/hooks/useContextAssociationFields.js +1 -1
  416. package/lib/schema-settings/VariableInput/index.js +9 -0
  417. package/lib/schema-settings/filter-form/FormFilterScope.js +2 -2
  418. package/lib/schema-settings/hooks/useParseDataScopeFilter.js +1 -1
  419. package/lib/schema-settings/index.js +75 -48
  420. package/lib/user/ChangePassword.js +2 -2
  421. package/lib/user/CurrentUser.js +1 -1
  422. package/lib/user/CurrentUserSettingsMenuProvider.js +1 -1
  423. package/lib/variables/VariablesProvider.js +2 -2
  424. package/lib/variables/hooks/useBuiltinVariables.js +13 -3
  425. package/package.json +12 -26
@@ -1,5 +1,76 @@
1
1
  "use strict";
2
- var __webpack_require__ = {};
2
+ var __webpack_modules__ = {
3
+ "../../application/hoc/withDynamicSchemaProps": function(module) {
4
+ module.exports = require("../../application/hoc/withDynamicSchemaProps.js");
5
+ },
6
+ "../../block-provider": function(module) {
7
+ module.exports = require("../../block-provider/index.js");
8
+ },
9
+ "../../collection-manager": function(module) {
10
+ module.exports = require("../../collection-manager/index.js");
11
+ },
12
+ "../../data-source/collection-record/CollectionRecordProvider": function(module) {
13
+ module.exports = require("../../data-source/collection-record/CollectionRecordProvider.js");
14
+ },
15
+ "../../record-provider": function(module) {
16
+ module.exports = require("../../record-provider/index.js");
17
+ },
18
+ "../../schema-component/antd/filter/context": function(module) {
19
+ module.exports = require("../../schema-component/antd/filter/context.js");
20
+ },
21
+ "../../schema-component": function(module) {
22
+ module.exports = require("../../schema-component/index.js");
23
+ },
24
+ "../VariableInput/VariableInput": function(module) {
25
+ module.exports = require("../VariableInput/VariableInput.js");
26
+ },
27
+ "./LinkageRuleActionGroup": function(module) {
28
+ module.exports = require("./LinkageRuleActionGroup.js");
29
+ },
30
+ "./action-hooks": function(module) {
31
+ module.exports = require("./action-hooks.js");
32
+ },
33
+ "./components/EnableLinkage": function(module) {
34
+ module.exports = require("./components/EnableLinkage.js");
35
+ },
36
+ "./components/LinkageHeader": function(module) {
37
+ module.exports = require("./components/LinkageHeader.js");
38
+ },
39
+ "./type": function(module) {
40
+ module.exports = require("./type.js");
41
+ },
42
+ "@tachybase/schema": function(module) {
43
+ module.exports = require("@tachybase/schema");
44
+ },
45
+ "antd-style": function(module) {
46
+ module.exports = require("antd-style");
47
+ },
48
+ react: function(module) {
49
+ module.exports = require("react");
50
+ },
51
+ "react/jsx-runtime": function(module) {
52
+ module.exports = require("react/jsx-runtime");
53
+ }
54
+ };
55
+ var __webpack_module_cache__ = {};
56
+ function __webpack_require__(moduleId) {
57
+ var cachedModule = __webpack_module_cache__[moduleId];
58
+ if (void 0 !== cachedModule) return cachedModule.exports;
59
+ var module = __webpack_module_cache__[moduleId] = {
60
+ exports: {}
61
+ };
62
+ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
63
+ return module.exports;
64
+ }
65
+ (()=>{
66
+ __webpack_require__.n = (module)=>{
67
+ var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
68
+ __webpack_require__.d(getter, {
69
+ a: getter
70
+ });
71
+ return getter;
72
+ };
73
+ })();
3
74
  (()=>{
4
75
  __webpack_require__.d = (exports1, definition)=>{
5
76
  for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
@@ -22,203 +93,223 @@ var __webpack_require__ = {};
22
93
  };
23
94
  })();
24
95
  var __webpack_exports__ = {};
25
- __webpack_require__.r(__webpack_exports__);
26
- __webpack_require__.d(__webpack_exports__, {
27
- FormLinkageRules: ()=>FormLinkageRules
28
- });
29
- const jsx_runtime_namespaceObject = require("react/jsx-runtime");
30
- const external_react_namespaceObject = require("react");
31
- const schema_namespaceObject = require("@tachybase/schema");
32
- const external_antd_style_namespaceObject = require("antd-style");
33
- const withDynamicSchemaProps_js_namespaceObject = require("../../application/hoc/withDynamicSchemaProps.js");
34
- const index_js_namespaceObject = require("../../block-provider/index.js");
35
- const external_collection_manager_index_js_namespaceObject = require("../../collection-manager/index.js");
36
- const CollectionRecordProvider_js_namespaceObject = require("../../data-source/collection-record/CollectionRecordProvider.js");
37
- const external_record_provider_index_js_namespaceObject = require("../../record-provider/index.js");
38
- const external_schema_component_index_js_namespaceObject = require("../../schema-component/index.js");
39
- const context_js_namespaceObject = require("../../schema-component/antd/filter/context.js");
40
- const VariableInput_js_namespaceObject = require("../VariableInput/VariableInput.js");
41
- const EnableLinkage_js_namespaceObject = require("./components/EnableLinkage.js");
42
- const LinkageHeader_js_namespaceObject = require("./components/LinkageHeader.js");
43
- const external_LinkageRuleActionGroup_js_namespaceObject = require("./LinkageRuleActionGroup.js");
44
- function _tagged_template_literal(strings, raw) {
45
- if (!raw) raw = strings.slice(0);
46
- return Object.freeze(Object.defineProperties(strings, {
47
- raw: {
48
- value: Object.freeze(raw)
49
- }
50
- }));
51
- }
52
- function _templateObject() {
53
- const data = _tagged_template_literal([
54
- "\n position: relative;\n width: 100%;\n margin-left: 10px;\n "
55
- ]);
56
- _templateObject = function() {
96
+ (()=>{
97
+ __webpack_require__.r(__webpack_exports__);
98
+ __webpack_require__.d(__webpack_exports__, {
99
+ FormLinkageRules: ()=>FormLinkageRules
100
+ });
101
+ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("react/jsx-runtime");
102
+ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("react");
103
+ var _tachybase_schema__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("@tachybase/schema");
104
+ var antd_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("antd-style");
105
+ var _application_hoc_withDynamicSchemaProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("../../application/hoc/withDynamicSchemaProps");
106
+ var _block_provider__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("../../block-provider");
107
+ var _collection_manager__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("../../collection-manager");
108
+ var _data_source_collection_record_CollectionRecordProvider__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("../../data-source/collection-record/CollectionRecordProvider");
109
+ var _record_provider__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("../../record-provider");
110
+ var _schema_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("../../schema-component");
111
+ var _schema_component_antd_filter_context__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("../../schema-component/antd/filter/context");
112
+ var _VariableInput_VariableInput__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("../VariableInput/VariableInput");
113
+ var _components_EnableLinkage__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("./components/EnableLinkage");
114
+ var _components_LinkageHeader__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("./components/LinkageHeader");
115
+ var _LinkageRuleActionGroup__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("./LinkageRuleActionGroup");
116
+ var _type__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__("./type");
117
+ var __WEBPACK_REEXPORT_OBJECT__ = {};
118
+ for(var __WEBPACK_IMPORT_KEY__ in _type__WEBPACK_IMPORTED_MODULE_15__)if ([
119
+ "FormLinkageRules",
120
+ "default"
121
+ ].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
122
+ return _type__WEBPACK_IMPORTED_MODULE_15__[key];
123
+ }).bind(0, __WEBPACK_IMPORT_KEY__);
124
+ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
125
+ var _action_hooks__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__("./action-hooks");
126
+ var __WEBPACK_REEXPORT_OBJECT__ = {};
127
+ for(var __WEBPACK_IMPORT_KEY__ in _action_hooks__WEBPACK_IMPORTED_MODULE_16__)if ([
128
+ "FormLinkageRules",
129
+ "default"
130
+ ].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
131
+ return _action_hooks__WEBPACK_IMPORTED_MODULE_16__[key];
132
+ }).bind(0, __WEBPACK_IMPORT_KEY__);
133
+ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
134
+ function _tagged_template_literal(strings, raw) {
135
+ if (!raw) raw = strings.slice(0);
136
+ return Object.freeze(Object.defineProperties(strings, {
137
+ raw: {
138
+ value: Object.freeze(raw)
139
+ }
140
+ }));
141
+ }
142
+ function _templateObject() {
143
+ const data = _tagged_template_literal([
144
+ "\n position: relative;\n width: 100%;\n margin-left: 10px;\n "
145
+ ]);
146
+ _templateObject = function() {
147
+ return data;
148
+ };
57
149
  return data;
58
- };
59
- return data;
60
- }
61
- const useStyles = (0, external_antd_style_namespaceObject.createStyles)((param)=>{
62
- let { css } = param;
63
- return {
64
- filter: css(_templateObject())
65
- };
66
- });
67
- const FormLinkageRules = (0, withDynamicSchemaProps_js_namespaceObject.withDynamicSchemaProps)((0, schema_namespaceObject.observer)((props)=>{
68
- const { styles } = useStyles();
69
- const fieldSchema = (0, schema_namespaceObject.useFieldSchema)();
70
- const { options, defaultValues, collectionName, form, formBlockType, variables, localVariables, record, dynamicComponent } = (0, external_schema_component_index_js_namespaceObject.useProps)(props);
71
- const { getAllCollectionsInheritChain } = (0, external_collection_manager_index_js_namespaceObject.useCollectionManager_deprecated)();
72
- const parentRecordData = (0, CollectionRecordProvider_js_namespaceObject.useCollectionParentRecordData)();
73
- const components = (0, external_react_namespaceObject.useMemo)(()=>({
74
- ArrayCollapse: LinkageHeader_js_namespaceObject.ArrayCollapse
75
- }), []);
76
- const schema = (0, external_react_namespaceObject.useMemo)(()=>({
77
- type: 'object',
78
- properties: {
79
- rules: {
80
- type: 'array',
81
- default: defaultValues,
82
- 'x-component': 'ArrayCollapse',
83
- 'x-decorator': 'FormItem',
84
- 'x-component-props': {
85
- accordion: true
86
- },
87
- items: {
88
- type: 'object',
89
- 'x-component': 'ArrayCollapse.CollapsePanel',
150
+ }
151
+ const useStyles = (0, antd_style__WEBPACK_IMPORTED_MODULE_3__.createStyles)((param)=>{
152
+ let { css } = param;
153
+ return {
154
+ filter: css(_templateObject())
155
+ };
156
+ });
157
+ const FormLinkageRules = (0, _application_hoc_withDynamicSchemaProps__WEBPACK_IMPORTED_MODULE_4__.withDynamicSchemaProps)((0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_2__.observer)((props)=>{
158
+ const { styles } = useStyles();
159
+ const fieldSchema = (0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_2__.useFieldSchema)();
160
+ const { options, defaultValues, collectionName, form, formBlockType, variables, localVariables, record, dynamicComponent } = (0, _schema_component__WEBPACK_IMPORTED_MODULE_9__.useProps)(props);
161
+ const { getAllCollectionsInheritChain } = (0, _collection_manager__WEBPACK_IMPORTED_MODULE_6__.useCollectionManager_deprecated)();
162
+ const parentRecordData = (0, _data_source_collection_record_CollectionRecordProvider__WEBPACK_IMPORTED_MODULE_7__.useCollectionParentRecordData)();
163
+ const components = (0, react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(()=>({
164
+ ArrayCollapse: _components_LinkageHeader__WEBPACK_IMPORTED_MODULE_13__.ArrayCollapse
165
+ }), []);
166
+ const schema = (0, react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(()=>({
167
+ type: 'object',
168
+ properties: {
169
+ rules: {
170
+ type: 'array',
171
+ default: defaultValues,
172
+ 'x-component': 'ArrayCollapse',
173
+ 'x-decorator': 'FormItem',
90
174
  'x-component-props': {
91
- extra: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(EnableLinkage_js_namespaceObject.EnableLinkage, {})
175
+ accordion: true
92
176
  },
93
- properties: {
94
- layout: {
95
- type: 'void',
96
- 'x-component': 'FormLayout',
97
- 'x-component-props': {
98
- labelStyle: {
99
- marginTop: '6px'
100
- },
101
- labelCol: 8,
102
- wrapperCol: 16
103
- },
104
- properties: {
105
- conditions: {
106
- 'x-component': 'h4',
107
- 'x-content': '{{ t("Condition") }}'
177
+ items: {
178
+ type: 'object',
179
+ 'x-component': 'ArrayCollapse.CollapsePanel',
180
+ 'x-component-props': {
181
+ extra: /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components_EnableLinkage__WEBPACK_IMPORTED_MODULE_12__.EnableLinkage, {})
182
+ },
183
+ properties: {
184
+ layout: {
185
+ type: 'void',
186
+ 'x-component': 'FormLayout',
187
+ 'x-component-props': {
188
+ labelStyle: {
189
+ marginTop: '6px'
190
+ },
191
+ labelCol: 8,
192
+ wrapperCol: 16
108
193
  },
109
- condition: {
110
- 'x-component': 'Filter',
111
- 'x-use-component-props': ()=>({
112
- options,
113
- className: styles.filter
114
- }),
115
- 'x-component-props': {
116
- collectionName,
117
- dynamicComponent: (props)=>{
118
- const { collectionField } = props;
119
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(VariableInput_js_namespaceObject.VariableInput, {
120
- ...props,
121
- form: form,
122
- record: record,
123
- shouldChange: (0, VariableInput_js_namespaceObject.getShouldChange)({
124
- collectionField,
125
- variables,
126
- localVariables,
127
- getAllCollectionsInheritChain
128
- })
129
- });
194
+ properties: {
195
+ conditions: {
196
+ 'x-component': 'h4',
197
+ 'x-content': '{{ t("Condition") }}'
198
+ },
199
+ condition: {
200
+ 'x-component': 'Filter',
201
+ 'x-use-component-props': ()=>({
202
+ options,
203
+ className: styles.filter
204
+ }),
205
+ 'x-component-props': {
206
+ collectionName,
207
+ dynamicComponent: (props)=>{
208
+ const { collectionField } = props;
209
+ return /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_VariableInput_VariableInput__WEBPACK_IMPORTED_MODULE_11__.VariableInput, {
210
+ ...props,
211
+ form: form,
212
+ record: record,
213
+ shouldChange: (0, _VariableInput_VariableInput__WEBPACK_IMPORTED_MODULE_11__.getShouldChange)({
214
+ collectionField,
215
+ variables,
216
+ localVariables,
217
+ getAllCollectionsInheritChain
218
+ })
219
+ });
220
+ }
221
+ }
222
+ },
223
+ actions: {
224
+ 'x-component': 'h4',
225
+ 'x-content': '{{ t("Properties") }}'
226
+ },
227
+ action: {
228
+ type: 'void',
229
+ 'x-component': _LinkageRuleActionGroup__WEBPACK_IMPORTED_MODULE_14__.LinkageRuleActionGroup,
230
+ 'x-component-props': {
231
+ ...props
130
232
  }
131
- }
132
- },
133
- actions: {
134
- 'x-component': 'h4',
135
- 'x-content': '{{ t("Properties") }}'
136
- },
137
- action: {
138
- type: 'void',
139
- 'x-component': external_LinkageRuleActionGroup_js_namespaceObject.LinkageRuleActionGroup,
140
- 'x-component-props': {
141
- ...props
142
233
  }
143
234
  }
235
+ },
236
+ remove: {
237
+ type: 'void',
238
+ 'x-component': 'ArrayCollapse.Remove'
239
+ },
240
+ moveUp: {
241
+ type: 'void',
242
+ 'x-component': 'ArrayCollapse.MoveUp'
243
+ },
244
+ moveDown: {
245
+ type: 'void',
246
+ 'x-component': 'ArrayCollapse.MoveDown'
247
+ },
248
+ copy: {
249
+ type: 'void',
250
+ 'x-component': 'ArrayCollapse.Copy'
144
251
  }
145
- },
146
- remove: {
147
- type: 'void',
148
- 'x-component': 'ArrayCollapse.Remove'
149
- },
150
- moveUp: {
151
- type: 'void',
152
- 'x-component': 'ArrayCollapse.MoveUp'
153
- },
154
- moveDown: {
155
- type: 'void',
156
- 'x-component': 'ArrayCollapse.MoveDown'
157
- },
158
- copy: {
159
- type: 'void',
160
- 'x-component': 'ArrayCollapse.Copy'
161
252
  }
162
- }
163
- },
164
- properties: {
165
- add: {
166
- type: 'void',
167
- title: '{{ t("Add linkage rule") }}',
168
- 'x-component': 'ArrayCollapse.Addition',
169
- 'x-reactions': {
170
- dependencies: [
171
- 'rules'
172
- ],
173
- fulfill: {
174
- state: {}
253
+ },
254
+ properties: {
255
+ add: {
256
+ type: 'void',
257
+ title: '{{ t("Add linkage rule") }}',
258
+ 'x-component': 'ArrayCollapse.Addition',
259
+ 'x-reactions': {
260
+ dependencies: [
261
+ 'rules'
262
+ ],
263
+ fulfill: {
264
+ state: {}
265
+ }
175
266
  }
176
267
  }
177
268
  }
178
269
  }
179
270
  }
180
- }
181
- }), [
182
- collectionName,
183
- defaultValues,
184
- form,
185
- localVariables,
186
- options,
187
- props,
188
- record,
189
- variables
190
- ]);
191
- const value = (0, external_react_namespaceObject.useMemo)(()=>({
192
- field: options,
193
- fieldSchema,
194
- dynamicComponent,
195
- options: options || []
196
- }), [
197
- dynamicComponent,
198
- fieldSchema,
199
- options
200
- ]);
201
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_js_namespaceObject.FormBlockContext.Provider, {
202
- value: {
271
+ }), [
272
+ collectionName,
273
+ defaultValues,
203
274
  form,
204
- type: formBlockType,
205
- collectionName
206
- },
207
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_record_provider_index_js_namespaceObject.RecordProvider, {
208
- record: record,
209
- parent: parentRecordData,
210
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(context_js_namespaceObject.FilterContext.Provider, {
211
- value: value,
212
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_schema_component_index_js_namespaceObject.SchemaComponent, {
213
- components: components,
214
- schema: schema
275
+ localVariables,
276
+ options,
277
+ props,
278
+ record,
279
+ variables
280
+ ]);
281
+ const value = (0, react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(()=>({
282
+ field: options,
283
+ fieldSchema,
284
+ dynamicComponent,
285
+ options: options || []
286
+ }), [
287
+ dynamicComponent,
288
+ fieldSchema,
289
+ options
290
+ ]);
291
+ return /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_block_provider__WEBPACK_IMPORTED_MODULE_5__.FormBlockContext.Provider, {
292
+ value: {
293
+ form,
294
+ type: formBlockType,
295
+ collectionName
296
+ },
297
+ children: /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_record_provider__WEBPACK_IMPORTED_MODULE_8__.RecordProvider, {
298
+ record: record,
299
+ parent: parentRecordData,
300
+ children: /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_schema_component_antd_filter_context__WEBPACK_IMPORTED_MODULE_10__.FilterContext.Provider, {
301
+ value: value,
302
+ children: /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_schema_component__WEBPACK_IMPORTED_MODULE_9__.SchemaComponent, {
303
+ components: components,
304
+ schema: schema
305
+ })
215
306
  })
216
307
  })
217
- })
308
+ });
309
+ }), {
310
+ displayName: 'FormLinkageRules'
218
311
  });
219
- }), {
220
- displayName: 'FormLinkageRules'
221
- });
312
+ })();
222
313
  exports.FormLinkageRules = __webpack_exports__.FormLinkageRules;
223
314
  for(var __webpack_i__ in __webpack_exports__)if (-1 === [
224
315
  "FormLinkageRules"
@@ -64,9 +64,8 @@ __webpack_require__.d(__webpack_exports__, {
64
64
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
65
65
  const external_react_namespaceObject = require("react");
66
66
  var external_react_default = /*#__PURE__*/ __webpack_require__.n(external_react_namespaceObject);
67
- const components_namespaceObject = require("@tachybase/components");
68
67
  const schema_namespaceObject = require("@tachybase/schema");
69
- const client_namespaceObject = require("@tachybase/utils/client");
68
+ const client_namespaceObject = require("@tego/client");
70
69
  const external_antd_namespaceObject = require("antd");
71
70
  const external_antd_style_namespaceObject = require("antd-style");
72
71
  const external_lodash_namespaceObject = require("lodash");
@@ -223,12 +222,12 @@ const SchemaSettingsTemplate = function(props) {
223
222
  onClick: async ()=>{
224
223
  setVisible(false);
225
224
  const collection = collectionName && getCollection(collectionName);
226
- const values = await (0, external_index_js_namespaceObject.FormDialog)(t('Save as template'), ()=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(components_namespaceObject.FormLayout, {
225
+ const values = await (0, external_index_js_namespaceObject.FormDialog)(t('Save as template'), ()=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(client_namespaceObject.FormLayout, {
227
226
  layout: 'vertical',
228
227
  children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_index_js_namespaceObject.SchemaComponent, {
229
228
  components: {
230
- Input: components_namespaceObject.Input,
231
- FormItem: components_namespaceObject.FormItem
229
+ Input: client_namespaceObject.Input,
230
+ FormItem: client_namespaceObject.FormItem
232
231
  },
233
232
  schema: {
234
233
  type: 'object',
@@ -345,12 +344,12 @@ const SchemaSettingsFormItemTemplate = function(props) {
345
344
  FormItem: t('Form'),
346
345
  ReadPrettyFormItem: t('Details')
347
346
  };
348
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(components_namespaceObject.FormLayout, {
347
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(client_namespaceObject.FormLayout, {
349
348
  layout: 'vertical',
350
349
  children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_index_js_namespaceObject.SchemaComponent, {
351
350
  components: {
352
- Input: components_namespaceObject.Input,
353
- FormItem: components_namespaceObject.FormItem
351
+ Input: client_namespaceObject.Input,
352
+ FormItem: client_namespaceObject.FormItem
354
353
  },
355
354
  schema: {
356
355
  type: 'object',
@@ -834,7 +833,7 @@ const SchemaSettingsActionModalItem = /*#__PURE__*/ external_react_default().mem
834
833
  getActiveFieldsName: null == upLevelActiveFields ? void 0 : upLevelActiveFields.getActiveFieldsName,
835
834
  children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_index_js_namespaceObject.FormProvider, {
836
835
  form: form,
837
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(components_namespaceObject.FormLayout, {
836
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(client_namespaceObject.FormLayout, {
838
837
  layout: 'vertical',
839
838
  children: [
840
839
  modalTip && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_antd_namespaceObject.Alert, {
@@ -934,7 +933,7 @@ const SchemaSettingsModalItem = (props)=>{
934
933
  children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_index_js_namespaceObject.SchemaComponentOptions, {
935
934
  scope: options.scope,
936
935
  components: options.components,
937
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(components_namespaceObject.FormLayout, {
936
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(client_namespaceObject.FormLayout, {
938
937
  layout: 'vertical',
939
938
  className: styles.modal,
940
939
  children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_index_js_namespaceObject.APIClientProvider, {
@@ -1043,7 +1042,7 @@ const SchemaSettingsDefaultSortingRules = function(props) {
1043
1042
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(SchemaSettingsModalItem, {
1044
1043
  title: title,
1045
1044
  components: {
1046
- ArrayItems: components_namespaceObject.ArrayItems
1045
+ ArrayItems: client_namespaceObject.ArrayItems
1047
1046
  },
1048
1047
  schema: {
1049
1048
  type: 'object',
@@ -1171,8 +1170,8 @@ const SchemaSettingsLinkageRules = function(props) {
1171
1170
  variables
1172
1171
  ]);
1173
1172
  const components = (0, external_react_namespaceObject.useMemo)(()=>({
1174
- ArrayCollapse: components_namespaceObject.ArrayCollapse,
1175
- FormLayout: components_namespaceObject.FormLayout
1173
+ ArrayCollapse: client_namespaceObject.ArrayCollapse,
1174
+ FormLayout: client_namespaceObject.FormLayout
1176
1175
  }), []);
1177
1176
  const onSubmit = (0, external_react_namespaceObject.useCallback)((v)=>{
1178
1177
  var _gridSchema_xcomponentprops;
@@ -1245,7 +1244,7 @@ const SchemaSettingsDataTemplates = function(props) {
1245
1244
  ]);
1246
1245
  const onSubmit = (0, external_react_namespaceObject.useCallback)((v)=>{
1247
1246
  const data = {
1248
- ...formSchema['x-data-templates'] || {},
1247
+ ...formSchema['x-data-templates'],
1249
1248
  ...v.fieldReaction
1250
1249
  };
1251
1250
  data.items.forEach((item)=>{
@@ -1263,8 +1262,8 @@ const SchemaSettingsDataTemplates = function(props) {
1263
1262
  }, []);
1264
1263
  const title = (0, external_react_namespaceObject.useMemo)(()=>t('Form data templates'), []);
1265
1264
  const components = (0, external_react_namespaceObject.useMemo)(()=>({
1266
- ArrayCollapse: components_namespaceObject.ArrayCollapse,
1267
- FormLayout: components_namespaceObject.FormLayout
1265
+ ArrayCollapse: client_namespaceObject.ArrayCollapse,
1266
+ FormLayout: client_namespaceObject.FormLayout
1268
1267
  }), []);
1269
1268
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(SchemaSettingsModalItem, {
1270
1269
  title: title,
@@ -1289,8 +1288,8 @@ function SchemaSettingsEnableChildCollections(props) {
1289
1288
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(SchemaSettingsModalItem, {
1290
1289
  title: t('Enable child collections'),
1291
1290
  components: {
1292
- ArrayItems: components_namespaceObject.ArrayItems,
1293
- FormLayout: components_namespaceObject.FormLayout
1291
+ ArrayItems: client_namespaceObject.ArrayItems,
1292
+ FormLayout: client_namespaceObject.FormLayout
1294
1293
  },
1295
1294
  scope: {
1296
1295
  isAssocationAdd
@@ -37,8 +37,8 @@ __webpack_require__.d(__webpack_exports__, {
37
37
  });
38
38
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
39
39
  const external_react_namespaceObject = require("react");
40
- const components_namespaceObject = require("@tachybase/components");
41
40
  const schema_namespaceObject = require("@tachybase/schema");
41
+ const client_namespaceObject = require("@tego/client");
42
42
  const external_antd_style_namespaceObject = require("antd-style");
43
43
  const external_lodash_namespaceObject = require("lodash");
44
44
  var external_lodash_default = /*#__PURE__*/ __webpack_require__.n(external_lodash_namespaceObject);
@@ -120,8 +120,8 @@ const SchemaSettingsDefaultValue = function(props) {
120
120
  name
121
121
  ]);
122
122
  const DefaultValueComponent = (0, external_react_namespaceObject.useMemo)(()=>({
123
- ArrayCollapse: components_namespaceObject.ArrayCollapse,
124
- FormLayout: components_namespaceObject.FormLayout,
123
+ ArrayCollapse: client_namespaceObject.ArrayCollapse,
124
+ FormLayout: client_namespaceObject.FormLayout,
125
125
  VariableInput: (props)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_flag_provider_index_js_namespaceObject.FlagProvider, {
126
126
  isInSubForm: isInSubForm,
127
127
  isInSubTable: isInSubTable,
@@ -37,8 +37,8 @@ __webpack_require__.d(__webpack_exports__, {
37
37
  });
38
38
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
39
39
  require("react");
40
- const components_namespaceObject = require("@tachybase/components");
41
40
  const schema_namespaceObject = require("@tachybase/schema");
41
+ const client_namespaceObject = require("@tego/client");
42
42
  const external_lodash_namespaceObject = require("lodash");
43
43
  var external_lodash_default = /*#__PURE__*/ __webpack_require__.n(external_lodash_namespaceObject);
44
44
  const external_react_i18next_namespaceObject = require("react-i18next");
@@ -67,7 +67,7 @@ const SchemaSettingsSortingRule = function(props) {
67
67
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_SchemaSettings_js_namespaceObject.SchemaSettingsModalItem, {
68
68
  title: t('Set default sorting rules'),
69
69
  components: {
70
- ArrayItems: components_namespaceObject.ArrayItems
70
+ ArrayItems: client_namespaceObject.ArrayItems
71
71
  },
72
72
  schema: {
73
73
  type: 'object',