slim-select 3.0.5 → 3.1.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/index.d.ts CHANGED
@@ -151,7 +151,6 @@ declare class Render {
151
151
  moveContent(): void;
152
152
  searchDiv(): Search;
153
153
  searchFocus(): void;
154
- clearSearch(): void;
155
154
  getOptions(notPlaceholder?: boolean, notDisabled?: boolean, notHidden?: boolean): HTMLDivElement[];
156
155
  highlight(dir: 'up' | 'down'): void;
157
156
  listDiv(): HTMLDivElement;
@@ -184,8 +183,12 @@ declare class Select {
184
183
  onClassChange?: (classes: string[]) => void;
185
184
  onDisabledChange?: (disabled: boolean) => void;
186
185
  onOptionsChange?: (data: (Option_2 | Optgroup)[]) => void;
186
+ onLabelClick?: () => void;
187
187
  private listen;
188
188
  private observer;
189
+ private preventNativeSelect;
190
+ private preventNativeSelectMousedown;
191
+ private preventNativeSelectFocus;
189
192
  constructor(select: HTMLSelectElement);
190
193
  enable(): void;
191
194
  disable(): void;
@@ -205,6 +208,8 @@ declare class Select {
205
208
  updateOptions(data: (Option_2 | Optgroup)[]): void;
206
209
  createOptgroup(optgroup: Optgroup): HTMLOptGroupElement;
207
210
  createOption(info: Option_2): HTMLOptionElement;
211
+ setupLabelHandlers(): void;
212
+ removeLabelHandlers(): void;
208
213
  destroy(): void;
209
214
  }
210
215
 
@@ -151,7 +151,6 @@ declare class Render {
151
151
  moveContent(): void;
152
152
  searchDiv(): Search;
153
153
  searchFocus(): void;
154
- clearSearch(): void;
155
154
  getOptions(notPlaceholder?: boolean, notDisabled?: boolean, notHidden?: boolean): HTMLDivElement[];
156
155
  highlight(dir: 'up' | 'down'): void;
157
156
  listDiv(): HTMLDivElement;
@@ -184,8 +183,12 @@ declare class Select {
184
183
  onClassChange?: (classes: string[]) => void;
185
184
  onDisabledChange?: (disabled: boolean) => void;
186
185
  onOptionsChange?: (data: (Option_2 | Optgroup)[]) => void;
186
+ onLabelClick?: () => void;
187
187
  private listen;
188
188
  private observer;
189
+ private preventNativeSelect;
190
+ private preventNativeSelectMousedown;
191
+ private preventNativeSelectFocus;
189
192
  constructor(select: HTMLSelectElement);
190
193
  enable(): void;
191
194
  disable(): void;
@@ -205,6 +208,8 @@ declare class Select {
205
208
  updateOptions(data: (Option_2 | Optgroup)[]): void;
206
209
  createOptgroup(optgroup: Optgroup): HTMLOptGroupElement;
207
210
  createOption(info: Option_2): HTMLOptionElement;
211
+ setupLabelHandlers(): void;
212
+ removeLabelHandlers(): void;
208
213
  destroy(): void;
209
214
  }
210
215