iugu-ux 0.8.0 → 0.8.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -0
- data/lib/iugu-ux/version.rb +1 -1
- data/sandbox/app/assets/javascripts/web-app/presenters/main-view.jst.eco +31 -12
- data/sandbox/app/assets/javascripts/web-app/usecode/root-view.coffee +0 -2
- data/sandbox/app/controllers/ui_library_controller.rb +0 -3
- data/sandbox/app/views/layouts/ui.html.haml +0 -1
- data/sandbox/app/views/ui_library/boiler.html.haml +2 -4
- data/sandbox/config/routes.rb +0 -1
- data/sandbox/log/development.log +20329 -0
- data/sandbox/tmp/cache/assets/BE9/020/sprockets%2Fe93a611416f4149c006c589432090903 +0 -0
- data/sandbox/tmp/cache/assets/C24/5F0/sprockets%2Fcb3028925f1090968337df085236f532 +0 -0
- data/sandbox/tmp/cache/assets/C3E/260/sprockets%2F4262142496540e6691d5bc0260a21eb5 +0 -0
- data/sandbox/tmp/cache/assets/C45/3F0/sprockets%2F0a178290fa722133d544643d13708fc6 +0 -0
- data/sandbox/tmp/cache/assets/C48/D00/sprockets%2F4a51b39094a347e3e325005c7847551c +0 -0
- data/sandbox/tmp/cache/assets/C49/3B0/sprockets%2F405c7112191eed23e8b860254281e763 +0 -0
- data/sandbox/tmp/cache/assets/C4F/3A0/sprockets%2F41918e8d7b402652a5649e4b7134d620 +0 -0
- data/sandbox/tmp/cache/assets/C53/BD0/sprockets%2F00196765c6f95bc1b670b0941172f829 +0 -0
- data/sandbox/tmp/cache/assets/C55/1B0/sprockets%2F413864885359794c0b415c5c012fd8b4 +0 -0
- data/sandbox/tmp/cache/assets/C5E/340/sprockets%2Fcaec1317015c08109f31f190314243b2 +0 -0
- data/sandbox/tmp/cache/assets/C60/360/sprockets%2Fb7a62e5a9315f80120493f865587d982 +0 -0
- data/sandbox/tmp/cache/assets/C62/3A0/sprockets%2Fad550974fd1050311169d4c5004a2e20 +0 -0
- data/sandbox/tmp/cache/assets/C6B/870/sprockets%2Fa90a46599772a03198988b6d444a678f +0 -0
- data/sandbox/tmp/cache/assets/C75/E10/sprockets%2Fb04a483530140d3348c160f58dc56d49 +0 -0
- data/sandbox/tmp/cache/assets/C7A/440/sprockets%2F3828a635611b4f542d38731a1e308f4e +0 -0
- data/sandbox/tmp/cache/assets/C7A/7B0/sprockets%2Fb5fc25d37349717a231120228a0e8d99 +0 -0
- data/sandbox/tmp/cache/assets/C7A/F30/sprockets%2F70249181577b261a3ea8851b530f1e7c +0 -0
- data/sandbox/tmp/cache/assets/C7F/4D0/sprockets%2F8e4b454014428723ac77c713ebf49613 +0 -0
- data/sandbox/tmp/cache/assets/C91/150/sprockets%2F084d158b90125d3acd60b07300f3324a +0 -0
- data/sandbox/tmp/cache/assets/CA2/760/sprockets%2Fb298c140b2372622351f1ef6b0815f3e +0 -0
- data/sandbox/tmp/cache/assets/CA3/610/sprockets%2F06183b0fa253d1afbf76a29801554914 +0 -0
- data/sandbox/tmp/cache/assets/CAB/2A0/sprockets%2F35a28a06551a3891e0582ee18e880d0d +0 -0
- data/sandbox/tmp/cache/assets/CAC/060/sprockets%2Fe72c3ba435988731c168b6441f1bc622 +0 -0
- data/sandbox/tmp/cache/assets/CB4/F00/sprockets%2Fb95d8a0b377ead5c5c59405670734228 +0 -0
- data/sandbox/tmp/cache/assets/CB9/9D0/sprockets%2F893272529e62fea11982e442c0df4c49 +0 -0
- data/sandbox/tmp/cache/assets/CBA/6A0/sprockets%2F964d3e9f13da420a6098981857d20c8b +0 -0
- data/sandbox/tmp/cache/assets/CBB/3F0/sprockets%2Feed6910664fe0a469ee6355e91212395 +0 -0
- data/sandbox/tmp/cache/assets/CBB/AA0/sprockets%2F34b613f862555697eb944a2ff6ac3526 +0 -0
- data/sandbox/tmp/cache/assets/CBB/E20/sprockets%2F00b2c2691b3a8da5553b13d123137c0c +0 -0
- data/sandbox/tmp/cache/assets/CBD/650/sprockets%2F1774801e748257cd49a236d458ce44fd +0 -0
- data/sandbox/tmp/cache/assets/CBF/870/sprockets%2F9de5a39e373d70d1455989c3a1c16676 +0 -0
- data/sandbox/tmp/cache/assets/CC7/EB0/sprockets%2F079d3b368c9e843b78c90079f26d628b +0 -0
- data/sandbox/tmp/cache/assets/CC8/510/sprockets%2F868a1670f8822e6b7847dd22e747a66f +0 -0
- data/sandbox/tmp/cache/assets/CCA/850/sprockets%2F1d05d32f046ec7313b0d3619a232d73f +0 -0
- data/sandbox/tmp/cache/assets/CCB/400/sprockets%2F1530d5680131ba31d7175dcb56e235ce +0 -0
- data/sandbox/tmp/cache/assets/CD0/590/sprockets%2F34362b49bb86e23a636817b55bab30c0 +0 -0
- data/sandbox/tmp/cache/assets/CD1/920/sprockets%2F570c0b1741c64e149720c9a70ef31a5e +0 -0
- data/sandbox/tmp/cache/assets/CD3/7E0/sprockets%2Fe1da4188365b15d4e56321fe11aa3476 +0 -0
- data/sandbox/tmp/cache/assets/CD7/0E0/sprockets%2Fb7291915fd78d50026c443b2c63fa6b0 +0 -0
- data/sandbox/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
- data/sandbox/tmp/cache/assets/CDB/E30/sprockets%2F918458a88fec2cd01991c003b2318ab7 +0 -0
- data/sandbox/tmp/cache/assets/CDE/5C0/sprockets%2F794c70924436be60f2ec52426aa8cd61 +0 -0
- data/sandbox/tmp/cache/assets/CDF/2A0/sprockets%2Faceafc712241955028dc5b137364e869 +0 -0
- data/sandbox/tmp/cache/assets/CDF/EC0/sprockets%2Fa90760fc2f137785c7b810dcb9a40196 +0 -0
- data/sandbox/tmp/cache/assets/CE3/1C0/sprockets%2Ff617335dbdd40d03704f3d1249939f9c +0 -0
- data/sandbox/tmp/cache/assets/CE6/910/sprockets%2F4f1ef52dd511139b0d3f12f3879f6648 +0 -0
- data/sandbox/tmp/cache/assets/CE8/0F0/sprockets%2F12795deec07b2046d9467dd3f2e25809 +0 -0
- data/sandbox/tmp/cache/assets/CEA/5C0/sprockets%2Ff07ef674251629759e234ea642a3cc8e +0 -0
- data/sandbox/tmp/cache/assets/CED/340/sprockets%2F2f33f5d63e037a9f9b859f6c25139e30 +0 -0
- data/sandbox/tmp/cache/assets/CF1/CD0/sprockets%2Ff604c432d2de9f942882ecd8462578f0 +0 -0
- data/sandbox/tmp/cache/assets/CF5/E20/sprockets%2Ff31c0130a87c513e0e5ecea55135117c +0 -0
- data/sandbox/tmp/cache/assets/CFA/EE0/sprockets%2Fd95b64bc8b83485c8f3960c625885dc6 +0 -0
- data/sandbox/tmp/cache/assets/CFD/6C0/sprockets%2F1203d4bbdfe1aac02f896e2447006951 +0 -0
- data/sandbox/tmp/cache/assets/D05/8E0/sprockets%2F58046c1329c03b4cc2e5fa962f431ca8 +0 -0
- data/sandbox/tmp/cache/assets/D05/F60/sprockets%2Fb2725d240fe20257dc6a9e0b6a22399d +0 -0
- data/sandbox/tmp/cache/assets/D08/ED0/sprockets%2Fcb1aee736d3b287a872298b7741b012b +0 -0
- data/sandbox/tmp/cache/assets/D09/DB0/sprockets%2F21a7ee2fd49111e1378c6f7118fd230e +0 -0
- data/sandbox/tmp/cache/assets/D10/6D0/sprockets%2F966130263a0cbcd9c69c2f06789ad3d3 +0 -0
- data/sandbox/tmp/cache/assets/D10/8C0/sprockets%2F5d1e20d279d209b6fc1606d7de41f728 +0 -0
- data/sandbox/tmp/cache/assets/D10/E50/sprockets%2F86dbab9960f9195090301e2c42e1eeb8 +0 -0
- data/sandbox/tmp/cache/assets/D18/2F0/sprockets%2Fcc2e1640b5601b34eb61a4c333a2e31b +0 -0
- data/sandbox/tmp/cache/assets/D1A/B70/sprockets%2F47ae92dd9d034b32098b19bf8f2475a9 +0 -0
- data/sandbox/tmp/cache/assets/D1B/8C0/sprockets%2Fa2e16c5e5e97e98b526e7a6516f4622a +0 -0
- data/sandbox/tmp/cache/assets/D1E/7C0/sprockets%2Fb590b97f48766ae095ccf7b821361c6d +0 -0
- data/sandbox/tmp/cache/assets/D26/0C0/sprockets%2F44ba33f7338d8b57eb37f98e8c861e08 +0 -0
- data/sandbox/tmp/cache/assets/D2B/9B0/sprockets%2F4de45f7ee4e3076777bd571c66f8666b +0 -0
- data/sandbox/tmp/cache/assets/D2D/8C0/sprockets%2F6403fb17fb855b2dd047b010fbf8204d +0 -0
- data/sandbox/tmp/cache/assets/D2D/AF0/sprockets%2Fff24230f8cf22d156618240bb72ddb2a +0 -0
- data/sandbox/tmp/cache/assets/D2E/9D0/sprockets%2F9c0a2445ab6c0967470b5b22d4b1f8ba +0 -0
- data/sandbox/tmp/cache/assets/D2F/500/sprockets%2F4b69a31fdeabf6b46a1656d06b036043 +0 -0
- data/sandbox/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/sandbox/tmp/cache/assets/D34/280/sprockets%2F0fcf69c7e8fd9961e1158d70583e8f95 +0 -0
- data/sandbox/tmp/cache/assets/D34/3E0/sprockets%2F46a73c17c9a561115944df004dbbdd7b +0 -0
- data/sandbox/tmp/cache/assets/D35/AC0/sprockets%2F67d23b05f2a7bc455d0f5f408ca6d523 +0 -0
- data/sandbox/tmp/cache/assets/D36/930/sprockets%2Fc2a0ff7004c8ff6a483b33c8d17c2417 +0 -0
- data/sandbox/tmp/cache/assets/D37/1E0/sprockets%2Fc42800bd200fbf8edbdf9410949590a4 +0 -0
- data/sandbox/tmp/cache/assets/D37/B30/sprockets%2F9e0ec117e9064c55401b50c2abb8ff76 +0 -0
- data/sandbox/tmp/cache/assets/D39/880/sprockets%2F30ace94e10312e02fdf5d4a398393f8b +0 -0
- data/sandbox/tmp/cache/assets/D39/E50/sprockets%2F2e903f41216c9a5bfde3b77d1b9c1390 +0 -0
- data/sandbox/tmp/cache/assets/D3B/BC0/sprockets%2F19510a763bd1521ff5fc70ffe0d837d3 +0 -0
- data/sandbox/tmp/cache/assets/D3D/B80/sprockets%2F75df7c9d480cfbe1f976999e7647d771 +0 -0
- data/sandbox/tmp/cache/assets/D40/6C0/sprockets%2F5331b2ee1f23f57b9b2a96fd0a85b577 +0 -0
- data/sandbox/tmp/cache/assets/D40/8A0/sprockets%2F4483a17992b57cddb5dee15e327d30e3 +0 -0
- data/sandbox/tmp/cache/assets/D44/320/sprockets%2F27989e358a4a57b48c5e4062bff2aa4a +0 -0
- data/sandbox/tmp/cache/assets/D46/650/sprockets%2Fba1459a80d8874a816f88ffec22019ac +0 -0
- data/sandbox/tmp/cache/assets/D47/BA0/sprockets%2F6d287a845e176586f4aaa3f6b5f6ab51 +0 -0
- data/sandbox/tmp/cache/assets/D47/FD0/sprockets%2F279dd54295ff5a0e283a0e5730fff28c +0 -0
- data/sandbox/tmp/cache/assets/D48/370/sprockets%2Fb654fd37f9f63ec202a3636e29b94ef0 +0 -0
- data/sandbox/tmp/cache/assets/D4A/1A0/sprockets%2Fb746360a8b3ce79c57e74a9c15309fdd +0 -0
- data/sandbox/tmp/cache/assets/D4D/5C0/sprockets%2F66eaa47a7875ec8a24a5dbe465e75753 +0 -0
- data/sandbox/tmp/cache/assets/D4D/9B0/sprockets%2Febcc4e9d10b747864a29d16c13f5d899 +0 -0
- data/sandbox/tmp/cache/assets/D4F/810/sprockets%2Fa10070d6497ba2b4ea552d4a1bb444cb +0 -0
- data/sandbox/tmp/cache/assets/D55/310/sprockets%2F2b9be79ca64ec7d294d4825e21696ce9 +0 -0
- data/sandbox/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/sandbox/tmp/cache/assets/D5C/200/sprockets%2Fcd323e6f7545cee0b3ba1e84d7520b00 +0 -0
- data/sandbox/tmp/cache/assets/D5D/310/sprockets%2F5bbf50c40bff0ad1722051c86fe680e2 +0 -0
- data/sandbox/tmp/cache/assets/D5E/290/sprockets%2F22fb620af04e31f058ba64ec4386bb8a +0 -0
- data/sandbox/tmp/cache/assets/D62/490/sprockets%2Fd7c71cd09b0f551a237150dae69ca93a +0 -0
- data/sandbox/tmp/cache/assets/D62/690/sprockets%2F11532c31a6be258097db31bbeb9ff35d +0 -0
- data/sandbox/tmp/cache/assets/D66/BB0/sprockets%2F190ee4571dbbf206b6b26007fd9be9a2 +0 -0
- data/sandbox/tmp/cache/assets/D6A/ED0/sprockets%2Ff5d445fff783322a14283beb4eb5bc33 +0 -0
- data/sandbox/tmp/cache/assets/D6B/0F0/sprockets%2F3609df3f470bd24af26a51de476cef05 +0 -0
- data/sandbox/tmp/cache/assets/D6C/110/sprockets%2F2d5d9cd3d0adf965d07e64a3049d106e +0 -0
- data/sandbox/tmp/cache/assets/D6D/AA0/sprockets%2F1cb4a75912d38d0bdde6ee6770644d0f +0 -0
- data/sandbox/tmp/cache/assets/D6E/AE0/sprockets%2Fe193ea7b03f186ad2a9515fc78fa8c21 +0 -0
- data/sandbox/tmp/cache/assets/D6F/690/sprockets%2F1aa0aa2e0ecc490b1b0ede43013535c1 +0 -0
- data/sandbox/tmp/cache/assets/D70/320/sprockets%2Fb81a3eab4ea93cf21fd7585436b8a169 +0 -0
- data/sandbox/tmp/cache/assets/D70/5D0/sprockets%2F2ff973bae9120e8358ccbaa6395c2b19 +0 -0
- data/sandbox/tmp/cache/assets/D72/250/sprockets%2F68bd0a6d091ef3ba0a64b9762794d6de +0 -0
- data/sandbox/tmp/cache/assets/D72/680/sprockets%2F56c41c78c49d45b9ca0c358adea917f0 +0 -0
- data/sandbox/tmp/cache/assets/D74/0A0/sprockets%2Fc1392b79af6b88250b634479cbf2bcfc +0 -0
- data/sandbox/tmp/cache/assets/D79/5A0/sprockets%2Feb399a6f39a8dcd0bf011768e7153d8d +0 -0
- data/sandbox/tmp/cache/assets/D7A/D40/sprockets%2F4d2bc08f2787a3870ff93e0e0f7bc67e +0 -0
- data/sandbox/tmp/cache/assets/D7C/270/sprockets%2Fc15bcc081286a12c1751bfad1ac2f2a4 +0 -0
- data/sandbox/tmp/cache/assets/D7D/2C0/sprockets%2Fdc76b19d5f8ce4e6e4e9c735c223091f +0 -0
- data/sandbox/tmp/cache/assets/D88/B70/sprockets%2F9b378be843af782b809c5ce3d6f6d47f +0 -0
- data/sandbox/tmp/cache/assets/D89/670/sprockets%2Fbf838afe9adf908d9ec59bc552833285 +0 -0
- data/sandbox/tmp/cache/assets/D8C/D40/sprockets%2Fc4a00154a0e1c15a495ce4d49c9f0ccf +0 -0
- data/sandbox/tmp/cache/assets/D96/460/sprockets%2F510545dac5cc61f17bc4d1e8e740fec5 +0 -0
- data/sandbox/tmp/cache/assets/D96/940/sprockets%2F6a2c3af22b173eb975f382b4cdcd8c41 +0 -0
- data/sandbox/tmp/cache/assets/D96/E90/sprockets%2F0d5f451deca7e6811663f30afc3a4fd4 +0 -0
- data/sandbox/tmp/cache/assets/D97/180/sprockets%2F933323d1c368cfeda7a0cacdbd295933 +0 -0
- data/sandbox/tmp/cache/assets/D9E/000/sprockets%2F1e365d6ecdad349c6f900a3aa829cf18 +0 -0
- data/sandbox/tmp/cache/assets/D9F/020/sprockets%2Fd21cfdfa8182a8866e0ba904ef6561ea +0 -0
- data/sandbox/tmp/cache/assets/DA5/EA0/sprockets%2Fc2e6b41187b059dbddd8dbd7cb884482 +0 -0
- data/sandbox/tmp/cache/assets/DA7/DE0/sprockets%2Ff022dcf0c3c5fd7de3989f600dc7585c +0 -0
- data/sandbox/tmp/cache/assets/DA9/420/sprockets%2F4be564f02ffc16e32df33e92e43fb8f9 +0 -0
- data/sandbox/tmp/cache/assets/DAD/190/sprockets%2Fbee62a5d7a8cd35a33763f1cd879de59 +0 -0
- data/sandbox/tmp/cache/assets/DB5/EC0/sprockets%2Fde17edd0f2eca28280c1a27ac5c510c3 +0 -0
- data/sandbox/tmp/cache/assets/DBE/5E0/sprockets%2F7663abb4baaadfc7e6a48f1150f32b62 +0 -0
- data/sandbox/tmp/cache/assets/DBE/A00/sprockets%2F266ad056a1ae59c1b2934fcd2cad6cf0 +0 -0
- data/sandbox/tmp/cache/assets/DCA/FD0/sprockets%2F0b59a77adfc61bb863e708ba262ce6bd +0 -0
- data/sandbox/tmp/cache/assets/DCB/100/sprockets%2Fd313bd7561b538fb7f2c4ab89dba5b7b +0 -0
- data/sandbox/tmp/cache/assets/DCD/930/sprockets%2F6fd2f59e45a7f3c88a183ee00d1cccd0 +0 -0
- data/sandbox/tmp/cache/assets/DD0/140/sprockets%2Ff9c3eeef5e04c483a3d2e3fbf458a413 +0 -0
- data/sandbox/tmp/cache/assets/DD5/040/sprockets%2F8b8bc1dd8d844edda81c52b7bd29a926 +0 -0
- data/sandbox/tmp/cache/assets/DD6/B70/sprockets%2F2f433efcb60c276ccd93cfdce59687a1 +0 -0
- data/sandbox/tmp/cache/assets/DD7/9B0/sprockets%2F9f2c0826bd7ae7b745ae8da6db48c26e +0 -0
- data/sandbox/tmp/cache/assets/DD8/3B0/sprockets%2Fef4ddeef4487be0bf8c6412714f61e8a +0 -0
- data/sandbox/tmp/cache/assets/DE5/390/sprockets%2F24a1cda6893cebd53997dc859def67cd +0 -0
- data/sandbox/tmp/cache/assets/DF5/EF0/sprockets%2Fd1e83d1a6f55fafac76b4a2ac8541fd1 +0 -0
- data/sandbox/tmp/cache/assets/DFC/890/sprockets%2F2a2c6a1ea98a0cd7b5f7ff4ef7264b3c +0 -0
- data/sandbox/tmp/cache/assets/E05/2E0/sprockets%2F92ecbfa92baf6e394ce6c39d731b7cd2 +0 -0
- data/sandbox/tmp/cache/assets/E12/710/sprockets%2F7e9ee2069eafc7ddd7aff731dc9186d2 +0 -0
- data/sandbox/tmp/cache/assets/E38/420/sprockets%2Fd5e6ba266c8ebddcbf04b3099cf747ff +0 -0
- data/sandbox/tmp/cache/assets/E3F/FE0/sprockets%2Fbbbb6f82edbdac31a0c71ce0b04718ac +0 -0
- data/sandbox/tmp/cache/assets/E40/840/sprockets%2F0b2c9ee1f1fe00aad3bec06cbd08cd15 +0 -0
- data/sandbox/tmp/cache/assets/EC9/D10/sprockets%2F8dfe5ddb2cf1a7f77098fd9eb4ddbcab +0 -0
- data/sandbox/tmp/cache/sass/8e0849d701bca2f5a178ed1215813b1316068a4d/components.sassc +0 -0
- data/sandbox/tmp/cache/sass/8e0849d701bca2f5a178ed1215813b1316068a4d/reset.sassc +0 -0
- data/sandbox/tmp/cache/sass/8e0849d701bca2f5a178ed1215813b1316068a4d/variables.sassc +0 -0
- data/sandbox/tmp/cache/sass/e18337f0c19dfad20daa699fa9a096f70c37cd66/experiment.sassc +0 -0
- data/vendor/assets/javascripts/iugu-ux/components/base_resource.js.coffee +21 -0
- data/vendor/assets/javascripts/iugu-ux/components/base_resources.js.coffee +65 -0
- data/vendor/assets/javascripts/iugu-ux/components/iugu-ux-components.js +7 -1
- data/vendor/assets/javascripts/iugu-ux/components/iugu-ux-main.js.coffee +4 -2
- data/vendor/assets/javascripts/iugu-ux/components/presenters/iugu-ui-alert.jst.eco +6 -0
- data/vendor/assets/javascripts/iugu-ux/components/presenters/iugu-ui-dataset-record.jst.eco +6 -0
- data/vendor/assets/javascripts/iugu-ux/components/presenters/iugu-ui-dataset.jst.eco +2 -0
- data/vendor/assets/javascripts/iugu-ux/components/presenters/iugu-ui-navigator.jst.eco +6 -0
- data/vendor/assets/javascripts/iugu-ux/components/presenters/iugu-ui-paginator.jst.eco +19 -0
- data/vendor/assets/javascripts/iugu-ux/components/presenters/iugu-ui-responsive-box.jst.eco +2 -0
- data/vendor/assets/javascripts/iugu-ux/components/presenters/iugu-ui-scrollable-container.jst.eco +4 -0
- data/vendor/assets/javascripts/iugu-ux/components/presenters/iugu-ui-search-filter.jst.eco +15 -0
- data/vendor/assets/javascripts/iugu-ux/components/presenters/iugu-ui-search-range.jst.eco +5 -0
- data/vendor/assets/javascripts/iugu-ux/components/presenters/iugu-ui-search.jst.eco +3 -0
- data/vendor/assets/javascripts/iugu-ux/components/presenters/iugu-ui-table-row.jst.eco +3 -0
- data/vendor/assets/javascripts/iugu-ux/components/presenters/iugu-ui-table.jst.eco +19 -0
- data/vendor/assets/javascripts/iugu-ux/components/usecode/// +83 -0
- data/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-alert.js.coffee +17 -0
- data/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-base.js.coffee +83 -0
- data/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-dataset-record.js.coffee +17 -0
- data/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-dataset.js.coffee +47 -0
- data/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-navigator.js.coffee +47 -0
- data/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-paginator.js.coffee +58 -0
- data/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-responsive-box.js.coffee +83 -0
- data/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-scrollable-content.js.coffee +13 -0
- data/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-search-filter.js.coffee +55 -0
- data/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-search-range.js.coffee +35 -0
- data/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-search.js.coffee +28 -0
- data/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-table.js.coffee +39 -0
- data/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-view.js.coffee +78 -0
- data/vendor/assets/javascripts/iugu-ux/iugu-ui-helpers.js.coffee +52 -0
- data/vendor/assets/javascripts/iugu-ux/iugu-ux.js +0 -1
- data/vendor/assets/javascripts/iugu-ux/web-app.js +5 -1
- data/vendor/assets/javascripts/vendor.js +5 -0
- data/vendor/assets/javascripts/vendor/async.js +700 -0
- data/vendor/assets/javascripts/vendor/backbone.paginator.js +833 -0
- data/vendor/assets/javascripts/vendor/backbone.validation.js +538 -0
- data/vendor/assets/javascripts/vendor/rivets.js +583 -0
- data/vendor/assets/javascripts/vendor/tasks.js.coffee +16 -0
- data/vendor/assets/javascripts/web-app/config.js.erb +2 -0
- data/vendor/assets/javascripts/web-app/helpers.coffee +5 -0
- data/vendor/assets/stylesheets/iugu-ux/components.sass +186 -0
- data/vendor/assets/stylesheets/iugu-ux/reset.sass +5 -0
- data/vendor/assets/stylesheets/iugu-ux/variables.sass +28 -0
- metadata +260 -44
- data/sandbox/app/assets/stylesheets/application.css +0 -3
- data/sandbox/app/assets/stylesheets/default-sprites.sass +0 -12
- data/sandbox/app/assets/stylesheets/experiment.sass +0 -181
- data/sandbox/app/assets/stylesheets/mq-styles.sass +0 -50
- data/sandbox/app/assets/stylesheets/mqtest.css +0 -6
- data/sandbox/app/assets/stylesheets/sandbox-sprites.css +0 -6
- data/sandbox/app/views/ui_library/mediaquery.html.haml +0 -5
@@ -1,4 +1,10 @@
|
|
1
1
|
// Encoding: UTF-8
|
2
2
|
// Adding a UTF-8 Character to Fix áé
|
3
|
-
|
3
|
+
|
4
|
+
//= require ./base_resource.js
|
5
|
+
//= require ./base_resources.js
|
6
|
+
//= require ./usecode/iugu-ui-base.js
|
7
|
+
//= require ./usecode/iugu-ui-view.js
|
8
|
+
//= require_tree ./presenters
|
9
|
+
//= require_tree ./usecode
|
4
10
|
//= require ./iugu-ux-main.js
|
@@ -1,8 +1,7 @@
|
|
1
|
-
@configure_ui_action = (button,callback=null) ->
|
1
|
+
@configure_ui_action = (button,callback=null,disable_click=false) ->
|
2
2
|
button = $(button)
|
3
3
|
if window.IS_MOBILE
|
4
4
|
button.on 'touchstart', (evt) ->
|
5
|
-
# evt.preventDefault()
|
6
5
|
$(@).addClass 'active'
|
7
6
|
button.on 'touchend', (evt) ->
|
8
7
|
# evt.preventDefault()
|
@@ -16,6 +15,9 @@
|
|
16
15
|
# evt.preventDefault()
|
17
16
|
$(@).removeClass 'active'
|
18
17
|
callback(evt) if callback
|
18
|
+
if disable_click
|
19
|
+
button.on 'click', (evt) ->
|
20
|
+
evt.preventDefault()
|
19
21
|
|
20
22
|
@configure_ui_button = (button) ->
|
21
23
|
# alert $(button).html()
|
@@ -0,0 +1,6 @@
|
|
1
|
+
<section style="background:#FFF;padding-top:5px;padding-bottom:5px">
|
2
|
+
<input class="page" type="text" style="width: 50px; text-align: center;margin-bottom:1px" value=<%= @currentPage %>></input>
|
3
|
+
|
4
|
+
<a href="#" class="button <%= "disabled" if @currentPage == @firstPage %> previous"><</a>
|
5
|
+
<a href="#" class="button <%= "disabled" if @currentPage == @lastPage %> next">></a>
|
6
|
+
</section>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<div class="button-group paginator">
|
2
|
+
<% if @enableAdditionalButtons: %>
|
3
|
+
<a href="#" class="button <%= "disabled" if @currentPage == @firstPage %> previous"><</a>
|
4
|
+
<% end %>
|
5
|
+
<a href="#" class="button <%= "default" if @currentPage == @firstPage %> page"><%= @firstPage %></a>
|
6
|
+
<% if @pageButtons?: %>
|
7
|
+
<% @pageButtons[0] = '...' if (@currentPage - 3) > @firstPage %>
|
8
|
+
<% @pageButtons[@pageButtons.length - 1] = '...' if (@currentPage + 3) < @lastPage %>
|
9
|
+
<% for page in @pageButtons: %>
|
10
|
+
<a href="#" class="button <%= "default" if @currentPage == page %> <%= "disabled" if page == '...' %> page"><%= page %></a>
|
11
|
+
<% end %>
|
12
|
+
<% end %>
|
13
|
+
<% if @lastPage > 1: %>
|
14
|
+
<a href="#" class="button <%= "default" if @currentPage == @lastPage %> page"><%= @lastPage %></a>
|
15
|
+
<% end %>
|
16
|
+
<% if @enableAdditionalButtons: %>
|
17
|
+
<a href="#" class="button <%= "disabled" if @currentPage == @lastPage %> next">></a>
|
18
|
+
<% end %>
|
19
|
+
</div>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<section style="background:#FFF;padding-top:5px;padding-bottom:5px">
|
2
|
+
<% facets = _.pick(@collection.facets, @filterName) %>
|
3
|
+
<% printed = [] %>
|
4
|
+
<% for facet in _.pairs(facets): %>
|
5
|
+
<% for term in facet[1].terms: %>
|
6
|
+
<% printed.push(term.term.toString()) %>
|
7
|
+
<a href="#" data-filter=<%= term.term %> class="button search-filter-button <%= "default" unless _.indexOf(@selected, term.term.toString()) == -1 %>"><%= term.term.toString() %>( <%= term.count %> )</a>
|
8
|
+
<% end %>
|
9
|
+
<% for term in @fixedFilters: %>
|
10
|
+
<% if _.indexOf(printed, term) == -1: %>
|
11
|
+
<a href="#" data-filter=<%= term %> class="button search-filter-button <%= "default" unless _.indexOf(@selected, term) == -1 %>"><%= term %>( 0 )</a>
|
12
|
+
<% end %>
|
13
|
+
<% end %>
|
14
|
+
<% end %>
|
15
|
+
</section>
|
@@ -0,0 +1,5 @@
|
|
1
|
+
<section style="background:#FFF;padding-top:5px;padding-bottom:5px">
|
2
|
+
<input class="search-range-from" placeholder="From" type="text" style="width: 100px; text-align: center;margin-bottom:1px"></input>
|
3
|
+
<input class="search-range-to" placeholder="To" type="text" style="width: 100px; text-align: center;margin-bottom:1px"></input>
|
4
|
+
<input class="button search-range-submit" type="submit" value="Ir"></input>
|
5
|
+
</section>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<table class="table table-bordered table-hover" style="margin-bottom: 0px">
|
2
|
+
<thead>
|
3
|
+
<tr>
|
4
|
+
<% for field in _.pairs(@fields): %>
|
5
|
+
<% if _.indexOf(@sortableBy, field[0]) == -1: %>
|
6
|
+
<th><%= field[1] %></th>
|
7
|
+
<% else: %>
|
8
|
+
<% icon_class = "" %>
|
9
|
+
<% icon_class = "" if @sortBy[field[0]] == "" %>
|
10
|
+
<% icon_class = "ASC" if @sortBy[field[0]] == "asc" %>
|
11
|
+
<% icon_class = "DESC" if @sortBy[field[0]] == "desc" %>
|
12
|
+
<th><a id="<%= field[0] %>" class="button sort-button" href="#" data-direction="<%= icon_class %>"><%= field[1] %> <%= icon_class %></a></th>
|
13
|
+
<% end %>
|
14
|
+
<% end %>
|
15
|
+
</tr>
|
16
|
+
</thead>
|
17
|
+
<tbody class="records">
|
18
|
+
</tbody>
|
19
|
+
</table>
|
@@ -0,0 +1,83 @@
|
|
1
|
+
class IuguUI.ResponsiveBox extends IuguUI.Base
|
2
|
+
layout: "iugu-ui-responsive-box"
|
3
|
+
|
4
|
+
defaults:
|
5
|
+
sidebar: null
|
6
|
+
|
7
|
+
# TODO: Improve wrappers
|
8
|
+
initialize: ->
|
9
|
+
_.bindAll @, 'toggleSidebar'
|
10
|
+
@sidebar = @options.sidebar
|
11
|
+
@sidebar = new IuguUI.ScrollableContainer() unless @sidebar
|
12
|
+
@content = new IuguUI.ScrollableContainer()
|
13
|
+
@sidebar_wrapper = null
|
14
|
+
@content_wrapper = null
|
15
|
+
|
16
|
+
|
17
|
+
getSidebarWrapper: ->
|
18
|
+
@sidebar_wrapper
|
19
|
+
|
20
|
+
getSidebar: ->
|
21
|
+
@sidebar
|
22
|
+
|
23
|
+
getContent: ->
|
24
|
+
@content.getContainer()
|
25
|
+
|
26
|
+
setTitle: (title) ->
|
27
|
+
@$('.responsive-title').html(title)
|
28
|
+
|
29
|
+
getTitle: ->
|
30
|
+
@$('.responsive-title').html()
|
31
|
+
|
32
|
+
toggleSidebar: ( evt ) ->
|
33
|
+
evt.preventDefault()
|
34
|
+
uibox = @$('.ui-responsive-box')
|
35
|
+
|
36
|
+
uisidebar = uibox.children('.sidebar')
|
37
|
+
if ( uisidebar.css('z-index') != '1000' )
|
38
|
+
return
|
39
|
+
|
40
|
+
preventContainer = $(document.createElement('div'))
|
41
|
+
preventContainer.css('position','absolute')
|
42
|
+
preventContainer.css('width','100%')
|
43
|
+
preventContainer.css('height','100%')
|
44
|
+
preventContainer.css('left','0px')
|
45
|
+
preventContainer.css('top','0px')
|
46
|
+
preventContainer.css('backgroundColor','transparent')
|
47
|
+
preventContainer.css('z-index','5000')
|
48
|
+
uibox.append(preventContainer)
|
49
|
+
uibox.toggleClass('open')
|
50
|
+
setTimeout(
|
51
|
+
() ->
|
52
|
+
preventContainer.remove()
|
53
|
+
, 300
|
54
|
+
)
|
55
|
+
|
56
|
+
|
57
|
+
render: ->
|
58
|
+
super
|
59
|
+
$(document.body).addClass 'ui-box-background'
|
60
|
+
|
61
|
+
@sidebar_wrapper = $(document.createElement('div'))
|
62
|
+
@content_wrapper = $(document.createElement('div'))
|
63
|
+
@sidebar_wrapper.addClass "sidebar"
|
64
|
+
@content_wrapper.addClass "content-area handle-sidebar"
|
65
|
+
|
66
|
+
small_navigation = $(document.createElement('div'))
|
67
|
+
small_navigation.addClass 'small-navigation'
|
68
|
+
small_navigation.html '<div class="toggle-sidebar"><div class="iux-default-menu-icon"></div></div><div class="responsive-title"></div>'
|
69
|
+
|
70
|
+
@sidebar.setElement(@sidebar_wrapper).render()
|
71
|
+
@content.setElement(@content_wrapper).render()
|
72
|
+
@content_wrapper.append small_navigation
|
73
|
+
|
74
|
+
@$('.ui-responsive-box').append @sidebar_wrapper, @content_wrapper
|
75
|
+
|
76
|
+
that = @
|
77
|
+
if window.TOUCH_SUPPORT
|
78
|
+
@$('.toggle-sidebar').bind 'touchstart', that.toggleSidebar
|
79
|
+
else
|
80
|
+
@$('.toggle-sidebar').bind 'click', that.toggleSidebar
|
81
|
+
@
|
82
|
+
|
83
|
+
@IuguUI.ResponsiveBox = IuguUI.ResponsiveBox
|
@@ -0,0 +1,17 @@
|
|
1
|
+
class IuguUI.Alert extends IuguUI.Base
|
2
|
+
layout: "iugu-ui-alert"
|
3
|
+
|
4
|
+
defaults:
|
5
|
+
headerText: "HEADER TEXT"
|
6
|
+
bodyText: "BODY TEXT"
|
7
|
+
buttonText: "BUTTON TEXT"
|
8
|
+
|
9
|
+
events:
|
10
|
+
'click a.alertButton': 'handleDOMEvent'
|
11
|
+
|
12
|
+
context: ->
|
13
|
+
headerText: @options.headerText
|
14
|
+
bodyText: @options.bodyText
|
15
|
+
buttonText: @options.buttonText
|
16
|
+
|
17
|
+
@IuguUI.Alert = IuguUI.Alert
|
@@ -0,0 +1,83 @@
|
|
1
|
+
class IuguUI.Base extends Backbone.View
|
2
|
+
|
3
|
+
defaults:
|
4
|
+
baseURL: ""
|
5
|
+
|
6
|
+
initialize: ->
|
7
|
+
_.bindAll @, 'render', 'root', 'identifier', 'delegateChild', 'mapDOMEvent', 'handleEvent', 'handleDOMEvent', 'unload', 'close'
|
8
|
+
|
9
|
+
@options = _.extend {}, @defaults, @options
|
10
|
+
|
11
|
+
@layout = @options.layout if @options.layout
|
12
|
+
@parent = @options.parent if @options.parent
|
13
|
+
|
14
|
+
@identifier = ( -> @options.identifier + ':' ) if @options.identifier
|
15
|
+
|
16
|
+
@handleEvent 'initialize'
|
17
|
+
|
18
|
+
@
|
19
|
+
|
20
|
+
render: ->
|
21
|
+
$(@el).html @getLayout() @context()
|
22
|
+
|
23
|
+
@
|
24
|
+
|
25
|
+
getLayout: ->
|
26
|
+
if JST[ "web-app/presenters/" + @layout ]
|
27
|
+
return JST[ "web-app/presenters/" + @layout ]
|
28
|
+
JST[ "iugu-ux/components/presenters/" + @layout ]
|
29
|
+
|
30
|
+
context: ->
|
31
|
+
return { }
|
32
|
+
|
33
|
+
historyNavigate: (url) ->
|
34
|
+
Backbone.history.navigate @options.baseURL + '/' + url
|
35
|
+
|
36
|
+
root: ->
|
37
|
+
_.result(@parent,'root') or @
|
38
|
+
|
39
|
+
identifier: ->
|
40
|
+
_.result(@parent,'identifier') or ''
|
41
|
+
|
42
|
+
delegateChild: ( selector, view ) ->
|
43
|
+
selectors = {}
|
44
|
+
if _.isObject(selector)
|
45
|
+
selectors = selector
|
46
|
+
else
|
47
|
+
selectors[selector] = view
|
48
|
+
return unless selectors
|
49
|
+
_.each( selectors, ( view, selector ) ->
|
50
|
+
view.setElement(@$(selector)).render()
|
51
|
+
, this )
|
52
|
+
|
53
|
+
mapDOMEvent: (type) ->
|
54
|
+
switch type
|
55
|
+
when 'click' then return 'click'
|
56
|
+
when 'mouseover' then return 'mouseover'
|
57
|
+
when 'mouseout' then return 'mouseout'
|
58
|
+
else return type
|
59
|
+
|
60
|
+
handleEvent: (triggerType) ->
|
61
|
+
@root().trigger( @identifier() + triggerType, @ )
|
62
|
+
|
63
|
+
handleDOMEvent: (e) ->
|
64
|
+
e.preventDefault()
|
65
|
+
triggerType = @mapDOMEvent e.type
|
66
|
+
@handleEvent triggerType
|
67
|
+
|
68
|
+
trigger: (events) ->
|
69
|
+
if app.debug_events
|
70
|
+
debug 'Triggered Event: ' + arguments[0]
|
71
|
+
super
|
72
|
+
|
73
|
+
unload: () ->
|
74
|
+
debug 'Called IuguUI.Base:unload'
|
75
|
+
@undelegateEvents()
|
76
|
+
@off()
|
77
|
+
|
78
|
+
close: () ->
|
79
|
+
debug 'Called IuguUI.Base:close'
|
80
|
+
@unload()
|
81
|
+
@remove
|
82
|
+
|
83
|
+
@IuguUI.Base = IuguUI.Base
|
@@ -0,0 +1,17 @@
|
|
1
|
+
class IuguUI.DatasetRecord extends IuguUI.Base
|
2
|
+
layout: "iugu-ui-dataset-record"
|
3
|
+
|
4
|
+
initialize: ->
|
5
|
+
_.bindAll @
|
6
|
+
super
|
7
|
+
|
8
|
+
events:
|
9
|
+
'click' : 'handleDOMEvent'
|
10
|
+
'mouseenter' : 'handleDOMEvent'
|
11
|
+
'mouseleave' : 'handleDOMEvent'
|
12
|
+
|
13
|
+
context: ->
|
14
|
+
item: @model
|
15
|
+
options: @options
|
16
|
+
|
17
|
+
@IuguUI.DatasetRecord = IuguUI.DatasetRecord
|
@@ -0,0 +1,47 @@
|
|
1
|
+
class IuguUI.Dataset extends IuguUI.Base
|
2
|
+
layout: "iugu-ui-dataset"
|
3
|
+
|
4
|
+
defaults:
|
5
|
+
itemLayout: "iugu-ui-dataset-record"
|
6
|
+
itemTagName: "div"
|
7
|
+
itemClassName: "record"
|
8
|
+
|
9
|
+
initialize: ->
|
10
|
+
super
|
11
|
+
_.bindAll @, 'renderItems', 'addRecord'
|
12
|
+
@collection.on('all', @render)
|
13
|
+
|
14
|
+
@
|
15
|
+
|
16
|
+
addRecord: (item) ->
|
17
|
+
@els.push (
|
18
|
+
new IuguUI.DatasetRecord
|
19
|
+
model: item
|
20
|
+
baseURL: @options.baseURL
|
21
|
+
layout: @options.itemLayout
|
22
|
+
fields: @options.fields
|
23
|
+
tagName: @options.itemTagName
|
24
|
+
className: @options.itemClassName
|
25
|
+
identifier: @identifier() + "record"
|
26
|
+
parent: @
|
27
|
+
).render().el
|
28
|
+
|
29
|
+
context: ->
|
30
|
+
dataset: @collection
|
31
|
+
options: @options
|
32
|
+
|
33
|
+
render: ->
|
34
|
+
super
|
35
|
+
@renderItems()
|
36
|
+
|
37
|
+
@
|
38
|
+
|
39
|
+
renderItems: ->
|
40
|
+
@els = []
|
41
|
+
@collection.each @addRecord
|
42
|
+
|
43
|
+
@$('.records').append @els
|
44
|
+
|
45
|
+
@
|
46
|
+
|
47
|
+
@IuguUI.Dataset = IuguUI.Dataset
|
@@ -0,0 +1,47 @@
|
|
1
|
+
class IuguUI.Navigator extends IuguUI.Base
|
2
|
+
|
3
|
+
layout: "iugu-ui-navigator"
|
4
|
+
|
5
|
+
events:
|
6
|
+
'click a.next': ->
|
7
|
+
@handleEvent 'next'
|
8
|
+
false
|
9
|
+
'click a.previous': ->
|
10
|
+
@handleEvent 'previous'
|
11
|
+
false
|
12
|
+
'change input.page': 'changePage'
|
13
|
+
|
14
|
+
currentPage: ->
|
15
|
+
@$('input.page')
|
16
|
+
|
17
|
+
changePage: ->
|
18
|
+
old_page = @context().currentPage
|
19
|
+
page = @currentPage().val()
|
20
|
+
page = old_page if page == ''
|
21
|
+
if @context().lastPage+1 > page
|
22
|
+
@handleEvent 'change-page'
|
23
|
+
@lastChanged = true
|
24
|
+
true
|
25
|
+
else
|
26
|
+
@currentPage().val( old_page )
|
27
|
+
@currentPage().select()
|
28
|
+
false
|
29
|
+
|
30
|
+
initialize: ->
|
31
|
+
_.bindAll @, 'changePage'
|
32
|
+
super
|
33
|
+
|
34
|
+
context: ->
|
35
|
+
currentPage: 1
|
36
|
+
firstPage: 1
|
37
|
+
lastPage: 3
|
38
|
+
|
39
|
+
setFocus: ->
|
40
|
+
context = @
|
41
|
+
if @lastChanged
|
42
|
+
setTimeout () ->
|
43
|
+
context.$('input.page').focus()
|
44
|
+
context.lastChanged = false
|
45
|
+
, 10
|
46
|
+
|
47
|
+
@IuguUI.Navigator = IuguUI.Navigator
|