@tachybase/client 1.3.21 → 1.3.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/api-client/APIClient.d.ts +1 -1
- package/es/api-client/APIClient.mjs +1 -1
- package/es/api-client/hooks/assign.mjs +1 -1
- package/es/api-client/hooks/useResource.d.ts +1 -1
- package/es/application/Application.d.ts +1 -2
- package/es/application/Application.mjs +1 -2
- package/es/application/WebSocketClient.mjs +1 -1
- package/es/application/utils/globalDeps.d.ts +1 -1
- package/es/application/utils/globalDeps.mjs +3 -11
- package/es/application/utils/remotePlugins.d.ts +1 -1
- package/es/block-provider/FormFieldProvider.mjs +1 -1
- package/es/block-provider/hooks/index.mjs +1 -1
- package/es/block-provider/hooks/useParsedFilter.mjs +1 -1
- package/es/built-in/acl/Configuration/RolesResourcesActions.mjs +1 -1
- package/es/built-in/context-menu/ContextMenuItemsProps.mjs +1 -1
- package/es/built-in/index.mjs +1 -1
- package/es/built-in/page-style/useTabSettings.mjs +3 -3
- package/es/built-in/pm/PluginManager.mjs +1 -1
- package/es/built-in/quick-access/ModalActionSchemaInitializerItem.mjs +1 -1
- package/es/collection-manager/Configuration/AddCollectionAction.mjs +1 -1
- package/es/collection-manager/Configuration/AddFieldAction.mjs +1 -1
- package/es/collection-manager/Configuration/AddSubFieldAction.mjs +1 -1
- package/es/collection-manager/Configuration/EditCollectionAction.mjs +1 -1
- package/es/collection-manager/Configuration/EditFieldAction.mjs +1 -1
- package/es/collection-manager/Configuration/EditSubFieldAction.mjs +1 -1
- package/es/collection-manager/Configuration/ImportXlsx/xlsxImportAction.mjs +1 -1
- package/es/collection-manager/Configuration/OverridingCollectionField.mjs +1 -1
- package/es/collection-manager/Configuration/SyncFieldsAction.mjs +1 -1
- package/es/collection-manager/Configuration/SyncSQLFieldsAction.mjs +1 -1
- package/es/collection-manager/Configuration/ViewInheritedField.mjs +1 -1
- package/es/collection-manager/hooks/useCollection_deprecated.d.ts +1 -1
- package/es/collection-manager/interfaces/json.mjs +1 -1
- package/es/collection-manager/interfaces/radioGroup.d.ts +11 -11
- package/es/collection-manager/templates/expression.mjs +1 -1
- package/es/collection-manager/templates/properties/index.d.ts +1 -1
- package/es/data-source/data-block/DataBlockResourceProvider.d.ts +1 -1
- package/es/filter-provider/utils.mjs +1 -1
- package/es/modules/actions/link/customizeLinkActionSettings.mjs +1 -1
- package/es/modules/blocks/data-blocks/details-multi/detailsWithPaginationSettings.mjs +1 -1
- package/es/modules/blocks/data-blocks/form/FormBlockInitializer.d.ts +11 -11
- package/es/modules/blocks/data-blocks/form/fieldSettingsFormItem.mjs +1 -1
- package/es/modules/blocks/data-blocks/grid-card/gridCardBlockSettings.mjs +1 -1
- package/es/modules/blocks/data-blocks/list/listBlockSettings.mjs +1 -1
- package/es/modules/blocks/data-blocks/table/tableBlockSettings.mjs +1 -1
- package/es/modules/blocks/data-blocks/table-selector/tableSelectorBlockSettings.mjs +1 -1
- package/es/modules/blocks/filter-blocks/form/filterFormItemFieldSettings.mjs +1 -1
- package/es/modules/blocks/filter-blocks/tree/filterTreeItemFieldSettings.mjs +1 -1
- package/es/modules/fields/component/Cascader/cascaderComponentFieldSettings.mjs +1 -1
- package/es/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.d.ts +1 -1
- package/es/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.mjs +1 -1
- package/es/modules/menu/GroupItem.mjs +1 -1
- package/es/modules/menu/LinkMenuItem.mjs +1 -1
- package/es/modules/menu/PageMenuItem.mjs +1 -1
- package/es/modules/menu/UploadMenuItem.mjs +1 -1
- package/es/schema-component/antd/action/Action.Designer.mjs +1 -1
- package/es/schema-component/antd/action/Action.mjs +1 -1
- package/es/schema-component/antd/association-field/InternalCascadeSelect.mjs +1 -1
- package/es/schema-component/antd/association-field/InternalCascader.mjs +1 -2
- package/es/schema-component/antd/association-field/InternalNester.mjs +1 -1
- package/es/schema-component/antd/association-field/InternalSubTable.mjs +1 -1
- package/es/schema-component/antd/association-field/SubTabs/InternalCollapse.mjs +1 -1
- package/es/schema-component/antd/association-field/SubTabs/hook.mjs +1 -1
- package/es/schema-component/antd/association-field/hooks.mjs +1 -1
- package/es/schema-component/antd/association-field/util.mjs +1 -1
- package/es/schema-component/antd/association-select/AssociationSelect.mjs +2 -2
- package/es/schema-component/antd/auto-complete/AutoComplete.mjs +1 -1
- package/es/schema-component/antd/color-picker/ColorPicker.mjs +1 -1
- package/es/schema-component/antd/color-picker/util.d.ts +1 -1
- package/es/schema-component/antd/color-picker/util.mjs +1 -1
- package/es/schema-component/antd/cron/Cron.mjs +1 -1
- package/es/schema-component/antd/date-picker/ReadPretty.mjs +1 -1
- package/es/schema-component/antd/date-picker/util.d.ts +1 -1
- package/es/schema-component/antd/date-picker/util.mjs +1 -1
- package/es/schema-component/antd/filter/FilterAction.mjs +1 -1
- package/es/schema-component/antd/form/Form.mjs +1 -1
- package/es/schema-component/antd/form-item/FormItem.Settings.mjs +1 -1
- package/es/schema-component/antd/form-item/FormItem.mjs +1 -1
- package/es/schema-component/antd/form-item/SchemaSettingOptions.mjs +1 -1
- package/es/schema-component/antd/form-item/hooks/useLazyLoadDisplayAssociationFieldsOfForm.mjs +1 -1
- package/es/schema-component/antd/form-item/hooks/useParseDefaultValue.mjs +1 -1
- package/es/schema-component/antd/form-v2/Form.Settings.mjs +1 -1
- package/es/schema-component/antd/form-v2/Form.mjs +1 -2
- package/es/schema-component/antd/form-v2/Templates.mjs +1 -1
- package/es/schema-component/antd/form-v2/utils.mjs +1 -2
- package/es/schema-component/antd/grid-card/GridCard.Decorator.mjs +1 -1
- package/es/schema-component/antd/grid-card/GridCard.Designer.mjs +1 -1
- package/es/schema-component/antd/icon-picker/IconPicker.mjs +1 -1
- package/es/schema-component/antd/index.d.ts +0 -1
- package/es/schema-component/antd/index.mjs +1 -2
- package/es/schema-component/antd/input/ReadPretty.mjs +1 -1
- package/es/schema-component/antd/input-number/ReadPretty.mjs +1 -1
- package/es/schema-component/antd/list/List.Decorator.mjs +1 -1
- package/es/schema-component/antd/list/List.Designer.mjs +1 -1
- package/es/schema-component/antd/menu/Menu.Designer.mjs +1 -1
- package/es/schema-component/antd/menu/Menu.mjs +1 -1
- package/es/schema-component/antd/page/Page.mjs +1 -1
- package/es/schema-component/antd/preview/Preview.mjs +1 -1
- package/es/schema-component/antd/quick-edit/QuickEdit.mjs +1 -1
- package/es/schema-component/antd/record-picker/util.mjs +1 -1
- package/es/schema-component/antd/select/FormulaSelect.mjs +1 -1
- package/es/schema-component/antd/select/ReadPretty.mjs +2 -2
- package/es/schema-component/antd/select/Select.mjs +1 -1
- package/es/schema-component/antd/select/utils.mjs +2 -2
- package/es/schema-component/antd/space/index.mjs +1 -1
- package/es/schema-component/antd/table/Table.Void.Designer.mjs +1 -1
- package/es/schema-component/antd/table-v2/Table.mjs +1 -1
- package/es/schema-component/antd/table-v2/TableBlockDesigner.mjs +1 -1
- package/es/schema-component/antd/table-v2/TableSelectorDesigner.mjs +1 -1
- package/es/schema-component/antd/time-picker/ReadPretty.mjs +1 -1
- package/es/schema-component/antd/time-picker/TimePicker.mjs +1 -1
- package/es/schema-component/antd/tree-select/ReadPretty.mjs +1 -1
- package/es/schema-component/antd/upload/ReadPretty.mjs +1 -2
- package/es/schema-component/antd/upload/Upload.mjs +1 -1
- package/es/schema-component/antd/variable/CodeMirror.mjs +1 -1
- package/es/schema-component/antd/variable/Input.mjs +1 -1
- package/es/schema-component/antd/variable/TextArea.mjs +1 -1
- package/es/schema-component/common/infinite-scroll/infinite-scroll.mjs +1 -1
- package/es/schema-initializer/items/CustomFilterFormItemInitializer.mjs +2 -2
- package/es/schema-settings/DataTemplates/components/AsDefaultTemplate.mjs +1 -1
- package/es/schema-settings/DataTemplates/components/DataTemplateTitle.mjs +1 -1
- package/es/schema-settings/DataTemplates/components/Designer.mjs +1 -1
- package/es/schema-settings/DataTemplates/utils.mjs +1 -1
- package/es/schema-settings/LinkageRules/LinkageRuleAction.mjs +1 -1
- package/es/schema-settings/LinkageRules/components/EnableLinkage.mjs +1 -1
- package/es/schema-settings/LinkageRules/components/LinkageHeader.mjs +1 -1
- package/es/schema-settings/SchemaSettings.mjs +2 -3
- package/es/schema-settings/SchemaSettingsDefaultValue.mjs +1 -1
- package/es/schema-settings/SchemaSettingsSortingRule.mjs +1 -1
- package/es/schema-settings/VariableInput/hooks/useContextAssociationFields.mjs +1 -1
- package/es/schema-settings/filter-form/FormFilterScope.mjs +1 -1
- package/es/schema-settings/hooks/useParseDataScopeFilter.mjs +1 -1
- package/es/user/ChangePassword.mjs +2 -2
- package/es/user/CurrentUser.mjs +1 -1
- package/es/user/CurrentUserSettingsMenuProvider.mjs +1 -1
- package/es/variables/VariablesProvider.mjs +2 -2
- package/es/variables/hooks/useBuiltinVariables.mjs +1 -1
- package/lib/api-client/APIClient.js +2 -2
- package/lib/api-client/hooks/assign.js +1 -1
- package/lib/application/Application.js +6 -7
- package/lib/application/WebSocketClient.js +2 -2
- package/lib/application/utils/globalDeps.js +3 -11
- package/lib/block-provider/FormFieldProvider.js +1 -1
- package/lib/block-provider/hooks/index.js +13 -13
- package/lib/block-provider/hooks/useParsedFilter.js +1 -1
- package/lib/built-in/acl/Configuration/RolesResourcesActions.js +4 -4
- package/lib/built-in/context-menu/ContextMenuItemsProps.js +1 -1
- package/lib/built-in/index.js +12 -12
- package/lib/built-in/page-style/useTabSettings.js +3 -3
- package/lib/built-in/pm/PluginManager.js +1 -1
- package/lib/built-in/quick-access/ModalActionSchemaInitializerItem.js +1 -1
- package/lib/collection-manager/Configuration/AddCollectionAction.js +2 -2
- package/lib/collection-manager/Configuration/AddFieldAction.js +2 -2
- package/lib/collection-manager/Configuration/AddSubFieldAction.js +2 -2
- package/lib/collection-manager/Configuration/EditCollectionAction.js +2 -2
- package/lib/collection-manager/Configuration/EditFieldAction.js +2 -2
- package/lib/collection-manager/Configuration/EditSubFieldAction.js +2 -2
- package/lib/collection-manager/Configuration/ImportXlsx/xlsxImportAction.js +2 -2
- package/lib/collection-manager/Configuration/OverridingCollectionField.js +2 -2
- package/lib/collection-manager/Configuration/SyncFieldsAction.js +2 -2
- package/lib/collection-manager/Configuration/SyncSQLFieldsAction.js +2 -2
- package/lib/collection-manager/Configuration/ViewInheritedField.js +2 -2
- package/lib/collection-manager/interfaces/json.js +3 -3
- package/lib/collection-manager/templates/expression.js +1 -1
- package/lib/filter-provider/utils.js +1 -1
- package/lib/modules/actions/link/customizeLinkActionSettings.js +2 -2
- package/lib/modules/blocks/data-blocks/details-multi/detailsWithPaginationSettings.js +2 -2
- package/lib/modules/blocks/data-blocks/form/fieldSettingsFormItem.js +3 -3
- package/lib/modules/blocks/data-blocks/grid-card/gridCardBlockSettings.js +2 -2
- package/lib/modules/blocks/data-blocks/list/listBlockSettings.js +2 -2
- package/lib/modules/blocks/data-blocks/table/tableBlockSettings.js +2 -2
- package/lib/modules/blocks/data-blocks/table-selector/tableSelectorBlockSettings.js +2 -2
- package/lib/modules/blocks/filter-blocks/form/filterFormItemFieldSettings.js +3 -3
- package/lib/modules/blocks/filter-blocks/tree/filterTreeItemFieldSettings.js +3 -3
- package/lib/modules/fields/component/Cascader/cascaderComponentFieldSettings.js +2 -2
- package/lib/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.js +3 -3
- package/lib/modules/menu/GroupItem.js +2 -2
- package/lib/modules/menu/LinkMenuItem.js +2 -2
- package/lib/modules/menu/PageMenuItem.js +2 -2
- package/lib/modules/menu/UploadMenuItem.js +2 -2
- package/lib/schema-component/antd/action/Action.Designer.js +3 -3
- package/lib/schema-component/antd/action/Action.js +1 -1
- package/lib/schema-component/antd/association-field/InternalCascadeSelect.js +4 -4
- package/lib/schema-component/antd/association-field/InternalCascader.js +4 -5
- package/lib/schema-component/antd/association-field/InternalNester.js +2 -2
- package/lib/schema-component/antd/association-field/InternalSubTable.js +2 -2
- package/lib/schema-component/antd/association-field/SubTabs/InternalCollapse.js +1 -1
- package/lib/schema-component/antd/association-field/SubTabs/hook.js +1 -1
- package/lib/schema-component/antd/association-field/hooks.js +1 -1
- package/lib/schema-component/antd/association-field/util.js +1 -1
- package/lib/schema-component/antd/association-select/AssociationSelect.js +12 -12
- package/lib/schema-component/antd/auto-complete/AutoComplete.js +1 -1
- package/lib/schema-component/antd/color-picker/ColorPicker.js +2 -2
- package/lib/schema-component/antd/color-picker/util.js +1 -1
- package/lib/schema-component/antd/cron/Cron.js +1 -1
- package/lib/schema-component/antd/date-picker/ReadPretty.js +1 -1
- package/lib/schema-component/antd/date-picker/util.js +1 -1
- package/lib/schema-component/antd/filter/FilterAction.js +1 -1
- package/lib/schema-component/antd/form/Form.js +3 -3
- package/lib/schema-component/antd/form-item/FormItem.Settings.js +3 -3
- package/lib/schema-component/antd/form-item/FormItem.js +2 -2
- package/lib/schema-component/antd/form-item/SchemaSettingOptions.js +5 -5
- package/lib/schema-component/antd/form-item/hooks/useLazyLoadDisplayAssociationFieldsOfForm.js +1 -1
- package/lib/schema-component/antd/form-item/hooks/useParseDefaultValue.js +1 -1
- package/lib/schema-component/antd/form-v2/Form.Settings.js +2 -2
- package/lib/schema-component/antd/form-v2/Form.js +3 -4
- package/lib/schema-component/antd/form-v2/Templates.js +1 -1
- package/lib/schema-component/antd/form-v2/utils.js +2 -3
- package/lib/schema-component/antd/grid-card/GridCard.Decorator.js +2 -2
- package/lib/schema-component/antd/grid-card/GridCard.Designer.js +2 -2
- package/lib/schema-component/antd/icon-picker/IconPicker.js +2 -2
- package/lib/schema-component/antd/index.js +120 -187
- package/lib/schema-component/antd/input/ReadPretty.js +6 -6
- package/lib/schema-component/antd/input-number/ReadPretty.js +1 -1
- package/lib/schema-component/antd/list/List.Decorator.js +2 -2
- package/lib/schema-component/antd/list/List.Designer.js +2 -2
- package/lib/schema-component/antd/menu/Menu.Designer.js +2 -2
- package/lib/schema-component/antd/menu/Menu.js +1 -1
- package/lib/schema-component/antd/page/Page.js +2 -2
- package/lib/schema-component/antd/preview/Preview.js +2 -2
- package/lib/schema-component/antd/quick-edit/QuickEdit.js +3 -3
- package/lib/schema-component/antd/record-picker/util.js +1 -1
- package/lib/schema-component/antd/select/FormulaSelect.js +1 -1
- package/lib/schema-component/antd/select/ReadPretty.js +2 -2
- package/lib/schema-component/antd/select/Select.js +1 -1
- package/lib/schema-component/antd/select/utils.js +2 -2
- package/lib/schema-component/antd/space/index.js +2 -2
- package/lib/schema-component/antd/table/Table.Void.Designer.js +2 -2
- package/lib/schema-component/antd/table-v2/Table.js +1 -1
- package/lib/schema-component/antd/table-v2/TableBlockDesigner.js +2 -2
- package/lib/schema-component/antd/table-v2/TableSelectorDesigner.js +2 -2
- package/lib/schema-component/antd/time-picker/ReadPretty.js +2 -2
- package/lib/schema-component/antd/time-picker/TimePicker.js +3 -3
- package/lib/schema-component/antd/tree-select/ReadPretty.js +2 -2
- package/lib/schema-component/antd/upload/ReadPretty.js +2 -3
- package/lib/schema-component/antd/upload/Upload.js +2 -2
- package/lib/schema-component/antd/variable/CodeMirror.js +2 -2
- package/lib/schema-component/antd/variable/Input.js +1 -1
- package/lib/schema-component/antd/variable/TextArea.js +1 -1
- package/lib/schema-component/common/infinite-scroll/infinite-scroll.js +1 -1
- package/lib/schema-initializer/items/CustomFilterFormItemInitializer.js +4 -4
- package/lib/schema-settings/DataTemplates/components/AsDefaultTemplate.js +3 -3
- package/lib/schema-settings/DataTemplates/components/DataTemplateTitle.js +10 -10
- package/lib/schema-settings/DataTemplates/components/Designer.js +1 -1
- package/lib/schema-settings/DataTemplates/utils.js +4 -4
- package/lib/schema-settings/LinkageRules/LinkageRuleAction.js +2 -2
- package/lib/schema-settings/LinkageRules/components/EnableLinkage.js +3 -3
- package/lib/schema-settings/LinkageRules/components/LinkageHeader.js +10 -10
- package/lib/schema-settings/SchemaSettings.js +17 -18
- package/lib/schema-settings/SchemaSettingsDefaultValue.js +3 -3
- package/lib/schema-settings/SchemaSettingsSortingRule.js +2 -2
- package/lib/schema-settings/VariableInput/hooks/useContextAssociationFields.js +1 -1
- package/lib/schema-settings/filter-form/FormFilterScope.js +2 -2
- package/lib/schema-settings/hooks/useParseDataScopeFilter.js +1 -1
- package/lib/user/ChangePassword.js +2 -2
- package/lib/user/CurrentUser.js +1 -1
- package/lib/user/CurrentUserSettingsMenuProvider.js +1 -1
- package/lib/variables/VariablesProvider.js +2 -2
- package/lib/variables/hooks/useBuiltinVariables.js +1 -1
- package/package.json +9 -23
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback, useContext } from "react";
|
|
3
|
-
import { FormLayout } from "@tachybase/components";
|
|
4
3
|
import { SchemaOptionsContext } from "@tachybase/schema";
|
|
4
|
+
import { FormLayout } from "@tego/client";
|
|
5
5
|
import { useTranslation } from "react-i18next";
|
|
6
6
|
import { SchemaInitializerItem, useSchemaInitializer } from "../../application/index.mjs";
|
|
7
7
|
import { Icon } from "../../icon/index.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback, useContext } from "react";
|
|
3
|
-
import { FormLayout } from "@tachybase/components";
|
|
4
3
|
import { SchemaOptionsContext } from "@tachybase/schema";
|
|
4
|
+
import { FormLayout } from "@tego/client";
|
|
5
5
|
import { useTranslation } from "react-i18next";
|
|
6
6
|
import { SchemaInitializerItem, useSchemaInitializer } from "../../application/index.mjs";
|
|
7
7
|
import { Icon } from "../../icon/index.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback, useContext } from "react";
|
|
3
|
-
import { FormLayout } from "@tachybase/components";
|
|
4
3
|
import { SchemaOptionsContext, uid } from "@tachybase/schema";
|
|
4
|
+
import { FormLayout } from "@tego/client";
|
|
5
5
|
import { useTranslation } from "react-i18next";
|
|
6
6
|
import { SchemaInitializerItem, useSchemaInitializer } from "../../application/index.mjs";
|
|
7
7
|
import { Icon } from "../../icon/index.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback, useContext } from "react";
|
|
3
|
-
import { FormLayout } from "@tachybase/components";
|
|
4
3
|
import { SchemaOptionsContext } from "@tachybase/schema";
|
|
4
|
+
import { FormLayout } from "@tego/client";
|
|
5
5
|
import { useTranslation } from "react-i18next";
|
|
6
6
|
import { useAPIClient } from "../../api-client/hooks/useAPIClient.mjs";
|
|
7
7
|
import { SchemaInitializerItem, useSchemaInitializer } from "../../application/index.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback, useMemo, useState } from "react";
|
|
3
|
-
import { ArrayTable } from "@tachybase/components";
|
|
4
3
|
import { isValid, onFieldValueChange, uid as schema_uid, useField, useFieldSchema, useForm, useFormEffects } from "@tachybase/schema";
|
|
4
|
+
import { ArrayTable } from "@tego/client";
|
|
5
5
|
import { Alert, Flex, Tag } from "antd";
|
|
6
6
|
import { useTranslation } from "react-i18next";
|
|
7
7
|
import { RemoteSelect, useCompile, useDesignable } from "../../index.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
3
3
|
import { RecursionField, observer, useField, useFieldSchema, useForm } from "@tachybase/schema";
|
|
4
|
-
import { isPortalInBody } from "@
|
|
4
|
+
import { isPortalInBody } from "@tego/client";
|
|
5
5
|
import { App, Button } from "antd";
|
|
6
6
|
import classnames from "classnames";
|
|
7
7
|
import lodash from "lodash";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
3
|
-
import { ArrayItems, FormItem } from "@tachybase/components";
|
|
4
3
|
import { FormProvider, connect, createForm, createSchemaField, observer, onFormValuesChange, uid, useField, useFieldSchema } from "@tachybase/schema";
|
|
4
|
+
import { ArrayItems, FormItem } from "@tego/client";
|
|
5
5
|
import { Input, Select, Space, Spin, Tag } from "antd";
|
|
6
6
|
import dayjs from "dayjs";
|
|
7
7
|
import { useTranslation } from "react-i18next";
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useMemo, useState } from "react";
|
|
3
|
-
import { ArrayItems, FormItem } from "@tachybase/components";
|
|
4
3
|
import { FormProvider, connect, createForm, createSchemaField, observer, onFormValuesChange, uid, useField, useFieldSchema } from "@tachybase/schema";
|
|
5
|
-
import { fuzzysearch } from "@
|
|
4
|
+
import { ArrayItems, FormItem, fuzzysearch } from "@tego/client";
|
|
6
5
|
import { Input, Space } from "antd";
|
|
7
6
|
import { createStyles } from "antd-style";
|
|
8
7
|
import { useTranslation } from "react-i18next";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect } from "react";
|
|
3
|
-
import { FormLayout } from "@tachybase/components";
|
|
4
3
|
import { RecursionField, observer, useField, useFieldSchema } from "@tachybase/schema";
|
|
4
|
+
import { FormLayout } from "@tego/client";
|
|
5
5
|
import { createStyles } from "antd-style";
|
|
6
6
|
import classnames from "classnames";
|
|
7
7
|
import { ACLCollectionProvider, useACLActionParamsContext } from "../../../built-in/acl/index.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect } from "react";
|
|
3
|
-
import { FormLayout } from "@tachybase/components";
|
|
4
3
|
import { RecursionField, SchemaOptionsContext, observer, useField, useFieldSchema } from "@tachybase/schema";
|
|
4
|
+
import { FormLayout } from "@tego/client";
|
|
5
5
|
import { createStyles } from "antd-style";
|
|
6
6
|
import { ACLCollectionProvider, useACLActionParamsContext } from "../../../built-in/acl/index.mjs";
|
|
7
7
|
import { CollectionProvider_deprecated } from "../../../collection-manager/index.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useRef, useState } from "react";
|
|
3
3
|
import { Schema, observer, onFieldChange, useFieldSchema, useFormEffects } from "@tachybase/schema";
|
|
4
|
-
import { fuzzysearch } from "@tachybase/utils/client";
|
|
5
4
|
import { CheckOutlined, SearchOutlined } from "@ant-design/icons";
|
|
5
|
+
import { fuzzysearch } from "@tego/client";
|
|
6
6
|
import { useAsyncEffect, useDeepCompareEffect } from "ahooks";
|
|
7
7
|
import { Button, Collapse, Input, Space } from "antd";
|
|
8
8
|
import flat from "flat";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffect, useState } from "react";
|
|
2
2
|
import { reaction } from "@tachybase/schema";
|
|
3
|
-
import { flatten, getValuesByPath } from "@
|
|
3
|
+
import { flatten, getValuesByPath } from "@tego/client";
|
|
4
4
|
import lodash from "lodash";
|
|
5
5
|
import { mergeFilter } from "../../../../filter-provider/index.mjs";
|
|
6
6
|
import { useParseDataScopeFilter } from "../../../../schema-settings/index.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createContext, useCallback, useContext, useEffect, useMemo, useState } from "react";
|
|
2
2
|
import { reaction, useField, useFieldSchema } from "@tachybase/schema";
|
|
3
|
-
import { flatten, getValuesByPath } from "@
|
|
3
|
+
import { flatten, getValuesByPath } from "@tego/client";
|
|
4
4
|
import lodash, { isString } from "lodash";
|
|
5
5
|
import cloneDeep from "lodash/cloneDeep";
|
|
6
6
|
import { useCollectionManager_deprecated, useCollection_deprecated } from "../../../collection-manager/index.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import react from "react";
|
|
2
2
|
import { isArr } from "@tachybase/schema";
|
|
3
|
-
import { getDefaultFormat, str2moment } from "@
|
|
3
|
+
import { getDefaultFormat, str2moment } from "@tego/client";
|
|
4
4
|
import { Tag } from "antd";
|
|
5
5
|
import { useCollectionManager_deprecated } from "../../../collection-manager/index.mjs";
|
|
6
6
|
const useLabelUiSchemaV2 = ()=>{
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback, useEffect, useMemo } from "react";
|
|
3
|
-
import { ArrayCollapse, ArrayItems, FormLayout } from "@tachybase/components";
|
|
4
3
|
import { connect, mapProps, mapReadPretty, uid, useField, useFieldSchema } from "@tachybase/schema";
|
|
5
4
|
import { LoadingOutlined } from "@ant-design/icons";
|
|
5
|
+
import { ArrayCollapse, ArrayItems, FormLayout } from "@tego/client";
|
|
6
6
|
import lodash from "lodash";
|
|
7
7
|
import { useTranslation } from "react-i18next";
|
|
8
8
|
import { useFilterByTk, useFormBlockContext } from "../../../block-provider/index.mjs";
|
|
@@ -242,7 +242,7 @@ AssociationSelect.Designer = function() {
|
|
|
242
242
|
title: t('Set default value'),
|
|
243
243
|
properties: {
|
|
244
244
|
default: {
|
|
245
|
-
...fieldSchemaWithoutRequired
|
|
245
|
+
...fieldSchemaWithoutRequired,
|
|
246
246
|
'x-decorator': 'FormItem',
|
|
247
247
|
'x-component-props': {
|
|
248
248
|
...fieldSchemaWithoutRequired['x-component-props'],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from "react";
|
|
3
3
|
import { connect, mapProps, mapReadPretty, useFieldSchema } from "@tachybase/schema";
|
|
4
|
-
import { fuzzysearch } from "@
|
|
4
|
+
import { fuzzysearch } from "@tego/client";
|
|
5
5
|
import { useAsyncEffect } from "ahooks";
|
|
6
6
|
import { AutoComplete } from "antd";
|
|
7
7
|
import { useAPIClient } from "../../../api-client/index.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { usePrefixCls } from "@tachybase/components";
|
|
4
3
|
import { connect, mapProps, mapReadPretty } from "@tachybase/schema";
|
|
4
|
+
import { usePrefixCls } from "@tego/client";
|
|
5
5
|
import { ColorPicker } from "antd";
|
|
6
6
|
import { createStyles } from "antd-style";
|
|
7
7
|
import classnames from "classnames";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { dayjs, getDefaultFormat, str2moment, toGmt, toLocal } from "@
|
|
1
|
+
import { dayjs, getDefaultFormat, str2moment, toGmt, toLocal } from "@tego/client";
|
|
2
2
|
const toStringByPicker = (value, picker, timezone)=>{
|
|
3
3
|
if (!dayjs.isDayjs(value)) return value;
|
|
4
4
|
if ('local' === timezone) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
import { connect, mapReadPretty } from "@tachybase/schema";
|
|
4
|
-
import { error } from "@
|
|
4
|
+
import { error } from "@tego/client";
|
|
5
5
|
import { createStyles } from "antd-style";
|
|
6
6
|
import cronstrue from "cronstrue";
|
|
7
7
|
import { Cron } from "react-js-cron";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import { isArr } from "@tachybase/schema";
|
|
4
|
-
import { getDefaultFormat, str2moment } from "@
|
|
4
|
+
import { getDefaultFormat, str2moment } from "@tego/client";
|
|
5
5
|
import classnames from "classnames";
|
|
6
6
|
import dayjs from "dayjs";
|
|
7
7
|
import { usePrefixCls } from "../__builtins__/index.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { dayjs, getDefaultFormat, str2moment, toGmt, toLocal } from "@
|
|
1
|
+
import { dayjs, getDefaultFormat, str2moment, toGmt, toLocal } from "@tego/client";
|
|
2
2
|
const toStringByPicker = (value, picker, timezone)=>{
|
|
3
3
|
if (!dayjs.isDayjs(value)) return value;
|
|
4
4
|
if ('local' === timezone) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { createContext, useCallback, useContext, useMemo, useState } from "react";
|
|
3
3
|
import { createForm, observer, useField, useFieldSchema, useForm } from "@tachybase/schema";
|
|
4
|
-
import { flatten, unflatten } from "@
|
|
4
|
+
import { flatten, unflatten } from "@tego/client";
|
|
5
5
|
import { Button, Space } from "antd";
|
|
6
6
|
import { createStyles } from "antd-style";
|
|
7
7
|
import { useTranslation } from "react-i18next";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { createContext, useContext, useEffect, useMemo } from "react";
|
|
3
|
-
import { FormLayout } from "@tachybase/components";
|
|
4
3
|
import { FieldContext, FormContext, RecursionField, createForm, observer, useField, useFieldSchema } from "@tachybase/schema";
|
|
4
|
+
import { FormLayout } from "@tego/client";
|
|
5
5
|
import { ConfigProvider, Spin } from "antd";
|
|
6
6
|
import { useAttach, useComponent } from "../../index.mjs";
|
|
7
7
|
import { useRequest } from "../../../api-client/index.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { ArrayCollapse, FormLayout } from "@tachybase/components";
|
|
4
3
|
import { useField, useFieldSchema } from "@tachybase/schema";
|
|
4
|
+
import { ArrayCollapse, FormLayout } from "@tego/client";
|
|
5
5
|
import lodash from "lodash";
|
|
6
6
|
import { useTranslation } from "react-i18next";
|
|
7
7
|
import { SchemaSettings } from "../../../application/schema-settings/index.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useMemo } from "react";
|
|
3
|
-
import { FormItem } from "@tachybase/components";
|
|
4
3
|
import { useField, useFieldSchema } from "@tachybase/schema";
|
|
4
|
+
import { FormItem } from "@tego/client";
|
|
5
5
|
import { createStyles } from "antd-style";
|
|
6
6
|
import classnames from "classnames";
|
|
7
7
|
import { useApp } from "../../../application/index.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { ArrayCollapse, FormLayout } from "@tachybase/components";
|
|
4
3
|
import { useField, useFieldSchema } from "@tachybase/schema";
|
|
4
|
+
import { ArrayCollapse, FormLayout } from "@tego/client";
|
|
5
5
|
import lodash from "lodash";
|
|
6
6
|
import { useTranslation } from "react-i18next";
|
|
7
7
|
import { useFormBlockContext } from "../../../block-provider/index.mjs";
|
package/es/schema-component/antd/form-item/hooks/useLazyLoadDisplayAssociationFieldsOfForm.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffect, useMemo, useRef } from "react";
|
|
2
2
|
import { useField, useFieldSchema, useForm } from "@tachybase/schema";
|
|
3
|
-
import { nextTick } from "@
|
|
3
|
+
import { nextTick } from "@tego/client";
|
|
4
4
|
import lodash from "lodash";
|
|
5
5
|
import { useAssociationNames } from "../../../../block-provider/hooks/index.mjs";
|
|
6
6
|
import { useCollectionManager_deprecated, useCollection_deprecated } from "../../../../collection-manager/index.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback, useEffect } from "react";
|
|
2
2
|
import { reaction, useField, useFieldSchema } from "@tachybase/schema";
|
|
3
|
-
import { getValuesByPath } from "@
|
|
3
|
+
import { getValuesByPath } from "@tego/client";
|
|
4
4
|
import lodash from "lodash";
|
|
5
5
|
import { useRecordIndex } from "../../../../record-provider/index.mjs";
|
|
6
6
|
import { useCollection_deprecated } from "../../../../collection-manager/index.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ArrayItems } from "@tachybase/components";
|
|
2
1
|
import { useField, useFieldSchema } from "@tachybase/schema";
|
|
2
|
+
import { ArrayItems } from "@tego/client";
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
4
|
import { SchemaSettings } from "../../../application/schema-settings/index.mjs";
|
|
5
5
|
import { useFormBlockContext } from "../../../block-provider/index.mjs";
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useMemo } from "react";
|
|
3
|
-
import { FormLayout } from "@tachybase/components";
|
|
4
3
|
import { FieldContext, FormContext, RecursionField, createForm, observer, onFieldInit, onFormInputChange, reaction, uid, useField, useFieldSchema } from "@tachybase/schema";
|
|
5
|
-
import { getValuesByPath } from "@
|
|
4
|
+
import { FormLayout, getValuesByPath } from "@tego/client";
|
|
6
5
|
import { ConfigProvider, Spin } from "antd";
|
|
7
6
|
import { createStyles } from "antd-style";
|
|
8
7
|
import { useActionContext } from "../index.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
3
3
|
import { useFieldSchema } from "@tachybase/schema";
|
|
4
|
-
import { error, forEach } from "@
|
|
4
|
+
import { error, forEach } from "@tego/client";
|
|
5
5
|
import { Select, Space } from "antd";
|
|
6
6
|
import lodash from "lodash";
|
|
7
7
|
import { useTranslation } from "react-i18next";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { evaluators } from "@
|
|
2
|
-
import { uid } from "@tachybase/utils/client";
|
|
1
|
+
import { evaluators, uid } from "@tego/client";
|
|
3
2
|
import lodash from "lodash";
|
|
4
3
|
import { ActionType } from "../../../schema-settings/LinkageRules/type.mjs";
|
|
5
4
|
import { REGEX_OF_VARIABLE } from "../../../variables/utils/isVariable.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { createContext, useContext, useEffect, useMemo } from "react";
|
|
3
|
-
import { FormLayout } from "@tachybase/components";
|
|
4
3
|
import { FormContext, createForm, useField, useFieldSchema } from "@tachybase/schema";
|
|
4
|
+
import { FormLayout } from "@tego/client";
|
|
5
5
|
import { withDynamicSchemaProps } from "../../../application/hoc/withDynamicSchemaProps.mjs";
|
|
6
6
|
import { BlockProvider, useBlockRequestContext } from "../../../block-provider/index.mjs";
|
|
7
7
|
import { useGridCardBlockParams } from "../../../modules/blocks/data-blocks/grid-card/hooks/useGridCardBlockParams.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
|
-
import { ArrayItems } from "@tachybase/components";
|
|
4
3
|
import { useField, useFieldSchema } from "@tachybase/schema";
|
|
4
|
+
import { ArrayItems } from "@tego/client";
|
|
5
5
|
import { Slider } from "antd";
|
|
6
6
|
import lodash from "lodash";
|
|
7
7
|
import { useTranslation } from "react-i18next";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from "react";
|
|
3
|
-
import { useFormLayout } from "@tachybase/components";
|
|
4
3
|
import { connect, isValid, mapProps, mapReadPretty } from "@tachybase/schema";
|
|
5
4
|
import { CloseOutlined, LoadingOutlined } from "@ant-design/icons";
|
|
5
|
+
import { useFormLayout } from "@tego/client";
|
|
6
6
|
import { Button, Space } from "antd";
|
|
7
7
|
import { useTranslation } from "react-i18next";
|
|
8
8
|
import { Icon, hasIcon } from "../../../icon/index.mjs";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import "./index.css";
|
|
2
2
|
import { genStyleHook } from "./__builtins__/index.mjs";
|
|
3
3
|
import { PageHeader } from "@ant-design/pro-layout";
|
|
4
|
-
import { CodeMirror } from "@tachybase/components";
|
|
5
4
|
export * from "./AntdSchemaComponentProvider.mjs";
|
|
6
5
|
export * from "./action/index.mjs";
|
|
7
6
|
export * from "./appends-tree-select/index.mjs";
|
|
@@ -62,4 +61,4 @@ export * from "./upload/index.mjs";
|
|
|
62
61
|
export * from "./variable/index.mjs";
|
|
63
62
|
export * from "./media-card/index.mjs";
|
|
64
63
|
export * from "./tracking-link/index.mjs";
|
|
65
|
-
export {
|
|
64
|
+
export { PageHeader, genStyleHook };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { usePrefixCls } from "@tachybase/components";
|
|
4
3
|
import { useFieldSchema } from "@tachybase/schema";
|
|
5
4
|
import { css } from "@emotion/css";
|
|
5
|
+
import { usePrefixCls } from "@tego/client";
|
|
6
6
|
import { Image, Typography } from "antd";
|
|
7
7
|
import classnames from "classnames";
|
|
8
8
|
import { useCompile } from "../../index.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
import { isValid } from "@tachybase/schema";
|
|
4
|
-
import { toFixedByStep } from "@
|
|
4
|
+
import { toFixedByStep } from "@tego/client";
|
|
5
5
|
import { format as external_d3_format_format } from "d3-format";
|
|
6
6
|
import { round } from "mathjs";
|
|
7
7
|
function countDecimalPlaces(value) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { createContext, useContext, useEffect, useMemo } from "react";
|
|
3
|
-
import { FormLayout } from "@tachybase/components";
|
|
4
3
|
import { FormContext, createForm, useField } from "@tachybase/schema";
|
|
4
|
+
import { FormLayout } from "@tego/client";
|
|
5
5
|
import { createStyles } from "antd-style";
|
|
6
6
|
import lodash from "lodash";
|
|
7
7
|
import { withDynamicSchemaProps } from "../../../application/hoc/withDynamicSchemaProps.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { ArrayItems } from "@tachybase/components";
|
|
4
3
|
import { useField, useFieldSchema } from "@tachybase/schema";
|
|
4
|
+
import { ArrayItems } from "@tego/client";
|
|
5
5
|
import lodash from "lodash";
|
|
6
6
|
import { useTranslation } from "react-i18next";
|
|
7
7
|
import { useFormBlockContext } from "../../../block-provider/index.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { TreeSelect } from "@tachybase/components";
|
|
3
2
|
import { onFieldChange, useField, useFieldSchema } from "@tachybase/schema";
|
|
3
|
+
import { TreeSelect } from "@tego/client";
|
|
4
4
|
import { App } from "antd";
|
|
5
5
|
import { saveAs } from "file-saver";
|
|
6
6
|
import { useTranslation } from "react-i18next";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { createContext, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
3
3
|
import { FieldContext, RecursionField, SchemaContext, SchemaExpressionScopeContext, observer, uid, useField, useFieldSchema } from "@tachybase/schema";
|
|
4
|
-
import { error } from "@tachybase/utils/client";
|
|
5
4
|
import { PointerSensor, useSensor, useSensors } from "@dnd-kit/core";
|
|
5
|
+
import { error } from "@tego/client";
|
|
6
6
|
import { Button, Menu, Popover } from "antd";
|
|
7
7
|
import { createPortal } from "react-dom";
|
|
8
8
|
import { DndContext, SortableItem, createDesignable, useDesignable, useDesigner } from "../../index.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useContext, useEffect, useMemo, useState } from "react";
|
|
3
|
-
import { FormLayout } from "@tachybase/components";
|
|
4
3
|
import { Schema, SchemaOptionsContext, useFieldSchema } from "@tachybase/schema";
|
|
5
4
|
import { PlusOutlined } from "@ant-design/icons";
|
|
6
5
|
import { PageHeader } from "@ant-design/pro-layout";
|
|
7
6
|
import { PointerSensor, useSensor, useSensors } from "@dnd-kit/core";
|
|
7
|
+
import { FormLayout } from "@tego/client";
|
|
8
8
|
import { Button, Tabs } from "antd";
|
|
9
9
|
import { cx } from "antd-style";
|
|
10
10
|
import classnames from "classnames";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useRef, useState } from "react";
|
|
3
|
-
import { Lightbox } from "@tachybase/components";
|
|
4
3
|
import { connect, mapReadPretty } from "@tachybase/schema";
|
|
5
4
|
import { DeleteOutlined, DownloadOutlined, PlusOutlined } from "@ant-design/icons";
|
|
5
|
+
import { Lightbox } from "@tego/client";
|
|
6
6
|
import { Button, Progress, Space, Upload } from "antd";
|
|
7
7
|
import classnames from "classnames";
|
|
8
8
|
import { saveAs } from "file-saver";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import react, { useMemo, useRef } from "react";
|
|
3
|
-
import { FormItem } from "@tachybase/components";
|
|
4
3
|
import { FormContext, RecursionField, createForm, observer, useField, useFieldSchema } from "@tachybase/schema";
|
|
4
|
+
import { FormItem } from "@tego/client";
|
|
5
5
|
import { createStyles } from "antd-style";
|
|
6
6
|
import { useCollectionManager_deprecated } from "../../../collection-manager/index.mjs";
|
|
7
7
|
import { StablePopover } from "../popover/index.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import react from "react";
|
|
2
2
|
import { isArr } from "@tachybase/schema";
|
|
3
|
-
import { getDefaultFormat, str2moment } from "@
|
|
3
|
+
import { getDefaultFormat, str2moment } from "@tego/client";
|
|
4
4
|
import { Tag } from "antd";
|
|
5
5
|
import { useCollectionManager_deprecated } from "../../../collection-manager/index.mjs";
|
|
6
6
|
const useLabelUiSchema = (collectionField, label)=>{
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useMemo, useState } from "react";
|
|
3
3
|
import { isValid, toArr, useFieldSchema, useForm } from "@tachybase/schema";
|
|
4
|
-
import { isPlainObject } from "@tachybase/utils/client";
|
|
5
4
|
import { CloseCircleFilled, CloseOutlined } from "@ant-design/icons";
|
|
5
|
+
import { isPlainObject } from "@tego/client";
|
|
6
6
|
import { Empty, Select, Spin, Tag } from "antd";
|
|
7
7
|
import { useAPIClient, useRequest } from "../../../api-client/index.mjs";
|
|
8
8
|
import { useCollection_deprecated } from "../../../collection-manager/index.mjs";
|
|
@@ -6,7 +6,7 @@ import { useCollectionField } from "../../../data-source/collection-field/Collec
|
|
|
6
6
|
import { EllipsisWithTooltip } from "../input/EllipsisWithTooltip.mjs";
|
|
7
7
|
import { defaultFieldNames, getCurrentOptions } from "./utils.mjs";
|
|
8
8
|
const ReadPretty = observer((props)=>{
|
|
9
|
-
var _field_value, _fieldSchema_xcomponentprops_fieldNames;
|
|
9
|
+
var _field_value, _fieldSchema_xcomponentprops_fieldNames, _fieldSchema_xcomponentprops;
|
|
10
10
|
const fieldNames = {
|
|
11
11
|
...defaultFieldNames,
|
|
12
12
|
...props.fieldNames
|
|
@@ -18,7 +18,7 @@ const ReadPretty = observer((props)=>{
|
|
|
18
18
|
const fieldSchema = useFieldSchema();
|
|
19
19
|
const dataSource = field.dataSource || props.options || (null == collectionField ? void 0 : collectionField.uiSchema.enum) || [];
|
|
20
20
|
const options = getCurrentOptions(field.value, dataSource, fieldNames);
|
|
21
|
-
const currentOptions = getFormulaValue(null == (
|
|
21
|
+
const currentOptions = getFormulaValue(null == (_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) ? void 0 : null == (_fieldSchema_xcomponentprops_fieldNames = _fieldSchema_xcomponentprops.fieldNames) ? void 0 : _fieldSchema_xcomponentprops_fieldNames['formula'], options, fieldSchema);
|
|
22
22
|
return /*#__PURE__*/ jsx("div", {
|
|
23
23
|
children: /*#__PURE__*/ jsx(EllipsisWithTooltip, {
|
|
24
24
|
ellipsis: props.ellipsis,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { connect, isValid, mapProps, mapReadPretty, toArr } from "@tachybase/schema";
|
|
3
|
-
import { isPlainObject } from "@tachybase/utils/client";
|
|
4
3
|
import { CloseCircleFilled, CloseOutlined, LoadingOutlined } from "@ant-design/icons";
|
|
4
|
+
import { isPlainObject } from "@tego/client";
|
|
5
5
|
import { Empty, Radio, Select, Spin, Tag } from "antd";
|
|
6
6
|
import FormulaSelect from "./FormulaSelect.mjs";
|
|
7
7
|
import { ReadPretty } from "./ReadPretty.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isPlainObject } from "@
|
|
1
|
+
import { isPlainObject } from "@tego/client";
|
|
2
2
|
import { castArray } from "lodash";
|
|
3
3
|
const defaultFieldNames = {
|
|
4
4
|
label: 'label',
|
|
@@ -25,7 +25,7 @@ function getCurrentOptions(values, dataSource, fieldNames) {
|
|
|
25
25
|
if (!options) return [];
|
|
26
26
|
const current = [];
|
|
27
27
|
for (const value of arrValues){
|
|
28
|
-
const option = options.find((v)=>v[fieldNames.value]
|
|
28
|
+
const option = options.find((v)=>v[fieldNames.value] === value) || {
|
|
29
29
|
value,
|
|
30
30
|
label: value ? value.toString() : value
|
|
31
31
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { ArrayItems } from "@tachybase/components";
|
|
4
3
|
import { useField, useFieldSchema } from "@tachybase/schema";
|
|
4
|
+
import { ArrayItems } from "@tego/client";
|
|
5
5
|
import { useTranslation } from "react-i18next";
|
|
6
6
|
import { useCollection_deprecated, useResourceActionContext } from "../../../collection-manager/index.mjs";
|
|
7
7
|
import { useCollectionFilterOptions, useSortFields } from "../../../collection-manager/action-hooks.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import react, { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
3
3
|
import { RecursionField, action, observer, spliceArrayState, uid, useField, useFieldSchema } from "@tachybase/schema";
|
|
4
|
-
import { isPortalInBody } from "@tachybase/utils/client";
|
|
5
4
|
import { CopyOutlined, DeleteOutlined, MenuOutlined } from "@ant-design/icons";
|
|
6
5
|
import { SortableContext, useSortable } from "@dnd-kit/sortable";
|
|
6
|
+
import { isPortalInBody } from "@tego/client";
|
|
7
7
|
import { useMemoizedFn } from "ahooks";
|
|
8
8
|
import { Table } from "antd";
|
|
9
9
|
import classnames from "classnames";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback } from "react";
|
|
3
|
-
import { ArrayItems } from "@tachybase/components";
|
|
4
3
|
import { useField, useFieldSchema } from "@tachybase/schema";
|
|
4
|
+
import { ArrayItems } from "@tego/client";
|
|
5
5
|
import { useTranslation } from "react-i18next";
|
|
6
6
|
import { useCompile } from "../../index.mjs";
|
|
7
7
|
import { useAPIClient } from "../../../api-client/index.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useContext } from "react";
|
|
3
|
-
import { ArrayItems } from "@tachybase/components";
|
|
4
3
|
import { useField, useFieldSchema } from "@tachybase/schema";
|
|
4
|
+
import { ArrayItems } from "@tego/client";
|
|
5
5
|
import lodash from "lodash";
|
|
6
6
|
import { useTranslation } from "react-i18next";
|
|
7
7
|
import { useFormBlockContext, useTableSelectorContext } from "../../../block-provider/index.mjs";
|