slim-select 3.0.6 → 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
@@ -183,8 +183,12 @@ declare class Select {
183
183
  onClassChange?: (classes: string[]) => void;
184
184
  onDisabledChange?: (disabled: boolean) => void;
185
185
  onOptionsChange?: (data: (Option_2 | Optgroup)[]) => void;
186
+ onLabelClick?: () => void;
186
187
  private listen;
187
188
  private observer;
189
+ private preventNativeSelect;
190
+ private preventNativeSelectMousedown;
191
+ private preventNativeSelectFocus;
188
192
  constructor(select: HTMLSelectElement);
189
193
  enable(): void;
190
194
  disable(): void;
@@ -204,6 +208,8 @@ declare class Select {
204
208
  updateOptions(data: (Option_2 | Optgroup)[]): void;
205
209
  createOptgroup(optgroup: Optgroup): HTMLOptGroupElement;
206
210
  createOption(info: Option_2): HTMLOptionElement;
211
+ setupLabelHandlers(): void;
212
+ removeLabelHandlers(): void;
207
213
  destroy(): void;
208
214
  }
209
215
 
@@ -183,8 +183,12 @@ declare class Select {
183
183
  onClassChange?: (classes: string[]) => void;
184
184
  onDisabledChange?: (disabled: boolean) => void;
185
185
  onOptionsChange?: (data: (Option_2 | Optgroup)[]) => void;
186
+ onLabelClick?: () => void;
186
187
  private listen;
187
188
  private observer;
189
+ private preventNativeSelect;
190
+ private preventNativeSelectMousedown;
191
+ private preventNativeSelectFocus;
188
192
  constructor(select: HTMLSelectElement);
189
193
  enable(): void;
190
194
  disable(): void;
@@ -204,6 +208,8 @@ declare class Select {
204
208
  updateOptions(data: (Option_2 | Optgroup)[]): void;
205
209
  createOptgroup(optgroup: Optgroup): HTMLOptGroupElement;
206
210
  createOption(info: Option_2): HTMLOptionElement;
211
+ setupLabelHandlers(): void;
212
+ removeLabelHandlers(): void;
207
213
  destroy(): void;
208
214
  }
209
215