jruby_activiti 1.2.5 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (317) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +3 -1
  3. data/.ruby-version +1 -1
  4. data/CHANGELOG +6 -0
  5. data/Jarfile +5 -0
  6. data/Jarfile.lock +52 -13
  7. data/README.md +21 -9
  8. data/java/build.md +3 -0
  9. data/java/mapping.md +20 -0
  10. data/java/pom.xml +30 -0
  11. data/java/src/main/java/jrubyactiviti/Modeler.java +95 -0
  12. data/java/src/main/java/jrubyactiviti/ProcessDiagram.java +491 -0
  13. data/java/src/main/java/jrubyactiviti/ProcessInstanceHighlights.java +237 -0
  14. data/java/src/main/java/jrubyactiviti/StencilsetResource.java +16 -0
  15. data/java/src/main/resources/stencilset.json +1339 -0
  16. data/jruby_activiti.gemspec +3 -2
  17. data/lib/generators/jruby_activiti/install_generator.rb +4 -0
  18. data/lib/jar/jrubyactiviti-2.0.jar +0 -0
  19. data/lib/jruby_activiti/version.rb +1 -1
  20. data/lib/jruby_activiti/web.rb +81 -0
  21. data/lib/jruby_activiti.rb +28 -20
  22. data/test/{base_test.rb → activiti_test.rb} +1 -3
  23. data/test/instance_hights_test.rb +18 -0
  24. data/test/modeler_test.rb +35 -0
  25. data/test/process_diagram_test.rb +33 -0
  26. data/test/resources/model_init_editor_source.json +1 -0
  27. data/test/resources/model_json_xml.json +278 -0
  28. data/test/resources/model_svg_xml.xml +66 -0
  29. data/test/stencilset_test.rb +7 -0
  30. data/test/test_helper.rb +2 -0
  31. data/web/public/diagram-viewer/images/bg.png +0 -0
  32. data/web/public/diagram-viewer/images/breadcrumbs.png +0 -0
  33. data/web/public/diagram-viewer/images/checker-bg.png +0 -0
  34. data/web/public/diagram-viewer/images/deployer/blue/message_catch.png +0 -0
  35. data/web/public/diagram-viewer/images/deployer/business_rule.png +0 -0
  36. data/web/public/diagram-viewer/images/deployer/error_catch.png +0 -0
  37. data/web/public/diagram-viewer/images/deployer/error_throw.png +0 -0
  38. data/web/public/diagram-viewer/images/deployer/manual.png +0 -0
  39. data/web/public/diagram-viewer/images/deployer/message_catch.png +0 -0
  40. data/web/public/diagram-viewer/images/deployer/message_throw.png +0 -0
  41. data/web/public/diagram-viewer/images/deployer/receive.png +0 -0
  42. data/web/public/diagram-viewer/images/deployer/script.png +0 -0
  43. data/web/public/diagram-viewer/images/deployer/send.png +0 -0
  44. data/web/public/diagram-viewer/images/deployer/service.png +0 -0
  45. data/web/public/diagram-viewer/images/deployer/signal_catch.png +0 -0
  46. data/web/public/diagram-viewer/images/deployer/signal_throw.png +0 -0
  47. data/web/public/diagram-viewer/images/deployer/timer.png +0 -0
  48. data/web/public/diagram-viewer/images/deployer/user.png +0 -0
  49. data/web/public/diagram-viewer/index.html +130 -0
  50. data/web/public/diagram-viewer/js/ActivitiRest.js +74 -0
  51. data/web/public/diagram-viewer/js/ActivityImpl.js +1 -0
  52. data/web/public/diagram-viewer/js/Color.js +603 -0
  53. data/web/public/diagram-viewer/js/LineBreakMeasurer.js +270 -0
  54. data/web/public/diagram-viewer/js/Polyline.js +387 -0
  55. data/web/public/diagram-viewer/js/ProcessDiagramCanvas.js +2172 -0
  56. data/web/public/diagram-viewer/js/ProcessDiagramGenerator.js +1087 -0
  57. data/web/public/diagram-viewer/js/jquery/jquery.asyncqueue.js +125 -0
  58. data/web/public/diagram-viewer/js/jquery/jquery.js +9266 -0
  59. data/web/public/diagram-viewer/js/jquery/jquery.progressbar.js +131 -0
  60. data/web/public/diagram-viewer/js/jstools.js +23 -0
  61. data/web/public/diagram-viewer/js/raphael.2.1.1.js +10 -0
  62. data/web/public/diagram-viewer/js/raphael.js +10 -0
  63. data/web/public/diagram-viewer/js/raphael_uncompressed.js +5815 -0
  64. data/web/public/diagram-viewer/js/textlayout.js +441 -0
  65. data/web/public/diagram-viewer/style.css +1 -0
  66. data/web/public/editor-app/app-cfg.js +25 -0
  67. data/web/public/editor-app/app.js +432 -0
  68. data/web/public/editor-app/configuration/properties/assignment-display-template.html +4 -0
  69. data/web/public/editor-app/configuration/properties/assignment-popup.html +44 -0
  70. data/web/public/editor-app/configuration/properties/assignment-write-template.html +4 -0
  71. data/web/public/editor-app/configuration/properties/boolean-property-template.html +4 -0
  72. data/web/public/editor-app/configuration/properties/condition-expression-display-template.html +2 -0
  73. data/web/public/editor-app/configuration/properties/condition-expression-popup.html +29 -0
  74. data/web/public/editor-app/configuration/properties/condition-expression-write-template.html +4 -0
  75. data/web/public/editor-app/configuration/properties/default-value-display-template.html +4 -0
  76. data/web/public/editor-app/configuration/properties/event-listeners-display-template.html +3 -0
  77. data/web/public/editor-app/configuration/properties/event-listeners-popup.html +115 -0
  78. data/web/public/editor-app/configuration/properties/event-listeners-write-template.html +4 -0
  79. data/web/public/editor-app/configuration/properties/execution-listeners-display-template.html +3 -0
  80. data/web/public/editor-app/configuration/properties/execution-listeners-popup.html +101 -0
  81. data/web/public/editor-app/configuration/properties/execution-listeners-write-template.html +4 -0
  82. data/web/public/editor-app/configuration/properties/feedback-popup.html +17 -0
  83. data/web/public/editor-app/configuration/properties/fields-display-template.html +3 -0
  84. data/web/public/editor-app/configuration/properties/fields-popup.html +61 -0
  85. data/web/public/editor-app/configuration/properties/fields-write-template.html +4 -0
  86. data/web/public/editor-app/configuration/properties/form-properties-display-template.html +3 -0
  87. data/web/public/editor-app/configuration/properties/form-properties-popup.html +93 -0
  88. data/web/public/editor-app/configuration/properties/form-properties-write-template.html +4 -0
  89. data/web/public/editor-app/configuration/properties/in-parameters-display-template.html +3 -0
  90. data/web/public/editor-app/configuration/properties/in-parameters-popup.html +53 -0
  91. data/web/public/editor-app/configuration/properties/in-parameters-write-template.html +4 -0
  92. data/web/public/editor-app/configuration/properties/message-definitions-display-template.html +2 -0
  93. data/web/public/editor-app/configuration/properties/message-definitions-popup.html +50 -0
  94. data/web/public/editor-app/configuration/properties/message-definitions-write-template.html +3 -0
  95. data/web/public/editor-app/configuration/properties/message-property-write-template.html +4 -0
  96. data/web/public/editor-app/configuration/properties/multiinstance-property-write-template.html +8 -0
  97. data/web/public/editor-app/configuration/properties/out-parameters-display-template.html +3 -0
  98. data/web/public/editor-app/configuration/properties/out-parameters-popup.html +53 -0
  99. data/web/public/editor-app/configuration/properties/out-parameters-write-template.html +4 -0
  100. data/web/public/editor-app/configuration/properties/sequenceflow-order-display-template.html +3 -0
  101. data/web/public/editor-app/configuration/properties/sequenceflow-order-popup.html +47 -0
  102. data/web/public/editor-app/configuration/properties/sequenceflow-order-write-template.html +4 -0
  103. data/web/public/editor-app/configuration/properties/signal-definitions-display-template.html +3 -0
  104. data/web/public/editor-app/configuration/properties/signal-definitions-popup.html +58 -0
  105. data/web/public/editor-app/configuration/properties/signal-definitions-write-template.html +4 -0
  106. data/web/public/editor-app/configuration/properties/signal-property-write-template.html +4 -0
  107. data/web/public/editor-app/configuration/properties/string-property-write-mode-template.html +8 -0
  108. data/web/public/editor-app/configuration/properties/subprocess-reference-display-template.html +3 -0
  109. data/web/public/editor-app/configuration/properties/subprocess-reference-popup.html +43 -0
  110. data/web/public/editor-app/configuration/properties/subprocess-reference-write-template.html +4 -0
  111. data/web/public/editor-app/configuration/properties/task-listeners-display-template.html +3 -0
  112. data/web/public/editor-app/configuration/properties/task-listeners-popup.html +102 -0
  113. data/web/public/editor-app/configuration/properties/task-listeners-write-template.html +4 -0
  114. data/web/public/editor-app/configuration/properties/text-popup.html +17 -0
  115. data/web/public/editor-app/configuration/properties/text-property-write-template.html +4 -0
  116. data/web/public/editor-app/configuration/properties-assignment-controller.js +150 -0
  117. data/web/public/editor-app/configuration/properties-condition-expression-controller.js +58 -0
  118. data/web/public/editor-app/configuration/properties-custom-controllers.js +18 -0
  119. data/web/public/editor-app/configuration/properties-default-controllers.js +115 -0
  120. data/web/public/editor-app/configuration/properties-event-listeners-controller.js +266 -0
  121. data/web/public/editor-app/configuration/properties-execution-listeners-controller.js +326 -0
  122. data/web/public/editor-app/configuration/properties-fields-controller.js +192 -0
  123. data/web/public/editor-app/configuration/properties-form-properties-controller.js +192 -0
  124. data/web/public/editor-app/configuration/properties-in-parameters-controller.js +158 -0
  125. data/web/public/editor-app/configuration/properties-message-definitions-controller.js +137 -0
  126. data/web/public/editor-app/configuration/properties-message-scope-controller.js +48 -0
  127. data/web/public/editor-app/configuration/properties-multiinstance-controller.js +34 -0
  128. data/web/public/editor-app/configuration/properties-out-parameters-controller.js +158 -0
  129. data/web/public/editor-app/configuration/properties-sequenceflow-order-controller.js +130 -0
  130. data/web/public/editor-app/configuration/properties-signal-definitions-controller.js +136 -0
  131. data/web/public/editor-app/configuration/properties-signal-scope-controller.js +47 -0
  132. data/web/public/editor-app/configuration/properties-task-listeners-controller.js +325 -0
  133. data/web/public/editor-app/configuration/properties.js +99 -0
  134. data/web/public/editor-app/configuration/toolbar-custom-actions.js +18 -0
  135. data/web/public/editor-app/configuration/toolbar-default-actions.js +429 -0
  136. data/web/public/editor-app/configuration/toolbar.js +175 -0
  137. data/web/public/editor-app/configuration/url-config.js +34 -0
  138. data/web/public/editor-app/css/style-common.css +1518 -0
  139. data/web/public/editor-app/css/style-editor.css +639 -0
  140. data/web/public/editor-app/css/style.css +471 -0
  141. data/web/public/editor-app/editor/css/editor.css +202 -0
  142. data/web/public/editor-app/editor/i18n/translation_de.js +383 -0
  143. data/web/public/editor-app/editor/i18n/translation_en_us.js +423 -0
  144. data/web/public/editor-app/editor/i18n/translation_signavio_de.js +106 -0
  145. data/web/public/editor-app/editor/i18n/translation_signavio_en_us.js +108 -0
  146. data/web/public/editor-app/editor/oryx.debug.js +24510 -0
  147. data/web/public/editor-app/editor/oryx.js +30 -0
  148. data/web/public/editor-app/editor-config.js +32 -0
  149. data/web/public/editor-app/editor-controller.js +65 -0
  150. data/web/public/editor-app/editor-utils.js +135 -0
  151. data/web/public/editor-app/editor.html +136 -0
  152. data/web/public/editor-app/eventbus.js +133 -0
  153. data/web/public/editor-app/fonts/activiti-admin-webfont.eot +0 -0
  154. data/web/public/editor-app/fonts/activiti-admin-webfont.svg +43 -0
  155. data/web/public/editor-app/fonts/activiti-admin-webfont.ttf +0 -0
  156. data/web/public/editor-app/fonts/activiti-admin-webfont.woff +0 -0
  157. data/web/public/editor-app/fonts/glyphicons-halflings-regular.eot +0 -0
  158. data/web/public/editor-app/fonts/glyphicons-halflings-regular.svg +229 -0
  159. data/web/public/editor-app/fonts/glyphicons-halflings-regular.ttf +0 -0
  160. data/web/public/editor-app/fonts/glyphicons-halflings-regular.woff +0 -0
  161. data/web/public/editor-app/header-controller.js +31 -0
  162. data/web/public/editor-app/i18n/en.json +286 -0
  163. data/web/public/editor-app/images/bpmn-error.png +0 -0
  164. data/web/public/editor-app/images/bpmn-warning.png +0 -0
  165. data/web/public/editor-app/images/datadefinition.png +0 -0
  166. data/web/public/editor-app/images/delete.png +0 -0
  167. data/web/public/editor-app/images/loading.gif +0 -0
  168. data/web/public/editor-app/images/logo-2x.png +0 -0
  169. data/web/public/editor-app/images/logo.png +0 -0
  170. data/web/public/editor-app/images/nw-handle-dark.gif +0 -0
  171. data/web/public/editor-app/images/se-handle-dark.gif +0 -0
  172. data/web/public/editor-app/images/shapemenu_highlight.png +0 -0
  173. data/web/public/editor-app/images/wrench.png +0 -0
  174. data/web/public/editor-app/libs/angular-cookies_1.2.13/angular-cookies.min.js +8 -0
  175. data/web/public/editor-app/libs/angular-cookies_1.2.13/angular-cookies.min.js.map +8 -0
  176. data/web/public/editor-app/libs/angular-dragdrop.min-1.0.3.js +9 -0
  177. data/web/public/editor-app/libs/angular-dragdrop_1.0.7/angular-dragdrop.min.js +29 -0
  178. data/web/public/editor-app/libs/angular-mocks_1.2.13/angular-mocks.js +2136 -0
  179. data/web/public/editor-app/libs/angular-resource_1.2.13/angular-resource.js +596 -0
  180. data/web/public/editor-app/libs/angular-resource_1.2.13/angular-resource.min.js +13 -0
  181. data/web/public/editor-app/libs/angular-resource_1.2.13/angular-resource.min.js.map +8 -0
  182. data/web/public/editor-app/libs/angular-route_1.2.13/angular-route.js +921 -0
  183. data/web/public/editor-app/libs/angular-route_1.2.13/angular-route.min.js +14 -0
  184. data/web/public/editor-app/libs/angular-route_1.2.13/angular-route.min.js.map +8 -0
  185. data/web/public/editor-app/libs/angular-sanitize_1.2.13/angular-sanitize.js +625 -0
  186. data/web/public/editor-app/libs/angular-sanitize_1.2.13/angular-sanitize.min.js +14 -0
  187. data/web/public/editor-app/libs/angular-sanitize_1.2.13/angular-sanitize.min.js.map +8 -0
  188. data/web/public/editor-app/libs/angular-scroll_0.5.7/angular-scroll.min.js +1 -0
  189. data/web/public/editor-app/libs/angular-strap_2.0.5/angular-strap.min.js +9 -0
  190. data/web/public/editor-app/libs/angular-strap_2.0.5/angular-strap.tpl.min.js +8 -0
  191. data/web/public/editor-app/libs/angular-translate-loader-static-files/.bower.json +19 -0
  192. data/web/public/editor-app/libs/angular-translate-loader-static-files/angular-translate-loader-static-files.js +31 -0
  193. data/web/public/editor-app/libs/angular-translate-loader-static-files/angular-translate-loader-static-files.min.js +6 -0
  194. data/web/public/editor-app/libs/angular-translate-storage-cookie/.bower.json +20 -0
  195. data/web/public/editor-app/libs/angular-translate-storage-cookie/angular-translate-storage-cookie.js +19 -0
  196. data/web/public/editor-app/libs/angular-translate-storage-cookie/angular-translate-storage-cookie.min.js +6 -0
  197. data/web/public/editor-app/libs/angular-translate_2.4.2/angular-translate.js +960 -0
  198. data/web/public/editor-app/libs/angular-translate_2.4.2/angular-translate.min.js +6 -0
  199. data/web/public/editor-app/libs/angular_1.2.13/angular-animate.min.js +27 -0
  200. data/web/public/editor-app/libs/angular_1.2.13/angular.min.js +204 -0
  201. data/web/public/editor-app/libs/bootstrap-daterangepicker_1.3.7/daterangepicker-bs3.css +267 -0
  202. data/web/public/editor-app/libs/bootstrap-daterangepicker_1.3.7/daterangepicker.js +1026 -0
  203. data/web/public/editor-app/libs/bootstrap_3.1.1/css/bootstrap-theme.css +347 -0
  204. data/web/public/editor-app/libs/bootstrap_3.1.1/css/bootstrap-theme.css.map +1 -0
  205. data/web/public/editor-app/libs/bootstrap_3.1.1/css/bootstrap-theme.min.css +7 -0
  206. data/web/public/editor-app/libs/bootstrap_3.1.1/css/bootstrap.css +5785 -0
  207. data/web/public/editor-app/libs/bootstrap_3.1.1/css/bootstrap.css.map +1 -0
  208. data/web/public/editor-app/libs/bootstrap_3.1.1/css/bootstrap.min.css +7 -0
  209. data/web/public/editor-app/libs/bootstrap_3.1.1/fonts/glyphicons-halflings-regular.eot +0 -0
  210. data/web/public/editor-app/libs/bootstrap_3.1.1/fonts/glyphicons-halflings-regular.svg +229 -0
  211. data/web/public/editor-app/libs/bootstrap_3.1.1/fonts/glyphicons-halflings-regular.ttf +0 -0
  212. data/web/public/editor-app/libs/bootstrap_3.1.1/fonts/glyphicons-halflings-regular.woff +0 -0
  213. data/web/public/editor-app/libs/bootstrap_3.1.1/js/bootstrap.js +1951 -0
  214. data/web/public/editor-app/libs/bootstrap_3.1.1/js/bootstrap.min.js +6 -0
  215. data/web/public/editor-app/libs/es5-shim-15.3.4.5/.bower.json +14 -0
  216. data/web/public/editor-app/libs/es5-shim-15.3.4.5/.gitignore +2 -0
  217. data/web/public/editor-app/libs/es5-shim-15.3.4.5/CHANGES +93 -0
  218. data/web/public/editor-app/libs/es5-shim-15.3.4.5/CONTRIBUTORS.md +25 -0
  219. data/web/public/editor-app/libs/es5-shim-15.3.4.5/LICENSE +19 -0
  220. data/web/public/editor-app/libs/es5-shim-15.3.4.5/README.md +161 -0
  221. data/web/public/editor-app/libs/es5-shim-15.3.4.5/es5-sham.js +444 -0
  222. data/web/public/editor-app/libs/es5-shim-15.3.4.5/es5-sham.map +1 -0
  223. data/web/public/editor-app/libs/es5-shim-15.3.4.5/es5-sham.min.js +4 -0
  224. data/web/public/editor-app/libs/es5-shim-15.3.4.5/es5-shim.js +1314 -0
  225. data/web/public/editor-app/libs/es5-shim-15.3.4.5/es5-shim.map +1 -0
  226. data/web/public/editor-app/libs/es5-shim-15.3.4.5/es5-shim.min.js +4 -0
  227. data/web/public/editor-app/libs/es5-shim-15.3.4.5/package.json +34 -0
  228. data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/helpers/h-kill.js +64 -0
  229. data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/helpers/h-matchers.js +34 -0
  230. data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/helpers/h.js +3 -0
  231. data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/index.html +64 -0
  232. data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/index.min.html +63 -0
  233. data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/lib/jasmine-html.js +190 -0
  234. data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/lib/jasmine.css +166 -0
  235. data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/lib/jasmine.js +2477 -0
  236. data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/lib/jasmine_favicon.png +0 -0
  237. data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/lib/json2.js +478 -0
  238. data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/spec/s-array.js +1223 -0
  239. data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/spec/s-date.js +152 -0
  240. data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/spec/s-function.js +147 -0
  241. data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/spec/s-number.js +14 -0
  242. data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/spec/s-object.js +181 -0
  243. data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/spec/s-string.js +204 -0
  244. data/web/public/editor-app/libs/jquery-ui-1.10.3.custom.min.js +6 -0
  245. data/web/public/editor-app/libs/jquery.autogrow-textarea.js +61 -0
  246. data/web/public/editor-app/libs/jquery_1.11.0/jquery.js +9789 -0
  247. data/web/public/editor-app/libs/jquery_1.11.0/jquery.min.js +4 -0
  248. data/web/public/editor-app/libs/jquery_1.11.0/jquery.min.map +1 -0
  249. data/web/public/editor-app/libs/json3_3.2.6/LICENSE +20 -0
  250. data/web/public/editor-app/libs/json3_3.2.6/lib/json3.js +861 -0
  251. data/web/public/editor-app/libs/json3_3.2.6/lib/json3.min.js +18 -0
  252. data/web/public/editor-app/libs/momentjs_2.5.1/momentjs.min.js +6 -0
  253. data/web/public/editor-app/libs/mousetrap-1.4.5.min.js +9 -0
  254. data/web/public/editor-app/libs/ng-grid-2.0.7-min.js +2 -0
  255. data/web/public/editor-app/libs/ng-grid-2.0.7.min.css +1 -0
  256. data/web/public/editor-app/libs/path_parser.js +30 -0
  257. data/web/public/editor-app/libs/prototype-1.5.1.js +3272 -0
  258. data/web/public/editor-app/libs/ui-utils.min-0.0.4.js +7 -0
  259. data/web/public/editor-app/partials/root-stencil-item-template.html +11 -0
  260. data/web/public/editor-app/partials/stencil-item-template.html +27 -0
  261. data/web/public/editor-app/plugins.xml +58 -0
  262. data/web/public/editor-app/popups/icon-template.html +3 -0
  263. data/web/public/editor-app/popups/save-model.html +41 -0
  264. data/web/public/editor-app/popups/select-shape.html +20 -0
  265. data/web/public/editor-app/popups/unsaved-changes.html +22 -0
  266. data/web/public/editor-app/select-shape-controller.js +314 -0
  267. data/web/public/editor-app/stencil-controller.js +1421 -0
  268. data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/event.subprocess.collapsed.png +0 -0
  269. data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/event.subprocess.png +0 -0
  270. data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/expanded.subprocess.png +0 -0
  271. data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/list/type.business.rule.png +0 -0
  272. data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/list/type.camel.png +0 -0
  273. data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/list/type.manual.png +0 -0
  274. data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/list/type.mule.png +0 -0
  275. data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/list/type.receive.png +0 -0
  276. data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/list/type.script.png +0 -0
  277. data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/list/type.send.png +0 -0
  278. data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/list/type.service.png +0 -0
  279. data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/list/type.shell.png +0 -0
  280. data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/list/type.user.png +0 -0
  281. data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/subprocess.png +0 -0
  282. data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/task.png +0 -0
  283. data/web/public/editor-app/stencilsets/bpmn2.0/icons/artifact/text.annotation.png +0 -0
  284. data/web/public/editor-app/stencilsets/bpmn2.0/icons/catching/cancel.png +0 -0
  285. data/web/public/editor-app/stencilsets/bpmn2.0/icons/catching/compensation.png +0 -0
  286. data/web/public/editor-app/stencilsets/bpmn2.0/icons/catching/error.png +0 -0
  287. data/web/public/editor-app/stencilsets/bpmn2.0/icons/catching/message.png +0 -0
  288. data/web/public/editor-app/stencilsets/bpmn2.0/icons/catching/signal.png +0 -0
  289. data/web/public/editor-app/stencilsets/bpmn2.0/icons/catching/timer.png +0 -0
  290. data/web/public/editor-app/stencilsets/bpmn2.0/icons/connector/association.undirected.png +0 -0
  291. data/web/public/editor-app/stencilsets/bpmn2.0/icons/connector/association.unidirectional.png +0 -0
  292. data/web/public/editor-app/stencilsets/bpmn2.0/icons/connector/messageflow.png +0 -0
  293. data/web/public/editor-app/stencilsets/bpmn2.0/icons/connector/sequenceflow.png +0 -0
  294. data/web/public/editor-app/stencilsets/bpmn2.0/icons/dataobject/data.store.png +0 -0
  295. data/web/public/editor-app/stencilsets/bpmn2.0/icons/diagram.png +0 -0
  296. data/web/public/editor-app/stencilsets/bpmn2.0/icons/endevent/cancel.png +0 -0
  297. data/web/public/editor-app/stencilsets/bpmn2.0/icons/endevent/error.png +0 -0
  298. data/web/public/editor-app/stencilsets/bpmn2.0/icons/endevent/none.png +0 -0
  299. data/web/public/editor-app/stencilsets/bpmn2.0/icons/endevent/terminate.png +0 -0
  300. data/web/public/editor-app/stencilsets/bpmn2.0/icons/gateway/eventbased.png +0 -0
  301. data/web/public/editor-app/stencilsets/bpmn2.0/icons/gateway/exclusive.databased.png +0 -0
  302. data/web/public/editor-app/stencilsets/bpmn2.0/icons/gateway/inclusive.png +0 -0
  303. data/web/public/editor-app/stencilsets/bpmn2.0/icons/gateway/parallel.png +0 -0
  304. data/web/public/editor-app/stencilsets/bpmn2.0/icons/startevent/error.png +0 -0
  305. data/web/public/editor-app/stencilsets/bpmn2.0/icons/startevent/message.png +0 -0
  306. data/web/public/editor-app/stencilsets/bpmn2.0/icons/startevent/none.png +0 -0
  307. data/web/public/editor-app/stencilsets/bpmn2.0/icons/startevent/signal.png +0 -0
  308. data/web/public/editor-app/stencilsets/bpmn2.0/icons/startevent/timer.png +0 -0
  309. data/web/public/editor-app/stencilsets/bpmn2.0/icons/swimlane/lane.png +0 -0
  310. data/web/public/editor-app/stencilsets/bpmn2.0/icons/swimlane/pool.png +0 -0
  311. data/web/public/editor-app/stencilsets/bpmn2.0/icons/throwing/none.png +0 -0
  312. data/web/public/editor-app/stencilsets/bpmn2.0/icons/throwing/signal.png +0 -0
  313. data/web/public/editor-app/toolbar-controller.js +162 -0
  314. data/web/public/modeler.html +140 -0
  315. data/web/views/models/index.erb +32 -0
  316. data/web/views/models/new.erb +15 -0
  317. metadata +334 -10
@@ -0,0 +1,596 @@
1
+ /**
2
+ * @license AngularJS v1.2.13
3
+ * (c) 2010-2014 Google, Inc. http://angularjs.org
4
+ * License: MIT
5
+ */
6
+ (function(window, angular, undefined) {'use strict';
7
+
8
+ var $resourceMinErr = angular.$$minErr('$resource');
9
+
10
+ // Helper functions and regex to lookup a dotted path on an object
11
+ // stopping at undefined/null. The path must be composed of ASCII
12
+ // identifiers (just like $parse)
13
+ var MEMBER_NAME_REGEX = /^(\.[a-zA-Z_$][0-9a-zA-Z_$]*)+$/;
14
+
15
+ function isValidDottedPath(path) {
16
+ return (path != null && path !== '' && path !== 'hasOwnProperty' &&
17
+ MEMBER_NAME_REGEX.test('.' + path));
18
+ }
19
+
20
+ function lookupDottedPath(obj, path) {
21
+ if (!isValidDottedPath(path)) {
22
+ throw $resourceMinErr('badmember', 'Dotted member path "@{0}" is invalid.', path);
23
+ }
24
+ var keys = path.split('.');
25
+ for (var i = 0, ii = keys.length; i < ii && obj !== undefined; i++) {
26
+ var key = keys[i];
27
+ obj = (obj !== null) ? obj[key] : undefined;
28
+ }
29
+ return obj;
30
+ }
31
+
32
+ /**
33
+ * Create a shallow copy of an object and clear other fields from the destination
34
+ */
35
+ function shallowClearAndCopy(src, dst) {
36
+ dst = dst || {};
37
+
38
+ angular.forEach(dst, function(value, key){
39
+ delete dst[key];
40
+ });
41
+
42
+ for (var key in src) {
43
+ if (src.hasOwnProperty(key) && !(key.charAt(0) === '$' && key.charAt(1) === '$')) {
44
+ dst[key] = src[key];
45
+ }
46
+ }
47
+
48
+ return dst;
49
+ }
50
+
51
+ /**
52
+ * @ngdoc overview
53
+ * @name ngResource
54
+ * @description
55
+ *
56
+ * # ngResource
57
+ *
58
+ * The `ngResource` module provides interaction support with RESTful services
59
+ * via the $resource service.
60
+ *
61
+ * {@installModule resource}
62
+ *
63
+ * <div doc-module-components="ngResource"></div>
64
+ *
65
+ * See {@link ngResource.$resource `$resource`} for usage.
66
+ */
67
+
68
+ /**
69
+ * @ngdoc object
70
+ * @name ngResource.$resource
71
+ * @requires $http
72
+ *
73
+ * @description
74
+ * A factory which creates a resource object that lets you interact with
75
+ * [RESTful](http://en.wikipedia.org/wiki/Representational_State_Transfer) server-side data sources.
76
+ *
77
+ * The returned resource object has action methods which provide high-level behaviors without
78
+ * the need to interact with the low level {@link ng.$http $http} service.
79
+ *
80
+ * Requires the {@link ngResource `ngResource`} module to be installed.
81
+ *
82
+ * @param {string} url A parametrized URL template with parameters prefixed by `:` as in
83
+ * `/user/:username`. If you are using a URL with a port number (e.g.
84
+ * `http://example.com:8080/api`), it will be respected.
85
+ *
86
+ * If you are using a url with a suffix, just add the suffix, like this:
87
+ * `$resource('http://example.com/resource.json')` or `$resource('http://example.com/:id.json')`
88
+ * or even `$resource('http://example.com/resource/:resource_id.:format')`
89
+ * If the parameter before the suffix is empty, :resource_id in this case, then the `/.` will be
90
+ * collapsed down to a single `.`. If you need this sequence to appear and not collapse then you
91
+ * can escape it with `/\.`.
92
+ *
93
+ * @param {Object=} paramDefaults Default values for `url` parameters. These can be overridden in
94
+ * `actions` methods. If any of the parameter value is a function, it will be executed every time
95
+ * when a param value needs to be obtained for a request (unless the param was overridden).
96
+ *
97
+ * Each key value in the parameter object is first bound to url template if present and then any
98
+ * excess keys are appended to the url search query after the `?`.
99
+ *
100
+ * Given a template `/path/:verb` and parameter `{verb:'greet', salutation:'Hello'}` results in
101
+ * URL `/path/greet?salutation=Hello`.
102
+ *
103
+ * If the parameter value is prefixed with `@` then the value of that parameter is extracted from
104
+ * the data object (useful for non-GET operations).
105
+ *
106
+ * @param {Object.<Object>=} actions Hash with declaration of custom action that should extend the
107
+ * default set of resource actions. The declaration should be created in the format of {@link
108
+ * ng.$http#usage_parameters $http.config}:
109
+ *
110
+ * {action1: {method:?, params:?, isArray:?, headers:?, ...},
111
+ * action2: {method:?, params:?, isArray:?, headers:?, ...},
112
+ * ...}
113
+ *
114
+ * Where:
115
+ *
116
+ * - **`action`** – {string} – The name of action. This name becomes the name of the method on
117
+ * your resource object.
118
+ * - **`method`** – {string} – HTTP request method. Valid methods are: `GET`, `POST`, `PUT`,
119
+ * `DELETE`, and `JSONP`.
120
+ * - **`params`** – {Object=} – Optional set of pre-bound parameters for this action. If any of
121
+ * the parameter value is a function, it will be executed every time when a param value needs to
122
+ * be obtained for a request (unless the param was overridden).
123
+ * - **`url`** – {string} – action specific `url` override. The url templating is supported just
124
+ * like for the resource-level urls.
125
+ * - **`isArray`** – {boolean=} – If true then the returned object for this action is an array,
126
+ * see `returns` section.
127
+ * - **`transformRequest`** –
128
+ * `{function(data, headersGetter)|Array.<function(data, headersGetter)>}` –
129
+ * transform function or an array of such functions. The transform function takes the http
130
+ * request body and headers and returns its transformed (typically serialized) version.
131
+ * - **`transformResponse`** –
132
+ * `{function(data, headersGetter)|Array.<function(data, headersGetter)>}` –
133
+ * transform function or an array of such functions. The transform function takes the http
134
+ * response body and headers and returns its transformed (typically deserialized) version.
135
+ * - **`cache`** – `{boolean|Cache}` – If true, a default $http cache will be used to cache the
136
+ * GET request, otherwise if a cache instance built with
137
+ * {@link ng.$cacheFactory $cacheFactory}, this cache will be used for
138
+ * caching.
139
+ * - **`timeout`** – `{number|Promise}` – timeout in milliseconds, or {@link ng.$q promise} that
140
+ * should abort the request when resolved.
141
+ * - **`withCredentials`** - `{boolean}` - whether to set the `withCredentials` flag on the
142
+ * XHR object. See {@link https://developer.mozilla.org/en/http_access_control#section_5
143
+ * requests with credentials} for more information.
144
+ * - **`responseType`** - `{string}` - see {@link
145
+ * https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest#responseType requestType}.
146
+ * - **`interceptor`** - `{Object=}` - The interceptor object has two optional methods -
147
+ * `response` and `responseError`. Both `response` and `responseError` interceptors get called
148
+ * with `http response` object. See {@link ng.$http $http interceptors}.
149
+ *
150
+ * @returns {Object} A resource "class" object with methods for the default set of resource actions
151
+ * optionally extended with custom `actions`. The default set contains these actions:
152
+ *
153
+ * { 'get': {method:'GET'},
154
+ * 'save': {method:'POST'},
155
+ * 'query': {method:'GET', isArray:true},
156
+ * 'remove': {method:'DELETE'},
157
+ * 'delete': {method:'DELETE'} };
158
+ *
159
+ * Calling these methods invoke an {@link ng.$http} with the specified http method,
160
+ * destination and parameters. When the data is returned from the server then the object is an
161
+ * instance of the resource class. The actions `save`, `remove` and `delete` are available on it
162
+ * as methods with the `$` prefix. This allows you to easily perform CRUD operations (create,
163
+ * read, update, delete) on server-side data like this:
164
+ * <pre>
165
+ var User = $resource('/user/:userId', {userId:'@id'});
166
+ var user = User.get({userId:123}, function() {
167
+ user.abc = true;
168
+ user.$save();
169
+ });
170
+ </pre>
171
+ *
172
+ * It is important to realize that invoking a $resource object method immediately returns an
173
+ * empty reference (object or array depending on `isArray`). Once the data is returned from the
174
+ * server the existing reference is populated with the actual data. This is a useful trick since
175
+ * usually the resource is assigned to a model which is then rendered by the view. Having an empty
176
+ * object results in no rendering, once the data arrives from the server then the object is
177
+ * populated with the data and the view automatically re-renders itself showing the new data. This
178
+ * means that in most cases one never has to write a callback function for the action methods.
179
+ *
180
+ * The action methods on the class object or instance object can be invoked with the following
181
+ * parameters:
182
+ *
183
+ * - HTTP GET "class" actions: `Resource.action([parameters], [success], [error])`
184
+ * - non-GET "class" actions: `Resource.action([parameters], postData, [success], [error])`
185
+ * - non-GET instance actions: `instance.$action([parameters], [success], [error])`
186
+ *
187
+ * Success callback is called with (value, responseHeaders) arguments. Error callback is called
188
+ * with (httpResponse) argument.
189
+ *
190
+ * Class actions return empty instance (with additional properties below).
191
+ * Instance actions return promise of the action.
192
+ *
193
+ * The Resource instances and collection have these additional properties:
194
+ *
195
+ * - `$promise`: the {@link ng.$q promise} of the original server interaction that created this
196
+ * instance or collection.
197
+ *
198
+ * On success, the promise is resolved with the same resource instance or collection object,
199
+ * updated with data from server. This makes it easy to use in
200
+ * {@link ngRoute.$routeProvider resolve section of $routeProvider.when()} to defer view
201
+ * rendering until the resource(s) are loaded.
202
+ *
203
+ * On failure, the promise is resolved with the {@link ng.$http http response} object, without
204
+ * the `resource` property.
205
+ *
206
+ * - `$resolved`: `true` after first server interaction is completed (either with success or
207
+ * rejection), `false` before that. Knowing if the Resource has been resolved is useful in
208
+ * data-binding.
209
+ *
210
+ * @example
211
+ *
212
+ * # Credit card resource
213
+ *
214
+ * <pre>
215
+ // Define CreditCard class
216
+ var CreditCard = $resource('/user/:userId/card/:cardId',
217
+ {userId:123, cardId:'@id'}, {
218
+ charge: {method:'POST', params:{charge:true}}
219
+ });
220
+
221
+ // We can retrieve a collection from the server
222
+ var cards = CreditCard.query(function() {
223
+ // GET: /user/123/card
224
+ // server returns: [ {id:456, number:'1234', name:'Smith'} ];
225
+
226
+ var card = cards[0];
227
+ // each item is an instance of CreditCard
228
+ expect(card instanceof CreditCard).toEqual(true);
229
+ card.name = "J. Smith";
230
+ // non GET methods are mapped onto the instances
231
+ card.$save();
232
+ // POST: /user/123/card/456 {id:456, number:'1234', name:'J. Smith'}
233
+ // server returns: {id:456, number:'1234', name: 'J. Smith'};
234
+
235
+ // our custom method is mapped as well.
236
+ card.$charge({amount:9.99});
237
+ // POST: /user/123/card/456?amount=9.99&charge=true {id:456, number:'1234', name:'J. Smith'}
238
+ });
239
+
240
+ // we can create an instance as well
241
+ var newCard = new CreditCard({number:'0123'});
242
+ newCard.name = "Mike Smith";
243
+ newCard.$save();
244
+ // POST: /user/123/card {number:'0123', name:'Mike Smith'}
245
+ // server returns: {id:789, number:'0123', name: 'Mike Smith'};
246
+ expect(newCard.id).toEqual(789);
247
+ * </pre>
248
+ *
249
+ * The object returned from this function execution is a resource "class" which has "static" method
250
+ * for each action in the definition.
251
+ *
252
+ * Calling these methods invoke `$http` on the `url` template with the given `method`, `params` and
253
+ * `headers`.
254
+ * When the data is returned from the server then the object is an instance of the resource type and
255
+ * all of the non-GET methods are available with `$` prefix. This allows you to easily support CRUD
256
+ * operations (create, read, update, delete) on server-side data.
257
+
258
+ <pre>
259
+ var User = $resource('/user/:userId', {userId:'@id'});
260
+ var user = User.get({userId:123}, function() {
261
+ user.abc = true;
262
+ user.$save();
263
+ });
264
+ </pre>
265
+ *
266
+ * It's worth noting that the success callback for `get`, `query` and other methods gets passed
267
+ * in the response that came from the server as well as $http header getter function, so one
268
+ * could rewrite the above example and get access to http headers as:
269
+ *
270
+ <pre>
271
+ var User = $resource('/user/:userId', {userId:'@id'});
272
+ User.get({userId:123}, function(u, getResponseHeaders){
273
+ u.abc = true;
274
+ u.$save(function(u, putResponseHeaders) {
275
+ //u => saved user object
276
+ //putResponseHeaders => $http header getter
277
+ });
278
+ });
279
+ </pre>
280
+
281
+ * # Creating a custom 'PUT' request
282
+ * In this example we create a custom method on our resource to make a PUT request
283
+ * <pre>
284
+ * var app = angular.module('app', ['ngResource', 'ngRoute']);
285
+ *
286
+ * // Some APIs expect a PUT request in the format URL/object/ID
287
+ * // Here we are creating an 'update' method
288
+ * app.factory('Notes', ['$resource', function($resource) {
289
+ * return $resource('/notes/:id', null,
290
+ * {
291
+ * 'update': { method:'PUT' }
292
+ * });
293
+ * }]);
294
+ *
295
+ * // In our controller we get the ID from the URL using ngRoute and $routeParams
296
+ * // We pass in $routeParams and our Notes factory along with $scope
297
+ * app.controller('NotesCtrl', ['$scope', '$routeParams', 'Notes',
298
+ function($scope, $routeParams, Notes) {
299
+ * // First get a note object from the factory
300
+ * var note = Notes.get({ id:$routeParams.id });
301
+ * $id = note.id;
302
+ *
303
+ * // Now call update passing in the ID first then the object you are updating
304
+ * Notes.update({ id:$id }, note);
305
+ *
306
+ * // This will PUT /notes/ID with the note object in the request payload
307
+ * }]);
308
+ * </pre>
309
+ */
310
+ angular.module('ngResource', ['ng']).
311
+ factory('$resource', ['$http', '$q', function($http, $q) {
312
+
313
+ var DEFAULT_ACTIONS = {
314
+ 'get': {method:'GET'},
315
+ 'save': {method:'POST'},
316
+ 'query': {method:'GET', isArray:true},
317
+ 'remove': {method:'DELETE'},
318
+ 'delete': {method:'DELETE'}
319
+ };
320
+ var noop = angular.noop,
321
+ forEach = angular.forEach,
322
+ extend = angular.extend,
323
+ copy = angular.copy,
324
+ isFunction = angular.isFunction;
325
+
326
+ /**
327
+ * We need our custom method because encodeURIComponent is too aggressive and doesn't follow
328
+ * http://www.ietf.org/rfc/rfc3986.txt with regards to the character set (pchar) allowed in path
329
+ * segments:
330
+ * segment = *pchar
331
+ * pchar = unreserved / pct-encoded / sub-delims / ":" / "@"
332
+ * pct-encoded = "%" HEXDIG HEXDIG
333
+ * unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"
334
+ * sub-delims = "!" / "$" / "&" / "'" / "(" / ")"
335
+ * / "*" / "+" / "," / ";" / "="
336
+ */
337
+ function encodeUriSegment(val) {
338
+ return encodeUriQuery(val, true).
339
+ replace(/%26/gi, '&').
340
+ replace(/%3D/gi, '=').
341
+ replace(/%2B/gi, '+');
342
+ }
343
+
344
+
345
+ /**
346
+ * This method is intended for encoding *key* or *value* parts of query component. We need a
347
+ * custom method because encodeURIComponent is too aggressive and encodes stuff that doesn't
348
+ * have to be encoded per http://tools.ietf.org/html/rfc3986:
349
+ * query = *( pchar / "/" / "?" )
350
+ * pchar = unreserved / pct-encoded / sub-delims / ":" / "@"
351
+ * unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"
352
+ * pct-encoded = "%" HEXDIG HEXDIG
353
+ * sub-delims = "!" / "$" / "&" / "'" / "(" / ")"
354
+ * / "*" / "+" / "," / ";" / "="
355
+ */
356
+ function encodeUriQuery(val, pctEncodeSpaces) {
357
+ return encodeURIComponent(val).
358
+ replace(/%40/gi, '@').
359
+ replace(/%3A/gi, ':').
360
+ replace(/%24/g, '$').
361
+ replace(/%2C/gi, ',').
362
+ replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));
363
+ }
364
+
365
+ function Route(template, defaults) {
366
+ this.template = template;
367
+ this.defaults = defaults || {};
368
+ this.urlParams = {};
369
+ }
370
+
371
+ Route.prototype = {
372
+ setUrlParams: function(config, params, actionUrl) {
373
+ var self = this,
374
+ url = actionUrl || self.template,
375
+ val,
376
+ encodedVal;
377
+
378
+ var urlParams = self.urlParams = {};
379
+ forEach(url.split(/\W/), function(param){
380
+ if (param === 'hasOwnProperty') {
381
+ throw $resourceMinErr('badname', "hasOwnProperty is not a valid parameter name.");
382
+ }
383
+ if (!(new RegExp("^\\d+$").test(param)) && param &&
384
+ (new RegExp("(^|[^\\\\]):" + param + "(\\W|$)").test(url))) {
385
+ urlParams[param] = true;
386
+ }
387
+ });
388
+ url = url.replace(/\\:/g, ':');
389
+
390
+ params = params || {};
391
+ forEach(self.urlParams, function(_, urlParam){
392
+ val = params.hasOwnProperty(urlParam) ? params[urlParam] : self.defaults[urlParam];
393
+ if (angular.isDefined(val) && val !== null) {
394
+ encodedVal = encodeUriSegment(val);
395
+ url = url.replace(new RegExp(":" + urlParam + "(\\W|$)", "g"), function(match, p1) {
396
+ return encodedVal + p1;
397
+ });
398
+ } else {
399
+ url = url.replace(new RegExp("(\/?):" + urlParam + "(\\W|$)", "g"), function(match,
400
+ leadingSlashes, tail) {
401
+ if (tail.charAt(0) == '/') {
402
+ return tail;
403
+ } else {
404
+ return leadingSlashes + tail;
405
+ }
406
+ });
407
+ }
408
+ });
409
+
410
+ // strip trailing slashes and set the url
411
+ url = url.replace(/\/+$/, '') || '/';
412
+ // then replace collapse `/.` if found in the last URL path segment before the query
413
+ // E.g. `http://url.com/id./format?q=x` becomes `http://url.com/id.format?q=x`
414
+ url = url.replace(/\/\.(?=\w+($|\?))/, '.');
415
+ // replace escaped `/\.` with `/.`
416
+ config.url = url.replace(/\/\\\./, '/.');
417
+
418
+
419
+ // set params - delegate param encoding to $http
420
+ forEach(params, function(value, key){
421
+ if (!self.urlParams[key]) {
422
+ config.params = config.params || {};
423
+ config.params[key] = value;
424
+ }
425
+ });
426
+ }
427
+ };
428
+
429
+
430
+ function resourceFactory(url, paramDefaults, actions) {
431
+ var route = new Route(url);
432
+
433
+ actions = extend({}, DEFAULT_ACTIONS, actions);
434
+
435
+ function extractParams(data, actionParams){
436
+ var ids = {};
437
+ actionParams = extend({}, paramDefaults, actionParams);
438
+ forEach(actionParams, function(value, key){
439
+ if (isFunction(value)) { value = value(); }
440
+ ids[key] = value && value.charAt && value.charAt(0) == '@' ?
441
+ lookupDottedPath(data, value.substr(1)) : value;
442
+ });
443
+ return ids;
444
+ }
445
+
446
+ function defaultResponseInterceptor(response) {
447
+ return response.resource;
448
+ }
449
+
450
+ function Resource(value){
451
+ shallowClearAndCopy(value || {}, this);
452
+ }
453
+
454
+ forEach(actions, function(action, name) {
455
+ var hasBody = /^(POST|PUT|PATCH)$/i.test(action.method);
456
+
457
+ Resource[name] = function(a1, a2, a3, a4) {
458
+ var params = {}, data, success, error;
459
+
460
+ /* jshint -W086 */ /* (purposefully fall through case statements) */
461
+ switch(arguments.length) {
462
+ case 4:
463
+ error = a4;
464
+ success = a3;
465
+ //fallthrough
466
+ case 3:
467
+ case 2:
468
+ if (isFunction(a2)) {
469
+ if (isFunction(a1)) {
470
+ success = a1;
471
+ error = a2;
472
+ break;
473
+ }
474
+
475
+ success = a2;
476
+ error = a3;
477
+ //fallthrough
478
+ } else {
479
+ params = a1;
480
+ data = a2;
481
+ success = a3;
482
+ break;
483
+ }
484
+ case 1:
485
+ if (isFunction(a1)) success = a1;
486
+ else if (hasBody) data = a1;
487
+ else params = a1;
488
+ break;
489
+ case 0: break;
490
+ default:
491
+ throw $resourceMinErr('badargs',
492
+ "Expected up to 4 arguments [params, data, success, error], got {0} arguments",
493
+ arguments.length);
494
+ }
495
+ /* jshint +W086 */ /* (purposefully fall through case statements) */
496
+
497
+ var isInstanceCall = this instanceof Resource;
498
+ var value = isInstanceCall ? data : (action.isArray ? [] : new Resource(data));
499
+ var httpConfig = {};
500
+ var responseInterceptor = action.interceptor && action.interceptor.response ||
501
+ defaultResponseInterceptor;
502
+ var responseErrorInterceptor = action.interceptor && action.interceptor.responseError ||
503
+ undefined;
504
+
505
+ forEach(action, function(value, key) {
506
+ if (key != 'params' && key != 'isArray' && key != 'interceptor') {
507
+ httpConfig[key] = copy(value);
508
+ }
509
+ });
510
+
511
+ if (hasBody) httpConfig.data = data;
512
+ route.setUrlParams(httpConfig,
513
+ extend({}, extractParams(data, action.params || {}), params),
514
+ action.url);
515
+
516
+ var promise = $http(httpConfig).then(function(response) {
517
+ var data = response.data,
518
+ promise = value.$promise;
519
+
520
+ if (data) {
521
+ // Need to convert action.isArray to boolean in case it is undefined
522
+ // jshint -W018
523
+ if (angular.isArray(data) !== (!!action.isArray)) {
524
+ throw $resourceMinErr('badcfg', 'Error in resource configuration. Expected ' +
525
+ 'response to contain an {0} but got an {1}',
526
+ action.isArray?'array':'object', angular.isArray(data)?'array':'object');
527
+ }
528
+ // jshint +W018
529
+ if (action.isArray) {
530
+ value.length = 0;
531
+ forEach(data, function(item) {
532
+ value.push(new Resource(item));
533
+ });
534
+ } else {
535
+ shallowClearAndCopy(data, value);
536
+ value.$promise = promise;
537
+ }
538
+ }
539
+
540
+ value.$resolved = true;
541
+
542
+ response.resource = value;
543
+
544
+ return response;
545
+ }, function(response) {
546
+ value.$resolved = true;
547
+
548
+ (error||noop)(response);
549
+
550
+ return $q.reject(response);
551
+ });
552
+
553
+ promise = promise.then(
554
+ function(response) {
555
+ var value = responseInterceptor(response);
556
+ (success||noop)(value, response.headers);
557
+ return value;
558
+ },
559
+ responseErrorInterceptor);
560
+
561
+ if (!isInstanceCall) {
562
+ // we are creating instance / collection
563
+ // - set the initial promise
564
+ // - return the instance / collection
565
+ value.$promise = promise;
566
+ value.$resolved = false;
567
+
568
+ return value;
569
+ }
570
+
571
+ // instance call
572
+ return promise;
573
+ };
574
+
575
+
576
+ Resource.prototype['$' + name] = function(params, success, error) {
577
+ if (isFunction(params)) {
578
+ error = success; success = params; params = {};
579
+ }
580
+ var result = Resource[name].call(this, params, this, success, error);
581
+ return result.$promise || result;
582
+ };
583
+ });
584
+
585
+ Resource.bind = function(additionalParamDefaults){
586
+ return resourceFactory(url, extend({}, paramDefaults, additionalParamDefaults), actions);
587
+ };
588
+
589
+ return Resource;
590
+ }
591
+
592
+ return resourceFactory;
593
+ }]);
594
+
595
+
596
+ })(window, window.angular);
@@ -0,0 +1,13 @@
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&&k!==A;f++){var g=a[f];k=null!==k?k[g]:A}}else k=b;e[d]=k});return e}function e(a){return a.resource}function f(a){D(a||{},this)}var F=new c(n);l=x({},B,l);s(l,function(h,d){var c=/^(POST|PUT|PATCH)$/i.test(h.method);f[d]=function(b,d,k,w){var q={},n,l,y;switch(arguments.length){case 4:y=w,l=k;case 3:case 2:if(u(d)){if(u(b)){l=
8
+ b;y=d;break}l=d;y=k}else{q=b;n=d;l=k;break}case 1:u(b)?l=b:c?n=b:q=b;break;case 0:break;default:throw v("badargs",arguments.length);}var t=this instanceof f,m=t?n:h.isArray?[]:new f(n),z={},B=h.interceptor&&h.interceptor.response||e,C=h.interceptor&&h.interceptor.responseError||A;s(h,function(a,b){"params"!=b&&("isArray"!=b&&"interceptor"!=b)&&(z[b]=G(a))});c&&(z.data=n);F.setUrlParams(z,x({},r(n,h.params||{}),q),h.url);q=p(z).then(function(b){var d=b.data,k=m.$promise;if(d){if(a.isArray(d)!==!!h.isArray)throw v("badcfg",
9
+ h.isArray?"array":"object",a.isArray(d)?"array":"object");h.isArray?(m.length=0,s(d,function(b){m.push(new f(b))})):(D(d,m),m.$promise=k)}m.$resolved=!0;b.resource=m;return b},function(b){m.$resolved=!0;(y||E)(b);return g.reject(b)});q=q.then(function(b){var a=B(b);(l||E)(a,b.headers);return a},C);return t?q:(m.$promise=q,m.$resolved=!1,m)};f.prototype["$"+d]=function(b,a,k){u(b)&&(k=a,a=b,b={});b=f[d].call(this,b,this,a,k);return b.$promise||b}});f.bind=function(a){return t(n,x({},w,a),l)};return f}
10
+ var B={get:{method:"GET"},save:{method:"POST"},query:{method:"GET",isArray:!0},remove:{method:"DELETE"},"delete":{method:"DELETE"}},E=a.noop,s=a.forEach,x=a.extend,G=a.copy,u=a.isFunction;c.prototype={setUrlParams:function(c,g,l){var r=this,e=l||r.template,f,p,h=r.urlParams={};s(e.split(/\W/),function(a){if("hasOwnProperty"===a)throw v("badname");!/^\d+$/.test(a)&&(a&&RegExp("(^|[^\\\\]):"+a+"(\\W|$)").test(e))&&(h[a]=!0)});e=e.replace(/\\:/g,":");g=g||{};s(r.urlParams,function(d,c){f=g.hasOwnProperty(c)?
11
+ g[c]:r.defaults[c];a.isDefined(f)&&null!==f?(p=encodeURIComponent(f).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"%20").replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+"),e=e.replace(RegExp(":"+c+"(\\W|$)","g"),function(a,c){return p+c})):e=e.replace(RegExp("(/?):"+c+"(\\W|$)","g"),function(a,c,d){return"/"==d.charAt(0)?d:c+d})});e=e.replace(/\/+$/,"")||"/";e=e.replace(/\/\.(?=\w+($|\?))/,".");c.url=e.replace(/\/\\\./,"/.");s(g,function(a,
12
+ e){r.urlParams[e]||(c.params=c.params||{},c.params[e]=a)})}};return t}])})(window,window.angular);
13
+ //# sourceMappingURL=angular-resource.min.js.map
@@ -0,0 +1,8 @@
1
+ {
2
+ "version":3,
3
+ "file":"angular-resource.min.js",
4
+ "lineCount":12,
5
+ "mappings":"A;;;;;aAKC,SAAQ,CAACA,CAAD,CAASC,CAAT,CAAkBC,CAAlB,CAA6B,CA6BtCC,QAASA,EAAmB,CAACC,CAAD,CAAMC,CAAN,CAAW,CACrCA,CAAA,CAAMA,CAAN,EAAa,EAEbJ,EAAAK,QAAA,CAAgBD,CAAhB,CAAqB,QAAQ,CAACE,CAAD,CAAQC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,CAAqBD,CAFvB,CADkC,CAApC,CAhDgD,CADlC,CA6NlB,OAAOe,EAzRgD,CAApC,CADvB,CAhTsC,CAArC,CAAA,CA8kBEtB,MA9kBF,CA8kBUA,MAAAC,QA9kBV;",
6
+ "sources":["angular-resource.js"],
7
+ "names":["window","angular","undefined","shallowClearAndCopy","src","dst","forEach","value","key","hasOwnProperty","charAt","$resourceMinErr","$$minErr","MEMBER_NAME_REGEX","module","factory","$http","$q","Route","template","defaults","urlParams","resourceFactory","url","paramDefaults","actions","extractParams","data","actionParams","ids","extend","isFunction","path","test","keys","split","i","ii","length","obj","defaultResponseInterceptor","response","resource","Resource","route","DEFAULT_ACTIONS","action","name","hasBody","method","a1","a2","a3","a4","params","success","error","arguments","isInstanceCall","isArray","httpConfig","responseInterceptor","interceptor","responseErrorInterceptor","responseError","copy","setUrlParams","promise","then","$promise","item","push","$resolved","noop","reject","headers","prototype","result","call","bind","Resource.bind","additionalParamDefaults","config","actionUrl","self","val","encodedVal","param","RegExp","replace","_","urlParam","isDefined","encodeURIComponent","match","p1","leadingSlashes","tail"]
8
+ }