@fluid-topics/ftds-combobox 2.2.16 → 2.2.17

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.
@@ -34,6 +34,7 @@ export declare abstract class FtdsBaseCombobox<T> extends FtdsBaseComboboxBase i
34
34
  protected willUpdate(props: PropertyValues): void;
35
35
  connectedCallback(): void;
36
36
  disconnectedCallback(): void;
37
+ focus(): void;
37
38
  get shouldRaiseLabel(): boolean;
38
39
  get filteredSuggestions(): SuggestionListboxItem[];
39
40
  get filteredSuggestionsWithLimit(): SuggestionListboxItem[];
@@ -68,6 +68,10 @@ export class FtdsBaseCombobox extends FtdsBaseComboboxBase {
68
68
  super.disconnectedCallback();
69
69
  document.body.removeEventListener("pointerup", this.onBackgroundPointerUp);
70
70
  }
71
+ focus() {
72
+ var _a;
73
+ (_a = this.input) === null || _a === void 0 ? void 0 : _a.focus();
74
+ }
71
75
  get shouldRaiseLabel() {
72
76
  return this.focused || this.inputValue != "";
73
77
  }
@@ -1,4 +1,5 @@
1
1
  import { DesignSystemFamily } from "@fluid-topics/design-system-variables";
2
+ import { FtInputChangeEvent } from "@fluid-topics/ft-wc-utils";
2
3
  import { ComboboxSuggestion, FtdsBaseComboboxProperties } from "./ftds-base-combobox.properties";
3
4
  export interface FtdsComboboxMultiValueProperties extends FtdsBaseComboboxProperties {
4
5
  canSelectAll: boolean;
@@ -7,7 +8,7 @@ export interface FtdsComboboxMultiValueProperties extends FtdsBaseComboboxProper
7
8
  export interface ComboboxValue extends ComboboxSuggestion {
8
9
  status?: DesignSystemFamily;
9
10
  }
10
- export declare class FtdsComboboxMultiValueChangeEvent extends CustomEvent<{
11
+ export declare class FtdsComboboxMultiValueChangeEvent extends FtInputChangeEvent<{
11
12
  values: ComboboxValue[];
12
13
  }> {
13
14
  constructor(values: ComboboxValue[]);
@@ -1,5 +1,6 @@
1
- export class FtdsComboboxMultiValueChangeEvent extends CustomEvent {
1
+ import { FtInputChangeEvent } from "@fluid-topics/ft-wc-utils";
2
+ export class FtdsComboboxMultiValueChangeEvent extends FtInputChangeEvent {
2
3
  constructor(values) {
3
- super("change", { detail: { values } });
4
+ super({ values });
4
5
  }
5
6
  }