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