diff --git a/src/components/Crontab/day.vue b/src/components/Crontab/day.vue
deleted file mode 100644
index d6c74fad..00000000
--- a/src/components/Crontab/day.vue
+++ /dev/null
@@ -1,160 +0,0 @@
-
-
-
-
- 日,允许的通配符[, - * ? / L W]
-
-
-
-
-
- 不指定
-
-
-
-
-
- 周期从
- -
- 日
-
-
-
-
-
- 从
- 号开始,每
- 日执行一次
-
-
-
-
-
- 每月
- 号最近的那个工作日
-
-
-
-
-
- 本月最后一天
-
-
-
-
-
- 指定
-
- {{item}}
-
-
-
-
-
-
-
diff --git a/src/components/Crontab/hour.vue b/src/components/Crontab/hour.vue
deleted file mode 100644
index 3b890273..00000000
--- a/src/components/Crontab/hour.vue
+++ /dev/null
@@ -1,114 +0,0 @@
-
-
-
-
- 小时,允许的通配符[, - * /]
-
-
-
-
-
- 周期从
- -
- 小时
-
-
-
-
-
- 从
- 小时开始,每
- 小时执行一次
-
-
-
-
-
- 指定
-
- {{item-1}}
-
-
-
-
-
-
-
diff --git a/src/components/Crontab/index.vue b/src/components/Crontab/index.vue
deleted file mode 100644
index f0bc8569..00000000
--- a/src/components/Crontab/index.vue
+++ /dev/null
@@ -1,430 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 确定
- 重置
- 取消
-
-
-
-
-
-
-
diff --git a/src/components/Crontab/min.vue b/src/components/Crontab/min.vue
deleted file mode 100644
index 71a1fc17..00000000
--- a/src/components/Crontab/min.vue
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-
-
- 分钟,允许的通配符[, - * /]
-
-
-
-
-
- 周期从
- -
- 分钟
-
-
-
-
-
- 从
- 分钟开始,每
- 分钟执行一次
-
-
-
-
-
- 指定
-
- {{item-1}}
-
-
-
-
-
-
-
-
diff --git a/src/components/Crontab/month.vue b/src/components/Crontab/month.vue
deleted file mode 100644
index 2539935e..00000000
--- a/src/components/Crontab/month.vue
+++ /dev/null
@@ -1,114 +0,0 @@
-
-
-
-
- 月,允许的通配符[, - * /]
-
-
-
-
-
- 周期从
- -
- 月
-
-
-
-
-
- 从
- 月开始,每
- 月月执行一次
-
-
-
-
-
- 指定
-
- {{item}}
-
-
-
-
-
-
-
diff --git a/src/components/Crontab/result.vue b/src/components/Crontab/result.vue
deleted file mode 100644
index 605c8c9f..00000000
--- a/src/components/Crontab/result.vue
+++ /dev/null
@@ -1,559 +0,0 @@
-
-
-
-
-
diff --git a/src/components/Crontab/second.vue b/src/components/Crontab/second.vue
deleted file mode 100644
index 0b5df29c..00000000
--- a/src/components/Crontab/second.vue
+++ /dev/null
@@ -1,117 +0,0 @@
-
-
-
-
- 秒,允许的通配符[, - * /]
-
-
-
-
-
- 周期从
- -
- 秒
-
-
-
-
-
- 从
- 秒开始,每
- 秒执行一次
-
-
-
-
-
- 指定
-
- {{item-1}}
-
-
-
-
-
-
-
diff --git a/src/components/Crontab/week.vue b/src/components/Crontab/week.vue
deleted file mode 100644
index c84f3b3b..00000000
--- a/src/components/Crontab/week.vue
+++ /dev/null
@@ -1,202 +0,0 @@
-
-
-
-
- 周,允许的通配符[, - * ? / L #]
-
-
-
-
-
- 不指定
-
-
-
-
-
- 周期从星期
-
- {{item.value}}
-
- -
-
- {{item.value}}
-
-
-
-
-
-
- 第
- 周的星期
-
- {{item.value}}
-
-
-
-
-
-
- 本月最后一个星期
-
- {{item.value}}
-
-
-
-
-
-
- 指定
-
- {{item.value}}
-
-
-
-
-
-
-
-
diff --git a/src/components/Crontab/year.vue b/src/components/Crontab/year.vue
deleted file mode 100644
index 2c8eec32..00000000
--- a/src/components/Crontab/year.vue
+++ /dev/null
@@ -1,131 +0,0 @@
-
-
-
-
- 不填,允许的通配符[, - * /]
-
-
-
-
-
- 每年
-
-
-
-
-
- 周期从
- -
-
-
-
-
-
-
- 从
- 年开始,每
- 年执行一次
-
-
-
-
-
-
- 指定
-
-
-
-
-
-
-
-
-
diff --git a/src/components/DocAlert/index.vue b/src/components/DocAlert/index.vue
deleted file mode 100644
index 5692989b..00000000
--- a/src/components/DocAlert/index.vue
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
-
- {{ '【' + title + '】文档地址:' + url }}
-
-
-
-
-
-
diff --git a/src/components/PanThumb/index.vue b/src/components/PanThumb/index.vue
deleted file mode 100644
index 38a2fafe..00000000
--- a/src/components/PanThumb/index.vue
+++ /dev/null
@@ -1,141 +0,0 @@
-
-
-
-
-
-
-
diff --git a/src/components/RADME.md b/src/components/RADME.md
deleted file mode 100644
index 21e7a823..00000000
--- a/src/components/RADME.md
+++ /dev/null
@@ -1,21 +0,0 @@
-## form-generator
-
-github 地址:https://github.com/JakHuang/form-generator
-
-* generator
-* parser
-* render
-* tinymce
-
-## bpmn-process-designer
-
-github 地址:https://github.com/miyuesc/bpmn-process-designer
-
-* bpmnProcessDesigner
-
-TODO 目前存在的问题,如果选择 activiti 类型时,因为不支持内置表单的设计,所以会报 Error: unknown type activiti:FormData 错误。具体可见 https://github.com/miyuesc/bpmn-process-designer/issues/16 。
-
-另外几个流程设计器的选型:
-
-* https://gitee.com/jimlow/vue-bpmn 相比差一些,已经停止维护,不算推荐。
-* https://github.com/GoldSubmarine/workflow-bpmn-modeler 仅支持 flowable 流程引擎。如果只考虑 flowable 的话,也是非常不错的选择。
\ No newline at end of file
diff --git a/src/components/RuoYi/Doc/index.vue b/src/components/RuoYi/Doc/index.vue
deleted file mode 100644
index af9155b7..00000000
--- a/src/components/RuoYi/Doc/index.vue
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
-
-
-
diff --git a/src/components/RuoYi/Git/index.vue b/src/components/RuoYi/Git/index.vue
deleted file mode 100644
index b0d15f01..00000000
--- a/src/components/RuoYi/Git/index.vue
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
-
-
-
diff --git a/src/components/VideoUpload/index.vue b/src/components/VideoUpload/index.vue
deleted file mode 100644
index 4809e123..00000000
--- a/src/components/VideoUpload/index.vue
+++ /dev/null
@@ -1,211 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- 请上传
- 大小不超过 {{ fileSize }}MB
- 格式为 {{ fileType.join("/") }}
- 的文件
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/components/bpmnProcessDesigner/package/designer/ProcessDesigner.vue b/src/components/bpmnProcessDesigner/package/designer/ProcessDesigner.vue
deleted file mode 100644
index 4be2959a..00000000
--- a/src/components/bpmnProcessDesigner/package/designer/ProcessDesigner.vue
+++ /dev/null
@@ -1,476 +0,0 @@
-
-
-
-
-
diff --git a/src/components/bpmnProcessDesigner/package/designer/ProcessViewer.vue b/src/components/bpmnProcessDesigner/package/designer/ProcessViewer.vue
deleted file mode 100644
index de1a693f..00000000
--- a/src/components/bpmnProcessDesigner/package/designer/ProcessViewer.vue
+++ /dev/null
@@ -1,487 +0,0 @@
-
-
-
-
-
-
-
diff --git a/src/components/bpmnProcessDesigner/package/designer/index.js b/src/components/bpmnProcessDesigner/package/designer/index.js
deleted file mode 100644
index 03a814c8..00000000
--- a/src/components/bpmnProcessDesigner/package/designer/index.js
+++ /dev/null
@@ -1,8 +0,0 @@
-import MyProcessDesigner from "./ProcessDesigner.vue";
-
-MyProcessDesigner.install = function(Vue) {
- Vue.component(MyProcessDesigner.name, MyProcessDesigner);
-};
-
-// 流程图的设计器,可编辑
-export default MyProcessDesigner;
diff --git a/src/components/bpmnProcessDesigner/package/designer/index2.js b/src/components/bpmnProcessDesigner/package/designer/index2.js
deleted file mode 100644
index 55974693..00000000
--- a/src/components/bpmnProcessDesigner/package/designer/index2.js
+++ /dev/null
@@ -1,8 +0,0 @@
-import MyProcessViewer from "./ProcessViewer.vue";
-
-MyProcessViewer.install = function(Vue) {
- Vue.component(MyProcessViewer.name, MyProcessViewer);
-};
-
-// 流程图的查看器,不可编辑
-export default MyProcessViewer;
diff --git a/src/components/bpmnProcessDesigner/package/designer/plugins/content-pad/contentPadProvider.js b/src/components/bpmnProcessDesigner/package/designer/plugins/content-pad/contentPadProvider.js
deleted file mode 100644
index 979f5c72..00000000
--- a/src/components/bpmnProcessDesigner/package/designer/plugins/content-pad/contentPadProvider.js
+++ /dev/null
@@ -1,390 +0,0 @@
-import { assign, forEach, isArray } from "min-dash";
-
-import { is } from "bpmn-js/lib/util/ModelUtil";
-
-import { isExpanded, isEventSubProcess } from "bpmn-js/lib/util/DiUtil";
-
-import { isAny } from "bpmn-js/lib/features/modeling/util/ModelingUtil";
-
-import { getChildLanes } from "bpmn-js/lib/features/modeling/util/LaneUtil";
-
-import { hasPrimaryModifier } from "diagram-js/lib/util/Mouse";
-
-/**
- * A provider for BPMN 2.0 elements context pad
- */
-export default function ContextPadProvider(
- config,
- injector,
- eventBus,
- contextPad,
- modeling,
- elementFactory,
- connect,
- create,
- popupMenu,
- canvas,
- rules,
- translate,
- elementRegistry
-) {
- config = config || {};
-
- contextPad.registerProvider(this);
-
- this._contextPad = contextPad;
-
- this._modeling = modeling;
-
- this._elementFactory = elementFactory;
- this._connect = connect;
- this._create = create;
- this._popupMenu = popupMenu;
- this._canvas = canvas;
- this._rules = rules;
- this._translate = translate;
-
- if (config.autoPlace !== false) {
- this._autoPlace = injector.get("autoPlace", false);
- }
-
- eventBus.on("create.end", 250, function(event) {
- const context = event.context,
- shape = context.shape
-
- if (!hasPrimaryModifier(event) || !contextPad.isOpen(shape)) {
- return;
- }
-
- const entries = contextPad.getEntries(shape)
-
- if (entries.replace) {
- entries.replace.action.click(event, shape);
- }
- });
-}
-
-ContextPadProvider.$inject = [
- "config.contextPad",
- "injector",
- "eventBus",
- "contextPad",
- "modeling",
- "elementFactory",
- "connect",
- "create",
- "popupMenu",
- "canvas",
- "rules",
- "translate",
- "elementRegistry"
-];
-
-ContextPadProvider.prototype.getContextPadEntries = function(element) {
- const contextPad = this._contextPad,
- modeling = this._modeling,
- elementFactory = this._elementFactory,
- connect = this._connect,
- create = this._create,
- popupMenu = this._popupMenu,
- canvas = this._canvas,
- rules = this._rules,
- autoPlace = this._autoPlace,
- translate = this._translate
-
- const actions = {}
-
- if (element.type === "label") {
- return actions;
- }
-
- const businessObject = element.businessObject
-
- function startConnect(event, element) {
- connect.start(event, element);
- }
-
- function removeElement() {
- modeling.removeElements([element]);
- }
-
- function getReplaceMenuPosition(element) {
- const Y_OFFSET = 5
-
- const diagramContainer = canvas.getContainer(),
- pad = contextPad.getPad(element).html
-
- const diagramRect = diagramContainer.getBoundingClientRect(),
- padRect = pad.getBoundingClientRect()
-
- const top = padRect.top - diagramRect.top
- const left = padRect.left - diagramRect.left
-
- const pos = {
- x: left,
- y: top + padRect.height + Y_OFFSET
- }
-
- return pos;
- }
-
- /**
- * Create an append action
- *
- * @param {string} type
- * @param {string} className
- * @param {string} [title]
- * @param {Object} [options]
- *
- * @return {Object} descriptor
- */
- function appendAction(type, className, title, options) {
- if (typeof title !== "string") {
- options = title;
- title = translate("Append {type}", { type: type.replace(/^bpmn:/, "") });
- }
-
- function appendStart(event, element) {
- const shape = elementFactory.createShape(assign({ type: type }, options))
- create.start(event, shape, {
- source: element
- });
- }
-
- const append = autoPlace
- ? function(event, element) {
- const shape = elementFactory.createShape(assign({ type: type }, options))
-
- autoPlace.append(element, shape)
- }
- : appendStart
-
- return {
- group: "model",
- className: className,
- title: title,
- action: {
- dragstart: appendStart,
- click: append
- }
- };
- }
-
- function splitLaneHandler(count) {
- return function(event, element) {
- // actual split
- modeling.splitLane(element, count);
-
- // refresh context pad after split to
- // get rid of split icons
- contextPad.open(element, true);
- };
- }
-
- if (isAny(businessObject, ["bpmn:Lane", "bpmn:Participant"]) && isExpanded(businessObject)) {
- const childLanes = getChildLanes(element)
-
- assign(actions, {
- "lane-insert-above": {
- group: "lane-insert-above",
- className: "bpmn-icon-lane-insert-above",
- title: translate("Add Lane above"),
- action: {
- click: function(event, element) {
- modeling.addLane(element, "top");
- }
- }
- }
- });
-
- if (childLanes.length < 2) {
- if (element.height >= 120) {
- assign(actions, {
- "lane-divide-two": {
- group: "lane-divide",
- className: "bpmn-icon-lane-divide-two",
- title: translate("Divide into two Lanes"),
- action: {
- click: splitLaneHandler(2)
- }
- }
- });
- }
-
- if (element.height >= 180) {
- assign(actions, {
- "lane-divide-three": {
- group: "lane-divide",
- className: "bpmn-icon-lane-divide-three",
- title: translate("Divide into three Lanes"),
- action: {
- click: splitLaneHandler(3)
- }
- }
- });
- }
- }
-
- assign(actions, {
- "lane-insert-below": {
- group: "lane-insert-below",
- className: "bpmn-icon-lane-insert-below",
- title: translate("Add Lane below"),
- action: {
- click: function(event, element) {
- modeling.addLane(element, "bottom");
- }
- }
- }
- });
- }
-
- if (is(businessObject, "bpmn:FlowNode")) {
- if (is(businessObject, "bpmn:EventBasedGateway")) {
- assign(actions, {
- "append.receive-task": appendAction("bpmn:ReceiveTask", "bpmn-icon-receive-task", translate("Append ReceiveTask")),
- "append.message-intermediate-event": appendAction(
- "bpmn:IntermediateCatchEvent",
- "bpmn-icon-intermediate-event-catch-message",
- translate("Append MessageIntermediateCatchEvent"),
- { eventDefinitionType: "bpmn:MessageEventDefinition" }
- ),
- "append.timer-intermediate-event": appendAction(
- "bpmn:IntermediateCatchEvent",
- "bpmn-icon-intermediate-event-catch-timer",
- translate("Append TimerIntermediateCatchEvent"),
- { eventDefinitionType: "bpmn:TimerEventDefinition" }
- ),
- "append.condition-intermediate-event": appendAction(
- "bpmn:IntermediateCatchEvent",
- "bpmn-icon-intermediate-event-catch-condition",
- translate("Append ConditionIntermediateCatchEvent"),
- { eventDefinitionType: "bpmn:ConditionalEventDefinition" }
- ),
- "append.signal-intermediate-event": appendAction(
- "bpmn:IntermediateCatchEvent",
- "bpmn-icon-intermediate-event-catch-signal",
- translate("Append SignalIntermediateCatchEvent"),
- { eventDefinitionType: "bpmn:SignalEventDefinition" }
- )
- });
- } else if (isEventType(businessObject, "bpmn:BoundaryEvent", "bpmn:CompensateEventDefinition")) {
- assign(actions, {
- "append.compensation-activity": appendAction("bpmn:Task", "bpmn-icon-task", translate("Append compensation activity"), {
- isForCompensation: true
- })
- });
- } else if (
- !is(businessObject, "bpmn:EndEvent") &&
- !businessObject.isForCompensation &&
- !isEventType(businessObject, "bpmn:IntermediateThrowEvent", "bpmn:LinkEventDefinition") &&
- !isEventSubProcess(businessObject)
- ) {
- assign(actions, {
- "append.end-event": appendAction("bpmn:EndEvent", "bpmn-icon-end-event-none", translate("Append EndEvent")),
- "append.gateway": appendAction("bpmn:ExclusiveGateway", "bpmn-icon-gateway-none", translate("Append Gateway")),
- "append.append-task": appendAction("bpmn:UserTask", "bpmn-icon-user-task", translate("Append Task")),
- "append.intermediate-event": appendAction(
- "bpmn:IntermediateThrowEvent",
- "bpmn-icon-intermediate-event-none",
- translate("Append Intermediate/Boundary Event")
- )
- });
- }
- }
-
- if (!popupMenu.isEmpty(element, "bpmn-replace")) {
- // Replace menu entry
- assign(actions, {
- replace: {
- group: "edit",
- className: "bpmn-icon-screw-wrench",
- title: translate("Change type"),
- action: {
- click: function(event, element) {
- const position = assign(getReplaceMenuPosition(element), {
- cursor: { x: event.x, y: event.y }
- })
-
- popupMenu.open(element, "bpmn-replace", position);
- }
- }
- }
- });
- }
-
- if (isAny(businessObject, ["bpmn:FlowNode", "bpmn:InteractionNode", "bpmn:DataObjectReference", "bpmn:DataStoreReference"])) {
- assign(actions, {
- "append.text-annotation": appendAction("bpmn:TextAnnotation", "bpmn-icon-text-annotation"),
-
- connect: {
- group: "connect",
- className: "bpmn-icon-connection-multi",
- title: translate("Connect using " + (businessObject.isForCompensation ? "" : "Sequence/MessageFlow or ") + "Association"),
- action: {
- click: startConnect,
- dragstart: startConnect
- }
- }
- });
- }
-
- if (isAny(businessObject, ["bpmn:DataObjectReference", "bpmn:DataStoreReference"])) {
- assign(actions, {
- connect: {
- group: "connect",
- className: "bpmn-icon-connection-multi",
- title: translate("Connect using DataInputAssociation"),
- action: {
- click: startConnect,
- dragstart: startConnect
- }
- }
- });
- }
-
- if (is(businessObject, "bpmn:Group")) {
- assign(actions, {
- "append.text-annotation": appendAction("bpmn:TextAnnotation", "bpmn-icon-text-annotation")
- });
- }
-
- // delete element entry, only show if allowed by rules
- let deleteAllowed = rules.allowed('elements.delete', { elements: [element] })
-
- if (isArray(deleteAllowed)) {
- // was the element returned as a deletion candidate?
- deleteAllowed = deleteAllowed[0] === element;
- }
-
- if (deleteAllowed) {
- assign(actions, {
- delete: {
- group: "edit",
- className: "bpmn-icon-trash",
- title: translate("Remove"),
- action: {
- click: removeElement
- }
- }
- });
- }
-
- return actions;
-};
-
-// helpers /////////
-
-function isEventType(eventBo, type, definition) {
- const isType = eventBo.$instanceOf(type)
- let isDefinition = false
-
- const definitions = eventBo.eventDefinitions || []
- forEach(definitions, function(def) {
- if (def.$type === definition) {
- isDefinition = true;
- }
- });
-
- return isType && isDefinition;
-}
diff --git a/src/components/bpmnProcessDesigner/package/designer/plugins/content-pad/index.js b/src/components/bpmnProcessDesigner/package/designer/plugins/content-pad/index.js
deleted file mode 100644
index a9cf887c..00000000
--- a/src/components/bpmnProcessDesigner/package/designer/plugins/content-pad/index.js
+++ /dev/null
@@ -1,6 +0,0 @@
-import CustomContextPadProvider from "./contentPadProvider";
-
-export default {
- __init__: ["contextPadProvider"],
- contextPadProvider: ["type", CustomContextPadProvider]
-};
diff --git a/src/components/bpmnProcessDesigner/package/designer/plugins/defaultEmpty.js b/src/components/bpmnProcessDesigner/package/designer/plugins/defaultEmpty.js
deleted file mode 100644
index ae96d241..00000000
--- a/src/components/bpmnProcessDesigner/package/designer/plugins/defaultEmpty.js
+++ /dev/null
@@ -1,24 +0,0 @@
-export default (key, name, type) => {
- if (!type) type = "camunda";
- const TYPE_TARGET = {
- activiti: "http://activiti.org/bpmn",
- camunda: "http://bpmn.io/schema/bpmn",
- flowable: "http://flowable.org/bpmn"
- };
- return `
-
-
-
-
-
-
-
-`;
-};
diff --git a/src/components/bpmnProcessDesigner/package/designer/plugins/descriptor/activitiDescriptor.json b/src/components/bpmnProcessDesigner/package/designer/plugins/descriptor/activitiDescriptor.json
deleted file mode 100644
index 9daed508..00000000
--- a/src/components/bpmnProcessDesigner/package/designer/plugins/descriptor/activitiDescriptor.json
+++ /dev/null
@@ -1,1071 +0,0 @@
-{
- "name": "Activiti",
- "uri": "http://activiti.org/bpmn",
- "prefix": "activiti",
- "xml": {
- "tagAlias": "lowerCase"
- },
- "associations": [],
- "types": [
- {
- "name": "Definitions",
- "isAbstract": true,
- "extends": [
- "bpmn:Definitions"
- ],
- "properties": [
- {
- "name": "diagramRelationId",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "InOutBinding",
- "superClass": [
- "Element"
- ],
- "isAbstract": true,
- "properties": [
- {
- "name": "source",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "sourceExpression",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "target",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "businessKey",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "local",
- "isAttr": true,
- "type": "Boolean",
- "default": false
- },
- {
- "name": "variables",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "In",
- "superClass": [
- "InOutBinding"
- ],
- "meta": {
- "allowedIn": [
- "bpmn:CallActivity"
- ]
- }
- },
- {
- "name": "Out",
- "superClass": [
- "InOutBinding"
- ],
- "meta": {
- "allowedIn": [
- "bpmn:CallActivity"
- ]
- }
- },
- {
- "name": "AsyncCapable",
- "isAbstract": true,
- "extends": [
- "bpmn:Activity",
- "bpmn:Gateway",
- "bpmn:Event"
- ],
- "properties": [
- {
- "name": "async",
- "isAttr": true,
- "type": "Boolean",
- "default": false
- },
- {
- "name": "asyncBefore",
- "isAttr": true,
- "type": "Boolean",
- "default": false
- },
- {
- "name": "asyncAfter",
- "isAttr": true,
- "type": "Boolean",
- "default": false
- },
- {
- "name": "exclusive",
- "isAttr": true,
- "type": "Boolean",
- "default": true
- }
- ]
- },
- {
- "name": "JobPriorized",
- "isAbstract": true,
- "extends": [
- "bpmn:Process",
- "activiti:AsyncCapable"
- ],
- "properties": [
- {
- "name": "jobPriority",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "SignalEventDefinition",
- "isAbstract": true,
- "extends": [
- "bpmn:SignalEventDefinition"
- ],
- "properties": [
- {
- "name": "async",
- "isAttr": true,
- "type": "Boolean",
- "default": false
- }
- ]
- },
- {
- "name": "ErrorEventDefinition",
- "isAbstract": true,
- "extends": [
- "bpmn:ErrorEventDefinition"
- ],
- "properties": [
- {
- "name": "errorCodeVariable",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "errorMessageVariable",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "Error",
- "isAbstract": true,
- "extends": [
- "bpmn:Error"
- ],
- "properties": [
- {
- "name": "activiti:errorMessage",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "PotentialStarter",
- "superClass": [
- "Element"
- ],
- "properties": [
- {
- "name": "resourceAssignmentExpression",
- "type": "bpmn:ResourceAssignmentExpression"
- }
- ]
- },
- {
- "name": "FormSupported",
- "isAbstract": true,
- "extends": [
- "bpmn:StartEvent",
- "bpmn:UserTask"
- ],
- "properties": [
- {
- "name": "formHandlerClass",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "formKey",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "TemplateSupported",
- "isAbstract": true,
- "extends": [
- "bpmn:Process",
- "bpmn:FlowElement"
- ],
- "properties": [
- {
- "name": "modelerTemplate",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "Initiator",
- "isAbstract": true,
- "extends": [ "bpmn:StartEvent" ],
- "properties": [
- {
- "name": "initiator",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "ScriptTask",
- "isAbstract": true,
- "extends": [
- "bpmn:ScriptTask"
- ],
- "properties": [
- {
- "name": "resultVariable",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "resource",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "Process",
- "isAbstract": true,
- "extends": [
- "bpmn:Process"
- ],
- "properties": [
- {
- "name": "candidateStarterGroups",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "candidateStarterUsers",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "versionTag",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "historyTimeToLive",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "isStartableInTasklist",
- "isAttr": true,
- "type": "Boolean",
- "default": true
- },
- {
- "name":"executionListener",
- "isAbstract": true,
- "type":"Expression"
- }
- ]
- },
- {
- "name": "EscalationEventDefinition",
- "isAbstract": true,
- "extends": [
- "bpmn:EscalationEventDefinition"
- ],
- "properties": [
- {
- "name": "escalationCodeVariable",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "FormalExpression",
- "isAbstract": true,
- "extends": [
- "bpmn:FormalExpression"
- ],
- "properties": [
- {
- "name": "resource",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "multiinstance_type",
- "superClass":[
- "Element"
- ]
- },
- {
- "name": "multiinstance_condition",
- "superClass":[
- "Element"
- ]
- },
- {
- "name": "Assignable",
- "extends": [ "bpmn:UserTask" ],
- "properties": [
- {
- "name": "assignee",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "candidateUsers",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "candidateGroups",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "dueDate",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "followUpDate",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "priority",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "multiinstance_condition",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "CallActivity",
- "extends": [ "bpmn:CallActivity" ],
- "properties": [
- {
- "name": "calledElementBinding",
- "isAttr": true,
- "type": "String",
- "default": "latest"
- },
- {
- "name": "calledElementVersion",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "calledElementVersionTag",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "calledElementTenantId",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "caseRef",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "caseBinding",
- "isAttr": true,
- "type": "String",
- "default": "latest"
- },
- {
- "name": "caseVersion",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "caseTenantId",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "variableMappingClass",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "variableMappingDelegateExpression",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "ServiceTaskLike",
- "extends": [
- "bpmn:ServiceTask",
- "bpmn:BusinessRuleTask",
- "bpmn:SendTask",
- "bpmn:MessageEventDefinition"
- ],
- "properties": [
- {
- "name": "expression",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "class",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "delegateExpression",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "resultVariable",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "DmnCapable",
- "extends": [
- "bpmn:BusinessRuleTask"
- ],
- "properties": [
- {
- "name": "decisionRef",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "decisionRefBinding",
- "isAttr": true,
- "type": "String",
- "default": "latest"
- },
- {
- "name": "decisionRefVersion",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "mapDecisionResult",
- "isAttr": true,
- "type": "String",
- "default": "resultList"
- },
- {
- "name": "decisionRefTenantId",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "ExternalCapable",
- "extends": [
- "activiti:ServiceTaskLike"
- ],
- "properties": [
- {
- "name": "type",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "topic",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "TaskPriorized",
- "extends": [
- "bpmn:Process",
- "activiti:ExternalCapable"
- ],
- "properties": [
- {
- "name": "taskPriority",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "Properties",
- "superClass": [
- "Element"
- ],
- "meta": {
- "allowedIn": [ "*" ]
- },
- "properties": [
- {
- "name": "values",
- "type": "Property",
- "isMany": true
- }
- ]
- },
- {
- "name": "Property",
- "superClass": [
- "Element"
- ],
- "properties": [
- {
- "name": "id",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "name",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "value",
- "type": "String",
- "isAttr": true
- }
- ]
- },
- {
- "name": "Connector",
- "superClass": [
- "Element"
- ],
- "meta": {
- "allowedIn": [
- "activiti:ServiceTaskLike"
- ]
- },
- "properties": [
- {
- "name": "inputOutput",
- "type": "InputOutput"
- },
- {
- "name": "connectorId",
- "type": "String"
- }
- ]
- },
- {
- "name": "InputOutput",
- "superClass": [
- "Element"
- ],
- "meta": {
- "allowedIn": [
- "bpmn:FlowNode",
- "activiti:Connector"
- ]
- },
- "properties": [
- {
- "name": "inputOutput",
- "type": "InputOutput"
- },
- {
- "name": "connectorId",
- "type": "String"
- },
- {
- "name": "inputParameters",
- "isMany": true,
- "type": "InputParameter"
- },
- {
- "name": "outputParameters",
- "isMany": true,
- "type": "OutputParameter"
- }
- ]
- },
- {
- "name": "InputOutputParameter",
- "properties": [
- {
- "name": "name",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "value",
- "isBody": true,
- "type": "String"
- },
- {
- "name": "definition",
- "type": "InputOutputParameterDefinition"
- }
- ]
- },
- {
- "name": "InputOutputParameterDefinition",
- "isAbstract": true
- },
- {
- "name": "List",
- "superClass": [ "InputOutputParameterDefinition" ],
- "properties": [
- {
- "name": "items",
- "isMany": true,
- "type": "InputOutputParameterDefinition"
- }
- ]
- },
- {
- "name": "Map",
- "superClass": [ "InputOutputParameterDefinition" ],
- "properties": [
- {
- "name": "entries",
- "isMany": true,
- "type": "Entry"
- }
- ]
- },
- {
- "name": "Entry",
- "properties": [
- {
- "name": "key",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "value",
- "isBody": true,
- "type": "String"
- },
- {
- "name": "definition",
- "type": "InputOutputParameterDefinition"
- }
- ]
- },
- {
- "name": "Value",
- "superClass": [
- "InputOutputParameterDefinition"
- ],
- "properties": [
- {
- "name": "id",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "name",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "value",
- "isBody": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "Script",
- "superClass": [ "InputOutputParameterDefinition" ],
- "properties": [
- {
- "name": "scriptFormat",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "resource",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "value",
- "isBody": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "Field",
- "superClass": [ "Element" ],
- "meta": {
- "allowedIn": [
- "activiti:ServiceTaskLike",
- "activiti:ExecutionListener",
- "activiti:TaskListener"
- ]
- },
- "properties": [
- {
- "name": "name",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "expression",
- "type": "String"
- },
- {
- "name": "stringValue",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "string",
- "type": "String"
- }
- ]
- },
- {
- "name": "InputParameter",
- "superClass": [ "InputOutputParameter" ]
- },
- {
- "name": "OutputParameter",
- "superClass": [ "InputOutputParameter" ]
- },
- {
- "name": "Collectable",
- "isAbstract": true,
- "extends": [ "bpmn:MultiInstanceLoopCharacteristics" ],
- "superClass": [ "activiti:AsyncCapable" ],
- "properties": [
- {
- "name": "collection",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "elementVariable",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "FailedJobRetryTimeCycle",
- "superClass": [ "Element" ],
- "meta": {
- "allowedIn": [
- "activiti:AsyncCapable",
- "bpmn:MultiInstanceLoopCharacteristics"
- ]
- },
- "properties": [
- {
- "name": "body",
- "isBody": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "ExecutionListener",
- "superClass": [ "Element" ],
- "meta": {
- "allowedIn": [
- "bpmn:Task",
- "bpmn:ServiceTask",
- "bpmn:UserTask",
- "bpmn:BusinessRuleTask",
- "bpmn:ScriptTask",
- "bpmn:ReceiveTask",
- "bpmn:ManualTask",
- "bpmn:ExclusiveGateway",
- "bpmn:SequenceFlow",
- "bpmn:ParallelGateway",
- "bpmn:InclusiveGateway",
- "bpmn:EventBasedGateway",
- "bpmn:StartEvent",
- "bpmn:IntermediateCatchEvent",
- "bpmn:IntermediateThrowEvent",
- "bpmn:EndEvent",
- "bpmn:BoundaryEvent",
- "bpmn:CallActivity",
- "bpmn:SubProcess",
- "bpmn:Process"
- ]
- },
- "properties": [
- {
- "name": "expression",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "class",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "delegateExpression",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "event",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "script",
- "type": "Script"
- },
- {
- "name": "fields",
- "type": "Field",
- "isMany": true
- }
- ]
- },
- {
- "name": "TaskListener",
- "superClass": [ "Element" ],
- "meta": {
- "allowedIn": [
- "bpmn:UserTask"
- ]
- },
- "properties": [
- {
- "name": "expression",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "class",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "delegateExpression",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "event",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "script",
- "type": "Script"
- },
- {
- "name": "fields",
- "type": "Field",
- "isMany": true
- }
- ]
- },
- {
- "name": "FormProperty",
- "superClass": [ "Element" ],
- "meta": {
- "allowedIn": [
- "bpmn:StartEvent",
- "bpmn:UserTask"
- ]
- },
- "properties": [
- {
- "name": "id",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "name",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "type",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "required",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "readable",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "writable",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "variable",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "expression",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "datePattern",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "default",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "values",
- "type": "Value",
- "isMany": true
- }
- ]
- },
- {
- "name": "FormProperty",
- "superClass": [ "Element" ],
- "properties": [
- {
- "name": "id",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "label",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "type",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "datePattern",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "defaultValue",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "properties",
- "type": "Properties"
- },
- {
- "name": "validation",
- "type": "Validation"
- },
- {
- "name": "values",
- "type": "Value",
- "isMany": true
- }
- ]
- },
- {
- "name": "Validation",
- "superClass": [ "Element" ],
- "properties": [
- {
- "name": "constraints",
- "type": "Constraint",
- "isMany": true
- }
- ]
- },
- {
- "name": "Constraint",
- "superClass": [ "Element" ],
- "properties": [
- {
- "name": "name",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "config",
- "type": "String",
- "isAttr": true
- }
- ]
- },
- {
- "name": "ConditionalEventDefinition",
- "isAbstract": true,
- "extends": [
- "bpmn:ConditionalEventDefinition"
- ],
- "properties": [
- {
- "name": "variableName",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "variableEvent",
- "isAttr": true,
- "type": "String"
- }
- ]
- }
- ],
- "emumerations": [ ]
-}
diff --git a/src/components/bpmnProcessDesigner/package/designer/plugins/descriptor/camundaDescriptor.json b/src/components/bpmnProcessDesigner/package/designer/plugins/descriptor/camundaDescriptor.json
deleted file mode 100644
index a57dbe63..00000000
--- a/src/components/bpmnProcessDesigner/package/designer/plugins/descriptor/camundaDescriptor.json
+++ /dev/null
@@ -1,1087 +0,0 @@
-{
- "name": "Camunda",
- "uri": "http://camunda.org/schema/1.0/bpmn",
- "prefix": "camunda",
- "xml": {
- "tagAlias": "lowerCase"
- },
- "associations": [],
- "types": [
- {
- "name": "Definitions",
- "isAbstract": true,
- "extends": [
- "bpmn:Definitions"
- ],
- "properties": [
- {
- "name": "diagramRelationId",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "InOutBinding",
- "superClass": [
- "Element"
- ],
- "isAbstract": true,
- "properties": [
- {
- "name": "source",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "sourceExpression",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "target",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "businessKey",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "local",
- "isAttr": true,
- "type": "Boolean",
- "default": false
- },
- {
- "name": "variables",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "In",
- "superClass": [
- "InOutBinding"
- ],
- "meta": {
- "allowedIn": [
- "bpmn:CallActivity",
- "bpmn:SignalEventDefinition"
- ]
- }
- },
- {
- "name": "Out",
- "superClass": [
- "InOutBinding"
- ],
- "meta": {
- "allowedIn": [
- "bpmn:CallActivity"
- ]
- }
- },
- {
- "name": "AsyncCapable",
- "isAbstract": true,
- "extends": [
- "bpmn:Activity",
- "bpmn:Gateway",
- "bpmn:Event"
- ],
- "properties": [
- {
- "name": "async",
- "isAttr": true,
- "type": "Boolean",
- "default": false
- },
- {
- "name": "asyncBefore",
- "isAttr": true,
- "type": "Boolean",
- "default": false
- },
- {
- "name": "asyncAfter",
- "isAttr": true,
- "type": "Boolean",
- "default": false
- },
- {
- "name": "exclusive",
- "isAttr": true,
- "type": "Boolean",
- "default": true
- }
- ]
- },
- {
- "name": "JobPriorized",
- "isAbstract": true,
- "extends": [
- "bpmn:Process",
- "camunda:AsyncCapable"
- ],
- "properties": [
- {
- "name": "jobPriority",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "SignalEventDefinition",
- "isAbstract": true,
- "extends": [
- "bpmn:SignalEventDefinition"
- ],
- "properties": [
- {
- "name": "async",
- "isAttr": true,
- "type": "Boolean",
- "default": false
- }
- ]
- },
- {
- "name": "ErrorEventDefinition",
- "isAbstract": true,
- "extends": [
- "bpmn:ErrorEventDefinition"
- ],
- "properties": [
- {
- "name": "errorCodeVariable",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "errorMessageVariable",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "Error",
- "isAbstract": true,
- "extends": [
- "bpmn:Error"
- ],
- "properties": [
- {
- "name": "camunda:errorMessage",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "PotentialStarter",
- "superClass": [
- "Element"
- ],
- "properties": [
- {
- "name": "resourceAssignmentExpression",
- "type": "bpmn:ResourceAssignmentExpression"
- }
- ]
- },
- {
- "name": "FormSupported",
- "isAbstract": true,
- "extends": [
- "bpmn:StartEvent",
- "bpmn:UserTask"
- ],
- "properties": [
- {
- "name": "formHandlerClass",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "formKey",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "TemplateSupported",
- "isAbstract": true,
- "extends": [
- "bpmn:Process",
- "bpmn:FlowElement"
- ],
- "properties": [
- {
- "name": "modelerTemplate",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "modelerTemplateVersion",
- "isAttr": true,
- "type": "Integer"
- }
- ]
- },
- {
- "name": "Initiator",
- "isAbstract": true,
- "extends": [ "bpmn:StartEvent" ],
- "properties": [
- {
- "name": "initiator",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "ScriptTask",
- "isAbstract": true,
- "extends": [
- "bpmn:ScriptTask"
- ],
- "properties": [
- {
- "name": "resultVariable",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "resource",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "Process",
- "isAbstract": true,
- "extends": [
- "bpmn:Process"
- ],
- "properties": [
- {
- "name": "candidateStarterGroups",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "candidateStarterUsers",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "versionTag",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "historyTimeToLive",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "isStartableInTasklist",
- "isAttr": true,
- "type": "Boolean",
- "default": true
- }
- ]
- },
- {
- "name": "EscalationEventDefinition",
- "isAbstract": true,
- "extends": [
- "bpmn:EscalationEventDefinition"
- ],
- "properties": [
- {
- "name": "escalationCodeVariable",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "FormalExpression",
- "isAbstract": true,
- "extends": [
- "bpmn:FormalExpression"
- ],
- "properties": [
- {
- "name": "resource",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "Assignable",
- "extends": [ "bpmn:UserTask" ],
- "properties": [
- {
- "name": "assignee",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "candidateUsers",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "candidateGroups",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "dueDate",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "followUpDate",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "priority",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "CallActivity",
- "extends": [ "bpmn:CallActivity" ],
- "properties": [
- {
- "name": "calledElementBinding",
- "isAttr": true,
- "type": "String",
- "default": "latest"
- },
- {
- "name": "calledElementVersion",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "calledElementVersionTag",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "calledElementTenantId",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "caseRef",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "caseBinding",
- "isAttr": true,
- "type": "String",
- "default": "latest"
- },
- {
- "name": "caseVersion",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "caseTenantId",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "variableMappingClass",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "variableMappingDelegateExpression",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "ServiceTaskLike",
- "extends": [
- "bpmn:ServiceTask",
- "bpmn:BusinessRuleTask",
- "bpmn:SendTask",
- "bpmn:MessageEventDefinition"
- ],
- "properties": [
- {
- "name": "expression",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "class",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "delegateExpression",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "resultVariable",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "DmnCapable",
- "extends": [
- "bpmn:BusinessRuleTask"
- ],
- "properties": [
- {
- "name": "decisionRef",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "decisionRefBinding",
- "isAttr": true,
- "type": "String",
- "default": "latest"
- },
- {
- "name": "decisionRefVersion",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "mapDecisionResult",
- "isAttr": true,
- "type": "String",
- "default": "resultList"
- },
- {
- "name": "decisionRefTenantId",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "ExternalCapable",
- "extends": [
- "camunda:ServiceTaskLike"
- ],
- "properties": [
- {
- "name": "type",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "topic",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "TaskPriorized",
- "extends": [
- "bpmn:Process",
- "camunda:ExternalCapable"
- ],
- "properties": [
- {
- "name": "taskPriority",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "Properties",
- "superClass": [
- "Element"
- ],
- "meta": {
- "allowedIn": [ "*" ]
- },
- "properties": [
- {
- "name": "values",
- "type": "Property",
- "isMany": true
- }
- ]
- },
- {
- "name": "Property",
- "superClass": [
- "Element"
- ],
- "properties": [
- {
- "name": "id",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "name",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "value",
- "type": "String",
- "isAttr": true
- }
- ]
- },
- {
- "name": "Connector",
- "superClass": [
- "Element"
- ],
- "meta": {
- "allowedIn": [
- "camunda:ServiceTaskLike"
- ]
- },
- "properties": [
- {
- "name": "inputOutput",
- "type": "InputOutput"
- },
- {
- "name": "connectorId",
- "type": "String"
- }
- ]
- },
- {
- "name": "InputOutput",
- "superClass": [
- "Element"
- ],
- "meta": {
- "allowedIn": [
- "bpmn:FlowNode",
- "camunda:Connector"
- ]
- },
- "properties": [
- {
- "name": "inputOutput",
- "type": "InputOutput"
- },
- {
- "name": "connectorId",
- "type": "String"
- },
- {
- "name": "inputParameters",
- "isMany": true,
- "type": "InputParameter"
- },
- {
- "name": "outputParameters",
- "isMany": true,
- "type": "OutputParameter"
- }
- ]
- },
- {
- "name": "InputOutputParameter",
- "properties": [
- {
- "name": "name",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "value",
- "isBody": true,
- "type": "String"
- },
- {
- "name": "definition",
- "type": "InputOutputParameterDefinition"
- }
- ]
- },
- {
- "name": "InputOutputParameterDefinition",
- "isAbstract": true
- },
- {
- "name": "List",
- "superClass": [ "InputOutputParameterDefinition" ],
- "properties": [
- {
- "name": "items",
- "isMany": true,
- "type": "InputOutputParameterDefinition"
- }
- ]
- },
- {
- "name": "Map",
- "superClass": [ "InputOutputParameterDefinition" ],
- "properties": [
- {
- "name": "entries",
- "isMany": true,
- "type": "Entry"
- }
- ]
- },
- {
- "name": "Entry",
- "properties": [
- {
- "name": "key",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "value",
- "isBody": true,
- "type": "String"
- },
- {
- "name": "definition",
- "type": "InputOutputParameterDefinition"
- }
- ]
- },
- {
- "name": "Value",
- "superClass": [
- "InputOutputParameterDefinition"
- ],
- "properties": [
- {
- "name": "id",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "name",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "value",
- "isBody": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "Script",
- "superClass": [ "InputOutputParameterDefinition" ],
- "properties": [
- {
- "name": "scriptFormat",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "resource",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "value",
- "isBody": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "Field",
- "superClass": [ "Element" ],
- "meta": {
- "allowedIn": [
- "camunda:ServiceTaskLike",
- "camunda:ExecutionListener",
- "camunda:TaskListener"
- ]
- },
- "properties": [
- {
- "name": "name",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "expression",
- "type": "String"
- },
- {
- "name": "stringValue",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "string",
- "type": "String"
- }
- ]
- },
- {
- "name": "InputParameter",
- "superClass": [ "InputOutputParameter" ]
- },
- {
- "name": "OutputParameter",
- "superClass": [ "InputOutputParameter" ]
- },
- {
- "name": "Collectable",
- "isAbstract": true,
- "extends": [ "bpmn:MultiInstanceLoopCharacteristics" ],
- "superClass": [ "camunda:AsyncCapable" ],
- "properties": [
- {
- "name": "collection",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "elementVariable",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "FailedJobRetryTimeCycle",
- "superClass": [ "Element" ],
- "meta": {
- "allowedIn": [
- "camunda:AsyncCapable",
- "bpmn:MultiInstanceLoopCharacteristics"
- ]
- },
- "properties": [
- {
- "name": "body",
- "isBody": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "ExecutionListener",
- "superClass": [ "Element" ],
- "meta": {
- "allowedIn": [
- "bpmn:Task",
- "bpmn:ServiceTask",
- "bpmn:UserTask",
- "bpmn:BusinessRuleTask",
- "bpmn:ScriptTask",
- "bpmn:ReceiveTask",
- "bpmn:ManualTask",
- "bpmn:ExclusiveGateway",
- "bpmn:SequenceFlow",
- "bpmn:ParallelGateway",
- "bpmn:InclusiveGateway",
- "bpmn:EventBasedGateway",
- "bpmn:StartEvent",
- "bpmn:IntermediateCatchEvent",
- "bpmn:IntermediateThrowEvent",
- "bpmn:EndEvent",
- "bpmn:BoundaryEvent",
- "bpmn:CallActivity",
- "bpmn:SubProcess",
- "bpmn:Process"
- ]
- },
- "properties": [
- {
- "name": "expression",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "class",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "delegateExpression",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "event",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "script",
- "type": "Script"
- },
- {
- "name": "fields",
- "type": "Field",
- "isMany": true
- }
- ]
- },
- {
- "name": "TaskListener",
- "superClass": [ "Element" ],
- "meta": {
- "allowedIn": [
- "bpmn:UserTask"
- ]
- },
- "properties": [
- {
- "name": "expression",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "class",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "delegateExpression",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "event",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "script",
- "type": "Script"
- },
- {
- "name": "fields",
- "type": "Field",
- "isMany": true
- },
- {
- "name": "id",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "eventDefinitions",
- "type": "bpmn:TimerEventDefinition",
- "isMany": true
- }
- ]
- },
- {
- "name": "FormProperty",
- "superClass": [ "Element" ],
- "meta": {
- "allowedIn": [
- "bpmn:StartEvent",
- "bpmn:UserTask"
- ]
- },
- "properties": [
- {
- "name": "id",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "name",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "type",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "required",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "readable",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "writable",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "variable",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "expression",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "datePattern",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "default",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "values",
- "type": "Value",
- "isMany": true
- }
- ]
- },
- {
- "name": "FormData",
- "superClass": [ "Element" ],
- "meta": {
- "allowedIn": [
- "bpmn:StartEvent",
- "bpmn:UserTask"
- ]
- },
- "properties": [
- {
- "name": "fields",
- "type": "FormField",
- "isMany": true
- },
- {
- "name": "businessKey",
- "type": "String",
- "isAttr": true
- }
- ]
- },
- {
- "name": "FormField",
- "superClass": [ "Element" ],
- "properties": [
- {
- "name": "id",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "label",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "type",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "datePattern",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "defaultValue",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "properties",
- "type": "Properties"
- },
- {
- "name": "validation",
- "type": "Validation"
- },
- {
- "name": "values",
- "type": "Value",
- "isMany": true
- }
- ]
- },
- {
- "name": "Validation",
- "superClass": [ "Element" ],
- "properties": [
- {
- "name": "constraints",
- "type": "Constraint",
- "isMany": true
- }
- ]
- },
- {
- "name": "Constraint",
- "superClass": [ "Element" ],
- "properties": [
- {
- "name": "name",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "config",
- "type": "String",
- "isAttr": true
- }
- ]
- },
- {
- "name": "ConditionalEventDefinition",
- "isAbstract": true,
- "extends": [
- "bpmn:ConditionalEventDefinition"
- ],
- "properties": [
- {
- "name": "variableName",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "variableEvents",
- "isAttr": true,
- "type": "String"
- }
- ]
- }
- ],
- "emumerations": [ ]
-}
diff --git a/src/components/bpmnProcessDesigner/package/designer/plugins/descriptor/flowableDescriptor.json b/src/components/bpmnProcessDesigner/package/designer/plugins/descriptor/flowableDescriptor.json
deleted file mode 100644
index ef76af47..00000000
--- a/src/components/bpmnProcessDesigner/package/designer/plugins/descriptor/flowableDescriptor.json
+++ /dev/null
@@ -1,1210 +0,0 @@
-{
- "name": "Flowable",
- "uri": "http://flowable.org/bpmn",
- "prefix": "flowable",
- "xml": {
- "tagAlias": "lowerCase"
- },
- "associations": [],
- "types": [
- {
- "name": "InOutBinding",
- "superClass": ["Element"],
- "isAbstract": true,
- "properties": [
- {
- "name": "source",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "sourceExpression",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "target",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "businessKey",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "local",
- "isAttr": true,
- "type": "Boolean",
- "default": false
- },
- {
- "name": "variables",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "In",
- "superClass": ["InOutBinding"],
- "meta": {
- "allowedIn": ["bpmn:CallActivity"]
- }
- },
- {
- "name": "Out",
- "superClass": ["InOutBinding"],
- "meta": {
- "allowedIn": ["bpmn:CallActivity"]
- }
- },
- {
- "name": "AsyncCapable",
- "isAbstract": true,
- "extends": ["bpmn:Activity", "bpmn:Gateway", "bpmn:Event"],
- "properties": [
- {
- "name": "async",
- "isAttr": true,
- "type": "Boolean",
- "default": false
- },
- {
- "name": "asyncBefore",
- "isAttr": true,
- "type": "Boolean",
- "default": false
- },
- {
- "name": "asyncAfter",
- "isAttr": true,
- "type": "Boolean",
- "default": false
- },
- {
- "name": "exclusive",
- "isAttr": true,
- "type": "Boolean",
- "default": true
- }
- ]
- },
- {
- "name": "JobPriorized",
- "isAbstract": true,
- "extends": ["bpmn:Process", "flowable:AsyncCapable"],
- "properties": [
- {
- "name": "jobPriority",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "SignalEventDefinition",
- "isAbstract": true,
- "extends": ["bpmn:SignalEventDefinition"],
- "properties": [
- {
- "name": "async",
- "isAttr": true,
- "type": "Boolean",
- "default": false
- }
- ]
- },
- {
- "name": "ErrorEventDefinition",
- "isAbstract": true,
- "extends": ["bpmn:ErrorEventDefinition"],
- "properties": [
- {
- "name": "errorCodeVariable",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "errorMessageVariable",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "Error",
- "isAbstract": true,
- "extends": ["bpmn:Error"],
- "properties": [
- {
- "name": "flowable:errorMessage",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "PotentialStarter",
- "superClass": ["Element"],
- "properties": [
- {
- "name": "resourceAssignmentExpression",
- "type": "bpmn:ResourceAssignmentExpression"
- }
- ]
- },
- {
- "name": "FormSupported",
- "isAbstract": true,
- "extends": ["bpmn:StartEvent", "bpmn:UserTask"],
- "properties": [
- {
- "name": "formHandlerClass",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "formKey",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "formType",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "formReadOnly",
- "isAttr": true,
- "type": "Boolean",
- "default": false
- },
- {
- "name": "formInit",
- "isAttr": true,
- "type": "Boolean",
- "default": true
- }
- ]
- },
- {
- "name": "TemplateSupported",
- "isAbstract": true,
- "extends": ["bpmn:Process", "bpmn:FlowElement"],
- "properties": [
- {
- "name": "modelerTemplate",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "Initiator",
- "isAbstract": true,
- "extends": ["bpmn:StartEvent"],
- "properties": [
- {
- "name": "initiator",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "ScriptTask",
- "isAbstract": true,
- "extends": ["bpmn:ScriptTask"],
- "properties": [
- {
- "name": "resultVariable",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "resource",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "Process",
- "isAbstract": true,
- "extends": ["bpmn:Process"],
- "properties": [
- {
- "name": "candidateStarterGroups",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "candidateStarterUsers",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "versionTag",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "historyTimeToLive",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "isStartableInTasklist",
- "isAttr": true,
- "type": "Boolean",
- "default": true
- }
- ]
- },
- {
- "name": "EscalationEventDefinition",
- "isAbstract": true,
- "extends": ["bpmn:EscalationEventDefinition"],
- "properties": [
- {
- "name": "escalationCodeVariable",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "FormalExpression",
- "isAbstract": true,
- "extends": ["bpmn:FormalExpression"],
- "properties": [
- {
- "name": "resource",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "Assignable",
- "extends": ["bpmn:UserTask"],
- "properties": [
- {
- "name": "assignee",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "candidateUsers",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "candidateGroups",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "dueDate",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "followUpDate",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "priority",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "Assignee",
- "supperClass": "Element",
- "meta": {
- "allowedIn": ["*"]
- },
- "properties": [
- {
- "name": "label",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "viewId",
- "type": "Number",
- "isAttr": true
- }
- ]
- },
- {
- "name": "CallActivity",
- "extends": ["bpmn:CallActivity"],
- "properties": [
- {
- "name": "calledElementBinding",
- "isAttr": true,
- "type": "String",
- "default": "latest"
- },
- {
- "name": "calledElementVersion",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "calledElementVersionTag",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "calledElementTenantId",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "caseRef",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "caseBinding",
- "isAttr": true,
- "type": "String",
- "default": "latest"
- },
- {
- "name": "caseVersion",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "caseTenantId",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "variableMappingClass",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "variableMappingDelegateExpression",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "ServiceTaskLike",
- "extends": [
- "bpmn:ServiceTask",
- "bpmn:BusinessRuleTask",
- "bpmn:SendTask",
- "bpmn:MessageEventDefinition"
- ],
- "properties": [
- {
- "name": "expression",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "class",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "delegateExpression",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "resultVariable",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "DmnCapable",
- "extends": ["bpmn:BusinessRuleTask"],
- "properties": [
- {
- "name": "decisionRef",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "decisionRefBinding",
- "isAttr": true,
- "type": "String",
- "default": "latest"
- },
- {
- "name": "decisionRefVersion",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "mapDecisionResult",
- "isAttr": true,
- "type": "String",
- "default": "resultList"
- },
- {
- "name": "decisionRefTenantId",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "ExternalCapable",
- "extends": ["flowable:ServiceTaskLike"],
- "properties": [
- {
- "name": "type",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "topic",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "TaskPriorized",
- "extends": ["bpmn:Process", "flowable:ExternalCapable"],
- "properties": [
- {
- "name": "taskPriority",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "Properties",
- "superClass": ["Element"],
- "meta": {
- "allowedIn": ["*"]
- },
- "properties": [
- {
- "name": "values",
- "type": "Property",
- "isMany": true
- }
- ]
- },
- {
- "name": "Property",
- "superClass": ["Element"],
- "properties": [
- {
- "name": "id",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "name",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "value",
- "type": "String",
- "isAttr": true
- }
- ]
- },
- {
- "name": "Button",
- "superClass": ["Element"],
- "meta": {
- "allowedIn": ["bpmn:UserTask"]
- },
- "properties": [
- {
- "name": "id",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "name",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "code",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "isHide",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "next",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "sort",
- "type": "Integer",
- "isAttr": true
- }
- ]
- },
- {
- "name": "Assignee",
- "superClass": ["Element"],
- "meta": {
- "allowedIn": ["bpmn:UserTask"]
- },
- "properties": [
- {
- "name": "id",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "type",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "value",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "condition",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "operationType",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "sort",
- "type": "Integer",
- "isAttr": true
- }
- ]
- },
- {
- "name": "Connector",
- "superClass": ["Element"],
- "meta": {
- "allowedIn": ["flowable:ServiceTaskLike"]
- },
- "properties": [
- {
- "name": "inputOutput",
- "type": "InputOutput"
- },
- {
- "name": "connectorId",
- "type": "String"
- }
- ]
- },
- {
- "name": "InputOutput",
- "superClass": ["Element"],
- "meta": {
- "allowedIn": ["bpmn:FlowNode", "flowable:Connector"]
- },
- "properties": [
- {
- "name": "inputOutput",
- "type": "InputOutput"
- },
- {
- "name": "connectorId",
- "type": "String"
- },
- {
- "name": "inputParameters",
- "isMany": true,
- "type": "InputParameter"
- },
- {
- "name": "outputParameters",
- "isMany": true,
- "type": "OutputParameter"
- }
- ]
- },
- {
- "name": "InputOutputParameter",
- "properties": [
- {
- "name": "name",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "value",
- "isBody": true,
- "type": "String"
- },
- {
- "name": "definition",
- "type": "InputOutputParameterDefinition"
- }
- ]
- },
- {
- "name": "InputOutputParameterDefinition",
- "isAbstract": true
- },
- {
- "name": "List",
- "superClass": ["InputOutputParameterDefinition"],
- "properties": [
- {
- "name": "items",
- "isMany": true,
- "type": "InputOutputParameterDefinition"
- }
- ]
- },
- {
- "name": "Map",
- "superClass": ["InputOutputParameterDefinition"],
- "properties": [
- {
- "name": "entries",
- "isMany": true,
- "type": "Entry"
- }
- ]
- },
- {
- "name": "Entry",
- "properties": [
- {
- "name": "key",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "value",
- "isBody": true,
- "type": "String"
- },
- {
- "name": "definition",
- "type": "InputOutputParameterDefinition"
- }
- ]
- },
- {
- "name": "Value",
- "superClass": ["InputOutputParameterDefinition"],
- "properties": [
- {
- "name": "id",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "name",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "value",
- "isBody": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "Script",
- "superClass": ["InputOutputParameterDefinition"],
- "properties": [
- {
- "name": "scriptFormat",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "resource",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "value",
- "isBody": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "Field",
- "superClass": ["Element"],
- "meta": {
- "allowedIn": [
- "flowable:ServiceTaskLike",
- "flowable:ExecutionListener",
- "flowable:TaskListener"
- ]
- },
- "properties": [
- {
- "name": "name",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "expression",
- "type": "String"
- },
- {
- "name": "stringValue",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "string",
- "type": "String"
- }
- ]
- },
- {
- "name": "ChildField",
- "superClass": ["Element"],
- "properties": [
- {
- "name": "id",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "name",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "type",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "required",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "readable",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "writable",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "variable",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "expression",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "datePattern",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "default",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "values",
- "type": "Value",
- "isMany": true
- }
- ]
- },
- {
- "name": "InputParameter",
- "superClass": ["InputOutputParameter"]
- },
- {
- "name": "OutputParameter",
- "superClass": ["InputOutputParameter"]
- },
- {
- "name": "Collectable",
- "isAbstract": true,
- "extends": ["bpmn:MultiInstanceLoopCharacteristics"],
- "superClass": ["flowable:AsyncCapable"],
- "properties": [
- {
- "name": "collection",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "elementVariable",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "FailedJobRetryTimeCycle",
- "superClass": ["Element"],
- "meta": {
- "allowedIn": [
- "flowable:AsyncCapable",
- "bpmn:MultiInstanceLoopCharacteristics"
- ]
- },
- "properties": [
- {
- "name": "body",
- "isBody": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "ExecutionListener",
- "superClass": ["Element"],
- "meta": {
- "allowedIn": [
- "bpmn:Task",
- "bpmn:ServiceTask",
- "bpmn:UserTask",
- "bpmn:BusinessRuleTask",
- "bpmn:ScriptTask",
- "bpmn:ReceiveTask",
- "bpmn:ManualTask",
- "bpmn:ExclusiveGateway",
- "bpmn:SequenceFlow",
- "bpmn:ParallelGateway",
- "bpmn:InclusiveGateway",
- "bpmn:EventBasedGateway",
- "bpmn:StartEvent",
- "bpmn:IntermediateCatchEvent",
- "bpmn:IntermediateThrowEvent",
- "bpmn:EndEvent",
- "bpmn:BoundaryEvent",
- "bpmn:CallActivity",
- "bpmn:SubProcess",
- "bpmn:Process"
- ]
- },
- "properties": [
- {
- "name": "expression",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "class",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "delegateExpression",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "event",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "script",
- "type": "Script"
- },
- {
- "name": "fields",
- "type": "Field",
- "isMany": true
- }
- ]
- },
- {
- "name": "TaskListener",
- "superClass": ["Element"],
- "meta": {
- "allowedIn": ["bpmn:UserTask"]
- },
- "properties": [
- {
- "name": "expression",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "class",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "delegateExpression",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "event",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "script",
- "type": "Script"
- },
- {
- "name": "fields",
- "type": "Field",
- "isMany": true
- }
- ]
- },
- {
- "name": "FormProperty",
- "superClass": ["Element"],
- "meta": {
- "allowedIn": ["bpmn:StartEvent", "bpmn:UserTask"]
- },
- "properties": [
- {
- "name": "id",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "name",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "type",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "required",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "readable",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "writable",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "variable",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "expression",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "datePattern",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "default",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "values",
- "type": "Value",
- "isMany": true
- },
- {
- "name": "children",
- "type": "ChildField",
- "isMany": true
- },
- {
- "name": "extensionElements",
- "type": "bpmn:ExtensionElements",
- "isMany": true
- }
- ]
- },
- {
- "name": "FormData",
- "superClass": ["Element"],
- "meta": {
- "allowedIn": ["bpmn:StartEvent", "bpmn:UserTask"]
- },
- "properties": [
- {
- "name": "fields",
- "type": "FormField",
- "isMany": true
- },
- {
- "name": "businessKey",
- "type": "String",
- "isAttr": true
- }
- ]
- },
- {
- "name": "FormField",
- "superClass": ["Element"],
- "properties": [
- {
- "name": "id",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "label",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "type",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "datePattern",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "defaultValue",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "properties",
- "type": "Properties"
- },
- {
- "name": "validation",
- "type": "Validation"
- },
- {
- "name": "values",
- "type": "Value",
- "isMany": true
- }
- ]
- },
- {
- "name": "Validation",
- "superClass": ["Element"],
- "properties": [
- {
- "name": "constraints",
- "type": "Constraint",
- "isMany": true
- }
- ]
- },
- {
- "name": "Constraint",
- "superClass": ["Element"],
- "properties": [
- {
- "name": "name",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "config",
- "type": "String",
- "isAttr": true
- }
- ]
- },
- {
- "name": "ConditionalEventDefinition",
- "isAbstract": true,
- "extends": ["bpmn:ConditionalEventDefinition"],
- "properties": [
- {
- "name": "variableName",
- "isAttr": true,
- "type": "String"
- },
- {
- "name": "variableEvent",
- "isAttr": true,
- "type": "String"
- }
- ]
- },
- {
- "name": "Condition",
- "superClass": ["Element"],
- "meta": {
- "allowedIn": ["bpmn:SequenceFlow"]
- },
- "properties": [
- {
- "name": "id",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "field",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "compare",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "value",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "logic",
- "type": "String",
- "isAttr": true
- },
- {
- "name": "sort",
- "type": "Integer",
- "isAttr": true
- }
- ]
- }
- ],
- "emumerations": []
-}
diff --git a/src/components/bpmnProcessDesigner/package/designer/plugins/extension-moddle/activiti/activitiExtension.js b/src/components/bpmnProcessDesigner/package/designer/plugins/extension-moddle/activiti/activitiExtension.js
deleted file mode 100644
index 48618f59..00000000
--- a/src/components/bpmnProcessDesigner/package/designer/plugins/extension-moddle/activiti/activitiExtension.js
+++ /dev/null
@@ -1,74 +0,0 @@
-"use strict";
-
-const some = require('min-dash').some
-
-const ALLOWED_TYPES = {
- FailedJobRetryTimeCycle: ['bpmn:StartEvent', 'bpmn:BoundaryEvent', 'bpmn:IntermediateCatchEvent', 'bpmn:Activity'],
- Connector: ['bpmn:EndEvent', 'bpmn:IntermediateThrowEvent'],
- Field: ['bpmn:EndEvent', 'bpmn:IntermediateThrowEvent']
-}
-
-function is(element, type) {
- return element && typeof element.$instanceOf === "function" && element.$instanceOf(type);
-}
-
-function exists(element) {
- return element && element.length;
-}
-
-function includesType(collection, type) {
- return (
- exists(collection) &&
- some(collection, function(element) {
- return is(element, type);
- })
- );
-}
-
-function anyType(element, types) {
- return some(types, function(type) {
- return is(element, type);
- });
-}
-
-function isAllowed(propName, propDescriptor, newElement) {
- const name = propDescriptor.name,
- types = ALLOWED_TYPES[name.replace(/activiti:/, '')]
-
- return name === propName && anyType(newElement, types);
-}
-
-function ActivitiModdleExtension(eventBus) {
- eventBus.on(
- "property.clone",
- function(context) {
- const newElement = context.newElement,
- propDescriptor = context.propertyDescriptor
-
- this.canCloneProperty(newElement, propDescriptor);
- },
- this
- );
-}
-
-ActivitiModdleExtension.$inject = ["eventBus"];
-
-ActivitiModdleExtension.prototype.canCloneProperty = function(newElement, propDescriptor) {
- if (isAllowed("activiti:FailedJobRetryTimeCycle", propDescriptor, newElement)) {
- return (
- includesType(newElement.eventDefinitions, "bpmn:TimerEventDefinition") ||
- includesType(newElement.eventDefinitions, "bpmn:SignalEventDefinition") ||
- is(newElement.loopCharacteristics, "bpmn:MultiInstanceLoopCharacteristics")
- );
- }
-
- if (isAllowed("activiti:Connector", propDescriptor, newElement)) {
- return includesType(newElement.eventDefinitions, "bpmn:MessageEventDefinition");
- }
-
- if (isAllowed("activiti:Field", propDescriptor, newElement)) {
- return includesType(newElement.eventDefinitions, "bpmn:MessageEventDefinition");
- }
-};
-
-module.exports = ActivitiModdleExtension;
diff --git a/src/components/bpmnProcessDesigner/package/designer/plugins/extension-moddle/activiti/index.js b/src/components/bpmnProcessDesigner/package/designer/plugins/extension-moddle/activiti/index.js
deleted file mode 100644
index 6ce014af..00000000
--- a/src/components/bpmnProcessDesigner/package/designer/plugins/extension-moddle/activiti/index.js
+++ /dev/null
@@ -1,9 +0,0 @@
-/*
- * @author igdianov
- * address https://github.com/igdianov/activiti-bpmn-moddle
- * */
-
-module.exports = {
- __init__: ["ActivitiModdleExtension"],
- ActivitiModdleExtension: ["type", require("./activitiExtension")]
-};
diff --git a/src/components/bpmnProcessDesigner/package/designer/plugins/extension-moddle/camunda/extension.js b/src/components/bpmnProcessDesigner/package/designer/plugins/extension-moddle/camunda/extension.js
deleted file mode 100644
index 77699c92..00000000
--- a/src/components/bpmnProcessDesigner/package/designer/plugins/extension-moddle/camunda/extension.js
+++ /dev/null
@@ -1,146 +0,0 @@
-"use strict";
-
-const isFunction = require('min-dash').isFunction,
- isObject = require('min-dash').isObject,
- some = require('min-dash').some
-
-const WILDCARD = '*'
-
-function CamundaModdleExtension(eventBus) {
- const self = this
-
- eventBus.on("moddleCopy.canCopyProperty", function(context) {
- const property = context.property,
- parent = context.parent
-
- return self.canCopyProperty(property, parent);
- });
-}
-
-CamundaModdleExtension.$inject = ["eventBus"];
-
-/**
- * Check wether to disallow copying property.
- */
-CamundaModdleExtension.prototype.canCopyProperty = function(property, parent) {
- // (1) check wether property is allowed in parent
- if (isObject(property) && !isAllowedInParent(property, parent)) {
- return false;
- }
-
- // (2) check more complex scenarios
-
- if (is(property, "camunda:InputOutput") && !this.canHostInputOutput(parent)) {
- return false;
- }
-
- if (isAny(property, ["camunda:Connector", "camunda:Field"]) && !this.canHostConnector(parent)) {
- return false;
- }
-
- if (is(property, "camunda:In") && !this.canHostIn(parent)) {
- return false;
- }
-};
-
-CamundaModdleExtension.prototype.canHostInputOutput = function(parent) {
- // allowed in camunda:Connector
- const connector = getParent(parent, 'camunda:Connector')
-
- if (connector) {
- return true;
- }
-
- // special rules inside bpmn:FlowNode
- const flowNode = getParent(parent, 'bpmn:FlowNode')
-
- if (!flowNode) {
- return false;
- }
-
- if (isAny(flowNode, ["bpmn:StartEvent", "bpmn:Gateway", "bpmn:BoundaryEvent"])) {
- return false;
- }
-
- return !(is(flowNode, "bpmn:SubProcess") && flowNode.get("triggeredByEvent"));
-
-
-};
-
-CamundaModdleExtension.prototype.canHostConnector = function(parent) {
- const serviceTaskLike = getParent(parent, 'camunda:ServiceTaskLike')
-
- if (is(serviceTaskLike, "bpmn:MessageEventDefinition")) {
- // only allow on throw and end events
- return getParent(parent, "bpmn:IntermediateThrowEvent") || getParent(parent, "bpmn:EndEvent");
- }
-
- return true;
-};
-
-CamundaModdleExtension.prototype.canHostIn = function(parent) {
- const callActivity = getParent(parent, 'bpmn:CallActivity')
-
- if (callActivity) {
- return true;
- }
-
- const signalEventDefinition = getParent(parent, 'bpmn:SignalEventDefinition')
-
- if (signalEventDefinition) {
- // only allow on throw and end events
- return getParent(parent, "bpmn:IntermediateThrowEvent") || getParent(parent, "bpmn:EndEvent");
- }
-
- return true;
-};
-
-module.exports = CamundaModdleExtension;
-
-// helpers //////////
-
-function is(element, type) {
- return element && isFunction(element.$instanceOf) && element.$instanceOf(type);
-}
-
-function isAny(element, types) {
- return some(types, function(t) {
- return is(element, t);
- });
-}
-
-function getParent(element, type) {
- if (!type) {
- return element.$parent;
- }
-
- if (is(element, type)) {
- return element;
- }
-
- if (!element.$parent) {
- return;
- }
-
- return getParent(element.$parent, type);
-}
-
-function isAllowedInParent(property, parent) {
- // (1) find property descriptor
- const descriptor = property.$type && property.$model.getTypeDescriptor(property.$type)
-
- const allowedIn = descriptor && descriptor.meta && descriptor.meta.allowedIn
-
- if (!allowedIn || isWildcard(allowedIn)) {
- return true;
- }
-
- // (2) check wether property has parent of allowed type
- return some(allowedIn, function(type) {
- return getParent(parent, type);
- });
-}
-
-function isWildcard(allowedIn) {
- return allowedIn.indexOf(WILDCARD) !== -1;
-}
diff --git a/src/components/bpmnProcessDesigner/package/designer/plugins/extension-moddle/camunda/index.js b/src/components/bpmnProcessDesigner/package/designer/plugins/extension-moddle/camunda/index.js
deleted file mode 100644
index 0a9e41cf..00000000
--- a/src/components/bpmnProcessDesigner/package/designer/plugins/extension-moddle/camunda/index.js
+++ /dev/null
@@ -1,6 +0,0 @@
-"use strict";
-
-module.exports = {
- __init__: ["camundaModdleExtension"],
- camundaModdleExtension: ["type", require("./extension")]
-};
diff --git a/src/components/bpmnProcessDesigner/package/designer/plugins/extension-moddle/flowable/flowableExtension.js b/src/components/bpmnProcessDesigner/package/designer/plugins/extension-moddle/flowable/flowableExtension.js
deleted file mode 100644
index b4ee8754..00000000
--- a/src/components/bpmnProcessDesigner/package/designer/plugins/extension-moddle/flowable/flowableExtension.js
+++ /dev/null
@@ -1,74 +0,0 @@
-"use strict";
-
-const some = require('min-dash').some
-
-const ALLOWED_TYPES = {
- FailedJobRetryTimeCycle: ['bpmn:StartEvent', 'bpmn:BoundaryEvent', 'bpmn:IntermediateCatchEvent', 'bpmn:Activity'],
- Connector: ['bpmn:EndEvent', 'bpmn:IntermediateThrowEvent'],
- Field: ['bpmn:EndEvent', 'bpmn:IntermediateThrowEvent']
-}
-
-function is(element, type) {
- return element && typeof element.$instanceOf === "function" && element.$instanceOf(type);
-}
-
-function exists(element) {
- return element && element.length;
-}
-
-function includesType(collection, type) {
- return (
- exists(collection) &&
- some(collection, function(element) {
- return is(element, type);
- })
- );
-}
-
-function anyType(element, types) {
- return some(types, function(type) {
- return is(element, type);
- });
-}
-
-function isAllowed(propName, propDescriptor, newElement) {
- const name = propDescriptor.name,
- types = ALLOWED_TYPES[name.replace(/flowable:/, '')]
-
- return name === propName && anyType(newElement, types);
-}
-
-function FlowableModdleExtension(eventBus) {
- eventBus.on(
- "property.clone",
- function(context) {
- const newElement = context.newElement,
- propDescriptor = context.propertyDescriptor
-
- this.canCloneProperty(newElement, propDescriptor);
- },
- this
- );
-}
-
-FlowableModdleExtension.$inject = ["eventBus"];
-
-FlowableModdleExtension.prototype.canCloneProperty = function(newElement, propDescriptor) {
- if (isAllowed("flowable:FailedJobRetryTimeCycle", propDescriptor, newElement)) {
- return (
- includesType(newElement.eventDefinitions, "bpmn:TimerEventDefinition") ||
- includesType(newElement.eventDefinitions, "bpmn:SignalEventDefinition") ||
- is(newElement.loopCharacteristics, "bpmn:MultiInstanceLoopCharacteristics")
- );
- }
-
- if (isAllowed("flowable:Connector", propDescriptor, newElement)) {
- return includesType(newElement.eventDefinitions, "bpmn:MessageEventDefinition");
- }
-
- if (isAllowed("flowable:Field", propDescriptor, newElement)) {
- return includesType(newElement.eventDefinitions, "bpmn:MessageEventDefinition");
- }
-};
-
-module.exports = FlowableModdleExtension;
diff --git a/src/components/bpmnProcessDesigner/package/designer/plugins/extension-moddle/flowable/index.js b/src/components/bpmnProcessDesigner/package/designer/plugins/extension-moddle/flowable/index.js
deleted file mode 100644
index 59837cca..00000000
--- a/src/components/bpmnProcessDesigner/package/designer/plugins/extension-moddle/flowable/index.js
+++ /dev/null
@@ -1,9 +0,0 @@
-/*
- * @author igdianov
- * address https://github.com/igdianov/activiti-bpmn-moddle
- * */
-
-module.exports = {
- __init__: ["FlowableModdleExtension"],
- FlowableModdleExtension: ["type", require("./flowableExtension")]
-};
diff --git a/src/components/bpmnProcessDesigner/package/designer/plugins/palette/CustomPalette.js b/src/components/bpmnProcessDesigner/package/designer/plugins/palette/CustomPalette.js
deleted file mode 100644
index 2967c33f..00000000
--- a/src/components/bpmnProcessDesigner/package/designer/plugins/palette/CustomPalette.js
+++ /dev/null
@@ -1,156 +0,0 @@
-import PaletteProvider from "bpmn-js/lib/features/palette/PaletteProvider";
-import { assign } from "min-dash";
-
-export default function CustomPalette(palette, create, elementFactory, spaceTool, lassoTool, handTool, globalConnect, translate) {
- PaletteProvider.call(this, palette, create, elementFactory, spaceTool, lassoTool, handTool, globalConnect, translate, 2000);
-}
-
-const F = function() {}; // 核心,利用空对象作为中介;
-F.prototype = PaletteProvider.prototype; // 核心,将父类的原型赋值给空对象F;
-
-// 利用中介函数重写原型链方法
-F.prototype.getPaletteEntries = function() {
- const actions = {},
- create = this._create,
- elementFactory = this._elementFactory,
- spaceTool = this._spaceTool,
- lassoTool = this._lassoTool,
- handTool = this._handTool,
- globalConnect = this._globalConnect,
- translate = this._translate
-
- function createAction(type, group, className, title, options) {
- function createListener(event) {
- const shape = elementFactory.createShape(assign({ type: type }, options))
-
- if (options) {
- shape.businessObject.di.isExpanded = options.isExpanded;
- }
-
- create.start(event, shape);
- }
-
- const shortType = type.replace(/^bpmn:/, '')
-
- return {
- group: group,
- className: className,
- title: title || translate("Create {type}", { type: shortType }),
- action: {
- dragstart: createListener,
- click: createListener
- }
- };
- }
-
- function createSubprocess(event) {
- const subProcess = elementFactory.createShape({
- type: 'bpmn:SubProcess',
- x: 0,
- y: 0,
- isExpanded: true
- })
-
- const startEvent = elementFactory.createShape({
- type: 'bpmn:StartEvent',
- x: 40,
- y: 82,
- parent: subProcess
- })
-
- create.start(event, [subProcess, startEvent], {
- hints: {
- autoSelect: [startEvent]
- }
- });
- }
-
- function createParticipant(event) {
- create.start(event, elementFactory.createParticipantShape());
- }
-
- assign(actions, {
- "hand-tool": {
- group: "tools",
- className: "bpmn-icon-hand-tool",
- title: translate("Activate the hand tool"),
- action: {
- click: function(event) {
- handTool.activateHand(event);
- }
- }
- },
- "lasso-tool": {
- group: "tools",
- className: "bpmn-icon-lasso-tool",
- title: translate("Activate the lasso tool"),
- action: {
- click: function(event) {
- lassoTool.activateSelection(event);
- }
- }
- },
- "space-tool": {
- group: "tools",
- className: "bpmn-icon-space-tool",
- title: translate("Activate the create/remove space tool"),
- action: {
- click: function(event) {
- spaceTool.activateSelection(event);
- }
- }
- },
- "global-connect-tool": {
- group: "tools",
- className: "bpmn-icon-connection-multi",
- title: translate("Activate the global connect tool"),
- action: {
- click: function(event) {
- globalConnect.toggle(event);
- }
- }
- },
- "tool-separator": {
- group: "tools",
- separator: true
- },
- "create.start-event": createAction("bpmn:StartEvent", "event", "bpmn-icon-start-event-none", translate("Create StartEvent")),
- "create.intermediate-event": createAction(
- "bpmn:IntermediateThrowEvent",
- "event",
- "bpmn-icon-intermediate-event-none",
- translate("Create Intermediate/Boundary Event")
- ),
- "create.end-event": createAction("bpmn:EndEvent", "event", "bpmn-icon-end-event-none", translate("Create EndEvent")),
- "create.exclusive-gateway": createAction("bpmn:ExclusiveGateway", "gateway", "bpmn-icon-gateway-none", translate("Create Gateway")),
- "create.user-task": createAction("bpmn:UserTask", "activity", "bpmn-icon-user-task", translate("Create User Task")),
- "create.data-object": createAction("bpmn:DataObjectReference", "data-object", "bpmn-icon-data-object", translate("Create DataObjectReference")),
- "create.data-store": createAction("bpmn:DataStoreReference", "data-store", "bpmn-icon-data-store", translate("Create DataStoreReference")),
- "create.subprocess-expanded": {
- group: "activity",
- className: "bpmn-icon-subprocess-expanded",
- title: translate("Create expanded SubProcess"),
- action: {
- dragstart: createSubprocess,
- click: createSubprocess
- }
- },
- "create.participant-expanded": {
- group: "collaboration",
- className: "bpmn-icon-participant",
- title: translate("Create Pool/Participant"),
- action: {
- dragstart: createParticipant,
- click: createParticipant
- }
- },
- "create.group": createAction("bpmn:Group", "artifact", "bpmn-icon-group", translate("Create Group"))
- });
-
- return actions;
-};
-
-CustomPalette.$inject = ["palette", "create", "elementFactory", "spaceTool", "lassoTool", "handTool", "globalConnect", "translate"];
-
-CustomPalette.prototype = new F(); // 核心,将 F的实例赋值给子类;
-CustomPalette.prototype.constructor = CustomPalette; // 修复子类CustomPalette的构造器指向,防止原型链的混乱;
diff --git a/src/components/bpmnProcessDesigner/package/designer/plugins/palette/index.js b/src/components/bpmnProcessDesigner/package/designer/plugins/palette/index.js
deleted file mode 100644
index 7a6b86e9..00000000
--- a/src/components/bpmnProcessDesigner/package/designer/plugins/palette/index.js
+++ /dev/null
@@ -1,22 +0,0 @@
-// import PaletteModule from "diagram-js/lib/features/palette";
-// import CreateModule from "diagram-js/lib/features/create";
-// import SpaceToolModule from "diagram-js/lib/features/space-tool";
-// import LassoToolModule from "diagram-js/lib/features/lasso-tool";
-// import HandToolModule from "diagram-js/lib/features/hand-tool";
-// import GlobalConnectModule from "diagram-js/lib/features/global-connect";
-// import translate from "diagram-js/lib/i18n/translate";
-//
-// import PaletteProvider from "./paletteProvider";
-//
-// export default {
-// __depends__: [PaletteModule, CreateModule, SpaceToolModule, LassoToolModule, HandToolModule, GlobalConnectModule, translate],
-// __init__: ["paletteProvider"],
-// paletteProvider: ["type", PaletteProvider]
-// };
-
-import CustomPalette from "./CustomPalette";
-
-export default {
- __init__: ["paletteProvider"],
- paletteProvider: ["type", CustomPalette]
-};
diff --git a/src/components/bpmnProcessDesigner/package/designer/plugins/palette/paletteProvider.js b/src/components/bpmnProcessDesigner/package/designer/plugins/palette/paletteProvider.js
deleted file mode 100644
index a4d40f12..00000000
--- a/src/components/bpmnProcessDesigner/package/designer/plugins/palette/paletteProvider.js
+++ /dev/null
@@ -1,160 +0,0 @@
-import { assign } from "min-dash";
-
-/**
- * A palette provider for BPMN 2.0 elements.
- */
-export default function PaletteProvider(palette, create, elementFactory, spaceTool, lassoTool, handTool, globalConnect, translate) {
- this._palette = palette;
- this._create = create;
- this._elementFactory = elementFactory;
- this._spaceTool = spaceTool;
- this._lassoTool = lassoTool;
- this._handTool = handTool;
- this._globalConnect = globalConnect;
- this._translate = translate;
-
- palette.registerProvider(this);
-}
-
-PaletteProvider.$inject = ["palette", "create", "elementFactory", "spaceTool", "lassoTool", "handTool", "globalConnect", "translate"];
-
-PaletteProvider.prototype.getPaletteEntries = function() {
- const actions = {},
- create = this._create,
- elementFactory = this._elementFactory,
- spaceTool = this._spaceTool,
- lassoTool = this._lassoTool,
- handTool = this._handTool,
- globalConnect = this._globalConnect,
- translate = this._translate
-
- function createAction(type, group, className, title, options) {
- function createListener(event) {
- const shape = elementFactory.createShape(assign({ type: type }, options))
-
- if (options) {
- shape.businessObject.di.isExpanded = options.isExpanded;
- }
-
- create.start(event, shape);
- }
-
- const shortType = type.replace(/^bpmn:/, '')
-
- return {
- group: group,
- className: className,
- title: title || translate("Create {type}", { type: shortType }),
- action: {
- dragstart: createListener,
- click: createListener
- }
- };
- }
-
- function createSubprocess(event) {
- const subProcess = elementFactory.createShape({
- type: 'bpmn:SubProcess',
- x: 0,
- y: 0,
- isExpanded: true
- })
-
- const startEvent = elementFactory.createShape({
- type: 'bpmn:StartEvent',
- x: 40,
- y: 82,
- parent: subProcess
- })
-
- create.start(event, [subProcess, startEvent], {
- hints: {
- autoSelect: [startEvent]
- }
- });
- }
-
- function createParticipant(event) {
- create.start(event, elementFactory.createParticipantShape());
- }
-
- assign(actions, {
- "hand-tool": {
- group: "tools",
- className: "bpmn-icon-hand-tool",
- title: translate("Activate the hand tool"),
- action: {
- click: function(event) {
- handTool.activateHand(event);
- }
- }
- },
- "lasso-tool": {
- group: "tools",
- className: "bpmn-icon-lasso-tool",
- title: translate("Activate the lasso tool"),
- action: {
- click: function(event) {
- lassoTool.activateSelection(event);
- }
- }
- },
- "space-tool": {
- group: "tools",
- className: "bpmn-icon-space-tool",
- title: translate("Activate the create/remove space tool"),
- action: {
- click: function(event) {
- spaceTool.activateSelection(event);
- }
- }
- },
- "global-connect-tool": {
- group: "tools",
- className: "bpmn-icon-connection-multi",
- title: translate("Activate the global connect tool"),
- action: {
- click: function(event) {
- globalConnect.toggle(event);
- }
- }
- },
- "tool-separator": {
- group: "tools",
- separator: true
- },
- "create.start-event": createAction("bpmn:StartEvent", "event", "bpmn-icon-start-event-none", translate("Create StartEvent")),
- "create.intermediate-event": createAction(
- "bpmn:IntermediateThrowEvent",
- "event",
- "bpmn-icon-intermediate-event-none",
- translate("Create Intermediate/Boundary Event")
- ),
- "create.end-event": createAction("bpmn:EndEvent", "event", "bpmn-icon-end-event-none", translate("Create EndEvent")),
- "create.exclusive-gateway": createAction("bpmn:ExclusiveGateway", "gateway", "bpmn-icon-gateway-none", translate("Create Gateway")),
- "create.user-task": createAction("bpmn:UserTask", "activity", "bpmn-icon-user-task", translate("Create User Task")),
- "create.data-object": createAction("bpmn:DataObjectReference", "data-object", "bpmn-icon-data-object", translate("Create DataObjectReference")),
- "create.data-store": createAction("bpmn:DataStoreReference", "data-store", "bpmn-icon-data-store", translate("Create DataStoreReference")),
- "create.subprocess-expanded": {
- group: "activity",
- className: "bpmn-icon-subprocess-expanded",
- title: translate("Create expanded SubProcess"),
- action: {
- dragstart: createSubprocess,
- click: createSubprocess
- }
- },
- "create.participant-expanded": {
- group: "collaboration",
- className: "bpmn-icon-participant",
- title: translate("Create Pool/Participant"),
- action: {
- dragstart: createParticipant,
- click: createParticipant
- }
- },
- "create.group": createAction("bpmn:Group", "artifact", "bpmn-icon-group", translate("Create Group"))
- });
-
- return actions;
-};
diff --git a/src/components/bpmnProcessDesigner/package/designer/plugins/translate/customTranslate.js b/src/components/bpmnProcessDesigner/package/designer/plugins/translate/customTranslate.js
deleted file mode 100644
index 508040d6..00000000
--- a/src/components/bpmnProcessDesigner/package/designer/plugins/translate/customTranslate.js
+++ /dev/null
@@ -1,41 +0,0 @@
-// import translations from "./zh";
-//
-// export default function customTranslate(template, replacements) {
-// replacements = replacements || {};
-//
-// // Translate
-// template = translations[template] || template;
-//
-// // Replace
-// return template.replace(/{([^}]+)}/g, function(_, key) {
-// let str = replacements[key];
-// if (
-// translations[replacements[key]] !== null &&
-// translations[replacements[key]] !== "undefined"
-// ) {
-// // eslint-disable-next-line no-mixed-spaces-and-tabs
-// str = translations[replacements[key]];
-// // eslint-disable-next-line no-mixed-spaces-and-tabs
-// }
-// return str || "{" + key + "}";
-// });
-// }
-
-export default function customTranslate(translations) {
- return function(template, replacements) {
- replacements = replacements || {};
- // Translate
- template = translations[template] || template;
-
- // Replace
- return template.replace(/{([^}]+)}/g, function(_, key) {
- let str = replacements[key];
- if (translations[replacements[key]] !== null && translations[replacements[key]] !== undefined) {
- // eslint-disable-next-line no-mixed-spaces-and-tabs
- str = translations[replacements[key]];
- // eslint-disable-next-line no-mixed-spaces-and-tabs
- }
- return str || "{" + key + "}";
- });
- };
-}
diff --git a/src/components/bpmnProcessDesigner/package/designer/plugins/translate/zh.js b/src/components/bpmnProcessDesigner/package/designer/plugins/translate/zh.js
deleted file mode 100644
index 855b561e..00000000
--- a/src/components/bpmnProcessDesigner/package/designer/plugins/translate/zh.js
+++ /dev/null
@@ -1,238 +0,0 @@
-/**
- * This is a sample file that should be replaced with the actual translation.
- *
- * Checkout https://github.com/bpmn-io/bpmn-js-i18n for a list of available
- * translations and labels to translate.
- */
-export default {
- // 添加部分
- "Append EndEvent": "追加结束事件",
- "Append Gateway": "追加网关",
- "Append Task": "追加任务",
- "Append Intermediate/Boundary Event": "追加中间抛出事件/边界事件",
-
- "Activate the global connect tool": "激活全局连接工具",
- "Append {type}": "添加 {type}",
- "Add Lane above": "在上面添加道",
- "Divide into two Lanes": "分割成两个道",
- "Divide into three Lanes": "分割成三个道",
- "Add Lane below": "在下面添加道",
- "Append compensation activity": "追加补偿活动",
- "Change type": "修改类型",
- "Connect using Association": "使用关联连接",
- "Connect using Sequence/MessageFlow or Association": "使用顺序/消息流或者关联连接",
- "Connect using DataInputAssociation": "使用数据输入关联连接",
- Remove: "移除",
- "Activate the hand tool": "激活抓手工具",
- "Activate the lasso tool": "激活套索工具",
- "Activate the create/remove space tool": "激活创建/删除空间工具",
- "Create expanded SubProcess": "创建扩展子过程",
- "Create IntermediateThrowEvent/BoundaryEvent": "创建中间抛出事件/边界事件",
- "Create Pool/Participant": "创建池/参与者",
- "Parallel Multi Instance": "并行多重事件",
- "Sequential Multi Instance": "时序多重事件",
- DataObjectReference: "数据对象参考",
- DataStoreReference: "数据存储参考",
- Loop: "循环",
- "Ad-hoc": "即席",
- "Create {type}": "创建 {type}",
- Task: "任务",
- "Send Task": "发送任务",
- "Receive Task": "接收任务",
- "User Task": "用户任务",
- "Manual Task": "手工任务",
- "Business Rule Task": "业务规则任务",
- "Service Task": "服务任务",
- "Script Task": "脚本任务",
- "Call Activity": "调用活动",
- "Sub Process (collapsed)": "子流程(折叠的)",
- "Sub Process (expanded)": "子流程(展开的)",
- "Start Event": "开始事件",
- StartEvent: "开始事件",
- "Intermediate Throw Event": "中间事件",
- "End Event": "结束事件",
- EndEvent: "结束事件",
- "Create StartEvent": "创建开始事件",
- "Create EndEvent": "创建结束事件",
- "Create Task": "创建任务",
- "Create User Task": "创建用户任务",
- "Create Gateway": "创建网关",
- "Create DataObjectReference": "创建数据对象",
- "Create DataStoreReference": "创建数据存储",
- "Create Group": "创建分组",
- "Create Intermediate/Boundary Event": "创建中间/边界事件",
- "Message Start Event": "消息开始事件",
- "Timer Start Event": "定时开始事件",
- "Conditional Start Event": "条件开始事件",
- "Signal Start Event": "信号开始事件",
- "Error Start Event": "错误开始事件",
- "Escalation Start Event": "升级开始事件",
- "Compensation Start Event": "补偿开始事件",
- "Message Start Event (non-interrupting)": "消息开始事件(非中断)",
- "Timer Start Event (non-interrupting)": "定时开始事件(非中断)",
- "Conditional Start Event (non-interrupting)": "条件开始事件(非中断)",
- "Signal Start Event (non-interrupting)": "信号开始事件(非中断)",
- "Escalation Start Event (non-interrupting)": "升级开始事件(非中断)",
- "Message Intermediate Catch Event": "消息中间捕获事件",
- "Message Intermediate Throw Event": "消息中间抛出事件",
- "Timer Intermediate Catch Event": "定时中间捕获事件",
- "Escalation Intermediate Throw Event": "升级中间抛出事件",
- "Conditional Intermediate Catch Event": "条件中间捕获事件",
- "Link Intermediate Catch Event": "链接中间捕获事件",
- "Link Intermediate Throw Event": "链接中间抛出事件",
- "Compensation Intermediate Throw Event": "补偿中间抛出事件",
- "Signal Intermediate Catch Event": "信号中间捕获事件",
- "Signal Intermediate Throw Event": "信号中间抛出事件",
- "Message End Event": "消息结束事件",
- "Escalation End Event": "定时结束事件",
- "Error End Event": "错误结束事件",
- "Cancel End Event": "取消结束事件",
- "Compensation End Event": "补偿结束事件",
- "Signal End Event": "信号结束事件",
- "Terminate End Event": "终止结束事件",
- "Message Boundary Event": "消息边界事件",
- "Message Boundary Event (non-interrupting)": "消息边界事件(非中断)",
- "Timer Boundary Event": "定时边界事件",
- "Timer Boundary Event (non-interrupting)": "定时边界事件(非中断)",
- "Escalation Boundary Event": "升级边界事件",
- "Escalation Boundary Event (non-interrupting)": "升级边界事件(非中断)",
- "Conditional Boundary Event": "条件边界事件",
- "Conditional Boundary Event (non-interrupting)": "条件边界事件(非中断)",
- "Error Boundary Event": "错误边界事件",
- "Cancel Boundary Event": "取消边界事件",
- "Signal Boundary Event": "信号边界事件",
- "Signal Boundary Event (non-interrupting)": "信号边界事件(非中断)",
- "Compensation Boundary Event": "补偿边界事件",
- "Exclusive Gateway": "互斥网关",
- "Parallel Gateway": "并行网关",
- "Inclusive Gateway": "相容网关",
- "Complex Gateway": "复杂网关",
- "Event based Gateway": "事件网关",
- Transaction: "转运",
- "Sub Process": "子流程",
- "Event Sub Process": "事件子流程",
- "Collapsed Pool": "折叠池",
- "Expanded Pool": "展开池",
-
- // Errors
- "no parent for {element} in {parent}": "在{parent}里,{element}没有父类",
- "no shape type specified": "没有指定的形状类型",
- "flow elements must be children of pools/participants": "流元素必须是池/参与者的子类",
- "out of bounds release": "out of bounds release",
- "more than {count} child lanes": "子道大于{count} ",
- "element required": "元素不能为空",
- "diagram not part of bpmn:Definitions": "流程图不符合bpmn规范",
- "no diagram to display": "没有可展示的流程图",
- "no process or collaboration to display": "没有可展示的流程/协作",
- "element {element} referenced by {referenced}#{property} not yet drawn": "由{referenced}#{property}引用的{element}元素仍未绘制",
- "already rendered {element}": "{element} 已被渲染",
- "failed to import {element}": "导入{element}失败",
- //属性面板的参数
- Id: "编号",
- Name: "名称",
- General: "常规",
- Details: "详情",
- "Message Name": "消息名称",
- Message: "消息",
- Initiator: "创建者",
- "Asynchronous Continuations": "持续异步",
- "Asynchronous Before": "异步前",
- "Asynchronous After": "异步后",
- "Job Configuration": "工作配置",
- Exclusive: "排除",
- "Job Priority": "工作优先级",
- "Retry Time Cycle": "重试时间周期",
- Documentation: "文档",
- "Element Documentation": "元素文档",
- "History Configuration": "历史配置",
- "History Time To Live": "历史的生存时间",
- Forms: "表单",
- "Form Key": "表单key",
- "Form Fields": "表单字段",
- "Business Key": "业务key",
- "Form Field": "表单字段",
- ID: "编号",
- Type: "类型",
- Label: "名称",
- "Default Value": "默认值",
- "Default Flow": "默认流转路径",
- "Conditional Flow": "条件流转路径",
- "Sequence Flow": "普通流转路径",
- Validation: "校验",
- "Add Constraint": "添加约束",
- Config: "配置",
- Properties: "属性",
- "Add Property": "添加属性",
- Value: "值",
- Listeners: "监听器",
- "Execution Listener": "执行监听",
- "Event Type": "事件类型",
- "Listener Type": "监听器类型",
- "Java Class": "Java类",
- Expression: "表达式",
- "Must provide a value": "必须提供一个值",
- "Delegate Expression": "代理表达式",
- Script: "脚本",
- "Script Format": "脚本格式",
- "Script Type": "脚本类型",
- "Inline Script": "内联脚本",
- "External Script": "外部脚本",
- Resource: "资源",
- "Field Injection": "字段注入",
- Extensions: "扩展",
- "Input/Output": "输入/输出",
- "Input Parameters": "输入参数",
- "Output Parameters": "输出参数",
- Parameters: "参数",
- "Output Parameter": "输出参数",
- "Timer Definition Type": "定时器定义类型",
- "Timer Definition": "定时器定义",
- Date: "日期",
- Duration: "持续",
- Cycle: "循环",
- Signal: "信号",
- "Signal Name": "信号名称",
- Escalation: "升级",
- Error: "错误",
- "Link Name": "链接名称",
- Condition: "条件名称",
- "Variable Name": "变量名称",
- "Variable Event": "变量事件",
- "Specify more than one variable change event as a comma separated list.": "多个变量事件以逗号隔开",
- "Wait for Completion": "等待完成",
- "Activity Ref": "活动参考",
- "Version Tag": "版本标签",
- Executable: "可执行文件",
- "External Task Configuration": "扩展任务配置",
- "Task Priority": "任务优先级",
- External: "外部",
- Connector: "连接器",
- "Must configure Connector": "必须配置连接器",
- "Connector Id": "连接器编号",
- Implementation: "实现方式",
- "Field Injections": "字段注入",
- Fields: "字段",
- "Result Variable": "结果变量",
- Topic: "主题",
- "Configure Connector": "配置连接器",
- "Input Parameter": "输入参数",
- Assignee: "代理人",
- "Candidate Users": "候选用户",
- "Candidate Groups": "候选组",
- "Due Date": "到期时间",
- "Follow Up Date": "跟踪日期",
- Priority: "优先级",
- "The follow up date as an EL expression (e.g. ${someDate} or an ISO date (e.g. 2015-06-26T09:54:00)":
- "跟踪日期必须符合EL表达式,如: ${someDate} ,或者一个ISO标准日期,如:2015-06-26T09:54:00",
- "The due date as an EL expression (e.g. ${someDate} or an ISO date (e.g. 2015-06-26T09:54:00)":
- "跟踪日期必须符合EL表达式,如: ${someDate} ,或者一个ISO标准日期,如:2015-06-26T09:54:00",
- Variables: "变量",
- "Candidate Starter Configuration": "候选人起动器配置",
- "Candidate Starter Groups": "候选人起动器组",
- "This maps to the process definition key.": "这映射到流程定义键。",
- "Candidate Starter Users": "候选人起动器的用户",
- "Specify more than one user as a comma separated list.": "指定多个用户作为逗号分隔的列表。",
- "Tasklist Configuration": "Tasklist配置",
- Startable: "启动",
- "Specify more than one group as a comma separated list.": "指定多个组作为逗号分隔的列表。"
-};
diff --git a/src/components/bpmnProcessDesigner/package/index.js b/src/components/bpmnProcessDesigner/package/index.js
deleted file mode 100644
index cac33e7a..00000000
--- a/src/components/bpmnProcessDesigner/package/index.js
+++ /dev/null
@@ -1,21 +0,0 @@
-import MyProcessDesigner from "./designer";
-import MyProcessPenal from "./penal";
-import MyProcessViewer from './designer/index2';
-
-const components = [MyProcessDesigner, MyProcessPenal, MyProcessViewer];
-
-const install = function(Vue) {
- components.forEach(component => {
- Vue.component(component.name, component);
- });
-};
-
-if (typeof window !== "undefined" && window.Vue) {
- install(window.Vue);
-}
-
-export default {
- version: "0.0.1",
- install,
- ...components
-};
diff --git a/src/components/bpmnProcessDesigner/package/palette/ProcessPalette.vue b/src/components/bpmnProcessDesigner/package/palette/ProcessPalette.vue
deleted file mode 100644
index 8d54dee2..00000000
--- a/src/components/bpmnProcessDesigner/package/palette/ProcessPalette.vue
+++ /dev/null
@@ -1,48 +0,0 @@
-
-
-
-
-
-
-
diff --git a/src/components/bpmnProcessDesigner/package/penal/PropertiesPanel.vue b/src/components/bpmnProcessDesigner/package/penal/PropertiesPanel.vue
deleted file mode 100644
index 200b3bf2..00000000
--- a/src/components/bpmnProcessDesigner/package/penal/PropertiesPanel.vue
+++ /dev/null
@@ -1,197 +0,0 @@
-
-
-
-
- 常规
-
-
-
- 消息与信号
-
-
-
- 流转条件
-
-
-
- 表单
-
- 友情提示:使用 流程表单
- 替代,提供更好的表单设计功能
-
-
- 任务
-
-
-
- 多实例
-
-
-
- 执行监听器
-
-
-
- 任务监听器
-
-
-
- 扩展属性
-
-
-
- 其他
-
-
-
-
-
-
diff --git a/src/components/bpmnProcessDesigner/package/penal/base/ElementBaseInfo.vue b/src/components/bpmnProcessDesigner/package/penal/base/ElementBaseInfo.vue
deleted file mode 100644
index 29fd3203..00000000
--- a/src/components/bpmnProcessDesigner/package/penal/base/ElementBaseInfo.vue
+++ /dev/null
@@ -1,147 +0,0 @@
-
-
-
-
-
- 如何实现实现会签、或签?
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/components/bpmnProcessDesigner/package/penal/flow-condition/FlowCondition.vue b/src/components/bpmnProcessDesigner/package/penal/flow-condition/FlowCondition.vue
deleted file mode 100644
index 6d647708..00000000
--- a/src/components/bpmnProcessDesigner/package/penal/flow-condition/FlowCondition.vue
+++ /dev/null
@@ -1,142 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/components/bpmnProcessDesigner/package/penal/form/ElementForm.vue b/src/components/bpmnProcessDesigner/package/penal/form/ElementForm.vue
deleted file mode 100644
index 43668e71..00000000
--- a/src/components/bpmnProcessDesigner/package/penal/form/ElementForm.vue
+++ /dev/null
@@ -1,361 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 表单字段
-
-
-
-
-
-
-
- 编辑
-
- 移除
-
-
-
-
-
- 添加字段
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 枚举值列表:
- 添加枚举值
-
-
-
-
-
-
-
- 编辑
-
- 移除
-
-
-
-
-
-
-
-
- 约束条件列表:
- 添加约束
-
-
-
-
-
-
-
- 编辑
-
- 移除
-
-
-
-
-
-
-
- 字段属性列表:
- 添加属性
-
-
-
-
-
-
-
- 编辑
-
- 移除
-
-
-
-
-
-
- 取 消
- 保 存
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 取 消
- 确 定
-
-
-
-
-
-
diff --git a/src/components/bpmnProcessDesigner/package/penal/index.js b/src/components/bpmnProcessDesigner/package/penal/index.js
deleted file mode 100644
index 6cb0c77c..00000000
--- a/src/components/bpmnProcessDesigner/package/penal/index.js
+++ /dev/null
@@ -1,7 +0,0 @@
-import MyPropertiesPanel from "./PropertiesPanel.vue";
-
-MyPropertiesPanel.install = function(Vue) {
- Vue.component(MyPropertiesPanel.name, MyPropertiesPanel);
-};
-
-export default MyPropertiesPanel;
diff --git a/src/components/bpmnProcessDesigner/package/penal/listeners/ElementListeners.vue b/src/components/bpmnProcessDesigner/package/penal/listeners/ElementListeners.vue
deleted file mode 100644
index 4555c1f4..00000000
--- a/src/components/bpmnProcessDesigner/package/penal/listeners/ElementListeners.vue
+++ /dev/null
@@ -1,296 +0,0 @@
-
-
-
-
-
-
-
-
- 编辑
-
- 移除
-
-
-
-
- 添加监听器
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 注入字段:
- 添加字段
-
-
-
-
-
-
-
-
- 编辑
-
- 移除
-
-
-
-
-
- 取 消
- 保 存
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 取 消
- 确 定
-
-
-
-
-
diff --git a/src/components/bpmnProcessDesigner/package/penal/listeners/UserTaskListeners.vue b/src/components/bpmnProcessDesigner/package/penal/listeners/UserTaskListeners.vue
deleted file mode 100644
index d198c438..00000000
--- a/src/components/bpmnProcessDesigner/package/penal/listeners/UserTaskListeners.vue
+++ /dev/null
@@ -1,319 +0,0 @@
-
-
-
-
-
-
-
-
-
- 编辑
-
- 移除
-
-
-
-
- 添加监听器
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 注入字段:
- 添加字段
-
-
-
-
-
-
-
-
- 编辑
-
- 移除
-
-
-
-
-
- 取 消
- 保 存
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 取 消
- 确 定
-
-
-
-
-
diff --git a/src/components/bpmnProcessDesigner/package/penal/listeners/template.js b/src/components/bpmnProcessDesigner/package/penal/listeners/template.js
deleted file mode 100644
index 0ab64d0e..00000000
--- a/src/components/bpmnProcessDesigner/package/penal/listeners/template.js
+++ /dev/null
@@ -1,178 +0,0 @@
-export const template = isTaskListener => {
- return `
-
-
-
-
-
-
-
- 编辑
-
- 移除
-
-
-
-
- 添加监听器
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ${
- isTaskListener
- ? "" +
- "" +
- "" +
- "" +
- "" +
- "" +
- "" +
- "" +
- "" +
- "" +
- ""
- : ""
- }
-
-
-
- 注入字段:
- 添加字段
-
-
-
-
-
-
-
-
- 编辑
-
- 移除
-
-
-
-
-
- 取 消
- 保 存
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 取 消
- 确 定
-
-
-
- `;
-};
diff --git a/src/components/bpmnProcessDesigner/package/penal/listeners/utilSelf.js b/src/components/bpmnProcessDesigner/package/penal/listeners/utilSelf.js
deleted file mode 100644
index efd13ec0..00000000
--- a/src/components/bpmnProcessDesigner/package/penal/listeners/utilSelf.js
+++ /dev/null
@@ -1,62 +0,0 @@
-// 初始化表单数据
-export function initListenerForm(listener) {
- let self = {
- ...listener
- };
- if (listener.script) {
- self = {
- ...listener,
- ...listener.script,
- scriptType: listener.script.resource ? "externalScript" : "inlineScript"
- };
- }
- if (listener.event === "timeout" && listener.eventDefinitions) {
- if (listener.eventDefinitions.length) {
- let k = "";
- for (let key in listener.eventDefinitions[0]) {
- console.log(listener.eventDefinitions, key);
- if (key.indexOf("time") !== -1) {
- k = key;
- self.eventDefinitionType = key.replace("time", "").toLowerCase();
- }
- }
- console.log(k);
- self.eventTimeDefinitions = listener.eventDefinitions[0][k].body;
- }
- }
- return self;
-}
-
-export function initListenerType(listener) {
- let listenerType;
- if (listener.class) listenerType = "classListener";
- if (listener.expression) listenerType = "expressionListener";
- if (listener.delegateExpression) listenerType = "delegateExpressionListener";
- if (listener.script) listenerType = "scriptListener";
- return {
- ...JSON.parse(JSON.stringify(listener)),
- ...(listener.script ?? {}),
- listenerType: listenerType
- };
-}
-
-export const listenerType = {
- classListener: "Java 类",
- expressionListener: "表达式",
- delegateExpressionListener: "代理表达式",
- scriptListener: "脚本"
-};
-
-export const eventType = {
- create: "创建",
- assignment: "指派",
- complete: "完成",
- delete: "删除",
- update: "更新",
- timeout: "超时"
-};
-
-export const fieldType = {
- string: "字符串",
- expression: "表达式"
-};
diff --git a/src/components/bpmnProcessDesigner/package/penal/multi-instance/ElementMultiInstance.vue b/src/components/bpmnProcessDesigner/package/penal/multi-instance/ElementMultiInstance.vue
deleted file mode 100644
index 0f7c5ef7..00000000
--- a/src/components/bpmnProcessDesigner/package/penal/multi-instance/ElementMultiInstance.vue
+++ /dev/null
@@ -1,192 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/components/bpmnProcessDesigner/package/penal/other/ElementOtherConfig.vue b/src/components/bpmnProcessDesigner/package/penal/other/ElementOtherConfig.vue
deleted file mode 100644
index a4427b22..00000000
--- a/src/components/bpmnProcessDesigner/package/penal/other/ElementOtherConfig.vue
+++ /dev/null
@@ -1,59 +0,0 @@
-
-
-
-
-
diff --git a/src/components/bpmnProcessDesigner/package/penal/properties/ElementProperties.vue b/src/components/bpmnProcessDesigner/package/penal/properties/ElementProperties.vue
deleted file mode 100644
index a24e8c18..00000000
--- a/src/components/bpmnProcessDesigner/package/penal/properties/ElementProperties.vue
+++ /dev/null
@@ -1,135 +0,0 @@
-
-
-
-
-
-
-
-
- 编辑
-
- 移除
-
-
-
-
- 添加属性
-
-
-
-
-
-
-
-
-
-
-
-
- 取 消
- 确 定
-
-
-
-
-
-
diff --git a/src/components/bpmnProcessDesigner/package/penal/signal-message/SignalAndMessage.vue b/src/components/bpmnProcessDesigner/package/penal/signal-message/SignalAndMessage.vue
deleted file mode 100644
index 7ea59f61..00000000
--- a/src/components/bpmnProcessDesigner/package/penal/signal-message/SignalAndMessage.vue
+++ /dev/null
@@ -1,104 +0,0 @@
-
-
-
- 消息列表
- 创建新消息
-
-
-
-
-
-
-
- 信号列表
- 创建新信号
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 取 消
- 保 存
-
-
-
-
-
diff --git a/src/components/bpmnProcessDesigner/package/penal/task/ElementTask.vue b/src/components/bpmnProcessDesigner/package/penal/task/ElementTask.vue
deleted file mode 100644
index fd454ecc..00000000
--- a/src/components/bpmnProcessDesigner/package/penal/task/ElementTask.vue
+++ /dev/null
@@ -1,72 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/components/bpmnProcessDesigner/package/penal/task/task-components/ReceiveTask.vue b/src/components/bpmnProcessDesigner/package/penal/task/task-components/ReceiveTask.vue
deleted file mode 100644
index 282f2382..00000000
--- a/src/components/bpmnProcessDesigner/package/penal/task/task-components/ReceiveTask.vue
+++ /dev/null
@@ -1,97 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 确 认
-
-
-
-
-
-
diff --git a/src/components/bpmnProcessDesigner/package/penal/task/task-components/ScriptTask.vue b/src/components/bpmnProcessDesigner/package/penal/task/task-components/ScriptTask.vue
deleted file mode 100644
index 34ed9fdf..00000000
--- a/src/components/bpmnProcessDesigner/package/penal/task/task-components/ScriptTask.vue
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/components/bpmnProcessDesigner/package/penal/task/task-components/UserTask.vue b/src/components/bpmnProcessDesigner/package/penal/task/task-components/UserTask.vue
deleted file mode 100644
index b3468193..00000000
--- a/src/components/bpmnProcessDesigner/package/penal/task/task-components/UserTask.vue
+++ /dev/null
@@ -1,89 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 友情提示:任务的分配规则,使用
- 流程模型
- 下的【分配规则】替代,提供指定角色、部门负责人、部门成员、岗位、工作组、自定义脚本等 7 种维护的任务分配维度,更加灵活!
-
-
-
-
diff --git a/src/components/bpmnProcessDesigner/package/theme/element-variables.scss b/src/components/bpmnProcessDesigner/package/theme/element-variables.scss
deleted file mode 100644
index b61f30fd..00000000
--- a/src/components/bpmnProcessDesigner/package/theme/element-variables.scss
+++ /dev/null
@@ -1,70 +0,0 @@
-/* 改变主题色变量 */
-$--color-primary: #1890ff;
-$--color-danger: #ff4d4f;
-
-/* 改变 icon 字体路径变量,必需 */
-$--font-path: '~element-ui/lib/theme-chalk/fonts';
-
-@import "~element-ui/packages/theme-chalk/src/index";
-
-.el-table td,
-.el-table th {
- color: #333;
-}
-.el-drawer__header {
- padding: 16px 16px 8px 16px;
- margin: 0;
- line-height: 24px;
- font-size: 18px;
- color: #303133;
- box-sizing: border-box;
- border-bottom: 1px solid #e8e8e8;
-}
-div[class^="el-drawer"]:focus,
-span:focus {
- outline: none;
-}
-.el-drawer__body {
- box-sizing: border-box;
- padding: 16px;
- width: 100%;
- overflow-y: auto;
-}
-
-.el-dialog {
- margin-top: 50vh !important;
- transform: translateY(-50%);
- overflow: hidden;
-}
-.el-dialog__wrapper {
- overflow: hidden;
- max-height: 100vh;
-}
-.el-dialog__header {
- padding: 16px 16px 8px 16px;
- box-sizing: border-box;
- border-bottom: 1px solid #e8e8e8;
-}
-.el-dialog__body {
- padding: 16px;
- max-height: 80vh;
- box-sizing: border-box;
- overflow-y: auto;
-}
-.el-dialog__footer {
- padding: 16px;
- box-sizing: border-box;
- border-top: 1px solid #e8e8e8;
-}
-.el-dialog__close {
- font-weight: 600;
-}
-.el-select {
- width: 100%;
-}
-.el-divider:not(.el-divider--horizontal) {
- margin: 0 8px ;
-}
-.el-divider.el-divider--horizontal {
- margin: 16px 0;
-}
diff --git a/src/components/bpmnProcessDesigner/package/theme/index.scss b/src/components/bpmnProcessDesigner/package/theme/index.scss
deleted file mode 100644
index 21a388a9..00000000
--- a/src/components/bpmnProcessDesigner/package/theme/index.scss
+++ /dev/null
@@ -1,2 +0,0 @@
-@import "./process-designer.scss";
-@import "./process-panel.scss";
\ No newline at end of file
diff --git a/src/components/bpmnProcessDesigner/package/theme/process-designer.scss b/src/components/bpmnProcessDesigner/package/theme/process-designer.scss
deleted file mode 100644
index 54df7fd8..00000000
--- a/src/components/bpmnProcessDesigner/package/theme/process-designer.scss
+++ /dev/null
@@ -1,156 +0,0 @@
-@import "~bpmn-js-token-simulation/assets/css/bpmn-js-token-simulation.css";
-@import "~bpmn-js-token-simulation/assets/css/font-awesome.min.css";
-@import "~bpmn-js-token-simulation/assets/css/normalize.css";
-
-// 边框被 token-simulation 样式覆盖了
-.djs-palette {
- background: var(--palette-background-color);
- border: solid 1px var(--palette-border-color) !important;
- border-radius: 2px;
-}
-
-.my-process-designer {
- display: flex;
- flex-direction: column;
- width: 100%;
- height: 100%;
- box-sizing: border-box;
- .my-process-designer__header {
- width: 100%;
- min-height: 36px;
- .el-button {
- text-align: center;
- }
- .el-button-group {
- margin: 4px;
- }
- .el-tooltip__popper {
- .el-button {
- width: 100%;
- text-align: left;
- padding-left: 8px;
- padding-right: 8px;
- }
- .el-button:hover {
- background: rgba(64, 158, 255, 0.8);
- color: #ffffff;
- }
- }
- .align {
- position: relative;
- i {
- &:after {
- content: "|";
- position: absolute;
- transform: rotate(90deg) translate(200%, 60%);
- }
- }
- }
- .align.align-left i {
- transform: rotate(90deg);
- }
- .align.align-right i {
- transform: rotate(-90deg);
- }
- .align.align-top i {
- transform: rotate(180deg);
- }
- .align.align-bottom i {
- transform: rotate(0deg);
- }
- .align.align-center i {
- transform: rotate(90deg);
- &:after {
- transform: rotate(90deg) translate(0, 60%);
- }
- }
- .align.align-middle i {
- transform: rotate(0deg);
- &:after {
- transform: rotate(90deg) translate(0, 60%);
- }
- }
- }
- .my-process-designer__container {
- display: inline-flex;
- width: 100%;
- flex: 1;
- .my-process-designer__canvas {
- flex: 1;
- height: 100%;
- position: relative;
- background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHBhdHRlcm4gaWQ9ImEiIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTTAgMTBoNDBNMTAgMHY0ME0wIDIwaDQwTTIwIDB2NDBNMCAzMGg0ME0zMCAwdjQwIiBmaWxsPSJub25lIiBzdHJva2U9IiNlMGUwZTAiIG9wYWNpdHk9Ii4yIi8+PHBhdGggZD0iTTQwIDBIMHY0MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZTBlMGUwIi8+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI2EpIi8+PC9zdmc+")
- repeat !important;
- div.toggle-mode {
- display: none;
- }
- }
- .my-process-designer__property-panel {
- height: 100%;
- overflow: scroll;
- overflow-y: auto;
- z-index: 10;
- * {
- box-sizing: border-box;
- }
- }
- svg {
- width: 100%;
- height: 100%;
- min-height: 100%;
- overflow: hidden;
- }
- }
-}
-
-//侧边栏配置
-.djs-palette.open {
- .djs-palette-entries {
- div[class^="bpmn-icon-"]:before,
- div[class*="bpmn-icon-"]:before {
- line-height: unset;
- }
- div.entry {
- position: relative;
- }
- div.entry:hover {
- &::after {
- width: max-content;
- content: attr(title);
- vertical-align: text-bottom;
- position: absolute;
- right: -10px;
- top: 0;
- bottom: 0;
- overflow: hidden;
- transform: translateX(100%);
- font-size: 0.5em;
- display: inline-block;
- text-decoration: inherit;
- font-variant: normal;
- text-transform: none;
- background: #fafafa;
- box-shadow: 0 0 6px #eeeeee;
- border: 1px solid #cccccc;
- box-sizing: border-box;
- padding: 0 16px;
- border-radius: 4px;
- z-index: 100;
- }
- }
- }
-}
-pre {
- margin: 0;
- height: 100%;
- overflow: hidden;
- max-height: calc(80vh - 32px);
- overflow-y: auto;
-}
-.hljs {
- word-break: break-word;
- white-space: pre-wrap;
-}
-.hljs * {
- font-family: Consolas, Monaco, monospace;
-}
diff --git a/src/components/bpmnProcessDesigner/package/theme/process-panel.scss b/src/components/bpmnProcessDesigner/package/theme/process-panel.scss
deleted file mode 100644
index f840cdde..00000000
--- a/src/components/bpmnProcessDesigner/package/theme/process-panel.scss
+++ /dev/null
@@ -1,107 +0,0 @@
-.process-panel__container {
- box-sizing: border-box;
- padding: 0 8px;
- border-left: 1px solid #eeeeee;
- box-shadow: 0 0 8px #cccccc;
- max-height: 100%;
- overflow-y: scroll;
-}
-.panel-tab__title {
- font-weight: 600;
- padding: 0 8px;
- font-size: 1.1em;
- line-height: 1.2em;
- i {
- margin-right: 8px;
- font-size: 1.2em;
- }
-}
-.panel-tab__content {
- width: 100%;
- box-sizing: border-box;
- border-top: 1px solid #eeeeee;
- padding: 8px 16px;
- .panel-tab__content--title {
- display: flex;
- justify-content: space-between;
- padding-bottom: 8px;
- span {
- flex: 1;
- text-align: left;
- }
- }
-}
-.element-property {
- width: 100%;
- display: flex;
- align-items: flex-start;
- margin: 8px 0;
- .element-property__label {
- display: block;
- width: 90px;
- text-align: right;
- overflow: hidden;
- padding-right: 12px;
- line-height: 32px;
- font-size: 14px;
- box-sizing: border-box;
- }
- .element-property__value {
- flex: 1;
- line-height: 32px;
- }
- .el-form-item {
- width: 100%;
- margin-bottom: 0;
- padding-bottom: 18px;
- }
-}
-.list-property {
- flex-direction: column;
- .element-listener-item {
- width: 100%;
- display: inline-grid;
- grid-template-columns: 16px auto 32px 32px;
- grid-column-gap: 8px;
- }
- .element-listener-item + .element-listener-item {
- margin-top: 8px;
- }
-}
-.listener-filed__title {
- display: inline-flex;
- width: 100%;
- justify-content: space-between;
- align-items: center;
- margin-top: 0;
- span {
- width: 200px;
- text-align: left;
- font-size: 14px;
- }
- i {
- margin-right: 8px;
- }
-}
-.element-drawer__button {
- margin-top: 8px;
- width: 100%;
- display: inline-flex;
- justify-content: space-around;
-}
-.element-drawer__button > .el-button {
- width: 100%;
-}
-
-.el-collapse-item__content {
- padding-bottom: 0;
-}
-.el-input.is-disabled .el-input__inner {
- color: #999999;
-}
-.el-form-item.el-form-item--mini {
- margin-bottom: 0;
- & + .el-form-item {
- margin-top: 16px;
- }
-}
diff --git a/src/components/bpmnProcessDesigner/package/utils.js b/src/components/bpmnProcessDesigner/package/utils.js
deleted file mode 100644
index d1a92a08..00000000
--- a/src/components/bpmnProcessDesigner/package/utils.js
+++ /dev/null
@@ -1,69 +0,0 @@
-// 创建监听器实例
-export function createListenerObject(options, isTask, prefix) {
- const listenerObj = Object.create(null);
- listenerObj.event = options.event;
- isTask && (listenerObj.id = options.id); // 任务监听器特有的 id 字段
- switch (options.listenerType) {
- case "scriptListener":
- listenerObj.script = createScriptObject(options, prefix);
- break;
- case "expressionListener":
- listenerObj.expression = options.expression;
- break;
- case "delegateExpressionListener":
- listenerObj.delegateExpression = options.delegateExpression;
- break;
- default:
- listenerObj.class = options.class;
- }
- // 注入字段
- if (options.fields) {
- listenerObj.fields = options.fields.map(field => {
- return createFieldObject(field, prefix);
- });
- }
- // 任务监听器的 定时器 设置
- if (isTask && options.event === "timeout" && !!options.eventDefinitionType) {
- const timeDefinition = window.bpmnInstances.moddle.create("bpmn:FormalExpression", { body: options.eventTimeDefinitions });
- const TimerEventDefinition = window.bpmnInstances.moddle.create("bpmn:TimerEventDefinition", {
- id: `TimerEventDefinition_${uuid(8)}`,
- [`time${options.eventDefinitionType.replace(/^\S/, s => s.toUpperCase())}`]: timeDefinition
- });
- listenerObj.eventDefinitions = [TimerEventDefinition];
- }
- return window.bpmnInstances.moddle.create(`${prefix}:${isTask ? "TaskListener" : "ExecutionListener"}`, listenerObj);
-}
-
-// 创建 监听器的注入字段 实例
-export function createFieldObject(option, prefix) {
- const { name, fieldType, string, expression } = option;
- const fieldConfig = fieldType === "string" ? { name, string } : { name, expression };
- return window.bpmnInstances.moddle.create(`${prefix}:Field`, fieldConfig);
-}
-
-// 创建脚本实例
-export function createScriptObject(options, prefix) {
- const { scriptType, scriptFormat, value, resource } = options;
- const scriptConfig = scriptType === "inlineScript" ? { scriptFormat, value } : { scriptFormat, resource };
- return window.bpmnInstances.moddle.create(`${prefix}:Script`, scriptConfig);
-}
-
-// 更新元素扩展属性
-export function updateElementExtensions(element, extensionList) {
- const extensions = window.bpmnInstances.moddle.create("bpmn:ExtensionElements", {
- values: extensionList
- });
- window.bpmnInstances.modeling.updateProperties(element, {
- extensionElements: extensions
- });
-}
-
-// 创建一个id
-export function uuid(length = 8, chars) {
- let result = "";
- let charsString = chars || "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
- for (let i = length; i > 0; --i) {
- result += charsString[Math.floor(Math.random() * charsString.length)];
- }
- return result;
-}
diff --git a/src/components/bpmnProcessDesigner/src/highlight/index.js b/src/components/bpmnProcessDesigner/src/highlight/index.js
deleted file mode 100644
index bff9211b..00000000
--- a/src/components/bpmnProcessDesigner/src/highlight/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-const hljs = require("highlight.js/lib/core");
-hljs.registerLanguage("xml", require("highlight.js/lib/languages/xml"));
-hljs.registerLanguage("json", require("highlight.js/lib/languages/json"));
-
-module.exports = hljs;
diff --git a/src/components/bpmnProcessDesigner/src/modules/custom-renderer/CustomRenderer.js b/src/components/bpmnProcessDesigner/src/modules/custom-renderer/CustomRenderer.js
deleted file mode 100644
index 92919f63..00000000
--- a/src/components/bpmnProcessDesigner/src/modules/custom-renderer/CustomRenderer.js
+++ /dev/null
@@ -1,14 +0,0 @@
-import BpmnRenderer from "bpmn-js/lib/draw/BpmnRenderer";
-
-export default function CustomRenderer(config, eventBus, styles, pathMap, canvas, textRenderer) {
- BpmnRenderer.call(this, config, eventBus, styles, pathMap, canvas, textRenderer, 2000);
-
- this.handlers["label"] = function() {
- return null;
- };
-}
-
-const F = function() {}; // 核心,利用空对象作为中介;
-F.prototype = BpmnRenderer.prototype; // 核心,将父类的原型赋值给空对象F;
-CustomRenderer.prototype = new F(); // 核心,将 F的实例赋值给子类;
-CustomRenderer.prototype.constructor = CustomRenderer; // 修复子类CustomRenderer的构造器指向,防止原型链的混乱;
diff --git a/src/components/bpmnProcessDesigner/src/modules/custom-renderer/index.js b/src/components/bpmnProcessDesigner/src/modules/custom-renderer/index.js
deleted file mode 100644
index 5e573f13..00000000
--- a/src/components/bpmnProcessDesigner/src/modules/custom-renderer/index.js
+++ /dev/null
@@ -1,6 +0,0 @@
-import CustomRenderer from "./CustomRenderer";
-
-export default {
- __init__: ["customRenderer"],
- customRenderer: ["type", CustomRenderer]
-};
diff --git a/src/components/bpmnProcessDesigner/src/modules/rules/CustomRules.js b/src/components/bpmnProcessDesigner/src/modules/rules/CustomRules.js
deleted file mode 100644
index d46078b3..00000000
--- a/src/components/bpmnProcessDesigner/src/modules/rules/CustomRules.js
+++ /dev/null
@@ -1,16 +0,0 @@
-import BpmnRules from "bpmn-js/lib/features/rules/BpmnRules";
-import inherits from "inherits";
-
-export default function CustomRules(eventBus) {
- BpmnRules.call(this, eventBus);
-}
-
-inherits(CustomRules, BpmnRules);
-
-CustomRules.prototype.canDrop = function() {
- return false;
-};
-
-CustomRules.prototype.canMove = function() {
- return false;
-};
diff --git a/src/components/bpmnProcessDesigner/src/modules/rules/index.js b/src/components/bpmnProcessDesigner/src/modules/rules/index.js
deleted file mode 100644
index ac6a7863..00000000
--- a/src/components/bpmnProcessDesigner/src/modules/rules/index.js
+++ /dev/null
@@ -1,6 +0,0 @@
-import CustomRules from "./CustomRules";
-
-export default {
- __init__: ["customRules"],
- customRules: ["type", CustomRules]
-};
diff --git a/src/components/bpmnProcessDesigner/src/translations.js b/src/components/bpmnProcessDesigner/src/translations.js
deleted file mode 100644
index ac86e587..00000000
--- a/src/components/bpmnProcessDesigner/src/translations.js
+++ /dev/null
@@ -1,25 +0,0 @@
-/**
- * This is a sample file that should be replaced with the actual translation.
- *
- * Checkout https://github.com/bpmn-io/bpmn-js-i18n for a list of available
- * translations and labels to translate.
- */
-export default {
- "Exclusive Gateway": "Exklusives Gateway",
- "Parallel Gateway": "Paralleles Gateway",
- "Inclusive Gateway": "Inklusives Gateway",
- "Complex Gateway": "Komplexes Gateway",
- "Event based Gateway": "Ereignis-basiertes Gateway",
- "Message Start Event": "消息启动事件",
- "Timer Start Event": "定时启动事件",
- "Conditional Start Event": "条件启动事件",
- "Signal Start Event": "信号启动事件",
- "Error Start Event": "错误启动事件",
- "Escalation Start Event": "升级启动事件",
- "Compensation Start Event": "补偿启动事件",
- "Message Start Event (non-interrupting)": "消息启动事件 (非中断)",
- "Timer Start Event (non-interrupting)": "定时启动事件 (非中断)",
- "Conditional Start Event (non-interrupting)": "条件启动事件 (非中断)",
- "Signal Start Event (non-interrupting)": "信号启动事件 (非中断)",
- "Escalation Start Event (non-interrupting)": "升级启动事件 (非中断)"
-};
diff --git a/src/components/bpmnProcessDesigner/src/utils/directive/clickOutSide.js b/src/components/bpmnProcessDesigner/src/utils/directive/clickOutSide.js
deleted file mode 100644
index fc8644ee..00000000
--- a/src/components/bpmnProcessDesigner/src/utils/directive/clickOutSide.js
+++ /dev/null
@@ -1,39 +0,0 @@
-//outside.js
-
-const ctx = "@@clickoutsideContext";
-
-export default {
- bind(el, binding, vnode) {
- const ele = el;
- const documentHandler = e => {
- if (!vnode.context || ele.contains(e.target)) {
- return false;
- }
- // 调用指令回调
- if (binding.expression) {
- vnode.context[el[ctx].methodName](e);
- } else {
- el[ctx].bindingFn(e);
- }
- };
- // 将方法添加到ele
- ele[ctx] = {
- documentHandler,
- methodName: binding.expression,
- bindingFn: binding.value
- };
-
- setTimeout(() => {
- document.addEventListener("touchstart", documentHandler); // 为document绑定事件
- });
- },
- update(el, binding) {
- const ele = el;
- ele[ctx].methodName = binding.expression;
- ele[ctx].bindingFn = binding.value;
- },
- unbind(el) {
- document.removeEventListener("touchstart", el[ctx].documentHandler); // 解绑
- delete el[ctx];
- }
-};
diff --git a/src/components/bpmnProcessDesigner/src/utils/index.js b/src/components/bpmnProcessDesigner/src/utils/index.js
deleted file mode 100644
index 18fe3ddd..00000000
--- a/src/components/bpmnProcessDesigner/src/utils/index.js
+++ /dev/null
@@ -1,10 +0,0 @@
-export function debounce(fn, delay = 500) {
- let timer;
- return function(...args) {
- if (timer) {
- clearTimeout(timer);
- timer = null;
- }
- timer = setTimeout(fn.bind(this, ...args), delay);
- };
-}
diff --git a/src/components/bpmnProcessDesigner/src/utils/log.js b/src/components/bpmnProcessDesigner/src/utils/log.js
deleted file mode 100644
index 350e2907..00000000
--- a/src/components/bpmnProcessDesigner/src/utils/log.js
+++ /dev/null
@@ -1,63 +0,0 @@
-class Log {
- static type = ["primary", "success", "warn", "error", "info"];
-
- static typeColor(type = "default") {
- let color = "";
- switch (type) {
- case "primary":
- color = "#2d8cf0";
- break;
- case "success":
- color = "#19be6b";
- break;
- case "info":
- color = "#909399";
- break;
- case "warn":
- color = "#ff9900";
- break;
- case "error":
- color = "#f03f14";
- break;
- case "default":
- color = "#35495E";
- break;
- default:
- color = type;
- break;
- }
- return color;
- }
-
- static print(text, type = "default", back = false) {
- if (typeof text === "object") {
- // 如果是對象則調用打印對象方式
- console.dir(text);
- return;
- }
- if (back) {
- // 如果是打印帶背景圖的
- console.log(`%c ${text} `, `background:${this.typeColor(type)}; padding: 2px; border-radius: 4px;color: #fff;`);
- } else {
- console.log(`%c ${text} `, `color: ${this.typeColor(type)};`);
- }
- }
-
- static pretty(title, text, type = "primary") {
- if (typeof text === "object") {
- console.log(
- `%c ${title} %c`,
- `background:${this.typeColor(type)};border:1px solid ${this.typeColor(type)}; padding: 1px; border-radius: 4px 0 0 4px; color: #fff;`
- );
- console.dir(text);
- return;
- }
- console.log(
- `%c ${title} %c ${text} %c`,
- `background:${this.typeColor(type)};border:1px solid ${this.typeColor(type)}; padding: 1px; border-radius: 4px 0 0 4px; color: #fff;`,
- `border:1px solid ${this.typeColor(type)}; padding: 1px; border-radius: 0 4px 4px 0; color: ${this.typeColor(type)};`,
- "background:transparent"
- );
- }
-}
-export default Log;
diff --git a/src/components/bpmnProcessDesigner/src/utils/xml2json.js b/src/components/bpmnProcessDesigner/src/utils/xml2json.js
deleted file mode 100644
index 01b38caf..00000000
--- a/src/components/bpmnProcessDesigner/src/utils/xml2json.js
+++ /dev/null
@@ -1,50 +0,0 @@
-function xmlStr2XmlObj(xmlStr) {
- let xmlObj = {};
- if (document.all) {
- const xmlDom = new window.ActiveXObject("Microsoft.XMLDOM");
- xmlDom.loadXML(xmlStr);
- xmlObj = xmlDom;
- } else {
- xmlObj = new DOMParser().parseFromString(xmlStr, "text/xml");
- }
- return xmlObj;
-}
-
-function xml2json(xml) {
- try {
- let obj = {};
- if (xml.children.length > 0) {
- for (let i = 0; i < xml.children.length; i++) {
- const item = xml.children.item(i);
- const nodeName = item.nodeName;
- if (typeof obj[nodeName] == "undefined") {
- obj[nodeName] = xml2json(item);
- } else {
- if (typeof obj[nodeName].push == "undefined") {
- const old = obj[nodeName];
- obj[nodeName] = [];
- obj[nodeName].push(old);
- }
- obj[nodeName].push(xml2json(item));
- }
- }
- } else {
- obj = xml.textContent;
- }
- return obj;
- } catch (e) {
- console.log(e.message);
- }
-}
-
-function xmlObj2json(xml) {
- const xmlObj = xmlStr2XmlObj(xml);
- console.log(xmlObj);
- let jsonObj = {};
- if (xmlObj.childNodes.length > 0) {
- jsonObj = xml2json(xmlObj);
- }
- return jsonObj;
-}
-
-export default xmlObj2json;
diff --git a/src/components/generator/config.js b/src/components/generator/config.js
deleted file mode 100644
index 780a1bb6..00000000
--- a/src/components/generator/config.js
+++ /dev/null
@@ -1,630 +0,0 @@
-// 表单属性【右面板】
-export const formConf = {
- formRef: 'elForm',
- formModel: 'formData',
- size: 'medium',
- labelPosition: 'right',
- labelWidth: 100,
- formRules: 'rules',
- gutter: 15,
- disabled: false,
- span: 24,
- formBtns: true
-}
-
-// 输入型组件 【左面板】
-export const inputComponents = [
- {
- // 组件的自定义配置
- __config__: {
- label: '单行文本',
- labelWidth: null,
- showLabel: true,
- changeTag: true,
- tag: 'el-input',
- tagIcon: 'input',
- defaultValue: undefined,
- required: true,
- layout: 'colFormItem',
- span: 24,
- document: 'https://element.eleme.cn/#/zh-CN/component/input',
- // 正则校验规则
- regList: []
- },
- // 组件的插槽属性
- __slot__: {
- prepend: '',
- append: ''
- },
- // 其余的为可直接写在组件标签上的属性
- placeholder: '请输入',
- style: { width: '100%' },
- clearable: true,
- 'prefix-icon': '',
- 'suffix-icon': '',
- maxlength: null,
- 'show-word-limit': false,
- readonly: false,
- disabled: false
- },
- {
- __config__: {
- label: '多行文本',
- labelWidth: null,
- showLabel: true,
- tag: 'el-input',
- tagIcon: 'textarea',
- defaultValue: undefined,
- required: true,
- layout: 'colFormItem',
- span: 24,
- regList: [],
- changeTag: true,
- document: 'https://element.eleme.cn/#/zh-CN/component/input'
- },
- type: 'textarea',
- placeholder: '请输入',
- autosize: {
- minRows: 4,
- maxRows: 4
- },
- style: { width: '100%' },
- maxlength: null,
- 'show-word-limit': false,
- readonly: false,
- disabled: false
- },
- {
- __config__: {
- label: '密码',
- showLabel: true,
- labelWidth: null,
- changeTag: true,
- tag: 'el-input',
- tagIcon: 'password',
- defaultValue: undefined,
- layout: 'colFormItem',
- span: 24,
- required: true,
- regList: [],
- document: 'https://element.eleme.cn/#/zh-CN/component/input'
- },
- __slot__: {
- prepend: '',
- append: ''
- },
- placeholder: '请输入',
- 'show-password': true,
- style: { width: '100%' },
- clearable: true,
- 'prefix-icon': '',
- 'suffix-icon': '',
- maxlength: null,
- 'show-word-limit': false,
- readonly: false,
- disabled: false
- },
- {
- __config__: {
- label: '计数器',
- showLabel: true,
- changeTag: true,
- labelWidth: null,
- tag: 'el-input-number',
- tagIcon: 'number',
- defaultValue: undefined,
- span: 24,
- layout: 'colFormItem',
- required: true,
- regList: [],
- document: 'https://element.eleme.cn/#/zh-CN/component/input-number'
- },
- placeholder: '',
- min: undefined,
- max: undefined,
- step: 1,
- 'step-strictly': false,
- precision: undefined,
- 'controls-position': '',
- disabled: false
- },
- {
- __config__: {
- label: '编辑器',
- showLabel: true,
- changeTag: true,
- labelWidth: null,
- tag: 'tinymce',
- tagIcon: 'rich-text',
- defaultValue: null,
- span: 24,
- layout: 'colFormItem',
- required: true,
- regList: [],
- document: 'http://tinymce.ax-z.cn'
- },
- placeholder: '请输入',
- height: 300, // 编辑器高度
- branding: false // 隐藏右下角品牌烙印
- }
-]
-
-// 选择型组件 【左面板】
-export const selectComponents = [
- {
- __config__: {
- label: '下拉选择',
- showLabel: true,
- labelWidth: null,
- tag: 'el-select',
- tagIcon: 'select',
- layout: 'colFormItem',
- span: 24,
- required: true,
- regList: [],
- changeTag: true,
- document: 'https://element.eleme.cn/#/zh-CN/component/select'
- },
- __slot__: {
- options: [{
- label: '选项一',
- value: 1
- }, {
- label: '选项二',
- value: 2
- }]
- },
- placeholder: '请选择',
- style: { width: '100%' },
- clearable: true,
- disabled: false,
- filterable: false,
- multiple: false
- },
- {
- __config__: {
- label: '级联选择',
- url: 'https://www.fastmock.site/mock/f8d7a54fb1e60561e2f720d5a810009d/fg/cascaderList',
- method: 'get',
- dataPath: 'list',
- dataConsumer: 'options',
- showLabel: true,
- labelWidth: null,
- tag: 'el-cascader',
- tagIcon: 'cascader',
- layout: 'colFormItem',
- defaultValue: [],
- dataType: 'dynamic',
- span: 24,
- required: true,
- regList: [],
- changeTag: true,
- document: 'https://element.eleme.cn/#/zh-CN/component/cascader'
- },
- options: [{
- id: 1,
- value: 1,
- label: '选项1',
- children: [{
- id: 2,
- value: 2,
- label: '选项1-1'
- }]
- }],
- placeholder: '请选择',
- style: { width: '100%' },
- props: {
- props: {
- multiple: false,
- label: 'label',
- value: 'value',
- children: 'children'
- }
- },
- 'show-all-levels': true,
- disabled: false,
- clearable: true,
- filterable: false,
- separator: '/'
- },
- {
- __config__: {
- label: '单选框组',
- labelWidth: null,
- showLabel: true,
- tag: 'el-radio-group',
- tagIcon: 'radio',
- changeTag: true,
- defaultValue: undefined,
- layout: 'colFormItem',
- span: 24,
- optionType: 'default',
- regList: [],
- required: true,
- border: false,
- document: 'https://element.eleme.cn/#/zh-CN/component/radio'
- },
- __slot__: {
- options: [{
- label: '选项一',
- value: 1
- }, {
- label: '选项二',
- value: 2
- }]
- },
- style: {},
- size: 'medium',
- disabled: false
- },
- {
- __config__: {
- label: '多选框组',
- tag: 'el-checkbox-group',
- tagIcon: 'checkbox',
- defaultValue: [],
- span: 24,
- showLabel: true,
- labelWidth: null,
- layout: 'colFormItem',
- optionType: 'default',
- required: true,
- regList: [],
- changeTag: true,
- border: false,
- document: 'https://element.eleme.cn/#/zh-CN/component/checkbox'
- },
- __slot__: {
- options: [{
- label: '选项一',
- value: 1
- }, {
- label: '选项二',
- value: 2
- }]
- },
- style: {},
- size: 'medium',
- min: null,
- max: null,
- disabled: false
- },
- {
- __config__: {
- label: '开关',
- tag: 'el-switch',
- tagIcon: 'switch',
- defaultValue: false,
- span: 24,
- showLabel: true,
- labelWidth: null,
- layout: 'colFormItem',
- required: true,
- regList: [],
- changeTag: true,
- document: 'https://element.eleme.cn/#/zh-CN/component/switch'
- },
- style: {},
- disabled: false,
- 'active-text': '',
- 'inactive-text': '',
- 'active-color': null,
- 'inactive-color': null,
- 'active-value': true,
- 'inactive-value': false
- },
- {
- __config__: {
- label: '滑块',
- tag: 'el-slider',
- tagIcon: 'slider',
- defaultValue: null,
- span: 24,
- showLabel: true,
- layout: 'colFormItem',
- labelWidth: null,
- required: true,
- regList: [],
- changeTag: true,
- document: 'https://element.eleme.cn/#/zh-CN/component/slider'
- },
- disabled: false,
- min: 0,
- max: 100,
- step: 1,
- 'show-stops': false,
- range: false
- },
- {
- __config__: {
- label: '时间选择',
- tag: 'el-time-picker',
- tagIcon: 'time',
- defaultValue: null,
- span: 24,
- showLabel: true,
- layout: 'colFormItem',
- labelWidth: null,
- required: true,
- regList: [],
- changeTag: true,
- document: 'https://element.eleme.cn/#/zh-CN/component/time-picker'
- },
- placeholder: '请选择',
- style: { width: '100%' },
- disabled: false,
- clearable: true,
- 'picker-options': {
- selectableRange: '00:00:00-23:59:59'
- },
- format: 'HH:mm:ss',
- 'value-format': 'HH:mm:ss'
- },
- {
- __config__: {
- label: '时间范围',
- tag: 'el-time-picker',
- tagIcon: 'time-range',
- span: 24,
- showLabel: true,
- labelWidth: null,
- layout: 'colFormItem',
- defaultValue: null,
- required: true,
- regList: [],
- changeTag: true,
- document: 'https://element.eleme.cn/#/zh-CN/component/time-picker'
- },
- style: { width: '100%' },
- disabled: false,
- clearable: true,
- 'is-range': true,
- 'range-separator': '至',
- 'start-placeholder': '开始时间',
- 'end-placeholder': '结束时间',
- format: 'HH:mm:ss',
- 'value-format': 'HH:mm:ss'
- },
- {
- __config__: {
- label: '日期选择',
- tag: 'el-date-picker',
- tagIcon: 'date',
- defaultValue: null,
- showLabel: true,
- labelWidth: null,
- span: 24,
- layout: 'colFormItem',
- required: true,
- regList: [],
- changeTag: true,
- document: 'https://element.eleme.cn/#/zh-CN/component/date-picker'
- },
- placeholder: '请选择',
- type: 'date',
- style: { width: '100%' },
- disabled: false,
- clearable: true,
- format: 'yyyy-MM-dd',
- 'value-format': 'yyyy-MM-dd',
- readonly: false
- },
- {
- __config__: {
- label: '日期范围',
- tag: 'el-date-picker',
- tagIcon: 'date-range',
- defaultValue: null,
- span: 24,
- showLabel: true,
- labelWidth: null,
- required: true,
- layout: 'colFormItem',
- regList: [],
- changeTag: true,
- document: 'https://element.eleme.cn/#/zh-CN/component/date-picker'
- },
- style: { width: '100%' },
- type: 'daterange',
- 'range-separator': '至',
- 'start-placeholder': '开始日期',
- 'end-placeholder': '结束日期',
- disabled: false,
- clearable: true,
- format: 'yyyy-MM-dd',
- 'value-format': 'yyyy-MM-dd',
- readonly: false
- },
- {
- __config__: {
- label: '评分',
- tag: 'el-rate',
- tagIcon: 'rate',
- defaultValue: 0,
- span: 24,
- showLabel: true,
- labelWidth: null,
- layout: 'colFormItem',
- required: true,
- regList: [],
- changeTag: true,
- document: 'https://element.eleme.cn/#/zh-CN/component/rate'
- },
- style: {},
- max: 5,
- 'allow-half': false,
- 'show-text': false,
- 'show-score': false,
- disabled: false
- },
- {
- __config__: {
- label: '颜色选择',
- tag: 'el-color-picker',
- tagIcon: 'color',
- span: 24,
- defaultValue: null,
- showLabel: true,
- labelWidth: null,
- layout: 'colFormItem',
- required: true,
- regList: [],
- changeTag: true,
- document: 'https://element.eleme.cn/#/zh-CN/component/color-picker'
- },
- 'show-alpha': false,
- 'color-format': '',
- disabled: false,
- size: 'medium'
- },
- {
- __config__: {
- label: '上传',
- tag: 'el-upload',
- tagIcon: 'upload',
- layout: 'colFormItem',
- defaultValue: null,
- showLabel: true,
- labelWidth: null,
- required: true,
- span: 24,
- showTip: false,
- buttonText: '点击上传',
- regList: [],
- changeTag: true,
- fileSize: 2,
- sizeUnit: 'MB',
- document: 'https://element.eleme.cn/#/zh-CN/component/upload'
- },
- __slot__: {
- 'list-type': true
- },
- // action: process.env.VUE_APP_BASE_API + "/admin-api/infra/file/upload", // 请求地址
- action: '/infra/file/upload', // 请求地址
- disabled: false,
- accept: '',
- name: 'file',
- 'auto-upload': true,
- 'list-type': 'text',
- multiple: false
- }
-]
-
-// 布局型组件 【左面板】
-export const layoutComponents = [
- {
- __config__: {
- layout: 'rowFormItem',
- tagIcon: 'row',
- label: '行容器',
- layoutTree: true,
- document: 'https://element.eleme.cn/#/zh-CN/component/layout#row-attributes'
- },
- type: 'default',
- justify: 'start',
- align: 'top'
- },
- {
- __config__: {
- label: '按钮',
- showLabel: true,
- changeTag: true,
- labelWidth: null,
- tag: 'el-button',
- tagIcon: 'button',
- span: 24,
- layout: 'colFormItem',
- document: 'https://element.eleme.cn/#/zh-CN/component/button'
- },
- __slot__: {
- default: '主要按钮'
- },
- type: 'primary',
- icon: 'el-icon-search',
- round: false,
- size: 'medium',
- plain: false,
- circle: false,
- disabled: false
- },
- {
- __config__: {
- layout: 'colFormItem',
- tagIcon: 'table',
- tag: 'el-table',
- document: 'https://element.eleme.cn/#/zh-CN/component/table',
- span: 24,
- formId: 101,
- renderKey: 1595761764203,
- componentName: 'row101',
- showLabel: true,
- changeTag: true,
- labelWidth: null,
- label: '表格[开发中]',
- dataType: 'dynamic',
- method: 'get',
- dataPath: 'list',
- dataConsumer: 'data',
- url: 'https://www.fastmock.site/mock/f8d7a54fb1e60561e2f720d5a810009d/fg/tableData',
- children: [{
- __config__: {
- layout: 'raw',
- tag: 'el-table-column',
- renderKey: 15957617660153
- },
- prop: 'date',
- label: '日期'
- }, {
- __config__: {
- layout: 'raw',
- tag: 'el-table-column',
- renderKey: 15957617660152
- },
- prop: 'address',
- label: '地址'
- }, {
- __config__: {
- layout: 'raw',
- tag: 'el-table-column',
- renderKey: 15957617660151
- },
- prop: 'name',
- label: '名称'
- }, {
- __config__: {
- layout: 'raw',
- tag: 'el-table-column',
- renderKey: 1595774496335,
- children: [
- {
- __config__: {
- label: '按钮',
- tag: 'el-button',
- tagIcon: 'button',
- layout: 'raw',
- renderKey: 1595779809901
- },
- __slot__: {
- default: '主要按钮'
- },
- type: 'primary',
- icon: 'el-icon-search',
- round: false,
- size: 'medium'
- }
- ]
- },
- label: '操作'
- }]
- },
- data: [],
- directives: [{
- name: 'loading',
- value: true
- }],
- border: true,
- type: 'default',
- justify: 'start',
- align: 'top'
- }
-]
diff --git a/src/components/generator/css.js b/src/components/generator/css.js
deleted file mode 100644
index 7cb86e64..00000000
--- a/src/components/generator/css.js
+++ /dev/null
@@ -1,18 +0,0 @@
-const styles = {
- 'el-rate': '.el-rate{display: inline-block; vertical-align: text-top;}',
- 'el-upload': '.el-upload__tip{line-height: 1.2;}'
-}
-
-function addCss(cssList, el) {
- const css = styles[el.__config__.tag]
- css && cssList.indexOf(css) === -1 && cssList.push(css)
- if (el.__config__.children) {
- el.__config__.children.forEach(el2 => addCss(cssList, el2))
- }
-}
-
-export function makeUpCss(conf) {
- const cssList = []
- conf.fields.forEach(el => addCss(cssList, el))
- return cssList.join('\n')
-}
diff --git a/src/components/generator/drawingDefalut.js b/src/components/generator/drawingDefalut.js
deleted file mode 100644
index dbc1daf2..00000000
--- a/src/components/generator/drawingDefalut.js
+++ /dev/null
@@ -1,37 +0,0 @@
-export default [
- {
- __config__: {
- label: '单行文本',
- labelWidth: null,
- showLabel: true,
- changeTag: true,
- tag: 'el-input',
- tagIcon: 'input',
- defaultValue: undefined,
- required: true,
- layout: 'colFormItem',
- span: 24,
- document: 'https://element.eleme.cn/#/zh-CN/component/input',
- // 正则校验规则
- regList: [{
- pattern: '/^1(3|4|5|7|8|9)\\d{9}$/',
- message: '手机号格式错误'
- }]
- },
- // 组件的插槽属性
- __slot__: {
- prepend: '',
- append: ''
- },
- __vModel__: 'mobile',
- placeholder: '请输入手机号',
- style: { width: '100%' },
- clearable: true,
- 'prefix-icon': 'el-icon-mobile',
- 'suffix-icon': '',
- maxlength: 11,
- 'show-word-limit': true,
- readonly: false,
- disabled: false
- }
-]
diff --git a/src/components/generator/html.js b/src/components/generator/html.js
deleted file mode 100644
index 6e9a32e6..00000000
--- a/src/components/generator/html.js
+++ /dev/null
@@ -1,399 +0,0 @@
-/* eslint-disable max-len */
-import ruleTrigger from './ruleTrigger'
-
-let confGlobal
-let someSpanIsNot24
-
-export function dialogWrapper(str) {
- return `
- ${str}
-
- 取消
- 确定
-
- `
-}
-
-export function vueTemplate(str) {
- return `
-
- ${str}
-
- `
-}
-
-export function vueScript(str) {
- return ``
-}
-
-export function cssStyle(cssStr) {
- return ``
-}
-
-function buildFormTemplate(scheme, child, type) {
- let labelPosition = ''
- if (scheme.labelPosition !== 'right') {
- labelPosition = `label-position="${scheme.labelPosition}"`
- }
- const disabled = scheme.disabled ? `:disabled="${scheme.disabled}"` : ''
- let str = `
- ${child}
- ${buildFromBtns(scheme, type)}
- `
- if (someSpanIsNot24) {
- str = `
- ${str}
- `
- }
- return str
-}
-
-function buildFromBtns(scheme, type) {
- let str = ''
- if (scheme.formBtns && type === 'file') {
- str = `
- 提交
- 重置
- `
- if (someSpanIsNot24) {
- str = `
- ${str}
- `
- }
- }
- return str
-}
-
-// span不为24的用el-col包裹
-function colWrapper(scheme, str) {
- if (someSpanIsNot24 || scheme.__config__.span !== 24) {
- return `
- ${str}
- `
- }
- return str
-}
-
-const layouts = {
- colFormItem(scheme) {
- const config = scheme.__config__
- let labelWidth = ''
- let label = `label="${config.label}"`
- if (config.labelWidth && config.labelWidth !== confGlobal.labelWidth) {
- labelWidth = `label-width="${config.labelWidth}px"`
- }
- if (config.showLabel === false) {
- labelWidth = 'label-width="0"'
- label = ''
- }
- const required = !ruleTrigger[config.tag] && config.required ? 'required' : ''
- const tagDom = tags[config.tag] ? tags[config.tag](scheme) : null
- let str = `
- ${tagDom}
- `
- str = colWrapper(scheme, str)
- return str
- },
- rowFormItem(scheme) {
- const config = scheme.__config__
- const type = scheme.type === 'default' ? '' : `type="${scheme.type}"`
- const justify = scheme.type === 'default' ? '' : `justify="${scheme.justify}"`
- const align = scheme.type === 'default' ? '' : `align="${scheme.align}"`
- const gutter = scheme.gutter ? `:gutter="${scheme.gutter}"` : ''
- const children = config.children.map(el => layouts[el.__config__.layout](el))
- let str = `
- ${children.join('\n')}
- `
- str = colWrapper(scheme, str)
- return str
- }
-}
-
-const tags = {
- 'el-button': el => {
- const {
- tag, disabled
- } = attrBuilder(el)
- const type = el.type ? `type="${el.type}"` : ''
- const icon = el.icon ? `icon="${el.icon}"` : ''
- const round = el.round ? 'round' : ''
- const size = el.size ? `size="${el.size}"` : ''
- const plain = el.plain ? 'plain' : ''
- const circle = el.circle ? 'circle' : ''
- let child = buildElButtonChild(el)
-
- if (child) child = `\n${child}\n` // 换行
- return `<${tag} ${type} ${icon} ${round} ${size} ${plain} ${disabled} ${circle}>${child}${tag}>`
- },
- 'el-input': el => {
- const {
- tag, disabled, vModel, clearable, placeholder, width
- } = attrBuilder(el)
- const maxlength = el.maxlength ? `:maxlength="${el.maxlength}"` : ''
- const showWordLimit = el['show-word-limit'] ? 'show-word-limit' : ''
- const readonly = el.readonly ? 'readonly' : ''
- const prefixIcon = el['prefix-icon'] ? `prefix-icon='${el['prefix-icon']}'` : ''
- const suffixIcon = el['suffix-icon'] ? `suffix-icon='${el['suffix-icon']}'` : ''
- const showPassword = el['show-password'] ? 'show-password' : ''
- const type = el.type ? `type="${el.type}"` : ''
- const autosize = el.autosize && el.autosize.minRows
- ? `:autosize="{minRows: ${el.autosize.minRows}, maxRows: ${el.autosize.maxRows}}"`
- : ''
- let child = buildElInputChild(el)
-
- if (child) child = `\n${child}\n` // 换行
- return `<${tag} ${vModel} ${type} ${placeholder} ${maxlength} ${showWordLimit} ${readonly} ${disabled} ${clearable} ${prefixIcon} ${suffixIcon} ${showPassword} ${autosize} ${width}>${child}${tag}>`
- },
- 'el-input-number': el => {
- const {
- tag, disabled, vModel, placeholder
- } = attrBuilder(el)
- const controlsPosition = el['controls-position'] ? `controls-position=${el['controls-position']}` : ''
- const min = el.min ? `:min='${el.min}'` : ''
- const max = el.max ? `:max='${el.max}'` : ''
- const step = el.step ? `:step='${el.step}'` : ''
- const stepStrictly = el['step-strictly'] ? 'step-strictly' : ''
- const precision = el.precision ? `:precision='${el.precision}'` : ''
-
- return `<${tag} ${vModel} ${placeholder} ${step} ${stepStrictly} ${precision} ${controlsPosition} ${min} ${max} ${disabled}>${tag}>`
- },
- 'el-select': el => {
- const {
- tag, disabled, vModel, clearable, placeholder, width
- } = attrBuilder(el)
- const filterable = el.filterable ? 'filterable' : ''
- const multiple = el.multiple ? 'multiple' : ''
- let child = buildElSelectChild(el)
-
- if (child) child = `\n${child}\n` // 换行
- return `<${tag} ${vModel} ${placeholder} ${disabled} ${multiple} ${filterable} ${clearable} ${width}>${child}${tag}>`
- },
- 'el-radio-group': el => {
- const { tag, disabled, vModel } = attrBuilder(el)
- const size = `size="${el.size}"`
- let child = buildElRadioGroupChild(el)
-
- if (child) child = `\n${child}\n` // 换行
- return `<${tag} ${vModel} ${size} ${disabled}>${child}${tag}>`
- },
- 'el-checkbox-group': el => {
- const { tag, disabled, vModel } = attrBuilder(el)
- const size = `size="${el.size}"`
- const min = el.min ? `:min="${el.min}"` : ''
- const max = el.max ? `:max="${el.max}"` : ''
- let child = buildElCheckboxGroupChild(el)
-
- if (child) child = `\n${child}\n` // 换行
- return `<${tag} ${vModel} ${min} ${max} ${size} ${disabled}>${child}${tag}>`
- },
- 'el-switch': el => {
- const { tag, disabled, vModel } = attrBuilder(el)
- const activeText = el['active-text'] ? `active-text="${el['active-text']}"` : ''
- const inactiveText = el['inactive-text'] ? `inactive-text="${el['inactive-text']}"` : ''
- const activeColor = el['active-color'] ? `active-color="${el['active-color']}"` : ''
- const inactiveColor = el['inactive-color'] ? `inactive-color="${el['inactive-color']}"` : ''
- const activeValue = el['active-value'] !== true ? `:active-value='${JSON.stringify(el['active-value'])}'` : ''
- const inactiveValue = el['inactive-value'] !== false ? `:inactive-value='${JSON.stringify(el['inactive-value'])}'` : ''
-
- return `<${tag} ${vModel} ${activeText} ${inactiveText} ${activeColor} ${inactiveColor} ${activeValue} ${inactiveValue} ${disabled}>${tag}>`
- },
- 'el-cascader': el => {
- const {
- tag, disabled, vModel, clearable, placeholder, width
- } = attrBuilder(el)
- const options = el.options ? `:options="${el.__vModel__}Options"` : ''
- const props = el.props ? `:props="${el.__vModel__}Props"` : ''
- const showAllLevels = el['show-all-levels'] ? '' : ':show-all-levels="false"'
- const filterable = el.filterable ? 'filterable' : ''
- const separator = el.separator === '/' ? '' : `separator="${el.separator}"`
-
- return `<${tag} ${vModel} ${options} ${props} ${width} ${showAllLevels} ${placeholder} ${separator} ${filterable} ${clearable} ${disabled}>${tag}>`
- },
- 'el-slider': el => {
- const { tag, disabled, vModel } = attrBuilder(el)
- const min = el.min ? `:min='${el.min}'` : ''
- const max = el.max ? `:max='${el.max}'` : ''
- const step = el.step ? `:step='${el.step}'` : ''
- const range = el.range ? 'range' : ''
- const showStops = el['show-stops'] ? `:show-stops="${el['show-stops']}"` : ''
-
- return `<${tag} ${min} ${max} ${step} ${vModel} ${range} ${showStops} ${disabled}>${tag}>`
- },
- 'el-time-picker': el => {
- const {
- tag, disabled, vModel, clearable, placeholder, width
- } = attrBuilder(el)
- const startPlaceholder = el['start-placeholder'] ? `start-placeholder="${el['start-placeholder']}"` : ''
- const endPlaceholder = el['end-placeholder'] ? `end-placeholder="${el['end-placeholder']}"` : ''
- const rangeSeparator = el['range-separator'] ? `range-separator="${el['range-separator']}"` : ''
- const isRange = el['is-range'] ? 'is-range' : ''
- const format = el.format ? `format="${el.format}"` : ''
- const valueFormat = el['value-format'] ? `value-format="${el['value-format']}"` : ''
- const pickerOptions = el['picker-options'] ? `:picker-options='${JSON.stringify(el['picker-options'])}'` : ''
-
- return `<${tag} ${vModel} ${isRange} ${format} ${valueFormat} ${pickerOptions} ${width} ${placeholder} ${startPlaceholder} ${endPlaceholder} ${rangeSeparator} ${clearable} ${disabled}>${tag}>`
- },
- 'el-date-picker': el => {
- const {
- tag, disabled, vModel, clearable, placeholder, width
- } = attrBuilder(el)
- const startPlaceholder = el['start-placeholder'] ? `start-placeholder="${el['start-placeholder']}"` : ''
- const endPlaceholder = el['end-placeholder'] ? `end-placeholder="${el['end-placeholder']}"` : ''
- const rangeSeparator = el['range-separator'] ? `range-separator="${el['range-separator']}"` : ''
- const format = el.format ? `format="${el.format}"` : ''
- const valueFormat = el['value-format'] ? `value-format="${el['value-format']}"` : ''
- const type = el.type === 'date' ? '' : `type="${el.type}"`
- const readonly = el.readonly ? 'readonly' : ''
-
- return `<${tag} ${type} ${vModel} ${format} ${valueFormat} ${width} ${placeholder} ${startPlaceholder} ${endPlaceholder} ${rangeSeparator} ${clearable} ${readonly} ${disabled}>${tag}>`
- },
- 'el-rate': el => {
- const { tag, disabled, vModel } = attrBuilder(el)
- const max = el.max ? `:max='${el.max}'` : ''
- const allowHalf = el['allow-half'] ? 'allow-half' : ''
- const showText = el['show-text'] ? 'show-text' : ''
- const showScore = el['show-score'] ? 'show-score' : ''
-
- return `<${tag} ${vModel} ${max} ${allowHalf} ${showText} ${showScore} ${disabled}>${tag}>`
- },
- 'el-color-picker': el => {
- const { tag, disabled, vModel } = attrBuilder(el)
- const size = `size="${el.size}"`
- const showAlpha = el['show-alpha'] ? 'show-alpha' : ''
- const colorFormat = el['color-format'] ? `color-format="${el['color-format']}"` : ''
-
- return `<${tag} ${vModel} ${size} ${showAlpha} ${colorFormat} ${disabled}>${tag}>`
- },
- 'el-upload': el => {
- const { tag } = el.__config__
- const disabled = el.disabled ? ':disabled=\'true\'' : ''
- const action = el.action ? `:action="${el.__vModel__}Action"` : ''
- const multiple = el.multiple ? 'multiple' : ''
- const listType = el['list-type'] !== 'text' ? `list-type="${el['list-type']}"` : ''
- const accept = el.accept ? `accept="${el.accept}"` : ''
- const name = el.name !== 'file' ? `name="${el.name}"` : ''
- const autoUpload = el['auto-upload'] === false ? ':auto-upload="false"' : ''
- const beforeUpload = `:before-upload="${el.__vModel__}BeforeUpload"`
- const fileList = `:file-list="${el.__vModel__}fileList"`
- const ref = `ref="${el.__vModel__}"`
- let child = buildElUploadChild(el)
-
- if (child) child = `\n${child}\n` // 换行
- return `<${tag} ${ref} ${fileList} ${action} ${autoUpload} ${multiple} ${beforeUpload} ${listType} ${accept} ${name} ${disabled}>${child}${tag}>`
- },
- tinymce: el => {
- const { tag, vModel, placeholder } = attrBuilder(el)
- const height = el.height ? `:height="${el.height}"` : ''
- const branding = el.branding ? `:branding="${el.branding}"` : ''
- return `<${tag} ${vModel} ${placeholder} ${height} ${branding}>${tag}>`
- }
-}
-
-function attrBuilder(el) {
- return {
- tag: el.__config__.tag,
- vModel: `v-model="${confGlobal.formModel}.${el.__vModel__}"`,
- clearable: el.clearable ? 'clearable' : '',
- placeholder: el.placeholder ? `placeholder="${el.placeholder}"` : '',
- width: el.style && el.style.width ? ':style="{width: \'100%\'}"' : '',
- disabled: el.disabled ? ':disabled=\'true\'' : ''
- }
-}
-
-// el-buttin 子级
-function buildElButtonChild(scheme) {
- const children = []
- const slot = scheme.__slot__ || {}
- if (slot.default) {
- children.push(slot.default)
- }
- return children.join('\n')
-}
-
-// el-input 子级
-function buildElInputChild(scheme) {
- const children = []
- const slot = scheme.__slot__
- if (slot && slot.prepend) {
- children.push(`${slot.prepend}`)
- }
- if (slot && slot.append) {
- children.push(`${slot.append}`)
- }
- return children.join('\n')
-}
-
-// el-select 子级
-function buildElSelectChild(scheme) {
- const children = []
- const slot = scheme.__slot__
- if (slot && slot.options && slot.options.length) {
- children.push(``)
- }
- return children.join('\n')
-}
-
-// el-radio-group 子级
-function buildElRadioGroupChild(scheme) {
- const children = []
- const slot = scheme.__slot__
- const config = scheme.__config__
- if (slot && slot.options && slot.options.length) {
- const tag = config.optionType === 'button' ? 'el-radio-button' : 'el-radio'
- const border = config.border ? 'border' : ''
- children.push(`<${tag} v-for="(item, index) in ${scheme.__vModel__}Options" :key="index" :label="item.value" :disabled="item.disabled" ${border}>{{item.label}}${tag}>`)
- }
- return children.join('\n')
-}
-
-// el-checkbox-group 子级
-function buildElCheckboxGroupChild(scheme) {
- const children = []
- const slot = scheme.__slot__
- const config = scheme.__config__
- if (slot && slot.options && slot.options.length) {
- const tag = config.optionType === 'button' ? 'el-checkbox-button' : 'el-checkbox'
- const border = config.border ? 'border' : ''
- children.push(`<${tag} v-for="(item, index) in ${scheme.__vModel__}Options" :key="index" :label="item.value" :disabled="item.disabled" ${border}>{{item.label}}${tag}>`)
- }
- return children.join('\n')
-}
-
-// el-upload 子级
-function buildElUploadChild(scheme) {
- const list = []
- const config = scheme.__config__
- if (scheme['list-type'] === 'picture-card') list.push('')
- else list.push(`${config.buttonText}`)
- if (config.showTip) list.push(`只能上传不超过 ${config.fileSize}${config.sizeUnit} 的${scheme.accept}文件
`)
- return list.join('\n')
-}
-
-/**
- * 组装html代码。【入口函数】
- * @param {Object} formConfig 整个表单配置
- * @param {String} type 生成类型,文件或弹窗等
- */
-export function makeUpHtml(formConfig, type) {
- const htmlList = []
- confGlobal = formConfig
- // 判断布局是否都沾满了24个栅格,以备后续简化代码结构
- someSpanIsNot24 = formConfig.fields.some(item => item.__config__.span !== 24)
- // 遍历渲染每个组件成html
- formConfig.fields.forEach(el => {
- htmlList.push(layouts[el.__config__.layout](el))
- })
- const htmlStr = htmlList.join('\n')
- // 将组件代码放进form标签
- let temp = buildFormTemplate(formConfig, htmlStr, type)
- // dialog标签包裹代码
- if (type === 'dialog') {
- temp = dialogWrapper(temp)
- }
- confGlobal = null
- return temp
-}
diff --git a/src/components/generator/js.js b/src/components/generator/js.js
deleted file mode 100644
index f1605937..00000000
--- a/src/components/generator/js.js
+++ /dev/null
@@ -1,271 +0,0 @@
-import { isArray } from 'util'
-import { exportDefault, titleCase, deepClone } from '@/utils'
-import ruleTrigger from './ruleTrigger'
-
-const units = {
- KB: '1024',
- MB: '1024 / 1024',
- GB: '1024 / 1024 / 1024'
-}
-let confGlobal
-const inheritAttrs = {
- file: '',
- dialog: 'inheritAttrs: false,'
-}
-
-/**
- * 组装js 【入口函数】
- * @param {Object} formConfig 整个表单配置
- * @param {String} type 生成类型,文件或弹窗等
- */
-export function makeUpJs(formConfig, type) {
- confGlobal = formConfig = deepClone(formConfig)
- const dataList = []
- const ruleList = []
- const optionsList = []
- const propsList = []
- const methodList = mixinMethod(type)
- const uploadVarList = []
- const created = []
-
- formConfig.fields.forEach(el => {
- buildAttributes(el, dataList, ruleList, optionsList, methodList, propsList, uploadVarList, created)
- })
-
- const script = buildexport(
- formConfig,
- type,
- dataList.join('\n'),
- ruleList.join('\n'),
- optionsList.join('\n'),
- uploadVarList.join('\n'),
- propsList.join('\n'),
- methodList.join('\n'),
- created.join('\n')
- )
- confGlobal = null
- return script
-}
-
-// 构建组件属性
-function buildAttributes(scheme, dataList, ruleList, optionsList, methodList, propsList, uploadVarList, created) {
- const config = scheme.__config__
- const slot = scheme.__slot__
- buildData(scheme, dataList)
- buildRules(scheme, ruleList)
-
- // 特殊处理options属性
- if (scheme.options || (slot && slot.options && slot.options.length)) {
- buildOptions(scheme, optionsList)
- if (config.dataType === 'dynamic') {
- const model = `${scheme.__vModel__}Options`
- const options = titleCase(model)
- const methodName = `get${options}`
- buildOptionMethod(methodName, model, methodList, scheme)
- callInCreated(methodName, created)
- }
- }
-
- // 处理props
- if (scheme.props && scheme.props.props) {
- buildProps(scheme, propsList)
- }
-
- // 处理el-upload的action
- if (scheme.action && config.tag === 'el-upload') {
- uploadVarList.push(
- `${scheme.__vModel__}Action: '${scheme.action}',
- ${scheme.__vModel__}fileList: [],`
- )
- methodList.push(buildBeforeUpload(scheme))
- // 非自动上传时,生成手动上传的函数
- if (!scheme['auto-upload']) {
- methodList.push(buildSubmitUpload(scheme))
- }
- }
-
- // 构建子级组件属性
- if (config.children) {
- config.children.forEach(item => {
- buildAttributes(item, dataList, ruleList, optionsList, methodList, propsList, uploadVarList, created)
- })
- }
-}
-
-// 在Created调用函数
-function callInCreated(methodName, created) {
- created.push(`this.${methodName}()`)
-}
-
-// 混入处理函数
-function mixinMethod(type) {
- const list = []; const
- minxins = {
- file: confGlobal.formBtns ? {
- submitForm: `submitForm() {
- this.$refs['${confGlobal.formRef}'].validate(valid => {
- if(!valid) return
- // TODO 提交表单
- })
- },`,
- resetForm: `resetForm() {
- this.$refs['${confGlobal.formRef}'].resetFields()
- },`
- } : null,
- dialog: {
- onOpen: 'onOpen() {},',
- onClose: `onClose() {
- this.$refs['${confGlobal.formRef}'].resetFields()
- },`,
- close: `close() {
- this.$emit('update:visible', false)
- },`,
- handelConfirm: `handelConfirm() {
- this.$refs['${confGlobal.formRef}'].validate(valid => {
- if(!valid) return
- this.close()
- })
- },`
- }
- }
-
- const methods = minxins[type]
- if (methods) {
- Object.keys(methods).forEach(key => {
- list.push(methods[key])
- })
- }
-
- return list
-}
-
-// 构建data
-function buildData(scheme, dataList) {
- const config = scheme.__config__
- if (scheme.__vModel__ === undefined) return
- const defaultValue = JSON.stringify(config.defaultValue)
- dataList.push(`${scheme.__vModel__}: ${defaultValue},`)
-}
-
-// 构建校验规则
-function buildRules(scheme, ruleList) {
- const config = scheme.__config__
- if (scheme.__vModel__ === undefined) return
- const rules = []
- if (ruleTrigger[config.tag]) {
- if (config.required) {
- const type = isArray(config.defaultValue) ? 'type: \'array\',' : ''
- let message = isArray(config.defaultValue) ? `请至少选择一个${config.label}` : scheme.placeholder
- if (message === undefined) message = `${config.label}不能为空`
- rules.push(`{ required: true, ${type} message: '${message}', trigger: '${ruleTrigger[config.tag]}' }`)
- }
- if (config.regList && isArray(config.regList)) {
- config.regList.forEach(item => {
- if (item.pattern) {
- rules.push(
- `{ pattern: ${eval(item.pattern)}, message: '${item.message}', trigger: '${ruleTrigger[config.tag]}' }`
- )
- }
- })
- }
- ruleList.push(`${scheme.__vModel__}: [${rules.join(',')}],`)
- }
-}
-
-// 构建options
-function buildOptions(scheme, optionsList) {
- if (scheme.__vModel__ === undefined) return
- // el-cascader直接有options属性,其他组件都是定义在slot中,所以有两处判断
- let { options } = scheme
- if (!options) options = scheme.__slot__.options
- if (scheme.__config__.dataType === 'dynamic') { options = [] }
- const str = `${scheme.__vModel__}Options: ${JSON.stringify(options)},`
- optionsList.push(str)
-}
-
-function buildProps(scheme, propsList) {
- const str = `${scheme.__vModel__}Props: ${JSON.stringify(scheme.props.props)},`
- propsList.push(str)
-}
-
-// el-upload的BeforeUpload
-function buildBeforeUpload(scheme) {
- const config = scheme.__config__
- const unitNum = units[config.sizeUnit]; let rightSizeCode = ''; let acceptCode = ''; const
- returnList = []
- if (config.fileSize) {
- rightSizeCode = `let isRightSize = file.size / ${unitNum} < ${config.fileSize}
- if(!isRightSize){
- this.$message.error('文件大小超过 ${config.fileSize}${config.sizeUnit}')
- }`
- returnList.push('isRightSize')
- }
- if (scheme.accept) {
- acceptCode = `let isAccept = new RegExp('${scheme.accept}').test(file.type)
- if(!isAccept){
- this.$message.error('应该选择${scheme.accept}类型的文件')
- }`
- returnList.push('isAccept')
- }
- const str = `${scheme.__vModel__}BeforeUpload(file) {
- ${rightSizeCode}
- ${acceptCode}
- return ${returnList.join('&&')}
- },`
- return returnList.length ? str : ''
-}
-
-// el-upload的submit
-function buildSubmitUpload(scheme) {
- const str = `submitUpload() {
- this.$refs['${scheme.__vModel__}'].submit()
- },`
- return str
-}
-
-function buildOptionMethod(methodName, model, methodList, scheme) {
- const config = scheme.__config__
- const str = `${methodName}() {
- // 注意:this.$axios是通过Vue.prototype.$axios = axios挂载产生的
- this.$axios({
- method: '${config.method}',
- url: '${config.url}'
- }).then(resp => {
- var { data } = resp
- this.${model} = data.${config.dataPath}
- })
- },`
- methodList.push(str)
-}
-
-// js整体拼接
-function buildexport(conf, type, data, rules, selectOptions, uploadVar, props, methods, created) {
- const str = `${exportDefault}{
- ${inheritAttrs[type]}
- components: {},
- props: [],
- data () {
- return {
- ${conf.formModel}: {
- ${data}
- },
- ${conf.formRules}: {
- ${rules}
- },
- ${uploadVar}
- ${selectOptions}
- ${props}
- }
- },
- computed: {},
- watch: {},
- created () {
- ${created}
- },
- mounted () {},
- methods: {
- ${methods}
- }
-}`
- return str
-}
diff --git a/src/components/generator/ruleTrigger.js b/src/components/generator/ruleTrigger.js
deleted file mode 100644
index 3c161b5d..00000000
--- a/src/components/generator/ruleTrigger.js
+++ /dev/null
@@ -1,16 +0,0 @@
-/**
- * 用于生成表单校验,指定正则规则的触发方式。
- * 未在此处声明无触发方式的组件将不生成rule!!
- */
-export default {
- 'el-input': 'blur',
- 'el-input-number': 'blur',
- 'el-select': 'change',
- 'el-radio-group': 'change',
- 'el-checkbox-group': 'change',
- 'el-cascader': 'change',
- 'el-time-picker': 'change',
- 'el-date-picker': 'change',
- 'el-rate': 'change',
- tinymce: 'blur'
-}
diff --git a/src/components/tableInnerComponents.js b/src/components/tableInnerComponents.js
new file mode 100644
index 00000000..53fcff1d
--- /dev/null
+++ b/src/components/tableInnerComponents.js
@@ -0,0 +1,60 @@
+/**
+ * 本文件保存一些 BaseTable 会用到的组件
+ */
+
+// 操作按钮
+export const TableBtn = {
+ name: 'TableBtn',
+ props: ['injectData'],
+ data() {
+ return {};
+ },
+ methods: {
+ handleClick() {
+ this.$emit('emitData', {
+ action: this.injectData.label,
+ value: this.injectData,
+ });
+ },
+ },
+ render: function (h) {
+ return (
+
+ {this.injectData.entryText}
+
+ );
+ },
+};
+
+// 余量
+export const RemainBox = {
+ name: 'RemainBox',
+ props: ['injectData'],
+ data() {
+ return {};
+ },
+ computed: {
+ value() {
+ return this.injectData[this.injectData.prop] || null;
+ },
+ color() {
+ if (this.value) {
+ const v = +this.value;
+ return v < 0 ? '#FF5454' : v >= 0 && v < 2 ? '#FFD767' : '#37D97F';
+ }
+ return 'unset';
+ },
+ },
+ render: function (h) {
+ return (
+
+ {this.injectData[this.injectData.prop]?.toFixed(0) || ''}
+
+ );
+ },
+};
diff --git a/src/components/tinymce/README.md b/src/components/tinymce/README.md
deleted file mode 100644
index 65c01e21..00000000
--- a/src/components/tinymce/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-## 简介
-富文本编辑器tinymce的一个vue版本封装。使用cdn动态脚本引入的方式加载。
-
diff --git a/src/components/tinymce/config.js b/src/components/tinymce/config.js
deleted file mode 100644
index fc615544..00000000
--- a/src/components/tinymce/config.js
+++ /dev/null
@@ -1,8 +0,0 @@
-/* eslint-disable max-len */
-
-export const plugins = [
- 'advlist anchor autolink autosave code codesample directionality emoticons fullscreen hr image imagetools insertdatetime link lists media nonbreaking noneditable pagebreak paste preview print save searchreplace spellchecker tabfocus table template textpattern visualblocks visualchars wordcount'
-]
-export const toolbar = [
- 'code searchreplace bold italic underline strikethrough alignleft aligncenter alignright outdent indent blockquote removeformat subscript superscript codesample hr bullist numlist link image charmap preview anchor pagebreak insertdatetime media table emoticons forecolor backcolor fullscreen'
-]
diff --git a/src/components/tinymce/example/Index.vue b/src/components/tinymce/example/Index.vue
deleted file mode 100644
index e5a9f65d..00000000
--- a/src/components/tinymce/example/Index.vue
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
-
-
-
-
-
diff --git a/src/components/tinymce/index.js b/src/components/tinymce/index.js
deleted file mode 100644
index 1e831794..00000000
--- a/src/components/tinymce/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-import Index from './index.vue'
-
-export default Index
diff --git a/src/components/tinymce/index.vue b/src/components/tinymce/index.vue
deleted file mode 100644
index 2eda1a1c..00000000
--- a/src/components/tinymce/index.vue
+++ /dev/null
@@ -1,88 +0,0 @@
-
-
-
-
-
diff --git a/src/components/tinymce/package.json b/src/components/tinymce/package.json
deleted file mode 100644
index 3d2d2d4b..00000000
--- a/src/components/tinymce/package.json
+++ /dev/null
@@ -1,28 +0,0 @@
-{
- "name": "form-gen-tinymce",
- "version": "1.0.0",
- "description": "富文本编辑器tinymce的一个vue版本封装。使用cdn动态脚本引入的方式加载。",
- "main": "lib/form-gen-tinymce.umd.js",
- "directories": {
- "example": "example"
- },
- "scripts": {
- "test": "echo \"Error: no test specified\" && exit 1"
- },
- "repository": {
- "type": "git",
- "url": "git+https://github.com/JakHuang/form-generator.git"
- },
- "keywords": [
- "tinymce-vue"
- ],
- "dependencies": {
- "throttle-debounce": "^2.1.0"
- },
- "author": "jakHuang",
- "license": "MIT",
- "bugs": {
- "url": "https://github.com/JakHuang/form-generator/issues"
- },
- "homepage": "https://github.com/JakHuang/form-generator/blob/dev/src/components/tinymce"
-}
diff --git a/src/components/tinymce/zh_CN.js b/src/components/tinymce/zh_CN.js
deleted file mode 100644
index 4f494d63..00000000
--- a/src/components/tinymce/zh_CN.js
+++ /dev/null
@@ -1,420 +0,0 @@
-/* eslint-disable */
-tinymce.addI18n('zh_CN',{
-"Redo": "\u91cd\u505a",
-"Undo": "\u64a4\u9500",
-"Cut": "\u526a\u5207",
-"Copy": "\u590d\u5236",
-"Paste": "\u7c98\u8d34",
-"Select all": "\u5168\u9009",
-"New document": "\u65b0\u6587\u4ef6",
-"Ok": "\u786e\u5b9a",
-"Cancel": "\u53d6\u6d88",
-"Visual aids": "\u7f51\u683c\u7ebf",
-"Bold": "\u7c97\u4f53",
-"Italic": "\u659c\u4f53",
-"Underline": "\u4e0b\u5212\u7ebf",
-"Strikethrough": "\u5220\u9664\u7ebf",
-"Superscript": "\u4e0a\u6807",
-"Subscript": "\u4e0b\u6807",
-"Clear formatting": "\u6e05\u9664\u683c\u5f0f",
-"Align left": "\u5de6\u8fb9\u5bf9\u9f50",
-"Align center": "\u4e2d\u95f4\u5bf9\u9f50",
-"Align right": "\u53f3\u8fb9\u5bf9\u9f50",
-"Justify": "\u4e24\u7aef\u5bf9\u9f50",
-"Bullet list": "\u9879\u76ee\u7b26\u53f7",
-"Numbered list": "\u7f16\u53f7\u5217\u8868",
-"Decrease indent": "\u51cf\u5c11\u7f29\u8fdb",
-"Increase indent": "\u589e\u52a0\u7f29\u8fdb",
-"Close": "\u5173\u95ed",
-"Formats": "\u683c\u5f0f",
-"Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X\/C\/V keyboard shortcuts instead.": "\u4f60\u7684\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u6253\u5f00\u526a\u8d34\u677f\uff0c\u8bf7\u4f7f\u7528Ctrl+X\/C\/V\u7b49\u5feb\u6377\u952e\u3002",
-"Headers": "\u6807\u9898",
-"Header 1": "\u6807\u98981",
-"Header 2": "\u6807\u98982",
-"Header 3": "\u6807\u98983",
-"Header 4": "\u6807\u98984",
-"Header 5": "\u6807\u98985",
-"Header 6": "\u6807\u98986",
-"Headings": "\u6807\u9898",
-"Heading 1": "\u6807\u98981",
-"Heading 2": "\u6807\u98982",
-"Heading 3": "\u6807\u98983",
-"Heading 4": "\u6807\u98984",
-"Heading 5": "\u6807\u98985",
-"Heading 6": "\u6807\u98986",
-"Preformatted": "\u9884\u5148\u683c\u5f0f\u5316\u7684",
-"Div": "Div",
-"Pre": "Pre",
-"Code": "\u4ee3\u7801",
-"Paragraph": "\u6bb5\u843d",
-"Blockquote": "\u5f15\u6587\u533a\u5757",
-"Inline": "\u6587\u672c",
-"Blocks": "\u57fa\u5757",
-"Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.": "\u5f53\u524d\u4e3a\u7eaf\u6587\u672c\u7c98\u8d34\u6a21\u5f0f\uff0c\u518d\u6b21\u70b9\u51fb\u53ef\u4ee5\u56de\u5230\u666e\u901a\u7c98\u8d34\u6a21\u5f0f\u3002",
-"Fonts": "\u5b57\u4f53",
-"Font Sizes": "\u5b57\u53f7",
-"Class": "\u7c7b\u578b",
-"Browse for an image": "\u6d4f\u89c8\u56fe\u50cf",
-"OR": "\u6216",
-"Drop an image here": "\u62d6\u653e\u4e00\u5f20\u56fe\u50cf\u81f3\u6b64",
-"Upload": "\u4e0a\u4f20",
-"Block": "\u5757",
-"Align": "\u5bf9\u9f50",
-"Default": "\u9ed8\u8ba4",
-"Circle": "\u7a7a\u5fc3\u5706",
-"Disc": "\u5b9e\u5fc3\u5706",
-"Square": "\u65b9\u5757",
-"Lower Alpha": "\u5c0f\u5199\u82f1\u6587\u5b57\u6bcd",
-"Lower Greek": "\u5c0f\u5199\u5e0c\u814a\u5b57\u6bcd",
-"Lower Roman": "\u5c0f\u5199\u7f57\u9a6c\u5b57\u6bcd",
-"Upper Alpha": "\u5927\u5199\u82f1\u6587\u5b57\u6bcd",
-"Upper Roman": "\u5927\u5199\u7f57\u9a6c\u5b57\u6bcd",
-"Anchor...": "\u951a\u70b9...",
-"Name": "\u540d\u79f0",
-"Id": "\u6807\u8bc6\u7b26",
-"Id should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores.": "\u6807\u8bc6\u7b26\u5e94\u8be5\u4ee5\u5b57\u6bcd\u5f00\u5934\uff0c\u540e\u8ddf\u5b57\u6bcd\u3001\u6570\u5b57\u3001\u7834\u6298\u53f7\u3001\u70b9\u3001\u5192\u53f7\u6216\u4e0b\u5212\u7ebf\u3002",
-"You have unsaved changes are you sure you want to navigate away?": "\u4f60\u8fd8\u6709\u6587\u6863\u5c1a\u672a\u4fdd\u5b58\uff0c\u786e\u5b9a\u8981\u79bb\u5f00\uff1f",
-"Restore last draft": "\u6062\u590d\u4e0a\u6b21\u7684\u8349\u7a3f",
-"Special character...": "\u7279\u6b8a\u5b57\u7b26...",
-"Source code": "\u6e90\u4ee3\u7801",
-"Insert\/Edit code sample": "\u63d2\u5165\/\u7f16\u8f91\u4ee3\u7801\u793a\u4f8b",
-"Language": "\u8bed\u8a00",
-"Code sample...": "\u793a\u4f8b\u4ee3\u7801...",
-"Color Picker": "\u9009\u8272\u5668",
-"R": "R",
-"G": "G",
-"B": "B",
-"Left to right": "\u4ece\u5de6\u5230\u53f3",
-"Right to left": "\u4ece\u53f3\u5230\u5de6",
-"Emoticons...": "\u8868\u60c5\u7b26\u53f7...",
-"Metadata and Document Properties": "\u5143\u6570\u636e\u548c\u6587\u6863\u5c5e\u6027",
-"Title": "\u6807\u9898",
-"Keywords": "\u5173\u952e\u8bcd",
-"Description": "\u63cf\u8ff0",
-"Robots": "\u673a\u5668\u4eba",
-"Author": "\u4f5c\u8005",
-"Encoding": "\u7f16\u7801",
-"Fullscreen": "\u5168\u5c4f",
-"Action": "\u64cd\u4f5c",
-"Shortcut": "\u5feb\u6377\u952e",
-"Help": "\u5e2e\u52a9",
-"Address": "\u5730\u5740",
-"Focus to menubar": "\u79fb\u52a8\u7126\u70b9\u5230\u83dc\u5355\u680f",
-"Focus to toolbar": "\u79fb\u52a8\u7126\u70b9\u5230\u5de5\u5177\u680f",
-"Focus to element path": "\u79fb\u52a8\u7126\u70b9\u5230\u5143\u7d20\u8def\u5f84",
-"Focus to contextual toolbar": "\u79fb\u52a8\u7126\u70b9\u5230\u4e0a\u4e0b\u6587\u83dc\u5355",
-"Insert link (if link plugin activated)": "\u63d2\u5165\u94fe\u63a5 (\u5982\u679c\u94fe\u63a5\u63d2\u4ef6\u5df2\u6fc0\u6d3b)",
-"Save (if save plugin activated)": "\u4fdd\u5b58(\u5982\u679c\u4fdd\u5b58\u63d2\u4ef6\u5df2\u6fc0\u6d3b)",
-"Find (if searchreplace plugin activated)": "\u67e5\u627e(\u5982\u679c\u67e5\u627e\u66ff\u6362\u63d2\u4ef6\u5df2\u6fc0\u6d3b)",
-"Plugins installed ({0}):": "\u5df2\u5b89\u88c5\u63d2\u4ef6 ({0}):",
-"Premium plugins:": "\u4f18\u79c0\u63d2\u4ef6\uff1a",
-"Learn more...": "\u4e86\u89e3\u66f4\u591a...",
-"You are using {0}": "\u4f60\u6b63\u5728\u4f7f\u7528 {0}",
-"Plugins": "\u63d2\u4ef6",
-"Handy Shortcuts": "\u5feb\u6377\u952e",
-"Horizontal line": "\u6c34\u5e73\u5206\u5272\u7ebf",
-"Insert\/edit image": "\u63d2\u5165\/\u7f16\u8f91\u56fe\u7247",
-"Image description": "\u56fe\u7247\u63cf\u8ff0",
-"Source": "\u5730\u5740",
-"Dimensions": "\u5927\u5c0f",
-"Constrain proportions": "\u4fdd\u6301\u7eb5\u6a2a\u6bd4",
-"General": "\u666e\u901a",
-"Advanced": "\u9ad8\u7ea7",
-"Style": "\u6837\u5f0f",
-"Vertical space": "\u5782\u76f4\u8fb9\u8ddd",
-"Horizontal space": "\u6c34\u5e73\u8fb9\u8ddd",
-"Border": "\u8fb9\u6846",
-"Insert image": "\u63d2\u5165\u56fe\u7247",
-"Image...": "\u56fe\u7247...",
-"Image list": "\u56fe\u7247\u5217\u8868",
-"Rotate counterclockwise": "\u9006\u65f6\u9488\u65cb\u8f6c",
-"Rotate clockwise": "\u987a\u65f6\u9488\u65cb\u8f6c",
-"Flip vertically": "\u5782\u76f4\u7ffb\u8f6c",
-"Flip horizontally": "\u6c34\u5e73\u7ffb\u8f6c",
-"Edit image": "\u7f16\u8f91\u56fe\u7247",
-"Image options": "\u56fe\u7247\u9009\u9879",
-"Zoom in": "\u653e\u5927",
-"Zoom out": "\u7f29\u5c0f",
-"Crop": "\u88c1\u526a",
-"Resize": "\u8c03\u6574\u5927\u5c0f",
-"Orientation": "\u65b9\u5411",
-"Brightness": "\u4eae\u5ea6",
-"Sharpen": "\u9510\u5316",
-"Contrast": "\u5bf9\u6bd4\u5ea6",
-"Color levels": "\u989c\u8272\u5c42\u6b21",
-"Gamma": "\u4f3d\u9a6c\u503c",
-"Invert": "\u53cd\u8f6c",
-"Apply": "\u5e94\u7528",
-"Back": "\u540e\u9000",
-"Insert date\/time": "\u63d2\u5165\u65e5\u671f\/\u65f6\u95f4",
-"Date\/time": "\u65e5\u671f\/\u65f6\u95f4",
-"Insert\/Edit Link": "\u63d2\u5165\/\u7f16\u8f91\u94fe\u63a5",
-"Insert\/edit link": "\u63d2\u5165\/\u7f16\u8f91\u94fe\u63a5",
-"Text to display": "\u663e\u793a\u6587\u5b57",
-"Url": "\u5730\u5740",
-"Open link in...": "\u94fe\u63a5\u6253\u5f00\u4f4d\u7f6e...",
-"Current window": "\u5f53\u524d\u7a97\u53e3",
-"None": "\u65e0",
-"New window": "\u5728\u65b0\u7a97\u53e3\u6253\u5f00",
-"Remove link": "\u5220\u9664\u94fe\u63a5",
-"Anchors": "\u951a\u70b9",
-"Link...": "\u94fe\u63a5...",
-"Paste or type a link": "\u7c98\u8d34\u6216\u8f93\u5165\u94fe\u63a5",
-"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?": "\u4f60\u6240\u586b\u5199\u7684URL\u5730\u5740\u4e3a\u90ae\u4ef6\u5730\u5740\uff0c\u9700\u8981\u52a0\u4e0amailto:\u524d\u7f00\u5417\uff1f",
-"The URL you entered seems to be an external link. Do you want to add the required http:\/\/ prefix?": "\u4f60\u6240\u586b\u5199\u7684URL\u5730\u5740\u5c5e\u4e8e\u5916\u90e8\u94fe\u63a5\uff0c\u9700\u8981\u52a0\u4e0ahttp:\/\/:\u524d\u7f00\u5417\uff1f",
-"Link list": "\u94fe\u63a5\u5217\u8868",
-"Insert video": "\u63d2\u5165\u89c6\u9891",
-"Insert\/edit video": "\u63d2\u5165\/\u7f16\u8f91\u89c6\u9891",
-"Insert\/edit media": "\u63d2\u5165\/\u7f16\u8f91\u5a92\u4f53",
-"Alternative source": "\u955c\u50cf",
-"Alternative source URL": "\u66ff\u4ee3\u6765\u6e90\u7f51\u5740",
-"Media poster (Image URL)": "\u5c01\u9762(\u56fe\u7247\u5730\u5740)",
-"Paste your embed code below:": "\u5c06\u5185\u5d4c\u4ee3\u7801\u7c98\u8d34\u5728\u4e0b\u9762:",
-"Embed": "\u5185\u5d4c",
-"Media...": "\u591a\u5a92\u4f53...",
-"Nonbreaking space": "\u4e0d\u95f4\u65ad\u7a7a\u683c",
-"Page break": "\u5206\u9875\u7b26",
-"Paste as text": "\u7c98\u8d34\u4e3a\u6587\u672c",
-"Preview": "\u9884\u89c8",
-"Print...": "\u6253\u5370...",
-"Save": "\u4fdd\u5b58",
-"Find": "\u67e5\u627e",
-"Replace with": "\u66ff\u6362\u4e3a",
-"Replace": "\u66ff\u6362",
-"Replace all": "\u5168\u90e8\u66ff\u6362",
-"Previous": "\u4e0a\u4e00\u4e2a",
-"Next": "\u4e0b\u4e00\u4e2a",
-"Find and replace...": "\u67e5\u627e\u5e76\u66ff\u6362...",
-"Could not find the specified string.": "\u672a\u627e\u5230\u641c\u7d22\u5185\u5bb9.",
-"Match case": "\u533a\u5206\u5927\u5c0f\u5199",
-"Find whole words only": "\u5168\u5b57\u5339\u914d",
-"Spell check": "\u62fc\u5199\u68c0\u67e5",
-"Ignore": "\u5ffd\u7565",
-"Ignore all": "\u5168\u90e8\u5ffd\u7565",
-"Finish": "\u5b8c\u6210",
-"Add to Dictionary": "\u6dfb\u52a0\u5230\u5b57\u5178",
-"Insert table": "\u63d2\u5165\u8868\u683c",
-"Table properties": "\u8868\u683c\u5c5e\u6027",
-"Delete table": "\u5220\u9664\u8868\u683c",
-"Cell": "\u5355\u5143\u683c",
-"Row": "\u884c",
-"Column": "\u5217",
-"Cell properties": "\u5355\u5143\u683c\u5c5e\u6027",
-"Merge cells": "\u5408\u5e76\u5355\u5143\u683c",
-"Split cell": "\u62c6\u5206\u5355\u5143\u683c",
-"Insert row before": "\u5728\u4e0a\u65b9\u63d2\u5165",
-"Insert row after": "\u5728\u4e0b\u65b9\u63d2\u5165",
-"Delete row": "\u5220\u9664\u884c",
-"Row properties": "\u884c\u5c5e\u6027",
-"Cut row": "\u526a\u5207\u884c",
-"Copy row": "\u590d\u5236\u884c",
-"Paste row before": "\u7c98\u8d34\u5230\u4e0a\u65b9",
-"Paste row after": "\u7c98\u8d34\u5230\u4e0b\u65b9",
-"Insert column before": "\u5728\u5de6\u4fa7\u63d2\u5165",
-"Insert column after": "\u5728\u53f3\u4fa7\u63d2\u5165",
-"Delete column": "\u5220\u9664\u5217",
-"Cols": "\u5217",
-"Rows": "\u884c",
-"Width": "\u5bbd",
-"Height": "\u9ad8",
-"Cell spacing": "\u5355\u5143\u683c\u5916\u95f4\u8ddd",
-"Cell padding": "\u5355\u5143\u683c\u5185\u8fb9\u8ddd",
-"Show caption": "\u663e\u793a\u6807\u9898",
-"Left": "\u5de6\u5bf9\u9f50",
-"Center": "\u5c45\u4e2d",
-"Right": "\u53f3\u5bf9\u9f50",
-"Cell type": "\u5355\u5143\u683c\u7c7b\u578b",
-"Scope": "\u8303\u56f4",
-"Alignment": "\u5bf9\u9f50\u65b9\u5f0f",
-"H Align": "\u6c34\u5e73\u5bf9\u9f50",
-"V Align": "\u5782\u76f4\u5bf9\u9f50",
-"Top": "\u9876\u90e8\u5bf9\u9f50",
-"Middle": "\u5782\u76f4\u5c45\u4e2d",
-"Bottom": "\u5e95\u90e8\u5bf9\u9f50",
-"Header cell": "\u8868\u5934\u5355\u5143\u683c",
-"Row group": "\u884c\u7ec4",
-"Column group": "\u5217\u7ec4",
-"Row type": "\u884c\u7c7b\u578b",
-"Header": "\u8868\u5934",
-"Body": "\u8868\u4f53",
-"Footer": "\u8868\u5c3e",
-"Border color": "\u8fb9\u6846\u989c\u8272",
-"Insert template...": "\u63d2\u5165\u6a21\u677f...",
-"Templates": "\u6a21\u677f",
-"Template": "\u6a21\u677f",
-"Text color": "\u6587\u5b57\u989c\u8272",
-"Background color": "\u80cc\u666f\u8272",
-"Custom...": "\u81ea\u5b9a\u4e49...",
-"Custom color": "\u81ea\u5b9a\u4e49\u989c\u8272",
-"No color": "\u65e0",
-"Remove color": "\u79fb\u9664\u989c\u8272",
-"Table of Contents": "\u5185\u5bb9\u5217\u8868",
-"Show blocks": "\u663e\u793a\u533a\u5757\u8fb9\u6846",
-"Show invisible characters": "\u663e\u793a\u4e0d\u53ef\u89c1\u5b57\u7b26",
-"Word count": "\u5b57\u6570",
-"Count": "\u8ba1\u6570",
-"Document": "\u6587\u6863",
-"Selection": "\u9009\u62e9",
-"Words": "\u5355\u8bcd",
-"Words: {0}": "\u5b57\u6570\uff1a{0}",
-"{0} words": "{0} \u5b57",
-"File": "\u6587\u4ef6",
-"Edit": "\u7f16\u8f91",
-"Insert": "\u63d2\u5165",
-"View": "\u89c6\u56fe",
-"Format": "\u683c\u5f0f",
-"Table": "\u8868\u683c",
-"Tools": "\u5de5\u5177",
-"Powered by {0}": "\u7531{0}\u9a71\u52a8",
-"Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help": "\u5728\u7f16\u8f91\u533a\u6309ALT-F9\u6253\u5f00\u83dc\u5355\uff0c\u6309ALT-F10\u6253\u5f00\u5de5\u5177\u680f\uff0c\u6309ALT-0\u67e5\u770b\u5e2e\u52a9",
-"Image title": "\u56fe\u7247\u6807\u9898",
-"Border width": "\u8fb9\u6846\u5bbd\u5ea6",
-"Border style": "\u8fb9\u6846\u6837\u5f0f",
-"Error": "\u9519\u8bef",
-"Warn": "\u8b66\u544a",
-"Valid": "\u6709\u6548",
-"To open the popup, press Shift+Enter": "\u6309Shitf+Enter\u952e\u6253\u5f00\u5bf9\u8bdd\u6846",
-"Rich Text Area. Press ALT-0 for help.": "\u7f16\u8f91\u533a\u3002\u6309Alt+0\u952e\u6253\u5f00\u5e2e\u52a9\u3002",
-"System Font": "\u7cfb\u7edf\u5b57\u4f53",
-"Failed to upload image: {0}": "\u56fe\u7247\u4e0a\u4f20\u5931\u8d25: {0}",
-"Failed to load plugin: {0} from url {1}": "\u63d2\u4ef6\u52a0\u8f7d\u5931\u8d25: {0} \u6765\u81ea\u94fe\u63a5 {1}",
-"Failed to load plugin url: {0}": "\u63d2\u4ef6\u52a0\u8f7d\u5931\u8d25 \u94fe\u63a5: {0}",
-"Failed to initialize plugin: {0}": "\u63d2\u4ef6\u521d\u59cb\u5316\u5931\u8d25: {0}",
-"example": "\u793a\u4f8b",
-"Search": "\u641c\u7d22",
-"All": "\u5168\u90e8",
-"Currency": "\u8d27\u5e01",
-"Text": "\u6587\u5b57",
-"Quotations": "\u5f15\u7528",
-"Mathematical": "\u6570\u5b66",
-"Extended Latin": "\u62c9\u4e01\u8bed\u6269\u5145",
-"Symbols": "\u7b26\u53f7",
-"Arrows": "\u7bad\u5934",
-"User Defined": "\u81ea\u5b9a\u4e49",
-"dollar sign": "\u7f8e\u5143\u7b26\u53f7",
-"currency sign": "\u8d27\u5e01\u7b26\u53f7",
-"euro-currency sign": "\u6b27\u5143\u7b26\u53f7",
-"colon sign": "\u5192\u53f7",
-"cruzeiro sign": "\u514b\u9c81\u8d5b\u7f57\u5e01\u7b26\u53f7",
-"french franc sign": "\u6cd5\u90ce\u7b26\u53f7",
-"lira sign": "\u91cc\u62c9\u7b26\u53f7",
-"mill sign": "\u5bc6\u5c14\u7b26\u53f7",
-"naira sign": "\u5948\u62c9\u7b26\u53f7",
-"peseta sign": "\u6bd4\u585e\u5854\u7b26\u53f7",
-"rupee sign": "\u5362\u6bd4\u7b26\u53f7",
-"won sign": "\u97e9\u5143\u7b26\u53f7",
-"new sheqel sign": "\u65b0\u8c22\u514b\u5c14\u7b26\u53f7",
-"dong sign": "\u8d8a\u5357\u76fe\u7b26\u53f7",
-"kip sign": "\u8001\u631d\u57fa\u666e\u7b26\u53f7",
-"tugrik sign": "\u56fe\u683c\u91cc\u514b\u7b26\u53f7",
-"drachma sign": "\u5fb7\u62c9\u514b\u9a6c\u7b26\u53f7",
-"german penny symbol": "\u5fb7\u56fd\u4fbf\u58eb\u7b26\u53f7",
-"peso sign": "\u6bd4\u7d22\u7b26\u53f7",
-"guarani sign": "\u74dc\u62c9\u5c3c\u7b26\u53f7",
-"austral sign": "\u6fb3\u5143\u7b26\u53f7",
-"hryvnia sign": "\u683c\u91cc\u592b\u5c3c\u4e9a\u7b26\u53f7",
-"cedi sign": "\u585e\u5730\u7b26\u53f7",
-"livre tournois sign": "\u91cc\u5f17\u5f17\u5c14\u7b26\u53f7",
-"spesmilo sign": "spesmilo\u7b26\u53f7",
-"tenge sign": "\u575a\u6208\u7b26\u53f7",
-"indian rupee sign": "\u5370\u5ea6\u5362\u6bd4",
-"turkish lira sign": "\u571f\u8033\u5176\u91cc\u62c9",
-"nordic mark sign": "\u5317\u6b27\u9a6c\u514b",
-"manat sign": "\u9a6c\u7eb3\u7279\u7b26\u53f7",
-"ruble sign": "\u5362\u5e03\u7b26\u53f7",
-"yen character": "\u65e5\u5143\u5b57\u6837",
-"yuan character": "\u4eba\u6c11\u5e01\u5143\u5b57\u6837",
-"yuan character, in hong kong and taiwan": "\u5143\u5b57\u6837\uff08\u6e2f\u53f0\u5730\u533a\uff09",
-"yen\/yuan character variant one": "\u5143\u5b57\u6837\uff08\u5927\u5199\uff09",
-"Loading emoticons...": "\u52a0\u8f7d\u8868\u60c5\u7b26\u53f7...",
-"Could not load emoticons": "\u4e0d\u80fd\u52a0\u8f7d\u8868\u60c5\u7b26\u53f7",
-"People": "\u4eba\u7c7b",
-"Animals and Nature": "\u52a8\u7269\u548c\u81ea\u7136",
-"Food and Drink": "\u98df\u7269\u548c\u996e\u54c1",
-"Activity": "\u6d3b\u52a8",
-"Travel and Places": "\u65c5\u6e38\u548c\u5730\u70b9",
-"Objects": "\u7269\u4ef6",
-"Flags": "\u65d7\u5e1c",
-"Characters": "\u5b57\u7b26",
-"Characters (no spaces)": "\u5b57\u7b26(\u65e0\u7a7a\u683c)",
-"{0} characters": "{0} \u4e2a\u5b57\u7b26",
-"Error: Form submit field collision.": "\u9519\u8bef: \u8868\u5355\u63d0\u4ea4\u5b57\u6bb5\u51b2\u7a81\u3002",
-"Error: No form element found.": "\u9519\u8bef: \u6ca1\u6709\u8868\u5355\u63a7\u4ef6\u3002",
-"Update": "\u66f4\u65b0",
-"Color swatch": "\u989c\u8272\u6837\u672c",
-"Turquoise": "\u9752\u7eff\u8272",
-"Green": "\u7eff\u8272",
-"Blue": "\u84dd\u8272",
-"Purple": "\u7d2b\u8272",
-"Navy Blue": "\u6d77\u519b\u84dd",
-"Dark Turquoise": "\u6df1\u84dd\u7eff\u8272",
-"Dark Green": "\u6df1\u7eff\u8272",
-"Medium Blue": "\u4e2d\u84dd\u8272",
-"Medium Purple": "\u4e2d\u7d2b\u8272",
-"Midnight Blue": "\u6df1\u84dd\u8272",
-"Yellow": "\u9ec4\u8272",
-"Orange": "\u6a59\u8272",
-"Red": "\u7ea2\u8272",
-"Light Gray": "\u6d45\u7070\u8272",
-"Gray": "\u7070\u8272",
-"Dark Yellow": "\u6697\u9ec4\u8272",
-"Dark Orange": "\u6df1\u6a59\u8272",
-"Dark Red": "\u6df1\u7ea2\u8272",
-"Medium Gray": "\u4e2d\u7070\u8272",
-"Dark Gray": "\u6df1\u7070\u8272",
-"Light Green": "\u6d45\u7eff\u8272",
-"Light Yellow": "\u6d45\u9ec4\u8272",
-"Light Red": "\u6d45\u7ea2\u8272",
-"Light Purple": "\u6d45\u7d2b\u8272",
-"Light Blue": "\u6d45\u84dd\u8272",
-"Dark Purple": "\u6df1\u7d2b\u8272",
-"Dark Blue": "\u6df1\u84dd\u8272",
-"Black": "\u9ed1\u8272",
-"White": "\u767d\u8272",
-"Switch to or from fullscreen mode": "\u5207\u6362\u5168\u5c4f\u6a21\u5f0f",
-"Open help dialog": "\u6253\u5f00\u5e2e\u52a9\u5bf9\u8bdd\u6846",
-"history": "\u5386\u53f2",
-"styles": "\u6837\u5f0f",
-"formatting": "\u683c\u5f0f\u5316",
-"alignment": "\u5bf9\u9f50",
-"indentation": "\u7f29\u8fdb",
-"permanent pen": "\u8bb0\u53f7\u7b14",
-"comments": "\u5907\u6ce8",
-"Format Painter": "\u683c\u5f0f\u5237",
-"Insert\/edit iframe": "\u63d2\u5165\/\u7f16\u8f91\u6846\u67b6",
-"Capitalization": "\u5927\u5199",
-"lowercase": "\u5c0f\u5199",
-"UPPERCASE": "\u5927\u5199",
-"Title Case": "\u9996\u5b57\u6bcd\u5927\u5199",
-"Permanent Pen Properties": "\u6c38\u4e45\u7b14\u5c5e\u6027",
-"Permanent pen properties...": "\u6c38\u4e45\u7b14\u5c5e\u6027...",
-"Font": "\u5b57\u4f53",
-"Size": "\u5b57\u53f7",
-"More...": "\u66f4\u591a...",
-"Spellcheck Language": "\u62fc\u5199\u68c0\u67e5\u8bed\u8a00",
-"Select...": "\u9009\u62e9...",
-"Preferences": "\u9996\u9009\u9879",
-"Yes": "\u662f",
-"No": "\u5426",
-"Keyboard Navigation": "\u952e\u76d8\u6307\u5f15",
-"Version": "\u7248\u672c",
-"Anchor": "\u951a\u70b9",
-"Special character": "\u7279\u6b8a\u7b26\u53f7",
-"Code sample": "\u4ee3\u7801\u793a\u4f8b",
-"Color": "\u989c\u8272",
-"Emoticons": "\u8868\u60c5",
-"Document properties": "\u6587\u6863\u5c5e\u6027",
-"Image": "\u56fe\u7247",
-"Insert link": "\u63d2\u5165\u94fe\u63a5",
-"Target": "\u6253\u5f00\u65b9\u5f0f",
-"Link": "\u94fe\u63a5",
-"Poster": "\u5c01\u9762",
-"Media": "\u5a92\u4f53",
-"Print": "\u6253\u5370",
-"Prev": "\u4e0a\u4e00\u4e2a",
-"Find and replace": "\u67e5\u627e\u548c\u66ff\u6362",
-"Whole words": "\u5168\u5b57\u5339\u914d",
-"Spellcheck": "\u62fc\u5199\u68c0\u67e5",
-"Caption": "\u6807\u9898",
-"Insert template": "\u63d2\u5165\u6a21\u677f"
-});
\ No newline at end of file
diff --git a/src/main.js b/src/main.js
index bb96c2b7..edea380e 100644
--- a/src/main.js
+++ b/src/main.js
@@ -64,12 +64,10 @@ Vue.prototype.searchBarWidth = function (name, num) {
// 全局组件挂载
Vue.component('DictTag', DictTag);
-Vue.component('DocAlert', DocAlert);
Vue.component('Pagination', Pagination);
Vue.component('RightToolbar', RightToolbar);
// 字典标签组件
import DictTag from '@/components/DictTag';
-import DocAlert from '@/components/DocAlert';
// 头部标签插件
import VueMeta from 'vue-meta';
import CodeBrickZj from 'code-brick-zj';
diff --git a/src/mixins/lb/tableHeightMixin.js b/src/mixins/lb/tableHeightMixin.js
new file mode 100644
index 00000000..f8495e1b
--- /dev/null
+++ b/src/mixins/lb/tableHeightMixin.js
@@ -0,0 +1,18 @@
+export default {
+ data() {
+ return {
+ tableH: this.tableHeight(260),
+ };
+ },
+ created() {
+ window.addEventListener('resize', this._setTableHeight);
+ },
+ destroyed() {
+ window.removeEventListener('resize', this._setTableHeight);
+ },
+ methods: {
+ _setTableHeight() {
+ this.tableH = this.tableHeight(260);
+ },
+ },
+};
diff --git a/src/views/specialEquipment/basic/FireFighthing.vue b/src/views/specialEquipment/basic/FireFighthing.vue
index d8494b01..f9128ae5 100644
--- a/src/views/specialEquipment/basic/FireFighthing.vue
+++ b/src/views/specialEquipment/basic/FireFighthing.vue
@@ -19,6 +19,7 @@
:page="queryParams.pageNo"
:limit="queryParams.pageSize"
:table-data="list"
+ :max-height="tableH"
@emitFun="handleEmitFun">
import moment from 'moment';
import basicPageMixin from '@/mixins/lb/basicPageMixin';
+import tableHeightMixin from '@/mixins/lb/tableHeightMixin';
import EquipmentDrawer from '../components/firefightingDrawer';
import BaseDialogWrapper from '../components/BaseDialogWrapper.vue';
@@ -135,7 +137,7 @@ export default {
EquipmentDrawer,
BaseDialog: BaseDialogWrapper,
},
- mixins: [basicPageMixin],
+ mixins: [basicPageMixin, tableHeightMixin],
data() {
return {
searchBarKeys: ['name', 'code'],
@@ -160,17 +162,28 @@ export default {
: undefined,
].filter((v) => v),
tableProps: [
- { prop: 'name', label: '设备名称' },
- { width: 256, prop: 'code', label: '设备编码' },
- { prop: 'location', label: '位置' },
- { prop: 'responsiblePeopleName', label: '负责人' },
+ { prop: 'name', label: '设备名称', showOverflowtooltip: true },
+ {
+ width: 200,
+ prop: 'code',
+ label: '设备编码',
+ showOverflowtooltip: true,
+ },
+ { prop: 'location', label: '位置', showOverflowtooltip: true },
+ {
+ prop: 'responsiblePeopleName',
+ label: '负责人',
+ showOverflowtooltip: true,
+ },
{
prop: 'dueDate',
+ width: 200,
label: '有效期至',
+ howOverflowTooltip: true,
filter: (val) =>
val != null ? moment(val).format('yyyy-MM-DD HH:mm:ss') : '--',
},
- { prop: 'remark', label: '备注' },
+ { prop: 'remark', label: '备注', showOverflowtooltip: true },
],
searchBarFormConfig: [
{
@@ -285,7 +298,7 @@ export default {
// 查询参数
queryParams: {
pageNo: 1,
- pageSize: 10,
+ pageSize: 20,
code: '',
name: '',
},
diff --git a/src/views/specialEquipment/basic/Manage.vue b/src/views/specialEquipment/basic/Manage.vue
index e9b34803..2fe9c9fc 100644
--- a/src/views/specialEquipment/basic/Manage.vue
+++ b/src/views/specialEquipment/basic/Manage.vue
@@ -19,6 +19,7 @@
:page="queryParams.pageNo"
:limit="queryParams.pageSize"
:table-data="list"
+ :max-height="tableH"
@emitFun="handleEmitFun">
import moment from 'moment';
import basicPageMixin from '@/mixins/lb/basicPageMixin';
+import tableHeightMixin from '@/mixins/lb/tableHeightMixin';
import EquipmentDrawer from '../components/manageDrawer';
import BaseDialogWrapper from '../components/BaseDialogWrapper.vue';
@@ -133,9 +135,9 @@ export default {
components: {
Editor,
EquipmentDrawer,
- BaseDialog: BaseDialogWrapper
+ BaseDialog: BaseDialogWrapper,
},
- mixins: [basicPageMixin],
+ mixins: [basicPageMixin, tableHeightMixin],
data() {
return {
searchBarKeys: ['name', 'code'],
@@ -167,11 +169,20 @@ export default {
// width: 180,
// filter: (val) => moment(val).format('yyyy-MM-DD HH:mm:ss'),
// },
- { prop: 'name', label: '设备名称' },
- { width: 256, prop: 'code', label: '设备编码' },
- { prop: 'location', label: '位置' },
- { prop: 'responsiblePeopleName', label: '负责人' },
- { prop: 'remark', label: '备注' },
+ { prop: 'name', label: '设备名称', showOverflowtooltip: true },
+ {
+ width: 256,
+ prop: 'code',
+ label: '设备编码',
+ showOverflowtooltip: true,
+ },
+ { prop: 'location', label: '位置', showOverflowtooltip: true },
+ {
+ prop: 'responsiblePeopleName',
+ label: '负责人',
+ showOverflowtooltip: true,
+ },
+ { prop: 'remark', label: '备注', showOverflowtooltip: true },
],
searchBarFormConfig: [
{
@@ -277,7 +288,7 @@ export default {
// 查询参数
queryParams: {
pageNo: 1,
- pageSize: 10,
+ pageSize: 20,
code: '',
name: '',
},
@@ -407,15 +418,15 @@ export default {
// this.title = '修改设备';
// });
},
- handleDetail(row, mode='detail') {
- const {id} = row;
+ handleDetail(row, mode = 'detail') {
+ const { id } = row;
this.form.id = id;
// 打开抽屉
this.editMode = mode;
this.editVisible = true;
this.$nextTick(() => {
this.$refs['drawer'].init();
- })
+ });
// this.reset();
// this.showUploadComponents = false;
// const id = row.id;
diff --git a/src/views/specialEquipment/basic/Safety.vue b/src/views/specialEquipment/basic/Safety.vue
index 63c5abf8..5d8c3a9b 100644
--- a/src/views/specialEquipment/basic/Safety.vue
+++ b/src/views/specialEquipment/basic/Safety.vue
@@ -19,6 +19,7 @@
:page="queryParams.pageNo"
:limit="queryParams.pageSize"
:table-data="list"
+ :max-height="tableH"
@emitFun="handleEmitFun">
import moment from 'moment';
import basicPageMixin from '@/mixins/lb/basicPageMixin';
+import tableHeightMixin from '@/mixins/lb/tableHeightMixin';
import EquipmentDrawer from '../components/safetyDrawer';
import {
createEquipment,
@@ -134,7 +136,7 @@ export default {
EquipmentDrawer,
BaseDialog: BaseDialogWrapper,
},
- mixins: [basicPageMixin],
+ mixins: [basicPageMixin, tableHeightMixin],
data() {
return {
searchBarKeys: ['name', 'code'],
@@ -166,11 +168,20 @@ export default {
// width: 180,
// filter: (val) => moment(val).format('yyyy-MM-DD HH:mm:ss'),
// },
- { prop: 'name', label: '设备名称' },
- { width: 256, prop: 'code', label: '设备编码' },
- { prop: 'location', label: '位置' },
- { prop: 'responsiblePeopleName', label: '负责人' },
- { prop: 'remark', label: '备注' },
+ { prop: 'name', label: '设备名称', showOverflowtooltip: true },
+ {
+ width: 200,
+ prop: 'code',
+ label: '设备编码',
+ showOverflowtooltip: true,
+ },
+ { prop: 'location', label: '位置', showOverflowtooltip: true },
+ {
+ prop: 'responsiblePeopleName',
+ label: '负责人',
+ showOverflowtooltip: true,
+ },
+ { prop: 'remark', label: '备注', showOverflowtooltip: true },
],
searchBarFormConfig: [
{
@@ -275,7 +286,7 @@ export default {
// 查询参数
queryParams: {
pageNo: 1,
- pageSize: 10,
+ pageSize: 20,
code: '',
name: '',
},
diff --git a/src/views/specialEquipment/check/CheckOrderListTable.vue b/src/views/specialEquipment/check/CheckOrderListTable.vue
index 066b67fe..c231f6d8 100644
--- a/src/views/specialEquipment/check/CheckOrderListTable.vue
+++ b/src/views/specialEquipment/check/CheckOrderListTable.vue
@@ -9,6 +9,7 @@
-
+
-
-
+
+
-
+
-
+
{{ scope.row.department || '---' }}
@@ -46,12 +62,18 @@
{{ scope.row.planCheckTime | timeFilter }}
-
+
{{ scope.row.groupClass || '---' }}
@@ -59,6 +81,8 @@
{{ scope.row.confirmDueTime | timeFilter }}
@@ -66,17 +90,21 @@
{{ scope.row.remark }}
-
+
-
+
|
-
+
|
-
+
|
-
+
import moment from 'moment';
+import tableHeightMixin from '@/mixins/lb/tableHeightMixin';
export default {
name: 'CheckOrderListTable',
components: {},
+ mixins: [tableHeightMixin],
props: ['tableData', 'page', 'limit', 'permissionGuard'],
filters: {
timeFilter: (val) =>
diff --git a/src/views/specialEquipment/check/Config.vue b/src/views/specialEquipment/check/Config.vue
index 088ab28a..a2fd2e95 100644
--- a/src/views/specialEquipment/check/Config.vue
+++ b/src/views/specialEquipment/check/Config.vue
@@ -20,6 +20,7 @@
:page="queryParams.pageNo"
:limit="queryParams.pageSize"
:table-data="list"
+ :max-height="tableH"
@emitFun="handleEmitFun">
@@ -185,7 +186,7 @@ export default {
// 查询参数
queryParams: {
pageNo: 1,
- pageSize: 10,
+ pageSize: 20,
name: null,
status: 1,
special: true,
diff --git a/src/views/specialEquipment/check/Record-detail.vue b/src/views/specialEquipment/check/Record-detail.vue
index 6396e241..95812609 100644
--- a/src/views/specialEquipment/check/Record-detail.vue
+++ b/src/views/specialEquipment/check/Record-detail.vue
@@ -19,7 +19,9 @@