aboutsummaryrefslogtreecommitdiffstats
path: root/ui
Commit message (Collapse)AuthorAgeFilesLines
* Datepicker: Add option for onUpdateDatepicker callbackPatrick McKay2021-05-211-1/+7
| | | | | | Add a new option named onUpdateDatepicker that allows a custom callback to be provided. If provided, the callback is called at the end of $.datepicker._updateDatepicker.
* Fix: Adapt datpicker.js for a11yMikolaj Wolicki2021-05-151-4/+9
|
* All: Drop $.ui.escapeSelector in favor of $.escapeSelectorMichał Gołębiowski-Owczarek2021-05-146-29/+35
| | | | Fixes #14991 Closes gh-1957
* Datepicker: Make sure text option are text, shorten HTML stringsMichał Gołębiowski-Owczarek2021-05-121-21/+115
| | | | | | | | Instead of using enormous HTML strings, various elements are now constructed using jQuery APIs. This makes it more obvious user-provided data is used correctly. Fixes #15284 Closes gh-1953
* Position: Make sure `of` is treated as a CSS selectorMichał Gołębiowski-Owczarek2021-05-041-1/+6
| | | Closes gh-1955
* Datepicker: Make sure altField is treated as a CSS selectorMichał Gołębiowski-Owczarek2021-05-041-1/+1
| | | Closes gh-1954
* Dialog: Workaround broken focus re-triggering in jQuery 3.4/3.5Michał Gołębiowski-Owczarek2021-02-221-10/+22
| | | | | | | | | | | Focus re-triggering in jQuery 3.4/3.5 makes the original element have its focus event propagated last, breaking the re-targeting. Trigger focus in a delay in addition if needed to avoid the issue. This fixes the "interaction between overlay and other dialogs" core dialog test when tested against jQuery 3.4/3.5. Closes gh-1946 Ref jquery/jquery#4382
* Focusable: Fix handling of `visibility: collapse`Paul Capron2020-10-141-1/+1
| | | | | | | | | | | | | | "collapse" is similar to "hidden", with a slight difference in the case of tr/tbody/td/colgroup elements. See https://www.w3.org/TR/CSS22/visufx.html#visibility See https://www.w3.org/TR/CSS22/tables.html#dynamic-effects See https://developer.mozilla.org/en-US/docs/Web/CSS/visibility#Table_example "visibility: collapse" elements are always not focusable, though. Commit d3025968f34 introduced a regression by testing with `!== "hidden"` instead of `=== "visible"`. Closes gh-1843
* Widget: Fix boolean option when under use strictHrvoje Novosel2020-10-061-0/+2
| | | | | | | | | | | | | | Fix for `options === true` when using jQuery UI under `use strict`, which throws: ``` Uncaught TypeError: Cannot create property 'complete' on boolean 'true' ``` on line: ```js options.complete = callback; ``` Closes gh-1931
* Resizable: Fix CSP violation (style unsafe-inline)Jérémy Munsch2020-08-111-2/+3
|
* All: Remove a leftover empty fileMichał Gołębiowski-Owczarek2020-07-241-0/+0
| | | Closes gh-1933
* Menu: Account for scrollbars in jQuery 3.2Michał Gołębiowski-Owczarek2020-07-231-2/+14
| | | | | | | | | | jQuery >=3.2 doesn't include scrollbars in `.height()`, this commit switches it to `.innerHeight()` which does so in jQuery >=3.3. In jQuery 3.2 it doesn't either so include scrollbars in innerHeight, add it back. Using `.innerHeight()` instead of `.height()` should be fine as menu doesn't define padding styles. Closes gh-1929
* All: Drop support for jQuery 1.7Michał Gołębiowski-Owczarek2020-07-222-69/+4
| | | Closes gh-1923
* All: Resolve most jQuery Migrate warningsMichał Gołębiowski-Owczarek2020-05-165-3/+5
| | | Closes gh-1919
* Build: Rename jquery-1-7 to jquery-patchMichał Gołębiowski-Owczarek2020-05-162-1/+1
| | | | | The file now contains many more than just jQuery 1.7 patches. Closes gh-1917
* Build: Update jQuery Simulate, jQuery Migrate & jQuery ColorMichał Gołębiowski-Owczarek2020-05-163-682/+770
| | | | | | The jQuery Simulate & jQuery Color updates are needed for compatibility with jQuery master, a future jQuery 4. Closes gh-1914
* Datepicker: Fix Hungarian localization to use uppercase for first charactersFatér Zsolt2020-03-231-4/+4
|
* Datepicker: Add German localizationFlorian Wegscheider2020-03-231-0/+38
|
* Datepicker: Fixed current instance memory leak and added unit testcasesjigar gala2020-03-231-0/+1
|
* All: Remove usage of jQuery positional selectorsMichał Gołębiowski-Owczarek2020-01-224-5/+28
| | | | | | | | | | | | | | | | | jQuery positional selectors () have been deprecated in [jQuery 3.4.0](https://blog.jquery.com/2019/04/10/jquery-3-4-0-released/) and they'll be removed in jQuery 4.0.0. This PR removes their usage. Most of the changes were possible without changing public API. However, dropping `:even` usage required a change to the [`header` option](https://api.jqueryui.com/accordion/#option-header) of the accordion widget. I made it an optional function; this will need to be documented. The polyfill for `.even()` & `.odd()` is added for jQuery <3.5.0. There was no usage of the :odd selector in the code but the `.odd()` method is also polyfilled for completeness. Closes gh-1904
* Datepicker: Fix typo in currentText in da localizationOskarNS2019-12-091-1/+1
| | | | | | | The term for "Today" in Danish is "I dag" not "Idag". This is a common misspelling in the Danish language. see https://dsn.dk/?retskriv=idag Dansk Sprognævn (DSN) is the authority over the Danish language. Closes gh-1862
* All: Use expr.pseudos instead of deprecated expr.filtersMaksymenkov Eugene2019-12-082-4/+4
| | | | | | See: https://github.com/jquery/jquery-migrate/blob/master/warnings.md#jqmigrate-jqueryexprfilters-is-deprecated-use-jqueryexprpseudos Closes gh-1887
* All: Migrate away from deprecated/removed Core APIsMichał Gołębiowski-Owczarek2019-12-0816-59/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary of the changes: * Build: Add jQuery 3.2.0-3.4.1 to versions UI can be tested against * Build: Load jQuery & Migrate via HTTPS * Build: Add package-lock.json to .gitignore * Build: Update jQuery Migrate from 3.0.0 to 3.1.0 * Build: Allow to run tests against jQuery 3.x-git * Build: Fix formatting according to JSCS rules * Build: Disable JSCS for the inlined jQuery Color * All: Switch from $.isArray to Array.isArray (jQuery.isArray will be removed in jQuery 4.0) * All: Switch from `$.isFunction( x )` to `typeof x === "function"` (jQuery.isFunction will be removed in jQuery 4.0) * All: Inline jQuery.isWindow as it'll be removed in jQuery 4.0 * Effects: Fix a timing issue in a variable declaration. Previously, a jQuery object was created, chained & assigned to a variable that was then accessed in a callback used inside of this chained definition. Due to a timing difference in when the callback fired for the first time in latest jQuery master, it was being called before the variable was defined. * Tests: Make dialog & draggable unit tests less strict (newest jQuery returns fractional results in some cases, making comparisons fail when there's a tiny difference) * All: Migrate from $.trim to bare String.prototype.trim (jQuery.trim will be deprecated in jQuery 3.5) Closes gh-1901
* Datepicker: Fix first day of week for pt-PT localeHorus682017-05-311-1/+1
| | | | | Fixes #15195 Closes gh-1820
* Dialog: Fix shared event handler for modal dialogsScott González2017-05-171-15/+14
| | | | | | | | | The old logic worked when all widgets of the same type used the same event namespace. However, now that each instance has its own namespace, we cannot use `_on()` for shared event handlers. Fixes #15182 Closes gh-1817
* All: Remove uses of `jQuery.proxy()`Scott González2017-05-171-2/+2
| | | | | Ref #15160 Closes gh-1813
* All: Remove uses of `jQuery.camelCase()`Scott González2017-05-171-1/+7
| | | | | Ref #15160 Ref gh-1813
* Position: Increase scrollbar test div to handle larger scrollbarsScott González2017-05-041-3/+3
| | | | | Fixes #15106 Closes gh-1811
* Core: Fix JQMIGRATE warning about `jQuery.expr[":"]`Eirik Sletteberg2017-05-027-8/+20
| | | | | | | This commit polyfills `jQuery.expr.pseudos` for old versions of jQuery. Fixes #15185 Closes gh-1773
* Menu: Ignore mouse events triggered due to page scrollingScott González2017-05-021-0/+12
| | | | | Fixes #9356 Closes gh-1806
* Menu: Handle mouse movement mixed with keyboard navigationScott González2017-05-021-23/+33
| | | | | Fixes #9357 Closes gh-1805
* Menu: Don't focus dividers when wrapping via keyboard navigationScott González2017-05-021-11/+13
| | | | | Fixes #15157 Closes gh-1804
* Button: Fix backcompat when called on collection of mixed elementsAlexander Schmitz2017-05-021-14/+73
| | | | | Fixes #15109 Closes gh-1808
* Sortable: Fix various scrolling issuesA. Wells2017-05-021-129/+168
| | | | | | | | | | | | | | | | | | | * Created _scroll extension point and migrated scroll code from _mouseDrag * Cleaned up logic for scrolled * Fixed appendTo functionality to match documentation * Remove unnecessary function calls * Move set-up position functions to appropriate place * Base scrollParent on placeholder and not helper * Update scrollParent when switching containers Fixes #3173 Fixes #15165 Fixes #15166 Fixes #15167 Fixes #15168 Fixes #15169 Fixes #15170 Closes gh-1793
* Labels: Handle empty setsScott González2017-05-021-0/+4
| | | | Fixes #15184
* Menu: Close menus immediately on selection or click outsideScott González2017-04-251-2/+2
| | | | | Fixes #15034 Closes gh-1807
* Widget: Handle `Object.create(null)` for options objectsScott González2017-04-241-1/+2
| | | | | Fixes #15179 Closes gh-1809
* Widget: Improve `remove` event bindings for `classes` optionsScott González2017-04-191-5/+21
| | | | | | | | | Fixes #15078 Fixes #15082 Fixes #15095 Fixes #15136 Fixes #15152 Closes gh-1769
* Resizable: Keep user-provided handles on destroyKonstantin Dinev2017-04-171-3/+2
| | | | | Closes gh-1798 Ref gh-1795
* Datepicker: Corrections for Swedish localizationAlbert Johansson2017-03-011-7/+7
| | | | | | | | Months and weekdays should be in small caps in Swedish. https://sv.wikipedia.org/wiki/Versalisering Fixes #15142 Closes gh-1799
* Widget: Don't swallow errors in `remove` eventsScott González2017-02-281-9/+5
| | | | | | | The try/catch was only there to support jQuery <1.6.3, which we no longer support. Ref jquery/jquery#3554
* Resizable: Keep user defined handles on _setOptionKonstantin Dinev2017-02-241-2/+6
| | | | | Fixes #15084 Closes gh-1795
* Spinner: Ignore `mousewheel` events when not focusedScott González2017-02-211-1/+5
| | | | | Fixes #15139 Closes gh-1794
* Datepicker: Fix prev/next button behavior with `showCurrentAtPos`claudi2017-01-251-3/+1
| | | | | Fixes #15102 Closes gh-1784
* Autocomplete: Fix IE/Edge scrolling issuesRyan Oriecuia2017-01-251-23/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IE11 and scrolling autocompletes didn't get along great; this should help fix their relationship. When you click on an autocomplete scrollbar in IE11, the menu temporarily gains focus, which caused a couple problems. 1. Depending on how long you clicked, the dropdown could close. 2. Scrolling down by clicking the scrollbar's down arrow would misbehave. The list would pop back up to the top with the first item selected. We can fix both problems by modifying the focus/blur handling a bit. 1. There is a flag to instruct the control to ignore blurs, but it was getting cleared too quickly; when the code refocused the input after it was blurred, IE would send *another* blur event, which wasn't getting ignored and would close the dropdown. We now wait for the focus/blur pair to process before clearing the flag. 2. We remove the tabindex from the dropdown menu, which prevents menu's focus handler from firing. When you focus a menu, it will select the first menu item if none are selected. Selecting a menu item will scroll it into view if it's not visible. This combination of behaviors was causing the strange behavior when attempting to scroll down. I couldn't figure out a way to write a unit test for this, since it's IE only and seems to require user interaction. You can verify the previous behavior (and the fix) on `demos/autocomplete/maxheight.html` Fixes #9638 Closes gh-1785
* Effect: Fix typoLuke Brookhart2016-12-161-1/+1
| | | | Closes gh-1778
* Selectmenu: Don't render options with the `hidden` attributeScott González2016-11-161-0/+4
| | | | Fixes #15098
* Tooltip: Clear interval for delayed tracking tooltips on removepallxk2016-11-161-0/+4
| | | | | | | This is needed in the case that the tooltip is removed before it gets shown. Fixes #15099 Closes gh-1768
* Spinner: Fix typoKyle Rosenberg2016-11-021-7/+7
| | | | Closes gh-1764
* Sortable: Fix `z-index` switching from `auto` to `0`Jeremy Mickelson2016-10-191-7/+10
| | | | | | | | Save `z-index` before saving `opacity`. Setting `opacity` automatically changes `z-index`. Fixes #14683 Closes gh-1762