@dynamic-field-kit/angular 1.0.0 → 1.0.2

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.
Files changed (3) hide show
  1. package/README.md +59 -3
  2. package/dist/README.md +59 -3
  3. package/package.json +11 -2
package/README.md CHANGED
@@ -4,6 +4,62 @@ Lightweight Angular adapters for `@dynamic-field-kit/core`.
4
4
 
5
5
  This package mirrors the React package structure and exposes Angular components that integrate with the shared `fieldRegistry` from `@dynamic-field-kit/core`.
6
6
 
7
- Notes:
8
- - The Angular package expects Angular runtime (peer) and uses dynamic component creation to mount field renderers registered in the shared registry.
9
- - This is a minimal scaffold to enable Angular integration patterns similar to the React package.
7
+ Quick overview
8
+ - Exports a minimal Angular integration: `DynamicInput`, `FieldInput`, `MultiFieldInput`, layout components and `DynamicFieldKitModule` (see `src/public-api.ts`).
9
+ - Designed for local development (source import) and can be packaged with `ng-packagr` for distribution.
10
+
11
+ Usage (consumer Angular app)
12
+
13
+ 1. Install the package (recommended: use packaged artifact or local `file:` during development):
14
+
15
+ ```bash
16
+ # from your Angular app
17
+ npm install @dynamic-field-kit/core @dynamic-field-kit/angular
18
+ ```
19
+
20
+ 2. Import the module in your `AppModule`:
21
+
22
+ ```ts
23
+ import { DynamicFieldKitModule } from '@dynamic-field-kit/angular'
24
+
25
+ @NgModule({
26
+ imports: [BrowserModule, DynamicFieldKitModule],
27
+ })
28
+ export class AppModule {}
29
+ ```
30
+
31
+ 3. Register Angular component classes into the shared registry at app startup (example):
32
+
33
+ ```ts
34
+ // src/main.ts
35
+ import '@dynamic-field-kit/angular/src/examples' // registers example component into fieldRegistry
36
+ ```
37
+
38
+ Then use the Angular adapter components (`dfk-multi-field-input`, etc.) in templates.
39
+
40
+ Local development
41
+ - You can import the package source directly in your Angular app using `file:` references in `package.json` (see `example/angular-instructions.md` and `example/angular-app/` for a scaffold).
42
+
43
+ Build & publish
44
+ - This package supports `ng-packagr`. To build locally:
45
+
46
+ ```bash
47
+ cd packages/angular
48
+ npm install --no-audit --no-fund --save-dev ng-packagr rimraf
49
+ npm run build
50
+ ```
51
+
52
+ - To publish to npm (scoped package), ensure `publishConfig.access` is `public` and run:
53
+
54
+ ```bash
55
+ cd packages/angular
56
+ npm publish --access public
57
+ ```
58
+
59
+ Notes & caveats
60
+ - The Angular adapter expects consumers to register Angular component classes (not React components) in `fieldRegistry` when using the Angular runtime.
61
+ - The package exports a `DynamicFieldKitModule` to simplify consumer imports, and also provides standalone components for more advanced composition.
62
+
63
+ Examples & docs
64
+ - See `example/angular-instructions.md` for detailed wiring steps.
65
+ - Try the local scaffold at `example/angular-app/` for a hands-on demo.
package/dist/README.md CHANGED
@@ -4,6 +4,62 @@ Lightweight Angular adapters for `@dynamic-field-kit/core`.
4
4
 
5
5
  This package mirrors the React package structure and exposes Angular components that integrate with the shared `fieldRegistry` from `@dynamic-field-kit/core`.
6
6
 
7
- Notes:
8
- - The Angular package expects Angular runtime (peer) and uses dynamic component creation to mount field renderers registered in the shared registry.
9
- - This is a minimal scaffold to enable Angular integration patterns similar to the React package.
7
+ Quick overview
8
+ - Exports a minimal Angular integration: `DynamicInput`, `FieldInput`, `MultiFieldInput`, layout components and `DynamicFieldKitModule` (see `src/public-api.ts`).
9
+ - Designed for local development (source import) and can be packaged with `ng-packagr` for distribution.
10
+
11
+ Usage (consumer Angular app)
12
+
13
+ 1. Install the package (recommended: use packaged artifact or local `file:` during development):
14
+
15
+ ```bash
16
+ # from your Angular app
17
+ npm install @dynamic-field-kit/core @dynamic-field-kit/angular
18
+ ```
19
+
20
+ 2. Import the module in your `AppModule`:
21
+
22
+ ```ts
23
+ import { DynamicFieldKitModule } from '@dynamic-field-kit/angular'
24
+
25
+ @NgModule({
26
+ imports: [BrowserModule, DynamicFieldKitModule],
27
+ })
28
+ export class AppModule {}
29
+ ```
30
+
31
+ 3. Register Angular component classes into the shared registry at app startup (example):
32
+
33
+ ```ts
34
+ // src/main.ts
35
+ import '@dynamic-field-kit/angular/src/examples' // registers example component into fieldRegistry
36
+ ```
37
+
38
+ Then use the Angular adapter components (`dfk-multi-field-input`, etc.) in templates.
39
+
40
+ Local development
41
+ - You can import the package source directly in your Angular app using `file:` references in `package.json` (see `example/angular-instructions.md` and `example/angular-app/` for a scaffold).
42
+
43
+ Build & publish
44
+ - This package supports `ng-packagr`. To build locally:
45
+
46
+ ```bash
47
+ cd packages/angular
48
+ npm install --no-audit --no-fund --save-dev ng-packagr rimraf
49
+ npm run build
50
+ ```
51
+
52
+ - To publish to npm (scoped package), ensure `publishConfig.access` is `public` and run:
53
+
54
+ ```bash
55
+ cd packages/angular
56
+ npm publish --access public
57
+ ```
58
+
59
+ Notes & caveats
60
+ - The Angular adapter expects consumers to register Angular component classes (not React components) in `fieldRegistry` when using the Angular runtime.
61
+ - The package exports a `DynamicFieldKitModule` to simplify consumer imports, and also provides standalone components for more advanced composition.
62
+
63
+ Examples & docs
64
+ - See `example/angular-instructions.md` for detailed wiring steps.
65
+ - Try the local scaffold at `example/angular-app/` for a hands-on demo.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-field-kit/angular",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "private": false,
5
5
  "main": "dist/bundles/dynamic-field-kit-angular.umd.js",
6
6
  "module": "dist/fesm2015/dynamic-field-kit-angular.js",
@@ -29,5 +29,14 @@
29
29
  "devDependencies": {
30
30
  "ng-packagr": "^21.1.0",
31
31
  "rimraf": "^6.1.3"
32
- }
32
+ },
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "git+https://github.com/vannt-dev/dynamic-field-kit.git"
36
+ },
37
+ "keywords": [
38
+ "dynamic-field",
39
+ "dynamic-field-kit",
40
+ "dynamic-field-kit/angular"
41
+ ]
33
42
  }