@processmaker/modeler 1.26.0 → 1.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/img/clipboard.bcc7796a.svg +1 -0
  2. package/dist/modeler.common.js +1790 -740
  3. package/dist/modeler.common.js.map +1 -1
  4. package/dist/modeler.umd.js +1790 -740
  5. package/dist/modeler.umd.js.map +1 -1
  6. package/dist/modeler.umd.min.js +3 -3
  7. package/dist/modeler.umd.min.js.map +1 -1
  8. package/package.json +1 -1
  9. package/src/NodeIdGenerator.js +55 -22
  10. package/src/NodeInspector.js +2 -2
  11. package/src/assets/clipboard.svg +1 -0
  12. package/src/components/crown/crownButtons/copyButton.vue +3 -3
  13. package/src/components/crown/crownButtons/duplicateButton.vue +40 -0
  14. package/src/components/crown/crownConfig/crownConfig.vue +7 -1
  15. package/src/components/crown/crownMultiselect/crownMultiselect.vue +15 -6
  16. package/src/components/crown/utils.js +12 -1
  17. package/src/components/hotkeys/copyPaste.js +26 -0
  18. package/src/components/hotkeys/main.js +9 -2
  19. package/src/components/inspectors/InspectorPanel.vue +1 -0
  20. package/src/components/inspectors/LoopCharacteristics.vue +5 -2
  21. package/src/components/inspectors/process.js +5 -1
  22. package/src/components/modeler/Modeler.vue +104 -4
  23. package/src/components/modeler/Selection.vue +18 -4
  24. package/src/components/nodes/association/index.js +3 -0
  25. package/src/components/nodes/dataInputAssociation/dataInputAssociation.vue +36 -26
  26. package/src/components/nodes/genericFlow/DataOutputAssociation.js +54 -2
  27. package/src/components/nodes/genericFlow/genericFlow.vue +0 -17
  28. package/src/components/nodes/node.js +106 -2
  29. package/src/components/toolbar/ToolBar.vue +17 -3
  30. package/src/components/toolbar/breadcrumb/Breadcrumb.vue +7 -0
  31. package/src/components/toolbar/toolbar.scss +11 -0
  32. package/src/mixins/cloneSelection.js +145 -0
  33. package/src/mixins/linkConfig.js +4 -1
  34. package/src/store.js +11 -0
package/src/store.js CHANGED
@@ -35,6 +35,8 @@ export default new Vuex.Store({
35
35
  autoValidate: false,
36
36
  globalProcesses: [],
37
37
  allowSavingElementPosition: true,
38
+ copiedElements: [],
39
+ clientLeftPaper: false,
38
40
  },
39
41
  getters: {
40
42
  nodes: state => state.nodes,
@@ -52,6 +54,8 @@ export default new Vuex.Store({
52
54
  globalProcesses: state => state.globalProcesses,
53
55
  globalProcessEvents: (state, getters) => flatten(getters.globalProcesses.map(process => process.events)),
54
56
  allowSavingElementPosition: state => state.allowSavingElementPosition,
57
+ copiedElements: state => state.copiedElements,
58
+ clientLeftPaper: state => state.clientLeftPaper,
55
59
  },
56
60
  mutations: {
57
61
  preventSavingElementPosition(state) {
@@ -138,6 +142,13 @@ export default new Vuex.Store({
138
142
  setGlobalProcesses(state, globalProcesses) {
139
143
  state.globalProcesses = globalProcesses;
140
144
  },
145
+ // Copy Nodes to the clipboard or in this case, to the state
146
+ setCopiedElements(state, elements) {
147
+ state.copiedElements = elements;
148
+ },
149
+ setClientLeftPaper(state, status) {
150
+ state.clientLeftPaper = status;
151
+ },
141
152
  },
142
153
  actions: {
143
154
  async fetchGlobalProcesses({ commit }) {