@opentinyvue/vue-flowchart 3.22.1 → 3.24.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/lib/index.js +37 -23
- package/package.json +8 -8
- package/src/index.d.ts +2 -0
- package/src/mobile-first.vue.d.ts +3 -0
- package/src/node.vue.d.ts +6 -0
- package/src/pc.vue.d.ts +3 -0
package/lib/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent, props, directive, setup, emitter, h, isVue3, $prefix, $props, $setup } from '@opentinyvue/vue-common';
|
|
2
2
|
import { renderless, api } from '@opentinyvue/vue-renderless/flowchart/vue';
|
|
3
|
-
import { Clickoutside } from '@opentinyvue/vue-directive';
|
|
3
|
+
import { Clickoutside, AutoTip } from '@opentinyvue/vue-directive';
|
|
4
4
|
import { IconYes, IconClose, iconNotStartedMini, iconNotStarted, iconOnGoingMini, iconOnGoing, iconExceptionMiniO, iconExceptionO, iconDoneMini, iconDone } from '@opentinyvue/vue-icon';
|
|
5
5
|
import Popover from '@opentinyvue/vue-popover';
|
|
6
6
|
import { renderless as renderless$1, api as api$1 } from '@opentinyvue/vue-renderless/flowchart/node';
|
|
7
|
-
import { openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, resolveDynamicComponent, Fragment, renderList, toDisplayString, createCommentVNode } from 'vue';
|
|
7
|
+
import { resolveDirective, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, resolveDynamicComponent, Fragment, renderList, withDirectives, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
|
|
8
8
|
import { ResizeObserver } from '@opentinyvue/utils';
|
|
9
9
|
import '@opentinyvue/vue-theme/flowchart/index.css';
|
|
10
10
|
|
|
@@ -569,7 +569,10 @@ var icons = {
|
|
|
569
569
|
}
|
|
570
570
|
};
|
|
571
571
|
var _sfc_main = defineComponent({
|
|
572
|
-
props: [].concat(props, ["node", "config", "titleClass"]),
|
|
572
|
+
props: [].concat(props, ["node", "config", "titleClass", "cursorPointerFn"]),
|
|
573
|
+
directives: {
|
|
574
|
+
AutoTip
|
|
575
|
+
},
|
|
573
576
|
setup: function setup2(props2, context) {
|
|
574
577
|
return setup({
|
|
575
578
|
props: props2,
|
|
@@ -583,8 +586,8 @@ var _sfc_main = defineComponent({
|
|
|
583
586
|
});
|
|
584
587
|
}
|
|
585
588
|
});
|
|
586
|
-
var _hoisted_1 = ["title"];
|
|
587
589
|
function _sfc_render(_ctx, _cache, $props2, $setup2, $data, $options) {
|
|
590
|
+
var _directive_auto_tip = resolveDirective("auto-tip");
|
|
588
591
|
return openBlock(), createElementBlock(
|
|
589
592
|
"div",
|
|
590
593
|
{
|
|
@@ -602,7 +605,9 @@ function _sfc_render(_ctx, _cache, $props2, $setup2, $data, $options) {
|
|
|
602
605
|
"div",
|
|
603
606
|
{
|
|
604
607
|
ref: "icon",
|
|
605
|
-
class: normalizeClass(["w-4 h-4 absolute z-0 rounded-full flex items-center justify-center", "translate-x-1 translate-y-1 text-base
|
|
608
|
+
class: normalizeClass(["w-4 h-4 absolute z-0 rounded-full flex items-center justify-center", "translate-x-1 translate-y-1 text-base", {
|
|
609
|
+
"cursor-pointer": _ctx.cursorPointerFn ? _ctx.cursorPointerFn(_ctx.state) : true
|
|
610
|
+
}, {
|
|
606
611
|
"sm:w-2 sm:h-2": _ctx.state.icon.size === "mini",
|
|
607
612
|
"sm:w-6 sm:h-6": _ctx.state.icon.size === "medium"
|
|
608
613
|
}])
|
|
@@ -638,24 +643,33 @@ function _sfc_render(_ctx, _cache, $props2, $setup2, $data, $options) {
|
|
|
638
643
|
return openBlock(), createElementBlock(
|
|
639
644
|
Fragment,
|
|
640
645
|
null,
|
|
641
|
-
[_ctx.state[key].show ? (openBlock(), createElementBlock(
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
"
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
646
|
+
[_ctx.state[key].show ? withDirectives((openBlock(), createElementBlock(
|
|
647
|
+
"div",
|
|
648
|
+
{
|
|
649
|
+
key,
|
|
650
|
+
class: normalizeClass(["truncate", _ctx.state.layUpdown ? "text-center" : "text-left", key === "title" && _ctx.state.sizeMedium ? "text-sm" : "text-xs", _ctx.state.isSmall ? {
|
|
651
|
+
"leading-5": key === "title",
|
|
652
|
+
"leading-4": key !== "title"
|
|
653
|
+
} : {
|
|
654
|
+
"leading-6": key === "title" && _ctx.state.sizeMedium,
|
|
655
|
+
"leading-5": key !== "title" && _ctx.state.sizeMedium || key === "title" && _ctx.state.sizeSmall,
|
|
656
|
+
"leading-4": key !== "title" && _ctx.state.sizeSmall || _ctx.state.sizeMini
|
|
657
|
+
}, {
|
|
658
|
+
"text-color-icon-focus": _ctx.state.statOngoing,
|
|
659
|
+
"text-color-text-primary": key === "title" && _ctx.state.statCompleted,
|
|
660
|
+
"text-color-error": key === "title" && _ctx.state.statFail,
|
|
661
|
+
"text-color-icon-secondary": key === "title" && _ctx.state.statNotStarted,
|
|
662
|
+
"text-color-icon-placeholder": key !== "title" && !_ctx.state.statOngoing
|
|
663
|
+
}])
|
|
664
|
+
},
|
|
665
|
+
[createTextVNode(
|
|
666
|
+
toDisplayString(_ctx.state[key].text),
|
|
667
|
+
1
|
|
668
|
+
/* TEXT */
|
|
669
|
+
)],
|
|
670
|
+
2
|
|
671
|
+
/* CLASS */
|
|
672
|
+
)), [[_directive_auto_tip]]) : createCommentVNode("v-if", true)],
|
|
659
673
|
64
|
|
660
674
|
/* STABLE_FRAGMENT */
|
|
661
675
|
);
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentinyvue/vue-flowchart",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.24.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"main": "./lib/index.js",
|
|
9
9
|
"module": "./lib/index.js",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@opentinyvue/utils": "~3.
|
|
12
|
-
"@opentinyvue/vue-common": "~3.
|
|
13
|
-
"@opentinyvue/vue-directive": "~3.
|
|
14
|
-
"@opentinyvue/vue-icon": "~3.
|
|
15
|
-
"@opentinyvue/vue-popover": "~3.
|
|
16
|
-
"@opentinyvue/vue-renderless": "~3.
|
|
17
|
-
"@opentinyvue/vue-theme": "~3.
|
|
11
|
+
"@opentinyvue/utils": "~3.24.0",
|
|
12
|
+
"@opentinyvue/vue-common": "~3.24.0",
|
|
13
|
+
"@opentinyvue/vue-directive": "~3.24.0",
|
|
14
|
+
"@opentinyvue/vue-icon": "~3.24.0",
|
|
15
|
+
"@opentinyvue/vue-popover": "~3.24.0",
|
|
16
|
+
"@opentinyvue/vue-renderless": "~3.24.0",
|
|
17
|
+
"@opentinyvue/vue-theme": "~3.24.0"
|
|
18
18
|
},
|
|
19
19
|
"types": "index.d.ts",
|
|
20
20
|
"scripts": {
|
package/src/index.d.ts
CHANGED
|
@@ -88,6 +88,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
88
88
|
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
89
89
|
tiny_renderless: FunctionConstructor;
|
|
90
90
|
tiny_theme: StringConstructor;
|
|
91
|
+
tiny_mcp_config: ObjectConstructor;
|
|
91
92
|
tiny_chart_theme: ObjectConstructor;
|
|
92
93
|
}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
|
|
93
94
|
[key: string]: any;
|
|
@@ -103,6 +104,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
103
104
|
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
104
105
|
tiny_renderless: FunctionConstructor;
|
|
105
106
|
tiny_theme: StringConstructor;
|
|
107
|
+
tiny_mcp_config: ObjectConstructor;
|
|
106
108
|
tiny_chart_theme: ObjectConstructor;
|
|
107
109
|
}>>, {
|
|
108
110
|
tiny_mode_root: boolean;
|
|
@@ -7,6 +7,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
7
7
|
_constants?: any;
|
|
8
8
|
tiny_theme?: any;
|
|
9
9
|
tiny_chart_theme?: any;
|
|
10
|
+
tiny_mcp_config?: any;
|
|
10
11
|
config?: any;
|
|
11
12
|
}>, any, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("click-node" | "click-link" | "click-blank" | "click-group")[], "click-node" | "click-link" | "click-blank" | "click-group", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
12
13
|
data?: any;
|
|
@@ -17,6 +18,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
17
18
|
_constants?: any;
|
|
18
19
|
tiny_theme?: any;
|
|
19
20
|
tiny_chart_theme?: any;
|
|
21
|
+
tiny_mcp_config?: any;
|
|
20
22
|
config?: any;
|
|
21
23
|
}>>> & {
|
|
22
24
|
"onClick-node"?: ((...args: any[]) => any) | undefined;
|
|
@@ -32,6 +34,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
32
34
|
readonly _constants?: any;
|
|
33
35
|
readonly tiny_theme?: any;
|
|
34
36
|
readonly tiny_chart_theme?: any;
|
|
37
|
+
readonly tiny_mcp_config?: any;
|
|
35
38
|
readonly config?: any;
|
|
36
39
|
}, {}>;
|
|
37
40
|
export default _default;
|
package/src/node.vue.d.ts
CHANGED
|
@@ -6,9 +6,11 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
6
6
|
_constants?: any;
|
|
7
7
|
tiny_theme?: any;
|
|
8
8
|
tiny_chart_theme?: any;
|
|
9
|
+
tiny_mcp_config?: any;
|
|
9
10
|
titleClass?: any;
|
|
10
11
|
config?: any;
|
|
11
12
|
node?: any;
|
|
13
|
+
cursorPointerFn?: any;
|
|
12
14
|
}>, any, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
13
15
|
tiny_mode?: any;
|
|
14
16
|
tiny_mode_root?: any;
|
|
@@ -17,9 +19,11 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
17
19
|
_constants?: any;
|
|
18
20
|
tiny_theme?: any;
|
|
19
21
|
tiny_chart_theme?: any;
|
|
22
|
+
tiny_mcp_config?: any;
|
|
20
23
|
titleClass?: any;
|
|
21
24
|
config?: any;
|
|
22
25
|
node?: any;
|
|
26
|
+
cursorPointerFn?: any;
|
|
23
27
|
}>>>, {
|
|
24
28
|
readonly tiny_mode?: any;
|
|
25
29
|
readonly tiny_mode_root?: any;
|
|
@@ -28,8 +32,10 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
28
32
|
readonly _constants?: any;
|
|
29
33
|
readonly tiny_theme?: any;
|
|
30
34
|
readonly tiny_chart_theme?: any;
|
|
35
|
+
readonly tiny_mcp_config?: any;
|
|
31
36
|
readonly titleClass?: any;
|
|
32
37
|
readonly config?: any;
|
|
33
38
|
readonly node?: any;
|
|
39
|
+
readonly cursorPointerFn?: any;
|
|
34
40
|
}, {}>;
|
|
35
41
|
export default _default;
|
package/src/pc.vue.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
7
7
|
_constants?: any;
|
|
8
8
|
tiny_theme?: any;
|
|
9
9
|
tiny_chart_theme?: any;
|
|
10
|
+
tiny_mcp_config?: any;
|
|
10
11
|
config?: any;
|
|
11
12
|
}>, {
|
|
12
13
|
t: (this: any, path: any, options?: any) => any;
|
|
@@ -26,6 +27,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
26
27
|
_constants?: any;
|
|
27
28
|
tiny_theme?: any;
|
|
28
29
|
tiny_chart_theme?: any;
|
|
30
|
+
tiny_mcp_config?: any;
|
|
29
31
|
config?: any;
|
|
30
32
|
}>>> & {
|
|
31
33
|
"onClick-node"?: ((...args: any[]) => any) | undefined;
|
|
@@ -40,6 +42,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
40
42
|
readonly _constants?: any;
|
|
41
43
|
readonly tiny_theme?: any;
|
|
42
44
|
readonly tiny_chart_theme?: any;
|
|
45
|
+
readonly tiny_mcp_config?: any;
|
|
43
46
|
readonly config?: any;
|
|
44
47
|
}, {}>;
|
|
45
48
|
export default _default;
|