@iyulab/components 1.24.0 β 1.25.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.25.0] - 2026-08-05
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- π΄**`u-field`: the documented `validation-message` attribute never applied.** Lit derives
|
|
8
|
+
the default attribute name by **lowercasing** the property name β not by kebab-casing it β
|
|
9
|
+
so `validationMessage` was only reachable as `validationmessage`. Every usage in the
|
|
10
|
+
documentation and examples wrote `validation-message`, which set nothing and left the
|
|
11
|
+
error text invisible. The attribute name is now declared explicitly, matching the
|
|
12
|
+
convention already used elsewhere (`show-delay`, `hide-delay`).
|
|
13
|
+
|
|
14
|
+
```html
|
|
15
|
+
<u-field label="Name" invalid validation-message="Name is required.">
|
|
16
|
+
<u-input></u-input>
|
|
17
|
+
</u-field>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Property bindings (`.validationMessage=${β¦}`) are unaffected.
|
|
21
|
+
|
|
3
22
|
## [1.24.0] - 2026-08-04
|
|
4
23
|
|
|
5
24
|
### Added
|
|
@@ -18,7 +18,14 @@ export declare class UField extends UElement {
|
|
|
18
18
|
label?: string;
|
|
19
19
|
/** νλ¨ μ€λͺ
ν
μ€νΈ */
|
|
20
20
|
description?: string;
|
|
21
|
-
/**
|
|
21
|
+
/**
|
|
22
|
+
* μ ν¨μ± κ²μ¬ μ€ν¨ μ νμν λ©μμ§.
|
|
23
|
+
*
|
|
24
|
+
* β **μμ± μ΄λ¦μ λͺ
μνλ€.** Lit μ κΈ°λ³Έ μμ±λͺ
μ νλ‘νΌν°λͺ
μ **μλ¬Έμν**ν κ²μ΄λΌ
|
|
25
|
+
* (kebab μ΄ μλλ€) κ·Έλλ‘ λλ©΄ `validationmessage` κ° λλλ°, λ¬ΈμΒ·μνΒ·μλΉ μ½λκ°
|
|
26
|
+
* μ λΆ `validation-message` λ‘ μ κ³ μμκ³ κ·Έ ννλ **μ무κ²λ μ€μ νμ§ μμλ€**.
|
|
27
|
+
* νμ νλ‘νΌν°λ€λ λͺ
μνμ μ΄λ€(`show-delay`Β·`hide-delay`).
|
|
28
|
+
*/
|
|
22
29
|
validationMessage?: string;
|
|
23
30
|
render(): import('lit-html').TemplateResult<1>;
|
|
24
31
|
private renderFooter;
|
|
@@ -58,7 +58,10 @@ __decorate([property({
|
|
|
58
58
|
}), __decorateMetadata("design:type", Boolean)], UField.prototype, "invalid", void 0);
|
|
59
59
|
__decorate([property({ type: String }), __decorateMetadata("design:type", String)], UField.prototype, "label", void 0);
|
|
60
60
|
__decorate([property({ type: String }), __decorateMetadata("design:type", String)], UField.prototype, "description", void 0);
|
|
61
|
-
__decorate([property({
|
|
61
|
+
__decorate([property({
|
|
62
|
+
type: String,
|
|
63
|
+
attribute: "validation-message"
|
|
64
|
+
}), __decorateMetadata("design:type", String)], UField.prototype, "validationMessage", void 0);
|
|
62
65
|
UField = __decorate([customElement("u-field")], UField);
|
|
63
66
|
//#endregion
|
|
64
67
|
export { UField };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iyulab/components",
|
|
3
3
|
"description": "web-components library based on lit-element made by iyulab",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.25.0",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"iyulab",
|
|
7
7
|
"components",
|
|
@@ -25,6 +25,13 @@
|
|
|
25
25
|
],
|
|
26
26
|
"type": "module",
|
|
27
27
|
"types": "./dist/index.d.ts",
|
|
28
|
+
"engines": {
|
|
29
|
+
"node": ">=20"
|
|
30
|
+
},
|
|
31
|
+
"sideEffects": [
|
|
32
|
+
"./src/components/*/U*.ts",
|
|
33
|
+
"./dist/components/*/U*.js"
|
|
34
|
+
],
|
|
28
35
|
"exports": {
|
|
29
36
|
".": {
|
|
30
37
|
"types": "./dist/index.d.ts",
|
|
@@ -34,7 +34,7 @@ Checkbox with `indeterminate` state support. Form-associated (`formAssociated =
|
|
|
34
34
|
| `checked` | `boolean` | `false` | β | Checked state |
|
|
35
35
|
| `indeterminate` | `boolean` | `false` | β | Partial / indeterminate state |
|
|
36
36
|
| `variant` | `'filled'\|'outline'` | `'filled'` | β | Visual style |
|
|
37
|
-
| `color` | `'blue'\|'green'\|'red'\|'orange'\|'teal'\|'cyan'\|'purple'\|'pink'\|'neutral'` | `'blue'` | β | Accent color |
|
|
37
|
+
| `color` | `'primary'\|'info'\|'success'\|'warning'\|'danger'\|'blue'\|'green'\|'red'\|'orange'\|'teal'\|'cyan'\|'purple'\|'pink'\|'neutral'` | `'blue'` | β | Accent color β role axis (`primary`β¦`danger`, follows rebranding) and decorative axis (`blue`β¦, immune to it) |
|
|
38
38
|
| `disabled` | `boolean` | `false` | β | Disable the control |
|
|
39
39
|
| `readonly` | `boolean` | `false` | β | Read-only |
|
|
40
40
|
| `required` | `boolean` | `false` | β | Required field |
|
|
@@ -28,7 +28,7 @@ Animated circular spinner for loading states. Optional label below the spinner v
|
|
|
28
28
|
|
|
29
29
|
| Property | Type | Default | Reflect | Description |
|
|
30
30
|
|----------|------|---------|---------|-------------|
|
|
31
|
-
| `color` | `'neutral'\|'blue'\|'green'\|'yellow'\|'red'\|'orange'\|'teal'\|'cyan'\|'purple'\|'pink'` | β | β | Spinner color preset |
|
|
31
|
+
| `color` | `'neutral'\|'primary'\|'info'\|'success'\|'warning'\|'danger'\|'blue'\|'green'\|'yellow'\|'red'\|'orange'\|'teal'\|'cyan'\|'purple'\|'pink'` | β | β | Spinner color preset β role axis (`primary`β¦`danger`, follows rebranding) and decorative axis (`blue`β¦, immune to it) |
|
|
32
32
|
|
|
33
33
|
## CSS Parts
|
|
34
34
|
|