@praxisui/metadata-editor 8.0.0-beta.105 → 8.0.0-beta.106
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 +29 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -21,7 +21,35 @@ Authoring de coleções editáveis: `projects/praxis-metadata-editor/docs/editab
|
|
|
21
21
|
## Instalação
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
|
-
npm i @praxisui/metadata-editor
|
|
24
|
+
npm i @praxisui/metadata-editor@beta
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Minimal standalone field editor
|
|
28
|
+
|
|
29
|
+
```ts
|
|
30
|
+
import { Component } from '@angular/core';
|
|
31
|
+
import { FieldControlType } from '@praxisui/core';
|
|
32
|
+
import { FieldMetadataEditorComponent } from '@praxisui/metadata-editor';
|
|
33
|
+
|
|
34
|
+
@Component({
|
|
35
|
+
selector: 'app-field-metadata-editor-host',
|
|
36
|
+
standalone: true,
|
|
37
|
+
imports: [FieldMetadataEditorComponent],
|
|
38
|
+
template: `
|
|
39
|
+
<praxis-field-metadata-editor
|
|
40
|
+
[controlType]="controlType"
|
|
41
|
+
[seed]="seed"
|
|
42
|
+
(applied)="applyPatch($event)" />
|
|
43
|
+
`,
|
|
44
|
+
})
|
|
45
|
+
export class FieldMetadataEditorHostComponent {
|
|
46
|
+
controlType = FieldControlType.INPUT;
|
|
47
|
+
seed = { name: 'title', label: 'Title' };
|
|
48
|
+
|
|
49
|
+
applyPatch(patch: unknown): void {
|
|
50
|
+
// Persist through the host-owned metadata/config flow.
|
|
51
|
+
}
|
|
52
|
+
}
|
|
25
53
|
```
|
|
26
54
|
|
|
27
55
|
Peer dependencies (Angular v20): `@angular/core`, `@angular/common`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/metadata-editor",
|
|
3
|
-
"version": "8.0.0-beta.
|
|
3
|
+
"version": "8.0.0-beta.106",
|
|
4
4
|
"description": "Metadata editor for Praxis UI fields and components with runtime integration.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^21.0.0",
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
"@angular/cdk": "^21.0.0",
|
|
9
9
|
"@angular/forms": "^21.0.0",
|
|
10
10
|
"@angular/material": "^21.0.0",
|
|
11
|
-
"@praxisui/ai": "^8.0.0-beta.
|
|
12
|
-
"@praxisui/core": "^8.0.0-beta.
|
|
13
|
-
"@praxisui/dynamic-fields": "^8.0.0-beta.
|
|
14
|
-
"@praxisui/settings-panel": "^8.0.0-beta.
|
|
11
|
+
"@praxisui/ai": "^8.0.0-beta.106",
|
|
12
|
+
"@praxisui/core": "^8.0.0-beta.106",
|
|
13
|
+
"@praxisui/dynamic-fields": "^8.0.0-beta.106",
|
|
14
|
+
"@praxisui/settings-panel": "^8.0.0-beta.106",
|
|
15
15
|
"rxjs": "~7.8.0"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|