ngx-dynamic-entity 3.0.0-rc.2 → 3.0.0-rc.4
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 +8 -8
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# ngx-dynamic-entity
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/ngx-dynamic-entity)
|
|
4
|
-
[](
|
|
4
|
+
[](https://github.com/berserker5619/Dynamic-Entity/blob/main/LICENSE)
|
|
5
5
|
|
|
6
6
|
Angular dynamic form renderer and tabbed record editor, powered by `@dynamic-entity/core`. Supports Angular 17 through 22.
|
|
7
7
|
|
|
@@ -86,11 +86,11 @@ Everything else is an option on `provideNgxDynamicEntity`:
|
|
|
86
86
|
| `sheetParser` | A reader for upload formats beyond delimited text, e.g. `.xlsx` |
|
|
87
87
|
| `importTransport` | Where an import runs — see `provideHttpImportTransport` |
|
|
88
88
|
|
|
89
|
-
Details for each are in [EXTENDING.md](
|
|
89
|
+
Details for each are in [EXTENDING.md](https://github.com/berserker5619/Dynamic-Entity/blob/main/EXTENDING.md).
|
|
90
90
|
|
|
91
91
|
Some field types take an optional collaborator. A `markdown` field renders its source as
|
|
92
92
|
text until you register a renderer — see
|
|
93
|
-
[Markdown](
|
|
93
|
+
[Markdown](https://github.com/berserker5619/Dynamic-Entity/blob/main/EXTENDING.md#markdown) for `MARKDOWN_RENDERER`, which is any function from
|
|
94
94
|
source to HTML.
|
|
95
95
|
|
|
96
96
|
---
|
|
@@ -116,7 +116,7 @@ Values may be `LocalizedText`, a flat string, or — for an app that already has
|
|
|
116
116
|
Transloco or `$localize` — a resolver `(key, defaultText, language) => string` provided
|
|
117
117
|
through `UI_TEXT`. Resolution is per key: anything you leave out keeps its English default.
|
|
118
118
|
`DEFAULT_UI_TEXT` exports every key with its English source string, so a translation file can
|
|
119
|
-
be generated from it. See [i18n](
|
|
119
|
+
be generated from it. See [i18n](https://github.com/berserker5619/Dynamic-Entity/blob/main/EXTENDING.md#validation-messages-and-i18n).
|
|
120
120
|
|
|
121
121
|
---
|
|
122
122
|
|
|
@@ -263,15 +263,15 @@ rendering decision, not an access-control boundary.
|
|
|
263
263
|
|
|
264
264
|
| Output | Payload |
|
|
265
265
|
|---|---|
|
|
266
|
-
| `importComplete` | `ImportResult` — the
|
|
266
|
+
| `importComplete` | `ImportResult` — the rows that failed and why, and the records. In the browser (the default) `records` holds every record and **nothing is stored for you**: this is where you write them. Over HTTP (`provideHttpImportTransport`) the server's `onImport` has already written them, so `records` is empty and `imported` is the count; read `imported ?? records.length` for how many. |
|
|
267
267
|
| `templateReady` | `Blob` — the generated template. |
|
|
268
268
|
|
|
269
269
|
With nothing registered, the file is read and mapped in the browser. The built-in reader
|
|
270
270
|
handles comma CSV, semicolon CSV and TSV, detecting the separator from the header line; a
|
|
271
271
|
`sheetParser` adds other formats. `provideHttpImportTransport({ baseUrl })` moves the same
|
|
272
|
-
wizard onto [`@dynamic-entity/server`](
|
|
272
|
+
wizard onto [`@dynamic-entity/server`](https://github.com/berserker5619/Dynamic-Entity/tree/main/packages/server) for files a tab cannot hold. The column
|
|
273
273
|
contract, numbered array headers and the validation-parity gap are in
|
|
274
|
-
[EXTENDING.md](
|
|
274
|
+
[EXTENDING.md](https://github.com/berserker5619/Dynamic-Entity/blob/main/EXTENDING.md#spreadsheet-import).
|
|
275
275
|
|
|
276
276
|
---
|
|
277
277
|
|
|
@@ -328,5 +328,5 @@ An optional base stylesheet ships with it, driven entirely by custom properties
|
|
|
328
328
|
|
|
329
329
|
Re-skin it by redeclaring tokens such as `--ngx-color-accent` on the same selectors. Add
|
|
330
330
|
`ngx-form-sticky-actions` to a wrapper for a Save bar that stays in view. See the
|
|
331
|
-
[root README](
|
|
331
|
+
[root README](https://github.com/berserker5619/Dynamic-Entity/blob/main/README.md#-styling) for the full token story, and
|
|
332
332
|
`packages/demo-angular/src/styles.css` for a working reference.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ngx-dynamic-entity",
|
|
3
|
-
"version": "3.0.0-rc.
|
|
3
|
+
"version": "3.0.0-rc.4",
|
|
4
4
|
"description": "Angular standalone UI library for rendering dynamic entity forms.",
|
|
5
5
|
"//typings": "Local workspace resolution only: ng-packagr 21 writes types/ngx-dynamic-entity.d.ts into dist/package.json. Do NOT add a 'main' field here — ng-packagr does not generate one, so it would be copied verbatim and resolve wrongly in the published package.",
|
|
6
6
|
"typings": "types/ngx-dynamic-entity.d.ts",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"@angular/common": "^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0 || ^21.0.0 || ^22.0.0",
|
|
9
9
|
"@angular/core": "^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0 || ^21.0.0 || ^22.0.0",
|
|
10
10
|
"@angular/forms": "^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0 || ^21.0.0 || ^22.0.0",
|
|
11
|
-
"@dynamic-entity/core": "^3.0.0-rc.
|
|
11
|
+
"@dynamic-entity/core": "^3.0.0-rc.4",
|
|
12
12
|
"rxjs": "^7.0.0"
|
|
13
13
|
},
|
|
14
14
|
"keywords": [
|