carnival 0.0.55 → 0.0.56
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/carnival/admin.js +3 -3
- data/app/assets/javascripts/carnival/data_tables_functions.js +18 -2
- data/app/assets/javascripts/carnival/external/{jquery.noty.js → noty/jquery.noty.js} +45 -117
- data/app/assets/javascripts/carnival/external/{jquery.noty.layout.bottom.js → noty/layouts/bottom.js} +1 -1
- data/app/assets/javascripts/carnival/external/noty/layouts/bottomCenter.js +41 -0
- data/app/assets/javascripts/carnival/external/noty/layouts/bottomLeft.js +43 -0
- data/app/assets/javascripts/carnival/external/noty/layouts/bottomRight.js +43 -0
- data/app/assets/javascripts/carnival/external/noty/layouts/center.js +56 -0
- data/app/assets/javascripts/carnival/external/noty/layouts/centerLeft.js +61 -0
- data/app/assets/javascripts/carnival/external/noty/layouts/centerRight.js +61 -0
- data/app/assets/javascripts/carnival/external/noty/layouts/inline.js +31 -0
- data/app/assets/javascripts/carnival/external/noty/layouts/top.js +34 -0
- data/app/assets/javascripts/carnival/external/noty/layouts/topCenter.js +41 -0
- data/app/assets/javascripts/carnival/external/noty/layouts/topLeft.js +43 -0
- data/app/assets/javascripts/carnival/external/noty/layouts/topRight.js +43 -0
- data/app/assets/javascripts/carnival/external/noty/packaged/jquery.noty.packaged.js +1180 -0
- data/app/assets/javascripts/carnival/external/noty/packaged/jquery.noty.packaged.min.js +1 -0
- data/app/assets/javascripts/carnival/external/noty/promise.js +432 -0
- data/app/assets/javascripts/carnival/external/{jquery.noty.theme.default.js → noty/themes/default.js} +3 -3
- data/app/assets/javascripts/carnival/vizir_admin.js +0 -30
- data/app/assets/stylesheets/carnival/admin.css +0 -1
- data/app/assets/stylesheets/carnival/jquery.noty.css +17 -104
- data/app/assets/stylesheets/carnival/main.css +31 -3
- data/app/controllers/carnival/base_admin_controller.rb +15 -4
- data/app/datatable/carnival/generic_datatable.rb +23 -11
- data/app/helpers/carnival/base_admin_helper.rb +20 -3
- data/app/inputs/admin_enum_input.rb +5 -3
- data/app/inputs/admin_relationship_select_input.rb +17 -5
- data/app/models/carnival/admin_user.rb +2 -1
- data/app/models/carnival/field.rb +37 -1
- data/app/models/carnival/field.rb.orig +157 -0
- data/app/models/carnival/model_helper.rb +19 -3
- data/app/presenters/carnival/base_admin_presenter.rb +38 -6
- data/app/view_objects/carnival/nested_form_options.rb +135 -0
- data/app/views/carnival/base_admin/edit.html.haml +1 -1
- data/app/views/carnival/base_admin/index.html.haml +3 -3
- data/app/views/carnival/base_admin/load_dependent_select_options.html.haml +5 -0
- data/app/views/carnival/base_admin/new.html.haml +1 -1
- data/app/views/carnival/base_admin/show.html.haml +5 -2
- data/app/views/carnival/shared/_item_buttons.html.haml +1 -1
- data/app/views/carnival/shared/form/_field.html.haml +9 -1
- data/app/views/carnival/shared/form/_field.html.haml.orig +29 -0
- data/app/views/carnival/shared/form/_form.html.haml +64 -3
- data/app/views/carnival/shared/form/_inner_form.html.haml +1 -35
- data/app/views/carnival/shared/form/_nested_form.html.haml +20 -0
- data/app/views/carnival/shared/form/_nested_form_options.html.haml +29 -0
- data/app/views/carnival/shared/show/_show_as_list.html.haml +4 -0
- data/app/views/layouts/carnival/_menu.html.haml +6 -5
- data/config/locales/carnival.pt-br.yml +10 -6
- data/lib/carnival.rb +4 -0
- data/lib/carnival/config.rb +3 -1
- data/lib/carnival/routes.rb +2 -1
- data/lib/carnival/version.rb +1 -1
- data/lib/carnival/version.rb.orig +7 -0
- data/lib/generators/carnival/templates/carnival_initializer.rb +59 -48
- data/test/dummy/app/controllers/admin/people_controller.rb +1 -1
- data/test/dummy/app/controllers/admin/states_controller.rb +1 -1
- data/test/dummy/app/models/admin/city.rb +1 -0
- data/test/dummy/app/models/admin/state.rb +1 -0
- data/test/dummy/app/presenters/admin/person_presenter.rb +4 -2
- data/test/dummy/app/presenters/admin/state_presenter.rb +15 -5
- data/test/dummy/config/initializers/carnival_initializer.rb +7 -2
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/seeds.rb +15 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/bullet.log +366 -1094
- data/test/dummy/log/development.log +20675 -53911
- data/test/dummy/log/test.log +785 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/01c1d1cbb942f60130f0aa01d50c98d2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/02b691bcf7570e21acab45d320ac92cf +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/049c6f2079e2e93f96fd228df8c265ba +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0d9971c4a3b5017a7d2122508b66bb12 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0f7b5da581fb3730800607447951008a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{07e2c1c7f749a9d38b1649aec1d98730 → 1205c92fa474a4de8d08f2774c450103} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/141987f5d019e60604cd75d2e340942f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/147e4215ac96fd8b8d373567ae00ed47 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1634e1287a9914e738e710919b7cd6e4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/16c6027bc506317d8266573d0ae1b510 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/16e4094498947b5f36bfbb490b94d025 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2109e2acf993625dc0a3f05e7e0af523 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/21e89993e0f6f1b465e0de70e76b77f3 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2684dad966b304ec2aee0149dc77c657 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2908a36318747c72030e94441a2579c4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{d3b5d5784361e5eb827fbcdb0332258f → 2a85e7b776e55125671b84c4ed5a9f56} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/30c8c2e6ca355103a267133f6b45b0ce +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/31177aaa32db75be241353c5819450b4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/31a6581dfe5a788b2b450403959a97c5 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/32daf8a3bfd9da8ab261f5002f66389f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/33dfbc7bdde795abfd1031ceaa315dc8 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{197f549b9c46ec6679bddac8e4065948 → 36ac7d3c94b129447c85c4abea55a674} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/39d34c0caaa6f36d684fac1898a7f88f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3a2fdd82041ab4b5ce8a082ec9b270fb +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{aaf9dac7bb02577a8005e39ca9225482 → 3aa40071fc24bbafb6d0d4d36b91be70} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3ac0f4fad0d3e6d3d13d4ed2189dcabe +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3d8100b6e405407290dcf994ef05e0b7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3f89739d959e11df6c20fa6ea13c1044 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3fd8a2a00bb4ebd69a3ecac257dbe536 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4423cb4765f66f187ffcb3be911c3600 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/44dd8eb9e41f4103d9f40dfd6b4ae2ae +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/45b86c586ed942b09cec2190b3c45c5a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/47ce692a80d5b075614c2489d7e3a142 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/499338aa610d84045d1a0f081960c6fc +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4a7a4dcd9fea9bd2e287771c51f96631 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4bd7e9214a07840040d269fdbf523e97 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4c36f4196d9df171251bea6f3b587fe3 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4e4b1f24c5e69f2f305f6d6483a1605c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5090d7ea741c7f63994eb7b62e757f8f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/536648929c703c8c5e964b502b2095ff +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{b632a78e3341b622d2afbcb5312f9da0 → 55d16ecf7bea794f8130ad57090cf849} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/565023fdd3960225e817ec043b2d9474 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/577f4d9c0b4703cbfffd7159a232e60e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5a4d2d875f1d8ab987ab653f896d1c39 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5b0d5ead11b1996d8c04250256d5f1d4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5c8a4c90b3525681a2173b93b9d55293 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5e7998a2046d512312e432aef40d3e22 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5eacf8d05b2a79f57d54ee047a51e223 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5ff6c7a42ff7a4d062640d9211b42275 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/604d964a22a33e7a1dc917eb10328fb6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/611bcab6d1ba6d887fc27c1b9f6f2ac4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6808736d34ec24fb10203097ff009a4d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6b57b684590d7c01cfa80052144dd2df +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6c257cb7126b2e5bda4c42d414e39786 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6ce5945ed85a31ec875a9973b5a3d3bc +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6d806eaa317f200bbf2832a0abf1c1cc +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6e6e4eaedc6398f0557ca2fe922c970d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/706dcf8ec253808fea35ae06a4b408b1 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{3636240cbc1f10d05a7e27f44c330bf9 → 7a5d26a333ef57f4cb3f6148d201aabd} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7cfe3fa955d677396ed9e22193559a64 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7e154ca951644e8aa1a2c6221f08db4f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/822d6436044fe88b0b3fbc6f3458ff88 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8576d7c22dbd8222ab27a6c47f56a65c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/88144c375f9e329812d0302be96e0eab +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8a4b32386b5d8554473df478badd6ef9 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8bc60f31f479cd0263d897aa45b88750 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{5d4c2ae09c50a0b53500e334aa699c8a → 8bee3d374e40eec902852521ab7bb59e} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/918ab452d9c4634682ff94ffbd89e16f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9406ab6f0dd16a8cd5802c3c74df86ce +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9455de99a5c68705427bbec9e50865ce +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/958dd41e5252627471b2b65116401512 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9658141bfa282274f1da9155c32ae206 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/996ac001c901711cabb64b7e1940c54a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9aec27b5fa2afdfa28068452ece0e6f0 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9db7e75f3fa621ef08ade7ffda96e39f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9dc853d92b5d774afadacc451965059c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a125dd8e84a82fc90705bd3710fb93c2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a1c5386d742fb4d01bea977ed28f4a96 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a2ea0bd40e08492898f032af3756ebf9 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a30288f737d428b0feb2a78b3aab9c69 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a40d723f9a6ad5b541009b8f05ce6533 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a908448dd851cae431aa2b4bde9b5a98 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/aa5708f6fbe7528d49c127a7f89a2511 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ad7b50123ad008ac0730bbbdf76a6bfe +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b271e3537645a42480b3ba7bca2342f4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{662125e0a3b8f685abafe02e03c6f442 → b9089c33a95ef4a20cce25cc95ce5d25} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ba891185d4fda83f4c16e6bb8139359b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/bea8fc4b9fc9ae163aa3e82041be2542 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{6f6ec88ead28d25410be2a6f62ec79b1 → c5e6bcf3743cc436e9c5e728e7968918} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c72101732682999b6ca050f007fc6467 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c8927e934e7960fc7907b6fc02ea7f08 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c980544b5828a643ecaa8e784897c2c2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ca0e1997bc6c40f955a42ee777299750 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cc2c3f8b87c5b787305412a3076058db +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{6ad4d1acfed3cffae46c712b7c08af08 → d0f105bf22b1327c9d92c8695d4eb9cd} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d16461dfcae4b782f721ebd81e4f8740 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{5dff23c7dbd41b1db43fea8c8d933e94 → d30e267e67b877123ca48b32ba67d0b3} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d81122f6f2520c8f0785425936756e20 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/dbf160a6439a8d0b792ff46cf0a612f6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/dc829340258cc36c0df423725df54649 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/dcedf863f6acc3e1f21ec11434a77bf7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/dd326f3f4fd1c7fd075b58d6cb623a25 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/de060f82711b4b5c465f17b140eb2a61 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e0352d0f97751491adbe6a94832772af +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e1d6efce94e71965434d2dde64fd8410 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e4298973f799acdce289752c24bfddf2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e4900a6e69f874e98b87c7c7b23f7f5a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e62e56f99e228e3467663224450f0a9b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e9c81ca91323dab8977ffd8a459cab06 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{c3f8745dd91cb1b9a0c076a692369c4a → ea4b1e470711396062a4dba82f0823e6} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/eccab0d41d08e156ccd2f36f85949356 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f035bed7351cb6f6e2bf1250125d3d4b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f1e75c209067b23f5c0c7bf2006c43d0 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f31e05a23db2e9dfc9207658cda7b799 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{3fdb709b3417757576eff80c0ec26b75 → f4428df54ac764385fa3d1c156fd8430} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f5c9348795319821f3309d4e03bb9fdb +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f631443b06d6b36e666344dbaf0b64f0 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f71bbedf97979d3cfe44077a64d3e98a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{8e22d55d0b7b958a3904e7428269df65 → f795ed856980e9033fa3603aa61bac8d} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f7ab949c8c6b7ef3f2b743ebd98f9f59 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/fc4b3bb94f52c27dfb87395841a7cb62 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/fc79e1609ba401a4408c71182ef89b3e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/fd1e0a44b82fc47f26c7adec9d918911 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/fe9a0ccc2a407c74780c85e66882e888 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ff3b0a569330823bd5599af14ee70cc8 +0 -0
- metadata +239 -222
- data/app/assets/stylesheets/carnival/noty_theme_default.css +0 -185
- data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/22e50c67b95bf23b653e7a6768d38749 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2a4d4d7ea99972ea41453ec4e6bad058 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/58ce7bbd3c0d5ae2c59e5fcd6692d8ce +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7e60927c780355f751c11cc4581b0c51 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/84e6a879569ca7546a93558488a6ff70 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d2ea65cc83e604dee36a5316b567e3e2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d554039ac665d1a72c5af06725134a59 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/eed84a44f4e3915a39ea98ce25dc2570 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0fd3caaba16c6f747514d71e60c922b805eaf22a
|
4
|
+
data.tar.gz: 7d9374d90219af65529e84ae75d82094f06dab03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e7a6001eac71c904280aed0ac87ce89fd9356392c989ccd1ba036dc0691c9423aca601a378a6240e530d20944f223debc13ec8309733273546eb8c5a14bfa6c
|
7
|
+
data.tar.gz: df5cbd912ec75ceb3db194c4975b32ecf0579196a64ed2459aca10327ebbb9f54390a4c880f5e61a01a4b9aa2cba880c56f009f1f2718caa7e83e4fd2b288475
|
@@ -1,9 +1,9 @@
|
|
1
1
|
//= require jquery
|
2
2
|
//= require jquery_ujs
|
3
3
|
//= require carnival/external/jquery.dataTables.min
|
4
|
-
//= require carnival/external/jquery.noty
|
5
|
-
//= require carnival/external/
|
6
|
-
//= require carnival/external/
|
4
|
+
//= require carnival/external/noty/jquery.noty
|
5
|
+
//= require carnival/external/noty/layouts/bottom
|
6
|
+
//= require carnival/external/noty/themes/default
|
7
7
|
//= require carnival/external/jquery.colorbox-min
|
8
8
|
//= require carnival/external/jquery-ui-1.9.1.custom.min
|
9
9
|
//= require carnival/external/chosen.jquery
|
@@ -26,7 +26,7 @@ function datatable_list(table, ordered_columns, sorting, filter){
|
|
26
26
|
notSortableColumns.push(index);
|
27
27
|
});
|
28
28
|
|
29
|
-
var
|
29
|
+
var tableConfiguration = {
|
30
30
|
"aoColumnDefs": [
|
31
31
|
{
|
32
32
|
bSortable: false,
|
@@ -46,7 +46,11 @@ function datatable_list(table, ordered_columns, sorting, filter){
|
|
46
46
|
$(".dataTables_processing").html("<div class='datatables-loading'>Processando</div>")
|
47
47
|
},
|
48
48
|
'oLanguage': dataTablesTranslation
|
49
|
-
}
|
49
|
+
}
|
50
|
+
|
51
|
+
tableConfiguration.aaSorting = getSorting(table);
|
52
|
+
|
53
|
+
var oTable = $(table).dataTable(tableConfiguration);
|
50
54
|
|
51
55
|
if(!search)
|
52
56
|
$(".dataTables_filter").hide();
|
@@ -62,6 +66,18 @@ function generateDataSource(table){
|
|
62
66
|
return url;
|
63
67
|
}
|
64
68
|
|
69
|
+
function getSorting(table){
|
70
|
+
var sortConfig = []
|
71
|
+
$(table).find('th').each(function(index, elem){
|
72
|
+
var sortableObj = $(elem).data('sortable');
|
73
|
+
if(sortableObj && sortableObj.default){
|
74
|
+
var direction = sortableObj.direction;
|
75
|
+
sortConfig.push([ index, direction ]);
|
76
|
+
}
|
77
|
+
});
|
78
|
+
return sortConfig;
|
79
|
+
}
|
80
|
+
|
65
81
|
function addUrlParam(url, param, table){
|
66
82
|
if($(table).data(param) != undefined && $(table).data(param) != ""){
|
67
83
|
if(url.indexOf("?") > 0)
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* noty - jQuery Notification Plugin v2.
|
2
|
+
* noty - jQuery Notification Plugin v2.2.2
|
3
3
|
* Contributors: https://github.com/needim/noty/graphs/contributors
|
4
4
|
*
|
5
5
|
* Examples and Documentation - http://needim.github.com/noty/
|
@@ -29,7 +29,11 @@ if (typeof Object.create !== 'function') {
|
|
29
29
|
this.options = $.extend({}, $.noty.defaults, options);
|
30
30
|
|
31
31
|
this.options.layout = (this.options.custom) ? $.noty.layouts['inline'] : $.noty.layouts[this.options.layout];
|
32
|
-
|
32
|
+
|
33
|
+
if ($.noty.themes[this.options.theme])
|
34
|
+
this.options.theme = $.noty.themes[this.options.theme];
|
35
|
+
else
|
36
|
+
options.themeClassName = this.options.theme;
|
33
37
|
|
34
38
|
delete options.layout;
|
35
39
|
delete options.theme;
|
@@ -54,6 +58,9 @@ if (typeof Object.create !== 'function') {
|
|
54
58
|
|
55
59
|
this.$bar = (this.options.layout.parent.object !== null) ? $(this.options.layout.parent.object).css(this.options.layout.parent.css).append($bar) : $bar;
|
56
60
|
|
61
|
+
if (this.options.themeClassName)
|
62
|
+
this.$bar.addClass(this.options.themeClassName).addClass('noty_container_type_' + this.options.type);
|
63
|
+
|
57
64
|
// Set buttons if available
|
58
65
|
if (this.options.buttons) {
|
59
66
|
|
@@ -70,7 +77,7 @@ if (typeof Object.create !== 'function') {
|
|
70
77
|
$.each(this.options.buttons, function (i, button) {
|
71
78
|
var $button = $('<button/>').addClass((button.addClass) ? button.addClass : 'gray').html(button.text).attr('id', button.id ? button.id : 'button-' + i)
|
72
79
|
.appendTo(self.$bar.find('.noty_buttons'))
|
73
|
-
.
|
80
|
+
.on('click', function () {
|
74
81
|
if ($.isFunction(button.onClick)) {
|
75
82
|
button.onClick.call($button, self);
|
76
83
|
}
|
@@ -91,9 +98,10 @@ if (typeof Object.create !== 'function') {
|
|
91
98
|
|
92
99
|
var self = this;
|
93
100
|
|
94
|
-
|
101
|
+
(self.options.custom) ? self.options.custom.find(self.options.layout.container.selector).append(self.$bar) : $(self.options.layout.container.selector).append(self.$bar);
|
95
102
|
|
96
|
-
|
103
|
+
if (self.options.theme && self.options.theme.style)
|
104
|
+
self.options.theme.style.apply(self);
|
97
105
|
|
98
106
|
($.type(self.options.layout.css) === 'function') ? this.options.layout.css.apply(self.$bar) : self.$bar.css(this.options.layout.css || {});
|
99
107
|
|
@@ -103,7 +111,8 @@ if (typeof Object.create !== 'function') {
|
|
103
111
|
|
104
112
|
self.showing = true;
|
105
113
|
|
106
|
-
|
114
|
+
if (self.options.theme && self.options.theme.style)
|
115
|
+
self.options.theme.callback.onShow.apply(this);
|
107
116
|
|
108
117
|
if ($.inArray('click', self.options.closeWith) > -1)
|
109
118
|
self.$bar.css('cursor', 'pointer').one('click', function (evt) {
|
@@ -214,7 +223,9 @@ if (typeof Object.create !== 'function') {
|
|
214
223
|
|
215
224
|
delete $.noty.store[self.options.id]; // deleting noty from store
|
216
225
|
|
217
|
-
self.options.theme.callback.onClose
|
226
|
+
if(self.options.theme.callback && self.options.theme.callback.onClose) {
|
227
|
+
self.options.theme.callback.onClose.apply(self);
|
228
|
+
}
|
218
229
|
|
219
230
|
if (!self.options.dismissQueue) {
|
220
231
|
// Queue render
|
@@ -280,6 +291,9 @@ if (typeof Object.create !== 'function') {
|
|
280
291
|
// Renderer creates a new noty
|
281
292
|
var notification = Object.create(NotyObject).init(options);
|
282
293
|
|
294
|
+
if (notification.options.killer)
|
295
|
+
$.noty.closeAll();
|
296
|
+
|
283
297
|
(notification.options.force) ? $.noty.queue.unshift(notification) : $.noty.queue.push(notification);
|
284
298
|
|
285
299
|
$.notyRenderer.render();
|
@@ -322,15 +336,19 @@ if (typeof Object.create !== 'function') {
|
|
322
336
|
}
|
323
337
|
|
324
338
|
// Where is the container?
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
339
|
+
if (notification.options.custom) {
|
340
|
+
if (notification.options.custom.find(notification.options.layout.container.selector).length == 0) {
|
341
|
+
notification.options.custom.append($(notification.options.layout.container.object).addClass('i-am-new'));
|
342
|
+
} else {
|
343
|
+
notification.options.custom.find(notification.options.layout.container.selector).removeClass('i-am-new');
|
344
|
+
}
|
345
|
+
} else {
|
346
|
+
if ($(notification.options.layout.container.selector).length == 0) {
|
347
|
+
$('body').append($(notification.options.layout.container.object).addClass('i-am-new'));
|
348
|
+
} else {
|
349
|
+
$(notification.options.layout.container.selector).removeClass('i-am-new');
|
350
|
+
}
|
351
|
+
}
|
334
352
|
|
335
353
|
$.notyRenderer.setLayoutCountFor(notification, +1);
|
336
354
|
|
@@ -338,8 +356,14 @@ if (typeof Object.create !== 'function') {
|
|
338
356
|
};
|
339
357
|
|
340
358
|
$.notyRenderer.createModalFor = function (notification) {
|
341
|
-
if ($('.noty_modal').length == 0)
|
342
|
-
|
359
|
+
if ($('.noty_modal').length == 0) {
|
360
|
+
var modal = $('<div/>').addClass('noty_modal').addClass(notification.options.theme).data('noty_modal_count', 0);
|
361
|
+
|
362
|
+
if (notification.options.theme.modal && notification.options.theme.modal.css)
|
363
|
+
modal.css(notification.options.theme.modal.css);
|
364
|
+
|
365
|
+
modal.prependTo($('body')).fadeIn('fast');
|
366
|
+
}
|
343
367
|
};
|
344
368
|
|
345
369
|
$.notyRenderer.getLayoutCountFor = function (notification) {
|
@@ -433,6 +457,7 @@ if (typeof Object.create !== 'function') {
|
|
433
457
|
force:false,
|
434
458
|
modal:false,
|
435
459
|
maxVisible:5,
|
460
|
+
killer: false,
|
436
461
|
closeWith:['click'],
|
437
462
|
callback:{
|
438
463
|
onShow:function () {
|
@@ -449,7 +474,7 @@ if (typeof Object.create !== 'function') {
|
|
449
474
|
buttons:false
|
450
475
|
};
|
451
476
|
|
452
|
-
$(window).resize
|
477
|
+
$(window).on('resize', function () {
|
453
478
|
$.each($.noty.layouts, function (index, layout) {
|
454
479
|
layout.container.style.apply($(layout.container.selector));
|
455
480
|
});
|
@@ -459,102 +484,5 @@ if (typeof Object.create !== 'function') {
|
|
459
484
|
|
460
485
|
// Helpers
|
461
486
|
window.noty = function noty(options) {
|
462
|
-
|
463
|
-
// This is for BC - Will be deleted on v2.2.0
|
464
|
-
var using_old = 0
|
465
|
-
, old_to_new = {
|
466
|
-
'animateOpen':'animation.open',
|
467
|
-
'animateClose':'animation.close',
|
468
|
-
'easing':'animation.easing',
|
469
|
-
'speed':'animation.speed',
|
470
|
-
'onShow':'callback.onShow',
|
471
|
-
'onShown':'callback.afterShow',
|
472
|
-
'onClose':'callback.onClose',
|
473
|
-
'onCloseClick':'callback.onCloseClick',
|
474
|
-
'onClosed':'callback.afterClose'
|
475
|
-
};
|
476
|
-
|
477
|
-
jQuery.each(options, function (key, value) {
|
478
|
-
if (old_to_new[key]) {
|
479
|
-
using_old++;
|
480
|
-
var _new = old_to_new[key].split('.');
|
481
|
-
|
482
|
-
if (!options[_new[0]]) options[_new[0]] = {};
|
483
|
-
|
484
|
-
options[_new[0]][_new[1]] = (value) ? value : function () {
|
485
|
-
};
|
486
|
-
delete options[key];
|
487
|
-
}
|
488
|
-
});
|
489
|
-
|
490
|
-
if (!options.closeWith) {
|
491
|
-
options.closeWith = jQuery.noty.defaults.closeWith;
|
492
|
-
}
|
493
|
-
|
494
|
-
if (options.hasOwnProperty('closeButton')) {
|
495
|
-
using_old++;
|
496
|
-
if (options.closeButton) options.closeWith.push('button');
|
497
|
-
delete options.closeButton;
|
498
|
-
}
|
499
|
-
|
500
|
-
if (options.hasOwnProperty('closeOnSelfClick')) {
|
501
|
-
using_old++;
|
502
|
-
if (options.closeOnSelfClick) options.closeWith.push('click');
|
503
|
-
delete options.closeOnSelfClick;
|
504
|
-
}
|
505
|
-
|
506
|
-
if (options.hasOwnProperty('closeOnSelfOver')) {
|
507
|
-
using_old++;
|
508
|
-
if (options.closeOnSelfOver) options.closeWith.push('hover');
|
509
|
-
delete options.closeOnSelfOver;
|
510
|
-
}
|
511
|
-
|
512
|
-
if (options.hasOwnProperty('custom')) {
|
513
|
-
using_old++;
|
514
|
-
if (options.custom.container != 'null') options.custom = options.custom.container;
|
515
|
-
}
|
516
|
-
|
517
|
-
if (options.hasOwnProperty('cssPrefix')) {
|
518
|
-
using_old++;
|
519
|
-
delete options.cssPrefix;
|
520
|
-
}
|
521
|
-
|
522
|
-
if (options.theme == 'noty_theme_default') {
|
523
|
-
using_old++;
|
524
|
-
options.theme = 'defaultTheme';
|
525
|
-
}
|
526
|
-
|
527
|
-
if (!options.hasOwnProperty('dismissQueue')) {
|
528
|
-
options.dismissQueue = jQuery.noty.defaults.dismissQueue;
|
529
|
-
}
|
530
|
-
|
531
|
-
if (!options.hasOwnProperty('maxVisible')) {
|
532
|
-
options.maxVisible = jQuery.noty.defaults.maxVisible;
|
533
|
-
}
|
534
|
-
|
535
|
-
if (options.buttons) {
|
536
|
-
jQuery.each(options.buttons, function (i, button) {
|
537
|
-
if (button.click) {
|
538
|
-
using_old++;
|
539
|
-
button.onClick = button.click;
|
540
|
-
delete button.click;
|
541
|
-
}
|
542
|
-
if (button.type) {
|
543
|
-
using_old++;
|
544
|
-
button.addClass = button.type;
|
545
|
-
delete button.type;
|
546
|
-
}
|
547
|
-
});
|
548
|
-
}
|
549
|
-
|
550
|
-
if (using_old) {
|
551
|
-
if (typeof console !== "undefined" && console.warn) {
|
552
|
-
console.warn('You are using noty v2 with v1.x.x options. @deprecated until v2.2.0 - Please update your options.');
|
553
|
-
}
|
554
|
-
}
|
555
|
-
|
556
|
-
// console.log(options);
|
557
|
-
// End of the BC
|
558
|
-
|
559
487
|
return jQuery.notyRenderer.init(options);
|
560
|
-
}
|
488
|
+
};
|
@@ -0,0 +1,41 @@
|
|
1
|
+
(function($) {
|
2
|
+
|
3
|
+
$.noty.layouts.bottomCenter = {
|
4
|
+
name: 'bottomCenter',
|
5
|
+
options: { // overrides options
|
6
|
+
|
7
|
+
},
|
8
|
+
container: {
|
9
|
+
object: '<ul id="noty_bottomCenter_layout_container" />',
|
10
|
+
selector: 'ul#noty_bottomCenter_layout_container',
|
11
|
+
style: function() {
|
12
|
+
$(this).css({
|
13
|
+
bottom: 20,
|
14
|
+
left: 0,
|
15
|
+
position: 'fixed',
|
16
|
+
width: '310px',
|
17
|
+
height: 'auto',
|
18
|
+
margin: 0,
|
19
|
+
padding: 0,
|
20
|
+
listStyleType: 'none',
|
21
|
+
zIndex: 10000000
|
22
|
+
});
|
23
|
+
|
24
|
+
$(this).css({
|
25
|
+
left: ($(window).width() - $(this).outerWidth(false)) / 2 + 'px'
|
26
|
+
});
|
27
|
+
}
|
28
|
+
},
|
29
|
+
parent: {
|
30
|
+
object: '<li />',
|
31
|
+
selector: 'li',
|
32
|
+
css: {}
|
33
|
+
},
|
34
|
+
css: {
|
35
|
+
display: 'none',
|
36
|
+
width: '310px'
|
37
|
+
},
|
38
|
+
addClass: ''
|
39
|
+
};
|
40
|
+
|
41
|
+
})(jQuery);
|
@@ -0,0 +1,43 @@
|
|
1
|
+
(function($) {
|
2
|
+
|
3
|
+
$.noty.layouts.bottomLeft = {
|
4
|
+
name: 'bottomLeft',
|
5
|
+
options: { // overrides options
|
6
|
+
|
7
|
+
},
|
8
|
+
container: {
|
9
|
+
object: '<ul id="noty_bottomLeft_layout_container" />',
|
10
|
+
selector: 'ul#noty_bottomLeft_layout_container',
|
11
|
+
style: function() {
|
12
|
+
$(this).css({
|
13
|
+
bottom: 20,
|
14
|
+
left: 20,
|
15
|
+
position: 'fixed',
|
16
|
+
width: '310px',
|
17
|
+
height: 'auto',
|
18
|
+
margin: 0,
|
19
|
+
padding: 0,
|
20
|
+
listStyleType: 'none',
|
21
|
+
zIndex: 10000000
|
22
|
+
});
|
23
|
+
|
24
|
+
if (window.innerWidth < 600) {
|
25
|
+
$(this).css({
|
26
|
+
left: 5
|
27
|
+
});
|
28
|
+
}
|
29
|
+
}
|
30
|
+
},
|
31
|
+
parent: {
|
32
|
+
object: '<li />',
|
33
|
+
selector: 'li',
|
34
|
+
css: {}
|
35
|
+
},
|
36
|
+
css: {
|
37
|
+
display: 'none',
|
38
|
+
width: '310px'
|
39
|
+
},
|
40
|
+
addClass: ''
|
41
|
+
};
|
42
|
+
|
43
|
+
})(jQuery);
|
@@ -0,0 +1,43 @@
|
|
1
|
+
(function($) {
|
2
|
+
|
3
|
+
$.noty.layouts.bottomRight = {
|
4
|
+
name: 'bottomRight',
|
5
|
+
options: { // overrides options
|
6
|
+
|
7
|
+
},
|
8
|
+
container: {
|
9
|
+
object: '<ul id="noty_bottomRight_layout_container" />',
|
10
|
+
selector: 'ul#noty_bottomRight_layout_container',
|
11
|
+
style: function() {
|
12
|
+
$(this).css({
|
13
|
+
bottom: 20,
|
14
|
+
right: 20,
|
15
|
+
position: 'fixed',
|
16
|
+
width: '310px',
|
17
|
+
height: 'auto',
|
18
|
+
margin: 0,
|
19
|
+
padding: 0,
|
20
|
+
listStyleType: 'none',
|
21
|
+
zIndex: 10000000
|
22
|
+
});
|
23
|
+
|
24
|
+
if (window.innerWidth < 600) {
|
25
|
+
$(this).css({
|
26
|
+
right: 5
|
27
|
+
});
|
28
|
+
}
|
29
|
+
}
|
30
|
+
},
|
31
|
+
parent: {
|
32
|
+
object: '<li />',
|
33
|
+
selector: 'li',
|
34
|
+
css: {}
|
35
|
+
},
|
36
|
+
css: {
|
37
|
+
display: 'none',
|
38
|
+
width: '310px'
|
39
|
+
},
|
40
|
+
addClass: ''
|
41
|
+
};
|
42
|
+
|
43
|
+
})(jQuery);
|
@@ -0,0 +1,56 @@
|
|
1
|
+
(function($) {
|
2
|
+
|
3
|
+
$.noty.layouts.center = {
|
4
|
+
name: 'center',
|
5
|
+
options: { // overrides options
|
6
|
+
|
7
|
+
},
|
8
|
+
container: {
|
9
|
+
object: '<ul id="noty_center_layout_container" />',
|
10
|
+
selector: 'ul#noty_center_layout_container',
|
11
|
+
style: function() {
|
12
|
+
$(this).css({
|
13
|
+
position: 'fixed',
|
14
|
+
width: '310px',
|
15
|
+
height: 'auto',
|
16
|
+
margin: 0,
|
17
|
+
padding: 0,
|
18
|
+
listStyleType: 'none',
|
19
|
+
zIndex: 10000000
|
20
|
+
});
|
21
|
+
|
22
|
+
// getting hidden height
|
23
|
+
var dupe = $(this).clone().css({visibility:"hidden", display:"block", position:"absolute", top: 0, left: 0}).attr('id', 'dupe');
|
24
|
+
$("body").append(dupe);
|
25
|
+
dupe.find('.i-am-closing-now').remove();
|
26
|
+
dupe.find('li').css('display', 'block');
|
27
|
+
var actual_height = dupe.height();
|
28
|
+
dupe.remove();
|
29
|
+
|
30
|
+
if ($(this).hasClass('i-am-new')) {
|
31
|
+
$(this).css({
|
32
|
+
left: ($(window).width() - $(this).outerWidth(false)) / 2 + 'px',
|
33
|
+
top: ($(window).height() - actual_height) / 2 + 'px'
|
34
|
+
});
|
35
|
+
} else {
|
36
|
+
$(this).animate({
|
37
|
+
left: ($(window).width() - $(this).outerWidth(false)) / 2 + 'px',
|
38
|
+
top: ($(window).height() - actual_height) / 2 + 'px'
|
39
|
+
}, 500);
|
40
|
+
}
|
41
|
+
|
42
|
+
}
|
43
|
+
},
|
44
|
+
parent: {
|
45
|
+
object: '<li />',
|
46
|
+
selector: 'li',
|
47
|
+
css: {}
|
48
|
+
},
|
49
|
+
css: {
|
50
|
+
display: 'none',
|
51
|
+
width: '310px'
|
52
|
+
},
|
53
|
+
addClass: ''
|
54
|
+
};
|
55
|
+
|
56
|
+
})(jQuery);
|