{"id":13747601,"url":"https://github.com/jquery-ui-rails/jquery-ui-rails","last_synced_at":"2025-05-14T22:08:47.393Z","repository":{"id":2498075,"uuid":"3472546","full_name":"jquery-ui-rails/jquery-ui-rails","owner":"jquery-ui-rails","description":"jQuery UI for the Rails asset pipeline","archived":false,"fork":false,"pushed_at":"2025-04-30T18:32:29.000Z","size":1216,"stargazers_count":1121,"open_issues_count":12,"forks_count":246,"subscribers_count":34,"default_branch":"master","last_synced_at":"2025-05-03T07:55:23.132Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jquery-ui-rails.png","metadata":{"files":{"readme":"README.md","changelog":"History.md","contributing":null,"funding":null,"license":"License.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2012-02-17T18:17:51.000Z","updated_at":"2025-04-30T18:32:01.000Z","dependencies_parsed_at":"2024-06-18T11:10:59.801Z","dependency_job_id":"c53bc53a-8f13-473f-b52d-6a9d6ed6a0b2","html_url":"https://github.com/jquery-ui-rails/jquery-ui-rails","commit_stats":{"total_commits":190,"total_committers":22,"mean_commits":8.636363636363637,"dds":"0.27368421052631575","last_synced_commit":"c7460b447589eb04aa948ecaf0d1245c88f6ff45"},"previous_names":["joliss/jquery-ui-rails"],"tags_count":39,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jquery-ui-rails%2Fjquery-ui-rails","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jquery-ui-rails%2Fjquery-ui-rails/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jquery-ui-rails%2Fjquery-ui-rails/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jquery-ui-rails%2Fjquery-ui-rails/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jquery-ui-rails","download_url":"https://codeload.github.com/jquery-ui-rails/jquery-ui-rails/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252288911,"owners_count":21724323,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T06:01:34.816Z","updated_at":"2025-05-14T22:08:47.337Z","avatar_url":"https://github.com/jquery-ui-rails.png","language":"Ruby","funding_links":[],"categories":["Ruby","Server-side Integrations"],"sub_categories":["Miscellaneous Plugins"],"readme":"# jquery-ui-rails\n\n[![Build Status](https://travis-ci.org/jquery-ui-rails/jquery-ui-rails.svg?branch=master)](https://travis-ci.org/jquery-ui-rails/jquery-ui-rails)\n[![Dependency Status](https://gemnasium.com/jquery-ui-rails/jquery-ui-rails.svg)](https://gemnasium.com/jquery-ui-rails/jquery-ui-rails)\n\nThis gem packages the jQuery UI assets (JavaScripts, stylesheets, and\nimages) for the Rails [asset\npipeline](http://guides.rubyonrails.org/asset_pipeline.html), so you never have\nto download a custom package through the [web\ninterface](http://jqueryui.com/download) again.\n\nSee [VERSIONS.md](VERSIONS.md) to see which versions of jquery-ui-rails bundle\nwhich versions of jQuery UI.\n\nWarning: This gem is incompatible with the `jquery-rails` gem before version\n3.0.0! Strange things will happen if you use an earlier `jquery-rails`\nversion. Run `bundle list` to ensure that you either aren't using\n`jquery-rails`, or at least version 3.0.0 of `jquery-rails`.\n\n## Usage\n\nIn your Gemfile, add:\n\n```ruby\ngem 'jquery-ui-rails'\n```\n\n## Require Everything\n\nTo require all jQuery UI modules, add the following to your application.js:\n\n```javascript\n//= require jquery-ui\n```\n\nAlso add the jQuery UI CSS to your application.css:\n\n```css\n/*\n *= require jquery-ui\n */\n```\n\n### Warning:\nDue to directory structure changes between jQuery UI 1.10, 1.11, and 1.12,\nif you use version is lower than 6.0, you will have to use a different naming\nfor the files to require, please check following links for more information:\n[for 5.0 users](https://github.com/jquery-ui-rails/jquery-ui-rails/blob/v5.0.5/README.md),\n[for 4.2 users](https://github.com/jquery-ui-rails/jquery-ui-rails/blob/v4.2.1/README.md).\n\nAll images required by jQuery UI are automatically served through the asset\npipeline, so you are good to go! For example, this code will add a\n[datepicker](http://jqueryui.com/demos/datepicker/):\n\n```javascript\n$(function() {\n  $('.datepicker').datepicker();\n});\n```\n\n## Require Specific Modules\n\nThe jQuery UI code weighs 51KB (minified + gzipped) and takes a while to\nexecute, so for production apps it's recommended to only include the modules\nthat your application actually uses. Dependencies are automatically resolved.\nSimply pick one or more modules from the asset list below.\n\nFor example, if you only need the datepicker module, add this to your\napplication.js:\n\n```javascript\n//= require jquery-ui/widgets/datepicker\n```\n\nIn your application.css, require the corresponding CSS module (notice\nno `widgets/` subdirectory here):\n\n```css\n/*\n *= require jquery-ui/datepicker\n */\n```\n\n## JavaScript Assets\n\n### UI Core\n\n```javascript\n//= require jquery-ui/core\n//= require jquery-ui/widget\n//= require jquery-ui/position\n```\n\nYou usually do not need to require these directly, as they are pulled in by the\nother JavaScript modules as needed.\n\n### Interactions\n\n```javascript\n//= require jquery-ui/widgets/mouse\n//= require jquery-ui/widgets/draggable\n//= require jquery-ui/widgets/droppable\n//= require jquery-ui/widgets/resizable\n//= require jquery-ui/widgets/selectable\n//= require jquery-ui/widgets/sortable\n```\n\nFor all but `jquery-ui/mouse` and `jquery-ui/droppable`, remember to `require` their matching CSS\nfiles in your application.css as well.\n\n### Widgets\n\n```javascript\n//= require jquery-ui/widgets/accordion\n//= require jquery-ui/widgets/autocomplete\n//= require jquery-ui/widgets/button\n//= require jquery-ui/widgets/datepicker\n//= require jquery-ui/widgets/dialog\n//= require jquery-ui/widgets/menu\n//= require jquery-ui/widgets/progressbar\n//= require jquery-ui/widgets/selectmenu\n//= require jquery-ui/widgets/slider\n//= require jquery-ui/widgets/spinner\n//= require jquery-ui/widgets/tabs\n//= require jquery-ui/widgets/tooltip\n```\n\nFor all of these, remember to `require` their matching CSS files in your\napplication.css as well.\n\n#### I18n\n\nDatepicker has optional i18n modules for non-US locales, named\n`jquery-ui/datepicker-xx[-YY]`\n([list](https://github.com/jquery-ui-rails/jquery-ui-rails/tree/master/app/assets/javascripts)),\nfor example:\n\n```javascript\n//= require jquery-ui/widgets/datepicker\n//= require jquery-ui/i18n/datepicker-pt-BR\n```\n\nNote that you still need to include the main datepicker module. It is not\nrequired automatically [for performance\nreasons](https://github.com/jquery-ui-rails/jquery-ui-rails/issues/9#issuecomment-6524987).\n\n### Effects\n\n```javascript\n//= require jquery-ui/effect.all\n```\n\nOR\n\n```javascript\n//= require jquery-ui/effect\n//= require jquery-ui/effects/effect-blind\n//= require jquery-ui/effects/effect-bounce\n//= require jquery-ui/effects/effect-clip\n//= require jquery-ui/effects/effect-drop\n//= require jquery-ui/effects/effect-explode\n//= require jquery-ui/effects/effect-fade\n//= require jquery-ui/effects/effect-fold\n//= require jquery-ui/effects/effect-highlight\n//= require jquery-ui/effects/effect-puff\n//= require jquery-ui/effects/effect-pulsate\n//= require jquery-ui/effects/effect-scale\n//= require jquery-ui/effects/effect-shake\n//= require jquery-ui/effects/effect-size\n//= require jquery-ui/effects/effect-slide\n//= require jquery-ui/effects/effect-transfer\n```\n\n## Stylesheet Assets\n\n### UI Core\n\n```css\n/*\n *= require jquery-ui/core\n *= require jquery-ui/theme\n */\n```\n\nYou might want to require these if you do not use any of the following modules,\nbut still want jQuery UI's basic theming CSS. Otherwise they are automatically\npulled in as dependencies.\n\n### Interactions\n\n```css\n/*\n *= require jquery-ui/draggable\n *= require jquery-ui/resizable\n *= require jquery-ui/selectable\n *= require jquery-ui/sortable\n */\n```\n\n### Widgets\n\n```css\n/*\n *= require jquery-ui/accordion\n *= require jquery-ui/autocomplete\n *= require jquery-ui/button\n *= require jquery-ui/datepicker\n *= require jquery-ui/dialog\n *= require jquery-ui/menu\n *= require jquery-ui/progressbar\n *= require jquery-ui/selectmenu\n *= require jquery-ui/slider\n *= require jquery-ui/spinner\n *= require jquery-ui/tabs\n *= require jquery-ui/tooltip\n */\n```\n\n## Contributing\n\n### Bug Reports\n\nFor bugs in jQuery UI itself, head to the [jQuery UI Development\nCenter](http://jqueryui.com/development).\n\nFor bugs in this gem distribution, use the GitHub issue tracker.\n\n### Setup\n\nThe `jquery-ui-rails` gem should work in Ruby 1.8.7 apps. To run the rake\ntasks, you need Ruby 1.9 however.\n\n```bash\ngit clone git://github.com/jquery-ui-rails/jquery-ui-rails.git\ncd jquery-ui-rails\ngit submodule update --init\nbundle install\nbundle exec rake # rebuild assets\n```\n\nMost of the code lives in the `Rakefile`. Pull requests are more than welcome!\n\n### Hacking jQuery UI\n\nThe jquery-ui-rails repository is\n[contributor-friendly](http://www.solitr.com/blog/2012/04/contributor-friendly-gems/)\nand has a git submodule containing the official [jquery-ui\nrepo](https://github.com/jquery/jquery-ui). This way it's easy to hack the\njQuery UI code:\n\n```bash\ncd jquery-ui\ngit checkout master  # or 1-8-stable\n... hack-hack-hack ...\nbundle exec rake  # rebuild assets based on your changes\n```\n\nAssuming your app's Gemfile points at your jquery-ui-rails checkout (`gem\n'jquery-ui-rails', :path =\u003e '~/path/to/jquery-ui-rails'`), all you need to do\nnow is refresh your browser, and your changes to jQuery UI are live in your\nRails application.\n\nYou can send pull requests to the\n[jquery-ui](https://github.com/jquery/jquery-ui) GitHub project straight out of\nyour submodule. See also their\n[Getting Involved](http://wiki.jqueryui.com/w/page/35263114/Getting-Involved)\nguide.\n\n### Testing\n\nAs a smoke test, a `testapp` application is available in the repository, which\ndisplays a check mark and a datepicker to make sure the assets load correctly:\n\n```bash\ncd testapp\nbundle install\nrails server\n```\n\nNow point your browser at [http://localhost:3000/](http://localhost:3000/).\n\n### Releasing\n\nBe sure that `VERSIONS.md`, `History.md` and `lib/jquery/ui/rails/version.rb`\nare up-to-date. Then build and push like so:\n\n```bash\nrake build\ngem push pkg/jquery-ui-rails-X.Y.Z.gem\ngit tag vX.Y.Z\ngit push --tags\n```\n\n## Limitations\n\n*   Only the base theme (Smoothness) is included. Once it becomes possible to\n    [generate all theme\n    files](https://forum.jquery.com/topic/downloading-bundling-all-themes#14737000003080244)\n    from the jQuery UI sources, we can package all the other themes in the\n    [ThemeRoller](http://jqueryui.com/themeroller/) gallery.\n\n    Perhaps we can also add helper tasks to help developers generate assets for\n    their own custom themes or for third-party themes (like\n    [Selene](http://gravityonmars.github.com/Selene/)).\n\n    If you still want a different theme right now, you could probably download\n    a custom theme and require the theme CSS *after* requiring any other jQuery\n    UI CSS files you need, making sure to serve up the theme images correctly.\n    (This is arguably cumbersome, not officially supported by this gem, and\n    adds 1 KB overhead as both the base theme and the custom theme are served\n    up.)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjquery-ui-rails%2Fjquery-ui-rails","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjquery-ui-rails%2Fjquery-ui-rails","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjquery-ui-rails%2Fjquery-ui-rails/lists"}