3 |
30 |
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/configuration/properties/condition-expression-write-template.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/configuration/properties/default-value-display-template.html:
--------------------------------------------------------------------------------
1 |
2 |
{{property.value|limitTo:20}}
3 |
...
4 |
PROPERTY.EMPTY
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/configuration/properties/event-listeners-display-template.html:
--------------------------------------------------------------------------------
1 |
2 |
{{'PROPERTY.EVENTLISTENERS.DISPLAY' | translate:property.value.eventListeners}}
3 |
PROPERTY.EVENTLISTENERS.EMPTY
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/configuration/properties/event-listeners-write-template.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/configuration/properties/execution-listeners-display-template.html:
--------------------------------------------------------------------------------
1 |
2 |
{{'PROPERTY.EXECUTIONLISTENERS.DISPLAY' | translate:property.value.executionListeners}}
3 |
PROPERTY.EXECUTIONLISTENERS.EMPTY
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/configuration/properties/execution-listeners-write-template.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/configuration/properties/feedback-popup.html:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/configuration/properties/fields-display-template.html:
--------------------------------------------------------------------------------
1 |
2 |
{{'PROPERTY.FIELDS' | translate:property.value.fields}}
3 |
{{'PROPERTY.FIELDS.EMPTY' | translate}}
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/configuration/properties/fields-popup.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
9 |
10 |
11 |
12 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
PROPERTY.FIELDS.EMPTY
51 |
52 |
53 |
54 |
55 |
59 |
60 |
61 |
62 |
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/configuration/properties/fields-write-template.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/configuration/properties/form-properties-display-template.html:
--------------------------------------------------------------------------------
1 |
2 |
{{'PROPERTY.FORMPROPERTIES.VALUE' | translate:property.value.formProperties}}
3 |
PROPERTY.FORMPROPERTIES.EMPTY
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/configuration/properties/form-properties-write-template.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/configuration/properties/in-parameters-display-template.html:
--------------------------------------------------------------------------------
1 |
2 |
{{'PROPERTY.INPARAMETERS.VALUE' | translate:property.value.inParameters}}
3 |
PROPERTY.INPARAMETERS.EMPTY
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/configuration/properties/in-parameters-popup.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
9 |
10 |
11 |
12 |
25 |
26 |
27 |
43 |
PROPERTY.PARAMETER.EMPTY
44 |
45 |
46 |
47 |
51 |
52 |
53 |
54 |
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/configuration/properties/in-parameters-write-template.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/configuration/properties/message-definitions-display-template.html:
--------------------------------------------------------------------------------
1 |
{{'PROPERTY.MESSAGEDEFINITIONS.DISPLAY' | translate:property.value}}
2 |
PROPERTY.MESSAGEDEFINITIONS.EMPTY
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/configuration/properties/message-definitions-popup.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
10 |
11 |
12 |
13 |
14 |
15 |
24 |
25 |
38 |
39 |
40 |
41 |
42 |
43 |
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/configuration/properties/message-definitions-write-template.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/configuration/properties/message-property-write-template.html:
--------------------------------------------------------------------------------
1 |
2 |
4 |
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/configuration/properties/multiinstance-property-write-template.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/configuration/properties/out-parameters-display-template.html:
--------------------------------------------------------------------------------
1 |
2 |
{{'PROPERTY.OUTPARAMETERS.VALUE' | translate:property.value.outParameters}}
3 |
PROPERTY.OUTPARAMETERS.EMPTY
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/configuration/properties/out-parameters-popup.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
9 |
10 |
11 |
12 |
25 |
26 |
27 |
43 |
PROPERTY.PARAMETER.EMPTY
44 |
45 |
46 |
47 |
51 |
52 |
53 |
54 |
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/configuration/properties/out-parameters-write-template.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/configuration/properties/sequenceflow-order-display-template.html:
--------------------------------------------------------------------------------
1 |
2 |
PROPERTY.SEQUENCEFLOW.ORDER.NOT.EMPTY
3 |
PROPERTY.SEQUENCEFLOW.ORDER.EMPTY
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/configuration/properties/sequenceflow-order-popup.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
9 |
10 |
11 |
12 |
PROPERTY.SEQUENCEFLOW.ORDER.DESCRIPTION
13 |
14 |
15 | -
16 | {{'PROPERTY.SEQUENCEFLOW.ORDER.SEQUENCEFLOW.VALUE' | translate:sequenceFlow}}
17 |
24 |
25 |
26 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/configuration/properties/sequenceflow-order-write-template.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/configuration/properties/signal-definitions-display-template.html:
--------------------------------------------------------------------------------
1 |
2 |
{{'PROPERTY.SIGNALDEFINITIONS.DISPLAY' | translate:property.value}}
3 |
PROPERTY.SIGNALDEFINITIONS.EMPTY
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/configuration/properties/signal-definitions-popup.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
10 |
11 |
12 |
13 |
14 |
15 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
55 |
56 |
57 |
58 |
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/configuration/properties/signal-definitions-write-template.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/configuration/properties/signal-property-write-template.html:
--------------------------------------------------------------------------------
1 |
2 |
4 |
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/configuration/properties/string-property-write-mode-template.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/configuration/properties/subprocess-reference-display-template.html:
--------------------------------------------------------------------------------
1 |
2 |
{{property.value.name}}
3 |
PROPERTY.SUBPROCESSREFERENCE.EMPTY
4 |
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/configuration/properties/subprocess-reference-popup.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
14 |
15 |
16 |
17 |
PROPERTY.SUBPROCESSREFERENCE.ERROR.SUBPROCESS
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
{{sub.name}}
27 |

28 |
29 |
30 |
PROPERTY.SUBPROCESSREFERENCE.SUBPROCESS.LOADING
31 |
32 |
33 |
PROPERTY.SUBPROCESSREFERENCE.SUBPROCESS.EMPTY
34 |
35 |
36 |
37 |
38 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/configuration/properties/subprocess-reference-write-template.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/configuration/properties/task-listeners-display-template.html:
--------------------------------------------------------------------------------
1 |
2 |
{{'PROPERTY.TASKLISTENERS.VALUE' | translate:property.value.taskListeners}}
3 |
PROPERTY.TASKLISTENERS.EMPTY
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/configuration/properties/task-listeners-write-template.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/configuration/properties/text-popup.html:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/configuration/properties/text-property-write-template.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/configuration/toolbar-custom-actions.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Activiti Modeler component part of the Activiti project
3 | * Copyright 2005-2014 Alfresco Software, Ltd. All rights reserved.
4 | *
5 | * This library is free software; you can redistribute it and/or
6 | * modify it under the terms of the GNU Lesser General Public
7 | * License as published by the Free Software Foundation; either
8 | * version 2.1 of the License, or (at your option) any later version.
9 | *
10 | * This library is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 | * Lesser General Public License for more details.
14 |
15 | * You should have received a copy of the GNU Lesser General Public
16 | * License along with this library; if not, write to the Free Software
17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 | */
19 |
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/configuration/url-config.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Activiti Modeler component part of the Activiti project
3 | * Copyright 2005-2014 Alfresco Software, Ltd. All rights reserved.
4 | *
5 | * This library is free software; you can redistribute it and/or
6 | * modify it under the terms of the GNU Lesser General Public
7 | * License as published by the Free Software Foundation; either
8 | * version 2.1 of the License, or (at your option) any later version.
9 | *
10 | * This library is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 | * Lesser General Public License for more details.
14 |
15 | * You should have received a copy of the GNU Lesser General Public
16 | * License along with this library; if not, write to the Free Software
17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 | */
19 | var KISBPM = KISBPM || {};
20 |
21 | KISBPM.URL = {
22 |
23 | getModel: function(modelId) {
24 | return ACTIVITI.CONFIG.contextRoot + '/model/' + modelId + '/json';
25 | },
26 |
27 | getStencilSet: function() {
28 | return ACTIVITI.CONFIG.contextRoot + '/editor/stencilset?version=' + Date.now();
29 | },
30 |
31 | putModel: function(modelId) {
32 | return ACTIVITI.CONFIG.contextRoot + '/model/' + modelId + '/save';
33 | }
34 | };
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/editor-config.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Activiti Modeler component part of the Activiti project
3 | * Copyright 2005-2014 Alfresco Software, Ltd. All rights reserved.
4 | *
5 | * This library is free software; you can redistribute it and/or
6 | * modify it under the terms of the GNU Lesser General Public
7 | * License as published by the Free Software Foundation; either
8 | * version 2.1 of the License, or (at your option) any later version.
9 | *
10 | * This library is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 | * Lesser General Public License for more details.
14 |
15 | * You should have received a copy of the GNU Lesser General Public
16 | * License along with this library; if not, write to the Free Software
17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 | */
19 | 'use strict';
20 |
21 | var KISBPM = KISBPM || {};
22 |
23 | KISBPM.CONFIG = {
24 | 'showRemovedProperties' : false
25 | };
26 |
27 | KISBPM.HEADER_CONFIG = {
28 | 'showAppTitle' : true,
29 | 'showHeaderMenu' : true,
30 | 'showMainNavigation' : true,
31 | 'showPageHeader' : true
32 | };
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/editor-controller.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Activiti Modeler component part of the Activiti project
3 | * Copyright 2005-2014 Alfresco Software, Ltd. All rights reserved.
4 | *
5 | * This library is free software; you can redistribute it and/or
6 | * modify it under the terms of the GNU Lesser General Public
7 | * License as published by the Free Software Foundation; either
8 | * version 2.1 of the License, or (at your option) any later version.
9 | *
10 | * This library is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 | * Lesser General Public License for more details.
14 |
15 | * You should have received a copy of the GNU Lesser General Public
16 | * License along with this library; if not, write to the Free Software
17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 | */
19 | 'use strict';
20 |
21 | angular.module('activitiModeler')
22 | .controller('EditorUnsavedChangesPopupCrtl', ['$rootScope', '$scope', '$http', '$location', '$window', function ($rootScope, $scope, $http, $location, $window) {
23 |
24 | $scope.ok = function () {
25 | if ($scope.handleResponseFunction) {
26 | $scope.handleResponseFunction(true);
27 |
28 | // Also clear any 'onbeforeunload', added by oryx
29 | $window.onbeforeunload = undefined;
30 | }
31 | $scope.$hide();
32 | };
33 |
34 | $scope.cancel = function () {
35 | if ($scope.handleResponseFunction) {
36 | $scope.handleResponseFunction(false);
37 | }
38 | $scope.$hide();
39 | };
40 | }]);
41 |
42 | activitiModule
43 | .directive('autoFocus', ['$timeout', '$parse', function($timeout, $parse) {
44 | return {
45 | restrict: 'AC',
46 | compile: function($element, attr) {
47 |
48 | return function(_scope, _element, _attrs) {
49 | var firstChild = (_attrs.focusFirstChild !== undefined);
50 | $timeout(function () {
51 | if (firstChild) {
52 | // look for first input-element in child-tree and focus that
53 | var inputs = _element.find('input');
54 | if (inputs && inputs.length > 0) {
55 | inputs[0].focus();
56 | }
57 | } else {
58 | // Focus element where the directive is put on
59 | _element[0].focus();
60 | }
61 | }, 100);
62 | }
63 | }
64 | };
65 | }]);
66 |
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/editor/css/editor.css:
--------------------------------------------------------------------------------
1 | body, html {
2 | font-family: tahoma,arial,helvetica,sans-serif;
3 | font-size: 12px;
4 | }
5 |
6 | /*********
7 | * SVG Style
8 | */
9 |
10 | text,
11 | text * {
12 | cursor:default;
13 | -webkit-user-select: none;
14 | }
15 |
16 | /*********
17 | * HEADER SECTION
18 | *
19 | */
20 |
21 | #oryx_canvas_htmlContainer {
22 |
23 | }
24 |
25 | .ORYX_Editor {
26 | background: white;
27 | border: none;
28 | margin:-5px;
29 | margin-top:0px;
30 | width:1200px;
31 | height:600px;
32 | }
33 |
34 | .icon-large {
35 | width:18px !important;
36 | }
37 |
38 | #oryxcanvas {
39 | width:1200px;
40 | height:600px;
41 | }
42 |
43 | /** Resizer for the Canvas **/
44 | .canvas_resize_indicator_area {
45 |
46 | margin :auto;
47 | display :block;
48 | height :30px;
49 | left :20%;
50 | position :absolute;
51 | text-align :center;
52 | top :0;
53 | width :60%;
54 |
55 | }
56 |
57 | .canvas_resize_indicator {
58 |
59 | width : 15px;
60 | height : 15px;
61 | position : absolute;
62 | display : block;
63 | margin : auto;
64 | opacity : 0.6;
65 | }
66 |
67 | .canvas_resize_indicator:hover {
68 |
69 | opacity : 1.0;
70 | }
71 | /** End Resizer **/
72 |
73 | .Oryx_down {
74 |
75 | }
76 |
77 | .Oryx_button img {
78 | width:16px;
79 | height:16px;
80 | top:0px;
81 | left:0px;
82 | line-height: 16px;
83 | }
84 |
85 | .Oryx_Right .Oryx_button,
86 | .Oryx_Left .Oryx_button,
87 | .Oryx_Top .Oryx_button,
88 | .Oryx_Bottom .Oryx_button {
89 | opacity: 0.5;
90 | }
91 |
92 | .Oryx_button.x-opacity-0 {
93 | opacity: 0;
94 | display:none;
95 | }
96 |
97 | .Oryx_button.x-opacity-10 {
98 | opacity: 0.1;
99 | }
100 |
101 | .Oryx_button.x-opacity-20 {
102 | opacity: 0.2;
103 | }
104 |
105 | .Oryx_button.x-opacity-50 {
106 | opacity: 0.5;
107 | }
108 |
109 | .Oryx_Right:hover .Oryx_button,
110 | .Oryx_Left:hover .Oryx_button,
111 | .Oryx_Top:hover .Oryx_button,
112 | .Oryx_Bottom:hover .Oryx_button {
113 | opacity: 0.7;
114 | display:block;
115 | }
116 |
117 |
118 | .Oryx_button img {
119 | top:0px;
120 | }
121 |
122 | .Oryx_Left img {
123 | top:0px;
124 | }
125 |
126 | .Oryx_button {
127 | width:24px;
128 | height:24px;
129 | padding:2px;
130 | position:absolute;
131 | background-color: #ffffff;
132 | background-color: rgba(255,255,255,0.7);
133 | cursor: pointer;
134 | }
135 |
136 | .Oryx_button_with_caption {
137 | width:inherit;
138 | height:16px;
139 | padding:4px;
140 | position:absolute;
141 | }
142 |
143 | /*** Resizer ***/
144 |
145 | .resizer_southeast,
146 | .resizer_northwest {
147 | width:12px;
148 | height:12px;
149 | position:relative;
150 | background-color: transparent;
151 | background-repeat:no-repeat;
152 | }
153 |
154 | /*** Selection Frame ***/
155 |
156 | .Oryx_SelectionFrame{
157 | position:absolute;
158 | border:1px dotted gray;
159 | background:none;
160 | }
161 |
162 | .LoadingIndicator {
163 | background-image: url('../../images/loading.gif');
164 | }
165 |
166 | .Oryx_hover, .Oryx_button:hover {
167 | background-color: #999999;
168 | background-color: rgba(193, 229, 238, 0.7);
169 | opacity: 1 !important;
170 | -webkit-border-radius: 3px;
171 | -moz-border-radius: 3px;
172 | border-radius: 3px;
173 | }
174 |
175 | .ValidateButton {
176 | width:24px;
177 | height:24px;
178 | padding:2px;
179 | position:absolute;
180 | cursor: pointer;
181 | }
182 |
183 | .ValidateButton:hover {
184 | background-color: #999999;
185 | background-color: rgba(193, 229, 238, 0.7);
186 | opacity: 1 !important;
187 | -webkit-border-radius: 3px;
188 | -moz-border-radius: 3px;
189 | border-radius: 3px;
190 | }
191 |
192 | .resizer_southeast {
193 | background-image:url(../../images/se-handle-dark.gif);
194 | cursor: se-resize;
195 | background-position: 4px 4px;
196 | }
197 |
198 | .resizer_northwest {
199 | background-image:url(../../images/nw-handle-dark.gif);
200 | cursor: nw-resize;
201 | background-position: -2px -2px;
202 | }
203 |
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/eventbus.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Activiti Modeler component part of the Activiti project
3 | * Copyright 2005-2014 Alfresco Software, Ltd. All rights reserved.
4 | *
5 | * This library is free software; you can redistribute it and/or
6 | * modify it under the terms of the GNU Lesser General Public
7 | * License as published by the Free Software Foundation; either
8 | * version 2.1 of the License, or (at your option) any later version.
9 | *
10 | * This library is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 | * Lesser General Public License for more details.
14 |
15 | * You should have received a copy of the GNU Lesser General Public
16 | * License along with this library; if not, write to the Free Software
17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 | */
19 | var KISBPM = KISBPM || {};
20 |
21 | /** Inspired by https://github.com/krasimir/EventBus/blob/master/src/EventBus.js */
22 | KISBPM.eventBus = {
23 |
24 | /** Event fired when the editor is loaded and ready */
25 | EVENT_TYPE_EDITOR_READY: 'event-type-editor-ready',
26 |
27 | /** Event fired when a selection is made on the canvas. */
28 | EVENT_TYPE_SELECTION_CHANGE: 'event-type-selection-change',
29 |
30 | /** Event fired when a toolbar button has been clicked. */
31 | EVENT_TYPE_TOOLBAR_BUTTON_CLICKED: 'event-type-toolbar-button-clicked',
32 |
33 | /** Event fired when a stencil item is dropped on the canvas. */
34 | EVENT_TYPE_ITEM_DROPPED: 'event-type-item-dropped',
35 |
36 | /** Event fired when a property value is changed. */
37 | EVENT_TYPE_PROPERTY_VALUE_CHANGED: 'event-type-property-value-changed',
38 |
39 | /** Event fired on double click in canvas. */
40 | EVENT_TYPE_DOUBLE_CLICK: 'event-type-double-click',
41 |
42 | /** Event fired on a mouse out */
43 | EVENT_TYPE_MOUSE_OUT: 'event-type-mouse-out',
44 |
45 | /** Event fired on a mouse over */
46 | EVENT_TYPE_MOUSE_OVER: 'event-type-mouse-over',
47 |
48 | /** Event fired when a model is saved. */
49 | EVENT_TYPE_MODEL_SAVED: 'event-type-model-saved',
50 |
51 | /** Event fired when the quick menu buttons should be hidden. */
52 | EVENT_TYPE_HIDE_SHAPE_BUTTONS: 'event-type-hide-shape-buttons',
53 |
54 | /** A mapping for storing the listeners*/
55 | listeners: {},
56 |
57 | /** The Oryx editor, which is stored locally to send events to */
58 | editor: null,
59 |
60 | /**
61 | * Add an event listener to the event bus, listening to the event with the provided type.
62 | * Type and callback are mandatory parameters.
63 | *
64 | * Provide scope parameter if it is important that the callback is executed
65 | * within a specific scope.
66 | */
67 | addListener: function (type, callback, scope) {
68 |
69 | // Add to the listeners map
70 | if (typeof this.listeners[type] !== "undefined") {
71 | this.listeners[type].push({scope: scope, callback: callback});
72 | } else {
73 | this.listeners[type] = [
74 | {scope: scope, callback: callback}
75 | ];
76 | }
77 | },
78 |
79 | /**
80 | * Removes the provided event listener.
81 | */
82 | removeListener: function (type, callback, scope) {
83 | if (typeof this.listeners[type] != "undefined") {
84 | var numOfCallbacks = this.listeners[type].length;
85 | var newArray = [];
86 | for (var i = 0; i < numOfCallbacks; i++) {
87 | var listener = this.listeners[type][i];
88 | if (listener.scope === scope && listener.callback === callback) {
89 | // Do nothing, this is the listener and doesn't need to survive
90 | } else {
91 | newArray.push(listener);
92 | }
93 | }
94 | this.listeners[type] = newArray;
95 | }
96 | },
97 |
98 | hasListener:function(type, callback, scope) {
99 | if(typeof this.listeners[type] != "undefined") {
100 | var numOfCallbacks = this.listeners[type].length;
101 | if(callback === undefined && scope === undefined){
102 | return numOfCallbacks > 0;
103 | }
104 | for(var i=0; i
- amitgharat.wordpress.com
8 | */
9 | var jqyoui=angular.module("ngDragDrop",[]).service("ngDragDropService",["$timeout","$parse",function($timeout,$parse){this.callEventCallback=function(scope,callbackName,event,ui){if(!callbackName){return}var args=[event,ui];var match=callbackName.match(/^(.+)\((.+)\)$/);if(match!==null){callbackName=match[1];values=eval("["+match[0].replace(/^(.+)\(/,"").replace(/\)/,"")+"]");args.push.apply(args,values)}scope[callbackName].apply(scope,args)};this.invokeDrop=function(e,t,n,r){var i="",s="",o={},u={},a=null,f={},l={},c,h,p=null,d=t.scope(),v=e.scope();i=e.attr("ng-model");s=t.attr("ng-model");c=v.$eval(i);h=d.$eval(s);p=t.find("[jqyoui-draggable]:last");u=d.$eval(t.attr("jqyoui-droppable"))||[];o=v.$eval(e.attr("jqyoui-draggable"))||[];o.index=this.fixIndex(v,o,c);u.index=this.fixIndex(d,u,h);a=angular.isArray(c)?o.index:null;f=angular.isArray(c)?c[a]:c;if(angular.isArray(h)&&u&&u.index!==undefined){l=h[u.index]}else if(!angular.isArray(h)){l=h}else{l={}}if(o.animate===true){this.move(e,p.length>0?p:t,null,"fast",u,null);this.move(p.length>0&&!u.multiple?p:[],e.parent("[jqyoui-droppable]"),jqyoui.startXY,"fast",u,function(){$timeout(function(){e.css({position:"relative",left:"",top:""});p.css({position:"relative",left:"",top:""});this.mutateDraggable(v,u,o,i,s,l,e);this.mutateDroppable(d,u,o,s,f,a);this.callEventCallback(d,u.onDrop,n,r)}.bind(this))}.bind(this))}else{$timeout(function(){this.mutateDraggable(v,u,o,i,s,l,e);this.mutateDroppable(d,u,o,s,f,a);this.callEventCallback(d,u.onDrop,n,r)}.bind(this))}};this.move=function(e,t,n,r,i,s){if(e.length===0){if(s){window.setTimeout(function(){s()},300)}return false}var o=9999,u=e.offset(),a=t&&t.is(":visible");if(n===null&&t.length>0){if(t.attr("jqyoui-draggable")!==undefined&&t.attr("ng-model")!==undefined&&t.is(":visible")&&i&&i.multiple){n=t.offset();if(i.stack===false){n.left+=t.outerWidth(true)}else{n.top+=t.outerHeight(true)}}else{n=t.css({visibility:"hidden",display:"block"}).offset();t.css({visibility:"",display:a?"":"none"})}}e.css({position:"absolute","z-index":o}).css(u).animate(n,r,function(){if(s)s()})};this.mutateDroppable=function(e,t,n,r,i,s){var o=e.$eval(r);e.__dragItem=i;if(angular.isArray(o)){if(t&&t.index>=0){o[t.index]=i}else{o.push(i)}if(n&&n.placeholder===true){o[o.length-1]["jqyoui_pos"]=s}}else{$parse(r+" = __dragItem")(e);if(n&&n.placeholder===true){o["jqyoui_pos"]=s}}};this.mutateDraggable=function(e,t,n,r,i,s,o){var u=angular.equals(angular.copy(s),{}),a=e.$eval(r);e.__dropItem=s;if(n&&n.placeholder){if(n.placeholder!="keep"){if(angular.isArray(a)&&n.index!==undefined){a[n.index]=s}else{$parse(r+" = __dropItem")(e)}}}else{if(angular.isArray(a)){if(u){if(n&&n.placeholder!==true&&n.placeholder!=="keep"){a.splice(n.index,1)}}else{a[n.index]=s}}else{$parse(r+" = __dropItem")(e);if(e.$parent){$parse(r+" = __dropItem")(e.$parent)}}}o.css({"z-index":"",left:"",top:""})};this.fixIndex=function(e,t,n){if(t.applyFilter&&angular.isArray(n)&&n.length>0){var r=e[t.applyFilter](),i=r[t.index],s=undefined;n.forEach(function(e,t){if(angular.equals(e,i)){s=t}});return s}return t.index}}]).directive("jqyouiDraggable",["ngDragDropService",function(e){return{require:"?jqyouiDroppable",restrict:"A",link:function(t,n,r){var i,s;var o=function(o,u){if(o){i=t.$eval(n.attr("jqyoui-draggable"))||[];n.draggable({disabled:false}).draggable(t.$eval(r.jqyouiOptions)||{}).draggable({start:function(n,r){s=angular.element(this).css("z-index");angular.element(this).css("z-index",99999);jqyoui.startXY=angular.element(this).offset();e.callEventCallback(t,i.onStart,n,r)},stop:function(n,r){angular.element(this).css("z-index",s);e.callEventCallback(t,i.onStop,n,r)},drag:function(n,r){e.callEventCallback(t,i.onDrag,n,r)}})}else{n.draggable({disabled:true})}};t.$watch(function(){return t.$eval(r.drag)},o);o()}}}]).directive("jqyouiDroppable",["ngDragDropService",function(e){return{restrict:"A",priority:1,link:function(t,n,r){var i=function(i,s){if(i){n.droppable({disabled:false}).droppable(t.$eval(r.jqyouiOptions)||{}).droppable({over:function(n,r){var i=t.$eval(angular.element(this).attr("jqyoui-droppable"))||[];e.callEventCallback(t,i.onOver,n,r)},out:function(n,r){var i=t.$eval(angular.element(this).attr("jqyoui-droppable"))||[];e.callEventCallback(t,i.onOut,n,r)},drop:function(t,n){e.invokeDrop(angular.element(n.draggable),angular.element(this),t,n)}})}else{n.droppable({disabled:true})}};t.$watch(function(){return t.$eval(r.drop)},i);i()}}}])
10 |
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/libs/angular-resource_1.2.13/angular-resource.min.js:
--------------------------------------------------------------------------------
1 | /*
2 | AngularJS v1.2.13
3 | (c) 2010-2014 Google, Inc. http://angularjs.org
4 | License: MIT
5 | */
6 | (function(H,a,A){'use strict';function D(p,g){g=g||{};a.forEach(g,function(a,c){delete g[c]});for(var c in p)!p.hasOwnProperty(c)||"$"===c.charAt(0)&&"$"===c.charAt(1)||(g[c]=p[c]);return g}var v=a.$$minErr("$resource"),C=/^(\.[a-zA-Z_$][0-9a-zA-Z_$]*)+$/;a.module("ngResource",["ng"]).factory("$resource",["$http","$q",function(p,g){function c(a,c){this.template=a;this.defaults=c||{};this.urlParams={}}function t(n,w,l){function r(h,d){var e={};d=x({},w,d);s(d,function(b,d){u(b)&&(b=b());var k;if(b&&
7 | b.charAt&&"@"==b.charAt(0)){k=h;var a=b.substr(1);if(null==a||""===a||"hasOwnProperty"===a||!C.test("."+a))throw v("badmember",a);for(var a=a.split("."),f=0,c=a.length;f=c;d--)e.end&&e.end(f[d]);f.length=c}}var b,g,f=[],l=a;for(f.last=function(){return f[f.length-1]};a;){g=!0;if(f.last()&&x[f.last()])a=a.replace(RegExp("(.*)<\\s*\\/\\s*"+f.last()+"[^>]*>","i"),function(b,a){a=a.replace(H,"$1").replace(I,"$1");e.chars&&e.chars(r(a));return""}),c("",f.last());else{if(0===a.indexOf("\x3c!--"))b=a.indexOf("--",4),0<=b&&a.lastIndexOf("--\x3e",b)===b&&(e.comment&&e.comment(a.substring(4,b)),a=a.substring(b+3),g=!1);else if(y.test(a)){if(b=a.match(y))a=
8 | a.replace(b[0],""),g=!1}else if(J.test(a)){if(b=a.match(z))a=a.substring(b[0].length),b[0].replace(z,c),g=!1}else K.test(a)&&(b=a.match(A))&&(a=a.substring(b[0].length),b[0].replace(A,d),g=!1);g&&(b=a.indexOf("<"),g=0>b?a:a.substring(0,b),a=0>b?"":a.substring(b),e.chars&&e.chars(r(g)))}if(a==l)throw L("badparse",a);l=a}c()}function r(a){if(!a)return"";var e=M.exec(a);a=e[1];var d=e[3];if(e=e[2])n.innerHTML=e.replace(//g,">")}function s(a,e){var d=!1,c=h.bind(a,a.push);return{start:function(a,g,f){a=h.lowercase(a);!d&&x[a]&&(d=a);d||!0!==C[a]||(c("<"),c(a),h.forEach(g,function(d,f){var g=h.lowercase(f),k="img"===a&&"src"===g||"background"===g;!0!==O[g]||!0===D[g]&&!e(d,k)||(c(" "),c(f),c('="'),c(B(d)),c('"'))}),c(f?"/>":">"))},end:function(a){a=h.lowercase(a);d||!0!==C[a]||(c(""),c(a),c(">"));a==d&&(d=!1)},chars:function(a){d||
10 | c(B(a))}}}var L=h.$$minErr("$sanitize"),A=/^<\s*([\w:-]+)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*>/,z=/^<\s*\/\s*([\w:-]+)[^>]*>/,G=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,K=/^,J=/^<\s*\//,H=/\x3c!--(.*?)--\x3e/g,y=/]*?)>/i,I=/]/,d=/^mailto:/;return function(c,b){function g(a){a&&m.push(E(a))}function f(a,c){m.push("');g(c);m.push("")}if(!c)return c;for(var l,k=c,m=[],n,p;l=k.match(e);)n=l[0],l[2]==l[3]&&(n="mailto:"+n),p=l.index,g(k.substr(0,p)),f(n,l[0].replace(d,"")),k=k.substring(p+l[0].length);g(k);return a(m.join(""))}}])})(window,window.angular);
14 | //# sourceMappingURL=angular-sanitize.min.js.map
15 |
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/libs/angular-translate-loader-static-files/.bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "angular-translate-loader-static-files",
3 | "version": "0.1.6",
4 | "main": "./angular-translate-loader-static-files.js",
5 | "dependencies": {
6 | "angular": "1.0.8",
7 | "angular-translate": "~1.1.1"
8 | },
9 | "homepage": "https://github.com/PascalPrecht/bower-angular-translate-loader-static-files",
10 | "_release": "0.1.6",
11 | "_resolution": {
12 | "type": "version",
13 | "tag": "0.1.6",
14 | "commit": "eaac546d29d6cde45873e6bad9d18cdff071d983"
15 | },
16 | "_source": "git://github.com/PascalPrecht/bower-angular-translate-loader-static-files.git",
17 | "_target": "0.1.6",
18 | "_originalSource": "angular-translate-loader-static-files"
19 | }
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/libs/angular-translate-loader-static-files/angular-translate-loader-static-files.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * angular-translate - v2.4.2 - 2014-10-21
3 | * http://github.com/angular-translate/angular-translate
4 | * Copyright (c) 2014 ; Licensed MIT
5 | */
6 | angular.module('pascalprecht.translate').factory('$translateStaticFilesLoader', [
7 | '$q',
8 | '$http',
9 | function ($q, $http) {
10 | return function (options) {
11 | if (!options || (!angular.isString(options.prefix) || !angular.isString(options.suffix))) {
12 | throw new Error('Couldn\'t load static files, no prefix or suffix specified!');
13 | }
14 | var deferred = $q.defer();
15 | $http(angular.extend({
16 | url: [
17 | options.prefix,
18 | options.key,
19 | options.suffix
20 | ].join(''),
21 | method: 'GET',
22 | params: ''
23 | }, options.$http)).success(function (data) {
24 | deferred.resolve(data);
25 | }).error(function (data) {
26 | deferred.reject(options.key);
27 | });
28 | return deferred.promise;
29 | };
30 | }
31 | ]);
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/libs/angular-translate-loader-static-files/angular-translate-loader-static-files.min.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * angular-translate - v2.4.2 - 2014-10-21
3 | * http://github.com/angular-translate/angular-translate
4 | * Copyright (c) 2014 ; Licensed MIT
5 | */
6 | angular.module("pascalprecht.translate").factory("$translateStaticFilesLoader",["$q","$http",function(a,b){return function(c){if(!c||!angular.isString(c.prefix)||!angular.isString(c.suffix))throw new Error("Couldn't load static files, no prefix or suffix specified!");var d=a.defer();return b(angular.extend({url:[c.prefix,c.key,c.suffix].join(""),method:"GET",params:""},c.$http)).success(function(a){d.resolve(a)}).error(function(){d.reject(c.key)}),d.promise}}]);
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/libs/angular-translate-storage-cookie/.bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "angular-translate-storage-cookie",
3 | "version": "0.1.6",
4 | "main": "./angular-translate-storage-cookie.js",
5 | "dependencies": {
6 | "angular": "1.0.8",
7 | "angular-cookies": "1.0.8",
8 | "angular-translate": "~1.1.1"
9 | },
10 | "homepage": "https://github.com/PascalPrecht/bower-angular-translate-storage-cookie",
11 | "_release": "0.1.6",
12 | "_resolution": {
13 | "type": "version",
14 | "tag": "0.1.6",
15 | "commit": "fc9ea3275f0f9bf0a60ca073b58488d934a348ac"
16 | },
17 | "_source": "git://github.com/PascalPrecht/bower-angular-translate-storage-cookie.git",
18 | "_target": "0.1.6",
19 | "_originalSource": "angular-translate-storage-cookie"
20 | }
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/libs/angular-translate-storage-cookie/angular-translate-storage-cookie.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * angular-translate - v2.4.2 - 2014-10-21
3 | * http://github.com/angular-translate/angular-translate
4 | * Copyright (c) 2014 ; Licensed MIT
5 | */
6 | angular.module('pascalprecht.translate').factory('$translateCookieStorage', [
7 | '$cookieStore',
8 | function ($cookieStore) {
9 | var $translateCookieStorage = {
10 | get: function (name) {
11 | return $cookieStore.get(name);
12 | },
13 | set: function (name, value) {
14 | $cookieStore.put(name, value);
15 | }
16 | };
17 | return $translateCookieStorage;
18 | }
19 | ]);
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/libs/angular-translate-storage-cookie/angular-translate-storage-cookie.min.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * angular-translate - v2.4.2 - 2014-10-21
3 | * http://github.com/angular-translate/angular-translate
4 | * Copyright (c) 2014 ; Licensed MIT
5 | */
6 | angular.module("pascalprecht.translate").factory("$translateCookieStorage",["$cookieStore",function(a){var b={get:function(b){return a.get(b)},set:function(b,c){a.put(b,c)}};return b}]);
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/libs/bootstrap_3.1.1/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vandeter/springboot-Activiti-Modeler-/642514b5174bab8afe92bc4ae320fba838e01f15/activitiDemo/src/main/resources/static/editor-app/libs/bootstrap_3.1.1/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/libs/bootstrap_3.1.1/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vandeter/springboot-Activiti-Modeler-/642514b5174bab8afe92bc4ae320fba838e01f15/activitiDemo/src/main/resources/static/editor-app/libs/bootstrap_3.1.1/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/libs/bootstrap_3.1.1/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vandeter/springboot-Activiti-Modeler-/642514b5174bab8afe92bc4ae320fba838e01f15/activitiDemo/src/main/resources/static/editor-app/libs/bootstrap_3.1.1/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/libs/es5-shim-15.3.4.5/.bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "es5-shim",
3 | "homepage": "https://github.com/es-shims/es5-shim",
4 | "version": "2.1.0",
5 | "_release": "2.1.0",
6 | "_resolution": {
7 | "type": "version",
8 | "tag": "v2.1.0",
9 | "commit": "07da727ff7db2a3a25d6bc25d13e374b3bbc99c2"
10 | },
11 | "_source": "git://github.com/es-shims/es5-shim.git",
12 | "_target": "~2.1.0",
13 | "_originalSource": "es5-shim"
14 | }
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/libs/es5-shim-15.3.4.5/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | .DS_Store
3 |
--------------------------------------------------------------------------------
/activitiDemo/src/main/resources/static/editor-app/libs/es5-shim-15.3.4.5/CHANGES:
--------------------------------------------------------------------------------
1 |
2 | 2.0.0
3 | - Separate reliable shims from dubious shims (shams).
4 |
5 | 1.2.10
6 | - Group-effort Style Cleanup
7 | - Took a stab at fixing Object.defineProperty on IE8 without
8 | bad side-effects. (@hax)
9 | - Object.isExtensible no longer fakes it. (@xavierm)
10 | - Date.prototype.toISOString no longer deals with partial
11 | ISO dates, per spec (@kitcambridge)
12 | - More (mostly from @bryanforbes)
13 |
14 | 1.2.9
15 | - Corrections to toISOString by @kitcambridge
16 | - Fixed three bugs in array methods revealed by Jasmine tests.
17 | - Cleaned up Function.prototype.bind with more fixes and tests from
18 | @bryanforbes.
19 |
20 | 1.2.8
21 | - Actually fixed problems with Function.prototype.bind, and regressions
22 | from 1.2.7 (@bryanforbes, @jdalton #36)
23 |
24 | 1.2.7 - REGRESSED
25 | - Fixed problems with Function.prototype.bind when called as a constructor.
26 | (@jdalton #36)
27 |
28 | 1.2.6
29 | - Revised Date.parse to match ES 5.1 (kitcambridge)
30 |
31 | 1.2.5
32 | - Fixed a bug for padding it Date..toISOString (tadfisher issue #33)
33 |
34 | 1.2.4
35 | - Fixed a descriptor bug in Object.defineProperty (raynos)
36 |
37 | 1.2.3
38 | - Cleaned up RequireJS and
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
59 |
60 |
61 |
62 |
63 |
64 |