1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-10 00:37:02 +02:00

87 Commits

Author SHA1 Message Date
Ryan Cramer
e6dbc3e8eb Fix issue processwire/processwire-issues#2026 2025-02-06 10:06:10 -05:00
Ryan Cramer
2361b90739 Fix issue processwire/processwire-issues#2002 2024-11-29 13:43:26 -05:00
Ryan Cramer
1a5760a5e8 Fix issue processwire/processwire-issues#1997 2024-11-22 09:42:13 -05:00
Ryan Cramer
4f7161fd49 Fix issue processwire/processwire-issues#1976 2024-10-04 14:35:31 -04:00
Ryan Cramer
965f956bc3 Add support for matching data attributes in show-if conditions. Also updated FieldtypeOptions to add data-if-value attribute to select <option> tags as a way use it. This attribute contains the option value (when separate option values and labels are used). This enables you to match by value rather than by option ID. Example show-if selector: colors.data-if-value=blue. Previously you could only match by option ID, i.e. colors=123. Maybe we'll add something similar for page refernce fields so that you can match by page name or path, rather than by ID. 2024-09-13 13:29:09 -04:00
Ryan Cramer
80f425f9da Minor adjustment for header actions in inputfields.js 2024-08-23 14:24:06 -04:00
tobaco
1fdc61dc41 Add PR #291 - remove php version check for strftime call in WireDateTime 2024-08-09 14:20:15 -04:00
Ryan Cramer
5b0e37e3ae Add support for Inputfield header dropdown menu actions. These expand upon the existing Inputfield header actions added in 3.0.240 and enable you to have dropdown menus contain more actions within them. 2024-07-19 12:43:41 -04:00
Ryan Cramer
962d26a749 Small improvements to the pw-dropdowns code in /wire/templates-admin/main.js. Fixes one jQuery 3.x error, adds code to prevent double initialization, and adds code to trigger a pw-show-dropdown JS event when a dropdown is shown. 2024-07-19 12:14:30 -04:00
Ryan Cramer
3c5205721b Add support for PHP-defined header actions for Inputfields as requested by @Toutouwai. These work the same as those defined in JS via Inputfields.addHeaderAction() except the method can now also be called from Inputfield objects in PHP. Also added support for 'link' type actions that open a link in either the current or a modal window. 2024-05-24 14:42:23 -04:00
Ryan Cramer
397bb0b382 Lots of updates to the Inputfield Javascript API (inputfields.js) with several new methods including icon() which can get or set the Inputfield icon, header() which returns the InputfieldHeader element, content() which returns the InputfieldContent element, and addHeaderAction() which lets you add custom icon actions to any Inputfield. Also updated the existing label() method to allow for setting the Inputfield label/header text (previously it could only get). The addHeaderAction() method is the most significant addition, so I'll write more about that in the weekly update. 2024-05-10 11:58:56 -04:00
Ryan Cramer
4e2ef8f8fd Minor fix in inputfields.js where it wasn't always triggering the 'opened' event when it should 2024-05-03 13:57:13 -04:00
Ryan Cramer
29ecddadeb Update the ProcessWire.alert() javascript function to support an expiration time after which the alert will automatically close. 2024-04-19 11:59:43 -04:00
Ryan Cramer
0852242866 Update default AdminTheme.scss to limit align left/right/center classes to img, figure, div, etc. 2024-03-28 08:59:51 -04:00
Ryan Cramer
a53b4e5310 Update inputfields.js dependences so that they can work with Page selection fields (PageAutocomplete, PageListSelect, etc.) when used outside of an InputfieldPage, such as in a module config, field config, etc. Related to processwire/processwire-issues#1873 2024-02-15 12:39:16 -05:00
Ryan Cramer
3ab315dca4 Add an update for processwire/processwire-issues#1873 2024-02-15 12:34:09 -05:00
adrianbj
94653012be Add PR #255 - updates inputfields.js to add support for repeater 'forpage' selectors in showIf dependencies 2024-02-15 10:50:19 -05:00
Ryan Cramer
a5f6cabbcf Fix for processwire/processwire-issues#1873 2024-02-13 11:26:02 -05:00
mpsn
db2112defd Add PR #277 unquote setTimeout function calls in inputfields.js 2023-10-19 10:35:14 -04:00
Ryan Cramer
e81da24679 Fix issue processwire/processwire-issues#1518 2023-07-25 09:34:57 -04:00
Ryan Cramer
4c6c2b7c89 Fix issue processwire/processwire-issues#889 2023-07-21 11:05:27 -04:00
Ryan Cramer
1749ba17ac Fix issue processwire/processwire-issues#1767 2023-06-28 09:14:22 -04:00
Ryan Cramer
ce06ffa496 Additional improvements to WireCache, WireCacheInterface and WireCacheDatabase 2023-05-26 13:35:30 -04:00
Ryan Cramer
908479d786 Fix issue where Inputfield showIf condition that matches a single period "." was not working correctly due to jQuery adjustments from a couple weeks ago 2023-05-02 09:08:59 -04:00
Ryan Cramer
1d7f029fa5 Update many other .js files for jQuery 3.x deprecations 2023-04-19 10:08:54 -04:00
Ryan Cramer
3f2488de7d Fix inputfields.js JS issue mentioned in forum via @matjazpotocnik
Co-authored-by: matjazpotocnik <matjaz.potocnik@um.si>
2023-04-16 09:58:51 -04:00
Ryan Cramer
bd0253477e Update lots of core .js files for jQuery 3.6.4 support 2023-04-14 11:54:28 -04:00
Ryan Cramer
7352d1d7f3 Fix issue processwire/processwire-issues#1712 2023-03-30 09:28:24 -04:00
Ryan Cramer
834f3507d5 Fix issue processwire/processwire-issues#1662 2023-01-06 07:56:27 -05:00
Ryan Cramer
56e999dddb Updates for processwire/processwire-issues#1643 2022-12-02 08:02:49 -05:00
Ryan Cramer
9c3d03c4a1 Various minor updates 2022-11-25 14:27:36 -05:00
Ryan Cramer
96bb90bb2e Update inputfields.js for better error handling and improved reload support 2022-10-06 13:14:55 -04:00
matjazpotocnik
f510392e7e Fix issue #1623 2022-09-20 11:20:18 -04:00
Ryan Cramer
a5c70a4e7d Upgrade core to have lazy-loading option for Fields, Templates, Fieldgroups. Collaboration with @thetuningspoon for boot performance improvement on installations with large quantities of fields/templates/fieldgroups. Lazy loading option is enabled by default but can be disabled by setting $config->useLazyLoading=false; in your /site/config.php file.
Co-authored-by: thetuningspoon <mspooner@hey.com>
2022-02-04 14:51:11 -05:00
Ryan Cramer
1043e73ab8 Add support for an Inputfield "changed" JS event in inputfields.js 2021-08-20 13:47:46 -04:00
Ryan Cramer
2adebb6d78 Update inputfields.js to support selection of Inputfield elements behaving as a tab 2021-07-09 11:01:26 -04:00
BernhardBaumrock
2911a16604 Add PR #169 which adds alternate behavior option for Inputfield labels as open/close toggles (currently AdminThemeUikit setting) 2021-05-11 09:58:25 -04:00
Ryan Cramer
a565e9539a Add Inputfields.startSpinner() and Inputfields.stopSpinner() methods to inputfields.js Inputfields class 2021-04-28 14:00:01 -04:00
Ryan Cramer
6c068e6d55 Improvements to inputfields.js front-end management of Inputfields, including a few new API methods and it now opens/collapses Inputfields in the same row together as a group. 2020-12-30 13:18:48 -05:00
Ryan Cramer
80208b55e2 Some improvements to Inputfields JS library with regard to handling checkbox/radio dependencies 2020-12-04 15:41:44 -05:00
Ryan Cramer
13cb795c3d Update the Inputfield debug mode toggle-icon hover state to also work with InputfieldFieldset types 2020-11-27 08:33:01 -05:00
Ryan Cramer
60853ceda7 Minor improvement to inputfields.js 2020-10-09 13:29:40 -04:00
Ryan Cramer
6f4a76d74e Minor updates, plus update the inputfields.js triggered events (openReady, opened, closeReady, closed) to include the Inputfield element in the event arguments for simpler access to it vs the event.target. 2020-08-14 15:18:05 -04:00
Ryan Cramer
9c2c5e986e Various minor theme updates 2020-07-10 12:32:08 -04:00
Ryan Cramer
af6a68e06d Update ProcessLogin to support login by email address for the admin. To use, you must enable the "unique" flag on your "email" field (Setup > Fields > email > Advanced), and then you can enable login-by-email in the ProcessLogin module settings. 2020-02-14 15:15:28 -05:00
Ryan Cramer
93f422a2cf Update inputfields.js so that you can specify #find-fieldName as a URL fragment on pages containing an InputfieldForm and it will locate and highlight the field identified by fieldName. Also update $page->editUrl() function to accept a field name to find in the page editor, which uses the inputfields.js #find-fieldName added in this commit, i.e. $page->editUrl('body'); 2020-02-14 14:45:50 -05:00
Ryan Cramer
12dbe3f250 Fix issue processwire/processwire-issues#1056 2019-12-27 13:39:31 -05:00
Ryan Cramer
4656672c81 Fix issue processwire/processwire-issues#1030 2019-11-21 08:59:30 -05:00
Ryan Cramer
c9713f0bc4 Fix issue processwire/processwire-issues#1010 add support for dependencies to InputfieldPageListSelectMultiple and InputfieldPageAutocomplete 2019-11-05 10:46:56 -05:00
Ryan Cramer
b3337d0110 Bump version to 3.0.144 2019-11-01 09:58:44 -04:00