ngx-dynamic-entity 1.9.1 → 1.11.0
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/README.md +9 -2
- package/fesm2022/ngx-dynamic-entity.mjs +1451 -314
- package/fesm2022/ngx-dynamic-entity.mjs.map +1 -1
- package/package.json +2 -2
- package/styles.css +723 -195
- package/types/ngx-dynamic-entity.d.ts +310 -20
package/README.md
CHANGED
|
@@ -123,7 +123,9 @@ setDateFormatters({
|
|
|
123
123
|
});
|
|
124
124
|
```
|
|
125
125
|
|
|
126
|
-
A partial object overrides one kind; `setDateFormatters()` restores the defaults.
|
|
126
|
+
A partial object overrides one kind; `setDateFormatters()` restores the defaults. Every
|
|
127
|
+
read-only `date`, `datetime` and `time` field goes through it, as does the record view's
|
|
128
|
+
summary panel, so one value cannot render two ways depending on where you look.
|
|
127
129
|
|
|
128
130
|
---
|
|
129
131
|
|
|
@@ -201,7 +203,12 @@ that do not want the section flow.
|
|
|
201
203
|
| Output | Payload |
|
|
202
204
|
|---|---|
|
|
203
205
|
| `formSubmit` / `formChange` / `formReset` | As the form component. |
|
|
204
|
-
| `sectionSave` | `{ tabId, record }` — one tab was saved. |
|
|
206
|
+
| `sectionSave` | `{ tabId, record }` — one tab was saved. Carries the **whole** record, not the tab's slice. |
|
|
207
|
+
| `saveRejected` | `{ reason, error? }` — a `beforeSave` hook aborted the save. |
|
|
208
|
+
|
|
209
|
+
A `beforeSave` hook governs **both** ways out of this component — the whole-record Save and
|
|
210
|
+
"Save section" — and `saveRejected` fires for either. Bind it: an aborted save with nothing
|
|
211
|
+
listening is indistinguishable from a button that does nothing.
|
|
205
212
|
|
|
206
213
|
**RBAC applies on top of all three.** Roles outside `permissions.edit` get a read-only
|
|
207
214
|
record whichever presentation you choose — see [Security](#-security), because that is a
|