From 456e744d818cc42fcb0832ae31f6d884a3291fd7 Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Tue, 23 Jun 2026 10:47:45 -0500 Subject: [PATCH] feat: clickable placeholder pills for backup dir and archive name fields Both Backup Directory and Archive Name Format fields now show clickable placeholder tags below the input. Clicking a tag inserts the placeholder at the current cursor position using selectionStart/End. - FolderPickerField: pills for [HOME], [DEFAULT_DIR], [host], [site_name], [date], [profile_id], [profile_name], [type] - PlaceholderTextField: new custom field type used by archive_name_format, configurable placeholders via XML attribute - Cursor position preserved after insert, input event dispatched for live status updates --- .../com_mokosuitebackup/forms/profile.xml | 4 +- .../src/Field/FolderPickerField.php | 31 ++++++++ .../src/Field/PlaceholderTextField.php | 78 +++++++++++++++++++ 3 files changed, 112 insertions(+), 1 deletion(-) create mode 100644 source/packages/com_mokosuitebackup/src/Field/PlaceholderTextField.php diff --git a/source/packages/com_mokosuitebackup/forms/profile.xml b/source/packages/com_mokosuitebackup/forms/profile.xml index c6e65ff..131fad5 100644 --- a/source/packages/com_mokosuitebackup/forms/profile.xml +++ b/source/packages/com_mokosuitebackup/forms/profile.xml @@ -72,12 +72,14 @@ />