igniteui-webcomponents
Version:
Ignite UI for Web Components is a complete library of UI components, giving you the ability to build modern web applications using encapsulation and the concept of reusable components in a dependency-free approach.
18 lines (17 loc) • 868 B
TypeScript
import { noChange } from 'lit';
import { type AttributePart, Directive, type DirectiveParameters, type PartInfo } from 'lit/directive.js';
export interface PartMapInfo {
readonly [name: string]: boolean | null | undefined;
}
declare class PartMapDirective extends Directive {
private _previousParts?;
constructor(partInfo: PartInfo);
render(partMapInfo: PartMapInfo): string;
update(part: AttributePart, [partMapInfo]: DirectiveParameters<this>): string | typeof noChange;
}
/**
* Similar to Lit's {@link https://lit.dev/docs/templates/directives/#classmap | `classMap`} and
* {@link https://lit.dev/docs/templates/directives/#stylemap | `styleMap`} but for `part` attributes.
*/
export declare const partMap: (partMapInfo: PartMapInfo) => import("lit-html/directive").DirectiveResult<typeof PartMapDirective>;
export type { PartMapDirective };