bpmn-js-rails 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. checksums.yaml +7 -0
  2. data/Rakefile +6 -0
  3. data/app/assets/javascripts/bpmn-js/bpmn-modeler.production.min.js +199 -0
  4. data/app/assets/javascripts/bpmn-js/bpmn-viewer.production.min.js +22 -0
  5. data/app/assets/javascripts/dmn-js/dmn-modeler.production.min.js +194 -0
  6. data/app/assets/javascripts/dmn-js/dmn-viewer.production.min.js +16 -0
  7. data/app/assets/javascripts/form-js/form-editor.umd.js +78936 -0
  8. data/app/assets/javascripts/form-js/form-viewer.umd.js +54147 -0
  9. data/app/assets/stylesheets/bpmn-js/bpmn-font/css/bpmn-codes.css +108 -0
  10. data/app/assets/stylesheets/bpmn-js/bpmn-font/css/bpmn-embedded.css +166 -0
  11. data/app/assets/stylesheets/bpmn-js/bpmn-font/css/bpmn.css +164 -0
  12. data/app/assets/stylesheets/bpmn-js/bpmn-font/font/bpmn.eot +0 -0
  13. data/app/assets/stylesheets/bpmn-js/bpmn-font/font/bpmn.svg +224 -0
  14. data/app/assets/stylesheets/bpmn-js/bpmn-font/font/bpmn.ttf +0 -0
  15. data/app/assets/stylesheets/bpmn-js/bpmn-font/font/bpmn.woff +0 -0
  16. data/app/assets/stylesheets/bpmn-js/bpmn-font/font/bpmn.woff2 +0 -0
  17. data/app/assets/stylesheets/bpmn-js/bpmn-js.css +145 -0
  18. data/app/assets/stylesheets/bpmn-js/diagram-js.css +1011 -0
  19. data/app/assets/stylesheets/dmn-js/diagram-js.css +1011 -0
  20. data/app/assets/stylesheets/dmn-js/dmn-font/css/dmn-codes.css +41 -0
  21. data/app/assets/stylesheets/dmn-js/dmn-font/css/dmn-embedded.css +98 -0
  22. data/app/assets/stylesheets/dmn-js/dmn-font/css/dmn.css +97 -0
  23. data/app/assets/stylesheets/dmn-js/dmn-font/font/dmn.eot +0 -0
  24. data/app/assets/stylesheets/dmn-js/dmn-font/font/dmn.svg +90 -0
  25. data/app/assets/stylesheets/dmn-js/dmn-font/font/dmn.ttf +0 -0
  26. data/app/assets/stylesheets/dmn-js/dmn-font/font/dmn.woff +0 -0
  27. data/app/assets/stylesheets/dmn-js/dmn-font/font/dmn.woff2 +0 -0
  28. data/app/assets/stylesheets/dmn-js/dmn-js-boxed-expression-controls.css +130 -0
  29. data/app/assets/stylesheets/dmn-js/dmn-js-boxed-expression.css +186 -0
  30. data/app/assets/stylesheets/dmn-js/dmn-js-decision-table-controls.css +301 -0
  31. data/app/assets/stylesheets/dmn-js/dmn-js-decision-table.css +580 -0
  32. data/app/assets/stylesheets/dmn-js/dmn-js-drd.css +95 -0
  33. data/app/assets/stylesheets/dmn-js/dmn-js-literal-expression.css +165 -0
  34. data/app/assets/stylesheets/dmn-js/dmn-js-shared.css +221 -0
  35. data/app/assets/stylesheets/form-js/form-js-editor.css +2342 -0
  36. data/app/assets/stylesheets/form-js/form-js.css +3694 -0
  37. data/app/helpers/bpmn_js_rails/view_helper.rb +291 -0
  38. data/app/javascript/bpmn_js_rails/controllers/bpmn_js_modeler_controller.js +85 -0
  39. data/app/javascript/bpmn_js_rails/controllers/bpmn_js_viewer_controller.js +46 -0
  40. data/app/javascript/bpmn_js_rails/controllers/dmn_js_modeler_controller.js +102 -0
  41. data/app/javascript/bpmn_js_rails/controllers/dmn_js_viewer_controller.js +45 -0
  42. data/app/javascript/bpmn_js_rails/controllers/form_js_editor_controller.js +80 -0
  43. data/app/javascript/bpmn_js_rails/controllers/form_js_viewer_controller.js +52 -0
  44. data/app/javascript/bpmn_js_rails/index.js +34 -0
  45. data/app/models/bpmn_js_rails/decision.rb +60 -0
  46. data/app/models/bpmn_js_rails/diagram.rb +51 -0
  47. data/app/models/bpmn_js_rails/form.rb +32 -0
  48. data/config/importmap.rb +7 -0
  49. data/config/routes.rb +2 -0
  50. data/db/migrate/20260319000001_create_bpmn_js_rails_diagrams.rb +15 -0
  51. data/db/migrate/20260319000002_create_bpmn_js_rails_forms.rb +15 -0
  52. data/db/migrate/20260319000003_create_bpmn_js_rails_decisions.rb +15 -0
  53. data/lib/bpmn-js-rails.rb +1 -0
  54. data/lib/bpmn_js_rails/engine.rb +30 -0
  55. data/lib/bpmn_js_rails/version.rb +3 -0
  56. data/lib/bpmn_js_rails/version.rb.erb +3 -0
  57. data/lib/bpmn_js_rails.rb +5 -0
  58. data/lib/generators/bpmn_js_rails/install/install_generator.rb +58 -0
  59. data/lib/generators/bpmn_js_rails/install/templates/create_bpmn_js_rails_decisions.rb.erb +15 -0
  60. data/lib/generators/bpmn_js_rails/install/templates/create_bpmn_js_rails_diagrams.rb.erb +15 -0
  61. data/lib/generators/bpmn_js_rails/install/templates/create_bpmn_js_rails_forms.rb.erb +15 -0
  62. data/lib/tasks/form_js_rails_tasks.rake +4 -0
  63. metadata +116 -0
@@ -0,0 +1,164 @@
1
+ @charset "utf-8";
2
+ @font-face {
3
+ font-family: 'bpmn';
4
+ src: url('../font/bpmn.eot?21877404');
5
+ src: url('../font/bpmn.eot?21877404#iefix') format('embedded-opentype'),
6
+ url('../font/bpmn.woff2?21877404') format('woff2'),
7
+ url('../font/bpmn.woff?21877404') format('woff'),
8
+ url('../font/bpmn.ttf?21877404') format('truetype'),
9
+ url('../font/bpmn.svg?21877404#bpmn') format('svg');
10
+ font-weight: normal;
11
+ font-style: normal;
12
+ }
13
+ /* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */
14
+ /* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */
15
+ /*
16
+ @media screen and (-webkit-min-device-pixel-ratio:0) {
17
+ @font-face {
18
+ font-family: 'bpmn';
19
+ src: url('../font/bpmn.svg?21877404#bpmn') format('svg');
20
+ }
21
+ }
22
+ */
23
+ [class^="bpmn-icon-"]:before, [class*=" bpmn-icon-"]:before {
24
+ font-family: "bpmn";
25
+ font-style: normal;
26
+ font-weight: normal;
27
+ speak: never;
28
+
29
+ display: inline-block;
30
+ text-decoration: inherit;
31
+ width: 1em;
32
+ /* margin-right: .2em; */
33
+ text-align: center;
34
+ /* opacity: .8; */
35
+
36
+ /* For safety - reset parent styles, that can break glyph codes*/
37
+ font-variant: normal;
38
+ text-transform: none;
39
+
40
+ /* fix buttons height, for twitter bootstrap */
41
+ line-height: 1em;
42
+
43
+ /* Animation center compensation - margins should be symmetric */
44
+ /* remove if not needed */
45
+ /* margin-left: .2em; */
46
+
47
+ /* you can be more comfortable with increased icons size */
48
+ /* font-size: 120%; */
49
+
50
+ /* Font smoothing. That was taken from TWBS */
51
+ -webkit-font-smoothing: antialiased;
52
+ -moz-osx-font-smoothing: grayscale;
53
+
54
+ /* Uncomment for 3D effect */
55
+ /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
56
+ }
57
+
58
+ .bpmn-icon-trash:before { content: '\e801'; } /* '' */
59
+ .bpmn-icon-gateway-parallel:before { content: '\e804'; } /* '' */
60
+ .bpmn-icon-intermediate-event-catch-cancel:before { content: '\e805'; } /* '' */
61
+ .bpmn-icon-intermediate-event-catch-non-interrupting-message:before { content: '\e806'; } /* '' */
62
+ .bpmn-icon-start-event-compensation:before { content: '\e807'; } /* '' */
63
+ .bpmn-icon-start-event-non-interrupting-parallel-multiple:before { content: '\e808'; } /* '' */
64
+ .bpmn-icon-loop-marker:before { content: '\e809'; } /* '' */
65
+ .bpmn-icon-parallel-mi-marker:before { content: '\e80a'; } /* '' */
66
+ .bpmn-icon-start-event-non-interrupting-signal:before { content: '\e80b'; } /* '' */
67
+ .bpmn-icon-intermediate-event-catch-non-interrupting-timer:before { content: '\e80c'; } /* '' */
68
+ .bpmn-icon-intermediate-event-catch-parallel-multiple:before { content: '\e80d'; } /* '' */
69
+ .bpmn-icon-intermediate-event-catch-compensation:before { content: '\e80e'; } /* '' */
70
+ .bpmn-icon-gateway-xor:before { content: '\e80f'; } /* '' */
71
+ .bpmn-icon-end-event-cancel:before { content: '\e811'; } /* '' */
72
+ .bpmn-icon-intermediate-event-catch-condition:before { content: '\e812'; } /* '' */
73
+ .bpmn-icon-intermediate-event-catch-non-interrupting-parallel-multiple:before { content: '\e813'; } /* '' */
74
+ .bpmn-icon-start-event-condition:before { content: '\e814'; } /* '' */
75
+ .bpmn-icon-start-event-non-interrupting-timer:before { content: '\e815'; } /* '' */
76
+ .bpmn-icon-sequential-mi-marker:before { content: '\e816'; } /* '' */
77
+ .bpmn-icon-user-task:before { content: '\e817'; } /* '' */
78
+ .bpmn-icon-business-rule:before { content: '\e818'; } /* '' */
79
+ .bpmn-icon-sub-process-marker:before { content: '\e819'; } /* '' */
80
+ .bpmn-icon-start-event-parallel-multiple:before { content: '\e81a'; } /* '' */
81
+ .bpmn-icon-start-event-error:before { content: '\e81b'; } /* '' */
82
+ .bpmn-icon-intermediate-event-catch-signal:before { content: '\e81c'; } /* '' */
83
+ .bpmn-icon-intermediate-event-catch-error:before { content: '\e81d'; } /* '' */
84
+ .bpmn-icon-end-event-compensation:before { content: '\e81e'; } /* '' */
85
+ .bpmn-icon-subprocess-collapsed:before { content: '\e81f'; } /* '' */
86
+ .bpmn-icon-subprocess-expanded:before { content: '\e820'; } /* '' */
87
+ .bpmn-icon-task:before { content: '\e821'; } /* '' */
88
+ .bpmn-icon-end-event-error:before { content: '\e822'; } /* '' */
89
+ .bpmn-icon-intermediate-event-catch-escalation:before { content: '\e823'; } /* '' */
90
+ .bpmn-icon-intermediate-event-catch-timer:before { content: '\e824'; } /* '' */
91
+ .bpmn-icon-start-event-escalation:before { content: '\e825'; } /* '' */
92
+ .bpmn-icon-start-event-signal:before { content: '\e826'; } /* '' */
93
+ .bpmn-icon-business-rule-task:before { content: '\e827'; } /* '' */
94
+ .bpmn-icon-manual:before { content: '\e828'; } /* '' */
95
+ .bpmn-icon-receive:before { content: '\e829'; } /* '' */
96
+ .bpmn-icon-call-activity:before { content: '\e82a'; } /* '' */
97
+ .bpmn-icon-start-event-timer:before { content: '\e82b'; } /* '' */
98
+ .bpmn-icon-start-event-message:before { content: '\e82c'; } /* '' */
99
+ .bpmn-icon-intermediate-event-none:before { content: '\e82d'; } /* '' */
100
+ .bpmn-icon-intermediate-event-catch-link:before { content: '\e82e'; } /* '' */
101
+ .bpmn-icon-end-event-escalation:before { content: '\e82f'; } /* '' */
102
+ .bpmn-icon-bpmn-io:before { content: '\e831'; } /* '' */
103
+ .bpmn-icon-gateway-complex:before { content: '\e832'; } /* '' */
104
+ .bpmn-icon-gateway-eventbased:before { content: '\e833'; } /* '' */
105
+ .bpmn-icon-gateway-none:before { content: '\e834'; } /* '' */
106
+ .bpmn-icon-gateway-or:before { content: '\e835'; } /* '' */
107
+ .bpmn-icon-end-event-terminate:before { content: '\e836'; } /* '' */
108
+ .bpmn-icon-end-event-signal:before { content: '\e837'; } /* '' */
109
+ .bpmn-icon-end-event-none:before { content: '\e838'; } /* '' */
110
+ .bpmn-icon-end-event-multiple:before { content: '\e839'; } /* '' */
111
+ .bpmn-icon-end-event-message:before { content: '\e83a'; } /* '' */
112
+ .bpmn-icon-end-event-link:before { content: '\e83b'; } /* '' */
113
+ .bpmn-icon-intermediate-event-catch-message:before { content: '\e83c'; } /* '' */
114
+ .bpmn-icon-intermediate-event-throw-compensation:before { content: '\e83d'; } /* '' */
115
+ .bpmn-icon-start-event-multiple:before { content: '\e83e'; } /* '' */
116
+ .bpmn-icon-script:before { content: '\e83f'; } /* '' */
117
+ .bpmn-icon-manual-task:before { content: '\e840'; } /* '' */
118
+ .bpmn-icon-send:before { content: '\e841'; } /* '' */
119
+ .bpmn-icon-service:before { content: '\e842'; } /* '' */
120
+ .bpmn-icon-receive-task:before { content: '\e843'; } /* '' */
121
+ .bpmn-icon-user:before { content: '\e844'; } /* '' */
122
+ .bpmn-icon-start-event-none:before { content: '\e845'; } /* '' */
123
+ .bpmn-icon-intermediate-event-throw-escalation:before { content: '\e846'; } /* '' */
124
+ .bpmn-icon-intermediate-event-catch-multiple:before { content: '\e847'; } /* '' */
125
+ .bpmn-icon-intermediate-event-catch-non-interrupting-escalation:before { content: '\e848'; } /* '' */
126
+ .bpmn-icon-intermediate-event-throw-link:before { content: '\e849'; } /* '' */
127
+ .bpmn-icon-start-event-non-interrupting-condition:before { content: '\e84a'; } /* '' */
128
+ .bpmn-icon-data-object:before { content: '\e84b'; } /* '' */
129
+ .bpmn-icon-script-task:before { content: '\e84c'; } /* '' */
130
+ .bpmn-icon-send-task:before { content: '\e84d'; } /* '' */
131
+ .bpmn-icon-data-store:before { content: '\e84e'; } /* '' */
132
+ .bpmn-icon-start-event-non-interrupting-escalation:before { content: '\e84f'; } /* '' */
133
+ .bpmn-icon-intermediate-event-throw-message:before { content: '\e850'; } /* '' */
134
+ .bpmn-icon-intermediate-event-catch-non-interrupting-multiple:before { content: '\e851'; } /* '' */
135
+ .bpmn-icon-intermediate-event-catch-non-interrupting-signal:before { content: '\e852'; } /* '' */
136
+ .bpmn-icon-intermediate-event-throw-multiple:before { content: '\e853'; } /* '' */
137
+ .bpmn-icon-start-event-non-interrupting-message:before { content: '\e854'; } /* '' */
138
+ .bpmn-icon-ad-hoc-marker:before { content: '\e855'; } /* '' */
139
+ .bpmn-icon-service-task:before { content: '\e856'; } /* '' */
140
+ .bpmn-icon-task-none:before { content: '\e857'; } /* '' */
141
+ .bpmn-icon-compensation-marker:before { content: '\e858'; } /* '' */
142
+ .bpmn-icon-start-event-non-interrupting-multiple:before { content: '\e859'; } /* '' */
143
+ .bpmn-icon-intermediate-event-throw-signal:before { content: '\e85a'; } /* '' */
144
+ .bpmn-icon-intermediate-event-catch-non-interrupting-condition:before { content: '\e85b'; } /* '' */
145
+ .bpmn-icon-participant:before { content: '\e85c'; } /* '' */
146
+ .bpmn-icon-event-subprocess-expanded:before { content: '\e85d'; } /* '' */
147
+ .bpmn-icon-lane-insert-below:before { content: '\e85e'; } /* '' */
148
+ .bpmn-icon-space-tool:before { content: '\e85f'; } /* '' */
149
+ .bpmn-icon-connection-multi:before { content: '\e860'; } /* '' */
150
+ .bpmn-icon-lane:before { content: '\e861'; } /* '' */
151
+ .bpmn-icon-lasso-tool:before { content: '\e862'; } /* '' */
152
+ .bpmn-icon-lane-insert-above:before { content: '\e863'; } /* '' */
153
+ .bpmn-icon-lane-divide-three:before { content: '\e864'; } /* '' */
154
+ .bpmn-icon-lane-divide-two:before { content: '\e865'; } /* '' */
155
+ .bpmn-icon-data-input:before { content: '\e866'; } /* '' */
156
+ .bpmn-icon-data-output:before { content: '\e867'; } /* '' */
157
+ .bpmn-icon-hand-tool:before { content: '\e868'; } /* '' */
158
+ .bpmn-icon-group:before { content: '\e869'; } /* '' */
159
+ .bpmn-icon-text-annotation:before { content: '\e86b'; } /* '' */
160
+ .bpmn-icon-transaction:before { content: '\e8c4'; } /* '' */
161
+ .bpmn-icon-screw-wrench:before { content: '\e8db'; } /* '' */
162
+ .bpmn-icon-connection:before { content: '\e8dc'; } /* '' */
163
+ .bpmn-icon-conditional-flow:before { content: '\e8e0'; } /* '' */
164
+ .bpmn-icon-default-flow:before { content: '\e8e1'; } /* '' */