ende 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/build/build.css +112 -0
- data/build/build.js +36465 -0
- data/component.json +11 -15
- data/components/chaijs/assertion-error/1.0.0/component.json +18 -0
- data/components/chaijs/chai/1.9.1/.gitignore +22 -0
- data/components/chaijs/chai/1.9.1/.mailmap +1 -0
- data/components/chaijs/chai/1.9.1/.npmignore +14 -0
- data/components/chaijs/chai/1.9.1/.travis.yml +14 -0
- data/components/chaijs/chai/1.9.1/CONTRIBUTING.md +173 -0
- data/components/chaijs/chai/1.9.1/History.md +895 -0
- data/components/chaijs/chai/1.9.1/Makefile +93 -0
- data/components/chaijs/chai/1.9.1/README.md +99 -0
- data/components/chaijs/chai/1.9.1/ReleaseNotes.md +482 -0
- data/components/chaijs/chai/1.9.1/bower.json +27 -0
- data/components/chaijs/chai/1.9.1/chai.js +4782 -0
- data/components/chaijs/chai/1.9.1/component.json +50 -0
- data/components/chaijs/chai/1.9.1/karma.conf.js +28 -0
- data/components/chaijs/chai/1.9.1/karma.sauce.js +41 -0
- data/components/chaijs/chai/1.9.1/lib/chai/assertion.js +130 -0
- data/components/chaijs/chai/1.9.1/lib/chai/config.js +50 -0
- data/components/chaijs/chai/1.9.1/lib/chai/core/assertions.js +1314 -0
- data/components/chaijs/chai/1.9.1/lib/chai/interface/assert.js +1056 -0
- data/components/chaijs/chai/1.9.1/lib/chai/interface/expect.js +12 -0
- data/components/chaijs/chai/1.9.1/lib/chai/interface/should.js +78 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/addChainableMethod.js +111 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/addMethod.js +43 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/addProperty.js +40 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/flag.js +32 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/getActual.js +18 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/getEnumerableProperties.js +25 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/getMessage.js +49 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/getName.js +20 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/getPathValue.js +102 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/getProperties.js +35 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/index.js +114 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/objDisplay.js +49 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/overwriteChainableMethod.js +53 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/overwriteMethod.js +51 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/overwriteProperty.js +54 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/test.js +26 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/transferFlags.js +44 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/type.js +45 -0
- data/components/chaijs/chai/1.9.1/lib/chai.js +87 -0
- data/components/chaijs/chai/1.9.1/package.json +42 -0
- data/components/chaijs/chai/1.9.1/sauce.browsers.js +128 -0
- data/components/chaijs/chai/1.9.1/support/sauce/sauce_connect_block.sh +7 -0
- data/components/chaijs/chai/1.9.1/support/sauce/sauce_connect_setup.sh +53 -0
- data/components/chaijs/chai/1.9.1/test/assert.js +638 -0
- data/components/chaijs/chai/1.9.1/test/bootstrap/index.js +22 -0
- data/components/chaijs/chai/1.9.1/test/bootstrap/karma.js +22 -0
- data/components/chaijs/chai/1.9.1/test/configuration.js +133 -0
- data/components/chaijs/chai/1.9.1/test/display/errors.js +14 -0
- data/components/chaijs/chai/1.9.1/test/display/message.js +47 -0
- data/components/chaijs/chai/1.9.1/test/expect.js +814 -0
- data/components/chaijs/chai/1.9.1/test/globalShould.js +15 -0
- data/components/chaijs/chai/1.9.1/test/plugins.js +24 -0
- data/components/chaijs/chai/1.9.1/test/should.js +744 -0
- data/components/chaijs/chai/1.9.1/test/utilities.js +309 -0
- data/components/chaijs/deep-eql/0.1.3/component.json +20 -0
- data/components/chaijs/deep-eql/0.1.3/lib/eql.js +257 -0
- data/components/chaijs/type-detect/0.1.1/component.json +18 -0
- data/components/chaijs/type-detect/0.1.1/lib/type.js +142 -0
- data/{vendor/components/indefinido-indemma/components/component-bind → components/component/bind/0.0.1}/component.json +1 -1
- data/{vendor/components/component-classes → components/component/classes/1.1.2}/component.json +1 -1
- data/components/component/classes/1.2.1/component.json +19 -0
- data/components/component/classes/1.2.1/index.js +184 -0
- data/{vendor/components/component-css → components/component/css/0.0.2}/component.json +2 -2
- data/{vendor/components/component-delegate → components/component/delegate/0.1.0}/component.json +2 -2
- data/components/component/dialog/0.2.0/component.json +35 -0
- data/{vendor/components/component-dialog → components/component/dialog/0.2.0}/index.js +74 -40
- data/components/component/dialog/0.2.0/template.html +9 -0
- data/{vendor/components/component-dom → components/component/dom/0.7.1}/component.json +6 -4
- data/{vendor/components/component-domify → components/component/domify/1.0.0}/component.json +6 -4
- data/components/component/domify/1.2.2/component.json +22 -0
- data/components/component/domify/1.2.2/index.js +87 -0
- data/{vendor/components/component-emitter → components/component/emitter/1.0.0}/component.json +1 -1
- data/{vendor/components/component-event → components/component/event/0.1.0}/component.json +3 -3
- data/components/component/event/0.1.0/index.js +40 -0
- data/components/component/event/0.1.3/component.json +13 -0
- data/{vendor/components/component-event → components/component/event/0.1.3}/index.js +3 -5
- data/{vendor/components/component-indexof → components/component/indexof/0.0.1}/component.json +1 -1
- data/{vendor/components/indefinido-indemma/components/component-jquery → components/component/jquery/1.9.1}/component.json +1 -1
- data/{vendor/components/component-matches-selector → components/component/matches-selector/0.1.2}/component.json +6 -4
- data/{vendor/components/component-overlay → components/component/overlay/0.1.1}/component.json +1 -1
- data/{vendor/components/component-query → components/component/query/0.0.1}/component.json +6 -4
- data/components/component/query/0.0.3/component.json +23 -0
- data/components/component/query/0.0.3/index.js +21 -0
- data/{vendor/components/component-querystring → components/component/querystring/1.3.0}/component.json +4 -3
- data/{vendor/components/component-querystring → components/component/querystring/1.3.0}/index.js +26 -2
- data/{vendor/components/component-sort → components/component/sort/0.0.3}/component.json +2 -2
- data/{vendor/components/component-trim → components/component/trim/0.0.1}/component.json +1 -1
- data/{vendor/components/indefinido-indemma/components/component-type → components/component/type/1.0.0}/component.json +4 -2
- data/{vendor/components/component-value → components/component/value/1.1.0}/component.json +6 -4
- data/{vendor/components/components-modernizr → components/components/modernizr/2.6.2}/component.json +2 -3
- data/{vendor/components/indefinido-indemma/components/indefinido-advisable → components/indefinido/advisable/master}/component.json +2 -2
- data/components/indefinido/indemma/master/History.md +0 -0
- data/components/indefinido/indemma/master/build/build.js +26288 -0
- data/components/indefinido/indemma/master/build/development.js +22200 -0
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/build/release.js +264 -273
- data/components/indefinido/indemma/master/build/test.js +22200 -0
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/component.json +6 -6
- data/components/indefinido/indemma/master/components/chaijs-assertion-error/index.js +110 -0
- data/components/indefinido/indemma/master/components/chaijs-chai/index.js +1 -0
- data/components/indefinido/indemma/master/components/chaijs-chai/lib/chai/utils/inspect.js +320 -0
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/associable.js +2 -14
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/rest.js +2 -7
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/restfulable.js +9 -33
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/scopable.js +45 -16
- data/components/indefinido/indemma/master/lib/record/validatable.js +1100 -0
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/associable_spec.js +2 -3
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/scopable_spec.js +53 -83
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/validations/cpf_spec.js +6 -5
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/associable.coffee +0 -6
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/persistable.coffee +0 -2
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/queryable.coffee +2 -1
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/resource.coffee +2 -3
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/rest.coffee +1 -7
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/restfulable.coffee +8 -34
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/scopable.coffee +31 -32
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/validatable.coffee +1 -12
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/associable_spec.coffee +2 -3
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/scopable_spec.coffee +43 -76
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/validations/cpf_spec.coffee +4 -3
- data/{vendor/components/mikeric-rivets → components/mikeric/rivets/v0.5.12}/component.json +2 -2
- data/{vendor/components/paulmillr-es6-shim → components/paulmillr/es6-shim/0.10.1}/component.json +11 -4
- data/components/paulmillr/es6-shim/0.10.1/es6-shim.js +1833 -0
- data/{vendor/components/pluma-assimilate → components/pluma/assimilate/0.3.0}/component.json +3 -3
- data/{vendor/components/segmentio-extend → components/segmentio/extend/1.0.0}/component.json +3 -3
- data/lib/assets/javascripts/aura/extensions/models.js.coffee.erb +14 -14
- data/lib/assets/javascripts/aura/extensions/rivets/accounting.js.coffee +1 -1
- data/lib/assets/javascripts/aura/extensions/rivets.js.coffee +3 -3
- data/lib/assets/javascripts/aura/extensions/stamps/stampit.js +568 -242
- data/lib/assets/javascripts/aura/extensions/widget/#composable.js.coffee# +135 -0
- data/lib/assets/javascripts/aura/extensions/widget/composable.js.coffee +2 -2
- data/lib/assets/javascripts/config/load_components.js.coffee +10 -10
- data/lib/assets/javascripts/ende.js.coffee +21 -18
- data/lib/assets/javascripts/widgets/support/adapters/olark.js +1 -4
- data/lib/assets/javascripts/widgets/viewer/main.js.coffee +8 -4
- data/lib/assets/javascripts/widgets/viewer/plugins/scopable.js.coffee +6 -7
- data/lib/ende/version.rb +1 -1
- data/vendor/assets/components/build.css +4 -3
- data/vendor/assets/components/ende_build.js +29772 -21943
- metadata +284 -217
- data/vendor/components/KapIT-observe-utils/component.json +0 -16
- data/vendor/components/KapIT-observe-utils/lib/observe-utils.js +0 -780
- data/vendor/components/component-dialog/component.json +0 -23
- data/vendor/components/component-dialog/template.js +0 -1
- data/vendor/components/indefinido-indemma/build/development.js +0 -343
- data/vendor/components/indefinido-indemma/build/test.js +0 -343
- data/vendor/components/indefinido-indemma/lib/record/validatable.js +0 -224
- data/vendor/components/indefinido-observable/component.json +0 -24
- data/vendor/components/indefinido-observable/index.js +0 -1
- data/vendor/components/indefinido-observable/lib/adapters/rivets.js +0 -28
- data/vendor/components/indefinido-observable/lib/observable.js +0 -390
- data/vendor/components/indefinido-observable/vendor/shims/accessors-legacy.js +0 -92
- data/vendor/components/indefinido-observable/vendor/shims/accessors.js +0 -248
- data/vendor/components/indefinido-observable/vendor/shims/array.indexOf.js +0 -8
- data/vendor/components/indefinido-observable/vendor/shims/object.create.js +0 -77
- data/vendor/components/paulmillr-es6-shim/es6-shim.js +0 -996
- /data/{vendor/components/indefinido-indemma/components/chaijs-assertion-error → components/chaijs/assertion-error/1.0.0}/index.js +0 -0
- /data/{vendor/components/indefinido-indemma/components/chaijs-chai → components/chaijs/chai/1.9.1}/index.js +0 -0
- /data/{vendor/components/indefinido-indemma/components/chaijs-chai → components/chaijs/chai/1.9.1}/lib/chai/utils/inspect.js +0 -0
- /data/{vendor/components/indefinido-indemma/History.md → components/chaijs/chai/1.9.1/test/auth/.gitkeep} +0 -0
- /data/{vendor/components/component-bind → components/component/bind/0.0.1}/index.js +0 -0
- /data/{vendor/components/component-classes → components/component/classes/1.1.2}/index.js +0 -0
- /data/{vendor/components/component-css → components/component/css/0.0.2}/index.js +0 -0
- /data/{vendor/components/component-delegate → components/component/delegate/0.1.0}/index.js +0 -0
- /data/{vendor/components/component-dialog → components/component/dialog/0.2.0}/dialog.css +0 -0
- /data/{vendor/components/component-dom → components/component/dom/0.7.1}/index.js +0 -0
- /data/{vendor/components/component-domify → components/component/domify/1.0.0}/index.js +0 -0
- /data/{vendor/components/component-emitter → components/component/emitter/1.0.0}/index.js +0 -0
- /data/{vendor/components/component-indexof → components/component/indexof/0.0.1}/index.js +0 -0
- /data/{vendor/components/component-jquery → components/component/jquery/1.9.1}/index.js +0 -0
- /data/{vendor/components/component-matches-selector → components/component/matches-selector/0.1.2}/index.js +0 -0
- /data/{vendor/components/component-overlay → components/component/overlay/0.1.1}/index.js +0 -0
- /data/{vendor/components/component-overlay → components/component/overlay/0.1.1}/overlay.css +0 -0
- /data/{vendor/components/component-overlay → components/component/overlay/0.1.1}/template.js +0 -0
- /data/{vendor/components/component-query → components/component/query/0.0.1}/index.js +0 -0
- /data/{vendor/components/component-sort → components/component/sort/0.0.3}/index.js +0 -0
- /data/{vendor/components/component-trim → components/component/trim/0.0.1}/index.js +0 -0
- /data/{vendor/components/component-type → components/component/type/1.0.0}/index.js +0 -0
- /data/{vendor/components/component-value → components/component/value/1.1.0}/index.js +0 -0
- /data/{vendor/components/components-modernizr → components/components/modernizr/2.6.2}/modernizr.js +0 -0
- /data/{vendor/components/indefinido-advisable → components/indefinido/advisable/master}/index.js +0 -0
- /data/{vendor/components/indefinido-advisable → components/indefinido/advisable/master}/lib/advisable.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/.gitignore +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/.ruby-gemset +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/.ruby-version +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/Gemfile +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/Guardfile +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/Readme.md +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-assertion-error/component.json +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/component.json +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/assertion.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/core/assertions.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/interface/assert.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/interface/expect.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/interface/should.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/addChainableMethod.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/addMethod.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/addProperty.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/eql.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/flag.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/getActual.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/getEnumerableProperties.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/getMessage.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/getName.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/getPathValue.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/getProperties.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/index.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/objDisplay.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/overwriteMethod.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/overwriteProperty.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/test.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/transferFlags.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/type.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai.js +0 -0
- /data/{vendor → components/indefinido/indemma/master}/components/component-bind/component.json +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/component-bind/index.js +0 -0
- /data/{vendor → components/indefinido/indemma/master}/components/component-jquery/component.json +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/component-jquery/index.js +0 -0
- /data/{vendor → components/indefinido/indemma/master}/components/component-type/component.json +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/component-type/index.js +0 -0
- /data/{vendor → components/indefinido/indemma/master}/components/indefinido-advisable/component.json +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/indefinido-advisable/index.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/indefinido-advisable/lib/advisable.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/indefinido-observable/component.json +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/indefinido-observable/components/cjohansen-sinon/sinon.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/indefinido-observable/index.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/indefinido-observable/lib/adapters/rivets.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/indefinido-observable/lib/observable.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/indefinido-observable/vendor/shims/accessors-legacy.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/indefinido-observable/vendor/shims/accessors.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/indefinido-observable/vendor/shims/array.indexOf.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/indefinido-observable/vendor/shims/object.create.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/kapit-observe-utils/component.json +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/paulmillr-es6-shim/component.json +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/paulmillr-es6-shim/es6-shim.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/pluma-assimilate/component.json +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/pluma-assimilate/dist/assimilate.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/index.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/karma.conf.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/extensions/rivets.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/errors.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/maid.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/persistable.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/queryable.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/resource.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/storable.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/translationable.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/validations/associated.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/validations/confirmation.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/validations/cpf.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/validations/presence.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/validations/remote.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/validations/type.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/validations/validatorable.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/package.json +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/persistable_spec.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/queryable_spec.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/resource_spec.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/rest_spec.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/restfulable_spec.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/storable_spec.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/translationable.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/validatable_spec.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/validations/associated_spec.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/validations/confirmation_spec.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/validations/presence_spec.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/validations/remote_spec.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/validations/type_spec.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record_spec.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/spec_helper.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/support/value_objects/phone.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/extensions/rivets.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/errors.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/maid.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/storable.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/translationable.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/validations/associated.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/validations/confirmation.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/validations/cpf.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/validations/presence.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/validations/remote.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/validations/type.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/validations/validatorable.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/persistable_spec.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/queryable_spec.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/resource_spec.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/rest_spec.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/restfulable_spec.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/storable_spec.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/translationable.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/validatable_spec.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/validations/associated_spec.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/validations/confirmation_spec.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/validations/presence_spec.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/validations/remote_spec.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/validations/type_spec.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record_spec.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/spec_helper.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/support/value_objects/phone.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/vendor/object/mixin.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/vendor/owl/pluralize.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/vendor/sinon.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/vendor/stampit.js +0 -0
- /data/{vendor/components/mikeric-rivets → components/mikeric/rivets/v0.5.12}/dist/rivets.js +0 -0
- /data/{vendor/components/pluma-assimilate → components/pluma/assimilate/0.3.0}/dist/assimilate.js +0 -0
- /data/{vendor/components/segmentio-extend → components/segmentio/extend/1.0.0}/index.js +0 -0
data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/build/release.js
RENAMED
@@ -26,10 +26,14 @@ function require(path, parent, orig) {
|
|
26
26
|
// perform real require()
|
27
27
|
// by invoking the module's
|
28
28
|
// registered function
|
29
|
-
if (!module.exports) {
|
30
|
-
|
31
|
-
|
32
|
-
|
29
|
+
if (!module._resolving && !module.exports) {
|
30
|
+
var mod = {};
|
31
|
+
mod.exports = {};
|
32
|
+
mod.client = mod.component = true;
|
33
|
+
module._resolving = true;
|
34
|
+
module.call(this, mod.exports, require.relative(resolved), mod);
|
35
|
+
delete module._resolving;
|
36
|
+
module.exports = mod.exports;
|
33
37
|
}
|
34
38
|
|
35
39
|
return module.exports;
|
@@ -20177,8 +20181,7 @@ plural = {
|
|
20177
20181
|
},
|
20178
20182
|
push: function() {
|
20179
20183
|
console.warn("" + this.resource + ".push is deprecated and will be removed, please use add instead");
|
20180
|
-
Array.prototype.push.apply(this, arguments);
|
20181
|
-
return arguments[0];
|
20184
|
+
return Array.prototype.push.apply(this, arguments);
|
20182
20185
|
},
|
20183
20186
|
length: 0,
|
20184
20187
|
json: function(methods, omissions) {
|
@@ -20190,18 +20193,7 @@ plural = {
|
|
20190
20193
|
_results.push(record.json(methods, omissions));
|
20191
20194
|
}
|
20192
20195
|
return _results;
|
20193
|
-
}
|
20194
|
-
find: function(id) {
|
20195
|
-
var resource, _i, _len;
|
20196
|
-
|
20197
|
-
for (_i = 0, _len = this.length; _i < _len; _i++) {
|
20198
|
-
resource = this[_i];
|
20199
|
-
if (resource._id === id) {
|
20200
|
-
return resource;
|
20201
|
-
}
|
20202
|
-
}
|
20203
|
-
},
|
20204
|
-
filter: Array.prototype.filter || (typeof _ !== "undefined" && _ !== null ? _.filter : void 0)
|
20196
|
+
}
|
20205
20197
|
};
|
20206
20198
|
|
20207
20199
|
singular = {
|
@@ -20745,7 +20737,7 @@ model.pluralize = resourceable.pluralize;
|
|
20745
20737
|
|
20746
20738
|
});
|
20747
20739
|
require.register("indemma/lib/record/rest.js", function(exports, require, module){
|
20748
|
-
var $,
|
20740
|
+
var $, request;
|
20749
20741
|
|
20750
20742
|
$ = require('jquery');
|
20751
20743
|
|
@@ -20764,7 +20756,7 @@ module.exports = {
|
|
20764
20756
|
}
|
20765
20757
|
};
|
20766
20758
|
|
20767
|
-
|
20759
|
+
request = function(method, url, data) {
|
20768
20760
|
var param_name;
|
20769
20761
|
|
20770
20762
|
param_name = this.resource.param_name || this.resource.toString();
|
@@ -20776,11 +20768,6 @@ data_for = function(data) {
|
|
20776
20768
|
delete data[param_name]['id'];
|
20777
20769
|
delete data[param_name]['_id'];
|
20778
20770
|
}
|
20779
|
-
return data;
|
20780
|
-
};
|
20781
|
-
|
20782
|
-
request = function(method, url, data) {
|
20783
|
-
data = data_for.call(this, data);
|
20784
20771
|
return $.ajax({
|
20785
20772
|
url: url,
|
20786
20773
|
data: data,
|
@@ -20879,11 +20866,7 @@ restful = {
|
|
20879
20866
|
data = {};
|
20880
20867
|
}
|
20881
20868
|
old_route = this.route;
|
20882
|
-
default_route =
|
20883
|
-
if (this.resource.scope != null) {
|
20884
|
-
default_route += this.resource.scope + '/';
|
20885
|
-
}
|
20886
|
-
default_route += this.resource.singular ? this.resource.name : model.pluralize(this.resource.name);
|
20869
|
+
default_route = "/" + (model.pluralize(this.resource.name));
|
20887
20870
|
if (default_route !== this.route) {
|
20888
20871
|
this.route = default_route;
|
20889
20872
|
}
|
@@ -20939,7 +20922,7 @@ restful = {
|
|
20939
20922
|
return promise;
|
20940
20923
|
},
|
20941
20924
|
assign_attributes: function(attributes) {
|
20942
|
-
var association, association_attributes, association_name, associations_attributes, attribute, message, name, singular_resource, _i, _j, _k, _l, _len, _len1, _len2, _len3,
|
20925
|
+
var association, association_attributes, association_name, associations_attributes, attribute, message, name, singular_resource, _i, _j, _k, _l, _len, _len1, _len2, _len3, _ref, _ref1, _ref2, _results;
|
20943
20926
|
|
20944
20927
|
_ref = model[this.resource.toString()].has_many;
|
20945
20928
|
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
@@ -20983,16 +20966,6 @@ restful = {
|
|
20983
20966
|
this[association_name] = this["build_" + association_name](association_attributes);
|
20984
20967
|
}
|
20985
20968
|
}
|
20986
|
-
_ref3 = model[this.resource.toString()].belongs_to;
|
20987
|
-
for (_m = 0, _len4 = _ref3.length; _m < _len4; _m++) {
|
20988
|
-
association_name = _ref3[_m];
|
20989
|
-
association_attributes = (_ref4 = (_ref5 = attributes[association_name]) != null ? typeof _ref5.json === "function" ? _ref5.json() : void 0 : void 0) != null ? _ref4 : attributes[association_name];
|
20990
|
-
delete attributes[association_name];
|
20991
|
-
delete attributes[association_name + "_attributes"];
|
20992
|
-
if (association_attributes) {
|
20993
|
-
this[association_name] = this["build_" + association_name](association_attributes);
|
20994
|
-
}
|
20995
|
-
}
|
20996
20969
|
_results = [];
|
20997
20970
|
for (name in attributes) {
|
20998
20971
|
attribute = attributes[name];
|
@@ -21147,11 +21120,11 @@ restful = {
|
|
21147
21120
|
return JSON.stringify(serialized);
|
21148
21121
|
}
|
21149
21122
|
},
|
21150
|
-
json: function(
|
21151
|
-
var definition, json,
|
21123
|
+
json: function(methods) {
|
21124
|
+
var definition, json, name, nature, nested, value;
|
21152
21125
|
|
21153
|
-
if (
|
21154
|
-
|
21126
|
+
if (methods == null) {
|
21127
|
+
methods = {};
|
21155
21128
|
}
|
21156
21129
|
json = {};
|
21157
21130
|
definition = model[this.resource.toString()];
|
@@ -21177,15 +21150,15 @@ restful = {
|
|
21177
21150
|
console.warn("json: Tryied to serialize nested attribute '" + name + "' without serialization method!");
|
21178
21151
|
continue;
|
21179
21152
|
}
|
21180
|
-
json["" + name + "_attributes"] = value.json(
|
21153
|
+
json["" + name + "_attributes"] = value.json(methods[name]);
|
21181
21154
|
} else if ((value.toJSON != null) || (value.json != null)) {
|
21182
21155
|
if (value.resource) {
|
21183
21156
|
continue;
|
21184
21157
|
}
|
21185
21158
|
if (value.json != null) {
|
21186
|
-
json[name] = value.json(
|
21159
|
+
json[name] = value.json(methods[name]);
|
21187
21160
|
} else {
|
21188
|
-
json[name] = value.toJSON(
|
21161
|
+
json[name] = value.toJSON(methods[name]);
|
21189
21162
|
}
|
21190
21163
|
} else {
|
21191
21164
|
continue;
|
@@ -21195,16 +21168,6 @@ restful = {
|
|
21195
21168
|
}
|
21196
21169
|
}
|
21197
21170
|
json = observable.unobserve(json);
|
21198
|
-
_ref1 = (_ref = options.methods) != null ? _ref : {};
|
21199
|
-
for (name in _ref1) {
|
21200
|
-
value = _ref1[name];
|
21201
|
-
method = this[name];
|
21202
|
-
if (typeof method === 'function') {
|
21203
|
-
json[name] = method();
|
21204
|
-
} else {
|
21205
|
-
json[name] = method;
|
21206
|
-
}
|
21207
|
-
}
|
21208
21171
|
delete json.dirty;
|
21209
21172
|
delete json.resource;
|
21210
21173
|
delete json.route;
|
@@ -21388,7 +21351,7 @@ scopable = {
|
|
21388
21351
|
return this.scope.fetch.call(this, data, done, fail);
|
21389
21352
|
},
|
21390
21353
|
forward_scopes_to_associations: function() {
|
21391
|
-
var associated_factory, associated_resource, association, association_name, factory, scope, _i, _j, _len, _len1, _ref, _ref1;
|
21354
|
+
var associated_factory, associated_resource, association, association_name, factory, forwarder, generate_forwarder, scope, _i, _j, _k, _l, _len, _len1, _len2, _len3, _len4, _m, _ref, _ref1, _ref2, _ref3, _ref4;
|
21392
21355
|
|
21393
21356
|
factory = model[this.resource.name];
|
21394
21357
|
_ref = factory.has_many;
|
@@ -21408,6 +21371,46 @@ scopable = {
|
|
21408
21371
|
association.scope(scope, associated_factory["$" + scope]);
|
21409
21372
|
}
|
21410
21373
|
}
|
21374
|
+
_ref2 = factory.has_one;
|
21375
|
+
for (_k = 0, _len2 = _ref2.length; _k < _len2; _k++) {
|
21376
|
+
associated_resource = _ref2[_k];
|
21377
|
+
if (!model[associated_resource]) {
|
21378
|
+
console.warn("Associated factory not found for associated resource: " + associated_resource);
|
21379
|
+
continue;
|
21380
|
+
}
|
21381
|
+
_ref3 = model[associated_resource].scope.declared;
|
21382
|
+
for (_l = 0, _len3 = _ref3.length; _l < _len3; _l++) {
|
21383
|
+
scope = _ref3[_l];
|
21384
|
+
this[associated_resource][scope] = factory[scope];
|
21385
|
+
}
|
21386
|
+
}
|
21387
|
+
if (factory.belongs_to.length) {
|
21388
|
+
generate_forwarder = function(associated_resource) {
|
21389
|
+
var declared_scopes;
|
21390
|
+
|
21391
|
+
associated_factory = model[associated_resource];
|
21392
|
+
if (!associated_factory) {
|
21393
|
+
return console.warn("Associated factory not found for associated resource: " + associated_resource);
|
21394
|
+
}
|
21395
|
+
declared_scopes = associated_factory.scope.declared;
|
21396
|
+
return function() {
|
21397
|
+
var _len4, _m, _results;
|
21398
|
+
|
21399
|
+
_results = [];
|
21400
|
+
for (_m = 0, _len4 = declared_scopes.length; _m < _len4; _m++) {
|
21401
|
+
scope = declared_scopes[_m];
|
21402
|
+
_results.push(this[associated_resource][scope] = associated_factory[scope]);
|
21403
|
+
}
|
21404
|
+
return _results;
|
21405
|
+
};
|
21406
|
+
};
|
21407
|
+
_ref4 = factory.belongs_to;
|
21408
|
+
for (_m = 0, _len4 = _ref4.length; _m < _len4; _m++) {
|
21409
|
+
associated_resource = _ref4[_m];
|
21410
|
+
forwarder = generate_forwarder(associated_resource);
|
21411
|
+
this.after("build_" + associated_resource, forwarder);
|
21412
|
+
}
|
21413
|
+
}
|
21411
21414
|
return true;
|
21412
21415
|
}
|
21413
21416
|
},
|
@@ -21507,13 +21510,11 @@ if (model.associable) {
|
|
21507
21510
|
promises.push(this.scope.fetch.call(this, data, null, scopable.record.failed));
|
21508
21511
|
reload = $.when.apply(jQuery, promises);
|
21509
21512
|
reload.done(function(records, status) {
|
21510
|
-
var association_name,
|
21513
|
+
var association_name, singular_resource, _i, _j, _len, _len1, _ref;
|
21511
21514
|
|
21515
|
+
Array.prototype.splice.call(this, 0);
|
21512
21516
|
if (!records.length) {
|
21513
|
-
|
21514
|
-
Array.prototype.splice.call(this, 0);
|
21515
|
-
}
|
21516
|
-
return true;
|
21517
|
+
return;
|
21517
21518
|
}
|
21518
21519
|
singular_resource = model.singularize(this.resource);
|
21519
21520
|
for (_i = 0, _len = records.length; _i < _len; _i++) {
|
@@ -21525,16 +21526,7 @@ if (model.associable) {
|
|
21525
21526
|
delete record[association_name];
|
21526
21527
|
}
|
21527
21528
|
}
|
21528
|
-
|
21529
|
-
for (index = _k = 0, _len2 = records.length; _k < _len2; index = ++_k) {
|
21530
|
-
record = records[index];
|
21531
|
-
if (target = this.find(record._id)) {
|
21532
|
-
target.assign_attributes(record);
|
21533
|
-
} else {
|
21534
|
-
create.push(record);
|
21535
|
-
}
|
21536
|
-
}
|
21537
|
-
this.add.apply(this, create);
|
21529
|
+
this.add.apply(this, records);
|
21538
21530
|
records.splice(0);
|
21539
21531
|
return records.push.apply(records, this);
|
21540
21532
|
});
|
@@ -21863,230 +21855,219 @@ module.exports = composed;
|
|
21863
21855
|
|
21864
21856
|
});
|
21865
21857
|
require.register("indemma/lib/record/validatable.js", function(exports, require, module){
|
21866
|
-
|
21858
|
+
(function() {
|
21859
|
+
var errorsable, extensions, initializers, manager, messages, observable, root, stampit, type;
|
21867
21860
|
|
21868
|
-
require('./translationable');
|
21861
|
+
require('./translationable');
|
21869
21862
|
|
21870
|
-
root = typeof exports !== "undefined" && exports !== null ? exports : this;
|
21871
|
-
|
21872
|
-
stampit = require('../../vendor/stampit');
|
21863
|
+
root = typeof exports !== "undefined" && exports !== null ? exports : this;
|
21873
21864
|
|
21874
|
-
|
21865
|
+
stampit = require('../../vendor/stampit');
|
21875
21866
|
|
21876
|
-
|
21867
|
+
observable = require('observable').mixin;
|
21877
21868
|
|
21878
|
-
|
21879
|
-
blank: function(attribute_name) {
|
21880
|
-
attribute_name = this.human_attribute_name(attribute_name);
|
21881
|
-
return "O campo " + attribute_name + " não pode ficar em branco.";
|
21882
|
-
},
|
21883
|
-
cpf: function(attribute_name) {
|
21884
|
-
attribute_name = this.human_attribute_name(attribute_name);
|
21885
|
-
return "O campo " + attribute_name + " não está válido.";
|
21886
|
-
},
|
21887
|
-
confirmation: function(attribute_name) {
|
21888
|
-
var confirmation_attribute_name;
|
21869
|
+
type = require('type');
|
21889
21870
|
|
21890
|
-
|
21891
|
-
|
21892
|
-
|
21893
|
-
|
21894
|
-
|
21895
|
-
|
21896
|
-
|
21897
|
-
|
21898
|
-
|
21899
|
-
|
21900
|
-
|
21901
|
-
|
21871
|
+
messages = {
|
21872
|
+
blank: function(attribute_name) {
|
21873
|
+
attribute_name = this.human_attribute_name(attribute_name);
|
21874
|
+
return "O campo " + attribute_name + " não pode ficar em branco.";
|
21875
|
+
},
|
21876
|
+
cpf: function(attribute_name) {
|
21877
|
+
attribute_name = this.human_attribute_name(attribute_name);
|
21878
|
+
return "O campo " + attribute_name + " não está válido.";
|
21879
|
+
},
|
21880
|
+
confirmation: function(attribute_name) {
|
21881
|
+
var confirmation_attribute_name;
|
21882
|
+
confirmation_attribute_name = this.human_attribute_name(attribute_name);
|
21883
|
+
attribute_name = this.human_attribute_name(attribute_name.replace('_confirmation', ''));
|
21884
|
+
return "O campo " + attribute_name + " não está de acordo com o campo " + confirmation_attribute_name + ".";
|
21885
|
+
},
|
21886
|
+
associated: function(attribute_name) {
|
21887
|
+
attribute_name = this.human_attribute_name(attribute_name);
|
21888
|
+
return "O registro associado " + attribute_name + " não é válido.";
|
21889
|
+
},
|
21890
|
+
server: function(attribute_name, options) {
|
21891
|
+
if (attribute_name === 'base') {
|
21892
|
+
return options.server_message;
|
21893
|
+
} else {
|
21894
|
+
attribute_name = this.human_attribute_name(attribute_name);
|
21895
|
+
return "" + attribute_name + " " + options.server_message + ".";
|
21896
|
+
}
|
21897
|
+
},
|
21898
|
+
type: function(attribute_name, options) {
|
21902
21899
|
attribute_name = this.human_attribute_name(attribute_name);
|
21903
|
-
return "" + attribute_name + "
|
21900
|
+
return "O campo " + attribute_name + " não está válido.";
|
21904
21901
|
}
|
21905
|
-
}
|
21906
|
-
type: function(attribute_name, options) {
|
21907
|
-
attribute_name = this.human_attribute_name(attribute_name);
|
21908
|
-
return "O campo " + attribute_name + " não está válido.";
|
21909
|
-
}
|
21910
|
-
};
|
21911
|
-
|
21912
|
-
errorsable = stampit({
|
21913
|
-
add: function(attribute_name, message_key, options) {
|
21914
|
-
var translator;
|
21902
|
+
};
|
21915
21903
|
|
21916
|
-
|
21917
|
-
|
21918
|
-
|
21919
|
-
|
21920
|
-
|
21921
|
-
|
21922
|
-
|
21923
|
-
|
21924
|
-
|
21925
|
-
|
21926
|
-
|
21904
|
+
errorsable = stampit({
|
21905
|
+
add: function(attribute_name, message_key, options) {
|
21906
|
+
var translator;
|
21907
|
+
this.push([attribute_name, message_key, options]);
|
21908
|
+
this.messages[attribute_name] = '';
|
21909
|
+
translator = messages[message_key];
|
21910
|
+
if (translator != null) {
|
21911
|
+
return this.messages[attribute_name] += translator.call(this.model, attribute_name, options);
|
21912
|
+
} else {
|
21913
|
+
return this.messages[attribute_name] += message_key;
|
21914
|
+
}
|
21915
|
+
},
|
21916
|
+
clear: function() {
|
21917
|
+
var attribute_name, _results;
|
21918
|
+
if (this.length) {
|
21919
|
+
this.length = 0;
|
21920
|
+
_results = [];
|
21921
|
+
for (attribute_name in this.messages) {
|
21922
|
+
_results.push(this.messages[attribute_name] = null);
|
21923
|
+
}
|
21924
|
+
return _results;
|
21925
|
+
}
|
21926
|
+
},
|
21927
|
+
push: Array.prototype.push,
|
21928
|
+
splice: Array.prototype.splice,
|
21929
|
+
indexOf: Array.prototype.indexOf
|
21930
|
+
}, {
|
21931
|
+
model: null,
|
21932
|
+
messages: null,
|
21933
|
+
length: 0
|
21934
|
+
}, function() {
|
21935
|
+
this.messages = {};
|
21936
|
+
return this;
|
21937
|
+
});
|
21927
21938
|
|
21928
|
-
|
21929
|
-
|
21939
|
+
initializers = {
|
21940
|
+
define_triggers: function() {
|
21941
|
+
this.errors = errorsable({
|
21942
|
+
model: model[this.resource]
|
21943
|
+
});
|
21944
|
+
this.before('save', function() {
|
21945
|
+
if (this.save) return this.validate();
|
21946
|
+
});
|
21947
|
+
this.validated = false;
|
21948
|
+
this.subscribe('dirty', function(value) {
|
21949
|
+
return value && (this.validated = false);
|
21950
|
+
});
|
21951
|
+
return Object.defineProperty(this, 'valid', {
|
21952
|
+
get: function() {
|
21953
|
+
this.validate();
|
21954
|
+
if (this.validation.state() === 'resolved') {
|
21955
|
+
return !this.errors.length;
|
21956
|
+
} else {
|
21957
|
+
return null;
|
21958
|
+
}
|
21959
|
+
},
|
21960
|
+
set: function() {
|
21961
|
+
throw new TypeError("You can't set the value for the valid property.");
|
21962
|
+
},
|
21963
|
+
enumerable: false
|
21964
|
+
});
|
21965
|
+
},
|
21966
|
+
create_validators: function(definitions) {
|
21967
|
+
var definition, name, validator, validator_options, _ref, _results;
|
21968
|
+
this.validators = [];
|
21969
|
+
_ref = manager.validators;
|
21930
21970
|
_results = [];
|
21931
|
-
for (
|
21932
|
-
|
21971
|
+
for (name in _ref) {
|
21972
|
+
validator = _ref[name];
|
21973
|
+
definition = definitions[validator.definition_key];
|
21974
|
+
if (definition) {
|
21975
|
+
if (type(definition) !== 'array') definition = [definition];
|
21976
|
+
_results.push((function() {
|
21977
|
+
var _i, _len, _results2;
|
21978
|
+
_results2 = [];
|
21979
|
+
for (_i = 0, _len = definition.length; _i < _len; _i++) {
|
21980
|
+
validator_options = definition[_i];
|
21981
|
+
if (type(validator_options) !== 'object') {
|
21982
|
+
validator_options = {
|
21983
|
+
attribute_name: validator_options
|
21984
|
+
};
|
21985
|
+
}
|
21986
|
+
validator_options.model = this;
|
21987
|
+
this.validators.push(validator(validator_options));
|
21988
|
+
_results2.push(delete definitions[validator.definition_key]);
|
21989
|
+
}
|
21990
|
+
return _results2;
|
21991
|
+
}).call(this));
|
21992
|
+
} else {
|
21993
|
+
_results.push(void 0);
|
21994
|
+
}
|
21933
21995
|
}
|
21934
21996
|
return _results;
|
21935
21997
|
}
|
21936
|
-
}
|
21937
|
-
push: Array.prototype.push,
|
21938
|
-
splice: Array.prototype.splice,
|
21939
|
-
indexOf: Array.prototype.indexOf
|
21940
|
-
}, {
|
21941
|
-
model: null,
|
21942
|
-
messages: null,
|
21943
|
-
length: 0
|
21944
|
-
}, function() {
|
21945
|
-
this.messages = {};
|
21946
|
-
return this;
|
21947
|
-
});
|
21998
|
+
};
|
21948
21999
|
|
21949
|
-
|
21950
|
-
|
21951
|
-
|
21952
|
-
|
21953
|
-
|
21954
|
-
|
21955
|
-
|
21956
|
-
|
21957
|
-
|
21958
|
-
|
21959
|
-
|
21960
|
-
|
21961
|
-
|
21962
|
-
|
21963
|
-
|
21964
|
-
|
21965
|
-
|
21966
|
-
|
21967
|
-
|
21968
|
-
|
21969
|
-
return null;
|
21970
|
-
}
|
21971
|
-
},
|
21972
|
-
set: function() {
|
21973
|
-
throw new TypeError("You can't set the value for the valid property.");
|
22000
|
+
extensions = {
|
22001
|
+
model: {
|
22002
|
+
validators: null
|
22003
|
+
},
|
22004
|
+
record: {
|
22005
|
+
validate_attribute: function(attribute, doned, failed) {
|
22006
|
+
var results, validation, validator, _i, _len, _ref;
|
22007
|
+
this.errors.messages[attribute] = null;
|
22008
|
+
results = [this, attribute];
|
22009
|
+
_ref = model[this.resource.toString()].validators;
|
22010
|
+
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
22011
|
+
validator = _ref[_i];
|
22012
|
+
if (validator.attribute_name === attribute) {
|
22013
|
+
results.push(validator.validate_each(this, validator.attribute_name, this[validator.attribute_name]));
|
22014
|
+
}
|
22015
|
+
}
|
22016
|
+
validation = jQuery.when.apply(jQuery, results);
|
22017
|
+
validation.done(doned);
|
22018
|
+
validation.fail(failed);
|
22019
|
+
return validation;
|
21974
22020
|
},
|
21975
|
-
|
21976
|
-
|
21977
|
-
|
21978
|
-
|
21979
|
-
|
21980
|
-
|
21981
|
-
|
21982
|
-
|
21983
|
-
|
21984
|
-
|
21985
|
-
|
21986
|
-
|
21987
|
-
|
21988
|
-
|
21989
|
-
|
21990
|
-
|
21991
|
-
|
21992
|
-
|
21993
|
-
|
21994
|
-
|
21995
|
-
|
21996
|
-
validator_options = definition[_i];
|
21997
|
-
if (type(validator_options) !== 'object') {
|
21998
|
-
validator_options = {
|
21999
|
-
attribute_name: validator_options
|
22000
|
-
};
|
22001
|
-
}
|
22002
|
-
validator_options.model = this;
|
22003
|
-
this.validators.push(validator(validator_options));
|
22004
|
-
_results1.push(delete definitions[validator.definition_key]);
|
22005
|
-
}
|
22006
|
-
return _results1;
|
22007
|
-
}).call(this));
|
22008
|
-
} else {
|
22009
|
-
_results.push(void 0);
|
22021
|
+
validate: function(doned, failed) {
|
22022
|
+
var results, validator, _i, _len, _ref;
|
22023
|
+
if (this.validated && !this.dirty) return this.validation;
|
22024
|
+
this.errors.clear();
|
22025
|
+
results = [this];
|
22026
|
+
_ref = model[this.resource.toString()].validators;
|
22027
|
+
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
22028
|
+
validator = _ref[_i];
|
22029
|
+
results.push(validator.validate_each(this, validator.attribute_name, this[validator.attribute_name]));
|
22030
|
+
}
|
22031
|
+
this.validation = jQuery.when.apply(jQuery, results);
|
22032
|
+
this.validation.done(doned);
|
22033
|
+
this.validation.fail(failed);
|
22034
|
+
return this.validation.done(function(record) {
|
22035
|
+
var old_dirty;
|
22036
|
+
old_dirty = record.dirty;
|
22037
|
+
record.dirty = null;
|
22038
|
+
record.validated || (record.validated = true);
|
22039
|
+
if (record.dirty !== old_dirty) record.dirty = old_dirty;
|
22040
|
+
return record;
|
22041
|
+
});
|
22010
22042
|
}
|
22011
22043
|
}
|
22012
|
-
|
22013
|
-
}
|
22014
|
-
};
|
22015
|
-
|
22016
|
-
extensions = {
|
22017
|
-
model: {
|
22018
|
-
validators: null
|
22019
|
-
},
|
22020
|
-
record: {
|
22021
|
-
validate_attribute: function(attribute, doned, failed) {
|
22022
|
-
var results, validation, validator, _i, _len, _ref;
|
22023
|
-
|
22024
|
-
this.errors.messages[attribute] = null;
|
22025
|
-
results = [this, attribute];
|
22026
|
-
_ref = model[this.resource.toString()].validators;
|
22027
|
-
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
22028
|
-
validator = _ref[_i];
|
22029
|
-
if (validator.attribute_name === attribute) {
|
22030
|
-
results.push(validator.validate_each(this, validator.attribute_name, this[validator.attribute_name]));
|
22031
|
-
}
|
22032
|
-
}
|
22033
|
-
validation = jQuery.when.apply(jQuery, results);
|
22034
|
-
validation.done(doned);
|
22035
|
-
validation.fail(failed);
|
22036
|
-
return validation;
|
22037
|
-
},
|
22038
|
-
validate: function(doned, failed) {
|
22039
|
-
var results, validator, _i, _len, _ref;
|
22044
|
+
};
|
22040
22045
|
|
22041
|
-
|
22042
|
-
|
22043
|
-
|
22044
|
-
this.errors.clear();
|
22045
|
-
results = [this];
|
22046
|
-
_ref = model[this.resource.toString()].validators;
|
22047
|
-
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
22048
|
-
validator = _ref[_i];
|
22049
|
-
results.push(validator.validate_each(this, validator.attribute_name, this[validator.attribute_name]));
|
22050
|
-
}
|
22051
|
-
this.validation = jQuery.when.apply(jQuery, results);
|
22052
|
-
this.validation.done(doned);
|
22053
|
-
this.validation.fail(failed);
|
22054
|
-
return this.validation.done(function(record) {
|
22055
|
-
var old_dirty;
|
22056
|
-
|
22057
|
-
old_dirty = record.dirty;
|
22058
|
-
record.dirty = null;
|
22059
|
-
record.validated || (record.validated = true);
|
22060
|
-
record.dirty = old_dirty;
|
22061
|
-
return record;
|
22062
|
-
});
|
22063
|
-
}
|
22064
|
-
}
|
22065
|
-
};
|
22046
|
+
manager = {
|
22047
|
+
validators: {}
|
22048
|
+
};
|
22066
22049
|
|
22067
|
-
|
22068
|
-
|
22069
|
-
|
22050
|
+
model.mix(function(modelable) {
|
22051
|
+
jQuery.extend(modelable, extensions.model);
|
22052
|
+
jQuery.extend(modelable.record, extensions.record);
|
22053
|
+
modelable.after_mix.unshift(initializers.create_validators);
|
22054
|
+
modelable.record.after_initialize.push(initializers.define_triggers);
|
22055
|
+
return model.validators = manager.validators;
|
22056
|
+
});
|
22070
22057
|
|
22071
|
-
|
22072
|
-
jQuery.extend(modelable, extensions.model);
|
22073
|
-
jQuery.extend(modelable.record, extensions.record);
|
22074
|
-
modelable.after_mix.unshift(initializers.create_validators);
|
22075
|
-
modelable.record.after_initialize.push(initializers.define_triggers);
|
22076
|
-
return model.validators = manager.validators;
|
22077
|
-
});
|
22058
|
+
manager.validators.confirmation = require('./validations/confirmation');
|
22078
22059
|
|
22079
|
-
manager.validators.
|
22060
|
+
manager.validators.associated = require('./validations/associated');
|
22080
22061
|
|
22081
|
-
manager.validators.
|
22062
|
+
manager.validators.presence = require('./validations/presence');
|
22082
22063
|
|
22083
|
-
manager.validators.
|
22064
|
+
manager.validators.remote = require('./validations/remote');
|
22084
22065
|
|
22085
|
-
manager.validators.
|
22066
|
+
manager.validators.type = require('./validations/type');
|
22086
22067
|
|
22087
|
-
manager.validators.
|
22068
|
+
manager.validators.cpf = require('./validations/cpf');
|
22088
22069
|
|
22089
|
-
|
22070
|
+
}).call(this);
|
22090
22071
|
|
22091
22072
|
});
|
22092
22073
|
require.register("indemma/lib/extensions/rivets.js", function(exports, require, module){
|
@@ -22115,11 +22096,22 @@ model.rivets = function() {
|
|
22115
22096
|
};
|
22116
22097
|
|
22117
22098
|
});
|
22099
|
+
|
22100
|
+
|
22101
|
+
|
22102
|
+
|
22103
|
+
|
22104
|
+
|
22105
|
+
|
22106
|
+
|
22107
|
+
|
22108
|
+
|
22109
|
+
|
22110
|
+
|
22118
22111
|
require.alias("pluma-assimilate/dist/assimilate.js", "indemma/deps/assimilate/dist/assimilate.js");
|
22119
22112
|
require.alias("pluma-assimilate/dist/assimilate.js", "indemma/deps/assimilate/index.js");
|
22120
22113
|
require.alias("pluma-assimilate/dist/assimilate.js", "assimilate/index.js");
|
22121
22114
|
require.alias("pluma-assimilate/dist/assimilate.js", "pluma-assimilate/index.js");
|
22122
|
-
|
22123
22115
|
require.alias("component-type/index.js", "indemma/deps/type/index.js");
|
22124
22116
|
require.alias("component-type/index.js", "type/index.js");
|
22125
22117
|
|
@@ -22145,4 +22137,3 @@ require.alias("indefinido-advisable/index.js", "indemma/deps/advisable/index.js"
|
|
22145
22137
|
require.alias("indefinido-advisable/lib/advisable.js", "indemma/deps/advisable/lib/advisable.js");
|
22146
22138
|
require.alias("indefinido-advisable/index.js", "advisable/index.js");
|
22147
22139
|
require.alias("component-jquery/index.js", "indefinido-advisable/deps/jquery/index.js");
|
22148
|
-
|