0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 01:22:07 +01:00
Commit Graph

1669 Commits

Author SHA1 Message Date
Thibaud Colas
bd6f314b87 Refactor CSS selectors in title panel override for readability 2024-04-18 13:04:25 +01:00
sag​e
c1a23b4bd3
Tweak styles for w-header-button to better match the designs (#11863) 2024-04-18 12:29:01 +01:00
Neeraj P Yetheendran
4bf966537a Added ability to make keyboard shortcut Global
Add `w-kbd-scope-value` with support for `global` so that specific keyboard shortcuts (e.g. ctrl+s/cmd+s) can be used consistently even when focused on fields.

Fixes #11844
2024-04-17 21:00:58 +10:00
LB Johnston
e6504951c8 Add deprecated backwards compatible window.URLify with release notes
- Add legacy support for window.URLify with allowUnicode as a param
- Add release notes details for both window.URLify (deprecated) & window.XRegExp (removed)
2024-04-17 19:58:08 +10:00
LB Johnston
be5b69078a Move urlify (Django port) & remove xregexp vendor library
- Move vendor/urlify.js into our own codebase as a port of the Djago util
- Remove the need for xregexp polyfill library
2024-04-17 19:58:08 +10:00
LB Johnston
f0cf73f0d3 Standardize on allowUnicode for slugify util option
- This is the name used in the urlify util
2024-04-17 19:58:08 +10:00
Matt Westcott
bb3e58abd0
Split out a reusable runInlineScripts utility function and handle attributes correctly 2024-04-17 14:49:12 +07:00
Matt Westcott
57d407d0eb
Use template literals for names in selectors 2024-04-17 14:49:11 +07:00
Matt Westcott
9b74c83195
Eliminate jQuery from telepath widget classes 2024-04-17 14:49:11 +07:00
Sage Abdullah
bb12877f79
Use tables component in users index view
This also allows us to reuse the "..." more button for each listing item
instead of the inline buttons.
2024-04-09 08:54:48 +07:00
Neeraj P Yetheendran
568611fe35 Remove non-Stimulus usage of Mousetrap
- No longer need page-editor.js (move the window. global to core.js instead)
2024-04-07 21:05:28 +10:00
Neeraj P Yetheendran
63f7e336db Create new Stimulus KeyboardController (w-kbd) 2024-04-07 21:05:28 +10:00
divdeploy
91cd6cffc2 chore: fix some comments
Signed-off-by: divdeploy <chenguangxue@outlook.com>
2024-04-07 15:59:37 +10:00
Sage Abdullah
0006976267 Implement universal listings UI for form submissions listing view 2024-04-05 17:36:41 +01:00
Karthik Ayangar
452d9aaa42 Remove initBlockWidget global window function 2024-04-04 08:28:17 +10:00
Karthik Ayangar
d2405eefe8 Add Stimulus BlockController 2024-04-04 08:28:17 +10:00
Sage Abdullah
c8686cc7e9
Apply suggestions from code review 2024-04-02 16:40:27 +07:00
LB Johnston
e71e947046
Add base styling for footer actions to support simple customisations
- Fixes #11629
- Relates to clean up done as part of #11629 which removed a lot of styling for footer actions which appeared to be unused.
- Re-add some base styling to support the ability for basic customisations where buttons are added within the `extra_footer_actions` block.
2024-04-02 12:29:24 +07:00
osafalisayed
cd93a9c98d Updated dynamic sidebar Wagtail logo
- Relates to #10404
- See original PR #10659
2024-03-23 19:48:31 +10:00
LB Johnston
5fd8ebf171 SwapController - Ensure untrusted data sources are logged correctly
Avoids the rare case of `requestUrl` being used to log out an object
Fixes #11212
2024-03-23 18:17:53 +10:00
LB Johnston
da212ce53e Add support for groups within BulkController toggles
- Allows one controlled w-bulk element to contain groups of toggles that work together
- Useful for tables where the DOM structure means that columns will need to be toggled / selected as one
- Basic support for 'multi' groups to avoid issues with space separated items
2024-03-23 14:21:19 +10:00
LB Johnston
0f44abeef2 Minimap - Ensure that we correctly handle not found matched elements
- Currently the code appears to try to fallback to an empty id, however this will never happen as we are building a non-empty string
- Instead if we have not found any closest panel, simply return the intersection map as is
Closes #11210
2024-03-22 17:35:19 +10:00
LB Johnston
9084c196fa Fix minor typo in CountController JSDoc 2024-03-17 21:52:33 +10:00
Karthik Ayangar
bb5b253ef1 Add basic keyboard shortcuts dialog
Include the ability to trigger the dialog from the sidebar
Include base styling and unit tests
Fixes ##11711
Relates to larger work for keyboard shortcuts in #3949
2024-03-16 16:59:26 +10:00
Chiemezuo
aebdf82387 Ensure that dropdown content will be scrollable if content is too high
Fixes #11108
2024-03-14 07:28:27 +10:00
Sage Abdullah
88fad9a071
Show full label for non-page listings HeaderButton
In the new designs, listings other than the page listings should show
the complete label for the main header button.

The page listing only shows the icon because much of the space is taken
by the side panel toggles.

The page listing's header button hasn't been refactored to use the
HeaderButton class, hence there is no changes to the page listings code
in this commit.
2024-03-11 09:55:41 +00:00
Sage Abdullah
420723c174
Move 'sort by' select element in images listing to the slim header
This uses a custom header template that extends the slim_header.html

We could do this without the custom header template, but this would mean
the slim_header.html will accept yet another variable (extra_form_fields),
which we are trying to avoid to prevent it from accepting so many variables
like header.html.

This is especially since this "extra fields" block is only needed for the
images listing (at least for the foreseeable future).
2024-03-11 09:55:41 +00:00
Sage Abdullah
2003e14a95 Allow TeleportController to have any number of child nodes of any kind 2024-03-09 20:15:03 +10:00
Karthik Ayangar
00474a6152 fix: MutationObserver in dirty form check only tests direct descendants
Fixes #11142
2024-03-07 08:09:37 +10:00
Sage Abdullah
24deedea78 Add icon support to generic breadcrumbs template tag 2024-03-05 09:56:47 +00:00
Sage Abdullah
a106a3e805 Remove extraneous padding in chooser modal listings
Fixes #11704
2024-03-05 18:09:16 +10:00
LB Johnston
07d6acfb52
Fix - Ensure that modal tabs width are not impacted by side panel opening
Regression from #11150
2024-02-29 11:37:53 +00:00
Chiemezuo
9ae45aab50 Add ability for Draftail to be initialized via a dispatched CustomEvent 2024-02-29 08:15:15 +10:00
Chiemezuo
514a0aab9f Update InitController to support dispatching detail
- Update JSDoc throughout controller for better internal documentation
- Ensure we 'clean up' the other controller attributes when the init has completed
- Allow for the ready event to have the preventDefault called and stop other events from dispatching
- Add unit tests to support the above changes
2024-02-29 08:15:15 +10:00
elhussein almasri
da88ec81f1 Adopt entity chooserUrls for Draftail richtext links
Avoid the need to load window.chooserUrls globally in the shared _editor_js.html include.

Instead pass in the lazy URLs to the link chooser entity options.
2024-02-28 21:36:49 +10:00
elhussein almasri
69e32660db Add support for Draftail ModalWorkflow JS to use chooserUrls supplied
Instead of relying on global window.chooserUrls, add the support for also passing in entityType config objects that serve the same purpose.

Update JS unit tests to reflect that the future will no longer support the window.chooserUrls
2024-02-28 21:36:49 +10:00
Sage Abdullah
2594be387d Add tests for w-dropdown-keep-mounted-value 2024-02-27 09:43:14 +00:00
Sage Abdullah
71a8853365 Add tests for w-link 2024-02-27 09:43:14 +00:00
Sage Abdullah
1b3e54e267 Add tests for w-teleport-reset-value 2024-02-27 09:43:14 +00:00
Viktor Szépe
5679b30d1b
Fix typos (#11687) 2024-02-22 17:39:16 +00:00
LB Johnston
ba516ef492 a11y results - coerce CrossTreeSelector into a string
- Ensures that TypeScript will allow these values to be passed into querySelector
2024-02-20 16:54:35 +00:00
Thibaud Colas
a17996073e
Make sure all custom widgets within drilldown dropdowns use the expected text color 2024-02-15 10:01:48 +00:00
Thibaud Colas
56f9855c07
Ensure BooleanRadioSelect uses the same styles as RadioSelect 2024-02-15 10:01:48 +00:00
Thibaud Colas
e9727eacaf Code refactorings based on code review feedback 2024-02-14 15:04:17 +00:00
Thibaud Colas
4ec22a4b62 Refactor helper methods for fetch response mocking 2024-02-14 15:04:17 +00:00
Sage Abdullah
88bdd397cf Use w-swap's reflect event in w-drilldown and w-link 2024-02-14 15:04:17 +00:00
Sage Abdullah
4fedf3e2d4 Add the ability to reflect query params in SwapController
This is useful when the controller is used in views that would produce an identical response if the page is hard-reloaded with the same params, e.g. listings
2024-02-14 15:04:17 +00:00
Adrien Hamraoui
58ebfe1fb1 fix: InlinePanel - take 1st child when configuring up and down js events
Issue was appearing when there was nested inline panels.
currentChild. find would match the parent up/down button
but also all the ones of the nested inline panels
Fixes #5919
2024-02-13 07:45:06 +10:00
LB Johnston
d06b04c8bd Update Eslint, Prettier, Stylelint packages & pre-commit versions
This un-reverts commit 99dd11510b with fixes for Prettier mirror (it's rev must be 3.0.3 even if using a newer Prettier).
The original commit which was reverted is 5971ce7f3f
2024-02-08 15:23:48 +00:00
Matt Westcott
99dd11510b Revert "Update Eslint, Prettier, Stylelint packages & pre-commit versions"
This reverts commit 5971ce7f3f.
2024-02-07 17:12:56 +00:00