ende 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/component.json +2 -1
- data/lib/assets/javascripts/aura/extensions/devise.js.coffee +3 -2
- data/lib/assets/javascripts/aura/extensions/models.js.coffee.erb +1 -2
- data/lib/assets/javascripts/aura/extensions/widget/lifecycleable.js.coffee +37 -16
- data/lib/assets/javascripts/ende.js.coffee +1 -1
- data/lib/assets/javascripts/widgets/dialog/main.js.coffee +100 -0
- data/lib/assets/javascripts/widgets/dialog/presenter.js.coffee +18 -0
- data/lib/assets/javascripts/widgets/dialog/states/default.html +2 -0
- data/lib/assets/javascripts/widgets/dialog/states/index.js.coffee +2 -0
- data/lib/assets/javascripts/widgets/list/main.js.coffee +1 -0
- data/lib/assets/stylesheets/ende.styl +1 -0
- data/lib/ende/version.rb +1 -1
- data/lib/ende.rb +6 -2
- data/vendor/assets/components/build.css +111 -0
- data/vendor/{components/indefinido-indemma/build/release.js → assets/components/build.js} +25468 -17590
- data/vendor/assets/components/ende_build.css +111 -0
- data/vendor/assets/components/ende_build.js +29571 -0
- data/vendor/assets/javascripts/ende/build.js +1962 -0
- data/vendor/components/component-classes/component.json +19 -0
- data/vendor/components/component-classes/index.js +165 -0
- data/vendor/components/component-css/component.json +18 -0
- data/vendor/components/component-css/index.js +34 -0
- data/vendor/components/component-delegate/component.json +2 -2
- data/vendor/components/component-delegate/index.js +4 -4
- data/vendor/components/component-dialog/component.json +23 -0
- data/vendor/components/component-dialog/dialog.css +92 -0
- data/vendor/components/component-dialog/index.js +292 -0
- data/vendor/components/component-dialog/template.js +1 -0
- data/vendor/components/component-dom/component.json +33 -0
- data/vendor/components/component-dom/index.js +725 -0
- data/vendor/components/component-domify/component.json +22 -0
- data/vendor/components/component-domify/index.js +71 -0
- data/vendor/components/component-emitter/component.json +13 -0
- data/vendor/components/component-emitter/index.js +156 -0
- data/vendor/components/component-event/index.js +8 -11
- data/vendor/components/component-indexof/component.json +15 -0
- data/vendor/components/component-indexof/index.js +10 -0
- data/vendor/components/component-overlay/component.json +22 -0
- data/vendor/components/component-overlay/index.js +111 -0
- data/vendor/components/component-overlay/overlay.css +19 -0
- data/vendor/components/component-overlay/template.js +1 -0
- data/vendor/components/component-query/component.json +2 -1
- data/vendor/components/component-sort/component.json +20 -0
- data/vendor/components/component-sort/index.js +43 -0
- data/vendor/components/component-value/component.json +25 -0
- data/vendor/components/component-value/index.js +95 -0
- data/vendor/components/indefinido-indemma/component.json +2 -3
- data/vendor/components/indefinido-indemma/lib/record/resource.js +2 -4
- data/vendor/components/mikeric-rivets/component.json +1 -1
- data/vendor/components/mikeric-rivets/dist/rivets.js +64 -44
- data/vendor/components/paulmillr-es6-shim/component.json +1 -1
- data/vendor/components/paulmillr-es6-shim/es6-shim.js +22 -11
- data/vendor/components/pluma-assimilate/component.json +1 -1
- data/vendor/components/pluma-assimilate/dist/assimilate.js +103 -63
- metadata +35 -246
- data/lib/tasks/component.thor +0 -63
- data/vendor/assets/components/KapIT-observe-utils/component.json +0 -16
- data/vendor/assets/components/KapIT-observe-utils/lib/observe-utils.js +0 -780
- data/vendor/assets/components/chaijs-assertion-error/component.json +0 -18
- data/vendor/assets/components/chaijs-assertion-error/index.js +0 -110
- data/vendor/assets/components/chaijs-chai/component.json +0 -47
- data/vendor/assets/components/chaijs-chai/index.js +0 -1
- data/vendor/assets/components/chaijs-chai/lib/chai/assertion.js +0 -130
- data/vendor/assets/components/chaijs-chai/lib/chai/core/assertions.js +0 -1270
- data/vendor/assets/components/chaijs-chai/lib/chai/interface/assert.js +0 -1080
- data/vendor/assets/components/chaijs-chai/lib/chai/interface/expect.js +0 -12
- data/vendor/assets/components/chaijs-chai/lib/chai/interface/should.js +0 -76
- data/vendor/assets/components/chaijs-chai/lib/chai/utils/addChainableMethod.js +0 -94
- data/vendor/assets/components/chaijs-chai/lib/chai/utils/addMethod.js +0 -37
- data/vendor/assets/components/chaijs-chai/lib/chai/utils/addProperty.js +0 -40
- data/vendor/assets/components/chaijs-chai/lib/chai/utils/flag.js +0 -32
- data/vendor/assets/components/chaijs-chai/lib/chai/utils/getActual.js +0 -19
- data/vendor/assets/components/chaijs-chai/lib/chai/utils/getEnumerableProperties.js +0 -25
- data/vendor/assets/components/chaijs-chai/lib/chai/utils/getMessage.js +0 -49
- data/vendor/assets/components/chaijs-chai/lib/chai/utils/getName.js +0 -20
- data/vendor/assets/components/chaijs-chai/lib/chai/utils/getPathValue.js +0 -102
- data/vendor/assets/components/chaijs-chai/lib/chai/utils/getProperties.js +0 -35
- data/vendor/assets/components/chaijs-chai/lib/chai/utils/index.js +0 -108
- data/vendor/assets/components/chaijs-chai/lib/chai/utils/inspect.js +0 -320
- data/vendor/assets/components/chaijs-chai/lib/chai/utils/objDisplay.js +0 -48
- data/vendor/assets/components/chaijs-chai/lib/chai/utils/overwriteMethod.js +0 -51
- data/vendor/assets/components/chaijs-chai/lib/chai/utils/overwriteProperty.js +0 -54
- data/vendor/assets/components/chaijs-chai/lib/chai/utils/test.js +0 -26
- data/vendor/assets/components/chaijs-chai/lib/chai/utils/transferFlags.js +0 -44
- data/vendor/assets/components/chaijs-chai/lib/chai/utils/type.js +0 -45
- data/vendor/assets/components/chaijs-chai/lib/chai.js +0 -80
- data/vendor/assets/components/chaijs-deep-eql/component.json +0 -18
- data/vendor/assets/components/chaijs-deep-eql/lib/eql.js +0 -257
- data/vendor/assets/components/chaijs-type-detect/component.json +0 -16
- data/vendor/assets/components/chaijs-type-detect/lib/type.js +0 -142
- data/vendor/assets/components/component-bind/component.json +0 -14
- data/vendor/assets/components/component-bind/index.js +0 -24
- data/vendor/assets/components/component-delegate/component.json +0 -19
- data/vendor/assets/components/component-delegate/index.js +0 -42
- data/vendor/assets/components/component-event/component.json +0 -13
- data/vendor/assets/components/component-event/index.js +0 -40
- data/vendor/assets/components/component-jquery/component.json +0 -14
- data/vendor/assets/components/component-jquery/index.js +0 -9601
- data/vendor/assets/components/component-link-delegate/component.json +0 -23
- data/vendor/assets/components/component-link-delegate/index.js +0 -60
- data/vendor/assets/components/component-matches-selector/component.json +0 -20
- data/vendor/assets/components/component-matches-selector/index.js +0 -45
- data/vendor/assets/components/component-query/component.json +0 -21
- data/vendor/assets/components/component-query/index.js +0 -21
- data/vendor/assets/components/component-type/component.json +0 -18
- data/vendor/assets/components/component-type/index.js +0 -32
- data/vendor/assets/components/component-url/component.json +0 -17
- data/vendor/assets/components/component-url/index.js +0 -63
- data/vendor/assets/components/discore-closest/component.json +0 -14
- data/vendor/assets/components/discore-closest/index.js +0 -18
- data/vendor/assets/components/indefinido-advisable/component.json +0 -21
- data/vendor/assets/components/indefinido-advisable/index.js +0 -1
- data/vendor/assets/components/indefinido-advisable/lib/advisable.js +0 -60
- data/vendor/assets/components/indefinido-indemma/component.json +0 -40
- data/vendor/assets/components/indefinido-indemma/index.js +0 -1
- data/vendor/assets/components/indefinido-indemma/lib/extensions/rivets.js +0 -23
- data/vendor/assets/components/indefinido-indemma/lib/record/associable.js +0 -217
- data/vendor/assets/components/indefinido-indemma/lib/record/maid.js +0 -24
- data/vendor/assets/components/indefinido-indemma/lib/record/resource.js +0 -104
- data/vendor/assets/components/indefinido-indemma/lib/record/rest.js +0 -36
- data/vendor/assets/components/indefinido-indemma/lib/record/restfulable.js +0 -326
- data/vendor/assets/components/indefinido-indemma/lib/record/scopable.js +0 -279
- data/vendor/assets/components/indefinido-indemma/lib/record/translationable.js +0 -19
- data/vendor/assets/components/indefinido-indemma/lib/record/validatable.js +0 -216
- data/vendor/assets/components/indefinido-indemma/lib/record/validations/associated.js +0 -30
- data/vendor/assets/components/indefinido-indemma/lib/record/validations/confirmation.js +0 -19
- data/vendor/assets/components/indefinido-indemma/lib/record/validations/cpf.js +0 -60
- data/vendor/assets/components/indefinido-indemma/lib/record/validations/presence.js +0 -19
- data/vendor/assets/components/indefinido-indemma/lib/record/validations/remote.js +0 -71
- data/vendor/assets/components/indefinido-indemma/lib/record.js +0 -167
- data/vendor/assets/components/indefinido-indemma/vendor/sinon.js +0 -4290
- data/vendor/assets/components/indefinido-indemma/vendor/stampit.js +0 -392
- data/vendor/assets/components/indefinido-observable/component.json +0 -25
- data/vendor/assets/components/indefinido-observable/components/cjohansen-sinon/sinon.js +0 -4290
- data/vendor/assets/components/indefinido-observable/index.js +0 -1
- data/vendor/assets/components/indefinido-observable/lib/adapters/rivets.js +0 -26
- data/vendor/assets/components/indefinido-observable/lib/observable.js +0 -320
- data/vendor/assets/components/indefinido-observable/vendor/shims/accessors-legacy.js +0 -92
- data/vendor/assets/components/indefinido-observable/vendor/shims/accessors.js +0 -173
- data/vendor/assets/components/indefinido-observable/vendor/shims/array.indexOf.js +0 -8
- data/vendor/assets/components/indefinido-observable/vendor/shims/object.create.js +0 -77
- data/vendor/assets/components/mikeric-rivets/component.json +0 -15
- data/vendor/assets/components/mikeric-rivets/dist/rivets.js +0 -1020
- data/vendor/assets/components/paulmillr-es6-shim/component.json +0 -17
- data/vendor/assets/components/paulmillr-es6-shim/es6-shim.js +0 -985
- data/vendor/assets/components/pluma-assimilate/component.json +0 -25
- data/vendor/assets/components/pluma-assimilate/dist/assimilate.js +0 -87
- data/vendor/assets/components/segmentio-extend/component.json +0 -13
- data/vendor/assets/components/segmentio-extend/index.js +0 -15
- data/vendor/components/chaijs-assertion-error/component.json +0 -18
- data/vendor/components/chaijs-assertion-error/index.js +0 -110
- data/vendor/components/chaijs-chai/component.json +0 -47
- data/vendor/components/chaijs-chai/index.js +0 -1
- data/vendor/components/chaijs-chai/lib/chai/assertion.js +0 -130
- data/vendor/components/chaijs-chai/lib/chai/core/assertions.js +0 -1270
- data/vendor/components/chaijs-chai/lib/chai/interface/assert.js +0 -1080
- data/vendor/components/chaijs-chai/lib/chai/interface/expect.js +0 -12
- data/vendor/components/chaijs-chai/lib/chai/interface/should.js +0 -76
- data/vendor/components/chaijs-chai/lib/chai/utils/addChainableMethod.js +0 -94
- data/vendor/components/chaijs-chai/lib/chai/utils/addMethod.js +0 -37
- data/vendor/components/chaijs-chai/lib/chai/utils/addProperty.js +0 -40
- data/vendor/components/chaijs-chai/lib/chai/utils/flag.js +0 -32
- data/vendor/components/chaijs-chai/lib/chai/utils/getActual.js +0 -19
- data/vendor/components/chaijs-chai/lib/chai/utils/getEnumerableProperties.js +0 -25
- data/vendor/components/chaijs-chai/lib/chai/utils/getMessage.js +0 -49
- data/vendor/components/chaijs-chai/lib/chai/utils/getName.js +0 -20
- data/vendor/components/chaijs-chai/lib/chai/utils/getPathValue.js +0 -102
- data/vendor/components/chaijs-chai/lib/chai/utils/getProperties.js +0 -35
- data/vendor/components/chaijs-chai/lib/chai/utils/index.js +0 -108
- data/vendor/components/chaijs-chai/lib/chai/utils/inspect.js +0 -320
- data/vendor/components/chaijs-chai/lib/chai/utils/objDisplay.js +0 -48
- data/vendor/components/chaijs-chai/lib/chai/utils/overwriteMethod.js +0 -51
- data/vendor/components/chaijs-chai/lib/chai/utils/overwriteProperty.js +0 -54
- data/vendor/components/chaijs-chai/lib/chai/utils/test.js +0 -26
- data/vendor/components/chaijs-chai/lib/chai/utils/transferFlags.js +0 -44
- data/vendor/components/chaijs-chai/lib/chai/utils/type.js +0 -45
- data/vendor/components/chaijs-chai/lib/chai.js +0 -80
- data/vendor/components/chaijs-deep-eql/component.json +0 -18
- data/vendor/components/chaijs-deep-eql/lib/eql.js +0 -257
- data/vendor/components/chaijs-type-detect/component.json +0 -16
- data/vendor/components/chaijs-type-detect/lib/type.js +0 -142
- data/vendor/components/component-link-delegate/component.json +0 -23
- data/vendor/components/component-link-delegate/index.js +0 -60
- data/vendor/components/component-url/component.json +0 -17
- data/vendor/components/component-url/index.js +0 -63
- data/vendor/components/discore-closest/component.json +0 -14
- data/vendor/components/discore-closest/index.js +0 -18
- data/vendor/components/indefinido-indemma/.gitignore +0 -14
- data/vendor/components/indefinido-indemma/.ruby-gemset +0 -1
- data/vendor/components/indefinido-indemma/.ruby-version +0 -1
- data/vendor/components/indefinido-indemma/Gemfile +0 -13
- data/vendor/components/indefinido-indemma/Guardfile +0 -39
- data/vendor/components/indefinido-indemma/History.md +0 -0
- data/vendor/components/indefinido-indemma/Readme.md +0 -443
- data/vendor/components/indefinido-indemma/build/development.js +0 -331
- data/vendor/components/indefinido-indemma/build/test.js +0 -331
- data/vendor/components/indefinido-indemma/components/chaijs-assertion-error/component.json +0 -18
- data/vendor/components/indefinido-indemma/components/chaijs-assertion-error/index.js +0 -110
- data/vendor/components/indefinido-indemma/components/chaijs-chai/component.json +0 -47
- data/vendor/components/indefinido-indemma/components/chaijs-chai/index.js +0 -1
- data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/assertion.js +0 -130
- data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/core/assertions.js +0 -1270
- data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/interface/assert.js +0 -1080
- data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/interface/expect.js +0 -12
- data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/interface/should.js +0 -76
- data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/addChainableMethod.js +0 -94
- data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/addMethod.js +0 -37
- data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/addProperty.js +0 -40
- data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/eql.js +0 -129
- data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/flag.js +0 -32
- data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/getActual.js +0 -19
- data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/getEnumerableProperties.js +0 -25
- data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/getMessage.js +0 -49
- data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/getName.js +0 -20
- data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/getPathValue.js +0 -102
- data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/getProperties.js +0 -35
- data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/index.js +0 -108
- data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/inspect.js +0 -320
- data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/objDisplay.js +0 -48
- data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/overwriteMethod.js +0 -51
- data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/overwriteProperty.js +0 -54
- data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/test.js +0 -26
- data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/transferFlags.js +0 -44
- data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/type.js +0 -45
- data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai.js +0 -80
- data/vendor/components/indefinido-indemma/components/component-bind/component.json +0 -14
- data/vendor/components/indefinido-indemma/components/component-bind/index.js +0 -24
- data/vendor/components/indefinido-indemma/components/component-jquery/component.json +0 -14
- data/vendor/components/indefinido-indemma/components/component-jquery/index.js +0 -9601
- data/vendor/components/indefinido-indemma/components/component-type/component.json +0 -18
- data/vendor/components/indefinido-indemma/components/component-type/index.js +0 -32
- data/vendor/components/indefinido-indemma/components/indefinido-advisable/component.json +0 -21
- data/vendor/components/indefinido-indemma/components/indefinido-advisable/index.js +0 -1
- data/vendor/components/indefinido-indemma/components/indefinido-advisable/lib/advisable.js +0 -60
- data/vendor/components/indefinido-indemma/components/indefinido-observable/component.json +0 -25
- data/vendor/components/indefinido-indemma/components/indefinido-observable/components/cjohansen-sinon/sinon.js +0 -4290
- data/vendor/components/indefinido-indemma/components/indefinido-observable/index.js +0 -1
- data/vendor/components/indefinido-indemma/components/indefinido-observable/lib/adapters/rivets.js +0 -26
- data/vendor/components/indefinido-indemma/components/indefinido-observable/lib/observable.js +0 -323
- data/vendor/components/indefinido-indemma/components/indefinido-observable/vendor/shims/accessors-legacy.js +0 -92
- data/vendor/components/indefinido-indemma/components/indefinido-observable/vendor/shims/accessors.js +0 -173
- data/vendor/components/indefinido-indemma/components/indefinido-observable/vendor/shims/array.indexOf.js +0 -8
- data/vendor/components/indefinido-indemma/components/indefinido-observable/vendor/shims/object.create.js +0 -77
- data/vendor/components/indefinido-indemma/components/kapit-observe-utils/component.json +0 -13
- data/vendor/components/indefinido-indemma/components/pluma-assimilate/component.json +0 -25
- data/vendor/components/indefinido-indemma/components/pluma-assimilate/dist/assimilate.js +0 -87
- data/vendor/components/indefinido-indemma/karma.conf.js +0 -86
- data/vendor/components/indefinido-indemma/lib/record/errors.js +0 -1
- data/vendor/components/indefinido-indemma/spec/record/associable_spec.js +0 -76
- data/vendor/components/indefinido-indemma/spec/record/resource_spec.js +0 -90
- data/vendor/components/indefinido-indemma/spec/record/rest_spec.js +0 -32
- data/vendor/components/indefinido-indemma/spec/record/restfulable_spec.js +0 -232
- data/vendor/components/indefinido-indemma/spec/record/scopable_spec.js +0 -201
- data/vendor/components/indefinido-indemma/spec/record/translationable.js +0 -28
- data/vendor/components/indefinido-indemma/spec/record/validatable_spec.js +0 -111
- data/vendor/components/indefinido-indemma/spec/record/validations/associated_spec.js +0 -43
- data/vendor/components/indefinido-indemma/spec/record/validations/confirmation_spec.js +0 -36
- data/vendor/components/indefinido-indemma/spec/record/validations/cpf_spec.js +0 -35
- data/vendor/components/indefinido-indemma/spec/record/validations/presence_spec.js +0 -28
- data/vendor/components/indefinido-indemma/spec/record/validations/remote_spec.js +0 -86
- data/vendor/components/indefinido-indemma/spec/record/validations/type_spec.js +0 -48
- data/vendor/components/indefinido-indemma/spec/record_spec.js +0 -37
- data/vendor/components/indefinido-indemma/spec/spec_helper.js +0 -11
- data/vendor/components/indefinido-indemma/spec/support/value_objects/phone.js +0 -45
- data/vendor/components/indefinido-indemma/src/lib/extensions/rivets.coffee +0 -17
- data/vendor/components/indefinido-indemma/src/lib/record/associable.coffee +0 -173
- data/vendor/components/indefinido-indemma/src/lib/record/errors.coffee +0 -20
- data/vendor/components/indefinido-indemma/src/lib/record/maid.coffee +0 -16
- data/vendor/components/indefinido-indemma/src/lib/record/resource.coffee +0 -103
- data/vendor/components/indefinido-indemma/src/lib/record/rest.coffee +0 -28
- data/vendor/components/indefinido-indemma/src/lib/record/restfulable.coffee +0 -314
- data/vendor/components/indefinido-indemma/src/lib/record/scopable.coffee +0 -266
- data/vendor/components/indefinido-indemma/src/lib/record/translationable.coffee +0 -18
- data/vendor/components/indefinido-indemma/src/lib/record/validatable.coffee +0 -209
- data/vendor/components/indefinido-indemma/src/lib/record/validations/associated.coffee +0 -32
- data/vendor/components/indefinido-indemma/src/lib/record/validations/confirmation.coffee +0 -19
- data/vendor/components/indefinido-indemma/src/lib/record/validations/cpf.coffee +0 -58
- data/vendor/components/indefinido-indemma/src/lib/record/validations/presence.coffee +0 -19
- data/vendor/components/indefinido-indemma/src/lib/record/validations/remote.coffee +0 -65
- data/vendor/components/indefinido-indemma/src/lib/record/validations/type.coffee +0 -32
- data/vendor/components/indefinido-indemma/src/lib/record.coffee +0 -123
- data/vendor/components/indefinido-indemma/src/spec/record/associable_spec.coffee +0 -63
- data/vendor/components/indefinido-indemma/src/spec/record/resource_spec.coffee +0 -64
- data/vendor/components/indefinido-indemma/src/spec/record/rest_spec.coffee +0 -22
- data/vendor/components/indefinido-indemma/src/spec/record/restfulable_spec.coffee +0 -164
- data/vendor/components/indefinido-indemma/src/spec/record/scopable_spec.coffee +0 -181
- data/vendor/components/indefinido-indemma/src/spec/record/translationable.coffee +0 -19
- data/vendor/components/indefinido-indemma/src/spec/record/validatable_spec.coffee +0 -100
- data/vendor/components/indefinido-indemma/src/spec/record/validations/associated_spec.coffee +0 -35
- data/vendor/components/indefinido-indemma/src/spec/record/validations/confirmation_spec.coffee +0 -25
- data/vendor/components/indefinido-indemma/src/spec/record/validations/cpf_spec.coffee +0 -28
- data/vendor/components/indefinido-indemma/src/spec/record/validations/presence_spec.coffee +0 -24
- data/vendor/components/indefinido-indemma/src/spec/record/validations/remote_spec.coffee +0 -72
- data/vendor/components/indefinido-indemma/src/spec/record/validations/type_spec.coffee +0 -33
- data/vendor/components/indefinido-indemma/src/spec/record_spec.coffee +0 -23
- data/vendor/components/indefinido-indemma/src/spec/spec_helper.coffee +0 -9
- data/vendor/components/indefinido-indemma/src/spec/support/value_objects/phone.coffee +0 -30
- data/vendor/components/indefinido-indemma/vendor/owl/pluralize.js +0 -190
@@ -0,0 +1,19 @@
|
|
1
|
+
{
|
2
|
+
"name": "classes",
|
3
|
+
"version": "1.1.2",
|
4
|
+
"description": "Cross-browser element class list",
|
5
|
+
"keywords": [
|
6
|
+
"dom",
|
7
|
+
"html",
|
8
|
+
"classList",
|
9
|
+
"class",
|
10
|
+
"ui"
|
11
|
+
],
|
12
|
+
"scripts": [
|
13
|
+
"index.js"
|
14
|
+
],
|
15
|
+
"dependencies": {
|
16
|
+
"component/indexof": "*"
|
17
|
+
},
|
18
|
+
"repo": "https://raw.github.com/component/classes"
|
19
|
+
}
|
@@ -0,0 +1,165 @@
|
|
1
|
+
|
2
|
+
/**
|
3
|
+
* Module dependencies.
|
4
|
+
*/
|
5
|
+
|
6
|
+
var index = require('indexof');
|
7
|
+
|
8
|
+
/**
|
9
|
+
* Whitespace regexp.
|
10
|
+
*/
|
11
|
+
|
12
|
+
var re = /\s+/;
|
13
|
+
|
14
|
+
/**
|
15
|
+
* toString reference.
|
16
|
+
*/
|
17
|
+
|
18
|
+
var toString = Object.prototype.toString;
|
19
|
+
|
20
|
+
/**
|
21
|
+
* Wrap `el` in a `ClassList`.
|
22
|
+
*
|
23
|
+
* @param {Element} el
|
24
|
+
* @return {ClassList}
|
25
|
+
* @api public
|
26
|
+
*/
|
27
|
+
|
28
|
+
module.exports = function(el){
|
29
|
+
return new ClassList(el);
|
30
|
+
};
|
31
|
+
|
32
|
+
/**
|
33
|
+
* Initialize a new ClassList for `el`.
|
34
|
+
*
|
35
|
+
* @param {Element} el
|
36
|
+
* @api private
|
37
|
+
*/
|
38
|
+
|
39
|
+
function ClassList(el) {
|
40
|
+
this.el = el;
|
41
|
+
this.list = el.classList;
|
42
|
+
}
|
43
|
+
|
44
|
+
/**
|
45
|
+
* Add class `name` if not already present.
|
46
|
+
*
|
47
|
+
* @param {String} name
|
48
|
+
* @return {ClassList}
|
49
|
+
* @api public
|
50
|
+
*/
|
51
|
+
|
52
|
+
ClassList.prototype.add = function(name){
|
53
|
+
// classList
|
54
|
+
if (this.list) {
|
55
|
+
this.list.add(name);
|
56
|
+
return this;
|
57
|
+
}
|
58
|
+
|
59
|
+
// fallback
|
60
|
+
var arr = this.array();
|
61
|
+
var i = index(arr, name);
|
62
|
+
if (!~i) arr.push(name);
|
63
|
+
this.el.className = arr.join(' ');
|
64
|
+
return this;
|
65
|
+
};
|
66
|
+
|
67
|
+
/**
|
68
|
+
* Remove class `name` when present, or
|
69
|
+
* pass a regular expression to remove
|
70
|
+
* any which match.
|
71
|
+
*
|
72
|
+
* @param {String|RegExp} name
|
73
|
+
* @return {ClassList}
|
74
|
+
* @api public
|
75
|
+
*/
|
76
|
+
|
77
|
+
ClassList.prototype.remove = function(name){
|
78
|
+
if ('[object RegExp]' == toString.call(name)) {
|
79
|
+
return this.removeMatching(name);
|
80
|
+
}
|
81
|
+
|
82
|
+
// classList
|
83
|
+
if (this.list) {
|
84
|
+
this.list.remove(name);
|
85
|
+
return this;
|
86
|
+
}
|
87
|
+
|
88
|
+
// fallback
|
89
|
+
var arr = this.array();
|
90
|
+
var i = index(arr, name);
|
91
|
+
if (~i) arr.splice(i, 1);
|
92
|
+
this.el.className = arr.join(' ');
|
93
|
+
return this;
|
94
|
+
};
|
95
|
+
|
96
|
+
/**
|
97
|
+
* Remove all classes matching `re`.
|
98
|
+
*
|
99
|
+
* @param {RegExp} re
|
100
|
+
* @return {ClassList}
|
101
|
+
* @api private
|
102
|
+
*/
|
103
|
+
|
104
|
+
ClassList.prototype.removeMatching = function(re){
|
105
|
+
var arr = this.array();
|
106
|
+
for (var i = 0; i < arr.length; i++) {
|
107
|
+
if (re.test(arr[i])) {
|
108
|
+
this.remove(arr[i]);
|
109
|
+
}
|
110
|
+
}
|
111
|
+
return this;
|
112
|
+
};
|
113
|
+
|
114
|
+
/**
|
115
|
+
* Toggle class `name`.
|
116
|
+
*
|
117
|
+
* @param {String} name
|
118
|
+
* @return {ClassList}
|
119
|
+
* @api public
|
120
|
+
*/
|
121
|
+
|
122
|
+
ClassList.prototype.toggle = function(name){
|
123
|
+
// classList
|
124
|
+
if (this.list) {
|
125
|
+
this.list.toggle(name);
|
126
|
+
return this;
|
127
|
+
}
|
128
|
+
|
129
|
+
// fallback
|
130
|
+
if (this.has(name)) {
|
131
|
+
this.remove(name);
|
132
|
+
} else {
|
133
|
+
this.add(name);
|
134
|
+
}
|
135
|
+
return this;
|
136
|
+
};
|
137
|
+
|
138
|
+
/**
|
139
|
+
* Return an array of classes.
|
140
|
+
*
|
141
|
+
* @return {Array}
|
142
|
+
* @api public
|
143
|
+
*/
|
144
|
+
|
145
|
+
ClassList.prototype.array = function(){
|
146
|
+
var str = this.el.className.replace(/^\s+|\s+$/g, '');
|
147
|
+
var arr = str.split(re);
|
148
|
+
if ('' === arr[0]) arr.shift();
|
149
|
+
return arr;
|
150
|
+
};
|
151
|
+
|
152
|
+
/**
|
153
|
+
* Check if class `name` is present.
|
154
|
+
*
|
155
|
+
* @param {String} name
|
156
|
+
* @return {ClassList}
|
157
|
+
* @api public
|
158
|
+
*/
|
159
|
+
|
160
|
+
ClassList.prototype.has =
|
161
|
+
ClassList.prototype.contains = function(name){
|
162
|
+
return this.list
|
163
|
+
? this.list.contains(name)
|
164
|
+
: !! ~index(this.array(), name);
|
165
|
+
};
|
@@ -0,0 +1,18 @@
|
|
1
|
+
{
|
2
|
+
"name": "css",
|
3
|
+
"repo": "component/css",
|
4
|
+
"description": "DOM element css helper",
|
5
|
+
"version": "0.0.2",
|
6
|
+
"keywords": [
|
7
|
+
"css",
|
8
|
+
"style",
|
9
|
+
"stylesheet",
|
10
|
+
"utility"
|
11
|
+
],
|
12
|
+
"dependencies": {},
|
13
|
+
"development": {},
|
14
|
+
"license": "MIT",
|
15
|
+
"scripts": [
|
16
|
+
"index.js"
|
17
|
+
]
|
18
|
+
}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
|
2
|
+
/**
|
3
|
+
* Properties to ignore appending "px".
|
4
|
+
*/
|
5
|
+
|
6
|
+
var ignore = {
|
7
|
+
columnCount: true,
|
8
|
+
fillOpacity: true,
|
9
|
+
fontWeight: true,
|
10
|
+
lineHeight: true,
|
11
|
+
opacity: true,
|
12
|
+
orphans: true,
|
13
|
+
widows: true,
|
14
|
+
zIndex: true,
|
15
|
+
zoom: true
|
16
|
+
};
|
17
|
+
|
18
|
+
/**
|
19
|
+
* Set `el` css values.
|
20
|
+
*
|
21
|
+
* @param {Element} el
|
22
|
+
* @param {Object} obj
|
23
|
+
* @return {Element}
|
24
|
+
* @api public
|
25
|
+
*/
|
26
|
+
|
27
|
+
module.exports = function(el, obj){
|
28
|
+
for (var key in obj) {
|
29
|
+
var val = obj[key];
|
30
|
+
if ('number' == typeof val && !ignore[key]) val += 'px';
|
31
|
+
el.style[key] = val;
|
32
|
+
}
|
33
|
+
return el;
|
34
|
+
};
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "delegate",
|
3
3
|
"repo": "component/delegate",
|
4
4
|
"description": "Event delegation component",
|
5
|
-
"version": "0.
|
5
|
+
"version": "0.1.0",
|
6
6
|
"keywords": [
|
7
7
|
"event",
|
8
8
|
"events",
|
@@ -10,7 +10,7 @@
|
|
10
10
|
"delegation"
|
11
11
|
],
|
12
12
|
"dependencies": {
|
13
|
-
"
|
13
|
+
"component/matches-selector": "*",
|
14
14
|
"component/event": "*"
|
15
15
|
},
|
16
16
|
"scripts": [
|
@@ -1,8 +1,9 @@
|
|
1
|
+
|
1
2
|
/**
|
2
3
|
* Module dependencies.
|
3
4
|
*/
|
4
5
|
|
5
|
-
var
|
6
|
+
var matches = require('matches-selector')
|
6
7
|
, event = require('event');
|
7
8
|
|
8
9
|
/**
|
@@ -21,10 +22,9 @@ var closest = require('closest')
|
|
21
22
|
|
22
23
|
exports.bind = function(el, selector, type, fn, capture){
|
23
24
|
return event.bind(el, type, function(e){
|
24
|
-
|
25
|
-
e.delegateTarget = closest(target, selector, true, el);
|
26
|
-
if (e.delegateTarget) fn.call(el, e);
|
25
|
+
if (matches(e.target, selector)) fn(e);
|
27
26
|
}, capture);
|
27
|
+
return callback;
|
28
28
|
};
|
29
29
|
|
30
30
|
/**
|
@@ -0,0 +1,23 @@
|
|
1
|
+
{
|
2
|
+
"name": "dialog",
|
3
|
+
"description": "Dialog component",
|
4
|
+
"version": "0.0.7",
|
5
|
+
"keywords": [
|
6
|
+
"dialog",
|
7
|
+
"ui",
|
8
|
+
"modal"
|
9
|
+
],
|
10
|
+
"dependencies": {
|
11
|
+
"component/emitter": "1.0.0",
|
12
|
+
"component/jquery": "*",
|
13
|
+
"component/overlay": "0.1.1"
|
14
|
+
},
|
15
|
+
"scripts": [
|
16
|
+
"index.js",
|
17
|
+
"template.js"
|
18
|
+
],
|
19
|
+
"styles": [
|
20
|
+
"dialog.css"
|
21
|
+
],
|
22
|
+
"repo": "https://raw.github.com/component/dialog"
|
23
|
+
}
|
@@ -0,0 +1,92 @@
|
|
1
|
+
#dialog {
|
2
|
+
position: fixed;
|
3
|
+
left: 50%;
|
4
|
+
top: 150px;
|
5
|
+
max-width: 600px;
|
6
|
+
min-width: 250px;
|
7
|
+
border: 1px solid #eee;
|
8
|
+
background: white;
|
9
|
+
z-index: 1000;
|
10
|
+
}
|
11
|
+
|
12
|
+
#dialog .content {
|
13
|
+
padding: 15px 20px;
|
14
|
+
}
|
15
|
+
|
16
|
+
#dialog h1 {
|
17
|
+
margin: 0 0 5px 0;
|
18
|
+
font-size: 16px;
|
19
|
+
font-weight: normal;
|
20
|
+
}
|
21
|
+
|
22
|
+
#dialog p {
|
23
|
+
margin: 0;
|
24
|
+
padding: 0;
|
25
|
+
font-size: .9em;
|
26
|
+
}
|
27
|
+
|
28
|
+
/* close */
|
29
|
+
|
30
|
+
#dialog .close {
|
31
|
+
position: absolute;
|
32
|
+
top: 3px;
|
33
|
+
right: 10px;
|
34
|
+
text-decoration: none;
|
35
|
+
color: #888;
|
36
|
+
font-size: 16px;
|
37
|
+
font-weight: bold;
|
38
|
+
display: none;
|
39
|
+
}
|
40
|
+
|
41
|
+
#dialog .close em {
|
42
|
+
display: none;
|
43
|
+
}
|
44
|
+
|
45
|
+
#dialog.closable .close {
|
46
|
+
display: block;
|
47
|
+
}
|
48
|
+
|
49
|
+
#dialog .close:hover {
|
50
|
+
color: black;
|
51
|
+
}
|
52
|
+
|
53
|
+
#dialog .close:active {
|
54
|
+
margin-top: 1px;
|
55
|
+
}
|
56
|
+
|
57
|
+
/* slide */
|
58
|
+
|
59
|
+
#dialog.slide {
|
60
|
+
-webkit-transition: opacity 300ms, top 300ms;
|
61
|
+
-moz-transition: opacity 300ms, top 300ms;
|
62
|
+
}
|
63
|
+
|
64
|
+
#dialog.slide.hide {
|
65
|
+
opacity: 0;
|
66
|
+
top: -500px;
|
67
|
+
}
|
68
|
+
|
69
|
+
/* fade */
|
70
|
+
|
71
|
+
#dialog.fade {
|
72
|
+
-webkit-transition: opacity 300ms;
|
73
|
+
-moz-transition: opacity 300ms;
|
74
|
+
}
|
75
|
+
|
76
|
+
#dialog.fade.hide {
|
77
|
+
opacity: 0;
|
78
|
+
}
|
79
|
+
|
80
|
+
/* scale */
|
81
|
+
|
82
|
+
#dialog.scale {
|
83
|
+
-webkit-transition: -webkit-transform 300ms;
|
84
|
+
-moz-transition: -moz-transform 300ms;
|
85
|
+
-webkit-transform: scale(1);
|
86
|
+
-moz-transform: scale(1);
|
87
|
+
}
|
88
|
+
|
89
|
+
#dialog.scale.hide {
|
90
|
+
-webkit-transform: scale(0);
|
91
|
+
-moz-transform: scale(0);
|
92
|
+
}
|
@@ -0,0 +1,292 @@
|
|
1
|
+
|
2
|
+
/**
|
3
|
+
* Module dependencies.
|
4
|
+
*/
|
5
|
+
|
6
|
+
var Emitter = require('emitter')
|
7
|
+
, overlay = require('overlay')
|
8
|
+
, o = require('jquery');
|
9
|
+
|
10
|
+
/**
|
11
|
+
* Active dialog.
|
12
|
+
*/
|
13
|
+
|
14
|
+
var active;
|
15
|
+
|
16
|
+
/**
|
17
|
+
* Expose `dialog()`.
|
18
|
+
*/
|
19
|
+
|
20
|
+
exports = module.exports = dialog;
|
21
|
+
|
22
|
+
/**
|
23
|
+
* Expose `Dialog`.
|
24
|
+
*/
|
25
|
+
|
26
|
+
exports.Dialog = Dialog;
|
27
|
+
|
28
|
+
/**
|
29
|
+
* Return a new `Dialog` with the given
|
30
|
+
* (optional) `title` and `msg`.
|
31
|
+
*
|
32
|
+
* @param {String} title or msg
|
33
|
+
* @param {String} msg
|
34
|
+
* @return {Dialog}
|
35
|
+
* @api public
|
36
|
+
*/
|
37
|
+
|
38
|
+
function dialog(title, msg){
|
39
|
+
switch (arguments.length) {
|
40
|
+
case 2:
|
41
|
+
return new Dialog({ title: title, message: msg });
|
42
|
+
case 1:
|
43
|
+
return new Dialog({ message: title });
|
44
|
+
}
|
45
|
+
};
|
46
|
+
|
47
|
+
/**
|
48
|
+
* Initialize a new `Dialog`.
|
49
|
+
*
|
50
|
+
* Options:
|
51
|
+
*
|
52
|
+
* - `title` dialog title
|
53
|
+
* - `message` a message to display
|
54
|
+
*
|
55
|
+
* Emits:
|
56
|
+
*
|
57
|
+
* - `show` when visible
|
58
|
+
* - `hide` when hidden
|
59
|
+
*
|
60
|
+
* @param {Object} options
|
61
|
+
* @api public
|
62
|
+
*/
|
63
|
+
|
64
|
+
function Dialog(options) {
|
65
|
+
Emitter.call(this);
|
66
|
+
options = options || {};
|
67
|
+
this.template = require('./template');
|
68
|
+
this.el = o(this.template);
|
69
|
+
this.render(options);
|
70
|
+
if (active && !active.hiding) active.hide();
|
71
|
+
if (exports.effect) this.effect(exports.effect);
|
72
|
+
this.on('escape', this.hide.bind(this));
|
73
|
+
active = this;
|
74
|
+
};
|
75
|
+
|
76
|
+
/**
|
77
|
+
* Inherit from `Emitter.prototype`.
|
78
|
+
*/
|
79
|
+
|
80
|
+
Dialog.prototype = new Emitter;
|
81
|
+
|
82
|
+
/**
|
83
|
+
* Render with the given `options`.
|
84
|
+
*
|
85
|
+
* @param {Object} options
|
86
|
+
* @api public
|
87
|
+
*/
|
88
|
+
|
89
|
+
Dialog.prototype.render = function(options){
|
90
|
+
var el = this.el
|
91
|
+
, title = options.title
|
92
|
+
, msg = options.message
|
93
|
+
, self = this;
|
94
|
+
|
95
|
+
el.find('.close').click(function(){
|
96
|
+
self.emit('close');
|
97
|
+
self.hide();
|
98
|
+
return false;
|
99
|
+
});
|
100
|
+
|
101
|
+
el.find('.title').text(title);
|
102
|
+
if (!title) el.find('.title').remove();
|
103
|
+
|
104
|
+
// message
|
105
|
+
if ('string' == typeof msg) {
|
106
|
+
el.find('p').text(msg);
|
107
|
+
} else if (msg) {
|
108
|
+
el.find('p').replaceWith(msg.el || msg);
|
109
|
+
}
|
110
|
+
|
111
|
+
setTimeout(function(){
|
112
|
+
el.removeClass('hide');
|
113
|
+
}, 0);
|
114
|
+
};
|
115
|
+
|
116
|
+
/**
|
117
|
+
* Enable the dialog close link.
|
118
|
+
*
|
119
|
+
* @return {Dialog} for chaining
|
120
|
+
* @api public
|
121
|
+
*/
|
122
|
+
|
123
|
+
Dialog.prototype.closable = function(){
|
124
|
+
this.el.addClass('closable');
|
125
|
+
return this;
|
126
|
+
};
|
127
|
+
|
128
|
+
/**
|
129
|
+
* Add class `name`.
|
130
|
+
*
|
131
|
+
* @param {String} name
|
132
|
+
* @return {Dialog}
|
133
|
+
* @api public
|
134
|
+
*/
|
135
|
+
|
136
|
+
Dialog.prototype.addClass = function(name){
|
137
|
+
this.el.addClass(name);
|
138
|
+
return this;
|
139
|
+
};
|
140
|
+
|
141
|
+
/**
|
142
|
+
* Set the effect to `type`.
|
143
|
+
*
|
144
|
+
* @param {String} type
|
145
|
+
* @return {Dialog} for chaining
|
146
|
+
* @api public
|
147
|
+
*/
|
148
|
+
|
149
|
+
Dialog.prototype.effect = function(type){
|
150
|
+
this._effect = type;
|
151
|
+
this.addClass(type);
|
152
|
+
return this;
|
153
|
+
};
|
154
|
+
|
155
|
+
/**
|
156
|
+
* Make it modal!
|
157
|
+
*
|
158
|
+
* @return {Dialog} for chaining
|
159
|
+
* @api public
|
160
|
+
*/
|
161
|
+
|
162
|
+
Dialog.prototype.modal = function(){
|
163
|
+
this._overlay = overlay();
|
164
|
+
return this;
|
165
|
+
};
|
166
|
+
|
167
|
+
/**
|
168
|
+
* Add an overlay.
|
169
|
+
*
|
170
|
+
* @return {Dialog} for chaining
|
171
|
+
* @api public
|
172
|
+
*/
|
173
|
+
|
174
|
+
Dialog.prototype.overlay = function(){
|
175
|
+
var self = this;
|
176
|
+
var o = overlay({ closable: true });
|
177
|
+
o.on('hide', function(){
|
178
|
+
self._overlay = null;
|
179
|
+
self.hide();
|
180
|
+
});
|
181
|
+
this._overlay = o;
|
182
|
+
return this;
|
183
|
+
};
|
184
|
+
|
185
|
+
/**
|
186
|
+
* Close the dialog when the escape key is pressed.
|
187
|
+
*
|
188
|
+
* @api private
|
189
|
+
*/
|
190
|
+
|
191
|
+
Dialog.prototype.escapable = function(){
|
192
|
+
var self = this;
|
193
|
+
o(document).bind('keydown.dialog', function(e){
|
194
|
+
if (27 != e.which) return;
|
195
|
+
self.emit('escape');
|
196
|
+
});
|
197
|
+
};
|
198
|
+
|
199
|
+
/**
|
200
|
+
* Show the dialog.
|
201
|
+
*
|
202
|
+
* Emits "show" event.
|
203
|
+
*
|
204
|
+
* @return {Dialog} for chaining
|
205
|
+
* @api public
|
206
|
+
*/
|
207
|
+
|
208
|
+
Dialog.prototype.show = function(){
|
209
|
+
var overlay = this._overlay;
|
210
|
+
|
211
|
+
// overlay
|
212
|
+
if (overlay) {
|
213
|
+
overlay.show();
|
214
|
+
this.el.addClass('modal');
|
215
|
+
}
|
216
|
+
|
217
|
+
// escape
|
218
|
+
if (!overlay || overlay.closable) this.escapable();
|
219
|
+
|
220
|
+
// position
|
221
|
+
this.el.appendTo('body');
|
222
|
+
this.el.css({ marginLeft: -(this.el.width() / 2) + 'px' });
|
223
|
+
|
224
|
+
this.emit('show');
|
225
|
+
return this;
|
226
|
+
};
|
227
|
+
|
228
|
+
/**
|
229
|
+
* Hide the overlay.
|
230
|
+
*
|
231
|
+
* @api private
|
232
|
+
*/
|
233
|
+
|
234
|
+
Dialog.prototype.hideOverlay = function(){
|
235
|
+
if (!this._overlay) return;
|
236
|
+
this._overlay.remove();
|
237
|
+
this._overlay = null;
|
238
|
+
};
|
239
|
+
|
240
|
+
/**
|
241
|
+
* Hide the dialog with optional delay of `ms`,
|
242
|
+
* otherwise the dialog is removed immediately.
|
243
|
+
*
|
244
|
+
* Emits "hide" event.
|
245
|
+
*
|
246
|
+
* @return {Number} ms
|
247
|
+
* @return {Dialog} for chaining
|
248
|
+
* @api public
|
249
|
+
*/
|
250
|
+
|
251
|
+
Dialog.prototype.hide = function(ms){
|
252
|
+
var self = this;
|
253
|
+
o(document).unbind('keydown.dialog');
|
254
|
+
|
255
|
+
// prevent thrashing
|
256
|
+
this.hiding = true;
|
257
|
+
|
258
|
+
// duration
|
259
|
+
if (ms) {
|
260
|
+
setTimeout(function(){
|
261
|
+
self.hide();
|
262
|
+
}, ms);
|
263
|
+
return this;
|
264
|
+
}
|
265
|
+
|
266
|
+
// hide / remove
|
267
|
+
this.el.addClass('hide');
|
268
|
+
if (this._effect) {
|
269
|
+
setTimeout(function(){
|
270
|
+
self.remove();
|
271
|
+
}, 500);
|
272
|
+
} else {
|
273
|
+
self.remove();
|
274
|
+
}
|
275
|
+
|
276
|
+
// overlay
|
277
|
+
this.hideOverlay();
|
278
|
+
|
279
|
+
return this;
|
280
|
+
};
|
281
|
+
/**
|
282
|
+
* Hide the dialog without potential animation.
|
283
|
+
*
|
284
|
+
* @return {Dialog} for chaining
|
285
|
+
* @api public
|
286
|
+
*/
|
287
|
+
|
288
|
+
Dialog.prototype.remove = function(){
|
289
|
+
this.emit('hide');
|
290
|
+
this.el.remove();
|
291
|
+
return this;
|
292
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
module.exports = '<div id="dialog" class="hide">\n <div class="content">\n <span class="title">Title</span>\n <a href="#" class="close">× <em>close</em></a>\n <div class="body">\n <p>Message</p>\n </div>\n </div>\n</div>';
|