@opentinyvue/vue-flowchart 2.22.0 → 3.22.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 +125 -132
- package/lib/mobile-first.js +9 -50
- package/lib/pc.js +10 -51
- package/package.json +6 -6
- package/src/index.d.ts +32 -1
- package/src/mobile-first.vue.d.ts +36 -1
- package/src/node.vue.d.ts +34 -1
- package/src/pc.vue.d.ts +44 -1
package/lib/index.js
CHANGED
|
@@ -4,40 +4,11 @@ import { Clickoutside } 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
8
|
import { ResizeObserver } from '@opentinyvue/utils';
|
|
8
9
|
import '@opentinyvue/vue-theme/flowchart/index.css';
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
|
|
12
|
-
if (render) {
|
|
13
|
-
options.render = render;
|
|
14
|
-
options.staticRenderFns = staticRenderFns;
|
|
15
|
-
options._compiled = true;
|
|
16
|
-
}
|
|
17
|
-
var hook;
|
|
18
|
-
if (injectStyles) {
|
|
19
|
-
hook = injectStyles;
|
|
20
|
-
}
|
|
21
|
-
if (hook) {
|
|
22
|
-
if (options.functional) {
|
|
23
|
-
options._injectStyles = hook;
|
|
24
|
-
var originalRender = options.render;
|
|
25
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
26
|
-
hook.call(context);
|
|
27
|
-
return originalRender(h, context);
|
|
28
|
-
};
|
|
29
|
-
} else {
|
|
30
|
-
var existing = options.beforeCreate;
|
|
31
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
return {
|
|
35
|
-
exports: scriptExports,
|
|
36
|
-
options
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
var __vue2_script$2 = defineComponent({
|
|
11
|
+
var _sfc_main$2 = defineComponent({
|
|
41
12
|
emits: ["click-node", "click-link", "click-blank"],
|
|
42
13
|
props: [].concat(props, ["data", "config"]),
|
|
43
14
|
directives: directive({
|
|
@@ -155,17 +126,6 @@ var __vue2_script$2 = defineComponent({
|
|
|
155
126
|
})].concat(nodes));
|
|
156
127
|
}
|
|
157
128
|
});
|
|
158
|
-
var __vue2_render$1, __vue2_staticRenderFns$1;
|
|
159
|
-
var __cssModules$2 = {};
|
|
160
|
-
var __component__$2 = /* @__PURE__ */ normalizeComponent(__vue2_script$2, __vue2_render$1, __vue2_staticRenderFns$1, false, __vue2_injectStyles$2);
|
|
161
|
-
function __vue2_injectStyles$2(context) {
|
|
162
|
-
for (var o in __cssModules$2) {
|
|
163
|
-
this[o] = __cssModules$2[o];
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
var pc = /* @__PURE__ */ function() {
|
|
167
|
-
return __component__$2.exports;
|
|
168
|
-
}();
|
|
169
129
|
|
|
170
130
|
var getRenderLabel = function getRenderLabel2(_ref) {
|
|
171
131
|
var omitText = _ref.omitText, font = _ref.font, width = _ref.width, padding = _ref.padding, popoverProps = _ref.popoverProps;
|
|
@@ -311,7 +271,7 @@ var renderGroupVnodes = function renderGroupVnodes2(_ref5) {
|
|
|
311
271
|
return vnode;
|
|
312
272
|
});
|
|
313
273
|
};
|
|
314
|
-
var
|
|
274
|
+
var _sfc_main$1 = defineComponent({
|
|
315
275
|
emits: ["click-node", "click-link", "click-blank", "click-group"],
|
|
316
276
|
props: [].concat(props, ["data", "config"]),
|
|
317
277
|
setup: function setup$1(props2, context) {
|
|
@@ -427,17 +387,39 @@ var __vue2_script$1 = defineComponent({
|
|
|
427
387
|
}), condVnodes, groupVnodes));
|
|
428
388
|
}
|
|
429
389
|
});
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
var
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
390
|
+
|
|
391
|
+
function _createForOfIteratorHelperLoose(r, e) {
|
|
392
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
393
|
+
if (t) return (t = t.call(r)).next.bind(t);
|
|
394
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
395
|
+
t && (r = t);
|
|
396
|
+
var o = 0;
|
|
397
|
+
return function() {
|
|
398
|
+
return o >= r.length ? { done: true } : { done: false, value: r[o++] };
|
|
399
|
+
};
|
|
400
|
+
}
|
|
401
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
402
|
+
}
|
|
403
|
+
function _unsupportedIterableToArray(r, a) {
|
|
404
|
+
if (r) {
|
|
405
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
406
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
407
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
436
408
|
}
|
|
437
409
|
}
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
410
|
+
function _arrayLikeToArray(r, a) {
|
|
411
|
+
(null == a || a > r.length) && (a = r.length);
|
|
412
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
413
|
+
return n;
|
|
414
|
+
}
|
|
415
|
+
var _export_sfc = function _export_sfc2(sfc, props) {
|
|
416
|
+
var target = sfc.__vccOpts || sfc;
|
|
417
|
+
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
|
|
418
|
+
var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
|
|
419
|
+
target[key] = val;
|
|
420
|
+
}
|
|
421
|
+
return target;
|
|
422
|
+
};
|
|
441
423
|
|
|
442
424
|
function _extends() {
|
|
443
425
|
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|
|
@@ -452,12 +434,12 @@ var template = function template2(mode) {
|
|
|
452
434
|
var _process$env;
|
|
453
435
|
var tinyMode = typeof process === "object" ? (_process$env = process.env) == null ? void 0 : _process$env.TINY_MODE : null;
|
|
454
436
|
if ("pc" === (tinyMode || mode)) {
|
|
455
|
-
return
|
|
437
|
+
return _sfc_main$2;
|
|
456
438
|
}
|
|
457
439
|
if ("mobile-first" === (tinyMode || mode)) {
|
|
458
|
-
return
|
|
440
|
+
return _sfc_main$1;
|
|
459
441
|
}
|
|
460
|
-
return
|
|
442
|
+
return _sfc_main$2;
|
|
461
443
|
};
|
|
462
444
|
var $constants = {};
|
|
463
445
|
var createNode = function createNode2(name, status, label, date, items, row, col, other) {
|
|
@@ -586,7 +568,7 @@ var icons = {
|
|
|
586
568
|
other: iconDone
|
|
587
569
|
}
|
|
588
570
|
};
|
|
589
|
-
var
|
|
571
|
+
var _sfc_main = defineComponent({
|
|
590
572
|
props: [].concat(props, ["node", "config", "titleClass"]),
|
|
591
573
|
setup: function setup2(props2, context) {
|
|
592
574
|
return setup({
|
|
@@ -601,83 +583,94 @@ var __vue2_script = defineComponent({
|
|
|
601
583
|
});
|
|
602
584
|
}
|
|
603
585
|
});
|
|
604
|
-
var
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
"
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
586
|
+
var _hoisted_1 = ["title"];
|
|
587
|
+
function _sfc_render(_ctx, _cache, $props2, $setup2, $data, $options) {
|
|
588
|
+
return openBlock(), createElementBlock(
|
|
589
|
+
"div",
|
|
590
|
+
{
|
|
591
|
+
"data-tag": "tiny-flowchart-node",
|
|
592
|
+
key: _ctx.state.nodeName,
|
|
593
|
+
class: normalizeClass(["layout-" + _ctx.state.nodeLayout, "size-" + _ctx.state.nodeSize, "status-" + _ctx.state.nodeStatus, "absolute z-20 h-6", {
|
|
594
|
+
"sm:h-4": _ctx.state.sizeMini,
|
|
595
|
+
"sm:h-8": _ctx.state.sizeMedium
|
|
596
|
+
}]),
|
|
597
|
+
style: normalizeStyle({
|
|
598
|
+
width: _ctx.state.nodeWidth + "px"
|
|
599
|
+
})
|
|
616
600
|
},
|
|
617
|
-
|
|
618
|
-
"
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
601
|
+
[createElementVNode(
|
|
602
|
+
"div",
|
|
603
|
+
{
|
|
604
|
+
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 cursor-pointer", {
|
|
606
|
+
"sm:w-2 sm:h-2": _ctx.state.icon.size === "mini",
|
|
607
|
+
"sm:w-6 sm:h-6": _ctx.state.icon.size === "medium"
|
|
608
|
+
}])
|
|
609
|
+
},
|
|
610
|
+
[(openBlock(), createBlock(resolveDynamicComponent(_ctx.state.icon.svg()), {
|
|
611
|
+
"custom-class": ["w-4 h-4 inline-block", {
|
|
612
|
+
"sm:w-2 sm:h-2": _ctx.state.icon.size === "mini",
|
|
613
|
+
"sm:w-6 sm:h-6": _ctx.state.icon.size === "medium"
|
|
614
|
+
}]
|
|
615
|
+
}, null, 8, ["custom-class"]))],
|
|
616
|
+
2
|
|
617
|
+
/* CLASS */
|
|
618
|
+
), createElementVNode(
|
|
619
|
+
"div",
|
|
620
|
+
{
|
|
621
|
+
ref: "title",
|
|
622
|
+
class: normalizeClass(_ctx.m("absolute z-0 translate-x-1", _ctx.state.layUpdown ? "top-6" : "left-6 translate-y-1", _ctx.state.layUpdown ? {
|
|
623
|
+
"sm:top-4": _ctx.state.sizeMini,
|
|
624
|
+
"sm:top-8": _ctx.state.sizeMedium
|
|
625
|
+
} : {
|
|
626
|
+
"sm:left-4": _ctx.state.sizeMini,
|
|
627
|
+
"sm:left-8": _ctx.state.sizeMedium
|
|
628
|
+
}, _ctx.titleClass || "")),
|
|
629
|
+
style: normalizeStyle({
|
|
630
|
+
maxWidth: _ctx.state.titleMaxWidth + "px",
|
|
631
|
+
left: _ctx.state.layUpdown ? "-" + _ctx.state.posLeft + "px" : ""
|
|
632
|
+
})
|
|
633
|
+
},
|
|
634
|
+
[(openBlock(), createElementBlock(
|
|
635
|
+
Fragment,
|
|
636
|
+
null,
|
|
637
|
+
renderList(["title", "subtitle", "auxi"], function(key) {
|
|
638
|
+
return openBlock(), createElementBlock(
|
|
639
|
+
Fragment,
|
|
640
|
+
null,
|
|
641
|
+
[_ctx.state[key].show ? (openBlock(), createElementBlock("div", {
|
|
642
|
+
key,
|
|
643
|
+
title: _ctx.state[key].text,
|
|
644
|
+
class: normalizeClass(["truncate", _ctx.state.layUpdown ? "text-center" : "text-left", key === "title" && _ctx.state.sizeMedium ? "text-sm" : "text-xs", _ctx.state.isSmall ? {
|
|
645
|
+
"leading-5": key === "title",
|
|
646
|
+
"leading-4": key !== "title"
|
|
647
|
+
} : {
|
|
648
|
+
"leading-6": key === "title" && _ctx.state.sizeMedium,
|
|
649
|
+
"leading-5": key !== "title" && _ctx.state.sizeMedium || key === "title" && _ctx.state.sizeSmall,
|
|
650
|
+
"leading-4": key !== "title" && _ctx.state.sizeSmall || _ctx.state.sizeMini
|
|
651
|
+
}, {
|
|
652
|
+
"text-color-icon-focus": _ctx.state.statOngoing,
|
|
653
|
+
"text-color-text-primary": key === "title" && _ctx.state.statCompleted,
|
|
654
|
+
"text-color-error": key === "title" && _ctx.state.statFail,
|
|
655
|
+
"text-color-icon-secondary": key === "title" && _ctx.state.statNotStarted,
|
|
656
|
+
"text-color-icon-placeholder": key !== "title" && !_ctx.state.statOngoing
|
|
657
|
+
}])
|
|
658
|
+
}, toDisplayString(_ctx.state[key].text), 11, _hoisted_1)) : createCommentVNode("v-if", true)],
|
|
659
|
+
64
|
|
660
|
+
/* STABLE_FRAGMENT */
|
|
661
|
+
);
|
|
662
|
+
}),
|
|
663
|
+
64
|
|
664
|
+
/* STABLE_FRAGMENT */
|
|
665
|
+
))],
|
|
666
|
+
6
|
|
667
|
+
/* CLASS, STYLE */
|
|
668
|
+
)],
|
|
669
|
+
6
|
|
670
|
+
/* CLASS, STYLE */
|
|
671
|
+
);
|
|
677
672
|
}
|
|
678
|
-
var Node = /* @__PURE__ */
|
|
679
|
-
return __component__.exports;
|
|
680
|
-
}();
|
|
673
|
+
var Node = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
681
674
|
var resizeMixin = function resizeMixin2(_ref) {
|
|
682
675
|
var apiPrefix = _ref.apiPrefix, refName = _ref.refName, nodeWrapperSize = _ref.nodeWrapperSize;
|
|
683
676
|
apiPrefix = apiPrefix || "rszmx";
|
|
@@ -716,7 +709,7 @@ var resizeMixin = function resizeMixin2(_ref) {
|
|
|
716
709
|
}
|
|
717
710
|
};
|
|
718
711
|
};
|
|
719
|
-
var version = "
|
|
712
|
+
var version = "3.22.0";
|
|
720
713
|
Flowchart.install = function(Vue) {
|
|
721
714
|
Vue.component(Flowchart.name, Flowchart);
|
|
722
715
|
};
|
package/lib/mobile-first.js
CHANGED
|
@@ -1,37 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { defineComponent, props, setup, emitter,
|
|
3
|
-
import Popover from
|
|
4
|
-
|
|
5
|
-
function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
|
|
6
|
-
var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
|
|
7
|
-
if (render) {
|
|
8
|
-
options.render = render;
|
|
9
|
-
options.staticRenderFns = staticRenderFns;
|
|
10
|
-
options._compiled = true;
|
|
11
|
-
}
|
|
12
|
-
var hook;
|
|
13
|
-
if (injectStyles) {
|
|
14
|
-
hook = injectStyles;
|
|
15
|
-
}
|
|
16
|
-
if (hook) {
|
|
17
|
-
if (options.functional) {
|
|
18
|
-
options._injectStyles = hook;
|
|
19
|
-
var originalRender = options.render;
|
|
20
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
21
|
-
hook.call(context);
|
|
22
|
-
return originalRender(h, context);
|
|
23
|
-
};
|
|
24
|
-
} else {
|
|
25
|
-
var existing = options.beforeCreate;
|
|
26
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
return {
|
|
30
|
-
exports: scriptExports,
|
|
31
|
-
options
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
|
|
1
|
+
import { api, renderless } from "@opentinyvue/vue-renderless/flowchart/vue";
|
|
2
|
+
import { defineComponent, props, h, setup as _setup, emitter, isVue3 } from "@opentinyvue/vue-common";
|
|
3
|
+
import Popover from "@opentinyvue/vue-popover";
|
|
35
4
|
var getRenderLabel = function getRenderLabel2(_ref) {
|
|
36
5
|
var omitText = _ref.omitText, font = _ref.font, width = _ref.width, padding = _ref.padding, popoverProps = _ref.popoverProps;
|
|
37
6
|
return function(label, type) {
|
|
@@ -176,11 +145,11 @@ var renderGroupVnodes = function renderGroupVnodes2(_ref5) {
|
|
|
176
145
|
return vnode;
|
|
177
146
|
});
|
|
178
147
|
};
|
|
179
|
-
var
|
|
148
|
+
var _sfc_main = defineComponent({
|
|
180
149
|
emits: ["click-node", "click-link", "click-blank", "click-group"],
|
|
181
150
|
props: [].concat(props, ["data", "config"]),
|
|
182
|
-
setup: function setup
|
|
183
|
-
return
|
|
151
|
+
setup: function setup(props2, context) {
|
|
152
|
+
return _setup({
|
|
184
153
|
props: props2,
|
|
185
154
|
context,
|
|
186
155
|
renderless,
|
|
@@ -292,16 +261,6 @@ var __vue2_script = defineComponent({
|
|
|
292
261
|
}), condVnodes, groupVnodes));
|
|
293
262
|
}
|
|
294
263
|
});
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
function __vue2_injectStyles(context) {
|
|
299
|
-
for (var o in __cssModules) {
|
|
300
|
-
this[o] = __cssModules[o];
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
var mobileFirst = /* @__PURE__ */ function() {
|
|
304
|
-
return __component__.exports;
|
|
305
|
-
}();
|
|
306
|
-
|
|
307
|
-
export { mobileFirst as default };
|
|
264
|
+
export {
|
|
265
|
+
_sfc_main as default
|
|
266
|
+
};
|
package/lib/pc.js
CHANGED
|
@@ -1,46 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Clickoutside } from
|
|
3
|
-
import { defineComponent, props,
|
|
4
|
-
import { IconYes, IconClose } from
|
|
5
|
-
|
|
6
|
-
function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
|
|
7
|
-
var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
|
|
8
|
-
if (render) {
|
|
9
|
-
options.render = render;
|
|
10
|
-
options.staticRenderFns = staticRenderFns;
|
|
11
|
-
options._compiled = true;
|
|
12
|
-
}
|
|
13
|
-
var hook;
|
|
14
|
-
if (injectStyles) {
|
|
15
|
-
hook = injectStyles;
|
|
16
|
-
}
|
|
17
|
-
if (hook) {
|
|
18
|
-
if (options.functional) {
|
|
19
|
-
options._injectStyles = hook;
|
|
20
|
-
var originalRender = options.render;
|
|
21
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
22
|
-
hook.call(context);
|
|
23
|
-
return originalRender(h, context);
|
|
24
|
-
};
|
|
25
|
-
} else {
|
|
26
|
-
var existing = options.beforeCreate;
|
|
27
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
return {
|
|
31
|
-
exports: scriptExports,
|
|
32
|
-
options
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
var __vue2_script = defineComponent({
|
|
1
|
+
import { api, renderless } from "@opentinyvue/vue-renderless/flowchart/vue";
|
|
2
|
+
import { Clickoutside } from "@opentinyvue/vue-directive";
|
|
3
|
+
import { defineComponent, directive, props, h, setup as _setup, emitter } from "@opentinyvue/vue-common";
|
|
4
|
+
import { IconYes, IconClose } from "@opentinyvue/vue-icon";
|
|
5
|
+
var _sfc_main = defineComponent({
|
|
37
6
|
emits: ["click-node", "click-link", "click-blank"],
|
|
38
7
|
props: [].concat(props, ["data", "config"]),
|
|
39
8
|
directives: directive({
|
|
40
9
|
Clickoutside
|
|
41
10
|
}),
|
|
42
|
-
setup: function setup
|
|
43
|
-
return
|
|
11
|
+
setup: function setup(props2, context) {
|
|
12
|
+
return _setup({
|
|
44
13
|
props: props2,
|
|
45
14
|
context,
|
|
46
15
|
renderless,
|
|
@@ -151,16 +120,6 @@ var __vue2_script = defineComponent({
|
|
|
151
120
|
})].concat(nodes));
|
|
152
121
|
}
|
|
153
122
|
});
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
function __vue2_injectStyles(context) {
|
|
158
|
-
for (var o in __cssModules) {
|
|
159
|
-
this[o] = __cssModules[o];
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
var pc = /* @__PURE__ */ function() {
|
|
163
|
-
return __component__.exports;
|
|
164
|
-
}();
|
|
165
|
-
|
|
166
|
-
export { pc as default };
|
|
123
|
+
export {
|
|
124
|
+
_sfc_main as default
|
|
125
|
+
};
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentinyvue/vue-flowchart",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "3.22.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": "~
|
|
12
|
-
"@opentinyvue/vue-common": "~
|
|
13
|
-
"@opentinyvue/vue-directive": "~
|
|
14
|
-
"@opentinyvue/vue-icon": "~
|
|
15
|
-
"@opentinyvue/vue-popover": "~
|
|
11
|
+
"@opentinyvue/utils": "~3.22.0",
|
|
12
|
+
"@opentinyvue/vue-common": "~3.22.0",
|
|
13
|
+
"@opentinyvue/vue-directive": "~3.22.0",
|
|
14
|
+
"@opentinyvue/vue-icon": "~3.22.0",
|
|
15
|
+
"@opentinyvue/vue-popover": "~3.22.0",
|
|
16
16
|
"@opentinyvue/vue-renderless": "~3.22.0",
|
|
17
17
|
"@opentinyvue/vue-theme": "~3.22.0"
|
|
18
18
|
},
|
package/src/index.d.ts
CHANGED
|
@@ -76,5 +76,36 @@ export declare const createConfig: () => {
|
|
|
76
76
|
radius: number;
|
|
77
77
|
thin: boolean;
|
|
78
78
|
};
|
|
79
|
-
declare const _default:
|
|
79
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
80
|
+
_constants: {
|
|
81
|
+
type: ObjectConstructor;
|
|
82
|
+
default: () => {};
|
|
83
|
+
};
|
|
84
|
+
data: ObjectConstructor;
|
|
85
|
+
config: ObjectConstructor;
|
|
86
|
+
tiny_mode: StringConstructor;
|
|
87
|
+
tiny_mode_root: BooleanConstructor;
|
|
88
|
+
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
89
|
+
tiny_renderless: FunctionConstructor;
|
|
90
|
+
tiny_theme: StringConstructor;
|
|
91
|
+
tiny_chart_theme: ObjectConstructor;
|
|
92
|
+
}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
|
|
93
|
+
[key: string]: any;
|
|
94
|
+
}>, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
|
|
95
|
+
_constants: {
|
|
96
|
+
type: ObjectConstructor;
|
|
97
|
+
default: () => {};
|
|
98
|
+
};
|
|
99
|
+
data: ObjectConstructor;
|
|
100
|
+
config: ObjectConstructor;
|
|
101
|
+
tiny_mode: StringConstructor;
|
|
102
|
+
tiny_mode_root: BooleanConstructor;
|
|
103
|
+
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
104
|
+
tiny_renderless: FunctionConstructor;
|
|
105
|
+
tiny_theme: StringConstructor;
|
|
106
|
+
tiny_chart_theme: ObjectConstructor;
|
|
107
|
+
}>>, {
|
|
108
|
+
tiny_mode_root: boolean;
|
|
109
|
+
_constants: Record<string, any>;
|
|
110
|
+
}, {}>;
|
|
80
111
|
export default _default;
|
|
@@ -1,2 +1,37 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
2
|
+
data?: any;
|
|
3
|
+
tiny_mode?: any;
|
|
4
|
+
tiny_mode_root?: any;
|
|
5
|
+
tiny_template?: any;
|
|
6
|
+
tiny_renderless?: any;
|
|
7
|
+
_constants?: any;
|
|
8
|
+
tiny_theme?: any;
|
|
9
|
+
tiny_chart_theme?: any;
|
|
10
|
+
config?: any;
|
|
11
|
+
}>, 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
|
+
data?: any;
|
|
13
|
+
tiny_mode?: any;
|
|
14
|
+
tiny_mode_root?: any;
|
|
15
|
+
tiny_template?: any;
|
|
16
|
+
tiny_renderless?: any;
|
|
17
|
+
_constants?: any;
|
|
18
|
+
tiny_theme?: any;
|
|
19
|
+
tiny_chart_theme?: any;
|
|
20
|
+
config?: any;
|
|
21
|
+
}>>> & {
|
|
22
|
+
"onClick-node"?: ((...args: any[]) => any) | undefined;
|
|
23
|
+
"onClick-link"?: ((...args: any[]) => any) | undefined;
|
|
24
|
+
"onClick-blank"?: ((...args: any[]) => any) | undefined;
|
|
25
|
+
"onClick-group"?: ((...args: any[]) => any) | undefined;
|
|
26
|
+
}, {
|
|
27
|
+
readonly data?: any;
|
|
28
|
+
readonly tiny_mode?: any;
|
|
29
|
+
readonly tiny_mode_root?: any;
|
|
30
|
+
readonly tiny_template?: any;
|
|
31
|
+
readonly tiny_renderless?: any;
|
|
32
|
+
readonly _constants?: any;
|
|
33
|
+
readonly tiny_theme?: any;
|
|
34
|
+
readonly tiny_chart_theme?: any;
|
|
35
|
+
readonly config?: any;
|
|
36
|
+
}, {}>;
|
|
2
37
|
export default _default;
|
package/src/node.vue.d.ts
CHANGED
|
@@ -1,2 +1,35 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
2
|
+
tiny_mode?: any;
|
|
3
|
+
tiny_mode_root?: any;
|
|
4
|
+
tiny_template?: any;
|
|
5
|
+
tiny_renderless?: any;
|
|
6
|
+
_constants?: any;
|
|
7
|
+
tiny_theme?: any;
|
|
8
|
+
tiny_chart_theme?: any;
|
|
9
|
+
titleClass?: any;
|
|
10
|
+
config?: any;
|
|
11
|
+
node?: any;
|
|
12
|
+
}>, 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
|
+
tiny_mode?: any;
|
|
14
|
+
tiny_mode_root?: any;
|
|
15
|
+
tiny_template?: any;
|
|
16
|
+
tiny_renderless?: any;
|
|
17
|
+
_constants?: any;
|
|
18
|
+
tiny_theme?: any;
|
|
19
|
+
tiny_chart_theme?: any;
|
|
20
|
+
titleClass?: any;
|
|
21
|
+
config?: any;
|
|
22
|
+
node?: any;
|
|
23
|
+
}>>>, {
|
|
24
|
+
readonly tiny_mode?: any;
|
|
25
|
+
readonly tiny_mode_root?: any;
|
|
26
|
+
readonly tiny_template?: any;
|
|
27
|
+
readonly tiny_renderless?: any;
|
|
28
|
+
readonly _constants?: any;
|
|
29
|
+
readonly tiny_theme?: any;
|
|
30
|
+
readonly tiny_chart_theme?: any;
|
|
31
|
+
readonly titleClass?: any;
|
|
32
|
+
readonly config?: any;
|
|
33
|
+
readonly node?: any;
|
|
34
|
+
}, {}>;
|
|
2
35
|
export default _default;
|
package/src/pc.vue.d.ts
CHANGED
|
@@ -1,2 +1,45 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
2
|
+
data?: any;
|
|
3
|
+
tiny_mode?: any;
|
|
4
|
+
tiny_mode_root?: any;
|
|
5
|
+
tiny_template?: any;
|
|
6
|
+
tiny_renderless?: any;
|
|
7
|
+
_constants?: any;
|
|
8
|
+
tiny_theme?: any;
|
|
9
|
+
tiny_chart_theme?: any;
|
|
10
|
+
config?: any;
|
|
11
|
+
}>, {
|
|
12
|
+
t: (this: any, path: any, options?: any) => any;
|
|
13
|
+
vm: any;
|
|
14
|
+
f: (props: any, attrs?: {}) => {};
|
|
15
|
+
a: (attrs: any, filters: any, include: any) => {};
|
|
16
|
+
d: (props: any) => void;
|
|
17
|
+
dp: (props: any) => void;
|
|
18
|
+
gcls: (key: any) => any;
|
|
19
|
+
m: (...cssClasses: any[]) => string;
|
|
20
|
+
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("click-node" | "click-link" | "click-blank")[], "click-node" | "click-link" | "click-blank", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
21
|
+
data?: any;
|
|
22
|
+
tiny_mode?: any;
|
|
23
|
+
tiny_mode_root?: any;
|
|
24
|
+
tiny_template?: any;
|
|
25
|
+
tiny_renderless?: any;
|
|
26
|
+
_constants?: any;
|
|
27
|
+
tiny_theme?: any;
|
|
28
|
+
tiny_chart_theme?: any;
|
|
29
|
+
config?: any;
|
|
30
|
+
}>>> & {
|
|
31
|
+
"onClick-node"?: ((...args: any[]) => any) | undefined;
|
|
32
|
+
"onClick-link"?: ((...args: any[]) => any) | undefined;
|
|
33
|
+
"onClick-blank"?: ((...args: any[]) => any) | undefined;
|
|
34
|
+
}, {
|
|
35
|
+
readonly data?: any;
|
|
36
|
+
readonly tiny_mode?: any;
|
|
37
|
+
readonly tiny_mode_root?: any;
|
|
38
|
+
readonly tiny_template?: any;
|
|
39
|
+
readonly tiny_renderless?: any;
|
|
40
|
+
readonly _constants?: any;
|
|
41
|
+
readonly tiny_theme?: any;
|
|
42
|
+
readonly tiny_chart_theme?: any;
|
|
43
|
+
readonly config?: any;
|
|
44
|
+
}, {}>;
|
|
2
45
|
export default _default;
|