@fusion.dev/helix-core 0.15.2 → 0.15.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.
|
@@ -15,6 +15,14 @@ export interface DisabledCascadeOptions {
|
|
|
15
15
|
*/
|
|
16
16
|
type DisableableHost = ReactiveControllerHost & HTMLElement & {
|
|
17
17
|
disabled: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* The form-associated reading, where the host has one.
|
|
20
|
+
*
|
|
21
|
+
* Optional because not every group that cascades is form-associated: Toggle
|
|
22
|
+
* Group is a plain element with a `disabled` of its own and nothing to
|
|
23
|
+
* inherit from a fieldset.
|
|
24
|
+
*/
|
|
25
|
+
isDisabled?: boolean;
|
|
18
26
|
renderRoot: DocumentFragment | HTMLElement;
|
|
19
27
|
};
|
|
20
28
|
/**
|
|
@@ -2,7 +2,7 @@ import { inheritDisabled, } from '../../utils/inherit-disabled/inherit-disabled.
|
|
|
2
2
|
export class DisabledCascadeController {
|
|
3
3
|
constructor(host, { items }) {
|
|
4
4
|
this.cascade = () => {
|
|
5
|
-
inheritDisabled(this.host.disabled, this.items());
|
|
5
|
+
inheritDisabled(this.host.isDisabled ?? this.host.disabled, this.items());
|
|
6
6
|
};
|
|
7
7
|
this.host = host;
|
|
8
8
|
this.items = items;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fusion.dev/helix-core",
|
|
3
3
|
"description": "Helix element primitives: base classes, mixins, decorators, utilities.",
|
|
4
|
-
"version": "0.15.
|
|
4
|
+
"version": "0.15.4",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Ross Sheppard <ross.sheppard@fusion.dev>",
|
|
7
7
|
"repository": {
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
"bugs": "https://github.com/project-fusion/fusion/issues",
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@floating-ui/dom": "^1.8.0",
|
|
37
|
-
"@fusion.dev/helix-icons": "0.15.
|
|
37
|
+
"@fusion.dev/helix-icons": "0.15.4"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@custom-elements-manifest/analyzer": "^0.11.0",
|
|
41
|
-
"@fusion.dev/helix-cem": "0.15.
|
|
42
|
-
"@fusion.dev/helix-testing": "0.15.
|
|
41
|
+
"@fusion.dev/helix-cem": "0.15.4",
|
|
42
|
+
"@fusion.dev/helix-testing": "0.15.4",
|
|
43
43
|
"lit": "^3.2.1"
|
|
44
44
|
},
|
|
45
45
|
"homepage": "https://fusion.dev",
|