@bobfrankston/rmfmail 1.2.296 → 1.2.298

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/.commitmsg +28 -24
  2. package/client/android-bootstrap.bundle.js.map +2 -2
  3. package/client/app.bundle.js +20 -0
  4. package/client/app.bundle.js.map +2 -2
  5. package/client/app.js +27 -1
  6. package/client/app.js.map +1 -1
  7. package/client/app.ts +25 -1
  8. package/client/compose/compose.bundle.js.map +2 -2
  9. package/client/compose/compose.js +7 -4
  10. package/client/compose/compose.js.map +1 -1
  11. package/client/compose/compose.ts +7 -4
  12. package/client/index.html +5 -0
  13. package/client/styles/components.css +22 -5
  14. package/npmchanges.md +67 -0
  15. package/package.json +7 -7
  16. package/packages/mailx-imap/index.d.ts +1 -0
  17. package/packages/mailx-imap/index.d.ts.map +1 -1
  18. package/packages/mailx-imap/index.js +34 -4
  19. package/packages/mailx-imap/index.js.map +1 -1
  20. package/packages/mailx-imap/index.ts +32 -5
  21. package/packages/mailx-imap/package-lock.json +2 -2
  22. package/packages/mailx-imap/package.json +1 -1
  23. package/packages/mailx-service/index.d.ts.map +1 -1
  24. package/packages/mailx-service/index.js +10 -0
  25. package/packages/mailx-service/index.js.map +1 -1
  26. package/packages/mailx-service/index.ts +10 -0
  27. package/packages/mailx-service/package.json +1 -1
  28. package/packages/mailx-settings/package.json +1 -1
  29. package/packages/mailx-store/package.json +1 -1
  30. package/packages/mailx-store-web/package.json +1 -1
  31. package/packages/mailx-types/index.d.ts +10 -4
  32. package/packages/mailx-types/index.d.ts.map +1 -1
  33. package/packages/mailx-types/index.js.map +1 -1
  34. package/packages/mailx-types/index.ts +10 -4
  35. package/packages/mailx-types/package.json +1 -1
  36. /package/packages/mailx-imap/{node_modules.npmglobalize-stash-40440 → node_modules.npmglobalize-stash-39180}/.package-lock.json +0 -0
@@ -13482,6 +13482,23 @@ function syncFilterFlaggedButton() {
13482
13482
  btn.classList.toggle("active", !!optFlagged?.checked);
13483
13483
  btn.setAttribute("aria-pressed", optFlagged?.checked ? "true" : "false");
13484
13484
  }
13485
+ function syncFilterChip() {
13486
+ const chip = document.getElementById("ml-filter-chip");
13487
+ if (!chip) return;
13488
+ const flagged = !!document.getElementById("opt-flagged")?.checked;
13489
+ const priority = !!document.getElementById("opt-priority-only")?.checked;
13490
+ const names = [flagged ? "flagged (\u2605) messages" : "", priority ? "priority senders" : ""].filter(Boolean);
13491
+ if (!names.length) {
13492
+ chip.hidden = true;
13493
+ return;
13494
+ }
13495
+ chip.hidden = false;
13496
+ chip.textContent = "Showing " + names.join(" and ") + " only \u2014 click to show everything";
13497
+ chip.title = "Clear the list filter";
13498
+ }
13499
+ document.getElementById("ml-filter-chip")?.addEventListener("click", () => {
13500
+ document.dispatchEvent(new CustomEvent("mailx-clear-list-filters"));
13501
+ });
13485
13502
  function applyFlaggedFilter(on) {
13486
13503
  try {
13487
13504
  logClientEvent("applyFlaggedFilter", { on, caller: new Error().stack?.split("\n").slice(2, 5).join(" | ") });
@@ -13493,6 +13510,7 @@ function applyFlaggedFilter(on) {
13493
13510
  else body?.classList.remove("flagged-only");
13494
13511
  localStorage.setItem("mailx-flagged", String(on));
13495
13512
  syncFilterFlaggedButton();
13513
+ syncFilterChip();
13496
13514
  reloadCurrentFolder();
13497
13515
  }
13498
13516
  optFlagged?.addEventListener("change", () => {
@@ -13502,6 +13520,7 @@ document.getElementById("btn-filter-flagged")?.addEventListener("click", () => {
13502
13520
  applyFlaggedFilter(!optFlagged?.checked);
13503
13521
  });
13504
13522
  syncFilterFlaggedButton();
13523
+ syncFilterChip();
13505
13524
  var optPriorityOnly = document.getElementById("opt-priority-only");
13506
13525
  if (optPriorityOnly) {
13507
13526
  optPriorityOnly.checked = localStorage.getItem("mailx-priority-only") === "true";
@@ -13512,6 +13531,7 @@ if (optPriorityOnly) {
13512
13531
  if (optPriorityOnly.checked) body?.classList.add("priority-only");
13513
13532
  else body?.classList.remove("priority-only");
13514
13533
  localStorage.setItem("mailx-priority-only", String(optPriorityOnly.checked));
13534
+ syncFilterChip();
13515
13535
  });
13516
13536
  }
13517
13537
  document.addEventListener("mailx-clear-list-filters", () => {