@yugu-ui/flow-ui 0.0.0-stage → 0.1.1

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.
Files changed (49) hide show
  1. package/README.md +343 -2
  2. package/dist/adapter/wflow.d.ts +260 -0
  3. package/dist/base-ui/base-card-item.d.ts +26 -0
  4. package/dist/base-ui/base-card.d.ts +60 -0
  5. package/dist/base-ui/base-drawer.d.ts +56 -0
  6. package/dist/base-ui/base-modal.d.ts +43 -0
  7. package/dist/base-ui/yg-confirm.d.ts +79 -0
  8. package/dist/composables/form.d.ts +19 -0
  9. package/dist/config/FlowConfig.d.ts +34 -0
  10. package/dist/config/FlowConfigField.d.ts +12 -0
  11. package/dist/config/FlowConfigFlow/components/FlowIcon.d.ts +11 -0
  12. package/dist/config/FlowConfigFlow/components/FlowNodeCard.d.ts +7 -0
  13. package/dist/config/FlowConfigFlow/components/NodeConfigDrawer/index.d.ts +19 -0
  14. package/dist/config/FlowConfigFlow/components/NodeConfigDrawer/modules/ApproverConfig.d.ts +7 -0
  15. package/dist/config/FlowConfigFlow/components/NodeConfigDrawer/modules/CcConfig.d.ts +6 -0
  16. package/dist/config/FlowConfigFlow/components/NodeConfigDrawer/modules/ConditionConfig.d.ts +8 -0
  17. package/dist/config/FlowConfigFlow/components/NodeConfigDrawer/modules/StartConfig.d.ts +7 -0
  18. package/dist/config/FlowConfigFlow/composables/useNodeDrawer.d.ts +9 -0
  19. package/dist/config/FlowConfigFlow/index.d.ts +18 -0
  20. package/dist/config/FlowConfigMore.d.ts +12 -0
  21. package/dist/config/useFcCssVars.d.ts +2 -0
  22. package/dist/file-preview/file-preview-modal.d.ts +24 -0
  23. package/dist/file-preview/index.d.ts +21 -0
  24. package/dist/flow-list/index.d.ts +21 -0
  25. package/dist/flow-list/modules/FlowListGroup.d.ts +21 -0
  26. package/dist/flow-list/modules/FlowListItem.d.ts +21 -0
  27. package/dist/flow-list/types/index.d.ts +20 -0
  28. package/dist/index.d.ts +18 -0
  29. package/dist/index.js +6913 -0
  30. package/dist/person-selector/api/index.d.ts +4 -0
  31. package/dist/person-selector/composables/useOverflowTags.d.ts +13 -0
  32. package/dist/person-selector/composables/usePersonData.d.ts +40 -0
  33. package/dist/person-selector/composables/useSelection.d.ts +42 -0
  34. package/dist/person-selector/constants/index.d.ts +5 -0
  35. package/dist/person-selector/index.d.ts +21 -0
  36. package/dist/person-selector/types/index.d.ts +35 -0
  37. package/dist/person-selector/utils/index.d.ts +5 -0
  38. package/dist/provider/index.d.ts +25 -0
  39. package/dist/provider/key.d.ts +4 -0
  40. package/dist/provider/types.d.ts +68 -0
  41. package/dist/style.css +2430 -0
  42. package/dist/timeline/ApprovalModal.d.ts +47 -0
  43. package/dist/timeline/FlowAvatar.d.ts +11 -0
  44. package/dist/timeline/FlowLayout.d.ts +42 -0
  45. package/dist/timeline/FlowNode.d.ts +103 -0
  46. package/dist/timeline/flowUserKey.d.ts +18 -0
  47. package/dist/timeline/types.d.ts +9 -0
  48. package/dist/utils/common.d.ts +4 -0
  49. package/package.json +56 -4
@@ -0,0 +1,60 @@
1
+ import { ButtonProps } from 'naive-ui';
2
+ export interface BaseCardButtonConfig {
3
+ /** 是否显示按钮 */
4
+ show?: boolean;
5
+ /** 按钮文案 */
6
+ text?: string;
7
+ /** 按钮属性 */
8
+ props?: Partial<ButtonProps>;
9
+ /** 是否启用二次确认 */
10
+ doubleConfirm?: boolean;
11
+ /** 二次确认标题 */
12
+ doubleConfirmTitle?: string;
13
+ /** 二次确认内容 */
14
+ doubleConfirmContent?: string;
15
+ }
16
+ type __VLS_Props = {
17
+ title?: string;
18
+ subtitle?: string;
19
+ /** 页面加载状态,为 true 时内容区显示 loading 遮罩 */
20
+ loading?: boolean;
21
+ /** 取消按钮配置 */
22
+ cancelConfig?: BaseCardButtonConfig;
23
+ /** 确认按钮配置 */
24
+ confirmConfig?: BaseCardButtonConfig;
25
+ onBeforeCancel?: () => void;
26
+ onBeforeConfirm?: (done: () => void) => void;
27
+ };
28
+ declare var __VLS_14: {}, __VLS_16: {}, __VLS_24: {}, __VLS_42: {};
29
+ type __VLS_Slots = {} & {
30
+ default?: (props: typeof __VLS_14) => any;
31
+ } & {
32
+ footer?: (props: typeof __VLS_16) => any;
33
+ } & {
34
+ 'footer-extra'?: (props: typeof __VLS_24) => any;
35
+ } & {
36
+ 'footer-center'?: (props: typeof __VLS_42) => any;
37
+ };
38
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
39
+ cancel: () => any;
40
+ confirm: () => any;
41
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
42
+ onCancel?: (() => any) | undefined;
43
+ onConfirm?: (() => any) | undefined;
44
+ }>, {
45
+ title: string;
46
+ loading: boolean;
47
+ onBeforeCancel: () => void;
48
+ onBeforeConfirm: (done: () => void) => void;
49
+ subtitle: string;
50
+ cancelConfig: BaseCardButtonConfig;
51
+ confirmConfig: BaseCardButtonConfig;
52
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
53
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
54
+ declare const _default: typeof __VLS_export;
55
+ export default _default;
56
+ type __VLS_WithSlots<T, S> = T & {
57
+ new (): {
58
+ $slots: S;
59
+ };
60
+ };
@@ -0,0 +1,56 @@
1
+ type __VLS_Props = {
2
+ title?: string;
3
+ loading?: boolean;
4
+ closable?: boolean;
5
+ nativeScrollbar?: boolean;
6
+ width?: number | string;
7
+ /** 布局模式:single-单列(378px) / double-双列(640px),未传 width 时生效 */
8
+ mode?: 'single' | 'double';
9
+ cancelText?: string;
10
+ confirmText?: string;
11
+ showCancel?: boolean;
12
+ showConfirm?: boolean;
13
+ confirmDisabled?: boolean;
14
+ onBeforeCancel?: (close: (shouldClose?: boolean) => void) => void;
15
+ onBeforeConfirm?: (close: (shouldClose?: boolean) => void) => void;
16
+ };
17
+ type __VLS_ModelProps = {
18
+ 'show'?: boolean;
19
+ };
20
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
21
+ declare var __VLS_22: {}, __VLS_25: {};
22
+ type __VLS_Slots = {} & {
23
+ default?: (props: typeof __VLS_22) => any;
24
+ } & {
25
+ footer?: (props: typeof __VLS_25) => any;
26
+ };
27
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
28
+ "update:show": (value: boolean) => any;
29
+ } & {
30
+ close: () => any;
31
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
32
+ onClose?: (() => any) | undefined;
33
+ "onUpdate:show"?: ((value: boolean) => any) | undefined;
34
+ }>, {
35
+ title: string;
36
+ width: number | string;
37
+ loading: boolean;
38
+ closable: boolean;
39
+ nativeScrollbar: boolean;
40
+ mode: "single" | "double";
41
+ cancelText: string;
42
+ confirmText: string;
43
+ showCancel: boolean;
44
+ showConfirm: boolean;
45
+ confirmDisabled: boolean;
46
+ onBeforeCancel: (close: (shouldClose?: boolean) => void) => void;
47
+ onBeforeConfirm: (close: (shouldClose?: boolean) => void) => void;
48
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
49
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
50
+ declare const _default: typeof __VLS_export;
51
+ export default _default;
52
+ type __VLS_WithSlots<T, S> = T & {
53
+ new (): {
54
+ $slots: S;
55
+ };
56
+ };
@@ -0,0 +1,43 @@
1
+ type __VLS_Props = {
2
+ width?: string | number;
3
+ cancelText?: string;
4
+ confirmText?: string;
5
+ showCancel?: boolean;
6
+ showConfirm?: boolean;
7
+ onBeforeCancel?: (close: () => void) => void;
8
+ onBeforeConfirm?: (close: () => void) => void;
9
+ };
10
+ type __VLS_ModelProps = {
11
+ 'show'?: boolean;
12
+ };
13
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
14
+ declare var __VLS_12: string, __VLS_13: any, __VLS_16: {};
15
+ type __VLS_Slots = {} & {
16
+ [K in NonNullable<typeof __VLS_12>]?: (props: typeof __VLS_13) => any;
17
+ } & {
18
+ footer?: (props: typeof __VLS_16) => any;
19
+ };
20
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
+ "update:show": (value: boolean) => any;
22
+ } & {
23
+ close: () => any;
24
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
25
+ onClose?: (() => any) | undefined;
26
+ "onUpdate:show"?: ((value: boolean) => any) | undefined;
27
+ }>, {
28
+ width: string | number;
29
+ cancelText: string;
30
+ confirmText: string;
31
+ showCancel: boolean;
32
+ showConfirm: boolean;
33
+ onBeforeCancel: (close: () => void) => void;
34
+ onBeforeConfirm: (close: () => void) => void;
35
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
36
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
37
+ declare const _default: typeof __VLS_export;
38
+ export default _default;
39
+ type __VLS_WithSlots<T, S> = T & {
40
+ new (): {
41
+ $slots: S;
42
+ };
43
+ };
@@ -0,0 +1,79 @@
1
+ import { ModalProps, ButtonProps, SwitchProps } from 'naive-ui';
2
+ export type YgPopconfirmTriggerType = 'button' | 'switch' | 'custom';
3
+ export type YgPopconfirmButtonOptions = Partial<Omit<ButtonProps, 'onClick'>>;
4
+ export type YgPopconfirmSwitchOptions = Partial<Omit<SwitchProps, 'value' | 'loading' | 'onUpdate:value'>>;
5
+ export type YgPopconfirmModalOptions = Partial<Omit<ModalProps, 'onPositiveClick' | 'onNegativeClick'>>;
6
+ export type YgPopconfirmDoneCallback = (shouldClose?: boolean) => void;
7
+ export interface YgPopconfirmProps {
8
+ /** 触发器类型:button(按钮,默认)| switch(开关)| custom(自定义) */
9
+ triggerType?: YgPopconfirmTriggerType;
10
+ /** 标题 */
11
+ title?: string;
12
+ /** 内容描述 */
13
+ content?: string;
14
+ /** 确认按钮文案 */
15
+ positiveText?: string;
16
+ /** 取消按钮文案 */
17
+ negativeText?: string;
18
+ /** 按钮配置(triggerType=button 时生效) */
19
+ buttonConfig?: YgPopconfirmButtonOptions;
20
+ /** 开关配置(triggerType=switch 时生效),接受 NSwitch 所有参数 */
21
+ switchConfig?: YgPopconfirmSwitchOptions;
22
+ /** 开关的当前值(triggerType=switch 时使用,支持 v-model) */
23
+ modelValue?: any;
24
+ /** Modal 额外属性 */
25
+ modalProps?: YgPopconfirmModalOptions;
26
+ /**
27
+ * 是否启用同步确认模式(默认为异步)
28
+ * - false(默认):点击确定显示 loading,必须调用 done() 控制关闭
29
+ * - done(true) / done():关闭 loading 并关闭弹窗
30
+ * - done(false):关闭 loading,弹窗保持打开
31
+ * - true:点击确定立即关闭弹窗(同步模式,无需调用 done)
32
+ */
33
+ sync?: boolean;
34
+ }
35
+ declare function handleOpen(): void;
36
+ declare var __VLS_10: {}, __VLS_12: {}, __VLS_21: {
37
+ loading: boolean;
38
+ open: typeof handleOpen;
39
+ }, __VLS_32: {};
40
+ type __VLS_Slots = {} & {
41
+ icon?: (props: typeof __VLS_10) => any;
42
+ } & {
43
+ default?: (props: typeof __VLS_12) => any;
44
+ } & {
45
+ trigger?: (props: typeof __VLS_21) => any;
46
+ } & {
47
+ content?: (props: typeof __VLS_32) => any;
48
+ };
49
+ declare const __VLS_base: import('vue').DefineComponent<YgPopconfirmProps, {
50
+ open: typeof handleOpen;
51
+ close: () => void;
52
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
53
+ cancel: () => any;
54
+ confirm: (value: any, done: YgPopconfirmDoneCallback) => any;
55
+ "update:modelValue": (value: any) => any;
56
+ }, string, import('vue').PublicProps, Readonly<YgPopconfirmProps> & Readonly<{
57
+ onCancel?: (() => any) | undefined;
58
+ onConfirm?: ((value: any, done: YgPopconfirmDoneCallback) => any) | undefined;
59
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
60
+ }>, {
61
+ title: string;
62
+ content: string;
63
+ negativeText: string;
64
+ positiveText: string;
65
+ modelValue: any;
66
+ sync: boolean;
67
+ triggerType: YgPopconfirmTriggerType;
68
+ buttonConfig: Partial<Omit<ButtonProps, "onClick">>;
69
+ switchConfig: Partial<Omit<SwitchProps, "value" | "loading" | "onUpdate:value">>;
70
+ modalProps: Partial<Omit<ModalProps, "onPositiveClick" | "onNegativeClick">>;
71
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
72
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
73
+ declare const _default: typeof __VLS_export;
74
+ export default _default;
75
+ type __VLS_WithSlots<T, S> = T & {
76
+ new (): {
77
+ $slots: S;
78
+ };
79
+ };
@@ -0,0 +1,19 @@
1
+ import { FormInst, FormItemRule } from 'naive-ui';
2
+ /** 表单校验规则类型(同宿主全局表单规则类型 = naive-ui FormItemRule) */
3
+ export type FormRule = FormItemRule;
4
+ export declare function useFormRules(): {
5
+ createRequiredRule: (message: string) => FormRule;
6
+ };
7
+ export declare function useNaiveForm(): {
8
+ formRef: import('vue').Ref<{
9
+ validate: import('naive-ui/es/form/src/interface').FormValidate;
10
+ restoreValidation: () => void;
11
+ invalidateLabelWidth: () => void;
12
+ } | null, FormInst | {
13
+ validate: import('naive-ui/es/form/src/interface').FormValidate;
14
+ restoreValidation: () => void;
15
+ invalidateLabelWidth: () => void;
16
+ } | null>;
17
+ validate: () => Promise<void>;
18
+ restoreValidation: () => Promise<void>;
19
+ };
@@ -0,0 +1,34 @@
1
+ type __VLS_Props = {
2
+ flowName?: string;
3
+ activeTab?: 'form' | 'flow' | 'more';
4
+ data?: Record<string, any> | null;
5
+ publishing?: boolean;
6
+ isExternal?: number;
7
+ };
8
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
+ formChange: (data: any) => any;
10
+ flowChange: (data: any) => any;
11
+ moreChange: (data: any) => any;
12
+ publish: (data: {
13
+ fields: unknown[];
14
+ flow: Record<string, unknown>;
15
+ more: Record<string, unknown>;
16
+ }) => any;
17
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
18
+ onFormChange?: ((data: any) => any) | undefined;
19
+ onFlowChange?: ((data: any) => any) | undefined;
20
+ onMoreChange?: ((data: any) => any) | undefined;
21
+ onPublish?: ((data: {
22
+ fields: unknown[];
23
+ flow: Record<string, unknown>;
24
+ more: Record<string, unknown>;
25
+ }) => any) | undefined;
26
+ }>, {
27
+ data: Record<string, any> | null;
28
+ isExternal: number;
29
+ flowName: string;
30
+ activeTab: "form" | "flow" | "more";
31
+ publishing: boolean;
32
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
33
+ declare const _default: typeof __VLS_export;
34
+ export default _default;
@@ -0,0 +1,12 @@
1
+ type __VLS_Props = {
2
+ data?: Record<string, any>;
3
+ };
4
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {
5
+ validate: () => string[];
6
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ change: (data: any) => any;
8
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
9
+ onChange?: ((data: any) => any) | undefined;
10
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
@@ -0,0 +1,11 @@
1
+ type __VLS_Props = {
2
+ name: string;
3
+ size?: number | string;
4
+ color?: string;
5
+ };
6
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
7
+ size: number | string;
8
+ color: string;
9
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { Node } from '@antv/x6';
2
+ type __VLS_Props = {
3
+ node: Node | null;
4
+ };
5
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
6
+ declare const _default: typeof __VLS_export;
7
+ export default _default;
@@ -0,0 +1,19 @@
1
+ type __VLS_Props = {
2
+ visible: boolean;
3
+ node: Record<string, any> | null;
4
+ fields?: Record<string, any>;
5
+ isExternal?: number;
6
+ };
7
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
+ confirm: (payload: {
9
+ config: Record<string, any>;
10
+ }) => any;
11
+ "update:visible": (value: boolean) => any;
12
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
13
+ onConfirm?: ((payload: {
14
+ config: Record<string, any>;
15
+ }) => any) | undefined;
16
+ "onUpdate:visible"?: ((value: boolean) => any) | undefined;
17
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
18
+ declare const _default: typeof __VLS_export;
19
+ export default _default;
@@ -0,0 +1,7 @@
1
+ type __VLS_Props = {
2
+ config: Record<string, any>;
3
+ isExternal?: number;
4
+ };
5
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
6
+ declare const _default: typeof __VLS_export;
7
+ export default _default;
@@ -0,0 +1,6 @@
1
+ type __VLS_Props = {
2
+ config: Record<string, any>;
3
+ };
4
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
@@ -0,0 +1,8 @@
1
+ type __VLS_Props = {
2
+ config: Record<string, any>;
3
+ fields?: Record<string, any>;
4
+ isExternal?: number;
5
+ };
6
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
@@ -0,0 +1,7 @@
1
+ type __VLS_Props = {
2
+ config: Record<string, any>;
3
+ isExternal?: number;
4
+ };
5
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
6
+ declare const _default: typeof __VLS_export;
7
+ export default _default;
@@ -0,0 +1,9 @@
1
+ export default function useNodeDrawer(getGraph: () => any, onConfirm?: () => void): {
2
+ drawerVisible: import('vue').Ref<boolean, boolean>;
3
+ activeNode: import('vue').Ref<Record<string, any> | null, Record<string, any> | null>;
4
+ openNodeDrawer: (node: any) => void;
5
+ handleDrawerVisibleChange: (v: boolean) => void;
6
+ handleNodeConfigConfirm: ({ config }: {
7
+ config: Record<string, any>;
8
+ }) => void;
9
+ };
@@ -0,0 +1,18 @@
1
+ declare const _default: typeof __VLS_export;
2
+ export default _default;
3
+ declare const __VLS_export: import('vue').DefineComponent<{
4
+ data?: Record<string, any>;
5
+ fields?: Record<string, any>;
6
+ isExternal?: number;
7
+ }, {
8
+ validateFlow: () => any;
9
+ getProcessData: () => any;
10
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
+ change: (data: any) => any;
12
+ }, string, import('vue').PublicProps, Readonly<{
13
+ data?: Record<string, any>;
14
+ fields?: Record<string, any>;
15
+ isExternal?: number;
16
+ }> & Readonly<{
17
+ onChange?: ((data: any) => any) | undefined;
18
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -0,0 +1,12 @@
1
+ type __VLS_Props = {
2
+ data?: Record<string, any>;
3
+ };
4
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {
5
+ validate: () => Promise<string[]>;
6
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ change: (data: any) => any;
8
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
9
+ onChange?: ((data: any) => any) | undefined;
10
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { CSSProperties } from 'vue';
2
+ export declare const useFcCssVars: () => import('vue').ComputedRef<CSSProperties>;
@@ -0,0 +1,24 @@
1
+ interface Props {
2
+ url: string;
3
+ fileName?: string;
4
+ title?: string;
5
+ width?: string | number;
6
+ height?: string;
7
+ }
8
+ type __VLS_Props = Props;
9
+ type __VLS_ModelProps = {
10
+ 'show'?: boolean;
11
+ };
12
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
13
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
+ "update:show": (value: boolean) => any;
15
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
16
+ "onUpdate:show"?: ((value: boolean) => any) | undefined;
17
+ }>, {
18
+ title: string;
19
+ width: string | number;
20
+ height: string;
21
+ fileName: string;
22
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
23
+ declare const _default: typeof __VLS_export;
24
+ export default _default;
@@ -0,0 +1,21 @@
1
+ interface Props {
2
+ url: string;
3
+ fileName?: string;
4
+ height?: string;
5
+ options?: Record<string, any>;
6
+ deferRender?: boolean;
7
+ }
8
+ declare const __VLS_export: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
9
+ error: (err: unknown) => any;
10
+ rendered: () => any;
11
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
12
+ onError?: ((err: unknown) => any) | undefined;
13
+ onRendered?: (() => any) | undefined;
14
+ }>, {
15
+ height: string;
16
+ options: Record<string, any>;
17
+ fileName: string;
18
+ deferRender: boolean;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;
@@ -0,0 +1,21 @@
1
+ import { FlowGroup, FlowItem } from './types';
2
+ interface Props {
3
+ /** 流程分组数据 */
4
+ groups: FlowGroup[];
5
+ /** 是否显示卡片操作按钮(编辑/配置),默认显示 */
6
+ showActions?: boolean;
7
+ /** 卡片整体是否可点击(点击触发 itemClick),默认不可点击 */
8
+ clickable?: boolean;
9
+ }
10
+ declare const __VLS_export: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
+ itemClick: (item: FlowItem) => any;
12
+ design: (item: FlowItem) => any;
13
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
14
+ onItemClick?: ((item: FlowItem) => any) | undefined;
15
+ onDesign?: ((item: FlowItem) => any) | undefined;
16
+ }>, {
17
+ showActions: boolean;
18
+ clickable: boolean;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;
@@ -0,0 +1,21 @@
1
+ import { FlowGroup, FlowItem } from '../types';
2
+ type __VLS_Props = {
3
+ /** 分组数据 */
4
+ group: FlowGroup;
5
+ /** 是否显示卡片操作按钮(编辑/配置),默认显示 */
6
+ showActions?: boolean;
7
+ /** 卡片整体是否可点击(点击触发 itemClick),默认不可点击 */
8
+ clickable?: boolean;
9
+ };
10
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
+ itemClick: (item: FlowItem) => any;
12
+ design: (item: FlowItem) => any;
13
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
14
+ onItemClick?: ((item: FlowItem) => any) | undefined;
15
+ onDesign?: ((item: FlowItem) => any) | undefined;
16
+ }>, {
17
+ showActions: boolean;
18
+ clickable: boolean;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;
@@ -0,0 +1,21 @@
1
+ import { FlowItem } from '../types';
2
+ type __VLS_Props = {
3
+ /** 流程项数据 */
4
+ item: FlowItem;
5
+ /** 是否显示操作按钮(编辑/配置),默认显示 */
6
+ showActions?: boolean;
7
+ /** 卡片整体是否可点击(点击触发 itemClick),默认不可点击 */
8
+ clickable?: boolean;
9
+ };
10
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
+ itemClick: (item: FlowItem) => any;
12
+ design: (item: FlowItem) => any;
13
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
14
+ onItemClick?: ((item: FlowItem) => any) | undefined;
15
+ onDesign?: ((item: FlowItem) => any) | undefined;
16
+ }>, {
17
+ showActions: boolean;
18
+ clickable: boolean;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;
@@ -0,0 +1,20 @@
1
+ /** 流程项 */
2
+ export interface FlowItem {
3
+ /** 唯一标识 */
4
+ id: string;
5
+ /** 流程编码(后端 code,编辑提交时回传) */
6
+ code?: string;
7
+ /** 流程名称 */
8
+ name: string;
9
+ /** 图标图片 URL(上传所得,png/jpg/svg 均可;为空时卡片兜底默认图标) */
10
+ icon?: string;
11
+ }
12
+ /** 流程分组 */
13
+ export interface FlowGroup {
14
+ /** 唯一标识 */
15
+ id: string;
16
+ /** 分组标题 */
17
+ title: string;
18
+ /** 组内流程项 */
19
+ items: FlowItem[];
20
+ }
@@ -0,0 +1,18 @@
1
+ export { default as FlowConfig } from './config/FlowConfig';
2
+ export { default as FlowConfigField } from './config/FlowConfigField';
3
+ export { default as FlowConfigMore } from './config/FlowConfigMore';
4
+ export { default as FlowLayout } from './timeline/FlowLayout';
5
+ export { default as FlowNode } from './timeline/FlowNode';
6
+ export { default as FlowAvatar } from './timeline/FlowAvatar';
7
+ export { default as ApprovalModal } from './timeline/ApprovalModal';
8
+ export { default as FlowList } from './flow-list/index';
9
+ export type { FlowGroup, FlowItem } from './flow-list/types';
10
+ export type { FlowNodeItem, FlowNodeStatus, FlowNodeUserRecord, FlowNodeType, FlowNodeUser, FlowApproveMode, FlowNodeAttachment } from './timeline/FlowNode';
11
+ export { fetchGetWflowConfigDetail, fetchGetWflowFlowNodes, fetchLaunchWflowFlow, fetchWflowUndoApprove, fetchWflowUndoReject } from './adapter/wflow';
12
+ export type { WflowConfigDetail, WflowFlowNodesParams, WflowFlowNode, WflowFlowNodesResult, WflowFlowLaunchParams, WflowFlowLaunchResult, WflowTodoField, WflowTodoNode, WflowTodoRecord, WflowTodoDetail, WflowUndoApproveParams, WflowUndoRejectParams, WflowUndoResult } from './adapter/wflow';
13
+ export { default as PersonSelector } from './person-selector/index';
14
+ export type { SelectableType, SelectedItem, ResolvedItem, DeptItem, RoleItem, PersonItem, PersonSelectorData } from './person-selector/types';
15
+ export { getRemoteOptions, isRemoteField } from './config/FlowConfigFlow/composables/useRemoteOptions';
16
+ export { createFlowUI, useFlowUI, FLOW_UI_KEY } from './provider';
17
+ export type { FlowUIOptions, FlowUIComponents, FlowUIConfig, FlowUIRequest, FlowUIRequestConfig, FlowUIResponse, PersonSelectorApi, PersonSelectorRawData } from './provider';
18
+ export type { UploadResource } from './timeline/types';