@maro-tech/form 0.0.17 → 0.1.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 +3 -4
- package/fesm2022/maro-tech-form.mjs +1485 -1228
- package/fesm2022/maro-tech-form.mjs.map +1 -1
- package/package.json +1 -1
- package/types/maro-tech-form.d.ts +103 -110
package/README.md
CHANGED
|
@@ -13,14 +13,13 @@ The package uses the application API through relative `/api` endpoints. The cons
|
|
|
13
13
|
## Available exports
|
|
14
14
|
|
|
15
15
|
- Input controls: text, number, date, datetime, email, password, textarea, select, checkbox, color, slug, file, photo, barcode, and range.
|
|
16
|
-
- `
|
|
17
|
-
- `
|
|
18
|
-
- `UI_DYNAMIC_FORM_OPTIONS_SOURCE_RESOLVERS` for application-specific option providers.
|
|
16
|
+
- `DynamicFormComponent` for rendering a form from a field schema.
|
|
17
|
+
- `UiFormModalComponent` for loading, editing, and submitting a form through `/api/crud/form/...`.
|
|
19
18
|
|
|
20
19
|
## Basic usage
|
|
21
20
|
|
|
22
21
|
```ts
|
|
23
|
-
import {
|
|
22
|
+
import { DynamicFormComponent, UiDynamicFormField } from '@maro-tech/form';
|
|
24
23
|
|
|
25
24
|
readonly fields: UiDynamicFormField[] = [
|
|
26
25
|
{ id: 'name', type: 'text', label: 'Name', required: true },
|