sf-checklist
Version:
Superflows Checklist Component
43 lines • 1.37 kB
TypeScript
/**
* @license
* Copyright 2022 Superflow.dev
* SPDX-License-Identifier: MIT
*/
import { LitElement, PropertyValueMap } from 'lit';
/**
* SfChecklist element.
* @fires renderComplete - When the list is populated
* @fires valueChanged - When the value is changed
* @property apiId - backend api id
* @property label - input label
* @property name - name of the input
* @property mode - mode of operation
* @property selectedId - id to preselect
* @property selectedValue - callback function
*/
export declare class SfChecklist extends LitElement {
static styles: import("lit").CSSResult;
mode: string;
readonly: boolean;
listname: string;
listelements: string[];
listselection: {
[key: string]: boolean;
};
selectedValues: () => {
[key: string]: boolean;
};
dispatchValueChanged: () => void;
reorderArray<T>(arr: T[], oldIndex: number, newIndex: number): T[];
reorderMap(map: Map<string, any>, newOrder: string[]): Map<string, any>;
initListeners: () => void;
loadMode: () => Promise<void>;
protected firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
connectedCallback(): void;
render(): import("lit-html").TemplateResult<1>;
}
declare global {
interface HTMLElementTagNameMap {
}
}
//# sourceMappingURL=sf-checklist.d.ts.map