@tachybase/client 1.3.20 → 1.3.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (326) 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 +2 -11
  7. package/es/application/WebSocketClient.mjs +1 -1
  8. package/es/application/components/index.d.ts +0 -2
  9. package/es/application/components/index.mjs +0 -2
  10. package/es/application/schema-initializer/context/index.d.ts +1 -1
  11. package/es/application/utils/globalDeps.d.ts +1 -1
  12. package/es/application/utils/globalDeps.mjs +4 -12
  13. package/es/application/utils/remotePlugins.d.ts +1 -1
  14. package/es/block-provider/FormFieldProvider.mjs +1 -1
  15. package/es/block-provider/hooks/index.mjs +2 -2
  16. package/es/block-provider/hooks/useParsedFilter.mjs +1 -1
  17. package/es/built-in/acl/Configuration/RolesResourcesActions.mjs +1 -1
  18. package/es/built-in/context-menu/ContextMenuItemsProps.mjs +1 -1
  19. package/es/built-in/index.d.ts +2 -1
  20. package/es/built-in/index.mjs +4 -3
  21. package/es/built-in/page-style/useTabSettings.mjs +3 -3
  22. package/es/built-in/pm/PluginManager.mjs +1 -1
  23. package/es/built-in/quick-access/ModalActionSchemaInitializerItem.mjs +1 -1
  24. package/es/collection-manager/Configuration/AddCollectionAction.mjs +1 -1
  25. package/es/collection-manager/Configuration/AddFieldAction.mjs +1 -1
  26. package/es/collection-manager/Configuration/AddSubFieldAction.mjs +1 -1
  27. package/es/collection-manager/Configuration/EditCollectionAction.mjs +1 -1
  28. package/es/collection-manager/Configuration/EditFieldAction.mjs +1 -1
  29. package/es/collection-manager/Configuration/EditSubFieldAction.mjs +1 -1
  30. package/es/collection-manager/Configuration/ImportXlsx/xlsxImportAction.mjs +1 -1
  31. package/es/collection-manager/Configuration/OverridingCollectionField.mjs +1 -1
  32. package/es/collection-manager/Configuration/SyncFieldsAction.mjs +1 -1
  33. package/es/collection-manager/Configuration/SyncSQLFieldsAction.mjs +1 -1
  34. package/es/collection-manager/Configuration/ViewInheritedField.mjs +1 -1
  35. package/es/collection-manager/collectionPlugin.mjs +36 -0
  36. package/es/collection-manager/hooks/useCollection_deprecated.d.ts +1 -1
  37. package/es/collection-manager/interfaces/json.mjs +1 -1
  38. package/es/collection-manager/interfaces/radioGroup.d.ts +11 -11
  39. package/es/collection-manager/interfaces/url.d.ts +4 -0
  40. package/es/collection-manager/interfaces/url.mjs +10 -1
  41. package/es/collection-manager/templates/expression.mjs +1 -1
  42. package/es/collection-manager/templates/properties/index.d.ts +1 -1
  43. package/es/collection-manager/templates/sql.d.ts +3 -3
  44. package/es/collection-manager/templates/view.d.ts +3 -3
  45. package/es/data-source/collection-field-interface/CollectionFieldInterface.mjs +1 -15
  46. package/es/data-source/data-block/DataBlockResourceProvider.d.ts +1 -1
  47. package/es/filter-provider/utils.mjs +1 -1
  48. package/es/modules/actions/link/customizeLinkActionSettings.mjs +1 -1
  49. package/es/modules/blocks/data-blocks/details-multi/detailsWithPaginationSettings.mjs +1 -1
  50. package/es/modules/blocks/data-blocks/form/FormBlockInitializer.d.ts +11 -11
  51. package/es/modules/blocks/data-blocks/form/fieldSettingsFormItem.mjs +2 -5
  52. package/es/modules/blocks/data-blocks/grid-card/gridCardBlockSettings.mjs +1 -1
  53. package/es/modules/blocks/data-blocks/list/listBlockSettings.mjs +1 -1
  54. package/es/modules/blocks/data-blocks/table/hooks/useTableBlockProps.mjs +14 -2
  55. package/es/modules/blocks/data-blocks/table/tableBlockSettings.mjs +1 -1
  56. package/es/modules/blocks/data-blocks/table/tableColumnSettings.mjs +1 -3
  57. package/es/modules/blocks/data-blocks/table-selector/tableSelectorBlockSettings.mjs +1 -1
  58. package/es/modules/blocks/filter-blocks/collapse/filterCollapseItemFieldSettings.mjs +0 -4
  59. package/es/modules/blocks/filter-blocks/form/filterFormItemFieldSettings.mjs +1 -5
  60. package/es/modules/blocks/filter-blocks/tree/filterTreeItemFieldSettings.mjs +1 -1
  61. package/es/modules/fields/component/Cascader/cascaderComponentFieldSettings.mjs +1 -1
  62. package/es/modules/fields/component/CustomTitle/customTitleComponentFieldSettings.mjs +95 -5
  63. package/es/modules/fields/component/InputPreview/inputPreviewComponentFieldSettings.d.ts +2 -0
  64. package/es/modules/fields/component/InputPreview/inputPreviewComponentFieldSettings.mjs +99 -0
  65. package/es/modules/fields/component/MultipleSelect/multipleSelectComponentFieldSettings.d.ts +2 -0
  66. package/es/modules/fields/component/MultipleSelect/multipleSelectComponentFieldSettings.mjs +64 -0
  67. package/es/modules/fields/component/Radio/radioComponentFieldSettings.mjs +15 -2
  68. package/es/modules/fields/component/Select/selectComponentFieldSettings.mjs +26 -7
  69. package/es/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.d.ts +1 -1
  70. package/es/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.mjs +1 -1
  71. package/es/modules/menu/GroupItem.mjs +1 -1
  72. package/es/modules/menu/LinkMenuItem.mjs +1 -1
  73. package/es/modules/menu/PageMenuItem.mjs +1 -1
  74. package/es/modules/menu/UploadMenuItem.mjs +1 -1
  75. package/es/schema-component/antd/action/Action.Designer.mjs +1 -1
  76. package/es/schema-component/antd/action/Action.mjs +1 -1
  77. package/es/schema-component/antd/association-field/InternalCascadeSelect.mjs +1 -1
  78. package/es/schema-component/antd/association-field/InternalCascader.mjs +1 -2
  79. package/es/schema-component/antd/association-field/InternalNester.mjs +1 -1
  80. package/es/schema-component/antd/association-field/InternalSubTable.mjs +1 -1
  81. package/es/schema-component/antd/association-field/InternalViewer.mjs +4 -58
  82. package/es/schema-component/antd/association-field/SubTabs/InternalCollapse.mjs +1 -1
  83. package/es/schema-component/antd/association-field/SubTabs/hook.mjs +1 -1
  84. package/es/schema-component/antd/association-field/hooks.d.ts +4 -0
  85. package/es/schema-component/antd/association-field/hooks.mjs +53 -2
  86. package/es/schema-component/antd/association-field/util.mjs +1 -1
  87. package/es/schema-component/antd/association-select/AssociationSelect.mjs +2 -2
  88. package/es/schema-component/antd/auto-complete/AutoComplete.mjs +1 -1
  89. package/es/schema-component/antd/color-picker/ColorPicker.mjs +1 -1
  90. package/es/schema-component/antd/color-picker/util.d.ts +1 -1
  91. package/es/schema-component/antd/color-picker/util.mjs +1 -1
  92. package/es/schema-component/antd/cron/Cron.mjs +1 -1
  93. package/es/schema-component/antd/date-picker/ReadPretty.mjs +1 -1
  94. package/es/schema-component/antd/date-picker/util.d.ts +1 -1
  95. package/es/schema-component/antd/date-picker/util.mjs +1 -1
  96. package/es/schema-component/antd/filter/FilterAction.mjs +1 -1
  97. package/es/schema-component/antd/form/Form.mjs +1 -1
  98. package/es/schema-component/antd/form-item/FormItem.Settings.mjs +1 -1
  99. package/es/schema-component/antd/form-item/FormItem.mjs +1 -1
  100. package/es/schema-component/antd/form-item/SchemaSettingOptions.mjs +1 -1
  101. package/es/schema-component/antd/form-item/hooks/useLazyLoadDisplayAssociationFieldsOfForm.mjs +1 -1
  102. package/es/schema-component/antd/form-item/hooks/useParseDefaultValue.mjs +1 -1
  103. package/es/schema-component/antd/form-v2/Form.Settings.mjs +1 -1
  104. package/es/schema-component/antd/form-v2/Form.mjs +1 -2
  105. package/es/schema-component/antd/form-v2/Templates.mjs +1 -1
  106. package/es/schema-component/antd/form-v2/utils.mjs +1 -2
  107. package/es/schema-component/antd/grid-card/GridCard.Decorator.mjs +1 -1
  108. package/es/schema-component/antd/grid-card/GridCard.Designer.mjs +1 -1
  109. package/es/schema-component/antd/icon-picker/IconPicker.mjs +1 -1
  110. package/es/schema-component/antd/index.d.ts +0 -1
  111. package/es/schema-component/antd/index.mjs +1 -2
  112. package/es/schema-component/antd/input/Input.mjs +2 -1
  113. package/es/schema-component/antd/input/ReadPretty.d.ts +1 -0
  114. package/es/schema-component/antd/input/ReadPretty.mjs +30 -2
  115. package/es/schema-component/antd/input-number/ReadPretty.mjs +1 -1
  116. package/es/schema-component/antd/list/List.Decorator.mjs +1 -1
  117. package/es/schema-component/antd/list/List.Designer.mjs +1 -1
  118. package/es/schema-component/antd/menu/Menu.Designer.mjs +1 -1
  119. package/es/schema-component/antd/menu/Menu.mjs +1 -1
  120. package/es/schema-component/antd/page/Page.Settings.mjs +0 -33
  121. package/es/schema-component/antd/page/Page.mjs +47 -96
  122. package/es/schema-component/antd/page/hooks/index.d.ts +1 -1
  123. package/es/schema-component/antd/page/hooks/index.mjs +1 -1
  124. package/es/schema-component/antd/page/index.d.ts +1 -0
  125. package/es/schema-component/antd/page/index.mjs +1 -0
  126. package/es/schema-component/antd/page/pageExtendComponentProvider.d.ts +3 -0
  127. package/es/schema-component/antd/page/pageExtendComponentProvider.mjs +9 -0
  128. package/es/schema-component/antd/page/style.d.ts +0 -5
  129. package/es/schema-component/antd/page/style.mjs +1 -45
  130. package/es/schema-component/antd/preview/Preview.mjs +1 -1
  131. package/es/schema-component/antd/quick-edit/QuickEdit.mjs +1 -1
  132. package/es/schema-component/antd/record-picker/util.mjs +1 -1
  133. package/es/schema-component/antd/select/FormulaSelect.mjs +17 -5
  134. package/es/schema-component/antd/select/ReadPretty.mjs +16 -3
  135. package/es/schema-component/antd/select/Select.mjs +7 -2
  136. package/es/schema-component/antd/select/utils.mjs +2 -2
  137. package/es/schema-component/antd/space/index.mjs +1 -1
  138. package/es/schema-component/antd/table/Table.Void.Designer.mjs +1 -1
  139. package/es/schema-component/antd/table-v2/Table.mjs +1 -1
  140. package/es/schema-component/antd/table-v2/TableBlockDesigner.mjs +1 -1
  141. package/es/schema-component/antd/table-v2/TableSelectorDesigner.mjs +1 -1
  142. package/es/schema-component/antd/time-picker/ReadPretty.mjs +1 -1
  143. package/es/schema-component/antd/time-picker/TimePicker.mjs +1 -1
  144. package/es/schema-component/antd/tree-select/ReadPretty.mjs +1 -1
  145. package/es/schema-component/antd/upload/ReadPretty.mjs +1 -2
  146. package/es/schema-component/antd/upload/Upload.mjs +1 -1
  147. package/es/schema-component/antd/variable/CodeMirror.mjs +1 -1
  148. package/es/schema-component/antd/variable/Input.mjs +1 -1
  149. package/es/schema-component/antd/variable/TextArea.mjs +1 -1
  150. package/es/schema-component/common/infinite-scroll/infinite-scroll.mjs +1 -1
  151. package/es/schema-component/hooks/useFieldModeOptions.mjs +13 -10
  152. package/es/schema-initializer/items/CustomFilterFormItemInitializer.mjs +2 -2
  153. package/es/schema-settings/DataTemplates/components/AsDefaultTemplate.mjs +1 -1
  154. package/es/schema-settings/DataTemplates/components/DataTemplateTitle.mjs +1 -1
  155. package/es/schema-settings/DataTemplates/components/Designer.mjs +1 -1
  156. package/es/schema-settings/DataTemplates/utils.mjs +1 -1
  157. package/es/schema-settings/EditFormulaTitleField.mjs +19 -1
  158. package/es/schema-settings/LinkageRules/LinkageRuleAction.mjs +1 -1
  159. package/es/schema-settings/LinkageRules/components/EnableLinkage.mjs +1 -1
  160. package/es/schema-settings/LinkageRules/components/LinkageHeader.mjs +1 -1
  161. package/es/schema-settings/SchemaSettings.mjs +2 -3
  162. package/es/schema-settings/SchemaSettingsDefaultValue.mjs +1 -1
  163. package/es/schema-settings/SchemaSettingsPlugin.mjs +4 -0
  164. package/es/schema-settings/SchemaSettingsSortingRule.mjs +1 -1
  165. package/es/schema-settings/VariableInput/hooks/useContextAssociationFields.mjs +1 -1
  166. package/es/schema-settings/filter-form/FormFilterScope.mjs +1 -1
  167. package/es/schema-settings/hooks/useParseDataScopeFilter.mjs +1 -1
  168. package/es/user/ChangePassword.mjs +2 -2
  169. package/es/user/CurrentUser.mjs +1 -1
  170. package/es/user/CurrentUserSettingsMenuProvider.mjs +1 -1
  171. package/es/variables/VariablesProvider.mjs +2 -2
  172. package/es/variables/hooks/useBuiltinVariables.mjs +1 -1
  173. package/lib/api-client/APIClient.js +2 -2
  174. package/lib/api-client/hooks/assign.js +1 -1
  175. package/lib/application/Application.js +6 -15
  176. package/lib/application/WebSocketClient.js +2 -2
  177. package/lib/application/components/index.js +0 -18
  178. package/lib/application/utils/globalDeps.js +3 -11
  179. package/lib/block-provider/FormFieldProvider.js +1 -1
  180. package/lib/block-provider/hooks/index.js +14 -14
  181. package/lib/block-provider/hooks/useParsedFilter.js +1 -1
  182. package/lib/built-in/acl/Configuration/RolesResourcesActions.js +4 -4
  183. package/lib/built-in/context-menu/ContextMenuItemsProps.js +1 -1
  184. package/lib/built-in/index.js +42 -16
  185. package/lib/built-in/page-style/useTabSettings.js +3 -3
  186. package/lib/built-in/pm/PluginManager.js +1 -1
  187. package/lib/built-in/quick-access/ModalActionSchemaInitializerItem.js +1 -1
  188. package/lib/collection-manager/Configuration/AddCollectionAction.js +2 -2
  189. package/lib/collection-manager/Configuration/AddFieldAction.js +2 -2
  190. package/lib/collection-manager/Configuration/AddSubFieldAction.js +2 -2
  191. package/lib/collection-manager/Configuration/EditCollectionAction.js +2 -2
  192. package/lib/collection-manager/Configuration/EditFieldAction.js +2 -2
  193. package/lib/collection-manager/Configuration/EditSubFieldAction.js +2 -2
  194. package/lib/collection-manager/Configuration/ImportXlsx/xlsxImportAction.js +2 -2
  195. package/lib/collection-manager/Configuration/OverridingCollectionField.js +2 -2
  196. package/lib/collection-manager/Configuration/SyncFieldsAction.js +2 -2
  197. package/lib/collection-manager/Configuration/SyncSQLFieldsAction.js +2 -2
  198. package/lib/collection-manager/Configuration/ViewInheritedField.js +2 -2
  199. package/lib/collection-manager/collectionPlugin.js +36 -0
  200. package/lib/collection-manager/interfaces/json.js +3 -3
  201. package/lib/collection-manager/interfaces/url.js +10 -1
  202. package/lib/collection-manager/templates/expression.js +1 -1
  203. package/lib/data-source/collection-field-interface/CollectionFieldInterface.js +1 -15
  204. package/lib/filter-provider/utils.js +1 -1
  205. package/lib/locale/zh-CN.js +1 -0
  206. package/lib/modules/actions/link/customizeLinkActionSettings.js +2 -2
  207. package/lib/modules/blocks/data-blocks/details-multi/detailsWithPaginationSettings.js +2 -2
  208. package/lib/modules/blocks/data-blocks/form/fieldSettingsFormItem.js +3 -6
  209. package/lib/modules/blocks/data-blocks/grid-card/gridCardBlockSettings.js +2 -2
  210. package/lib/modules/blocks/data-blocks/list/listBlockSettings.js +2 -2
  211. package/lib/modules/blocks/data-blocks/table/hooks/useTableBlockProps.js +14 -2
  212. package/lib/modules/blocks/data-blocks/table/tableBlockSettings.js +2 -2
  213. package/lib/modules/blocks/data-blocks/table/tableColumnSettings.js +1 -3
  214. package/lib/modules/blocks/data-blocks/table-selector/tableSelectorBlockSettings.js +2 -2
  215. package/lib/modules/blocks/filter-blocks/collapse/filterCollapseItemFieldSettings.js +0 -4
  216. package/lib/modules/blocks/filter-blocks/form/filterFormItemFieldSettings.js +3 -7
  217. package/lib/modules/blocks/filter-blocks/tree/filterTreeItemFieldSettings.js +3 -3
  218. package/lib/modules/fields/component/Cascader/cascaderComponentFieldSettings.js +2 -2
  219. package/lib/modules/fields/component/CustomTitle/customTitleComponentFieldSettings.js +93 -3
  220. package/lib/modules/fields/component/InputPreview/inputPreviewComponentFieldSettings.js +133 -0
  221. package/lib/modules/fields/component/MultipleSelect/multipleSelectComponentFieldSettings.js +98 -0
  222. package/lib/modules/fields/component/Radio/radioComponentFieldSettings.js +16 -3
  223. package/lib/modules/fields/component/Select/selectComponentFieldSettings.js +23 -4
  224. package/lib/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.js +3 -3
  225. package/lib/modules/menu/GroupItem.js +2 -2
  226. package/lib/modules/menu/LinkMenuItem.js +2 -2
  227. package/lib/modules/menu/PageMenuItem.js +2 -2
  228. package/lib/modules/menu/UploadMenuItem.js +2 -2
  229. package/lib/schema-component/antd/action/Action.Designer.js +3 -3
  230. package/lib/schema-component/antd/action/Action.js +1 -1
  231. package/lib/schema-component/antd/association-field/InternalCascadeSelect.js +4 -4
  232. package/lib/schema-component/antd/association-field/InternalCascader.js +4 -5
  233. package/lib/schema-component/antd/association-field/InternalNester.js +2 -2
  234. package/lib/schema-component/antd/association-field/InternalSubTable.js +2 -2
  235. package/lib/schema-component/antd/association-field/InternalViewer.js +1 -55
  236. package/lib/schema-component/antd/association-field/SubTabs/InternalCollapse.js +1 -1
  237. package/lib/schema-component/antd/association-field/SubTabs/hook.js +1 -1
  238. package/lib/schema-component/antd/association-field/hooks.js +55 -1
  239. package/lib/schema-component/antd/association-field/util.js +1 -1
  240. package/lib/schema-component/antd/association-select/AssociationSelect.js +12 -12
  241. package/lib/schema-component/antd/auto-complete/AutoComplete.js +1 -1
  242. package/lib/schema-component/antd/color-picker/ColorPicker.js +2 -2
  243. package/lib/schema-component/antd/color-picker/util.js +1 -1
  244. package/lib/schema-component/antd/cron/Cron.js +1 -1
  245. package/lib/schema-component/antd/date-picker/ReadPretty.js +1 -1
  246. package/lib/schema-component/antd/date-picker/util.js +1 -1
  247. package/lib/schema-component/antd/filter/FilterAction.js +1 -1
  248. package/lib/schema-component/antd/form/Form.js +3 -3
  249. package/lib/schema-component/antd/form-item/FormItem.Settings.js +3 -3
  250. package/lib/schema-component/antd/form-item/FormItem.js +2 -2
  251. package/lib/schema-component/antd/form-item/SchemaSettingOptions.js +5 -5
  252. package/lib/schema-component/antd/form-item/hooks/useLazyLoadDisplayAssociationFieldsOfForm.js +1 -1
  253. package/lib/schema-component/antd/form-item/hooks/useParseDefaultValue.js +1 -1
  254. package/lib/schema-component/antd/form-v2/Form.Settings.js +2 -2
  255. package/lib/schema-component/antd/form-v2/Form.js +3 -4
  256. package/lib/schema-component/antd/form-v2/Templates.js +1 -1
  257. package/lib/schema-component/antd/form-v2/utils.js +2 -3
  258. package/lib/schema-component/antd/grid-card/GridCard.Decorator.js +2 -2
  259. package/lib/schema-component/antd/grid-card/GridCard.Designer.js +2 -2
  260. package/lib/schema-component/antd/icon-picker/IconPicker.js +2 -2
  261. package/lib/schema-component/antd/index.js +120 -187
  262. package/lib/schema-component/antd/input/Input.js +2 -1
  263. package/lib/schema-component/antd/input/ReadPretty.js +34 -6
  264. package/lib/schema-component/antd/input-number/ReadPretty.js +1 -1
  265. package/lib/schema-component/antd/list/List.Decorator.js +2 -2
  266. package/lib/schema-component/antd/list/List.Designer.js +2 -2
  267. package/lib/schema-component/antd/menu/Menu.Designer.js +2 -2
  268. package/lib/schema-component/antd/menu/Menu.js +1 -1
  269. package/lib/schema-component/antd/page/Page.Settings.js +0 -33
  270. package/lib/schema-component/antd/page/Page.js +43 -92
  271. package/lib/schema-component/antd/page/hooks/index.js +5 -5
  272. package/lib/schema-component/antd/page/index.js +9 -0
  273. package/lib/{application/components/ShareSchemaComponent.js → schema-component/antd/page/pageExtendComponentProvider.js} +15 -10
  274. package/lib/schema-component/antd/page/style.js +2 -49
  275. package/lib/schema-component/antd/preview/Preview.js +2 -2
  276. package/lib/schema-component/antd/quick-edit/QuickEdit.js +3 -3
  277. package/lib/schema-component/antd/record-picker/util.js +1 -1
  278. package/lib/schema-component/antd/select/FormulaSelect.js +17 -5
  279. package/lib/schema-component/antd/select/ReadPretty.js +15 -2
  280. package/lib/schema-component/antd/select/Select.js +7 -2
  281. package/lib/schema-component/antd/select/utils.js +2 -2
  282. package/lib/schema-component/antd/space/index.js +2 -2
  283. package/lib/schema-component/antd/table/Table.Void.Designer.js +2 -2
  284. package/lib/schema-component/antd/table-v2/Table.js +1 -1
  285. package/lib/schema-component/antd/table-v2/TableBlockDesigner.js +2 -2
  286. package/lib/schema-component/antd/table-v2/TableSelectorDesigner.js +2 -2
  287. package/lib/schema-component/antd/time-picker/ReadPretty.js +2 -2
  288. package/lib/schema-component/antd/time-picker/TimePicker.js +3 -3
  289. package/lib/schema-component/antd/tree-select/ReadPretty.js +2 -2
  290. package/lib/schema-component/antd/upload/ReadPretty.js +2 -3
  291. package/lib/schema-component/antd/upload/Upload.js +2 -2
  292. package/lib/schema-component/antd/variable/CodeMirror.js +2 -2
  293. package/lib/schema-component/antd/variable/Input.js +1 -1
  294. package/lib/schema-component/antd/variable/TextArea.js +1 -1
  295. package/lib/schema-component/common/infinite-scroll/infinite-scroll.js +1 -1
  296. package/lib/schema-component/hooks/useFieldModeOptions.js +13 -10
  297. package/lib/schema-initializer/items/CustomFilterFormItemInitializer.js +4 -4
  298. package/lib/schema-settings/DataTemplates/components/AsDefaultTemplate.js +3 -3
  299. package/lib/schema-settings/DataTemplates/components/DataTemplateTitle.js +10 -10
  300. package/lib/schema-settings/DataTemplates/components/Designer.js +1 -1
  301. package/lib/schema-settings/DataTemplates/utils.js +4 -4
  302. package/lib/schema-settings/EditFormulaTitleField.js +19 -1
  303. package/lib/schema-settings/LinkageRules/LinkageRuleAction.js +2 -2
  304. package/lib/schema-settings/LinkageRules/components/EnableLinkage.js +3 -3
  305. package/lib/schema-settings/LinkageRules/components/LinkageHeader.js +10 -10
  306. package/lib/schema-settings/SchemaSettings.js +17 -18
  307. package/lib/schema-settings/SchemaSettingsDefaultValue.js +3 -3
  308. package/lib/schema-settings/SchemaSettingsPlugin.js +4 -0
  309. package/lib/schema-settings/SchemaSettingsSortingRule.js +2 -2
  310. package/lib/schema-settings/VariableInput/hooks/useContextAssociationFields.js +1 -1
  311. package/lib/schema-settings/filter-form/FormFilterScope.js +2 -2
  312. package/lib/schema-settings/hooks/useParseDataScopeFilter.js +1 -1
  313. package/lib/user/ChangePassword.js +2 -2
  314. package/lib/user/CurrentUser.js +1 -1
  315. package/lib/user/CurrentUserSettingsMenuProvider.js +1 -1
  316. package/lib/variables/VariablesProvider.js +2 -2
  317. package/lib/variables/hooks/useBuiltinVariables.js +1 -1
  318. package/package.json +9 -23
  319. package/es/application/components/SharePage.d.ts +0 -4
  320. package/es/application/components/SharePage.mjs +0 -113
  321. package/es/application/components/ShareSchemaComponent.d.ts +0 -1
  322. package/es/application/components/ShareSchemaComponent.mjs +0 -10
  323. package/es/schema-component/antd/page/hooks/useShareActions.d.ts +0 -7
  324. package/es/schema-component/antd/page/hooks/useShareActions.mjs +0 -242
  325. package/lib/application/components/SharePage.js +0 -156
  326. package/lib/schema-component/antd/page/hooks/useShareActions.js +0 -286
@@ -26,7 +26,13 @@ __webpack_require__.r(__webpack_exports__);
26
26
  __webpack_require__.d(__webpack_exports__, {
27
27
  CustomTitleComponentFieldSettings: ()=>CustomTitleComponentFieldSettings
28
28
  });
29
+ const schema_namespaceObject = require("@tachybase/schema");
30
+ const external_react_i18next_namespaceObject = require("react-i18next");
29
31
  const SchemaSettings_js_namespaceObject = require("../../../../application/schema-settings/SchemaSettings.js");
32
+ const useFieldComponentName_js_namespaceObject = require("../../../../common/useFieldComponentName.js");
33
+ const index_js_namespaceObject = require("../../../../data-source/index.js");
34
+ const external_schema_component_index_js_namespaceObject = require("../../../../schema-component/index.js");
35
+ const util_js_namespaceObject = require("../../../../schema-component/antd/association-field/util.js");
30
36
  const FormItem_Settings_js_namespaceObject = require("../../../../schema-component/antd/form-item/FormItem.Settings.js");
31
37
  const Table_Column_Decorator_js_namespaceObject = require("../../../../schema-component/antd/table-v2/Table.Column.Decorator.js");
32
38
  const useIsShowMultipleSwitch_js_namespaceObject = require("../../../../schema-settings/hooks/useIsShowMultipleSwitch.js");
@@ -35,12 +41,96 @@ const CustomTitleComponentFieldSettings = new SchemaSettings_js_namespaceObject.
35
41
  name: 'fieldSettings:component:CustomTitle',
36
42
  items: [
37
43
  {
38
- ...selectComponentFieldSettings_js_namespaceObject.fieldComponent,
39
- useVisible: FormItem_Settings_js_namespaceObject.useIsMuiltipleAble
44
+ name: 'fieldComponent',
45
+ type: 'select',
46
+ useComponentProps () {
47
+ var _collectionInterface_componentOptions_filter, _collectionInterface_componentOptions;
48
+ const { t } = (0, external_react_i18next_namespaceObject.useTranslation)();
49
+ const field = (0, schema_namespaceObject.useField)();
50
+ const collectionFieldCurrent = (0, index_js_namespaceObject.useCollectionField)();
51
+ const { fieldSchema: tableColumnSchema, collectionField } = (0, Table_Column_Decorator_js_namespaceObject.useColumnSchema)();
52
+ const schema = (0, schema_namespaceObject.useFieldSchema)();
53
+ const fieldSchema = tableColumnSchema || schema;
54
+ const fieldModeOptions = (0, external_schema_component_index_js_namespaceObject.useFieldModeOptions)({
55
+ fieldSchema: tableColumnSchema,
56
+ collectionField
57
+ });
58
+ const isAddNewForm = (0, external_schema_component_index_js_namespaceObject.useIsAddNewForm)();
59
+ const fieldMode = (0, useFieldComponentName_js_namespaceObject.useFieldComponentName)();
60
+ const { dn } = (0, external_schema_component_index_js_namespaceObject.useDesignable)();
61
+ const isSelect = [
62
+ 'select',
63
+ 'multipleSelect'
64
+ ].includes(null == collectionFieldCurrent ? void 0 : collectionFieldCurrent.interface);
65
+ const optionsMuiltipleSelect = [
66
+ {
67
+ label: t('Select'),
68
+ value: 'Select'
69
+ },
70
+ {
71
+ label: t('Radio group'),
72
+ value: 'Radio group'
73
+ },
74
+ {
75
+ label: t('Custom Title'),
76
+ value: 'CustomTitle'
77
+ }
78
+ ];
79
+ if ((null == collectionFieldCurrent ? void 0 : collectionFieldCurrent.interface) === 'multipleSelect') {
80
+ const index = optionsMuiltipleSelect.findIndex((item)=>{
81
+ if ('Select' === item.value) item.value = 'multiple';
82
+ return 'Radio group' === item.value;
83
+ });
84
+ optionsMuiltipleSelect.splice(index, 1);
85
+ }
86
+ const dm = (0, index_js_namespaceObject.useDataSourceManager)();
87
+ const collectionInterface = dm.collectionFieldInterfaceManager.getFieldInterface(null == collectionField ? void 0 : collectionField.interface);
88
+ const compile = (0, external_schema_component_index_js_namespaceObject.useCompile)();
89
+ const componentOptions = isSelect ? optionsMuiltipleSelect : fieldModeOptions;
90
+ null == collectionInterface || null == (_collectionInterface_componentOptions = collectionInterface.componentOptions) || null == (_collectionInterface_componentOptions_filter = _collectionInterface_componentOptions.filter((item)=>!item.useVisible || item.useVisible())) || _collectionInterface_componentOptions_filter.forEach((item)=>{
91
+ if (!(null == componentOptions ? void 0 : componentOptions.find((modeItem)=>modeItem.value === item.value))) null == componentOptions || componentOptions.push({
92
+ label: compile(item.label),
93
+ value: item.value
94
+ });
95
+ });
96
+ return {
97
+ title: t('Field component'),
98
+ options: componentOptions,
99
+ value: fieldMode,
100
+ onChange (mode) {
101
+ const schema = {
102
+ ['x-uid']: fieldSchema['x-uid']
103
+ };
104
+ fieldSchema['x-component-props'] = fieldSchema['x-component-props'] || {};
105
+ fieldSchema['x-component-props']['mode'] = mode;
106
+ schema['x-component-props'] = fieldSchema['x-component-props'];
107
+ field.componentProps = field.componentProps || {};
108
+ field.componentProps.mode = mode;
109
+ if ((0, util_js_namespaceObject.isSubMode)(fieldSchema) && isAddNewForm) {
110
+ var _field_setInitialValue, _field_setValue;
111
+ schema.default = null;
112
+ fieldSchema.default = null;
113
+ null == field || null == (_field_setInitialValue = field.setInitialValue) || _field_setInitialValue.call(field, null);
114
+ null == field || null == (_field_setValue = field.setValue) || _field_setValue.call(field, null);
115
+ }
116
+ dn.emit('patch', {
117
+ schema
118
+ });
119
+ dn.refresh();
120
+ }
121
+ };
122
+ },
123
+ useVisible () {
124
+ const fieldMode = (0, useFieldComponentName_js_namespaceObject.useFieldComponentName)();
125
+ return 'CustomTitle' === fieldMode;
126
+ }
40
127
  },
41
128
  {
42
129
  ...selectComponentFieldSettings_js_namespaceObject.CustomTitle,
43
- useVisible: FormItem_Settings_js_namespaceObject.useIsMuiltipleAble
130
+ useVisible () {
131
+ const fieldMode = (0, useFieldComponentName_js_namespaceObject.useFieldComponentName)();
132
+ return 'CustomTitle' === fieldMode;
133
+ }
44
134
  },
45
135
  {
46
136
  ...selectComponentFieldSettings_js_namespaceObject.setTheDataScope,
@@ -0,0 +1,133 @@
1
+ "use strict";
2
+ var __webpack_require__ = {};
3
+ (()=>{
4
+ __webpack_require__.d = (exports1, definition)=>{
5
+ for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
6
+ enumerable: true,
7
+ get: definition[key]
8
+ });
9
+ };
10
+ })();
11
+ (()=>{
12
+ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
13
+ })();
14
+ (()=>{
15
+ __webpack_require__.r = (exports1)=>{
16
+ if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
17
+ value: 'Module'
18
+ });
19
+ Object.defineProperty(exports1, '__esModule', {
20
+ value: true
21
+ });
22
+ };
23
+ })();
24
+ var __webpack_exports__ = {};
25
+ __webpack_require__.r(__webpack_exports__);
26
+ __webpack_require__.d(__webpack_exports__, {
27
+ inputPreviewComponentFieldSettings: ()=>inputPreviewComponentFieldSettings
28
+ });
29
+ const schema_namespaceObject = require("@tachybase/schema");
30
+ const external_react_i18next_namespaceObject = require("react-i18next");
31
+ const SchemaSettings_js_namespaceObject = require("../../../../application/schema-settings/SchemaSettings.js");
32
+ const index_js_namespaceObject = require("../../../../schema-component/index.js");
33
+ const createSettingsItem = (config)=>({
34
+ name: config.name,
35
+ type: 'select',
36
+ useComponentProps () {
37
+ var _fieldSchema_xcomponentprops;
38
+ const { t } = (0, external_react_i18next_namespaceObject.useTranslation)();
39
+ const field = (0, schema_namespaceObject.useField)();
40
+ const schema = (0, schema_namespaceObject.useFieldSchema)();
41
+ const { fieldSchema: tableColumnSchema } = (0, index_js_namespaceObject.useColumnSchema)();
42
+ const fieldSchema = tableColumnSchema || schema;
43
+ const { dn } = (0, index_js_namespaceObject.useDesignable)();
44
+ return {
45
+ title: t(config.title),
46
+ options: config.options(t),
47
+ value: (null == (_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) ? void 0 : _fieldSchema_xcomponentprops[config.name]) || config.defaultValue,
48
+ onChange (value) {
49
+ const schema = {
50
+ ['x-uid']: fieldSchema['x-uid']
51
+ };
52
+ fieldSchema['x-component-props'] = fieldSchema['x-component-props'] || {};
53
+ fieldSchema['x-component-props'][config.name] = value;
54
+ schema['x-component-props'] = fieldSchema['x-component-props'];
55
+ field.componentProps = field.componentProps || {};
56
+ field.componentProps[config.name] = value;
57
+ dn.emit('patch', {
58
+ schema
59
+ });
60
+ }
61
+ };
62
+ }
63
+ });
64
+ const getSizeOptions = (t)=>[
65
+ {
66
+ value: 'small',
67
+ label: t('Small')
68
+ },
69
+ {
70
+ value: 'middle',
71
+ label: t('Middle')
72
+ },
73
+ {
74
+ value: 'large',
75
+ label: t('Large')
76
+ },
77
+ {
78
+ value: 'oversized',
79
+ label: t('Oversized')
80
+ },
81
+ {
82
+ value: 'auto',
83
+ label: t('Auto')
84
+ }
85
+ ];
86
+ const getObjectFitOptions = (t)=>[
87
+ {
88
+ value: 'cover',
89
+ label: t('Cover')
90
+ },
91
+ {
92
+ value: 'fill',
93
+ label: t('Fill')
94
+ },
95
+ {
96
+ value: 'contain',
97
+ label: t('Contain')
98
+ },
99
+ {
100
+ value: 'scale-down',
101
+ label: t('Scale Down')
102
+ },
103
+ {
104
+ value: 'none',
105
+ label: t('None')
106
+ }
107
+ ];
108
+ const size = createSettingsItem({
109
+ name: 'size',
110
+ title: 'Size',
111
+ options: getSizeOptions,
112
+ defaultValue: 'small'
113
+ });
114
+ const objectFit = createSettingsItem({
115
+ name: 'objectFit',
116
+ title: 'Object Fit',
117
+ options: getObjectFitOptions,
118
+ defaultValue: 'cover'
119
+ });
120
+ const inputPreviewComponentFieldSettings = new SchemaSettings_js_namespaceObject.SchemaSettings({
121
+ name: 'fieldSettings:component:Input.Preview',
122
+ items: [
123
+ size,
124
+ objectFit
125
+ ]
126
+ });
127
+ exports.inputPreviewComponentFieldSettings = __webpack_exports__.inputPreviewComponentFieldSettings;
128
+ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
129
+ "inputPreviewComponentFieldSettings"
130
+ ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
131
+ Object.defineProperty(exports, '__esModule', {
132
+ value: true
133
+ });
@@ -0,0 +1,98 @@
1
+ "use strict";
2
+ var __webpack_require__ = {};
3
+ (()=>{
4
+ __webpack_require__.d = (exports1, definition)=>{
5
+ for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
6
+ enumerable: true,
7
+ get: definition[key]
8
+ });
9
+ };
10
+ })();
11
+ (()=>{
12
+ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
13
+ })();
14
+ (()=>{
15
+ __webpack_require__.r = (exports1)=>{
16
+ if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
17
+ value: 'Module'
18
+ });
19
+ Object.defineProperty(exports1, '__esModule', {
20
+ value: true
21
+ });
22
+ };
23
+ })();
24
+ var __webpack_exports__ = {};
25
+ __webpack_require__.r(__webpack_exports__);
26
+ __webpack_require__.d(__webpack_exports__, {
27
+ multipleComponentFieldSettings: ()=>multipleComponentFieldSettings
28
+ });
29
+ const schema_namespaceObject = require("@tachybase/schema");
30
+ const external_react_i18next_namespaceObject = require("react-i18next");
31
+ const SchemaSettings_js_namespaceObject = require("../../../../application/schema-settings/SchemaSettings.js");
32
+ const index_js_namespaceObject = require("../../../../collection-manager/index.js");
33
+ const external_data_source_index_js_namespaceObject = require("../../../../data-source/index.js");
34
+ const external_schema_component_index_js_namespaceObject = require("../../../../schema-component/index.js");
35
+ const Table_Column_Decorator_js_namespaceObject = require("../../../../schema-component/antd/table-v2/Table.Column.Decorator.js");
36
+ const multipleComponentFieldSettings = new SchemaSettings_js_namespaceObject.SchemaSettings({
37
+ name: 'fieldSettings:component:multiple',
38
+ items: [
39
+ {
40
+ name: 'fieldComponent',
41
+ type: 'select',
42
+ useComponentProps () {
43
+ var _collectionInterface_componentOptions_filter, _collectionInterface_componentOptions, _fieldSchema_xcomponentprops;
44
+ const { t } = (0, external_react_i18next_namespaceObject.useTranslation)();
45
+ const field = (0, schema_namespaceObject.useField)();
46
+ const { fieldSchema: tableColumnSchema } = (0, Table_Column_Decorator_js_namespaceObject.useColumnSchema)();
47
+ const { getCollectionJoinField } = (0, index_js_namespaceObject.useCollectionManager_deprecated)();
48
+ const dm = (0, external_data_source_index_js_namespaceObject.useDataSourceManager)();
49
+ const schema = (0, schema_namespaceObject.useFieldSchema)();
50
+ const fieldSchema = tableColumnSchema || schema;
51
+ const collectionField = getCollectionJoinField(fieldSchema['x-collection-field']);
52
+ const collectionInterface = dm.collectionFieldInterfaceManager.getFieldInterface(null == collectionField ? void 0 : collectionField.interface);
53
+ const compile = (0, external_schema_component_index_js_namespaceObject.useCompile)();
54
+ const fieldModeOptions = [
55
+ {
56
+ label: t('Select'),
57
+ value: 'multiple'
58
+ }
59
+ ];
60
+ null == collectionInterface || null == (_collectionInterface_componentOptions = collectionInterface.componentOptions) || null == (_collectionInterface_componentOptions_filter = _collectionInterface_componentOptions.filter((item)=>!item.useVisible || item.useVisible())) || _collectionInterface_componentOptions_filter.forEach((item)=>{
61
+ if (!(null == fieldModeOptions ? void 0 : fieldModeOptions.find((modeItem)=>modeItem.value === item.value))) null == fieldModeOptions || fieldModeOptions.push({
62
+ label: compile(item.label),
63
+ value: item.value
64
+ });
65
+ });
66
+ const { dn } = (0, external_schema_component_index_js_namespaceObject.useDesignable)();
67
+ return {
68
+ title: t('Field component'),
69
+ options: fieldModeOptions,
70
+ value: (null == (_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) ? void 0 : _fieldSchema_xcomponentprops.mode) || 'multiple',
71
+ onChange (mode) {
72
+ const schema = {
73
+ ['x-uid']: fieldSchema['x-uid']
74
+ };
75
+ fieldSchema['x-component-props'] = fieldSchema['x-component-props'] || {};
76
+ fieldSchema['x-component-props']['mode'] = mode;
77
+ fieldSchema['x-component-props']['multiple'] = true;
78
+ schema['x-component-props'] = fieldSchema['x-component-props'];
79
+ field.componentProps = field.componentProps || {};
80
+ field.componentProps.mode = mode;
81
+ field.componentProps.multiple = true;
82
+ dn.emit('patch', {
83
+ schema
84
+ });
85
+ dn.refresh();
86
+ }
87
+ };
88
+ }
89
+ }
90
+ ]
91
+ });
92
+ exports.multipleComponentFieldSettings = __webpack_exports__.multipleComponentFieldSettings;
93
+ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
94
+ "multipleComponentFieldSettings"
95
+ ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
96
+ Object.defineProperty(exports, '__esModule', {
97
+ value: true
98
+ });
@@ -29,7 +29,9 @@ __webpack_require__.d(__webpack_exports__, {
29
29
  const schema_namespaceObject = require("@tachybase/schema");
30
30
  const external_react_i18next_namespaceObject = require("react-i18next");
31
31
  const SchemaSettings_js_namespaceObject = require("../../../../application/schema-settings/SchemaSettings.js");
32
- const index_js_namespaceObject = require("../../../../schema-component/index.js");
32
+ const index_js_namespaceObject = require("../../../../collection-manager/index.js");
33
+ const external_data_source_index_js_namespaceObject = require("../../../../data-source/index.js");
34
+ const external_schema_component_index_js_namespaceObject = require("../../../../schema-component/index.js");
33
35
  const Table_Column_Decorator_js_namespaceObject = require("../../../../schema-component/antd/table-v2/Table.Column.Decorator.js");
34
36
  const radioComponentFieldSettings = new SchemaSettings_js_namespaceObject.SchemaSettings({
35
37
  name: 'fieldSettings:component:Radio group',
@@ -38,7 +40,7 @@ const radioComponentFieldSettings = new SchemaSettings_js_namespaceObject.Schema
38
40
  name: 'fieldComponent',
39
41
  type: 'select',
40
42
  useComponentProps () {
41
- var _fieldSchema_xcomponentprops;
43
+ var _collectionInterface_componentOptions_filter, _collectionInterface_componentOptions, _fieldSchema_xcomponentprops;
42
44
  const { t } = (0, external_react_i18next_namespaceObject.useTranslation)();
43
45
  const field = (0, schema_namespaceObject.useField)();
44
46
  const { fieldSchema: tableColumnSchema } = (0, Table_Column_Decorator_js_namespaceObject.useColumnSchema)();
@@ -54,7 +56,18 @@ const radioComponentFieldSettings = new SchemaSettings_js_namespaceObject.Schema
54
56
  value: 'Radio group'
55
57
  }
56
58
  ];
57
- const { dn } = (0, index_js_namespaceObject.useDesignable)();
59
+ const dm = (0, external_data_source_index_js_namespaceObject.useDataSourceManager)();
60
+ const { getCollectionJoinField } = (0, index_js_namespaceObject.useCollectionManager_deprecated)();
61
+ const collectionField = getCollectionJoinField(fieldSchema['x-collection-field']);
62
+ const collectionInterface = dm.collectionFieldInterfaceManager.getFieldInterface(null == collectionField ? void 0 : collectionField.interface);
63
+ const compile = (0, external_schema_component_index_js_namespaceObject.useCompile)();
64
+ const { dn } = (0, external_schema_component_index_js_namespaceObject.useDesignable)();
65
+ null == collectionInterface || null == (_collectionInterface_componentOptions = collectionInterface.componentOptions) || null == (_collectionInterface_componentOptions_filter = _collectionInterface_componentOptions.filter((item)=>!item.useVisible || item.useVisible())) || _collectionInterface_componentOptions_filter.forEach((item)=>{
66
+ if (!(null == fieldModeOptions ? void 0 : fieldModeOptions.find((modeItem)=>modeItem.value === item.value))) null == fieldModeOptions || fieldModeOptions.push({
67
+ label: compile(item.label),
68
+ value: item.value
69
+ });
70
+ });
58
71
  return {
59
72
  title: t('Field component'),
60
73
  options: fieldModeOptions,
@@ -317,6 +317,7 @@ const fieldComponent = {
317
317
  name: 'fieldComponent',
318
318
  type: 'select',
319
319
  useComponentProps () {
320
+ var _collectionInterface_componentOptions_filter, _collectionInterface_componentOptions;
320
321
  const { t } = (0, external_react_i18next_namespaceObject.useTranslation)();
321
322
  const field = (0, schema_namespaceObject.useField)();
322
323
  const collectionFieldCurrent = (0, external_data_source_index_js_namespaceObject.useCollectionField)();
@@ -331,7 +332,8 @@ const fieldComponent = {
331
332
  const fieldMode = (0, useFieldComponentName_js_namespaceObject.useFieldComponentName)();
332
333
  const { dn } = (0, external_schema_component_index_js_namespaceObject.useDesignable)();
333
334
  const isMuiltipleSelect = [
334
- 'select'
335
+ 'select',
336
+ 'multipleSelect'
335
337
  ].includes(null == collectionFieldCurrent ? void 0 : collectionFieldCurrent.interface);
336
338
  const optionsMuiltipleSelect = [
337
339
  {
@@ -343,9 +345,27 @@ const fieldComponent = {
343
345
  value: 'Radio group'
344
346
  }
345
347
  ];
348
+ if ((null == collectionFieldCurrent ? void 0 : collectionFieldCurrent.interface) === 'multipleSelect') {
349
+ const index = optionsMuiltipleSelect.findIndex((item)=>'Radio group' === item.value);
350
+ optionsMuiltipleSelect.splice(index, 1);
351
+ }
352
+ const dm = (0, external_data_source_index_js_namespaceObject.useDataSourceManager)();
353
+ const collectionInterface = dm.collectionFieldInterfaceManager.getFieldInterface(null == collectionFieldCurrent ? void 0 : collectionFieldCurrent.interface);
354
+ const compile = (0, external_schema_component_index_js_namespaceObject.useCompile)();
355
+ if (fieldSchema['x-component-props']['multiple']) {
356
+ const index = fieldModeOptions.findIndex((item)=>'Radio group' === item.value);
357
+ fieldModeOptions.splice(index, 1);
358
+ }
359
+ const componentOptions = isMuiltipleSelect ? optionsMuiltipleSelect : fieldModeOptions;
360
+ null == collectionInterface || null == (_collectionInterface_componentOptions = collectionInterface.componentOptions) || null == (_collectionInterface_componentOptions_filter = _collectionInterface_componentOptions.filter((item)=>!item.useVisible || item.useVisible())) || _collectionInterface_componentOptions_filter.forEach((item)=>{
361
+ if (!(null == componentOptions ? void 0 : componentOptions.find((modeItem)=>modeItem.value === item.value))) null == componentOptions || componentOptions.push({
362
+ label: compile(item.label),
363
+ value: item.value
364
+ });
365
+ });
346
366
  return {
347
367
  title: t('Field component'),
348
- options: isMuiltipleSelect ? optionsMuiltipleSelect : fieldModeOptions,
368
+ options: componentOptions,
349
369
  value: fieldMode,
350
370
  onChange (mode) {
351
371
  const schema = {
@@ -436,8 +456,7 @@ const selectComponentFieldSettings = new SchemaSettings_js_namespaceObject.Schem
436
456
  name: 'fieldSettings:component:Select',
437
457
  items: [
438
458
  {
439
- ...fieldComponent,
440
- useVisible: FormItem_Settings_js_namespaceObject.useIsMuiltipleAble
459
+ ...fieldComponent
441
460
  },
442
461
  {
443
462
  ...setTheDataScope,
@@ -30,8 +30,8 @@ __webpack_require__.d(__webpack_exports__, {
30
30
  setDefaultSortingRules: ()=>setDefaultSortingRules
31
31
  });
32
32
  const external_react_namespaceObject = require("react");
33
- const components_namespaceObject = require("@tachybase/components");
34
33
  const schema_namespaceObject = require("@tachybase/schema");
34
+ const client_namespaceObject = require("@tego/client");
35
35
  const external_react_i18next_namespaceObject = require("react-i18next");
36
36
  const SchemaSettings_js_namespaceObject = require("../../../../application/schema-settings/SchemaSettings.js");
37
37
  const index_js_namespaceObject = require("../../../../collection-manager/index.js");
@@ -134,7 +134,7 @@ const setDefaultSortingRules = {
134
134
  return {
135
135
  title: t('Set default sorting rules'),
136
136
  components: {
137
- ArrayItems: components_namespaceObject.ArrayItems
137
+ ArrayItems: client_namespaceObject.ArrayItems
138
138
  },
139
139
  schema: {
140
140
  type: 'object',
@@ -377,7 +377,7 @@ const clickToSelect = {
377
377
  };
378
378
  return {
379
379
  components: {
380
- Switch: components_namespaceObject.Switch,
380
+ Switch: client_namespaceObject.Switch,
381
381
  SecondLevelSelect: external_secondLevelSelect_js_namespaceObject.SecondLevelSelect
382
382
  },
383
383
  title: t('Quick create'),
@@ -28,8 +28,8 @@ __webpack_require__.d(__webpack_exports__, {
28
28
  });
29
29
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
30
30
  const external_react_namespaceObject = require("react");
31
- const components_namespaceObject = require("@tachybase/components");
32
31
  const schema_namespaceObject = require("@tachybase/schema");
32
+ const client_namespaceObject = require("@tego/client");
33
33
  const external_react_i18next_namespaceObject = require("react-i18next");
34
34
  const index_js_namespaceObject = require("../../application/index.js");
35
35
  const external_icon_index_js_namespaceObject = require("../../icon/index.js");
@@ -48,7 +48,7 @@ const GroupItem = ()=>{
48
48
  components: {
49
49
  ...options.components
50
50
  },
51
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(components_namespaceObject.FormLayout, {
51
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(client_namespaceObject.FormLayout, {
52
52
  layout: 'vertical',
53
53
  children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_schema_component_index_js_namespaceObject.SchemaComponent, {
54
54
  schema: {
@@ -28,8 +28,8 @@ __webpack_require__.d(__webpack_exports__, {
28
28
  });
29
29
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
30
30
  const external_react_namespaceObject = require("react");
31
- const components_namespaceObject = require("@tachybase/components");
32
31
  const schema_namespaceObject = require("@tachybase/schema");
32
+ const client_namespaceObject = require("@tego/client");
33
33
  const external_react_i18next_namespaceObject = require("react-i18next");
34
34
  const index_js_namespaceObject = require("../../application/index.js");
35
35
  const external_icon_index_js_namespaceObject = require("../../icon/index.js");
@@ -48,7 +48,7 @@ const LinkMenuItem = ()=>{
48
48
  components: {
49
49
  ...options.components
50
50
  },
51
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(components_namespaceObject.FormLayout, {
51
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(client_namespaceObject.FormLayout, {
52
52
  layout: 'vertical',
53
53
  children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_schema_component_index_js_namespaceObject.SchemaComponent, {
54
54
  schema: {
@@ -28,8 +28,8 @@ __webpack_require__.d(__webpack_exports__, {
28
28
  });
29
29
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
30
30
  const external_react_namespaceObject = require("react");
31
- const components_namespaceObject = require("@tachybase/components");
32
31
  const schema_namespaceObject = require("@tachybase/schema");
32
+ const client_namespaceObject = require("@tego/client");
33
33
  const external_react_i18next_namespaceObject = require("react-i18next");
34
34
  const index_js_namespaceObject = require("../../application/index.js");
35
35
  const external_icon_index_js_namespaceObject = require("../../icon/index.js");
@@ -48,7 +48,7 @@ const PageMenuItem = ()=>{
48
48
  components: {
49
49
  ...options.components
50
50
  },
51
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(components_namespaceObject.FormLayout, {
51
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(client_namespaceObject.FormLayout, {
52
52
  layout: 'vertical',
53
53
  children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_schema_component_index_js_namespaceObject.SchemaComponent, {
54
54
  schema: {
@@ -28,8 +28,8 @@ __webpack_require__.d(__webpack_exports__, {
28
28
  });
29
29
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
30
30
  const external_react_namespaceObject = require("react");
31
- const components_namespaceObject = require("@tachybase/components");
32
31
  const schema_namespaceObject = require("@tachybase/schema");
32
+ const client_namespaceObject = require("@tego/client");
33
33
  const external_react_i18next_namespaceObject = require("react-i18next");
34
34
  const useAPIClient_js_namespaceObject = require("../../api-client/hooks/useAPIClient.js");
35
35
  const index_js_namespaceObject = require("../../application/index.js");
@@ -50,7 +50,7 @@ const UploadMenuItem = ()=>{
50
50
  components: {
51
51
  ...options.components
52
52
  },
53
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(components_namespaceObject.FormLayout, {
53
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(client_namespaceObject.FormLayout, {
54
54
  layout: 'vertical',
55
55
  children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_schema_component_index_js_namespaceObject.SchemaComponent, {
56
56
  schema: {
@@ -45,8 +45,8 @@ __webpack_require__.d(__webpack_exports__, {
45
45
  });
46
46
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
47
47
  const external_react_namespaceObject = require("react");
48
- const components_namespaceObject = require("@tachybase/components");
49
48
  const schema_namespaceObject = require("@tachybase/schema");
49
+ const client_namespaceObject = require("@tego/client");
50
50
  const external_antd_namespaceObject = require("antd");
51
51
  const external_react_i18next_namespaceObject = require("react-i18next");
52
52
  const external_index_js_namespaceObject = require("../../index.js");
@@ -291,7 +291,7 @@ function RemoveButton() {
291
291
  function WorkflowSelectComponent(param) {
292
292
  let { formAction, buttonAction, actionType, direct = false, noCollection = false, ...props } = param;
293
293
  const { t } = (0, external_react_i18next_namespaceObject.useTranslation)();
294
- const index = components_namespaceObject.ArrayTable.useIndex();
294
+ const index = client_namespaceObject.ArrayTable.useIndex();
295
295
  const { setValuesIn } = (0, schema_namespaceObject.useForm)();
296
296
  const baseCollection = (0, external_collection_manager_index_js_namespaceObject.useCollection_deprecated)();
297
297
  const { getCollection } = (0, external_collection_manager_index_js_namespaceObject.useCollectionManager_deprecated)();
@@ -457,7 +457,7 @@ function WorkflowConfig() {
457
457
  },
458
458
  components: {
459
459
  Alert: external_antd_namespaceObject.Alert,
460
- ArrayTable: components_namespaceObject.ArrayTable,
460
+ ArrayTable: client_namespaceObject.ArrayTable,
461
461
  WorkflowSelect
462
462
  },
463
463
  schema: {
@@ -39,7 +39,7 @@ __webpack_require__.d(__webpack_exports__, {
39
39
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
40
40
  const external_react_namespaceObject = require("react");
41
41
  const schema_namespaceObject = require("@tachybase/schema");
42
- const client_namespaceObject = require("@tachybase/utils/client");
42
+ const client_namespaceObject = require("@tego/client");
43
43
  const external_antd_namespaceObject = require("antd");
44
44
  const external_classnames_namespaceObject = require("classnames");
45
45
  var external_classnames_default = /*#__PURE__*/ __webpack_require__.n(external_classnames_namespaceObject);
@@ -38,8 +38,8 @@ __webpack_require__.d(__webpack_exports__, {
38
38
  });
39
39
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
40
40
  const external_react_namespaceObject = require("react");
41
- const components_namespaceObject = require("@tachybase/components");
42
41
  const schema_namespaceObject = require("@tachybase/schema");
42
+ const client_namespaceObject = require("@tego/client");
43
43
  const external_antd_namespaceObject = require("antd");
44
44
  const external_dayjs_namespaceObject = require("dayjs");
45
45
  var external_dayjs_default = /*#__PURE__*/ __webpack_require__.n(external_dayjs_namespaceObject);
@@ -55,8 +55,8 @@ const SchemaField = (0, schema_namespaceObject.createSchemaField)({
55
55
  components: {
56
56
  Space: external_antd_namespaceObject.Space,
57
57
  Input: external_antd_namespaceObject.Input,
58
- ArrayItems: components_namespaceObject.ArrayItems,
59
- FormItem: components_namespaceObject.FormItem
58
+ ArrayItems: client_namespaceObject.ArrayItems,
59
+ FormItem: client_namespaceObject.FormItem
60
60
  }
61
61
  });
62
62
  const CascadeSelect = (0, schema_namespaceObject.connect)((props)=>{
@@ -372,7 +372,7 @@ const InternalCascadeSelect = (0, schema_namespaceObject.observer)((props)=>{
372
372
  form: selectForm,
373
373
  children: 'm2o' === collectionField.interface ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_index_js_namespaceObject.SchemaComponent, {
374
374
  components: {
375
- FormItem: components_namespaceObject.FormItem
375
+ FormItem: client_namespaceObject.FormItem
376
376
  },
377
377
  schema: {
378
378
  ...fieldSchema,
@@ -39,9 +39,8 @@ __webpack_require__.d(__webpack_exports__, {
39
39
  });
40
40
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
41
41
  const external_react_namespaceObject = require("react");
42
- const components_namespaceObject = require("@tachybase/components");
43
42
  const schema_namespaceObject = require("@tachybase/schema");
44
- const client_namespaceObject = require("@tachybase/utils/client");
43
+ const client_namespaceObject = require("@tego/client");
45
44
  const external_antd_namespaceObject = require("antd");
46
45
  const external_antd_style_namespaceObject = require("antd-style");
47
46
  const external_react_i18next_namespaceObject = require("react-i18next");
@@ -77,8 +76,8 @@ const SchemaField = (0, schema_namespaceObject.createSchemaField)({
77
76
  components: {
78
77
  Space: external_antd_namespaceObject.Space,
79
78
  Input: external_antd_namespaceObject.Input,
80
- ArrayItems: components_namespaceObject.ArrayItems,
81
- FormItem: components_namespaceObject.FormItem
79
+ ArrayItems: client_namespaceObject.ArrayItems,
80
+ FormItem: client_namespaceObject.FormItem
82
81
  }
83
82
  });
84
83
  const Cascade = (0, schema_namespaceObject.connect)((props)=>{
@@ -329,7 +328,7 @@ const InternalCascader = (0, schema_namespaceObject.observer)((props)=>{
329
328
  form: selectForm,
330
329
  children: 'm2o' === collectionField.interface ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_index_js_namespaceObject.SchemaComponent, {
331
330
  components: {
332
- FormItem: components_namespaceObject.FormItem
331
+ FormItem: client_namespaceObject.FormItem
333
332
  },
334
333
  schema: {
335
334
  ...fieldSchema,