parent
c882909bad
commit
ab49b68213
@ -1,31 +1,30 @@
|
||||
import { useForm } from '@tachybase/schema';
|
||||
import { Cascader } from 'antd';
|
||||
import React, { useCallback, useEffect, useState } from 'react';
|
||||
|
||||
import {
|
||||
SchemaComponentContext,
|
||||
SchemaInitializerItemType,
|
||||
css,
|
||||
joinCollectionName,
|
||||
parseCollectionName,
|
||||
SchemaComponentContext,
|
||||
SchemaInitializerItemType,
|
||||
useCollectionDataSource,
|
||||
useCollectionFilterOptions,
|
||||
useCollectionManager_deprecated,
|
||||
useCompile,
|
||||
} from '@tachybase/client';
|
||||
import { useForm } from '@tachybase/schema';
|
||||
|
||||
import { Cascader } from 'antd';
|
||||
|
||||
import {
|
||||
FieldsSelect,
|
||||
FilterDynamicComponent,
|
||||
ValueBlock,
|
||||
BaseTypeSets,
|
||||
defaultFieldNames,
|
||||
FieldsSelect,
|
||||
FilterDynamicComponent,
|
||||
nodesOptions,
|
||||
triggerOptions,
|
||||
Instruction,
|
||||
ValueBlock,
|
||||
} from '../..';
|
||||
|
||||
import { NAMESPACE, lang } from '../../locale';
|
||||
import { lang, NAMESPACE } from '../../locale';
|
||||
import { Instruction } from '../../nodes';
|
||||
|
||||
function matchToManyField(field): boolean {
|
||||
// const fieldPrefix = `${field.name}.`;
|
||||
|
@ -3,8 +3,9 @@ import { useCompile } from '@tachybase/client';
|
||||
|
||||
import { InputNumber, Select } from 'antd';
|
||||
|
||||
import { Instruction, JOB_STATUS } from '../..';
|
||||
import { JOB_STATUS } from '../..';
|
||||
import { NAMESPACE } from '../../locale';
|
||||
import { Instruction } from '../../nodes';
|
||||
|
||||
const UnitOptions = [
|
||||
{ value: 1_000, label: `{{t('Seconds', { ns: "workflow" })}}` },
|
||||
|
@ -1,15 +1,9 @@
|
||||
import React from 'react';
|
||||
import { SchemaInitializerItemType, useCollectionManager_deprecated, Variable } from '@tachybase/client';
|
||||
|
||||
import { SchemaInitializerItemType, Variable, useCollectionManager_deprecated } from '@tachybase/client';
|
||||
import {
|
||||
BaseTypeSets,
|
||||
Instruction,
|
||||
ValueBlock,
|
||||
WorkflowVariableInput,
|
||||
defaultFieldNames,
|
||||
useWorkflowVariableOptions,
|
||||
} from '../..';
|
||||
import { NAMESPACE, lang } from '../../locale';
|
||||
import { BaseTypeSets, defaultFieldNames, useWorkflowVariableOptions, ValueBlock, WorkflowVariableInput } from '../..';
|
||||
import { lang, NAMESPACE } from '../../locale';
|
||||
import { Instruction } from '../../nodes';
|
||||
|
||||
function useDynamicExpressionCollectionFieldMatcher(field): boolean {
|
||||
if (!['belongsTo', 'hasOne'].includes(field.type)) {
|
||||
|
@ -1,32 +1,31 @@
|
||||
import { CloseOutlined, DeleteOutlined } from '@ant-design/icons';
|
||||
import { createForm } from '@tachybase/schema';
|
||||
import { ISchema, useForm } from '@tachybase/schema';
|
||||
import { App, Button, Dropdown, Input, Tag, Tooltip, message } from 'antd';
|
||||
import { cloneDeep } from 'lodash';
|
||||
import React, { useCallback, useContext, useMemo, useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
import {
|
||||
ActionContextProvider,
|
||||
css,
|
||||
cx,
|
||||
FormProvider,
|
||||
SchemaComponent,
|
||||
SchemaInitializerItemType,
|
||||
css,
|
||||
cx,
|
||||
useAPIClient,
|
||||
useActionContext,
|
||||
useAPIClient,
|
||||
useCompile,
|
||||
usePlugin,
|
||||
useResourceActionContext,
|
||||
} from '@tachybase/client';
|
||||
import { createForm, ISchema, useForm } from '@tachybase/schema';
|
||||
import { parse, str2moment } from '@tachybase/utils/client';
|
||||
|
||||
import { CloseOutlined, DeleteOutlined } from '@ant-design/icons';
|
||||
import { App, Button, Dropdown, Input, message, Tag, Tooltip } from 'antd';
|
||||
import { cloneDeep } from 'lodash';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
import WorkflowPlugin from '..';
|
||||
import { AddButton } from '../AddButton';
|
||||
import { useFlowContext } from '../FlowContext';
|
||||
import { DrawerDescription } from '../components/DrawerDescription';
|
||||
import { StatusButton } from '../components/StatusButton';
|
||||
import { JobStatusOptionsMap } from '../constants';
|
||||
import { useFlowContext } from '../FlowContext';
|
||||
import { useGetAriaLabelOfAddButton } from '../hooks/useGetAriaLabelOfAddButton';
|
||||
import { lang } from '../locale';
|
||||
import useStyles from '../style';
|
||||
|
Loading…
Reference in New Issue
Block a user