@yourself.create/ngx-form-designer 0.0.1 → 0.0.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/fesm2022/{notdefined-ngx-form-designer.mjs → uch-web-ngx-form-designer.mjs} +2867 -409
- package/fesm2022/uch-web-ngx-form-designer.mjs.map +1 -0
- package/index.d.ts +1 -1
- package/lib/ai/ai-tool-registry.service.d.ts +1 -1
- package/lib/ai/plugins/form-designer-tool-plugin.d.ts +1 -1
- package/lib/ai/provide-form-designer-angai-feature.d.ts +16 -0
- package/lib/ai/tools/designer-read-tools.d.ts +1 -1
- package/lib/ai/tools/designer-write-tools.d.ts +1 -1
- package/lib/ai/tools/schema-patch-tool.d.ts +1 -1
- package/lib/form-core/form-engine.d.ts +7 -3
- package/lib/form-core/form-event-runner.d.ts +14 -0
- package/lib/form-core/form-journey.models.d.ts +30 -0
- package/lib/form-core/models.d.ts +7 -1
- package/lib/form-designer/designer-state.service.d.ts +1 -1
- package/lib/form-designer/events-workspace.component.d.ts +28 -3
- package/lib/form-designer/form-designer-shell.component.d.ts +30 -5
- package/lib/form-designer/form-journey-state.service.d.ts +28 -0
- package/lib/form-designer/form-preview.component.d.ts +21 -2
- package/lib/form-designer/inspector-sections/inspector-backgrounds-section.component.d.ts +5 -0
- package/lib/form-designer/inspector-sections/inspector-typography-section.component.d.ts +1 -0
- package/lib/form-designer/json-form-designer.component.d.ts +21 -2
- package/lib/form-designer/layout-canvas.component.d.ts +4 -2
- package/lib/form-designer/template-library.d.ts +2 -0
- package/lib/form-designer/widget-inspector.component.d.ts +1 -1
- package/lib/form-renderer/form-journey-viewer.component.d.ts +51 -0
- package/lib/form-renderer/form-viewer/form-viewer.component.d.ts +16 -3
- package/lib/form-renderer/json-form-renderer.component.d.ts +10 -2
- package/lib/form-renderer/layout-node.component.d.ts +2 -1
- package/lib/ui/ui-color-swatch.component.d.ts +1 -0
- package/lib/website/website-designer-shell.component.d.ts +4 -4
- package/lib/website/website-preview-shell.component.d.ts +4 -4
- package/lib/widgets/field-widgets/checkbox-group/checkbox-group-widget.component.d.ts +5 -0
- package/lib/widgets/field-widgets/option-field-labels.d.ts +3 -0
- package/lib/widgets/field-widgets/radio/radio-widget.component.d.ts +5 -0
- package/lib/widgets/field-widgets/search/search-widget.component.d.ts +4 -0
- package/lib/widgets/field-widgets/select/select-widget.component.d.ts +9 -0
- package/lib/widgets/field-widgets/text-field/text-field.component.d.ts +3 -0
- package/lib/widgets/page-widgets/brick-settings.component.d.ts +1 -1
- package/package.json +6 -5
- package/public-api.d.ts +4 -0
- package/fesm2022/notdefined-ngx-form-designer.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -28,7 +28,7 @@ Full beginner-friendly docs live in `projects/ngx-form-designer/docs/README.md`:
|
|
|
28
28
|
## Installation
|
|
29
29
|
|
|
30
30
|
```bash
|
|
31
|
-
npm install @
|
|
31
|
+
npm install @uch-web/ngx-form-designer
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
## Dependencies
|
|
@@ -43,11 +43,11 @@ This library relies on **Tailwind CSS** and **lucide-angular** for UI styling an
|
|
|
43
43
|
```javascript
|
|
44
44
|
module.exports = {
|
|
45
45
|
presets: [
|
|
46
|
-
require('@
|
|
46
|
+
require('@uch-web/ngx-form-designer/tailwind.preset.js')
|
|
47
47
|
],
|
|
48
48
|
content: [
|
|
49
49
|
"./src/**/*.{html,ts}",
|
|
50
|
-
"./node_modules/@
|
|
50
|
+
"./node_modules/@uch-web/ngx-form-designer/**/*.{html,ts,mjs}"
|
|
51
51
|
],
|
|
52
52
|
}
|
|
53
53
|
```
|
|
@@ -81,7 +81,7 @@ Import `JsonFormDesignerComponent` (standalone) into your component or route.
|
|
|
81
81
|
|
|
82
82
|
```typescript
|
|
83
83
|
import { Component } from '@angular/core';
|
|
84
|
-
import { JsonFormDesignerComponent } from '@
|
|
84
|
+
import { JsonFormDesignerComponent } from '@uch-web/ngx-form-designer';
|
|
85
85
|
|
|
86
86
|
@Component({
|
|
87
87
|
standalone: true,
|
|
@@ -95,7 +95,7 @@ If you want the full scaffolded UI (top bar + template library) with minimal set
|
|
|
95
95
|
|
|
96
96
|
```typescript
|
|
97
97
|
import { Component } from '@angular/core';
|
|
98
|
-
import { FormDesignerShellComponent, type DesignerEventApiDefinition } from '@
|
|
98
|
+
import { FormDesignerShellComponent, type DesignerEventApiDefinition } from '@uch-web/ngx-form-designer';
|
|
99
99
|
|
|
100
100
|
@Component({
|
|
101
101
|
standalone: true,
|
|
@@ -113,7 +113,7 @@ Widgets are registered via plugins. The simplest setup is to register the built-
|
|
|
113
113
|
|
|
114
114
|
```ts
|
|
115
115
|
import { ApplicationConfig } from '@angular/core';
|
|
116
|
-
import { CORE_DESIGNER_PLUGINS, provideDesignerPlugins } from '@
|
|
116
|
+
import { CORE_DESIGNER_PLUGINS, provideDesignerPlugins } from '@uch-web/ngx-form-designer';
|
|
117
117
|
|
|
118
118
|
export const appConfig: ApplicationConfig = {
|
|
119
119
|
providers: [
|
|
@@ -183,7 +183,7 @@ If you use the HTTP-based `DataSourceClient`, your backend should implement thes
|
|
|
183
183
|
Use this for rapid prototyping or testing without a real backend.
|
|
184
184
|
|
|
185
185
|
```typescript
|
|
186
|
-
import { DataCatalog, InMemoryDataCatalogService } from '@
|
|
186
|
+
import { DataCatalog, InMemoryDataCatalogService } from '@uch-web/ngx-form-designer';
|
|
187
187
|
|
|
188
188
|
// in app.config.ts
|
|
189
189
|
providers: [
|
|
@@ -195,7 +195,7 @@ providers: [
|
|
|
195
195
|
Use this to connect to your real API.
|
|
196
196
|
|
|
197
197
|
```typescript
|
|
198
|
-
import { provideHttpDataSourceClient } from '@
|
|
198
|
+
import { provideHttpDataSourceClient } from '@uch-web/ngx-form-designer';
|
|
199
199
|
|
|
200
200
|
// in app.config.ts
|
|
201
201
|
providers: [
|