@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,3 +1,2 @@
1
- import React from 'react';
2
1
  export declare const useBlockTemplateContext: () => any;
3
- export declare const BlockTemplate: (props: any) => React.JSX.Element;
2
+ export declare const BlockTemplate: (props: any) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export declare const BlockTemplateDetails: () => React.JSX.Element;
1
+ export declare const BlockTemplateDetails: () => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- export declare const BlockTemplatePage: () => React.JSX.Element;
3
- export declare const BlockTemplatesPane: () => React.JSX.Element;
1
+ export declare const BlockTemplatePage: () => import("react/jsx-runtime").JSX.Element;
2
+ export declare const BlockTemplatesPane: () => import("react/jsx-runtime").JSX.Element;
@@ -7,7 +7,7 @@ export declare const regenerateUid: (s: ISchema) => void;
7
7
  export declare const useSchemaTemplate: () => any;
8
8
  export declare const RemoteSchemaTemplateManagerProvider: (props: {
9
9
  children?: React.ReactNode;
10
- }) => React.JSX.Element;
10
+ }) => import("react/jsx-runtime").JSX.Element;
11
11
  export declare class RemoteSchemaTemplateManagerPlugin extends Plugin {
12
12
  load(): Promise<void>;
13
13
  addComponents(): void;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export declare const CollectionTitle: () => React.JSX.Element;
1
+ export declare const CollectionTitle: () => import("react/jsx-runtime").JSX.Element;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  declare const AntdAppProvider: {
3
3
  ({ children }: {
4
4
  children: React.ReactNode;
5
- }): React.JSX.Element;
5
+ }): import("react/jsx-runtime").JSX.Element;
6
6
  displayName: string;
7
7
  };
8
8
  export default AntdAppProvider;
@@ -22,7 +22,7 @@ export declare const useGlobalTheme: () => GlobalThemeContextProps;
22
22
  export declare const GlobalThemeProvider: ({ children, theme: themeFromProps }: {
23
23
  children: any;
24
24
  theme: any;
25
- }) => React.JSX.Element;
25
+ }) => import("react/jsx-runtime").JSX.Element;
26
26
  export { default as AntdAppProvider } from './AntdAppProvider';
27
27
  export * from './type';
28
28
  export { defaultTheme };
@@ -6,4 +6,4 @@ export declare const SettingsMenu: React.FC<{
6
6
  redirectUrl?: string;
7
7
  }>;
8
8
  export declare const DropdownVisibleContext: React.Context<any>;
9
- export declare const CurrentUser: () => React.JSX.Element;
9
+ export declare const CurrentUser: () => import("react/jsx-runtime").JSX.Element;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  export declare const CurrentUserContext: React.Context<import("..").UseRequestResult<any>>;
3
3
  export declare const useCurrentUserContext: () => import("..").UseRequestResult<any>;
4
4
  export declare const useCurrentRoles: () => any;
5
- export declare const CurrentUserProvider: (props: any) => React.JSX.Element;
5
+ export declare const CurrentUserProvider: (props: any) => import("react/jsx-runtime").JSX.Element;
6
6
  export declare const NavigateIfNotSignIn: ({ children }: {
7
7
  children: any;
8
- }) => React.JSX.Element;
8
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { ItemType } from 'antd/es/menu/interface';
3
2
  type menuItemsKey = 'version' | 'profile' | 'password' | 'role' | 'language' | 'cache' | 'reboot' | 'signout' | 'divider_1' | 'divider_2' | 'divider_3' | 'divider_4';
4
3
  interface OptionsOfAddMenuItem {
@@ -17,5 +16,5 @@ export declare const useCurrentUserSettingsMenu: () => {
17
16
  */
18
17
  export declare const CurrentUserSettingsMenuProvider: ({ children }: {
19
18
  children: any;
20
- }) => React.JSX.Element;
19
+ }) => import("react/jsx-runtime").JSX.Element;
21
20
  export {};
@@ -1,7 +1,6 @@
1
- import React from 'react';
2
1
  export default function VerificationCode({ targetFieldName, actionType, value, onChange }: {
3
2
  targetFieldName?: string;
4
3
  actionType: any;
5
4
  value: any;
6
5
  onChange: any;
7
- }): React.JSX.Element;
6
+ }): import("react/jsx-runtime").JSX.Element;
@@ -4,7 +4,7 @@ export declare const VariablesContext: React.Context<VariablesContextType>;
4
4
  declare const VariablesProvider: {
5
5
  ({ children }: {
6
6
  children: any;
7
- }): React.JSX.Element;
7
+ }): import("react/jsx-runtime").JSX.Element;
8
8
  displayName: string;
9
9
  };
10
10
  export default VariablesProvider;
@@ -1,18 +1,5 @@
1
1
  "use strict";
2
2
  var __webpack_require__ = {};
3
- (()=>{
4
- __webpack_require__.n = function(module) {
5
- var getter = module && module.__esModule ? function() {
6
- return module['default'];
7
- } : function() {
8
- return module;
9
- };
10
- __webpack_require__.d(getter, {
11
- a: getter
12
- });
13
- return getter;
14
- };
15
- })();
16
3
  (()=>{
17
4
  __webpack_require__.d = function(exports1, definition) {
18
5
  for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
@@ -39,26 +26,48 @@ var __webpack_require__ = {};
39
26
  var __webpack_exports__ = {};
40
27
  __webpack_require__.r(__webpack_exports__);
41
28
  __webpack_require__.d(__webpack_exports__, {
42
- AssistantProvider: ()=>AssistantProvider
29
+ AssistantProvider: ()=>AssistantProvider,
30
+ AssistantList: ()=>AssistantList,
31
+ AssistantListProvider: ()=>AssistantListProvider
43
32
  });
44
33
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
45
34
  const external_react_namespaceObject = require("react");
35
+ const schema_namespaceObject = require("@tachybase/schema");
46
36
  const icons_namespaceObject = require("@ant-design/icons");
47
37
  const external_antd_namespaceObject = require("antd");
38
+ const external_antd_style_namespaceObject = require("antd-style");
39
+ const external_lodash_namespaceObject = require("lodash");
48
40
  const external_react_hotkeys_hook_namespaceObject = require("react-hotkeys-hook");
49
41
  const index_js_namespaceObject = require("../../icon/index.js");
50
42
  const external_schema_component_index_js_namespaceObject = require("../../schema-component/index.js");
43
+ const external_acl_index_js_namespaceObject = require("../acl/index.js");
51
44
  const external_context_menu_index_js_namespaceObject = require("../context-menu/index.js");
52
- const external_ai_chat_index_js_namespaceObject = require("./ai-chat/index.js");
53
- var external_ai_chat_index_js_default = /*#__PURE__*/ __webpack_require__.n(external_ai_chat_index_js_namespaceObject);
54
45
  const CalculatorProvider_js_namespaceObject = require("./calculator/CalculatorProvider.js");
46
+ const external_context_js_namespaceObject = require("./context.js");
55
47
  const external_search_and_jump_index_js_namespaceObject = require("./search-and-jump/index.js");
48
+ function _tagged_template_literal(strings, raw) {
49
+ if (!raw) raw = strings.slice(0);
50
+ return Object.freeze(Object.defineProperties(strings, {
51
+ raw: {
52
+ value: Object.freeze(raw)
53
+ }
54
+ }));
55
+ }
56
+ function _templateObject() {
57
+ const data = _tagged_template_literal([
58
+ "\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 "
59
+ ]);
60
+ _templateObject = function() {
61
+ return data;
62
+ };
63
+ return data;
64
+ }
56
65
  const AssistantProvider = (param)=>{
57
66
  let { children } = param;
58
67
  const { designable, setDesignable } = (0, external_schema_component_index_js_namespaceObject.useDesignable)();
59
68
  const { visible, setVisible } = (0, CalculatorProvider_js_namespaceObject.useCalculator)();
60
69
  const { setOpen } = (0, external_search_and_jump_index_js_namespaceObject.useSearchAndJump)();
61
- const ref = (0, external_react_namespaceObject.useRef)();
70
+ (0, external_react_namespaceObject.useRef)();
62
71
  (0, external_react_hotkeys_hook_namespaceObject.useHotkeys)('Ctrl+Shift+U', ()=>setDesignable(!designable), [
63
72
  designable
64
73
  ]);
@@ -68,11 +77,6 @@ const AssistantProvider = (param)=>{
68
77
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
69
78
  children: [
70
79
  children,
71
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_ai_chat_index_js_default(), {
72
- mRef: ref,
73
- onGenerateLoad: async (msg)=>true,
74
- onReloadWrite: ()=>{}
75
- }),
76
80
  /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_antd_namespaceObject.FloatButton.Group, {
77
81
  trigger: "hover",
78
82
  type: "default",
@@ -100,24 +104,56 @@ const AssistantProvider = (param)=>{
100
104
  setVisible((visible)=>!visible);
101
105
  }
102
106
  }),
103
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_antd_namespaceObject.FloatButton, {
104
- icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(icons_namespaceObject.CommentOutlined, {}),
105
- onClick: ()=>{
106
- var _ref_current;
107
- null === (_ref_current = ref.current) || void 0 === _ref_current || _ref_current.openModal();
108
- }
109
- }),
110
107
  /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_antd_namespaceObject.FloatButton, {
111
108
  type: contextMenuEnabled ? 'primary' : 'default',
112
109
  icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(icons_namespaceObject.ToolOutlined, {
113
110
  onClick: ()=>setContextMenuEnable(!contextMenuEnabled)
114
111
  })
115
- })
112
+ }),
113
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(AssistantList, {})
116
114
  ]
117
115
  })
118
116
  ]
119
117
  });
120
118
  };
119
+ const AssistantListProvider = (props)=>{
120
+ const { children, items } = props;
121
+ const ctx = (0, external_react_namespaceObject.useContext)(external_context_js_namespaceObject.AssistantListContext);
122
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(jsx_runtime_namespaceObject.Fragment, {
123
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_context_js_namespaceObject.AssistantListContext.Provider, {
124
+ value: {
125
+ items: {
126
+ ...ctx.items,
127
+ ...items
128
+ }
129
+ },
130
+ children: children
131
+ })
132
+ });
133
+ };
134
+ const useStyles = (0, external_antd_style_namespaceObject.createStyles)((param)=>{
135
+ let { css } = param;
136
+ return {
137
+ container: css(_templateObject())
138
+ };
139
+ });
140
+ const AssistantList = ()=>{
141
+ const { allowAll, snippets } = (0, external_acl_index_js_namespaceObject.useACLRoleContext)();
142
+ const getSnippetsAllow = function(aclKey) {
143
+ let isPublic = arguments.length > 1 && void 0 !== arguments[1] && arguments[1];
144
+ return allowAll || isPublic || (null == snippets ? void 0 : snippets.includes(aclKey));
145
+ };
146
+ const { styles } = useStyles();
147
+ const ctx = (0, external_react_namespaceObject.useContext)(external_context_js_namespaceObject.AssistantListContext);
148
+ const { components } = (0, external_react_namespaceObject.useContext)(schema_namespaceObject.SchemaOptionsContext);
149
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
150
+ className: styles.container,
151
+ 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)=>{
152
+ const Action = (0, external_lodash_namespaceObject.get)(components, ctx.items[key].component);
153
+ return Action ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Action, {}, key) : null;
154
+ })
155
+ });
156
+ };
121
157
  var __webpack_export_target__ = exports;
122
158
  for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
123
159
  if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
@@ -26,37 +26,13 @@ var __webpack_require__ = {};
26
26
  var __webpack_exports__ = {};
27
27
  __webpack_require__.r(__webpack_exports__);
28
28
  __webpack_require__.d(__webpack_exports__, {
29
- default: ()=>index_module_rslib_entry_
29
+ AssistantListContext: ()=>AssistantListContext
30
30
  });
31
- require("./index_module.css");
32
- const index_module_rslib_entry_ = {
33
- AIChatModal: "AIChatModal-rzRCq4",
34
- aiChatModal: "AIChatModal-rzRCq4",
35
- showModal: "showModal-I_UWD3",
36
- hideModal: "hideModal-X40Vc3",
37
- modalContent: "modalContent-ezOZkD",
38
- modalHeader: "modalHeader-nOGcoS",
39
- closeButton: "closeButton-sQRFHO",
40
- title: "title-Y7yOZf",
41
- marsailogo: "marsailogo-uzJ6wj",
42
- modalBody: "modalBody-znsaSD",
43
- chatContent: "chatContent-pNV258",
44
- welcomeText: "welcomeText-rhomeV",
45
- chatItem: "chatItem-NWq8xW",
46
- chatInfo: "chatInfo-JXKVGs",
47
- avatar: "avatar-p1qeb8",
48
- chatName: "chatName-Snh5k_",
49
- chatText: "chatText-LyRqZ_",
50
- chatResponce: "chatResponce-HQaYAb",
51
- chatLoad: "chatLoad-GYl_Mi",
52
- load: "load-q1byGM",
53
- chatExamples: "chatExamples-lfggyG",
54
- chatExampleItem: "chatExampleItem-7D1scl",
55
- chatInput: "chatInput-OYNsM0",
56
- chatOtherInfo: "chatOtherInfo-sj2Wal",
57
- "ant-popover": "ant-popover-DNZLKL",
58
- antPopover: "ant-popover-DNZLKL"
59
- };
31
+ const external_react_namespaceObject = require("react");
32
+ const AssistantListContext = (0, external_react_namespaceObject.createContext)({
33
+ items: {}
34
+ });
35
+ AssistantListContext.displayName = 'AssistantListContext';
60
36
  var __webpack_export_target__ = exports;
61
37
  for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
62
38
  if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
@@ -1,5 +1,44 @@
1
1
  "use strict";
2
- var __webpack_require__ = {};
2
+ var __webpack_modules__ = {
3
+ "../../application/Plugin": function(module) {
4
+ module.exports = require("../../application/Plugin.js");
5
+ },
6
+ "./Assistant.provider": function(module) {
7
+ module.exports = require("./Assistant.provider.js");
8
+ },
9
+ "./calculator/CalculatorProvider": function(module) {
10
+ module.exports = require("./calculator/CalculatorProvider.js");
11
+ },
12
+ "./context?d80f": function(module) {
13
+ module.exports = require("./context.js");
14
+ },
15
+ "./search-and-jump": function(module) {
16
+ module.exports = require("./search-and-jump/index.js");
17
+ }
18
+ };
19
+ var __webpack_module_cache__ = {};
20
+ function __webpack_require__(moduleId) {
21
+ var cachedModule = __webpack_module_cache__[moduleId];
22
+ if (void 0 !== cachedModule) return cachedModule.exports;
23
+ var module = __webpack_module_cache__[moduleId] = {
24
+ exports: {}
25
+ };
26
+ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
27
+ return module.exports;
28
+ }
29
+ (()=>{
30
+ __webpack_require__.n = function(module) {
31
+ var getter = module && module.__esModule ? function() {
32
+ return module['default'];
33
+ } : function() {
34
+ return module;
35
+ };
36
+ __webpack_require__.d(getter, {
37
+ a: getter
38
+ });
39
+ return getter;
40
+ };
41
+ })();
3
42
  (()=>{
4
43
  __webpack_require__.d = function(exports1, definition) {
5
44
  for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
@@ -26,17 +65,39 @@ var __webpack_require__ = {};
26
65
  var __webpack_exports__ = {};
27
66
  __webpack_require__.r(__webpack_exports__);
28
67
  __webpack_require__.d(__webpack_exports__, {
29
- PluginAssistant: ()=>PluginAssistant
68
+ PluginAssistant: function() {
69
+ return PluginAssistant;
70
+ }
30
71
  });
31
- const Plugin_js_namespaceObject = require("../../application/Plugin.js");
32
- const external_Assistant_provider_js_namespaceObject = require("./Assistant.provider.js");
33
- const CalculatorProvider_js_namespaceObject = require("./calculator/CalculatorProvider.js");
34
- const index_js_namespaceObject = require("./search-and-jump/index.js");
35
- class PluginAssistant extends Plugin_js_namespaceObject.Plugin {
72
+ var _application_Plugin__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../application/Plugin");
73
+ var _Assistant_provider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./Assistant.provider");
74
+ var _calculator_CalculatorProvider__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./calculator/CalculatorProvider");
75
+ var _search_and_jump__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./search-and-jump");
76
+ var _context__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./context?d80f");
77
+ var __WEBPACK_REEXPORT_OBJECT__ = {};
78
+ for(var __WEBPACK_IMPORT_KEY__ in _context__WEBPACK_IMPORTED_MODULE_4__)if ([
79
+ "default",
80
+ "PluginAssistant"
81
+ ].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
82
+ return _context__WEBPACK_IMPORTED_MODULE_4__[key];
83
+ }).bind(0, __WEBPACK_IMPORT_KEY__);
84
+ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
85
+ var __WEBPACK_REEXPORT_OBJECT__ = {};
86
+ for(var __WEBPACK_IMPORT_KEY__ in _Assistant_provider__WEBPACK_IMPORTED_MODULE_1__)if ([
87
+ "PluginAssistant",
88
+ "default"
89
+ ].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
90
+ return _Assistant_provider__WEBPACK_IMPORTED_MODULE_1__[key];
91
+ }).bind(0, __WEBPACK_IMPORT_KEY__);
92
+ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
93
+ class PluginAssistant extends _application_Plugin__WEBPACK_IMPORTED_MODULE_0__.Plugin {
36
94
  async load() {
37
- this.app.use(index_js_namespaceObject.SearchAndJumpProvider);
38
- this.app.use(CalculatorProvider_js_namespaceObject.CalculatorProvider);
39
- this.app.use(external_Assistant_provider_js_namespaceObject.AssistantProvider);
95
+ this.app.use(_search_and_jump__WEBPACK_IMPORTED_MODULE_3__.SearchAndJumpProvider);
96
+ this.app.use(_calculator_CalculatorProvider__WEBPACK_IMPORTED_MODULE_2__.CalculatorProvider);
97
+ this.app.use(_Assistant_provider__WEBPACK_IMPORTED_MODULE_1__.AssistantListProvider, this.options.config);
98
+ }
99
+ async afterLoad() {
100
+ this.app.use(_Assistant_provider__WEBPACK_IMPORTED_MODULE_1__.AssistantProvider);
40
101
  }
41
102
  }
42
103
  var __webpack_export_target__ = exports;
@@ -3,7 +3,7 @@ var __webpack_exports__ = {};
3
3
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
4
4
  require("react");
5
5
  const client_namespaceObject = require("@tachybase/test/client");
6
- const external_appInfo_js_namespaceObject = require("../../../../../../../../../appInfo.js");
6
+ const external_appInfo_js_namespaceObject = require("../../../appInfo.js");
7
7
  const index_js_namespaceObject = require("../../../schema-component/antd/checkbox/index.js");
8
8
  const input_index_js_namespaceObject = require("../../../schema-component/antd/input/index.js");
9
9
  const SchemaComponent_js_namespaceObject = require("../../../schema-component/core/SchemaComponent.js");
package/lib/i18n/i18n.js CHANGED
@@ -56,16 +56,18 @@ const resources = {};
56
56
  Object.keys(index_js_default()).forEach((lang)=>{
57
57
  resources[lang] = index_js_default()[lang].resources;
58
58
  });
59
- i18n.use(external_react_i18next_namespaceObject.initReactI18next).init({
60
- lng: localStorage.getItem('TACHYBASE_LOCALE') || 'en-US',
61
- defaultNS: 'core',
62
- resources: {},
63
- keySeparator: false,
64
- nsSeparator: false
65
- });
66
- i18n.on('languageChanged', (lng)=>{
67
- localStorage.setItem('TACHYBASE_LOCALE', lng);
68
- });
59
+ if ('undefined' != typeof localStorage) {
60
+ i18n.use(external_react_i18next_namespaceObject.initReactI18next).init({
61
+ lng: localStorage.getItem('TACHYBASE_LOCALE') || 'en-US',
62
+ defaultNS: 'core',
63
+ resources: {},
64
+ keySeparator: false,
65
+ nsSeparator: false
66
+ });
67
+ i18n.on('languageChanged', (lng)=>{
68
+ localStorage.setItem('TACHYBASE_LOCALE', lng);
69
+ });
70
+ }
69
71
  var __webpack_export_target__ = exports;
70
72
  for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
71
73
  if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {