vuetning
Version:
<p align="center"> <img width="160"src="https://s3.amazonaws.com/arcthos.com/vuetning/logo.svg"> </p>
143 lines (142 loc) • 3.99 kB
TypeScript
import { type PropType } from "vue";
import { type ValidationError } from "../slds-form-element/validation-error";
import type Option from "./option";
declare const _default: import("vue").DefineComponent<{
/**
* If present, the dueling picklist is disabled and users cannot interact with it.
*/
disabled: BooleanConstructor;
/**
* Array of error objects from vuelidate.
*/
errors: {
type: PropType<ValidationError[]>;
default: () => ValidationError[];
};
/**
* Help text detailing the purpose and function of the dueling picklist.
*/
fieldLevelHelp: StringConstructor;
/**
* Label for the dueling picklist.
*/
label: {
type: StringConstructor;
required: true;
};
/**
* Dueling picklist values.
*/
modelValue: {
type: PropType<Option[]>;
default: () => Option[];
};
/**
* A list of options that are available for selection. Each option has the following attributes: label and value.
*/
options: {
type: ArrayConstructor;
required: true;
};
/**
* Indicates whether this field is required.
*/
required: BooleanConstructor;
/**
* Label for the selected dueling picklist.
*/
selectedLabel: {
type: StringConstructor;
required: true;
};
/**
* Label for the source options dueling picklist.
*/
sourceLabel: {
type: StringConstructor;
required: true;
};
}, unknown, {
activeOptions: Option[];
availableOptions: Option[];
lastActivatedOption: Option;
selectedOptions: Option[];
}, {
formElementAttributes(): Record<string, unknown>;
duelingPicklistClassNames(): string;
}, {
emitValue(): void;
handleClickAvailableOption(event: MouseEvent, option: Option): void;
handleClickSelectedOption(event: MouseEvent, option: Option): void;
handleClickToDown(): void;
handleClickToLeft(): void;
handleClickToRight(): void;
handleClickToUp(): void;
handleCtrlClickAvailableOption(option: Option): void;
handleCtrlClickSelectedOption(option: Option): void;
handleShiftClickAvailableOption(option: Option): void;
handleShiftClickSelectedOption(option: Option): void;
isActiveOptions(option: Option): boolean;
parseOptions(): void;
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
/**
* If present, the dueling picklist is disabled and users cannot interact with it.
*/
disabled: BooleanConstructor;
/**
* Array of error objects from vuelidate.
*/
errors: {
type: PropType<ValidationError[]>;
default: () => ValidationError[];
};
/**
* Help text detailing the purpose and function of the dueling picklist.
*/
fieldLevelHelp: StringConstructor;
/**
* Label for the dueling picklist.
*/
label: {
type: StringConstructor;
required: true;
};
/**
* Dueling picklist values.
*/
modelValue: {
type: PropType<Option[]>;
default: () => Option[];
};
/**
* A list of options that are available for selection. Each option has the following attributes: label and value.
*/
options: {
type: ArrayConstructor;
required: true;
};
/**
* Indicates whether this field is required.
*/
required: BooleanConstructor;
/**
* Label for the selected dueling picklist.
*/
selectedLabel: {
type: StringConstructor;
required: true;
};
/**
* Label for the source options dueling picklist.
*/
sourceLabel: {
type: StringConstructor;
required: true;
};
}>>, {
required: boolean;
disabled: boolean;
errors: ValidationError[];
modelValue: Option[];
}, {}>;
export default _default;