@slim-select/vue
Advanced tools
Comparing version 1.2.1 to 1.3.0
@@ -51,2 +51,3 @@ import Settings from './settings'; | ||
single: string; | ||
max: string; | ||
value: string; | ||
@@ -116,3 +117,3 @@ valueText: string; | ||
ensureElementInView(container: HTMLElement, element: HTMLElement): void; | ||
putContent(el: HTMLElement, isOpen: boolean): 'up' | 'down'; | ||
putContent(): 'up' | 'down'; | ||
} |
import { DataArray, DataArrayPartial, Optgroup, OptgroupOptional, Option } from './store'; | ||
export default class Select { | ||
select: HTMLSelectElement; | ||
onValueChange?: (value: string[]) => void; | ||
onDisabledChange?: (disabled: boolean) => void; | ||
onOptionsChange?: (data: DataArrayPartial) => void; | ||
listen: boolean; | ||
onSelectChange?: (data: DataArrayPartial) => void; | ||
onValueChange?: (value: string[]) => void; | ||
private observer; | ||
@@ -13,12 +14,5 @@ constructor(select: HTMLSelectElement); | ||
showUI(): void; | ||
changeListen(on: boolean): void; | ||
addSelectChangeListener(func: (data: DataArrayPartial) => void): void; | ||
removeSelectChangeListener(): void; | ||
addValueChangeListener(func: (value: string[]) => void): void; | ||
removeValueChangeListener(): void; | ||
changeListen(listen: boolean): void; | ||
valueChange(ev: Event): boolean; | ||
private observeWrapper; | ||
private addObserver; | ||
private connectObserver; | ||
private disconnectObserver; | ||
private observeCall; | ||
getData(): DataArrayPartial; | ||
@@ -25,0 +19,0 @@ getDataFromOptgroup(optgroup: HTMLOptGroupElement): OptgroupOptional; |
@@ -11,3 +11,3 @@ /// <reference types="node" /> | ||
intervalMove: NodeJS.Timeout | null; | ||
isEnabled: boolean; | ||
disabled: boolean; | ||
alwaysOpen: boolean; | ||
@@ -30,3 +30,5 @@ showSearch: boolean; | ||
timeoutDelay: number; | ||
maxValuesShown: number; | ||
maxValuesMessage: string; | ||
constructor(settings?: SettingsPartial); | ||
} |
/// <reference types="node" /> | ||
import { PropType } from 'vue'; | ||
import SlimSelect, { Events } from '../slim-select'; | ||
import Settings from '../slim-select/settings'; | ||
import { DataArrayPartial, Option } from '../slim-select/store'; | ||
@@ -18,3 +17,3 @@ declare const _default: import("vue").DefineComponent<{ | ||
settings: { | ||
type: PropType<Settings>; | ||
type: PropType<Partial<import("../slim-select/settings").default>>; | ||
}; | ||
@@ -48,3 +47,3 @@ events: { | ||
} | null; | ||
isEnabled: boolean; | ||
disabled: boolean; | ||
alwaysOpen: boolean; | ||
@@ -67,8 +66,11 @@ showSearch: boolean; | ||
timeoutDelay: number; | ||
maxValuesShown: number; | ||
maxValuesMessage: string; | ||
}; | ||
select: { | ||
select: HTMLSelectElement; | ||
onValueChange?: ((value: string[]) => void) | undefined; | ||
onDisabledChange?: ((disabled: boolean) => void) | undefined; | ||
onOptionsChange?: ((data: DataArrayPartial) => void) | undefined; | ||
listen: boolean; | ||
onSelectChange?: ((data: DataArrayPartial) => void) | undefined; | ||
onValueChange?: ((value: string[]) => void) | undefined; | ||
enable: () => void; | ||
@@ -78,7 +80,3 @@ disable: () => void; | ||
showUI: () => void; | ||
changeListen: (on: boolean) => void; | ||
addSelectChangeListener: (func: (data: DataArrayPartial) => void) => void; | ||
removeSelectChangeListener: () => void; | ||
addValueChangeListener: (func: (value: string[]) => void) => void; | ||
removeValueChangeListener: () => void; | ||
changeListen: (listen: boolean) => void; | ||
valueChange: (ev: Event) => boolean; | ||
@@ -104,3 +102,3 @@ getData: () => DataArrayPartial; | ||
addOption: (option: import("../slim-select/store").OptionOptional) => void; | ||
setSelectedBy: (selectedType: "value" | "id", selectedValues: string[]) => void; | ||
setSelectedBy: (selectedType: "id" | "value", selectedValues: string[]) => void; | ||
getSelected: () => string[]; | ||
@@ -129,3 +127,3 @@ getSelectedOptions: () => Option[]; | ||
} | null; | ||
isEnabled: boolean; | ||
disabled: boolean; | ||
alwaysOpen: boolean; | ||
@@ -148,2 +146,4 @@ showSearch: boolean; | ||
timeoutDelay: number; | ||
maxValuesShown: number; | ||
maxValuesMessage: string; | ||
}; | ||
@@ -158,3 +158,3 @@ store: { | ||
addOption: (option: import("../slim-select/store").OptionOptional) => void; | ||
setSelectedBy: (selectedType: "value" | "id", selectedValues: string[]) => void; | ||
setSelectedBy: (selectedType: "id" | "value", selectedValues: string[]) => void; | ||
getSelected: () => string[]; | ||
@@ -209,2 +209,3 @@ getSelectedOptions: () => Option[]; | ||
single: string; | ||
max: string; | ||
value: string; | ||
@@ -270,3 +271,3 @@ valueText: string; | ||
ensureElementInView: (container: HTMLElement, element: HTMLElement) => void; | ||
putContent: (el: HTMLElement, isOpen: boolean) => "up" | "down"; | ||
putContent: () => "up" | "down"; | ||
}; | ||
@@ -297,2 +298,3 @@ events: { | ||
} | null; | ||
getCleanValue(val: string | string[] | undefined): string | string[]; | ||
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{ | ||
@@ -310,3 +312,3 @@ modelValue: { | ||
settings: { | ||
type: PropType<Settings>; | ||
type: PropType<Partial<import("../slim-select/settings").default>>; | ||
}; | ||
@@ -313,0 +315,0 @@ events: { |
{ | ||
"name": "@slim-select/vue", | ||
"private": false, | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"description": "Vue integration", | ||
@@ -6,0 +6,0 @@ "repository": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
251596
6182