Permalink
Browse files

Widgets: Pull in new widgets from ui and remove old widgets

This commit pulls in the new jQuery UI Button, Checkboxradio, controlgroup,
and the jQuery UI Accordion. It also Updates to the newest version of
the widget factory which includes the classes option. This commit includes a
backcompat extension for switching boolean style options to classes option.
Lastely it pulls setting theme out into its own extension.
  • Loading branch information...
arschmitz committed Sep 18, 2014
1 parent d04308f commit 20fcc8e7cd0b3a07e1fb45d36e3a4c5a0a3c1e7b
Showing with 1,856 additions and 2,864 deletions.
  1. +8 −4 Gruntfile.js
  2. +7 −23 demos/button/index.php
  3. +587 −0 external/jquery-ui/accordion.js
  4. +346 −0 external/jquery-ui/button.js
  5. +298 −0 external/jquery-ui/checkboxradio.js
  6. +182 −0 external/jquery-ui/controlgroup.js
  7. +0 −269 js/buttonMarkup.js
  8. +1 −1 js/helpers.js
  9. +15 −6 js/index.php
  10. +1 −1 js/init.js
  11. +6 −4 js/jquery.mobile.js
  12. +0 −5 js/requirejs.config.js
  13. +1 −2 js/widget.js
  14. +28 −0 js/widgets/accordion.js
  15. +55 −0 js/widgets/controlgroup.backcompat.js
  16. +19 −161 js/widgets/controlgroup.js
  17. +71 −0 js/widgets/forms/button.backcompat.js
  18. +28 −133 js/widgets/forms/button.js
  19. +37 −0 js/widgets/forms/checkboxradio.backcompat.js
  20. +16 −350 js/widgets/forms/checkboxradio.js
  21. +0 −14 js/widgets/tabs.js
  22. +115 −0 js/widgets/widget.backcompat.js
  23. +35 −0 js/widgets/widget.theme.js
  24. +0 −6 tests/css/controlgroup/controlgroup_core.js
  25. +0 −52 tests/css/controlgroup/index.html
  26. +0 −131 tests/functional/button-markup.html
  27. +0 −96 tests/functional/controlgroup.html
  28. +0 −150 tests/integration/checkboxradio/checkboxradio_core.js
  29. +0 −2 tests/integration/checkboxradio/form-result.html
  30. +0 −198 tests/integration/checkboxradio/index.html
  31. +0 −62 tests/unit/button-markup/buttonMarkup_core.js
  32. +0 −68 tests/unit/button-markup/index.html
  33. +0 −68 tests/unit/button/button_core.js
  34. +0 −72 tests/unit/button/index.html
  35. +0 −235 tests/unit/checkboxradio/checkboxradio_core.js
  36. +0 −51 tests/unit/checkboxradio/find-label-tests.html
  37. +0 −63 tests/unit/checkboxradio/find_label_tests_core.js
  38. +0 −2 tests/unit/checkboxradio/form-result.html
  39. +0 −243 tests/unit/checkboxradio/index.html
  40. +0 −58 tests/unit/checkboxradio/input-set-tests.html
  41. +0 −36 tests/unit/checkboxradio/input_set_tests_core.js
  42. +0 −171 tests/unit/controlgroup/controlgroup_core.js
  43. +0 −127 tests/unit/controlgroup/index.html
View
@@ -954,10 +954,14 @@ module.exports = function( grunt ) {
}
},
files: {
"jquery-ui/jquery.ui.core.js": "jquery-ui/ui/jquery.ui.core.js",
"jquery-ui/jquery.ui.widget.js": "jquery-ui/ui/jquery.ui.widget.js",
"jquery-ui/jquery.ui.tabs.js": "jquery-ui/ui/jquery.ui.tabs.js",
"jquery-ui/MIT-LICENSE.txt": "jquery-ui/MIT-LICENSE.txt"
"jquery-ui/core.js": "jquery-ui/ui/core.js",
"jquery-ui/widget.js": "jquery-ui/ui/widget.js",
"jquery-ui/accordion.js": "jquery-ui/ui/accordion.js",
"jquery-ui/tabs.js": "jquery-ui/ui/tabs.js",
"jquery-ui/button.js": "jquery-ui/ui/button.js",
"jquery-ui/checkboxradio.js": "jquery-ui/ui/checkboxradio.js",
"jquery-ui/controlgroup.js": "jquery-ui/ui/controlgroup.js",
"jquery-ui/LICENSE.txt": "jquery-ui/LICENSE.txt"
}
},
},
View
@@ -42,10 +42,9 @@
<div data-demo-html="true">
<form>
<div class="ui-input-btn ui-btn ui-corner-all ui-shadow">
Input value
<input type="button" data-enhanced="true" value="Input value">
</div>
<label>Input value
<input type="button" data-enhanced="true" value="Input value" class="ui-input-button ui-button ui-corner-all ui-shadow">
</label>
</form>
</div><!--/demo-html -->
@@ -55,24 +54,15 @@
<form>
<input type="button" value="Has corners by default">
<input type="button" data-corners="false" value="Unset corners">
<div class="ui-input-btn ui-btn ui-corner-all">
Enhanced
<input type="button" data-enhanced="true" value="Enhanced">
</div>
<input type="button" data-enhanced="true" value="Enhanced" class="ui-input-button ui-button ui-corner-all">
</form>
</div><!--/demo-html -->
<p>Icon-only buttons are round by default. Here we show how you can set the same border-radius as other buttons.</p>
<div data-demo-html="true" data-demo-css="true">
<form>
<input type="button" data-icon="delete" data-iconpos="notext" value="Icon only">
<div id="custom-border-radius">
<div class="ui-input-btn ui-btn ui-icon-delete ui-btn-icon-notext ui-corner-all">
Enhanced - Icon only
<input type="button" data-enhanced="true" value="Enhanced - Icon only">
</div>
</div>
</form>
</div><!--/demo-html -->
@@ -82,10 +72,7 @@
<form>
<input type="button" value="Has shadow by default">
<input type="button" data-shadow="false" value="Unset shadow">
<div class="ui-input-btn ui-btn ui-shadow">
Enhanced
<input type="button" data-enhanced="true" value="Enhanced">
</div>
<input type="button" data-enhanced="true" value="Enhanced" class="ui-input-button ui-button ui-shadow">
</form>
</div><!--/demo-html -->
@@ -94,10 +81,7 @@
<div data-demo-html="true">
<form>
<input type="button" data-inline="true" value="Input">
<div class="ui-input-btn ui-btn ui-btn-inline">
Enhanced
<input type="button" data-enhanced="true" value="Enhanced">
</div>
<input type="button" data-enhanced="true" value="Enhanced" class="ui-input-button ui-button ui-button-inline">
</form>
</div><!--/demo-html -->
Oops, something went wrong.

0 comments on commit 20fcc8e

Please sign in to comment.