Wykres commitów

1852 Commity (14d16ae8232a3d0653073e9d7f06e59c6fad83ef)

Autor SHA1 Wiadomość Data
Thibaud Colas 14d16ae823 Remove now-unneeded focus-visible backwards compat 2025-01-17 13:50:12 +00:00
Rishabh Sharma 782aa0e16b
Reduce confusing spacing below StreamField blocks help text. Fix #11888 (#11934)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2025-01-14 10:00:09 +00:00
Ayaan cb11ec3e01
Upgraded sass-loader to remove Sass warnings (#12728)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2025-01-14 08:44:47 +00:00
Sage Abdullah 944fd02dc3 Replace l18n library with Intl-based LocaleController 2025-01-13 13:05:53 +00:00
Srishti Jaiswal 0bba5da337
Correct positioning of comment buttons with DateField, TimeField and DateTimeField. Fix #12214 (#12685)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2025-01-13 12:08:56 +00:00
Matt Westcott 784f4bbbb9 Don't set aria-expanded=false on clear(), because clearing in itself doesn't close the menu 2024-12-19 14:10:30 +00:00
Ayaan 1cbb1e8fb2 Remove - extra addClass & aria-label in appendColumnButton and restore aria-expanded="false" in clear method 2024-12-19 13:23:24 +00:00
Ayaan df8a6f219c Added aria-expanded attribute to add new column button (#12680) 2024-12-18 18:03:24 +00:00
LB Johnston ae89829661 Deprecate & rework imports for `window.buildExpandingFormset`
- window.buildExpandingFormset and using the base class `ExpandingFormset` can now be deprecated.
- Move the window global setting to core.js which avoids the need to add the import in editor_js, to align with other future deprecations in core.js
- Add upgrade considerations in release notes
- `ExpandingFormset` is still needed for other existing usage (InlinePanel/MultipleChooserPanel)
- Add additional JSDoc and updates to Eslint to advise developers that this feature is not to be used for new code
2024-12-10 01:42:32 +00:00
LB Johnston 6bc9b0ea40 Adopt Stimulus `w-formset` attributes in Group edit/create view
- Use the Wagtail admin formset mixin to adopt new data attributes on core form parts
- Update the edit/create templates to put the attributes on the remaining elements
- Add basic unit tests for smoke testing data attributes
- Remove CSP incompatible inline scripts approach
- Remove the now unused standalone static build/imports for the group edit view as this will not be needed
- Update Eslint accordingly
2024-12-10 01:42:32 +00:00
LB Johnston 8d35cc57e6 Add initial Stimulus FormsetController `w-formset`
Replaces the core functionality in `client/src/components/ExpandingFormset/index.js` and the Delete callbacks in other usage of the `window.buildExpandingFormset` function.

Provides limitations on add/delete once the min/max have been reached but does not set up any disabling of these buttons as this is currently in the remit of `InlinePanel`.

Includes a full test suite for error handling, updating inputs and nested usage which leverages Stimulus' scope management.

Does not rely on any id attribute structure or wrangling.

Relates to #7915
2024-12-10 01:42:32 +00:00
LB 4020efc4d0 Add JSDoc to exported function in runInlineScripts 2024-12-10 01:42:32 +00:00
LB d42af56220 Create `transition` util to resolve a promise when an animation ends 2024-12-10 01:42:32 +00:00
Matt Westcott 28cde800d9
Correctly initialize page chooser search results for multiple selection 2024-12-04 10:48:46 +00:00
Srishti-j18 c2676af857 Ensure new ListBlock instances get created with unique IDs
Fixes #10074
2024-12-04 19:10:04 +10:00
Ayaan 5837d346d9 Fix initial mode value logic in modeValueChanged
Fix from #12641
2024-12-04 17:35:01 +10:00
Jaivignesh-afk 13951cf7a5 Fix empty `th` elements in admin (accessibility)
- Headings cannot be empty (https://dequeuniversity.com/rules/axe/4.9/empty-table-header)
- Added aria-hidden=true or a suitable label to empty <th> across admin
- Fixes #11596
- Additional related fixes provided in #12203 & #11465
2024-12-04 12:50:13 +10:00
ayaan-qadri acdeb4f8d9 Update privacy-switch class toggle targets to use ZoneController
- Refactor styles for status tag to be more easily used across multiple elements
- Fixes #12611 (accessibility issue with the live link not reflecting update title/tooltips)
2024-12-03 07:53:40 +10:00
ayaan-qadri 4ea2c661c8 Update privacy-switch to avoid toggling classes & instead dispatch an event 2024-12-03 07:53:40 +10:00
ayaan-qadri 3a50b2467a Added switch method & inactive class support to ZoneController
- fixes #12611
2024-12-03 07:53:40 +10:00
LB Johnston 4438f13d5c Add initial implementation of w-rules/RulesController
- Allows a controlled form to have targets that are conditionally enabled based on a rule to match against the form data
- Partial progress for #11045
2024-12-03 07:15:09 +10:00
LB Johnston 918ceebc17 Create a JavaScript util `castArray`
- Allows easy conversion of any value/s supplied into an array or keep as an array if it's already one
2024-12-03 07:15:09 +10:00
Sage Abdullah 839193ff3c Remove unused LinkController
See #11736
2024-11-29 18:17:00 +10:00
Bartosz Cieliński 5815a7e1ef Ensure Draftail features wrap in case there is a lot of added features 2024-11-28 08:11:12 +10:00
Strapchay b3ba89b2ec Fix commenting not working on pages with read_only FieldPanels
Fixes #11838
2024-11-28 07:12:54 +10:00
LB c416cfb7d6 Fix minor typos
Update to US spelling
2024-11-27 15:33:59 +00:00
Sage Abdullah 6ec4dafc6a Avoid loading default radio input icon for preview size buttons 2024-11-27 20:34:42 +10:00
Srishti-j18 ffe294bc7b Added unit tests, storybook & JSDoc items for DrilldownController
Fixes #12511
2024-11-27 19:29:10 +10:00
Aayushman Singh 62109ba75e Update TagController to support debounced tag async autocomplete 2024-11-26 08:23:33 +10:00
LB cc335cad5f
Reinstate modal-workflow self.ajaxifyForm & add unit tests
- Fixes #12618
- Regression from #12380
2024-11-22 16:14:32 +00:00
ayaan-qadri 87f22bebf0 Remove unused jQuery add-multiple / core.js
- Class changes & event handling is now located within the HTML / ZoneController Stimulus usage
2024-11-20 16:31:49 +10:00
ayaan-qadri 31ccda4501 Create new Stimulus ZoneController (w-zone) 2024-11-20 16:31:49 +10:00
LB Johnston b9575f3498 ModalWorkflow - Add JSDoc description & adopt linting recommendations 2024-11-20 12:46:40 +10:00
LB 3697ee1f2a Eslint - fix location of storybook folder & remove eslint ignore 2024-11-20 07:52:43 +10:00
ayaan-qadri b0c90d4be2 Removed preventDefault from openPreviewInNewTab in PreviewController
Relates to #10356
2024-11-06 07:47:10 +10:00
LB 825a77d6c2 Remove all eslint-disable no-undef & use global comments (#12527)
Recommendation is to either declare globals in config or in a `/* global ` comment
See https://eslint.org/docs/latest/rules/no-undef#rule-details
2024-11-05 20:11:09 +00:00
LB 21206dc3e7 Clean up JS comments to be aligned to JSDoc where suitable 2024-11-04 21:14:04 +10:00
manu b2cd95bf3b Fix sidebar page explorer transitions - avoid overflow 2024-11-02 09:59:21 +10:00
Bojan Mihelac cc1805dc86
Fix sub-menus within the main menu cannot be closed on mobile (#10747) 2024-11-01 12:10:53 +00:00
LB 93384a062e Update CloneController - added/cleared events should not be cancelable
- While no code uses the event.preventDefault on these it's good practice to advise when cancelling will do nothing
2024-10-31 22:10:00 +10:00
Joel William 4a933df9fb Rich Text (Draftail) - Ensure SVG paths are correctly handled for custom features #12418
Ensure the documented support for providing an array of SVG paths to the 'icon' attribute when using `register_rich_text_features` is correctly supported.

Fixes #11777
Fixes #11051
Fixes #10319

See https://docs.wagtail.org/en/stable/extending/extending_draftail.html#creating-new-blocks
> It can also be an array of strings, to use SVG paths, or SVG symbol references for example 'icon': ['M100 100 H 900 V 900 H 100 Z'],. The paths need to be set for a 1024x1024 viewbox.
2024-10-27 20:20:02 +10:00
Temidayo32 c611dd4056 Ensure the Icon react component can support custom icon paths #11122
- When provided with children (e.g. custom paths), render these instead of the `use` symbol reference
- Allow any valid SVG attribute to be passed to the component to render on the `svg` element
- Clean up rendering of className to avoid extra whitespace
- Clean up ordering of the props to be alphabetically sorted
- Update unit tests to be focused more on testing and less on snapshots
2024-10-27 20:20:02 +10:00
sag​e 3f6cd8c18f
Fix font size for custom listing button styles (#12456) 2024-10-24 09:33:28 +01:00
Sage Abdullah bf842b32ef Check for last dismissed upgrade check in UpgradeController using data-w-dismissible-value-param 2024-10-21 17:30:33 +01:00
Sage Abdullah 098b48e074 Allow DismissibleController to patch non-boolean values via params 2024-10-21 17:30:33 +01:00
Sage Abdullah f1c63186fd Improve typings in UpgradeController 2024-10-21 17:30:33 +01:00
Sage Abdullah 88342e944b Fix incorrect UpgradeController test
The current version is set to 2.3 at the top level of the test. If the
test case uses 5.15.1 as the latest version, then the test should've
failed – but it didn't because we're missing a few promises to be
awaited.

To verify, try reverting the version diff and re-run the test. It would
fail with the new assertions.
2024-10-21 17:30:33 +01:00
Sage Abdullah 0f0d871c5e Replace UpgradeController hiddenClass with the HTML hidden attribute 2024-10-21 17:30:33 +01:00
Sage Abdullah 0b45e6112c
Drop all trailing punctuations from URLs in a pasted text
This matches the common behaviour of various places, e.g. GitHub and
Slack.
2024-10-21 16:53:00 +01:00
Thibaud Colas 6b04961654
Account for terminal punctuation right after a pasted URL within text 2024-10-21 16:53:00 +01:00