@tachybase/plugin-workflow-approval 1.5.1 → 1.6.0
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/dist/client/base/ApprovalPane.schema.d.ts +73 -9
- package/dist/client/common/components/ApprovalsSummary.d.ts +11 -0
- package/dist/client/common/components/SimpleTable.d.ts +24 -0
- package/dist/client/common/components/WorkflowApproval.d.ts +4 -0
- package/dist/client/common/components/index.d.ts +5 -0
- package/dist/client/index.js +36 -36
- package/dist/client/user-interface/h5/common/approval-columns/summary.column.d.ts +7 -0
- package/dist/client/user-interface/h5/common/processSummary.d.ts +14 -0
- package/dist/client/user-interface/h5/todos/component/TabApprovalItem.d.ts +1 -1
- package/dist/common/constants.d.ts +6 -0
- package/dist/common/constants.js +14 -2
- package/dist/common/interface.d.js +15 -0
- package/dist/common/utils.d.ts +2 -0
- package/dist/common/utils.js +46 -0
- package/dist/externalVersion.js +6 -5
- package/dist/locale/en-US.json +1 -0
- package/dist/server/actions/approvals.js +6 -2
- package/dist/server/tools.d.ts +4 -7
- package/dist/server/tools.js +253 -12
- package/dist/server/triggers/Approval.js +14 -4
- package/package.json +4 -4
|
@@ -224,6 +224,8 @@ export declare const schemaApprovalPanne: {
|
|
|
224
224
|
'x-component': string;
|
|
225
225
|
'x-component-props': {
|
|
226
226
|
sorter: boolean;
|
|
227
|
+
width: number;
|
|
228
|
+
align: string;
|
|
227
229
|
};
|
|
228
230
|
properties: {
|
|
229
231
|
title: {
|
|
@@ -233,14 +235,24 @@ export declare const schemaApprovalPanne: {
|
|
|
233
235
|
};
|
|
234
236
|
};
|
|
235
237
|
};
|
|
236
|
-
|
|
238
|
+
category: {
|
|
237
239
|
type: string;
|
|
238
240
|
'x-decorator': string;
|
|
239
241
|
'x-component': string;
|
|
242
|
+
'x-component-props': {
|
|
243
|
+
sorter: boolean;
|
|
244
|
+
width: number;
|
|
245
|
+
align: string;
|
|
246
|
+
};
|
|
240
247
|
properties: {
|
|
241
|
-
|
|
248
|
+
category: {
|
|
242
249
|
type: string;
|
|
250
|
+
'x-collection-field': string;
|
|
243
251
|
'x-component': string;
|
|
252
|
+
'x-component-props': {
|
|
253
|
+
multiple: boolean;
|
|
254
|
+
mode: string;
|
|
255
|
+
};
|
|
244
256
|
'x-read-pretty': boolean;
|
|
245
257
|
};
|
|
246
258
|
};
|
|
@@ -252,6 +264,7 @@ export declare const schemaApprovalPanne: {
|
|
|
252
264
|
'x-component-props': {
|
|
253
265
|
sorter: boolean;
|
|
254
266
|
width: number;
|
|
267
|
+
align: string;
|
|
255
268
|
};
|
|
256
269
|
properties: {
|
|
257
270
|
enabled: {
|
|
@@ -269,6 +282,7 @@ export declare const schemaApprovalPanne: {
|
|
|
269
282
|
'x-component-props': {
|
|
270
283
|
sorter: boolean;
|
|
271
284
|
width: number;
|
|
285
|
+
align: string;
|
|
272
286
|
};
|
|
273
287
|
properties: {
|
|
274
288
|
allExecuted: {
|
|
@@ -506,6 +520,42 @@ export declare const schemaApprovalPanne: {
|
|
|
506
520
|
};
|
|
507
521
|
};
|
|
508
522
|
};
|
|
523
|
+
executedTime: {
|
|
524
|
+
type: string;
|
|
525
|
+
'x-decorator': string;
|
|
526
|
+
'x-component': string;
|
|
527
|
+
title: string;
|
|
528
|
+
'x-component-props': {
|
|
529
|
+
sorter: boolean;
|
|
530
|
+
width: number;
|
|
531
|
+
align: string;
|
|
532
|
+
style: {
|
|
533
|
+
display: string;
|
|
534
|
+
placeItems: string;
|
|
535
|
+
};
|
|
536
|
+
};
|
|
537
|
+
properties: {
|
|
538
|
+
executedTime: {
|
|
539
|
+
type: string;
|
|
540
|
+
'x-component': string;
|
|
541
|
+
};
|
|
542
|
+
};
|
|
543
|
+
};
|
|
544
|
+
description: {
|
|
545
|
+
type: string;
|
|
546
|
+
'x-decorator': string;
|
|
547
|
+
'x-component': string;
|
|
548
|
+
properties: {
|
|
549
|
+
description: {
|
|
550
|
+
type: string;
|
|
551
|
+
'x-component': string;
|
|
552
|
+
'x-component-props': {
|
|
553
|
+
ellipsis: boolean;
|
|
554
|
+
};
|
|
555
|
+
'x-read-pretty': boolean;
|
|
556
|
+
};
|
|
557
|
+
};
|
|
558
|
+
};
|
|
509
559
|
updatedAt: {
|
|
510
560
|
type: string;
|
|
511
561
|
'x-decorator': string;
|
|
@@ -532,7 +582,6 @@ export declare const schemaApprovalPanne: {
|
|
|
532
582
|
'x-decorator': string;
|
|
533
583
|
'x-component': string;
|
|
534
584
|
'x-component-props': {
|
|
535
|
-
sorter: boolean;
|
|
536
585
|
width: number;
|
|
537
586
|
align: string;
|
|
538
587
|
style: {
|
|
@@ -645,6 +694,25 @@ export declare const schemaApprovalPanne: {
|
|
|
645
694
|
'x-decorator': string;
|
|
646
695
|
'x-component': string;
|
|
647
696
|
};
|
|
697
|
+
category: {
|
|
698
|
+
'x-collection-field': string;
|
|
699
|
+
'x-component': string;
|
|
700
|
+
'x-decorator': string;
|
|
701
|
+
'x-component-props': {
|
|
702
|
+
multiple: boolean;
|
|
703
|
+
service: {
|
|
704
|
+
params: {
|
|
705
|
+
filter: {
|
|
706
|
+
$and: {
|
|
707
|
+
type: {
|
|
708
|
+
$eq: string;
|
|
709
|
+
};
|
|
710
|
+
}[];
|
|
711
|
+
};
|
|
712
|
+
};
|
|
713
|
+
};
|
|
714
|
+
};
|
|
715
|
+
};
|
|
648
716
|
footer: {
|
|
649
717
|
type: string;
|
|
650
718
|
'x-component': string;
|
|
@@ -655,9 +723,7 @@ export declare const schemaApprovalPanne: {
|
|
|
655
723
|
'x-component': string;
|
|
656
724
|
'x-component-props': {
|
|
657
725
|
type: string;
|
|
658
|
-
useAction
|
|
659
|
-
run(): Promise<void>;
|
|
660
|
-
};
|
|
726
|
+
useAction: string;
|
|
661
727
|
};
|
|
662
728
|
};
|
|
663
729
|
cancel: {
|
|
@@ -692,9 +758,7 @@ export declare const schemaApprovalPanne: {
|
|
|
692
758
|
title: string;
|
|
693
759
|
'x-component': string;
|
|
694
760
|
'x-component-props': {
|
|
695
|
-
useAction
|
|
696
|
-
run(): Promise<void>;
|
|
697
|
-
};
|
|
761
|
+
useAction: string;
|
|
698
762
|
};
|
|
699
763
|
};
|
|
700
764
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ApprovalsSummaryProps {
|
|
3
|
+
value: any;
|
|
4
|
+
collectionName?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
itemClassName?: string;
|
|
7
|
+
labelClassName?: string;
|
|
8
|
+
valueClassName?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const ApprovalsSummary: React.NamedExoticComponent<ApprovalsSummaryProps>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface SimpleTableColumn {
|
|
3
|
+
key: string;
|
|
4
|
+
title: string;
|
|
5
|
+
dataIndex?: string;
|
|
6
|
+
render?: (value: any, record: any, index: number) => React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export interface SimpleTableProps {
|
|
9
|
+
/** 表格标题 */
|
|
10
|
+
title?: React.ReactNode;
|
|
11
|
+
/** 表格列配置 */
|
|
12
|
+
columns: SimpleTableColumn[];
|
|
13
|
+
/** 表格数据源 */
|
|
14
|
+
dataSource: any[];
|
|
15
|
+
/** 自定义样式 */
|
|
16
|
+
style?: React.CSSProperties;
|
|
17
|
+
/** 表格容器样式 */
|
|
18
|
+
wrapperStyle?: React.CSSProperties;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* 极简表格组件
|
|
22
|
+
* 用于展示简单的表格数据,样式简洁,无额外依赖
|
|
23
|
+
*/
|
|
24
|
+
export declare const SimpleTable: React.FC<SimpleTableProps>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function getWorkflowDetailPath(id: string | number): string;
|
|
2
|
+
export declare function getWorkflowExecutionsPath(id: string | number): string;
|
|
3
|
+
export declare const WorkflowApprovalLink: () => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const ExecutionApprovalLink: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ConfigButton } from './ConfigButton';
|
|
2
|
+
export { FormBlockProvider } from './FormBlock.provider';
|
|
3
|
+
export { SimpleTable } from './SimpleTable';
|
|
4
|
+
export type { SimpleTableColumn, SimpleTableProps } from './SimpleTable';
|
|
5
|
+
export { ApprovalsSummary } from './ApprovalsSummary';
|