@processmaker/modeler 1.36.6 → 1.36.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +88 -13
- package/babel.config.js +5 -7
- package/cypress.config.js +28 -0
- package/dist/demo.html +1 -8
- package/dist/img/association-head.0b14da7b.svg +13 -0
- package/dist/img/boundary-escalation-icon.c999a95e.svg +12 -0
- package/dist/modeler.common.js +22661 -23598
- package/dist/modeler.common.js.map +1 -1
- package/dist/modeler.umd.js +22732 -23580
- package/dist/modeler.umd.js.map +1 -1
- package/dist/modeler.umd.min.js +9 -9
- package/dist/modeler.umd.min.js.map +1 -1
- package/jest.config.js +9 -0
- package/package.json +43 -42
- package/src/components/IconSelector.vue +2 -2
- package/src/components/crown/crownMultiselect/crownAlign.vue +2 -2
- package/src/components/crown/crownMultiselect/crownMultiselect.vue +2 -2
- package/src/components/crown/utils.js +1 -1
- package/src/components/hotkeys/main.js +1 -1
- package/src/components/inspectors/LoopCharacteristics.vue +0 -1
- package/src/components/inspectors/WeekdaySelect.vue +2 -1
- package/src/components/modeler/Modeler.vue +2 -2
- package/src/components/nodes/association/association.vue +1 -1
- package/src/components/nodes/boundaryEscalationEvent/boundaryEscalationEvent.vue +1 -1
- package/src/components/nodes/dataInputAssociation/dataInputAssociation.vue +1 -1
- package/src/components/nodes/dataOutputAssociation/dataOutputAssociation.vue +1 -1
- package/src/components/nodes/node.js +4 -4
- package/src/components/nodes/pool/pool.vue +1 -1
- package/src/components/railBottom/zoomControl/ZoomControl.vue +1 -1
- package/src/mixins/linkConfig.js +11 -1
- package/src/mixins/resizeConfig.js +19 -19
- package/src/setup/extensions/customMarker.js +2 -2
- package/src/store.js +1 -1
- package/cypress.json +0 -6
- /package/dist/img/{boundary-error-event.9e053bcc.svg → boundary-error-event.894d5d30.svg} +0 -0
- /package/dist/img/{boundary-escalation-event.78edf607.svg → boundary-escalation-event.4dfef85a.svg} +0 -0
- /package/dist/img/{boundary-event.4e0fb9de.svg → boundary-event.40a868e9.svg} +0 -0
- /package/dist/img/{boundary-message-event.68472c0d.svg → boundary-message-event.134d7b03.svg} +0 -0
- /package/dist/img/{boundary-signal-event.67df855a.svg → boundary-signal-event.d0848385.svg} +0 -0
- /package/dist/img/{boundary-timer-event.3f60553b.svg → boundary-timer-event.cb184a17.svg} +0 -0
- /package/dist/img/{clipboard.5fe6f79e.svg → clipboard.06edfa02.svg} +0 -0
- /package/dist/img/{color-wheel.0fc36b2a.png → color-wheel.30c5d6dd.png} +0 -0
- /package/dist/img/{compensation.f4d397fb.svg → compensation.495ae0a2.svg} +0 -0
- /package/dist/img/{conditional-start-event.a56e4b5b.svg → conditional-start-event.485aa22f.svg} +0 -0
- /package/dist/img/{connect-artifacts.496eb4b9.svg → connect-artifacts.e3e5e73f.svg} +0 -0
- /package/dist/img/{connect-elements.9ec5ca93.svg → connect-elements.ab6af00f.svg} +0 -0
- /package/dist/img/{copy-regular.2d678143.svg → copy-regular.67a8edbd.svg} +0 -0
- /package/dist/img/{data-object.0d6d1585.svg → data-object.22c93e83.svg} +0 -0
- /package/dist/img/{data-store.32bed5ce.svg → data-store.06a1bbc9.svg} +0 -0
- /package/dist/img/{default-flow.156a793b.svg → default-flow.3f3d5309.svg} +0 -0
- /package/dist/img/{end-event.9d1ff5c0.svg → end-event.484eed9c.svg} +0 -0
- /package/dist/img/{error-end-event.aab86eca.svg → error-end-event.be1352e7.svg} +0 -0
- /package/dist/img/{event-based-gateway.9960eee5.svg → event-based-gateway.b7344f6f.svg} +0 -0
- /package/dist/img/{exclusive-gateway.26db4fae.svg → exclusive-gateway.2d93a745.svg} +0 -0
- /package/dist/img/{generic-gateway.09ca6929.svg → generic-gateway.94311044.svg} +0 -0
- /package/dist/img/{generic-intermediate-event.a711eb33.svg → generic-intermediate-event.96b0ece1.svg} +0 -0
- /package/dist/img/{highlight-shape.bdea7f76.svg → highlight-shape.5f7b1ba9.svg} +0 -0
- /package/dist/img/{inclusive-gateway.0f0afffd.svg → inclusive-gateway.d73cfd85.svg} +0 -0
- /package/dist/img/{inspector.42e5d40d.svg → inspector.c5ee8afc.svg} +0 -0
- /package/dist/img/{intermediate-conditional-catch-event.e9ae6198.svg → intermediate-conditional-catch-event.638dee5a.svg} +0 -0
- /package/dist/img/{intermediate-message-catch-event.9d25208e.svg → intermediate-message-catch-event.6c9df16a.svg} +0 -0
- /package/dist/img/{intermediate-message-throw-event.4309dc45.svg → intermediate-message-throw-event.43b59c5e.svg} +0 -0
- /package/dist/img/{intermediate-signal-catch-event.74b65f17.svg → intermediate-signal-catch-event.ce6fe9b6.svg} +0 -0
- /package/dist/img/{intermediate-signal-throw-event.29cad018.svg → intermediate-signal-throw-event.2f50ec9d.svg} +0 -0
- /package/dist/img/{intermediate-timer-event.1670a1c8.svg → intermediate-timer-event.e880bbcc.svg} +0 -0
- /package/dist/img/{issue-close.5d1630e6.svg → issue-close.2623c227.svg} +0 -0
- /package/dist/img/{issue-item.3187f291.svg → issue-item.9fbdef35.svg} +0 -0
- /package/dist/img/{issue-open.707390b4.svg → issue-open.8351c91c.svg} +0 -0
- /package/dist/img/{lane-above.0210a07c.svg → lane-above.37ee2b80.svg} +0 -0
- /package/dist/img/{lane-below.e67f9823.svg → lane-below.22169670.svg} +0 -0
- /package/dist/img/{loop.955ae4b7.svg → loop.00441d9f.svg} +0 -0
- /package/dist/img/{manual-task.374a73c3.svg → manual-task.166f9f35.svg} +0 -0
- /package/dist/img/{manualTask.d80701de.svg → manualTask.43f91d9d.svg} +0 -0
- /package/dist/img/{message-end-event.f15b67f5.svg → message-end-event.6b25bec9.svg} +0 -0
- /package/dist/img/{message-start-event.f2d4a5e6.svg → message-start-event.e2d5addf.svg} +0 -0
- /package/dist/img/{mini-map.ae46890c.svg → mini-map.21e75527.svg} +0 -0
- /package/dist/img/{minus.ca21cc3b.svg → minus.c786380f.svg} +0 -0
- /package/dist/img/{parallel-gateway.877bb628.svg → parallel-gateway.7b6e28ab.svg} +0 -0
- /package/dist/img/{parallel.1b2e8b04.svg → parallel.cf1d1995.svg} +0 -0
- /package/dist/img/{pin-angle-fill.0e4af645.svg → pin-angle-fill.45c5a07f.svg} +0 -0
- /package/dist/img/{pin-angle.3462c115.svg → pin-angle.95ef112b.svg} +0 -0
- /package/dist/img/{plus.afbb0b13.svg → plus.2beb376c.svg} +0 -0
- /package/dist/img/{pool.98d4734c.svg → pool.d79eba80.svg} +0 -0
- /package/dist/img/{redo.8425ce7e.svg → redo.6b68efdc.svg} +0 -0
- /package/dist/img/{script-task.3d8c664a.svg → script-task.8d648d88.svg} +0 -0
- /package/dist/img/{scriptTask.da7e394e.svg → scriptTask.ef9df329.svg} +0 -0
- /package/dist/img/{sequential.9db0b6ef.svg → sequential.f86ad08b.svg} +0 -0
- /package/dist/img/{signal-end-event.a38a6616.svg → signal-end-event.e6feb2d5.svg} +0 -0
- /package/dist/img/{signal-start-event.3d7b096c.svg → signal-start-event.4239bcab.svg} +0 -0
- /package/dist/img/{start-event.7f1911cb.svg → start-event.27ee6b1c.svg} +0 -0
- /package/dist/img/{sub-task.52d09847.svg → sub-task.255eb842.svg} +0 -0
- /package/dist/img/{subProcess.1e340068.svg → subProcess.45b0ff2c.svg} +0 -0
- /package/dist/img/{subprocess.363cde32.svg → subprocess.19c191a3.svg} +0 -0
- /package/dist/img/{task.8a1c6c75.svg → task.9eaeba47.svg} +0 -0
- /package/dist/img/{terminate-end-event.3aa5cd00.svg → terminate-end-event.53b2871d.svg} +0 -0
- /package/dist/img/{text-annotation.02df53cd.svg → text-annotation.dfcc35ba.svg} +0 -0
- /package/dist/img/{timer-start-event.55abac82.svg → timer-start-event.c354a032.svg} +0 -0
- /package/dist/img/{trash-alt-solid.58c408b8.svg → trash-alt-solid.9d41abd9.svg} +0 -0
- /package/dist/img/{undo.e0ffff93.svg → undo.704fb545.svg} +0 -0
- /package/dist/img/{validate-close.09ace97a.svg → validate-close.d8d10c76.svg} +0 -0
- /package/dist/img/{validate-open.b0ecf74e.svg → validate-open.6048f9de.svg} +0 -0
package/.eslintrc.js
CHANGED
|
@@ -10,27 +10,102 @@ module.exports = {
|
|
|
10
10
|
'eslint:recommended',
|
|
11
11
|
],
|
|
12
12
|
|
|
13
|
+
plugins: ['jest', 'cypress'],
|
|
14
|
+
|
|
13
15
|
rules: {
|
|
14
|
-
semi: [
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
'
|
|
19
|
-
|
|
16
|
+
semi: [
|
|
17
|
+
'error',
|
|
18
|
+
'always',
|
|
19
|
+
],
|
|
20
|
+
'comma-dangle': [
|
|
21
|
+
'error',
|
|
22
|
+
'always-multiline',
|
|
23
|
+
],
|
|
24
|
+
indent: [
|
|
25
|
+
'error',
|
|
26
|
+
2,
|
|
27
|
+
{
|
|
28
|
+
SwitchCase: 1,
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
quotes: [
|
|
32
|
+
'error',
|
|
33
|
+
'single',
|
|
34
|
+
],
|
|
35
|
+
'object-curly-spacing': [
|
|
36
|
+
'warn',
|
|
37
|
+
'always',
|
|
38
|
+
{
|
|
39
|
+
arraysInObjects: false,
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
20
43
|
'object-shorthand': 'error',
|
|
21
|
-
'space-before-function-paren': [
|
|
44
|
+
'space-before-function-paren': [
|
|
45
|
+
'error',
|
|
46
|
+
'never',
|
|
47
|
+
],
|
|
22
48
|
'keyword-spacing': 'error',
|
|
23
|
-
'vue/html-indent': [
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
49
|
+
'vue/html-indent': [
|
|
50
|
+
'error',
|
|
51
|
+
2,
|
|
52
|
+
{
|
|
53
|
+
alignAttributesVertically: false,
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
'vue/html-closing-bracket-newline': [
|
|
57
|
+
'error',
|
|
58
|
+
{
|
|
59
|
+
singleline: 'never',
|
|
60
|
+
multiline: 'always',
|
|
61
|
+
},
|
|
62
|
+
],
|
|
28
63
|
'vue/html-self-closing': 'error',
|
|
29
64
|
'vue/mustache-interpolation-spacing': 'error',
|
|
65
|
+
'vue/multi-word-component-names' : 'off',
|
|
66
|
+
'vue/no-mutating-props': 'warn',
|
|
30
67
|
'template-curly-spacing': 'error',
|
|
68
|
+
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
31
69
|
},
|
|
32
70
|
|
|
33
71
|
parserOptions: {
|
|
34
|
-
parser: 'babel-
|
|
72
|
+
parser: '@babel/eslint-parser',
|
|
35
73
|
},
|
|
74
|
+
|
|
75
|
+
overrides: [
|
|
76
|
+
{
|
|
77
|
+
files: [
|
|
78
|
+
'**/__tests__/*.{j,t}s?(x)',
|
|
79
|
+
'**/tests/unit/**/*.spec.{j,t}s?(x)',
|
|
80
|
+
'**/tests/unit/**/*.{j,t}s?(x)',
|
|
81
|
+
],
|
|
82
|
+
env: {
|
|
83
|
+
'jest/globals': true,
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
files: [
|
|
88
|
+
'**/tests/e2e/**/*.cy.{j,t}s?(x)',
|
|
89
|
+
'**/tests/e2e/**/*.{j,t}s?(x)',
|
|
90
|
+
],
|
|
91
|
+
rules: {
|
|
92
|
+
strict: 'off',
|
|
93
|
+
semi: ['error', 'always'],
|
|
94
|
+
'comma-dangle': ['error', 'always-multiline'],
|
|
95
|
+
indent: ['error', 2, { SwitchCase: 1 }],
|
|
96
|
+
'vue/html-indent': 'error',
|
|
97
|
+
quotes: ['error', 'single'],
|
|
98
|
+
'no-debugger': 'off',
|
|
99
|
+
'object-shorthand': 'error',
|
|
100
|
+
'space-before-function-paren': ['error', 'never'],
|
|
101
|
+
'keyword-spacing': 'error',
|
|
102
|
+
'prefer-arrow-callback': 'error',
|
|
103
|
+
},
|
|
104
|
+
env: {
|
|
105
|
+
mocha: true,
|
|
106
|
+
'cypress/globals': true,
|
|
107
|
+
node: true,
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
],
|
|
36
111
|
};
|
package/babel.config.js
CHANGED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const { defineConfig } = require('cypress');
|
|
2
|
+
|
|
3
|
+
module.exports = defineConfig({
|
|
4
|
+
projectId: '3839s4',
|
|
5
|
+
video: false,
|
|
6
|
+
screenshotOnRunFailure: true,
|
|
7
|
+
fixturesFolder: 'tests/e2e/fixtures',
|
|
8
|
+
screenshotsFolder: 'tests/e2e/screenshots',
|
|
9
|
+
videosFolder: 'tests/e2e/videos',
|
|
10
|
+
|
|
11
|
+
e2e: {
|
|
12
|
+
// We've imported your old cypress plugins here.
|
|
13
|
+
// You may want to clean this up later by importing these.
|
|
14
|
+
setupNodeEvents(on, config) {
|
|
15
|
+
return require('./tests/e2e/plugins/index.js')(on, config);
|
|
16
|
+
},
|
|
17
|
+
baseUrl: 'http://localhost:8080',
|
|
18
|
+
specPattern: 'tests/e2e/specs/**/*.cy.{js,jsx,ts,tsx}',
|
|
19
|
+
supportFile: 'tests/e2e/support/index.js',
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
component: {
|
|
23
|
+
devServer: {
|
|
24
|
+
framework: 'vue-cli',
|
|
25
|
+
bundler: 'webpack',
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
});
|
package/dist/demo.html
CHANGED
|
@@ -1,8 +1 @@
|
|
|
1
|
-
|
|
2
|
-
<title>modeler demo</title>
|
|
3
|
-
<script src="./modeler.umd.js"></script>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
<script>
|
|
7
|
-
console.log(modeler)
|
|
8
|
-
</script>
|
|
1
|
+
<!doctype html><meta charset="utf-8"><title>modeler demo</title><script src="./modeler.umd.js"></script><script>console.log(modeler)</script>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="14px" height="18px" viewBox="0 0 14 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<!-- Generator: Sketch 50.2 (55047) - http://www.bohemiancoding.com/sketch -->
|
|
4
|
+
<title>Group</title>
|
|
5
|
+
<desc>Created with Sketch.</desc>
|
|
6
|
+
<defs></defs>
|
|
7
|
+
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="square">
|
|
8
|
+
<g id="Group" transform="translate(7.000000, 8.888889) rotate(270.000000) translate(-7.000000, -8.888889) translate(0.000000, 3.888889)" stroke="#000000" stroke-width="2">
|
|
9
|
+
<path d="M6.48148148,0.178571429 L0.185185185,9.82142857" id="Line"></path>
|
|
10
|
+
<path d="M13.7037037,0.178571429 L7.40740741,9.82142857" id="Line" transform="translate(10.555556, 5.000000) scale(-1, 1) translate(-10.555556, -5.000000) "></path>
|
|
11
|
+
</g>
|
|
12
|
+
</g>
|
|
13
|
+
</svg>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="4px" height="3px" viewBox="0 0 4 3" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<!-- Generator: Sketch 50.2 (55047) - http://www.bohemiancoding.com/sketch -->
|
|
4
|
+
<title>escalation-icon</title>
|
|
5
|
+
<desc>Created with Sketch.</desc>
|
|
6
|
+
<defs></defs>
|
|
7
|
+
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
8
|
+
<g id="escalation-icon" transform="translate(1.000000, 0.000000)" fill="#FFFFFF" stroke="#000000" stroke-width="0.15">
|
|
9
|
+
<path d="M1,4.16333634e-16 C0.620481928,0.98625 0.379518072,2.01375 0,3 C0.34814257,2.67679687 0.65185743,2.3146875 1,1.99125 C1.33333333,2.32734375 1.66666667,2.66367187 2,3 C1.66039157,2.00179687 1.33960843,0.998203125 1,4.16333634e-16 Z" id="Path"></path>
|
|
10
|
+
</g>
|
|
11
|
+
</g>
|
|
12
|
+
</svg>
|