workflow-editor 0.0.81-up-tmp2 → 0.0.81-up-tmp5
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/index.full.min.js +3477 -3210
- package/dist/style.css +526 -1
- package/es/_virtual/_plugin-vue_export-helper.mjs +6 -6
- package/es/index.mjs +14 -16
- package/es/plugins/formValidatorUtil.mjs +187 -372
- package/es/plugins/index.mjs +5 -7
- package/es/style.css +525 -1
- package/es/workflow-editor/index.mjs +4 -9
- package/lib/_virtual/_plugin-vue_export-helper.cjs +7 -1
- package/lib/index.cjs +8 -1
- package/lib/plugins/formValidatorUtil.cjs +203 -1
- package/lib/plugins/index.cjs +5 -1
- package/lib/style.css +525 -1
- package/lib/workflow-editor/index.cjs +7 -1
- package/package.json +3 -2
- package/vite.config.js +56 -9
- package/es/_virtual/FileSaver.min.mjs +0 -4
- package/es/_virtual/___vite-browser-external.mjs +0 -6
- package/es/_virtual/__vite-browser-external.mjs +0 -4
- package/es/_virtual/_commonjsHelpers.mjs +0 -30
- package/es/_virtual/clipboard.mjs +0 -4
- package/es/_virtual/dayjs.min.mjs +0 -4
- package/es/_virtual/index.mjs +0 -4
- package/es/_virtual/nprogress.mjs +0 -4
- package/es/_virtual/prism.mjs +0 -4
- package/es/_virtual/sax.mjs +0 -4
- package/es/_virtual/string_decoder.mjs +0 -4
- package/es/_virtual/tinymce.mjs +0 -4
- package/es/_virtual/weekOfYear.mjs +0 -4
- package/lib/_virtual/FileSaver.min.cjs +0 -1
- package/lib/_virtual/___vite-browser-external.cjs +0 -1
- package/lib/_virtual/__vite-browser-external.cjs +0 -1
- package/lib/_virtual/_commonjsHelpers.cjs +0 -1
- package/lib/_virtual/clipboard.cjs +0 -1
- package/lib/_virtual/dayjs.min.cjs +0 -1
- package/lib/_virtual/index.cjs +0 -1
- package/lib/_virtual/nprogress.cjs +0 -1
- package/lib/_virtual/prism.cjs +0 -1
- package/lib/_virtual/sax.cjs +0 -1
- package/lib/_virtual/string_decoder.cjs +0 -1
- package/lib/_virtual/tinymce.cjs +0 -1
- package/lib/_virtual/weekOfYear.cjs +0 -1
|
@@ -1 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
const o = require("./src/workflow-editor.vue.cjs"), r = require("./src/workflow-history.vue.cjs");
|
|
3
|
+
o.install = function(e2) {
|
|
4
|
+
e2.component(o.name, o), e2.component(r.name, r);
|
|
5
|
+
};
|
|
6
|
+
const e = { WorkflowEditor: o, WorkflowHistory: r };
|
|
7
|
+
module.exports = e;
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "workflow-editor",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.81-up-
|
|
4
|
+
"version": "0.0.81-up-tmp5",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.cjs",
|
|
7
7
|
"module": "./es/index.mjs",
|
|
8
8
|
"scripts": {
|
|
9
|
-
"lib": "vite build",
|
|
9
|
+
"lib": "vite build --mode production",
|
|
10
10
|
"preview": "vite preview"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"font-awesome": "^4.7.0",
|
|
24
24
|
"nprogress": "^0.2.0",
|
|
25
25
|
"pinia": "^2.1.7",
|
|
26
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
26
27
|
"sass": "^1.69.4",
|
|
27
28
|
"vite": "^4.4.5",
|
|
28
29
|
"vite-plugin-svg-icons": "^2.0.1",
|
package/vite.config.js
CHANGED
|
@@ -1,20 +1,67 @@
|
|
|
1
1
|
import { defineConfig } from "vite";
|
|
2
2
|
import vue from "@vitejs/plugin-vue";
|
|
3
3
|
import path from "path";
|
|
4
|
+
import { terser } from 'rollup-plugin-terser'
|
|
5
|
+
import vueJsx from '@vitejs/plugin-vue-jsx';
|
|
4
6
|
import { fileURLToPath, URL } from 'node:url'
|
|
7
|
+
|
|
8
|
+
import fs from 'fs'
|
|
9
|
+
// 获取项目根目录下的package.json路径
|
|
10
|
+
const packageJsonPath = path.resolve(__dirname, './package.json')
|
|
11
|
+
|
|
12
|
+
// 读取package.json文件
|
|
13
|
+
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8'))
|
|
14
|
+
// 获取dependencies和devDependencies
|
|
15
|
+
const dependencies = Object.keys(packageJson.dependencies)
|
|
16
|
+
const devDependencies = Object.keys(packageJson.devDependencies)
|
|
17
|
+
|
|
18
|
+
const arr = [...dependencies, ...devDependencies]
|
|
19
|
+
|
|
5
20
|
//https://vitejs.dev/config/
|
|
6
|
-
export default defineConfig({
|
|
7
|
-
plugins: [
|
|
21
|
+
export default defineConfig(({ mode }) => ({
|
|
22
|
+
plugins: [
|
|
23
|
+
vue(),
|
|
24
|
+
vueJsx(),
|
|
25
|
+
terser({
|
|
26
|
+
compress: {
|
|
27
|
+
drop_debugger: ['production'].includes(mode),
|
|
28
|
+
pure_funcs: ['production'].includes(mode) ? ['console.log', 'console.info', 'console.warn', 'console.debug'] : [],
|
|
29
|
+
},
|
|
30
|
+
output: {
|
|
31
|
+
// 对于console.error,不做任何处理
|
|
32
|
+
comments: (node, comment) => comment.type === 'error'
|
|
33
|
+
}
|
|
34
|
+
})],
|
|
8
35
|
build: {
|
|
9
|
-
|
|
36
|
+
target: 'modules',
|
|
37
|
+
// //打包文件目录
|
|
38
|
+
// outDir: 'es',
|
|
39
|
+
//压缩
|
|
40
|
+
minify: false,
|
|
41
|
+
//css分离
|
|
42
|
+
cssCodeSplit: false,
|
|
43
|
+
outDir: 'lib',
|
|
44
|
+
// 开启vite打包的库模式
|
|
10
45
|
lib: {
|
|
11
|
-
entry:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
46
|
+
entry: './packages/index.js'
|
|
47
|
+
},
|
|
48
|
+
// outDir: "lib",//输出文件名称
|
|
49
|
+
// lib: {
|
|
50
|
+
// entry: path.resolve(__dirname, "./packages/index.js"),//指定组件编译入口文件
|
|
51
|
+
// name: "workflow-editor",//打包js名称
|
|
52
|
+
// fileName: "workflow-editor",
|
|
53
|
+
// },//库编译模式配置
|
|
15
54
|
rollupOptions: {
|
|
16
55
|
//确保外部化处理那些你不想打包进库的依赖
|
|
17
|
-
|
|
56
|
+
external: (id) => {
|
|
57
|
+
for (let i = 0; i < arr.length; i++) {
|
|
58
|
+
if (id.startsWith(arr[i])) {
|
|
59
|
+
// console.log('id===', id)
|
|
60
|
+
return true
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
input: ['./packages/index.js'],
|
|
18
65
|
output:
|
|
19
66
|
[
|
|
20
67
|
{
|
|
@@ -71,4 +118,4 @@ export default defineConfig({
|
|
|
71
118
|
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
72
119
|
}
|
|
73
120
|
}
|
|
74
|
-
});
|
|
121
|
+
}));
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
var u = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2
|
-
function f(e) {
|
|
3
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4
|
-
}
|
|
5
|
-
function l(e) {
|
|
6
|
-
if (e.__esModule)
|
|
7
|
-
return e;
|
|
8
|
-
var r = e.default;
|
|
9
|
-
if (typeof r == "function") {
|
|
10
|
-
var t = function o() {
|
|
11
|
-
return this instanceof o ? Reflect.construct(r, arguments, this.constructor) : r.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
t.prototype = r.prototype;
|
|
14
|
-
} else
|
|
15
|
-
t = {};
|
|
16
|
-
return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(e).forEach(function(o) {
|
|
17
|
-
var n = Object.getOwnPropertyDescriptor(e, o);
|
|
18
|
-
Object.defineProperty(t, o, n.get ? n : {
|
|
19
|
-
enumerable: !0,
|
|
20
|
-
get: function() {
|
|
21
|
-
return e[o];
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
}), t;
|
|
25
|
-
}
|
|
26
|
-
export {
|
|
27
|
-
u as commonjsGlobal,
|
|
28
|
-
l as getAugmentedNamespace,
|
|
29
|
-
f as getDefaultExportFromCjs
|
|
30
|
-
};
|
package/es/_virtual/index.mjs
DELETED
package/es/_virtual/prism.mjs
DELETED
package/es/_virtual/sax.mjs
DELETED
package/es/_virtual/tinymce.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("./__vite-browser-external.cjs"),r=require("./_commonjsHelpers.cjs"),o=e=>Object.freeze(Object.defineProperty({__proto__:null,default:e},Symbol.toStringTag,{value:"Module"})),n=o(t),s=r.getAugmentedNamespace(n);module.exports=s;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const t={};module.exports=t;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var u=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function f(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function l(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var t=function o(){return this instanceof o?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};t.prototype=r.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:function(){return e[o]}})}),t}exports.commonjsGlobal=u;exports.getAugmentedNamespace=l;exports.getDefaultExportFromCjs=f;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
|
package/lib/_virtual/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
|
package/lib/_virtual/prism.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
|
package/lib/_virtual/sax.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
package/lib/_virtual/tinymce.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
|