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.
- checksums.yaml +4 -4
- data/.gitignore +3 -1
- data/.ruby-version +1 -1
- data/CHANGELOG +6 -0
- data/Jarfile +5 -0
- data/Jarfile.lock +52 -13
- data/README.md +21 -9
- data/java/build.md +3 -0
- data/java/mapping.md +20 -0
- data/java/pom.xml +30 -0
- data/java/src/main/java/jrubyactiviti/Modeler.java +95 -0
- data/java/src/main/java/jrubyactiviti/ProcessDiagram.java +491 -0
- data/java/src/main/java/jrubyactiviti/ProcessInstanceHighlights.java +237 -0
- data/java/src/main/java/jrubyactiviti/StencilsetResource.java +16 -0
- data/java/src/main/resources/stencilset.json +1339 -0
- data/jruby_activiti.gemspec +3 -2
- data/lib/generators/jruby_activiti/install_generator.rb +4 -0
- data/lib/jar/jrubyactiviti-2.0.jar +0 -0
- data/lib/jruby_activiti/version.rb +1 -1
- data/lib/jruby_activiti/web.rb +81 -0
- data/lib/jruby_activiti.rb +28 -20
- data/test/{base_test.rb → activiti_test.rb} +1 -3
- data/test/instance_hights_test.rb +18 -0
- data/test/modeler_test.rb +35 -0
- data/test/process_diagram_test.rb +33 -0
- data/test/resources/model_init_editor_source.json +1 -0
- data/test/resources/model_json_xml.json +278 -0
- data/test/resources/model_svg_xml.xml +66 -0
- data/test/stencilset_test.rb +7 -0
- data/test/test_helper.rb +2 -0
- data/web/public/diagram-viewer/images/bg.png +0 -0
- data/web/public/diagram-viewer/images/breadcrumbs.png +0 -0
- data/web/public/diagram-viewer/images/checker-bg.png +0 -0
- data/web/public/diagram-viewer/images/deployer/blue/message_catch.png +0 -0
- data/web/public/diagram-viewer/images/deployer/business_rule.png +0 -0
- data/web/public/diagram-viewer/images/deployer/error_catch.png +0 -0
- data/web/public/diagram-viewer/images/deployer/error_throw.png +0 -0
- data/web/public/diagram-viewer/images/deployer/manual.png +0 -0
- data/web/public/diagram-viewer/images/deployer/message_catch.png +0 -0
- data/web/public/diagram-viewer/images/deployer/message_throw.png +0 -0
- data/web/public/diagram-viewer/images/deployer/receive.png +0 -0
- data/web/public/diagram-viewer/images/deployer/script.png +0 -0
- data/web/public/diagram-viewer/images/deployer/send.png +0 -0
- data/web/public/diagram-viewer/images/deployer/service.png +0 -0
- data/web/public/diagram-viewer/images/deployer/signal_catch.png +0 -0
- data/web/public/diagram-viewer/images/deployer/signal_throw.png +0 -0
- data/web/public/diagram-viewer/images/deployer/timer.png +0 -0
- data/web/public/diagram-viewer/images/deployer/user.png +0 -0
- data/web/public/diagram-viewer/index.html +130 -0
- data/web/public/diagram-viewer/js/ActivitiRest.js +74 -0
- data/web/public/diagram-viewer/js/ActivityImpl.js +1 -0
- data/web/public/diagram-viewer/js/Color.js +603 -0
- data/web/public/diagram-viewer/js/LineBreakMeasurer.js +270 -0
- data/web/public/diagram-viewer/js/Polyline.js +387 -0
- data/web/public/diagram-viewer/js/ProcessDiagramCanvas.js +2172 -0
- data/web/public/diagram-viewer/js/ProcessDiagramGenerator.js +1087 -0
- data/web/public/diagram-viewer/js/jquery/jquery.asyncqueue.js +125 -0
- data/web/public/diagram-viewer/js/jquery/jquery.js +9266 -0
- data/web/public/diagram-viewer/js/jquery/jquery.progressbar.js +131 -0
- data/web/public/diagram-viewer/js/jstools.js +23 -0
- data/web/public/diagram-viewer/js/raphael.2.1.1.js +10 -0
- data/web/public/diagram-viewer/js/raphael.js +10 -0
- data/web/public/diagram-viewer/js/raphael_uncompressed.js +5815 -0
- data/web/public/diagram-viewer/js/textlayout.js +441 -0
- data/web/public/diagram-viewer/style.css +1 -0
- data/web/public/editor-app/app-cfg.js +25 -0
- data/web/public/editor-app/app.js +432 -0
- data/web/public/editor-app/configuration/properties/assignment-display-template.html +4 -0
- data/web/public/editor-app/configuration/properties/assignment-popup.html +44 -0
- data/web/public/editor-app/configuration/properties/assignment-write-template.html +4 -0
- data/web/public/editor-app/configuration/properties/boolean-property-template.html +4 -0
- data/web/public/editor-app/configuration/properties/condition-expression-display-template.html +2 -0
- data/web/public/editor-app/configuration/properties/condition-expression-popup.html +29 -0
- data/web/public/editor-app/configuration/properties/condition-expression-write-template.html +4 -0
- data/web/public/editor-app/configuration/properties/default-value-display-template.html +4 -0
- data/web/public/editor-app/configuration/properties/event-listeners-display-template.html +3 -0
- data/web/public/editor-app/configuration/properties/event-listeners-popup.html +115 -0
- data/web/public/editor-app/configuration/properties/event-listeners-write-template.html +4 -0
- data/web/public/editor-app/configuration/properties/execution-listeners-display-template.html +3 -0
- data/web/public/editor-app/configuration/properties/execution-listeners-popup.html +101 -0
- data/web/public/editor-app/configuration/properties/execution-listeners-write-template.html +4 -0
- data/web/public/editor-app/configuration/properties/feedback-popup.html +17 -0
- data/web/public/editor-app/configuration/properties/fields-display-template.html +3 -0
- data/web/public/editor-app/configuration/properties/fields-popup.html +61 -0
- data/web/public/editor-app/configuration/properties/fields-write-template.html +4 -0
- data/web/public/editor-app/configuration/properties/form-properties-display-template.html +3 -0
- data/web/public/editor-app/configuration/properties/form-properties-popup.html +93 -0
- data/web/public/editor-app/configuration/properties/form-properties-write-template.html +4 -0
- data/web/public/editor-app/configuration/properties/in-parameters-display-template.html +3 -0
- data/web/public/editor-app/configuration/properties/in-parameters-popup.html +53 -0
- data/web/public/editor-app/configuration/properties/in-parameters-write-template.html +4 -0
- data/web/public/editor-app/configuration/properties/message-definitions-display-template.html +2 -0
- data/web/public/editor-app/configuration/properties/message-definitions-popup.html +50 -0
- data/web/public/editor-app/configuration/properties/message-definitions-write-template.html +3 -0
- data/web/public/editor-app/configuration/properties/message-property-write-template.html +4 -0
- data/web/public/editor-app/configuration/properties/multiinstance-property-write-template.html +8 -0
- data/web/public/editor-app/configuration/properties/out-parameters-display-template.html +3 -0
- data/web/public/editor-app/configuration/properties/out-parameters-popup.html +53 -0
- data/web/public/editor-app/configuration/properties/out-parameters-write-template.html +4 -0
- data/web/public/editor-app/configuration/properties/sequenceflow-order-display-template.html +3 -0
- data/web/public/editor-app/configuration/properties/sequenceflow-order-popup.html +47 -0
- data/web/public/editor-app/configuration/properties/sequenceflow-order-write-template.html +4 -0
- data/web/public/editor-app/configuration/properties/signal-definitions-display-template.html +3 -0
- data/web/public/editor-app/configuration/properties/signal-definitions-popup.html +58 -0
- data/web/public/editor-app/configuration/properties/signal-definitions-write-template.html +4 -0
- data/web/public/editor-app/configuration/properties/signal-property-write-template.html +4 -0
- data/web/public/editor-app/configuration/properties/string-property-write-mode-template.html +8 -0
- data/web/public/editor-app/configuration/properties/subprocess-reference-display-template.html +3 -0
- data/web/public/editor-app/configuration/properties/subprocess-reference-popup.html +43 -0
- data/web/public/editor-app/configuration/properties/subprocess-reference-write-template.html +4 -0
- data/web/public/editor-app/configuration/properties/task-listeners-display-template.html +3 -0
- data/web/public/editor-app/configuration/properties/task-listeners-popup.html +102 -0
- data/web/public/editor-app/configuration/properties/task-listeners-write-template.html +4 -0
- data/web/public/editor-app/configuration/properties/text-popup.html +17 -0
- data/web/public/editor-app/configuration/properties/text-property-write-template.html +4 -0
- data/web/public/editor-app/configuration/properties-assignment-controller.js +150 -0
- data/web/public/editor-app/configuration/properties-condition-expression-controller.js +58 -0
- data/web/public/editor-app/configuration/properties-custom-controllers.js +18 -0
- data/web/public/editor-app/configuration/properties-default-controllers.js +115 -0
- data/web/public/editor-app/configuration/properties-event-listeners-controller.js +266 -0
- data/web/public/editor-app/configuration/properties-execution-listeners-controller.js +326 -0
- data/web/public/editor-app/configuration/properties-fields-controller.js +192 -0
- data/web/public/editor-app/configuration/properties-form-properties-controller.js +192 -0
- data/web/public/editor-app/configuration/properties-in-parameters-controller.js +158 -0
- data/web/public/editor-app/configuration/properties-message-definitions-controller.js +137 -0
- data/web/public/editor-app/configuration/properties-message-scope-controller.js +48 -0
- data/web/public/editor-app/configuration/properties-multiinstance-controller.js +34 -0
- data/web/public/editor-app/configuration/properties-out-parameters-controller.js +158 -0
- data/web/public/editor-app/configuration/properties-sequenceflow-order-controller.js +130 -0
- data/web/public/editor-app/configuration/properties-signal-definitions-controller.js +136 -0
- data/web/public/editor-app/configuration/properties-signal-scope-controller.js +47 -0
- data/web/public/editor-app/configuration/properties-task-listeners-controller.js +325 -0
- data/web/public/editor-app/configuration/properties.js +99 -0
- data/web/public/editor-app/configuration/toolbar-custom-actions.js +18 -0
- data/web/public/editor-app/configuration/toolbar-default-actions.js +429 -0
- data/web/public/editor-app/configuration/toolbar.js +175 -0
- data/web/public/editor-app/configuration/url-config.js +34 -0
- data/web/public/editor-app/css/style-common.css +1518 -0
- data/web/public/editor-app/css/style-editor.css +639 -0
- data/web/public/editor-app/css/style.css +471 -0
- data/web/public/editor-app/editor/css/editor.css +202 -0
- data/web/public/editor-app/editor/i18n/translation_de.js +383 -0
- data/web/public/editor-app/editor/i18n/translation_en_us.js +423 -0
- data/web/public/editor-app/editor/i18n/translation_signavio_de.js +106 -0
- data/web/public/editor-app/editor/i18n/translation_signavio_en_us.js +108 -0
- data/web/public/editor-app/editor/oryx.debug.js +24510 -0
- data/web/public/editor-app/editor/oryx.js +30 -0
- data/web/public/editor-app/editor-config.js +32 -0
- data/web/public/editor-app/editor-controller.js +65 -0
- data/web/public/editor-app/editor-utils.js +135 -0
- data/web/public/editor-app/editor.html +136 -0
- data/web/public/editor-app/eventbus.js +133 -0
- data/web/public/editor-app/fonts/activiti-admin-webfont.eot +0 -0
- data/web/public/editor-app/fonts/activiti-admin-webfont.svg +43 -0
- data/web/public/editor-app/fonts/activiti-admin-webfont.ttf +0 -0
- data/web/public/editor-app/fonts/activiti-admin-webfont.woff +0 -0
- data/web/public/editor-app/fonts/glyphicons-halflings-regular.eot +0 -0
- data/web/public/editor-app/fonts/glyphicons-halflings-regular.svg +229 -0
- data/web/public/editor-app/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/web/public/editor-app/fonts/glyphicons-halflings-regular.woff +0 -0
- data/web/public/editor-app/header-controller.js +31 -0
- data/web/public/editor-app/i18n/en.json +286 -0
- data/web/public/editor-app/images/bpmn-error.png +0 -0
- data/web/public/editor-app/images/bpmn-warning.png +0 -0
- data/web/public/editor-app/images/datadefinition.png +0 -0
- data/web/public/editor-app/images/delete.png +0 -0
- data/web/public/editor-app/images/loading.gif +0 -0
- data/web/public/editor-app/images/logo-2x.png +0 -0
- data/web/public/editor-app/images/logo.png +0 -0
- data/web/public/editor-app/images/nw-handle-dark.gif +0 -0
- data/web/public/editor-app/images/se-handle-dark.gif +0 -0
- data/web/public/editor-app/images/shapemenu_highlight.png +0 -0
- data/web/public/editor-app/images/wrench.png +0 -0
- data/web/public/editor-app/libs/angular-cookies_1.2.13/angular-cookies.min.js +8 -0
- data/web/public/editor-app/libs/angular-cookies_1.2.13/angular-cookies.min.js.map +8 -0
- data/web/public/editor-app/libs/angular-dragdrop.min-1.0.3.js +9 -0
- data/web/public/editor-app/libs/angular-dragdrop_1.0.7/angular-dragdrop.min.js +29 -0
- data/web/public/editor-app/libs/angular-mocks_1.2.13/angular-mocks.js +2136 -0
- data/web/public/editor-app/libs/angular-resource_1.2.13/angular-resource.js +596 -0
- data/web/public/editor-app/libs/angular-resource_1.2.13/angular-resource.min.js +13 -0
- data/web/public/editor-app/libs/angular-resource_1.2.13/angular-resource.min.js.map +8 -0
- data/web/public/editor-app/libs/angular-route_1.2.13/angular-route.js +921 -0
- data/web/public/editor-app/libs/angular-route_1.2.13/angular-route.min.js +14 -0
- data/web/public/editor-app/libs/angular-route_1.2.13/angular-route.min.js.map +8 -0
- data/web/public/editor-app/libs/angular-sanitize_1.2.13/angular-sanitize.js +625 -0
- data/web/public/editor-app/libs/angular-sanitize_1.2.13/angular-sanitize.min.js +14 -0
- data/web/public/editor-app/libs/angular-sanitize_1.2.13/angular-sanitize.min.js.map +8 -0
- data/web/public/editor-app/libs/angular-scroll_0.5.7/angular-scroll.min.js +1 -0
- data/web/public/editor-app/libs/angular-strap_2.0.5/angular-strap.min.js +9 -0
- data/web/public/editor-app/libs/angular-strap_2.0.5/angular-strap.tpl.min.js +8 -0
- data/web/public/editor-app/libs/angular-translate-loader-static-files/.bower.json +19 -0
- data/web/public/editor-app/libs/angular-translate-loader-static-files/angular-translate-loader-static-files.js +31 -0
- data/web/public/editor-app/libs/angular-translate-loader-static-files/angular-translate-loader-static-files.min.js +6 -0
- data/web/public/editor-app/libs/angular-translate-storage-cookie/.bower.json +20 -0
- data/web/public/editor-app/libs/angular-translate-storage-cookie/angular-translate-storage-cookie.js +19 -0
- data/web/public/editor-app/libs/angular-translate-storage-cookie/angular-translate-storage-cookie.min.js +6 -0
- data/web/public/editor-app/libs/angular-translate_2.4.2/angular-translate.js +960 -0
- data/web/public/editor-app/libs/angular-translate_2.4.2/angular-translate.min.js +6 -0
- data/web/public/editor-app/libs/angular_1.2.13/angular-animate.min.js +27 -0
- data/web/public/editor-app/libs/angular_1.2.13/angular.min.js +204 -0
- data/web/public/editor-app/libs/bootstrap-daterangepicker_1.3.7/daterangepicker-bs3.css +267 -0
- data/web/public/editor-app/libs/bootstrap-daterangepicker_1.3.7/daterangepicker.js +1026 -0
- data/web/public/editor-app/libs/bootstrap_3.1.1/css/bootstrap-theme.css +347 -0
- data/web/public/editor-app/libs/bootstrap_3.1.1/css/bootstrap-theme.css.map +1 -0
- data/web/public/editor-app/libs/bootstrap_3.1.1/css/bootstrap-theme.min.css +7 -0
- data/web/public/editor-app/libs/bootstrap_3.1.1/css/bootstrap.css +5785 -0
- data/web/public/editor-app/libs/bootstrap_3.1.1/css/bootstrap.css.map +1 -0
- data/web/public/editor-app/libs/bootstrap_3.1.1/css/bootstrap.min.css +7 -0
- data/web/public/editor-app/libs/bootstrap_3.1.1/fonts/glyphicons-halflings-regular.eot +0 -0
- data/web/public/editor-app/libs/bootstrap_3.1.1/fonts/glyphicons-halflings-regular.svg +229 -0
- data/web/public/editor-app/libs/bootstrap_3.1.1/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/web/public/editor-app/libs/bootstrap_3.1.1/fonts/glyphicons-halflings-regular.woff +0 -0
- data/web/public/editor-app/libs/bootstrap_3.1.1/js/bootstrap.js +1951 -0
- data/web/public/editor-app/libs/bootstrap_3.1.1/js/bootstrap.min.js +6 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/.bower.json +14 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/.gitignore +2 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/CHANGES +93 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/CONTRIBUTORS.md +25 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/LICENSE +19 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/README.md +161 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/es5-sham.js +444 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/es5-sham.map +1 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/es5-sham.min.js +4 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/es5-shim.js +1314 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/es5-shim.map +1 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/es5-shim.min.js +4 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/package.json +34 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/helpers/h-kill.js +64 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/helpers/h-matchers.js +34 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/helpers/h.js +3 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/index.html +64 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/index.min.html +63 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/lib/jasmine-html.js +190 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/lib/jasmine.css +166 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/lib/jasmine.js +2477 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/lib/jasmine_favicon.png +0 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/lib/json2.js +478 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/spec/s-array.js +1223 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/spec/s-date.js +152 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/spec/s-function.js +147 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/spec/s-number.js +14 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/spec/s-object.js +181 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/spec/s-string.js +204 -0
- data/web/public/editor-app/libs/jquery-ui-1.10.3.custom.min.js +6 -0
- data/web/public/editor-app/libs/jquery.autogrow-textarea.js +61 -0
- data/web/public/editor-app/libs/jquery_1.11.0/jquery.js +9789 -0
- data/web/public/editor-app/libs/jquery_1.11.0/jquery.min.js +4 -0
- data/web/public/editor-app/libs/jquery_1.11.0/jquery.min.map +1 -0
- data/web/public/editor-app/libs/json3_3.2.6/LICENSE +20 -0
- data/web/public/editor-app/libs/json3_3.2.6/lib/json3.js +861 -0
- data/web/public/editor-app/libs/json3_3.2.6/lib/json3.min.js +18 -0
- data/web/public/editor-app/libs/momentjs_2.5.1/momentjs.min.js +6 -0
- data/web/public/editor-app/libs/mousetrap-1.4.5.min.js +9 -0
- data/web/public/editor-app/libs/ng-grid-2.0.7-min.js +2 -0
- data/web/public/editor-app/libs/ng-grid-2.0.7.min.css +1 -0
- data/web/public/editor-app/libs/path_parser.js +30 -0
- data/web/public/editor-app/libs/prototype-1.5.1.js +3272 -0
- data/web/public/editor-app/libs/ui-utils.min-0.0.4.js +7 -0
- data/web/public/editor-app/partials/root-stencil-item-template.html +11 -0
- data/web/public/editor-app/partials/stencil-item-template.html +27 -0
- data/web/public/editor-app/plugins.xml +58 -0
- data/web/public/editor-app/popups/icon-template.html +3 -0
- data/web/public/editor-app/popups/save-model.html +41 -0
- data/web/public/editor-app/popups/select-shape.html +20 -0
- data/web/public/editor-app/popups/unsaved-changes.html +22 -0
- data/web/public/editor-app/select-shape-controller.js +314 -0
- data/web/public/editor-app/stencil-controller.js +1421 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/event.subprocess.collapsed.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/event.subprocess.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/expanded.subprocess.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/list/type.business.rule.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/list/type.camel.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/list/type.manual.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/list/type.mule.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/list/type.receive.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/list/type.script.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/list/type.send.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/list/type.service.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/list/type.shell.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/list/type.user.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/subprocess.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/task.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/artifact/text.annotation.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/catching/cancel.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/catching/compensation.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/catching/error.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/catching/message.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/catching/signal.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/catching/timer.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/connector/association.undirected.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/connector/association.unidirectional.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/connector/messageflow.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/connector/sequenceflow.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/dataobject/data.store.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/diagram.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/endevent/cancel.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/endevent/error.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/endevent/none.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/endevent/terminate.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/gateway/eventbased.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/gateway/exclusive.databased.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/gateway/inclusive.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/gateway/parallel.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/startevent/error.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/startevent/message.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/startevent/none.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/startevent/signal.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/startevent/timer.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/swimlane/lane.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/swimlane/pool.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/throwing/none.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/throwing/signal.png +0 -0
- data/web/public/editor-app/toolbar-controller.js +162 -0
- data/web/public/modeler.html +140 -0
- data/web/views/models/index.erb +32 -0
- data/web/views/models/new.erb +15 -0
- metadata +334 -10
@@ -0,0 +1,444 @@
|
|
1
|
+
// Copyright 2009-2012 by contributors, MIT License
|
2
|
+
// vim: ts=4 sts=4 sw=4 expandtab
|
3
|
+
|
4
|
+
// Module systems magic dance
|
5
|
+
(function (definition) {
|
6
|
+
// RequireJS
|
7
|
+
if (typeof define == "function") {
|
8
|
+
define(definition);
|
9
|
+
// YUI3
|
10
|
+
} else if (typeof YUI == "function") {
|
11
|
+
YUI.add("es5-sham", definition);
|
12
|
+
// CommonJS and <script>
|
13
|
+
} else {
|
14
|
+
definition();
|
15
|
+
}
|
16
|
+
})(function () {
|
17
|
+
|
18
|
+
|
19
|
+
var call = Function.prototype.call;
|
20
|
+
var prototypeOfObject = Object.prototype;
|
21
|
+
var owns = call.bind(prototypeOfObject.hasOwnProperty);
|
22
|
+
|
23
|
+
// If JS engine supports accessors creating shortcuts.
|
24
|
+
var defineGetter;
|
25
|
+
var defineSetter;
|
26
|
+
var lookupGetter;
|
27
|
+
var lookupSetter;
|
28
|
+
var supportsAccessors;
|
29
|
+
if ((supportsAccessors = owns(prototypeOfObject, "__defineGetter__"))) {
|
30
|
+
defineGetter = call.bind(prototypeOfObject.__defineGetter__);
|
31
|
+
defineSetter = call.bind(prototypeOfObject.__defineSetter__);
|
32
|
+
lookupGetter = call.bind(prototypeOfObject.__lookupGetter__);
|
33
|
+
lookupSetter = call.bind(prototypeOfObject.__lookupSetter__);
|
34
|
+
}
|
35
|
+
|
36
|
+
// ES5 15.2.3.2
|
37
|
+
// http://es5.github.com/#x15.2.3.2
|
38
|
+
if (!Object.getPrototypeOf) {
|
39
|
+
// https://github.com/kriskowal/es5-shim/issues#issue/2
|
40
|
+
// http://ejohn.org/blog/objectgetprototypeof/
|
41
|
+
// recommended by fschaefer on github
|
42
|
+
Object.getPrototypeOf = function getPrototypeOf(object) {
|
43
|
+
return object.__proto__ || (
|
44
|
+
object.constructor
|
45
|
+
? object.constructor.prototype
|
46
|
+
: prototypeOfObject
|
47
|
+
);
|
48
|
+
};
|
49
|
+
}
|
50
|
+
|
51
|
+
//ES5 15.2.3.3
|
52
|
+
//http://es5.github.com/#x15.2.3.3
|
53
|
+
|
54
|
+
function doesGetOwnPropertyDescriptorWork(object) {
|
55
|
+
try {
|
56
|
+
object.sentinel = 0;
|
57
|
+
return Object.getOwnPropertyDescriptor(
|
58
|
+
object,
|
59
|
+
"sentinel"
|
60
|
+
).value === 0;
|
61
|
+
} catch (exception) {
|
62
|
+
// returns falsy
|
63
|
+
}
|
64
|
+
}
|
65
|
+
|
66
|
+
//check whether getOwnPropertyDescriptor works if it's given. Otherwise,
|
67
|
+
//shim partially.
|
68
|
+
if (Object.defineProperty) {
|
69
|
+
var getOwnPropertyDescriptorWorksOnObject =
|
70
|
+
doesGetOwnPropertyDescriptorWork({});
|
71
|
+
var getOwnPropertyDescriptorWorksOnDom = typeof document == "undefined" ||
|
72
|
+
doesGetOwnPropertyDescriptorWork(document.createElement("div"));
|
73
|
+
if (!getOwnPropertyDescriptorWorksOnDom ||
|
74
|
+
!getOwnPropertyDescriptorWorksOnObject
|
75
|
+
) {
|
76
|
+
var getOwnPropertyDescriptorFallback = Object.getOwnPropertyDescriptor;
|
77
|
+
}
|
78
|
+
}
|
79
|
+
|
80
|
+
if (!Object.getOwnPropertyDescriptor || getOwnPropertyDescriptorFallback) {
|
81
|
+
var ERR_NON_OBJECT = "Object.getOwnPropertyDescriptor called on a non-object: ";
|
82
|
+
|
83
|
+
Object.getOwnPropertyDescriptor = function getOwnPropertyDescriptor(object, property) {
|
84
|
+
if ((typeof object != "object" && typeof object != "function") || object === null) {
|
85
|
+
throw new TypeError(ERR_NON_OBJECT + object);
|
86
|
+
}
|
87
|
+
|
88
|
+
// make a valiant attempt to use the real getOwnPropertyDescriptor
|
89
|
+
// for I8's DOM elements.
|
90
|
+
if (getOwnPropertyDescriptorFallback) {
|
91
|
+
try {
|
92
|
+
return getOwnPropertyDescriptorFallback.call(Object, object, property);
|
93
|
+
} catch (exception) {
|
94
|
+
// try the shim if the real one doesn't work
|
95
|
+
}
|
96
|
+
}
|
97
|
+
|
98
|
+
// If object does not owns property return undefined immediately.
|
99
|
+
if (!owns(object, property)) {
|
100
|
+
return;
|
101
|
+
}
|
102
|
+
|
103
|
+
// If object has a property then it's for sure both `enumerable` and
|
104
|
+
// `configurable`.
|
105
|
+
var descriptor = { enumerable: true, configurable: true };
|
106
|
+
|
107
|
+
// If JS engine supports accessor properties then property may be a
|
108
|
+
// getter or setter.
|
109
|
+
if (supportsAccessors) {
|
110
|
+
// Unfortunately `__lookupGetter__` will return a getter even
|
111
|
+
// if object has own non getter property along with a same named
|
112
|
+
// inherited getter. To avoid misbehavior we temporary remove
|
113
|
+
// `__proto__` so that `__lookupGetter__` will return getter only
|
114
|
+
// if it's owned by an object.
|
115
|
+
var prototype = object.__proto__;
|
116
|
+
object.__proto__ = prototypeOfObject;
|
117
|
+
|
118
|
+
var getter = lookupGetter(object, property);
|
119
|
+
var setter = lookupSetter(object, property);
|
120
|
+
|
121
|
+
// Once we have getter and setter we can put values back.
|
122
|
+
object.__proto__ = prototype;
|
123
|
+
|
124
|
+
if (getter || setter) {
|
125
|
+
if (getter) {
|
126
|
+
descriptor.get = getter;
|
127
|
+
}
|
128
|
+
if (setter) {
|
129
|
+
descriptor.set = setter;
|
130
|
+
}
|
131
|
+
// If it was accessor property we're done and return here
|
132
|
+
// in order to avoid adding `value` to the descriptor.
|
133
|
+
return descriptor;
|
134
|
+
}
|
135
|
+
}
|
136
|
+
|
137
|
+
// If we got this far we know that object has an own property that is
|
138
|
+
// not an accessor so we set it as a value and return descriptor.
|
139
|
+
descriptor.value = object[property];
|
140
|
+
descriptor.writable = true;
|
141
|
+
return descriptor;
|
142
|
+
};
|
143
|
+
}
|
144
|
+
|
145
|
+
// ES5 15.2.3.4
|
146
|
+
// http://es5.github.com/#x15.2.3.4
|
147
|
+
if (!Object.getOwnPropertyNames) {
|
148
|
+
Object.getOwnPropertyNames = function getOwnPropertyNames(object) {
|
149
|
+
return Object.keys(object);
|
150
|
+
};
|
151
|
+
}
|
152
|
+
|
153
|
+
// ES5 15.2.3.5
|
154
|
+
// http://es5.github.com/#x15.2.3.5
|
155
|
+
if (!Object.create) {
|
156
|
+
|
157
|
+
// Contributed by Brandon Benvie, October, 2012
|
158
|
+
var createEmpty;
|
159
|
+
var supportsProto = Object.prototype.__proto__ === null;
|
160
|
+
if (supportsProto || typeof document == 'undefined') {
|
161
|
+
createEmpty = function () {
|
162
|
+
return { "__proto__": null };
|
163
|
+
};
|
164
|
+
} else {
|
165
|
+
// In old IE __proto__ can't be used to manually set `null`, nor does
|
166
|
+
// any other method exist to make an object that inherits from nothing,
|
167
|
+
// aside from Object.prototype itself. Instead, create a new global
|
168
|
+
// object and *steal* its Object.prototype and strip it bare. This is
|
169
|
+
// used as the prototype to create nullary objects.
|
170
|
+
createEmpty = function () {
|
171
|
+
var iframe = document.createElement('iframe');
|
172
|
+
var parent = document.body || document.documentElement;
|
173
|
+
iframe.style.display = 'none';
|
174
|
+
parent.appendChild(iframe);
|
175
|
+
iframe.src = 'javascript:';
|
176
|
+
var empty = iframe.contentWindow.Object.prototype;
|
177
|
+
parent.removeChild(iframe);
|
178
|
+
iframe = null;
|
179
|
+
delete empty.constructor;
|
180
|
+
delete empty.hasOwnProperty;
|
181
|
+
delete empty.propertyIsEnumerable;
|
182
|
+
delete empty.isPrototypeOf;
|
183
|
+
delete empty.toLocaleString;
|
184
|
+
delete empty.toString;
|
185
|
+
delete empty.valueOf;
|
186
|
+
empty.__proto__ = null;
|
187
|
+
|
188
|
+
function Empty() {}
|
189
|
+
Empty.prototype = empty;
|
190
|
+
// short-circuit future calls
|
191
|
+
createEmpty = function () {
|
192
|
+
return new Empty();
|
193
|
+
};
|
194
|
+
return new Empty();
|
195
|
+
};
|
196
|
+
}
|
197
|
+
|
198
|
+
Object.create = function create(prototype, properties) {
|
199
|
+
|
200
|
+
var object;
|
201
|
+
function Type() {} // An empty constructor.
|
202
|
+
|
203
|
+
if (prototype === null) {
|
204
|
+
object = createEmpty();
|
205
|
+
} else {
|
206
|
+
if (typeof prototype !== "object" && typeof prototype !== "function") {
|
207
|
+
// In the native implementation `parent` can be `null`
|
208
|
+
// OR *any* `instanceof Object` (Object|Function|Array|RegExp|etc)
|
209
|
+
// Use `typeof` tho, b/c in old IE, DOM elements are not `instanceof Object`
|
210
|
+
// like they are in modern browsers. Using `Object.create` on DOM elements
|
211
|
+
// is...err...probably inappropriate, but the native version allows for it.
|
212
|
+
throw new TypeError("Object prototype may only be an Object or null"); // same msg as Chrome
|
213
|
+
}
|
214
|
+
Type.prototype = prototype;
|
215
|
+
object = new Type();
|
216
|
+
// IE has no built-in implementation of `Object.getPrototypeOf`
|
217
|
+
// neither `__proto__`, but this manually setting `__proto__` will
|
218
|
+
// guarantee that `Object.getPrototypeOf` will work as expected with
|
219
|
+
// objects created using `Object.create`
|
220
|
+
object.__proto__ = prototype;
|
221
|
+
}
|
222
|
+
|
223
|
+
if (properties !== void 0) {
|
224
|
+
Object.defineProperties(object, properties);
|
225
|
+
}
|
226
|
+
|
227
|
+
return object;
|
228
|
+
};
|
229
|
+
}
|
230
|
+
|
231
|
+
// ES5 15.2.3.6
|
232
|
+
// http://es5.github.com/#x15.2.3.6
|
233
|
+
|
234
|
+
// Patch for WebKit and IE8 standard mode
|
235
|
+
// Designed by hax <hax.github.com>
|
236
|
+
// related issue: https://github.com/kriskowal/es5-shim/issues#issue/5
|
237
|
+
// IE8 Reference:
|
238
|
+
// http://msdn.microsoft.com/en-us/library/dd282900.aspx
|
239
|
+
// http://msdn.microsoft.com/en-us/library/dd229916.aspx
|
240
|
+
// WebKit Bugs:
|
241
|
+
// https://bugs.webkit.org/show_bug.cgi?id=36423
|
242
|
+
|
243
|
+
function doesDefinePropertyWork(object) {
|
244
|
+
try {
|
245
|
+
Object.defineProperty(object, "sentinel", {});
|
246
|
+
return "sentinel" in object;
|
247
|
+
} catch (exception) {
|
248
|
+
// returns falsy
|
249
|
+
}
|
250
|
+
}
|
251
|
+
|
252
|
+
// check whether defineProperty works if it's given. Otherwise,
|
253
|
+
// shim partially.
|
254
|
+
if (Object.defineProperty) {
|
255
|
+
var definePropertyWorksOnObject = doesDefinePropertyWork({});
|
256
|
+
var definePropertyWorksOnDom = typeof document == "undefined" ||
|
257
|
+
doesDefinePropertyWork(document.createElement("div"));
|
258
|
+
if (!definePropertyWorksOnObject || !definePropertyWorksOnDom) {
|
259
|
+
var definePropertyFallback = Object.defineProperty,
|
260
|
+
definePropertiesFallback = Object.defineProperties;
|
261
|
+
}
|
262
|
+
}
|
263
|
+
|
264
|
+
if (!Object.defineProperty || definePropertyFallback) {
|
265
|
+
var ERR_NON_OBJECT_DESCRIPTOR = "Property description must be an object: ";
|
266
|
+
var ERR_NON_OBJECT_TARGET = "Object.defineProperty called on non-object: "
|
267
|
+
var ERR_ACCESSORS_NOT_SUPPORTED = "getters & setters can not be defined " +
|
268
|
+
"on this javascript engine";
|
269
|
+
|
270
|
+
Object.defineProperty = function defineProperty(object, property, descriptor) {
|
271
|
+
if ((typeof object != "object" && typeof object != "function") || object === null) {
|
272
|
+
throw new TypeError(ERR_NON_OBJECT_TARGET + object);
|
273
|
+
}
|
274
|
+
if ((typeof descriptor != "object" && typeof descriptor != "function") || descriptor === null) {
|
275
|
+
throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR + descriptor);
|
276
|
+
}
|
277
|
+
// make a valiant attempt to use the real defineProperty
|
278
|
+
// for I8's DOM elements.
|
279
|
+
if (definePropertyFallback) {
|
280
|
+
try {
|
281
|
+
return definePropertyFallback.call(Object, object, property, descriptor);
|
282
|
+
} catch (exception) {
|
283
|
+
// try the shim if the real one doesn't work
|
284
|
+
}
|
285
|
+
}
|
286
|
+
|
287
|
+
// If it's a data property.
|
288
|
+
if (owns(descriptor, "value")) {
|
289
|
+
// fail silently if "writable", "enumerable", or "configurable"
|
290
|
+
// are requested but not supported
|
291
|
+
/*
|
292
|
+
// alternate approach:
|
293
|
+
if ( // can't implement these features; allow false but not true
|
294
|
+
!(owns(descriptor, "writable") ? descriptor.writable : true) ||
|
295
|
+
!(owns(descriptor, "enumerable") ? descriptor.enumerable : true) ||
|
296
|
+
!(owns(descriptor, "configurable") ? descriptor.configurable : true)
|
297
|
+
)
|
298
|
+
throw new RangeError(
|
299
|
+
"This implementation of Object.defineProperty does not " +
|
300
|
+
"support configurable, enumerable, or writable."
|
301
|
+
);
|
302
|
+
*/
|
303
|
+
|
304
|
+
if (supportsAccessors && (lookupGetter(object, property) ||
|
305
|
+
lookupSetter(object, property)))
|
306
|
+
{
|
307
|
+
// As accessors are supported only on engines implementing
|
308
|
+
// `__proto__` we can safely override `__proto__` while defining
|
309
|
+
// a property to make sure that we don't hit an inherited
|
310
|
+
// accessor.
|
311
|
+
var prototype = object.__proto__;
|
312
|
+
object.__proto__ = prototypeOfObject;
|
313
|
+
// Deleting a property anyway since getter / setter may be
|
314
|
+
// defined on object itself.
|
315
|
+
delete object[property];
|
316
|
+
object[property] = descriptor.value;
|
317
|
+
// Setting original `__proto__` back now.
|
318
|
+
object.__proto__ = prototype;
|
319
|
+
} else {
|
320
|
+
object[property] = descriptor.value;
|
321
|
+
}
|
322
|
+
} else {
|
323
|
+
if (!supportsAccessors) {
|
324
|
+
throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);
|
325
|
+
}
|
326
|
+
// If we got that far then getters and setters can be defined !!
|
327
|
+
if (owns(descriptor, "get")) {
|
328
|
+
defineGetter(object, property, descriptor.get);
|
329
|
+
}
|
330
|
+
if (owns(descriptor, "set")) {
|
331
|
+
defineSetter(object, property, descriptor.set);
|
332
|
+
}
|
333
|
+
}
|
334
|
+
return object;
|
335
|
+
};
|
336
|
+
}
|
337
|
+
|
338
|
+
// ES5 15.2.3.7
|
339
|
+
// http://es5.github.com/#x15.2.3.7
|
340
|
+
if (!Object.defineProperties || definePropertiesFallback) {
|
341
|
+
Object.defineProperties = function defineProperties(object, properties) {
|
342
|
+
// make a valiant attempt to use the real defineProperties
|
343
|
+
if (definePropertiesFallback) {
|
344
|
+
try {
|
345
|
+
return definePropertiesFallback.call(Object, object, properties);
|
346
|
+
} catch (exception) {
|
347
|
+
// try the shim if the real one doesn't work
|
348
|
+
}
|
349
|
+
}
|
350
|
+
|
351
|
+
for (var property in properties) {
|
352
|
+
if (owns(properties, property) && property != "__proto__") {
|
353
|
+
Object.defineProperty(object, property, properties[property]);
|
354
|
+
}
|
355
|
+
}
|
356
|
+
return object;
|
357
|
+
};
|
358
|
+
}
|
359
|
+
|
360
|
+
// ES5 15.2.3.8
|
361
|
+
// http://es5.github.com/#x15.2.3.8
|
362
|
+
if (!Object.seal) {
|
363
|
+
Object.seal = function seal(object) {
|
364
|
+
// this is misleading and breaks feature-detection, but
|
365
|
+
// allows "securable" code to "gracefully" degrade to working
|
366
|
+
// but insecure code.
|
367
|
+
return object;
|
368
|
+
};
|
369
|
+
}
|
370
|
+
|
371
|
+
// ES5 15.2.3.9
|
372
|
+
// http://es5.github.com/#x15.2.3.9
|
373
|
+
if (!Object.freeze) {
|
374
|
+
Object.freeze = function freeze(object) {
|
375
|
+
// this is misleading and breaks feature-detection, but
|
376
|
+
// allows "securable" code to "gracefully" degrade to working
|
377
|
+
// but insecure code.
|
378
|
+
return object;
|
379
|
+
};
|
380
|
+
}
|
381
|
+
|
382
|
+
// detect a Rhino bug and patch it
|
383
|
+
try {
|
384
|
+
Object.freeze(function () {});
|
385
|
+
} catch (exception) {
|
386
|
+
Object.freeze = (function freeze(freezeObject) {
|
387
|
+
return function freeze(object) {
|
388
|
+
if (typeof object == "function") {
|
389
|
+
return object;
|
390
|
+
} else {
|
391
|
+
return freezeObject(object);
|
392
|
+
}
|
393
|
+
};
|
394
|
+
})(Object.freeze);
|
395
|
+
}
|
396
|
+
|
397
|
+
// ES5 15.2.3.10
|
398
|
+
// http://es5.github.com/#x15.2.3.10
|
399
|
+
if (!Object.preventExtensions) {
|
400
|
+
Object.preventExtensions = function preventExtensions(object) {
|
401
|
+
// this is misleading and breaks feature-detection, but
|
402
|
+
// allows "securable" code to "gracefully" degrade to working
|
403
|
+
// but insecure code.
|
404
|
+
return object;
|
405
|
+
};
|
406
|
+
}
|
407
|
+
|
408
|
+
// ES5 15.2.3.11
|
409
|
+
// http://es5.github.com/#x15.2.3.11
|
410
|
+
if (!Object.isSealed) {
|
411
|
+
Object.isSealed = function isSealed(object) {
|
412
|
+
return false;
|
413
|
+
};
|
414
|
+
}
|
415
|
+
|
416
|
+
// ES5 15.2.3.12
|
417
|
+
// http://es5.github.com/#x15.2.3.12
|
418
|
+
if (!Object.isFrozen) {
|
419
|
+
Object.isFrozen = function isFrozen(object) {
|
420
|
+
return false;
|
421
|
+
};
|
422
|
+
}
|
423
|
+
|
424
|
+
// ES5 15.2.3.13
|
425
|
+
// http://es5.github.com/#x15.2.3.13
|
426
|
+
if (!Object.isExtensible) {
|
427
|
+
Object.isExtensible = function isExtensible(object) {
|
428
|
+
// 1. If Type(O) is not Object throw a TypeError exception.
|
429
|
+
if (Object(object) !== object) {
|
430
|
+
throw new TypeError(); // TODO message
|
431
|
+
}
|
432
|
+
// 2. Return the Boolean value of the [[Extensible]] internal property of O.
|
433
|
+
var name = '';
|
434
|
+
while (owns(object, name)) {
|
435
|
+
name += '?';
|
436
|
+
}
|
437
|
+
object[name] = true;
|
438
|
+
var returnValue = owns(object, name);
|
439
|
+
delete object[name];
|
440
|
+
return returnValue;
|
441
|
+
};
|
442
|
+
}
|
443
|
+
|
444
|
+
});
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["es5-sham.js"],"names":["definition","define","YUI","add","call","Function","prototype","prototypeOfObject","Object","owns","bind","hasOwnProperty","defineGetter","defineSetter","lookupGetter","lookupSetter","supportsAccessors","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__","getPrototypeOf","object","__proto__","constructor","doesGetOwnPropertyDescriptorWork","sentinel","getOwnPropertyDescriptor","value","exception","defineProperty","getOwnPropertyDescriptorWorksOnObject","getOwnPropertyDescriptorWorksOnDom","document","createElement","getOwnPropertyDescriptorFallback","ERR_NON_OBJECT","property","TypeError","descriptor","enumerable","configurable","getter","setter","get","set","writable","getOwnPropertyNames","keys","create","createEmpty","supportsProto","iframe","parent","body","documentElement","style","display","appendChild","src","empty","contentWindow","removeChild","propertyIsEnumerable","isPrototypeOf","toLocaleString","toString","valueOf","Empty","properties","Type","defineProperties","doesDefinePropertyWork","definePropertyWorksOnObject","definePropertyWorksOnDom","definePropertyFallback","definePropertiesFallback","ERR_NON_OBJECT_DESCRIPTOR","ERR_NON_OBJECT_TARGET","ERR_ACCESSORS_NOT_SUPPORTED","seal","freeze","freezeObject","preventExtensions","isSealed","isFrozen","isExtensible","name","returnValue"],"mappings":"CAIA,SAAWA,YAEP,SAAWC,SAAU,WAAY,CAC7BA,OAAOD,gBAEJ,UAAWE,MAAO,WAAY,CACjCA,IAAIC,IAAI,WAAYH,gBAEjB,CACHA,gBAEL,WAGH,GAAII,MAAOC,SAASC,UAAUF,IAC9B,IAAIG,mBAAoBC,OAAOF,SAC/B,IAAIG,MAAOL,KAAKM,KAAKH,kBAAkBI,eAGvC,IAAIC,aACJ,IAAIC,aACJ,IAAIC,aACJ,IAAIC,aACJ,IAAIC,kBACJ,IAAKA,kBAAoBP,KAAKF,kBAAmB,oBAAsB,CACnEK,aAAeR,KAAKM,KAAKH,kBAAkBU,iBAC3CJ,cAAeT,KAAKM,KAAKH,kBAAkBW,iBAC3CJ,cAAeV,KAAKM,KAAKH,kBAAkBY,iBAC3CJ,cAAeX,KAAKM,KAAKH,kBAAkBa,kBAK/C,IAAKZ,OAAOa,eAAgB,CAIxBb,OAAOa,eAAiB,QAASA,gBAAeC,QAC5C,MAAOA,QAAOC,YACVD,OAAOE,YACDF,OAAOE,YAAYlB,UACnBC,oBAQlB,QAASkB,kCAAiCH,QACtC,IACIA,OA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1D,QAIxB,MAAOA,SAMf,IAAKd,OAAOyE,OAAQ,CAChBzE,OAAOyE,OAAS,QAASA,QAAO3D,QAI5B,MAAOA,SAKf,IACId,OAAOyE,OAAO,cAChB,MAAOpD,WACLrB,OAAOyE,OAAS,QAAUA,QAAOC,cAC7B,MAAO,SAASD,QAAO3D,QACnB,SAAWA,SAAU,WAAY,CAC7B,MAAOA,YACJ,CACH,MAAO4D,cAAa5D,WAG7Bd,OAAOyE,QAKd,IAAKzE,OAAO2E,kBAAmB,CAC3B3E,OAAO2E,kBAAoB,QAASA,mBAAkB7D,QAIlD,MAAOA,SAMf,IAAKd,OAAO4E,SAAU,CAClB5E,OAAO4E,SAAW,QAASA,UAAS9D,QAChC,MAAO,QAMf,IAAKd,OAAO6E,SAAU,CAClB7E,OAAO6E,SAAW,QAASA,UAAS/D,QAChC,MAAO,QAMf,IAAKd,OAAO8E,aAAc,CACtB9E,OAAO8E,aAAe,QAASA,cAAahE,QAExC,GAAId,OAAOc,UAAYA,OAAQ,CAC3B,KAAM,IAAIgB,WAGd,GAAIiD,MAAO,EACX,OAAO9E,KAAKa,OAAQiE,MAAO,CACvBA,MAAQ,IAEZjE,OAAOiE,MAAQ,IACf,IAAIC,aAAc/E,KAAKa,OAAQiE,YACxBjE,QAAOiE,KACd,OAAOC"}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
(function(definition){if(typeof define=="function"){define(definition)}else if(typeof YUI=="function"){YUI.add("es5-sham",definition)}else{definition()}})(function(){var call=Function.prototype.call;var prototypeOfObject=Object.prototype;var owns=call.bind(prototypeOfObject.hasOwnProperty);var defineGetter;var defineSetter;var lookupGetter;var lookupSetter;var supportsAccessors;if(supportsAccessors=owns(prototypeOfObject,"__defineGetter__")){defineGetter=call.bind(prototypeOfObject.__defineGetter__);defineSetter=call.bind(prototypeOfObject.__defineSetter__);lookupGetter=call.bind(prototypeOfObject.__lookupGetter__);lookupSetter=call.bind(prototypeOfObject.__lookupSetter__)}if(!Object.getPrototypeOf){Object.getPrototypeOf=function getPrototypeOf(object){return object.__proto__||(object.constructor?object.constructor.prototype:prototypeOfObject)}}function doesGetOwnPropertyDescriptorWork(object){try{object.sentinel=0;return Object.getOwnPropertyDescriptor(object,"sentinel").value===0}catch(exception){}}if(Object.defineProperty){var getOwnPropertyDescriptorWorksOnObject=doesGetOwnPropertyDescriptorWork({});var getOwnPropertyDescriptorWorksOnDom=typeof document=="undefined"||doesGetOwnPropertyDescriptorWork(document.createElement("div"));if(!getOwnPropertyDescriptorWorksOnDom||!getOwnPropertyDescriptorWorksOnObject){var getOwnPropertyDescriptorFallback=Object.getOwnPropertyDescriptor}}if(!Object.getOwnPropertyDescriptor||getOwnPropertyDescriptorFallback){var ERR_NON_OBJECT="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function getOwnPropertyDescriptor(object,property){if(typeof object!="object"&&typeof object!="function"||object===null){throw new TypeError(ERR_NON_OBJECT+object)}if(getOwnPropertyDescriptorFallback){try{return getOwnPropertyDescriptorFallback.call(Object,object,property)}catch(exception){}}if(!owns(object,property)){return}var descriptor={enumerable:true,configurable:true};if(supportsAccessors){var prototype=object.__proto__;object.__proto__=prototypeOfObject;var getter=lookupGetter(object,property);var setter=lookupSetter(object,property);object.__proto__=prototype;if(getter||setter){if(getter){descriptor.get=getter}if(setter){descriptor.set=setter}return descriptor}}descriptor.value=object[property];descriptor.writable=true;return descriptor}}if(!Object.getOwnPropertyNames){Object.getOwnPropertyNames=function getOwnPropertyNames(object){return Object.keys(object)}}if(!Object.create){var createEmpty;var supportsProto=Object.prototype.__proto__===null;if(supportsProto||typeof document=="undefined"){createEmpty=function(){return{__proto__:null}}}else{createEmpty=function(){var iframe=document.createElement("iframe");var parent=document.body||document.documentElement;iframe.style.display="none";parent.appendChild(iframe);iframe.src="javascript:";var empty=iframe.contentWindow.Object.prototype;parent.removeChild(iframe);iframe=null;delete empty.constructor;delete empty.hasOwnProperty;delete empty.propertyIsEnumerable;delete empty.isPrototypeOf;delete empty.toLocaleString;delete empty.toString;delete empty.valueOf;empty.__proto__=null;function Empty(){}Empty.prototype=empty;createEmpty=function(){return new Empty};return new Empty}}Object.create=function create(prototype,properties){var object;function Type(){}if(prototype===null){object=createEmpty()}else{if(typeof prototype!=="object"&&typeof prototype!=="function"){throw new TypeError("Object prototype may only be an Object or null")}Type.prototype=prototype;object=new Type;object.__proto__=prototype}if(properties!==void 0){Object.defineProperties(object,properties)}return object}}function doesDefinePropertyWork(object){try{Object.defineProperty(object,"sentinel",{});return"sentinel"in object}catch(exception){}}if(Object.defineProperty){var definePropertyWorksOnObject=doesDefinePropertyWork({});var definePropertyWorksOnDom=typeof document=="undefined"||doesDefinePropertyWork(document.createElement("div"));if(!definePropertyWorksOnObject||!definePropertyWorksOnDom){var definePropertyFallback=Object.defineProperty,definePropertiesFallback=Object.defineProperties}}if(!Object.defineProperty||definePropertyFallback){var ERR_NON_OBJECT_DESCRIPTOR="Property description must be an object: ";var ERR_NON_OBJECT_TARGET="Object.defineProperty called on non-object: ";var ERR_ACCESSORS_NOT_SUPPORTED="getters & setters can not be defined "+"on this javascript engine";Object.defineProperty=function defineProperty(object,property,descriptor){if(typeof object!="object"&&typeof object!="function"||object===null){throw new TypeError(ERR_NON_OBJECT_TARGET+object)}if(typeof descriptor!="object"&&typeof descriptor!="function"||descriptor===null){throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR+descriptor)}if(definePropertyFallback){try{return definePropertyFallback.call(Object,object,property,descriptor)}catch(exception){}}if(owns(descriptor,"value")){if(supportsAccessors&&(lookupGetter(object,property)||lookupSetter(object,property))){var prototype=object.__proto__;object.__proto__=prototypeOfObject;delete object[property];object[property]=descriptor.value;object.__proto__=prototype}else{object[property]=descriptor.value}}else{if(!supportsAccessors){throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED)}if(owns(descriptor,"get")){defineGetter(object,property,descriptor.get)}if(owns(descriptor,"set")){defineSetter(object,property,descriptor.set)}}return object}}if(!Object.defineProperties||definePropertiesFallback){Object.defineProperties=function defineProperties(object,properties){if(definePropertiesFallback){try{return definePropertiesFallback.call(Object,object,properties)}catch(exception){}}for(var property in properties){if(owns(properties,property)&&property!="__proto__"){Object.defineProperty(object,property,properties[property])}}return object}}if(!Object.seal){Object.seal=function seal(object){return object}}if(!Object.freeze){Object.freeze=function freeze(object){return object}}try{Object.freeze(function(){})}catch(exception){Object.freeze=function freeze(freezeObject){return function freeze(object){if(typeof object=="function"){return object}else{return freezeObject(object)}}}(Object.freeze)}if(!Object.preventExtensions){Object.preventExtensions=function preventExtensions(object){return object}}if(!Object.isSealed){Object.isSealed=function isSealed(object){return false}}if(!Object.isFrozen){Object.isFrozen=function isFrozen(object){return false}}if(!Object.isExtensible){Object.isExtensible=function isExtensible(object){if(Object(object)!==object){throw new TypeError}var name="";while(owns(object,name)){name+="?"}object[name]=true;var returnValue=owns(object,name);delete object[name];return returnValue}}});
|
2
|
+
/*
|
3
|
+
//@ sourceMappingURL=es5-sham.map
|
4
|
+
*/
|