@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,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const BlockTemplateDetails: () => React.JSX.Element;
|
|
1
|
+
export declare const BlockTemplateDetails: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
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
|
-
}) =>
|
|
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
|
-
|
|
2
|
-
export declare const CollectionTitle: () => React.JSX.Element;
|
|
1
|
+
export declare const CollectionTitle: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -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
|
-
}) =>
|
|
25
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
26
26
|
export { default as AntdAppProvider } from './AntdAppProvider';
|
|
27
27
|
export * from './type';
|
|
28
28
|
export { defaultTheme };
|
package/es/user/CurrentUser.d.ts
CHANGED
|
@@ -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: () =>
|
|
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) =>
|
|
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
|
-
}) =>
|
|
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
|
-
}) =>
|
|
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
|
-
}):
|
|
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
|
-
}):
|
|
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
|
-
|
|
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
|
-
|
|
29
|
+
AssistantListContext: ()=>AssistantListContext
|
|
30
30
|
});
|
|
31
|
-
require("
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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
|
|
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: ()
|
|
68
|
+
PluginAssistant: function() {
|
|
69
|
+
return PluginAssistant;
|
|
70
|
+
}
|
|
30
71
|
});
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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(
|
|
38
|
-
this.app.use(
|
|
39
|
-
this.app.use(
|
|
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("
|
|
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
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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', {
|