@htmlbricks/hb-bundle
Version:
Single IIFE loader for all HTML Bricks hb-* web components from the jsDelivr CDN, with optional Subresource Integrity; includes agent/LLM docs and theme CSS variables.
40 lines (36 loc) • 738 B
TypeScript
export interface IItem {
unit?: string;
desc: string;
unitaryPrice: number;
taxPercentage: number;
quantity?: number;
discount?: {
type: "gross" | "item";
includeVat?: boolean;
};
}
export interface ICompany {
piva: string;
name: string;
address: string;
email: string;
phone: string;
iban?: string;
}
export interface IHeaders {
country?: "it" | "eu" | "us";
serial: string;
date?: Date;
expirationDate?: Date;
category?: "items" | "services";
from: ICompany & { logo: string; shortName: string };
to: ICompany;
}
export type Component = {
id?: string;
style?: string;
printer?: "yes" | "no";
items?: IItem[] | string;
headers?: IHeaders | string;
};
export type Events = {};