@fusion.dev/helix-headless 0.178.0 → 0.179.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.
@@ -87,6 +87,12 @@ export declare class HelixHeadlessSpeedDialItem extends HelixElement {
87
87
  * keyboard controller uses for the arrow keys.
88
88
  */
89
89
  focusItem(): void;
90
+ /**
91
+ * Presses the action, as `click()` presses a native button: passed to the
92
+ * control inside, which is what answers a click, so a script's `click()`
93
+ * chooses the action and follows its link, once.
94
+ */
95
+ click(): void;
90
96
  /** Chooses the action, the same as pressing it. */
91
97
  select(): void;
92
98
  /**
@@ -43,6 +43,15 @@ let HelixHeadlessSpeedDialItem = class HelixHeadlessSpeedDialItem extends HelixE
43
43
  focusItem() {
44
44
  this.focus();
45
45
  }
46
+ click() {
47
+ const control = this.partNamed('item');
48
+ if (control) {
49
+ control.click();
50
+ }
51
+ else {
52
+ super.click();
53
+ }
54
+ }
46
55
  select() {
47
56
  this.choose();
48
57
  }
@@ -112,6 +112,12 @@ export declare class HelixHeadlessTab extends HelixHeadlessTab_base {
112
112
  * which changes nothing and so re-renders nothing.
113
113
  */
114
114
  protected firstUpdated(changed: PropertyValues): void;
115
+ /**
116
+ * Presses the tab, as `click()` presses a native button: passed to the
117
+ * control inside, which is what answers a click, so a script's `click()`
118
+ * selects the tab, or follows its link, once.
119
+ */
120
+ click(): void;
115
121
  protected render(): TemplateResult;
116
122
  }
117
123
  declare global {
@@ -67,6 +67,15 @@ let HelixHeadlessTab = class HelixHeadlessTab extends MixinDismissible(MixinSele
67
67
  super.firstUpdated(changed);
68
68
  this.finishHydration();
69
69
  }
70
+ click() {
71
+ const control = this.partNamed('tab');
72
+ if (control) {
73
+ control.click();
74
+ }
75
+ else {
76
+ super.click();
77
+ }
78
+ }
70
79
  render() {
71
80
  const tabindex = this.selected || !this.childrenKnown ? '0' : '-1';
72
81
  const shortcut = this.dismissible && !this.disabled ? 'Delete' : nothing;