@yomotech/view-toolkit 1.0.77 → 1.0.79
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.
|
@@ -542,6 +542,8 @@ function durationText(value, option) {
|
|
|
542
542
|
return `${lead ? String(hours).padStart(2, '0') : hours}:${String(minutes).padStart(2, '0')}`;
|
|
543
543
|
}
|
|
544
544
|
|
|
545
|
+
// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-18
|
|
546
|
+
// - fix: testWrites - a delete in a browser list stays on the device and needs no "books" (tm-guided B7-B13 tidy up)
|
|
545
547
|
// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-13
|
|
546
548
|
// - new: messages of the rules between fields - notBefore, notAfter, minDuration, maxDuration ({{other}}, {{limit}};
|
|
547
549
|
// project texts errorMessage_xx.json under the same keys; OFFENE-PUNKTE 225 A)
|
|
@@ -777,7 +779,9 @@ function testWrites(option) {
|
|
|
777
779
|
const writes = option?.storageType === 'database'
|
|
778
780
|
// a save into a browser list stays on the device (PageData.keep)
|
|
779
781
|
|| (actionName(option) === 'save' && !BROWSER_STORAGES.includes(String(option?.storageType ?? '').toLowerCase()))
|
|
780
|
-
|
|
782
|
+
// a delete in a browser list stays on the device (no backend is asked) - only a backend delete writes
|
|
783
|
+
|| (actionName(option) === 'delete' && !BROWSER_STORAGES.includes(String(option?.storageType ?? '').toLowerCase()))
|
|
784
|
+
|| actionName(option) === 'saveAll'
|
|
781
785
|
// a submit that sends to the backend (luv2shop's Purchase: submit, data_url checkout/purchase)
|
|
782
786
|
|| (actionName(option) === 'submit' && toBackend);
|
|
783
787
|
return writes ? 'true' : 'false';
|
|
@@ -17748,6 +17752,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
|
|
|
17748
17752
|
args: [{ providedIn: 'root' }]
|
|
17749
17753
|
}] });
|
|
17750
17754
|
|
|
17755
|
+
// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-18
|
|
17756
|
+
// - fix: remove shows the delete button's successMessage (deps.sent) - the contract allows it, it was never shown (B10)
|
|
17751
17757
|
// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-15
|
|
17752
17758
|
// - new: a server answering the whole list at once (no page numbers, more records than a page) is shown a page at a
|
|
17753
17759
|
// time - scrolling adds the next page out of that answer without asking again (tm-guided B16: P5 sends the whole
|
|
@@ -18028,11 +18034,16 @@ class PageData {
|
|
|
18028
18034
|
return false;
|
|
18029
18035
|
try {
|
|
18030
18036
|
if (isBrowserSource(this.source)) {
|
|
18031
|
-
|
|
18037
|
+
const done = await this.removeLocal([index]);
|
|
18038
|
+
// its successMessage after the delete (the contract has it; it was never shown)
|
|
18039
|
+
if (done)
|
|
18040
|
+
this.deps.sent?.({ sent: 1, failed: 0 }, option);
|
|
18041
|
+
return done;
|
|
18032
18042
|
}
|
|
18033
18043
|
const record = this.records[index];
|
|
18034
18044
|
await this.deps.sendBackend({ method: 'DELETE', ...option, data_url: this.legacyUrl(option, record) }, [record], { record });
|
|
18035
18045
|
await this.load();
|
|
18046
|
+
this.deps.sent?.({ sent: 1, failed: 0 }, option);
|
|
18036
18047
|
return true;
|
|
18037
18048
|
}
|
|
18038
18049
|
catch (error) {
|