@openmfp/webcomponents 0.19.0 → 0.20.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 +9 -9
- package/mfp-wc-dashboard.js +3521 -60
- package/mfp-webcomponents.js +655 -183
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -38,7 +38,7 @@ The script registers the custom elements globally. After it loads, use the tags
|
|
|
38
38
|
<mfp-wc-declarative-table id="my-table"></mfp-wc-declarative-table>
|
|
39
39
|
|
|
40
40
|
<script type="module">
|
|
41
|
-
document.getElementById('my-table').config = {
|
|
41
|
+
document.getElementById('my-table').config = {/* JSON schema config */};
|
|
42
42
|
</script>
|
|
43
43
|
```
|
|
44
44
|
|
|
@@ -48,17 +48,17 @@ The script registers the custom elements globally. After it loads, use the tags
|
|
|
48
48
|
|
|
49
49
|
### `mfp-webcomponents.js` — full bundle
|
|
50
50
|
|
|
51
|
-
| Custom element
|
|
52
|
-
|
|
53
|
-
| `<mfp-wc-declarative-table>`
|
|
54
|
-
| `<mfp-wc-declarative-form>`
|
|
51
|
+
| Custom element | Description | Documentation |
|
|
52
|
+
| --------------------------------- | ------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------- |
|
|
53
|
+
| `<mfp-wc-declarative-table>` | Data table driven by a JSON schema | [docs/declarative-table.md](https://github.com/openmfp/webcomponents/blob/main/docs/declarative-table.md) |
|
|
54
|
+
| `<mfp-wc-declarative-form>` | Form driven by a JSON schema | [docs/declarative-form.md](https://github.com/openmfp/webcomponents/blob/main/docs/declarative-form.md) |
|
|
55
55
|
| `<mfp-wc-declarative-table-card>` | Table with card wrapper and create/edit/delete dialogs | [docs/declarative-table-card.md](https://github.com/openmfp/webcomponents/blob/main/docs/declarative-table-card.md) |
|
|
56
|
-
| `<mfp-wc-visited-service-card>`
|
|
56
|
+
| `<mfp-wc-visited-service-card>` | Recently visited services card | — |
|
|
57
57
|
|
|
58
58
|
### `mfp-wc-dashboard.js` — dashboard-only bundle
|
|
59
59
|
|
|
60
|
-
| Custom element
|
|
61
|
-
|
|
60
|
+
| Custom element | Description | Documentation |
|
|
61
|
+
| -------------------- | ------------------------------ | ----------------------------------------------------------------------------------------- |
|
|
62
62
|
| `<mfp-wc-dashboard>` | Drag-and-drop dashboard layout | [docs/dashboard.md](https://github.com/openmfp/webcomponents/blob/main/docs/dashboard.md) |
|
|
63
63
|
|
|
64
64
|
### Declarative Form API
|
|
@@ -68,7 +68,7 @@ The script registers the custom elements globally. After it loads, use the tags
|
|
|
68
68
|
```js
|
|
69
69
|
const form = document.querySelector('mfp-wc-declarative-form');
|
|
70
70
|
form.submit(); // triggers form submission
|
|
71
|
-
form.clear();
|
|
71
|
+
form.clear(); // resets all fields
|
|
72
72
|
```
|
|
73
73
|
|
|
74
74
|
### Declarative Table API
|