@punica/components-mcp 0.2.0 → 0.3.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/dist/bundled.json +1 -1
- package/dist/custom-elements.json +1693 -702
- package/dist/guide.md +9 -1
- package/package.json +1 -1
package/dist/guide.md
CHANGED
|
@@ -61,6 +61,12 @@ for a label, help text and an error message:
|
|
|
61
61
|
</form>
|
|
62
62
|
```
|
|
63
63
|
|
|
64
|
+
A value set from script (`control.value = 'x'`) reaches the form at the end
|
|
65
|
+
of the current microtask, as every property does. A script that submits in
|
|
66
|
+
the same turn awaits it first: `await control.updateComplete;
|
|
67
|
+
form.requestSubmit()`. Reading the control's `validity`,
|
|
68
|
+
`validationMessage` or `checkValidity()` also brings it up to date at once.
|
|
69
|
+
|
|
64
70
|
## Overlays
|
|
65
71
|
|
|
66
72
|
Dialogs, menus, popovers and drawers open in the browser's top layer: no
|
|
@@ -107,7 +113,9 @@ project has them, look their APIs up there instead of guessing.
|
|
|
107
113
|
- **Forms**: in a project that has `@punica/form-kit`, do not wire
|
|
108
114
|
`punica-field` and its controls by hand. Describe the form as a class
|
|
109
115
|
(`@TextField`, `@SelectField`, …) and render it with `KitForm`; the kit
|
|
110
|
-
draws these elements, validates and shows the errors.
|
|
116
|
+
draws these elements, validates and shows the errors. A form whose markup
|
|
117
|
+
is your own (no React) is bound to the engine with `bindForm` of
|
|
118
|
+
`@punica/form-kit/dom` (from form-kit 0.5).
|
|
111
119
|
- **Messages and confirmations**: `toast()` and `confirm()` are what an
|
|
112
120
|
application shows a failed request and asks before a deletion with.
|
|
113
121
|
|