]> source.dussan.org Git - jquery-ui.git/log
jquery-ui.git
5 months agoTests: remove code supporting jenkins and testswarm
Timmy Willison [Wed, 15 May 2024 19:19:23 +0000 (15:19 -0400)]
Tests: remove code supporting jenkins and testswarm

Closes gh-2256

6 months agoBuild: Report compressed sizes in compare_size
Michał Gołębiowski-Owczarek [Mon, 20 May 2024 17:00:31 +0000 (19:00 +0200)]
Build: Report compressed sizes in compare_size

Just like it has always worked in Core. This will help with size comparisons
between 1.13 & 1.14.

After this PR:

```
$ grunt sizer
Running "requirejs:js" (requirejs) task

Running "uglify:main" (uglify) task
>> 1 file created 549 kB → 267 kB

Running "compare_size:all" (compare_size) task
   raw     gz Sizes
549319 128757 dist/jquery-ui.js
266710  69612 dist/jquery-ui.min.js

Done.
```

Before, only the less interesting `raw` sizes were reported.

Closes gh-2248
Ref gh-2254

6 months agoBuild: Run tests on jQuery 3.7.1, not 3.7.0
Michał Gołębiowski-Owczarek [Fri, 26 Apr 2024 23:21:15 +0000 (01:21 +0200)]
Build: Run tests on jQuery 3.7.1, not 3.7.0

6 months agoBuild: Updating the main version to 1.13.4-pre.
Michał Gołębiowski-Owczarek [Fri, 26 Apr 2024 15:48:43 +0000 (17:48 +0200)]
Build: Updating the main version to 1.13.4-pre.

6 months agoBuild: Update AUTHORS.txt
Michał Gołębiowski-Owczarek [Fri, 26 Apr 2024 15:36:36 +0000 (17:36 +0200)]
Build: Update AUTHORS.txt

6 months agoDocs: Update leftover HTTP Trac URLs to HTTPS
Michał Gołębiowski-Owczarek [Fri, 26 Apr 2024 15:28:11 +0000 (17:28 +0200)]
Docs: Update leftover HTTP Trac URLs to HTTPS

6 months agoBuild: Update download.jqueryui.com from 2.2.12 to 2.2.14
Michał Gołębiowski-Owczarek [Fri, 26 Apr 2024 15:22:46 +0000 (17:22 +0200)]
Build: Update download.jqueryui.com from 2.2.12 to 2.2.14

6 months agoDocs: Change a few most common domains from HTTP to HTTPS
Michał Gołębiowski-Owczarek [Fri, 26 Apr 2024 14:25:34 +0000 (16:25 +0200)]
Docs: Change a few most common domains from HTTP to HTTPS

Also, update a few stale URLs to what they redirect now to.

Closes gh-2244

6 months agoUpdate custom_render.html (#2242)
mark van tilburg [Thu, 25 Apr 2024 21:53:11 +0000 (23:53 +0200)]
Update custom_render.html (#2242)

This fixes mixed content errors on the selectmenu demo page at jqueryui.com.

Closes gh-2242

7 months agoBuild: Update release dependencies
Michał Gołębiowski-Owczarek [Mon, 22 Apr 2024 16:08:44 +0000 (18:08 +0200)]
Build: Update release dependencies

In particular, the `node-packager` update is required for the release process
to work on newer Node.js versions.

Closes gh-2239

7 months agoDocs: remove a duplicated "be" in an accordion demo
divdeploy [Fri, 12 Apr 2024 15:12:36 +0000 (23:12 +0800)]
Docs: remove a duplicated "be" in an accordion demo

Closes gh-2233

Signed-off-by: divdeploy <chenguangxue@outlook.com>
7 months agoTests: Skip a problematic keyboard test in IE with jQuery 3.6
Michał Gołębiowski-Owczarek [Fri, 12 Apr 2024 13:23:31 +0000 (15:23 +0200)]
Tests: Skip a problematic keyboard test in IE with jQuery 3.6

jQuery 3.6 has issues with focus handling in IE which breaks this test.
The issues were fixed in jQuery 3.7, so we just accept them here.

Closes gh-2231

7 months agoTests: Increase robustness of a draggable `revert` test
Michał Gołębiowski-Owczarek [Fri, 12 Apr 2024 13:23:05 +0000 (15:23 +0200)]
Tests: Increase robustness of a draggable `revert` test

One of the changes is increasing `revertDuration` from 200 to 300. For some
reason, when jQuery 3.1 is used in an iframe (which TestSwarm uses) the timings
are lower than expected and `setTimeout` too slow and the check for animation
happens too late.

Closes gh-2230

7 months agoTests: Workaround a jQuery 1.8 issue with one dialog test
Michał Gołębiowski-Owczarek [Fri, 12 Apr 2024 13:22:05 +0000 (15:22 +0200)]
Tests: Workaround a jQuery 1.8 issue with one dialog test

The test "#8958: dialog can be opened while opening" had special behavior in
jQuery 1.8 and the patch from commit 7adb13ac7c30a7ba33f1db256952be77b9e7a310
broke those assumptions. Adjust the test so that it passes again.

Closes gh-2229

7 months agoBuild: Update jquery-3.x to point to 3.7.1 instead of 3.7.0
Michał Gołębiowski-Owczarek [Fri, 12 Apr 2024 13:21:39 +0000 (15:21 +0200)]
Build: Update jquery-3.x to point to 3.7.1 instead of 3.7.0

Closes gh-2228

7 months agoTests: align test runner with other repos
Timmy Willison [Tue, 9 Apr 2024 17:31:27 +0000 (13:31 -0400)]
Tests: align test runner with other repos

Close gh-2234

7 months agoBuild(deps): Bump actions/checkout from 4.1.1 to 4.1.2
dependabot[bot] [Tue, 2 Apr 2024 21:47:54 +0000 (23:47 +0200)]
Build(deps): Bump actions/checkout from 4.1.1 to 4.1.2

Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.1 to 4.1.2.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/b4ffde65f46336ab88eb53be808477a3936bae11...9bb56186c3b09b4f86b1c65136769dd318469633)

Closes gh-2224

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
7 months agoBuild(deps-dev): Bump express from 4.19.1 to 4.19.2
dependabot[bot] [Fri, 29 Mar 2024 16:22:11 +0000 (17:22 +0100)]
Build(deps-dev): Bump express from 4.19.1 to 4.19.2

Bumps [express](https://github.com/expressjs/express) from 4.19.1 to 4.19.2.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.19.1...4.19.2)

Closes gh-2223

---
updated-dependencies:
- dependency-name: express
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
7 months agoTests: replace grunt-contrib-qunit with jQuery test runner
Timmy Willison [Fri, 29 Mar 2024 13:13:46 +0000 (09:13 -0400)]
Tests: replace grunt-contrib-qunit with jQuery test runner

- add filestash workflow

Close gh-2221

7 months agoTests: Fix tests with the Git Core build
Michał Gołębiowski-Owczarek [Tue, 26 Mar 2024 15:17:00 +0000 (16:17 +0100)]
Tests: Fix tests with the Git Core build

jQuery PR jquery/jquery#5452 removed special handling of boolean attributes.
Thankfully, this only broke a single jQuery UI test.

Closes gh-2220

9 months agoBuild(deps): Bump actions/cache from 3 to 4
dependabot[bot] [Sat, 3 Feb 2024 00:47:27 +0000 (01:47 +0100)]
Build(deps): Bump actions/cache from 3 to 4

Bumps [actions/cache](https://github.com/actions/cache) from 3 to 4.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v3...v4)

Closes gh-2210

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
10 months agodemos: Replace search.php with $.ajaxTransport() mock
Timo Tijhof [Wed, 3 Jan 2024 00:31:36 +0000 (00:31 +0000)]
demos: Replace search.php with $.ajaxTransport() mock

Fixes jquery/jqueryui.com#203
Closes gh-2187

12 months agoBuild: Change Node tested versions from 10/16/18 to 10/18/20
Michał Gołębiowski-Owczarek [Mon, 6 Nov 2023 13:03:51 +0000 (14:03 +0100)]
Build: Change Node tested versions from 10/16/18 to 10/18/20

Closes gh-2195

12 months agoBuild(deps): Bump actions/setup-node from 3 to 4
dependabot[bot] [Mon, 6 Nov 2023 12:39:19 +0000 (13:39 +0100)]
Build(deps): Bump actions/setup-node from 3 to 4

Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3 to 4.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v3...v4)

Closes gh-2193

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
13 months agoBuild(deps): Bump actions/checkout from 3 to 4
dependabot[bot] [Wed, 4 Oct 2023 15:09:56 +0000 (17:09 +0200)]
Build(deps): Bump actions/checkout from 3 to 4

Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

Closes gh-2188

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
18 months agoBuild: Add jQuery 3.7.0
Michał Gołębiowski-Owczarek [Thu, 11 May 2023 22:48:38 +0000 (00:48 +0200)]
Build: Add jQuery 3.7.0

18 months agoTests: Workaround IE issues in qunit-assert-domequal
Michał Gołębiowski-Owczarek [Wed, 10 May 2023 12:46:30 +0000 (14:46 +0200)]
Tests: Workaround IE issues in qunit-assert-domequal

In IE, `option` elements may have different initial `option` colors.
They may initially all be transparent, but later the selected
option gets a blue background with white text; we now ignore it.

The logic of `qunit-assert-domequal` was also fixed to use the same
method of fetching styles in all browsers; IE used to get a legacy
one meant for IE <9 due to a mistake in the performed check.

18 months agoTests: Make resizable tests a bit more forgiving
Michał Gołębiowski-Owczarek [Wed, 10 May 2023 11:47:20 +0000 (13:47 +0200)]
Tests: Make resizable tests a bit more forgiving

18 months agoTests: Workaround a dialog test issue by a proper cleanup
Michał Gołębiowski-Owczarek [Wed, 10 May 2023 11:39:56 +0000 (13:39 +0200)]
Tests: Workaround a dialog test issue by a proper cleanup

The `#favorite-animal` focus & blur handlers used to not be cleaned up after
the test automatically, leading to issues with some jQuery versions.

18 months agoTests: Fix selectmenu width tests in Firefox with jQuery 3.0 & 3.1
Michał Gołębiowski-Owczarek [Wed, 10 May 2023 08:56:02 +0000 (10:56 +0200)]
Tests: Fix selectmenu width tests in Firefox with jQuery 3.0 & 3.1

jQuery 3.0 & 3.1 used `getBoundingClientRect()` in its `width`/`height`
calculations and that causes minor differences in fractional width computations.
Allow a tiny delta in tests to fix those tests breaking in Firefox.

Ref jquery/jquery#3561
Closes gh-2159

18 months agoDialog: Fix IE tests about interactions with other dialogs
Michał Gołębiowski-Owczarek [Wed, 10 May 2023 08:55:40 +0000 (10:55 +0200)]
Dialog: Fix IE tests about interactions with other dialogs

The workaround triggering a second delayed focus to a tabbable element was
applied in jQueries 3.4 & 3.5 to fix IE issues. It also needs to be applied
in jQuery 3.6 which this commit adds.

This will no longer be needed in jQuery 3.7 and jQuery 3.x-git tests are
already passing because of that.

Closes gh-2160

18 months agoSelectmenu: Fix selecting options following hidden ones
Michał Gołębiowski-Owczarek [Wed, 10 May 2023 08:55:01 +0000 (10:55 +0200)]
Selectmenu: Fix selecting options following hidden ones

Change a2b25ef6caae3e1a272214839b815a6387618124 made options with
the `hidden` attribute skipped when rendering. However, that makes
indexes misaligned with native options as hidden ones maintain their
index values. Instead, don't skip hidden options but add the `hidden`
attribute to the respective jQuery UI elements as well.

Fixes gh-2082
Closes gh-2144
Ref a2b25ef6caae3e1a272214839b815a6387618124

18 months agoBuild: Add jQuery 3.6.4, update Migrate to 3.4.1
Michał Gołębiowski-Owczarek [Wed, 10 May 2023 08:54:31 +0000 (10:54 +0200)]
Build: Add jQuery 3.6.4, update Migrate to 3.4.1

Closes gh-2161

18 months agoBuild: Fork vendors to remove QUnit deprecated API usage
Michał Gołębiowski-Owczarek [Thu, 30 Mar 2023 07:56:33 +0000 (09:56 +0200)]
Build: Fork vendors to remove QUnit deprecated API usage

Changes:
* add `tests/lib/vendor/**/*` to `.eslintignore`
* move `qunit-composite` to `tests/lib` so that we can modify it
* move `qunit-assert-classes` to `tests/lib` so that we can modify it
* move `qunit-assert-close` to `tests/lib` so that we can modify it
* replace `assert.push` with `assert.pushResult`
* remove usage of `QUnit.extend`

Closes gh-2157

18 months agoBuild: Update dependencies, including QUnit 1 -> 2
Michał Gołębiowski-Owczarek [Tue, 28 Mar 2023 22:29:28 +0000 (00:29 +0200)]
Build: Update dependencies, including QUnit 1 -> 2

Also, fix htmllint lang exclusion patterns.

Ref gh-2157

18 months agoBuild: Stop using ::set-output in GitHub Actions
Michał Gołębiowski-Owczarek [Thu, 30 Mar 2023 08:17:02 +0000 (10:17 +0200)]
Build: Stop using ::set-output in GitHub Actions

The `set-output` workflow is deprecated in favor of using environment
variables, see:
https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

18 months agoTests: Make Puppeter really fire Chrome on macOS
Michał Gołębiowski-Owczarek [Thu, 30 Mar 2023 07:59:42 +0000 (09:59 +0200)]
Tests: Make Puppeter really fire Chrome on macOS

Also, workaround issues with QUnit Chrome bridge: the Chrome bridge
from `grunt-contrib-qunit` is now getting injected into every single
iframe, including an empty one that has no intention of running QUnit
tests. Since that bridge requires QUnit, it fails with an error
in such cases. Workaround the issue by wrapping the bridge in
another function that bails early if QUnit is not defined.

Ref gh-2157

18 months agoBuild: Test on Node 10, 16 & 18; fix CI in Node <16
Michał Gołębiowski-Owczarek [Wed, 29 Mar 2023 22:21:25 +0000 (00:21 +0200)]
Build: Test on Node 10, 16 & 18; fix CI in Node <16

Ref gh-2157

18 months agoTests: Switch from QUnit.jsDump to QUnit.dump
Michał Gołębiowski-Owczarek [Tue, 28 Mar 2023 22:30:06 +0000 (00:30 +0200)]
Tests: Switch from QUnit.jsDump to QUnit.dump

`QUnit.jsDump` was renamed to `QUnit.dump` in QUnit 2.0.

Ref gh-2157

18 months agoTests: Fix tooltip tests by destroying tooltips
Michał Gołębiowski-Owczarek [Thu, 30 Mar 2023 08:09:12 +0000 (10:09 +0200)]
Tests: Fix tooltip tests by destroying tooltips

Some tests were not properly destroying tooltips which made tests
start to fail with the new QUnit.

Ref gh-2157

18 months agoDemos:Tests: Avoid self-closing HTML tags
Michał Gołębiowski-Owczarek [Tue, 28 Mar 2023 22:18:07 +0000 (00:18 +0200)]
Demos:Tests: Avoid self-closing HTML tags

Self-closing tags are reported by newer versions of the htmllint
Grunt plugin. They also don't make sense in our HTML files
since they are not XHTML-compliant and they run in HTML mode
anyway.

Ref gh-2157

19 months agoTests: Test only valid values for Datepicker defaultDate, min/maxDate
Kenneth DeBacker [Thu, 30 Mar 2023 11:05:41 +0000 (07:05 -0400)]
Tests: Test only valid values for Datepicker defaultDate, min/maxDate

The docs say that valid periods when using string value and
period pairs as relative dates are "y", "m", "w", and "d"
https://api.jqueryui.com/datepicker/

Closes gh-2143

22 months agoDocs: Add a maintenance mode info to README
Michał Gołębiowski-Owczarek [Sun, 15 Jan 2023 22:14:28 +0000 (23:14 +0100)]
Docs: Add a maintenance mode info to README

Closes gh-2150

22 months agoBuild: Add jQuery 3.6.1-3.6.3, update Migrate to 3.4.0
Michał Gołębiowski-Owczarek [Sun, 15 Jan 2023 20:41:18 +0000 (21:41 +0100)]
Build: Add jQuery 3.6.1-3.6.3, update Migrate to 3.4.0

23 months agoDemos: Optimize PNG files
Дилян Палаузов [Tue, 20 Dec 2022 20:50:16 +0000 (22:50 +0200)]
Demos: Optimize PNG files

Optimization done by calling:

    for i in `find -name '*.png'`; do optipng -o7 -zm9 $i; done

Closes gh-2132

23 months agoDemos: Better wording for the purposefully broken tab
DeerBear [Tue, 6 Dec 2022 22:27:33 +0000 (23:27 +0100)]
Demos: Better wording for the purposefully broken tab

Fix both grammar and punctuation in one tabs demo.

Closes gh-2139

23 months agoBuild: Set minimum permission for GitHub Actions Token
Ashish Kurmi [Thu, 1 Dec 2022 12:53:34 +0000 (04:53 -0800)]
Build: Set minimum permission for GitHub Actions Token

Closes gh-2129

Signed-off-by: Ashish Kurmi <akurmi@stepsecurity.io>
2 years agoResizable: Fix resizing of elems with `box-sizing: border-box`
Matías Cánepa [Mon, 10 Oct 2022 09:00:50 +0000 (06:00 -0300)]
Resizable: Fix resizing of elems with `box-sizing: border-box`

Fixes gh-1979
Closes gh-2012

2 years agoCore: Fix dependencies in ui/core.js
Michał Gołębiowski-Owczarek [Thu, 18 Aug 2022 11:28:26 +0000 (13:28 +0200)]
Core: Fix dependencies in ui/core.js

The `jquery-patch` reference was included with the `.js` extension which is
not allowed in AMD.

Fixes gh-2107
Closes gh-2109

2 years agoDocs: Add a security policy in SECURITY.md
Michał Gołębiowski-Owczarek [Tue, 19 Jul 2022 18:59:15 +0000 (20:59 +0200)]
Docs: Add a security policy in SECURITY.md

This is needed so that people know how to report security issues.

Closes gh-2103

2 years agoAll: Update JS Foundation mentions to OpenJS Foundation
Michał Gołębiowski-Owczarek [Tue, 19 Jul 2022 07:36:55 +0000 (09:36 +0200)]
All: Update JS Foundation mentions to OpenJS Foundation

Closes gh-2104

2 years agoBuild: Updating the main version to 1.13.3-pre.
Michał Gołębiowski-Owczarek [Thu, 14 Jul 2022 19:13:21 +0000 (21:13 +0200)]
Build: Updating the main version to 1.13.3-pre.

2 years agoCheckboxradio: Don't re-evaluate text labels as HTML
Michał Gołębiowski-Owczarek [Thu, 14 Jul 2022 18:52:02 +0000 (20:52 +0200)]
Checkboxradio: Don't re-evaluate text labels as HTML

If you generate a Checkboxradio from a checkbox/radio with a label that
contains encoded HTML, e.g. `&lt;em&gt;test&lt;/em&gt;` this will work fine
at first. If, however a refresh is triggered on that instance (explicitly or
e.g. by turning it into a `Controlgroup`), the previously escaped HTML will
now be evaluated.

If the label was created based on some user input, this could lead to
unexpected code execution even though the initial output was escaped.

Fixes gh-2101
Closes gh-2102

2 years agoAll: Remove deprecated .click() usage in demos/tests
Michał Gołębiowski-Owczarek [Thu, 14 Jul 2022 18:34:29 +0000 (20:34 +0200)]
All: Remove deprecated .click() usage in demos/tests

2 years agoBuild: Update AUTHORS.txt
Michał Gołębiowski-Owczarek [Thu, 14 Jul 2022 17:54:38 +0000 (19:54 +0200)]
Build: Update AUTHORS.txt

2 years agoDatepicker: Capitalize some Indonesian words
Denny Septian Panggabean [Thu, 14 Jul 2022 17:53:59 +0000 (00:53 +0700)]
Datepicker: Capitalize some Indonesian words

Closes gh-2067

2 years agoSelectmenu: Remove a call to the deprecated .focus() method
James Hinderks [Thu, 14 Jul 2022 17:43:16 +0000 (13:43 -0400)]
Selectmenu: Remove a call to the deprecated .focus() method

Replaces a call to the deprecated jQuery `.focus()` method
with `.trigger("focus")`.

Closes gh-2053

2 years agoBuild: Update AUTHORS.txt
Michał Gołębiowski-Owczarek [Thu, 14 Jul 2022 17:07:27 +0000 (19:07 +0200)]
Build: Update AUTHORS.txt

2 years agoDatepicker: Add missing localization for prevText and nextText
Felix Nagel [Sat, 9 Jul 2022 00:03:20 +0000 (02:03 +0200)]
Datepicker: Add missing localization for prevText and nextText

Fixes gh-2048
Closes gh-2050
Closes gh-2100

2 years agoDatepicker: Remove symbols in localization
Felix Nagel [Fri, 8 Jul 2022 00:51:48 +0000 (02:51 +0200)]
Datepicker: Remove symbols in localization

Follow-up to dfff5e7e999453f5d080c184bd4e3fdbfc93b83e

Fixes gh-2048
Closes gh-2050

2 years agoDatepicker: Remove symbols in localization
Adam Lidén Hällgren [Fri, 11 Feb 2022 15:33:27 +0000 (16:33 +0100)]
Datepicker: Remove symbols in localization

Fixes gh-2048
Closes gh-2050
Ref gh-2067

2 years agoBuild(deps): Bump actions/checkout from 2 to 3
dependabot[bot] [Mon, 11 Jul 2022 10:22:26 +0000 (12:22 +0200)]
Build(deps): Bump actions/checkout from 2 to 3

Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

Closes gh-2098

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBuild(deps): Bump actions/cache from 2 to 3
dependabot[bot] [Mon, 11 Jul 2022 10:17:24 +0000 (12:17 +0200)]
Build(deps): Bump actions/cache from 2 to 3

Bumps [actions/cache](https://github.com/actions/cache) from 2 to 3.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v2...v3)

Closes gh-2097

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBuild(deps): Bump actions/setup-node from 1 to 3
dependabot[bot] [Mon, 11 Jul 2022 10:17:01 +0000 (12:17 +0200)]
Build(deps): Bump actions/setup-node from 1 to 3

Bumps [actions/setup-node](https://github.com/actions/setup-node) from 1 to 3.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v1...v3)

Closes gh-2096

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBuild: Add dependabot.yml config (GitHub Actions)
Christian Oliff [Wed, 29 Jun 2022 13:14:31 +0000 (22:14 +0900)]
Build: Add dependabot.yml config (GitHub Actions)

Closes gh-2093
Ref jquery/jquery#5057

2 years agoBuild: Update Grunt to resolve CVE-2022-1537
Michał Gołębiowski-Owczarek [Wed, 22 Jun 2022 10:58:05 +0000 (12:58 +0200)]
Build: Update Grunt to resolve CVE-2022-1537

More details:
https://github.com/advisories/GHSA-rm36-94g8-835r

Fixes gh-2090
Closes gh-2091

2 years agoBuild: Include all the files published to the CDN in npm/Bower packages
Michał Gołębiowski-Owczarek [Wed, 23 Mar 2022 11:05:10 +0000 (12:05 +0100)]
Build: Include all the files published to the CDN in npm/Bower packages

Both unminified & minified versions of JS & CSS files are included, for all
themes, as well as images.

Fixes gh-2011
Closes gh-2059

2 years agoBuild: Updating the main version to 1.13.2-pre.
Michał Gołębiowski-Owczarek [Thu, 20 Jan 2022 13:04:17 +0000 (14:04 +0100)]
Build: Updating the main version to 1.13.2-pre.

2 years agoBuild: Update some npm dependencies
Michał Gołębiowski-Owczarek [Thu, 20 Jan 2022 12:29:50 +0000 (13:29 +0100)]
Build: Update some npm dependencies

Unfortunately, we cannot update all of them to their latest versions as some
of them now require Node.js 12 and we need to be able to build on Node 10 as
that's what our Jenkins runs.

2 years agoWidget: Optimize attachment of the _untrackClassesElement listener
Michał Gołębiowski-Owczarek [Sat, 15 Jan 2022 00:26:23 +0000 (01:26 +0100)]
Widget: Optimize attachment of the _untrackClassesElement listener

jQuery UI 1.13.0 changed the logic attaching the `_untrackClassesElement`
listener in the `_classes` widget method; one of the side effects was calling
`this._on` for each node that needed the listener. That caused a severe
performance degradation for large comboboxes as each `_on` jQuery UI call
causes a jQuery `add` call that calls Sizzle's `uniqueSort` underneath.

Instead, collect the nodes that need the listener and then, outside of the loop,
create a jQuery object out of them and attach the listener once. That's still
slower than the jQuery 1.12 version but only slightly: 936 ms to 1.03s on a very
large list on a recent MacBook Pro, compared to ~30 seconds before this patch.

Fixes gh-2014
Closes gh-2037

2 years agoBuild: Add Felix to .mailmap, update AUTHORS.txt
Michał Gołębiowski-Owczarek [Sat, 15 Jan 2022 00:26:00 +0000 (01:26 +0100)]
Build: Add Felix to .mailmap, update AUTHORS.txt

Beyond the `AUTHORS.txt` changes, this accounts for a recent email change in
one of the commits.

Closes gh-2039

2 years agoAutocomplete: Rewrite with a delay instead of appending the live region
Ben Mullins [Wed, 5 Jan 2022 10:35:34 +0000 (05:35 -0500)]
Autocomplete: Rewrite with a delay instead of appending the live region

This fixes the issue caused by https://bugs.jqueryui.com/ticket/9357.
We now empty the live region instead of appending to it, and we do so
after a brief timeout so the live region isn't updated on every mousemove
event or when quickly traversing through options.

Fixes gh-2002
Closes gh-2031

2 years agoBuild: Add extra Github action job for PR required checks configuration
Felix Nagel [Fri, 3 Dec 2021 18:27:15 +0000 (19:27 +0100)]
Build: Add extra Github action job for PR required checks configuration

2 years agoBuild: Switch from Travis to GitHub actions
Felix Nagel [Tue, 30 Nov 2021 15:47:11 +0000 (16:47 +0100)]
Build: Switch from Travis to GitHub actions

Closes gh-2021

3 years agoWidget: Make contextless widget construction work
Michał Gołębiowski-Owczarek [Thu, 18 Nov 2021 23:47:56 +0000 (00:47 +0100)]
Widget: Make contextless widget construction work

Due to the fact the widget factory code is now in strict mode, the check for
being called without using the `new` keyword started breaking if you save the
widget constructor to a variable before calling it:
```js
var customWidget = $.custom.customWidget;
customWidget( {}, elem );
```
as then `this` is undefined and checking for `this._createWidget` crashes.
Account for that with an additional check.

Fixes gh-2015
Closes gh-2019

3 years agoSortable: Fix positioning when moving a Draggable item into a Sortable
Michał Gołębiowski-Owczarek [Mon, 15 Nov 2021 17:39:25 +0000 (18:39 +0100)]
Sortable: Fix positioning when moving a Draggable item into a Sortable

PR gh-1793 removed setting `this.offset.parent` in the Draggable
`refreshPositions` method which broke position calculations when moving
a Draggable item into a connected Sortable. restore that assignment.

Ref gh-1793
Fixes gh-2001
Closes gh-2009

3 years agoSortable: Allow 0-height containers to be sortable as in 1.12.1
Michał Gołębiowski-Owczarek [Mon, 8 Nov 2021 17:21:03 +0000 (18:21 +0100)]
Sortable: Allow 0-height containers to be sortable as in 1.12.1

Note that container specific events will not fire when the dragged element
is interacting with zero height containers.

Fixes gh-1998
Closes gh-2008

Co-authored-by: A. Wells <borgboyone@users.noreply.github.com>
3 years agoTooltip: Don't crash on empty content
Josep Sanz [Mon, 8 Nov 2021 10:53:45 +0000 (11:53 +0100)]
Tooltip: Don't crash on empty content

Commit 1f2011ece removed a `try-catch` around triggering the `remove` handlers
in the `jQuery.cleanData` override. The `try-catch` was meant for old IE but it was
also catching an error coming from the tooltip `remove` handler depending on
being able to find a relevant tooltip. The `_find` method returns `null`, though,
when the tooltip cotent is empty.

Instead of restoring the `try-catch`, handle the `null` case in the `remove` handler.

Fixes gh-1990
Closes gh-1994

Co-authored-by: Claas Augner <github@caugner.de>
Co-authored-by: Michał Gołębiowski-Owczarek <m.goleb@gmail.com>
3 years agoDocs: Update the bug tracker from bugs.jqueryui.com to GitHub
Michał Gołębiowski-Owczarek [Thu, 7 Oct 2021 14:48:39 +0000 (16:48 +0200)]
Docs: Update the bug tracker from bugs.jqueryui.com to GitHub

Also, remove the Weekly Meetings section from README as the meetings are no
longer happening.

Closes gh-1972

3 years agoBuild: Updating the main version to 1.13.1-pre.
Michał Gołębiowski-Owczarek [Thu, 7 Oct 2021 14:21:24 +0000 (16:21 +0200)]
Build: Updating the main version to 1.13.1-pre.

3 years agoTests: Take development jQuery versions from releases.jquery.com
Michał Gołębiowski-Owczarek [Wed, 29 Sep 2021 17:07:43 +0000 (19:07 +0200)]
Tests: Take development jQuery versions from releases.jquery.com

code.jquery.com is now used just for the specific versions.

3 years agoTests: Load the TestSwarm listener via HTTPS
Michał Gołębiowski-Owczarek [Wed, 29 Sep 2021 15:22:17 +0000 (17:22 +0200)]
Tests: Load the TestSwarm listener via HTTPS

3 years agoRelease: Update the download.jqueryui.com dependency
Michał Gołębiowski-Owczarek [Mon, 27 Sep 2021 13:13:30 +0000 (15:13 +0200)]
Release: Update the download.jqueryui.com dependency

3 years agoTheme: Revert three theme commits that are causing styling issues (#1983)
Michał Gołębiowski-Owczarek [Sat, 25 Sep 2021 22:03:44 +0000 (00:03 +0200)]
Theme: Revert three theme commits that are causing styling issues (#1983)

* Revert "Theme: Removes css for ui-state-checked its not used any more"

This reverts commit 1b0e947f46bc1261b15816f2dcbd239d83a86335.

* Revert "Theme: Replace missing definition for default icons"

This reverts commit dde9b83df61d1d676e66cb2a2f7970dd44a05137.

* Revert "Theme: Switch icon background to use bgColorContent"

This reverts commit 265b8f5e533923b9b4c9cbd9f1dd7b7785423381.

This reverts three commits:

* Theme: Removes css for ui-state-checked its not used any more https://github.com/jquery/jquery-ui/commit/1b0e947f46bc1261b15816f2dcbd239d83a86335 (https://github.com/jquery/jquery-ui/pull/1753)
* Theme: Replace missing definition for default icons https://github.com/jquery/jquery-ui/commit/dde9b83df61d1d676e66cb2a2f7970dd44a05137
* Theme: Switch icon background to use bgColorContent https://github.com/jquery/jquery-ui/commit/265b8f5e533923b9b4c9cbd9f1dd7b7785423381

which caused styling issues when compared to UI 1.12.1.

This unfixes a few issues:

* https://github.com/jquery/download.jqueryui.com/issues/335
* https://bugs.jqueryui.com/ticket/15059
* https://forum.jquery.com/topic/checkboxradio-widget-checkbox-click-doesn-t-work-with-ui-lightness-theme-22-9-2016

However, old & known issues are better than new & unknown ones, especially with our current very limited resources.

Closes gh-1983

3 years agoTheme: Fix blank icons having a background
Michał Gołębiowski-Owczarek [Sat, 25 Sep 2021 19:20:06 +0000 (21:20 +0200)]
Theme: Fix blank icons having a background

A fix from 43254468de7d69b5422e667ba7ebbe864fc34a63 introduced a rule setting
`background-image` of a blank icon to none. However, the selector used for that
rule had lower specificity than another one: `.ui-button .ui-icon` which caused
dashes being shown over the icons.

We needed to increase the specificity of the `.ui-icon-blank` rule past the
above selector and past `.ui-button:hover .ui-icon`. We're doing it by repeating
the class name three times.

Closes gh-1987

3 years agoBuild: Require jQuery `>=1.8.0 <4.0.0`, not `>=1.6` in bower.json
Michał Gołębiowski-Owczarek [Fri, 24 Sep 2021 17:01:05 +0000 (19:01 +0200)]
Build: Require jQuery `>=1.8.0 <4.0.0`, not `>=1.6` in bower.json

3 years agoDocs: Update jQuery used for demos to 3.6.0
Michał Gołębiowski-Owczarek [Fri, 24 Sep 2021 17:02:05 +0000 (19:02 +0200)]
Docs: Update jQuery used for demos to 3.6.0

jQuery 1.12.4 misses some Core APIs that jQuery UI depends on and that are not
polyfilled in demos.

3 years agoTests: Update the default jQuery version from 1.12.4 to 3.6.0
Michał Gołębiowski-Owczarek [Fri, 30 Jul 2021 10:45:16 +0000 (12:45 +0200)]
Tests: Update the default jQuery version from 1.12.4 to 3.6.0

3 years agoEffect: Define the jQuery variable before jQuery Color gets imported
Michał Gołębiowski-Owczarek [Fri, 3 Sep 2021 12:42:30 +0000 (14:42 +0200)]
Effect: Define the jQuery variable before jQuery Color gets imported

We need to create a local jQuery because jQuery Color relies on it and the
global may not exist with AMD and a custom build (trac-10199). This worked
in UI 1.12 but stopped in 1.13 as jQuery Color is now sourced as an AMD module
and the variable started being defined after jQuery Color code. To restore the
proper order, move the variable declaration to a separate small module loaded
before jQuery Color.

Closes gh-1973

3 years agoRelease: Update the download.jqueryui.com dependency
Michał Gołębiowski-Owczarek [Thu, 2 Sep 2021 15:17:50 +0000 (17:17 +0200)]
Release: Update the download.jqueryui.com dependency

The latest version contains small tweaks to the "use strict" pragma placement.

3 years agoBuild: Update npm dependencies
Michał Gołębiowski-Owczarek [Thu, 2 Sep 2021 14:05:31 +0000 (16:05 +0200)]
Build: Update npm dependencies

3 years agoRelease: Update the download.jqueryui.com dependency
Michał Gołębiowski-Owczarek [Thu, 26 Aug 2021 11:41:10 +0000 (13:41 +0200)]
Release: Update the download.jqueryui.com dependency

This is needed to make `"use strict"` pragmas not stripped out during the
build.

Closes gh-1969

3 years agoDocs: Update removal comments to mention 1.14, not 1.13
Michał Gołębiowski-Owczarek [Thu, 26 Aug 2021 11:36:06 +0000 (13:36 +0200)]
Docs: Update removal comments to mention 1.14, not 1.13

We're not removing any deprecated API or legacy browser support in 1.13,
re-target comments to mention 1.14.

It's not guaranteed 1.14 will ever get released but if it will, it sounds like
a good moment to do those removals.

Closes gh-1970

3 years agoRelease: Update the download.jqueryui.com dependency
Michał Gołębiowski-Owczarek [Fri, 6 Aug 2021 14:56:51 +0000 (16:56 +0200)]
Release: Update the download.jqueryui.com dependency

3 years agoRelease: Abort on packager errors
Michał Gołębiowski-Owczarek [Fri, 6 Aug 2021 13:07:00 +0000 (15:07 +0200)]
Release: Abort on packager errors

3 years agoRelease: Update dependencies for the 1.13 release
Michał Gołębiowski-Owczarek [Thu, 5 Aug 2021 14:18:48 +0000 (16:18 +0200)]
Release: Update dependencies for the 1.13 release

Closes gh-1966

3 years agoBuild: Don't save temporary npm dependencies to package.json
Michał Gołębiowski-Owczarek [Thu, 5 Aug 2021 11:06:18 +0000 (13:06 +0200)]
Build: Don't save temporary npm dependencies to package.json

Past npm versions required the `--save` flag to save anything in `package.json`
when installing packages but newer ones do this by default. Pass `--no-save` to
restore the original behavior in the `release-test.js` script.

Ref gh-1966

3 years agoBuild: Don't publish dist/cdn to npm
Michał Gołębiowski-Owczarek [Wed, 4 Aug 2021 20:57:11 +0000 (22:57 +0200)]
Build: Don't publish dist/cdn to npm

3 years agoBuild: Update dependencies passed to jquery-release
Michał Gołębiowski-Owczarek [Wed, 4 Aug 2021 16:03:46 +0000 (18:03 +0200)]
Build: Update dependencies passed to jquery-release

The older versions were not compatible with Node.js 10 & newer.

Closes gh-1963

3 years agoDocs: Update AUTHORS.txt
Michał Gołębiowski-Owczarek [Wed, 4 Aug 2021 15:39:54 +0000 (17:39 +0200)]
Docs: Update AUTHORS.txt

Closes gh-1964