process_engine 0.0.1
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.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/Rakefile +37 -0
- data/app/assets/bower_components/process_engine/Snap.svg/CONTRIBUTING +3 -0
- data/app/assets/bower_components/process_engine/Snap.svg/Gruntfile.js +59 -0
- data/app/assets/bower_components/process_engine/Snap.svg/LICENSE +202 -0
- data/app/assets/bower_components/process_engine/Snap.svg/NOTICE +190 -0
- data/app/assets/bower_components/process_engine/Snap.svg/README.md +62 -0
- data/app/assets/bower_components/process_engine/Snap.svg/bower.json +25 -0
- data/app/assets/bower_components/process_engine/Snap.svg/component.json +13 -0
- data/app/assets/bower_components/process_engine/Snap.svg/dist/snap.svg-min.js +20 -0
- data/app/assets/bower_components/process_engine/Snap.svg/dist/snap.svg.js +7653 -0
- data/app/assets/bower_components/process_engine/Snap.svg/doc/css/dr.css +144 -0
- data/app/assets/bower_components/process_engine/Snap.svg/doc/css/main.css +508 -0
- data/app/assets/bower_components/process_engine/Snap.svg/doc/css/prism.css +168 -0
- data/app/assets/bower_components/process_engine/Snap.svg/doc/css/topcoat-desktop-light.css +3700 -0
- data/app/assets/bower_components/process_engine/Snap.svg/doc/fonts/sourcecodepro-regular-webfont.eot +0 -0
- data/app/assets/bower_components/process_engine/Snap.svg/doc/fonts/sourcecodepro-regular-webfont.svg +242 -0
- data/app/assets/bower_components/process_engine/Snap.svg/doc/fonts/sourcecodepro-regular-webfont.ttf +0 -0
- data/app/assets/bower_components/process_engine/Snap.svg/doc/fonts/sourcecodepro-regular-webfont.woff +0 -0
- data/app/assets/bower_components/process_engine/Snap.svg/doc/fonts/sourcesanspro-light-webfont.eot +0 -0
- data/app/assets/bower_components/process_engine/Snap.svg/doc/fonts/sourcesanspro-light-webfont.svg +243 -0
- data/app/assets/bower_components/process_engine/Snap.svg/doc/fonts/sourcesanspro-light-webfont.ttf +0 -0
- data/app/assets/bower_components/process_engine/Snap.svg/doc/fonts/sourcesanspro-light-webfont.woff +0 -0
- data/app/assets/bower_components/process_engine/Snap.svg/doc/fonts/sourcesanspro-regular-webfont.eot +0 -0
- data/app/assets/bower_components/process_engine/Snap.svg/doc/fonts/sourcesanspro-regular-webfont.svg +243 -0
- data/app/assets/bower_components/process_engine/Snap.svg/doc/fonts/sourcesanspro-regular-webfont.ttf +0 -0
- data/app/assets/bower_components/process_engine/Snap.svg/doc/fonts/sourcesanspro-regular-webfont.woff +0 -0
- data/app/assets/bower_components/process_engine/Snap.svg/doc/fonts/sourcesanspro-semibold-webfont.eot +0 -0
- data/app/assets/bower_components/process_engine/Snap.svg/doc/fonts/sourcesanspro-semibold-webfont.svg +243 -0
- data/app/assets/bower_components/process_engine/Snap.svg/doc/fonts/sourcesanspro-semibold-webfont.ttf +0 -0
- data/app/assets/bower_components/process_engine/Snap.svg/doc/fonts/sourcesanspro-semibold-webfont.woff +0 -0
- data/app/assets/bower_components/process_engine/Snap.svg/doc/fonts/stylesheet.css +57 -0
- data/app/assets/bower_components/process_engine/Snap.svg/doc/img/search.svg +11 -0
- data/app/assets/bower_components/process_engine/Snap.svg/doc/img/search_dark.svg +16 -0
- data/app/assets/bower_components/process_engine/Snap.svg/doc/js/prism.js +9 -0
- data/app/assets/bower_components/process_engine/Snap.svg/doc/reference.html +13633 -0
- data/app/assets/bower_components/process_engine/Snap.svg/dr.json +33 -0
- data/app/assets/bower_components/process_engine/Snap.svg/history.md +31 -0
- data/app/assets/bower_components/process_engine/Snap.svg/package.json +22 -0
- data/app/assets/bower_components/process_engine/Snap.svg/template.dot +157 -0
- data/app/assets/bower_components/process_engine/Snap.svg/test.html +75 -0
- data/app/assets/bower_components/process_engine/bpmn-js/LICENSE +22 -0
- data/app/assets/bower_components/process_engine/bpmn-js/README.md +46 -0
- data/app/assets/bower_components/process_engine/bpmn-js/bower.json +28 -0
- data/app/assets/bower_components/process_engine/bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css +40 -0
- data/app/assets/bower_components/process_engine/bpmn-js/dist/assets/bpmn-font/font/bpmn.eot +0 -0
- data/app/assets/bower_components/process_engine/bpmn-js/dist/assets/bpmn-font/font/bpmn.svg +21 -0
- data/app/assets/bower_components/process_engine/bpmn-js/dist/assets/bpmn-font/font/bpmn.ttf +0 -0
- data/app/assets/bower_components/process_engine/bpmn-js/dist/assets/bpmn-font/font/bpmn.woff +0 -0
- data/app/assets/bower_components/process_engine/bpmn-js/dist/assets/diagram-js.css +355 -0
- data/app/assets/bower_components/process_engine/bpmn-js/dist/bpmn-modeler.js +21552 -0
- data/app/assets/bower_components/process_engine/bpmn-js/dist/bpmn-modeler.js.map +1 -0
- data/app/assets/bower_components/process_engine/bpmn-js/dist/bpmn-modeler.min.js +8 -0
- data/app/assets/bower_components/process_engine/bpmn-js/dist/bpmn-navigated-viewer.js +13542 -0
- data/app/assets/bower_components/process_engine/bpmn-js/dist/bpmn-navigated-viewer.js.map +1 -0
- data/app/assets/bower_components/process_engine/bpmn-js/dist/bpmn-navigated-viewer.min.js +5 -0
- data/app/assets/bower_components/process_engine/bpmn-js/dist/bpmn-viewer.js +13294 -0
- data/app/assets/bower_components/process_engine/bpmn-js/dist/bpmn-viewer.js.map +1 -0
- data/app/assets/bower_components/process_engine/bpmn-js/dist/bpmn-viewer.min.js +5 -0
- data/app/assets/bower_components/process_engine/hammerjs/CHANGELOG.md +30 -0
- data/app/assets/bower_components/process_engine/hammerjs/CONTRIBUTING.md +41 -0
- data/app/assets/bower_components/process_engine/hammerjs/Gruntfile.coffee +123 -0
- data/app/assets/bower_components/process_engine/hammerjs/LICENSE.md +21 -0
- data/app/assets/bower_components/process_engine/hammerjs/README.md +6 -0
- data/app/assets/bower_components/process_engine/hammerjs/bower.json +9 -0
- data/app/assets/bower_components/process_engine/hammerjs/component.json +8 -0
- data/app/assets/bower_components/process_engine/hammerjs/hammer.js +2463 -0
- data/app/assets/bower_components/process_engine/hammerjs/hammer.min.js +7 -0
- data/app/assets/bower_components/process_engine/hammerjs/hammer.min.map +1 -0
- data/app/assets/bower_components/process_engine/hammerjs/package.json +50 -0
- data/app/assets/bower_components/process_engine/jquery/MIT-LICENSE.txt +21 -0
- data/app/assets/bower_components/process_engine/jquery/bower.json +27 -0
- data/app/assets/bower_components/process_engine/jquery/dist/jquery.js +9205 -0
- data/app/assets/bower_components/process_engine/jquery/dist/jquery.min.js +5 -0
- data/app/assets/bower_components/process_engine/jquery/dist/jquery.min.map +1 -0
- data/app/assets/bower_components/process_engine/jquery/src/ajax/jsonp.js +89 -0
- data/app/assets/bower_components/process_engine/jquery/src/ajax/load.js +75 -0
- data/app/assets/bower_components/process_engine/jquery/src/ajax/parseJSON.js +13 -0
- data/app/assets/bower_components/process_engine/jquery/src/ajax/parseXML.js +28 -0
- data/app/assets/bower_components/process_engine/jquery/src/ajax/script.js +64 -0
- data/app/assets/bower_components/process_engine/jquery/src/ajax/var/nonce.js +5 -0
- data/app/assets/bower_components/process_engine/jquery/src/ajax/var/rquery.js +3 -0
- data/app/assets/bower_components/process_engine/jquery/src/ajax/xhr.js +136 -0
- data/app/assets/bower_components/process_engine/jquery/src/ajax.js +786 -0
- data/app/assets/bower_components/process_engine/jquery/src/attributes/attr.js +141 -0
- data/app/assets/bower_components/process_engine/jquery/src/attributes/classes.js +158 -0
- data/app/assets/bower_components/process_engine/jquery/src/attributes/prop.js +94 -0
- data/app/assets/bower_components/process_engine/jquery/src/attributes/support.js +35 -0
- data/app/assets/bower_components/process_engine/jquery/src/attributes/val.js +161 -0
- data/app/assets/bower_components/process_engine/jquery/src/attributes.js +11 -0
- data/app/assets/bower_components/process_engine/jquery/src/callbacks.js +205 -0
- data/app/assets/bower_components/process_engine/jquery/src/core/access.js +60 -0
- data/app/assets/bower_components/process_engine/jquery/src/core/init.js +123 -0
- data/app/assets/bower_components/process_engine/jquery/src/core/parseHTML.js +39 -0
- data/app/assets/bower_components/process_engine/jquery/src/core/ready.js +97 -0
- data/app/assets/bower_components/process_engine/jquery/src/core/var/rsingleTag.js +4 -0
- data/app/assets/bower_components/process_engine/jquery/src/core.js +497 -0
- data/app/assets/bower_components/process_engine/jquery/src/css/addGetHookIf.js +22 -0
- data/app/assets/bower_components/process_engine/jquery/src/css/curCSS.js +57 -0
- data/app/assets/bower_components/process_engine/jquery/src/css/defaultDisplay.js +70 -0
- data/app/assets/bower_components/process_engine/jquery/src/css/hiddenVisibleSelectors.js +15 -0
- data/app/assets/bower_components/process_engine/jquery/src/css/support.js +96 -0
- data/app/assets/bower_components/process_engine/jquery/src/css/swap.js +28 -0
- data/app/assets/bower_components/process_engine/jquery/src/css/var/cssExpand.js +3 -0
- data/app/assets/bower_components/process_engine/jquery/src/css/var/getStyles.js +12 -0
- data/app/assets/bower_components/process_engine/jquery/src/css/var/isHidden.js +13 -0
- data/app/assets/bower_components/process_engine/jquery/src/css/var/rmargin.js +3 -0
- data/app/assets/bower_components/process_engine/jquery/src/css/var/rnumnonpx.js +5 -0
- data/app/assets/bower_components/process_engine/jquery/src/css.js +450 -0
- data/app/assets/bower_components/process_engine/jquery/src/data/Data.js +181 -0
- data/app/assets/bower_components/process_engine/jquery/src/data/accepts.js +20 -0
- data/app/assets/bower_components/process_engine/jquery/src/data/var/data_priv.js +5 -0
- data/app/assets/bower_components/process_engine/jquery/src/data/var/data_user.js +5 -0
- data/app/assets/bower_components/process_engine/jquery/src/data.js +178 -0
- data/app/assets/bower_components/process_engine/jquery/src/deferred.js +149 -0
- data/app/assets/bower_components/process_engine/jquery/src/deprecated.js +13 -0
- data/app/assets/bower_components/process_engine/jquery/src/dimensions.js +50 -0
- data/app/assets/bower_components/process_engine/jquery/src/effects/Tween.js +114 -0
- data/app/assets/bower_components/process_engine/jquery/src/effects/animatedSelector.js +13 -0
- data/app/assets/bower_components/process_engine/jquery/src/effects.js +648 -0
- data/app/assets/bower_components/process_engine/jquery/src/event/ajax.js +13 -0
- data/app/assets/bower_components/process_engine/jquery/src/event/alias.js +39 -0
- data/app/assets/bower_components/process_engine/jquery/src/event/support.js +9 -0
- data/app/assets/bower_components/process_engine/jquery/src/event.js +868 -0
- data/app/assets/bower_components/process_engine/jquery/src/exports/amd.js +24 -0
- data/app/assets/bower_components/process_engine/jquery/src/exports/global.js +32 -0
- data/app/assets/bower_components/process_engine/jquery/src/intro.js +44 -0
- data/app/assets/bower_components/process_engine/jquery/src/jquery.js +37 -0
- data/app/assets/bower_components/process_engine/jquery/src/manipulation/_evalUrl.js +18 -0
- data/app/assets/bower_components/process_engine/jquery/src/manipulation/support.js +32 -0
- data/app/assets/bower_components/process_engine/jquery/src/manipulation/var/rcheckableType.js +3 -0
- data/app/assets/bower_components/process_engine/jquery/src/manipulation.js +580 -0
- data/app/assets/bower_components/process_engine/jquery/src/offset.js +207 -0
- data/app/assets/bower_components/process_engine/jquery/src/outro.js +1 -0
- data/app/assets/bower_components/process_engine/jquery/src/queue/delay.js +22 -0
- data/app/assets/bower_components/process_engine/jquery/src/queue.js +142 -0
- data/app/assets/bower_components/process_engine/jquery/src/selector-native.js +172 -0
- data/app/assets/bower_components/process_engine/jquery/src/selector-sizzle.js +14 -0
- data/app/assets/bower_components/process_engine/jquery/src/selector.js +1 -0
- data/app/assets/bower_components/process_engine/jquery/src/serialize.js +111 -0
- data/app/assets/bower_components/process_engine/jquery/src/sizzle/dist/sizzle.js +2067 -0
- data/app/assets/bower_components/process_engine/jquery/src/sizzle/dist/sizzle.min.js +3 -0
- data/app/assets/bower_components/process_engine/jquery/src/sizzle/dist/sizzle.min.map +1 -0
- data/app/assets/bower_components/process_engine/jquery/src/traversing/findFilter.js +100 -0
- data/app/assets/bower_components/process_engine/jquery/src/traversing/var/rneedsContext.js +6 -0
- data/app/assets/bower_components/process_engine/jquery/src/traversing.js +199 -0
- data/app/assets/bower_components/process_engine/jquery/src/var/arr.js +3 -0
- data/app/assets/bower_components/process_engine/jquery/src/var/class2type.js +4 -0
- data/app/assets/bower_components/process_engine/jquery/src/var/concat.js +5 -0
- data/app/assets/bower_components/process_engine/jquery/src/var/hasOwn.js +5 -0
- data/app/assets/bower_components/process_engine/jquery/src/var/indexOf.js +5 -0
- data/app/assets/bower_components/process_engine/jquery/src/var/pnum.js +3 -0
- data/app/assets/bower_components/process_engine/jquery/src/var/push.js +5 -0
- data/app/assets/bower_components/process_engine/jquery/src/var/rnotwhite.js +3 -0
- data/app/assets/bower_components/process_engine/jquery/src/var/slice.js +5 -0
- data/app/assets/bower_components/process_engine/jquery/src/var/strundefined.js +3 -0
- data/app/assets/bower_components/process_engine/jquery/src/var/support.js +4 -0
- data/app/assets/bower_components/process_engine/jquery/src/var/toString.js +5 -0
- data/app/assets/bower_components/process_engine/jquery/src/wrap.js +79 -0
- data/app/assets/bower_components/process_engine/jquery-mousewheel/ChangeLog.md +141 -0
- data/app/assets/bower_components/process_engine/jquery-mousewheel/LICENSE.txt +20 -0
- data/app/assets/bower_components/process_engine/jquery-mousewheel/README.md +85 -0
- data/app/assets/bower_components/process_engine/jquery-mousewheel/bower.json +17 -0
- data/app/assets/bower_components/process_engine/jquery-mousewheel/jquery.mousewheel.js +221 -0
- data/app/assets/bower_components/process_engine/jquery-mousewheel/jquery.mousewheel.min.js +8 -0
- data/app/assets/bower_components/process_engine/lodash/LICENSE.txt +22 -0
- data/app/assets/bower_components/process_engine/lodash/bower.json +23 -0
- data/app/assets/bower_components/process_engine/lodash/dist/lodash.compat.js +7157 -0
- data/app/assets/bower_components/process_engine/lodash/dist/lodash.compat.min.js +61 -0
- data/app/assets/bower_components/process_engine/lodash/dist/lodash.js +6785 -0
- data/app/assets/bower_components/process_engine/lodash/dist/lodash.min.js +56 -0
- data/app/assets/bower_components/process_engine/lodash/dist/lodash.underscore.js +4979 -0
- data/app/assets/bower_components/process_engine/lodash/dist/lodash.underscore.min.js +39 -0
- data/app/assets/bower_components/process_engine/sax/AUTHORS +10 -0
- data/app/assets/bower_components/process_engine/sax/LICENSE +32 -0
- data/app/assets/bower_components/process_engine/sax/LICENSE-W3C.html +188 -0
- data/app/assets/bower_components/process_engine/sax/README.md +216 -0
- data/app/assets/bower_components/process_engine/sax/component.json +12 -0
- data/app/assets/bower_components/process_engine/sax/examples/big-not-pretty.xml +8002 -0
- data/app/assets/bower_components/process_engine/sax/examples/example.js +29 -0
- data/app/assets/bower_components/process_engine/sax/examples/get-products.js +58 -0
- data/app/assets/bower_components/process_engine/sax/examples/hello-world.js +4 -0
- data/app/assets/bower_components/process_engine/sax/examples/not-pretty.xml +8 -0
- data/app/assets/bower_components/process_engine/sax/examples/pretty-print.js +74 -0
- data/app/assets/bower_components/process_engine/sax/examples/shopping.xml +2 -0
- data/app/assets/bower_components/process_engine/sax/examples/strict.dtd +870 -0
- data/app/assets/bower_components/process_engine/sax/examples/test.html +15 -0
- data/app/assets/bower_components/process_engine/sax/examples/test.xml +1254 -0
- data/app/assets/bower_components/process_engine/sax/lib/sax.js +1410 -0
- data/app/assets/bower_components/process_engine/sax/package.json +12 -0
- data/app/assets/bower_components/process_engine/sax/test/attribute-name.js +33 -0
- data/app/assets/bower_components/process_engine/sax/test/attribute-no-space.js +75 -0
- data/app/assets/bower_components/process_engine/sax/test/buffer-overrun.js +26 -0
- data/app/assets/bower_components/process_engine/sax/test/case.js +50 -0
- data/app/assets/bower_components/process_engine/sax/test/cdata-chunked.js +11 -0
- data/app/assets/bower_components/process_engine/sax/test/cdata-end-split.js +15 -0
- data/app/assets/bower_components/process_engine/sax/test/cdata-fake-end.js +28 -0
- data/app/assets/bower_components/process_engine/sax/test/cdata-multiple.js +15 -0
- data/app/assets/bower_components/process_engine/sax/test/cdata.js +10 -0
- data/app/assets/bower_components/process_engine/sax/test/cyrillic.js +8 -0
- data/app/assets/bower_components/process_engine/sax/test/duplicate-attribute.js +13 -0
- data/app/assets/bower_components/process_engine/sax/test/emoji.js +12 -0
- data/app/assets/bower_components/process_engine/sax/test/end_empty_stream.js +5 -0
- data/app/assets/bower_components/process_engine/sax/test/entities.js +10 -0
- data/app/assets/bower_components/process_engine/sax/test/entity-mega.js +16 -0
- data/app/assets/bower_components/process_engine/sax/test/flush.js +13 -0
- data/app/assets/bower_components/process_engine/sax/test/index.js +86 -0
- data/app/assets/bower_components/process_engine/sax/test/issue-23.js +43 -0
- data/app/assets/bower_components/process_engine/sax/test/issue-30.js +24 -0
- data/app/assets/bower_components/process_engine/sax/test/issue-35.js +15 -0
- data/app/assets/bower_components/process_engine/sax/test/issue-47.js +12 -0
- data/app/assets/bower_components/process_engine/sax/test/issue-49.js +31 -0
- data/app/assets/bower_components/process_engine/sax/test/issue-84.js +13 -0
- data/app/assets/bower_components/process_engine/sax/test/parser-position.js +28 -0
- data/app/assets/bower_components/process_engine/sax/test/script-close-better.js +12 -0
- data/app/assets/bower_components/process_engine/sax/test/script.js +12 -0
- data/app/assets/bower_components/process_engine/sax/test/self-closing-child-strict.js +44 -0
- data/app/assets/bower_components/process_engine/sax/test/self-closing-child.js +44 -0
- data/app/assets/bower_components/process_engine/sax/test/self-closing-tag.js +25 -0
- data/app/assets/bower_components/process_engine/sax/test/stray-ending.js +17 -0
- data/app/assets/bower_components/process_engine/sax/test/trailing-attribute-no-value.js +10 -0
- data/app/assets/bower_components/process_engine/sax/test/trailing-non-whitespace.js +18 -0
- data/app/assets/bower_components/process_engine/sax/test/unclosed-root.js +11 -0
- data/app/assets/bower_components/process_engine/sax/test/unquoted.js +18 -0
- data/app/assets/bower_components/process_engine/sax/test/utf8-split.js +32 -0
- data/app/assets/bower_components/process_engine/sax/test/xmlns-as-tag-name.js +15 -0
- data/app/assets/bower_components/process_engine/sax/test/xmlns-issue-41.js +68 -0
- data/app/assets/bower_components/process_engine/sax/test/xmlns-rebinding.js +63 -0
- data/app/assets/bower_components/process_engine/sax/test/xmlns-strict.js +74 -0
- data/app/assets/bower_components/process_engine/sax/test/xmlns-unbound-element.js +33 -0
- data/app/assets/bower_components/process_engine/sax/test/xmlns-unbound.js +15 -0
- data/app/assets/bower_components/process_engine/sax/test/xmlns-xml-default-ns.js +31 -0
- data/app/assets/bower_components/process_engine/sax/test/xmlns-xml-default-prefix-attribute.js +36 -0
- data/app/assets/bower_components/process_engine/sax/test/xmlns-xml-default-prefix.js +21 -0
- data/app/assets/bower_components/process_engine/sax/test/xmlns-xml-default-redefine.js +41 -0
- data/app/assets/javascripts/process_engine/application.js +65 -0
- data/app/assets/stylesheets/process_engine/application.css +39 -0
- data/app/controllers/process_engine/application_controller.rb +28 -0
- data/app/controllers/process_engine/process_definitions_controller.rb +63 -0
- data/app/controllers/process_engine/process_instances_controller.rb +42 -0
- data/app/controllers/process_engine/process_tasks_controller.rb +23 -0
- data/app/helpers/process_engine/application_helper.rb +4 -0
- data/app/models/process_engine/consumer/consumer_task.rb +15 -0
- data/app/models/process_engine/error/false_task_state.rb +2 -0
- data/app/models/process_engine/listener/base.rb +49 -0
- data/app/models/process_engine/node_data_injection.rb +22 -0
- data/app/models/process_engine/parser/complex_gateway.rb +21 -0
- data/app/models/process_engine/parser/end_event.rb +23 -0
- data/app/models/process_engine/parser/exclusive_gateway.rb +25 -0
- data/app/models/process_engine/parser/extension/condition_expression.rb +39 -0
- data/app/models/process_engine/parser/extension/execution_listener.rb +15 -0
- data/app/models/process_engine/parser/extension/form_field.rb +50 -0
- data/app/models/process_engine/parser/extension/input_output.rb +28 -0
- data/app/models/process_engine/parser/extension/listener.rb +43 -0
- data/app/models/process_engine/parser/extension/property.rb +20 -0
- data/app/models/process_engine/parser/extension/task_listener.rb +15 -0
- data/app/models/process_engine/parser/extension/transitional_parameter.rb +53 -0
- data/app/models/process_engine/parser/inclusive_gateway.rb +25 -0
- data/app/models/process_engine/parser/parallel_gateway.rb +19 -0
- data/app/models/process_engine/parser/script_task.rb +37 -0
- data/app/models/process_engine/parser/sequence_flow.rb +36 -0
- data/app/models/process_engine/parser/start_event.rb +27 -0
- data/app/models/process_engine/parser/user_task.rb +36 -0
- data/app/models/process_engine/parser/xml_node.rb +125 -0
- data/app/models/process_engine/process_definition.rb +50 -0
- data/app/models/process_engine/process_instance.rb +72 -0
- data/app/models/process_engine/process_query.rb +52 -0
- data/app/models/process_engine/process_schema.rb +30 -0
- data/app/models/process_engine/process_task.rb +70 -0
- data/app/models/process_engine/schema/interceptor/exclusive_gateway.rb +39 -0
- data/app/models/process_engine/schema/node.rb +48 -0
- data/app/models/process_engine/schema/node_extension.rb +79 -0
- data/app/models/process_engine/schema/transition.rb +22 -0
- data/app/views/layouts/process_engine/application.html.erb +14 -0
- data/app/views/process_engine/layouts/_menu.html.haml +6 -0
- data/app/views/process_engine/layouts/application.html.haml +11 -0
- data/app/views/process_engine/process_definitions/_form.html.haml +6 -0
- data/app/views/process_engine/process_definitions/edit.html.haml +3 -0
- data/app/views/process_engine/process_definitions/index.html.haml +26 -0
- data/app/views/process_engine/process_definitions/new.html.haml +3 -0
- data/app/views/process_engine/process_definitions/show.html.haml +51 -0
- data/app/views/process_engine/process_instances/_form.html.haml +5 -0
- data/app/views/process_engine/process_instances/edit.html.haml +3 -0
- data/app/views/process_engine/process_instances/index.html.haml +29 -0
- data/app/views/process_engine/process_instances/show.html.haml +38 -0
- data/app/views/process_engine/process_tasks/index.html.haml +44 -0
- data/app/views/process_engine/share/_bpmn_canvas.html.haml +7 -0
- data/config/initializers/bower_rails.rb +16 -0
- data/config/initializers/simple_form.rb +166 -0
- data/config/initializers/simple_form_bootstrap.rb +135 -0
- data/config/locales/simple_form.en.yml +31 -0
- data/config/routes.rb +18 -0
- data/db/migrate/20150313063311_create_process_engine_process_definitions.rb +14 -0
- data/db/migrate/20150313063508_create_process_engine_process_instances.rb +15 -0
- data/db/migrate/20150313063633_create_process_engine_process_tasks.rb +30 -0
- data/lib/process_engine/engine.rb +12 -0
- data/lib/process_engine/version.rb +3 -0
- data/lib/process_engine.rb +8 -0
- data/lib/tasks/process_engine_tasks.rake +4 -0
- data/lib/templates/erb/scaffold/_form.html.erb +13 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/setup +29 -0
- data/test/dummy/config/application.rb +26 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +85 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +41 -0
- data/test/dummy/config/environments/production.rb +79 -0
- data/test/dummy/config/environments/test.rb +42 -0
- data/test/dummy/config/initializers/assets.rb +11 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +4 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/schema.rb +66 -0
- data/test/dummy/log/development.log +9722 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/8afee1847b645742b0d2535a7c32f4f22e7926ec/bootstrap.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/b5911aa594334efca1023d6f01abce0758e9648a/bootstrap.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/014d8413350c7d85a5429f5e2c9ac911 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0cbd667d0fbf9e0e6f60b5ebf2f95fa3 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0f7ba040a442530a6d4a5bc8307769c1 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0fca2cc9aa38138660d8c7d492cf81e4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0ff24903c54f534941fbc96ff862e475 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/11100f87277a2892323fe5581af75a7b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/18a34084783e8b7f9bc871bc64b13eed +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1a3821ce28e0196075ed0830fcb45f38 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1cf94b9a49ee68cb0f4065d48e9cbaf3 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/21a6373d6c40614fd05be57194c68248 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/26276ae8df51c046f3adc0b50a1521ba +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2eea4a8f4854d438cd03cb23a89b6d8c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3993bcd8bae4771e550d8fc91d1debbc +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3ccc4edae36a9c4bd70fc330c9c83dc9 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3e391b0f37505fffc40ba9ffa13330a2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/42e258b77f5dd532dfb9344a2d766de6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/43a5910cb7a330ece5856c0e9099efa2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4e65ec1149f01e749e1e372861210d4d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/501160bcee63ae68449a5a5eb78b6d41 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/517beb0bf366ec3c8649da9ac8a8a01e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/525a556b1eaacfa041722e1250d9859a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/56edbae38e4e0ff9f4b4fc576ae3d746 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5b04f4a7058d92f88f89f2248bcc16b0 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5c3c69f7c2520b57620931c150032d7e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5d1f8f2111e14084ebf711412c9230d2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5f9833d6835900c56d0e76a1b2924cc2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/67c653cc36eb639f7a7af5159e9f9de3 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/704b33432a5ba417bcd5962ad999c671 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7301f83e8e67f30be13546a794a553ef +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7482c8f712712a79937caf41413bca15 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/761cb171e67ddca71e8b9c74f0220457 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7e23bd4385e166267961b6d936363042 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7e5100f290c9ba0d4c026e43b58d0d79 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/80743880e8d46958e9839ff9408c3113 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8b8941aae968854bafb4638a86cad77b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9c292f3b6b577a92970303c351e1d4a1 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a3435b13cfa60fb7469a19703350bda7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a6ce1b2837383f1e8b62b7f1ddcc6820 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a7e90acc68ba69b7cd5c0a7005467c4b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/be4d00fb7bf467b370f0fda7e453ec68 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c4fbf44e63e40cbbf825fe750374728f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c593bacb8d3f003125f91763a7b36b10 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c5ae3bc69f7b1e1fdb51a667c9f3cdd6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cc843b336460771bf75c97cf0935301b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ce3b6127737ed36f7b62a54acec06b3e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d58931b13c55c146d21475e532b126ba +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/dc6bbdc1e385c7bb2743011e9c2a7407 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/dd7270e11b484ae10f601e1dd014445a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/de86beefc60e0cd84dd1525af863e64d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e0953e6e4a6c208e350f7f25d85bdce8 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ec3b479833be43bf164a3deb119c3aee +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ef2cb0afc9a61a3d5819b4dfc84720ad +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f0511bbd6f6cd5530acddebb6d7e7044 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f7009bba030498129042e0c542d4f264 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/fixtures/process_engine/process_definitions.yml +17 -0
- data/test/fixtures/process_engine/process_instances.yml +11 -0
- data/test/fixtures/process_engine/process_tasks.yml +11 -0
- data/test/integration/navigation_test.rb +10 -0
- data/test/models/process_engine/process_definition_test.rb +9 -0
- data/test/models/process_engine/process_instance_test.rb +9 -0
- data/test/models/process_engine/process_task_test.rb +9 -0
- data/test/process_engine_test.rb +7 -0
- data/test/test_helper.rb +19 -0
- metadata +740 -0
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
define([
|
|
2
|
+
"../core",
|
|
3
|
+
"../var/rnotwhite",
|
|
4
|
+
"../var/strundefined",
|
|
5
|
+
"../core/access",
|
|
6
|
+
"./support",
|
|
7
|
+
"../selector"
|
|
8
|
+
], function( jQuery, rnotwhite, strundefined, access, support ) {
|
|
9
|
+
|
|
10
|
+
var nodeHook, boolHook,
|
|
11
|
+
attrHandle = jQuery.expr.attrHandle;
|
|
12
|
+
|
|
13
|
+
jQuery.fn.extend({
|
|
14
|
+
attr: function( name, value ) {
|
|
15
|
+
return access( this, jQuery.attr, name, value, arguments.length > 1 );
|
|
16
|
+
},
|
|
17
|
+
|
|
18
|
+
removeAttr: function( name ) {
|
|
19
|
+
return this.each(function() {
|
|
20
|
+
jQuery.removeAttr( this, name );
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
jQuery.extend({
|
|
26
|
+
attr: function( elem, name, value ) {
|
|
27
|
+
var hooks, ret,
|
|
28
|
+
nType = elem.nodeType;
|
|
29
|
+
|
|
30
|
+
// don't get/set attributes on text, comment and attribute nodes
|
|
31
|
+
if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// Fallback to prop when attributes are not supported
|
|
36
|
+
if ( typeof elem.getAttribute === strundefined ) {
|
|
37
|
+
return jQuery.prop( elem, name, value );
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// All attributes are lowercase
|
|
41
|
+
// Grab necessary hook if one is defined
|
|
42
|
+
if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {
|
|
43
|
+
name = name.toLowerCase();
|
|
44
|
+
hooks = jQuery.attrHooks[ name ] ||
|
|
45
|
+
( jQuery.expr.match.bool.test( name ) ? boolHook : nodeHook );
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
if ( value !== undefined ) {
|
|
49
|
+
|
|
50
|
+
if ( value === null ) {
|
|
51
|
+
jQuery.removeAttr( elem, name );
|
|
52
|
+
|
|
53
|
+
} else if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) {
|
|
54
|
+
return ret;
|
|
55
|
+
|
|
56
|
+
} else {
|
|
57
|
+
elem.setAttribute( name, value + "" );
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
} else if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) {
|
|
62
|
+
return ret;
|
|
63
|
+
|
|
64
|
+
} else {
|
|
65
|
+
ret = jQuery.find.attr( elem, name );
|
|
66
|
+
|
|
67
|
+
// Non-existent attributes return null, we normalize to undefined
|
|
68
|
+
return ret == null ?
|
|
69
|
+
undefined :
|
|
70
|
+
ret;
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
|
|
74
|
+
removeAttr: function( elem, value ) {
|
|
75
|
+
var name, propName,
|
|
76
|
+
i = 0,
|
|
77
|
+
attrNames = value && value.match( rnotwhite );
|
|
78
|
+
|
|
79
|
+
if ( attrNames && elem.nodeType === 1 ) {
|
|
80
|
+
while ( (name = attrNames[i++]) ) {
|
|
81
|
+
propName = jQuery.propFix[ name ] || name;
|
|
82
|
+
|
|
83
|
+
// Boolean attributes get special treatment (#10870)
|
|
84
|
+
if ( jQuery.expr.match.bool.test( name ) ) {
|
|
85
|
+
// Set corresponding property to false
|
|
86
|
+
elem[ propName ] = false;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
elem.removeAttribute( name );
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
|
|
94
|
+
attrHooks: {
|
|
95
|
+
type: {
|
|
96
|
+
set: function( elem, value ) {
|
|
97
|
+
if ( !support.radioValue && value === "radio" &&
|
|
98
|
+
jQuery.nodeName( elem, "input" ) ) {
|
|
99
|
+
var val = elem.value;
|
|
100
|
+
elem.setAttribute( "type", value );
|
|
101
|
+
if ( val ) {
|
|
102
|
+
elem.value = val;
|
|
103
|
+
}
|
|
104
|
+
return value;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
// Hooks for boolean attributes
|
|
112
|
+
boolHook = {
|
|
113
|
+
set: function( elem, value, name ) {
|
|
114
|
+
if ( value === false ) {
|
|
115
|
+
// Remove boolean attributes when set to false
|
|
116
|
+
jQuery.removeAttr( elem, name );
|
|
117
|
+
} else {
|
|
118
|
+
elem.setAttribute( name, name );
|
|
119
|
+
}
|
|
120
|
+
return name;
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) {
|
|
124
|
+
var getter = attrHandle[ name ] || jQuery.find.attr;
|
|
125
|
+
|
|
126
|
+
attrHandle[ name ] = function( elem, name, isXML ) {
|
|
127
|
+
var ret, handle;
|
|
128
|
+
if ( !isXML ) {
|
|
129
|
+
// Avoid an infinite loop by temporarily removing this function from the getter
|
|
130
|
+
handle = attrHandle[ name ];
|
|
131
|
+
attrHandle[ name ] = ret;
|
|
132
|
+
ret = getter( elem, name, isXML ) != null ?
|
|
133
|
+
name.toLowerCase() :
|
|
134
|
+
null;
|
|
135
|
+
attrHandle[ name ] = handle;
|
|
136
|
+
}
|
|
137
|
+
return ret;
|
|
138
|
+
};
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
});
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
define([
|
|
2
|
+
"../core",
|
|
3
|
+
"../var/rnotwhite",
|
|
4
|
+
"../var/strundefined",
|
|
5
|
+
"../data/var/data_priv",
|
|
6
|
+
"../core/init"
|
|
7
|
+
], function( jQuery, rnotwhite, strundefined, data_priv ) {
|
|
8
|
+
|
|
9
|
+
var rclass = /[\t\r\n\f]/g;
|
|
10
|
+
|
|
11
|
+
jQuery.fn.extend({
|
|
12
|
+
addClass: function( value ) {
|
|
13
|
+
var classes, elem, cur, clazz, j, finalValue,
|
|
14
|
+
proceed = typeof value === "string" && value,
|
|
15
|
+
i = 0,
|
|
16
|
+
len = this.length;
|
|
17
|
+
|
|
18
|
+
if ( jQuery.isFunction( value ) ) {
|
|
19
|
+
return this.each(function( j ) {
|
|
20
|
+
jQuery( this ).addClass( value.call( this, j, this.className ) );
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
if ( proceed ) {
|
|
25
|
+
// The disjunction here is for better compressibility (see removeClass)
|
|
26
|
+
classes = ( value || "" ).match( rnotwhite ) || [];
|
|
27
|
+
|
|
28
|
+
for ( ; i < len; i++ ) {
|
|
29
|
+
elem = this[ i ];
|
|
30
|
+
cur = elem.nodeType === 1 && ( elem.className ?
|
|
31
|
+
( " " + elem.className + " " ).replace( rclass, " " ) :
|
|
32
|
+
" "
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
if ( cur ) {
|
|
36
|
+
j = 0;
|
|
37
|
+
while ( (clazz = classes[j++]) ) {
|
|
38
|
+
if ( cur.indexOf( " " + clazz + " " ) < 0 ) {
|
|
39
|
+
cur += clazz + " ";
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// only assign if different to avoid unneeded rendering.
|
|
44
|
+
finalValue = jQuery.trim( cur );
|
|
45
|
+
if ( elem.className !== finalValue ) {
|
|
46
|
+
elem.className = finalValue;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
return this;
|
|
53
|
+
},
|
|
54
|
+
|
|
55
|
+
removeClass: function( value ) {
|
|
56
|
+
var classes, elem, cur, clazz, j, finalValue,
|
|
57
|
+
proceed = arguments.length === 0 || typeof value === "string" && value,
|
|
58
|
+
i = 0,
|
|
59
|
+
len = this.length;
|
|
60
|
+
|
|
61
|
+
if ( jQuery.isFunction( value ) ) {
|
|
62
|
+
return this.each(function( j ) {
|
|
63
|
+
jQuery( this ).removeClass( value.call( this, j, this.className ) );
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
if ( proceed ) {
|
|
67
|
+
classes = ( value || "" ).match( rnotwhite ) || [];
|
|
68
|
+
|
|
69
|
+
for ( ; i < len; i++ ) {
|
|
70
|
+
elem = this[ i ];
|
|
71
|
+
// This expression is here for better compressibility (see addClass)
|
|
72
|
+
cur = elem.nodeType === 1 && ( elem.className ?
|
|
73
|
+
( " " + elem.className + " " ).replace( rclass, " " ) :
|
|
74
|
+
""
|
|
75
|
+
);
|
|
76
|
+
|
|
77
|
+
if ( cur ) {
|
|
78
|
+
j = 0;
|
|
79
|
+
while ( (clazz = classes[j++]) ) {
|
|
80
|
+
// Remove *all* instances
|
|
81
|
+
while ( cur.indexOf( " " + clazz + " " ) >= 0 ) {
|
|
82
|
+
cur = cur.replace( " " + clazz + " ", " " );
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// Only assign if different to avoid unneeded rendering.
|
|
87
|
+
finalValue = value ? jQuery.trim( cur ) : "";
|
|
88
|
+
if ( elem.className !== finalValue ) {
|
|
89
|
+
elem.className = finalValue;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
return this;
|
|
96
|
+
},
|
|
97
|
+
|
|
98
|
+
toggleClass: function( value, stateVal ) {
|
|
99
|
+
var type = typeof value;
|
|
100
|
+
|
|
101
|
+
if ( typeof stateVal === "boolean" && type === "string" ) {
|
|
102
|
+
return stateVal ? this.addClass( value ) : this.removeClass( value );
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
if ( jQuery.isFunction( value ) ) {
|
|
106
|
+
return this.each(function( i ) {
|
|
107
|
+
jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal );
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
return this.each(function() {
|
|
112
|
+
if ( type === "string" ) {
|
|
113
|
+
// Toggle individual class names
|
|
114
|
+
var className,
|
|
115
|
+
i = 0,
|
|
116
|
+
self = jQuery( this ),
|
|
117
|
+
classNames = value.match( rnotwhite ) || [];
|
|
118
|
+
|
|
119
|
+
while ( (className = classNames[ i++ ]) ) {
|
|
120
|
+
// Check each className given, space separated list
|
|
121
|
+
if ( self.hasClass( className ) ) {
|
|
122
|
+
self.removeClass( className );
|
|
123
|
+
} else {
|
|
124
|
+
self.addClass( className );
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
// Toggle whole class name
|
|
129
|
+
} else if ( type === strundefined || type === "boolean" ) {
|
|
130
|
+
if ( this.className ) {
|
|
131
|
+
// store className if set
|
|
132
|
+
data_priv.set( this, "__className__", this.className );
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// If the element has a class name or if we're passed `false`,
|
|
136
|
+
// then remove the whole classname (if there was one, the above saved it).
|
|
137
|
+
// Otherwise bring back whatever was previously saved (if anything),
|
|
138
|
+
// falling back to the empty string if nothing was stored.
|
|
139
|
+
this.className = this.className || value === false ? "" : data_priv.get( this, "__className__" ) || "";
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
},
|
|
143
|
+
|
|
144
|
+
hasClass: function( selector ) {
|
|
145
|
+
var className = " " + selector + " ",
|
|
146
|
+
i = 0,
|
|
147
|
+
l = this.length;
|
|
148
|
+
for ( ; i < l; i++ ) {
|
|
149
|
+
if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) >= 0 ) {
|
|
150
|
+
return true;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
return false;
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
});
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
define([
|
|
2
|
+
"../core",
|
|
3
|
+
"../core/access",
|
|
4
|
+
"./support"
|
|
5
|
+
], function( jQuery, access, support ) {
|
|
6
|
+
|
|
7
|
+
var rfocusable = /^(?:input|select|textarea|button)$/i;
|
|
8
|
+
|
|
9
|
+
jQuery.fn.extend({
|
|
10
|
+
prop: function( name, value ) {
|
|
11
|
+
return access( this, jQuery.prop, name, value, arguments.length > 1 );
|
|
12
|
+
},
|
|
13
|
+
|
|
14
|
+
removeProp: function( name ) {
|
|
15
|
+
return this.each(function() {
|
|
16
|
+
delete this[ jQuery.propFix[ name ] || name ];
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
jQuery.extend({
|
|
22
|
+
propFix: {
|
|
23
|
+
"for": "htmlFor",
|
|
24
|
+
"class": "className"
|
|
25
|
+
},
|
|
26
|
+
|
|
27
|
+
prop: function( elem, name, value ) {
|
|
28
|
+
var ret, hooks, notxml,
|
|
29
|
+
nType = elem.nodeType;
|
|
30
|
+
|
|
31
|
+
// Don't get/set properties on text, comment and attribute nodes
|
|
32
|
+
if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
|
|
37
|
+
|
|
38
|
+
if ( notxml ) {
|
|
39
|
+
// Fix name and attach hooks
|
|
40
|
+
name = jQuery.propFix[ name ] || name;
|
|
41
|
+
hooks = jQuery.propHooks[ name ];
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
if ( value !== undefined ) {
|
|
45
|
+
return hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ?
|
|
46
|
+
ret :
|
|
47
|
+
( elem[ name ] = value );
|
|
48
|
+
|
|
49
|
+
} else {
|
|
50
|
+
return hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ?
|
|
51
|
+
ret :
|
|
52
|
+
elem[ name ];
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
|
|
56
|
+
propHooks: {
|
|
57
|
+
tabIndex: {
|
|
58
|
+
get: function( elem ) {
|
|
59
|
+
return elem.hasAttribute( "tabindex" ) || rfocusable.test( elem.nodeName ) || elem.href ?
|
|
60
|
+
elem.tabIndex :
|
|
61
|
+
-1;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
if ( !support.optSelected ) {
|
|
68
|
+
jQuery.propHooks.selected = {
|
|
69
|
+
get: function( elem ) {
|
|
70
|
+
var parent = elem.parentNode;
|
|
71
|
+
if ( parent && parent.parentNode ) {
|
|
72
|
+
parent.parentNode.selectedIndex;
|
|
73
|
+
}
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
jQuery.each([
|
|
80
|
+
"tabIndex",
|
|
81
|
+
"readOnly",
|
|
82
|
+
"maxLength",
|
|
83
|
+
"cellSpacing",
|
|
84
|
+
"cellPadding",
|
|
85
|
+
"rowSpan",
|
|
86
|
+
"colSpan",
|
|
87
|
+
"useMap",
|
|
88
|
+
"frameBorder",
|
|
89
|
+
"contentEditable"
|
|
90
|
+
], function() {
|
|
91
|
+
jQuery.propFix[ this.toLowerCase() ] = this;
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
});
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
define([
|
|
2
|
+
"../var/support"
|
|
3
|
+
], function( support ) {
|
|
4
|
+
|
|
5
|
+
(function() {
|
|
6
|
+
var input = document.createElement( "input" ),
|
|
7
|
+
select = document.createElement( "select" ),
|
|
8
|
+
opt = select.appendChild( document.createElement( "option" ) );
|
|
9
|
+
|
|
10
|
+
input.type = "checkbox";
|
|
11
|
+
|
|
12
|
+
// Support: iOS<=5.1, Android<=4.2+
|
|
13
|
+
// Default value for a checkbox should be "on"
|
|
14
|
+
support.checkOn = input.value !== "";
|
|
15
|
+
|
|
16
|
+
// Support: IE<=11+
|
|
17
|
+
// Must access selectedIndex to make default options select
|
|
18
|
+
support.optSelected = opt.selected;
|
|
19
|
+
|
|
20
|
+
// Support: Android<=2.3
|
|
21
|
+
// Options inside disabled selects are incorrectly marked as disabled
|
|
22
|
+
select.disabled = true;
|
|
23
|
+
support.optDisabled = !opt.disabled;
|
|
24
|
+
|
|
25
|
+
// Support: IE<=11+
|
|
26
|
+
// An input loses its value after becoming a radio
|
|
27
|
+
input = document.createElement( "input" );
|
|
28
|
+
input.value = "t";
|
|
29
|
+
input.type = "radio";
|
|
30
|
+
support.radioValue = input.value === "t";
|
|
31
|
+
})();
|
|
32
|
+
|
|
33
|
+
return support;
|
|
34
|
+
|
|
35
|
+
});
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
define([
|
|
2
|
+
"../core",
|
|
3
|
+
"./support",
|
|
4
|
+
"../core/init"
|
|
5
|
+
], function( jQuery, support ) {
|
|
6
|
+
|
|
7
|
+
var rreturn = /\r/g;
|
|
8
|
+
|
|
9
|
+
jQuery.fn.extend({
|
|
10
|
+
val: function( value ) {
|
|
11
|
+
var hooks, ret, isFunction,
|
|
12
|
+
elem = this[0];
|
|
13
|
+
|
|
14
|
+
if ( !arguments.length ) {
|
|
15
|
+
if ( elem ) {
|
|
16
|
+
hooks = jQuery.valHooks[ elem.type ] || jQuery.valHooks[ elem.nodeName.toLowerCase() ];
|
|
17
|
+
|
|
18
|
+
if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) {
|
|
19
|
+
return ret;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
ret = elem.value;
|
|
23
|
+
|
|
24
|
+
return typeof ret === "string" ?
|
|
25
|
+
// Handle most common string cases
|
|
26
|
+
ret.replace(rreturn, "") :
|
|
27
|
+
// Handle cases where value is null/undef or number
|
|
28
|
+
ret == null ? "" : ret;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
isFunction = jQuery.isFunction( value );
|
|
35
|
+
|
|
36
|
+
return this.each(function( i ) {
|
|
37
|
+
var val;
|
|
38
|
+
|
|
39
|
+
if ( this.nodeType !== 1 ) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
if ( isFunction ) {
|
|
44
|
+
val = value.call( this, i, jQuery( this ).val() );
|
|
45
|
+
} else {
|
|
46
|
+
val = value;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// Treat null/undefined as ""; convert numbers to string
|
|
50
|
+
if ( val == null ) {
|
|
51
|
+
val = "";
|
|
52
|
+
|
|
53
|
+
} else if ( typeof val === "number" ) {
|
|
54
|
+
val += "";
|
|
55
|
+
|
|
56
|
+
} else if ( jQuery.isArray( val ) ) {
|
|
57
|
+
val = jQuery.map( val, function( value ) {
|
|
58
|
+
return value == null ? "" : value + "";
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ];
|
|
63
|
+
|
|
64
|
+
// If set returns undefined, fall back to normal setting
|
|
65
|
+
if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) {
|
|
66
|
+
this.value = val;
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
jQuery.extend({
|
|
73
|
+
valHooks: {
|
|
74
|
+
option: {
|
|
75
|
+
get: function( elem ) {
|
|
76
|
+
var val = jQuery.find.attr( elem, "value" );
|
|
77
|
+
return val != null ?
|
|
78
|
+
val :
|
|
79
|
+
// Support: IE10-11+
|
|
80
|
+
// option.text throws exceptions (#14686, #14858)
|
|
81
|
+
jQuery.trim( jQuery.text( elem ) );
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
select: {
|
|
85
|
+
get: function( elem ) {
|
|
86
|
+
var value, option,
|
|
87
|
+
options = elem.options,
|
|
88
|
+
index = elem.selectedIndex,
|
|
89
|
+
one = elem.type === "select-one" || index < 0,
|
|
90
|
+
values = one ? null : [],
|
|
91
|
+
max = one ? index + 1 : options.length,
|
|
92
|
+
i = index < 0 ?
|
|
93
|
+
max :
|
|
94
|
+
one ? index : 0;
|
|
95
|
+
|
|
96
|
+
// Loop through all the selected options
|
|
97
|
+
for ( ; i < max; i++ ) {
|
|
98
|
+
option = options[ i ];
|
|
99
|
+
|
|
100
|
+
// IE6-9 doesn't update selected after form reset (#2551)
|
|
101
|
+
if ( ( option.selected || i === index ) &&
|
|
102
|
+
// Don't return options that are disabled or in a disabled optgroup
|
|
103
|
+
( support.optDisabled ? !option.disabled : option.getAttribute( "disabled" ) === null ) &&
|
|
104
|
+
( !option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" ) ) ) {
|
|
105
|
+
|
|
106
|
+
// Get the specific value for the option
|
|
107
|
+
value = jQuery( option ).val();
|
|
108
|
+
|
|
109
|
+
// We don't need an array for one selects
|
|
110
|
+
if ( one ) {
|
|
111
|
+
return value;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
// Multi-Selects return an array
|
|
115
|
+
values.push( value );
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
return values;
|
|
120
|
+
},
|
|
121
|
+
|
|
122
|
+
set: function( elem, value ) {
|
|
123
|
+
var optionSet, option,
|
|
124
|
+
options = elem.options,
|
|
125
|
+
values = jQuery.makeArray( value ),
|
|
126
|
+
i = options.length;
|
|
127
|
+
|
|
128
|
+
while ( i-- ) {
|
|
129
|
+
option = options[ i ];
|
|
130
|
+
if ( (option.selected = jQuery.inArray( option.value, values ) >= 0) ) {
|
|
131
|
+
optionSet = true;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// Force browsers to behave consistently when non-matching value is set
|
|
136
|
+
if ( !optionSet ) {
|
|
137
|
+
elem.selectedIndex = -1;
|
|
138
|
+
}
|
|
139
|
+
return values;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
|
|
145
|
+
// Radios and checkboxes getter/setter
|
|
146
|
+
jQuery.each([ "radio", "checkbox" ], function() {
|
|
147
|
+
jQuery.valHooks[ this ] = {
|
|
148
|
+
set: function( elem, value ) {
|
|
149
|
+
if ( jQuery.isArray( value ) ) {
|
|
150
|
+
return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 );
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
if ( !support.checkOn ) {
|
|
155
|
+
jQuery.valHooks[ this ].get = function( elem ) {
|
|
156
|
+
return elem.getAttribute("value") === null ? "on" : elem.value;
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
});
|