@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.
- package/es/api-client/APIClientProvider.d.ts +2 -2
- package/es/application/AppSchemaComponentProvider.d.ts +1 -2
- package/es/application/Application.d.ts +1 -1
- package/es/application/NoticesManager.d.ts +1 -1
- package/es/application/RouterManager.d.ts +1 -1
- package/es/application/components/BlankComponent.d.ts +2 -2
- package/es/application/components/MainComponent.d.ts +1 -1
- package/es/application/components/RouterContextCleaner.d.ts +1 -1
- package/es/application/components/defaultComponents.d.ts +4 -4
- package/es/application/schema-initializer/components/SchemaInitializerActionModal.d.ts +2 -2
- package/es/application/schema-initializer/components/SchemaInitializerDivider.d.ts +1 -2
- package/es/application/schema-initializer/components/SchemaInitializerItem.d.ts +1 -1
- package/es/application/schema-initializer/components/SchemaInitializerItemGroup.d.ts +2 -2
- package/es/application/schema-initializer/components/SchemaInitializerSelect.d.ts +2 -2
- package/es/application/schema-initializer/components/SchemaInitializerSubMenu.d.ts +3 -3
- package/es/application/schema-initializer/components/SchemaInitializerSwitch.d.ts +2 -2
- package/es/application/schema-toolbar/context/index.d.ts +1 -1
- package/es/application/schema-toolbar/hooks/index.d.ts +1 -2
- package/es/async-data-provider/index.d.ts +1 -1
- package/es/block-provider/BlockProvider.d.ts +3 -3
- package/es/block-provider/FormFieldProvider.d.ts +1 -1
- package/es/block-provider/MobileProvider.d.ts +1 -1
- package/es/block-provider/PageLayout.d.ts +1 -2
- package/es/block-provider/TableFieldProvider.d.ts +1 -1
- package/es/block-provider/TableSelectorProvider.d.ts +1 -1
- package/es/block-provider/TreeBlockProvider.d.ts +1 -1
- package/es/block-provider/hooks/useFormActiveFields.d.ts +1 -1
- package/es/built-in/acl/ACLProvider.d.ts +5 -5
- package/es/built-in/acl/ACLShortcut.d.ts +1 -2
- package/es/built-in/acl/Configuration/ConfigureCenter.d.ts +2 -3
- package/es/built-in/acl/Configuration/MenuConfigure.d.ts +1 -2
- package/es/built-in/acl/Configuration/MenuItemsProvider.d.ts +1 -2
- package/es/built-in/acl/Configuration/PermisionProvider.d.ts +2 -2
- package/es/built-in/acl/Configuration/RoleConfigure.d.ts +1 -2
- package/es/built-in/acl/Configuration/RoleTable.d.ts +1 -2
- package/es/built-in/acl/Configuration/ScopeSelect.d.ts +1 -2
- package/es/built-in/admin-layout/AdminContent.d.ts +1 -2
- package/es/built-in/admin-layout/AdminLayout.d.ts +1 -2
- package/es/built-in/admin-layout/AdminProvider.d.ts +1 -2
- package/es/built-in/admin-layout/AdminTabs.d.ts +1 -2
- package/es/built-in/admin-layout/InternalAdminLayout.d.ts +1 -2
- package/es/built-in/admin-layout/MenuEditor.d.ts +1 -1
- package/es/built-in/admin-layout/components/AddNewButton.d.ts +1 -2
- package/es/built-in/admin-layout/components/WelcomeCard.d.ts +1 -2
- package/es/built-in/assistant/Assistant.provider.d.ts +6 -1
- package/es/built-in/assistant/Assistant.provider.mjs +64 -16
- package/es/built-in/assistant/calculator/AutoScalingText.d.ts +1 -2
- package/es/built-in/assistant/calculator/CalculatorDisplay.d.ts +1 -2
- package/es/built-in/assistant/calculator/CalculatorKey.d.ts +1 -2
- package/es/built-in/assistant/calculator/CalculatorProvider.d.ts +1 -1
- package/es/built-in/assistant/context.d.ts +3 -0
- package/es/built-in/assistant/context.mjs +6 -0
- package/es/built-in/assistant/index.d.ts +3 -0
- package/es/built-in/assistant/index.mjs +6 -2
- package/es/built-in/assistant/search-and-jump/index.d.ts +2 -2
- package/es/built-in/attachment-preview/previewers/file-default.d.ts +2 -3
- package/es/built-in/attachment-preview/previewers/file-pdf.d.ts +2 -3
- package/es/built-in/attachment-preview/previewers/file-sheet.d.ts +6 -7
- package/es/built-in/attachment-preview/previewers/image-jpeg.d.ts +2 -3
- package/es/built-in/attachment-preview/previewers/image-png.d.ts +2 -3
- package/es/built-in/attachment-preview/previewers/image-svg.d.ts +2 -3
- package/es/built-in/context-menu/ContextMenu.provider.d.ts +1 -2
- package/es/built-in/document-title/index.d.ts +2 -2
- package/es/built-in/dynamic-page/DynamicPage.d.ts +1 -2
- package/es/built-in/dynamic-page/index.d.ts +1 -1
- package/es/built-in/index.d.ts +1 -2
- package/es/built-in/page-style/CustomAdminHeader.d.ts +1 -2
- package/es/built-in/page-style/PageStyle.provider.d.ts +1 -1
- package/es/built-in/page-style/TabContent.d.ts +2 -3
- package/es/built-in/page-style/TabHeader.d.ts +2 -3
- package/es/built-in/page-style/useTabSettings.d.ts +2 -3
- package/es/built-in/pinned-list/PinnedPluginListProvider.d.ts +2 -2
- package/es/built-in/pm/PluginCard.d.ts +2 -2
- package/es/built-in/pm/PluginManager.d.ts +1 -2
- package/es/built-in/quick-access/CustomRequestActionSchemaInitializerItem.d.ts +1 -2
- package/es/built-in/quick-access/LinkActionSchemaInitializerItem.d.ts +1 -2
- package/es/built-in/quick-access/ModalActionSchemaInitializerItem.d.ts +1 -2
- package/es/built-in/quick-access/PopupActionSchemaInitializerItem.d.ts +1 -2
- package/es/built-in/quick-access/SchemaSettingsBlockTitleItem.d.ts +1 -2
- package/es/built-in/scroll-assistant/ScrollAssistant.provider.d.ts +1 -2
- package/es/built-in/scroll-assistant/ScrollAssistantStatus.provider.d.ts +1 -2
- package/es/built-in/setting-layout/AdminSettings.d.ts +1 -1
- package/es/built-in/setting-layout/SettingLayout.d.ts +1 -2
- package/es/built-in/setting-layout/SettingsCenterDropdown.d.ts +1 -2
- package/es/built-in/system-settings/SystemSettingsShortcut.d.ts +1 -2
- package/es/built-in/system-version/SystemVersion.provider.d.ts +1 -2
- package/es/built-in/user-settings/UserSettingsLayout.d.ts +1 -2
- package/es/collection-manager/CollectionHistoryProvider.d.ts +1 -2
- package/es/collection-manager/CollectionManagerProvider.d.ts +2 -2
- package/es/collection-manager/CollectionManagerSchemaComponentProvider.d.ts +1 -2
- package/es/collection-manager/Configuration/AddCollectionAction.d.ts +2 -3
- package/es/collection-manager/Configuration/AddFieldAction.d.ts +2 -3
- package/es/collection-manager/Configuration/AddSubFieldAction.d.ts +1 -2
- package/es/collection-manager/Configuration/DeleteCollectionAction.d.ts +2 -3
- package/es/collection-manager/Configuration/EditCollectionAction.d.ts +2 -3
- package/es/collection-manager/Configuration/EditFieldAction.d.ts +2 -3
- package/es/collection-manager/Configuration/EditSubFieldAction.d.ts +1 -2
- package/es/collection-manager/Configuration/OverridingCollectionField.d.ts +2 -3
- package/es/collection-manager/Configuration/SyncFieldsAction.d.ts +2 -3
- package/es/collection-manager/Configuration/ViewInheritedField.d.ts +2 -3
- package/es/collection-manager/Configuration/components/FieldSummary.d.ts +1 -2
- package/es/collection-manager/Configuration/components/TemplateSummary.d.ts +1 -2
- package/es/collection-manager/ResourceActionProvider.d.ts +1 -1
- package/es/collection-manager/interfaces/__tests__/json.mjs +1 -1
- package/es/collection-manager/interfaces/components/index.d.ts +6 -7
- package/es/collection-manager/interfaces/json.d.ts +1 -2
- package/es/collection-manager/templates/components/PreviewFields.d.ts +1 -1
- package/es/collection-manager/templates/components/PreviewTable.d.ts +1 -2
- package/es/collection-manager/templates/components/sql-collection/SQLInput.d.ts +1 -2
- package/es/collection-manager/templates/components/sql-collection/SQLRequestProvider.d.ts +1 -1
- package/es/collection-manager/templates/sql.d.ts +2 -2
- package/es/collection-manager/templates/view.d.ts +2 -2
- package/es/common/SelectWithTitle.d.ts +1 -2
- package/es/common/appInfo/CurrentAppInfoProvider.d.ts +1 -1
- package/es/data-source/collection/ExtendCollectionsProvider.d.ts +1 -1
- package/es/data-source/collection-field/CollectionField.d.ts +1 -1
- package/es/data-source/data-block/DataBlockProvider.d.ts +1 -1
- package/es/data-source/data-block/DataBlockRequestProvider.d.ts +1 -1
- package/es/data-source/data-block/DataBlockResourceProvider.d.ts +1 -1
- package/es/data-source/data-source/DataSourceManagerProvider.d.ts +1 -1
- package/es/data-source/data-source/DataSourceProvider.d.ts +1 -1
- package/es/filter-provider/FilterProvider.d.ts +2 -2
- package/es/flag-provider/FlagProvider.d.ts +1 -1
- package/es/hooks/useMenuItem.d.ts +1 -1
- package/es/i18n/i18n.mjs +12 -10
- package/es/icon/preloaded.d.ts +8 -9
- package/es/index.d.ts +1 -0
- package/es/index.mjs +1 -0
- package/es/modules/actions/ActionSchemaToolbar.d.ts +1 -2
- package/es/modules/actions/add-child/CreateChildInitializer.d.ts +1 -2
- package/es/modules/actions/add-new/CreateActionInitializer.d.ts +1 -2
- package/es/modules/actions/add-record/CustomizeAddRecordActionInitializer.d.ts +1 -2
- package/es/modules/actions/bulk-destroy/BulkDestroyActionInitializer.d.ts +1 -2
- package/es/modules/actions/delete/DestroyActionInitializer.d.ts +1 -2
- package/es/modules/actions/disassociate/DisassociateActionInitializer.d.ts +1 -2
- package/es/modules/actions/expand-collapse/ExpandableActionInitializer.d.ts +1 -2
- package/es/modules/actions/filter/FilterActionInitializer.d.ts +1 -2
- package/es/modules/actions/link/hooks.d.ts +3 -4
- package/es/modules/actions/refresh/RefreshActionInitializer.d.ts +1 -2
- package/es/modules/actions/save-record/SaveRecordActionInitializer.d.ts +1 -2
- package/es/modules/actions/submit/CreateSubmitActionInitializer.d.ts +1 -2
- package/es/modules/actions/submit/UpdateSubmitActionInitializer.d.ts +1 -2
- package/es/modules/actions/submit/createSubmitActionSettings.d.ts +1 -2
- package/es/modules/actions/update-record/UpdateRecordActionInitializer.d.ts +1 -2
- package/es/modules/actions/view-edit-popup/PopupActionInitializer.d.ts +1 -2
- package/es/modules/actions/view-edit-popup/UpdateActionInitializer.d.ts +1 -2
- package/es/modules/actions/view-edit-popup/ViewActionInitializer.d.ts +1 -2
- package/es/modules/blocks/BlockSchemaToolbar.d.ts +1 -2
- package/es/modules/blocks/data-blocks/details-multi/DetailsBlockInitializer.d.ts +1 -2
- package/es/modules/blocks/data-blocks/details-multi/setDataLoadingModeSettingsItem.d.ts +1 -2
- package/es/modules/blocks/data-blocks/details-single/RecordReadPrettyFormBlockInitializer.d.ts +1 -2
- package/es/modules/blocks/data-blocks/form/CreateFormBlockInitializer.d.ts +1 -2
- package/es/modules/blocks/data-blocks/form/FormBlockInitializer.d.ts +1 -2
- package/es/modules/blocks/data-blocks/form/FormItemSchemaToolbar.d.ts +1 -2
- package/es/modules/blocks/data-blocks/form/RecordFormBlockInitializer.d.ts +1 -2
- package/es/modules/blocks/data-blocks/grid-card/GridCardBlockInitializer.d.ts +1 -2
- package/es/modules/blocks/data-blocks/list/ListBlockInitializer.d.ts +1 -2
- package/es/modules/blocks/data-blocks/table/TableActionColumnInitializers.d.ts +1 -2
- package/es/modules/blocks/data-blocks/table/TableBlockInitializer.d.ts +1 -2
- package/es/modules/blocks/data-blocks/table/TableColumnSchemaToolbar.d.ts +1 -2
- package/es/modules/blocks/data-blocks/table-selector/TableSelectorInitializer.d.ts +1 -2
- package/es/modules/blocks/filter-blocks/collapse/CollapseItemSchemaToolbar.d.ts +1 -2
- package/es/modules/blocks/filter-blocks/collapse/FilterCollapseBlockInitializer.d.ts +1 -2
- package/es/modules/blocks/filter-blocks/form/FilterFormBlockInitializer.d.ts +1 -2
- package/es/modules/blocks/filter-blocks/tree/FilterTreeBlockInitializer.d.ts +1 -2
- package/es/modules/blocks/other-blocks/markdown/MarkdownBlockInitializer.d.ts +1 -2
- package/es/modules/blocks/other-blocks/markdown/MarkdownFormItemInitializer.d.ts +1 -2
- package/es/modules/fields/component/Cascader/cascaderComponentFieldSettings.d.ts +2 -3
- package/es/modules/fields/initializer/CollectionFieldInitializer.d.ts +1 -2
- package/es/modules/fields/initializer/TableCollectionFieldInitializer.d.ts +1 -2
- package/es/modules/menu/GroupItem.d.ts +1 -2
- package/es/modules/menu/LinkMenuItem.d.ts +1 -2
- package/es/modules/menu/PageMenuItem.d.ts +1 -2
- package/es/modules/variable/DeclareVariable.d.ts +1 -1
- package/es/powered-by/index.d.ts +1 -2
- package/es/record-provider/index.d.ts +3 -3
- package/es/route-switch/RouteSchemaComponent.d.ts +1 -2
- package/es/schema-component/antd/action/Action.Area.d.ts +2 -2
- package/es/schema-component/antd/action/Action.Designer.d.ts +13 -13
- package/es/schema-component/antd/action/Action.Drawer.d.ts +1 -2
- package/es/schema-component/antd/action/Action.Modal.d.ts +1 -2
- package/es/schema-component/antd/action/ActionBar.d.ts +1 -1
- package/es/schema-component/antd/action/context.d.ts +1 -1
- package/es/schema-component/antd/appends-tree-select/AppendsTreeSelectV2.d.ts +1 -2
- package/es/schema-component/antd/association-cascader/AssociationCascader.d.ts +1 -1
- package/es/schema-component/antd/association-field/FileManager.d.ts +1 -1
- package/es/schema-component/antd/association-field/Nester.d.ts +1 -2
- package/es/schema-component/antd/association-field/SubTabs/InternalCollapse.d.ts +1 -1
- package/es/schema-component/antd/association-filter/ActionBarAssociationFilterAction.d.ts +1 -2
- package/es/schema-component/antd/association-filter/AssociationFilter.BlockDesigner.d.ts +1 -2
- package/es/schema-component/antd/association-filter/AssociationFilter.Item.Designer.d.ts +1 -2
- package/es/schema-component/antd/association-filter/AssociationFilter.d.ts +2 -2
- package/es/schema-component/antd/association-filter/AssociationFilterDesignerDelete.d.ts +1 -2
- package/es/schema-component/antd/association-filter/AssociationFilterDesignerDisplayField.d.ts +1 -2
- package/es/schema-component/antd/block-item/BlockToolbar.d.ts +6 -6
- package/es/schema-component/antd/block-item/useBlockToolbar.d.ts +1 -1
- package/es/schema-component/antd/card-item/CardItem.d.ts +1 -1
- package/es/schema-component/antd/checkbox/Checkbox.d.ts +2 -2
- package/es/schema-component/antd/cron/Cron.d.ts +1 -2
- package/es/schema-component/antd/date-picker/DatePicker.d.ts +2 -2
- package/es/schema-component/antd/error-fallback/ErrorFallback.d.ts +1 -2
- package/es/schema-component/antd/expand-action/Expand.Action.Design.d.ts +1 -2
- package/es/schema-component/antd/filter/DynamicComponent.d.ts +1 -1
- package/es/schema-component/antd/filter/Filter.Action.Designer.d.ts +2 -3
- package/es/schema-component/antd/filter/SaveDefaultValue.d.ts +1 -2
- package/es/schema-component/antd/form/Form.Designer.d.ts +1 -2
- package/es/schema-component/antd/form-item/FormItem.FilterFormDesigner.d.ts +1 -2
- package/es/schema-component/antd/form-item/FormItem.d.ts +3 -4
- package/es/schema-component/antd/form-item/SchemaSettingOptions.d.ts +10 -11
- package/es/schema-component/antd/form-v2/Form.Designer.d.ts +3 -4
- package/es/schema-component/antd/form-v2/Form.FilterDesigner.d.ts +1 -2
- package/es/schema-component/antd/form-v2/Templates.d.ts +1 -2
- package/es/schema-component/antd/form-v2/Templates.mjs +0 -1
- package/es/schema-component/antd/grid-card/GridCard.Designer.d.ts +1 -2
- package/es/schema-component/antd/grid-card/GridCard.d.ts +1 -2
- package/es/schema-component/antd/icon-picker/IconFilterInput.d.ts +1 -2
- package/es/schema-component/antd/icon-picker/IconList.d.ts +1 -2
- package/es/schema-component/antd/input/ReadPretty.d.ts +5 -6
- package/es/schema-component/antd/list/List.Designer.d.ts +1 -2
- package/es/schema-component/antd/markdown/Markdown.Void.Designer.d.ts +1 -2
- package/es/schema-component/antd/menu/Menu.Designer.d.ts +1 -2
- package/es/schema-component/antd/nanoIDInput/NanoIDInput.d.ts +1 -1
- package/es/schema-component/antd/page/FixedBlock.d.ts +2 -2
- package/es/schema-component/antd/page/FixedBlockDesignerItem.d.ts +1 -2
- package/es/schema-component/antd/page/PageTabDesigner.d.ts +2 -3
- package/es/schema-component/antd/popover/Popover.d.ts +1 -2
- package/es/schema-component/antd/record-picker/InputRecordPicker.d.ts +1 -1
- package/es/schema-component/antd/scroll-area/ScrollArea.d.ts +1 -2
- package/es/schema-component/antd/select/FormulaSelect.d.ts +1 -2
- package/es/schema-component/antd/table/Table.Array.Designer.d.ts +1 -2
- package/es/schema-component/antd/table/Table.Column.Decorator.d.ts +1 -2
- package/es/schema-component/antd/table/Table.Column.Designer.d.ts +1 -2
- package/es/schema-component/antd/table/Table.Column.d.ts +1 -2
- package/es/schema-component/antd/table/Table.Designer.d.ts +1 -2
- package/es/schema-component/antd/table/Table.RowActionDesigner.d.ts +1 -2
- package/es/schema-component/antd/table/Table.Void.Designer.d.ts +1 -2
- package/es/schema-component/antd/table-v2/Table.ActionColumnDesigner.d.ts +1 -2
- package/es/schema-component/antd/table-v2/Table.Column.Decorator.d.ts +1 -2
- package/es/schema-component/antd/table-v2/Table.Column.Designer.d.ts +1 -2
- package/es/schema-component/antd/table-v2/Table.Column.d.ts +1 -2
- package/es/schema-component/antd/table-v2/Table.Designer.d.ts +1 -2
- package/es/schema-component/antd/table-v2/Table.Index.d.ts +1 -2
- package/es/schema-component/antd/table-v2/TableBlockDesigner.d.ts +2 -3
- package/es/schema-component/antd/table-v2/TableSelectorDesigner.d.ts +1 -2
- package/es/schema-component/antd/tabs/Tabs.Designer.d.ts +1 -2
- package/es/schema-component/antd/upload/ReadPretty.d.ts +1 -1
- package/es/schema-component/antd/upload/Upload.d.ts +1 -2
- package/es/schema-component/antd/variable/CodeMirror.d.ts +1 -2
- package/es/schema-component/antd/variable/Input.d.ts +1 -2
- package/es/schema-component/antd/variable/JSONInput.d.ts +1 -2
- package/es/schema-component/antd/variable/TextArea.d.ts +2 -3
- package/es/schema-component/antd/variable/Variable.d.ts +1 -1
- package/es/schema-component/common/infinite-scroll/infinite-scroll.d.ts +2 -2
- package/es/schema-component/common/sortable-item/SortableItem.d.ts +2 -2
- package/es/schema-component/core/DesignableSwitch.d.ts +1 -2
- package/es/schema-component/core/FormProvider.d.ts +1 -2
- package/es/schema-component/core/RemoteSchemaComponent.d.ts +1 -1
- package/es/schema-component/core/SchemaComponent.d.ts +1 -2
- package/es/schema-component/core/SchemaComponentOptions.d.ts +1 -1
- package/es/schema-component/core/SchemaComponentProvider.d.ts +1 -2
- package/es/schema-component/hooks/useDesignable.d.ts +2 -2
- package/es/schema-initializer/buttons/FormItemInitializers.d.ts +5 -6
- package/es/schema-initializer/buttons/TabPaneInitializers.d.ts +3 -4
- package/es/schema-initializer/components/DeletedField.d.ts +1 -2
- package/es/schema-initializer/components/assigned-field/AssignedField.d.ts +1 -2
- package/es/schema-initializer/items/ActionInitializer.d.ts +1 -2
- package/es/schema-initializer/items/BlockInitializer.d.ts +2 -3
- package/es/schema-initializer/items/CreateFilterActionInitializer.d.ts +1 -2
- package/es/schema-initializer/items/CreateResetActionInitializer.d.ts +1 -2
- package/es/schema-initializer/items/CustomFilterFormItemInitializer.d.ts +1 -1
- package/es/schema-initializer/items/CustomizeActionInitializer.d.ts +1 -2
- package/es/schema-initializer/items/DataBlockInitializer.d.ts +2 -2
- package/es/schema-initializer/items/DeleteEventActionInitializer.d.ts +1 -2
- package/es/schema-initializer/items/FilterBlockInitializer.d.ts +1 -1
- package/es/schema-initializer/items/G2PlotInitializer.d.ts +1 -2
- package/es/schema-initializer/items/InitializerWithSwitch.d.ts +1 -2
- package/es/schema-initializer/items/RecordAssociationBlockInitializer.d.ts +1 -2
- package/es/schema-initializer/items/RecordAssociationDetailsBlockInitializer.d.ts +1 -2
- package/es/schema-initializer/items/RecordAssociationFormBlockInitializer.d.ts +1 -2
- package/es/schema-initializer/items/RecordAssociationGridCardBlockInitializer.d.ts +1 -2
- package/es/schema-initializer/items/RecordAssociationListBlockInitializer.d.ts +1 -2
- package/es/schema-initializer/items/RecordReadPrettyAssociationFormBlockInitializer.d.ts +1 -2
- package/es/schema-initializer/items/SelectActionInitializer.d.ts +1 -2
- package/es/schema-initializer/items/SubmitActionInitializer.d.ts +1 -2
- package/es/schema-initializer/items/TableActionColumnInitializer.d.ts +1 -2
- package/es/schema-settings/DataTemplates/TreeLabel.d.ts +1 -2
- package/es/schema-settings/DateFormat/ExpiresRadio.d.ts +1 -1
- package/es/schema-settings/EditCustomDefaultValue.d.ts +2 -3
- package/es/schema-settings/EditFormulaTitleField.d.ts +1 -2
- package/es/schema-settings/LinkageRules/DynamicComponent.d.ts +1 -2
- package/es/schema-settings/LinkageRules/ValueDynamicComponent.d.ts +1 -2
- package/es/schema-settings/SchemaSettingCollection.d.ts +1 -2
- package/es/schema-settings/SchemaSettingComponent.d.ts +1 -2
- package/es/schema-settings/SchemaSettings.d.ts +9 -9
- package/es/schema-settings/SchemaSettings.mjs +3 -2
- package/es/schema-settings/SchemaSettingsDateFormat.d.ts +1 -2
- package/es/schema-settings/SchemaSettingsDefaultValue.d.ts +1 -2
- package/es/schema-settings/SchemaSettingsNumberFormat.d.ts +1 -2
- package/es/schema-settings/SchemaSettingsSortingRule.d.ts +1 -2
- package/es/schema-settings/VariableInput/VariableInput.d.ts +1 -1
- package/es/schema-settings/VariableInput/hooks/useBaseVariable.d.ts +1 -1
- package/es/schema-settings/hooks/useIsAllowToSetDefaultValue.d.ts +1 -1
- package/es/schema-settings/index.d.ts +1 -0
- package/es/schema-settings/index.mjs +1 -0
- package/es/schema-templates/BlockTemplate.d.ts +1 -2
- package/es/schema-templates/BlockTemplateDetails.d.ts +1 -2
- package/es/schema-templates/BlockTemplatePage.d.ts +2 -3
- package/es/schema-templates/SchemaTemplateManagerProvider.d.ts +1 -1
- package/es/schema-templates/schemas/CollectionTitle.d.ts +1 -2
- package/es/style/theme/AntdAppProvider.d.ts +1 -1
- package/es/style/theme/index.d.ts +1 -1
- package/es/user/CurrentUser.d.ts +1 -1
- package/es/user/CurrentUserProvider.d.ts +2 -2
- package/es/user/CurrentUserSettingsMenuProvider.d.ts +1 -2
- package/es/user/VerificationCode.d.ts +1 -2
- package/es/variables/VariablesProvider.d.ts +1 -1
- package/lib/built-in/assistant/Assistant.provider.js +66 -30
- package/lib/built-in/assistant/{ai-chat/index.module.js → context.js} +6 -30
- package/lib/built-in/assistant/index.js +71 -10
- package/lib/collection-manager/interfaces/__tests__/json.js +1 -1
- package/lib/i18n/i18n.js +12 -10
- package/lib/index.js +86 -71
- package/lib/schema-component/antd/form-v2/Templates.js +0 -1
- package/lib/schema-settings/SchemaSettings.js +3 -2
- package/lib/schema-settings/index.js +57 -48
- package/package.json +7 -7
- package/es/built-in/assistant/ai-chat/index.d.ts +0 -8
- package/es/built-in/assistant/ai-chat/index.mjs +0 -330
- package/es/built-in/assistant/ai-chat/index.module.mjs +0 -30
- package/es/built-in/assistant/ai-chat/index_module.css +0 -257
- package/lib/built-in/assistant/ai-chat/index.js +0 -378
- package/lib/built-in/assistant/ai-chat/index_module.css +0 -257
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
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) =>
|
|
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) =>
|
|
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(): () =>
|
|
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
|
-
}) =>
|
|
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
|
-
}) =>
|
|
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,2 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare const MainComponent: React.MemoExoticComponent<() =>
|
|
2
|
+
export declare const MainComponent: React.MemoExoticComponent<() => 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<() =>
|
|
4
|
-
AppSpin: () =>
|
|
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
|
-
}) =>
|
|
8
|
-
AppNotFound: () =>
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
AppNotFound: () => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
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: () =>
|
|
11
|
+
export declare const SchemaInitializerActionModalInternal: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
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: () =>
|
|
14
|
+
export declare const SchemaInitializerItemInternal: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
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: () =>
|
|
9
|
+
export declare const SchemaInitializerItemGroupInternal: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
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: () =>
|
|
11
|
+
export declare const SchemaInitializerSelectInternal: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
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) =>
|
|
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: () =>
|
|
17
|
+
export declare const SchemaInitializerSubMenuInternal: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
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: () =>
|
|
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) =>
|
|
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
|
-
}):
|
|
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) =>
|
|
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) =>
|
|
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
|
-
}) =>
|
|
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) =>
|
|
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) =>
|
|
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;
|
|
@@ -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) =>
|
|
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
|
-
}) =>
|
|
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) =>
|
|
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) =>
|
|
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) =>
|
|
5
|
-
export declare const ACLRolesCheckProvider: (props: any) =>
|
|
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) =>
|
|
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) =>
|
|
26
|
-
export declare const ACLMenuItemProvider: (props: any) =>
|
|
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
|
-
|
|
2
|
-
export declare const ACLPane: () => React.JSX.Element;
|
|
1
|
+
export declare const ACLPane: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
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
|
-
|
|
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) =>
|
|
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) =>
|
|
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) =>
|
|
4
|
+
export declare const PermissionProvider: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const RoleConfigure: () => React.JSX.Element;
|
|
1
|
+
export declare const RoleConfigure: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const AdminContent: () => React.JSX.Element;
|
|
1
|
+
export declare const AdminContent: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
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
|
-
|
|
2
|
-
export declare const AdminTabs: () => React.JSX.Element;
|
|
1
|
+
export declare const AdminTabs: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const InternalAdminLayout: (props: any) => React.JSX.Element;
|
|
1
|
+
export declare const InternalAdminLayout: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const AddNewButtonComponent: () => React.JSX.Element;
|
|
1
|
+
export declare const AddNewButtonComponent: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
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
|
-
}) =>
|
|
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
|
-
|
|
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
|
-
|
|
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 };
|
|
@@ -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
|
-
}) =>
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -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(
|
|
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 };
|