├── .npmrc
├── tests
├── unit
│ ├── droppable
│ │ ├── deprecated.js
│ │ ├── common.js
│ │ ├── helper.js
│ │ ├── common-deprecated.js
│ │ ├── all.html
│ │ ├── droppable.html
│ │ ├── deprecated.html
│ │ └── core.js
│ ├── tabs
│ │ ├── data
│ │ │ └── test.html
│ │ ├── common.js
│ │ └── all.html
│ ├── selectable
│ │ ├── core.js
│ │ ├── common.js
│ │ ├── selectable.html
│ │ └── all.html
│ ├── autocomplete
│ │ ├── remote_string_array.txt
│ │ ├── remote_object_array_labels.txt
│ │ ├── remote_object_array_values.txt
│ │ ├── all.html
│ │ ├── common.js
│ │ └── autocomplete.html
│ ├── resizable
│ │ ├── images
│ │ │ └── test.jpg
│ │ ├── helper.js
│ │ ├── all.html
│ │ ├── common.js
│ │ └── methods.js
│ ├── datepicker
│ │ ├── images
│ │ │ └── calendar.gif
│ │ ├── common.js
│ │ ├── datepicker.html
│ │ └── all.html
│ ├── sortable
│ │ ├── helper.js
│ │ ├── all.html
│ │ └── common.js
│ ├── spinner
│ │ ├── helper.js
│ │ ├── spinner.html
│ │ ├── deprecated.html
│ │ ├── common.js
│ │ ├── common-deprecated.js
│ │ └── all.html
│ ├── button
│ │ ├── common.js
│ │ ├── common-deprecated.js
│ │ ├── events.js
│ │ ├── all.html
│ │ ├── core.js
│ │ ├── button.html
│ │ └── methods.js
│ ├── checkboxradio
│ │ ├── common.js
│ │ └── all.html
│ ├── progressbar
│ │ ├── common.js
│ │ ├── progressbar.html
│ │ └── all.html
│ ├── menu
│ │ ├── common.js
│ │ ├── all.html
│ │ └── helper.js
│ ├── widget
│ │ ├── widget.html
│ │ └── all.html
│ ├── tooltip
│ │ ├── common.js
│ │ ├── deprecated.js
│ │ ├── common-deprecated.js
│ │ ├── helper.js
│ │ ├── all.html
│ │ ├── tooltip.html
│ │ └── deprecated.html
│ ├── form-reset-mixin
│ │ ├── form-reset-mixin.html
│ │ └── all.html
│ ├── jquery-patch
│ │ ├── jquery-patch.html
│ │ └── all.html
│ ├── selectmenu
│ │ ├── common.js
│ │ └── all.html
│ ├── core
│ │ └── all.html
│ ├── dialog
│ │ ├── all.html
│ │ ├── common.js
│ │ ├── common-deprecated.js
│ │ ├── dialog.html
│ │ └── deprecated.html
│ ├── slider
│ │ ├── all.html
│ │ ├── common.js
│ │ └── slider.html
│ ├── effects
│ │ └── all.html
│ ├── accordion
│ │ ├── all.html
│ │ ├── common.js
│ │ └── helper.js
│ ├── draggable
│ │ ├── all.html
│ │ └── common.js
│ ├── position
│ │ └── all.html
│ ├── controlgroup
│ │ ├── all.html
│ │ └── common.js
│ └── subsuite.js
├── lib
│ ├── grunt-contrib-qunit-bridges
│ │ ├── bridge-wrapper.js.outro
│ │ └── bridge-wrapper.js.intro
│ ├── testIframe.js
│ ├── css.js
│ └── vendor
│ │ ├── qunit-composite
│ │ └── qunit-composite.css
│ │ ├── qunit-assert-classes
│ │ └── LICENSE.txt
│ │ └── qunit-assert-close
│ │ └── MIT-LICENSE.txt
├── visual
│ ├── effects
│ │ ├── image.png
│ │ └── effects.css
│ ├── visual.css
│ ├── compound
│ │ ├── datepicker_dialog.html
│ │ ├── tabs_tooltips.html
│ │ └── tabs_selectmenu.html
│ ├── draggable
│ │ └── replaced.html
│ ├── slider
│ │ └── range_slider.html
│ ├── dialog
│ │ └── animated.html
│ └── addClass
│ │ └── queue.html
├── images
│ ├── jquery_521x191.png
│ └── jqueryui_32x32.png
├── index.js
├── index.css
└── index.html
├── .gitignore
├── demos
├── tooltip
│ ├── ajax
│ │ ├── content1.html
│ │ └── content2.html
│ ├── images
│ │ ├── st-stephens.jpg
│ │ └── tower-bridge.jpg
│ └── index.html
├── images
│ ├── calendar.gif
│ ├── pbar-ani.gif
│ ├── demo-config-on.gif
│ ├── icon-docs-info.gif
│ ├── demo-spindown-open.gif
│ ├── demo-config-on-tile.gif
│ └── demo-spindown-closed.gif
├── position
│ ├── images
│ │ ├── earth.jpg
│ │ ├── flight.jpg
│ │ └── rocket.jpg
│ └── index.html
├── checkboxradio
│ ├── images
│ │ ├── jquery.png
│ │ ├── qunit.png
│ │ ├── sizzle.png
│ │ ├── jquery-ui.png
│ │ └── jquery-mobile.png
│ ├── index.html
│ └── radiogroup.html
├── datepicker
│ ├── images
│ │ └── calendar.gif
│ ├── inline.html
│ ├── multiple-calendars.html
│ ├── other-months.html
│ ├── dropdown-month-year.html
│ ├── icon-trigger.html
│ ├── default.html
│ ├── buttonbar.html
│ ├── show-week.html
│ ├── min-max.html
│ ├── alt-field.html
│ └── index.html
├── droppable
│ ├── images
│ │ ├── high_tatras.jpg
│ │ ├── high_tatras2.jpg
│ │ ├── high_tatras3.jpg
│ │ ├── high_tatras4.jpg
│ │ ├── high_tatras2_min.jpg
│ │ ├── high_tatras3_min.jpg
│ │ ├── high_tatras4_min.jpg
│ │ └── high_tatras_min.jpg
│ ├── index.html
│ └── default.html
├── progressbar
│ ├── images
│ │ └── pbar-ani.gif
│ ├── index.html
│ └── default.html
├── autocomplete
│ ├── images
│ │ ├── jquery_32x32.png
│ │ ├── jqueryui_32x32.png
│ │ ├── sizzlejs_32x32.png
│ │ ├── transparent_1x1.png
│ │ └── ui-anim_basic_16x16.gif
│ └── index.html
├── selectmenu
│ ├── images
│ │ ├── 24-rss-square.png
│ │ ├── 24-video-square.png
│ │ └── 24-podcast-square.png
│ └── index.html
├── demos.css
├── widget
│ └── index.html
├── button
│ └── index.html
├── menu
│ ├── index.html
│ └── categories.html
├── controlgroup
│ └── index.html
├── selectable
│ └── index.html
├── spinner
│ ├── index.html
│ └── overflow.html
├── dialog
│ ├── index.html
│ └── default.html
├── tabs
│ └── index.html
├── accordion
│ └── index.html
├── sortable
│ └── index.html
├── slider
│ ├── default.html
│ ├── index.html
│ ├── rangemax.html
│ ├── rangemin.html
│ ├── steps.html
│ ├── custom-handle.html
│ └── slider-vertical.html
├── effect
│ └── index.html
├── draggable
│ ├── index.html
│ ├── default.html
│ └── revert.html
├── resizable
│ ├── textarea.html
│ ├── index.html
│ ├── default.html
│ ├── snap-to-grid.html
│ ├── helper.html
│ ├── visual-feedback.html
│ ├── aspect-ratio.html
│ ├── animate.html
│ ├── max-min.html
│ ├── synchronous-resize.html
│ └── constrain-area.html
└── index.html
├── themes
└── base
│ ├── images
│ ├── ui-icons_444444_256x240.png
│ ├── ui-icons_555555_256x240.png
│ ├── ui-icons_777620_256x240.png
│ ├── ui-icons_777777_256x240.png
│ ├── ui-icons_cc0000_256x240.png
│ ├── ui-icons_ffffff_256x240.png
│ └── ui-bg_flat_0_aaaaaa_40x100.png
│ ├── draggable.css
│ ├── sortable.css
│ ├── all.css
│ ├── selectable.css
│ ├── autocomplete.css
│ ├── tooltip.css
│ ├── accordion.css
│ ├── base.css
│ ├── checkboxradio.css
│ ├── selectmenu.css
│ ├── spinner.css
│ └── menu.css
├── .gitattributes
├── .npmignore
├── .github
├── dependabot.yml
└── workflows
│ └── node.js.yml
├── .csslintrc
├── ui
├── version.js
├── jquery-var-for-color.js
├── data.js
├── keycode.js
├── tabbable.js
├── effects
│ ├── effect-transfer.js
│ ├── effect-fade.js
│ └── effect-puff.js
├── unique-id.js
├── plugin.js
├── i18n
│ ├── datepicker-ja.js
│ ├── datepicker-zh-TW.js
│ ├── datepicker-zh-CN.js
│ ├── datepicker-zh-HK.js
│ ├── datepicker-ko.js
│ ├── datepicker-hu.js
│ ├── datepicker-eu.js
│ └── datepicker-he.js
└── disable-selection.js
├── .editorconfig
├── SECURITY.md
├── jtr.yml
├── jtr-git.yml
├── jtr-stable.yml
└── external
├── globalize
└── LICENSE
├── jquery
├── LICENSE.txt
└── MIT-LICENSE.txt
├── qunit
├── LICENSE.txt
└── MIT-LICENSE.txt
├── jquery-3.4.0
└── LICENSE.txt
├── jquery-3.4.1
└── LICENSE.txt
├── jquery-3.5.0
└── LICENSE.txt
├── jquery-3.5.1
└── LICENSE.txt
├── jquery-3.6.0
└── LICENSE.txt
├── jquery-3.6.1
└── LICENSE.txt
├── jquery-3.6.2
└── LICENSE.txt
├── jquery-3.6.3
└── LICENSE.txt
├── jquery-3.6.4
└── LICENSE.txt
├── jquery-3.7.0
└── LICENSE.txt
├── jquery-3.7.1
└── LICENSE.txt
├── jquery-4.0.0-rc.1
└── LICENSE.txt
└── jquery-custom
└── MIT-LICENSE.txt
/.npmrc:
--------------------------------------------------------------------------------
1 | save-exact=true
2 |
--------------------------------------------------------------------------------
/tests/unit/droppable/deprecated.js:
--------------------------------------------------------------------------------
1 | define( function() {} );
2 |
--------------------------------------------------------------------------------
/tests/unit/tabs/data/test.html:
--------------------------------------------------------------------------------
1 |
…content loaded via Ajax.
--------------------------------------------------------------------------------
/tests/unit/selectable/core.js:
--------------------------------------------------------------------------------
1 | /*
2 | * selectable_core.js
3 | */
4 |
--------------------------------------------------------------------------------
/tests/lib/grunt-contrib-qunit-bridges/bridge-wrapper.js.outro:
--------------------------------------------------------------------------------
1 |
2 | } );
3 |
--------------------------------------------------------------------------------
/tests/unit/autocomplete/remote_string_array.txt:
--------------------------------------------------------------------------------
1 | [ "java", "javascript", "clojure" ]
2 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | dist
2 | bower_components
3 | node_modules
4 | .sizecache.json
5 | local.log
6 |
--------------------------------------------------------------------------------
/demos/tooltip/ajax/content1.html:
--------------------------------------------------------------------------------
1 | This content was loaded via ajax.
--------------------------------------------------------------------------------
/demos/tooltip/ajax/content2.html:
--------------------------------------------------------------------------------
1 | This other content was loaded via ajax.
--------------------------------------------------------------------------------
/demos/images/calendar.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/demos/images/calendar.gif
--------------------------------------------------------------------------------
/demos/images/pbar-ani.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/demos/images/pbar-ani.gif
--------------------------------------------------------------------------------
/tests/visual/effects/image.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/tests/visual/effects/image.png
--------------------------------------------------------------------------------
/demos/images/demo-config-on.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/demos/images/demo-config-on.gif
--------------------------------------------------------------------------------
/demos/images/icon-docs-info.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/demos/images/icon-docs-info.gif
--------------------------------------------------------------------------------
/demos/position/images/earth.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/demos/position/images/earth.jpg
--------------------------------------------------------------------------------
/demos/position/images/flight.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/demos/position/images/flight.jpg
--------------------------------------------------------------------------------
/demos/position/images/rocket.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/demos/position/images/rocket.jpg
--------------------------------------------------------------------------------
/tests/images/jquery_521x191.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/tests/images/jquery_521x191.png
--------------------------------------------------------------------------------
/tests/images/jqueryui_32x32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/tests/images/jqueryui_32x32.png
--------------------------------------------------------------------------------
/demos/images/demo-spindown-open.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/demos/images/demo-spindown-open.gif
--------------------------------------------------------------------------------
/demos/checkboxradio/images/jquery.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/demos/checkboxradio/images/jquery.png
--------------------------------------------------------------------------------
/demos/checkboxradio/images/qunit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/demos/checkboxradio/images/qunit.png
--------------------------------------------------------------------------------
/demos/checkboxradio/images/sizzle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/demos/checkboxradio/images/sizzle.png
--------------------------------------------------------------------------------
/demos/datepicker/images/calendar.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/demos/datepicker/images/calendar.gif
--------------------------------------------------------------------------------
/demos/droppable/images/high_tatras.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/demos/droppable/images/high_tatras.jpg
--------------------------------------------------------------------------------
/demos/images/demo-config-on-tile.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/demos/images/demo-config-on-tile.gif
--------------------------------------------------------------------------------
/demos/images/demo-spindown-closed.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/demos/images/demo-spindown-closed.gif
--------------------------------------------------------------------------------
/demos/progressbar/images/pbar-ani.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/demos/progressbar/images/pbar-ani.gif
--------------------------------------------------------------------------------
/demos/tooltip/images/st-stephens.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/demos/tooltip/images/st-stephens.jpg
--------------------------------------------------------------------------------
/demos/tooltip/images/tower-bridge.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/demos/tooltip/images/tower-bridge.jpg
--------------------------------------------------------------------------------
/tests/unit/resizable/images/test.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/tests/unit/resizable/images/test.jpg
--------------------------------------------------------------------------------
/demos/checkboxradio/images/jquery-ui.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/demos/checkboxradio/images/jquery-ui.png
--------------------------------------------------------------------------------
/demos/droppable/images/high_tatras2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/demos/droppable/images/high_tatras2.jpg
--------------------------------------------------------------------------------
/demos/droppable/images/high_tatras3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/demos/droppable/images/high_tatras3.jpg
--------------------------------------------------------------------------------
/demos/droppable/images/high_tatras4.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/demos/droppable/images/high_tatras4.jpg
--------------------------------------------------------------------------------
/demos/autocomplete/images/jquery_32x32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/demos/autocomplete/images/jquery_32x32.png
--------------------------------------------------------------------------------
/demos/droppable/images/high_tatras2_min.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/demos/droppable/images/high_tatras2_min.jpg
--------------------------------------------------------------------------------
/demos/droppable/images/high_tatras3_min.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/demos/droppable/images/high_tatras3_min.jpg
--------------------------------------------------------------------------------
/demos/droppable/images/high_tatras4_min.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/demos/droppable/images/high_tatras4_min.jpg
--------------------------------------------------------------------------------
/demos/droppable/images/high_tatras_min.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/demos/droppable/images/high_tatras_min.jpg
--------------------------------------------------------------------------------
/demos/selectmenu/images/24-rss-square.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/demos/selectmenu/images/24-rss-square.png
--------------------------------------------------------------------------------
/demos/selectmenu/images/24-video-square.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/demos/selectmenu/images/24-video-square.png
--------------------------------------------------------------------------------
/tests/unit/datepicker/images/calendar.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/tests/unit/datepicker/images/calendar.gif
--------------------------------------------------------------------------------
/demos/autocomplete/images/jqueryui_32x32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/demos/autocomplete/images/jqueryui_32x32.png
--------------------------------------------------------------------------------
/demos/autocomplete/images/sizzlejs_32x32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/demos/autocomplete/images/sizzlejs_32x32.png
--------------------------------------------------------------------------------
/demos/autocomplete/images/transparent_1x1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/demos/autocomplete/images/transparent_1x1.png
--------------------------------------------------------------------------------
/demos/checkboxradio/images/jquery-mobile.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/demos/checkboxradio/images/jquery-mobile.png
--------------------------------------------------------------------------------
/demos/selectmenu/images/24-podcast-square.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/demos/selectmenu/images/24-podcast-square.png
--------------------------------------------------------------------------------
/themes/base/images/ui-icons_444444_256x240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/themes/base/images/ui-icons_444444_256x240.png
--------------------------------------------------------------------------------
/themes/base/images/ui-icons_555555_256x240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/themes/base/images/ui-icons_555555_256x240.png
--------------------------------------------------------------------------------
/themes/base/images/ui-icons_777620_256x240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/themes/base/images/ui-icons_777620_256x240.png
--------------------------------------------------------------------------------
/themes/base/images/ui-icons_777777_256x240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/themes/base/images/ui-icons_777777_256x240.png
--------------------------------------------------------------------------------
/themes/base/images/ui-icons_cc0000_256x240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/themes/base/images/ui-icons_cc0000_256x240.png
--------------------------------------------------------------------------------
/themes/base/images/ui-icons_ffffff_256x240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/themes/base/images/ui-icons_ffffff_256x240.png
--------------------------------------------------------------------------------
/demos/autocomplete/images/ui-anim_basic_16x16.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/demos/autocomplete/images/ui-anim_basic_16x16.gif
--------------------------------------------------------------------------------
/tests/unit/datepicker/common.js:
--------------------------------------------------------------------------------
1 | /*
2 | TestHelpers.commonWidgetTests( "datepicker", {
3 | defaults: {
4 | disabled: false
5 | }
6 | });
7 | */
8 |
--------------------------------------------------------------------------------
/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jquery/jquery-ui/HEAD/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
4 | # JS files must always use LF for tools to work
5 | *.js eol=lf
6 |
--------------------------------------------------------------------------------
/tests/visual/visual.css:
--------------------------------------------------------------------------------
1 | #draggable, #resizable { width: 100px; height: 100px; background: #abc; }
2 | #droppable { width: 100px; height: 100px; background: #cde; }
3 |
--------------------------------------------------------------------------------
/tests/unit/autocomplete/remote_object_array_labels.txt:
--------------------------------------------------------------------------------
1 | [
2 | { "label": "java", "value": null },
3 | { "label": "javascript", "value": "" },
4 | { "label": "clojure" }
5 | ]
6 |
--------------------------------------------------------------------------------
/tests/unit/autocomplete/remote_object_array_values.txt:
--------------------------------------------------------------------------------
1 | [
2 | { "value": "java", "label": null },
3 | { "value": "javascript", "label": "" },
4 | { "value": "clojure" }
5 | ]
6 |
--------------------------------------------------------------------------------
/.npmignore:
--------------------------------------------------------------------------------
1 | /.github
2 | /build
3 | /demos
4 | /dist/cdn
5 | /external
6 | /tests
7 | /Gruntfile.js
8 |
9 | .csslintrc
10 | .editorconfig
11 | .eslintrc.json
12 | .eslintignore
13 | .gitattributes
14 | .mailmap
15 |
--------------------------------------------------------------------------------
/tests/index.js:
--------------------------------------------------------------------------------
1 | $( function() {
2 |
3 | $( "#main" )
4 | .addClass( "ui-widget" )
5 | .find( "h1, h2" )
6 | .addClass( "ui-widget-header ui-corner-top" )
7 | .next()
8 | .addClass( "ui-widget-content ui-corner-bottom" );
9 |
10 | } );
11 |
--------------------------------------------------------------------------------
/tests/index.css:
--------------------------------------------------------------------------------
1 | .ui-widget-header {
2 | padding: 0.2em 0.5em;
3 | margin: 0;
4 | }
5 | .ui-widget-content {
6 | padding: 1em;
7 | margin-bottom: 1em;
8 | }
9 | p {
10 | margin: 0;
11 | }
12 | ul {
13 | margin: 0;
14 | list-style: none;
15 | }
16 | li {
17 | line-height: 2em;
18 | }
19 |
--------------------------------------------------------------------------------
/tests/lib/testIframe.js:
--------------------------------------------------------------------------------
1 | window.startIframeTest = function() {
2 | var args = Array.prototype.slice.call( arguments );
3 |
4 | // Note: jQuery may be undefined if page did not load it
5 | args.unshift( window.jQuery, window, document );
6 | window.parent.iframeCallback.apply( null, args );
7 | };
8 |
--------------------------------------------------------------------------------
/themes/base/draggable.css:
--------------------------------------------------------------------------------
1 | /*!
2 | * jQuery UI Draggable @VERSION
3 | * https://jqueryui.com
4 | *
5 | * Copyright OpenJS Foundation and other contributors
6 | * Released under the MIT license.
7 | * https://jquery.org/license
8 | */
9 | .ui-draggable-handle {
10 | touch-action: none;
11 | }
12 |
--------------------------------------------------------------------------------
/themes/base/sortable.css:
--------------------------------------------------------------------------------
1 | /*!
2 | * jQuery UI Sortable @VERSION
3 | * https://jqueryui.com
4 | *
5 | * Copyright OpenJS Foundation and other contributors
6 | * Released under the MIT license.
7 | * https://jquery.org/license
8 | */
9 | .ui-sortable-handle {
10 | touch-action: none;
11 | }
12 |
--------------------------------------------------------------------------------
/demos/demos.css:
--------------------------------------------------------------------------------
1 | body {
2 | font-family: Arial, Helvetica, sans-serif;
3 | }
4 |
5 | .demo-loading {
6 | visibility: hidden;
7 | }
8 |
9 | table {
10 | font-size: 1em;
11 | }
12 |
13 | .demo-description {
14 | clear: both;
15 | padding: 12px;
16 | }
17 |
18 | .ui-draggable, .ui-droppable {
19 | background-position: top;
20 | }
21 |
--------------------------------------------------------------------------------
/.github/dependabot.yml:
--------------------------------------------------------------------------------
1 | version: 2
2 | updates:
3 | - package-ecosystem: github-actions
4 | directory: "/"
5 | schedule:
6 | interval: monthly
7 |
8 | # Group all dependabot version update PRs into one
9 | groups:
10 | github-actions:
11 | applies-to: version-updates
12 | patterns:
13 | - "*"
14 |
--------------------------------------------------------------------------------
/themes/base/all.css:
--------------------------------------------------------------------------------
1 | /*!
2 | * jQuery UI CSS Framework @VERSION
3 | * https://jqueryui.com
4 | *
5 | * Copyright OpenJS Foundation and other contributors
6 | * Released under the MIT license.
7 | * https://jquery.org/license
8 | *
9 | * https://api.jqueryui.com/category/theming/
10 | */
11 | @import "base.css";
12 | @import "theme.css";
13 |
--------------------------------------------------------------------------------
/.csslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "adjoining-classes": false,
3 | "box-model": false,
4 | "box-sizing": false,
5 | "compatible-vendor-prefixes": false,
6 | "duplicate-background-images": false,
7 | "import": false,
8 | "important": false,
9 | "outline-none": false,
10 | "order-alphabetical": false,
11 | "overqualified-elements": false,
12 | "text-indent": false
13 | }
14 |
--------------------------------------------------------------------------------
/demos/widget/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Widget Demo
7 |
8 |
9 |
10 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/tests/unit/sortable/helper.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "jquery",
3 | "lib/helper"
4 | ], function( $, helper ) {
5 |
6 | return $.extend( helper, {
7 | sort: function( assert, handle, dx, dy, index, msg ) {
8 | $( handle ).simulate( "drag", {
9 | dx: dx,
10 | dy: dy
11 | } );
12 | assert.equal( $( handle ).parent().children().index( handle ), index, msg );
13 | }
14 | } );
15 |
16 | } );
17 |
--------------------------------------------------------------------------------
/tests/unit/spinner/helper.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "jquery",
3 | "lib/helper"
4 | ], function( $, helper ) {
5 |
6 | return $.extend( helper, {
7 | simulateKeyDownUp: function( element, keyCode, shift ) {
8 | element
9 | .simulate( "keydown", { keyCode: keyCode, shiftKey: shift || false } )
10 | .simulate( "keyup", { keyCode: keyCode, shiftKey: shift || false } );
11 | }
12 | } );
13 |
14 | } );
15 |
--------------------------------------------------------------------------------
/demos/button/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Button Demos
7 |
8 |
9 |
10 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/themes/base/selectable.css:
--------------------------------------------------------------------------------
1 | /*!
2 | * jQuery UI Selectable @VERSION
3 | * https://jqueryui.com
4 | *
5 | * Copyright OpenJS Foundation and other contributors
6 | * Released under the MIT license.
7 | * https://jquery.org/license
8 | */
9 | .ui-selectable {
10 | touch-action: none;
11 | }
12 | .ui-selectable-helper {
13 | position: absolute;
14 | z-index: 100;
15 | border: 1px dotted black;
16 | }
17 |
--------------------------------------------------------------------------------
/themes/base/autocomplete.css:
--------------------------------------------------------------------------------
1 | /*!
2 | * jQuery UI Autocomplete @VERSION
3 | * https://jqueryui.com
4 | *
5 | * Copyright OpenJS Foundation and other contributors
6 | * Released under the MIT license.
7 | * https://jquery.org/license
8 | *
9 | * https://api.jqueryui.com/autocomplete/#theming
10 | */
11 | .ui-autocomplete {
12 | position: absolute;
13 | top: 0;
14 | left: 0;
15 | cursor: default;
16 | }
17 |
--------------------------------------------------------------------------------
/demos/position/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Position Demo
7 |
8 |
9 |
10 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/ui/version.js:
--------------------------------------------------------------------------------
1 | ( function( factory ) {
2 | "use strict";
3 |
4 | if ( typeof define === "function" && define.amd ) {
5 |
6 | // AMD. Register as an anonymous module.
7 | define( [ "jquery" ], factory );
8 | } else {
9 |
10 | // Browser globals
11 | factory( jQuery );
12 | }
13 | } )( function( $ ) {
14 | "use strict";
15 |
16 | $.ui = $.ui || {};
17 |
18 | return $.ui.version = "@VERSION";
19 |
20 | } );
21 |
--------------------------------------------------------------------------------
/tests/unit/button/common.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "lib/common",
3 | "ui/widgets/button"
4 | ], function( common ) {
5 |
6 | common.testWidget( "button", {
7 | defaults: {
8 | classes: {
9 | "ui-button": "ui-corner-all"
10 | },
11 | disabled: null,
12 | icon: null,
13 | iconPosition: "beginning",
14 | label: null,
15 | showLabel: true,
16 |
17 | // Callbacks
18 | create: null
19 | }
20 | } );
21 |
22 | } );
23 |
--------------------------------------------------------------------------------
/demos/menu/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Menu Demos
7 |
8 |
9 |
10 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/themes/base/tooltip.css:
--------------------------------------------------------------------------------
1 | /*!
2 | * jQuery UI Tooltip @VERSION
3 | * https://jqueryui.com
4 | *
5 | * Copyright OpenJS Foundation and other contributors
6 | * Released under the MIT license.
7 | * https://jquery.org/license
8 | *
9 | * https://api.jqueryui.com/tooltip/#theming
10 | */
11 | .ui-tooltip {
12 | padding: 8px;
13 | position: absolute;
14 | z-index: 9999;
15 | max-width: 300px;
16 | }
17 | body .ui-tooltip {
18 | border-width: 2px;
19 | }
20 |
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | # This file is for unifying the coding style for different editors and IDEs
2 | # editorconfig.org
3 |
4 | root = true
5 |
6 | [*]
7 | indent_style = tab
8 | end_of_line = lf
9 | charset = utf-8
10 | trim_trailing_whitespace = true
11 | insert_final_newline = true
12 |
13 | [*.yml]
14 | indent_style = space
15 | indent_size = 2
16 |
17 | [external/**]
18 | trim_trailing_whitespace = false
19 | insert_final_newline = varies
20 | end_of_line = varies
21 |
--------------------------------------------------------------------------------
/demos/controlgroup/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Controlgroup Demos
7 |
8 |
9 |
10 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/SECURITY.md:
--------------------------------------------------------------------------------
1 | # Security Policy
2 |
3 | ## Supported Versions
4 |
5 | The [latest released version](https://github.com/jquery/jquery-ui/releases) of jQuery UI is supported.
6 |
7 | ## Reporting a Vulnerability
8 |
9 | Please email security@jquery.com, and we will respond as quickly as possible.
10 |
11 | If the vulnerability is considered valid and accepted, a patch will be made for the latest jQuery UI version. If the vulnerability is deemed invalid, no further action is required.
12 |
--------------------------------------------------------------------------------
/demos/selectable/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Selectable Demos
7 |
8 |
9 |
10 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/tests/unit/checkboxradio/common.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "lib/common",
3 | "ui/widgets/checkboxradio"
4 | ], function( common ) {
5 |
6 | common.testWidget( "checkboxradio", {
7 | noDefaultElement: true,
8 | defaults: {
9 | classes: {
10 | "ui-checkboxradio-label": "ui-corner-all",
11 | "ui-checkboxradio-icon": "ui-corner-all"
12 | },
13 | disabled: null,
14 | icon: true,
15 | label: null,
16 |
17 | // Callbacks
18 | create: null
19 | }
20 | } );
21 |
22 | } );
23 |
--------------------------------------------------------------------------------
/demos/selectmenu/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Selectmenu Demos
7 |
8 |
9 |
10 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/tests/unit/droppable/common.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "lib/common",
3 | "ui/widgets/droppable"
4 | ], function( common ) {
5 |
6 | common.testWidget( "droppable", {
7 | defaults: {
8 | accept: "*",
9 | addClasses: true,
10 | classes: {},
11 | disabled: false,
12 | greedy: false,
13 | scope: "default",
14 | tolerance: "intersect",
15 |
16 | // Callbacks
17 | activate: null,
18 | create: null,
19 | deactivate: null,
20 | drop: null,
21 | out: null,
22 | over: null
23 | }
24 | } );
25 |
26 | } );
27 |
--------------------------------------------------------------------------------
/tests/unit/button/common-deprecated.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "lib/common",
3 | "ui/widgets/button"
4 | ], function( common ) {
5 |
6 | common.testWidget( "button", {
7 | defaults: {
8 | classes: {
9 | "ui-button": "ui-corner-all"
10 | },
11 | disabled: null,
12 | icon: null,
13 | iconPosition: "beginning",
14 | icons: {
15 | primary: null,
16 | secondary: null
17 | },
18 | label: null,
19 | showLabel: true,
20 | text: true,
21 |
22 | // Callbacks
23 | create: null
24 | }
25 | } );
26 |
27 | } );
28 |
--------------------------------------------------------------------------------
/tests/unit/progressbar/common.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "lib/common",
3 | "ui/widgets/progressbar"
4 | ], function( common ) {
5 |
6 | common.testWidget( "progressbar", {
7 | defaults: {
8 | classes: {
9 | "ui-progressbar": "ui-corner-all",
10 | "ui-progressbar-value": "ui-corner-left",
11 | "ui-progressbar-complete": "ui-corner-right"
12 | },
13 | disabled: false,
14 | max: 100,
15 | value: 0,
16 |
17 | //Callbacks
18 | change: null,
19 | complete: null,
20 | create: null
21 | }
22 | } );
23 |
24 | } );
25 |
--------------------------------------------------------------------------------
/tests/unit/resizable/helper.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "qunit",
3 | "jquery",
4 | "lib/helper"
5 | ], function( QUnit, $, helper ) {
6 | "use strict";
7 |
8 | return $.extend( helper, {
9 | drag: function( el, dx, dy ) {
10 |
11 | // This mouseover is to work around a limitation in resizable
12 | // TODO: fix resizable so handle doesn't require mouseover in order to be used
13 | $( el ).simulate( "mouseover" ).simulate( "drag", {
14 | moves: 2,
15 | dx: dx,
16 | dy: dy
17 | } );
18 | }
19 | } );
20 |
21 | } );
22 |
--------------------------------------------------------------------------------
/tests/unit/menu/common.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "lib/common",
3 | "ui/widgets/menu"
4 | ], function( common ) {
5 |
6 | common.testWidget( "menu", {
7 | defaults: {
8 | classes: {},
9 | disabled: false,
10 | icons: {
11 | submenu: "ui-icon-caret-1-e"
12 | },
13 | items: "> *",
14 | menus: "ul",
15 | position: {
16 | my: "left top",
17 | at: "right top"
18 | },
19 | role: "menu",
20 |
21 | // Callbacks
22 | blur: null,
23 | create: null,
24 | focus: null,
25 | select: null
26 | }
27 | } );
28 |
29 | } );
30 |
--------------------------------------------------------------------------------
/demos/progressbar/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Progressbar Demos
7 |
8 |
9 |
10 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/tests/unit/droppable/helper.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "qunit",
3 | "jquery",
4 | "lib/helper"
5 | ], function( QUnit, $, helper ) {
6 | "use strict";
7 |
8 | return $.extend( helper, {
9 | shouldDrop: function( assert ) {
10 |
11 | // Todo: actually implement this
12 | assert.ok( true, "missing test - untested code is broken code" );
13 | },
14 |
15 | shouldNotDrop: function( assert ) {
16 |
17 | // Todo: actually implement this
18 | assert.ok( true, "missing test - untested code is broken code" );
19 | }
20 | } );
21 |
22 | } );
23 |
--------------------------------------------------------------------------------
/demos/checkboxradio/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Checkboxradio Demos
7 |
8 |
9 |
10 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/tests/unit/progressbar/progressbar.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Progressbar Test Suite
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/tests/unit/droppable/common-deprecated.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "lib/common",
3 | "ui/widgets/droppable"
4 | ], function( common ) {
5 |
6 | common.testWidget( "droppable", {
7 | defaults: {
8 | accept: "*",
9 | activeClass: false,
10 | addClasses: true,
11 | classes: {},
12 | disabled: false,
13 | greedy: false,
14 | hoverClass: false,
15 | scope: "default",
16 | tolerance: "intersect",
17 |
18 | // Callbacks
19 | activate: null,
20 | create: null,
21 | deactivate: null,
22 | drop: null,
23 | out: null,
24 | over: null
25 | }
26 | } );
27 |
28 | } );
29 |
--------------------------------------------------------------------------------
/tests/unit/spinner/spinner.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Spinner Test Suite
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/demos/spinner/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Spinner Demos
7 |
8 |
9 |
10 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/demos/dialog/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Dialog Demos
7 |
8 |
9 |
10 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/tests/unit/spinner/deprecated.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Spinner Test Suite
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/themes/base/accordion.css:
--------------------------------------------------------------------------------
1 | /*!
2 | * jQuery UI Accordion @VERSION
3 | * https://jqueryui.com
4 | *
5 | * Copyright OpenJS Foundation and other contributors
6 | * Released under the MIT license.
7 | * https://jquery.org/license
8 | *
9 | * https://api.jqueryui.com/accordion/#theming
10 | */
11 | .ui-accordion .ui-accordion-header {
12 | display: block;
13 | cursor: pointer;
14 | position: relative;
15 | margin: 2px 0 0 0;
16 | padding: .5em .5em .5em .7em;
17 | font-size: 100%;
18 | }
19 | .ui-accordion .ui-accordion-content {
20 | padding: 1em 2.2em;
21 | border-top: 0;
22 | overflow: auto;
23 | }
24 |
--------------------------------------------------------------------------------
/tests/unit/selectable/common.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "lib/common",
3 | "ui/widgets/selectable"
4 | ], function( common ) {
5 |
6 | common.testWidget( "selectable", {
7 | defaults: {
8 | appendTo: "body",
9 | autoRefresh: true,
10 | cancel: "input, textarea, button, select, option",
11 | classes: {},
12 | delay: 0,
13 | disabled: false,
14 | distance: 0,
15 | filter: "*",
16 | tolerance: "touch",
17 |
18 | // Callbacks
19 | create: null,
20 | selected: null,
21 | selecting: null,
22 | start: null,
23 | stop: null,
24 | unselected: null,
25 | unselecting: null
26 | }
27 | } );
28 |
29 | } );
30 |
--------------------------------------------------------------------------------
/tests/unit/widget/widget.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Widget Test Suite
6 |
7 |
8 |
9 |
11 |
12 |
13 |
14 |
15 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/tests/unit/tooltip/common.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "lib/common",
3 | "ui/widgets/tooltip"
4 | ], function( common ) {
5 |
6 | common.testWidget( "tooltip", {
7 | defaults: {
8 | classes: {
9 | "ui-tooltip": "ui-corner-all ui-widget-shadow"
10 | },
11 | content: function() {},
12 | disabled: false,
13 | hide: true,
14 | items: "[title]:not([disabled])",
15 | position: {
16 | my: "left top+15",
17 | at: "left bottom",
18 | collision: "flipfit flip"
19 | },
20 | show: true,
21 | track: false,
22 |
23 | // Callbacks
24 | close: null,
25 | create: null,
26 | open: null
27 | }
28 | } );
29 |
30 | } );
31 |
--------------------------------------------------------------------------------
/ui/jquery-var-for-color.js:
--------------------------------------------------------------------------------
1 | ( function( factory ) {
2 | "use strict";
3 |
4 | if ( typeof define === "function" && define.amd ) {
5 |
6 | // AMD. Register as an anonymous module.
7 | define( [ "jquery", "./version" ], factory );
8 | } else {
9 |
10 | // Browser globals
11 | factory( jQuery );
12 | }
13 | } )( function( $ ) {
14 | "use strict";
15 |
16 | // Create a local jQuery because jQuery Color relies on it and the
17 | // global may not exist with AMD and a custom build (#10199).
18 | // This module is a noop if used as a regular AMD module.
19 | // eslint-disable-next-line no-unused-vars
20 | var jQuery = $;
21 |
22 | } );
23 |
--------------------------------------------------------------------------------
/demos/tabs/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Tabs Demos
7 |
8 |
9 |
10 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/tests/unit/form-reset-mixin/form-reset-mixin.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Form Reset Mixin Test Suite
6 |
7 |
8 |
9 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/tests/unit/tooltip/deprecated.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "qunit",
3 | "jquery",
4 | "./helper",
5 | "ui/widgets/tooltip"
6 | ], function( QUnit, $, testHelper ) {
7 | "use strict";
8 |
9 | var beforeAfterEach = testHelper.beforeAfterEach;
10 |
11 | QUnit.module( "tooltip: (deprecated) options", beforeAfterEach() );
12 |
13 | QUnit.test( "tooltipClass", function( assert ) {
14 | assert.expect( 1 );
15 | var element = $( "#tooltipped1" ).tooltip( {
16 | tooltipClass: "custom"
17 | } ).tooltip( "open" );
18 | assert.hasClasses( $( "#" + element.data( "ui-tooltip-id" ) ), "custom" );
19 |
20 | element.tooltip( "destroy" );
21 | } );
22 |
23 | } );
24 |
--------------------------------------------------------------------------------
/demos/accordion/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Accordion Demos
7 |
8 |
9 |
10 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/tests/unit/jquery-patch/jquery-patch.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Legacy jQuery Core patches Test Suite
6 |
7 |
8 |
9 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/tests/unit/datepicker/datepicker.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Datepicker Test Suite
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/tests/unit/tooltip/common-deprecated.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "lib/common",
3 | "ui/widgets/tooltip"
4 | ], function( common ) {
5 |
6 | common.testWidget( "tooltip", {
7 | defaults: {
8 | classes: {
9 | "ui-tooltip": "ui-corner-all ui-widget-shadow"
10 | },
11 | content: function() {},
12 | disabled: false,
13 | hide: true,
14 | items: "[title]:not([disabled])",
15 | position: {
16 | my: "left top+15",
17 | at: "left bottom",
18 | collision: "flipfit flip"
19 | },
20 | show: true,
21 | tooltipClass: null,
22 | track: false,
23 |
24 | // Callbacks
25 | close: null,
26 | create: null,
27 | open: null
28 | }
29 | } );
30 |
31 | } );
32 |
--------------------------------------------------------------------------------
/tests/unit/tabs/common.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "lib/common",
3 | "ui/widgets/tabs"
4 | ], function( common ) {
5 |
6 | common.testWidget( "tabs", {
7 | defaults: {
8 | active: null,
9 | classes: {
10 | "ui-tabs": "ui-corner-all",
11 | "ui-tabs-nav": "ui-corner-all",
12 | "ui-tabs-panel": "ui-corner-bottom",
13 | "ui-tabs-tab": "ui-corner-top"
14 | },
15 | collapsible: false,
16 | disabled: false,
17 | event: "click",
18 | heightStyle: "content",
19 | hide: null,
20 | show: null,
21 |
22 | // Callbacks
23 | activate: null,
24 | beforeActivate: null,
25 | beforeLoad: null,
26 | create: null,
27 | load: null
28 | }
29 | } );
30 |
31 | } );
32 |
--------------------------------------------------------------------------------
/tests/visual/compound/datepicker_dialog.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Compound Visual Test : Datepicker in Dialog
6 |
7 |
8 |
9 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/tests/unit/tooltip/helper.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "qunit",
3 | "jquery",
4 | "lib/helper",
5 | "ui/widgets/tooltip"
6 | ], function( QUnit, $, helper ) {
7 | "use strict";
8 |
9 | return $.extend( helper, {
10 | beforeAfterEach: function() {
11 | return {
12 | afterEach: function() {
13 | var index, timer,
14 | timers = jQuery.timers;
15 |
16 | jQuery.fx.stop();
17 |
18 | for ( index = timers.length; index--; ) {
19 | timer = timers[ index ];
20 | timer.anim.stop();
21 | timers.splice( index, 1 );
22 | }
23 |
24 | return helper.moduleAfterEach.apply( this, arguments );
25 | }
26 | };
27 | }
28 | } );
29 |
30 | } );
31 |
--------------------------------------------------------------------------------
/tests/unit/selectable/selectable.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Selectable Test Suite
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 | Item 1
18 | Item 2
19 | Item 3
20 | Item 4
21 | Item 5
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/demos/droppable/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Droppable Demos
7 |
8 |
9 |
10 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/tests/lib/css.js:
--------------------------------------------------------------------------------
1 | ( function() {
2 | "use strict";
3 |
4 | function includeStyle( url ) {
5 | document.write( " " );
6 | }
7 |
8 | // Find the script element
9 | var scripts = document.getElementsByTagName( "script" );
10 | var script = scripts[ scripts.length - 1 ];
11 |
12 | // Load the modules
13 | var modules = script.getAttribute( "data-modules" );
14 | if ( modules ) {
15 | modules = modules.split( /\s+/ );
16 | for ( var i = 0; i < modules.length; i++ ) {
17 | includeStyle( "themes/base/" + modules[ i ] + ".css" );
18 | }
19 | }
20 |
21 | // Load the QUnit stylesheet
22 | includeStyle( "external/qunit/qunit.css" );
23 |
24 | } )();
25 |
--------------------------------------------------------------------------------
/demos/sortable/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Sortable Demos
7 |
8 |
9 |
10 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/tests/unit/selectmenu/common.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "lib/common",
3 | "ui/widgets/selectmenu"
4 | ], function( common ) {
5 |
6 | common.testWidget( "selectmenu", {
7 | defaults: {
8 | appendTo: null,
9 | classes: {
10 | "ui-selectmenu-button-open": "ui-corner-top",
11 | "ui-selectmenu-button-closed": "ui-corner-all"
12 | },
13 | disabled: null,
14 | icons: {
15 | button: "ui-icon-triangle-1-s"
16 | },
17 | position: {
18 | my: "left top",
19 | at: "left bottom",
20 | collision: "none"
21 | },
22 | width: false,
23 |
24 | // Callbacks
25 | change: null,
26 | close: null,
27 | create: null,
28 | focus: null,
29 | open: null,
30 | select: null
31 | }
32 | } );
33 |
34 | } );
35 |
--------------------------------------------------------------------------------
/demos/progressbar/default.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Progressbar - Default functionality
7 |
8 |
9 |
10 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
Default determinate progress bar.
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/tests/unit/spinner/common.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "lib/common",
3 | "ui/widgets/spinner"
4 | ], function( common ) {
5 |
6 | common.testWidget( "spinner", {
7 | defaults: {
8 | classes: {
9 | "ui-spinner": "ui-corner-all",
10 | "ui-spinner-up": "ui-corner-tr",
11 | "ui-spinner-down": "ui-corner-br"
12 | },
13 | culture: null,
14 | disabled: false,
15 | icons: {
16 | down: "ui-icon-triangle-1-s",
17 | up: "ui-icon-triangle-1-n"
18 | },
19 | incremental: true,
20 | max: null,
21 | min: null,
22 | numberFormat: null,
23 | page: 10,
24 | step: 1,
25 |
26 | // Callbacks
27 | change: null,
28 | create: null,
29 | spin: null,
30 | start: null,
31 | stop: null
32 | }
33 | } );
34 |
35 | } );
36 |
--------------------------------------------------------------------------------
/demos/tooltip/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Tooltip Demos
7 |
8 |
9 |
10 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/tests/unit/button/events.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "qunit",
3 | "jquery",
4 | "lib/helper",
5 | "ui/widgets/button"
6 | ], function( QUnit, $, helper ) {
7 | "use strict";
8 |
9 | QUnit.module( "Button: events", { afterEach: helper.moduleAfterEach } );
10 |
11 | QUnit.test( "Anchor recieves click event when spacebar is pressed", function( assert ) {
12 | var ready = assert.async();
13 | assert.expect( 1 );
14 | var element = $( "#anchor-button" ).button();
15 |
16 | element.on( "click", function( event ) {
17 | event.preventDefault();
18 | assert.ok( true, "click occcured as a result of spacebar" );
19 | ready();
20 | } );
21 |
22 | element.trigger( $.Event( "keyup", { keyCode: $.ui.keyCode.SPACE } ) );
23 | } );
24 |
25 | } );
26 |
--------------------------------------------------------------------------------
/tests/unit/spinner/common-deprecated.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "lib/common",
3 | "ui/widgets/spinner"
4 | ], function( common ) {
5 |
6 | common.testWidget( "spinner", {
7 | defaults: {
8 | classes: {
9 | "ui-spinner": "ui-corner-all",
10 | "ui-spinner-up": "ui-corner-tr",
11 | "ui-spinner-down": "ui-corner-br"
12 | },
13 | culture: null,
14 | disabled: false,
15 | icons: {
16 | down: "ui-icon-triangle-1-s",
17 | up: "ui-icon-triangle-1-n"
18 | },
19 | incremental: true,
20 | max: null,
21 | min: null,
22 | numberFormat: null,
23 | page: 10,
24 | step: 1,
25 |
26 | // Callbacks
27 | change: null,
28 | create: null,
29 | spin: null,
30 | start: null,
31 | stop: null
32 | }
33 | } );
34 |
35 | } );
36 |
--------------------------------------------------------------------------------
/demos/slider/default.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Slider - Default functionality
7 |
8 |
9 |
10 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
The basic slider is horizontal and has a single handle that can be moved with the mouse or by using the arrow keys.
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/tests/lib/grunt-contrib-qunit-bridges/bridge-wrapper.js.intro:
--------------------------------------------------------------------------------
1 | // The bridge in `node_modules/grunt-contrib-qunit/chrome/bridge.js` is injected
2 | // into every iframe, even an empty one injected during QUnit tests. The bridge,
3 | // in turn, requires QUnit to be present on the page, throwing errors otherwise.
4 | // To workaround that, add another wrapper which detects a missing QUnit and skips
5 | // the whole logic.
6 |
7 | ( function ( factory ) {
8 | if ( typeof define === 'function' && define.amd ) {
9 | require( [ 'qunit' ], factory );
10 | } else {
11 | factory( window.QUnit );
12 | }
13 | } )( function( QUnit ) {
14 |
15 | if ( !QUnit ) {
16 |
17 | // No QUnit => possibly an empty iframe injected in tests; ignore.
18 | return;
19 | }
20 |
21 |
--------------------------------------------------------------------------------
/tests/unit/core/all.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Core Test Suite
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/tests/unit/menu/all.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Menu Test Suite
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/tests/unit/menu/helper.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "jquery",
3 | "lib/helper"
4 | ], function( $, helper ) {
5 |
6 | var lastItem,
7 | log = [];
8 |
9 | return $.extend( helper, {
10 | log: function( message, clear ) {
11 | if ( clear ) {
12 | log.length = 0;
13 | }
14 | if ( message === undefined ) {
15 | message = lastItem;
16 | }
17 | log.push( String.prototype.trim.call( message ) );
18 | },
19 |
20 | logOutput: function() {
21 | return log.join( "," );
22 | },
23 |
24 | clearLog: function() {
25 | log.length = 0;
26 | },
27 |
28 | click: function( menu, item ) {
29 | lastItem = item;
30 | menu.children()
31 | .eq( item )
32 | .children( ".ui-menu-item-wrapper" )
33 | .trigger( "click" );
34 | }
35 | } );
36 |
37 | } );
38 |
--------------------------------------------------------------------------------
/tests/unit/tabs/all.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Tabs Test Suite
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/tests/unit/button/all.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Button Test Suite
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/tests/unit/button/core.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "qunit",
3 | "jquery",
4 | "lib/helper",
5 | "ui/widgets/button"
6 | ], function( QUnit, $, helper ) {
7 | "use strict";
8 |
9 | QUnit.module( "Button: core", { afterEach: helper.moduleAfterEach } );
10 |
11 | QUnit.test( "Disabled button loses focus", function( assert ) {
12 | var ready = assert.async();
13 | assert.expect( 2 );
14 | var element = $( "#button" ).button();
15 |
16 | element.trigger( "focus" );
17 | setTimeout( function() {
18 |
19 | assert.equal( element[ 0 ], document.activeElement, "Button is focused" );
20 |
21 | element.button( "disable" );
22 | assert.notEqual( element[ 0 ], document.activeElement, "Button has had focus removed" );
23 | ready();
24 | } );
25 | } );
26 |
27 | } );
28 |
--------------------------------------------------------------------------------
/tests/unit/dialog/all.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Dialog Test Suite
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/tests/unit/slider/all.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Slider Test Suite
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/tests/unit/slider/common.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "lib/common",
3 | "ui/widgets/slider"
4 | ], function( common ) {
5 |
6 | common.testWidget( "slider", {
7 | defaults: {
8 | animate: false,
9 | cancel: "input, textarea, button, select, option",
10 | classes: {
11 | "ui-slider": "ui-corner-all",
12 | "ui-slider-handle": "ui-corner-all",
13 | "ui-slider-range": "ui-corner-all ui-widget-header"
14 | },
15 | delay: 0,
16 | disabled: false,
17 | distance: 0,
18 | max: 100,
19 | min: 0,
20 | orientation: "horizontal",
21 | range: false,
22 | step: 1,
23 | value: 0,
24 | values: null,
25 |
26 | // Callbacks
27 | create: null,
28 | change: null,
29 | slide: null,
30 | start: null,
31 | stop: null
32 | }
33 | } );
34 |
35 | } );
36 |
--------------------------------------------------------------------------------
/tests/unit/widget/all.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Widget Test Suite
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/tests/unit/effects/all.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Effects Test Suite
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/tests/unit/spinner/all.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Spinner Test Suite
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/tests/unit/tooltip/all.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Tooltip Test Suite
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/tests/unit/accordion/all.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Accordion Test Suite
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/tests/unit/draggable/all.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Draggable Test Suite
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/tests/unit/droppable/all.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Droppable Test Suite
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/tests/unit/position/all.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Position Test Suite
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/tests/unit/resizable/all.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Resizable Test Suite
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/tests/unit/sortable/all.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Sortable Test Suite
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/demos/datepicker/inline.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Datepicker - Display inline
7 |
8 |
9 |
10 |
13 |
14 |
15 |
16 | Date:
17 |
18 |
19 |
Display the datepicker embedded in the page instead of in an overlay. Simply call .datepicker() on a div instead of an input.
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/tests/unit/datepicker/all.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Datepicker Test Suite
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/tests/unit/progressbar/all.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Progressbar Test Suite
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/tests/unit/selectable/all.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Selectable Test Suite
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/tests/unit/selectmenu/all.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Selectmenu Test Suite
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/tests/unit/autocomplete/all.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Autocomplete Test Suite
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/tests/unit/controlgroup/all.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Countrolgroup Test Suite
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/tests/unit/controlgroup/common.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "lib/common",
3 | "ui/widgets/controlgroup",
4 | "ui/widgets/checkboxradio",
5 | "ui/widgets/selectmenu",
6 | "ui/widgets/button",
7 | "ui/widgets/spinner"
8 | ], function( common ) {
9 |
10 | common.testWidget( "controlgroup", {
11 | defaults: {
12 | classes: {},
13 | direction: "horizontal",
14 | disabled: null,
15 | items: {
16 | "button": "input[type=button], input[type=submit], input[type=reset], button, a",
17 | "checkboxradio": "input[type='checkbox'], input[type='radio']",
18 | "selectmenu": "select",
19 | "spinner": ".ui-spinner-input",
20 | "controlgroupLabel": ".ui-controlgroup-label"
21 | },
22 | onlyVisible: true,
23 |
24 | // Callbacks
25 | create: null
26 | }
27 | } );
28 |
29 | } );
30 |
--------------------------------------------------------------------------------
/tests/unit/checkboxradio/all.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Checkboxradio Test Suite
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/tests/unit/autocomplete/common.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "lib/common",
3 | "ui/widgets/autocomplete"
4 | ], function( common ) {
5 |
6 | common.testWidget( "autocomplete", {
7 | defaults: {
8 | appendTo: null,
9 | autoFocus: false,
10 | classes: {},
11 | delay: 300,
12 | disabled: false,
13 | messages: {
14 | noResults: "No search results.",
15 | results: $.ui.autocomplete.prototype.options.messages.results
16 | },
17 | minLength: 1,
18 | position: {
19 | my: "left top",
20 | at: "left bottom",
21 | collision: "none"
22 | },
23 | source: null,
24 |
25 | // Callbacks
26 | change: null,
27 | close: null,
28 | create: null,
29 | focus: null,
30 | open: null,
31 | response: null,
32 | search: null,
33 | select: null
34 | }
35 | } );
36 |
37 | } );
38 |
--------------------------------------------------------------------------------
/tests/unit/form-reset-mixin/all.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Form Reset Mixin Test Suite
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/tests/unit/droppable/droppable.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Droppable Test Suite
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
Draggable
17 |
Droppable
18 |
Droppable
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/tests/unit/jquery-patch/all.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Legacy jQuery Core patches Test Suite
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/tests/unit/subsuite.js:
--------------------------------------------------------------------------------
1 | ( function() {
2 | "use strict";
3 |
4 | var versions = [
5 | "1.12.4",
6 | "2.2.4",
7 | "3.0.0",
8 | "3.1.0", "3.1.1",
9 | "3.2.0", "3.2.1",
10 | "3.3.0", "3.3.1",
11 | "3.4.0", "3.4.1",
12 | "3.5.0", "3.5.1",
13 | "3.6.0", "3.6.1", "3.6.2", "3.6.3", "3.6.4",
14 | "3.7.0", "3.7.1",
15 | "4.0.0-rc.1",
16 | "3.x-git", "git", "custom"
17 | ],
18 | additionalTests = {
19 |
20 | // component: [ "other_test.html" ]
21 | };
22 |
23 | window.testAllVersions = function( widget ) {
24 | QUnit.testSuites( $.map(
25 | [ widget + ".html" ].concat( additionalTests[ widget ] || [] ),
26 | function( test ) {
27 | return $.map( versions, function( version ) {
28 | return test + "?jquery=" + version;
29 | } );
30 | } ) );
31 | };
32 |
33 | } )();
34 |
--------------------------------------------------------------------------------
/tests/unit/droppable/deprecated.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Droppable Test Suite
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
Draggable
17 |
Droppable
18 |
Droppable
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/demos/effect/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Effects Demos
7 |
8 |
9 |
10 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/tests/unit/autocomplete/autocomplete.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Autocomplete Test Suite
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/tests/unit/slider/slider.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Slider Test Suite
6 |
7 |
8 |
9 |
10 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/tests/visual/draggable/replaced.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Draggable Visual Test
6 |
7 |
8 |
15 |
16 |
23 |
24 |
25 |
26 | WHAT: A draggable, whose content is replaced onmousedown.
27 | EXPECTED: In IE8, the draggable can actually be dragged.
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/demos/datepicker/multiple-calendars.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Datepicker - Display multiple months
7 |
8 |
9 |
10 |
16 |
17 |
18 |
19 | Date:
20 |
21 |
22 |
Set the numberOfMonths option to an integer of 2 or more to show multiple months in a single datepicker.
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/tests/visual/effects/effects.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 1em;
3 | padding: 0;
4 | background: #fff;
5 | color: #000;
6 | }
7 |
8 | ul.effects {
9 | list-style-type: none;
10 | margin: 0;
11 | padding: 0;
12 | }
13 |
14 | ul.effects li {
15 | padding: 0;
16 | width: 120px;
17 | height: 100px;
18 | float: left;
19 | margin-top: 20px;
20 | margin-left: 20px;
21 | }
22 |
23 | div.effect {
24 | width: 120px;
25 | height: 100px;
26 | background: #ccc;
27 | border: 5px outset #aaa;
28 | float: left;
29 | cursor: pointer;
30 | cursor: hand;
31 | }
32 |
33 | div.current {
34 | border: 5px outset #FF9C08;
35 | background: #FF9C08;
36 | }
37 |
38 | div.effect p {
39 | color: #191919;
40 | font-weight: bold;
41 | margin: 0;
42 | padding: 10px;
43 | }
44 |
45 | .ui-effects-transfer {
46 | border: 1px dotted #fff;
47 | background: #666;
48 | opacity: 0.5;
49 | }
50 |
--------------------------------------------------------------------------------
/jtr.yml:
--------------------------------------------------------------------------------
1 | version: 1
2 |
3 | base-url: /tests/unit/
4 |
5 | test-urls:
6 | - accordion/accordion.html
7 | - autocomplete/autocomplete.html
8 | - button/button.html
9 | - checkboxradio/checkboxradio.html
10 | - controlgroup/controlgroup.html
11 | - core/core.html
12 | - datepicker/datepicker.html
13 | - dialog/dialog.html
14 | - draggable/draggable.html
15 | - droppable/droppable.html
16 | - effects/effects.html
17 | - form-reset-mixin/form-reset-mixin.html
18 | - jquery-patch/jquery-patch.html
19 | - menu/menu.html
20 | - position/position.html
21 | - progressbar/progressbar.html
22 | - resizable/resizable.html
23 | - selectable/selectable.html
24 | - selectmenu/selectmenu.html
25 | - slider/slider.html
26 | - sortable/sortable.html
27 | - spinner/spinner.html
28 | - tabs/tabs.html
29 | - tooltip/tooltip.html
30 | - widget/widget.html
31 |
--------------------------------------------------------------------------------
/tests/unit/button/button.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Button Test Suite
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/demos/datepicker/other-months.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Datepicker - Dates in other months
7 |
8 |
9 |
10 |
16 |
17 |
18 |
19 | Date:
20 |
21 |
22 |
The datepicker can show dates that come from other than the main month
23 | being displayed. These other dates can also be made selectable.
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/demos/draggable/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Draggable Demos
7 |
8 |
9 |
10 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/demos/resizable/textarea.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Resizable - Textarea
7 |
8 |
9 |
14 |
15 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
Resizable can be applied to a textarea. This allows the user to make the textarea bigger to type longer prose.
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/tests/unit/resizable/common.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "lib/common",
3 | "ui/widgets/resizable"
4 | ], function( common ) {
5 |
6 | common.testWidget( "resizable", {
7 | defaults: {
8 | alsoResize: false,
9 | animate: false,
10 | animateDuration: "slow",
11 | animateEasing: "swing",
12 | aspectRatio: false,
13 | autoHide: false,
14 | cancel: "input, textarea, button, select, option",
15 | classes: {
16 | "ui-resizable-se": "ui-icon ui-icon-gripsmall-diagonal-se"
17 | },
18 | containment: false,
19 | delay: 0,
20 | disabled: false,
21 | distance: 1,
22 | ghost: false,
23 | grid: false,
24 | handles: "e,s,se",
25 | helper: false,
26 | maxHeight: null,
27 | maxWidth: null,
28 | minHeight: 10,
29 | minWidth: 10,
30 | zIndex: 90,
31 |
32 | // Callbacks
33 | create: null,
34 | resize: null,
35 | start: null,
36 | stop: null
37 | }
38 | } );
39 |
40 | } );
41 |
--------------------------------------------------------------------------------
/demos/resizable/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Resizable Demos
7 |
8 |
9 |
10 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/tests/unit/resizable/methods.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "qunit",
3 | "jquery",
4 | "lib/helper",
5 | "ui/widgets/resizable"
6 | ], function( QUnit, $, helper ) {
7 | "use strict";
8 |
9 | QUnit.module( "resizable: methods", { afterEach: helper.moduleAfterEach } );
10 |
11 | QUnit.test( "disable", function( assert ) {
12 | assert.expect( 5 );
13 |
14 | var element = $( "#resizable1" ).resizable( { disabled: false } ),
15 | chainable = element.resizable( "disable" );
16 |
17 | assert.lacksClasses( element.resizable( "widget" ), "ui-state-disabled" );
18 | assert.ok( !element.resizable( "widget" ).attr( "aria-disabled" ), "element does not get aria-disabled" );
19 | assert.hasClasses( element.resizable( "widget" ), "ui-resizable-disabled" );
20 | assert.equal( element.resizable( "option", "disabled" ), true, "disabled option setter" );
21 | assert.equal( chainable, element, "disable is chainable" );
22 | } );
23 |
24 | } );
25 |
--------------------------------------------------------------------------------
/themes/base/base.css:
--------------------------------------------------------------------------------
1 | /*!
2 | * jQuery UI CSS Framework @VERSION
3 | * https://jqueryui.com
4 | *
5 | * Copyright OpenJS Foundation and other contributors
6 | * Released under the MIT license.
7 | * https://jquery.org/license
8 | *
9 | * https://api.jqueryui.com/category/theming/
10 | */
11 | @import url("core.css");
12 |
13 | @import url("accordion.css");
14 | @import url("autocomplete.css");
15 | @import url("button.css");
16 | @import url("checkboxradio.css");
17 | @import url("controlgroup.css");
18 | @import url("datepicker.css");
19 | @import url("dialog.css");
20 | @import url("draggable.css");
21 | @import url("menu.css");
22 | @import url("progressbar.css");
23 | @import url("resizable.css");
24 | @import url("selectable.css");
25 | @import url("selectmenu.css");
26 | @import url("sortable.css");
27 | @import url("slider.css");
28 | @import url("spinner.css");
29 | @import url("tabs.css");
30 | @import url("tooltip.css");
31 |
--------------------------------------------------------------------------------
/demos/datepicker/dropdown-month-year.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Datepicker - Display month & year menus
7 |
8 |
9 |
10 |
16 |
17 |
18 |
19 | Date:
20 |
21 |
22 |
Show month and year dropdowns in place of the static month/year header to facilitate navigation through large timeframes. Add the boolean changeMonth and changeYear options.
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/tests/visual/compound/tabs_tooltips.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Compound Visual Test : Tabs in Tabs
6 |
7 |
8 |
9 |
13 |
14 |
15 |
16 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/demos/datepicker/icon-trigger.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Datepicker - Icon trigger
7 |
8 |
9 |
10 |
18 |
19 |
20 |
21 | Date:
22 |
23 |
24 |
Click the icon next to the input field to show the datepicker. Set the datepicker to open on focus (default behavior), on icon click, or both.
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/demos/draggable/default.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Draggable - Default functionality
7 |
8 |
9 |
12 |
13 |
16 |
17 |
18 |
19 |
22 |
23 |
24 |
Enable draggable functionality on any DOM element. Move the draggable object by clicking on it with the mouse and dragging it anywhere within the viewport.
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/themes/base/checkboxradio.css:
--------------------------------------------------------------------------------
1 | /*!
2 | * jQuery UI Checkboxradio @VERSION
3 | * https://jqueryui.com
4 | *
5 | * Copyright OpenJS Foundation and other contributors
6 | * Released under the MIT license.
7 | * https://jquery.org/license
8 | *
9 | * https://api.jqueryui.com/checkboxradio/#theming
10 | */
11 |
12 | .ui-checkboxradio-label .ui-icon-background {
13 | box-shadow: inset 1px 1px 1px #ccc;
14 | border-radius: .12em;
15 | border: none;
16 | }
17 | .ui-checkboxradio-radio-label .ui-icon-background {
18 | width: 16px;
19 | height: 16px;
20 | border-radius: 1em;
21 | overflow: visible;
22 | border: none;
23 | }
24 | .ui-checkboxradio-radio-label.ui-checkboxradio-checked .ui-icon,
25 | .ui-checkboxradio-radio-label.ui-checkboxradio-checked:hover .ui-icon {
26 | background-image: none;
27 | width: 8px;
28 | height: 8px;
29 | border-width: 4px;
30 | border-style: solid;
31 | }
32 | .ui-checkboxradio-disabled {
33 | pointer-events: none;
34 | }
35 |
--------------------------------------------------------------------------------
/ui/data.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * jQuery UI :data @VERSION
3 | * https://jqueryui.com
4 | *
5 | * Copyright OpenJS Foundation and other contributors
6 | * Released under the MIT license.
7 | * https://jquery.org/license
8 | */
9 |
10 | //>>label: :data Selector
11 | //>>group: Core
12 | //>>description: Selects elements which have data stored under the specified key.
13 | //>>docs: https://api.jqueryui.com/data-selector/
14 |
15 | ( function( factory ) {
16 | "use strict";
17 |
18 | if ( typeof define === "function" && define.amd ) {
19 |
20 | // AMD. Register as an anonymous module.
21 | define( [ "jquery", "./version" ], factory );
22 | } else {
23 |
24 | // Browser globals
25 | factory( jQuery );
26 | }
27 | } )( function( $ ) {
28 | "use strict";
29 |
30 | return $.extend( $.expr.pseudos, {
31 | data: $.expr.createPseudo( function( dataName ) {
32 | return function( elem ) {
33 | return !!$.data( elem, dataName );
34 | };
35 | } )
36 | } );
37 | } );
38 |
--------------------------------------------------------------------------------
/demos/datepicker/default.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Datepicker - Default functionality
7 |
8 |
9 |
10 |
13 |
14 |
15 |
16 | Date:
17 |
18 |
19 |
The datepicker is tied to a standard form input field. Focus on the input (click, or use the tab key) to open an interactive calendar in a small overlay. Choose a date, click elsewhere on the page (blur the input), or hit the Esc key to close. If a date is chosen, feedback is shown as the input's value.
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/demos/slider/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Slider Demos
7 |
8 |
9 |
10 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/demos/datepicker/buttonbar.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Datepicker - Display button bar
7 |
8 |
9 |
10 |
15 |
16 |
17 |
18 | Date:
19 |
20 |
21 |
Display a button for selecting Today's date and a Done button for closing the calendar with the boolean showButtonPanel option. Each button is enabled by default when the bar is displayed, but can be turned off with additional options. Button text is customizable.
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/jtr-git.yml:
--------------------------------------------------------------------------------
1 | version: 1
2 |
3 | base-url: /tests/unit/
4 |
5 | test-urls:
6 | - accordion/accordion.html
7 | - autocomplete/autocomplete.html
8 | - button/button.html
9 | - checkboxradio/checkboxradio.html
10 | - controlgroup/controlgroup.html
11 | - core/core.html
12 | - datepicker/datepicker.html
13 | - dialog/dialog.html
14 | - draggable/draggable.html
15 | - droppable/droppable.html
16 | - effects/effects.html
17 | - form-reset-mixin/form-reset-mixin.html
18 | - jquery-patch/jquery-patch.html
19 | - menu/menu.html
20 | - position/position.html
21 | - progressbar/progressbar.html
22 | - resizable/resizable.html
23 | - selectable/selectable.html
24 | - selectmenu/selectmenu.html
25 | - slider/slider.html
26 | - sortable/sortable.html
27 | - spinner/spinner.html
28 | - tabs/tabs.html
29 | - tooltip/tooltip.html
30 | - widget/widget.html
31 |
32 | runs:
33 | jquery:
34 | - git
35 | - 3.x-git
36 |
37 | retries: 2
38 | hard-retries: 1
39 |
--------------------------------------------------------------------------------
/tests/unit/tooltip/tooltip.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Tooltip Test Suite
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
anchor
18 |
19 |
aria-describedby
20 |
span
21 |
baz
22 |
23 |
24 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/.github/workflows/node.js.yml:
--------------------------------------------------------------------------------
1 | name: Node
2 |
3 | on:
4 | pull_request:
5 | push:
6 | branches-ignore: "dependabot/**"
7 |
8 | permissions:
9 | contents: read
10 |
11 | env:
12 | NODE_VERSION: 22.x
13 |
14 | jobs:
15 | build-and-test:
16 | runs-on: ubuntu-latest
17 | name: Build & lint
18 |
19 | steps:
20 | - name: Checkout
21 | uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
22 |
23 | - name: Use Node.js ${{ env.NODE_VERSION }}
24 | uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
25 | with:
26 | node-version: ${{ env.NODE_VERSION }}
27 | cache: npm
28 | cache-dependency-path: '**/package-lock.json'
29 |
30 | - name: Install npm dependencies
31 | run: npm ci
32 |
33 | - name: Build
34 | run: npm run build
35 |
36 | # Lint must happen after build as we lint generated files.
37 | - name: Lint
38 | run: npm run lint
39 |
--------------------------------------------------------------------------------
/demos/resizable/default.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Resizable - Default functionality
7 |
8 |
9 |
13 |
14 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
Enable any DOM element to be resizable. With the cursor grab the right or bottom border and drag to the desired width or height.
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/tests/unit/tooltip/deprecated.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Tooltip Test Suite
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
anchor
18 |
19 |
aria-describedby
20 |
span
21 |
baz
22 |
23 |
24 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/demos/resizable/snap-to-grid.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Resizable - Snap to grid
7 |
8 |
9 |
13 |
14 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
Snap the resizable element to a grid. Set the dimensions of grid cells (height and width in pixels) with the grid option.
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/demos/autocomplete/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Autocomplete Demos
7 |
8 |
9 |
10 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/demos/datepicker/show-week.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Datepicker - Show week of the year
7 |
8 |
9 |
10 |
16 |
17 |
18 |
19 | Date:
20 |
21 |
22 |
The datepicker can show the week of the year. The default calculation follows
23 | the ISO 8601 definition: the week starts on Monday, the first week of the year
24 | contains the first Thursday of the year. This means that some days from one
25 | year may be placed into weeks 'belonging' to another year.
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/tests/unit/droppable/core.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "qunit",
3 | "jquery",
4 | "lib/helper",
5 | "./helper",
6 | "ui/widgets/droppable"
7 | ], function( QUnit, $, helper, testHelper ) {
8 | "use strict";
9 |
10 | QUnit.module( "droppable: core", { afterEach: helper.moduleAfterEach } );
11 |
12 | QUnit.test( "element types", function( assert ) {
13 | var typeNames = ( "p,h1,h2,h3,h4,h5,h6,blockquote,ol,ul,dl,div,form" +
14 | ",table,fieldset,address,ins,del,em,strong,q,cite,dfn,abbr" +
15 | ",acronym,code,samp,kbd,var,img,hr" +
16 | ",input,button,label,select,iframe" ).split( "," );
17 |
18 | assert.expect( typeNames.length );
19 |
20 | $.each( typeNames, function( i ) {
21 | var typeName = typeNames[ i ],
22 | el = $( document.createElement( typeName ) ).appendTo( "body" );
23 |
24 | if ( typeName === "table" ) {
25 | el.append( "content " );
26 | }
27 | el.droppable();
28 | testHelper.shouldDrop( assert );
29 | el.droppable( "destroy" );
30 | el.remove();
31 | } );
32 | } );
33 |
34 | } );
35 |
--------------------------------------------------------------------------------
/jtr-stable.yml:
--------------------------------------------------------------------------------
1 | version: 1
2 |
3 | base-url: /tests/unit/
4 |
5 | test-urls:
6 | - accordion/accordion.html
7 | - autocomplete/autocomplete.html
8 | - button/button.html
9 | - checkboxradio/checkboxradio.html
10 | - controlgroup/controlgroup.html
11 | - core/core.html
12 | - datepicker/datepicker.html
13 | - dialog/dialog.html
14 | - draggable/draggable.html
15 | - droppable/droppable.html
16 | - effects/effects.html
17 | - form-reset-mixin/form-reset-mixin.html
18 | - jquery-patch/jquery-patch.html
19 | - menu/menu.html
20 | - position/position.html
21 | - progressbar/progressbar.html
22 | - resizable/resizable.html
23 | - selectable/selectable.html
24 | - selectmenu/selectmenu.html
25 | - slider/slider.html
26 | - sortable/sortable.html
27 | - spinner/spinner.html
28 | - tabs/tabs.html
29 | - tooltip/tooltip.html
30 | - widget/widget.html
31 |
32 | runs:
33 | jquery:
34 | - 4.0.0-rc.1
35 | - 3.7.1
36 | - 3.6.4
37 | - 2.2.4
38 | - 1.12.4
39 |
40 | retries: 2
41 | hard-retries: 1
42 |
--------------------------------------------------------------------------------
/ui/keycode.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * jQuery UI Keycode @VERSION
3 | * https://jqueryui.com
4 | *
5 | * Copyright OpenJS Foundation and other contributors
6 | * Released under the MIT license.
7 | * https://jquery.org/license
8 | */
9 |
10 | //>>label: Keycode
11 | //>>group: Core
12 | //>>description: Provide keycodes as keynames
13 | //>>docs: https://api.jqueryui.com/jQuery.ui.keyCode/
14 |
15 | ( function( factory ) {
16 | "use strict";
17 |
18 | if ( typeof define === "function" && define.amd ) {
19 |
20 | // AMD. Register as an anonymous module.
21 | define( [ "jquery", "./version" ], factory );
22 | } else {
23 |
24 | // Browser globals
25 | factory( jQuery );
26 | }
27 | } )( function( $ ) {
28 | "use strict";
29 |
30 | return $.ui.keyCode = {
31 | BACKSPACE: 8,
32 | COMMA: 188,
33 | DELETE: 46,
34 | DOWN: 40,
35 | END: 35,
36 | ENTER: 13,
37 | ESCAPE: 27,
38 | HOME: 36,
39 | LEFT: 37,
40 | PAGE_DOWN: 34,
41 | PAGE_UP: 33,
42 | PERIOD: 190,
43 | RIGHT: 39,
44 | SPACE: 32,
45 | TAB: 9,
46 | UP: 38
47 | };
48 |
49 | } );
50 |
--------------------------------------------------------------------------------
/demos/datepicker/min-max.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Datepicker - Restrict date range
7 |
8 |
9 |
10 |
13 |
14 |
15 |
16 | Date:
17 |
18 |
19 |
Restrict the range of selectable dates with the minDate and maxDate options. Set the beginning and end dates as actual dates (new Date(2009, 1 - 1, 26)), as a numeric offset from today (-20), or as a string of periods and units ('+1M +10D'). For the last, use 'D' for days, 'W' for weeks, 'M' for months, or 'Y' for years.
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/ui/tabbable.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * jQuery UI Tabbable @VERSION
3 | * https://jqueryui.com
4 | *
5 | * Copyright OpenJS Foundation and other contributors
6 | * Released under the MIT license.
7 | * https://jquery.org/license
8 | */
9 |
10 | //>>label: :tabbable Selector
11 | //>>group: Core
12 | //>>description: Selects elements which can be tabbed to.
13 | //>>docs: https://api.jqueryui.com/tabbable-selector/
14 |
15 | ( function( factory ) {
16 | "use strict";
17 |
18 | if ( typeof define === "function" && define.amd ) {
19 |
20 | // AMD. Register as an anonymous module.
21 | define( [ "jquery", "./version", "./focusable" ], factory );
22 | } else {
23 |
24 | // Browser globals
25 | factory( jQuery );
26 | }
27 | } )( function( $ ) {
28 | "use strict";
29 |
30 | return $.extend( $.expr.pseudos, {
31 | tabbable: function( element ) {
32 | var tabIndex = $.attr( element, "tabindex" ),
33 | hasTabindex = tabIndex != null;
34 | return ( !hasTabindex || tabIndex >= 0 ) && $.ui.focusable( element, hasTabindex );
35 | }
36 | } );
37 |
38 | } );
39 |
--------------------------------------------------------------------------------
/demos/resizable/helper.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Resizable - Helper
7 |
8 |
9 |
14 |
15 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
Display only an outline of the element while resizing by setting the helper option to a CSS class.
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/demos/dialog/default.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Dialog - Default functionality
7 |
8 |
9 |
10 |
13 |
14 |
15 |
16 |
17 |
This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.
18 |
19 |
20 |
21 |
The basic dialog window is an overlay positioned within the viewport and is protected from page content (like select elements) shining through with an iframe. It has a title bar and a content area, and can be moved, resized and closed with the 'x' icon by default.
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/tests/lib/vendor/qunit-composite/qunit-composite.css:
--------------------------------------------------------------------------------
1 | .qunit-composite-suite {
2 | position: fixed;
3 | bottom: 0;
4 | left: 0;
5 |
6 | margin: 0;
7 | padding: 0;
8 | border-width: 1px 0 0;
9 | height: 45%;
10 | width: 100%;
11 |
12 | background: #fff;
13 | }
14 |
15 | #qunit-testsuites {
16 | margin: 0;
17 | padding: 0.5em 1.0em;
18 | font-family: "Helvetica Neue Light","HelveticaNeue-Light","Helvetica Neue",Calibri,Helvetica,Arial,sans-serif;
19 | font-size: small;
20 | background-color: #d2e0e6;
21 | border-bottom: 1px solid #fff;
22 | }
23 |
24 | #qunit-testsuites a {
25 | color: #00c;
26 | text-decoration: none;
27 | }
28 |
29 | #qunit-testsuites a:hover {
30 | text-decoration: underline;
31 | }
32 |
33 | #qunit-testsuites > li {
34 | display: inline-block;
35 | }
36 |
37 | #qunit-testsuites > li:first-child::before {
38 | content: "Suites: ";
39 | }
40 |
41 | #qunit-testsuites > li + li::before {
42 | content: "|\a0";
43 | }
44 |
45 | #qunit-testsuites > li::after {
46 | content: "\a0";
47 | }
48 |
--------------------------------------------------------------------------------
/tests/unit/accordion/common.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "lib/common",
3 | "ui/widgets/accordion"
4 | ], function( common ) {
5 |
6 | common.testWidget( "accordion", {
7 | defaults: {
8 | active: 0,
9 | animate: {},
10 | classes: {
11 | "ui-accordion-header": "ui-corner-top",
12 | "ui-accordion-header-collapsed": "ui-corner-all",
13 | "ui-accordion-content": "ui-corner-bottom"
14 | },
15 | collapsible: false,
16 | disabled: false,
17 | event: "click",
18 | header: function( elem ) {
19 | return elem
20 | .find( "> li > :first-child" )
21 | .add(
22 | elem.find( "> :not(li)" )
23 |
24 | // Support: jQuery <3.5 only
25 | // We could use `.even()` but that's unavailable in older jQuery.
26 | .filter( function( i ) {
27 | return i % 2 === 0;
28 | } )
29 | );
30 | },
31 | heightStyle: "auto",
32 | icons: {
33 | "activeHeader": "ui-icon-triangle-1-s",
34 | "header": "ui-icon-triangle-1-e"
35 | },
36 |
37 | // Callbacks
38 | activate: null,
39 | beforeActivate: null,
40 | create: null
41 | }
42 | } );
43 |
44 | } );
45 |
--------------------------------------------------------------------------------
/demos/resizable/visual-feedback.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Resizable - Visual feedback
7 |
8 |
9 |
14 |
15 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
Instead of showing the actual element during resize, set the ghost option to true to show a semi-transparent part of the element.
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/ui/effects/effect-transfer.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * jQuery UI Effects Transfer @VERSION
3 | * https://jqueryui.com
4 | *
5 | * Copyright OpenJS Foundation and other contributors
6 | * Released under the MIT license.
7 | * https://jquery.org/license
8 | */
9 |
10 | //>>label: Transfer Effect
11 | //>>group: Effects
12 | //>>description: Displays a transfer effect from one element to another.
13 | //>>docs: https://api.jqueryui.com/transfer-effect/
14 | //>>demos: https://jqueryui.com/effect/
15 |
16 | ( function( factory ) {
17 | "use strict";
18 |
19 | if ( typeof define === "function" && define.amd ) {
20 |
21 | // AMD. Register as an anonymous module.
22 | define( [
23 | "jquery",
24 | "../version",
25 | "../effect"
26 | ], factory );
27 | } else {
28 |
29 | // Browser globals
30 | factory( jQuery );
31 | }
32 | } )( function( $ ) {
33 | "use strict";
34 |
35 | var effect;
36 | if ( $.uiBackCompat === true ) {
37 | effect = $.effects.define( "transfer", function( options, done ) {
38 | $( this ).transfer( options, done );
39 | } );
40 | }
41 | return effect;
42 |
43 | } );
44 |
--------------------------------------------------------------------------------
/demos/datepicker/alt-field.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Datepicker - Populate alternate field
7 |
8 |
9 |
10 |
16 |
17 |
18 |
19 | Date:
20 |
21 |
22 |
Populate an alternate field with its own date format whenever a date is selected using the altField and altFormat options. This feature could be used to present a human-friendly date for user selection, while passing a more computer-friendly date through for further processing.
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/tests/unit/draggable/common.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "lib/common",
3 | "ui/widgets/draggable"
4 | ], function( common ) {
5 |
6 | common.testWidget( "draggable", {
7 | defaults: {
8 | appendTo: "parent",
9 | axis: false,
10 | cancel: "input, textarea, button, select, option",
11 | classes: {},
12 | connectToSortable: false,
13 | containment: false,
14 | cursor: "auto",
15 | cursorAt: false,
16 | disabled: false,
17 | grid: false,
18 | handle: false,
19 | helper: "original",
20 | opacity: false,
21 | refreshPositions: false,
22 | revert: false,
23 | revertDuration: 500,
24 | scroll: true,
25 | scrollSensitivity: 20,
26 | scrollSpeed: 20,
27 | scope: "default",
28 | snap: false,
29 | snapMode: "both",
30 | snapTolerance: 20,
31 | stack: false,
32 | zIndex: false,
33 |
34 | //Todo: remove the following option checks when interactions are rewritten:
35 | addClasses: true,
36 | delay: 0,
37 | distance: 1,
38 | iframeFix: false,
39 |
40 | // Callbacks
41 | create: null,
42 | drag: null,
43 | start: null,
44 | stop: null
45 | }
46 | } );
47 |
48 | } );
49 |
--------------------------------------------------------------------------------
/demos/checkboxradio/radiogroup.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Checkboxradio - Radio Group
6 |
7 |
8 |
9 |
13 |
14 |
15 |
16 |
17 |
Radio Group
18 |
19 | Select a Location:
20 | New York
21 |
22 | Paris
23 |
24 | London
25 |
26 |
27 |
28 |
29 |
30 |
Example markup using the controlgroup widget to create a radio group.
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/demos/resizable/aspect-ratio.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Resizable - Preserve aspect ratio
7 |
8 |
9 |
13 |
14 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
Maintain the existing aspect ratio or set a new one to constrain the proportions on resize. Set the aspectRatio option to true, and optionally pass in a new ratio (i.e., 4/3)
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/demos/spinner/overflow.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Spinner - Overflow
7 |
8 |
9 |
10 |
23 |
24 |
25 |
26 |
27 | Select a value:
28 |
29 |
30 |
31 |
32 |
33 | Overflowing spinner restricted to a range of -10 to 10.
34 | For anything above 10, it'll overflow to -10, and the other way round.
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/demos/resizable/animate.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Resizable - Animate
7 |
8 |
9 |
14 |
15 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
Animate the resize action using the animate option (boolean). When this option is set to true, drag the outline to the desired location; the element animates to that size on drag stop.
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/tests/unit/accordion/helper.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "qunit",
3 | "jquery",
4 | "lib/helper",
5 | "ui/widgets/accordion"
6 | ], function( QUnit, $, helper ) {
7 | "use strict";
8 |
9 | return $.extend( helper, {
10 | equalHeight: function( assert, accordion, height ) {
11 | accordion.find( ".ui-accordion-content" ).each( function() {
12 | assert.equal( $( this ).outerHeight(), height );
13 | } );
14 | },
15 |
16 | beforeAfterEach: function() {
17 | var animate = $.ui.accordion.prototype.options.animate;
18 | return {
19 | beforeEach: function() {
20 | $.ui.accordion.prototype.options.animate = false;
21 | },
22 | afterEach: function() {
23 | $.ui.accordion.prototype.options.animate = animate;
24 | return helper.moduleAfterEach.apply( this, arguments );
25 | }
26 | };
27 | },
28 |
29 | state: function( assert, accordion ) {
30 | var expected = $.makeArray( arguments ).slice( 2 ),
31 | actual = accordion.find( ".ui-accordion-content" ).map( function() {
32 | return $( this ).css( "display" ) === "none" ? 0 : 1;
33 | } ).get();
34 | assert.deepEqual( actual, expected );
35 | }
36 | } );
37 |
38 | } );
39 |
--------------------------------------------------------------------------------
/demos/draggable/revert.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Draggable - Revert position
7 |
8 |
9 |
12 |
13 |
17 |
18 |
19 |
20 |
21 |
Revert the original
22 |
23 |
24 |
25 |
Revert the helper
26 |
27 |
28 |
29 |
Return the draggable (or it's helper) to its original location when dragging stops with the boolean revert option.
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/themes/base/selectmenu.css:
--------------------------------------------------------------------------------
1 | /*!
2 | * jQuery UI Selectmenu @VERSION
3 | * https://jqueryui.com
4 | *
5 | * Copyright OpenJS Foundation and other contributors
6 | * Released under the MIT license.
7 | * https://jquery.org/license
8 | *
9 | * https://api.jqueryui.com/selectmenu/#theming
10 | */
11 | .ui-selectmenu-menu {
12 | padding: 0;
13 | margin: 0;
14 | position: absolute;
15 | top: 0;
16 | left: 0;
17 | display: none;
18 | }
19 | .ui-selectmenu-menu .ui-menu {
20 | overflow: auto;
21 | overflow-x: hidden;
22 | padding-bottom: 1px;
23 | }
24 | .ui-selectmenu-menu .ui-menu .ui-selectmenu-optgroup {
25 | font-size: 1em;
26 | font-weight: bold;
27 | line-height: 1.5;
28 | padding: 2px 0.4em;
29 | margin: 0.5em 0 0 0;
30 | height: auto;
31 | border: 0;
32 | }
33 | .ui-selectmenu-open {
34 | display: block;
35 | }
36 | .ui-selectmenu-text {
37 | display: block;
38 | margin-right: 20px;
39 | overflow: hidden;
40 | text-overflow: ellipsis;
41 | }
42 | .ui-selectmenu-button.ui-button {
43 | text-align: left;
44 | white-space: nowrap;
45 | width: 14em;
46 | }
47 | .ui-selectmenu-icon.ui-icon {
48 | float: right;
49 | margin-top: 0;
50 | }
51 |
--------------------------------------------------------------------------------
/demos/resizable/max-min.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Resizable - Maximum / minimum size
7 |
8 |
9 |
13 |
14 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
Limit the resizable element to a maximum or minimum height or width using the maxHeight, maxWidth, minHeight, and minWidth options.
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/tests/unit/sortable/common.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "lib/common",
3 | "ui/widgets/sortable"
4 | ], function( common ) {
5 |
6 | common.testWidget( "sortable", {
7 | defaults: {
8 | appendTo: "parent",
9 | axis: false,
10 | cancel: "input, textarea, button, select, option",
11 | classes: {},
12 | connectWith: false,
13 | containment: false,
14 | cursor: "auto",
15 | cursorAt: false,
16 | delay: 0,
17 | disabled: false,
18 | distance: 1,
19 | dropOnEmpty: true,
20 | forcePlaceholderSize: false,
21 | forceHelperSize: false,
22 | grid: false,
23 | handle: false,
24 | helper: "original",
25 | items: "> *",
26 | opacity: false,
27 | placeholder: false,
28 | revert: false,
29 | scroll: true,
30 | scrollSensitivity: 20,
31 | scrollSpeed: 20,
32 | scope: "default",
33 | tolerance: "intersect",
34 | zIndex: 1000,
35 |
36 | // Callbacks
37 | activate: null,
38 | beforeStop: null,
39 | change: null,
40 | create: null,
41 | deactivate: null,
42 | out: null,
43 | over: null,
44 | receive: null,
45 | remove: null,
46 | sort: null,
47 | start: null,
48 | stop: null,
49 | update: null
50 | }
51 | } );
52 |
53 | } );
54 |
--------------------------------------------------------------------------------
/tests/unit/dialog/common.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "lib/common",
3 | "ui/widgets/dialog"
4 | ], function( common ) {
5 |
6 | common.testWidget( "dialog", {
7 | defaults: {
8 | appendTo: "body",
9 | autoOpen: true,
10 | buttons: [],
11 | classes: {
12 | "ui-dialog": "ui-corner-all",
13 | "ui-dialog-titlebar": "ui-corner-all"
14 | },
15 | closeOnEscape: true,
16 | closeText: "Close",
17 | disabled: false,
18 | draggable: true,
19 | height: "auto",
20 | hide: null,
21 | maxHeight: null,
22 | maxWidth: null,
23 | minHeight: 150,
24 | minWidth: 150,
25 | modal: false,
26 | position: {
27 | my: "center",
28 | at: "center",
29 | of: window,
30 | collision: "fit",
31 | using: $.ui.dialog.prototype.options.position.using
32 | },
33 | resizable: true,
34 | show: null,
35 | title: null,
36 | uiDialogTitleHeadingLevel: 0,
37 | width: 300,
38 |
39 | // Callbacks
40 | beforeClose: null,
41 | close: null,
42 | create: null,
43 | drag: null,
44 | dragStart: null,
45 | dragStop: null,
46 | focus: null,
47 | open: null,
48 | resize: null,
49 | resizeStart: null,
50 | resizeStop: null
51 | }
52 | } );
53 |
54 | } );
55 |
--------------------------------------------------------------------------------
/external/globalize/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright Software Freedom Conservancy, Inc.
2 | http://jquery.org/license
3 |
4 | Permission is hereby granted, free of charge, to any person obtaining
5 | a copy of this software and associated documentation files (the
6 | "Software"), to deal in the Software without restriction, including
7 | without limitation the rights to use, copy, modify, merge, publish,
8 | distribute, sublicense, and/or sell copies of the Software, and to
9 | permit persons to whom the Software is furnished to do so, subject to
10 | the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be
13 | included in all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/external/jquery/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright OpenJS Foundation and other contributors, https://openjsf.org/
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining
4 | a copy of this software and associated documentation files (the
5 | "Software"), to deal in the Software without restriction, including
6 | without limitation the rights to use, copy, modify, merge, publish,
7 | distribute, sublicense, and/or sell copies of the Software, and to
8 | permit persons to whom the Software is furnished to do so, subject to
9 | the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be
12 | included in all copies or substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/external/qunit/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright OpenJS Foundation and other contributors, https://openjsf.org/
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining
4 | a copy of this software and associated documentation files (the
5 | "Software"), to deal in the Software without restriction, including
6 | without limitation the rights to use, copy, modify, merge, publish,
7 | distribute, sublicense, and/or sell copies of the Software, and to
8 | permit persons to whom the Software is furnished to do so, subject to
9 | the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be
12 | included in all copies or substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/demos/datepicker/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Datepicker Demos
7 |
8 |
9 |
10 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/external/jquery-3.4.0/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright JS Foundation and other contributors, https://js.foundation/
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining
4 | a copy of this software and associated documentation files (the
5 | "Software"), to deal in the Software without restriction, including
6 | without limitation the rights to use, copy, modify, merge, publish,
7 | distribute, sublicense, and/or sell copies of the Software, and to
8 | permit persons to whom the Software is furnished to do so, subject to
9 | the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be
12 | included in all copies or substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/external/jquery-3.4.1/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright JS Foundation and other contributors, https://js.foundation/
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining
4 | a copy of this software and associated documentation files (the
5 | "Software"), to deal in the Software without restriction, including
6 | without limitation the rights to use, copy, modify, merge, publish,
7 | distribute, sublicense, and/or sell copies of the Software, and to
8 | permit persons to whom the Software is furnished to do so, subject to
9 | the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be
12 | included in all copies or substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/external/jquery-3.5.0/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright JS Foundation and other contributors, https://js.foundation/
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining
4 | a copy of this software and associated documentation files (the
5 | "Software"), to deal in the Software without restriction, including
6 | without limitation the rights to use, copy, modify, merge, publish,
7 | distribute, sublicense, and/or sell copies of the Software, and to
8 | permit persons to whom the Software is furnished to do so, subject to
9 | the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be
12 | included in all copies or substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/external/jquery-3.5.1/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright JS Foundation and other contributors, https://js.foundation/
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining
4 | a copy of this software and associated documentation files (the
5 | "Software"), to deal in the Software without restriction, including
6 | without limitation the rights to use, copy, modify, merge, publish,
7 | distribute, sublicense, and/or sell copies of the Software, and to
8 | permit persons to whom the Software is furnished to do so, subject to
9 | the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be
12 | included in all copies or substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/external/jquery-3.6.0/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright OpenJS Foundation and other contributors, https://openjsf.org/
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining
4 | a copy of this software and associated documentation files (the
5 | "Software"), to deal in the Software without restriction, including
6 | without limitation the rights to use, copy, modify, merge, publish,
7 | distribute, sublicense, and/or sell copies of the Software, and to
8 | permit persons to whom the Software is furnished to do so, subject to
9 | the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be
12 | included in all copies or substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/external/jquery-3.6.1/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright OpenJS Foundation and other contributors, https://openjsf.org/
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining
4 | a copy of this software and associated documentation files (the
5 | "Software"), to deal in the Software without restriction, including
6 | without limitation the rights to use, copy, modify, merge, publish,
7 | distribute, sublicense, and/or sell copies of the Software, and to
8 | permit persons to whom the Software is furnished to do so, subject to
9 | the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be
12 | included in all copies or substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/external/jquery-3.6.2/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright OpenJS Foundation and other contributors, https://openjsf.org/
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining
4 | a copy of this software and associated documentation files (the
5 | "Software"), to deal in the Software without restriction, including
6 | without limitation the rights to use, copy, modify, merge, publish,
7 | distribute, sublicense, and/or sell copies of the Software, and to
8 | permit persons to whom the Software is furnished to do so, subject to
9 | the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be
12 | included in all copies or substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/external/jquery-3.6.3/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright OpenJS Foundation and other contributors, https://openjsf.org/
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining
4 | a copy of this software and associated documentation files (the
5 | "Software"), to deal in the Software without restriction, including
6 | without limitation the rights to use, copy, modify, merge, publish,
7 | distribute, sublicense, and/or sell copies of the Software, and to
8 | permit persons to whom the Software is furnished to do so, subject to
9 | the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be
12 | included in all copies or substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/external/jquery-3.6.4/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright OpenJS Foundation and other contributors, https://openjsf.org/
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining
4 | a copy of this software and associated documentation files (the
5 | "Software"), to deal in the Software without restriction, including
6 | without limitation the rights to use, copy, modify, merge, publish,
7 | distribute, sublicense, and/or sell copies of the Software, and to
8 | permit persons to whom the Software is furnished to do so, subject to
9 | the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be
12 | included in all copies or substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/external/jquery-3.7.0/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright OpenJS Foundation and other contributors, https://openjsf.org/
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining
4 | a copy of this software and associated documentation files (the
5 | "Software"), to deal in the Software without restriction, including
6 | without limitation the rights to use, copy, modify, merge, publish,
7 | distribute, sublicense, and/or sell copies of the Software, and to
8 | permit persons to whom the Software is furnished to do so, subject to
9 | the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be
12 | included in all copies or substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/external/jquery-3.7.1/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright OpenJS Foundation and other contributors, https://openjsf.org/
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining
4 | a copy of this software and associated documentation files (the
5 | "Software"), to deal in the Software without restriction, including
6 | without limitation the rights to use, copy, modify, merge, publish,
7 | distribute, sublicense, and/or sell copies of the Software, and to
8 | permit persons to whom the Software is furnished to do so, subject to
9 | the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be
12 | included in all copies or substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/external/jquery-4.0.0-rc.1/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright OpenJS Foundation and other contributors, https://openjsf.org/
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining
4 | a copy of this software and associated documentation files (the
5 | "Software"), to deal in the Software without restriction, including
6 | without limitation the rights to use, copy, modify, merge, publish,
7 | distribute, sublicense, and/or sell copies of the Software, and to
8 | permit persons to whom the Software is furnished to do so, subject to
9 | the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be
12 | included in all copies or substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/external/jquery/MIT-LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2014 jQuery Foundation and other contributors
2 | http://jquery.com/
3 |
4 | Permission is hereby granted, free of charge, to any person obtaining
5 | a copy of this software and associated documentation files (the
6 | "Software"), to deal in the Software without restriction, including
7 | without limitation the rights to use, copy, modify, merge, publish,
8 | distribute, sublicense, and/or sell copies of the Software, and to
9 | permit persons to whom the Software is furnished to do so, subject to
10 | the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be
13 | included in all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/external/qunit/MIT-LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2013 jQuery Foundation and other contributors
2 | http://jquery.com/
3 |
4 | Permission is hereby granted, free of charge, to any person obtaining
5 | a copy of this software and associated documentation files (the
6 | "Software"), to deal in the Software without restriction, including
7 | without limitation the rights to use, copy, modify, merge, publish,
8 | distribute, sublicense, and/or sell copies of the Software, and to
9 | permit persons to whom the Software is furnished to do so, subject to
10 | the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be
13 | included in all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/demos/slider/rangemax.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Slider - Range with fixed maximum
7 |
8 |
9 |
10 |
22 |
23 |
24 |
25 |
26 | Minimum number of bedrooms:
27 |
28 |
29 |
30 |
31 |
32 |
Fix the maximum value of the range slider so that the user can only select a minimum. Set the range option to "max."
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/external/jquery-custom/MIT-LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2014 jQuery Foundation and other contributors
2 | http://jquery.com/
3 |
4 | Permission is hereby granted, free of charge, to any person obtaining
5 | a copy of this software and associated documentation files (the
6 | "Software"), to deal in the Software without restriction, including
7 | without limitation the rights to use, copy, modify, merge, publish,
8 | distribute, sublicense, and/or sell copies of the Software, and to
9 | permit persons to whom the Software is furnished to do so, subject to
10 | the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be
13 | included in all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/tests/lib/vendor/qunit-assert-classes/LICENSE.txt:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2015 Alexander Schmitz
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
23 |
--------------------------------------------------------------------------------
/ui/effects/effect-fade.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * jQuery UI Effects Fade @VERSION
3 | * https://jqueryui.com
4 | *
5 | * Copyright OpenJS Foundation and other contributors
6 | * Released under the MIT license.
7 | * https://jquery.org/license
8 | */
9 |
10 | //>>label: Fade Effect
11 | //>>group: Effects
12 | //>>description: Fades the element.
13 | //>>docs: https://api.jqueryui.com/fade-effect/
14 | //>>demos: https://jqueryui.com/effect/
15 |
16 | ( function( factory ) {
17 | "use strict";
18 |
19 | if ( typeof define === "function" && define.amd ) {
20 |
21 | // AMD. Register as an anonymous module.
22 | define( [
23 | "jquery",
24 | "../version",
25 | "../effect"
26 | ], factory );
27 | } else {
28 |
29 | // Browser globals
30 | factory( jQuery );
31 | }
32 | } )( function( $ ) {
33 | "use strict";
34 |
35 | return $.effects.define( "fade", "toggle", function( options, done ) {
36 | var show = options.mode === "show";
37 |
38 | $( this )
39 | .css( "opacity", show ? 0 : 1 )
40 | .animate( {
41 | opacity: show ? 1 : 0
42 | }, {
43 | queue: false,
44 | duration: options.duration,
45 | easing: options.easing,
46 | complete: done
47 | } );
48 | } );
49 |
50 | } );
51 |
--------------------------------------------------------------------------------
/ui/effects/effect-puff.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * jQuery UI Effects Puff @VERSION
3 | * https://jqueryui.com
4 | *
5 | * Copyright OpenJS Foundation and other contributors
6 | * Released under the MIT license.
7 | * https://jquery.org/license
8 | */
9 |
10 | //>>label: Puff Effect
11 | //>>group: Effects
12 | //>>description: Creates a puff effect by scaling the element up and hiding it at the same time.
13 | //>>docs: https://api.jqueryui.com/puff-effect/
14 | //>>demos: https://jqueryui.com/effect/
15 |
16 | ( function( factory ) {
17 | "use strict";
18 |
19 | if ( typeof define === "function" && define.amd ) {
20 |
21 | // AMD. Register as an anonymous module.
22 | define( [
23 | "jquery",
24 | "../version",
25 | "../effect",
26 | "./effect-scale"
27 | ], factory );
28 | } else {
29 |
30 | // Browser globals
31 | factory( jQuery );
32 | }
33 | } )( function( $ ) {
34 | "use strict";
35 |
36 | return $.effects.define( "puff", "hide", function( options, done ) {
37 | var newOptions = $.extend( true, {}, options, {
38 | fade: true,
39 | percent: parseInt( options.percent, 10 ) || 150
40 | } );
41 |
42 | $.effects.effect.scale.call( this, newOptions, done );
43 | } );
44 |
45 | } );
46 |
--------------------------------------------------------------------------------
/demos/slider/rangemin.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Slider - Range with fixed minimum
7 |
8 |
9 |
10 |
22 |
23 |
24 |
25 |
26 | Maximum price:
27 |
28 |
29 |
30 |
31 |
32 |
33 |
Fix the minimum value of the range slider so that the user can only select a maximum. Set the range option to "min."
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/demos/slider/steps.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Slider - Snap to increments
7 |
8 |
9 |
10 |
22 |
23 |
24 |
25 |
26 | Donation amount ($50 increments):
27 |
28 |
29 |
30 |
31 |
32 |
33 |
Increment slider values with the step option set to an integer, commonly a dividend of the slider's maximum value. The default increment is 1.
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/tests/lib/vendor/qunit-assert-close/MIT-LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright jQuery Foundation and other contributors
2 | http://jquery.com/
3 |
4 | Permission is hereby granted, free of charge, to any person obtaining
5 | a copy of this software and associated documentation files (the
6 | "Software"), to deal in the Software without restriction, including
7 | without limitation the rights to use, copy, modify, merge, publish,
8 | distribute, sublicense, and/or sell copies of the Software, and to
9 | permit persons to whom the Software is furnished to do so, subject to
10 | the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be
13 | included in all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/tests/unit/dialog/common-deprecated.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "lib/common",
3 | "ui/widgets/dialog"
4 | ], function( common ) {
5 |
6 | common.testWidget( "dialog", {
7 | defaults: {
8 | appendTo: "body",
9 | autoOpen: true,
10 | buttons: [],
11 | classes: {
12 | "ui-dialog": "ui-corner-all",
13 | "ui-dialog-titlebar": "ui-corner-all"
14 | },
15 | closeOnEscape: true,
16 | closeText: "Close",
17 | dialogClass: "",
18 | disabled: false,
19 | draggable: true,
20 | height: "auto",
21 | hide: null,
22 | maxHeight: null,
23 | maxWidth: null,
24 | minHeight: 150,
25 | minWidth: 150,
26 | modal: false,
27 | position: {
28 | my: "center",
29 | at: "center",
30 | of: window,
31 | collision: "fit",
32 | using: $.ui.dialog.prototype.options.position.using
33 | },
34 | resizable: true,
35 | show: null,
36 | title: null,
37 | uiDialogTitleHeadingLevel: 0,
38 | width: 300,
39 |
40 | // Callbacks
41 | beforeClose: null,
42 | close: null,
43 | create: null,
44 | drag: null,
45 | dragStart: null,
46 | dragStop: null,
47 | focus: null,
48 | open: null,
49 | resize: null,
50 | resizeStart: null,
51 | resizeStop: null
52 | }
53 | } );
54 |
55 | } );
56 |
--------------------------------------------------------------------------------
/themes/base/spinner.css:
--------------------------------------------------------------------------------
1 | /*!
2 | * jQuery UI Spinner @VERSION
3 | * https://jqueryui.com
4 | *
5 | * Copyright OpenJS Foundation and other contributors
6 | * Released under the MIT license.
7 | * https://jquery.org/license
8 | *
9 | * https://api.jqueryui.com/spinner/#theming
10 | */
11 | .ui-spinner {
12 | position: relative;
13 | display: inline-block;
14 | overflow: hidden;
15 | padding: 0;
16 | vertical-align: middle;
17 | }
18 | .ui-spinner-input {
19 | border: none;
20 | background: none;
21 | color: inherit;
22 | padding: .222em 0;
23 | margin: .2em 0;
24 | vertical-align: middle;
25 | margin-left: .4em;
26 | margin-right: 2em;
27 | }
28 | .ui-spinner-button {
29 | width: 1.6em;
30 | height: 50%;
31 | font-size: .5em;
32 | padding: 0;
33 | margin: 0;
34 | text-align: center;
35 | position: absolute;
36 | cursor: default;
37 | display: block;
38 | overflow: hidden;
39 | right: 0;
40 | }
41 | /* more specificity required here to override default borders */
42 | .ui-spinner a.ui-spinner-button {
43 | border-top-style: none;
44 | border-bottom-style: none;
45 | border-right-style: none;
46 | }
47 | .ui-spinner-up {
48 | top: 0;
49 | }
50 | .ui-spinner-down {
51 | bottom: 0;
52 | }
53 |
--------------------------------------------------------------------------------
/ui/unique-id.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * jQuery UI Unique ID @VERSION
3 | * https://jqueryui.com
4 | *
5 | * Copyright OpenJS Foundation and other contributors
6 | * Released under the MIT license.
7 | * https://jquery.org/license
8 | */
9 |
10 | //>>label: uniqueId
11 | //>>group: Core
12 | //>>description: Functions to generate and remove uniqueId's
13 | //>>docs: https://api.jqueryui.com/uniqueId/
14 |
15 | ( function( factory ) {
16 | "use strict";
17 |
18 | if ( typeof define === "function" && define.amd ) {
19 |
20 | // AMD. Register as an anonymous module.
21 | define( [ "jquery", "./version" ], factory );
22 | } else {
23 |
24 | // Browser globals
25 | factory( jQuery );
26 | }
27 | } )( function( $ ) {
28 | "use strict";
29 |
30 | return $.fn.extend( {
31 | uniqueId: ( function() {
32 | var uuid = 0;
33 |
34 | return function() {
35 | return this.each( function() {
36 | if ( !this.id ) {
37 | this.id = "ui-id-" + ( ++uuid );
38 | }
39 | } );
40 | };
41 | } )(),
42 |
43 | removeUniqueId: function() {
44 | return this.each( function() {
45 | if ( /^ui-id-\d+$/.test( this.id ) ) {
46 | $( this ).removeAttr( "id" );
47 | }
48 | } );
49 | }
50 | } );
51 |
52 | } );
53 |
--------------------------------------------------------------------------------
/tests/visual/slider/range_slider.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Slider - Range slider
6 |
7 |
14 |
15 |
31 |
32 |
33 |
34 |
Range Slider
35 |
When set both values of range slider to the maximum, slider should not lock
36 |
37 |
38 |
set values to max
39 |
set values to min
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/ui/plugin.js:
--------------------------------------------------------------------------------
1 | ( function( factory ) {
2 | "use strict";
3 |
4 | if ( typeof define === "function" && define.amd ) {
5 |
6 | // AMD. Register as an anonymous module.
7 | define( [ "jquery", "./version" ], factory );
8 | } else {
9 |
10 | // Browser globals
11 | factory( jQuery );
12 | }
13 | } )( function( $ ) {
14 | "use strict";
15 |
16 | // $.ui.plugin is deprecated. Use $.widget() extensions instead.
17 | return $.ui.plugin = {
18 | add: function( module, option, set ) {
19 | var i,
20 | proto = $.ui[ module ].prototype;
21 | for ( i in set ) {
22 | proto.plugins[ i ] = proto.plugins[ i ] || [];
23 | proto.plugins[ i ].push( [ option, set[ i ] ] );
24 | }
25 | },
26 | call: function( instance, name, args, allowDisconnected ) {
27 | var i,
28 | set = instance.plugins[ name ];
29 |
30 | if ( !set ) {
31 | return;
32 | }
33 |
34 | if ( !allowDisconnected && ( !instance.element[ 0 ].parentNode ||
35 | instance.element[ 0 ].parentNode.nodeType === 11 ) ) {
36 | return;
37 | }
38 |
39 | for ( i = 0; i < set.length; i++ ) {
40 | if ( instance.options[ set[ i ][ 0 ] ] ) {
41 | set[ i ][ 1 ].apply( instance.element, args );
42 | }
43 | }
44 | }
45 | };
46 |
47 | } );
48 |
--------------------------------------------------------------------------------
/demos/slider/custom-handle.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Slider - Custom handle
7 |
8 |
9 |
19 |
20 |
31 |
32 |
33 |
34 |
37 |
38 |
39 |
The basic slider is horizontal and has a single handle that can be moved with the mouse or by using the arrow keys.
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/tests/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Tests
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
jQuery UI Tests
16 |
17 |
Unit Tests
18 |
Unit tests exist for all functionality in jQuery UI.
19 | The unit tests can be run locally (some tests require a web server with PHP)
20 | to ensure proper functionality before committing changes.
21 | The unit tests are also run in Chrome, Firefox, Edge, and Safari on every commit.
22 |
23 |
Visual Tests
24 |
Visual tests only exist in cases where we can't verify proper functionality
25 | with unit tests. These may be either purely visual or just hard to automate.
26 | Most visual tests will provide a description of what is happening on the page
27 | and what to look for.
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/tests/visual/compound/tabs_selectmenu.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Compound Visual Test : Selectmenu in Tabs
6 |
7 |
8 |
9 |
13 |
16 |
17 |
18 |
19 |
20 |
24 |
25 |
26 | Slower
27 | Slow
28 | Medium
29 | Fast
30 | Faster
31 |
32 |
33 |
34 |
35 | Slower
36 | Slow
37 | Medium
38 | Fast
39 | Faster
40 |
41 |
42 |
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/demos/menu/categories.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Menu - Categories
7 |
8 |
9 |
10 |
15 |
19 |
20 |
21 |
22 |
32 |
33 |
34 |
By using the items option, you can configure which elements are converted into selectable menu items. Here this technique is used to create category headers.
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/ui/i18n/datepicker-ja.js:
--------------------------------------------------------------------------------
1 | /* Japanese initialisation for the jQuery UI date picker plugin. */
2 | /* Written by Kentaro SATO (kentaro@ranvis.com). */
3 | ( function( factory ) {
4 | "use strict";
5 |
6 | if ( typeof define === "function" && define.amd ) {
7 |
8 | // AMD. Register as an anonymous module.
9 | define( [ "../widgets/datepicker" ], factory );
10 | } else {
11 |
12 | // Browser globals
13 | factory( jQuery.datepicker );
14 | }
15 | } )( function( datepicker ) {
16 | "use strict";
17 |
18 | datepicker.regional.ja = {
19 | closeText: "閉じる",
20 | prevText: "前",
21 | nextText: "次",
22 | currentText: "今日",
23 | monthNames: [ "1月", "2月", "3月", "4月", "5月", "6月",
24 | "7月", "8月", "9月", "10月", "11月", "12月" ],
25 | monthNamesShort: [ "1月", "2月", "3月", "4月", "5月", "6月",
26 | "7月", "8月", "9月", "10月", "11月", "12月" ],
27 | dayNames: [ "日曜日", "月曜日", "火曜日", "水曜日", "木曜日", "金曜日", "土曜日" ],
28 | dayNamesShort: [ "日", "月", "火", "水", "木", "金", "土" ],
29 | dayNamesMin: [ "日", "月", "火", "水", "木", "金", "土" ],
30 | weekHeader: "週",
31 | dateFormat: "yy/mm/dd",
32 | firstDay: 0,
33 | isRTL: false,
34 | showMonthAfterYear: true,
35 | yearSuffix: "年" };
36 | datepicker.setDefaults( datepicker.regional.ja );
37 |
38 | return datepicker.regional.ja;
39 |
40 | } );
41 |
--------------------------------------------------------------------------------
/themes/base/menu.css:
--------------------------------------------------------------------------------
1 | /*!
2 | * jQuery UI Menu @VERSION
3 | * https://jqueryui.com
4 | *
5 | * Copyright OpenJS Foundation and other contributors
6 | * Released under the MIT license.
7 | * https://jquery.org/license
8 | *
9 | * https://api.jqueryui.com/menu/#theming
10 | */
11 | .ui-menu {
12 | list-style: none;
13 | padding: 0;
14 | margin: 0;
15 | display: block;
16 | outline: 0;
17 | }
18 | .ui-menu .ui-menu {
19 | position: absolute;
20 | }
21 | .ui-menu .ui-menu-item {
22 | margin: 0;
23 | cursor: pointer;
24 | }
25 | .ui-menu .ui-menu-item-wrapper {
26 | position: relative;
27 | padding: 3px 1em 3px .4em;
28 | }
29 | .ui-menu .ui-menu-divider {
30 | margin: 5px 0;
31 | height: 0;
32 | font-size: 0;
33 | line-height: 0;
34 | border-width: 1px 0 0 0;
35 | }
36 | .ui-menu .ui-state-focus,
37 | .ui-menu .ui-state-active {
38 | margin: -1px;
39 | }
40 |
41 | /* icon support */
42 | .ui-menu-icons {
43 | position: relative;
44 | }
45 | .ui-menu-icons .ui-menu-item-wrapper {
46 | padding-left: 2em;
47 | }
48 |
49 | /* left-aligned */
50 | .ui-menu .ui-icon {
51 | position: absolute;
52 | top: 0;
53 | bottom: 0;
54 | left: .2em;
55 | margin: auto 0;
56 | }
57 |
58 | /* right-aligned */
59 | .ui-menu .ui-menu-icon {
60 | left: auto;
61 | right: 0;
62 | }
63 |
--------------------------------------------------------------------------------
/tests/visual/dialog/animated.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Dialog Visual Test
6 |
7 |
8 |
26 |
27 |
28 |
29 | WHAT: A animated modal dialog, using blind effect to show, explode to hide.
30 | EXPECTED: Dialog shows up on top of the overlay and stays there during and after the animation. Focus is set to the input inside the dialog and stays there after the animation finishes.
31 |
32 |
33 |
Please enter password to continue.
34 |
Password
35 |
36 |
37 | Open Dialog
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/ui/i18n/datepicker-zh-TW.js:
--------------------------------------------------------------------------------
1 | /* Chinese initialisation for the jQuery UI date picker plugin. */
2 | /* Written by Ressol (ressol@gmail.com). */
3 | ( function( factory ) {
4 | "use strict";
5 |
6 | if ( typeof define === "function" && define.amd ) {
7 |
8 | // AMD. Register as an anonymous module.
9 | define( [ "../widgets/datepicker" ], factory );
10 | } else {
11 |
12 | // Browser globals
13 | factory( jQuery.datepicker );
14 | }
15 | } )( function( datepicker ) {
16 | "use strict";
17 |
18 | datepicker.regional[ "zh-TW" ] = {
19 | closeText: "關閉",
20 | prevText: "上個月",
21 | nextText: "下個月",
22 | currentText: "今天",
23 | monthNames: [ "一月", "二月", "三月", "四月", "五月", "六月",
24 | "七月", "八月", "九月", "十月", "十一月", "十二月" ],
25 | monthNamesShort: [ "一月", "二月", "三月", "四月", "五月", "六月",
26 | "七月", "八月", "九月", "十月", "十一月", "十二月" ],
27 | dayNames: [ "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六" ],
28 | dayNamesShort: [ "週日", "週一", "週二", "週三", "週四", "週五", "週六" ],
29 | dayNamesMin: [ "日", "一", "二", "三", "四", "五", "六" ],
30 | weekHeader: "週",
31 | dateFormat: "yy/mm/dd",
32 | firstDay: 1,
33 | isRTL: false,
34 | showMonthAfterYear: true,
35 | yearSuffix: "年" };
36 | datepicker.setDefaults( datepicker.regional[ "zh-TW" ] );
37 |
38 | return datepicker.regional[ "zh-TW" ];
39 |
40 | } );
41 |
--------------------------------------------------------------------------------
/ui/i18n/datepicker-zh-CN.js:
--------------------------------------------------------------------------------
1 | /* Chinese initialisation for the jQuery UI date picker plugin. */
2 | /* Written by Cloudream (cloudream@gmail.com). */
3 | ( function( factory ) {
4 | "use strict";
5 |
6 | if ( typeof define === "function" && define.amd ) {
7 |
8 | // AMD. Register as an anonymous module.
9 | define( [ "../widgets/datepicker" ], factory );
10 | } else {
11 |
12 | // Browser globals
13 | factory( jQuery.datepicker );
14 | }
15 | } )( function( datepicker ) {
16 | "use strict";
17 |
18 | datepicker.regional[ "zh-CN" ] = {
19 | closeText: "关闭",
20 | prevText: "上月",
21 | nextText: "下月",
22 | currentText: "今天",
23 | monthNames: [ "一月", "二月", "三月", "四月", "五月", "六月",
24 | "七月", "八月", "九月", "十月", "十一月", "十二月" ],
25 | monthNamesShort: [ "一月", "二月", "三月", "四月", "五月", "六月",
26 | "七月", "八月", "九月", "十月", "十一月", "十二月" ],
27 | dayNames: [ "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六" ],
28 | dayNamesShort: [ "周日", "周一", "周二", "周三", "周四", "周五", "周六" ],
29 | dayNamesMin: [ "日", "一", "二", "三", "四", "五", "六" ],
30 | weekHeader: "周",
31 | dateFormat: "yy-mm-dd",
32 | firstDay: 1,
33 | isRTL: false,
34 | showMonthAfterYear: true,
35 | yearSuffix: "年" };
36 | datepicker.setDefaults( datepicker.regional[ "zh-CN" ] );
37 |
38 | return datepicker.regional[ "zh-CN" ];
39 |
40 | } );
41 |
--------------------------------------------------------------------------------
/ui/i18n/datepicker-zh-HK.js:
--------------------------------------------------------------------------------
1 | /* Chinese initialisation for the jQuery UI date picker plugin. */
2 | /* Written by SCCY (samuelcychan@gmail.com). */
3 | ( function( factory ) {
4 | "use strict";
5 |
6 | if ( typeof define === "function" && define.amd ) {
7 |
8 | // AMD. Register as an anonymous module.
9 | define( [ "../widgets/datepicker" ], factory );
10 | } else {
11 |
12 | // Browser globals
13 | factory( jQuery.datepicker );
14 | }
15 | } )( function( datepicker ) {
16 | "use strict";
17 |
18 | datepicker.regional[ "zh-HK" ] = {
19 | closeText: "關閉",
20 | prevText: "上月",
21 | nextText: "下月",
22 | currentText: "今天",
23 | monthNames: [ "一月", "二月", "三月", "四月", "五月", "六月",
24 | "七月", "八月", "九月", "十月", "十一月", "十二月" ],
25 | monthNamesShort: [ "一月", "二月", "三月", "四月", "五月", "六月",
26 | "七月", "八月", "九月", "十月", "十一月", "十二月" ],
27 | dayNames: [ "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六" ],
28 | dayNamesShort: [ "周日", "周一", "周二", "周三", "周四", "周五", "周六" ],
29 | dayNamesMin: [ "日", "一", "二", "三", "四", "五", "六" ],
30 | weekHeader: "周",
31 | dateFormat: "dd-mm-yy",
32 | firstDay: 0,
33 | isRTL: false,
34 | showMonthAfterYear: true,
35 | yearSuffix: "年" };
36 | datepicker.setDefaults( datepicker.regional[ "zh-HK" ] );
37 |
38 | return datepicker.regional[ "zh-HK" ];
39 |
40 | } );
41 |
--------------------------------------------------------------------------------
/demos/slider/slider-vertical.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Slider - Vertical slider
7 |
8 |
9 |
10 |
23 |
24 |
25 |
26 |
27 | Volume:
28 |
29 |
30 |
31 |
32 |
33 |
34 |
Change the orientation of the slider to vertical. Assign a height value via .height() or by setting the height through CSS, and set the orientation option to "vertical."
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/ui/i18n/datepicker-ko.js:
--------------------------------------------------------------------------------
1 | /* Korean initialisation for the jQuery calendar extension. */
2 | /* Written by DaeKwon Kang (ncrash.dk@gmail.com), Edited by Genie and Myeongjin Lee. */
3 | ( function( factory ) {
4 | "use strict";
5 |
6 | if ( typeof define === "function" && define.amd ) {
7 |
8 | // AMD. Register as an anonymous module.
9 | define( [ "../widgets/datepicker" ], factory );
10 | } else {
11 |
12 | // Browser globals
13 | factory( jQuery.datepicker );
14 | }
15 | } )( function( datepicker ) {
16 | "use strict";
17 |
18 | datepicker.regional.ko = {
19 | closeText: "닫기",
20 | prevText: "이전달",
21 | nextText: "다음달",
22 | currentText: "오늘",
23 | monthNames: [ "1월", "2월", "3월", "4월", "5월", "6월",
24 | "7월", "8월", "9월", "10월", "11월", "12월" ],
25 | monthNamesShort: [ "1월", "2월", "3월", "4월", "5월", "6월",
26 | "7월", "8월", "9월", "10월", "11월", "12월" ],
27 | dayNames: [ "일요일", "월요일", "화요일", "수요일", "목요일", "금요일", "토요일" ],
28 | dayNamesShort: [ "일", "월", "화", "수", "목", "금", "토" ],
29 | dayNamesMin: [ "일", "월", "화", "수", "목", "금", "토" ],
30 | weekHeader: "주",
31 | dateFormat: "yy. m. d.",
32 | firstDay: 0,
33 | isRTL: false,
34 | showMonthAfterYear: true,
35 | yearSuffix: "년" };
36 | datepicker.setDefaults( datepicker.regional.ko );
37 |
38 | return datepicker.regional.ko;
39 |
40 | } );
41 |
--------------------------------------------------------------------------------
/demos/droppable/default.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Droppable - Default functionality
7 |
8 |
9 |
13 |
14 |
25 |
26 |
27 |
28 |
29 |
Drag me to my target
30 |
31 |
32 |
35 |
36 |
37 |
Enable any DOM element to be droppable, a target for draggable elements.
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/tests/unit/dialog/dialog.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Dialog Test Suite
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
30 |
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/ui/disable-selection.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * jQuery UI Disable Selection @VERSION
3 | * https://jqueryui.com
4 | *
5 | * Copyright OpenJS Foundation and other contributors
6 | * Released under the MIT license.
7 | * https://jquery.org/license
8 | */
9 |
10 | //>>label: disableSelection
11 | //>>group: Core
12 | //>>description: Disable selection of text content within the set of matched elements.
13 | //>>docs: https://api.jqueryui.com/disableSelection/
14 |
15 | // This file is deprecated
16 | ( function( factory ) {
17 | "use strict";
18 |
19 | if ( typeof define === "function" && define.amd ) {
20 |
21 | // AMD. Register as an anonymous module.
22 | define( [ "jquery", "./version" ], factory );
23 | } else {
24 |
25 | // Browser globals
26 | factory( jQuery );
27 | }
28 | } )( function( $ ) {
29 | "use strict";
30 |
31 | return $.fn.extend( {
32 | disableSelection: ( function() {
33 | var eventType = "onselectstart" in document.createElement( "div" ) ?
34 | "selectstart" :
35 | "mousedown";
36 |
37 | return function() {
38 | return this.on( eventType + ".ui-disableSelection", function( event ) {
39 | event.preventDefault();
40 | } );
41 | };
42 | } )(),
43 |
44 | enableSelection: function() {
45 | return this.off( ".ui-disableSelection" );
46 | }
47 | } );
48 |
49 | } );
50 |
--------------------------------------------------------------------------------
/demos/resizable/synchronous-resize.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Resizable - Synchronous resize
7 |
8 |
9 |
15 |
16 |
22 |
23 |
24 |
25 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
Resize multiple elements simultaneously by clicking and dragging the sides of one. Pass a shared selector into the alsoResize option.
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/demos/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Demos
7 |
8 |
9 |
10 |
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/tests/unit/button/methods.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "qunit",
3 | "jquery",
4 | "lib/helper",
5 | "ui/widgets/button"
6 | ], function( QUnit, $, helper ) {
7 | "use strict";
8 |
9 | QUnit.module( "Button: methods", { afterEach: helper.moduleAfterEach } );
10 |
11 | QUnit.test( "destroy", function( assert ) {
12 | assert.expect( 1 );
13 | assert.domEqual( "#button", function() {
14 | $( "#button" ).button().button( "destroy" );
15 | } );
16 | } );
17 |
18 | QUnit.test( "refresh: Ensure disabled state is preserved correctly.", function( assert ) {
19 | assert.expect( 3 );
20 |
21 | var element = $( " " );
22 | element.button( { disabled: true } ).button( "refresh" );
23 | assert.ok( element.button( "option", "disabled" ),
24 | "Anchor button should remain disabled after refresh" );
25 |
26 | element = $( " " );
27 | element.button( { disabled: true } ).button( "refresh" );
28 | assert.ok( element.button( "option", "disabled" ), " should remain disabled after refresh" );
29 |
30 | element = $( " " );
31 | element.button( { disabled: true } ).prop( "disabled", false ).button( "refresh" );
32 | assert.ok( !element.button( "option", "disabled" ),
33 | "Changing a 's disabled property should update the state after refresh." );
34 |
35 | } );
36 |
37 | } );
38 |
--------------------------------------------------------------------------------
/demos/resizable/constrain-area.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery UI Resizable - Constrain resize area
7 |
8 |
9 |
15 |
16 |
21 |
22 |
23 |
24 |
30 |
31 |
32 |
Define the boundaries of the resizable area. Use the containment option to specify a parent DOM element or a jQuery selector, like 'document.'
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/tests/visual/addClass/queue.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | addClass Visual Test : Queue
6 |
7 |
23 |
24 |
39 |
40 |
41 |
42 | WHAT: The two boxes animate from black to red to green to blue.
43 | EXPECTED: The first box should start with a delay, the second box should start immediately.
44 |
45 |
46 |
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/tests/unit/dialog/deprecated.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery UI Dialog Test Suite
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
30 |
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/ui/i18n/datepicker-hu.js:
--------------------------------------------------------------------------------
1 | /* Hungarian initialisation for the jQuery UI date picker plugin. */
2 | ( function( factory ) {
3 | "use strict";
4 |
5 | if ( typeof define === "function" && define.amd ) {
6 |
7 | // AMD. Register as an anonymous module.
8 | define( [ "../widgets/datepicker" ], factory );
9 | } else {
10 |
11 | // Browser globals
12 | factory( jQuery.datepicker );
13 | }
14 | } )( function( datepicker ) {
15 | "use strict";
16 |
17 | datepicker.regional.hu = {
18 | closeText: "Bezár",
19 | prevText: "Vissza",
20 | nextText: "Előre",
21 | currentText: "Ma",
22 | monthNames: [ "Január", "Február", "Március", "Április", "Május", "Június",
23 | "Július", "Augusztus", "Szeptember", "Október", "November", "December" ],
24 | monthNamesShort: [ "Jan", "Feb", "Már", "Ápr", "Máj", "Jún",
25 | "Júl", "Aug", "Szep", "Okt", "Nov", "Dec" ],
26 | dayNames: [ "Vasárnap", "Hétfő", "Kedd", "Szerda", "Csütörtök", "Péntek", "Szombat" ],
27 | dayNamesShort: [ "Vas", "Hét", "Ked", "Sze", "Csü", "Pén", "Szo" ],
28 | dayNamesMin: [ "V", "H", "K", "Sze", "Cs", "P", "Szo" ],
29 | weekHeader: "Hét",
30 | dateFormat: "yy.mm.dd.",
31 | firstDay: 1,
32 | isRTL: false,
33 | showMonthAfterYear: true,
34 | yearSuffix: "" };
35 | datepicker.setDefaults( datepicker.regional.hu );
36 |
37 | return datepicker.regional.hu;
38 |
39 | } );
40 |
--------------------------------------------------------------------------------
/ui/i18n/datepicker-eu.js:
--------------------------------------------------------------------------------
1 | /* Karrikas-ek itzulia (karrikas@karrikas.com) */
2 | ( function( factory ) {
3 | "use strict";
4 |
5 | if ( typeof define === "function" && define.amd ) {
6 |
7 | // AMD. Register as an anonymous module.
8 | define( [ "../widgets/datepicker" ], factory );
9 | } else {
10 |
11 | // Browser globals
12 | factory( jQuery.datepicker );
13 | }
14 | } )( function( datepicker ) {
15 | "use strict";
16 |
17 | datepicker.regional.eu = {
18 | closeText: "Egina",
19 | prevText: "Aur",
20 | nextText: "Hur",
21 | currentText: "Gaur",
22 | monthNames: [ "urtarrila", "otsaila", "martxoa", "apirila", "maiatza", "ekaina",
23 | "uztaila", "abuztua", "iraila", "urria", "azaroa", "abendua" ],
24 | monthNamesShort: [ "urt.", "ots.", "mar.", "api.", "mai.", "eka.",
25 | "uzt.", "abu.", "ira.", "urr.", "aza.", "abe." ],
26 | dayNames: [ "igandea", "astelehena", "asteartea", "asteazkena", "osteguna", "ostirala", "larunbata" ],
27 | dayNamesShort: [ "ig.", "al.", "ar.", "az.", "og.", "ol.", "lr." ],
28 | dayNamesMin: [ "ig", "al", "ar", "az", "og", "ol", "lr" ],
29 | weekHeader: "As",
30 | dateFormat: "yy-mm-dd",
31 | firstDay: 1,
32 | isRTL: false,
33 | showMonthAfterYear: false,
34 | yearSuffix: "" };
35 | datepicker.setDefaults( datepicker.regional.eu );
36 |
37 | return datepicker.regional.eu;
38 |
39 | } );
40 |
--------------------------------------------------------------------------------
/ui/i18n/datepicker-he.js:
--------------------------------------------------------------------------------
1 | /* Hebrew initialisation for the UI Datepicker extension. */
2 | /* Written by Amir Hardon (ahardon at gmail dot com). */
3 | ( function( factory ) {
4 | "use strict";
5 |
6 | if ( typeof define === "function" && define.amd ) {
7 |
8 | // AMD. Register as an anonymous module.
9 | define( [ "../widgets/datepicker" ], factory );
10 | } else {
11 |
12 | // Browser globals
13 | factory( jQuery.datepicker );
14 | }
15 | } )( function( datepicker ) {
16 | "use strict";
17 |
18 | datepicker.regional.he = {
19 | closeText: "סגור",
20 | prevText: "הקודם",
21 | nextText: "הבא",
22 | currentText: "היום",
23 | monthNames: [ "ינואר", "פברואר", "מרץ", "אפריל", "מאי", "יוני",
24 | "יולי", "אוגוסט", "ספטמבר", "אוקטובר", "נובמבר", "דצמבר" ],
25 | monthNamesShort: [ "ינו", "פבר", "מרץ", "אפר", "מאי", "יוני",
26 | "יולי", "אוג", "ספט", "אוק", "נוב", "דצמ" ],
27 | dayNames: [ "ראשון", "שני", "שלישי", "רביעי", "חמישי", "שישי", "שבת" ],
28 | dayNamesShort: [ "א'", "ב'", "ג'", "ד'", "ה'", "ו'", "שבת" ],
29 | dayNamesMin: [ "א'", "ב'", "ג'", "ד'", "ה'", "ו'", "שבת" ],
30 | weekHeader: "Wk",
31 | dateFormat: "dd/mm/yy",
32 | firstDay: 0,
33 | isRTL: true,
34 | showMonthAfterYear: false,
35 | yearSuffix: "" };
36 | datepicker.setDefaults( datepicker.regional.he );
37 |
38 | return datepicker.regional.he;
39 |
40 | } );
41 |
--------------------------------------------------------------------------------