@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.
- package/.commitmsg +28 -24
- package/client/android-bootstrap.bundle.js.map +2 -2
- package/client/app.bundle.js +20 -0
- package/client/app.bundle.js.map +2 -2
- package/client/app.js +27 -1
- package/client/app.js.map +1 -1
- package/client/app.ts +25 -1
- package/client/compose/compose.bundle.js.map +2 -2
- package/client/compose/compose.js +7 -4
- package/client/compose/compose.js.map +1 -1
- package/client/compose/compose.ts +7 -4
- package/client/index.html +5 -0
- package/client/styles/components.css +22 -5
- package/npmchanges.md +67 -0
- package/package.json +7 -7
- package/packages/mailx-imap/index.d.ts +1 -0
- package/packages/mailx-imap/index.d.ts.map +1 -1
- package/packages/mailx-imap/index.js +34 -4
- package/packages/mailx-imap/index.js.map +1 -1
- package/packages/mailx-imap/index.ts +32 -5
- package/packages/mailx-imap/package-lock.json +2 -2
- package/packages/mailx-imap/package.json +1 -1
- package/packages/mailx-service/index.d.ts.map +1 -1
- package/packages/mailx-service/index.js +10 -0
- package/packages/mailx-service/index.js.map +1 -1
- package/packages/mailx-service/index.ts +10 -0
- package/packages/mailx-service/package.json +1 -1
- package/packages/mailx-settings/package.json +1 -1
- package/packages/mailx-store/package.json +1 -1
- package/packages/mailx-store-web/package.json +1 -1
- package/packages/mailx-types/index.d.ts +10 -4
- package/packages/mailx-types/index.d.ts.map +1 -1
- package/packages/mailx-types/index.js.map +1 -1
- package/packages/mailx-types/index.ts +10 -4
- package/packages/mailx-types/package.json +1 -1
- /package/packages/mailx-imap/{node_modules.npmglobalize-stash-40440 → node_modules.npmglobalize-stash-39180}/.package-lock.json +0 -0
package/client/app.bundle.js
CHANGED
|
@@ -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", () => {
|