@tachybase/client 0.23.17 → 0.23.20

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 (332) hide show
  1. package/es/api-client/APIClientProvider.d.ts +2 -2
  2. package/es/application/AppSchemaComponentProvider.d.ts +1 -2
  3. package/es/application/Application.d.ts +1 -1
  4. package/es/application/NoticesManager.d.ts +1 -1
  5. package/es/application/RouterManager.d.ts +1 -1
  6. package/es/application/components/BlankComponent.d.ts +2 -2
  7. package/es/application/components/MainComponent.d.ts +1 -1
  8. package/es/application/components/RouterContextCleaner.d.ts +1 -1
  9. package/es/application/components/defaultComponents.d.ts +4 -4
  10. package/es/application/schema-initializer/components/SchemaInitializerActionModal.d.ts +2 -2
  11. package/es/application/schema-initializer/components/SchemaInitializerDivider.d.ts +1 -2
  12. package/es/application/schema-initializer/components/SchemaInitializerItem.d.ts +1 -1
  13. package/es/application/schema-initializer/components/SchemaInitializerItemGroup.d.ts +2 -2
  14. package/es/application/schema-initializer/components/SchemaInitializerSelect.d.ts +2 -2
  15. package/es/application/schema-initializer/components/SchemaInitializerSubMenu.d.ts +3 -3
  16. package/es/application/schema-initializer/components/SchemaInitializerSwitch.d.ts +2 -2
  17. package/es/application/schema-toolbar/context/index.d.ts +1 -1
  18. package/es/application/schema-toolbar/hooks/index.d.ts +1 -2
  19. package/es/async-data-provider/index.d.ts +1 -1
  20. package/es/block-provider/BlockProvider.d.ts +3 -3
  21. package/es/block-provider/FormFieldProvider.d.ts +1 -1
  22. package/es/block-provider/MobileProvider.d.ts +1 -1
  23. package/es/block-provider/PageLayout.d.ts +1 -2
  24. package/es/block-provider/TableFieldProvider.d.ts +1 -1
  25. package/es/block-provider/TableSelectorProvider.d.ts +1 -1
  26. package/es/block-provider/TreeBlockProvider.d.ts +1 -1
  27. package/es/block-provider/hooks/useFormActiveFields.d.ts +1 -1
  28. package/es/built-in/acl/ACLProvider.d.ts +5 -5
  29. package/es/built-in/acl/ACLShortcut.d.ts +1 -2
  30. package/es/built-in/acl/Configuration/ConfigureCenter.d.ts +2 -3
  31. package/es/built-in/acl/Configuration/MenuConfigure.d.ts +1 -2
  32. package/es/built-in/acl/Configuration/MenuItemsProvider.d.ts +1 -2
  33. package/es/built-in/acl/Configuration/PermisionProvider.d.ts +2 -2
  34. package/es/built-in/acl/Configuration/RoleConfigure.d.ts +1 -2
  35. package/es/built-in/acl/Configuration/RoleTable.d.ts +1 -2
  36. package/es/built-in/acl/Configuration/ScopeSelect.d.ts +1 -2
  37. package/es/built-in/admin-layout/AdminContent.d.ts +1 -2
  38. package/es/built-in/admin-layout/AdminLayout.d.ts +1 -2
  39. package/es/built-in/admin-layout/AdminProvider.d.ts +1 -2
  40. package/es/built-in/admin-layout/AdminTabs.d.ts +1 -2
  41. package/es/built-in/admin-layout/InternalAdminLayout.d.ts +1 -2
  42. package/es/built-in/admin-layout/MenuEditor.d.ts +1 -1
  43. package/es/built-in/admin-layout/components/AddNewButton.d.ts +1 -2
  44. package/es/built-in/admin-layout/components/WelcomeCard.d.ts +1 -2
  45. package/es/built-in/assistant/Assistant.provider.d.ts +6 -1
  46. package/es/built-in/assistant/Assistant.provider.mjs +64 -16
  47. package/es/built-in/assistant/calculator/AutoScalingText.d.ts +1 -2
  48. package/es/built-in/assistant/calculator/CalculatorDisplay.d.ts +1 -2
  49. package/es/built-in/assistant/calculator/CalculatorKey.d.ts +1 -2
  50. package/es/built-in/assistant/calculator/CalculatorProvider.d.ts +1 -1
  51. package/es/built-in/assistant/context.d.ts +3 -0
  52. package/es/built-in/assistant/context.mjs +6 -0
  53. package/es/built-in/assistant/index.d.ts +3 -0
  54. package/es/built-in/assistant/index.mjs +6 -2
  55. package/es/built-in/assistant/search-and-jump/index.d.ts +2 -2
  56. package/es/built-in/attachment-preview/previewers/file-default.d.ts +2 -3
  57. package/es/built-in/attachment-preview/previewers/file-pdf.d.ts +2 -3
  58. package/es/built-in/attachment-preview/previewers/file-sheet.d.ts +6 -7
  59. package/es/built-in/attachment-preview/previewers/image-jpeg.d.ts +2 -3
  60. package/es/built-in/attachment-preview/previewers/image-png.d.ts +2 -3
  61. package/es/built-in/attachment-preview/previewers/image-svg.d.ts +2 -3
  62. package/es/built-in/context-menu/ContextMenu.provider.d.ts +1 -2
  63. package/es/built-in/document-title/index.d.ts +2 -2
  64. package/es/built-in/dynamic-page/DynamicPage.d.ts +1 -2
  65. package/es/built-in/dynamic-page/index.d.ts +1 -1
  66. package/es/built-in/index.d.ts +1 -2
  67. package/es/built-in/page-style/CustomAdminHeader.d.ts +1 -2
  68. package/es/built-in/page-style/PageStyle.provider.d.ts +1 -1
  69. package/es/built-in/page-style/TabContent.d.ts +2 -3
  70. package/es/built-in/page-style/TabHeader.d.ts +2 -3
  71. package/es/built-in/page-style/useTabSettings.d.ts +2 -3
  72. package/es/built-in/pinned-list/PinnedPluginListProvider.d.ts +2 -2
  73. package/es/built-in/pm/PluginCard.d.ts +2 -2
  74. package/es/built-in/pm/PluginManager.d.ts +1 -2
  75. package/es/built-in/quick-access/CustomRequestActionSchemaInitializerItem.d.ts +1 -2
  76. package/es/built-in/quick-access/LinkActionSchemaInitializerItem.d.ts +1 -2
  77. package/es/built-in/quick-access/ModalActionSchemaInitializerItem.d.ts +1 -2
  78. package/es/built-in/quick-access/PopupActionSchemaInitializerItem.d.ts +1 -2
  79. package/es/built-in/quick-access/SchemaSettingsBlockTitleItem.d.ts +1 -2
  80. package/es/built-in/scroll-assistant/ScrollAssistant.provider.d.ts +1 -2
  81. package/es/built-in/scroll-assistant/ScrollAssistantStatus.provider.d.ts +1 -2
  82. package/es/built-in/setting-layout/AdminSettings.d.ts +1 -1
  83. package/es/built-in/setting-layout/SettingLayout.d.ts +1 -2
  84. package/es/built-in/setting-layout/SettingsCenterDropdown.d.ts +1 -2
  85. package/es/built-in/system-settings/SystemSettingsShortcut.d.ts +1 -2
  86. package/es/built-in/system-version/SystemVersion.provider.d.ts +1 -2
  87. package/es/built-in/user-settings/UserSettingsLayout.d.ts +1 -2
  88. package/es/collection-manager/CollectionHistoryProvider.d.ts +1 -2
  89. package/es/collection-manager/CollectionManagerProvider.d.ts +2 -2
  90. package/es/collection-manager/CollectionManagerSchemaComponentProvider.d.ts +1 -2
  91. package/es/collection-manager/Configuration/AddCollectionAction.d.ts +2 -3
  92. package/es/collection-manager/Configuration/AddFieldAction.d.ts +2 -3
  93. package/es/collection-manager/Configuration/AddSubFieldAction.d.ts +1 -2
  94. package/es/collection-manager/Configuration/DeleteCollectionAction.d.ts +2 -3
  95. package/es/collection-manager/Configuration/EditCollectionAction.d.ts +2 -3
  96. package/es/collection-manager/Configuration/EditFieldAction.d.ts +2 -3
  97. package/es/collection-manager/Configuration/EditSubFieldAction.d.ts +1 -2
  98. package/es/collection-manager/Configuration/OverridingCollectionField.d.ts +2 -3
  99. package/es/collection-manager/Configuration/SyncFieldsAction.d.ts +2 -3
  100. package/es/collection-manager/Configuration/ViewInheritedField.d.ts +2 -3
  101. package/es/collection-manager/Configuration/components/FieldSummary.d.ts +1 -2
  102. package/es/collection-manager/Configuration/components/TemplateSummary.d.ts +1 -2
  103. package/es/collection-manager/ResourceActionProvider.d.ts +1 -1
  104. package/es/collection-manager/interfaces/__tests__/json.mjs +1 -1
  105. package/es/collection-manager/interfaces/components/index.d.ts +6 -7
  106. package/es/collection-manager/interfaces/json.d.ts +1 -2
  107. package/es/collection-manager/templates/components/PreviewFields.d.ts +1 -1
  108. package/es/collection-manager/templates/components/PreviewTable.d.ts +1 -2
  109. package/es/collection-manager/templates/components/sql-collection/SQLInput.d.ts +1 -2
  110. package/es/collection-manager/templates/components/sql-collection/SQLRequestProvider.d.ts +1 -1
  111. package/es/collection-manager/templates/sql.d.ts +2 -2
  112. package/es/collection-manager/templates/view.d.ts +2 -2
  113. package/es/common/SelectWithTitle.d.ts +1 -2
  114. package/es/common/appInfo/CurrentAppInfoProvider.d.ts +1 -1
  115. package/es/data-source/collection/ExtendCollectionsProvider.d.ts +1 -1
  116. package/es/data-source/collection-field/CollectionField.d.ts +1 -1
  117. package/es/data-source/data-block/DataBlockProvider.d.ts +1 -1
  118. package/es/data-source/data-block/DataBlockRequestProvider.d.ts +1 -1
  119. package/es/data-source/data-block/DataBlockResourceProvider.d.ts +1 -1
  120. package/es/data-source/data-source/DataSourceManagerProvider.d.ts +1 -1
  121. package/es/data-source/data-source/DataSourceProvider.d.ts +1 -1
  122. package/es/filter-provider/FilterProvider.d.ts +2 -2
  123. package/es/flag-provider/FlagProvider.d.ts +1 -1
  124. package/es/hooks/useMenuItem.d.ts +1 -1
  125. package/es/i18n/i18n.mjs +12 -10
  126. package/es/icon/preloaded.d.ts +8 -9
  127. package/es/index.d.ts +1 -0
  128. package/es/index.mjs +1 -0
  129. package/es/modules/actions/ActionSchemaToolbar.d.ts +1 -2
  130. package/es/modules/actions/add-child/CreateChildInitializer.d.ts +1 -2
  131. package/es/modules/actions/add-new/CreateActionInitializer.d.ts +1 -2
  132. package/es/modules/actions/add-record/CustomizeAddRecordActionInitializer.d.ts +1 -2
  133. package/es/modules/actions/bulk-destroy/BulkDestroyActionInitializer.d.ts +1 -2
  134. package/es/modules/actions/delete/DestroyActionInitializer.d.ts +1 -2
  135. package/es/modules/actions/disassociate/DisassociateActionInitializer.d.ts +1 -2
  136. package/es/modules/actions/expand-collapse/ExpandableActionInitializer.d.ts +1 -2
  137. package/es/modules/actions/filter/FilterActionInitializer.d.ts +1 -2
  138. package/es/modules/actions/link/hooks.d.ts +3 -4
  139. package/es/modules/actions/refresh/RefreshActionInitializer.d.ts +1 -2
  140. package/es/modules/actions/save-record/SaveRecordActionInitializer.d.ts +1 -2
  141. package/es/modules/actions/submit/CreateSubmitActionInitializer.d.ts +1 -2
  142. package/es/modules/actions/submit/UpdateSubmitActionInitializer.d.ts +1 -2
  143. package/es/modules/actions/submit/createSubmitActionSettings.d.ts +1 -2
  144. package/es/modules/actions/update-record/UpdateRecordActionInitializer.d.ts +1 -2
  145. package/es/modules/actions/view-edit-popup/PopupActionInitializer.d.ts +1 -2
  146. package/es/modules/actions/view-edit-popup/UpdateActionInitializer.d.ts +1 -2
  147. package/es/modules/actions/view-edit-popup/ViewActionInitializer.d.ts +1 -2
  148. package/es/modules/blocks/BlockSchemaToolbar.d.ts +1 -2
  149. package/es/modules/blocks/data-blocks/details-multi/DetailsBlockInitializer.d.ts +1 -2
  150. package/es/modules/blocks/data-blocks/details-multi/setDataLoadingModeSettingsItem.d.ts +1 -2
  151. package/es/modules/blocks/data-blocks/details-single/RecordReadPrettyFormBlockInitializer.d.ts +1 -2
  152. package/es/modules/blocks/data-blocks/form/CreateFormBlockInitializer.d.ts +1 -2
  153. package/es/modules/blocks/data-blocks/form/FormBlockInitializer.d.ts +1 -2
  154. package/es/modules/blocks/data-blocks/form/FormItemSchemaToolbar.d.ts +1 -2
  155. package/es/modules/blocks/data-blocks/form/RecordFormBlockInitializer.d.ts +1 -2
  156. package/es/modules/blocks/data-blocks/grid-card/GridCardBlockInitializer.d.ts +1 -2
  157. package/es/modules/blocks/data-blocks/list/ListBlockInitializer.d.ts +1 -2
  158. package/es/modules/blocks/data-blocks/table/TableActionColumnInitializers.d.ts +1 -2
  159. package/es/modules/blocks/data-blocks/table/TableBlockInitializer.d.ts +1 -2
  160. package/es/modules/blocks/data-blocks/table/TableColumnSchemaToolbar.d.ts +1 -2
  161. package/es/modules/blocks/data-blocks/table-selector/TableSelectorInitializer.d.ts +1 -2
  162. package/es/modules/blocks/filter-blocks/collapse/CollapseItemSchemaToolbar.d.ts +1 -2
  163. package/es/modules/blocks/filter-blocks/collapse/FilterCollapseBlockInitializer.d.ts +1 -2
  164. package/es/modules/blocks/filter-blocks/form/FilterFormBlockInitializer.d.ts +1 -2
  165. package/es/modules/blocks/filter-blocks/tree/FilterTreeBlockInitializer.d.ts +1 -2
  166. package/es/modules/blocks/other-blocks/markdown/MarkdownBlockInitializer.d.ts +1 -2
  167. package/es/modules/blocks/other-blocks/markdown/MarkdownFormItemInitializer.d.ts +1 -2
  168. package/es/modules/fields/component/Cascader/cascaderComponentFieldSettings.d.ts +2 -3
  169. package/es/modules/fields/initializer/CollectionFieldInitializer.d.ts +1 -2
  170. package/es/modules/fields/initializer/TableCollectionFieldInitializer.d.ts +1 -2
  171. package/es/modules/menu/GroupItem.d.ts +1 -2
  172. package/es/modules/menu/LinkMenuItem.d.ts +1 -2
  173. package/es/modules/menu/PageMenuItem.d.ts +1 -2
  174. package/es/modules/variable/DeclareVariable.d.ts +1 -1
  175. package/es/powered-by/index.d.ts +1 -2
  176. package/es/record-provider/index.d.ts +3 -3
  177. package/es/route-switch/RouteSchemaComponent.d.ts +1 -2
  178. package/es/schema-component/antd/action/Action.Area.d.ts +2 -2
  179. package/es/schema-component/antd/action/Action.Designer.d.ts +13 -13
  180. package/es/schema-component/antd/action/Action.Drawer.d.ts +1 -2
  181. package/es/schema-component/antd/action/Action.Modal.d.ts +1 -2
  182. package/es/schema-component/antd/action/ActionBar.d.ts +1 -1
  183. package/es/schema-component/antd/action/context.d.ts +1 -1
  184. package/es/schema-component/antd/appends-tree-select/AppendsTreeSelectV2.d.ts +1 -2
  185. package/es/schema-component/antd/association-cascader/AssociationCascader.d.ts +1 -1
  186. package/es/schema-component/antd/association-field/FileManager.d.ts +1 -1
  187. package/es/schema-component/antd/association-field/Nester.d.ts +1 -2
  188. package/es/schema-component/antd/association-field/SubTabs/InternalCollapse.d.ts +1 -1
  189. package/es/schema-component/antd/association-filter/ActionBarAssociationFilterAction.d.ts +1 -2
  190. package/es/schema-component/antd/association-filter/AssociationFilter.BlockDesigner.d.ts +1 -2
  191. package/es/schema-component/antd/association-filter/AssociationFilter.Item.Designer.d.ts +1 -2
  192. package/es/schema-component/antd/association-filter/AssociationFilter.d.ts +2 -2
  193. package/es/schema-component/antd/association-filter/AssociationFilterDesignerDelete.d.ts +1 -2
  194. package/es/schema-component/antd/association-filter/AssociationFilterDesignerDisplayField.d.ts +1 -2
  195. package/es/schema-component/antd/block-item/BlockToolbar.d.ts +6 -6
  196. package/es/schema-component/antd/block-item/useBlockToolbar.d.ts +1 -1
  197. package/es/schema-component/antd/card-item/CardItem.d.ts +1 -1
  198. package/es/schema-component/antd/checkbox/Checkbox.d.ts +2 -2
  199. package/es/schema-component/antd/cron/Cron.d.ts +1 -2
  200. package/es/schema-component/antd/date-picker/DatePicker.d.ts +2 -2
  201. package/es/schema-component/antd/error-fallback/ErrorFallback.d.ts +1 -2
  202. package/es/schema-component/antd/expand-action/Expand.Action.Design.d.ts +1 -2
  203. package/es/schema-component/antd/filter/DynamicComponent.d.ts +1 -1
  204. package/es/schema-component/antd/filter/Filter.Action.Designer.d.ts +2 -3
  205. package/es/schema-component/antd/filter/SaveDefaultValue.d.ts +1 -2
  206. package/es/schema-component/antd/form/Form.Designer.d.ts +1 -2
  207. package/es/schema-component/antd/form-item/FormItem.FilterFormDesigner.d.ts +1 -2
  208. package/es/schema-component/antd/form-item/FormItem.d.ts +3 -4
  209. package/es/schema-component/antd/form-item/SchemaSettingOptions.d.ts +10 -11
  210. package/es/schema-component/antd/form-v2/Form.Designer.d.ts +3 -4
  211. package/es/schema-component/antd/form-v2/Form.FilterDesigner.d.ts +1 -2
  212. package/es/schema-component/antd/form-v2/Templates.d.ts +1 -2
  213. package/es/schema-component/antd/form-v2/Templates.mjs +0 -1
  214. package/es/schema-component/antd/grid-card/GridCard.Designer.d.ts +1 -2
  215. package/es/schema-component/antd/grid-card/GridCard.d.ts +1 -2
  216. package/es/schema-component/antd/icon-picker/IconFilterInput.d.ts +1 -2
  217. package/es/schema-component/antd/icon-picker/IconList.d.ts +1 -2
  218. package/es/schema-component/antd/input/ReadPretty.d.ts +5 -6
  219. package/es/schema-component/antd/list/List.Designer.d.ts +1 -2
  220. package/es/schema-component/antd/markdown/Markdown.Void.Designer.d.ts +1 -2
  221. package/es/schema-component/antd/menu/Menu.Designer.d.ts +1 -2
  222. package/es/schema-component/antd/nanoIDInput/NanoIDInput.d.ts +1 -1
  223. package/es/schema-component/antd/page/FixedBlock.d.ts +2 -2
  224. package/es/schema-component/antd/page/FixedBlockDesignerItem.d.ts +1 -2
  225. package/es/schema-component/antd/page/PageTabDesigner.d.ts +2 -3
  226. package/es/schema-component/antd/popover/Popover.d.ts +1 -2
  227. package/es/schema-component/antd/record-picker/InputRecordPicker.d.ts +1 -1
  228. package/es/schema-component/antd/scroll-area/ScrollArea.d.ts +1 -2
  229. package/es/schema-component/antd/select/FormulaSelect.d.ts +1 -2
  230. package/es/schema-component/antd/table/Table.Array.Designer.d.ts +1 -2
  231. package/es/schema-component/antd/table/Table.Column.Decorator.d.ts +1 -2
  232. package/es/schema-component/antd/table/Table.Column.Designer.d.ts +1 -2
  233. package/es/schema-component/antd/table/Table.Column.d.ts +1 -2
  234. package/es/schema-component/antd/table/Table.Designer.d.ts +1 -2
  235. package/es/schema-component/antd/table/Table.RowActionDesigner.d.ts +1 -2
  236. package/es/schema-component/antd/table/Table.Void.Designer.d.ts +1 -2
  237. package/es/schema-component/antd/table-v2/Table.ActionColumnDesigner.d.ts +1 -2
  238. package/es/schema-component/antd/table-v2/Table.Column.Decorator.d.ts +1 -2
  239. package/es/schema-component/antd/table-v2/Table.Column.Designer.d.ts +1 -2
  240. package/es/schema-component/antd/table-v2/Table.Column.d.ts +1 -2
  241. package/es/schema-component/antd/table-v2/Table.Designer.d.ts +1 -2
  242. package/es/schema-component/antd/table-v2/Table.Index.d.ts +1 -2
  243. package/es/schema-component/antd/table-v2/TableBlockDesigner.d.ts +2 -3
  244. package/es/schema-component/antd/table-v2/TableSelectorDesigner.d.ts +1 -2
  245. package/es/schema-component/antd/tabs/Tabs.Designer.d.ts +1 -2
  246. package/es/schema-component/antd/upload/ReadPretty.d.ts +1 -1
  247. package/es/schema-component/antd/upload/Upload.d.ts +1 -2
  248. package/es/schema-component/antd/variable/CodeMirror.d.ts +1 -2
  249. package/es/schema-component/antd/variable/Input.d.ts +1 -2
  250. package/es/schema-component/antd/variable/JSONInput.d.ts +1 -2
  251. package/es/schema-component/antd/variable/TextArea.d.ts +2 -3
  252. package/es/schema-component/antd/variable/Variable.d.ts +1 -1
  253. package/es/schema-component/common/infinite-scroll/infinite-scroll.d.ts +2 -2
  254. package/es/schema-component/common/sortable-item/SortableItem.d.ts +2 -2
  255. package/es/schema-component/core/DesignableSwitch.d.ts +1 -2
  256. package/es/schema-component/core/FormProvider.d.ts +1 -2
  257. package/es/schema-component/core/RemoteSchemaComponent.d.ts +1 -1
  258. package/es/schema-component/core/SchemaComponent.d.ts +1 -2
  259. package/es/schema-component/core/SchemaComponentOptions.d.ts +1 -1
  260. package/es/schema-component/core/SchemaComponentProvider.d.ts +1 -2
  261. package/es/schema-component/hooks/useDesignable.d.ts +2 -2
  262. package/es/schema-initializer/buttons/FormItemInitializers.d.ts +5 -6
  263. package/es/schema-initializer/buttons/TabPaneInitializers.d.ts +3 -4
  264. package/es/schema-initializer/components/DeletedField.d.ts +1 -2
  265. package/es/schema-initializer/components/assigned-field/AssignedField.d.ts +1 -2
  266. package/es/schema-initializer/items/ActionInitializer.d.ts +1 -2
  267. package/es/schema-initializer/items/BlockInitializer.d.ts +2 -3
  268. package/es/schema-initializer/items/CreateFilterActionInitializer.d.ts +1 -2
  269. package/es/schema-initializer/items/CreateResetActionInitializer.d.ts +1 -2
  270. package/es/schema-initializer/items/CustomFilterFormItemInitializer.d.ts +1 -1
  271. package/es/schema-initializer/items/CustomizeActionInitializer.d.ts +1 -2
  272. package/es/schema-initializer/items/DataBlockInitializer.d.ts +2 -2
  273. package/es/schema-initializer/items/DeleteEventActionInitializer.d.ts +1 -2
  274. package/es/schema-initializer/items/FilterBlockInitializer.d.ts +1 -1
  275. package/es/schema-initializer/items/G2PlotInitializer.d.ts +1 -2
  276. package/es/schema-initializer/items/InitializerWithSwitch.d.ts +1 -2
  277. package/es/schema-initializer/items/RecordAssociationBlockInitializer.d.ts +1 -2
  278. package/es/schema-initializer/items/RecordAssociationDetailsBlockInitializer.d.ts +1 -2
  279. package/es/schema-initializer/items/RecordAssociationFormBlockInitializer.d.ts +1 -2
  280. package/es/schema-initializer/items/RecordAssociationGridCardBlockInitializer.d.ts +1 -2
  281. package/es/schema-initializer/items/RecordAssociationListBlockInitializer.d.ts +1 -2
  282. package/es/schema-initializer/items/RecordReadPrettyAssociationFormBlockInitializer.d.ts +1 -2
  283. package/es/schema-initializer/items/SelectActionInitializer.d.ts +1 -2
  284. package/es/schema-initializer/items/SubmitActionInitializer.d.ts +1 -2
  285. package/es/schema-initializer/items/TableActionColumnInitializer.d.ts +1 -2
  286. package/es/schema-settings/DataTemplates/TreeLabel.d.ts +1 -2
  287. package/es/schema-settings/DateFormat/ExpiresRadio.d.ts +1 -1
  288. package/es/schema-settings/EditCustomDefaultValue.d.ts +2 -3
  289. package/es/schema-settings/EditFormulaTitleField.d.ts +1 -2
  290. package/es/schema-settings/LinkageRules/DynamicComponent.d.ts +1 -2
  291. package/es/schema-settings/LinkageRules/ValueDynamicComponent.d.ts +1 -2
  292. package/es/schema-settings/SchemaSettingCollection.d.ts +1 -2
  293. package/es/schema-settings/SchemaSettingComponent.d.ts +1 -2
  294. package/es/schema-settings/SchemaSettings.d.ts +9 -9
  295. package/es/schema-settings/SchemaSettings.mjs +3 -2
  296. package/es/schema-settings/SchemaSettingsDateFormat.d.ts +1 -2
  297. package/es/schema-settings/SchemaSettingsDefaultValue.d.ts +1 -2
  298. package/es/schema-settings/SchemaSettingsNumberFormat.d.ts +1 -2
  299. package/es/schema-settings/SchemaSettingsSortingRule.d.ts +1 -2
  300. package/es/schema-settings/VariableInput/VariableInput.d.ts +1 -1
  301. package/es/schema-settings/VariableInput/hooks/useBaseVariable.d.ts +1 -1
  302. package/es/schema-settings/hooks/useIsAllowToSetDefaultValue.d.ts +1 -1
  303. package/es/schema-settings/index.d.ts +1 -0
  304. package/es/schema-settings/index.mjs +1 -0
  305. package/es/schema-templates/BlockTemplate.d.ts +1 -2
  306. package/es/schema-templates/BlockTemplateDetails.d.ts +1 -2
  307. package/es/schema-templates/BlockTemplatePage.d.ts +2 -3
  308. package/es/schema-templates/SchemaTemplateManagerProvider.d.ts +1 -1
  309. package/es/schema-templates/schemas/CollectionTitle.d.ts +1 -2
  310. package/es/style/theme/AntdAppProvider.d.ts +1 -1
  311. package/es/style/theme/index.d.ts +1 -1
  312. package/es/user/CurrentUser.d.ts +1 -1
  313. package/es/user/CurrentUserProvider.d.ts +2 -2
  314. package/es/user/CurrentUserSettingsMenuProvider.d.ts +1 -2
  315. package/es/user/VerificationCode.d.ts +1 -2
  316. package/es/variables/VariablesProvider.d.ts +1 -1
  317. package/lib/built-in/assistant/Assistant.provider.js +66 -30
  318. package/lib/built-in/assistant/{ai-chat/index.module.js → context.js} +6 -30
  319. package/lib/built-in/assistant/index.js +71 -10
  320. package/lib/collection-manager/interfaces/__tests__/json.js +1 -1
  321. package/lib/i18n/i18n.js +12 -10
  322. package/lib/index.js +86 -71
  323. package/lib/schema-component/antd/form-v2/Templates.js +0 -1
  324. package/lib/schema-settings/SchemaSettings.js +3 -2
  325. package/lib/schema-settings/index.js +57 -48
  326. package/package.json +7 -7
  327. package/es/built-in/assistant/ai-chat/index.d.ts +0 -8
  328. package/es/built-in/assistant/ai-chat/index.mjs +0 -330
  329. package/es/built-in/assistant/ai-chat/index.module.mjs +0 -30
  330. package/es/built-in/assistant/ai-chat/index_module.css +0 -257
  331. package/lib/built-in/assistant/ai-chat/index.js +0 -378
  332. package/lib/built-in/assistant/ai-chat/index_module.css +0 -257
@@ -1,7 +1,7 @@
1
- import React, { ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  import { APIClient } from './APIClient';
3
3
  export interface APIClientProviderProps {
4
4
  apiClient: APIClient;
5
5
  children?: ReactNode;
6
6
  }
7
- export declare const APIClientProvider: (props: APIClientProviderProps) => React.JSX.Element;
7
+ export declare const APIClientProvider: (props: APIClientProviderProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
1
  import { ISchemaComponentProvider } from '../schema-component/types';
3
- export declare const AppSchemaComponentProvider: (props: ISchemaComponentProvider) => React.JSX.Element;
2
+ export declare const AppSchemaComponentProvider: (props: ISchemaComponentProvider) => import("react/jsx-runtime").JSX.Element;
@@ -103,6 +103,6 @@ export declare class Application {
103
103
  protected addComponent(component: ComponentType, name?: string): void;
104
104
  addComponents(components: Record<string, ComponentType>): void;
105
105
  addScopes(scopes: Record<string, any>): void;
106
- getRootComponent(): () => React.JSX.Element;
106
+ getRootComponent(): () => import("react/jsx-runtime").JSX.Element;
107
107
  mount(containerOrSelector: Element | ShadowRoot | string): import("react-dom/client").Root;
108
108
  }
@@ -22,7 +22,7 @@ export interface NoticeManagerContextProps {
22
22
  export declare const NoticeManagerContext: React.Context<NoticeManagerContextProps>;
23
23
  export declare const NoticeManagerProvider: ({ children }: {
24
24
  children: ReactNode;
25
- }) => React.JSX.Element;
25
+ }) => import("react/jsx-runtime").JSX.Element;
26
26
  export declare const useNoticeManager: () => NoticeManagerContextProps;
27
27
  export declare const useNoticeSub: (name: string, handler: (...args: any) => void) => void;
28
28
  export declare class NoticeManager {
@@ -37,7 +37,7 @@ export declare class RouterManager {
37
37
  getRouterComponent(): ({ BaseLayout, }: {
38
38
  BaseLayout?: ComponentType<any>;
39
39
  children?: React.ReactNode;
40
- }) => React.JSX.Element;
40
+ }) => import("react/jsx-runtime").JSX.Element;
41
41
  add(name: string, route: RouteType): void;
42
42
  get(name: string): RouteType;
43
43
  has(name: string): boolean;
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  export declare const BlankComponent: ({ children }: {
3
3
  children?: ReactNode;
4
- }) => React.JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import React from 'react';
2
- export declare const MainComponent: React.MemoExoticComponent<() => React.JSX.Element>;
2
+ export declare const MainComponent: React.MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
@@ -1,4 +1,4 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  export declare const RouterContextCleaner: React.MemoExoticComponent<(props: {
3
3
  children?: ReactNode;
4
- }) => React.JSX.Element>;
4
+ }) => import("react/jsx-runtime").JSX.Element>;
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  export declare const defaultAppComponents: {
3
- AppMain: React.MemoExoticComponent<() => React.JSX.Element>;
4
- AppSpin: () => React.JSX.Element;
3
+ AppMain: React.MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
4
+ AppSpin: () => import("react/jsx-runtime").JSX.Element;
5
5
  AppError: ({ error }: {
6
6
  error: Error;
7
- }) => React.JSX.Element;
8
- AppNotFound: () => React.JSX.Element;
7
+ }) => import("react/jsx-runtime").JSX.Element;
8
+ AppNotFound: () => import("react/jsx-runtime").JSX.Element;
9
9
  };
@@ -1,4 +1,4 @@
1
- import React, { FC } from 'react';
1
+ import { FC } from 'react';
2
2
  export interface SchemaInitializerActionModalProps {
3
3
  title: string;
4
4
  schema: any;
@@ -8,4 +8,4 @@ export interface SchemaInitializerActionModalProps {
8
8
  component?: any;
9
9
  }
10
10
  export declare const SchemaInitializerActionModal: FC<SchemaInitializerActionModalProps>;
11
- export declare const SchemaInitializerActionModalInternal: () => React.JSX.Element;
11
+ export declare const SchemaInitializerActionModalInternal: () => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export declare const SchemaInitializerDivider: () => React.JSX.Element;
1
+ export declare const SchemaInitializerDivider: () => import("react/jsx-runtime").JSX.Element;
@@ -11,4 +11,4 @@ export interface SchemaInitializerItemProps {
11
11
  children?: ReactNode;
12
12
  }
13
13
  export declare const SchemaInitializerItem: React.MemoExoticComponent<React.ForwardRefExoticComponent<SchemaInitializerItemProps & React.RefAttributes<any>>>;
14
- export declare const SchemaInitializerItemInternal: () => React.JSX.Element;
14
+ export declare const SchemaInitializerItemInternal: () => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import React, { FC } from 'react';
1
+ import { FC } from 'react';
2
2
  import { SchemaInitializerOptions } from '../types';
3
3
  export interface SchemaInitializerItemGroupProps {
4
4
  title: string;
@@ -6,4 +6,4 @@ export interface SchemaInitializerItemGroupProps {
6
6
  divider?: boolean;
7
7
  }
8
8
  export declare const SchemaInitializerItemGroup: FC<SchemaInitializerItemGroupProps>;
9
- export declare const SchemaInitializerItemGroupInternal: () => React.JSX.Element;
9
+ export declare const SchemaInitializerItemGroupInternal: () => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import React, { FC } from 'react';
1
+ import { FC } from 'react';
2
2
  import { SelectProps } from 'antd';
3
3
  import { SchemaInitializerItemProps } from './SchemaInitializerItem';
4
4
  export interface SchemaInitializerSelectItemProps extends SchemaInitializerItemProps {
@@ -8,4 +8,4 @@ export interface SchemaInitializerSelectItemProps extends SchemaInitializerItemP
8
8
  openOnHover?: boolean;
9
9
  }
10
10
  export declare const SchemaInitializerSelect: FC<SchemaInitializerSelectItemProps>;
11
- export declare const SchemaInitializerSelectInternal: () => React.JSX.Element;
11
+ export declare const SchemaInitializerSelectInternal: () => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import React, { FC, ReactNode } from 'react';
1
+ import { FC, ReactNode } from 'react';
2
2
  import { MenuProps } from 'antd';
3
3
  import { SchemaInitializerOptions } from '../types';
4
4
  export interface SchemaInitializerSubMenuProps {
@@ -12,6 +12,6 @@ export interface SchemaInitializerSubMenuProps {
12
12
  export declare const useSchemaInitializerSubMenuContext: () => {
13
13
  isInMenu?: true;
14
14
  };
15
- export declare const SchemaInitializerMenu: (props: MenuProps) => React.JSX.Element;
15
+ export declare const SchemaInitializerMenu: (props: MenuProps) => import("react/jsx-runtime").JSX.Element;
16
16
  export declare const SchemaInitializerSubMenu: FC<SchemaInitializerSubMenuProps>;
17
- export declare const SchemaInitializerSubMenuInternal: () => React.JSX.Element;
17
+ export declare const SchemaInitializerSubMenuInternal: () => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,8 @@
1
- import React, { FC } from 'react';
1
+ import { FC } from 'react';
2
2
  import { SchemaInitializerItemProps } from './SchemaInitializerItem';
3
3
  export interface SchemaInitializerSwitchItemProps extends SchemaInitializerItemProps {
4
4
  checked?: boolean;
5
5
  disabled?: boolean;
6
6
  }
7
7
  export declare const SchemaInitializerSwitch: FC<SchemaInitializerSwitchItemProps>;
8
- export declare const SchemaInitializerSwitchInternal: () => React.JSX.Element;
8
+ export declare const SchemaInitializerSwitchInternal: () => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  export declare const SchemaToolbarContext: React.Context<any>;
3
- export declare const SchemaToolbarProvider: (props: any) => React.JSX.Element;
3
+ export declare const SchemaToolbarProvider: (props: any) => import("react/jsx-runtime").JSX.Element;
4
4
  export declare function useSchemaToolbar<T = any>(): T;
@@ -1,9 +1,8 @@
1
- import React from 'react';
2
1
  import { ISchema } from '@tachybase/schema';
3
2
  import { SchemaToolbarProps } from '../../../schema-settings/GeneralSchemaDesigner';
4
3
  export declare const useSchemaToolbarRender: (fieldSchema: ISchema) => {
5
4
  render(props?: SchemaToolbarProps & {
6
5
  [index: string]: any;
7
- }): React.JSX.Element;
6
+ }): import("react/jsx-runtime").JSX.Element;
8
7
  exists: boolean;
9
8
  };
@@ -11,7 +11,7 @@ export interface AsyncDataProviderProps {
11
11
  onSuccess?: (data: any, params: any) => void;
12
12
  children: React.ReactNode;
13
13
  }
14
- export declare const AsyncDataProvider: (props: AsyncDataProviderProps) => React.JSX.Element;
14
+ export declare const AsyncDataProvider: (props: AsyncDataProviderProps) => import("react/jsx-runtime").JSX.Element;
15
15
  export declare const useAsyncData: () => Result<any, any> & {
16
16
  state?: any;
17
17
  setState?: any;
@@ -25,7 +25,7 @@ export declare const MaybeCollectionProvider: (props: any) => any;
25
25
  * @param props
26
26
  * @returns
27
27
  */
28
- export declare const BlockRequestProvider_deprecated: (props: any) => React.JSX.Element;
28
+ export declare const BlockRequestProvider_deprecated: (props: any) => import("react/jsx-runtime").JSX.Element;
29
29
  /**
30
30
  * @deprecated
31
31
  */
@@ -60,7 +60,7 @@ export declare const BlockProvider: (props: {
60
60
  useSourceId?: any;
61
61
  /** @deprecated */
62
62
  useParams?: any;
63
- }) => React.JSX.Element;
63
+ }) => import("react/jsx-runtime").JSX.Element;
64
64
  export declare const useBlockAssociationContext: () => any;
65
65
  export declare const useFilterByTk: () => any;
66
66
  /**
@@ -73,4 +73,4 @@ export declare const useSourceIdFromParentRecord: () => any;
73
73
  export declare const useParamsFromRecord: () => {
74
74
  filterByTk: any;
75
75
  };
76
- export declare const RecordLink: (props: any) => React.JSX.Element;
76
+ export declare const RecordLink: (props: any) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  export declare const FormFieldContext: React.Context<any>;
3
3
  export declare const WithoutFormFieldResource: React.Context<any>;
4
- export declare const FormFieldProvider: (props: any) => React.JSX.Element;
4
+ export declare const FormFieldProvider: (props: any) => import("react/jsx-runtime").JSX.Element;
5
5
  export declare const useFormFieldContext: () => any;
6
6
  export declare const useFormFieldProps: () => {
7
7
  form: any;
@@ -2,4 +2,4 @@ import React from 'react';
2
2
  export declare const MobileContext: React.Context<any>;
3
3
  export declare const MobileProvider: ({ children }: {
4
4
  children: any;
5
- }) => React.JSX.Element;
5
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,6 @@
1
- import React from 'react';
2
1
  /**
3
2
  * @deprecated
4
3
  * @param props
5
4
  * @returns
6
5
  */
7
- export declare const PageLayout: (props: any) => React.JSX.Element;
6
+ export declare const PageLayout: (props: any) => import("react/jsx-runtime").JSX.Element;
@@ -23,7 +23,7 @@ export declare class TableFieldResource {
23
23
  destroy(options: any): Promise<void>;
24
24
  }
25
25
  export declare const WithoutTableFieldResource: React.Context<any>;
26
- export declare const TableFieldProvider: (props: any) => React.JSX.Element;
26
+ export declare const TableFieldProvider: (props: any) => import("react/jsx-runtime").JSX.Element;
27
27
  export declare const useTableFieldContext: () => any;
28
28
  export declare const useTableFieldProps: () => {
29
29
  size: string;
@@ -10,7 +10,7 @@ export declare const TableSelectorContext: React.Context<any>;
10
10
  export declare const TableSelectorParamsProvider: ({ params, children }: {
11
11
  params: Params;
12
12
  children: any;
13
- }) => React.JSX.Element;
13
+ }) => import("react/jsx-runtime").JSX.Element;
14
14
  export declare const recursiveParent: (schema: Schema, component: any) => any;
15
15
  export declare const TableSelectorProvider: React.FunctionComponent<any>;
16
16
  export declare const useTableSelectorContext: () => any;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  export declare const TreeBlockContext: React.Context<any>;
3
- export declare const TreeBlockProvider: (props: any) => React.JSX.Element;
3
+ export declare const TreeBlockProvider: (props: any) => import("react/jsx-runtime").JSX.Element;
4
4
  export declare const useTreeBlockContext: () => any;
5
5
  export declare const useTreeBlockProps: () => {
6
6
  loading: any;
@@ -14,7 +14,7 @@ interface ProviderProps extends Partial<FormActiveFieldsProviderValue> {
14
14
  * @param param0
15
15
  * @returns
16
16
  */
17
- export declare const FormActiveFieldsProvider: ({ children, name, getActiveFieldsName, addActiveFieldName, removeActiveFieldName, }: ProviderProps) => React.JSX.Element;
17
+ export declare const FormActiveFieldsProvider: ({ children, name, getActiveFieldsName, addActiveFieldName, removeActiveFieldName, }: ProviderProps) => import("react/jsx-runtime").JSX.Element;
18
18
  /**
19
19
  * 用于获取和更新当前表单卡片中已显示出来的字段
20
20
  * @returns
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import { Schema } from '@tachybase/schema';
3
3
  export declare const ACLContext: React.Context<any>;
4
- export declare const ACLProvider: (props: any) => React.JSX.Element;
5
- export declare const ACLRolesCheckProvider: (props: any) => React.JSX.Element;
4
+ export declare const ACLProvider: (props: any) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const ACLRolesCheckProvider: (props: any) => import("react/jsx-runtime").JSX.Element;
6
6
  export declare const useRoleRecheck: () => () => void;
7
7
  export declare const useACLContext: () => any;
8
8
  export declare const ACLActionParamsContext: React.Context<any>;
@@ -17,10 +17,10 @@ export declare function useACLRoleContext(): any;
17
17
  export declare const ACLCollectionProvider: (props: any) => any;
18
18
  export declare const useACLActionParamsContext: () => any;
19
19
  export declare const useRecordPkValue: () => any;
20
- export declare const ACLActionProvider: (props: any) => React.JSX.Element;
20
+ export declare const ACLActionProvider: (props: any) => import("react/jsx-runtime").JSX.Element;
21
21
  export declare const useACLFieldWhitelist: () => {
22
22
  whitelist: any[];
23
23
  schemaInWhitelist(fieldSchema: Schema, isSkip?: any): boolean;
24
24
  };
25
- export declare const ACLCollectionFieldProvider: (props: any) => React.JSX.Element;
26
- export declare const ACLMenuItemProvider: (props: any) => React.JSX.Element;
25
+ export declare const ACLCollectionFieldProvider: (props: any) => import("react/jsx-runtime").JSX.Element;
26
+ export declare const ACLMenuItemProvider: (props: any) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export declare const ACLPane: () => React.JSX.Element;
1
+ export declare const ACLPane: () => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- export declare const SettingCenterProvider: (props: any) => React.JSX.Element;
3
- export declare const SettingsCenterConfigure: () => React.JSX.Element;
1
+ export declare const SettingCenterProvider: (props: any) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const SettingsCenterConfigure: () => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export declare const MenuConfigure: () => React.JSX.Element;
1
+ export declare const MenuConfigure: () => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  export declare const toItems: (properties?: {}) => any[];
3
2
  export declare const useMenuItems: () => any;
4
- export declare const MenuItemsProvider: (props: any) => React.JSX.Element;
3
+ export declare const MenuItemsProvider: (props: any) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- export declare const SettingCenterPermissionProvider: (props: any) => React.JSX.Element;
2
+ export declare const SettingCenterPermissionProvider: (props: any) => import("react/jsx-runtime").JSX.Element;
3
3
  export declare const PermissionContext: React.Context<any>;
4
- export declare const PermissionProvider: (props: any) => React.JSX.Element;
4
+ export declare const PermissionProvider: (props: any) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export declare const RoleConfigure: () => React.JSX.Element;
1
+ export declare const RoleConfigure: () => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
1
  export declare const useAvailableActions: () => any[];
3
- export declare const RoleTable: () => React.JSX.Element;
2
+ export declare const RoleTable: () => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
1
  export declare const useRolesResourcesScopesSelectedRowKeys: () => any;
3
- export declare const ScopeSelect: (props: any) => React.JSX.Element;
2
+ export declare const ScopeSelect: (props: any) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export declare const AdminContent: () => React.JSX.Element;
1
+ export declare const AdminContent: () => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export declare const AdminLayout: (props: any) => React.JSX.Element;
1
+ export declare const AdminLayout: (props: any) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export declare const AdminProvider: (props: any) => React.JSX.Element;
1
+ export declare const AdminProvider: (props: any) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export declare const AdminTabs: () => React.JSX.Element;
1
+ export declare const AdminTabs: () => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export declare const InternalAdminLayout: (props: any) => React.JSX.Element;
1
+ export declare const InternalAdminLayout: (props: any) => import("react/jsx-runtime").JSX.Element;
@@ -4,4 +4,4 @@ export declare const useMenuProps: () => {
4
4
  selectedUid: any;
5
5
  defaultSelectedUid: any;
6
6
  };
7
- export declare const MenuEditor: (props: any) => React.JSX.Element;
7
+ export declare const MenuEditor: (props: any) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export declare const AddNewButtonComponent: () => React.JSX.Element;
1
+ export declare const AddNewButtonComponent: () => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export declare const WelcomeCard: () => React.JSX.Element;
1
+ export declare const WelcomeCard: () => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,9 @@
1
1
  import React from 'react';
2
2
  export declare const AssistantProvider: ({ children }: {
3
3
  children: any;
4
- }) => React.JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const AssistantListProvider: (props: {
6
+ items: any;
7
+ children: React.ReactNode;
8
+ }) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const AssistantList: () => import("react/jsx-runtime").JSX.Element;
@@ -1,20 +1,41 @@
1
1
  import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__ from "react/jsx-runtime";
2
2
  import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
3
+ import * as __WEBPACK_EXTERNAL_MODULE__tachybase_schema__ from "@tachybase/schema";
3
4
  import * as __WEBPACK_EXTERNAL_MODULE__ant_design_icons__ from "@ant-design/icons";
4
5
  import * as __WEBPACK_EXTERNAL_MODULE_antd__ from "antd";
6
+ import * as __WEBPACK_EXTERNAL_MODULE_antd_style__ from "antd-style";
7
+ import * as __WEBPACK_EXTERNAL_MODULE_lodash__ from "lodash";
5
8
  import * as __WEBPACK_EXTERNAL_MODULE_react_hotkeys_hook__ from "react-hotkeys-hook";
6
9
  import * as __WEBPACK_EXTERNAL_MODULE__icon_index_mjs__ from "../../icon/index.mjs";
7
10
  import * as __WEBPACK_EXTERNAL_MODULE__schema_component_index_mjs__ from "../../schema-component/index.mjs";
11
+ import * as __WEBPACK_EXTERNAL_MODULE__acl_index_mjs__ from "../acl/index.mjs";
8
12
  import * as __WEBPACK_EXTERNAL_MODULE__context_menu_index_mjs__ from "../context-menu/index.mjs";
9
- import * as __WEBPACK_EXTERNAL_MODULE__ai_chat_index_mjs__ from "./ai-chat/index.mjs";
10
13
  import * as __WEBPACK_EXTERNAL_MODULE__calculator_CalculatorProvider_mjs__ from "./calculator/CalculatorProvider.mjs";
14
+ import * as __WEBPACK_EXTERNAL_MODULE__context_mjs__ from "./context.mjs";
11
15
  import * as __WEBPACK_EXTERNAL_MODULE__search_and_jump_index_mjs__ from "./search-and-jump/index.mjs";
16
+ function _tagged_template_literal(strings, raw) {
17
+ if (!raw) raw = strings.slice(0);
18
+ return Object.freeze(Object.defineProperties(strings, {
19
+ raw: {
20
+ value: Object.freeze(raw)
21
+ }
22
+ }));
23
+ }
24
+ function _templateObject() {
25
+ const data = _tagged_template_literal([
26
+ "\n display: inline-block;\n .ant-btn {\n border: 0;\n height: var(--tb-header-height);\n width: 46px;\n border-radius: 0;\n color: rgba(255, 255, 255, 0.65);\n &:hover {\n background: rgba(255, 255, 255, 0.1) !important;\n }\n }\n "
27
+ ]);
28
+ _templateObject = function() {
29
+ return data;
30
+ };
31
+ return data;
32
+ }
12
33
  const AssistantProvider = (param)=>{
13
34
  let { children } = param;
14
35
  const { designable, setDesignable } = (0, __WEBPACK_EXTERNAL_MODULE__schema_component_index_mjs__.useDesignable)();
15
36
  const { visible, setVisible } = (0, __WEBPACK_EXTERNAL_MODULE__calculator_CalculatorProvider_mjs__.useCalculator)();
16
37
  const { setOpen } = (0, __WEBPACK_EXTERNAL_MODULE__search_and_jump_index_mjs__.useSearchAndJump)();
17
- const ref = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)();
38
+ (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)();
18
39
  (0, __WEBPACK_EXTERNAL_MODULE_react_hotkeys_hook__.useHotkeys)('Ctrl+Shift+U', ()=>setDesignable(!designable), [
19
40
  designable
20
41
  ]);
@@ -24,11 +45,6 @@ const AssistantProvider = (param)=>{
24
45
  return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.Fragment, {
25
46
  children: [
26
47
  children,
27
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__ai_chat_index_mjs__["default"], {
28
- mRef: ref,
29
- onGenerateLoad: async (msg)=>true,
30
- onReloadWrite: ()=>{}
31
- }),
32
48
  /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)(__WEBPACK_EXTERNAL_MODULE_antd__.FloatButton.Group, {
33
49
  trigger: "hover",
34
50
  type: "default",
@@ -56,22 +72,54 @@ const AssistantProvider = (param)=>{
56
72
  setVisible((visible)=>!visible);
57
73
  }
58
74
  }),
59
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_antd__.FloatButton, {
60
- icon: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__ant_design_icons__.CommentOutlined, {}),
61
- onClick: ()=>{
62
- var _ref_current;
63
- null === (_ref_current = ref.current) || void 0 === _ref_current || _ref_current.openModal();
64
- }
65
- }),
66
75
  /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_antd__.FloatButton, {
67
76
  type: contextMenuEnabled ? 'primary' : 'default',
68
77
  icon: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__ant_design_icons__.ToolOutlined, {
69
78
  onClick: ()=>setContextMenuEnable(!contextMenuEnabled)
70
79
  })
71
- })
80
+ }),
81
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(AssistantList, {})
72
82
  ]
73
83
  })
74
84
  ]
75
85
  });
76
86
  };
77
- export { AssistantProvider };
87
+ const AssistantListProvider = (props)=>{
88
+ const { children, items } = props;
89
+ const ctx = (0, __WEBPACK_EXTERNAL_MODULE_react__.useContext)(__WEBPACK_EXTERNAL_MODULE__context_mjs__.AssistantListContext);
90
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.Fragment, {
91
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__context_mjs__.AssistantListContext.Provider, {
92
+ value: {
93
+ items: {
94
+ ...ctx.items,
95
+ ...items
96
+ }
97
+ },
98
+ children: children
99
+ })
100
+ });
101
+ };
102
+ const useStyles = (0, __WEBPACK_EXTERNAL_MODULE_antd_style__.createStyles)((param)=>{
103
+ let { css } = param;
104
+ return {
105
+ container: css(_templateObject())
106
+ };
107
+ });
108
+ const AssistantList = ()=>{
109
+ const { allowAll, snippets } = (0, __WEBPACK_EXTERNAL_MODULE__acl_index_mjs__.useACLRoleContext)();
110
+ const getSnippetsAllow = function(aclKey) {
111
+ let isPublic = arguments.length > 1 && void 0 !== arguments[1] && arguments[1];
112
+ return allowAll || isPublic || (null == snippets ? void 0 : snippets.includes(aclKey));
113
+ };
114
+ const { styles } = useStyles();
115
+ const ctx = (0, __WEBPACK_EXTERNAL_MODULE_react__.useContext)(__WEBPACK_EXTERNAL_MODULE__context_mjs__.AssistantListContext);
116
+ const { components } = (0, __WEBPACK_EXTERNAL_MODULE_react__.useContext)(__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.SchemaOptionsContext);
117
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("div", {
118
+ className: styles.container,
119
+ children: Object.keys(ctx.items).sort((a, b)=>ctx.items[a].order - ctx.items[b].order).filter((key)=>getSnippetsAllow(ctx.items[key].snippet, ctx.items[key].isPublic)).map((key)=>{
120
+ const Action = (0, __WEBPACK_EXTERNAL_MODULE_lodash__.get)(components, ctx.items[key].component);
121
+ return Action ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(Action, {}, key) : null;
122
+ })
123
+ });
124
+ };
125
+ export { AssistantList, AssistantListProvider, AssistantProvider };
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  export declare const AutoScalingText: ({ children }: {
3
2
  children: any;
4
- }) => React.JSX.Element;
3
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
1
  export declare const CalculatorDisplay: ({ value, ...props }: {
3
2
  [x: string]: any;
4
3
  value: any;
5
- }) => React.JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,5 @@
1
- import React from 'react';
2
1
  export declare const CalculatorKey: ({ onPress, className, ...props }: {
3
2
  [x: string]: any;
4
3
  onPress: any;
5
4
  className: any;
6
- }) => React.JSX.Element;
5
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -7,4 +7,4 @@ export declare const CalculatorContext: React.Context<Partial<CalculatorProps>>;
7
7
  export declare const useCalculator: () => Partial<CalculatorProps>;
8
8
  export declare const CalculatorProvider: ({ children }: {
9
9
  children: any;
10
- }) => React.JSX.Element;
10
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare const AssistantListContext: import("react").Context<{
2
+ items: {};
3
+ }>;
@@ -0,0 +1,6 @@
1
+ import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
2
+ const AssistantListContext = (0, __WEBPACK_EXTERNAL_MODULE_react__.createContext)({
3
+ items: {}
4
+ });
5
+ AssistantListContext.displayName = 'AssistantListContext';
6
+ export { AssistantListContext };
@@ -1,4 +1,7 @@
1
1
  import { Plugin } from '../../application/Plugin';
2
+ export * from './context';
3
+ export * from './Assistant.provider';
2
4
  export declare class PluginAssistant extends Plugin {
3
5
  load(): Promise<void>;
6
+ afterLoad(): Promise<void>;
4
7
  }
@@ -1,12 +1,16 @@
1
1
  import * as __WEBPACK_EXTERNAL_MODULE__application_Plugin_mjs__ from "../../application/Plugin.mjs";
2
- import * as __WEBPACK_EXTERNAL_MODULE__Assistant_provider_mjs__ from "./Assistant.provider.mjs";
3
2
  import * as __WEBPACK_EXTERNAL_MODULE__calculator_CalculatorProvider_mjs__ from "./calculator/CalculatorProvider.mjs";
4
3
  import * as __WEBPACK_EXTERNAL_MODULE__search_and_jump_index_mjs__ from "./search-and-jump/index.mjs";
4
+ export * from "./context.mjs";
5
+ export * from "./Assistant.provider.mjs";
5
6
  class PluginAssistant extends __WEBPACK_EXTERNAL_MODULE__application_Plugin_mjs__.Plugin {
6
7
  async load() {
7
8
  this.app.use(__WEBPACK_EXTERNAL_MODULE__search_and_jump_index_mjs__.SearchAndJumpProvider);
8
9
  this.app.use(__WEBPACK_EXTERNAL_MODULE__calculator_CalculatorProvider_mjs__.CalculatorProvider);
9
- this.app.use(__WEBPACK_EXTERNAL_MODULE__Assistant_provider_mjs__.AssistantProvider);
10
+ this.app.use(AssistantListProvider, this.options.config);
11
+ }
12
+ async afterLoad() {
13
+ this.app.use(AssistantProvider);
10
14
  }
11
15
  }
12
16
  export { PluginAssistant };