From b0fa6559daf4fdc346b2cc1e95b6fc1c868eecc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Kuna?= <1282324+codecalm@users.noreply.github.com> Date: Sat, 15 Nov 2025 13:42:27 +0100 Subject: [PATCH] feat: Add four new modals (new task, edit profile, confirm delete, change password) (#2529) --- .changeset/change-password-modal.md | 6 + .changeset/confirm-delete-modal.md | 6 + .changeset/edit-profile-modal.md | 6 + .changeset/new-task-modal.md | 6 + preview/js/demo.js | 2 +- preview/pages/modals.html | 49 +++++-- shared/includes/layout/navbar.html | 2 +- .../parts/modals/change-password.html | 138 ++++++++++++++++++ .../includes/parts/modals/confirm-delete.html | 56 +++++++ .../includes/parts/modals/edit-profile.html | 92 ++++++++++++ shared/includes/parts/modals/new-event.html | 33 +++++ shared/includes/parts/modals/new-task.html | 51 +++++++ shared/includes/parts/modals/team.html | 2 +- shared/includes/settings.html | 8 +- shared/includes/ui/modal.html | 2 +- 15 files changed, 439 insertions(+), 20 deletions(-) create mode 100644 .changeset/change-password-modal.md create mode 100644 .changeset/confirm-delete-modal.md create mode 100644 .changeset/edit-profile-modal.md create mode 100644 .changeset/new-task-modal.md create mode 100644 shared/includes/parts/modals/change-password.html create mode 100644 shared/includes/parts/modals/confirm-delete.html create mode 100644 shared/includes/parts/modals/edit-profile.html create mode 100644 shared/includes/parts/modals/new-event.html create mode 100644 shared/includes/parts/modals/new-task.html diff --git a/.changeset/change-password-modal.md b/.changeset/change-password-modal.md new file mode 100644 index 000000000..deffec3ef --- /dev/null +++ b/.changeset/change-password-modal.md @@ -0,0 +1,6 @@ +--- +"@tabler/preview": minor +--- + +Added Change Password modal with current password, new password with strength indicator, confirm password validation, and show/hide password toggles. + diff --git a/.changeset/confirm-delete-modal.md b/.changeset/confirm-delete-modal.md new file mode 100644 index 000000000..df8d39583 --- /dev/null +++ b/.changeset/confirm-delete-modal.md @@ -0,0 +1,6 @@ +--- +"@tabler/preview": minor +--- + +Added Confirm Delete modal with warning icon, confirmation checkbox, and JavaScript validation to enable delete button only when confirmed. + diff --git a/.changeset/edit-profile-modal.md b/.changeset/edit-profile-modal.md new file mode 100644 index 000000000..70e1a9940 --- /dev/null +++ b/.changeset/edit-profile-modal.md @@ -0,0 +1,6 @@ +--- +"@tabler/preview": minor +--- + +Added Edit Profile modal with avatar upload, personal information fields, social links, and date of birth. + diff --git a/.changeset/new-task-modal.md b/.changeset/new-task-modal.md new file mode 100644 index 000000000..bce47b42a --- /dev/null +++ b/.changeset/new-task-modal.md @@ -0,0 +1,6 @@ +--- +"@tabler/preview": minor +--- + +Added New Task modal with fields for task name, description, assigned user, priority, due date, and category tags. + diff --git a/preview/js/demo.js b/preview/js/demo.js index 25ff10932..274f6b514 100644 --- a/preview/js/demo.js +++ b/preview/js/demo.js @@ -69,7 +69,7 @@ const submitForm = (form) => { parseUrl() // Elements -const form = document.querySelector("#offcanvasSettings") +const form = document.querySelector("#offcanvas-settings") // Toggle form controls if (form) { diff --git a/preview/pages/modals.html b/preview/pages/modals.html index 5301b9484..cc9cfa636 100644 --- a/preview/pages/modals.html +++ b/preview/pages/modals.html @@ -4,7 +4,7 @@ page-header: Modals page-menu: base.modals layout: default permalink: modals.html -page-libs: [signature_pad, hugerte] +page-libs: [signature_pad, hugerte, litepicker] ---